@font-face{font-family:'Fredoka';font-style:normal;font-weight:500 700;font-display:swap;src:url(/s/fonts/fredoka-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 800;font-display:swap;src:url(/s/fonts/nunito-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root {
  --bg: #fff6f9;
  --bg2: #ffeaf2;
  --panel: #ffffff;
  --ink: #45283a;
  --muted: #7a5869;
  --line: #f6dbe6;
  --line2: #efc6d7;
  --field: #cf6496;
  --accent: #be2a60;
  --heart: #e0457b;
  --on-tint: #45283a;
  --pink: #ffc4da; --pink-d: #f59bbe;
  --lav: #e2d6ff; --lav-d: #b9a3f3;
  --sky: #cfe8ff; --sky-d: #94c4f0;
  --mint: #c9f1e1; --mint-d: #86d4b6;
  --butter: #ffeda8; --butter-d: #ebc95a;
  --peach: #ffd5c2; --peach-d: #f2a582;
  --ok: #1d7550; --ok-bg: #d7f4e7;
  --warn: #865100; --warn-bg: #fff0c4;
  --bad: #b4233f; --bad-bg: #ffe1e7;
  --blob1: rgba(255, 196, 218, .6);
  --blob2: rgba(226, 214, 255, .6);
  --blob3: rgba(201, 241, 225, .55);
  --m-fill: #ffd9e7;
  --m-line: #45283a;
  --m-cheek: #ff9fc0;
  --m-star: #ffd95e;
  --shadow: 0 1px 0 rgba(69, 40, 58, .04), 0 10px 24px -14px rgba(190, 42, 96, .35);
  --shadow-up: 0 2px 0 rgba(69, 40, 58, .05), 0 18px 32px -16px rgba(190, 42, 96, .45);
  --display: "Fredoka", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pvfont: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(.32, .94, .6, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

:root[data-theme="dark"] {
  --bg: #1b1320;
  --bg2: #241828;
  --panel: #251b2c;
  --ink: #fbeff6;
  --muted: #cdb5c4;
  --line: #36283e;
  --line2: #4a3554;
  --field: #a0739a;
  --accent: #ff9ec6;
  --heart: #ff7eb0;
  --on-tint: #2a1422;
  --pink-d: #c96e96; --lav-d: #8f78d6; --sky-d: #6d9fd0; --mint-d: #5aa88c; --butter-d: #c2a040; --peach-d: #c98060;
  --ok: #86e3bc; --ok-bg: #163428;
  --warn: #f6c766; --warn-bg: #3a2c12;
  --bad: #ff9aae; --bad-bg: #3d1823;
  --blob1: rgba(255, 110, 170, .16);
  --blob2: rgba(150, 120, 255, .16);
  --blob3: rgba(80, 200, 165, .1);
  --m-fill: #ffc4da;
  --m-line: #2a1422;
  --m-cheek: #ff86b3;
  --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 12px 26px -16px rgba(0, 0, 0, .7);
  --shadow-up: 0 2px 0 rgba(0, 0, 0, .25), 0 20px 34px -16px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 200px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 66px;
  overflow-x: hidden;
}
.no-vt body { animation: page-in .35s var(--ease) backwards; }
.leaving body { opacity: 0; transition: opacity .16s ease; }
@keyframes page-in { from { opacity: 0; } }
a { color: inherit; }
button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; border-radius: 12px; }
.skip:focus { top: 8px; }

.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs i {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(circle at center, var(--blob1) 0, transparent 62%);
}
.bg-blobs i:nth-child(1) { left: -30vmax; top: -24vmax; }
.bg-blobs i:nth-child(2) { right: -34vmax; top: 10vh; background: radial-gradient(circle at center, var(--blob2) 0, transparent 62%); }
.bg-blobs i:nth-child(3) { left: -10vmax; bottom: -40vmax; background: radial-gradient(circle at center, var(--blob3) 0, transparent 62%); }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 var(--gutter); }

.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand {
  font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -.01em; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; gap: 6px; view-transition-name: brand;
}
.brand span { color: var(--accent); }
.brand-heart { width: 22px; height: 22px; fill: var(--heart); transform-origin: 50% 60%; animation: beat 2.8s var(--ease) .8s 2 both; }
@keyframes beat { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.18); } 86% { transform: scale(.96); } 92% { transform: scale(1.08); } }
.top .top-r { display: flex; align-items: center; gap: 6px; }
.top .top-r > a, .icon-btn {
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--panel); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 15px; transition: transform .3s var(--spring), border-color .2s;
}
.icon-btn { padding: 0; }
.top .top-r > a:hover, .icon-btn:hover { transform: translateY(-2px) rotate(-2deg); border-color: var(--field); }
.top .top-r > a:active, .icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; animation: icon-in .55s var(--spring); }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
@keyframes icon-in { from { transform: rotate(-120deg) scale(.4); opacity: 0; } }

