/* Which One? — the decision desk.
   Warm paper, ink-blue rules, butter and terracotta used as stationery accents. */

/* Community tools use the same theme tokens as the rest of the desk. */
.feature-page {padding-top:48px;padding-bottom:64px;}
.feature-page h1 {font-size:clamp(2rem,5vw,3.7rem);line-height:1.08;margin:12px 0 20px;}
.feature-lede {max-width:650px;color:var(--ink-soft);margin-bottom:28px;}
.feature-form {max-width:720px;display:grid;gap:20px;background:var(--card);padding:clamp(18px,4vw,32px);border:1px solid var(--line);border-radius:16px;}
.feature-form label {display:block;margin-bottom:8px;}
.feature-actions,.content-actions {display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:18px;}
.content-actions {font-size:.85rem;}
.preview-card {max-width:850px;padding:clamp(16px,3vw,32px);border:1px solid var(--line);border-radius:16px;background:var(--card);}
.preview-card h2 {font-size:clamp(1.5rem,3vw,2.2rem);margin-bottom:12px;}
.preview-pair {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-top:24px;}
.preview-pair img {width:100%;aspect-ratio:4/3;object-fit:contain;background:var(--paper);border-radius:10px;display:block;}
.preview-pair figcaption {margin-top:10px;overflow-wrap:anywhere;}
.activity-list {display:grid;gap:16px;margin-top:24px;}
.activity-item,.review-item {padding:24px;background:var(--card);border:1px solid var(--line);border-radius:14px;}
.activity-item {display:flex;justify-content:space-between;gap:20px;}
.activity-item h2,.review-item h2 {font-size:1.25rem;margin:8px 0;}
.activity-item time {font-size:.8rem;color:var(--ink-soft);}
.activity-item.is-unread {border-left:4px solid var(--ink);}
.unread-dot {width:9px;height:9px;border-radius:50%;background:var(--ink);flex:none;margin-top:8px;}
.review-item blockquote {margin:16px 0;padding:12px 16px;border-left:2px solid var(--line);background:var(--paper);overflow-wrap:anywhere;}
.activity-link {position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;}
.activity-count {position:absolute;top:0;right:0;font-size:10px;background:var(--ink);color:var(--card);padding:1px 5px;border-radius:12px;}
.upload-progress {display:grid;gap:8px;margin:18px 0;font-size:.9rem;}
.upload-progress progress {width:100%;height:8px;accent-color:var(--ink);}
.photo-edit {margin:10px 0;}
#crop-canvas {width:100%;max-height:28dvh;object-fit:contain;background:var(--paper);border-radius:10px;}
.crop-controls {display:grid;gap:8px;font-size:.8rem;}
.crop-controls label {display:grid;grid-template-columns:125px 1fr;align-items:center;gap:12px;}
.crop-controls input {width:100%;accent-color:var(--ink);min-height:28px;}
.danger-button {background:#b42318!important;color:#fff!important;border-color:#b42318!important;}
.danger-text {color:var(--danger,#b42318);}
:root[data-mode="dark"] .danger-text {color:#ffada5;}
@media(max-width:600px){.preview-pair{gap:10px;}.preview-pair figcaption{font-size:.85rem;}.activity-item,.review-item{padding:18px;}.feature-page{padding-top:28px;}.top__actions{gap:8px;}}
@media(max-height:560px) and (min-width:600px){.dlg form[data-extra-form] h2,.dlg form[data-extra-form]>.err,.dlg form[data-extra-form]>.feature-actions{grid-column:1/-1;}#crop-canvas{grid-row:2/4;max-height:35dvh;}.crop-controls{grid-column:2;}.dlg form[data-extra-form="crop"] .feature-actions{grid-column:2;grid-row:3;margin:0;}}

:root {
  --ink: #253365;
  --ink-soft: #485182;
  --paper: #F5F1E7;
  --card: #FFFCF5;
  --butter: #F3D570;
  --butter-pale: #FAF0C8;
  --clay: #E7AB97;
  --clay-pale: #F7E1D8;
  --line: rgba(37, 51, 101, .22);
  --line-strong: rgba(37, 51, 101, .6);
  --f-head: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 3px;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --tabbar-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; scrollbar-gutter:stable; scroll-behavior:smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--butter);
}
main:focus, h1:focus { outline: none; box-shadow: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--ink); color: var(--card); border-radius: var(--r);
}
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- Wordmark ---------- */
.wm {
  display: inline-flex; align-items: baseline; gap: .16em;
  font: 800 1.7rem/1 var(--f-head); letter-spacing: -.045em;
  color: var(--ink); text-decoration: none;
}
.wm__one { font: italic 400 1.3em/1 var(--f-serif); letter-spacing: -.01em; }
.wm__q {
  display: inline-grid; place-items: center; width: 1.3em; height: 1.3em;
  background: var(--butter); border: 1.5px solid var(--ink); border-radius: 50%;
  font-size: .88em; letter-spacing: 0; transform: rotate(9deg) translateY(.1em);
}

/* ---------- Header and navigation ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--ink); }
.top::after { content: ""; display: block; height: 3px; margin-top: 3px; border-bottom: 1px solid var(--ink); }
.top__inner {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gut);
}
.top__nav { display: flex; gap: 6px; margin-right: auto; }
.top__nav a {
  padding: 8px 12px; min-height: 40px; display: inline-flex; align-items: center;
  font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent;
}
.top__nav a:hover { border-bottom-color: var(--line-strong); }
.top__nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.top__actions { display: flex; align-items: center; gap: 16px; }
.who { font-size: .95rem; color: var(--ink-soft); }

.link {
  background: none; border: 0; padding: 8px 4px; min-height: 40px;
  font-weight: 600; text-decoration: underline; text-underline-offset: .2em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.15rem;
  border: 1.5px solid var(--ink); border-radius: var(--r);
  background: transparent; color: var(--ink);
  font: 600 .95rem/1.2 var(--f-body); text-decoration: none; text-align: center;
  transition: background-color .15s, transform .15s;
}
.btn:hover { background: var(--butter-pale); }
.btn--primary { background: var(--ink); color: var(--card); }
.btn--primary:hover { background: #1b2650; }
.btn--yellow { background: var(--butter); }
.btn--yellow:hover { background: #efc95a; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn--sm { min-height: 40px; padding: .4rem .85rem; font-size: .9rem; }

.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Mobile bottom navigation */
.tabbar {
  display: none; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  background: var(--paper); border-top: 1px solid var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar__list { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; max-width: 560px; margin: 0 auto; }
.tabbar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--tabbar-h); padding: 8px 2px; background: none; border: 0;
  font: 500 .8rem/1.1 var(--f-body); text-decoration: none; color: var(--ink);
  border-top: 3px solid transparent; margin-top: -1px;
}
.tabbar__item .ic { width: 24px; height: 24px; }
.tabbar__item[aria-current="page"] { font-weight: 700; border-top-color: var(--ink); }
.tabbar__item--ask .tabbar__plus {
  display: grid; place-items: center; width: 44px; height: 44px; margin-top: -14px;
  background: var(--butter); border: 1.5px solid var(--ink); border-radius: 50%;
}

/* ---------- Discovery ---------- */
main { min-height: 60vh; }
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
  padding-block: clamp(32px, 6vw, 76px) clamp(28px, 4vw, 48px);
}
.hero--solo { grid-template-columns: 1fr; padding-bottom: 8px; }
.hero--solo .hero__copy { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.hero__title {
  position: relative; isolation: isolate;
  font: 800 clamp(2.9rem, 6.4vw, 5.2rem)/.94 var(--f-head); letter-spacing: -.045em;
}
.hero__title em {
  position: relative; display: block; width: fit-content;
  font: italic 400 1.14em/1.05 var(--f-serif); letter-spacing: -.012em;
}
.hero__title em::after {
  content: ""; position: absolute; z-index: -1; left: -3%; right: -2%; bottom: -.04em; height: .3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 12C40 4 70 16 110 9S190 15 230 8S285 12 297 7' fill='none' stroke='%23F3D570' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero__lede { margin-top: 24px; max-width: 30ch; font: italic 400 1.5rem/1.25 var(--f-serif); color: var(--ink-soft); }
.hero--solo .hero__lede { display: none; }
.note {
  position: relative; display: block; width: fit-content; max-width: 250px;
  margin-top: 32px; padding: 14px 18px 16px;
  background: var(--butter); border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font: italic 400 1.35rem/1.2 var(--f-serif); transform: rotate(-2.5deg);
  animation: settle .6s .3s cubic-bezier(.2, .8, .3, 1) both;
}
.note svg { position: absolute; right: -44px; bottom: -34px; width: 54px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(8deg); }
.hero--solo .note { display: none; }
@keyframes settle { from { transform: rotate(-9deg) translateY(-10px); opacity: 0; } to { transform: rotate(-2.5deg); opacity: 1; } }

.bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding-block: 18px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: .3rem .95rem; background: transparent;
  border: 1.5px solid var(--line-strong); border-radius: var(--r); font-weight: 600; font-size: .95rem;
}
.chip:hover { border-color: var(--ink); background: var(--butter-pale); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.chip[aria-pressed="true"]::before { content: "\2713"; margin-right: .4em; }
.bar__tools { display: flex; gap: 10px; flex-wrap: wrap; }
.field {
  min-height: 44px; padding: .5rem .8rem; background: var(--card);
  border: 1.5px solid var(--line-strong); border-radius: var(--r); font-size: 1rem; width: 100%;
}
.field:hover { border-color: var(--ink); }
.search { width: 240px; max-width: 100%; }
.sort { width: auto; min-width: 150px; }
.count { margin: 0 0 18px; color: var(--ink-soft); font-size: .95rem; }

.feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
.feed > .span2 { grid-column: 1 / -1; }
.feed > :nth-child(even):not(.span2):not(.invite) { margin-top: 28px; }
.feedwrap { padding-bottom: 56px; }

/* ---------- Comparison card ---------- */
.qcard {
  position: relative; background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: clamp(18px, 2.6vw, 28px);
}
.qcard--feature { border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.qmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; font-size: .9rem; color: var(--ink-soft); }
.tag {
  display: inline-block; padding: 1px 9px; border: 1px solid var(--ink); border-radius: 2px;
  font-weight: 700; font-size: .85rem; color: var(--ink); background: var(--card);
}
.tag--starter { border-style: dashed; font-weight: 500; color: var(--ink-soft); border-color: var(--line-strong); }
.tag--done { background: var(--butter); }
.qcard__q {
  font: 700 clamp(1.45rem, 2.4vw, 1.95rem)/1.08 var(--f-head); letter-spacing: -.028em;
  max-width: 24ch; text-wrap: balance; overflow-wrap: anywhere;
}
.qcard--feature .qcard__q { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.035em; max-width: 20ch; }
.qcard--wide .qcard__q { max-width: 30ch; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.qcard--page .qcard__q { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.04em; line-height: 1; max-width: 22ch; }
.qcard__q a { text-decoration: none; }
.qcard__q a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.qcard__ctx { margin-top: 14px; max-width: 52ch; font: italic 400 1.35rem/1.3 var(--f-serif); color: var(--ink-soft); }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; padding-top: 4px; }
.opts--multi { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.opt {
  position: relative; display: flex; flex-direction: column; gap: 12px; width: 100%;
  min-height: 56px; padding: 14px; text-align: left;
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--r);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.opt:hover:not(:disabled) { border-color: var(--ink); transform: translateY(-2px); }
.opt:disabled { cursor: default; }
.opt--b { border-style: dashed; }
.opt__tag {
  position: absolute; top: -15px; left: 12px; display: grid; place-items: center;
  width: 30px; height: 28px; border: 1.5px solid var(--ink); border-radius: 3px 3px 0 0;
  font: 800 .95rem/1 var(--f-head);
}
.opt--a .opt__tag { background: var(--butter); }
.opt--b .opt__tag { background: var(--clay); }
.opt__art { background: var(--butter-pale); border: 1px solid var(--line); border-radius: 2px; }
.opt--b .opt__art { background: var(--clay-pale); }
.opt__art svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.opt__body { display: grid; gap: 4px; }
.opt__title { font: 700 1.1rem/1.2 var(--f-head); letter-spacing: -.015em; }
.opt__note { font-size: .92rem; line-height: 1.4; color: var(--ink-soft); }
.opt.is-picked { background: var(--card); border: 2px solid var(--ink); border-style: solid; box-shadow: 4px 4px 0 var(--ink); }
.opt.is-picked:hover { transform: none; }
.opt.is-final { background: var(--card); border: 2px solid var(--ink); border-style: solid; box-shadow: 4px 4px 0 var(--butter), 4px 4px 0 1.5px var(--ink); }
.opt__badge {
  display: inline-flex; align-items: center; gap: .4rem; width: fit-content; padding: 3px 10px;
  background: var(--ink); color: var(--card); border-radius: 2px; font-weight: 700; font-size: .9rem;
}
.opt__badge .ic { stroke-width: 3; width: 1em; height: 1em; }
.opt__badge--final { background: var(--butter); color: var(--ink); border: 1.5px solid var(--ink); }
.opt.is-picked .opt__badge { animation: stamp .28s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stamp { from { transform: translateY(-5px) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }

.res { display: grid; gap: 4px; margin-top: 2px; }
.res__row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.res__pct { font: 800 1.75rem/1 var(--f-head); letter-spacing: -.03em; }
.res__n { font-size: .9rem; color: var(--ink-soft); }
.res__lead { font-size: .85rem; font-weight: 700; border-bottom: 2px solid var(--ink); }
.res__bar { height: 12px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 2px; overflow: hidden; }
.res__bar i { display: block; height: 100%; border-right: 1.5px solid var(--ink); }
.opt--a .res__bar i { background: var(--butter); }
.opt--b .res__bar i { background: var(--clay); }
.res__bar i[style*="width:0%"] { border-right: 0; }

.status { margin-top: 18px; font-size: .98rem; color: var(--ink-soft); min-height: 1.5em; }
.status strong { color: var(--ink); }
.status--ok { display: flex; align-items: flex-start; gap: .5rem; color: var(--ink); }
.status--ok .ic { margin-top: .2em; stroke-width: 3; }

/* The feed keeps reasons as a quiet link in the voted-status line; the
   full editor is only on the question page or in the existing dialog. */
.reason-link {
  display: inline; margin: 0 0 0 .25em; padding: 0;
  color: var(--ink); background: transparent; border: 0;
  font-weight: 700; font-family: inherit; font-size: inherit; line-height: inherit;
  text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: .2em; cursor: pointer;
}
.reason-link:hover { text-decoration-color: currentColor; }
.reason-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.reason-link span { font-size: .9em; }
.dlg form[data-form="reason"] { gap: 10px; }
.dlg form[data-form="reason"] .fine { margin: 0; }
.dlg form[data-form="reason"] textarea.field { min-height: 100px; }
@media(max-height:600px){ .dlg:has([data-form="reason"]) { max-height: calc(100dvh - 24px); overflow-y: auto; } }
.reason { margin-top: 18px; padding: 16px 18px 18px; border: 1px dashed var(--ink); border-radius: var(--r); background: var(--paper); }
.reason__label { display: block; font: 700 1.1rem/1.2 var(--f-head); letter-spacing: -.015em; }
.hint { display: block; margin: 2px 0 10px; font-size: .9rem; color: var(--ink-soft); }
.reason__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.reason--done { display: flex; gap: .6rem; align-items: flex-start; border-style: solid; border-color: var(--line-strong); }
textarea.field { resize: vertical; min-height: 84px; line-height: 1.45; }

.qcard__foot { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.act {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .7rem;
  background: none; border: 0; border-radius: var(--r); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.act:hover { background: var(--butter-pale); }
.act[aria-pressed="true"] { background: var(--butter-pale); }
.act[aria-pressed="true"] .ic { fill: var(--ink); }

/* Invite note in the feed */
.invite {
  align-self: center; justify-self: center; max-width: 340px; padding: 24px 24px 26px;
  background: var(--butter); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(1.6deg);
}
.invite h2 { font: 800 1.7rem/1.05 var(--f-head); letter-spacing: -.035em; }
.invite p { margin: 10px 0 18px; font: italic 400 1.3rem/1.25 var(--f-serif); }
.invite .btn { background: var(--card); }
.invite .btn:hover { background: var(--ink); color: var(--card); }

/* ---------- Panels, alerts, empty states ---------- */
.panel {
  padding: clamp(24px, 4vw, 44px); background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r);
  max-width: 640px;
}
.panel h2, .panel h1 { font: 700 1.7rem/1.1 var(--f-head); letter-spacing: -.03em; }
.panel p { margin-top: 10px; max-width: 46ch; color: var(--ink-soft); }
.panel__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.panel--wide { grid-column: 1 / -1; }
.panel--center { margin: clamp(32px, 8vw, 96px) auto; }

.alert { margin-bottom: 22px; padding: 14px 18px; background: var(--card); border: 1.5px solid var(--ink); border-left-width: 8px; border-radius: var(--r); }
.alert--ok { background: var(--butter-pale); }
.alert--err { background: var(--clay-pale); }
.alert ul { margin-top: 6px; padding-left: 1.1em; list-style: disc; }
.alert .link { padding: 0; min-height: 0; }
.alert__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

/* Loading */
.skel { background: rgba(37, 51, 101, .09); border-radius: 2px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.skel-card { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 14px; }

/* ---------- Question page ---------- */
.qpage { padding-block: 22px 72px; }
.crumb a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.qpage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 80px); margin-top: 8px; align-items: start; }
.qpage__main { min-width: 0; }
.qpage .qcard { padding: 0; background: none; border: 0; }
.qpage .opt { padding: 18px; }
.qpage .opt__title { font-size: 1.3rem; }
.qpage .opt__note { font-size: 1rem; }
.qpage__side { display: grid; gap: 22px; position: sticky; top: 100px; }
.side { padding: 18px 18px 20px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r); }
.side h2 { font: 700 1.15rem/1.2 var(--f-head); letter-spacing: -.02em; }
.side p { margin-top: 6px; font-size: .95rem; color: var(--ink-soft); }
.side .btn { margin-top: 14px; width: 100%; }
.side--note { border-style: dashed; background: transparent; }
.copyrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.copyrow .field { font-size: .85rem; padding-inline: .6rem; }

.decided {
  display: grid; grid-template-columns: auto 1fr; gap: 20px 24px; align-items: center;
  margin-bottom: 30px; padding: clamp(18px, 3vw, 28px); background: var(--butter);
  border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); border-radius: var(--r);
}
.stamp {
  display: grid; place-items: center; width: 92px; height: 92px; border: 2px solid var(--ink); border-radius: 50%;
  outline: 1px solid var(--ink); outline-offset: -7px;
  font: italic 400 1.55rem/1 var(--f-serif); transform: rotate(-8deg); background: var(--card);
}
.decided h2 { font: 800 clamp(1.5rem, 3vw, 2.2rem)/1.05 var(--f-head); letter-spacing: -.035em; }
.decided p { margin-top: 6px; font: italic 400 1.35rem/1.25 var(--f-serif); max-width: 46ch; }
.decided small { display: block; margin-top: 8px; font-size: .9rem; }

.disc { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--ink); }
.disc__h { font: 800 1.7rem/1 var(--f-head); letter-spacing: -.035em; margin-bottom: 18px; }
.disc__h span { font: italic 400 1.4rem var(--f-serif); color: var(--ink-soft); margin-left: .3em; }
.composer label { display: block; margin-bottom: 8px; font-weight: 700; }
.composer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.composer__anon { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; cursor: pointer; }
.cm--anon .cm__head strong { font-style: italic; font-weight: 600; color: var(--ink-soft, inherit); }
.cm--anon .cm__head strong::before { content: "?"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border: 1.5px dashed currentColor; border-radius: 50%; font-size: .72rem; vertical-align: -3px; }
.composer__anon input { width: auto; margin: 0; }
.composer__row .hint { margin: 0; }
.ask__anon { margin-left: auto; }
.qmeta__anon { font-style: italic; }
.qmeta__anon::before { content: "?"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border: 1.5px dashed currentColor; border-radius: 50%; font-size: .66rem; vertical-align: -3px; }
@media (max-width: 560px) { .ask__anon { margin-left: 0; } }
.gate { padding: 22px; background: var(--card); border: 1px dashed var(--ink); border-radius: var(--r); max-width: 560px; }
.gate h3 { font: 700 1.25rem/1.15 var(--f-head); letter-spacing: -.02em; }
.gate p { margin: 6px 0 16px; color: var(--ink-soft); }
.cms { margin-top: 28px; display: grid; gap: 0; }
.cm { padding: 18px 0; border-top: 1px solid var(--line); max-width: 62ch; }
.cm__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: .92rem; color: var(--ink-soft); }
.cm__head strong { color: var(--ink); font-size: 1rem; }
.cm__tag { margin-top: 6px; font: italic 400 1.1rem/1 var(--f-serif); color: var(--ink-soft); }
.cm p { margin-top: 6px; }
.empty-note { margin-top: 24px; font: italic 400 1.4rem/1.3 var(--f-serif); color: var(--ink-soft); }

/* ---------- Ask form ---------- */
.ask { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 88px); padding-block: clamp(28px, 5vw, 64px) 80px; align-items: start; }
.ask__intro h1 { font: 800 clamp(2.4rem, 5vw, 4rem)/.96 var(--f-head); letter-spacing: -.045em; }
.ask__intro p { margin-top: 16px; font: italic 400 1.45rem/1.25 var(--f-serif); color: var(--ink-soft); max-width: 24ch; }
.ask__tips { margin-top: 26px; display: grid; gap: 12px; font-size: .98rem; max-width: 34ch; }
.ask__tips li { padding-left: 1.2em; position: relative; }
.ask__tips li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 2px; background: var(--ink); }
.form { display: grid; gap: 30px; max-width: 720px; }
.form__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; font: 700 1.05rem/1.2 var(--f-head); letter-spacing: -.01em; }
.form__label--q { font-size: 1.3rem; }
.req { font: 500 .85rem var(--f-body); color: var(--ink-soft); }
.req--need { color: var(--ink); font-weight: 700; }
.form__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: .9rem; color: var(--ink-soft); }
.field--q { font: 600 1.35rem/1.25 var(--f-head); letter-spacing: -.02em; padding: .75rem .9rem; min-height: 96px; }
.field[aria-invalid="true"] { border-color: var(--ink); border-width: 2px; background: var(--clay-pale); }
.err { margin-top: 6px; display: flex; gap: .4rem; font-weight: 600; font-size: .95rem; }
.err::before { content: "\26A0\FE0E"; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.optpane { position: relative; padding: 22px 16px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--card); min-width: 0; }
.optpane--b { border-style: dashed; }
.optpane legend {
  display: inline-grid; grid-auto-flow: column; align-items: center; gap: 8px; padding: 2px 12px 2px 4px; margin-left: -4px;
  background: var(--card); font: 700 1rem var(--f-head);
}
.optpane .letter { display: grid; place-items: center; width: 30px; height: 28px; border: 1.5px solid var(--ink); border-radius: 3px 3px 0 0; font: 800 .95rem var(--f-head); }
.optpane--a .letter { background: var(--butter); }
.optpane--b .letter { background: var(--clay); }
.optpane--c .letter, .optpane--e .letter { background: var(--butter); }
.optpane--d .letter, .optpane--f .letter { background: var(--clay); }
.optpane--c .optpane__art, .optpane--e .optpane__art { background: var(--butter-pale); }
.optpane--d .optpane__art, .optpane--f .optpane__art { background: var(--clay-pale); }
.optpane__remove { margin-left: 10px; font-size: .8rem; }
.ask__add-option { margin-top: 16px; }
.optpane__art { margin-bottom: 14px; background: var(--butter-pale); border: 1px solid var(--line); border-radius: 2px; }
.optpane--b .optpane__art { background: var(--clay-pale); }
.optpane__art svg { display: block; width: 100%; height: auto; max-height: 150px; }
.topics { border: 0; }
.topics legend { padding: 0; }
.topics__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.topics input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topics label {
  display: inline-flex; align-items: center; min-height: 44px; padding: .3rem 1rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--r); font-weight: 600; cursor: pointer;
}
.topics label:hover { border-color: var(--ink); background: var(--butter-pale); }
.topics input:checked + label { background: var(--ink); color: var(--card); border-color: var(--ink); }
.topics input:checked + label::before { content: "\2713"; margin-right: .4em; }
.topics input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--butter); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.form__note { font-size: .92rem; color: var(--ink-soft); }

