:root {
  --shadow: 0 22px 65px color-mix(in srgb, var(--shadow-color) 11%, transparent);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
* { box-sizing: border-box; }
html { min-width: 320px; max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; width: 100%; max-width: 100%; min-height: 100vh; overflow-x: hidden; background: radial-gradient(circle at 85% 2%, color-mix(in srgb, var(--mint) 42%, transparent), transparent 25rem), var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1160px) / 2)); background: color-mix(in srgb, var(--paper) 88%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 1.16rem; font-weight: 780; letter-spacing: -.03em; }
.brand > span:last-child > span { color: var(--brand-accent); }
.brand-mark { width: 31px; height: 31px; border-radius: 9px; background: var(--pine); display: flex; gap: 3px; align-items: end; padding: 7px; }
.brand-mark i { flex: 1; background: var(--mint); border-radius: 2px 2px 1px 1px; }
.brand-mark i:nth-child(1) { height: 7px; }.brand-mark i:nth-child(2) { height: 15px; }.brand-mark i:nth-child(3) { height: 11px; }
.topbar-meta { color: var(--ink-soft); font-size: .85rem; display: flex; align-items: center; gap: 8px; }
.privacy-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-control); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-control) 12%, transparent); }
.hero { padding-block: 70px 58px; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 800; color: var(--accent-text); margin-bottom: 17px; }
.hero h1, .page-title { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.055em; font-weight: 500; line-height: .96; color: var(--pine); margin: 0; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.9rem); }
.hero h1 em { font-weight: 500; color: var(--brand-accent); }
.hero > p { max-width: 640px; margin: 24px auto 0; font-size: 1.1rem; line-height: 1.7; color: var(--ink-soft); }
.hero-facts { margin-top: 40px; display: inline-flex; gap: 34px; color: var(--ink-soft); font-size: .84rem; }
.hero-facts span { display: flex; gap: 9px; align-items: center; }.hero-facts b { color: var(--accent-text); font-size: .73rem; }
.builder-shell { display: grid; grid-template-columns: minmax(0, 1fr) 315px; align-items: start; gap: 26px; padding-bottom: 90px; }
.builder { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stepper { display: flex; align-items: center; padding: 28px 42px; border-bottom: 1px solid var(--line); }
.step { border: 0; background: none; padding: 0; display: flex; gap: 9px; align-items: center; color: var(--muted); font-weight: 680; font-size: .88rem; }
.step b { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: .76rem; }
.step.active { color: var(--pine); }.step.active b { background: var(--pine); border-color: var(--pine); color: var(--on-primary); }
.step.done { color: var(--accent-text); }.step.done b { background: var(--mint); border-color: var(--mint); color: var(--pine); }
.step-line { height: 1px; flex: 1; min-width: 18px; margin: 0 15px; background: var(--line); }
.form-step { display: none; padding: 43px 48px 23px; animation: rise .24s ease; }.form-step.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } }
.section-heading { margin-bottom: 33px; }.section-heading > span { font-size: .72rem; color: var(--accent-text); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.section-heading h2 { font-family: Georgia, serif; font-weight: 500; font-size: 2.25rem; letter-spacing: -.035em; margin: 8px 0 5px; }
.section-heading p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.field { margin-bottom: 25px; }.field > label, .field-label { display: block; font-size: .86rem; font-weight: 740; margin: 0 0 9px; }.field > label span { color: var(--coral); }
.field small, .choice-card small, .validity-details small, .setting small, .link-card small { display: block; color: var(--muted); font-size: .79rem; line-height: 1.5; }
input, select, textarea, .rich-editor { width: 100%; color: var(--ink); background: var(--input); border: 1px solid var(--line-strong); border-radius: 10px; outline: none; transition: border .15s, box-shadow .15s, background .15s; }
input, select, textarea { min-height: 48px; padding: 11px 14px; }
input:focus, select:focus, textarea:focus, .rich-editor:focus { background: var(--white); border-color: var(--accent-control); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-control) 12%, transparent); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
.field > input + small { margin-top: 7px; }
.editor-toolbar { display: flex; align-items: center; flex-wrap: wrap; padding: 6px; background: var(--surface); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 10px 10px 0 0; }
.editor-toolbar button { min-width: 35px; min-height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-soft); font-size: .8rem; }.editor-toolbar button:hover { background: var(--white); }.editor-toolbar span { width: 1px; height: 20px; background: var(--line-strong); margin: 0 4px; }
.rich-editor { min-height: 130px; padding: 15px; border-radius: 0 0 10px 10px; line-height: 1.55; }.rich-editor:empty::before { content: attr(data-placeholder); color: var(--placeholder); }
.validity-details { border: 1px solid var(--line); border-radius: 12px; margin: 8px 0 6px; overflow: hidden; }.validity-details summary { display: flex; list-style: none; align-items: center; gap: 13px; padding: 16px; cursor: pointer; }.validity-details summary::-webkit-details-marker { display: none; }.validity-details summary > span:nth-child(2) { flex: 1; }.validity-details summary b { display: block; font-size: .88rem; }.summary-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-surface); color: var(--accent-text); font-size: 1.2rem; }.validity-details summary > i { width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }.validity-details[open] summary > i { transform: rotate(225deg); }.details-content { border-top: 1px solid var(--line); padding: 18px 16px 0; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; align-items: center; gap: 10px; padding: 24px 48px 32px; }.form-actions > span { flex: 1; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 21px; border-radius: 10px; border: 1px solid transparent; font-weight: 720; font-size: .91rem; transition: transform .15s, background .15s, border .15s; }.button:hover { transform: translateY(-1px); }.button:active { transform: translateY(0); }.button.primary { background: var(--pine); color: var(--on-primary); }.button.primary:hover { background: var(--pine-2); }.button.secondary { background: var(--white); border-color: var(--line-strong); color: var(--pine); }.button.ghost { background: transparent; color: var(--ink-soft); }.button.danger { background: var(--error-surface); border-color: var(--error-border); color: var(--error); }.button.full { width: 100%; border-style: dashed; }
.builder-aside { position: sticky; top: 98px; }.aside-card { background: var(--pine); color: var(--on-primary); border-radius: var(--radius); padding: 38px 31px; min-height: 315px; position: relative; overflow: hidden; }.aside-card::after { content: ""; position: absolute; width: 200px; height: 200px; background: var(--mint); border-radius: 50%; right: -105px; bottom: -115px; opacity: .14; }.lock-illustration { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: color-mix(in srgb, var(--mint) 15%, transparent); color: var(--mint); font-size: 2rem; }.aside-card h3 { font-family: Georgia, serif; font-size: 2rem; line-height: 1.05; letter-spacing: -.035em; font-weight: 500; margin: 35px 0 15px; }.aside-card p { margin: 0; color: var(--on-primary-soft); line-height: 1.62; font-size: .9rem; }.aside-note { display: flex; gap: 12px; padding: 22px 8px; color: var(--ink-soft); font-size: .82rem; line-height: 1.55; }.aside-note > span { color: var(--accent-text); font-weight: 900; }.aside-note p { margin: 0; }
.option-list { display: grid; gap: 11px; margin-bottom: 12px; }.option-row { display: grid; grid-template-columns: 42px 130px minmax(0, 1fr) 42px; gap: 9px; align-items: center; }.option-index { width: 37px; height: 37px; border-radius: 10px; background: var(--accent-surface); display: grid; place-items: center; color: var(--accent-text); font-weight: 800; font-size: .8rem; }.option-row select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent-text) 50%), linear-gradient(135deg, var(--accent-text) 50%, transparent 50%); background-position: calc(100% - 16px) 20px, calc(100% - 11px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }.remove-option { width: 42px; height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 1.2rem; }.remove-option:hover { background: var(--error-surface); color: var(--coral); }
.answer-type-field { margin-top: 35px; }.choice-cards { display: grid; gap: 10px; }.choice-cards.two { grid-template-columns: 1fr 1fr; }.choice-cards.three { grid-template-columns: repeat(3, 1fr); }.choice-card { min-height: 82px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; transition: border .15s, background .15s; }.choice-card:hover { border-color: var(--accent-control); }.choice-card.selected { border-color: var(--accent-control); background: var(--accent-surface); box-shadow: inset 0 0 0 1px var(--accent-control); }.choice-card input { position: absolute; opacity: 0; pointer-events: none; }.choice-card b { display: block; font-size: .88rem; margin-bottom: 3px; }.choice-icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; }.choice-icon.yesno { background: var(--accent-surface); color: var(--positive); }.choice-icon.grade { background: var(--rating-surface); color: var(--rating); font-size: .73rem; }
.inline-field { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--ink-soft); font-size: .86rem; }.inline-field label { font-weight: 700; }.inline-field input { width: 80px; min-height: 40px; padding: 7px 10px; }
.setting-list { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }.setting { display: flex; align-items: center; gap: 18px; padding: 18px; cursor: pointer; }.setting + .setting { border-top: 1px solid var(--line); }.setting > span { flex: 1; }.setting b { display: block; font-size: .9rem; margin-bottom: 3px; }.setting input { position: absolute; opacity: 0; width: 1px; height: 1px; }.setting > i { width: 43px; height: 24px; padding: 3px; background: var(--inactive); border-radius: 20px; transition: background .15s; }.setting > i::after { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px color-mix(in srgb, var(--shadow-color) 20%, transparent); transition: transform .15s; }.setting input:checked + i { background: var(--accent-control); }.setting input:checked + i::after { transform: translateX(19px); }
.loading-screen { min-height: calc(100vh - 72px); display: grid; place-content: center; text-align: center; color: var(--ink-soft); }.spinner { margin: auto; width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--pine); border-radius: 50%; animation: spin .7s linear infinite; }@keyframes spin{to{transform:rotate(360deg)}}
.center-shell { max-width: 810px; padding-block: 70px 100px; text-align: center; }.success-mark { width: 66px; height: 66px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 22px; background: var(--mint); color: var(--pine); font-weight: 900; font-size: 1.7rem; transform: rotate(-4deg); }.page-title { font-size: clamp(2.5rem, 6vw, 4.5rem); }.lead { color: var(--ink-soft); line-height: 1.65; font-size: 1.06rem; max-width: 630px; margin: 20px auto 34px; }.link-stack { display: grid; gap: 13px; text-align: left; }.link-card { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; }.link-card > span { display: block; font-weight: 800; font-size: .82rem; margin-bottom: 9px; }.link-card > div { display: flex; gap: 8px; }.link-card input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--surface); }.link-card small { margin-top: 8px; }.link-card.manage { border-color: var(--private-border); background: var(--private-surface); }.copy-button { min-width: 100px; border: 0; border-radius: 9px; background: var(--pine); color: var(--on-primary); font-weight: 720; }.success-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--pine); color: var(--on-primary); border-radius: 10px; padding: 12px 17px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s; font-size: .88rem; }.toast.show { opacity: 1; transform: translate(-50%,0); }.toast.error { background: var(--error); }