.crumbs { font-size: 13px; font-weight: 700; color: var(--muted); padding: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.crumbs a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.crumbs span { color: var(--line2); }

.hero { position: relative; padding: 18px 0 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 6px 14px 6px 10px;
  border-radius: 999px; background: var(--panel); border: 1.5px solid var(--line2); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 800; color: var(--muted); transform: rotate(-2deg);
}
.eyebrow svg { width: 16px; height: 16px; fill: var(--butter-d); }
h1 {
  font-family: var(--display); font-size: clamp(40px, 11.5vw, 84px); line-height: .98; letter-spacing: -.01em;
  font-weight: 700; margin: 0; position: relative; z-index: 1;
}
h1 em {
  font-style: normal; color: var(--accent); padding: 0 .1em; border-radius: .3em;
  background: linear-gradient(transparent 52%, var(--pink) 52%, var(--pink) 90%, transparent 90%);
}
:root[data-theme="dark"] h1 em { background: linear-gradient(transparent 52%, #5a2442 52%, #5a2442 90%, transparent 90%); }
.lead { display: none; margin: 16px 0 0; color: var(--muted); max-width: 52ch; font-size: 18px; font-weight: 600; }

.doodle { position: absolute; pointer-events: none; z-index: 0; }
.dd-star { width: 30px; height: 30px; right: 6%; top: 18px; fill: var(--butter); stroke: var(--butter-d); stroke-width: 1.4; stroke-linejoin: round; animation: twinkle 3.2s var(--ease) 2; }
.dd-heart { width: 24px; height: 24px; right: 22%; top: 62px; fill: var(--pink); stroke: var(--pink-d); stroke-width: 1.4; animation: float 4.2s ease-in-out 2; }
.dd-spark { width: 20px; height: 20px; right: 3%; top: 92px; fill: var(--lav-d); animation: twinkle 2.6s var(--ease) 2; }
.dd-bow { width: 46px; height: 31px; right: 9%; bottom: 6px; fill: var(--pink); stroke: var(--pink-d); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: sway 5s ease-in-out 2; }
.dd-cloud { width: 56px; height: 35px; right: 32%; top: 6px; fill: var(--panel); stroke: var(--line2); stroke-width: 1.6; animation: float 6s ease-in-out 2; display: none; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.72) rotate(18deg); opacity: .65; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes sway { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

.dock { position: sticky; top: 0; z-index: 30; background: var(--bg); }
.dock::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px; pointer-events: none;
  background: radial-gradient(circle at 9px 0, var(--bg) 8.5px, transparent 9px) 0 0 / 18px 9px repeat-x;
  filter: drop-shadow(0 2px 0 var(--line));
}
.dock-inner { padding-top: 10px; padding-bottom: 2px; }
.field-wrap {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; background: var(--panel);
  border: 2px solid var(--field); border-radius: 24px; box-shadow: 0 3px 0 var(--line2);
  transition: box-shadow .25s var(--ease), transform .3s var(--spring);
}
.field-wrap:focus-within { box-shadow: 0 3px 0 var(--line2), 0 0 0 5px var(--blob1); }
.field { display: block; flex: 1; min-width: 0; }
#in {
  display: block; width: 100%; resize: none; border: 0; background: transparent; padding: 8px 0;
  font-family: var(--sans); font-size: 21px; line-height: 1.3; font-weight: 700; min-height: 44px; max-height: 110px;
  caret-color: var(--accent);
}
#in::placeholder { color: var(--muted); font-weight: 600; opacity: 1; }
#in:focus-visible { outline: none; }

.mascot { flex: none; width: 50px; height: 50px; cursor: pointer; view-transition-name: mascot; animation: bob 3.4s ease-in-out 2; }
.mascot svg { width: 100%; height: 100%; overflow: visible; display: block; transform-origin: 50% 85%; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.m-body { fill: var(--m-fill); stroke: var(--m-line); stroke-width: 2.6; stroke-linejoin: round; }
.m-star { fill: var(--m-star); stroke: var(--m-line); stroke-width: 2; stroke-linejoin: round; transform-box: fill-box; transform-origin: 50% 100%; animation: sway 3.6s ease-in-out 2; }
.m-cheek { fill: var(--m-cheek); opacity: .75; transition: opacity .25s; }
.m-look { transition: transform .3s var(--spring); }
.m-open { fill: var(--m-line); transform-box: fill-box; transform-origin: center; transition: opacity .15s, transform .12s ease-out; }
.mascot.blink .m-open { transform: scaleY(.12); }
.m-glint { fill: #fff; }
.m-closed { fill: none; stroke: var(--m-line); stroke-width: 2.6; stroke-linecap: round; opacity: 0; transition: opacity .15s; }
.mo { opacity: 0; transition: opacity .15s; }
.mo-smile, .mo-worry { fill: none; stroke: var(--m-line); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mo-o, .mo-big { fill: var(--m-line); }
.mo-smile { opacity: 1; }
.is-typing .mo-smile, .is-happy .mo-smile, .is-worry .mo-smile { opacity: 0; }
.is-typing .mo-o { opacity: 1; }
.is-typing .m-look { transform: translate(1.6px, 1.2px); }
.is-happy .m-open { opacity: 0; }
.is-happy .m-closed, .is-happy .mo-big, .is-happy .m-cheek { opacity: 1; }
.is-worry .mo-worry { opacity: 1; }
.is-worry .m-look { transform: translateY(1px); }

.meter-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding-top: 6px; }
.meter-row select {
  appearance: none; -webkit-appearance: none; min-height: 44px; border: 1.5px solid var(--line2); border-radius: 999px;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237a5869' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 11px 8px;
  font-family: var(--sans); font-size: 13px; font-weight: 700; padding: 0 30px 0 14px; max-width: 56%; text-overflow: ellipsis; cursor: pointer;
}
:root[data-theme="dark"] .meter-row select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23cdb5c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.meter { margin-left: auto; font-size: 14px; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 700; }
.meter .face { font-size: 18px; line-height: 1; display: inline-block; }
.meter .face.pop { animation: pop .5s var(--spring); }
.meter b { font-weight: 800; font-variant-numeric: tabular-nums; transition: color .2s; }
.meter.mid b { color: var(--ink); }
.meter.near b { color: var(--warn); }
.meter.over b { color: var(--bad); }
.meter .bar { width: 64px; height: 10px; background: var(--line); border-radius: 10px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; width: 100%; border-radius: 10px; background: var(--mint-d); transform-origin: left center; transform: scaleX(0); transition: transform .35s var(--spring), background-color .25s; }
.meter.mid .bar i { background: var(--butter-d); }
.meter.near .bar i { background: var(--peach-d); }
.meter.over .bar i { background: var(--bad); }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

.tabs {
  position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 8px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1; flex: 0 0 auto; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--muted); transition: color .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--on-tint); }
.tab-ink {
  position: absolute; z-index: 0; left: 0; top: 6px; height: 44px; width: 60px; border-radius: 999px;
  background: var(--t, var(--pink)); box-shadow: 0 3px 0 var(--td, var(--pink-d));
  transition: transform .5s var(--spring), width .5s var(--spring), background-color .3s, box-shadow .3s;
}

[data-tint="all"], [data-tint="cute"], [data-tint="saved"], [data-cat="cute"] { --t: var(--pink); --td: var(--pink-d); }
[data-tint="cursive"], [data-tint="symbols"], [data-cat="cursive"], [data-cat="divider"] { --t: var(--lav); --td: var(--lav-d); }
[data-tint="bubble"], [data-cat="bubble"] { --t: var(--sky); --td: var(--sky-d); }
[data-tint="small"], [data-cat="small"] { --t: var(--mint); --td: var(--mint-d); }
[data-tint="bold"], [data-cat="bold"] { --t: var(--butter); --td: var(--butter-d); }
[data-tint="fun"], [data-cat="fun"] { --t: var(--peach); --td: var(--peach-d); }

.ad {
  display: grid; place-items: center; height: 100px; margin: 0; border: 2px dashed var(--line2); background: var(--panel);
  color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; border-radius: 20px;
}
.ad.tall { height: 250px; }
.anchor-ad {
  position: fixed; left: 0; right: 0; bottom: 0; height: 50px; z-index: 40; display: grid; place-items: center;
  background: var(--bg); border-top: 2px dashed var(--line2); color: var(--muted); font-size: 12px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}

.opts { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: center; padding: 16px 0 4px; }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: transparent; border: 0; padding: 0; font-size: 14px; font-weight: 700; }
.switch .track { width: 44px; height: 28px; border-radius: 28px; background: var(--line2); box-shadow: inset 0 0 0 1.5px var(--field); position: relative; transition: background-color .25s var(--ease); flex: none; }
.switch .track::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 3px rgba(69, 40, 58, .25); transition: transform .45s var(--spring);
}
.switch[aria-checked="true"] .track { background: var(--accent); box-shadow: none; }
.switch[aria-checked="true"] .track::after { transform: translateX(16px); }

