/* This or That (tool page). Everything is scoped under .tot and every tool class starts with t-.
   Colours come from the site.css tokens. The tool adds only: the This fill (berry family), the That fill (leaf family),
   the text colour on those fills, and one warm tone for "ultra-processed" and for points taken away.
   This and That differ in lightness as well as hue in both themes. Only transform and opacity animate. */

/* Width-matched fallbacks for Spline Sans Mono (0.6em per character), so mono labels do not re-wrap when the font arrives. */
@font-face{font-family:"TOT Mono Fallback";src:local("Courier New"),local("CourierNewPSMT");size-adjust:100%}
@font-face{font-family:"TOT Mono Fallback 2";src:local("Consolas");size-adjust:109.13%}

.tot{
  --f-mono:"Spline Sans Mono","TOT Mono Fallback","TOT Mono Fallback 2",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --t-this:#7E2E9E; --t-this-on:#FFFFFF;
  --t-that:#89B075; --t-that-on:#17260F;
  --t-warn:#A4462F;
  --t-this-ink:var(--accent-text); --t-that-ink:var(--leaf-text);
  --t-this-tint:color-mix(in srgb,var(--berry) 15%,var(--surface));
  --t-that-tint:#E5EEDE;
  --t-warn-tint:color-mix(in srgb,var(--t-warn) 11%,var(--surface));
  --t-well:color-mix(in srgb,var(--lavender) 55%,var(--surface));
  --t-r:26px;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .tot{--t-this:#B254D6; --t-this-on:#1A0B20; --t-that:#9DC48A; --t-that-tint:#212E1F; --t-warn:#F0A287}
}
:root[data-theme="dark"] .tot{--t-this:#B254D6; --t-this-on:#1A0B20; --t-that:#9DC48A; --t-that-tint:#212E1F; --t-warn:#F0A287}

/* while the picker is open, tot-app.js adds .t-locked to the root and pads it by the scrollbar width, so nothing shifts */
html.t-locked{overflow:hidden}

/* ---------- shared bits ---------- */
.tot .t-card{background:linear-gradient(160deg,var(--glass-1),var(--glass-2));border-radius:var(--t-r);box-shadow:var(--glass-shadow);min-width:0}
.tot .t-lbl{margin:0;font-family:var(--f-mono);font-size:12px;font-weight:400;line-height:1.4;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2)}
.tot .t-sw{display:inline-block;width:10px;height:10px;border-radius:50%;flex:none}
.tot .t-sw-a{background:var(--t-this)}
.tot .t-sw-b{background:var(--t-that)}
.tot .t-ghost{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 18px;border:0;border-radius:999px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--line-2);color:var(--ink);font-size:15px;font-weight:600;line-height:1.1;transition:box-shadow .2s var(--ease),transform .2s var(--ease)}
.tot .t-ghost:hover{box-shadow:inset 0 0 0 2px var(--ink-2)}
.tot .t-ghost svg{width:17px;height:17px;flex:none}
.tot .t-empty{font-size:14.5px;color:var(--ink-3);padding:10px 0}
.tot .t-sc{display:inline-grid;place-items:center;min-width:50px;height:38px;padding:0 10px;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line);font-family:var(--f-display);font-size:20px;line-height:1;color:var(--ink);font-variant-numeric:lining-nums tabular-nums}

/* ---------- intro ---------- */
.tot .t-intro{padding-bottom:clamp(8px,2vw,20px)}
.tot .t-intro-in{display:grid;gap:18px;max-width:880px}
.tot .t-eyebrow{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.tot .t-intro .display{max-width:13ch}
.tot .t-intro .lead{max-width:50ch}
.tot .t-facts{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.tot .t-facts li{display:inline-flex;align-items:center;gap:9px;min-height:36px;padding:0 14px;border-radius:999px;background:var(--surface);box-shadow:0 0 0 1px var(--line);font-family:var(--f-mono);font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.tot .t-facts li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--berry);flex:none}
.tot .t-facts li:nth-child(even)::before{background:var(--leaf)}
.tot .t-srcline{font-size:15px;line-height:1.55;color:var(--ink-3);max-width:62ch}
.tot .t-secnav{margin-top:clamp(28px,4vw,44px);padding-top:14px;border-top:1px solid var(--line)}
.tot .t-secnav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 8px}
.tot .t-secnav a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 17px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--line);color:var(--ink);text-decoration:none;font-size:15px;transition:background-color .2s var(--ease),box-shadow .2s var(--ease)}
.tot .t-secnav a:hover{background:color-mix(in srgb,var(--berry) 12%,transparent);box-shadow:inset 0 0 0 1.5px var(--line-2)}
.tot .t-secnav a::after{content:"\2193";content:"\2193" / "";font-size:13px;color:var(--ink-3)}
/* the intro motif: This and That as two overlapping circles of dots (desktop only) */
.tot .t-intro-art{display:none}
@media (min-width:960px){
  .tot .t-intro .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,360px);column-gap:clamp(24px,4vw,64px);align-items:center}
  .tot .t-intro-art{display:block;grid-column:2;grid-row:1}
  .tot .t-secnav{grid-column:1 / -1}
}
.tot .t-intro-art svg{width:100%;height:auto;overflow:visible}
.tot .t-art-a{fill:var(--t-this)}
.tot .t-art-b{fill:var(--t-that)}
.tot .t-art-ring{fill:none;stroke:var(--line-2);stroke-width:1}
.tot .t-art-lab{font-family:var(--f-mono);font-size:12px;letter-spacing:.14em;fill:var(--ink-2)}
.tot .t-art-chip{fill:var(--canvas);stroke:var(--line-2)}
.tot .t-art-or{font-family:var(--f-display);font-size:17px;fill:var(--ink-2)}
.tot .t-noscript{margin:0 0 16px;padding:14px 18px;border-radius:16px;background:var(--lavender);color:var(--ink);font-weight:600}

