/* Shell and screens. Mobile first: glass top bar, bottom tab bar. From 900px: left rail, centre column, stats panel. */
.shell { min-height: 100dvh; }
.col { min-width: 0; max-width: 640px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: var(--top-h); margin: 0 -16px; padding: env(safe-area-inset-top) 16px 0; background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.wm { font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em; white-space: nowrap; }
.top .brand { min-width: 0; }
.hchips { display: flex; align-items: center; gap: 8px; flex: none; }
.hchips .chip { height: 40px; padding: 0 12px 0 8px; gap: 6px; box-shadow: 0 3px 0 var(--line); font-size: .95rem; }
.hchips .chip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.chip.fire .ic { color: #FF7A2F; }
.chip.fire.cold { opacity: .8; } .chip.fire.cold .ic { color: var(--ink-soft); }
.chip .xr { position: relative; display: grid; place-items: center; width: 28px; height: 28px; }
.chip .xr svg.rg { position: absolute; inset: 0; }
.chip .xr .ic { position: relative; color: #E5A800; }
.chip.xp.met .xr .ic { color: var(--good-t); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; background: var(--paper); border: var(--b) solid var(--line); border-radius: 13px; box-shadow: 0 3px 0 var(--line); }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.screen { padding: 8px 0 calc(116px + env(safe-area-inset-bottom)); scroll-margin-top: var(--top-h); }
.screen > div { animation: fadein .2s ease-out; }
.side { display: none; }

/* ---------- tab bar ---------- */
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--paper); border-top: var(--b) solid var(--line); }
.nav .brand { display: none; }
.nav-slot { display: contents; }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; padding: 2px; border-radius: 14px; text-decoration: none; font-size: .68rem; font-weight: 700; color: var(--ink-soft); }
.tab .ti { display: grid; place-items: center; width: 54px; height: 32px; border: var(--b) solid transparent; border-radius: 12px; transition: background .18s, transform .22s var(--spring), box-shadow .18s; }
.tab.on { color: var(--ink); }
.tab.on .ti { background: var(--teal); color: var(--on); border-color: var(--line); box-shadow: 0 3px 0 var(--line); transform: translateY(-2px); }
.tab:active .ti { transform: scale(.9); }
.tab.on:active .ti { transform: translateY(-1px) scale(.95); }
.tbadge { position: absolute; top: 0; left: calc(50% + 9px); min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; background: var(--coral); color: var(--on); border: 2px solid var(--line); border-radius: 99px; font-size: .68rem; font-weight: 700; line-height: 1; }

/* ---------- headings, sections ---------- */
.sh { margin: 6px 0 16px; }
.sh .sub { margin-top: 6px; color: var(--ink-soft); font-size: .94rem; }
.sec { margin: 26px 0 12px; font-size: 1.1rem; }
.backlink { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 0 0 4px -6px; padding: 0 8px; text-decoration: none; font-weight: 700; color: var(--ink-soft); }
.empty { text-align: center; color: var(--ink-soft); padding: 28px 0; }

@media (max-width: 430px) { .hchips .icon-btn { display: none; } }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 230px minmax(0, 640px) 290px; gap: 30px; max-width: 1240px; margin: 0 auto; padding: 0 20px; align-items: start; }
  .col { padding: 0; width: 100%; }
  .top { margin: 0; padding-left: 0; padding-right: 0; }
  .top .brand.m { display: none; }
  .top { justify-content: flex-end; }
  .hchips .chip { display: none; }
  .hchips .icon-btn { display: grid; }
  .nav-slot { display: block; position: sticky; top: 0; align-self: start; padding-top: 20px; }
  .nav { position: static; display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; }
  .nav .brand { display: inline-flex; margin: 0 0 18px 8px; }
  .tab { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 52px; padding: 6px 10px; font-size: 1rem; }
  .tab .ti { width: 44px; }
  .tbadge { top: 8px; left: 38px; }
  .side { display: block; position: sticky; top: 0; align-self: start; padding-top: 20px; }
  .side-in { display: grid; gap: 16px; }
  .sd { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
  .sd > div:last-child { flex: 1; }
  .sd-ring { position: relative; width: 84px; height: 84px; }
  .sd-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; }
  .screen { padding-bottom: 60px; }
  .toast { bottom: 30px; }
  .fab { bottom: 28px !important; }
}

