/* Release 6 B0: the connected app's shell (connected mode only; the standalone demo keeps its frames).
   Mobile first: a 48 px top bar and a 56 px bottom tab bar around one document scroll; from 1024 px the
   tabs become a fixed sidebar. The v7 markup still carries inline styles, so the connected overrides
   below use !important until R6-B moves those screens onto components. */

:root {
  --topbar-h: 48px;
  /* Release 30: the bar grows with the tab labels' text size (appearance.js sets --ts-tab, at most 1.15). */
  --tabbar-h: calc(56px + (var(--ts-tab, 1) - 1) * 40px);
  --side-w: 232px;
  --gutter: 16px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
html { -webkit-text-size-adjust: 100%; }
/* Mobile polish: a focused field or a scrolled-to control stops above the bottom tab bar (and the iPhone's
   home indicator), not under it. */
@media (max-width: 1023px) {
  html {
    scroll-padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px);
  }
}

/* ---------- one document scroll */
.app-root[data-connected="true"] {
  min-height: 100dvh !important;
  background: var(--paper) !important;
  background-image: var(--paperImage, none) !important;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
}
[data-connected="true"] .shell-content { display: block !important; padding: 0 !important; }
[data-connected="true"] [data-screen-label="Field workspace (rep phone)"] { height: auto !important; box-shadow: none !important; }
[data-connected="true"] .rep-screen {
  height: auto !important;
  min-height: calc(100dvh - var(--topbar-h) - var(--safe-t) - var(--tabbar-h) - var(--safe-b));
  overflow: visible !important;
  border-radius: 0 !important;
}
[data-connected="true"] .screen-scroll { flex: none !important; overflow: visible !important; }
[data-connected="true"] .management-shell {
  display: block !important;
  height: auto !important;
  max-width: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
[data-connected="true"] .management-nav { display: none !important; }
[data-connected="true"] .management-main { overflow: visible !important; padding: 16px var(--gutter) 24px !important; }

/* Overlays belong to the viewport now that the screens no longer have a fixed height. */
/* The rep screen's own sheets (Log visit, follow-up) and the search overlay open under the top bar, as
   they did inside the screen, so the top bar stays usable; they cover the tab bar. */
[data-connected="true"] .search-overlay,
[data-connected="true"] .sheet-backdrop {
  position: fixed !important;
  top: calc(var(--topbar-h) + var(--safe-t)) !important;
  z-index: 59 !important;
}
/* Release 26: on a wide screen the sheet is a centred column (it ran the window's full width, six outcome buttons
   about 700 px each); on a phone it stays full width. */
@media (min-width: 768px) {
  [data-connected="true"] .sheet-backdrop > .sheet { width: 100%; max-width: 600px; margin: 0 auto; }
}
[data-connected="true"] .toast,
[data-connected="true"] .back-prompt {
  position: fixed !important;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px - var(--vv-bottom, 0px)) !important;
  z-index: 85 !important;
}
[data-connected="true"] .toast-desk { left: var(--gutter) !important; right: var(--gutter) !important; max-width: none !important; }
/* Phase 5: the save message's short rise is skipped when the phone asks for reduced motion. */
@media (prefers-reduced-motion: reduce) { [data-connected="true"] .toast { animation: none !important; } }

