/* simple-v2-1113 chrome.css: the resolved Earth Main (g1-v47) top bar, headline strip, tabs, rail, drawer and sidebar in ONE file.
   Replaces the g1 cascade (v35-map, v34, v35, v44, hl, v46-sections, v47-tags, v47-polish). ds-v02 tokens only. Loads after app.css. */

/* ---------- icons: Phosphor, currentColor only ---------- */
svg.ic { fill: currentColor !important; stroke: none !important; stroke-width: 0 !important; flex: none; }
.ic { width: var(--ic); height: var(--ic); }
.ic-sm { width: var(--ic-sm); height: var(--ic-sm); }
.ic-md { width: var(--ic-md); height: var(--ic-md); }
.ib svg.ic, .tab svg.ic { width: var(--ic-md); height: var(--ic-md); }
:focus-visible { outline: var(--focus-w) solid var(--focus-color) !important; box-shadow: none !important; }
.tab:focus-visible, .v35-row:focus-visible, .v35-rt:focus-visible { outline-offset: calc(-1 * var(--focus-w)); }

/* ---------- top bar ---------- */
.hdr { display: flex; align-items: center; position: relative; overflow: hidden; height: calc(var(--topbar-h) + var(--safe-t)); padding: var(--safe-t) 14px 0 14px; gap: 0; background: var(--paper); border-bottom: 1px solid var(--ink); }
.hdr .brand { flex: 0 0 auto; display: flex; align-items: center; min-width: 0; height: 100%; color: var(--ink); text-decoration: none; position: relative; z-index: 2; }
.hdr .brand .wm { display: block; margin: 0; font: 700 19px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.hdr .ib { flex: 0 0 var(--tap); position: relative; z-index: 2; color: var(--ink); }
.hdr .v35-open { margin-left: 4px; }
.hdr .v35-theme { margin-left: 0; }
.v35-mono { display: none; font: var(--w-heavy) var(--t-label-size)/var(--t-label-lh) var(--font-ui); }

/* day robot: head only, the bar cuts the body. js/chrome.js sets --s, left and top. */
.rb { position: relative; display: block; width: var(--s, 160px); height: var(--s, 160px); flex: none; }
.rb i { position: absolute; inset: 0; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; background: var(--paper); }
.rb img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; animation: none; }
.hdr .hrb { position: absolute; z-index: 1; right: 10px; top: calc(var(--safe-t) + 6px); --s: 150px; width: 150px; height: 150px; flex: none; margin: 0; overflow: visible; pointer-events: none; } /* 1114r: h-v02 exactly, the bar clips the body at the neck */
/* 1118rbw (his #194144321): dark-mode robot override removed, robot stays white with black lines in dark */

/* ---------- headline strip (hl.js) ---------- */
:root { --hl-h-crawl: 44px; }
.hl { display: flex; align-items: center; gap: var(--s-2); flex: 0 0 auto; box-sizing: border-box; width: 100%; min-width: 0; height: var(--hl-h-crawl); margin: 0; padding: 0 var(--s-1) 0 var(--gutter); background: var(--paper); color: var(--ink); border: 0; border-bottom: var(--b-hair); overflow: hidden; position: relative; z-index: 3; font-family: var(--font-ui); }
.hl[hidden] { display: none; }
.hl ul { list-style: none; margin: 0; padding: 0; }
.hl a, .hl a:hover, .hl a:visited { color: var(--ink); text-decoration: none !important; font-size: var(--t-label-size); line-height: var(--t-label-lh, 20px); font-weight: var(--w-semibold); }
.hl-pz { flex: 0 0 var(--tap); width: var(--tap); height: var(--tap); display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; margin-block: -4px; -webkit-tap-highlight-color: transparent; }
.hl-pz svg { width: 20px; height: 20px; fill: currentColor; }
.hl .hl-tag { flex: 0 0 auto; align-self: stretch; display: flex; align-items: center; margin-left: calc(-1 * var(--gutter)); padding: 0 var(--s-3) 0 var(--gutter); background: var(--paper); color: var(--ink-2); border-right: 1px solid var(--line); font-size: 14px; font-weight: var(--w-semibold); letter-spacing: .06em; text-transform: none; font-variant-caps: all-small-caps; }
.hl-belt { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.hl-track { display: inline-flex; animation: hlcrawl var(--hl-dur, 60s) linear 1.5s infinite; will-change: transform; }
.hl-a, .hl-b { display: inline-flex; flex: 0 0 auto; }
.hl li { display: block; }
.hl--crawl a { display: block; min-height: var(--hl-h-crawl); line-height: var(--hl-h-crawl); padding: 0 var(--s-6, 32px) 0 0; white-space: nowrap; }
.hl a:focus-visible, .hl button:focus-visible { outline: 2px solid var(--ink) !important; outline-offset: -2px; }
.hl[data-paused="true"] .hl-track, .hl:has(a:focus-visible) .hl-track { animation-play-state: paused; }
@media (hover: hover) { .hl:hover .hl-track { animation-play-state: paused; } }
@keyframes hlcrawl { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--hl-dist, 100%))); } }
@media (prefers-reduced-motion: reduce) {
  .hl[data-paused="true"] .hl-belt { overflow-x: auto; scrollbar-width: none; }
  .hl[data-paused="true"] .hl-track { animation: none; transform: none; }
  .hl[data-paused="true"] .hl-b { display: none; }
}
.vtg-sw { display: inline-block; margin-right: var(--s-2); color: var(--ink-2); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: var(--w-semibold); white-space: nowrap; vertical-align: baseline; position: relative; }

