/* Admin shell v2 (release 2.11, task T05): the frame of every cohort admin page (src/astro/layouts/AdminV2.astro,
   drawn by src/astro/admin-v2/shell.js). brand.css tokens only (load brand.css first); no raw colours.
   Calm pass (mockups/cohort-admin/apple-pass-2, approved): a cream glass sidebar inset 8 px, 5 rows and More, the
   cohort switcher as one quiet row, icons grey until their row is chosen, the chosen row a grey fill (never a solid
   crimson one; law 11: crimson only for the logo and what you can press), one quiet search pill in the top bar, a
   floating glass tab bar on the phone. Every target is 44 px or more.
   Sizes come from the frame's own width (a container query), so the framed review states (?w=phone, ?w=tablet)
   lay out exactly like a real phone or tablet:
     desktop  > 1100   sidebar 248 (or the 72 rail, Narrow sidebar), top bar 60
     tablet   761-1100 the 72 rail, top bar 60
     phone    <= 760   app bar 56, the page, the floating tab bar (Today, Cohort, People, Me); menus open as sheets
   The boxes have fixed sizes before the shell draws into them, so nothing moves when it does. */
/* dark mode (brand.css): crimson TEXT, icons and rings use --red-on-dark; fills stay --red */
:root[data-theme="dark"] {
  --red-tx: var(--red-on-dark); --red-tx-h: var(--on-dark);
  --v2-shade: color-mix(in srgb, var(--paper) 85%, transparent);
  --v2-edge: color-mix(in srgb, var(--ink) 8%, transparent);
  --v2-glass: color-mix(in srgb, var(--paper-2) 72%, transparent);
  --v2-raised: color-mix(in srgb, var(--card) 93%, var(--ink));
}

:root {
  --v2-side: 248px; --v2-rail: 72px; --v2-top: 60px; --v2-appbar: 56px; --v2-tabs: 62px; --v2-pad: 32px; --v2-inset: 8px;
  --v2-q: color-mix(in srgb, var(--ink) 5%, transparent);      /* hover, quiet fills */
  --v2-sel: color-mix(in srgb, var(--ink) 9%, transparent);    /* the chosen row */
  --v2-sep: color-mix(in srgb, var(--ink) 11%, transparent);
  --v2-shade: color-mix(in srgb, var(--ink) 26%, transparent);
  --v2-edge: color-mix(in srgb, var(--card) 70%, transparent);
  --v2-glass: color-mix(in srgb, var(--paper) 74%, transparent);
  --v2-raised: var(--card);
  --v2-lift: 0 1px 2px color-mix(in srgb, var(--v2-shade) 20%, transparent), 0 8px 24px -14px var(--v2-shade);
  --v2-float: 0 1px 1px color-mix(in srgb, var(--v2-shade) 15%, transparent), 0 12px 40px -12px var(--v2-shade);
}

/* ---------- the frame ---------- */
.v2-body { margin: 0; background: var(--paper); overflow: hidden; }
.v2-frame { container: v2 / inline-size; height: 100vh; height: 100dvh; }
html.is-framed .v2-body { overflow: auto; background: var(--paper-2); }
html.is-framed .v2-frame { margin: 24px auto; border-radius: 28px; overflow: hidden; background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
html.is-framed.w-phone .v2-frame { width: 375px; height: min(812px, calc(100dvh - 48px)); }
html.is-framed.w-tablet .v2-frame { width: 820px; height: min(1180px, calc(100dvh - 48px)); border-radius: 20px; }

.v2 { position: relative; height: 100%; display: grid; grid-template-columns: calc(var(--v2-side) + 2 * var(--v2-inset)) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); background: var(--paper); }
:where(.v2) a { color: inherit; }
.v2 :focus-visible { outline-offset: -2px; }
.v2-skip { position: absolute; left: 16px; top: -80px; z-index: 60; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); box-shadow: var(--shadow-card); font-weight: 500; }
.v2-skip:focus { top: 16px; }
.v2 kbd { font: 500 12px var(--sans); color: var(--ink-3); white-space: nowrap; }

/* ---------- sidebar: cream glass, inset ---------- */
.v2-side { grid-column: 1; grid-row: 1; min-width: 0; min-height: 0; margin: var(--v2-inset); display: flex; flex-direction: column; gap: 4px; padding: 12px 10px;
  border-radius: 16px; background: var(--v2-glass); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: inset 0 0 0 .5px var(--v2-edge), 0 0 0 .5px var(--line), var(--v2-lift); overflow: hidden; font-size: 15px; }
