/* App layout on top of the Organic design system (organic.css). Tokens only: every color,
   font, radius and shadow comes from its variables - no raw hex or font names here. */
:root { --gutter: clamp(16px, 4vw, 40px); }

.boot { padding: var(--gutter); opacity: 0.6; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---- signed-in shell (header uses the system's .nav / .nav-brand) ---- */
.app-header { background: var(--color-surface); padding: 14px var(--gutter); flex-wrap: wrap; }
.app-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.app-who-name { font-size: 13px; font-weight: 600; }
.app-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px var(--gutter); }
.app-tabs .btn { white-space: nowrap; }
.app-content { padding: 8px var(--gutter) 80px; max-width: 1180px; }

/* ---- the menu (2026-10-25 layout, docs/layout-plan.md; components/AppNav.js). Wide: labelled side menu. Laptop: icons,
   name on hover. Phone: bottom bar + More. The page beside the menu is no longer held to 1180px; screens keep their own
   reading widths for text and forms. ---- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.shell-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.shell-main > .app-content { flex: 1 0 auto; width: 100%; }
/* the page file's own footer stays for the sign-in page; inside the app the same links sit at the foot of the column */
body:has(.shell) > .site-foot { display: none; }
.app-foot { text-align: center; font-size: 13px; opacity: 0.7; padding: 4px 16px 18px; }
/* scrollbars in the app's own colours (2026-10-26, John: "make the scrolling match the app"): thin, the live accent on a
   see-through track. Phones draw their own overlay scrollbars. */
html, .more-sheet, .oo-grid-wrap, .section-tabs, textarea { scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--live-e1, #5fe0d6) 55%, transparent) transparent; }
.shell .app-content { max-width: 1480px; padding-top: 22px; }
.side-nav { position: sticky; top: 0; z-index: 30; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
  padding: 18px 12px 14px; background: var(--theme-header, var(--color-surface)); border-right: 1.5px solid var(--theme-edge-soft, var(--color-divider));
  scrollbar-width: none; }
/* no scrollbar on the side menu (2026-10-26, John): tighter on shorter screens so it fits; if it still doesn't, the bottom fades */
.side-nav::-webkit-scrollbar { display: none; }
.side-nav.can-scroll-down { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); }
.side-brand { font-family: var(--font-heading); font-size: 19px; line-height: 1.1; padding: 2px 8px 14px; white-space: nowrap; }
.side-brand span { background: var(--theme-fill, none); -webkit-background-clip: text; background-clip: text; color: transparent; }
.side-brand-short { display: none; }
.side-new { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 2px 10px; padding: 10px 12px;
  border-radius: 12px; background: var(--theme-fill, var(--color-accent)); color: var(--theme-on-fill, #fff); font-weight: 800; font-size: 14px;
  text-decoration: none; box-shadow: 0 6px 18px var(--theme-glow, transparent); }
.side-new:hover { filter: brightness(1.08); }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-group-label { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; opacity: 0.55; padding: 14px 11px 5px; }
.side-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: var(--color-text);
  text-decoration: none; font: inherit; font-size: 14px; font-weight: 600; opacity: 0.8; background: none; border: 0; cursor: pointer;
  text-align: left; width: 100%; position: relative; }
.side-item:hover { opacity: 1; background: var(--theme-chip, var(--color-divider)); }
.side-item[aria-current='page'] { opacity: 1; background: var(--theme-glow, var(--color-divider)); box-shadow: inset 3px 0 0 var(--live-e1, var(--color-accent)); }
.side-item .nav-icon, .side-new .nav-icon { flex: none; }
.side-item .lock-mark { margin-left: auto; }
.side-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--theme-edge-soft, var(--color-divider)); display: flex; flex-direction: column; gap: 2px; }
.side-action { font-size: 13px; padding-top: 7px; padding-bottom: 7px; }
.side-person { display: flex; align-items: center; gap: 10px; padding: 10px 11px 2px; }
.side-avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--theme-fill, var(--color-accent)); color: var(--theme-on-fill, #fff); }
.side-person-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
@media (min-width: 1100px) and (max-height: 1000px) {
  .side-nav { padding-top: 14px; padding-bottom: 10px; }
  .side-brand { padding-bottom: 10px; }
  .side-new { margin-bottom: 6px; padding: 9px 12px; }
  .side-group-label { padding: 10px 11px 3px; }
  .side-item { padding-top: 6px; padding-bottom: 6px; }
  .side-action { padding-top: 5px; padding-bottom: 5px; }
  .side-foot { padding-top: 6px; }
  .side-person { padding-top: 6px; }
}
.side-person-name { font-size: 13px; font-weight: 700; }
.side-person-tags { display: flex; flex-wrap: wrap; gap: 4px; }
/* tabs inside one place: Meetings (Meeting | One-on-ones), Routines & duties (Routines | Duties) */
.section-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--theme-edge-soft, var(--color-divider)); margin-bottom: var(--space-4); }
.section-tabs { overflow-x: auto; scrollbar-width: none; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tabs a, .section-tabs button { padding: 2px 2px 11px; color: var(--color-text); text-decoration: none; font: inherit; font-weight: 700; font-size: 15px;
  opacity: 0.65; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; background: none; border: 0; cursor: pointer; flex: none; }
.section-tabs a:hover, .section-tabs button:hover { opacity: 1; }
.section-tabs [aria-current='page'] { opacity: 1; box-shadow: inset 0 -3px 0 var(--live-e1, var(--color-accent)); }
.section-tab-count { font-size: 11px; font-weight: 800; border-radius: 99px; padding: 1px 7px; background: var(--theme-coral, #e2675b); color: #1a0d0a; }
@media (max-width: 767px) { .section-tabs { gap: 18px; } .section-tabs a, .section-tabs button { font-size: 14px; } }
.phone-top, .tab-bar, .phone-fab, .more-backdrop { display: none; }

/* laptop: the menu folds to icons; each name shows beside its icon on hover */
@media (min-width: 768px) and (max-width: 1279px) {
  .shell { grid-template-columns: 76px minmax(0, 1fr); }
  .side-nav { padding: 16px 10px; align-items: center; overflow: visible; }
  .side-brand { padding: 2px 0 12px; }
  .side-brand-full { display: none; }
  .side-brand-short { display: inline; }
  .side-new { width: 48px; height: 44px; padding: 0; margin: 0 0 8px; }
  .side-group { align-items: center; padding-top: 6px; margin-top: 6px; border-top: 1px solid var(--theme-edge-soft, var(--color-divider)); width: 100%; }
  .side-brand + .side-group, .side-new + .side-group { border-top: 0; }
  .side-group-label { display: none; }
  .side-item { width: 48px; height: 44px; justify-content: center; padding: 0; }
  .side-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .side-item .lock-mark { position: absolute; top: 3px; right: 3px; margin: 0; }
  .side-item:hover::after, .side-new:hover::after, .side-item:focus-visible::after { content: attr(data-label); position: absolute; left: 58px; top: 50%;
    transform: translateY(-50%); white-space: nowrap; z-index: 80; padding: 6px 11px; border-radius: 8px; font-size: 13px; font-weight: 700;
    background: var(--color-neutral-900, #1c2a3e); color: var(--color-neutral-100, #fff); box-shadow: 0 6px 16px var(--theme-drop, rgba(0,0,0,.4)); pointer-events: none; }
  .side-new { position: relative; }
  .side-foot { align-items: center; width: 100%; }
  .side-person { padding: 8px 0 2px; justify-content: center; }
}

/* phone: a slim top bar, the bottom bar with four places + More, a round + for a new task */
@media (max-width: 767px) {
  .shell { display: block; }
  .side-nav { display: none; }
  .phone-top { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40;
    padding: 12px var(--gutter); background: var(--theme-header, var(--color-surface)); border-bottom: 1px solid var(--theme-edge-soft, var(--color-divider)); backdrop-filter: blur(10px); }
  .phone-title { font-family: var(--font-heading); font-size: 21px; font-weight: 700; background: var(--theme-fill, none);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
  .shell .app-content { padding-top: 14px; padding-bottom: 16px; }
  .shell-main { min-height: calc(100vh - 58px); }
  .app-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .tab-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 56;
    padding: 8px 4px calc(10px + env(safe-area-inset-bottom)); background: var(--color-bg);
    border-top: 1px solid var(--theme-edge-soft, var(--color-divider)); }
  .tab-bar-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; font: inherit; font-size: 11px; font-weight: 700;
    color: var(--color-text); opacity: 0.62; text-decoration: none; background: none; border: 0; cursor: pointer; }
  .tab-bar-item[aria-current='page'] { opacity: 1; color: var(--live-e1, var(--color-accent)); }
  .phone-fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 57;
    width: 56px; height: 56px; border-radius: 18px; background: var(--theme-fill, var(--color-accent)); color: var(--theme-on-fill, #fff);
    box-shadow: 0 8px 22px var(--theme-drop, rgba(0,0,0,.4)); }
  .more-backdrop { display: block; position: fixed; inset: 0; z-index: 90; background: var(--theme-backdrop, rgba(0,0,0,.55)); }
  .more-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0; background: linear-gradient(180deg, var(--theme-tint, transparent), transparent 140px), var(--color-bg);
    border-top: 1.5px solid var(--theme-edge-soft, var(--color-divider)); box-shadow: 0 -12px 40px var(--theme-drop, rgba(0,0,0,.4));
    animation: sheet-up 0.18s ease-out; }
  .more-grip { width: 44px; height: 5px; border-radius: 9px; background: var(--theme-chip, var(--color-divider)); margin: 0 auto 6px; }
  /* things that sit at the bottom of the screen move up above the bar */
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .undo-note { bottom: calc(150px + env(safe-area-inset-bottom)); }
  body .ride-bar { bottom: calc(70px + env(safe-area-inset-bottom)); padding: 8px 12px; gap: 10px; }
  body .ride-bar span { font-size: 12px; line-height: 1.3; }
  body .ride-bar .btn { flex: none; padding: 8px 12px; font-size: 13px; }
  body .has-ride-bar { padding-bottom: 70px; }
  body:has(.ride-bar) .toast { bottom: calc(160px + env(safe-area-inset-bottom)); }
  body:has(.ride-bar) .undo-note { bottom: calc(214px + env(safe-area-inset-bottom)); }
  body:has(.ride-bar) .phone-fab { bottom: calc(148px + env(safe-area-inset-bottom)); }
}
/* phone: a wide table (table.stack-sm: New students, Past students, One-on-ones) becomes one card per row, each cell
   with its column's name (data-label) - no sideways scrolling (John, 2026-10-26: "this scrolling is no bueno") */
@media (max-width: 767px) {
  .oo-grid-wrap:has(> .stack-sm) { overflow: visible; border: 0; background: none; border-radius: 0; }
  table.stack-sm { min-width: 0; display: block; font-size: 14px; }
  table.stack-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack-sm tbody { display: flex; flex-direction: column; gap: 10px; }
  table.stack-sm tr { display: block; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--theme-edge-soft, var(--color-divider));
    background: var(--theme-glass, var(--color-surface)); }
  table.stack-sm th, table.stack-sm td { display: block; border: 0; padding: 0; min-width: 0; background: none; }
  table.stack-sm tbody th { margin-bottom: 8px; }
  table.stack-sm td[data-label] { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: center; padding: 3px 0; }
  table.stack-sm td[data-label]::before { content: attr(data-label); font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; opacity: 0.7; }
  table.stack-sm td[data-label]::before { grid-column: 1; grid-row: 1 / span 4; align-self: start; padding-top: 3px; }
  table.stack-sm td[data-label] > * { grid-column: 2; justify-self: start; }
  table.stack-sm td .oo-cell { justify-self: start; }
}
/* ---- Admin menu (2026-10-26): the menu and the chosen section side by side; on a phone, one at a time ---- */
.admin-layout { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 32px; align-items: start; }
.admin-menu { position: sticky; top: 16px; }
.admin-menu .team-sub { margin-bottom: 4px; }
.admin-menu-group .side-group-label { padding-left: 4px; }
.admin-menu-list { border: 1.5px solid var(--theme-edge-soft, var(--color-divider)); border-radius: 16px; overflow: hidden;
  background: var(--theme-glass, var(--color-surface)); }
.admin-menu-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--color-text); text-decoration: none;
  border-top: 1px solid var(--theme-edge-soft, var(--color-divider)); }