/* Voting and management views */
.poll-head { padding: 64px 0 34px; }.poll-head-inner { max-width: 820px; }.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 100px; background: var(--positive-surface); color: var(--positive); font-weight: 750; font-size: .76rem; }.status-pill.closed { background: var(--error-surface); color: var(--negative); }.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }.poll-head h1 { font-family: Georgia, serif; font-size: clamp(2.7rem, 6vw, 5rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; margin: 18px 0 16px; }.poll-description { color: var(--ink-soft); line-height: 1.7; }.poll-description p:first-child { margin-top: 0; }.meta-row { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 20px; color: var(--muted); font-size: .82rem; }.meta-row span { display: flex; gap: 7px; align-items: center; }
.poll-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; padding-bottom: 90px; }.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 44px color-mix(in srgb, var(--shadow-color) 7%, transparent); }.panel-main { padding: 34px; }.panel h2 { font-family: Georgia, serif; font-weight: 500; font-size: 1.85rem; letter-spacing: -.03em; margin: 0 0 8px; }.panel-intro { color: var(--ink-soft); margin: 0 0 26px; line-height: 1.5; }.grade-select { width: 130px; min-height: 40px; }.participant-fields { display: grid; gap: 15px; margin-top: 27px; padding-top: 27px; border-top: 1px solid var(--line); }.remember-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: var(--ink-soft); font-size: .84rem; line-height: 1.5; }.remember-row input { width: 19px; height: 19px; min-height: auto; margin: 1px 0 0; accent-color: var(--pine); }.remember-row b { color: var(--ink); }.suggestion-box { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }.suggestion-controls { display: grid; grid-template-columns: 130px minmax(0,1fr) auto; gap: 8px; }.poll-side { display: grid; gap: 15px; position: sticky; top: 96px; }.info-card { padding: 24px; background: var(--pine); color: var(--on-primary); border-radius: var(--radius); }.info-card h3 { font-family: Georgia,serif; font-size: 1.45rem; font-weight: 500; margin: 0 0 12px; }.info-card p { color: var(--on-primary-soft); font-size: .84rem; line-height: 1.6; margin: 0; }.info-card.light { background: var(--white); color: var(--ink); border: 1px solid var(--line); }.info-card.light p { color: var(--ink-soft); }.closed-notice { padding: 18px; background: var(--error-surface); border: 1px solid var(--error-border); color: var(--error); border-radius: 12px; line-height: 1.5; }
.poll-grid > *, .panel, .results-panel, .table-scroll { min-width: 0; }

