/* cnote's glass kit, loaded on every page. The card image carries the colour;
   controls are glass floating over it; type is the system face; edges glow
   softly in the ruling's colour (--glow, set by cardimg.js). */

:root {
  --ui: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --spring: cubic-bezier(.22, 1.2, .36, 1);
  --glow: #e6c877;
  --pull: 0; /* 0 → 1 as a card is swiped toward the line */
}

body.app, body.shell {
  --paper: #0c0c0e; --ink: #f6f4ef; --muted: rgba(255,255,255,.66); --rule: rgba(255,255,255,.14);
  --idiom-ink: rgba(255,255,255,.85); --idiom-sub: rgba(255,255,255,.5);
}
body.app {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: #0c0c0e; color: #fff;
  font: 400 1.0625rem/1.45 var(--ui);
  overflow: hidden; overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
body.app.scroll { overflow: auto; overscroll-behavior: auto; }

/* The bar, in system type. */
body.app .bar, body.shell .bar {
  font: 600 .8125rem/1 var(--ui); font-variant-caps: normal; letter-spacing: 0; color: rgba(255,255,255,.7);
}
body.app .bar { background: transparent; position: relative; z-index: 5; }
body.app.scroll .bar { position: sticky; top: 0; }
body.app .bar a, body.app .bar button.link, body.shell .bar a, body.shell .bar button.link { color: rgba(255,255,255,.7); }
body.app .bar .logo, body.app .bar .acct .me, body.shell .bar .logo, body.shell .bar .acct .me, body.shell .bar .where .host { color: #fff; }
body.app .bar .acct, body.shell .bar .acct { gap: .7rem; }

/* The backdrop: the card's own colour field, blurred, with a glow at the screen's edges. */
.ambient {
  position: fixed; inset: -12%; width: 124%; height: 124%; object-fit: cover; z-index: 0;
  filter: blur(48px) saturate(125%); pointer-events: none; user-select: none;
}
.ambient + .ambient { transition: opacity .7s ease; }
.shade { position: fixed; inset: 0; z-index: 0; background: rgba(8,8,10,.38); pointer-events: none; box-shadow: inset 0 0 calc(110px + 70px * var(--pull)) calc(-30px + 34px * var(--pull)) var(--glow); }
/* Light gathering at the top as the card is pulled up. */
.lift {
  position: fixed; inset: 0 0 auto 0; height: 62vh; z-index: 0; pointer-events: none;
  background: radial-gradient(90% 100% at 50% 0%, var(--glow), transparent 70%);
  mix-blend-mode: screen; opacity: var(--pull);
}

.glass {
  color: #fff;
  background: rgba(255,255,255,.13);
  -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 10px 34px rgba(0,0,0,.2), 0 0 34px -14px var(--glow);
}

.stage {
  position: relative; z-index: 1;
  height: calc(100vh - 40px); height: calc(100dvh - 40px);
  max-width: 30rem; margin: 0 auto;
  padding: 8px 20px calc(env(safe-area-inset-bottom) + 14px);
  display: flex; flex-direction: column;
}

/* ---------- controls ---------- */
.btn {
  appearance: none; font: 600 1.0625rem/1 var(--ui); letter-spacing: -.01em; color: #fff;
  height: 52px; padding: 0 20px; border-radius: 26px; min-width: 0; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none;
  transition: transform .18s var(--spring), background .15s;
}
.btn:active { transform: scale(.96); }
.btn.solid { background: #fff; color: #0c0c0e; border: 0; box-shadow: 0 10px 34px rgba(0,0,0,.25), 0 0 40px -10px var(--glow); }
.btn.quiet { background: none; border: 0; box-shadow: none; color: rgba(255,255,255,.78); padding: 0 12px; font-weight: 500; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn:focus-visible, .field textarea:focus-visible, .field input:focus-visible, .seg button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dock { display: flex; gap: 10px; align-items: center; }
.dock .wide { flex: 1; }

.field { border-radius: 26px; padding: 16px 18px; }
.field textarea, .field input {
  display: block; width: 100%; resize: none; border: 0; outline: 0; background: none;
  color: #fff; font: 500 1.1875rem/1.35 var(--ui); letter-spacing: -.01em; padding: 0;
}
.field textarea { min-height: 4.6em; }
.field textarea::placeholder, .field input::placeholder { color: rgba(255,255,255,.5); }
.field img { display: block; max-width: 100%; max-height: 24vh; border-radius: 14px; margin-bottom: 12px; }
.field .unshot { font: 500 .875rem/1 var(--ui); color: rgba(255,255,255,.7); background: none; border: 0; padding: 0 0 10px; cursor: pointer; }
.field.over { background: rgba(255,255,255,.24); }
.msg { color: #fff; font-weight: 500; margin: .8rem 2px 0; min-height: 1.4em; }

/* ---------- /ask: paste ---------- */
.paste { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.paste h1, .intro h1 { font: 800 2.125rem/1.08 var(--ui); letter-spacing: -.035em; margin: 6vh 0 1.2rem; text-wrap: balance; }
.paste .spacer { flex: 1; min-height: 16px; }
.paste .idiom-foot { padding: 14px 0 0; }

/* ---------- the card ---------- */
.review, .intro { flex: 1; display: flex; flex-direction: column; align-items: center; min-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.review.settled, .stage.rated .review { -webkit-touch-callout: default; }
.cardwrap {
  width: min(100%, calc((100vh - 40px - 120px) * .8)); width: min(100%, calc((100dvh - 40px - 120px) * .8));
  margin-block: auto; will-change: transform; transform-origin: 50% 60%;
}
.review.settled .cardwrap { width: min(100%, calc((100dvh - 40px - 190px) * .8)); }
.cardimg {
  display: block; width: 100%; aspect-ratio: 1008 / 1278; border-radius: 7.54% / 5.95%; /* the pane of the 1080×1350 image: see show() */
  box-shadow: 0 34px 80px rgba(0,0,0,.42), 0 2px 10px rgba(0,0,0,.25),
    0 0 calc(70px + 90px * var(--pull)) calc(-22px + 20px * var(--pull)) var(--glow);
}
.cardwrap.arrive { animation: arrive .55s var(--spring) both; }
@keyframes arrive { from { transform: translateY(26px) scale(.94); opacity: 0; } }

/* Drafting: the pane before the card exists. */
.skeleton { position: relative; overflow: hidden; border-radius: 7.54% / 5.95%; aspect-ratio: 1008 / 1278; width: 100%; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%);
  transform: translateX(-100%); animation: sheen 1.4s ease-in-out infinite;
}
@keyframes sheen { to { transform: translateX(100%); } }

.already { display: block; width: 100%; border-radius: 18px; padding: 10px 14px; margin-bottom: 10px; font-size: .9375rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.already b { font-weight: 700; }

.under { flex: none; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; min-height: 0; padding-top: 12px; }
.under .dock { width: 100%; justify-content: center; }

/* "Swipe up to post": nothing else on screen; the whole card rides the finger. */
.swipe {
  appearance: none; background: none; border: 0; color: #fff; cursor: grab; padding: 4px 18px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font: 600 1.0625rem/1.2 var(--ui); letter-spacing: -.01em;
  text-shadow: 0 0 22px var(--glow);
}
.swipe svg { width: 30px; height: 30px; animation: bob 1.5s ease-in-out infinite; filter: drop-shadow(0 0 10px var(--glow)); }
@keyframes bob { 50% { transform: translateY(-7px); opacity: .55; } }
.swipe.nudge { animation: nudge .45s var(--spring); }
@keyframes nudge { 35% { transform: translateY(-14px); } }

/* Rating a card: a segmented glass control. */
.seg { display: flex; width: 100%; border-radius: 26px; padding: 4px; gap: 2px; }
.seg button {
  flex: 1; appearance: none; border: 0; background: none; color: #fff; cursor: pointer;
  font: 600 1rem/1 var(--ui); height: 44px; border-radius: 22px; transition: background .2s, color .2s, transform .18s var(--spring);
}
.seg button:active { transform: scale(.95); }
.seg button.on { background: #fff; color: #0c0c0e; }
.ask-line { font-size: .9375rem; color: rgba(255,255,255,.8); margin: 0; text-align: center; }
.stage.rated .cardwrap { width: min(100%, calc((100vh - 40px - 262px) * .8)); width: min(100%, calc((100dvh - 40px - 262px) * .8)); }

/* ---------- first run ---------- */
.intro { align-items: stretch; }
.intro h1 { margin-top: 3vh; min-height: 2.2em; }
.intro .cardwrap { align-self: center; width: min(100%, calc((100dvh - 40px - 250px) * .8)); }
.intro .swipe { align-self: center; }
.intro .skip { align-self: flex-end; height: 32px; font-size: .875rem; margin: 0 -12px -8px 0; touch-action: auto; }
.join { margin-block: auto; display: flex; flex-direction: column; gap: 10px; touch-action: auto; user-select: auto; -webkit-user-select: auto; }
.join .field { padding: 14px 18px; border-radius: 22px; }
.join .btn { width: 100%; }
.join .msg { margin: 0 2px; min-height: 0; }
.join .msg:empty { display: none; }
.join .btn.solid { margin-top: 6px; }

/* ---------- trays: bottom sheets for editing, signing in, writing a note ---------- */
dialog.tray {
  position: fixed; inset: auto 0 0 0; margin: 0 auto; width: min(30rem, 100vw); max-width: none; max-height: 88dvh; overflow: auto;
  border-radius: 30px 30px 0 0; border: 1px solid rgba(255,255,255,.18); border-bottom: 0;
  background: rgba(24,24,27,.74); -webkit-backdrop-filter: blur(36px) saturate(170%); backdrop-filter: blur(36px) saturate(170%);
  box-shadow: 0 -10px 60px -20px var(--glow);
  color: #fff; padding: 10px 20px calc(env(safe-area-inset-bottom) + 18px); font: 400 1rem/1.4 var(--ui);
}
dialog.tray[open] { animation: rise .42s var(--spring); }
@keyframes rise { from { transform: translateY(60%); opacity: .4; } }
dialog.tray::backdrop { background: rgba(0,0,0,.4); }
.tray .grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); margin: 0 auto 14px; }
.tray h2 { font: 800 1.5rem/1.1 var(--ui); letter-spacing: -.03em; margin: 4px 0 6px; }
.tray .hint { color: rgba(255,255,255,.66); margin: 0 0 16px; font-size: .9375rem; }
.tray label, .tray legend { display: block; font: 600 .8125rem/1 var(--ui); color: rgba(255,255,255,.62); margin: 0 0 14px; padding: 0; }
.tray label[for], .tray legend { margin-bottom: 6px; }
.tray textarea, .tray input:not([type=radio]) {
  display: block; width: 100%; margin: 6px 0 0; font: 500 1rem/1.35 var(--ui); color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 10px 12px; outline: 0; resize: none;
  box-shadow: none;
}
.tray label[for] + textarea, .tray label[for] + input { margin: 0 0 14px; }
.tray textarea:focus, .tray input:not([type=radio]):focus { border-color: rgba(255,255,255,.6); box-shadow: none; }
.tray fieldset { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tray fieldset legend { float: left; width: 100%; }
.tray .pick, .tray label.inline { position: relative; margin: 0; display: block; }
.tray .pick input, .tray label.inline input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.tray .pick span, .tray label.inline span { display: block; font: 600 .9375rem/1 var(--ui); color: #fff; padding: 10px 14px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); cursor: pointer; }
.tray .pick input:checked + span, .tray label.inline input:checked + span { background: #fff; color: #0c0c0e; }
.tray .pick input:focus-visible + span, .tray label.inline input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.tray blockquote { margin: 0 0 14px; padding: 0 0 0 12px; border-left: 3px solid var(--glow); font: 500 1rem/1.4 var(--ui); color: rgba(255,255,255,.85); }
.tray .also { font-size: .875rem; color: rgba(255,255,255,.62); margin: -8px 0 14px; }
.tray .also button { font: inherit; color: #fff; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.tray .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.tray .row .btn { flex: 1; }
.tray .row .btn.quiet { flex: none; }
.tray > form > .btn { width: 100%; }
.tray .msg, .tray .err { margin: 0 0 12px; color: #ffd9d4; font-weight: 500; }

.toast2 {
  position: fixed; top: calc(env(safe-area-inset-top) + 48px); left: 20px; right: 20px; z-index: 40; width: fit-content; max-width: calc(100vw - 40px); margin: 0 auto;
  border-radius: 22px; padding: 12px 18px; font: 600 .9375rem/1.3 var(--ui); text-align: center;
  animation: banner .45s var(--spring) both;
}
@keyframes banner { from { transform: translateY(-30px) scale(.94); opacity: 0; } }
.vh { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; overflow: hidden; }

/* ---------- the landing: one page that explains cnote with real cards ---------- */
.explain { position: relative; z-index: 1; max-width: 62rem; margin: 0 auto; padding: 0 24px; }
.explain h1 { font: 800 clamp(2.5rem, 7.2vw, 4.75rem)/1 var(--ui); letter-spacing: -.045em; margin: 0 0 1.75rem; max-width: 12em; text-wrap: balance; }
.explain h2 { font: 800 clamp(1.75rem, 4vw, 2.5rem)/1.05 var(--ui); letter-spacing: -.035em; margin: 0 0 .8rem; text-wrap: balance; }
.explain p { color: rgba(255,255,255,.8); margin: 0 0 1.1rem; max-width: 27rem; font-size: 1.125rem; }
.explain code { font: inherit; color: #fff; font-weight: 600; }
.explain a { color: #fff; }
.hero { min-height: calc(100dvh - 40px); display: flex; flex-direction: column; justify-content: center; padding: 2rem 0 1.5rem; }
.hero h1 { margin-top: auto; }
.hero .field { max-width: 34rem; }
.hero .dock { max-width: 34rem; margin-top: 12px; }
.hero .more { margin-top: auto; align-self: center; }
.hero .more svg { width: 30px; height: 30px; }
.pair { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: clamp(2rem, 7vw, 5.5rem); align-items: center; padding: clamp(3.5rem, 12vh, 7rem) 0; }
.pair.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); }
.pair.flip > .cardimg, .pair.flip > .pagedemo { order: 2; }
.pair .seg { max-width: 20rem; }
.pagedemo { border-radius: 30px; padding: 24px 22px; font: 400 1.0625rem/1.55 var(--serif); color: rgba(255,255,255,.92); }
.pagedemo p { color: inherit; font-size: inherit; margin: 0 0 14px; }
.pagedemo mark { color: inherit; background: color-mix(in srgb, var(--glow) 45%, transparent); border-radius: 4px; padding: 0 2px; }
.pagedemo .aside { font: 500 .9375rem/1.4 var(--ui); border-radius: 18px; padding: 12px 14px; margin: 0; }
.pagedemo .aside b { display: block; font-weight: 700; font-size: .8125rem; color: rgba(255,255,255,.66); margin-bottom: 2px; }
.url { display: flex; align-items: center; max-width: 24rem; border-radius: 26px; padding: 0 6px 0 18px; height: 52px; }
.url label { color: rgba(255,255,255,.6); font-weight: 600; }
.url input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font: 600 1.0625rem/1 var(--ui); padding: 0; }
.url input::placeholder { color: rgba(255,255,255,.45); }
.url .btn { height: 40px; border-radius: 20px; padding: 0 16px; font-size: .9375rem; }
.get { padding: clamp(3rem, 10vh, 6rem) 0 3rem; }
.get .dock { flex-wrap: wrap; margin-bottom: 1.5rem; }
.snippet2 { border-radius: 18px; padding: 14px 16px; margin: 0; max-width: 34rem; overflow-wrap: anywhere; white-space: pre-wrap; font: 500 .8125rem/1.5 ui-monospace, "SF Mono", Menlo, monospace; }
.explain .idiom-foot { padding: 2rem 0 calc(env(safe-area-inset-bottom) + 24px); }
.plain { position: relative; z-index: 1; max-width: 30rem; margin: 0 auto; padding: 18vh 24px 0; }
.plain h1 { font: 800 2.125rem/1.08 var(--ui); letter-spacing: -.035em; margin: 0 0 1rem; }
.plain p { color: rgba(255,255,255,.8); }
.plain a, .plain code { color: #fff; }
.plain code { font: inherit; font-weight: 600; }
@media (max-width: 760px) {
  .pair, .pair.flip { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: 3rem 0; }
  .pair > .cardimg, .pair > .pagedemo { order: 2 !important; max-width: 21rem; }
}

/* ---------- the overlay on a framed page: bar, button, notes panel ---------- */
body.shell { background: #0c0c0e; }
body.shell .bar { background: #0c0c0e; border-bottom: 0; }
body.shell .fab {
  height: 52px; padding: 0 18px; border-radius: 26px; gap: 8px; color: #fff;
  background: rgba(20,20,23,.62); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 34px rgba(0,0,0,.3), 0 0 36px -8px var(--glow);
  transition: transform .18s var(--spring);
}
body.shell .fab:active { transform: scale(.94); }
body.shell .fab .cent { font-size: 26px; color: #fff; }
body.shell .fab .count { font: 700 .9375rem/1 var(--ui); color: #fff; }
body.shell .fab[aria-expanded="true"] { background: #fff; }
body.shell .fab[aria-expanded="true"] .cent, body.shell .fab[aria-expanded="true"] .count { color: #0c0c0e; }
body.shell .panel {
  right: 14px; bottom: 82px; width: min(400px, calc(100vw - 28px)); max-height: calc(100dvh - 40px - 104px);
  border-radius: 30px; padding: 18px 18px 6px; color: #fff; font: 400 .9375rem/1.45 var(--ui);
  background: rgba(22,22,25,.72); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(36px) saturate(170%); backdrop-filter: blur(36px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 24px 70px rgba(0,0,0,.4), 0 0 60px -20px var(--glow);
  transform-origin: 100% 100%; animation: pop .34s var(--spring);
}
@keyframes pop { from { transform: scale(.9) translateY(14px); opacity: 0; } }
body.shell .panel-head { font: 800 1.375rem/1.1 var(--ui); letter-spacing: -.03em; align-items: center; margin-bottom: .5rem; }
body.shell .panel-head button.link, body.shell .panel-hint, body.shell .panel-foot, body.shell .panel-section { font-family: var(--ui); color: rgba(255,255,255,.62); }
body.shell .panel-section { font-weight: 700; font-size: .8125rem; margin: 1rem 0 .5rem; }
body.shell .panel .dock { margin: 0 0 12px; }
body.shell .panel .dock .btn { flex: 1; height: 46px; font-size: .9375rem; }
body.shell .panel .note { font-family: var(--ui); font-size: .9375rem; color: #fff; border-top: 1px solid rgba(255,255,255,.12); }
body.shell .panel .note .status { color: rgba(255,255,255,.62); font-weight: 600; }
body.shell .panel .note .quote { font: 500 .9375rem/1.4 var(--ui); color: rgba(255,255,255,.7); border-left: 3px solid var(--glow); padding-left: 10px; }
body.shell .panel .note .src, body.shell .panel .note .rate, body.shell .panel .note .rate button.link { color: rgba(255,255,255,.66); }
body.shell .panel .note .rate button.link.on { color: #fff; }
body.shell .panel .note.hot { background: rgba(255,255,255,.08); }
body.shell .panel .cardlink { display: block; margin: 0 0 8px; }
body.shell .panel .cardlink .cardimg { box-shadow: 0 10px 30px rgba(0,0,0,.35); }
body.shell .panel .note.card { border-top: 0; padding-top: 0; }
body.shell .toast {
  bottom: auto; top: 52px; border-radius: 22px; padding: 12px 18px; color: #fff; font: 600 .9375rem/1.3 var(--ui);
  background: rgba(22,22,25,.72); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
}
body.shell .fail { font-family: var(--ui); color: rgba(255,255,255,.75); }
body.shell .fail h1 { font: 800 2rem/1.1 var(--ui); letter-spacing: -.03em; color: #fff; }
@media (max-width: 600px) {
  body.shell .panel { left: 8px; right: 8px; width: auto; bottom: 78px; transform-origin: 50% 100%; }
}

body.app .inbox, body.shell .inbox { border-radius: 22px; background: rgba(22,22,25,.8); border-color: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); font-family: var(--ui); color: #fff; }
body.app .inbox a, body.shell .inbox a { border-top-color: rgba(255,255,255,.12); }
body.app .inbox a b, body.shell .inbox a b { color: #fff; }
body.app .inbox a span, body.app .inbox p, body.shell .inbox a span, body.shell .inbox p { color: rgba(255,255,255,.62); }

@media (prefers-reduced-motion: reduce) {
  .swipe svg, .skeleton::after, .cardwrap.arrive, dialog.tray[open], .toast2, body.shell .panel { animation: none; }
}
@media (max-height: 640px) { .paste h1, .intro h1 { margin-top: 2vh; font-size: 1.75rem; } }

/* ---------- a card's page: the image, then the evidence and the argument ---------- */
.thread { position: relative; z-index: 1; max-width: 34rem; margin: 0 auto; padding: 8px 20px calc(env(safe-area-inset-bottom) + 40px); }
.thread .cardwrap { width: min(100%, 25rem); margin: 0 auto 16px; }
.thread section { margin-top: 2.25rem; }
.thread h2 { font: 800 1.375rem/1.1 var(--ui); letter-spacing: -.03em; margin: 0 0 .8rem; }
.thread h2 small { font: 500 .9375rem/1 var(--ui); letter-spacing: 0; color: rgba(255,255,255,.6); margin-left: .35rem; }
.thread .ends { justify-content: space-between; margin-top: 2rem; }

/* Votes: one bar split three ways, with the counts under it. */
.votes3 { margin-top: 12px; }
.votes3 .bar3 { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.14); gap: 2px; }
.votes3 .bar3 i { display: block; min-width: 0; transition: flex-grow .5s var(--spring); }
.votes3 .bar3 .y { background: #3ddc97; } .votes3 .bar3 .s { background: rgba(255,255,255,.55); } .votes3 .bar3 .n { background: #ff7a59; }
.votes3 p { display: flex; justify-content: space-between; margin: 8px 0 0; font-size: .875rem; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.votes3 .status { margin-top: 4px; justify-content: flex-start; color: rgba(255,255,255,.6); }

.evidence { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.evidence li { border-radius: 20px; padding: 14px 16px; }
.evidence b { display: block; font-weight: 700; letter-spacing: -.01em; }
.evidence p { margin: .25rem 0 .4rem; color: rgba(255,255,255,.86); font-size: 1rem; }
.evidence a { font-size: .875rem; color: rgba(255,255,255,.7); text-decoration-color: rgba(255,255,255,.3); word-break: break-all; }
.origin { margin: 12px 0 0; font-size: .9375rem; color: rgba(255,255,255,.7); }
.origin a { color: #fff; }

.say { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 1.25rem; }
.say .field { flex: 1; padding: 12px 16px; border-radius: 22px; }
.say .field textarea { min-height: 2.9em; }
.say .btn { height: 48px; }
.talk .empty { color: rgba(255,255,255,.6); margin: 0; }
.cm { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 8px; margin-top: 16px; }
.cm .votes { display: flex; flex-direction: column; align-items: center; font: 700 .875rem/1 var(--ui); font-variant-numeric: tabular-nums; }
.cm .votes button { appearance: none; background: none; border: 0; padding: 0; width: 34px; height: 30px; color: rgba(255,255,255,.5); cursor: pointer; transition: transform .18s var(--spring), color .15s; }
.cm .votes button:active { transform: scale(.8); }
.cm .votes svg { width: 18px; height: 18px; }
.cm .votes .up.on { color: #3ddc97; } .cm .votes .down.on { color: #ff7a59; }
.cm .who { font-size: .8125rem; color: rgba(255,255,255,.6); margin: 5px 0 2px; }
.cm .who b { color: #fff; font-weight: 600; }
.cm .text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm .reply { appearance: none; background: none; border: 0; padding: 6px 0; font: 600 .8125rem/1 var(--ui); color: rgba(255,255,255,.6); cursor: pointer; }
.cm .kids { border-left: 1px solid rgba(255,255,255,.16); padding-left: 10px; margin-left: -4px; }
.cm .say { margin: 6px 0 0; }
body.app.scroll.cardpage .bar { position: relative; }
.dock.even .btn { flex: 1; }
.thread h3 { font: 700 1rem/1.2 var(--ui); letter-spacing: -.01em; margin: 1.5rem 0 .6rem; color: rgba(255,255,255,.8); }
/* The highlighter: one swipe in the ruling's colour, as on the card. */
.thread mark { background: var(--glow); color: #0c0c0e; font-weight: 800; padding: .08em .4em .12em; border-radius: .2em .5em .25em .45em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.verdictline { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; margin: 0 0 1rem; }
.voices { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1rem; margin: 0; font-size: .9375rem; }
.voices dt { font-weight: 700; }
.voices dd { margin: 0; color: rgba(255,255,255,.82); }
.evidence em { display: inline-block; font-style: normal; font-size: .8125rem; font-weight: 600; color: #ffb4a2; margin-top: .2rem; }
.dissent { margin: 0; border-radius: 20px; padding: 14px 16px; }
.dissent p { margin: 0 0 .5rem; font: 400 1.125rem/1.45 "Source Serif 4", Georgia, serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.dissent footer { font-size: .8125rem; color: rgba(255,255,255,.65); }
.thread .empty { color: rgba(255,255,255,.6); margin: 0; }
.opener { width: 100%; margin-top: 14px; }
.cm .who i { font-style: normal; margin-left: .5em; padding: 2px 7px; border-radius: 7px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.cm .who i.dissents { background: rgba(255,122,89,.25); color: #ffc2b3; }
.cm .who i.concurs { background: rgba(61,220,151,.2); color: #a8f0d1; }

/* ---------- the court of public opinion: its seal, its page, its docket ---------- */
.thread h2.sealed a { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.thread h2.sealed img { width: 56px; height: 56px; flex: none; }
.court { padding-top: 4vh; }
.court .seal { display: block; width: 168px; height: 168px; margin: 0 0 1.25rem -6px; }
.court h1 { font: 600 2.5rem/1.05 "Source Serif 4", Georgia, serif; letter-spacing: -.02em; margin: 0 0 .9rem; text-wrap: balance; }
.court .lede { font-weight: 400; font-size: 1.1875rem; line-height: 1.45; color: rgba(255,255,255,.86); margin: 0; }
.court section p { color: rgba(255,255,255,.82); margin: 0 0 1rem; }
.court .voices { margin-bottom: 1.1rem; }
.docket { list-style: none; margin: 0; padding: 0; }
.docket li { border-top: 1px solid rgba(255,255,255,.16); }
.docket li.empty { padding: 14px 0; }
.docket a { display: block; padding: 16px 0 15px; color: #fff; text-decoration: none; }
.docket q { display: block; font: 600 1.25rem/1.25 "Source Serif 4", Georgia, serif; letter-spacing: -.01em; text-wrap: pretty; }
.docket p { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; margin: .55rem 0 0; font-size: .875rem; }
.docket p b { font-weight: 700; }
.docket p span { color: rgba(255,255,255,.66); }
.docket a:active q { opacity: .7; }