/* ---------- top bar: brand mark, page title, search, pharmacy chip, avatar */
[data-connected="true"] .topbar {
  position: sticky;
  /* Release 69: --vv-top / --vv-bottom are how far an iPhone has pushed the visible screen away from the layout
     viewport after its keyboard closed (viewport-guard.js); zero everywhere else. The bars follow the screen. */
  top: var(--vv-top, 0px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  height: calc(var(--topbar-h) + var(--safe-t));
  padding: var(--safe-t) 4px 0 var(--gutter);
  background: var(--topbar);
  color: var(--topbarInk);
  border-bottom: 1px solid var(--topbarLine);
}
.topbar-brand { display: none; font-weight: 600; font-size: calc(17px*var(--ts,1)); }
.topbar-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font: 600 calc(18px*var(--ts,1))/1.2 var(--font-display);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.icon-btn,
.topbar-account {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}
.topbar-account {
  /* Light, so the page keeps one dark action (UI hierarchy rules). */
  padding: 5px;
  background: var(--pSoft);
  background-clip: content-box;
  box-shadow: inset 0 0 0 6px var(--topbar), inset 0 0 0 7px var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: calc(13px*var(--ts-tab,1));
}
.ph-chip,
.topbar-back {
  height: 32px;
  max-width: 132px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  font-size: calc(13px*var(--ts-tab,1));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Release 91 (docs/compass/release91/BACK-NAVIGATION.md): inside anything, the brand mark's spot is Back to the parent
   ("‹ Review"), a 44 px target; from 1024 px it fills the brand's width so the page title stays where it was. */
compass-topbar-start { display: contents; }
.topbar-up {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 1 auto;
  min-width: 44px;
  max-width: 42vw;
  min-height: 44px;
  /* The bar's 8 px gap after it is inside its own padding, so a crowded phone bar (offline line, outbox, avatar) fits. */
  margin: 0 -8px 0 -10px;
  padding: 0 8px 0 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-weight: 600;
  font-size: calc(15px*var(--ts,1));
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.topbar-up svg { flex: 0 0 auto; }
.topbar-up-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar-up:active { background: var(--pSoft); }
[data-theme^="summit"][data-connected="true"] .topbar .topbar-up { color: var(--chromeInk); }
[data-theme^="summit"][data-connected="true"] .topbar .topbar-up:active { background: var(--chromeHover); }
/* The nav items became links (Cmd-click opens a new tab); they keep the look they had as buttons. */
a.tab, a.side-item, a.bsheet-row { text-decoration: none; cursor: pointer; }
a.bsheet-row { box-sizing: border-box; }

/* ---------- bottom tab bar (phones and tablets) */
.shell-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(0px - var(--vv-bottom, 0px));
  z-index: 58;
  display: flex;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding: 0 4px var(--safe-b);
  background: var(--card);
  border-top: 1px solid var(--line);
}
.shell-tabs .tab {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--ink2);
  font-size: calc(11.5px*var(--ts-tab,1));
  font-weight: 500;
}
.shell-tabs .tab[aria-current="true"] { color: var(--ink); font-weight: 600; }
/* Active: an underline under the label (orange once R6-B lands the Summit tokens; ink until then). */
.shell-tabs .tab[aria-current="true"]::after {
  content: '';
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 3px;
  height: 3px;
  border-radius: 2px;
  background: var(--tabActive, var(--ink));
}
/* Release 30: a label that does not fit its tab wraps to a second line (never cut off with dots); the tab's aria-label carries the full name either way. */
.shell-tabs .tab { padding: 0 1px; }
.tab-label { max-width: 100%; overflow: hidden; overflow-wrap: anywhere; text-align: center; line-height: 1.12; max-height: 2.3em; }
.tab-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #b9321f;
  color: #fff;
  font-size: calc(10px*var(--ts-tab,1));
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tab-badge[data-tone="amber"] { background: var(--amberFill, var(--highlight)); color: var(--attemptInk, var(--ink)); }
.shell-tabs .tab-badge { position: absolute; top: 4px; left: calc(50% + 6px); }

/* ---------- sidebar (desktop) */
.shell-side { display: none; }
@media (min-width: 1024px) {
  .app-root[data-connected="true"] { padding-bottom: 0; }
  .shell-tabs { display: none; }
  /* The brand fills the sidebar's width so the page title lines up with the content column. */
  .topbar-brand { display: inline-block; width: calc(var(--side-w) - var(--gutter) - 22px - 16px + 28px); }
  .topbar-title { font-size: calc(20px*var(--ts,1)); }
  .topbar-up { flex: 0 0 auto; max-width: none; width: calc(var(--side-w) - var(--gutter) + 20px + 10px); }
  .shell-side {
    position: fixed;
    top: calc(var(--topbar-h) + var(--safe-t));
    bottom: 0;
    left: 0;
    z-index: 55;
    width: var(--side-w);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 12px;
    background: var(--card);
    border-right: 1px solid var(--line);
  }
  [data-connected="true"] .shell-content { padding-left: var(--side-w) !important; }
  [data-connected="true"] .management-main { padding: 24px 28px 40px !important; }
  [data-connected="true"] .toast,
  [data-connected="true"] .back-prompt { bottom: 24px !important; left: calc(var(--side-w) + 24px) !important; right: auto !important; max-width: 420px; }
}
.side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: calc(14px*var(--ts,1));
  text-align: left;
}
.side-item[aria-current="true"] { background: var(--navSel, var(--ink)); color: var(--navSelInk, #fff); }
/* Summit Glass (Release 41, ADR 0006 as amended 2026-11-07, "Green chrome"): a teal glass sidebar with white items;
   the active item is yellow with ink text (navSel/navSelInk). */
[data-theme^="summit"] .shell-side { background: var(--chrome); border-right-color: var(--chromeLine); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); }
[data-theme^="summit"] .side-item { color: var(--chromeInk); font-weight: 500; font-size: calc(13.5px*var(--ts,1)); border-radius: var(--r-ctl, 8px); transition: background .12s ease; }
[data-theme^="summit"] .side-item:hover { background: var(--chromeHover); }
[data-theme^="summit"] .side-item[aria-current="true"]:hover { background: var(--navSel); }
[data-theme^="summit"] .side-item[aria-current="true"] { font-weight: 600; color: var(--navSelInk, var(--ink)); }
[data-theme^="summit"] .side-item:focus-visible { outline-color: var(--navSel); }
[data-theme^="summit"] .side-item:active { background: var(--chromeHover); }

/* ---------- bottom sheets: their look is bottom-sheet.js (bsheetCss, shared with components' shadow
   roots); the page behind an open sheet does not scroll */
html.sheet-open { overflow: hidden; }

/* ---------- feel: an immediate pressed state on every tappable row and button; no zoom on iOS inputs */
.tab, .side-item, .bsheet-row, .icon-btn, .ph-chip, .topbar-account { -webkit-tap-highlight-color: transparent; }
.tab:active, .side-item:active, .bsheet-row:active, .icon-btn:active { background: var(--pSoft); }
[data-connected="true"] input,
[data-connected="true"] select,
[data-connected="true"] textarea { max-width: 100%; }
/* Phones: a heading that repeats the top bar's page title is left out (the top bar's h1 names the page). */
@media (max-width: 760px) {
  [data-connected="true"] .page-h { display: none !important; }
}
@media (max-width: 1023px) {
  [data-connected="true"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  [data-connected="true"] select,
  [data-connected="true"] textarea { font-size: calc(16px*var(--ts,1)) !important; }
}

/* The standalone demo's selected rep tab (moved here with the connected rules). */
[data-theme="s5"] .rep-nav button[aria-current="true"] > span:first-child { background: var(--ink) !important; color: var(--onInk); }
/* Summit Glass (ADR 0006, Green chrome): the bottom tabs and the top bar are teal glass with white text over the
   tinted canvas; the account button keeps the yellow selection colour; sheets and dialogs stay opaque (--sheet). */
[data-theme^="summit"] .shell-tabs { background: var(--chrome); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); }
/* The top bar holds fixed panels (the outbox, the update line): a backdrop filter on it would become their containing
   block and push them off screen, so the glass is a pseudo-element behind the bar's content, not the bar itself. */
[data-theme^="summit"][data-connected="true"] .topbar { background: transparent; }
[data-theme^="summit"][data-connected="true"] .topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--chrome); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); }
[data-theme^="summit"] .shell-tabs { border-top-color: var(--chromeLine); }
[data-theme^="summit"] .shell-tabs .tab, [data-theme^="summit"] .shell-tabs .tab[aria-current="true"] { color: var(--chromeInk); }
[data-theme^="summit"] .shell-tabs .tab:active { background: var(--chromeHover); }
[data-theme^="summit"][data-connected="true"] .topbar { border-bottom-color: var(--chromeLine); }
[data-theme^="summit"][data-connected="true"] .topbar :is(.topbar-brand, .topbar-title, .icon-btn) { color: var(--chromeInk); }
[data-theme^="summit"][data-connected="true"] .topbar .icon-btn:active { background: var(--chromeHover); }
[data-theme^="summit"][data-connected="true"] .topbar :is(.ph-chip, .topbar-back) { background: var(--chromeHover); border-color: var(--chromeLine); color: var(--chromeInk); }
[data-theme^="summit"][data-connected="true"] .topbar .topbar-account { background: var(--navSel); background-clip: content-box; box-shadow: inset 0 0 0 6px var(--topbar), inset 0 0 0 7px var(--chromeLine); color: var(--navSelInk, var(--ink)); }
[data-theme^="summit"][data-connected="true"] .topbar .brand-mark { background: radial-gradient(circle, var(--chromeInk) 0 32%, transparent 34% 50%, var(--chromeInk) 52%); }
[data-theme^="summit"] :is([data-bsheet], .bsheet) { background: var(--sheet) !important; }
[data-theme^="summit"] .shell-tabs .tab[aria-current="true"]::after, [data-theme^="summit"] .shell-tabs .tab.more-narrow-active::after { display: none; }
[data-theme^="summit"] .shell-tabs button:is([aria-current="true"], .more-narrow-active) > span:not(.tab-badge) { color: var(--attemptInk, var(--ink)); background: var(--highlight); border-radius: 8px; padding: 0 4px; white-space: nowrap; box-shadow: none; }