/* ---------- bottom tabs (phone < 600) ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--paper); border-top: var(--b-hair); transition: transform var(--m); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); min-height: var(--tabbar-h); min-width: var(--tap); color: var(--ink-2); text-decoration: none; }
.tab[aria-current=page] { color: var(--ink); }
.tab span, .v35-rt span { font: var(--w-semibold) var(--t-tab-size)/var(--t-tab-lh) var(--font-ui); letter-spacing: 0; }
.tab .on, .v35-rt .on { display: none; }
.tab[aria-current=page] .on, .v35-rt[aria-current=page] .on { display: block; }
.tab[aria-current=page] .off, .v35-rt[aria-current=page] .off { display: none; }
.v35-rail { display: none; }

/* ---------- drawer (phone, tablet overlay) and sidebar (desktop): one element ---------- */
html.v35-locked { overflow: hidden; }
.v35-scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity var(--m); }
.v35-scrim.open { opacity: 1; pointer-events: auto; }
.v35-nav { position: fixed; inset: 0 auto 0 0; z-index: 70; width: var(--drawer-w); display: flex; flex-direction: column; background: var(--paper-deep); color: var(--ink);
  transform: translateX(-100%); visibility: hidden; transition: transform var(--m), visibility 0s linear var(--m-dur); padding-top: var(--safe-t); padding-bottom: var(--safe-b); overflow: hidden; }