/* ---------- My desk ---------- */
.desk { padding-block: clamp(28px, 5vw, 60px) 80px; }
.desk h1 { font: 800 clamp(2.6rem, 5.5vw, 4.4rem)/.95 var(--f-head); letter-spacing: -.045em; }
.desk__lede { margin-top: 10px; font: italic 400 1.45rem/1.25 var(--f-serif); color: var(--ink-soft); overflow-wrap: anywhere; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 28px 0 8px; border-bottom: 1px solid var(--ink); }
.tabs a { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: 6px 2px; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { border-bottom-color: var(--line-strong); }
.tabs a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 700; }
.tabs small { font-weight: 500; color: var(--ink-soft); font-size: .9rem; }
.rows { max-width: 860px; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; font-size: .9rem; color: var(--ink-soft); }
.row__q { font: 700 1.4rem/1.15 var(--f-head); letter-spacing: -.025em; max-width: 30ch; }
.row__q a { text-decoration: none; }
.row__q a:hover { text-decoration: underline; }
.row__opts { margin-top: 6px; font-size: .95rem; color: var(--ink-soft); }
.row__side { display: grid; gap: 8px; justify-items: end; text-align: right; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Dialog, toasts, footer ---------- */
.dlg {
  width: min(460px, calc(100% - 32px)); padding: 28px; background: var(--card); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: 6px 6px 0 var(--ink);
}
.dlg::backdrop { background: rgba(37, 51, 101, .6); }
.dlg h2 { font: 800 1.7rem/1.05 var(--f-head); letter-spacing: -.035em; }
.dlg p.lede { margin: 8px 0 18px; font: italic 400 1.3rem/1.25 var(--f-serif); color: var(--ink-soft); }
.dlg form { display: grid; gap: 16px; }
.dlg label { display: block; font-weight: 700; margin-bottom: 6px; }
.dlg fieldset { border: 0; display: grid; gap: 8px; }
.dlg legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.dlg__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.dlg .fine { font-size: .88rem; color: var(--ink-soft); }
.auth__divider { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: .9rem; }
.auth__divider::before, .auth__divider::after { content: ""; height: 1px; background: currentColor; opacity: .25; flex: 1; }
.auth__switch { text-align: center; font-size: .95rem; }
.auth__help { justify-self: start; font-size: .9rem; }
.dlg .field { width: 100%; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r); cursor: pointer; font-weight: 600; margin: 0 !important; }
.choice input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--butter-pale); box-shadow: 3px 3px 0 var(--ink); }

