body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: linear-gradient(160deg, #07111f, #12324e 55%, #0e7a73);
    color: #f5faff;
}

a {
    color: inherit;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card,
.panel {
    width: min(960px, 100%);
    background: rgba(10, 23, 40, 0.86);
    border: 1px solid #29486e;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
}

.auth-card {
    max-width: 460px;
    padding: 32px;
}

.eyebrow {
    color: #4de2c5;
    letter-spacing: 0.18em;
    font-size: 12px;
    margin-bottom: 12px;
}

.muted {
    color: #a7bdd6;
}

.stack-md {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.stack-sm {
    display: grid;
    gap: 10px;
}

label {
    display: grid;
    gap: 8px;
    color: #dce8f5;
}

input,
textarea,
select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #29486e;
    border-radius: 16px;
    background: #0f1d31;
    color: #f5faff;
    padding: 12px 14px;
}

button {
    border: none;
    border-radius: 18px;
    background: #69b7ff;
    color: white;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #69b7ff;
    color: white;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.button-link.secondary {
    background: rgba(105, 183, 255, 0.14);
    border: 1px solid #69b7ff;
}

.shell {
    padding: 24px;
    display: grid;
    gap: 20px;
}

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

.topbar-actions,
.detail-header {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
}

.language-switch {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.language-switch a {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(167, 189, 214, 0.24);
    background: rgba(15, 29, 49, 0.6);
}

.language-switch a.active {
    background: rgba(105, 183, 255, 0.22);
    border-color: #69b7ff;
}

.user-badge,
.actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.chip.subtle {
    background: rgba(77, 226, 197, 0.12);
}

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

.inline-check input,
.actions-row form {
    width: auto;
    margin: 0;
}

.report-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.report-page {
    background: #ffffff;
    color: #0f1d31;
}

.report-page h2,
.report-page p,
.report-page li {
    color: #0f1d31;
}

.report-section + .report-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 29, 49, 0.12);
}

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

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: rgba(22, 38, 62, 0.92);
    border: 1px solid #29486e;
    border-radius: 24px;
    padding: 20px;
}

.metric {
    font-size: 34px;
    font-weight: 700;
    margin-top: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    border: 1px solid #29486e;
    background: rgba(105, 183, 255, 0.15);
    color: #f5faff;
    font-size: 12px;
    font-weight: 700;
}

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

.table th,
.table td {
    text-align: left;
    border-bottom: 1px solid rgba(167, 189, 214, 0.18);
    padding: 12px 8px;
    vertical-align: top;
}

.note,
.error,
.success {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
}

.note {
    background: rgba(105, 183, 255, 0.12);
}

.error {
    background: rgba(255, 107, 130, 0.2);
}

.success {
    background: rgba(57, 226, 138, 0.18);
}

@media (max-width: 860px) {
    .grid.two,
    .grid.three {
        grid-template-columns: 1fr;
    }

    .topbar,
    .topbar-actions,
    .detail-header,
    .user-badge,
    .actions-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media print {
    body {
        background: white;
        color: #0f1d31;
    }

    .report-actions,
    .language-switch,
    .button-link,
    form {
        display: none !important;
    }

    .report-page,
    .panel {
        box-shadow: none;
        border: none;
        background: white;
    }

    .shell {
        padding: 0;
    }
}