/* ---------- sections ---------- */
.tot .t-sec{padding-block:clamp(56px,8vw,104px) 0}
.tot .t-sec-tool{padding-top:clamp(40px,6vw,72px)}
.tot .t-head{display:grid;gap:12px;max-width:780px;margin-bottom:clamp(24px,3.4vw,40px)}
.tot .t-head .lead{max-width:56ch}
.tot .t-ver{margin-top:2px}

/* ---------- the console: you + goal ---------- */
.tot .t-console{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
@media (min-width:980px){.tot .t-console{grid-template-columns:minmax(0,1.18fr) minmax(0,1fr)}}
.tot .t-you,.tot .t-goalbox{padding:clamp(18px,2.4vw,28px);display:grid;gap:18px;align-content:start}
.tot .t-you-top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px 20px}
.tot .t-age-read{display:flex;align-items:baseline;gap:10px;margin-top:4px}
.tot .t-age-in{width:calc(1.28em + 12px);margin:0 0 0 -6px;padding:2px 6px;border:0;border-radius:14px;background:transparent;font-family:var(--f-display);font-synthesis:none;font-size:clamp(54px,6vw,70px);font-variant-numeric:lining-nums;line-height:1;letter-spacing:-.02em;color:var(--ink);text-align:left;-moz-appearance:textfield;appearance:textfield;transition:background-color .2s var(--ease)}
.tot .t-age-in::-webkit-outer-spin-button,.tot .t-age-in::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.tot .t-age-in:hover{background:var(--t-well)}
.tot .t-age-in:focus{outline:none;background:var(--t-well);box-shadow:0 0 0 2px var(--accent-text)}
.tot .t-age-unit{font-size:16px;color:var(--ink-2)}
.tot .t-hint{margin-top:2px;font-size:13.5px;color:var(--ink-3)}
.tot .t-sexbox{display:grid;gap:8px;justify-items:start}
.tot .t-seg{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:var(--t-well);box-shadow:inset 0 0 0 1px var(--line)}
.tot .t-seg button{min-height:44px;padding:0 20px;border:0;border-radius:999px;background:transparent;color:var(--ink-2);font-size:15.5px;font-weight:600;transition:background-color .2s var(--ease),color .2s var(--ease)}
.tot .t-seg button:hover{color:var(--ink)}
.tot .t-seg button[aria-pressed="true"]{background:var(--ink);color:var(--surface)}

/* the tick ruler: the range input sits over an SVG of 83 ticks, inset by half the thumb width */
.tot .t-ruler{position:relative}
.tot .t-ticks{position:absolute;left:12px;right:12px;top:0;height:44px;pointer-events:none}
.tot .t-ticks svg{display:block;width:100%;height:100%;overflow:visible}
.tot .t-tk{stroke:var(--line-2);stroke-width:1.5;stroke-linecap:round;vector-effect:non-scaling-stroke}
.tot .t-tk.is-major{stroke-width:1.8}
.tot .t-tk.is-on{stroke:var(--accent-text);opacity:.6}
.tot .t-tk.is-on.is-major{opacity:1}
.tot .t-ruler input[type=range]{position:relative;z-index:1;display:block;width:100%;height:44px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:var(--cur-hand,pointer)}
.tot .t-ruler input[type=range]:focus{outline:none}
.tot .t-ruler input[type=range]::-webkit-slider-runnable-track{height:44px;background:transparent}
.tot .t-ruler input[type=range]::-moz-range-track{height:44px;background:transparent}
.tot .t-ruler input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:44px;border-radius:10px;background:var(--berry);border:4px solid var(--surface);box-shadow:0 0 0 1px var(--line-2),0 8px 16px -8px rgba(46,26,23,.55)}
.tot .t-ruler input[type=range]::-moz-range-thumb{width:16px;height:36px;border-radius:10px;background:var(--berry);border:4px solid var(--surface);box-shadow:0 0 0 1px var(--line-2)}
.tot .t-ruler input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 2px var(--accent-text),0 0 0 6px color-mix(in srgb,var(--berry) 28%,transparent)}
.tot .t-ruler input[type=range]:focus-visible::-moz-range-thumb{box-shadow:0 0 0 2px var(--accent-text),0 0 0 6px color-mix(in srgb,var(--berry) 28%,transparent)}
.tot .t-ruler-lab{position:relative;height:18px;margin:4px 12px 0;font-family:var(--f-mono);font-size:11.5px;line-height:18px;color:var(--ink-3)}
.tot .t-ruler-lab span{position:absolute;top:0;transform:translateX(-50%)}
.tot .t-needs{display:flex;flex-wrap:wrap;gap:8px}
.tot .t-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;border-radius:999px;background:var(--t-well);font-size:14px;line-height:1.3;color:var(--ink-2)}
.tot .t-chip b{font-weight:650;color:var(--ink)}
.tot .t-chip i{width:8px;height:8px;border-radius:50%;background:var(--berry);flex:none}
.tot .t-chip-key{background:var(--t-this-tint);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--berry) 30%,transparent)}