.v35-nav.open { transform: none; visibility: visible; transition-delay: 0s; }
.v35-head { display: flex; align-items: center; gap: var(--s-1); height: var(--topbar-h); flex: none; padding: 0 var(--s-1) 0 14px; border-bottom: 1px solid var(--ink); }
.v35-brand { display: flex; align-items: center; gap: var(--s-2); flex: 1; min-width: 0; min-height: var(--tap); color: var(--ink); text-decoration: none; }
.v35-word { font: 700 19px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.v35-collapse { display: none; }
.v35-scroll { flex: 1 1 auto; overflow-y: auto; padding: 0 var(--s-2); overscroll-behavior: contain; }
.v35-foot { flex: none; padding: 0 var(--s-2) var(--s-2); border-top: var(--b-hair); }
.v35-group { display: flex; flex-direction: column; padding: var(--s-2) 0; border-bottom: var(--b-hair); }
.v35-scroll .v35-group:last-child, .v35-foot .v35-group { border-bottom: 0; }
.v35-title { padding: var(--s-2) var(--s-3) var(--s-1); color: var(--ink-2); font: var(--t-caption-w) var(--t-caption-size)/var(--t-caption-lh) var(--font-ui); letter-spacing: var(--t-caption-track); }
.v35-row { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: var(--tap); padding: 0 var(--s-3); border: 0; border-radius: var(--r-md); background: none; color: var(--ink-2); text-align: left; text-decoration: none; font: var(--t-label-w) var(--t-label-size)/var(--t-label-lh) var(--font-ui); letter-spacing: var(--t-label-track); cursor: pointer; transition: background var(--m-fast); }
.v35-row[aria-current=true] { background: var(--selected); color: var(--ink); }
.v35-row:active { background: var(--state-pressed); }
@media (hover: hover) { .v35-row:hover { background: var(--state-hover); color: var(--ink); } }
.v35-row svg.ic { width: var(--ic); height: var(--ic); }
.v35-seg { display: flex; gap: var(--s-1); margin: var(--s-1) var(--s-3); padding: var(--s-1); background: var(--control); border-radius: var(--r-pill); }
.v35-topics { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0; }
.v35-topics .v35-title { grid-column: 1 / -1; }
.v35-topics .v35-row { padding: 0 var(--s-3); min-width: 0; }
.v35-topics .v35-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v35-black { display: block; margin: 0 var(--s-3); min-height: var(--tap); padding: 0 var(--s-3); border: 0; border-radius: var(--r-md); background: none; color: var(--ink-2); text-align: left; font: var(--t-label-w) var(--t-caption-size)/var(--t-caption-lh) var(--font-ui); }
.v35-black[aria-pressed=true] { background: var(--selected); color: var(--ink); }
.v35-seg button { flex: 1; min-width: 0; min-height: var(--tap); display: flex; align-items: center; justify-content: center; border-radius: var(--r-pill); color: var(--ink-2); background: none; border: 0; padding: 0 var(--s-1); font: var(--t-label-w) var(--t-caption-size)/var(--t-caption-lh) var(--font-ui); transition: background var(--m-fast); }
.v35-seg button[aria-pressed=true] { background: var(--raised); color: var(--ink); box-shadow: var(--sh-1); }
:root[data-theme=dark] .v35-seg button[aria-pressed=true] { background: var(--selection-bg); }
:root[data-theme=black] .v35-seg button[aria-pressed=true] { background: var(--selection-bg); }

/* ---------- shell: body leaves room for the rail or sidebar ---------- */
body { padding-left: var(--nav-w, 0); transition: padding-left var(--m); }

/* ---------- tablet 600-1023: 80 px rail, no bottom tabs ---------- */
@media (min-width: 600px) {
  :root { --nav-w: var(--rail-w); }
  .tabs, .v35-open { display: none; }
  .v35-rail { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--rail-w); padding: calc(var(--safe-t) + var(--s-2)) 0 var(--s-2); background: var(--paper-deep); border-right: var(--b-hair); }
  .v35-rt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); width: 100%; min-height: var(--tap-lg); padding: var(--s-2) 0; color: var(--ink-2); text-decoration: none; }
  .v35-rt[aria-current=page] { color: var(--ink); }
  @media (hover: hover) { .v35-rt:hover { background: var(--state-hover); color: var(--ink); } }
  .hdr .v35-theme { margin-right: 160px; }
  .shell { padding-bottom: var(--s-7); }
  body.has-player .shell { padding-bottom: calc(var(--player-bar-h) + var(--s-7)); }
  .player { left: var(--nav-w); bottom: 0; }
}

/* ---------- desktop >= 1024: 264 px sidebar, collapsible to 72 px ---------- */
@media (min-width: 1024px) {
  :root { --nav-w: var(--sidebar-w); }
  :root[data-nav=collapsed] { --nav-w: var(--sidebar-w-collapsed); }
  .v35-rail, .v35-close, .v35-scrim { display: none; }
  .v35-nav { width: var(--nav-w); transform: none; visibility: visible; border-right: var(--b-hair); z-index: 50; transition: none; }
  .v35-collapse { display: grid; place-items: center; }
  .hdr .brand { display: none; }
  .hdr { justify-content: flex-end; }
  .hdr .v35-theme { margin-left: auto; }
  :root[data-nav=collapsed] .v35-mono { display: block; }
  :root[data-nav=collapsed] .v35-word, :root[data-nav=collapsed] .v35-title, :root[data-nav=collapsed] .v35-seg, :root[data-nav=collapsed] .v35-row span, :root[data-nav=collapsed] .v35-topics { display: none; }
  :root[data-nav=collapsed] .v35-row { justify-content: center; padding: 0; }
  :root[data-nav=collapsed] .v35-head { flex-direction: column; justify-content: center; height: var(--topbar-h); padding: 0; gap: 0; }
  :root[data-nav=collapsed] .v35-brand { flex: none; min-height: var(--tap); min-width: var(--tap); justify-content: center; }
  :root[data-nav=collapsed] .v35-scroll, :root[data-nav=collapsed] .v35-foot { padding: 0 var(--s-2); }
  .hl { padding-left: var(--gutter-desk); }
  .hl .hl-tag { margin-left: calc(-1 * var(--gutter-desk)); padding-left: var(--gutter-desk); }
}
@media (prefers-reduced-motion: reduce) { .v35-nav, .v35-scrim, .tabs, body { transition: none; } }