.v2-brand { flex: none; display: flex; align-items: center; height: 44px; padding: 0 8px 6px; }
.v2-brand img { height: 24px; width: auto; display: block; }
.v2-brand .dk { display: none; }
:root[data-theme="dark"] .v2-brand .lt { display: none; }
:root[data-theme="dark"] .v2-brand .dk { display: block; }

/* the cohort switcher: one quiet row */
.v2-sw-wrap { flex: none; margin-bottom: 6px; }
.v2-swb { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.v2-swb .t, .v2-me .t, .v2-co .t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.v2-swb b { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-me b, .v2-co b { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-me .t > span, .v2-co .t > span:not(.vh) { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-swb .chv { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.v2-swb:hover, .v2-swb[aria-expanded="true"] { background: var(--v2-q); }
.v2-swb[disabled] { cursor: default; }
.v2-swb[disabled]:hover { background: none; }

.v2-nav { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; scrollbar-width: thin; }
.v2-nav ul, .v2-menu, .v2-cos, .v2-fl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.v2-h { margin: 16px 12px 6px; font: 700 13px/1.3 var(--sans); color: var(--ink-3); white-space: nowrap; }
.v2-end { margin-top: 6px !important; }
.v2-nv { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; color: var(--ink);
  text-align: left; text-decoration: none; white-space: nowrap; position: relative; cursor: pointer; }
.v2-nv .i { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.v2-nv .l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.v2-nv .chv { width: 16px; height: 16px; opacity: .75; }
.v2-nv:hover { background: var(--v2-q); }
.v2-nv.on { background: var(--v2-sel); font-weight: 500; }
.v2-nv.on .i:not(.chv) { color: var(--red-tx, var(--red)); }
.v2-moreb { color: var(--ink-2); }
.v2-nv[aria-disabled="true"] { color: var(--ink-3); cursor: default; }
.v2-nv[aria-disabled="true"]:hover { background: none; }
.v2-n { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.v2-n.urgent { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); display: inline-grid; place-items: center;
  background: var(--red); color: var(--on-dark); font-size: 12px; font-weight: 700; }

.v2-foot { flex: none; display: flex; align-items: center; gap: 4px; padding-top: 6px; }
.v2-me { flex: 1; min-width: 44px; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 4px 8px; border: 0; border-radius: 10px; background: none;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.v2-me:hover, .v2-me[aria-expanded="true"] { background: var(--v2-q); }
.v2-ib { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--ink-3); cursor: pointer; }
.v2-ib:hover { background: var(--v2-q); color: var(--ink); }
.v2-ib .i { width: 18px; height: 18px; }
.v2-railb[aria-pressed="true"] { color: var(--ink); }

.v2-av { width: 30px; height: 30px; flex: none; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: var(--v2-sel);
  color: var(--ink-2); font: 700 12px/1 var(--sans); }
.v2-av.lg { width: 48px; height: 48px; font-size: 16px; }
.v2-av :is(img, svg) { width: 100%; height: 100%; display: block; }

/* ---------- the rail: icons only (the Narrow sidebar choice on desktop; always on a tablet) ---------- */
@container v2 (min-width: 1101px) {
  html.v2-rail .v2 { grid-template-columns: calc(var(--v2-rail) + 2 * var(--v2-inset)) minmax(0, 1fr); }
  html.v2-rail .v2-side { padding-inline: 10px; align-items: stretch; }
  html.v2-rail .v2-brand { display: none; }
  html.v2-rail .v2-swb { justify-content: center; padding: 0; }
  html.v2-rail :is(.v2-swb .chv, .v2-nv .chv) { display: none; }
  html.v2-rail .v2-swb b { font-size: 13px; }
  html.v2-rail :is(.v2-side .v2-nv .l, .v2-me .t) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html.v2-rail .v2-nv { justify-content: center; padding: 0; }
  html.v2-rail .v2-n.urgent { position: absolute; top: 6px; right: 6px; min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; }
  html.v2-rail .v2-foot { flex-direction: column; }
  html.v2-rail .v2-me { justify-content: center; padding: 4px 0; }
  html.v2-rail #v2-sw, html.v2-rail .v2 .v2-morepop { left: calc(var(--v2-rail) + 2 * var(--v2-inset) + 8px); }
  html.v2-rail .v2 .v2-mepop { left: calc(var(--v2-rail) + 2 * var(--v2-inset) + 8px); bottom: 12px; }
}
@container v2 (min-width: 761px) and (max-width: 1100px) {
  .v2 { grid-template-columns: calc(var(--v2-rail) + 2 * var(--v2-inset)) minmax(0, 1fr); }
  .v2-side { padding-inline: 10px; }
  .v2-brand, .v2-railb { display: none; }
  .v2-swb { justify-content: center; padding: 0; }
  .v2-swb .chv, .v2-nv .chv { display: none; }
  .v2-swb b { font-size: 13px; }
  .v2-side .v2-nv .l, .v2-me .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .v2-nv { justify-content: center; padding: 0; }
  .v2-n.urgent { position: absolute; top: 6px; right: 6px; min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; }
  .v2-foot { flex-direction: column; }
  .v2-me { justify-content: center; padding: 4px 0; }
  #v2-sw, .v2 .v2-morepop { left: calc(var(--v2-rail) + 2 * var(--v2-inset) + 8px); }
  .v2 .v2-mepop { left: calc(var(--v2-rail) + 2 * var(--v2-inset) + 8px); bottom: 12px; }
  .v2 { --v2-pad: 24px; }
}

/* ---------- main: one quiet top bar and the page ---------- */
.v2-main { grid-column: 2; grid-row: 1; min-width: 0; min-height: 0; display: grid; grid-template-rows: var(--v2-top) minmax(0, 1fr); }
.v2-top { display: flex; align-items: center; gap: 16px; padding: 0 28px 0 var(--v2-pad); min-width: 0; }
/* the crumb repeats the page title (law 12), so it is for screen readers only */
.v2-crumb { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v2-topr { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; }
.v2-appbar { display: none; }
.v2-content { min-height: 0; overflow-y: auto; padding: var(--v2-pad); padding-top: 8px; scrollbar-width: thin; }
.v2-content:focus { outline: none; }
.v2-gate { grid-row: 2; display: grid; place-items: center; padding: var(--v2-pad); text-align: center; }
.v2-gate-in { max-width: 440px; display: grid; justify-items: center; gap: 16px; }
.v2-gate-in h1 { margin: 16px 0 0; font: 400 28px/1.25 var(--serif); }
.v2-gate-in h1:focus { outline: none; }
.v2-gate-in p { margin: 0; color: var(--ink-2); }
.v2[data-state="loading"] .v2-side > *, .v2[data-state="loading"] .v2-topr { visibility: hidden; }
.v2[data-state="gate"] :is(.v2-side, .v2-tabs, .v2-top),
.v2[data-state="offline"] :is(.v2-side, .v2-tabs, .v2-top),
.v2[data-state="error"] :is(.v2-side, .v2-tabs, .v2-top) { visibility: hidden; }

/* the search pill (a 44 px button around a 34 px pill) */
.v2-qb { height: 44px; display: flex; align-items: center; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; border-radius: 999px; }
.v2-qb .pill { display: flex; align-items: center; gap: 8px; width: 220px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--v2-q); color: var(--ink-3); font-size: 13px; }
.v2-qb .pill .i { width: 16px; height: 16px; flex: none; }
.v2-qb .pill kbd { margin-left: auto; }
.v2-qb:hover .pill, .v2-qb[aria-expanded="true"] .pill { background: var(--v2-sel); color: var(--ink-2); }

/* the zone switch (in the Me menu): "Times in IST | My zone" */
.v2-zone { display: flex; align-items: center; gap: 4px; margin: 4px 4px 8px; padding: 3px; border-radius: 12px; background: var(--v2-q); font-size: 15px; }
.v2-zone .lbl { flex: 1; padding: 0 6px 0 10px; color: var(--ink-2); }
.v2-zone button { min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 9px; background: none; font: inherit; color: var(--ink-2); cursor: pointer; }
.v2-zone button[aria-pressed="true"] { background: var(--v2-raised); color: var(--ink); font-weight: 500; box-shadow: var(--v2-lift); }

/* ---------- panels: the switcher, More, the Me menu, search, the phone sheets ---------- */
.v2-pop { position: absolute; z-index: 40; left: calc(var(--v2-inset) + 8px); top: 112px; width: 320px; max-height: 70%; overflow-y: auto; padding: 6px;
  background: var(--v2-raised); border-radius: 14px; box-shadow: var(--v2-float), 0 0 0 .5px var(--line); }
.v2-morepop { left: calc(var(--v2-side) + 2 * var(--v2-inset) + 4px); width: 260px; }
.v2-mepop { top: auto; bottom: 76px; }
.v2-find { left: 50%; top: 72px; width: min(600px, calc(100% - 48px)); transform: translateX(-50%); max-height: min(560px, 80%); padding: 0; display: flex; flex-direction: column; }
.v2-find[hidden] { display: none; }
.v2-pop-h { display: flex; align-items: center; gap: 12px; padding: 6px 4px 6px 12px; }
.v2-pop-h h2 { flex: 1; margin: 0; font: 400 19px/1.3 var(--serif); }
.v2-pop-h .t { flex: 1; min-width: 0; }
.v2-pop-h .t h2 { font-size: 17px; }
.v2-pop-h .t p { margin: 0; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-pop .v2-h { margin: 12px 12px 6px; }
.v2-co { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 0; border-radius: 10px; background: none;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.v2-co:hover { background: var(--v2-q); }
.v2-co.on { background: var(--v2-sel); }
.v2-co .ok { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
.v2-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ink-3); }
.v2-dot.run { background: var(--success); }
.v2-dot.fill { background: var(--info); }
.v2-sw-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; padding: 4px 12px 0; box-shadow: inset 0 1px 0 var(--v2-sep); }
.v2-lk { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--red-tx, var(--red)); font-weight: 500; font-size: 15px; text-decoration: none; }
.v2-lk:hover { text-decoration: underline; text-underline-offset: 3px; }
.v2-lk .i { width: 16px; height: 16px; }
.v2-menu { padding: 2px 0; }
.v2-mi { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 10px; background: none;
  font: inherit; font-size: 15px; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.v2-mi:hover { background: var(--v2-q); }
.v2-mi .i { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.v2-mi kbd { margin-left: auto; }
.v2-pop .v2-menu .v2-nv { min-height: 44px; }

/* search: the field, then the results (title and one line, the kind as a quiet word) */
.v2-fform { flex: none; display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 16px; box-shadow: inset 0 -1px 0 var(--v2-sep); color: var(--ink-3); }
.v2-fform > .i { width: 18px; height: 18px; flex: none; }
.v2-fform input { flex: 1; min-width: 0; min-height: 48px; padding: 0; border: 0; background: none; font: inherit; font-size: 17px; color: var(--ink); }
.v2-fform input:focus { outline: none; }
.v2-fform input::placeholder { color: var(--ink-3); }
.v2-fform input::-webkit-search-cancel-button { display: none; }
.v2-fl { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; }
.v2-fo { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-radius: 10px; color: var(--ink); cursor: pointer; }
.v2-fo .i { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.v2-fo .t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.v2-fo b { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-fo .t > span { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-fo .k { font-size: 13px; color: var(--ink-3); flex: none; }
.v2-fo:hover { background: var(--v2-q); }
.v2-fo.on { background: var(--v2-sel); }
.v2-fnone { padding: 14px 12px; font-size: 15px; color: var(--ink-2); }

.v2-pop.as-sheet { left: var(--v2-inset); right: var(--v2-inset); top: auto; bottom: var(--v2-inset); width: auto; max-height: 85%; transform: none; border-radius: 28px;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); }
.v2-find.as-sheet { top: 56px; bottom: auto; padding: 4px 4px 8px; max-height: calc(100% - 120px); }
.v2-scrim { position: absolute; inset: 0; z-index: 35; background: var(--scrim); opacity: .6; }

/* ---------- tab bar (phone only): floating glass, 4 tabs ---------- */
.v2-tabs { display: none; }
.v2-tabs ul { list-style: none; margin: 0; padding: 4px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: var(--v2-tabs); border-radius: 31px;
  background: var(--v2-glass); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 0 0 .5px var(--v2-edge), 0 0 0 .5px var(--line), var(--v2-float); }
.v2-tab { width: 100%; height: 100%; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative;
  border: 0; border-radius: 27px; background: none; font: 500 11px/1.2 var(--sans); color: var(--ink-2); text-decoration: none; cursor: pointer; }
.v2-tab .i { width: 22px; height: 22px; }
.v2-tab.on { background: var(--v2-sel); color: var(--red-tx, var(--red)); font-weight: 700; }
.v2-tdot { position: absolute; top: 7px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ---------- phone ---------- */
.v2-circ { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--v2-glass); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: inset 0 0 0 .5px var(--v2-edge), var(--v2-lift); }
.v2-circ .i { width: 20px; height: 20px; }
@container v2 (max-width: 760px) {
  .v2 { --v2-pad: 16px; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .v2-side, .v2-topr { display: none; }
  .v2-main { grid-column: 1; grid-row: 1; grid-template-rows: var(--v2-appbar) minmax(0, 1fr); }
  .v2-top { padding: 0 16px; padding-top: env(safe-area-inset-top); }
  .v2-appbar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
  .v2-cob { flex: 0 1 auto; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 4px; border: 0; background: none;
    font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
  .v2-cob b { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .v2-cob .chv { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
  .v2-appbar .v2-circ { margin-left: auto; }
  .v2-content { padding-bottom: calc(var(--v2-tabs) + 40px + env(safe-area-inset-bottom)); }
  .v2-tabs { display: block; position: absolute; z-index: 30; left: 20px; right: 20px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .v2-gate { grid-row: 2; }
}

/* ---------- a cohort section with no cohort yet: one sentence and one action (law 15) ---------- */
.v2[data-nocohort] .v2-content > :not(.v2-none) { display: none !important; }
.v2-none { max-width: 600px; margin: 8px auto 48px; }
.v2-none h1 { margin: 0; font: 400 40px/46px var(--serif-display, var(--serif)); letter-spacing: -.012em; color: var(--ink); }
.v2-none h1:focus { outline: none; }
.v2-none p { margin: 8px 0 20px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }

/* ---------- the first-run guide (guide.js): the Get started card under Today, and the tour ---------- */
/* Today fills the frame (.td-root min-height 100%); with the card under it, Today keeps its own height */
.td-root:has(+ #v2-gd:not([hidden])) { min-height: 0; }
.v2-gd-pg { margin-top: 0; }
.v2-gd { margin-top: 0; }
.v2-gd-c { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--ink-3); color: var(--paper); }
.v2-gd-r.done .v2-gd-c { background: var(--success); box-shadow: none; }
.v2-gd-c .i { width: 14px; height: 14px; }
.v2-gd-acts { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 4px 4px 0; }
.v2-gd-b, .v2-tour-b { min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 15px; cursor: pointer; }
.v2-gd-b { font-weight: 500; color: var(--red-tx, var(--red)); }
.v2-gd-b.quiet, .v2-tour-b.quiet { color: var(--ink-2); font-weight: 400; }
.v2-gd-b:hover, .v2-tour-b:hover { background: var(--v2-q); }
.v2-tour-b { color: var(--ink); }
:is(.v2-gd-b, .v2-tour-b):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.v2-tour-spot { position: absolute; z-index: 50; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--card), 0 0 0 200vmax color-mix(in srgb, var(--scrim) 60%, transparent); }
:root[data-theme="dark"] .v2-tour-spot { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 40%, transparent), 0 0 0 200vmax color-mix(in srgb, var(--paper) 72%, transparent); }
.v2-tour { position: absolute; z-index: 51; width: min(320px, calc(100% - 32px)); box-sizing: border-box; padding: 16px 16px 10px; border-radius: 16px;
  background: var(--v2-raised); color: var(--ink); box-shadow: var(--v2-float), 0 0 0 .5px var(--line); }
.v2-tour-n { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.v2-tour h2 { margin: 4px 0 0; font: 400 22px/1.3 var(--serif); }
.v2-tour #v2-tour-d { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.v2-tour-acts { display: flex; align-items: center; gap: 4px; margin-top: 12px; }
.v2-tour-acts .sp { flex: 1; }
.v2-tour .btn { padding: 0 20px; }
@media (prefers-reduced-motion: no-preference) { .v2-tour, .v2-tour-spot { transition: left .16s var(--ease, ease), top .16s var(--ease, ease), width .16s var(--ease, ease), height .16s var(--ease, ease); } }
@container v2 (max-width: 760px) { .v2-none h1 { font-size: 32px; line-height: 38px; } .v2-none p { font-size: 17px; } }

@media (prefers-reduced-motion: reduce) { .v2 *, .v2 *::before, .v2 *::after { transition: none !important; animation: none !important; } }
@media (prefers-reduced-transparency: reduce) { .v2-side, .v2-tabs ul, .v2-circ { background: var(--paper-2); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (forced-colors: active) { .v2-nv.on, .v2-tab.on, .v2-fo.on { outline: 2px solid CanvasText; } .v2-n.urgent, .v2-tdot, .v2-dot { forced-color-adjust: none; } }
@media print { .v2-side, .v2-tabs, .v2-top { display: none; } .v2-frame { height: auto; } .v2-content { overflow: visible; } }