/* ---------- Learn ---------- */
.upnext { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 8px; margin: 2px 0 20px; background: var(--w); color: var(--on); text-decoration: none; transition: transform .08s, box-shadow .08s; }
.upnext:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.un-sil { flex: none; display: flex; }
.un-b { flex: 1; min-width: 0; }
.un-k { font-size: .76rem; font-weight: 700; opacity: .72; }
.un-t { margin: 1px 0 3px; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.un-n { margin-right: .4em; padding: 0 7px; border-radius: 8px; background: rgba(29, 27, 69, .14); font-size: .86em; }
.un-s { font-size: .78rem; font-weight: 500; line-height: 1.35; }
.un-go { flex: none; display: grid; place-items: center; width: 54px; height: 54px; background: #fff; color: var(--on); border: var(--b) solid var(--line); border-radius: 50%; box-shadow: 0 3px 0 var(--line); }
.un-go .ic { margin-left: 3px; }
.un-meter { height: 6px; margin-top: 8px; border-radius: 99px; background: rgba(29, 27, 69, .2); overflow: hidden; }
.un-meter i { display: block; height: 100%; background: var(--on); border-radius: 99px; }
.tip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 20px; }
.tip p { flex: 1; margin: 0; font-size: .88rem; line-height: 1.45; }
.tip .btn { flex: none; }

.world { position: relative; margin: 0 0 20px; }
.wb { position: sticky; top: var(--top-h); z-index: 6; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; background: var(--w); color: var(--on); border: var(--b) solid var(--line); border-radius: var(--r); box-shadow: var(--sh); text-align: left; transition: transform .08s, box-shadow .08s; }
.wb:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.wb-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border: var(--b) solid var(--line); border-radius: 13px; }
.wb-t { flex: 1; min-width: 0; }
.wb-k { font-size: .72rem; font-weight: 700; opacity: .7; line-height: 1.2; }
.wb-t h2 { font-size: 1rem; line-height: 1.2; }
.wb-t p { margin: 1px 0 0; font-size: .76rem; font-weight: 500; line-height: 1.3; opacity: .85; }
.wb-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pips { display: flex; gap: 3px; }
.pips i { width: 9px; height: 9px; border: 2px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .6); }
.pips i.on { background: var(--on); }
.wb-chev { display: grid; place-items: center; width: 22px; height: 22px; transition: transform .25s var(--ease); transform: rotate(90deg); }
.world.fold .wb-chev { transform: rotate(-90deg); }
.world.closed { --w: var(--paper-3); }
.world.closed .wb { color: var(--ink); }
.world.closed .wb-ic { background: var(--paper-2); color: var(--ink-soft); }
.world.closed .wb-k, .world.closed .wb-t p { opacity: .8; }
.world.closed .pips { display: none; }
.world.fold .wb { position: relative; top: auto; }
.wb-sum { font-size: .74rem; font-weight: 700; }

.path { position: relative; margin-top: 16px; }
.trail { position: absolute; left: 0; top: 0; width: 100%; overflow: visible; pointer-events: none; }
.trail path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-width: 5; stroke-dasharray: 0.1 12; }
.trail .t-base { stroke: var(--paper-3); }
.trail .t-done { stroke: var(--w); }
.world.closed .path { opacity: .62; }