.legend { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.legend b { color: var(--ink); font-weight: 800; }

.recent { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; align-items: center; }
.recent::-webkit-scrollbar { display: none; }
.recent:empty { display: none; }
.recent .lbl { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--muted); flex: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--panel);
  white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-family: var(--pvfont); font-size: 15px;
  box-shadow: 0 2px 0 var(--line); transition: transform .3s var(--spring), border-color .2s;
}
.chip:hover { border-color: var(--field); transform: translateY(-2px); }
.chip:active { transform: scale(.94); }
.chip-in { animation: chip-in .55s var(--spring) both; }
@keyframes chip-in { from { opacity: 0; transform: translateX(-18px) scale(.7); } }

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.row {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "meta meta" "pv act"; column-gap: 10px; row-gap: 2px;
  padding: 12px 12px 12px 16px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); transition: transform .35s var(--spring), border-color .2s;
}
.row::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; box-shadow: var(--shadow-up); opacity: 0;
  transition: opacity .3s var(--ease); pointer-events: none;
}
.row:hover { transform: translateY(-3px); border-color: var(--line2); }
.row:hover::after { opacity: 1; }
.row .meta { grid-area: meta; display: flex; align-items: center; gap: 6px 8px; font-size: 12px; font-weight: 800; color: var(--muted); flex-wrap: wrap; }
.row .meta .name { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.row .meta .name::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--t, var(--pink)); box-shadow: inset 0 0 0 1.5px var(--td, var(--pink-d)); flex: none; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.tag.r1 { background: var(--warn-bg); color: var(--warn); }
.tag.r2 { background: var(--bad-bg); color: var(--bad); }
.cnt { padding: 2px 8px; border-radius: 999px; background: var(--bg2); font-variant-numeric: tabular-nums; }
.cnt.over { color: var(--bad); background: var(--bad-bg); }
.pv {
  grid-area: pv; text-align: left; border: 0; background: transparent; padding: 6px 0; min-height: 44px; font-family: var(--pvfont);
  font-size: 22px; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-wrap; border-radius: 10px; word-break: break-word;
  transform-origin: 0 50%;
}
.pv.ghost { color: var(--muted); }
.pv:hover { color: var(--accent); }
.plain { grid-area: pv; }
.act { grid-area: act; display: flex; gap: 2px; align-items: center; }
.btn {
  min-height: 44px; min-width: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--t, var(--pink)); color: var(--on-tint);
  font-family: var(--display); font-weight: 600; font-size: 15px; box-shadow: 0 3px 0 var(--td, var(--pink-d));
  transition: transform .3s var(--spring), box-shadow .15s;
}
.btn:hover { transform: translateY(-2px) rotate(-2deg); box-shadow: 0 5px 0 var(--td, var(--pink-d)); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--td, var(--pink-d)); transition-duration: .08s; }
.fav { min-height: 44px; min-width: 44px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.fav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; overflow: visible; }
.fav[aria-pressed="true"] { color: var(--heart); }
.fav[aria-pressed="true"] svg { fill: var(--heart); }
.fav:hover { background: var(--bg2); }
.plain-line { grid-column: 1 / -1; font-size: 14px; color: var(--muted); font-weight: 600; }