.toasts { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: max-content; max-width: calc(100% - 32px); pointer-events: none; }
.toast { padding: 12px 18px; background: var(--ink); color: var(--card); border-radius: var(--r); font-weight: 600; box-shadow: 3px 3px 0 var(--butter); animation: rise .25s ease-out; }
.toast--err { background: #7a2e1d; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
/* GSAP owns these entrances when available; CSS remains the fallback. */
.has-motion .note, .has-motion .opt.is-picked .opt__badge, .has-motion .toast { animation: none; }
.res__bar i { transform-origin: left center; }

.foot { margin-top: 24px; border-top: 1px solid var(--ink); }
.foot__inner { max-width: var(--max); margin: 0 auto; padding: 26px var(--gut) 36px; display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; align-items: baseline; }
.foot p { max-width: 62ch; font-size: .92rem; color: var(--ink-soft); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 13px; }
.foot__legal a { text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 959px) {
  .hero { grid-template-columns: 1fr; }
  .hero__lede { max-width: 34ch; }
  .qpage__grid { grid-template-columns: 1fr; }
  .qpage__side { position: static; grid-template-columns: 1fr 1fr; }
  .ask { grid-template-columns: 1fr; }
  .ask__intro p, .ask__tips { max-width: 46ch; }
}

@media (max-width: 759px) {
  :root { --gut: 16px; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .top__nav, .top__actions { display: none; }
  .top__inner { padding-block: 12px; }
  .tabbar { display: block; }
  .toasts { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); }
  .hero { padding-top: 22px; gap: 22px; }
  .hero__title { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .hero__lede { font-size: 1.3rem; margin-top: 16px; }
  .note { margin-top: 24px; margin-left: 4px; }
  .note svg { display: none; }
  .hero--solo .hero__copy { grid-template-columns: 1fr; }
  .bar { gap: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 8px; scrollbar-width: none; }
  .chip { flex: none; min-height: 44px; }
  .bar__tools { width: 100%; }
  .search { flex: 1 1 100%; width: 100%; }
  .sort { width: 100%; }
  .feed { grid-template-columns: 1fr; gap: 28px; }
  .feed > :nth-child(even):not(.span2):not(.invite) { margin-top: 0; }
  .invite { transform: rotate(.8deg); max-width: none; width: 100%; }
  .qcard--feature { box-shadow: 4px 4px 0 var(--ink); }

  .opts { grid-template-columns: 1fr; gap: 20px; margin-top: 26px; }
  .opt { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 12px 14px; min-height: 96px; padding: 14px 12px 14px 14px; }
  .opt__body { min-width: 0; }
  .res, .opt__badge { grid-column: 1 / -1; }
  .opt__badge { justify-self: start; }
  .qpage .opt { padding: 14px 12px 14px 14px; }
  .qpage .opt__title { font-size: 1.15rem; }
  .qpage__side { grid-template-columns: 1fr; }
  .decided { grid-template-columns: 1fr; }
  .stamp { width: 76px; height: 76px; font-size: 1.3rem; }
  .pair { grid-template-columns: 1fr; }
  .optpane { display: grid; grid-template-columns: 96px 1fr; column-gap: 14px; align-items: end; padding-top: 24px; }
  .optpane legend { grid-column: 1 / -1; }
  .optpane__art { margin: 0; }
  .row { grid-template-columns: 1fr; }
  .row__side { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .row__q { font-size: 1.25rem; }
  .dlg { padding: 22px; }
  .foot__inner { flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 12px; padding-bottom: 14px; }
  .foot p { max-width: 34ch; }
  .foot__legal { margin-top: 0; gap: 0; }
  .foot__legal a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px; }
  .foot__legal > span { align-self: center; }
}

@media (min-width: 760px) and (max-width: 1099px) {
  .opt__title { font-size: 1.05rem; }
}

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

.opt__art img { width:100%; height:auto; aspect-ratio:4/3; object-fit:contain; display:block; }
.optpane__art img { width:100%; max-height:240px; object-fit:contain; }

/* A quieter desk, with compact dialogs and consistent feedback. */
:root { --r: 10px; --line: rgba(37,51,101,.15); }
html { scrollbar-gutter: stable; }
body.dialog-open { overflow: hidden; }
.top { background: var(--paper); border-bottom-color: var(--line); }
.top::after { display:none; }
.top__inner { padding-block:18px; }
.top__actions { gap:12px; }
.top__nav a { font-size:.9rem; }
.top__nav a[aria-current="page"] { background:var(--butter-pale); border-radius:8px; border-color:transparent; }
.btn { border-width:1px; min-height:46px; border-radius:8px; transition:background-color .08s,border-color .08s; }
.btn--primary { box-shadow:0 2px 0 #101936; }
.btn:disabled { opacity:.65; }
.field { border:1px solid #25336540; border-radius:8px; background:#fffdf8; min-height:46px; transition:border-color .08s; }
.field::placeholder { color:#7e8193; }
.field:focus { border-color:var(--ink); outline:0; box-shadow:0 0 0 3px #f3d57060; }
.field[readonly] { background:var(--paper); color:var(--ink-soft); }
.hero--solo { padding-block:52px 38px; }
.hero--solo .hero__copy { display:block; }
.hero--solo .hero__lede { display:block; max-width:44ch; font:400 1.05rem/1.6 var(--f-body); margin-top:24px; }
.bar { border-top:1px solid var(--line); gap:18px; padding-block:20px; }
.chip { border:1px solid var(--line); border-radius:50px; font-size:.85rem; padding-inline:16px; }
.bar__tools .field { font-size:.88rem; }
.empty-desk { display:flex; gap:48px; align-items:center; justify-content:center; min-height:300px; padding:40px; background:var(--card); border:1px dashed #25336538; border-radius:14px; }
.eyebrow { display:block; font:700 .66rem/1.5 var(--f-body); letter-spacing:.14em; text-transform:uppercase; color:var(--ink-soft); }
.empty-desk h2 { max-width:24ch; margin-top:9px; font:700 clamp(1.7rem,3vw,2.3rem)/1.1 var(--f-head); letter-spacing:-.04em; }
.empty-desk p { margin:14px 0 22px; font-size:.96rem; color:var(--ink-soft); }
.empty-desk__art { position:relative; flex:none; width:170px; height:150px; }
.empty-desk__art>span { position:absolute; display:grid; place-items:center; width:100px; height:124px; border:1px solid var(--ink); border-radius:9px; font:400 italic 3.5rem var(--f-serif); box-shadow:4px 5px 0 #2533650d; }
.empty-desk__art>span:first-child { background:var(--butter-pale); left:0; top:4px; transform:rotate(-12deg); }
.empty-desk__art>span:nth-child(2) { background:var(--clay-pale); right:0; bottom:0; transform:rotate(10deg); }
.empty-desk__art i { position:absolute; background:var(--ink); color:var(--card); width:38px; height:38px; border-radius:50%; display:grid; place-items:center; top:0; right:-8px; font:italic 1.7rem var(--f-serif); }
.panel { border-color:var(--line); box-shadow:0 5px 24px #25336504; }
.qcard { border-color:#25336536; }
.foot { border-color:var(--line); }
.foot .wm { font-size:1.2rem; }
.foot p { font-size:.8rem; }

/* Skeletons follow the actual two-option card, with no artificial wait. */
.loading-view { padding-block:46px 64px; }
.boot-loading { min-height:70vh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:24px; padding:24px; }
.boot-loading p { color:var(--ink-soft); font:italic 1.4rem var(--f-serif); }
.loading-brand { display:flex; align-items:center; gap:26px; min-height:150px; }
.loading-brand h1 { font:700 clamp(2rem,4vw,3rem)/1.1 var(--f-head); letter-spacing:-.04em; margin:7px 0; }
.loading-brand p { color:var(--ink-soft); font-size:.94rem; }
.loading-pair { width:86px; height:90px; flex:none; position:relative; }
.loading-pair span { position:absolute; display:grid; place-items:center; width:55px; height:72px; border:1px solid var(--ink); border-radius:7px; background:var(--butter-pale); font:italic 2rem var(--f-serif); transform:rotate(-10deg); animation:card-breathe 2s ease-in-out infinite; }
.loading-pair span+span { background:var(--clay-pale); right:0; bottom:0; transform:rotate(9deg); animation-delay:-1s; }
.loading-dot { width:8px; height:8px; border-radius:50%; background:var(--ink); margin-left:auto; box-shadow:0 0 0 6px #2533650a; animation:pulse 1.5s infinite; }
.skel { background:linear-gradient(105deg,#e9e6dd 30%,#f4f1e9 48%,#e9e6dd 68%); background-size:240% 100%; border-radius:6px; animation:shimmer 2s ease-in-out infinite; }
.skel-toolbar { display:flex; gap:10px; margin:26px 0; padding:20px 0; border-block:1px solid var(--line); }
.skel-toolbar .skel { width:86px; height:34px; border-radius:30px; }
.skel-toolbar .skel:last-child { width:200px; margin-left:auto; border-radius:8px; }
.skel-card { padding:24px; border-color:var(--line); border-radius:12px; gap:16px; }
.skel--tag { height:18px; width:22%; }
.skel--title { height:28px; width:85%; }
.skel--line { height:12px; width:58%; }
.skel-pair { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:8px 0; }
.skel--photo { aspect-ratio:4/3; }
/* Header/tabbar slots held open while the stored session resolves. */
.chrome-bell { width:46px; height:46px; border-radius:50%; flex:none; }
.chrome-acct { width:92px; height:46px; border-radius:8px; flex:none; }
.chrome-tab { pointer-events:none; }
.chrome-tab .skel { width:24px; height:24px; border-radius:6px; }
.chrome-tab .skel:nth-child(2) { width:34px; height:11px; border-radius:4px; }
.loading-view .feed>:nth-child(even) { margin-top:0; }
@keyframes shimmer { 0% {background-position:100% 0} 100% {background-position:-100% 0} }
@keyframes card-breathe { 50% {translate:0 -6px} }

/* Each account task gets one short screen; dialogs have no scroll container. */
.dlg { width:min(440px,calc(100% - 32px)); max-width:none; max-height:none; overflow:visible; padding:30px; border:1px solid #25336528; border-radius:18px; box-shadow:0 12px 32px #101a3633; }
.dlg::backdrop { background:#17213c99; }
.dlg-close { position:absolute; right:12px; top:10px; display:grid; place-items:center; width:36px; height:36px; border:0; background:transparent; border-radius:50%; font:400 1.6rem/1 var(--f-body); color:var(--ink-soft); }
.dlg-close:hover { background:var(--paper); }
.dlg form,.account-overview,.verification-success { display:grid; gap:15px; }
.auth-head { padding-right:13px; }
.auth-head .eyebrow { margin-bottom:9px; }
.dlg h2 { font:700 1.9rem/1.05 var(--f-head); letter-spacing:-.045em; overflow-wrap:anywhere; }
.dlg h2:focus { outline:0; box-shadow:none; }
.dlg p.lede { margin:9px 0 2px; font:400 .9rem/1.45 var(--f-body); }
.dlg label { font-size:.82rem; font-weight:600; margin-bottom:5px; }
.dlg .field { font-size:1rem; }
.dlg .fine { font-size:.75rem; line-height:1.45; margin-top:5px; }
.label-row { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.dlg .link { min-height:32px; padding:4px 0; font-size:.8rem; font-weight:600; }
.label-row .link { min-height:0; padding:0; font-size:.72rem; text-decoration:none; }
.auth__divider { font-size:.74rem; gap:14px; }
.auth__switch { padding-top:4px; border-top:1px solid var(--line); font-size:.8rem; }
.auth__switch .link { margin-left:3px; }
.btn--google { background:white; border-color:#25336528; }
.google-icon { width:19px; height:19px; flex:none; }
.auth-back { justify-self:center; }
.auth-steps { display:flex; gap:6px; }
.auth-steps i { height:3px; border-radius:3px; background:var(--line); flex:1; }
.auth-steps i.is-current { background:var(--ink); }
.auth-note { text-align:center; }
.auth-copy { font-size:.92rem; color:var(--ink-soft); line-height:1.6; }
.auth-error { font-size:.8rem; line-height:1.4; padding:10px 12px; background:var(--clay-pale); color:#873b28; border:1px solid #c4776045; border-radius:7px; }
/* The challenge is a fixed 300x65 iframe; center it in the dialog column and reserve its
   height so the form does not jump when the script finishes, without stretching the widget. */
[data-turnstile] { display:flex; justify-content:center; min-height:65px; }
[data-turnstile] iframe { max-width:100%; }
.spinner { width:16px; height:16px; display:inline-block; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to {transform:rotate(360deg)} }
.account-card { background:var(--paper); border:1px solid var(--line); padding:16px; border-radius:10px; }
.account-card__top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.verified-badge { display:inline-flex; gap:4px; align-items:center; font-size:.65rem; font-weight:700; color:#8a4c32; white-space:nowrap; }
.verified-badge.is-verified { color:#306250; }
.verified-badge .ic { width:13px; height:13px; }
.account-email { font-size:.92rem; overflow-wrap:anywhere; margin-top:8px; }
.account-card__actions { display:flex; gap:16px; margin-top:6px; }
.account-action { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:12px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:none; text-align:left; }
.account-action>span:first-child { display:flex; align-items:center; gap:12px; }
.account-action strong { display:block; font-size:.85rem; font-weight:600; }
.account-action small { display:block; margin-top:2px; color:var(--ink-soft); font-size:.75rem; }
.account-footer { justify-content:space-between; align-items:center; }
.account-footer .btn { min-width:105px; }
.password-pair { display:grid; gap:14px; }
.auth-emblem { display:grid; place-items:center; width:48px; height:48px; border:1px solid #25336525; border-radius:14px; background:var(--butter-pale); margin-bottom:16px; transform:rotate(-5deg); }
.auth-emblem .ic { width:25px; height:25px; transform:rotate(5deg); }
.email-recipient { display:grid; grid-template-columns:1fr auto; gap:3px 12px; padding:12px 14px; border:1px solid var(--line); background:var(--paper); border-radius:9px; }
.email-recipient>span { font-size:.65rem; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.08em; }
.email-recipient strong { grid-column:1; font-size:.85rem; font-weight:500; overflow-wrap:anywhere; }
.email-recipient .link { grid-column:2; grid-row:1 / 3; align-self:center; }
.code-input { height:60px; text-align:center; font:500 1.8rem/1 var(--f-body)!important; letter-spacing:.38em; padding-left:calc(.8rem + .38em); font-variant-numeric:tabular-nums; }
.code-input::placeholder { letter-spacing:.46em; }
.delivery-status { display:flex; align-items:flex-start; gap:8px; color:#306250; background:#eaf1e9; border:1px solid #30625020; padding:9px 12px; border-radius:8px; font-size:.76rem; line-height:1.4; }
.delivery-status .ic { width:16px; height:16px; flex:none; margin-top:1px; }
.code-actions { display:flex; justify-content:space-between; gap:12px; }
.code-actions .link:disabled { opacity:.5; cursor:default; text-decoration:none; }
.verification-success { text-align:center; padding-block:10px; }
.verification-success .auth-head { padding:0; }
.verification-success .auth-emblem { margin:0 auto 22px; width:68px; height:68px; background:#eaf1e9; color:#306250; border-radius:50%; }
.verification-success .auth-copy { margin-bottom:12px; }
.toast { border-radius:10px; font-size:.85rem; font-weight:500; box-shadow:0 6px 25px #25336525; }
.opt__art { aspect-ratio:4/3; overflow:hidden; }
.optpane input[type=file] { font-size:.78rem; padding:8px; }
.optpane input::file-selector-button { font:600 .75rem var(--f-body); background:var(--butter-pale); border:0; color:var(--ink); border-radius:4px; padding:7px 9px; margin-right:9px; cursor:pointer; }
.optpane .upload-target { display:grid; place-items:center; width:100%; min-height:170px; margin:0 0 16px; border:1px dashed #25336550; background:var(--butter-pale); border-radius:8px; cursor:pointer; overflow:hidden; }
.optpane--b .upload-target { background:var(--clay-pale); }
.upload-target:has(img:not([hidden])) { border-style:solid; }
.upload-target:has(img:not([hidden])) .upload-placeholder { display:none; }
.upload-target { position:relative; }
.upload-target.is-processing::after { content:'Preparing photo…'; position:absolute; inset:0; display:grid; place-items:center; background:#fffcf5e8; color:var(--ink); font-size:.85rem; font-weight:600; }
.upload-placeholder { display:grid; justify-items:center; gap:6px; padding:24px; }
.upload-placeholder>.ic { width:28px;height:28px;margin-bottom:4px; }
.upload-placeholder strong { font-size:.88rem; }
.upload-placeholder small { font-size:.72rem;font-weight:400;color:var(--ink-soft); }

@media(max-width:759px) {
  .top__inner {padding-block:16px;}
  .hero--solo {padding-block:30px 28px;}
  .hero--solo .hero__lede {font-size:.9rem; margin-top:18px;}
  .empty-desk {padding:30px 24px; gap:28px; flex-direction:column; text-align:center;}
  .empty-desk__art {width:120px;height:105px;}
  .empty-desk__art>span {width:70px;height:87px;font-size:2.5rem;}
  .empty-desk__art i {width:28px;height:28px;font-size:1.3rem;}
  .empty-desk h2 {max-width:24ch;}
  .bar__tools {flex-wrap:nowrap; gap:8px;}
  .bar__tools label:first-child {flex:1;min-width:0;}
  .bar__tools label:last-child {width:140px;}
  .bar__tools .sort {min-width:0;}
  .loading-view {padding-top:26px;}
  .loading-brand {gap:18px;min-height:130px;}
  .loading-brand p {font-size:.82rem;}
  .loading-pair {width:64px;height:74px;}
  .loading-pair span {width:42px;height:58px;}
  .skel-toolbar .skel {width:65px;height:30px;}
  .skel-toolbar .skel:last-child {width:90px;}
  .dlg {padding:26px;}
  .optpane {display:block;}
}
@media(max-height:680px) {
  .dlg {padding:22px 26px;}
  .dlg form,.account-overview,.verification-success {gap:11px;}
  .dlg h2 {font-size:1.7rem;}
  .dlg .auth-head .eyebrow {margin-bottom:6px;}
  .dlg p.lede {margin-top:6px;}
  .dlg .auth-emblem {width:36px;height:36px;margin-bottom:10px;border-radius:10px;}
  .dlg .auth-emblem .ic {width:21px;height:21px;}
  .dlg .field,.dlg .btn {min-height:42px;}
  .dlg .code-input {height:50px;}
  .dlg [data-dform="email-code"] .auth-emblem {display:none;}
  .dlg .password-pair {gap:11px;}
}
@media(max-width:360px) {
  .dlg {width:calc(100% - 20px);padding:20px;}
  .dlg h2 {font-size:1.55rem;}
  .dlg p.lede {font-size:.82rem;}
}
@media(max-height:490px) and (min-width:600px) {
  .dlg {width:min(620px,calc(100% - 24px));padding:18px 24px;}
  .dlg form {grid-template-columns:1fr 1fr;gap:10px 18px;}
  .dlg .auth-head,.dlg .auth-steps,.dlg .auth-error,.dlg .auth__switch,.dlg .auth-copy,.dlg .auth-note,.dlg .auth-back {grid-column:1/-1;}
  .dlg .auth__divider {display:none;}
  .dlg .auth-emblem {display:none;}
  .dlg .password-pair {display:contents;}
  .dlg form[data-dform=email-code] .email-recipient {grid-column:1;grid-row:2;}
  .dlg form[data-dform=email-code] .delivery-status,.dlg form[data-dform=email-code] .auth-error {grid-column:1;grid-row:3;}
  .dlg form[data-dform=email-code] .code-field {grid-column:2;grid-row:2/4;align-self:center;}
  .dlg form[data-dform=email-code]>.btn {grid-column:2;grid-row:4;}
  .dlg form[data-dform=email-code] .code-actions {grid-column:1;grid-row:4;align-items:center;}
  .account-overview {grid-template-columns:1fr 1fr;gap:10px 20px;}
  .account-overview .auth-head,.account-overview .auth-error,.account-overview .account-footer {grid-column:1/-1;}
  .account-overview .account-card {grid-column:1;grid-row:2/4;}
  .account-overview .account-action {grid-column:2;padding-block:6px;}
  .dlg:has(.auth-error:not([hidden])) .auth-head .lede,.dlg:has(.auth-error:not([hidden])) .auth-head .eyebrow {display:none;}
}
@media(prefers-reduced-motion:reduce) {
  .loading-pair span,.skel,.loading-dot,.spinner {animation:none;}
}

/* Account is a destination; focused edits keep their short dialogs. */
.who {display:inline-flex;align-items:center;gap:7px;text-decoration:none;}
.who[aria-current="page"] {text-decoration:underline;text-underline-offset:5px;}
.account-page {padding-block:44px 64px;}
.account-page h1 {font:800 clamp(2.5rem,5vw,4rem)/1.05 var(--f-head);letter-spacing:-.05em;margin:10px 0 14px;}
.account-page__intro>p {color:var(--ink-soft);font-size:1rem;}
.account-page>.panel {margin-top:28px;}
.account-layout {display:grid;grid-template-columns:280px minmax(0,1fr);gap:32px;margin-top:34px;align-items:start;}
.profile-column {position:sticky;top:110px;display:grid;gap:14px;min-width:0;}
.profile-card {background:var(--butter-pale);border:1px solid #25336525;border-radius:14px;padding:28px 24px;min-width:0;overflow-wrap:anywhere;}
.profile-logout {width:100%;justify-content:flex-start;gap:10px;padding-inline:24px;background:var(--card);border-color:var(--line);}
.profile-avatar {position:relative;display:grid;place-items:center;width:72px;height:72px;border:1px solid var(--ink);border-radius:22px;background:var(--butter);font:italic 2.6rem var(--f-serif);transform:rotate(-5deg);margin-bottom:24px;}
.profile-card h2 {font:700 1.6rem/1.15 var(--f-head);letter-spacing:-.035em;overflow-wrap:anywhere;}
.profile-card>p {font-size:.88rem;color:var(--ink-soft);margin-top:5px;overflow-wrap:anywhere;}
.profile-status {display:inline-flex;align-items:center;gap:5px;margin-top:17px;font-size:.75rem;color:#8a4c32;}
.profile-status.is-verified {color:#306250;}
.profile-status .ic {width:15px;height:15px;}
.profile-links {display:grid;gap:5px;margin-top:26px;padding-top:18px;border-top:1px solid var(--line);}
.profile-links a {display:flex;align-items:center;gap:10px;padding:10px 0;text-decoration:none;font-size:.85rem;font-weight:600;}
.profile-links a>span {margin-left:auto;}
.profile-links .profile-link-badge {min-width:18px;margin-left:auto;padding:1px 5px;border-radius:20px;background:var(--danger,#b42318);color:#fff;font-size:.68rem;font-weight:700;text-align:center;}
.profile-links a span[aria-hidden] {margin-left:auto;color:var(--ink-soft);transition:transform .18s ease;}
.profile-links a .profile-link-badge ~ span[aria-hidden] {margin-left:0;}
.profile-links a:hover {text-decoration:underline;}
.profile-links a:hover span[aria-hidden] {transform:translate(3px,-3px);}
@media (prefers-reduced-motion: reduce){.profile-links a span[aria-hidden],.profile-avatar__badge,.profile-avatar__pick img {transition:none;}}
.account-settings {display:grid;gap:18px;min-width:0;}
.settings-card {padding:26px 28px;background:var(--card);border:1px solid var(--line);border-radius:12px;min-width:0;}
/* Legal pages are prose, not settings: one centred column, lighter cards. */
.legal-page {max-width:760px;}
.legal-back {margin:0;}
.legal-page .settings-card {padding:20px 22px;}
.legal-card > p {margin-top:14px;font-size:.95rem;line-height:1.65;}
.legal-page .account-page__intro .legal-updated {margin:14px 0 0;font-size:.8rem;font-weight:600;letter-spacing:.02em;}
.legal-tabs {margin-top:20px;}
.legal-toc {display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 4px;}
.legal-toc__label {align-self:center;margin-right:4px;font:700 .68rem/1 var(--f-body);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft);}
.legal-foot {margin-top:22px;}
.legal-card:focus {outline:none;}
.settings-heading {display:flex;align-items:flex-start;gap:13px;}
.settings-number {display:grid;place-items:center;flex:none;width:30px;height:30px;border:1px solid var(--line);border-radius:8px;color:var(--ink-soft);font-size:.7rem;}
.settings-heading h2 {font:700 1.25rem/1.2 var(--f-head);letter-spacing:-.025em;}
.settings-heading p {margin-top:5px;font-size:.83rem;color:var(--ink-soft);}
.settings-heading>.verified-badge {margin-left:auto;margin-top:3px;font-size:.7rem;}
.settings-value {font-size:1rem;margin:22px 0 16px;overflow-wrap:anywhere;}
.settings-actions {display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:18px;}
.settings-value+.settings-actions {margin-top:0;}
.settings-actions .link {font-size:.83rem;}
.settings-hint {font-size:.75rem;color:var(--ink-soft);}
.connection-status {display:flex;align-items:center;gap:6px;font-size:.85rem;color:#306250;font-weight:600;}
.connection-status .ic {width:17px;height:17px;}
.settings-card .auth-error {margin-top:15px;}
@media(max-width:900px) {
  .account-layout {grid-template-columns:230px minmax(0,1fr);gap:22px;}
  .settings-card {padding:22px;}
}
@media(max-width:759px) {
  .account-page {padding-top:28px;}
  .account-layout {grid-template-columns:1fr;gap:22px;margin-top:26px;}
  .profile-column {position:static;}
  .profile-card {position:static;padding:22px;display:grid;grid-template-columns:60px 1fr;gap:4px 18px;}
  .profile-avatar {grid-row:1/4;width:60px;height:60px;margin:0;font-size:2.2rem;border-radius:17px;}
  .profile-card h2 {font-size:1.35rem;}
  .profile-card>p {margin:0;}
  .profile-status {margin:2px 0 0;}
  .profile-links {grid-column:1/-1;grid-template-columns:1fr 1fr;margin-top:16px;padding-top:12px;gap:20px;}
  .profile-links a {font-size:.78rem;gap:7px;}
  .settings-heading {gap:10px;flex-wrap:wrap;}
  .settings-heading>div {flex:1;min-width:150px;}
  .settings-heading>.verified-badge {margin-left:40px;}
  .settings-card {padding:22px 20px;}
}
/* Device appearance: semantic colors cover every view, dialog and loading state. */
:root {--success:#306250;--success-bg:#eaf1e9;--warning:#87432c;--danger:#b32636;--danger-hover:#931d2a;--danger-text:#fff;--placeholder:#626b80;--skeleton:#e4e0d7;--skeleton-light:#f4f1e9;}
:root[data-color="green"] {--ink:#214c3e;--ink-soft:#3e6356;--butter:#c4dba0;--butter-pale:#e7efd8;--clay:#e4bda2;--clay-pale:#f2e4d8;}
:root[data-color="purple"] {--ink:#503468;--ink-soft:#6c537d;--butter:#d9c1ec;--butter-pale:#eee2f6;--clay:#e8b9ae;--clay-pale:#f5e2dc;}
:root[data-color="rose"] {--ink:#743748;--ink-soft:#805366;--butter:#efc2c8;--butter-pale:#f7e2e4;--clay:#e0c59b;--clay-pale:#f1e8d6;}
:root[data-mode="dark"] {color-scheme:dark;--paper:#171c25;--card:#222936;--ink:#d5dffb;--ink-soft:#b3c0dd;--butter:#51492d;--butter-pale:#302e25;--clay:#69463c;--clay-pale:#382c2c;--line:#ffffff30;--line-strong:#ffffff70;--success:#a2dfbf;--success-bg:#253d33;--warning:#f2bba5;--danger:#c83245;--danger-hover:#aa2436;--placeholder:#aeb9ce;--skeleton:#303a4a;--skeleton-light:#414e62;}
:root[data-mode="dark"][data-color="green"] {--ink:#cfefda;--ink-soft:#aed1bc;--butter:#36523e;--butter-pale:#273b30;}
:root[data-mode="dark"][data-color="purple"] {--ink:#ead7fa;--ink-soft:#cdb9e0;--butter:#503e61;--butter-pale:#322a40;}
:root[data-mode="dark"][data-color="rose"] {--ink:#f9d5df;--ink-soft:#dfb8c6;--butter:#633e4b;--butter-pale:#3c2932;}
:root[data-mode="light"] {color-scheme:light;}
.top {background:var(--paper);}
.field,.btn--google {background:var(--card);border-color:var(--line-strong);}
.field::placeholder {color:var(--placeholder);opacity:1;}
.btn--primary:hover {background:var(--ink);}
.btn--yellow:hover {background:var(--butter);}
.profile-logout {justify-content:center;text-align:center;background:var(--danger);border-color:var(--danger);color:var(--danger-text);}
.profile-logout:hover:not(:disabled) {background:var(--danger-hover);border-color:var(--danger-hover);}
.username-timing {margin-top:14px;line-height:1.6;}
.appearance-controls {display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:24px;}
.appearance-controls label {display:block;font-size:.82rem;margin-bottom:8px;font-weight:600;}
.appearance-controls select {width:100%;}
.profile-card,.auth-emblem,.dlg,.qcard,.empty-desk,.optpane .upload-target {border-color:var(--line);}
.profile-status,.verified-badge {color:var(--warning);}
.profile-status.is-verified,.verified-badge.is-verified,.connection-status {color:var(--success);}
.delivery-status,.verification-success .auth-emblem {background:var(--success-bg);color:var(--success);border-color:var(--line);}
.auth-error {color:var(--warning);border-color:var(--line);}
/* Password strength: four bars coloured by level, with the reason beside them. */
.pw-meter {display:flex;align-items:center;gap:9px;margin-top:8px;}
.pw-meter__bars {display:flex;gap:3px;flex:none;}
.pw-meter__bars i {width:22px;height:5px;border-radius:3px;background:var(--line);}
.pw-meter[data-score="1"] .pw-meter__bars i:nth-child(-n+1),.pw-meter.is-problem .pw-meter__bars i:nth-child(-n+1) {background:var(--warning);}
.pw-meter[data-score="2"] .pw-meter__bars i:nth-child(-n+2) {background:var(--butter);}
.pw-meter[data-score="3"] .pw-meter__bars i:nth-child(-n+3) {background:var(--ink-soft);}
.pw-meter[data-score="4"] .pw-meter__bars i {background:var(--success);}
.pw-meter__text {font-size:.78rem;line-height:1.35;color:var(--ink-soft);}
.pw-meter.is-problem .pw-meter__text {color:var(--warning);}
.upload-target.is-processing::after {background:var(--card);}
.skel {background:linear-gradient(105deg,var(--skeleton) 30%,var(--skeleton-light) 48%,var(--skeleton) 68%);background-size:240% 100%;}
.toast--err {color:#fff;}
@media(max-width:420px){.appearance-controls {grid-template-columns:1fr;gap:14px;}}
/* Keep every select chevron inside its field with consistent spacing. */
select.field {appearance:none;-webkit-appearance:none;padding-right:44px;background-image:linear-gradient(45deg,transparent 50%,var(--ink-soft) 50%),linear-gradient(135deg,var(--ink-soft) 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 15px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;cursor:pointer;}
select.field option {background:var(--card);color:var(--ink);}
.confirm-actions {display:flex;gap:12px;margin-top:24px;}
.confirm-actions .btn {flex:1;}
.btn--danger {background:var(--danger);border-color:var(--danger);color:var(--danger-text);}
.btn--danger:hover:not(:disabled) {background:var(--danger-hover);border-color:var(--danger-hover);}
.password-field {position:relative;min-width:0;}
.password-field .field {padding-right:72px;}
.password-toggle {position:absolute;right:6px;top:50%;transform:translateY(-50%);height:36px;max-height:calc(100% - 8px);min-width:56px;padding:0 8px;border:0;border-radius:5px;background:transparent;color:var(--ink);font-size:.75rem;font-weight:700;line-height:1;}
.password-toggle:hover {background:var(--butter-pale);}
.password-field input::-ms-reveal,.password-field input::-ms-clear {display:none;}
/* Quiet placeholders follow the destination layout without repainting gradients. */
.loading-layout .skel {animation:none;background:var(--skeleton);border-radius:7px;}
.loading-status {display:flex;align-items:center;gap:10px;color:var(--ink-soft);font-size:.78rem;margin-bottom:28px;}
.loading-status__dot {width:7px;height:7px;border-radius:50%;background:var(--ink);animation:pulse 1.8s ease-in-out infinite;}
.loading-status__note {margin-left:auto;font-size:.72rem;}
.skel-heading {display:grid;gap:15px;margin-bottom:30px;}
.skel--heading {height:52px;width:min(440px,80%);}
.skel-heading .skel--tag {width:110px;height:11px;}
.skel-heading .skel--line {width:min(360px,65%);}
.loading-layout .account-layout {margin-top:0;}
.skel-profile {padding:26px 24px;background:var(--butter-pale);border:1px solid var(--line);border-radius:14px;display:grid;gap:18px;}
.skel--avatar {width:72px;height:72px;border-radius:22px!important;margin-bottom:8px;}
.skel-profile-links {display:grid;gap:24px;padding-top:24px;margin-top:10px;border-top:1px solid var(--line);}
.skel--logout {height:46px;margin-top:14px;}
.skel-setting,.skel-form {display:grid;gap:18px;background:var(--card);border:1px solid var(--line);padding:28px;border-radius:12px;}
.skel-setting .skel--title {width:42%;height:22px;}
.skel--value {width:65%;height:17px;margin-top:10px;}
.skel-buttons {display:flex;gap:12px;margin-top:8px;}
.skel--button {width:112px;height:40px;}
.skel--input {height:46px;width:100%;}
.skel--textarea {height:100px;}
.skel-form,.skel-detail {max-width:780px;}
.skel-rows {display:grid;gap:16px;}
.skel-row {display:grid;grid-template-columns:80px 1fr 112px;gap:22px;align-items:center;padding:22px;border:1px solid var(--line);background:var(--card);border-radius:12px;}
.skel-row>div:nth-child(2) {display:grid;gap:12px;}
.skel--thumb {width:80px;height:80px;}
.loading-layout .skel-toolbar {overflow:hidden;}
.loading-layout .skel-toolbar .skel {flex-shrink:0;}
.loading-layout .skel-card {display:grid;background:var(--card);}
@media(max-width:759px){.loading-layout {padding-top:28px;}.skel--heading {height:40px;}.skel-profile {grid-template-columns:60px 1fr;gap:14px;}.skel--avatar {width:60px;height:60px;grid-row:1/3;margin:0;}.skel-profile-links {grid-column:1/-1;grid-template-columns:1fr 1fr;}.skel-setting,.skel-form {padding:22px 20px;}.skel-row {grid-template-columns:60px 1fr;padding:18px;gap:16px;}.skel--thumb {width:60px;height:60px;}.skel-row>.skel--button {display:none;}.loading-layout .skel-toolbar .skel:last-child {margin-left:0;width:100px;}}
@media(prefers-reduced-motion:reduce){.loading-status__dot {animation:none;}}
.email-signin-option {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:26px;padding-top:22px;border-top:1px solid var(--line);}
.email-signin-option__label {display:flex;align-items:center;gap:12px;}
.email-signin-option h3 {font-size:.88rem;font-weight:600;}
.email-signin-option p {font-size:.75rem;color:var(--ink-soft);margin-top:3px;}
.email-signin-option .btn {flex-shrink:0;}
@media(max-width:600px){.email-signin-option {align-items:flex-start;flex-direction:column;gap:14px;}}
.profile-edit-name {display:block;margin-top:16px;font-size:.8rem;justify-self:start;}
@media(max-width:759px){.profile-edit-name {grid-column:2;margin-top:8px;}}
/* Display-name editing stays compact, with a live profile preview. */
.profile-edit-name {display:inline-flex;align-items:center;gap:7px;width:fit-content;padding:7px 10px;border:1px solid var(--line-strong);border-radius:7px;background:transparent;color:var(--ink);font-size:.75rem;font-weight:600;line-height:1.3;min-height:34px;}
.profile-edit-name .ic {width:14px;height:14px;}
.profile-edit-name:hover {background:var(--card);}
.name-preview {display:flex;align-items:center;gap:14px;padding:16px;background:var(--butter-pale);border:1px solid var(--line);border-radius:12px;min-width:0;}
.name-preview__avatar {display:grid;place-items:center;flex:none;width:52px;height:56px;border:1px solid var(--line-strong);border-radius:16px;background:var(--butter);font:italic 2rem var(--f-serif);text-transform:uppercase;}
/* Avatars: one square photo per account, large on the account page, small in bylines. */
.profile-avatar img,.name-preview__avatar img {width:100%;height:100%;object-fit:cover;display:block;transition:transform .28s ease;}
.name-preview__avatar.has-image {padding:0;overflow:hidden;background:var(--butter-pale);}
.profile-avatar__pick {position:relative;display:grid;place-items:center;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:none;color:inherit;font:inherit;text-transform:inherit;cursor:pointer;overflow:hidden;}
.profile-avatar.has-image .profile-avatar__pick {background:var(--butter-pale);}
.profile-avatar__badge {position:absolute;right:4px;bottom:4px;display:grid;place-items:center;width:23px;height:23px;padding:0;border:2px solid var(--butter-pale);border-radius:9px;background:var(--ink);color:#fff;transform:rotate(5deg);transform-origin:78% 78%;transition:opacity .16s ease,transform .28s cubic-bezier(.34,1.56,.64,1),background-color .16s ease;}
/* Only a member who already has a photo hides the badge: on the empty tile it is the sole hint that a photo can be added at all. */
.profile-avatar.has-image .profile-avatar__badge {opacity:0;transform:rotate(5deg) scale(.35);}
.profile-avatar__pick:hover .profile-avatar__badge,.profile-avatar__pick:focus-visible .profile-avatar__badge {background:#253365;}
.profile-avatar.has-image .profile-avatar__pick:hover .profile-avatar__badge,.profile-avatar.has-image .profile-avatar__pick:focus-visible .profile-avatar__badge {opacity:1;transform:rotate(5deg) scale(1);}
.profile-avatar.has-image .profile-avatar__pick:hover img,.profile-avatar.has-image .profile-avatar__pick:focus-visible img {transform:scale(1.07);}
/* Touch screens never hover, so hiding the badge there would leave no way to change an existing photo. */
@media(hover:none){.profile-avatar.has-image .profile-avatar__badge {opacity:1;transform:rotate(5deg) scale(1);}}
.profile-avatar__badge .ic {width:13px;height:13px;stroke-width:1.9;}
.profile-avatar__clear {position:absolute;top:-9px;right:-9px;display:grid;place-items:center;width:25px;height:25px;padding:0;border:2px solid var(--butter-pale);border-radius:50%;background:var(--ink);color:#fff;cursor:pointer;transform:rotate(5deg);}
.profile-avatar__clear .ic {width:12px;height:12px;stroke-width:2.8;}
.profile-avatar__clear:hover {background:#8a4c32;}
.profile-avatar.is-processing {opacity:.55;pointer-events:none;}
.avatar-manage {display:grid;gap:15px;}
.avatar-manage__preview {display:grid;place-items:center;width:132px;height:132px;margin:4px auto 6px;border:1px solid var(--line-strong);border-radius:30px;overflow:hidden;background:var(--butter-pale);transform:rotate(-5deg);}
.avatar-manage__preview img {width:100%;height:100%;object-fit:cover;display:block;}
.avatar-chip {width:24px;height:24px;border-radius:50%;object-fit:cover;flex:none;background:var(--butter-pale);}
.qmeta .avatar-chip {display:inline-block;vertical-align:-7px;margin-right:8px;}
.cm__head .avatar-chip {width:28px;height:28px;align-self:center;margin-right:2px;}
@media(max-width:759px){.profile-avatar__badge {width:21px;height:21px;border-radius:8px;right:3px;bottom:3px;}
  .profile-avatar__badge .ic {width:12px;height:12px;}
  .profile-avatar__clear {top:-8px;right:-8px;width:22px;height:22px;}}
/* Member profile — a small piece of printed stationery, not a generic dashboard.
   All color values come from the existing palette, including dark/accent modes. */
.profile-page {padding-top:clamp(18px,3.3vw,38px);padding-bottom:80px;}
.member-crumb {display:flex;align-items:center;gap:12px;margin-bottom:20px;color:var(--ink-soft);font-size:.77rem;font-weight:600;}
.member-crumb a {display:inline-flex;align-items:center;gap:7px;color:var(--ink);text-decoration:none;}
.member-crumb a:hover {text-decoration:underline;}
.member-crumb .ic {width:15px;height:15px;}
.member-hero {position:relative;isolation:isolate;border:1.5px solid var(--line-strong);border-radius:22px;background:var(--card);box-shadow:0 7px 0 rgba(37,51,101,.10);}
.member-hero__banner {position:relative;display:flex;align-items:center;justify-content:center;height:155px;background:var(--butter-pale);border-radius:20px 20px 0 0;overflow:hidden;}
/* A small notebook grid and halftone stripe; intentionally only on the banner. */
.member-banner__grid {position:absolute;top:-25px;left:-20px;width:36%;height:145px;transform:rotate(-8deg);opacity:.29;background-image:linear-gradient(var(--ink-soft) 1px,transparent 1px),linear-gradient(90deg,var(--ink-soft) 1px,transparent 1px);background-size:24px 24px;mask-image:linear-gradient(90deg,#000 35%,transparent 100%);}
.member-hero__banner::before {content:"";position:absolute;right:-40px;bottom:-62px;width:46%;height:132px;transform:rotate(-10deg);opacity:.65;background:repeating-linear-gradient(-3deg,var(--ink) 0 2px,transparent 2px 7px);clip-path:polygon(0 30%,100% 0,100% 100%,0 90%);}
.member-hero__banner::after {content:"";position:absolute;z-index:1;left:0;right:0;bottom:-1px;height:17px;background:var(--card);clip-path:polygon(0 66%,4% 57%,8% 71%,13% 46%,18% 70%,23% 47%,28% 65%,33% 43%,39% 72%,45% 49%,51% 69%,57% 42%,64% 65%,70% 47%,77% 67%,84% 43%,90% 67%,95% 47%,100% 60%,100% 100%,0 100%);}
.member-banner__label {position:relative;z-index:2;display:inline-block;transform:rotate(-1.5deg);padding:8px 20px 7px;border:1px solid var(--line-strong);background:var(--card);color:var(--ink);font:750 clamp(1.25rem,2.3vw,1.85rem)/1.1 var(--f-head);letter-spacing:-.045em;box-shadow:4px 5px 0 rgba(37,51,101,.10);}
.member-banner__label::before,.member-banner__label::after {content:"";position:absolute;top:-9px;width:35px;height:14px;background:var(--butter);opacity:.65;transform:rotate(-18deg);}
.member-banner__label::before {left:10px;}.member-banner__label::after {right:6px;transform:rotate(15deg);}
.member-banner__label em {font:italic 1.12em var(--f-serif);font-weight:400;}
.member-banner__label>span {font:600 .47em/1 var(--f-body);letter-spacing:.13em;text-transform:uppercase;vertical-align:middle;margin-left:.8em;}
.member-banner__symbol {position:absolute;z-index:2;right:calc(12% - 5px);top:40px;display:grid;place-items:center;width:38px;height:38px;border:1.5px solid var(--ink);border-radius:50%;color:var(--ink);background:var(--butter);font:800 1.7rem/1 var(--f-head);transform:rotate(11deg);}
.member-banner__clip {position:absolute;z-index:4;top:0;right:35px;width:31px;height:20px;background:var(--ink);border-radius:0 0 4px 4px;transform:rotate(10deg);}
.member-banner__clip::before {content:"";position:absolute;left:7px;bottom:13px;width:17px;height:22px;border:3px solid var(--ink);border-bottom:0;border-radius:10px 10px 0 0;}
.member-hero__content {padding:0 clamp(22px,4.2vw,48px) 28px;}
.member-hero__top {display:flex;align-items:center;gap:clamp(17px,2.6vw,28px);position:relative;margin-top:-36px;}
.member-avatar {position:relative;z-index:3;display:grid;place-items:center;flex:0 0 auto;width:112px;height:112px;border:6px solid var(--card);border-radius:27px;background:var(--butter);color:var(--ink);font:italic 4.15rem/1 var(--f-serif);box-shadow:6px 7px 0 rgba(37,51,101,.77),0 0 0 1px var(--line);transform:rotate(-5deg);overflow:hidden;}
.member-avatar img {width:100%;height:100%;object-fit:cover;transform:rotate(5deg) scale(1.08);}
.member-hero__intro {min-width:0;align-self:flex-end;padding-bottom:3px;padding-top:42px;}
.member-hero__intro .eyebrow {display:inline-block;position:relative;font-size:.68rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-soft);}
.member-hero__intro .eyebrow::after {content:"";display:inline-block;width:28px;height:3px;margin-left:9px;vertical-align:middle;background:var(--butter);transform:rotate(-3deg);}
.member-hero h1 {margin:3px 0 1px;font:800 clamp(2rem,4vw,3.05rem)/1.05 var(--f-head);letter-spacing:-.065em;overflow-wrap:anywhere;}
.member-handle {font-size:.93rem;color:var(--ink-soft);overflow-wrap:anywhere;}
.member-hero__actions {display:flex;align-items:center;gap:10px;margin-left:auto;padding-top:47px;flex-wrap:wrap;justify-content:flex-end;}
.member-hero__actions .btn {min-height:41px;padding:9px 15px;white-space:nowrap;border-radius:8px;}
.member-hero__actions .ic {width:16px;height:16px;}
.profile-follow--on,.people-follow--on {background:var(--butter-pale);border-color:var(--line-strong);}
.member-hero__details {display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:20px 0 20px;}
.member-bio {max-width:740px;margin:0;color:var(--ink);font-size:.94rem;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;}
.member-bio--empty {color:var(--ink-soft);}
.member-bio a {font-weight:700;text-decoration:underline;}
.member-stats {position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;border-top:1px solid var(--line);padding-top:22px;}
.member-stats::before {content:"?";position:absolute;top:-13px;left:calc(50% - 12px);display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--line-strong);border-radius:50%;background:var(--butter);font:800 .88rem var(--f-head);}
.member-stat {display:flex;align-items:center;gap:11px;min-width:0;padding:13px 12px;border:1px solid var(--line);border-radius:10px;background:var(--paper);}
.member-stat__icon {display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;color:var(--ink);}
.member-stat__icon .ic {width:27px;height:27px;stroke-width:1.55;}
.member-stat__copy {display:flex;flex-direction:column;min-width:0;gap:2px;}
.member-stat strong {font:800 clamp(1.2rem,2vw,1.65rem)/1 var(--f-head);letter-spacing:-.055em;font-variant-numeric:tabular-nums;}
.member-stat__copy>span {font-size:.61rem;letter-spacing:.075em;text-transform:uppercase;font-weight:800;color:var(--ink-soft);}
.member-layout {display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:clamp(22px,4vw,46px);align-items:start;margin-top:40px;}
.member-main,.member-sidebar {min-width:0;}
.member-section-heading {display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:18px;}
.member-section-heading .eyebrow {font-size:.65rem;letter-spacing:.11em;}
.member-section-heading h2 {font:800 clamp(1.2rem,2vw,1.55rem)/1.2 var(--f-head);letter-spacing:-.035em;margin-top:4px;}
.member-heading-count {padding:5px 9px;border:1px solid var(--line);border-radius:50px;font-size:.7rem;font-weight:700;color:var(--ink-soft);white-space:nowrap;}
.member-main .rows {margin:0;}
.member-empty {display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:27px;border:1px dashed var(--line-strong);border-radius:13px;background:var(--card);}
.member-empty__mark {display:grid;place-items:center;width:45px;height:45px;background:var(--butter-pale);border-radius:50%;font:italic 2rem var(--f-serif);}
.member-empty h3 {font:800 1.13rem var(--f-head);letter-spacing:-.03em;}
.member-empty p {max-width:380px;font-size:.88rem;color:var(--ink-soft);}
.member-empty .btn {margin-top:6px;}
.member-sidebar {padding:21px;border:1px solid var(--line);border-radius:15px;background:var(--card);}
.member-sidebar .member-section-heading {border-bottom:1px solid var(--line);padding-bottom:16px;}
.member-reasons {display:grid;gap:0;list-style:none;}
.member-reason {display:grid;gap:7px;padding:16px 0;border-bottom:1px solid var(--line);}
.member-reason:first-child {padding-top:4px;}.member-reason:last-child {border-bottom:0;padding-bottom:2px;}
.member-reason__question {font:700 .91rem/1.35 var(--f-head);letter-spacing:-.025em;text-decoration:none;overflow-wrap:anywhere;}
.member-reason__question:hover {text-decoration:underline;}
.member-reason p {color:var(--ink-soft);font-size:.83rem;line-height:1.55;overflow-wrap:anywhere;}
.member-reason__meta {color:var(--ink-soft);font-size:.72rem;font-weight:600;}
.member-aside-empty p {font-size:.87rem;color:var(--ink-soft);}
.member-aside-empty a {display:inline-flex;align-items:center;gap:7px;font-size:.81rem;font-weight:700;margin-top:13px;text-decoration:none;}
.member-aside-empty a:hover {text-decoration:underline;}.member-aside-empty .ic {width:16px;height:16px;}
.byline-slot {display:inline;}.byline {color:inherit;text-decoration:none;}
.byline--identity {display:inline-flex;align-items:center;gap:6px;vertical-align:middle;border-bottom:1px solid transparent;font-weight:700;}
.byline--identity:hover {border-bottom-color:currentColor;}
.byline--identity .avatar-chip {display:inline-block;width:25px;height:25px;border-radius:50%;margin:0;vertical-align:middle;flex:none;}
.byline--plain {font-weight:700;}.qmeta .byline--identity .avatar-chip {vertical-align:middle;margin:0;}
.cm__head .byline--identity {display:inline-flex;align-items:center;}.cm__head .byline--identity .avatar-chip {width:28px;height:28px;}
@media(max-width:950px){.member-stats {gap:6px;}.member-stat {gap:6px;padding:11px 9px;}.member-stat__icon {width:27px;height:27px;}.member-stat__icon .ic {width:23px;height:23px;}}
@media(max-width:820px){.member-layout {grid-template-columns:1fr;gap:30px;}.member-sidebar {max-width:none;}}
@media(max-width:760px){.member-hero__top {flex-wrap:wrap;}.member-hero__actions {flex-basis:100%;margin-left:0;padding-top:8px;justify-content:flex-start;}.member-stats {grid-template-columns:repeat(3,minmax(0,1fr));}.member-stat {padding:11px 12px;}}
@media(max-width:620px){
  .profile-page {padding-top:17px;padding-bottom:100px;}.member-hero {border-radius:15px;}.member-hero__banner {height:115px;border-radius:13px 13px 0 0;}.member-banner__label {padding:7px 12px;font-size:1.2rem;}.member-banner__label>span {font-size:.4em;margin-left:.4em;}.member-banner__symbol {top:26px;right:8%;width:27px;height:27px;font-size:1.14rem;}.member-banner__clip {right:22px;}
  .member-hero__content {padding:0 17px 23px;}.member-hero__top {gap:12px;margin-top:-26px;}.member-avatar {width:78px;height:78px;border-width:4px;border-radius:20px;font-size:2.9rem;box-shadow:4px 5px 0 rgba(37,51,101,.77),0 0 0 1px var(--line);}.member-hero__intro {padding-top:27px;padding-bottom:0;flex:1 1 calc(100% - 96px);}.member-hero__intro .eyebrow {font-size:.56rem;}.member-hero h1 {font-size:1.85rem;}.member-handle {font-size:.79rem;}.member-hero__actions {margin-top:3px;gap:8px;}.member-hero__actions .btn {min-height:39px;padding:8px 11px;font-size:.76rem;}.member-hero__details {margin:17px 0;}.member-bio {font-size:.88rem;}
  .member-stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding-top:19px;}.member-stat {gap:7px;padding:10px 8px;}.member-stat:last-child {grid-column:1/-1;justify-content:center;}.member-stat__icon {width:26px;height:26px;}.member-stat__icon .ic {width:23px;height:23px;}.member-stat strong {font-size:1.45rem;}.member-stat__copy>span {font-size:.55rem;}.member-layout {margin-top:33px;}.member-sidebar {padding:18px;}
}
@media(max-width:360px){.member-banner__label {font-size:1rem;}.member-banner__symbol {display:none;}.member-hero__actions .btn {font-size:.72rem;padding-inline:9px;}}
:root[data-mode="dark"] .member-hero {box-shadow:0 7px 0 rgba(0,0,0,.25);}
:root[data-mode="dark"] .member-avatar {box-shadow:5px 6px 0 rgba(0,0,0,.7),0 0 0 1px var(--line);}
:root[data-mode="dark"] .member-banner__label {box-shadow:4px 5px 0 rgba(0,0,0,.25);}
@media(prefers-reduced-motion:reduce){.member-avatar,.member-avatar img,.member-banner__label {transform:none;}}

/* Editorial scrapbook profile refinement — faithful to the chosen paper-and-ink reference.
   All decorations are local, decorative-only art; identity, counts and actions remain live. */
.member-hero {
  --member-navy:var(--ink);
  border:1.5px solid var(--line-strong);
  border-bottom:7px solid var(--member-navy);
  border-radius:23px;
  box-shadow:0 8px 22px rgba(42,39,31,.065);
  overflow:visible;
}
.member-hero__banner {
  height:185px;
  background:var(--butter-pale) var(--member-banner-art) center center/cover no-repeat;
  border-radius:21px 21px 0 0;
  isolation:isolate;
}
.member-banner__grid {display:none;}
.member-hero__banner::before {display:none;}
.member-hero__banner::after {
  z-index:1;
  height:21px;
  bottom:-1px;
  background:var(--card);
  clip-path:polygon(0 56%,3% 68%,6% 46%,9% 62%,12% 42%,15% 69%,18% 53%,21% 78%,25% 54%,29% 71%,33% 47%,37% 59%,41% 41%,45% 70%,49% 48%,53% 62%,57% 43%,61% 76%,65% 52%,69% 63%,73% 44%,77% 62%,81% 53%,85% 73%,89% 49%,93% 63%,97% 42%,100% 59%,100% 100%,0 100%);
}
.member-banner__label {
  padding:9px 22px 11px;
  transform:rotate(-2deg) translateY(-3px);
  border:0;
  color:var(--ink);
  background:var(--card);
  clip-path:polygon(0 6%,9% 0,23% 4%,38% 0,58% 5%,75% 0,92% 5%,100% 2%,98% 95%,84% 100%,65% 95%,48% 100%,28% 95%,12% 99%,1% 93%);
  box-shadow:none;
  font:500 clamp(1.35rem,2.6vw,2.15rem)/1.2 var(--f-serif);
  letter-spacing:.007em;
  white-space:nowrap;
}
.member-banner__label em {font-size:1.06em;letter-spacing:-.025em;}
.member-banner__label>span {font:600 .52em var(--f-body);letter-spacing:.03em;text-transform:none;margin-left:6px;vertical-align:baseline;}
.member-banner__label::before,.member-banner__label::after {top:-7px;width:42px;height:16px;background:var(--butter);opacity:.7;}
.member-banner__label::before {left:12px;transform:rotate(-18deg);}
.member-banner__label::after {right:22px;transform:rotate(17deg);}
.member-banner__spark {position:absolute;left:30%;top:59px;color:var(--member-navy);font-size:1.75rem;transform:rotate(25deg);opacity:.8;}
.member-banner__symbol {right:11%;top:61px;width:auto;height:auto;padding:5px 9px;border:0;border-radius:0;background:transparent;transform:rotate(12deg);font:600 1.1rem/1 var(--f-serif);letter-spacing:3px;opacity:0;}
.member-banner__clip {z-index:6;right:39px;top:-8px;width:37px;height:26px;border-radius:2px 2px 3px 3px;background:var(--member-navy);transform:rotate(10deg);box-shadow:2px 3px 0 rgba(0,0,0,.15);}
.member-banner__clip::before {left:8px;bottom:18px;width:20px;height:27px;border-color:var(--ink-soft);border-width:3px;border-radius:14px 14px 0 0;}
.member-hero__content {padding:0 clamp(22px,3.9vw,47px) 31px;}
.member-hero__top {margin-top:-34px;gap:clamp(20px,3.3vw,41px);align-items:flex-end;}
.member-avatar-wrap {position:relative;z-index:4;flex:0 0 auto;transform:rotate(-4deg);}
.member-avatar {width:134px;height:134px;border:7px solid var(--card);border-radius:33px;box-shadow:9px 10px 0 var(--member-navy),0 0 0 1px var(--line);transform:none;font:italic 5.3rem/1 var(--f-serif);background:var(--butter);}
.member-avatar img {transform:none;object-fit:cover;}
.member-avatar__star {position:absolute;z-index:5;right:-9px;bottom:-14px;display:grid;place-items:center;color:var(--member-star);font-size:3.1rem;line-height:1;-webkit-text-stroke:4px var(--card);paint-order:stroke fill;transform:rotate(15deg);text-shadow:1px 3px 0 var(--member-navy);}
.member-hero__intro {align-self:center;padding:37px 0 0;}
.member-hero__intro .eyebrow {font-size:.67rem;letter-spacing:.18em;color:var(--ink);}
.member-hero__intro .eyebrow::after {height:4px;background:var(--member-detail);width:42px;margin-left:12px;}
.member-hero h1 {font-size:clamp(2.2rem,4vw,3.25rem);line-height:1.05;letter-spacing:-.07em;margin:8px 0 6px;}
.member-handle {font-size:.99rem;}
.member-hero__actions {padding-top:39px;gap:12px;}
.member-hero__actions .btn {min-height:47px;border-radius:11px;padding:12px 17px;box-shadow:0 2px 0 var(--member-shadow);font-weight:750;transition:transform .18s ease,box-shadow .18s ease;}
.member-hero__actions .btn:hover {transform:translateY(-2px);box-shadow:0 4px 0 var(--member-shadow);}
.member-hero__details {gap:8px;margin:25px 0 25px;min-height:56px;}
.member-bio {font-size:1rem;line-height:1.4;font-style:italic;}
.member-stats {gap:clamp(9px,1.9vw,18px);padding-top:29px;border-top:1px solid var(--line);}
.member-stats::before {top:-17px;left:calc(50% - 15px);width:30px;height:30px;border:0;background:var(--butter);clip-path:polygon(50% 0%,63% 10%,78% 4%,83% 20%,99% 22%,93% 39%,100% 50%,91% 63%,96% 79%,80% 84%,78% 97%,62% 91%,50% 100%,36% 90%,22% 97%,18% 82%,2% 78%,10% 62%,0 50%,10% 36%,4% 21%,20% 18%,23% 3%,39% 9%);color:var(--member-navy);font-size:1.08rem;}
.member-stat {min-height:88px;padding:14px clamp(9px,1.6vw,18px);gap:12px;background:linear-gradient(145deg,var(--member-stat-top),var(--member-stat-bottom));border:1px solid var(--line);border-top:1px solid var(--member-stat-edge);border-radius:17px;box-shadow:0 3px 0 var(--member-shadow);color:var(--ink);}
.member-stat__icon {width:39px;height:39px;}
.member-stat__icon .ic {width:32px;height:32px;stroke-width:1.9;}
.member-stat strong {font-size:clamp(1.55rem,2.4vw,2rem);letter-spacing:-.065em;}
.member-stat__copy>span {font-size:.64rem;letter-spacing:.13em;color:var(--ink-soft);}
.member-layout {margin-top:45px;}
@media(max-width:980px) {
 .member-stats {gap:8px;}
 .member-stat {gap:8px;padding:12px 9px;min-height:77px;}
 .member-stat__icon {width:31px;height:31px;}
 .member-stat__icon .ic {width:27px;height:27px;}
}
@media(max-width:760px) {
 .member-hero__actions {padding-top:7px;}
 .member-hero__top {align-items:center;}
 .member-hero__intro {padding-top:40px;}
 .member-stats {grid-template-columns:repeat(3,minmax(0,1fr));}
 .member-stat {padding:12px;}
}
@media(max-width:620px) {
 .member-hero {border-radius:16px;border-bottom-width:5px;}
 .member-hero__banner {height:130px;border-radius:14px 14px 0 0;background-position:51% center;}
 .member-banner__label {font-size:1.2rem;padding:8px 11px;}
 .member-banner__label>span {font-size:.5em;margin-left:3px;}
 .member-banner__spark {display:none;}
 .member-banner__clip {right:17px;top:-6px;transform:rotate(12deg) scale(.73);}
 .member-hero__content {padding:0 17px 21px;}
 .member-hero__top {gap:14px;margin-top:-29px;align-items:center;}
 .member-avatar {width:88px;height:88px;font-size:3.1rem;border-width:5px;border-radius:22px;box-shadow:5px 6px 0 var(--member-navy);}
 .member-avatar__star {font-size:2.15rem;right:-10px;bottom:-10px;-webkit-text-stroke-width:3px;}
 .member-hero__intro {padding:28px 0 0;}
 .member-hero h1 {font-size:clamp(1.65rem,7vw,2.1rem);}
 .member-hero__actions {margin:2px 0 0;gap:8px;padding:0;}
 .member-hero__actions .btn {min-height:41px;padding:8px 12px;font-size:.79rem;border-radius:8px;}
 .member-hero__details {margin:18px 0 21px;min-height:0;}
 .member-bio {font-size:.9rem;}
 .member-stats {grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding-top:23px;}
 .member-stat {grid-column:span 2;min-height:66px;padding:10px 8px;gap:7px;border-radius:10px;}
 .member-stat:nth-child(n+4) {grid-column:span 3;justify-content:center;}
 .member-stat__icon {width:25px;height:25px;}
 .member-stat__icon .ic {width:24px;height:24px;}
 .member-stat strong {font-size:1.45rem;}
 .member-stat__copy>span {font-size:.51rem;letter-spacing:.06em;}
 .member-layout {margin-top:35px;}
}
@media(max-width:360px) {
 .member-banner__label {font-size:1.05rem;}
 .member-hero__intro .eyebrow {font-size:.5rem;}
 .member-hero__actions .btn {font-size:.71rem;padding-inline:9px;}
 .member-stat__icon {width:21px;height:21px;}
 .member-stat__icon .ic {width:20px;height:20px;}
}
@media(prefers-reduced-motion:reduce) {.member-hero__actions .btn {transition:none;}}


/* Theme-aware palette for the profile's paper, ornaments and ink. */
:root {
  --member-banner-art:url("assets/profile-paper-art.svg");
  --member-star:var(--butter);
  --member-detail:var(--butter);
  --member-stat-top:color-mix(in srgb,var(--card) 91%,var(--butter-pale));
  --member-stat-bottom:color-mix(in srgb,var(--card) 66%,var(--butter-pale));
  --member-stat-edge:var(--card);
  --member-shadow:color-mix(in srgb,var(--ink) 12%,transparent);
}
:root[data-mode="light"][data-color="green"] {--member-banner-art:url("assets/profile-paper-art-light-green.svg");}
:root[data-mode="light"][data-color="purple"] {--member-banner-art:url("assets/profile-paper-art-light-purple.svg");}
:root[data-mode="light"][data-color="rose"] {--member-banner-art:url("assets/profile-paper-art-light-rose.svg");}
:root[data-mode="dark"] {
  --member-banner-art:url("assets/profile-paper-art-dark-blue.svg");
  --member-star:var(--ink);
  --member-detail:var(--ink-soft);
  --member-stat-top:color-mix(in srgb,var(--card) 91%,var(--butter-pale));
  --member-stat-bottom:color-mix(in srgb,var(--card) 67%,var(--butter-pale));
  --member-stat-edge:var(--line-strong);
  --member-shadow:rgba(0,0,0,.22);
}
:root[data-mode="dark"][data-color="green"] {--member-banner-art:url("assets/profile-paper-art-dark-green.svg");}
:root[data-mode="dark"][data-color="purple"] {--member-banner-art:url("assets/profile-paper-art-dark-purple.svg");}
:root[data-mode="dark"][data-color="rose"] {--member-banner-art:url("assets/profile-paper-art-dark-rose.svg");}
/* Protect contrast and control clarity in every scheme, without flattening the scrapbook look. */
.member-stat__icon,.member-stat strong,.member-stats::before {color:var(--ink);}
.member-hero__banner {border-bottom:0;}
.member-banner__label,.member-banner__symbol {color:var(--ink);}
.member-banner__clip {background:var(--ink);}
.member-hero .btn:focus-visible,.member-crumb a:focus-visible,.member-reason__question:focus-visible {
  outline:3px solid var(--ink);outline-offset:3px;
}
:root[data-mode="dark"] .member-hero {border-color:var(--line-strong);box-shadow:0 8px 22px rgba(0,0,0,.24);}
:root[data-mode="dark"] .member-avatar {box-shadow:6px 7px 0 var(--member-shadow),0 0 0 1px var(--line-strong);}
:root[data-mode="dark"] .member-banner__label {box-shadow:0 3px 0 var(--member-shadow);}
:root[data-mode="dark"] .member-stats::before {border:1px solid var(--line-strong);}
:root[data-mode="dark"] .member-stat {box-shadow:0 3px 0 var(--member-shadow);}
:root[data-mode="dark"] .member-hero__actions .btn:hover {box-shadow:0 3px 0 var(--member-shadow);}
@media(max-width:620px){:root[data-mode="dark"] .member-avatar {box-shadow:4px 5px 0 var(--member-shadow),0 0 0 1px var(--line-strong);}}
/* People list (#/desk/following) */
.people-list {list-style:none;padding:0;display:grid;gap:16px;margin:0;}
.people-row {display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:start;background:var(--butter-pale);border:1px solid var(--line);border-radius:12px;padding:16px;}
.people-row__avatar {display:grid;place-items:center;width:52px;height:52px;border:1px solid var(--ink);border-radius:16px;background:var(--butter);font:italic 1.7rem var(--f-serif);color:var(--ink);text-decoration:none;overflow:hidden;flex-shrink:0;}
.people-row__avatar.has-image img {width:100%;height:100%;object-fit:cover;}
.people-row__body {min-width:0;display:flex;flex-direction:column;gap:3px;}
.people-row__name {font:700 .95rem/1.25 var(--f-head);letter-spacing:-.02em;color:var(--ink);text-decoration:none;overflow-wrap:anywhere;}
.people-row__name:hover {text-decoration:underline;text-underline-offset:3px;}
.people-row__handle {font-size:.75rem;color:var(--ink-soft);}
.people-row__bio {font-size:.8rem;color:var(--ink-soft);line-height:1.45;margin-top:3px;overflow-wrap:anywhere;white-space:pre-wrap;}
.people-row__meta {font-size:.72rem;color:var(--ink-soft);margin-top:4px;}
.people-row__latest {font-size:.78rem;color:var(--ink-soft);margin-top:4px;text-decoration:none;border-bottom:1px solid var(--line-strong);overflow-wrap:anywhere;}
.people-row__latest:hover {border-bottom-color:var(--ink);}
.people-follow {align-self:center;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;}
.people-follow .ic {width:14px;height:14px;}
.people-follow--on {background:var(--butter-pale);border-color:var(--ink-soft);}
.people-follow--on:hover {background:var(--butter);}
@media(max-width:540px){.people-row {grid-template-columns:auto 1fr;}.people-follow {grid-column:2;margin-top:4px;}}

/* Bio settings field */
.settings-bio-form {margin-top:8px;}
.settings-bio-row {position:relative;}
.bio-counter {display:block;text-align:right;margin-top:4px;}
.name-preview>div {display:grid;gap:3px;min-width:0;}
.name-preview__label {font-size:.6rem;text-transform:uppercase;letter-spacing:.1em;color:var(--ink-soft);}
.name-preview strong {font:700 1.2rem/1.25 var(--f-head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.name-preview__handle {font-size:.75rem;color:var(--ink-soft);overflow-wrap:anywhere;}
.name-counter {font-size:.7rem;color:var(--ink-soft);font-variant-numeric:tabular-nums;}
.name-login-note {display:flex;align-items:flex-start;gap:8px;font-size:.74rem;color:var(--ink-soft);line-height:1.45;}
.name-login-note .ic {width:15px;height:15px;margin-top:2px;}
.name-login-note strong {font-weight:600;color:var(--ink);overflow-wrap:anywhere;}
.name-editor-actions {display:grid;grid-template-columns:1fr 1.5fr;gap:10px;margin-top:3px;}
@media(max-height:490px) and (min-width:600px){.display-name-form .name-preview {grid-column:1;grid-row:2/4;}.display-name-form .name-editor {grid-column:2;}.display-name-form .name-login-note {grid-column:2;}.display-name-form .name-editor-actions {grid-column:1/-1;}}

/* Keep new dialogs compact without introducing a scrolling modal. */
.dlg .crop-controls label {display:grid;grid-template-columns:125px 1fr;gap:12px;align-items:center;margin:0;}
.dlg .crop-controls input {min-height:28px;}
.dlg form[data-extra-form]>.err {font-size:.8rem;}
@media(max-height:600px) and (max-width:599px) {
 .dlg:has([data-extra-form]) {padding:20px;}
 .dlg form[data-extra-form] {gap:9px;}
 .dlg form[data-extra-form] .auth-head .eyebrow {display:none;}
 .dlg form[data-extra-form] .lede {font-size:.8rem;}
 .dlg form[data-extra-form] .feature-actions {margin-top:4px;}
 #crop-canvas {max-height:23dvh;}
}
@media(max-height:560px) and (min-width:600px) {
 .dlg:has([data-extra-form="crop"]) {width:min(620px,calc(100% - 24px));padding:18px 24px;}
 .dlg form[data-extra-form="crop"] {grid-template-columns:1fr 1fr;gap:10px 18px;}
}

/* Role system: advisor highlights, breakdown, silence gate, moderation tools, admin desk, announcement banner. */
.cm--highlighted {border-left:3px solid var(--butter);padding-left:14px;background:linear-gradient(90deg,var(--butter-pale),transparent 60%);}
.cm__tag--star {font-style:normal;font-family:var(--f-body);font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#8a6d1f;display:inline-flex;align-items:center;gap:5px;}
.cm__tag--star::before {content:"★";}
[data-extra="highlight"].highlight-on {color:var(--ink);font-weight:700;text-decoration:underline;}
.breakdown {margin:26px 0;padding:20px 22px;background:var(--card);border:1px solid var(--line);border-radius:14px;}
.breakdown__h {font:700 1.15rem/1.1 var(--f-head);letter-spacing:-.02em;display:flex;align-items:center;gap:10px;margin-bottom:12px;}
.breakdown-list {display:grid;gap:12px;list-style:none;padding:0;margin:0;}
.breakdown-list li {padding:12px 14px;background:var(--paper);border-radius:10px;}
.breakdown-list b {font-family:var(--f-head);}
.breakdown-list span {display:block;margin-top:3px;color:var(--ink-soft);font-size:.9rem;}
.breakdown-list blockquote {margin:8px 0 0;padding:8px 12px;border-left:2px solid var(--line);font:italic 400 1rem/1.4 var(--f-serif);overflow-wrap:anywhere;}
.mute-panel {border-style:solid;border-color:var(--warning,#87432c);}
.mute-panel h3 {color:var(--warning,#87432c);}
/* Desk layout: full-width sections with aligned heads, light forms, status pills. */
.desk-head {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 10px;}
.desk-head .feature-lede {margin:0;max-width:60ch;}
.desk-section {margin-top:24px;padding:clamp(20px,3vw,34px);background:var(--card);border:1px solid var(--line);border-radius:16px;}
.desk-section-head {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;}
.desk-section-head h2 {margin:0;font:700 1.45rem/1.1 var(--f-head);letter-spacing:-.025em;}
.desk-count {font-size:.78rem;font-weight:700;color:var(--ink-soft);background:var(--paper);border:1px solid var(--line);border-radius:50px;padding:4px 12px;}
.desk-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:18px;margin-top:18px;}
.desk-form {display:grid;gap:14px;align-content:start;padding:clamp(16px,2.5vw,22px);background:var(--paper);border:1px solid var(--line);border-radius:12px;}
.desk-form h3 {font:700 1.08rem/1.1 var(--f-head);letter-spacing:-.02em;}
.desk-form .fine {margin:-8px 0 0;}
.desk-form label {margin-bottom:6px;}
.desk-form .feature-actions {margin-top:2px;}
.desk-empty {display:grid;justify-items:center;text-align:center;gap:6px;padding:38px 18px;}
.desk-empty h3 {font:700 1.25rem/1.1 var(--f-head);}
.desk-empty p {margin:0;max-width:44ch;color:var(--ink-soft);}
.review-top {display:flex;align-items:center;justify-content:space-between;gap:10px;}
.review-item h2 {font-size:1.2rem;}
.review-item p {color:var(--ink-soft);}
.status-pill {font-size:.68rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;padding:4px 12px;border-radius:50px;border:1px solid var(--line-strong);color:var(--ink-soft);}
.status-pill.status-open {border-color:var(--warning,#87432c);color:var(--warning,#87432c);background:color-mix(in srgb,var(--warning,#87432c) 12%,transparent);}
.status-pill.status-hidden {border-color:var(--danger,#b32636);color:var(--danger,#b32636);background:color-mix(in srgb,var(--danger,#b32636) 10%,transparent);}
.status-pill.status-dismissed {opacity:.75;}
.status-pill.status-restored {border-color:var(--success,#306250);color:var(--success,#306250);background:color-mix(in srgb,var(--success,#306250) 12%,transparent);}
.desk-section .review-item {background:var(--paper);}
.desk-section .review-item blockquote {background:var(--card);}
.desk-section .roster-row {background:var(--paper);}
.admin-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:8px 0 12px;}
/* Analytics: sparkline cards, side bars, engagement pills, ranked top list. */
.analytics-panel .desk-section-head {margin-bottom:16px;}
.analytics-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:12px;}
.chart-card {display:grid;gap:4px;align-content:start;padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:12px;}
.chart-label {font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft);}
.chart-card b {font:700 1.7rem/1 var(--f-head);color:var(--ink);}
.chart-card .spark {width:100%;height:48px;margin-top:6px;}
.chart-card .spark rect {fill:currentColor;}
.chart-card small {color:var(--ink-soft);font-size:.7rem;}
.desk-sub {font:700 1.02rem/1.1 var(--f-head);letter-spacing:-.02em;margin:24px 0 10px;}
.eng-stats {display:flex;flex-wrap:wrap;gap:8px;}
.eng-stats span {background:var(--paper);border:1px solid var(--line);border-radius:50px;padding:7px 14px;font-size:.84rem;font-weight:600;}
.growth {display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;}
.growth .admin-stat {background:var(--paper);}
.side-bars {display:grid;gap:9px;max-width:560px;}
.side-bar {display:grid;grid-template-columns:22px 1fr 92px;align-items:center;gap:12px;font-size:.86rem;}
.side-bar b {font-family:var(--f-head);}
.side-track {display:block;height:10px;background:var(--card);border:1px solid var(--line);border-radius:6px;overflow:hidden;}
.side-fill {display:block;height:100%;background:var(--clay);border-radius:5px;}
.side-num small {color:var(--ink-soft);margin-left:4px;}
.top-list {display:grid;gap:8px;margin:0;padding:0 0 0 24px;counter-reset:top;}
.top-list li {padding:12px 14px;background:var(--paper);border:1px solid var(--line);border-radius:10px;}
.top-list a {font-weight:600;text-decoration:none;}
.top-list a:hover {text-decoration:underline;}
.top-list span {display:block;margin-top:2px;color:var(--ink-soft);font-size:.8rem;}
.admin-stat {padding:18px;background:var(--card);border:1px solid var(--line);border-radius:14px;display:grid;gap:2px;align-content:start;}
.admin-stat b {font:700 2rem/1 var(--f-head);letter-spacing:-.03em;}
.admin-stat span {color:var(--ink-soft);font-size:.82rem;font-weight:600;}
.admin-stat small {color:var(--success,var(--ink-soft));font-size:.74rem;}
.admin-stat.is-alert {border-color:var(--warning,#87432c);background:color-mix(in srgb,var(--warning,#87432c) 8%,var(--card));}
.admin-stat.is-alert small {color:var(--warning,#87432c);font-weight:700;}
.admin-stat.is-loading b,.admin-stat.is-loading span,.admin-stat.is-loading small {background:var(--skeleton,#e4e0d7);color:transparent;border-radius:6px;}
.roster-tools {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0 4px;}
.roster-search {flex:1 1 220px;max-width:340px;min-height:40px;}
.chip-row {display:flex;flex-wrap:wrap;gap:8px;}
.roster-count {margin-left:auto;color:var(--ink-soft);font-size:.8rem;white-space:nowrap;}
.roster-list {display:grid;gap:10px;list-style:none;padding:0;margin:14px 0 0;}
.roster-row {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:var(--paper);border:1px solid var(--line);border-radius:12px;}
.roster-row[hidden] {display:none;}
.roster-id {display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.roster-id strong {font-family:var(--f-head);font-size:1.02rem;}
.roster-id small {width:100%;color:var(--ink-soft);}
.roster-handle {color:var(--ink-soft);font-size:.85rem;}
.roster-self {font-style:italic;}
.roster-empty {margin-top:14px;color:var(--ink-soft);}
.role-badge {font-size:.7rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:3px 10px;border-radius:50px;border:1px solid var(--line-strong);color:var(--ink-soft);}
.role-badge.role-member {border-style:dashed;}
.role-badge.role-moderator {background:var(--clay-pale);border-color:var(--clay);color:var(--clay);}
.role-badge.role-admin {background:var(--butter);border-color:transparent;color:var(--ink);}
.role-badge.role-banned {background:var(--danger,#b32636);border-color:transparent;color:#fff;}
.roster-actions {display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.field--sm {min-height:38px;padding:4px 8px;width:auto;}
.announce-live {margin:14px 0;padding:14px 16px;background:var(--butter-pale);border:1px solid var(--line);border-radius:12px;}
.announce-live strong {font-family:var(--f-head);display:block;margin:4px 0;}
.announce-live p {margin:0;color:var(--ink-soft);}
.announce-live .eyebrow {color:var(--success,var(--ink));font-weight:700;}
.announce-live__age {margin:6px 0 0;font-size:.74rem;color:var(--ink-soft);}
.announce-live .btn {margin-top:12px;}
@media(max-width:600px){.roster-row{flex-direction:column;align-items:stretch;}.roster-actions{justify-content:flex-end;}.roster-count{margin-left:0;width:100%;}}
/* Tabbed admin desk: one panel per tab, so the stacked-card margin no longer applies.
   Scoped because moderation renders two sibling .desk-sections and keeps the wider gap. */
.admin-tab > .desk-section {margin-top:14px;}
.head-tools {display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.digest-list {display:grid;gap:10px;list-style:none;padding:0;margin:14px 0 0;}
.digest-list li {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:var(--paper);border:1px solid var(--line);border-radius:12px;}
.digest-list b {font-family:var(--f-head);font-size:1.15rem;margin-right:5px;}
.digest-list .fine {margin:0;}
.tabs a .tab-flag {display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--warning,#87432c);margin-left:6px;vertical-align:middle;}
.roster-more-wrap {display:flex;justify-content:center;margin-top:14px;}
[data-announce-host] {display:flex;align-items:center;gap:8px;}
[data-announce-host] strong {font-family:var(--f-head);}
@media(max-width:600px){.feature-page .tabs {gap:4px 14px;}}
.tag--advisor {background:var(--butter);border:none;font-weight:700;text-transform:capitalize;}
.notice-announce {padding:11px 14px 12px;margin:0 0 10px;background:var(--butter-pale);border:1px solid var(--line);border-radius:10px;}
.notice-announce__head {display:flex;align-items:center;justify-content:space-between;gap:10px;}
.notice-announce .notice-announce__close {width:30px;height:30px;padding:6px;margin:-6px -6px 0 0;}
.notice-announce strong {font-family:var(--f-head);display:block;margin:1px 0 4px;overflow-wrap:anywhere;}
.notice-announce p {margin:0;color:var(--ink-soft);font-size:.88rem;overflow-wrap:anywhere;}
.notice-announce__age {display:block;margin-top:7px;font-size:.74rem;color:var(--ink-soft);font-variant-numeric:tabular-nums;}

/* Phase 1 additions */
.noscript-note {padding:24px;font-family:sans-serif;}
.panel--spaced {margin-top:32px;}
.panel--spaced-sm {margin-top:28px;}
.feed-more {display:flex;justify-content:center;margin:26px 0 4px;}
.settings-card--danger {border-color:#c25a5a;}
.email-warning {font-weight:600;color:#a14a4a;}

/* A question carries at most six options, so the multi grid is made dense rather than truncated:
   Show more or a next/previous control would ask someone to choose between options they cannot all
   see. A 160px track pulls three or four columns onto ordinary laptop widths instead of two, the
   tile and result block tighten with it, and phones get two columns instead of one long stack. The
   two-option card, which is the common case, is deliberately untouched. */
@media(min-width:601px){
  .opts--multi {grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin-top:24px;}
  .opts--multi .opt, .qpage .opts--multi .opt {display:flex;flex-direction:column;gap:8px;min-height:0;padding:12px;}
  .opts--multi .opt__title, .qpage .opts--multi .opt__title {font-size:1.05rem;}
  .opts--multi .opt__note {font-size:.88rem;}
  .opts--multi .opt__tag {width:26px;height:24px;top:-13px;font-size:.85rem;}
  .opts--multi .res {gap:3px;margin-top:0;}
  .opts--multi .res__row {gap:7px;}
  .opts--multi .res__pct {font-size:1.25rem;}
  .opts--multi .res__n, .opts--multi .res__lead {font-size:.78rem;}
  .opts--multi .res__bar {height:9px;}
  /* The page column is wide, so auto-fill packs four 177px tracks and orphans the fifth and sixth
     option onto a second row. Three fixed tracks fit six options evenly and roughly double the
     photo area, which is what makes a five or six option question readable in place. The feed card
     keeps its denser auto-fill row. Source order beats the equal-specificity 1.05rem above. */
  .qpage .opts--multi {grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
  .qpage .opts--multi .opt__title {font-size:1.15rem;}
}
@media(max-width:600px){
  .opts--multi {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .opts--multi .opt {display:flex;flex-direction:column;align-items:stretch;gap:8px;min-height:0;padding:12px;}
  .opts--multi .opt__title, .qpage .opts--multi .opt__title {font-size:1.05rem;}
  .opts--multi .res {gap:3px;margin-top:0;}
  .opts--multi .res__row {gap:7px;}
  .opts--multi .res__pct {font-size:1.2rem;}
  .opts--multi .res__n, .opts--multi .res__lead {font-size:.78rem;}
  .opts--multi .res__bar {height:9px;}
}

/* ---------- compact option strip: five or six options in a narrow feed card ---------- */
.opts--strip {grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px;margin-top:24px;padding-top:12px;}
.opts--strip .opt {display:flex;flex-direction:column;align-items:stretch;gap:6px;min-height:0;padding:9px;}
.opts--strip .opt__tag {width:22px;height:20px;top:-11px;left:8px;font-size:.72rem;border-radius:3px 3px 0 0;}
.opts--strip .opt__art {aspect-ratio:auto;height:88px;}
.opts--strip .opt__art img {height:100%;aspect-ratio:auto;}
.opts--strip .opt__body {gap:2px;}
.opts--strip .opt__title {font-size:.82rem;line-height:1.25;}
.opts--strip .opt__note {display:none;}
.opts--strip .opt__badge {font-size:.68rem;padding:2px 6px;gap:.25rem;}
.opts--strip .res {gap:2px;margin-top:0;}
.opts--strip .res__row {gap:4px;}
.opts--strip .res__pct {font-size:.85rem;}
.opts--strip .res__n, .opts--strip .res__lead {display:none;}
.opts--strip .res__bar {height:5px;border-width:1px;border-radius:1px;}
.opts--strip .res__bar i {border-right-width:1px;}
/* Four desktop navigation links no longer fit at narrow tablet widths. */
@media (min-width:760px) and (max-width:840px) {
  body {padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom));}
  .top__nav,.top__actions {display:none;}
  .tabbar {display:block;}
  .top__inner {padding-block:16px;}
  .toasts {bottom:calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));}
}

/* Mandatory username step after first Google sign-in. Do not show app navigation
   until the server has accepted and returned a unique username. */
body.username-setup-required #top,
body.username-setup-required #tabbar,
body.username-setup-required #foot { display:none !important; }
body.username-setup-required #main { min-height:100svh; }
.username-onboarding {
  min-height:100svh;display:grid;place-items:center;padding:clamp(20px,5vw,60px);
  background:radial-gradient(circle at 12% 15%,var(--butter-pale) 0,transparent 44%),var(--paper);
}
.username-onboarding__card {
  width:min(100%,520px);padding:clamp(25px,5vw,52px);background:var(--card);
  border:1px solid var(--line-strong);border-radius:22px;
  box-shadow:0 24px 65px rgba(28,39,74,.08);
}
.username-onboarding__brand {
  display:inline-flex;align-items:baseline;gap:0;margin-bottom:40px;
  color:var(--ink);font:800 1.3rem/1 var(--f-head);letter-spacing:-.06em;text-decoration:none;
}
.username-onboarding__brand span {font-weight:600;letter-spacing:-.08em;}
.username-onboarding__brand i {font:italic 1.5rem var(--f-serif);margin-left:3px;color:var(--ink-soft);}
.username-onboarding .eyebrow {display:block;margin-bottom:12px;}
.username-onboarding h1 {max-width:12ch;font:800 clamp(2rem,5vw,3.05rem)/1.08 var(--f-head);letter-spacing:-.055em;}
.username-onboarding__lede {margin:16px 0 32px;line-height:1.6;color:var(--ink-soft);font-size:.96rem;}
.username-onboarding__form {display:grid;gap:11px;}
.username-onboarding__form label {font-size:.88rem;font-weight:700;}
.username-onboarding__input {display:flex;align-items:center;border:1.5px solid var(--line-strong);border-radius:11px;background:var(--paper);overflow:hidden;}
.username-onboarding__input:focus-within {border-color:var(--ink);outline:2px solid var(--butter);outline-offset:2px;}
.username-onboarding__input>span {padding-left:18px;color:var(--ink-soft);font-size:1.2rem;font-weight:700;}
.username-onboarding__input .field {width:100%;min-width:0;border:0;box-shadow:none!important;background:transparent;font-weight:600;font-size:1.05rem;padding:16px 14px 16px 6px;}
.username-onboarding__input .field:focus {outline:0;}
.username-onboarding__form .fine {margin:0;line-height:1.5;}
.username-onboarding__error {margin:4px 0 0;}
.username-onboarding__submit {margin-top:16px;width:100%;min-height:50px;justify-content:center;gap:10px;}
.username-onboarding__end {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:25px;border-top:1px solid var(--line);padding-top:21px;}
.username-onboarding__end span {flex:1 1 220px;color:var(--ink-soft);font-size:.77rem;line-height:1.6;}
.username-onboarding__end .link {font-size:.82rem;}
@media(max-width:520px) {
  .username-onboarding {padding:18px;align-items:center;}
  .username-onboarding__card {padding:29px 23px;border-radius:16px;}
  .username-onboarding__brand {margin-bottom:28px;}
}

/* ---------- short home-feed cards: preserve the original two-column desk ----------
   Two-option questions remain full interactive A/B comparisons. Questions with
   3–6 options are previews; complete voting/results stay on their question page.
   Decided questions show the author's final pick rather than six result panels. */
.feed { gap: 24px 24px; }
.feed > :nth-child(even):not(.span2):not(.invite) { margin-top: 0; }
.qcard--preview { padding: clamp(16px, 2vw, 23px); }
.qcard--preview .qmeta { margin-bottom: 9px; }
.qcard--preview .qcard__q { font-size: clamp(1.25rem, 2vw, 1.75rem); max-width: 42ch; }
.qcard--feature.qcard--preview .qcard__q { font-size: clamp(1.5rem, 2.5vw, 2.15rem); }
.qcard--preview .qcard__foot { margin-top: 14px; padding-top: 10px; }

/* Six choices fit in two tidy rows, even inside a half-width card. */
.feed-gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 10px; margin-top: 19px;
}
.feed-choice { display: block; min-width: 0; color: var(--ink); text-decoration: none; }
.feed-choice__photo {
  position: relative; display: block; height: clamp(68px, 8vw, 105px);
  overflow: hidden; border: 1px solid var(--line-strong);
  border-radius: var(--r); background: var(--paper);
  transition: border-color .15s, transform .15s;
}
.feed-choice:hover .feed-choice__photo,
.feed-choice:focus-visible .feed-choice__photo { border-color: var(--ink); transform: translateY(-2px); }
.feed-choice__photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.feed-choice__letter {
  position: absolute; left: 0; top: 0; display: grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 3px; background: var(--butter);
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  font: 800 .73rem/1 var(--f-head);
}
.feed-choice--b .feed-choice__letter { background: var(--clay); }
.feed-choice__name {
  display: block; margin-top: 5px; color: var(--ink); font: 650 .79rem/1.25 var(--f-body);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feed-preview__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 9px 12px; margin-top: 16px;
}
.feed-preview__hint { font-size: .78rem; color: var(--ink-soft); }
.feed-preview__go, .feed-final__go {
  display: inline-flex; align-items: center; gap: 5px; min-height: 38px;
  padding: 7px 11px; background: var(--butter); border: 1px solid var(--ink);
  border-radius: var(--r); font-size: .83rem; font-weight: 800; text-decoration: none;
  white-space: nowrap;
}
.feed-preview__go:hover, .feed-final__go:hover { background: var(--ink); color: var(--card); }

/* A decision belongs to its author, not necessarily to the most-voted option.
   Never synthesize a "100% winner" statistic for a final pick. */
.feed-final { display: grid; grid-template-columns: minmax(90px, 38%) minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 17px; }
.feed-final__photo { display: block; padding: 7px; background: var(--butter-pale); border: 1px solid var(--line-strong); border-radius: var(--r); }
.feed-final__photo img { display: block; width: 100%; height: clamp(98px, 11vw, 152px); object-fit: contain; }
.feed-final__details { display: grid; justify-items: start; align-content: center; gap: 7px; min-width: 0; }
.feed-final__eyebrow { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .015em; }
.feed-final__eyebrow .ic { width: 15px; height: 15px; stroke-width: 3; }
.feed-final__name { font: 800 clamp(1.1rem, 1.9vw, 1.55rem)/1.14 var(--f-head); letter-spacing: -.025em; overflow-wrap: anywhere; }
.feed-final__count { color: var(--ink-soft); font-size: .79rem; }
.feed-final__go { margin-top: 3px; }
.feed-final__others { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.feed-final__others-label { color: var(--ink-soft); font-size: .75rem; }
.feed-final__thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.feed-final__thumb { position: relative; display: block; width: 38px; height: 38px; border: 1px solid var(--line-strong); background: var(--paper); }
.feed-final__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.feed-final__thumb > span { position: absolute; bottom: 0; right: 0; padding: 0 3px; background: var(--card); font: 800 .58rem/1.2 var(--f-head); }

@media (max-width: 600px) {
  .feed { gap: 22px; }
  .feed-gallery { gap: 10px 8px; }
  .feed-choice__photo { height: clamp(70px, 20vw, 108px); }
  .feed-final__photo img { height: clamp(95px, 28vw, 140px); }
  .feed-final__name { font-size: clamp(1.05rem, 4.5vw, 1.35rem); }
}
@media (max-width: 355px) {
  .feed-final { grid-template-columns: minmax(82px, 35%) minmax(0, 1fr); gap: 10px; }
  .feed-preview__go, .feed-final__go { font-size: .76rem; padding-inline: 8px; }
  .feed-final__eyebrow { font-size: .66rem; }
}

/* Mobile finishing pass: identity shares the avatar row; numbers never break labels. */
@media(max-width:620px) {
  .member-hero__top {display:grid;grid-template-columns:88px minmax(0,1fr);column-gap:14px;row-gap:13px;align-items:end;}
  .member-avatar-wrap {grid-column:1;grid-row:1;}
  .member-hero__intro {grid-column:2;grid-row:1;min-width:0;align-self:end;flex:none;padding:0 0 2px;}
  .member-hero__intro .eyebrow {font-size:.55rem;letter-spacing:.065em;}
  .member-hero__intro .eyebrow::after {width:18px;margin-left:5px;height:3px;}
  .member-hero h1 {font-size:clamp(1.65rem,7.3vw,2.2rem);margin:4px 0 3px;}
  .member-handle {font-size:.75rem;}
  .member-hero__actions {grid-column:1/-1;grid-row:2;justify-content:flex-start;flex-basis:auto;}
  .member-stat {display:grid;grid-template-columns:25px minmax(0,1fr);grid-template-rows:25px auto;gap:4px 4px;justify-content:center;align-content:center;justify-items:center;padding:9px 5px;}
  .member-stat:nth-child(n+4) {justify-content:center;}
  .member-stat__icon {grid-column:1;grid-row:1;}
  .member-stat__copy {display:contents;}
  .member-stat strong {grid-column:2;grid-row:1;justify-self:start;line-height:1;}
  .member-stat__copy>span {grid-column:1/-1;grid-row:2;font-size:.52rem;letter-spacing:.015em;white-space:nowrap;text-align:center;}
}

/* Official member verification: an unobtrusive, optically aligned gold seal.
   The small byline version follows the same design on every color theme. */
.verified-star {
  --verified-gold:#F5D05A;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:16px;
  height:16px;
  line-height:0;
  vertical-align:-.08em;
  border-radius:50%;
  color:var(--verified-gold);
}
.verified-star svg {display:block;width:100%;height:100%;overflow:visible;}
/* Align the seal with the cap-height of the large name, not its baseline.
   No oversized sticker, shadow or extra badge label in the heading. */
.member-hero h1 .verified-star--hero {
  width:22px;
  height:22px;
  margin-left:8px;
  vertical-align:.15em;
  white-space:nowrap;
  transform:none;
  filter:none;
}
.byline .verified-star {width:15px;height:15px;margin-left:0;}
.people-row__name .verified-star {width:16px;height:16px;margin-left:4px;}
.member-avatar__star {pointer-events:none;}
@media(max-width:620px) {
  .member-hero h1 .verified-star--hero {width:19px;height:19px;margin-left:6px;vertical-align:.12em;}
}
/* The avatar's verified star shares the unmistakable gold mark in dark mode too. */
.member-avatar__star {
  color:#F5D05A;
  -webkit-text-stroke:3px var(--card);
  text-shadow:2px 3px 0 #23335D;
}
@media(max-width:620px) {.member-avatar__star {-webkit-text-stroke-width:2.5px;}}

/* Mobile profile layout: preserve the desktop scrapbook art and visual identity.
   Only rearrange content below 621px so names, actions, stats, and the fixed
   navigation remain comfortable on actual phones. Desktop stays unchanged. */
@media (max-width: 620px) {
  .profile-page {
    padding-top: 17px;
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 44px);
  }
  .member-crumb { gap: 10px; margin-bottom: 16px; }
  .member-hero__banner {
    height: 148px;
    background-position: center center;
    border-radius: 14px 14px 0 0;
  }
  .member-banner__label {
    max-width: calc(100% - 36px);
    padding: 9px 13px 10px;
    font-size: clamp(1.1rem, 4.3vw, 1.32rem);
  }
  .member-banner__label > span { font-size: .49em; margin-left: 4px; }
  .member-hero__content { padding: 0 17px 23px; }
  .member-hero__top {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: end;
    gap: 13px 14px;
    margin-top: -31px;
  }
  .member-avatar-wrap { grid-column: 1; grid-row: 1; }
  .member-avatar { width: 88px; height: 88px; }
  .member-hero__intro {
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 3px;
    align-self: end;
    min-width: 0;
  }
  .member-hero__intro .eyebrow { font-size: .57rem; letter-spacing: .065em; }
  .member-hero__intro .eyebrow::after { width: 18px; margin-left: 5px; }
  .member-hero h1 { margin: 5px 0 3px; font-size: clamp(1.7rem, 6.3vw, 2.1rem); }
  .member-handle { font-size: .81rem; overflow-wrap: anywhere; }
  .member-hero__actions {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .member-hero__actions > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 10px;
    font-size: .8rem;
    white-space: nowrap;
  }
  .member-hero__details { gap: 10px; margin: 18px 0 21px; min-height: 0; }
  .member-bio { font-size: .91rem; line-height: 1.5; }
  .member-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding-top: 24px;
  }
  .member-stat,
  .member-stat:nth-child(n+4) {
    grid-column: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-width: 0;
    min-height: 72px;
    padding: 11px 10px;
    border-radius: 12px;
  }
  .member-stat:last-child {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 62px;
  }
  .member-stat__icon { flex: 0 0 25px; width: 25px; height: 25px; }
  .member-stat__icon .ic { width: 24px; height: 24px; }
  .member-stat__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .member-stat strong { font-size: 1.48rem; line-height: 1; }
  .member-stat__copy > span {
    font-size: .59rem;
    letter-spacing: .035em;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
    overflow-wrap: normal;
  }
  .member-layout { margin-top: 31px; }
}
@media (max-width: 360px) {
  .member-hero__actions > .btn { gap: 5px; padding-inline: 7px; font-size: .75rem; }
  .member-stat { padding-inline: 8px; gap: 7px; }
  .member-stat__copy > span { font-size: .57rem; letter-spacing: .015em; }
}

/* Mobile scrapbook composition fix (2026-11-06).
   Preserve every desktop rule and the original artwork. The large landscape
   SVG is deliberately cropped on phones; bring its question doodle back as a
   matching monochrome mask, scaled for each theme. */
@media (max-width: 620px) {
  .member-hero__banner {
    height: 155px;
    background-position: 51% center;
  }
  /* Make the paper title and both pieces of tape proportional on narrow screens. */
  .member-banner__label {
    max-width: calc(100% - 102px);
    padding: 9px 12px 10px;
    font-size: clamp(1.12rem, 4.25vw, 1.31rem);
    transform: translate(-13px, -9px) rotate(-2deg);
  }
  .member-banner__label > span { font-size: .52em; margin-left: 4px; }
  .member-banner__label::before,
  .member-banner__label::after {
    top: -5px;
    width: 24px;
    height: 9px;
    opacity: .7;
  }
  .member-banner__label::before { left: 10px; transform: rotate(-14deg); }
  .member-banner__label::after { right: 12px; transform: rotate(13deg); }
  /* A crisp question doodle in the same ink as this theme's banner art. */
  .member-banner__symbol {
    display: block;
    opacity: .9;
    right: 12px;
    top: 32px;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--ink-soft);
    font-size: 0;
    line-height: 0;
    transform: rotate(8deg);
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M17%2024Q40%206%2069%2025Q90%2038%2080%2065Q69%2082%2042%2076L21%2088L25%2065Q8%2048%2017%2024Z%22%2F%3E%3Cpath%20d%3D%22M36%2033Q40%2025%2047%2028Q56%2030%2052%2038Q49%2043%2046%2046V51%22%2F%3E%3Ccircle%20cx%3D%2246%22%20cy%3D%2260%22%20r%3D%221.6%22%20fill%3D%22%23000%22%2F%3E%3Cpath%20d%3D%22M63%2034Q68%2028%2072%2033Q76%2037%2071%2042%22%2F%3E%3Cpath%20d%3D%22M69%2049v1%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M17%2024Q40%206%2069%2025Q90%2038%2080%2065Q69%2082%2042%2076L21%2088L25%2065Q8%2048%2017%2024Z%22%2F%3E%3Cpath%20d%3D%22M36%2033Q40%2025%2047%2028Q56%2030%2052%2038Q49%2043%2046%2046V51%22%2F%3E%3Ccircle%20cx%3D%2246%22%20cy%3D%2260%22%20r%3D%221.6%22%20fill%3D%22%23000%22%2F%3E%3Cpath%20d%3D%22M63%2034Q68%2028%2072%2033Q76%2037%2071%2042%22%2F%3E%3Cpath%20d%3D%22M69%2049v1%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / contain no-repeat;
  }
  /* Set the identity on the paper below the tear, not across the tear. */
  .member-hero__top { row-gap: 17px; margin-top: -31px; }
  .member-hero__intro {
    align-self: start;
    margin-top: 39px;
    padding: 0 0 3px;
  }
  .member-hero__intro .eyebrow { line-height: 1.25; }
  .member-hero__actions { margin-top: 0; }
}
@media (max-width: 360px) {
  .member-banner__label { max-width: calc(100% - 79px); font-size: 1.04rem; transform: translate(-14px, -9px) rotate(-2deg); }
  .member-banner__symbol { display: block; right: 5px; top: 32px; width: 45px; height: 45px; }
  .member-banner__label::before,
  .member-banner__label::after { width: 21px; height: 8px; }
  .member-hero__intro { margin-top: 38px; }
}

/* Text polls — the same A/B paper cards without requiring a decorative image.
   Theme tokens stay authoritative for Ink Blue, Forest, Plum and Rose in both modes. */
.ask-mode { border: 0; padding: 0; min-width: 0; }
.ask-mode__choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ask-mode__choice { display: grid; grid-template-columns: 24px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left;
  min-width: 0; padding: 14px 16px; background: var(--card); color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: 8px; }
.ask-mode__choice .ic { grid-row: 1/3; width: 22px; height: 22px; }
.ask-mode__choice strong { font: 750 1rem/1.3 var(--f-head); }
.ask-mode__choice span { color: var(--ink-soft); font-size: .8rem; }
.ask-mode__choice.is-active { background: var(--butter-pale); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.ask-mode__choice:hover { border-color: var(--ink); }
.pair--text .optpane { padding: 22px 18px 18px; }
.pair--text .optpane input.field { min-height: 52px; }
.pair--text .optpane .form__meta { margin-bottom: 0; }

.opts--text .opt { justify-content: center; min-height: 136px; padding: 24px 18px 16px; background: var(--butter-pale); }
.opts--text .opt--b, .opts--text .opt--d, .opts--text .opt--f { background: var(--clay-pale); }
.opts--text .opt__body { align-content: center; min-height: 54px; }
.opts--text .opt__title { font-size: clamp(1.05rem, 2vw, 1.45rem); line-height: 1.22; overflow-wrap: anywhere; }
.opts--text .opt.is-picked, .opts--text .opt.is-final { background: var(--card); }
.opts--text .opt__badge { margin-top: 4px; }
.opts--text .res { width: 100%; }
@media (max-width: 600px) {
  .ask-mode__choice { padding: 12px 10px; grid-template-columns: 20px 1fr; column-gap: 8px; }
  .ask-mode__choice strong { font-size: .9rem; }
  .ask-mode__choice span { font-size: .72rem; }
  .pair--text .optpane { display: block; }
  .opts--text .opt { min-height: 132px; padding: 22px 12px 12px; }
  .opts--text .opt__title { font-size: 1.05rem; }
}
/* Photo options use a narrow thumbnail track on mobile. Text-only options have
   no thumbnail: keep their titles and descriptions on the full card width. */
@media (max-width: 759px) {
  .opts--text .opt {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .opts--text .opt__body {
    width: 100%;
    min-width: 0;
  }
}
.feed-choice__photo--text { display: flex; justify-content: center; align-items: center; padding: 24px 9px 10px; background: var(--butter-pale); }
.feed-choice--b .feed-choice__photo--text,
.feed-choice--d .feed-choice__photo--text,
.feed-choice--f .feed-choice__photo--text { background: var(--clay-pale); }
.feed-choice__text { color: var(--ink); font: 750 clamp(.85rem, 1.6vw, 1.2rem)/1.18 var(--f-head); text-align: center; overflow-wrap: anywhere; }
.feed-final__photo:has(.feed-final__word) { min-height: 110px; display: grid; place-items: center; background: var(--butter-pale); text-decoration: none; }
.feed-final__word { font: 800 clamp(1rem,2.3vw,1.65rem)/1.18 var(--f-head); color: var(--ink); text-align: center; overflow-wrap: anywhere; }
.feed-final__thumb-text { display: grid; place-items: center; width: 100%; height: 100%; background: var(--butter-pale); color: var(--ink); font: 800 .9rem var(--f-head); }
.preview-pair--text { grid-template-columns: repeat(2,minmax(0,1fr)); }
.preview-text-choice { display: grid; gap: 12px; min-height: 140px; align-content: center; padding: 22px; background: var(--butter-pale); border: 1.5px solid var(--line-strong); border-radius: 6px; }
.preview-pair--text figure:nth-child(even) .preview-text-choice { background: var(--clay-pale); border-style: dashed; }
.preview-text-choice span { font: 800 .75rem var(--f-body); letter-spacing: .08em; }
.preview-text-choice strong { font: 800 clamp(1.15rem,2.3vw,1.55rem)/1.2 var(--f-head); overflow-wrap: anywhere; }
.preview-missing-photo { display: grid; place-items: center; min-height: 160px; border: 1px dashed var(--line-strong); background: var(--paper); }
@media(max-width:420px) { .preview-pair--text { gap: 10px; } .preview-text-choice { padding: 14px 10px; } }

/* Optional per-option descriptions — same text hierarchy in all color themes. */
.optpane__note-label { display: block; margin-top: 14px; }
.optpane__note { width: 100%; min-height: 72px; line-height: 1.45; resize: vertical; }
.opt__note, .preview-text-choice__note, .preview-photo-note, .feed-final__note { white-space: pre-line; overflow-wrap: anywhere; }
.preview-text-choice__note { color: var(--ink-soft); font: 400 .91rem/1.4 var(--f-body); }
.preview-photo-note { display: block; color: var(--ink-soft); font-size: .88rem; line-height: 1.4; margin-top: 5px; }
.feed-final__note { display: block; color: var(--ink-soft); font-size: .87rem; line-height: 1.42; }
.opts--text .opt__note { font-size: .89rem; line-height: 1.42; }
@media (max-width: 420px) {
  .preview-text-choice__note { font-size: .8rem; }
  .optpane__note-label { margin-top: 12px; }
}


/* A formerly full-width editorial card can occupy a normal lane if a
   preceding vote makes the other lane much taller. This avoids empty gutters. */
.feed .span2--single .qcard--wide .qcard__q {
  max-width: 24ch;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
}
/* Compact question feed: true masonry only above the mobile breakpoint.
   The ordinary grid remains the no-JavaScript fallback and the phone layout. */
@media (min-width: 760px) {
  .feed.feed--masonry { display: block; position: relative; }
  .feed.feed--masonry > * { position: absolute; margin: 0 !important; }
}

/* The Afterword: one quiet editorial chapter following a final pick. */
.afterword {
  margin: 0 0 32px;
  padding: clamp(18px,3.5vw,32px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--card);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.afterword__head,.afterword__foot {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;}
.afterword__eyebrow {font-size:.75rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase;}
.afterword__date,.afterword__foot {font-size:.78rem;color:var(--ink-soft);}
.afterword h2 {font:700 clamp(1.45rem,3vw,2rem)/1.15 var(--f-head);letter-spacing:-.035em;margin:12px 0 16px;}
.afterword__story {font:400 clamp(1.06rem,2vw,1.3rem)/1.6 var(--f-serif);white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 22px;}
.afterword__foot {border-top:1px solid var(--line);padding-top:12px;}
.afterword__edit {background:transparent;border:0;border-bottom:1px solid currentColor;padding:4px 0;font:inherit;font-weight:700;color:var(--ink);cursor:pointer;}
.afterword__edit:focus-visible {outline:2px solid var(--ink);outline-offset:4px;}
.tag--story {background:var(--card);color:var(--ink);border:1px solid var(--line);}
.row__afterword {margin-top:9px;line-height:1.5;color:var(--ink-soft);font-size:.87rem;overflow-wrap:anywhere;}
.row__afterword strong {color:var(--ink);}
@media(max-width:600px){.afterword{margin-bottom:22px;padding:18px;}.afterword__head{align-items:flex-start;}.afterword__story{line-height:1.5;}}

.qpage__main > .afterword {margin-top:40px;}
@media(max-width:600px){.qpage__main > .afterword{margin-top:26px;}}

/* ---------- mandatory community rules / first-login onboarding ---------- */
body.rules-setup-required #top,
body.rules-setup-required #tabbar,
body.rules-setup-required #foot {display:none!important;}
body.rules-setup-required #main {min-height:100svh;}
.rules-onboarding {min-height:100svh;display:grid;place-items:center;padding:clamp(14px,4vw,45px);background:var(--paper);color:var(--ink);}
.rules-onboarding__card {width:min(100%,800px);padding:clamp(22px,4vw,40px);border-radius:18px;border:1px solid var(--line-strong);background:var(--card);box-shadow:0 14px 44px rgba(16,22,48,.07);}
.rules-onboarding__intro {max-width:68ch;margin-bottom:22px;}
.rules-onboarding__brand {display:block;margin-bottom:22px;font:800 1.1rem var(--f-head);letter-spacing:-.055em;}
.rules-onboarding__brand em {font:italic 1.45rem var(--f-serif);}
.rules-onboarding__intro .eyebrow {display:block;margin-bottom:10px;color:var(--ink-soft);font-size:.72rem;letter-spacing:.12em;}
.rules-onboarding__intro h1 {font:800 clamp(1.8rem,4vw,2.7rem)/1.1 var(--f-head);letter-spacing:-.045em;max-width:18ch;margin-bottom:11px;}
.rules-onboarding__intro p {color:var(--ink-soft);font-size:.95rem;line-height:1.55;}
.rules-onboarding__document {border:1px solid var(--line-strong);border-radius:12px;overflow:hidden;background:var(--paper);}
.rules-onboarding__document-head {display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:13px 18px;border-bottom:1px solid var(--line);font-size:.85rem;}
.rules-onboarding__document-head span {color:var(--ink-soft);font-size:.74rem;}
.rules-onboarding__scroll {height:clamp(185px,33vh,300px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px 20px;outline-offset:-4px;}
.rules-onboarding__scroll:focus-visible {outline:3px solid var(--ink);}
.rules-list {padding:0;margin:0;list-style:none;}
.rules-item {display:flex;gap:15px;padding:16px 0;border-bottom:1px solid var(--line);}
.rules-item__number {flex:0 0 28px;padding-top:2px;font:800 .82rem var(--f-head);color:var(--ink-soft);}
.rules-item h2 {font:800 .96rem/1.28 var(--f-head);margin:0 0 5px;}
.rules-item p {margin:0;color:var(--ink-soft);font-size:.86rem;line-height:1.55;}
.rules-onboarding__last {margin:0;padding:18px 0 22px;font-size:.85rem;line-height:1.5;color:var(--ink-soft);}
.rules-onboarding__progress {display:flex;align-items:center;gap:13px;justify-content:space-between;padding:12px 18px;border-top:1px solid var(--line);font-size:.73rem;color:var(--ink-soft);}
.rules-onboarding__track {height:5px;width:86px;flex:0 0 86px;border-radius:20px;background:var(--line);overflow:hidden;}
.rules-onboarding__track>span {display:block;height:100%;width:0;background:var(--ink);transition:width .2s ease;}
.rules-onboarding__form {display:grid;gap:10px;margin-top:18px;}
.rules-onboarding__check {display:flex;align-items:flex-start;gap:12px;font-size:.84rem;line-height:1.45;cursor:pointer;}
.rules-onboarding__check input {margin:3px 0 0;flex:0 0 17px;width:17px;height:17px;accent-color:var(--ink);}
.rules-onboarding__check:has(input:disabled) {opacity:.55;cursor:not-allowed;}
.rules-onboarding__accept {min-height:48px;width:100%;justify-content:center;margin-top:10px;}
.rules-onboarding__accept:disabled {opacity:.5;cursor:not-allowed;}
.rules-onboarding__footer {display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:21px;padding-top:16px;font-size:.79rem;color:var(--ink-soft);}
.rules-onboarding__footer a {text-decoration:underline;text-underline-offset:3px;color:var(--ink);}
.rules-onboarding__alert {padding:22px;border:1px solid var(--line-strong);border-radius:12px;line-height:1.6;}
@media(max-width:520px) {
 .rules-onboarding {padding:12px;align-items:start;}
 .rules-onboarding__card {padding:22px 17px;border-radius:14px;}
 .rules-onboarding__brand {margin-bottom:18px;}
 .rules-onboarding__scroll {height:clamp(200px,31vh,300px);padding-inline:14px;}
 .rules-onboarding__progress {align-items:start;flex-direction:column;padding:10px 13px;gap:7px;}
 .rules-onboarding__track {width:100%;flex:auto;}
 .rules-onboarding__document-head {padding:11px 13px;}
 .rules-item {gap:10px;padding:13px 0;}
}
@media(prefers-reduced-motion:reduce){.rules-onboarding__track>span{transition:none;}}

/* EXPERT CREDENTIALS / STUDIO EDITION
   Illustration-led paper credentials, not imported icons. Reserved motion,
   original ink marks and a quiet field-note on hover, focus or tap.
   Public approval still comes entirely from the existing backend. */
/* MINIATURE EXPERT STAMPS / A quiet row of seven hand-inked marks.
   Only the illustration is visible; existing field notes appear on hover/focus
   (and tap on touch screens). The full label stays in the accessible markup. */
.expert-badge{
 --expert-accent:#2d5fb0;--e1:#5b8ee0;--e2:#2d5fb0;--e3:#17356b;--sw:2.2;--rim:2.6px;--mark:21px;
 --mx:36%;--my:20%;
 display:inline-grid;place-items:center;position:relative;isolation:isolate;
 flex:0 0 auto;width:32px;height:32px;min-width:32px;min-height:32px;
 padding:0;margin:0;border:0;border-radius:50%;
 color:#fff4d6;vertical-align:middle;
 cursor:pointer;outline-offset:3px;touch-action:manipulation;
 -webkit-tap-highlight-color:transparent;
 /* polished gold rim, lit from the upper left */
 background:conic-gradient(from 205deg,#fdeeb4,#d9a73c 14%,#8c5f14 30%,#e9c565 46%,#fff3c4 55%,#c18b27 74%,#7d5410 88%,#fdeeb4);
 box-shadow:inset 0 0 0 .6px rgba(84,50,4,.75),inset 0 1px 0 rgba(255,255,255,.55);
 filter:drop-shadow(0 2px 1.6px rgba(30,18,0,.4)) drop-shadow(0 .5px 0 rgba(30,18,0,.35));
 transition:transform .18s cubic-bezier(.2,.8,.2,1),filter .2s ease;
}
.expert-badge[data-expert-topic="technology"]{--expert-accent:#2d5fb0;--e1:#5b8ee0;--e2:#2d5fb0;--e3:#17356b}
.expert-badge[data-expert-topic="style"]{--expert-accent:#9a3d86;--e1:#cf6cba;--e2:#9a3d86;--e3:#571b4b}
.expert-badge[data-expert-topic="fitness"]{--expert-accent:#1f8a63;--e1:#4fc294;--e2:#1f8a63;--e3:#0d4a34}
.expert-badge[data-expert-topic="relationship"]{--expert-accent:#c8383f;--e1:#f0707a;--e2:#c8383f;--e3:#761519}
.expert-badge[data-expert-topic="education"]{--expert-accent:#5a4fb8;--e1:#8e85e6;--e2:#5a4fb8;--e3:#2e2778}
.expert-badge[data-expert-topic="food"]{--expert-accent:#d98a1f;--e1:#f5b852;--e2:#d98a1f;--e3:#8a4d06}
.expert-badge[data-expert-topic="design"]{--expert-accent:#1f98a8;--e1:#55cfdc;--e2:#1f98a8;--e3:#0c5560}
/* Clear epoxy dome: one soft highlight that follows the pointer, plus a faint
   top-to-bottom falloff across rim and enamel together. */
.expert-badge::after{
 content:"";position:absolute;inset:0;z-index:3;border-radius:50%;pointer-events:none;
 background:
  radial-gradient(ellipse 62% 40% at var(--mx) var(--my),rgba(255,255,255,.6),rgba(255,255,255,0) 72%),
  linear-gradient(160deg,rgba(255,255,255,.2) 0%,rgba(255,255,255,0) 46%,rgba(0,0,0,.2) 100%);
}
/* Light sweep that crosses the pin on hover. */
.expert-badge::before{
 content:"";position:absolute;inset:0;z-index:4;border-radius:50%;pointer-events:none;
 background:linear-gradient(112deg,transparent 36%,rgba(255,255,255,.85) 50%,transparent 64%) 170% 0/260% 100% no-repeat;
 transition:background-position 0s;
}
/* The enamel: recessed below the metal, deepest at the lower edge. */
.expert-badge__emblem{
 display:grid;place-items:center;position:relative;
 width:calc(100% - var(--rim) * 2);height:calc(100% - var(--rim) * 2);min-width:0;margin:0;padding:0;
 border:0;border-radius:50%;color:inherit;
 background:radial-gradient(circle at 34% 26%,var(--e1) 0%,var(--e2) 46%,var(--e3) 100%);
 box-shadow:inset 0 1px 2px rgba(0,0,0,.55),inset 0 -1px 1px rgba(255,255,255,.18),0 .5px 0 rgba(255,255,255,.4);
 transition:none;
}
.expert-badge__emblem::before{display:none}
/* Raised ivory drawing with gold detail; stroke is tuned per size. */
.expert-mark{display:block;position:relative;width:var(--mark);height:var(--mark);overflow:visible;
 stroke-width:var(--sw);
 filter:drop-shadow(0 .7px 0 rgba(0,0,0,.5)) drop-shadow(0 0 1.2px rgba(255,240,190,.35));
 transition:none}
.expert-mark *{stroke-width:var(--sw)}
.expert-mark .expert-mark__accent{stroke:#ffd36b}
.expert-mark circle.expert-mark__accent{fill:#ffd36b}
/* Description, numbered folio and hanging ribbon are deliberately hidden
   on both profile and discussion badges; text remains available to AT. */
.expert-badge__copy,.expert-badge__folio,.expert-badge__ribbon{display:none!important}
.expert-badge:focus-visible{outline:2px solid var(--ink)}
.expert-badge[aria-expanded="true"]{
 filter:drop-shadow(0 2px 1.6px rgba(30,18,0,.4)) drop-shadow(0 0 4px var(--expert-accent)) drop-shadow(0 0 1.5px var(--e1));
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .expert-badge:hover{
  transform:translateY(-2px) scale(1.1);
  filter:drop-shadow(0 4px 2.4px rgba(30,18,0,.38)) drop-shadow(0 .5px 0 rgba(30,18,0,.35));
 }
 .expert-badge:hover::before{background-position:-70% 0;transition:background-position .75s cubic-bezier(.3,.6,.2,1)}
}
/* In the feed a smaller field mark does not alter the author's byline height. */
.expert-badge--small{
 --sw:3.3;--rim:2px;--mark:15px;
 width:22px;height:22px;min-width:22px;min-height:22px;margin:0 1px 0 3px;
 filter:drop-shadow(0 1.2px 1px rgba(30,18,0,.4));
}
.expert-badge--small .expert-mark{filter:drop-shadow(0 .5px 0 rgba(0,0,0,.5))}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .expert-badge--small:hover{filter:drop-shadow(0 2.5px 1.6px rgba(30,18,0,.38))}
}
.expert-profile-badges{display:flex;align-items:center;flex-wrap:wrap;gap:9px;
 margin-top:10px;padding:2px 3px 7px 0}
.expert-profile-badges[hidden]{display:none}
.byline-slot{display:inline}
.byline-wrap{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}
.byline--identity{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}
.byline__link{display:inline-flex;align-items:center;gap:4px;color:inherit;text-decoration:none}
.byline--identity:hover .byline__name{text-decoration:underline;text-underline-offset:2px}
.byline .expert-badge{flex-shrink:0}
/* A floating field note. Unlike CSS pseudo tooltips it cannot be clipped by
   masonry cards, profile panels or the mobile overflow container. */
.expert-note{
 position:fixed;z-index:12000;width:min(292px,calc(100vw - 24px));
 padding:15px 17px 13px;background:var(--card);color:var(--ink);
 border:1px solid var(--line-strong);border-radius:4px 10px 5px 10px;
 box-shadow:3px 3px 0 var(--butter),6px 7px 0 var(--line),0 12px 30px rgba(0,0,0,.14);
 font:400 13px/1.45 var(--f-body);
 animation:expert-note-in .16s ease-out both;
}
.expert-note[hidden]{display:none}
.expert-note::before{content:"";position:absolute;left:17px;top:-5px;width:24px;height:8px;transform:rotate(-9deg);background:var(--butter);opacity:.85}
.expert-note__meta{display:flex;justify-content:space-between;gap:8px;align-items:center;color:var(--ink-soft);font:750 9px/1.2 var(--f-body);letter-spacing:.075em;text-transform:uppercase;border-bottom:1px dashed var(--line-strong);padding-bottom:9px}
.expert-note__head{display:flex;align-items:baseline;gap:6px;justify-content:space-between;margin:12px 0 5px}
.expert-note__head strong{font:800 16px/1.2 var(--f-head);letter-spacing:-.025em}
.expert-note__stamp{font:750 9px/1.2 var(--f-body);color:var(--ink);padding:3px 5px;background:var(--butter-pale);border:1px solid var(--line-strong);transform:rotate(-3deg)}
.expert-note p{font-size:12px;line-height:1.55;margin:0 0 12px;color:var(--ink)}
.expert-note__foot{padding-top:9px;border-top:1px solid var(--line);font:500 11px/1.45 var(--f-body);color:var(--ink-soft)}
@keyframes expert-note-in{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
/* Dark: metal and enamel do not change; the shadow just needs more weight to separate. */
:root[data-mode="dark"] .expert-badge:not(:hover){filter:drop-shadow(0 2px 2px rgba(0,0,0,.7))}
:root[data-mode="dark"] .expert-note{box-shadow:3px 3px 0 var(--paper),6px 7px 0 var(--line),0 15px 30px rgba(0,0,0,.24)}
@media(max-width:480px){
 .expert-badge:not(.expert-badge--small){width:30px;height:30px;min-width:30px;min-height:30px;--mark:19.5px}
 .expert-profile-badges{gap:8px;padding-bottom:7px}
}
@media(prefers-reduced-motion:reduce){
 .expert-badge,.expert-badge__emblem,.expert-mark{transition:none!important;transform:none!important}
 .expert-note{animation:none!important}
}

.expert-intro{font-size:13px;line-height:1.5;color:var(--ink-soft);max-width:65ch}
.expert-applications{list-style:none;padding:0;display:grid;gap:7px;margin:0 0 15px}
.expert-application{border-left:2px solid var(--line-strong);padding:7px 12px;background:var(--paper);min-width:0}
.expert-application>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.expert-application p{margin:6px 0 0;font-size:12px;overflow-wrap:anywhere}
.expert-status{font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-soft);border:1px solid var(--line-strong);border-radius:3px;padding:3px 6px}
.expert-status--approved{background:var(--butter-pale);color:var(--ink)}
.expert-status--pending{border-style:dashed}
.expert-apply{border-top:1px solid var(--line);margin-top:12px;padding-top:13px}.expert-apply>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;font-weight:750;font-size:14px;list-style:none}
.expert-apply>summary::-webkit-details-marker{display:none}.expert-apply[open]>summary span{transform:rotate(45deg)}
.expert-form{display:grid;gap:10px;margin-top:16px}.expert-form label{font-size:13px;font-weight:750}.expert-form .field{width:100%;max-width:100%}.expert-form .btn{justify-self:start}.expert-form .settings-hint{line-height:1.5}
.expert-review-list{display:grid;gap:14px}.expert-review{border:1px solid var(--line-strong);background:var(--card);padding:clamp(14px,2vw,24px);display:grid;gap:12px}
.expert-review__head{display:flex;justify-content:space-between;gap:14px;align-items:start;flex-wrap:wrap}.expert-review__head h3{font:750 20px var(--f-head);margin:5px 0 0}.expert-review__head h3 small{font:500 12px var(--f-body);color:var(--ink-soft)}
.expert-review__statement{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}
.expert-review>label{display:grid;gap:6px;font-size:12px;font-weight:700}.expert-review textarea{resize:vertical;width:100%;max-width:100%}
.expert-review__actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
@media(max-width:480px){.expert-application>div{align-items:start}}

/* Optional member banner — leave the original notebook artwork completely untouched
   when no custom image is present. Custom art takes the exact same banner footprint. */
.member-hero__banner {isolation:isolate;}
.member-banner__art {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:inherit;}
.member-banner__art .member-banner__label {z-index:2;}
.member-hero__banner--custom {background:var(--butter-pale);}
.member-hero__banner--custom::before {display:none;}
.member-banner__image {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;}
.member-banner__edit {position:absolute;z-index:5;right:18px;bottom:25px;display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 12px;border:1px solid var(--line-strong);border-radius:8px;background:var(--card);color:var(--ink);font:700 .73rem var(--f-body);box-shadow:2px 3px 0 var(--member-shadow,var(--ink));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease;}
.member-banner__edit .ic {width:15px;height:15px;}
.member-banner__edit:hover {transform:translateY(-2px);box-shadow:2px 5px 0 var(--member-shadow,var(--ink));}
.member-banner__edit:focus-visible,.banner-editor__choose:focus-visible {outline:3px solid var(--ink);outline-offset:3px;}
.member-hero__banner--custom .member-banner__edit {background:var(--card);}
.banner-editor {display:grid;gap:14px;max-width:580px;}
.banner-editor__preview {position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:3.9/1;border:1px solid var(--line-strong);border-radius:11px;overflow:hidden;background:var(--butter-pale) var(--member-banner-art) center/cover no-repeat;}
.banner-editor__preview::after {content:"";position:absolute;inset:auto 0 0;height:10px;background:var(--card);clip-path:polygon(0 65%,5% 35%,10% 70%,15% 38%,22% 70%,29% 40%,36% 65%,43% 38%,50% 72%,57% 41%,64% 65%,71% 35%,78% 68%,85% 39%,92% 70%,100% 47%,100% 100%,0 100%);pointer-events:none;}
.banner-editor__preview img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.banner-editor__original {display:block;transform:rotate(-2deg);padding:8px 11px;border:1px solid var(--line-strong);background:var(--card);font:italic 1.1rem var(--f-serif);color:var(--ink);}
.banner-editor__choose {display:inline-flex;align-items:center;justify-content:center;gap:9px;width:fit-content;min-height:42px;padding:10px 15px;border:1px dashed var(--line-strong);border-radius:9px;background:var(--butter-pale);color:var(--ink);font:700 .9rem var(--f-body);cursor:pointer;}
.banner-editor__choose .ic {width:18px;height:18px;}
.banner-editor__choose:hover {background:var(--butter);}
.banner-editor__position {display:grid;gap:8px;}
.banner-editor__position[hidden] {display:none;}
.banner-editor__position label {display:flex;justify-content:space-between;gap:10px;font-size:.83rem;font-weight:700;}
.banner-editor__position input {width:100%;accent-color:var(--ink);cursor:pointer;}
.banner-editor__actions {display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:9px;}
@media(max-width:620px){
  .member-banner__edit {right:10px;bottom:21px;min-height:33px;padding:6px 9px;font-size:.69rem;}
  .banner-editor__preview {aspect-ratio:2.5/1;}
  .banner-editor__actions .btn {flex:1 1 auto;}
}
@media(prefers-reduced-motion:reduce){.member-banner__edit {transition:none;}}

/* ==========================================================================
   Member profile — minimal redesign.
   The default banner and the verified star are left exactly as designed.
   Around them: a quiet card, a ringed avatar, big numbers, lots of air.
   Everything is driven by the existing theme tokens, so all colour schemes and
   dark mode follow automatically. Appended last so it wins the cascade.
   ========================================================================== */

/* --- hero shell: a quiet card (the banner's torn edge needs a card-coloured surface) --- */
.member-hero,
:root[data-mode="dark"] .member-hero {
  border:1px solid var(--line);border-radius:23px;background:var(--card);box-shadow:none;overflow:visible;
}
.member-crumb {font-weight:500;opacity:.8;margin-bottom:16px;}
.member-hero__content {padding:0 clamp(20px,3.6vw,44px) clamp(22px,3vw,34px);}

/* --- identity row ------------------------------------------------------ */
.member-hero__top {margin-top:calc(clamp(76px,10vw,104px) / -2);gap:clamp(16px,2.6vw,26px);align-items:flex-start;}
.member-avatar-wrap {transform:none;position:relative;z-index:4;margin-left:4px;}
/* gradient ring that turns when you point at it */
.member-avatar-wrap::before {
  content:"";position:absolute;inset:-4px;border-radius:50%;z-index:0;
  background:conic-gradient(from 210deg,var(--butter),var(--clay),var(--ink),var(--butter));
  transition:transform .7s cubic-bezier(.2,.8,.2,1);
}
.member-avatar-wrap:hover::before {transform:rotate(120deg);}
.member-avatar {
  width:clamp(76px,10vw,104px);height:clamp(76px,10vw,104px);
  border:4px solid var(--card);border-radius:50%;
  box-shadow:none;transform:none;background:var(--butter);
  font:italic clamp(2.6rem,4.2vw,3.5rem)/1 var(--f-serif);
}
:root[data-mode="dark"] .member-avatar {box-shadow:none;}
.member-avatar img {transform:none;}
.member-hero__intro {align-self:flex-start;padding:calc(clamp(76px,10vw,104px) / 2 + 14px) 0 0;min-width:0;}
.member-hero__intro .eyebrow {display:none;}
.member-hero h1 {font-size:clamp(1.9rem,3.8vw,2.7rem);line-height:1.04;letter-spacing:-.06em;margin:0 0 3px;}
.member-handle {font-size:.92rem;color:var(--ink-soft);}
.member-hero__actions {align-self:flex-start;padding-top:calc(clamp(76px,10vw,104px) / 2 + 16px);gap:8px;}
.member-hero__actions .btn {
  min-height:42px;padding:9px 18px;border-radius:999px;box-shadow:none;font-weight:700;
  transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease;
}
.member-hero__actions .btn:hover {transform:translateY(-1px);box-shadow:none;}
.member-hero__actions .btn:active {transform:scale(.97);}
.member-hero__actions .btn:not(.btn--primary):hover {background:var(--ink);color:var(--card);border-color:var(--ink);}
:root[data-mode="dark"] .member-hero__actions .btn:hover {box-shadow:none;}

/* --- bio ---------------------------------------------------------------- */
.member-hero__details {margin:22px 0 28px;min-height:0;gap:10px;}
.member-bio {font:italic 400 clamp(1.15rem,2vw,1.45rem)/1.35 var(--f-serif);max-width:52ch;letter-spacing:.005em;}
.member-bio--empty {font:400 .9rem/1.5 var(--f-body);font-style:normal;}

/* --- stats: an open strip of large numbers ----------------------------- */
.member-stats {
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;
  padding:0;border-top:1px solid var(--line);
}
.member-stats::before,
:root[data-mode="dark"] .member-stats::before {display:none;}
.member-stat {
  flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;min-height:0;
  padding:22px 0 6px clamp(14px,2.4vw,28px);margin:0;
  background:none;border:0;border-left:1px solid var(--line);border-radius:0;box-shadow:none;
}
.member-stat:first-child {border-left:0;padding-left:0;}
:root[data-mode="dark"] .member-stat {box-shadow:none;background:none;}
.member-stat__icon {display:none;}
.member-stat__copy {gap:7px;}
.member-stat strong {
  align-self:flex-start;font-size:clamp(1.9rem,3.6vw,2.8rem);line-height:1;letter-spacing:-.07em;
  background:linear-gradient(transparent 64%,var(--butter) 64% 92%,transparent 92%) no-repeat 0 0/0% 100%;
  transition:background-size .35s cubic-bezier(.2,.8,.2,1);
}
.member-stat:hover strong {background-size:100% 100%;}
.member-stat__copy>span {font-size:.64rem;letter-spacing:.14em;color:var(--ink-soft);font-weight:700;}

/* --- content below ------------------------------------------------------ */
.member-layout {margin-top:clamp(40px,6vw,64px);gap:clamp(24px,5vw,60px);}
.member-section-heading {margin-bottom:6px;align-items:center;}
.member-section-heading .eyebrow {display:none;}
.member-section-heading h2 {font-size:clamp(1.25rem,2vw,1.6rem);letter-spacing:-.045em;margin-top:0;}
.member-heading-count {border:0;background:var(--butter-pale);color:var(--ink);padding:5px 11px;font-weight:700;}
.member-main .row {padding:22px 0;border-bottom:1px solid var(--line);}
.member-main .row:last-child {border-bottom:0;}
.member-main .row__q a {background:linear-gradient(var(--butter),var(--butter)) no-repeat 0 92%/0% 38%;transition:background-size .3s cubic-bezier(.2,.8,.2,1);}
.member-main .row:hover .row__q a {background-size:100% 38%;}
.member-main .row__q {font-size:clamp(1.15rem,1.8vw,1.35rem);}
.member-main .row__side .btn {border-radius:999px;transition:background .18s ease,color .18s ease,border-color .18s ease;}
.member-main .row:hover .row__side .btn {background:var(--ink);color:var(--card);border-color:var(--ink);}
.member-main .row .tag {border-radius:999px;border-color:var(--line);}
.member-empty {border-radius:22px;}
.member-sidebar {padding:clamp(20px,2.4vw,28px);border:0;border-radius:24px;background:var(--card);}
.member-sidebar .member-section-heading {border-bottom:0;padding-bottom:8px;margin-bottom:0;}
.member-reason__question {font-size:.95rem;}

/* --- a gentle entrance; everything is fully visible at rest ------------- */
@keyframes memberRise {from {opacity:0;transform:translateY(12px);} to {opacity:1;transform:none;}}
@media(prefers-reduced-motion:no-preference) {
  .member-hero__top {animation:memberRise .55s .08s cubic-bezier(.2,.8,.2,1) backwards;}
  .member-hero__details {animation:memberRise .55s .16s cubic-bezier(.2,.8,.2,1) backwards;}
  .member-stats {animation:memberRise .55s .24s cubic-bezier(.2,.8,.2,1) backwards;}
  .member-layout {animation:memberRise .6s .32s cubic-bezier(.2,.8,.2,1) backwards;}
}
@media(prefers-reduced-motion:reduce) {
  .member-avatar-wrap::before,.member-stat strong,.member-main .row {transition:none;}
}

/* --- tablet / phone ------------------------------------------------------ */
@media(max-width:760px) {
  .member-hero__top {display:flex;flex-wrap:wrap;align-items:flex-start;}
  .member-hero__intro {margin-top:0;flex:1 1 calc(100% - 110px);padding-top:calc(clamp(76px,10vw,104px) / 2 + 12px);}
  .member-hero__actions {flex-basis:100%;margin:6px 0 0;padding-top:0;}
  .member-hero__actions .btn {flex:1 1 0;justify-content:center;}
  .member-stats {grid-template-columns:repeat(3,minmax(0,1fr));row-gap:6px;}
  .member-stat,.member-stat:nth-child(n+4) {border-radius:0;grid-column:auto;align-items:flex-start;justify-content:flex-start;padding:18px 0 8px 14px;}
  .member-stat:nth-child(1),.member-stat:nth-child(4) {border-left:0;padding-left:0;}
}
@media(max-width:620px) {
  .member-hero {border-radius:16px;}
  .member-hero__content {padding:0 17px 22px;}
  .member-hero__top {margin-top:-38px;gap:10px 14px;}
  .member-avatar {width:76px;height:76px;border-width:4px;border-radius:50%;box-shadow:none;font-size:2.6rem;}
  .member-hero__intro {flex:1 1 100%;margin-top:0;padding-top:6px;}
  .member-hero h1 {font-size:clamp(1.65rem,7vw,2.1rem);}
  .member-stat strong {font-size:1.9rem;}
  .member-stat__copy>span {font-size:.55rem;letter-spacing:.1em;}
  .member-main .row {padding:18px 0;}
  :root[data-mode="dark"] .member-avatar {box-shadow:none;}
}

/* Profile bio: align with the name/handle/badges column and use a formal, upright face. */
.member-bio {
  font: 400 1rem/1.6 var(--f-body);
  font-style: normal;
  letter-spacing: 0;
  max-width: 60ch;
  color: var(--ink);
}
.member-bio--empty { color: var(--ink-soft); }
@media (min-width: 621px) {
  /* avatar margin + avatar width + gap = the left edge of the name column */
  .member-hero__details {
    padding-left: calc(4px + clamp(76px, 10vw, 104px) + clamp(16px, 2.6vw, 26px));
  }
}

/* Profile polish — a restrained 16/28px rhythm. The expert icons and their hover
   implementation are intentionally unchanged; only their surrounding layout gets a label. */
.member-hero {max-width:1120px;margin-inline:auto;}
.member-layout {max-width:1120px;margin-inline:auto;}
.member-hero__top {gap:clamp(16px,2.8vw,30px);}
.member-hero__intro {padding-top:30px;}
.member-hero h1 {font-size:clamp(2.15rem,4.5vw,3.45rem);letter-spacing:-.055em;}
.member-expertise {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;min-height:0;}
.member-expertise__caption {display:none;color:var(--ink-soft);font-size:.73rem;font-weight:700;letter-spacing:.015em;}
.member-expertise:has(.expert-profile-badges:not([hidden])) .member-expertise__caption {display:block;}
.member-expertise .expert-profile-badges {margin:0;padding:0;gap:11px;}
.member-hero__details {gap:16px;margin:28px 0 28px;min-height:0;}
.member-bio {line-height:1.55;}
.member-stats {padding-top:23px;gap:clamp(8px,1.4vw,14px);}
.member-stat {min-height:72px;padding:12px clamp(8px,1.4vw,15px);gap:9px;}
.member-stat__icon {width:30px;height:30px;}
.member-stat__icon .ic {width:24px;height:24px;}
.member-stat strong {font-size:clamp(1.18rem,1.85vw,1.43rem);letter-spacing:-.035em;}
.member-stat__copy>span {font-size:.74rem;letter-spacing:.035em;line-height:1.3;}
button.member-stat {font:inherit;text-align:left;cursor:pointer;appearance:none;width:100%;}
.member-stat--action {transition:border-color .16s ease,background .16s ease,transform .16s ease;}
.member-stat--action:hover {border-color:var(--line-strong);background:var(--butter-pale);transform:translateY(-1px);}
.member-stat--action:focus-visible,.member-avatar__star:focus-visible {outline:3px solid var(--ink);outline-offset:3px;}
.member-avatar__star {cursor:help;}
/* Show one straight, readable verified tooltip beside the star in either theme.
   Explicitly reset the gold star's text stroke and decorative shadow. */
.member-avatar__star:hover::after,.member-avatar__star:focus-visible::after {content:'Verified member';position:absolute;bottom:calc(100% + 2px);left:50%;transform:translateX(-50%) rotate(-15deg);width:max-content;max-width:165px;white-space:nowrap;padding:6px 9px;background:var(--card);color:var(--ink);border:1px solid var(--line-strong);border-radius:5px;box-shadow:0 3px 0 var(--member-shadow);font:600 11px/1.3 var(--f-body);letter-spacing:normal;-webkit-text-stroke:0;-webkit-text-fill-color:var(--ink);text-shadow:none;paint-order:normal;z-index:16;}
.member-hero__actions {padding-top:20px;gap:10px;}
.member-owner-tools {display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap;}
.member-hero__actions .member-banner__edit {position:static;right:auto;bottom:auto;min-height:45px;border-radius:10px;padding:10px 13px;box-shadow:0 2px 0 var(--member-shadow);font-size:.76rem;transform:none;}
.member-hero__actions .member-banner__edit:hover {transform:translateY(-1px);box-shadow:0 3px 0 var(--member-shadow);}
.member-copy [data-copy-label] {display:inline-block;min-width:62px;}
.member-connection-dialog {display:grid;gap:11px;min-width:min(100%,320px);}
.member-connection-dialog h2 {font:800 1.7rem/1.2 var(--f-head);}
.member-connection-list {list-style:none;max-height:55vh;overflow:auto;display:grid;gap:0;}
.member-connection-list a {display:flex;align-items:center;gap:13px;min-height:66px;padding:9px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink);}
.member-connection-list a:hover {background:var(--butter-pale);}
.member-connection-list a:focus-visible {outline:2px solid var(--ink);outline-offset:-2px;}
.member-connection-list a>span:nth-child(2) {flex:1;display:grid;gap:2px;min-width:0;}
.member-connection-list strong {font-size:.88rem;overflow-wrap:anywhere;}
.member-connection-list small {color:var(--ink-soft);font-size:.74rem;}
.member-connection-avatar {position:relative;display:grid;place-items:center;overflow:hidden;width:43px;height:43px;flex:none;border:1px solid var(--line-strong);border-radius:50%;background:var(--butter-pale);font:italic 1.35rem var(--f-serif);}
.member-connection-avatar img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;}
.member-connection-list .ic {width:16px;height:16px;flex:none;}
.member-connection-empty {padding:20px 0;color:var(--ink-soft);font-size:.9rem;}
.bio-counter {font-size:.78rem;font-weight:700;color:var(--ink-soft);}
.settings-bio-row:focus-within .bio-counter {color:var(--ink);}
@media (hover:none), (pointer:coarse) {
  /* Extend the hit box, without scaling or repainting the existing enamel pin. */
  .member-expertise .expert-badge {margin:7px;}
  .member-expertise .expert-badge::before {inset:-6px;pointer-events:auto;background:transparent;}
  .member-expertise .expert-profile-badges {gap:0;}
}
@media(max-width:760px){
 .member-hero__actions {padding-top:7px;}
 .member-hero__intro {padding-top:30px;}
 .member-stats {gap:8px;}
}
@media(max-width:620px){
 .member-hero__intro {padding:0 0 2px;}
 .member-expertise {gap:6px;margin-top:9px;}
 .member-expertise__caption {font-size:.68rem;}
 .member-hero__details {margin:20px 0 22px;gap:14px;}
 .member-stat {min-height:70px;gap:5px;padding:11px 6px;}
 .member-stat__copy>span {font-size:.7rem;letter-spacing:0;}
 .member-stat strong {font-size:1.22rem;}
 .member-stat__icon .ic {width:22px;height:22px;}
 .member-owner-tools {gap:7px;}
 .member-hero__actions .member-banner__edit {min-height:41px;padding:8px 10px;font-size:.74rem;}
}
@media(max-width:360px){
 .member-stat__copy>span {font-size:.7rem;}
 .member-hero__actions .btn {font-size:.72rem;}
 .member-owner-tools {flex:1 1 auto;}
}
@media(prefers-reduced-motion:reduce){.member-stat--action {transition:none;}.member-stat--action:hover {transform:none;}}

/* Keep the verified star interactive (the earlier art-only rule disabled it). */
.member-avatar__star{pointer-events:auto;}
/* Final placement: editing never sits on top of uploaded artwork. */
@media(min-width:761px){
 .member-hero__actions {transform:translateY(38px);}
}
.member-stat {background:var(--member-stat-top);border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 0 var(--member-shadow);}
button.member-stat {display:flex;align-items:center;justify-content:flex-start;}
.member-stat__icon {display:grid;place-items:center;}
@media(max-width:620px){
 .member-hero__actions {display:flex;flex-direction:column;align-items:stretch;gap:9px;transform:none;}
 .member-owner-tools {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:9px;}
 .member-owner-tools .btn,.member-owner-tools .member-banner__edit,.member-copy {width:100%;justify-content:center;}
 .member-hero__actions .member-copy {align-self:stretch;}
 .member-stat {border-radius:10px;box-shadow:0 2px 0 var(--member-shadow);}
}

/* Profile alignment refinement — 2026-11-08.
   Scoped to the public member page. The banner artwork, avatar seal, expert
   pin markup/SVG, and the existing expert hover interaction are untouched. */
.profile-page .member-hero__top {column-gap:clamp(18px,2vw,24px);}
.profile-page .member-hero__details {gap:10px;margin:14px 0 18px;min-height:0;}
.profile-page .member-stats {padding-top:16px;}
.profile-page .member-layout {margin-top:clamp(28px,3.2vw,42px);}
@media (min-width:761px) {
  .profile-page .member-hero__intro {padding-top:26px;}
  .profile-page .member-hero__actions {
    margin-left:0;
    padding-top:36px;
    transform:none;
    align-self:flex-start;
    justify-content:flex-start;
  }
}
@media (min-width:621px) {
  .profile-page .member-hero__details {
    padding-left:calc(4px + clamp(76px,10vw,104px) + clamp(18px,2vw,24px));
  }
}
@media (min-width:621px) and (max-width:900px) {
  .profile-page .member-hero__top {display:grid;grid-template-columns:clamp(76px,10vw,104px) minmax(0,1fr);align-items:start;row-gap:10px;}
  .profile-page .member-avatar-wrap {grid-column:1;grid-row:1 / span 2;}
  .profile-page .member-hero__intro {grid-column:2;grid-row:1;padding-top:26px;}
  .profile-page .member-hero__actions {grid-column:2;grid-row:2;flex-basis:auto;margin:0;padding:0;transform:none;justify-content:flex-start;}
}
@media (max-width:620px) {
  .profile-page .member-hero__top {display:grid;grid-template-columns:76px minmax(0,1fr);column-gap:16px;row-gap:12px;align-items:start;}
  .profile-page .member-avatar-wrap {grid-column:1;grid-row:1;}
  .profile-page .member-hero__intro {grid-column:2;grid-row:1;flex:none;min-width:0;margin:0;padding:41px 0 0;align-self:start;}
  .profile-page .member-hero__actions {grid-column:1/-1;grid-row:2;display:flex;flex-direction:column;align-items:stretch;flex-basis:auto;margin:0;padding:0;gap:8px;transform:none;}
  .profile-page .member-hero__details {padding:0;margin:13px 0 17px;gap:10px;}
  .profile-page .member-stats {padding-top:15px;}
  .profile-page .member-layout {margin-top:29px;}
}
@media (max-width:620px) {
  /* Three compact figures above two balanced wider figures, with no empty slot. */
  .profile-page .member-stats {grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;}
  .profile-page .member-stat,
  .profile-page .member-stat:nth-child(n+4) {
    grid-column:span 2;
    min-width:0;
    padding:11px 6px;
    border:1px solid var(--line);
    border-radius:10px;
    box-shadow:0 2px 0 var(--member-shadow);
    justify-content:center;
    align-items:center;
  }
  .profile-page .member-stat:nth-child(n+4) {grid-column:span 3;}
}
@media (max-width:360px) {
  .profile-page .member-owner-tools {gap:6px;}
  .profile-page .member-hero__actions .btn,
  .profile-page .member-hero__actions .member-banner__edit {
    gap:4px;
    padding-inline:5px;
    font-size:.68rem;
  }
}

/* ==========================================================================
   Profile layout consolidation — 2026-11-08
   One source of truth for the member header. It replaces the competing
   transforms and padding hacks above, scoped to .profile-page so nothing else
   on the site is affected. Banner art, verified star and expert pins untouched.
   ========================================================================== */
.profile-page .member-hero {--av:clamp(76px,10vw,104px);--avgap:clamp(18px,2vw,24px);}
.profile-page .member-avatar-wrap {margin-left:0;}
.profile-page .member-hero__top {column-gap:var(--avgap);align-items:flex-start;}

/* Buttons: one height, one weight, one shape. Owner tools read as a single row. */
.profile-page .member-hero__actions .btn,
.profile-page .member-hero__actions .member-banner__edit {
  min-height:44px;border-radius:999px;font:700 .9rem/1 var(--f-body);gap:8px;
  box-shadow:none;transform:none;
}
.profile-page .member-hero__actions .member-banner__edit {
  background:transparent;color:var(--ink);border:1.5px solid var(--ink);padding:0 18px;
}
.profile-page .member-hero__actions .member-banner__edit:hover {background:var(--ink);color:var(--card);border-color:var(--ink);box-shadow:none;transform:translateY(-1px);}

@media (min-width:621px) {
  /* The name starts below the torn banner edge, never on it. */
  .profile-page .member-hero__intro {padding-top:calc(var(--av) / 2 + 18px);}
  /* Bio and join date share the exact left edge of the name column. */
  .profile-page .member-hero__details {padding-left:calc(var(--av) + var(--avgap));margin:22px 0 28px;gap:12px;}
  .profile-page .member-hero__actions .btn,
  .profile-page .member-hero__actions .member-banner__edit {padding-inline:18px;}
}
@media (min-width:901px) {
  /* Buttons sit on the same line as the name, with no transform hacks. */
  .profile-page .member-hero__intro {flex:1 1 auto;min-width:0;}
  .profile-page .member-hero__actions {padding-top:calc(var(--av) / 2 + 24px);transform:none;align-items:center;margin-left:auto;justify-content:flex-end;flex-wrap:nowrap;}
  .profile-page .member-owner-tools {flex-wrap:nowrap;}
}

/* Stats: flat, left-aligned figures. Number leads, label supports, no icons. */
.profile-page .member-stats .member-stat__icon {display:none;}
.profile-page .member-stats .member-stat__copy {display:flex;flex-direction:column;align-items:flex-start;gap:6px;}
.profile-page .member-stats .member-stat strong {font-size:clamp(1.75rem,3vw,2.35rem);line-height:1;letter-spacing:-.05em;}
.profile-page .member-stats .member-stat__copy>span {font-size:.72rem;letter-spacing:.09em;line-height:1.2;color:var(--ink-soft);}

@media (min-width:761px) {
  .profile-page .member-stats {grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:0;border-top:1px solid var(--line);}
  .profile-page .member-stats .member-stat {
    display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;
    min-height:0;padding:22px 12px 4px 24px;margin:0;width:auto;text-align:left;
    background:none;border:0;border-left:1px solid var(--line);border-radius:0;box-shadow:none;transform:none;
  }
  .profile-page .member-stats .member-stat:first-child {border-left:0;padding-left:0;}
  .profile-page .member-stats .member-stat--action:hover {background:none;border-color:var(--line);transform:none;}
  .profile-page .member-stats .member-stat--action:hover .member-stat__copy>span {color:var(--ink);text-decoration:underline;text-underline-offset:.25em;}
}
@media (max-width:760px) {
  /* Compact tiles: three over two, content left-aligned in every tile. */
  .profile-page .member-stats {grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding-top:16px;}
  .profile-page .member-stats .member-stat {
    grid-column:span 2;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
    min-height:0;padding:12px 12px;text-align:left;
    background:none;border:1px solid var(--line);border-radius:10px;box-shadow:none;
  }
  .profile-page .member-stats .member-stat:nth-child(n+4) {grid-column:span 3;}
  .profile-page .member-stats .member-stat strong {font-size:1.6rem;}
}

/* Profile expertise — a quiet, self-sized credential tray on the action side.
   The original enamel pins and their floating field notes are not restyled. */
.profile-page .member-expertise {
  display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px 18px;
  width:max-content;max-width:100%;min-width:0;margin:8px 0 23px;
  padding:12px 16px;border:1px solid var(--line);border-radius:14px;
  background:color-mix(in srgb,var(--paper) 55%,var(--card) 45%);box-shadow:none;
}
/* If no expert credentials are approved, there is no empty decoration. */
.profile-page .member-expertise:not(:has(.expert-profile-badges:not([hidden]))) {display:none;}
.profile-page .member-expertise__caption,
.profile-page .member-expertise:has(.expert-profile-badges:not([hidden])) .member-expertise__caption {
  display:block;margin:0;color:var(--ink);font:700 .77rem/1.35 var(--f-body);
  letter-spacing:.015em;text-transform:none;
}
.profile-page .member-expertise .expert-profile-badges {
  margin:0;padding:0;display:flex;align-items:center;justify-content:flex-end;
  gap:11px;flex-wrap:wrap;flex:0 1 auto;min-width:0;
}
/* For 4+ badges, keep the heading on its own line and group the enamel
   pins neatly at the left. The expertise container retains its full width. */
.profile-page .member-expertise:has(.expert-badge:nth-child(4)) {
  flex-direction:column;align-items:stretch;
}
.profile-page .member-expertise:has(.expert-badge:nth-child(4)) .expert-profile-badges {
  justify-content:flex-start;width:100%;flex:0 1 auto;gap:13px;
}
:root[data-mode="dark"] .profile-page .member-expertise {
  background:color-mix(in srgb,var(--card) 80%,var(--paper) 20%);
  border-color:var(--line);
}
/* Desktop: bio/creation date stays in the identity column while credentials
   occupy a separate, right-aligned cell directly beneath the action buttons. */
@media(min-width:901px) {
  .profile-page .member-hero__content {
    display:grid;grid-template-columns:var(--av) minmax(0,1fr) max-content;
    column-gap:var(--avgap);grid-template-rows:auto auto auto;align-items:start;
  }
  .profile-page .member-hero__top {display:contents;}
  .profile-page .member-avatar-wrap {
    grid-column:1;grid-row:1;margin-top:calc(var(--av) / -2);
  }
  .profile-page .member-hero__intro {
    grid-column:2;grid-row:1;min-width:0;padding:18px 0 0;margin:0;
  }
  .profile-page .member-hero__actions {
    grid-column:3;grid-row:1;align-self:end;justify-self:end;
    margin:0;padding:0;transform:none;
  }
  .profile-page .member-hero__details {
    grid-column:2;grid-row:2;min-width:0;padding:0;margin:13px 0 24px;gap:12px;
  }
  .profile-page .member-expertise {
    /* Match the combined action-button row, from Edit profile to Copy link. */
    grid-column:3;grid-row:2;justify-self:stretch;
    box-sizing:border-box;width:100%;margin:12px 0 24px;
  }
  .profile-page .member-stats {grid-column:1/-1;grid-row:3;min-width:0;}
}
@media(max-width:900px) {
  /* Mobile/tablet: use the available profile width instead of a small card. */
  .profile-page .member-expertise {box-sizing:border-box;width:100%;margin:5px 0 22px;}
}
@media(max-width:620px) {
  .profile-page .member-expertise {margin:2px 0 18px;padding:12px 14px;}
  .profile-page .member-expertise .expert-profile-badges {gap:9px;}
  /* On small phones, group 3+ badges together beneath the title instead
     of distributing them from edge to edge. One badge remains compact. */
  .profile-page .member-expertise:has(.expert-badge:nth-child(3)) {flex-direction:column;align-items:stretch;}
  .profile-page .member-expertise:has(.expert-badge:nth-child(3)) .expert-profile-badges {
    justify-content:flex-start;width:100%;flex:0 1 auto;gap:9px;
  }
}

/* Super Admin — compact, theme-aware recognition on member profiles. */
.member-staff-badge {display:inline-flex;align-items:center;margin-left:10px;vertical-align:middle;
 padding:3px 10px;border:1px solid var(--line-strong);border-radius:999px;
 background:var(--butter-pale);color:var(--ink);font-size:.73rem;font-weight:800;
 line-height:1.4;letter-spacing:.015em;white-space:nowrap;}
.role-badge.role-super_admin {background:var(--butter-pale);border-color:var(--line-strong);color:var(--ink);}
@media (max-width:560px) {.member-staff-badge {margin-left:7px;font-size:.68rem;padding:2px 7px;}}

/* Mobile member profile: keep the bio directly under the username.
   Use one grid for the avatar, identity, bio and actions instead of placing
   the bio after the action-button row. Desktop/tablet styles are untouched. */
@media (max-width:620px) {
  .profile-page .member-hero__content {
    display:grid;
    grid-template-columns:76px minmax(0,1fr);
    column-gap:16px;
    row-gap:0;
    align-items:start;
  }
  .profile-page .member-hero__top {display:contents;}
  .profile-page .member-avatar-wrap {
    grid-column:1;
    grid-row:1;
    margin-top:-29px;
  }
  .profile-page .member-hero__intro {
    grid-column:2;
    grid-row:1;
    min-width:0;
    padding:12px 0 0;
  }
  .profile-page .member-hero__details {
    grid-column:2;
    grid-row:2;
    min-width:0;
    padding:0;
    margin:6px 0 0;
    gap:0;
  }
  .profile-page .member-hero__actions {
    grid-column:1/-1;
    grid-row:3;
    margin:14px 0 0;
  }
  .profile-page .member-expertise {
    grid-column:1/-1;
    grid-row:4;
    margin:14px 0 18px;
  }
  .profile-page .member-stats {
    grid-column:1/-1;
    grid-row:5;
  }
}

/* SEO-friendly loading shell. Replaced with the interactive application when ready. */
.boot-loading__title {max-width:650px;margin:0;text-align:center;font:700 clamp(1.6rem,3vw,2.5rem)/1.14 var(--f-head);color:var(--ink);}
.boot-loading .boot-loading__browse {font:600 .9rem var(--f-body);color:var(--ink);text-decoration:underline;text-underline-offset:3px;}
.boot-loading p {max-width:560px;text-align:center;}