/* ---------- r2 (11-13): theme switcher (Earth Minimal t2-v44 behaviour, ds-v02 look): one row in the drawer / sidebar opens a panel ---------- */
.v35-foot { position: relative; }
.v35-themebtn { gap: var(--s-3); }
.v35-themebtn span { flex: 1; }
.v35-cur { color: var(--ink-2); font: var(--t-caption-w) var(--t-caption-size)/var(--t-caption-lh) var(--font-ui); max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v35-themebtn[aria-expanded=true] svg.ic-sm { transform: rotate(180deg); }
.v35-sw { position: relative; display: inline-flex; flex: none; width: var(--ic-md); height: var(--ic-md); border-radius: var(--r-pill); overflow: hidden; border: 1px solid var(--line-strong); box-sizing: border-box; }
.v35-sw b { flex: 1; display: block; }
.v35-sw b:first-child { background: var(--a, var(--paper)); }
.v35-sw b:last-child { background: var(--b, var(--ink)); }
.v35-tpop { position: absolute; left: var(--s-2); right: var(--s-2); bottom: 100%; z-index: 5; max-height: min(70dvh, 520px); overflow-y: auto; overscroll-behavior: contain; padding: var(--s-1); background: var(--raised); border: var(--b-hair); border-radius: var(--r-md); box-shadow: var(--sh-2); }
.v35-opt { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: var(--tap); padding: 0 var(--s-3); border: 0; border-radius: var(--r-md); background: none; color: var(--ink); text-align: left; font: var(--t-label-w) var(--t-label-size)/var(--t-label-lh) var(--font-ui); letter-spacing: var(--t-label-track); }
.v35-opt[aria-checked=true] { background: var(--selected); }
@media (hover: hover) { .v35-opt:hover { background: var(--state-hover); } }
.v35-opt:active { background: var(--state-pressed); }
.v35-ol { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v35-ol small { color: var(--ink-2); font-weight: var(--w-regular); }
.v35-tn { flex: none; min-width: var(--s-5); color: var(--ink-2); font: var(--t-caption-w) var(--t-caption-size)/var(--t-caption-lh) var(--font-ui); }
.v35-ck { margin-left: auto; flex: none; }
.v35-ph { padding: var(--s-3) var(--s-3) var(--s-1); }
.v35-hr { height: 1px; margin: var(--s-1) var(--s-3); background: var(--line); }
.v35-tpop .v35-seg { margin: var(--s-1) var(--s-2); }
:root[data-nav=collapsed] .v35-tpop, :root[data-nav=collapsed] .v35-themebtn { display: none; }

/* Round 3: switch row, selected Light/Dark, desktop panel beside the sidebar */
.v35-sws { gap: var(--s-3); }
.v35-tk { flex: none; width: 40px; height: 24px; display: inline-flex; align-items: center; padding: 0 2px; box-sizing: border-box; border-radius: var(--r-pill); background: var(--control); border: 1px solid var(--line-strong); transition: background var(--m-fast); }
.v35-tk i { width: 18px; height: 18px; border-radius: 50%; background: var(--ink-2); transition: transform var(--m-fast); }
.v35-sws[aria-checked=true] { background: none; }
.v35-sws[aria-checked=true] .v35-tk { background: var(--inverse-bg); }
.v35-sws[aria-checked=true] .v35-tk i { background: var(--inverse-ink); transform: translateX(16px); }
.v35-seg button[data-auto][aria-pressed=true] { box-shadow: none; outline: 1px dashed var(--line-strong); outline-offset: -2px; }
.v35-note { margin: var(--s-2) var(--s-3) var(--s-1); color: var(--ink-2); }
@media (min-width: 1024px) {
  .v35-tpop { position: fixed; left: calc(var(--nav-w) + var(--s-2)); right: auto; bottom: var(--s-3); width: 300px; max-height: calc(100dvh - var(--s-6)); }
}

/* 1114bar (his #194144173): the approved bar robot is WHITE inside with a black line (h-v02), whatever the page colour; dark themes keep the page fill. */
.hdr .hrb i { background: #FFFFFF; }

/* 1114h-v02 (his #194144176/#194144177): bar = the saved h-v02 bar exactly (robot 150 px, top 6, right 10 at every width) and the
   theme button is back on top on phones. Phones (< 600 px) have no room for a 5th button beside the robot, so the search icon leaves the
   phone bar (search stays in the Today box, the menu and the "/" key); 600 px and up keep both. */
@media (max-width: 599px) { .hdr .v35-theme.v35-theme { display: grid; } .hdr .sr-btn.sr-btn { display: none; } }
/* narrow phones (< 375 px): the robot keeps its h-v02 spot; the wordmark gets smaller so the robot's props never sit on ".com" */
@media (max-width: 389px) { .hdr .brand .wm { font-size: 16px; } }
@media (max-width: 339px) { .hdr .brand .wm { font-size: 13px; letter-spacing: -.02em; } }

/* 1117bar56 (his #194144248 "Thin 56, robot 110. Apply that."; preview bn-v02 t56). NEW STANDARD, replaces h-v02's 76 px bar + 150 px robot:
   bar 56 px, headline strip 32 px, robot 110 px placed 52 px from the right with its CHIN on the bar's bottom line every day (top set in
   js/chrome.js from the pose's chin), theme button at the far right, search left of the robot. Rollback: css/chrome.css.bak-1117bar56 + js/chrome.js.bak-1117bar56. */
:root { --topbar-h: 56px; --hl-h-crawl: 32px; }
.hl { font-size: 13px; }
.hdr .brand .wm { font-size: 17px; }
.hdr .hrb { --s: 110px; width: 110px; height: 110px; right: 52px; }
.hdr .v35-theme.v35-theme { order: 10; margin-left: auto; margin-right: 0; position: absolute; right: 4px; top: calc(var(--safe-t) + 6px); }
.hdr .sr-btn { margin-left: auto; margin-right: 168px; }
@media (max-width: 389px) { .hdr .brand .wm { font-size: 16px; } }
@media (max-width: 339px) { .hdr .brand .wm { font-size: 13px; letter-spacing: -.02em; } }

/* 1117barA (his #194144260 layout A): right-hand cluster = theme, profile, three-line menu; robot placed left of it by js/chrome.js. */
.hdr .hrt { position: absolute; right: 4px; top: calc(var(--safe-t) + 6px); display: flex; align-items: center; gap: 0; z-index: 3; }
.hdr .hrt .v35-theme.v35-theme { position: static; margin: 0; display: grid; order: 0; }
.hdr .hrt .ib { width: 40px; flex: 0 0 40px; }
.hdr .hrt svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hdr .v35-prof .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 13px/1 var(--font-ui); }
.hdr .v35-open.v35-open { margin: 0; }
@media (min-width: 600px) { .hdr .hrt .v35-open { display: none; } }
/* 1117barA / his #194144261: theme sheet opened by the top-bar theme button (js/themes-cs.js) */
.tsc { position: fixed; inset: 0; background: var(--scrim); z-index: 80; }
.tsheet { position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow: auto; background: var(--raised); color: var(--ink); border-radius: var(--r-md) var(--r-md) 0 0; padding: var(--s-3) var(--gutter) calc(var(--s-5) + var(--safe-b)); box-shadow: var(--sh-2); }
@media (min-width: 768px) { .tsheet { left: auto; top: 0; width: 420px; max-height: none; border-radius: 0; } }
.tsheet .ts-h { display: flex; align-items: center; justify-content: space-between; }
.tsheet h2 { font: var(--t-headline-w) var(--t-headline-size)/var(--t-headline-lh) var(--font-display); margin: 0; }
.tsheet h3 { font: var(--w-semibold) var(--t-label-size)/var(--t-label-lh) var(--font-ui); margin: var(--s-5) 0 var(--s-1); }
.tsheet .ib svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tsheet .ts-seg { display: flex; flex-wrap: wrap; gap: var(--s-1); padding: var(--s-1); background: var(--surface); border-radius: var(--r-pill); margin-top: var(--s-3); }
.tsheet .ts-seg button { flex: 1 1 auto; min-height: var(--tap); padding: 0 var(--s-3); border: 0; background: none; border-radius: var(--r-pill); font: var(--w-semibold) var(--t-label-size)/1 var(--font-ui); color: var(--ink); cursor: pointer; }
.tsheet .ts-seg button[aria-pressed="true"] { background: var(--paper); box-shadow: var(--sh-1); outline: 1px solid var(--line); }
.tsheet .ts-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--s-2); margin-top: var(--s-2); }
.tsheet .ts-c { display: flex; flex-direction: column; gap: 6px; padding: 6px; min-height: var(--tap); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; font: var(--w-semibold) 13px/16px var(--font-ui); }
.tsheet .ts-c[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.tsheet .ts-sw { display: flex; height: 28px; border-radius: 8px; overflow: hidden; }
.tsheet .ts-sw i { flex: 1; }
/* 1117barA: with three buttons on the right, phones give the name a little less width so the robot never touches ".com" */
@media (max-width: 429px) { .hdr .brand .wm { font-size: 16px; } }
@media (max-width: 389px) { .hdr .brand .wm { font-size: 15px; letter-spacing: -.015em; } }
@media (max-width: 349px) { .hdr .brand .wm { font-size: 13px; letter-spacing: -.02em; } }
/* 1117barA: under 375 px the profile circle stays in the menu (Sign up / You) so the 110 px robot keeps its room */
@media (max-width: 374px) { .hdr .hrt .v35-prof { display: none; } }

/* his #194144263: base looks on top with previews, Themes below, each with a mini preview of the page */
.tsheet .ts-base { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-top: var(--s-3); }
.tsheet .ts-dev { margin-top: var(--s-2); min-height: var(--tap); width: 100%; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font: var(--w-semibold) var(--t-label-size)/1 var(--font-ui); cursor: pointer; }
.tsheet .ts-dev[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.tsheet .ts-c small { font-weight: 400; color: var(--ink-2); font-size: 11px; line-height: 14px; }
.tm { display: flex; flex-direction: column; gap: 3px; height: 92px; padding: 0 0 4px; border: 1px solid; border-radius: 8px; overflow: hidden; }
.tm i, .tm b { display: block; }
.tm-bar { display: flex; align-items: center; justify-content: space-between; height: 12px; padding: 0 5px; border-bottom: 1px solid; }
.tm-bar i { width: 34%; height: 3px; border-radius: 2px; }
.tm-bar b { width: 9px; height: 9px; border-radius: 50%; border: 1px solid; margin-top: 3px; }
.tm-hl { height: 6px; display: flex; } .tm-hl i { width: 22%; }
.tm-ch { display: flex; gap: 3px; padding: 0 5px; } .tm-ch i { width: 18%; height: 6px; border-radius: 4px; }
.tm-card { display: grid; grid-template-columns: 34% 1fr; gap: 2px 4px; padding: 0 5px; }
.tm-pic { grid-row: span 3; height: 22px; border-radius: 3px; }
.tm-tag { width: 40%; height: 3px; border-radius: 2px; } .tm-h { width: 90%; height: 4px; border-radius: 2px; } .tm-d { width: 70%; height: 3px; border-radius: 2px; }
.tm-wk { display: flex; align-items: flex-end; gap: 3px; height: 10px; padding: 0 5px; margin-top: auto; } .tm-wk i { flex: 1; border-radius: 1px; }
/* 1117barA tap size (ds-v01: 44 px taps): the three buttons are 44 px; the cluster sits on the right edge and phones get one name size smaller */
.hdr .hrt { right: 0; }
.hdr .hrt .ib { width: 44px; flex: 0 0 44px; }
@media (max-width: 429px) { .hdr .brand .wm { font-size: 15px; letter-spacing: -.015em; } }
@media (max-width: 389px) { .hdr .brand .wm { font-size: 14px; letter-spacing: -.02em; } }
@media (max-width: 349px) { .hdr .brand .wm { font-size: 13px; letter-spacing: -.02em; } }
/* below 390 px the profile circle stays in the menu (Sign up / You), so the name keeps 15 px and the robot keeps its room */
@media (max-width: 389px) { .hdr .hrt .v35-prof { display: none; } .hdr .brand .wm { font-size: 15px; letter-spacing: -.015em; } }
@media (max-width: 349px) { .hdr .brand .wm { font-size: 13px; letter-spacing: -.02em; } }
@media (max-width: 330px) { .hdr .brand .wm { font-size: 12px; letter-spacing: -.02em; } }

/* ---------- 1117drw (#194144265): phone drawer from the RIGHT + cleaner foot ---------- */
.v35-look { position: relative; }
.v35-lookv { margin-left: auto; font: var(--t-label-w) var(--t-caption-size)/var(--t-caption-lh) var(--font-ui); font-style: normal; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.v35-tsz { padding-top: var(--s-3); }
.v35-cta { display: flex; align-items: center; justify-content: center; min-height: var(--tap); margin: var(--s-3) var(--s-3) var(--s-1); border-radius: var(--r-pill); background: var(--ink); color: var(--paper); text-decoration: none; font: 600 var(--t-label-size)/var(--t-label-lh) var(--font-ui); }
.v35-cta:active { opacity: .85; }
.v35-foot { border-top: 1px solid var(--line, rgba(0,0,0,.12)); }
@media (max-width: 599px) {
  .v35-nav { inset: 0 0 0 auto; transform: translateX(100%); border-left: 1px solid var(--ink); }
  .v35-nav.open { transform: none; }
  .v35-head { padding: 0 var(--s-1) 0 18px; }
  .v35-scroll { padding: 0 var(--s-2); }
  .v35-group:first-child .v35-row { min-height: 52px; font-size: 17px; color: var(--ink); }
}
:root[data-nav=collapsed] .v35-cta, :root[data-nav=collapsed] .v35-lookv, :root[data-nav=collapsed] .v35-tsz { display: none; }

/* ---------- 1117pick (#194144266): themes first; Light / Dark / Auto small toggle on the left of the header ---------- */
.tsheet .ts-h { gap: var(--s-2); }
.tsheet .ts-ld { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border-radius: var(--r-pill); }
.tsheet .ts-ld button { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 12px; border: 0; background: none; border-radius: var(--r-pill); color: var(--ink-2); font: var(--w-semibold) 13px/1 var(--font-ui); cursor: pointer; }
.tsheet .ts-ld button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tsheet .ts-ld button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--sh-1); }
.tsheet h2 { margin-top: var(--s-4); }
.tsheet .cap { margin: var(--s-1) 0 0; color: var(--ink-2); font: 400 13px/18px var(--font-ui); }

/* ---------- 1117mode (#194144271): Light / Dark / Auto button left of the theme button; profile into the menu under 480 px ---------- */
.hdr .hrt .v35-mode { display: grid; place-items: center; order: -1; }
@media (max-width: 479px) { .hdr .hrt .v35-prof { display: none; } }
.tsheet .ts-h h2 { margin: 0; }
/* 1117mode: under 390 px the theme (palette) button lives in the menu ("Look and themes") so the 110 px robot keeps clear of the name */
@media (max-width: 389px) { .hdr .hrt .v35-theme.v35-theme { display: none; } }
.hdr .hrt .v35-theme svg path { fill: none !important; stroke: currentColor !important; stroke-width: 1.8; }
.hdr .hrt .v35-theme svg circle { fill: currentColor !important; stroke: none !important; }

/* 1117rob (his #194144284): robot parts follow the theme (unset = transparent = the white robot) */
:root .hdr .hrb i.rp.rph { background: var(--rb-head, transparent); } :root .hdr .hrb i.rp.rpe { background: var(--rb-ear, transparent); }
:root .hdr .hrb i.rp.rpa { background: var(--rb-stem, transparent); } :root .hdr .hrb i.rp.rpb { background: var(--rb-ball, transparent); }

/* 1117intro (his #194144292): B1 glide-and-hop intro overlay (js/intro.js); decorative copy of the bar robot, removed when done */
.si-intro { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.si-in-clip { position: absolute; inset: 0; overflow: hidden; }
.si-in-rob { position: absolute; }
.si-in-x, .si-in-y, .si-in-r, .si-in-s { position: absolute; inset: 0; will-change: transform; }
.si-in-r, .si-in-s { transform-origin: 50% 95%; }
.si-intro .rb i { background: #FFFFFF; }
:root .si-intro .rb i.rp.rph { background: var(--rb-head, transparent); } :root .si-intro .rb i.rp.rpe { background: var(--rb-ear, transparent); }
:root .si-intro .rb i.rp.rpa { background: var(--rb-stem, transparent); } :root .si-intro .rb i.rp.rpb { background: var(--rb-ball, transparent); }

/* 1117pick2 (his #194144295): theme sheet = the v2 colour-map picker look (pills with colour dots + name, swatch strip for the one in use) */
.tsheet .ts-pills { display: flex; flex-wrap: wrap; gap: 8px; grid-template-columns: none; }
.tsheet .ts-p { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); max-width: 100%; }
.tsheet .ts-p b { font: 600 14px/1.2 var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsheet .ts-p[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.tsheet .ts-dots { display: inline-flex; flex: none; } .tsheet .ts-dots i { width: 10px; height: 18px; } .tsheet .ts-dots i:first-child { border-radius: 4px 0 0 4px; } .tsheet .ts-dots i:last-child { border-radius: 0 4px 4px 0; }
.tsheet .ts-now { display: flex; flex-direction: column; gap: 6px; margin: var(--s-3) 0 var(--s-1); } .tsheet .ts-now .ts-sw { height: 40px; border-radius: 10px; } .tsheet .ts-now b { font: 700 18px/1.3 var(--font-ui); }

/* 1117pick3 (his #194144297/#298): compact theme panel, page stays visible behind it; search, colour groups, swipe strip on phones */
.tsc { background: transparent; }
.tsheet { box-shadow: 0 -10px 30px rgba(0,0,0,.22); padding-top: var(--s-2); }
@media (max-width: 767px) { .tsheet { max-height: 52dvh; } }
@media (min-width: 768px) { .tsheet { width: 380px; box-shadow: -10px 0 30px rgba(0,0,0,.18); } }
.tsheet .ts-h { gap: 10px; } .tsheet .ts-h h2 { flex: none; font-size: 20px; }
.tsheet .ts-cur { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.tsheet .ts-cur .ts-sw { flex: 1; max-width: 160px; height: 22px; border-radius: 6px; }
.tsheet .ts-cur b { font: 600 14px/1.2 var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsheet .ts-base { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s-2) 0; grid-template-columns: none; }
.tsheet .ts-q { display: block; margin: 0 0 8px; }
.tsheet .ts-q input { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--ink); font: 400 16px/1 var(--font-ui); }
.tsheet .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tsheet .ts-fam { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; scrollbar-width: none; }
.tsheet .ts-fam button { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 13px/1 var(--font-ui); cursor: pointer; }
.tsheet .ts-fam button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tsheet .ts-dots i { width: 9px; height: 20px; }
@media (max-width: 767px) {
  .tsheet .ts-all { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-auto-columns: max-content; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 6px; gap: 8px; }
  .tsheet .ts-all .ts-p { scroll-snap-align: start; }
}

/* 1117dark: Light / Dark tabs in the theme panel */
.tsheet .ts-tabs { display: flex; gap: 4px; padding: 4px; margin: var(--s-2) 0 0; background: var(--surface); border-radius: 999px; }
.tsheet .ts-tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: 600 15px/1 var(--font-ui); cursor: pointer; }
.tsheet .ts-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tsheet .ts-tabs small { font-weight: 400; opacity: .75; margin-left: 4px; }

/* 1117list (his #194144311): one plain list that scrolls vertically, one theme per row (swatch + name), phone and desktop */
.tsheet .ts-all, .tsheet .ts-pills.ts-all { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 6px; overflow: visible; grid-auto-flow: unset; grid-template-rows: none; scroll-snap-type: none; padding-bottom: 8px; }
.tsheet .ts-all .ts-p { width: 100%; justify-content: flex-start; gap: 12px; border-radius: 12px; min-height: 48px; padding: 0 12px; }
.tsheet .ts-all .ts-dots i { width: 16px; height: 26px; }
.tsheet .ts-all .ts-p b { font-size: 15px; }

/* 1117toggle: Auto (match my device) as its own switch in the theme panel */
.tsheet .ts-auto { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 6px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 14px/1.2 var(--font-ui); cursor: pointer; text-align: left; }
.tsheet .ts-auto::before { content: ""; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line-strong); box-shadow: inset -14px 0 0 2px var(--paper); }
.tsheet .ts-auto[aria-pressed="true"]::before { background: var(--ink); box-shadow: inset 14px 0 0 2px var(--paper); }

/* 1117menu (his #194144319): the burger menu (the slide-in drawer below 1024 px) always stays light, whatever the theme or dark mode */
@media (max-width: 1023.98px) {
  :root .v35-nav, :root[data-theme] .v35-nav { --paper: #FFFFFF; --paper-deep: #FFFFFF; --surface: #F2F1EC; --raised: #FFFFFF; --control: #E8E6DC; --selected: #E8E6DC;
    --ink: #141413; --ink-2: #5E5D59; --ink-3: #6B6A65; --line: #E8E6DC; --line-strong: #8A8880; --inverse-bg: #141413; --inverse-ink: #FFFFFF;
    --selection-bg: #FFFFFF; --selection-ink: #141413; --state-hover: rgba(20,20,19,.06); color-scheme: light; background: #FFFFFF; color: #141413; }
  :root[data-theme] .v35-nav .v35-seg button[aria-pressed=true], :root .v35-nav .v35-seg button[aria-pressed=true] { background: #FFFFFF; color: #141413; }
}