.section-h {
  font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); margin: 18px 0 0; display: flex; align-items: center; gap: 8px;
}
.section-h::before { content: "\2726"; color: var(--accent); font-size: 14px; }
.sym-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.sym-row .meta { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--ink); }
.sym-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sym-chips button {
  min-width: 46px; min-height: 46px; border: 1.5px solid var(--line2); background: var(--bg); border-radius: 16px; padding: 0 10px; font-size: 20px;
  font-family: var(--pvfont); box-shadow: 0 2px 0 var(--line); transition: transform .3s var(--spring), border-color .2s, background-color .2s;
}
.sym-chips button:hover { border-color: var(--field); transform: translateY(-3px) rotate(-4deg); background: var(--bg2); }
.sym-chips button:active { transform: scale(.88); }

.empty { padding: 36px 20px; color: var(--muted); text-align: center; font-weight: 700; background: var(--panel); border: 2px dashed var(--line2); border-radius: 22px; list-style: none; }

.explain { margin: 28px 0 0; border: 1.5px solid var(--line2); border-radius: 22px; padding: 4px 18px; background: var(--panel); box-shadow: var(--shadow); }
.explain summary, .faq summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 16px; list-style: none; gap: 10px; }
.explain summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.explain summary::after, .faq summary::after {
  content: "+"; margin-left: auto; width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg2); color: var(--accent); font-size: 20px; line-height: 1; transition: transform .4s var(--spring);
}
.explain[open] summary::after, .faq details[open] summary::after { transform: rotate(135deg); }
.explain p { margin: 0 0 14px; color: var(--muted); }

.more-link { margin: 16px 0 0; }
.more-link a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 600; color: var(--accent); }

.prose { padding: 40px 0 8px; max-width: 64ch; }
.prose h2, .faq h2, .related h2 { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.005em; margin: 0 0 12px; line-height: 1.1; }
.prose p { margin: 0 0 14px; }
.faq { padding: 12px 0; }
.faq h2 { margin: 20px 0 12px; }
.faq details { background: var(--panel); border: 1.5px solid var(--line); border-radius: 20px; padding: 4px 18px; margin: 0 0 10px; box-shadow: var(--shadow); }
.faq p { margin: 0 0 14px; color: var(--muted); max-width: 64ch; }