/* Phase 1: the Analytics page's switch (Business overview · Explore), as the kit's chips. */
.analytics-seg {
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-chip, 999px);
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 600 calc(13px*var(--ts,1))/1 var(--font-ui, inherit);
  cursor: pointer;
}
.analytics-seg[aria-pressed="true"] { background: var(--navSel, var(--p, var(--ink))); border-color: var(--navSel, var(--p, var(--ink))); color: var(--navSelInk, var(--onInk)); }
.analytics-seg:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
/* Release 50 mobile fit: on a phone the switch is two by two and the directory's filter chips three across, never one chip alone
   on a line (docs/compass/release50/MOBILE-FIT.md). The template carries inline flex styles, hence !important. */
@media (max-width: 599px) {
  [data-testid="analytics-switch"] { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-testid="analytics-switch"] .analytics-seg { padding: 0 8px; }
  .dfr { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dfr > button { padding-left: 4px !important; padding-right: 4px !important; justify-content: center; }
  /* Settings and data: the import form's mode, dates, file and Upload are one column of full-width fields. */
  div:has(> [aria-label="Import mode"]) { display: grid !important; grid-template-columns: minmax(0, 1fr); }
  div:has(> [aria-label="Import mode"]) > :is(select, input, button) { width: 100% !important; }
}
/* Manager phone bar: under 768 px it holds Home, Review, Team, Accounts and More at the normal label size;
   Schedules, Calendar and Analytics move into More there (the sheet rows below), and stay in the bar and sidebar from
   768 px. Release 26: the "Management" back chip is not shown on a phone (the tab bar does that job, and the chip
   squeezed the page title to "A..").*/
@media (max-width: 767px) {
  .shell-tabs .tab-wide { display: none; }
  .topbar-back { display: none; }
  .shell-tabs .tab.more-narrow-active { color: var(--ink); font-weight: 600; }
  .shell-tabs .tab.more-narrow-active::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: 3px; height: 3px; border-radius: 2px; background: var(--tabActive, var(--ink)); }
}
@media (min-width: 768px) {
  .bsheet-row.more-narrow { display: none; }
}
/* A 320 px phone with Management, search, the pharmacy chip, the outbox and the avatar in the bar: the chips
   tighten and the brand mark steps aside so the bar never runs past the screen. */
