:root {
  color-scheme: light;
  --ink: #191919;
  --muted: #686864;
  --line: #e3e3df;
  --soft: #f5f5f2;
  --green: #38742c;
  --red: #ad4030;
  --gutter: clamp(20px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.5 Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, a, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button { border-radius: 0; }
button:disabled { cursor: wait; opacity: .5; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
::selection { background: #e6eddf; }
::placeholder { color: #757570; opacity: 1; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4vw, 3.625rem); letter-spacing: -.045em; }
h2 { font-size: 1.5rem; letter-spacing: -.035em; margin-bottom: 16px; }
p { overflow-wrap: anywhere; }
header { min-height: 84px; max-width: 1120px; padding: 12px var(--gutter); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { font: 34px/1 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; display: grid; place-items: center; min-width: 44px; min-height: 44px; }
nav { display: flex; align-items: center; gap: 24px; font-size: .875rem; color: var(--muted); }
nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; }
nav a:hover, .back:hover, footer a:hover, .text-link:hover, .mood-prompt:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
nav a[aria-current=page] { color: var(--ink); }
.preview-note { margin: 0 auto; max-width: 900px; padding: 4px var(--gutter) 12px; display: flex; align-items: baseline; justify-content: center; gap: 10px; color: var(--muted); font-size: .75rem; line-height: 1.5; text-align: center; }
.preview-note > span { font-size: .625rem; letter-spacing: .08em; flex-shrink: 0; }
.preview-note a { display: none; }
.mood-hero { text-align: center; padding: 28px var(--gutter) 52px; }
.giant-emoji { font: clamp(150px, 18vw, 230px)/1.2 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; margin-bottom: 28px; }
.mood-hero h1 { font-size: clamp(1.625rem, 3vw, 2.3125rem); letter-spacing: -.04em; margin: 0 auto 16px; max-width: 740px; }
.mood-label { color: var(--muted); margin-bottom: 12px; font-size: 1rem; }
.mood-score { font-size: 3.5625rem; line-height: 1.15; font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.mood-score > span { font-size: 1.25rem; font-weight: 400; color: var(--muted); letter-spacing: -.025em; margin-left: 5px; }
.mood-meta { color: var(--muted); font-size: .8125rem; margin: 16px auto 0; line-height: 1.9; }
.mood-meta > span { margin-right: 4px; }
.mood-meta > span:not(.movement) { margin: 0 6px; }
.mood-prompt { font-size: .875rem; color: #555550; display: inline-block; margin-top: 24px; padding: 10px 0; }
.explore, .detail { max-width: 980px; padding: 32px var(--gutter) 64px; margin: auto; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; }
.add-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; color: #555550; white-space: nowrap; }
.add-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.search-box { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px; border: 1px solid #bfbfba; }
.search-box > span:first-child { font-size: 28px; line-height: 1; }
.search-box input { min-width: 0; width: 100%; flex: 1; border: 0; outline: none; min-height: 56px; background: transparent; font-size: 1rem; }
.search-box:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.search-hint, .rank, .mini-bar { display: none; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0 24px; }
.sort-tabs, .chart-ranges { display: flex; flex-wrap: wrap; gap: 4px; }
.sort-tabs button, .chart-ranges button { min-height: 44px; padding: 10px 13px; border: 0; background: transparent; font-size: .875rem; color: var(--muted); transition: background .15s ease, color .15s ease; }
.sort-tabs button[aria-pressed=true], .chart-ranges button[aria-pressed=true] { background: #efefeb; color: var(--ink); }
select { min-height: 44px; max-width: 100%; border: 0; border-bottom: 1px solid #bfbfba; background: #fff; padding: 10px 25px 10px 8px; font-size: .875rem; border-radius: 0; }
.table-head, .entity-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 1fr 1fr 1fr 22px; align-items: center; gap: 20px; }
.table-head { color: var(--muted); font-size: .75rem; letter-spacing: .025em; border-bottom: 1px solid #bfbfba; padding-bottom: 14px; }
.entity-row { min-height: 90px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: background .15s ease; }
.entity-row:focus-visible { outline-offset: 2px; position: relative; }
.entity-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.entity-name > span:last-child { min-width: 0; }
.entity-mark { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; background: var(--soft); border-radius: 50%; font-size: 22px; font-weight: 600; }
.mark-wikipedia { font-family: Georgia, serif; }
.entity-name strong { display: block; font-size: 1.0625rem; letter-spacing: -.02em; line-height: 1.3; overflow-wrap: anywhere; }
.entity-name small { display: block; color: var(--muted); font-size: .75rem; margin-top: 5px; line-height: 1.4; }
.mobile-votes { display: none; }
.entity-score { font-size: 1.75rem; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.positive, .up { color: var(--green); }
.mixed { color: #85621a; }
.negative, .down { color: var(--red); }
.unrated { color: var(--muted); }
.movement { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: inherit; }
.row-movement, .row-votes { font-size: .875rem; }
.row-votes { color: var(--muted); font-variant-numeric: tabular-nums; }
.row-arrow { font-size: 22px; }
.sample-footnote { font-size: .75rem; line-height: 1.7; color: var(--muted); margin: 20px 0 0; }
footer { max-width: 900px; margin: 0 auto; padding: 24px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; color: var(--muted); font-size: .8125rem; }
footer a { display: flex; align-items: center; min-height: 44px; }
.skip { position: absolute; top: -100px; left: 16px; background: #fff; padding: 12px; z-index: 10; }
.skip:focus { top: 12px; }
.loading { padding: 80px var(--gutter); color: var(--muted); text-align: center; }
.empty { padding: 48px 16px; text-align: center; }
.empty h1 { font-size: 2.25rem; }
.empty h3 { font-size: 1.75rem; letter-spacing: -.03em; margin-bottom: 12px; }
.empty p { color: var(--muted); }
.empty button { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; padding: 12px; min-height: 44px; font-size: .875rem; }
#toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 14px 20px; background: var(--ink); color: #fff; width: max-content; max-width: calc(100vw - 32px); font-size: .875rem; box-shadow: 0 4px 18px #0001; z-index: 10; }
#toast:empty { display: none; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; color: var(--muted); }
.detail-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 28px 0 24px; }
.detail-title > div { min-width: 0; }
.eyebrow { font-size: .8125rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 12px; }
.detail-title h1 { margin: 0 0 14px; overflow-wrap: anywhere; text-wrap: initial; }
.detail-title p:not(.eyebrow) { color: var(--muted); margin-bottom: 0; max-width: 600px; }
.detail-emoji { font: 110px/1.2 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; flex-shrink: 0; }
.detail-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 44px; }
.detail-stats > strong { font-size: 4rem; font-weight: 500; letter-spacing: -.05em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.detail-stats small { font-size: 1.375rem; color: var(--muted); letter-spacing: -.02em; margin-left: 3px; }
.detail-stats > div { font-size: .875rem; color: var(--muted); line-height: 1.9; }
.vote-section h2 { margin: 0; }
.vote-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.vote-options button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 158px; border: 1px solid #cecec8; background: #fff; padding: 20px 12px 14px; font-size: 1rem; line-height: 1.4; transition: border-color .15s, background .15s; }
.vote-options button > span { font-size: 36px; line-height: 1.2; margin-bottom: 14px; }
.vote-options button[aria-pressed=true] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #f7f7f3; }
.vote-options button small { display: block; min-height: 18px; font-size: .75rem; color: #555550; margin-top: 8px; }
.vote-note { font-size: .8125rem; line-height: 1.8; color: var(--muted); margin: 16px 0 0; min-height: 44px; }
.vote-note button { min-height: 44px; padding: 0 8px; font-size: inherit; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; margin: 44px 0 32px; }
.detail-grid > section { min-width: 0; }
.detail-grid h2 { margin: 0 0 16px; }
.chart-ranges { margin-bottom: 16px; }
.subtle { font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.trend-chart { display: block; width: 100%; height: auto; margin: 20px 0 8px; overflow: visible; }
.chart-dates { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .75rem; }
details { font-size: .875rem; color: var(--muted); margin-top: 20px; }
summary { min-height: 44px; padding: 12px 0; }
.history-table { max-height: 320px; overflow: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
.history-table > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.history-table > div > span:last-child { white-space: nowrap; }
.chart-empty { min-height: 185px; display: grid; place-content: center; text-align: center; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.breakdown { margin-top: 28px; }
.breakdown > div:first-child { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: .875rem; }
.breakdown small { color: var(--muted); font-size: .75rem; }
.breakdown-track { height: 5px; background: #efefea; margin-top: 12px; }
.breakdown-track i { display: block; height: 100%; }
.choice-2 { background: #84b875; }
.choice-1 { background: #d8bc60; }
.choice-0 { background: #cf8b80; }
.about { max-width: 760px; padding: 32px var(--gutter) 64px; margin: auto; }
.about h1 { font-size: clamp(2.25rem, 4vw, 3.3125rem); margin: 32px 0 24px; }
.about p { color: #5d5d58; line-height: 1.8; }
.about .intro { font-size: 1.375rem; color: var(--ink); line-height: 1.6; }
.about h2 { margin-top: 36px; }
.mood-scale { margin: 24px 0; }
.mood-scale > div { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mood-scale span { font-size: 30px; }
.mood-scale strong { font-size: 1rem; font-weight: 400; }
.mood-scale small { margin-left: auto; color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; margin-top: 16px; }
.add-page { max-width: 660px; padding: 32px var(--gutter) 64px; margin: auto; }
.add-page h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 28px 0 16px; }
.add-page .intro, .add-page > section > p { color: var(--muted); line-height: 1.7; }
.add-page form { margin-top: 28px; }
.add-page form > label, .aliases-field label { display: block; font-size: .875rem; margin: 24px 0 8px; }
.add-page input:not([type=checkbox]), .add-page select, .add-page textarea { display: block; width: 100%; min-width: 0; border: 1px solid #bfbfba; border-radius: 0; background: #fff; padding: 12px 14px; margin-top: 8px; font-size: 1rem; min-height: 50px; }
.add-page textarea { resize: vertical; min-height: 100px; }
.field-hint { font-size: .8125rem; line-height: 1.6; color: var(--muted); margin: 8px 0; }
.primary-button, .primary-link { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; background: var(--ink); color: #fff; padding: 12px 20px; border: 1px solid var(--ink); font-size: .875rem; margin-top: 20px; text-align: center; overflow-wrap: anywhere; max-width: 100%; }
.primary-button:disabled { cursor: default; }
.aliases-field { margin: 16px 0 0; }
.match-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); padding: 20px; margin: 12px 0; }
.match-card > div { min-width: 0; }
.match-card > span { flex-shrink: 0; }
.match-card strong { display: block; font-size: 1.125rem; letter-spacing: -.02em; margin-bottom: 8px; overflow-wrap: anywhere; }
.match-card small { display: block; font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.match-card p { font-size: .875rem; color: #555550; line-height: 1.6; margin: 12px 0; }
.distinct-confirm { display: flex; align-items: flex-start; gap: 12px; font-size: .875rem; line-height: 1.6; padding: 12px 0; margin-top: 12px; cursor: pointer; }
.distinct-confirm input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--ink); }
#match-review h2 { font-size: 1.75rem; margin-top: 36px; }
#form-error, #create-error { color: var(--red); font-size: .875rem; line-height: 1.6; }
#form-error:empty, #create-error:empty { display: none; }
@media (hover: hover) {
  .sort-tabs button:hover, .chart-ranges button:hover { background: var(--soft); color: var(--ink); }
  .entity-row:hover, .match-card:hover { background: #fafaf8; }
  .vote-options button:hover { background: var(--soft); border-color: #777772; }
  .primary-button:not(:disabled):hover, .primary-link:hover { background: #383834; }
}
@media (max-width: 1000px) {
  footer { margin-inline: var(--gutter); }
  .table-head, .entity-row { gap: 16px; grid-template-columns: minmax(0, 2fr) .9fr 1fr .9fr 20px; }
  .detail-grid { gap: 32px; }
}
@media (max-width: 760px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .detail-grid > section + section { border-top: 1px solid var(--line); padding-top: 32px; }
}
@media (max-width: 650px) {
  header { min-height: 72px; padding-block: 8px; gap: 12px; }
  .wordmark { font-size: 30px; }
  nav { gap: 18px; }
  nav span { display: none; }
  .preview-note { flex-direction: column; align-items: center; gap: 2px; padding-bottom: 4px; font-size: .75rem; }
  .mood-hero { padding-top: 28px; padding-bottom: 28px; }
  .giant-emoji { font-size: 160px; margin-bottom: 24px; }
  .mood-hero h1 { max-width: 350px; }
  .mood-score { font-size: 3.125rem; }
  .mood-meta { max-width: 340px; }
  .mood-prompt { margin-top: 16px; }
  .explore, .detail, .about, .add-page { padding-top: 24px; padding-bottom: 44px; }
  .section-heading { gap: 12px; margin-bottom: 18px; }
  .section-heading h2 { font-size: 1.375rem; }
  .search-box { padding-inline: 14px; gap: 10px; }
  .filter-bar { display: block; margin: 12px 0 20px; }
  .sort-tabs { gap: 2px; justify-content: space-between; }
  .sort-tabs button { padding-inline: 9px; font-size: .8125rem; }
  .filter-bar select { margin-top: 8px; }
  .table-head, .entity-row { grid-template-columns: minmax(0, 1fr) 72px 70px; gap: 12px; }
  .table-head { font-size: .6875rem; letter-spacing: 0; }
  .table-head > span:nth-child(n+4), .row-votes, .row-arrow { display: none; }
  .table-head > span:nth-child(3), .row-movement { text-align: right; }
  .entity-row { min-height: 88px; }
  .entity-name { gap: 10px; }
  .entity-mark { width: 32px; height: 32px; font-size: 19px; }
  .entity-name strong { font-size: 1rem; }
  .entity-score { font-size: 1.625rem; }
  .mobile-votes { display: block; margin-top: 2px; }
  .row-movement { font-size: .8125rem; }
  .detail-title { gap: 16px; margin: 22px 0; }
  .detail-title h1 { font-size: 2.5rem; }
  .detail-emoji { font-size: 72px; }
  .detail-stats { gap: 12px 20px; margin-bottom: 32px; }
  .detail-stats > strong { font-size: 3.25rem; }
  .detail-stats > div { font-size: .8125rem; }
  .vote-section h2, .detail-grid h2 { font-size: 1.375rem; }
  .vote-options { gap: 8px; margin-top: 20px; }
  .vote-options button { font-size: .875rem; padding: 18px 6px 12px; min-height: 150px; }
  .vote-options button > span { font-size: 32px; }
  .detail-grid { margin-top: 32px; }
  .about .intro { font-size: 1.25rem; }
  .primary-button { width: 100%; }
}
@media (max-width: 380px) {
  .sort-tabs button { padding-inline: 7px; }
  .table-head, .entity-row { grid-template-columns: minmax(0, 1fr) 65px 60px; gap: 8px; }
  .entity-mark { display: none; }
  .mood-meta { font-size: .75rem; }
  .detail-emoji { font-size: 56px; }
  .detail-title h1 { font-size: 2.125rem; }
  .detail-stats > strong { font-size: 2.875rem; }
  .vote-options { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Location reports and conversation */
[hidden] { display: none !important; }
.reports-section,.discussion-section { border-top:1px solid var(--line); padding-top:36px; margin-top:40px; }
.reports-section .section-heading,.discussion-section .section-heading { align-items:flex-start; }
.reports-section .section-heading h2,.discussion-section .section-heading h2 { margin-bottom:8px; }
.reports-section .section-heading p,.discussion-section .section-heading p { margin-bottom:0; }
.quiet-button { min-height:44px; padding:10px 12px; border:1px solid var(--line); background:#fff; font-size:.875rem; }
.inline-button { min-height:44px; padding:8px 6px; border:0; background:none; text-decoration:underline; text-underline-offset:3px; font-size:.8125rem; color:var(--muted); }
.map-shell { position:relative; border:1px solid var(--line); }
#report-map { height:380px; width:100%; background:#f8faf7; z-index:0; }
.map-loading { position:absolute; inset:0; display:grid; place-content:center; text-align:center; padding:24px; background:#f8faf7; margin:0; font-size:.875rem; color:var(--muted); pointer-events:none; }
.map-caption { display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; margin:14px 0 8px; }
.map-legend { display:flex; flex-wrap:wrap; gap:18px; font-size:.8125rem; color:var(--muted); }
.map-legend span { display:flex; align-items:center; gap:7px; }
.map-legend i { width:8px; height:8px; border-radius:50%; }
.map-empty { color:var(--muted); font-size:.875rem; padding:14px 0; margin:0; }
.leaflet-container { font-family:Helvetica,Arial,sans-serif; }
.leaflet-container .leaflet-control-attribution { font-size:11px; background:#fffffff0; }
.leaflet-container .leaflet-control-attribution a { color:#555; }
.leaflet-bar { box-shadow:none; border:1px solid var(--line)!important; border-radius:0!important; }
.leaflet-bar a { width:36px!important; height:36px!important; line-height:36px!important; border-radius:0!important; }
.leaflet-popup-content { font-size:13px; line-height:1.7; margin:16px; }
.leaflet-popup-content-wrapper { border-radius:0; box-shadow:0 2px 12px #0002; }
.reported-areas { max-height:280px; overflow:auto; }
.area-row { display:grid; grid-template-columns:minmax(0,1fr) auto; width:100%; gap:5px 12px; padding:14px 0; text-align:left; border:0; border-bottom:1px solid var(--line); background:#fff; font-size:.875rem; }
.area-row span:first-child { overflow-wrap:anywhere; }
.area-row small { grid-column:1/-1; color:var(--muted); }
.area-form { margin:24px 0; padding:24px; border:1px solid var(--line); }
.area-form h3 { font-size:1.25rem; letter-spacing:-.025em; margin-bottom:12px; }
.area-form label,.comment-form label { display:block; font-size:.875rem; margin:18px 0 8px; }
.area-form input,.comment-form input,.comment-form textarea { display:block; width:100%; border:1px solid #bfbfba; background:#fff; padding:12px 14px; margin-top:8px; border-radius:0; font-size:1rem; }
.comment-form textarea { resize:vertical; min-height:120px; }
.comment-form input { max-width:320px; }
.form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:18px; }
.form-actions .primary-button { margin:0; }
.composer-bottom { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:4px 16px; margin:8px 0 0; }
.composer-bottom .field-hint { margin:0; }
#reply-context { background:var(--soft); padding:8px 14px; font-size:.875rem; overflow-wrap:anywhere; }
#comment-error,#area-error,#map-error { color:var(--red); font-size:.875rem; margin-top:12px; }
#comment-error:empty,#area-error:empty,#map-error:empty { display:none; }
#thread-status { color:var(--muted); font-size:.875rem; margin:24px 0; }
.comment { padding:24px 0 16px; border-top:1px solid var(--line); }
.comment-meta { display:flex; align-items:baseline; gap:8px 12px; flex-wrap:wrap; font-size:.875rem; }
.comment-meta strong { overflow-wrap:anywhere; }
.comment-meta time { color:var(--muted); font-size:.75rem; margin-left:auto; }
.your-comment { font-size:.6875rem; color:var(--muted); background:var(--soft); padding:2px 6px; }
.comment-body { white-space:pre-wrap; line-height:1.7; margin:12px 0 4px; font-size:1rem; }
.comment-body.removed { color:var(--muted); font-style:italic; }
.comment-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.comment-actions .inline-button:first-child { padding-left:0; }
.remove-confirm { font-size:.8125rem; }
.replies { margin:12px 0 0 20px; padding-left:20px; border-left:2px solid var(--line); }
.comment-reply { padding-top:18px; }
@media(max-width:650px){
 #report-map { height:300px; }
 .reports-section .section-heading,.discussion-section .section-heading { flex-wrap:wrap; }
 .area-form { padding:18px; }
 .form-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; }
 .comment-meta time { width:100%; margin:0; }
 .replies { margin-left:8px; padding-left:14px; }
 .leaflet-bar a { width:44px!important; height:44px!important; line-height:44px!important; }
}

/* Private moderation workspace */
.admin {max-width:1100px;margin:auto;padding:48px 24px 80px}
.admin-heading,.admin-item-heading,.admin-pagination,.admin-actions,.admin-tabs {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.admin h1 {font-size:clamp(44px,8vw,80px);letter-spacing:-.055em;margin:10px 0 28px}
.admin h2 {font-size:clamp(22px,4vw,30px);letter-spacing:-.025em;margin:0}
.admin p {line-height:1.6;overflow-wrap:anywhere}
.admin button,.admin select {border:1px solid #ccc;padding:12px 18px;background:white;color:#191919;font:inherit;cursor:pointer}
.admin button:disabled {opacity:.45;cursor:default}
.admin input,.admin textarea {display:block;width:100%;min-width:0;padding:14px;border:1px solid #bbb;font:inherit;background:white;color:#191919;box-sizing:border-box}
.admin label {display:block;margin-bottom:8px;font-size:14px}
.admin .primary-button,.admin [aria-pressed=true] {background:#191919;color:white;border-color:#191919}
.admin-tabs {justify-content:flex-start;margin:24px 0}
.admin-filters {display:flex;align-items:end;gap:16px;margin:32px 0}
.admin-filters>div:first-child {flex:1;min-width:0}
.admin-item {border-top:1px solid #ddd;padding:28px 0}
.admin-item-heading {align-items:flex-start}
.admin-badge {font-size:12px;text-transform:uppercase;letter-spacing:.08em;background:#f1f1ed;padding:7px 10px}
.admin-actions {justify-content:flex-start;margin-top:20px}
.admin-comment {white-space:pre-wrap}
.admin-reason {font-size:14px;color:#666}
.admin-pagination {border-top:1px solid #ddd;padding-top:24px}
.admin #login {max-width:480px;padding:30px 0}
.admin #login button {margin-top:20px}
.admin dialog {width:min(520px,calc(100vw - 48px));box-sizing:border-box;border:1px solid #bbb;padding:28px;max-height:85vh;overflow:auto}
.admin dialog::backdrop {background:rgb(0 0 0 / .35)}
.admin #notice,.admin #action-error {color:#8b392f}
.admin [hidden] {display:none!important}
@media(max-width:600px){.admin {padding:30px 18px 60px}.admin-filters {flex-wrap:wrap}.admin-filters>div:first-child {flex-basis:100%}.admin-actions button {flex:1}.admin-item-heading h2 {overflow-wrap:anywhere;min-width:0;flex:1}.admin dialog {padding:22px}}

/* Compact, bounded discussions */
.comment-form {display:grid;grid-template-columns:minmax(150px,220px) 1fr;gap:10px 16px;margin:20px 0 24px}
.comment-form label {margin:0;font-size:.8125rem}
.comment-form input,.comment-form textarea {padding:10px 12px;margin-top:6px}
.comment-form textarea {min-height:76px;max-height:240px}
.comment-form .composer-bottom,.comment-form #reply-context,.comment-form #comment-error {grid-column:1/-1}
.comment-form .primary-button {justify-self:start;margin:0;padding:10px 18px;font-size:.875rem}
.comment {padding:15px 0 10px}
.comment-body {font-size:.9375rem;line-height:1.5;margin:7px 0 2px;overflow-wrap:anywhere}
.comment-meta {gap:4px 8px;font-size:.8125rem}
.comment-actions {gap:12px}
.comment-actions .inline-button {font-size:.75rem;padding-top:7px;padding-bottom:7px}
.replies {margin-top:8px;margin-left:10px;padding-left:14px}
.comment-reply {padding:12px 0 8px}
.thread-pagination {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.75rem;color:var(--muted);margin-top:12px}
.thread-pagination [hidden] {display:none}
#thread-status {margin:12px 0;font-size:.8125rem}
#thread-status:empty {display:none}
#comment-list {scroll-margin-top:24px}
@media(max-width:650px){.comment-form {grid-template-columns:1fr}.comment-form input {max-width:none}.comment-meta time {width:auto;margin-left:auto}.comment-form .field-hint {font-size:.75rem}}

.bot-trap {position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;pointer-events:none}

/* Accessibility and internationalized controls */
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.language-picker {flex-shrink:0;font-size:.8125rem}
.language-picker select {min-height:44px;max-width:130px;padding:8px;border:1px solid #bfbfba;background:#fff}
header nav {margin-left:auto;flex-wrap:wrap}
button,summary {min-height:44px}
main a:not(.entity-row):not(.back):not(.match-card):not(.primary-link):not(.mood-prompt),.field-hint a {text-decoration:underline;text-underline-offset:3px}
:where([tabindex]):focus-visible {outline:2px solid var(--ink);outline-offset:4px}
@media(max-width:650px){header {gap:8px;flex-wrap:wrap}header nav {gap:12px;font-size:.8125rem}.language-picker select {max-width:110px}nav.thread-pagination {gap:8px}.admin-tabs button {white-space:normal}}
@media(forced-colors:active){button,input,select,textarea {border:1px solid ButtonText}.breakdown-track i,.mini-bar i {background:Highlight}.entity-row {border-bottom:1px solid CanvasText}:focus-visible {outline:3px solid Highlight}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after {scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Compact navigation: links stay primary, utility controls stay quiet. */
header {gap:24px;min-height:88px;flex-wrap:nowrap;}
header .wordmark {margin-right:auto;flex-shrink:0;}
header nav {margin-left:0;gap:28px;flex-wrap:nowrap;}
header nav a {white-space:nowrap;text-decoration:none;position:relative;}
header nav a span {display:none;}
header nav a[aria-current="page"]::after {content:"";position:absolute;bottom:4px;left:0;right:0;height:1px;background:currentColor;}
header .language-picker {margin:0;position:relative;}
header .language-picker::after {content:"";position:absolute;right:13px;top:50%;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-70%) rotate(45deg);pointer-events:none;}
header .language-picker select {appearance:none;-webkit-appearance:none;box-sizing:border-box;width:76px;min-width:76px;min-height:44px;max-width:none;padding:10px 30px 10px 12px;line-height:1.4;border:0;background-color:transparent;font-size:.75rem;font-weight:500;cursor:pointer;}
header .share-page {display:grid;place-items:center;flex:0 0 44px;width:44px;min-height:44px;padding:10px;border:0;background:transparent;color:var(--muted);}
header .share-page:hover,header .language-picker select:hover {background:#f4f4f1;color:var(--ink);}
@media(max-width:650px){
 header {display:grid;grid-template-columns:1fr auto auto;column-gap:6px;row-gap:0;padding-top:12px;padding-bottom:4px;min-height:96px;}
 header .wordmark {grid-column:1;grid-row:1;justify-self:start;margin:0;}
 header .language-picker {grid-column:2;grid-row:1;}
 header .share-page {grid-column:3;grid-row:1;}
 header nav {grid-column:1 / -1;grid-row:2;justify-content:flex-start;gap:24px;font-size:.8125rem;}
 header nav a {min-height:40px;}
}

.admin-settings {padding:24px 0;margin-bottom:24px;border-bottom:1px solid var(--line);}.admin-settings label {display:flex;align-items:center;gap:12px;min-height:44px;}.admin-settings input {width:20px;height:20px;accent-color:var(--ink);}.admin-settings .field-hint {max-width:600px;margin:8px 0;}

.analytics-choice{position:fixed;bottom:16px;left:16px;right:16px;max-width:540px;margin-left:auto;background:#fff;border:1px solid #ccc;padding:20px;z-index:1000;box-shadow:0 3px 18px #0001}.analytics-choice p{margin:0 0 16px;font-size:15px;line-height:1.5}.analytics-choice button{min-height:44px;margin:0 12px 4px 0;font-size:14px;padding:8px 14px}.analytics-choice button:first-of-type{background:#191919;color:#fff}

/* A branded startup state; no-JS and failed modules retain the readable fallback. */
.page-loader{display:none}
.app-pending #main{display:none}
.app-pending .page-loader{display:flex;min-height:68vh;padding:48px 24px 64px;align-items:center;justify-content:center;flex-direction:column;text-align:center}
.loader-face{font-size:clamp(72px,12vw,112px);line-height:1.15;margin-bottom:24px}
.page-loader p{font-size:clamp(18px,3vw,24px);letter-spacing:-.5px;line-height:1.35;color:var(--muted);max-width:360px;margin:0 0 24px;text-wrap:balance}
.loader-track{width:112px;height:4px;background:var(--soft);border-radius:9px;overflow:hidden}
.loader-track span{display:block;width:42%;height:100%;border-radius:9px;background:#b8cba8;animation:loading-drift 1.6s ease-in-out infinite alternate}
.loader-preview{width:min(360px,76vw);display:grid;gap:12px;margin-top:48px}
.loader-preview i{height:9px;border-radius:9px;background:var(--soft);width:100%}
.loader-preview i:nth-child(2){width:82%;justify-self:center}
.loader-preview i:nth-child(3){width:60%;justify-self:center}
@keyframes loading-drift{from{transform:translateX(0)}to{transform:translateX(140%)}}
@media(prefers-reduced-motion:reduce){.loader-track span{animation:none;width:100%;background:#c5d4b9}}

/* Preserve reading order in Arabic while keeping charts and numeric scores stable. */
html[dir="rtl"] body{font-family:Tahoma,Arial,sans-serif}
html[dir="rtl"] .wordmark,html[dir="rtl"] .mood-score,html[dir="rtl"] .detail-stats strong,html[dir="rtl"] .movement,html[dir="rtl"] #report-map,html[dir="rtl"] svg{direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] [data-user-content]{unicode-bidi:plaintext}
html[dir="rtl"] input[type="url"],html[dir="rtl"] input[name="website"]{direction:ltr;text-align:start}
html[dir="rtl"] .language-picker select{direction:ltr}
html[dir="rtl"] .comment-reply{margin-left:0;margin-right:20px}
html[dir="rtl"] .search-hint{direction:rtl}
html[lang="hi"] h1,html[lang="hi"] h2,html[lang="ar"] h1,html[lang="ar"] h2{letter-spacing:0;line-height:1.35}
html[lang="zh"] h1,html[lang="zh"] h2{line-height:1.3}