.binary-choice {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
}
.binary-choice label {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 54px;
  min-height: 44px;
  cursor: pointer;
}
.binary-yes { --vote-color: var(--positive); }
.binary-no { --vote-color: var(--negative); }
.binary-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.binary-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--vote-color);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  opacity: .48;
  pointer-events: none;
  transition: opacity .16s, background-color .16s, font-size .16s;
}
.binary-choice input:checked + .binary-icon {
  border-color: color-mix(in srgb, var(--vote-color) 45%, transparent);
  background: color-mix(in srgb, var(--vote-color) 13%, var(--white));
  font-size: 1.7rem;
  opacity: 1;
}
.binary-choice input:focus-visible + .binary-icon {
  outline: 2px solid var(--pine);
  outline-offset: -2px;
}

.vote-matrix-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.closed-notice + .vote-matrix-scroll { margin-top: 1rem; }
.vote-matrix-scroll:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }
.vote-matrix {
  border-collapse: separate;
  border-spacing: 0;
  inline-size: max-content;
}
.vote-matrix:not(.has-participants) { inline-size: 100%; }
.vote-matrix th, .vote-matrix td {
  border-block-end: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  text-align: center;
  font-size: .9rem;
}
.vote-matrix thead th {
  background: var(--surface);
  color: var(--ink-soft);
  vertical-align: bottom;
}
.vote-matrix tbody tr:last-child > * { border-block-end: 0; }
.vote-matrix tr > :last-child { border-inline-end: 0; }
.vote-matrix .vote-option-cell {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  inline-size: clamp(8rem, 24vw, 15rem);
  max-inline-size: clamp(8rem, 24vw, 15rem);
  padding: .65rem .8rem;
  text-align: start;
  overflow-wrap: anywhere;
}
.vote-matrix tbody .vote-option-cell { background: var(--white); line-height: 1.35; }
.vote-total {
  display: block;
  margin-top: .2rem;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 600;
}
.vote-matrix .vote-own-cell { padding: .45rem .6rem; }
.vote-own-cell .binary-choice { display: inline-grid; vertical-align: middle; }
.vote-own-cell .grade-select {
  inline-size: 8rem;
  min-block-size: 44px;
  padding: .4rem;
  font-size: .85rem;
}
.vote-matrix .vote-participant-cell {
  inline-size: 2.2rem;
  min-inline-size: 2.2rem;
  padding: .4rem .25rem;
}
.vote-participant-name {
  display: inline-block;
  max-inline-size: 8rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  vertical-align: bottom;
}