.tot .t-goals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tot .t-goal{display:grid;gap:3px;align-content:start;min-height:100px;padding:14px 14px 13px;border:0;border-radius:18px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--line);color:var(--ink);text-align:left;transition:box-shadow .2s var(--ease),background-color .2s var(--ease),transform .2s var(--ease)}
.tot .t-goal:hover{box-shadow:inset 0 0 0 1.5px var(--line-2);transform:translateY(-1px)}
.tot .t-goal svg{width:21px;height:21px;margin-bottom:6px;color:var(--ink-3)}
.tot .t-goal b{font-family:var(--f-display);font-synthesis:none;font-weight:400;font-size:18.5px;line-height:1.15}
.tot .t-goal-sub{font-size:13.5px;line-height:1.35;color:var(--ink-3)}
.tot .t-goal[aria-pressed="true"]{background:var(--lavender);box-shadow:inset 0 0 0 2px var(--accent-text)}
.tot .t-goal[aria-pressed="true"] svg{color:var(--accent-text)}
.tot .t-goal[aria-pressed="true"] .t-goal-sub{color:var(--ink-2)}
.tot .t-goal-note{font-size:14.5px;line-height:1.5;color:var(--ink-2)}

/* ---------- pickers ---------- */
.tot .t-pickers{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:16px}
@media (min-width:760px){.tot .t-pickers{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}}
.tot .t-pick{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;width:100%;min-height:104px;padding:18px 20px;border:0;border-radius:var(--t-r);background:var(--surface);box-shadow:var(--shadow);color:var(--ink);text-align:left;transition:box-shadow .25s var(--ease),transform .25s var(--ease)}
.tot .t-pick:hover{transform:translateY(-1px);box-shadow:var(--shadow),inset 0 0 0 1.5px var(--line-2)}
/* a soft wash of the side's colour behind the This / That disc */
.tot .t-pick-a{background:radial-gradient(80% 140% at 0% 50%,color-mix(in srgb,var(--berry) 30%,transparent),transparent 70%),linear-gradient(160deg,var(--glass-1),var(--glass-2));box-shadow:var(--glass-shadow)}
.tot .t-pick-b{background:radial-gradient(80% 140% at 0% 50%,color-mix(in srgb,var(--leaf) 34%,transparent),transparent 70%),linear-gradient(160deg,var(--glass-1),var(--glass-2));box-shadow:var(--glass-shadow)}
.tot .t-side{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;font-family:var(--f-mono);font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.tot .t-pick-a .t-side{background:var(--t-this);color:var(--t-this-on)}
.tot .t-pick-b .t-side{background:var(--t-that);color:var(--t-that-on)}
.tot .t-pick-body{min-width:0}
.tot .t-pick-name{display:block;font-family:var(--f-display);font-synthesis:none;font-size:clamp(20px,2.1vw,25px);line-height:1.15;overflow-wrap:anywhere}
.tot .t-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.tot .t-tag{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:var(--t-well);font-family:var(--f-mono);font-size:11.5px;line-height:1.3;letter-spacing:.03em;color:var(--ink-2);white-space:nowrap}
.tot .t-tag.is-up{background:var(--t-warn-tint);color:var(--t-warn);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--t-warn) 40%,transparent)}
.tot .t-change{display:inline-flex;align-items:center;min-height:38px;padding:0 15px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--line-2);font-size:14px;font-weight:600;color:var(--accent-text);white-space:nowrap}
.tot .t-pick:hover .t-change{box-shadow:inset 0 0 0 2px var(--accent-text)}
.tot .t-or{position:absolute;left:50%;top:50%;z-index:1;display:grid;place-items:center;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;background:var(--canvas);box-shadow:0 0 0 1px var(--line);font-family:var(--f-display);font-size:16px;color:var(--ink-2);pointer-events:none}

/* ---------- try a pair ---------- */
.tot .t-pairs-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:8px 16px;margin-top:18px}
.tot .t-pairs-row > .kicker{padding-top:13px}
.tot .t-pairs{display:flex;flex-wrap:wrap;gap:8px}
.tot .t-pair{min-height:44px;padding:0 16px;border:0;border-radius:999px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--line);color:var(--ink-2);font-size:14.5px;white-space:nowrap;transition:box-shadow .2s var(--ease),color .2s var(--ease),background-color .2s var(--ease)}
.tot .t-pair:hover{box-shadow:inset 0 0 0 1.5px var(--line-2);color:var(--ink)}
.tot .t-pair[aria-current="true"]{background:var(--ink);color:var(--surface);box-shadow:none}
@media (max-width:759px){
  .tot .t-pairs-row{grid-template-columns:minmax(0,1fr);gap:10px}
  .tot .t-pairs-row > .kicker{padding-top:0}
  .tot .t-pairs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(-1 * clamp(16px,4vw,32px));padding:2px clamp(16px,4vw,32px) 4px}
  .tot .t-pairs::-webkit-scrollbar{display:none}
  .tot .t-pair{flex:none}
}

