:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --line: #d8e1ef;
    --text: #16324a;
    --muted: #5d7185;
    --primary: #0d9488;
    --primary-2: #14b8a6;
    --accent: #f59e0b;
    --shadow: 0 18px 40px rgba(13, 34, 58, .08);
    --radius: 22px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #edf7f6 0%, var(--bg) 28%);
    color: var(--text);
}
.app-shell { max-width: 1380px; margin: 0 auto; padding: 18px; }
.hero {
    background: linear-gradient(135deg, #0f766e, #14b8a6 68%, #99f6e4);
    color: #fff;
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}
.hero__brand { display: flex; gap: 16px; align-items: flex-start; }
.brand-mark {
    width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center;
    background: rgba(255,255,255,.18); font-size: 30px; font-weight: 700;
    border: 1px solid rgba(255,255,255,.24);
}
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.hero h1 { margin: 0 0 6px; font-size: 32px; }
.hero p { margin: 0; max-width: 760px; line-height: 1.5; opacity: .95; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 16px;
    text-decoration: none; font-weight: 700; color: #083631; background: linear-gradient(135deg, #fbbf24, #fde68a);
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
}
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); box-shadow: none; }
.topnav {
    margin-top: 16px; padding: 10px; background: rgba(255,255,255,.72); backdrop-filter: blur(12px);
    border: 1px solid #dbe7ef; border-radius: 20px; display: flex; gap: 8px; overflow-x: auto;
}
.topnav a {
    text-decoration: none; color: var(--muted); padding: 11px 14px; border-radius: 14px; white-space: nowrap; font-weight: 700;
}
.topnav a.is-active { background: linear-gradient(135deg, #0d9488, #14b8a6); color: #fff; }
.content { margin-top: 16px; display: grid; gap: 16px; }
.grid { display: grid; gap: 16px; }
.grid--cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 18px;
}
.card__header { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.card__header h2 { margin: 0; font-size: 20px; }
.card__header a { color: var(--primary); text-decoration: none; font-weight: 700; }
.stat-card { background: linear-gradient(180deg, #ffffff, #f5fffe); }
.stat-card__label { color: var(--muted); font-size: 13px; }
.stat-card__value { font-size: 34px; font-weight: 800; margin: 8px 0 6px; }
.stat-card__hint { color: var(--primary); font-weight: 700; font-size: 13px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border: 1px solid #dfe7ef; padding: 10px 12px; text-align: left; vertical-align: top; }
.table th { background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; }
.table.compact th, .table.compact td { padding: 8px 10px; }
.badge, .chip {
    display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 700;
    background: #e8f8f6; color: #0f766e; border: 1px solid #c7efea;
}
.chip--soft { background: #fff4da; color: #a16207; border-color: #fde68a; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.form-grid label { display: grid; gap: 6px; }
.form-grid label span { color: var(--muted); font-size: 13px; font-weight: 700; }
.form-grid input, .form-grid select {
    width: 100%; border-radius: 14px; border: 2px solid #cfe0ea; padding: 12px 14px; outline: none;
}
.span-2 { grid-column: span 2; }
.list-metric { display: grid; gap: 10px; }
.list-metric__item, .mini-ledger div, .evidence-list div {
    display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #f8fbff; border: 1px solid #e1ebf4;
}
.timeline-note ul, .checklist { margin: 10px 0 0; padding-left: 18px; }
.checklist li { margin-bottom: 10px; }
.checklist .done { color: #0f766e; font-weight: 700; }
.checklist .pending { color: #9a6700; font-weight: 700; }
@media (max-width: 980px) {
    .grid--cards, .grid--2, .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .hero { flex-direction: column; align-items: flex-start; }
}