.admin-menu-item:first-child { border-top: 0; }
.admin-menu-item:hover { background: var(--theme-chip, var(--color-divider)); }
.admin-menu-item[aria-current='page'] { background: var(--theme-glow, var(--color-divider)); box-shadow: inset 3px 0 0 var(--live-e1, var(--color-accent)); }
.admin-menu-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--theme-chip, var(--color-divider)); }
.admin-menu-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-menu-name { font-weight: 700; font-size: 15px; }
.admin-menu-line { font-size: 12px; opacity: 0.7; }
.admin-menu-line.warn { color: #ffcf8a; opacity: 1; }
.admin-menu-chev { margin-left: auto; opacity: 0.5; font-size: 20px; }
.admin-pane { min-width: 0; }
.admin-pane-title { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-3); }
.admin-studio-bar { width: 10px; height: 34px; border-radius: 6px; flex: none; }
.admin-back { display: none; }
.admin-pane .admin-section-body { max-width: 760px; }
@media (max-width: 767px) {
  .admin-layout { display: block; }
  .admin-menu { position: static; }
  .admin-layout.has-section .admin-menu { display: none; }
  .admin-layout:not(.has-section) .admin-pane { display: none; }
  .admin-menu-item[aria-current='page'][data-picked='no'] { background: none; box-shadow: none; }
  .admin-back { display: contents; } /* its back button pins under the top bar like the others */
}
/* ---- one clear way back (2026-10-26): a pill with an arrow that says where it goes; pinned while scrolling ---- */
.back-bar { position: sticky; top: 0; z-index: 35; margin: -6px 0 10px; padding: 6px 0; }
.back-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 11px; border-radius: 999px; font-weight: 800; font-size: 14px;
  color: var(--color-text); text-decoration: none; border: 1.5px solid var(--live-e1, var(--color-accent));
  background: color-mix(in srgb, var(--color-bg, #0e0b18) 70%, var(--live-e1, #5fe0d6) 30%); box-shadow: 0 4px 14px var(--theme-drop, rgba(0,0,0,.3)); }
.back-btn:hover { filter: brightness(1.12); }
/* list filters (2026-10-26, picture agreed): one quick row with counts on every screen; the rest behind "Sort & filter"
   (a panel under the button on a computer, a sheet on a phone) */
.quick-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: var(--space-3); position: relative; }
.quick-filter-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.chip-count { font-weight: 800; opacity: 0.7; margin-left: 3px; }
/* search on My list (2026-10-28) */
.list-search { display: flex; align-items: center; gap: 8px; flex: 0 1 300px; min-width: 200px; padding: 6px 12px; border-radius: 999px;
  background: var(--theme-input, rgba(0,0,0,.25)); border: 1.5px solid var(--theme-edge-soft, var(--color-divider)); }
.list-search:focus-within { border-color: var(--live-e1, var(--color-accent)); box-shadow: 0 0 0 3px var(--theme-glow, transparent); }
.list-search .nav-icon { opacity: 0.6; flex: none; }
.list-search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--color-text); font: inherit; font-size: 14px; }
.list-search-input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.list-search-kbd { font: inherit; font-size: 11px; opacity: 0.55; border: 1px solid var(--theme-edge-soft, var(--color-divider)); border-radius: 6px; padding: 0 6px; }
.list-search-count { margin: 0 0 var(--space-2); }
@media (max-width: 767px) { .list-search { flex-basis: 100%; } .list-search-kbd { display: none; } }
.filter-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px;
  padding: 14px 16px; border-radius: 14px; background: linear-gradient(var(--theme-chip, rgba(255,255,255,.06)), var(--theme-chip, rgba(255,255,255,.06))), var(--color-bg, #0e0b18); border: 1.5px solid var(--live-e1, var(--color-accent));
  box-shadow: 0 14px 34px var(--theme-drop, rgba(0,0,0,.45)); }
