* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.container-narrow {
    max-width: 760px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 700;
}

h1,
h2 {
    margin: 0 0 12px;
}

.subtitle,
.muted,
.small {
    color: #94a3b8;
}

.small {
    font-size: 12px;
    margin-top: 6px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.stack {
    margin-bottom: 20px;
}

.flash {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid transparent;
}

.flash-success {
    background: #052e16;
    border-color: #166534;
}

.flash-error {
    background: #450a0a;
    border-color: #991b1b;
}

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

.accordion-card {
    padding: 0;
    overflow: hidden;
}

.accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    list-style: none;
    cursor: pointer;
    padding: 20px;
    font-size: 20px;
    font-weight: 700;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion-hint {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
}

.accordion-body {
    padding: 0 20px 20px;
}

.accordion-info {
    padding: 0 20px 20px;
}

.accordion-info h3 {
    margin: 0 0 8px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

label {
    display: grid;
    gap: 8px;
    font-size: 14px;
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0b1120;
    color: #e5e7eb;
}

textarea {
    resize: vertical;
}

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

.checkbox input {
    width: auto;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #1e293b;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 14px;
}

.button-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.button-danger {
    background: #7f1d1d;
    border-color: #991b1b;
}

.button-link {
    background: transparent;
}

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

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

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

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

th,
td {
    padding: 14px 10px;
    border-bottom: 1px solid #1f2937;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

th {
    color: #cbd5e1;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #334155;
}

.badge-success {
    background: #166534;
}

.badge-danger {
    background: #991b1b;
}

.badge-danger-strong {
    background: #dc2626;
    color: #fff7f7;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.badge-warning {
    background: #d97706;
    color: #fff7ed;
}

.badge-neutral {
    background: #1d4ed8;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-list-spaced {
    margin-top: 8px;
}

.info-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.7;
}

.info-list-compact {
    font-size: 9px;
    line-height: 1.45;
    color: #94a3b8;
}

.summary-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.5;
    color: #cbd5e1;
}

.empty {
    margin: 0;
    color: #94a3b8;
}

@media (max-width: 780px) {
    .page-header,
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }
}