.related { padding: 12px 0 28px; }
.related h2 { margin: 20px 0 12px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.related a {
  display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 6px; padding: 0 14px; text-decoration: none; font-weight: 700;
  background: var(--panel); border: 1.5px solid var(--line); border-radius: 16px; transition: transform .3s var(--spring), border-color .2s;
}
.related a::after { content: "\2192"; color: var(--accent); transition: transform .3s var(--spring); }
.related a:hover { border-color: var(--field); transform: translateY(-2px); }
.related a:hover::after { transform: translateX(3px); }

footer { position: relative; margin-top: 30px; background: var(--bg2); padding: 24px 0 30px; font-size: 14px; color: var(--muted); font-weight: 600; }
footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 10px;
  background: radial-gradient(circle at 10px 10px, var(--bg2) 9.5px, transparent 10px) 0 0 / 20px 10px repeat-x;
}
footer .wrap { display: flex; flex-direction: column; gap: 6px; }

#toast {
  position: fixed; left: 50%; bottom: 74px; transform: translate(-50%, 12px); background: var(--ink); color: var(--bg); padding: 10px 18px;
  border-radius: 22px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); z-index: 60;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast:empty { display: none; }
#cf-toast {
  position: fixed; left: 50%; bottom: 72px; z-index: 61; display: flex; align-items: center; gap: 10px; max-width: min(92vw, 420px);
  padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: 0 14px 30px -12px rgba(69, 40, 58, .55);
  opacity: 0; transform: translate(-50%, 18px) scale(.7); pointer-events: none;
  transition: opacity .2s var(--ease), transform .45s var(--spring);
}
#cf-toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
#cf-toast .t-face { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--pink); display: grid; place-items: center; }
#cf-toast .t-face svg { width: 32px; height: 32px; overflow: visible; }
#cf-toast .m-star { display: none; }
#cf-toast.show .t-face { animation: wiggle .6s var(--spring) .1s; }
#cf-toast .t-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
#cf-toast b { font-family: var(--display); font-weight: 600; font-size: 15px; }
#cf-toast .t-txt { font-family: var(--pvfont); font-size: 14px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes wiggle { 0% { transform: rotate(0); } 30% { transform: rotate(-14deg) scale(1.1); } 60% { transform: rotate(10deg); } 100% { transform: rotate(0); } }

.fx { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.fx svg { position: absolute; left: 0; top: 0; fill: currentColor; will-change: transform, opacity; }
.caret-mirror { position: absolute; top: 0; left: -9999px; visibility: hidden; white-space: pre-wrap; overflow-wrap: break-word; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .2s ease both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
::view-transition-group(mascot), ::view-transition-group(brand) { animation-duration: .5s; animation-timing-function: var(--spring); }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .switch { font-size: 15px; }
  body { padding-bottom: 0; }
  .anchor-ad { display: none; }
  #toast { bottom: 28px; }
  #cf-toast { bottom: 28px; }
  .hero { padding: 48px 0 34px; }
  .lead { display: block; }
  .dd-star { width: 44px; height: 44px; right: 8%; top: 40px; }
  .dd-heart { width: 34px; height: 34px; right: 26%; top: 110px; }
  .dd-spark { width: 28px; height: 28px; right: 2%; top: 150px; }
  .dd-bow { width: 64px; height: 43px; right: 14%; bottom: 20px; }
  .dd-cloud { display: block; width: 84px; height: 52px; right: 40%; top: 28px; }
  .mascot { width: 58px; height: 58px; }
  #in { font-size: 24px; }
  .row { grid-template-columns: 200px 1fr auto; grid-template-areas: "meta pv act"; align-items: center; padding: 14px 14px 14px 20px; column-gap: 20px; }
  .row .meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pv { font-size: 26px; }
  .related ul { grid-template-columns: repeat(3, 1fr); }
  .sym-row { grid-template-columns: 200px 1fr; gap: 20px; padding: 14px 20px; align-items: center; }
  .tabs { margin: 0; padding: 6px 0 8px; }
  html { scroll-padding-top: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; scroll-behavior: auto !important;
    transition-property: opacity, color, background-color, border-color !important; transition-duration: .2s !important; transition-delay: 0s !important;
  }
  .row:hover, .btn:hover, .chip:hover, .related a:hover, .top .top-r > a:hover, .icon-btn:hover, .sym-chips button:hover, .sy:hover, .pill-btn:hover, .chipb:hover, .menu > summary:hover { transform: none; }
  #cf-toast, #cf-toast.show { transform: translate(-50%, 0); }
  ::view-transition-old(root) { animation: vt-fade-out .2s ease both; }
  ::view-transition-new(root) { animation: vt-fade .2s ease both; }
  ::view-transition-group(*) { animation-duration: 0s !important; }
}
@keyframes vt-fade { from { opacity: 0; } }
@keyframes vt-fade-out { to { opacity: 0; } }

/* ---- additions for the production site ---- */
body.has-ads { padding-bottom: 66px; }
.top .wrap { gap: 8px; }
.top-r { display: flex; align-items: center; gap: 6px; }
.top-r a.saved-link { font-size: 14px; }
.top-r a.saved-link b { font-variant-numeric: tabular-nums; margin-left: 6px; color: var(--accent); }
.menu { position: relative; }
.menu > summary {
  list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line2); background: var(--panel); font-family: var(--display); font-weight: 600; font-size: 15px;
  transition: transform .3s var(--spring), border-color .2s;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { border-color: var(--field); transform: translateY(-2px) rotate(-2deg); }
.menu[open] > summary { border-color: var(--field); }
.menu-panel {
  position: fixed; left: 8px; right: 8px; top: 64px; z-index: 70; max-height: calc(100vh - 80px); overflow: auto;
  background: var(--panel); border: 1.5px solid var(--line2); border-radius: 22px; box-shadow: var(--shadow-up); padding: 14px 16px 18px;
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
.menu-panel h2 { font-family: var(--display); font-size: 16px; margin: 0 0 4px; color: var(--accent); }
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 14px; }
.menu-panel a:hover { background: var(--bg2); }
@media (min-width: 760px) { .menu-panel { position: absolute; left: auto; right: 0; top: 52px; width: 760px; max-height: min(78vh, 640px); grid-template-columns: repeat(4, 1fr); } .menu-panel ul { grid-template-columns: 1fr; } }

.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.crumbs li + li::before { content: "/"; color: var(--line2); margin-right: 6px; }
.crumbs [aria-current] { color: var(--ink); }

.hero h1 { overflow-wrap: anywhere; }
.hero.sm h1 { font-size: clamp(34px, 9.5vw, 64px); }
.lead { display: none; }
.hero .lead-m { margin: 12px 0 0; color: var(--muted); font-weight: 600; font-size: 16px; max-width: 52ch; }
@media (min-width: 760px) { .hero .lead-m { display: none; } }

.legend { margin-top: 12px; }
.legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: baseline; margin-right: 5px; background: var(--ok); }
.legend .dot.r1 { background: var(--warn); }
.legend .dot.r2 { background: var(--bad); }

