@font-face {
    font-family: "Win Devanagari";
    src: url("fonts/noto-devanagari.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0900-097F,U+1CD0-1CF4,U+1CF7-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B0A;
}
:root {
    color-scheme: light;
    --ink: #151d35;
    --navy: #10172f;
    --muted: #515b72;
    --line: #e0e3ef;
    --surface: #fff;
    --canvas: #f5f5fa;
    --accent: #403ba0;
    --accent-dark: #312d81;
    --accent-soft: #efeeff;
    --green: #117452;
    --shadow: 0 10px 30px #1426400b;
    --radius: 19px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font: 15px/1.55 "Win Devanagari", system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #759af1; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.22; letter-spacing: -.04em; }
h3 { font-size: 17px; line-height: 1.35; }
.shell { width: min(1440px, calc(100% - 80px)); margin-inline: auto; }
section[id] { scroll-margin-top: 94px; }

.skip-link { position: fixed; z-index: 9; top: 9px; left: 9px; padding: 8px 14px; border-radius: 8px; background: var(--navy); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.top { position: sticky; z-index: 4; top: 0; background: #fffffffc; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 73px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 27px; font-weight: 790; letter-spacing: -1.4px; white-space: nowrap; }
.logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--navy); color: white; font-size: 18px; letter-spacing: 0; }
.accent { color: var(--accent); }
.desktop { min-width: 0; display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.7vw, 25px); }
.desktop a { color: var(--muted); padding: 10px 4px; white-space: nowrap; font-weight: 650; }
.desktop a:hover, .desktop a[aria-current] { color: var(--accent); }
.desktop a[aria-current] { box-shadow: inset 0 -2px var(--accent); }
#account .button { max-width: 40vw; overflow-wrap: anywhere; }

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, .6fr);
    align-items: end;
    gap: clamp(22px, 5vw, 80px);
    min-height: 395px;
    margin-top: 25px;
    padding: clamp(32px, 4.4vw, 67px);
    border-radius: 26px;
    overflow: hidden;
    isolation: isolate;
    background: #10172f;
    color: white;
}
.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg,#10172f 3%,#10172ff2 30%,#10172f6b 79%), var(--hero-photo, none), url("hero-parliament-v6.webp") right 54% / auto 155% no-repeat;
    content: "";
}
.hero-admin-preview { display: block; width: min(100%, 440px); max-height: 180px; object-fit: cover; border: 1px solid #dce4ef; border-radius: 12px; margin: 4px 0 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .015em; font-weight: 750; }
.hero .eyebrow { color: #d3e0fb; }
.eyebrow i, .live-dot, .status.open::before { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #62d7aa; content: ""; flex: none; }
.hero h1 { margin: 15px 0 14px; font-size: clamp(48px, 5.9vw, 85px); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; }
.hero em { color: #ffda99; font-style: normal; }
.hero-copy p { color: #dfE7f6; max-width: 430px; font-size: clamp(15px, 1.4vw, 18px); }
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 25px; }
.hero .primary { background: #f8cf83; color: #281b0b; border-color: transparent; }
.hero .primary:hover { background: #ffe1aa; }
.hero .hero-secondary { background: #1427469e; color: white; border-color: #9ab1d278; }
.hero-stats { display: grid; gap: 1px; overflow: hidden; border: 1px solid #d0dff747; border-radius: 16px; background: #94acd258; max-width: 290px; justify-self: end; width: 100%; }
.hero-stats > div { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 11px 15px; background: #132441e8; color: #e3ecfa; }
.hero-stats strong { color: white; font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.hero-stats .active-stat { justify-content: flex-start; }
.hero-stats .active-stat strong { margin-inline-start: auto; }
.quick-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.quick-links a { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 13px; min-height: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.quick-links a:hover { border-color: #aaa0e3; box-shadow: 0 8px 22px #39347d14; }
.quick-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); font-size: 22px; color: var(--accent); }
.quick-links strong, .quick-links small { display: block; }
.quick-links small { color: var(--muted); font-size: 12px; }
.quick-links b { color: #5975a7; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font-weight: 700; text-align: center; }
.button:hover { border-color: var(--accent); color: var(--accent); }
.primary, .primary:hover { background: var(--accent); color: white; border-color: transparent; }
.primary:hover { background: var(--accent-dark); }
.survey-section, #workspace { margin-top: clamp(28px, 3.6vw, 54px); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 13px; margin-bottom: 13px; }
.section-title .hint { margin-top: 5px; }
.search { display: flex; align-items: center; gap: 8px; background: white; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; color: var(--muted); }
.search span { font-size: 21px; }
.search input { min-height: 44px; background: none; border: 0; width: min(245px, 30vw); }
.survey-toolbar, .geo-browser, .results, .poll-rail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.survey-toolbar, .geo-browser, .results { padding: 20px; }
.survey-toolbar { margin-bottom: 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters:empty { display: none; }
.filters .button { min-height: 36px; padding-block: 4px; font-size: 14px; }
.filters .selected, .button[aria-pressed="true"]:not(.primary) { background: var(--accent-soft); border-color: #a6b9e7; color: var(--accent-dark); }
.scope-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 13px 0; }
.scope-row label { display: grid; gap: 4px; min-width: 0; flex: 1 1 185px; }
.scope-row input, .scope-row select, form input, form select, form textarea, .admin-picker select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); }
.scope-row select:disabled { background: #f2f5fa; color: #637289; }
.layout { display: grid; grid-template-columns: minmax(210px, .92fr) minmax(0, 2.45fr); gap: 14px; align-items: start; }
.poll-rail { padding: 13px; min-width: 0; }
.rail-head, .candidate-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 2px 10px; }
#poll-list { display: grid; gap: 7px; max-height: 560px; overflow: auto; padding: 4px; margin: -4px; }
.poll { display: block; width: 100%; padding: 10px 12px; text-align: left; color: var(--ink); background: #f8fafd; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.poll small, .poll strong { display: block; }
.poll:hover, .poll.selected { border-color: #a2b6e5; background: var(--accent-soft); }
.poll.selected { box-shadow: inset 3px 0 var(--accent); }
.poll-empty { padding: 8px; }
.results { min-width: 0; overflow-wrap: anywhere; }
.result-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.result-head h2 { font-size: clamp(23px, 2.8vw, 32px); }
.result-head .button { min-width: 42px; padding-inline: 10px; }
.poll small, .meta, .hint, label { color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.status, .label { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; background: var(--accent-soft); color: var(--accent-dark); border-radius: 100px; font-size: 12px; font-weight: 720; }
.status { background: #edf0f5; color: #46556b; }
.status.open { background: #e8f7f0; color: var(--green); }
.status.open::before { height: 6px; width: 6px; background: var(--green); }
.summary { margin: 15px 0 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 10px; background: #eef3fa; padding: 10px 13px; color: var(--muted); }
.summary strong { color: var(--ink); flex-shrink: 0; }
.vote-locked { margin-bottom: 12px; }
.candidates { display: grid; gap: 8px; }
.candidate { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 20px; font-weight: 800; }
.candidate-main { min-width: 0; }
.profile { padding: 0; border: 0; color: var(--ink); background: none; font-weight: 800; text-align: left; }
.profile:hover { text-decoration: underline; }
.share { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.share strong { min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
progress { appearance: none; display: block; width: 100%; min-width: 0; height: 7px; border: 0; border-radius: 20px; background: #e6edf7; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: #e6edf7; border-radius: 20px; }
progress::-webkit-progress-value { background: #5149b7; border-radius: 20px; }
progress::-moz-progress-bar { background: #5149b7; border-radius: 20px; }
.party { margin: 12px 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; }
.party summary { cursor: pointer; font-weight: 700; }
.party-row { display: grid; grid-template-columns: minmax(0,1fr) auto 62px; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.party-row small { text-align: right; color: var(--muted); }
.party-row:last-child { border: 0; }

.geo-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.geo-stats span { padding: 7px 10px; border-radius: 8px; background: var(--accent-soft); }
.geo-title { margin-bottom: 9px; }
.district-list { display: flex; flex-wrap: wrap; gap: 7px; max-height: 310px; overflow: auto; padding: 4px; margin: 8px 0; }
.state-list .button small { color: var(--muted); }
.exit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.exit-party { padding: 8px 0; border-bottom: 1px solid var(--line); }
.exit-party > div:first-child { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.exit-party span { color: var(--muted); font-size: 13px; text-align: right; }
.exit-method { margin-top: 12px; white-space: pre-line; }
.home-ad:empty { display: none; }
.ad-unit { margin-top: 19px; }
.ad-unit > .hint { font-size: 12px; }

#workspace { margin-bottom: 26px; }
body:not([data-screen="workspace"]) #workspace { display: none; }
body[data-screen="workspace"] main > :is(.home-screen,.home-ad,.survey-section) { display: none; }
.workspace-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 25px; border-radius: var(--radius); background: linear-gradient(112deg,#151831,#343078 105%); color: white; }
.workspace-head h2 { margin-top: 6px; }
.workspace-head p { margin-top: 6px; color: #dcdcf5; }
.workspace-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin: 13px 0; }
.workspace-metrics > div { display: grid; min-width: 0; gap: 4px; padding: 11px 15px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.workspace-metrics strong { font-size: clamp(22px, 3vw, 31px); line-height: 1.12; font-variant-numeric: tabular-nums; }
.workspace-metrics span { color: var(--muted); }
.workspace-layout { display: grid; grid-template-columns: minmax(170px,210px) minmax(0,1fr); gap: 13px; align-items: start; }
.workspace-nav { position: sticky; top: 86px; display: grid; gap: 6px; padding: 9px; background: var(--navy); border-radius: 13px; }
.workspace-nav button { min-height: 44px; padding: 7px 10px; background: transparent; color: #dce8fb; border: 0; border-radius: 8px; text-align: left; font-weight: 700; }
.workspace-nav button:hover, .workspace-nav button[aria-pressed="true"] { background: #dce8ff; color: #173b83; }
.workspace-content > section { display: none; padding: 19px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.workspace-content h2 { font-size: clamp(22px,2.4vw,29px); }
[data-panel="admin"] #admin, [data-panel="geo-admin"] #geo-admin, [data-panel="seo-admin"] #seo-admin { display: block; }
.admin-picker { display: grid; gap: 4px; min-width: 0; width: min(280px,100%); }
.admin-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 13px; }
.admin-layout form { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafd; }
.admin-layout form .scope-row { margin: 0; }
.admin-reports { display: grid; gap: 7px; margin-top: 9px; }
form { display: grid; gap: 10px; }
form label { display: grid; gap: 4px; font-weight: 640; }
form input[type=file] { padding-inline: 5px; }
.checkbox-label { display: flex; align-items: center; gap: 7px; }
.checkbox-label input { min-height: auto; width: auto; }
.seo-import { margin-top: 13px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 7px; }
#notice { padding: 11px 15px; margin-block: 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); }
.error { color: #a32644; }
dialog { width: min(460px,calc(100% - 28px)); max-height: calc(100dvh - 30px); overflow: auto; border: 0; border-radius: 17px; padding: 20px; box-shadow: 0 18px 70px #0715286b; color: var(--ink); }
dialog::backdrop { background: #091a34a0; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.dialog-head button { padding: 4px 10px; border: 0; border-radius: 7px; background: var(--accent-soft); color: var(--ink); }
.dialog-content { display: grid; gap: 10px; }

.footer { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; margin-top: 35px; padding: 20px 0 26px; border-top: 1px solid var(--line); }
.footer p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.discovery { display: flex; flex-wrap: wrap; justify-content: end; gap: 5px 9px; font-size: 13px; }
.discovery a, .official-link a, .browse-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.tabs { display: none; }
.browse-nav { justify-content: flex-start; flex-wrap: wrap; }
.browse-page { margin-top: 22px; }
.browse-page h1 { font-size: clamp(27px,5vw,47px); line-height: 1.18; }
.browse-page h2 { font-size: clamp(21px,3vw,30px); margin-top: 20px; }
.browse-page p { margin: 7px 0; }
.browse-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 13px; }
.browse-list li { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere; }
.topic-tags { color: var(--accent); overflow-wrap: anywhere; }
.official-link { margin: 17px 0 22px; }

@media (max-width: 1100px) {
    .shell { width: calc(100% - 44px); }
    .hero { min-height: 330px; padding: 34px; }
    .quick-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .workspace-layout { grid-template-columns: minmax(155px,175px) minmax(0,1fr); }
}

@media (min-width: 701px) and (max-width: 880px) {
    .bar { gap: 10px; }
    .desktop { gap: 6px; font-size: 13px; }
    .desktop a { padding-inline: 3px; }
    .layout { grid-template-columns: minmax(180px,.85fr) minmax(0,2fr); gap: 10px; }
    .workspace-layout { grid-template-columns: 1fr; }
    .workspace-nav { position: static; display: flex; flex-wrap: wrap; }
}

@media (max-width: 700px) {
    .shell { width: calc(100% - 26px); }
    .bar { min-height: 59px; gap: 9px; }
    .top { padding-top: env(safe-area-inset-top); }
    .brand { font-size: 24px; gap: 6px; }
    .logo { width: 33px; height: 33px; border-radius: 8px; }
    .desktop { display: none; }
    body[data-screen]:not([data-screen="home"]) .home-screen { display: none; }
    body[data-screen]:not([data-screen="surveys"]) #surveys,
    body[data-screen]:not([data-screen="directory"]) #directory,
    body[data-screen]:not([data-screen="exit-section"]) #exit-section { display: none; }
    .hero { margin-top: 11px; padding: 22px 17px 15px; min-height: auto; grid-template-columns: 1fr; gap: 19px; border-radius: 17px; }
    .hero::before { background: linear-gradient(90deg,#10172ff0,#10172fa3), var(--hero-photo, none), url("hero-parliament-v6.webp") 66% center / cover no-repeat; }
    .hero h1 { font-size: clamp(37px,10.2vw,62px); margin: 13px 0 10px; }
    .hero-copy p { font-size: 14px; max-width: 370px; }
    .hero-actions { margin-top: 15px; }
    .hero-stats { max-width: none; grid-template-columns: repeat(3,minmax(0,1fr)); }
    .hero-stats > div, .hero-stats .active-stat { display: flex; flex-direction: column-reverse; justify-content: start; align-items: start; gap: 3px; padding: 7px 8px; font-size: 11px; }
    .hero-stats strong, .hero-stats .active-stat strong { font-size: 19px; margin: 0; }
    .hero-stats .live-dot { display: none; }
    .quick-links { gap: 7px; margin-top: 9px; }
    .quick-links a { min-height: 64px; padding: 8px; gap: 7px; grid-template-columns: 29px minmax(0,1fr); font-size: 13px; }
    .quick-icon { width: 29px; height: 32px; border-radius: 8px; font-size: 17px; }
    .quick-links small { font-size: 10px; }
    .quick-links b { display: none; }
    .survey-section, #workspace { margin-top: 15px; }
    .section-title { align-items: stretch; flex-direction: column; gap: 8px; margin-bottom: 10px; }
    .search input { width: 100%; }
    .survey-toolbar, .geo-browser, .results { padding: 12px; border-radius: 13px; }
    .scope-row { gap: 7px; margin: 9px 0; }
    .scope-row label { flex-basis: 130px; font-size: 13px; }
    .scope-row select, .scope-row input, form input, form textarea, form select { font-size: 16px; }
    .layout, .exit-grid, .workspace-layout, .admin-layout, .browse-list { grid-template-columns: 1fr; }
    .poll-rail { padding: 8px; border-radius: 12px; }
    #poll-list { grid-auto-flow: column; grid-auto-columns: minmax(150px,72%); scroll-snap-type: x proximity; padding: 4px 4px 9px; }
    .poll { scroll-snap-align: start; }
    .candidate { grid-template-columns: 37px minmax(0,1fr) auto; padding: 7px; gap: 7px; }
    .avatar { width: 37px; height: 37px; border-radius: 8px; }
    .candidate .button { min-height: 39px; font-size: 13px; padding-inline: 6px; }
    .candidate .meta { font-size: 12px; }
    .label { font-size: 11px; }
    .summary { font-size: 13px; }
    .workspace-head { padding: 13px; }
    .workspace-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
    .workspace-metrics > div { padding: 8px 10px; }
    .workspace-nav { position: static; display: flex; gap: 5px; overflow-x: auto; }
    .workspace-nav button { padding-inline: 8px; white-space: nowrap; font-size: 13px; }
    .workspace-content > section { padding: 11px; border-radius: 12px; }
    .footer { grid-template-columns: 1fr; margin-top: 20px; padding-top: 13px; padding-bottom: calc(78px + env(safe-area-inset-bottom)); gap: 9px; }
    .discovery { justify-content: start; }
    .tabs { position: fixed; z-index: 5; inset: auto 0 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); background: white; border-top: 1px solid var(--line); box-shadow: 0 -4px 22px #14264012; padding: 5px 5px calc(5px + env(safe-area-inset-bottom)); }
    .tabs :is(a,button) { display: grid; justify-items: center; gap: 1px; padding: 2px 0 4px; min-height: 47px; background: white; border: 0; border-radius: 9px; color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.15; }
    .tabs [aria-current] { background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; }
    .tabs span { font-size: 21px; line-height: 1.1; }
    section[id] { scroll-margin-top: calc(68px + env(safe-area-inset-top)); }
}

@media (prefers-reduced-motion: no-preference) {
    .button, .quick-links a, .poll, .workspace-nav button { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
    dialog[open] { animation: reveal-dialog .16s ease-out; }
    @keyframes reveal-dialog {
        from { opacity: 0; transform: translateY(6px); }
        to { opacity: 1; transform: none; }
    }
}

.reader-guide {
    display: grid;
    grid-template-columns: minmax(155px,.65fr) minmax(0,2.6fr);
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}
.reader-guide h2 { font-size: clamp(18px,2.3vw,24px); }
.reader-guide ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.reader-guide li { display: grid; gap: 2px; padding-left: 11px; border-left: 2px solid #d6cff5; }
.reader-guide li span { color: var(--muted); font-size: 13px; }
.status.open { background: #e6f6ee; }
.candidate-leading { border-color: #bab0e9; background: #f8f6ff; }
.workspace-overview { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0,1.35fr); gap: 13px; margin-bottom: 14px; }
.workspace-overview article { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.metric-icon { display: grid; place-items: center; width: 31px; height: 31px; background: var(--accent-soft); color: var(--accent) !important; font-size: 19px; border-radius: 8px; }
.status-meter { margin-top: 9px; }
.status-meter > div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; color: var(--muted); }
.status-meter strong { color: var(--ink); }
.workspace-recent { display: grid; gap: 5px; margin-top: 8px; }
.workspace-recent button { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--line); background: #faf9fd; border-radius: 8px; color: var(--ink); text-align: left; overflow-wrap: anywhere; }
.workspace-recent button:hover { border-color: #a99ce1; }
.workspace-recent small { display: block; color: var(--muted); }
.workspace-recent .status { flex-shrink: 0; }
@media (max-width:700px) {
    .reader-guide { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
    .reader-guide ol { grid-template-columns: 1fr; gap: 6px; }
    .workspace-overview { grid-template-columns: 1fr; gap: 7px; }
    .workspace-head { flex-wrap: wrap; }
}

.header-actions { display:flex; align-items:center; gap:8px; }
.mobile-menu-button { display:none; }
.hamburger { width:16px; height:12px; border-block:2px solid currentColor; position:relative; }
.hamburger::after { content:""; position:absolute; top:3px; inset-inline:0; border-top:2px solid currentColor; }
#navigation-sheet { margin:0 0 0 auto; height:100dvh; max-height:100dvh; width:min(340px,89vw); border-radius:18px 0 0 18px; padding-top:max(20px,env(safe-area-inset-top)); }
#navigation-sheet h2 { font-size:23px; }
.sheet-links { display:grid; gap:7px; }
.sheet-links a { display:flex; gap:12px; align-items:center; padding:10px; border-radius:11px; font-weight:700; background:#f8f7fd; }
.sheet-links a[aria-current] { background:var(--accent-soft); color:var(--accent-dark); }
.sheet-links i,.insight-icon { display:inline-grid; place-items:center; width:33px; height:33px; flex:none; border-radius:9px; background:var(--accent-soft); color:var(--accent); font:700 20px/1 system-ui,sans-serif; }
.exit-banner { min-height:155px; align-items:end; border-radius:19px; padding:18px 24px; color:white; background:linear-gradient(90deg,#121733 0%,#121733df 49%,#1217334d),url("exit-fieldwork.webp") right 53% / cover no-repeat,#121733; }
.exit-banner .hint { color:#e2e6f4; }
.exit-banner h2 { margin-top:8px; }
.exit-grid { align-items:start; }
.exit-card { border-top:3px solid #7771c7; }
.report-title { display:flex; align-items:center; gap:10px; }
.report-title h3 { font-size:clamp(17px,2.3vw,23px); }
.report-fold { margin:12px 0; border:1px solid var(--line); background:#f9f8fe; border-radius:11px; overflow:hidden; }
.report-fold summary, .embedded-map summary { cursor:pointer; font-weight:700; padding:9px 11px; }
.method-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; border-top:1px solid var(--line); background:var(--line); }
.method-grid > div { display:grid; align-content:start; gap:3px; padding:9px 11px; background:white; }
.method-grid span { color:var(--muted); white-space:pre-line; overflow-wrap:anywhere; }
.seat-list { display:grid; gap:6px; padding:7px; max-height:390px; overflow:auto; }
.seat-row { display:flex; justify-content:space-between; align-items:start; gap:8px; padding:8px; border-radius:8px; border:1px solid var(--line); background:white; }
.seat-row .label { flex-shrink:0; }
.seat-row :is(.meta,small) { display:block; color:var(--muted); }
.map-card { margin-top:10px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:7px; padding:8px; border:1px solid var(--line); border-radius:10px; background:#fafaff; }
.embedded-map { grid-column:1/-1; }
.embedded-map iframe { border:0; width:100%; height:320px; border-radius:9px; }
.district-item { display:flex; gap:3px; }
.map-icon { padding-inline:8px; color:var(--accent); }
@media(max-width:700px) {
    .mobile-menu-button { display:inline-flex; }
    #account .button { max-width:29vw; }
    .exit-banner { min-height:136px; padding:13px; }
    .method-grid { grid-template-columns:1fr; }
}
.report-permalink { display:inline-flex; color:var(--accent); font-weight:700; margin-top:10px; }
#results .map-card { margin-bottom:8px; }

.ui-icon {
    width: 21px; height: 21px; display: inline-block; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.65;
    stroke-linecap: round; stroke-linejoin: round; vertical-align: middle;
}
.quick-icon { border: 1px solid #e0dbff; border-radius: 13px; background: linear-gradient(145deg,#fafaff,#e7e2ff); box-shadow: 0 2px 5px #24165915; }
.quick-icon .ui-icon { width:23px; height:23px; }
.quick-icon.icon-leader { color:#78531c; border-color:#f1ddbc; background:linear-gradient(140deg,#fff9ee,#f7e6bf); }
.quick-icon.icon-region { color:#17644c; border-color:#cae5d9; background:linear-gradient(140deg,#f2fbf7,#daf0e6); }
.quick-icon.icon-exit { color:#754378; border-color:#ebd8ef; background:linear-gradient(140deg,#fdf7ff,#f3dff2); }
.quick-links a:hover .quick-icon { border-color: currentColor; }
.quick-links b .ui-icon, .hero-actions .ui-icon, .report-actions .ui-icon { width:17px; height:17px; }
.sheet-links .ui-icon, .workspace-nav .ui-icon { width:19px; height:19px; }
.workspace-nav button { display:flex; align-items:center; gap:8px; }
.dialog-head button { min-width:38px; min-height:37px; }
.report-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:end; gap:6px; }
.report-actions .button { white-space:nowrap; }
.report-permalink { background:var(--accent-soft); color:var(--accent-dark); }
.browse-list a:has(.ui-icon) { display:flex; align-items:center; gap:7px; text-decoration:none; }
.browse-list a:has(.ui-icon) span { flex:1; }
.browse-list a:hover { text-decoration:underline; }
.admin-entry-link { display:inline-flex; gap:6px; align-items:center; color:var(--accent-dark); font-weight:750; }
@media(max-width:700px){
    .tabs .ui-icon { width:21px; height:21px; }
    .quick-icon .ui-icon { width:18px; height:18px; }
    .report-actions { display:grid; grid-template-columns:1fr; }
    .report-actions .button { min-height:35px; min-width:35px; padding-inline:6px; }
    .report-actions .button span { font-size:12px; }
}

/* Win % premium report index, motion, and contact system */
.hero { box-shadow: 0 24px 70px #10172f2b; }
.hero::after { position:absolute; z-index:-1; inset:auto -8% -42% auto; width:410px; aspect-ratio:1; border:1px solid #ffffff24; border-radius:50%; box-shadow:0 0 0 42px #ffffff08,0 0 0 84px #ffffff06,0 0 0 126px #ffffff04; content:""; pointer-events:none; }
.hero h1 { max-width:780px; }
.slider-line { display:block; min-height:1.08em; }
.slider-line em { display:inline-block; text-shadow:0 4px 24px #ffd9873d; }
.slider-line em.is-changing { animation:headline-in .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes headline-in { from { opacity:0; transform:translateY(18px); filter:blur(5px); } to { opacity:1; transform:none; filter:none; } }
.report-index { margin-top:20px; padding:clamp(18px,3.2vw,34px); overflow:hidden; border:1px solid #dce3f0; border-radius:22px; background:radial-gradient(circle at 96% 0,#e6e7ff 0,transparent 33%),linear-gradient(135deg,#fff 5%,#f8f9ff 100%); box-shadow:var(--shadow); }
.report-index-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:17px; }
.report-index-head h2 { margin-top:5px; font-size:clamp(23px,3vw,32px); }
.report-index-head p { margin-top:5px; color:var(--muted); }
.report-index .eyebrow { color:#4b5180; }
.index-mark { display:grid; place-content:center; width:56px; height:56px; flex:none; border-radius:17px; background:linear-gradient(145deg,#17274f,#4b49a4); box-shadow:0 9px 22px #26316132; color:#ffe19e; text-align:center; font-size:24px; font-weight:850; }
.index-mark small { color:#fff; font-size:8px; letter-spacing:.2em; }
.report-type-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.report-type-card { position:relative; display:grid; grid-template-columns:47px minmax(0,1fr) 54px; grid-template-rows:auto auto; align-items:center; column-gap:12px; min-height:91px; overflow:hidden; padding:14px; border:1px solid #dfe4f0; border-radius:16px; background:#fff; isolation:isolate; }
.report-type-card::before { position:absolute; z-index:-1; width:150px; height:150px; right:-70px; top:-90px; border-radius:50%; background:var(--type-glow,#eeedff); content:""; }
.report-type-card:hover { transform:translateY(-2px); border-color:var(--type,#534db0); box-shadow:0 12px 28px #202b4d15; }
.type-art { grid-row:1/3; display:grid; place-items:center; width:46px; height:46px; border-radius:14px; background:var(--type-soft,#eeedff); color:var(--type,#403ba0); box-shadow:inset 0 0 0 1px #ffffff8c; }
.type-art .ui-icon { width:25px;height:25px; }
.report-type-card strong { align-self:end; font-size:16px; line-height:1.25; }
.report-type-card small { align-self:start; color:var(--muted); font-size:12px; }
.type-election { --type:#4540a1;--type-soft:#efedff;--type-glow:#dedcff; }
.type-exit { --type:#8a477c;--type-soft:#f8eaf6;--type-glow:#f0d5eb; }
.type-cm { --type:#96631e;--type-soft:#fff2d9;--type-glow:#f8e3b8; }
.type-region { --type:#167358;--type-soft:#e4f5ee;--type-glow:#d0efdf; }
.type-spark { grid-column:3; grid-row:1/3; display:flex; justify-content:center; align-items:end; gap:3px; height:40px; padding:5px 0; border-bottom:1px solid color-mix(in srgb,var(--type) 34%,transparent); }
.type-spark i { width:5px; height:var(--h,14px); border-radius:6px 6px 2px 2px; background:linear-gradient(180deg,color-mix(in srgb,var(--type) 66%,white),var(--type)); opacity:.82; }
.type-spark i:nth-child(2){--h:24px}.type-spark i:nth-child(3){--h:17px}.type-spark i:nth-child(4){--h:31px}.type-spark i:nth-child(5){--h:22px}.type-spark i:nth-child(6){--h:35px}
.contact-section { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:clamp(18px,4vw,54px); align-items:start; margin:clamp(28px,5vw,62px) auto 15px; padding:clamp(20px,4vw,42px); border:1px solid #d9e1ee; border-radius:24px; background:radial-gradient(circle at 3% 0,#e5eaff 0,transparent 33%),linear-gradient(135deg,#f8faff,#fff 62%); box-shadow:var(--shadow); }
.contact-intro h2 { margin:10px 0; font-size:clamp(29px,4vw,43px); }
.contact-intro > p { max-width:430px; color:var(--muted); }
.contact-details { display:grid; gap:9px; margin-top:21px; }
.contact-detail { display:flex; align-items:center; gap:11px; min-height:58px; padding:10px 12px; border:1px solid #e1e6f0; border-radius:13px; background:#ffffffcf; }
.contact-detail > .ui-icon { width:19px;height:19px;color:var(--accent); }
.contact-detail span { display:grid; gap:0; min-width:0; }
.contact-detail small { color:var(--muted);font-size:12px; }
.contact-detail strong { overflow-wrap:anywhere; }
.contact-detail-empty,.inbox-empty { padding:14px; border:1px dashed #cbd4e5; border-radius:12px; color:var(--muted); }
.contact-form { display:grid; gap:13px; padding:clamp(16px,2.6vw,25px); border:1px solid #e0e4ef; border-radius:19px; background:#fff; box-shadow:0 14px 40px #2434520d; }
.contact-form-heading { display:flex; align-items:center; gap:12px; }
.contact-form-heading h3 { font-size:19px; }
.contact-form-icon { display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:linear-gradient(145deg,#ecebff,#e3e9ff);color:var(--accent); }
.contact-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.contact-fields label { display:grid; gap:5px; }
.contact-form textarea { resize:vertical; }
.contact-trap { position:absolute!important; left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important; }
.management-credit { margin-top:7px!important; color:#3d4683!important; font-weight:700; }
.workspace-head { position:relative; overflow:hidden; background:radial-gradient(circle at 88% -60%,#6e6bd2 0,transparent 45%),linear-gradient(110deg,#121b38,#302e73); }
.workspace-head::after { position:absolute; width:190px;height:190px;right:10%;top:-140px;border:1px solid #ffffff2b;border-radius:50%;box-shadow:0 0 0 28px #ffffff08,0 0 0 56px #ffffff06;content:""; }
.workspace-metrics > div { position:relative; min-height:100px; padding:16px; overflow:hidden; }
.workspace-metrics .metric-icon { display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--accent-soft);color:var(--accent); }
.workspace-metrics > div > span:last-child { color:var(--muted); }
.workspace-nav { box-shadow:0 15px 30px #111c3921; }
.workspace-nav button { min-height:47px; }
.workspace-nav button[aria-pressed="true"] { box-shadow:inset 3px 0 #e5b967; }
[data-panel="site-admin"] #site-admin { display:block; }
.site-admin-metrics { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0; }
.site-admin-metrics > div { display:grid;gap:3px;padding:14px;border:1px solid var(--line);border-radius:13px;background:linear-gradient(145deg,#fff,#f7f8fe); }
.site-admin-metrics strong { font-size:28px;line-height:1.1; }
.site-admin-metrics span { color:var(--muted); }
.contact-inbox { display:grid;align-content:start;gap:10px; }
.inbox-message { display:grid;gap:7px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fff; }
.inbox-message > div { display:grid;gap:2px; }
.inbox-message small { color:var(--muted);overflow-wrap:anywhere; }
.inbox-message p { white-space:pre-wrap;overflow-wrap:anywhere; }
.inbox-message.is-read { background:#f8fafc; }
.exit-card { position:relative; overflow:hidden; }
.exit-card::before { position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#5149b7,#d1a04d,#247b61);content:""; }
.exit-card .report-title { display:flex;align-items:center;gap:10px;padding:8px 0; }
.exit-card .report-title .insight-icon { display:grid;place-items:center;width:42px;height:42px;border:1px solid #e3dbf0;border-radius:13px;background:linear-gradient(145deg,#fff,#f3eaf6);color:#854879; }
.exit-card .summary { background:linear-gradient(100deg,#f0efff,#f8f7ff); }
.exit-party progress { height:9px;accent-color:#7769c9; }
.exit-party progress::-webkit-progress-value { background:linear-gradient(90deg,#524ba7,#9b8de2); }
.exit-party progress::-moz-progress-bar { background:linear-gradient(90deg,#524ba7,#9b8de2); }
@media(max-width:900px) { .report-type-list { grid-template-columns:repeat(2,minmax(0,1fr)); }.contact-section { grid-template-columns:1fr 1fr;gap:17px;padding:22px; } }
@media(max-width:700px) {
    body[data-screen]:not([data-screen="contact"]) #contact { display:none; }
    body[data-screen]:not([data-screen="surveys"]) #surveys,body[data-screen]:not([data-screen="directory"]) #directory,body[data-screen]:not([data-screen="exit-section"]) #exit-section { display:none; }
    .hero { box-shadow:0 17px 40px #10172f25; }
    .hero::after { width:220px;right:-95px;bottom:-55%; }
    .slider-line { min-height:1.12em; }
    .report-index { margin-top:11px;padding:15px 12px;border-radius:17px; }
    .report-index-head { margin-bottom:11px; }
    .report-index-head p { max-width:280px;font-size:13px; }
    .index-mark { width:42px;height:42px;border-radius:13px;font-size:19px; }
    .report-type-list { grid-template-columns:1fr;gap:7px; }
    .report-type-card { min-height:72px;padding:9px 10px;grid-template-columns:39px minmax(0,1fr) 46px;column-gap:9px;border-radius:13px; }
    .type-art { width:38px;height:38px;border-radius:11px; }
    .type-art .ui-icon { width:21px;height:21px; }
    .report-type-card strong { font-size:14px; }
    .report-type-card small { font-size:11px; }
    .type-spark { height:32px; }
    .contact-section { grid-template-columns:1fr;gap:16px;margin-top:17px;padding:16px;border-radius:17px; }
    .contact-intro h2 { font-size:29px; }
    .contact-details { margin-top:12px;grid-template-columns:1fr 1fr;gap:7px; }
    .contact-detail { min-width:0;gap:7px;padding:8px; }
    .contact-detail strong { font-size:12px; }
    .contact-form { padding:13px;border-radius:15px; }
    .contact-fields { grid-template-columns:1fr; }
    .management-credit { font-size:12px!important; }
    .site-admin-metrics { gap:6px; }
    .site-admin-metrics > div { padding:9px; }
    .site-admin-metrics strong { font-size:22px; }
    .site-admin-metrics span { font-size:12px; }
    .tabs { grid-template-columns:repeat(6,minmax(0,1fr)); }
    .tabs :is(a,button) { font-size:10px; }
}
@media(prefers-reduced-motion:reduce) { .slider-line em.is-changing { animation:none; } }
.accounts-control { display:grid;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line); }
.account-list { display:grid;gap:6px;max-height:420px;overflow:auto; }
.account-row { display:flex;align-items:center;gap:9px;min-width:0;padding:9px;border:1px solid var(--line);border-radius:10px;background:#fff; }
.account-avatar { display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:10px;background:var(--accent-soft);color:var(--accent); }
.account-avatar .ui-icon { width:18px;height:18px; }
.account-info { display:grid;min-width:0;flex:1; }
.account-info strong,.account-info small { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.account-info small { color:var(--muted); }

/* Results presentation modeled on the requested projected-seat infographic */
.exit-visual-layout { display:grid;grid-template-columns:minmax(0,1.4fr) minmax(275px,.8fr);gap:13px;margin:13px 0 5px;align-items:stretch; }
.exit-party-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px;align-content:start; }
.exit-party-card { min-width:0;padding:12px;border:1px solid color-mix(in srgb,var(--party) 28%,#e3e8f0);border-radius:14px;background:linear-gradient(145deg,#fff 45%,color-mix(in srgb,var(--party) 8%,#fff));box-shadow:0 7px 20px #1725430b; }
.party-card-top { display:flex;align-items:center;gap:9px;min-width:0; }
.party-monogram { display:grid;place-items:center;width:43px;height:43px;flex:none;border:1px solid color-mix(in srgb,var(--party) 40%,white);border-radius:13px;background:color-mix(in srgb,var(--party) 17%,white);color:var(--party);font-size:13px;font-weight:850; }
.party-card-data { display:grid;gap:3px;min-width:0; }
.party-card-data strong { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.party-card-data small { color:var(--muted);font-size:12px; }
.party-card-bar { height:7px;margin:11px 0 8px;overflow:hidden;border-radius:9px;background:#e8ebf3; }
.party-card-bar i { display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--party),color-mix(in srgb,var(--party) 56%,white)); }
.party-card-foot { display:grid;grid-template-columns:1fr auto;gap:3px 8px;color:var(--muted);font-size:12px; }
.party-card-foot strong { color:var(--ink);font-variant-numeric:tabular-nums; }
.seat-forecast { display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:8px;padding:14px;border:1px solid #273653;border-radius:16px;background:radial-gradient(circle at 98% 0,#253366 0,transparent 44%),linear-gradient(145deg,#111a30,#0c1426);color:#f0f5ff; }
.seat-forecast .eyebrow { color:#82e4e1;font-size:11px; }
.seat-forecast h4 { margin:2px 0 0;font-size:16px; }
.seat-chart { position:relative;max-width:290px;width:100%;margin:0 auto -2px; }
.seat-chart svg { display:block;width:100%;overflow:visible; }
.seat-chart-total { position:absolute;left:50%;bottom:3px;display:grid;gap:0;transform:translateX(-50%);text-align:center;white-space:nowrap; }
.seat-chart-total strong { color:white;font-size:27px;line-height:1;font-variant-numeric:tabular-nums; }
.seat-chart-total span { color:#bdc9df;font-size:11px; }
.seat-chart-empty { display:grid;place-items:center;min-height:100px;color:#c4cde0;font-size:13px;text-align:center; }
.seat-legend { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 9px;max-height:155px;overflow:auto;padding-top:3px; }
.seat-legend > div { display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:5px;font-size:12px; }
.seat-legend i { width:8px;height:8px;border-radius:3px;background:var(--party); }
.seat-legend span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ced7e9; }
.seat-legend strong { font-variant-numeric:tabular-nums;color:#fff; }
/* Dark analytics workspace */
body[data-screen="workspace"] { background:#0a1020; }
body[data-screen="workspace"] .top { background:#0b1324; border-color:#202b41; }
body[data-screen="workspace"] .brand { color:#f0f4ff; }
body[data-screen="workspace"] .brand .accent { color:#54dce1; }
body[data-screen="workspace"] .desktop a { color:#bdc8dd; }
body[data-screen="workspace"] .desktop a:hover,body[data-screen="workspace"] .desktop a[aria-current] { color:#6de5e2; }
body[data-screen="workspace"] #account .button { border-color:#34435e;background:#16223a;color:#eaf2ff; }
body[data-screen="workspace"] #workspace { position:relative;width:100vw;max-width:none;margin:0 calc(50% - 50vw) 0;padding:24px max(18px,calc((100vw - 1440px)/2)) 40px;background:radial-gradient(ellipse at 96% -20%,#1d3560 0,transparent 38%),#0a1020;color:#eef3ff; }
body[data-screen="workspace"] .workspace-head { min-height:112px;padding:14px 4px 18px;border-bottom:1px solid #23324d;border-radius:0;background:transparent; }
body[data-screen="workspace"] .workspace-head::after { display:none; }
body[data-screen="workspace"] .workspace-head p { color:#aebbd2; }
body[data-screen="workspace"] .workspace-head .eyebrow { color:#7be4df; }
body[data-screen="workspace"] .workspace-metrics { grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:15px 0; }
body[data-screen="workspace"] .workspace-metrics > div { min-height:110px;padding:13px;border-color:#283650;border-radius:14px;background:linear-gradient(145deg,#17233b,#111a2d);box-shadow:inset 0 1px #ffffff08; }
body[data-screen="workspace"] .workspace-metrics .metric-icon { width:35px;height:35px;background:#202e4d;color:#59dee4; }
body[data-screen="workspace"] .workspace-metrics strong { color:#fff;font-size:clamp(23px,2.3vw,32px); }
body[data-screen="workspace"] .workspace-metrics > div > span:last-child { color:#aebbd2; }
body[data-screen="workspace"] .workspace-overview { grid-template-columns:minmax(180px,.76fr) minmax(280px,1.15fr) minmax(280px,1.35fr);gap:10px;margin:0 0 14px; }
body[data-screen="workspace"] .workspace-overview article { padding:14px;border-color:#283650;border-radius:14px;background:linear-gradient(145deg,#152139,#10182a);box-shadow:inset 0 1px #ffffff06; }
body[data-screen="workspace"] .workspace-overview h3,body[data-screen="workspace"] .workspace-content h2,body[data-screen="workspace"] .workspace-content h3 { color:#f2f5ff; }
body[data-screen="workspace"] .status-meter > div span,body[data-screen="workspace"] .workspace-overview .hint { color:#a9b7cf; }
body[data-screen="workspace"] .status-meter > div strong { color:#fff; }
body[data-screen="workspace"] .status-meter progress { background:#273653; }
body[data-screen="workspace"] .status-meter progress::-webkit-progress-bar { background:#273653; }
body[data-screen="workspace"] .workspace-recent button { border-color:#2b3954;background:#121d31;color:#e8efff; }
body[data-screen="workspace"] .workspace-recent button:hover { border-color:#47ccd5;background:#172640; }
body[data-screen="workspace"] .workspace-recent button small { color:#aab8d1; }
body[data-screen="workspace"] .workspace-layout { grid-template-columns:minmax(196px,220px) minmax(0,1fr);gap:11px; }
body[data-screen="workspace"] .workspace-nav { top:84px;padding:10px;border:1px solid #283650;border-radius:15px;background:linear-gradient(180deg,#14203a,#0f182a);box-shadow:0 20px 50px #0004; }
body[data-screen="workspace"] .workspace-nav button { color:#bac6dc; }
body[data-screen="workspace"] .workspace-nav button:hover,body[data-screen="workspace"] .workspace-nav button[aria-pressed="true"] { background:linear-gradient(100deg,#183950,#19324a);color:#8af1e8;box-shadow:inset 3px 0 #55dbe0; }
body[data-screen="workspace"] .workspace-content > section { padding:19px;border-color:#293751;border-radius:16px;background:linear-gradient(145deg,#141f34,#10182a);color:#dfe8fa;box-shadow:0 18px 45px #0002; }
body[data-screen="workspace"] .workspace-content .hint,body[data-screen="workspace"] .workspace-content label,body[data-screen="workspace"] .workspace-content small { color:#aab8d0; }
body[data-screen="workspace"] .admin-layout form { border-color:#2b3953;border-radius:13px;background:#17233a; }
body[data-screen="workspace"] .admin-layout h3 { color:#f1f5ff; }
body[data-screen="workspace"] .admin-layout input,body[data-screen="workspace"] .admin-layout select,body[data-screen="workspace"] .admin-layout textarea,body[data-screen="workspace"] .workspace-content .admin-picker select { border-color:#394864;background:#0d172a;color:#f2f5fb; }
body[data-screen="workspace"] .admin-layout input::placeholder,body[data-screen="workspace"] .admin-layout textarea::placeholder { color:#8999b5; }
body[data-screen="workspace"] .workspace-content .button:not(.primary) { border-color:#394864;background:#17243b;color:#e2ebfa; }
body[data-screen="workspace"] .workspace-content .button:not(.primary):hover { border-color:#58d7da;color:#76e7e3; }
body[data-screen="workspace"] .site-admin-metrics > div,body[data-screen="workspace"] .account-row,body[data-screen="workspace"] .inbox-message { border-color:#2b3a54;background:#17233a;color:#eef3ff; }
body[data-screen="workspace"] .site-admin-metrics span,body[data-screen="workspace"] .account-info small,body[data-screen="workspace"] .inbox-message small { color:#aab9d0; }
body[data-screen="workspace"] .footer { display:none; }
.admin-chart-card { min-width:0; }
.chart-card-head { display:flex;justify-content:space-between;align-items:end;gap:7px; }
.chart-card-head > strong { color:#fff;font-size:13px;white-space:nowrap; }
.admin-kicker { color:#68dce0;font-size:10px;letter-spacing:.15em;font-weight:800; }
.admin-bar-chart { display:block;width:100%;height:auto;margin-top:6px;overflow:visible; }
.admin-bar-chart text { fill:#a8b6ce;font-size:10px;font-family:system-ui,sans-serif; }
.chart-key { display:flex;justify-content:space-between;gap:6px;color:#aab8d0;font-size:11px; }
.chart-key > span:first-child { display:flex;align-items:center;gap:5px; }
.chart-key i { width:7px;height:7px;border-radius:50%;background:#42d2da; }
body[data-screen="workspace"] .admin-chart-card .status-meter { border-color:#273550; }
body[data-screen="workspace"] .workspace-content .label { border:1px solid #364965;background:#1b2a45;color:#bdcfff; }
body[data-screen="workspace"] .contact-detail { border-color:#2c3d58;background:#15233b;color:#eff4ff; }
body[data-screen="workspace"] .inbox-empty,body[data-screen="workspace"] .contact-detail-empty { border-color:#354560;color:#abbad2; }
@media(max-width:1150px) { body[data-screen="workspace"] .workspace-overview { grid-template-columns:repeat(2,minmax(0,1fr)); } body[data-screen="workspace"] .workspace-recent-card { grid-column:1/-1; } }
@media(max-width:880px) { body[data-screen="workspace"] .workspace-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); } body[data-screen="workspace"] .workspace-layout { grid-template-columns:1fr; } body[data-screen="workspace"] .workspace-nav { position:static;display:flex;overflow-x:auto; } }
@media(max-width:700px) {
    body[data-screen="workspace"] #workspace { padding:15px 13px calc(85px + env(safe-area-inset-bottom)); }
    body[data-screen="workspace"] .workspace-head { min-height:unset;align-items:start;padding:7px 2px 14px; }
    body[data-screen="workspace"] .workspace-head .button { min-height:36px;padding:6px 9px;font-size:12px; }
    body[data-screen="workspace"] .workspace-metrics { grid-template-columns:repeat(2,minmax(0,1fr));gap:7px; }
    body[data-screen="workspace"] .workspace-overview { grid-template-columns:1fr;gap:7px; }
    body[data-screen="workspace"] .workspace-recent-card { grid-column:auto; }
    body[data-screen="workspace"] .workspace-content > section { padding:12px; }
    body[data-screen="workspace"] .workspace-nav { flex-wrap:nowrap; }
    body[data-screen="workspace"] .workspace-nav button { flex:none; }
    .exit-visual-layout { grid-template-columns:1fr; }
    .exit-party-grid { grid-template-columns:1fr; }
    .seat-forecast { grid-row:1; }
    .seat-chart { max-width:260px; }
    .seat-legend { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
body[data-screen="workspace"] main > :is(.home-screen,.home-ad,.survey-section,.contact-section) { display:none; }
@media(max-width:1150px){body[data-screen="workspace"] .workspace-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
