/* Compact phone (#178, ADR 065). The owner, next to the Claude iOS app: "why so big … make it smaller and
   it will feel wider and longer, and more will fit." A hit target is not a visual size: every control is
   still tapped on at least --hit (44 px, non-negotiable 3), but drawn at --control (36 px) or smaller.
   The difference is a transparent ring (the border), so no pseudo-element or position change is needed:
   the tap area is the element's own box, the visible part is its padding box. A control drawn smaller
   than --control sets its own --ring (--hit-ring-sm draws 28 px).
   Everything here is phone-only (the laptop layout is unchanged) and reads the tokens in app.css :root,
   which the Talk composer's voice controls (#177) can use as well. */
@media (max-width:760px){
  :root{--text-body:15px;--leading-body:20px;--gap-message:10px;--pad-bubble:8px 12px;--leading-reading:22px;--gap-reply:24px;
    /* #182: the phone's scale for every other screen (app.css :root names the roles). */
    --text-display:22px;--leading-display:28px;--text-headline:18px;--leading-headline:24px;
    --text-title:17px;--leading-title:22px;--text-heading:15px;--leading-heading:20px;
    --text-secondary:13px;--leading-secondary:18px;--text-caption:12px;--leading-caption:16px;--text-micro:11px;--leading-micro:14px;
    --text-control:15px;--text-control-sm:14px;--leading-control:18px;
    --field-height:44px;--row-2:56px;
    --gutter:16px;--pad-card:12px;--pad-sheet:16px;--gap-list:8px;--gap-stack:8px;--gap-section:16px}

  /* The ring: drawn at --control (or --ring), tapped at --hit. */
  :is(.composer .attach-button,.composer button[type=submit],.composer .mic-button,.sheet-close,.care-sheet .remove-button,
    .quest-chip,.message-actions button,.inline-body button,.care-sheet .sheet-action,.devices-actions button,.care-sheet .account-reset,
    .quest-sheet .dialog-header .quiet,.look-switch button,.attachment-actions button){
    box-sizing:border-box;min-height:var(--hit);border:var(--ring,var(--hit-ring)) solid transparent!important;background-clip:padding-box!important}
  /* Round icon controls: a --control disc in a --hit box; the outline is an inset line inside the ring.
     The composer's + and mic are plain icons (no disc); Send stays the one filled button. */
  :is(.composer .attach-button,.composer button[type=submit],.composer .mic-button,.sheet-close,.care-sheet .remove-button){
    width:var(--hit);height:var(--hit);min-width:var(--hit);padding:0;margin:0;display:inline-grid;place-items:center}
  .sheet-close{box-shadow:inset 0 0 0 1px var(--stroke)}
  .composer .attach-button,.composer .mic-button{box-shadow:none;background:transparent}
  .composer .mic-button[data-state=listening]{background:rgba(102,226,240,.14);box-shadow:inset 0 0 0 1.5px var(--cyan)}
  .composer .mic-button[data-state=writing]{box-shadow:inset 0 0 0 1.5px var(--cyan)}
  .composer .mic-button[data-state=blocked]{box-shadow:inset 0 0 0 1px rgba(246,174,94,.6)}
  .care-sheet .remove-button{box-shadow:inset 0 0 0 1px rgba(255,120,146,.40)}
  .composer button[type=submit]{box-shadow:none}
  :is(.sheet-close,.care-sheet .remove-button) .icon{width:18px;height:18px}
  :is(.composer .attach-button,.composer .mic-button) .icon{width:23px;height:23px}
  .composer button[type=submit]::before{width:18px;height:18px}
  /* Text buttons: the pill is --control tall; its outline sits inside the ring. */
  :is(.message-actions button,.inline-body button,.care-sheet .sheet-action,.devices-actions button,.care-sheet .account-reset,.quest-sheet .dialog-header .quiet,.attachment-actions button){
    padding:0 12px;font-size:14px;line-height:18px}
  :is(.message-actions .quiet,.inline-body .quiet,.care-sheet .sheet-action,.devices-actions button,.quest-sheet .dialog-header .quiet,.attachment-actions .quiet){box-shadow:inset 0 0 0 1px var(--stroke)}
  .care-sheet .account-reset{box-shadow:inset 0 0 0 1px rgba(255,120,146,.45)}
  .quest-chip{--ring:calc((var(--hit) - 32px) / 2);padding:0 12px;font-size:14px;box-shadow:inset 0 0 0 1px var(--stroke)}
  .quest-chip[aria-pressed=true]{box-shadow:inset 0 0 0 1.5px var(--violet)}
  .look-switch{padding:0;gap:0}
  .look-switch button{width:var(--hit);min-width:var(--hit);padding:0}

  /* Talk: the owner's bubbles use the width, text is 15 px on 20 px lines (Ari's plain replies on 22 px
     reading lines, #215), less air between messages. Ari's face is in the header. */
  .conversation{padding:8px 12px 6px}
  .message{font-size:var(--text-body);line-height:var(--leading-body);margin-bottom:var(--gap-message)}
  .message>*{max-width:100%}
  .message.user>*{max-width:86%}
  .message>.markdown{padding:var(--pad-bubble);border-radius:16px}
  .message.user>.markdown{border-radius:16px 16px 5px 16px}
  .message.system{font-size:13px;line-height:18px}
  /* Day pills and times come from app.css (#181, #215); the phone only tightens the pill's room. */
  .has-day{padding-top:36px}
  .reply-meta>.message-time{font-size:var(--text-micro);line-height:var(--leading-micro)}
  /* The speaker pulls in only as far as the conversation's 12 px inset, so its 44 px ring stays on the
     screen (#218); its icon sits 2 px inside the words' edge. */
  .reply-meta>.speak-button{margin-left:-12px}
  .message-actions{gap:4px;margin-top:4px}
  /* A failed or stopped reply: one unboxed row, the state and two 28 px chips. */
  .message.note{flex-direction:row;flex-wrap:wrap;align-items:center;gap:0 8px;min-height:40px}
  .message.note>.markdown{background:transparent;border:0;padding:0;gap:6px;align-items:center;font-size:14px;line-height:18px}
  .message.note>.markdown::before{width:14px;height:14px;margin:0}
  .message.note>.message-actions{margin:-2px 0;gap:2px}
  .message.note .message-actions button{--ring:var(--hit-ring-sm);padding:0 10px;font-size:13px;line-height:16px;display:inline-flex;align-items:center;gap:4px}
  .retry-button .icon,.report-button .icon{display:block;width:14px;height:14px}
  /* "Report ›": the button's name stays View report; the shorter word is drawn, not read twice. */
  /* One line on every note (#189): the word and › side by side, never the › on a line of its own. */
  .message .message-actions button.report-button{font-size:0;padding-right:6px;display:inline-flex;align-items:center;gap:2px;white-space:nowrap}
  .message-actions .report-button::before{content:"Report";content:"Report" / "";font-size:13px}
  .inline-row{margin:0 0 var(--gap-message)}
  .inline-summary{min-height:var(--hit);gap:10px;padding:4px 10px}
  .inline-icon{width:26px;height:26px}
  .inline-body{padding:0 10px 8px 46px}
  /* A file: at most 160 px of picture (a tap opens it whole), then one line, name · size, and ⤓. */
  .attachment{max-width:240px}
  /* A file's name is the point of its card (Office files carry long names, #113): the card takes the column. */
  .attachment-file{max-width:100%}
  .attachment img{max-height:160px;max-width:100%}
  .attachment-detail{display:flex;align-items:center;gap:0;min-height:36px;padding:0 0 0 12px}
  .attachment-detail strong{flex:0 1 auto;min-width:0;font-size:13px;line-height:18px}
  .attachment-detail .fine{flex:none;line-height:18px}
  .attachment-detail .fine{font-size:0;line-height:0;white-space:nowrap}
  .attachment-detail .fine::before{content:"· " attr(data-size);content:"· " attr(data-size) / "";display:block;margin-left:5px;font-size:13px;line-height:18px}
  .attachment-detail .attachment-actions{flex:none;margin:-4px 0 -4px auto}
  :is(.attachment,.reader) .attachment-actions :is(.download-action,.read-action,.reader-mode){--ring:var(--hit-ring-sm);width:var(--hit);padding:0;display:inline-grid;place-items:center;border-radius:50%;height:var(--hit);font-size:0;line-height:0}
  .attachment-actions :is(.download-action,.read-action)::before{width:15px;height:15px;margin:0}
  /* A page is opened, not read: its word stays (the glyph alone is the same as Download's weight) */
  .attachment .attachment-actions .read-action[data-kind=page]{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-height:var(--hit);padding:0 14px;border-radius:999px;font-size:14px;line-height:1;white-space:nowrap}
  .attachment .attachment-actions .read-action[data-kind=page]::before{flex:none;margin:0}
  .reader.is-page{--sheet-pad:12px}
  .reader{--sheet-pad:16px;max-height:92dvh}
  .reader-head h3{font-size:18px;line-height:24px}

  /* Talk's header and composer: slim bars, a back arrow only (its name is Home). The field is 16 px
     (smaller zooms on iOS) on a --composer-control line. */
  .talk-header{min-height:calc(var(--hit) + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0 0;gap:4px}
  .talk-back,.back-button{min-height:var(--hit);min-width:var(--hit);margin-left:0;padding:0;justify-content:center}
  .talk-back>span,.back-button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .creature-mini{width:28px;height:28px}
  .talk-title{font-size:16px;line-height:19px;font-weight:600}
  .talk-status{margin:0;font-size:12px;line-height:15px}
  .composer{margin:0 8px max(8px,env(safe-area-inset-bottom));padding:0 2px;border-radius:24px}
  .composer-row{gap:0}
  .composer textarea{min-height:var(--composer-control);margin:var(--hit-ring) 2px;padding:7px 12px;border-radius:18px;font-size:16px;line-height:20px}
  /* At 200 % zoom (a ~195 px wide page) the field takes its own line above the buttons. */
  @media (max-width:300px){.composer-row{flex-wrap:wrap}.composer textarea{order:-1;flex:1 0 100%}.composer .mic-button{margin-left:auto}}

  /* The app header and the tab bar. */
  header{min-height:44px;padding:0 0 4px}
  .header-title h2,.shell[data-screen=chat] .header-title h2,.shell[data-screen=system] .header-title h2{font-size:17px}
  .sidebar,.nav-collapsed .sidebar{padding:3px;border-radius:24px;margin:0 10px max(8px,env(safe-area-inset-bottom))}
  .nav,.nav-collapsed .nav{min-height:var(--hit);padding:5px 2px 4px;gap:1px;border-radius:20px}
  .nav .icon{width:21px;height:21px}
  .nav span.nav-label,.nav-collapsed .nav-label{font-size:11px;line-height:13px}
  .nav.active::after,.nav.parent-active::after{display:none}  /* the lit icon and label say it; a dot would sit on the label */

  /* Home: a smaller greeting, and the quest and buttons sized like the rest. */
  .home-greeting{font-size:26px;line-height:30px}
  .state-chip{min-height:32px;padding:4px 12px;gap:8px;font-size:14px}
  .home-actions{gap:10px}
  .quest-card{padding:10px 12px;gap:12px}
  .quest-thumb{width:48px;height:48px;border-radius:14px}
  .quest-thumb .icon{width:22px;height:22px}
  .quest-title{font-size:var(--text-heading);line-height:var(--leading-heading)}
  .home-ask{gap:10px}
  .talk-button,.quest-button{min-height:var(--hit);font-size:16px;gap:8px}
  .talk-button .icon,.quest-button .icon{width:19px;height:19px}
  .info-card{min-height:60px;padding:10px 12px;gap:12px}
  .info-icon{width:36px;height:36px}

  /* Quests: a row is 56 px, the title, then one line, state and time, with the stones small on its right. */
  .quests-summary{font-size:15px}
  /* All five chips are on the screen at once (#747): the row wraps where they do not fit in one (a 390 px phone with
     the state dots, 320 px, Russian or Ukrainian words) instead of scrolling them past the edge. The rings meet. */
  .quest-chips{gap:0 4px;flex-wrap:wrap;overflow:visible;-webkit-mask-image:none;mask-image:none;animation:none}
  .chip-count{min-width:18px;height:18px;padding:0 5px;margin-right:-4px;font-size:11px}
  @media (max-width:400px){.quest-chip{padding:0 10px;gap:6px}}
  .work-row{box-sizing:border-box;min-height:56px;padding:8px 12px 8px 14px;gap:0 10px;align-items:center}
  .work-row-main{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:center}
  .work-row-main>*{grid-column:1/-1}
  .work-title{font-size:15px;line-height:20px;margin:0 0 1px}
  .work-row-main>.work-meta{grid-column:1;grid-row:2;flex-wrap:nowrap;gap:0 10px;font-size:13px;line-height:18px;white-space:nowrap;overflow:hidden}
  .work-row-main>.quest-stones{grid-column:2;grid-row:2;margin:0;gap:3px}
  .work-row .stone{flex:none;width:6px;height:6px;max-width:6px}
  /* Light: the 13 px state words (cyan, amber) sit on an opaque row, so they keep 4.5:1 or more. */
  :root[data-theme=light] .work-row{background:var(--surface)}
  @media (prefers-color-scheme:light){:root:not([data-theme]) .work-row{background:var(--surface)}}
  /* Search is a 36 px field on a 44 px target; More filters is the icon at its end. */
  .work-search{flex-wrap:nowrap;margin:0 0 8px}
  .work-search input{box-sizing:border-box;height:var(--hit);min-height:var(--hit);border:var(--hit-ring) solid transparent!important;background-clip:padding-box;box-shadow:inset 0 0 0 1px var(--stroke);padding:0 40px 0 14px;font-size:16px}
  .work-search #work-reset{box-sizing:border-box;width:76px;min-height:var(--hit);padding:0;border:var(--hit-ring) solid transparent!important;background-clip:padding-box;box-shadow:inset 0 0 0 1px var(--stroke);font-size:14px}
  .work-filters{position:relative;border-bottom:0}
  .work-filters>summary{position:absolute;right:0;top:calc(-1 * (var(--hit) + 8px));width:var(--hit);height:var(--hit);min-height:0;padding:0;display:grid;place-items:center;list-style:none;color:var(--text-2)}
  .work-filters>summary::-webkit-details-marker{display:none}
  .work-filters>summary::marker{content:""}
  .work-filters[open]>summary{color:var(--violet)}
  .quests-board:has(#work-reset:not([hidden])) .work-filters>summary{right:84px}
  .filter-icon{display:block;width:20px;height:20px}
  .filter-word{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

  /* Home & care, its sheets and the ⓘ sheet. */
  .care-list{gap:8px}
  .care-banner{min-height:52px;padding:6px 12px}
  .care-avatar{width:34px;height:34px}
  .care-avatar .icon{width:18px;height:18px}
  .care-list .care-row,.care-group>.care-row,.care-split-open{min-height:var(--hit);padding:5px 10px}
  .care-icon{width:28px;height:28px;border-radius:9px}
  .care-icon .icon{width:16px;height:16px}
  .care-row-label{font-size:15px}
  .sheet-head{min-height:48px;padding:6px 4px 4px 16px}
  .sheet-title{font-size:18px;line-height:22px}
  .care-sheet .list-row-main,.care-sheet .device-row .list-row-main{min-height:var(--hit);padding:4px 10px}
  .list-row-name{font-size:14px}
  .list-row-sub{font-size:12px}
  .info-sheet{padding:12px 14px 16px}
  .info-sheet .dialog-header h3{font-size:17px;padding-top:9px}
  .info-sheet-text{font-size:15px;line-height:1.45}
  .quest-sheet .dialog-header h3{font-size:19px;line-height:24px}
  .quest-sheet #report-content{gap:12px;margin-top:12px}
  /* Energy sheet: a smaller portrait and provider rows; the Default choice is a --control pill on a --hit row. */
  .engine-room{padding:12px 14px}
  .engine-head{gap:12px}
  .engine-head .creature-portrait{width:52px;height:52px}
  .engine-title{font-size:20px;line-height:26px}
  .engine-body{gap:12px;margin-top:12px}
  .engine-main{gap:10px}
  .engine-row{min-height:var(--hit);padding:4px 12px;gap:10px}
  .engine-mark{width:30px;height:30px}
  .engine-row-name{font-size:15px}
  .engine-room .engine-choice{padding-top:0}
  .segmented{padding:0;gap:0}
  .segmented button{--ring:var(--hit-ring-chip);min-height:var(--hit);padding:0 10px;border:var(--ring) solid transparent!important;background-clip:padding-box!important;border-radius:10px}

  /* ---- #182: every other screen, from the same scale (ADR 067). ---- */

  /* Buttons by kind, all tapped on --hit. A filled button draws --control-lg (40), a pill --control
     (36), a chip --control-chip (32). Outlines are inset lines inside the ring. A full-width button
     that stands alone (Sign in, Save key, Allow, Sign out) is a plain --hit bar: no ring needed. */
  :is(.actions>button,.quest-actions button,.key-actions button,.key-confirm button,.note-actions button,.entity-actions button,
    .dialog-header>button.quiet:not(.icon-button,.info-btn),.work-pagination button,.work-error button,.question-card button:not(.info-btn),.question-link,
    .puzzle-done button,.small-action,.see-quests,.world-backfill button,.wait-action,.live-action,.quests-energy button,.quests-board>button,
    .unpause-button,.signout-actions button,.choice,.signin-card button,.signin-open-link,.setup-key button,.connection-actions button,
    .sheet-view>button.quiet,.memory-form button,.login-row button,.talk-button,.quest-button,.update-prompt button,.jump-latest,.lanes-step){
    box-sizing:border-box;min-height:var(--hit);border:var(--ring,var(--hit-ring)) solid transparent!important;background-clip:padding-box!important}
  :is(.actions>button:not(.quiet),.unpause-button,.signout-actions button,.choice,.signin-card button:not(.signin-copy,.signin-later),
    .signin-open-link,.memory-form button,.login-row button,.talk-button,.quest-button){--ring:var(--hit-ring-lg);padding:0 16px;font-size:var(--text-control);line-height:var(--leading-control)}
  :is(.actions>button.quiet,.quest-actions button,.key-actions button,.key-confirm button,.note-actions button,.entity-actions button,
    .dialog-header>button.quiet:not(.icon-button,.info-btn),.work-pagination button,.work-error button,.question-card button:not(.info-btn),.question-link,
    .puzzle-done button,.small-action,.see-quests,.world-backfill button,.wait-action,.live-action,.quests-board>button,.signin-card .signin-copy,
    .setup-key button,.connection-actions button,.sheet-view>button.quiet){padding:0 12px;font-size:var(--text-control-sm);line-height:var(--leading-control)}
  :is(.quests-energy button,.update-prompt button,.jump-latest){--ring:var(--hit-ring-chip);padding:0 12px;font-size:13px;line-height:var(--leading-control)}
  .lanes-step{width:var(--hit);padding:0;border-radius:50%}
  :is(.actions,.quest-actions,.key-actions,.key-confirm,.note-actions,.entity-actions,.question-choices,.puzzle-choices,.signout-actions,.login-row,.devices-actions){gap:0 4px}
  /* The outline of an outlined button, inside its ring. */
  :is(.actions>button,.quest-actions button,.key-actions button,.key-confirm button,.note-actions button,.entity-actions button,.dialog-header>button,
    .work-pagination button,.work-error button,.puzzle-done button,.small-action,.see-quests,.world-backfill button,.wait-action,.live-action,
    .quests-energy button,.quests-board>button,.update-prompt button,.setup-key button,.connection-actions button,.sheet-view>button,.lanes-step,.question-write).quiet{box-shadow:inset 0 0 0 1px var(--stroke)}
  :is(.key-actions,.key-confirm) .danger{box-shadow:inset 0 0 0 1px rgba(255,120,146,.45)}
  .question-choice{box-shadow:inset 0 0 0 1.5px var(--violet)}
  .question-choice.recommended{background:var(--violet);color:var(--on-accent)}
  .question-write[aria-expanded=true]{box-shadow:inset 0 0 0 1.5px var(--violet)}
  .question-link{box-shadow:inset 0 0 0 1.5px var(--bubble-stroke)}
  .choice{box-shadow:inset 0 0 0 1px var(--stroke);font-weight:560}
  .puzzle-choices.stacked .choice{padding:4px 14px;border-radius:14px}
  .talk-button{box-shadow:inset 0 0 0 1.5px rgba(102,160,255,.55)}
  .quest-button{box-shadow:inset 0 0 0 1.5px var(--amber)}
  .signin-open{box-shadow:inset 0 0 0 1.5px var(--amber)}
  .signout-confirm{box-shadow:inset 0 0 0 1.5px var(--rose)}
  .signin-card .signin-copy{box-shadow:inset 0 0 0 1.5px var(--violet);border-radius:12px}
  .signin-quiet{box-shadow:inset 0 0 0 1px var(--stroke)}
  .jump-latest{box-shadow:inset 0 0 0 1px var(--stroke);right:10px}
  .unpause-button{box-shadow:none}
  .update-prompt{gap:6px;padding:0 0 0 12px;font-size:var(--text-secondary);line-height:var(--leading-secondary)}
  .update-prompt>.icon{width:14px;height:14px}
  /* Stand-alone full-width buttons: one --hit bar. */
  :is(.login-card button[type=submit],#key-save,.sheet-signout,.see-all){min-height:var(--hit);padding:0 16px;font-size:var(--text-control);line-height:var(--leading-control)}

  /* Fields: 44 px (--field-height) at 16 px, so iOS never zooms; a box of three lines to write in. */
  input:where(:not([type=checkbox],[type=radio],[type=range])),select{min-height:var(--field-height);padding:0 12px;font-size:var(--text-input);line-height:20px}
  textarea{padding:10px 12px;line-height:20px}
  :is(.follow-form,.quest-thought,.question-form) textarea{min-height:80px}
  .work-filter-grid :is(input,select){font-size:var(--text-input)}
  .work-filter-grid input[type=date]{min-height:var(--field-height)}
  .work-filter-grid{gap:8px;padding:4px 0 12px}
  .work-filter-grid label,#key-form label{gap:4px;font-size:var(--text-secondary)}

  /* Shared text roles. */
  .fine{line-height:var(--leading-secondary)}
  .dialog-header{gap:8px}
  .dialog-header h3,.signout-title{font-size:var(--text-title);line-height:var(--leading-title);font-weight:620}
  .signout-title{margin:0 0 12px}
  dialog{padding:var(--pad-sheet)}
  #notice{margin:0 0 8px;padding:8px 12px;font-size:var(--text-secondary);line-height:var(--leading-secondary)}
  .card{padding:var(--pad-card)}
  .card h4{margin:0 0 4px;font-size:var(--text-heading);line-height:var(--leading-heading)}
  .card p{font-size:var(--text-body);line-height:var(--leading-body);margin:4px 0}
  .cards{gap:var(--gap-list);margin:12px 0}
  .actions{margin-top:12px}
  .empty{margin:24px auto}
  .empty h3{font-size:var(--text-headline);line-height:var(--leading-headline)}
  .diagnostics summary{min-height:var(--hit);padding:12px 0;font-size:var(--text-secondary)}
  .summary-list{gap:8px 12px;font-size:14px;line-height:20px}

  /* Home: the greeting, the state and its detail, the paused and the awake lines. */
  .home-greeting{font-size:var(--text-display);line-height:var(--leading-display)}
  .home-main{gap:12px}
  .home-stage{gap:8px}
  .home-stage .state-detail{padding:6px 10px;border-radius:12px;font-size:var(--text-secondary);line-height:var(--leading-secondary)}
  .home-actions{gap:var(--gap-list)}
  .home-ask{gap:8px}
  .info-card{padding:8px 12px;gap:10px;min-height:56px;border-radius:18px}
  .info-icon{width:32px;height:32px}
  .info-icon .icon{width:18px;height:18px}
  .info-label{font-size:var(--text-caption);line-height:var(--leading-caption)}
  .info-text{font-size:14px;line-height:19px}
  .quest-card{border-radius:18px}
  .quest-meta{font-size:var(--text-secondary)}
  .quest-empty{padding:12px 14px;font-size:14px;border-radius:18px}
  .home-question .question-card{padding:var(--pad-card);border-radius:18px}
  .awake-banner{min-height:var(--hit);padding:2px 0 2px 10px;gap:8px}
  .awake-mark{width:28px;height:28px}
  .awake-mark .icon{width:16px;height:16px}
  .awake-words{font-size:14px;line-height:18px;column-gap:6px}
  .awake-close{background:transparent;box-shadow:none;border-color:transparent}

  /* Questions, permissions and the sign-in card: one amber card, tighter. */
  .question-card{gap:var(--gap-stack);padding:10px 12px;border-radius:14px}
  .question-card.answered{padding:8px 12px}
  .question-text{font-size:var(--text-heading);line-height:var(--leading-heading)}
  .question-head,.question-note,.question-address,.question-asked,.question-secret{font-size:var(--text-caption);line-height:var(--leading-caption)}
  .question-detail,.question-answered,.question-error{font-size:var(--text-secondary);line-height:var(--leading-secondary)}
  .question-quote{padding:6px 10px;font-size:var(--text-secondary);line-height:var(--leading-secondary)}
  .question-card button{border-radius:var(--r-chip)}
  .signin-card{gap:10px;padding:var(--pad-card);border-radius:18px}
  .signin-head{gap:10px}
  .signin-mark{width:36px;height:36px}
  .signin-mark .glyph{width:20px;height:20px}
  .signin-eyebrow{font-size:var(--text-caption);line-height:var(--leading-caption)}
  .signin-title{font-size:var(--text-title);line-height:var(--leading-title)}
  .signin-step{font-size:var(--text-caption);line-height:var(--leading-caption)}
  .signin-step-mark{width:28px;height:28px;font-size:13px}
  .signin-step-mark .glyph{width:16px;height:16px}
  .signin-open-link{min-height:var(--hit)}
  .signin-code{padding:6px 6px 6px 12px;border-radius:14px}
  .signin-code-text{font-size:clamp(20px,6vw,26px)}
  .signin-paste input{min-height:var(--field-height);border-radius:12px}
  .signin-live,.signin-copied,.signin-return,.signin-site,.signin-problem{font-size:14px;line-height:18px}
  .signin-live.done{font-size:var(--text-heading)}
  .signin-private{padding-top:8px;font-size:var(--text-caption)}
  .signin-manual code{padding:4px 8px;font-size:14px}

  /* Quests: the board's lines, the empty and error states, the quest sheet and its boxes. */
  .quests-board{gap:var(--gap-stack);margin:0 0 12px}
  .quests-energy{gap:6px;padding:0 0 0 12px;font-size:var(--text-secondary);line-height:var(--leading-secondary)}
  .work-list{gap:6px;margin-top:8px}
  .work-pagination{margin:12px 0 16px}
  .work-error{padding:10px 12px;font-size:var(--text-secondary);line-height:var(--leading-secondary)}
  .work-error p{margin:0 0 8px}
  .work-failure{font-size:var(--text-secondary);line-height:var(--leading-secondary);margin:2px 0 0}
  .quest-sheet{padding:12px var(--pad-sheet) 24px}
  .quest-sheet::after{margin:-24px calc(-1 * var(--pad-sheet)) 0}
  .quest-sheet .dialog-header h3{font-size:var(--text-title);line-height:var(--leading-title)}
  .quest-state{gap:6px 10px;font-size:var(--text-secondary)}
  .quest-sheet .quest-chip-state{min-height:28px;padding:2px 10px;font-size:13px}
  .quest-now{padding:10px 12px;font-size:var(--text-body);line-height:var(--leading-body)}
  .quest-live{gap:8px;padding:10px 12px}
  .quest-live-now{font-size:var(--text-heading);line-height:var(--leading-heading)}
  .quest-live-facts,.quest-milestone{font-size:var(--text-secondary);line-height:var(--leading-secondary)}
  .quest-milestones{padding-top:8px;gap:4px}
  .quest-thought,.follow-form{gap:var(--gap-stack);padding:var(--pad-card)}
  .quest-result,.quest-files{padding:var(--pad-card);border-radius:18px}
  .quest-result h4,.quest-files h4{font-size:14px}
  .quest-result .actions{margin-top:8px}
  .follow-history{margin-top:8px;gap:6px}
  .grow-card{padding:var(--pad-card);margin-top:12px;border-radius:18px}

  /* World: the switch, people, the question, days of one-line moments, people & places, the card
     of one, notes and the sheet a moment or note opens in. */
  .shell[data-screen=memory] .header-title h2{font-size:var(--text-title)}
  .shell[data-screen=memory] #heading::before{width:28px;height:28px}
  .shell[data-screen=memory] #heading{gap:8px}
  .world-switch{padding:0;gap:0;margin:0 0 12px}
  /* A pill has 4 px of its own either side of its words (not 6 or more), so the three of them fit the
     header's width, and the focus outline keeps its 2 px from the painted pill on every side (#204). */
  .world-choice{--ring:var(--hit-ring-chip);box-sizing:border-box;min-height:var(--hit);padding:0 4px;border:var(--ring) solid transparent!important;background-clip:padding-box!important;font-size:14px;line-height:15px}
  @media (max-width:380px){.world-choice{font-size:var(--text-secondary)}}
  .world-choice[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--violet)}
  .people-row{gap:6px;margin-bottom:12px}
  .person{width:56px;gap:4px;font-size:var(--text-caption)}
  .entity-badge{width:44px;height:44px;font-size:17px;box-shadow:none}
  .entity-badge .icon{width:18px;height:18px}
  .puzzle-slot{margin:0 0 12px}
  .puzzle{grid-template-columns:32px minmax(0,1fr);column-gap:10px;padding:var(--pad-card);border-radius:18px}
  .puzzle-glyph{width:32px;height:32px;font-size:18px}
  .puzzle-line,.puzzle-done-text{font-size:var(--text-heading);line-height:var(--leading-heading)}
  .puzzle-ask{font-size:var(--text-body)}
  .puzzle-choices{margin-top:8px}
  .puzzle-done{gap:8px;margin-top:8px}
  .moments{gap:6px}
  .moment-day{margin:12px 0 0;font-size:var(--text-title);line-height:var(--leading-title)}
  .moment-list,.entity-list,.notes{gap:6px}
  .moment,.entity-row{min-height:var(--hit);padding:4px 10px;gap:10px;border-radius:14px}
  .moment .kind-icon{width:28px;height:28px}
  .kind-icon .icon{width:16px;height:16px}
  .moment-title,.entity-row-name{font-size:var(--text-body)}
  .time-chip{min-height:22px;padding:0 8px;font-size:var(--text-caption)}
  .entity-row .entity-badge{width:28px;height:28px;font-size:12px}
  .entity-group{margin:12px 0 6px;font-size:var(--text-secondary);font-weight:620}
  .world-status{margin-top:12px;color:var(--text-2)}
  .world-backfill{padding:8px 4px 8px 12px}
  .world-entity{gap:10px;padding:var(--pad-card);border-radius:18px}
  .entity-head{gap:8px}
  .entity-head .entity-badge{width:40px;height:40px}
  .entity-title{font-size:var(--text-headline);line-height:var(--leading-headline)}
  .entity-meta .fine{font-size:var(--text-secondary)}
  .entity-kind{min-height:22px;padding:0 10px;font-size:var(--text-caption)}
  .fact-group{grid-template-columns:28px minmax(0,1fr);gap:10px;padding:10px 12px}
  .fact-icon{width:28px;height:28px}
  .fact-icon .icon{width:16px;height:16px}
  .fact-body h4{margin:2px 0 4px;font-size:var(--text-heading);line-height:var(--leading-heading)}
  .entity-moments-title{margin:4px 0 0;font-size:var(--text-heading)}
  .entity-actions{gap:0 4px;padding-top:8px}
  .entity-actions button{gap:6px;border-radius:var(--r-chip)}
  .entity-actions button .icon{width:16px;height:16px}
  .fact-source>summary{font-size:var(--text-caption)}
  .fact-source>p,.memory-history h5{font-size:var(--text-secondary);line-height:var(--leading-secondary)}
  .note-card{min-height:var(--hit);padding:8px 10px;gap:10px;border-radius:14px}
  .note-title{font-size:var(--text-body);line-height:var(--leading-body)}
  .note-preview{font-size:var(--text-secondary);line-height:var(--leading-secondary)}
  .memory-add{padding:0 0 4px}
  .memory-add>summary{font-size:14px}
  .sheet-content{gap:var(--gap-section);margin-top:8px}
  .request-text,.memory-full{font-size:var(--text-body);line-height:21px}
  .moment-source .memory-quote,.memory-version .memory-full{font-size:14px;line-height:20px}
  .memory-versions{gap:8px}

  /* Grow: the ring stays Ari's (the one bold picture), everything around it is set smaller. */
  .grow-title{font-size:var(--text-display);line-height:var(--leading-display)}
  .grow-hero{gap:6px}
  .star-mark{width:36px;height:36px}
  .star-mark .icon{width:18px;height:18px}
  .star-label{font-size:var(--text-caption);line-height:14px}
  .grow-skill{gap:10px;padding:8px 12px;border-radius:18px}
  .skill-mark{width:32px;height:32px}
  .skill-mark .icon{width:18px;height:18px}
  .grow-skill h4{font-size:var(--text-heading);line-height:var(--leading-heading)}
  .grow-skill p{font-size:var(--text-secondary);line-height:var(--leading-secondary)}
  .grow-story{margin-top:var(--gap-section)}
  .grow-story h3,.grow-lessons h3{margin:0 0 8px;font-size:var(--text-title);line-height:var(--leading-title)}
  .path-item{gap:10px;padding:0 0 8px}
  .path-item::before{left:15px;top:36px}
  .path-node{width:32px;height:32px}
  .path-node .icon{width:16px;height:16px}
  .path-title{font-size:var(--text-body)}
  .path-note{padding:4px 0}
  .lesson-chips{gap:6px}
  .lesson-chip{min-height:32px;padding:0 12px 0 4px;gap:4px;font-size:14px}
  .lesson-mark{width:24px;height:24px}
  .lesson-mark .icon{width:16px;height:16px}

  /* Home & care and its sheets: rows 44, titles 17, secondary 13, gaps 8. */
  .care-value{font-size:14px}
  .sheet-head{min-height:var(--hit);padding:2px 2px 2px 16px}
  .sheet-title{font-size:var(--text-title);line-height:var(--leading-title)}
  .sec.sticky{top:48px}
  .sheet-view,.computer-body{gap:10px}
  .see-all{gap:8px}
  .sheet-empty{padding:16px 12px;gap:6px}
  .sheet-empty-mark{width:40px;height:40px;border-radius:12px}
  .sheet-empty-mark .glyph{width:20px;height:20px}
  .skeleton-row{min-height:var(--hit);padding:6px 10px}
  .skeleton-mark{width:28px;height:28px}
  .history-row{padding:8px 10px;font-size:var(--text-secondary);line-height:var(--leading-secondary)}
  .day-rows{gap:4px;padding:4px 0}
  .computer-facts dt,.computer-facts dd{padding:12px 0;font-size:14px;line-height:20px}
  .key-row{padding:8px 10px}
  .key-locked,.always-on-cause{font-size:var(--text-secondary);line-height:var(--leading-secondary)}
  .account-row{padding:6px 4px 4px 12px}
  .account-name{font-size:var(--text-heading)}
  .connections>.keys-head,.connection-more>.care-row{min-height:var(--hit)}
  .connection-detail{padding:8px 10px}
  .devices-code{margin:8px 0;padding:8px 10px}
  .devices-code strong{font-size:18px}
  .lanes-limit{font-size:16px}
  .engine-line,.engine-saving,.engine-budget,.engine-energy{font-size:14px;line-height:19px}
  .engine-subtitle{font-size:var(--text-heading)}
  .engine-row-state{font-size:var(--text-secondary)}
  .signout-ask{padding:10px}
  #key-form,.key-fields{gap:10px}
  #key-intro{line-height:var(--leading-secondary)}

  /* Sign-in and first run: the card, the fields and one 44 px button. */
  .login{padding:16px}
  .login-card{padding:20px 16px}
  .login-creature{width:112px;height:112px;margin:-72px auto 0}
  .login-card h1,.login-card .login-head h1{font-size:var(--text-headline);line-height:var(--leading-headline)}
  .login-card>p{margin:8px 0;font-size:14px;line-height:20px}
  .login-card form{gap:10px;margin:16px 0}
  .login-card .login-step{gap:10px;margin:14px 0 6px}
  .login-card input[type=text],.login-card input[type=email],.login-card input[type=password]{min-height:var(--field-height);font-size:var(--text-input)}
  .code-input{font-size:20px!important}
  .login-detail{margin-top:8px;padding:8px 12px;font-size:14px;line-height:20px}
  .login-link{font-size:14px}
  .setup-qr{padding:8px}
  .setup-qr img{width:min(180px,50vw)}
  .recovery-codes{padding:10px;font-size:14px}

  /* Round 2 (the owner after 0.9.43: "still a lot of room: smaller text, smaller icons, and maybe re-sort
     things in places"). Smaller discs and marks, segmented choices drawn as 32 px chips, and rows put
     side by side where they fit; nothing changes what a control does. */
  :is(.sheet-close,.care-sheet .remove-button){--ring:var(--hit-ring-sm)}
  :is(.sheet-close,.care-sheet .remove-button) .icon{width:14px;height:14px}
  .look-switch button{--ring:var(--hit-ring-chip)}
  .look-switch button .icon{width:16px;height:16px}
  .care-icon{width:24px;height:24px;border-radius:7px}
  .care-icon .icon{width:14px;height:14px}
  .care-banner{min-height:48px;padding:4px 12px}
  .care-avatar{width:30px;height:30px}
  .care-avatar .icon{width:16px;height:16px}
  .care-group{padding:2px}
  .quest-thumb{width:40px;height:40px;border-radius:12px}
  .quest-thumb .icon{width:20px;height:20px}
  .people-row .entity-badge{width:40px;height:40px;font-size:15px}
  .person{width:52px}
  .nav .icon{width:20px;height:20px}
  /* Energy: "Ari's mind" is one 36 px line (a small portrait and the heading), provider rows are 44 with
     24 px marks, and Default sits beside its label when they fit. */
  .engine-room{padding:4px 2px 8px}
  .engine-head{gap:10px}
  .engine-head .creature-portrait{width:32px;height:32px;border-width:1.5px}
  .engine-head .creature-portrait .creature-badge{width:16px;height:16px;right:-5px;bottom:-5px}
  .engine-head .creature-portrait .creature-badge .glyph{width:10px;height:10px}
  .engine-title{font-size:var(--text-heading);line-height:var(--leading-heading)}
  .engine-body{gap:10px;margin-top:10px}
  .engine-main{gap:8px}
  .engine-list{border-radius:14px}
  .engine-row{padding:0 2px 0 10px;gap:8px}
  .engine-mark{width:24px;height:24px}
  .engine-mark :is(.icon,.glyph){width:14px;height:14px}
  .engine-choice-label{font-size:14px}
  .engine-choice .segmented{width:auto;flex:none}
  .engine-choice .segmented button{flex:none;min-width:0;padding:0 14px}
  /* Account: the account's name and its sign-in state on one row. */
  .account-row{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:4px;padding:0 2px 0 12px}
  .account-row>.account-security{min-height:var(--hit)!important;padding:0 6px 0 8px!important;gap:4px}
  .account-row>.account-plain{min-height:var(--hit);padding:0 6px 0 8px}
  .account-row>.account-reset-area{grid-column:1/-1}

  /* Round 3 (the independent UI/UX review, 76/100, and the owner's yes to the five reorders in ADR 067). */
  /* A segmented control's track is drawn at 32 like its chips: the 44 px buttons keep their ring, the
     track is a layer inset by the same ring behind them. */
  .segmented,.world-switch{position:relative;isolation:isolate;border:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
  .segmented::before,.world-switch::before{content:"";position:absolute;inset:var(--hit-ring-chip) 0;z-index:-1;border:1px solid var(--line);border-radius:10px;background:var(--field);pointer-events:none}
  .world-switch::before{border-color:var(--stroke);border-radius:var(--r-chip);background:var(--glass-soft)}
  /* The focus ring hugs what is drawn, 2 px outside it, not 2 px outside the 44 px tap box. */
  :is(.composer .attach-button,.composer button[type=submit],.composer .mic-button,.sheet-close,.care-sheet .remove-button,.quest-chip,.message-actions button,.inline-body button,.care-sheet .sheet-action,.devices-actions button,.care-sheet .account-reset,.quest-sheet .dialog-header .quiet,.look-switch button,.attachment-actions button,
    .actions>button,.quest-actions button,.key-actions button,.key-confirm button,.note-actions button,.entity-actions button,.dialog-header>button.quiet:not(.icon-button,.info-btn),
    .work-pagination button,.work-error button,.question-card button:not(.info-btn),.question-link,.puzzle-done button,.small-action,.see-quests,.world-backfill button,
    .wait-action,.live-action,.quests-energy button,.quests-board>button,.unpause-button,.signout-actions button,.choice,.signin-card button,.signin-open-link,
    .setup-key button,.connection-actions button,.sheet-view>button.quiet,.memory-form button,.login-row button,.talk-button,.quest-button,.update-prompt button,.jump-latest,.lanes-step,
    .segmented button,.world-choice,.work-search input,.work-search #work-reset):focus-visible{outline-offset:calc(2px - var(--ring,var(--hit-ring)))}
  /* One way to close a sheet: the ✕ disc (28 on 44) everywhere; Cancel stays on forms. The button's
     name is still Close (its word is not drawn). */
  :is(#close-report,#close-sheet,#image-viewer-close,#reader-close){--ring:var(--hit-ring-sm);flex:none;width:var(--hit);min-width:var(--hit);height:var(--hit);padding:0;
    border-radius:50%;font-size:0;line-height:0;display:inline-flex;align-items:center;justify-content:center;background-color:var(--glass-soft)}
  :is(#close-report,#close-sheet,#image-viewer-close,#reader-close)::before{content:"";width:14px;height:14px;background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M6 18 18 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M6 18 18 6'/%3E%3C/svg%3E") center/contain no-repeat}
  .dialog-header>h3{flex:1 1 auto;min-width:0}
  /* Add a key: ⓘ beside its title, Cancel at the end. */
  #key-form .dialog-header>h3{flex:0 1 auto}
  #key-form .dialog-header>#key-cancel{margin-left:auto}
  /* Lists are grouped rows with hairlines, not a bordered card per item. */
  :is(.work-list,.moment-list,.entity-list,.notes):has(>:is(.work-row,.moment,.entity-row,.note-card)){gap:0;border:1px solid var(--stroke);border-radius:16px;
    background:var(--glass);overflow:hidden;-webkit-backdrop-filter:blur(var(--blur-compact));backdrop-filter:blur(var(--blur-compact))}
  :is(.work-list>.work-row,.moment-list>.moment,.entity-list>.entity-row,.notes>.note-card){border:0;border-radius:0;box-shadow:none;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
  :is(.work-list>.work-row,.moment-list>.moment,.entity-list>.entity-row,.notes>.note-card)+:is(.work-row,.moment,.entity-row,.note-card){border-top:1px solid var(--stroke-soft)}
  :is(.work-list>.work-row,.moment-list>.moment,.entity-list>.entity-row,.notes>.note-card):focus-visible{outline-offset:-2px}
  .world-entity .moment-list{background:transparent;border-color:var(--stroke-soft)}
  /* The light card only behind rows: an empty list is the plain empty state, not a bare white box (#567). */
  :root[data-theme=light] .work-list:has(>.work-row){background:var(--surface)}
  @media (prefers-color-scheme:light){:root:not([data-theme]) .work-list:has(>.work-row){background:var(--surface)}}
  /* A working quest's time goes on its status line: the title, then state, time, 1 min and the stones. */
  .work-row-main{grid-template-columns:minmax(0,auto) minmax(0,1fr) auto}
  .work-row-main>.quest-stones{grid-column:3}
  .work-row-main>.work-doing{grid-column:2;grid-row:2;margin:0 0 0 10px;min-width:0;overflow:hidden;white-space:nowrap;font-size:var(--text-secondary);line-height:var(--leading-secondary);color:var(--text-2)}
  .work-row-main>.work-doing .glyph{width:14px;height:14px}
  /* Header titles wrap at 200 % zoom instead of losing their end. */
  @media (max-width:300px){.header-title h2,.shell[data-screen=chat] .header-title h2,.shell[data-screen=system] .header-title h2{white-space:normal;overflow:visible;text-overflow:clip;line-height:20px}}
  /* R1: Notifications is one row with its state on the right; its switch lives in its sheet. Pause all stays inline. */
  .care-split{padding:0!important}
  .care-split>:is(.care-divider,.switch){display:none}
  .care-split-open .care-row-text{flex-direction:row;align-items:center;gap:8px}
  .care-split-open .care-row-text>.fine{margin-left:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:var(--text-2)}
  /* R2: World's Journal, People & places and Notes are the header (the tab bar already says World); a
     person's card, which hides the switch, keeps the title. */
  .shell[data-screen=memory]:not(:has(#world-main[hidden])) #heading{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .shell[data-screen=memory] #tab-memory .world-switch{position:fixed;z-index:5;top:max(6px,env(safe-area-inset-top));left:var(--main-pad);right:calc(var(--main-pad) + var(--hit) + 4px);margin:0}
  /* R3: a passive banner (Practice mode) is a small chip beside the title; banners that ask for something stay full width. */
  #notice[data-banner=demo]{position:absolute;z-index:4;top:calc(max(6px,env(safe-area-inset-top)) + 8px);right:calc(var(--main-pad) + var(--hit) + 4px);
    display:inline-flex;align-items:center;gap:0;height:28px;margin:0;padding:0 0 0 10px;border-radius:var(--r-chip);font-size:var(--text-caption);line-height:16px;white-space:nowrap}
  #notice[data-banner=demo] .info-btn{margin:-8px -6px -8px -6px}
  .shell[data-screen=home] #notice[data-banner=demo]{right:auto;left:var(--main-pad)}
  .shell:is([data-screen=memory],[data-screen=chat]) #notice[data-banner=demo]{position:static;align-self:flex-start;margin:6px 0 8px}
  .shell[data-screen=chat] #notice[data-banner=demo]{align-self:center;margin-top:calc(max(6px,env(safe-area-inset-top)) + 8px)}
  /* #507: Talk on a phone has no padding above its header, which clears the status bar itself. A banner shown
     above the header clears it instead, and the header under it then starts right below the banner. */
  .shell[data-screen=chat] #notice{margin:max(6px,env(safe-area-inset-top)) 12px 4px}
  .shell[data-screen=chat] #notice:not([hidden],[data-banner=connection])~#tab-chat .talk-header{min-height:var(--hit);padding-top:0}
  /* R4: "+" beside Devices (its name is still Add device); the action row is no box when + is all it holds. */
  #devices{position:relative}
  #devices-pair{position:absolute;top:-3px;right:0;width:var(--hit);min-width:var(--hit);height:var(--hit);padding:0;font-size:0;display:inline-grid;place-items:center;
    background:transparent;box-shadow:none!important;color:var(--violet)}
  #devices-pair .icon{width:20px;height:20px}
  #devices-pair>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .devices-actions:not(:has(>button:not([hidden],#devices-pair))){display:contents}
  /* R5: Quests at once is one 44 px row: title, ⓘ, − 5 +. The ten slot marks stay on the laptop. */
  .lanes-row{grid-template-columns:auto 44px minmax(0,1fr) auto;grid-template-areas:"title info status control" "text text text text";row-gap:0;min-height:var(--hit);padding-top:0;padding-bottom:0}
  .lanes-control{justify-self:end;gap:0}
  .lanes-icons{display:none}
  .lanes-limit{min-width:2ch;margin:0;font-size:16px}
  .lanes-info{padding:0 0 8px}
  /* #269: Skill forge keeps two lines on a phone: title, ⓘ and the switch, then − pace + under the title. */
  .lanes-row.forge-row{grid-template-columns:auto 44px minmax(0,1fr) auto;grid-template-areas:"title info status switch" "control control control control" "text text text text";column-gap:4px}
  .forge-pace{justify-self:start;margin-left:-6px}
  .forge-every{min-width:48px}
  @media (max-width:300px){
    .shell[data-screen=memory]:not(:has(#world-main[hidden])) #heading{position:static;width:auto;height:auto;overflow:visible;clip:auto}
    .shell[data-screen=memory] #tab-memory .world-switch{position:relative;left:auto;right:auto;margin:0 0 8px}
    .world-choice{font-size:13px}
    .world-switch{flex-wrap:wrap}
    .world-switch::before{inset:0;border-radius:14px}
    .world-choice{border-radius:10px}
    #notice[data-banner=demo]{position:static;align-self:flex-start;margin:0 0 8px}
    .lanes-row{grid-template-columns:auto 44px minmax(0,1fr);grid-template-areas:"title info status" "control control control" "text text text"}
    .lanes-control{justify-self:start}
    /* #269: at 200 % zoom on a small phone the title may wrap; the switch keeps its own line-1 column. */
    .lanes-row.forge-row{grid-template-columns:minmax(0,1fr) 44px auto;grid-template-areas:"title info switch" "status status status" "control control control" "text text text"}
    .forge-row .lanes-title{white-space:normal}
  }
  /* Review round 3 (82/100): the chosen segment has no glow (a box-shadow would fill the whole 44 px tap
     box, a pale slab around the 32 px track); the ⓘ between a question's choices sits on their line;
     the quest sheet's ✕ is where every other sheet's ✕ is (2 px from the top and right edges), its title's
     first line beside it. */
  .segmented button[aria-pressed=true]{box-shadow:none}
  .question-choices{align-items:center}
  .quest-sheet .dialog-header{margin:-10px calc(2px - var(--pad-sheet)) 0 0;min-height:var(--hit);align-items:flex-start}
  .quest-sheet .dialog-header>h3{padding-top:11px}
}