.vote-matrix td.vote-participant-cell { font-size: 1rem; }

.response-cards .choice-card { flex-wrap: wrap; align-content: center; }
@media (max-width: 680px) {
  .response-cards .choice-card { flex-wrap: nowrap; }
  .vote-matrix .vote-option-cell {
    inline-size: clamp(7rem, 30vw, 10rem);
    max-inline-size: clamp(7rem, 30vw, 10rem);
    padding-inline: .5rem;
  }
  .vote-matrix .vote-own-cell { padding-inline: .35rem; }
  .vote-own-cell .binary-choice label { min-width: 50px; }
}
.results-section { padding: 15px 0 90px; }.results-toolbar { display: flex; align-items: end; gap: 12px; margin-bottom: 16px; }.results-toolbar .section-heading { flex:1; margin: 0; }.sort-control { width: 230px; }.sort-control label { display: block; font-size:.75rem; font-weight:750; margin-bottom:5px; }.results-panel { overflow: hidden; }.results-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }.metric { padding: 22px 25px; }.metric + .metric { border-left: 1px solid var(--line); }.metric strong { display: block; font-family: Georgia,serif; font-size: 2rem; font-weight: 500; }.metric span { color: var(--ink-soft); font-size: .78rem; }.table-scroll { overflow: auto; max-width: 100%; }.results-table { width: 100%; border-collapse: collapse; min-width: 690px; }.results-table th, .results-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: .82rem; }.results-table th { background: var(--surface); color: var(--ink-soft); font-weight: 750; position: sticky; top: 0; z-index: 1; }.results-table th:first-child, .results-table td:first-child { text-align: left; position: sticky; left: 0; background: var(--white); z-index: 2; min-width: 170px; }.results-table th:first-child { background: var(--surface); z-index: 3; }.answer-yes { color: var(--positive); font-weight: 800; }.answer-no { color: var(--negative); }.best-cell { background: var(--accent-surface); }.management-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 24px 0; }.management-bar .spacer { flex:1; }.private-messages { display:grid; gap:10px; margin-top:24px; }.message-card { border:1px solid var(--line); background:var(--white); padding:16px; border-radius:12px; }.message-card b { display:block; font-size:.84rem; margin-bottom:5px; }.message-card p { margin:0; color:var(--ink-soft); line-height:1.55; white-space:pre-wrap; }.empty-state { padding: 50px 20px; text-align: center; color: var(--ink-soft); }.empty-state strong { display:block; color:var(--ink); font-family:Georgia,serif; font-size:1.45rem; font-weight:500; margin-bottom:7px; }

