@font-face { font-family: 'Montserrat'; src: url('/fonts/Montserrat-latin.woff2') format('woff2'); font-weight: 100 900; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2713, U+2715, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: 'Mr Dafoe'; src: url('/fonts/MrDafoe-latin.woff2') format('woff2'); font-display: swap; }

:root {
  /* Purple neon theme, sampled from Matt's original site (border peak #a64fd6..#ab5dd7, logo #d067fe, card #231c2c). */
  --accent: #b45cf0;         /* borders, glows, active icons and text on dark */
  --accent-fill: #9440dd;    /* filled buttons, badges, + button (white text 5.2:1) */
  --accent-2: #d38bff;       /* mentions, hashtags, links */
  --accent-soft: rgba(var(--acc-rgb), 0.55);
  --accent-pale: #e9d5ff;
  --accent-deep: #2b1846;
  --acc-rgb: 180, 92, 240;
  --acc2-rgb: 211, 139, 255;
  --danger: #ff5a5f;
  --danger-fill: #e0303f;
  --bg: #131119;
  --card: #0b0b0d;
  --text: #f5f5f7;
  --muted: #9a9aa5;
  --line: #24242b;
  --nav-h: 74px;
  --glow: 0 0 6px rgba(var(--acc-rgb),.55), 0 0 18px rgba(var(--acc-rgb),.25);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: calc(15px * var(--ts, 1)); line-height: 1.4;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); }
@media (min-width: 700px) {
  .shell { border-left: 1px solid #141418; border-right: 1px solid #141418; background: rgba(0,0,0,.55); }
}

/* ---------- header ---------- */
.top { padding: 14px 16px 6px; position: sticky; top: 0; z-index: 20; background: rgba(19,17,25,.94); backdrop-filter: blur(8px); border-bottom: 1px solid #16161b; }
.top { display: flex; align-items: center; justify-content: center; min-height: 82px; }
.top-brand { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; }
.top .logo { margin: 4px auto 6px; }
.icon-row { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; height: 44px; }
.icon-row a { width: 44px; height: 44px; }
.logo { --drill: 44px; display: block; width: max-content; margin: 4px auto 6px; position: relative; padding: 0 26px 18px 0; }
.logo-drill { font-weight: 800; font-size: var(--drill); letter-spacing: calc(-1.5 / 44 * 1em); color: #fff; line-height: 1; text-shadow: 0 2px 0 #000; }
/* One placement for the whole wordmark, in Drill's em, matched to the header reference: S just left of the r, and the i just under the second l. The header uses this 44px size on every page. The entry wordmark still changes --drill only, so both words and this offset scale together. */
.logo-social {
  font-family: 'Mr Dafoe', cursive; font-size: calc(var(--drill) * 23 / 22); color: var(--accent); position: absolute;
  left: calc(var(--drill) * 0.41); top: calc(var(--logo-pad-top, 0px) + var(--drill) * 0.53);
  transform: rotate(-8deg); text-shadow: 0 0 8px rgba(var(--acc-rgb),.75), 0 0 22px rgba(var(--acc-rgb),.35); line-height: 1;
}
/* Full header on a 320px screen: the tail of Social crossed the calendar icon. Extra right padding shifts the whole pair left. The letters stay put relative to each other. */
@media (max-width: 340px) { .top .logo { padding-right: 48px; } }
.icon-row a { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: #f4f2fa; border-radius: 12px; filter: drop-shadow(0 0 5px rgba(255,255,255,.22)); }
.icon-row a svg { width: 30px; height: 30px; }
.icon-row a.active { color: var(--accent); filter: drop-shadow(0 0 6px rgba(var(--acc-rgb),.7)); }
.icon-row .badge { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent-fill); color: #fff; font-size: calc(10.5px * var(--ts, 1)); font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 8px var(--accent); }
.icon-row .badge[hidden] { display: none; }
.notif-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.notif { display: flex; gap: 11px; align-items: flex-start; padding: 11px 12px; border-radius: 16px; background: #111116; border: 1px solid #22222a; color: inherit; text-decoration: none; }
.notif.unread { border-color: rgba(var(--acc-rgb),.55); box-shadow: 0 0 12px rgba(var(--acc-rgb),.18); background: #17101a; }
.notif .ntext { flex: 1; min-width: 0; font-size: calc(14px * var(--ts, 1)); line-height: 1.35; }
.notif .nsnip { color: #cfcfd6; font-size: calc(13px * var(--ts, 1)); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif .ntime { color: var(--muted); font-size: calc(11.5px * var(--ts, 1)); margin-top: 3px; }
.notif .nthumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.notif .ngem svg { width: 15px; height: 15px; vertical-align: -2px; }
.icon-row .me-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1.5px solid currentColor; }

/* ---------- feed + cards ---------- */
main { padding: 6px 12px 0; outline: none; }
.card {
  background: var(--card); border: 1.5px solid var(--accent); border-radius: 18px; margin: 12px 0 18px; padding: 12px;
  box-shadow: 0 0 8px rgba(var(--acc-rgb),.55), 0 0 22px rgba(var(--acc-rgb),.22), inset 0 0 14px rgba(var(--acc-rgb),.08);
}
.post-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); box-shadow: 0 0 8px rgba(var(--acc-rgb),.5); background: #222; flex: none; }
.avatar.sm { width: 32px; height: 32px; border-width: 1.5px; }
.avatar.lg { width: 96px; height: 96px; border-width: 3px; }
.who { flex: 1; min-width: 0; }
.who .name { font-weight: 600; font-size: calc(17px * var(--ts, 1)); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .mood { color: var(--accent); font-size: calc(13.5px * var(--ts, 1)); display: flex; align-items: center; gap: 5px; }
.who .mood svg { width: 13px; height: 13px; }
.more { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; position: relative; }
.more svg { width: 22px; height: 22px; }
.menu {
  position: absolute; right: 0; top: 38px; background: #121216; border: 1px solid var(--accent-soft); border-radius: 12px; padding: 6px; z-index: 10;
  min-width: 170px; box-shadow: var(--glow); text-align: left;
}
.menu button { display: block; width: 100%; padding: 10px 12px; border-radius: 8px; text-align: left; font-size: calc(14px * var(--ts, 1)); }
.menu button:hover { background: #1d1d23; }
.menu .danger { color: #ff5a5f; }
.post-img { display: block; width: 100%; margin: 10px 0 8px; border-radius: 12px; border: 1px solid rgba(var(--acc-rgb),.45); background: #111; aspect-ratio: 3 / 2; object-fit: cover; }
.post-body { margin: 6px 2px 4px; font-size: calc(15px * var(--ts, 1)); white-space: pre-wrap; word-wrap: break-word; }
.post-body.text-only { font-size: calc(18px * var(--ts, 1)); font-weight: 500; padding: 14px 6px; }
.post-time { color: var(--muted); font-size: calc(12px * var(--ts, 1)); margin: 2px 2px 0; }
.actions { display: flex; align-items: center; gap: 22px; margin-top: 6px; padding: 2px; }
.act { display: flex; align-items: center; gap: 7px; font-size: calc(15px * var(--ts, 1)); color: #e6e6ea; min-height: 36px; position: relative; }
.act svg { width: 26px; height: 26px; }
.act.share { margin-left: auto; }
.act.share svg { width: 22px; height: 22px; }

/* ---------- gem like ---------- */
.gem svg { overflow: visible; transition: transform .15s ease; }
.gem .gem-body { fill: transparent; stroke: #f0f0f4; stroke-width: 1.5; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.gem .gem-facets { fill: none; stroke: #f0f0f4; stroke-opacity: .55; stroke-width: 1; stroke-linejoin: round; }
.gem .gem-shine { opacity: 0; }
.gem.liked .gem-body { fill: url(#gemFill); stroke: var(--accent-2); }
.gem.liked .gem-facets { stroke: #fff; stroke-opacity: .6; }
.gem.liked .gem-shine { opacity: .9; }
.gem.liked svg { filter: drop-shadow(0 0 4px rgba(var(--acc-rgb),.9)) drop-shadow(0 0 10px rgba(var(--acc-rgb),.5)); }
.act.gem:not(.liked) svg, .comment .cgem:not(.liked) svg, .cf-act.gem:not(.liked) svg,
.rx-pick .rx-it svg, button.gem.rx svg { filter: none; }
.gem.pop svg { animation: gemPop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes gemPop { 0% { transform: scale(1); } 35% { transform: scale(1.45) rotate(-8deg); } 100% { transform: scale(1); } }

/* Avoid 300ms tap delay / double-tap zoom on post surfaces */
article.post .post-body,
article.post img.post-img,
article.post canvas.post-img,
article.post a:has(> img.post-img),
article.post a:has(> canvas.post-img),
article.post a.pc-grid,
article.post a.fin-live-a {
  touch-action: manipulation;
}
article.post img.post-img,
article.post canvas.post-img,
article.post a:has(> img.post-img),
article.post a:has(> canvas.post-img),
article.post a.pc-grid,
article.post a.fin-live-a,
.embed img.post-img,
.embed a:has(> img.post-img),
.embed a.pc-grid {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
/* An inline <a> around a block photo leaves a 0×0 client rect at the photo's
   top-left. iOS Safari paints a text caret (and a collapsed :focus outline) there
   in the accent color, even before a touch. A block link has no strut. */
article.post a:has(> img.post-img),
article.post a:has(> canvas.post-img),
article.post a.fin-live-a,
.embed a:has(> img.post-img),
.embed a:has(> canvas.post-img) {
  display: block;
  line-height: 0;
  caret-color: transparent;
}
.spark { position: absolute; left: 13px; top: 50%; width: 10px; height: 10px; pointer-events: none; color: var(--accent-pale); animation: spark .7s ease-out forwards; }
.spark svg { width: 10px; height: 10px; filter: drop-shadow(0 0 3px var(--accent)); }
@keyframes spark {
  0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(90deg); opacity: 0; }
}

/* ---------- comments ---------- */
.comments { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.comment { display: flex; gap: 9px; padding: 7px 0; align-items: flex-start; }
.comment .bubble { background: #15151a; border: 1px solid #22222a; border-radius: 14px; padding: 7px 11px; flex: 1; min-width: 0; }
.comment .cname { font-weight: 600; font-size: calc(13.5px * var(--ts, 1)); }
.comment .ctext { font-size: calc(14px * var(--ts, 1)); white-space: pre-wrap; word-wrap: break-word; }
.comment .cmeta { color: var(--muted); font-size: calc(11.5px * var(--ts, 1)); margin-top: 2px; display: flex; gap: 10px; }
.comment .cmeta button { color: var(--muted); font-size: calc(11.5px * var(--ts, 1)); }
.comment .cgem { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 34px; min-height: 40px; padding-top: 6px; position: relative; color: var(--muted); font-size: calc(11.5px * var(--ts, 1)); }
.comment .cgem svg { width: 17px; height: 17px; }
.comment .cgem.liked { color: var(--accent-2); }
.comment .cgem .spark { left: 12px; top: 14px; }
.comment-form { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.comment-form input { flex: 1; }
.empty-comments { color: var(--muted); font-size: calc(13.5px * var(--ts, 1)); padding: 6px 2px; }

/* ---------- forms ---------- */
input[type=text], input[type=password], input[type=email], input[type=url], input[type=datetime-local], input:not([type]), textarea {
  width: 100%; box-sizing: border-box; background: #0f0f13; border: 1.5px solid #2a2a33; border-radius: 12px; color: var(--text); padding: 12px 14px; font: inherit;
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--acc-rgb),.18); outline: none; }
textarea { resize: vertical; min-height: 110px; }
.btn {
  background: var(--accent-fill); color: #fff; font-weight: 700; border-radius: 999px; padding: 12px 20px; box-shadow: 0 0 14px rgba(var(--acc-rgb),.55);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn[hidden] { display: none !important; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: calc(14px * var(--ts, 1)); }
.btn.block { width: 100%; }
.send-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-fill); display: grid; place-items: center; box-shadow: 0 0 10px rgba(var(--acc-rgb),.5); flex: none; }
.send-btn svg { width: 20px; height: 20px; }
.field { margin: 12px 0; }
.field label { display: block; font-size: calc(13px * var(--ts, 1)); color: var(--muted); margin-bottom: 6px; }
.pw-wrap { position: relative; }
.pw-wrap > input { padding-right: 48px; }
.pw-toggle {
  position: absolute; right: 1px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  display: grid; place-items: center;
  background: transparent; border: 0; padding: 0;
  color: var(--muted); cursor: pointer; border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--accent-2); }
.pw-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .22); }
.pw-toggle[aria-pressed="true"] { color: var(--accent-2); }
.pw-toggle svg { width: 22px; height: 22px; display: block; filter: drop-shadow(0 0 6px rgba(var(--acc-rgb), .5)); }
.error { color: #ff5a5f; font-size: calc(14px * var(--ts, 1)); min-height: 20px; margin: 6px 0; }
h1.page-title { font-size: calc(22px * var(--ts, 1)); margin: 10px 4px 4px; font-weight: 700; }
.sub { color: var(--muted); margin: 0 4px 10px; }

/* auth */
.tabs { display: flex; background: #101014; border-radius: 999px; padding: 4px; margin: 6px 0 14px; border: 1px solid #22222a; }
.tabs button { flex: 1; padding: 10px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.tabs button.on { background: var(--accent-fill); color: #fff; box-shadow: 0 0 10px rgba(var(--acc-rgb),.5); }
.demo-hint { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); text-align: center; margin-top: 14px; }

/* new post */
.photo-picker {
  display: flex; align-items: center; justify-content: center; width: max-content; max-width: 100%; min-height: 42px; margin: 2px 0 12px;
  padding: 8px 14px; border: 1.5px solid var(--accent-soft); border-radius: 999px; color: #e6e6ea;
  background: rgba(var(--acc-rgb),.08); cursor: pointer; position: relative; overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.photo-picker:hover, .photo-picker:focus-visible, .photo-picker.dragging { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--acc-rgb),.16), var(--glow-soft); outline: none; }
.photo-picker-inner { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: calc(14px * var(--ts, 1)); }
.photo-picker-inner svg { width: 20px; height: 20px; color: var(--accent); filter: drop-shadow(0 0 5px rgba(var(--acc-rgb),.7)); }
.photo-picker img { display: block; width: 100%; max-height: 360px; object-fit: contain; border-radius: 10px; }
.photo-picker .hint { color: var(--accent-2); font-size: calc(12px * var(--ts, 1)); margin-top: 8px; font-weight: 500; }
.photo-picker .remove { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; background: rgba(0,0,0,.72); border: 1px solid var(--accent); border-radius: 999px; padding: 0; font-size: calc(18px * var(--ts, 1)); line-height: 1; }
.moods { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid #33333d; border-radius: 999px; padding: 7px 12px; font-size: calc(13.5px * var(--ts, 1)); color: #ddd; }
.chip.on { border-color: var(--accent); color: #fff; background: rgba(var(--acc-rgb),.16); box-shadow: 0 0 8px rgba(var(--acc-rgb),.35); }
.counter { text-align: right; color: var(--muted); font-size: calc(12px * var(--ts, 1)); margin-top: 4px; }

/* profile */
.profile-head { position: relative; text-align: center; padding: 14px 10px 6px; }
.profile-head.me { padding: 10px 10px 2px; }
.profile-head.me .stats { margin: 10px auto 4px; }   /* ds-v647: auto sides so the row stays centered (was margin 0 sides, which beat the desktop auto margins) */
.profile-head.me + #profEvents:empty + .seg.tabs,
.profile-head.me + .seg.tabs { margin-top: 4px; }
.profile-head h2 { margin: 10px 0 0; font-size: calc(22px * var(--ts, 1)); }
.profile-head .handle { color: var(--accent); font-size: calc(14px * var(--ts, 1)); }
.profile-head .bio { color: #d4d4da; margin: 8px auto; max-width: 340px; white-space: pre-wrap; }
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px; margin: 12px auto; width: 100%; max-width: 100%;
  box-sizing: border-box; text-align: center;
}
.stats > * { min-width: 0; }
.stats b { display: block; font-size: calc(18px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats span { color: var(--muted); font-size: calc(12px * var(--ts, 1)); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-actions { display: flex; gap: 10px; justify-content: center; margin: 8px 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.grid3 a { aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid rgba(var(--acc-rgb),.35); background: #111; display: block; position: relative; }
.grid3 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid3 .txt { padding: 8px; font-size: calc(12px * var(--ts, 1)); color: #ddd; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; height: 100%; background: linear-gradient(135deg, #1a0c14, #0b0b0d); }
.section-label { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); text-transform: uppercase; letter-spacing: 1.5px; margin: 14px 4px 8px; }

/* discover */
.creators { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 12px; scrollbar-width: none; }
.creators a { text-align: center; font-size: calc(12px * var(--ts, 1)); width: 70px; flex: none; }
.creators .avatar { width: 60px; height: 60px; margin: 0 auto 4px; display: block; }
.creators span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* placeholder */
.placeholder { text-align: center; padding: 40px 18px; }
.placeholder .big-gem svg { width: 84px; height: 84px; }
.placeholder h2 { margin: 16px 0 6px; }
.placeholder p { color: var(--muted); max-width: 320px; margin: 0 auto; }
.soon { display: inline-block; margin-top: 16px; border: 1px solid var(--accent); color: var(--accent); padding: 5px 12px; border-radius: 999px; font-size: calc(12px * var(--ts, 1)); letter-spacing: 1px; text-transform: uppercase; }

/* bottom nav */
.bottom {
  position: fixed; bottom: 0; left: 0; right: 0; margin: 0 auto; width: 100%; max-width: 480px; z-index: 30;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(8,8,10,.96); border-top: 1px solid #1e1e24; display: flex; align-items: center; justify-content: space-around;
  backdrop-filter: blur(10px);
}
.bottom a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: calc(11.5px * var(--ts, 1)); color: #c9c9d0; width: 72px; }
.bottom a svg { width: 27px; height: 27px; }
.bottom a.active { color: var(--accent); }
.bottom a.active svg { filter: drop-shadow(0 0 5px rgba(var(--acc-rgb),.75)); }
.bottom a.plus { width: 62px; height: 62px; border-radius: 50%; background: var(--accent-fill); color: #fff; justify-content: center; margin-top: -26px;
  box-shadow: 0 0 0 4px var(--bg), 0 0 18px rgba(var(--acc-rgb),.85), 0 0 40px rgba(var(--acc-rgb),.35); }
.bottom a.plus svg { width: 30px; height: 30px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 22px); transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: #16161b; border: 1px solid var(--accent); color: #fff; padding: 10px 18px; border-radius: 999px; box-shadow: var(--glow); transition: all .25s; z-index: 50; font-size: calc(14px * var(--ts, 1));
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.loading { text-align: center; color: var(--muted); padding: 30px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: calc(14px * var(--ts, 1)); margin: 6px 4px 0; }
.back svg { width: 18px; height: 18px; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 420px; }
.edit-area textarea { min-height: 80px; margin-top: 8px; }
.edit-area .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

/* ---------- Cloudflare edition additions ---------- */
.shell { padding-top: env(safe-area-inset-top); }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.tabs a { flex: 1; padding: 10px; border-radius: 999px; font-weight: 600; color: var(--muted); text-align: center; }
.tabs a.on { background: var(--accent-fill); color: #fff; box-shadow: 0 0 10px rgba(var(--acc-rgb),.5); }
.hidden-badge { margin-top: 8px; font-size: calc(12.5px * var(--ts, 1)); color: #ffc2c4; background: rgba(255,90,95,.12); border: 1px dashed #ff5a5f; border-radius: 10px; padding: 6px 10px; }
.reasons { display: grid; gap: 8px; margin: 6px 0 4px; }
.reason { display: flex; align-items: center; gap: 10px; border: 1.5px solid #2a2a33; border-radius: 12px; padding: 10px 12px; cursor: pointer; position: relative; }
.reason input:checked + span::before { content: ''; position: absolute; inset: -1.5px; border: 1.5px solid var(--accent); border-radius: 12px; background: rgba(var(--acc-rgb),.1); pointer-events: none; }   /* no relational selector (costly for WebKit) */
.reason input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.pill { display: inline-block; font-size: calc(11px * var(--ts, 1)); border: 1px solid #ff5a5f; color: #ff5a5f; border-radius: 999px; padding: 1px 8px; vertical-align: middle; }
.report-row { display: flex; gap: 12px; align-items: flex-start; }
.report-row img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(var(--acc-rgb),.45); }
.report-body { font-size: calc(14px * var(--ts, 1)); color: #ddd; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.danger-btn { border-color: #ff5a5f !important; color: #ff5a5f !important; background: transparent; box-shadow: none; }
.btn.danger-btn:not(.ghost) { background: #e0303f; color: #fff !important; }
.danger-zone { margin: 10px 0 4px; border: 1px solid #3a1f28; border-radius: 12px; padding: 10px 12px; }
.danger-zone summary { cursor: pointer; color: #ff5a5f; font-size: calc(14px * var(--ts, 1)); }
.modal { max-height: 90vh; overflow-y: auto; }
#turnstile { margin: 8px 0; min-height: 0; }
.photo-picker .hint#sizeHint { margin-top: 8px; color: var(--accent-2); }
@media (display-mode: standalone) { .top { padding-top: calc(10px + var(--sat)); } }

/* composer bar (top of the Glo Board) */
.composer { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; padding: 10px 12px; background: var(--card);
  border: 1px solid #1f1f26; border-radius: 18px; }
.composer .avatar.sm { width: 40px; height: 40px; }
.composer-input { flex: 1; min-width: 0; border: 1.5px solid var(--accent); border-radius: 999px; padding: 10px 16px; color: #b9b9c3; font-size: calc(15px * var(--ts, 1));
  box-shadow: 0 0 8px rgba(var(--acc-rgb),.45), inset 0 0 8px rgba(var(--acc-rgb),.08); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer:hover .composer-input { color: #fff; }
.composer-photo { color: var(--accent); display: grid; place-items: center; width: 36px; height: 36px; filter: drop-shadow(0 0 5px rgba(var(--acc-rgb),.7)); }
.composer-photo svg { width: 26px; height: 26px; }

.avatar-edit { position: relative; display: inline-block; padding: 0; background: none; border: 0; cursor: pointer; }
.avatar-edit .cam, .avatar-edit .edit-badge { position: absolute; right: -2px; bottom: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-fill); color: #fff; display: grid; place-items: center; box-shadow: 0 0 10px rgba(var(--acc-rgb),.7); border: 2px solid #000; pointer-events: none; }
.avatar-edit .cam svg, .avatar-edit .edit-badge svg { width: 15px; height: 15px; }
.avatar-row { display: flex; align-items: center; gap: 14px; }
.avatar-row .avatar.lg { width: 72px; height: 72px; }
.avatar-btns { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.avatar-btns label.btn { cursor: pointer; color: #fff; margin: 0; font-size: calc(14px * var(--ts, 1)); }

.shared-label { color: var(--muted); font-size: calc(13.5px * var(--ts, 1)); font-weight: 400; }
.embed { border: 1px solid rgba(var(--acc-rgb),.35); border-radius: 14px; padding: 10px; margin: 8px 0 6px; background: #0d0d11; }
.embed .post-img { margin: 8px 0 6px; }
.embed-head { display: flex; gap: 9px; align-items: center; }
.embed-head .name { font-weight: 600; font-size: calc(14px * var(--ts, 1)); }
.embed-body { display: block; color: inherit; text-decoration: none; font-size: calc(14.5px * var(--ts, 1)); white-space: pre-wrap; word-wrap: break-word; margin: 4px 2px; }
.embed-link { display: inline-block; color: var(--accent); font-size: calc(12.5px * var(--ts, 1)); margin: 4px 2px 0; }
.embed.gone { color: var(--muted); font-style: italic; text-align: center; padding: 22px 10px; }

.embed-wip {
  display: flex; flex-direction: column; gap: 0; margin: 8px 0 6px;
  border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit;
  border: 1px solid rgba(var(--acc-rgb), .4);
  background: #121218;
}
.embed-wip-cover { display: block; background: #0a0a0e; }
.embed-wip-cover .post-img { margin: 0; border-radius: 0; border: 0; }
.embed-wip-cover.empty {
  display: grid; place-items: center; aspect-ratio: 16 / 9; background: #18181f;
}
.embed-wip-cover.empty .gem svg { width: 36px; height: 36px; }
.embed-wip-info { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.embed-wip-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 700; font-size: calc(14.5px * var(--ts, 1)); }
.embed-wip-title .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.embed-wip-prog { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); font-weight: 600; }
.embed-wip-prog .pbar { flex: 1; margin: 0; }
.wip-chip {
  display: inline-flex; align-items: center;
  font-size: calc(11px * var(--ts, 1)); font-weight: 700; padding: 3px 8px; border-radius: 999px;
  color: var(--accent-2); background: rgba(var(--acc-rgb), .14);
  border: 1px solid rgba(var(--acc-rgb), .45); white-space: nowrap;
}
.embed-wip.gone, .embed .embed-wip.gone {
  display: block; color: var(--muted); font-style: italic; text-align: center;
  padding: 16px 10px; border-style: dashed;
}
.sheet-bg { place-items: end center; padding: 0; align-content: end; }
.sheet {
  max-width: 520px; width: 100%;
  max-height: 85vh; max-height: 85dvh;
  overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 22px 22px 0 0;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  /* Own stacking/scroll context so iOS scrolls the sheet, not the page */
  touch-action: pan-y;
}
.sheet-grip { width: 42px; height: 4px; border-radius: 2px; background: #444; margin: 0 auto 12px; flex: none; }
html.sheet-lock, body.sheet-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}
.sheet textarea { width: 100%; }
.sheet .btn svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.sheet-sec { display: flex; gap: 10px; margin-top: 14px; border-top: 1px solid #22222a; padding-top: 12px; }
.sheet-opt { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px; border-radius: 14px; background: #15151a; border: 1px solid #26262e; color: #e6e6ea; font-size: calc(13px * var(--ts, 1)); }
.sheet-opt svg { width: 22px; height: 22px; }
.who-line { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }

.seg { display: flex; background: #111116; border: 1px solid #26262e; border-radius: 999px; padding: 4px; margin: 4px 0 12px; }
.seg button { flex: 1; padding: 8px 0; border-radius: 999px; font-weight: 600; font-size: calc(14px * var(--ts, 1)); color: #bdbdc6; }
.seg button[aria-selected="true"] { background: var(--accent-fill); color: #fff; box-shadow: 0 0 12px rgba(var(--acc-rgb),.55); }
.stats a { color: inherit; text-decoration: none; }
.user-row { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.user-row .user-link { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.follow-btn { flex: none; min-width: 92px; }
.follow-btn.big { min-width: 140px; }
.search input { width: 100%; border-radius: 999px; padding: 12px 18px; font-size: calc(15px * var(--ts, 1)); min-height: 46px; box-sizing: border-box; }
.search { margin: 6px 0 4px; }

.seg.tabs a { flex: 1; text-align: center; padding: 8px 0; border-radius: 999px; font-weight: 600; font-size: calc(14px * var(--ts, 1)); color: #bdbdc6; text-decoration: none; }
.seg.tabs a[aria-selected="true"] { background: var(--accent-fill); color: #fff; box-shadow: 0 0 12px rgba(var(--acc-rgb),.55); }
.pbar { height: 8px; border-radius: 99px; background: #23232b; overflow: hidden; margin: 8px 0 4px; }
.pbar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-fill), var(--accent), var(--accent-2)); box-shadow: 0 0 8px rgba(var(--acc-rgb),.7); }
.pbar.done span { background: linear-gradient(90deg, var(--accent), var(--accent-pale)); }
.fin-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(var(--acc-rgb),.16); border: 1px solid rgba(var(--acc-rgb),.7); color: var(--accent-pale); font-size: calc(11.5px * var(--ts, 1)); font-weight: 700; padding: 3px 8px 3px 5px; border-radius: 999px; vertical-align: middle; }
.fin-badge .gem svg { width: 14px; height: 14px; }
.wip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wip-card { display: block; border-radius: 16px; overflow: hidden; background: #111116; border: 1px solid #26262e; color: inherit; text-decoration: none; }
.wip-card.finished { border-color: rgba(var(--acc-rgb),.6); box-shadow: 0 0 12px rgba(var(--acc-rgb),.2); }
.wip-cover { position: relative; aspect-ratio: 1; background: #0b0b0f; }
.wip-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wip-cover .fin-badge { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.72); }
.wip-nocover { height: 100%; display: grid; place-items: center; }
.wip-nocover svg { width: 46px; height: 46px; }
.wip-info { padding: 9px 10px 10px; }
.wip-name { font-weight: 700; font-size: calc(14.5px * var(--ts, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wip-meta { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font-size: calc(11.5px * var(--ts, 1)); flex-wrap: wrap; }
.wip-head .wip-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.wip-head h1 { font-size: calc(22px * var(--ts, 1)); margin: 4px 0; }
.wip-status { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); border: 1px solid #33333d; padding: 2px 8px; border-radius: 999px; }
.wip-owner { display: inline-flex; align-items: center; gap: 8px; color: #e6e6ea; text-decoration: none; font-weight: 600; font-size: calc(14px * var(--ts, 1)); margin: 4px 0 6px; }
.wip-head .wip-meta { font-size: calc(13px * var(--ts, 1)); }
.wip-notes { white-space: pre-wrap; color: #d4d4da; font-size: calc(14px * var(--ts, 1)); margin: 10px 0 0; }
.wip-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* Session timer on WIP page */
.wip-timer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.wip-timer.running { padding: 8px 12px; border-radius: 12px; background: rgba(var(--acc-rgb),.08); border: 1px solid rgba(var(--acc-rgb),.35); }
.timer-clock { font-variant-numeric: tabular-nums; font-weight: 700; font-size: calc(18px * var(--ts, 1)); color: var(--accent); letter-spacing: .02em; text-shadow: 0 0 10px rgba(var(--acc-rgb),.45); }
.tl-dot.sess { background: var(--accent); box-shadow: 0 0 8px rgba(var(--acc-rgb),.7); }
.tl-sess { color: #d4d4da; margin: 4px 0 0; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), rgba(var(--acc-rgb),.15)); }
.tl-item { position: relative; margin-bottom: 12px; }
.tl-dot { position: absolute; left: -20px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 8px var(--accent); }
.tl-card { margin: 0; }
.tl-date { color: var(--accent-pale); font-size: calc(13px * var(--ts, 1)); }
.tl-photos { display: grid; gap: 6px; margin-top: 8px; grid-template-columns: 1fr 1fr; }
.tl-photos.n1 { grid-template-columns: 1fr; }
.tl-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; border: 1px solid rgba(var(--acc-rgb),.35); }
.tl-photos.n1 img { aspect-ratio: 4 / 3; }
.tl-photos.edit { grid-template-columns: repeat(4, 1fr); }
.tl-note { white-space: pre-wrap; margin: 8px 0 0; font-size: calc(14.5px * var(--ts, 1)); }
.rm-photo { padding: 0; border: 0; background: none; position: relative; }
.rm-photo.removing img { opacity: .3; outline: 2px solid var(--danger); }
.check { display: flex; align-items: center; gap: 8px; font-size: calc(14.5px * var(--ts, 1)); margin: 6px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wip-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(var(--acc-rgb),.5); }
.wip-post-head { font-size: calc(14.5px * var(--ts, 1)); color: #d4d4da; margin: 4px 2px 0; }
.wip-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.wip-mini { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); text-decoration: none; margin: 4px 2px; }
.wip-mini .pbar { flex: 1; margin: 0; }
.wip-mini .go { color: var(--accent); font-weight: 600; }
input[type=range] { width: 100%; accent-color: var(--accent); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; animation: lbIn .16s ease; }
.lightbox.closing { opacity: 0; transition: opacity .15s; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; touch-action: none; overflow: hidden; }
.lb-img { max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; object-fit: contain; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lb-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(20,20,26,.75); border: 1px solid rgba(var(--acc-rgb),.6); color: #fff; display: grid; place-items: center; }
.lb-x svg { width: 22px; height: 22px; }
.lb-save { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 62px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(20,20,26,.75); border: 1px solid rgba(var(--acc-rgb),.6); color: #fff; display: grid; place-items: center; }
.lb-save svg { width: 21px; height: 21px; }
body.lb-lock { overflow: hidden; }
article.post img.post-img, .embed img.post-img, .wip-head img.post-img, .tl-photos:not(.edit) img, .post-head img.avatar, .comment img.avatar, .profile-head > img.avatar { cursor: zoom-in; }

/* ---------- @mentions, #tags, autocomplete ---------- */
a.mention, a.hashtag, span.mention, span.hashtag { color: var(--accent-2); font-weight: 600; text-decoration: none; }
a.url, span.url { color: var(--accent-2); text-decoration: none; overflow-wrap: anywhere; }
a.url:hover { text-decoration: underline; }
a.mention:hover, a.hashtag:hover { text-decoration: underline; }
.tag-title { color: var(--accent-2); word-break: break-word; }
.more-btn { display: block; margin: 12px auto 24px; }
.feed-sentinel { height: 1px; width: 100%; pointer-events: none; }
.feed-end { text-align: center; padding: 10px 16px 28px; }
.feed-caught { margin: 0; color: var(--muted); font-size: calc(13.5px * var(--ts, 1)); }
.mention-ac { position: fixed; z-index: 1200; max-height: 220px; overflow-y: auto; overflow-x: hidden; background: #141016; border: 1px solid var(--accent-soft);
  border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(var(--acc-rgb),0.25); padding: 4px;
  -webkit-overflow-scrolling: touch; color: #e8e8ee; }
.mention-ac .ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.mention-ac .ac-item.on, .mention-ac .ac-item:hover { background: rgba(var(--acc-rgb),0.16); }
.mention-ac .ac-item div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mention-ac .ac-item b { color: #fff; font-size: calc(14.5px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; }
.mention-ac .ac-item span { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-ac .ac-item em { font-style: normal; font-size: calc(11.5px * var(--ts, 1)); color: var(--accent-2); border: 1px solid var(--accent-soft); border-radius: 999px; padding: 2px 8px; }
.more-btn[hidden] { display: none; }

/* ---------- Discover: Fresh Finishes ---------- */
.finishes { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.finishes::-webkit-scrollbar { display: none; }

/* ---------- private messages ---------- */
.bottom a { position: relative; }
.bottom .nav-badge { position: absolute; top: -2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent-fill); color: #fff;
  font-size: calc(10.5px * var(--ts, 1)); font-weight: 700; font-style: normal; line-height: 17px; text-align: center; box-shadow: 0 0 8px var(--accent); }
.bottom .nav-badge[hidden] { display: none; }
.seg-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #2a2a33; color: #fff; font-size: calc(11.5px * var(--ts, 1)); line-height: 18px; }
.seg-count.hot { background: #fff; color: var(--accent); }
.conv-list { display: flex; flex-direction: column; gap: 8px; }
.conv-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #0f0f13; border: 1px solid #22222a; color: #fff; text-decoration: none; }
.conv-row.unread { border-color: var(--accent-soft); box-shadow: 0 0 12px rgba(var(--acc-rgb),0.18); }
.conv-row .avatar { width: 50px; height: 50px; flex: none; }
.cv-main { flex: 1; min-width: 0; }
.cv-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.cv-top b { font-size: calc(15.5px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-time { color: var(--muted); font-size: calc(12px * var(--ts, 1)); flex: none; }
.cv-prev { color: var(--muted); font-size: calc(14px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.conv-row.unread .cv-prev { color: #fff; font-weight: 600; }
.cv-prev .pill { border-color: var(--accent-soft); color: var(--accent-2); }
.unread-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 10px var(--accent); flex: none; }
.thread-head { position: sticky; top: 64px; z-index: 15; display: flex; align-items: center; gap: 8px; padding: 8px 4px; margin: -4px -4px 8px; background: rgba(0, 0, 0, 0.94); border-bottom: 1px solid #1c1c22; }
.thread-head .back { margin: 0; padding: 6px; display: grid; place-items: center; }
.thread-head .back svg { width: 22px; height: 22px; }
.th-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.th-who div { display: flex; flex-direction: column; min-width: 0; }
.th-who b { font-size: calc(15.5px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-who span { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); }
.thread { display: flex; flex-direction: column; gap: 6px; padding: 4px 2px 10px; min-height: 40vh; }
.dm {
  max-width: 78%; align-self: flex-start; position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  background: transparent; color: #fff; padding: 0; border: 0; box-shadow: none;
}
.dm.mine { align-self: flex-end; align-items: flex-end; background: transparent; box-shadow: none; }
.dm-bubble {
  max-width: 100%; padding: 8px 12px 5px; border-radius: 18px;
  background: #1b1b22; border-bottom-left-radius: 6px; color: #fff;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.dm.mine .dm-bubble {
  background: linear-gradient(135deg, var(--accent-fill), var(--accent-fill));
  border-bottom-left-radius: 18px; border-bottom-right-radius: 6px;
  box-shadow: 0 0 12px rgba(var(--acc-rgb),0.3);
}
/* Gem count > 0 only: in normal flow under the bubble, outer-edge aligned */
.dm-gem {
  position: static; z-index: 1;
  height: 20px; min-width: 20px; margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  padding: 0 5px; border-radius: 999px;
  border: 1px solid rgba(var(--acc-rgb), .6);
  background: rgba(10, 10, 14, .94);
  color: var(--accent-2);
  box-shadow: 0 0 8px rgba(var(--acc-rgb), .3);
  font-size: calc(9px * var(--ts, 1)); font-weight: 700; line-height: 1;
  cursor: pointer; align-self: flex-start; /* received: outer (left) edge */
}
.dm.mine .dm-gem { align-self: flex-end; } /* sent: outer (right) edge */
.dm-gem[hidden] { display: none !important; }
.dm-gem svg { width: 10px; height: 10px; flex: none; }
.dm-gem span { font-variant-numeric: tabular-nums; }
.dm-gem.on {
  border-color: rgba(var(--acc-rgb), .95);
  box-shadow: 0 0 10px rgba(var(--acc-rgb), .45);
}
.dm-gem:disabled { opacity: .5; cursor: wait; }
.dm-gem:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Messenger-style DM long-press menu */
body.dm-menu-open { overflow: hidden; }
.dm-menu-bg { position: fixed; inset: 0; z-index: 90; }
.dm-menu-scrim {
  position: absolute; inset: 0; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .58);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.dm-menu-stack {
  position: absolute; z-index: 1;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start;
  transform: scale(.9); opacity: 0;
  transition: transform .22s cubic-bezier(.2, 1.35, .4, 1), opacity .18s ease;
  pointer-events: none;
}
.dm-menu-stack.mine { align-items: flex-end; }
.dm-menu-bg.show .dm-menu-stack { transform: scale(1); opacity: 1; pointer-events: auto; }
.dm-react-bar {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 9px; border-radius: 999px;
  background: #1a1a22;
  border: 1px solid rgba(var(--acc-rgb), .5);
  box-shadow: 0 0 18px rgba(var(--acc-rgb), .28), 0 8px 24px rgba(0,0,0,.35);
}
.dm-react-gem {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #121218;
  border: 1px solid rgba(var(--acc-rgb), .4);
  color: var(--accent-2);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.dm-react-gem svg { width: 38px; height: 38px; }
.dm-react-gem.on {
  background: rgba(var(--acc-rgb), .22);
  border-color: rgba(var(--acc-rgb), .95);
  box-shadow: 0 0 16px rgba(var(--acc-rgb), .55);
  color: #fff;
}
.dm-react-gem:active { transform: scale(.9); }
/* all seven reactions in the hold menu, and the kinds used under the message.
   Artwork is 38px, the same as the post picker. The circle stays 40px so the gem fills it
   (1px border, 38px content box) and is not clipped. flex-shrink stays 0 so a narrow row
   cannot squash the artwork. */
.dm-react-bar .dm-rx-k { width: 40px; height: 40px; flex: 0 0 40px; overflow: visible; animation: dmRxIn .22s cubic-bezier(.2, 1.35, .4, 1) both; animation-delay: calc(var(--i, 0) * 25ms); }
.dm-react-bar .dm-rx-k svg { width: 38px; height: 38px; }
@media (max-width: 420px) {
  .dm-react-bar { gap: 2px; padding: 6px 4px; }
  .dm-react-bar .dm-rx-k { width: 40px; height: 40px; flex-basis: 40px; }
  .dm-react-bar .dm-rx-k svg { width: 38px; height: 38px; }
}
/* 320px iPhone: the hold menu is at most viewport-24 wide. Tighten the pill so seven 40px circles stay on screen. */
@media (max-width: 325px) {
  .dm-react-bar { gap: 1px; padding: 4px 2px; }
}
@keyframes dmRxIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dm-gem .dm-rx-i { display: inline-flex; font-style: normal; }
.dm-gem .dm-rx-i + .dm-rx-i { margin-left: -1px; }
.dm-gem .dm-rx-i svg { width: 12px; height: 12px; }
.dm-menu-bubble-slot { max-width: 100%; }
.dm-menu-bubble-slot .dm-bubble {
  box-shadow: 0 10px 32px rgba(0,0,0,.5), 0 0 18px rgba(var(--acc-rgb), .28);
  animation: dmBubbleLift .22s cubic-bezier(.2, 1.35, .4, 1);
}
@keyframes dmBubbleLift {
  from { transform: scale(.96); }
  to { transform: scale(1); }
}
.dm-action-sheet {
  width: 100%; max-width: 280px;
  border-radius: 14px; overflow: hidden;
  background: #1c1c24;
  border: 1px solid #2c2c36;
  box-shadow: 0 12px 36px rgba(0,0,0,.45);
}
.dm-action-sheet button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 16px;
  background: transparent; border: 0; border-bottom: 1px solid #2a2a34;
  color: #f2f2f6; font-size: calc(16px * var(--ts, 1)); font-weight: 500; text-align: left; cursor: pointer;
}
.dm-action-sheet button:last-child { border-bottom: 0; }
.dm-action-sheet button:active { background: #24242e; }
.dm-action-sheet button svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.dm-action-sheet button.danger { color: #ff5a5f; }
.dm-action-sheet button.danger svg { color: #ff5a5f; }
.dm-text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: calc(15px * var(--ts, 1)); line-height: 1.35; }
.dm time { display: block; font-size: calc(10.5px * var(--ts, 1)); opacity: 0.7; margin-top: 2px; text-align: right; }
.dm-photo { display: block; max-width: 100%; max-height: 300px; border-radius: 12px; margin: 2px 0 6px; cursor: zoom-in; background: #111; }
.dm-intro { text-align: center; padding: 28px 12px; }
.dm-intro .avatar { margin: 0 auto 8px; display: block; }
.dm-banner { margin: 8px 0; padding: 14px; border-radius: 16px; border: 1px solid var(--accent-soft); background: rgba(var(--acc-rgb),0.07); }
.dm-banner p { margin: 0 0 10px; font-size: calc(14.5px * var(--ts, 1)); }
.dm-banner .row { display: flex; gap: 8px; flex-wrap: wrap; }
#thFoot { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 4px); z-index: 12; padding-top: 6px; background: linear-gradient(to bottom, transparent, var(--bg) 30%); }
.dm-compose { display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-radius: 22px;
  background: #121217; border: 1px solid var(--accent-soft); box-shadow: 0 0 16px rgba(var(--acc-rgb),0.2); }
.dm-input { flex: 1; min-width: 0; }
.dm-input textarea { width: 100%; min-height: 38px; max-height: 180px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-padding: 8px 0; resize: none; border: 0; background: transparent; color: #fff; font: inherit; font-size: calc(15px * var(--ts, 1)); padding: 8px 4px; outline: none; }
.dm-photo-btn, .dm-send { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.dm-photo-btn { color: var(--accent-2); border: 1px solid var(--accent-soft); }
.dm-photo-btn svg, .dm-send svg { width: 20px; height: 20px; }
.dm-send { background: var(--accent-fill); color: #fff; box-shadow: 0 0 10px var(--accent-soft); }
.dm-send:disabled { opacity: 0.5; }
#dmPrev { position: relative; display: inline-flex; align-items: flex-end; gap: 6px; margin: 2px 0 4px; }
#dmPrev[hidden] { display: none; }
#dmPrev img { height: 64px; border-radius: 10px; border: 1px solid var(--accent-soft); }
#dmPrev button { position: absolute; top: -6px; left: 52px; width: 22px; height: 22px; border-radius: 50%; background: #000; border: 1px solid var(--accent-soft); color: #fff; line-height: 18px; }
#dmPrev span { font-size: calc(11px * var(--ts, 1)); color: var(--muted); }
.msg-btn { display: inline-flex; align-items: center; gap: 6px; }
.msg-btn svg { width: 17px; height: 17px; }
.profile-actions .prof-more { border: 1px solid #2a2a33; }
.admin-chat { max-height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.ac-msg { padding: 8px 10px; border-radius: 12px; background: #15151a; }
.ac-msg .dm-photo { max-height: 200px; margin-top: 6px; }

/* Messages: New message button + people picker */
.msg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.msg-head .page-title { margin-bottom: 0; }
.new-msg { display: inline-flex; align-items: center; gap: 6px; }
.new-msg svg, .msg-empty .btn svg { width: 18px; height: 18px; vertical-align: -3px; }
.msg-head + .seg { margin-top: 14px; }
.msg-empty .btn { margin-top: 16px; }
.picker input[type=search] { width: 100%; box-sizing: border-box; background: #0f0f13; border: 1.5px solid #2a2a33; border-radius: 12px; color: var(--text); padding: 12px 14px; font: inherit; }
.pk-list { margin-top: 10px; max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.pk-sec { font-size: calc(12px * var(--ts, 1)); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 8px 4px 2px; }
.pk-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 14px; background: #15151a; border: 1px solid #26262e; color: #fff; text-align: left; cursor: pointer; font: inherit; }
.pk-row:hover, .pk-row:focus-visible { border-color: var(--accent-soft); }
.pk-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-who span { color: var(--muted); font-size: calc(13px * var(--ts, 1)); }
.pk-who b, .pk-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill.friend { background: var(--accent-fill); color: #fff; }
.pill.muted { background: #222; color: var(--muted); border-color: #333; }
.pk-empty { text-align: center; padding: 14px 6px; }

/* Owner ⋯ menus on WIP header and timeline cards */
.wip-head, .tl-card { position: relative; }
.tl-card .tl-date { padding-right: 40px; min-height: 22px; }
.tl-more { position: absolute; top: 4px; right: 4px; color: var(--muted); }
.tl-more:hover, .tl-more[aria-expanded=true] { color: #fff; }
.wip-more { position: absolute; top: 10px; right: 10px; z-index: 7; background: rgba(0,0,0,.6); color: #fff; }
.wip-head .wip-title { padding-right: 40px; }
.menu .danger { color: #ff5a5f; font-weight: 600; }
.cmeta { display: flex; gap: 10px; align-items: center; }
.confirm-bg { z-index: 70; }

/* Mark in progress dialog */
.unfin-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }
.fin-kept a, .unfin-bg .sub a { color: var(--accent); }

/* ===================== Neon glow (ds-v16) =======
   Soft, wide purple glow like the original site. Static layered box-shadows only (nothing animates on scroll),
   wide blurs only on the few big surfaces (cards, composer, nav, + button). Reduced motion gets a lighter set. */
:root {
  --card: #1f1a28;
  --glow-card: 0 0 1px rgba(var(--acc-rgb),.95), 0 0 10px rgba(var(--acc-rgb),.6), 0 0 26px rgba(var(--acc-rgb),.4), 0 0 60px rgba(var(--acc-rgb),.24), inset 0 0 18px rgba(var(--acc-rgb),.12);
  --glow-soft: 0 0 6px rgba(var(--acc-rgb),.6), 0 0 16px rgba(var(--acc-rgb),.28);
  --glow-avatar: 0 0 5px rgba(var(--acc-rgb),.75), 0 0 14px rgba(var(--acc-rgb),.35);
}
.card { background: linear-gradient(180deg, #241e2f 0%, var(--card) 60%); box-shadow: var(--glow-card); }
.composer { background: linear-gradient(180deg, #241e2f 0%, var(--card) 70%); border: 1.5px solid var(--accent); box-shadow: var(--glow-card); }
.composer-input { box-shadow: 0 0 6px rgba(var(--acc-rgb),.55), 0 0 16px rgba(var(--acc-rgb),.2), inset 0 0 8px rgba(var(--acc-rgb),.1); }
.wip-card { background: linear-gradient(180deg, #241e2f 0%, #1c1824 70%); border: 1.5px solid rgba(var(--acc-rgb),.7);
  box-shadow: 0 0 6px rgba(var(--acc-rgb),.45), 0 0 18px rgba(var(--acc-rgb),.22), 0 0 36px rgba(var(--acc-rgb),.10); }
.wip-card.finished { border-color: var(--accent); box-shadow: var(--glow-card); }
.avatar { box-shadow: var(--glow-avatar); }
.btn { box-shadow: 0 0 6px rgba(var(--acc-rgb),.75), 0 0 18px rgba(var(--acc-rgb),.42), 0 0 34px rgba(var(--acc-rgb),.18); }
.btn.ghost { box-shadow: 0 0 6px rgba(var(--acc-rgb),.35), inset 0 0 8px rgba(var(--acc-rgb),.12); }
.btn.danger-btn { box-shadow: none; }
.btn.danger-btn:not(.ghost) { box-shadow: 0 0 6px rgba(224,48,63,.7), 0 0 18px rgba(224,48,63,.35); }
.seg button[aria-selected="true"], .seg.tabs a[aria-selected="true"] { box-shadow: 0 0 8px rgba(var(--acc-rgb),.6), 0 0 20px rgba(var(--acc-rgb),.25); }
/* header */
.top { border-bottom: 1px solid rgba(var(--acc-rgb),.35); box-shadow: 0 1px 0 rgba(var(--acc-rgb),.15), 0 6px 18px rgba(var(--acc-rgb),.10); }
.logo-drill { text-shadow: 0 0 4px rgba(255,255,255,.45), 0 0 14px rgba(var(--acc-rgb),.45), 0 0 30px rgba(var(--acc-rgb),.22); }
.logo-social { text-shadow: 0 0 4px rgba(var(--acc-rgb),.95), 0 0 12px rgba(var(--acc-rgb),.75), 0 0 28px rgba(var(--acc-rgb),.45), 0 0 52px rgba(var(--acc-rgb),.22); }
/* ds-safari-logo: Safari (desktop macOS, retina) misdraws a text-shadow stack with a big second blur (WebKit bug 139810): "Social" turned into an unreadable
   blurry blob in the dark neon theme. Safari only (the -webkit-hyphens test is false in Chrome and Firefox): keep the two small shadows and draw the two wide glow
   layers (28px and 52px blur) as drop-shadow filters instead. drop-shadow takes a standard deviation, text-shadow a radius, so half the blur gives the same glow.
   Light theme, Halloween and rainbow keep their own shadows and get no filter. Other browsers are untouched. */
@supports (-webkit-hyphens: none) {
  .logo-social { text-shadow: 0 0 4px rgba(var(--acc-rgb),.95), 0 0 12px rgba(var(--acc-rgb),.75); filter: drop-shadow(0 0 14px rgba(var(--acc-rgb),.45)) drop-shadow(0 0 26px rgba(var(--acc-rgb),.22)); }
  html[data-theme="light"] .logo-social, body.halloween .logo-social, html[data-accent="rainbow"] body:not(.halloween):not(.hol) .logo-social { filter: none; }
}
.icon-row a.active { filter: drop-shadow(0 0 4px rgba(var(--acc-rgb),.9)) drop-shadow(0 0 10px rgba(var(--acc-rgb),.45)); }
/* bottom nav */
.bottom { background: linear-gradient(180deg, rgba(34,26,44,.97), rgba(19,17,25,.97)); border-top: 1px solid rgba(var(--acc-rgb),.65);
  box-shadow: 0 -1px 6px rgba(var(--acc-rgb),.45), 0 -8px 22px rgba(var(--acc-rgb),.18), 0 -20px 44px rgba(var(--acc-rgb),.08); }
.bottom a.active:not(.plus) { color: #fff; text-shadow: 0 0 6px rgba(var(--acc-rgb),.9), 0 0 14px rgba(var(--acc-rgb),.5); }
.bottom a.active:not(.plus) svg { color: var(--accent); filter: drop-shadow(0 0 4px rgba(var(--acc-rgb),.95)) drop-shadow(0 0 10px rgba(var(--acc-rgb),.5)); }
.bottom a.plus { box-shadow: 0 0 0 4px var(--bg), 0 0 8px var(--accent), 0 0 22px rgba(var(--acc-rgb),.85), 0 0 46px rgba(var(--acc-rgb),.45), 0 0 80px rgba(var(--acc-rgb),.2); }
/* Lighter glow for reduced motion (often older or low power devices) and no decorative animations. */
@media (prefers-reduced-motion: reduce) {
  :root { --glow-card: 0 0 6px rgba(var(--acc-rgb),.55), 0 0 20px rgba(var(--acc-rgb),.25); }
  .bottom { box-shadow: 0 -2px 12px rgba(var(--acc-rgb),.25); backdrop-filter: none; }
  .top { backdrop-filter: none; }
  .bottom a.plus { box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(var(--acc-rgb),.8); }
  .gem.pop svg, .spark, .lightbox { animation: none !important; }
  .toast { transition: opacity .2s; }
}

/* ===================== App feel (ds-v17) ===================== */
/* No rubber band / native pull to reload fighting our own pull to refresh; no grey tap flash; no double tap zoom delay. */
html, body { overscroll-behavior-y: none; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; touch-action: manipulation; }
a, button, img, [role="button"] { -webkit-tap-highlight-color: transparent; }
button, a, .bottom, .icon-row, .seg, .act { touch-action: manipulation; }
.bottom, .icon-row, .act, .btn, .seg, .logo { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Safe areas: the sticky header owns the top inset (status bar), the fixed bottom nav owns the bottom inset. */
.shell { padding-top: 0; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.top, .top.compact { padding-top: calc(14px + var(--sat)); }
@media (display-mode: standalone) { .top { padding-top: calc(10px + var(--sat)); } body { min-height: 100dvh; } }
/* ds-v84: the bottom nav never moves. Sliding it away on scroll (transform transition + will-change on a fixed layer) is what
   made iOS standalone paint it mid-screen during momentum scroll / rubber-band. Centered with left/right/margin, not translate. */
.bottom { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); will-change: auto; }

/* Page enter */
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-enter { animation: pageIn .2s ease-out; }

/* Skeleton loaders */
@keyframes skPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.skeleton { padding: 0; text-align: left; }
.sk { background: linear-gradient(90deg, #2a2335, #352c44 50%, #2a2335); border-radius: 10px; animation: skPulse 1.3s ease-in-out infinite; }
.sk-line { height: 12px; margin: 8px 0; border-radius: 6px; }
.sk-av { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.sk-av.sm { width: 36px; height: 36px; } .sk-av.lg { width: 96px; height: 96px; margin: 10px auto; }
.sk-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.sk-img { aspect-ratio: 4 / 3; border-radius: 14px; margin-bottom: 8px; }
.sk-composer { display: flex; gap: 10px; align-items: center; }
.sk-pill { flex: 1; height: 40px; border-radius: 999px; }
.sk-row { display: flex; gap: 12px; align-items: center; padding: 10px 4px; }
.sk-profile { text-align: center; } .sk-profile .sk-line { margin: 10px auto; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 18px; } .sk-grid .sk { aspect-ratio: 1; border-radius: 6px; }

/* Pull to refresh */
.ptr { position: fixed; top: calc(env(safe-area-inset-top) + 64px); left: 50%; z-index: 25; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #241e2f; border: 1.5px solid var(--accent); box-shadow: 0 0 10px rgba(var(--acc-rgb),.55); opacity: 0; transform: translate(-50%, -50px); pointer-events: none; transition: opacity .15s; }
.ptr-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(var(--acc-rgb),.35); border-top-color: var(--accent-2); }
.ptr.armed .ptr-spin { border-color: var(--accent-2); border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.ptr.spinning .ptr-spin { animation: spin .7s linear infinite; }

/* Page header with an icon button */
.page-head { display: flex; align-items: center; justify-content: space-between; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text); }
.icon-btn svg, .profile-actions .btn svg { width: 20px; height: 20px; }
.icon-btn:hover { color: var(--accent-2); }

/* Alerts + install cards */
.alerts-card .al-head, .install-banner { display: flex; align-items: center; gap: 10px; }
.al-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--acc-rgb),.18); color: var(--accent-2); flex: none; }
.al-icon svg { width: 20px; height: 20px; }
.alerts-card .al-head b { flex: 1; font-size: calc(16px * var(--ts, 1)); }
.alerts-card .sub { margin: 8px 0; }
.al-btns { display: flex; gap: 8px; flex-wrap: wrap; } .al-btns .btn svg { width: 18px; height: 18px; }
.al-x { width: 32px; height: 32px; border-radius: 50%; color: var(--muted); font-size: calc(22px * var(--ts, 1)); line-height: 1; flex: none; }
.ios-steps { margin: 6px 0 4px 18px; padding: 0; color: var(--text); font-size: calc(14px * var(--ts, 1)); line-height: 1.5; }
.ios-steps li { margin: 4px 0; }
.ios-share { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--accent-2); color: var(--accent-2); font-size: calc(12px * var(--ts, 1)); vertical-align: -3px; }
.sub.tiny, .tiny { font-size: calc(12px * var(--ts, 1)); }
.install-banner img { border-radius: 12px; flex: none; }
.install-banner .ib-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: calc(13.5px * var(--ts, 1)); }
.install-banner .ib-text span { color: var(--muted); }

/* Settings */
.prefs > b { display: block; margin-bottom: 6px; }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #2c2538; cursor: pointer; }
.switch-row span { flex: 1; display: flex; flex-direction: column; } .switch-row small { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); }
.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 999px; background: #3a3348; position: relative; flex: none; cursor: pointer; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch:checked { background: var(--accent-fill); box-shadow: 0 0 8px rgba(var(--acc-rgb),.6); }
.switch:checked::after { transform: translateX(18px); }
.settings-links { display: flex; flex-direction: column; padding: 4px 12px; }
.settings-links a, .settings-links button { padding: 12px 0; border-top: 1px solid #2c2538; color: var(--text); text-align: left; font: inherit; text-decoration: none; background: none; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; width: 100%; }
.settings-links > :first-child { border-top: 0; }
.settings-links .tiny { padding: 10px 0; }
.settings-links .danger-btn-text, .settings-logout button { color: var(--danger) !important; font-weight: 700; }
.settings-logout { margin-top: 14px; margin-bottom: 8px; }

/* Footer + sign up agreement */
.site-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; padding: 22px 8px 8px; font-size: calc(12.5px * var(--ts, 1)); color: var(--muted); }
.site-foot a { color: var(--muted); text-decoration: none; } .site-foot a:hover { color: var(--accent-2); }
.check.agree { display: flex; gap: 8px; align-items: flex-start; font-size: calc(13px * var(--ts, 1)); line-height: 1.4; margin: 8px 0; color: var(--text); }
.check.agree input { margin-top: 2px; accent-color: var(--accent-fill); width: 18px; height: 18px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .page-enter, .sk, .ptr.spinning .ptr-spin { animation: none !important; }
  .switch, .switch::after { transition: none; }
}

/* Policy pages (/terms, /privacy, /guidelines: static HTML, no JS) */
.legal { padding: 0 12px 30px; }
.legal-top { padding: calc(14px + env(safe-area-inset-top)) 4px 4px; text-align: center; }
.legal-logo { margin: 4px auto 10px; }
.legal-nav { display: flex; justify-content: center; gap: 8px; }
.legal-nav a { padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: calc(14px * var(--ts, 1)); border: 1px solid #2c2538; }
.legal-nav a[aria-current=page] { background: var(--accent-fill); color: #fff; border-color: transparent; box-shadow: 0 0 10px rgba(var(--acc-rgb),.5); }
.legal-body { padding: 18px 18px 22px; line-height: 1.6; }
.legal-body h1 { font-size: calc(24px * var(--ts, 1)); margin: 12px 0 2px; }
.legal-body h2 { font-size: calc(17px * var(--ts, 1)); margin: 22px 0 6px; color: var(--accent-2); }
.legal-body .sub { margin: 0 0 10px; }
.legal-body .lead { font-size: calc(16px * var(--ts, 1)); }
.legal-body ul { padding-left: 20px; margin: 6px 0; } .legal-body li { margin: 6px 0; }
.legal-body a { color: var(--accent-2); }
.draft-banner { background: rgba(255,196,0,.1); border: 1px dashed #e7b400; color: #ffe08a; border-radius: 12px; padding: 10px 12px; font-size: calc(13.5px * var(--ts, 1)); margin: 0 0 6px; }
.legal-page .shell { padding-bottom: 20px; }

/* Delete conversation: swipe a row left to reveal the red Delete button */
.conv-item { position: relative; border-radius: 16px; overflow: hidden; transition: opacity .2s, transform .2s; }
.conv-item .conv-row { position: relative; z-index: 1; transition: transform .22s cubic-bezier(.2,.8,.2,1); -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: pan-y; }
.conv-del { position: absolute; top: 0; right: 0; bottom: 0; width: 96px; border: 0; border-radius: 0 16px 16px 0; background: var(--danger-fill, #e0303f); color: #fff;
  font: inherit; font-weight: 700; font-size: calc(13px * var(--ts, 1)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; }
.conv-del svg { width: 22px; height: 22px; }
.conv-item:not(.open):not(.swiping) .conv-del { visibility: hidden; }
.conv-item.removing { opacity: 0; transform: translateX(-30px); }
@media (prefers-reduced-motion: reduce) { .conv-item, .conv-item .conv-row { transition: none; } }

/* ---------- Events ---------- */
.avatar.xs { width: 20px; height: 20px; border-width: 1px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; }
.see-all { color: var(--accent-2); font-size: calc(13px * var(--ts, 1)); text-decoration: none; margin-right: 4px; }
.ev-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.ev-row::-webkit-scrollbar { display: none; }
.ev-row .ev-card { flex: none; width: 210px; scroll-snap-align: start; }
.ev-list { display: grid; gap: 12px; }
.ev-card { display: flex; flex-direction: column; text-decoration: none; color: #fff; background: var(--card); border: 1px solid var(--accent-soft); border-radius: 16px; overflow: hidden; box-shadow: var(--glow-soft); }
.ev-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--accent-deep), #131119); }
.ev-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-nocover { display: flex; align-items: center; justify-content: center; color: var(--accent-2); width: 100%; height: 100%; }
.ev-nocover svg { width: 42px; height: 42px; opacity: .8; }
.ev-date { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; align-items: center; min-width: 40px; padding: 4px 6px; border-radius: 10px; background: rgba(10, 8, 14, .82); border: 1px solid var(--accent-soft); line-height: 1.05; }
.ev-date b { font-size: calc(17px * var(--ts, 1)); } .ev-date span { font-size: calc(10.5px * var(--ts, 1)); text-transform: uppercase; letter-spacing: 1px; color: var(--accent-2); }
.ev-lock { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: calc(11px * var(--ts, 1)); font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(10, 8, 14, .82); border: 1px solid var(--accent-soft); color: #fff; }
.ev-lock svg { width: 12px; height: 12px; }
.ev-lock.inline { position: static; background: rgba(var(--acc-rgb), .14); }
.ev-public { font-size: calc(12px * var(--ts, 1)); color: var(--muted); }
.ev-info { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.ev-info b { font-size: calc(15px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-when { font-size: calc(12.5px * var(--ts, 1)); color: var(--accent-2); }
.ev-meta { font-size: calc(12px * var(--ts, 1)); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 15px; }
.ev-empty { text-align: center; }
.ev-head { position: relative; padding: 0; overflow: hidden; }
.ev-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: linear-gradient(135deg, var(--accent-deep), #131119); }
.ev-hero.ev-nocover svg { width: 64px; height: 64px; }
.ev-more { position: absolute; right: 10px; top: 10px; z-index: 2; background: rgba(10, 8, 14, .75); border-radius: 50%; }
.ev-title { display: flex; gap: 12px; align-items: center; padding: 14px 14px 4px; }
.ev-title .ev-date { position: static; }
.ev-title h1 { margin: 0 0 3px; font-size: calc(22px * var(--ts, 1)); line-height: 1.2; overflow-wrap: anywhere; }
.ev-facts { list-style: none; margin: 6px 0 0; padding: 0 14px; display: grid; gap: 7px; }
.ev-facts li { display: flex; gap: 9px; align-items: flex-start; font-size: calc(14px * var(--ts, 1)); color: #ddd; overflow-wrap: anywhere; }
.ev-facts svg { width: 18px; height: 18px; flex: none; color: var(--accent-2); margin-top: 1px; }
.ev-facts a { color: var(--accent-2); }
.ev-desc { margin: 10px 14px 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px 14px; }
.ev-head > .sub { padding: 0 14px 14px; }
.ev-compose textarea { width: 100%; min-height: 60px; }
.ev-compose-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ev-compose-row label svg { width: 16px; height: 16px; vertical-align: -3px; }
.ev-prev { max-width: 100%; max-height: 220px; border-radius: 12px; margin-top: 8px; display: block; }
.ev-prev[hidden] { display: none; }
.vis-pick { display: grid; gap: 8px; }
.vis-pick small { color: var(--muted); }
.post-ctx { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: calc(12.5px * var(--ts, 1)); color: var(--accent-2); text-decoration: none; flex-wrap: wrap; }
.post-ctx svg { width: 15px; height: 15px; }
.role-tag { color: var(--accent-2); font-weight: 700; }
.row-btns { display: flex; gap: 6px; }
.user-row .mem-more { margin-left: auto; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: calc(12px * var(--ts, 1)); padding: 4px 0 0; cursor: pointer; text-decoration: underline; }
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.board-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.board-card.finished { border-color: var(--accent); }
.board-cover { position: relative; aspect-ratio: 1; display: block; background: #111; }
.board-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.board-cover .fin-badge { position: absolute; left: 6px; top: 6px; }
.board-cover .wip-nocover { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.board-info { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.board-info .wip-name { color: #fff; text-decoration: none; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-owner { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12px * var(--ts, 1)); color: var(--muted); text-decoration: none; }
.wip-thumb.sm { width: 40px; height: 40px; }
.pk-row .btn { margin-left: auto; flex: none; }

.field.two > div { min-width: 0; }
input[type=datetime-local] { color-scheme: dark; min-height: 46px; }
.ev-note { display: flex; gap: 6px; align-items: flex-start; font-size: calc(13px * var(--ts, 1)); margin: 0; padding: 0 14px 14px; }
.ev-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--accent-2); }

/* ---------- business pages ---------- */
.biz-badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: calc(10.5px * var(--ts, 1)); font-weight: 800; letter-spacing: .03em; text-transform: uppercase; vertical-align: 1px;
  color: #fff; background: linear-gradient(135deg, #3a7bfd, var(--accent)); box-shadow: 0 0 8px rgba(90,120,255,.45); }
.avatar.biz-logo { border-radius: 14px; }
.avatar.biz-logo.xs { border-radius: 6px; }
.avatar.biz-logo.xl { width: 84px; height: 84px; border-radius: 20px; border-width: 3px; }
.posted-by { font-size: calc(12px * var(--ts, 1)); color: var(--muted); margin-top: 1px; }
.posted-by a { color: var(--accent-2); }
.biz-head { position: relative; padding: 0; overflow: hidden; }
.biz-id { display: flex; gap: 12px; align-items: flex-end; padding: 0 14px; margin-top: -38px; position: relative; }
.biz-id h1 { margin: 0 0 4px; font-size: calc(22px * var(--ts, 1)); line-height: 1.2; overflow-wrap: anywhere; display: inline; }
.biz-id > div { padding-bottom: 4px; min-width: 0; }
.biz-id .biz-badge { vertical-align: 4px; }
.biz-invite { padding: 14px; border-color: var(--accent); }
.biz-invite p { margin: 0; }
.as-biz { display: flex; align-items: center; gap: 7px; font-size: calc(13px * var(--ts, 1)); color: var(--muted); margin-bottom: 8px; }
.as-biz b { color: #fff; }
.biz-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.biz-row::-webkit-scrollbar { display: none; }
.biz-row .biz-card { flex: none; width: 170px; scroll-snap-align: start; }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.biz-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-bottom: 12px; text-decoration: none; color: #fff; background: var(--card);
  border: 1px solid var(--accent-soft); border-radius: 16px; overflow: hidden; box-shadow: var(--glow-soft); }
.biz-card-cover { width: 100%; aspect-ratio: 5 / 2; background: linear-gradient(135deg, #1d2a5a, var(--accent-deep) 55%, #131119); }
.biz-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-card .avatar { width: 52px; height: 52px; margin-top: -28px; }
.biz-card b { font-size: calc(14px * var(--ts, 1)); padding: 0 8px; overflow-wrap: anywhere; }
.biz-card .biz-badge { margin: 0; }
.biz-card-meta { font-size: calc(12px * var(--ts, 1)); color: var(--muted); padding: 0 8px; }
.slug-row { display: flex; align-items: center; gap: 0; background: #0f0f13; border: 1.5px solid #2a2a33; border-radius: 12px; padding-left: 12px; }
.slug-row span { color: var(--muted); font-size: calc(13px * var(--ts, 1)); white-space: nowrap; }
.slug-row input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding-left: 2px !important; }
.biz-report-head { font-size: calc(13px * var(--ts, 1)); color: #ffb4b6; margin: 6px 2px; }
.section-head .btn { margin-left: auto; }
/* ds-v127: business names wrap fully — no mid-word ellipsis in feed */
.who .name.has-badge {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px;
  min-width: 0; max-width: 100%;
  white-space: normal; overflow: visible; text-overflow: unset;
}
.who .name.has-badge .nm {
  flex: 1 1 auto; min-width: 0; max-width: 100%;
  white-space: normal; overflow: visible; text-overflow: unset;
  overflow-wrap: break-word; word-break: normal;
}
.who .name .biz-badge, .who .name.has-badge .biz-inline-handle { flex: none; }
.who-line .name.has-badge { display: inline-flex; max-width: 100%; }

/* ---------- event end of life ---------- */
.ev-state { position: absolute; left: 8px; bottom: 8px; font-size: calc(11px * var(--ts, 1)); font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(10, 8, 14, .85); color: #ffd27a; border: 1px solid rgba(255, 210, 122, .5); }
.ev-state.archived { color: #c9c9d6; border-color: #555; }
.ev-state.inline { position: static; display: inline-block; margin-left: 6px; vertical-align: 1px; }
.ev-edition { display: inline-block; margin-left: 6px; font-size: calc(12px * var(--ts, 1)); font-weight: 700; color: var(--accent-2); }
.ev-cover .ev-state { left: auto; right: 8px; bottom: 8px; }
.eol-banner { padding: 14px; display: grid; gap: 10px; font-size: calc(14px * var(--ts, 1)); }
.eol-banner.hot { border-color: #ffd27a; box-shadow: 0 0 14px rgba(255, 210, 122, .25); }
.eol-banner.archived { border-color: #555; }
.eol-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eol-opt { text-align: left; background: #15121c; border: 1px solid var(--accent-soft); border-radius: 12px; padding: 10px; color: #fff; font: inherit; cursor: pointer; display: grid; gap: 3px; }
.eol-opt b { font-size: calc(14px * var(--ts, 1)); }
.eol-opt span { font-size: calc(12px * var(--ts, 1)); color: var(--muted); line-height: 1.35; }
.eol-opt:hover, .eol-opt:focus-visible { border-color: var(--accent); }
article.post.pinned { border-color: #ffd27a; box-shadow: 0 0 14px rgba(255, 210, 122, .3); }
.pin-label { font-size: calc(12.5px * var(--ts, 1)); font-weight: 800; color: #ffd27a; margin: -2px 0 8px; }
.comments-closed { font-size: calc(13px * var(--ts, 1)); margin: 6px 0 0; }
.check-row { display: flex; gap: 8px; align-items: center; font-size: calc(14px * var(--ts, 1)); margin: 4px 0 8px; }

/* ds-v22: year picker, editions, flashbacks */
.year-pick { display: flex; gap: 6px; overflow-x: auto; padding: 10px 56px 10px 10px; scrollbar-width: none; background: rgba(10, 8, 14, .6); border-bottom: 1px solid var(--line); }
.year-pick::-webkit-scrollbar { display: none; }
.year-pick a { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--accent-soft); color: var(--text); text-decoration: none; font-weight: 700; font-size: calc(13.5px * var(--ts, 1)); min-height: 32px; display: inline-flex; align-items: center; }
.year-pick a[aria-current="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; box-shadow: var(--glow-soft, var(--glow)); }
.ev-head.has-years .ev-more { top: 8px; }
.edition-banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.edition-banner .row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-feature { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); padding: 12px 14px; margin-bottom: 12px; }
.ed-feature small { color: var(--muted); }
.ed-year { flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: rgba(var(--acc-rgb), .18); border: 1px solid var(--accent-soft); }
.ed-tag { display: inline-block; font-size: calc(11.5px * var(--ts, 1)); font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--accent-soft); color: var(--accent-2); text-decoration: none; margin: 2px 0; }
.post-ed { margin: 0 14px 6px; }
.flashback { padding: 14px; margin-bottom: 14px; display: grid; gap: 10px; border: 1px solid var(--accent-soft); }
.fb-head { display: flex; gap: 10px; align-items: flex-start; }
.fb-head > div { flex: 1; min-width: 0; }
.fb-head svg { width: 12px; height: 12px; vertical-align: -1px; }
.fb-icon { font-size: calc(22px * var(--ts, 1)); line-height: 1; }
.fb-x { background: none; border: 0; color: var(--muted); font-size: calc(16px * var(--ts, 1)); cursor: pointer; min-width: 36px; min-height: 36px; }
.fb-photos { display: grid; gap: 4px; grid-template-columns: repeat(2, 1fr); border-radius: 12px; overflow: hidden; }
.fb-photos.n1 { grid-template-columns: 1fr; }
.fb-photos.n3 img:first-child { grid-row: span 2; }
.fb-photos img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.fb-photos.n1 img { aspect-ratio: 16 / 10; }
.fb-snip { margin: 0; color: var(--muted); font-style: italic; }
.flashback .btn { justify-self: start; }
.comment-form[hidden] { display: none !important; }

/* ds-v24: every text input and search bar on a dark purple surface (no white browser defaults) */
:root { --field: #1c1626; --field-border: rgba(var(--acc-rgb), .35); --field-placeholder: #8f86a3; }
input[type=search], input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=tel],
input[type=datetime-local], input:not([type]), textarea, select {
  background: var(--field); color: var(--text); border: 1.5px solid var(--field-border); caret-color: var(--accent-2); color-scheme: dark;
}
input[type=search] { -webkit-appearance: none; appearance: none; width: 100%; box-sizing: border-box; border-radius: 12px; padding: 12px 14px; font: inherit; }
.search input[type=search] { border-radius: 999px; padding: 12px 18px; }
input::placeholder, textarea::placeholder { color: var(--field-placeholder); opacity: 1; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; height: 16px; width: 16px; cursor: pointer;
  background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d38bff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
input[type=search]:focus, input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=url]:focus,
input[type=datetime-local]:focus, input:not([type]):focus, textarea:focus, select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .22), 0 0 14px rgba(var(--acc-rgb), .35); outline: none;
}
input:-webkit-autofill, input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 40px var(--field) inset; transition: background-color 9999s; }
/* fields that sit inside their own dark box stay transparent */
.dm-input textarea, .slug-row input { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.sort-seg { margin-top: 0; } .sort-seg a { font-size: calc(13px * var(--ts, 1)); padding: 6px 0; }

/* ds-v24: whole photos, never cropped. Natural ratio (width/height attrs + aspect-ratio when stored), tall ones capped at 80vh and letterboxed. */
.post-img, .tl-photos.slides img.tl-img {
  width: 100%; height: auto; max-height: min(80vh, calc(100vh - 230px)); max-height: min(80svh, calc(100svh - 230px)); object-fit: contain; background: #0d0a12; aspect-ratio: auto;   /* fits between the header and the bottom nav */
}
/* Android shrinks the layout viewport with the keyboard, and svh shrinks with it, so a tall photo collapses and the feed jumps. Pin the cap to the height from before the keyboard. */
html.cm-kb .post-img:not(.post-poster),
html.cm-kb .tl-photos.slides img.tl-img { max-height: min(calc(var(--kb-pin, 100svh) * 0.8), calc(var(--kb-pin, 100svh) - 230px)); }
html.cm-kb img.post-img.post-poster { max-height: min(440px, calc(var(--kb-pin, 100svh) * 0.62)); }
.post-img:not([width]) { min-height: 120px; }            /* older posts without a stored size: small placeholder until loaded */
.tl-photos.slides { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: center; grid-template-columns: none; }
.tl-photos.slides::-webkit-scrollbar { display: none; }
.tl-photos.slides > a { flex: 0 0 100%; scroll-snap-align: center; display: block; }
.tl-photos.slides:not(.n1) > a { flex-basis: 88%; }
.tl-photos.slides img.tl-img { border-radius: 10px; border: 1px solid rgba(var(--acc-rgb), .35); display: block; }
.slide-hint { font-size: calc(12px * var(--ts, 1)); color: var(--muted); margin-top: 4px; }

/* ds-v25: comment replies */
.creplies { margin-left: 40px; border-left: 2px solid rgba(var(--acc-rgb), .25); padding-left: 10px; }
.comment.reply .avatar.sm { width: 28px; height: 28px; }
.comment .cmeta .reply-btn { font-weight: 700; color: var(--accent-2); }
.view-replies { color: var(--accent-2); font-weight: 700; font-size: calc(13px * var(--ts, 1)); padding: 6px 0 8px; min-height: 32px; }
.view-replies::before { content: ''; display: inline-block; width: 22px; height: 1.5px; background: currentColor; vertical-align: middle; margin-right: 8px; opacity: .6; }
.comment.deleted .bubble { background: transparent; border-style: dashed; }
.comment.deleted .ctext { color: var(--muted); font-style: italic; font-size: calc(13px * var(--ts, 1)); }
.ghost-av { border-style: dashed !important; box-shadow: none !important; background: transparent !important; flex: none; }
.comment-form { flex-wrap: wrap; }
.reply-chip { flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between; font-size: calc(12.5px * var(--ts, 1)); color: var(--muted); padding: 2px 4px 6px; }
.reply-chip b { color: var(--accent-2); }
.reply-chip button { color: var(--muted); min-width: 32px; min-height: 28px; font-size: calc(14px * var(--ts, 1)); }
/* ds-v25: text above photos, long text clamps to 4 lines */
.post-body.clamp, .embed-body.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.see-more { color: var(--accent-2); font-weight: 700; font-size: calc(14px * var(--ts, 1)); padding: 0 2px 6px; min-height: 28px; }
.post-body + a > .post-img, .see-more + a > .post-img { margin-top: 6px; }
/* ds-v25: auto-hiding top header (bottom nav stays fixed) */
/* ds-v85: header + bottom nav hide on scroll together via ONE state (body.chrome-faded) with the identical fade.
   Opacity only (no transform/translate on the fixed nav); visibility flips after the 200ms fade. */
.top, .bottom { transition: opacity .2s ease, visibility 0s linear 0s; }
body.chrome-faded .top, body.chrome-faded .bottom { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
@media (prefers-reduced-motion: reduce) { .top, .bottom { transition: none; } }
/* iOS Safari zooms the page when a field under 16px gets focus (a slow re-layout of the whole page on tap). Touch screens get 16px fields. */
@media (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select, .dm-input textarea, .composer-input { font-size: max(16px, calc(16px * var(--ts, 1))) !important; }
}
/* ds-v26: profile links in messages */
.conv-row .cv-av { cursor: pointer; }
.dm.theirs { position: relative; margin-left: 34px; }
.dm-av { position: absolute; left: -34px; bottom: 0; width: 28px; height: 28px; display: block; }
.dm-av .avatar { width: 28px; height: 28px; display: block; }
.dm.theirs.cont .dm-av { visibility: hidden; }   /* avatar on the last bubble of each run (classes set in JS) */
/* ds-v27: change username */
.set-uname { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; }
.set-uname small { color: var(--muted); font-size: calc(13px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uname-field { display: flex; align-items: center; gap: 6px; background: var(--field); border: 1.5px solid var(--field-border); border-radius: 12px; padding: 0 12px; }
.uname-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .22), 0 0 14px rgba(var(--acc-rgb), .35); }
.uname-field span { color: var(--accent-2); font-weight: 700; }
.uname-field input { flex: 1; min-width: 0; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 12px 0; font: inherit; color: var(--text); outline: none; }
.uname-status { font-size: calc(13px * var(--ts, 1)); color: var(--muted); margin-top: 8px; min-height: 18px; }
.uname-status.good { color: #7ee2a8; } .uname-status.bad { color: #ff9aa6; }
.uname-confirm { z-index: 70; }
.soon-pill { display: inline-block; font-size: calc(11px * var(--ts, 1)); font-weight: 800; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; color: #1a0f24; background: var(--accent-2); vertical-align: middle; }
.shop-tile h2 .soon-pill { margin-left: 8px; position: relative; top: -2px; }
.shop-tiles { display: grid; gap: 14px; margin-top: 12px; }
.shop-tile { padding: 20px 18px; border-radius: 20px; background: linear-gradient(160deg, #241a33 0%, var(--card) 75%); border: 1.5px solid rgba(var(--acc-rgb),.55); box-shadow: var(--glow-card); }
.shop-tile-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--accent-2); background: rgba(var(--acc-rgb),.2); box-shadow: 0 0 14px rgba(var(--acc-rgb),.35); }
.shop-tile-ico svg { width: 30px; height: 30px; }
.shop-tile h2 { margin: 12px 0 4px; font-size: calc(21px * var(--ts, 1)); }
.shop-tile p { margin: 0 0 14px; color: #cfc6dc; font-size: calc(15px * var(--ts, 1)); line-height: 1.4; }
.notify-btn { min-height: 44px; }
.notify-btn.on { background: #2b1e3d; color: var(--accent-pale); border: 1.5px solid var(--accent); box-shadow: 0 0 10px rgba(var(--acc-rgb),.35); }
.notify-btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.admin-count { margin-top: 10px; font-size: calc(13px * var(--ts, 1)); color: var(--muted); }
/* center + button tap: press-in, spring back, purple ripple ring (under ~500 ms) */
.bottom a.plus { position: relative; overflow: visible; transition: transform .09s ease-out; -webkit-tap-highlight-color: transparent; }
.bottom a.plus.pressed { transform: scale(.88); }
.bottom a.plus.pop { animation: plusPop .42s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes plusPop { 0% { transform: scale(.86); } 55% { transform: scale(1.08); } 100% { transform: scale(1); } }
.plus-ripple { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; border: 3px solid rgba(var(--acc2-rgb), .9);
  box-shadow: 0 0 14px rgba(var(--acc-rgb), .9), inset 0 0 10px rgba(var(--acc-rgb), .6); animation: plusRipple .45s ease-out forwards; }
@keyframes plusRipple { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.bottom a.plus:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .bottom a.plus, .bottom a.plus.pop { transition: none; animation: none; transform: none; } .plus-ripple { display: none; } }

.biz-handle,.biz-inline-handle { color: var(--muted); font-size: calc(12px * var(--ts, 1)); }
.biz-card .biz-handle { color: var(--muted); font-size: calc(12px * var(--ts, 1)); }
/* ds-v33: logged-in Profile avatar stays a small nav icon, never its natural image size. */
.bottom .nav-avatar { width: 28px; height: 28px; max-width: 28px; max-height: 28px; display: grid; place-items: center; flex: 0 0 28px; border-radius: 50%; }
.bottom .nav-avatar .me-avatar { display: block; width: 26px; height: 26px; max-width: 26px; max-height: 26px; object-fit: cover; border-radius: 50%; }
.bottom a.active .nav-avatar { border: 2px solid var(--accent); box-shadow: 0 0 7px rgba(var(--acc-rgb),.9), 0 0 14px rgba(var(--acc-rgb),.35); }
/* ds-v35: iPhone freeze hardening. Live blur (backdrop-filter) on the sticky header and the fixed bottom nav, over a
   long list of glowing bubbles, while the iOS keyboard animates, is the heaviest thing the page asks of Safari's
   compositor. Touch screens get solid bars instead (they were already ~95% opaque), and the DM view drops glows. */
@media (pointer: coarse) {
  .top, .bottom, .thread-head { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .top { background: #131119; }
  .bottom { background: #08080a; }
}
body.dm-view .top { transform: none !important; }               /* header stays put in a conversation */
body.dm-view .dm-bubble, body.dm-view .dm.mine .dm-bubble { box-shadow: none; }   /* no glow per bubble */
body.dm-view .dm-compose { box-shadow: 0 0 8px rgba(var(--acc-rgb),.18); }
body.dm-view .dm-send { box-shadow: none; }
body.dm-view #thFoot { background: var(--bg); }
.thread { contain: layout style; }

/* Per-user neon accent (Settings > Look). Purple is the default in :root. */
html[data-accent="pink"] { --accent: #ff4fd8; --accent-fill: #c42ba3; --accent-2: #ff8fe6; --accent-pale: #ffd6f5; --accent-deep: #3d1235; --acc-rgb: 255, 79, 216; --acc2-rgb: 255, 143, 230; }
html[data-accent="cyan"] { --accent: #22d3ee; --accent-fill: #0b7d93; --accent-2: #7ee8f8; --accent-pale: #cff7fd; --accent-deep: #0d2f38; --acc-rgb: 34, 211, 238; --acc2-rgb: 126, 232, 248; }
html[data-accent="green"] { --accent: #39ff88; --accent-fill: #0f8a46; --accent-2: #8dffbb; --accent-pale: #d4ffe6; --accent-deep: #0f3320; --acc-rgb: 57, 255, 136; --acc2-rgb: 141, 255, 187; }
html[data-accent="red"] { --accent: #ff3b4f; --accent-fill: #d4192f; --accent-2: #ff8a96; --accent-pale: #ffd5da; --accent-deep: #3d1218; --acc-rgb: 255, 59, 79; --acc2-rgb: 255, 138, 150; }
html[data-accent="yellow"] { --accent: #ffd60a; --accent-fill: #9a7a00; --accent-2: #ffe766; --accent-pale: #fff6c7; --accent-deep: #3a3008; --acc-rgb: 255, 214, 10; --acc2-rgb: 255, 231, 102; }

.accent-row { display: flex; gap: 12px; flex-wrap: wrap; padding: 4px 0; }
.accent-sw { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #2a2a33; cursor: pointer; padding: 0; }
.accent-sw[aria-pressed="true"] { border-color: #f5f5f7; box-shadow: 0 0 0 2px #131119, 0 0 14px var(--sw); }
.accent-card { margin: 0 0 14px; }
.accent-custom { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 6px; font-size: calc(13.5px * var(--ts, 1)); color: var(--muted); font-weight: 600; }
.accent-custom.on span:first-child { color: var(--accent-2); }
.accent-hue {
  width: 100%; height: 28px; margin: 0; padding: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.accent-hue:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
.accent-hue::-webkit-slider-runnable-track {
  height: 12px; border-radius: 999px; border: 1px solid #2a2a35;
  background: linear-gradient(90deg,
    hsl(0,100%,60%), hsl(60,100%,60%), hsl(120,100%,60%),
    hsl(180,100%,60%), hsl(240,100%,60%), hsl(300,100%,60%), hsl(360,100%,60%));
  box-shadow: inset 0 0 8px rgba(0,0,0,.45);
}
.accent-hue::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -6px; border-radius: 50%;
  background: #15151c; border: 2px solid #f5f5f7;
  box-shadow: 0 0 0 2px #131119, 0 0 12px rgba(var(--acc-rgb),.7);
}
.accent-hue::-moz-range-track {
  height: 12px; border-radius: 999px; border: 1px solid #2a2a35;
  background: linear-gradient(90deg,
    hsl(0,100%,60%), hsl(60,100%,60%), hsl(120,100%,60%),
    hsl(180,100%,60%), hsl(240,100%,60%), hsl(300,100%,60%), hsl(360,100%,60%));
}
.accent-hue::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #15151c; border: 2px solid #f5f5f7;
  box-shadow: 0 0 12px rgba(var(--acc-rgb),.7);
}
/* Short conversations: grow the thread so the message bar sits just above the bottom nav, not mid-screen. */
body.dm-view .thread { min-height: calc(100vh - 285px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); min-height: calc(100dvh - 285px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }

/* Top search under the logo; people icon stays top-right for Discover */
.top { flex-direction: column; align-items: stretch; flex-wrap: nowrap; padding-bottom: 10px; }
.top .logo { align-self: center; margin-left: auto; margin-right: auto; }
.top-search { display: flex; align-items: center; gap: 8px; width: 100%; margin: 4px 0 0; padding: 0 2px; }
.top-search[hidden] { display: none !important; }
.top-search-ico { width: 18px; height: 18px; flex: none; color: var(--muted); display: grid; place-items: center; }
.top-search-ico svg { width: 18px; height: 18px; }
.top-search input {
  flex: 1; min-width: 0; height: 38px; border-radius: 12px; border: 1px solid #2a2a33;
  background: #15151a; color: var(--text); padding: 0 12px; font: inherit; font-size: calc(15px * var(--ts, 1));
  outline: none; box-shadow: none;
}
.top-search input::placeholder { color: #8f86a3; }
.top-search input:focus { border-color: rgba(var(--acc-rgb),.55); box-shadow: 0 0 0 2px rgba(var(--acc-rgb),.18); }
.top.has-search, .top.compact.has-search { min-height: 118px; align-content: center; }
/* Every page uses the full-size header (44px logo, 38px search, full icon
   sizes). .top-search is position:relative later in the header, so a tighter
   logo used to paint the S underneath the field. */
body.dm-view .top-search{ display: none !important; }
.discover-page .search { display: none; } /* top search bar handles people/shops */

.top-search { position: relative; }
.top-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
  max-height: min(52vh, 360px); overflow: auto; border-radius: 14px;
  background: #121218; border: 1px solid #2a2a33;
  box-shadow: 0 12px 28px rgba(0,0,0,.55), 0 0 18px rgba(var(--acc-rgb),.18);
  padding: 6px;
}
.top-sug {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 10px; border-radius: 10px; color: inherit; text-decoration: none;
  background: transparent; border: 0; font: inherit; cursor: pointer;
}
.top-sug:hover, .top-sug:focus { background: #1c1c24; outline: none; }
.top-sug .avatar, .top-sug .avatar.sm { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.top-sug .sug-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #1a1a22; color: var(--accent); flex: none; font-weight: 700; }
.top-sug .sug-ico svg { width: 18px; height: 18px; }
.top-sug span { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.top-sug b { font-size: calc(14px * var(--ts, 1)); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-sug small { color: var(--muted); font-size: calc(12px * var(--ts, 1)); }
.top-sug.empty { color: var(--muted); cursor: default; }
.top-sug.more { justify-content: center; color: var(--accent-2); font-weight: 700; font-size: calc(13.5px * var(--ts, 1)); margin-top: 2px; }
/* My Stash */
.stash-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 4px; }
.stash-pub { display: flex; align-items: center; gap: 8px; font-size: calc(14px * var(--ts, 1)); color: #ddd; cursor: pointer; }
.stash-pub input { width: 18px; height: 18px; accent-color: var(--accent); }
.stash-hint { font-size: calc(12.5px * var(--ts, 1)); margin: 0 0 12px; }
.stash-card .wip-cover { position: relative; }
.stash-card .stash-more { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.55); border-radius: 999px; }
.stash-card .stash-start { width: 100%; margin-top: 8px; }
.wip-sub { margin: 2px 0 10px; }
.stash-date { margin-top: 3px; opacity: .85; }
.stash-card .stash-fav { position: absolute; top: 6px; left: 6px; width: 34px; height: 34px; border-radius: 999px; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: calc(19px * var(--ts, 1)); line-height: 34px; text-align: center; padding: 0; cursor: pointer; }
.stash-card .stash-fav.on { color: #ffd84a; text-shadow: 0 0 8px rgba(255,216,74,.8); }


/* Kit details panel + compact card line */
.kit-compact { color: var(--muted); font-size: calc(12px * var(--ts, 1)); margin-top: 2px; }
.kit-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kit-info-btn { margin-top: 8px; }
.kit-checks { display: flex; flex-direction: column; gap: 4px; }
.kit-sheet-title { margin: 0 0 12px; font-size: calc(18px * var(--ts, 1)); }
.kit-list { display: flex; flex-direction: column; gap: 10px; }
.kit-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: rgba(var(--acc-rgb),.06); border: 1px solid rgba(var(--acc-rgb),.22); }
.kit-ico { width: 28px; text-align: center; font-size: calc(16px * var(--ts, 1)); line-height: 1.4; flex: none; filter: drop-shadow(0 0 6px rgba(var(--acc-rgb),.45)); }
.kit-lab { font-size: calc(11.5px * var(--ts, 1)); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kit-val { font-size: calc(14.5px * var(--ts, 1)); color: #e8e8ee; font-weight: 600; margin-top: 2px; }


/* Kept / gifted + tab search */
.gift-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: calc(12.5px * var(--ts, 1)); font-weight: 600; color: var(--accent); background: rgba(var(--acc-rgb),.1); border: 1px solid rgba(var(--acc-rgb),.4); box-shadow: 0 0 10px rgba(var(--acc-rgb),.2); }
.wip-title .gift-chip { margin-top: 0; }
.wip-card.gifted { border-color: rgba(var(--acc-rgb),.55); }
.tab-search { margin: 0 0 8px; }
/* Focused Projects search sticks just under the app header. Scroll anchoring is off for the
   list so hiding cards while typing cannot drag the field (or the page) around. */
body.proj-searching #profileTab,
body.proj-searching #profileTab * { overflow-anchor: none; }
.tab-search.seated {
  position: sticky;
  top: var(--proj-seat, var(--top-h));
  z-index: 16;
  background: var(--bg);
  overflow-anchor: none;
  box-shadow: 0 10px 0 var(--bg);
}
.tab-search.seated input { scroll-margin-top: calc(var(--proj-seat, var(--top-h)) + 4px); }
.tab-search input { background: #15151c !important; color: #e8e8ee !important; border: 1.5px solid #2a2a35 !important; }
.tab-search input:focus { border-color: rgba(var(--acc-rgb),.55) !important; box-shadow: 0 0 0 2px rgba(var(--acc-rgb),.18); }
.tab-search input::placeholder { color: #8a8a98; }

.gift-chip a.gift-user { color: inherit; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(var(--acc-rgb),.55); }
.gift-chip a.gift-user:hover { color: #fff; border-bottom-color: var(--accent); }
@keyframes totalPulse { 50% { text-shadow: 0 0 14px rgba(var(--acc-rgb),.7), 0 0 28px rgba(var(--acc-rgb),.35); } }
@media (prefers-reduced-motion: reduce) { }


.gift-sheet-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }
.gift-recipient-field { position: relative; }
/* Single-line gift field (textarea avoids iOS Passwords autofill) */
#gift-recipient, textarea#gift-recipient {
  resize: none !important; overflow: hidden !important; min-height: 0 !important;
  height: 46px; max-height: 46px; line-height: 22px; white-space: nowrap;
  field-sizing: fixed;
}
/* Inline AC: never position:fixed (that painted at viewport top behind the sheet) */
.mention-ac-inline, #gift-ac-host {
  position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
  width: 100% !important; max-height: 220px; margin-top: 8px; z-index: 5;
  display: block; overflow-y: auto; overflow-x: hidden;
  background: #141016; border: 1px solid var(--accent-soft);
  border-radius: 14px; box-shadow: 0 8px 22px rgba(0,0,0,.55), 0 0 14px rgba(var(--acc-rgb),.2);
  padding: 4px; color: #e8e8ee; box-sizing: border-box;
}
.mention-ac-inline[hidden], #gift-ac-host[hidden] { display: none !important; }
.mention-ac-inline .ac-item, #gift-ac-host .ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.mention-ac-inline .ac-item.on, .mention-ac-inline .ac-item:hover,
#gift-ac-host .ac-item.on, #gift-ac-host .ac-item:hover { background: rgba(var(--acc-rgb),0.16); }
.mention-ac-inline .ac-item div, #gift-ac-host .ac-item div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mention-ac-inline .ac-item b, #gift-ac-host .ac-item b { color: #fff; font-size: calc(14.5px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; }
.mention-ac-inline .ac-item span, #gift-ac-host .ac-item span { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Projects tab: My Stash / WIPs / Finished */
.proj-sub { margin-top: 2px; }
.stash-fav-sub { margin: 8px 0 6px; }
.seg.tabs.proj-sub a { font-size: calc(13.5px * var(--ts, 1)); padding: 8px 4px; }


#setBuild { cursor: default; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; display: inline-block; padding: 8px 0; }

.settings-top { margin: 4px 0 12px; }
.set-edit-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; }
.set-edit-row .set-chev { color: var(--muted); font-size: calc(20px * var(--ts, 1)); line-height: 1; }

/* Feed comment previews (v100: the same interactive thread style, latest thread only) */
.comments.cprev { margin-top: 8px; padding-top: 4px; }
.view-all-c { display: block; color: var(--muted); font-weight: 600; font-size: calc(13px * var(--ts, 1)); padding: 4px 0 2px; min-height: 30px; }
.view-all-c:hover, .view-all-c:focus-visible { color: var(--accent-2); }
.view-all-c[hidden] { display: none; }
.comments.cprev .comment .ctext { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.comments.cprev .comment .ctext.open { display: block; overflow: visible; }   /* ds-v696: tap to read the whole comment */

/* YouTube link preview card (client-side thumbnail only) */
.yt-card {
  display: block; margin: 8px 0 6px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(var(--acc-rgb), .55);
  box-shadow: 0 0 12px rgba(var(--acc-rgb), .28);
  background: #0a0a0e; text-decoration: none; color: inherit;
}
.yt-card .yt-thumb { display: block; position: relative; aspect-ratio: 16 / 9; background: #111; }
.yt-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.3); pointer-events: none;
}
.yt-play::before {
  content: ''; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(0,0,0,.7); border: 2px solid rgba(var(--acc-rgb), .85);
  box-shadow: 0 0 14px rgba(var(--acc-rgb), .5);
}
.yt-play::after {
  content: ''; position: absolute; width: 0; height: 0;
  border-style: solid; border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #fff; margin-left: 3px;
}
.bubble .yt-card, .dm .yt-card { margin: 6px 0 2px; border-radius: 12px; }
.bubble .yt-play::before, .dm .yt-play::before { width: 42px; height: 42px; }
.bubble .yt-play::after, .dm .yt-play::after { border-width: 7px 0 7px 12px; }

.yt-meta {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px 12px; background: #121218;
  border-top: 1px solid rgba(var(--acc-rgb), .28);
}
.yt-meta[hidden] { display: none !important; }
.yt-title {
  color: #f2f2f6; font-size: calc(14px * var(--ts, 1)); font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yt-author { color: var(--muted); font-size: calc(12px * var(--ts, 1)); font-weight: 600; }

/* Logged-out welcome gate */
body.welcome-gate-on .shell { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
body.welcome-gate-on .top.welcome-top { border-bottom: none; }
body.welcome-gate-on .top.welcome-top .logo { display: none; }
body.auth-screen .bottom,
body.welcome-gate-on .bottom,
#bottomNav[hidden],
#iconRow[hidden] { display: none !important; }
.welcome-gate {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: calc(100vh - 120px);
  padding: 32px 22px 40px; gap: 0;
}
.welcome-brand {
  --drill: 52px; position: relative; padding: 0 28px 20px 0; margin: 0 0 18px;
}
.welcome-tag {
  color: var(--muted); font-size: calc(15.5px * var(--ts, 1)); line-height: 1.45;
  max-width: 300px; margin: 0 0 28px;
}
.welcome-gate .btn { width: 100%; max-width: 280px; margin: 0 0 10px; }
.welcome-gate .btn.ghost { margin-bottom: 28px; }
.welcome-legal { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); margin: 0; }
.welcome-legal a { color: var(--muted); text-decoration: none; }
.welcome-legal a:hover { color: var(--accent-pale); }
.welcome-legal span { margin: 0 6px; opacity: .6; }

/* Camera + library pickers (ds-v76) */
.composer-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.composer:hover .composer-input { color: #b9b9c3; }
.composer-main:hover .composer-input { color: #fff; }
label.composer-photo { cursor: pointer; margin-left: -4px; border-radius: 999px; }
label.composer-photo:active { transform: scale(.92); }
.photo-pick-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 2px 0 12px; }
.photo-pick-row .photo-picker { margin: 0; }
.cam-btn svg, .pick-btns .btn svg { width: 18px; height: 18px; color: var(--accent); filter: drop-shadow(0 0 4px rgba(var(--acc-rgb),.7)); }
.cam-btn { display: inline-flex; align-items: center; gap: 6px; }
.pick-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pick-btns .btn { align-items: center; gap: 6px; }
.create-title { margin: 0 0 12px; font-size: calc(18px * var(--ts, 1)); }
.create-row { display: flex; align-items: center; gap: 14px; padding: 16px 14px; margin: 0 0 10px; border-radius: 16px;
  background: linear-gradient(180deg, #221b2d 0%, #17131f 100%); border: 1.5px solid rgba(var(--acc-rgb), .45); color: var(--text); text-decoration: none;
  box-shadow: 0 0 8px rgba(var(--acc-rgb), .18); transition: border-color .15s, box-shadow .15s, transform .1s; }
.create-row:hover, .create-row:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .16), var(--glow-soft); outline: none; }
.create-row:active { transform: scale(.985); }
.create-ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(var(--acc-rgb), .12); border: 1px solid rgba(var(--acc-rgb), .5); color: var(--accent); }
.create-ico svg { width: 26px; height: 26px; filter: drop-shadow(0 0 5px rgba(var(--acc-rgb), .8)); }
.create-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.create-txt b { font-size: calc(16px * var(--ts, 1)); }
.create-txt small { color: var(--muted); font-size: calc(13px * var(--ts, 1)); }
.create-chev { color: var(--accent-2); font-size: calc(24px * var(--ts, 1)); line-height: 1; }
input[type=date], input[type=time] { width: 100%; box-sizing: border-box; border-radius: 12px; padding: 12px 14px; font: inherit; min-height: 46px;
  background: var(--field); color: var(--text); border: 1.5px solid var(--field-border); color-scheme: dark; -webkit-appearance: none; appearance: none; }
input[type=date]:focus, input[type=time]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .18); outline: none; }
.ev-where { margin: 0; }
.ev-where button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ev-where button svg { width: 16px; height: 16px; }
.create-form .btn.block svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.placeholder .btn svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; } .create-form [hidden] { display: none !important; }

/* Event host badge (profile) */
.host-badge { display: inline-flex; align-items: center; gap: 5px; margin: 6px auto 0; padding: 3px 9px; border-radius: 6px; font-size: calc(10.5px * var(--ts, 1)); font-weight: 800;
  letter-spacing: .03em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--accent-fill), var(--accent)); border: 0;
  box-shadow: 0 0 8px rgba(var(--acc-rgb), .55), 0 0 18px rgba(var(--acc-rgb), .2); cursor: pointer; }
.host-badge svg { width: 13px; height: 13px; }
.host-badge:active { transform: scale(.96); }

.np-head { gap: 8px; }
.np-head .more { flex: none; color: var(--text); }
.np-head .menu { top: 40px; min-width: 180px; }
.menu .menu-ico { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.menu .menu-ico svg { width: 18px; height: 18px; color: var(--accent); filter: drop-shadow(0 0 4px rgba(var(--acc-rgb), .7)); }

/* Community/Discover Events section (ds-v81) */
.sec-links { display: inline-flex; align-items: baseline; gap: 14px; }
.sec-create { color: var(--muted); font-size: calc(13px * var(--ts, 1)); text-decoration: none; }
.sec-create:hover { color: var(--accent-pale); }
.ev-empty .btn svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

/* Projects search: [hidden] must beat .wip-card/.wip-grid display rules (that is why the filter did nothing) */
#tabList [hidden], #tabList[hidden] { display: none !important; }

/* ds-v86: multi-photo posts. Collage (2 side by side, 3 = big + two stacked, 4 = 2x2), rounded cells with small gaps. */
.pc-grid { display: grid; gap: 3px; margin: 10px 0 8px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; touch-action: manipulation; }
.pc-grid.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.pc-grid.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.pc-grid.n3 img:first-child { grid-row: 1 / span 2; }
.pc-grid.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1; }
.pc-grid img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; background: #0d0a12; border-radius: 6px;
  border: 1px solid rgba(var(--acc-rgb),.45); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); cursor: zoom-in; }
.post-body + .pc-grid, .see-more + .pc-grid { margin-top: 6px; }
.embed .pc-grid { margin: 8px 0 6px; }
.lb-dots { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 2; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.lb-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .15s, box-shadow .15s; }
.lb-dots span.on { background: var(--accent); box-shadow: 0 0 6px var(--accent), 0 0 12px rgba(var(--acc-rgb),.6); }
/* composer thumbnails (up to 4) */
.np-thumbs { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.np-thumbs:empty { display: none; }
.np-thumb { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #0d0a12;
  border: 1px solid rgba(var(--acc-rgb),.6); box-shadow: 0 0 8px rgba(var(--acc-rgb),.25); }
.np-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.np-thumb.busy { display: grid; place-items: center; color: var(--accent-2); font-weight: 700; animation: npPulse 1s ease-in-out infinite alternate; }
@keyframes npPulse { from { opacity: .55; } to { opacity: 1; } }
.np-thumb .np-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border-radius: 50%;
  background: rgba(0,0,0,.78); border: 1px solid var(--accent); color: #fff; font-size: calc(12px * var(--ts, 1)); line-height: 1; cursor: pointer; }
.photo-pick-row.full .photo-picker { display: none; }
.np-count { margin: -6px 0 10px; font-size: calc(12px * var(--ts, 1)); color: var(--accent-2); }
.np-count[hidden] { display: none; }

/* ds-v87: WIP timeline times pop. Duration like the Total time value (neon accent), clock times bold + bright, header time of day bold. */
.tl-sess .tl-dur { font-size: calc(17px * var(--ts, 1)); font-weight: 800; color: var(--accent); letter-spacing: .01em; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(var(--acc-rgb),.45), 0 0 22px rgba(var(--acc-rgb),.2); }
.tl-sess .tl-clock { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 8px rgba(var(--acc-rgb),.35); }
.tl-date { color: #ece6f6; color: color-mix(in srgb, var(--accent-pale) 55%, #fff); }
.tl-date .tl-tod { font-weight: 700; color: #fff; text-shadow: 0 0 8px rgba(var(--acc-rgb),.3); }
.tl-sess .tl-dur, .tl-sess .tl-clock, .tl-date .tl-tod { white-space: nowrap; }

/* ds-v88: edit session time / adjust running start */
.wip-timer .tm-adjust { padding: 0; font-size: calc(12.5px * var(--ts, 1)); color: var(--accent-pale); margin-left: auto; }
.st-sheet input[type=datetime-local] { color-scheme: dark; background: #0d0a12; color: #f3f0fa; border: 1px solid rgba(var(--acc-rgb),.45); }
.st-preview { min-height: 22px; margin: 2px 0 6px; color: #d4d4da; font-size: calc(14.5px * var(--ts, 1)); }
.st-preview .tl-dur { font-size: calc(17px * var(--ts, 1)); font-weight: 800; color: var(--accent); text-shadow: 0 0 10px rgba(var(--acc-rgb),.45), 0 0 22px rgba(var(--acc-rgb),.2); }
.neon-check { gap: 10px; cursor: pointer; color: #ece8f4; }
.neon-check input[type=checkbox] { -webkit-appearance: none; appearance: none; flex: 0 0 22px; width: 22px; height: 22px; margin: 0; border-radius: 7px;
  border: 1.5px solid rgba(var(--acc-rgb),.75); background: #0d0a12; box-shadow: 0 0 6px rgba(var(--acc-rgb),.3); display: grid; place-content: center; cursor: pointer; transition: background .15s, box-shadow .15s; }
.neon-check input[type=checkbox]::after { content: ''; width: 6px; height: 11px; margin-top: -2px; border: solid #0b0b10; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .12s ease; }
.neon-check input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent), 0 0 18px rgba(var(--acc-rgb),.5); }
.neon-check input[type=checkbox]:checked::after { transform: rotate(45deg) scale(1); }
.neon-check input[type=checkbox]:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
#tmp:disabled { opacity: .6; }
@media (max-width: 400px) { }
.grid3 img.ph-img { cursor: zoom-in; }
.lb-post { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(44px + env(safe-area-inset-bottom)); z-index: 2; padding: 8px 16px; border-radius: 999px;
  background: rgba(20,20,26,.8); border: 1px solid rgba(var(--acc-rgb),.6); color: #fff; font: inherit; font-size: calc(13px * var(--ts, 1)); font-weight: 700; box-shadow: 0 0 10px rgba(var(--acc-rgb),.3); cursor: pointer; }

/* ds-v91: Include time (sub-option of Share) + time line on shared WIP cards, styled like the timeline times */
.share-time { margin-left: 32px; font-size: calc(14px * var(--ts, 1)); }
.share-time[hidden] { display: none !important; }
.wip-time { margin: 6px 0 2px; color: #d4d4da; font-size: calc(14px * var(--ts, 1)); font-variant-numeric: tabular-nums; }
.wip-time .tl-dur { font-size: calc(16px * var(--ts, 1)); font-weight: 800; color: var(--accent); white-space: nowrap; text-shadow: 0 0 10px rgba(var(--acc-rgb),.45), 0 0 22px rgba(var(--acc-rgb),.2); }

/* ds-v92: online events (link optional) */
.ev-online-note .ev-addlink { font-size: calc(13px * var(--ts, 1)); color: var(--accent-pale); padding: 6px 0 0; }
.ev-online-note #nevUrlWrap { margin-top: 10px; }
.ev-online-note [hidden] { display: none !important; }
.ev-online-check { margin: 0 0 12px; }
/* ds-v92: every radio and checkbox is dark (no white circles): dark fill, accent border, accent dot / check when selected. */
input[type=radio]:not(.switch), input[type=checkbox]:not(.switch) {
  -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 20px; height: 20px; margin: 0; box-sizing: border-box; vertical-align: middle;
  border: 1.5px solid rgba(var(--acc-rgb),.75); background: #0d0a12; box-shadow: 0 0 6px rgba(var(--acc-rgb),.25);
  display: inline-grid; place-content: center; cursor: pointer; transition: background .15s, box-shadow .15s, border-color .15s; }
input[type=radio]:not(.switch) { border-radius: 50%; }
input[type=checkbox]:not(.switch) { border-radius: 6px; }
input[type=radio]:not(.switch)::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); transform: scale(0); transition: transform .12s ease; }
input[type=radio]:not(.switch):checked { border-color: var(--accent); box-shadow: 0 0 8px rgba(var(--acc-rgb),.55); }
input[type=radio]:not(.switch):checked::after { transform: scale(1); }
input[type=checkbox]:not(.switch)::after { content: ''; width: 5px; height: 10px; margin-top: -2px; border: solid #0b0b10; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .12s ease; }
input[type=checkbox]:not(.switch):checked { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent), 0 0 16px rgba(var(--acc-rgb),.45); }
input[type=checkbox]:not(.switch):checked::after { transform: rotate(45deg) scale(1); }
input[type=radio]:not(.switch):focus-visible, input[type=checkbox]:not(.switch):focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
input[type=radio]:not(.switch):disabled, input[type=checkbox]:not(.switch):disabled { opacity: .5; cursor: default; }
input[type=radio][hidden], input[type=checkbox][hidden] { display: none !important; }
.neon-check input[type=checkbox] { width: 22px; height: 22px; border-radius: 7px; }

/* ds-v93: groups */
.grp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 10px; }
.grp-grid .placeholder { grid-column: 1 / -1; }
.ev-row .grp-card { flex: none; width: 210px; scroll-snap-align: start; }
.role-tag.admin { color: var(--accent); text-shadow: 0 0 6px rgba(var(--acc-rgb),.5); }
.role-tag.moderator { color: var(--accent-pale); }
.ninv { display: flex; gap: 8px; margin-top: 8px; }
.load-more { display: block; margin: 8px auto 16px; }

/* ds-v94: group WIPs */
.gw-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.grp-only { display: inline-block; margin: 4px 0 2px; padding: 1px 8px; border-radius: 999px; font-size: calc(11.5px * var(--ts, 1)); font-weight: 700; color: var(--accent); border: 1px solid rgba(var(--acc-rgb),.5); background: rgba(var(--acc-rgb),.08); }
.prof-check { margin-top: 8px; }
.prof-check-hint { margin: 2px 0 8px 30px; }
.wf-group { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; }
.wf-group svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ds-v95: shared cover picker */
.cover-drop { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 16px; overflow: hidden; cursor: pointer;
  display: grid; place-items: center; background: #0d0a12; border: 1.5px dashed rgba(var(--acc-rgb), .55);
  box-shadow: inset 0 0 22px rgba(var(--acc-rgb), .08); transition: border-color .2s, box-shadow .2s; }
.cover-drop:hover, .cover-drop:focus-visible { border-color: var(--accent); box-shadow: inset 0 0 26px rgba(var(--acc-rgb), .16), 0 0 10px rgba(var(--acc-rgb), .25); outline: none; }
.cover-drop.has { cursor: default; border-style: solid; border-color: rgba(var(--acc-rgb), .7); }
.cover-drop.busy::after { content: 'Optimizing…'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8,6,12,.7); color: #e6e6ea; font-weight: 700; font-size: calc(14px * var(--ts, 1)); }
.cover-drop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-drop [hidden] { display: none !important; }
.cover-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #e6e6ea; font-weight: 700; font-size: calc(14px * var(--ts, 1)); text-align: center; padding: 0 12px; }
.cover-empty svg { width: 32px; height: 32px; color: var(--accent); filter: drop-shadow(0 0 5px rgba(var(--acc-rgb), .7)); }
.cover-empty small { color: var(--muted); font-weight: 400; font-size: calc(12px * var(--ts, 1)); }
.cover-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.cover-pill, .field label.cover-pill { display: inline-flex; margin: 0; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 14px; min-width: 0;
  border-radius: 999px; background: #120e19; border: 1px solid rgba(var(--acc-rgb), .6); color: #f2f0f7; font: inherit; font-weight: 700; font-size: calc(14px * var(--ts, 1));
  line-height: 1; white-space: nowrap; cursor: pointer; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.field label.cover-pill { color: #f2f0f7; font-size: calc(14px * var(--ts, 1)); }
.cover-pill svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.cover-pill span { overflow: hidden; text-overflow: ellipsis; }
.cover-pill:active { background: rgba(var(--acc-rgb), .14); }
.cover-pill[data-cover-rm] svg { color: #ff8fa8; }
.avatar-row .cover-pill { flex: none; }

/* ds-v97: the whole board card opens the WIP; owner link + remove button sit above the hit area */
.board-card { position: relative; }
.board-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; -webkit-tap-highlight-color: transparent; }
.board-card .board-owner, .board-card [data-unlink] { position: relative; z-index: 2; align-self: flex-start; }
.board-card .board-cover .fin-badge { z-index: 2; }
body.chrome-arming .top, body.chrome-arming .bottom { pointer-events: none; }

/* ds-v98: group chips on WIPs */
.grp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 2px; min-width: 0; }
.grp-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-width: 0; height: 24px; padding: 0 10px 0 8px; box-sizing: border-box;
  border-radius: 999px; background: rgba(var(--acc-rgb), .1); border: 1px solid rgba(var(--acc-rgb), .6); color: var(--accent);
  font-size: calc(12px * var(--ts, 1)); font-weight: 700; line-height: 1; cursor: pointer; position: relative; z-index: 2; box-shadow: 0 0 8px rgba(var(--acc-rgb), .18);
  -webkit-tap-highlight-color: transparent; }
.grp-chip svg { width: 14px; height: 14px; flex: none; }
.grp-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.grp-chip:active, .grp-chip:focus-visible { background: rgba(var(--acc-rgb), .2); outline: none; }
.grp-chips .grp-only { margin: 0; }
.wip-grp-chips { margin: 6px 0 4px; }
.wip-grp-chips .grp-chip { height: 28px; font-size: calc(13px * var(--ts, 1)); }
.wip-grp-chips .grp-chip span { max-width: 220px; }

/* ds-v98: bulk invite sheet */
.inv-sheet { display: flex; flex-direction: column; max-height: 86vh; max-height: 86dvh; }
.inv-search { margin: 4px 0 6px; }
.inv-search input { background: #0d0a12; }
.inv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.inv-list { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; margin: 2px -4px 0; padding: 0 4px; min-height: 120px; }
.inv-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; }
.inv-row.off { opacity: .45; cursor: default; }
.inv-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inv-who b, .inv-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-who small { color: var(--muted); font-size: calc(12px * var(--ts, 1)); }
.inv-row input[type=checkbox] { flex: none; width: 22px; height: 22px; margin: 0; }
.inv-tag { flex: none; font-size: calc(11.5px * var(--ts, 1)); font-weight: 700; color: var(--muted); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 2px 8px; }
.inv-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(var(--acc-rgb),.25); margin-top: 6px; }
.inv-foot .btn { min-width: 120px; }

/* ds-v99: immersive group header */
#app.grp-page, .app-ghost.grp-page { position: relative; z-index: 0; }
#app.grp-page::before, .app-ghost.grp-page::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 620px; pointer-events: none; z-index: -1;
  background: radial-gradient(110% 60% at 50% 18%, rgba(var(--acc-rgb), .14), transparent 72%); }
.grp-hero { position: relative; margin: -6px -12px 0; aspect-ratio: 16 / 9; max-height: 300px; width: calc(100% + 24px); overflow: hidden; }
.grp-cover{ -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
.grp-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.grp-nocover { display: grid; place-items: center; background: radial-gradient(80% 90% at 30% 20%, rgba(var(--acc-rgb), .45), transparent 60%), linear-gradient(160deg, #241336, #0d0a12 70%); }
.grp-nocover svg { width: 64px; height: 64px; color: var(--accent); opacity: .55; filter: drop-shadow(0 0 12px rgba(var(--acc-rgb), .8)); margin-bottom: 40px; }
.grp-back { position: absolute; top: 10px; left: 10px; margin: 0; z-index: 2; display: inline-flex; align-items: center; gap: 4px; max-width: 70%;
  padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(8,6,12,.62); border: 1px solid rgba(255,255,255,.14); color: #f2f0f7; font-size: calc(13px * var(--ts, 1)); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grp-back svg { width: 16px; height: 16px; flex: none; }
.grp-hero-txt { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2; }
.grp-hero-txt h1 { margin: 0; font-size: calc(27px * var(--ts, 1)); line-height: 1.12; font-weight: 800; color: #fff; letter-spacing: -.01em;
  text-shadow: 0 2px 14px rgba(0,0,0,.7), 0 0 18px rgba(var(--acc-rgb), .35); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grp-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: calc(13.5px * var(--ts, 1)); font-weight: 600; color: #e4def0; }
.grp-meta svg { width: 15px; height: 15px; color: var(--accent); filter: drop-shadow(0 0 4px rgba(var(--acc-rgb), .7)); }
.grp-meta .dot { color: var(--muted); }
.grp-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px 4px; flex-wrap: wrap; }
.grp-faces { display: flex; align-items: center; padding-left: 8px; min-width: 0; }
.grp-faces .avatar { width: 32px; height: 32px; margin-left: -8px; border: 2px solid #0f0c15; box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .45); border-radius: 50%; }
.grp-faces .grp-more { margin-left: -8px; height: 32px; min-width: 32px; padding: 0 7px; box-sizing: border-box; border-radius: 999px; display: grid; place-items: center;
  background: #17121f; border: 2px solid #0f0c15; box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .45); color: var(--accent-pale); font-size: calc(12px * var(--ts, 1)); font-weight: 800; }
.grp-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.grp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; box-sizing: border-box;
  background: #15111c; border: 1px solid rgba(var(--acc-rgb), .55); color: #f2f0f7; font-weight: 700; font-size: calc(14px * var(--ts, 1)); white-space: nowrap; }
.grp-btn svg { width: 17px; height: 17px; flex: none; color: var(--accent); }
.grp-btn.on { background: rgba(var(--acc-rgb), .14); border-color: var(--accent); box-shadow: 0 0 10px rgba(var(--acc-rgb), .3); }
.grp-btn.on svg:last-child { width: 15px; height: 15px; margin-right: -4px; color: #cfc6dc; }
.grp-btn.fill { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; box-shadow: 0 0 12px rgba(var(--acc-rgb), .5); }
.grp-btn.fill svg { color: #fff; }
.grp-btn.icon { width: 36px; padding: 0; }
.grp-btn:disabled { opacity: .6; }
.grp-you { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font-size: calc(12.5px * var(--ts, 1)); font-weight: 700; color: var(--accent-pale); text-shadow: 0 0 8px rgba(var(--acc-rgb), .55); }
.grp-you svg { width: 14px; height: 14px; color: var(--accent); filter: drop-shadow(0 0 3px rgba(var(--acc-rgb), .7)); }
.grp-desc { margin: 8px 2px 4px; color: #d9d4e2; font-size: calc(14.5px * var(--ts, 1)); }
.grp-head .ev-note { margin-top: 10px; }
/* Sticky: mini bar (tucked under the app header until the cover scrolls away) + tabs. Changing `top` never changes layout. */
:root { --top-h: 82px; --mini-h: 44px; --sat: env(safe-area-inset-top, 0px); }   /* --sat: overridable in tests to simulate the iPhone notch */
.grp-stick { position: sticky; z-index: 15; top: calc(var(--top-h) - var(--mini-h)); margin: 6px -12px 0; padding: 0 12px; margin-top: calc(6px - var(--mini-h));
  pointer-events: none; transition: top .2s ease; }
.grp-stick::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; top: var(--mini-h); z-index: -1; background: rgba(15,12,21,.97); }
.grp-stick.mini::before { top: 0; }
.grp-stick .seg.tabs, .grp-stick.mini .grp-mini { pointer-events: auto; }
.grp-stick.mini { top: var(--top-h); box-shadow: 0 8px 18px -10px rgba(var(--acc-rgb), .45); border-bottom: 1px solid rgba(var(--acc-rgb), .25); }
body.chrome-faded .grp-stick { top: calc(0px - var(--mini-h)); }
body.chrome-faded .grp-stick.mini { top: 0; }
.grp-mini { height: var(--mini-h); display: flex; align-items: center; gap: 10px; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.grp-stick.mini .grp-mini { opacity: 1; }
.grp-mini img, .grp-mini-ph { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: none; border: 1px solid rgba(var(--acc-rgb), .5); }
.grp-mini-ph { display: grid; place-items: center; background: #1b1326; }
.grp-mini-ph svg { width: 18px; height: 18px; color: var(--accent); }
.grp-mini b { font-size: calc(15px * var(--ts, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.grp-mini-tag svg { width: 15px; height: 15px; color: var(--accent); display: block; }
.grp-stick .seg.tabs { margin: 0; position: relative; top: 0; }
.grp-stick { padding-bottom: 8px; }
#grpBox { padding-top: 6px; }
@media (prefers-reduced-motion: reduce) { .grp-stick, .grp-mini { transition: none; } }

/* v100: reshared post cards: links as a tidy title chip, dark photo frame */
span.url.url-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; vertical-align: middle; margin: 4px 0 2px;
  padding: 5px 10px; border-radius: 10px; background: #15151b; border: 1px solid rgba(var(--acc-rgb),.3); white-space: nowrap; overflow: hidden; }
span.url.url-chip svg { width: 15px; height: 15px; flex: 0 0 auto; }
span.url.url-chip .ut { overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: #ececf2; min-width: 0; }
span.url.url-chip .uh { color: var(--muted); font-size: calc(12px * var(--ts, 1)); flex: 0 1 auto; max-width: 34%; overflow: hidden; text-overflow: ellipsis; }
.embed .post-img { background: #0a0a0e; border-color: rgba(var(--acc-rgb),.3); }

/* v101: comment options behind a subtle ⋯ (and long-press), no bare Delete link */
.comment .cmeta .cmore { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 22px; margin: -4px 0 -4px -4px; border-radius: 8px; color: var(--muted); opacity: .7; }
.comment .cmeta .cmore svg { width: 15px; height: 15px; }
.comment .cmeta .cmore:hover, .comment .cmeta .cmore:focus-visible { opacity: 1; color: #e6e6ea; background: #1d1d23; }
.comment .bubble.lp { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.cmenu { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.cmenu-who { color: var(--muted); font-size: calc(13px * var(--ts, 1)); margin: 0 4px 8px; }
.cmenu-who b { color: #e6e6ea; font-weight: 600; }
.cmenu-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 12px; border-radius: 12px; font-size: calc(15px * var(--ts, 1)); font-weight: 600; color: #e6e6ea; text-align: left; }
.cmenu-row + .cmenu-row { margin-top: 2px; }
.cmenu-row svg { width: 20px; height: 20px; flex: none; color: var(--accent-2); }
.cmenu-row:hover, .cmenu-row:focus-visible { background: #1a1a20; outline: none; }
.cmenu-row.danger, .cmenu-row.danger svg { color: #ff5a5f; }
.cmenu-x { width: 100%; margin-top: 8px; }

/* v102: group / event link preview cards (same shape as the shared WIP card) */
.ds-card .embed-wip-cover img.ds-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
.ds-card .embed-wip-cover.empty { background: radial-gradient(120% 90% at 50% 0%, rgba(var(--acc-rgb), .22), #15121c 70%); }
.ds-card .embed-wip-cover.empty svg { width: 40px; height: 40px; color: var(--accent); filter: drop-shadow(0 0 8px rgba(var(--acc-rgb), .7)); }
.ds-card .embed-wip-title { font-size: calc(15.5px * var(--ts, 1)); }
.ds-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); font-weight: 600; }
.ds-sub .dot { opacity: .7; }
.ds-vis { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-pale); }
.ds-vis svg { width: 13px; height: 13px; color: var(--accent); }
.ds-card.loading .nm, .ds-card.loading .ds-sub { background: #1c1924; border-radius: 6px; color: transparent; max-width: 60%; }
.ds-card.loading .ds-sub { max-width: 40%; }

/* v104: board cards: Total time, live Active tag, and a small options button instead of an underlined link */
.bw-more { position: absolute; top: 6px; right: 6px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 8, 14, .72); border: 1px solid rgba(var(--acc-rgb), .35); color: #e6e6ea; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.bw-more svg { width: 16px; height: 16px; }
.bw-time { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 1px; font-variant-numeric: tabular-nums; }
.bw-total { font-size: calc(12px * var(--ts, 1)); font-weight: 700; color: var(--accent); letter-spacing: .01em; text-shadow: 0 0 8px rgba(var(--acc-rgb), .45); white-space: nowrap; }
.bw-total b { font-weight: 800; }
.bw-active { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 7px; border-radius: 999px; white-space: nowrap;
  font-size: calc(11.5px * var(--ts, 1)); font-weight: 800; color: var(--accent-pale); background: rgba(var(--acc-rgb), .16); border: 1px solid var(--accent); }
.bw-active b { font-weight: 800; color: #fff; }
.bw-active::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 10px rgba(var(--acc-rgb), .85), 0 0 20px rgba(var(--acc-rgb), .4); opacity: .35; animation: bwPulse 1.8s ease-in-out infinite; }
.bw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: bwDot 1.8s ease-in-out infinite; }
@keyframes bwPulse { 50% { opacity: 1; } }
@keyframes bwDot { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .bw-active::after, .bw-dot { animation: none; } }
/* ds-v105: inline composer (Glo Board + group Posts). Dark auto-growing field, inline thumbs, send appears with content. */
.composer.ic { flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.composer.ic > .avatar.sm { align-self: flex-start; margin-top: 1px; }
.composer.ic .ic-input { display: block; resize: none; height: 42px; min-height: 42px; max-height: 168px; overflow-y: auto; margin: 0;
  background: #120f18; color: #f5f5f7; border-radius: 21px; padding: 10px 14px; line-height: 1.35; font: inherit; font-size: calc(15px * var(--ts, 1));
  white-space: pre-wrap; text-overflow: clip; outline: none; -webkit-appearance: none; appearance: none; }
.composer.ic .ic-input::placeholder { color: #b9b9c3; opacity: 1; }
.composer.ic .ic-input:focus { box-shadow: 0 0 0 3px rgba(var(--acc-rgb),.18), 0 0 14px rgba(var(--acc-rgb),.5); }
.composer.ic.multi .ic-input { border-radius: 16px; }
.composer.ic label.composer-photo { margin: 0 0 3px; }
.composer.ic label.composer-photo.off { opacity: .35; pointer-events: none; }
.ic-send { flex: 0 0 auto; width: 38px; height: 38px; margin-bottom: 2px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--accent-fill); box-shadow: 0 0 10px rgba(var(--acc-rgb),.6); }
.ic-send svg { width: 20px; height: 20px; }
.ic-send:disabled { opacity: .5; cursor: default; }
.ic-send:not(:disabled):active { transform: scale(.92); }
.composer.ic.sending .ic-input { opacity: .6; }
.ic-thumbs { flex-basis: 100%; order: 5; display: flex; gap: 8px; flex-wrap: wrap; padding-left: 48px; }
.ic-thumbs .np-thumb { width: 64px; height: 64px; }
article.post.ic-new { animation: icIn .35s ease-out; }
@keyframes icIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { article.post.ic-new { animation: none; } }
@media (pointer: coarse) { body.ic-typing .bottom { opacity: 0; visibility: hidden; pointer-events: none; } }
.ic-send[hidden], .ic-thumbs[hidden] { display: none; }
.composer.ic .ic-input::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ds-v106: inline composer expands on focus / with content. Field takes the full card width, avatar folds away,
   photo/camera/send sit on a row below. Width/height/opacity transitions only (nothing fixed is transformed). */
.composer.ic > .avatar.sm { flex: 0 0 auto; width: 40px; margin-right: 0; overflow: hidden; transition: width .2s ease, opacity .2s ease, margin-right .2s ease; }
.composer.ic .ic-input { flex: 0 0 auto; width: calc(100% - 136px); max-height: none; overflow-y: hidden;
  transition: width .2s ease, min-height .2s ease, border-radius .2s ease, box-shadow .2s ease; }
.composer.ic.open > .avatar.sm { width: 0; min-width: 0; opacity: 0; margin-right: -8px; border-width: 0; padding: 0; box-shadow: none; }
.composer.ic.open .ic-input { width: 100%; min-height: 84px; border-radius: 16px; order: 1; }
.composer.ic.open .ic-thumbs { order: 2; padding-left: 0; }
.composer.ic.open label.composer-photo, .composer.ic.open button.composer-photo { order: 3; margin: 0; }
.composer.ic.open .ic-send { order: 4; margin: 0 0 0 auto; }
.composer.ic:not(.open) .ic-poll-btn { display: none; }
.composer.ic.open .ic-poll-btn { display: grid; place-items: center; }
.composer.ic.open .ic-poll-btn[hidden] { display: none !important; }
.composer.ic .ic-poll { display: none; width: 100%; flex-basis: 100%; order: 5; }
.composer.ic.open .ic-poll:not([hidden]) { display: block; }
.ic-poll-btn svg { width: 22px; height: 22px; color: var(--accent); filter: drop-shadow(0 0 5px rgba(var(--acc-rgb),.7)); }
@media (prefers-reduced-motion: reduce) { .composer.ic > .avatar.sm, .composer.ic .ic-input { transition: none; } }
.as-biz-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ds-v108: inline YouTube player */
.yt-card.yt-playing { background: #0b0a10; }
.yt-card.yt-playing iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.yt-open { display: block; padding: 7px 12px 8px; font-size: calc(12.5px * var(--ts, 1)); color: var(--accent-2); text-decoration: none; }
.yt-open:hover { text-decoration: underline; }
/* ds-v111: owner's draggable progress bar (looks like .pbar, small thumb, big touch area) */
.pslider { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 24px; margin: 0 0 -4px; background: transparent; cursor: pointer; touch-action: pan-y; }
.pslider::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent-fill), var(--accent) var(--p), #23232b var(--p)); box-shadow: 0 0 8px rgba(var(--acc-rgb),.45); }
.pslider::-moz-range-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent-fill), var(--accent) var(--p), #23232b var(--p)); }
.pslider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -5px; border-radius: 50%; background: #1a1622; border: 2px solid var(--accent); box-shadow: 0 0 8px rgba(var(--acc-rgb),.8); }
.pslider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #1a1622; border: 2px solid var(--accent); box-shadow: 0 0 8px rgba(var(--acc-rgb),.8); }
.pslider:disabled { opacity: .6; }
.pslider:focus-visible { outline: none; } .pslider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(var(--acc-rgb),.3); }
.ps-share { margin: 8px 0 2px; }
.ps-share .ps-more { margin-top: 8px; display: grid; gap: 8px; }
.ps-share .pick-btns label { color: #e8e4f0; display: inline-flex; }
.ps-share .ps-go { display: flex; justify-content: space-between; gap: 10px; }
.ps-share .share-time { margin-left: 0; padding-left: 0; }
.ps-share .tl-photos:empty { display: none; }
.ps-share .ps-more[hidden] { display: none; }
/* ds-v114: slide hint, tidy owner actions, note in the post-slide panel */
.ps-hint { color: var(--muted); font-weight: 400; opacity: .8; }
.wip-head .wip-actions { gap: 8px; }
.wip-head .wip-actions > .btn { flex: 1 1 0; justify-content: center; min-width: 0; }

.wip-head .wip-actions > .btn { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.ps-share textarea { width: 100%; min-height: 0; resize: vertical; }
/* ds-v118: immersive business page (group-style hero) + circular logo on cover */
.biz-hero .biz-logo-on, .biz-logo-btn .biz-logo-on { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 14px rgba(var(--acc-rgb),.55); object-fit: cover; background: #1a1622; }
.biz-logo-btn { position: absolute; left: 16px; bottom: 14px; z-index: 3; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.biz-imm .biz-hero:not(:has(.biz-logo-btn)) > .biz-logo-on { position: absolute; left: 16px; bottom: 14px; z-index: 3; }
.biz-imm .grp-hero-txt { padding-left: 92px; }
.biz-chip { display: inline-block; font-size: calc(11px * var(--ts, 1)); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-2); }
.biz-facts { margin: 8px 0 0; }
.biz-visit { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 2px; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: calc(14.5px * var(--ts, 1)); }
.biz-visit svg { width: 18px; height: 18px; flex: none; }
.biz-visit-host { font-weight: 500; font-size: calc(12.5px * var(--ts, 1)); color: var(--muted); overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.biz-logo-static { position: absolute; left: 16px; bottom: 14px; z-index: 3; }
/* ds-v119: share WIP to groups sheet */
.wg-list { display: grid; gap: 6px; max-height: 42vh; overflow: auto; margin-bottom: 8px; }
.wg-row { align-items: flex-start; }
.wg-row small { font-weight: 400; }
.com-tabs { margin: 0; }
.com-tabs a { font-size: calc(12.5px * var(--ts, 1)); padding: 8px 4px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.com-tabs a svg { width: 15px; height: 15px; flex: none; opacity: .9; }

/* ds-v130: stash import sheet */
.stash-btns { display: inline-flex; gap: 8px; }
.imp-sheet .imp-p { margin: 0 0 10px; font-size: calc(13px * var(--ts, 1)); }
.imp-pick { display: inline-block; cursor: pointer; margin: 4px 0 10px; }
.imp-sum { margin: 0 0 8px; font-size: calc(14px * var(--ts, 1)); }
.imp-sold { margin: 0 0 10px; font-size: calc(13px * var(--ts, 1)); }
.imp-list { display: grid; gap: 6px; margin-bottom: 10px; }
.imp-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.imp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.imp-top b { font-size: calc(14px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.imp-card small { display: block; font-size: calc(12px * var(--ts, 1)); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-chip { flex: none; font-size: calc(11px * var(--ts, 1)); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--accent, #b06cff); color: var(--accent, #b06cff); }
.imp-chip.wip { border-color: #f5c46b; color: #f5c46b; }
.imp-chip.finished { border-color: #6be3a4; color: #6be3a4; }
.imp-map { display: grid; gap: 6px; margin-bottom: 10px; }
.imp-mrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: calc(14px * var(--ts, 1)); }
.imp-mrow select { max-width: 60%; background: #1c1924; color: inherit; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 6px 8px; font-size: calc(16px * var(--ts, 1)); }
.imp-btns { display: flex; gap: 10px; position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); margin: 0 -12px calc(-16px - env(safe-area-inset-bottom)); padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid rgba(255,255,255,.08); }
.imp-btns .btn { flex: 1; }

/* ds-v131: Community tabs in the global header (compact; fades with the header) */
.top .seg.tabs.top-com { margin: 6px 0 0; padding: 2px; }
.top-com[hidden] { display: none !important; }
.top .seg.tabs.top-com a { padding: 5px 2px; font-size: calc(12px * var(--ts, 1)); }
.top .seg.tabs.top-com a svg { width: 14px; height: 14px; }
.top .seg.tabs.top-com a.on { background: var(--accent-fill); color: #fff; box-shadow: 0 0 8px rgba(var(--acc-rgb),.6), 0 0 20px rgba(var(--acc-rgb),.25); }

/* ds-v132: immersive event cover */
.grp-hero.ev-imm { margin-top: -6px; }
.ev-head.imm { margin-top: 4px; padding-top: 8px; }
.ev-head.imm:not(.has-years) .ev-more { top: 8px; }
.ev-head.imm .ev-title .ev-public, .ev-head.imm .ev-title .ev-lock.inline { display: none; }

/* ds-v134: posts in top search */
.top-sug-label { padding: 8px 12px 4px; font-size: calc(11px * var(--ts, 1)); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 1px solid #22222a; }
.top-sug small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-gems { margin-left: auto; flex: none; font-style: normal; font-size: calc(11.5px * var(--ts, 1)); color: var(--muted); }

/* ds-v136: search results page */
.srch-sec { padding: 4px 0; margin: 6px 0 14px; }
.srch-sec .top-sug { border-radius: 0; }

/* ds-v139: anchor ⋯ menus to their button (business page menu opened under the sticky header) */
.grp-btn.icon { position: relative; }
.grp-btn.icon .menu { top: calc(100% + 6px); z-index: 30; }

/* ds-v145: Halloween theme (body.halloween; Settings toggle, default on in October). Decorations are pseudo-elements with pointer-events: none. */
body.halloween { --accent: #ff8a1f; --accent-fill: #c4520a; --accent-2: #c77dff; --accent-pale: #ffd9b0; --accent-deep: #3a1d0a; --acc-rgb: 255, 138, 31; --acc2-rgb: 199, 125, 255;
  --glow: 0 0 6px rgba(255,138,31,.55), 0 0 18px rgba(180,92,240,.28); }
body.halloween .logo-drill { color: #ff8a1f; text-shadow: 0 0 8px rgba(255,138,31,.7), 0 0 22px rgba(255,138,31,.32); }
body.halloween .logo-social { color: #b45cf0; text-shadow: 0 0 8px rgba(180,92,240,.8), 0 0 22px rgba(180,92,240,.4); }
body.halloween .logo::before { content: ''; position: absolute; left: -40px; top: 4px; width: 34px; height: 40px; background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 70"%3E%3Cdefs%3E%3CradialGradient id="g" cx="50%25" cy="35%25" r="70%25"%3E%3Cstop offset="0%25" stop-color="%23f4eefc"/%3E%3Cstop offset="100%25" stop-color="%23cfc3e2"/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d="M30 4C16 4 7 15 7 29v32c0 3 3 4 5 2l5-4 5 5c2 2 4 2 6 0l2-2 2 2c2 2 4 2 6 0l5-5 5 4c2 2 5 1 5-2V29C53 15 44 4 30 4z" fill="url%28%23g%29"/%3E%3Cellipse cx="22.5" cy="30" rx="3" ry="3.8" fill="%232a1d3a"/%3E%3Cellipse cx="37.5" cy="30" rx="3" ry="3.8" fill="%232a1d3a"/%3E%3Ccircle cx="23.6" cy="28.6" r="1" fill="%23fff"/%3E%3Ccircle cx="38.6" cy="28.6" r="1" fill="%23fff"/%3E%3Cpath d="M26.5 37q3.5 3.2 7 0" stroke="%232a1d3a" stroke-width="2" fill="none" stroke-linecap="round"/%3E%3Cellipse cx="16.5" cy="36.5" rx="3.6" ry="2.2" fill="%23ff9ab8" opacity=".6"/%3E%3Cellipse cx="43.5" cy="36.5" rx="3.6" ry="2.2" fill="%23ff9ab8" opacity=".6"/%3E%3C/svg%3E') center/contain no-repeat;
  transform: rotate(-12deg); filter: drop-shadow(0 0 5px rgba(233,213,255,.5)) drop-shadow(0 0 12px rgba(180,92,240,.4)); pointer-events: none; }
.hw-feed-ghost { display: none; }
body.halloween .hw-feed-ghost { display: block; position: relative; height: 50px; margin: -6px 0; pointer-events: none; }
.hw-feed-ghost span { position: absolute; top: 4px; width: 36px; height: 42px; background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 70"%3E%3Cdefs%3E%3CradialGradient id="g" cx="50%25" cy="35%25" r="70%25"%3E%3Cstop offset="0%25" stop-color="%23f4eefc"/%3E%3Cstop offset="100%25" stop-color="%23cfc3e2"/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d="M30 4C16 4 7 15 7 29v32c0 3 3 4 5 2l5-4 5 5c2 2 4 2 6 0l2-2 2 2c2 2 4 2 6 0l5-5 5 4c2 2 5 1 5-2V29C53 15 44 4 30 4z" fill="url%28%23g%29"/%3E%3Cellipse cx="22.5" cy="30" rx="3" ry="3.8" fill="%232a1d3a"/%3E%3Cellipse cx="37.5" cy="30" rx="3" ry="3.8" fill="%232a1d3a"/%3E%3Ccircle cx="23.6" cy="28.6" r="1" fill="%23fff"/%3E%3Ccircle cx="38.6" cy="28.6" r="1" fill="%23fff"/%3E%3Cpath d="M26.5 37q3.5 3.2 7 0" stroke="%232a1d3a" stroke-width="2" fill="none" stroke-linecap="round"/%3E%3Cellipse cx="16.5" cy="36.5" rx="3.6" ry="2.2" fill="%23ff9ab8" opacity=".6"/%3E%3Cellipse cx="43.5" cy="36.5" rx="3.6" ry="2.2" fill="%23ff9ab8" opacity=".6"/%3E%3C/svg%3E') center/contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(233,213,255,.5)) drop-shadow(0 0 14px rgba(180,92,240,.45)); animation: hw-bob 4.5s ease-in-out infinite; }
body.halloween::before { content: ''; position: fixed; left: 0; top: 0; width: 74px; height: 74px; z-index: 30; opacity: .22; background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cg stroke="%23d9cfe8" stroke-width=".9" fill="none" stroke-linecap="round"%3E%3Cpath d="M0 0L100 0M0 0L0 100M0 0L92 38M0 0L68 68M0 0L38 92"/%3E%3Cpath d="M22 0Q18 7 20.3 8.4Q15 12 15.7 15.7Q12 15 8.4 20.3Q7 18 0 22"/%3E%3Cpath d="M48 0Q40 14 44.3 18.4Q33 25 34 34Q25 33 18.4 44.3Q14 40 0 48"/%3E%3Cpath d="M76 0Q63 22 68 28.3Q52 38 52 52Q38 52 28.3 68Q22 63 0 76"/%3E%3C/g%3E%3C/svg%3E') 0 0/contain no-repeat; pointer-events: none; }
body.halloween article.post { position: relative; isolation: isolate; }
body.halloween article.post.hw-wl::after, body.halloween article.post.hw-wr::after { content: ''; position: absolute; right: 0; top: 0; width: var(--hw-ws, 52px); height: var(--hw-ws, 52px); opacity: .2; z-index: -1; background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cg stroke="%23d9cfe8" stroke-width=".9" fill="none" stroke-linecap="round"%3E%3Cpath d="M0 0L100 0M0 0L0 100M0 0L92 38M0 0L68 68M0 0L38 92"/%3E%3Cpath d="M22 0Q18 7 20.3 8.4Q15 12 15.7 15.7Q12 15 8.4 20.3Q7 18 0 22"/%3E%3Cpath d="M48 0Q40 14 44.3 18.4Q33 25 34 34Q25 33 18.4 44.3Q14 40 0 48"/%3E%3Cpath d="M76 0Q63 22 68 28.3Q52 38 52 52Q38 52 28.3 68Q22 63 0 76"/%3E%3C/g%3E%3C/svg%3E') 0 0/contain no-repeat;
  transform: scaleX(-1); pointer-events: none; border-top-right-radius: inherit; }
body.halloween article.post:nth-of-type(even) { border-color: rgba(180,92,240,.6); box-shadow: 0 0 10px rgba(180,92,240,.28), 0 0 24px rgba(255,138,31,.12); }
body.halloween #bottomNav a.plus { background: linear-gradient(135deg, #e2650f, #9440dd); }
@keyframes hw-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@media (prefers-reduced-motion: reduce) { .hw-feed-ghost span { animation: none; } }
/* ds-v146: derived accent vars resolve where declared (:root), so re-declare them under body.halloween or the picked accent leaks through. */
body.halloween {
  --accent-soft: rgba(var(--acc-rgb), 0.55);
  --glow-card: 0 0 1px rgba(255,138,31,.95), 0 0 10px rgba(255,138,31,.55), 0 0 26px rgba(180,92,240,.38), 0 0 60px rgba(180,92,240,.2), inset 0 0 18px rgba(255,138,31,.1);
  --glow-soft: 0 0 6px rgba(var(--acc-rgb),.6), 0 0 16px rgba(180,92,240,.3);
  --glow-avatar: 0 0 5px rgba(var(--acc-rgb),.75), 0 0 14px rgba(180,92,240,.35);
  --field-border: rgba(var(--acc-rgb), .35);
}
@media (prefers-reduced-motion: reduce) { body.halloween { --glow-card: 0 0 6px rgba(255,138,31,.55), 0 0 20px rgba(180,92,240,.25); } }
body.halloween article.post.hw-wl::after { right: auto; left: 0; transform: none; border-top-right-radius: 0; border-top-left-radius: inherit; }

/* ds-v149: wilder Halloween. Decorations only in empty space: header layer (behind its controls), page background (behind cards), feed gaps and card corners (behind card content, z-index -1). Nothing sits on media; all pointer-events: none. */
body.halloween { background: transparent; }   /* html keeps --bg, so the fixed fx layer (z -1) shows behind cards */
.hw-fx { display: none; }
body.halloween .hw-fx { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
body.halloween .hw-fx::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 300px); opacity: .6; background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 220 300"%3E%3Cg fill="%23ffa04a"%3E%3Cpath d="M60 66Q60 70 64 70Q60 70 60 74Q60 70 56 70Q60 70 60 66z" opacity="0.8"/%3E%3Cpath d="M180 127Q180 130 183 130Q180 130 180 133Q180 130 177 130Q180 130 180 127z" opacity="0.6"/%3E%3Cpath d="M40 246.5Q40 250 43.5 250Q40 250 40 253.5Q40 250 36.5 250Q40 250 40 246.5z" opacity="0.7"/%3E%3Cpath d="M140 207.4Q140 210 142.6 210Q140 210 140 212.6Q140 210 137.4 210Q140 210 140 207.4z" opacity="0.5"/%3E%3Cpath d="M110 27.6Q110 30 112.4 30Q110 30 110 32.4Q110 30 107.6 30Q110 30 110 27.6z" opacity="0.55"/%3E%3Ccircle cx="30" cy="40" r="1.2" opacity="0.7"/%3E%3Ccircle cx="150" cy="22" r="1" opacity="0.5"/%3E%3Ccircle cx="96" cy="120" r="1.4" opacity="0.6"/%3E%3Ccircle cx="200" cy="170" r="1" opacity="0.5"/%3E%3Ccircle cx="20" cy="220" r="1" opacity="0.45"/%3E%3Ccircle cx="120" cy="262" r="1.2" opacity="0.6"/%3E%3Ccircle cx="178" cy="80" r="0.9" opacity="0.4"/%3E%3Ccircle cx="60" cy="160" r="0.9" opacity="0.4"/%3E%3C/g%3E%3C/svg%3E') 0 0/220px 300px repeat; animation: hw-drift 40s linear infinite; will-change: transform; }
body.halloween .hw-fx::after { content: ''; position: absolute; left: -40px; right: -40px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) - 40px); height: 190px;
  background: radial-gradient(ellipse 45% 70% at 22% 100%, rgba(150,70,230,.34), transparent 70%), radial-gradient(ellipse 50% 60% at 78% 100%, rgba(120,50,210,.3), transparent 70%), radial-gradient(ellipse 60% 40% at 50% 100%, rgba(180,92,240,.22), transparent 75%);
  animation: hw-fog 16s ease-in-out infinite alternate; }
@keyframes hw-drift { to { transform: translateY(-300px); } }
@keyframes hw-fog { from { transform: translateX(-24px); } to { transform: translateX(24px); } }
/* screen-corner webs live in the header layer below (clipped to the header) so they never cover feed media */
body.halloween::before { display: none; }
/* jack-o-lantern on the right of the logo (logo ghost stays on the left); absolutely positioned so the logo never moves */
body.halloween .logo::after { content: ''; position: absolute; right: -40px; top: -4px; width: 32px; height: 30px; background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 56"%3E%3Cpath d="M28 11c0-5 2-8 6-10l1.5 3c-3 1.5-3.5 4-3.5 7z" fill="%235f9a2c"/%3E%3Cellipse cx="18" cy="33" rx="14" ry="19" fill="%23d95f0c"/%3E%3Cellipse cx="42" cy="33" rx="14" ry="19" fill="%23d95f0c"/%3E%3Cellipse cx="30" cy="33" rx="15" ry="21" fill="%23ff8a1f"/%3E%3Cpath d="M30 13v40M22 15q-6 18 0 36M38 15q6 18 0 36" stroke="%23c4560a" stroke-width="1.2" fill="none" opacity=".6"/%3E%3Cg fill="%23ffd84a"%3E%3Cpath d="M15 29l6-8 5 9zM45 29l-6-8-5 9zM28 35l2-4 2 4z"/%3E%3Cpath d="M13 38q17 14 34 0l-4 1-2 3-4-2-3 4-4-3-3 3-4-3-3 2-3-3z"/%3E%3C/g%3E%3Cellipse cx="13" cy="35" rx="3" ry="1.8" fill="%23ff5a7a" opacity=".45"/%3E%3Cellipse cx="47" cy="35" rx="3" ry="1.8" fill="%23ff5a7a" opacity=".45"/%3E%3C/svg%3E') center/contain no-repeat; transform: rotate(10deg); filter: drop-shadow(0 0 6px rgba(255,138,31,.65)); pointer-events: none; }
/* header layer: bats + hanging spider, behind the header's controls */
body.halloween .top::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: 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%20opacity%3D%22.42%22%3E%3Cg%20stroke%3D%22%23d9cfe8%22%20stroke-width%3D%22.9%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%200L100%200M0%200L0%20100M0%200L92%2038M0%200L68%2068M0%200L38%2092%22%2F%3E%3Cpath%20d%3D%22M22%200Q18%207%2020.3%208.4Q15%2012%2015.7%2015.7Q12%2015%208.4%2020.3Q7%2018%200%2022%22%2F%3E%3Cpath%20d%3D%22M48%200Q40%2014%2044.3%2018.4Q33%2025%2034%2034Q25%2033%2018.4%2044.3Q14%2040%200%2048%22%2F%3E%3Cpath%20d%3D%22M76%200Q63%2022%2068%2028.3Q52%2038%2052%2052Q38%2052%2028.3%2068Q22%2063%200%2076%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E') 0 0/100px 100px no-repeat, 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%20opacity%3D%22.42%22%20transform%3D%22matrix%28-1%200%200%201%20100%200%29%22%3E%3Cg%20stroke%3D%22%23d9cfe8%22%20stroke-width%3D%22.9%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%200L100%200M0%200L0%20100M0%200L92%2038M0%200L68%2068M0%200L38%2092%22%2F%3E%3Cpath%20d%3D%22M22%200Q18%207%2020.3%208.4Q15%2012%2015.7%2015.7Q12%2015%208.4%2020.3Q7%2018%200%2022%22%2F%3E%3Cpath%20d%3D%22M48%200Q40%2014%2044.3%2018.4Q33%2025%2034%2034Q25%2033%2018.4%2044.3Q14%2040%200%2048%22%2F%3E%3Cpath%20d%3D%22M76%200Q63%2022%2068%2028.3Q52%2038%2052%2052Q38%2052%2028.3%2068Q22%2063%200%2076%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E') 100% 0/100px 100px no-repeat, url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 32"%3E%3Cg fill="%238e4fd6"%3E%3Cpath d="M28 13C22 6 12 5 2 10c5 1 7 4 7 7 3-3 7-2 8 2 3-3 7-2 9 1z"/%3E%3Cpath d="M36 13c6-7 16-8 26-3-5 1-7 4-7 7-3-3-7-2-8 2-3-3-7-2-9 1z"/%3E%3Cellipse cx="32" cy="16" rx="5" ry="7"/%3E%3Cpath d="M28 11l.5-7 2.5 4zM36 11l-.5-7-2.5 4z"/%3E%3C/g%3E%3Ccircle cx="30" cy="14" r="1.1" fill="%23ffb347"/%3E%3Ccircle cx="34" cy="14" r="1.1" fill="%23ffb347"/%3E%3C/svg%3E') 24% 8px/22px 11px no-repeat, url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 32"%3E%3Cg fill="%238e4fd6"%3E%3Cpath d="M28 13C22 6 12 5 2 10c5 1 7 4 7 7 3-3 7-2 8 2 3-3 7-2 9 1z"/%3E%3Cpath d="M36 13c6-7 16-8 26-3-5 1-7 4-7 7-3-3-7-2-8 2-3-3-7-2-9 1z"/%3E%3Cellipse cx="32" cy="16" rx="5" ry="7"/%3E%3Cpath d="M28 11l.5-7 2.5 4zM36 11l-.5-7-2.5 4z"/%3E%3C/g%3E%3Ccircle cx="30" cy="14" r="1.1" fill="%23ffb347"/%3E%3Ccircle cx="34" cy="14" r="1.1" fill="%23ffb347"/%3E%3C/svg%3E') 79% 4px/16px 8px no-repeat, url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 32"%3E%3Cg fill="%238e4fd6"%3E%3Cpath d="M28 13C22 6 12 5 2 10c5 1 7 4 7 7 3-3 7-2 8 2 3-3 7-2 9 1z"/%3E%3Cpath d="M36 13c6-7 16-8 26-3-5 1-7 4-7 7-3-3-7-2-8 2-3-3-7-2-9 1z"/%3E%3Cellipse cx="32" cy="16" rx="5" ry="7"/%3E%3Cpath d="M28 11l.5-7 2.5 4zM36 11l-.5-7-2.5 4z"/%3E%3C/g%3E%3Ccircle cx="30" cy="14" r="1.1" fill="%23ffb347"/%3E%3Ccircle cx="34" cy="14" r="1.1" fill="%23ffb347"/%3E%3C/svg%3E') 90% 62px/14px 7px no-repeat; }
body.halloween .top::after { content: ''; position: absolute; left: 30px; top: 0; width: 26px; height: 42px; z-index: -1; pointer-events: none; background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 64"%3E%3Cpath d="M20 0v33" stroke="%23d9cfe8" stroke-width=".8" opacity=".75"/%3E%3Cg stroke="%23b45cf0" stroke-width="1.7" fill="none" stroke-linecap="round"%3E%3Cpath d="M14 42q-7-4-9-10M13 46q-8-1-11-4M13 49q-8 3-10 8M15 52q-5 5-6 9M26 42q7-4 9-10M27 46q8-1 11-4M27 49q8 3 10 8M25 52q5 5 6 9"/%3E%3C/g%3E%3Ccircle cx="20" cy="47" r="8.5" fill="%233b1f5c" stroke="%23b45cf0" stroke-width="1"/%3E%3Ccircle cx="20" cy="37" r="5.5" fill="%234a2873"/%3E%3Ccircle cx="17.8" cy="36.5" r="1.8" fill="%23fff"/%3E%3Ccircle cx="22.2" cy="36.5" r="1.8" fill="%23fff"/%3E%3Ccircle cx="18" cy="36.8" r=".9" fill="%232a1d3a"/%3E%3Ccircle cx="22.4" cy="36.8" r=".9" fill="%232a1d3a"/%3E%3Cpath d="M18.5 39.6q1.5 1.2 3 0" stroke="%23ffd9b0" stroke-width=".8" fill="none" stroke-linecap="round"/%3E%3C/svg%3E') center top/contain no-repeat; transform-origin: 50% 0; animation: hw-sway 5.5s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(180,92,240,.5)); }
@keyframes hw-flap { 0%, 100% { translate: 0 0; } 50% { translate: 4px -3px; } }
@keyframes hw-sway { 0%, 100% { rotate: -7deg; } 50% { rotate: 7deg; } }
/* feed gaps: peekers tuck behind the next card's top edge (the card paints over them), one ghost waves, occasional bats */
body.halloween .hw-feed-ghost { height: 46px; }
.hw-feed-ghost span.peek { top: auto; bottom: -26px; animation-name: hw-peek; }
@keyframes hw-peek { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.hw-feed-ghost span.wave::after { content: ''; position: absolute; right: -10%; top: 40%; width: 34%; height: 20%; background: #e4daf2; border-radius: 50%; transform-origin: 0 50%; animation: hw-wave 1.4s ease-in-out infinite; }
@keyframes hw-wave { 0%, 100% { rotate: -45deg; } 50% { rotate: 5deg; } }
.hw-feed-ghost i { position: absolute; width: 20px; height: 10px; background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 32"%3E%3Cg fill="%238e4fd6"%3E%3Cpath d="M28 13C22 6 12 5 2 10c5 1 7 4 7 7 3-3 7-2 8 2 3-3 7-2 9 1z"/%3E%3Cpath d="M36 13c6-7 16-8 26-3-5 1-7 4-7 7-3-3-7-2-8 2-3-3-7-2-9 1z"/%3E%3Cellipse cx="32" cy="16" rx="5" ry="7"/%3E%3Cpath d="M28 11l.5-7 2.5 4zM36 11l-.5-7-2.5 4z"/%3E%3C/g%3E%3Ccircle cx="30" cy="14" r="1.1" fill="%23ffb347"/%3E%3Ccircle cx="34" cy="14" r="1.1" fill="%23ffb347"/%3E%3C/svg%3E') center/contain no-repeat; opacity: .85; animation: hw-flap 5s ease-in-out infinite; }
/* card webs: bigger, top-right or bottom-left only (away from avatars), behind content so media always paints over them */
body.halloween article.post.hw-wl::after, body.halloween article.post.hw-wr::after { opacity: .3; }
body.halloween article.post.hw-wl::after { top: auto; bottom: 0; left: 0; right: auto; transform: scaleY(-1); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: inherit; }
@media (prefers-reduced-motion: reduce) {
  body.halloween .hw-fx::before, body.halloween .hw-fx::after, body.halloween .top::before, body.halloween .top::after, .hw-feed-ghost span.wave::after, .hw-feed-ghost i { animation: none; }
}

/* ds-v150: Projects list view (.wip-grid.as-list). Same cards/handlers as grid, restyled into compact rows. */
.tab-search.with-view { display: flex; align-items: center; gap: 8px; }
.tab-search.with-view input { flex: 1; min-width: 0; }
.proj-view { display: inline-flex; flex: 0 0 auto; border: 1.5px solid #2a2a35; border-radius: 999px; background: #15151c; padding: 3px; gap: 2px; }
.proj-view button { width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: #8a8a98; display: grid; place-items: center; padding: 0; cursor: pointer; }
.proj-view button[aria-pressed="true"] { color: var(--accent); background: rgba(var(--acc-rgb),.16); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb),.45); }
.wip-line { display: none; }
.wip-grid.as-list { display: flex; flex-direction: column; gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(var(--acc-rgb),.35); background: linear-gradient(180deg, #1f1a28, #17141e); box-shadow: 0 0 10px rgba(var(--acc-rgb),.12); }
.wip-grid.as-list > .wip-card { display: flex; align-items: center; gap: 10px; padding: 7px 10px; min-height: 50px; box-sizing: border-box; border: 0; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.wip-grid.as-list > .wip-card:last-child { border-bottom: 0; }
.wip-grid.as-list > .wip-card[hidden] { display: none; }
.as-list .wip-cover { position: static; flex: 0 0 36px; width: 36px; height: 36px; aspect-ratio: auto; border-radius: 8px; overflow: hidden; background: #0b0b0f; }
.as-list .wip-cover img { border-radius: 8px; }
.as-list .wip-nocover svg { width: 20px; height: 20px; }
.as-list .wip-cover .fin-badge { display: none; }
.as-list .wip-info { flex: 1; min-width: 0; padding: 0; }
.as-list .wip-name { font-size: calc(14px * var(--ts, 1)); line-height: 1.25; }
.as-list .wip-line { display: block; color: var(--muted); font-size: calc(12px * var(--ts, 1)); line-height: 1.3; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-list .wip-info > :not(.wip-name):not(.wip-line):not(.mk-chip):not(.ext-chip):not(.craft-chip):not(.tq-chip):not(.kt-row) { display: none; }
/* ds-v234: status chips (Sold, Started, On hold, Not received, Kitted up) show in list rows too, compact, under the meta line */
.as-list .wip-info > .mk-chip { display: inline-flex; align-items: center; gap: 3px; margin: 3px 0 0; padding: 1px 7px; font-size: calc(11px * var(--ts, 1)); line-height: 1.5; white-space: nowrap; }
.wip-grid.as-list > .stash-card { padding-right: 84px; position: relative; }
.as-list .stash-card .stash-fav { top: 50%; left: auto; right: 46px; transform: translateY(-50%); width: 32px; height: 32px; background: transparent; font-size: calc(17px * var(--ts, 1)); }
.as-list .stash-card .stash-fav:not(.on) { color: #8a8a98; }
.as-list .stash-card .stash-fav.static { position: absolute; }
.as-list .stash-card .stash-more { top: 50%; right: 8px; transform: translateY(-50%); background: transparent; }

/* ds-v151: Halloween theme: a PRESSED gem button (posts, comments) becomes a lit jack-o-lantern gem. Unpressed and theme-off are unchanged. */
body.halloween button.gem.liked svg { background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 -1 24 24"%3E%3Cdefs%3E%3ClinearGradient id="jOr" x1="0" y1="0" x2="0" y2="1"%3E%3Cstop offset="0" stop-color="%23ffa347"/%3E%3Cstop offset=".5" stop-color="%23ff7a12"/%3E%3Cstop offset="1" stop-color="%23c94e06"/%3E%3C/linearGradient%3E %3CradialGradient id="jLit" cx="50%25" cy="45%25" r="60%25"%3E%3Cstop offset="0" stop-color="%23fffbd6"/%3E%3Cstop offset=".5" stop-color="%23ffe066"/%3E%3Cstop offset="1" stop-color="%23ffb21f"/%3E%3C/radialGradient%3E %3Cfilter id="jGlow" x="-60%25" y="-60%25" width="220%25" height="220%25"%3E%3CfeGaussianBlur stdDeviation=".9"/%3E%3C/filter%3E%3C/defs%3E %3Cpath d="M12 7.4 14.9 3.6h4.5L22 7v2.6L12 21 2 9.6V7l2.6-3.4h4.5Z" fill="url%28%23jOr%29" stroke="%237a2a04" stroke-width="1" stroke-linejoin="round"/%3E %3Cpath d="M2 9.6h20M12 7.4 8.6 9.6 12 21l3.4-11.4ZM4.6 3.6l4 6M19.4 3.6l-4 6M9.1 3.6l-.5 6M14.9 3.6l.5 6" fill="none" stroke="%23a8400a" stroke-width=".55" opacity=".8"/%3E %3Cpath d="M4.9 4.4h3.6L6.5 8.4H3.2V7.3Z" fill="%23ffd9a0" opacity=".55"/%3E %3Cpath d="M11.6 7.2C11.2 4.8 11.6 2.6 13.4 1.1l1.3 1C13.3 3.3 12.9 5 13.1 6.9Z" fill="%237cc43f" stroke="%232f5a14" stroke-width=".5" stroke-linejoin="round"/%3E%3Cpath d="M13.8 2.4c1.4-1.2 3.2-1.2 4.2-.4-1.3.1-2.4.6-3.2 1.5" fill="none" stroke="%237cc43f" stroke-width=".8" stroke-linecap="round"/%3E %3Cg fill="%234a1203" stroke="%234a1203" stroke-width="1.1" stroke-linejoin="round"%3E%3Cpath d="M5.1 9.2 7.4 5.5 9.6 9.2ZM18.9 9.2 16.6 5.5 14.4 9.2Z"/%3E%3Cpath d="M11 11.3 12 9.9 13 11.3Z"/%3E%3Cpath d="M6 12.1Q12 18.6 18 12.1L15.7 12.9 14.7 14.1 13.3 13.2 12 14.6 10.7 13.2 9.3 14.1 8.3 12.9Z"/%3E%3C/g%3E %3Cg fill="%23ffb42a" filter="url%28%23jGlow%29"%3E%3Cpath d="M5.1 9.2 7.4 5.5 9.6 9.2ZM18.9 9.2 16.6 5.5 14.4 9.2Z"/%3E%3Cpath d="M11 11.3 12 9.9 13 11.3Z"/%3E%3Cpath d="M6 12.1Q12 18.6 18 12.1L15.7 12.9 14.7 14.1 13.3 13.2 12 14.6 10.7 13.2 9.3 14.1 8.3 12.9Z"/%3E%3C/g%3E %3Cg fill="url%28%23jLit%29"%3E%3Cpath d="M5.1 9.2 7.4 5.5 9.6 9.2ZM18.9 9.2 16.6 5.5 14.4 9.2Z"/%3E%3Cpath d="M11 11.3 12 9.9 13 11.3Z"/%3E%3Cpath d="M6 12.1Q12 18.6 18 12.1L15.7 12.9 14.7 14.1 13.3 13.2 12 14.6 10.7 13.2 9.3 14.1 8.3 12.9Z"/%3E%3C/g%3E %3C/svg%3E') center/contain no-repeat; filter: drop-shadow(0 0 3px rgba(255,170,40,.9)) drop-shadow(0 0 8px rgba(255,120,20,.55)); }
body.halloween button.gem.liked svg > * { visibility: hidden; }
/* ds-v152: list-view ⋯ menu was clipped by the list's overflow and painted under the following rows, so Edit/Delete were unreachable. */
.wip-grid.as-list { overflow: visible; }
.wip-grid.as-list > .wip-card:has(.menu) { z-index: 6; }
.as-list .menu.up { top: auto; bottom: 38px; }

/* ds-v153: desktop / wide-screen layout (step 1). Below 1024px nothing here applies; .wide-only items stay hidden on phones. */
.wide-only, .bottom .wide-only, .right-col { display: none; }
@media (min-width: 1024px) {
  /* ds-v154: fluid. Group = sidebar + gap + center (max 860) [+ gap + right column at >=1280], up to 1600px wide with 28px side padding, centered. */
  :root { --side: 248px; --gap: 28px; --rc: 0px; --rcg: 0px;
    --mw: min(860px, calc(min(100vw - 56px, 1600px) - var(--side) - var(--gap) - var(--rc) - var(--rcg)));
    --g0: max(28px, calc((100vw - var(--side) - var(--gap) - var(--mw) - var(--rcg) - var(--rc)) / 2)); }
  .shell { max-width: var(--mw); width: var(--mw); margin-left: calc(var(--g0) + var(--side) + var(--gap)); margin-right: 0; padding-bottom: 28px; }
  .top .top-brand { display: none; }   /* logo + settings live in the sidebar */
  .top, .top.compact, .top.has-search { min-height: 0 !important; padding-top: 10px; padding-bottom: 10px; justify-content: flex-start; }
  .top .top-com { margin-top: 0; margin-bottom: 0; }
  .bottom { top: 0; bottom: 0; left: calc(var(--g0) - 36px); right: auto; margin: 0; width: calc(var(--side) + 36px); max-width: none; height: 100vh; transform: none;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px; padding: 18px 12px 18px 36px; overflow-y: auto;
    background: transparent; border-top: 0; border-right: 1px solid rgba(var(--acc-rgb),.22); box-shadow: none; backdrop-filter: none; }
  body.chrome-faded .bottom, body.chrome-arming .bottom { opacity: 1; visibility: visible; pointer-events: auto; }
  .bottom .wide-only { display: flex; }
  .bottom a { order: 10; flex-direction: row; align-items: center; gap: 14px; width: auto; padding: 11px 14px; border-radius: 14px; font-size: calc(15.5px * var(--ts, 1)); font-weight: 600; color: #cfcfd8; text-decoration: none; }
  .bottom a svg { width: 22px; height: 22px; flex: none; }
  .bottom a:hover { background: rgba(var(--acc-rgb),.08); }
  .bottom a.active:not(.plus) { background: rgba(var(--acc-rgb),.12); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb),.45); }
  .bottom .nav-badge { position: static; margin-left: auto; }
  .bottom a.side-logo { order: 0; display: block; width: max-content; padding: 6px 26px 18px 0; margin: 4px 0 18px 6px; border-radius: 0; background: none !important; box-shadow: none !important; }
  .bottom a[aria-label="Glo Board"] { order: 1; }
  .bottom a.side-com { order: 2; }
  .bottom a.side-proj { order: 3; }
  .bottom a.side-cal { order: 6; }   /* ds-v647: My Planner, right after Profile */
  .bottom a.side-dx { order: 3; }   /* ds-v446: right after Projects (same order, later in the markup) */
  .bottom a.side-msg { order: 4; }
  .bottom a.side-bell { order: 5; }
  .bottom a.side-clips { order: 1; }
  .bottom a[aria-label="Profile"] { order: 6; }
  .bottom a.side-set { order: 7; }
  .bottom a.plus { order: 8; width: auto; height: auto; margin: 16px 4px 0; padding: 12px 16px; border-radius: 999px; justify-content: center; gap: 8px; color: #fff; font-weight: 700;
    background: linear-gradient(135deg, var(--accent-fill), rgba(var(--acc-rgb),1)); box-shadow: 0 0 14px rgba(var(--acc-rgb),.5); }
  .bottom a.plus svg { width: 18px; height: 18px; }
  .bottom a.side-me { order: 9; margin-top: auto; gap: 10px; border: 1px solid var(--line); padding: 9px 10px; }
  .bottom a.side-me .me-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); box-shadow: 0 0 6px rgba(var(--acc-rgb),.6); }
  .bottom a.side-me span { display: flex; flex-direction: column; min-width: 0; font-size: calc(14px * var(--ts, 1)); }
  .bottom a.side-me b, .bottom a.side-me small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bottom a.side-me small { color: var(--muted); font-weight: 500; font-size: calc(12px * var(--ts, 1)); }
}
@media (min-width: 1280px) {
  :root { --rc: 340px; --rcg: 28px; }
  .right-col { display: block; position: fixed; top: 0; bottom: 0; left: calc(var(--g0) + var(--side) + var(--gap) + var(--mw) + var(--rcg)); width: var(--rc); padding: 18px 0; overflow-y: auto; z-index: 25; }
  .right-col[hidden] { display: none; }
  .right-col .top-search { margin: 0 0 16px; padding: 0; }
  .right-col .top-search input { height: 44px; font-size: calc(14.5px * var(--ts, 1)); }
  .rc-card { padding: 14px 16px; }
  .rc-card h3 { margin: 0 0 10px; font-size: calc(15px * var(--ts, 1)); }
  .rc-wip { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: inherit; text-decoration: none; }
  .rc-wip img, .rc-nocover { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; background: #0b0b0f; display: grid; place-items: center; }
  .rc-nocover svg { width: 24px; height: 24px; }
  .rc-wi { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .rc-wi b { flex: 1; min-width: 0; font-size: calc(14px * var(--ts, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rc-wi small { color: var(--muted); font-size: calc(12px * var(--ts, 1)); }
  .rc-wi .pbar { flex-basis: 100%; margin-top: 4px; }
  .rc-all { display: block; margin-top: 6px; font-size: calc(13px * var(--ts, 1)); color: var(--accent-2); text-decoration: none; }
}

/* ds-v155: Text size (Settings). --ts is set on <html> by accent.js before first paint; every px font-size above is multiplied by it (logo excluded). */
.ts-row { display: flex; gap: 6px; margin-top: 10px; }
.ts-row button { flex: 1; padding: 9px 4px; border-radius: 12px; border: 1.5px solid #2a2a35; background: #15151c; color: #cfcfd8; font-weight: 600; line-height: 1.1; }
.ts-row button[aria-pressed="true"] { border-color: rgba(var(--acc-rgb),.75); color: var(--accent); background: rgba(var(--acc-rgb),.14); box-shadow: 0 0 10px rgba(var(--acc-rgb),.3); }
@media (max-width: 1023px) { .bottom a { font-size: calc(11.5px * min(var(--ts, 1), 1.05)); white-space: nowrap; } }   /* tab labels have fixed 72px slots, so they only scale a little */

/* ds-v159: link preview card (image beside the text, never over it) */
.lp-card {
  display: flex; align-items: stretch; gap: 0; margin: 8px 0 6px; min-height: 64px;
  border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit;
  border: 1px solid rgba(var(--acc-rgb), .4); background: #121218;
}
.lp-card .lp-img { flex: 0 0 88px; width: 88px; background: #0a0a0e; }
.lp-card .lp-img[hidden] { display: none; }
.lp-card .lp-img img { display: block; width: 100%; height: 100%; min-height: 64px; max-height: 110px; object-fit: cover; }
.lp-card .lp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 9px 12px; }
.lp-card .lp-site { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: calc(11.5px * var(--ts, 1)); font-weight: 600; min-width: 0; }
.lp-card .lp-site svg { width: 12px; height: 12px; flex: 0 0 auto; }
.lp-card .lp-site span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-card .lp-title { font-weight: 700; font-size: calc(14px * var(--ts, 1)); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lp-card .lp-price { color: rgb(var(--acc-rgb)); font-weight: 700; font-size: calc(13px * var(--ts, 1)); }
.lp-card .lp-price[hidden] { display: none; }
.lp-card.loading .lp-title { opacity: .7; }
.lp-card:hover, .lp-card:focus-visible { border-color: rgba(var(--acc-rgb), .7); }
.lp-card.lp-big { flex-direction: column; margin: 10px 0 8px; border-color: rgba(var(--acc-rgb), .45); }
.lp-card.lp-big .lp-img { flex: none; width: 100%; }
.lp-card.lp-big .lp-img img { width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: var(--lp-ar, 1.91); object-fit: cover; border-bottom: 1px solid rgba(var(--acc-rgb), .25); }
.lp-card.lp-big .lp-info { padding: 10px 12px 12px; gap: 4px; }
.lp-card.lp-big .lp-title { font-size: calc(15px * var(--ts, 1)); }
.ctext + .lp-card, .comment .lp-card { margin: 6px 0 2px; min-height: 52px; }
.comment .lp-card .lp-img { flex-basis: 64px; width: 64px; }
.comment .lp-card .lp-img img { min-height: 52px; max-height: 80px; }

/* ds-v161: business Groups / Events tabs */
.biz-empty .btn { margin-top: 6px; }
.biz-linked-top { display: flex; justify-content: flex-end; margin: 4px 0 10px; }
.biz-linked-top .btn, .biz-empty .btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; width: auto; }
.biz-linked-top .btn svg, .biz-empty .btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.biz-runby { display: flex; align-items: center; gap: 6px; margin-top: -4px; }
.biz-runby svg { width: 16px; height: 16px; }

/* ds-v162: in-flow mention list + no tab bar over the keyboard */
.mention-ac-flow { margin: 6px 0 4px; }
.mention-ac-inline .ac-item em { font-style: normal; font-size: calc(11.5px * var(--ts, 1)); color: var(--accent-2); border: 1px solid var(--accent-soft); border-radius: 999px; padding: 2px 8px; }
@media (pointer: coarse) and (max-width: 1023px) { body.kb-typing .bottom { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ds-v163: scroll smoothness (phones). Native iOS bounce in the installed app, cheaper card glow (3 layers instead of 5,
   no 60px blur), and off-screen posts skip rendering until they come near the viewport. */
@media (display-mode: standalone) { html, body { overscroll-behavior-y: auto; } }
@media (pointer: coarse) {
  html:not([data-theme="light"]) { --glow-card: 0 0 1px rgba(var(--acc-rgb),.95), 0 0 12px rgba(var(--acc-rgb),.55), 0 0 30px rgba(var(--acc-rgb),.32), inset 0 0 18px rgba(var(--acc-rgb),.12); }
  html:not([data-theme="light"]) body.halloween { --glow-card: 0 0 1px rgba(255,138,31,.95), 0 0 12px rgba(255,138,31,.5), 0 0 30px rgba(180,92,240,.32), inset 0 0 18px rgba(255,138,31,.1); }
  .bottom { box-shadow: 0 -1px 6px rgba(var(--acc-rgb),.45), 0 -10px 26px rgba(var(--acc-rgb),.16); }
}
/* ds-v453: not in WebKit (late, blank cards on iPhone); app.js sets html.cv-on elsewhere */
html.cv-on #app article.post:not(:has(.menu)):not(:focus-within) { content-visibility: auto; contain-intrinsic-size: auto 560px; }
/* A focused feed comment: don't skip cards. Skipping them while the keyboard scrolls the box in and out of view changes their height and the page jumps. */
html.cm-kb.cv-on #app article.post { content-visibility: visible !important; }
html.cm-kb #app, html.cm-kb #app * { overflow-anchor: none; }
/* Halloween decorations hold still while the page scrolls (less work per scrolled frame; they resume when it stops). */
body.is-scrolling .hw-feed-ghost *, body.is-scrolling .hw-feed-ghost *::after, body.is-scrolling .hw-fx::before, body.is-scrolling .hw-fx::after,
body.is-scrolling .top::before, body.is-scrolling .top::after { animation-play-state: paused; }

/* ds-v164: business Shop tab (opens the website) — five tabs fit at 390px */
.seg.tabs.five a { font-size: calc(13px * var(--ts, 1)); padding: 8px 0; min-width: 0; white-space: nowrap; }
.seg.tabs a.shop-tab { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--accent-2); }
.seg.tabs a.shop-tab svg { width: 14px; height: 14px; flex: 0 0 auto; }
.seg.tabs a.shop-tab:hover, .seg.tabs a.shop-tab:focus-visible { background: rgba(var(--acc-rgb), .14); }
.biz-shop-check { margin: 2px 0 12px; }
.biz-shop-check small { display: block; font-size: calc(12px * var(--ts, 1)); margin-top: 2px; }

/* ds-v165: clean covers (no fades, nothing on the photo): back link above, name/handle/followers below. */
.grp-hero { margin-top: 6px; border-radius: 0; }
.grp-cover{ -webkit-mask-image: none; mask-image: none; }
a.back.grp-back { position: static; display: inline-flex; margin: 6px 4px 8px; padding: 0; background: none; border: 0; color: var(--muted); font-size: calc(14px * var(--ts, 1)); max-width: 100%; }
.grp-hero-txt { position: static; margin: 12px 2px 0; }
.grp-hero-txt h1 { color: var(--text, #fff); text-shadow: none; }
.grp-meta { color: var(--muted); }
.biz-id { display: flex; align-items: center; gap: 14px; margin: 12px 2px 0; }
.biz-id .grp-hero-txt { margin: 0; padding-left: 0 !important; flex: 1; min-width: 0; }
.biz-id .biz-logo-btn, .biz-id .biz-logo-static, .biz-id > .biz-logo-on { position: static; flex: 0 0 auto; }
.biz-id .biz-logo-on { width: 64px; height: 64px; border: 2px solid rgba(var(--acc-rgb), .7); }
.grp-hero.ev-imm + .grp-hero-txt { margin-bottom: 8px; }
/* Business tabs: Posts · Photos · Groups & Events (· Shop): sized to their labels, 13px minimum, one line. */
.grp-stick .seg.tabs a { flex: 1 1 auto; padding: 8px 8px; font-size: calc(13.5px * var(--ts, 1)); white-space: nowrap; }
.seg.tabs.five a { font-size: calc(13px * var(--ts, 1)); padding: 8px 6px; }
.biz-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 2px 6px; }
.biz-sec-head .section-label { margin: 0; }
.biz-sec-head .btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; width: auto; }
.biz-sec-head .btn svg { width: 16px; height: 16px; }
.biz-sec-empty { margin: 0 2px 14px; font-size: calc(13.5px * var(--ts, 1)); }
/* Sticky bars: solid, crisp edge, below the status bar. */
.grp-stick::before { background: var(--bg); }
.grp-stick.mini::before, .grp-stick::before { border-bottom: 1px solid rgba(var(--acc-rgb), .22); }
.top { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
body.chrome-faded .grp-stick { top: calc(var(--sat) - var(--mini-h)); }
body.chrome-faded .grp-stick.mini{ top: var(--sat); }
.sb-strip { position: fixed; left: 0; right: 0; top: 0; height: var(--sat); background: var(--bg); z-index: 26; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
body.chrome-faded .sb-strip { opacity: 1; }

/* ds-v167: tab panel host is its own block formatting context so a panel's first margin never shifts its top */
#bzTab, #grpBox { display: flow-root; }

/* ds-v170: Projects toolbar (Search, Sort, Filter, Select, grid/list in one row), Move to, select mode, filter sheet */
.tab-search.with-view { gap: 6px; }
.with-view .proj-view button { width: 32px; height: 32px; }
.proj-tool { position: relative; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px; border: 1.5px solid #2a2a35; background: #15151c; color: #b9b0c9; display: grid; place-items: center; padding: 0; cursor: pointer; }
.proj-tool[aria-pressed="true"] { color: var(--accent); border-color: rgba(var(--acc-rgb),.6); background: rgba(var(--acc-rgb),.16); }
.proj-tool .pt-dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
.proj-tool .menu { text-align: left; color: var(--text); font-size: calc(14px * var(--ts, 1)); }
.wip-card .wip-card-more { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.55); border-radius: 999px; }
.wip-grid.as-list > .wip-card.has-more { position: relative; padding-right: 46px; }
.as-list .wip-card .wip-card-more { top: 50%; right: 8px; transform: translateY(-50%); background: transparent; }
.sel-check { display: none; }
.selecting .sel-check { display: grid; place-items: center; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.45); color: transparent; z-index: 2; pointer-events: none; box-sizing: border-box; }
.selecting .sel-check svg { width: 15px; height: 15px; }
.selecting .sel-on .sel-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.wip-grid.selecting > .wip-card { cursor: pointer; -webkit-user-select: none; user-select: none; }
.wip-grid.selecting:not(.as-list) > .sel-on { outline: 2.5px solid var(--accent); outline-offset: -2.5px; }
.selecting .stash-more, .selecting .stash-fav, .selecting .kit-card-actions { visibility: hidden; }
.wip-grid.as-list.selecting > .wip-card { position: relative; padding-right: 46px; }
.as-list.selecting .sel-check { top: 50%; right: 12px; transform: translateY(-50%); border-color: #8a8a98; background: transparent; }
.as-list.selecting > .sel-on { background: rgba(var(--acc-rgb),.14); }
.sel-bar { position: fixed; left: 50%; transform: translateX(-50%); width: min(456px, 100%); box-sizing: border-box; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); z-index: 30;
  background: #1b1624; border: 1.5px solid rgba(var(--acc-rgb),.55); border-radius: 18px; padding: 8px 12px 10px; box-shadow: 0 10px 28px rgba(0,0,0,.5); }
@media (min-width: 1024px) { .sel-bar { bottom: 16px; } }
.sel-row { display: flex; align-items: center; gap: 8px; }
.sel-n { flex: 1; font-size: calc(15px * var(--ts, 1)); }
.sel-link { color: var(--accent); font-weight: 700; font-size: calc(14px * var(--ts, 1)); padding: 6px 6px; }
.sel-moves { margin-top: 6px; }
.sel-to { color: var(--muted); font-size: calc(13px * var(--ts, 1)); white-space: nowrap; }
.sel-moves .btn { flex: 1; min-width: 0; padding-left: 8px; padding-right: 8px; }
.sel-moves .btn:disabled { opacity: .45; }
body.proj-selecting .shell { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 140px); }
.toast.has-action { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; white-space: nowrap; }
.toast-undo { color: var(--accent); font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(var(--acc-rgb),.16); }
.pf-title { margin: 2px 0 2px; font-size: calc(18px * var(--ts, 1)); }
.pf-label { font-weight: 700; font-size: calc(12.5px * var(--ts, 1)); color: var(--muted); margin: 14px 0 7px; text-transform: uppercase; letter-spacing: .05em; }
.pf-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip { padding: 8px 15px; border-radius: 999px; border: 1.5px solid #2f2a3a; background: #17141e; color: var(--text); font-weight: 600; font-size: calc(14px * var(--ts, 1)); }
.pf-chip[aria-pressed="true"] { background: var(--accent-fill); border-color: transparent; color: #fff; }
.pf-hint { font-size: calc(12px * var(--ts, 1)); color: var(--muted); margin: 7px 0 0; }
.pf-brand { width: 100%; height: 44px; box-sizing: border-box; border-radius: 12px; padding: 0 12px; background: var(--field); border: 1.5px solid var(--field-border); color: var(--text); font: inherit; font-size: calc(15px * var(--ts, 1)); }
.as-list.selecting > .sel-on .sel-check { background: var(--accent); border-color: var(--accent); color: #fff; }
body.proj-selecting .toast { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 132px); }
.sel-bar { transition: bottom .2s ease; }
body.chrome-faded .sel-bar { bottom: calc(env(safe-area-inset-bottom) + 10px); }
body.chrome-faded.proj-selecting .toast { bottom: calc(env(safe-area-inset-bottom) + 132px); }
@media (prefers-reduced-motion: reduce) { .sel-bar { transition: none; } }
.pf-btns { display: flex; gap: 10px; margin-top: 18px; }
.pf-btns .btn { flex: 1; }

/* ds-v173: low-res stash photos at near-natural size on a soft blurred copy (grid only; list thumbs are small anyway) */
.wip-cover.lowres { overflow: hidden; display: grid; place-items: center; box-sizing: border-box; padding: 46px 10px 10px; }   /* top pad keeps the photo clear of the ☆ and ⋯ buttons */
.wip-cover.lowres .lr-bg { position: absolute; inset: -12%; background: center / cover no-repeat; filter: blur(18px) saturate(1.15); opacity: .55; pointer-events: none; }
.wip-cover.lowres .lr-bg::after { content: ''; position: absolute; inset: 0; background: rgba(11,11,15,.35); pointer-events: none; }
.wip-cover.lowres img { position: relative; width: auto; height: auto; max-width: min(100%, calc(var(--lr-w) * 1.25)); max-height: min(100%, calc(var(--lr-h) * 1.25)); width: min(100%, calc(var(--lr-w) * 1.25)); object-fit: contain; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.as-list .wip-cover.lowres { display: block; padding: 0; }
.as-list .wip-cover.lowres .lr-bg { display: none; }
.as-list .wip-cover.lowres img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; box-shadow: none; }
.better-photo { display: block; background: none; border: 0; padding: 2px 0 6px; margin: 0; color: var(--accent); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.as-list .better-photo { display: none; }

/* ds-v175: 'New posts' pill (Glo Board, after Back when newer posts arrived above you) */
/* ds-v176: one-time Terms accept screen + signup note */
.agree-note { margin: -2px 0 8px; font-size: 12.5px; }
body.terms-gate-on { overflow: hidden; }
.terms-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: calc(var(--sat, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px); background: rgba(10,8,14,.94); overflow-y: auto; overscroll-behavior: contain; }
.terms-card { width: 100%; max-width: 420px; background: var(--card, #17131f); border: 1px solid rgba(var(--acc-rgb),.45); border-radius: 18px; padding: 22px 20px 16px; box-shadow: 0 10px 40px rgba(0,0,0,.5); text-align: center; }
.terms-card h1 { font-size: 20px; margin: 6px 0 8px; }
.terms-card p { color: var(--muted, #bdb6c8); font-size: 14.5px; line-height: 1.45; margin: 0 0 14px; }
.terms-gem { width: 44px; height: 44px; margin: 0 auto; pointer-events: none; }
.terms-gem svg { width: 100%; height: 100%; }
.terms-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.terms-card .check.agree { text-align: left; margin-bottom: 10px; }
.terms-out { display: block; margin: 12px auto 0; background: none; border: 0; font: inherit; font-size: 13.5px; color: var(--muted, #bdb6c8); text-decoration: underline; cursor: pointer; }
/* ===== ds-v156 light mode (generated by scripts/gen-light.py; do not edit below) ===== */
@media (min-width: 700px) { :where(html[data-theme="light"]) .shell { border-left: 1px solid #ede6f4; border-right: 1px solid #ede6f4; } }
:where(html[data-theme="light"]) .top { background: rgba(237,230,244,0.94); border-bottom: 1px solid #ebe4f3; }
:where(html[data-theme="light"]) .logo-drill { color: #211a28; }
:where(html[data-theme="light"]) .icon-row a { color: #281f31; }
:where(html[data-theme="light"]) .notif { background: #eee7f4; border: 1px solid #e4d9ee; }
:where(html[data-theme="light"]) .notif.unread { background: #ede6f4; }
:where(html[data-theme="light"]) .notif .nsnip { color: #453654; }
:where(html[data-theme="light"]) .avatar { background: #e6dcef; }
:where(html[data-theme="light"]) .menu { background: #eee7f4; }
:where(html[data-theme="light"]) .menu button:hover { background: #e7def0; }
:where(html[data-theme="light"]) .menu .danger { color: #a51217; }
:where(html[data-theme="light"]) .post-img { background: #efe9f5; }
:where(html[data-theme="light"]) .act { color: #34283f; }
:where(html[data-theme="light"]) .gem .gem-body { stroke: #2c2235; }
:where(html[data-theme="light"]) .gem .gem-facets { stroke: #2c2235; }
:where(html[data-theme="light"]) .comment .bubble { background: #ece4f3; border: 1px solid #e4d9ee; }
:where(html[data-theme="light"]) input[type=text], :where(html[data-theme="light"]) input[type=password], :where(html[data-theme="light"]) input[type=email], :where(html[data-theme="light"]) input[type=url], :where(html[data-theme="light"]) input[type=datetime-local], :where(html[data-theme="light"]) input:not([type]), :where(html[data-theme="light"]) textarea { background: #efe9f5; border: 1.5px solid #dfd3eb; }
:where(html[data-theme="light"]) .error { color: #a51217; }
:where(html[data-theme="light"]) .tabs { background: #efe9f5; border: 1px solid #e4d9ee; }
:where(html[data-theme="light"]) .photo-picker { color: #34283f; }
:where(html[data-theme="light"]) .chip { border: 1.5px solid #dacce8; color: #3c2f4a; }
:where(html[data-theme="light"]) .chip.on { color: #211a28; }
:where(html[data-theme="light"]) .profile-head .bio { color: #41334f; }
:where(html[data-theme="light"]) .grid3 a { background: #efe9f5; }
:where(html[data-theme="light"]) .grid3 .txt { background: linear-gradient(135deg, #eee8f5, #f2edf7); }
:where(html[data-theme="light"]) .bottom { background: rgba(244,239,248,0.96); border-top: 1px solid #e6ddf0; }
:where(html[data-theme="light"]) .bottom a { color: #4a395a; }
:where(html[data-theme="light"]) .toast { background: #ebe4f3; color: #211a28; }
:where(html[data-theme="light"]) .hidden-badge { color: #a51217; }
:where(html[data-theme="light"]) .reason { border: 1.5px solid #dfd3eb; }
:where(html[data-theme="light"]) .pill { color: #a51217; }
:where(html[data-theme="light"]) .report-body { color: #3c2f4a; }
:where(html[data-theme="light"]) .danger-btn { color: #a51217 !important; }
:where(html[data-theme="light"]) .danger-zone { border: 1px solid #ead7dd; }
:where(html[data-theme="light"]) .danger-zone summary { color: #a51217; }
:where(html[data-theme="light"]) .composer { border: 1px solid #e6dcef; }
:where(html[data-theme="light"]) .composer-input { color: #554268; }
:where(html[data-theme="light"]) .composer:hover .composer-input { color: #211a28; }
:where(html[data-theme="light"]) .avatar-edit .cam, :where(html[data-theme="light"]) .avatar-edit .edit-badge { border: 2px solid #f9f6fb; }
:where(html[data-theme="light"]) .avatar-btns label.btn { color: #211a28; }
:where(html[data-theme="light"]) .embed { background: #f0ebf6; }
:where(html[data-theme="light"]) .embed-wip { background: #ede6f4; }
:where(html[data-theme="light"]) .embed-wip-cover { background: #f2edf7; }
:where(html[data-theme="light"]) .embed-wip-cover.empty { background: #eae1f2; }
:where(html[data-theme="light"]) .sheet-grip { background: #d3c3e4; }
:where(html[data-theme="light"]) .sheet-sec { border-top: 1px solid #e4d9ee; }
:where(html[data-theme="light"]) .sheet-opt { background: #ece4f3; border: 1px solid #e2d6ed; color: #34283f; }
:where(html[data-theme="light"]) .seg { background: #eee7f4; border: 1px solid #e2d6ed; }
:where(html[data-theme="light"]) .seg button { color: #524064; }
:where(html[data-theme="light"]) .seg.tabs a { color: #524064; }
:where(html[data-theme="light"]) .pbar { background: #e3d9ee; }
:where(html[data-theme="light"]) .wip-card { background: #eee7f4; border: 1px solid #e2d6ed; }
:where(html[data-theme="light"]) .wip-cover { background: #f1ecf7; }
:where(html[data-theme="light"]) .wip-status { border: 1px solid #dacce8; }
:where(html[data-theme="light"]) .wip-owner { color: #34283f; }
:where(html[data-theme="light"]) .wip-notes { color: #41334f; }
:where(html[data-theme="light"]) .tl-sess { color: #41334f; }
:where(html[data-theme="light"]) .wip-post-head { color: #41334f; }
:where(html[data-theme="light"]) .lightbox { background: #f9f6fb; }
:where(html[data-theme="light"]) .lb-x, :where(html[data-theme="light"]) .lb-save { background: rgba(236,229,243,0.75); color: #211a28; }
:where(html[data-theme="light"]) .mention-ac { background: #eee8f5; box-shadow: 0 10px 30px rgba(70,50,100,0.21), 0 0 18px rgba(var(--acc-rgb),0.25); color: #31263c; }
:where(html[data-theme="light"]) .mention-ac .ac-item b { color: #211a28; }
:where(html[data-theme="light"]) .seg-count { background: #dfd3eb; color: #211a28; }
:where(html[data-theme="light"]) .conv-row { background: #efe9f5; border: 1px solid #e4d9ee; color: #211a28; }
:where(html[data-theme="light"]) .conv-row.unread .cv-prev { color: #211a28; }
:where(html[data-theme="light"]) .thread-head { border-bottom: 1px solid #e8dff0; }
:where(html[data-theme="light"]) .th-who { color: #211a28; }
:where(html[data-theme="light"]) .dm { color: #211a28; }
:where(html[data-theme="light"]) .dm-bubble { background: #e8dff1; color: #211a28; }
:where(html[data-theme="light"]) .dm-gem { background: rgba(242,237,247,0.94); }
:where(html[data-theme="light"]) .dm-react-bar { background: #e8dff1; box-shadow: 0 0 18px rgba(var(--acc-rgb), .28), 0 8px 24px rgba(70,50,100,0.122); }
:where(html[data-theme="light"]) .dm-react-gem { background: #ede6f4; }
:where(html[data-theme="light"]) .dm-react-gem.on { color: #211a28; }
:where(html[data-theme="light"]) .dm-menu-bubble-slot .dm-bubble { box-shadow: 0 10px 32px rgba(70,50,100,0.175), 0 0 18px rgba(var(--acc-rgb), .28); }
:where(html[data-theme="light"]) .dm-action-sheet { background: #e7def0; border: 1px solid #ded1ea; box-shadow: 0 12px 36px rgba(70,50,100,0.158); }
:where(html[data-theme="light"]) .dm-action-sheet button { border-bottom: 1px solid #dfd3eb; color: #2a2133; }
:where(html[data-theme="light"]) .dm-action-sheet button:active { background: #e2d7ed; }
:where(html[data-theme="light"]) .dm-action-sheet button.danger { color: #a51217; }
:where(html[data-theme="light"]) .dm-action-sheet button.danger svg { color: #a51217; }
:where(html[data-theme="light"]) .dm-photo { background: #efe9f5; }
:where(html[data-theme="light"]) .dm-compose { background: #ede7f4; }
:where(html[data-theme="light"]) .dm-input textarea { color: #211a28; }
:where(html[data-theme="light"]) #dmPrev button { background: #f9f6fb; color: #211a28; }
:where(html[data-theme="light"]) .profile-actions .prof-more { border: 1px solid #dfd3eb; }
:where(html[data-theme="light"]) .ac-msg { background: #ece4f3; }
:where(html[data-theme="light"]) .picker input[type=search] { background: #efe9f5; border: 1.5px solid #dfd3eb; }
:where(html[data-theme="light"]) .pk-row { background: #ece4f3; border: 1px solid #e2d6ed; color: #211a28; }
:where(html[data-theme="light"]) .pill.muted { background: #e6dcef; border-color: #ddcfea; }
:where(html[data-theme="light"]) .tl-more:hover, :where(html[data-theme="light"]) .tl-more[aria-expanded=true] { color: #211a28; }
:where(html[data-theme="light"]) .menu .danger { color: #a51217; }
:where(html[data-theme="light"]) .card { background: linear-gradient(180deg, #e3d9ee 0%, var(--card) 60%); }
:where(html[data-theme="light"]) .composer { background: linear-gradient(180deg, #e3d9ee 0%, var(--card) 70%); }
:where(html[data-theme="light"]) .wip-card { background: linear-gradient(180deg, #e3d9ee 0%, #e8dff1 70%); }
:where(html[data-theme="light"]) .bottom { background: linear-gradient(180deg, rgba(229,223,236,0.97), rgba(237,230,244,0.97)); }
:where(html[data-theme="light"]) .bottom a.active:not(.plus) { color: #211a28; }
:where(html[data-theme="light"]) .sk { background: linear-gradient(90deg, #e0d5ec, #dacce8 50%, #e0d5ec); }
:where(html[data-theme="light"]) .ptr { background: #e3d9ee; }
:where(html[data-theme="light"]) .switch-row { border-top: 1px solid #dfd3eb; }
:where(html[data-theme="light"]) .switch { background: #d7c8e6; }
:where(html[data-theme="light"]) .settings-links a, :where(html[data-theme="light"]) .settings-links button { border-top: 1px solid #dfd3eb; }
:where(html[data-theme="light"]) .legal-nav a { border: 1px solid #dfd3eb; }
:where(html[data-theme="light"]) .draft-banner { color: #a57e12; }
:where(html[data-theme="light"]) .ev-card { color: #211a28; }
:where(html[data-theme="light"]) .ev-cover { background: linear-gradient(135deg, var(--accent-deep), #ede6f4); }
:where(html[data-theme="light"]) .ev-date { background: rgba(243,238,247,0.82); }
:where(html[data-theme="light"]) .ev-lock { background: rgba(243,238,247,0.82); color: #211a28; }
:where(html[data-theme="light"]) .ev-hero { background: linear-gradient(135deg, var(--accent-deep), #ede6f4); }
:where(html[data-theme="light"]) .ev-more { background: rgba(243,238,247,0.75); }
:where(html[data-theme="light"]) .ev-facts li { color: #3c2f4a; }
:where(html[data-theme="light"]) .board-cover { background: #efe9f5; }
:where(html[data-theme="light"]) .board-info .wip-name { color: #211a28; }
:where(html[data-theme="light"]) .as-biz b { color: #211a28; }
:where(html[data-theme="light"]) .biz-card { color: #211a28; }
:where(html[data-theme="light"]) .biz-card-cover { background: linear-gradient(135deg, #c4ccec, var(--accent-deep) 55%, #ede6f4); }
:where(html[data-theme="light"]) .slug-row { background: #efe9f5; border: 1.5px solid #dfd3eb; }
:where(html[data-theme="light"]) .biz-report-head { color: #a51216; }
:where(html[data-theme="light"]) .ev-state { background: rgba(243,238,247,0.85); color: #a57412; }
:where(html[data-theme="light"]) .ev-state.archived { color: #473757; border-color: #cab6de; }
:where(html[data-theme="light"]) .eol-banner.archived { border-color: #cab6de; }
:where(html[data-theme="light"]) .eol-opt { background: #ece5f3; color: #211a28; }
:where(html[data-theme="light"]) .pin-label { color: #a57412; }
:where(html[data-theme="light"]) .year-pick { background: rgba(243,238,247,0.6); }
:where(html[data-theme="light"]) .post-img, :where(html[data-theme="light"]) .tl-photos.slides img.tl-img { background: #f1ecf6; }
:where(html[data-theme="light"]) .uname-status.good { color: #229653; }
:where(html[data-theme="light"]) .uname-status.bad { color: #a51224; }
:where(html[data-theme="light"]) .shop-tile { background: linear-gradient(160deg, #e2dbec 0%, var(--card) 75%); }
:where(html[data-theme="light"]) .shop-tile p { color: #463755; }
:where(html[data-theme="light"]) .notify-btn.on { background: #ded5ea; }
@media (pointer: coarse) { :where(html[data-theme="light"]) .top { background: #ede6f4; } }
@media (pointer: coarse) { :where(html[data-theme="light"]) .bottom { background: #f4eff8; } }
:where(html[data-theme="light"]) .accent-sw { border: 2px solid #dfd3eb; }
:where(html[data-theme="light"]) .accent-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px rgba(70,50,100,0.35), 0 0 14px var(--sw); }
:where(html[data-theme="light"]) .accent-hue::-webkit-slider-runnable-track { border: 1px solid #ded2eb; box-shadow: inset 0 0 8px rgba(70,50,100,0.158); }
:where(html[data-theme="light"]) .accent-hue::-webkit-slider-thumb { background: #ebe4f3; box-shadow: 0 0 0 2px rgba(70,50,100,0.35), 0 0 12px rgba(var(--acc-rgb),.7); }
:where(html[data-theme="light"]) .accent-hue::-moz-range-track { border: 1px solid #ded2eb; }
:where(html[data-theme="light"]) .accent-hue::-moz-range-thumb { background: #ebe4f3; }
:where(html[data-theme="light"]) .top-search input { border: 1px solid #dfd3eb; background: #ece4f3; }
:where(html[data-theme="light"]) .top-search input::placeholder { color: #765c90; }
:where(html[data-theme="light"]) .top-suggest { background: #ede6f4; border: 1px solid #dfd3eb; box-shadow: 0 12px 28px rgba(70,50,100,0.193), 0 0 18px rgba(var(--acc-rgb),.18); }
:where(html[data-theme="light"]) .top-sug:hover, :where(html[data-theme="light"]) .top-sug:focus { background: #e7def0; }
:where(html[data-theme="light"]) .top-sug .sug-ico { background: #e8dff1; }
:where(html[data-theme="light"]) .stash-pub { color: #3c2f4a; }
:where(html[data-theme="light"]) .stash-card .stash-fav.on { color: #a58612; }
:where(html[data-theme="light"]) .kit-val { color: #31263c; }
:where(html[data-theme="light"]) .tab-search input { background: #ebe4f3 !important; color: #31263c !important; border: 1.5px solid #ded2eb !important; }
:where(html[data-theme="light"]) .tab-search input::placeholder { color: #795e94; }
:where(html[data-theme="light"]) .gift-chip a.gift-user:hover { color: #211a28; }
:where(html[data-theme="light"]) .mention-ac-inline, :where(html[data-theme="light"]) #gift-ac-host { background: #eee8f5; box-shadow: 0 8px 22px rgba(70,50,100,0.193), 0 0 14px rgba(var(--acc-rgb),.2); color: #31263c; }
:where(html[data-theme="light"]) .mention-ac-inline .ac-item b, :where(html[data-theme="light"]) #gift-ac-host .ac-item b { color: #211a28; }
:where(html[data-theme="light"]) .yt-card { background: #f2edf7; }
:where(html[data-theme="light"]) .yt-card .yt-thumb { background: #efe9f5; }
:where(html[data-theme="light"]) .yt-meta { background: #ede6f4; }
:where(html[data-theme="light"]) .yt-title { color: #2a2133; }
:where(html[data-theme="light"]) .composer:hover .composer-input { color: #554268; }
:where(html[data-theme="light"]) .composer-main:hover .composer-input { color: #211a28; }
:where(html[data-theme="light"]) .create-row { background: linear-gradient(180deg, #e3deeb 0%, #ebe3f3 100%); }
:where(html[data-theme="light"]) .pc-grid img { background: #f1ecf6; box-shadow: inset 0 0 0 1px rgba(70,50,100,0.087); }
:where(html[data-theme="light"]) .np-thumb { background: #f1ecf6; }
:where(html[data-theme="light"]) .tl-sess .tl-clock { color: #211a28; }
:where(html[data-theme="light"]) .tl-date { color: #2f2439; color: color-mix(in srgb, var(--accent-pale) 55%, #211a28); }
:where(html[data-theme="light"]) .tl-date .tl-tod { color: #211a28; }
:where(html[data-theme="light"]) .st-sheet input[type=datetime-local] { background: #f1ecf6; color: #292032; }
:where(html[data-theme="light"]) .st-preview { color: #41334f; }
:where(html[data-theme="light"]) .neon-check { color: #2f2439; }
:where(html[data-theme="light"]) .neon-check input[type=checkbox] { background: #f1ecf6; }
:where(html[data-theme="light"]) .neon-check input[type=checkbox]::after { border: solid #f1ecf6; }
:where(html[data-theme="light"]) .lb-post { background: rgba(236,229,243,0.8); color: #211a28; }
:where(html[data-theme="light"]) .wip-time { color: #41334f; }
:where(html[data-theme="light"]) input[type=radio]:not(.switch), :where(html[data-theme="light"]) input[type=checkbox]:not(.switch) { background: #f1ecf6; }
:where(html[data-theme="light"]) input[type=checkbox]:not(.switch)::after { border: solid #f1ecf6; }
:where(html[data-theme="light"]) .cover-drop { background: #f1ecf6; }
:where(html[data-theme="light"]) .cover-drop.busy::after { background: rgba(244,239,248,0.7); color: #34283f; }
:where(html[data-theme="light"]) .cover-empty { color: #34283f; }
:where(html[data-theme="light"]) .cover-pill, :where(html[data-theme="light"]) .field label.cover-pill { background: #eee7f4; color: #2a2134; }
:where(html[data-theme="light"]) .field label.cover-pill { color: #2a2134; }
:where(html[data-theme="light"]) .cover-pill[data-cover-rm] svg { color: #a51233; }
:where(html[data-theme="light"]) .inv-search input { background: #f1ecf6; }
:where(html[data-theme="light"]) .grp-nocover { background: radial-gradient(80% 90% at 30% 20%, rgba(var(--acc-rgb), .45), transparent 60%), linear-gradient(160deg, #e4d8f1, #f1ecf6 70%); }
:where(html[data-theme="light"]) .grp-back { background: rgba(244,239,248,0.62); color: #2a2134; }
:where(html[data-theme="light"]) .grp-hero-txt h1 { color: #211a28; }
:where(html[data-theme="light"]) .grp-meta { color: #342940; }
:where(html[data-theme="light"]) .grp-faces .avatar { border: 2px solid #f0eaf5; }
:where(html[data-theme="light"]) .grp-faces .grp-more { background: #ebe4f3; border: 2px solid #f0eaf5; }
:where(html[data-theme="light"]) .grp-btn { background: #ece5f3; color: #2a2134; }
:where(html[data-theme="light"]) .grp-btn.on svg:last-child { color: #463755; }
:where(html[data-theme="light"]) .grp-btn.fill svg { color: #211a28; }
:where(html[data-theme="light"]) .grp-desc { color: #3e304c; }
:where(html[data-theme="light"]) .grp-stick::before { background: rgba(240,234,245,0.97); }
:where(html[data-theme="light"]) .grp-mini-ph { background: #e9e1f1; }
:where(html[data-theme="light"]) span.url.url-chip { background: #ebe4f3; }
:where(html[data-theme="light"]) span.url.url-chip .ut { color: #2e2438; }
:where(html[data-theme="light"]) .embed .post-img { background: #f2edf7; }
:where(html[data-theme="light"]) .comment .cmeta .cmore:hover, :where(html[data-theme="light"]) .comment .cmeta .cmore:focus-visible { color: #34283f; background: #e7def0; }
:where(html[data-theme="light"]) .cmenu-who b { color: #34283f; }
:where(html[data-theme="light"]) .cmenu-row { color: #34283f; }
:where(html[data-theme="light"]) .cmenu-row:hover, :where(html[data-theme="light"]) .cmenu-row:focus-visible { background: #e9e0f1; }
:where(html[data-theme="light"]) .cmenu-row.danger, :where(html[data-theme="light"]) .cmenu-row.danger svg { color: #a51217; }
:where(html[data-theme="light"]) .ds-card .embed-wip-cover img.ds-img { background: #efe9f5; }
:where(html[data-theme="light"]) .ds-card .embed-wip-cover.empty { background: radial-gradient(120% 90% at 50% 0%, rgba(var(--acc-rgb), .22), #ece5f3 70%); }
:where(html[data-theme="light"]) .ds-card.loading .nm, :where(html[data-theme="light"]) .ds-card.loading .ds-sub { background: #e8dff1; }
:where(html[data-theme="light"]) .bw-more { background: rgba(243,238,247,0.72); color: #34283f; }
:where(html[data-theme="light"]) .bw-active b { color: #211a28; }
:where(html[data-theme="light"]) .composer.ic .ic-input { background: #eee7f4; color: #281f31; }
:where(html[data-theme="light"]) .composer.ic .ic-input::placeholder { color: #554268; }
:where(html[data-theme="light"]) .yt-card.yt-playing { background: #f1ecf7; }
:where(html[data-theme="light"]) .yt-card.yt-playing iframe { background: #f9f6fb; }
:where(html[data-theme="light"]) .pslider::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--accent-fill), var(--accent) var(--p), #e3d9ee var(--p)); }
:where(html[data-theme="light"]) .pslider::-moz-range-track { background: linear-gradient(90deg, var(--accent-fill), var(--accent) var(--p), #e3d9ee var(--p)); }
:where(html[data-theme="light"]) .pslider::-webkit-slider-thumb { background: #e9e1f1; }
:where(html[data-theme="light"]) .pslider::-moz-range-thumb { background: #e9e1f1; }
:where(html[data-theme="light"]) .ps-share .pick-btns label { color: #32273d; }
:where(html[data-theme="light"]) .biz-hero .biz-logo-on, :where(html[data-theme="light"]) .biz-logo-btn .biz-logo-on { background: #e9e1f1; }
:where(html[data-theme="light"]) .imp-chip { color: var(--accent, #5612a5); }
:where(html[data-theme="light"]) .imp-chip.wip { color: #a57112; }
:where(html[data-theme="light"]) .imp-chip.finished { color: #1d9a59; }
:where(html[data-theme="light"]) .imp-mrow select { background: #e8dff1; }
:where(html[data-theme="light"]) .top-sug-label { border-top: 1px solid #e4d9ee; }
:where(html[data-theme="light"]) body.halloween .logo-drill { color: #a55912; }
:where(html[data-theme="light"]) body.halloween .logo-social { color: #6a12a5; }
:where(html[data-theme="light"]) .proj-view { border: 1.5px solid #ded2eb; background: #ebe4f3; }
:where(html[data-theme="light"]) .proj-view button { color: #795e94; }
:where(html[data-theme="light"]) .wip-grid.as-list { background: linear-gradient(180deg, #e6ddf0, #ebe3f3); }
:where(html[data-theme="light"]) .as-list .wip-cover { background: #f1ecf7; }
:where(html[data-theme="light"]) .as-list .stash-card .stash-fav:not(.on) { color: #795e94; }
@media (min-width: 1024px) { :where(html[data-theme="light"]) .bottom a { color: #443553; } }
@media (min-width: 1280px) { :where(html[data-theme="light"]) .rc-wip img, :where(html[data-theme="light"]) .rc-nocover { background: #f1ecf7; } }
:where(html[data-theme="light"]) .ts-row button { border: 1.5px solid #ded2eb; background: #ebe4f3; color: #443553; }
:where(html[data-theme="light"]) .lp-card { background: #ede6f4; }
:where(html[data-theme="light"]) .lp-card .lp-img { background: #f2edf7; }
:where(html[data-theme="light"]) .grp-hero-txt h1 { color: var(--text, #211a28); }
:where(html[data-theme="light"]) .proj-tool { border: 1.5px solid #ded2eb; background: #ebe4f3; color: #564369; }
:where(html[data-theme="light"]) .sel-bar { background: #e9e0f1; box-shadow: 0 10px 28px rgba(70,50,100,0.175); }
:where(html[data-theme="light"]) .pf-chip { border: 1.5px solid #ddd0ea; background: #ebe3f3; }
:where(html[data-theme="light"]) .wip-cover.lowres .lr-bg::after { background: rgba(241,236,247,0.35); }
:where(html[data-theme="light"]) .wip-cover.lowres img { box-shadow: 0 2px 10px rgba(70,50,100,0.122); }
/* ===== ds-v156 light mode: hand-written (kept by gen-light.py) ===== */
/* ds-v165: solid sticky bars in light mode too */
html[data-theme="light"] .top, html[data-theme="light"] .grp-stick::before{ background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-theme="light"] .grp-hero-txt h1 { color: #211a28; }
html[data-theme="light"] { color-scheme: light; --bg: #f5f1fa; --card: #fbf9fe; --text: #241c2f; --muted: #6c6479; --line: #e2daea;
  --glow: 0 1px 2px rgba(70,50,100,.10), 0 3px 12px rgba(var(--acc-rgb),.16);
  --glow-card: 0 1px 2px rgba(70,50,100,.08), 0 6px 18px rgba(var(--acc-rgb),.13);
  --glow-soft: 0 1px 2px rgba(70,50,100,.08), 0 2px 10px rgba(var(--acc-rgb),.18);
  --glow-avatar: 0 0 0 1px rgba(var(--acc-rgb),.25), 0 2px 8px rgba(var(--acc-rgb),.25);
  --field: #efe9f6; --field-border: rgba(var(--acc-rgb), .32); --field-placeholder: #857b94; }
/* text on light needs the deeper shade of the user's neon pick */
html[data-theme="light"] body { --accent: var(--accent-fill); --accent-2: var(--accent-fill); --accent-soft: rgba(var(--acc-rgb), .45); }
html[data-theme="light"] body.halloween { --glow: 0 1px 2px rgba(70,50,100,.10), 0 3px 12px rgba(255,138,31,.18);
  --glow-card: 0 1px 2px rgba(70,50,100,.08), 0 6px 18px rgba(255,138,31,.14), 0 4px 22px rgba(180,92,240,.10); --glow-soft: 0 2px 10px rgba(255,138,31,.2); }
html[data-theme="light"] :not(.logo-social) { text-shadow: none !important; }
html[data-theme="light"] .logo-drill { color: #241c2f; }
html[data-theme="light"] .logo-social { text-shadow: 0 0 10px rgba(var(--acc-rgb),.35); }
html[data-theme="light"] .shell { background: rgba(255,255,255,.45); border-color: #e6deef; }
html[data-theme="light"] .modal-bg { background: rgba(40,25,60,.42); }
html[data-theme="light"] .card, html[data-theme="light"] .wip-card { border-color: rgba(var(--acc-rgb),.38); }
html[data-theme="light"] input:not([type=checkbox]):not([type=radio]):not([type=range]), html[data-theme="light"] textarea, html[data-theme="light"] select { background-color: var(--field); color: var(--text); }
html[data-theme="light"] input::placeholder, html[data-theme="light"] textarea::placeholder { color: var(--field-placeholder) !important; }

/* Halloween in light: darker webs/bats so they show on the pale background; ghosts wear sunglasses */
html[data-theme="light"] body.halloween .top::before, html[data-theme="light"] body.halloween article.post::after { filter: brightness(.45) saturate(1.4); }
html[data-theme="light"] body.halloween .logo::before, html[data-theme="light"] body.halloween .hw-feed-ghost span { background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 70"%3E%3Cdefs%3E%3CradialGradient id="g" cx="50%25" cy="35%25" r="70%25"%3E%3Cstop offset="0%25" stop-color="%23f4eefc"/%3E%3Cstop offset="100%25" stop-color="%23cfc3e2"/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d="M30 4C16 4 7 15 7 29v32c0 3 3 4 5 2l5-4 5 5c2 2 4 2 6 0l2-2 2 2c2 2 4 2 6 0l5-5 5 4c2 2 5 1 5-2V29C53 15 44 4 30 4z" fill="url%28%23g%29"/%3E%3Cellipse cx="22.5" cy="30" rx="3" ry="3.8" fill="%232a1d3a"/%3E%3Cellipse cx="37.5" cy="30" rx="3" ry="3.8" fill="%232a1d3a"/%3E%3Ccircle cx="23.6" cy="28.6" r="1" fill="%23fff"/%3E%3Ccircle cx="38.6" cy="28.6" r="1" fill="%23fff"/%3E%3Cpath d="M26.5 37q3.5 3.2 7 0" stroke="%232a1d3a" stroke-width="2" fill="none" stroke-linecap="round"/%3E%3Cellipse cx="16.5" cy="36.5" rx="3.6" ry="2.2" fill="%23ff9ab8" opacity=".6"/%3E%3Cellipse cx="43.5" cy="36.5" rx="3.6" ry="2.2" fill="%23ff9ab8" opacity=".6"/%3E%3Cg%3E%3Cpath d="M15 26.2h13.4q1.2 0 1 1.3-.8 6.6-7.6 6.6-6.1 0-7.6-6.5-.2-1.4.8-1.4z" fill="%231d1426"/%3E%3Cpath d="M45 26.2H31.6q-1.2 0-1 1.3.8 6.6 7.6 6.6 6.1 0 7.6-6.5.2-1.4-.8-1.4z" fill="%231d1426"/%3E%3Cpath d="M28.6 27.6q1.4-1.6 2.8 0" stroke="%231d1426" stroke-width="1.6" fill="none"/%3E%3Cpath d="M14.6 27l-3.4-1.6M45.4 27l3.4-1.6" stroke="%231d1426" stroke-width="1.4" stroke-linecap="round"/%3E%3Cpath d="M17.6 28.6l3-1.3M34.2 28.6l3-1.3" stroke="%23fff" stroke-opacity=".75" stroke-width="1.1" stroke-linecap="round"/%3E%3C/g%3E%3C/svg%3E'); }
/* ds-v168: in light mode the logo pumpkin wears big sunglasses too (dark mode pumpkin unchanged) */
html[data-theme="light"] body.halloween .logo::after { background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 56"%3E%3Cpath d="M28 11c0-5 2-8 6-10l1.5 3c-3 1.5-3.5 4-3.5 7z" fill="%235f9a2c"/%3E%3Cellipse cx="18" cy="33" rx="14" ry="19" fill="%23d95f0c"/%3E%3Cellipse cx="42" cy="33" rx="14" ry="19" fill="%23d95f0c"/%3E%3Cellipse cx="30" cy="33" rx="15" ry="21" fill="%23ff8a1f"/%3E%3Cpath d="M30 13v40M22 15q-6 18 0 36M38 15q6 18 0 36" stroke="%23c4560a" stroke-width="1.2" fill="none" opacity=".6"/%3E%3Cg fill="%23ffd84a"%3E%3Cpath d="M15 29l6-8 5 9zM45 29l-6-8-5 9zM28 35l2-4 2 4z"/%3E%3Cpath d="M13 38q17 14 34 0l-4 1-2 3-4-2-3 4-4-3-3 3-4-3-3 2-3-3z"/%3E%3C/g%3E%3Cellipse cx="13" cy="35" rx="3" ry="1.8" fill="%23ff5a7a" opacity=".45"/%3E%3Cellipse cx="47" cy="35" rx="3" ry="1.8" fill="%23ff5a7a" opacity=".45"/%3E%3Cg%3E%3Cpath d="M8 22.5l-3.5-2.5M52 22.5l3.5-2.5" stroke="%231d1426" stroke-width="2.2" stroke-linecap="round"/%3E%3Cpath d="M7.5 20h20q2 0 1.7 2.2-1.1 10.3-11.7 10.3-9.2 0-11.6-10.1-.4-2.4 1.6-2.4z" fill="%231d1426"/%3E%3Cpath d="M52.5 20h-20q-2 0-1.7 2.2 1.1 10.3 11.7 10.3 9.2 0 11.6-10.1.4-2.4-1.6-2.4z" fill="%231d1426"/%3E%3Cpath d="M27.5 22.4q2.5-2.6 5 0" stroke="%231d1426" stroke-width="2.2" fill="none"/%3E%3Cpath d="M10.5 23.4l5-2.2M35.5 23.4l5-2.2" stroke="%23fff" stroke-opacity=".8" stroke-width="1.6" stroke-linecap="round"/%3E%3Ccircle cx="23.5" cy="28.5" r=".9" fill="%23fff" fill-opacity=".55"/%3E%3Ccircle cx="48.5" cy="28.5" r=".9" fill="%23fff" fill-opacity=".55"/%3E%3C/g%3E%3C/svg%3E'); }
html[data-theme="light"] body.halloween .hw-feed-ghost span, html[data-theme="light"] body.halloween .logo::before { filter: drop-shadow(0 1px 2px rgba(70,50,100,.35)) drop-shadow(0 0 8px rgba(180,92,240,.35)); }
/* Appearance picker */
.theme-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.theme-tile { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 16px; border: 1.5px solid var(--line); background: transparent; color: var(--text); transition: border-color .25s, box-shadow .25s, transform .15s; }
.theme-tile:active { transform: scale(.97); }
.theme-tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--glow-soft); }
.tt-prev { position: relative; display: block; height: 92px; border-radius: 11px; overflow: hidden; padding: 8px; }
.tt-prev i { display: block; }
.tt-dark { background: #131119; }
.tt-light { background: #f5f1fa; box-shadow: inset 0 0 0 1px #e2daea; }
.tt-bar { height: 8px; width: 46%; margin: 0 auto 8px; border-radius: 4px; background: rgba(var(--acc-rgb),.9); }
.tt-card { display: flex !important; align-items: center; gap: 6px; height: 28px; margin-bottom: 6px; padding: 0 6px; border-radius: 8px; }
.tt-dark .tt-card { background: #221c2c; box-shadow: 0 0 0 1px rgba(var(--acc-rgb),.7), 0 0 8px rgba(var(--acc-rgb),.45); }
.tt-light .tt-card { background: #fbf9fe; box-shadow: 0 0 0 1px rgba(var(--acc-rgb),.3), 0 3px 8px rgba(70,50,100,.12); }
.tt-av { width: 14px; height: 14px; border-radius: 50%; flex: none; background: rgba(var(--acc-rgb),.85); }
.tt-l { height: 5px; flex: 1; border-radius: 3px; }
.tt-dark .tt-l { background: #4a4258; }
.tt-light .tt-l { background: #d9d0e4; }
/* ds-safari-tiles: Safari gives a <button> flex container align-items flex-start, so the preview shrank to a thin strip; stretch matches Chrome */
.theme-tile { align-items: stretch; }
.theme-tile > .tt-prev, .theme-tile > .tt-label { align-self: stretch; }
.tt-label { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; }
.tt-label svg { width: 18px; height: 18px; color: var(--accent); }
.theme-tile[aria-pressed="true"] .tt-label svg { animation: tt-spin .6s cubic-bezier(.3,1.5,.5,1); }
@keyframes tt-spin { from { transform: rotate(-180deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
/* switching: circular glow reveal from the tapped tile (View Transitions), soft colour fade as fallback */
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt::view-transition-new(root) { animation: ds-reveal .65s cubic-bezier(.4,0,.2,1); }
@keyframes ds-reveal { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 50%)); } to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 50%)); } }
html.theme-fade, html.theme-fade * { transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease !important; }
@media (prefers-reduced-motion: reduce) { .theme-tile[aria-pressed="true"] .tt-label svg { animation: none; } }
html[data-theme="light"] .fin-badge { color: var(--accent); }
html[data-theme="light"] .wip-cover .fin-badge { color: var(--accent-pale); }   /* dark chip over a cover photo keeps its pale text */
.imp-card .imp-thumb { float: left; width: 36px; height: 36px; border-radius: 8px; object-fit: cover; margin: 0 10px 0 0; background: #0b0b0f; }   /* ds-v157 */
.imp-card::after { content: ''; display: block; clear: both; }

/* ds-v168: header + status strip are one solid theme colour with a crisp 1px bottom edge: no glow/shadow haze below it,
   Halloween webs/bats/spider start below the status bar, light-mode webs are crisp lines instead of a pale wash,
   and the logo ghost/pumpkin use tight shadows instead of soft halos in light mode. */
.top, html[data-theme="light"] .top { box-shadow: none; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-theme="light"] .top { border-bottom: 1px solid rgba(var(--acc-rgb),.28); }
body.halloween .top::before { background: 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%20opacity%3D%22.42%22%3E%3Cg%20stroke%3D%22%23d9cfe8%22%20stroke-width%3D%22.9%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%200L100%200M0%200L0%20100M0%200L92%2038M0%200L68%2068M0%200L38%2092%22%2F%3E%3Cpath%20d%3D%22M22%200Q18%207%2020.3%208.4Q15%2012%2015.7%2015.7Q12%2015%208.4%2020.3Q7%2018%200%2022%22%2F%3E%3Cpath%20d%3D%22M48%200Q40%2014%2044.3%2018.4Q33%2025%2034%2034Q25%2033%2018.4%2044.3Q14%2040%200%2048%22%2F%3E%3Cpath%20d%3D%22M76%200Q63%2022%2068%2028.3Q52%2038%2052%2052Q38%2052%2028.3%2068Q22%2063%200%2076%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E') 0 var(--sat)/100px 100px no-repeat, 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%20opacity%3D%22.42%22%20transform%3D%22matrix%28-1%200%200%201%20100%200%29%22%3E%3Cg%20stroke%3D%22%23d9cfe8%22%20stroke-width%3D%22.9%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%200L100%200M0%200L0%20100M0%200L92%2038M0%200L68%2068M0%200L38%2092%22%2F%3E%3Cpath%20d%3D%22M22%200Q18%207%2020.3%208.4Q15%2012%2015.7%2015.7Q12%2015%208.4%2020.3Q7%2018%200%2022%22%2F%3E%3Cpath%20d%3D%22M48%200Q40%2014%2044.3%2018.4Q33%2025%2034%2034Q25%2033%2018.4%2044.3Q14%2040%200%2048%22%2F%3E%3Cpath%20d%3D%22M76%200Q63%2022%2068%2028.3Q52%2038%2052%2052Q38%2052%2028.3%2068Q22%2063%200%2076%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E') 100% var(--sat)/100px 100px no-repeat, url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 32"%3E%3Cg fill="%238e4fd6"%3E%3Cpath d="M28 13C22 6 12 5 2 10c5 1 7 4 7 7 3-3 7-2 8 2 3-3 7-2 9 1z"/%3E%3Cpath d="M36 13c6-7 16-8 26-3-5 1-7 4-7 7-3-3-7-2-8 2-3-3-7-2-9 1z"/%3E%3Cellipse cx="32" cy="16" rx="5" ry="7"/%3E%3Cpath d="M28 11l.5-7 2.5 4zM36 11l-.5-7-2.5 4z"/%3E%3C/g%3E%3Ccircle cx="30" cy="14" r="1.1" fill="%23ffb347"/%3E%3Ccircle cx="34" cy="14" r="1.1" fill="%23ffb347"/%3E%3C/svg%3E') 24% calc(var(--sat) + 8px)/22px 11px no-repeat, url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 32"%3E%3Cg fill="%238e4fd6"%3E%3Cpath d="M28 13C22 6 12 5 2 10c5 1 7 4 7 7 3-3 7-2 8 2 3-3 7-2 9 1z"/%3E%3Cpath d="M36 13c6-7 16-8 26-3-5 1-7 4-7 7-3-3-7-2-8 2-3-3-7-2-9 1z"/%3E%3Cellipse cx="32" cy="16" rx="5" ry="7"/%3E%3Cpath d="M28 11l.5-7 2.5 4zM36 11l-.5-7-2.5 4z"/%3E%3C/g%3E%3Ccircle cx="30" cy="14" r="1.1" fill="%23ffb347"/%3E%3Ccircle cx="34" cy="14" r="1.1" fill="%23ffb347"/%3E%3C/svg%3E') 79% calc(var(--sat) + 4px)/16px 8px no-repeat, url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 32"%3E%3Cg fill="%238e4fd6"%3E%3Cpath d="M28 13C22 6 12 5 2 10c5 1 7 4 7 7 3-3 7-2 8 2 3-3 7-2 9 1z"/%3E%3Cpath d="M36 13c6-7 16-8 26-3-5 1-7 4-7 7-3-3-7-2-8 2-3-3-7-2-9 1z"/%3E%3Cellipse cx="32" cy="16" rx="5" ry="7"/%3E%3Cpath d="M28 11l.5-7 2.5 4zM36 11l-.5-7-2.5 4z"/%3E%3C/g%3E%3Ccircle cx="30" cy="14" r="1.1" fill="%23ffb347"/%3E%3Ccircle cx="34" cy="14" r="1.1" fill="%23ffb347"/%3E%3C/svg%3E') 90% calc(var(--sat) + 62px)/14px 7px no-repeat; }
html[data-theme="light"] body.halloween .top::before { background: 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%20opacity%3D%22.75%22%3E%3Cg%20stroke%3D%22%23a497bb%22%20stroke-width%3D%22.9%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%200L100%200M0%200L0%20100M0%200L92%2038M0%200L68%2068M0%200L38%2092%22%2F%3E%3Cpath%20d%3D%22M22%200Q18%207%2020.3%208.4Q15%2012%2015.7%2015.7Q12%2015%208.4%2020.3Q7%2018%200%2022%22%2F%3E%3Cpath%20d%3D%22M48%200Q40%2014%2044.3%2018.4Q33%2025%2034%2034Q25%2033%2018.4%2044.3Q14%2040%200%2048%22%2F%3E%3Cpath%20d%3D%22M76%200Q63%2022%2068%2028.3Q52%2038%2052%2052Q38%2052%2028.3%2068Q22%2063%200%2076%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E') 0 var(--sat)/100px 100px no-repeat, 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%20opacity%3D%22.75%22%20transform%3D%22matrix%28-1%200%200%201%20100%200%29%22%3E%3Cg%20stroke%3D%22%23a497bb%22%20stroke-width%3D%22.9%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%200L100%200M0%200L0%20100M0%200L92%2038M0%200L68%2068M0%200L38%2092%22%2F%3E%3Cpath%20d%3D%22M22%200Q18%207%2020.3%208.4Q15%2012%2015.7%2015.7Q12%2015%208.4%2020.3Q7%2018%200%2022%22%2F%3E%3Cpath%20d%3D%22M48%200Q40%2014%2044.3%2018.4Q33%2025%2034%2034Q25%2033%2018.4%2044.3Q14%2040%200%2048%22%2F%3E%3Cpath%20d%3D%22M76%200Q63%2022%2068%2028.3Q52%2038%2052%2052Q38%2052%2028.3%2068Q22%2063%200%2076%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E') 100% var(--sat)/100px 100px no-repeat, url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 32"%3E%3Cg fill="%238e4fd6"%3E%3Cpath d="M28 13C22 6 12 5 2 10c5 1 7 4 7 7 3-3 7-2 8 2 3-3 7-2 9 1z"/%3E%3Cpath d="M36 13c6-7 16-8 26-3-5 1-7 4-7 7-3-3-7-2-8 2-3-3-7-2-9 1z"/%3E%3Cellipse cx="32" cy="16" rx="5" ry="7"/%3E%3Cpath d="M28 11l.5-7 2.5 4zM36 11l-.5-7-2.5 4z"/%3E%3C/g%3E%3Ccircle cx="30" cy="14" r="1.1" fill="%23ffb347"/%3E%3Ccircle cx="34" cy="14" r="1.1" fill="%23ffb347"/%3E%3C/svg%3E') 24% calc(var(--sat) + 8px)/22px 11px no-repeat, url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 32"%3E%3Cg fill="%238e4fd6"%3E%3Cpath d="M28 13C22 6 12 5 2 10c5 1 7 4 7 7 3-3 7-2 8 2 3-3 7-2 9 1z"/%3E%3Cpath d="M36 13c6-7 16-8 26-3-5 1-7 4-7 7-3-3-7-2-8 2-3-3-7-2-9 1z"/%3E%3Cellipse cx="32" cy="16" rx="5" ry="7"/%3E%3Cpath d="M28 11l.5-7 2.5 4zM36 11l-.5-7-2.5 4z"/%3E%3C/g%3E%3Ccircle cx="30" cy="14" r="1.1" fill="%23ffb347"/%3E%3Ccircle cx="34" cy="14" r="1.1" fill="%23ffb347"/%3E%3C/svg%3E') 79% calc(var(--sat) + 4px)/16px 8px no-repeat, url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 32"%3E%3Cg fill="%238e4fd6"%3E%3Cpath d="M28 13C22 6 12 5 2 10c5 1 7 4 7 7 3-3 7-2 8 2 3-3 7-2 9 1z"/%3E%3Cpath d="M36 13c6-7 16-8 26-3-5 1-7 4-7 7-3-3-7-2-8 2-3-3-7-2-9 1z"/%3E%3Cellipse cx="32" cy="16" rx="5" ry="7"/%3E%3Cpath d="M28 11l.5-7 2.5 4zM36 11l-.5-7-2.5 4z"/%3E%3C/g%3E%3Ccircle cx="30" cy="14" r="1.1" fill="%23ffb347"/%3E%3Ccircle cx="34" cy="14" r="1.1" fill="%23ffb347"/%3E%3C/svg%3E') 90% calc(var(--sat) + 62px)/14px 7px no-repeat; filter: none; }
body.halloween .top::after { top: var(--sat); }
html[data-theme="light"] body.halloween .logo::before { filter: drop-shadow(0 1px 1.5px rgba(70,50,100,.35)); }
html[data-theme="light"] body.halloween .logo::after { filter: drop-shadow(0 1px 1.5px rgba(120,60,10,.35)); }
/* ds-v169: every page ends at least tab bar + home-indicator safe area + 16px above the bottom, so the last row
   (Projects list/grid, Stash, feeds) always scrolls fully clear of the bottom tab bar. */
@media (max-width: 1023px) { :where(body:not(.welcome-gate-on)) .shell { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px); } }
/* ds-v170 light */
html[data-theme="light"] .proj-tool { border-color: #ded2eb; background: #ebe4f3; color: #795e94; }
html[data-theme="light"] .proj-tool[aria-pressed="true"] { color: var(--accent); border-color: rgba(var(--acc-rgb),.55); background: rgba(var(--acc-rgb),.14); }
html[data-theme="light"] .sel-bar { background: #fbf9fe; box-shadow: 0 10px 28px rgba(70,50,100,.2); }
html[data-theme="light"] .as-list.selecting .sel-check { border-color: #9c8fb0; }
html[data-theme="light"] .pf-chip { border-color: #ded2eb; background: #efe9f6; color: #2a2133; }
html[data-theme="light"] .pf-chip[aria-pressed="true"] { background: var(--accent-fill); border-color: transparent; color: #fff; }
html[data-theme="light"] .toast-undo { background: rgba(var(--acc-rgb),.14); }
/* ds-v173 light: soft low-res photo backdrop */
html[data-theme="light"] .wip-cover.lowres .lr-bg::after { background: rgba(255,255,255,.3); }
html[data-theme="light"] .wip-cover.lowres img { box-shadow: 0 2px 10px rgba(80,60,110,.22); }
/* ds-v176 light: Terms accept screen */
html[data-theme="light"] .terms-gate { background: rgba(236,229,245,.94); }

/* ds-v192: destructive confirmations shown in place inside the sheet / ⋯ menu that asked */
.ip-fade { transition: none; }
.ip-fade > * { opacity: 0; transition: opacity .14s ease; }
.ip-fade.ip-in > * { opacity: 1; }
.ip-confirm { padding: 4px 4px 2px; }
.menu .ip-confirm { padding: 10px 12px; min-width: 220px; max-width: 280px; }
.ip-title { display: block; font-size: 16px; font-weight: 700; margin: 2px 0 4px; }
.ip-text { margin: 0 0 12px; font-size: 13px; }
.ip-row { display: flex; gap: 10px; justify-content: flex-end; }
.sheet .ip-row .btn { flex: 1; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .ip-fade > * { transition: none; } }

/* ds-v193: status markers (chip in the card info, like Gifted; Sold a bit stronger) */
.mk-chip { margin-left: 4px; }
.wip-info .mk-chip:first-child, .stash-card .mk-chip { margin-left: 0; }
.mk-chip.mk-sold { background: rgba(var(--acc-rgb), .28); border-color: rgba(var(--acc-rgb), .75); color: var(--text); font-weight: 700; }
.mk-on { margin-left: auto; color: var(--accent); font-weight: 700; }
html[data-theme="light"] .mk-chip.mk-sold { background: rgba(var(--acc-rgb), .18); }

/* ds-v195: Rainbow accent is back. The logo is never touched (same font, size and position as every accent). */
html[data-accent="rainbow"] {
  --accent: #ff4fd8; --accent-fill: #b45cf0; --accent-2: #22d3ee; --accent-pale: #ffe6f7; --accent-deep: #1a1028;
  --acc-rgb: 255, 79, 216; --acc2-rgb: 34, 211, 238;
  --accent-grad: linear-gradient(135deg, #ff3b4f, #ff8a1f, #ffd60a, #39ff88, #22d3ee, #b45cf0, #ff4fd8);
}
/* ds-v205: seasonal themes (Halloween) fully override the rainbow; body.halloween also resets the accent variables. */
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .card { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--accent-grad) border-box; box-shadow: 0 0 14px rgba(180, 92, 240, .25), 0 0 22px rgba(34, 211, 238, .14); }
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .btn:not(.ghost):not(.danger-btn) { background: var(--accent-grad); color: #0b0b10; }
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .pbar span { background: var(--accent-grad); }
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .bottom a.plus { background: var(--accent-grad); color: #0b0b10; }
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .seg button[aria-selected="true"], html[data-accent="rainbow"] body:not(.halloween):not(.hol) .seg.tabs a[aria-selected="true"] { background: var(--accent-grad); color: #0b0b10; }
html[data-theme="light"][data-accent="rainbow"] body:not(.halloween):not(.hol) .card { background: linear-gradient(var(--card), var(--card)) padding-box, var(--accent-grad) border-box; }
/* tiny faith nod in the Settings footer */
.made-with { opacity: .9; }
.made-with .mw-heart { color: var(--accent); }
.made-with .mw-cross { font-size: 11px; opacity: .8; }

/* ds-v196: tap the gem count to see who gemmed */
.act.gem .n { padding: 0; margin: 0; }   /* count is its own tap target (who gemmed); the heart likes */
.act.gem .n, .cf-act.gem .n, .comment .cgem .n {
  position: relative;
  z-index: 4; /* above label.hap-ov (z-index 3); on iPhone the overlay would otherwise steal the count tap */
  pointer-events: auto;
}
.gl-sheet h2 { display: flex; align-items: center; gap: 8px; }
.gl-sheet h2 svg { width: 22px; height: 22px; } .gl-sheet h2 .gem { display: inline-flex; }
.gl-list { max-height: 55vh; overflow-y: auto; }
.gl-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; color: inherit; text-decoration: none; border-radius: 12px; }
.gl-row > span { display: flex; flex-direction: column; line-height: 1.25; }
.gl-row:active { background: rgba(var(--acc-rgb), .1); }
.gl-gem .gem-body { fill: rgba(var(--acc-rgb), .55); stroke: var(--accent-2); } .gl-gem .gem-facets { stroke: var(--accent-2); }

/* ds-v198: verification badge */
.vbadge { display: inline-flex; vertical-align: -2px; margin-left: 4px; flex: none; }
h1 .vbadge svg, h2 .vbadge svg { width: 20px; height: 20px; }

/* ds-v199: desktop step 2 (>=1024px): projects grid, profiles, Messages split view, desktop-sized pop-ups and sheets */
@media (min-width: 1024px) {
  .wip-grid, .board { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
  .grid3 { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .profile-head { padding: 22px 10px 10px; }
  .profile-head .avatar.lg, .profile-head > .avatar { width: 112px; height: 112px; }
  .profile-head.has-nook { --bk-av: 112px; --bk-pt: 22px; }
  .profile-head h2 { font-size: calc(26px * var(--ts, 1)); }
  .profile-head .bio { max-width: 560px; }
  .profile-head .stats, .profile-head.me .stats { max-width: 520px; margin-left: auto; margin-right: auto; }
  .dm-split { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 18px; align-items: start; }
  .dm-side { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
  .dm-side .seg.tabs { font-size: 13px; }
  .dm-side .new-msg span { display: none; }
  .dm-side-list .conv-row .avatar { width: 40px; height: 40px; }
  .conv-row.active { border-color: rgba(var(--acc-rgb), .7); background: rgba(var(--acc-rgb), .1); }
  .dm-main { min-width: 0; }
  .dm-main .thread-head .back { display: none; }
  .dm-pick { position: sticky; top: 70px; min-height: 60vh; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 18px; }
  .dm-split #thFoot { bottom: 12px; }
  /* sheets become centered dialogs; pop-ups get a little wider */
  .sheet-bg { place-items: center; align-content: center; padding: 24px; }
  .sheet { max-width: 560px; border-radius: 22px; max-height: 80vh; padding-bottom: 18px; }
  .sheet .sheet-grip { display: none; }
  .modal { max-width: 520px; }
}

/* ds-v202: faith nod at the very end of the Glo Board */
.feed-made { text-align: center; margin: 14px 0 6px; font-size: calc(11.5px * var(--ts, 1)); color: var(--muted); opacity: .75; }
.feed-made .mw-heart { color: var(--accent); }

/* ds-v203: owner-only "Hidden" chip on stash kits (text area, never over the photo) */
.hid-chip { color: var(--muted); border-color: var(--line); }
.hid-chip svg { width: 12px; height: 12px; vertical-align: -1px; }

.pub-chip { color: var(--accent-2); border-color: rgba(var(--acc2-rgb), .45); }
.pub-chip svg { width: 12px; height: 12px; vertical-align: -1px; }

/* ds-v206: your own WIP cards on event/group boards */
.board-card.mine { border-color: rgba(var(--acc-rgb), .9); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .55), 0 0 16px rgba(var(--acc-rgb), .45); }
.you-tag { display: inline-block; align-self: flex-start; width: max-content; margin: 2px 0 0; padding: 1px 7px; border-radius: 999px; font-size: calc(10.5px * var(--ts, 1)); font-weight: 700; color: var(--accent); background: rgba(var(--acc-rgb), .14); border: 1px solid rgba(var(--acc-rgb), .45); vertical-align: middle; }
html[data-theme="light"] .board-card.mine { box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .6), 0 2px 12px rgba(var(--acc-rgb), .3); }

/* ds-v207: shared kit suggestions, inline under the kit Name field */
.kn-field { position: relative; }
.kit-sug { margin-top: 6px; background: rgba(var(--acc-rgb), .06); border: 1px solid rgba(var(--acc-rgb), .4); border-radius: 14px; padding: 6px; }   /* in the form flow: never covers the photo below */
.kit-sug[hidden] { display: none; }
.ks-head { font-size: calc(11.5px * var(--ts, 1)); color: var(--muted); padding: 4px 8px 6px; font-weight: 600; }
.ks-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.ks-row:hover, .ks-row:focus-visible { background: rgba(var(--acc-rgb), .1); }
.ks-img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: #0b0b0f; }
.ks-none { display: grid; place-items: center; } .ks-none svg { width: 22px; height: 22px; }
.ks-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ks-txt b { font-size: calc(14px * var(--ts, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-txt small { color: var(--muted); font-size: calc(12px * var(--ts, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-use { font-size: calc(12px * var(--ts, 1)); font-weight: 700; color: var(--accent); flex: none; }
html[data-theme="light"] .ks-img { background: #f1ecf7; }
/* ds-v208: kit details in suggestions wrap to two lines instead of cutting off */
.ks-txt small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ds-v209: kit details page */
.kit-photo { display: flex; justify-content: center; border-radius: 16px; overflow: hidden; }
.kit-photo img { max-width: 100%; height: auto; display: block; border-radius: 16px; }
.kit-photo.small { padding: 14px 0; background: rgba(var(--acc-rgb), .06); }
.kd-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0 4px; }
.kd-row { display: contents; }
.kd-row dt { color: var(--muted); font-size: calc(13.5px * var(--ts, 1)); }
.kd-row dd { margin: 0; font-size: calc(14.5px * var(--ts, 1)); font-weight: 600; overflow-wrap: anywhere; }
.kd-private { margin-top: 16px; }
.kit-page .wip-actions .btn svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.kit-photo img { max-height: 70vh; width: auto; object-fit: contain; }

/* ds-v210: in-bar delete confirm */
.sel-confirm { padding: 4px 2px; } .sel-confirm .ip-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.menu.up { top: auto !important; bottom: calc(100% + 4px) !important; }

/* ds-v213: right-sidebar My WIPs box is one big link to Projects */
.rc-card.rc-click { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rc-card.rc-click:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 22%, transparent); }
.rc-card.rc-click:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rc-card.rc-click .rc-wip:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ds-v215: ⋯ menus are fixed popovers on <body>, placed by placeMenu() */
.menu.pop { position: fixed !important; right: auto !important; bottom: auto !important; z-index: 1100; margin: 0; overscroll-behavior: contain; color: var(--text); font-weight: 400; }
/* ds-v215: every ⋯ gets a 44x44 tap target (same look), sits above the star/photo, and taps instantly on iOS */
.more { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.more::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(44px, 100%); height: max(44px, 100%); transform: translate(-50%, -50%); border-radius: 50%; }
.stash-card .stash-more, .wip-card .wip-card-more { z-index: 4; }
/* ds-v216: events calendar */
.cal-switch { margin: 10px 0 12px; }
.cal-switch button { flex: 1; }
.cal { padding: 12px 10px 10px; }
.cal-body.loading { opacity: .6; transition: opacity .2s; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 8px; }
.cal-head b { font-size: calc(17px * var(--ts, 1)); }
.cal-arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(var(--acc-rgb),.35); color: var(--accent); font-size: 20px; background: transparent; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cal-dow { font-size: calc(12px * var(--ts, 1)); font-weight: 700; color: var(--muted); padding: 4px 0 6px; letter-spacing: .04em; }
.cal-day { position: relative; height: 46px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 6px 0 0; font: inherit; font-size: calc(15px * var(--ts, 1)); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); background: transparent; border: 0; cursor: pointer; min-width: 0; }
.cal-day.out { opacity: .3; }
.cal-day .n { width: 28px; height: 28px; line-height: 28px; border-radius: 50%; flex: none; }
.cal-day.today .n { box-shadow: 0 0 0 2px var(--accent), 0 0 10px rgba(var(--acc-rgb),.6); }
.cal-day.sel { background: rgba(var(--acc-rgb),.18); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb),.7); }
.cal-day.sel .n { background: var(--accent); color: #fff; }
.cal-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-dots { display: flex; gap: 3px; margin-top: 3px; height: 6px; }
.cal-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--accent); box-shadow: 0 0 6px rgba(var(--acc-rgb),.8); }
.cal-dot.going { background: var(--accent); box-shadow: 0 0 8px rgba(var(--acc-rgb),1); }
.cal-legend { display: flex; gap: 16px; justify-content: center; font-size: calc(12.5px * var(--ts, 1)); color: var(--muted); margin-top: 8px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-dayhead { margin: 16px 2px 8px; }
.cal-none { margin: 4px 2px 16px; }
.cal.big .cal-day { height: auto; min-height: 104px; align-items: stretch; padding: 6px; text-align: left; border: 1px solid rgba(var(--acc-rgb),.14); }
.cal.big .cal-day .n { width: 26px; height: 26px; line-height: 26px; text-align: center; font-size: calc(14px * var(--ts, 1)); }
.cal.big .cal-ev { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: calc(12px * var(--ts, 1)); font-weight: 600; line-height: 1.25; padding: 3px 6px; border-radius: 7px; border: 1px solid rgba(var(--acc-rgb),.6); color: var(--text); }
.cal.big .cal-ev small { display: block; font-size: calc(11px * var(--ts, 1)); font-weight: 500; opacity: .85; }
.cal.big .cal-ev.going { background: rgba(var(--acc-rgb),.32); border-color: var(--accent); }
.cal.big .cal-more { font-size: calc(11.5px * var(--ts, 1)); color: var(--muted); margin-top: 3px; }
.cal.mini { padding: 0; }
.cal.mini .cal-head { justify-content: center; margin-bottom: 4px; }
.cal.mini .cal-head b { font-size: calc(14px * var(--ts, 1)); }
.cal.mini .cal-day { height: 34px; padding-top: 3px; font-size: calc(13px * var(--ts, 1)); }
.cal.mini .cal-day .n { width: 24px; height: 24px; line-height: 24px; }
.cal.mini .cal-dot { width: 5px; height: 5px; }
.rc-cal { margin-top: 14px; }
.rc-next { display: block; font-size: calc(13px * var(--ts, 1)); margin-top: 8px; color: var(--muted); }
.rc-next b { color: var(--text); }
.ev-host { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: calc(13px * var(--ts, 1)); color: var(--muted); margin-top: 4px; }
.ev-host b { color: var(--text); }
.ev-going { font-size: calc(12px * var(--ts, 1)); font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(var(--acc-rgb),.25); color: var(--text); border: 1px solid rgba(var(--acc-rgb),.7); }
/* ds-v217: week rows with multi-day bars + expanding day panel */
.cal-dows, .cal-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cal-week { position: relative; margin-top: 2px; }
.cal-week .cal-day { height: calc(46px + var(--lanes, 0) * 7px); }
.cal-bars { position: absolute; inset: 0; pointer-events: none; }
.cal-bar { --pl: 0px; --pr: 0px; position: absolute; left: calc(var(--c0) * 100% / 7 + var(--pl)); width: calc(var(--span) * 100% / 7 - var(--pl) - var(--pr)); top: calc(37px + var(--lane) * 7px); height: 5px;
  border-radius: 0; background: color-mix(in srgb, var(--ec) 30%, transparent); box-shadow: inset 0 0 0 1.5px var(--ec), 0 0 6px color-mix(in srgb, var(--ec) 60%, transparent); }
.cal-bar.going { background: var(--ec); }
.cal-bar.head { --pl: 4px; border-top-left-radius: 99px; border-bottom-left-radius: 99px; }
.cal-bar.tail { --pr: 4px; border-top-right-radius: 99px; border-bottom-right-radius: 99px; }
.cal-dot { border-color: var(--ec, var(--accent)); box-shadow: 0 0 6px color-mix(in srgb, var(--ec, var(--accent)) 80%, transparent); }
.cal-dot.going { background: var(--ec, var(--accent)); }
.cal-bar-key { display: inline-block; width: 22px; height: 5px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 6px rgba(var(--acc-rgb),.7); }
.cal-day.open { background: rgba(var(--acc-rgb),.28); }
.cal-x { overflow: hidden; transition: height .22s ease, opacity .22s ease; margin: 4px 0 6px; padding: 10px; border-radius: 14px; background: rgba(var(--acc-rgb),.08); border: 1px solid rgba(var(--acc-rgb),.45); }
.cal-x.pop { position: absolute; z-index: 40; width: min(380px, calc(100% - 16px)); margin: 0; background: var(--card, #17151d); box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 14px rgba(var(--acc-rgb),.3); max-height: 70vh; overflow-y: auto; transition: none; }
.cal-xhead { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; font-size: calc(14.5px * var(--ts, 1)); }
.cal-xclose { width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
.cal-x .cal-one { margin: 0; }
.cal-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; color: var(--text); text-decoration: none; }
.cal-row + .cal-row { border-top: 1px solid rgba(var(--acc-rgb),.18); }
.cal-row:hover { background: rgba(var(--acc-rgb),.1); }
.cal-sw { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ec); }
.cal-sw.going { background: var(--ec); }
.cal-rtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cal-rtxt b { font-size: calc(14.5px * var(--ts, 1)); }
.cal-rtxt small { font-size: calc(12.5px * var(--ts, 1)); color: var(--muted); }
.cal-open { font-size: calc(13px * var(--ts, 1)); font-weight: 700; color: var(--accent); flex: none; }
.cal.big .cal-week .cal-day { height: auto; min-height: calc(40px + max(var(--lanes, 0), 2) * 22px + 16px); }
.cal.big .cal-bar { top: calc(36px + var(--lane) * 22px); height: 19px; font-size: calc(11.5px * var(--ts, 1)); font-weight: 600; line-height: 19px; padding: 0 6px; box-sizing: border-box;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.cal.big .cal-bar small { font-weight: 500; opacity: .85; }
.cal.big .cal-bar.head { border-top-left-radius: 7px; border-bottom-left-radius: 7px; }
.cal.big .cal-bar.tail { border-top-right-radius: 7px; border-bottom-right-radius: 7px; }
.cal.big .cal-bar.going { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.cal.big .cal-more { position: absolute; bottom: 4px; left: 6px; }
.cal.big .cal-day { position: relative; }
.cal.big { position: relative; }
.cal.mini .cal-day.covered .n { background: rgba(var(--acc-rgb),.25); }
:where(html[data-theme="light"]) .cal-x.pop { background: #fff; }

.cal.big .cal-chips { display: flex; flex-direction: column; margin-top: calc(var(--lanes, 0) * 22px + 2px); min-width: 0; }
.cal.big .cal-ev { border-color: var(--ec); }
.cal.big .cal-ev.going { background: color-mix(in srgb, var(--ec) 38%, transparent); }
.cal.big .cal-chips .cal-more { position: static; }
.cal.big .cal-week .cal-day { min-height: calc(104px + var(--lanes, 0) * 22px); }

/* ds-v218: sparkle days + finished kits on the calendar */
.calx-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 2px 10px; justify-content: center; }
.calx-t { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(var(--acc-rgb),.5); font-size: calc(13px * var(--ts, 1)); font-weight: 600; color: var(--text); background: rgba(var(--acc-rgb),.14); }
.calx-t.off { opacity: .55; background: transparent; }
.calx-t.off::after { content: 'off'; font-size: 11px; font-weight: 700; color: var(--muted); }
.calx-gem { width: 13px; height: 13px; flex: none; }
.calx-thkey { display: inline-block; width: auto; height: auto; border: 0; font-style: normal; font-weight: 900; color: #ffd54f; text-shadow: 0 0 5px rgba(255,213,79,.85); }
.calx-thkey::before { content: '✔'; }
.calx-streak { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: calc(13.5px * var(--ts, 1)); font-weight: 700; margin: -2px 0 8px; color: var(--text); }
.calx-streak b { color: var(--accent); }
.cal-day .calx-mk { position: absolute; top: 3px; right: 3px; width: 11px; height: 11px; display: grid; filter: drop-shadow(0 0 3px rgba(64,196,255,.9)); }
.cal-day .calx-mk svg { width: 100%; height: 100%; }
.cal-day { position: relative; }
.cal-day .calx-th { display: block; width: 22px; height: 22px; border-radius: 7px; object-fit: cover; margin-top: 2px; border: 1.5px solid #ffd54f; box-shadow: 0 0 6px rgba(255,213,79,.6); flex: none; }
.cal.big .cal-day .calx-th { width: 44px; height: 44px; border-radius: 10px; margin: 4px 0 0; }
.cal.big .cal-day .calx-mk { width: 14px; height: 14px; top: 8px; right: 8px; }
.cal.mini .calx-mk, .cal.mini .calx-th { display: none; }
.calx-sec { display: flex; align-items: center; gap: 6px; font-size: calc(12px * var(--ts, 1)); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 12px 2px 6px; }
.calx-wip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); text-decoration: none; }
.calx-wip:hover { background: rgba(var(--acc-rgb),.1); }
.calx-wip img, .calx-nocov { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex: none; background: rgba(var(--acc-rgb),.2); }
.calx-wip span { flex: 1; min-width: 0; font-size: calc(14.5px * var(--ts, 1)); font-weight: 600; }
.calx-wip b { color: var(--accent); font-size: calc(15px * var(--ts, 1)); font-variant-numeric: tabular-nums; }
.calx-fin { display: flex; gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid rgba(255,213,79,.55); background: rgba(255,213,79,.06); color: var(--text); text-decoration: none; margin-bottom: 6px; }
.calx-fin img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; }
.calx-fin div { display: flex; flex-direction: column; gap: 3px; font-size: calc(13px * var(--ts, 1)); color: var(--muted); }
.calx-fin b { font-size: calc(15.5px * var(--ts, 1)); color: var(--text); }
.calx-fin .chip { align-self: flex-start; font-size: calc(12px * var(--ts, 1)); font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(255,213,79,.2); border: 1px solid #ffd54f; color: var(--text); }
.calx-wip .calx-nocov { flex: none; width: 40px; }

/* ds-v220: hover preview popover (fixed, on body) */
.cal-x.cal-hover { position: fixed; z-index: 1100; width: 340px; max-height: min(70vh, 520px); overflow-y: auto; margin: 0; padding: 10px; border-radius: 14px; background: var(--card, #17151d);
  border: 1px solid rgba(var(--acc-rgb),.55); box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 14px rgba(var(--acc-rgb),.3); animation: calHov .12s ease-out; }
@keyframes calHov { from { opacity: 0; transform: translateY(-3px); } }
:where(html[data-theme="light"]) .cal-x.cal-hover { background: #fff; }
.cal-hover .ev-card { max-width: 100%; }
/* ds-v221: events without a cover photo get a short banner instead of a big empty 16:9 box */
.ev-card .ev-cover:has(> .ev-nocover) { aspect-ratio: auto; height: 96px; }
.ev-card .ev-cover > .ev-nocover svg { width: 34px; height: 34px; opacity: .9; }

/* ds-v222: single-day events are short bars too (phone + mini); legend keys are bars */
.cal-bar-key { display: inline-block; width: 18px; height: 5px; border-radius: 99px; background: rgba(var(--acc-rgb),.3); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 6px rgba(var(--acc-rgb),.6); }
.cal-bar-key.going { background: var(--accent); }
.cal-plus { position: absolute; right: 2px; bottom: 1px; font-size: 10px; font-weight: 700; color: var(--muted); line-height: 1; }
.cal.mini .cal-bar { top: calc(28px + var(--lane) * 5px); height: 3px; }
.cal.mini .cal-week .cal-day { height: calc(34px + var(--lanes, 0) * 5px); }
.cal.mini .cal-plus { font-size: 9px; }
.cal.big .cal-ev { border-color: var(--ec, var(--accent)); }
.cal.big .cal-ev.going { background: color-mix(in srgb, var(--ec, var(--accent)) 38%, transparent); border-color: var(--ec, var(--accent)); }
.cal:not(.big) .cal-day .calx-th { margin-top: calc(var(--lanes, 0) * 7px + 5px); }
.host-badge.my-cal { text-decoration: none; }

/* ds-v224: personal calendar: Hosting = filled + bright white ring, Going = filled */
.cal-bar.host, .cal-bar-key.host { box-shadow: inset 0 0 0 1.5px #fff, 0 0 8px color-mix(in srgb, var(--ec, var(--accent)) 90%, transparent); }
.cal.big .cal-ev.host { box-shadow: inset 0 0 0 1px #fff; }
.cal.big .cal-ev.host small::before { content: '★ '; }

/* ds-v225: My calendar page */
.cal-search { position: relative; }
.cal-sres { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; background: var(--card, #17151d); border: 1px solid rgba(var(--acc-rgb),.5); border-radius: 14px; padding: 6px; box-shadow: 0 10px 28px rgba(0,0,0,.45); max-height: 60vh; overflow-y: auto; }
:where(html[data-theme="light"]) .cal-sres { background: #fff; }
.cal-sr { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 9px 10px; border-radius: 10px; text-align: left; color: var(--text); }
.cal-sr:hover { background: rgba(var(--acc-rgb),.12); }
.cal-sr b { font-size: calc(14.5px * var(--ts, 1)); }
.cal-sr small { font-size: calc(12.5px * var(--ts, 1)); color: var(--muted); }
.cal-ics { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 8px 8px; }
.cal-ics svg { width: 15px; height: 15px; }
.cal-one + .cal-ics { margin-left: 0; }
.rc-cal-link { color: inherit; text-decoration: none; }
.rc-cal-link:hover { color: var(--accent); }
/* ds-v226: calendar privacy line + month facts */
.cal-priv{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px;margin:2px 0 10px;font-size:13px;color:var(--muted)}
.cal-priv .check{display:inline-flex;align-items:center;gap:6px;color:var(--text);font-size:14px;cursor:pointer}
.cal-facts{margin-top:12px;padding:14px}
.cf-title{margin:0 0 10px;font-size:16px}.cf-title small{color:var(--muted);font-weight:500;font-size:13px;margin-left:4px}
.cf-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.cf{background:color-mix(in srgb,var(--accent) 8%,transparent);border:1px solid color-mix(in srgb,var(--accent) 22%,transparent);border-radius:12px;padding:9px 8px;text-align:center;min-width:0}
.cf b{display:block;font-size:17px;color:var(--text)}.cf span{display:block;font-size:12px;color:var(--muted);line-height:1.25}
.cf-top{margin:10px 0 0;font-size:14px;color:var(--muted)}.cf-top a{color:var(--accent);font-weight:600}
/* ds-v227 */
.cal-ics.done{color:var(--muted);border-color:transparent;opacity:.85;font-weight:500}
/* ds-v227: compact mini-calendar hover preview (no big cover photos) */
.cal-x.cal-hover.compact{width:280px;max-width:280px;padding:10px}
.cal-hover.compact .ev-cover{display:none}
.cal-hover.compact .ev-card{display:flex;gap:8px;align-items:center;padding:8px}
.cal-hover.compact img{max-width:40px;max-height:40px;border-radius:8px;object-fit:cover}
.cal-hover.compact .ev-card p,.cal-hover.compact .cal-ics{display:none}
/* ds-v228: personal calendar entries */
.cal-bar.entry{background:color-mix(in srgb,var(--ec) 22%,transparent)!important;border:1.5px dashed var(--ec)!important;box-shadow:none!important}
.cal-ev.entry{border-style:dashed!important;background:color-mix(in srgb,var(--ec) 14%,transparent)!important}
.cal-bar-key.entry{background:color-mix(in srgb,var(--accent) 22%,transparent)!important;border:1.5px dashed var(--accent)!important;box-shadow:none!important}
.cal-sw.entry{background:transparent!important;border:2px dashed var(--ec)!important}
.cal-xhead{gap:8px}.cal-xhead b{flex:1}
.cal-add{white-space:nowrap;padding:5px 10px;font-size:13px}
.ent-row{position:relative;align-items:center}.ent-row .cal-rtxt{flex:1;min-width:0}
.ent-note{white-space:pre-wrap;word-break:break-word;color:var(--muted)}
.ent-more{position:relative;flex:none}
.ent-form{display:grid;gap:8px;margin:6px 0 10px;padding:10px;border-radius:12px;background:color-mix(in srgb,var(--accent) 7%,transparent);border:1px solid color-mix(in srgb,var(--accent) 25%,transparent)}
.ent-form input,.ent-form textarea{width:100%;box-sizing:border-box;font-size:16px}
.ent-2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ent-2 label{display:grid;gap:3px;font-size:12px;color:var(--muted)}
.ent-colors{display:flex;gap:8px}.ent-colors label{cursor:pointer}.ent-colors input{position:absolute;opacity:0;pointer-events:none}
.ent-colors i{display:block;width:24px;height:24px;border-radius:50%;background:var(--ec);border:2px solid transparent;box-sizing:border-box}
.ent-colors input:checked+i{border-color:var(--text);box-shadow:0 0 0 2px var(--ec)}
.ent-colors input:focus-visible+i{outline:2px solid var(--text);outline-offset:2px}
.ent-act{display:flex;justify-content:flex-end;gap:8px}
.cal-hover .cal-add,.cal-hover .ent-more,.cal-hover .ent-form{display:none}
/* ds-v228: saved (bookmarked) events */
.cal-bar.saved,.cal-bar-key.saved{background:transparent!important;border:1.5px dotted var(--ec,var(--accent))!important;box-shadow:none!important}
.cal-ev.saved{border-style:dotted!important;background:transparent!important}
.ev-oncal{color:var(--muted)}
.ev-dt-hint{margin:-6px 0 12px;font-size:12px}
/* ds-v230b: round ＋ add button in the day header; export button secondary */
.cal-add{position:relative;flex:none;width:32px;height:32px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;font-size:20px;line-height:1;font-weight:700;color:#fff;background:var(--accent-grad,var(--accent));box-shadow:0 0 12px color-mix(in srgb,var(--accent) 60%,transparent);cursor:pointer;touch-action:manipulation}
.cal-add::after{content:"";position:absolute;inset:-6px}
.cal-add:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.cal-xhead{align-items:center}
.cal-ics{font-size:13px;padding:5px 10px;border-color:color-mix(in srgb,var(--muted) 40%,transparent)!important;color:var(--muted)!important;background:transparent!important}
/* ds-v232: Events header: Create + ⋯ (Past events) */
.ev-head-act{display:flex;align-items:center;gap:6px}.ev-list-more{position:relative}
.ev-past-h{font-size:18px;margin:14px 0 8px}.ev-back-up{display:inline-block;margin:4px 0 6px}
/* ds-v233: Kitted up status (teal) */
.mk-chip.mk-kitted_up{background:rgba(38,198,218,.2);border-color:rgba(38,198,218,.7);color:var(--text);font-weight:700}
html[data-theme="light"] .mk-chip.mk-kitted_up{background:rgba(0,151,167,.12);border-color:rgba(0,131,143,.6);color:#00616b}
/* ds-v235: repeating notes */
.ent-rep{color:var(--accent);font-weight:700;font-size:.9em}
.ent-form select{width:100%;font-size:16px}
.ent-bday{align-self:end;white-space:nowrap}
.ent-hint{margin:-2px 0 0;font-size:12px}
/* ds-v236: Repeat on its own row */
.ent-rep-row label{display:grid;gap:3px;font-size:12px;color:var(--muted)}
.ent-rep-row select{width:100%;font-size:16px}
/* ds-v240 */
.ev-oncal{display:inline-flex;align-items:center;font-size:13px;color:var(--muted);white-space:nowrap;pointer-events:none}
/* ds-v241: board WIP picker */
.pk-sec{margin:10px 0 4px}.pk-sec:first-child{margin-top:0}
.pk-search{margin:6px 0 8px}
.pk-nocov{display:grid;place-items:center;background:#0b0b0f}.pk-nocov svg{width:20px;height:20px}
.pk-row[hidden]{display:none}
/* ds-v242: in-place comment edit + author-only 'edited' */
.cedited{color:var(--muted);font-size:.92em;opacity:.8}
.cedit{display:grid;gap:6px;margin:4px 0 2px}
.cedit textarea{width:100%;box-sizing:border-box;font-size:16px;line-height:1.35;resize:none;min-height:38px;max-height:200px;padding:8px 10px;border-radius:12px}
.cedit-act{display:flex;justify-content:flex-end;gap:6px}
/* ds-v245: finished photos gallery */
.fin-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px}
.fin-gal{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:6px 0 14px}
@media (min-width:900px){.fin-gal{grid-template-columns:repeat(4,1fr)}}
.fin-ph{position:relative;aspect-ratio:1;border-radius:10px;overflow:visible}
.fin-open{display:block;width:100%;height:100%;padding:0;border:0;border-radius:10px;overflow:hidden;background:#0b0b0f;cursor:zoom-in}
.fin-open img{width:100%;height:100%;object-fit:cover;display:block}
.fin-more{position:absolute;top:4px;right:4px;background:rgba(0,0,0,.55);border-radius:999px}
.fin-empty{margin:4px 0 14px}
/* ds-v247: attach a project to a post */
.photo-pick-row .np-proj{margin:0}
.photo-pick-row.full .np-proj:not([hidden]){display:flex}
.photo-pick-row.full .np-polltile:not([hidden]){display:flex}
.np-proj[hidden]{display:none!important}
.np-att{position:relative;margin:0 0 8px}
.np-att-x{position:absolute;top:6px;right:6px;width:32px;height:32px;border-radius:999px;border:0;background:rgba(0,0,0,.6);color:#fff;font-size:15px;cursor:pointer}
.np-att-note{margin:-2px 0 10px;font-size:calc(13px * var(--ts, 1))}
.proj-card{display:flex;gap:12px;align-items:center;padding:10px;margin:8px 0;border:1.5px solid var(--accent-soft);border-radius:14px;background:rgba(var(--acc-rgb),.06);color:inherit;text-decoration:none}
a.proj-card:hover{border-color:var(--accent)}
.proj-card .wip-thumb{width:72px;height:72px;flex:none;border-radius:10px;object-fit:cover;display:flex;align-items:center;justify-content:center}
.proj-card .pc-txt{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;padding-right:30px}
.proj-card .pc-txt b{font-size:calc(15px * var(--ts, 1));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.proj-card .pc-chips{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.proj-card .pc-facts{font-size:calc(13px * var(--ts, 1))}
.proj-card .pc-bar{display:block;height:5px;border-radius:9px;background:rgba(255,255,255,.12);overflow:hidden}
.proj-card .pc-bar i{display:block;height:100%;background:var(--accent)}
.proj-card.min{opacity:.8}
/* ds-v248: action row like a classic feed: gem / comment / share on the left, latest gemmers on the right */
article.post > .actions { justify-content: space-between; gap: 10px; }
.act-left { display: flex; align-items: center; gap: 20px; }
.gemmers { display: flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; padding: 0 2px 0 8px; border: 0; background: none; cursor: pointer; }
.gemmers[hidden] { display: none; }
.gemmers img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; position: relative; box-shadow: 0 0 0 2px var(--accent), 0 0 6px rgba(var(--acc-rgb),.45); background: var(--card, #1a1a22); }
.gemmers img + img { margin-left: -7px; }
.gemmers:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 999px; }
/* ds-v249: gemmer fallback initial */
.gemmers .gm-ini { width: 24px; height: 24px; border-radius: 50%; position: relative; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 6px rgba(var(--acc-rgb),.45); }
.gemmers > * + * { margin-left: -7px; }
/* ds-v251: who-gemmed list scrolls inside the sheet */
.gl-list { max-height: min(60vh, 520px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* ds-v255: one-time "take the tour" hint */
.tour-hint{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--tabbar-h, 72px) + env(safe-area-inset-bottom) + 14px);z-index:70;display:flex;align-items:center;gap:10px;padding:8px 8px 8px 16px;border-radius:999px;background:#17121f;border:1.5px solid rgba(var(--acc-rgb),.7);box-shadow:0 0 18px rgba(var(--acc-rgb),.35);font-weight:700;font-size:calc(14px * var(--ts, 1));white-space:nowrap;color:#f2eef8}
.tour-hint-x{background:none;border:0;color:#b9aecb;width:36px;height:36px;font-size:15px;cursor:pointer}
@media (min-width:900px){.tour-hint{bottom:24px}}
html[data-theme="light"] .tour-hint{background:#fff;color:#2a1f35}
/* ds-v255: slim one-time tour bar at the top of the Glo Board */
.tour-bar{display:flex;align-items:center;gap:4px;margin:0 0 10px;padding:2px 2px 2px 4px;border-radius:14px;border:1.5px solid rgba(var(--acc-rgb),.55);background:rgba(var(--acc-rgb),.1);box-shadow:0 0 14px rgba(var(--acc-rgb),.2)}
.tour-bar-go{flex:1;min-height:44px;text-align:left;padding:0 10px;background:none;border:0;color:inherit;font-weight:800;font-size:calc(15px * var(--ts, 1));cursor:pointer}
.tour-bar-go span{font-weight:600;opacity:.75}
.tour-bar-x{width:44px;height:44px;background:none;border:0;color:inherit;opacity:.7;font-size:15px;cursor:pointer}
/* ds-v258: outside group/event chip */
.ext-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; text-decoration: none; }
.ext-chip .ext-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
a.ext-chip:hover { border-color: var(--accent); }
.as-list .wip-info > .ext-chip { display: inline-flex; margin: 3px 0 0 4px; padding: 1px 7px; font-size: calc(11px * var(--ts, 1)); line-height: 1.5; max-width: 60%; }
/* ds-v263: screenshot import */
.imp-two { display: flex; gap: 10px; flex-wrap: wrap; }
.shot-bar { height: 8px; border-radius: 9px; background: rgba(255,255,255,.1); overflow: hidden; margin: 6px 0 10px; }
.shot-bar i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: width .3s; }
.shot-row { display: flex; align-items: flex-start; gap: 8px; }
.shot-row.off { opacity: .55; }
.shot-row .imp-thumb { float: none; flex: none; width: 44px; height: 44px; margin: 0; }
.shot-chk { flex: none; display: grid; place-items: center; min-width: 32px; min-height: 44px; margin: -6px 0 -6px -4px; }
.shot-chk input { width: 20px; height: 20px; accent-color: var(--accent); }
.shot-main { flex: 1; min-width: 0; }
.shot-row .imp-chip { cursor: pointer; background: none; font: inherit; font-size: calc(11px * var(--ts, 1)); min-height: 28px; }
.shot-row small { white-space: normal !important; }
.shot-comm { color: var(--accent); }
.shot-edit { background: none; border: 0; color: var(--accent); font: inherit; font-size: calc(13px * var(--ts, 1)); padding: 2px 0 0; min-height: 30px; cursor: pointer; }
.shot-form { display: grid; gap: 6px; }
.shot-form label { display: grid; gap: 2px; font-size: calc(12px * var(--ts, 1)); }
.shot-form input { font-size: 16px; padding: 7px 9px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.25); color: inherit; }
.shot-form-b { display: flex; gap: 8px; justify-content: flex-end; }
.shot-note { color: #f5c46b; }
:where(html[data-theme="light"]) .shot-bar { background: rgba(60,30,90,.12); }
:where(html[data-theme="light"]) .shot-form input { background: #fff; border-color: #ddd0ea; }
/* ds-v263: More details found */
.more-note { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; margin: 10px 0; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(var(--acc-rgb),.5); background: rgba(var(--acc-rgb),.08); font-size: calc(14px * var(--ts, 1)); }
.more-note .mn-t { flex: 1 1 auto; min-width: 0; }
.more-note .mn-t small { display: block; opacity: .8; font-size: calc(12.5px * var(--ts, 1)); margin-top: 2px; }
.more-note .mn-x { background: none; border: 0; color: inherit; opacity: .7; font-size: 18px; min-width: 36px; min-height: 36px; cursor: pointer; }
.shot-edit { display: block; min-height: 0; height: 30px; padding: 4px 0 0; }
/* ds-v266: draft restored line */
.draft-line { margin: -4px 0 12px; font-size: calc(13px * var(--ts, 1)); color: var(--accent); }
.draft-line .linkish { background: none; border: 0; padding: 4px 2px; min-height: 32px; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
/* ds-v267: kit drafts at the top of My Stash */
.wip-card.draft-card { border: 2px dashed rgba(var(--acc-rgb),.75); box-shadow: none; cursor: pointer; }
.draft-card .wip-nocover { opacity: .45; }
.mk-chip.draft-chip { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0; padding: 2px 8px; border-radius: 999px; font-size: calc(12px * var(--ts, 1)); font-weight: 600; color: var(--accent); border: 1px dashed rgba(var(--acc-rgb),.8); background: transparent; width: fit-content; }
.mk-chip.draft-chip.unsaved { font-weight: 500; }
.as-list .wip-card.draft-card { border-width: 2px; }
.draft-card .wip-cover { position: relative; }
.draft-card .draft-more { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.55); border-radius: 999px; z-index: 4; }
.wip-grid.as-list > .draft-card { padding-right: 52px; position: relative; }
.as-list .draft-card .draft-more { top: 50%; right: 8px; transform: translateY(-50%); background: transparent; }
.selecting .draft-card { display: none; }
/* ds-v270: seasonal theme always beats the accent, incl. Rainbow: every var(--accent-grad) user gets the theme gradient */
body.halloween { --accent-grad: linear-gradient(135deg, #ff8a1f, #d9600c); }
/* ds-v271: For you / Latest + hashtag follow/mute */
.feed-sort { display: flex; justify-content: flex-end; margin: -4px 2px 8px; }
.feed-sort-btn { background: none; border: 0; color: var(--muted, #b9b4c4); font: inherit; font-size: calc(13px * var(--ts, 1)); font-weight: 600; padding: 6px 4px; min-height: 36px; cursor: pointer; }
.feed-sort-btn:hover { color: var(--accent); }
.tag-prefs { display: flex; gap: 8px; margin: 2px 0 6px; }
.tag-pref-hint { margin: 0 0 12px; }
/* ds-v272: Add photos sheet */
.wph-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin: 4px 0 12px; }
.wph-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.wph-toggle { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; cursor: pointer; font-weight: 600; }
.wph-toggle input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.wph-toggle small { display: block; font-weight: 400; margin-top: 2px; }
/* ds-v273: custom kit opt-out */
.custom-check { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 12px; font-weight: 600; cursor: pointer; }
.custom-check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--accent); }
.custom-check small { display: block; font-weight: 400; margin-top: 2px; }
.imp-cust { display: inline-flex; align-items: center; gap: 6px; font-size: calc(13px * var(--ts, 1)); min-height: 30px; cursor: pointer; }
.imp-cust input { width: 18px; height: 18px; accent-color: var(--accent); }
.shot-acts { display: flex; align-items: center; gap: 16px; }
.shot-acts .shot-edit { display: inline-block; padding: 0; height: 30px; }
/* ds-v274: custom kit ⓘ */
.cust-row { display: flex; align-items: flex-start; gap: 4px; }
.cust-row .custom-check { flex: 1; margin-bottom: 8px; }
.ci-btn { background: none; border: 0; color: var(--accent); font-size: calc(18px * var(--ts, 1)); line-height: 1; width: 44px; height: 44px; margin: -12px -10px -8px 0; cursor: pointer; flex: none; }
.ci-pop { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--acc-rgb, 255,79,216), .08); border: 1px solid rgba(var(--acc-rgb, 255,79,216), .3); font-size: calc(14px * var(--ts, 1)); line-height: 1.45; }
/* ds-v276: import share question */
.share-ask { margin: 6px 0 12px; }
.share-q { flex: 1; font-size: calc(15px * var(--ts, 1)); padding-top: 2px; }
.share-opts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.share-opt { flex: 1 1 150px; min-height: 44px; border-radius: 14px; border: 1.5px solid rgba(var(--acc-rgb, 255,79,216), .45); background: none; color: inherit; font: inherit; font-weight: 600; font-size: calc(14px * var(--ts, 1)); padding: 8px 10px; cursor: pointer; }
.share-opt small { display: block; font-weight: 400; font-size: calc(12px * var(--ts, 1)); opacity: .8; }
.share-opt[aria-checked="true"] { border-color: var(--accent); background: rgba(var(--acc-rgb, 255,79,216), .14); box-shadow: 0 0 10px rgba(var(--acc-rgb, 255,79,216), .35); }
/* ds-v277: brand catalog suggestions */
.ks-item { position: relative; }
.ks-cat { display: inline-block; margin-top: 4px; font-size: calc(12px * var(--ts, 1)); color: #7fe7ff; border: 1px solid rgba(127,231,255,.7); border-radius: 99px; padding: 1px 8px; }
body.light .ks-cat { color: #0a7a99; border-color: rgba(10,122,153,.6); }
.ks-shop { display: inline-flex; align-items: center; min-height: 36px; margin: -6px 0 4px 74px; color: var(--accent); font-weight: 600; font-size: calc(13px * var(--ts, 1)); text-decoration: none; }
/* ds-v278: craft type + brand/shop autofill */
.craft-row { display: flex; gap: 8px; }
.craft-row select { flex: 0 0 auto; }
.craft-row input { flex: 1; min-width: 0; }
.craft-chip { border-color: rgba(127,231,255,.6); }
.name-sug { margin-top: 4px; padding: 4px; }   /* in the form flow, like kit suggestions */
.ns-row { min-height: 44px; }
.dia-only[hidden], .pcs-only[hidden], #k_craft_o[hidden] { display: none !important; }
/* ds-v279: modals scroll themselves and never chain to the page */
.modal { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-bg { overscroll-behavior: contain; }
/* ds-v281: Display Name + @handle */
.dn { font-weight: 700; overflow-wrap: anywhere; }
.dn-h { font-weight: 400; color: var(--muted); font-size: .86em; margin-left: 6px; white-space: nowrap; }
.dn-only { font-weight: 700; }
.cname .dn-h { font-size: .82em; }
/* ds-v281: in post/comment headers the @handle sits under the display name, so a long name never hides it */
.who .name .dn { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .name .dn-h { display: block; margin: 1px 0 0; font-size: calc(13px * var(--ts, 1)); line-height: 1.25; }
.who .name:has(.dn-h) { white-space: normal; }
/* ds-v282: name + handle are one tap target. Taps land on the link itself (not the inner spans), and the link fills the name block. */
a .dn, a .dn-h { pointer-events: none; }
.who a.name { cursor: pointer; -webkit-tap-highlight-color: rgba(var(--acc-rgb),.15); }
/* ds-v282: small How-to ? buttons (44px tap area, small visual) */
.help-q{position:relative;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0 4px;padding:0;border-radius:50%;border:1.5px solid rgba(var(--acc-rgb),.55);background:transparent;color:var(--accent);font:700 14px/1 inherit;cursor:pointer;vertical-align:middle;flex:none}
.help-q::after{content:'';position:absolute;inset:-10px}
.help-q:hover{background:rgba(var(--acc-rgb),.12)}
.page-title .help-q{vertical-align:middle;margin-left:6px}
.howto-card .switch-row+.switch-row{border-top:1px solid rgba(var(--acc-rgb),.12)}
.head-help{display:inline-flex;align-items:center;gap:4px}
/* ds-v284: Treasure Quest card (DAC) */
.spec-tq { align-items: start; }
.tq-only[hidden] { display: none !important; }
.tq-only select { width: 100%; }
.tq-chip { font-weight: 700; }
.tq-chip.tq-bronze { background: rgba(205,127,50,.18); color: #e2a065; border-color: rgba(205,127,50,.6); }
.tq-chip.tq-silver { background: rgba(192,197,206,.16); color: #d5dae3; border-color: rgba(192,197,206,.6); }
.tq-chip.tq-gold { background: rgba(240,192,64,.18); color: #f3cf5e; border-color: rgba(240,192,64,.65); }
.tq-chip.tq-black { background: #111; color: #f2f2f2; border-color: #555; }
html[data-theme="light"] .tq-chip.tq-bronze { color: #8a4f17; }
html[data-theme="light"] .tq-chip.tq-silver { color: #555c68; background: rgba(150,158,170,.18); }
html[data-theme="light"] .tq-chip.tq-gold { color: #7d5a00; }
html[data-theme="light"] .tq-chip.tq-black { background: #1a1a1a; color: #fff; }

/* ds-v286: list rows show craft + Treasure Quest chips too, same compact style as status chips, wrapping onto the next line rather than squeezing the name */
.as-list .wip-info > .craft-chip, .as-list .wip-info > .tq-chip { display: inline-flex; align-items: center; gap: 3px; margin: 3px 0 0; padding: 1px 7px; font-size: calc(11.5px * var(--ts, 1)); line-height: 1.5; white-space: nowrap; }
.as-list .wip-info > .mk-chip, .as-list .wip-info > .craft-chip, .as-list .wip-info > .tq-chip, .as-list .wip-info > .ext-chip { margin-right: 4px; }
.wip-grid.as-list > .draft-card .wip-cover { position: static; }   /* ds-v286: list-row draft ⋯ sits at the row end, not on the thumbnail */
.season-under-color .switch-row { border-top: 0; padding-top: 0; }   /* ds-v287 */


/* ds-v296: embedded (reshared) post header stacks name over @handle too */
.embed-head .name .dn, .embed-head .name .dn-h { display: block; margin-left: 0; }
.embed-head .name .dn-h { font-size: calc(13px * var(--ts, 1)); line-height: 1.25; }

/* ds-v297: admin dashboard */
.ad-h { font-size: calc(18px * var(--ts, 1)); margin: 18px 0 8px; }
.ad-stats { display: grid; gap: 12px; margin-bottom: 8px; }
.ad-card { padding: 14px 16px; border: 1.5px solid rgba(var(--acc-rgb), .45); box-shadow: 0 0 18px rgba(var(--acc-rgb), .18); }
.ad-hero { border-color: rgba(var(--acc-rgb), .8); box-shadow: 0 0 26px rgba(var(--acc-rgb), .35); background: linear-gradient(160deg, rgba(var(--acc-rgb), .16), transparent 60%), var(--card, #17121f); }
.ad-lbl { font-size: calc(12px * var(--ts, 1)); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.ad-big, .ad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.ad-grid { grid-template-columns: repeat(4, 1fr); }
.ad-big b { display: block; font-size: calc(34px * var(--ts, 1)); line-height: 1.1; text-shadow: 0 0 14px rgba(var(--acc-rgb), .7); }
.ad-grid b { display: block; font-size: calc(24px * var(--ts, 1)); line-height: 1.15; }
.ad-big span, .ad-grid span { font-size: calc(13px * var(--ts, 1)); color: var(--muted); }
.ad-live { color: #5ee6a8; text-shadow: 0 0 10px rgba(94,230,168,.6); }
.ad-sub { font-size: calc(13px * var(--ts, 1)); color: var(--muted); margin-top: 8px; text-align: center; }
.ad-new { margin-top: 10px; border-top: 1px solid rgba(var(--acc-rgb), .25); }
.ad-person { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid rgba(255,255,255,.06); color: inherit; text-decoration: none; }
.ad-person:last-child { border-bottom: 0; }
.ad-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ad-who b, .ad-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-who small, .ad-person time { color: var(--muted); font-size: calc(13px * var(--ts, 1)); }
.ad-person time { flex: none; }
.ad-chart { display: flex; align-items: flex-end; gap: 4px; height: 90px; margin-top: 14px; }
.ad-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.ad-bar i { display: block; width: 100%; min-height: 3px; border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, rgba(var(--acc-rgb), .55), var(--accent)); box-shadow: 0 0 8px rgba(var(--acc-rgb), .5); }
.ad-bar span { font-size: calc(10.5px * var(--ts, 1)); color: var(--muted); }
.ad-rows > div { display: grid; grid-template-columns: 1fr auto auto auto auto; align-items: baseline; gap: 6px 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.ad-rows > div:last-child { border-bottom: 0; }
.ad-rows span { font-weight: 700; } .ad-rows b { font-size: calc(18px * var(--ts, 1)); text-align: right; min-width: 28px; } .ad-rows small { color: var(--muted); font-size: calc(12px * var(--ts, 1)); }
:where(html[data-theme="light"]) .ad-person, :where(html[data-theme="light"]) .ad-rows > div { border-color: rgba(60,30,90,.1); }

/* ds-v298: admin tabs, range, tables */
.ad-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 10px; padding: 2px 4px; }
.ad-tabs::-webkit-scrollbar { display: none; }
.ad-tabs a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(var(--acc-rgb), .35); color: inherit; text-decoration: none; font-weight: 700; font-size: calc(14px * var(--ts, 1)); }
.ad-tabs a { white-space: nowrap; }
.ad-tabs a.on { background: var(--accent); color: #120c1a; border-color: transparent; box-shadow: 0 0 14px rgba(var(--acc-rgb), .6); }
.ad-range { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .25); margin-bottom: 12px; }
.ad-range button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: calc(13px * var(--ts, 1)); padding: 8px 2px; border-radius: 10px; cursor: pointer; }
.ad-range button.on { background: rgba(var(--acc-rgb), .3); color: inherit; }
.ad-lbl2 { margin-top: 14px; }
.ad-mid b { font-size: calc(26px * var(--ts, 1)) !important; }
.ad-one { grid-template-columns: 1fr !important; }
.ad-g3 { grid-template-columns: repeat(3, 1fr) !important; row-gap: 12px; }
.ad-chart.long { gap: 2px; }
.ad-chart.long .ad-bar span { white-space: nowrap; font-size: calc(9.5px * var(--ts, 1)); }
.ad-chart.pick { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; -webkit-overflow-scrolling: touch; padding: 2px 0 6px; gap: 3px; }
.ad-chart.pick .ad-bar { flex: 0 0 28px; min-width: 28px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ad-chart.pick .ad-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 4px; }
.ad-chart.pick .ad-bar[aria-pressed="true"] i { box-shadow: 0 0 12px rgba(var(--acc-rgb), .95); outline: 2px solid #fff; outline-offset: 1px; }
.adb-day { margin-top: 14px; scroll-margin-top: 12px; }
.adb-day-h { font-weight: 700; margin: 0 0 2px; font-size: calc(15px * var(--ts, 1)); }
.adb-ph { flex: none; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: rgba(var(--acc-rgb), .12); display: flex; align-items: center; justify-content: center; }
.adb-ph img { width: 100%; height: 100%; object-fit: cover; }
.ad-devs { display: grid; gap: 8px; }
.ad-dev { display: grid; grid-template-columns: 9.5em 1fr auto; align-items: center; gap: 8px; font-size: calc(14px * var(--ts, 1)); }
.ad-dev i { height: 10px; border-radius: 6px; background: rgba(var(--acc-rgb), .15); position: relative; overflow: hidden; }
.ad-dev i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--accent); box-shadow: 0 0 8px rgba(var(--acc-rgb), .6); border-radius: 6px; }
.ad-link { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 700; text-decoration: none; }
.ad-back { margin: 0 0 8px; }
.ad-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.ad-tools .search { flex: 1; margin: 0; }
.ad-sort { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: calc(14px * var(--ts, 1)); }
.ad-sort select { flex: 1; min-width: 0; }
.ad-mem { padding: 4px 0 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ad-mem:last-of-type { border-bottom: 0; }
.ad-mem .ad-person { border: 0; padding-bottom: 2px; }
.ad-mm { flex: none; }
.ad-tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding-left: 46px; }
.ad-tags i { font-style: normal; font-size: calc(11.5px * var(--ts, 1)); font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.ad-tags i.on { background: rgba(var(--acc-rgb), .25); } .ad-tags i.bad { background: rgba(255, 90, 120, .25); color: #ff9db0; }
.ad-tags small { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); }
.ad-moreb { width: 100%; margin-top: 8px; }
.ad-biz { display: block; color: inherit; text-decoration: none; }
.ad-bizh { display: flex; align-items: center; gap: 10px; }
.ad-bizt .avatar { width: 48px; height: 48px; }
.ad-chev { font-size: 24px; color: var(--muted); }
.ad-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; margin-top: 12px; text-align: center; }
.ad-mini b { display: block; font-size: calc(19px * var(--ts, 1)); }
.ad-mini span { display: block; font-size: calc(11.5px * var(--ts, 1)); color: var(--muted); }
.ad-mini small { display: block; font-size: calc(10.5px * var(--ts, 1)); color: #5ee6a8; }
.ad-left { text-align: left; }
.ad-post { display: block; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); color: inherit; text-decoration: none; }
.ad-post:last-child { border-bottom: 0; }
.ad-post span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-post small { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); }
.ad-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-chips a { padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(var(--acc-rgb), .45); color: inherit; text-decoration: none; font-size: calc(14px * var(--ts, 1)); }
.ad-chips b { color: var(--accent); margin-left: 3px; }
.ad-r2 > div, .ad-r3 > div { grid-template-columns: 1fr auto auto; }
.ad-src { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.ad-src:last-of-type { border-bottom: 0; }
.ad-src > b { font-size: calc(17px * var(--ts, 1)); }
.ad-off { color: var(--muted); }
.ad-who small { white-space: normal !important; }
/* ds-v301: big stashes (2000+ kits): the browser skips layout/paint for cards far off screen, so scrolling stays smooth. */
#tabList .wip-grid > .wip-card { content-visibility: auto; contain-intrinsic-size: auto 330px; }
#tabList .wip-grid.as-list > .wip-card { contain-intrinsic-size: auto 96px; }
/* ds-v302: Featured finished projects (bigger cards, swipe sideways) */
.feat-sec { margin: 4px 0 14px; }
.feat-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.feat-row::-webkit-scrollbar { display: none; }
.feat-card { flex: 0 0 72%; max-width: 300px; scroll-snap-align: start; border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #241e2f 0%, #1c1824 70%); border: 1.5px solid rgba(var(--acc-rgb), .8); box-shadow: 0 0 18px rgba(var(--acc-rgb), .25); }
.feat-cover { aspect-ratio: 4 / 5; background: #15121b; display: flex; align-items: center; justify-content: center; }
.feat-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-name { padding: 10px 12px 12px; font-weight: 700; font-size: 16px; line-height: 1.3; }
.feat-hint { margin: 0; font-size: 13px; }
.feat-chip { color: #ffd76a; }
/* ds-v302: Wishlist */
.wish-pri { color: #ff9bd2; }
.wish-link { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--accent); font-weight: 600; text-decoration: none; }
.wish-gotit { display: grid; gap: 8px; padding: 6px 0; }
.wish-gotit input[type=date] { width: 100%; min-height: 40px; }
.ks-links { display: flex; gap: 16px; flex-wrap: wrap; margin: -6px 0 4px 74px; }
.ks-links .ks-shop { margin: 0; }
button.ks-wish { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.proj-sub { overflow-x: auto; scrollbar-width: none; }
.proj-sub::-webkit-scrollbar { display: none; }
.wish-gotit .ip-row { flex-direction: column; gap: 8px; } .wish-gotit .ip-row .btn { width: 100%; }
#wishForm select { width: 100%; min-height: 50px; border-radius: 12px; padding: 10px 12px; font: inherit; }
/* ds-v303: featured finished project star (same look as My Stash favorites) */
.wip-grid:not(.as-list) .wip-card .wip-cover { position: relative; }
.wip-card .feat-star { position: absolute; bottom: 8px; left: 8px; width: 34px; height: 34px; border-radius: 999px; background: rgba(0,0,0,.55); color: #ffd84a; text-shadow: 0 0 8px rgba(255,216,74,.8); font-size: calc(19px * var(--ts, 1)); line-height: 34px; text-align: center; }
/* ds-v304: list view never draws over the small thumbnail: the star sits before the title instead */
.as-list .wip-card .feat-star { display: none; }
.name-star { display: none; color: #ffd84a; text-shadow: 0 0 6px rgba(255,216,74,.7); }
.as-list .name-star { display: inline; }
/* ds-v305: Archived wishlist kit (retired): readable muted tag under the title, never over the photo */
.wish-arch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 2px; }
.wish-arch-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #3a3644; color: #e4e0ea; font-size: calc(12px * var(--ts, 1)); font-weight: 700; }
.wish-arch-note { color: #b9b2c6; font-size: calc(13px * var(--ts, 1)); }
.as-list .wip-info .wish-arch { display: flex !important; margin: 2px 0 0; }

/* ds-v306: finished kit = small gold dot (no image in the grid; rows stay equal height; bars stay on top and continuous) */
.cal-day .calx-fd { position: absolute; top: 2px; left: 3px; font-size: 11px; line-height: 1; font-weight: 900; color: #ffd54f; text-shadow: 0 0 5px rgba(255,213,79,.85); pointer-events: none; }
.cal.big .cal-day .calx-fd { font-size: 14px; top: 8px; left: auto; right: 26px; }
.cal.mini .calx-fd { display: none; }
.cal-bars { z-index: 1; }

/* ds-v306: optional dates with a Clear control */
.date-row { display: flex; gap: 6px; align-items: center; }
.date-row input { flex: 1; min-width: 0; }
.date-clear { flex: none; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(var(--acc-rgb),.45); background: transparent; color: inherit; font: inherit; font-size: calc(14px * var(--ts, 1)); font-weight: 600; cursor: pointer; }

/* ds-v309: photo editor (public/editor.js) */
.ped { position: fixed; inset: 0; z-index: 9999; background: #0b0710; color: #fff; display: flex; flex-direction: column; touch-action: none; overscroll-behavior: contain;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); -webkit-user-select: none; user-select: none; }
.ped button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.ped-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; min-height: 52px; }
.ped-tr { display: flex; align-items: center; gap: 2px; }
.ped-n { font-size: 14px; opacity: .75; }
.ped-tb { background: none; border: 0; padding: 10px 10px; min-height: 44px; min-width: 44px; font-size: 16px; font-weight: 600; border-radius: 12px; }
.ped-tb:disabled { opacity: .3; }
.ped-icon { font-size: 22px; padding: 6px; }
.ped-done { background: var(--accent, #c86bff); color: #fff; padding: 10px 16px; }
.ped-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; }
.ped-cv { position: absolute; inset: 0; display: block; }
.ped-crop { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 33.333% 33.333%; background-position: -1px -1px; }
.ped-crop i { position: absolute; width: 44px; height: 44px; pointer-events: auto; touch-action: none; }
.ped-crop i::after { content: ''; position: absolute; width: 18px; height: 18px; border: 4px solid #fff; }
.ped-crop i[data-h=nw] { left: -22px; top: -22px; } .ped-crop i[data-h=nw]::after { left: 18px; top: 18px; border-right: 0; border-bottom: 0; }
.ped-crop i[data-h=ne] { right: -22px; top: -22px; } .ped-crop i[data-h=ne]::after { right: 18px; top: 18px; border-left: 0; border-bottom: 0; }
.ped-crop i[data-h=sw] { left: -22px; bottom: -22px; } .ped-crop i[data-h=sw]::after { left: 18px; bottom: 18px; border-right: 0; border-top: 0; }
.ped-crop i[data-h=se] { right: -22px; bottom: -22px; } .ped-crop i[data-h=se]::after { right: 18px; bottom: 18px; border-left: 0; border-top: 0; }
.ped-strip { display: flex; gap: 8px; padding: 6px 12px; overflow-x: auto; touch-action: pan-x; }
.ped-th { flex: none; width: 52px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #222; }
.ped-th.on { border-color: var(--accent, #c86bff); }
.ped-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ped-panel { padding: 8px 14px 4px; min-height: 128px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ped-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ped-scroll { flex-wrap: nowrap; overflow-x: auto; touch-action: pan-x; padding-bottom: 2px; }
.ped-chip, .ped-btn { flex: none; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); font-size: 15px; font-weight: 600; }
.ped-chip.on { background: #fff; color: #120a18; border-color: #fff; }
.ped-del { color: #ff8fa3; }
.ped-hint { font-size: 14px; opacity: .7; }
.ped-sl { display: grid; gap: 2px; font-size: 14px; }
.ped-sl span { display: flex; justify-content: space-between; opacity: .9; }
.ped-sl input[type=range] { width: 100%; height: 36px; accent-color: var(--accent, #c86bff); touch-action: pan-x; }
.ped-sw { gap: 10px; }
.ped-col { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); padding: 0; }
.ped-col.on { outline: 3px solid #fff; outline-offset: 3px; }
.ped-size { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); display: grid; place-items: center; }
.ped-size i { background: #fff; border-radius: 50%; display: block; }
.ped-size.on { background: rgba(255,255,255,.3); }
.ped-filters { gap: 10px; }
.ped-flt { flex: none; background: none; border: 0; padding: 0; display: grid; gap: 4px; justify-items: center; font-size: 13px; }
.ped-flt canvas { width: 64px; height: 64px; border-radius: 12px; border: 2px solid transparent; }
.ped-flt.on canvas { border-color: #fff; }
.ped-tin { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font-size: 16px; padding: 0 12px; -webkit-user-select: text; user-select: text; }
.ped-tabs { display: flex; justify-content: space-around; padding: 4px 6px 8px; border-top: 1px solid rgba(255,255,255,.1); }
.ped-tabs button { background: none; border: 0; min-height: 48px; padding: 0 8px; font-size: 15px; font-weight: 600; opacity: .6; }
.ped-tabs button.on { opacity: 1; color: var(--accent, #e3b4ff); }
.ped-toast { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); background: rgba(0,0,0,.8); padding: 10px 14px; border-radius: 12px; font-size: 14px; max-width: 86%; text-align: center; }
body.ped-open { overflow: hidden; }

/* ds-v311: "Edit" label under/beside a picked photo's preview (never over the photo) */
.ph-edit { display: block; margin: 4px auto 0; padding: 6px 10px; min-height: 32px; background: none; border: 0; color: var(--accent-2, var(--accent)); font: inherit; font-size: calc(13px * var(--ts, 1)); font-weight: 700; cursor: pointer; }
.ph-edit[hidden] { display: none; }
.np-cell, .ph-cell { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ph-cell img { width: 100%; }
.ev-prev + .ph-edit, .avatar-row .ph-edit { margin: 2px 0 0; }
#dmPrev .ph-edit { margin: 0; align-self: flex-end; }

/* ds-v315: Rainbow glows like every other accent: a static multicolour neon halo (red/orange/yellow/green/cyan/purple around the (ds-v468: orange added)
   edge). No animation (cheap on phones, nothing for reduced motion to stop). Seasonal themes still win (body.halloween). */
html[data-accent="rainbow"] {
  --rb-glow: -5px 0 12px rgba(255, 59, 79, .42), 5px 0 12px rgba(34, 211, 238, .42), -3px -4px 12px rgba(255, 138, 31, .36), 0 -4px 12px rgba(255, 214, 10, .30), 0 5px 14px rgba(180, 92, 240, .50), 0 0 22px rgba(255, 79, 216, .22);
  --rb-glow-sm: -3px 0 8px rgba(255, 59, 79, .5), -2px -2px 7px rgba(255, 138, 31, .45), 3px 0 8px rgba(34, 211, 238, .5), 0 3px 9px rgba(180, 92, 240, .55);
}
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .card { box-shadow: var(--rb-glow); }
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .btn:not(.ghost):not(.danger-btn),
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .seg button[aria-selected="true"], html[data-accent="rainbow"] body:not(.halloween):not(.hol) .seg.tabs a[aria-selected="true"],
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .tabs button.on { box-shadow: var(--rb-glow-sm); }
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .bottom a.plus { box-shadow: var(--rb-glow); }
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .logo-social { text-shadow: -2px 0 8px rgba(255, 59, 79, .7), 2px 0 8px rgba(34, 211, 238, .7), 0 0 18px rgba(255, 79, 216, .45), 0 0 30px rgba(180, 92, 240, .3); }
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .bottom a.active svg, html[data-accent="rainbow"] body:not(.halloween):not(.hol) .icon-row a.active { filter: drop-shadow(-2px 0 4px rgba(255, 59, 79, .7)) drop-shadow(2px 0 4px rgba(34, 211, 238, .7)); }
html[data-theme="light"][data-accent="rainbow"] body:not(.halloween):not(.hol) .card { box-shadow: -3px 0 10px rgba(255, 59, 79, .18), 3px 0 10px rgba(34, 211, 238, .18), 0 4px 12px rgba(180, 92, 240, .2); }

/* ds-v316: ✕ no longer sits on the photo: Edit + ✕ in a row under each thumbnail, both 44pt tap targets. */
.np-acts { display: flex; align-items: center; justify-content: center; gap: 2px; }
.np-acts .ph-edit { margin: 0; min-height: 44px; padding: 0 8px; }
.np-thumb + .np-acts .np-x, .np-acts .np-x { position: static; width: 44px; height: 44px; border: 0; background: none; color: var(--muted, #b9b4c4); font-size: calc(16px * var(--ts, 1)); border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; touch-action: manipulation; }
.np-acts .np-x:active { background: rgba(var(--acc-rgb), .16); }
#dmPrev button:not(.ph-edit) { position: static; width: 44px; height: 44px; border: 0; background: none; color: var(--muted, #b9b4c4); font-size: 18px; line-height: 1; align-self: center; }
#dmPrev .ph-edit, :where(html[data-theme="light"]) #dmPrev .ph-edit { position: static; width: auto; height: auto; min-height: 44px; padding: 0 8px; background: none; border: 0; border-radius: 0; color: var(--accent-2, var(--accent)); line-height: normal; align-self: center; }

/* ds-v317: video clips */
.post-video { position: relative; margin: 10px 0 8px; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid rgba(var(--acc-rgb),.45); }
.post-video video { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #000; }
.vid-snd, .clip-snd { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 16px; display: grid; place-items: center; }
.np-vid video { width: 140px; max-height: 220px; border-radius: 12px; background: #000; display: block; }
.np-vnote { margin: 4px 0 10px; color: var(--muted, #b9b4c4); }
.clips { position: fixed; left: 0; right: 0; top: 0; bottom: var(--bottom-h, 84px); overflow-y: auto; scroll-snap-type: y mandatory; background: #000; z-index: 3; overscroll-behavior: contain; }
.clips .placeholder { color: #fff; padding: 40vh 20px 0; text-align: center; }
.clip { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.clip::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; }
.clip-snd { top: calc(env(safe-area-inset-top) + 12px); bottom: auto; right: 12px; z-index: 2; }
.clip-side { position: absolute; right: 6px; bottom: 90px; display: grid; gap: 14px; z-index: 2; }
.clip-side .act { display: grid; justify-items: center; color: #fff; background: none; border: 0; font-size: 12px; font-weight: 700; filter: drop-shadow(0 1px 3px rgba(0,0,0,.8)); min-width: 44px; }
.clip-side .act svg { width: 30px; height: 30px; }
.clip-who { position: absolute; left: 14px; right: 64px; bottom: 22px; color: #fff; z-index: 2; text-shadow: 0 1px 3px #000; }
.clip-who a { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.clip-who img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); }
.clip-who p { margin: 6px 0 0; font-size: 14px; line-height: 1.35; }
.clip-bar { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); z-index: 2; }
.clip-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--accent); box-shadow: 0 0 6px rgba(var(--acc-rgb),.8); }
/* ds-v320: video trimmer */
.trim { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 8px) 14px calc(env(safe-area-inset-bottom) + 18px); gap: 12px; }
.trim-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; }
.trim-top .btn { min-height: 44px; min-width: 72px; }
.trim video { flex: 1; min-height: 0; width: 100%; object-fit: contain; background: #000; }
.trim-ctl { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; }
.trim-play { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 18px; }
.trim-bar { position: relative; height: 56px; margin: 0 22px; border-radius: 10px; background: repeating-linear-gradient(90deg, #2a2633 0 18px, #1d1a24 18px 20px); touch-action: none; }
.trim-win { position: absolute; top: 0; bottom: 0; border: 3px solid var(--accent); border-radius: 10px; background: rgba(var(--acc-rgb), .22); box-shadow: 0 0 0 2000px rgba(0,0,0,.35); cursor: grab; }
.trim-h { position: absolute; top: -4px; bottom: -4px; width: 44px; display: block; }
.trim-h::after { content: ''; position: absolute; top: 14px; bottom: 14px; left: 19px; width: 6px; border-radius: 3px; background: #fff; }
.trim-h.l { left: -24px; } .trim-h.r { right: -24px; }
.trim-pos { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #fff; pointer-events: none; }
.trim-bar { overflow: visible; } .trim { overflow: hidden; }
.trim-read, .trim-top b, .trim .btn:not(.ghost) { color: #fff !important; } .trim .btn.ghost { color: #fff !important; border-color: rgba(255,255,255,.5); }
/* ds-v321: background clip posting card */
.bg-post { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-h, 84px) + env(safe-area-inset-bottom) + 12px); z-index: 60; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card, #1c1924); border: 1px solid rgba(var(--acc-rgb),.6); box-shadow: 0 6px 20px rgba(0,0,0,.4); color: var(--text, #fff); font-size: 14px; }
.bg-post > div { flex: 1; } .bg-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); margin-top: 8px; overflow: hidden; }
.bg-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }

/* ds-v322: feed videos keep their own shape (portrait no longer sits in a wide black box) */
.post-video { display: table; margin: 10px auto 8px; background: none; border: 0; border-radius: 12px; }
.post-video video { width: auto; max-width: 100%; height: min(70vh, 560px); aspect-ratio: auto 9 / 16; border-radius: 12px; border: 1px solid rgba(var(--acc-rgb),.45); object-fit: contain; }
/* ds-v322: on wide screens Clips stays a phone-shaped player in the centre column */
@media (min-width: 1024px) {
  .clips { position: relative; inset: auto; z-index: auto; margin: 0 auto; height: calc(100vh - var(--top-h, 70px) - 32px); width: min(100%, calc((100vh - var(--top-h, 70px) - 32px) * 9 / 16)); border-radius: 16px; }
  .clip video { object-fit: contain; }
}
/* ds-v326: phone header hides on scroll down; Clips has no header */
@media (max-width: 1023px) {

  body.clips-mode .top { display: none; }
  body.clips-mode .clips { top: 0; padding-top: 0; }
  body.clips-mode .clip-snd { top: calc(var(--sat, 0px) + 12px); }
  @media (prefers-reduced-motion: reduce) { .top { transition: none; } }
}
/* ds-v329: smooth Clips swiping: flat layers, no blur/glow, compositor-only progress bar */
.clips { background: #000; -webkit-overflow-scrolling: touch; }
.clip { contain: strict; will-change: transform; height: 100%; width: 100%; }
.clip-side .act { filter: none; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.clip-side .act svg { stroke-width: 2; }
.clip-snd { backdrop-filter: none; }
.clip-bar { overflow: hidden; }
.clip-bar i { width: 100% !important; transform: scaleX(0); transform-origin: left; box-shadow: none; will-change: transform; }
.clip-who img { box-shadow: none; }
body.clips-mode { background-image: none; }
/* ds-v330: keyboard open: no bottom-bar/safe-area space under the DM composer or at the page end (the bar is hidden) */
@media (pointer: coarse) and (max-width: 1023px) {
  body.kb-typing #thFoot { bottom: 0; padding-bottom: 4px; }
  body.kb-typing :where(body:not(.welcome-gate-on)) .shell, body.kb-typing .shell { padding-bottom: 8px; }
}
/* ds-v331: DM thread on phones: no app header; the thread's own name bar is pinned at the top */
@media (max-width: 1023px) {
  body.thread-mode .top { display: none; }
  body.thread-mode .thread-head { top: 0; padding-top: calc(var(--sat, 0px) + 6px); margin-top: calc(-1 * var(--sat, 0px)); }
}
.thread-head .back { min-width: 44px; min-height: 44px; }
.th-new { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 76px); z-index: 30; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; min-height: 40px; }
/* ds-v332: solid name bar (theme background), full width, covering the status-bar area above it */
.thread-head { background: var(--bg) !important; opacity: 1; -webkit-mask-image: none; mask-image: none; }
@media (max-width: 1023px) {
  body.thread-mode .thread-head { margin-left: -16px; margin-right: -16px; padding-left: 12px; padding-right: 12px; box-shadow: 0 -300px 0 300px var(--bg); clip-path: inset(-400px 0 0 0); border-bottom: 1px solid rgba(var(--acc-rgb), .25); }
}
.thread { -webkit-mask-image: none; mask-image: none; }
/* ds-v335: phones: silky bar hide/show. Transform only, one class each on <html>, no blur/glow while moving. */
@media (max-width: 1023px) {
  /* ds-v774: a resting translate3d(0,0,0) plus will-change:transform on the sticky header and the fixed bar
     makes iOS hit-test the wrong element. Taps on rows, the back link and the Profile tab then land on the
     chrome (or on nothing) and never show a pressed state. Transform is applied only while a bar is moving. */
  .top, .bottom { will-change: auto; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  /* Sticky + transform never hides on iPhone. Fixed lets the translate slide it away. The spacer (#topSpace) keeps the feed below it. */
  .top { position: fixed; top: 0; left: 0; right: 0; width: min(480px, 100%); margin-inline: auto; z-index: 20; }
  html.hdr-hide .top { transform: translate3d(0, -100%, 0); visibility: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .25s; }
  html.nav-hide .bottom { transform: translate3d(0, calc(100% + 24px), 0); visibility: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .25s; }
  html.nav-hide .bg-post, html.nav-hide .th-new { bottom: calc(env(safe-area-inset-bottom) + 12px); }
  @media (prefers-reduced-motion: reduce) { .top, .bottom, html.hdr-hide .top, html.nav-hide .bottom { transition: none; } }
}
/* ds-v339: phones: DM thread = fixed column sized to the visible screen (height/offset set from visualViewport) */
@media (max-width: 1023px) {
  html:has(body.thread-mode), body.thread-mode { overflow: hidden; overscroll-behavior: none; }
  body.thread-mode .bottom { display: none; }
  body.thread-mode .th-wrap { position: fixed; top: 0; left: 0; right: 0; height: 100vh; max-width: 480px; margin: 0 auto; z-index: 35; display: flex; flex-direction: column;
    background: var(--bg); padding: 0 12px; box-sizing: border-box; will-change: transform; }
  body.thread-mode .th-wrap .thread-head { position: relative; top: auto; flex: none; margin: 0 -12px; padding-top: calc(var(--sat, 0px) + 6px); box-shadow: none; clip-path: none; }
  body.thread-mode .th-wrap .thread { flex: 1; min-height: 0 !important; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; padding-bottom: 6px; }
  body.thread-mode .th-wrap .thread > :first-child { margin-top: auto; }
  body.thread-mode .th-wrap #thFoot { position: relative; bottom: auto; flex: none; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  body.thread-mode .th-wrap.kb-open #thFoot { padding-bottom: calc(6px + var(--kb-acc, 0px)); }   /* ds-v687: + room for the iOS 26 floating form assist bar */   /* ds-v400: keyboard open (measured): the composer sits right on it, no home bar inset on top */
  body.thread-mode .th-new { bottom: 90px; }
}
/* ds-v342: sound toggle = plain white speaker (Instagram/TikTok style), no accent, no glow, readable on any video */
.vid-snd, .clip-snd { background: transparent !important; color: rgba(255,255,255,.9) !important; box-shadow: none !important; text-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.vid-snd svg, .clip-snd svg { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)) drop-shadow(0 0 6px rgba(0,0,0,.25)); }
/* ds-v343: phones: name/tabs bar follows the v335 bars. Header hidden → bar pinned flush under the status bar;
   scrolling down (bottom bar hidden) → it slides away with the same 250ms slide; scrolling up → slides back to the top. */
@media (max-width: 1023px) {
  .grp-stick { transition: transform .25s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
  html.hdr-hide .grp-stick { top: calc(var(--sat) - var(--mini-h)); }
  /* ds-v676: header partly slid away (scroll linked): the group bar rides up with it */
  html.hdr-part body:not(.chrome-faded) .grp-stick { top: calc(var(--top-h) - var(--mini-h) - var(--hdr-o, 0px)); }
  html.hdr-part body:not(.chrome-faded) .grp-stick.mini { top: calc(var(--top-h) - var(--hdr-o, 0px)); }
  html.hdr-hide .grp-stick.mini { top: var(--sat); box-shadow: 0 calc(-1 * var(--sat)) 0 0 rgb(15,12,21); }
  html.hdr-hide.nav-hide .grp-stick.mini { transform: translate3d(0, calc(-100% - var(--sat) - 12px), 0); }
  @media (prefers-reduced-motion: reduce) { .grp-stick { transition: none; } }
}
/* ds-v345: Clips comment sheet: ~68% high over the playing clip (dimmed a little), list scrolls, composer at the bottom */
.cc-bg { background: rgba(0,0,0,.28) !important; align-items: flex-end; }
.cc-sheet { height: 68vh; height: 68dvh; max-height: 68dvh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); animation: ccUp .25s cubic-bezier(.2,.8,.2,1); }
.cc-sheet.out { transform: translate3d(0, 100%, 0); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.cc-bg.out { background: transparent !important; transition: background-color .25s; }
@keyframes ccUp { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
.cc-title { margin: 2px 0 8px; text-align: center; font-size: 15px; font-weight: 700; }
.cc-body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: none; border: 0; box-shadow: none; padding: 0; margin: 0; }
.cc-body .comments { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; }
.cc-body .clist { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.cc-body .comment-form { flex: none; position: static; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .cc-sheet, .cc-sheet.out { animation: none; transition: none; } }
/* ds-v349: finish days: the sparkle gem turns gold (Finished-tag gold) with a warmer glow; session days stay cyan */
.cal-day .calx-mk.fin { filter: drop-shadow(0 0 3px rgba(255,190,60,.95)) drop-shadow(0 0 6px rgba(255,170,40,.45)); }
.cal-day .calx-mk.fin polygon { fill: #ffc940; stroke: #fff3c4; }
.cal-day .calx-mk.fin path { stroke: #fff3c4; }
.calx-keyfin { display: inline-grid; } .calx-keyfin polygon { fill: #ffc940; stroke: #fff3c4; } .calx-keyfin path { stroke: #fff3c4; }
.embed-src { color: var(--accent); font-weight: 600; text-decoration: none; } /* ds-v352: shared post: which group it came from */
/* ds-v353: AI label for Gemma, DrillSocial's official AI account */
.aibadge { display: inline-block; margin-left: 5px; padding: 1px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; line-height: 1.5; vertical-align: middle; color: #fff; background: linear-gradient(135deg, #8a3df0, #c45bff); }
.ad-gdraft { margin: 8px 0 2px; padding: 10px 12px; border-radius: 10px; background: rgba(var(--acc-rgb), .1); }

/* ds-v368: time capsules */
.cal-day .calx-cap { position: absolute; bottom: 3px; right: 3px; width: 10px; height: 12px; display: grid; pointer-events: none; }
.cal-day .calx-cap svg, .cal-capi svg, .page-title .calx-capi, .calx-sec .calx-capi { width: 100%; height: 100%; }
.page-title .calx-capi { width: .8em; height: .9em; vertical-align: -0.05em; }
.calx-sec .calx-capi { width: 12px; height: 14px; vertical-align: -2px; }
.cal-capi { width: 14px; height: 18px; flex: none; display: grid; }
.cap-row { text-decoration: none; color: inherit; }
.cap-form { display: grid; gap: 8px; margin-top: 8px; }
.cap-head b { font-size: 1.15em; }
.cap-add { display: grid; gap: 8px; }
.cap-item { position: relative; }
.cap-item .cap-imore { position: absolute; top: 6px; right: 6px; }
.cap-img { display: block; width: 100%; height: auto; border-radius: 12px; margin: 6px 0; }
.cap-warn { margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cap-warn p { margin: 0 0 10px; }

/* ds-v369: capsule page = event page layout; sealed cards (no preview) */
.cap-hero { display: grid !important; place-items: center; }
.cap-hero .vault { width: 100% !important; height: 100% !important; }
.cap-sealed { display: flex; align-items: center; gap: 12px; }
.cap-sealed > .calx-capi { width: 22px; height: 30px; flex: none; }
.cap-sealed span { flex: 1; display: grid; gap: 2px; }
.cap-sealed small { color: var(--muted, #aaa); }

.cap-imgs { display: grid; gap: 4px; margin-top: 6px; }
.cap-imgs.n2, .cap-imgs.n4 { grid-template-columns: 1fr 1fr; }
.cap-imgs.n3 { grid-template-columns: 1fr 1fr; }
.cap-imgs.n3 img:first-child { grid-column: span 2; }
.cap-imgs .cap-img { margin: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.cap-imgs:not(.n1) .cap-img { aspect-ratio: 1; }

.menu .menu-title { padding: 8px 14px 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.page-head #calMore { margin-left: auto; }

/* ds-v371: neon vault cover */
.cap-hero { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 22%, #131119), #0c0a12 70%); overflow: hidden; }
.vault .v-door, .vault .v-dial { transform-box: fill-box; transform-origin: center; }
.vault .v-door { filter: drop-shadow(0 0 10px var(--accent)); }
.vault:not(.open) .v-glow { animation: vPulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.vault:not(.open) .v-dial { animation: vDial 12s linear infinite; }
.vault.open .v-door { transform: translateX(118px) scaleX(.32); opacity: .9; }
@keyframes vPulse { 50% { opacity: .55; transform: scale(1.06); } }
@keyframes vDial { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vault .v-glow, .vault .v-dial { animation: none !important; } }
.cal-day .calx-cap { width: 11px; height: 11px; }

.cap-list { padding: 4px 12px; }
.cap-list .cap-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.cap-list .cap-row + .cap-row { border-top: 1px solid rgba(255,255,255,.08); }
.cap-list .cal-rtxt { display: grid; }

/* ds-v374: Menu sections; capsule photos show the whole photo (contain over a blurred copy, nothing drawn over it) */
.menu .menu-sec { padding: 6px 14px 2px; font-size: 11px; font-weight: 600; opacity: .55; }
.cap-cover { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; overflow: hidden; background: #0c0a12; }
.cap-cover::before, .cap-ph::before { content: ""; position: absolute; inset: -20px; background: var(--cbg) center / cover no-repeat; filter: blur(22px) brightness(.6); }
.cap-cover img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.cap-ph { position: relative; display: block; overflow: hidden; border-radius: 12px; background: #0c0a12; }
.cap-imgs:not(.n1) .cap-ph { aspect-ratio: 1; }
.cap-imgs .cap-ph .cap-img { position: relative; object-fit: contain; border-radius: 0; }
.cap-imgs.n3 .cap-ph:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
/* ds-v374: desktop Safari calendar flicker: keep the grid on its own layer so its many glowing cells are not repainted with everything around them */
/* ds-v714: only on a mouse and trackpad. On a phone this extra layer can make the grid's taps miss (iOS Safari), so touch screens do without it. */
@media (hover: hover) and (pointer: fine) { .cal .cal-body { isolation: isolate; contain: paint; transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; } }
.cal-body.loading { transition: opacity .2s; }
/* ds-v375: "Menu" word inside the calendar ⋯ tap target */
.more.more-lbl { width: auto !important; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 999px; }
.more-lbl .more-word { font-size: 13px; font-weight: 600; color: var(--muted, #aaa); }
.more-lbl .menu { white-space: normal; }
/* ds-v376: Time capsules list row menu + in-place delete confirm */
.cap-rowwrap { position: relative; }
.cap-rowwrap .cap-rowmore { position: absolute; top: 8px; right: 2px; }
.cap-rowwrap .cap-rowconf:empty { display: none; }
.cap-rowwrap .cap-row { padding-right: 44px; }

/* ds-v378: calendar extras. Markers are absolutely placed, so cells never change size. */
.cal-day .calx-ev { position: absolute; left: 4px; bottom: 3px; display: flex; gap: 2px; pointer-events: none; opacity: .9; }
.cal-day .calx-ev svg { width: 10px; height: 10px; display: block; }
.cal.big .cal-day .calx-ev { left: 8px; bottom: 6px; }
.cal.big .cal-day .calx-ev svg { width: 12px; height: 12px; }
.cal-day.has-work::after { content: ""; position: absolute; left: 32%; right: 32%; bottom: 2px; height: 2px; border-radius: 2px; background: var(--wc, rgba(var(--acc-rgb), .6)); pointer-events: none; }
.cal.big .cal-day.has-work::after { left: 8px; right: 8px; bottom: 3px; }
.cal-capi svg.calx-bd, .cal-capi svg.calx-an { width: 100%; height: 100%; }
.calx-wk { display: block; width: 14px; height: 4px; border-radius: 3px; background: rgba(var(--acc-rgb), .7); }
.cal-capi:has(.calx-wk) { display: grid; place-items: center; }
.sp-row { position: relative; padding: 4px 0; }
.sp-row + .sp-row { border-top: 1px solid rgba(255,255,255,.08); }
.sp-main { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.sp-main .cal-rtxt { flex: 1; min-width: 0; }
.sp-main .cal-capi { width: 22px; height: 22px; flex: none; display: grid; }
.sp-form { display: grid; gap: 8px; padding: 6px 0; }
.sp-date { display: grid; grid-template-columns: 1.4fr .8fr 1.4fr; gap: 8px; }
.sp-date > * { min-width: 0; }
.sp-act { display: flex; gap: 10px; justify-content: flex-end; }
.sp-conf:empty { display: none; }
.sp-conf .cap-warn { margin: 6px 0; }
.ws { padding: 12px 10px; }
.ws-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.ws-day { height: 42px; padding-top: 6px; }
.ws-day.has-work::after { left: 30%; right: 30%; }
.ws-quick { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ws-chip { border: 1px solid rgba(var(--acc-rgb), .5); background: transparent; color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; }
.ws-edit { display: grid; gap: 10px; margin-top: 12px; }
.ws-sel { display: flex; justify-content: space-between; align-items: center; }
.ws-link { background: none; border: 0; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; padding: 4px; }
/* ds-v379: Date field in the Add to calendar form */
.ent-date { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.ent-date input { width: 100%; min-width: 0; box-sizing: border-box; }
.ent-form { grid-template-columns: minmax(0, 1fr); }
.ent-form > * { min-width: 0; }
.ent-2 input { width: 100%; min-width: 0; box-sizing: border-box; }

/* ds-v381: polls. Photos sit beside the option text, nothing is drawn over them. */
.poll { margin: 10px 0 4px; display: grid; gap: 6px; }
.poll-opts { display: grid; gap: 8px; }
.poll-opt { display: flex; align-items: stretch; gap: 8px; width: 100%; padding: 4px; border: 1px solid rgba(var(--acc-rgb), .4); border-radius: 12px; background: rgba(var(--acc-rgb), .06); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.poll-opt:disabled { cursor: default; }
.poll:not(.ended) .poll-opt:hover { border-color: var(--accent); box-shadow: var(--glow-soft); }
.poll-opt.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--glow-soft); }
.poll-img { flex: none; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: #0c0a12; display: grid; place-items: center; }
.poll-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.poll-main { position: relative; flex: 1; min-width: 0; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; border-radius: 8px; overflow: hidden; }
.poll-fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(var(--acc-rgb), .28); transition: width .35s ease; }
.poll-txt, .poll-pct { position: relative; }
.poll-txt { font-weight: 600; overflow-wrap: anywhere; }
.poll-pct { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; opacity: .9; }
.poll-meta { font-size: 13px; color: var(--muted); }
.poll.ended .poll-meta b { color: var(--accent); }
.np-polltile .photo-picker-inner svg { width: 20px; height: 20px; }
.np-poll { display: grid; gap: 8px; margin: 10px 0; padding: 12px; border: 1px solid rgba(var(--acc-rgb), .45); border-radius: 14px; background: rgba(var(--acc-rgb), .06); }
.np-poll-head { display: flex; justify-content: space-between; align-items: center; }
.np-poll-head b svg { width: 16px; height: 16px; vertical-align: -2px; color: var(--accent); }
.np-opt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.np-opt-img { flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px dashed rgba(var(--acc-rgb), .6); display: grid; place-items: center; overflow: hidden; cursor: pointer; background: #0c0a12; }
.np-opt-img svg { width: 20px; height: 20px; color: var(--accent); }
.np-opt-img img { width: 100%; height: 100%; object-fit: contain; }
.np-opt-text { flex: 1; min-width: 0; }
.np-opt-rm-img { background: none; border: 0; color: var(--accent); font: inherit; font-size: 12px; padding: 2px 4px; }
.np-opt-add { justify-self: start; background: none; border: 1px solid rgba(var(--acc-rgb), .5); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 600; }
.np-poll-end { display: grid; gap: 6px; }
.np-poll-end input { width: 100%; box-sizing: border-box; min-width: 0; }
.np-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.np-presets button { background: none; border: 1px solid rgba(var(--acc-rgb), .4); color: var(--text); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; }

/* ds-v382: kit photo strip on the kit page, kit form count, and post collages with 5 to 10 photos */
.kit-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kit-th { width: 64px; height: 64px; padding: 0; border: 1px solid rgba(var(--acc-rgb), .35); border-radius: 10px; overflow: hidden; background: #0d0a12; cursor: pointer; }
.kit-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kit-th:focus-visible { outline: 2px solid var(--accent-2, #c084fc); outline-offset: 2px; }
.kp-count { margin: 6px 0 8px; }
.kp-thumbs { margin-top: 4px; }
.pc-grid.n5, .pc-grid.n6, .pc-grid.n7, .pc-grid.n8, .pc-grid.n9, .pc-grid.n10 { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 1fr; aspect-ratio: 1; }
.pc-grid.n5 { aspect-ratio: 6 / 5; grid-template-rows: 1.15fr 1fr; }
.pc-grid.n5 img { grid-column: span 4; } .pc-grid.n5 img:nth-child(-n+2) { grid-column: span 6; }
.pc-grid.n6 { aspect-ratio: 3 / 2; grid-template-rows: 1fr 1fr; }
.pc-grid.n6 img { grid-column: span 4; }
.pc-grid.n7 { grid-template-rows: 1.5fr 1fr 1fr; }
.pc-grid.n7 img { grid-column: span 4; } .pc-grid.n7 img:first-child { grid-column: span 12; }
.pc-grid.n8 { grid-template-rows: 1.3fr 1fr 1fr; }
.pc-grid.n8 img { grid-column: span 4; } .pc-grid.n8 img:nth-child(-n+2) { grid-column: span 6; }
.pc-grid.n9 { grid-template-rows: 1fr 1fr 1fr; }
.pc-grid.n9 img { grid-column: span 4; }
.pc-grid.n10 { grid-template-rows: 1.3fr 1fr 1fr; }
.pc-grid.n10 img { grid-column: span 3; } .pc-grid.n10 img:nth-child(-n+2) { grid-column: span 6; }

/* ds-v383: several projects on a post, project poll options, private WIP note */
.proj-list { display: grid; gap: 0; margin: 8px 0; }
.proj-list .proj-card { margin: 4px 0; padding: 8px; }
.proj-list .proj-card .wip-thumb { width: 56px; height: 56px; }
.np-att-note { margin: 0 0 8px; }
.pk-priv { margin: -4px 0 8px; }
.np-opt-proj { align-items: center; }
.np-opt-img.proj { border-style: solid; cursor: default; }
.np-opt-img.proj svg { width: 22px; height: 22px; }
.np-opt-ptitle { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.np-opt-ptitle b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-opt-ptitle small { font-size: 12px; }
.np-opt-adds { display: flex; gap: 8px; flex-wrap: wrap; }
.np-opt-addp { background: none; border: 1px solid rgba(var(--acc-rgb), .5); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 600; }
.np-opt-useatt { justify-self: start; font-size: 13px; }
.poll-optwrap { display: flex; align-items: stretch; gap: 8px; width: 100%; padding: 4px; box-sizing: border-box; border: 1px solid rgba(var(--acc-rgb), .4); border-radius: 12px; background: rgba(var(--acc-rgb), .06); }
.poll:not(.ended) .poll-optwrap:hover { border-color: var(--accent); box-shadow: var(--glow-soft); }
.poll-optwrap.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--glow-soft); }
.poll-optwrap .poll-opt { flex: 1; min-width: 0; width: auto; padding: 0; border: 0; background: none; box-shadow: none; }
.poll-optwrap .poll-opt:hover { box-shadow: none; }
.poll-plink { text-decoration: none; color: inherit; }
.poll-plink svg { width: 22px; height: 22px; color: var(--accent); }
.poll .poll-optwrap .poll-opt, .poll .poll-optwrap .poll-opt:hover, .poll .poll-optwrap .poll-opt.mine { box-shadow: none !important; border: 0 !important; background: none !important; }
.proj-list .proj-card .wip-thumb, .np-att .proj-card .wip-thumb { width: 48px; height: 48px; }
.proj-list .proj-card .pc-bar { display: none; }
.proj-list .proj-card .pc-txt, .np-att .proj-card .pc-txt { gap: 2px; }
.proj-list .proj-card .pc-chips .fin-badge, .proj-list .proj-card .pc-chips .wip-status { font-size: 11px; }
.np-att { margin-bottom: 6px; }
.np-att .proj-card { margin: 0; padding: 8px; }
.np-att .proj-card .pc-bar { display: none; }

/* ds-v384: poll voter faces and the in-place list of who voted */
.poll-who { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 3px; padding: 0 8px 0 2px; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: right; }
button.poll-who { cursor: pointer; border-radius: 8px; }
button.poll-who:hover .poll-pct { text-decoration: underline; }
.poll .poll-who .poll-pct { position: static; white-space: nowrap; }
.poll-faces { display: flex; align-items: center; }
.poll-faces img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--card-bg, #1b1030); margin-left: -6px; background: rgba(var(--acc-rgb), .2); position: relative; }
.poll-faces img:first-child { margin-left: 0; }
.poll-faces i { font-style: normal; font-size: 11px; margin-left: 4px; opacity: .8; }
.poll-voters { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; margin: -2px 0 2px; border-radius: 10px; background: rgba(var(--acc-rgb), .08); max-height: 220px; overflow-y: auto; }
.poll-voters small { opacity: .7; }
.poll-voter { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: inherit; text-decoration: none; font-size: 14px; }
.poll-voter .avatar.sm { width: 24px; height: 24px; }
.poll-vmore { align-self: flex-start; background: none; border: 0; color: var(--accent); font: inherit; font-size: 13px; padding: 4px 0; cursor: pointer; }

/* ===== ds-v388: the speakeasy ("the dark side"). Near black, deep crimson and violet neon, a little smoke and ember. Only on its own page. ===== */
body.se-on, .se-modal-bg {
  --accent: #e8325f; --accent-fill: #b3123f; --accent-2: #b98cff; --accent-pale: #ffc1d1; --accent-deep: #2a0914; --acc-rgb: 232, 50, 95; --acc2-rgb: 185, 140, 255;
  --bg: #07040a; --card: #0d0610; --text: #f3e9ef; --muted: #b3a0ae; --line: #2a1320;
  --glow: 0 0 6px rgba(232,50,95,.55), 0 0 18px rgba(139,61,255,.28);
  --field: #150a17; --field-border: rgba(232,50,95,.4);
}
body.se-on { background-color: #07040a; background-image: radial-gradient(ellipse at 50% 112%, rgba(179,18,63,.34), transparent 60%), radial-gradient(ellipse at 0% 0%, rgba(110,40,200,.2), transparent 50%),
  linear-gradient(rgba(232,50,95,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(232,50,95,.03) 1px, transparent 1px); background-size: auto, auto, 22px 22px, 22px 22px; }
.se { position: relative; padding: 4px 2px 40px; isolation: isolate; }
.se-loading { text-align: center; padding: 60px 0; opacity: .7; letter-spacing: .08em; }
.se-smoke { position: absolute; inset: -20px -10px auto; height: 420px; z-index: -1; pointer-events: none; overflow: hidden; opacity: .7; }
.se-smoke::before, .se-smoke::after { content: ''; position: absolute; width: 320px; height: 260px; border-radius: 50%; filter: blur(46px); }
.se-smoke::before { left: -60px; top: 20px; background: radial-gradient(circle, rgba(139,61,255,.32), transparent 70%); animation: seDrift 16s ease-in-out infinite alternate; }
.se-smoke::after { right: -80px; top: 90px; background: radial-gradient(circle, rgba(232,50,95,.28), transparent 70%); animation: seDrift 20s ease-in-out infinite alternate-reverse; }
@keyframes seDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 24px) scale(1.15); } }
.se-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 6px; }
.se-back { color: var(--accent-pale); text-decoration: none; font-size: 14px; padding: 8px 4px; }
.se-more { position: relative; }
.se-head { text-align: center; padding: 6px 0 14px; }
.se-neon { display: inline-block; font-size: calc(30px * var(--ts, 1)); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffd6e0; text-shadow: 0 0 4px #ff5b86, 0 0 14px rgba(232,50,95,.9), 0 0 34px rgba(139,61,255,.7); animation: seFlicker 7s infinite; }
@keyframes seFlicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .72; } }
.se-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.se-modetext { margin: 4px 0 12px; min-height: 2.6em; }
.se-mode, .se-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(232,50,95,.08); border: 1px solid rgba(232,50,95,.28); }
.se-tabs { margin: 12px 0 14px; }
.se-mode button, .se-tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.se-mode button.on, .se-tabs button[aria-selected="true"] { background: linear-gradient(135deg, #b3123f, #6d28d9); color: #fff; box-shadow: 0 0 14px rgba(232,50,95,.45); }
.se-h { font-size: calc(18px * var(--ts, 1)); margin: 6px 0 4px; color: #ffe3ea; text-shadow: 0 0 10px rgba(232,50,95,.45); }
.se-add { width: 100%; margin: 8px 0 14px; background: linear-gradient(135deg, #c2154a, #6d28d9); border: 0; color: #fff; box-shadow: var(--glow); }
.se-shelf { margin: 0 0 18px; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, rgba(232,50,95,.07), rgba(13,6,16,.9)); border: 1px solid rgba(232,50,95,.3); box-shadow: inset 0 -18px 28px -22px rgba(232,50,95,.55); }
.se-shelf-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.se-shelf-h h3 { margin: 0; font-size: 16px; color: #ffe3ea; }
.se-shelf-h small { color: var(--accent-2); flex: 1; }
.se-count { font-size: 12px; color: var(--muted); }
.se-empty { margin: 8px 2px; color: var(--muted); font-size: 14px; font-style: italic; text-align: center; }
.se-book { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(232,50,95,.16); }
.se-book:first-of-type { border-top: 0; }
.se-cover { flex: none; width: 56px; height: 84px; border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, #2a0f24, #120618); border: 1px solid rgba(232,50,95,.4); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.6); }
.se-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.se-cover-ph { font-size: 26px; color: var(--accent); text-shadow: 0 0 10px rgba(232,50,95,.8); }
.se-binfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-right: 36px; }
.se-title { font-size: 15.5px; line-height: 1.25; overflow-wrap: anywhere; }
.se-author { font-size: 13px; color: var(--muted); }
.se-stars { color: #ff7a9c; letter-spacing: 2px; font-size: 14px; text-shadow: 0 0 8px rgba(232,50,95,.6); }
.se-note { margin: 4px 0 0; font-size: 13.5px; color: #e4d2dc; overflow-wrap: anywhere; }
.se-book .se-more, .se-post .se-more { position: absolute; top: 6px; right: 0; }
.se-invites { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(139,61,255,.1); border: 1px solid rgba(139,61,255,.35); }
.se-invites h3 { margin: 0 0 6px; font-size: 14px; }
.se-inv { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.se-inv span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.se-link { background: none; border: 0; color: var(--accent-2); font: inherit; font-size: 13px; padding: 6px 4px; cursor: pointer; text-decoration: underline; }
.se-compose { margin: 12px 0 16px; padding: 10px; border-radius: 14px; background: rgba(13,6,16,.9); border: 1px solid rgba(232,50,95,.35); }
.se-compose textarea { width: 100%; background: var(--field); color: var(--text); border: 1px solid var(--field-border); border-radius: 10px; padding: 10px; font: inherit; resize: vertical; }
.se-compose-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.se-attach { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-pale); font-size: 14px; cursor: pointer; padding: 8px 4px; }
.se-attach svg { width: 20px; height: 20px; }
.se-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.se-thumb { width: 64px; height: 64px; padding: 0; border: 1px solid rgba(232,50,95,.5); border-radius: 8px; overflow: hidden; background: none; cursor: pointer; }
.se-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.se-post { position: relative; margin: 0 0 12px; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, rgba(139,61,255,.07), rgba(13,6,16,.92)); border: 1px solid rgba(139,61,255,.3); }
.se-post header { display: flex; align-items: center; gap: 10px; padding-right: 36px; }
.se-post header > div { display: flex; flex-direction: column; min-width: 0; }
.se-pname { color: #ffe3ea; font-weight: 700; text-decoration: none; font-size: 14.5px; }
.se-post small { color: var(--muted); }
.se-pbody { margin: 8px 0 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.se-photos { display: grid; gap: 6px; margin-top: 10px; }
.se-photos.n1 { grid-template-columns: 1fr; } .se-photos.n2, .se-photos.n4 { grid-template-columns: 1fr 1fr; } .se-photos.n3 { grid-template-columns: 1fr 1fr 1fr; }
.se-photos img { width: 100%; border-radius: 10px; display: block; object-fit: cover; max-height: 420px; }
.se-photos.n2 img, .se-photos.n3 img, .se-photos.n4 img { aspect-ratio: 1; }
.se-more-posts { display: block; margin: 10px auto; background: none; border: 1px solid rgba(232,50,95,.4); color: var(--accent-pale); border-radius: 999px; padding: 8px 16px; font: inherit; cursor: pointer; }
.se-form .se-rate { display: flex; gap: 4px; }
.se-form .se-rate button { background: none; border: 0; font-size: 28px; line-height: 1; color: #4a2a3a; cursor: pointer; padding: 4px; }
.se-form .se-rate button.on { color: #ff7a9c; text-shadow: 0 0 10px rgba(232,50,95,.8); }
.se-coverpick { display: flex; align-items: center; gap: 14px; }
.se-modal-bg .modal { background: #0d0610; border: 1px solid rgba(232,50,95,.45); box-shadow: 0 0 30px rgba(232,50,95,.25); }
.se-modal-bg select { width: 100%; }
.profile-head h2 { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* the hidden door */
.se-door { position: fixed; inset: 0; z-index: 9999; pointer-events: all; overflow: hidden; }
.se-door i { position: absolute; top: 0; bottom: 0; width: 50.5%; background: #07040a linear-gradient(180deg, #14060d, #07040a 60%, #1a0612); transition: transform .5s cubic-bezier(.6, 0, .3, 1); }
.se-door .se-l { left: 0; box-shadow: inset -2px 0 24px rgba(232,50,95,.55); }
.se-door .se-r { right: 0; box-shadow: inset 2px 0 24px rgba(139,61,255,.55); }
.se-door .se-seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: linear-gradient(180deg, transparent, #ff5b86, #b98cff, transparent); box-shadow: 0 0 22px 6px rgba(232,50,95,.8); animation: seSeam .28s ease-out backwards; transition: opacity .45s ease-in; }
@keyframes seSeam { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: scaleY(1); } }
.se-door.open .se-l { transform: translateX(-102%); } .se-door.open .se-r { transform: translateX(102%); } .se-door.open .se-seam { opacity: 0; }
.se-door.open { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .se-door i, .se-door .se-seam { transition: opacity .4s; animation: none; } .se-door.open .se-l, .se-door.open .se-r { transform: none; opacity: 0; } .se-smoke::before, .se-smoke::after, .se-neon { animation: none; } }

.se-modal-bg .modal { max-height: calc(100dvh - 28px); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 16px; }
.se-modal-bg .field { margin-bottom: 10px; }
.se-pick { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(232,50,95,.5); border-radius: 999px; color: var(--accent-pale); font-size: 14px; cursor: pointer; }
.se-pick svg { width: 20px; height: 20px; flex: none; }
.se-coverpick .se-link { display: block; margin-top: 4px; }

/* ds-v390: the access setting lives in the owner's menu; one small label by the title shows the current choice */
.se-lock { display: block; width: fit-content; margin: 6px auto 0; padding: 2px 10px; border-radius: 999px; font-size: 12px; color: var(--accent-pale); border: 1px solid rgba(232,50,95,.4); background: rgba(232,50,95,.08); letter-spacing: .02em; }
.se-access { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 0; }
.se-access button { display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 8px 6px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.se-access button.on { background: rgba(232,50,95,.12); }
.se-access .se-tick { flex: none; width: 18px; color: #ff7a9c; font-weight: 700; }
.se-access button span:last-child { display: flex; flex-direction: column; min-width: 0; }
.se-access small { color: var(--muted); font-size: 12.5px; }

/* ds-v391: the Colors, Coverage and Drill type boxes match the other kit fields */
.field.two #k_colors, .field.two #k_cov, .field.two #k_drill { width: 100%; box-sizing: border-box; border-radius: 12px; padding: 12px 14px; font: inherit; min-height: 46px; }

/* ===== ds-v392: the speakeasy starts at the top of the screen (the app header steps aside; the status bar inset stays), and a lockup title ===== */
body.se-on .top { display: none; }
body.se-on .sb-strip { opacity: 1; background: #07040a; }   /* the status bar area stays solid while the page scrolls under it */
body.se-on .se { padding-top: calc(env(safe-area-inset-top, 0px) + 6px); }
@media (display-mode: standalone) { body.se-on .se { padding-top: calc(var(--sat) + 6px); } }
.se-head { padding: 2px 0 12px; }
.se-logo { margin: 0; display: flex; flex-direction: column; align-items: center; font: inherit; line-height: 1; }
.se-bookish { font-family: 'Mr Dafoe', cursive; font-weight: 400; font-size: calc(40px * var(--ts, 1)); line-height: 1.25; padding: 4px 14px 0; transform: rotate(-6deg); transform-origin: 50% 70%; color: #ff5b86;
  text-shadow: 0 0 4px #ff2f64, 0 0 12px rgba(232,50,95,.9), 0 0 26px rgba(232,50,95,.55), 0 0 46px rgba(139,61,255,.55); }
.se-logo .se-neon { font-size: calc(27px * var(--ts, 1)); margin-top: 5px; }
@media (prefers-reduced-motion: reduce) { .se-bookish { text-shadow: 0 0 4px #ff2f64, 0 0 14px rgba(232,50,95,.8); } }

/* ===== ds-v395: one shared wall; shelves say whose they are ===== */
.se-whose { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 12px; padding: 10px 12px; border-radius: 14px; background: rgba(139,61,255,.08); border: 1px solid rgba(139,61,255,.28); }
.se-whose-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.se-whose-who span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.se-whose-who small { color: var(--muted); font-size: 12px; }
.se-whose-who b { font-size: 16px; color: var(--accent-pale); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-whose .se-add { margin: 0; flex: none; }
.se-whose .se-link { flex: none; font-size: 13px; }
.se-flag { margin-left: auto; margin-right: 6px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #ffd6e0; background: rgba(232,50,95,.25); border: 1px solid rgba(232,50,95,.6); }
.se-post header .se-flag + .se-more { margin-left: 0; }
.se-whose .se-add { width: auto; }

/* ds-v396: replies, gems and edit on the wall */
.se-foot { display: flex; align-items: center; gap: 4px; margin-top: 8px; margin-left: -6px; }
.se-act { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; padding: 6px; min-height: 36px; border-radius: 10px; cursor: pointer; }
.se-act span:last-child:empty { display: none; }
.se-act svg { width: 20px; height: 20px; }
.se-act.on { color: #ffd6e0; }
.se-act .gem svg { width: 21px; height: 21px; }
.se-link { background: none; border: 0; color: var(--accent-pale); font: inherit; font-size: 13px; cursor: pointer; padding: 6px 4px; }
.se-post.full { margin-bottom: 8px; }
.se-reply { margin: 0 0 14px; }
.se-replyto { font-size: 13px; color: var(--muted); padding: 0 4px 6px; display: flex; align-items: center; gap: 8px; }
.se-reply-row { display: flex; gap: 8px; align-items: center; }
.se-reply-row input { flex: 1; min-width: 0; background: var(--field); color: var(--text); border: 1px solid var(--field-border); border-radius: 999px; padding: 10px 14px; font: inherit; }
.se-send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(232,50,95,.5); background: rgba(232,50,95,.18); color: #ffd6e0; display: grid; place-items: center; cursor: pointer; }
.se-send svg { width: 18px; height: 18px; }
.se-c { position: relative; display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(139,61,255,.18); }
.se-c.reply { margin-left: 38px; }
.se-c.gone { color: var(--muted); font-style: italic; }
.se-c .avatar { width: 30px; height: 30px; flex: none; }
.se-cb { flex: 1; min-width: 0; }
.se-cmeta { display: flex; align-items: center; gap: 8px; position: relative; padding-right: 34px; flex-wrap: wrap; }
.se-cmeta small { color: var(--muted); }
.se-cmeta .se-more { position: absolute; top: -6px; right: -4px; }
.se-cmeta .se-flag { margin-left: 0; }
.se-ctext { margin: 2px 0 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.se-at { color: var(--accent-pale); font-weight: 600; }
.se-cact { display: flex; align-items: center; gap: 10px; margin: 2px 0 0 -6px; }
.se-cact .se-act { min-height: 30px; font-size: 13px; }
.se-cact .gem svg { width: 17px; height: 17px; }
.se-edit { width: 100%; background: var(--field); color: var(--text); border: 1px solid var(--field-border); border-radius: 10px; padding: 8px 10px; font: inherit; resize: vertical; }
.se-editrow { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 6px; }

/* ds-v397: nooks */
.se-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -4px 12px; padding: 2px 4px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.se-chips::-webkit-scrollbar { display: none; }
.se-chip { flex: none; background: rgba(13,6,16,.85); color: var(--text); border: 1px solid rgba(139,61,255,.4); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; text-decoration: none; }
.se-chip.on { background: linear-gradient(135deg, #c2185b, #7b2cd9); border-color: transparent; color: #fff; }
.se-chip-add { color: var(--accent-pale); border-style: dashed; padding: 7px 12px; }
.se-nook { margin: 0 0 14px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(139,61,255,.32); background: linear-gradient(180deg, rgba(139,61,255,.08), rgba(13,6,16,.92)); }
.se-ncover { display: block; width: 100%; height: 120px; object-fit: cover; }
.se-nbar { display: flex; align-items: flex-start; gap: 10px; padding: 12px; position: relative; }
.se-ntext { flex: 1; min-width: 0; }
.se-ntext .se-h { margin: 0; text-align: left; font-size: 20px; }
.se-ndesc { margin: 4px 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.se-ntext small { color: var(--muted); }
.se-nbar .se-more { position: static; flex: none; }
.se-pill { flex: none; background: none; color: var(--accent-pale); border: 1px solid rgba(232,50,95,.55); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.se-pill.on { background: rgba(232,50,95,.2); color: #ffd6e0; }
.se-ntag { color: var(--accent-pale); text-decoration: none; }
.se-nlist { max-height: 50vh; overflow-y: auto; margin-bottom: 10px; }
.se-nrow { display: flex; flex-direction: column; gap: 2px; padding: 10px 4px; border-top: 1px solid rgba(139,61,255,.2); color: var(--text); text-decoration: none; }
.se-nrow small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ds-v398: admin database viewer */
.ad-range.three { grid-template-columns: repeat(3, 1fr); }
.ad-range.two { grid-template-columns: repeat(2, 1fr); margin-bottom: 12px; }
.ad-g3 { grid-template-columns: repeat(3, 1fr); }
.adb-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n b" "i s"; gap: 3px 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06); align-items: center; }
.adb-row:last-child { border-bottom: 0; }
.adb-n { grid-area: n; font-weight: 700; overflow-wrap: anywhere; font-size: calc(14px * var(--ts, 1)); }
.adb-row b { grid-area: b; text-align: right; font-size: calc(15px * var(--ts, 1)); }
.adb-row small { grid-area: s; text-align: right; color: var(--muted); font-size: calc(12px * var(--ts, 1)); }
.adb-row i { grid-area: i; height: 6px; border-radius: 4px; background: rgba(var(--acc-rgb), .15); position: relative; overflow: hidden; }
.adb-row i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--accent); box-shadow: 0 0 8px rgba(var(--acc-rgb), .6); border-radius: 4px; }
.adb-all { display: block; margin: 10px auto 0; }
.adb-top > div { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.adb-top > div:last-child { border-bottom: 0; }
.adb-top em { flex: none; width: 24px; text-align: center; font-style: normal; font-weight: 800; color: var(--accent); }
.adb-top b:last-child { flex: none; font-size: calc(17px * var(--ts, 1)); }
.adb-tools { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.adb-tools input { grid-column: 1 / -1; }
.adb-tools input, .adb-tools select, .adb-dir { background: var(--field); color: var(--text); border: 1px solid var(--field-border); border-radius: 10px; padding: 9px 10px; font: inherit; }
.adb-dir { cursor: pointer; font-weight: 700; }
.adb-kits { margin-top: 6px; }
.adb-kit { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.06); color: inherit; font: inherit; padding: 9px 0; cursor: pointer; }
.adb-kit .ad-who small { white-space: normal; }
.adb-chev { color: var(--accent); font-size: 22px; }
.adb-h { margin: 0 0 8px; font-size: calc(18px * var(--ts, 1)); overflow-wrap: anywhere; }
.adb-photo { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; margin-bottom: 8px; background: rgba(0,0,0,.2); }
.adb-kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.adb-kv span { color: var(--muted); flex: none; }
.adb-kv b { text-align: right; overflow-wrap: anywhere; font-weight: 600; }

/* ds-v401: book catalog suggestions, import progress, shelf menu */
.se-whose-btns { display: flex; align-items: center; gap: 2px; flex: none; }
.se-whose-btns .se-more { position: relative; }
.se-when { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.bk-sug { margin-top: 6px; }
.ks-img.bk-img { width: 36px; height: 52px; border-radius: 5px; }
.bi-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(var(--acc-rgb), .35); overflow: hidden; margin: 8px 0 10px; }
.bi-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #8b3dff); box-shadow: 0 0 10px rgba(var(--acc-rgb), .6); transition: width .25s ease; }
.imp-sheet .bi-skip { margin: 0 0 6px; color: var(--muted); }
:where(html[data-theme="light"]) .bi-bar { background: rgba(0,0,0,.07); }
.se-link[hidden] { display: none; }

/* ds-v404:groups-themes:start (generated by scripts/gen-group-theme-css.js, do not edit by hand) */
.gc-3d_puzzle,.gc-3d_printing{--accent:#2ee6d6;--accent-fill:#0b7f78;--accent-2:rgb(109,238,226);--accent-pale:rgb(196,248,244);--accent-deep:rgb(18,41,45);--acc-rgb:46,230,214;--acc2-rgb:109,238,226;--accent-soft:rgba(46,230,214,.55);--gdeep:rgb(18,41,45);--glow:0 0 6px rgba(46,230,214,.55),0 0 18px rgba(46,230,214,.25);--glow-card:0 0 1px rgba(46,230,214,.95),0 0 10px rgba(46,230,214,.6),0 0 26px rgba(46,230,214,.4),0 0 60px rgba(46,230,214,.24),inset 0 0 18px rgba(46,230,214,.12);--glow-soft:0 0 6px rgba(46,230,214,.6),0 0 16px rgba(46,230,214,.28);--glow-avatar:0 0 5px rgba(46,230,214,.75),0 0 14px rgba(46,230,214,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2740%27 height=%2746%27 viewBox=%270 0 40 46%27%3E%3Cpath d=%27M20 3l15 8.5v17L20 37 5 28.5v-17zM20 20l15-8.5M20 20v17M20 20L5 11.5%27 fill=%27none%27 stroke=%27%232ee6d6%27 stroke-opacity=%270.3%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}
.gc-beads{--accent:#b6f04a;--accent-fill:#3f7d0e;--accent-2:rgb(204,245,128);--accent-pale:rgb(235,251,204);--accent-deep:rgb(37,42,26);--acc-rgb:182,240,74;--acc2-rgb:204,245,128;--accent-soft:rgba(182,240,74,.55);--gdeep:rgb(37,42,26);--glow:0 0 6px rgba(182,240,74,.55),0 0 18px rgba(182,240,74,.25);--glow-card:0 0 1px rgba(182,240,74,.95),0 0 10px rgba(182,240,74,.6),0 0 26px rgba(182,240,74,.4),0 0 60px rgba(182,240,74,.24),inset 0 0 18px rgba(182,240,74,.12);--glow-soft:0 0 6px rgba(182,240,74,.6),0 0 16px rgba(182,240,74,.28);--glow-avatar:0 0 5px rgba(182,240,74,.75),0 0 14px rgba(182,240,74,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2748%27 height=%2730%27 viewBox=%270 0 48 30%27%3E%3Cpath d=%27M0 15C12 3 36 27 48 15%27 fill=%27none%27 stroke=%27%23b6f04a%27 stroke-opacity=%270.3%27 stroke-width=%271.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Ccircle cx=%276%27 cy=%2710%27 r=%273.6%27 fill=%27%23b6f04a%27 fill-opacity=%27.4%27/%3E%3Ccircle cx=%2718%27 cy=%2719%27 r=%273.6%27 fill=%27%23b6f04a%27 fill-opacity=%27.3%27/%3E%3Ccircle cx=%2730%27 cy=%2721%27 r=%273.6%27 fill=%27%23b6f04a%27 fill-opacity=%27.4%27/%3E%3Ccircle cx=%2742%27 cy=%2711%27 r=%273.6%27 fill=%27%23b6f04a%27 fill-opacity=%27.3%27/%3E%3C/svg%3E")}
.gc-book_club{--accent:#e8b86b;--accent-fill:#8c2f4a;--accent-2:rgb(239,205,151);--accent-pale:rgb(249,235,214);--accent-deep:rgb(44,34,30);--acc-rgb:232,184,107;--acc2-rgb:239,205,151;--accent-soft:rgba(232,184,107,.55);--gdeep:rgb(44,34,30);--glow:0 0 6px rgba(232,184,107,.55),0 0 18px rgba(232,184,107,.25);--glow-card:0 0 1px rgba(232,184,107,.95),0 0 10px rgba(232,184,107,.6),0 0 26px rgba(232,184,107,.4),0 0 60px rgba(232,184,107,.24),inset 0 0 18px rgba(232,184,107,.12);--glow-soft:0 0 6px rgba(232,184,107,.6),0 0 16px rgba(232,184,107,.28);--glow-avatar:0 0 5px rgba(232,184,107,.75),0 0 14px rgba(232,184,107,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2760%27 height=%2740%27 viewBox=%270 0 60 40%27%3E%3Cpath d=%27M0 12h60M0 24h60M0 36h60%27 stroke=%27%23e8b86b%27 stroke-opacity=%27.1%27/%3E%3Cpath d=%27M8 36V8h7v28zM17 36V12h6v24zM25 36V6h8v30zM35 36V14h6v22z%27 fill=%27%23e8b86b%27 fill-opacity=%27.16%27 stroke=%27%23e8b86b%27 stroke-opacity=%27.3%27/%3E%3C/svg%3E")}
.gc-coloring{--accent:#ff9f43;--accent-fill:#b4530a;--accent-2:rgb(255,188,123);--accent-pale:rgb(255,228,202);--accent-deep:rgb(47,31,25);--acc-rgb:255,159,67;--acc2-rgb:255,188,123;--accent-soft:rgba(255,159,67,.55);--gdeep:rgb(47,31,25);--glow:0 0 6px rgba(255,159,67,.55),0 0 18px rgba(255,159,67,.25);--glow-card:0 0 1px rgba(255,159,67,.95),0 0 10px rgba(255,159,67,.6),0 0 26px rgba(255,159,67,.4),0 0 60px rgba(255,159,67,.24),inset 0 0 18px rgba(255,159,67,.12);--glow-soft:0 0 6px rgba(255,159,67,.6),0 0 16px rgba(255,159,67,.28);--glow-avatar:0 0 5px rgba(255,159,67,.75),0 0 14px rgba(255,159,67,.35);--gpat:repeating-linear-gradient(115deg, rgba(255,95,95,.22) 0 10px, rgba(255,184,77,.22) 10px 20px, rgba(255,235,80,.2) 20px 30px, rgba(90,220,140,.2) 30px 40px, rgba(90,170,255,.22) 40px 50px, rgba(190,120,255,.22) 50px 60px)}
.gc-crochet{--accent:#ff8f7a;--accent-fill:#b83d28;--accent-2:rgb(255,177,162);--accent-pale:rgb(255,224,218);--accent-deep:rgb(47,29,33);--acc-rgb:255,143,122;--acc2-rgb:255,177,162;--accent-soft:rgba(255,143,122,.55);--gdeep:rgb(47,29,33);--glow:0 0 6px rgba(255,143,122,.55),0 0 18px rgba(255,143,122,.25);--glow-card:0 0 1px rgba(255,143,122,.95),0 0 10px rgba(255,143,122,.6),0 0 26px rgba(255,143,122,.4),0 0 60px rgba(255,143,122,.24),inset 0 0 18px rgba(255,143,122,.12);--glow-soft:0 0 6px rgba(255,143,122,.6),0 0 16px rgba(255,143,122,.28);--glow-avatar:0 0 5px rgba(255,143,122,.75),0 0 14px rgba(255,143,122,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2740%27 height=%2728%27 viewBox=%270 0 40 28%27%3E%3Cpath d=%27M2 14a8 8 0 0116 0a8 8 0 0116 0M2 26a8 8 0 0116 0a8 8 0 0116 0%27 fill=%27none%27 stroke=%27%23ff8f7a%27 stroke-opacity=%270.38%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Ccircle cx=%2710%27 cy=%276%27 r=%271.6%27 fill=%27%23ff8f7a%27 fill-opacity=%27.35%27/%3E%3Ccircle cx=%2730%27 cy=%276%27 r=%271.6%27 fill=%27%23ff8f7a%27 fill-opacity=%27.35%27/%3E%3C/svg%3E")}
.gc-cross_stitch{--accent:#ff4d6d;--accent-fill:#c4163b;--accent-2:rgb(255,130,153);--accent-pale:rgb(255,205,214);--accent-deep:rgb(47,19,31);--acc-rgb:255,77,109;--acc2-rgb:255,130,153;--accent-soft:rgba(255,77,109,.55);--gdeep:rgb(47,19,31);--glow:0 0 6px rgba(255,77,109,.55),0 0 18px rgba(255,77,109,.25);--glow-card:0 0 1px rgba(255,77,109,.95),0 0 10px rgba(255,77,109,.6),0 0 26px rgba(255,77,109,.4),0 0 60px rgba(255,77,109,.24),inset 0 0 18px rgba(255,77,109,.12);--glow-soft:0 0 6px rgba(255,77,109,.6),0 0 16px rgba(255,77,109,.28);--glow-avatar:0 0 5px rgba(255,77,109,.75),0 0 14px rgba(255,77,109,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M0 .5h24M.5 0v24%27 stroke=%27%23ff4d6d%27 stroke-opacity=%27.12%27/%3E%3Cpath d=%27M5 5l6 6M11 5l-6 6M13 13l6 6M19 13l-6 6%27 fill=%27none%27 stroke=%27%23ff4d6d%27 stroke-opacity=%270.5%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}
.gc-culinary{--accent:#ff5a36;--accent-fill:#b53112;--accent-2:rgb(255,140,114);--accent-pale:rgb(255,209,199);--accent-deep:rgb(47,21,23);--acc-rgb:255,90,54;--acc2-rgb:255,140,114;--accent-soft:rgba(255,90,54,.55);--gdeep:rgb(47,21,23);--glow:0 0 6px rgba(255,90,54,.55),0 0 18px rgba(255,90,54,.25);--glow-card:0 0 1px rgba(255,90,54,.95),0 0 10px rgba(255,90,54,.6),0 0 26px rgba(255,90,54,.4),0 0 60px rgba(255,90,54,.24),inset 0 0 18px rgba(255,90,54,.12);--glow-soft:0 0 6px rgba(255,90,54,.6),0 0 16px rgba(255,90,54,.28);--glow-avatar:0 0 5px rgba(255,90,54,.75),0 0 14px rgba(255,90,54,.35);--gpat:linear-gradient(90deg, rgba(255,255,255,.07) 50%, transparent 0) 0 0/36px 36px, linear-gradient(rgba(255,255,255,.07) 50%, transparent 0) 0 0/36px 36px, linear-gradient(90deg, #ff5a3622 0 0)}
.gc-drawing{--accent:#f5e05a;--accent-fill:#826a00;--accent-2:rgb(248,233,140);--accent-pale:rgb(252,246,209);--accent-deep:rgb(45,40,28);--acc-rgb:245,224,90;--acc2-rgb:248,233,140;--accent-soft:rgba(245,224,90,.55);--gdeep:rgb(45,40,28);--glow:0 0 6px rgba(245,224,90,.55),0 0 18px rgba(245,224,90,.25);--glow-card:0 0 1px rgba(245,224,90,.95),0 0 10px rgba(245,224,90,.6),0 0 26px rgba(245,224,90,.4),0 0 60px rgba(245,224,90,.24),inset 0 0 18px rgba(245,224,90,.12);--glow-soft:0 0 6px rgba(245,224,90,.6),0 0 16px rgba(245,224,90,.28);--glow-avatar:0 0 5px rgba(245,224,90,.75),0 0 14px rgba(245,224,90,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2760%27 height=%2740%27 viewBox=%270 0 60 40%27%3E%3Cpath d=%27M2 30C14 8 24 38 36 16s16 6 22-6M4 8c8 2 14 0 20-3%27 fill=%27none%27 stroke=%27%23f5e05a%27 stroke-opacity=%270.3%27 stroke-width=%271.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Cpath d=%27M0 39.5h60%27 stroke=%27%23f5e05a%27 stroke-opacity=%27.1%27/%3E%3C/svg%3E")}
.gc-embroidery{--accent:#ff7aa2;--accent-fill:#bd2a5c;--accent-2:rgb(255,162,190);--accent-pale:rgb(255,218,229);--accent-deep:rgb(47,26,38);--acc-rgb:255,122,162;--acc2-rgb:255,162,190;--accent-soft:rgba(255,122,162,.55);--gdeep:rgb(47,26,38);--glow:0 0 6px rgba(255,122,162,.55),0 0 18px rgba(255,122,162,.25);--glow-card:0 0 1px rgba(255,122,162,.95),0 0 10px rgba(255,122,162,.6),0 0 26px rgba(255,122,162,.4),0 0 60px rgba(255,122,162,.24),inset 0 0 18px rgba(255,122,162,.12);--glow-soft:0 0 6px rgba(255,122,162,.6),0 0 16px rgba(255,122,162,.28);--glow-avatar:0 0 5px rgba(255,122,162,.75),0 0 14px rgba(255,122,162,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2760%27 height=%2760%27 viewBox=%270 0 60 60%27%3E%3Ccircle cx=%2730%27 cy=%2730%27 r=%2722%27 fill=%27none%27 stroke=%27%23ff7aa2%27 stroke-opacity=%270.24%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Ccircle cx=%2730%27 cy=%2730%27 r=%2717%27 fill=%27none%27 stroke=%27%23ff7aa2%27 stroke-opacity=%270.14%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Cpath d=%27M18 38c6-14 18-14 24-2M30 36c0-8 2-12 6-15M24 30c-3-4-2-8 2-10%27 fill=%27none%27 stroke=%27%23ff7aa2%27 stroke-opacity=%270.4%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Ccircle cx=%2736%27 cy=%2721%27 r=%272.6%27 fill=%27%23ff7aa2%27 fill-opacity=%27.4%27/%3E%3C/svg%3E")}
.gc-knitting{--accent:#6aa9ff;--accent-fill:#2a62c9;--accent-2:rgb(151,195,255);--accent-pale:rgb(213,231,255);--accent-deep:rgb(26,32,51);--acc-rgb:106,169,255;--acc2-rgb:151,195,255;--accent-soft:rgba(106,169,255,.55);--gdeep:rgb(26,32,51);--glow:0 0 6px rgba(106,169,255,.55),0 0 18px rgba(106,169,255,.25);--glow-card:0 0 1px rgba(106,169,255,.95),0 0 10px rgba(106,169,255,.6),0 0 26px rgba(106,169,255,.4),0 0 60px rgba(106,169,255,.24),inset 0 0 18px rgba(106,169,255,.12);--glow-soft:0 0 6px rgba(106,169,255,.6),0 0 16px rgba(106,169,255,.28);--glow-avatar:0 0 5px rgba(106,169,255,.75),0 0 14px rgba(106,169,255,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2728%27 viewBox=%270 0 24 28%27%3E%3Cpath d=%27M2 3l5 8 5-8M12 3l5 8 5-8M2 17l5 8 5-8M12 17l5 8 5-8%27 fill=%27none%27 stroke=%27%236aa9ff%27 stroke-opacity=%270.38%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}
.gc-leather{--accent:#d9954a;--accent-fill:#94531a;--accent-2:rgb(228,181,128);--accent-pale:rgb(244,225,204);--accent-deep:rgb(42,29,26);--acc-rgb:217,149,74;--acc2-rgb:228,181,128;--accent-soft:rgba(217,149,74,.55);--gdeep:rgb(42,29,26);--glow:0 0 6px rgba(217,149,74,.55),0 0 18px rgba(217,149,74,.25);--glow-card:0 0 1px rgba(217,149,74,.95),0 0 10px rgba(217,149,74,.6),0 0 26px rgba(217,149,74,.4),0 0 60px rgba(217,149,74,.24),inset 0 0 18px rgba(217,149,74,.12);--glow-soft:0 0 6px rgba(217,149,74,.6),0 0 16px rgba(217,149,74,.28);--glow-avatar:0 0 5px rgba(217,149,74,.75),0 0 14px rgba(217,149,74,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2732%27 height=%2732%27 viewBox=%270 0 32 32%27%3E%3Cpath d=%27M2 2h28v28H2z%27 stroke=%27%23d9954a%27 stroke-opacity=%27.28%27 stroke-dasharray=%274 3%27 fill=%27none%27/%3E%3Cpath d=%27M16 8c5 3 5 13 0 16C11 21 11 11 16 8z%27 fill=%27none%27 stroke=%27%23d9954a%27 stroke-opacity=%270.22%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}
.gc-lego{--accent:#ffd21f;--accent-fill:#c91f2a;--accent-2:rgb(255,224,98);--accent-pale:rgb(255,242,192);--accent-deep:rgb(47,38,20);--acc-rgb:255,210,31;--acc2-rgb:255,224,98;--accent-soft:rgba(255,210,31,.55);--gdeep:rgb(47,38,20);--glow:0 0 6px rgba(255,210,31,.55),0 0 18px rgba(255,210,31,.25);--glow-card:0 0 1px rgba(255,210,31,.95),0 0 10px rgba(255,210,31,.6),0 0 26px rgba(255,210,31,.4),0 0 60px rgba(255,210,31,.24),inset 0 0 18px rgba(255,210,31,.12);--glow-soft:0 0 6px rgba(255,210,31,.6),0 0 16px rgba(255,210,31,.28);--glow-avatar:0 0 5px rgba(255,210,31,.75),0 0 14px rgba(255,210,31,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2740%27 height=%2740%27 viewBox=%270 0 40 40%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%276%27 fill=%27none%27 stroke=%27%23ffd21f%27 stroke-opacity=%270.38%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Ccircle cx=%2730%27 cy=%2710%27 r=%276%27 fill=%27none%27 stroke=%27%23ffd21f%27 stroke-opacity=%270.38%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Ccircle cx=%2710%27 cy=%2730%27 r=%276%27 fill=%27none%27 stroke=%27%23ffd21f%27 stroke-opacity=%270.38%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Ccircle cx=%2730%27 cy=%2730%27 r=%276%27 fill=%27none%27 stroke=%27%23ffd21f%27 stroke-opacity=%270.38%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}
.gc-macrame{--accent:#e6cfa0;--accent-fill:#7d5a24;--accent-2:rgb(238,221,189);--accent-pale:rgb(248,242,228);--accent-deep:rgb(43,38,38);--acc-rgb:230,207,160;--acc2-rgb:238,221,189;--accent-soft:rgba(230,207,160,.55);--gdeep:rgb(43,38,38);--glow:0 0 6px rgba(230,207,160,.55),0 0 18px rgba(230,207,160,.25);--glow-card:0 0 1px rgba(230,207,160,.95),0 0 10px rgba(230,207,160,.6),0 0 26px rgba(230,207,160,.4),0 0 60px rgba(230,207,160,.24),inset 0 0 18px rgba(230,207,160,.12);--glow-soft:0 0 6px rgba(230,207,160,.6),0 0 16px rgba(230,207,160,.28);--glow-avatar:0 0 5px rgba(230,207,160,.75),0 0 14px rgba(230,207,160,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2730%27 height=%2740%27 viewBox=%270 0 30 40%27%3E%3Cpath d=%27M15 0v10M15 10c-8 4-9 12-5 18M15 10c8 4 9 12 5 18M10 28l5 8 5-8M0 5l8 6M30 5l-8 6%27 fill=%27none%27 stroke=%27%23e6cfa0%27 stroke-opacity=%270.36%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}
.gc-model_kits{--accent:#a6d65a;--accent-fill:#4a7a0e;--accent-2:rgb(193,226,140);--accent-pale:rgb(230,244,209);--accent-deep:rgb(34,39,28);--acc-rgb:166,214,90;--acc2-rgb:193,226,140;--accent-soft:rgba(166,214,90,.55);--gdeep:rgb(34,39,28);--glow:0 0 6px rgba(166,214,90,.55),0 0 18px rgba(166,214,90,.25);--glow-card:0 0 1px rgba(166,214,90,.95),0 0 10px rgba(166,214,90,.6),0 0 26px rgba(166,214,90,.4),0 0 60px rgba(166,214,90,.24),inset 0 0 18px rgba(166,214,90,.12);--glow-soft:0 0 6px rgba(166,214,90,.6),0 0 16px rgba(166,214,90,.28);--glow-avatar:0 0 5px rgba(166,214,90,.75),0 0 14px rgba(166,214,90,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2756%27 height=%2740%27 viewBox=%270 0 56 40%27%3E%3Cpath d=%27M0 20h56M18 0v40M40 0v40M6 6h8M22 26h14M44 8h8%27 fill=%27none%27 stroke=%27%23a6d65a%27 stroke-opacity=%270.26%27 stroke-width=%271%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Ccircle cx=%279%27 cy=%2730%27 r=%271.8%27 fill=%27%23a6d65a%27 fill-opacity=%27.4%27/%3E%3Ccircle cx=%2747%27 cy=%2730%27 r=%271.8%27 fill=%27%23a6d65a%27 fill-opacity=%27.4%27/%3E%3C/svg%3E")}
.gc-painting{--accent:#ff4fd8;--accent-fill:#b0149a;--accent-2:rgb(255,132,228);--accent-pale:rgb(255,206,244);--accent-deep:rgb(47,20,46);--acc-rgb:255,79,216;--acc2-rgb:255,132,228;--accent-soft:rgba(255,79,216,.55);--gdeep:rgb(47,20,46);--glow:0 0 6px rgba(255,79,216,.55),0 0 18px rgba(255,79,216,.25);--glow-card:0 0 1px rgba(255,79,216,.95),0 0 10px rgba(255,79,216,.6),0 0 26px rgba(255,79,216,.4),0 0 60px rgba(255,79,216,.24),inset 0 0 18px rgba(255,79,216,.12);--glow-soft:0 0 6px rgba(255,79,216,.6),0 0 16px rgba(255,79,216,.28);--glow-avatar:0 0 5px rgba(255,79,216,.75),0 0 14px rgba(255,79,216,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2770%27 height=%2750%27 viewBox=%270 0 70 50%27%3E%3Ccircle cx=%2710%27 cy=%2712%27 r=%276%27 fill=%27%23ff5fd2%27 fill-opacity=%27.3%27/%3E%3Ccircle cx=%2734%27 cy=%2736%27 r=%279%27 fill=%27%235ec8ff%27 fill-opacity=%27.26%27/%3E%3Ccircle cx=%2756%27 cy=%2714%27 r=%275%27 fill=%27%23ffd84d%27 fill-opacity=%27.3%27/%3E%3Ccircle cx=%2722%27 cy=%2728%27 r=%272.6%27 fill=%27%237dffb0%27 fill-opacity=%27.35%27/%3E%3Ccircle cx=%2762%27 cy=%2740%27 r=%273.2%27 fill=%27%23ff5fd2%27 fill-opacity=%27.35%27/%3E%3Ccircle cx=%2746%27 cy=%276%27 r=%271.8%27 fill=%27%235ec8ff%27 fill-opacity=%27.4%27/%3E%3C/svg%3E")}
.gc-punch_needle{--accent:#9b8cff;--accent-fill:#5a46d6;--accent-2:rgb(185,175,255);--accent-pale:rgb(227,223,255);--accent-deep:rgb(33,28,51);--acc-rgb:155,140,255;--acc2-rgb:185,175,255;--accent-soft:rgba(155,140,255,.55);--gdeep:rgb(33,28,51);--glow:0 0 6px rgba(155,140,255,.55),0 0 18px rgba(155,140,255,.25);--glow-card:0 0 1px rgba(155,140,255,.95),0 0 10px rgba(155,140,255,.6),0 0 26px rgba(155,140,255,.4),0 0 60px rgba(155,140,255,.24),inset 0 0 18px rgba(155,140,255,.12);--glow-soft:0 0 6px rgba(155,140,255,.6),0 0 16px rgba(155,140,255,.28);--glow-avatar:0 0 5px rgba(155,140,255,.75),0 0 14px rgba(155,140,255,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2736%27 height=%2724%27 viewBox=%270 0 36 24%27%3E%3Cpath d=%27M0 8c0-6 6-6 6 0s6-6 6 0 6-6 6 0 6-6 6 0 6-6 6 0M0 20c0-6 6-6 6 0s6-6 6 0 6-6 6 0 6-6 6 0 6-6 6 0%27 fill=%27none%27 stroke=%27%239b8cff%27 stroke-opacity=%270.4%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}
.gc-puzzle{--accent:#4dd2ff;--accent-fill:#0b7aa8;--accent-2:rgb(130,224,255);--accent-pale:rgb(205,242,255);--accent-deep:rgb(22,38,51);--acc-rgb:77,210,255;--acc2-rgb:130,224,255;--accent-soft:rgba(77,210,255,.55);--gdeep:rgb(22,38,51);--glow:0 0 6px rgba(77,210,255,.55),0 0 18px rgba(77,210,255,.25);--glow-card:0 0 1px rgba(77,210,255,.95),0 0 10px rgba(77,210,255,.6),0 0 26px rgba(77,210,255,.4),0 0 60px rgba(77,210,255,.24),inset 0 0 18px rgba(77,210,255,.12);--glow-soft:0 0 6px rgba(77,210,255,.6),0 0 16px rgba(77,210,255,.28);--glow-avatar:0 0 5px rgba(77,210,255,.75),0 0 14px rgba(77,210,255,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2748%27 height=%2748%27 viewBox=%270 0 48 48%27%3E%3Cpath d=%27M0 24h18a4 4 0 110 8h0M30 24h18M24 0v18a4 4 0 108 0M24 30v18%27 fill=%27none%27 stroke=%27%234dd2ff%27 stroke-opacity=%270.3%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Cpath d=%27M24 24h6%27 fill=%27none%27 stroke=%27%234dd2ff%27 stroke-opacity=%270.3%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}
.gc-resin{--accent:#2fd8c8;--accent-fill:#0a766f;--accent-2:rgb(185,160,255);--accent-pale:rgb(197,244,240);--accent-deep:rgb(18,39,43);--acc-rgb:47,216,200;--acc2-rgb:185,160,255;--accent-soft:rgba(47,216,200,.55);--gdeep:rgb(18,39,43);--glow:0 0 6px rgba(47,216,200,.55),0 0 18px rgba(47,216,200,.25);--glow-card:0 0 1px rgba(47,216,200,.95),0 0 10px rgba(47,216,200,.6),0 0 26px rgba(47,216,200,.4),0 0 60px rgba(47,216,200,.24),inset 0 0 18px rgba(47,216,200,.12);--glow-soft:0 0 6px rgba(47,216,200,.6),0 0 16px rgba(47,216,200,.28);--glow-avatar:0 0 5px rgba(47,216,200,.75),0 0 14px rgba(47,216,200,.35);--gpat:linear-gradient(115deg, transparent 38%, rgba(185,160,255,.16) 50%, transparent 62%), url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2764%27 height=%2736%27 viewBox=%270 0 64 36%27%3E%3Cpath d=%27M0 12c10-8 22 8 32 0s22 8 32 0M0 28c10-8 22 8 32 0s22 8 32 0%27 fill=%27none%27 stroke=%27%232fd8c8%27 stroke-opacity=%270.26%27 stroke-width=%271.3%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Ccircle cx=%2712%27 cy=%275%27 r=%271.6%27 fill=%27%23b9a0ff%27 fill-opacity=%27.5%27/%3E%3Ccircle cx=%2744%27 cy=%2721%27 r=%272%27 fill=%27%23b9a0ff%27 fill-opacity=%27.35%27/%3E%3Ccircle cx=%2756%27 cy=%274%27 r=%271.2%27 fill=%27%23fff%27 fill-opacity=%27.35%27/%3E%3Ccircle cx=%2724%27 cy=%2733%27 r=%271.2%27 fill=%27%23fff%27 fill-opacity=%27.3%27/%3E%3C/svg%3E")}
.gc-sewing{--accent:#ff9ec7;--accent-fill:#b8366f;--accent-2:rgb(255,187,216);--accent-pale:rgb(255,228,239);--accent-deep:rgb(47,31,43);--acc-rgb:255,158,199;--acc2-rgb:255,187,216;--accent-soft:rgba(255,158,199,.55);--gdeep:rgb(47,31,43);--glow:0 0 6px rgba(255,158,199,.55),0 0 18px rgba(255,158,199,.25);--glow-card:0 0 1px rgba(255,158,199,.95),0 0 10px rgba(255,158,199,.6),0 0 26px rgba(255,158,199,.4),0 0 60px rgba(255,158,199,.24),inset 0 0 18px rgba(255,158,199,.12);--glow-soft:0 0 6px rgba(255,158,199,.6),0 0 16px rgba(255,158,199,.28);--glow-avatar:0 0 5px rgba(255,158,199,.75),0 0 14px rgba(255,158,199,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2740%27 height=%2740%27 viewBox=%270 0 40 40%27%3E%3Cpath d=%27M2 12h36M2 28h36%27 stroke=%27%23ff9ec7%27 stroke-opacity=%27.34%27 stroke-dasharray=%275 4%27 fill=%27none%27/%3E%3Cpath d=%27M8 2v36%27 stroke=%27%23ff9ec7%27 stroke-opacity=%27.12%27/%3E%3Ccircle cx=%2728%27 cy=%2720%27 r=%272.4%27 fill=%27none%27 stroke=%27%23ff9ec7%27 stroke-opacity=%270.32%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}
.gc-stained_glass{--accent:#35d6a0;--accent-fill:#0b7d58;--accent-2:rgb(114,226,189);--accent-pale:rgb(198,244,228);--accent-deep:rgb(19,39,38);--acc-rgb:53,214,160;--acc2-rgb:114,226,189;--accent-soft:rgba(53,214,160,.55);--gdeep:rgb(19,39,38);--glow:0 0 6px rgba(53,214,160,.55),0 0 18px rgba(53,214,160,.25);--glow-card:0 0 1px rgba(53,214,160,.95),0 0 10px rgba(53,214,160,.6),0 0 26px rgba(53,214,160,.4),0 0 60px rgba(53,214,160,.24),inset 0 0 18px rgba(53,214,160,.12);--glow-soft:0 0 6px rgba(53,214,160,.6),0 0 16px rgba(53,214,160,.28);--glow-avatar:0 0 5px rgba(53,214,160,.75),0 0 14px rgba(53,214,160,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2760%27 height=%2760%27 viewBox=%270 0 60 60%27%3E%3Cpath d=%27M0 0l30 22-30 38zM60 0L30 22l30 38zM0 0h60L30 22z%27 fill=%27rgba%28255,95,122,.2%29%27/%3E%3Cpath d=%27M0 60l30-38 30 38z%27 fill=%27rgba%2860,220,170,.2%29%27/%3E%3Cpath d=%27M0 0l30 22 30-22M30 22L0 60M30 22l30 38%27 stroke=%27rgba%288,6,12,.8%29%27 stroke-width=%272%27 fill=%27none%27/%3E%3Cpath d=%27M0 0l30 22-30 38%27 fill=%27rgba%28255,196,60,.18%29%27/%3E%3Cpath d=%27M60 0L30 22l30 38z%27 fill=%27rgba%2890,150,255,.22%29%27/%3E%3C/svg%3E")}
.gc-wood{--accent:#e0b36a;--accent-fill:#8a5a22;--accent-2:rgb(233,202,151);--accent-pale:rgb(246,234,213);--accent-deep:rgb(43,34,30);--acc-rgb:224,179,106;--acc2-rgb:233,202,151;--accent-soft:rgba(224,179,106,.55);--gdeep:rgb(43,34,30);--glow:0 0 6px rgba(224,179,106,.55),0 0 18px rgba(224,179,106,.25);--glow-card:0 0 1px rgba(224,179,106,.95),0 0 10px rgba(224,179,106,.6),0 0 26px rgba(224,179,106,.4),0 0 60px rgba(224,179,106,.24),inset 0 0 18px rgba(224,179,106,.12);--glow-soft:0 0 6px rgba(224,179,106,.6),0 0 16px rgba(224,179,106,.28);--glow-avatar:0 0 5px rgba(224,179,106,.75),0 0 14px rgba(224,179,106,.35);--gpat:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2780%27 height=%2730%27 viewBox=%270 0 80 30%27%3E%3Cpath d=%27M0 6c20-6 40 6 80 0M0 16c24-6 44 6 80 0M0 26c20-5 40 5 80 0%27 fill=%27none%27 stroke=%27%23e0b36a%27 stroke-opacity=%270.24%27 stroke-width=%271.3%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Cellipse cx=%2752%27 cy=%2715%27 rx=%275%27 ry=%273%27 fill=%27none%27 stroke=%27%23e0b36a%27 stroke-opacity=%270.22%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}
.gc-on .grp-nocover,.gc-on .ev-nocover{background:linear-gradient(rgba(10,8,16,.3),rgba(10,8,16,.3)),var(--gpat),radial-gradient(80% 90% at 30% 20%,rgba(var(--acc-rgb),.5),transparent 62%),linear-gradient(160deg,var(--gdeep),#0d0a12 72%);position:relative}
.gc-on .grp-nocover::after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,transparent,var(--accent),transparent);box-shadow:0 0 12px var(--accent)}
.gc-on .grp-nocover svg.gc-ico,.gc-on .ev-nocover svg.gc-ico{opacity:1;margin:0;filter:drop-shadow(0 0 8px rgba(var(--acc-rgb),.9))}
.gc-badge{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;color:var(--accent);background:rgba(8,6,12,.55);border:2px solid var(--accent);box-shadow:0 0 10px rgba(var(--acc-rgb),.7),0 0 30px rgba(var(--acc-rgb),.35),inset 0 0 18px rgba(var(--acc-rgb),.25)}
.gc-badge svg{width:46px;height:46px;margin:0}
.ev-nocover .gc-badge{width:52px;height:52px;border-width:1.5px}.ev-nocover .gc-badge svg{width:28px;height:28px}
.gc-chip{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:999px;border:1px solid rgba(var(--acc-rgb),.7);color:var(--accent-pale);background:rgba(var(--acc-rgb),.14);font-weight:700;font-size:calc(12.5px * var(--ts,1))}
.gc-chip svg{width:13px;height:13px;color:var(--accent);filter:none}
.gc-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 10px;margin:0 -2px}
.gc-chips::-webkit-scrollbar{display:none}
.gc-chips .pf-chip{flex:none;white-space:nowrap;padding:7px 13px}
.gc-field select{width:100%;padding:12px 14px;border-radius:12px;font:inherit;font-size:16px;box-sizing:border-box}
.gc-field small{display:block;color:var(--muted);margin-top:6px}
/* ds-v404:groups-themes:end */

/* ds-v405: group sections (pinned card, entries, forms). Colors follow the group's craft theme variables. */
.gf-host:empty { display: none; }
.gf { margin: 4px 0 12px; padding: 12px 14px 14px; border: 1.5px solid rgba(var(--acc-rgb), .7); }
.gf-h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.gf-h .gf-ico { width: 18px; height: 18px; flex: none; }
.gf-h .gf-more { margin-left: auto; width: 32px; height: 32px; color: var(--accent); }
.gf-empty { margin: 0; font-size: 13px; }
.gf-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gf-it { display: block; min-width: 0; color: inherit; text-decoration: none; }
.gf-it b { display: block; font-size: 13px; margin-top: 6px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-it small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.gf-it .pbar { margin-top: 6px; }
.gf-th { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid rgba(var(--acc-rgb), .5); background: #14101b; }
.gf-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gf-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent); }
.gf-ph svg { width: 34%; height: 34%; }
.gf-main { display: flex; gap: 14px; align-items: stretch; }
.gf-cover { flex: 0 0 96px; width: 96px; min-height: 124px; border-radius: 8px 12px 12px 8px; object-fit: cover; box-shadow: 0 0 14px rgba(var(--acc-rgb), .35); display: grid; place-items: center; color: #fff; }
.gf-bookcover { background: linear-gradient(135deg, var(--accent-fill), #2a0f1a); border-left: 6px solid rgba(0,0,0,.35); }
.gf-dish { border-radius: 12px; background: var(--gpat, none) #14101b; background-size: auto; border: 1px solid rgba(var(--acc-rgb), .5); color: var(--accent); }
.gf-cover svg { width: 40px; height: 40px; }
.gf-txt { flex: 1; min-width: 0; }
.gf-txt > b { display: block; font-size: 16.5px; line-height: 1.2; overflow-wrap: anywhere; }
.gf-txt > span { display: block; color: #d9d4e2; font-size: 13px; margin-top: 4px; }
.en-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.en-chips span { padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(var(--acc-rgb), .55); color: var(--accent-pale, #e8d4fb); font-size: 12px; font-weight: 700; background: rgba(var(--acc-rgb), .1); }
.entry { padding: 2px 0 6px; }
.entry .en-title { margin: 0; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.entry .en-chips { margin-top: 8px; }
.en-book { display: flex; gap: 12px; align-items: center; }
.en-cover { flex: 0 0 52px; width: 52px; height: 74px; border-radius: 4px 8px 8px 4px; object-fit: cover; box-shadow: 0 0 10px rgba(var(--acc-rgb), .35); }
.en-nocover { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent-fill), #2a0f1a); }
.en-nocover svg { width: 24px; height: 24px; }
.en-by { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.en-colors { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.en-sw { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.35); }
.en-sec { margin-top: 10px; }
.en-sec > b { display: block; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.en-sec ul, .en-sec ol { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.5; }
.en-sec li { overflow-wrap: anywhere; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-field { position: relative; }
.bk-field > .bk-sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin-top: 4px; border-radius: 14px; border: 1.5px solid var(--accent); background: #1a1523; box-shadow: var(--glow-soft, 0 0 10px rgba(var(--acc-rgb), .5)); overflow: hidden; }
.bk-opt { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px 12px; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.06); color: inherit; font: inherit; cursor: pointer; }
.bk-opt img, .bk-ph { width: 30px; height: 42px; border-radius: 3px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--accent-fill); }
.bk-ph svg { width: 16px; height: 16px; }
.bk-opt b { display: block; font-size: 14px; } .bk-opt small { color: var(--muted); font-size: 12px; }
.en-photos { margin-top: 6px; }
.en-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.en-thumbs .np-thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.en-thumbs .np-thumb img { width: 100%; height: 100%; object-fit: cover; }
.en-thumbs .np-x { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.pal-ed { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.pal-c { position: relative; display: inline-block; }
.pal-c input[type=color] { width: 48px; height: 48px; padding: 0; border: 1.5px solid rgba(255,255,255,.4); border-radius: 12px; background: none; cursor: pointer; }
.pal-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #3a3345; color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.bv-list { display: grid; gap: 8px; margin: 10px 0; }
.seg.tabs.many a { font-size: calc(13px * var(--ts, 1)); padding: 8px 2px; white-space: nowrap; }
.grp-stick .seg.tabs.many { overflow-x: auto; scrollbar-width: none; }
.grp-stick .seg.tabs.many::-webkit-scrollbar { display: none; }

/* ds-v406: speakeasy invites */
.se-top .se-topmore { position: relative; flex: none; }
.se-invlist { max-height: 55vh; overflow-y: auto; }
.se-inv { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(232,50,95,.18); }
.se-inv .se-inv-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.se-inv .se-inv-who b { color: #ffe3ea; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-inv .se-inv-who small { color: var(--accent-pale); opacity: .8; font-size: 12px; }
.se-inv .se-link.danger { color: #ff8aa5; }
.ad-email { padding: 0 0 4px 46px; font-size: calc(13px * var(--ts, 1)); color: var(--muted); user-select: text; -webkit-user-select: text; word-break: break-all; }

/* ds-v407: event sponsors */
.ev-sponsors { padding: 12px 14px 4px; margin-top: 12px; }
.ev-sponsors .sp-h { margin: 0 0 4px; font-size: calc(13px * var(--ts, 1)); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.sp-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.07); }
.sp-row:first-of-type { border-top: 0; }
.sp-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.sp-logo { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; background: rgba(255,255,255,.06); }
.sp-init { display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; background: var(--accent-fill, rgba(var(--acc-rgb), .18)); border: 1px solid rgba(var(--acc-rgb), .35); }
.sp-txt { display: flex; flex-direction: column; min-width: 0; gap: 1px; flex: 1; }
.sp-txt b { font-size: calc(15.5px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-blurb { font-size: calc(13.5px * var(--ts, 1)); color: var(--text); opacity: .85; overflow-wrap: anywhere; }
.sp-txt small { color: var(--muted); font-size: calc(12px * var(--ts, 1)); overflow-wrap: anywhere; }
.sp-txt small i { font-style: normal; font-weight: 700; }
.sp-row.asking { gap: 10px; }
.sp-row .se-link.danger { color: #ff8aa5; }
.sp-pick { display: flex; align-items: center; gap: 12px; }
.sp-pick .se-link { display: block; margin-top: 4px; }

/* ds-v408: site admin opening a private group on purpose */
.adm-view { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; border: 1px dashed rgba(var(--acc-rgb), .5); font-size: calc(13px * var(--ts, 1)); color: var(--muted); }
.adm-view.on { border-style: solid; background: rgba(var(--acc-rgb), .1); color: var(--text); }

/* ===== ds-v410: the locked hidden door (shown to someone who is not in the speakeasy). Same dark crimson and violet; its own dark card, never over a photo ===== */
.hd-bg { position: fixed; inset: 0; z-index: 9990; display: grid; place-items: center; padding: 18px; background: rgba(5,2,8,.82); overscroll-behavior: contain; animation: hdIn .25s ease-out both; }
.hd-card { position: relative; width: min(340px, 100%); box-sizing: border-box; padding: 26px 22px 24px; text-align: center; border-radius: 22px; color: #f3e9ef;
  background: radial-gradient(ellipse at 50% 108%, rgba(179,18,63,.38), transparent 62%), radial-gradient(ellipse at 0% 0%, rgba(110,40,200,.26), transparent 55%), #0d0610;
  border: 1px solid rgba(232,50,95,.45); box-shadow: 0 0 0 1px rgba(139,61,255,.25), 0 18px 60px rgba(0,0,0,.65), 0 0 38px rgba(232,50,95,.22); }
.hd-card h2 { margin: 14px 0 8px; font-size: calc(21px * var(--ts, 1)); line-height: 1.25; color: #fff; text-shadow: 0 0 14px rgba(232,50,95,.55); }
.hd-card p { margin: 0; color: #d9c3cf; font-size: calc(15px * var(--ts, 1)); line-height: 1.45; }
.hd-door { width: 150px; height: auto; display: block; margin: 4px auto 0; overflow: visible; filter: drop-shadow(0 0 14px rgba(232,50,95,.35)); }
.hd-pool { animation: hdPulse 3.2s ease-in-out infinite; transform-origin: 50% 50%; }
.hd-seam { animation: hdPulse 3.2s ease-in-out infinite; }
.hd-key { animation: hdKey 3.2s ease-in-out infinite; }
.hd-x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); color: #d9c3cf; font-size: 22px; line-height: 1; cursor: pointer; }
.hd-x:focus-visible { outline: 2px solid #ff7a9c; outline-offset: 2px; }
@keyframes hdIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hdPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes hdKey { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hd-bg, .hd-pool, .hd-seam, .hd-key { animation: none; } }

/* ===== ds-v411: theme switches (Admin) and the small "Hidden from members" label (Settings, admins only) ===== */
.th-hid { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; color: var(--accent-pale); border: 1px solid var(--accent); background: rgba(var(--acc-rgb, 180, 92, 240), .12); vertical-align: middle; }
.th-hid.th-line { display: block; width: fit-content; margin: 8px 0 0; }
.theme-card > .th-hid { display: block; width: fit-content; margin: 8px 0 0; }
.ad-th-note { margin: 4px 2px 10px; }
.ad-th-row small.ad-th-state { display: block; }

/* ds-v412: holiday theme rows in Settings (the look itself ships in /hol/<key>.js and is fetched only while a holiday is on) */
.hol-card .hol-row { margin-top: 8px; }
.ad-th-plan { opacity: .62; } .ad-th-plan small { font-style: italic; }

/* ds-v413: the "Hidden from members" label is a small pill, not a stretched bar (a switch row span is a flex column that fills the row) */
.switch-row span.th-hid { flex: 0 0 auto; align-self: flex-start; display: inline-flex; width: fit-content; max-width: max-content; margin: 4px 0 0; }
.hol-card .hol-row:first-of-type { border-top: 0; }

/* ds-v416: on very narrow phones (320) the five bottom bar items no longer squash the round + button into an oval or overlap their labels.
   ds-v420: and nothing on the bar is clipped any more. The v416 fix used overflow hidden on each item, which cut the neon glow of the active item (and the end of long labels) at a hard rectangle.
   The label now shrinks with the screen instead, so it fits its slot with the glow left free. */
@media (max-width: 559px) {
  .bottom a.plus { flex: 0 0 62px; }
  .bottom a:not(.plus) { flex: 1 1 0; min-width: 0; width: auto; overflow: visible; white-space: nowrap; font-size: min(calc(11.5px * var(--ts, 1)), 3vw); }
}

/* ds-v418: a shared group entry (recipe, dish, build, pattern, book...) as a card, and the note in the share sheet */
.embed-entry { display: flex; gap: 12px; align-items: flex-start; color: inherit; text-decoration: none; margin-top: 6px; }
.embed-entry .ee-pic { flex: none; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: rgba(var(--acc-rgb), .12); display: block; }
.embed-entry .ee-pic img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; margin: 0; max-height: none; }
.embed-entry .ee-info { min-width: 0; flex: 1; display: block; }
.embed-entry .ee-title { display: block; font-size: calc(16px * var(--ts, 1)); line-height: 1.25; overflow-wrap: anywhere; }
.embed-entry .ee-words { display: block; margin-top: 4px; color: var(--muted); font-size: calc(13px * var(--ts, 1)); }
.embed-entry .en-chips { margin-top: 8px; }
.embed.has-entry { border-color: rgba(var(--acc-rgb), .6); }
.sh-note { margin: 10px 2px 0; }

/* ds-v423: Business | Personal switch at the comment box (only for members who own or admin a page) */
.reply-as { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 0 2px 6px; min-width: 0; }
.ra-seg { display: inline-flex; flex: none; border: 1px solid var(--line, rgba(255,255,255,.18)); border-radius: 999px; padding: 2px; background: var(--card, transparent); }
.ra-seg button { min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: calc(12.5px * var(--ts, 1)); font-weight: 600; color: var(--muted); }
.ra-seg button[aria-checked="true"] { background: var(--accent-2, #3ee); color: #06121a; box-shadow: 0 0 10px color-mix(in srgb, var(--accent-2, #3ee) 55%, transparent); }
.ra-who { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 170px; min-height: 32px; font-size: calc(12.5px * var(--ts, 1)); color: var(--muted); text-align: left; position: relative; }
.ra-who span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra-who b { color: var(--text, inherit); }
.avatar.xs { width: 22px; height: 22px; border-width: 1px; flex: none; }
.pg-tag { font-style: normal; font-size: calc(10px * var(--ts, 1)); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent-2); border: 1px solid currentColor; border-radius: 6px; padding: 0 5px; margin-left: 5px; vertical-align: middle; }
.comment .cmeta:has(.cby) { flex-wrap: wrap; gap: 0 8px; }
.cmeta > span, .cmeta > button { white-space: nowrap; }
.cby { flex: 0 0 100%; order: 9; color: var(--muted); font-size: calc(11.5px * var(--ts, 1)); opacity: .85; }
html[data-theme="light"] .ra-seg button[aria-checked="true"] { color: #fff; }

/* ds-v424: the reply bar looks like the post box: neon pill, photo and camera icons, send appears once there is something to send */
.comment-form.cm-bar { gap: 6px; }
.comment-form .cm-pill { flex: 1 1 110px; min-width: 0; border: 1.5px solid var(--accent); border-radius: 999px; padding: 10px 16px; box-shadow: 0 0 8px rgba(var(--acc-rgb),.45), inset 0 0 8px rgba(var(--acc-rgb),.08); }
.comment-form .composer-photo { flex: none; width: 34px; height: 34px; margin: 0; }
.comment-form .composer-photo svg { width: 25px; height: 25px; }
.comment-form label.composer-photo.off { opacity: .35; pointer-events: none; }
.comment-form .send-btn { width: 38px; height: 38px; }
.comment-form .send-btn[hidden] { display: none; }
.comment-form.sending .send-btn { opacity: .6; }
.cm-thumb { flex: 0 0 100%; padding: 0 2px 4px; } .cm-thumb .np-thumb { width: 72px; height: 72px; } .cm-thumb[hidden] { display: none; }
.comment .cm-img { display: block; margin-top: 6px; max-width: min(100%, 260px); max-height: 300px; width: auto; height: auto; border-radius: 10px; cursor: zoom-in; background: #0d0a12; }
.ra-who.pick { border-radius: 999px; padding: 0 8px 0 2px; border: 1px solid var(--line, rgba(255,255,255,.18)); flex: 0 1 auto; max-width: 100%; }
.reply-as { position: relative; }
.ra-menu { position: absolute; left: 0; bottom: calc(100% + 4px); z-index: 20; min-width: 200px; max-width: 100%; display: flex; flex-direction: column; padding: 4px; border-radius: 14px; background: var(--card, #0b0b0d); border: 1px solid var(--accent); box-shadow: 0 6px 22px rgba(0,0,0,.45), 0 0 12px rgba(var(--acc-rgb),.35); }
.ra-menu button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px; border-radius: 10px; text-align: left; font-size: calc(13.5px * var(--ts, 1)); font-weight: 600; color: var(--text); }
.ra-menu button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra-menu button[aria-checked="true"] { background: rgba(var(--acc-rgb),.16); } .ra-menu i { font-style: normal; color: var(--accent-2); }

/* ds-v426: the reply as avatar sits inside the reply pill (replaces the v423 switch and chip) */
.comment-form .cm-pw { position: relative; flex: 1 1 110px; min-width: 0; display: flex; }
.comment-form .cm-pw .cm-pill { flex: 1; width: 100%; }
.comment-form .cm-pill.has-who { padding-left: 50px; }
.cm-who { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); z-index: 2; display: flex; align-items: center; gap: 1px; min-width: 40px; height: 40px; padding: 0 0 0 4px; border-radius: 999px; }
.cm-who img.avatar { width: 30px; height: 30px; border-width: 1.5px; flex: none; }
.cm-who i { font-style: normal; font-size: 9px; color: var(--muted); width: 12px; }
.cm-as { flex: 0 0 100%; font-size: calc(11.5px * var(--ts, 1)); color: var(--muted); padding: 0 4px 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .cm-as[hidden] { display: none; }
.cm-as b { color: var(--text, inherit); font-weight: 700; }
.cm-pw .ra-menu { left: 0; right: auto; bottom: calc(100% + 6px); min-width: 212px; max-width: min(100%, 300px); }
.ra-hd { font-size: calc(10px * var(--ts, 1)); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 6px 10px 2px; }
.cm-pw .ra-menu button img.avatar.xs { width: 26px; height: 26px; }

/* ds-v428: the verified gem sits right next to the name on one line. The name gives way (ellipsis) before the gem wraps; the gem never shrinks. */
.dn-row { display: inline-flex; align-items: center; max-width: 100%; min-width: 0; vertical-align: bottom; }
.dn-row > .dn, .dn-row > .nm { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-row > .vbadge, .dn-row > .aibadge { flex: none; }
.dn-row > .vbadge { margin-left: 4px; }
.dn-row > .vbadge svg { display: block; flex: none; min-width: 16px; }
.who .name .dn-row, .embed-head .name .dn-row { display: flex; }
.who .name .dn-row > .dn { display: block; }
.who .name.has-badge .dn-row { flex: 0 1 auto; min-width: 0; max-width: 100%; display: flex; align-items: center; }
.who .name.has-badge .dn-row > .nm { flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ds-v429: link preview card for DrillSocial links (type, small thumbnail, name, one line). Generic cards for private or unavailable things reveal nothing. */
.lk-card { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; padding: 8px 12px 8px 8px; min-height: 64px; border-radius: 12px; text-decoration: none; color: inherit; border: 1px solid rgba(var(--acc-rgb), .4); background: #121218; max-width: 100%; box-sizing: border-box; overflow: hidden; -webkit-tap-highlight-color: transparent; }
a.lk-card:hover, a.lk-card:focus-visible { border-color: rgba(var(--acc-rgb), .75); }
.lk-th { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 9px; overflow: hidden; background: #0a0a0e; display: flex; align-items: center; justify-content: center; }
.lk-th.rd { border-radius: 50%; }
.lk-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lk-th.empty, .lk-card.loading .lk-th { background: radial-gradient(120% 90% at 50% 0%, rgba(var(--acc-rgb), .22), #15121c 70%); }
.lk-th svg { width: 22px; height: 22px; color: var(--accent); }
.lk-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lk-ty { color: var(--accent-pale, var(--accent)); font-size: calc(10.5px * var(--ts, 1)); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lk-ti { display: flex; align-items: center; min-width: 0; font-weight: 700; font-size: calc(14.5px * var(--ts, 1)); line-height: 1.25; }
.lk-ti .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-ti .vbadge { margin-left: 4px; }
.lk-ti .vbadge svg { width: 15px; height: 15px; }
.lk-ln { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-card.loading .lk-ti, .lk-card.loading .lk-ln { background: #1c1924; border-radius: 6px; color: transparent; max-width: 55%; }
.lk-card.loading .lk-ln { max-width: 38%; }
.lk-gen .lk-ti { font-weight: 700; }
.lk-gen .lk-th svg { color: var(--muted); }
.lk-na { opacity: .85; border-style: dashed; }
.dm-text + .lk-card, .dm-bubble .lk-card { margin: 6px 0 2px; min-width: min(250px, 100%); }
.comment .lk-card { min-width: min(236px, 100%); margin: 6px 0 2px; min-height: 56px; padding: 6px 10px 6px 6px; }
.comment .lk-th { flex-basis: 40px; width: 40px; height: 40px; }
@media (max-width: 340px) { .lk-card { gap: 8px; padding-right: 10px; } .lk-th { flex-basis: 44px; width: 44px; height: 44px; } .comment .lk-th { flex-basis: 36px; width: 36px; height: 36px; } }
:where(html[data-theme="light"]) .lk-card { background: #ede6f4; }
:where(html[data-theme="light"]) .lk-th { background: #f2edf7; }
:where(html[data-theme="light"]) .lk-th.empty, :where(html[data-theme="light"]) .lk-card.loading .lk-th { background: radial-gradient(120% 90% at 50% 0%, rgba(var(--acc-rgb), .2), #e6dcef 70%); }
:where(html[data-theme="light"]) .lk-card.loading .lk-ti, :where(html[data-theme="light"]) .lk-card.loading .lk-ln { background: #e2d8ec; }
:where(html[data-theme="light"]) .lk-ty { color: color-mix(in srgb, rgb(var(--acc-rgb)) 72%, #000); }
:where(html[data-theme="light"]) .lk-gen .lk-th svg { color: #7a7188; }

/* ds-v430: Add time (hours and minutes) and the Total time row on a project */
.wip-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 2px; font-size: calc(14px * var(--ts, 1)); color: var(--muted); }
.wip-total b { color: var(--accent); font-size: calc(16px * var(--ts, 1)); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wip-total.mine { cursor: pointer; -webkit-tap-highlight-color: rgba(var(--acc-rgb), .15); border-radius: 10px; }
.wip-total .wt-add { margin-left: auto; color: var(--accent); font-weight: 700; font-size: calc(13px * var(--ts, 1)); white-space: nowrap; }
.at-row { display: flex; gap: 10px; }
.at-row .field { flex: 1 1 0; min-width: 0; margin-bottom: 12px; }
.at-row input, .at-sheet input[type=date] { width: 100%; box-sizing: border-box; font-size: 18px; font-variant-numeric: tabular-nums; }
.at-row input { text-align: center; }
/* ds-v431: Hours and Minutes (type=number) focus matches the other inputs */
.at-row input:focus, .at-sheet input[type=date]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .22), 0 0 14px rgba(var(--acc-rgb), .35); outline: none; }
.at-sheet input[type=date] { color-scheme: dark; background: #0d0a12; color: #f3f0fa; border: 1px solid rgba(var(--acc-rgb), .45); }
.at-opt { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: 4px; }
.at-sep { opacity: .6; }
:where(html[data-theme="light"]) .at-sheet input[type=date] { color-scheme: light; background: #f1ecf6; color: #292032; }

/* ds-v432: TikTok card. Compact until tapped (thumbnail, title, author), then TikTok's own player in a sandboxed iframe. */
.tk-card { display: flex; align-items: stretch; margin: 8px 0 6px; min-height: 96px; border-radius: 12px; overflow: hidden; color: inherit; border: 1px solid rgba(var(--acc-rgb), .45); background: #121218; box-shadow: 0 0 10px rgba(var(--acc-rgb), .18); }
.tk-card .tk-thumb { position: relative; flex: 0 0 84px; width: 84px; padding: 0; border: 0; border-radius: 0; background: radial-gradient(120% 90% at 50% 0%, rgba(var(--acc-rgb), .28), #0a0a0e 70%); cursor: pointer; display: block; min-height: 112px; }
.tk-card .tk-thumb:disabled { cursor: default; }
.tk-card .tk-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-card .tk-thumb img[hidden] { display: none; }
.tk-card .tk-thumb .yt-play { background: rgba(0,0,0,.22); }
.tk-card .tk-thumb .yt-play::before { width: 36px; height: 36px; }
.tk-card .tk-thumb .yt-play::after { border-width: 7px 0 7px 11px; margin-left: 2px; }
.tk-card.loading .tk-thumb .yt-play { display: none; }
.tk-card .tk-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 9px 12px; }
.tk-card .tk-site { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: calc(11.5px * var(--ts, 1)); font-weight: 700; }
.tk-card .tk-site svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--accent); }
.tk-card .tk-site, .tk-card .tk-author, .tk-card .tk-open { flex: none; }
.tk-card .tk-title { flex: none; font-weight: 700; font-size: calc(14px * var(--ts, 1)); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tk-card.loading .tk-title { opacity: .6; }
.tk-card .tk-author { color: var(--muted); font-size: calc(12px * var(--ts, 1)); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-card .tk-author[hidden], .tk-card .tk-open[hidden] { display: none; }
.tk-card:not(.tk-playing) .tk-open { display: none; }   /* the link is already in the text above; "Open on TikTok" shows under the player */
.tk-card .tk-open { color: var(--accent-2); font-size: calc(12.5px * var(--ts, 1)); text-decoration: none; margin-top: 2px; }
.tk-card.tk-playing { flex-direction: column; }
.tk-card.tk-playing .tk-player { width: min(100%, 300px); aspect-ratio: 9 / 16; margin: 0 auto; background: #000; }
.tk-card.tk-playing .tk-player iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.tk-card.tk-playing .tk-info { border-top: 1px solid rgba(var(--acc-rgb), .28); padding: 8px 12px 10px; }
.tk-card.tk-playing .tk-title { -webkit-line-clamp: 2; }
.comment .tk-card, .dm .tk-card { margin: 6px 0 2px; min-height: 84px; }
.comment .tk-card .tk-title, .dm .tk-card .tk-title { font-size: calc(13px * var(--ts, 1)); -webkit-line-clamp: 3; }
.comment .tk-card .tk-thumb, .dm .tk-card .tk-thumb { flex-basis: 64px; width: 64px; min-height: 84px; }
.comment .tk-card .tk-thumb .yt-play::before, .dm .tk-card .tk-thumb .yt-play::before { width: 30px; height: 30px; }
:where(html[data-theme="light"]) .tk-card { background: #ede6f4; box-shadow: none; }
:where(html[data-theme="light"]) .tk-card .tk-thumb { background: radial-gradient(120% 90% at 50% 0%, rgba(var(--acc-rgb), .2), #e6dcef 70%); }
:where(html[data-theme="light"]) .tk-card .tk-title { color: #2a2133; }
:where(html[data-theme="light"]) .tk-card .tk-open { color: #7a2fd0; }

/* ds-v433: Destash coming soon. Header price tag just left of the gear, and the fancy Coming soon page (CSS only, no images, motion respects reduced motion). */
.icon-row a.dx-tag { width: 40px; }   /* ds-v445: looks like the other header icons (no glow); .active uses the shared .icon-row a.active */
.icon-row a.dx-tag svg { width: 26px; height: 26px; }
.ds-soon { display: grid; gap: 14px; margin-top: 8px; padding-bottom: 8px; }
.dss-hero { position: relative; overflow: hidden; text-align: center; padding: 28px 18px 24px; border-radius: 22px; border: 1.5px solid rgba(var(--acc-rgb),.6);
  background: radial-gradient(120% 80% at 50% 0%, rgba(var(--acc-rgb),.30), transparent 62%), linear-gradient(160deg, #271b37 0%, var(--card) 78%); box-shadow: var(--glow-card); isolation: isolate; }
.dss-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.13) 50%, transparent 62%); transform: translateX(-130%); animation: dssSheen 7s ease-in-out 1s infinite; }
.dss-tag { width: 88px; height: 88px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); border: 2px solid rgba(var(--acc-rgb),.75); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.14), rgba(var(--acc-rgb),.14) 60%);
  box-shadow: 0 0 16px rgba(var(--acc-rgb),.65), 0 0 40px rgba(var(--acc-rgb),.35), inset 0 0 16px rgba(var(--acc-rgb),.3); animation: dssFloat 4.6s ease-in-out infinite; }
.dss-tag svg { width: 48px; height: 48px; filter: drop-shadow(0 0 6px rgba(var(--acc-rgb),.9)); }
.dss-hero h1 { margin: 10px 0 6px; font-size: calc(34px * var(--ts, 1)); letter-spacing: .01em; text-shadow: 0 0 12px rgba(var(--acc-rgb),.7), 0 0 30px rgba(var(--acc-rgb),.35); }
.dss-hero p { margin: 0 auto; max-width: 30ch; color: #d4cbe2; font-size: calc(15px * var(--ts, 1)); line-height: 1.45; }
.dss-spark { position: absolute; z-index: -1; width: 11px; height: 11px; background: var(--accent-2); opacity: .0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 4px var(--accent-2)); animation: dssTwinkle 3.2s ease-in-out infinite; }
.dss-spark:nth-child(odd) { width: 8px; height: 8px; background: #fff; }
.dss-trust { display: flex; align-items: center; gap: 12px; padding: 14px 15px; border-radius: 18px; border: 1.5px solid rgba(90,160,255,.55); background: linear-gradient(160deg, rgba(60,130,255,.16), rgba(60,130,255,.05)); box-shadow: 0 0 14px rgba(70,140,255,.25); }
.dss-gem { flex: 0 0 38px; display: grid; place-items: center; filter: drop-shadow(0 0 7px rgba(90,160,255,.7)); }
.dss-trust b { display: block; font-size: calc(15.5px * var(--ts, 1)); }
.dss-trust .dss-t2 { display: block; margin-top: 2px; color: #cfc6dc; font-size: calc(13px * var(--ts, 1)); line-height: 1.4; }
.dss-feats { display: grid; gap: 10px; }
.dss-feat { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 16px; border: 1px solid rgba(var(--acc-rgb),.4); background: linear-gradient(160deg, #221a2f, var(--card) 80%); }
.dss-fi { flex: 0 0 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--accent-2); background: rgba(var(--acc-rgb),.18); box-shadow: 0 0 10px rgba(var(--acc-rgb),.3); }
.dss-fi svg { width: 22px; height: 22px; }
.dss-feat b { display: block; font-size: calc(14.5px * var(--ts, 1)); }
.dss-feat small { display: block; margin-top: 1px; color: #bdb3cc; font-size: calc(12.5px * var(--ts, 1)); line-height: 1.35; }
.dss-sample { position: relative; border-radius: 18px; overflow: hidden; border: 1px dashed rgba(var(--acc-rgb),.55); background: var(--card); }
.dss-blur { display: flex; gap: 12px; padding: 12px; filter: blur(5px); opacity: .75; pointer-events: none; user-select: none; }
.dss-cover { flex: 0 0 84px; height: 84px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: radial-gradient(120% 90% at 50% 0%, rgba(var(--acc-rgb),.4), #14101c 70%); }
.dss-cover svg { width: 44px; height: 44px; }
.dss-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; justify-content: center; }
.dss-info b { font-size: 15px; } .dss-info > span { font-size: 12.5px; color: var(--muted); }
.dss-chips { display: flex; gap: 5px; flex-wrap: wrap; } .dss-chips i { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(var(--acc-rgb),.5); color: var(--text); } .dss-chips i.av { color: #34d399; border-color: rgba(52,211,153,.6); }
.dss-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; text-align: center; font-weight: 700; font-size: calc(13.5px * var(--ts, 1)); background: rgba(10,8,16,.38); }
.dss-lock svg { width: 20px; height: 20px; flex: none; color: var(--accent-2); }
.dss-ribbon { position: absolute; z-index: 2; top: 8px; right: 8px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #1a0f24; background: var(--accent-2); }
.dss-cta { text-align: center; padding: 4px 0 0; }
.dss-cta .btn { min-width: 190px; }
.dss-cta .btn.on { box-shadow: 0 0 14px rgba(var(--acc-rgb),.7); }
.dss-said { min-height: 18px; margin: 8px 0 2px; font-size: calc(13px * var(--ts, 1)); color: var(--accent-2); font-weight: 700; }
.shop-more { display: inline-block; margin-top: 8px; color: var(--accent-2); font-size: calc(13px * var(--ts, 1)); font-weight: 700; text-decoration: none; }
.dss-cta .admin-count { margin: 6px 0; }
@keyframes dssFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes dssTwinkle { 0%, 100% { opacity: 0; transform: scale(.5) rotate(0deg); } 50% { opacity: .95; transform: scale(1.15) rotate(25deg); } }
@keyframes dssSheen { 0% { transform: translateX(-130%); } 38%, 100% { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) { .dss-tag, .dss-hero::after { animation: none !important; } .dss-spark { animation: none !important; opacity: .7; } }
:where(html[data-theme="light"]) .dss-hero { background: radial-gradient(120% 80% at 50% 0%, rgba(var(--acc-rgb),.22), transparent 62%), linear-gradient(160deg, #eadff5 0%, var(--card) 78%); }
:where(html[data-theme="light"]) .dss-hero::after { background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.7) 50%, transparent 62%); }
:where(html[data-theme="light"]) .dss-hero p, :where(html[data-theme="light"]) .dss-trust .dss-t2 { color: #4a3a5a; }
:where(html[data-theme="light"]) .dss-hero h1 { text-shadow: none; }
:where(html[data-theme="light"]) .dss-spark { background: var(--accent); filter: none; } :where(html[data-theme="light"]) .dss-spark:nth-child(odd) { background: #b58bf0; }
:where(html[data-theme="light"]) .dss-trust { background: linear-gradient(160deg, rgba(60,130,255,.14), rgba(60,130,255,.04)); box-shadow: none; border-color: rgba(60,120,230,.5); }
:where(html[data-theme="light"]) .dss-feat { background: linear-gradient(160deg, #e6def0, var(--card) 80%); }
:where(html[data-theme="light"]) .dss-feat small { color: #5a4a6a; } :where(html[data-theme="light"]) .dss-fi, :where(html[data-theme="light"]) .shop-more, :where(html[data-theme="light"]) .dss-said, :where(html[data-theme="light"]) .dss-lock svg { color: #7a2fd0; }
:where(html[data-theme="light"]) .dss-cover { background: radial-gradient(120% 90% at 50% 0%, rgba(var(--acc-rgb),.3), #e3d9ee 70%); }
:where(html[data-theme="light"]) .dss-lock { background: rgba(240,234,248,.5); } :where(html[data-theme="light"]) .dss-chips i.av { color: #047857; }
@media (max-width: 360px) { .icon-row a:not(.dx-tag) { width: 40px; } .icon-row a.dx-tag { width: 36px; } .icon-row a.dx-tag svg { width: 24px; height: 24px; } }
.dss-spark { width: 14px; height: 14px; } .dss-spark:nth-child(odd) { width: 10px; height: 10px; }

/* ds-v434: Destash pill on the owner's Projects tab, at the right end of the + New WIP row (outlined neon, secondary) */
.proj-actrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 12px; }
.proj-actrow .btn { flex: none; white-space: nowrap; }
.btn.dx-pill { gap: 6px; text-decoration: none; box-shadow: 0 0 6px rgba(var(--acc-rgb),.45), 0 0 16px rgba(var(--acc-rgb),.22), inset 0 0 8px rgba(var(--acc-rgb),.14); }
.btn.dx-pill svg { width: 17px; height: 17px; flex: none; filter: drop-shadow(0 0 3px rgba(var(--acc-rgb),.8)); }
.btn.dx-pill:active { transform: scale(.97); }
:where(html[data-theme="light"]) .btn.dx-pill { box-shadow: 0 0 0 1px rgba(var(--acc-rgb),.12), 0 2px 8px rgba(var(--acc-rgb),.18); }

/* ds-v435: real Destash (owner preview). Cards reuse .wip-card so every theme and holiday look applies. Nothing is drawn over photos. */
.dx { padding-bottom: 12px; }
.dx-tabs { margin-top: 10px; }
.dx-bar { display: flex; gap: 10px; align-items: center; margin: 4px 0 8px; }
.dx-bar input { flex: 1; min-width: 0; }
.dx-bar .btn { flex: none; white-space: nowrap; }
.dx-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.dx-filters select, #dxForm select { width: 100%; min-width: 0; background: #0f0f13; border: 1.5px solid #2a2a33; border-radius: 12px; color: var(--text); padding: 10px 12px; font: inherit; }
.dx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dx-card { display: flex; flex-direction: column; min-width: 0; }
.dx-ph { aspect-ratio: 1 / 1; background: #0d0a12; overflow: hidden; display: block; }
.dx-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-nophoto { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent); }
.dx-nophoto svg { width: 34px; height: 34px; }
.dx-b { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; min-width: 0; }
.dx-t { font-size: calc(14px * var(--ts, 1)); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.dx-p { font-weight: 800; color: var(--accent-2); font-size: calc(15px * var(--ts, 1)); }
.dx-p.alt { color: var(--accent); }
.dx-p.big { font-size: calc(22px * var(--ts, 1)); }
.dx-s, .dx-by { font-size: calc(12px * var(--ts, 1)); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-card.sold .dx-ph, .dx-row.sold .dx-rph { opacity: .55; }
.dx-empty { padding: 28px 12px; }
.dx-mine-bar { justify-content: space-between; }
.dx-cap { margin: 0; }
.dx-rows { display: flex; flex-direction: column; gap: 10px; }
.dx-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 8px; }
.dx-rph { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #0d0a12; display: block; }
.dx-rph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-rb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dx-rs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dx-st.sold { color: var(--muted); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.dx-dots, .dx-nsfw-dots { flex: none; }
.dx-top { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 6px; min-height: 36px; }
.dx-back { color: var(--accent-2); font-weight: 700; font-size: calc(14px * var(--ts, 1)); padding: 6px 0; }
.dx-photo { margin-top: 2px; }
.dx-h1 { font-size: calc(21px * var(--ts, 1)); line-height: 1.2; margin: 14px 0 8px; overflow-wrap: anywhere; }
.dx-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dx-desc { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0; color: var(--text); }
.dx-seller { display: flex; align-items: center; gap: 10px; margin: 14px 0; padding: 10px; border-radius: 14px; background: rgba(var(--acc-rgb), .07); border: 1px solid rgba(var(--acc-rgb), .3); min-width: 0; }
.dx-seller .avatar { width: 40px; height: 40px; flex: none; }
.dx-seller b { display: inline-flex; align-items: center; gap: 5px; }
.dx-seller small { display: block; color: var(--muted); }
.dx-vg { display: inline-flex; }
.dx-msg { display: flex; width: 100%; max-width: 480px; min-height: 44px; margin: 6px auto 0; padding: 10px 20px; font-size: 16px; line-height: 1.2; white-space: nowrap; }   /* ds-v438: one line, about 44px tall */
.btn.dx-msg svg { width: 18px; height: 18px; flex: none; margin: 0; }
.dx-note { text-align: center; margin: 10px 0 0; }
.dx-form-note { margin: 4px 0 0; }
.dx-how button { flex: 1; padding: 8px 0; border-radius: 999px; font-weight: 600; font-size: calc(14px * var(--ts, 1)); color: #bdbdc6; }
.dx-how button[aria-checked="true"] { background: var(--accent-fill); color: #fff; box-shadow: 0 0 12px rgba(var(--acc-rgb),.55); }
.dx-gate { padding-top: 40px; }
.dx-gate .dss-gem { display: inline-flex; margin-bottom: 8px; }
.dx-gate .btn { margin-top: 16px; }
.dx-gate-status { margin-top: 16px; font-weight: 700; color: var(--accent-2); }
.ad-vr-acts { display: inline-flex; gap: 8px; align-items: center; flex-shrink: 0; }
@media (max-width: 360px) { .dx-grid, .dx-filters { gap: 8px; } .dx-b { padding: 7px 8px 9px; } .dx-bar { gap: 8px; } }
:where(html[data-theme="light"]) .dx-filters select, :where(html[data-theme="light"]) #dxForm select { background: #fff; border-color: #d9cce6; }
:where(html[data-theme="light"]) .dx-ph, :where(html[data-theme="light"]) .dx-rph { background: #ece4f3; }
:where(html[data-theme="light"]) .dx-how button { color: #5d4d70; }
:where(html[data-theme="light"]) .dx-how button[aria-checked="true"] { color: #fff; }
:where(html[data-theme="light"]) .dx-st.sold { color: #6b5f78; background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.15); }

/* ds-v436: Destash Sell form, "Choose from my stash" */
.dx-stashrow { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-top: 4px; }
.dx-from { font-size: calc(13px * var(--ts, 1)); color: var(--muted); min-width: 0; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dx-from b { color: var(--text); }
.dx-unlink { width: 28px; height: 28px; border-radius: 50%; color: var(--muted); font-size: 13px; }
.dx-link { color: var(--accent-2); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.dxp-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 52vh; overflow-y: auto; overscroll-behavior: contain; }
.dxp-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 6px; border-radius: 12px; border: 1px solid rgba(var(--acc-rgb), .3); background: rgba(var(--acc-rgb), .06); min-width: 0; }
.dxp-row:active { background: rgba(var(--acc-rgb), .16); }
.dxp-ph { flex: none; width: 44px; height: 44px; border-radius: 9px; overflow: hidden; background: #0d0a12; display: block; }
.dxp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dxp-ph .dx-nophoto svg { width: 22px; height: 22px; }
.dxp-tx { display: flex; flex-direction: column; min-width: 0; }
.dxp-tx b { font-size: calc(14px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dxp-tx small { color: var(--muted); font-size: calc(12px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(html[data-theme="light"]) .dxp-ph { background: #ece4f3; }

/* ds-v437: Destash listing card in a direct message (like Marketplace): thumbnail beside the text, nothing drawn over the photo. */
.dx-dmcard { display: flex; align-items: center; gap: 10px; width: 232px; max-width: 100%; box-sizing: border-box; margin: 2px 0 6px; padding: 6px; border-radius: 12px;
  background: rgba(255,255,255,.08); color: inherit; text-decoration: none; text-align: left; -webkit-user-select: none; user-select: none; }
.dm.mine .dx-dmcard { background: rgba(0,0,0,.24); }
.dx-dmcard img, .dx-dmph { width: 52px; height: 52px; flex: none; border-radius: 8px; object-fit: cover; background: rgba(255,255,255,.1); }
.dx-dmph { display: inline-flex; align-items: center; justify-content: center; opacity: .8; }
.dx-dmph svg { width: 22px; height: 22px; }
.dx-dmtx { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.25; }
.dx-dmtx b { font-weight: 700; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.dx-dmsub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .9; }
.dx-dmsold { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.2); }
.dx-dmcard.dim { opacity: .75; }
.dx-dmcard.sold img { opacity: .6; }
.dm-bubble.has-card { padding-top: 6px; }
/* The pending card above the composer: same card, a small close to drop it. */
.dx-dmctx { position: relative; display: flex; margin: 0 8px 6px; }
.dx-dmctx .dx-dmcard { width: auto; flex: 1; min-width: 0; margin: 0; padding-right: 40px; background: #1b1b22; color: var(--text); }
.dx-dmx { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dx-dmx svg { width: 16px; height: 16px; }
:where(html[data-theme="light"]) .dx-dmcard { background: rgba(255,255,255,.6); }
:where(html[data-theme="light"]) .dm.mine .dx-dmcard { background: rgba(0,0,0,.2); }
:where(html[data-theme="light"]) .dx-dmctx .dx-dmcard { background: #f1eaf7; color: var(--text); }
:where(html[data-theme="light"]) .dx-dmsold { background: rgba(0,0,0,.1); }
:where(html[data-theme="light"]) .dm.mine .dx-dmsold { background: rgba(255,255,255,.25); }

/* ds-v438: iOS Safari gives an SVG with no width and height the full width of its box, so a bare icon inside a Destash button or form blew up. A floor for every icon there (lowest specificity: any sized icon rule still wins). */
:where(.dx, .modal, .sheet) :where(.btn, label.btn, button) svg { width: 18px; height: 18px; flex: none; }

/* ds-v439: age and NSFW photos */
.sens-cover { object-fit: fill; background: #2b2440; }
img.sens-cover { aspect-ratio: auto 4 / 3; }
img.sens-cover[data-sens-on="tap"], img.sens-cover[data-sens-on="nobday"] { cursor: pointer; }
/* ds-v712: Cover again on a revealed NSFW photo. Sits on the photo's top right corner (placed by app.js), icon only on small photos. */
.sens-again { position: absolute; white-space: nowrap; z-index: 4; transform: translateX(-100%); display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px 0 10px; margin: 0; border-radius: 999px; border: 1px solid rgba(205,189,255,.55); background: rgba(20,16,32,.78); color: #f1ecff; font: 600 calc(12px * var(--ts, 1)) / 1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sens-again[hidden] { display: none; }
.sens-again svg { width: 16px; height: 16px; flex: none; }
.sens-again.icon { width: 32px; padding: 0; justify-content: center; }
.sens-again.icon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sens-again:focus-visible { outline: 2px solid var(--accent-2, #c084fc); outline-offset: 2px; }
.sens-again-lb { position: absolute; transform: none; left: 50%; top: auto; bottom: calc(22px + env(safe-area-inset-bottom)); translate: -50% 0; min-height: 40px; padding: 0 16px 0 14px; font-size: 14px; z-index: 3; }
.nsfw-tick { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; font-size: calc(14px * var(--ts, 1)); line-height: 1.35; cursor: pointer; }
.nsfw-tick input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent-fill); }
.nsfw-tick b { font-weight: 600; }
.nsfw-tick small { display: block; color: var(--muted); font-size: calc(12px * var(--ts, 1)); font-weight: 400; margin-top: 1px; }
.ic-thumbs[hidden] ~ .nsfw-tick, .cm-thumb[hidden] ~ .nsfw-tick, .ev-prev[hidden] ~ .nsfw-tick,
.ic-thumbs[hidden] ~ .flag-row, .cm-thumb[hidden] ~ .flag-row, .ev-prev[hidden] ~ .flag-row { display: none; }
.flag-row { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: flex-start; }
.flag-row > .nsfw-tick { flex: 1 1 140px; min-width: 0; margin: 4px 0; }
.flag-row .ic-nsfw, .flag-row .cm-nsfw { flex: 1 1 140px; min-width: 0; order: 0; padding-left: 0; }
.flag-row.ic-flags { flex-basis: 100%; order: 6; padding-left: 48px; margin: 2px 0 4px; }
.composer.ic.open .flag-row.ic-flags { order: 3; padding-left: 0; }
.flag-row.cm-flags { flex: 0 0 100%; padding: 0 2px 6px; margin: 2px 0; }
.myst-blur { background-color: #131118; }
/* Opaque neon-sign cover, tinted from the viewer's accent. The kit photo never shows through, even if a blur filter would fail on iOS. */
.myst-veil { position: absolute; z-index: 5; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; padding: 14px 12px 16px; overflow: hidden; --myst-brick: color-mix(in srgb, rgb(var(--acc-rgb)) 16%, #131118 84%); background-color: #131118; background-color: var(--myst-brick, #131118); background-image: linear-gradient(180deg, rgba(0,0,0,.16), transparent 32%, transparent 68%, rgba(0,0,0,.24)); background-repeat: no-repeat; background-size: 100% 100%; font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif; }
.myst-wall { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; color: color-mix(in srgb, rgb(var(--acc-rgb)) 22%, #000 78%); opacity: .42; }
.myst-veil.tiny { padding: 8px 6px; gap: 5px; }
.myst-q { position: relative; z-index: 1; flex: none; width: min(30%, 82px); height: auto; overflow: visible; pointer-events: none; filter: drop-shadow(0 0 5px rgba(var(--acc-rgb), .5)) drop-shadow(0 0 11px rgba(var(--acc-rgb), .28)); }
.myst-q-soft { stroke: rgb(var(--acc-rgb)); fill: none; opacity: .32; }
.myst-q-tube { stroke: var(--accent); fill: none; }
.myst-q-core { stroke: #fff; fill: none; opacity: .88; }
.myst-q-soft-dot { fill: rgb(var(--acc-rgb)); opacity: .32; }
.myst-q-dot { fill: #fff; }
.myst-veil.tiny .myst-q { width: min(38%, 42px); }
.myst-spoil { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; font-family: inherit; font-weight: 800; font-size: calc(26px * var(--ts, 1)); line-height: 1.15; letter-spacing: 0.01em; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background-color: #12081c; background-color: color-mix(in srgb, var(--accent-deep) 65%, #000 35%); border: 2px solid var(--accent); border-radius: 999px; padding: 10px 18px; min-height: 48px; box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 0 10px rgba(var(--acc-rgb), .5), inset 0 0 12px rgba(var(--acc-rgb), .16); text-shadow: 0 0 6px rgba(var(--acc-rgb), .4); position: relative; z-index: 1; }
.myst-spoil:hover { background-color: color-mix(in srgb, var(--accent-deep) 55%, #1a1020 45%); }
.myst-spoil:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.myst-eye { width: 1.05em; height: 1.05em; flex: none; display: block; }
.myst-veil .myst-sub { font-family: inherit; font-weight: 600; font-size: calc(14px * var(--ts, 1)); line-height: 1.3; color: #fff; background: rgba(10, 6, 18, .88); border-radius: 8px; padding: 4px 10px; max-width: 100%; position: relative; z-index: 1; }
.myst-gems { position: relative; z-index: 1; flex: none; width: min(46%, 120px); height: auto; overflow: visible; pointer-events: none; margin-top: 1px; }
.myst-gem { fill: var(--accent); filter: drop-shadow(0 0 3px rgba(var(--acc-rgb), .55)); }
.myst-gem-mid { fill: var(--accent-2); }
.myst-veil.tiny .myst-spoil { font-size: calc(16px * var(--ts, 1)); min-height: 32px; padding: 4px 10px; gap: 0; }
.myst-veil.tiny .myst-sub, .myst-veil.tiny .myst-gems, .myst-veil.tiny .myst-eye { display: none; }
.myst-again { position: absolute; z-index: 6; transform: translateX(-100%); display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; margin: 0; border-radius: 999px; border: 1px solid rgba(var(--acc-rgb), .55); background: rgba(10, 6, 18, .92); color: #fff; font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: calc(13px * var(--ts, 1)); line-height: 1; cursor: pointer; }
.myst-again[hidden] { display: none; }
.myst-again-lb { position: absolute; transform: none; left: 50%; top: auto; bottom: calc(22px + env(safe-area-inset-bottom)); translate: -50% 0; min-height: 40px; z-index: 4; }
.ic-nsfw { flex-basis: 100%; order: 6; padding-left: 48px; margin: 2px 0 4px; }
.composer.ic.open .ic-nsfw { order: 3; padding-left: 0; }
.cm-nsfw { flex: 0 0 100%; padding: 0 2px 6px; margin: 2px 0; }
.bd-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 8px; }
.bd-row select, .bd-row input { width: 100%; min-width: 0; }
.bd-note { margin: 6px 0 0; font-size: 12.5px; }
.bd-confirm { margin: 8px 0 0; }
.bd-bg .bd-row { margin: 8px 0 4px; }
.dx-nsfw { margin: 0; }

/* ds-v440: Destash Pending, Interested, stash badge */
.dx-pr { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.dx-b .dx-st { align-self: flex-start; margin: 1px 0; padding: 1px 8px; font-size: calc(11px * var(--ts, 1)); line-height: 1.5; max-width: 100%; }
.dx-st.pending { color: #ffd479; background: rgba(255,200,80,.12); border-color: rgba(255,200,80,.45); }
:where(html[data-theme="light"]) .dx-st.pending { color: #8a5a00; background: rgba(224,150,0,.12); border-color: rgba(176,112,0,.45); }
.dx-card.pending .dx-ph { opacity: .85; }
.dx-dmpend { background: rgba(255,200,80,.28); }
:where(html[data-theme="light"]) .dx-dmpend { background: rgba(224,150,0,.22); }
.dx-grp { display: flex; align-items: baseline; gap: 6px; font-size: calc(15px * var(--ts, 1)); font-weight: 800; margin: 16px 2px 8px; }
.dx-grp span { color: var(--muted); font-weight: 600; }
.dx-inth { margin-top: 18px; }
.dx-irow { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px; margin-bottom: 8px; border-radius: 14px; border: 1px solid rgba(var(--acc-rgb), .25); background: rgba(var(--acc-rgb), .05); color: var(--text); min-width: 0; text-decoration: none; }
.dx-irow.ghost { min-height: 56px; opacity: .4; }
.dx-irow .avatar { width: 40px; height: 40px; flex: none; }
.dx-ib { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dx-ib b { display: inline-flex; align-items: center; gap: 5px; font-size: calc(14.5px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.dx-ib small { color: var(--muted); font-size: calc(13px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-irow.unread .dx-ib small { color: var(--text); font-weight: 600; }
.dx-it { flex: none; color: var(--muted); font-size: calc(12px * var(--ts, 1)); }
.dx-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.dx-none { margin: 4px 2px 0; }
.mk-chip.dx-badge { text-decoration: none; cursor: pointer; background: rgba(var(--acc-rgb), .18); border-color: rgba(var(--acc-rgb), .6); color: var(--text); font-weight: 700; }
:where(html[data-theme="light"]) .dx-irow { background: rgba(255,255,255,.7); }
.ad-person time { text-align: right; line-height: 1.35; }

/* ds-v444: pause on the session timer */
.wip-timer .tm-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.wip-timer.paused { background: rgba(var(--acc-rgb),.04); border-style: dashed; }
.wip-timer.paused .timer-clock { opacity: .6; }
.wip-timer .tm-state { font-size: calc(12px * var(--ts, 1)); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-pale); }
.wip-timer .tm-hint { flex: 1 1 100%; margin: 2px 0 0; font-size: calc(12.5px * var(--ts, 1)); line-height: 1.4; color: var(--muted, #9b93b8); }
.tl-paused { font-size: .9em; color: var(--muted, #9b93b8); white-space: nowrap; }
.bw-active.paused { color: var(--muted, #9b93b8); }
.wip-timer .tm-state { color: var(--text); opacity: .75; }
html[data-theme="light"] .wip-timer .tm-adjust { color: #6a3fc0; }

/* ds-v444: kit tags */
.kt-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; min-width: 0; }
.kt-chip { --th: 265; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 9px; border-radius: 999px; border: 1px solid hsl(var(--th) 70% 62% / .45); background: hsl(var(--th) 70% 60% / .16); color: hsl(var(--th) 90% 82%);
  font-weight: 600; font-size: calc(11.5px * var(--ts, 1)); line-height: 1.5; font-family: inherit; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
html[data-theme="light"] .kt-chip { background: hsl(var(--th) 70% 50% / .13); border-color: hsl(var(--th) 55% 45% / .4); color: hsl(var(--th) 60% 30%); }
.kt-chip.kt-more { --th: 250; text-transform: none; }
.kt-field .kt-picked { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; align-items: center; }
.kt-field .kt-sug, .kt-picked + .kt-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
button.kt-chip { cursor: pointer; font-size: calc(13px * var(--ts, 1)); padding: 5px 11px; min-height: 30px; }
button.kt-chip i { font-style: normal; font-size: 1.15em; line-height: 1; opacity: .8; }
.kt-chip.kt-add { background: transparent; }
.kt-chip.kt-morebtn { --th: 250; background: transparent; text-transform: none; }
.kt-none, .kt-cap { font-size: calc(12.5px * var(--ts, 1)); color: var(--muted); margin: 0; }
.kt-cap { margin-top: 8px; }
.kt-new { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.kt-new .kt-input { flex: 1 1 auto; min-width: 0; }
.pf-chip.pf-tag { text-transform: capitalize; }
.as-list .wip-info > .kt-row { display: flex; flex-wrap: nowrap; overflow: hidden; margin-top: 3px; }
.as-list .kt-row .kt-chip { flex: 0 1 auto; font-size: calc(11px * var(--ts, 1)); padding: 1px 7px; }

/* ds-v448: Gemma usage on the admin Gemma card */
.ad-gusage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 4px; }
.ad-gusage > div { min-width: 0; padding: 10px 12px; border-radius: 12px; background: rgba(var(--acc-rgb), .07); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .25); }
.ad-gusage b { display: block; font-size: calc(17px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-gusage span { display: block; color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); margin-top: 2px; }

/* ds-v449: Gemma patrol (owner only): switch on the Gemma card, review page, Admin alerts */
.ad-patrol { margin: 10px 0 6px; padding-top: 8px; border-top: 1px solid rgba(var(--acc-rgb), .18); }
.ad-patrol .switch-row { padding: 4px 0 6px; }
.ad-patrol .ad-link { display: inline-flex; align-items: center; gap: 6px; }
.pt-back { font-size: calc(14px * var(--ts, 1)); }
.pt-stats .ad-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pt-stats .ad-grid b { font-size: calc(19px * var(--ts, 1)); }
.pt-stats .ad-grid span { font-size: calc(11.5px * var(--ts, 1)); }
.pt-tabs { margin: 12px 0 10px; }
.pt-flag { padding: 12px 14px; margin-bottom: 10px; }
.pt-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pt-cat { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pt-conf { margin-left: auto; flex: none; font-size: calc(12px * var(--ts, 1)); color: var(--muted); padding: 2px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .3); }
.pt-conf.high { color: var(--text); background: rgba(var(--acc-rgb), .14); }
.pt-top .pill { margin-left: 4px; flex: none; }
.pt-top .pt-more { flex: none; }
.pt-why { margin: 6px 0 4px; }
.pt-ex { margin: 4px 0 6px; padding: 8px 10px; border-radius: 10px; background: rgba(var(--acc-rgb), .06); color: var(--muted); font-size: calc(13.5px * var(--ts, 1)); overflow-wrap: anywhere; }
.pt-meta { font-size: calc(12.5px * var(--ts, 1)); color: var(--muted); overflow-wrap: anywhere; }
.admin-alerts .aa-locked { opacity: .9; }
.admin-alerts .aa-always { flex: none; font-size: calc(12px * var(--ts, 1)); color: var(--muted); margin-right: 6px; }
@media (max-width: 360px) { .pt-stats .ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ds-v450: "Make this the main photo" on the add update form */
.wu-main { margin-top: 6px; }
.wu-main .check, .field .wu-main label.check { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-size: calc(14.5px * var(--ts, 1)); color: var(--text); }
.wu-pick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 0 26px; }
.wu-main[hidden], .wu-pick[hidden] { display: none; }
.wu-pick .sub { font-size: calc(12.5px * var(--ts, 1)); margin-right: 2px; }
.wu-pick button { min-width: 34px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: calc(13px * var(--ts, 1)); cursor: pointer; }
.wu-pick button.on { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; font-weight: 600; }
.ph-cell.wu-main-on img { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ds-v452: account security */
.em-pending { margin: 6px 0 0; font-size: calc(12.5px * var(--ts, 1)); color: var(--accent-2); }
.em-pw { margin-top: 10px; }
.em-pw .sub { margin: 6px 0 0; font-size: calc(12.5px * var(--ts, 1)); }

.ts-login { margin: 4px 0 10px; }
.ts-login:empty { display: none; }

/* ds-v454: Glo Board quick row (My Stash, WIPs, Finished) and the optional strip of current WIPs */
.qp { margin: 0 0 12px; }
.qp[hidden] { display: none; }
.qp-row { display: flex; gap: 4px; border: 1px solid rgba(var(--acc-rgb), .35); border-radius: 14px; padding: 4px; }
.qp-chip { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 2px; border-radius: 10px;
  font-size: calc(13px * var(--ts, 1)); font-weight: 600; color: var(--text); white-space: nowrap; }
.qp-chip svg { width: 15px; height: 15px; flex: none; opacity: .9; }
.qp-chip span { overflow: hidden; text-overflow: ellipsis; }
.qp-chip b { color: var(--accent); font-weight: 700; }
.qp-chip:active { background: rgba(var(--acc-rgb), .12); }
@media (max-width: 340px) { .qp-chip { font-size: calc(12px * var(--ts, 1)); gap: 3px; } .qp-chip svg { width: 13px; height: 13px; } }
.qp-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; padding: 2px 2px 4px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.qp-strip::-webkit-scrollbar { display: none; }
.qp-w { flex: 0 0 108px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; color: var(--text); min-width: 0; }
.qp-w img, .qp-noc { width: 108px; height: 108px; border-radius: 12px; border: 1px solid rgba(var(--acc-rgb), .35); background: #111; object-fit: cover; display: block; }
.qp-noc { display: grid; place-items: center; }
.qp-noc svg { width: 40px; height: 40px; }
.qp-n { font-size: calc(12.5px * var(--ts, 1)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qp-bar { height: 5px; border-radius: 3px; background: #2a2a33; overflow: hidden; }
.qp-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.qp-p { font-size: calc(11.5px * var(--ts, 1)); color: var(--muted, #a9a3b5); }
:where(html[data-theme="light"]) .qp-w img, :where(html[data-theme="light"]) .qp-noc { background: #efe9f5; }
:where(html[data-theme="light"]) .qp-bar { background: #e4dcec; }
/* ds-v455: Projects sub tabs stay one line (label and count never stack), about 34px tall; at 320 the bar scrolls sideways inside itself */
.seg.tabs.proj-sub { gap: 0; padding: 3px; }
.seg.tabs.proj-sub a { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 34px; padding: 0 6px; line-height: 1.2; font-size: calc(13px * var(--ts, 1)); }
.seg.tabs.proj-sub .seg-count { flex: none; margin-left: 5px; line-height: 17px; min-width: 17px; }
@media (max-width: 360px) { .seg.tabs.proj-sub a { font-size: calc(11.5px * var(--ts, 1)); padding: 0 3px; } .seg.tabs.proj-sub .seg-count { margin-left: 3px; padding: 0 3px; min-width: 15px; font-size: calc(10.5px * var(--ts, 1)); } }
/* ds-v455: at 320 the Glo Board quick row drops its icons so "My Stash 172" never cuts off */
@media (max-width: 340px) { .qp-chip svg { display: none; } .qp-chip { gap: 4px; } }
/* ds-v455: the WIP strip centers when every tile fits, and scrolls from the left edge when it does not */
.qp-w:first-child { margin-left: auto; }
.qp-w:last-child { margin-right: auto; }
/* ds-v457: My Projects page (/projects): the Projects list without the profile header */
.my-proj-title { margin: 2px 0 10px; }
.my-proj > .proj-sub:first-child, .my-proj .proj-sub { margin-top: 0; }
@media (min-width: 1024px) { .my-proj-title { margin-top: 8px; } }
/* ds-v458: People A to Z paging */
.ppl-more { display: flex; justify-content: center; padding: 8px 0 16px; }
/* ds-v459: finished project card sheet + print sheet */
.pcard { text-align: center; }
.pcard-h { margin: 2px 0 10px; font-size: 20px; }
.pcard-pv { display: flex; justify-content: center; }
.pcard-pv canvas { width: min(56vw, 230px, calc((100dvh - 330px) * 2 / 3)); min-width: 150px; height: auto; aspect-ratio: 2 / 3; border-radius: 10px; box-shadow: 0 6px 22px rgba(0,0,0,.35); display: block; }
.pcard-f { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin: 12px 0 4px; text-align: left; }
.pcard-f .check { margin: 0; min-height: 36px; font-size: 14px; }
.pcard-f .check.off { opacity: .45; }
.pcard-note { margin: 6px 0 8px; }
.pcard-share { text-align: left; margin-bottom: 8px; } .pcard-share textarea { width: 100%; margin-top: 4px; }
.pcard-btns { justify-content: center; gap: 10px; } .pcard-btns .btn { flex: 1; max-width: 200px; }
@media (max-width: 340px) { .pcard-f .check { font-size: 13px; } }
.pc-print { display: none; }
@media print {
  @page { size: letter portrait; margin: 0.5in; }
  html.printing-card body > *:not(.pc-print) { display: none !important; }
  html.printing-card, html.printing-card body { background: #fff !important; }
  html.printing-card .pc-print { display: block; padding-top: .6in; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pcp-grid { position: relative; width: 6in; height: 9in; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 2in); grid-template-rows: repeat(3, 3in); }
  .pcp-grid img { width: 2in; height: 3in; display: block; }
  .pcp-grid .cm { position: absolute; background: #000; }
  .pcp-grid .cm { display: block; }
  .pcp-grid .cm.v { width: 1px; height: .25in; margin-left: -.5px; }
  .pcp-grid .cm.h { height: 1px; width: .25in; margin-top: -.5px; }
}
/* ds-v459: zero chips on the Glo Board row stay visible but quieter; empty tab button */
.qp-chip.zero b { opacity: .55; }
.placeholder .pe-cta { margin-top: 10px; }
/* ds-v460: post reactions (press and hold the gem). Motion uses transform and opacity only, about 350ms in all. */
.act.gem { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; position: relative; }
.act.gem::before { content: ''; position: absolute; left: -2px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .9), 0 0 14px rgba(var(--acc-rgb), .7), inset 0 0 10px rgba(var(--acc-rgb), .45); opacity: 0; transform: scale(.4); }
.act.gem.rx-charge::before { animation: rxCharge .4s cubic-bezier(.3, .7, .4, 1) forwards; }
@keyframes rxCharge { to { opacity: 1; transform: scale(1); } }
.rx-pick { position: fixed; z-index: 400; display: flex; gap: 6px; padding: 7px 10px; border-radius: 999px; background: var(--card); border: 1.5px solid rgba(var(--acc-rgb), .7);
  box-shadow: 0 0 10px rgba(var(--acc-rgb), .45), 0 0 24px rgba(var(--acc-rgb), .2), 0 8px 24px rgba(0, 0, 0, .55); animation: rxGrow .24s cubic-bezier(.34, 1.56, .64, 1) both; will-change: transform, opacity; }
@keyframes rxGrow { from { opacity: 0; transform: translateY(14px) scale(.25); } 40% { opacity: 1; } }
.rx-pick .rx-it { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: none; border: 0; padding: 0; cursor: pointer; overflow: visible;
  animation: rxPop .22s cubic-bezier(.34, 1.7, .64, 1) both; animation-delay: calc(40ms + var(--i) * 32ms); transition: transform .14s ease-out; }
@keyframes rxPop { from { opacity: 0; transform: translateY(10px) scale(.2); } }
.rx-pick .rx-it svg { width: 34px; height: 34px; position: relative; z-index: 1; }
/* glow bloom behind each gem as it lands, then a facet shine sweeps across it */
.rx-pick .rx-it::before { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--acc-rgb), .75), rgba(var(--acc-rgb), 0) 68%); opacity: 0; transform: scale(.5);
  animation: rxBloom .2s ease-out both; animation-delay: calc(60ms + var(--i) * 32ms); pointer-events: none; }
@keyframes rxBloom { 45% { opacity: 1; transform: scale(1.25); } to { opacity: 0; transform: scale(1.5); } }
.rx-pick .rx-it::after { content: ''; position: absolute; z-index: 2; top: 9px; left: 12px; width: 8px; height: 30px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.85), rgba(255,255,255,0));
  opacity: 0; transform: translateX(-10px) rotate(20deg); animation: rxShine .18s ease-out both; animation-delay: calc(90ms + var(--i) * 32ms); pointer-events: none; mix-blend-mode: screen; }
@keyframes rxShine { 30% { opacity: .9; } to { opacity: 0; transform: translateX(22px) rotate(20deg); } }
.rx-pick .rx-it:hover, .rx-pick .rx-it:focus-visible, .rx-pick .rx-it.hot { transform: translateY(-8px) scale(1.3); outline: none; }
/* ds-v463: while the finger slides, the gem nearest the thumb brightens and scales up and the others ease down a little (--p is 0 to 1 by distance) */
.rx-pick.sliding .rx-it:not(.hot) { transform: translateY(calc(var(--p, 0) * -4px)) scale(calc(.9 + var(--p, 0) * .2)); }
.rx-pick.sliding .rx-it svg { opacity: calc(.62 + var(--p, 0) * .38); transition: opacity .08s linear; }
.rx-pick.sliding .rx-it.hot svg { opacity: 1; }
.rx-pick .rx-it.hot svg { filter: brightness(1.15) drop-shadow(0 0 6px rgba(var(--acc-rgb), .95)); }
.rx-pick .rx-it svg.rx-love { width: 38px; height: 38px; }
.rx-pick .rx-it.on { background: rgba(var(--acc-rgb), .18); }
.rx-pick .rx-lab { position: absolute; z-index: 3; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%) scale(.8); white-space: nowrap; font-size: 10px; font-weight: 700; color: var(--text); background: var(--card); border: 1px solid rgba(var(--acc-rgb), .6); border-radius: 999px; padding: 2px 7px; opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; }
.rx-pick .rx-it:hover .rx-lab, .rx-pick .rx-it:focus-visible .rx-lab, .rx-pick .rx-it.hot .rx-lab { opacity: 1; transform: translateX(-50%) scale(1); }
.rx-svg.rx-love { filter: none; }
body.halloween .rx-svg.rx-love { filter: drop-shadow(0 0 3px rgba(255, 150, 30, 1)) drop-shadow(0 0 9px rgba(124, 196, 63, .8)); }
body.halloween button.gem.liked.rx svg { background: none; }
body.halloween button.gem.liked.rx svg > * { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .rx-pick, .rx-pick .rx-it { animation: none; transition: none; }
  .rx-pick .rx-it::before, .rx-pick .rx-it::after { animation: none; display: none; }
  .act.gem.rx-charge::before { animation: none; opacity: 1; transform: none; }
}
/* ds-v461: hold and slide on touch. No scrolling, callout or selection while a gem press is held. */
.act.gem.rx-holding, .rx-pick, .rx-pick .rx-it { touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
html.rx-hold, html.rx-hold body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* ds-v461: comments and replies use the same full size picker as posts. The chosen reaction on a comment button is 22px, 36px wide target. */
.comment .cgem { min-width: 36px; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.comment .cgem.rx svg { width: 22px; height: 22px; margin-top: -2px; }
.comment .cgem::before { content: ''; position: absolute; left: 50%; top: 4px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .9), 0 0 12px rgba(var(--acc-rgb), .7); opacity: 0; transform: scale(.4); }
.comment .cgem.rx-charge::before { animation: rxCharge .4s cubic-bezier(.3, .7, .4, 1) forwards; }
.comment .cgem.rx-holding { touch-action: none; }
.notif .ngem svg { overflow: visible; }
@media (prefers-reduced-motion: reduce) { .comment .cgem.rx-charge::before { animation: none; opacity: 1; transform: none; } }
.notif .ngem .rx-svg { width: 20px; height: 20px; vertical-align: -5px; }
/* ds-v462: Halloween shows jack-o'-lantern reactions (the pumpkin heart with each face carved and glowing). The heart keeps the pumpkin. */
.rx-svg .rx-jack { display: none; }
body.halloween .rx-svg .rx-gem { display: none; }
body.halloween .rx-svg.rx-k-heart { filter: none; }
body.halloween .rx-svg .rx-jack { display: inline; }
body.halloween button.gem.liked.rx-it:not([data-k="heart"]) svg { background: none; }
body.halloween button.gem.liked.rx-it:not([data-k="heart"]) svg > * { visibility: visible; }
body.halloween .rx-svg { filter: drop-shadow(0 0 3px rgba(255,170,40,.9)) drop-shadow(0 0 8px rgba(255,120,20,.55)); }
/* ds-v463: Love it is never a pumpkin; in Halloween it is the heart gem with an orange and green glow */
body.halloween button.gem.liked svg.rx-love { background: none; filter: drop-shadow(0 0 3px rgba(255, 150, 30, 1)) drop-shadow(0 0 9px rgba(124, 196, 63, .8)); }
body.halloween button.gem.liked svg.rx-love > * { visibility: visible; }
/* ds-v464: the row catches the mouse across the gaps; the name label sits above the highlighted gem and stays on screen */
.rx-pick { pointer-events: auto; }
.rx-pick .rx-it:first-child .rx-lab { left: 0; transform: translateX(0) scale(.8); transform-origin: left bottom; }
.rx-pick .rx-it:last-child .rx-lab { left: auto; right: 0; transform: translateX(0) scale(.8); transform-origin: right bottom; }
.rx-pick .rx-it:first-child:is(:hover, :focus-visible, .hot) .rx-lab, .rx-pick .rx-it:last-child:is(:hover, :focus-visible, .hot) .rx-lab { transform: translateX(0) scale(1); }
.rx-pick .rx-lab { font-size: 11px; padding: 2px 8px; }
/* ds-v465: a small hint under the reaction row, shown the first three times */
.rx-pick .rx-hint { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--muted, #bbb); background: var(--card); border: 1px solid rgba(var(--acc-rgb), .45); border-radius: 999px; padding: 2px 9px; white-space: nowrap; pointer-events: none; }
/* ds-v465: variant A colours. Halloween: each pumpkin's glow takes its reaction colour */
body.halloween .rx-svg.rx-k-think { filter: drop-shadow(0 0 2px rgba(255,170,40,.9)) drop-shadow(0 0 7px rgba(34, 195, 230, .95)); }
body.halloween .rx-svg.rx-k-laugh { filter: drop-shadow(0 0 2px rgba(255,170,40,.9)) drop-shadow(0 0 7px rgba(255, 214, 31, .95)); }
body.halloween .rx-svg.rx-k-congrats { filter: drop-shadow(0 0 2px rgba(255,170,40,.9)) drop-shadow(0 0 7px rgba(47, 211, 107, .95)); }
body.halloween .rx-svg.rx-k-wow { filter: drop-shadow(0 0 2px rgba(255,170,40,.9)) drop-shadow(0 0 7px rgba(154, 123, 255, .95)); }
body.halloween .rx-svg.rx-k-sad { filter: drop-shadow(0 0 2px rgba(255,170,40,.9)) drop-shadow(0 0 7px rgba(142, 182, 228, .95)); }
body.halloween button.gem.liked svg.rx-love { filter: drop-shadow(0 0 3px rgba(255, 45, 85, 1)) drop-shadow(0 0 8px rgba(255, 150, 30, .9)) drop-shadow(0 0 12px rgba(124, 196, 63, .7)); }
.rx-svg { overflow: visible; }   /* ds-v465: confetti and thought dots may sit just outside the gem */
body.halloween .rx-svg.rx-emoji, .rx-svg.rx-emoji { filter: none; } body.halloween button.gem.liked svg.rx-emoji { background: none; } body.halloween button.gem.liked svg.rx-emoji > * { visibility: visible; }
/* ds-v466: iPhone haptic overlay: a transparent label over the button with a hidden switch inside (a real tap on it gives the system tick) */
label.hap-ov { position: absolute; inset: 0; z-index: 3; margin: 0; padding: 0; border: 0; background: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; cursor: inherit; border-radius: inherit; }
label.hap-ov input { position: absolute; width: 1px; height: 1px; margin: 0; visibility: hidden; }
/* ds-v466: on very narrow phones the row tightens so every reaction still fits */
@media (max-width: 359px) { .rx-pick { gap: 2px; padding: 6px 6px; } .rx-pick .rx-it { width: 42px; height: 42px; } .rx-pick .rx-it svg { width: 30px; height: 30px; } .rx-pick .rx-it svg.rx-love { width: 33px; height: 33px; } }
/* ds-v467: iPhone slide ticks: a transparent switch under the finger (the open reaction row, and gems with ?hapdrag=1) */
input.hap-sw { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: .011; z-index: 4; cursor: inherit; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
input[type=checkbox].hap-sw { -webkit-appearance: auto; appearance: auto; width: 100%; height: 100%; border: 0; background: none; box-shadow: none; display: block; position: absolute; left: 0; top: 0; margin: 0; }
label.hap-ov input[type=checkbox] { -webkit-appearance: auto; appearance: auto; }

/* ds-v469: member birthdays. Colors come from the accent variables, so Rainbow, custom hues and seasonal themes repaint it. */
.bday-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 16px 14px; margin-bottom: 10px; border: 1.5px solid rgba(var(--acc-rgb), .55); background: radial-gradient(120% 140% at 0% 0%, rgba(var(--acc-rgb), .28), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgba(var(--acc2-rgb, var(--acc-rgb)), .24), transparent 60%), var(--card); box-shadow: 0 0 18px rgba(var(--acc-rgb), .35); }
.bday-banner .bd-text { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.bday-banner .bd-emoji { grid-row: span 2; font-size: 34px; filter: drop-shadow(0 0 8px rgba(var(--acc-rgb), .7)); }
.bday-banner b { font-size: calc(18px * var(--ts, 1)); line-height: 1.2; text-shadow: 0 0 10px rgba(var(--acc-rgb), .6); }
.bday-banner small { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); }
.bday-banner .bd-off { position: relative; z-index: 1; flex: none; align-self: flex-start; font-size: calc(11.5px * var(--ts, 1)); color: var(--muted); padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(var(--acc-rgb), .3); white-space: nowrap; }
.bd-confetti { position: absolute; inset: 0; pointer-events: none; }
.bd-confetti i { position: absolute; top: -10px; left: var(--x); width: 6px; height: 10px; border-radius: 2px; transform: rotate(var(--r)); opacity: .9; animation: bdFall 3.2s linear var(--d) infinite;
  background: var(--accent); }
.bd-confetti i:nth-child(4n+2) { background: var(--accent-2, #22d3ee); }
.bd-confetti i:nth-child(4n+3) { background: #ffd60a; width: 5px; height: 5px; border-radius: 50%; }
.bd-confetti i:nth-child(4n) { background: #fff; width: 4px; height: 8px; }
@keyframes bdFall { from { transform: translateY(0) rotate(var(--r)); } to { transform: translateY(120px) rotate(calc(var(--r) + 260deg)); } }
@media (prefers-reduced-motion: reduce) { .bd-confetti i { animation: none; top: calc(var(--x) * .6); } }
.profile-head.bd-head .avatar.lg { box-shadow: 0 0 0 3px var(--accent), 0 0 22px rgba(var(--acc-rgb), .7); }
.bday-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px; margin-bottom: 10px; border: 1.5px solid rgba(var(--acc-rgb), .45); }
.bday-card .avatar { width: 42px; height: 42px; flex: none; }
.bday-card .bd-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bday-card .bd-body small { color: var(--muted); }
.bday-card .bd-wish { align-self: flex-start; margin-top: 6px; }
.bday-set .bd-pick { display: flex; gap: 8px; padding: 6px 0 4px; }
.bday-set .bd-pick select { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(var(--acc-rgb), .35); background: #101014; color: inherit; font: inherit; }
html[data-theme="light"] .bday-set .bd-pick select { background: #fff; }
.bday-set .bd-note { margin: 6px 0 0; }
/* ds-v471: birthday wish sheet */
.wish-sheet { display: flex; flex-direction: column; gap: 10px; }
.wish-sheet .ws-head { display: flex; gap: 10px; align-items: center; }
.wish-sheet .ws-head .avatar { width: 40px; height: 40px; flex: none; }
.wish-sheet .ws-head div { display: flex; flex-direction: column; gap: 2px; }
.wish-sheet .ws-head small { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); }
.wish-sheet textarea { width: 100%; min-height: 96px; resize: vertical; }
.wish-sheet .ws-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wish-sheet .ws-count { color: var(--muted); font-size: 12px; margin-right: auto; }
.wish-sheet .error:empty { display: none; }
.wish-sheet .error { flex-basis: 100%; order: 5; }
/* ds-v471: birthday wish posts */
.bday-post-banner { display: flex; align-items: center; gap: 6px; margin: -2px 0 8px; padding: 6px 10px; border-radius: 999px; width: fit-content; max-width: 100%; text-decoration: none; color: inherit;
  font-size: calc(13px * var(--ts, 1)); background: rgba(var(--acc-rgb), .14); border: 1px solid rgba(var(--acc-rgb), .4); box-shadow: 0 0 10px rgba(var(--acc-rgb), .25); }
.bday-post-banner b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bday-post-banner .bpb-gem { filter: drop-shadow(0 0 4px rgba(var(--acc-rgb), .8)); }
/* ds-v472: tagged posts inside a profile's Posts tab */
.tagged-by { display: flex; align-items: center; gap: 6px; margin: -2px 0 8px; font-size: calc(12.5px * var(--ts, 1)); color: var(--muted); }
.tagged-by svg { width: 14px; height: 14px; }
.tagged-by a { color: var(--accent); font-weight: 600; text-decoration: none; }
article.post.bday-post .tagged-by + .bday-post-banner, article.post .bday-post-banner + .tagged-by { margin-top: 0; }
/* ds-v473: tag review */
.tr-item { margin-bottom: 14px; }
.tr-bar { display: flex; align-items: center; gap: 8px; margin: 0 2px 6px; }
.tr-bar span { flex: 1; min-width: 0; color: var(--muted); font-size: calc(13px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-bar span b { color: var(--text, #fff); }
.ntext .tag-rev { display: inline-block; margin: 0 6px 3px 0; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(var(--acc-rgb), .18); color: var(--accent); }
.tag-rev-link[hidden] { display: none; }
/* ds-v474: Settings groups */
.set2 .set2-h { margin-top: 26px; font-size: 13px; letter-spacing: .08em; color: var(--accent); }
.set2 .set2-h small { display: block; text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 2px; }

.set-edit-row > span:first-child { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; }
.set-edit-row .set-edit-sub { display: block; margin: 2px 0 0; font-weight: 400; font-size: calc(12.5px * var(--ts, 1)); line-height: 1.35; color: var(--muted); }
/* ds-v474: pending tags on your own Posts tab */
.ptags-card { padding: 12px 12px 4px; margin-bottom: 14px; }
.ptags-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 10px; }
.ptags-h b { font-size: calc(14.5px * var(--ts, 1)); }
.ptags-all { color: var(--accent); font-weight: 700; font-size: calc(13px * var(--ts, 1)); white-space: nowrap; }
.ptags-card .tr-item .post { margin-bottom: 0; }
/* ds-v476: desktop sidebar logo is centered with its holiday graphics (turkey, pumpkin, ghost...). They hang 40 to 69px off each side,
   and the sidebar scrolls (overflow auto), so a left aligned logo had its left graphic cut off. Centered, every theme fits from 1024px up. */
.bottom a.side-logo.side-logo { --logo-pad-top: 6px; align-self: center; margin: 4px auto 18px; padding: 6px 0 18px; position: relative; }
body.hol .bottom a.side-logo.side-logo { left: 4px; }   /* the left graphic (69px) is a little wider than the right one (60px): center the whole group */
/* Desktop sidebar wordmark only. The shared Social glow is four text-shadows (4px, 12px, 28px, 52px). On Safari the two wide layers are drop-shadow filters (14px and 26px) instead, and those filters blur the already glowing word, so "Social" sits in a bright halo. Worst on lime and the other light neons. A short neon edge stays. Header logo, welcome logo, Drill, light mode, Halloween, holiday and rainbow wordmarks, and every other glow stay on their own rules. */
@media (min-width: 1024px) {
  html:not([data-theme="light"]):not([data-accent="rainbow"]) body:not(.halloween):not(.hol) .bottom a.side-logo .logo-social {
    text-shadow: 0 0 3px rgba(var(--acc-rgb), .7), 0 0 8px rgba(var(--acc-rgb), .32);
    filter: none;
  }
}
/* ds-v477: Glo Board caught up line, archive label, end card */
.glo-caught { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; margin: 18px 8px 8px; padding: 14px 12px; border-top: 1px solid rgba(var(--acc-rgb), .25); }
.glo-caught .glo-caught-ico { font-size: 22px; filter: drop-shadow(0 0 8px rgba(var(--acc-rgb), .7)); }
.glo-caught b { font-size: calc(16px * var(--ts, 1)); }
.glo-caught small { color: var(--muted); font-size: calc(13px * var(--ts, 1)); }
.glo-arch-label { margin: 6px 4px 10px; color: var(--muted); font-size: calc(12px * var(--ts, 1)); letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.glo-arch-label::before, .glo-arch-label::after { content: ''; flex: 1; height: 1px; background: rgba(var(--acc-rgb), .2); }
.glo-end { text-align: center; margin: 18px 0 8px; }
.glo-end b { font-size: calc(17px * var(--ts, 1)); }
.glo-end .sub { margin: 6px 0 12px; }
.glo-end-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
/* ds-v479: admin only Video lab */
.admin-lab.set-link-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: inherit; }
.admin-lab small { display: block; color: var(--muted, #999); font-size: 13px; margin-top: 2px; }
.lab { padding: 0 2px 40px; } .lab h2 { margin: 8px 0 4px; }
.lab .card { margin-top: 12px; } .lab-warn small { display: block; margin-top: 4px; }
.lab-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; } .lab-sec { display: block; margin-bottom: 12px; font-size: 14px; }
#labSrc, #labStat { margin-top: 8px; }
.lab-table { overflow-x: auto; } .lab-table table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.lab-table th, .lab-table td { text-align: left; padding: 6px 6px; border-bottom: 1px solid rgba(127,127,127,.2); vertical-align: top; white-space: nowrap; }
.lab-table td small { display: block; color: var(--muted, #999); font-size: 11px; }
.lab-files-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .lab-grid figure { margin: 0; }
.lab-vw { overflow: hidden; border-radius: 8px; background: #000; aspect-ratio: 16 / 9; }
.lab-vw video { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.lab-grid.zoom video { transform: scale(3); image-rendering: pixelated; }
.lab-grid figcaption { font-size: 12px; margin-top: 4px; }
@media (max-width: 700px) {
  .lab-table table, .lab-table tbody { display: block; } .lab-table tr:first-child { display: none; }
  .lab-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid rgba(127,127,127,.25); }
  .lab-table td { border: 0; padding: 0; white-space: normal; } .lab-table td:first-child { grid-column: 1 / -1; font-weight: 700; }
  .lab-table td:not(:first-child)::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted, #999); text-transform: uppercase; letter-spacing: .04em; }
}
/* ds-v480: the + toggles: on the New post page it turns into a close (rotated +, label Close) */
.bottom a.plus svg { transition: transform .28s cubic-bezier(.3, 1.4, .5, 1); }
.bottom a.plus.is-open svg { transform: rotate(45deg); }
.bottom a.plus.is-open { filter: saturate(1.15); }
@media (prefers-reduced-motion: reduce) { .bottom a.plus svg { transition: none; } }
/* ds-v480: header Clips button (members: Coming soon; admins: opens Clips) */
#iconRow .hdr-clips { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 12px; color: #f4f2fa; padding: 0; cursor: pointer; font: inherit; filter: drop-shadow(0 0 5px rgba(255,255,255,.22)); }
#iconRow .hdr-clips svg { width: 30px; height: 30px; }
#iconRow .hdr-clips.soon svg { opacity: .7; }
.hdr-soon { position: absolute; top: 1px; right: -6px; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  padding: 2px 4px; border-radius: 6px; background: var(--accent-fill, #a64dff); color: #fff; box-shadow: 0 0 8px rgba(var(--acc-rgb), .7); white-space: nowrap; pointer-events: none; }
.practice-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: var(--accent-2, #ff6ad5); border: 1px solid rgba(var(--acc2-rgb, 255,106,213), .55); background: rgba(var(--acc2-rgb, 255,106,213), .08); vertical-align: middle; }
.practice-tag svg { width: 12px; height: 12px; }
/* ds-v480: Clips carousel. Glowing neon cards, snap, depth on neighbours. Only the middle card plays. */
.cc-admin { margin-left: auto; }
.ccar { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px calc(50% - min(39vw, 170px)) 26px; margin: 4px -16px 0; scrollbar-width: none; outline: none; perspective: 900px; overscroll-behavior-x: contain; }
.ccar::-webkit-scrollbar { display: none; }
.ccard { flex: 0 0 min(78vw, 340px); scroll-snap-align: center; scroll-snap-stop: always; margin: 0; padding: 0; overflow: hidden; border-radius: 22px; transform-origin: center;
  transition: transform .18s ease-out, opacity .18s ease-out, box-shadow .3s; will-change: transform; border: 1px solid rgba(var(--acc-rgb), .35); }
.ccard.center { box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .9), 0 0 18px rgba(var(--acc-rgb), .75), 0 0 46px rgba(var(--acc-rgb), .4), 0 18px 40px rgba(0,0,0,.55); }
.ccard-vid { position: relative; aspect-ratio: 4 / 5; background: #000 radial-gradient(circle at 50% 40%, rgba(var(--acc-rgb), .25), transparent 70%); }
.ccard-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccard-len { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); }
.ccard-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); }
.ccard-bar i { display: block; height: 100%; background: var(--accent-grad, var(--accent)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 8px var(--accent); }
.ccard-meta { padding: 12px 14px 14px; display: grid; gap: 6px; }
.ccard-meta .practice-tag { margin: 0; justify-self: start; }
.ccard-who { display: flex; align-items: center; gap: 8px; font-weight: 700; color: inherit; text-decoration: none; }
.ccard-who img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .7); }
.ccard-meta p { margin: 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-open { display: inline-flex; align-items: center; gap: 4px; color: var(--muted, #aaa); font-size: 13px; text-decoration: none; }
.ccard-open svg { width: 15px; height: 15px; }
.ccar-dots { display: flex; justify-content: center; gap: 6px; margin-top: -8px; }
.ccar-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--acc-rgb), .3); transition: all .2s; }
.ccar-dots i.on { width: 18px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.ccar-empty { text-align: center; padding: 34px 20px; margin-top: 18px; }
.ccar-empty-ico svg { width: 48px; height: 48px; color: var(--accent); filter: drop-shadow(0 0 10px rgba(var(--acc-rgb), .8)); }
@media (prefers-reduced-motion: reduce) { .ccard { transition: none; } }
@media (min-width: 1024px) { .ccar { margin: 4px 0 0; padding-left: calc(50% - 170px); padding-right: calc(50% - 170px); } }
/* ds-v481: Clips sits in the bottom bar (left of +); members see a Soon badge on it */
#bottomNav a.side-clips { position: relative; }
/* ds-v482: Destash chip next to Finished in the Glo Board stats row (opens the Destash coming soon page, as the header tag did) */
.qp-row .qp-chip { gap: 4px; flex: 1 1 auto; padding-left: 4px; padding-right: 4px; }
.qp-chip.qp-dx { color: var(--accent-2, #ff6ad5); background: rgba(var(--acc2-rgb, 255,106,213), .08); box-shadow: inset 0 0 0 1px rgba(var(--acc2-rgb, 255,106,213), .45); }
.qp-chip.qp-dx svg { width: 15px; height: 15px; }
@media (max-width: 430px) { .qp-row .qp-chip:not(.qp-dx) svg { display: none; } }   /* four chips fit at 390 even with 3 digit counts */

/* ds-v483: Clips coming soon page */
.csp { max-width: 600px; margin: 0 auto; padding: 8px 20px 130px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.csp-hero { position: relative; width: calc(100% + 40px); height: 330px; margin: 0 -20px 18px; touch-action: pan-y; user-select: none; -webkit-user-select: none; contain: layout style; }
/* ds-v487: flat (2D) and compositor friendly. No blur filter, no preserve-3d, no animated background-position; animations pause offscreen. */
.csp-glow { position: absolute; inset: 0; background: radial-gradient(42% 46% at 50% 48%, rgba(var(--acc-rgb), .42), rgba(var(--acc-rgb), .14) 55%, transparent 75%); animation: cspPulse 4s ease-in-out infinite; }
@keyframes cspPulse { 50% { opacity: .7; } }
.csp-fan { position: absolute; inset: 0; transform: translate(calc(var(--mx, 0) * 6px), calc(var(--my, 0) * 4px)) rotate(calc(var(--mx, 0) * 3deg)); }
.csp-fan.csp-snap { transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.csp-card { all: unset; box-sizing: border-box; position: absolute; top: 46px; left: 50%; width: 140px; height: 232px; margin-left: -70px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transform: translate(calc(var(--x) + var(--mx, 0) * var(--d)), calc(var(--my, 0) * var(--d))) rotate(var(--r)); }
.csp-fan.csp-snap .csp-card { transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.csp-card:focus-visible .csp-face { outline: 2px solid var(--accent); outline-offset: 3px; }
.csp-c1 { --r: -14deg; --x: -100px; --d: -10px; top: 62px; }
.csp-c2 { --r: 14deg; --x: 100px; --d: -10px; top: 62px; }
.csp-c3 { --r: 0deg; --x: 0px; --d: 16px; z-index: 2; top: 30px; width: 158px; height: 262px; margin-left: -79px; }
.csp-in { position: absolute; inset: 0; display: block; animation: cspFloat 5s ease-in-out infinite; }
.csp-c1 .csp-in { animation-delay: -1.6s; } .csp-c2 .csp-in { animation-delay: -3.2s; }
@keyframes cspFloat { 50% { transform: translateY(-9px); } }
/* flip: a 2D squash and swap (scaleX), so no 3D layers or hidden backfaces are ever needed */
.csp-flipper { position: absolute; inset: 0; display: block; transition: transform .18s ease-in; }
.csp-card.mid .csp-flipper { transform: scaleX(0); }
.csp-face { position: absolute; inset: 0; display: block; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, rgba(var(--acc-rgb), .34), rgba(12,10,20,.6) 62%), #0e0b16; border: 1.5px solid rgba(var(--acc-rgb), .85);
  box-shadow: 0 0 24px rgba(var(--acc-rgb), .55), inset 0 0 18px rgba(var(--acc-rgb), .18); }
.csp-c3 .csp-face { box-shadow: 0 0 38px rgba(var(--acc-rgb), .75), inset 0 0 22px rgba(var(--acc-rgb), .24); }
.csp-backf { visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; font-size: 15px; line-height: 1.3; color: #fff; font-weight: 800;
  background: radial-gradient(circle at 50% 35%, rgba(var(--acc-rgb), .5), rgba(12,10,20,.6) 70%), #0e0b16; }
.csp-card.flip .csp-backf { visibility: visible; } .csp-card.flip .csp-face:not(.csp-backf) { visibility: hidden; }
.csp-gem svg { width: 54px; height: 54px; fill: var(--accent); filter: drop-shadow(0 0 10px rgba(var(--acc-rgb), .9)); }
.csp-shine { position: absolute; top: 0; bottom: 0; left: 0; width: 60%; background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.17) 50%, transparent 80%); transform: translateX(-120%); animation: cspShine 3.8s ease-in-out infinite; }
@keyframes cspShine { to { transform: translateX(260%); } }
.csp-hero.csp-off *, .csp-hero.csp-off { animation-play-state: paused !important; }
.csp-play { position: absolute; left: 50%; top: 42%; width: 54px; height: 54px; margin: -27px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--acc-rgb), .22); border: 1.5px solid rgba(var(--acc-rgb), .9); color: #fff; box-shadow: 0 0 16px rgba(var(--acc-rgb), .7); }
.csp-play svg { width: 24px; height: 24px; }
.csp-bar { position: absolute; left: 14px; right: 14px; bottom: 42px; display: grid; gap: 6px; }
.csp-bar i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); }
.csp-bar i + i { width: 60%; background: rgba(255,255,255,.13); }
.csp-tag { position: absolute; left: 14px; bottom: 15px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.csp-time { position: absolute; right: 12px; top: 12px; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 8px; background: rgba(0,0,0,.45); color: #fff; }
.csp-sparks { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.csp-sparks i { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(var(--acc-rgb), .95); animation: cspSpark .8s ease-out both; }
@keyframes cspSpark { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.csp-pill { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; color: var(--accent-2);
  background: rgba(var(--acc-rgb), .12); border: 1px solid rgba(var(--acc-rgb), .55); box-shadow: 0 0 12px rgba(var(--acc-rgb), .35); }
.csp-title { margin: 14px 0 12px; font-size: clamp(34px, 9.4vw, 52px); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; }
.csp-title span { color: var(--accent); text-shadow: 0 0 22px rgba(var(--acc-rgb), .7); }
.csp-text { margin: 0; max-width: 430px; font-size: 17px; line-height: 1.5; opacity: .92; }
.csp-sub { margin-top: 8px; font-size: 15px; opacity: .7; }
.csp-faq { width: 100%; margin-top: 34px; text-align: left; }
.csp-faq h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; text-align: center; }
.csp-q { margin-bottom: 10px; border-radius: 16px; background: rgba(var(--acc-rgb), .06); border: 1px solid rgba(var(--acc-rgb), .28); transition: border-color .2s, box-shadow .2s, background .2s; }
.csp-q[open] { border-color: rgba(var(--acc-rgb), .8); background: rgba(var(--acc-rgb), .1); box-shadow: 0 0 16px rgba(var(--acc-rgb), .3); }
.csp-q summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; font-weight: 700; font-size: 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.csp-q summary::-webkit-details-marker { display: none; }
.csp-q summary i { flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s; }
.csp-q[open] summary i { transform: rotate(-135deg) translate(-2px, -2px); }
.csp-q p { margin: 0; padding: 0 16px 16px; font-size: 15px; line-height: 1.55; opacity: .85; animation: cspOpen .25s ease-out; }
@keyframes cspOpen { from { opacity: 0; transform: translateY(-4px); } }
.csp-back { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; padding: 15px 28px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none;
  color: #fff; background: var(--accent-fill); box-shadow: 0 0 22px rgba(var(--acc-rgb), .55), inset 0 1px 0 rgba(255,255,255,.22); transition: transform .15s; }
.csp-back span { font-size: 22px; line-height: 0; margin-top: -2px; }
.csp-back:active { transform: scale(.97); }
:where(html[data-theme="light"]) .csp-face:not(.csp-backf) { background: linear-gradient(160deg, rgba(var(--acc-rgb), .3), #fff 72%), #fff; }
:where(html[data-theme="light"]) .csp-tag { color: var(--accent); }
:where(html[data-theme="light"]) .csp-bar i { background: rgba(0,0,0,.14); }
@media (prefers-reduced-motion: reduce) { .csp-in, .csp-shine, .csp-glow, .csp-q p { animation: none; } .csp-card, .csp-in, .csp-fan, .csp-fan.csp-snap .csp-card, .csp-flipper { transition: none; } .csp-shine { display: none; } }
@media (min-width: 1024px) { .csp { padding-top: 28px; } .csp-hero { height: 360px; } .csp-c1 { --x: -130px; } .csp-c2 { --x: 130px; } }

/* ds-v484: time capsule invite picker */
.cinv .inv-list { max-height: min(56vh, 520px); }
.cinv-h { margin: 12px 4px 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.cinv-h:first-child { margin-top: 2px; }
.cinv .inv-row.on { background: rgba(var(--acc-rgb), .1); border-radius: 12px; }
.cinv mark { background: rgba(var(--acc-rgb), .3); color: inherit; border-radius: 3px; padding: 0 1px; }
.cinv-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.cinv-chips:empty { display: none; }
.cinv-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; color: inherit; cursor: pointer;
  background: rgba(var(--acc-rgb), .14); border: 1px solid rgba(var(--acc-rgb), .55); }
.cinv-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.cinv-chip i { font-style: normal; opacity: .7; font-size: 15px; }
.cinv .inv-foot { align-items: center; }

/* ds-v485: Destash sample listing card (looks like a real listing, not interactive) */
.dss-sample { border: 1px solid rgba(var(--acc-rgb), .55); box-shadow: 0 0 18px rgba(var(--acc-rgb), .25); pointer-events: none; user-select: none; -webkit-user-select: none; text-align: left; }
.dsl-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d0b22; }
.dsl-cover svg { width: 100%; height: 100%; display: block; }
.dsl-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); }
.dsl-price { position: absolute; z-index: 1; left: 12px; bottom: 10px; font-size: 22px; font-weight: 800; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.dsl-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.dsl-title { font-size: 18px; font-weight: 800; line-height: 1.2; }
.dsl-by { font-size: 13.5px; color: var(--muted); margin-top: -4px; }
.dsl-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dsl-specs span { display: flex; flex-direction: column; gap: 2px; padding: 7px 9px; border-radius: 10px; font-size: 13px; font-weight: 700; background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .22); }
.dsl-specs small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dsl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dsl-chips i { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: var(--accent-2); border: 1px solid rgba(var(--acc-rgb), .5); }
.dsl-chips i.av { color: #34d399; border-color: rgba(52,211,153,.5); }
.dsl-seller { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(var(--acc-rgb), .18); }
.dsl-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent-fill), var(--accent-2)); }
.dsl-who { display: flex; flex-direction: column; min-width: 0; flex: 1; } .dsl-who b { font-size: 14px; } .dsl-who small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsl-msg { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #fff; background: var(--accent-fill); opacity: .72; }
.dsl-msg svg { width: 16px; height: 16px; }
:where(html[data-theme="light"]) .dsl-chips i.av { color: #047857; }
.csp-q p a { color: var(--accent-2); font-weight: 700; }

/* ds-v490 */ .missed-line { font-size: 12px; font-weight: 800; color: var(--accent); margin: -2px 0 8px; letter-spacing: .2px; }
/* ds-v495: My Planner saved items + shopping list */
.pl-wrap{margin-top:18px;display:flex;flex-direction:column;gap:12px}
.pl-top{display:flex;align-items:center;justify-content:space-between}.pl-h{margin:0;font-size:1.15rem}
.pl-item,.pl-shop{padding:14px}.pl-head{display:flex;align-items:center;gap:8px;font-size:.82rem;opacity:.9}.pl-head .more{margin-left:auto}
.pl-kind{color:var(--accent);font-weight:600}.pl-vis{opacity:.7}.pl-title{margin:6px 0 8px;font-size:1.05rem}
.pl-body{white-space:pre-wrap;margin:0 0 6px}.pl-photo{width:100%;max-height:220px;object-fit:cover;border-radius:12px;margin-bottom:8px;display:block}
.pl-times{font-size:.85rem;opacity:.8;margin:0 0 6px}.pl-more summary{cursor:pointer;color:var(--accent);margin:4px 0}
.pl-ing,.pl-steps{padding-left:20px;margin:6px 0}.pl-steps li{margin-bottom:6px}.pl-src{font-size:.85rem;color:var(--accent)}
.sh-add{display:flex;gap:8px;margin-bottom:8px}.sh-add input{flex:1;min-width:0}
.sh-list{list-style:none;padding:0;margin:0}.sh-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border-top:1px solid rgba(255,255,255,.07)}
.sh-row label{flex:1;min-width:0}.sh-row.s1 span{text-decoration:line-through;opacity:.55}.sh-haveL .sh-row{opacity:.5}.sh-sub{margin:10px 0 2px;font-size:.82rem;opacity:.7}
.pl-wrap>.card{margin:0}
.sh-lists{display:flex;gap:6px;overflow-x:auto;margin:8px 0 2px;padding-bottom:2px;scrollbar-width:none}.sh-lists::-webkit-scrollbar{display:none}
.sh-tab{flex:none;border:1px solid rgba(var(--acc-rgb),.45);background:transparent;color:inherit;border-radius:999px;padding:6px 12px;font:inherit;font-size:.85rem;white-space:nowrap}
.sh-tab.on{background:rgba(var(--acc-rgb),.2);border-color:var(--accent);color:var(--accent);font-weight:600}.sh-tab b{opacity:.8;margin-left:2px}.sh-new{border-style:solid;opacity:.85}
.sh-pick{display:flex;flex-direction:column;gap:8px}
/* ds-v499: planner folders, search, sort, list view */
.pl-chips{display:flex;gap:6px;overflow-x:auto;align-items:center;scrollbar-width:none}.pl-chips::-webkit-scrollbar{display:none}.pl-chips .more{flex:none}
.pl-tools{display:flex;gap:8px;align-items:center}.pl-tools input{flex:1;min-width:0;padding:8px 12px}.pl-tools select{flex:none;width:auto;padding:8px 10px}
.pl-view{display:flex;flex:none;border:1px solid rgba(var(--acc-rgb),.45);border-radius:10px;overflow:hidden}.pl-view button{background:transparent;border:0;color:inherit;padding:7px 10px;font-size:1rem}
.pl-view button[aria-selected=true]{background:rgba(var(--acc-rgb),.22);color:var(--accent)}
.pl-items{display:flex;flex-direction:column;gap:12px}.pl-items>.card{margin:0}.pl-listv{gap:6px}
.pl-row{display:flex;align-items:center;gap:12px;padding:8px 10px}.pl-thumb{width:48px;height:48px;border-radius:10px;object-fit:cover;flex:none}
.pl-ico{display:grid;place-items:center;background:rgba(var(--acc-rgb),.14);font-size:1.4rem}
.pl-rowt{flex:1;min-width:0;background:none;border:0;color:inherit;text-align:left;padding:0;font:inherit;display:flex;flex-direction:column}
.pl-rowt b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pl-rowt small{opacity:.65;font-size:.8rem}.pl-title .pl-rowt{display:inline;font-weight:inherit}
/* ds-v503: list view expand / collapse */
.pl-chev{flex:none;display:inline-block;color:var(--accent);font-size:1.1rem;line-height:1;padding:4px;transition:transform .15s;cursor:pointer}.pl-chev.up{transform:rotate(180deg)}
.pl-listv .pl-item:not(.pl-row) .pl-head{cursor:pointer}.pl-close{display:block;margin:12px auto 0;min-width:120px}
.pl-title .pl-open{cursor:pointer;font-weight:700}
/* ds-v504: My Planner home (neon tiles) */
.ph-card{border:1.5px solid var(--accent);border-radius:22px;padding:16px 12px 14px;margin:6px 0 14px;background:radial-gradient(120% 80% at 50% 0,rgba(var(--acc-rgb),.10),transparent 60%),rgba(8,14,26,.85);box-shadow:0 0 18px rgba(var(--acc-rgb),.35),inset 0 0 22px rgba(var(--acc-rgb),.08)}
.ph-head{display:flex;align-items:center;gap:12px;padding:0 4px 12px}.ph-head .pi{width:58px;height:58px;flex:none}
.ph-head h1{margin:0;font-size:1.75rem;line-height:1.1;color:#fff}.ph-head p{margin:2px 0 0;color:#cfd8ea;font-size:.86rem}
.ph-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ph-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 10px 12px;border:1.5px solid rgba(var(--acc-rgb),.75);border-radius:16px;background:linear-gradient(160deg,rgba(var(--acc-rgb),.07),rgba(130,90,255,.05));box-shadow:0 0 10px rgba(var(--acc-rgb),.28),inset 0 0 14px rgba(var(--acc-rgb),.06);color:#fff;text-decoration:none;min-height:142px}
.ph-tile:active{transform:scale(.98)}.ph-tile .pi{width:52px;height:52px;margin-bottom:6px}
.ph-tile b{font-size:1.12rem}.ph-tile small{color:#c9d3e6;font-size:.72rem;line-height:1.3}
.ph-go{position:absolute;top:12px;right:12px;width:28px;height:28px;border-radius:50%;border:1.5px solid rgba(var(--acc-rgb),.7);display:grid;place-items:center;color:var(--accent-2);font-size:1.2rem;line-height:1;box-shadow:0 0 6px rgba(var(--acc-rgb),.35)}
.pi{filter:drop-shadow(0 0 3px rgba(var(--acc-rgb),.75)) drop-shadow(0 0 7px rgba(176,114,255,.45))}.ph-budget .pi{filter:drop-shadow(0 0 3px rgba(255,200,90,.8)) drop-shadow(0 0 7px rgba(255,160,46,.4))}
.ph-priv{margin:12px 4px 0;color:#9fb0c8;font-size:.82rem;text-align:center}
.ph-soon{text-align:center;padding:28px 18px}.ph-soon .pi{width:84px;height:84px}.ph-soon h1{margin:8px 0 2px;color:#fff}.ph-soon p{color:#cfd8ea}.ph-soon-t{font-weight:600;color:var(--accent-2)!important;margin:14px 0 18px}
.pl-topb{display:flex;gap:6px}
.pl-folders{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.pl-folder{border:1px solid var(--line,#2a3446);border-radius:12px;background:var(--card,#141b27)}
.pl-frow{display:flex;align-items:center}.pl-ftog{flex:1;display:flex;align-items:center;gap:8px;padding:11px 12px;background:none;border:0;color:inherit;font:inherit;text-align:left;cursor:pointer}
.pl-ftog b{flex:1}.pl-fn{min-width:24px;padding:1px 8px;border-radius:10px;background:rgba(127,127,127,.18);font-size:.8rem;text-align:center}
.pl-chev.up{transform:rotate(180deg)}.pl-fin{padding:0 8px 8px}.pl-fempty{padding:4px 6px 10px;margin:0}
.ph-grid .ph-tile small{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important;font-size:.72rem!important}.ph-card .ph-head p{font-size:.86rem!important}
/* ds-v506 Tasks & Lists */
.sh-text .sh-txt{flex:1;white-space:pre-wrap;word-break:break-word;line-height:1.4}
.sh-del{background:none;border:0;color:var(--muted,#999);font-size:20px;padding:4px 8px;cursor:pointer}
.sh-pick{display:grid;gap:8px;margin-top:8px}
.sh-add{flex-wrap:wrap}
.pi.pi-img,.ph-budget .pi.pi-img{filter:none;object-fit:contain}.ph-head .pi-img{width:62px;height:62px}
.pl-units{display:flex;align-items:center;gap:6px;margin:8px 0 2px;font-size:.8rem}.pl-units span{opacity:.7;margin-right:2px}.pl-u{background:none;border:1px solid var(--border,#444);color:inherit;border-radius:999px;padding:3px 10px;font-size:.8rem;cursor:pointer}.pl-u.on{background:var(--accent-fill,var(--accent));border-color:transparent;color:#fff}
/* ds-v508: Budget */
.bd-head{display:flex;align-items:center;justify-content:space-between}.bd-head h1{margin:0;font-size:1.5rem}
.bd-month{display:flex;align-items:center;justify-content:center;gap:14px;margin:6px 0 10px}.bd-month b{min-width:150px;text-align:center}
.bd-sum{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}.bd-sum small{display:block;opacity:.7;font-size:.8rem}.bd-sum b{font-size:1.25rem}
.bd-spent{color:#ff4fd8;text-shadow:0 0 8px rgba(255,79,216,.5)}.bd-pos{color:#39ff88;text-shadow:0 0 8px rgba(57,255,136,.45)}.bd-neg{color:#ff3b4f}
.bd-bar{height:8px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden;margin-top:6px}.bd-bar.wide{grid-column:1/-1}
.bd-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#22d3ee,#39ff88);box-shadow:0 0 8px #39ff88}.bd-bar.over span{background:#ff3b4f;box-shadow:0 0 8px #ff3b4f}
.bd-add{width:100%;margin:10px 0}.bd-card h2{font-size:1.05rem;margin:0 0 8px}
.bd-tabs{display:flex;gap:6px;margin-bottom:8px}.bd-tabs button{flex:1;background:none;border:1px solid rgba(255,255,255,.15);color:inherit;border-radius:99px;padding:5px 8px;font-size:.8rem}.bd-tabs .on{border-color:var(--accent);color:var(--accent);box-shadow:0 0 8px rgba(var(--acc-rgb),.4)}
.bd-svg{width:100%;height:auto}.bd-svg .bd-in,.bd-key .bd-in{fill:#22d3ee;background:#22d3ee;filter:drop-shadow(0 0 3px #22d3ee)}.bd-svg .bd-out,.bd-key .bd-out{fill:#ff4fd8;background:#ff4fd8;filter:drop-shadow(0 0 3px #ff4fd8)}
.bd-v{fill:#ff8fe6;font-size:9px;text-anchor:middle}.bd-l{fill:currentColor;opacity:.7;font-size:10px;text-anchor:middle}
.bd-key{display:flex;gap:14px;justify-content:center;font-size:.8rem;opacity:.85}.bd-key i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px}
.bd-pie{display:flex;align-items:center;gap:12px}.bd-pie svg{width:130px;flex:none}.bd-pt{fill:currentColor;font-size:17px;font-weight:700;text-anchor:middle}.bd-ps{fill:currentColor;opacity:.6;font-size:10px;text-anchor:middle}
.bd-leg{list-style:none;padding:0;margin:0;flex:1;font-size:.85rem}.bd-leg li{display:flex;align-items:center;gap:6px;padding:3px 0}.bd-leg i{width:10px;height:10px;border-radius:50%;flex:none}.bd-leg b{margin-left:auto}.bd-leg small{opacity:.6;min-width:52px;text-align:right}
.bd-list{list-style:none;padding:0;margin:0}.bd-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid rgba(255,255,255,.06)}.bd-row:first-child{border-top:0}.bd-row>div{flex:1;min-width:0}.bd-row small{display:block;opacity:.65;font-size:.8rem}
.bd-dot{width:10px;height:10px;border-radius:50%;flex:none;box-shadow:0 0 6px currentColor}.bd-amt{font-weight:600}.bd-empty{opacity:.7;font-size:.9rem;margin:4px 0}
.bd-form{display:flex;flex-direction:column;gap:10px}.bd-form label{display:flex;flex-direction:column;gap:4px;font-size:.85rem}.bd-form [hidden]{display:none}.bd-btns{display:flex;gap:10px;justify-content:flex-end}
.bd-sug{display:block;width:100%;text-align:left;background:rgba(var(--acc-rgb),.08);border:1px solid rgba(var(--acc-rgb),.4);color:inherit;border-radius:12px;padding:8px 10px}.bd-sug small{display:block;opacity:.7;margin-top:2px}
.bd-form select,.bd-form input[type=number]{width:100%;box-sizing:border-box;padding:14px 16px;border-radius:14px;border:1px solid rgba(var(--acc-rgb),.35);background:rgba(255,255,255,.04);color:inherit;font:inherit;font-size:1rem}.bd-form select option{background:#1b1b22;color:#f2eef8}
.sh-sech{margin:12px 0 2px;font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);opacity:.9}.sh-row .sh-sec{margin-left:auto}.pl-onlist{display:inline-flex;align-items:center;gap:4px;margin-left:8px;padding:2px 8px;border-radius:99px;font-size:.72rem;font-weight:600;color:var(--accent);border:1px solid rgba(var(--acc-rgb),.5);box-shadow:0 0 6px rgba(var(--acc-rgb),.35);vertical-align:middle}
/* ds-v488: admin Clips dial (virtualized, 2D only) and full screen layer */
.cdial { position: relative; display: block; overflow: hidden; padding: 0; margin: 8px -16px 0; scroll-snap-type: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; height: 520px; contain: layout style; }
.cdial .ccard { position: absolute; top: 18px; left: 50%; width: var(--cw, 300px); flex: none; transition: none; will-change: transform; cursor: grab; }
.cdial .ccard:active { cursor: grabbing; }
.cdial:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 16px; }
.ccard-ph { border-radius: 22px 22px 0 0; background: rgba(var(--acc-rgb), .08); }
.ccard-len { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.cfull { position: fixed; inset: 0; z-index: 1000; --fade: 1; }
.cfull-bg { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .32s ease; }
.cfull.in .cfull-bg { opacity: var(--fade); }
.cfull-media { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; height: 100dvh; transform-origin: 0 0; touch-action: none; }
.cfull-media .ccard-vid { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.cfull-media video { width: 100%; height: 100%; object-fit: cover; }
.cfull-x { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top) + 12px); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(var(--acc-rgb), .7); background: rgba(0,0,0,.55); color: #fff; font-size: 18px; display: grid; place-items: center; box-shadow: 0 0 14px rgba(var(--acc-rgb), .5); opacity: 0; transition: opacity .2s .15s; }
.cfull-x svg { width: 20px; height: 20px; }
.cfull-who { position: absolute; z-index: 2; left: 16px; right: 70px; bottom: calc(env(safe-area-inset-bottom) + 24px); color: #fff; font-weight: 800; text-shadow: 0 1px 6px rgba(0,0,0,.7); opacity: 0; transition: opacity .2s .15s; }
.cfull-who p { margin: 6px 0 0; font-weight: 500; font-size: 14px; }
.cfull.in .cfull-x, .cfull.in .cfull-who { opacity: 1; }
.cfull.out .cfull-x, .cfull.out .cfull-who { opacity: 0; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .cfull-media, .cfull-bg { transition: none; } }
@media (min-width: 1024px) { .cdial { margin: 8px 0 0; } }
.cdial:focus-visible { outline: none; } .cdial:focus-visible .ccard.center { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.cfull-media .ccard-len { display: none; }
.cdial .ccard-meta p { -webkit-line-clamp: 1; }

/* mock: full screen clip actions (glowing accent Save and Share) */
.cfull-acts { position: absolute; z-index: 2; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 22px); display: grid; gap: 10px; opacity: 0; transition: opacity .2s .15s; }
.cfull.in .cfull-acts { opacity: 1; } .cfull.out .cfull-acts, .cfull.drag .cfull-acts, .cfull.drag .cfull-x, .cfull.drag .cfull-who { opacity: 0; transition-delay: 0s; }
.cfull-act { display: grid; justify-items: center; gap: 4px; width: 58px; padding: 10px 0 8px; border-radius: 18px; font: inherit; font-size: 12px; font-weight: 800; color: #fff; cursor: pointer;
  background: rgba(0,0,0,.45); border: 1.5px solid rgba(var(--acc-rgb), .85); box-shadow: 0 0 16px rgba(var(--acc-rgb), .6), inset 0 0 10px rgba(var(--acc-rgb), .2); }
.cfull-act svg { width: 24px; height: 24px; color: var(--accent); filter: drop-shadow(0 0 6px rgba(var(--acc-rgb), .9)); }
.cfull-act.on { background: var(--accent-fill); } .cfull-act.on svg { color: #fff; }
.cfull-who { right: 86px; }
.cfull.drag .cfull-media { transition: none; }
.cfull.drag .cfull-bg { transition: none; } .cfull-act.on svg path { fill: currentColor; }
.cfull { z-index: 55; }   /* mock: under sheets (60) and the toast, over the header and bottom bar */

/* MOCK: 3D drum. Perspective on the track only; each card is one simple transformed layer. */
.cdrum { perspective: var(--persp, 1000px); perspective-origin: 50% 45%; overflow: visible; contain: layout style; }
.cdrum .ccard { top: 26px; will-change: auto; transform-origin: 50% 50%; box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .55) !important; background: linear-gradient(180deg, rgba(var(--acc-rgb), .14), rgba(16,14,24,1) 40%); transition: none !important; }
.cdrum .ccard.center { box-shadow: 0 0 0 1.5px rgba(var(--acc-rgb), .95) !important; }
.cdrum .ccard .ccard-vid { border-radius: 22px 22px 0 0; }
.cdrum-glow { position: absolute; left: 50%; top: 26px; width: calc(var(--cw, 260px) + 60px); height: calc(var(--ch, 420px) + 40px); transform: translate(-50%, -20px); border-radius: 40px;
  background: radial-gradient(closest-side, rgba(var(--acc-rgb), .55), rgba(var(--acc-rgb), .18) 60%, transparent); pointer-events: none; z-index: 0; }
.cdrum .ccard { overflow: visible; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.cdrum .ccard video { border-radius: 22px 22px 0 0; }

/* MOCK 8 sided drum: faces darken as they turn away (static per frame, no shadows or blur) */
.cdrum .ccard::after { content: ''; position: absolute; inset: 0; border-radius: 22px; pointer-events: none; background: #000; opacity: calc(var(--shade, 0) * .55); }
.cdrum .ccard { border-radius: 14px; } .cdrum .ccard video, .cdrum .ccard .ccard-vid { border-radius: 14px 14px 0 0; } .cdrum .ccard::after { border-radius: 14px; }
/* B: curved look. A static cylinder shading overlay on every face (light center, darker edges, a soft highlight band). The video is not bent. */
.cdrum.curved .ccard::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 14px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 16%, rgba(0,0,0,0) 34%, rgba(255,255,255,.10) 44%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.06) 56%, rgba(0,0,0,0) 66%, rgba(0,0,0,.18) 84%, rgba(0,0,0,.55) 100%); }
.cdrum.curved .ccard { box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .35) !important; } .cdrum.curved .ccard.center { box-shadow: 0 0 0 1.5px rgba(var(--acc-rgb), .8) !important; }

/* MOCK social on the full screen clip: gem + comments join Save and Share in the right stack */
.cfull-act .n { font-size: 12px; font-weight: 800; }
.cfull-gem.liked { color: var(--accent); border-color: var(--accent); }
.cfull-gem .gem-body { stroke: #fff; } .cfull-gem.liked .gem-body { fill: url(#gemFill); stroke: var(--accent-2); } .cfull-gem svg { filter: none !important; }
.cfull-gem { position: relative; } .cfull-gem .spark { color: var(--accent); }
.cfull-media { transition: opacity .25s; } .cfull.dim .cfull-media { opacity: .62; } .cfull.dim .cfull-acts, .cfull.dim .cfull-who { opacity: 0 !important; }
.cc-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line, rgba(255,255,255,.15)); background: transparent; color: inherit; display: grid; place-items: center; }
.cc-sheet { position: relative; } .cc-sheet .sheet-grip, .cc-title { touch-action: none; }
.ccard-counts { display: flex; gap: 8px; } .cc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(var(--acc-rgb), .45); color: var(--accent); }
.cc-chip svg { width: 15px; height: 15px; } .cc-chip b { color: var(--text, #fff); font-weight: 800; }
/* MOCK v3: tiny looping previews on every visible face; the full clip crossfades in over it once its first frame is painted (never blank) */
.ccard-vid { position: relative; } .ccard-vid .ccard-pv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ccard-vid .ccard-main { position: relative; z-index: 1; opacity: 0; transition: opacity .12s linear; }
.ccard.ready .ccard-main, .cfull .ccard-main[src] { opacity: 1; }
.cdrum .ccard.center { touch-action: none; }
.cup-hint { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); display: none; align-items: center; gap: 4px; padding: 4px 11px 4px 7px; border-radius: 999px; background: rgba(0,0,0,.55); border: 1px solid rgba(var(--acc-rgb), .6); color: #fff; font-size: 12px; font-weight: 800; pointer-events: none; }
.cup-hint svg { width: 16px; height: 16px; color: var(--accent); animation: cupNudge 1.4s ease-in-out infinite; }
.cdrum.hint .ccard.center .cup-hint { display: inline-flex; } .cfull .cup-hint { display: none !important; }
@keyframes cupNudge { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .cup-hint svg { animation: none; } .ccard-vid .ccard-main { transition: none; } }
/* ds-v512: admin Clips vertical feed */
.cfeed{height:70vh;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior-y:contain;margin:0 -12px;scrollbar-width:none;-webkit-overflow-scrolling:touch;background:var(--bg)}
.cfeed::-webkit-scrollbar{display:none}
.cf-item{position:relative;height:100%;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden;background:#1b1d22}
.cf-item video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#1b1d22}
.cf-acts{position:absolute;right:10px;bottom:96px;display:flex;flex-direction:column;gap:16px;z-index:2}
.cf-act{display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:0;color:#fff;font:800 12px/1 inherit;text-shadow:0 1px 3px rgba(0,0,0,.6);cursor:pointer}
.cf-act svg{width:30px;height:30px;filter:drop-shadow(0 1px 3px rgba(0,0,0,.5))}
.cf-act.liked,.cf-act.on{color:var(--accent)}
.cf-meta{position:absolute;left:0;right:64px;bottom:0;padding:40px 14px 16px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.6));z-index:1}
.cf-who{display:flex;align-items:center;gap:8px;color:#fff;font-weight:800;text-decoration:none}
.cf-who img{width:34px;height:34px;border-radius:50%;border:2px solid var(--accent)}
.cf-meta p{margin:6px 0 0;font-size:14px;line-height:1.35}
.cf-empty{padding:40px 16px;text-align:center}
/* ds-v513: polish (transform and opacity only) */
.cf-item video{transform:translateZ(0)}
.cf-item::after{content:'';position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:rgba(0,0,0,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/30px no-repeat;opacity:0;transform:scale(.7);transition:opacity .2s ease,transform .25s cubic-bezier(.2,.8,.2,1);pointer-events:none;z-index:2}
.cf-item.paused::after{opacity:1;transform:scale(1)}
.cf-act{transition:transform .15s ease}
.cf-act:active{transform:scale(.88)}
.cf-act svg{filter:drop-shadow(0 0 6px color-mix(in srgb,var(--accent) 55%,transparent)) drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.cf-act.liked svg{fill:var(--accent);animation:cfPop .35s cubic-bezier(.2,.8,.2,1.4)}
.cf-meta{background:linear-gradient(transparent,rgba(0,0,0,.25) 35%,rgba(0,0,0,.7));opacity:0;transform:translateY(10px);transition:opacity .35s ease,transform .45s cubic-bezier(.2,.8,.2,1)}
.cf-item.on .cf-meta{opacity:1;transform:none}
.cf-meta p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.cf-burst{position:absolute;width:96px;height:96px;margin:-48px 0 0 -48px;color:var(--accent);pointer-events:none;z-index:3;animation:cfBurst .8s cubic-bezier(.2,.8,.2,1) forwards;will-change:transform,opacity}
.cf-burst svg{width:100%;height:100%;fill:currentColor;filter:drop-shadow(0 0 10px var(--accent)) drop-shadow(0 0 22px var(--accent))}
@keyframes cfBurst{0%{opacity:0;transform:scale(.3) rotate(-12deg)}25%{opacity:1;transform:scale(1.15) rotate(4deg)}60%{opacity:1;transform:scale(1) rotate(0)}100%{opacity:0;transform:translateY(-60px) scale(.8)}}
@keyframes cfPop{0%{transform:scale(1)}50%{transform:scale(1.3)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.cf-burst,.cf-act.liked svg{animation-duration:.01s}.cf-meta{transition:none}}
.cf-act .n,.cf-act.liked .n,.cf-act span{color:#fff !important;text-shadow:0 1px 3px rgba(0,0,0,.75)}
/* ds-v515: Clips truly full screen */
body.clips-full header.top,body.clips-full nav.bottom{display:none!important}
body.clips-full{overflow:hidden}
body.clips-full .cfeed{position:fixed;inset:0;height:100vh;height:100dvh;margin:0;z-index:40;background:#000}
.cf-back{display:none}
body.clips-full .cf-back{display:flex;position:fixed;z-index:45;top:calc(env(safe-area-inset-top) + 10px);left:12px;width:40px;height:40px;border-radius:50%;align-items:center;justify-content:center;border:0;color:#fff;background:rgba(0,0,0,.35);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 0 12px color-mix(in srgb,var(--accent) 35%,transparent);transition:transform .15s ease}
.cf-back:active{transform:scale(.9)}
.cf-back svg{width:22px;height:22px}
body.clips-full .cf-acts{bottom:calc(env(safe-area-inset-bottom) + 110px)}
body.clips-full .cf-meta{padding-bottom:calc(env(safe-area-inset-bottom) + 22px)}
body.clips-full .toast{z-index:58}
/* ds-v516: caption overlay spans full width, passes taps to the clip; only avatar and name link */
.cf-meta{left:0;right:0;padding-right:76px;pointer-events:none}
.cf-who{display:inline-flex;width:max-content;max-width:100%;pointer-events:auto}
.cf-meta .practice-tag{pointer-events:none}
/* ds-v517: one shared video, taps everywhere, no zoom or selection */
.cfeed,.cf-item,.cf-item *{touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
.cf-act,.cf-who,.cf-back{touch-action:manipulation}
.cf-poster{position:absolute;inset:0;background:#000 center/cover no-repeat;pointer-events:none}
.cf-item video.cf-v{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:transparent;pointer-events:none;transform:translateZ(0)}
.cf-pre{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
/* ds-v527: wide or cropped clips show whole, letterboxed on plain black; vertical clips keep filling */
.cf-item{background:#000}.cf-poster{background-size:contain}.cf-item video.cf-v{object-fit:contain}
.cf-item.tall .cf-poster{background-size:cover}.cf-item.tall video.cf-v.tall{object-fit:cover}
.cf-burst,.cf-item::after{pointer-events:none}
/* ds-v518: progress bar while a clip is compressed */
#npVprog.vprog{position:relative;padding-bottom:7px}
#npVprog.vprog::after{content:"";position:absolute;left:0;bottom:0;height:4px;width:var(--p,0%);max-width:100%;border-radius:2px;background:var(--accent,#c58bff);transition:width .3s}
#npVprog.vprog::before{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;border-radius:2px;background:rgba(255,255,255,.12)}
/* ds-v522: wide screens (PC): a centered 9:16 player, actions just to its right, nothing cropped */
@media (min-width:600px){
  body.clips-full .cfeed{background:radial-gradient(ellipse at center,#14101c 0%,#050507 70%)}
  body.clips-full .cf-item{--fh:calc(100dvh - 32px);width:min(calc(var(--fh) * 9 / 16),calc(100vw - 180px));margin:0 auto;background:transparent;overflow:visible}
  body.clips-full .cf-item .cf-poster,body.clips-full .cf-item video.cf-v{top:16px;bottom:16px;left:0;right:0;width:100%;height:auto;border-radius:18px;background-color:#000;background-size:contain;object-fit:contain}
  body.clips-full .cf-item .cf-poster{box-shadow:0 0 0 1px rgba(197,139,255,.25),0 0 28px rgba(197,139,255,.22),0 0 60px rgba(120,220,255,.08)}
  body.clips-full .cf-meta{bottom:16px;padding:40px 14px 18px;border-radius:0 0 18px 18px}
  body.clips-full .cf-acts{right:-72px;bottom:calc(16px + 24px)}
}

/* ds-v523: My Planner icon glow follows the accent */
img.pi{filter:drop-shadow(0 0 3px rgba(var(--acc-rgb),.75)) drop-shadow(0 0 7px rgba(var(--acc-rgb),.35))}
/* ds-v523: no blinking caret on plain text */
body{caret-color:transparent}input,textarea,select,[contenteditable],[contenteditable] *{caret-color:auto}/* ds-v524: My Planner follows the rainbow accent like the side cards */
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .ph-card,html[data-accent="rainbow"] body:not(.halloween):not(.hol) .ph-tile{border-color:transparent;background:linear-gradient(#0b101c,#0b101c) padding-box,var(--accent-grad) border-box;box-shadow:var(--rb-glow)}
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .ph-tile{box-shadow:var(--rb-glow-sm)}
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .ph-go{border-color:transparent;background:linear-gradient(#0b101c,#0b101c) padding-box,var(--accent-grad) border-box;box-shadow:var(--rb-glow-sm);color:#fff}
html[data-accent="rainbow"] body:not(.halloween):not(.hol) img.pi{filter:drop-shadow(-2px 0 4px rgba(255,59,79,.6)) drop-shadow(2px 0 4px rgba(34,211,238,.6)) drop-shadow(0 3px 5px rgba(180,92,240,.5))}
/* ds-v528: My Planner follows the theme surface, text and lines in light mode and holiday themes; plain dark stays as is */
html[data-theme="light"] body .ph-card{background:radial-gradient(120% 80% at 50% 0,rgba(var(--acc-rgb),.10),transparent 60%),var(--card);box-shadow:0 0 0 1px rgba(var(--acc-rgb),.18),0 4px 16px rgba(var(--acc-rgb),.16)}
html[data-theme="light"] body .ph-tile{background:linear-gradient(160deg,rgba(var(--acc-rgb),.08),transparent 70%),var(--card);color:var(--text);box-shadow:0 2px 8px rgba(var(--acc-rgb),.12)}
html[data-theme="light"] body :is(.ph-head h1,.ph-soon h1,.ph-tile b){color:var(--text)}
html[data-theme="light"] body :is(.ph-head p,.ph-tile small,.ph-priv,.ph-soon p){color:var(--muted)}
html[data-theme="light"] body .ph-go{background:var(--card);color:var(--accent)}
html[data-theme="light"] body :is(.bd-bar){background:rgba(var(--acc-rgb),.12)}
html[data-theme="light"] body :is(.bd-tabs button,.pl-u){border-color:var(--line)}
html[data-theme="light"] body .bd-row{border-top-color:var(--line)}
html[data-theme="light"] body :is(.bd-form select,.bd-form input[type=number]){background:var(--field,var(--card));border-color:var(--field-border,var(--line))}
html[data-theme="light"] body .pl-folder{background:var(--card);border-color:var(--line)}
html[data-theme="light"][data-accent="rainbow"] body:not(.halloween):not(.hol) :is(.ph-card,.ph-tile,.ph-go){background:linear-gradient(var(--card),var(--card)) padding-box,var(--accent-grad) border-box;color:var(--text)}
/* ds-v529: view counts */
.cf-views{cursor:default}.cf-views svg{color:#fff}
.vid-views{margin:6px 2px 0;font-size:.8rem;color:var(--muted)}.vid-views[hidden]{display:none}

/* ds-v531: instant bottom nav taps, no sticky iOS hover, nav never hidden outside Clips */
#bottomNav,#bottomNav a{touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
@media (hover:none){.bottom a:hover{background:none}}

/* ds-v543: a little more room between the bell and the gear */
.icon-row a.hdr-bell { margin-right: 12px; }
.icon-row a.hdr-cal { margin-right: 10px; }   /* ds-v634: even breathing room between the Planner icon and the gear (icons are 30px glyphs in 44px targets) */

/* ds-v549: the speakeasy as a warm reader's corner, and the King James Bible reader */
.se-smoke { background: radial-gradient(ellipse 60% 40% at 50% 0, rgba(255,176,92,.16), transparent 70%); }
.se-head { position: relative; }
.se-head::before { content: ''; position: absolute; left: 50%; top: -6px; width: 220px; height: 120px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(255,184,108,.22), transparent 70%); filter: blur(10px); z-index: -1; pointer-events: none; }
.se-sub2 { margin: 6px auto 0; max-width: 300px; font-size: 13px; line-height: 1.5; color: #d9b98f; text-align: center; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-style: italic; }
.kj { padding: 2px 2px 20px; }
.kj-cont, .kj-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; box-sizing: border-box; padding: 16px 18px; margin: 2px 0 6px; border-radius: 18px; text-align: left; color: #fff3e2;
  background: linear-gradient(135deg, rgba(255,170,90,.16), rgba(232,50,95,.12) 60%, rgba(139,61,255,.12)); border: 1px solid rgba(255,190,120,.35); box-shadow: 0 0 18px rgba(255,170,90,.12), inset 0 0 22px rgba(255,190,120,.06); }
.kj-cont-k { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #ffc98a; }
.kj-cont-t { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 23px; font-weight: 600; }
.kj-h { margin: 20px 4px 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #ffb4c6; font-weight: 700; text-shadow: 0 0 8px rgba(232,50,95,.45); }
.kj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kj-bk { padding: 12px 12px; border-radius: 12px; text-align: left; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 16px; color: #f6eadb; background: rgba(255,255,255,.035); border: 1px solid rgba(255,190,120,.16); min-height: 46px; }
.kj-bk:active, .kj-ch:active, .kj-pg:active { background: rgba(255,170,90,.18); }
.kj-bar { position: sticky; top: calc(var(--sat, 0px) + 6px); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; margin: 0 0 6px; border-radius: 14px; background: rgba(20,12,18,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,190,120,.22); }
.kj-nav { padding: 8px 10px; min-height: 36px; border-radius: 10px; color: #ffc98a; font-weight: 600; font-size: 14px; }
.kj-nav-sp { width: 70px; }
.kj-title { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 17px; font-weight: 600; color: #fff3e2; }
.kj-titlebtn span { font-size: 11px; opacity: .7; }
.kj-sz { display: flex; } .kj-sz .kj-nav { padding: 8px 8px; font-family: Georgia, serif; font-size: 14px; } .kj-sz .kj-big { font-size: 19px; }
.kj-pick { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 10px; }
.kj-chs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.kj-ch { aspect-ratio: 1; border-radius: 12px; font-size: 16px; font-weight: 600; color: #f6eadb; background: rgba(255,255,255,.035); border: 1px solid rgba(255,190,120,.16); }
.kj-text { --kj: 19px; padding: 10px 6px 0; }
.kj-ch-h { text-align: center; margin: 18px 0 20px; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 600; font-size: 30px; color: #fff3e2; text-shadow: 0 0 18px rgba(255,170,90,.35); }
.kj-ch-h small { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #ffb4c6; font-family: inherit; margin-bottom: 4px; text-shadow: 0 0 8px rgba(232,50,95,.45); }
.kj-vs { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: var(--kj); line-height: 1.75; color: #efe6da; hyphens: auto; -webkit-hyphens: auto; text-align: left; overflow-wrap: break-word; }
.kj-v sup { font-family: -apple-system, system-ui, sans-serif; font-size: .55em; font-weight: 700; color: #ff9fb6; margin: 0 3px 0 2px; vertical-align: .55em; line-height: 0; }
.kj-v:first-child sup { display: none; }
.kj-v:first-child::first-letter { float: left; font-size: 3.2em; line-height: .9; padding: 4px 8px 0 0; color: #ffc98a; text-shadow: 0 0 14px rgba(255,170,90,.45); }
.kj-pn { display: flex; justify-content: space-between; gap: 10px; margin: 28px 0 10px; }
.kj-pg { flex: 1; padding: 12px 12px; border-radius: 14px; font-weight: 600; font-size: 14px; color: #ffc98a; background: rgba(255,170,90,.08); border: 1px solid rgba(255,190,120,.25); min-height: 46px; }
.kj-pg:last-child { text-align: right; }
@media (prefers-color-scheme: light) { html.light .kj-vs { color: #2a2018; } }
.pr-intro { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; color: #fff3e2; background: linear-gradient(135deg, rgba(255,170,90,.16), rgba(232,50,95,.12) 60%, rgba(139,61,255,.12)); border: 1px solid rgba(255,190,120,.35); }
.pr-intro p { margin: 4px 0 0; font-size: 13.5px; color: #e6d3bd; line-height: 1.5; }
.pr-form { margin: 12px 0 14px; } .pr-form textarea { width: 100%; box-sizing: border-box; border-radius: 14px; padding: 12px 14px; font-size: 16px; resize: vertical; }
.pr-row { display: flex; justify-content: flex-end; margin-top: 8px; }
.pr-card { padding: 14px 14px 10px; margin: 0 0 10px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,190,120,.18); }
.pr-head { display: flex; align-items: center; gap: 10px; } .pr-who { flex: 1; display: flex; flex-direction: column; } .pr-who small { color: var(--muted); font-size: 12px; }
.pr-body { margin: 10px 0 8px; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 17px; line-height: 1.6; color: #f3e8da; white-space: normal; overflow-wrap: anywhere; }
.pr-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pr-pray { padding: 8px 14px; min-height: 38px; border-radius: 999px; font-weight: 600; font-size: 14px; color: #ffc98a; border: 1px solid rgba(255,190,120,.35); background: rgba(255,170,90,.06); }
.pr-pray.on { color: #fff; background: linear-gradient(135deg, rgba(255,150,80,.55), rgba(232,50,95,.5)); box-shadow: 0 0 12px rgba(255,150,80,.35); }
.pr-coms { margin-top: 10px; border-top: 1px solid rgba(255,190,120,.14); padding-top: 8px; }
.pr-c { font-size: 14px; line-height: 1.5; padding: 6px 0; color: #e9e1d6; overflow-wrap: anywhere; } .pr-c small { color: var(--muted); font-size: 11.5px; }
.pr-cf { display: flex; gap: 8px; margin-top: 6px; } .pr-cf input { flex: 1; min-width: 0; border-radius: 999px; padding: 10px 14px; font-size: 16px; }

/* ds-v550: gentle "something special" header */
.sp-head{text-align:center;padding:18px 18px 22px;margin:4px 14px 14px;border-radius:22px;background:radial-gradient(120% 90% at 50% 0%,rgba(255,170,120,.14),rgba(255,120,170,.06) 55%,transparent 80%);border:1px solid rgba(255,190,150,.18);box-shadow:0 0 28px rgba(255,140,120,.10)}
.sp-glow{display:block;font-size:22px;color:#ffd4a8;text-shadow:0 0 10px rgba(255,190,140,.7),0 0 22px rgba(255,120,170,.4);margin-bottom:6px}
.sp-title{margin:0 0 12px;font-family:Georgia,'Times New Roman',serif;font-weight:600;font-size:26px;line-height:1.2;color:#fff1e4;text-shadow:0 0 8px rgba(255,170,130,.45),0 0 18px rgba(255,110,160,.22)}
.sp-p{margin:0 auto 10px;max-width:34em;font-size:15px;line-height:1.6;color:rgba(255,235,220,.82)}
.sp-p:last-child{margin-bottom:0}
.sp-link{all:unset;cursor:pointer;color:#ffc89e;font-weight:600;border-bottom:1px solid rgba(255,200,158,.5);text-shadow:0 0 8px rgba(255,170,120,.4)}
.sp-link:focus-visible{outline:2px solid #ffc89e;outline-offset:2px;border-radius:4px}

/* ds-v551: the welcome door */
.dw .se-top{position:relative;z-index:2}
.dw-stage{position:relative;margin:6px 14px 24px;min-height:calc(100vh - 150px);min-height:calc(100dvh - 150px);display:flex;align-items:center;justify-content:center}
.dw-door,.dw-ov .dw-door{position:absolute;inset:0;border-radius:150px 150px 18px 18px;overflow:hidden;box-shadow:0 0 0 1px rgba(255,190,150,.28),0 0 34px rgba(255,140,120,.22),inset 0 0 40px rgba(255,150,120,.10)}
.dw-door i{position:absolute;top:0;bottom:0;width:50%;background:linear-gradient(180deg,#2a1218,#160a10 55%,#1d0c16);transition:transform .7s cubic-bezier(.6,0,.3,1)}
.dw-l{left:0;border-right:1px solid rgba(255,190,150,.35);box-shadow:inset -10px 0 30px rgba(255,120,150,.10)}
.dw-r{right:0;box-shadow:inset 10px 0 30px rgba(180,130,255,.10)}
.dw-door i::before{content:"";position:absolute;inset:14px 12px;border:1px solid rgba(255,200,160,.10);border-radius:120px 120px 10px 10px}
.dw-knob{position:absolute;top:58%;width:9px;height:9px;border-radius:50%;background:#ffd2a6;box-shadow:0 0 10px rgba(255,190,140,.9)}
.dw-l .dw-knob{right:12px}.dw-r .dw-knob{left:12px}
.dw-arch{position:absolute;left:50%;top:-30%;width:120%;height:70%;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(255,190,140,.20),transparent);pointer-events:none;transition:opacity .5s}
.dw-msg{position:relative;z-index:1;text-align:center;padding:64px 26px 34px;max-width:30em}
.dw-step{margin-top:18px;padding:13px 34px;border:0;border-radius:999px;font:inherit;font-weight:700;font-size:16px;color:#2a1009;background:linear-gradient(135deg,#ffd9b0,#ffb3a0);box-shadow:0 0 18px rgba(255,170,130,.55),0 0 40px rgba(255,120,160,.25);cursor:pointer}
.dw-step:active{transform:scale(.97)}
.dw-ov{position:fixed;inset:0;z-index:9999;pointer-events:none;display:flex;align-items:center;justify-content:center;padding:52px 14px 24px}
.dw-ov .dw-door{inset:52px 14px 24px;overflow:visible;box-shadow:none}
.dw-ov .dw-msg{transition:opacity .3s}
.dw-ov.open .dw-msg,.dw-ov.open .dw-arch{opacity:0}
.dw-ov.open .dw-l{transform:translateX(-110%)}.dw-ov.open .dw-r{transform:translateX(110%)}
.dw-ov i{transition-delay:.12s}
@media (prefers-reduced-motion:reduce){.dw-ov i{transition:opacity .4s}.dw-ov.open i{transform:none;opacity:0}}
.sp-mini{text-align:center;margin:2px 0 12px;font-family:Georgia,serif;font-size:15px;letter-spacing:.04em;color:#ffe2c8;text-shadow:0 0 8px rgba(255,170,130,.5)}
.sp-mini span{color:#ffd4a8}

.dw-votd:empty{display:none}
.dw-votd{margin:18px auto 4px;padding:14px 16px;border-radius:16px;background:rgba(255,200,160,.06);border:1px solid rgba(255,200,160,.18);box-shadow:0 0 18px rgba(255,150,120,.10)}
.dw-vlabel{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#ffc89e;opacity:.85;margin-bottom:6px}
.dw-vtext{margin:0 0 8px;font-family:Georgia,serif;font-style:italic;font-size:16px;line-height:1.55;color:#fff1e4}
.dw-vref{all:unset;cursor:pointer;font-size:13px;font-weight:600;color:#ffc89e;border-bottom:1px solid rgba(255,200,158,.45)}
.dw-again{margin:14px auto 0;max-width:22em;font-style:italic;font-size:13px;line-height:1.5;color:rgba(255,230,210,.6)}
.dw-stage{margin-bottom:120px}
.dw-knob{top:auto;bottom:22%}
.dw-stage .dw-knob{display:none}
/* ds-v552: door fixes */
.dw-stage{align-items:flex-start;margin-top:22px;margin-bottom:calc(120px + env(safe-area-inset-bottom))}
.dw-stage .dw-l{border-right:0}
.dw-ov .dw-l{border-right:1px solid rgba(255,190,150,.35)}
.dw-msg{padding-bottom:40px}
.dw-stage .dw-door i{box-shadow:none}
.dw-stage .dw-door i::before{display:none}
.dw-stage .dw-door{background:linear-gradient(180deg,#2a1218,#160a10 55%,#1d0c16)}
/* ds-v553: everything inside the arch follows the arch (Safari ignores overflow clipping on transformed children) */
.dw-door{-webkit-clip-path:inset(0 round 150px 150px 18px 18px);clip-path:inset(0 round 150px 150px 18px 18px);isolation:isolate}
.dw-ov .dw-door{-webkit-clip-path:none;clip-path:none}
.dw-door .dw-l{border-radius:150px 0 0 18px}
.dw-door .dw-r{border-radius:0 150px 18px 0}
.dw-arch{top:0;height:60%;width:100%;border-radius:150px 150px 0 0;background:radial-gradient(70% 60% at 50% 0%,rgba(255,190,140,.20),transparent)}
.dw-ov .dw-door i{transition:transform .7s cubic-bezier(.6,0,.3,1) .12s,border-radius .35s ease .12s}
.dw-ov.open .dw-l{border-radius:150px 150px 18px 18px}
.dw-ov.open .dw-r{border-radius:150px 150px 18px 18px}
/* ds-v554: a true arch. Radius is half the door width (container units), so the curve meets at one peak */
.dw-stage{container-type:inline-size;--R:calc(50vw - 14px);--R:50cqw}
.dw-stage .dw-door{border-radius:var(--R) var(--R) 18px 18px;-webkit-clip-path:inset(0 round var(--R) var(--R) 18px 18px);clip-path:inset(0 round var(--R) var(--R) 18px 18px)}
.dw-stage .dw-arch{border-radius:var(--R) var(--R) 0 0}
.dw-stage .dw-msg{padding-top:calc(var(--R) * .5 + 24px)}
.dw-ov{--R:calc(50vw - 14px)}
.dw-ov .dw-door{border-radius:var(--R) var(--R) 18px 18px}
.dw-ov .dw-door .dw-l{border-radius:var(--R) 0 0 18px}
.dw-ov .dw-door .dw-r{border-radius:0 var(--R) 18px 0}
.dw-ov.open .dw-l,.dw-ov.open .dw-r{border-radius:var(--R) var(--R) 18px 18px}
.dw-ov .dw-arch{border-radius:var(--R) var(--R) 0 0}
.dw-stage .dw-door .dw-l{border-radius:var(--R) 0 0 18px}
.dw-stage .dw-door .dw-r{border-radius:0 var(--R) 18px 0}
/* ds-v555: tabs sit right under Back to profile */
.se:not(.dw) .se-top + .se-tabs{margin-top:6px}
/* ds-v565: composer destination (Glo Board ▾) */
.np-dest { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; letter-spacing: inherit; }
.np-dest:disabled { cursor: default; color: inherit; opacity: 1; }
.np-dest:not(:disabled) #npDestName { color: var(--accent, #a855f7); }
.np-caret { color: var(--accent, #a855f7); font-size: .8em; }
.npd-bg .cmenu { max-height: 70vh; overflow-y: auto; }
.npd-bg .cmenu-row { justify-content: space-between; }
.npd-bg .cmenu-row.active { color: var(--accent, #a855f7); }
/* ds-v568: Destash craft tag, payment line and the one time payment notice */
.dx-card .dx-craft { align-self: flex-start; margin-top: 4px; font-size: 11px; padding: 1px 7px; }
.dx-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dx-filters select { padding: 9px 8px; font-size: 14px; text-overflow: ellipsis; }
.dx-payline { text-align: center; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 18px 0 4px; opacity: .8; }
.dx-notice { text-align: center; padding: 6px 4px 2px; }
.dx-notice-ic svg { width: 34px; height: 34px; color: var(--accent, currentColor); }
.dx-notice h2 { margin: 8px 0 8px; font-size: 19px; }
.dx-notice p { margin: 0 0 18px; line-height: 1.5; color: var(--muted); }
.dx-notice .btn { width: 100%; }
/* ds-v569: Post to sheet, multi select */
.npd-multi .npd-rows { max-height: 52vh; overflow-y: auto; }
.npd-multi .cmenu-who small.npd-hint { font-weight: 500; opacity: .65; margin-left: 6px; font-size: 12px; }
.npd-row { display: flex; justify-content: space-between; align-items: center; }
.npd-box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.npd-box.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.npd-note { min-height: 1.2em; margin: 6px 4px 8px; font-size: 13px; color: var(--muted); text-align: center; }
.npd-done { margin-top: 2px; }
/* ds-v570: cap big link preview images (Instagram squares/portraits filled the whole feed column on desktop) */
.lp-card.lp-big .lp-img img { max-height: 220px; }
.yt-card .yt-thumb { max-height: 220px; width: 100%; }
@media (min-width: 768px) {
  .lp-card.lp-big .lp-img img, .yt-card .yt-thumb { max-height: 260px; }
}
/* ds-v571: show the whole preview image (contain) inside the cap, over a blurred, darkened copy of itself */
.lp-card.lp-big .lp-img { position: relative; overflow: hidden; }
.lp-card.lp-big .lp-img img:not(.lp-blur) { position: relative; z-index: 1; object-fit: contain; }
.lp-card.lp-big .lp-img .lp-blur { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; filter: blur(22px) brightness(.6); transform: scale(1.25); border: 0; pointer-events: none; }
/* ds-v572: iPhone still cropped the main image (object-fit on the composited img was not honored next to the blurred copy).
   Size the image itself instead: a centered flex box with the cap, the image at auto size inside max width/height. No object-fit needed. */
.lp-card.lp-big .lp-img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: var(--lp-ar, 1.91); max-height: 220px; border-bottom: 1px solid rgba(var(--acc-rgb), .25); isolation: isolate; }
.lp-card.lp-big .lp-img img:not(.lp-blur) { width: auto; height: auto; max-width: 100%; max-height: 220px; min-height: 0; aspect-ratio: auto; object-fit: contain; border-bottom: 0; flex: none; }
.lp-card.lp-big .lp-img .lp-blur { z-index: 0; }
@media (min-width: 768px) {
  .lp-card.lp-big .lp-img, .lp-card.lp-big .lp-img img:not(.lp-blur) { max-height: 260px; }
}
/* ds-v574: natural aspect ratio for link preview images, portrait included; taller caps, nothing cropped */
.lp-card.lp-big .lp-img, .lp-card.lp-big .lp-img img:not(.lp-blur) { max-height: 360px; }
@media (min-width: 768px) {
  .lp-card.lp-big .lp-img, .lp-card.lp-big .lp-img img:not(.lp-blur) { max-height: 420px; }
}
/* ds-v575: quiet saved count on recipe posts */
.entry .en-saved { margin: 6px 2px 0; font-size: calc(12.5px * var(--ts, 1)); color: var(--muted); }
.entry.recipe-compact .en-save { margin-top: 10px; }
.entry.recipe-compact .en-tog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(var(--acc-rgb), .55);
  background: rgba(var(--acc-rgb), .10);
  color: var(--accent-pale, #e8d4fb);
  font: inherit;
  font-size: calc(13.5px * var(--ts, 1));
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.entry.recipe-compact .en-tog::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .85;
  flex: none;
}
.entry.recipe-compact.open .en-tog::after { transform: translateY(1px) rotate(225deg); }
.entry.recipe-compact .en-tog:hover,
.entry.recipe-compact.open .en-tog { background: rgba(var(--acc-rgb), .16); }
.entry.recipe-compact .en-tog:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.entry.recipe-compact .en-details { margin-top: 2px; }

/* ds-v578: joint WIPs */
.wip-team { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.wip-team a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.wip-team .wt-amp { opacity: .6; font-weight: 500; }
.joint-tag { display: inline-block; font-size: calc(11px * var(--ts, 1)); font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(var(--acc-rgb), .45); color: var(--accent); margin-left: 4px; vertical-align: middle; white-space: nowrap; }
.wip-post-head .joint-tag { margin-left: 8px; }
.joint-chip { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12px * var(--ts, 1)); font-weight: 600; margin: 4px 6px 2px 0; max-width: 100%; }
.joint-chip .jc-av { display: inline-flex; }
.joint-chip .jc-av .avatar { width: 20px; height: 20px; border-width: 1px; margin-left: -6px; box-shadow: none; }
.joint-chip .jc-av .avatar:first-child { margin-left: 0; }
.joint-chip .jc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shared-kit-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 2px; max-width: 100%; }
.shared-kit-badge { display: inline-flex; align-items: center; gap: 6px; font-size: calc(11px * var(--ts, 1)); font-weight: 700; padding: 2px 8px 2px 6px; border-radius: 999px; border: 1px solid rgba(var(--acc-rgb), .45); color: var(--accent); background: rgba(var(--acc-rgb), .12); width: fit-content; max-width: 100%; }
.shared-kit-badge .jc-av { display: inline-flex; }
.shared-kit-badge .jc-av .avatar { width: 18px; height: 18px; border-width: 1px; margin-left: -5px; box-shadow: none; }
.shared-kit-badge .jc-av .avatar:first-child { margin-left: 0; }
.stash-card.shared-kit .shared-kit-line .joint-chip { margin: 0; max-width: 100%; align-items: flex-start; }
.stash-card.shared-kit .shared-kit-line .joint-chip .jc-name { white-space: normal; overflow: visible; text-overflow: unset; }
.as-list .stash-card .shared-kit-line { margin-top: 2px; }

.pl-joint { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; margin: 2px 0 8px; }
.en-title + .joint-tag { margin: 0 0 6px; }
.wip-inv { margin: 6px 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(var(--acc-rgb), .4); background: rgba(var(--acc-rgb), .08); }
.wip-inv p { margin: 0 0 8px; }
.wip-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 12px; font-size: calc(12.5px * var(--ts, 1)); font-weight: 600; }
.wl-it { display: inline-flex; align-items: center; gap: 6px; }
.wl-it .avatar { width: 22px; height: 22px; border-width: 1.5px; border-color: transparent; box-shadow: none; outline: 2px solid transparent; background-clip: padding-box; }
.wl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--who); box-shadow: 0 0 6px var(--who); }
.tl-item.tl-who .tl-dot { background: var(--who); box-shadow: 0 0 8px var(--who); }
.tl-item.tl-who .tl-card { position: relative; overflow: hidden; }
.tl-item.tl-who .tl-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--who); }
.tl-by { font-weight: 600; opacity: .85; }
.inv-lede { margin: -4px 0 10px; }
/* ds-v582: admin Test kit camera */
.kc { padding: 10px 14px 40px; max-width: 720px; margin: 0 auto; }
.kc-top h2 { margin: 4px 0 2px; }
.kc-view { position: relative; background: #000; border-radius: 14px; overflow: hidden; }
.kc-video { display: block; width: 100%; max-height: 50vh; object-fit: contain; background: #000; }
.kc-ol { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.kc-hint { text-align: center; margin: 8px 0 4px; font-weight: 600; min-height: 1.3em; }
.kc-bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; }
.kc-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 76px; justify-content: center; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(var(--acc-rgb),.5); font-size: 14px; cursor: pointer; }
.kc-shutter { width: 70px; height: 70px; border-radius: 50%; border: 4px solid #fff; background: rgba(var(--acc-rgb),.9); box-shadow: 0 0 0 3px rgba(var(--acc-rgb),.45); cursor: pointer; }
.kc-shutter:active { transform: scale(.94); }
.kc-pickonly { padding: 10px 0; }
.kc-seg { display: flex; width: max-content; margin: 4px auto 10px; border: 1px solid rgba(var(--acc-rgb),.5); border-radius: 999px; overflow: hidden; }
.kc-seg button { padding: 8px 20px; background: none; border: 0; color: inherit; font: inherit; }
.kc-seg button.on { background: rgba(var(--acc-rgb),.85); color: #fff; }
.kc-stage { position: relative; touch-action: none; }
.kc-stage canvas { position: absolute; border-radius: 6px; }
.kc-anim { transform-origin: 0 0; will-change: transform; }
.kc-out { transition: opacity .22s ease; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.kc-stage canvas[hidden] { display: none; }
.kc-h { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(80,220,255,.25); border: 3px solid #50dcff; box-shadow: 0 0 0 2px rgba(0,0,0,.35); touch-action: none; cursor: grab; z-index: 2; }
.kc-h[hidden] { display: none; }
.kc-note { text-align: center; margin-top: 10px; }
.kc-acts { display: flex; justify-content: center; margin-top: 6px; }
/* ds-v586: Scan kit sheet for members */
.kc-sheet { position: fixed; inset: 0; z-index: 9000; background: var(--bg, #0d0b14); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
html.kc-open, html.kc-open body { overflow: hidden; }
.kc-member .kc-top { position: relative; padding-right: 44px; }
.kc-close { position: absolute; top: 0; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: inherit; font-size: 18px; }
.kc-member .kc-acts { gap: 10px; }
.fin-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kc-modes { display: flex; justify-content: center; margin: 2px 0 8px; }
.kc-kitcam-chip { font-weight: 700; }
.kc-auto-chip[hidden] { display: none !important; }
.gc-movies{--accent:#ff5a5f;--accent-fill:#a3242a;--accent-2:rgb(255,200,90);--accent-pale:rgb(255,214,214);--accent-deep:rgb(40,14,18);--acc-rgb:255,90,95;--acc2-rgb:255,200,90;--accent-soft:rgba(255,90,95,.55);--gdeep:rgb(40,14,18);--glow:0 0 6px rgba(255,90,95,.55),0 0 18px rgba(255,90,95,.25);--glow-card:0 0 1px rgba(255,90,95,.95),0 0 10px rgba(255,90,95,.6),0 0 26px rgba(255,90,95,.4),0 0 60px rgba(255,90,95,.24),inset 0 0 18px rgba(255,90,95,.12);--glow-soft:0 0 6px rgba(255,90,95,.6),0 0 16px rgba(255,90,95,.28);--glow-avatar:0 0 5px rgba(255,90,95,.75),0 0 14px rgba(255,90,95,.35);--gpat:linear-gradient(115deg, transparent 38%, rgba(255,200,90,.14) 50%, transparent 62%)}
.stash-kind { margin: 8px 0 10px; }
.stash-kind .seg-count[hidden] { display: none; }
.acc-notes span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ds-v590 accessories: type tag, type filter */
.acc-type { font-size: calc(11px * var(--ts, 1)); padding: 1px 8px; }
.acc-filter { margin: 8px 0; }
.acc-filter select { width: auto; min-width: 150px; }
.acc-card.acc-off { display: none !important; }
/* ds-v596: recipe folder dropdown */
.pl-fold { display: block; width: 100%; margin: 0 0 10px; padding: 10px 12px; font-weight: 600; }
/* ds-v597: folder pill and multi folder picker */
.pl-active { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 10px; }
.pl-active[hidden] { display: none; }
.pl-apill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(var(--acc-rgb),.5); background: rgba(var(--acc-rgb),.14); color: var(--text); font-weight: 600; font-size: calc(13px * var(--ts, 1)); }
.pl-apill span { opacity: .7; font-size: 11px; }
.pl-fpick { border: 0; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 0; }
.pl-fpick legend { font-weight: 600; margin-bottom: 6px; padding: 0; flex: none; }
/* ds-v770: the checklist is its own scroller. A fieldset cannot scroll in WebKit, and the centred modal is a grid item
   whose min-height:auto grew to the whole list. Body sheet-lock (overflow hidden, touch-action none) then froze the page,
   and the touch guard cancelled the drag because it never found a scroller. The neon card stays; this list moves. */
.pl-fpick-list { max-height: min(52dvh, calc(100dvh - 300px)); overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; min-height: 0; }
.pl-fchk { display: flex; align-items: center; gap: 10px; padding: 9px 2px; font-weight: 500; }
.pl-fchk input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--accent); }
.modal { min-height: 0; max-height: min(90vh, 90dvh); touch-action: pan-y; }
/* ds-v601: member camera sheet fills the screen */
.kc-sheet .kc-member { display: flex; flex-direction: column; height: 100%; padding: 4px 6px 6px; box-sizing: border-box; }
.kc-sheet .kc-member .kc-top { padding: 0 44px 0 6px; flex: none; }
.kc-sheet .kc-member .kc-top h2 { font-size: calc(17px * var(--ts, 1)); margin: 8px 0 0; }
.kc-sheet .kc-member .kc-sub { margin: 0 0 4px; font-size: calc(12.5px * var(--ts, 1)); }
.kc-sheet .kc-member .kc-cam:not([hidden]) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.kc-sheet .kc-member .kc-view { flex: 1; min-height: 0; border-radius: 10px; }
.kc-sheet .kc-member .kc-video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.kc-sheet .kc-member .kc-hint { margin: 4px 0 2px; }
.kc-sheet .kc-member .kc-modes { margin: 0 0 4px; }
.kc-sheet .kc-member .kc-bar { flex: none; padding: 2px 8px 4px; }
.kc-sheet .kc-member .kc-res:not([hidden]) { overflow-y: auto; }
.kc-sheet .kc-member .kc-modes { gap: 8px; } .kc-normal { background: none; color: inherit; font: inherit; }
/* ds-v605: same gap under the status bar / Dynamic Island on every tab; the Glo Board header no longer starts lower. Every tab now also uses the same 44px header logo. */
@media (max-width: 1023px) {
  .top, .top.compact { padding-top: calc(8px + var(--sat)); }
  .top .logo { margin-top: 0; }
}
/* ds-v607: movies title tag and Now showing grid */
.mv-tag{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:3px 9px;margin:2px 0 6px;border-radius:999px;font-size:12px;font-weight:600;color:#ffd6d6;background:rgba(255,90,95,.16);border:1px solid rgba(255,90,95,.55)}
.mv-tag svg{width:13px;height:13px;flex:none;color:#ff5a5f}.mv-tag span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:6px 0 14px}
.mv-tile{display:flex;flex-direction:column;align-items:stretch;gap:3px;padding:0;background:none;border:0;color:inherit;text-align:left;cursor:pointer;font:inherit}
.mv-th{aspect-ratio:2/3;border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:rgba(255,90,95,.12);border:1px solid rgba(255,90,95,.5);color:#ff5a5f}
.mv-th img{width:100%;height:100%;object-fit:cover}.mv-th svg{width:34px;height:34px}
.mv-tile b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mv-tile small{font-size:11px;opacity:.7}
.mv-open{margin:4px 0 10px}.mv-back svg{width:13px;height:13px;vertical-align:-2px}
/* ds-v608: movie header above the post text, composer movie picker */
.mv-head{display:flex;align-items:center;gap:7px;margin:2px 0 8px;padding:6px 10px;border-radius:10px;font-size:14px;color:#ffd6d6;text-decoration:none;background:rgba(255,90,95,.12);border:1px solid rgba(255,90,95,.45)}
.mv-head svg{width:16px;height:16px;flex:none;color:#ff5a5f}.mv-head span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mv-head b{color:#fff}
.mv-pick .mv-sug{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.mv-pick .mv-tag{cursor:pointer;font:inherit;font-size:12px;font-weight:600}
.np-movie.on{border-color:#ff5a5f;box-shadow:0 0 10px rgba(255,90,95,.45)}
/* ds-v609: tile photo button */
.mv-open{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.mv-ph svg{width:15px;height:15px;vertical-align:-3px}
.mv-hint{font-size:12px;opacity:.75;margin:-4px 0 10px}
.mv-th img.mv-wide{object-fit:contain;padding:10px;box-sizing:border-box;background:#f4f1ea}   /* ds-v614: wide show logos fit whole */

/* ds-v615: big neon film reel default cover for Movies and shows groups */
.grp-nocover.grp-reel{place-items:stretch}.grp-nocover.grp-reel svg.reel-art{width:100%;height:100%;margin:0;padding:14px 8px 18px;box-sizing:border-box;opacity:1;color:var(--accent);filter:drop-shadow(0 0 4px rgba(var(--acc-rgb),.95)) drop-shadow(0 0 14px rgba(var(--acc-rgb),.7)) drop-shadow(0 0 30px rgba(var(--acc-rgb),.45))}

/* ds-v617: which recipes a merged shopping line came from */
.sh-row .sh-src{display:block;font-size:12px;opacity:.6;margin-top:2px;font-weight:400}
.rs-wrap{flex-wrap:wrap}.rs-c{width:68px;background:none;border:1px solid var(--border,#444);color:inherit;border-radius:999px;padding:3px 10px;font-size:16px;line-height:1.1}.rs-c.on{border-color:var(--accent)}
.rs-wrap .rs-c{width:88px;flex:0 0 88px;min-height:0;height:28px;margin:0;padding:3px 10px;border-radius:999px}
/* ds-v625: a member's own speakeasy page */
.se.sp .sp-head { text-align: center; padding: 8px 6px 14px; }
.se.sp .sp-head .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 120, 160, .45), 0 0 24px rgba(220, 40, 90, .35); }
.se.sp .sp-title { margin: 10px 0 6px; font-size: 24px; }
.se.sp .sp-intro { margin: 6px auto 4px; max-width: 34em; line-height: 1.5; opacity: .92; }
.se.sp .sp-intro.dim { opacity: .6; font-style: italic; }
.se.sp .sp-introedit textarea { width: 100%; box-sizing: border-box; }
.se.sp .sp-empty { text-align: center; padding: 26px 14px; border: 1px dashed rgba(255, 140, 180, .3); border-radius: 18px; margin-top: 12px; }
.se.sp .sp-empty .sp-glow { font-size: 26px; display: block; margin-bottom: 6px; }
/* ds-v626: neon after dark. The Glo Board spirit, moodier: near black, purple and teal glow, haze, a flickering sign. CSS only. */
body.se-on:has(.se.sp) { background: #07060b; }
.se.sp { --nv: #b26bff; --nt: #2ee6d6; position: relative; isolation: isolate; color: #ece6f7; }
.se.sp::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 40% at 15% 8%, rgba(178, 107, 255, .16), transparent 70%), radial-gradient(55% 40% at 90% 30%, rgba(46, 230, 214, .10), transparent 70%),
  radial-gradient(70% 50% at 50% 110%, rgba(120, 60, 200, .14), transparent 70%), radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .78) 100%), #07060b; }
.se.sp .se-smoke { opacity: .5; }
.se.sp .sp-head { background: rgba(10, 8, 18, .72); border: 1px solid rgba(178, 107, 255, .45); border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(46, 230, 214, .12) inset, 0 0 18px rgba(178, 107, 255, .28), 0 0 42px rgba(46, 230, 214, .08); }
.se.sp .sp-head .avatar { box-shadow: 0 0 0 2px var(--nt), 0 0 14px rgba(46, 230, 214, .55), 0 0 30px rgba(178, 107, 255, .45); }
.se.sp .sp-title { color: #f6eaff; font-family: Georgia, 'Times New Roman', serif; letter-spacing: .02em;
  text-shadow: 0 0 4px #fff, 0 0 10px var(--nv), 0 0 22px var(--nv), 0 0 40px rgba(46, 230, 214, .55); animation: spFlicker 7s infinite; }
@keyframes spFlicker { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .55; text-shadow: 0 0 4px var(--nv); } }
.se.sp .sp-intro { color: #d9d0ea; }
.se.sp .se-link { color: var(--nt); text-shadow: 0 0 8px rgba(46, 230, 214, .5); }
.se.sp .se-post, .se.sp .se-compose { background: rgba(12, 10, 20, .78); border: 1px solid rgba(46, 230, 214, .28); box-shadow: 0 0 14px rgba(46, 230, 214, .10), 0 0 1px rgba(178, 107, 255, .6) inset; }
.se.sp .se-pname { color: #f1e6ff; text-shadow: 0 0 6px rgba(178, 107, 255, .9), 0 0 16px rgba(178, 107, 255, .5); }
.se.sp .se-pbody { color: #e6e0f2; }
.se.sp textarea { background: #0b0912; border-color: rgba(178, 107, 255, .5); color: #f2ecff; }
.se.sp textarea:focus { box-shadow: 0 0 0 1px var(--nv), 0 0 14px rgba(178, 107, 255, .45); outline: none; }
.se.sp .btn { background: linear-gradient(135deg, #7b3cff, #1fb8ad); box-shadow: 0 0 12px rgba(178, 107, 255, .55), 0 0 22px rgba(46, 230, 214, .25); color: #fff; }
.se.sp .se-attach, .se.sp .se-back { color: #c9b6ef; }
.se.sp .sp-empty { border: 1px dashed rgba(46, 230, 214, .45); background: rgba(10, 8, 18, .6); box-shadow: 0 0 20px rgba(178, 107, 255, .12) inset; }
.se.sp .sp-empty .sp-glow { color: var(--nt); text-shadow: 0 0 8px var(--nt), 0 0 20px var(--nv); }
.se.sp .sp-empty .se-h { color: #f3e9ff; text-shadow: 0 0 10px rgba(178, 107, 255, .7); }
@media (prefers-reduced-motion: reduce) { .se.sp .sp-title { animation: none; } }

/* ds-v628: My Planner home, frosted glass list */
.phx{position:relative;padding:4px 2px 8px;color:#fff}
.phx:before{content:"";position:absolute;inset:-30px -14px 0;z-index:-1;pointer-events:none;background:radial-gradient(240px 190px at 12% 6%,rgba(255,94,200,.18),transparent 70%),radial-gradient(260px 210px at 92% 38%,rgba(62,232,255,.14),transparent 70%),radial-gradient(240px 190px at 28% 92%,rgba(176,114,255,.16),transparent 70%)}
.phx-date{display:flex;align-items:center;justify-content:space-between;font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;font-weight:700;color:#ff5ec8;text-shadow:0 0 10px rgba(255,94,200,.8)}
.phx-hi{margin:6px 0 2px;font-size:1.85rem;font-weight:300;letter-spacing:-.01em;line-height:1.12;color:#fff}
.phx-hi b{font-weight:800;background:linear-gradient(90deg,#fff,#c9f6ff 50%,#f3c9ff);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 12px rgba(160,220,255,.45))}
.phx-sub{margin:0 0 16px;color:rgba(225,232,255,.66);font-size:.86rem;min-height:1.2em}
.phx-card{position:relative;display:block;border-radius:24px;overflow:hidden;background:linear-gradient(155deg,rgba(255,255,255,.09),rgba(255,255,255,.02) 40%,rgba(10,14,30,.6));-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 40px rgba(0,0,0,.55),0 0 0 1px rgba(176,114,255,.35) inset,0 0 22px rgba(176,114,255,.28),0 0 60px rgba(176,114,255,.12)}
.phx-card:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(120deg,rgba(255,255,255,.16),transparent 28%,transparent 70%,rgba(255,255,255,.05))}
.phx-card:after{content:"";position:absolute;left:12%;right:12%;top:0;height:1px;background:linear-gradient(90deg,transparent,#b072ff,transparent);box-shadow:0 0 10px #b072ff}
.phx-row{position:relative;display:flex;align-items:center;gap:12px;padding:16px 20px;color:#fff;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:background .15s}
.phx-row:active{background:rgba(var(--g),.1)}
.phx-txt{flex:1;min-width:0;display:flex;flex-direction:column}.phx-txt b{font-size:1.02rem;font-weight:700;letter-spacing:.01em}
.phx-s{margin-top:2px;font-size:.82rem;color:rgba(225,232,255,.64);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:1.15em}
.phx-chev{flex:none;width:20px;height:20px;fill:none;stroke:rgb(var(--g));stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;opacity:.8;filter:drop-shadow(0 0 4px rgba(var(--g),.45))}
.phx-div{display:block;height:1px;margin:0 16px;background:linear-gradient(90deg,transparent,rgba(var(--g),.7),transparent);box-shadow:0 0 8px rgba(var(--g),.6)}
.phx-priv{margin:14px 0 4px;text-align:center;font-size:.76rem;letter-spacing:.06em;color:rgba(225,232,255,.45)}
html[data-theme="light"] body :is(.phx-hi,.phx-row){color:var(--text)}html[data-theme="light"] body .phx-hi b{background:none;color:var(--text);filter:none}
html[data-theme="light"] body :is(.phx-sub,.phx-s,.phx-priv){color:var(--muted,#5b6577)}
/* ds-v629: light mode keeps the planner glass evenly light and frosted top to bottom (the dark gradient end and deep shadow read as a gray smudge). */
html[data-theme="light"] body .phx-card{background:linear-gradient(160deg,rgba(255,255,255,.92),rgba(250,247,255,.86) 55%,rgba(246,242,255,.9));border-color:rgba(176,114,255,.35);box-shadow:0 10px 28px rgba(120,90,180,.14),0 0 0 1px rgba(176,114,255,.28) inset,0 0 18px rgba(176,114,255,.22)}
html[data-theme="light"] body .phx-card:before{background:linear-gradient(120deg,rgba(255,255,255,.7),transparent 30%)}
html[data-theme="light"] body .phx-s{color:#4a5263}
html[data-theme="light"] body .phx-chev{stroke:#3a2a55;stroke:color-mix(in srgb,rgb(var(--g)) 55%,#1c1430);opacity:.95;filter:none}
html[data-theme="light"] body .phx-div{background:linear-gradient(90deg,transparent,rgba(var(--g),.85),transparent);box-shadow:0 0 6px rgba(var(--g),.5)}
html[data-theme="light"] body .phx-row:active{background:rgba(var(--g),.12)}
/* ds-v630: the planner glass card's perimeter glows like the other neon cards (.ph-card), driven by the member's accent in every scheme and both themes. */
.phx-card{border:1.5px solid var(--accent);box-shadow:0 18px 40px rgba(0,0,0,.5),0 0 18px rgba(var(--acc-rgb),.45),0 0 42px rgba(var(--acc-rgb),.18),inset 0 0 22px rgba(var(--acc-rgb),.08)}
.phx-card:after{background:linear-gradient(90deg,transparent,var(--accent-2,var(--accent)),transparent);box-shadow:0 0 10px var(--accent)}
html[data-theme="light"] body .phx-card{border-color:var(--accent);box-shadow:0 10px 26px rgba(var(--acc-rgb),.14),0 0 16px rgba(var(--acc-rgb),.42),0 0 36px rgba(var(--acc-rgb),.16),inset 0 0 18px rgba(var(--acc-rgb),.07)}
html[data-accent="rainbow"] body:not(.halloween):not(.hol) .phx-card{border-color:transparent;background:linear-gradient(160deg,#1a1d2e,#0c1020) padding-box,var(--accent-grad) border-box}
html[data-theme="light"][data-accent="rainbow"] body:not(.halloween):not(.hol) .phx-card{background:linear-gradient(160deg,rgba(255,255,255,.95),rgba(248,245,255,.9)) padding-box,var(--accent-grad) border-box}

/* ds-v635: trips on My Planner calendar (Travel mint, solid, with a small pin) */
.cal-bar.trip{background:color-mix(in srgb,var(--ec) 70%,transparent)!important;border:1.5px solid var(--ec)!important;box-shadow:0 0 6px color-mix(in srgb,var(--ec) 55%,transparent)!important}
.cal.big .cal-bar.trip{color:#04281c}
.cal.big .cal-bar .trp-mk{display:inline-grid;width:12px;height:12px;vertical-align:-2px;margin-right:3px}
.trp-mk svg,.trp-day svg,.cal-sw.trip svg{width:100%;height:100%;display:block}
.cal-day .trp-day{position:absolute;top:3px;left:3px;width:10px;height:10px;color:var(--ec,#50ffbe);display:grid;filter:drop-shadow(0 0 3px rgba(80,255,190,.8));pointer-events:none}
.cal.big .cal-day .trp-day{width:13px;height:13px;top:8px;left:8px}
.cal.mini .trp-day{display:none}
.cal-sw.trip{width:20px;height:20px;border:0!important;background:transparent!important;color:var(--ec);display:grid;filter:drop-shadow(0 0 4px rgba(80,255,190,.7))}
.trip-row .cal-open{color:var(--ec)}
.trip-row .trp-stop{display:block;opacity:.85}
html[data-theme="light"] .cal-day .trp-day,html[data-theme="light"] .cal-sw.trip,html[data-theme="light"] .trip-row .cal-open{color:#0a9f6d}

/* ds-v636: meal plan */
.cal-sw.meal{background:var(--ec)!important;border-color:var(--ec)!important}
.cal-bar.meal{background:color-mix(in srgb,var(--ec) 80%,transparent)!important;border:0!important}
.meal-row{position:relative;align-items:center}.meal-row .cal-rtxt{flex:1;min-width:0}
.meal-lnk{display:inline-block;margin-top:2px;font-size:13px;font-weight:600;color:rgb(255,170,80)}
html[data-theme="light"] .meal-lnk{color:#b86a10}
.meal-q{width:100%;margin:8px 0}
.meal-pick{max-height:46vh;overflow:auto;display:flex;flex-direction:column;gap:6px}
.meal-opt{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:8px;border-radius:12px;border:1px solid var(--border,rgba(255,255,255,.14));background:transparent;color:inherit;cursor:pointer}
.meal-opt:hover,.meal-opt:focus-visible{border-color:rgb(255,170,80)}
.meal-opt img,.meal-ph{flex:none;width:44px;height:44px;border-radius:10px;object-fit:cover;display:grid;place-items:center;background:rgba(255,170,80,.16);font-size:22px}
.meal-opt span b{display:block}.meal-opt small{color:var(--muted)}
.meal-date{display:flex;flex-direction:column;gap:6px;margin:10px 0 4px}
.meal-ask{display:flex;flex-direction:column;gap:8px}.meal-ask .btn{width:100%}
.meal-lead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.orig-nico{display:grid;place-items:center;background:rgba(255,200,80,.18);border:1.5px solid rgb(240,190,70);line-height:1}.orig-nico svg{display:block}.hol-row .th-perk,.th-perk{display:block;font-size:12px;font-weight:600;color:rgb(240,190,70)!important;margin-top:2px}.ad-th-row .ad-th-obtn.on{background:rgba(255,200,80,.18);border-color:rgb(240,190,70);color:rgb(240,190,70)}.og-msg{width:100%;box-sizing:border-box;margin:8px 0 6px;padding:10px 12px;border-radius:12px;border:1px solid var(--line,rgba(128,128,128,.4));background:transparent;color:inherit;font:inherit;resize:vertical}.og-msg-foot{display:flex;justify-content:space-between;align-items:center;gap:10px}.orig-perk{margin:8px 0 0;color:rgb(240,190,70)}
.meal-nico{display:grid;place-items:center;background:rgba(255,170,80,.2);border:1.5px solid rgb(255,170,80);font-size:18px;line-height:1}

/* ds-v637: holidays on My Planner. Soft champagne, not an event: a dot on the phone grid, a small label on the desktop grid, a row in the day panel. */
:root{--hday:#e6d3a3}
html[data-theme="light"]{--hday:#9a7418}
.cal-day .hday-dot{position:absolute;top:6px;right:7px;width:7px;height:7px;border-radius:50%;background:var(--hday);box-shadow:0 0 5px color-mix(in srgb,var(--hday) 70%,transparent);pointer-events:none}
.cal.mini .hday-dot{display:none}
.cal.big .cal-day .hday-lab{position:absolute;top:9px;left:32px;right:5px;font-size:calc(10.5px * var(--ts,1));font-weight:600;line-height:1.2;color:var(--hday);opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;cursor:pointer}
.cal.big .cal-day .hday-lab:hover{text-decoration:underline}
.cal-sw.hday{background:var(--hday)!important;border-color:var(--hday)!important}
button.cal-row.hday-row{width:100%;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer}
.hday-row .cal-rtxt{flex:1;min-width:0}.hday-row .cal-open{color:var(--hday)}
.hday-acts{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.hday-act{display:grid;grid-template-columns:34px 1fr;column-gap:10px;align-items:center;text-align:left;width:100%;padding:10px 12px;border-radius:14px;border:1px solid rgba(var(--acc-rgb),.35);background:transparent;color:inherit;cursor:pointer;font:inherit}
.hday-act span{grid-row:1/3;font-size:22px;text-align:center}.hday-act b{display:block}.hday-act small{color:var(--muted);font-size:calc(12.5px * var(--ts,1))}
.hday-act:hover,.hday-act:focus-visible{border-color:var(--accent);background:rgba(var(--acc-rgb),.1)}
.hday-name{width:100%;margin:8px 0}.hday-kinds{display:flex;flex-direction:column;gap:8px}.hday-kinds .btn{width:100%}
.hday-card .hday-set+.hday-set{margin-top:0}
.hday-head{padding:0;gap:10px}
.hday-exp{flex:1;display:flex;align-items:center;gap:10px;padding:10px 0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.hday-exp small{display:block;color:var(--muted);font-size:calc(12.5px * var(--ts,1))}
.hday-chev{margin-left:auto;font-style:normal;font-size:20px;color:var(--muted);transition:transform .18s}
.hday-set.open .hday-chev{transform:rotate(90deg)}
.hday-list{margin:0 0 8px 6px;padding-left:10px;border-left:2px solid color-mix(in srgb,var(--hday) 55%,transparent)}
.hday-list[hidden]{display:none}
.hday-list.off .hday-item span{opacity:.5}
.hday-item{padding:8px 0}
/* ds-v638: Tasks & Lists index. One compact row per list, paged. */
.lx-wrap{display:flex;flex-direction:column;gap:8px;transition:opacity .15s}.lx-wrap.busy{opacity:.55}
.lx-foldbar .pl-fold{margin:0 0 2px}
.lx-rows{display:flex;flex-direction:column;gap:6px}
.lx-row{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:9px 10px 9px 12px;border:1px solid var(--line,#2a3446);border-radius:14px;background:var(--card,#141b27);color:inherit;font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.lx-row:active{transform:scale(.99);border-color:var(--accent)}
.lx-ic{flex:none;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;font-size:1.2rem;background:rgba(var(--acc-rgb),.14)}
.lx-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.lx-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.98rem}
.lx-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.65;font-size:.78rem}
.lx-left{flex:none;display:flex;flex-direction:column;align-items:center;min-width:42px;line-height:1.05}
.lx-left b{font-size:1.05rem;color:var(--accent)}.lx-left small{font-size:.66rem;opacity:.65}.lx-left.z b{opacity:.55;color:inherit}
.lx-chev{flex:none;font-style:normal;font-size:1.5rem;line-height:1;opacity:.5}
.lx-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lx-grid .lx-row{flex-direction:column;align-items:flex-start;gap:6px;min-height:118px;padding:12px;position:relative}
.lx-grid .lx-main{width:100%}.lx-grid .lx-name{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.lx-grid .lx-sub{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.lx-grid .lx-left{position:absolute;top:10px;right:12px}.lx-grid .lx-chev{display:none}
.lx-more{align-self:center;min-width:180px;margin:6px 0}.lx-end{height:1px}
.lx-empty{text-align:center;margin:26px 0}.lx-count{text-align:center;margin:6px 0 0}
html[data-theme="light"] .lx-row{background:#fff;border-color:#e3dbee}
html[data-theme="light"] .lx-ic{background:rgba(var(--acc-rgb),.12)}

/* ds-v640: one Calendar section, reminders, need by */
.cal-set-card .cal-sub{margin:16px 0 2px;padding-top:12px;border-top:1px solid var(--line,rgba(255,255,255,.1));font-weight:700;font-size:calc(15px * var(--ts,1))}
.cal-set-card .cal-sub small{display:block;font-weight:400;color:var(--muted);font-size:calc(12.5px * var(--ts,1));margin-top:2px}
.cal-set-card .hday-wrap .cal-sub{margin-top:16px}
.meal-rem-box{margin:4px 0 6px}
.rem-ed{display:flex;flex-direction:column;gap:8px;margin:8px 0 4px}
.rem-row{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.rem-d{width:52px;flex:none;padding:8px 2px;border-radius:10px;border:1px solid var(--line,rgba(255,255,255,.18));background:var(--card2,transparent);color:inherit;font:inherit;text-align:center}
.rem-t{flex:1;min-width:118px;padding:8px 4px 8px 8px;font-size:calc(14.5px * var(--ts,1));border-radius:10px;border:1px solid var(--line,rgba(255,255,255,.18));background:var(--card2,transparent);color:inherit;font:inherit}
.rem-l{color:var(--muted);font-size:calc(13px * var(--ts,1));white-space:nowrap}
.rem-x{flex:none;width:28px;height:34px;border-radius:50%;border:0;background:transparent;color:var(--muted);font-size:22px;line-height:1;cursor:pointer}
.rem-x:disabled{opacity:.3;cursor:default}
.rem-add{align-self:flex-start}
.meal-opts{margin-top:10px}
.meal-by-row{display:flex;gap:8px;align-items:center;margin-top:6px}
.meal-by-row input{flex:1;min-width:0}
.meal-opts .meal-date small{font-weight:400;color:var(--muted)}
.meal-opts .meal-cust{padding:8px 0}
.sh-need{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 10px;color:var(--muted);font-size:calc(13.5px * var(--ts,1))}
.sh-need b{color:var(--text,inherit)}
.sh-needb{border:1px solid rgba(var(--acc-rgb),.45);background:transparent;color:var(--accent);border-radius:999px;padding:4px 12px;font:inherit;font-size:calc(12.5px * var(--ts,1));cursor:pointer;flex:none}
.lx-need{color:var(--accent);font-weight:600}
.trv-calset{display:block;margin:8px 0 0;color:var(--accent);font-size:calc(13.5px * var(--ts,1));text-decoration:none}
.rem-t::-webkit-calendar-picker-indicator{margin-left:0;padding:0;width:16px}
.meal-opts .meal-date small{display:inline;margin-left:4px}
.meal-opts .meal-by-row{display:flex;margin-top:8px}
.meal-opts .meal-date{display:block}
.meal-opts .meal-opt{font-style:normal;font-weight:400;color:var(--muted);font-size:calc(13px * var(--ts,1));margin-left:4px}
.rem-ed[hidden],.meal-by-row [hidden],.meal-rem-box[hidden],.sh-need[hidden]{display:none!important}

/* ds-v643: day picker in the remove from shopping list sheet */
.rm-days{display:flex;flex-direction:column;gap:8px;margin:6px 0 12px}.rm-days .check{display:flex;align-items:center;gap:10px}

/* ds-v644: rich link previews. Two line description, and tall pictures (book covers, posters) shown whole beside the text */
.lp-card .lp-desc { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lp-card .lp-desc[hidden] { display: none; }
.lp-card.lp-cover { min-height: 128px; }
.lp-card.lp-cover .lp-img { flex: 0 0 86px; width: 86px; background: #0a0a0e; display: flex; align-items: center; justify-content: center; }
.lp-card.lp-cover .lp-img img { width: 100%; height: 100%; min-height: 0; max-height: 150px; object-fit: contain; }
.comment .lp-card.lp-cover .lp-img, .dm-bubble .lp-card.lp-cover .lp-img { flex-basis: 64px; width: 64px; }
.comment .lp-card.lp-cover .lp-img img, .dm-bubble .lp-card.lp-cover .lp-img img { max-height: 100px; }
.comment .lp-card .lp-desc, .dm-bubble .lp-card .lp-desc { -webkit-line-clamp: 2; }
.dm-bubble .lp-card { margin: 6px 0 2px; min-height: 52px; }
.dm-bubble .lp-card .lp-img { flex-basis: 64px; width: 64px; }
.dm-bubble .lp-card .lp-img img { min-height: 52px; max-height: 80px; }

/* ds-v648: one small multiplier pill beside the servings, with a popover (replaces the Scale row) */
.rs-mult { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 38px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(var(--acc-rgb), .55); background: transparent; color: var(--accent-pale, #e8d4fb); font: inherit; font-size: 12px; font-weight: 700; line-height: 1.3; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; vertical-align: baseline; }
.rs-mult::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-1px) rotate(45deg); opacity: .8; }
.rs-mult:hover, .rs-mult.open { background: rgba(var(--acc-rgb), .16); }
.rs-mult.on { background: var(--accent-fill, var(--accent)); border-color: transparent; color: #fff; box-shadow: 0 0 10px rgba(var(--acc-rgb), .45); }
.rs-mult:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.en-chips .rs-mult { margin: 0; }
.rs-sv { font-weight: 700; }
.rs-pop { position: fixed; z-index: 1100; width: 232px; box-sizing: border-box; padding: 10px; border-radius: 14px; background: #121216; border: 1px solid var(--accent-soft); box-shadow: var(--glow); color: var(--text); font-weight: 400; overscroll-behavior: contain; }
.rs-pop-t { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .7; margin: 0 2px 8px; }
.rs-pop-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rs-o { padding: 9px 0; border-radius: 10px; border: 1px solid rgba(var(--acc-rgb), .4); background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.rs-o:hover { background: rgba(var(--acc-rgb), .14); }
.rs-o.on { background: var(--accent-fill, var(--accent)); border-color: transparent; color: #fff; }
.rs-pop-c { display: flex; gap: 6px; margin-top: 8px; }
.rs-ci { flex: 1; min-width: 0; height: 36px; box-sizing: border-box; margin: 0; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(var(--acc-rgb), .4); background: rgba(255, 255, 255, .04); color: inherit; font-size: 16px; }
.rs-ci.on { border-color: var(--accent); }
.rs-set { height: 36px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--accent-fill, var(--accent)); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
:where(html[data-theme="light"]) .rs-pop { background: #eee7f4; }
:where(html[data-theme="light"]) .rs-ci { background: #fff; }

/* ds-v650: movie and show suggestions under the Movie or show field (tag + year + where it streams) */
.mv-res{margin-top:6px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(12,14,26,.92);overflow:hidden}.mv-res[hidden]{display:none}
.mv-r{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;text-align:left;font:inherit;color:inherit;background:none;border:0;border-top:1px solid rgba(255,255,255,.07);cursor:pointer}.mv-r:first-child{border-top:0}
.mv-r:active{background:rgba(255,255,255,.08)}.mv-rt{flex:1;min-width:0;display:flex;flex-direction:column}.mv-rt b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mv-rt small{font-size:12px;opacity:.7}
.mv-ty{flex:none;font-size:11px;font-weight:700;padding:2px 9px;border-radius:999px;border:1px solid}.mv-ty.show{color:#7cf5d4;border-color:rgba(124,245,212,.6);background:rgba(124,245,212,.12)}.mv-ty.movie{color:#ffb3b5;border-color:rgba(255,90,95,.6);background:rgba(255,90,95,.14)}
.mv-note{padding:9px 12px;font-size:12px;opacity:.7}
html[data-theme="light"] .mv-res{background:#fff;border-color:#e3d9ee}html[data-theme="light"] .mv-r{border-top-color:#eee6f5}html[data-theme="light"] .mv-r:active{background:#f4eefa}
html[data-theme="light"] .mv-ty.show{color:#0b7a60;background:rgba(11,122,96,.1);border-color:rgba(11,122,96,.5)}html[data-theme="light"] .mv-ty.movie{color:#b3262c;background:rgba(220,60,66,.1);border-color:rgba(220,60,66,.5)}

/* ds-v651: "You already have this" sheet and the brief highlight on the opened recipe */
.dup-card { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px; border-radius: 14px; background: #15151a; border: 1px solid #26262e; }
.dup-img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: #1d1d24; }
.dup-ph { display: grid; place-items: center; font-size: 28px; }
.dup-t { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dup-t b { overflow-wrap: anywhere; line-height: 1.25; }
.dup-t small { color: #9a9aa6; }
.pl-hit { outline: 2px solid var(--accent); outline-offset: 2px; transition: outline-color 1.2s ease; }
html[data-theme="light"] .dup-card { background: #f3f3f6; border-color: #e1e1e8; }
html[data-theme="light"] .dup-t small { color: #666673; }
.kit-cat-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
button.kit-cat-pick { width: 100%; margin-top: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }


/* ds-v653: folder tag on recipes */
.pl-fpill{max-width:140px;min-width:0;box-shadow:none;border-color:rgba(var(--acc-rgb),.35);overflow:hidden;white-space:nowrap;flex:0 1 auto}.pl-fpill svg{flex:none}.pl-fpn{min-width:0;overflow:hidden;text-overflow:ellipsis}.pl-fpx{flex:none;opacity:.75}
.pl-rowt small{display:flex;align-items:center;flex-wrap:nowrap;min-width:0;white-space:nowrap}.pl-rowt small .pl-onlist{flex:none}.pl-rowt small .pl-fpill{flex:0 1 auto}.pl-head .pl-fpill{margin-left:0}

/* ds-v655: a Watching post with no photo shows the title's poster, whole, centered, same border as a photo */
img.post-img.post-poster { width: auto; max-width: 100%; max-height: min(62svh, 440px); margin-left: auto; margin-right: auto; aspect-ratio: 2 / 3; object-fit: cover; }

/* ds-v656: event links. Ended: same card, dimmed, with an Event ended tag, still tappable. Removed: soft calendar, quiet text. */
.lk-card.lk-ended .lk-th img, .lk-card.lk-ended .lk-th svg { opacity: .5; filter: grayscale(.5); }
.lk-card.lk-ended .lk-ti, .lk-card.lk-ended .lk-ln { opacity: .65; }
.lk-card.lk-ended { border-color: rgba(var(--acc-rgb), .22); }
.lk-ty .lk-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--muted); font-size: calc(9.5px * var(--ts, 1)); letter-spacing: .04em; vertical-align: 1px; }
.lk-card.lk-gone { border-style: dashed; border-color: rgba(255, 255, 255, .16); }
.lk-card.lk-gone .lk-th svg { color: var(--muted); opacity: .75; }
.lk-card.lk-gone .lk-ti { color: var(--muted); font-weight: 600; }

/* ds-v658: the Book Nook */
.bn { position: relative; padding: 4px 2px 40px; }
.bn-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 6px; }
.bn-top .se-topmore { position: relative; flex: none; }
.bn-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 6px 8px 10px; }
.bn-head .avatar { width: 72px; height: 72px; }
.bn-head h1 { margin: 4px 0 0; font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.bn-sub { margin: 0; color: var(--muted); font-size: 14px; }
.bn-off { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px 14px; margin: 4px 0 10px; }
.bn-off small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.bn-actions { display: flex; justify-content: center; margin: 2px 0 10px; }
.bn-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.bn-actions svg { width: 16px; height: 16px; }
.bn-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(var(--acc-rgb), .1); border: 1px solid rgba(var(--acc-rgb), .35); margin: 4px 0 12px; }
.bn-tabs button { flex: 1; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; padding: 8px 10px; border-radius: 999px; cursor: pointer; }
.bn-tabs button[aria-selected="true"] { background: var(--accent-fill); color: #fff; }
.bn-shelf { margin: 0 0 18px; }
.bn-stash-bar { margin: 4px 2px 12px; }
.bn-sh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 0 2px 8px; }
.bn-sh-head h2 { margin: 0; font-size: 17px; }
.bn-sh-head small { color: var(--muted); font-size: 12.5px; }
.bn-books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
.bn-book { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: default; -webkit-tap-highlight-color: transparent; }
button.bn-book { cursor: pointer; }
.bn-cover { display: block; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: #2a2236; border: 1px solid rgba(var(--acc-rgb), .45); box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.bn-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-nocover { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 8px; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--accent-pale); background: linear-gradient(160deg, #3a2a52, #231c2c); overflow: hidden; overflow-wrap: anywhere; }
.bn-book b { font-size: 12.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bn-book small { color: var(--muted); font-size: 11.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-empty { margin: 4px 2px; color: var(--muted); font-size: 14px; font-style: italic; }
.bn-tagrow { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.bn-tagrow label { font-size: 13px; color: var(--muted); flex: none; }
.bn-tagrow select { flex: 1; min-width: 0; background: var(--field); color: var(--text); border: 1px solid var(--field-border); border-radius: 10px; padding: 8px; font: inherit; }
.bn-ptag { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(var(--acc-rgb), .1); border: 1px solid rgba(var(--acc-rgb), .3); }
.bn-ptag-c { flex: none; width: 30px; height: 44px; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #2a2236; }
.bn-ptag-c img { width: 100%; height: 100%; object-fit: cover; }
.bn-ptag span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.bn-ptag b { font-size: 13.5px; overflow-wrap: anywhere; }
.bn-ptag small { color: var(--muted); font-size: 11.5px; }
.bn-all { display: inline-block; margin: 0 0 10px 2px; }
.bn-older { display: block; margin: 8px auto 0; }
/* the one time prompt in a book club */
.bn-prompt { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; margin: 10px 0 4px; padding: 12px 14px; }
.bn-prompt-ic { font-size: 26px; line-height: 1; }
.bn-prompt-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bn-prompt-txt b { font-size: 15px; line-height: 1.25; }
.bn-prompt-txt small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.bn-prompt-btns { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.nook-add { margin-top: 8px; align-self: flex-start; }
/* ds-v662: the wall is the Glo post card and composer. Only the pieces below are Book Nook's own. */
.bn-wall-host { display: flex; flex-direction: column; gap: 0; }
.bn-wall-host > .composer { margin: 0 0 12px; }
.nook-ctx { color: var(--accent-2); }
.nook-ctx .ev-lock { color: var(--muted); }
.post .bn-ptag { margin: 4px 0 10px; }
.ic-book { grid-column: 1 / -1; display: none; align-items: center; gap: 8px; flex-basis: 100%; width: 100%; padding: 6px 2px 0; }
.composer.ic.open .ic-book, .composer.ic.has .ic-book, .composer.ic:focus-within .ic-book { display: flex; order: 2; }
.ic-book label { font-size: 13px; color: var(--muted); flex: none; }
.ic-book select { flex: 1; min-width: 0; background: var(--field); color: var(--text); border: 1px solid var(--field-border); border-radius: 10px; padding: 8px; font: inherit; }
.nook-add.done { color: var(--accent-pale); }
.en-book + .nook-add, .en-sec + .nook-add { margin-top: 8px; }
.nook-set .set-uname { margin-top: 4px; }

/* ds-v658: the Book Nook button, invite only (owner and invited members).
   ds-v659: takes the member's neon accent from Settings.
   ds-v660: a round badge (thin ring, BOOK over the top arc, NOOK under the bottom arc, filled core with the open book), centered
   down and to the right of the avatar (1.44 avatar widths right of its center, 0.89 below it), clear of the avatar and the edit pencil. */
.profile-head.has-nook { --bk-size: calc(var(--bk-av, 96px) * .8); }
.profile-head.has-nook .book-btn { position: absolute; width: var(--bk-size); height: var(--bk-size); top: calc(var(--bk-pt, 14px) + var(--bk-av, 96px) * 1.39 - var(--bk-size) / 2); left: min(calc(50% + var(--bk-av, 96px) * 1.436 - var(--bk-size) / 2), calc(100% - var(--bk-size) - 6px)); display: block; padding: 0; border-radius: 50%; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, filter .12s ease; z-index: 2; }
.profile-head.has-nook.me { --bk-pt: 10px; }
.book-btn svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 2px rgba(var(--acc-rgb), .95)) drop-shadow(0 0 7px rgba(var(--acc-rgb), .7)) drop-shadow(0 0 14px rgba(var(--acc2-rgb), .4)); }
.bk-disc { fill: rgba(12, 9, 22, .86); }
.bk-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.bk-core { fill: rgba(var(--acc-rgb), .26); stroke: var(--accent); stroke-width: 2.2; }
.bk-txt { fill: var(--accent); font: 700 13px/1 var(--font, 'Montserrat', system-ui, sans-serif); letter-spacing: 3px; }
.bk-txt .bk-last { letter-spacing: 0; }   /* no trailing gap, so text-anchor middle really centers the word */
.bk-s0 { stop-color: var(--accent-pale); } .bk-s1 { stop-color: var(--accent-pale); } .bk-s2 { stop-color: var(--accent-2); }
.book-btn:active { transform: scale(.93); filter: brightness(1.2); }
.book-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .book-btn { transition: none; } }

/* ds-v659: the whole Book Nook (page, sheets, menus and the post cards on its wall) follows the member's accent. The speakeasy classes it shares
   (.se-post, .se-compose, .se-form and friends) carry crimson and violet, so inside the nook they are re-tinted from the accent variables. */
.bn-modal-bg .modal { background: var(--card); border: 1px solid rgba(var(--acc-rgb), .45); box-shadow: 0 0 30px rgba(var(--acc-rgb), .25); max-height: calc(100dvh - 28px); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 16px; }
.bn-modal-bg .field { margin-bottom: 10px; }
.bn-modal-bg select { width: 100%; }
.bn-h { font-size: calc(18px * var(--ts, 1)); margin: 6px 0 4px; color: var(--accent-pale); text-shadow: 0 0 10px rgba(var(--acc-rgb), .45); }
.bn-modal-bg .se-sub { color: var(--muted); }
.bn .se-back { color: var(--accent-pale); }
.bn .se-link { color: var(--accent-pale); }
.bn .se-empty { color: var(--muted); }
.bn .se-compose textarea { border-color: rgba(var(--acc-rgb), .4); }
.bn .se-attach { color: var(--accent-pale); }
.bn .se-thumb { border-color: rgba(var(--acc-rgb), .5); }
.bn .se-pname { color: var(--text); text-shadow: none; }
.bn .se-flag { color: var(--accent-pale); background: rgba(var(--acc-rgb), .22); border: 1px solid rgba(var(--acc-rgb), .55); }
.bn .se-act.on { color: var(--accent-pale); }
.bn .se-send { border: 1px solid rgba(var(--acc-rgb), .5); background: rgba(var(--acc-rgb), .18); color: var(--accent-pale); }
.bn .se-edit { border-color: rgba(var(--acc-rgb), .4); }
.bn .se-more-posts { border-color: rgba(var(--acc-rgb), .4); }
.bn-modal-bg .btn:not(.ghost) { background: var(--accent-fill); }
.inv-sheet { border-color: rgba(var(--acc-rgb), .45); }

/* ds-v663: the Add to a book club sheet on a Book Nook shelf */
.bc-sheet .bc-book { margin: -4px 0 6px; font-size: calc(13px * var(--ts, 1)); }
.bc-sheet .bc-row { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.06); color: inherit; font: inherit; border-radius: 12px; }
.bc-sheet .bc-row:active, .bc-sheet .bc-row:focus-visible { background: rgba(var(--acc-rgb), .14); outline: none; }
.bc-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: rgba(var(--acc-rgb), .18); border: 1px solid rgba(var(--acc-rgb), .5); color: var(--accent-pale); }
.bc-ico img { width: 100%; height: 100%; object-fit: cover; }
.bc-ico svg { width: 22px; height: 22px; }
.bc-state { flex: none; font-size: calc(12.5px * var(--ts, 1)); font-weight: 700; color: var(--accent-pale); border: 1px solid rgba(var(--acc-rgb), .55); background: rgba(var(--acc-rgb), .18); border-radius: 999px; padding: 4px 12px; }
.bc-row.done .bc-state { background: rgba(var(--acc-rgb), .32); }
.bc-row.dupe .bc-state { background: none; color: var(--muted); border-color: rgba(255,255,255,.2); }
.bc-sheet .bc-none { padding: 18px 6px; text-align: center; }
/* the toast would sit under the sheet backdrop (z 60), so while the picker is open it floats above it, near the top */
body:has(.bc-sheet, .gp-sheet) .toast { z-index: 80; bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 28px); }

/* ds-v664: group Projects tab, project page, sheets */
.ic-book[hidden] { display: none !important; }
.proj-slot:empty { display: none; }
.proj-ctx { margin-top: -2px; }
.gp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gp-card { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; overflow: hidden; color: inherit; text-decoration: none; background: linear-gradient(180deg, #241e2f 0%, #1c1824 70%); border: 1.5px solid rgba(var(--acc-rgb), .55); }
.gp-card:active { border-color: var(--accent); }
.gp-card.done { border-color: rgba(var(--acc-rgb), .3); }
.gp-cov { display: block; aspect-ratio: 4 / 3; background: rgba(var(--acc-rgb), .12); overflow: hidden; }
.gp-cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent-pale); }
.gp-ph svg { width: 34px; height: 34px; }
.gp-ph.big svg { width: 54px; height: 54px; }
.gp-txt { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px 11px; min-width: 0; }
.gp-txt b { font-size: calc(14px * var(--ts, 1)); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.gp-txt small { color: var(--muted); font-size: calc(12px * var(--ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 4px; }
.gp-n { color: var(--muted); font-size: calc(12px * var(--ts, 1)); }
.gp-stat { display: inline-block; font-size: calc(11.5px * var(--ts, 1)); font-weight: 700; border-radius: 999px; padding: 3px 10px; border: 1px solid rgba(var(--acc-rgb), .55); background: rgba(var(--acc-rgb), .18); color: var(--accent-pale); }
.gp-stat.done { background: var(--accent); color: #fff; border-color: var(--accent); }
.gp-done { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 6px; }
.gp-done summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 10px 2px; font-weight: 700; color: var(--accent-pale); }
.gp-done summary::-webkit-details-marker { display: none; }
.gp-done summary::after { content: ''; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.gp-done[open] summary::after { transform: rotate(-135deg); }
.gp-cnt { font-size: calc(12px * var(--ts, 1)); font-weight: 700; border-radius: 999px; padding: 1px 9px; background: rgba(var(--acc-rgb), .22); border: 1px solid rgba(var(--acc-rgb), .5); }
.gp-done .gp-grid { margin: 6px 0 12px; }
.gp-page { padding: 0; overflow: hidden; margin-top: 10px; }
.gp-hero { aspect-ratio: 16 / 10; background: rgba(var(--acc-rgb), .12); overflow: hidden; }
.gp-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-info { padding: 14px 16px 16px; }
.gp-titlerow { display: flex; align-items: flex-start; gap: 8px; }
.gp-titlerow h1 { flex: 1; min-width: 0; margin: 0; font-size: calc(22px * var(--ts, 1)); line-height: 1.2; overflow-wrap: anywhere; }
.gp-info .gp-meta { margin: 8px 0 10px; }
.gp-owner { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 600; }
.gp-desc { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.gp-acts { margin-top: 14px; }
.gp-h2 { font-size: calc(16px * var(--ts, 1)); margin: 18px 4px 8px; }
.gp-cover-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gp-cp { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: rgba(var(--acc-rgb), .18); border: 1px solid rgba(var(--acc-rgb), .5); color: var(--accent-pale); }
.gp-cp img { width: 100%; height: 100%; object-fit: cover; }
.gp-cp svg { width: 28px; height: 28px; }
.gp-cp.busy { opacity: .5; }
.gp-seg { display: flex; gap: 8px; }
.gp-seg button { flex: 1; font: inherit; font-weight: 700; padding: 10px 8px; border-radius: 12px; color: var(--muted); background: transparent; border: 1.5px solid rgba(255,255,255,.18); cursor: pointer; }
.gp-seg button[aria-checked="true"] { color: var(--accent-pale); background: rgba(var(--acc-rgb), .22); border-color: var(--accent); box-shadow: 0 0 10px rgba(var(--acc-rgb), .25); }
.gp-sheet .field { margin-bottom: 12px; }
.gp-sheet .inv-foot { margin-top: 6px; justify-content: flex-end; gap: 10px; }
.mp-row { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.06); color: inherit; font: inherit; border-radius: 12px; }
.mp-row:active, .mp-row:focus-visible { background: rgba(var(--acc-rgb), .14); outline: none; }
.mp-row.on { background: rgba(var(--acc-rgb), .12); }
.mp-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: rgba(var(--acc-rgb), .18); border: 1px solid rgba(var(--acc-rgb), .5); color: var(--accent-pale); font-size: 22px; line-height: 1; }
.mp-ico img { width: 100%; height: 100%; object-fit: cover; }
.mp-ico svg { width: 22px; height: 22px; }
.mp-new .mp-ico { border-style: dashed; }
.mp-state { flex: none; font-size: calc(12.5px * var(--ts, 1)); font-weight: 700; color: var(--accent-pale); }
.mp-rm b { color: var(--danger, #ff6b81); }
html[data-theme="light"] .gp-card { background: #eee7f4; }

/* ds-v664: the Groups grid ends with clear space above the bottom bar (the last row used to sit 16px from it), and no row is ever skipped by paint containment. */
#grpList.grp-grid { padding-bottom: 28px; }
#grpList.grp-grid .grp-card { content-visibility: visible; contain: none; }

/* ds-v665: desktop side menu, Book Nook section (accent styling). Phones never see it: .wide-only is hidden below 1024px. */
@media (min-width: 1024px) {
  .bottom .side-nook { order: 7; flex-direction: column; align-items: stretch; gap: 2px; margin: 10px 0 4px; padding: 10px 6px 6px; border-top: 1px solid rgba(var(--acc-rgb),.22); }
  .bottom .side-nook[hidden] { display: none; }
  .bottom .sn-h { display: flex; align-items: center; gap: 8px; padding: 2px 8px 6px; color: var(--accent); font-size: calc(11.5px * var(--ts, 1)); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 0 8px rgba(var(--acc-rgb),.55); }
  .bottom .sn-h svg { width: 16px; height: 16px; filter: drop-shadow(0 0 4px rgba(var(--acc-rgb),.7)); }
  .bottom a.sn-link { order: 0; gap: 10px; padding: 7px 10px; border-radius: 12px; font-size: calc(14px * var(--ts, 1)); }
  .bottom a.sn-link > span { display: flex; flex-direction: column; min-width: 0; }
  .bottom a.sn-link b, .bottom a.sn-link small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bottom a.sn-link small { color: var(--muted); font-weight: 500; font-size: calc(11.5px * var(--ts, 1)); }
  .bottom .sn-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--accent); box-shadow: 0 0 6px rgba(var(--acc-rgb),.55); }
  .bottom span.sn-ic { display: flex; align-items: center; justify-content: center; color: var(--accent); }
  .bottom .sn-ic svg { width: 16px; height: 16px; }
  .bottom a.sn-link:hover { background: rgba(var(--acc-rgb),.12); }
  .bottom a.sn-link.active { background: rgba(var(--acc-rgb),.16); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb),.55); }
  .bottom a.sn-mine b { color: var(--accent); }
}

/* ds-v666: on desktop the Book Nook is reached only from the left bar (ds-v665). The round profile badge stays on phones and tablets (the same 1024px breakpoint where the left bar shows). */
@media (min-width: 1024px) {
  .profile-head.has-nook .book-btn { display: none; }
}

/* ds-v682: Cosmic's shooting stars live in a layer above the page (a streak behind the cards would never be seen). Only Cosmic fills it. Ignores taps, pauses while scrolling, hidden for reduced motion. */
.hol-fx-top { display: none; }
body.hol .hol-fx-top { display: block; position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
.hol-fx-top i { position: absolute; display: block; will-change: transform, opacity; }
.hol-fx-top b { display: block; }
body.is-scrolling .hol-fx-top i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hol-fx-top { display: none !important; } }

/* ds-v667: holiday theme decorations stay out of the way.
   Phones: the header art runs edge to edge (it was a fixed 390px picture, so wider phones showed dark strips on both sides).
   Desktop (the same 1024px breakpoint where the left bar shows): the header art (garland, string lights, fireworks, shooting star arcs, light rays) would sit on top of the
   People, Business, Groups and Events tabs, the scene banner floats small in the middle of the feed, and the snow dome sat on the New post button, so they are hidden there.
   The logo and the mascots beside it are not touched. Every decoration ignores taps and clicks. */
html[data-hol] body.hol .hol-band { background-size: cover !important; background-position: center !important; }   /* the scene banner fills the column on wide phones too */
html[data-hol] body.hol .top::before { left: 0; right: 0; background-size: cover !important; background-position: center top !important; }
html[data-hol] body.hol .top::before,
html[data-hol] body.hol .hol-band,
html[data-hol] body.hol .hol-fx,
html[data-hol] body.hol .hol-fx *,
html[data-hol] body.hol .hol-fx-top,
html[data-hol] body.hol .hol-fx-top *,
html[data-hol] body.hol .bottom a.plus::after,
html[data-hol] body.hol .top a[data-set-toggle]::after,
html[data-hol] body.hol article.post::after { pointer-events: none !important; }
/* ds-v698: the planner home gets the same scene banner as the Glo Board, but only on desktop (on phones the header art already covers it). */
.hol-band-pl { display: none; }
html[data-hol] body.hol .hol-band.hol-band-pl { display: none !important; }
@media (min-width: 1024px) {
  html[data-hol] body.hol .top::before,
  html[data-hol] body.hol .top a[data-set-toggle]::after,
  html[data-hol] body.hol .bottom a.plus::after { display: none !important; }
  /* ds-v698: the scene banner fills the whole center column on desktop (it was hidden, then a 480px strip floating mid column). Same art, layout only: the column width, a taller crop, soft corners. */
  html[data-hol] body.hol .hol-band,
  html[data-hol] body.hol .hol-band.hol-band-pl { display: block !important; width: 100%; height: calc(var(--hol-band-h, 74px) * 1.7); margin: 6px 0 12px; border-radius: 16px; background-size: cover !important; background-position: center !important; }
}

/* ds-v668: message and post fields always allow caret placement, loupe and selection, whatever a parent sets (iOS Safari and the home screen app) */
.dm-input textarea, .composer-input, .cm-pill, .cedit textarea, #shCap {
  -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; touch-action: manipulation;
}

/* ds-v669: Book Nook covers. A book with no cover shows its title; the owner gets an accent "Add a cover photo" on it */
.bn-nc-t { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.bn-addcover { display: inline-block; max-width: 100%; padding: 5px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; line-height: 1.15; letter-spacing: .01em; color: var(--accent-pale); background: rgba(var(--acc-rgb), .2); border: 1px solid rgba(var(--acc-rgb), .65); cursor: pointer; }
button.bn-book:active .bn-addcover, .bn-addcover:hover { background: rgba(var(--acc-rgb), .35); }
.bn-cover-field .cover-drop { aspect-ratio: 2 / 3; max-width: 140px; border-radius: 8px; }
.bn-prog { margin-top: 5px; min-width: 0; }
.bn-prog-t { display: block; font-size: 10px; font-weight: 700; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
.bn-prog .pbar { margin: 4px 0 0; }
.bn-book { position: relative; cursor: pointer; }
.bn-book .bn-book-more { position: absolute; top: 4px; right: 2px; z-index: 2; width: 28px; height: 28px; }
.bn-jhead { position: relative; margin: 0 16px 16px; }
.bn-jtop { display: flex; gap: 14px; align-items: flex-start; }
.bn-jcover { flex: none; width: 88px; }
.bn-jcover img, .bn-jcover .bn-cover, .bn-jcover .bn-nocover { display: block; width: 88px; aspect-ratio: 2 / 3; border-radius: 8px; object-fit: cover; }
.bn-jcover .bn-nocover { width: 88px; min-height: 0; }
.bn-jmeta { min-width: 0; flex: 1; }
.bn-jmeta h1 { margin: 0 0 4px; font-size: 1.25rem; line-height: 1.2; }
.bn-journal .timeline { padding: 0 16px 32px; }
.bn-journal .section-label { margin: 8px 16px 10px; }
.bn-journal .wip-actions { margin-top: 12px; }
#bnUp .pslider { margin: 4px 0 0; }
.bn-mode { margin: 6px 0 8px; }
.bn-mode-hint { display: block; margin: -2px 0 10px; }
#bnPctWrap input { max-width: 160px; }
#bnPageWrap[hidden], #bnPctWrap[hidden] { display: none !important; }
.bn-journal .tl-date b { white-space: nowrap; }
.bn-rm-actions { flex-direction: column; align-items: stretch; margin-top: 12px; }
.bn-rm-actions .btn { width: 100%; justify-content: center; }
.menu .bn-rm-confirm, .sheet .bn-rm-confirm { max-width: 280px; }

.bn-prog-live { min-height: 1.2em; }
.bn-finished { display: block; margin-top: 3px; color: var(--accent-pale); font-size: 10.5px; font-weight: 700; letter-spacing: .01em; }


/* Favorite line on a Book Nook journal update, and the one pinned quote on a book card. */
.bn-quote { position: relative; margin: 8px 0 0; padding: 10px 12px 10px 14px; border-radius: 10px; border: 1px solid rgba(var(--acc-rgb), .5); background: linear-gradient(180deg, rgba(var(--acc-rgb), .18), rgba(var(--acc-rgb), .05)); box-shadow: 0 0 10px rgba(var(--acc-rgb), .4), 0 0 22px rgba(var(--acc-rgb), .16), inset 0 0 14px rgba(var(--acc-rgb), .08); color: var(--accent-pale); }
.bn-quote blockquote { margin: 0; padding: 0; border: 0; font-style: italic; font-size: 13.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.bn-quote blockquote::before { content: "“"; }
.bn-quote blockquote::after { content: "”"; }
.bn-quote figcaption { display: block; margin-top: 5px; font-size: 10.5px; font-weight: 700; font-style: normal; letter-spacing: .01em; color: var(--muted); }
.bn-quote.is-pinned { border-color: rgba(var(--acc-rgb), .85); box-shadow: 0 0 12px rgba(var(--acc-rgb), .55), 0 0 26px rgba(var(--acc-rgb), .22), inset 0 0 16px rgba(var(--acc-rgb), .1); }
.bn-qpin { display: inline-flex; align-items: center; margin-top: 8px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(var(--acc-rgb), .55); background: rgba(var(--acc-rgb), .12); color: var(--accent-pale); font-size: 11px; font-weight: 800; letter-spacing: .02em; cursor: pointer; }
.bn-qpin[aria-pressed="true"], .bn-quote.is-pinned .bn-qpin { background: rgba(var(--acc-rgb), .32); box-shadow: 0 0 8px rgba(var(--acc-rgb), .45); }
.bn-qcheck { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--text); }
.bn-book .bn-quote { margin-top: 6px; padding: 7px 8px 7px 9px; border-radius: 8px; }
.bn-book .bn-quote blockquote { font-size: 11px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bn-book .bn-quote figcaption { font-size: 9.5px; margin-top: 3px; }
.bn-book .bn-qpin { display: none; }
.bn-jmeta .bn-quote { margin-top: 10px; }


.bn-ptag-c { border: 1px solid rgba(var(--acc-rgb), .45); }

/* ds-v670: a toast must show above sheets and modals (z-index 60), or every error raised from inside one is invisible (Print and Post on the card sheet looked dead). */
.toast { z-index: 9000; }
.pcard-btns .btn:disabled { opacity: .7; }

/* ds-v677: attaching a photo to a comment grows the composer (preview + NSFW checkbox). It scrolls itself above the bottom nav (app.js lift) and keeps room under it so the input and send button are never hidden behind the nav. */
.comment-form.cm-bar { scroll-margin-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px); }
body.kb-typing .comment-form.cm-bar { scroll-margin-bottom: 12px; }   /* the bottom bar is hidden while typing; leaving its height in the margin makes the browser keep scrolling the box */
.comment-form.cm-bar.has-photo { margin-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px); }
.cc-body .comment-form.cm-bar.has-photo { margin-bottom: 0; }

/* ds-v678: the + after the 3 faces of the post gem row (more than 3 gems): same circle as a face, just a + */
.gemmers .gm-more { font-size: 16px; font-weight: 700; line-height: 1; padding-bottom: 1px; }

/* ds-v679: Original member badge (blue diamond inside a gold edge). Same size and spot as the verified gem. The gold edge is a touch thinner on big badges. */
.vb-orig { cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 6px; }
.vb-orig:focus-visible { outline: 2px solid #ffc83a; outline-offset: 2px; }
.vb-orig svg { display: block; overflow: visible; }
h1 .vb-orig svg .vo-rim, h2 .vb-orig svg .vo-rim { stroke-width: 4.2; }
.dn-row > .vb-orig svg { min-width: 16px; }
.orig-tip { position: fixed; z-index: 3000; padding: 6px 12px; border-radius: 999px; background: #1b1810; color: #ffe6a3; border: 1px solid rgba(255, 200, 58, .65); font-size: calc(13px * var(--ts, 1)); font-weight: 700; line-height: 1.2; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); animation: ogTip .14s ease-out; }
@keyframes ogTip { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .orig-tip { animation: none; } }
:where(html[data-theme="light"]) .orig-tip { background: #fff7de; color: #5a3a00; border-color: rgba(200, 130, 10, .6); }
.cv-top { justify-content: flex-start; align-items: center; }
.cv-top .vbadge { margin-left: 0; }
.cv-top b { flex: 0 1 auto; min-width: 0; }
.cv-top .cv-time { margin-left: auto; }
.dx-vg svg { display: block; }
.ad-origlink { display: inline-block; margin: 0 4px 10px; }
.og-list { display: flex; flex-direction: column; margin-top: 6px; }
.og-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.og-row:last-child { border-bottom: 0; }
.og-row .ad-person { flex: 1; min-width: 0; border-bottom: 0; }
.og-row .og-btn { flex: none; min-width: 72px; min-height: 40px; }
.og-intro .sub { margin: 0; }
:where(html[data-theme="light"]) .og-row { border-color: rgba(60, 30, 90, .1); }
/* ds-v679: theme release news. A New pill on the pickers and a bell item with a palette icon. */
.hol-head { width: 100%; box-sizing: border-box; align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.hol-head > b { min-width: 0; flex: 1 1 auto; }
/* ds-v684: theme pack header: the pack name, how many themes it holds, and the New pill */
.pack-card .hol-head { gap: 8px; }
.pack-card .hol-head > b { font-size: 1.05em; letter-spacing: .01em; }
.pack-count { flex: 0 0 auto; font-size: .78rem; color: var(--muted); font-weight: 600; }
.pack-card { border-top: 3px solid var(--accent); }
.rel-new, .switch-row .rel-new, .hol-head .rel-new { flex: 0 0 auto; align-self: center; display: inline-block; width: auto; margin: 0; padding: 2px 9px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 800; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: #fff; background: var(--accent-fill, var(--accent)); }
.th-nico { display: grid; place-items: center; font-size: 17px; background: rgba(var(--acc-rgb, 180, 92, 240), .16); border: 1px solid rgba(var(--acc-rgb, 180, 92, 240), .4); }
.ad-th-announce { margin: -2px 0 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(var(--acc-rgb, 180, 92, 240), .45); background: rgba(var(--acc-rgb, 180, 92, 240), .08); display: grid; gap: 8px; }
.ad-th-chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.35; }
.ad-th-chk input { margin-top: 2px; flex: 0 0 auto; accent-color: var(--accent); }
.ad-th-act { display: flex; gap: 8px; }

/* ds-v679: Halloween contrast. White text on the orange fill reads 4.6:1, and in light mode the accent text colors are darkened to 4.5:1 or better against white cards. */
html[data-theme="light"] body.halloween { --accent: #b34a07; --accent-2: #7a2db8; --acc-rgb: 179, 74, 7; --acc2-rgb: 122, 45, 184; }

/* ds-v682: nothing decorative sits on or touches the + button or the bottom bar, in any theme or mode (holiday, scene, Halloween, default and accent looks). */
.bottom a.plus::before, .bottom a.plus::after, #bottomNav a.plus::before, #bottomNav a.plus::after { content: none !important; display: none !important; background: none !important; }

/* Neon Nights is always dark: the Light tile is greyed out while it is the active theme */
.theme-tiles.tt-locked .theme-tile:disabled { opacity: .4; filter: grayscale(1); cursor: not-allowed; pointer-events: none; }
.theme-lock-note { display: block; margin-top: 8px; }
.theme-lock-note[hidden] { display: none; }
/* ds-v684: the pack menu on each Admin > Themes row */
.ad-th-pack { display: block; margin-top: 6px; max-width: 100%; font: inherit; font-size: 12.5px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--field, var(--card)); color: var(--text); }
/* ds-v684: theme packs as folders in Settings: a grid of tiles (cover, name, count), a New dot, and an open folder with a back button */
.pack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.pack-tile { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--field, rgba(255,255,255,.04)); position: relative; -webkit-tap-highlight-color: transparent; }
.pack-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pack-tile:active { transform: scale(.98); }
.pack-tile > b { font-size: 15px; margin-top: 6px; color: var(--text); }
.pack-tile > small { font-size: 12.5px; color: var(--muted); }
.pack-cover { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; border-radius: 12px; height: 68px; background: rgba(0,0,0,.18); }
.pack-cover i { display: block; border-radius: 8px; min-height: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.pack-cover i:only-child { grid-column: 1 / -1; grid-row: 1 / -1; }
.pack-cover i:first-child:nth-last-child(3) { grid-row: 1 / 3; }
.pack-cover i:first-child:nth-last-child(2) { grid-row: 1 / 3; }
.pack-cover i:nth-child(2):nth-last-child(1) { grid-row: 1 / 3; }
.pack-dot { position: absolute; top: -5px; right: -5px; width: 14px; height: 14px; border-radius: 50%; background: #ff4f6d; border: 2px solid var(--card); box-sizing: border-box; box-shadow: 0 0 8px rgba(255,79,109,.7); }
.pack-back { all: unset; cursor: pointer; display: inline-block; margin: 0 0 8px; padding: 6px 2px; font-weight: 700; font-size: 14px; color: var(--accent); }
.pack-back:focus-visible { outline: 2px solid var(--accent); border-radius: 6px; }
.pack-card[hidden], .pack-grid-card[hidden] { display: none; }

/* ds-v688 (wip/stickers): Halloween stickers, owner only while we test. */
.stk-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--accent-2); border: 1px solid var(--accent-soft); background: none; padding: 0; }
.stk-btn.on { background: rgba(var(--acc-rgb), .22); color: var(--accent); }
.dm-compose.has-tray { margin-bottom: 0; }
.stk-tray { margin-top: 8px; background: var(--card); border: 1px solid rgba(var(--acc-rgb), .55); border-radius: 22px; box-shadow: 0 -4px 22px rgba(var(--acc-rgb), .18); padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.stk-grip { width: 38px; height: 4px; border-radius: 4px; background: var(--muted); opacity: .5; margin: 0 auto 2px; }
.stk-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 0; }
.stk-head b { font: 700 14px/1 Montserrat, system-ui, sans-serif; color: var(--text); }
.stk-head small { color: var(--muted); font-weight: 500; margin-left: 6px; font-size: 12px; }
.stk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stk-cell { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; background: rgba(var(--acc-rgb), .07); border: 1px solid transparent; padding: 0; cursor: pointer; max-height: 72px; justify-self: center; width: 100%; }
.stk-cell img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); pointer-events: none; }
.stk-cell.sel { border-color: rgba(var(--acc-rgb), .9); background: rgba(var(--acc-rgb), .18); box-shadow: 0 0 14px rgba(var(--acc-rgb), .5); }
.stk-send { height: 44px; border-radius: 999px; background: var(--accent-fill, var(--accent)); color: #fff; border: 0; font: 700 14px/1 Montserrat, system-ui, sans-serif; cursor: pointer; box-shadow: 0 0 14px rgba(var(--acc-rgb), .4); }
.stk-send:disabled { opacity: .6; }
.dm-bubble.stk, .dm.mine .dm-bubble.stk { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 2px 2px 0; }
.dm-bubble.stk img.stk-big { display: block; width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.28)); }
.dm-bubble.stk time { margin-top: 0; padding: 0 6px; }
.stk-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.stk-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px 0 4px; border-radius: 999px; border: 1px solid rgba(var(--acc-rgb), .6); background: var(--card); box-shadow: 0 0 8px rgba(var(--acc-rgb), .25); color: var(--accent-2); font: 700 11px/1 Montserrat, system-ui, sans-serif; cursor: pointer; }
.stk-chip.mine { background: rgba(var(--acc-rgb), .2); border-color: rgba(var(--acc-rgb), .95); }
.stk-chip img { width: 20px; height: 20px; object-fit: contain; }
.stk-chip span { margin-left: 4px; }
/* the press and hold bar gets a second row of stickers */
.rx-pick.has-stk { flex-wrap: wrap; justify-content: center; border-radius: 26px; width: max-content; max-width: calc(100vw - 16px); }
.rx-pick .rx-br { flex-basis: 100%; height: 0; }
.rx-pick .rx-it.rx-stk { width: 40px; height: 40px; }
.rx-pick .rx-it.rx-stk img { width: 34px; height: 34px; position: relative; z-index: 1; pointer-events: none; }
.rx-pick.sliding .rx-it.rx-stk:not(.hot) img { opacity: calc(.62 + var(--p, 0) * .38); }
.rx-pick.has-stk .rx-it:nth-child(6) .rx-lab { left: auto; right: 0; transform: translateX(0) scale(.8); transform-origin: right bottom; }
.rx-pick.has-stk .rx-it:nth-child(6):is(:hover, :focus-visible, .hot) .rx-lab { transform: translateX(0) scale(1); }
.rx-pick.has-stk { column-gap: 2px; row-gap: 4px; padding-left: 8px; padding-right: 8px; }
.rx-pick .rx-it.rx-stk { width: 36px; height: 36px; }
.rx-pick .rx-it.rx-stk img { width: 32px; height: 32px; }

/* ds-v690: locked themes in a pack folder (members, owner flag ON): lock icon and name only, nothing to tap. No preview and no price yet. */
.hol-row.hol-locked { align-items: center; gap: 10px; opacity: .7; }
.hol-row.hol-locked .hol-lock-ic { display: inline-flex; flex: none; color: var(--accent-pale); }
.hol-row.hol-locked .hol-lock-ic svg { width: 16px; height: 16px; }

/* ds-v692 (wip/stickers-feed): sticker button in the comment boxes and the Glo Board post box, big stickers in posts and comments, post chips. Owner only. */
.composer-photo.stk-ic { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 999px; margin-left: -4px; }
.composer-photo.stk-ic:active { transform: scale(.92); }
.composer-photo.stk-ic.on { background: rgba(var(--acc-rgb), .2); }
.comment-form .composer-photo.stk-ic { margin: 0; }
.stk-tray.stk-inline { margin: 8px 0 4px; }
.stk-big { display: block; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.28)); }
.post-body.stk-post { padding-top: 2px; padding-bottom: 4px; }
img.stk-big.stk-post-img { width: 150px; height: 150px; max-width: 60%; height: auto; aspect-ratio: 1; }
.ctext.stk-ctext { padding: 2px 0; }
img.stk-big.stk-cm-img { width: 110px; height: 110px; max-width: 100%; }
.stk-chips.post-stk { padding: 0 14px 6px; margin-top: 0; }

/* ds-v699: per-theme Testers panel in Admin > Themes (owner only) */
.ad-th-row .ad-th-tbtn { display: block; width: fit-content; min-width: 0; margin: 6px 0 0; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line, rgba(128,128,128,.4)); background: transparent; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.ad-th-row .ad-th-tbtn[aria-expanded="true"] { border-color: rgba(var(--acc-rgb, 180, 92, 240), .7); background: rgba(var(--acc-rgb, 180, 92, 240), .12); }
.ad-th-testers { margin: -2px 0 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(var(--acc-rgb, 180, 92, 240), .45); background: rgba(var(--acc-rgb, 180, 92, 240), .08); display: grid; gap: 8px; }
.ad-th-testers .ad-tt-q { width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line, rgba(128,128,128,.4)); background: var(--surface, transparent); color: inherit; font: inherit; }
.ad-tt-person { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.ad-tt-person .ad-who { flex: 1; min-width: 0; display: block; }
.ad-tt-person .ad-who b, .ad-tt-person .ad-who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-tt-results:not(:empty) { border-bottom: 1px dashed var(--line, rgba(128,128,128,.4)); padding-bottom: 6px; }

/* ds-v699: Test group card at the bottom of Admin > Themes (owner only) */
.ad-tg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.ad-tg-chips:empty { display: none; }
.ad-tg-chip { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(var(--acc-rgb, 180, 92, 240), .7); background: rgba(var(--acc-rgb, 180, 92, 240), .14); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.ad-tg-q { margin: 0 0 6px; }
.ad-tg-themes { display: grid; gap: 8px; margin: 10px 0; max-height: 340px; overflow: auto; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, rgba(128,128,128,.35)); }
.ad-tg-themes fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ad-tg-themes legend { padding: 0; font-size: 12px; font-weight: 700; opacity: .75; margin-bottom: 4px; }
.ad-tg-th { display: inline-flex; align-items: center; gap: 6px; margin: 2px 14px 2px 0; font-size: 14px; }
.ad-tg-act { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.ad-tg-h { margin: 10px 0 6px; font-size: 14px; }
.ad-tg-member { padding: 8px 0; border-top: 1px solid var(--line, rgba(128,128,128,.25)); }
.ad-tg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0 42px; }
.ad-tg-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border-radius: 999px; border: 1px solid var(--line, rgba(128,128,128,.4)); font-size: 12px; }
.ad-tg-tag button { border: 0; background: transparent; color: inherit; font-size: 15px; line-height: 1; padding: 2px 6px; cursor: pointer; }
.ad-tg-bytheme { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line, rgba(128,128,128,.35)); }
.ad-tg-bytheme .ad-tg-tags { margin-left: 0; }

/* ds-v704: recipe star ratings. Gold stars with a soft neon glow in dark mode, plain and a little deeper in light mode. */
.rt-svg { display: block; flex: none; }
.rt-svg .rt-bg { fill: rgba(255,255,255,.14); stroke: rgba(255,255,255,.28); stroke-width: 1; stroke-linejoin: round; }
.rt-svg .rt-fg { fill: #ffc83d; stroke: #ffc83d; stroke-width: 1; stroke-linejoin: round; }
:where(html[data-theme="light"]) .rt-svg .rt-bg { fill: rgba(40,31,49,.08); stroke: rgba(40,31,49,.28); }
:where(html[data-theme="light"]) .rt-svg .rt-fg { fill: #f2a100; stroke: #d98f00; }
html:not([data-theme="light"]) .rt-svg .rt-fg { filter: drop-shadow(0 0 3px rgba(255,200,61,.65)); }
.rt-c { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; font-size: calc(12.5px * var(--ts, 1)); line-height: 1; white-space: nowrap; color: var(--text, inherit); }
.rt-c .rt-row { display: inline-flex; gap: 1px; }
.rt-c .rt-svg { width: 12px; height: 12px; }
.rt-c b { font-weight: 700; margin-left: 2px; }
.rt-n { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); }
.pl-head .rt-c { margin-left: 8px; }
.rt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 10px 0 2px; }
.rt-pick { display: inline-flex; gap: 2px; }
.rt-b { background: none; border: 0; padding: 6px 3px; min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 10px; }
.rt-b .rt-svg { width: 26px; height: 26px; transition: transform .12s; }
.rt-b:active .rt-svg { transform: scale(1.18); }
.rt-b.on .rt-bg { fill: #ffc83d; stroke: #ffc83d; }
:where(html[data-theme="light"]) .rt-b.on .rt-bg { fill: #f2a100; stroke: #d98f00; }
html:not([data-theme="light"]) .rt-b.on .rt-svg { filter: drop-shadow(0 0 4px rgba(255,200,61,.7)); }
.rt-b:focus-visible, .rt-clear:focus-visible { outline: 2px solid var(--accent, #c06bff); outline-offset: 1px; }
@media (hover: hover) { .rt-pick:hover .rt-b .rt-bg { fill: #ffc83d; stroke: #ffc83d; } .rt-pick .rt-b:hover ~ .rt-b .rt-bg { fill: rgba(255,255,255,.14); stroke: rgba(255,255,255,.28); }
  :where(html[data-theme="light"]) .rt-pick:hover .rt-b .rt-bg { fill: #f2a100; stroke: #d98f00; } :where(html[data-theme="light"]) .rt-pick .rt-b:hover ~ .rt-b .rt-bg { fill: rgba(40,31,49,.08); stroke: rgba(40,31,49,.28); } }
.rt-sum { font-size: calc(14px * var(--ts, 1)); }
.rt-sum b { font-weight: 700; }
.rt-clear { background: none; border: 0; color: var(--accent); font: inherit; font-size: calc(12.5px * var(--ts, 1)); padding: 8px 4px; cursor: pointer; text-decoration: underline; }
.pl-rowt small .rt-c { flex: none; }

/* ds-v704: flex strips the spaces around the dot in recipe list rows, so the dot carries its own margin */
.pl-rowt small .pl-dot{flex:none;margin:0 .4em}
/* ds-v721: the Themes card (My Themes and Theme packs merged): the theme in use on top with a Turn off button, then the pack tiles */
.th-active { margin: 2px 0 8px; }
.th-active-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--accent); background: rgba(var(--acc-rgb, 180, 92, 240), .10); }
.th-active-row > span { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.th-active-row > span > small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.th-active-row > span > b { font-size: 16px; color: var(--text); overflow-wrap: anywhere; }
.th-active-row .th-hid { margin: 4px 0 0; }
.th-active-row .btn { flex: 0 0 auto; }
.th-active-row.th-none { border-color: var(--line); background: var(--field, rgba(255,255,255,.04)); }
.th-active-row.th-none > span > b { color: var(--muted); font-weight: 600; font-size: 15px; }

/* ds-v722: Original perk announcements: past messages, who got each one, Send to new Originals */
.og-hist{display:flex;flex-direction:column;gap:12px;margin-top:8px}
.og-ann{padding:12px 0;border-top:1px solid rgba(255,255,255,.08);display:grid;gap:8px}
.og-ann:first-child{border-top:0;padding-top:4px}
.og-ann-msg{margin:0;font-size:.95rem;line-height:1.4;overflow-wrap:anywhere}
.og-ann-meta{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.og-ann-who summary{cursor:pointer;min-height:36px;display:flex;align-items:center;font-weight:600;color:var(--accent)}
.og-rec{display:flex;align-items:center;gap:10px;padding:6px 0}
.og-rec .ad-who{display:flex;flex-direction:column;min-width:0}
.og-rec .ad-who small{color:var(--muted)}
.og-ann-new{margin:0}
.og-ann .og-ann-go{justify-self:start;min-height:40px}
.og-cf-list{max-height:40vh;overflow:auto;margin:6px 0 12px;padding:4px 10px;border-radius:12px;background:rgba(255,255,255,.04)}
.og-cf-msg{overflow-wrap:anywhere}
:where(html[data-theme="light"]) .og-ann{border-color:rgba(60,30,90,.1)}
:where(html[data-theme="light"]) .og-cf-list{background:rgba(60,30,90,.05)}

/* ds-v723: the reply box grows as you type (up to about 6 lines), pill turns into a rounded box when it wraps; buttons stay at the bottom */
.comment-form.cm-bar { align-items: flex-end; }
.comment-form textarea.cm-pill { display: block; min-height: 0; resize: none; overflow-y: hidden; line-height: 1.35; font: inherit; font-size: max(16px, calc(16px * var(--ts, 1))); line-height: 1.35; color: inherit; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; white-space: pre-wrap; word-break: break-word; }
.comment-form.cm-multi textarea.cm-pill { border-radius: 18px; }
.comment-form .cm-pw { align-self: stretch; align-items: flex-end; }
.comment-form.cm-multi .cm-who { top: auto; bottom: 2px; transform: none; }
.comment-form > .reply-chip, .comment-form > .cm-thumb, .comment-form > .cm-as { align-self: stretch; }
.comment-form .cm-count { flex: 0 0 100%; order: 99; text-align: right; font-size: calc(11.5px * var(--ts, 1)); color: var(--muted); padding: 2px 6px 0; } .comment-form .cm-count.low { color: #ff6b8a; }

/* ds-v724: while typing the reply box takes the full width; photo, camera and sticker sit in a row under it with send on the right */
.comment-form.cm-wide .cm-pw { flex: 0 0 100%; order: 0; }
.comment-form.cm-wide .cm-count { order: 1; }
.comment-form.cm-wide > .composer-photo, .comment-form.cm-wide > .stk-btn, .comment-form.cm-wide > button:not(.send-btn) { order: 2; }
.comment-form.cm-wide > .send-btn { order: 3; margin-left: auto; }
.comment-form.cm-wide > .nsfw-tick, .comment-form.cm-wide > .flag-row { order: 4; }
.comment-form.cm-wide textarea.cm-pill { border-radius: 18px; }
/* ds-v726: bigger refined gems in the press and hold picker (chips stay small) */
.rx-pick { gap: 4px; padding: 5px 8px; max-width: calc(100vw - 40px); }   /* ds-v731 (t2985u): a bit smaller, with side margins */
.rx-pick .rx-it { width: 44px; height: 44px; }
.rx-pick .rx-it svg, .rx-pick .rx-it svg.rx-love { width: 38px; height: 38px; }
.rx-pick .rx-it::after { top: 9px; left: 12px; height: 26px; }
.rx-pick .rx-it:hover, .rx-pick .rx-it:focus-visible, .rx-pick .rx-it.hot { transform: translateY(-6px) scale(1.2); }
@media (max-width: 380px) { .rx-pick { gap: 2px; padding: 5px 6px; } .rx-pick .rx-it { width: 42px; height: 42px; } .rx-pick .rx-it svg, .rx-pick .rx-it svg.rx-love { width: 36px; height: 36px; } }
@media (max-width: 340px) { .rx-pick .rx-it { width: 40px; height: 40px; } .rx-pick .rx-it svg, .rx-pick .rx-it svg.rx-love { width: 34px; height: 34px; } }
/* ds-v726: Gems sheet tabs and gem badges */
.gl-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 6px; border-bottom: 1px solid rgba(var(--acc-rgb), .35); scrollbar-width: none; }
.gl-tabs::-webkit-scrollbar { display: none; }
.gl-tab { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid rgba(var(--acc-rgb), .45); background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.gl-tab b { font-weight: 700; }
.gl-tab svg { width: 24px; height: 24px; overflow: visible; }
.gl-tab.on { border-color: var(--accent-2); background: rgba(var(--acc-rgb), .2); box-shadow: 0 0 10px rgba(var(--acc-rgb), .55); }
.gl-av { position: relative; flex: none; display: inline-block; }
.gl-av .avatar { display: block; }
.gl-badge { position: absolute; right: -5px; bottom: -4px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1.5px rgba(var(--acc-rgb), .6); pointer-events: none; }
.gl-badge svg { width: 18px; height: 18px; overflow: visible; }
.gl-row .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gl-sheet { border: 1.5px solid rgba(var(--acc-rgb), .6); box-shadow: 0 0 18px rgba(var(--acc-rgb), .35); }

/* ds-v734 (t3007u): a small name always shows under each gem in the picker (posts, comments, replies). Gem sizes from ds-v731 are kept; the hover bubble is retired. */
.rx-pick { align-items: flex-start; padding-bottom: 4px; }
.rx-pick .rx-it { height: auto; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 3px; gap: 1px; }
.rx-pick .rx-it::before { inset: 0 2px 12px; }
.rx-pick .rx-nm { position: relative; z-index: 1; display: block; font-size: 9.5px; line-height: 11px; font-weight: 700; letter-spacing: -.1px; white-space: nowrap; color: var(--text); text-shadow: 0 0 3px var(--card), 0 0 2px var(--card); pointer-events: none; }
.rx-pick .rx-it.on .rx-nm, .rx-pick .rx-it.hot .rx-nm { color: rgb(var(--acc-rgb)); }
@media (max-width: 380px) { .rx-pick { gap: 5px; } .rx-pick .rx-it { min-height: 51px; } }
@media (max-width: 340px) { .rx-pick { gap: 5px; padding-left: 5px; padding-right: 5px; } .rx-pick .rx-it { min-height: 49px; } .rx-pick .rx-nm { font-size: 9px; letter-spacing: -.3px; } }
/* seven reactions: keep the row on a 320px phone (labels stay inside the buttons) */
@media (max-width: 360px) {
  .rx-pick { gap: 0; padding-left: 4px; padding-right: 4px; max-width: calc(100vw - 8px); }
  .rx-pick .rx-it { width: 40px; min-width: 0; flex: 0 0 40px; }
  .rx-pick .rx-it svg, .rx-pick .rx-it svg.rx-love { width: 32px; height: 32px; }
  .rx-pick .rx-nm { font-size: 8px; letter-spacing: -.4px; }
}
/* Reaction art is the mock cutout, sized like the old svg slots. Idle like stays the outline svg. */
img.rx-art { display: block; object-fit: contain; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.act img.rx-art { width: 26px; height: 26px; }
.clip-side .act img.rx-art, .cf-act img.rx-art { width: 30px; height: 30px; }
.comment .cgem img.rx-art { width: 17px; height: 17px; }
.comment .cgem.rx img.rx-art { width: 22px; height: 22px; margin-top: -2px; }
.rx-pick .rx-it img.rx-art { width: 38px; height: 38px; position: relative; z-index: 1; }
.rx-pick.sliding .rx-it img.rx-art { opacity: calc(.62 + var(--p, 0) * .38); transition: opacity .08s linear; }
.rx-pick.sliding .rx-it.hot img.rx-art { opacity: 1; }
.rx-pick .rx-it.hot img.rx-art { filter: brightness(1.15); }
.gl-tab img.rx-art { width: 24px; height: 24px; }
.gl-badge img.rx-art { width: 18px; height: 18px; }
.dm-react-gem img.rx-art { width: 38px; height: 38px; }
.dm-react-bar .dm-rx-k img.rx-art { width: 38px; height: 38px; }
.dm-gem .dm-rx-i img.rx-art { width: 12px; height: 12px; }
.notif .ngem img.rx-art { width: 15px; height: 15px; vertical-align: -2px; }
.gem.pop img.rx-art { animation: gemPop .45s cubic-bezier(.2,1.6,.4,1); }
/* Liked cutouts glow; idle/unliked outline and the picker row stay flat (picker buttons carry .liked for selection chrome only). */
.act.gem.liked img.rx-art, .comment .cgem.liked img.rx-art, .cf-act.gem.liked img.rx-art,
.gl-badge.gem.liked img.rx-art, .notif .ngem.gem.liked img.rx-art, .dm-react-gem img.rx-art { filter: drop-shadow(0 0 4px rgba(var(--acc-rgb),.9)) drop-shadow(0 0 10px rgba(var(--acc-rgb),.5)); }
.rx-pick .rx-it img.rx-art { filter: none; }
.rx-pick .rx-it.hot img.rx-art { filter: brightness(1.15); }
@media (max-width: 380px) { .rx-pick .rx-it img.rx-art { width: 36px; height: 36px; } }
@media (max-width: 360px) { .rx-pick .rx-it img.rx-art { width: 32px; height: 32px; } }
@media (max-width: 340px) { .rx-pick .rx-it img.rx-art { width: 34px; height: 34px; } }

/* ds-v735: Hide post for me */
.mh-gone > :not(.mh-note) { display: none !important; }
.mh-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px; color: var(--muted); font-size: calc(14px * var(--ts, 1)); }
.mh-title { font-weight: 700; font-size: calc(17px * var(--ts, 1)); margin: 2px 4px 4px; }
.mh-sheet .cmenu-row > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.mh-sheet .cmenu-row small { font-weight: 400; color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); }
.mh-ic { width: 22px; text-align: center; font-size: 18px; flex: none; }
.mh-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 9999; display: flex; gap: 14px; align-items: center; background: #1d1b24; color: #eee; border: 1px solid #ffffff22; padding: 10px 14px; border-radius: 14px; font-size: 14px; max-width: 92vw; box-shadow: 0 6px 24px #0008; }
.mh-toast button { color: var(--accent-2); font-weight: 700; }
.snz-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #ffffff14; }
.snz-row:first-child { border-top: 0; }
.snz-nm { display: flex; flex-direction: column; font-weight: 600; color: inherit; text-decoration: none; }
.snz-nm small { font-weight: 400; color: var(--muted); font-size: 12px; }
#snzList { margin-top: 8px; }
:where(html[data-theme="light"]) .mh-toast { background: #fff; color: #34283f; border-color: #0001; }
/* ds-v736: My Planner Countdowns */
.cdn-lead{margin:-4px 0 12px}
.cdn-new{width:100%;margin:0 0 14px}
.cdn-list{display:flex;flex-direction:column;gap:10px}
.cdn-row{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:12px 14px;border-radius:20px;color:inherit;text-decoration:none;font:inherit;cursor:pointer;
  background:linear-gradient(155deg,rgba(255,255,255,.08),rgba(255,255,255,.02));border:1px solid color-mix(in srgb,var(--c) 45%,transparent);box-shadow:0 0 18px color-mix(in srgb,var(--c) 18%,transparent)}
.cdn-row.first{padding:16px;box-shadow:0 0 28px color-mix(in srgb,var(--c) 34%,transparent)}
.cdn-row.mini{padding:10px 14px}
.cdn-dial{position:relative;flex:0 0 74px;width:74px;height:74px}
.cdn-row.first .cdn-dial{flex-basis:92px;width:92px;height:92px}
.cdn-ring{width:100%;height:100%}
.cdn-ring circle{fill:none;stroke-width:4.2;stroke-linecap:round}
.cdn-ring .bg{stroke:rgba(255,255,255,.1)}
.cdn-ring .fg{filter:drop-shadow(0 0 4px var(--c))}
.cdn-num{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.05}
.cdn-num b{font-size:1.25rem;font-weight:800;color:#fff}
.cdn-row.first .cdn-num b{font-size:1.6rem}
.cdn-num span{font-size:.58rem;letter-spacing:.04em;color:rgba(225,232,255,.7);max-width:62px}
.cdn-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.cdn-txt b{font-size:1rem;overflow:hidden;text-overflow:ellipsis}
.cdn-txt small{color:rgba(225,232,255,.66);font-size:.8rem}
.cdn-txt small i{font-style:normal;font-weight:700}
.cdn-note{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cdn-sec{margin:20px 4px 8px;font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:rgba(225,232,255,.6)}
.cdn-empty{padding:22px 16px;border-radius:20px;border:1px dashed rgba(80,255,190,.4);text-align:center;color:rgba(225,232,255,.7)}
.cdn-empty b{display:block;color:#fff;margin-bottom:6px}
.cdn-foot{margin-top:18px;text-align:center}
.cdn-form{display:flex;flex-direction:column;gap:12px}
.cdn-form label{display:flex;flex-direction:column;gap:5px;font-weight:600}
.cdn-form label.cdn-chk{flex-direction:row;align-items:center;gap:8px;font-weight:500}
.cdn-btns{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.cdn-btns [data-del]{margin-right:auto}
/* ds-v737 mock: opened time capsule scrapbook */
@font-face { font-family: 'Caveat'; src: url('/fonts/Caveat-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
.cbk { position: relative; margin-top: 14px; }
.cbk-head { text-align: center; margin: 4px 0 18px; }
.cbk-head p { margin: 8px 0 2px; } .cbk-head small { color: var(--muted, #aaa); }
.cbk-faces { display: flex; justify-content: center; }
.cbk-faces .cbk-av { width: 38px; height: 38px; margin-left: -8px; border: 2px solid var(--bg, #111); }
.cbk-faces .cbk-av:first-child { margin-left: 0; }
.cbk-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; }
.cbk-av0 { background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.cbk-board { display: flex; gap: 14px; align-items: flex-start; padding: 6px 4px 10px; }
.cbk-col { flex: 1 1 0; min-width: 0; }
.cbk-col:nth-child(2) { padding-top: 26px; }
.cbk-note, .cbk-pol { all: unset; box-sizing: border-box; display: block; width: 100%; break-inside: avoid; margin: 0 0 16px; cursor: pointer; position: relative;
  transform: rotate(var(--r)); transition: transform .2s ease; -webkit-tap-highlight-color: transparent; }
.cbk-note:active, .cbk-pol:active { transform: rotate(0deg) scale(1.03); }
.cbk-note:focus-visible, .cbk-pol:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cbk-note { background: var(--pp); color: #2b2620; padding: 22px 14px 12px; border-radius: 2px 2px 14px 2px;
  box-shadow: 0 1px 1px rgba(0,0,0,.12), 0 8px 18px rgba(0,0,0,.28); background-image: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 40%); }
.cbk-txt { display: block; font-family: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive; font-size: 21px; line-height: 1.22; font-weight: 500; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.cbk-txt a { color: #6b2bd9; }
.cbk-pin { position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--accent) 22%); box-shadow: 0 2px 3px rgba(0,0,0,.35); }
.cbk-by { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: rgba(43,38,32,.75); flex-wrap: wrap; }
.cbk-by b { font-weight: 700; color: #2b2620; } .cbk-by small { margin-left: auto; font-size: 10.5px; }
.cbk-pol { background: #fbfaf6; padding: 8px 8px 0; box-shadow: 0 1px 1px rgba(0,0,0,.15), 0 10px 20px rgba(0,0,0,.32); }
.cbk-ph { display: block; background: #ddd; aspect-ratio: 1; overflow: hidden; }
.cbk-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbk-cap { display: block; font-family: 'Caveat', cursive; font-size: 19px; color: #39332c; text-align: center; padding: 6px 4px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbk-tape { position: absolute; top: -9px; left: 50%; width: 64px; height: 20px; margin-left: -32px; transform: rotate(calc(var(--r) * -1.5)); z-index: 1;
  background: rgba(255, 246, 214, .62); box-shadow: 0 1px 2px rgba(0,0,0,.15); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%); }
.cbk-foot { text-align: center; margin: 4px 0 20px; }
/* folder reveal */
.cbk-folder { display: none; position: relative; width: 220px; height: 160px; margin: 10px auto 0; perspective: 700px; }
.cbk-go:not(.cbk-done) .cbk-folder { display: block; animation: cbkFold 2.6s ease forwards; }
.cbk-go:not(.cbk-done) .cbk-head { animation: cbkFade .5s ease 1.3s both; }
.cbk-back { position: absolute; inset: 14px 0 0; border-radius: 6px 12px 10px 10px; background: color-mix(in srgb, var(--accent) 70%, #3a2a10); }
.cbk-back::before { content: ''; position: absolute; top: -14px; left: 0; width: 90px; height: 18px; border-radius: 8px 8px 0 0; background: inherit; }
.cbk-peek i { position: absolute; left: 22px; right: 22px; top: 22px; height: 110px; border-radius: 3px; background: #fff3a8; transform: translateY(0) rotate(-3deg); }
.cbk-peek i:nth-child(2) { background: #ffd6e0; transform: rotate(4deg); left: 30px; } .cbk-peek i:nth-child(3) { background: #fbfaf6; transform: rotate(-1deg); left: 40px; right: 34px; }
.cbk-go .cbk-peek i { animation: cbkPeek 1.1s cubic-bezier(.2,.8,.3,1.2) .55s both; } .cbk-go .cbk-peek i:nth-child(2) { animation-delay: .65s; } .cbk-go .cbk-peek i:nth-child(3) { animation-delay: .75s; }
.cbk-front { position: absolute; inset: 34px 0 0; border-radius: 8px; transform-origin: 50% 100%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, #f5d48a), color-mix(in srgb, var(--accent) 40%, #d9a94a)); box-shadow: 0 10px 24px rgba(0,0,0,.35);
  display: grid; place-items: center; }
.cbk-label { background: #fbfaf6; color: #39332c; font-family: 'Caveat', cursive; font-size: 22px; padding: 2px 14px; border-radius: 3px; transform: rotate(-2deg); max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbk-go .cbk-front { animation: cbkFlap .7s cubic-bezier(.4,0,.2,1) .25s both; }
.cbk-go:not(.cbk-done) .cbk-board > * { animation: cbkLand .6s cubic-bezier(.2,.9,.3,1.15) calc(1.4s + var(--d)) both; }
@keyframes cbkFlap { to { transform: rotateX(-68deg); } }
@keyframes cbkPeek { to { transform: translateY(-70px) rotate(var(--pr, -6deg)); } }
@keyframes cbkFold { 0%, 70% { opacity: 1; height: 160px; margin-bottom: 0; } 100% { opacity: 0; height: 0; margin-bottom: 0; transform: scale(.85); } }
@keyframes cbkFade { from { opacity: 0; transform: translateY(8px); } }
@keyframes cbkLand { from { opacity: 0; transform: translateY(-60px) scale(.6) rotate(calc(var(--r) * 4)); } to { opacity: 1; transform: rotate(var(--r)); } }
/* note enlarge */
.cbk-zoom { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.72); animation: cbkFade .2s ease; }
.cbk-note.big { width: min(92vw, 460px); max-height: 80vh; overflow: auto; transform: rotate(-1deg); cursor: default; padding: 30px 22px 16px; }
.cbk-note.big .cbk-txt { font-size: 27px; -webkit-line-clamp: unset; display: block; }
.cbk-x { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .cbk *, .cbk-zoom { animation: none !important; transition: none !important; } }
.cbk-pile { box-shadow: 7px 6px 0 -1px #ece8de, -6px 9px 0 -1px #e2ddd0, 0 12px 22px rgba(0,0,0,.35); }
.cbk-pile::after { transform: rotate(-6deg) translate(-4px, 4px); background: #ece8de; }
.cbk-ph { position: relative; }
.cbk-ph em { position: absolute; right: 6px; bottom: 6px; font-style: normal; font-weight: 800; font-size: 15px; color: #fff; background: rgba(0,0,0,.6); padding: 3px 9px; border-radius: 999px; }
.cbk-more { text-align: center; margin: 0 0 14px; }
.cap-q { margin: 10px 0; }
.cap-q { min-width: 0; max-width: 100%; }
.cap-qth { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; padding-bottom: 6px; }
.cap-qi { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--card, #222); }
.cap-qi img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .2s; }
.cap-qi.ok img { opacity: 1; } .cap-qi.ok i::after { content: '✓'; position: absolute; right: 3px; bottom: 1px; color: #fff; font-style: normal; font-weight: 800; text-shadow: 0 1px 2px #000; }
.cap-qbar { margin-top: 4px; width: 100%; } .cap-qbar::before { content: ""; display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 22%, transparent); margin-bottom: -6px; } .cap-qbar b { display: block; height: 6px; width: 0; border-radius: 3px; background: var(--accent); transition: width .2s; }
.cap-qbar small { display: block; margin-top: 4px; color: var(--muted, #aaa); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .cap-qbar b, .cap-qi img { transition: none; } }
.cdn-newrow { position: relative; display: flex; justify-content: flex-start; }   /* ds-v740: one + New pill with a small menu */
.cdn-add { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 800; font-size: 15px; color: #fff; cursor: pointer; background: var(--accent-fill); border: 1px solid var(--accent); box-shadow: var(--glow); text-shadow: 0 0 6px rgba(var(--acc-rgb),.6); }   /* ds-v741: follows the member's accent */
.cdn-add span { font-size: 19px; line-height: 1; }
.cdn-add:active { transform: scale(.96); }
.cdn-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 200px; display: flex; flex-direction: column; padding: 6px; border-radius: 14px; background: var(--card, #1d1426); border: 1px solid rgba(var(--acc-rgb),.5); box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 12px rgba(var(--acc-rgb),.25); }
.cdn-menu[hidden] { display: none; }
.cdn-menu button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; font-size: 15px; text-align: left; padding: 12px; border-radius: 10px; cursor: pointer; }
.cdn-menu button:active, .cdn-menu button:hover { background: rgba(var(--acc-rgb),.16); color: var(--accent); }
/* ds-v739: message safety red alert in Notifications */
.notif.notif-alert{background:#fde8e8;border-left:4px solid #d42020;color:#7a1010}.notif.notif-alert b{color:#b01515}
[data-theme="dark"] .notif.notif-alert,.dark .notif.notif-alert{background:#3a1414;color:#ffd6d6}[data-theme="dark"] .notif.notif-alert b,.dark .notif.notif-alert b{color:#ff8a8a}

/* ds-v742: Clockwork. Tabs and widgets share the accent glow of the + New pill. */
.clk-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 4px -2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.clk-tabs::-webkit-scrollbar { display: none; }
.clk-tab { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted, #aab); background: rgba(var(--acc-rgb), .06); border: 1px solid rgba(var(--acc-rgb), .22); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, box-shadow .15s, color .15s; }
.clk-tab[aria-selected="true"] { color: #fff; text-shadow: 0 0 6px rgba(var(--acc-rgb),.6); background: var(--accent-fill); border-color: var(--accent); box-shadow: var(--glow); }
.clk-face { text-align: center; padding: 26px 12px 22px; border: 1px solid rgba(var(--acc-rgb), .3); box-shadow: var(--glow); }
.clk-big { white-space: nowrap; font-size: clamp(34px, 11vw, 52px); font-weight: 700; letter-spacing: .5px; font-variant-numeric: tabular-nums; color: var(--accent); text-shadow: 0 0 18px rgba(var(--acc-rgb), .45); line-height: 1.1; }
.clk-date { margin-top: 8px; font-size: 16px; }
.clk-zone { margin-top: 4px; font-size: 13px; color: var(--muted, #aab); }
.clk-wlist { display: flex; flex-direction: column; gap: 8px; }
.clk-wlist > .card, .cdn-list > .card { margin: 0; }
.clk-wrow { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.clk-wlist > .clk-wrow:not(.card) { padding: 6px 2px; justify-content: space-between; }
.clk-wn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.clk-wn small, .clk-tl small, .clk-rem small { color: var(--muted, #aab); font-size: 12.5px; }
.clk-wt, .clk-wrow > span[data-tz] { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.clk-x { background: none; border: 0; color: var(--muted, #aab); font-size: 22px; padding: 0 4px; cursor: pointer; }
.clk-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
.clk-chip { padding: 8px 13px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .35); cursor: pointer; }
.clk-chip:active { background: var(--accent-fill); box-shadow: var(--glow); }
.clk-timer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; padding: 12px 14px; border: 1px solid rgba(var(--acc-rgb), .25); }
.clk-timer.done { opacity: .75; }
.clk-tl { display: flex; flex-direction: column; min-width: 0; }
.clk-tv { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); text-shadow: 0 0 12px rgba(var(--acc-rgb), .35); }
.clk-tb { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.clk-rem { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; font: inherit; color: inherit; padding: 12px 14px; cursor: pointer; border: 1px solid rgba(var(--acc-rgb), .2); }
.clk-rem.done { opacity: .6; }
.clk-hms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
/* ds-v743: Clockwork All tab labels and the world clock city suggestions */
.clk-all-lbl { margin: 14px 2px 6px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); }
.clk-pane > .clk-all-lbl:first-child { margin-top: 2px; }
.clk-sug { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; margin: -4px 0 4px; padding: 4px; border-radius: 12px; background: var(--card, #1d1426); border: 1px solid rgba(var(--acc-rgb),.5); box-shadow: 0 0 12px rgba(var(--acc-rgb),.25); -webkit-overflow-scrolling: touch; }
.clk-sug[hidden] { display: none; }
.clk-sopt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; border: 0; background: transparent; color: inherit; font: inherit; padding: 10px; border-radius: 9px; cursor: pointer; }
.clk-sopt small { color: var(--muted, #aab); font-size: 12px; }
.clk-sopt:active, .clk-sopt:hover { background: rgba(var(--acc-rgb),.16); }
.clk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.clk-top .cdn-newrow { flex: 0 0 auto; z-index: 31; }   /* ds-v744: the pill row no longer spans and covers Sort */
.clk-sort { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0; min-height: 44px; width: max-content; font-size: 13px; color: var(--muted, #aab); }
.clk-sort select { min-height: 40px; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .4); border-radius: 999px; padding: 7px 12px; }
.clk-face { position: relative; margin-bottom: 4px; }
.clk-fx { position: absolute; top: 8px; right: 10px; }
/* ds-v743: each kind keeps its own color in the combined list */
.clk-it .clk-all-lbl { color: var(--c); text-shadow: 0 0 8px color-mix(in srgb, var(--c) 45%, transparent); }
.clk-it.k0 .clk-timer, .clk-it.k1 .clk-rem, .clk-it.k5 .clk-wrow { border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 22%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 12%, transparent), transparent 70%), var(--card, #1d1426); }
.clk-it.k0 .clk-tv, .clk-it.k5 .clk-wt { color: var(--c); text-shadow: 0 0 12px color-mix(in srgb, var(--c) 40%, transparent); }
.clk-it.k1 .clk-rem b { color: var(--c); }
.clk-it.k0 .btn.small:not(.ghost) { background: var(--c); border-color: var(--c); color: #120d18; box-shadow: none; }
.clk-it.k0 .btn.ghost { color: var(--c); border-color: color-mix(in srgb, var(--c) 60%, transparent); }

.clk .cdn-menu button { padding: 10px 12px; }   /* ds-v744: six items fit above the tab bar */
.clk .cdn-menu { max-height: calc(100vh - 260px); overflow-y: auto; }
/* ds-v745: countdown page and shared countdown posts (live dial) */
.cdn-dial.big{display:block;flex:0 0 132px;width:132px;height:132px;--c:#50ffbe}
.cdn-dial.big .cdn-num b{font-size:2.1rem}
.cdn-dial.big .cdn-num span{font-size:.72rem;max-width:100px}
.cdd{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:4px 0 20px}
.cdd-img{display:block;width:100%;max-height:420px;object-fit:cover;border-radius:20px;border:1px solid rgba(80,255,190,.35);margin-bottom:8px}
.cdd-t{margin:4px 0 0}
.cdd-when{margin:0}
.cdd-dial{margin:14px 0 6px;padding:18px;width:max-content;border-radius:50%;box-shadow:0 0 40px rgba(80,255,190,.22)}
.cdd-note{margin:6px 0 0;max-width:520px;color:rgba(225,232,255,.85)}
.cdd-priv{margin:10px 0 4px}
.cdd-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:8px}
.cdp{display:flex;align-items:center;gap:16px;margin:10px 0;padding:14px 16px;border-radius:20px;border:1px solid rgba(80,255,190,.45);box-shadow:0 0 24px rgba(80,255,190,.2);background:linear-gradient(155deg,rgba(80,255,190,.10),rgba(255,255,255,.02))}
.cdp .cdn-dial.big{flex-basis:112px;width:112px;height:112px}
.cdp .cdn-dial.big .cdn-num b{font-size:1.8rem}
.cdp-t{display:flex;flex-direction:column;gap:4px;min-width:0;text-align:left}
.cdp-t b{font-size:1.1rem}
.cdp-t small{color:rgba(225,232,255,.75)}
.cdp-n{font-style:italic}
.phx-edit{display:block;margin:6px auto 0;background:none;border:0;color:rgba(225,232,255,.7);font:inherit;font-size:.85rem;text-decoration:underline;padding:10px 14px;cursor:pointer;min-height:44px}
.phx-tools{display:inline-flex;align-items:center;gap:6px}
.phx-more{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;background:none;border:0;color:#ff5ec8;font-size:1.4rem;letter-spacing:0;line-height:1;cursor:pointer;text-shadow:0 0 10px rgba(255,94,200,.8)}
.ph-ed{display:flex;flex-direction:column;gap:4px}
.ph-er{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ph-er span{display:inline-flex;gap:6px}
.ph-mv{min-width:40px;min-height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.05);color:#fff;font-size:1rem;cursor:pointer}
.ph-mv:disabled{opacity:.3}
/* ds-v746: countdown page ⋯ menu and live clock */
.cdd-head{display:flex;align-items:center;justify-content:space-between}
.cdd-more{color:#fff;min-width:44px;min-height:44px}
.cdd-more .menu button{white-space:nowrap}
.cdd-clock{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;max-width:340px;margin:14px auto 4px;text-align:center}
.cdd-u{padding:10px 0;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12)}
.cdd-u b{display:block;font-size:1.6rem;font-variant-numeric:tabular-nums;line-height:1.1;color:#fff}
.cdd-u span{font-size:.64rem;letter-spacing:.06em;text-transform:uppercase;opacity:.7}
/* ds-v747: shared time capsule posts */
.capp{margin:10px 0;padding:14px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12)}
.capp-h{display:flex;align-items:center;gap:10px}
.capp-h svg{width:34px;height:34px;flex:none}
.capp-h span{display:flex;flex-direction:column}
.capp-h small{opacity:.75}
.capp .cdd-clock{margin:12px auto 0}
.capp .cap-imgs{margin-top:10px}
.capp-n{margin:10px 0 0;white-space:pre-wrap}
.capp-l{display:inline-block;margin-top:10px;font-weight:700}
.capp-now{margin:12px 0 0;text-align:center}
.cdn-num b.cap-o{font-size:.82rem;letter-spacing:.02em}

/* ds-v750: countdown photo slot */
.cdd-addimg{display:flex;align-items:center;justify-content:center;height:120px;margin:0 0 14px;border:2px dashed var(--line,#ccc);border-radius:16px;color:var(--muted,#888);font-weight:600;cursor:pointer}
.menu label[role=menuitem]{display:block;width:100%;padding:10px 12px;border-radius:8px;text-align:left;font-size:calc(14px * var(--ts, 1));cursor:pointer}
.cdp-clock{margin:10px 0 4px}

/* ds-v753: glowing lines from a capsule caption to its photos */
[data-glo-root] { position: relative; }
.glo-svg { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 80; } /* ds-v762: above pieces so caption lines stay visible */
.glo-halo { fill: none; stroke: rgba(var(--acc-rgb), .5); stroke-width: 7; stroke-linecap: round; filter: blur(3px); }
.glo-line { fill: none; stroke: var(--accent-2, var(--accent)); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 3 5;
  filter: drop-shadow(0 0 3px var(--accent)) drop-shadow(0 0 6px rgba(var(--acc-rgb), .8)); animation: gloFlow 1.6s linear infinite; }
/* Manual scrapbook glow is one even solid stroke. No dash, and no center dot. Capsule lines keep the moving dash. */
.sbv-page .glo-line { stroke-dasharray: none; animation: none; }
.glo-hit { fill: none; stroke: transparent; stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; pointer-events: stroke; cursor: pointer; }
.sbv-page.sbv-drawing .glo-hit, .sbv-page[data-ro] .glo-hit, .sbv-page[data-locked] .glo-hit { pointer-events: none; }
.glo-dot { fill: #fff; filter: drop-shadow(0 0 3px var(--accent)) drop-shadow(0 0 7px var(--accent)); }
@keyframes gloFlow { to { stroke-dashoffset: -14; } }
.cbk-go:not(.cbk-done) .glo-svg { opacity: 0; }
.cbk-done .glo-svg { animation: cbkFade .6s ease both; }
.glo-on .cap-imgs { margin-top: 26px; }
.glo-on.capp .capp-n { margin-top: 26px; }
@media (prefers-reduced-motion: reduce) { .glo-line { animation: none; } }

/* ds-v754: scrapbook title fonts */
@font-face { font-family: 'Elsie Swash'; src: url('/fonts/ElsieSwash-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Sail'; src: url('/fonts/Sail-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Kelly Slab'; src: url('/fonts/KellySlab-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Lemon'; src: url('/fonts/Lemon-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'New Rocker'; src: url('/fonts/NewRocker-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Griffy'; src: url('/fonts/Griffy-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Jolly Lodger'; src: url('/fonts/JollyLodger-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Chela One'; src: url('/fonts/ChelaOne-latin.woff2') format('woff2'); font-display: swap; }

.sb-font-caveat { font-family: 'Caveat', cursive; }
.sb-font-dafoe { font-family: 'Mr Dafoe', cursive; }
.sb-font-elsie { font-family: 'Elsie Swash', cursive; }
.sb-font-sail { font-family: 'Sail', cursive; }
.sb-font-kelly { font-family: 'Kelly Slab', serif; }
.sb-font-lemon { font-family: 'Lemon', serif; }
.sb-font-rocker { font-family: 'New Rocker', cursive; }
.sb-font-griffy { font-family: 'Griffy', cursive; }
.sb-font-jolly { font-family: 'Jolly Lodger', cursive; }
.sb-font-chela { font-family: 'Chela One', cursive; }
.sb-font-montserrat { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 700; }

/* ds-v755: scrapbook — single + Add, no pill chrome; page bg; glow; waypoints; timeline; PC drag */
.sbx { padding: 0 4px 28px; max-width: 920px; margin: 0 auto; }
.sbx-top { margin: 8px 0 14px; }
.sbx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
@media (min-width: 900px) { .sbx-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } }
.sbx-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(176,114,255,.28); text-decoration: none; color: inherit; box-shadow: 0 0 18px rgba(176,114,255,.12); transition: transform .12s ease, box-shadow .12s ease; }
.sbx-card .sbx-open { display: flex; flex-direction: column; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.sbx-card .sbx-edit { display: block; text-align: center; padding: 0 12px 12px; font-weight: 700; font-size: 13px; color: var(--accent); text-decoration: none; }
.sbx-card .sbx-edit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sbx-card:hover, .sbx-card:focus-within { transform: translateY(-2px); box-shadow: 0 0 22px rgba(176,114,255,.28); outline: none; }
.sbx-card .cov { aspect-ratio: 4/3; background: #1a1424; background-size: cover; background-position: center; }
.sbx-card .cov.book { display: grid; place-items: center; padding: 10px 12px 12px; background:
  radial-gradient(80% 70% at 50% 110%, rgba(0,0,0,.35), transparent 60%),
  linear-gradient(180deg, #241833, #16101f); }
.sbx-card .bk { width: 78%; height: 88%; display: flex; border-radius: 2px 7px 7px 2px; overflow: hidden; box-shadow: 5px 7px 0 rgba(0,0,0,.38), 0 0 14px rgba(176,114,255,.22); }
.sbx-card .bk-spine { width: 16%; background: linear-gradient(90deg, #1a1028 0%, #5c3488 42%, #2a1844 100%); box-shadow: inset -3px 0 0 rgba(255,255,255,.12); }
.sbx-card .bk-face { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 8px 8px 6px; position: relative; background:
  linear-gradient(160deg, rgba(255,255,255,.28), transparent 36%),
  linear-gradient(180deg, #f6e7ff, #d7b4f2 55%, #b98adf); }
.sbx-card .cov.teal .bk-spine { background: linear-gradient(90deg, #062830, #14788a 42%, #08343c); }
.sbx-card .cov.teal .bk-face { background: linear-gradient(160deg, rgba(255,255,255,.28), transparent 36%), linear-gradient(180deg, #e7fbff, #9ee7f2 55%, #5ec4d4); }
.sbx-card .cov.rose .bk-spine { background: linear-gradient(90deg, #3a1020, #a83a58 42%, #4a1428); }
.sbx-card .cov.rose .bk-face { background: linear-gradient(160deg, rgba(255,255,255,.3), transparent 36%), linear-gradient(180deg, #ffe7ef, #f2b4c8 55%, #e08aa6); }
.sbx-card .cov.gold .bk-spine { background: linear-gradient(90deg, #3a2a08, #b8860b 42%, #4a3408); }
.sbx-card .cov.gold .bk-face { background: linear-gradient(160deg, rgba(255,255,255,.34), transparent 36%), linear-gradient(180deg, #fff6d8, #f0d48a 55%, #e0b85a); }
.sbx-card .bk-name { font-family: 'Caveat', cursive; font-size: 20px; line-height: 1.05; text-align: center; color: #2a1840; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: break-word; }
.sbx-card .bk-rule { width: 62%; height: 1px; background: rgba(42,24,64,.4); border-radius: 1px; }
.sbx-card .bk-face::after { content: ''; position: absolute; right: 7px; bottom: 7px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #ff5b86 60%, #8b1238); box-shadow: 0 0 6px rgba(255,91,134,.7); }
.sbx-card .meta { padding: 10px 12px 12px; }
.sbx-card b { display: block; font-size: 15px; }
.sbx-card small { color: var(--muted, #9aa4b2); font-size: 12px; }
.sbx-card.fin { opacity: .78; }

.sbv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 12px; flex-wrap: wrap; position: relative; z-index: 5; } /* under the sticky header (z-index 20) so Add/Undo never cover search or the People row */
.sbv-bar .cdn-newrow { flex: 0 0 auto; z-index: 2; position: relative; }
.sbv-bar .cdn-menu { z-index: 3; }
.sbv-nav { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 40px; }
.sbv-nav b { font-size: 13px; color: var(--muted, #aab); font-weight: 700; letter-spacing: .02em; }
.sb-lock { width: 36px; height: 36px; min-width: 36px; padding: 0; border-radius: 12px; flex: none; display: inline-grid; place-items: center; cursor: pointer; color: var(--accent); background: transparent; border: 1.5px solid var(--accent); box-shadow: 0 0 8px rgba(var(--acc-rgb), .5), inset 0 0 8px rgba(var(--acc-rgb), .2); }
.sb-lock svg { width: 18px; height: 18px; display: block; filter: drop-shadow(0 0 4px rgba(var(--acc-rgb), .85)); }
.sb-lock.is-locked { color: #fff; background: var(--accent-fill); border-color: transparent; box-shadow: 0 0 12px rgba(var(--acc-rgb), .8), 0 0 2px rgba(var(--acc-rgb), .95); }
.sbv-pagewrap { position: relative; z-index: 1; } /* ds-v762: under .sbv-bar so menus paint on top */
.sbv-page { position: relative; min-height: 62vh; border-radius: 18px; background:
  radial-gradient(120% 80% at 10% 0%, rgba(255,94,200,.08), transparent 50%),
  radial-gradient(100% 70% at 90% 100%, rgba(62,232,255,.1), transparent 45%),
  linear-gradient(180deg, #2a2138, #1b1526);
  border: 1px solid rgba(255,255,255,.08); overflow: hidden; touch-action: none; }
.sbv-page.sb-glow-custom { --accent: var(--sb-glow); --accent-2: var(--sb-glow); --acc-rgb: var(--sb-glow-rgb); }
.sbv-page[data-locked] .sbv-piece, .sbv-page[data-locked] .sbv-stk { cursor: default; }
@media (min-width: 900px) {
  .sbv-page { min-height: 70vh; cursor: default; }
  .sbv-piece, .sbv-stk { cursor: grab; }
  .sbv-piece.dragging, .sbv-stk.dragging { cursor: grabbing; z-index: 90 !important; }
}
.sbv-piece, .sbv-stk, .sbv-piece *, .sbv-stk * { touch-action: none; }
.sbv-piece, .sbv-stk { position: absolute; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); user-select: none; -webkit-user-select: none; z-index: var(--z, 1); }
/* ds-v761: tap-to-enlarge removed — size is --w / pinch only */
.sbv-piece.shrunk, .sbv-piece.exp { transform: translate(-50%, -50%) rotate(var(--r, 0deg)); }
.sbv-note { width: var(--w, 42%); min-width: 0; padding: 12px 12px 14px; border-radius: 2px; background: var(--pp, #fff3a8); color: #2a2418; box-shadow: 2px 3px 0 rgba(0,0,0,.18), 0 0 16px rgba(255,243,168,.25); font-family: 'Caveat', cursive; font-size: calc(var(--sz, 42) * 0.48px); line-height: 1.2; text-align: left; border: 0; }
.sbv-note.sb-font-caveat { font-family: 'Caveat', cursive; }
.sbv-note.sb-font-dafoe { font-family: 'Mr Dafoe', cursive; }
.sbv-note.sb-font-elsie { font-family: 'Elsie Swash', cursive; }
.sbv-note.sb-font-sail { font-family: 'Sail', cursive; }
.sbv-note.sb-font-kelly { font-family: 'Kelly Slab', serif; }
.sbv-note.sb-font-lemon { font-family: 'Lemon', serif; }
.sbv-note.sb-font-rocker { font-family: 'New Rocker', cursive; }
.sbv-note.sb-font-griffy { font-family: 'Griffy', cursive; }
.sbv-note.sb-font-jolly { font-family: 'Jolly Lodger', cursive; }
.sbv-note.sb-font-chela { font-family: 'Chela One', cursive; }
.sbv-note.sb-font-montserrat { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 700; font-size: calc(var(--sz, 42) * 0.36px); }
.sbv-note .pin { display: block; width: 0.6em; height: 0.6em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #ff5b86 60%, #8b1238); margin: -0.2em auto 0.35em; box-shadow: 0 0 8px rgba(255,91,134,.6); }
.sbv-photo { width: var(--w, 42%); background: #f7f2e8; padding: 8px 8px 6px; border-radius: 3px; box-shadow: 2px 4px 0 rgba(0,0,0,.2), 0 0 14px rgba(176,114,255,.2); border: 0; color: inherit; }
.sbv-photo img { display: block; width: 100%; height: auto; border-radius: 2px; pointer-events: none; }
.sbv-photo .ttl { display: block; margin-top: 6px; text-align: center; font-size: calc(var(--sz, 42) * 0.43px); color: #2a2418; line-height: 1.1; overflow-wrap: anywhere; }
.sbv-stk { width: calc(72px * var(--sc, 1)); height: calc(72px * var(--sc, 1)); display: grid; place-items: center; background: transparent; border: 0; padding: 0; filter: drop-shadow(0 0 8px rgba(176,114,255,.35)); }
.sbv-stk.loc { width: calc(84px * var(--sc, 1)); height: auto; min-height: calc(84px * var(--sc, 1)); z-index: calc(var(--z, 50) + 220); } /* ds-v766: waypoints sit in front of the glow SVG (z 80 / 85) */
.sbv-stk.loc.dragging { z-index: 1300 !important; }
.sbv-stk.state { width: calc(148px * var(--sc, 1)); height: calc(148px * var(--sc, 1)); }
.sbv-stk.state img { max-height: 100%; height: 100%; width: 100%; object-fit: contain; }
.sbv-stk img { width: 100%; height: auto; max-height: calc(84px * var(--sc, 1)); object-fit: contain; pointer-events: none; }
.sbv-stk .emo { font-size: calc(48px * var(--sc, 1)); line-height: 1; }
.sbv-lab { display: block; margin-top: 2px; max-width: calc(110px * var(--sc, 1)); padding: 2px 6px; border-radius: 6px; background: rgba(10,8,16,.78); color: #fff; font-size: calc(11px * var(--sc, 1)); font-weight: 700; line-height: 1.2; text-align: center; overflow-wrap: anywhere; box-shadow: 0 0 8px rgba(var(--acc-rgb),.35); }

.sb-swatches { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.sb-swatches label { width: 28px; height: 28px; border-radius: 6px; background: var(--sw); display: grid; place-items: center; border: 1px solid rgba(0,0,0,.15); cursor: pointer; }
.sb-swatches input { accent-color: #333; }
.sb-bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.sb-bg-swatch { min-height: 56px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(135deg, #2a2138, #1b1526); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 8px; }
.sb-bg-swatch[style*="--sw"] { background: var(--sw); color: #1a1220; text-shadow: 0 1px 0 rgba(255,255,255,.25); }
.sb-bg-swatch.on { outline: 2px solid var(--accent); box-shadow: 0 0 12px rgba(var(--acc-rgb),.45); }

.sb-pack { position: fixed; inset: 0; z-index: 80; background: rgba(8,6,14,.72); display: flex; align-items: flex-end; justify-content: center; }
.sb-pack .sheet { width: min(560px, 100%); max-height: 88vh; overflow-x: hidden; overflow-y: auto; touch-action: pan-x pan-y; background: #1c1528; border-radius: 22px 22px 0 0; padding: 14px 14px 28px; border: 1px solid rgba(176,114,255,.28); box-shadow: 0 -10px 40px rgba(176,114,255,.2); }
.sb-pack-rail { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; touch-action: pan-x; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x proximity; margin: 0 0 10px; padding-bottom: 2px; }
.sb-pack-rail button { flex: none; scroll-snap-align: start; touch-action: pan-x; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sb-pack-rail button.on { background: var(--accent); color: #1a1020; border-color: transparent; }
@media (min-width: 900px) { .sb-pack { align-items: center; } .sb-pack .sheet { border-radius: 18px; max-height: 80vh; } }
.sb-pack-sel { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #b9a8d8; margin-bottom: 8px; }
.sb-pack-sel select { font: inherit; font-weight: 700; color: var(--accent); background: rgba(var(--acc-rgb),.08); border: 1px solid rgba(var(--acc-rgb),.4); border-radius: 12px; padding: 10px 12px; }
.sb-pack-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, 104px); grid-auto-columns: 104px; gap: 10px; width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; touch-action: pan-x; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 4px; }
.sb-pack-grid button { width: 104px; height: 104px; scroll-snap-align: start; touch-action: pan-x; aspect-ratio: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); padding: 10px; cursor: pointer; }
.sb-pack-grid button:hover { border-color: rgba(var(--acc-rgb),.5); }
.sb-pack-grid img { width: 100%; height: 100%; object-fit: contain; }

.sb-import-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; margin: 10px 0; }
.sb-import-row { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: inherit; border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; }
.sb-import-row:hover { border-color: rgba(var(--acc-rgb),.45); background: rgba(var(--acc-rgb),.1); }
.sb-import-row b { display: block; }
.sb-import-row small { color: #b9a8d8; }
.sb-import-cov { width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, rgba(62,232,255,.25), rgba(176,114,255,.3)); background-size: cover; background-position: center; flex: none; }

.sb-tl { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.sb-tl-row { display: flex; flex-direction: column; gap: 6px; text-align: left; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); border-radius: 14px; padding: 10px 12px; color: inherit; font: inherit; cursor: pointer; }
.sb-tl-row:hover { border-color: rgba(var(--acc-rgb),.4); }
.sb-tl-row small { color: #b9a8d8; font-size: 12px; }
.sb-tl-note { display: block; padding: 10px 12px; border-radius: 4px; background: var(--pp, #fff3a8); color: #2a2418; font-family: 'Caveat', cursive; font-size: 18px; }
.sb-tl-photo { display: flex; gap: 10px; align-items: center; }
.sb-tl-photo img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.sb-tl-photo b { color: #fff; }
.sb-tl-stk { display: flex; gap: 8px; align-items: center; }
.sb-tl-stk img { width: 40px; height: 40px; object-fit: contain; }

.sbp { display: flex; flex-direction: column; gap: 0; align-items: stretch; padding: 0; overflow: hidden; border-radius: 14px; background: rgba(176,114,255,.08); border: 1px solid rgba(176,114,255,.25); }
.sbp .cov { width: 72px; height: 72px; border-radius: 10px; background: linear-gradient(135deg, rgba(62,232,255,.25), rgba(176,114,255,.3)); background-size: cover; background-position: center; flex: none; }
.sbp b { display: block; }
.sbp small { color: #b9a8d8; }
.sbp-meta { display: block; padding: 10px 12px 12px; }
.sbp-flip { position: relative; aspect-ratio: 4 / 5; background: #140e1e; overflow: hidden; touch-action: pan-y; }
.sbp-stage, .sbr-stage { position: relative; width: 100%; height: 100%; overflow: hidden; perspective: 1600px; touch-action: pan-y; }
.sbr-leaf { position: absolute; inset: 0; transition: transform .48s cubic-bezier(.22,.7,.25,1), opacity .4s ease; transform-origin: 50% 50%; will-change: transform; }
.sbr-leaf.from-right { transform: translateX(100%) rotateY(-14deg); }
.sbr-leaf.from-left { transform: translateX(-100%) rotateY(14deg); }
.sbr-leaf.to-left { transform: translateX(-100%) rotateY(14deg); opacity: 0; }
.sbr-leaf.to-right { transform: translateX(100%) rotateY(-14deg); opacity: 0; }
.sbr-page { position: relative; width: 100%; height: 100%; min-height: 100%; border-radius: 0; overflow: hidden; touch-action: pan-y; background:
  radial-gradient(120% 80% at 10% 0%, rgba(255,94,200,.08), transparent 50%),
  radial-gradient(100% 70% at 90% 100%, rgba(62,232,255,.1), transparent 45%),
  linear-gradient(180deg, #2a2138, #1b1526); }
.sbr-cover { background-color: #1a1228; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.sbr-cover-veil { width: 100%; padding: 18px 16px 20px; background: linear-gradient(180deg, transparent, rgba(8,6,14,.72)); }
.sbr-cover-veil b { font-size: 22px; line-height: 1.15; text-shadow: 0 1px 8px rgba(0,0,0,.7), 0 0 18px rgba(176,114,255,.45); }
.sbr-cover-empty { display: grid; place-items: center; text-align: center; padding: 20px; }
.sbr-prev, .sbr-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; color: #fff; background: rgba(12,8,20,.55); box-shadow: 0 0 16px rgba(176,114,255,.35); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sbr-prev:disabled, .sbr-next:disabled { opacity: .28; pointer-events: none; }
.sbp-flip .sbr-prev { left: 8px; }
.sbp-flip .sbr-next { right: 8px; }
.sbr-expand { position: absolute; top: 10px; right: 10px; z-index: 4; width: 36px; height: 36px; border-radius: 12px; border: 0; color: #fff; background: rgba(12,8,20,.55); box-shadow: 0 0 12px rgba(62,232,255,.28); cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sbr-expand svg { width: 16px; height: 16px; display: block; }
.sbr-ind-row { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.sbr-ind-row .sbr-dots { pointer-events: auto; }
.sbp-flip .sbr-cover-veil { display: none; } /* title already sits under the card */
.sbr-count { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .02em; background: rgba(8,6,14,.6); padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sbr-dots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.sbr-dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.38); cursor: pointer; }
.sbr-dots button.on { background: var(--accent, #ff4fd8); box-shadow: 0 0 8px rgba(var(--acc-rgb, 255,79,216), .8); }
.sbr-portal .sbv-piece, .sbr-portal .sbv-stk, .sbr-portal .sbv-piece *, .sbr-portal .sbv-stk *,
.sbp-flip .sbv-piece, .sbp-flip .sbv-stk, .sbp-flip .sbv-piece *, .sbp-flip .sbv-stk * {
  touch-action: pan-y; pointer-events: none; cursor: default;
}
.sbr-portal, .sbp-flip, .sbr-page, .sbr-leaf, .sbr-stage { touch-action: pan-y; }
body.sbr-open header.top, body.sbr-open nav.bottom { display: none !important; }
body.sbr-open { overflow: hidden; }
.sbr-portal { position: fixed; inset: 0; width: 100vw; width: 100dvw; height: 100vh; height: 100dvh; max-width: none; box-sizing: border-box; z-index: 70; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: 100%; background:
  radial-gradient(80% 50% at 20% 0%, rgba(255,79,216,.16), transparent 55%),
  radial-gradient(70% 50% at 90% 100%, rgba(62,232,255,.12), transparent 50%),
  #0c0814; color: #fff; }
.sbr-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 8px 16px; z-index: 4; }
.sbr-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sbr-who b { font-size: 17px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbr-who .sbr-count { color: #b9a8d8; font-weight: 700; font-size: 12px; }
.sbr-x { width: 40px; height: 40px; border-radius: 50%; border: 0; color: #fff; background: rgba(255,255,255,.08); display: grid; place-items: center; cursor: pointer; flex: none; }
.sbr-x svg { width: 18px; height: 18px; display: block; }
.sbr-mid { position: relative; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px; box-sizing: border-box; }
.sbr-frame { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; }
.sbr-portal .sbr-stage { width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: 4 / 5; margin: 0; min-height: 0; box-sizing: border-box; border-radius: 18px; box-shadow: 0 0 40px rgba(176,114,255,.22), 0 12px 40px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); }
.sbr-portal .sbr-page { border-radius: 18px; }
.sbr-portal .sbv-page { min-height: 0; height: 100%; }
.sbr-portal .sbr-prev, .sbr-portal .sbr-next { position: static; transform: none; left: auto; right: auto; margin: 0; top: auto; flex: none; width: 40px; height: 40px; z-index: 4; }
.sbr-foot { padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); z-index: 4; }
.page-head .sbr-to-view { margin-left: auto; margin-right: 8px; }
@media (max-width: 1023px) {
  .sbr-top { padding: calc(6px + env(safe-area-inset-top)) 8px 4px 10px; gap: 8px; }
  .sbr-who { flex-direction: row; align-items: baseline; gap: 8px; }
  .sbr-who b { font-size: 15px; }
  .sbr-x { width: 36px; height: 36px; }
  .sbr-foot { padding: 4px 12px calc(8px + env(safe-area-inset-bottom)); }
  .sbr-mid { padding: 8px; }
  .sbr-portal .sbr-frame { gap: 0; width: 100%; height: 100%; }
  .sbr-portal .sbr-stage { aspect-ratio: auto; border-radius: 14px; }
  .sbr-portal .sbr-page { border-radius: 14px; }
  .sbr-portal .sbr-prev, .sbr-portal .sbr-next {
    position: absolute; top: 50%; transform: translateY(-50%); left: auto; right: auto;
    width: 32px; height: 32px; font-size: 20px; margin: 0; flex: none; z-index: 4;
    background: rgba(12, 8, 20, .4); box-shadow: 0 0 10px rgba(176,114,255,.25); opacity: .8;
  }
  .sbr-portal .sbr-prev { left: 4px; }
  .sbr-portal .sbr-next { right: 4px; }
  .sbr-portal .sbr-prev:disabled, .sbr-portal .sbr-next:disabled { opacity: .28; }
}
@media (min-width: 1024px) {
  .sbp-flip {
    width: min(100%, 520px);
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 5;
    margin: 10px auto 0;
    border-radius: 12px;
  }
  .sbp-flip, .sbr-portal .sbr-stage { cursor: grab; }
  .sbp-flip:active, .sbr-portal .sbr-stage:active { cursor: grabbing; }
  .sbp-flip:focus { outline: none; }
  .sbp-flip:focus-visible { box-shadow: 0 0 0 2px var(--accent, #ff4fd8); }
  .sbr-prev, .sbr-next, .sbr-expand, .sbr-x { cursor: pointer; }
  .sbr-portal .sbr-prev, .sbr-portal .sbr-next { position: static; transform: none; left: auto; right: auto; width: 44px; height: 44px; opacity: 1; }
}

/* Piece toolbar is portaled to the body (position: fixed) so it paints above .sbv-bar (z-index 60) and is not clipped by .sbv-page overflow. */
.sbv-tools { position: fixed; z-index: 65; transform: translate(-50%, calc(-100% - 52px)); display: flex; gap: 4px; align-items: center; padding: 4px 6px; border-radius: 999px; background: rgba(20,16,30,.94); box-shadow: 0 4px 18px rgba(0,0,0,.45), 0 0 12px rgba(var(--acc-rgb),.25); max-width: min(92vw, 520px); flex-wrap: wrap; justify-content: center; }
.sbv-tools-wide { border-radius: 16px; }
.sbv-tools button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; display: grid; place-items: center; padding: 0; flex: none; }
.sbv-tools button.sbv-edit { width: auto; padding: 0 10px; border-radius: 999px; font-size: 13px; }
.sbv-tools button svg { width: 18px; height: 18px; display: block; }
.sbv-tools button:hover { background: rgba(255,255,255,.22); }
.sbv-tools button[data-d] { background: rgba(255,59,79,.25); }
.sbv-tools .sbv-sl { display: flex; align-items: center; margin: 0; padding: 0 2px; }
.sbv-tools .sbv-sl input[type=range] { width: 72px; height: 22px; accent-color: var(--accent); cursor: pointer; }
.sb-trash { position: fixed; z-index: 80; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(18,12,24,.94); border: 1.5px solid rgba(255,80,96,.75); color: #ff5b6a; box-shadow: 0 8px 24px rgba(0,0,0,.35); pointer-events: none; }
.sb-trash svg { width: 30px; height: 30px; display: block; }
.sb-trash.hot { background: rgba(255,59,79,.28); transform: translateX(-50%) scale(1.06); }
.sbv-lines, .sbv-draw { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; z-index: 40; pointer-events: none; }
.sbv-lines .glo-hit { pointer-events: stroke; }
.sbv-page.sbv-drawing { cursor: crosshair; }
.sbv-page.sbv-drawing .sbv-piece, .sbv-page.sbv-drawing .sbv-stk { pointer-events: none; }
/* ds-v764: free text + photo frames (square/round/oval/heart cutout) */
.sbv-text { width: max-content; max-width: 90%; min-width: 0; padding: 4px 6px; border: 0; background: transparent; color: var(--tc, #ffffff); text-align: center; box-shadow: none; font-size: calc(var(--tw, 36) * 0.78px); line-height: 1.15; overflow-wrap: anywhere; }
.sbv-text .txt { display: block; text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.65), 0 0 1px rgba(255,255,255,.45); }
.sbv-text.sb-font-caveat { font-family: 'Caveat', cursive; }
.sbv-text.sb-font-dafoe { font-family: 'Mr Dafoe', cursive; }
.sbv-text.sb-font-elsie { font-family: 'Elsie Swash', cursive; }
.sbv-text.sb-font-sail { font-family: 'Sail', cursive; }
.sbv-text.sb-font-kelly { font-family: 'Kelly Slab', serif; }
.sbv-text.sb-font-lemon { font-family: 'Lemon', serif; }
.sbv-text.sb-font-rocker { font-family: 'New Rocker', cursive; }
.sbv-text.sb-font-griffy { font-family: 'Griffy', cursive; }
.sbv-text.sb-font-jolly { font-family: 'Jolly Lodger', cursive; }
.sbv-text.sb-font-chela { font-family: 'Chela One', cursive; }
.sbv-text.sb-font-montserrat { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 700; }
.sbv-photo .sbv-ph { display: block; width: 100%; overflow: hidden; border-radius: 2px; }
.sbv-photo .sbv-ph img { display: block; width: 100%; height: auto; border-radius: inherit; pointer-events: none; }
.sbv-photo.fr-square .sbv-ph { border-radius: 0; }
.sbv-photo.fr-round .sbv-ph { border-radius: 50%; aspect-ratio: 1; }
.sbv-photo.fr-round .sbv-ph img { width: 100%; height: 100%; object-fit: cover; }
.sbv-photo.fr-oval .sbv-ph { border-radius: 50%; aspect-ratio: 3/4; }
.sbv-photo.fr-oval .sbv-ph img { width: 100%; height: 100%; object-fit: cover; }
.sbv-photo.fr-heart .sbv-ph {
  border-radius: 0; aspect-ratio: 1;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path fill='black' d='M50 88 C20 65 4 45 4 28 A20 20 0 0 1 50 22 A20 20 0 0 1 96 28 C96 45 80 65 50 88Z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path fill='black' d='M50 88 C20 65 4 45 4 28 A20 20 0 0 1 50 22 A20 20 0 0 1 96 28 C96 45 80 65 50 88Z'/></svg>");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.sbv-photo.fr-heart .sbv-ph img { width: 100%; height: 100%; object-fit: cover; }
.sbv-photo.fr-round, .sbv-photo.fr-oval, .sbv-photo.fr-heart { background: transparent; padding: 4px; box-shadow: none; }
.sbv-photo.fr-round .ttl, .sbv-photo.fr-oval .ttl, .sbv-photo.fr-heart .ttl { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55); }


/* ds-v766: Windows paints the native option menu white and ignores a dark option background.
   Light option text (ds-v765) disappeared on that white menu except while hovered.
   Dark option text stays readable. The closed control keeps its own color. */
select option, select optgroup { background-color: #fff; color: #1a1220; }
html[data-theme="light"] select option,
html[data-theme="light"] select optgroup { background-color: #fff; color: #241c2f; }
.cdn-form select { color: var(--text); background: var(--field); color-scheme: light; }
.cdn-form select option, .cdn-form select optgroup,
.sb-pack-sel select option, .clk-sort select option, .clk-sort select optgroup { background-color: #fff; color: #1a1220; }
html[data-theme="light"] .cdn-form select option,
html[data-theme="light"] .cdn-form select optgroup { background-color: #fff; color: #241c2f; }
.sb-emo-tabs { display: flex; gap: 6px; overflow: auto; margin: 0 0 8px; }
.sb-emo-tabs button { flex: none; border: 0; border-radius: 999px; padding: 8px 12px; min-height: 36px; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sb-emo-tabs button.on { background: var(--accent); color: #1a1020; }
.sb-emo-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-height: 42vh; overflow: auto; }
.sb-emo-b { font-size: 28px; line-height: 1; min-height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.06); cursor: pointer; }
.sb-emo-b:hover, .sb-emo-b:focus-visible { background: rgba(var(--acc-rgb), .28); outline: none; }
@media (max-width: 520px) { .sb-emo-grid { grid-template-columns: repeat(6, 1fr); } }
html[data-theme="light"] .sb-emo-tabs button { color: #241c2f; background: #efe8f6; }
html[data-theme="light"] .sb-emo-tabs button.on { color: #fff; background: var(--accent); }
html[data-theme="light"] .sb-emo-b { background: #f4eef8; }

/* ds-v774: pressed state for buttons, cards, rows, back links and tabs. The class is set on pointerdown
   because iOS often never applies :active. Scale stays off the logo. The glow follows the member's accent. */
.tap-press:not(.logo):not(.side-logo) {
  transform: scale(0.96);
  filter: brightness(1.16);
  box-shadow: 0 0 0 1.5px var(--accent), 0 0 16px rgba(var(--acc-rgb), .7), inset 0 0 12px rgba(var(--acc-rgb), .22);
  transition: transform .06s ease-out, filter .06s ease-out, box-shadow .06s ease-out;
}
a:not(.logo):not(.side-logo):active, button:active, .phx-row:active, .back:active, .lx-row:active, .wip-card:active, .notif:active, [role="button"]:active {
  filter: brightness(1.14);
  box-shadow: 0 0 0 1.5px var(--accent), 0 0 14px rgba(var(--acc-rgb), .6);
}
/* Feed photos are a scroll surface. A finger held on the image to move the
   board must not get the pressed brightness or glow that links and buttons use. */
article.post a:has(.post-img):active,
article.post a.pc-grid:active,
article.post a.fin-live-a:active,
.embed a:has(.post-img):active,
.embed a.pc-grid:active {
  filter: none;
  box-shadow: none;
}
.bottom a.tap-chosen:not(.plus), .bottom a.tap-press:not(.plus) {
  color: #fff;
  text-shadow: 0 0 6px rgba(var(--acc-rgb), .9), 0 0 14px rgba(var(--acc-rgb), .5);
}
.bottom a.tap-chosen:not(.plus) svg, .bottom a.tap-press:not(.plus) svg {
  color: var(--accent);
  filter: drop-shadow(0 0 4px rgba(var(--acc-rgb), .95)) drop-shadow(0 0 10px rgba(var(--acc-rgb), .5));
}
.bottom a.tap-chosen:not(.plus) .nav-avatar, .bottom a.tap-press:not(.plus) .nav-avatar {
  border: 2px solid var(--accent); box-shadow: 0 0 7px rgba(var(--acc-rgb), .9), 0 0 14px rgba(var(--acc-rgb), .35);
}
a.back { min-height: 44px; padding: 10px 14px 10px 2px; box-sizing: border-box; }
.phx-card::after, .phx-card:after { pointer-events: none; }
#tapWait { position: fixed; left: 0; right: 0; top: 0; z-index: 80; height: 3px; pointer-events: none;
  background: var(--accent); box-shadow: 0 0 12px var(--accent), 0 0 22px rgba(var(--acc-rgb), .65);
  transform-origin: 0 50%; animation: tapWait 0.9s ease-in-out infinite; }
@keyframes tapWait { 0% { transform: scaleX(.12); opacity: .65; } 50% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(.2); opacity: .75; } }
@media (prefers-reduced-motion: reduce) {
  .tap-press:not(.logo):not(.side-logo) { transform: none; transition: none; }
  #tapWait { animation: none; transform: none; }
}

/* ---------- startup splash (preview/splash-flicker-min) ---------- */
/* Overlay is flex from first paint (critical CSS + this block). Hidden only via [hidden]
   / html.ds-splash-done so the body grid never flashes through.
   First frame is the lit DS gem on #131119, matching the iOS launch image.
   The ds-v795 motion is unchanged (1s scale-in, glint, 1s glow pulse, 280ms fade).
   Glow is pre-rendered; only transform and opacity are animated on composited layers. */
.ds-splash {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #131119;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.ds-splash[hidden],
html.ds-splash-done .ds-splash { display: none !important; }
html.ds-splash-on { overflow: hidden; }
html.ds-splash-on body { background-image: none; }
.ds-splash-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ds-splash-gem-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(220px, 56vw);
  height: min(220px, 56vw);
  transform: translate(-50%, -50%) translateZ(0);
  pointer-events: none;
  will-change: transform;
}
/* Pre-rendered sprites are a 420px box around a 220px gem, cropped tight to the peak glow. */
.ds-splash-gem-stack {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% * 420 / 220);
  height: calc(100% * 420 / 220);
  transform: translate(-50%, -50%) translateZ(0);
  pointer-events: none;
}
.ds-splash-gem,
.ds-splash-glow {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateZ(0);
  will-change: opacity;
  backface-visibility: hidden;
  pointer-events: none;
}
.ds-splash-gem { opacity: 1; }
.ds-splash-glow { opacity: 0; }
/* Upload glow textures to the GPU off-screen so the first is-gem frame is already composited. */
.ds-splash.is-warming .ds-splash-glow {
  opacity: 1;
  transform: translate3d(-200vw, 0, 0);
}
.ds-splash.is-gem .ds-splash-gem-wrap {
  animation: ds-splash-gem-in 1s cubic-bezier(.22, .7, .3, 1) both;
}
.ds-splash.is-gem .ds-splash-gem { opacity: 0; }
.ds-splash.is-gem .ds-splash-glow-0 {
  animation: ds-splash-glow-0 1s ease both;
}
.ds-splash.is-gem .ds-splash-glow-peak {
  animation: ds-splash-glow-peak 1s ease both;
}
.ds-splash.is-gem .ds-splash-glow-end {
  animation: ds-splash-glow-end 1s ease both;
}
@keyframes ds-splash-gem-in {
  0% { transform: translate(-50%, -50%) translateZ(0) scale(.96); }
  55% { transform: translate(-50%, -50%) translateZ(0) scale(1.03); }
  100% { transform: translate(-50%, -50%) translateZ(0) scale(1); }
}
@keyframes ds-splash-glow-0 {
  0% { opacity: 1; }
  45% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes ds-splash-glow-peak {
  0% { opacity: 0; }
  45% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes ds-splash-glow-end {
  0% { opacity: 0; }
  45% { opacity: 0; }
  100% { opacity: 1; }
}
/* Glint is masked to the gem; only the highlight bar moves, so it stays on the facets. */
.ds-splash-glint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: url('/icons/splash-gem-mask.png?v=ds-v796');
  mask-image: url('/icons/splash-gem-mask.png?v=ds-v796');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  overflow: hidden;
}
.ds-splash-glint::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 22%, rgba(255,255,255,.18) 38%, rgba(255,255,255,.8) 50%, rgba(255,255,255,.18) 62%, transparent 78%);
  transform: translateX(-90%) translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}
.ds-splash.is-gem .ds-splash-glint::after {
  animation: ds-splash-glint .65s ease-in-out .2s both;
}
@keyframes ds-splash-glint {
  0% { transform: translateX(-90%) translateZ(0); }
  100% { transform: translateX(90%) translateZ(0); }
}
.ds-splash-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ds-splash.is-out,
.ds-splash.is-skip {
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}

/* Reduced motion: gem on dark, then a short fade into the app. */
html.ds-splash-fade .ds-splash-glint,
html.ds-splash-fade .ds-splash-glint::after { animation: none !important; display: none; }
html.ds-splash-fade .ds-splash-gem-wrap,
html.ds-splash-fade .ds-splash-gem,
html.ds-splash-fade .ds-splash-glow { animation: none !important; }
html.ds-splash-fade .ds-splash-gem-wrap { transform: translate(-50%, -50%) translateZ(0); }
html.ds-splash-fade .ds-splash.is-out,
html.ds-splash-fade .ds-splash.is-fade.is-out { transition: opacity .32s ease; }
@media (prefers-reduced-motion: reduce) {
  .ds-splash-glint,
  .ds-splash-glint::after { animation: none !important; display: none; }
  .ds-splash.is-gem .ds-splash-gem-wrap,
  .ds-splash.is-gem .ds-splash-gem,
  .ds-splash.is-gem .ds-splash-glow { animation: none !important; }
}

/* Kit date picker: month and year dropdowns so a past year is one tap away */
.kdate { display: block; width: 100%; min-width: 0; }
.date-row .kdate { flex: 1; }
.kdate-btn {
  width: 100%; box-sizing: border-box; background: var(--field); color: var(--text);
  border: 1.5px solid var(--field-border); border-radius: 12px; padding: 12px 14px;
  font: inherit; font-size: max(16px, calc(16px * var(--ts, 1))); min-height: 46px;
  text-align: left; cursor: pointer;
}
.kdate-btn:focus, .kdate-btn:focus-visible, .kdate-btn[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .18), 0 0 14px rgba(var(--acc-rgb), .25);
  outline: none;
}
.kdate-ph { color: var(--field-placeholder, var(--muted)); font-weight: 400; }
.wish-gotit .kdate-btn { min-height: 40px; padding: 8px 12px; }
.kdate-pop {
  position: fixed; z-index: 120; box-sizing: border-box;
  background: #16121e; color: var(--text);
  border: 1px solid rgba(var(--acc-rgb), .45); border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,.65), 0 0 22px rgba(var(--acc-rgb), .22);
  padding: 10px;
}
.kdate-head { display: flex; gap: 8px; margin-bottom: 8px; position: relative; z-index: 2; }
.kdate-sel {
  flex: 1; min-width: 0; min-height: 42px; padding: 8px 10px;
  border-radius: 11px; border: 1.5px solid var(--field-border);
  background: var(--field); color: var(--text);
  font: inherit; font-size: max(16px, calc(16px * var(--ts, 1))); font-weight: 650;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  cursor: pointer;
}
.kdate-sel[aria-expanded="true"], .kdate-sel:focus, .kdate-sel:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .16), 0 0 10px rgba(var(--acc-rgb), .25);
  outline: none;
}
.kdate-caret { color: var(--accent); font-size: 12px; line-height: 1; filter: drop-shadow(0 0 4px rgba(var(--acc-rgb), .7)); }
.kdate-menu {
  position: absolute; left: 10px; right: 10px; top: 54px; z-index: 3;
  max-height: 240px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #1c1728; border: 1px solid rgba(var(--acc-rgb), .4); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.55), 0 0 14px rgba(var(--acc-rgb), .2);
  padding: 4px;
}
.kdate-opt {
  display: block; width: 100%; text-align: left; padding: 10px 12px; min-height: 40px;
  border-radius: 9px; font: inherit; font-size: calc(15px * var(--ts, 1)); color: var(--text);
  cursor: pointer;
}
.kdate-opt:hover, .kdate-opt:focus { background: rgba(var(--acc-rgb), .16); outline: none; }
.kdate-opt.on { background: rgba(var(--acc-rgb), .22); color: #fff; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .45); }
.kdate-opt:disabled { opacity: .35; cursor: default; }
.kdate-dow {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  margin: 2px 0 4px; color: var(--muted);
  font-size: calc(11px * var(--ts, 1)); font-weight: 700; text-align: center; letter-spacing: .04em;
}
.kdate-dow span { padding: 4px 0; }
.kdate-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.kdate-pad { min-height: 40px; }
.kdate-day {
  min-height: 40px; border-radius: 10px; font: inherit;
  font-size: calc(14.5px * var(--ts, 1)); font-variant-numeric: tabular-nums;
  color: var(--text); cursor: pointer;
}
.kdate-day:hover, .kdate-day:focus { background: rgba(var(--acc-rgb), .16); outline: none; }
.kdate-day.today { box-shadow: inset 0 0 0 1.5px rgba(var(--acc-rgb), .7); }
.kdate-day.on {
  background: var(--accent-fill); color: #fff; font-weight: 700;
  box-shadow: 0 0 10px rgba(var(--acc-rgb), .45);
}
.kdate-day:disabled { opacity: .28; cursor: default; box-shadow: none; }
.kdate-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.kdate-foot button {
  min-height: 38px; padding: 6px 12px; border-radius: 999px; font: inherit;
  font-size: calc(13.5px * var(--ts, 1)); font-weight: 650; color: var(--accent);
  border: 1px solid rgba(var(--acc-rgb), .45); cursor: pointer;
}
.kdate-foot button:hover, .kdate-foot button:focus { background: rgba(var(--acc-rgb), .14); outline: none; }
.kdate-foot button:disabled { opacity: .35; cursor: default; }
html[data-theme="light"] .kdate-pop { background: #f7f2fb; }
html[data-theme="light"] .kdate-menu { background: #fff; }

/* Preview (kit shop link): Fill in from a shop link, at the top of Add a kit */
.kl-box { border: 1.5px solid var(--accent-soft); border-radius: 16px; padding: 12px; margin: 0 0 14px; background: rgba(var(--acc-rgb), .07); box-shadow: var(--glow-soft, none); }
.kl-head b { display: block; font-size: calc(15px * var(--ts, 1)); }
.kl-head small { display: block; color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); margin-top: 2px; line-height: 1.35; }
.kl-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.kl-row input { flex: 1; min-width: 0; }
.kl-row .btn { flex: none; min-width: 74px; }
.kl-res { margin-top: 10px; }
.kl-wait { margin: 0; color: var(--muted); font-size: calc(13px * var(--ts, 1)); }
.kl-err { margin: 0; color: var(--text); font-size: calc(13px * var(--ts, 1)); padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 90, 95, .5); background: rgba(255, 90, 95, .08); }
.kl-done { display: flex; align-items: center; gap: 10px; }
.kl-ok { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 0 8px rgba(var(--acc-rgb), .5); }
.kl-done-t { flex: 1; min-width: 0; }
.kl-done-t b { display: block; font-size: calc(13.5px * var(--ts, 1)); }
.kl-done-t small { display: block; color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); }
.kl-sizes { margin-top: 10px; } .kl-sizes small { color: var(--muted); font-size: calc(12.5px * var(--ts, 1)); }
.kl-size-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .kl-size { padding: 5px 10px; background: none; cursor: pointer; }
.kl-legend { margin: 8px 0 0; color: var(--muted); font-size: calc(12px * var(--ts, 1)); }
.kl-mark { display: inline-block; vertical-align: 1px; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: calc(10.5px * var(--ts, 1)); font-weight: 600; line-height: 16px; color: var(--accent-pale); background: rgba(var(--acc-rgb), .22); border: 1px solid rgba(var(--acc-rgb), .55); letter-spacing: .01em; }
.kl-legend .kl-mark { margin: 0 3px 0 0; }
:where(html[data-theme="light"]) .kl-mark { color: var(--accent-fill); background: rgba(var(--acc-rgb), .12); }
