:root {
  color-scheme: light dark;
  --paper: #f4f3ed;
  --white: #fffefa;
  --ink: #182923;
  --muted: #728078;
  --line: #e5e6de;
  --forest: #174d40;
  --forest-deep: #123e34;
  --sage: #dbe8dc;
  --pale: #edf2eb;
  --orange: #e37c5d;
  --orange-light: #f7e4dc;
  --yellow: #eac767;
  --red: #ae483c;
  --shadow: 0 12px 36px rgba(24, 41, 35, .07);
  --font: 'Avenir Next', Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111815;
  --white: #1b2420;
  --ink: #edf3ed;
  --muted: #a0ada4;
  --line: #35433a;
  --forest: #6fb294;
  --forest-deep: #91c4a8;
  --sage: #2c3d33;
  --pale: #25342b;
  --shadow: 0 12px 36px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
html[data-theme="light"] { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(227, 124, 93, .55); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; }
[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; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 1.45; }
.eyebrow { display: block; color: #668075; font-size: 11px; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }

.app-shell { min-height: 100vh; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; height: 60px; align-items: center; justify-content: space-between; padding: 0 max(28px, calc((100vw - 1210px) / 2)); border: 0; background: transparent; backdrop-filter: blur(12px); transition: transform .2s ease; will-change: transform; }
body.topbar-hidden .topbar { transform: translateY(-105%); pointer-events: none; }
body.profile-page-active .topbar-profile { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--forest-deep); font: 800 18px/1 var(--display); letter-spacing: -.04em; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--forest); color: #fffefa; font: 800 12px/1 var(--display); letter-spacing: -.06em; }
.top-nav { display: flex; height: 100%; align-items: center; gap: 8px; }
.nav-item { position: relative; display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 0; border-radius: 12px; background: transparent; color: #68776e; cursor: pointer; font-size: 13px; font-weight: 600; transition: color .18s ease, background .18s ease; }
.nav-item:hover { background: #eef1e9; color: var(--forest); }
.nav-item.active { background: #e6eee5; color: var(--forest); }
.nav-item.active::after { position: absolute; right: 16px; bottom: -16px; left: 16px; height: 2px; background: var(--forest); content: ''; }
.nav-icon { display: inline-grid; min-width: 17px; place-items: center; font-size: 18px; font-weight: 500; line-height: 1; }
.topbar-profile { display: flex; align-items: center; gap: 9px; }
.topbar-profile { min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 600; }
.topbar-profile button { min-height: 44px; padding: 5px 0; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 600; }
.profile-dot { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #f1d8bd; color: #714832; font: 800 13px var(--display); }
.chevron { color: #849089; font-size: 16px; }
main { min-height: calc(100vh - 160px); }
main.route-enter { animation: route-enter .22s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes route-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.page { width: min(1120px, calc(100% - 56px)); margin: 0 auto; padding: 54px 0 86px; }
.narrow-page { width: min(760px, calc(100% - 40px)); }
.page-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; }
.page-heading h1 { margin: 7px 0 5px; font: 800 clamp(28px, 3.6vw, 42px)/1.1 var(--display); letter-spacing: -.055em; }
.page-heading p { max-width: 640px; margin: 9px 0 0; font-size: 15px; }
.page-heading .eyebrow { color: #818e85; }
.home-page { padding-top: 22px; }
.feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 13px; }
.feed-heading h1 { margin: 0; color: var(--ink); font: 700 clamp(27px, 3vw, 35px)/1.08 var(--display); letter-spacing: -.045em; }
.secondary-feed-heading { margin-bottom: 19px; }
.explore-page { padding-top: 20px; }
.explore-toolbar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.create-fab { display: inline-grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; padding: 0 0 3px; border: 0; border-radius: 50%; background: var(--forest); color: #fffefa; box-shadow: 0 5px 14px rgba(23, 77, 64, .2); cursor: pointer; font: 400 28px/1 var(--font); transition: background .16s ease, transform .16s ease, box-shadow .16s ease; }
.create-fab:hover { background: var(--orange); box-shadow: 0 7px 18px rgba(140, 67, 46, .2); transform: translateY(-1px) rotate(90deg); }
.settings-back { margin: 0 0 7px; }
.profile-page { padding-top: 52px; }
.profile-page .profile-heading { margin: 0 0 10px; }
.profile-page > .profile-section:first-of-type { margin-top: 8px; }
.settings-page { padding-top: 14px; }
.settings-page .settings-back { margin-bottom: 3px; }
.settings-page .page-heading { margin-bottom: 9px; }
.settings-page .page-heading .eyebrow { display: none; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 39px 0 18px; }
.section-heading h2 { margin: 4px 0 0; font: 800 24px/1.15 var(--display); letter-spacing: -.045em; }

.hero-panel { position: relative; display: flex; min-height: 335px; overflow: hidden; align-items: center; justify-content: space-between; padding: 48px 58px; border-radius: 24px; background: var(--forest); color: #f7f5ea; }
.hero-copy { position: relative; z-index: 1; width: min(570px, 63%); }
.hero-copy .eyebrow { color: #b9d1bd; }
.hero-copy h1 { max-width: 610px; margin: 13px 0 14px; font: 800 clamp(36px, 4.4vw, 56px)/1.04 var(--display); letter-spacing: -.06em; }
.hero-copy p { max-width: 545px; margin: 0; color: #d7e2d8; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: 11px; padding: 0 19px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 700; transition: transform .18s ease, background .18s ease, border .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--forest); color: #fffefa; }
.button-primary:hover { background: var(--forest-deep); }
.button-secondary { border-color: #dce3db; background: #fffefa; color: var(--forest); }
.button-secondary:hover { border-color: #a9c0b0; background: #f4f7f1; }
.button-light { background: #f7f3e5; color: var(--forest-deep); }
.button-light:hover { background: #fffefa; }
.button-ghost-light { border-color: rgba(240, 248, 237, .3); background: transparent; color: #f7f5ea; }
.button-ghost-light:hover { background: rgba(255,255,255,.08); }
.button-danger { background: var(--red); color: #fff; }
.button-danger-ghost { border-color: #efd4ce; background: transparent; color: var(--red); }
.button-danger-ghost:hover { background: #fbefec; }
.button-small { min-height: 44px; padding: 0 13px; border-radius: 10px; font-size: 12px; }
.button-wide { width: 100%; min-height: 52px; }
.text-button { display: inline-flex; min-height: 44px; align-items: center; padding: 5px 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; font-size: 13px; font-weight: 700; }
.text-button:hover { color: var(--orange); }
.icon-button { display: inline-grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border: 1px solid #e2e5dd; border-radius: 11px; background: #fffefa; color: var(--forest); cursor: pointer; font-size: 20px; }
.icon-button:hover, .icon-button.is-following { border-color: #e8ca79; background: #fcf6e2; color: #986e19; }
.hero-art { position: relative; width: 300px; height: 260px; flex: 0 0 300px; margin-right: 3%; }
.hero-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(219, 235, 216, .32); border-radius: 50%; transform: translate(-50%, -50%); }
.ring-a { width: 245px; height: 245px; }
.ring-b { width: 188px; height: 188px; border-style: dashed; opacity: .8; }
.hero-center { position: absolute; top: 50%; left: 50%; display: grid; width: 94px; height: 94px; place-items: center; border: 7px solid rgba(241, 246, 233, .28); border-radius: 50%; background: #e9c568; color: var(--forest); font: 800 24px var(--display); transform: translate(-50%, -50%); box-shadow: 0 9px 30px rgba(4, 22, 17, .2); }
.hero-bubble { position: absolute; display: grid; place-items: center; border: 4px solid rgba(244, 244, 231, .5); border-radius: 50%; background: #e98260; color: #fff4e9; font: 800 22px var(--display); box-shadow: 0 8px 20px rgba(4, 22, 17, .15); }
.bubble-a { top: 11px; left: 37px; width: 50px; height: 50px; }
.bubble-b { right: 6px; bottom: 38px; width: 60px; height: 60px; background: #6caa8a; font-size: 15px; letter-spacing: 3px; }
.hero-dot { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #e9c568; }
.dot-a { top: 44px; right: 57px; }
.dot-b { bottom: 21px; left: 76px; width: 9px; height: 9px; background: #d7e3d2; }
.dot-c { top: 54%; left: 1px; width: 7px; height: 7px; background: #e98260; }
.poll-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.poll-list, .explore-poll-list { display: grid; gap: 10px; }
.poll-card { position: relative; display: flex; flex-direction: column; padding: 17px 19px; border: 1px solid #e6e7df; border-radius: 17px; background: var(--white); box-shadow: 0 3px 9px rgba(28, 43, 33, .025); transition: box-shadow .2s ease, transform .2s ease; }
.poll-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.poll-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.poll-symbol { display: inline-grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 13px; background: #f0f3e9; font-size: 20px; }
.poll-symbol-large { width: 54px; height: 54px; margin-bottom: 13px; font-size: 27px; }
.poll-badges { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
.badge { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; border: 1px solid #e8eae3; border-radius: 20px; background: #f8f8f4; color: #66756b; font-size: 10px; font-weight: 700; }
.badge-open { border-color: #d8e9dc; background: #edf6ee; color: #38734e; }
.badge-synthetic { border-color: #eadfca; background: #fbf4e4; color: #8b6a29; }
.poll-title-button { align-self: stretch; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.poll-title-button h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; }
.poll-title-button h3 { margin: 0; font: 700 19px/1.3 var(--display); letter-spacing: -.035em; }
.poll-title-button:hover h3 { color: var(--forest); }
.poll-audience { display: flex; align-items: center; gap: 7px; margin: 8px 0 6px; color: #7a857d; font-size: 12px; }
.mini-icon { color: #688675; font-size: 17px; }
.poll-card-bottom { display: flex; min-height: 0; align-items: center; justify-content: space-between; gap: 10px; margin-top: 0; padding: 8px 0 10px; border-top: 1px solid #eef0e9; }
.poll-count { color: #748077; font-size: 11px; white-space: nowrap; }
.result-preview { overflow: hidden; color: #445b4f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.result-preview strong { font-size: 13px; }
.poll-card-actions { display: flex; align-items: center; gap: 8px; }
.creator-label { overflow: hidden; margin-left: auto; color: #909b92; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.home-bottom-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 21px; }
.method-card, .home-link-card { display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid #e4e6de; border-radius: 15px; background: #eeefe8; }
.method-icon, .home-link-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: #dce9dd; color: var(--forest); font-size: 19px; }
.home-link-icon { background: #f5e1d9; color: #a6553d; }
.method-card strong, .home-link-card strong { font-size: 12px; }
.method-card p, .home-link-card p { margin: 4px 0 0; color: #78847b; font-size: 11px; line-height: 1.4; }
.home-link-card .icon-button { margin-left: auto; }
.empty-state { display: flex; min-height: 260px; flex-direction: column; align-items: center; justify-content: center; padding: 34px; border: 1px dashed #cdd6ce; border-radius: 17px; background: rgba(255,255,255,.5); text-align: center; }
.empty-state h3 { margin: 12px 0 3px; font: 700 19px var(--display); }
.empty-state p { max-width: 470px; margin: 5px 0 18px; color: var(--muted); font-size: 13px; }
.empty-symbol { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 18px; background: #e5eee4; color: var(--forest); font-size: 26px; }
.compact-empty { min-height: 200px; margin-top: 24px; }
.empty-inline { padding: 16px 0; color: var(--muted); font-size: 13px; }

.explore-page { padding-top: 34px; }
.explore-filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(270px, 1.1fr) auto; align-items: start; gap: 12px; margin: 0 0 18px; padding: 16px; border: 1px solid #e3e5dd; border-radius: 15px; background: #fbfaf5; }
.search-field, .filter-select { display: flex; min-height: 47px; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid #e1e4dc; border-radius: 11px; background: #fffefa; color: #829087; }
.search-field span { font-size: 20px; }
.search-field input, .filter-select select { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 13px; }
.filter-select { display: block; padding: 5px 12px; }
.filter-select span { display: block; margin-bottom: -2px; color: #89938b; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.filter-select select { height: 23px; }
.explore-category-menu { min-width: 0; padding: 0 12px 11px; border: 1px solid #e1e4dc; border-radius: 11px; background: #fffefa; }
.explore-category-menu > summary { display: flex; min-height: 45px; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; color: #53645a; font-size: 11px; font-weight: 700; }
.explore-category-menu > summary::-webkit-details-marker { display: none; }
.explore-category-menu > summary::after { color: #718177; content: '+'; font-size: 17px; font-weight: 400; }
.explore-category-menu[open] > summary::after { content: '−'; }
.explore-category-menu > summary .category-count { flex: 0 0 auto; margin-left: auto; padding-right: 0; }
.explore-category-menu > p { margin: 0 0 6px; }
.explore-category-menu .category-picker { max-height: 290px; margin-top: 5px; padding-right: 5px; border-top: 1px solid #edf0e9; }
.explore-category-menu .category-group { padding: 7px 0; }
.explore-category-menu .category-grid { gap: 5px; }
.explore-category-menu .category-choice { min-height: 44px; padding: 5px 8px; }
.explore-filter-actions { display: flex; align-items: center; gap: 8px; }
.explore-filter-actions .button { min-height: 47px; white-space: nowrap; }
.filter-summary { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: #53655a; font-size: 12px; font-weight: 700; }

.profile-grid { display: grid; grid-template-columns: 1fr 180px 180px; gap: 12px; }
.profile-main-card, .profile-stat { display: flex; min-height: 112px; align-items: center; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.profile-main-card { gap: 14px; }
.profile-main-card > div:nth-child(2) { min-width: 0; }
.profile-main-card .button { margin-left: auto; white-space: nowrap; }
.profile-avatar { display: grid; width: 53px; height: 53px; flex: 0 0 auto; place-items: center; border-radius: 18px; background: #e9d3be; color: #79563c; font: 800 21px var(--display); }
.profile-main-card h2 { margin: 2px 0 1px; font: 800 20px var(--display); letter-spacing: -.04em; }
.profile-main-card p { max-width: 350px; margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.profile-stat { flex-direction: column; align-items: flex-start; justify-content: center; }
.profile-stat strong { color: var(--forest); font: 800 26px var(--display); letter-spacing: -.05em; }
.profile-stat span { font-size: 12px; font-weight: 700; }
.profile-stat small { margin-top: 3px; color: #89948c; font-size: 10px; }
.profile-section { margin-top: 36px; }
.profile-admin-button { margin-top: 28px; }
.profile-section .section-heading { margin: 0 0 14px; }
.private-tags { padding: 13px; border: 1px solid #e4e7de; border-radius: 13px; background: #fafaf5; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid #e2e8df; border-radius: 99px; background: #f4f7f0; color: #526f5c; font-size: 11px; font-weight: 600; }
.tag-private { border-color: #dce8df; background: #eaf2eb; }
.tag-private span { color: #8a9a8e; font-size: 9px; }
.truth-reminder { margin: 10px 0; color: #7d877f; font-size: 11px; }
.compact-poll-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.history-row { display: flex; width: 100%; min-height: 72px; align-items: center; gap: 13px; padding: 12px 16px; border: 0; border-bottom: 1px solid #eef0ea; background: transparent; cursor: pointer; text-align: left; }
.history-row:last-child { border-bottom: 0; }
.history-row:hover { background: #f7f8f1; }
.history-row > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.history-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.history-row small { margin-top: 3px; color: #879189; font-size: 10px; }
.row-arrow { color: #8a988e; }
.settings-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #ecefe7; }
.settings-section h2 { margin: 4px 0; font: 700 18px var(--display); }
.settings-section p { margin: 0; font-size: 12px; }
.language-section { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.language-section label { font-size: 12px; font-weight: 700; }
.language-section select, .language-select-row select { min-height: 35px; padding: 0 10px; border: 1px solid #dfe4dc; border-radius: 9px; background: #fffefa; color: var(--ink); }
.account-language-field { margin-bottom: 16px; }

.create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 22px; }
.create-form { width: min(100%, 850px); margin: 0 auto; padding: 4px 24px 24px; border: 1px solid #e4e6de; border-radius: 18px; background: var(--white); }
.form-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 23px 0; border-bottom: 1px solid #eceee8; }
.step-number { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 10px; background: #e8eee6; color: var(--forest); font: 700 11px var(--display); }
.form-section-content { min-width: 0; }
.field-label { display: block; margin: 0 0 8px; color: #34483c; font-size: 12px; font-weight: 700; }
.required-star { color: var(--orange); }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), textarea, select { width: 100%; padding: 12px 13px; border: 1px solid #dfe3db; border-radius: 10px; background: #fffefa; color: var(--ink); font-size: 13px; }
input::placeholder, textarea::placeholder { color: #a2aaa3; }
textarea { min-height: 76px; resize: vertical; }
.input-footnote { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 17px; color: #939c95; font-size: 10px; }
.form-section-content > .field-label:not(:first-child) { margin-top: 15px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
.type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 19px; }
.type-switch-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.type-switch > label { cursor: pointer; }
.type-switch input { position: absolute; opacity: 0; }
.type-card { display: grid; min-height: 72px; grid-template-columns: 27px 1fr; grid-template-rows: 1fr 1fr; column-gap: 7px; align-items: center; padding: 11px 13px; border: 1px solid #e1e5dd; border-radius: 12px; background: #fcfcf8; }
.type-card b { grid-row: span 2; color: var(--forest); font-size: 19px; }
.type-card strong { align-self: end; font-size: 12px; }
.type-card small { align-self: start; color: #88938b; font-size: 10px; }
.type-switch input:checked + .type-card { border-color: #8eae98; background: #edf4ed; box-shadow: inset 0 0 0 1px #8eae98; }
.options-list { display: grid; gap: 8px; }
.option-input { display: flex; align-items: center; gap: 8px; }
.option-input > span { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #f0f2ec; color: #718177; font-size: 10px; font-weight: 700; }
.option-input input { min-width: 0; flex: 1; }
.remove-option { width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 8px; background: transparent; color: #9b7770; cursor: pointer; font-size: 18px; }
.remove-option:not(:disabled):hover { background: #f9e9e4; }
.add-option-button { min-height: 44px; margin-top: 9px; padding: 6px 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; font-size: 11px; font-weight: 700; }
.scale-preview-create { display: flex; align-items: center; gap: 11px; margin: 3px 0 20px; color: #64756a; font-size: 12px; font-weight: 700; }
.range-track { position: relative; height: 6px; flex: 1; border-radius: 9px; background: #e2e7df; }
.range-fill { position: absolute; top: 0; left: 0; height: 100%; border-radius: inherit; background: var(--forest); }
.average-marker { position: absolute; top: 50%; width: 14px; height: 14px; border: 3px solid #fffefa; border-radius: 50%; background: var(--orange); transform: translate(-50%, -50%); box-shadow: 0 0 0 1px rgba(35, 65, 48, .12); }
.preview-range-fill { width: 50%; }
.preview-average-marker { left: 50%; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.value-fields { margin: 4px 0 10px; }
.value-fields .two-fields + .two-fields { margin-top: 12px; }
.poll-rules-notice { margin-top: 18px; padding: 13px 15px; border: 1px solid #dce7dc; border-radius: 11px; background: #f2f7f0; color: #3d5947; font-size: 11px; line-height: 1.55; }
.poll-rules-notice p { margin: 4px 0 0; color: #65766a; }
.category-group { padding: 13px 0; border-bottom: 1px solid #edf0e9; }
.category-group summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: 12px; font-weight: 700; }
.category-group summary::-webkit-details-marker { display: none; }
.category-group summary::after { color: #718177; content: '+'; font-size: 18px; font-weight: 400; }
.category-group[open] summary::after { content: '−'; }
.category-subgroup { margin-left: 13px; padding-left: 10px; border-left: 2px solid #dbe5da; }
.category-group p { margin: 7px 0 9px; }
.category-count { margin-left: auto; padding-right: 12px; color: var(--forest); font-size: 10px; font-weight: 500; }
.category-subgroup { margin: 6px 0; padding: 0 0 5px; border-bottom: 1px solid #edf0e9; }
.category-subgroup > summary { display: flex; min-height: 42px; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: #53645a; font-size: 11px; font-weight: 700; }
.category-subgroup > summary::-webkit-details-marker { display: none; }
.category-subgroup > summary::after { margin-left: auto; color: #718177; content: '+'; font-size: 16px; font-weight: 400; }
.category-subgroup[open] > summary::after { content: '−'; }
.category-subgroup .category-count { margin-left: 0; padding: 0; }
.category-required { padding: 2px 7px; border-radius: 99px; background: #f6ead1; color: #725c23; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.category-required-hint { margin: 0 0 8px; }
.category-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.city-search { margin: 10px 0; }
.city-search input { width: 100%; min-height: 44px; border: 1px solid #dce3db; border-radius: 10px; background: #fffefa; padding: 0 12px; }
.city-search p { margin: 5px 0 0; }
.city-search-results { max-height: 230px; overflow-y: auto; padding: 2px 4px 7px 0; scrollbar-color: #d4ddd4 transparent; scrollbar-width: thin; }
.city-result { width: 100%; justify-content: flex-start; text-align: left; }
.city-result span { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 9px; }
.city-result small { color: var(--muted); font-size: 10px; }
.category-choice { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #e1e6de; border-radius: 9px; background: #fffefa; color: #53645a; cursor: pointer; font-size: 11px; transition: background .14s ease, border .14s ease; }
.category-choice:has(input:checked) { border-color: #a7c2ab; background: #edf5eb; color: #315e45; }
.category-choice input { width: 14px; height: 14px; margin: 0; accent-color: var(--forest); }
.continent-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.territory-entry { margin: 10px 0; }
.age-entry, .age-range-entry { margin: 10px 0; }
.age-entry input, .age-range-entry input { min-height: 42px; padding: 0 10px; border: 1px solid #dce3db; border-radius: 9px; background: #fffefa; color: var(--ink); }
.age-entry input { width: 100%; margin-top: 5px; }
.age-range-entry .field-label { display: block; margin-bottom: 6px; }
.age-range-entry .inline-field input { width: 0; }
.territory-choice { margin-left: 9px; }
.everyone-choice { margin: 10px 0 4px; font-size: 11px; }
.disabled-picker { opacity: .5; pointer-events: none; }
.disabled-picker .category-choice { pointer-events: none; }
.audience-picker { margin-top: 10px; }
.audience-dropdown { border: 1px solid #dfe6dc; border-radius: 12px; background: #fbfcf8; }
.audience-dropdown > summary { display: flex; min-height: 48px; align-items: center; gap: 12px; padding: 0 14px; cursor: pointer; list-style: none; color: #3c5145; font-size: 12px; font-weight: 700; }
.audience-dropdown > summary::-webkit-details-marker { display: none; }
.audience-dropdown > summary::after { margin-left: auto; color: #738278; content: '+'; font-size: 19px; font-weight: 400; }
.audience-dropdown[open] > summary::after { content: '−'; }
.audience-dropdown[aria-disabled="true"] > summary { cursor: not-allowed; }
.audience-dropdown-panel { max-height: min(55vh, 470px); overflow-y: auto; overscroll-behavior: contain; padding: 5px 13px 14px; border-top: 1px solid #e7ebe4; scrollbar-color: #d4ddd4 transparent; scrollbar-width: thin; }
.audience-dropdown-panel > p { margin: 8px 0; }
.audience-dropdown-panel .category-picker { max-height: none; overflow: visible; padding: 0; }
.audience-dropdown-panel .category-group { padding: 5px 0; }
.audience-dropdown-panel .category-group > summary { min-height: 42px; }
.custom-place-row { margin-top: 15px; }
.inline-field { display: flex; gap: 8px; }
.inline-field input { min-width: 0; flex: 1; }
.custom-place-row .muted { margin: 5px 0 0; }
.custom-city { margin-top: 8px; }
.duration-control { max-width: 220px; }
.creator-toggle { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0 2px; cursor: pointer; }
.creator-toggle input, .truth-confirm input, .neutral-confirm input { width: 17px; height: 17px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--forest); }
.creator-toggle span { display: flex; flex-direction: column; }
.creator-toggle strong { font-size: 11px; }
.creator-toggle small { margin-top: 3px; color: #87928a; font-size: 10px; }
.neutral-confirm { display: flex; align-items: start; gap: 9px; margin: 20px 0 14px; color: #4f6656; font-size: 11px; font-weight: 600; }
.create-aside { position: sticky; top: 97px; overflow: hidden; padding: 19px; border: 1px solid #e1e6dc; border-radius: 16px; background: #e9eee4; }
.aside-illustration { position: relative; display: grid; height: 132px; place-items: center; overflow: hidden; border-radius: 12px; background: var(--forest); }
.aside-illustration > span { z-index: 1; display: grid; width: 58px; height: 58px; place-items: center; border: 5px solid #f0e7c8; border-radius: 50%; background: #e3bd61; color: var(--forest); font: 800 27px var(--display); }
.orbit-small { position: absolute; width: 110px; height: 110px; border: 1px solid rgba(233, 241, 225, .42); border-radius: 50%; }
.orbit-small.orbit-two { width: 160px; height: 160px; border-style: dashed; }
.create-aside h3 { margin: 18px 0 10px; font: 700 17px/1.3 var(--display); letter-spacing: -.035em; }
.create-aside ul { margin: 0; padding: 0 0 0 16px; color: #697b6c; font-size: 11px; }
.create-aside li { margin: 7px 0; }
.aside-rule { margin-top: 16px; padding-top: 13px; border-top: 1px solid #d6e0d3; }
.aside-rule strong { color: var(--forest); font-size: 11px; }
.aside-rule p { margin: 4px 0 0; color: #78867b; font-size: 10px; }

.truth-notice, .privacy-callout { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #eadfca; border-radius: 11px; background: #fbf5e9; color: #715d37; }
.truth-notice > span, .privacy-callout > span { flex: 0 0 auto; color: #bd8d32; font-size: 17px; font-weight: 700; }
.truth-notice p, .privacy-callout p { margin: 0; font-size: 11px; line-height: 1.55; }
.recovery-key-notice { margin: 20px 0; }
.recovery-key-notice > div { min-width: 0; flex: 1; }
.recovery-key-notice strong { display: block; margin-bottom: 5px; }
.recovery-code-display { display: block; margin-top: 10px; padding: 11px; border-radius: 8px; background: #fffdf8; color: #19362d; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; user-select: all; }
.recovery-key-notice .modal-actions { flex-wrap: wrap; margin: 12px 0 2px; }
.privacy-callout { margin: 16px 0 25px; border-color: #d9e6dc; background: #eff5ee; color: #4f6d58; }
.privacy-callout > span { color: var(--forest); }
.truth-confirm { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0 19px; color: #52664f; cursor: pointer; font-size: 11px; line-height: 1.5; }
.truth-confirm input { margin-top: 1px; }
.category-picker { max-height: 480px; overflow: auto; padding: 0 9px 0 0; scrollbar-color: #d4ddd4 transparent; scrollbar-width: thin; }
.onboarding-page { display: grid; min-height: 100vh; grid-template-columns: .92fr 1.08fr; background: var(--white); }
.onboarding-art { position: sticky; top: 0; display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: var(--forest); color: #f3f4e9; }
.onboarding-art::before, .onboarding-art::after { position: absolute; width: 410px; height: 410px; border: 1px solid rgba(238, 243, 224, .17); border-radius: 50%; content: ''; }
.onboarding-art::after { width: 310px; height: 310px; border-style: dashed; }
.onboarding-art p { z-index: 1; max-width: 330px; margin: 34px 25px 0; font: 700 25px/1.25 var(--display); text-align: center; letter-spacing: -.035em; }
.onboarding-coin { z-index: 1; display: grid; width: 118px; height: 118px; place-items: center; border: 7px solid rgba(246, 243, 227, .45); border-radius: 50%; background: var(--yellow); color: var(--forest); font: 800 31px var(--display); box-shadow: 0 14px 36px rgba(4, 22, 17, .22); }
.orbit { position: absolute; z-index: 1; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font-size: 16px; }
.orbit-one { top: calc(50% - 104px); left: calc(50% - 104px); }
.orbit-two { top: calc(50% + 96px); right: calc(50% - 119px); width: 48px; height: 48px; background: #7cb090; }
.orbit-three { top: calc(50% - 9px); right: calc(50% - 163px); width: 20px; height: 20px; background: #e9c568; }
.onboarding-card { width: min(100%, 710px); justify-self: center; padding: 42px clamp(26px, 7vw, 82px) 35px; }
.onboarding-card > .brand { margin-bottom: 32px; }
.onboarding-card h1 { margin: 7px 0 5px; font: 800 32px var(--display); letter-spacing: -.055em; }
.onboarding-card > .muted { margin: 0; font-size: 12px; }
.onboarding-card form { margin-top: 22px; }
.onboarding-card form > input { margin-bottom: 13px; }
.onboarding-card form > h2 { display: flex; align-items: center; gap: 9px; margin: 22px 0 10px; font: 700 17px var(--display); }
.optional-label { padding: 4px 8px; border-radius: 20px; background: #eff1eb; color: #748077; font: 600 9px var(--font); letter-spacing: .03em; text-transform: uppercase; }
.onboarding-card .category-picker { margin-top: 9px; }
.onboarding-card .button-wide { margin-top: 0; }
.language-select-row { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid #eef0ea; color: #78857d; font-size: 11px; }
.back-link { display: flex; min-height: 44px; align-items: center; margin: 0 0 22px; padding: 5px 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; font-size: 12px; font-weight: 700; }
.truth-notice + .category-picker { margin-top: 7px; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: flex; align-items: center; justify-content: center; padding: 25px; background: rgba(14, 28, 22, .52); backdrop-filter: blur(5px); }
.modal { position: relative; width: min(690px, 100%); max-height: min(88vh, 880px); overflow: hidden; border: 1px solid rgba(247, 249, 240, .6); border-radius: 21px; background: var(--white); box-shadow: 0 25px 80px rgba(9, 23, 17, .25); }
.modal-scroll { max-height: min(88vh, 880px); overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto; padding: 28px; }
.modal-open { overflow: hidden; }
.modal-close { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #e4e7df; border-radius: 50%; background: #fffefa; color: #738078; cursor: pointer; font-size: 22px; line-height: 1; }
.poll-modal h2 { max-width: 570px; margin: 8px 0 7px; padding-right: 27px; font: 800 clamp(23px, 3vw, 31px)/1.2 var(--display); letter-spacing: -.045em; }
.detail-meta { margin: 0 0 18px; color: #7c8980; font-size: 11px; }
.detail-audience { padding: 12px; border-radius: 12px; background: #f0f4ed; }
.detail-audience > strong { display: block; margin-bottom: 7px; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.detail-audience > p { margin: 8px 0 0; }
.poll-context { padding: 11px 0; color: #626f66; font-size: 12px; }
.modal-actions { display: flex; align-items: center; gap: 12px; margin: 14px 0 21px; }
.modal-actions .text-button { margin-left: auto; color: #8e594b; }
.vote-form { margin: 18px 0 23px; padding: 18px; border: 1px solid #e4e8df; border-radius: 14px; background: #f8f9f4; }
.vote-form legend { margin-bottom: 13px; font-size: 13px; font-weight: 700; }
.vote-options { display: grid; gap: 8px; }
.vote-option { display: flex; min-height: 44px; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #e4e7df; border-radius: 10px; background: var(--white); cursor: pointer; font-size: 12px; }
.vote-option:has(input:checked) { border-color: #9ab69e; background: #eff5ed; }
.vote-range-error { display: block; margin-top: 7px; color: var(--red); font-size: 12px; font-weight: 650; line-height: 1.45; }
.vote-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.radio-mark { width: 16px; height: 16px; flex: 0 0 auto; border: 1px solid #a9b4ab; border-radius: 50%; }
.vote-option:has(input:checked) .radio-mark { border: 5px solid var(--forest); background: white; }
.vote-form > .button, .vote-form > .vote-confirm-button { margin-top: 14px; }
.vote-confirm-button { display: grid; width: 52px; height: 52px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #238347; color: #fff; cursor: pointer; box-shadow: 0 7px 17px rgba(26, 118, 62, .22); font-size: 28px; line-height: 1; transition: transform .15s ease, background .15s ease; }
.vote-confirm-button:hover:not(:disabled) { background: #176a37; transform: scale(1.05); }
.vote-confirm-button:disabled { opacity: .38; box-shadow: none; }
.scale-picker { display: flex; align-items: center; gap: 15px; }
.scale-picker > span { color: var(--forest); font: 800 17px var(--display); }
.scale-picker input[type="range"] { width: 100%; accent-color: var(--forest); }
.scale-preview { display: flex; align-items: baseline; gap: 9px; margin: 10px 0 0 29px; color: #738177; font-size: 11px; }
.scale-preview output { color: var(--forest); font: 800 26px var(--display); }
.result-labels { display: flex; justify-content: space-between; margin-top: 8px; color: #87928a; font-size: 10px; }
.vote-state { display: flex; align-items: center; gap: 10px; margin: 17px 0; padding: 12px; border-radius: 11px; background: #edf4ed; color: #42644a; font-size: 11px; }
.vote-state > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #d7e8d8; font-size: 13px; }
.vote-state p { margin: 3px 0 0; color: #748177; font-size: 10px; }
.vote-state-muted { background: #f1f2ed; color: #68776e; }
.vote-state-muted > span { background: #e4e8df; }
.audience-read-only { margin: 12px 0 2px; }
.detail-results { margin-top: 19px; padding-top: 16px; border-top: 1px solid #eceee8; }
.detail-results h3 { margin: 0 0 12px; font: 700 16px var(--display); }
.results-panel { padding: 15px; border: 1px solid #e6e9e0; border-radius: 13px; background: #fbfcf8; }
.result-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.result-heading .eyebrow { font-size: 9px; }
.response-total { color: #6d7a70; font-size: 10px; font-weight: 700; }
.big-average { margin-top: 2px; color: var(--forest); font: 800 36px/.95 var(--display); letter-spacing: -.06em; }
.big-average small { color: #718177; font: 600 13px var(--font); letter-spacing: normal; }
.result-track { height: 7px; margin: 20px 5px 4px; }
.result-track .average-marker { width: 17px; height: 17px; }
.svg-result-track { height: 16px; margin: 17px 0 2px; }
.svg-result-track svg { display: block; width: 100%; height: 100%; overflow: visible; }
.result-option { margin-top: 14px; }
.result-option-line { display: flex; justify-content: space-between; gap: 10px; color: #47584d; font-size: 11px; }
.result-option-line strong { flex: 0 0 auto; color: var(--forest); }
.bar-track { height: 7px; overflow: hidden; margin: 6px 0 3px; border-radius: 9px; background: #e8ece5; }
.bar-track svg { display: block; width: 100%; height: 100%; }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: #91ae94; }
.bar-fill-accent { background: var(--forest); }
.result-option small { color: #89948b; font-size: 9px; }
.sample-warning { margin: 14px 0 0; color: #806a3f; font-size: 10px; }
.sample-warning span { color: #bd8d32; }
.method-note, .modal-disclaimer { margin: 10px 0 0; color: #78847a; font-size: 10px; line-height: 1.5; }
.results-hidden { padding: 14px; border: 1px dashed #d7ded4; border-radius: 12px; background: #f7f8f3; color: #627268; font-size: 11px; }
.results-hidden p { margin: 5px 0 0; color: #87938a; font-size: 10px; }
.discussion-entry { margin-top: 14px; }
.discussion-open-button { min-height: 47px; gap: 9px; border-radius: 12px; }
.discussion-open-button > span:first-child { color: var(--forest); font-size: 16px; }
.discussion-count { display: inline-grid; min-width: 23px; height: 23px; place-items: center; margin-left: 4px; padding: 0 6px; border-radius: 20px; background: #e9eee7; color: var(--forest); font-size: 10px; }
.comments-backdrop { z-index: 61; }
.comments-modal { width: min(560px, 100%); }
.comments-scroll { display: flex; max-height: min(88vh, 820px); flex-direction: column; gap: 10px; }
.comments-heading { padding-right: 38px; }
.comments-heading h2 { margin: 5px 0; font: 800 26px/1.15 var(--display); letter-spacing: -.04em; }
.comments-heading p { margin: 0; color: #758178; font-size: 12px; line-height: 1.45; }
.comments-privacy { margin: 3px 0 0; color: #78847a; font-size: 10px; line-height: 1.5; }
.comments-empty { margin: 5px 0; padding: 26px 15px; border: 1px dashed #d9e0d7; border-radius: 13px; color: #758178; font-size: 12px; text-align: center; }
.comment-list { display: grid; gap: 7px; margin: 4px 0 0; }
.comment-item { padding: 12px 13px 8px; border: 1px solid #e5e9e1; border-radius: 13px; background: #fffefa; }
.comment-body { margin: 0; color: #33443b; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.comment-action { display: inline-flex; min-height: 40px; align-items: center; gap: 5px; padding: 0 5px; border: 0; background: transparent; color: #718078; cursor: pointer; font: 600 10px var(--font); }
.comment-action span { color: #9a7067; font-size: 16px; }
.comment-action.is-liked, .comment-action.is-liked span { color: #cf5f5a; }
.comment-delete-action { color: var(--red); }
.comment-like-count { cursor: default; }
.comment-replies { display: grid; gap: 6px; margin: 5px 0 2px 14px; padding-left: 10px; border-left: 2px solid #e5eae3; }
.comment-reply { padding: 8px 9px 4px; border: 0; border-radius: 0; background: #f7f8f3; }
.comment-composer { position: sticky; bottom: 0; display: grid; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #e8ebe4; background: var(--white); }
.comment-composer textarea { min-height: 76px; resize: vertical; background: #fffefa; font-size: 12px; }
.reply-context { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #69786e; font-size: 10px; }
.reply-context span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-context .text-button { flex: 0 0 auto; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.composer-footer > span { color: #89948b; font-size: 10px; }
.composer-footer .button { min-height: 44px; }
.discussion-inline { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.discussion-inline .comments-heading h3 { margin: 0 0 12px; font: 700 21px/1.15 var(--display); letter-spacing: -.025em; }
.discussion-inline .comment-item { background: color-mix(in srgb, var(--white) 80%, var(--paper)); }
.moderation-card { margin: 12px 0; padding: 15px; border: 1px solid #e3e7de; border-radius: 14px; background: #fffefa; }
.moderation-card h3 { margin: 7px 0; font: 700 15px/1.35 var(--display); }
.moderation-card p { color: #68766d; font-size: 12px; line-height: 1.55; }
.moderation-card .moderation-parent { padding-left: 10px; border-left: 2px solid #d8e3d7; color: #829087; font-size: 11px; }
.moderation-card .modal-actions { margin: 12px 0 0; flex-wrap: wrap; }
.report-modal, .confirm-modal { width: min(450px, 100%); padding: 27px; }
.report-modal h2, .confirm-modal h2 { margin: 0 34px 8px 0; font: 800 25px var(--display); letter-spacing: -.04em; }
.report-modal form { display: grid; gap: 9px; margin-top: 18px; }
.report-modal .field-label { margin: 4px 0 -5px; }
.report-modal textarea { resize: vertical; }
.report-modal .button { margin-top: 8px; }
.confirm-modal { text-align: center; }
.confirm-modal h2 { margin: 14px 0 6px; }
.confirm-modal p { color: #78847b; font-size: 12px; }
.confirm-modal .modal-actions { justify-content: center; margin: 22px 0 0; }
.dialog-icon { display: inline-grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: #fae8e3; color: var(--red); font-size: 20px; }
.detail-meta, .poll-context { line-height: 1.5; }

.site-footer { display: flex; justify-content: space-between; gap: 15px; width: min(1120px, calc(100% - 56px)); margin: 0 auto; padding: 18px 0 24px; border-top: 1px solid #e3e6df; color: #909a92; font-size: 10px; }
.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 10px 0 28px; }
.profile-summary { display: flex; align-items: center; gap: 12px; min-width: 0; }
.profile-summary h1 { max-width: min(34vw, 320px); overflow: hidden; margin: 0 7px 0 0; font: 800 27px/1.1 var(--display); letter-spacing: -.045em; text-overflow: ellipsis; white-space: nowrap; }
.profile-heading .profile-avatar { width: 48px; height: 48px; flex: 0 0 auto; }
.profile-summary .profile-stat { min-height: 56px; gap: 4px; padding: 8px 12px; }
.profile-summary .profile-stat strong { font-size: 20px; }
.profile-summary .profile-stat span { font-size: 10px; }
.profile-settings-button { flex: 0 0 auto; }
.profile-settings-button svg { display: block; width: 21px; height: 21px; }
.settings-list { display: grid; gap: 8px; }
.settings-row { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); text-align: left; }
button.settings-row { width: 100%; cursor: pointer; font-weight: 600; }
.settings-row select { width: auto; min-width: 125px; }
.settings-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--forest); }
.settings-list .back-link { justify-self: start; }
.settings-comment-history { margin: 0 0 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.settings-comment-summary { display: flex; min-height: 51px; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.settings-comment-summary::-webkit-details-marker { display: none; }
.settings-comment-summary h2 { margin: 0; font: 750 17px/1.2 var(--display); letter-spacing: -.025em; }
.settings-comment-summary-meta { display: inline-flex; align-items: center; gap: 10px; }
.settings-chevron { color: var(--muted); font-size: 19px; transition: transform .18s ease; }
.settings-comment-history[open] .settings-chevron { transform: rotate(180deg); }
.settings-comment-content { padding: 0 0 12px; }
.settings-comment-history .history-row { width: 100%; }
.settings-page .settings-list { gap: 6px; }
.settings-page .settings-row { min-height: 49px; }
.admin-page > h2 { margin: 22px 0 8px; font: 800 18px var(--display); }
.admin-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; margin-bottom: 14px; }
.admin-category-menu { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.admin-category-menu > summary { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; cursor: pointer; list-style: none; font-weight: 700; }
.admin-category-menu > summary::-webkit-details-marker { display: none; }
.admin-category-menu[open] .category-picker { max-height: 50vh; overflow: auto; padding: 10px; border-top: 1px solid var(--line); }
.admin-filters .explore-filter-actions { margin: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-stat { display: grid; min-height: 76px; align-content: space-between; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.admin-stat span { color: var(--muted); font-size: 11px; }
.admin-stat strong { font: 800 23px/1 var(--display); }
.admin-chart { margin-top: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.admin-chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.admin-chart-heading h3 { margin: 0; font: 750 14px var(--display); }
.admin-chart-heading span, .admin-chart-labels { color: var(--muted); font-size: 10px; }
.admin-chart svg { display: block; width: 100%; height: 122px; margin-top: 6px; overflow: visible; }
.admin-chart svg line { stroke: var(--line); stroke-width: 1; }
.admin-chart svg rect { fill: var(--forest); }
.admin-chart-labels { display: flex; justify-content: space-between; }
.admin-suppressed { margin: 12px 0; padding: 11px 12px; border-radius: 12px; background: var(--pale); color: var(--muted); font-size: 12px; }

html[data-theme="dark"] body { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .topbar { background: rgba(17, 24, 21, .68); }
html[data-theme="dark"] .nav-item, html[data-theme="dark"] .text-button { color: #c3d0c6; }
html[data-theme="dark"] .nav-item:hover, html[data-theme="dark"] .nav-item.active { background: #26372e; color: #d9eee0; }
html[data-theme="dark"] .profile-stat, html[data-theme="dark"] .profile-main-card, html[data-theme="dark"] .poll-card,
html[data-theme="dark"] .modal, html[data-theme="dark"] .vote-form, html[data-theme="dark"] .results-panel,
html[data-theme="dark"] .settings-row, html[data-theme="dark"] .comment-item, html[data-theme="dark"] .moderation-card, html[data-theme="dark"] .admin-stat, html[data-theme="dark"] .admin-chart, html[data-theme="dark"] .settings-comment-history, html[data-theme="dark"] .admin-category-menu { border-color: #39483f; background: var(--white); color: var(--ink); }
html[data-theme="dark"] .modal-close, html[data-theme="dark"] .button-secondary, html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .category-choice, html[data-theme="dark"] .vote-option { border-color: #405047; background: #222d27; color: #e3ece4; }
html[data-theme="dark"] .category-choice:has(input:checked), html[data-theme="dark"] .vote-option:has(input:checked) { border-color: #6b9f7e; background: #283f32; color: #e4f0e5; }
html[data-theme="dark"] .audience-dropdown, html[data-theme="dark"] .results-hidden, html[data-theme="dark"] .detail-audience,
html[data-theme="dark"] .comment-composer, html[data-theme="dark"] .comment-reply { background: #202b25; color: var(--ink); }
html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] select,
html[data-theme="dark"] .city-search input { border-color: #46564a; background: #151e19; color: var(--ink); }
html[data-theme="dark"] .category-group, html[data-theme="dark"] .category-subgroup, html[data-theme="dark"] .detail-results { border-color: #344239; }
html[data-theme="dark"] .poll-card-bottom { border-color: #35443b; }
html[data-theme="dark"] .detail-audience { background: #24352b; }
html[data-theme="dark"] .badge { border-color: #3b4a40; background: #202d25; color: #b9c9be; }
html[data-theme="dark"] .bar-track { background: #344139; }
.mobile-nav { display: none; }
.toast { position: fixed; z-index: 80; right: 22px; bottom: 22px; max-width: min(400px, calc(100% - 40px)); padding: 13px 17px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: #1d3f32; color: #fffefa; box-shadow: 0 12px 35px rgba(12,35,24,.22); font-size: 12px; font-weight: 600; animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

html[data-theme="dark"] .profile-heading .profile-stat { border-color: #39483f; background: #1b2420; }
html[data-theme="dark"] .private-tags { border-color: #39483f; background: #19221d; }
html[data-theme="dark"] .tag { border-color: #3b4a40; background: #26362d; color: #c6d9cb; }
html[data-theme="dark"] .history-row { border-color: #35443b; color: var(--ink); }
html[data-theme="dark"] .history-row:hover { background: #24332a; }
html[data-theme="dark"] .category-subgroup { border-left-color: #48604e; }
html[data-theme="dark"] .create-form { border-color: #39483f; }
html[data-theme="dark"] .mobile-nav { border-color: #344239; background: rgba(20, 29, 24, .97); }
html[data-theme="dark"] .explore-filters, html[data-theme="dark"] .explore-category-menu,
html[data-theme="dark"] .search-field, html[data-theme="dark"] .filter-select,
html[data-theme="dark"] .private-tags, html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .audience-dropdown-panel { border-color: #39483f; background: #1b2420; color: var(--ink); }
html[data-theme="dark"] .privacy-callout, html[data-theme="dark"] .results-hidden,
html[data-theme="dark"] .vote-state, html[data-theme="dark"] .vote-state-muted { border-color: #39483f; background: #24332a; color: #c5d7c9; }
html[data-theme="dark"] .empty-symbol, html[data-theme="dark"] .optional-label { background: #28392f; color: #c5d7c9; }
html[data-theme="dark"] .eyebrow, html[data-theme="dark"] .poll-audience,
html[data-theme="dark"] .result-preview, html[data-theme="dark"] .filter-summary,
html[data-theme="dark"] .page-heading .eyebrow { color: #aab8ad; }
html[data-theme="dark"] .detail-results, html[data-theme="dark"] .results-panel,
html[data-theme="dark"] .comment-item, html[data-theme="dark"] .moderation-card { color: var(--ink); }
html[data-theme="dark"] .category-count, html[data-theme="dark"] .result-option small,
html[data-theme="dark"] .method-note, html[data-theme="dark"] .empty-inline { color: #aab8ad; }
html[data-theme="dark"] .comment-action { color: #c4d6c9; }
html[data-theme="dark"] .icon-button:hover, html[data-theme="dark"] .icon-button.is-following { border-color: #766637; background: #3a3421; color: #e6cb76; }
html[data-theme="dark"] .result-track, html[data-theme="dark"] .bar-track { background: #344139; }

@media (prefers-reduced-motion: reduce) {
  main.route-enter { animation: none; }
}

@media (max-width: 900px) {
  .topbar { padding: 0 22px; }
  .top-nav { gap: 0; }
  .nav-item { padding: 0 11px; }
  .explore-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .explore-filter-actions { grid-column: 1 / -1; }
  .hero-panel { padding: 38px; }
  .hero-art { width: 240px; height: 230px; flex-basis: 240px; margin-right: 0; transform: scale(.88); }
  .profile-grid { grid-template-columns: 1fr 145px 145px; }
  .profile-main-card { padding: 15px; }
  .profile-main-card .button { padding: 0 11px; font-size: 10px; }
  .create-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 15px; }
  .create-form { padding-right: 18px; padding-left: 18px; }
}

@media (max-width: 700px) {
  body { font-size: 14px; }
  .topbar { height: 62px; padding: 0 18px; }
  body.profile-page-active .topbar { display: none; }
  .brand { font-size: 16px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 10px; }
  .top-nav { display: none; }
  .topbar-profile { gap: 7px; }
  .topbar-profile button { max-width: 95px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chevron { display: none; }
  main { min-height: calc(100vh - 120px); padding-bottom: 64px; }
  .page { width: calc(100% - 32px); padding: 29px 0 45px; }
  .profile-page { padding-top: 44px; }
  .profile-page .profile-heading { margin-bottom: 7px; }
  .profile-page > .profile-section:first-of-type { margin-top: 4px; }
  .settings-page { padding-top: 9px; }
  .home-page { padding-top: 13px; }
  .feed-heading { margin-bottom: 10px; }
  .feed-heading h1 { font-size: 27px; }
  .secondary-feed-heading { margin-bottom: 14px; }
  .explore-page { padding-top: 13px; }
  .explore-toolbar { margin-bottom: 8px; }
  .create-fab { width: 41px; height: 41px; }
  .narrow-page { width: calc(100% - 32px); }
  .page-heading { margin-bottom: 22px; }
  .page-heading h1 { font-size: 31px; }
  .page-heading p { font-size: 13px; }
  .explore-page { padding-top: 22px; }
  .explore-filters { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 9px; padding: 12px; }
  .explore-category-menu .category-picker { max-height: 245px; }
  .explore-filter-actions { justify-content: flex-start; }
  .explore-filter-actions .button { min-height: 44px; padding: 0 13px; }
  .section-heading { margin-top: 26px; }
  .section-heading h2 { font-size: 21px; }
  .hero-panel { min-height: 300px; padding: 27px 22px; border-radius: 19px; }
  .hero-copy { width: 100%; }
  .hero-copy h1 { max-width: 440px; margin-top: 10px; font-size: clamp(32px, 8vw, 45px); }
  .hero-copy p { max-width: 390px; font-size: 12px; }
  .hero-art { position: absolute; right: -102px; bottom: -114px; opacity: .23; transform: scale(.9); }
  .hero-actions { position: relative; z-index: 2; margin-top: 19px; }
  .hero-actions .button { min-height: 44px; padding: 0 14px; font-size: 11px; }
  .poll-grid { grid-template-columns: 1fr; gap: 11px; }
  .poll-card { padding: 15px; }
  .poll-title-button h3 { font-size: 17px; }
  .poll-card-actions .button-small { min-height: 44px; }
  .creator-label { max-width: 90px; }
  .home-bottom-row { grid-template-columns: 1fr; gap: 9px; }
  .method-card, .home-link-card { padding: 13px; }
  .site-footer { display: none; }
  .mobile-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: flex; min-height: calc(61px + env(safe-area-inset-bottom)); align-items: flex-start; justify-content: space-around; padding: 6px 6px env(safe-area-inset-bottom); border-top: 1px solid #e1e5dc; background: rgba(255,254,250,.97); backdrop-filter: blur(16px); }
  .mobile-nav .nav-item { display: flex; min-width: 54px; min-height: 48px; flex-direction: column; gap: 2px; padding: 3px 7px; border-radius: 9px; font-size: 9px; }
  .mobile-nav .nav-item.active::after { top: 0; right: 20px; bottom: auto; left: 20px; height: 2px; }
  .mobile-nav .nav-icon { font-size: 19px; }
  .explore-filters { grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 13px; padding: 10px; }
  .search-field { grid-column: 1 / -1; }
  .explore-filter-actions { grid-column: 1 / -1; }
  .explore-filter-actions .button { min-height: 42px; padding: 0 12px; }
  .filter-select { min-height: 44px; }
  .filter-summary { font-size: 11px; }
  .profile-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .profile-main-card { grid-column: 1 / -1; flex-wrap: wrap; min-height: 97px; gap: 10px; }
  .profile-main-card .button { width: 100%; margin: 0; }
  .profile-stat { min-height: 94px; padding: 13px; }
  .profile-stat strong { font-size: 23px; }
  .profile-stat small { font-size: 9px; }
  .settings-section { align-items: flex-start; flex-direction: column; gap: 12px; padding: 15px; }
  .settings-section .button { width: 100%; }
  .language-section { flex-wrap: wrap; }
  .language-section .small { flex: 1 0 100%; }
  .create-layout { grid-template-columns: 1fr; }
  .create-aside { position: static; grid-row: 1; display: grid; grid-template-columns: 75px 1fr; gap: 0 12px; padding: 12px; }
  .aside-illustration { height: 75px; grid-row: span 2; }
  .aside-illustration > span { width: 42px; height: 42px; font-size: 20px; }
  .orbit-small.orbit-two { width: 75px; height: 75px; }
  .orbit-small.orbit-one { width: 55px; height: 55px; }
  .create-aside h3 { align-self: end; margin: 0 0 4px; font-size: 13px; }
  .create-aside ul { display: none; }
  .aside-rule { grid-column: 2; margin-top: 0; padding-top: 5px; border: 0; }
  .aside-rule p { display: none; }
  .create-form { padding: 2px 13px 16px; }
  .form-section { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 19px 0; }
  .step-number { width: 24px; height: 24px; border-radius: 8px; font-size: 9px; }
  .field-label { font-size: 11px; }
  .form-section-content > .field-label:not(:first-child) { margin-top: 12px; }
  .type-card { min-height: 65px; grid-template-columns: 22px 1fr; column-gap: 5px; padding: 8px; }
  .type-card strong { font-size: 10px; }
  .type-card small { font-size: 8px; }
  .type-switch-three { grid-template-columns: 1fr; }
  .two-fields { grid-template-columns: 1fr; }
  .truth-confirm { font-size: 10px; }
  .onboarding-page { display: block; min-height: 100vh; }
  .onboarding-art { position: relative; min-height: 185px; height: 185px; }
  .onboarding-art::before { width: 280px; height: 280px; }
  .onboarding-art::after { width: 215px; height: 215px; }
  .onboarding-art p { margin-top: 11px; font-size: 15px; }
  .onboarding-coin { width: 66px; height: 66px; border-width: 4px; font-size: 19px; }
  .orbit { width: 24px; height: 24px; font-size: 10px; }
  .orbit-one { top: 26px; left: calc(50% - 71px); }
  .orbit-two { top: 112px; right: calc(50% - 71px); width: 29px; height: 29px; }
  .orbit-three { top: 78px; right: calc(50% - 103px); width: 13px; height: 13px; }
  .onboarding-card { width: 100%; padding: 22px 20px 36px; }
  .onboarding-card > .brand { margin-bottom: 22px; }
  .onboarding-card h1 { font-size: 28px; }
  .onboarding-card form { margin-top: 15px; }
  .onboarding-card form > h2 { font-size: 16px; }
  .onboarding-card .category-picker { max-height: 390px; }
  .category-group { padding: 11px 0; }
  .category-choice { min-height: 44px; padding: 7px 9px; font-size: 11px; }
  .profile-heading { align-items: flex-start; margin-top: 0; }
  .profile-summary { flex-wrap: wrap; gap: 7px; }
  .profile-summary h1 { max-width: calc(100vw - 140px); font-size: 22px; }
  .profile-summary .profile-stat { min-height: 48px; padding: 6px 9px; }
  .profile-settings-button { width: 40px; height: 40px; }
  .create-form { padding: 0 15px 18px; }
  .category-grid { gap: 5px; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { width: 100%; max-height: 91vh; border-radius: 20px 20px 0 0; }
  .modal-scroll { max-height: 91vh; padding: 23px 18px calc(22px + env(safe-area-inset-bottom)); }
  .comments-modal { max-height: 91vh; }
  .comments-scroll { max-height: 91vh; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .admin-filters { grid-template-columns: minmax(0, 1fr); }
  .admin-filters .explore-filter-actions { justify-content: start; }
  .modal-close { top: 11px; right: 12px; }
  .poll-modal h2 { font-size: 24px; }
  .vote-form { padding: 13px; }
  .report-modal, .confirm-modal { max-height: 84vh; padding: 23px 18px calc(22px + env(safe-area-inset-bottom)); }
  .toast { right: 14px; bottom: calc(74px + env(safe-area-inset-bottom)); left: 14px; max-width: none; text-align: center; }
}

@media (max-width: 370px) {
  .topbar { padding: 0 13px; }
  .topbar-profile button { max-width: 70px; }
  .page { width: calc(100% - 26px); }
  .hero-panel { padding: 22px 17px; }
  .hero-copy h1 { font-size: 31px; }
  .hero-actions { gap: 7px; }
  .hero-actions .button { padding: 0 10px; font-size: 10px; }
  .poll-card-actions { gap: 5px; }
  .poll-card-actions .button-small { padding: 0 9px; font-size: 10px; }
  .creator-label { max-width: 63px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