.row .why { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.tag.deco { background: var(--bg2); color: var(--ink); border: 1px solid var(--line2); }
.row .meta .xw, .row .meta .fit { padding: 2px 8px; border-radius: 999px; background: var(--bg2); font-variant-numeric: tabular-nums; }
.row .meta .fit.no { color: var(--bad); background: var(--bad-bg); }
.row .meta .fit.yes { color: var(--ok); background: var(--ok-bg); }
.compat { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 12px; font-weight: 800; }
.compat li { padding: 1px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.compat li.p { background: var(--warn-bg); color: var(--warn); }
.compat li.n { background: var(--bad-bg); color: var(--bad); }
.row-in { animation: row-in .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 38ms); }
@keyframes row-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.rows.swap { animation: fade-swap .28s var(--ease); }
@keyframes fade-swap { from { opacity: .2; transform: translateY(6px); } }

.group-h { font-family: var(--display); font-size: 22px; font-weight: 700; margin: 26px 0 4px; display: flex; align-items: center; gap: 8px; }
.group-h::before { content: "\2726"; color: var(--accent); font-size: 14px; }
.group-p { margin: 0 0 10px; color: var(--muted); font-weight: 600; font-size: 15px; max-width: 64ch; }

.panel { background: var(--panel); border: 1.5px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 16px; margin: 14px 0; }
.panel > h2, .panel > h3 { font-family: var(--display); font-size: 20px; margin: 0 0 8px; }
.panel .hint { margin: 0 0 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.lbl { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; margin: 12px 0 6px; }
.ta, .inp, .sel {
  width: 100%; display: block; border: 2px solid var(--field); border-radius: 18px; background: var(--bg); padding: 10px 14px;
  font-family: var(--sans); font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--ink); caret-color: var(--accent);
}
.ta { min-height: 110px; resize: vertical; }
.sel { appearance: none; -webkit-appearance: none; min-height: 48px; font-size: 15px; padding-right: 36px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237a5869' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 11px 8px; }
:root[data-theme="dark"] .sel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23cdb5c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.inp { min-height: 48px; font-size: 16px; }
.ta:focus-visible, .inp:focus-visible, .sel:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.out { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font-family: var(--pvfont); font-size: 20px; line-height: 1.4; padding: 12px 14px; border-radius: 18px; background: var(--bg); border: 1.5px dashed var(--line2); min-height: 56px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; align-items: center; }
.pill-btn {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--panel); font-family: var(--display); font-weight: 600; font-size: 15px;
  box-shadow: 0 2px 0 var(--line); transition: transform .3s var(--spring), border-color .2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.pill-btn:hover { border-color: var(--field); transform: translateY(-2px) rotate(-1.5deg); }
.pill-btn:active { transform: scale(.94); }
.pill-btn.main { background: var(--pink); border-color: var(--pink-d); color: var(--on-tint); box-shadow: 0 3px 0 var(--pink-d); }
.pill-btn[aria-pressed="true"] { background: var(--lav); border-color: var(--lav-d); color: var(--on-tint); }
.pill-btn:disabled { opacity: .55; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 0; list-style: none; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 4px var(--gutter); }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips .chipb { flex: none; }
.chipb { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--panel); font-weight: 700; font-size: 14px; transition: transform .3s var(--spring), border-color .2s, background-color .2s; }
.chipb:hover { border-color: var(--field); transform: translateY(-2px); }
.chipb[aria-pressed="true"], .chipb[aria-checked="true"] { background: var(--t, var(--pink)); border-color: var(--td, var(--pink-d)); color: var(--on-tint); }
.range { width: 100%; accent-color: var(--accent); min-height: 44px; }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 12px; }
.stat b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 700; }
.stat.over b { color: var(--bad); }
.stat.near b { color: var(--warn); }

.tblwrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: 18px; background: var(--panel); margin: 10px 0; max-width: 100%; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-family: var(--display); font-weight: 600; background: var(--bg2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .ch { font-family: var(--pvfont); font-size: 20px; white-space: nowrap; }
.st { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--ok-bg); color: var(--ok); }
.st.unc { background: var(--warn-bg); color: var(--warn); }
.st.old { background: var(--bg2); color: var(--ink); }

.chart { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
.chart li { background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; text-align: center; padding: 6px 2px 4px; }
.chart li.hole { border-color: var(--warn); background: var(--warn-bg); }
.chart li.miss { opacity: .55; border-style: dashed; }
.chart .c { display: block; font-family: var(--pvfont); font-size: 24px; line-height: 1.25; min-height: 30px; }
.chart .k { display: block; font-size: 11px; font-weight: 800; color: var(--muted); }
.chart .u { display: block; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }

.sym-sec { margin: 22px 0 0; }
.sym-sec h2 { font-family: var(--display); font-size: 24px; margin: 0 0 4px; }
.sym-sec > p { margin: 0 0 10px; color: var(--muted); font-weight: 600; font-size: 15px; max-width: 64ch; }
.sym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.sym-grid.wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sym-grid.named { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.sy {
  position: relative; width: 100%; min-height: 56px; padding: 6px 4px; border: 1.5px solid var(--line2); background: var(--panel); border-radius: 16px; box-shadow: 0 2px 0 var(--line);
  font-family: var(--pvfont); font-size: 24px; line-height: 1.2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: transform .3s var(--spring), border-color .2s, background-color .2s; overflow-wrap: anywhere;
}
.sy:hover { border-color: var(--field); transform: translateY(-3px) rotate(-3deg); background: var(--bg2); }
.sy:active { transform: scale(.9); }
.sy .nm { font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.2; text-align: center; }
.sy .ln { font-family: var(--sans); font-size: 11px; font-weight: 800; color: var(--muted); }
.sy.r1::after, .sy.r2::after { content: ""; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); }
.sy.r2::after { background: var(--bad); }
.sy.sm { font-size: 17px; min-height: 52px; }
.sy.hidden { display: none; }
.grid-li { display: contents; }

.profile { display: grid; grid-template-columns: 64px 1fr; gap: 6px 14px; align-items: center; background: var(--panel); border: 1.5px solid var(--line2); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); }
.profile .av { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--lav)); display: grid; place-items: center; }
.profile .av svg { width: 40px; height: 40px; fill: var(--m-fill); stroke: var(--m-line); stroke-width: 2.4; }
.profile .nm { font-family: var(--pvfont); font-weight: 700; font-size: 18px; overflow-wrap: anywhere; line-height: 1.25; }
.profile .hd { font-size: 13px; color: var(--muted); font-weight: 700; }
.profile .bio { grid-column: 1 / -1; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--pvfont); font-size: 16px; line-height: 1.4; margin: 4px 0 0; }
.profile.dc { border-radius: 14px; background: #2b2d31; border-color: #3f4147; color: #f2f3f5; }
.profile.dc .hd { color: #b5bac1; }
.profile.tt { text-align: left; }
.profile .tab-row { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }

.ideas { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 12px 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .ideas.cols { grid-template-columns: 1fr 1fr; } }
.idea { background: var(--panel); border: 1.5px solid var(--line); border-radius: 22px; padding: 12px 14px; box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.idea .tx { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--pvfont); font-size: 18px; line-height: 1.4; margin: 0; }
.idea .mt { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); }
.idea .mt span { padding: 2px 9px; border-radius: 999px; background: var(--bg2); font-variant-numeric: tabular-nums; }
.idea .mt span.ok { background: var(--ok-bg); color: var(--ok); }
.idea .mt span.no { background: var(--bad-bg); color: var(--bad); }
.idea .ac { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.idea .dv { font-family: var(--pvfont); font-size: 17px; margin: 0; overflow-wrap: anywhere; }
.idea h3 { font-size: 15px; font-family: var(--display); margin: 0; }

.inv-list { display: grid; gap: 10px; margin: 12px 0; padding: 0; list-style: none; }
.inv { background: var(--panel); border: 1.5px solid var(--line); border-radius: 20px; padding: 12px 14px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.inv h3 { margin: 0; font-family: var(--display); font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inv .cpx { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; font-weight: 800; }
.inv p { margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.inv dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 13px; }
.inv dt { font-weight: 800; color: var(--muted); }
.inv dd { margin: 0; font-weight: 700; }

.cc-out { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; padding: 0; list-style: none; }
.cc-out li { min-width: 40px; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); text-align: center; padding: 4px 6px; display: flex; flex-direction: column; justify-content: center; font-family: var(--pvfont); font-size: 22px; line-height: 1.2; }
.cc-out li small { font-family: var(--sans); font-size: 10px; font-weight: 800; color: var(--muted); }
.cc-out li.r1 { background: var(--warn-bg); border-color: var(--warn); }
.cc-out li.r2 { background: var(--bad-bg); border-color: var(--bad); }
.cc-out li.r3 { background: var(--bg2); border-style: dashed; }

.explain ul, .prose ul { margin: 0 0 14px; padding-left: 1.2em; }
.prose li { margin: 0 0 6px; }
.prose code, .explain code { font: inherit; background: var(--bg2); padding: 1px 6px; border-radius: 6px; }
.prose a { color: var(--accent); font-weight: 700; }
.prose h3 { font-family: var(--display); font-size: 20px; margin: 18px 0 6px; }
.prose.legal { max-width: 70ch; }
.prose.legal h2 { font-size: 24px; margin: 26px 0 8px; }

.related ul { list-style: none; margin: 0; padding: 0; }
.related li { min-width: 0; }
.related a { min-width: 0; overflow-wrap: anywhere; }
.rel-title { font-size: 12px; color: var(--muted); font-weight: 700; margin: 0 0 10px; }

.page-foot { margin: 36px 0 0; }
footer .wrap { gap: 14px; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
@media (min-width: 760px) { .foot-cols { grid-template-columns: repeat(4, 1fr); } }
.foot-cols h2 { font-family: var(--display); font-size: 15px; color: var(--ink); margin: 0 0 6px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols a { display: flex; align-items: center; min-height: 36px; font-size: 14px; font-weight: 700; color: var(--muted); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.ad { display: block; min-height: 100px; margin: 18px 0; }
.ad-tool { min-height: 250px; }
.ad-anchor { position: fixed; left: 0; right: 0; bottom: 0; height: 50px; z-index: 40; background: var(--bg); }
.err-hint { color: var(--bad); font-weight: 700; font-size: 14px; }
.hl { background: var(--butter); color: var(--on-tint); border-radius: 4px; padding: 0 2px; }
.mini-note { font-size: 13px; color: var(--muted); font-weight: 600; margin: 6px 0 0; }
.kbd { font-family: var(--pvfont); background: var(--bg2); padding: 1px 6px; border-radius: 6px; }
.empty-li { list-style: none; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .prose h2, .faq, .related, .explain {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
  }
}
@keyframes reveal-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .row-in, .rows.swap { animation: none !important; }
}

.menu > summary svg { width: 20px; height: 20px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 459px) {
  :root { --gutter: 12px; }
  .menu > summary { padding: 0; min-width: 44px; justify-content: center; }
  .menu > summary svg { margin: 0; }
  .menu > summary .mt-txt { display: none; }
  .top .wrap { gap: 4px; }
  .brand { font-size: 20px; gap: 4px; }
  .top .top-r { gap: 4px; }
  .top .top-r > a.saved-link { padding: 0 10px; min-width: 44px; }
  .top .top-r > a.saved-link b { margin-left: 4px; }
}
.meter-row select { flex: 1 1 0; min-width: 0; max-width: none; }
.meter { flex: none; }
@media (max-width: 400px) { .meter { gap: 5px; font-size: 13px; } .meter .bar { width: 40px; } }
.panel .hint.warn { color: var(--bad); }
@media (max-width: 340px) {
  :root { --gutter: 10px; }
  .brand { font-size: 17px; gap: 3px; }
  .brand-heart { width: 18px; height: 18px; }
  .top .top-r { gap: 3px; }
  .top .top-r > a.saved-link { padding: 0 8px; }
  .menu > summary, .top .top-r > a, .icon-btn { min-width: 40px; }
}

.tbl td.nm { color: var(--muted); font-weight: 700; white-space: nowrap; }
.tbl td.why { min-width: 240px; }
.tbl tr.tot th, .tbl tr.tot td { background: var(--bg2); font-weight: 800; }
.tbl tbody th[scope="row"] { background: transparent; font-weight: 700; white-space: nowrap; }
.tbl td.part { color: var(--warn); font-weight: 800; }
.cite .dl { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.cite .dl a { color: var(--accent); font-weight: 800; }
.cite h3 { font-family: var(--display); font-size: 17px; margin: 16px 0 6px; }
.cite-text { margin: 0; padding: 10px 12px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; font-size: 15px; overflow-wrap: anywhere; user-select: all; }
.cite .dl li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.panel .ans { display: none; margin: 0 0 12px; font-size: 17px; font-weight: 700; }
@media (min-width: 760px) { .panel .ans { display: block; } }
.tbl .tag, .tbl td:nth-child(2) { white-space: nowrap; }
.tbl td.why { white-space: normal; }