.pn { position: absolute; left: 0; right: 0; display: block; padding: 0; background: none; border: 0; text-align: left; color: var(--ink); -webkit-touch-callout: none; }
.pn-env { position: absolute; top: 50%; left: var(--x); width: 99px; height: 69px; margin: -34px 0 0 -49px; transition: transform .1s; }
.pn-env .env { margin: 0; }
.pn:active .pn-env { transform: translateY(3px); }
.pn-l { position: absolute; top: 50%; transform: translateY(-50%); }
.pn.r .pn-l { left: calc(var(--x) + 62px); right: 0; }
.pn.l .pn-l { left: 0; right: calc(100% - var(--x) + 62px); text-align: right; }
.pn.l .nd-stars, .pn.l .nd-m { justify-content: flex-end; }
.nd-t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: .86rem; line-height: 1.28; letter-spacing: -.01em; }
.pn.s-locked .nd-t { color: var(--ink-soft); }
.nd-m { display: flex; margin-top: 3px; font-size: .72rem; font-weight: 500; color: var(--ink-soft); }
.nd-stars { display: flex; gap: 2px; margin-top: 4px; color: var(--paper-3); }
.nd-stars i { display: inline-flex; }
.nd-stars i.on { color: #FFB800; }
.nd-stars svg { fill: currentColor; }
.nd-stars.on { color: var(--good-t); font-weight: 700; font-size: .76rem; }
.env.nd .env-amt { top: 60%; font-size: 1.32em; }
.env.nd.is-open .env-amt { top: 54%; }
.nd-go { position: absolute; top: -2px; left: var(--x); transform: translateX(-50%); padding: 2px 14px; background: var(--sun); color: var(--on); border: 2.5px solid var(--line); border-radius: 99px; font-weight: 700; font-size: .8rem; box-shadow: 0 2px 0 var(--line); animation: hop 1.6s ease-in-out infinite; white-space: nowrap; }
@keyframes hop { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }
.pn.current .pn-env .env { animation: wiggle 2.4s ease-in-out infinite; }
.pn.current .pn-env::before { content: ""; position: absolute; inset: -10px -14px; border-radius: 26px; background: var(--w); opacity: .28; animation: glow 2.2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { transform: scale(.94); opacity: .18; } 50% { transform: scale(1.04); opacity: .36; } }
.pn.nope .pn-env { animation: shake .4s; }
.pn.boss .pn-env { left: 50%; top: 44%; width: 80px; height: 80px; margin: -40px 0 0 -40px; }
.pn.boss .pn-l { left: 0; right: 0; top: auto; bottom: 6px; transform: none; text-align: center; }
.pn.boss .nd-m, .pn.boss .nd-stars { justify-content: center; }
.bossic { display: block; line-height: 0; }
.bossic svg, .mon svg { overflow: visible; }
.pn.boss.s-locked .bossic { filter: saturate(.4); }
.world.fold .path, .world.fold .closed-note { display: none; }
.closed-note { text-align: center; font-size: .82rem; color: var(--ink-soft); margin: 10px 0 0; }
.foot-note { text-align: center; font-size: .76rem; color: var(--ink-soft); margin: 18px 12px 0; line-height: 1.5; }

.fab { position: fixed; z-index: 25; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); height: 50px; padding: 0 8px 0 18px; background: var(--w, var(--teal)); color: var(--on); border: var(--b) solid var(--line); border-radius: 99px; box-shadow: var(--sh); font-weight: 700; font-size: .92rem; text-decoration: none; transform: translate(-50%, 24px) scale(.96); opacity: 0; pointer-events: none; transition: transform .28s var(--spring), opacity .18s; }
.fab.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.fab:active { transform: translate(-50%, 3px); box-shadow: 0 1px 0 var(--line); }
.fab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fab i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; background: #fff; border: 2px solid var(--line); border-radius: 50%; font-style: normal; }
.fab i .ic { margin-left: 2px; }

