* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f6f7f9;
    color: #1f2933;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: #0b63ce;
}

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 32px auto;
}

.shell.narrow {
    width: min(520px, calc(100% - 32px));
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.muted {
    margin: 0;
    color: #64748b;
}

.panel {
    background: #ffffff;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid #e5eaf0;
    padding: 11px 10px;
    text-align: left;
    white-space: nowrap;
}

th {
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
}

.form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
    padding: 10px 12px;
}

select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    font: inherit;
    padding: 10px 12px;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    background: #0f766e;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 9px 14px;
    text-decoration: none;
}

.button.secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.row-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.row-actions form {
    margin: 0;
}

.link-danger {
    min-height: 0;
    background: none;
    color: #b42318;
    padding: 0;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    min-height: 26px;
    padding: 4px 10px;
}

.badge.ok {
    background: #dcfce7;
    color: #166534;
}

.badge.warn {
    background: #fef3c7;
    color: #92400e;
}

.notice,
.error {
    border-radius: 6px;
    margin: 14px 0;
    padding: 12px;
}

.notice {
    background: #ecfdf3;
    border: 1px solid #abefc6;
}

.error {
    background: #fff1f3;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

code {
    background: #eef2f7;
    border-radius: 4px;
    padding: 2px 5px;
}

@media (max-width: 720px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    h1 {
        font-size: 24px;
    }
}