@media (max-width: 359px) {
  .ph-chip, .topbar-back { padding-left: 8px; padding-right: 8px; }
  [data-connected="true"] .topbar:has(.topbar-back) .brand-mark { display: none; }
}

/* "You're here": from a chooser, the office page's back control names where it goes ("‹ 4 offices here"). */
[data-connected="true"] .here-back {
  min-height: 44px;
  padding: 0 14px 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--link, var(--p));
  font-size: calc(15px*var(--ts,1));
  font-weight: 600;
  white-space: nowrap;
}
[data-connected="true"] .office-back:has(+ .here-back) { display: none !important; }

/* ---------- print (the owner report, docs/compass/quick-wins/QUICK-WINS.md): the page's own content only, no navigation */
@media print {
  .topbar, .shell-tabs, .shell-side, [data-testid="tab-bar"], [data-testid="sidebar"], .backdrop-shell { display: none !important; }
  .app-root[data-connected="true"] { padding: 0 !important; background: #fff !important; background-image: none !important; min-height: 0 !important; }
  [data-connected="true"] .shell-content, [data-connected="true"] .management-shell { padding: 0 !important; margin: 0 !important; width: auto !important; max-width: none !important; }
  html, body { background: #fff !important; }
  /* Release 20: a printed weekly brief is the brief sheet alone (the brief screens' own header and title stay off paper). */
  .brief-chrome { display: none !important; }
}

/* Release 16: with the 40 px phone floor the outbox chip is 40 px wide, and a long pharmacy name (ProSource) with
   Management, search, the outbox and the avatar ran 2 px past a 390 px screen. The text chips give way (they
   already ellipsize; never under 40 px); the icon buttons, the outbox and the avatar keep their size. */
@media (max-width: 1023px) {
  .topbar-actions { flex: 0 1 auto; min-width: 0; }
  .topbar-actions > .icon-btn, .topbar-actions > .topbar-account, .topbar-actions > compass-outbox, .topbar-actions > compass-update { flex-shrink: 0; }
  .topbar-actions > .ph-chip, .topbar-actions > .topbar-back { min-width: 40px; }
}

/* Mobile polish (docs/compass/mobile/MOBILE.md): the Analytics view switch is a 40 px touch target on phones. */
@media (max-width: 1023px) {
  .analytics-seg { min-height: 44px; }
}

/* Release 18: Home's day bar (date, week arrows, week strip) stays under the top bar while the page scrolls. */
[data-connected="true"] .day-bar {
  position: sticky;
  top: calc(var(--topbar-h) + var(--safe-t));
  z-index: 40;
  border-bottom: 1px solid var(--line);
}

/* ---------- Release 30: Appearance (appearance.js) ---------- */
/* Text size. Every font size in the app is calc(Npx*var(--ts,1)); --ts is the phone's text size times the account
   menu's Text size choice (set on <html>, so it inherits into every shadow root). The template's inline sizes
   cannot carry the factor (the template may not grow), so one rule per size scales them here. Only text grows:
   widths, padding and tap targets keep their size. The chips, avatar and tab labels stop at --ts-tab (a bit over
   one and a seventh) so the bars never outgrow their screens. */
[style*="font-size:9.5px"]{font-size:calc(9.5px*var(--ts,1))!important}
[style*="font-size:10px"]{font-size:calc(10px*var(--ts,1))!important}
[style*="font-size:10.5px"]{font-size:calc(10.5px*var(--ts,1))!important}
[style*="font-size:11px"]{font-size:calc(11px*var(--ts,1))!important}
[style*="font-size:11.5px"]{font-size:calc(11.5px*var(--ts,1))!important}
[style*="font-size:12px"]{font-size:calc(12px*var(--ts,1))!important}
[style*="font-size:12.5px"]{font-size:calc(12.5px*var(--ts,1))!important}
[style*="font-size:13px"]{font-size:calc(13px*var(--ts,1))!important}
[style*="font-size:13.5px"]{font-size:calc(13.5px*var(--ts,1))!important}
[style*="font-size:14px"]{font-size:calc(14px*var(--ts,1))!important}
[style*="font-size:14.5px"]{font-size:calc(14.5px*var(--ts,1))!important}
[style*="font-size:15px"]{font-size:calc(15px*var(--ts,1))!important}
[style*="font-size:16px"]{font-size:calc(16px*var(--ts,1))!important}
[style*="font-size:18px"]{font-size:calc(18px*var(--ts,1))!important}
[style*="font-size:19px"]{font-size:calc(19px*var(--ts,1))!important}
[style*="font-size:20px"]{font-size:calc(20px*var(--ts,1))!important}
[style*="font-size:21px"]{font-size:calc(21px*var(--ts,1))!important}
[style*="font-size:22px"]{font-size:calc(22px*var(--ts,1))!important}
[style*="font-size:24px"]{font-size:calc(24px*var(--ts,1))!important}
[style*="font-size:26px"]{font-size:calc(26px*var(--ts,1))!important}
[style*="font-size:28px"]{font-size:calc(28px*var(--ts,1))!important}
[style*="font-size:30px"]{font-size:calc(30px*var(--ts,1))!important}
[style*="font:600 clamp(12px,3.9vw,16px)"]{font-size:calc(clamp(12px,3.9vw,16px)*var(--ts,1))!important}
[style*="font:600 15px"]{font-size:calc(15px*var(--ts,1))!important}
/* The Summit type tokens (label and figure sizes) are literal px in the theme; scale them the same way. */
.app-root[data-theme^="summit"] { --labelSize: calc(10.5px*var(--ts,1)); --figureSize: calc(20px*var(--ts,1)); }
/* Account menu: three stacked buttons (these styles were inline), and a menu that scrolls when large text outgrows a small screen. */
.acct-btn { display: block; width: 100%; min-height: 46px; margin-top: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; }
[data-bsheet][aria-label="Account"] { max-height: calc(100dvh - var(--topbar-h) - var(--safe-t) - 16px); overflow-y: auto; overscroll-behavior: contain; }
/* Dark mode: tokens that only a few screens read (their light values are the var() fallbacks in those screens, so the
   light theme is untouched). The Google map stays light, so what sits on it keeps the light theme's colours. */
[data-theme$="-dark"] {
  --danger: var(--red);
  --infoSoft: #1F3A4C;
  --warnFill: var(--amberSoft);
  --warnInk: var(--amber);
  --handledBg: var(--neverSoft);
  --handledLine: var(--line);
  --handledInk: var(--neverText);
  --numInk: var(--onInk);
  --tanInk: #1E373A;
  --scrimBg: #000;
  --scrim: rgba(0, 0, 0, .55);
  --mapP: #2C4E51;
  --mapInk: #1E373A;
  --mapCard: #FFFFFF;
}

/* ---------- Release 41: Summit Glass (ADR 0006, amended 2026-11-07 to "Green chrome", Preston's pick of ten). The
   canvas is pale mint with a teal wash behind the content, a yellow one at the right and a leaf-green one at the foot
   (in the content area, not under the chrome); the chrome (top bar, sidebar, tab bar) is teal glass with white text;
   cards are translucent white (--card, --glass) with a 1 px light top edge carried in --shadow. The dark partner keeps
   its night paper with the same washes at a fraction of the strength and near-black chrome. */
.app-root[data-theme="summit"] { --glass: rgba(255, 255, 255, 0.60); --chrome: rgba(58, 100, 103, 0.86); --chromeSolid: #53787A; --chromeInk: #FFFFFF; --chromeLine: rgba(255, 255, 255, 0.18); --chromeHover: rgba(255, 255, 255, 0.14); --paperImage: radial-gradient(1100px 600px at 35% -8%, rgba(94, 155, 156, 0.55), transparent 60%), radial-gradient(900px 540px at 100% 16%, rgba(255, 213, 102, 0.55), transparent 58%), radial-gradient(800px 460px at 60% 112%, rgba(96, 170, 120, 0.36), transparent 60%); }
.app-root[data-theme="summit-dark"] { --glass: rgba(21, 41, 43, 0.80); --chrome: rgba(15, 32, 34, 0.86); --chromeSolid: #0F2022; --chromeInk: #F3EDDC; --chromeLine: rgba(255, 255, 255, 0.10); --chromeHover: rgba(255, 255, 255, 0.08); --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.25), 0 10px 28px rgba(0, 0, 0, 0.28); --paperImage: radial-gradient(1100px 600px at 35% -8%, rgba(94, 155, 156, 0.16), transparent 60%), radial-gradient(900px 540px at 100% 16%, rgba(255, 213, 102, 0.10), transparent 58%); }
.app-root[data-connected="true"][data-theme^="summit"] { background-repeat: no-repeat !important; background-size: 100% 100% !important; }
@supports not (backdrop-filter: blur(1px)) { [data-theme^="summit"] .shell-side, [data-theme^="summit"] .shell-tabs, [data-theme^="summit"][data-connected="true"] .topbar::before { background: var(--chromeSolid); } }
/* Glass cards: the connected screens' panels (kit cards, phone sections, glance blocks) get the soft shadow and a
   translucent white so the tints read through. Shadow roots carry their own copy (ui-kit.js kitCss). */
[data-theme="summit"][data-connected="true"] .k-card, [data-theme="summit"][data-connected="true"] .ov-card, [data-theme="summit"][data-connected="true"] .sec.glance-block { background: var(--glass); box-shadow: var(--shadow); }
/* Release 53: visible labels on the sign-in fields (the placeholders vanished on typing). */
.si-l { display: block; font-size: calc(13px*var(--ts,1)); font-weight: 600; color: var(--ink); margin-top: 12px; }
.si-l + * { margin-top: 4px; }
/* Release 53: the sign-in and choose-password cards are opaque (the glass card colour over the dark backdrop read grey). */
.si-c { background: var(--sheet, var(--card)); }
