/* David's phone page (2026-11-09). His taste: real filled buttons (rectangular, slightly rounded), cards that read as cards —
   light grey on white, never white-on-white with a thin border. The top bar is dark like the status bar above it. */
:root {
  color-scheme: light;
  --page: #FFFFFF;
  --card: #EBEBF0;
  --inner: #D8D8DC;
  --button: #D2D2D8;
  --button-press: #BDBDC4;
  --text: #0E2C36;
  --text-2: #3D6470;
  --bar: #141414;
  --bar-text: #FFFFFF;
  --bar-text-2: #B9BFC8;
  --public: #1D7A4F;
  --public-text: #FFFFFF;
  --private: #AE3020;
  --private-text: #FFFFFF;
  --commit: #38803A;
  --accent: #18859C;
  --caution: #8A5F00;
  --flag: #FFF4D6;
  --flag-edge: #E6C25A;
  --field: #FFFFFF;
  --field-edge: #8FA9B2;
  --radius: 8px;
  --radius-small: 6px;
  /* spacing (2026-11-12, 19:30, rule 1b): the space between any two neighbouring items is one of these; the approved-design guard
     measures it on every screen (item 19) */
  --space-seg: 2px;      /* between a segmented bar's choices */
  --space-tight: 4px;    /* inside one idea */
  --space-snug: 8px;     /* between sibling controls, rows of one list */
  --gap: 12px;           /* between cards, and between the filters and the view buttons */
  --space-edge: 16px;    /* the page's side gutter; between sections */
  --side: max(var(--space-edge), env(safe-area-inset-left), env(safe-area-inset-right));
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  /* ── Section colours (David approved Design D, 2026-11-12 20:11; rule 1c) ────────────────────────────────────────────────────
     Sections have a colour: Share lavender, Visitors blue, Settings sage, Edit sand. A very light tint card, a slightly darker
     button of the same tint, icons in its ink. The same values in src/theme/tokens.css, studio/app/ui/tokens.css and the phone
     page's studio/phone-page/site/app.css (the approved-design guard checks they match). Choices stay navy. */
  --section-share-card: #E6E0F6;
  --section-share-button: #D9D1F1;      /* the mockup's buttons were the card's tint; one step darker so Share keeps the rule */
  --section-share-ink: #765AC4;         /* rgb(118, 90, 196) */
  --section-visitors-card: #E3EDF8;
  --section-visitors-button: #D3E2F3;
  --section-visitors-ink: #2F6DB0;
  --section-settings-card: #E4F0E6;
  --section-settings-button: #D2E6D6;   /* the On | Off bar on a Settings card */
  --section-settings-ink: #3E8E50;
  --section-edit-card: #F8F3EA;         /* not in the mockup (Edit's buttons sat on the page): the same step lighter */
  --section-edit-button: #F1E8D8;
  --section-edit-ink: #A0712A;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 16px/1.4 var(--font); overflow-x: hidden; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

/* 2026-11-09, 22:10: a slim bar — Hop bigger on the left (his light is Studio's), RenderRoam and Studio's line on ONE line */
.top { background: var(--bar); color: var(--bar-text); padding: calc(env(safe-area-inset-top) + 2px) var(--side) 2px; position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; }
/* 2026-11-09, 23:10 (David: "Hop bigger"): his ball about the height of the two lines beside him — the same drawing, larger;
   the room above him in the drawing (for his hop) tucks under the bar's edge so the bar stays one slim row */
.top-hop { width: 53px; height: 64px; flex: none; margin: -14px 0 -2px; }
.top-words { display: grid; min-width: 0; }
.top-hop svg { width: 100%; height: 100%; display: block; }
.top h1 { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: 0.01em; }
.top-studio { margin: 0; font-size: 13px; color: var(--bar-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top-studio.is-off { color: #FFD27A; }
/* 2026-11-12, 16:30 (Studio's opening screen, the same style): a white header, the wordmark large, Studio's state as a pill under it */
.top { background: var(--page); color: var(--text); border-bottom: 1px solid var(--inner); padding-bottom: 8px; }
.top-words { gap: var(--space-snug); padding-top: 6px; }
.top-wm { margin: 0; line-height: 0; }
.top-wm img { height: 34px; width: auto; display: block; }
.top-studio { justify-self: start; display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 11px; border-radius: 999px; background: #EEF8F1; color: #1F7A45; font-weight: 600; }
.top-studio i { flex: none; width: 8px; height: 8px; border-radius: 8px; background: #2F9E6A; }
.top-studio > span { overflow: hidden; text-overflow: ellipsis; }
.top-studio.is-off, .top-studio.is-wait { background: #FBF1DA; color: #7A5A0E; }
.top-studio.is-off i, .top-studio.is-wait i { background: #C8941A; }
/* 2026-11-13 (David's phone, 12:32): "Past jobs ›" and Studio's work line are a filled button, never underlined text */
.top .top-work { justify-self: start; max-width: 100%; min-height: 40px; padding: var(--space-tight) var(--gap); border-radius: var(--radius-small); background: var(--button); color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; }
.top .top-work:active { background: var(--button-press); }
.top .top-work[data-state="needs"] { background: #FBF1DA; color: #7A5A0E; }
/* Studio's code not on GitHub for over a day (2026-11-16, Job 2): one plain line and a filled Details button, no pop-up */
.top .top-backup { display: grid; gap: var(--space-tight); justify-items: start; }
.top .top-backup[hidden] { display: none; }
.top .top-backup p { margin: 0; color: var(--text); font-size: 14px; font-weight: 700; }
.top .top-backup .backup-more { font-weight: 400; }
.top .backup-open { min-height: 40px; padding: var(--space-tight) var(--gap); border-radius: var(--radius-small); background: var(--commit); color: #FFFFFF; font-size: 14px; font-weight: 700; }

main { padding: 12px var(--side) calc(env(safe-area-inset-bottom) + 32px); max-width: 1100px; margin: 0 auto; }
.tools { display: grid; gap: var(--space-snug); margin-bottom: var(--gap); } /* the search: one --gap above the filters (rule 1b) */
.tools input { width: 100%; font: inherit; font-size: 16px; padding: 7px 12px; border-radius: var(--radius-small); border: 1px solid var(--field-edge); background: var(--field); color: var(--text); }
/* 2026-11-11: one row — the filter on the left, the view switch as three small icons on the right */
.tools-row { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: space-between; align-items: center; }
.tools-row .seg button { padding: 7px 8px; }
.tools-row .seg button.icon { padding: 0; width: 34px; display: inline-grid; place-items: center; }
.seg { display: inline-flex; background: var(--card); border-radius: var(--radius); padding: 3px; gap: 2px; }
.seg button { padding: 7px 10px; border-radius: var(--radius-small); background: transparent; font-size: 14px; font-weight: 600; color: var(--text-2); min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--text); color: #FFFFFF; }

.group { margin-top: 14px; }
.group-head { display: flex; width: 100%; align-items: center; gap: 8px; padding: 10px 12px; background: var(--card); border-radius: var(--radius); font-weight: 700; font-size: 16px; text-align: left; min-height: 44px; }
.group-head .count { margin-left: auto; font-weight: 600; color: var(--text-2); font-size: 14px; }
.group-head .chev { width: 14px; display: inline-block; transition: transform 0.15s; }
.group-head[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.group-body { margin-top: 10px; display: grid; gap: var(--gap); }
.group-body.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.group-body.is-list { gap: 8px; }
@media (min-width: 760px) {
  .group-body.is-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-body.is-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tour { background: var(--card); border-radius: var(--radius); overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.tour .photo { aspect-ratio: 16 / 9; background: var(--inner); display: block; width: 100%; object-fit: cover; }
.tour.is-grid .photo { aspect-ratio: 1 / 1; }
.tour-body { padding: 10px 12px 12px; display: grid; gap: 8px; min-width: 0; }
.tour.is-grid .tour-body { padding: 8px 8px 10px; gap: 6px; }
.tour-name { margin: 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.tour.is-grid .tour-name { font-size: 15px; }
.tour-actions { display: flex; gap: 8px; align-items: center; }
.tour-actions .pill { flex: 1; }
.tour.is-big .tour-actions .pill { flex: 0 1 auto; }

.light { display: flex; align-items: center; gap: 6px; min-height: 30px; font-size: 14px; color: var(--text-2); min-width: 0; }
.light .hop { width: 22px; height: 28px; flex: none; }
.light .hop svg { width: 100%; height: 100%; display: block; }
.light span { overflow-wrap: anywhere; }
.light[data-light="needs"] span { color: var(--caution); font-weight: 600; }
.tour.is-grid .light { font-size: 13px; }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-small); font-weight: 700; font-size: 15px; }
.pill svg { width: 18px; height: 18px; flex: none; }
.pill.is-public { background: var(--public); color: var(--public-text); }
.pill.is-private { background: var(--private); color: var(--private-text); }
.pill.is-pending { background: var(--button); color: var(--text-2); }
.pill:disabled { opacity: 0.55; }
.more { min-width: 48px; min-height: 40px; border-radius: var(--radius-small); background: var(--button); font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: 1px; }
.more:active, .seg button:active, .sheet button:active { filter: brightness(0.92); }
.note { font-size: 13px; color: var(--text-2); margin: 0; }
.note.is-off { color: var(--caution); font-weight: 600; }

.tour.is-list { flex-direction: row; align-items: center; gap: 10px; padding: 8px; }
.tour.is-list .photo { width: 64px; height: 64px; aspect-ratio: auto; border-radius: var(--radius-small); flex: none; }
.tour.is-list .tour-body { padding: 0; gap: 2px; flex: 1; }
.tour.is-list .tour-name { font-size: 15px; }
.tour.is-list .views { font-size: 13px; color: var(--text-2); }
.tour.is-list .tour-actions { flex: none; flex-direction: column; gap: 6px; align-items: stretch; }
.tour.is-list .pill { min-height: 34px; padding: 0 10px; font-size: 14px; }
.tour.is-list .more { min-height: 34px; }
.tour.is-list .light { min-height: 22px; font-size: 13px; }
.tour.is-list .light .hop { width: 16px; height: 20px; }

.empty, .nokey { color: var(--text-2); text-align: center; margin: 32px 8px; }
.nokey h2 { color: var(--text); }
.pair-row { display: flex; gap: 8px; justify-content: center; margin: 12px 0; }
.pair-row input { font: 600 18px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; width: 12.5em; padding: 10px 12px; border-radius: var(--radius-small); border: 1px solid var(--inner); background: var(--card); color: var(--text); }
.pair-row button { min-height: 44px; border-radius: var(--radius-small); background: var(--commit); color: #FFFFFF; font-weight: 700; font-size: 16px; padding: 0 18px; }
.pair-why { min-height: 1.4em; }

.sheet-back { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 20; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--page); border-radius: 14px 14px 0 0; padding: 16px var(--side) calc(env(safe-area-inset-bottom) + 16px); max-height: 85vh; overflow-y: auto; display: grid; gap: var(--space-snug); max-width: 560px; margin: 0 auto; }
.sheet h2 { margin: 0 0 2px; font-size: 18px; overflow-wrap: anywhere; }
.sheet p { margin: 0; color: var(--text-2); font-size: 15px; }
.sheet .act { width: 100%; min-height: 48px; border-radius: var(--radius-small); background: var(--button); font-weight: 700; font-size: 16px; text-align: left; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet .act small { font-weight: 600; color: var(--text-2); font-size: 14px; }
.sheet .act.is-commit { background: var(--commit); color: #FFFFFF; }
.sheet .act.is-commit small { color: #E3F2E3; }
.sheet .act.is-destroy { background: var(--private); color: #FFFFFF; }
.sheet .act.is-quiet { background: var(--card); justify-content: center; }
.sheet .row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-snug); background: var(--card); border-radius: var(--radius-small); padding: 8px 8px 8px 14px; min-height: 52px; }
.sheet .row b { font-size: 16px; }
.sheet .row .seg { background: var(--inner); }
.sheet .views { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet .views div { background: var(--card); border-radius: var(--radius-small); padding: 10px 14px; }
.sheet .views b { display: block; font-size: 24px; }
.sheet .views span { font-size: 13px; color: var(--text-2); }
.sheet .qr { background: #FFFFFF; padding: 8px; border-radius: var(--radius-small); width: min(260px, 70vw); justify-self: center; display: block; }
.sheet .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet .two .act { justify-content: center; text-align: center; }

/* a tap's answer (2026-11-16, David: the black pop-up "looks like a terminal one, not a finished app one"): never a floating pop-up;
   plain status words in the page's flow, under the button that was tapped (or at the top of the list when that button is gone) */
.said { margin: var(--space-snug) 0 0; font-size: 15px; font-weight: 600; color: var(--text); }
#said.said { margin: 0 0 var(--gap); }
.sheet a.act { text-decoration: none; color: inherit; }

/* the ••• panel's Edit, the editing sheets and the report (2026-11-09, 22:10) */
.sheet .edit-head { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; }
.sheet .rooms { display: grid; gap: 6px; }
.sheet .room { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; background: var(--card); border-radius: var(--radius-small); padding: 6px; }
.sheet .room input { font: inherit; font-size: 16px; min-width: 0; width: 100%; padding: 8px 10px; border: 1px solid var(--field-edge); border-radius: var(--radius-small); background: var(--field); color: var(--text); }
.sheet .room button { min-width: 44px; min-height: 44px; border-radius: var(--radius-small); background: var(--button); font-size: 18px; font-weight: 800; }
.sheet .room .code { grid-column: 1 / -1; font-size: 12px; color: var(--text-2); padding: 0 4px; }
.sheet .pick { width: 100%; min-height: 48px; border-radius: var(--radius-small); background: var(--card); text-align: left; padding: 0 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.sheet .pick[aria-pressed="true"] { background: var(--text); color: #FFFFFF; }
.report-view { display: grid; gap: 12px; }
.report-view .bar-row { display: flex; gap: 8px; align-items: center; }
.report-view .bar-row h2 { margin: 0; font-size: 20px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.report-view .back { min-height: 44px; padding: 0 14px; border-radius: var(--radius-small); background: var(--button); font-weight: 700; }
.report-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.report-actions button { min-height: 48px; border-radius: var(--radius-small); background: var(--button); font-weight: 700; font-size: 15px; padding: 0 6px; }
.report-actions button[data-report-act="share"] { background: var(--commit); color: #FFFFFF; }
/* "Was this you?" (2026-11-10, 20:00) */
.report { display: grid; gap: 10px; }
.report h3 { margin: 10px 0 0; font-size: 16px; }
.r-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.r-big div { background: var(--card); border-radius: var(--radius); padding: 12px; }
.r-big b { display: block; font-size: 32px; line-height: 1.1; }
.r-big span { font-size: 14px; color: var(--text-2); }
.r-note, .r-none { margin: 0; font-size: 13px; color: var(--text-2); }
/* "Where they are" by distance from the house (2026-11-11): each band's name over its neighbourhoods */
.r-band { margin: 12px 0 6px; font-size: 14px; }
.r-cols { display: flex; align-items: flex-end; gap: 2px; height: 120px; background: var(--card); border-radius: var(--radius); padding: 10px 10px 0; }
.r-cols i { flex: 1; height: var(--h); min-height: 2px; background: var(--accent); border-radius: 2px 2px 0 0; }
.r-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.r-bars { display: grid; gap: 6px; background: var(--card); border-radius: var(--radius); padding: 10px; }
.r-bar { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 8fr) auto; gap: 8px; align-items: center; font-size: 14px; }
.r-bar span { overflow-wrap: anywhere; }
.r-bar i { display: block; height: 12px; width: var(--w); min-width: 2px; background: var(--accent); border-radius: 2px; }
.r-bar b { font-variant-numeric: tabular-nums; }
body.is-report-page main { padding-top: 16px; }
.r-print-only { display: none; } /* 2026-11-11: the groups by distance, in David's PDF (his screen has the full list) */
@media print {
  .r-print-only { display: block !important; }
  .top, .tools, #tours, .report-actions, .report-view .bar-row, .said, .sheet, .sheet-back, .who, [data-own-only] { display: none !important; }
  .report-view { display: grid !important; }
  body { background: #FFFFFF; }
}
.sheet .views.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mark-own { margin: 24px 4px 0; font-size: 13px; color: var(--text-2); }
.mark-own a { color: var(--accent); font-weight: 600; }
/* 2026-11-13: "Leave out a computer" is a filled button under one short line, never "this link" */
.mark-own-box { margin: var(--space-edge) 4px 0; display: grid; gap: var(--space-snug); justify-items: start; }
.mark-own-box .mark-own { margin: 0; }
.mark-own-go { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-edge); border: 0; border-radius: var(--radius-small); background: var(--button); color: var(--text); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; }
.mark-own-go:active { background: var(--button-press); }

/* 2026-11-10, 18:50: the tour sheet's fly-around row (like Studio's card row): poster with ▶, title · length · state, Share video,
   its plays and the help line; the player over everything, inline on iPhone, with Close */
.fly { display: grid; gap: 8px; background: var(--card); border-radius: var(--radius-small); padding: 10px; }
.fly-top { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: center; }
.fly-poster { position: relative; width: 112px; aspect-ratio: 16 / 9; border-radius: var(--radius-small); overflow: hidden; background: var(--bar); padding: 0; display: grid; place-items: center; color: var(--bar-text-2); font-size: 20px; }
.fly-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fly-play { position: relative; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #FFFFFF; display: grid; place-items: center; font-size: 15px; padding-left: 3px; }
.sheet .fly-title { margin: 0; color: var(--text); font-size: 15px; overflow-wrap: anywhere; }
.fly-state { font-weight: 700; white-space: nowrap; }
.fly-state.is-live { color: var(--public); }
.fly-state.is-waiting { color: var(--caution); }
.fly-state.is-missing { color: var(--private); }
.sheet .fly-note, .sheet .fly-help { font-size: 13px; }
.sheet .fly-plays { font-size: 14px; color: var(--text); }
.sheet .fly .act { background: var(--button); }
.fly-player { position: fixed; inset: 0; z-index: 40; background: #000000; display: grid; place-items: center; }
.fly-player video { width: 100%; max-height: 100%; display: block; background: #000000; }
.fly-close { position: absolute; top: calc(env(safe-area-inset-top) + 10px); right: max(10px, env(safe-area-inset-right)); min-height: 44px; padding: 0 16px; border-radius: var(--radius-small); background: rgba(20, 20, 20, 0.85); color: #FFFFFF; font-weight: 700; }
.r-big.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Edit's "Opening…" (2026-11-10, 18:55): a spinner the moment it is tapped */
.sheet .act .opening { display: inline-flex; align-items: center; gap: 10px; }
.spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }
/* 2026-11-10, 19:30: two or more tours "Update ready" for the same reason — Publish all, one at a time, above the tours */
.update-all { background: var(--card); border-radius: var(--radius); padding: 12px; margin: 0 0 var(--gap); display: grid; gap: var(--space-snug); border-left: 4px solid var(--caution); }
.update-all p { margin: 0; font-size: 15px; }
.update-all .act { width: 100%; min-height: 48px; border-radius: var(--radius-small); background: var(--button); font-weight: 700; font-size: 16px; text-align: left; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.update-all .act small { font-weight: 600; color: var(--text-2); font-size: 14px; }
.update-all .act.is-commit { background: var(--commit); color: #FFFFFF; }
.update-all .act.is-commit small { color: #E3F2E3; }
/* the notifications ask's Allow | Not now side by side, one gap apart (2026-11-13: they touched; the guard never drew the ask) */
.update-all .two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-snug); }
.update-all .two .act { justify-content: center; text-align: center; }
/* morning taps (2026-11-10, 22:30): a done line is quiet; a "find" line's visitor is marked in the report */
.update-all.fix[data-fix-done="true"] { border-left-color: var(--commit); }
.update-all .fix-done { color: var(--text-2); font-weight: 700; }
/* 2026-11-11: a Done: tile's ✕ (top right) and History, where its Undo stays for 30 days */
.update-all.fix { position: relative; }
/* a notice with its tour's picture, or Hop; the tours a notice affects as a row of small pictures (2026-11-12, 20:20, rule 1d) */
.notice-head { display: flex; align-items: center; gap: var(--gap); }
.notice-head p { flex: 1; min-width: 0; }
.thumb-row { display: flex; gap: var(--space-tight); }
.thumb-pic { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--radius-small); overflow: hidden; background: var(--inner); }
.thumb-pic .photo { display: block; width: 100%; height: 44px; aspect-ratio: auto; object-fit: cover; background: var(--inner); }
.thumb-pic .f-more { font-size: 15px; }
.fix-history li { display: flex; align-items: center; gap: var(--space-snug); }
.fix-history li .about-pic { width: 48px; height: 34px; }
.fix-history li .about-pic.hop-mark svg { width: 24px; height: 28px; }
.update-all.fix[data-fix-done="true"] p { padding-right: 36px; }
.fix-clear { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; border-radius: var(--radius-small); background: transparent; color: var(--text-2); font-size: 18px; line-height: 1; }
.fix-history { margin: var(--space-snug) 0 var(--gap); }
.fix-history-link { border: 0; border-radius: var(--radius-small); background: var(--button); color: var(--text); font-size: 15px; font-weight: 700; padding: 0 var(--space-edge); min-height: 44px; } /* a filled button (2026-11-13) */
.fix-history-link:active { background: var(--button-press); }
.fix-history ul { list-style: none; margin: var(--space-snug) 0 0; padding: 0; display: grid; gap: 8px; }
.fix-history li { background: var(--card); border-radius: var(--radius); padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; }
.fix-history li small { color: var(--text-2); display: block; }
.fix-history li .act { min-height: 44px; padding: 0 14px; border-radius: var(--radius-small); background: var(--button); font-weight: 700; flex: none; }
.fix-history .fix-note { margin: 6px 2px 0; font-size: 13px; color: var(--text-2); }
/* 2026-11-10, 20:15: Send to Marvel team and the count, under the client's tours; the line under Hop */
.team { margin-top: 10px; display: grid; gap: 6px; }
.team .act { width: 100%; min-height: 48px; border-radius: var(--radius-small); background: var(--card); font-weight: 700; font-size: 16px; text-align: left; padding: 8px 14px; display: grid; gap: 2px; }
.team .act small { font-weight: 600; color: var(--text-2); font-size: 14px; }
.team-count { margin: 0; font-size: 14px; color: var(--text-2); }
.top-work { display: block; margin: 0; padding: 0; background: none; border: 0; font: inherit; font-size: 13px; color: var(--bar-text-2); overflow-wrap: anywhere; text-align: left; text-decoration: underline; text-decoration-color: rgba(185, 191, 200, 0.5); text-underline-offset: 3px; min-height: 24px; cursor: pointer; }
.top-work[hidden] { display: none; }
/* the watch-along feed (2026-11-11): a running job, newest line at the bottom; past jobs under it */
.feed-view { display: grid; gap: 10px; }
.feed-view .bar-row { display: flex; gap: 8px; align-items: center; }
.feed-view .bar-row h2 { margin: 0; font-size: 20px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.feed-view .back { min-height: 44px; padding: 0 14px; border-radius: var(--radius-small); background: var(--button); font-weight: 700; }
.feed-sub { margin: 0; color: var(--text-2); font-size: 14px; }
.feed-lines { list-style: none; margin: 0; padding: 6px 0; background: var(--card); border-radius: var(--radius-small); display: grid; }
.feed-line { display: grid; grid-template-columns: 4.6em 1fr; gap: 2px 8px; padding: 6px 12px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.feed-line time { color: var(--text-2); font-size: 12px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.feed-line.is-say span { font-weight: 600; }
.feed-line.is-do span { color: var(--text-2); }
.feed-line.is-start span, .feed-line.is-done span, .feed-line.is-end span { font-weight: 700; }
.feed-line.is-needs { background: #FFF1D6; }
.feed-line.is-needs span { font-weight: 700; color: #6B4500; }
.feed-line.is-stopped span { font-style: italic; }
.feed-act { grid-column: 2; justify-self: start; min-height: 44px; padding: 0 18px; border-radius: var(--radius-small); background: var(--commit); color: #FFFFFF; font-weight: 700; font-size: 15px; margin-top: 4px; }
.feed-lines[data-state="working"]::after { content: "…"; padding: 2px 12px 4px calc(4.6em + 20px); color: var(--text-2); }
.feed-past-head { margin: 8px 0 0; font-size: 17px; }
.feed-past { display: grid; gap: var(--space-snug); }
.feed-job { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 14px; border-radius: var(--radius-small); background: var(--card); text-align: left; }
.feed-job b { display: block; font-size: 15px; }
.feed-job small { color: var(--text-2); font-size: 13px; }
.feed-job i { font-style: normal; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.feed-job.is-open { outline: 2px solid var(--commit); }
.feed-job[data-state="needs"] i { color: #6B4500; font-weight: 700; }
/* an entry's picture (2026-11-12, 20:20, rule 1d): the tour's or the room's; about no tour, the Hop mark in a white tile */
.about-pic { flex: none; width: 64px; height: 44px; border-radius: var(--radius-small); overflow: hidden; background: var(--inner); display: block; }
.about-pic img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.about-pic.hop-mark { background: #FFFFFF; display: grid; place-items: center; }
.about-pic.hop-mark svg { width: 34px; height: 40px; }
.feed-job .feed-job-words { flex: 1; min-width: 0; }
.top-work[data-state="needs"] { color: #FFD27A; font-weight: 600; }
/* Who looked (2026-11-10, 22:35, as David's approved mockup): one card of lines, a "probably you" line marked, a line not counted
   struck through with Undo; "Leave people out automatically" under it. David's own report only, never in the PDF */
.who { display: grid; gap: 8px; }
.who h3 { margin: 10px 0 0; font-size: 16px; }
.who-bar { width: 100%; min-height: 48px; background: var(--card); border: 0; border-radius: var(--radius); padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font: inherit; font-size: 16px; font-weight: 700; color: inherit; text-align: left; cursor: pointer; }
.who-bar .who-count { font-weight: 600; color: var(--text-2); }
.who-body { display: grid; gap: 8px; }
.who-body[hidden] { display: none; }
.who-body h3 { margin: 10px 0 0; font-size: 16px; }
.who-list, .who-auto { background: var(--card); border-radius: var(--radius); padding: 2px 12px; }
.who-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--inner); }
.who-row:last-child { border-bottom: 0; }
.who-row.is-flag { background: var(--flag); border: 1px solid var(--flag-edge); border-radius: var(--radius); padding: 10px; margin: 6px 0; }
.who-row details { min-width: 0; flex: 1; }
.who-row summary { cursor: pointer; list-style: none; display: grid; gap: 2px; overflow-wrap: anywhere; }
.who-row summary::-webkit-details-marker { display: none; }
.who-row .when { font-weight: 600; }
.who-row .meta, .who-row .rooms { font-size: 14px; color: var(--text-2); }
.who-row .why { font-size: 13px; color: var(--text-2); font-style: italic; }
.who-row .rooms { margin: 6px 0 0; }
.who-row.is-hidden .when, .who-row.is-hidden .meta { opacity: 0.45; text-decoration: line-through; }
.who-row button, .who-auto-row button { min-height: 44px; padding: 0 12px; border-radius: var(--radius-small); background: var(--button); font-weight: 700; font-size: 15px; flex: none; white-space: nowrap; }
.who-auto-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--inner); }
.who-auto-row:last-child { border-bottom: 0; }
.who-auto-row > div { display: grid; gap: 2px; min-width: 0; }
.who-auto-row small { font-size: 13px; color: var(--text-2); }
.who-auto-row button.is-go { background: var(--commit); color: #FFFFFF; }
.who-auto-row button:disabled { opacity: 0.5; }

/* Save as PDF's preview (2026-11-11, 20:55): the PDF's own pages, white, over the report; Share · Save · Close under them */
body.is-pdf { overflow: hidden; }
.pdf-view { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: #E4E4EA; color: #17212B; color-scheme: light;
  padding: calc(env(safe-area-inset-top) + 8px) var(--side) calc(env(safe-area-inset-bottom) + 10px); }
.pdf-bar { display: flex; align-items: baseline; gap: 10px; min-height: 36px; }
.pdf-bar h2 { margin: 0; font-size: 20px; }
.pdf-bar small { color: #66717C; font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.pdf-pages { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; align-content: start; gap: 12px; padding: 6px 0 12px; }
.pdf-pages img { display: block; width: 100%; max-width: 520px; margin: 0 auto; background: #FFFFFF; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); aspect-ratio: 612 / 792; object-fit: contain; object-position: top; }
.pdf-wait { margin: 40px 0; text-align: center; color: #3D4650; font-size: 15px; display: grid; justify-items: center; gap: 12px; }
.pdf-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #C4C8CF; border-top-color: #18859C; animation: pdf-spin .8s linear infinite; }
@keyframes pdf-spin { to { transform: rotate(360deg); } }
.pdf-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pdf-acts button { min-height: 48px; border-radius: var(--radius-small); background: #D2D2D8; color: #0E2C36; font-weight: 700; font-size: 15px; }
.pdf-acts button.is-go { background: var(--commit); color: #FFFFFF; }
.pdf-acts button:disabled { opacity: .45; }
.pdf-note { margin: 8px 0 0; min-height: 1.3em; font-size: 14px; text-align: center; color: #3D4650; }
@media print { .pdf-view { display: none !important; } }

/* folders by client (2026-11-12, David's approved design): the page opens on folders */
.tools.is-folders .tools-row { display: none; }
.f-head { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin: 14px 0 8px; }
.recent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.f-list { display: grid; gap: 8px; }
.f-list.is-rest { margin-top: 8px; }
.f-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; background: var(--card); border-radius: 12px; text-align: left; min-height: 64px; }
.f-logo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; font-weight: 700; font-size: 20px; color: var(--text-2); }
.f-logo img { max-width: 56px; max-height: 54px; object-fit: contain; } /* larger logos (2026-11-12, 16:30: about 64 px at 390 px) */
.f-words { display: grid; min-width: 0; flex: 1; }
.f-words b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-count { color: var(--text-2); font-size: 14px; margin: 0; }
.f-count .is-waiting { color: #A87800; font-weight: 700; }
.f-chev { font-size: 24px; color: var(--text-2); }
.f-top { display: flex; align-items: center; gap: var(--gap); margin: 10px 0 var(--gap); }
.f-top .f-logo { flex-basis: 60px; width: 60px; height: 60px; }
.f-top .f-logo img { max-width: 56px; max-height: 56px; }
.f-top h2 { margin: 0; font-size: 24px; }
.back { background: var(--card); border-radius: 10px; padding: 7px 12px; font-weight: 700; min-height: 40px; margin-bottom: 6px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--gap); } /* cards one --gap apart in every view (rule 1b) */
.tile { min-width: 0; }
.tile-open { display: grid; width: 100%; text-align: left; padding: 0 0 8px; background: var(--card); border-radius: 12px; overflow: hidden; gap: 2px; }
.recent .tile-open { background: none; padding: 0; border-radius: 0; }
.tile-pic { position: relative; display: block; }
.tile-pic .photo { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block; background: var(--inner); }
.recent .tile-pic .photo { border-radius: 8px; }
.tile-name, .tile-note { padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent .tile-name, .recent .tile-note { padding: 0; }
.tile-name { font-size: 16px; margin-top: 4px; }
.tile-note { font-size: 13.5px; color: var(--text-2); }
.tag { position: absolute; top: 8px; left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; }
.tag.is-live { background: #2E9A5E; }
.tag.is-waiting { background: #F2C200; color: #2B2200; }
.tag.is-private, .tag.is-archived { background: #4D5560; }
.tag.is-test { background: #8A9399; } /* a Test tour: grey (2026-11-16) */
.recent .tag { display: inline-block; } /* Recent as pictures with their status tag (2026-11-12, 16:30) */
.qr-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.qr-row img { width: 120px; height: 120px; background: #fff; }
.empty-in { color: var(--text-2); }
.f-words .f-count b { font-size: 14px; }
.f-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.f-actions .act { flex: 1 1 140px; display: grid; gap: 1px; text-align: center; padding: 10px 12px; border-radius: 12px; background: var(--commit); color: #fff; font-weight: 700; font-size: 16px; min-height: 48px; }
.f-actions .act small { font-weight: 500; font-size: 12.5px; opacity: 0.9; }
/* 2026-11-12: "Studio is off — building waits for it. Publishing works." in full at 390 px */
.top-studio.is-off { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
/* folders v2 (2026-11-12, 15:15): Grid / Cards / List on the folders and inside a folder; the designer's own folder's logo */
.seg button.icon { padding: 0; width: 34px; display: inline-grid; place-items: center; }
.f-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f-row.is-grid { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
.f-row.is-grid .f-chev { display: none; }
.f-row.is-grid .f-words { width: 100%; }
.f-row.is-grid .f-words b { white-space: normal; }
.f-row.is-list { padding: 6px 10px; gap: 10px; }
/* 2026-11-12, 17:40 (David: "back to small"): the logo stays 64 px in every view; List only makes the row shorter */
.f-row.is-list .f-words b { font-size: 15.5px; }
.f-row.is-list .f-count { font-size: 13px; }
.f-row .f-count { overflow-wrap: anywhere; }
/* a folder's tours as a strip of pictures (2026-11-12, 20:20, rule 1d): up to 4 across the card under its logo and name, "+N" on the
   last when there are more; the logo stays 64 px, the name, counts and chevron as they were */
.f-row { flex-wrap: wrap; }
.f-strip { flex: 1 0 100%; display: flex; gap: var(--space-tight); } /* the pictures share the row (rule 1b: no leftover space) */
.f-row.is-grid .f-strip { flex: none; width: 100%; }
.f-strip-pic { position: relative; flex: 1 1 0; min-width: 0; display: block; border-radius: var(--radius-small); overflow: hidden; background: var(--inner); }
.f-strip .photo { display: block; width: 100%; height: 56px; aspect-ratio: auto; object-fit: cover; background: var(--inner); }
.f-row.is-list .f-strip .photo { height: 40px; }
.f-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 44, 54, 0.6); color: #FFFFFF; font-size: 17px; font-weight: 700; }
.tiles.is-cards { grid-template-columns: minmax(0, 1fr); }
.tiles.is-cards .tile-pic .photo { aspect-ratio: 16 / 9; }
.tiles.is-list { grid-template-columns: minmax(0, 1fr); }
.tile.is-list .tile-open { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; padding: 0; align-items: center; column-gap: 10px; }
.tile.is-list .tile-pic { grid-row: 1 / span 2; }
.tile.is-list .tile-pic .photo { aspect-ratio: 4 / 3; }
.tile.is-list .tag { top: 4px; left: 4px; font-size: 11px; padding: 1px 6px; }
.tile.is-list .tile-name { padding: 0; margin-top: 0; align-self: end; }
.tile.is-list .tile-note { padding: 0; align-self: start; }
/* the house (2026-11-12, Job 4): search, the map with its pin, the area name */
.house-hits { display: grid; gap: 4px; margin: 4px 0 8px; }
.house-hit { text-align: left; padding: 10px 12px; border-radius: var(--radius-small); background: var(--inner); font-size: 15px; }
.house-map { position: relative; height: 220px; margin: 8px 0; border-radius: 12px; overflow: hidden; background: #E5E3DF; touch-action: none; }
.house-map img { position: absolute; width: 256px; height: 256px; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.house-pin { position: absolute; width: 22px; height: 22px; margin: -22px 0 0 -11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #C0392B; border: 2px solid #fff; z-index: 2; pointer-events: none; }
.house-credit { position: absolute; right: 4px; bottom: 2px; font-size: 10px; background: rgba(255,255,255,.8); padding: 0 4px; z-index: 2; }
.house-field { display: grid; gap: 4px; margin: 8px 0; font-size: 14px; color: var(--text-2); }
.house-field input, .sheet input[data-house-q] { font: inherit; font-size: 16px; padding: 8px 10px; border-radius: var(--radius-small); border: 1px solid var(--field-edge); background: var(--field); color: var(--text); width: 100%; box-sizing: border-box; }
/* ONE style for every choice (2026-11-12, 19:00, David): a grey bar of segments, the chosen one dark navy with white words; never
   a pill. The counts and the view choice share one row (no word "View"), compact enough for 390 px with no sideways scroll. */
.f-bar { display: flex; align-items: center; gap: var(--gap); margin-bottom: var(--gap); }
.f-bar .seg { flex: none; }
.f-bar [data-f-filters] { flex: 1 1 auto; min-width: 0; } /* stretches to fill the row: one --gap from the view buttons (19:30, rule 1b) */
.f-bar [data-f-filters] button { flex: 1 1 auto; }
.f-bar .seg button { padding: 6px 5px; font-size: 13px; min-height: 36px; white-space: nowrap; }
.f-bar.is-short .w { font-size: 0; }
.f-bar.is-short .w::before { content: attr(data-short); font-size: 13px; }
.f-bar .seg button i { font-style: normal; font-weight: 500; } /* the count: lighter, so "Archived 12" still fits at 390 px with 100 tours */
.f-bar .seg button.icon { width: 30px; padding: 0; }
/* a folder's viewers this week, as Studio's folder card (2026-11-12, 19:00) */
.f-week { color: #18859C; font-size: 14px; font-weight: 600; }

/* ── a tour's sheet as Design D (David approved 2026-11-12 20:11; _reports/2026-11-12-tour-sheet-design, option D; rule 1c) ──────
   The mockup's own values: the picture 190 px tall with its tag and a soft dark fade under the name; rooms 118 × 80 in a strip that
   scrolls sideways to the screen's edge; a section's head in its ink; each row an icon in a white tile, the title over its line, a
   chevron; one --gap between everything. Share lavender, Visitors blue, Settings sage, Edit sand; On | Off stays navy. */
.sheet[data-kind="menu"] { gap: var(--gap); }
.sheet .hero { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--inner); }
.sheet .hero img, .sheet .hero .photo { display: block; width: 100%; height: 190px; object-fit: cover; border-radius: 0; aspect-ratio: auto; background: var(--inner); }
.sheet .hero .tag { top: 10px; left: 10px; padding: 4px 10px; border-radius: var(--radius-small); font-size: 14px; }
.sheet .hero .tag.is-live { background: #3E8E50; }
.sheet .hero .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); color: #FFFFFF; display: grid; }
.sheet .hero .cap h2 { margin: 0; color: #FFFFFF; font-size: 24px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .hero .cap span { font-size: 14px; opacity: 0.9; color: #FFFFFF; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .sec { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.sheet .sec .sic { display: grid; }
.sheet .sec .sic svg { width: 16px; height: 16px; }
.sheet .sec.s-share { color: var(--section-share-ink); }
.sheet .sec.s-visitors { color: var(--section-visitors-ink); }
.sheet .sec.s-settings { color: var(--section-settings-ink); }
.sheet .sec.s-edit { color: var(--section-edit-ink); }
/* the rooms: a strip that scrolls sideways, to the screen's edge; a tap opens the tour at that room */
.sheet .thumbs { display: flex; gap: var(--gap); overflow-x: auto; margin-right: calc(-1 * var(--side)); padding-right: var(--side); scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.sheet .thumbs::-webkit-scrollbar { display: none; }
.sheet .room-pic { flex: none; width: 118px; padding: 0; background: none; text-align: left; display: grid; gap: 4px; border-radius: 0; }
.sheet .room-pic img { display: block; width: 118px; height: 80px; object-fit: cover; border-radius: 4px; background: var(--inner); }
.sheet .room-name { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a row: the icon in a white tile in the section's ink, the title over its line, a chevron */
.sheet .act.is-row { min-height: 0; padding: 14px 16px; gap: 12px; justify-content: flex-start; border-radius: var(--radius); }
.sheet .act.is-row .ic, .sheet .row .ic { flex: none; width: 36px; height: 36px; border-radius: var(--radius); background: #FFFFFF; display: grid; place-items: center; }
.sheet .act.is-row .ic svg, .sheet .row .ic svg { width: 20px; height: 20px; }
.sheet .act.is-row .tx { flex: 1; min-width: 0; display: grid; }
.sheet .act.is-row .tx > span { font-size: 18px; line-height: 1.3; }
.sheet .act.is-row .tx small { font-size: 14px; line-height: 1.3; font-weight: 400; color: var(--text-2); }
.sheet .act.is-row .chev { flex: none; display: grid; color: var(--text-2); }
.sheet .act.is-row .chev svg { width: 18px; height: 18px; }
.sheet .act.is-row:disabled { opacity: 0.6; }
.sheet .s-share.is-row { background: var(--section-share-button); }
.sheet .s-visitors.is-row { background: var(--section-visitors-button); }
.sheet .s-settings.is-row { background: var(--section-settings-button); }
.sheet .s-edit.is-row { background: var(--section-edit-button); }
.sheet .s-share .ic, .sheet[data-kind="menu"] .fly .act .ic { color: var(--section-share-ink); }
.sheet .s-visitors .ic { color: var(--section-visitors-ink); }
.sheet .s-settings .ic { color: var(--section-settings-ink); }
.sheet .s-edit .ic { color: var(--section-edit-ink); }
/* Visitors: three numbers, each with its small bars */
.sheet[data-kind="menu"] .views.is-three { gap: var(--gap); }
.sheet[data-kind="menu"] .views .num { background: var(--section-visitors-card); border-radius: var(--radius); padding: 12px 14px; display: grid; }
.sheet[data-kind="menu"] .views .num b { font-size: 30px; font-weight: 700; line-height: 1.3; }
.sheet[data-kind="menu"] .views .num > span { font-size: 14px; color: var(--text-2); }
.sheet .bars { display: flex; gap: 3px; align-items: flex-end; height: 22px; margin-top: 6px; }
.sheet .bars i { flex: 1; min-height: 2px; border-radius: 2px; background: var(--section-visitors-ink); opacity: 0.85; }
/* Settings: a sage card, its icon, the name, the one On | Off bar (navy when chosen) on the card's darker tint */
.sheet .row.s-settings { background: var(--section-settings-card); padding: 12px 12px 12px 16px; gap: 12px; border-radius: var(--radius); min-height: 0; }
.sheet .row.s-settings b { flex: 1; font-size: 18px; line-height: 1.3; }
.sheet .row.s-settings .seg { background: var(--section-settings-button); padding: 4px; }
.sheet .row.s-settings .seg button { padding: 8px 14px; font-size: 16px; }
/* the fly-around, in Share */
.sheet[data-kind="menu"] .fly { background: var(--section-share-card); border-radius: var(--radius); }
.sheet[data-kind="menu"] .fly .act { background: var(--section-share-button); }
.sheet[data-kind="menu"] > .act.is-commit, .sheet[data-kind="menu"] > .act.is-quiet { border-radius: var(--radius); }
/* a folder's actions as Design D (2026-11-12, rule 1c): rows like a tour's sheet, in their section's colour */
.f-actions { display: grid; gap: var(--gap); margin: 0 0 var(--gap); }
.f-actions .act.is-row, .team .act.is-row { width: 100%; min-height: 0; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius); color: var(--text); text-align: left; font-weight: 700; }
.f-actions .act.is-row small, .team .act.is-row small { opacity: 1; }
.f-actions .act.is-row .ic, .team .act.is-row .ic { flex: none; width: 36px; height: 36px; border-radius: var(--radius); background: #FFFFFF; display: grid; place-items: center; }
.f-actions .act.is-row .ic svg, .team .act.is-row .ic svg { width: 20px; height: 20px; }
.f-actions .act.is-row .tx, .team .act.is-row .tx { flex: 1; min-width: 0; display: grid; }
.f-actions .act.is-row .tx > span, .team .act.is-row .tx > span { font-size: 18px; line-height: 1.3; }
.f-actions .act.is-row .tx small, .team .act.is-row .tx small { font-size: 14px; line-height: 1.3; font-weight: 400; color: var(--text-2); }
.f-actions .act.is-row .chev, .team .act.is-row .chev { flex: none; display: grid; color: var(--text-2); }
.f-actions .act.is-row .chev svg, .team .act.is-row .chev svg { width: 18px; height: 18px; }
.f-actions .s-share.is-row, .team .s-share.is-row { background: var(--section-share-button); }
.f-actions .s-visitors.is-row { background: var(--section-visitors-button); }
.f-actions .s-settings.is-row { background: var(--section-settings-button); }
.f-actions .s-share .ic, .team .s-share .ic { color: var(--section-share-ink); }
.f-actions .s-visitors .ic { color: var(--section-visitors-ink); }
.f-actions .s-settings .ic { color: var(--section-settings-ink); }
/* smart QR codes (2026-11-12): each code a row (the code, the tour's picture, its name over its scans, a chevron), and a code's own
   sheet in Share lavender: the code large on white, its actions as rows, the print card's two sizes, the scans with 30 small bars,
   Point it at another tour (asked in the sheet), New code. One --gap between everything; choices navy when chosen. */
.sheet[data-kind="code"], .sheet[data-kind="share"], .sheet[data-kind="qr"] { gap: var(--gap); }
.sheet .act.is-row.code-row { padding: 10px 16px 10px 10px; }
.sheet .code-row .code-qr { flex: none; width: 64px; height: 64px; background: #FFFFFF; border-radius: var(--radius-small); display: block; }
.sheet .code-pic { flex: none; width: 64px; height: 64px; border-radius: var(--radius-small); overflow: hidden; background: var(--inner); display: block; }
.sheet .code-pic img, .sheet .code-pic .photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
.sheet .code-row .tx small + small { color: var(--section-share-ink); font-weight: 600; }
.sheet .code-of { margin-top: -6px; }
.sheet .code-big { background: #FFFFFF; border-radius: var(--radius); padding: var(--gap); }
.sheet .code-big img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.sheet .code-scans { background: var(--section-share-card); border-radius: var(--radius); padding: 12px 14px; display: grid; }
.sheet .code-scans b { font-size: 30px; font-weight: 700; line-height: 1.3; }
.sheet .code-scans > span { font-size: 14px; color: var(--text-2); }
.sheet .bars.is-30 { gap: 2px; }
.sheet .code-scans .bars i { background: var(--section-share-ink); }
.sheet .row.code-point { background: var(--section-share-card); border-radius: var(--radius); padding: 8px; gap: var(--space-snug); }
.sheet .row.code-point .pick { flex: 1; min-width: 0; }
.sheet .row.code-point .act { width: auto; flex: none; background: var(--section-share-button); }
.sheet .pick { min-height: 44px; border-radius: var(--radius-small); border: 1px solid var(--inner); background: #FFFFFF; color: var(--text); font-size: 16px; padding: 0 10px; }
.sheet .code-ask { background: var(--section-share-card); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: var(--space-snug); }
.sheet .code-ask p { color: var(--text); font-weight: 700; font-size: 17px; }
.sheet .code-ask[hidden] { display: none; }
.sheet .code-tours { display: grid; gap: var(--space-snug); }
.sheet .code-tour { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius); background: var(--section-share-button); color: var(--text); text-align: left; font-size: 16px; }
.sheet .code-tour .code-pic { width: 56px; height: 40px; }
.sheet .code-tour[aria-pressed="true"] { background: var(--text); color: #FFFFFF; }
.sheet .code-change { justify-self: start; min-height: 36px; padding: 0 12px; border-radius: var(--radius-small); background: var(--section-share-button); font-weight: 600; font-size: 15px; }
.sheet .code-name { min-height: 48px; border-radius: var(--radius-small); border: 1px solid var(--inner); background: #FFFFFF; color: var(--text); font-size: 17px; padding: 0 12px; }
.sheet .seg.is-wrap { display: flex; flex-wrap: wrap; background: var(--section-share-card); padding: 4px; gap: 4px; }
.sheet .seg.is-wrap button { padding: 8px 12px; font-size: 15px; }
.report [data-source].is-found { background: var(--section-share-card); border-radius: var(--radius-small); }
.sheet[data-kind="code"] .two .act.is-open { background: var(--section-share-button); }
/* A client's team (2026-11-13, David's phone 09:27): the QR codes sheet's rows in the Team section's sage. Each person a card: the
   name, what they may do on one line, then Copy their link and Remove filled and side by side; Remove asks in the card. The invite:
   the name box the full width, Reports only | Full under it (navy when chosen), then the green Invite. One --gap between cards. */
.sheet[data-kind="team"] { gap: var(--gap); }
.sheet .team-list { display: grid; gap: var(--gap); }
.sheet .team-person, .sheet .team-invite { background: var(--section-settings-card); border-radius: var(--radius); padding: 12px; display: grid; gap: var(--space-snug); }
.sheet .team-person .tx { display: grid; padding: 0 4px; min-width: 0; }
.sheet .team-person .tx b, .sheet .team-invite > b { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.sheet .team-invite > b { padding: 0 4px; }
.sheet .team-person .tx small { font-size: 14px; line-height: 1.3; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet .team-person .two { gap: var(--space-snug); }
.sheet .team-person .two .act { padding: 0 8px; white-space: nowrap; }
.sheet .team-person .two > :only-child { grid-column: 1 / -1; }
.sheet .team-person .act.is-open { background: var(--section-settings-button); }
.sheet .team-ask { display: grid; gap: var(--space-snug); }
.sheet .team-ask p { color: var(--text); font-weight: 700; font-size: 17px; padding: 0 4px; }
.sheet .team-invite input[data-team-name] { font: inherit; font-size: 17px; min-height: 48px; width: 100%; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--field-edge); border-radius: var(--radius-small); background: var(--field); color: var(--text); }
.sheet .team-invite .seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--section-settings-button); padding: 4px; gap: 4px; }
.sheet .team-invite .seg button { padding: 8px 12px; font-size: 16px; min-height: 40px; }
/* 2026-11-13: notifications made with an older key: said under the switch, the row's full width */
.push-row { flex-wrap: wrap; }
.push-row [data-push-stale] { flex: 1 0 100%; margin: 0; color: var(--text-2); font-size: 14px; }
/* Hop's test render (2026-11-13 11:00, Job 4): the 360 to look around in, Approve | Redo under it, and the answer in their place */
.sheet .pano { height: min(52vh, 440px); border-radius: var(--radius-small); overflow: hidden; background: var(--inner); touch-action: none; display: grid; place-items: center; color: var(--text-2); font-size: 15px; }
.sheet .pano-canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.sheet .pano-flat { width: 100%; height: 100%; object-fit: cover; }
.sheet .hop-said { -webkit-user-select: none; user-select: none; margin: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-small); background: var(--card); color: var(--text); font-weight: 700; font-size: 16px; }
.sheet .hop-said[data-hop-said="approve"] { background: var(--commit); color: #FFFFFF; }
/* an expired test render (2026-11-16 08:55, Job 2): the time it expired, then a filled Send it again */
.sheet .hop-again { display: grid; gap: var(--space-snug); }
.sheet .hop-expired { margin: 0; text-align: center; font-size: 16px; font-weight: 700; color: var(--text); }
.hop-est { color: var(--text-2); font-size: 14px; }

/* Hop's card per job (2026-11-13 13:50, Hop setup prompt, Job 5): white card, the tour's picture and Hop beside the name, the live line,
   the newest previews in a row, Plans on the Edit sand, What Hop found on the Settings sage, filled buttons (never plain text), the
   queue's Up and Remove. Spacing from the page's tokens. */
.hop-cards-label { margin: var(--space-edge) 0 var(--space-snug); }
.hop-card { background: var(--card); border-radius: var(--radius); padding: var(--gap); margin: 0 0 var(--gap); display: grid; gap: var(--space-snug); }
.hop-card-top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--gap); align-items: center; }
.hop-card-top .photo, .hop-card-face { width: 96px; height: 64px; border-radius: var(--radius-small); object-fit: cover; display: grid; place-items: center; background: var(--section-settings-card); }
.hop-card-face svg { width: 44px; height: 56px; }
.hop-card-words { display: grid; gap: var(--space-tight); min-width: 0; }
.hop-card-words b { font-size: 17px; overflow-wrap: anywhere; }
.hop-card-words small { color: var(--text-2); font-size: 14px; }
.hop-line { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); } /* plain status, never link-blue (2026-11-16) */
/* every preview in one strip, newest first, swiped sideways (2026-11-16, Job 4); a tap opens it large */
.hop-pics { display: flex; gap: var(--space-tight); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hop-pics::-webkit-scrollbar { display: none; }
.hop-pic-btn { flex: 0 0 auto; width: 132px; padding: 0; border: 0; background: none; scroll-snap-align: start; border-radius: var(--radius-small); display: grid; gap: 2px; text-align: left; color: var(--text); font: inherit; }
.hop-pic-name { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hop-card[data-hop-from="notice"] { outline: 3px solid var(--text); outline-offset: 2px; }
.hop-pic { display: block; width: 132px; height: 82px; object-fit: cover; border-radius: var(--radius-small); background: var(--section-visitors-card); }
.hop-big { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius-small); background: var(--section-visitors-card); }
/* Hop beside the "Hop" heading, always: small, his red light while he works */
.hop-cards-label { display: flex; align-items: center; gap: var(--space-snug); }
.hop-mini { display: inline-grid; place-items: center; width: 24px; height: 30px; }
.hop-mini svg { width: 24px; height: 30px; }
.hop-card-sec { border-radius: var(--radius-small); padding: var(--space-snug) var(--gap); display: grid; gap: var(--space-tight); }
.hop-card-sec.s-edit { background: var(--section-edit-card); }
.hop-card-sec.s-settings { background: var(--section-settings-card); }
.hop-card-sec .sec { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hop-card-sec .sec.s-edit { color: var(--section-edit-ink); }
.hop-card-sec .sec.s-settings { color: var(--section-settings-ink); cursor: pointer; }
.hop-plan { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.hop-card .hop-found { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-tight); font-size: 14px; }
.hop-card .hop-found li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--space-snug); }
.hop-card .hop-found li.is-ok > span:first-child { color: var(--section-settings-ink); font-weight: 700; }
/* Pick cameras (2026-11-16 17:35, Job 1): a row per tour camera, its last 8K render, Day / Dusk / Open; chosen = navy */
.hop-card-sec.s-share { background: var(--section-share-card); }
.hop-card-sec.s-visitors { background: var(--section-visitors-card); }
.hop-card-sec .sec.s-share { color: var(--section-share-ink); cursor: pointer; }
.hop-card-sec .sec.s-visitors { color: var(--section-visitors-ink); }
.hop-choose { display: grid; gap: var(--space-snug); }
.hop-pick-rows { display: grid; gap: var(--space-snug); }
.hop-pick-row { display: grid; gap: var(--space-tight); background: var(--card); border-radius: var(--radius-small); padding: var(--space-tight); }
.hop-pick-top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-snug); align-items: stretch; }
.hop-pick-look { padding: 0; border: 0; background: none; border-radius: 6px; cursor: pointer; align-self: center; }
.hop-pick-cam { display: grid; gap: var(--gap); align-items: center; text-align: left; min-height: 56px; border: 0; border-radius: var(--radius-small); background: var(--button); color: var(--text); padding: var(--space-tight); font: inherit; cursor: pointer; }
.hop-pick-cam[aria-pressed="true"] { background: var(--text); color: #FFFFFF; }
.hop-pick-cam[aria-pressed="true"] small { color: #FFFFFF; }
.hop-pick-name { display: grid; gap: 2px; min-width: 0; }
.hop-pick-name b { font-size: 16px; overflow-wrap: anywhere; }
.hop-pick-name small { color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.hop-pick-pic { width: 96px; height: 60px; border-radius: 6px; object-fit: cover; background: var(--section-settings-card); display: grid; place-items: center; font-size: 12px; color: var(--text-2); }
.hop-pick-modes { display: flex; gap: var(--space-tight); flex-wrap: wrap; }
.hop-pick-mode { min-height: 44px; min-width: 72px; border: 0; border-radius: var(--radius-small); background: var(--button); color: var(--text); font: inherit; font-weight: 700; font-size: 15px; padding: 0 14px; cursor: pointer; }
.hop-pick-mode[aria-pressed="true"] { background: var(--text); color: #FFFFFF; }
.hop-flag { margin: 0; font-size: 14px; color: var(--text); background: var(--section-edit-card); border-radius: var(--radius-small); padding: var(--space-tight) var(--space-snug); }
.hop-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-snug); }
.hop-card .act, .sheet[data-kind="hop-at"] .act { width: 100%; min-height: 48px; border-radius: var(--radius-small); background: var(--button); font-weight: 700; font-size: 16px; padding: 0 14px; }
.hop-card .act.is-commit, .sheet[data-kind="hop-at"] .act.is-commit { background: var(--commit); color: #FFFFFF; }
/* Chief busy (2026-11-16 12:50, Job 1): Render now greyed, still a filled button; the reason is plain status text above it */
.hop-card .act:disabled, .hop-card .act.is-commit:disabled { background: var(--button); color: var(--text-2); cursor: default; }
.hop-chief { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.hop-q { display: grid; gap: var(--space-tight); font-size: 14px; }
.hop-when { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-snug); }
.hop-when input { min-height: 48px; border-radius: var(--radius-small); border: 1px solid var(--line, #CCD); padding: 0 var(--space-snug); font: inherit; background: var(--card); }
.sheet[data-kind="hop-at"] { display: grid; gap: var(--space-snug); }
/* New version of… (2026-11-16 19:20, Job 2): the plans to pick (chosen = navy), the four groups, Leave out exterior On | Off */
.hop-version-plans, .hop-version-group, .hop-card-sec.hop-version, .hop-version-ext-row { display: grid; gap: var(--space-snug); }
.hop-version-ext, .hop-size { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-tight); }
.hop-card input[data-hop-version-name] { min-height: 48px; border-radius: var(--radius-small); border: 1px solid var(--line, #CCD); padding: 0 var(--space-snug); font: inherit; background: var(--card); }