/* ---------- verdict ---------- */
.tot .t-verdict{margin-top:18px;padding:clamp(20px,3vw,36px);display:grid;gap:22px}
.tot .t-vtitle{font-family:var(--f-display);font-synthesis:none;font-weight:400;font-size:clamp(26px,3.3vw,40px);line-height:1.1;letter-spacing:-.015em;text-wrap:balance}
.tot .t-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tot .t-tile{position:relative;display:grid;grid-template-rows:auto auto 1fr;gap:10px;min-height:196px;padding:18px 18px 16px;border-radius:22px;background:var(--t-this-tint);color:var(--ink);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--t-this) 20%,transparent)}
.tot .t-tile-b{background:var(--t-that-tint);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--t-that) 34%,transparent)}
.tot .t-tile-a.is-win{box-shadow:inset 0 0 0 2px var(--t-this)}
.tot .t-tile-b.is-win{box-shadow:inset 0 0 0 2px var(--t-that)}
.tot .t-tile-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;min-height:26px}
.tot .t-tile-side{display:inline-flex;align-items:center;gap:8px;font-family:var(--f-mono);font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--t-this-ink)}
.tot .t-tile-b .t-tile-side{color:var(--t-that-ink)}
.tot .t-tile-side i{width:9px;height:9px;border-radius:50%;background:var(--t-this)}
.tot .t-tile-b .t-tile-side i{background:var(--t-that)}
.tot .t-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 11px 5px 9px;border-radius:999px;background:var(--ink);color:var(--surface);font-size:12.5px;font-weight:600;line-height:1.2;white-space:nowrap}
.tot .t-badge svg{width:13px;height:13px;flex:none}
.tot .t-tile-name{font-size:16px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.tot .t-tile-foot{display:grid;gap:4px;align-self:end}
.tot .t-tile-score{display:flex;align-items:baseline;gap:8px;white-space:nowrap}
.tot .t-num{font-family:var(--f-display);font-synthesis:none;font-size:clamp(60px,8.2vw,100px);line-height:.92;letter-spacing:-.015em;color:var(--t-this-ink);font-variant-numeric:lining-nums tabular-nums}
.tot .t-tile-b .t-num{color:var(--t-that-ink)}
.tot .t-of{font-family:var(--f-mono);font-size:15px;color:var(--ink-2)}
.tot .t-tile-band{font-size:14px;font-weight:600;color:var(--ink-2)}
.tot .t-reasons{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:10px}
.tot .t-reason{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;align-items:start;padding:12px 16px 12px 12px;border-radius:16px;background:var(--t-well);font-size:16px;line-height:1.45;color:var(--body)}
.tot .t-ric{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:color-mix(in srgb,var(--leaf) 28%,var(--surface));color:var(--leaf-text)}
.tot .t-ric svg{width:16px;height:16px}
.tot .t-rtext{padding-top:4px}
.tot .t-reason.is-me{background:var(--t-this-tint);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--berry) 34%,transparent)}
.tot .t-reason.is-me .t-ric{background:color-mix(in srgb,var(--berry) 28%,var(--surface));color:var(--accent-text)}
.tot .t-rwho{display:block;margin-top:5px;font-family:var(--f-mono);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-text)}
.tot .t-vfoot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 20px;padding-top:18px;border-top:1px solid var(--line)}
.tot .t-report{display:inline-flex;align-items:center;min-height:44px;font-size:15px;font-weight:600}
.tot .t-vfoot .t-ghost[hidden] + .t-report{margin-left:auto}