.stars { display: flex; justify-content: center; gap: 8px; margin: 16px 0; }
.star { display: inline-flex; color: var(--paper-3); }
.star.on { color: #FFB800; }
.star svg { fill: currentColor; stroke: var(--line); stroke-width: 1.6; }
.stars.sm { margin: 10px 0 0; justify-content: flex-start; gap: 4px; }
.ls p { margin-bottom: .6em; }
.ls-top { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 4px 14px 4px 4px; background: var(--w); color: var(--on); border: 2.5px solid var(--line); border-radius: 99px; font-weight: 700; font-size: .82rem; }
.ls-ic { display: grid; place-items: center; width: 30px; height: 30px; background: #fff; border-radius: 50%; border: 2px solid var(--line); }
.locknote { padding: 10px 12px; background: var(--paper-2); border: 2px dashed var(--line); border-radius: 12px; font-size: .88rem; }
.boss-art { display: flex; justify-content: center; margin: 4px 0 8px; }
.bq { font-weight: 700; font-style: italic; text-align: center; }
.resume-note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 8px; background: var(--paper-2); border: 2px solid var(--line); border-radius: 12px; font-size: .86rem; }

/* ---------- Practice ---------- */
.today { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin: 0 0 18px; text-decoration: none; }
.tg-ring { position: relative; flex: none; width: 76px; height: 76px; }
.tg-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; }
.tg-b { flex: 1; min-width: 0; }
.tg-b h3 { font-size: 1rem; }
.tg-b p { margin: 2px 0 0; font-size: .84rem; color: var(--ink-soft); line-height: 1.4; }
.tg-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tg-row .tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 6px; }
.tg-row .tag .ic { color: #FF7A2F; }
.pcard { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 14px; text-decoration: none; color: var(--ink); transition: transform .08s, box-shadow .08s; }
a.pcard:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.pc-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; background: var(--coral); color: var(--on); border: var(--b) solid var(--line); border-radius: 16px; }
.pc-b { flex: 1; min-width: 0; }
.pc-b h3 { font-size: 1rem; }
.pc-b p { margin: 2px 0 0; font-size: .82rem; color: var(--ink-soft); line-height: 1.4; }
.pc-go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--teal); color: var(--on); border: var(--b) solid var(--line); border-radius: 50%; box-shadow: 0 2px 0 var(--line); }
.pc-go .ic { margin-left: 2px; }
.pcard.off .pc-ic { background: var(--paper-3); color: var(--ink-soft); }
.pcard.off .pc-go { background: var(--paper-2); color: var(--ink-soft); box-shadow: none; }
.pc-need { display: inline-block; margin-top: 6px; font-size: .8rem; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.brow { display: flex; align-items: center; gap: 12px; padding: 8px 14px; margin-bottom: 10px; text-decoration: none; color: var(--ink); }
.brow > div { flex: 1; min-width: 0; }
.brow.off { opacity: .6; }
.brow strong { font-size: .94rem; }

/* ---------- Lab ---------- */
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; margin-bottom: 12px; text-decoration: none; color: var(--ink); transition: transform .08s, box-shadow .08s; }
.lrow:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.lrow > div { flex: 1; min-width: 0; }
.lrow strong { display: block; font-size: .96rem; line-height: 1.3; }
.lrow .cap { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.lrow .tag { margin-top: 6px; }
.lr-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; background: var(--violet); color: var(--on); border: var(--b) solid var(--line); border-radius: 14px; }
.lr-ic.toy { background: var(--sun); }
.lr-chev { flex: none; color: var(--ink-soft); transform: rotate(180deg); display: grid; }
.cr-badge { flex: none; font-size: .7rem; font-weight: 700; padding: 3px 9px; border: 2px solid var(--line); border-radius: 99px; color: var(--on); white-space: nowrap; }
.cr-badge.docs { background: var(--teal); } .cr-badge.sketch { background: var(--sun); }
.toy-box { padding: 16px; }
.seg .n { margin-left: 6px; padding: 0 7px; border-radius: 99px; background: rgba(29, 27, 69, .14); font-size: .74rem; line-height: 1.6; }
.seg .on .n { background: rgba(29, 27, 69, .2); }

