  /* ---- The service layout (docs/service-layout.md): Settings (with its legend) -> Input -> Action -> Result ---- */
  [data-layout="v2"] .settings-toggle { display: inline-flex; max-width: 75%; }
  [data-layout="v2"] .panel.settings.collapsed > :not(.settings-head) { display: none !important; }
  [data-layout="v2"] .panel.settings:not(.collapsed) .settings-toggle span[aria-hidden] { transform: rotate(180deg); }
  [data-layout="v2"] .panel.settings.collapsed { padding-top: 12px; padding-bottom: 12px; }
  [data-layout="v2"] .setting-hint { display: none; }   /* the hints live in the legend */
  [data-layout="v2"] .settings-grid select, [data-layout="v2"] .settings-grid input[type=text],
  [data-layout="v2"] .svc-action select, [data-layout="v2"] .svc-action input[type=text] { height: 38px; padding-top: 0; padding-bottom: 0; }
  [data-layout="v2"] .settings-grid .segmented, [data-layout="v2"] .in-tabs { height: 38px; box-sizing: border-box; }
  [data-layout="v2"] .settings-grid .segmented button { padding-top: 0; padding-bottom: 0; }
  /* 5. a blue arrow to open and close Settings and the Legend */
  /* A solid triangle, drawn (not a font character) in a square whose centre is the
     triangle's own centre, so it turns in place on the text's middle line. */
  [data-layout="v2"] .settings-toggle span[aria-hidden], .legend-toggle .arr, .artifact-legend-toggle .arr {
    font-size: 0; width: 12px; height: 12px; display: inline-block; flex: none; align-self: center; transition: transform .18s ease; }
  [data-layout="v2"] .settings-toggle span[aria-hidden]::before, .legend-toggle .arr::before, .artifact-legend-toggle .arr::before {
    content: ""; display: block; width: 12px; height: 12px; background: var(--ui-arrow); clip-path: polygon(0 25%, 100% 25%, 50% 100%); }
  [data-layout="v2"] .settings-head { cursor: pointer; }
  .legend-box { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; align-items: flex-end; }
  .legend-box .legend-list { align-self: stretch; }
  .legend-toggle { font-size: 12.5px; }
  /* a pill like the Settings one: it opens and closes the same way */
  .link-btn.legend-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface-alt); color: var(--text-muted);
    border-radius: 8px; padding: 6px 10px; font-size: 12px; text-decoration: none; }
  .link-btn.legend-toggle:hover { border-color: var(--border-strong); color: var(--text); }
  .legend-toggle[aria-expanded="false"] .arr, .artifact-legend-toggle[aria-expanded="false"] .arr { transform: rotate(-90deg); }   /* closed: points right */
  .legend-list { margin: 8px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 12.5px; line-height: 1.45; }
  .legend-list dt { font-weight: 600; color: var(--text-muted); }
  .legend-list dd { margin: 0; color: var(--text); }
  @media (max-width: 560px) { .legend-list { grid-template-columns: 1fr; } .legend-list dd { margin-bottom: 4px; } }
  [data-layout="v2"] .age-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  [data-layout="v2"] .age-buttons .run-row { order: 2; }
  [data-layout="v2"] .age-buttons #age-all { order: 1; }
  [data-layout="v2"] .age-buttons .run-row > .btn-primary { width: 172px; }
  .svc-result .thread { max-height: none; overflow: visible; }
  .svc-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  /* Input and Result line up row by row: title | tabs and result header | the text and the output |
     count and Keep, and model and note | Action and the result's actions */
  [data-layout="v2"] .work-row { --rows: 5; }
  .panel.svc-input, .panel.svc-result { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 16.5px 36px calc(46px + var(--rows) * 46px) 66px; gap: 10px; align-content: start; }
  .svc-input .in-pane { display: contents; }
  .svc-input .in-pane[hidden] { display: none; }
  .svc-input .in-body { grid-row: 3; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
  .svc-input .in-foot { grid-row: 4; min-height: 0; display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
  .svc-input .in-tabs { grid-row: 2; }
  .svc-result .result-top { grid-row: 2; display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }
  .svc-result .result-top .panel-title { flex: none; white-space: nowrap; }
  .svc-result .result-top .result-chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* "Service level" and the medal sit at the right of the Result title line, where there's always room */
  .panel.svc-result { position: relative; }
  .svc-result .result-top .level-badge { position: absolute; top: 13px; right: 18px; }
  .level-badge { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none; }
  .level-label { font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
  button.medal { cursor: help; font-family: inherit; line-height: inherit; }
  .level-pop { position: fixed; z-index: 50; width: max-content; max-width: 260px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 12px; font-weight: 400; line-height: 1.45; box-shadow: 0 6px 18px rgba(0,0,0,.12); white-space: normal; }
  .level-pop strong { display: block; margin-bottom: 2px; }
  .svc-result .result-body { grid-row: 3; min-height: 0; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-alt); padding: 12px 14px; }
  .svc-result .result-body .output-stage { height: 100%; min-height: 0; border: 0; background: none; padding: 0; }
  .svc-result .result-body .error-box { margin: 0; }
  .svc-result .result-body > .result-card { border: 0; background: none; padding: 0; box-shadow: none; }
  .svc-result .result-body:has(.result-edit) { padding: 0; }
  .result-edit { width: 100%; height: 100%; border: 0; border-radius: 10px; background: transparent; padding: 12px 14px; font: 14px/1.6 inherit; font-family: inherit; color: var(--text); resize: none; }
  .svc-result .result-foot { grid-row: 4; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--text-faint); }
  .svc-result .result-foot .result-meta { margin: 0; }
  .svc-result .result-foot .note { margin: 0; font-size: 11.5px; }
  .svc-result .result-foot .service-level-note { padding-top: 4px; }
  .result-actions-box { padding-top: 14px; padding-bottom: 14px; gap: 8px; }
  .svc-input > .panel-title, .svc-result > .panel-title, .svc-result > .result-title-row .panel-title { line-height: 16.5px; }
  .svc-result > .result-title-row { height: 16.5px; line-height: 16.5px; align-items: flex-start; }
  .result-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .result-title-row .link-btn { font-size: 12.5px; }
  .svc-result > .result-title-row > .result-actions { margin: 0; }
  .svc-result .result-body .history-view { margin: 0; }
  .svc-result .result-body #rag-live .note:has(.history-state:empty) { display: none; }
  .svc-result .result-body .sources { margin-top: 12px; }
  .result-actions-box .result-actions { margin: 0; justify-content: flex-start; }
  .result-actions .link-btn:disabled { color: var(--text-faint); text-decoration: none; cursor: default; }
  .in-tabs { background: var(--tabs-bg); border-color: transparent; }
  .in-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
  .click-here { color: var(--ui-blue); text-decoration: underline; text-underline-offset: 2px; }
  .in-tabs button .ic { font-size: 13px; }
  .in-tabs button .short { display: none; }
  .svc-input { container-type: inline-size; }
  @container (max-width: 470px) { .in-tabs button .long { display: none; } .in-tabs button .short { display: inline; } .in-tabs button { padding: 7px 6px; } }
  .in-tabs button.off { opacity: .45; cursor: not-allowed; }
  .in-body textarea { flex: 1; min-height: 80px; resize: none; }
  .limit-line { font-size: 11.5px; color: var(--text-faint); }
  .limit-line.amber { color: #a86a00; }
  .limit-line.red { color: var(--error); font-weight: 600; }
  .keep-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); flex-wrap: wrap; }
  .keep-row label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
  .keep-row input[type=checkbox] { width: 15px; height: 15px; accent-color: #3b5bab; }
  .keep-row.locked label { cursor: not-allowed; color: var(--text-muted); }
  .keep-row .keep-name { flex: 1; min-width: 120px; padding: 4px 8px; font-size: 12.5px; }
  .in-body .upload-well { flex: 1; justify-content: center; }
  .file-line { display: flex; align-items: center; gap: 8px; height: 38px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-alt); font-size: 13px; white-space: nowrap; }
  .file-line .nm { font-weight: 600; flex: 1; min-width: 50px; overflow: hidden; text-overflow: ellipsis; }
  .file-line .sz { flex: none; }
  .file-line .sz { color: var(--text-muted); font-size: 12px; }
  .file-line .acts { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; color: var(--text-faint); flex: none; }
  .file-line .tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); font-weight: 600; }
  .in-body .file-spacer { flex: 1; }
  .folder-pick { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
  .folder-pick .fp-head { display: flex; align-items: center; gap: 6px; min-height: 38px; box-sizing: border-box; padding: 4px 10px; background: var(--surface-alt); border: 0; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--text); cursor: pointer; text-align: left; width: 100%; }
  .folder-pick .fp-head .chev { width: 12px; color: var(--text-faint); }
  .folder-pick.closed { flex: none; }
  .folder-pick.closed .fp-head { border-bottom: 0; }
  .folder-pick .fp-head .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .folder-pick .fp-head .chev { color: var(--ui-blue); }
  .folder-pick .fp-head .link-btn { flex: none; }
  .folder-pick.closed .fp-list { display: none; }
  .folder-pick .fp-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
  .folder-pick .fp-row { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 46px; border-top: 1px solid var(--surface-alt); font-size: 12.5px; cursor: pointer; }
  .folder-pick .fp-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
  .folder-pick .fp-row:first-child { border-top: 0; }
  .folder-pick .fp-row input { width: 15px; height: 15px; accent-color: #3b5bab; flex: none; margin: 0; }
  .folder-pick .fp-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .folder-pick .fp-row .meta { color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
  .folder-pick .fp-row.off { color: var(--text-faint); cursor: not-allowed; }
  .folder-pick .fp-row.picked { background: rgba(59, 91, 171, .07); }
  .folder-pick .fp-none { padding: 14px; color: var(--text-faint); font-size: 12.5px; }
  .svc-action { gap: 8px; padding-top: 14px; }
  [data-layout="v2"] .work-row { align-items: stretch; }
  [data-layout="v2"] .svc-col > .svc-action, [data-layout="v2"] .svc-col > .result-actions-box { flex: 1; }
  .svc-action > .run-row { margin-top: 0; }
  .result-actions { display: flex; gap: 4px 6px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-faint); margin-top: 10px; }
  .result-actions .link-btn { font-size: 13px; }
  .result-saved { font-size: 12px; color: var(--text-muted); font-style: italic; }   /* a message, not a link */
  .ask-dialog { width: min(540px, calc(100vw - 32px)); padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); }
  .ask-dialog::backdrop { background: rgba(10, 20, 30, .35); }
  .ask-dialog p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
  .ask-dialog input[type=text] { margin-bottom: 12px; }
  .ask-dialog .ask-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .ask-dialog .ask-buttons .btn-primary { padding: 8px 14px; }
  .docview-dialog { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); }
  .docview-dialog::backdrop { background: rgba(10, 20, 30, .45); }
  .docview-dialog .docview-frame { height: 66vh; }
  .docview-dialog .docview-img { max-height: 66vh; }
  .docview-dialog .docview-close { margin-left: auto; }
  .docview-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 66vh; overflow: auto; margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-alt); font: 13px/1.55 inherit; font-family: inherit; }
  .docview-dialog .result-head { display: flex; gap: 10px; align-items: center; }

  /* Chat conversation */
  .thread {
    display: flex; flex-direction: column; gap: 12px; min-height: 220px; max-height: min(62vh, 640px);
    overflow-y: auto; padding: 4px 2px;
  }
  .thread-empty { margin: auto; color: var(--text-faint); font-size: 13px; text-align: center; max-width: 280px; }
  .msg { max-width: 88%; border-radius: 12px; padding: 10px 13px; display: flex; flex-direction: column; gap: 6px; }
  .msg.user { align-self: flex-end; background: var(--accent-soft); border-bottom-right-radius: 4px; }
  .msg.assistant { align-self: flex-start; background: var(--surface-alt); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
  .msg .who-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
  .msg .who-line .btn-ghost { padding: 2px 8px; font-size: 11px; text-transform: none; letter-spacing: 0; }
  .msg .text { font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
  .msg .meta { font-size: 11px; color: var(--text-faint); font-family: "IBM Plex Mono", monospace; }
  /* a formatted answer: paragraphs, headings and lists, not raw markdown */
  .msg.assistant .text { white-space: normal; }
  .msg.assistant .text > :first-child { margin-top: 0; }
  .msg.assistant .text p { margin: 0 0 9px; }
  .msg.assistant .text h1, .msg.assistant .text h2, .msg.assistant .text h3 { font-size: 14.5px; margin: 12px 0 4px; }
  .msg.assistant .text ul, .msg.assistant .text ol { margin: 0 0 9px; padding-left: 20px; }
  .msg.assistant .text li { margin: 2px 0; }
  .msg.assistant .text code { font: 12.5px ui-monospace, Menlo, monospace; background: var(--surface-alt); border-radius: 4px; padding: 0 4px; }
  .msg .text.streaming::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
  .msg .msg-note { font-size: 12px; color: var(--error); }
  .msg.error { align-self: stretch; max-width: none; background: var(--error-soft); color: var(--error); font-size: 12.5px; }
  .thread-divider { align-self: center; font-size: 11.5px; color: var(--text-faint); }

  /* Pick services: available on top, coming soon below, two columns each */
  .pick-section { display: flex; flex-direction: column; gap: 8px; }
  #pick-list { display: flex; flex-direction: column; gap: 8px; }   /* as on My services: one service per line */
  #pick-list .service-row.picked { border-color: #1f9c5a; box-shadow: 0 0 0 1px #1f9c5a; }
  .pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  @media (max-width: 560px) { .pick-grid { grid-template-columns: minmax(0, 1fr); } }
  #pick-view .onboard-card { max-width: 780px; }
  #pick-list { display: flex; flex-direction: column; gap: 14px; }

  .docs-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 36px; }
  .docs-summary .hint { font-size: 12.5px; color: var(--text-muted); }
  .docs-manage { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; }
  .panel {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  }
  .panel-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); font-weight: 600; }

  .field { display: flex; flex-direction: column; gap: 6px; }
  .field > label, .field > .label-row > label, .field-label { font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
  /* Friendly name on top; the technical term in small print under it; a hint below the control. */
  .field .tech { display: block; margin-top: -2px; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: var(--text-faint); letter-spacing: .01em; }
  .field .setting-hint { font-size: 11.5px; line-height: 1.35; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  textarea, input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=date], select {
    width: 100%; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 8px;
    padding: 9px 11px; color: var(--text); font-size: 13.5px; resize: vertical;
  }
  textarea:focus, input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
  .hint { font-size: 11.5px; color: var(--text-faint); }

  .slider-row { display: flex; align-items: center; gap: 10px; }
  .slider-row input[type=range] { flex: 1; accent-color: var(--accent); }
  .segmented button:disabled { opacity: .45; cursor: not-allowed; }
  .picker-not-enabled { margin: 6px 0 8px; font-size: 12px; }
  /* Age a photo: years from -20 to +20, the fill grows out from Now */
  .age-years { margin-top: 4px; }
  .age-years .age-now { font-weight: 600; color: #3b5bab; }
  .age-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; margin: 12px 0 4px;
    background: linear-gradient(to right, var(--border) var(--from, 50%), #3b5bab var(--from, 50%), #3b5bab var(--to, 50%), var(--border) var(--to, 50%)); }
  .age-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #3b5bab; border: 2px solid var(--surface); box-shadow: 0 0 0 1px #3b5bab; cursor: pointer; }
  .age-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #3b5bab; border: 2px solid var(--surface); cursor: pointer; }
  .age-ticks { display: grid; grid-template-columns: repeat(9, 1fr); font-size: 11.5px; color: var(--text-muted); text-align: center; margin: 0 -9px; }
  .age-ticks button { background: none; border: 0; padding: 2px 0; font: inherit; color: inherit; cursor: pointer; }
  .age-ticks button.on { color: #3b5bab; font-weight: 700; }
  .age-ticks button.zero { font-weight: 700; color: var(--text); }
  .age-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-faint); margin-top: 2px; }
  /* Make it and Make all 8 side by side, the same size */
  .age-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .age-buttons .run-row { margin-top: 0; }   /* the wrapper every submit button gets */
  .age-buttons .run-row > .btn-primary { width: 100%; }
  .age-buttons .btn-ghost { padding: 0 12px; font-size: 13.5px; border-radius: 9px; font-weight: 600; }
  .age-buttons .hint { grid-column: 1 / -1; }
  .age-buttons .hint:empty { display: none; }
  .age-years-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .age-years-head .link-btn { font-size: 12.5px; color: #3b5bab; }
  .age-years-head .link-btn:disabled { opacity: .45; cursor: not-allowed; }
  .age-guess { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-alt); font-size: 13px; }
  .age-guess b { color: #3b5bab; }
  .age-guess .hint { display: block; margin-top: 3px; }
  .age-ticks small { display: block; font-size: 10.5px; color: var(--text-faint); font-weight: 400; }
  .age-ticks button.too-young { opacity: .35; }
  #age-all:disabled { opacity: .5; cursor: not-allowed; }
  .age-note { font-size: 12px; color: var(--text-muted); margin: 14px 0 0; border-left: 3px solid #d4a72c; padding-left: 10px; }
  .age-off { margin: 0 0 12px; }
  .age-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .age-compare figure { margin: 0; }
  .age-compare figcaption { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); font-weight: 600; margin-bottom: 6px; }
  .age-compare img { width: 100%; border-radius: 10px; display: block; background: var(--surface-alt); }
  .age-compare .age-wait { aspect-ratio: 1; border-radius: 10px; background: var(--surface-alt); display: grid; place-items: center; color: var(--text-faint); font-size: 12.5px; text-align: center; padding: 10px; }
  .age-strip { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin-top: 8px; }
  .age-strip button { aspect-ratio: 1; border-radius: 7px; border: 1px solid var(--border); background: var(--surface-alt); padding: 0; position: relative; overflow: hidden; cursor: pointer; font-size: 10.5px; color: var(--text-muted); }
  .age-strip button img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .age-strip button span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(22,32,46,.6); color: #fff; font-weight: 600; padding: 1px 0; }
  .age-strip button:not(:has(img)) span { background: none; color: var(--text-muted); top: 50%; transform: translateY(-50%); bottom: auto; }
  .age-strip button.sel { outline: 2px solid #3b5bab; outline-offset: 1px; }
  .age-strip button.zero { border-style: dashed; }
  .age-strip button:disabled { cursor: default; }
  @media (max-width: 560px) { .age-strip { grid-template-columns: repeat(5, 1fr); } .age-ticks { font-size: 10.5px; } }
  .slider-val { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--text-muted); min-width: 34px; text-align: right; }

  .btn-primary {
    background: var(--accent); color: var(--accent-text-on); border: none; border-radius: 9px;
    padding: 11px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .btn-primary:hover:not(:disabled) { background: var(--accent-strong); }
  .btn-primary.picker-choose { width: 100%; margin: 8px 0 14px; padding: 9px 14px; background: transparent;
    border: 1.5px solid var(--accent); color: var(--accent-strong); }
  .btn-primary.picker-choose:hover:not(:disabled) { background: var(--accent-soft, rgba(79,189,174,.12)); }
  .btn-primary:disabled { opacity: .6; cursor: progress; }
  .btn-ghost {
    background: transparent; border: 1px solid var(--border-strong); color: var(--text);
    border-radius: 8px; padding: 7px 12px; font-size: 12.5px; font-weight: 500; cursor: pointer;
  }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
  .btn-ghost[aria-disabled="true"], .btn-ghost[aria-disabled="true"]:hover { opacity: .45; cursor: not-allowed; border-color: var(--border); color: var(--text-muted); }
  .transcript-summary { margin-top: 16px; }
  .btn-danger:hover { border-color: var(--error); color: var(--error); }
  .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

  .segmented { display: flex; gap: 4px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 8px; padding: 3px; }
  .segmented button {
    flex: 1; border: none; background: transparent; color: var(--text-muted);
    padding: 7px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 500; cursor: pointer;
  }
  .segmented button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

  .upload-well {
    border: 1.5px dashed var(--border-strong); border-radius: 10px; padding: 18px 14px;
    text-align: center; color: var(--text-faint); font-size: 12.5px; background: var(--surface-alt);
    cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px;
  }
  .upload-well b { color: var(--text-muted); font-weight: 500; }
  .ocr-text { width: 100%; min-height: 260px; font-family: inherit; font-size: 14px; line-height: 1.6; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); resize: vertical; }
  .pdf-badge { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 64px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; letter-spacing: .06em; }
  .char-count { display: block; text-align: right; margin-top: 4px; }
  .player-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .transport { display: inline-flex; }
  .transport .btn-ghost { border-radius: 0; margin-left: -1px; min-width: 40px; }
  .transport .btn-ghost:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
  .transport .btn-ghost:last-child { border-radius: 0 8px 8px 0; }
  .transport .btn-ghost:hover { position: relative; z-index: 1; }
  .transport .play-main { min-width: 88px; background: var(--accent); border-color: var(--accent); color: var(--accent-text-on); font-weight: 600; position: relative; z-index: 1; }
  .transport .play-main:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-text-on); }
  .result-footer-row { display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap; }
  .reading-footer-controls { display:flex;align-items:center;gap:10px;margin-left:auto;flex-wrap:wrap;justify-content:flex-end; }
  .reading-footer-controls .hint { margin:0; }
  .read-progress { height: 4px; border-radius: 2px; background: var(--border); margin: 12px 0; overflow: hidden; }
  .read-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
  .player-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
  .player-actions [data-needs] { margin-right: auto; }
  .read-view { max-height: 420px; overflow-y: auto; font-size: 15px; line-height: 1.75; padding: 4px 2px; }
  .read-break { display: block; height: 12px; }
  .read-piece { cursor: pointer; border-radius: 4px; transition: background .2s; }
  .read-piece:hover { background: var(--surface-alt); }
  .read-piece.done { color: var(--text-muted); }
  .read-piece.reading { background: var(--accent-soft); color: var(--accent-strong); }
  .record-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px dashed var(--border); border-radius: 10px; }
  #s2t-preview, #sst-preview, #spi-preview { width: 100%; }
  /* Translate speech: what was heard, above the spoken translation */
  .sst-heard { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--border); background: var(--bg); border-radius: 6px; }
  .sst-heard .hint { display: block; margin-bottom: 4px; }
  .sst-heard p { margin: 0; white-space: pre-wrap; }
  .sst-said { display: block; margin: 0 0 6px; }
  .upload-well.dragover { border-color: var(--accent); background: var(--accent-soft); }
  .upload-well img { max-width: 100%; max-height: 180px; border-radius: 8px; }

  .gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 7px;
    max-height: 240px; overflow-y: auto; padding: 2px;
  }
  .gallery-grid.large { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: none; gap: 12px; }
  .thumb {
    aspect-ratio: 1; border-radius: 7px; border: 2px solid transparent; cursor: pointer;
    position: relative; overflow: hidden; background: var(--surface-alt); padding: 0;
  }
  .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .thumb.selected { border-color: var(--accent); }
  .thumb.selected::after {
    content: "✓"; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--accent); color: var(--accent-text-on); font-size: 10px; display: grid; place-items: center; font-weight: 700;
  }
  .gallery-card { display: flex; flex-direction: column; gap: 6px; position: relative; }
  /* My images: a tick box to pick several, a bin to delete one */
  .gallery-card .pick, .gallery-card .bin { position: absolute; top: 6px; z-index: 1; width: 26px; height: 26px; border-radius: 7px;
    display: grid; place-items: center; background: rgba(15, 20, 30, .55); color: #fff; border: 0; cursor: pointer; opacity: 0; transition: opacity .12s; }
  .gallery-card .pick { left: 6px; }
  .gallery-card .bin { right: 6px; }
  .gallery-card .pick input { width: 15px; height: 15px; margin: 0; cursor: pointer; accent-color: var(--accent); }
  .gallery-card .bin svg { width: 14px; height: 14px; }
  .gallery-card:hover .pick, .gallery-card:hover .bin, .gallery-card:focus-within .pick, .gallery-card:focus-within .bin,
  .gallery-grid.selecting .pick, .gallery-card.picked .pick { opacity: 1; }
  @media (hover: none) { .gallery-card .pick, .gallery-card .bin { opacity: 1; } }
  .gallery-card.picked .thumb { border-color: var(--accent); }
  .gallery-all { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-left: auto; cursor: pointer; }
  .gallery-selbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin: 10px 0 12px; border-radius: 10px; background: var(--accent-soft); font-size: 13px; }
  .gallery-selbar[hidden] { display: none; }
  .gallery-selbar span { font-weight: 600; color: var(--accent-strong); margin-right: auto; }
  /* "Open in…": a short list of services to choose from */
  .open-in-box { background: var(--surface); border-radius: 14px; padding: 18px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; }
  .open-in-box .hint { margin: 0; overflow-wrap: anywhere; }
  .open-in-list { display: flex; flex-direction: column; gap: 8px; }
  .open-in-list .oi-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface-alt); color: var(--text); box-sizing: border-box; }
  .open-in-list .oi-row:hover { border-color: var(--accent); }
  /* the whole row is the button; a fix link (Request it, Book a session) sits on top of it */
  .open-in-list .oi-main { position: absolute; inset: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; padding: 0; }
  .open-in-list .oi-main:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .open-in-list .oi-why { flex: 0 1 auto; text-align: right; font-size: 12px; line-height: 1.35; color: #a32020; }
  .open-in-list .oi-name { display: flex; align-items: center; gap: 8px; }
  .open-in-list .oi-name b { display: inline; }
  .open-in-list .oi-fix { position: relative; z-index: 1; margin-left: 6px; padding: 0; min-height: 0; height: auto; border: 0; background: none; font-size: 12px; line-height: inherit; vertical-align: baseline; }
  .open-in-list b { display: block; font-size: 13.5px; }
  .open-in-list .oi-text { flex: 1; min-width: 0; }
  .open-in-list .oi-line { display: flex; align-items: center; gap: 10px; }
  .open-in-list .oi-line > :first-child { flex: 1; min-width: 0; }
  /* Ready only when it can run now; Not ready, with the reason (and a fix where there is one) on the hint's line */
  .oi-pill { flex: none; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 8px; white-space: nowrap; }
  .oi-pill.ok { background: #e3f6ea; color: #17703d; } .oi-pill.bad { background: #fde8e8; color: #a32020; }
  .wf-why { display: flex; flex-direction: column; gap: 8px; }
  .open-in-list small { color: var(--text-muted); font-size: 12px; }
  /* Workflow: "Open in…" with a step in between (no service takes the item directly) */
  .wf-title { display: flex; align-items: center; gap: 14px; }
  .wf-title .vb-back { margin-left: auto; flex: none; }
  .wf-steps { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr; }
  .wf-arrow { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 20px; }
  .wf-step { display: flex; flex-direction: column; gap: 10px; min-height: 300px; min-width: 0; }
  .wf-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-alt); font-size: 12px; font-weight: 700; margin-right: 8px; }
  .wf-step.done .wf-num { background: #1f9d55; color: #fff; }
  .wf-step.wait { opacity: .6; }
  .wf-status { font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 8px; align-self: flex-start; }
  .wf-status.ok { background: #e3f6ea; color: #17703d; } .wf-status.run { background: #e7effc; color: #2557a7; }
  .wf-status.wait { background: var(--surface-alt); color: var(--text-muted); } .wf-status.bad { background: #fde8e8; color: #a32020; }
  .wf-box { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; background: var(--surface-alt); max-height: 180px; overflow-y: auto; overflow-wrap: anywhere; white-space: pre-wrap; }
  .wf-thumb { max-width: 100%; max-height: 140px; border-radius: 10px; align-self: flex-start; }
  .wf-step .grow { flex: 1; }
  .wf-step textarea { width: 100%; min-height: 110px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13.5px; box-sizing: border-box; background: var(--surface); color: var(--text); resize: vertical; }
  @media (max-width: 760px) {
    .wf-title { flex-wrap: wrap; } .wf-title .vb-back { margin-left: 0; }
    .wf-steps { grid-template-columns: 1fr; } .wf-arrow { transform: rotate(90deg); height: 28px; }
    .wf-step { min-height: 0; }
  }
  .open-in-list .oi-group { margin: 6px 2px 0; font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .open-in-box .actions { justify-content: flex-end; }
  /* the viewer: one image, large */
  .viewer { position: fixed; inset: 0; z-index: 50; background: rgba(10, 14, 22, .72); display: grid; place-items: center; padding: 20px; }
  .viewer[hidden] { display: none; }
  .viewer-box { background: var(--surface); border-radius: 14px; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; max-width: min(1100px, 100%); max-height: calc(100vh - 40px); }
  .viewer-img { display: grid; place-items: center; min-height: 0; }
  .viewer-img img { max-width: 100%; max-height: calc(100vh - 72px); border-radius: 10px; display: block; }
  .viewer-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .viewer-prompt { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; max-height: 40vh; overflow: auto; }
  .viewer-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
  @media (max-width: 760px) { .viewer-box { grid-template-columns: minmax(0, 1fr); overflow: auto; } .viewer-img img { max-height: 60vh; } }
  .gallery-card .meta { font-size: 11.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .status {
    display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
    white-space: nowrap; background: var(--surface-alt); color: var(--text-muted); border: 1px solid var(--border);
  }
  .status.approved { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }
  /* Online now / Offline now next to a service in My services and the picker: for information only */
  .run-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
  .run-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1f9c5a; }
  .run-pill.down::before { background: #d64545; }   /* offline: red, as in the menu */
  .run-pill[hidden] { display: none; }
  .run-pill.run-dot { gap: 0; margin-right: -2px; }   /* just the dot, in front of the name */
  .run-pill.soon::before { background: #9aa3ad; }   /* not offered yet: the legend's grey */
  /* My services: the button under each service you can ask for (blue, like the menu's
     not-requested dot); once sent it turns yellow, like the pending dot */
  .req-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
  .req-btn { padding: 5px 12px; border-radius: 999px; border: 1px solid #2f7fd6; background: #2f7fd6; color: #fff;
    font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
  button.req-btn:hover:not(:disabled) { background: #2369b8; border-color: #2369b8; }
  .req-btn:disabled { opacity: .7; cursor: default; }
  .rec-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .settings-grid > .i2i-change-field { grid-column: span 2; }
  .i2i-find { display: flex; gap: 8px; }
  .i2i-find input { flex: 1; min-width: 0; }
  /* a one-line note under a setting that's there even when empty, so a note appearing moves nothing */
  .setting-note { display: block; min-height: 22px; padding: 2px 8px; margin-left: -8px; border: 1px solid transparent; border-radius: 8px; font-size: 11.5px; line-height: 1.35; color: var(--text-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .setting-note.bw { background: #fff6d6; border-color: #e8c95a; color: #5a4500; margin-left: 0; }
  #i2i-change.unused button { opacity: .45; }
  /* Just one thing: the photo to mark, in the input's middle row */
  .mark-stage { grid-row: 3; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
  .mark-stage[hidden] { display: none; }
  .svc-input.marking .in-body { display: none; }
  .mark-head { display: flex; gap: 8px; align-items: baseline; font-size: 13px; min-width: 0; }
  .mark-head .link-btn { flex: none; white-space: nowrap; }
  .mark-head .mark-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .mark-pic { position: relative; flex: 1; min-height: 0; max-width: 100%; align-self: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); line-height: 0; background: var(--surface-alt); }
  .mark-pic img, .mark-pic canvas { width: 100%; height: 100%; display: block; }
  .mark-pic canvas { position: absolute; inset: 0; opacity: .5; touch-action: none; cursor: crosshair; }
  .mark-tools { display: flex; gap: 8px; align-items: center; font-size: 13px; white-space: nowrap; }
  .mark-tools .segmented { flex: none; }
  .mark-tools .segmented button { padding: 3px 8px; white-space: nowrap; }
  .mark-tools input[type=range] { width: 56px; min-width: 40px; flex: 1 1 56px; }
  @media (max-width: 760px) { .settings-grid > .i2i-change-field { grid-column: auto; } }
  .levels-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .levels-table th, .levels-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--border); }
  .levels-table thead th { border-top: 0; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
  .levels-table tbody th { font-weight: 600; white-space: nowrap; }
  .levels-table .lv-none { color: var(--text-faint); }
  .lv-needs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
  .lv-machine { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--surface-alt); color: var(--text-muted); border: 1px solid var(--border); }
  .lv-machine.session { background: #e8f1fc; color: #1f5fa8; border-color: #a9c9ef; }
  .medal.off { color: var(--text-muted); background: var(--surface-alt); border-color: var(--border); }
  .levels-wrap { margin-top: 10px; overflow-x: auto; }
  .level-line { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin: 10px 0 0; }
  .medal { flex: none; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
  .medal.gold { color: #8a6400; background: #fff6d6; border-color: #e8c55a; }
  .medal.silver { color: #4f5b6b; background: #eef1f5; border-color: #b9c2ce; }
  .medal.bronze { color: #8a4b1f; background: #fbeee4; border-color: #d9a27a; }
  .model-told { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
  .model-told summary { cursor: pointer; }
  .model-told p { margin: 6px 0 0; }
  /* Summarize: the chosen document as one line, and the Choose a document list */
  .src-pick.three button { flex: 1; }
  .sum-count { display: block; text-align: right; margin-top: 3px; }
  .sum-chosen { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-alt); }
  .sum-chosen .n { font-weight: 600; overflow-wrap: anywhere; }
  .sum-chosen .s { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; margin-top: 2px; font-size: 12px; color: var(--text-faint); }
  .sum-chosen .s .acts { display: flex; gap: 6px; align-items: baseline; }
  .sum-chosen .link-btn, .doc-pick-row .link-btn { font-size: 12.5px; }
  .sum-choose { width: 100%; }
  .doc-pick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: calc(min(70vh, 640px) - 120px); }
  .doc-pick-row { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--surface-alt); border: 1px solid transparent; font-size: 13px; cursor: pointer; }
  .doc-pick-row:hover { border-color: var(--border); }
  .doc-pick-row.picked { border: 2px solid var(--accent); padding: 7px 9px; }
  .doc-pick-row .nm { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .doc-pick-row .w { flex: none; font-size: 11.5px; color: var(--text-faint); }
  .doc-pick-row.off { opacity: .55; cursor: default; }
  @media (max-width: 560px) { .doc-pick-row { flex-wrap: wrap; } .doc-pick-row .w { flex-basis: 100%; padding-left: 22px; } }
  .doc-chosen { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-alt); }
  .doc-chosen-icon { font-size: 22px; flex: none; }
  .doc-chosen-text { flex: 1; min-width: 0; }
  .doc-chosen-name { font-weight: 600; overflow-wrap: anywhere; }   /* long names wrap instead of stretching the page */
  .doc-chosen .btn-ghost { flex: none; }
  .doc-dialog { width: min(720px, calc(100vw - 32px)); max-height: min(70vh, 640px); padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); }
  .doc-dialog::backdrop { background: rgba(10, 20, 30, .35); }
  .doc-dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .doc-dialog input[type=search] { width: 100%; margin-bottom: 10px; }
  .doc-dialog-list { display: grid; gap: 6px; overflow-y: auto; max-height: calc(min(70vh, 640px) - 120px); }
  .doc-row-pick { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
  .doc-row-pick:hover:not(:disabled) { border-color: var(--accent); }
  .doc-row-pick.picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
  .doc-row-pick:disabled { cursor: default; opacity: .6; }
  .doc-pick-name { font-weight: 600; overflow-wrap: anywhere; }
  .doc-pick-status { font-size: 12px; font-weight: 600; white-space: nowrap; }
  .doc-pick-status.ok { color: #1f8a50; } .doc-pick-status.wait { color: #a06a00; } .doc-pick-status.bad { color: var(--error); }
  .doc-row-pick .hint { grid-column: 1 / -1; }
  .persona-maker { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); display: grid; gap: 10px; }
  .persona-maker .actions { display: flex; gap: 8px; justify-content: flex-end; }
  .persona-draft { display: grid; gap: 10px; }
  .req-btn.done { background: #fdf2dc; border-color: #e0a800; color: #8a5a00; }
  button.req-btn.done:hover:not(:disabled) { background: #f8e3b4; border-color: #c99700; }
  /* one button, one state: blue Request, yellow Withdraw (pending), green Unsubscribe (approved); red while confirming */
  .req-btn.on { background: #e3f4ea; border-color: #1f9c5a; color: #146b3d; }
  button.req-btn.on:hover:not(:disabled) { background: #cdebd9; border-color: #17804a; }
  .req-btn.on.confirm, button.req-btn.on.confirm:hover:not(:disabled) { background: var(--error); border-color: var(--error); color: #fff; }
  .req-msg { font-size: 12.5px; font-weight: 600; color: var(--error); }
  /* Request again's "why" box and Review's reply box, under the description */
  .req-note { width: 100%; margin-top: 8px; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 8px;
    background: var(--surface); color: var(--text); resize: vertical; box-sizing: border-box; }
  .req-note:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
  .reply-actions { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
  .reply-send { padding: 4px 12px; font-size: 12.5px; }
  .your-reply { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 8px 12px; border-left: 3px solid #2f7fd6; background: var(--surface-alt);
    border-radius: 6px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .your-reply b { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
  .reply-box .link-btn { margin-top: 4px; font-size: 12.5px; }
  .service-row > .req-actions { flex-direction: column; }
  .req-cancel { font-size: 12.5px; }
  /* My services: the text on the left, the button in a column of its own on the right
     (all buttons line up); on a phone the button goes under the text */
  .service-row > .req-actions { flex: 0 0 196px; align-self: center; margin-top: 0; }
  .service-row > .req-actions .req-btn { width: 100%; text-align: center; }
  @media (max-width: 600px) {
    .service-row:has(> .req-actions) { flex-wrap: wrap; }
    .service-row > .req-actions { flex-basis: 100%; }
    .service-row > .req-actions .req-btn { width: auto; }
  }
  .service-row.just-changed { animation: row-changed 1.6s ease-out; }
  .service-row.just-changed .status { animation: status-pop .45s ease-out; }
  .locked-msg { border-radius: 6px; }
  /* highlight() in 01-core.js: the one light-up, the same yellow and 2.4 s everywhere; it plays once */
  .hl-words { animation: hl-words 2.4s ease-out; border-radius: 6px; }   /* words: a rounded band round them */
  .hl-field { animation: hl-field 2.4s ease-out; }   /* a box you type in: inside the box only, nothing round it */
  @keyframes hl-words { 0%, 25% { background: var(--yellow-bg-strong); box-shadow: 0 0 0 6px var(--yellow-bg-strong); color: var(--text); }
                        100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
  @keyframes hl-field { 0%, 25% { background: var(--yellow-bg-strong); } }
  @media (prefers-reduced-motion: reduce) { .hl-words, .hl-field { animation-duration: .01s; } }
  @keyframes row-changed { from { background: color-mix(in srgb, var(--accent) 16%, transparent); } to { background: transparent; } }
  @keyframes status-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
  @media (prefers-reduced-motion: reduce) { .service-row.just-changed, .service-row.just-changed .status { animation: none; } }
  .req-btn.always { background: #146b3d; border-color: #146b3d; color: #fff; cursor: default; }
  .req-btn.soon, .req-btn.soon:disabled { background: var(--surface-alt); border-color: var(--border); color: var(--text-muted); opacity: 1; }
  .status.new { background: #e3eefb; color: #1f5fa8; border-color: transparent; }
  .status.soon { background: var(--surface-alt); color: var(--text-muted); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status.new { background: #16304f; color: #9cc7f5; } }
  :root[data-theme="dark"] .status.new { background: #16304f; color: #9cc7f5; }
  .status.pending { background: #fdf2dc; color: #8a5a00; border-color: transparent; }
  .status.review { background: #fdf2dc; color: #8a5a00; border-color: #e7c36a; }
  .admin-note { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 9px 12px; border: 1px solid #e7c36a; border-left-width: 4px;
    background: #fff6de; border-radius: 8px; font-size: 13.5px; line-height: 1.45; color: #3d2a00; font-weight: 500; }
  .admin-note b { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a5a00; }
  .admin-note b::before { content: "✉ "; }
  .locked-panel .admin-note { margin: 0; }
  .locked-panel .locked-msg { margin: 0; color: var(--text-muted); line-height: 1.6; }
  .locked-panel .locked-row { width: 100%; text-align: left; }
  .locked-panel .locked-row .title > span:not(.status):not(.run-pill) { font-size: 18px; font-weight: 600; }
  .locked-panel .locked-links { display: flex; gap: 18px; flex-wrap: wrap; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .admin-note { background: #3a2c0c; border-color: #8a6a12; color: #fbe6b0; } :root:not([data-theme="light"]) .admin-note b { color: #f3c56b; } }
  :root[data-theme="dark"] .admin-note { background: #3a2c0c; border-color: #8a6a12; color: #fbe6b0; } :root[data-theme="dark"] .admin-note b { color: #f3c56b; }
  .status.rejected { background: var(--error-soft); color: var(--error); border-color: transparent; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status.pending, :root:not([data-theme="light"]) .status.review { background: #3a2c0c; color: #f3c56b; } }
  :root[data-theme="dark"] .status.pending, :root[data-theme="dark"] .status.review { background: #3a2c0c; color: #f3c56b; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status-pill.pending { background: #3a2c0c; color: #f3c56b; border-color: #6b5320; } :root:not([data-theme="light"]) .status-pill.rejected { background: #3b1717; color: #f3a3a3; border-color: #6d2a2a; } }
  :root[data-theme="dark"] .status-pill.pending { background: #3a2c0c; color: #f3c56b; border-color: #6b5320; } :root[data-theme="dark"] .status-pill.rejected { background: #3b1717; color: #f3a3a3; border-color: #6d2a2a; }
  .service-list { display: flex; flex-direction: column; gap: 10px; }
  .service-row {
    display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border);
    border-radius: 10px; background: var(--surface);
  }
  .service-row.selectable { cursor: pointer; }
  .service-row.selectable:hover { border-color: var(--accent); }
  .service-row input[type=checkbox] { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
  .service-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .service-row .title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 500; }
  .service-row .desc { font-size: 12.5px; color: var(--text-muted); }
  .service-group-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); font-weight: 600; margin-top: 6px; }
  .onboard-card {
    width: 100%; max-width: 620px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 28px; display: flex; flex-direction: column; gap: 16px;
  }
  .onboard-card h1 { font-size: 21px; }
  .onboard-card p { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.55; }
  .link-btn { background: none; border: none; color: var(--accent-strong); cursor: pointer; font-size: 13px; padding: 0; text-decoration: underline; }
  .onboard-view { display: flex; justify-content: center; }
  #login-view, #signup-view, #verify-view, #pick-view, #confirm-view, #tour-view { display: block; }
  .page .signup-layout { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }   /* the form column on the right */
  .page #pick-view .onboard-card, .page #confirm-view .onboard-card, .page #tour-view .onboard-card { max-width: none; }

  /* sign in / sign up: the studio's name across the top, then the form
     and a same-height box of sample services side by side */
  .signup-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 540px); gap: 20px; align-items: stretch; width: 100%; max-width: 940px; }
  .login-card h2 { font-size: 18px; }
  .signup-layout .login-card { max-width: none; }
  /* compact service tiles: icon and name; the full line on hover */
  .showcase .tile-grid { gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase .tile { flex-direction: row; align-items: center; gap: 8px; padding: 7px 10px; }
  .showcase .tile b { display: none; }
  .showcase .tile small { font-size: 12.5px; font-weight: 500; color: var(--text); line-height: 1.3; }
  .showcase .tile.soon small { color: var(--text-muted); }
  .showcase .showcase-soon, .showcase .showcase-now, .showcase .biz-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
  .showcase .showcase-now { margin-bottom: 14px; }   /* one line of room under the last row, as the cards beside it (owner 2026-11-04) */
  .showcase .svc-chip > span, .showcase .soon-chip > span { line-height: 1.15; }   /* two lines fit within the 24px icon */
  .svc-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; line-height: 1.2; color: var(--text); min-width: 0; }
  .svc-chip .incl-mark { white-space: nowrap; }
  .soon-chip.wide { grid-column: span 2; }
  /* a status dot beside each service, as in the menu once signed in (from /status, every minute) */
  .showcase .sc-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; margin-right: -2px; }
  .showcase .sc-dot.unknown { visibility: hidden; }
  .showcase .showcase-now-label { display: flex; align-items: center; gap: 10px; }
  .showcase-legend { display: inline-flex; gap: 12px; margin-left: auto; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-faint); white-space: nowrap; }
  .showcase-legend span { display: inline-flex; align-items: center; gap: 5px; }
  .showcase-legend .sc-dot { margin-right: 0; }
  .showcase-legend[hidden] { display: none; }
  .biz-labels { align-items: center; } .biz-labels > span:first-child { display: inline-flex; align-items: center; gap: 6px; }   /* 2.80.24: Commercial applications, Available now | Coming soon, each with its dot */
  .showcase-legend.biz-soon { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; } .showcase-legend.biz-soon span { gap: 6px; }
  .soon-chip.biz-live { text-decoration: none; color: var(--text); } .soon-chip.biz-live:hover span:last-child, .soon-chip.biz-live:focus-visible span:last-child { text-decoration: underline; }   /* ai-recruit: opens in a new tab */
  .showcase-legend .legend-tick b, .notice-read .try-tick { font-weight: 800; color: var(--accent-strong); }   /* the chips' ✓: try it here, no sign-in; the notice points at it */
  .svc-chip .cap-icon, .soon-chip .cap-icon { width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0; }
  .svc-chip .cap-icon svg { width: 11px; height: 11px; }
  .svc-chip .incl-mark { font-weight: 800; color: var(--accent-strong); }
  .svc-chip .incl-note { display: block; font-weight: 400; font-size: 11px; color: var(--text-muted); white-space: nowrap; }   /* one line: "(login for Sum 1 Pro)" fits the box at every width */
  .svc-chip > span { min-width: 0; }
  /* A ticked chip can be tried here, no sign-in: the whole chip opens it. The highlight sits
     behind it (padding and a matching negative margin), so nothing around it moves. */
  .svc-chip.try { cursor: pointer; border-radius: 8px; padding: 4px 6px; margin: -4px -6px; transition: background-color .15s ease, box-shadow .15s ease; }
  .svc-chip.try:hover, .svc-chip.try:focus-visible { background: var(--accent-soft); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); outline: none; }
  .svc-chip.try:hover .incl-mark, .svc-chip.try:focus-visible .incl-mark { text-decoration: underline; text-underline-offset: 2px; }
  .svc-chip.try.here { background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }   /* the one being tried */
  /* A visitor trying a service: Back above its page (the sign-in page comes back) */
  .visitor-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 12px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
  .visitor-bar[hidden] { display: none; }
  #app-view .showcase { margin-bottom: 16px; }
  /* Why sign in? under the service a visitor is trying: white like the panels, down to the grey box's foot */
  .page.visitor #app-view > main { display: flex; flex-direction: column; }
  .why-signin { flex: 1; margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
  .why-signin[hidden] { display: none; }
  .why-signin .ws-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
  .why-signin h3 { margin: 0; font-size: 16px; white-space: nowrap; }
  .why-signin ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
  .why-signin li { font-size: 13px; line-height: 1.45; color: var(--text-muted); padding-left: 18px; position: relative; }
  .why-signin li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-strong); font-weight: 800; }
  .why-signin li b { color: var(--text); font-weight: 600; }
  /* the sign-in page's Sign in button */
  .why-signin .ws-signin { flex-shrink: 0; padding: 10px 28px; border: 0; border-radius: 10px; background: #3b5bab; color: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer; }
  .why-signin .ws-signin:hover { background: #2f4a8f; }   /* one column: the tiles above the service being tried */
  .visitor-bar .vb-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .visitor-bar .vb-words b { font-size: 15px; }
  .visitor-bar .vb-words span { font-size: 12.5px; color: var(--text-muted); }
  /* Back: on the right, in the Sign in button's blue */
  .visitor-bar .vb-back, #about-back { margin-left: auto; flex-shrink: 0; padding: 10px 18px; border: 0; border-radius: 10px; background: #3b5bab; color: #fff; font-weight: 600; font-size: 14px; line-height: normal; cursor: pointer; }
  .visitor-bar .vb-back:hover, #about-back:hover { background: #2f4a8f; }
  .visitor-bar .vb-back:focus-visible, #about-back:focus-visible { outline: 2px solid #3b5bab; outline-offset: 2px; }
  @media (max-width: 560px) { .visitor-bar { flex-wrap: wrap; } .visitor-bar .vb-back { margin-left: 0; width: 100%; } }   /* phones: the button under the words, full width */
  @media (max-width: 560px) { .panel-title:has(> #about-back) { flex-wrap: wrap; row-gap: 10px; } #about-back { margin-left: 0; width: 100%; } }   /* the home lab's Back too */
  .soon-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text); }   /* full colour: the Coming soon group says it */
  .soon-chip .cap-icon { width: 24px; height: 24px; border-radius: 6px; }
  .soon-chip .cap-icon svg { width: 11px; height: 11px; }
  .showcase .tile .cap-icon { width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0; }
  .showcase .tile .cap-icon svg { width: 13px; height: 13px; }
  .showcase .tile .status { margin-left: auto; font-size: 10px; padding: 1px 6px; }
  /* How it's built: the platform from the machines up, on the sign-in pages */
  .pmap { --m-a: #7c5cff; --m-b: #1f8fe0; --m-s: #19a974; --m-i: #f08a24; --m-c: #8a94a6;
          margin: calc(16px + var(--sec-extra, 0px)) 0 0; }   /* no box of its own: the layers are the boxes */
  .pmap h3 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
  .pmap .sub { margin: 0 0 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; color: var(--text-faint); }   /* under the heading, how to read the layers: styled as FRONT STAGE in the drawing */
  .pmap-layer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 4px; padding: 6px 9px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); margin-top: calc(4px + var(--layer-extra, 0px)); margin-inline: -10px; }   /* the boxes reach out by their padding, so the words line up with the column's */
  .pmap.compact .pmap-name { font-size: 9.5px; margin-bottom: 0; }   /* still on its own line: only the sizes shrink */
  .pmap.compact .pmap-layer { padding: 4px 6px; margin-inline: -7px; margin-top: calc(3px + var(--layer-extra, 0px)); gap: 2px 3px; }
  .pmap.compact .pmap-chip { font-size: 10.5px; padding: 1px 5px; }
  .pmap.compact .pmap-flow { font-size: 11px; gap: 1px 4px; }
  .pmap.compact .sub { font-size: 10px; }
  .pmap-name { flex-basis: 100%; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; margin-bottom: 1px; }   /* each layer's name on its own line */
  .pmap-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; line-height: 1.25; padding: 2px 7px; border-radius: 6px; background: var(--surface-alt); color: var(--text); white-space: nowrap; }
  .pmap-chip i { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--dot); }
  .pmap-chip small { color: var(--text-muted); font-size: 10px; }
  .pmap-row { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: inherit; }   /* the Windows stack: a line of its own */
  .pmap-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12px; font-weight: 600; color: var(--text); }
  .pmap-flow b { color: var(--text-faint); font-weight: 400; }
  .pmap-flow abbr { text-decoration: none; cursor: help; }
  .pmap-layer.hw .pmap-chip { background: color-mix(in srgb, var(--dot, var(--m-c)) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--dot, var(--m-c)) 45%, transparent); }
  .pmap-arrow { display: block; text-align: center; font-size: 11px; line-height: 1; color: var(--text-faint); margin: 3px 0; }
  .showcase-quote { margin: 0; }
  .showcase-quote p { margin: 0; padding-left: 12px; border-left: 3px solid var(--logo-yellow, #FFE600); font-family: "Sora", sans-serif; font-style: italic; font-size: 13px; line-height: 1.4; color: var(--text); }
  .showcase-quote .by { font-style: normal; font-size: .92em; font-weight: 600; color: #3b5bab; white-space: nowrap; }   /* the name in the site's blue */
  :root[data-theme="dark"] .showcase-quote .by { color: #9db8f2; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .showcase-quote .by { color: #9db8f2; } }
  .showcase-quote .by::before { content: "— "; }
  .showcase-quote a { color: var(--accent-strong); font-weight: 600; }
  /* The sign-in pages, three columns: the visitor's column on the left
     (.lobby-left: video, what you can do, AI trends, get in touch),
     the system in the middle (.lobby-mid, which sets the page's height) and
     the form with About this project under it on the right. About scrolls
     inside its box and AI trends shows as many headlines as fit, so all
     three end on the middle column's line (Lobby.fit). */
  .page .signup-layout { grid-template-columns: minmax(0, 1fr) 350px; grid-template-rows: auto auto auto 1fr; align-items: start; }
  .signup-layout > .lobby-center { grid-column: 1; grid-row: 1 / span 4; }
  #intro-card, #ask-guest { flex-shrink: 0; }
  .lobby-center { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  /* the sign-in pages: 16px between rows in every column, so the second row's three boxes start on one line */
  #login-view .signup-layout, #signup-view .signup-layout, #verify-view .signup-layout, #link-view .signup-layout { row-gap: 16px; }
  /* Ask Sum 1 (AskGuest): the banner's green, from its left end (the sign-in form beside it takes the blue) */
  .ask-guest { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 16px; padding: 16px 16px 14px; display: flex; flex-direction: column; min-width: 0; box-sizing: border-box; }
  .ask-guest .ag-head { display: flex; align-items: center; gap: 9px; }
  .ask-guest .ag-av { background: linear-gradient(135deg, #0f6e5a, #1f8f8a); color: #fff; overflow: hidden; }
  .ask-guest .ag-av.photo { background: none; border-radius: 50%; }   /* Sumesh's picture, round */
  .ask-guest .ag-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ask-guest h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ask-guest h2 small { font-family: "IBM Plex Sans", sans-serif; font-weight: 500; font-size: 12px; color: var(--text-muted); margin-left: 4px; }
  .ask-guest .ag-tag { display: inline-block; margin-left: 3px; font-family: "IBM Plex Sans", sans-serif; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px; padding: 1px 6px; vertical-align: 2px; }
  .ask-guest .ag-sub { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
  .ask-guest .ag-body { flex: 1; display: flex; flex-direction: column; margin-top: 10px; min-height: 0; }
  .ask-guest .ag-row { display: flex; gap: 6px; margin-top: 10px; }   /* under the answer */
  .ask-guest .ag-row input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface-alt); color: var(--text); }
  .ask-guest .ag-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
  .ask-guest .ag-send { background: var(--accent); color: var(--accent-text-on); border: 1px solid var(--accent); border-radius: 9px; padding: 6px 15px; font-weight: 600; font-size: 13px; cursor: pointer; flex-shrink: 0; }
  .ask-guest .ag-send:hover:not(:disabled) { background: var(--accent-strong); border-color: var(--accent-strong); }
  .ask-guest .ag-send:disabled { opacity: .6; cursor: progress; }
  .ask-guest .ag-clear { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border-strong); border-radius: 9px; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; flex-shrink: 0; }
  .ask-guest .ag-clear:hover:not(:disabled) { color: var(--text); border-color: var(--text-muted); }
  .ask-guest .ag-clear:disabled { opacity: .6; cursor: default; }
  .ask-guest.resting .ag-send:disabled, .ask-guest.resting input:disabled { cursor: default; }
  /* the answer fills the row's height but never sets it (flex-basis 0): a long answer scrolls inside */
  .ask-guest .ag-answer { flex: 1 1 0px; min-height: 92px; margin-top: 0; overflow-y: auto; border-radius: 10px; background: var(--surface); border: 1px solid var(--accent); padding: 10px 12px; font-size: 13px; line-height: 1.55; color: var(--text); }
  .ask-guest .ag-answer p { margin: 0 0 6px; white-space: pre-wrap; }
  .ask-guest .ag-answer .ag-q { font-weight: 600; color: var(--accent-strong); }
  .ask-guest .ag-answer .ag-empty { color: var(--text-faint); font-style: italic; }
  .ask-guest .ag-answer .ag-err { color: var(--error); }
  .ask-guest .ag-count { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; line-height: 1.25; color: var(--text-faint); margin: 0 0 4px; }   /* above the answer, level with the sign-in box's Email (in the room the answer is moved down by) */
  .ask-guest .ag-count a { color: var(--accent-strong); font-weight: 600; }
  .ask-guest .ag-count #ask-guest-limit { margin-left: auto; }   /* the count on the right, also while the LinkedIn line is hidden (2.80.9) */
  .ask-guest .ag-connect { font-size: 12.5px; font-weight: 500; color: var(--text-muted); }   /* as the sign-in box's Email label and the intro's line (2.80.9) */
  .ask-guest .ag-foot { margin-top: 10px; border-top: 1px solid var(--border); }   /* the line level with the sign-in box's "or" line (its count and LinkedIn moved up above the answer) */
  .ask-guest .ag-sub { margin-top: 6px; padding-bottom: 27px; }   /* the count and LinkedIn moved up above the answer: the text sits under the line, and the room their line had goes between it and the link, so nothing else moves */
  @media (max-width: 560px) { .ask-guest h2 { white-space: normal; } .ask-guest .ag-head { align-items: flex-start; } .ask-guest .ag-answer { min-height: 223px; } .ask-guest .ag-count { flex-wrap: wrap; column-gap: 8px; row-gap: 2px; } .ask-guest .ag-count > span { white-space: nowrap; } .ask-guest .ag-sub { padding-bottom: 0; } .ask-guest .ag-answer { min-height: 235px; } }   /* phones: the title may take two lines; the count and LinkedIn on a line each */
  .signup-layout > #quote-card { grid-column: 2; grid-row: 4; }
  .signup-layout > .login-card { grid-column: 2; grid-row: 1; }
  .signup-layout > .notice-body { grid-column: 2; grid-row: 2; position: static; overflow-y: auto; scrollbar-gutter: stable; }
  .signup-layout > #project-card { grid-column: 2; grid-row: 2; }
  .signup-layout > #comments-card { grid-column: 2; grid-row: 3; }
  /* The project: About the project (scrolls) and Latest user comments, in one white box */
  .comments-part { display: contents; }   /* its parts stay the card's own rows */
  #comments-card[hidden] { display: none; }
  .project-card { scroll-margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; }
  .project-card .project-label { margin: 0 0 6px; }
  .project-card .project-label + #project-about { margin-top: 0; }
  .project-card .project-scroll { text-transform: none; letter-spacing: 0; font-weight: 400; }
  #project-card .notice-body { border: 0; border-radius: 0; padding: 0 4px 0 0; background: none; position: static; overflow-y: auto; scrollbar-gutter: stable; }
  #project-card .notice-body .notice-heading { display: none; }   /* "About the project" above says it */
  .project-card #project-about + .project-label { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
  :is(#project-card, #comments-card) #comment-label { border-top: 0; padding-top: 0; margin-top: 12px; margin-bottom: 12px; padding-bottom: 5px; border-bottom: 1px solid var(--ui-blue); color: var(--ui-blue); }
  :is(#project-card, #comments-card) .comments-label { border-top: 0; padding-top: 0; padding-bottom: 5px; border-bottom: 1px solid var(--ui-blue); color: var(--ui-blue); margin-bottom: 8px; }
  #comment-label, :is(#project-card, #comments-card) .comments-label { display: flex; align-items: center; gap: 6px; }
  #comment-label svg, :is(#project-card, #comments-card) .comments-label svg { width: 13px; height: 13px; flex-shrink: 0; }
  .project-more-row { min-height: 22px; display: flex; align-items: center; justify-content: flex-end; padding-top: 4px; }
  .project-more { font-size: 12.5px; font-weight: 600; color: var(--ui-blue); padding: 0; }
  #project-card .notice-body { scroll-behavior: smooth; padding-top: 6px; }
  @media (prefers-reduced-motion: reduce) { #project-card .notice-body { scroll-behavior: auto; } }
  .comment-form { display: flex; flex-direction: column; gap: 6px; }
  .comment-form textarea, .comment-form input { font: inherit; font-size: 12.5px; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface-alt); color: var(--text); min-width: 0; box-sizing: border-box; }
  .comment-form textarea { resize: vertical; min-height: 54px; line-height: 1.45; }
  .comment-count { font-size: 11px; color: var(--text-faint); text-align: right; margin-top: -2px; }
  .comment-count.amber { color: #a86a00; }
  .comment-form textarea:focus, .comment-form input:focus { outline: 2px solid #d4a72c; outline-offset: 1px; }
  .comment-row { display: flex; gap: 6px; }
  .comment-row input { flex: 1 1 0; }
  .comment-send { background: #d4a72c; color: #241a00; border: 1px solid #d4a72c; border-radius: 9px; padding: 6px 14px; font-weight: 600; font-size: 12.5px; cursor: pointer; flex-shrink: 0; }
  .comment-send:hover:not(:disabled) { background: #c09422; border-color: #c09422; }
  .comment-send:disabled { opacity: .6; cursor: progress; }
  /* Post (comments) and Send (Suggestion box): in the blue column, the Sign in button's blue */
  #comment-send, #suggest-send { background: #3b5bab; border-color: #3b5bab; color: #fff; }
  #comment-send:hover:not(:disabled), #suggest-send:hover:not(:disabled) { background: #324e94; border-color: #324e94; }
  /* Message Admin: conversations on the left, the open one on the right (phones: stacked) */
  .msg-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .msg-intro { margin: 4px 0 0; font-size: 13px; }
  .msg-top-actions { display: flex; gap: 8px; flex-shrink: 0; }
  .msg-top-actions button { white-space: nowrap; padding: 10px 16px; font-size: 13.5px; line-height: 1.2; margin: 0; border: 1px solid transparent; }
  .msg-top-actions .btn-ghost { border-color: var(--border-strong); }
  /* one height for both sides: the subjects and the messages scroll inside it, the reply box stays in view */
  .msg-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 14px; margin-top: 14px; height: clamp(420px, calc(100vh - 300px), 680px); }
  .msg-list { list-style: none; margin: 0; padding: 0 4px 0 0; display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
  .msg-list li { flex-shrink: 0; }
  .msg-list li { border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; background: var(--surface-alt); cursor: pointer; min-width: 0; }
  .msg-list li.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
  .msg-list li.unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d93025; margin-right: 6px; vertical-align: 1px; }
  .msg-list b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .msg-list li:not(.unread) b { font-weight: 500; }
  .msg-list span { display: block; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
  .msg-list small { display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 3px; }
  .msg-list .none { cursor: default; color: var(--text-muted); font-size: 13px; background: none; border-style: dashed; }
  .msg-view { min-width: 0; min-height: 0; border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; overflow-y: auto; }
  .msg-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .msg-thread[hidden], .msg-compose[hidden] { display: none; }
  .msg-empty { color: var(--text-muted); font-size: 13.5px; margin: 0; }
  .msg-thread-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; min-width: 0; }
  .msg-delete { margin-left: auto; font-size: 12.5px; color: var(--error); white-space: nowrap; }
  .msg-tag { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
  .msg-bubbles { flex: 1; min-height: 120px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding-right: 4px; scrollbar-gutter: stable; }
  .msg-bubble { flex-shrink: 0; }
  .msg-bubble { max-width: 85%; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-alt); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.55; }
  .msg-bubble.user { align-self: flex-end; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
  .msg-bubble small { display: block; font-size: 11.5px; color: var(--text-muted); margin-bottom: 3px; }
  .msg-reply { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }   /* a line between the conversation and your reply */
  .msg-reply textarea, .msg-compose textarea { width: 100%; box-sizing: border-box; }
  .msg-reply textarea, .msg-compose textarea, .msg-compose input[type=text] { background: var(--surface); }   /* what you write: white (grey is the admin's) */
  .msg-compose .field + .field { margin-top: 16px; }   /* a line's gap above Message */
  .msg-compose .message-actions { margin-top: 8px; } .msg-reply .message-actions { margin-top: 2px; }   /* 8px above the buttons in both (the reply's column adds 6) */
  .msg-view .actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
  .msg-view .actions .run-row { margin-top: 0; }   /* the Stop wrapper every submit button gets: no gap above Send */
  .msg-view .actions button { padding: 10px 18px; font-size: 13.5px; line-height: 1.2; margin: 0; border: 1px solid transparent; }
  .msg-view .actions .btn-ghost { border-color: var(--border-strong); }   /* Cancel as tall as Send */
  .msg-reply .msg-chars { margin-right: auto; }
  .msg-chars { font-size: 12px; }
  @media (max-width: 760px) { .msg-layout { grid-template-columns: minmax(0, 1fr); height: auto; } .msg-list { max-height: 240px; } .msg-bubbles { max-height: 55vh; } .msg-top { flex-direction: column; } }
  /* the Suggestion box, above the comments in Suggestions and comments */
  .suggest-part { display: flex; flex-direction: column; }
  #comments-card #suggest-label { margin-top: 14px; }
  .suggest-file-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); min-width: 0; }
  .suggest-attach { padding: 5px 10px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
  .suggest-file-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .suggest-visit { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; }
  .suggest-visit small { font-size: 11px; }
  .suggest-visit a { color: inherit; }
  .comment-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
  .comment-msg { margin: 0; font-size: 12px; line-height: 1.4; min-height: 2.8em; display: flex; align-items: center; color: var(--text-muted); }   /* two lines held from the start: the reply appears without moving anything */
  .comment-closed { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); font-style: italic; }
  .comment-msg.err { color: var(--error); }
  .comment-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .comment-list li { font-size: 12.5px; line-height: 1.45; color: var(--text); padding: 7px 10px; border-radius: 9px; background: var(--surface-alt); }
  .comment-reactions { display: flex; align-items: center; flex-shrink: 0; gap: 4px; margin-left: auto; }
  .comment-reactions button { border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-muted); padding: 0 5px; font-size: 10.5px; line-height: 1.5; cursor: pointer; }
  .comment-reactions button[aria-pressed="true"] { border-color: var(--ui-blue); background: var(--tabs-bg); color: var(--ui-blue); }
  .comment-reactions button:disabled { opacity: .6; cursor: wait; }
  .comment-reaction-error { display: block; color: var(--error); font-size: 11.5px; margin-top: 4px; }
  .comment-list .q { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
  .comment-list .by { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 10.5px; line-height: 1.5; color: var(--text-faint); }
  .comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-width: 0; text-align: left; }
  .comment-meta > span { overflow-wrap: anywhere; }
  .comment-meta .mood { flex-shrink: 0; }
  .comment-list .mood { font-size: 10.5px; font-weight: 600; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, #9aa3b2 18%, transparent); color: var(--text-muted); }
  .comment-list .mood.positive { background: color-mix(in srgb, #1f9c5a 16%, transparent); color: #187a47; }
  .comment-list .mood.negative { background: color-mix(in srgb, #b0605c 11%, transparent); color: #9a5551; }   /* muted: only shown when the admin chooses to */
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .comment-list .mood.negative { color: #d9a3a0; } }
  :root[data-theme="dark"] .comment-list .mood.negative { color: #d9a3a0; }
  .comment-list .empty { background: none; padding: 0; color: var(--text-faint); font-style: italic; }
  /* Stay signed in: shown in the last 5 minutes of a sign-in */
  .renew-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; width: min(460px, calc(100vw - 32px));
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 12px;
    background: var(--surface); color: var(--text); border: 1px solid #d4a72c; box-shadow: 0 8px 28px rgba(10, 20, 30, .22); font-size: 13px; }
  .renew-bar[hidden] { display: none; }
  .renew-bar p { margin: 0; flex: 1 1 220px; }
  .renew-bar b { font-variant-numeric: tabular-nums; }
  .renew-bar .renew-actions { display: flex; gap: 8px; }
  .renew-bar .comment-send { padding: 6px 12px; }
  .comment-all { align-self: flex-end; text-align: right; flex-shrink: 0; margin-top: 16px; font-size: 12.5px; font-weight: 600; text-decoration: none; }
  .comment-all, .comments-dialog .link-btn { color: #3b5bab; }   /* the blue of the sign-in column's links */
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .comment-all, :root:not([data-theme="light"]) .comments-dialog .link-btn { color: #9db8f2; } }
  :root[data-theme="dark"] .comment-all, :root[data-theme="dark"] .comments-dialog .link-btn { color: #9db8f2; }
  .comment-all:hover { text-decoration: underline; }
  .comments-dialog .comment-list { margin: 0; overflow-y: auto; max-height: calc(min(70vh, 640px) - 70px); padding-right: 4px; }
  .comments-dialog .comment-list .empty { text-align: center; padding: 6px 0; }
  /* Name, Email and the button on one row everywhere (phones too): the sign-in column is as narrow on a computer */
  .lobby-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .lobby-left > .trends-card { flex: 1 0 auto; }
  .lobby-mid { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 14px; min-width: 0; }
  .lobby-mid .pmap { margin-top: 12px; }
  /* The sign-in page's middle column: the application view, then the infrastructure view, then the network view */
  #lobby-mid > .pmap, #lobby-mid > #sys-title { margin-top: 26px; }
  #stack-title, #pmap-title, #sys-title, #biz-title, #showcase-title, #project-title, #trends-title, #comments-title { color: var(--text); }   /* the three views and the headings beside them in the first two rows: darker than the other headings */
  .legend-section-head h3:has(.view-phrase) { white-space: normal; }   /* a view's heading may wrap on a phone */
  /* Application view: what each band gives the one above (here and on the home lab page) */
  .stk-lede { margin: 2px 0 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; color: var(--text-faint); }   /* as the infrastructure view's line under its heading */
  .stk-band { margin-top: 8px; }
  .stk-band.bucket { border: 1.4px dashed var(--text-faint); border-radius: 12px; padding: 6px 8px 8px; }   /* the business apps, the shared core and the models each in a bucket, as the Kubernetes cluster in the network view */
  .stk-tag { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--text-faint); text-transform: uppercase; margin: 0 0 4px 1px; }
  .stk-grid { display: flex; flex-wrap: wrap; gap: 6px; }   /* each box as wide as its words, filling the line */
  .stk-grid > .stk-box { flex: 1 1 auto; }
  .stk-app .stk-grid { display: grid; grid-template-columns: 1fr 1fr; }   /* ai-studio, and the next app beside it */
  .stk-box { border: 1.2px solid var(--border-strong); background: var(--surface); border-radius: 8px; padding: 5px 8px; min-width: 0; }
  .stk-box b { display: block; font-family: "Sora", sans-serif; font-weight: 600; font-size: 12px; color: var(--text); }
  .stk-box span { display: block; font-size: 11px; line-height: 1.3; color: var(--text-muted); margin-top: 1px; }
  .stk-app  .stk-box { background: color-mix(in srgb, #19a974 9%, var(--surface)); border-color: color-mix(in srgb, #19a974 45%, transparent); }   /* the colours of the network view's boxes */
  .stk-app  .stk-box.new { background: color-mix(in srgb, #7c5cff 9%, var(--surface)); border-style: dashed; border-color: color-mix(in srgb, #7c5cff 55%, transparent); }   /* the app still to come: dashed, in the change agents' purple */
  .stk-app  .stk-box.new span { font-style: italic; color: var(--text); }
  .stk-core .stk-box { background: color-mix(in srgb, #1f8fe0 8%, var(--surface)); border-color: color-mix(in srgb, #1f8fe0 50%, transparent); }
  .stk-mod  .stk-box { background: color-mix(in srgb, #d6409f 7%, var(--surface)); border-color: color-mix(in srgb, #d6409f 42%, transparent); }
  .stk-orch .stk-box { background: color-mix(in srgb, #f08a24 10%, var(--surface)); border-color: color-mix(in srgb, #f08a24 60%, transparent); }
  .stk-infra .stk-box { background: var(--surface-alt); border-color: var(--text-muted); }
  .stk-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 12px; color: var(--text); }   /* one line: what it is, and a link to its view */
  .stk-row + .stk-row { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--border); }
  .stk-row a { margin-left: auto; white-space: nowrap; font-size: 12px; color: var(--accent-strong); font-weight: 600; text-decoration: none; }   /* at the right of its line */
  .stk-row a:hover { text-decoration: underline; }
  /* The infrastructure view's bands, each outlined in its own colour (the UI filled, as the client in the network view) */
  .pmap-layer.ui { background: color-mix(in srgb, #0aa3c2 12%, var(--surface)); border-color: color-mix(in srgb, #0891b2 55%, transparent); }   /* cyan (owner 2026-11-04): not the highlight's yellow */
  .pmap-layer.svc    { border-color: color-mix(in srgb, #d6409f 50%, transparent); }   /* pink */
  .pmap-layer.run    { border-color: color-mix(in srgb, #7c5cff 55%, transparent); }   /* violet */
  .pmap-layer.models { border-color: color-mix(in srgb, #1f8fe0 55%, transparent); }   /* blue */
  .pmap-layer.plat   { border-color: color-mix(in srgb, #e5484d 55%, transparent); }   /* red */
  .pmap-layer.orch   { border-color: var(--text-muted); }                               /* slate */
  .pmap-layer.os     { border-color: color-mix(in srgb, #f08a24 60%, transparent); }   /* orange */
  .pmap-layer.hw     { border-color: color-mix(in srgb, #19a974 55%, transparent); }   /* green */
  .lobby-mid .pmap-layer { margin-inline: 0; }
  .lobby-mid .pmap-layer.hw { gap: 4px 3px; }
  .lobby-mid .pmap-layer.hw .pmap-chip { padding: 2px 5px; }   /* the GPUs on one line, the rest of the machines on the next */
  #lobby-mid:not(.placed), #lobby-center:not(.placed) { display: none; }
  /* one heading style for every section on these pages (the form keeps its own) */
  .lobby-h, .page:not(.in-studio) .notice-body .notice-heading { margin: 0 0 8px; font-family: "Sora", sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
  .page:not(.in-studio) .notice-body.scrolls .notice-heading::after { content: "Scroll to read it all"; display: block; margin-top: 2px; font-family: "IBM Plex Sans", sans-serif; font-size: 11.5px; font-weight: 400; color: var(--text-faint); }
  .quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
  .quote-card .showcase-quote { margin: 0; padding: 0; border: 0; }
  .soon-card p b { font-weight: 600; color: var(--text); }   /* Site timeline: the launch date */
  .soon-card p, .connect-card p, .quote-card .showcase-quote p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text); padding-left: 12px; border-left: 5px solid #d4a72c; }
  .connect-card a { color: #896100; font-weight: 600; }   /* LinkedIn: gold, like Find out more and the card's gold edge */
  :root[data-theme="dark"] .connect-card a { color: #edc85b; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .connect-card a { color: #edc85b; } }
  .page:not(.in-studio) .notice-body .notice-about { display: none; }   /* said in Get in touch */
  /* Narrow screens (the three columns would squeeze the drawing): one
     column, in reading order -- the form, About, the video, what you can do,
     AI trends, the thought, then the system (Lobby.arrange) */
  .page.lobby-stack:not(.in-studio) { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .page.lobby-stack:not(.in-studio) .frame-top { order: 1; }
  .page.lobby-stack:not(.in-studio) > .frame-left:not(.frame-top) { display: none; }
  .page.lobby-stack:not(.in-studio) .frame-main { order: 3; }
  .page.lobby-stack .signup-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 16px; }
  .page.lobby-stack .signup-layout > *, .page.lobby-stack .signup-layout > #quote-card, .page.lobby-stack .signup-layout > #project-card, .page.lobby-stack .signup-layout > #comments-card { grid-column: auto; grid-row: auto; }
  .page.lobby-stack .signup-layout > .notice-body, .page.lobby-stack #project-card .notice-body { max-height: 420px; }
  /* phones and narrow windows: one column, in this order -- the video, Ask Sum 1, the form, the services,
     the project, how the system is wired and stacked, AI trends, the comments (their own card here),
     Get in touch, the timeline, a parting thought.
     The centre column's box steps aside so its two cards (the drawings, the timeline) take their own places. */
  .page.lobby-stack .signup-layout > .lobby-center { display: contents; }
  .page.lobby-stack .signup-layout > #intro-card { order: 1; }
  .page.lobby-stack .signup-layout > #ask-guest { order: 2; }
  .page.lobby-stack .signup-layout > .login-card { order: 3; }
  .page.lobby-stack .signup-layout > #showcase { order: 4; }
  .page.lobby-stack .signup-layout > #project-card { order: 5; }
  .page.lobby-stack .signup-layout #lobby-mid { order: 6; }
  .page.lobby-stack .signup-layout > #trends-card { order: 7; }
  .page.lobby-stack .signup-layout > #comments-card { order: 8; }
  .page.lobby-stack .signup-layout > #connect-card { order: 9; }
  .page.lobby-stack .signup-layout #soon-card { order: 10; }
  .page.lobby-stack .signup-layout > #quote-card { order: 11; }
  .page.lobby-stack .sys-arch { overflow-x: auto; }   /* phones: the drawing keeps a readable size and scrolls sideways */
  .page.lobby-stack .sys-arch svg { min-width: 440px; }
  .trends-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; min-width: 0; }
  .trends-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
  .trends-head .lobby-h { margin: 0; }
  .lobby-h:not(#connect-title, #quote-title, #soon-title) { text-align: center; }   /* the landing page's column headings, centred in their boxes (not the three small cards': Get in touch, A parting thought, Site timeline) */
  .trends-head { justify-content: center; }
  .trends-list { list-style: none; margin: 0; padding: 0; }
  .trends-list li { padding: 8px 0; border-top: 1px solid var(--border); }
  .trends-list li:first-child { border-top: 0; padding-top: 2px; }
  .trends-list a { color: var(--text); text-decoration: none; font-size: 13px; line-height: 1.35; font-weight: 500;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .trends-list a:hover { color: var(--accent-strong); text-decoration: underline; }
  .trends-list .m { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
  .trends-card .trends-label { margin: 0 0 6px; }   /* as "Available now" in AI Studio services */
  .trends-list li.ph { display: flex; flex-direction: column; gap: 5px; padding: 10px 0; }
  .trends-list li.ph .bar { display: block; height: 9px; width: 100%; border-radius: 5px; background: var(--surface-alt); }
  .trends-list li.ph .bar.short { width: 62%; }
  .trends-list li.ph .bar.meta { width: 34%; height: 7px; margin-top: 2px; opacity: .8; }
  .intro-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; box-sizing: border-box;
    background: var(--surface); border: 1px solid var(--border); border-top: 4px solid #d4a72c; border-radius: 16px; padding: 16px 16px 14px; }
  .intro-card .intro-words { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-muted); }
  .intro-card .intro-words a { color: var(--accent-strong); font-weight: 600; }
  /* the top row's heading line, the same in all three: a 38px icon and the heading */
  .row1-head { display: flex; align-items: center; gap: 10px; min-height: 38px; margin: 0; min-width: 0; }
  .row1-head h2 { font-family: "Sora", sans-serif; font-size: 19px; line-height: 1.25; margin: 0; min-width: 0; }
  .row1-ico { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; }
  .row1-ico svg { width: 20px; height: 20px; }
  .intro-lead { margin: -3px 0 0; font-size: 12.5px; font-weight: 500; line-height: normal; color: var(--text-muted); }   /* as the sign-in box's Email label, at its height: 7px under the head (the card's gap is 10) (2.80.8) */
  /* rounded squares: the logo, Sum 1 in green, you in the form's blue */
  .row1-logo img { width: 100%; height: 100%; display: block; }
  .row1-user { background: linear-gradient(135deg, #3b5bab, #5a7cd0); color: #fff; }
  .intro-media { min-width: 0; }
  .intro-card video { width: 100%; aspect-ratio: 16 / 9; border-radius: 11px; background: #000; display: block; cursor: pointer;
    overflow: hidden; clip-path: inset(0 round 11px); }   /* Safari draws its controls' grey layer square: clip it to the rounded corners */
  /* full screen: none of the box's shaping, or Safari keeps the video small and clipped in place */
  .intro-card video:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; clip-path: none; overflow: visible; object-fit: contain; }
  .intro-card video:-webkit-full-screen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; clip-path: none; overflow: visible; object-fit: contain; }
  .intro-empty { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1.5px dashed var(--border-strong); border-radius: 11px; color: var(--text-muted); font-size: 13px; }
  .intro-empty svg { width: 34px; height: 34px; flex: none; color: var(--accent-strong); }
  .intro-empty b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
  .showcase {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  }
  .showcase .showcase-title, .showcase #biz-title { margin: 0 0 -2px; }   /* sits 12px above "Available now" (and Business applications above its Coming soon) */
  .showcase .biz-group + .showcase-title { margin-top: 12px; }   /* the second heading in the card, as the middle column's views (2.73.0) */
  /* The sign-in page's top row: each title 12px above its second line, and the third lines level
     (the first service, The client, the project's first words) */
  .page:not(.in-studio) #sys-title, .page:not(.in-studio) #project-title { margin-bottom: 12px; }
  .page:not(.in-studio) #stack-title + .stk-lede { margin-top: 12px; }   /* its small line level with Coming soon and About this AI project beside it (owner 2026-11-02): 12px under the heading, as theirs (the heading's 8px and this overlap) */
  .page:not(.in-studio) .lobby-mid .sys-arch { padding-top: 3px; }   /* FRONT STAGE and its first box, level with the other two (padding: a margin would merge with the title's) */
  .page:not(.in-studio) #project-card .service-group-label { margin-bottom: 6px; }
  .showcase p { margin: 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.55; }
  .tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
  @media (max-width: 520px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .tile {
    border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface-alt);
    display: flex; flex-direction: column; gap: 8px; min-width: 0;
  }
  .tile b { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--text); }
  .tile small { font-size: 11.5px; color: var(--text-faint); }
  .tile .status { align-self: flex-start; }
  .tile.soon { background: transparent; border-style: dashed; }
  .tile.soon .cap-icon { filter: grayscale(.6); opacity: .7; }