@media (max-width: 900px) {
  .builder-shell, .poll-grid { grid-template-columns: 1fr; }
  .builder-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.aside-card { min-height: auto; }.aside-note { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
  .poll-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1160px); }.topbar { height: 62px; padding: 0 14px; }.topbar-meta { font-size: 0; }.topbar-meta::after { content: "Intern"; font-size: .75rem; }
  .hero { padding-block: 44px 36px; }.hero h1 { font-size: clamp(2.8rem, 15vw, 4.6rem); }.hero > p { font-size: 1rem; }.hero-facts { width:100%; justify-content:center; gap:11px; flex-wrap:wrap; }.hero-facts span { padding:7px 9px; border:1px solid var(--line); border-radius:100px; background:color-mix(in srgb, var(--white) 55%, transparent); }
  .builder { border-radius: 16px; }.stepper { padding: 18px; justify-content: center; }.step span { display:none; }.step-line { max-width: 55px; margin: 0 8px; }.form-step { padding: 31px 19px 15px; }.form-actions { padding: 19px; position: sticky; bottom:0; background:color-mix(in srgb, var(--white) 94%, transparent); border-top:1px solid var(--line); backdrop-filter:blur(12px); z-index:5; }.form-actions .button { min-width: 105px; }
  .section-heading h2 { font-size: 1.85rem; }.two-columns, .choice-cards.two, .choice-cards.three { grid-template-columns: 1fr; }.choice-card { min-height: 68px; }.option-row { grid-template-columns: 38px 1fr 40px; }.option-row select { grid-column:2; grid-row:1; }.option-row input { grid-column:2; grid-row:2; }.option-row .remove-option { grid-column:3; grid-row:1 / span 2; }.option-index { grid-row:1 / span 2; }
  .builder-aside, .poll-side { grid-template-columns: 1fr; }.aside-card { padding: 28px; }.aside-card h3 { margin-top:20px; }.aside-note { padding:20px; }
  .center-shell { padding-block: 45px 70px; }.link-card { padding: 15px; }.link-card > div { flex-direction:column; }.copy-button { min-height:44px; }.success-actions { flex-direction:column; }.success-actions .button { width:100%; }
  .poll-head { padding: 42px 0 24px; }.poll-head h1 { font-size: clamp(2.5rem, 14vw, 4rem); }.panel { border-radius:16px; }.panel-main { padding: 23px 17px; }.suggestion-controls { grid-template-columns:1fr; }.suggestion-controls .button { width:100%; }.remember-row { align-items:flex-start; }.poll-grid { padding-bottom:50px; }
  .results-toolbar { align-items:stretch; flex-direction:column; }.sort-control { width:100%; }.results-summary { grid-template-columns:1fr 1fr 1fr; }.metric { padding:15px 10px; text-align:center; }.metric strong { font-size:1.55rem; }.metric span { font-size:.7rem; }.management-bar { align-items:stretch; }.management-bar .button { flex:1 1 100%; }.management-bar .spacer { display:none; }
  .results-table { min-width: 620px; }.results-table th, .results-table td { padding:11px 10px; }.results-table th:first-child, .results-table td:first-child { min-width:135px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior:auto !important; animation:none !important; transition:none !important; } }