/* ---------- Dictionary ---------- */
.sbox { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; background: var(--paper); border: var(--b) solid var(--line); border-radius: 16px; box-shadow: 0 3px 0 var(--line); }
.search { flex: 1; min-width: 0; height: 50px; border: 0; background: none; font: inherit; font-weight: 500; color: var(--ink); outline: none; }
.search::-webkit-search-cancel-button { display: none; }
.sbox:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.sclear { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: var(--ink-soft); }
.rcount { margin: 4px 2px 10px; font-size: .78rem; color: var(--ink-soft); font-weight: 500; }
.word { margin-bottom: 10px; padding: 0; }
.word summary { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 14px; cursor: pointer; list-style: none; }
.word summary::-webkit-details-marker { display: none; }
.word .w-t { flex: 1; min-width: 0; }
.word .w-t strong { display: block; font-size: .98rem; }
.word .w-p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; font-weight: 500; color: var(--ink-soft); }
.word[open] .w-p { display: none; }
.word[open] summary { border-bottom: 2px dashed var(--paper-3); }
.word p { padding: 12px 16px 0; margin: 0; }
.word p:last-child { padding-bottom: 14px; }
.prec { font-size: .86rem; color: var(--ink-soft); }
.op { padding: 10px 14px; margin-bottom: 10px; box-shadow: 0 3px 0 var(--line); }
.op-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.op-h code { background: none; padding: 0; font-weight: 700; font-size: .9rem; word-break: break-word; }
.hex { font-family: var(--m); font-size: .78rem; font-weight: 700; padding: 1px 8px; background: var(--paper-3); border-radius: 8px; }
.op p { margin: 4px 0 0; font-size: .88rem; color: var(--ink-soft); }
.tbl-wrap { overflow-x: auto; margin-bottom: 14px; }
.tbl-wrap.card { padding: 4px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; padding: 10px 14px; font-weight: 700; border-bottom: var(--b) solid var(--line); }
.tbl td { padding: 9px 14px; border-bottom: 1.5px solid var(--paper-3); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td { overflow-wrap: anywhere; }
.tbl-code td:first-child { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 420px) { .tbl { font-size: .84rem; } .tbl th, .tbl td { padding: 8px 10px; } }
.tbl code { background: none; padding: 0; }
.tbl-wrap:not(.card) { border: var(--b) solid var(--line); border-radius: 14px; background: var(--paper); }

/* ---------- You ---------- */
.prof { display: flex; align-items: center; gap: 14px; padding: 16px; margin: 4px 0 16px; }
.prof-b { flex: 1; min-width: 0; }
.prof-b h1 { font-size: 1.5rem; }
.prof-b p { margin: 2px 0 0; color: var(--ink-soft); font-size: .88rem; }
.dstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.ds { padding: 12px 6px; text-align: center; box-shadow: 0 3px 0 var(--line); }
.ds-v { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 1.25rem; }
.ds-l { font-size: .72rem; color: var(--ink-soft); line-height: 1.25; margin-top: 2px; }
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.badge { display: flex; flex-direction: column; gap: 4px; padding: 12px; box-shadow: 0 3px 0 var(--line); }
.badge:not(.got) { opacity: .6; }
.badge strong { font-size: .92rem; line-height: 1.25; }
.badge .cap { font-size: .76rem; }
.bd-ic { display: grid; place-items: center; width: 46px; height: 46px; border: var(--b) solid var(--line); border-radius: 14px; background: var(--paper-3); }
.badge.got .bd-ic { background: var(--w); color: var(--on); }
.settings { padding: 4px 16px; }
.settings > * + * { border-top: 1.5px solid var(--paper-3); }
.row-set { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-weight: 500; }
.sw small, .row-set small { display: block; font-size: .76rem; color: var(--ink-soft); font-weight: 500; line-height: 1.3; }
.code-ta { width: 100%; padding: 10px 12px; margin: 6px 0 10px; font: 600 .76rem/1.4 var(--m); color: var(--ink); background: var(--paper); border: var(--b) solid var(--line); border-radius: 12px; resize: vertical; }
.tries { display: flex; gap: 10px; flex-wrap: wrap; }
.about { padding: 14px 16px; font-size: .86rem; }
.about .btn { margin-top: 6px; }

/* ---------- Today sheet ---------- */
.td { text-align: center; }
.td-ring { position: relative; display: inline-block; margin: 6px 0 10px; }
.td-ring > span { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.td-ring b { font-size: 1.9rem; line-height: 1; font-weight: 700; }
.td-ring small { font-size: .74rem; color: var(--ink-soft); font-weight: 500; }
.td-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 4px; text-align: left; }
.td-row .card { padding: 10px 12px; box-shadow: 0 3px 0 var(--line); }
.td-row .cap { font-size: .74rem; }
.td-row strong { display: flex; align-items: center; gap: 6px; font-size: 1.05rem; }
.td-row .ic { color: #FF7A2F; }

/* ---------- Welcome ---------- */
.welcome { position: fixed; inset: 0; z-index: 120; overflow: auto; background: var(--bg); }
.welcome:focus { outline: none; }
.w-in { max-width: 480px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top)) 20px calc(36px + env(safe-area-inset-bottom)); text-align: center; }
.w-sil { display: flex; justify-content: center; margin-bottom: 4px; }
.w-in h1 { margin-bottom: 10px; }
.w-in p { color: var(--ink-soft); font-size: .96rem; }
.w-q { margin: 22px 0 12px; font-weight: 700; color: var(--ink) !important; font-size: 1rem !important; }
.wopt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; margin-bottom: 12px; color: var(--ink); }
.wopt .wi { flex: none; display: grid; place-items: center; width: 46px; height: 46px; background: var(--w, var(--teal)); color: var(--on); border: var(--b) solid var(--line); border-radius: 14px; }
.wopt > div { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.wopt strong { font-size: 1rem; }
.wopt span.d { font-size: .85rem; color: var(--ink-soft); font-weight: 500; line-height: 1.35; }
.wopt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.w-skip { margin-top: 6px; font-size: .8rem !important; }

/* small bold labels run tight so Poppins does not look gappy at 12 to 13px */
.un-k, .wb-k, .nd-go, .tab, .tag, .chip, .nd-m, .cap, .pc-need, .tbadge, .wb-t p, .ls-top { letter-spacing: -.015em; word-spacing: .1em; }
