:root {
  color-scheme: light;
  --background: #f1f4f8;
  --surface: #fff;
  --ink: #131d35;
  --muted: #4c5c74;
  --line: #dce3ed;
  --blue: #244bcc;
  --blue-dark: #193aa8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.45;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--background); }
[hidden] { display: none !important; }
a { color: var(--blue-dark); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { width: min(100% - 2rem, 65rem); margin-inline: auto; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 4.125rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-size: 1.02rem; font-weight: 780; }
.mark { width: 2.15rem; height: 2.15rem; border-radius: .62rem; display: flex; align-items: center; justify-content: center; gap: 2px; background: var(--blue); }
.mark i { display: block; width: 2.5px; height: 7px; background: white; border-radius: 3px; }
.mark i:nth-child(2) { height: 13px; }
.mark i:nth-child(3) { height: 18px; }
.mark i:nth-child(4) { height: 9px; }
.nav-link { font-weight: 700; font-size: .94rem; text-decoration: none; padding: .55rem .4rem; }
.nav-link:hover { text-decoration: underline; }
.survey { max-width: 34rem; padding-block: clamp(1.35rem, 4vw, 3rem) 2.5rem; }
.intro { margin-bottom: 1.15rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 6.5vw, 3rem); letter-spacing: -.055em; line-height: 1.06; font-weight: 810; }
.intro p { margin-top: .58rem; color: var(--muted); max-width: 39ch; }
.mobile-break { display: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 1.15rem; }
.survey-card { padding: clamp(.95rem, 4vw, 1.65rem); box-shadow: 0 9px 28px #20345309; }
fieldset { border: 0; padding: 0; margin: 0 0 1.05rem; min-inline-size: 0; }
legend { padding: 0; margin-bottom: .44rem; font-weight: 750; }
.choices { display: grid; gap: .35rem; }
.floors { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pair { grid-template-columns: repeat(2, 1fr); gap: .55rem; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; margin: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.choices span { display: grid; place-items: center; min-height: 2.78rem; padding: .3rem .15rem; color: var(--ink); white-space: nowrap; border: 1px solid var(--line); border-radius: .59rem; background: #f8fafd; font-weight: 680; font-size: .96rem; }
.choices input:checked + span { background: #e7edff; color: var(--blue-dark); border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.choices input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 2.85rem; padding: .56rem; border: 1px solid transparent; border-radius: .65rem; text-align: center; font-size: .97rem; font-weight: 740; text-decoration: none; cursor: pointer; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: var(--blue-dark); }
.primary:disabled { opacity: .65; cursor: wait; }
.secondary { margin-top: .53rem; background: white; border-color: var(--line); color: var(--blue-dark); }
.secondary:hover { background: #f3f6fd; }
.feedback { color: #962921; margin: .7rem 0; font-size: .9rem; }
.note { margin-top: .85rem; color: var(--muted); font-size: .85rem; }
.survey-card .note { text-align: center; }
.done { padding: 1.35rem 0 1.5rem; text-align: center; }
.check { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; margin: 0 auto .8rem; border-radius: 50%; background: #dbf5e8; color: #126449; font-size: 1.4rem; font-weight: bold; }
.done p { margin-top: .48rem; color: var(--muted); }
.dashboard { padding-block: 1.8rem 2.5rem; }
.dashboard-intro { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dashboard-intro .status { display: inline-flex; gap: .4rem; align-items: center; padding: .35rem .65rem; border-radius: 1rem; background: #e5eaf2; margin: 0; font-size: .84rem; font-weight: 700; }
.status[data-live='true'] { color: #126449; background: #dff2e9; }
.status[data-live='true']::before { content: ''; width: .43rem; height: .43rem; border-radius: 50%; background: currentColor; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-bottom: .8rem; }
.metric { padding: clamp(.55rem, 2.5vw, 1rem); }
.metric-value { white-space: nowrap; font-variant-numeric: tabular-nums; }
.metric-value strong { font-size: clamp(1.1rem, 4.85vw, 2.35rem); letter-spacing: -.05em; }
.metric-value span, .metric p { color: var(--muted); font-size: clamp(.8rem, 2vw, .94rem); }
.metric-accent { background: #e9eeff; border-color: #cbd8fc; color: var(--blue-dark); }
.results-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: .8rem; align-items: start; }
.panel { padding: clamp(.85rem, 2.7vw, 1.3rem); }
.breakdowns { display: grid; gap: .8rem; }
h2 { font-size: 1.2rem; letter-spacing: -.025em; line-height: 1.25; }
.description { color: var(--muted); margin-top: .25rem; font-size: .92rem; }
table { width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
.building table { border-spacing: 4px; margin: .6rem -4px 0; width: calc(100% + 8px); table-layout: fixed; }
.building th { color: var(--muted); font-weight: 700; }
.building th:first-child { width: 3rem; }
.building td { border-radius: .45rem; text-align: center; font-weight: 720; padding: .46rem .2rem; overflow-wrap: anywhere; }
.building td small { display: block; font-weight: 620; font-size: .82rem; }
.yes { background: #ffdfdf; color: #8b272d; }
.no { background: #d9f3e8; color: #155d45; }
.tie { background: #ffebcf; color: #75460f; }
.empty { background: #edf0f5; color: #465570; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem .8rem; list-style: none; padding: 0; margin: .6rem 0 0; color: var(--muted); font-size: .83rem; }
.legend li { display: flex; align-items: center; gap: .33rem; }
.legend i { border-radius: .2rem; width: .75rem; height: .75rem; border: 1px solid currentColor; }
.counts { border-collapse: collapse; margin-top: .5rem; }
.counts th, .counts td { padding: .42rem .14rem; text-align: right; border-bottom: 1px solid #eaf0f5; }
.counts tr:last-child th, .counts tr:last-child td { border-bottom: 0; }
.counts th:first-child { text-align: left; }
.counts thead { color: var(--muted); }
.dashboard-link { width: fit-content; margin-top: 1rem; padding-inline: 1rem; }
@media (max-width: 44rem) { .results-layout { grid-template-columns: 1fr; } }
@media (max-width: 31rem) { .mobile-break { display: initial; } }
@media (max-width: 22rem) {
  .wrap { width: calc(100% - 1rem); }
  .survey-card { padding-inline: .55rem; }
  .floors { gap: .23rem; }
  .metric-value span { font-size: .72rem; }
}