.brand-mark {
  width: var(--brand-logo-size, 1.94rem);
  flex: 0 0 auto;
  background: var(--brand-logo, none) center / contain no-repeat,
    var(--brand-mark-background, var(--pine));
}
.brand-mark i { display: var(--default-logo-display, block); }
.topbar-links { display: flex; align-items: center; gap: 1.25rem; }
.admin-link { color: var(--ink-soft); padding: .65rem .15rem; font-size: .875rem; font-weight: 720; }
.admin-link:hover { color: var(--ink); text-decoration: underline; }
.error-mark { background: var(--error-surface); color: var(--error); }

.admin-login { max-width: 32rem; padding-block: 4rem 5rem; }
.admin-shell { padding-block: 3.75rem 5rem; }
.admin-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.admin-heading .section-heading p { margin-top: 1rem; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .45fr); gap: 1.5rem; align-items: start; }
.admin-grid hr { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }
.admin-grid .section-heading { margin-bottom: 1.25rem; }
.admin-grid .field small { margin-top: .5rem; }
.admin-grid input[type="file"] { padding: .6rem; }
.admin-grid input::file-selector-button {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: .4rem;
  margin-right: .55rem;
  padding: .35rem .5rem;
  cursor: pointer;
}
.palette-group { min-width: 0; padding: 1rem; margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: .8rem; }
.palette-group legend { padding-inline: .35rem; font-weight: 750; color: var(--ink-soft); }
.palette-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .9rem 1rem; }
.palette-item { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; }
.palette-item label { font-size: .9rem; font-weight: 670; }
.color-pair { display: grid; grid-template-columns: 2.85rem minmax(0, 1fr); gap: .5rem; }
.color-pair input { min-width: 0; padding: .5rem; }
.color-pair input[type="color"] { padding: .3rem; cursor: pointer; }
.color-pair input[type="text"] { font-family: ui-monospace, Consolas, monospace; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.admin-feedback { margin: 1rem 0 0; color: var(--ink-soft); line-height: 1.5; }
.admin-feedback:empty { margin: 0; }
.admin-login .admin-feedback:not(:empty) { margin: 0 0 1rem; }
.admin-shell button:disabled, .admin-login button:disabled { opacity: .6; cursor: default; transform: none; }
.branding-preview { position: sticky; top: 6rem; padding: 1.35rem; }
.preview-sample { margin-top: 1.15rem; border: 1px solid var(--line); border-radius: .85rem; overflow: hidden; color: var(--ink); background: var(--paper); }
.preview-sample .brand { border-bottom: 1px solid var(--line); padding: .75rem; background: var(--white); }
.preview-content { padding: 1rem .75rem; }
.preview-content h3 { font-family: Georgia, serif; font-size: 1.55rem; margin: .8rem 0 .4rem; }
.preview-content p { margin: 0 0 1rem; color: var(--ink-soft); }
.preview-content .button { cursor: default; }
.preview-content .button:hover { transform: none; }

@media (max-width: 800px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .branding-preview { position: static; grid-row: 1; }
}
@media (max-width: 480px) {
  .topbar-links { gap: .7rem; }
  .topbar-links .topbar-meta { display: none; }
  .admin-heading { flex-wrap: wrap; margin-bottom: 1rem; }
  .admin-heading .section-heading { margin-bottom: 0; }
  .admin-actions > * { width: 100%; }
}
