/* Stimmungsbild: local fonts and a clear, square layout. */
:root {
  --red: #c9001b;
  --red-dark: #a50016;
  --red-soft: #fff1f3;
  --ink: #111;
  --muted: #5e5e5e;
  --line: #d5d5d5;
  --surface: #fff;
  --canvas: #f3f3f3;
  --green: #226741;
  --green-soft: #edf6ef;
  --amber: #805800;
  --amber-soft: #fff6df;
  --chart-0: #c9001b;
  --chart-1: #246c9c;
  --chart-2: #368050;
  --chart-3: #9b6509;
  --chart-4: #8659a5;
  --chart-5: #147c7d;
  --chart-6: #b84d21;
  --chart-7: #565864;
  color: var(--ink);
  background: var(--canvas);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { accent-color: var(--red); }
button { cursor: pointer; }
a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-dark); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #1768a8; outline-offset: 3px;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.25; }
h2 { font-size: 23px; }
h3 { font-size: 18px; }
p { margin-bottom: 16px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
small { font-size: 13px; }
strong { font-weight: 700; }
svg { display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 18px; top: 12px; z-index: 100; transform: translateY(-180%); padding: 12px 18px; color: #fff; background: var(--ink); font-weight: 700; }
.skip-link:focus { transform: translateY(0); color: #fff; }
.muted { color: var(--muted); }
.eyebrow { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.required-mark { color: var(--red); }

/* All navigation stays visible; no hidden mobile drawer. */
.app-shell { min-height: 100vh; }
.app-header { background: #fff; border-top: 5px solid var(--red); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 1320px; margin: 0 auto; padding: 24px 32px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: baseline; color: var(--ink); font-size: 27px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-accent { color: var(--red); }
.account-menu { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 16px; min-width: 0; font-size: 13px; }
.account-menu > a { color: var(--ink); }
.account-menu > a:hover { color: var(--red); }
.account-menu form { margin: 0; }
.account-name { text-align: right; overflow-wrap: anywhere; }
.account-name > strong, .account-name > span { display: block; }
.account-name > span { color: var(--muted); font-size: 12px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.nav-link { display: flex; justify-content: center; align-items: center; min-height: 60px; min-width: 158px; padding: 17px 25px; color: #111; background: #e9e9e9; border-top: 3px solid transparent; font-size: 17px; font-weight: 700; text-align: center; text-decoration: none; }
.nav-link:hover { color: var(--red); background: #f4f4f4; }
.nav-link.active { background: #fff; color: var(--red); border-top-color: var(--red); }
.main { min-width: 0; }
.page { width: 100%; max-width: 1320px; margin: 0 auto; padding: 36px 32px 64px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
.page-header > div:first-child { min-width: 0; max-width: 840px; }
.page-title { margin: 0 0 10px; font-size: clamp(28px, 3vw, 36px); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.page-header p { margin-bottom: 0; }
.page-header .eyebrow { margin-bottom: 6px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.actions form { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 21px; border: 1px solid transparent; border-radius: 0; font-size: 15px; font-weight: 700; text-align: center; line-height: 1.4; text-decoration: none; transition: background .12s, border-color .12s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #fff; background: var(--red); }
.btn-primary:hover { color: #fff; background: var(--red-dark); }
.btn-secondary { color: var(--ink); background: #fff; border-color: #a9a9a9; }
.btn-secondary:hover { color: var(--ink); background: #eee; border-color: #777; }
.btn-danger { color: var(--red); background: #fff; border-color: var(--red); }
.btn-danger:hover { color: var(--red-dark); background: var(--red-soft); }
.btn-small { min-height: 40px; padding: 8px 13px; font-size: 13px; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .5; }
.card, .result-card, .chart-card { background: #fff; border: 1px solid var(--line); margin-bottom: 24px; }
.card-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: 23px 28px; border-bottom: 1px solid var(--line); }
.card-header h2, .card-header h3, .card-header p { margin-bottom: 0; }
.card-body { padding: 28px; }
.card-body > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > .card { margin-bottom: 0; }
.grid + .card, .grid + .section-title, .grid + .grid { margin-top: 28px; }
.stat { padding: 23px 26px; background: #fff; border: 1px solid var(--line); }
.stat-value { display: block; margin: 10px 0 4px; font-size: 36px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-size: 14px; color: var(--muted); }
.stat > small, .stat > .muted { color: var(--muted); font-size: 13px; }
.stat > .muted { display: block; }
.stat-unit { color: var(--muted); font-size: 19px; font-weight: 400; }
.stat-value.stat-text { font-size: 22px; line-height: 1.4; margin: 12px 0 7px; }
.stats-grid { margin-bottom: 28px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 17px; font-size: 21px; }
.section-actions { margin: 0 0 25px; }
.section-heading { margin: 4px 0 3px; }
.section-heading h2 { margin-bottom: 8px; }
.section-heading .muted { margin-bottom: 0; font-size: 14px; }
.survey-list { display: grid; }
.survey-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 28px; color: var(--ink); text-decoration: none; }
.survey-row + .survey-row { border-top: 1px solid var(--line); }
a.survey-row:hover { color: var(--ink); background: #fafafa; }
.survey-row > div:first-child { flex: 1 1 auto; min-width: 0; }
.survey-row h3 { margin-bottom: 7px; overflow-wrap: anywhere; }
.survey-row h3 a { color: var(--ink); text-decoration: none; }
.survey-row h3 a:hover { color: var(--red); }
.survey-row-main > .badge { margin-bottom: 9px; }
.survey-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 17px; color: var(--muted); font-size: 13px; }
.survey-meta p { margin-bottom: 0; }
.survey-row-count { flex-shrink: 0; min-width: 84px; margin-left: auto; text-align: right; }
.survey-row-count > strong { display: block; font-size: 25px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.survey-row-count strong > span { color: var(--muted); font-size: 14px; font-weight: 400; }
.survey-row-count > .muted { display: block; margin-top: 3px; font-size: 12px; }
.row-arrow { flex-shrink: 0; color: var(--red); font-size: 25px; }
.badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 4px 8px; background: #eee; color: #4d4d4d; font-size: 12px; font-weight: 700; line-height: 1.4; }
.badge-draft { color: #555; background: #ededed; }
.badge-open { color: var(--green); background: var(--green-soft); }
.badge-closed { color: #555; background: #ededed; }
.badge-scheduled { color: var(--amber); background: var(--amber-soft); }
.empty-state { padding: 45px 25px; text-align: center; color: var(--muted); }
.empty-state h2, .empty-state h3 { color: var(--ink); }
.empty-state p { max-width: 520px; margin: 0 auto 22px; }
.empty-state > :last-child { margin-bottom: 0; }
.empty-icon { display: block; margin: 0 auto 15px; color: var(--red); font-size: 32px; }
.round-navigation { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 25px; }
.round-navigation > a { color: var(--muted); font-size: 14px; }
.round-navigation > a:hover { color: var(--red); }

/* Forms and questionnaire editing. */
.form { max-width: 880px; }
.form > .actions { margin-top: 25px; }
.form-grid, .week-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.filter-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.field { margin-bottom: 23px; min-width: 0; }
.field > label, .field > .field-label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 16px; font-weight: 400; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .filter-form input:not([type="checkbox"]):not([type="radio"]), .filter-form select, .tokens textarea {
  display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid #8e8e8e; border-radius: 0; color: var(--ink); background: #fafafa;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #444; }
.field input::placeholder, .field textarea::placeholder { color: #707070; }
.field textarea, .tokens textarea { min-height: 116px; resize: vertical; }
.field select[multiple] { min-height: 150px; }
.field input[type="checkbox"], .field input[type="radio"] { width: 19px; height: 19px; vertical-align: middle; margin: 0 8px 0 0; }
.field-help, .helptext { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 7px; }
.field-help ul, .helptext ul { margin: 7px 0 0; padding-left: 19px; }
.errorlist { list-style: none; margin: 7px 0 12px; padding: 0; color: #aa0017; font-size: 14px; }
.field:has(.errorlist) input, .field:has(.errorlist) select, .field:has(.errorlist) textarea { border-color: var(--red); }
.form-card { max-width: 940px; }
.form-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
.supporting-card { background: #fff; }
.supporting-card .muted { font-size: 14px; }
.supporting-card .section-title { font-size: 17px; margin: 25px 0 12px; }
.question-preview { counter-reset: statement; list-style: none; padding: 0; margin: 0 0 25px; }
.question-preview li { counter-increment: statement; position: relative; padding: 17px 0 17px 32px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.question-preview li::before { content: counter(statement); position: absolute; left: 0; top: 19px; color: var(--muted); font-size: 13px; }
.question-preview li:last-child { border-bottom: 0; }
.question-preview .badge { margin-left: 7px; vertical-align: middle; }
.questionnaire-editor { margin: 25px 0; }
.questionnaire-editor > h2 { margin-bottom: 15px; }
.question-divider { margin: 27px 0 22px; padding-top: 23px; border-top: 2px solid #9a9a9a; }
hr.question-divider { padding: 0; width: 100%; border-right: 0; border-bottom: 0; border-left: 0; }
.question-divider h2, .question-divider h3 { margin-bottom: 7px; }
.extra-row { display: flex; align-items: flex-start; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.extra-row > .field { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.extra-row > .btn { flex-shrink: 0; align-self: flex-end; }
.extra-row textarea { min-height: 82px; }
.questionnaire-editor .question-preview { margin-bottom: 0; }
.managed-question + .managed-question { border-top: 1px solid var(--line); margin-top: 23px; padding-top: 24px; }
.managed-question .question-heading { margin-bottom: 12px; }
.managed-question h3 { font-size: 17px; line-height: 1.5; margin-bottom: 5px; }
.managed-question .question-heading .muted { font-size: 13px; margin-bottom: 0; font-weight: 400; }
.managed-question-inactive h3 { color: var(--muted); }
.managed-question > .actions, .managed-question .details { padding-left: 28px; }
.managed-question .actions form { display: flex; flex-wrap: wrap; gap: 8px; }
.managed-question .details .form { margin-top: 18px; }
.checkbox-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.checkbox-list label { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; }
.checkbox-list input { margin-top: 3px !important; flex-shrink: 0; }
.check-card { display: flex; align-items: flex-start; gap: 11px; padding: 15px; border: 1px solid var(--line); background: #fff; font-size: 14px; cursor: pointer; }
.check-card input { flex-shrink: 0; width: 19px; height: 19px; margin: 3px 0 0; }
.check-card:has(input:checked) { background: var(--red-soft); border-color: var(--red); }
.check-card small, .check-card > span > .muted { display: block; color: var(--muted); margin-top: 4px; font-size: 13px; }
.field > label.check-card { display: flex; align-items: flex-start; font-weight: 400; }
.field > label.check-card input { margin-top: 3px; }
.field ul:not(.errorlist), .field div[id]:has(input[type="checkbox"]) { list-style: none; display: grid; gap: 11px; padding: 0; margin: 9px 0 0; }
.field div[id]:has(input[type="checkbox"]) label { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; }
.field div[id]:has(input[type="checkbox"]) input { flex-shrink: 0; margin-top: 2px; }
.filter-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.filter-form .field { margin-bottom: 0; flex: 1 1 170px; }
.filter-form .actions { flex: 0 0 auto; }
.filter-form + .checkbox-list { margin-top: 22px; }
.card-header .filter-form { gap: 9px; }
.card-header .filter-form select { width: auto; min-height: 40px; max-width: 310px; padding: 8px 32px 8px 11px; font-size: 14px; }
.actions + .field { margin-top: 24px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th { padding: 14px 23px; color: #333; background: #eee; font-size: 13px; font-weight: 700; }
td { padding: 18px 23px; border-top: 1px solid var(--line); vertical-align: top; }
td > strong { display: block; margin-bottom: 3px; }
td .actions { flex-wrap: nowrap; }
td time { white-space: nowrap; }
.table-secondary { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.department-section + .department-section { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.department-section > h3 { margin-bottom: 17px; }
.team-card { padding: 22px; border: 1px solid var(--line); background: #fff; font-size: 15px; }
.team-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 8px; }
.team-card-heading h4 { margin: 0; font-size: 18px; }
.team-card > .muted { font-size: 13px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 24px; }
.admin-tabs > a { padding: 12px 18px; background: #e6e6e6; color: var(--ink); font-weight: 700; text-decoration: none; }
.admin-tabs > a.active, .admin-tabs > a[aria-current="page"] { color: var(--red); background: #fff; }
.admin-tabs > a:hover { color: var(--red); }
.danger-panel { border: 1px solid var(--red); background: #fff; }
.danger-panel > .card-header { color: var(--red); border-bottom-color: #e7a7af; }
.danger-panel .btn-danger { color: #fff; background: var(--red); }
.danger-panel .btn-danger:hover { background: var(--red-dark); }
.audit-details { max-width: 570px; min-width: 200px; margin: 13px 0 0; padding: 14px; border: 1px solid var(--line); color: #444; background: #f5f5f5; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.7 ui-monospace, Consolas, monospace; }
td > .details { margin-top: 0; }
.alert { padding: 16px 19px; margin-bottom: 24px; border: 1px solid #adc3d8; background: #f3f7fb; color: #254c70; font-size: 14px; }
.alert p:last-child { margin-bottom: 0; }
.alert-error { border-color: #d99ca5; background: var(--red-soft); color: #9c0015; }
.alert-success { border-color: #b2d3bd; background: var(--green-soft); color: #225937; }
.alert-warning { border-color: #d5c293; background: var(--amber-soft); color: #6a4d0a; }

/* Public pages carry no logos; voting stays compact and touch-friendly. */
.public-shell { min-height: 100vh; padding: 28px 20px 24px; border-top: 5px solid var(--red); }
.public-header { width: 100%; max-width: 740px; margin: 0 auto 23px; }
.public-title { color: #333; font-size: 18px; font-weight: 700; }
.public-card { max-width: 740px; margin: 0 auto; padding: 34px 38px; background: #fff; border: 1px solid var(--line); }
.public-card .page-title { font-size: clamp(25px, 4vw, 32px); }
.public-card .form { max-width: none; }
.public-card > .muted { font-size: 14px; }
.public-card > .eyebrow { color: var(--red); }
.public-footer { max-width: 740px; margin: 23px auto 0; color: var(--muted); text-align: center; font-size: 12px; }
.public-footer a { color: inherit; }
.public-shell > main > .messages { max-width: 740px; margin: 0 auto; }
.public-survey-heading { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.public-survey-heading > .eyebrow { color: var(--red); }
.public-survey-heading h1 { font-size: clamp(25px, 4vw, 32px); margin-bottom: 12px; overflow-wrap: anywhere; }
.public-survey-heading > .muted { margin-bottom: 17px; font-size: 14px; }
.public-survey-heading .scale-legend { width: 100%; margin-top: 0; padding: 12px 14px; background: #eee; font-size: 12px; }
.question-card { min-width: 0; padding: 25px 0 24px; margin: 0; border: 0; border-bottom: 1px solid var(--line); }
.question-card:first-of-type { margin-top: 8px; }
.question-card:last-of-type { border-bottom: 0; }
.question-card legend { float: left; width: 100%; padding: 0; margin-bottom: 15px; }
.question-card legend + * { clear: both; }
.question-heading { display: flex; gap: 13px; align-items: baseline; margin-bottom: 16px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.question-index { flex-shrink: 0; color: var(--muted); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.rating-row { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 0; }
.star-option { position: relative; min-width: 0; }
.star-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.star-option label { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid #999; color: #777; background: #fafafa; font-size: 35px; line-height: 1; cursor: pointer; user-select: none; transition: color .12s, border-color .12s, background .12s; }
.star-option label:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.star-option input:checked + label, .star-option.is-selected label { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.star-option input:checked + label { box-shadow: inset 0 0 0 2px var(--red); }
.star-option input:focus-visible + label { outline: 3px solid #1768a8; outline-offset: 3px; }
.star-option label:has(.star-number) { grid-template-rows: 1fr auto; row-gap: 1px; padding: 4px 0 5px; font-size: 33px; }
.star-number { color: #555; font-size: 11px; font-weight: 700; line-height: 1.15; }
.star-option.is-selected .star-number, .star-option input:checked + label .star-number { color: var(--red); }
.scale-legend { display: flex; justify-content: space-between; gap: 18px; width: 340px; max-width: 100%; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.scale-legend > :last-child { text-align: right; }
.public-card .form > .actions, .vote-submit { border-top: 1px solid var(--line); padding-top: 25px; margin-top: 6px; }
.vote-submit > .btn-primary { width: 100%; min-height: 52px; }
.vote-submit .field-help { margin: 13px 0 0; font-size: 12px; text-align: center; }
.public-shell .auth-shell { display: grid; justify-items: center; width: 100%; margin: 0 auto; padding: 28px 0 50px; }
.auth-card { width: min(100%, 460px); padding: 36px; background: #fff; border: 1px solid var(--line); }
.auth-card h1 { margin: 8px 0 15px; font-size: 30px; }
.auth-card > .muted { font-size: 14px; }
.auth-card .form { margin-top: 26px; }
.auth-card .btn-primary { width: 100%; min-height: 50px; }
.auth-card > .eyebrow { color: var(--red); }
.auth-card > .field-help { margin: 23px 0 0; font-size: 13px; }
.auth-aside, .decorative-stars { display: none; }
.success-mark { display: block; margin: 0 auto 22px; color: var(--green); font-size: 42px; }
.thank-you { padding-top: 45px; padding-bottom: 42px; }
.thank-you h1 { font-size: 28px; }

/* Aggregated results, charts and downloadable invitation batches. */
.results-list { display: grid; gap: 17px; }
.results-list > .card { margin-bottom: 0; }
.result-card { padding: 24px 28px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.result-head h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.5; }
.result-head .muted { font-size: 13px; }
.score { flex-shrink: 0; color: var(--red); text-align: right; font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.score > strong { font: inherit; }
.score small, .score > span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.4; font-weight: 400; }
.score > span > span { color: var(--red); }
.distribution { display: grid; gap: 11px; padding-top: 19px; max-width: 660px; }
.distribution-row { display: grid; grid-template-columns: 62px minmax(30px, 1fr) 38px; gap: 13px; align-items: center; color: #444; font-size: 13px; }
.distribution-row > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.distribution-track { height: 11px; overflow: hidden; background: #e9e9e9; }
.distribution-bar { height: 100%; min-width: 0; background: var(--red); }
.details { margin-top: 18px; }
.details summary { width: fit-content; cursor: pointer; font-size: 14px; font-weight: 700; color: #444; }
.details summary:hover, .details[open] summary { color: var(--red); }
.details summary > span { margin-left: 10px; color: var(--muted); font-size: 13px; font-weight: 400; }
.card.chart-card { padding: 0; }
.chart-card { padding: 28px; }
.chart { width: 100%; min-height: 270px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: #dedede; stroke-width: 1; }
.chart-axis-label { fill: #555; font-size: 11px; font-family: inherit; }
.chart-axis-caption { fill: #555; font-size: 10px; font-family: inherit; }
.chart-line { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: currentColor; stroke: #fff; stroke-width: 2; }
.chart-color-0 { color: var(--chart-0); }
.chart-color-1 { color: var(--chart-1); }
.chart-color-2 { color: var(--chart-2); }
.chart-color-3 { color: var(--chart-3); }
.chart-color-4 { color: var(--chart-4); }
.chart-color-5 { color: var(--chart-5); }
.chart-color-6 { color: var(--chart-6); }
.chart-color-7 { color: var(--chart-7); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px 22px; padding-top: 20px; font-size: 13px; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend-swatch { display: inline-block; width: 18px; height: 3px; background: currentColor; flex-shrink: 0; }
.legend-name { color: #444; }
.chart-table-toggle { margin-top: 18px; }
.chart-table-toggle summary { color: var(--muted); cursor: pointer; font-size: 13px; }
.chart-table-toggle .table-wrap { margin-top: 12px; }
.chart-empty { display: grid; place-content: center; min-height: 250px; text-align: center; color: var(--muted); padding: 25px; }
.tokens { margin-top: 22px; }
.tokens textarea, textarea.tokens { min-height: 250px; margin-bottom: 14px; font: 13px/1.8 ui-monospace, Consolas, monospace; overflow-wrap: normal; white-space: pre; }
textarea.tokens { margin-top: 0; }
textarea.tokens[rows="3"] { min-height: 100px; }
.token-row { overflow-wrap: anywhere; padding: 13px 0; border-top: 1px solid var(--line); font: 13px/1.7 ui-monospace, Consolas, monospace; }
.link-batch { padding: 22px 0; border-top: 1px solid var(--line); }
.link-batch:first-child { padding-top: 0; border-top: 0; }
.link-batch .actions { margin-top: 14px; }
.progress { width: 100%; height: 6px; margin-top: 15px; overflow: hidden; background: #e9e9e9; }
.progress > span, .progress > div { display: block; height: 100%; background: var(--red); }
.w-0{width:0%}.w-1{width:1%}.w-2{width:2%}.w-3{width:3%}.w-4{width:4%}.w-5{width:5%}.w-6{width:6%}.w-7{width:7%}.w-8{width:8%}.w-9{width:9%}.w-10{width:10%}.w-11{width:11%}.w-12{width:12%}.w-13{width:13%}.w-14{width:14%}.w-15{width:15%}.w-16{width:16%}.w-17{width:17%}.w-18{width:18%}.w-19{width:19%}.w-20{width:20%}.w-21{width:21%}.w-22{width:22%}.w-23{width:23%}.w-24{width:24%}.w-25{width:25%}.w-26{width:26%}.w-27{width:27%}.w-28{width:28%}.w-29{width:29%}.w-30{width:30%}.w-31{width:31%}.w-32{width:32%}.w-33{width:33%}.w-34{width:34%}.w-35{width:35%}.w-36{width:36%}.w-37{width:37%}.w-38{width:38%}.w-39{width:39%}.w-40{width:40%}.w-41{width:41%}.w-42{width:42%}.w-43{width:43%}.w-44{width:44%}.w-45{width:45%}.w-46{width:46%}.w-47{width:47%}.w-48{width:48%}.w-49{width:49%}.w-50{width:50%}.w-51{width:51%}.w-52{width:52%}.w-53{width:53%}.w-54{width:54%}.w-55{width:55%}.w-56{width:56%}.w-57{width:57%}.w-58{width:58%}.w-59{width:59%}.w-60{width:60%}.w-61{width:61%}.w-62{width:62%}.w-63{width:63%}.w-64{width:64%}.w-65{width:65%}.w-66{width:66%}.w-67{width:67%}.w-68{width:68%}.w-69{width:69%}.w-70{width:70%}.w-71{width:71%}.w-72{width:72%}.w-73{width:73%}.w-74{width:74%}.w-75{width:75%}.w-76{width:76%}.w-77{width:77%}.w-78{width:78%}.w-79{width:79%}.w-80{width:80%}.w-81{width:81%}.w-82{width:82%}.w-83{width:83%}.w-84{width:84%}.w-85{width:85%}.w-86{width:86%}.w-87{width:87%}.w-88{width:88%}.w-89{width:89%}.w-90{width:90%}.w-91{width:91%}.w-92{width:92%}.w-93{width:93%}.w-94{width:94%}.w-95{width:95%}.w-96{width:96%}.w-97{width:97%}.w-98{width:98%}.w-99{width:99%}.w-100{width:100%}

/* Content reflows instead of relying on horizontal page scrolling. */
@media (max-width: 950px) {
  .header-inner { padding: 20px 24px; }
  .main-nav { padding: 0 24px; }
  .page { padding: 28px 24px 48px; }
  .form-layout { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid > .field:first-child { grid-column: 1 / -1; }
  .grid { gap: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .header-inner { padding: 20px 18px 17px; flex-wrap: wrap; gap: 17px; }
  .brand { font-size: 25px; }
  .account-menu { width: 100%; justify-content: flex-start; gap: 10px 14px; }
  .account-name { text-align: left; margin-right: auto; max-width: 100%; }
  .account-menu > a { font-size: 12px; }
  .account-menu .btn { min-height: 38px; padding: 7px 10px; font-size: 12px; }
  .main-nav { padding: 0; gap: 1px; }
  .nav-link { flex: 1 1 calc(50% - 1px); min-width: 0; min-height: 52px; padding: 12px 10px; font-size: 15px; }
  .page { padding: 26px 16px 42px; }
  .page-header { gap: 16px; margin-bottom: 22px; }
  .page-header > .actions { width: 100%; }
  .page-title { font-size: 29px; }
  .grid-2, .grid-3, .form-grid, .filter-grid { grid-template-columns: 1fr; }
  .grid { gap: 13px; }
  .week-fields { gap: 0 13px; }
  .field > label { font-size: 15px; }
  .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { font-size: 16px; }
  .stat { padding: 20px; }
  .stat-value { font-size: 32px; }
  .card { margin-bottom: 20px; }
  .card-header, .card-body { padding: 21px 19px; }
  .survey-row { padding: 21px 19px; align-items: flex-start; flex-wrap: wrap; gap: 15px; }
  .survey-row > .actions { width: 100%; }
  .survey-meta { gap: 6px 12px; font-size: 12px; }
  .survey-row h3 { font-size: 17px; }
  .survey-row-count { min-width: 62px; }
  .survey-row-count > strong { font-size: 23px; }
  .survey-row-count strong > span { font-size: 13px; }
  .survey-row-count > .muted { font-size: 11px; }
  .survey-row > .survey-row-main { flex: 1 1 calc(100% - 85px); }
  .survey-row .row-arrow { display: none; }
  .result-card { padding: 21px 19px; }
  .result-head { gap: 16px; align-items: flex-start; }
  .result-head h3 { font-size: 16px; }
  .score { font-size: 29px; padding-top: 2px; }
  .distribution-row { grid-template-columns: 52px minmax(20px, 1fr) 28px; gap: 10px; font-size: 12px; }
  .chart-card { padding: 21px 17px; }
  .chart { min-height: 190px; }
  .chart-legend { gap: 10px 16px; font-size: 12px; }
  .public-shell { padding: 22px 12px; }
  .public-header { margin-bottom: 18px; padding: 0 5px; }
  .public-card { padding: 26px 20px; }
  .public-survey-heading .scale-legend { font-size: 11px; padding: 11px; gap: 10px; }
  .public-survey-heading .scale-legend strong { display: block; margin-bottom: 2px; }
  .question-card { padding-top: 23px; padding-bottom: 22px; }
  .question-heading { font-size: 16px; gap: 10px; }
  .rating-row { gap: 7px; width: 100%; justify-content: space-between; }
  .star-option { flex: 1 1 0; max-width: 65px; }
  .star-option label { width: 100%; height: 57px; font-size: 32px; }
  .star-option label:has(.star-number) { font-size: 31px; }
  .scale-legend { width: 100%; }
  .public-card .form > .actions .btn-primary { width: 100%; }
  .public-shell .auth-shell { padding: 10px 0 30px; }
  .auth-card { padding: 29px 24px; }
  .filter-form { gap: 14px; }
  .filter-form .field { flex-basis: 100%; }
  .filter-form .actions { width: 100%; }
  .filter-form .actions .btn { width: 100%; }
  .card-header .filter-form { width: 100%; }
  .card-header .filter-form select { flex: 1 1 auto; min-width: 0; max-width: none; }
  .round-navigation { margin-bottom: 22px; }
  .round-navigation .actions { gap: 8px; }
  .round-navigation .btn { font-size: 12px; padding: 9px 10px; }
  .extra-row { flex-wrap: wrap; }
  .extra-row > .field { flex-basis: 100%; }
  .managed-question > .actions, .managed-question .details { padding-left: 0; }
  .team-card { padding: 19px; }
  .team-card-heading { align-items: flex-start; flex-wrap: wrap; }
  th, td { padding-left: 17px; padding-right: 17px; }
  .thank-you { padding-top: 35px; padding-bottom: 32px; }
  .thank-you h1 { font-size: 26px; }
}
@media (max-width: 360px) {
  .public-card { padding-left: 16px; padding-right: 16px; }
  .rating-row { gap: 5px; }
  .star-option label { height: 52px; }
  .star-option label:has(.star-number) { font-size: 28px; }
  .week-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .app-header, .actions, .filter-form { display: none !important; }
  .main { margin: 0; }
  .page { max-width: none; padding: 0; }
  .card, .result-card, .chart-card { break-inside: avoid; }
  body { background: #fff; }
}
