* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0b1118;
    color: #c9d8e7;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #111923;
    border-bottom: 1px solid #2b3949;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand {
    color: #8fd3ff;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
}

nav a {
    color: #a9c7df;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.9rem;
}

nav a:hover { color: #8fd3ff; }

main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
}

footer {
    text-align: center;
    padding: 1rem;
    color: #65768a;
    font-size: 0.75rem;
    border-top: 1px solid #1f2a37;
}

h1 { color: #8fd3ff; margin-bottom: 1rem; font-size: 1.75rem; }
h2 { color: #a9c7df; margin-bottom: 0.75rem; font-size: 1.25rem; }
h3 { color: #a9c7df; margin-bottom: 0.5rem; font-size: 1rem; }

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

.card {
    background: #151e2b;
    border: 1px solid #2c3c50;
    border-radius: 10px;
    padding: 1rem;
}

.meta {
    font-size: 0.75rem;
    color: #65768a;
    margin-bottom: 0.75rem;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.metrics > div {
    background: #1b2635;
    border: 1px solid #304257;
    border-radius: 6px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metrics .label {
    font-size: 0.7rem;
    color: #8093a8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metrics .value {
    font-size: 1rem;
    font-weight: 600;
    color: #d7e3ef;
}

.actuals {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #2c3c50;
    font-size: 0.85rem;
    color: #8093a8;
    text-align: center;
}

.empty {
    text-align: center;
    padding: 2rem;
    color: #65768a;
    font-size: 0.9rem;
}

.alerts {
    background: #3a1a1a;
    border: 1px solid #8b2c2c;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alerts h2 { color: #ff8888; }
.alert {
    padding: 0.5rem 0;
    color: #ffb4a8;
    font-size: 0.9rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #151e2b;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid #2c3c50;
    font-size: 0.85rem;
}

th {
    background: #1b2635;
    color: #a9c7df;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

tbody tr:hover { background: #1b2635; }
tbody tr:last-child td { border-bottom: none; }

.meta-block {
    background: #151e2b;
    border: 1px solid #2c3c50;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.meta-block > div { margin-bottom: 0.25rem; }

.reasoning-block {
    background: #151e2b;
    border: 1px solid #2c3c50;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.reasoning-block p {
    color: #d7e3ef;
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .metrics { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 1.4rem; }
    nav a { margin-left: 0.5rem; font-size: 0.8rem; }
}
