:root {
    --bg: #eef3f7;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: #ffffff;
    --text: #11263c;
    --muted: #5f7285;
    --line: rgba(17, 38, 60, 0.1);
    --accent: #0c5a8a;
    --accent-strong: #0a3d5d;
    --accent-soft: #e8f1f8;
    --alert: #b54733;
    --warning: #b7791f;
    --success: #2f7a54;
    --shadow: 0 18px 45px rgba(35, 52, 71, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(12, 90, 138, 0.14), transparent 28%),
        linear-gradient(180deg, #f6f9fc 0%, #edf2f7 100%);
}

.page-shell {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 18px 24px;
    background: rgba(8, 36, 59, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.topbar-label,
.topbar-title {
    margin: 0;
    color: #d5e5f2;
}

.topbar-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
}

.topbar-title {
    margin-top: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

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

.topbar-link {
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.92rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.hero-copy,
.hero-panel,
.card,
.metric-card,
.priority-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-copy {
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.hero-copy::after {
    content: "";
    position: absolute;
    inset: auto -90px -90px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(12, 90, 138, 0.16), transparent 70%);
}

.hero-panel {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.eyebrow,
.panel-label,
.metric-label,
.meta-label,
.priority-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--muted);
}

h1,
h2 {
    margin: 0;
    font-weight: 600;
    line-height: 1.08;
    font-family: Georgia, "Times New Roman", serif;
}

h1 {
    margin-top: 12px;
    font-size: clamp(2.4rem, 4vw, 4.7rem);
    max-width: 11ch;
}

h2 {
    font-size: 1.4rem;
}

.hero-text {
    max-width: 62ch;
    margin-top: 18px;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--muted);
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
    max-width: 720px;
}

.meta-value {
    margin: 6px 0 0;
    font-size: 0.98rem;
    color: var(--text);
}

.panel-value {
    margin: 8px 0 0;
    font-size: 2rem;
    color: var(--accent);
}

.panel-statements {
    display: grid;
    gap: 12px;
}

.statement-card {
    padding: 14px 16px;
    background: var(--accent-soft);
    border: 1px solid rgba(12, 90, 138, 0.1);
    border-radius: 16px;
}

.statement-value,
.statement-label,
.statement-detail {
    margin: 0;
}

.statement-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.statement-label {
    margin-top: 6px;
    font-size: 0.86rem;
    font-weight: 600;
}

.statement-detail {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.9rem;
}

.panel-links {
    display: grid;
    gap: 10px;
}

.panel-links a {
    color: var(--text);
    text-decoration: none;
    padding: 12px 14px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 14px;
    font-weight: 600;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.metric-card {
    padding: 20px;
}

.metric-value {
    margin: 10px 0 0;
    font-size: 1.9rem;
    color: var(--accent-strong);
}

.metric-detail {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.92rem;
}

.priority-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.priority-card {
    padding: 20px;
}

.priority-headline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}

.priority-title,
.priority-value,
.priority-detail {
    margin: 0;
}

.priority-title {
    font-size: 1.08rem;
    font-weight: 600;
}

.priority-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.priority-detail {
    margin-top: 10px;
    line-height: 1.55;
    color: var(--muted);
}

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

.card {
    padding: 22px;
}

.wide-card {
    grid-column: span 2;
}

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

.card-header p {
    margin: 0;
    color: var(--muted);
    max-width: 42ch;
    line-height: 1.5;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--line);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-strong);
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.94rem;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

th {
    background: #f3f7fb;
    font-weight: 600;
    color: var(--accent-strong);
}

tbody tr:hover {
    background: rgba(12, 90, 138, 0.05);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-alert {
    background: rgba(181, 71, 51, 0.1);
    color: var(--alert);
    border-color: rgba(181, 71, 51, 0.16);
}

.badge-warning {
    background: rgba(183, 121, 31, 0.12);
    color: var(--warning);
    border-color: rgba(183, 121, 31, 0.18);
}

.badge-success {
    background: rgba(47, 122, 84, 0.1);
    color: var(--success);
    border-color: rgba(47, 122, 84, 0.18);
}

.badge-neutral {
    background: rgba(17, 38, 60, 0.06);
    color: var(--accent-strong);
    border-color: rgba(17, 38, 60, 0.1);
}

.empty-state,
.error-shell {
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 980px) {
    .topbar,
    .hero,
    .content-grid,
    .metrics-grid,
    .priority-strip,
    .hero-meta {
        grid-template-columns: 1fr;
    }

    .topbar,
    .priority-headline {
        flex-direction: column;
        align-items: flex-start;
    }

    .wide-card {
        grid-column: auto;
    }

    .card-header {
        flex-direction: column;
        align-items: start;
    }
}