body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f6fb;
    color: #1f2937;
}
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; }
.site-header {
    background: #12284c;
    color: #fff;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.brand a { font-size: 1.15rem; font-weight: 700; }
.top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.top-nav a {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    font-size: 0.92rem;
}
.top-nav a.active { background: #2f64b7; }
.content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}
.portal-card, .card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 16px;
}
.portal-card {
    max-width: 520px;
    margin: 60px auto;
    text-align: center;
}
.portal-actions {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}
.btn {
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
}
.btn-primary { background: #2f64b7; color: white; }
.btn-secondary { background: #e5ebf5; color: #12284c; }
.btn-danger { background: #b42318; color: #fff; }
.btn-neutral { background: #eef2f7; color: #1f2937; }
.btn-large { padding: 14px 18px; font-size: 1rem; }
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.muted { color: #667085; }
.flash {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 700;
}
.flash.success { background: #dcfae6; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }
.flash.info { background: #e0f2fe; color: #075985; }
.form-grid {
    display: grid;
    gap: 14px;
}
.form-grid.two {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.form-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
label { display: block; font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; }
input, select, textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.95rem;
    background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
.table-wrap {
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}
th, td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
}
th {
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 2;
}
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 700;
}
.status-open { color: #166534; font-weight: 700; }
.status-closed { color: #991b1b; font-weight: 700; }
.status-warning { color: #92400e; font-weight: 700; }
.grid-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 16px;
}
.day-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}
.day-card h3 { margin: 0 0 12px 0; }
.choice-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.locked-pill {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 10px;
    background: #e2e8f0;
    font-weight: 700;
}
.notice-list {
    display: grid;
    gap: 10px;
}
.kpi-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.kpi {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.kpi .label { color: #667085; font-size: 0.85rem; }
.kpi .value { font-size: 1.5rem; font-weight: 700; }
.legend {
    font-size: 0.9rem;
    color: #475467;
    margin-top: 8px;
}
.cell-new { background: #fff4e5; font-weight: 700; }
.cell-locked { background: #f1f5f9; font-weight: 700; }
.cell-edited::after { content: '*'; color: #b42318; font-weight: 700; margin-left: 2px; }
.footnote { font-size: 0.85rem; color: #667085; }
@media (min-width: 901px) {
    .mobile-only { display: none; }
}
@media (max-width: 900px) {
    .desktop-only { display: none; }
    .site-header { position: static; }
}