/* ---------- better alternatives ---------- */
.tot .t-swaps{margin-top:18px;padding:clamp(20px,2.8vw,32px)}
.tot .t-cardh{margin-bottom:18px;font-family:var(--f-display);font-synthesis:none;font-weight:400;font-size:clamp(22px,2.3vw,27px);line-height:1.15}
.tot .t-swcols{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
@media (min-width:860px){.tot .t-swcols{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tot .t-swh{display:flex;align-items:center;gap:9px;margin-bottom:10px;font-size:14.5px;font-weight:600;line-height:1.35;color:var(--ink-2)}
.tot .t-swlist{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tot .t-swi{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:10px 10px 10px 16px;border-radius:16px;background:var(--t-well)}
.tot .t-swi b{display:block;font-size:15.5px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.tot .t-swi small{display:block;margin-top:2px;font-family:var(--f-mono);font-size:11.5px;letter-spacing:.03em;color:var(--ink-3)}
.tot .t-use{min-height:44px;padding:0 18px;border:0;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:14.5px;font-weight:600;transition:background-color .2s var(--ease),transform .2s var(--ease)}
.tot .t-use:hover{background:var(--accent-hover);transform:translateY(-1px)}

/* ---------- details: tabs ---------- */
.tot .t-detail{margin-top:18px;overflow:hidden}
.tot .t-detail-sum{list-style:none;cursor:var(--cur-hand,pointer);display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:68px;padding:16px clamp(20px,2.8vw,32px);font-family:var(--f-display);font-synthesis:none;font-size:clamp(18px,1.8vw,21px);line-height:1.25}
.tot .t-detail-sum::-webkit-details-marker{display:none}
.tot .t-detail-sum::after{content:"+";flex:none;font-family:var(--f-mono);font-size:24px;line-height:1;color:var(--ink-2);transition:transform .3s var(--ease)}
.tot .t-detail[open] .t-detail-sum::after{transform:rotate(45deg)}
.tot .t-detail[open] .t-detail-sum{border-bottom:1px solid var(--line)}
.tot .t-detail-sum:focus-visible{outline-offset:-4px;border-radius:var(--t-r)}
.tot .t-detail-in{padding:clamp(16px,2.4vw,26px) clamp(20px,2.8vw,32px) clamp(22px,2.8vw,32px)}
.tot .t-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -4px 20px;padding:4px}
@media (max-width:620px){.tot .t-tabs{padding-right:40px;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}}
.tot .t-tabs::-webkit-scrollbar{display:none}
.tot .t-tab{flex:none;min-height:44px;padding:0 18px;border:0;border-radius:999px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--line);color:var(--ink-2);font-size:15px;font-weight:600;white-space:nowrap}
.tot .t-tab:hover{color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--line-2)}
.tot .t-tab[aria-selected="true"]{background:var(--ink);color:var(--surface);box-shadow:none}
.tot .t-panel:focus-visible{outline-offset:6px}
.tot .t-legend{display:flex;flex-wrap:wrap;gap:8px 20px;margin-bottom:14px;font-size:14px;color:var(--ink-2)}
.tot .t-legend span{display:inline-flex;align-items:center;gap:8px}
.tot .t-view{display:flex;justify-content:flex-end;margin-top:16px}
.tot .t-foot-note{margin-top:14px;font-size:13.5px;color:var(--ink-3)}

/* nutrients as bars: an ARIA table laid out with grid areas */
.tot .t-nt{display:grid}
.tot .t-nrow{display:grid;grid-template-columns:minmax(120px,200px) minmax(0,1fr) 64px;grid-template-areas:"l a pa" "l b pb";column-gap:18px;row-gap:5px;align-items:center;padding:10px 0;border-bottom:1px dashed var(--line)}
.tot .t-nt [role=rowgroup]:last-child .t-nrow:last-child{border-bottom:0}
.tot .t-nc-l{grid-area:l}
.tot .t-nc-a{grid-area:a}
.tot .t-nc-b{grid-area:b}
.tot .t-nc-pa{grid-area:pa}
.tot .t-nc-pb{grid-area:pb}
.tot .t-nhead{grid-template-columns:minmax(120px,200px) minmax(0,1fr) auto;grid-template-areas:"l a pa";padding:0 0 8px;border-bottom:1px solid var(--line);font-family:var(--f-mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
.tot .t-nhead .t-nc-pa{text-align:right}
.tot .t-nl{font-size:14.5px;font-weight:600;line-height:1.3}
.tot .t-nl small{display:block;margin-top:1px;font-size:12.5px;font-weight:400;color:var(--ink-3)}
.tot .t-bar{display:grid;grid-template-columns:minmax(0,1fr) 96px;align-items:center;gap:10px}
.tot .t-tr{display:block;height:10px}
.tot .t-fl{display:block;height:10px;min-width:2px;border-radius:0 5px 5px 0}
.tot .t-bar-a .t-fl{background:var(--t-this)}
.tot .t-bar-b .t-fl{background:var(--t-that)}
.tot .t-vl{font-size:13.5px;text-align:right;white-space:nowrap;color:var(--ink);font-variant-numeric:tabular-nums}
.tot .t-vl.is-na{font-size:12.5px;color:var(--ink-3)}
.tot .t-np{font-family:var(--f-mono);font-size:12.5px;text-align:right;color:var(--ink-2)}
@media (max-width:620px){
  .tot .t-nrow{grid-template-columns:minmax(0,1fr) 50px;grid-template-areas:"l l" "a pa" "b pb";column-gap:12px}
  .tot .t-nhead{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"a pa"}
  .tot .t-nhead .t-nc-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .tot .t-bar{grid-template-columns:minmax(0,1fr) 86px}
}
/* nutrients as a real table */
.tot .t-tblwrap{overflow-x:auto;border-radius:12px}
.tot .t-tblwrap:focus-visible{outline-offset:2px}
.tot .t-dt{width:100%;min-width:540px;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.tot .t-dt th,.tot .t-dt td{padding:10px;border-bottom:1px solid var(--line);text-align:right}
.tot .t-dt td{white-space:nowrap}
.tot .t-dt th:first-child,.tot .t-dt td:first-child{text-align:left}
.tot .t-dt thead th{font-family:var(--f-mono);font-size:11.5px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.tot .t-dt tbody th{font-weight:600}

/* how the score is built, and source and checks */
.tot .t-bk{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
@media (min-width:860px){.tot .t-bk{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tot .t-bkc{min-width:0;padding:18px;border-radius:18px;background:var(--t-well)}
.tot .t-bkh{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:650;line-height:1.3}
.tot .t-tot{margin:6px 0 12px;font-family:var(--f-mono);font-size:12.5px;line-height:1.5;color:var(--ink-2)}
.tot .t-wf{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.tot .t-wfr{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 48px;gap:10px;align-items:center;font-size:14px}
.tot .t-wl{color:var(--ink-2);overflow-wrap:anywhere}
.tot .t-wbar{position:relative;height:10px}
.tot .t-wbar i{position:absolute;left:0;top:0;height:10px;border-radius:3px}
.tot .t-wbar i.is-base{background:var(--line-2)}
.tot .t-wbar i.is-pos{background:var(--leaf)}
.tot .t-wbar i.is-neg{background:var(--t-warn)}
.tot .t-wv{text-align:right;font-family:var(--f-mono);font-size:12.5px;color:var(--ink-2)}
.tot .t-wv.is-pos{color:var(--leaf-text)}
.tot .t-wv.is-neg{color:var(--t-warn)}
.tot .t-wsep{margin:12px 0 6px;padding-top:10px;border-top:1px solid var(--line);font-family:var(--f-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
.tot .t-st{display:inline-flex;align-items:center;gap:7px;margin-top:10px;padding:4px 12px;border-radius:999px;background:var(--surface);box-shadow:0 0 0 1px var(--line);font-size:13px;font-weight:600}
.tot .t-st i{width:8px;height:8px;border-radius:50%}
.tot .t-st-0 i,.tot .t-s0{background:var(--leaf)}
.tot .t-st-1 i,.tot .t-s1{background:var(--berry)}
.tot .t-st-2 i,.tot .t-s2{background:var(--ink-dot)}
.tot .t-dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px 14px;margin:14px 0 0;font-size:14px;line-height:1.45}
.tot .t-dl dt{color:var(--ink-3)}
.tot .t-dl dd{margin:0;overflow-wrap:anywhere}
.tot .t-dl code{font-family:var(--f-mono);font-size:13px}
.tot .t-notes{margin:14px 0 0;padding-left:18px;display:grid;gap:6px;font-size:14px;color:var(--ink-2)}
.tot .t-xl{display:grid;gap:5px;margin-top:14px;font-size:14px;color:var(--ink-2)}
.tot .t-xl > b{color:var(--ink);font-size:14px}
.tot .t-xrow{display:grid;grid-template-columns:14px minmax(0,1fr);gap:8px;align-items:start}
.tot .t-xl svg{width:14px;height:14px;margin-top:3px;color:var(--leaf-text)}
.tot .t-xdot{display:block;width:6px;height:6px;margin:8px 4px 0;border-radius:50%;background:var(--ink-3)}
.tot .t-xl em{font-style:normal;font-family:var(--f-mono);font-size:12px;color:var(--ink-3);white-space:nowrap}

/* ---------- picker: a dialog, a bottom sheet on phones and a centred panel from 760px ---------- */
.tot .t-sheet{position:fixed;inset:auto 0 0 0;width:100%;max-width:none;height:min(90dvh,820px);max-height:none;margin:0;padding:0;border:0;border-radius:28px 28px 0 0;background:var(--surface);color:var(--ink);box-shadow:0 -24px 60px -24px rgba(20,10,24,.5);overflow:hidden}
.tot .t-sheet[open]{display:block;animation:t-sheet-in .4s var(--ease) both}
.tot .t-sheet::backdrop{background:rgba(32,16,38,.42);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
:root[data-scheme="dark"] .tot .t-sheet::backdrop{background:rgba(6,2,8,.62)}
@keyframes t-sheet-in{from{opacity:0;transform:translate3d(0,28px,0)}to{opacity:1;transform:none}}
@media (min-width:760px){
  .tot .t-sheet{inset:0;width:min(780px,calc(100% - 48px));height:min(86dvh,820px);margin:auto;border-radius:28px;box-shadow:0 40px 90px -36px rgba(20,10,24,.6),0 0 0 1px var(--line)}
}
.tot .t-sheet-in{display:flex;flex-direction:column;height:100%;min-height:0;padding:18px clamp(16px,3vw,26px) calc(10px + env(safe-area-inset-bottom,0px))}
.tot .t-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.tot .t-sheet-title{font-family:var(--f-display);font-synthesis:none;font-weight:400;font-size:clamp(22px,2.4vw,27px);line-height:1.15}
.tot .t-x{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:50%;background:var(--t-well);color:var(--ink)}
.tot .t-x:hover{background:var(--lavender)}
.tot .t-x svg{width:19px;height:19px}
.tot .t-search{display:flex;align-items:center;gap:10px;flex:none;margin-top:14px;padding:0 16px;border-radius:16px;background:var(--canvas);box-shadow:inset 0 0 0 1.5px var(--line-2)}
.tot .t-search:focus-within{box-shadow:inset 0 0 0 2px var(--accent-text),0 0 0 4px color-mix(in srgb,var(--berry) 22%,transparent)}
.tot .t-search svg{width:20px;height:20px;flex:none;color:var(--ink-3)}
.tot .t-search input{flex:1;min-width:0;min-height:52px;padding:0;border:0;background:transparent;font-size:17px;color:var(--ink);outline:none}
.tot .t-search input::placeholder{color:var(--ink-3);opacity:1}
.tot .t-filters{display:flex;flex:none;gap:6px;overflow-x:auto;padding:10px 40px 4px 2px;margin-inline:-2px;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent)}
.tot .t-filters::-webkit-scrollbar{display:none}
.tot .t-filters + .t-filters{padding-top:4px}
.tot .t-fb{flex:none;min-height:44px;padding:0 15px;border:0;border-radius:999px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--line);color:var(--ink-2);font-size:14.5px;white-space:nowrap}
.tot .t-fb:hover{color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--line-2)}
.tot .t-fb[aria-pressed="true"]{background:var(--ink);color:var(--surface);box-shadow:none}
.tot .t-fb:focus-visible{outline-offset:-2px}
.tot .t-lhead{display:flex;justify-content:space-between;gap:12px;flex:none;padding:14px 6px 8px;border-bottom:1px solid var(--line);font-family:var(--f-mono);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
.tot .t-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin-inline:-6px;padding:0 6px 6px}
.tot .t-items{list-style:none;margin:0;padding:0}
.tot .t-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;width:100%;min-height:62px;padding:10px 6px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:left}
.tot .t-item:hover{background:var(--t-well)}
.tot .t-item:focus-visible{outline-offset:-2px}
.tot .t-item-main{min-width:0}
.tot .t-item-name{font-size:16px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.tot .t-item small{display:block;margin-top:2px;font-size:13px;color:var(--ink-3)}
.tot .t-selmark{display:inline-flex;align-items:center;margin-left:8px;padding:1px 8px;border-radius:999px;background:var(--lavender);font-family:var(--f-mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-text);vertical-align:2px}
.tot .t-item[aria-current="true"]{background:color-mix(in srgb,var(--lavender) 45%,transparent)}
.tot .t-more-btn{display:flex;margin:14px auto 6px}

/* ---------- the data section ---------- */
.tot .t-data-top{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
@media (min-width:900px){.tot .t-data-top{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}}
.tot .t-globe-card{position:relative;overflow:hidden;display:grid}
.tot .t-globe{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden}
@media (min-width:560px){.tot .t-globe{aspect-ratio:4/3}}
@media (min-width:900px){.tot .t-globe{aspect-ratio:auto;min-height:460px;height:100%}}
/* A still, dotted sphere the size of the drawn globe, shown until the canvas draws its first frame (and without JS).
   The canvas uses a diameter of min(72% of the height, 62% or 54% of the width, 560px), with 54% once the globe box is
   560px wide; the SVG box below has those limits and "meet" fits the circle to the smaller side. The globe box reaches
   560px at a 609px viewport, and again at 1001px in the two-column layout (no container query: they slow the first paint). */
.tot .t-globe-ph{position:absolute;left:50%;top:50%;width:min(62%,560px);height:min(72%,560px);transform:translate(-50%,-50%);overflow:visible;pointer-events:none;opacity:.6;transition:opacity .8s var(--ease)}
@media (min-width:609px) and (max-width:899.98px),(min-width:1001px){.tot .t-globe-ph{width:min(54%,560px)}}
.tot .t-gph-hi{stop-color:var(--surface)}
.tot .t-gph-lo{stop-color:var(--lavender)}
.tot .t-gph-dot{fill:var(--ink-dot)}
.tot .t-gph-rim{stroke:var(--line-2);stroke-width:1;vector-effect:non-scaling-stroke}
.tot .t-globe.is-drawn .t-globe-ph{opacity:0}
.tot .t-globe canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:pan-y;cursor:var(--cur-hand,grab)}
.tot .t-globe canvas:active{cursor:var(--cur-hand,grabbing)}
.tot .t-glabs{position:absolute;inset:0;pointer-events:none}
.tot .t-glab{position:absolute;left:0;top:0;opacity:0;padding:6px 11px 6px 10px;border-left:2px solid var(--berry);border-radius:4px 10px 10px 4px;background:var(--glass);box-shadow:0 0 0 1px var(--line),0 10px 22px -14px rgba(46,26,23,.6);white-space:nowrap;transition:opacity .5s var(--ease)}
.tot .t-glab.is-r{border-left:0;border-right:2px solid var(--berry);border-radius:10px 4px 4px 10px;text-align:right}
.tot .t-glab b{display:block;font-family:var(--f-display);font-weight:400;font-size:14px;line-height:1.25;color:var(--ink)}
.tot .t-glab span{display:block;font-family:var(--f-mono);font-size:11px;line-height:1.4;color:var(--ink-2)}
@media (max-width:559px){
  .tot .t-glab{padding:4px 8px 4px 7px}
  .tot .t-glab b{font-size:12.5px}
  .tot .t-glab span{font-size:10px}
}
.tot .t-globe-cap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:0 20px 18px}
@media (min-width:900px){.tot .t-globe-cap{position:absolute;left:28px;right:28px;bottom:22px;padding:0;pointer-events:none}}
.tot .t-globe-hint{font-size:13.5px;color:var(--ink-3)}
.tot .t-kpis{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
@media (min-width:900px){.tot .t-kpis{grid-template-columns:minmax(0,1fr)}}
.tot .t-kpi{display:grid;align-content:end;gap:10px;padding:clamp(20px,2.6vw,30px)}
.tot .t-kpi-n{font-family:var(--f-display);font-synthesis:none;font-size:clamp(52px,5.8vw,80px);line-height:.95;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:lining-nums tabular-nums}
.tot .t-kpi-t{max-width:32ch;font-size:15.5px;line-height:1.5;color:var(--ink-2)}
.tot .t-kpi:first-child .t-kpi-n{color:var(--accent-text)}
.tot .t-dgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:16px}
@media (min-width:900px){.tot .t-dgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tot .t-dcard{display:grid;gap:14px;align-content:start;padding:clamp(20px,2.6vw,30px)}
.tot .t-dh{font-family:var(--f-display);font-synthesis:none;font-weight:400;font-size:clamp(21px,2vw,25px);line-height:1.15}
.tot .t-cs{margin-top:-6px;font-size:14.5px;line-height:1.5;color:var(--ink-3)}
.tot .t-hb{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.tot .t-hbr{display:grid;grid-template-columns:minmax(96px,138px) minmax(0,1fr) 46px;gap:12px;align-items:center;font-size:14.5px}
.tot .t-hbr-wide{grid-template-columns:minmax(150px,220px) minmax(0,1fr) 46px}
.tot .t-hl{color:var(--ink-2);line-height:1.3;overflow-wrap:anywhere}
.tot .t-hv{text-align:right;font-family:var(--f-mono);font-size:13px;color:var(--ink)}
.tot .t-hbt{display:flex;gap:2px;height:14px}
.tot .t-hbt i{display:block;height:100%;border-radius:0 4px 4px 0}
.tot .t-hbt i.is-solid{background:var(--t-this)}
.tot .t-hbt i.is-solid:not(:last-child){border-radius:0}
.tot .t-hbt i.is-stripe{background:repeating-linear-gradient(135deg,var(--t-this) 0 2px,transparent 2px 5px);box-shadow:inset 0 0 0 1px var(--t-this)}
.tot .t-hbt i.is-n{background:var(--ink-3)}
.tot .t-hbt i.is-up{background:var(--t-warn)}
@media (max-width:480px){.tot .t-hbr-wide{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) 42px}}
.tot .t-note{padding:13px 15px;border-radius:14px;background:var(--t-well);font-size:14px;line-height:1.55;color:var(--ink-2)}
.tot .t-note b{color:var(--ink)}
.tot .t-srcs{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tot .t-srow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 16px;border-radius:14px;background:var(--t-well)}
.tot .t-srow b{display:block;font-size:15px;font-weight:600;line-height:1.3}
.tot .t-srow small{display:block;margin-top:2px;font-size:13px;line-height:1.4;color:var(--ink-3)}
.tot .t-srow-n{font-family:var(--f-display);font-size:27px;line-height:1;color:var(--ink);font-variant-numeric:lining-nums tabular-nums}
.tot .t-vbar{display:flex;gap:2px;height:22px;border-radius:8px;overflow:hidden}
.tot .t-vbar i{display:block;height:100%}
.tot .t-slegend{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:14.5px}
.tot .t-slegend li{display:grid;grid-template-columns:14px minmax(0,1fr) auto;gap:10px;align-items:center}
.tot .t-slegend i{width:12px;height:12px;border-radius:4px}
.tot .t-slegend b{font-family:var(--f-mono);font-size:13.5px;font-weight:500}
.tot .t-more{border-radius:14px;background:var(--t-well)}
.tot .t-more summary{list-style:none;cursor:var(--cur-hand,pointer);display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:50px;padding:10px 16px;font-size:15px;font-weight:600}
.tot .t-more summary::-webkit-details-marker{display:none}
.tot .t-more summary::after{content:"+";flex:none;font-family:var(--f-mono);font-size:20px;line-height:1;color:var(--ink-2);transition:transform .3s var(--ease)}
.tot .t-more[open] summary::after{transform:rotate(45deg)}
.tot .t-more-in{display:grid;gap:10px;padding:0 16px 16px;font-size:14px;line-height:1.5;color:var(--ink-2)}
.tot .t-more-in b{color:var(--ink);font-weight:600}
.tot .t-clist{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.tot .t-clist li{padding-top:10px;border-top:1px dashed var(--line-2)}

/* ---------- method and limits ---------- */
.tot .t-mgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}
.tot .t-mcard{display:grid;gap:12px;align-content:start;padding:clamp(22px,2.6vw,30px)}
.tot .t-mnum{font-family:var(--f-mono);font-size:12px;letter-spacing:.12em;color:var(--accent-text)}
.tot .t-mcard h3{font-family:var(--f-display);font-synthesis:none;font-weight:400;font-size:clamp(21px,2vw,24px);line-height:1.18}
.tot .t-mcard p{font-size:15.5px;line-height:1.6;color:var(--body)}
.tot .t-mcard .t-ref{margin-top:4px;padding-top:12px;border-top:1px solid var(--line);font-family:var(--f-mono);font-size:12px;line-height:1.6;letter-spacing:.02em;color:var(--ink-3)}
.tot .t-lims{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:16px}
.tot .t-lim{display:grid;gap:10px;align-content:start;padding:clamp(22px,2.4vw,28px)}
.tot .t-lim::before{content:"";width:30px;height:4px;margin-bottom:6px;border-radius:2px;background:var(--t-this)}
.tot .t-lim:nth-child(even)::before{background:var(--t-that)}
.tot .t-lim-h{font-family:var(--f-display);font-synthesis:none;font-weight:400;font-size:21px;line-height:1.2}
.tot .t-lim p{font-size:15px;line-height:1.6;color:var(--body)}

/* ---------- phones ---------- */
@media (max-width:620px){
  .tot .t-facts{gap:6px}
  .tot .t-facts li{min-height:32px;padding:0 11px;gap:7px;font-size:11px;letter-spacing:.05em}
  /* picker cards: name and Change on one line, the tags under them */
  .tot .t-pick{grid-template-columns:44px minmax(0,1fr) auto;column-gap:12px;row-gap:8px;align-items:start;padding:16px 14px 16px 16px;min-height:0}
  .tot .t-pick-body{display:contents}
  .tot .t-side{grid-column:1;grid-row:1 / span 2;align-self:center;width:44px;height:44px;font-size:10px}
  .tot .t-pick-name{grid-column:2;grid-row:1;align-self:center;font-size:20px}
  .tot .t-change{grid-column:3;grid-row:1;align-self:center;min-height:34px;padding:0 12px;font-size:13.5px}
  .tot .t-tags{grid-column:2 / span 2;grid-row:2;margin-top:0}
  .tot .t-tag{font-size:11px;padding:3px 9px}
  .tot .t-tiles{gap:8px}
  .tot .t-tile{min-height:168px;padding:16px 13px 13px;border-radius:18px}
  .tot .t-badge{position:absolute;top:-11px;right:10px;padding:4px 9px 4px 8px;font-size:11.5px;box-shadow:0 0 0 3px var(--surface)}
  .tot .t-num{font-size:58px}
  .tot .t-of{font-size:13px}
  .tot .t-tile-band{font-size:13px}
  .tot .t-tile-name{font-size:15px}
  .tot .t-reason{font-size:15.5px}
  .tot .t-goal{min-height:0;padding:13px 12px 12px}
  .tot .t-goal b{font-size:17px}
  .tot .t-seg button{padding:0 16px}
  .tot .t-swi{gap:8px;padding:8px 8px 8px 14px}
  .tot .t-swi .t-sc{min-width:44px;height:36px;font-size:18px}
  .tot .t-use{padding:0 14px}
  .tot .t-wfr{grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) 42px;gap:8px}
  .tot .t-dl{grid-template-columns:minmax(0,1fr)}
  .tot .t-dl dt{margin-top:4px}
}
@media (max-width:380px){
  .tot .t-num{font-size:52px}
  .tot .t-tile{padding:13px 11px 12px}
  .tot .t-goals{gap:8px}
  .tot .t-goal-sub{font-size:13px}
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion:reduce){
  .tot .t-sheet[open]{animation:none}
  .tot .t-glab{transition:none}
}
