* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: #182230;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: #0969da;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #d8dee8;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 24px clamp(16px, 5vw, 56px);
}

.site-header h1 {
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.1;
    margin: 4px 0 0;
}

.eyebrow {
    color: #5f6b7a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-nav a,
.button,
button {
    background: #ffffff;
    border: 1px solid #c7d0dd;
    border-radius: 6px;
    color: #182230;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
}

.site-nav a.active,
.button,
button {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

.button.secondary {
    background: #ffffff;
    border-color: #c7d0dd;
    color: #182230;
}

.button.danger,
button.danger {
    background: #b42318;
    border-color: #b42318;
    color: #ffffff;
}

.container {
    margin: 0 auto;
    max-width: 1120px;
    padding: 28px 16px 48px;
}

.panel {
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 22px;
}

.toolbar {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.toolbar h2,
.panel h2 {
    font-size: 22px;
    margin: 0;
}

.flash {
    border-radius: 6px;
    font-weight: 700;
    margin: 0 0 16px;
    padding: 12px;
}

.flash.success {
    background: #dcfce7;
    color: #166534;
}

.flash.error {
    background: #fee2e2;
    color: #991b1b;
}

.empty {
    color: #5f6b7a;
    margin: 0;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid #e5e9f0;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

th {
    color: #475467;
    font-size: 13px;
    text-transform: uppercase;
}

.actions {
    white-space: nowrap;
}

.actions a,
.actions form {
    display: inline-block;
    margin-right: 10px;
}

.danger {
    color: #b42318;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
    grid-column: 1 / -1;
}

label {
    color: #344054;
    display: grid;
    font-weight: 700;
    gap: 7px;
}

input,
select,
textarea {
    border: 1px solid #c7d0dd;
    border-radius: 6px;
    font: inherit;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

textarea {
    resize: vertical;
}

.inline-form {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.form-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.details {
    display: grid;
    gap: 10px 20px;
    grid-template-columns: 170px 1fr;
    margin: 20px 0;
}

.details dt {
    color: #475467;
    font-weight: 700;
}

.details dd {
    margin: 0;
}

.message-list {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.message-item {
    background: #f8fafc;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    padding: 14px;
}

.message-content {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.message-item small {
    color: #667085;
}

button.link {
    background: transparent;
    border: 0;
    color: #0969da;
    display: inline;
    font-weight: 400;
    min-height: 0;
    padding: 0;
}

button.link.danger {
    color: #b42318;
}

.site-footer {
    color: #667085;
    padding: 0 16px 28px;
    text-align: center;
}

@media (max-width: 720px) {
    .site-header,
    .toolbar,
    .inline-form,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid,
    .details {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 16px;
    }
}
