:root {
  color-scheme: light;
  --ink:#003057; --muted:#506477; --line:#d9e5ef; --surface:#fff; --paper:#f4f8fb;
  --brand:#0033a0; --brand-dark:#002779; --aqua:#00aec7; --yellow:#e3e829; --navy:#003057; --radius:18px;
  --font:Inter,"Segoe UI",Arial,sans-serif;
}
*,*::before,*::after {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0;min-width:300px;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.48}
h1,h2,h3,p {margin:0}
h1,h2,h3 {line-height:1.16;letter-spacing:-.035em}
h1 {font-size:clamp(31px,4vw,45px);font-weight:750}
h2 {font-size:20px;font-weight:750}
h3 {font-size:17px}
a {color:var(--brand-dark);text-decoration:none}
a:hover {text-decoration:underline}
button,input,select,textarea {font:inherit}
button {cursor:pointer}
button:disabled {cursor:not-allowed;opacity:.55}
:focus-visible {outline:3px solid #006bb4;outline-offset:4px}
svg {flex:none;vertical-align:middle}
.visually-hidden {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.muted {color:var(--muted)}
.button {min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:10px;padding:0 15px;font-weight:700;font-size:13px;white-space:nowrap;line-height:1.15;text-decoration:none!important;transition:background .15s,border-color .15s}
.button.primary {background:var(--brand);color:#fff;box-shadow:0 3px 8px #0033a02e}
.button.primary:hover {background:var(--brand-dark)}
.button.ghost {color:var(--ink);border-color:var(--line);background:#fff}
.button.ghost:hover {border-color:#8ab8d9;background:#f3faff}
.button.danger {background:#fff1f1;color:#a12d44;border-color:#f5c7cd}
.button.small {min-height:36px;padding:0 11px;font-size:12px}
.button.wide {width:100%;min-height:53px;font-size:15px;justify-content:space-between;padding:0 17px}
.actions,.table-actions {display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.table-actions {gap:13px}
.text-button,.subtle-link,.back-link {display:inline-flex;align-items:center;gap:7px;background:transparent;border:none;color:var(--brand-dark);font-size:13px;font-weight:700;padding:0}
.text-button:hover {text-decoration:underline}
.back-link {color:#46637a;margin:0 0 17px}
.brand {display:inline-flex;align-items:center;gap:11px;color:var(--ink);line-height:1.16;font-size:17px;font-weight:750;letter-spacing:-.03em;text-decoration:none!important}
.brand strong {display:block;font-size:12px;font-weight:530;letter-spacing:0;margin-top:2px}
.brand-mark {width:38px;height:38px;flex:none;display:grid;grid-template-columns:repeat(2,7px);grid-template-rows:repeat(2,7px);gap:3px;place-content:center;border-radius:11px;background:linear-gradient(145deg,#0751bc,#0033a0);box-shadow:0 5px 17px #0033a038}
.brand-mark i {display:block;background:#fff;border-radius:2px}
.brand-mark i:nth-child(2) {background:#82dcec}
.brand-mark i:nth-child(3) {background:#d4edfa}
.brand-mark i:nth-child(4) {background:#4ec3e0}
.pill,.event-status {display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:50px;color:#00478d;background:#e8f3fc;font-weight:700;font-size:11px;line-height:1.25}
.pill i,.event-status i {width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
.pill.neutral,.event-status.draft,.event-status.closed,.event-status.archived {background:#eef0f8;color:#5d637c}
.pill.green,.event-status.open {background:#e3f8ed;color:#12704d}
.soft-icon {width:39px;height:39px;display:inline-grid;place-items:center;flex:none;border-radius:11px}
.soft-icon.accent {background:#e4f2fd;color:#0033a0}
.soft-icon.blue {background:#e8efff;color:#0755a2}
.soft-icon.cyan {background:#e2f8fc;color:#05748d}
.soft-icon.green {background:#e1f7ec;color:#158157}
.panel {background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 3px 10px #00305709}
.hero {isolation:isolate;position:relative;overflow:hidden;color:#fff;border-radius:20px;background:linear-gradient(112deg,var(--navy),var(--brand) 78%);min-width:0}
.hero::before {position:absolute;width:420px;height:280px;right:-95px;bottom:-170px;content:"";z-index:-1;border:24px solid #00aec74a;border-radius:52%;transform:rotate(-24deg);pointer-events:none}
.hero-content {position:relative;z-index:1}
.hero h1 {color:#fff}
.admin-layout {display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100svh}
.sidebar {height:100svh;position:sticky;top:0;display:flex;flex-direction:column;background:var(--navy);color:#e0edf6;padding:27px 18px 17px}
.sidebar .brand {color:#fff;margin:0 10px 38px}
.sidebar .brand strong {color:#c7dbe9}
.nav-label {text-transform:uppercase;letter-spacing:.13em;margin:0 11px 9px;font-size:10px;font-weight:750;color:#aac8dc}
.nav-label.second {margin-top:29px}
.nav-link {color:#d1e4f2;background:transparent;border:0;border-radius:9px;display:flex;align-items:center;gap:11px;width:100%;min-height:43px;padding:0 11px;margin-bottom:3px;text-align:left;font-size:13px;font-weight:650;text-decoration:none!important}
.nav-link.selected {background:#0a4878;color:#fff;box-shadow:inset 3px 0 #4ec3e0}
.nav-link:hover {background:#064368;color:#fff}
.nav-link.selected svg {color:#7fe0ed}
.sidebar-end {margin-top:auto}
.profile {display:flex;align-items:center;gap:9px;border-top:1px solid #ffffff1c;margin-top:12px;padding:16px 6px 0;min-width:0}
.profile strong,.profile small {display:block;overflow-wrap:anywhere}
.profile strong {font-size:13px;color:#fff}
.profile small {color:#aac8dc;font-size:11px}
.avatar {width:33px;height:33px;border-radius:9px;display:grid;place-items:center;flex:none;background:#0b527d;color:#d7f2fc;font-weight:750;font-size:12px}
.topbar {min-height:70px;padding:12px 31px;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border-bottom:1px solid var(--line)}
.crumb {display:flex;align-items:center;gap:9px;color:var(--muted);font-size:13px}
.crumb svg {color:#53718c}
.crumb b {font-weight:400;color:#62798c}
.crumb strong {color:var(--ink)}
.topbar-tools {display:flex;gap:13px;align-items:center}
.event-picker {display:flex;gap:7px;align-items:center;border:1px solid var(--line);padding:0 8px 0 10px;border-radius:9px;color:var(--muted)}
.event-picker select {border:0;padding:8px 3px 8px 0;margin:0;min-height:36px;font-size:13px;font-weight:650;max-width:270px;background:#fff}
.nav-toggle {display:none}
.admin-content {max-width:1540px;margin:0 auto;padding:27px 31px 42px}
.dashboard-hero {min-height:214px;padding:30px 30px 28px;display:flex;justify-content:space-between;align-items:flex-end;gap:20px}
.dashboard-hero .hero-content {align-self:center}
.dashboard-hero h1 {margin:10px 0 13px}
.hero-event {display:flex;align-items:center;flex-wrap:wrap;gap:12px;color:#dceffc;font-size:15px}
.hero-event .event-status {color:#e0efff;background:#b4e4ff28}
.hero-event .event-status.open {color:#b6f6d1;background:#43c78c26}
.hero-action {position:relative;z-index:1;color:#fff;border-color:#bcf0fb66;background:#003057bd}
.hero-action:hover {background:#085086;border-color:#bcf0fba0}
.section-head {margin:24px 0 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.section-head h2 {font-size:18px}
.stat-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.stat {display:flex;flex-direction:column;align-items:flex-start;padding:15px 17px;min-height:145px}
.stat .soft-icon {width:35px;height:35px;margin-bottom:9px}
.stat>span:not(.soft-icon) {color:var(--muted);font-size:12px;font-weight:650}
.stat strong {font-size:29px;line-height:1.07;margin:3px 0 4px;letter-spacing:-.035em}
.stat small,.card-head p {color:var(--muted);font-size:12px}
.dashboard-grid {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:14px;margin-top:15px}
.chart-panel,.participation-panel {padding:17px 19px}
.card-head {display:flex;gap:14px;align-items:flex-start;justify-content:space-between;margin-bottom:14px}
.card-head h2 {font-size:17px}
.card-head p {margin-top:5px}
.bars {display:grid;gap:12px;margin:12px 0 4px}
.bar-row {display:grid;grid-template-columns:minmax(86px,112px) 1fr 35px;align-items:center;gap:9px;color:var(--muted);font-size:12px;font-weight:600}
.bar-row strong {color:var(--ink);font-size:12px;text-align:right}
progress {width:100%;height:8px;display:block;border:0;background:#e7eff6;border-radius:99px;appearance:none;overflow:hidden}
progress::-webkit-progress-bar {background:#e7eff6;border-radius:99px}
progress::-webkit-progress-value {background:linear-gradient(90deg,#0033a0,#00aec7);border-radius:99px}
progress::-moz-progress-bar {background:#00569d;border-radius:99px}
.donut {display:grid;place-items:center;position:relative;margin:0 auto;width:136px;height:136px}
.donut svg {position:absolute;inset:0;transform:rotate(-90deg)}
.donut circle {fill:none;stroke-width:10}
.donut-track {stroke:#e0edf7}
.donut-value {stroke:#0033a0}
.donut div {display:grid;place-items:center}
.donut strong {font-size:31px;line-height:1;font-weight:760;letter-spacing:-.06em}.donut strong span {font-size:17px}
.donut small {margin-top:5px;color:var(--muted);font-size:10px}
.participation-foot {border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px;margin-top:10px;padding-top:9px}
.rank-list>div,.recent-list>div {display:flex;align-items:center;gap:10px;min-height:38px;border-top:1px solid #e8f0f6;font-size:12px;padding:7px 0}
.rank-list>div span:nth-last-child(2),.recent-list small {margin-left:auto;color:var(--muted);white-space:nowrap}
.rank-list b,.recent-list b {color:var(--brand-dark);white-space:nowrap}
.rank-position {display:inline-grid;place-items:center;min-width:27px;height:27px;border-radius:7px;background:#e6f3fc;color:#0033a0;font-size:12px;font-weight:750}
.recent-list>div>div {flex:1;min-width:0}
.recent-list strong,.recent-list small {display:block}
.recent-list small {font-size:10px}
.recent-list .soft-icon {width:28px;height:28px;border-radius:8px}
.page-heading {display:flex;justify-content:space-between;align-items:center;gap:15px;margin:5px 0 21px}
.page-heading h1 {font-size:clamp(29px,3.3vw,42px)}
.page-heading p {margin-top:7px;color:var(--muted)}
.form-panel {padding:21px 23px;margin-bottom:16px}
.form-panel h2 {margin-bottom:7px}
.form-panel p {color:var(--muted);margin-bottom:12px}
.form-panel summary {color:var(--brand-dark);font-weight:700;cursor:pointer}
.event-rules>summary {font-size:18px}
.event-rules[open]>summary {margin-bottom:10px}
.form-panel details {margin-top:13px}
form label:not(.rating):not(.visually-hidden) {display:block;font-weight:700;font-size:13px}
form label small {font-weight:500;color:var(--muted);margin-left:3px}
input:not([type=radio]):not([type=checkbox]):not([type=hidden]),select,textarea {width:100%;min-height:44px;border:1px solid #d2e3ef;border-radius:9px;padding:9px 11px;background:#fff;color:var(--ink);margin:5px 0 13px}
input::placeholder {color:#5e768d}
textarea {resize:vertical}
.form-panel form .button {margin-top:5px}
.form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 13px}
.rule-grid {grid-template-columns:repeat(auto-fit,minmax(118px,1fr))}
.rule-grid label:first-child {grid-column:span 1}
.form-lock {margin:0;border:0;padding:0;min-inline-size:0}
.criterion-edit {padding:10px 12px 0;background:#f2f7fb;border-radius:10px;margin:8px 0}
.check-grid {margin:0 0 13px;min-inline-size:0;border:1px solid var(--line);border-radius:10px;padding:8px 12px}
.check-grid legend {font-weight:700;color:var(--ink)}
form .check {display:flex!important;align-items:center;gap:8px;min-height:30px;width:fit-content;cursor:pointer}
input[type=checkbox],input[type=radio] {accent-color:var(--brand)}
input[type=checkbox] {width:17px;height:17px;margin:0;flex:none}
.notice {display:flex;gap:8px;align-items:center;border-radius:10px;background:#fff0f1;color:#8d2440;padding:11px 13px;margin:0 0 14px;border:1px solid #f6d9df;font-weight:650;font-size:13px;overflow-wrap:anywhere}
.notice.success {color:#17604b;background:#eaf8f0;border-color:#d0ecde}
.import-output {padding:12px 0}
.import-output ul {max-height:240px;overflow:auto}
.table-wrap {overflow-x:auto}
table {width:100%;border-collapse:collapse;text-align:left}
th,td {white-space:nowrap;padding:12px 15px;border-bottom:1px solid var(--line);font-size:13px}
td {color:var(--muted)}
td strong {color:var(--ink)}
th {background:#f3f8fc;color:#3d5b73;font-size:12px}
td .soft-icon {width:30px;height:30px;border-radius:8px}
td .cell-title {display:flex;align-items:center;gap:8px}
tr:last-child td {border-bottom:none}
.allow-wrap {white-space:normal;overflow-wrap:anywhere}
.empty {text-align:center;padding:25px;color:var(--muted)}
.empty p {margin-bottom:11px}
.tile-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,207px),1fr));gap:13px}
.qr-tile {padding:17px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:9px}
.qr-tile h2 {font-size:16px}
.qr-tile img {object-fit:contain;max-width:100%}
.qr-path {display:flex;align-items:center;gap:5px;font-size:12px}
.win {padding:12px;border-radius:10px;background:#e8f4fb;display:flex;align-items:center;gap:8px}
.win small {margin-left:auto;color:var(--muted)}
.win + .subtle-link,.form-panel .tile-grid + .subtle-link {margin-top:13px}
.id-list {overflow-wrap:anywhere}
.public-wrap {min-height:100svh;background:var(--paper)}
.voter-identity {display:flex;align-items:center;gap:10px;padding:11px 13px;margin:0 0 14px;background:#ecf8fb;border:1px solid #cce7ef;border-radius:12px}
.voter-identity p {overflow-wrap:anywhere;color:#345c75;font-size:13px}
.voter-identity strong {color:#123e65}
.voter-avatar {width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:9px;background:#d4eef7;color:#114e7e;font-weight:750;font-size:12px}
.public-head {min-height:73px;max-width:1060px;padding:13px 23px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:9px}
.home-main {max-width:1060px;padding:18px 23px 45px;margin:auto}
.home-hero {display:grid;grid-template-columns:minmax(0,.91fr) minmax(0,1.09fr);min-height:360px;background:var(--brand);border-radius:24px;overflow:hidden;isolation:isolate}
.home-hero-copy {align-self:center;padding:34px clamp(23px,4.8vw,60px);color:#fff;position:relative;z-index:1}
.home-hero-copy::before {content:"";display:block;width:53px;height:5px;margin-bottom:17px;border-radius:10px;background:var(--aqua)}
.home-hero h1 {font-size:clamp(37px,5.4vw,61px);line-height:1.04;letter-spacing:-.05em;font-weight:740}
.home-hero p {max-width:325px;margin-top:15px;color:#e5f3ff;font-size:clamp(14px,1.65vw,17px)}
.home-action {margin-top:22px;min-height:46px;padding:0 17px;border-radius:24px;color:var(--navy);background:var(--yellow)}
.home-action:hover {background:#f3f47e}
.home-hero-photo {position:relative;align-self:stretch;min-width:0;min-height:235px;overflow:hidden;border-radius:76px 0 0 0}
.home-hero-photo::after {content:"";position:absolute;inset:auto 0 0 0;height:5px;background:var(--aqua);pointer-events:none}
.home-hero-photo img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:63% 45%}
.home-qr {display:flex;align-items:center;gap:10px;font-weight:650}
.home-events {margin-top:28px;scroll-margin-top:18px}
.section-label {margin:23px 0 12px;display:flex;align-items:center;gap:9px}
.gallery-identify {max-width:574px}
.public-intro {margin:12px 0 18px}
.public-intro p {margin:7px 0 9px;color:var(--muted)}
.public-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px}
.event-link {min-height:88px;padding:14px;display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none!important}
a.event-link:hover {border-color:#75afd4;background:#f8fbfe}
.event-link div {flex:1}
.event-link p {color:var(--muted);font-size:12px;margin-top:4px}
.voting-wrap .public-head,.vote-main {max-width:620px}
.vote-main {padding:14px 23px 31px;margin:auto}
.vote-hero {min-height:219px;padding:25px;display:flex;align-items:flex-end;margin-bottom:15px}
.vote-hero .hero-content {max-width:460px}
.vote-hero h1 {font-size:clamp(28px,7vw,43px);margin:6px 0}
.vote-hero p {max-width:385px;color:#edf7ff;font-size:14px}
.hero-tag {display:inline-block;color:#d8f5fc;background:#abecfd26;border:1px solid #8de8f064;border-radius:7px;padding:3px 8px;font-size:11px;font-weight:700}
.hero-image {z-index:-2;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.6}
.vote-hero:has(.hero-image) {background:linear-gradient(100deg,#003057,#0033a0)}
.vote-hero:has(.hero-image)::before {inset:0;width:auto;height:auto;border:0;border-radius:0;transform:none;background:linear-gradient(100deg,#00213c 24%,#00305744)}
.vote-card {padding:20px;margin-bottom:12px}
.vote-card-title {display:flex;align-items:center;gap:11px;margin-bottom:15px}
.vote-card h2 {font-size:20px}
.vote-card h1 {font-size:24px}
.vote-card p {margin-top:3px;color:var(--muted)}
.vote-card form {margin-top:13px}
.vote-card input:not([type=radio]):not([type=hidden]) {min-height:49px;font-size:16px}
.demo-hint {font-size:12px;padding:8px 10px;margin:0 0 13px!important;border-radius:8px;background:#e8f6fb;color:#0f537b!important}
.privacy {margin-top:16px}
.privacy summary {color:var(--muted);font-size:12px;cursor:pointer;font-weight:650}
.privacy summary svg {margin-right:3px}
.privacy p {font-size:12px;margin-top:7px}
.progress-meta {display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:6px}
.progress-meta strong {color:var(--brand-dark)}
.criterion {margin:0;padding:13px 0 15px;min-inline-size:0;border:0}
.criterion + .criterion {border-top:1px solid var(--line)}
.criterion legend {display:contents;font-weight:750;color:var(--ink);font-size:15px}
.criterion legend span {display:inline-block;margin-left:4px;color:#065274;background:#e8f6fb;padding:2px 7px;border-radius:9px;font-size:10px}
.criterion p {font-size:12px;margin-bottom:9px}
.rating-options {display:grid;grid-template-columns:repeat(auto-fit,minmax(43px,1fr));gap:6px;margin-top:7px}
.rating-options.compact {grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;grid-template-columns:none}
.rating {position:relative;display:block;font-weight:750;text-align:center;cursor:pointer}
.rating input {position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}
.rating span {display:grid;min-height:45px;place-items:center;border:1px solid #cddfee;border-radius:9px;color:#124674;background:#f3f9fe}
.rating input:hover + span {border-color:#8db8db}
.rating input:checked + span {color:#fff;background:var(--brand);border-color:var(--brand)}
.rating input:focus-visible + span {outline:3px solid #006bb4;outline-offset:2px}
.scale-caption {display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:4px}
.outcome {text-align:center;display:grid;justify-items:center;gap:8px}
.outcome .soft-icon {width:52px;height:52px;margin:3px 0}
.outcome .button {margin-top:9px}
.leave-form {display:flex;justify-content:center;margin:15px 0 6px}
@media(max-width:1120px) {
  .admin-layout {grid-template-columns:200px minmax(0,1fr)}
  .topbar,.admin-content {padding-left:20px;padding-right:20px}
  .stat {padding:13px}
}
@media(max-width:850px) {
  .admin-layout {grid-template-columns:minmax(0,1fr)}
  .sidebar {display:none;position:relative;height:auto;min-height:0}
  .sidebar.visible {display:flex;z-index:3}
  .sidebar .brand {margin-bottom:16px}
  .sidebar nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .sidebar .nav-label {grid-column:1/-1}
  .nav-toggle {display:inline-flex}
  .crumb {display:none}
}
@media(max-width:620px) {
  .admin-content {padding:14px 12px 28px}
  .topbar {padding:8px 12px;min-height:58px}
  .topbar-tools>.pill {display:none}
  .event-picker select {max-width:185px}
  .dashboard-hero {min-height:178px;display:block;padding:18px 16px}
  .dashboard-hero h1 {margin:6px 0 8px;font-size:28px}
  .hero-action {margin-top:12px}
  .stat-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .stat {min-height:128px}
  .dashboard-grid {grid-template-columns:1fr;gap:9px;margin-top:10px}
  .section-head {margin-top:18px}
  .page-heading {align-items:flex-start;flex-direction:column;margin:4px 0 14px}
  .form-panel {padding:15px}
  .home-main,.vote-main {padding-left:15px;padding-right:15px}
  .public-head {min-height:62px;padding:10px 15px}
  .home-hero {grid-template-columns:minmax(0,1fr);min-height:0}
  .home-hero-copy {padding:21px 21px 24px}
  .home-hero-copy::before {margin-bottom:13px}
  .home-hero h1 {font-size:clamp(35px,9vw,45px)}
  .home-hero p {margin-top:10px}
  .home-action {margin-top:15px}
  .home-hero-photo {min-height:0;aspect-ratio:2.25;border-radius:33px 0 0 0}
  .home-hero-photo img {object-position:60% 30%}
  .vote-hero {min-height:191px;padding:18px}
  .vote-card {padding:15px}
}
@media(max-width:380px) {.form-grid {grid-template-columns:minmax(0,1fr)}.rule-grid {grid-template-columns:repeat(auto-fit,minmax(105px,1fr))}.bar-row {grid-template-columns:minmax(75px,88px) 1fr 32px}.public-head .brand {gap:7px}}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {transition:none!important;scroll-behavior:auto!important}}
