.exec-dash-active {
    color: #1c2a22;
    background-color: #f3f6f4;
    background-image:
        radial-gradient(1000px 480px at 8% -5%, #d4a0171a, #0000 55%),
        radial-gradient(800px 420px at 100% 0, #3d9b6e1a, #0000 50%),
        linear-gradient(#fff 0%, #f7faf8 55%, #f3f6f4 100%);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    font-family: Outfit, system-ui, sans-serif;
}

.brand-hub { min-height: 100vh; display: flex; flex-direction: column; }
.brand-hub__bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem 1rem;
    padding: .7rem 1.15rem;
    background: #fffffff5;
    border-bottom: 1px solid #1c2a221a;
    box-shadow: 0 8px 24px #1c2a220f;
    backdrop-filter: blur(10px);
}
.brand-hub__bar-left { display: flex; flex-direction: column; gap: .1rem; }
.brand-hub__kicker {
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #5f7368;
    font-size: .7rem;
    font-weight: 600;
}
.brand-hub__title {
    color: #1c2a22;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.05rem;
    text-decoration: none;
}
.brand-hub__bar-right { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.brand-hub__bar-right form { margin: 0; }
.brand-hub__bar-right button { font: inherit; }
.brand-hub__btn {
    font: inherit;
    cursor: pointer;
    color: #fff;
    background: #c49214;
    border: none;
    border-radius: 999px;
    padding: .5rem .95rem;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}
.brand-hub__btn--ghost {
    color: #1c2a22;
    background: #fff;
    border: 1px solid #1c2a2224;
}

.exec-dash {
    --gold: #c49214;
    --ink: #1c2a22;
    --muted: #5f7368;
    --danger: #c45a40;
    --line: #1c2a221a;
    --shadow: 0 12px 36px #1c2a2214;
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 1.25rem 1.5rem 3rem;
    box-sizing: border-box;
}
.exec-dash * { box-sizing: border-box; }
.exec-dash__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.15rem 1.35rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.exec-dash__brand { display: flex; flex-direction: column; gap: .2rem; }
.exec-dash__brand h1 {
    margin: 0;
    color: var(--ink);
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -.02em;
}
.exec-dash__brand p, .exec-dash__period { margin: 0; color: var(--muted); font-size: .95rem; }
.exec-dash__filters { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.exec-dash__filters label, .months-label {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.exec-dash__filters input,
.exec-dash__filters select,
.drop input {
    min-width: 140px;
    padding: .45rem .65rem;
    color: var(--ink);
    font: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.exec-dash__filters input:focus,
.exec-dash__filters select:focus,
.drop input:focus { outline: 2px solid #c4921459; border-color: transparent; }
.exec-dash__btn {
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 999px;
    padding: .55rem 1.05rem;
    text-decoration: none;
}
.exec-dash__btn:hover { transform: translateY(-1px); }
.exec-dash__btn--gold { color: #1a1405; background: linear-gradient(135deg, #e2b53a, #c49012); }
.exec-dash__btn--ghost { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.exec-dash__btn--mint { color: #fff; background: linear-gradient(135deg, #4caf82, #2f7d57); }

.exec-dash__insight {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.exec-dash__hero {
    position: relative;
    overflow: hidden;
    padding: 1.4rem 1.5rem;
    background: linear-gradient(135deg, #d4a0171f, #0000 55%), #fff;
    border: 1px solid #c4921447;
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.exec-dash__hero:after {
    content: "";
    position: absolute;
    right: -20%;
    bottom: -40%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, #d4a01738, #0000 70%);
    pointer-events: none;
}
.exec-dash__hero-kicker {
    margin: 0 0 .4rem;
    color: var(--gold);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.exec-dash__hero h2 {
    max-width: 34ch;
    margin: 0 0 .55rem;
    color: var(--ink);
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.25;
}
.exec-dash__hero p { max-width: 52ch; margin: 0; color: var(--muted); line-height: 1.5; }
.exec-dash__mini {
    padding: 1.2rem 1.3rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.exec-dash__mini span {
    display: block;
    margin-bottom: .45rem;
    color: var(--muted);
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.exec-dash__mini strong {
    display: block;
    margin-bottom: .25rem;
    color: var(--ink);
    font-family: Fraunces, Georgia, serif;
    font-size: 1.85rem;
    background: none;
}
.exec-dash__mini em { color: var(--muted); font-size: .9rem; font-style: normal; }
.exec-dash__mini a { color: inherit; text-decoration: none; }
.exec-dash__section-title {
    margin: 0 0 .65rem;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.exec-dash__panel {
    height: 100%;
    margin-bottom: 1rem;
    padding: 1.15rem 1.2rem .85rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.exec-dash__panel h2, .exec-dash__panel h3 {
    margin: 0 0 .35rem;
    color: var(--ink);
    font-family: Fraunces, Georgia, serif;
    font-size: 1.15rem;
}
.exec-dash__grid-2 {
    display: grid;
    grid-template-columns: 1.05fr 1.15fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.exec-dash__table-wrap {
    overflow: auto;
    max-height: 70vh;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.exec-dash table { width: 100%; border-collapse: collapse; min-width: 820px; }
.exec-dash th, .exec-dash td {
    padding: .75rem .85rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
}
.exec-dash th {
    position: sticky;
    top: 0;
    color: var(--muted);
    letter-spacing: .06em;
    text-transform: uppercase;
    background: #f5f8f6;
    font-size: .72rem;
    font-weight: 600;
}
.exec-dash tbody tr:hover { background: #d4a0170f; }
.exec-dash .matrix td, .exec-dash .matrix tfoot td { text-align: center; }
.exec-dash .matrix th:first-child,
.exec-dash .matrix td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 180px;
    text-align: left;
    background: #fff;
}
.exec-dash .matrix thead th { z-index: 2; }
.exec-dash .matrix thead th:first-child { z-index: 3; }
.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    width: 100%;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}
.exec-dash .matrix thead th:not(:first-child) .sort-btn { justify-content: center; }
.sort-arrows { display: inline-flex; flex-direction: column; gap: 2px; }
.sort-arrows i {
    display: block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}
.sort-arrows .up { border-bottom: 5px solid #c5d0c8; }
.sort-arrows .down { border-top: 5px solid #c5d0c8; }
.sort-btn.is-asc .up { border-bottom-color: #c49214; }
.sort-btn.is-desc .down { border-top-color: #c49214; }
.local-link { font-weight: 650; }
.exec-dash .is-selected { background: #fbf6ee; }
.exec-dash .score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: .2rem .45rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}
.exec-dash .score--ok { color: #1f6b47; background: #2f8a5f24; }
.exec-dash .score--warn { color: #8a6508; background: #c4921429; }
.exec-dash .score--bad { color: #9a3d2a; background: #c45a4024; }
.exec-dash .score-empty { color: #b7aea4; font-weight: 500; background: transparent; }
.months { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; }
.months a {
    padding: .35rem .6rem;
    color: var(--muted);
    text-decoration: none;
    border-radius: 999px;
}
.months a.is-selected { color: #1a1405; background: linear-gradient(135deg, #e2b53a, #c49012); font-weight: 700; }

.exec-dash__alerts { display: grid; gap: .85rem; }
.exec-dash__alert {
    padding: .95rem 1rem;
    background: linear-gradient(135deg, #c45a4014, #fff);
    border: 1px solid #c45a4038;
    border-radius: 16px;
}
.exec-dash__alert strong { display: block; margin-bottom: .2rem; color: var(--ink); }
.exec-dash__alert span, .hint { color: var(--muted); font-size: .86rem; }
.exec-dash__alert p { margin: .35rem 0 0; color: var(--ink); line-height: 1.45; }
.exec-dash__empty {
    padding: 1.5rem;
    color: var(--muted);
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
}
.exec-dash__empty h2 { margin: 0 0 .4rem; font-family: Fraunces, Georgia, serif; color: var(--ink); }
.section-head, .actions { display: flex; justify-content: space-between; gap: .8rem; align-items: center; }
.section-head h2 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 1.35rem; }
.section-head__actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.section-head a { font-weight: 700; }
.sections--wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .4rem 1.2rem; }
.finding-sheet { margin-bottom: 1.25rem; }
.finding-block {
    margin-top: .9rem;
    padding: .95rem 1rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.finding-block--nested { box-shadow: none; }
.finding-block header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .4rem .8rem;
    align-items: baseline;
    margin-bottom: .7rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid var(--line);
}
.finding-block h3 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.05rem;
    letter-spacing: .01em;
}
.finding-block header em { color: var(--muted); font-style: normal; font-size: .86rem; }
.finding-block header div { display: flex; gap: .45rem; align-items: center; }
.finding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.sections, .times, .staff, .findings { list-style: none; margin: .6rem 0 0; padding: 0; }
.sections li { margin-bottom: .85rem; }
.section-label, .times li, .staff li { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.bar { height: 6px; margin: .3rem 0; background: #efe8df; border-radius: 99px; }
.bar span { display: block; height: 100%; background: var(--danger); border-radius: inherit; }
.sections small, .staff span { color: var(--muted); }
.times li, .staff li { padding: .45rem 0; border-top: 1px solid var(--line); }
.times li {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: .25rem 1rem;
    align-items: start;
    justify-content: start;
}
.times li strong { font-variant-numeric: tabular-nums; }
.times li span { min-width: 0; text-align: left; }
.time--ok { color: #1f6b47; }
.time--bad { color: #9a3d2a; }
.exec-dash__panel h2 .score { margin-left: .45rem; font-size: .8rem; vertical-align: middle; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login__card, .user-form { display: grid; gap: .75rem; }
.login__card {
    width: min(420px, 100%);
    padding: 1.5rem 1.4rem 1.3rem;
    background: #fff;
    border: 1px solid #1c2a221a;
    border-radius: 22px;
    box-shadow: 0 12px 36px #1c2a2214;
}
.login__card h1 { margin: .15rem 0 .2rem; font-family: Fraunces, Georgia, serif; font-size: 2rem; }
.login__card p { margin: 0; color: #5f7368; }
.login__card label, .user-form label { display: grid; gap: .3rem; color: #5f7368; font-size: .85rem; }
.login__card input, .user-form input[type="text"], .user-form input[type="password"], .user-form input:not([type="checkbox"]) {
    padding: .6rem .7rem;
    color: #1c2a22;
    font: inherit;
    background: #fff;
    border: 1px solid #1c2a221a;
    border-radius: 10px;
}
.user-form fieldset { margin: 0; padding: .8rem .9rem; border: 1px solid #1c2a221a; border-radius: 14px; }
.user-form legend { padding: 0 .3rem; color: #1c2a22; font-weight: 700; }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: .45rem; margin: .35rem 0; color: #1c2a22 !important; }
.presets { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.user-list { list-style: none; margin: .4rem 0 0; padding: 0; }
.user-list li { padding: .75rem 0; border-top: 1px solid #1c2a221a; }
.user-list li.is-selected { margin: 0 -.4rem; padding-left: .4rem; padding-right: .4rem; background: #fbf6ee; border-radius: 12px; }
.user-list__head, .user-list__head div { display: flex; justify-content: space-between; gap: .6rem; align-items: center; }
.user-list__head div { flex-direction: column; align-items: flex-start; gap: .1rem; }
.user-list__head .exec-dash__btn { padding: .35rem .75rem; font-size: .82rem; }
.user-list span, .user-list em { color: #5f7368; font-size: .84rem; font-style: normal; }
.user-list p { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0 0; }
.user-list em { padding: .1rem .4rem; background: #f3f6f4; border-radius: 999px; }
.note { color: #9a3d2a; }
.back { margin: 0 0 .8rem; }
.back a {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .45rem .9rem;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}
.flash {
    margin: 0 0 1rem;
    padding: .75rem .9rem;
    color: #1f6b47;
    background: #2f8a5f24;
    border-radius: 12px;
}
.flash-error { color: #9a3d2a; background: #c45a4024; }
.upload { display: grid; gap: .9rem; max-width: 640px; }
.drop { display: grid; gap: .35rem; color: var(--muted); font-size: .85rem; }
.actions { margin-top: .4rem; }
.actions form { margin: 0; }
.rank-inline { margin-top: .8rem; font-family: Fraunces, Georgia, serif; font-size: 2.4rem; color: var(--gold); }
.exec-dash a:not(.score):not(.exec-dash__btn),
.exec-dash a:not(.score):not(.exec-dash__btn):visited {
    color: #5f7368;
    text-decoration: none;
}
.exec-dash a:not(.score):not(.exec-dash__btn):hover {
    color: #1c2a22;
}
.months a.is-selected,
.months a.is-selected:visited,
.months a.is-selected:hover {
    color: #1a1405;
}
.back a,
.back a:visited,
.back a:hover {
    color: #1c2a22;
}

@page {
    margin: 0;
}

@media print {
    .brand-hub__bar, .back, .actions, .no-print, .flash { display: none !important; }
    .exec-dash-active, .brand-hub { background: #fff !important; min-height: 0; }
    .exec-dash { width: auto; padding: 14mm 12mm; }
    .exec-dash__panel, .finding-block { box-shadow: none; }
    .finding-grid { grid-template-columns: 1fr 1fr; }
    .finding-block, .exec-dash__alert { break-inside: avoid; }
    a { color: #1c2a22 !important; }
}

@media screen and (width <= 980px) {
    .exec-dash__insight, .exec-dash__grid-2, .finding-grid { grid-template-columns: 1fr; }
    .brand-hub__bar { align-items: stretch; }
}