.filter-pop .controls, .filter-sheet .controls { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin: 0; }
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group .chips { flex-wrap: wrap; margin: 0; }
@media (max-width: 767px) {
  .back-bar { top: 58px; margin: -8px calc(-1 * var(--gutter)) 10px; padding: 8px var(--gutter);
    background: color-mix(in srgb, var(--color-bg, #0e0b18) 85%, transparent); backdrop-filter: blur(8px); }
  .filter-sheet .chips { flex-wrap: wrap; }
  .filter-sheet-done { width: 100%; margin-top: var(--space-3); }
}
/* ---- Admin > a studio > Google Calendars: the table as pictured, with a clear hover / focus on every row (2026-10-26) ---- */
/* sized by the room the tab really has, not the screen: the admin menu takes a lot of a laptop screen */
.gcal-layout { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.gcal-main { flex: 4 1 560px; min-width: 0; container-type: inline-size; }
.gcal-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.gcal-layout .card { margin-right: 0; }
.gcal-card { display: flex; flex-direction: column; gap: 8px; }
.gcal-card .card-body { margin: 0; font-size: 13.5px; line-height: 1.5; }
.gcal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gcal-table { padding: 0; overflow: hidden; }
.gcal-tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 1.3fr) 128px 76px; gap: 12px; align-items: center;
  padding: 12px 18px; border-top: 1px solid var(--theme-edge-soft, var(--color-divider)); transition: background 0.12s ease, box-shadow 0.12s ease; }
.gcal-th { border-top: 0; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; opacity: 0.6; padding-top: 14px; padding-bottom: 10px; }
.gcal-tr:not(.gcal-th):hover { background: var(--theme-chip, rgba(255,255,255,.08)); box-shadow: inset 4px 0 0 var(--theme-edge-soft, rgba(95,224,214,.5)); }
.gcal-tr:not(.gcal-th):focus-within { background: var(--theme-glow, rgba(95,224,214,.16));
  box-shadow: inset 4px 0 0 var(--live-e1, var(--color-accent)), inset 0 0 0 1px var(--theme-edge-soft, rgba(95,224,214,.45)); }
.gcal-tr select.input:hover, .gcal-tr select.input:focus { box-shadow: 0 0 0 3px var(--theme-glow, rgba(95,224,214,.25)); }
.gcal-both:hover .dot, .gcal-both input:focus + .dot { box-shadow: 0 0 0 4px var(--theme-glow, rgba(95,224,214,.25)); }
.gcal-tr.is-ignored .gcal-name { opacity: 0.55; }
.gcal-name { font-weight: 700; font-size: 14px; }
.gcal-name small { font-weight: 500; opacity: 0.7; }
.gcal-tr select.input { width: 100%; min-width: 0; cursor: pointer; }
.gcal-tr select.input:hover { border-color: var(--live-e1, var(--color-accent)); }
.gcal-tr select.input:focus-visible, .gcal-both input:focus-visible + .dot { outline: 2px solid var(--live-e1, var(--color-accent)); outline-offset: 2px; }
.gcal-both { cursor: pointer; margin: 0; }
@container (min-width: 560px) { .gcal-both-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.gcal-both:hover .dot { border-color: var(--live-e1, var(--color-accent)); }
.gcal-guess { justify-self: start; }
.gcal-newtype { grid-column: 1 / -1; }
.gcal-note { padding: 0 18px; }
.gcal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--theme-edge-soft, var(--color-divider)); background: rgba(255,255,255,.03); }
.gcal-empty { padding: 16px 18px; }
.admin-pane .admin-section-wide { max-width: 1180px; }
@container (max-width: 559px) {
  .gcal-th { display: none; }
  .gcal-tr { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 14px; }
  .gcal-name { grid-column: 1; }
  .gcal-guess { grid-column: 2; grid-row: 1; justify-self: end; }
  .gcal-tr > select.input, .gcal-tr > .helper { grid-column: 1 / -1; }
  .gcal-both { grid-column: 1 / -1; }
  .gcal-foot .btn-primary { flex: 1; }
}

/* ---- the new Pulse (Stage 2, 2026-10-26, as pictured) ---- */
.pulse2-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: var(--space-3); }
.pulse2-head h2 { margin: 0; }
.pulse2-head .team-sub { margin: 2px 0 0; }
.pulse2-pick { display: flex; gap: 6px; }
.pulse2-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: var(--space-3) 0 var(--space-4); }
.pulse-num { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-decoration: none; color: var(--color-text); margin-right: 0; }
.pulse-num-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.pulse-num-value { font-family: var(--font-heading); font-size: 42px; line-height: 1; }
.pulse-num-note { font-size: 12px; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-num.is-red .pulse-num-value { color: var(--theme-coral, #ff8a6e); }
.pulse-num.is-amber .pulse-num-value { color: #ffcf8a; }
.pulse2-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pulse2-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pulse2-main .card { margin-right: 0; }
.pulse2-h { font-family: var(--font-heading); font-size: 22px; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pulse2-more { font-family: var(--font-body, inherit); font-size: 12px; font-weight: 700; color: var(--live-e1, var(--color-accent)); text-decoration: none; }
.pulse2-list { list-style: none; margin: 0; padding: 0; }
.pulse2-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 2px;
  border-top: 1px solid var(--theme-edge-soft, var(--color-divider)); font-size: 14px; }
.pulse2-row:first-child { border-top: 0; }
.pulse2-dot { width: 8px; height: 8px; border-radius: 50%; background: #7ef0c0; }
.lvl-red .pulse2-dot { background: var(--theme-coral, #ff7a6e); }
.lvl-amber .pulse2-dot { background: #ffc46b; }
.pulse2-label { font-weight: 800; }
.pulse2-studio { font-size: 12px; font-weight: 700; }
.pulse2-act { font-size: 13px; font-weight: 800; color: var(--live-e1, var(--color-accent)); text-decoration: none; white-space: nowrap; }
.pulse2-week { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pulse2-week a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; color: var(--color-text); text-decoration: none; }
.pulse2-day { text-align: center; display: flex; flex-direction: column; }
.pulse2-day b { font-family: var(--font-heading); font-size: 24px; line-height: 1; }
.pulse2-day small, .pulse2-ev small { font-size: 11px; opacity: 0.7; }
.pulse2-ev { border-left: 3px solid; padding-left: 10px; display: flex; flex-direction: column; min-width: 0; }
.pulse2-ev b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse2-studios { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.pulse2-studio-card { border-top: 3px solid; padding-top: 8px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; min-width: 0; }
.pulse2-studio-card small { opacity: 0.75; }
.pulse2-studio-card .btn { margin-top: 6px; align-self: flex-start; }
@media (max-width: 1099px) { .pulse2-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .pulse2-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pulse-num-value { font-size: 34px; }
  .pulse2-row { grid-template-columns: 10px minmax(0, 1fr); }
  .pulse2-act { grid-column: 2; justify-self: start; }
}
/* the guide's tab row, with a link or button at its end (2026-10-26) */
.guide-nav { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: var(--space-3); }
.guide-nav .section-tabs { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.guide-nav-link { font-weight: 700; font-size: 14px; color: var(--live-e1, var(--color-accent)); text-decoration: none; padding-bottom: 11px; }
.guide-nav-btn { margin-bottom: 6px; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .more-sheet { animation: none; } }
.placeholder { max-width: 560px; }

/* ---- sign-in ---- */
.signin { max-width: 760px; padding: clamp(24px, 6vw, 64px) var(--gutter); }
.signin-title { font-size: clamp(32px, 6vw, 44px); margin-bottom: var(--space-1); }
.signin-sub { opacity: 0.75; margin-bottom: var(--space-4); max-width: 52ch; }
.signin-form { max-width: 420px; display: flex; flex-direction: column; gap: var(--space-3); }
.keep-me { margin-top: var(--space-1); }
.signin-about { margin-top: var(--space-5, 32px); max-width: 60ch; font-size: 15px; opacity: 0.85; }
.signin-about h2 { font-size: 18px; margin-bottom: var(--space-1); }
.back { margin-bottom: var(--space-1); align-self: flex-start; }

.form-error { color: var(--color-accent-700); font-size: 13px; margin: var(--space-3) 0; }
.form-note { font-size: 13px; opacity: 0.8; max-width: 52ch; }
.row { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.code-input { max-width: 220px; letter-spacing: 0.3em; font-size: 18px; }

/* ---- toast: pill, bottom center, rises in, auto-dismisses ---- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  background: var(--color-neutral-900); color: var(--color-neutral-100);
  border-radius: 999px; padding: 12px 20px; font-size: 13px; box-shadow: var(--shadow-lg);
  animation: toast-in 0.18s ease-out;
}
/* a failure can be long: keep it inside the screen, and it can be tapped away */
.toast { width: max-content; max-width: calc(100vw - 32px); text-align: center; }
.toast-failed { cursor: pointer; border-radius: 16px; }
/* the signed-in screens: 'held' = kept as they were, out of sight, while the person signs in again */
.app-live { display: contents; }
.app-held { display: none; }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media print {
  .no-print { display: none !important; }
  body { background: white; }
}

/* ---- Today ---- */
.briefing { margin-bottom: var(--space-4); max-width: 900px; }
.briefing-line {
  font-family: var(--font-heading); font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.3; text-wrap: pretty; margin: 0;
}
.list-head { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-2) 0 var(--space-3); }
.list-head h2 { margin: 0; }
.list-counts { font-size: 13px; opacity: 0.7; }
.controls { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: flex-end; margin-bottom: var(--space-3); }
.sort-select { min-width: 190px; width: auto; }
.toggle { padding-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.chips-label { font-size: 11px; opacity: 0.6; margin-right: 4px; }
.chip { font: inherit; font-size: 11px; padding: 5px 12px; border: 0; cursor: pointer; }
.section { margin-top: var(--space-4); }
.section-head { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-2); }
.section-head h4 { margin: 0; }
.task-list { display: flex; flex-direction: column; gap: var(--space-2); }
.empty { opacity: 0.7; margin-top: var(--space-4); }

/* ---- task card: checkbox | body | actions ---- */
.task { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.check {
  width: 22px; height: 22px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--color-bg);
  background: transparent; border: 1.5px solid var(--color-neutral-500);
}
.check.done { background: var(--color-accent-2-600); border-color: var(--color-accent-2-600); }
.check:disabled { cursor: not-allowed; opacity: 0.45; }
.check.sm { width: 16px; height: 16px; flex: none; }
.task-title { font-family: var(--font-heading); font-size: 16px; line-height: 1.25; margin: 1px 0 6px; }
.task.is-done .task-title, .task.is-cancelled .task-title { opacity: 0.6; }
.task-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.task-by { font-size: 11px; opacity: 0.55; }
.task-event { font-size: 12px; color: var(--color-accent-700); margin-top: 6px; }
.task-line { font-size: 12px; margin-top: 6px; }
.task-line.cancelled { color: var(--color-accent-700); }
.task-line.moved { color: var(--color-accent-2-700); }
.last-note { font-size: 12px; opacity: 0.75; margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--color-accent-300); }
.sub-toggle { font-size: 12px; margin-top: 6px; }
.subs { margin-top: 6px; padding-left: 12px; border-left: 2px solid var(--color-divider); display: flex; flex-direction: column; gap: 6px; }
.sub { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.task-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.task-actions .btn { font-size: 12px; }
.task-more { display: none; }
/* below a wide screen the buttons go under the title, so the title is never squeezed (2026-10-26) */
@media (max-width: 1099px) {
  .task { grid-template-columns: 22px minmax(0, 1fr); }
  .task-actions { grid-column: 2; justify-content: flex-start; }
}
/* phone: the buttons move behind one round button, which opens them as a list (2026-10-26, picture agreed) */
@media (max-width: 767px) {
  .task { grid-template-columns: 22px minmax(0, 1fr) 36px; }
  .task-actions { display: none; }
  .task-more { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
    color: var(--color-text); background: var(--theme-chip, transparent); border: 1px solid var(--theme-edge-soft, var(--color-divider)); }
  .task-sheet-title { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin: 2px 4px 12px; }
  .task-sheet-actions { display: flex; flex-direction: column; gap: 8px; }
  .task-sheet-actions .btn { width: 100%; justify-content: flex-start; font-size: 15px; padding: 12px 16px; text-decoration: none;
    border: 1.5px solid var(--theme-edge-soft, var(--color-divider)); background: var(--theme-chip, transparent); color: var(--color-text); }
}

/* ---- task rows on a computer (2026-10-26, picture agreed): compact; the row lights up when pointed at; the everyday
   buttons show then; the round button opens a small menu with the rest; the due date sits on the right ---- */
.task { position: relative; }
.task-menu { display: none; }
@media (min-width: 768px) {
  .task.card { padding-top: 12px; padding-bottom: 12px; transition: border-color .12s ease, box-shadow .12s ease; }
  .task { grid-template-columns: 22px minmax(0, 1fr) auto auto 34px; align-items: center; }
  .task-title { margin-bottom: 4px; }
  .task.card:hover, .task.card:focus-within, .task.card.menu-open { border-color: var(--live-e1, var(--color-accent));
    box-shadow: inset 3px 0 0 var(--live-e1, var(--color-accent)), 0 4px 16px var(--theme-glow, transparent); }
  .task.is-open:not(.is-late) .due-tag { display: none; }
  .task-due { font-size: 12.5px; font-weight: 700; opacity: 0.7; white-space: nowrap; min-width: 44px; text-align: right; }
  .task-due.is-late { color: var(--color-accent-700, #ff8f7a); opacity: 1; }
  .task-more { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; padding: 0;
    color: var(--color-text); background: transparent; border: 1px solid transparent; opacity: 0.6; }
  .task:not(.has-more) .task-more { visibility: hidden; }
  .task-more:hover, .task.menu-open .task-more, .task-more:focus-visible { opacity: 1; background: var(--theme-chip); border-color: var(--theme-edge-soft, var(--color-divider)); }
  .task-menu { display: flex; flex-direction: column; gap: 2px; position: absolute; right: 10px; top: calc(100% - 8px); z-index: 20; min-width: 210px;
    padding: 6px; border-radius: 12px; background: linear-gradient(var(--theme-chip, rgba(255,255,255,.06)), var(--theme-chip, rgba(255,255,255,.06))), var(--color-bg, #0e0b18); border: 1.5px solid var(--live-e1, var(--color-accent));
    box-shadow: 0 14px 34px var(--theme-drop, rgba(0,0,0,.45)); }
  .task-menu .btn { justify-content: flex-start; width: 100%; border: 0; background: transparent; color: var(--color-text); font-size: 13.5px;
    padding: 8px 12px; border-radius: 8px; box-shadow: none; text-align: left; }
  .task-menu .btn:hover, .task-menu .btn:focus-visible { background: var(--theme-glow, var(--theme-chip)); }
  .task-menu .task-act-cancel { color: var(--color-accent-700, #ff8f7a); }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .task { grid-template-columns: 22px minmax(0, 1fr) auto 34px; }
  .task-actions { grid-column: 2 / -1; grid-row: 2; }
}
/* the everyday buttons wait until the row is pointed at, on a computer with a mouse */
@media (min-width: 1100px) and (hover: hover) {
  .task .task-actions { opacity: 0; transition: opacity .12s ease; }
  .task:hover .task-actions, .task:focus-within .task-actions, .task.menu-open .task-actions { opacity: 1; }
}
@media (max-width: 767px) { .task-due { display: none; } }

/* ---- My list with its side panel (2026-10-26, picture agreed): tasks first; the greeting, Getting started and Coming up
   beside them on a wide screen, above them (without Coming up) on a smaller one ---- */
.today-side { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--space-4); }
.today-side .briefing, .today-side .setup-card { margin: 0; max-width: none; }
.today-side .coming-up { display: none; }
.today-side .briefing-line { font-size: 18px; line-height: 1.35; }
@media (min-width: 1200px) {
  .today-has-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "main side"; gap: 24px; align-items: start; }
  .today-has-side .today-main { grid-area: main; min-width: 0; }
  .today-has-side .today-side { grid-area: side; position: sticky; top: 16px; margin: 0; }
  .today-side .coming-up { display: flex; }
}
.setup-compact { display: flex; flex-direction: column; gap: 8px; }
.setup-ring-row { display: flex; align-items: center; gap: 12px; }
.setup-ring { --pct: 0%; width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--live-e1, var(--color-accent)) var(--pct), var(--theme-chip, rgba(255,255,255,.1)) 0); }
.setup-ring > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px;
  background: var(--theme-header, var(--color-surface)); }
.setup-ring-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.setup-ring-title { font-weight: 800; }
.setup-next { font-size: 13px; font-weight: 600; color: var(--live-e1, var(--color-accent)); }
.setup-all { align-self: flex-start; font-size: 12px; padding-left: 0; }
.coming-up { flex-direction: column; gap: 6px; }
.coming-list { list-style: none; margin: 0; padding: 0; }
.coming-list li + li { border-top: 1px solid var(--theme-edge-soft, var(--color-divider)); }
.coming-list a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 2px; color: var(--color-text); text-decoration: none; font-size: 13.5px; }
.coming-list a:hover .coming-title { color: var(--live-e1, var(--color-accent)); }
.coming-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coming-when { flex: none; opacity: 0.65; font-size: 12.5px; }
.coming-more { font-size: 13px; font-weight: 700; color: var(--live-e1, var(--color-accent)); }

/* ---- event page: Attending beside the checklist (2026-10-28, picture agreed); above it on a smaller screen ---- */
.event-check-layout { display: flex; flex-direction: column; gap: var(--space-4); }
.event-check-main { min-width: 0; }
.event-attending { order: -1; margin: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--theme-edge-soft, var(--color-divider));
  background: var(--theme-chip, rgba(255,255,255,.04)); }
.event-attending .admin-h { margin-top: 0; }
.event-attending .attendee-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--theme-edge-soft, var(--color-divider)); }
.event-attending .attendee-row > span:first-child { flex: 1; min-width: 0; }
.event-attending .inline-fields { flex-wrap: wrap; margin-top: 10px; }
@media (min-width: 1200px) {
  .event-check-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .event-attending { order: 0; position: sticky; top: 16px; }
}

/* ---- Attending (2026-10-28, pictures agreed) ---- */
.attending { display: flex; flex-direction: column; gap: 8px; max-width: 440px; }
.attending-title { font-weight: 700; font-size: 14px; }
.attending-closed { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
.attending-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--theme-edge-soft, var(--color-divider)); border-radius: 12px; }
.attending-list li { display: flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 13.5px; }
.attending-list li + li { border-top: 1px solid var(--theme-edge-soft, var(--color-divider)); }
.attending-list li > span { flex: 1; min-width: 0; }
.attending-x { border: 0; background: transparent; color: var(--color-text); opacity: .6; cursor: pointer; font-size: 14px; padding: 2px 6px; border-radius: 6px; }
.attending-x:hover, .attending-x:focus-visible { opacity: 1; background: var(--theme-chip); }
.attending-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.attending-actions select.input { width: auto; flex: 1 1 180px; min-width: 0; }
.duty-attending { grid-column: 1 / -1; margin-top: 10px; }
.tag-btn { cursor: pointer; font: inherit; font-size: 11px; }
.tag-btn:hover { border-color: var(--live-e1); }
/* "Your changes today" */
.undo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.undo-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; }
.undo-list li + li { border-top: 1px solid var(--theme-edge-soft, var(--color-divider)); }
.undo-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.undo-label { font-weight: 600; }
.undo-refused { max-width: 180px; text-align: right; }

/* ---- dialogs (controls sit outside .dialog-body so they are not faded) ---- */
.dialog-backdrop { z-index: 40; }
.dialog { max-height: calc(100vh - 32px); overflow: auto; }
.dialog-fields { display: flex; flex-direction: column; gap: var(--space-3); }
.radio-list { display: flex; flex-direction: column; gap: 10px; }
.date-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.note-list { max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.note-item { padding-left: 12px; border-left: 2px solid var(--color-accent-300); }
.note-date { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.note-text { font-size: 13px; }
textarea.input { border-radius: 20px; padding: 10px 16px; min-height: 70px; }

/* ---- New task: form left, sticky preview right ---- */
.newtask {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6); align-items: start; max-width: 1000px;
}
.newtask > * { min-width: 0; } /* a long option in a dropdown must not widen the column (2026-10-26 sweep) */
.newtask-form { display: flex; flex-direction: column; gap: var(--space-4); }
.newtask-form h2 { margin: 0; }
.newtask select.input { width: auto; min-width: min(190px, 100%); max-width: 100%; }
/* Supervisor / Delegated to / Job label (Option F, 2026-10-26): one width for all three, notes never under an open list */
#nt-assign, #nt-hat, #re-hat, select.input[id$="-hand"], .newtask select.input[id$="-hand"] { width: 100%; max-width: 440px; }
.label-opt { font-weight: 500; font-size: 12px; opacity: 0.6; margin-left: 4px; }
.says-line { max-width: 440px; margin-top: 8px; padding: 9px 12px 9px 32px; border-radius: 10px; position: relative;
  background: var(--theme-glow, rgba(77,213,203,.1)); font-size: 13.5px; line-height: 1.45; }
.says-line::before { content: "\2713"; position: absolute; left: 12px; top: 9px; color: var(--live-e1, var(--color-accent)); font-weight: 800; }
.says-line b { color: var(--live-e1, var(--color-accent)); }
.link-pill { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  color: var(--live-e1, var(--color-accent)); background: transparent; border: 1px dashed var(--theme-edge-soft, var(--color-divider)); border-radius: 999px; padding: 7px 14px; }
.link-pill:hover { background: var(--theme-chip); border-style: solid; }
.link-pill:focus-visible { outline: 2px solid var(--live-e1); outline-offset: 2px; }
.more-fold .helper { margin-top: 6px; }
.more-box { display: flex; flex-direction: column; gap: var(--space-4); padding: 14px 16px; border-radius: 14px; max-width: 480px;
  border: 1px solid var(--theme-edge-soft, var(--color-divider)); background: rgba(255,255,255,.03); }
.more-head { display: flex; justify-content: space-between; align-items: center; }
.more-title { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.preview-card { position: sticky; top: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-row .btn { font-size: 12px; white-space: nowrap; }
.helper { font-size: 12px; opacity: 0.65; margin: 5px 0 0; }
.inline-fields { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: flex-end; }
.inline-fields .input { width: auto; }
.num-input { max-width: 96px; }
.sub-remove { font-size: 12px; margin-left: auto; }

/* ---- Team (GM) / Ride-along (owner) ---- */
.team-sub { opacity: 0.75; max-width: 60ch; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.team-name { font-family: var(--font-heading); font-size: 22px; line-height: 1.1; }
.team-studio { font-size: 12px; opacity: 0.6; margin-left: 8px; }
.team-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stats { display: flex; gap: var(--space-6); margin: var(--space-1) 0; }
.stat-num { font-family: var(--font-heading); font-size: 24px; line-height: 1; }
.stat-num.alert { color: var(--color-accent-700); }
.stat-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; margin-top: 4px; }
.trail { font-size: 12px; opacity: 0.75; margin: 0; }
.team-card .btn { align-self: flex-start; }
.team-card .flag { margin: 0; } /* D15: the "3+ studio days" line */
/* riding along / a GM on someone's list: a bar fixed at the bottom; the page ends above it (John 2026-10-20) */
.has-ride-bar { padding-bottom: 96px; }
.ride-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; gap: 12px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; padding: 12px max(16px, calc((100vw - 1100px) / 2)); background: #140e22; color: #f4f2fb; border-top: 2px solid var(--live-e1, #e8a0ff);
  font-size: 13px; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4); }
body:has(.ride-bar) .toast { bottom: 96px; }
body:has(.ride-bar) .undo-note { bottom: 148px; }

/* ---- Pulse: one tile per studio, never merged ---- */
.pulse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-4); margin-top: var(--space-3); }
.pulse-tile { gap: var(--space-2); }
.pulse-name { font-size: 24px; margin: 0; }
.pulse-events { font-size: 13px; margin: 0; }
/* walk-throughs on the real page (John 2026-10-20) */
.walk-strip { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid #ffd27a; margin-bottom: var(--space-3); }
.walk-strip .helper { margin: 4px 0 0; }
.walk-spot { position: fixed; z-index: 70; border: 3px solid #ffd27a; border-radius: 12px; box-shadow: 0 0 0 4000px rgba(5, 3, 12, 0.62); pointer-events: none; transition: all 0.15s ease; }
.walk-dim { position: fixed; inset: 0; z-index: 70; background: rgba(5, 3, 12, 0.62); pointer-events: none; }
.walk-coach { position: fixed; z-index: 71; background: #fff8ec; color: #201818; border-radius: 12px; padding: 14px 16px; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.walk-coach h4 { margin: 0 0 6px; font-size: 15px; color: #201818; }
.walk-coach p { margin: 0; }
.walk-coach .btn-ghost { color: #6b4a3a; }
.walk-center { left: 50%; top: 40%; transform: translate(-50%, -50%); width: min(320px, calc(100vw - 24px)); }
.walk-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.walk-wait, .walk-miss { font-size: 12px; opacity: 0.75; }
/* a screenshot with a bug report (John 2026-10-20) */
.fb-shot-img { display: block; max-width: 100%; max-height: 220px; margin-top: 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.25); }
.fb-shot-foot { justify-content: space-between; }
/* Undo right after an action (John 2026-10-20) */
.undo-note { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 60; display: flex; gap: 14px; align-items: center;
  justify-content: space-between; background: #140e22; color: #f4f2fb; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px;
  padding: 10px 14px; font-size: 14px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.cal-what { margin: 2px 0 6px; }
/* a type's checklist (John 2026-10-20) */
.type-checklist { margin: var(--space-2) 0; gap: var(--space-2); }
.tc-list { list-style: none; margin: 0; padding: 0; }
.tc-row { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 15%, transparent); font-size: 14px; flex-wrap: wrap; }
.tc-when { font-size: 12px; opacity: 0.8; width: 190px; flex: none; }
.tc-title { flex: 1; min-width: 200px; }
/* the managers' meeting (proposal l) */
.mt-card { gap: var(--space-2); margin-top: var(--space-3); }
.mt-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mt-line { padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 15%, transparent); display: flex; flex-direction: column; gap: 6px; }
.mt-line-head { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.mt-line.is-struck .mt-text { text-decoration: line-through; opacity: 0.6; }
.mt-who { margin-left: auto; font-size: 12px; opacity: 0.65; white-space: nowrap; }
.mt-note { display: flex; flex-direction: column; gap: 4px; padding-left: 22px; }
.mt-note .mt-who { margin-left: 0; }
.mt-task { font-size: 13px; margin: 0 0 0 22px; display: flex; gap: 8px; align-items: baseline; }
.mt-actions { padding-left: 14px; gap: 4px; }
.mt-add { gap: 8px; }
.mt-add .input { flex: 1; min-width: 0; }
.mt-earlier { list-style: none; margin: 0; padding: 0; }
.mt-earlier li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 14px; flex-wrap: wrap; }
.flags { list-style: none; margin: var(--space-1) 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.flag { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.flag .tag { flex: none; }
.flag-none { font-size: 13px; opacity: 0.7; }
.topup-warning { flex-direction: row; align-items: center; gap: var(--space-3); margin: var(--space-3) 0; max-width: 760px; }
.pulse-tile .btn { align-self: flex-start; margin-top: var(--space-1); }

/* ---- Admin: managers and staff ---- */
.admin-h { font-size: 20px; margin: var(--space-6) 0 var(--space-2); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-3); }
.admin-card { gap: var(--space-2); }
.admin-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-name { font-family: var(--font-heading); font-size: 20px; line-height: 1.1; }
/* Backups (D19), owners only: one card, a short list of copies with a Download each */
.bk-grid { grid-template-columns: minmax(280px, 560px); }
.bk-latest { font-family: var(--font-heading); font-size: 18px; margin: 0; }
.bk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bk-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.bk-when { min-width: 170px; }
/* Site-admin console, Errors tab (D22): groups of the Worker's own log lines */
.er-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.er-main { flex: 1; min-width: 240px; }
.er-name { font-family: var(--font-heading); font-size: 17px; display: block; overflow-wrap: anywhere; }
.er-sub { font-size: 12px; opacity: 0.7; }
.er-count { font-family: var(--font-heading); font-size: 24px; min-width: 48px; text-align: right; }
.er-ev { font-size: 12px; padding: 8px 0 8px 12px; border-left: 2px solid var(--color-accent-300); margin-top: 8px; }
.er-ev code { font-size: 11px; opacity: 0.85; display: block; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; }
.bk-size { opacity: 0.6; min-width: 60px; }
/* Admin > GoHighLevel (2026-10-22) */
.ghl-ok { color: #3fbf7f; font-weight: 600; }
.ghl-bad { color: var(--color-accent-700); font-weight: 600; }
.ghl-pick { max-height: 50vh; overflow-y: auto; }
.email-input { flex: 1; min-width: 160px; }
.add-card { border: 1.5px dashed var(--color-accent-300); }
.helper.warn { color: var(--color-accent-700); opacity: 1; }
/* GM / Owner hat tag (ui.js hatClass); theme.css restyles it. Kept apart from tag-accent, which means overdue. */
.tag-lead { background: var(--color-neutral-200); color: var(--color-neutral-900); font-weight: 600; }
.archived { font-size: 12px; opacity: 0.65; margin-top: var(--space-3); }
/* ---- Staff training topics (dialog) ---- */
.training-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); max-height: 46vh; overflow: auto; }
.training-item { padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-divider); }
.training-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.training-topic { font-family: var(--font-heading); font-size: 17px; }
.training-note { font-size: 13px; margin: 2px 0 6px; }
.training-switch { width: auto; max-width: 100%; }
.training-add { border-top: 1px solid var(--color-divider); padding-top: var(--space-3); }

/* ---- Studio settings (Admin) ---- */
.studio-card .inline-fields .input { width: auto; }
.closure-list { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.closure-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---- Routines ---- */
.routines { max-width: 900px; }
.routine { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.routine-when { font-size: 13px; opacity: 0.85; margin: 0 0 6px; }
.routine-note { font-size: 12px; opacity: 0.7; margin: 6px 0 0; }
.routine-note.warn { color: var(--color-accent-700); opacity: 1; }
.routine-locked { grid-column: 1 / -1; margin: 0; }
.stopped { margin-top: var(--space-6); }
.stopped summary { cursor: pointer; font-size: 14px; opacity: 0.8; margin-bottom: var(--space-3); }
@media (max-width: 640px) { .routine { grid-template-columns: minmax(0, 1fr); } }

/* ---- Account ---- */
.account { display: flex; flex-direction: column; gap: var(--space-4); max-width: 620px; }
.account h2 { margin: 0; }
.account-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.account-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: var(--space-2) 0 0; font-size: 14px; }
.account-facts dt { opacity: 0.65; }
.account-facts dd { margin: 0; }

/* ---- Time off (manager screen + public staff page) ---- */
.staff-link { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; flex-wrap: wrap; margin: var(--space-3) 0; }
.to-row { display: flex; gap: var(--space-3); justify-content: space-between; align-items: center; flex-wrap: wrap; flex-direction: row; }
.to-main { display: flex; flex-direction: column; gap: 4px; }
.to-name { font-size: 15px; font-weight: 600; }
.to-when { font-size: 13px; }
.to-side { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.empty-inline { font-size: 13px; opacity: 0.6; margin: 0; }
.public-page .btn-row { margin-bottom: var(--space-4); }
.public-body { max-width: 520px; }

/* ---- Calendar: countdown strip, month grid, legend ---- */
.cal-new { margin-left: auto; }
.countdown { display: flex; gap: var(--space-3); overflow-x: auto; padding: var(--space-2) 0 var(--space-3); }
.count-item { width: 96px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.count-ring {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-heading); font-size: 22px; border: 2.5px solid var(--color-neutral-300);
  align-content: center; gap: 0; line-height: 1;
}
/* the number smaller, with "days" under it inside the circle (John, 2026-10-16) */
.count-num { font-size: 17px; line-height: 1; }
.count-today { font-size: 13px; }
.count-unit { font-family: var(--font-body, inherit); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; margin-top: 2px; }
.ring-accent { border-color: var(--color-accent-400); }
.ring-accent-2 { border-color: var(--color-accent-2-500); }
.ring-neutral { border-color: var(--color-neutral-300); }
.count-title { font-size: 11px; text-align: center; line-height: 1.3; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month-dow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; padding: 0 4px; }
.month-cell {
  min-height: 96px; border-radius: var(--radius-md); padding: 6px; background: var(--color-surface);
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.month-cell.other-month { opacity: 0.45; }
.month-cell.is-today { outline: 2px solid var(--color-accent-300); }
.cell-head { display: flex; align-items: center; gap: 4px; }
.cell-day { font-size: 12px; opacity: 0.6; }
.today-tag { font-size: 9px; padding: 1px 6px; }
.cal-event {
  display: block; font-size: 10px; padding: 2px 6px; text-decoration: none; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.cal-event.is-cancelled { opacity: 0.6; text-decoration: line-through; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-4); }
/* The month as a list: shown on a phone, where a grid pill has room for three letters and no type. */
.month-list { display: none; margin-top: var(--space-4); }
.month-list-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 0; min-height: 44px;
  text-decoration: none; color: inherit; border-top: 1px solid color-mix(in srgb, var(--color-text) 15%, transparent);
}
.month-list-date { font-size: 13px; flex: 0 0 100%; }
.month-list-title { font-size: 15px; font-weight: 600; flex: 1 1 auto; min-width: 0; }
.month-list-title.is-cancelled { text-decoration: line-through; }
@media (max-width: 640px) {
  .month-cell { min-height: 48px; padding: 4px; } .month-grid { gap: 3px; }
  /* in the grid a pill is only a mark of its colour here; the words are in the list underneath */
  .month-grid .cal-event { font-size: 0; line-height: 0; height: 8px; padding: 0; text-indent: -999px; text-overflow: clip; text-decoration: none; }
  .today-tag { display: none; }
  .month-list { display: block; }
}
@media print { .month-list { display: none; } }

/* ---- Event detail ---- */
.task-event { display: inline-block; text-decoration: none; }
.task-event:hover { text-decoration: underline; }
.comp-note { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; flex-wrap: wrap; margin: var(--space-3) 0; }
.history-line { font-size: 13px; opacity: 0.7; margin: 0 0 4px; }
.event-footer { margin-top: var(--space-6); }

/* ---- Printable per-student competition sheet (README section 6) ---- */
.print-controls { margin-bottom: var(--space-3); }
.print-sheet {
  background: white; color: var(--color-text); border-radius: var(--radius-md); padding: 40px;
  max-width: 760px; display: flex; flex-direction: column; gap: 14px;
}
.print-sheet h2 { margin: 0; }
.sheet-meta { margin: 0; opacity: 0.75; }
.sheet-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-2) 0; }
.sheet-field { display: flex; flex-direction: column; gap: 18px; font-size: 12px; }
.sheet-rule { display: block; border-bottom: 1.5px solid var(--color-text); min-height: 1px; }
.sheet-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 110px; gap: 12px; align-items: start; }
.sheet-circle { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--color-text); }
.sheet-title { font-size: 15px; font-weight: 600; }
.sheet-timing { font-size: 12px; opacity: 0.65; }
.sheet-blank { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; }
.sheet-caption { font-size: 10px; opacity: 0.6; }
.sheet-foot { font-size: 12px; opacity: 0.75; margin-top: var(--space-3); }
@media print {
  .app-content { padding: 0; max-width: none; }
  .print-sheet { padding: 0; border-radius: 0; box-shadow: none; }
}
.add-item { margin-top: var(--space-4); }
.add-item .grow { flex: 1; min-width: 200px; }

/* ---- duty pool + welcome steps + getting-started card (spec Amendments 2026-10-02) ---- */
.duties { max-width: 900px; }
.duty { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.duty-group { margin-bottom: var(--space-4); }
.duty-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.duty-give { display: inline-flex; gap: 6px; align-items: center; }
.duty-give .input { width: auto; min-width: 150px; }
.duty-day { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.duty-focus { padding: var(--space-4); }
.duty-focus .task-title { font-size: clamp(20px, 3vw, 26px); }
.duties-line { font-size: 13px; margin: 0; }

.welcome { max-width: 900px; display: flex; flex-direction: column; gap: var(--space-4); }
.welcome-steps { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; padding: 0; }
.welcome-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: 0.6; }
.welcome-steps li.is-here, .welcome-steps li.is-done { opacity: 1; }
.welcome-dot {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--color-divider);
  background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer;
}
.welcome-steps li.is-here .welcome-dot { border-color: var(--color-accent-2-600); background: var(--color-accent-2-600); color: var(--color-bg); }
.welcome-steps li.is-done .welcome-dot { border-color: var(--color-accent-2-600); }
.welcome-card { display: flex; flex-direction: column; gap: var(--space-3); }
.welcome-card h2 { margin: 0; }
.welcome-lead { font-size: 16px; max-width: 62ch; margin: 0; }
.welcome-points, .day-list, .welcome-key { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; max-width: 66ch; }
.welcome-key { font-size: 13px; opacity: 0.85; }
.welcome-progress { font-size: 13px; font-weight: 600; margin: 0; }
.welcome-tally { display: flex; flex-direction: column; gap: 6px; }
.tally summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.tally ul { margin: 6px 0 0; padding-left: 1.3em; font-size: 13px; }
.welcome-answer { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.welcome-nav { display: flex; flex-wrap: wrap; gap: 8px; }

.setup-card { margin-bottom: var(--space-4); max-width: 900px; gap: var(--space-2); }
.setup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.setup-item { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.setup-item.is-done { opacity: 0.6; }
@media (max-width: 640px) { .welcome-step-name { display: none; } }
.duties .pulse-name { margin: var(--space-4) 0 var(--space-2); }
@media (max-width: 767px) { .duty-give { flex: 1 1 100%; min-width: 0; max-width: 100%; } .duty-give .input { flex: 1; min-width: 0; } }
/* a dropdown is never wider than its space: a long option (a name with every hat) used to push the page sideways (2026-10-26 sweep) */
select.input, select { max-width: 100%; text-overflow: ellipsis; }
.field { min-width: 0; max-width: 100%; }
@media (max-width: 767px) { .inline-fields > .field, .inline-fields > select { flex: 1 1 100%; min-width: 0; } }

/* ---- lessons, locks and practice items (walkthrough piece 2) ---- */
.lessons { max-width: 900px; }
.lesson { display: flex; flex-direction: column; gap: 8px; }
.lesson.is-done { opacity: 0.8; }
.lesson-head { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.lesson-why { margin: 0; font-size: 14px; max-width: 66ch; }
.lesson-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lesson-steps li { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.lesson-steps li.is-done { opacity: 0.65; }
.lesson-practice { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--color-divider); }
.practice-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.practice-text { font-size: 13px; opacity: 0.8; }

/* ---- the Guide leads the way (2026-10-14): next step, what is left, "lesson done - next", padlocks ---- */
.lock-mark { display: inline-flex; align-items: center; margin-left: 6px; opacity: 0.75; vertical-align: -1px; }
.guide-home, .guide-focus { display: flex; flex-direction: column; gap: var(--space-3); }
.guide-left { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.guide-after, .lesson-done-note { display: flex; flex-direction: column; gap: 8px; }
.lesson-done-note { margin: var(--space-3) auto 0; max-width: 960px; width: calc(100% - 32px); }

/* ---- handing work to a person; who sees what (walkthrough piece 3) ---- */
.hand-name { margin-top: 6px; }
.access { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--color-divider); }
.training-mine { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* ---- demo sign-in shortcut (local server only) ---- */
.demo-signin { margin-top: var(--space-6); max-width: 620px; display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }

/* ---- Staff guide (public page + the Guide tab) ---- */
.guide-text { white-space: pre-line; max-width: 62ch; }
.guide-body { max-width: 640px; }
.guide-result { text-align: left; width: 100%; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; cursor: pointer; font: inherit; color: inherit; }
.guide-ask { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-neutral-300); }
/* Google Calendar changes waiting on the Calendar screen */
.gr { margin: var(--space-3) 0; gap: var(--space-2); max-width: 900px; }
.gr-head { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
.gr-head .card-body { margin: 2px 0 0; }
.gr-group { padding-top: var(--space-2); border-top: 1px solid var(--color-divider); }
.gr-all { margin: 6px 0; display: flex; flex-direction: column; gap: 6px; }
.gr-kind { max-width: 260px; }
.gr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.gr-line { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--color-divider); }
.gr-line:first-child { border-top: 0; }
.gr-what { font-size: 14px; overflow-wrap: anywhere; }
/* Google Calendar on a studio card: one row per calendar of the connected account */
.gcal-account { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.gcal-map { display: flex; flex-direction: column; gap: 10px; }
.gcal-row { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--color-divider); }
.gcal-name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.inline-fields .field.grow { flex: 1 1 220px; }
.inline-fields .field.grow .input { width: 100%; }
.guide-entry-text { margin: var(--space-2) 0; }
.guide-pending { margin-top: var(--space-2); padding: var(--space-2) var(--space-3); border-left: 3px solid var(--color-accent-2-500); }
.guide-who { font-size: 13px; opacity: 0.75; margin: 4px 0 0; }
.guide-feedback-link { margin-top: var(--space-5); }
/* sections and printables (migration 0024, 2026-11-04: the Wedding Program) */
.guide-shelves { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px; }
.guide-shelf { font: inherit; font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--color-neutral-300); background: transparent; color: inherit; }
.guide-shelf[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent, #fff); }
.guide-printables-head { margin: var(--space-3) 0 0; }
.guide-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px; color: inherit; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--color-neutral-300); background: color-mix(in srgb, currentColor 4%, transparent); }
.guide-row:hover, .guide-row:focus-visible { border-color: var(--color-accent); }
.guide-pdf { margin-right: 8px; font-size: 11px; vertical-align: 2px; }
.guide-reading .guide-text, .guide-reading .guide-list { max-width: 62ch; }
.guide-subhead { margin: var(--space-3) 0 4px; font-size: 16px; }
.guide-entry-text .guide-text, .guide-reading .guide-text { margin: 0 0 10px; }
.guide-list { margin: 4px 0 var(--space-2); padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.guide-turn { justify-content: space-between; margin-top: var(--space-3); gap: 8px; }
.guide-turn .btn { max-width: 48%; white-space: normal; text-align: left; }
.guide-section-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: var(--space-3) 0 6px; }
.guide-section-head h5 { margin: 0; font-size: 15px; }
/* Ask about a part of the guide (migration 0025, 2026-11-04) */
.ask-bubble { position: fixed; z-index: 60; font: inherit; font-size: 14px; font-weight: 700; padding: 9px 14px; border-radius: 10px; border: 0;
  background: #1a1a1a; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); cursor: pointer; white-space: nowrap; }
.ask-quote { margin: 4px 0; padding: 8px 12px; border-left: 4px solid var(--color-accent); background: color-mix(in srgb, currentColor 7%, transparent);
  font-size: 15px; border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
.ask-from { margin: 0; }
.guide-flash { outline: 3px solid var(--color-accent); outline-offset: 3px; transition: outline-color 0.4s; }
.ask-section { margin: var(--space-3) 0 0; }
.ask-sent { margin: var(--space-3) 0 0; padding: 10px 12px; border-radius: 10px; font-size: 15px; background: #e9f6ee; color: #185c33; border: 1px solid #9fd3b2; }
html.guide-plain-on .guide-plain .ask-quote { border-left-color: #1a56b0; background: #f3f6fb; color: #333; }
html.guide-plain-on .guide-plain .dialog-backdrop { background: rgba(0, 0, 0, 0.4); }
html.guide-plain-on .guide-plain .dialog { background: #fff; border: 1px solid #d0d0d0; color: var(--plain-ink); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); }
html.guide-plain-on .guide-plain :is(.dialog-title, .dialog-body) { color: var(--plain-ink); font-family: inherit; text-shadow: none; }
html.guide-plain-on .guide-plain .ask-section .btn { background: none; border: 0; color: #1a56b0; padding: 6px 0; }
.guide-plain-btn { margin-left: auto; margin-bottom: 8px; font: inherit; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--color-neutral-300); background: transparent; color: inherit; cursor: pointer; }

/* "Aa Plain" (2026-11-04): the staff guide as an easy-to-read page - white, dark text, a plain font, no cards or glow.
   Prefixed with html.guide-plain-on so it wins over theme.css, which loads after this file. */
html.guide-plain-on body { background: #fff; }
html.guide-plain-on body::before { display: none; }
html.guide-plain-on .public-page, html.guide-plain-on .guide-plain { --plain-ink: #1a1a1a; --plain-soft: #5f5f5f; --plain-line: #e3e3e3; --plain-link: #1a56b0;
  color: var(--plain-ink); font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
html.guide-plain-on .guide-plain { background: #fff; border-radius: 12px; padding: 12px 14px; }
html.guide-plain-on .public-page :is(h1, h2, h3, h4, .signin-title, .card-title, .task-title) { font-family: inherit; color: var(--plain-ink); text-shadow: none; letter-spacing: 0; }
html.guide-plain-on .guide-plain :is(h1, h2, h3, h4, .card-title, .task-title) { font-family: inherit; color: var(--plain-ink); text-shadow: none; letter-spacing: 0; }
html.guide-plain-on .public-page :is(.signin-sub, .form-note, .routine-note, .card-kicker, .helper, label),
html.guide-plain-on .guide-plain :is(.form-note, .routine-note, .card-kicker, .helper, label) { color: var(--plain-soft); }
html.guide-plain-on .public-page a, html.guide-plain-on .guide-plain a { color: var(--plain-link); }
html.guide-plain-on .guide-plain .card { background: none; border: 0; border-bottom: 1px solid var(--plain-line); border-radius: 0; box-shadow: none; padding: 14px 0; color: var(--plain-ink); }
html.guide-plain-on .guide-plain .card::before, html.guide-plain-on .guide-plain .card::after { display: none; }
html.guide-plain-on .guide-plain .card:hover { box-shadow: none; }
html.guide-plain-on .guide-plain .guide-reading { border-bottom: 0; }
html.guide-plain-on .guide-plain :is(.card-body, .guide-text, .guide-list) { color: var(--plain-ink); opacity: 1; font-size: 17px; line-height: 1.6; max-width: 62ch; }
html.guide-plain-on .guide-plain .guide-reading .card-title { font-size: 26px; line-height: 1.25; }
html.guide-plain-on .guide-plain .guide-subhead { font-family: inherit; font-size: 20px; color: var(--plain-ink); }
html.guide-plain-on .guide-plain .guide-row { background: none; border: 0; border-bottom: 1px solid var(--plain-line); border-radius: 0; padding: 14px 2px;
  font-weight: 400; font-size: 17px; color: var(--plain-ink); }
html.guide-plain-on .guide-plain .guide-row:hover { background: #f6f6f6; }
html.guide-plain-on .guide-plain :is(.btn, .btn-primary, .btn-secondary, .btn-ghost) { background: #f2f2f2; color: var(--plain-ink); border: 1px solid #c9c9c9;
  box-shadow: none; text-shadow: none; top: 0; }
html.guide-plain-on .guide-plain .guide-turn .btn { background: none; border: 0; color: var(--plain-link); padding: 6px 0; }
html.guide-plain-on .guide-plain .tag { background: none; border: 1px solid #c9c9c9; color: var(--plain-soft); box-shadow: none; }
html.guide-plain-on .guide-plain .guide-pdf { border-color: #b33; color: #b33; }
html.guide-plain-on .guide-plain .input { background: #fff; color: var(--plain-ink); border: 1px solid #b5b5b5; box-shadow: none; }
html.guide-plain-on .guide-plain .guide-shelf { border-color: #c9c9c9; color: var(--plain-ink); }
html.guide-plain-on .guide-plain .guide-shelf[aria-pressed="true"] { background: var(--plain-ink); border-color: var(--plain-ink); color: #fff; }
html.guide-plain-on .guide-plain .section-tabs :is(a, button) { color: var(--plain-soft); }
html.guide-plain-on .guide-plain .section-tabs { border-bottom-color: var(--plain-line); }
html.guide-plain-on .guide-plain .section-tabs [aria-current="page"] { color: var(--plain-ink); box-shadow: inset 0 -2px 0 var(--plain-ink); }
html.guide-plain-on .guide-plain .guide-nav-link { color: var(--plain-link); }
html.guide-plain-on .guide-plain .guide-plain-btn { background: var(--plain-ink); border-color: var(--plain-ink); color: #fff; }
html.guide-plain-on .guide-plain .guide-ask { border-top-color: var(--plain-line); }
html.guide-plain-on .site-foot, html.guide-plain-on .site-foot a { color: var(--plain-soft, #5f5f5f); }

/* ---- phones (2026-10-10 audit) ---- */
@media (max-width: 640px) {
  /* an iPhone zooms the whole page, and leaves it zoomed, when a field's text is smaller than 16px */
  .input, select.input, textarea.input, input, select, textarea { font-size: 16px; }
  /* one row of tabs to swipe, not four wrapped rows that push the content off the screen */
  .app-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .app-tabs::-webkit-scrollbar { display: none; }
  .app-tabs .btn { flex: 0 0 auto; }
}
.code-help { font-size: 13px; opacity: 0.85; max-width: 52ch; margin: 8px 0 0; }
.lesson-gate-steps { margin: 8px 0 0; padding-left: 20px; }

/* ---- audit mediums, 2026-10-12 ---- */
/* The tick keeps its size on screen but answers to a thumb-sized area around it. */
.check { position: relative; }
.check::after { content: ''; position: absolute; inset: -11px; }
.check.sm::after { inset: -9px; }
.sub { min-height: 30px; }
/* A dialog never grows past the part of a phone screen that is really visible (the address bar and keyboard take
   their share), and a tall one starts at the top so its title can always be reached. */
.dialog-backdrop { overflow-y: auto; overscroll-behavior: contain; }
.dialog { max-height: calc(100dvh - 32px); overscroll-behavior: contain; }

/* approving a manager's own time off: one block per line of work */
.leave-line { padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent); }
.leave-line select + select { margin-top: 6px; }

/* ---- privacy policy and terms (2026-10-14): plain pages, readable with no JavaScript; links on every page's foot ---- */
.legal { max-width: 78ch; margin: var(--space-4, 24px) auto; padding: var(--space-4, 24px); line-height: 1.55; }
.legal h1 { margin-top: 0.2em; }
.legal h2 { margin-top: 1.4em; }
.legal h3 { margin-top: 1em; font-size: 1.05em; }
.legal ul, .legal ol { padding-left: 1.4em; }
.legal li { margin: 0.35em 0; }
.legal-nav { font-size: 14px; margin: 0; }
.site-foot { text-align: center; font-size: 13px; opacity: 0.75; padding: 24px 16px; }

/* Event types the organization adds, and who attends (2026-10-15) */
.attendee-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.attendee-pick legend { padding: 0; margin-bottom: 5px; font-size: 12px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.attendee-row { gap: 12px; align-items: center; flex-wrap: wrap; }
.new-type { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.type-list { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 10px; }
.type-row.is-retired strong { opacity: 0.6; }
.type-actions { flex-wrap: wrap; }

/* Google Calendar, step C: the Push question, the "not on Google" mark and the calendar dot (2026-10-15) */
.gp-ask { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.gp-mark { gap: 10px; align-items: center; margin: 8px 0; }
.tag-warn { background: transparent; color: #f0c27a; border: 1px solid #f0c27a; }
.gdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f0c27a; margin-left: 5px; vertical-align: middle; }

/* One day opened beside the month (roadmap m2, 2026-10-15); below it on a narrow screen */
.cal-split.has-day { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 860px) { .cal-split.has-day { grid-template-columns: 1fr; } }
.month-cell { cursor: pointer; }
.month-cell.is-picked { outline: 2px solid var(--color-accent, #f0a6c4); outline-offset: -2px; }
.day-panel { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 12px; }
.day-head { justify-content: space-between; align-items: center; }
.day-head h3 { margin: 0; }
.day-h { margin: 10px 0 2px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.day-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--color-surface) 80%, black); text-decoration: none; color: inherit; }
.day-add { display: flex; flex-direction: column; gap: 8px; }
.day-foot { border-top: 1px solid color-mix(in srgb, var(--color-text) 15%, transparent); padding-top: 10px; margin-top: 6px; }

/* ---- sharing (item 4): the Share box and the "Shared with you" section ---- */
.share-list { margin-top: var(--space-3); display: flex; flex-direction: column; gap: 8px; }
.share-row { gap: 10px; align-items: center; }
.share-row .grow { flex: 1; min-width: 8ch; }
.share-level { width: auto; min-width: 9ch; }
.shared-with { margin: 2px 0 8px; }
.shared-section { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px dashed var(--color-divider, #d9ccb5); }
.shared-section .helper { margin: -4px 0 10px; }
.share-levels { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.share-levels legend { padding: 0; margin-bottom: 6px; }
.share-levels .radio { align-items: flex-start; }
.share-levels .radio .dot { margin-top: 2px; }
.share-opt { display: flex; flex-direction: column; gap: 2px; }
.share-opt .helper { margin: 0; }

/* Teachers sign in (item 5): the headings inside "Who is on it?", and a teacher's day panel */
.pick-group { margin: 6px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; opacity: .65; }
.teacher-day .day-row { flex-wrap: wrap; justify-content: flex-start; align-items: center; }
.amp-choice { margin-top: 4px; }

/* ---- one-on-ones (design reference sections 9 and 10) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.oo-studio { max-width: 280px; margin: var(--space-2) 0; }
.oo-legend { margin: var(--space-2) 0 var(--space-2); }
.oo-nav { margin: 0 0 var(--space-2); gap: 8px; }
.oo-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--color-divider); border-radius: var(--radius-md, 14px); background: var(--color-surface); }
.oo-grid { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 13px; }
.oo-grid th, .oo-grid td { padding: 10px 8px; border-bottom: 1px solid var(--color-divider); text-align: left; vertical-align: middle; }
.oo-grid thead th { font-size: 11px; font-weight: 600; opacity: 0.75; white-space: nowrap; }
.oo-grid tbody tr:last-child th, .oo-grid tbody tr:last-child td { border-bottom: 0; }
.oo-grid tbody th { font-weight: 400; min-width: 180px; }
.oo-grid .oo-now { background: color-mix(in srgb, var(--color-accent) 8%, transparent); }
.oo-name { font-weight: 600; font-size: 14px; color: inherit; }
.oo-goal { font-size: 12px; opacity: 0.6; margin-top: 2px; }
.oo-nogoal { font-style: italic; }
.oo-freq { font-size: 11px; opacity: 0.5; }
.oo-cell { background: none; border: 0; padding: 4px; min-width: 52px; min-height: 30px; cursor: pointer; border-radius: 8px; font: inherit; color: inherit; }
.oo-cell:hover, .oo-cell:focus-visible { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.oo-dash { opacity: 0.4; }
.oo-due { font-size: 11px; font-weight: 700; color: var(--color-accent); text-transform: lowercase; }
.oo-tag { white-space: nowrap; }
.oo-types .radio { align-items: flex-start; }
.oo-types .radio .dot { margin-top: 2px; }
.oo-types .oo-off { opacity: 0.45; cursor: not-allowed; }
.oo-sub { margin: -4px 0 10px; }
.oo-trainings { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-3); }
.oo-training { display: flex; flex-direction: column; gap: 10px; }
.oo-training-head { justify-content: space-between; }
.oo-tags { margin: 0 0 var(--space-3); gap: 6px; }
.oo-staff .field { max-width: 520px; }
.oo-goal-save { margin-top: 6px; gap: 6px; }
.oo-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-width: 760px; }
.oo-week { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; border: 1px solid var(--color-divider); border-radius: 12px; background: var(--color-surface); font: inherit; color: inherit; cursor: pointer; text-align: left; }
.oo-week.oo-now { border-color: var(--color-accent); }
.oo-week-label { font-size: 12px; opacity: 0.75; }
.oo-note { max-width: 620px; display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--space-3); }
.oo-note textarea { border-radius: 20px; padding: 10px 16px; }
.oo-note-save { justify-content: flex-end; }
.oo-log { max-height: none; max-width: 620px; }
.oo-who { margin-top: var(--space-4); }

/* ---- New students, following Cassie's tracker (2026-10-17) ---- */
.ns-avg { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-2); margin: var(--space-2) 0 var(--space-3); max-width: 900px; }
.ns-stat { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
.ns-stat .stat-num { font-size: 28px; }
.bz-actions { justify-content: flex-end; margin: var(--space-2) 0; }
.ns-table { min-width: 560px; }
.ns-past { min-width: 640px; font-size: 12px; }
.bz-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; font-size: 14px; color: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.ns-name-plain { font-weight: 600; font-size: 14px; }
.bz-warn { font-size: 11px; font-weight: 700; color: var(--color-accent); }
.bz-foot { margin-top: var(--space-2); }
/* her colour key: red overdue, orange within 3 business days, yellow in progress, gray closed */
.tag.ns-overdue { background: #f6d2c8; color: #8a2b18; }
.tag.ns-soon { background: #f8dfc0; color: #8a4f10; }
.tag.ns-in-progress { background: #f4ecc4; color: #6b5a12; }
.tag.ns-gray { background: var(--color-neutral-100, #e9e2d5); color: var(--color-neutral-800, #4a443b); }
.ns-tags { gap: 6px; }
.ns-timeline { position: relative; margin: 4px 0 4px 8px; padding-left: 20px; border-left: 2px solid var(--color-divider); display: flex; flex-direction: column; gap: 12px; }
.ns-step { position: relative; font-size: 14px; }
.ns-step::before { content: ''; position: absolute; left: -27px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-surface); border: 2px solid var(--color-divider); }
.ns-step.done::before { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.ns-step.now::before { background: var(--color-accent); border-color: var(--color-accent); }
.ns-step.off::before { background: var(--color-divider); }
.ns-step.todo { opacity: 0.6; }
.ns-k { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.ns-next { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--color-divider); border-radius: 14px; }
.ns-pick { gap: 8px; }
.ns-date { max-width: 260px; }
.ns-off { align-self: flex-start; }
/* linking New students to a staff record, and the buddy teacher (2026-10-17) */
.ns-linkbox { border: 1.5px solid var(--color-accent); border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.ns-linkbox .helper { margin: 0; }
.ns-teachers { display: flex; flex-direction: column; gap: 6px; }
.ns-hist { margin-top: 4px; }

/* ---- Match to GHL (2026-10-28, pictures agreed): the student beside the likeliest GHL contact, checks, three buttons ---- */
.ghl-match { display: grid; gap: var(--space-3); max-width: 860px; }
.gm-card { padding: var(--space-3) var(--space-4); }
.gm-head { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.gm-name { font-weight: 700; font-size: 16px; }
.gm-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin: var(--space-3) 0 var(--space-2); }
.gm-side { border: 1px solid var(--color-divider); border-radius: 10px; padding: var(--space-2) var(--space-3); font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.gm-side h4 { margin: 0 0 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent); }
.gm-ghl { background: var(--theme-chip); }
.gm-line { padding: 1px 0; }
.gm-line > span { opacity: .65; }
.gm-none { display: flex; align-items: center; border-style: dashed; opacity: .75; }
.gm-fit { margin: 0 0 var(--space-2); font-size: 13px; font-weight: 600; }
.gm-fit.is-ok { color: #3fbf7f; }
.gm-fit.is-off { color: #e8953a; }
.gm-actions { gap: var(--space-2); flex-wrap: wrap; }
.gm-pick { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-2); max-height: 60vh; overflow: auto; }
.gm-pick li { display: grid; gap: 6px; padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-divider); }
.gm-pick li .btn { justify-self: start; }
.gm-skipped { margin-top: var(--space-2); }
@media (max-width: 340px) { .gm-two { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .gm-side { font-size: 12px; padding: 6px 8px; } .gm-side h4 { font-size: 10px; } .gm-card { padding: var(--space-3); } }

/* ---- Workshops (2026-11-05, docs/workshops-plan.md) ---- */
.ws { display: grid; gap: 14px; max-width: 760px; }
.ws-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ws-card { display: grid; gap: 4px; text-decoration: none; color: inherit; justify-items: start; }
.ws-meta, .ws-small { font-size: 13px; }
.ws-topic { margin: 2px 0 4px; }
.ws-lead, .ws-room { display: grid; gap: 10px; }
.ws-h { font-size: 16px; margin: 14px 0 6px; }
.ws-list { list-style: none; margin: 0; padding: 0; }
.ws-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--color-divider); }
.ws-item:last-child { border-bottom: 0; }
.ws-names { display: block; font-size: 13px; opacity: .75; }
.ws-item > .ws-names { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ws-count { font-weight: 700; color: var(--color-accent); white-space: nowrap; }
.ws-timer { font-size: 48px; font-weight: 700; text-align: center; color: var(--color-accent); line-height: 1.1; margin-top: 4px; }
.ws-center { text-align: center; }
.ws-phase { font-weight: 600; }
.ws-big { font-size: 20px; font-weight: 700; }
.ws-votes { font-weight: 700; color: var(--color-accent); }
.ws-go { flex-wrap: wrap; gap: 10px; }
.ws-wide { flex: 1; }
.ws-join { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 12px; border: 1px solid var(--color-divider); border-radius: 14px; }
.ws-qr { flex: none; border-radius: 8px; background: #fff; }
.ws-people { list-style: none; margin: 6px 0; padding: 0; max-height: 220px; overflow: auto; display: grid; gap: 4px; }
.ws-people .checkbox, .ws-tick { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.ws-email-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 8px; }
.ws-picker .chips { margin-bottom: 6px; }
.ws-date { margin-top: 8px; max-width: 200px; }
.ws-joined { display: grid; gap: 6px; }
.ws-top { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-weight: 600; }
.ws-writeup { white-space: pre-wrap; }
.ws-voteable { padding: 4px 0; }
.ws-vote-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; font: inherit; color: inherit;
  background: transparent; border: 1px solid var(--color-divider); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.ws-vote-btn[aria-pressed="true"] { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 14%, transparent); }
.ws-vote-btn:disabled { cursor: default; opacity: .55; }
.ws-vote-btn[aria-pressed="true"]:disabled { opacity: 1; }
.ws-vote-text { display: block; }
.ws-dash { display: grid; gap: 6px; margin-bottom: 14px; border: 1px solid var(--color-accent); }
.ws-dash-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); }
.ws-public { max-width: 560px; }
.ws-public .ws-room { text-align: left; }
.btn-sm { padding: 4px 10px; font-size: 13px; min-height: 0; }
@media (max-width: 560px) {
  .ws-email-row { grid-template-columns: 1fr; }
  .ws-timer { font-size: 56px; }
  .ws-item { align-items: flex-start; }
}
.ws-timer-pick { align-items: center; }
.ws-timer-pick label { font-weight: 600; }
.ws-minutes { width: 84px; }
.ws-inside { list-style: none; margin: 6px 0 2px; padding: 0 0 0 12px; border-left: 2px solid var(--color-divider); display: grid; gap: 4px; font-size: 14px; font-weight: 400; }
.ws-names.ws-inline { display: inline; }
/* Workshops 2026-11-05: ranked picks with stars, notes, photos and files, results, Claude's suggestions */
.ws-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ws-pick { display: grid; gap: 2px; text-align: center; padding: 8px 6px; border-radius: 12px; border: 1px dashed var(--color-divider); font-size: 13px; opacity: .8; }
.ws-pick.is-set { border: 1px solid var(--theme-coral); background: var(--theme-coral-chip); opacity: 1; font-weight: 600; }
.ws-pick-text { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ws-stars { letter-spacing: 1px; color: var(--theme-coral); }
.ws-rate { align-items: flex-start; }
.ws-rate.is-rated { background: color-mix(in srgb, var(--theme-coral) 8%, transparent); border-radius: 10px; padding-left: 6px; padding-right: 6px; }
.ws-rate-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ws-star-btns { display: flex; gap: 4px; flex: none; }
.ws-star-btn { font: inherit; font-size: 13px; letter-spacing: 1px; padding: 6px 7px; min-height: 36px; border-radius: 9px; cursor: pointer; color: inherit;
  background: transparent; border: 1px solid var(--color-divider); }
.ws-star-btn.is-on { background: var(--theme-coral); border-color: var(--theme-coral); color: #1a1530; font-weight: 700; }
.ws-star-btn.is-used { opacity: .4; }
.ws-star-btn:disabled { cursor: default; }
.ws-rank { flex: none; width: 26px; font-size: 18px; font-weight: 800; color: var(--color-accent); }
.ws-rank-item { align-items: flex-start; }
.ws-rank-item.is-top { background: color-mix(in srgb, var(--theme-coral) 10%, transparent); border-radius: 10px; padding-left: 6px; padding-right: 6px; }
.ws-total { font-weight: 700; white-space: nowrap; color: var(--theme-coral); }
.ws-top-tag { font-size: 11px; padding: 1px 6px; vertical-align: middle; }
.ws-results ol { padding: 0; }
.ws-extras { display: grid; gap: 4px; justify-items: start; }
.ws-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; width: 100%; }
.ws-note { font-size: 13.5px; padding: 5px 9px; border-left: 3px solid var(--color-accent); background: color-mix(in srgb, var(--color-accent) 8%, transparent); border-radius: 0 8px 8px 0; }
.ws-note-edit { display: grid; gap: 6px; width: 100%; }
.ws-add-note { padding-left: 0; }
.ws-x { font: inherit; font-size: 12px; background: transparent; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 2px 6px; min-width: 28px; min-height: 28px; }
.ws-x:hover { opacity: 1; }
.ws-files { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ws-file { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; border: 1px dashed var(--color-divider); border-radius: 10px; font-size: 13px; max-width: 100%; }
.ws-file-open { font: inherit; background: transparent; border: 0; color: inherit; cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; text-align: left; }
.ws-files-box { display: grid; gap: 6px; margin-top: 6px; }
.ws-viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .75); display: grid; place-items: center; padding: 16px; }
.ws-viewer-box { display: grid; gap: 8px; max-width: min(960px, 100%); max-height: 100%; background: #1f1a33; color: #f4f2fb; padding: 10px; border-radius: 12px; }
.ws-viewer-box img { max-width: 100%; max-height: 75vh; object-fit: contain; border-radius: 8px; background: #fff; }
.ws-under { flex-basis: 100%; padding-left: 28px; }
.ws-ai { display: grid; gap: 8px; }
.ws-ai-list { display: grid; gap: 12px; }
/* 2026-11-06 (John: "very hard to read"): one faint box per suggestion, the ideas as plain lines with names first, 14px */
.ws-ai-item { display: grid; gap: 8px; padding: 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .11); background: rgba(255, 255, 255, .03); }
.ws-ai-item .ws-total { color: var(--color-accent); }
.ws-ai-src { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.45; }
.ws-ai-src li { display: flex; align-items: flex-start; gap: 4px; padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, .07); overflow-wrap: anywhere; }
.ws-ai-src li .ws-grip { width: 28px; min-height: 30px; font-size: 16px; }
.ws-ai-src li.is-lifted { opacity: .35; }
.ws-ai-words { flex: 1; min-width: 0; padding-top: 5px; }
.ws-ai-out { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--color-neutral-600); font-size: 18px; line-height: 1; cursor: pointer; }
.ws-ai-out:hover, .ws-ai-out:focus-visible { color: #ffb4b4; background: rgba(255, 255, 255, .06); }
.ws-ai-item.is-over, .is-drop-hover { outline: 2px dashed #7ee0a8; outline-offset: 2px; background: rgba(126, 224, 168, .12); border-radius: 10px; }
.ws-ai-list.is-dragging, .ws-ai-list.is-dragging * { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.ws-ai-src b { color: var(--color-accent); font-weight: 600; }
.ws-ai-line { margin: 0; font-size: 13px; color: #b9a8f0; }
.btn-ai { background: #5b4a99; color: #fff; border-color: #5b4a99; }
.btn-ai:hover:not(:disabled) { background: #6a58b0; }
.ws-qs { margin: 0; padding-left: 20px; }
.ws-draft-btn { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .ws-rate { flex-wrap: wrap; }
  .ws-star-btns { width: 100%; justify-content: flex-end; }
  .ws-star-btn { flex: 1; }
  .ws-under { padding-left: 0; }
}
.ws-item:has(> .ws-under) { flex-wrap: wrap; }
.connect-address code { display: block; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--color-accent) 12%, transparent); overflow-wrap: anywhere; user-select: all; }
/* Workshops 2026-11-05 cleanup (John: "looks like a mess"): wide results, one line per idea, two columns at wrap-up */
.ws.ws-wide { max-width: 1400px; }
.ws-two { display: grid; gap: 16px; }
@media (min-width: 1100px) { .ws-two { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .ws-two-side { position: sticky; top: 12px; } }
.ws-two-main, .ws-two-side { display: grid; gap: 12px; min-width: 0; }
.ws-side-card { display: grid; gap: 8px; }
.ws-claude-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.ws-tab { font: inherit; font-size: 14px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--color-divider); background: transparent; color: inherit; cursor: pointer; min-height: 36px; }
.ws-tab.is-on { background: var(--color-accent); border-color: var(--color-accent); color: #0b1220; font-weight: 700; }
.ws-rows { list-style: none; margin: 0; padding: 0; }
.ws-row { border-bottom: 1px solid var(--color-divider); }
.ws-row.is-top { background: color-mix(in srgb, var(--color-accent) 7%, transparent); border-radius: 10px; }
.ws-row-main { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 10px; align-items: start; text-align: left;
  font: inherit; color: inherit; background: transparent; border: 0; padding: 9px 8px; cursor: pointer; }
.ws-row-main:hover { background: color-mix(in srgb, var(--color-accent) 7%, transparent); border-radius: 10px; }
.ws-row-text { min-width: 0; }
.ws-row-icons { font-size: 13px; opacity: .75; white-space: nowrap; }
.ws-row-open { display: grid; gap: 6px; padding: 0 8px 10px 46px; }
.ws-fold { padding-left: 0; }
@media (max-width: 560px) { .ws-row-main { grid-template-columns: 22px minmax(0, 1fr) auto; } .ws-row-icons { display: none; } .ws-row-open { padding-left: 8px; } }
/* Drag and drop in the results (John 2026-11-06, pictures 1-4) */
.ws-row-line { display: flex; align-items: stretch; }
.ws-row-line .ws-row-main { flex: 1; min-width: 0; }
.ws-grip { flex: none; display: grid; place-items: center; width: 30px; min-height: 40px; font-size: 18px; color: var(--color-neutral-600);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 8px; }
.ws-grip:hover { color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.ws-rows.is-dragging, .ws-rows.is-dragging * { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.ws-row.is-over, .ws-alone.is-over { outline: 2px dashed #7ee0a8; outline-offset: 2px; background: rgba(126, 224, 168, .12); border-radius: 10px; }
.ws-row.is-lifted, .ws-kid.is-lifted { opacity: .35; }
.ws-drop-tip { display: inline-block; margin-top: 4px; background: #7ee0a8; color: #10261a; font-weight: 700; font-size: 12.5px; border-radius: 8px; padding: 2px 9px; }
/* floats over the page so nothing under the finger moves when a drag starts */
.ws-alone { position: fixed; z-index: 1050; top: 14px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 32px));
  border: 2px dashed var(--color-neutral-500); border-radius: 12px; padding: 16px; text-align: center; font-weight: 600;
  background: #121826; box-shadow: 0 10px 28px rgba(0, 0, 0, .55); }
.ws-alone.is-over { color: #7ee0a8; background: #12261f; }
.ws-ghost { position: fixed; z-index: 1100; pointer-events: none; max-width: min(420px, 80vw); padding: 9px 12px; border-radius: 10px;
  background: #1c2433; color: #f4f2fb; border: 2px solid var(--color-accent); box-shadow: 0 12px 28px rgba(0, 0, 0, .55);
  font-size: 14px; transform: rotate(-1.5deg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-kids { list-style: none; margin: 0; padding: 0 0 0 6px; border-left: 2px solid var(--theme-edge-line, rgba(255,255,255,.2)); display: grid; gap: 2px; }
.ws-kid { display: flex; align-items: center; gap: 4px; padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ws-kid-text { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.ws-kid-text .ws-names { display: block; }
.ws-move { display: grid; gap: 8px; }
.ws-move-list { display: grid; gap: 6px; max-height: 45vh; overflow-y: auto; }
.ws-move-opt { font: inherit; color: inherit; text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px; padding: 10px 12px; cursor: pointer; min-height: 44px; }
.ws-move-opt:hover { border-color: var(--color-accent); }
.ws-move-opt .ws-names { display: block; }
/* Staff guide: an owner's "Publish now" / "Ask a GM to look first" (2026-11-06) */
.publish-choice { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.publish-choice legend { font-size: 13px; margin-bottom: 4px; color: var(--color-neutral-800); }
.publish-choice .radio { align-items: flex-start; padding: 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; }
.publish-choice .radio:has(input:checked) { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 8%, transparent); }
.publish-choice .helper { display: block; margin-top: 2px; }
/* drag and drop in the joining step (2026-11-06) */
.ws-join-item { flex-wrap: wrap; align-items: flex-start; }
.ws-join-item > .ws-tick { flex: 1; min-width: 0; }
.ws-join-item > .ws-under { padding-left: 34px; }
.ws-item.is-over { outline: 2px dashed #7ee0a8; outline-offset: 2px; background: rgba(126, 224, 168, .12); border-radius: 10px; }
.ws-item.is-lifted { opacity: .35; }
.ws-list.is-dragging, .ws-list.is-dragging * { cursor: grabbing; user-select: none; -webkit-user-select: none; }
@media (max-width: 560px) { .ws-join-item > .ws-under { padding-left: 0; } }
.ws-join-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; }
.ws-join-tools > div:first-child:has(> .ws-fold[aria-expanded="true"]) { flex-basis: 100%; }
.publish-choice .radio { display: flex; } .publish-choice .radio .dot { margin-top: 2px; flex: none; }


/* Connector: guide versions, replacements, waiting PDFs and one-on-one conversations (migration 0031, 2026-11-06) */
.tag-claude { background: #2b2550; color: #cbb8ff; border-color: #2b2550; }
.guide-replaces { margin: 6px 0; padding: 9px 11px; border-radius: 10px; border: 1px dashed #7ee0a8; background: rgba(126, 224, 168, .08); font-size: 14px; }
.guide-versions { margin-top: 10px; border: 1px solid var(--theme-line-faint, rgba(255, 255, 255, .1)); border-radius: 10px; padding: 8px 11px; }
.guide-versions > summary { cursor: pointer; font-weight: 600; }
.guide-version { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.guide-version:first-of-type { border-top: 0; }
.guide-version-words { min-width: 0; overflow-wrap: anywhere; }
.guide-version-start { opacity: .8; }
.guide-order { max-width: 110px; }
.oo-convs { display: grid; gap: 12px; margin-top: 12px; }
.oo-conv-head { justify-content: flex-end; }
.oo-conv-tags { gap: 6px; margin-bottom: 6px; }
.oo-conv-body { white-space: pre-wrap; overflow-wrap: anywhere; }
