/* Legacy styles, kept in the lowest cascade layer while screens move to the design system. Pruned on 1 December
   2026 to the rules whose classes the app still renders, and moved onto the brand tokens (styles/brand.css).
   Do not add to this file. */
@layer legacy{
  *{box-sizing:border-box}
  body{margin:0}
  button,input,textarea,select{font:inherit;color:inherit}
  button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
  button{cursor:pointer;background:none;border:0;transition:transform 140ms var(--ease),background-color 160ms ease,color 160ms ease}
  button:active{transform:scale(.98)}
  button:disabled{cursor:not-allowed;transform:none}
  button svg{pointer-events:none}
  a{color:inherit}
  svg{flex:none}
  p{margin:0;line-height:1.6}
  h1,h2,h3{margin:0;font-weight:500}
  h1{font-size:var(--text-3xl);line-height:1.2;letter-spacing:-.025em;font-weight:600;overflow-wrap:anywhere;text-wrap:pretty}
  h2{font-size:var(--text-xl);line-height:1.35;letter-spacing:-.015em;font-weight:600}
  h3{font-size:var(--text-md);line-height:1.4;font-weight:600}
  small{font-size:var(--text-sm)}
  img{display:block;max-width:100%}
  [hidden]{display:none}
  button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--brand-primary);outline-offset:4px}
  h1:focus{outline:none}
  ::selection{background:var(--selection)}
  .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .workspace{width:100%;margin:0 auto}
  .app-shell{position:relative;display:flex;flex-direction:column;width:100%;max-width:520px;min-height:100svh;margin:0 auto;background:var(--surface)}
  .brand-lockup{width:132px;height:auto;flex:none}
  .mark{width:36px;height:36px;object-fit:contain}
  .content{display:flex;flex-direction:column;flex:1;padding:1.5rem;min-width:0}
  .content>h1,.content>.intro{text-align:left}
  .content.compact{padding-top:28px}
  .eyebrow{display:flex;align-items:center;justify-content:flex-start;gap:8px;color:var(--text);font-size:var(--text-sm);font-weight:500;line-height:1.45;margin-bottom:.75rem}
  .eyebrow .dot{display:none}
  .intro{font-size:var(--text-md);line-height:1.6;color:var(--text);margin-top:1rem;text-wrap:pretty}
  .footer{margin-top:auto;padding-top:1.75rem}
  .primary,.secondary{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:54px;border-radius:var(--radius-card);padding:15px 22px;font-size:var(--text-md);font-weight:600;text-decoration:none;line-height:1.45}
  .primary{background:var(--brand-primary);color:var(--white)}
  .primary svg{width:17px;height:17px}
  .primary:disabled{background:var(--line);color:var(--text)}
  .secondary{background:var(--selection);color:var(--ink);margin-top:12px}
  input,textarea,select{width:100%;background:var(--surface);border:1px solid var(--text-muted);border-radius:var(--radius-card);padding:15px 16px;font-size:var(--text-md);line-height:1.55}
  textarea{min-height:128px;resize:vertical}
  input::placeholder,textarea::placeholder{color:var(--text-muted)}
  label{display:block;font-size:var(--text-md);font-weight:500;line-height:1.5;margin-bottom:10px}
  label small{font-size:var(--text-sm);color:var(--text-muted)}
  select{min-height:54px}
  .field-group{margin-top:26px}
  .field-error{color:var(--error);font-size:var(--text-sm);min-height:21px;margin:8px 0}
  .welcome{padding-top:1.5rem}
  .welcome h1{font-family:var(--font);font-size:var(--text-4xl);font-weight:400;line-height:1.08;letter-spacing:-.015em;max-width:18ch}
  .welcome .intro{max-width:none;align-self:stretch}
  .welcome .footer{padding-top:1.5rem}
  .question-title{font-size:var(--text-2xl);line-height:1.25}
  .options{display:grid;grid-template-columns:1fr;gap:10px;margin-top:1.75rem}
  .option{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;border-radius:var(--radius-card);border:1px solid var(--line);padding:15px 17px;text-align:left;background:var(--surface)}
  .option strong{font-size:var(--text-md);font-weight:500;line-height:1.45}
  .option small{display:block;color:var(--text);margin-top:5px}
  .selector{height:21px;width:21px;display:grid;place-items:center;border:1px solid var(--text-muted);border-radius:50%;flex:none;color:transparent}
  .selector svg{width:13px;height:13px}
  .multi .selector{border-radius:var(--radius-control)}
  .option.selected{background:var(--subtle);border-color:var(--brand-primary)}
  .option.selected .selector{color:var(--on-primary);border-color:var(--brand-primary);background:var(--brand-primary)}
  .name-field{margin-top:2.5rem}
  .name-field label{text-align:left;color:var(--text)}
  .name-field input{font-size:var(--text-2xl);border:0;border-bottom:1px solid var(--text-muted);border-radius:0;text-align:left;padding:16px 0}
  .name-field input::placeholder{font-size:var(--text-md)}
  .preview-notice{font-size:var(--text-sm);line-height:1.6;color:var(--text-muted);text-align:left;margin-top:1.5rem;padding:0}
  .voice-symbol{display:flex;justify-content:center;align-items:center;height:148px;margin:7px 0 0}
  .call-prompt{font-size:var(--text-xl);font-weight:500;line-height:1.4;letter-spacing:-.015em;text-align:left;text-wrap:pretty}
  .call-review textarea{font-size:var(--text-md);min-height:120px}
  .call-review label{font-size:var(--text-sm)}
  .home-greeting{text-align:left}
  .home-greeting h1{font-size:var(--text-xl);line-height:1.4;letter-spacing:-.02em}
  .home-greeting p{font-size:var(--text-md);color:var(--text);margin-top:8px}
  .bottom-nav{position:sticky;bottom:0;z-index:2;background:var(--surface);display:flex;gap:4px;border-top:1px solid var(--line);padding:10px 20px max(12px,env(safe-area-inset-bottom))}
  .bottom-nav button{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;gap:6px;font-size:var(--text-xs);min-height:55px;border-radius:var(--radius-card);color:var(--text)}
  .bottom-nav button svg{width:21px;height:21px;stroke-width:1.5}
  .bottom-nav .active{color:var(--ink);background:var(--subtle)}
  .next-label{font-size:var(--text-xs);color:var(--text);display:flex;gap:8px;align-items:center}
  .next-label svg{width:16px;height:16px;color:var(--ink)}
  .time-note{display:block;font-size:var(--text-sm);color:var(--text);text-align:left;margin-top:.875rem}
  .toggle{position:relative;width:48px;height:29px;min-height:29px;border-radius:var(--radius-card);background:var(--text-muted);flex:none}
  .toggle:after{content:'';position:absolute;inset:-8px -2px}
  .toggle span{position:absolute;left:3px;top:3px;width:23px;height:23px;border-radius:50%;background:var(--surface);transition:transform 160ms var(--ease)}
  .toggle.on{background:var(--brand-primary)}
  .toggle.on span{transform:translateX(19px)}
  .reflection{margin:28px 0 12px}
  .addition{padding:24px 0;border-bottom:1px solid var(--line)}
  .addition button{min-height:44px;color:var(--ink);font-size:var(--text-sm);text-decoration:underline}
  .addition p{font-size:var(--text-md);line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
  dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-panel);padding:28px;max-width:440px;width:calc(100% - 32px);max-height:calc(100svh - 32px);box-shadow:0 20px 70px rgb(var(--still-rgb) / 0.094)}
  dialog::backdrop{background:rgb(var(--still-rgb) / 0.4)}
  dialog p{font-size:var(--text-md);line-height:1.6;color:var(--text);margin:12px 0 24px}
  dialog .field-error{color:var(--error);margin:8px 0}
  dialog textarea{max-height:45svh}
  .studio-bar{position:fixed;top:30px;left:32px;width:215px;display:flex;flex-direction:column;gap:12px;align-items:flex-start;font-size:var(--text-xs);color:var(--text-muted)}
  .studio-brand{text-decoration:none;font-size:var(--text-sm);color:var(--ink);font-weight:500}
  .studio-brand span{display:block;font-size:var(--text-xs);font-weight:400;color:var(--text-muted);margin-top:6px}
  .quiet{font-size:var(--text-xs);min-height:36px;padding:6px 0;color:var(--text-muted)}
  .prototype-nav{position:fixed;left:32px;top:180px;width:210px;max-height:calc(100svh - 205px);overflow:auto}
  .prototype-nav summary{cursor:pointer;min-height:44px;font-size:var(--text-sm);color:var(--text)}
  .prototype-nav summary span{display:none}
  .rail-copy,.rail-foot{display:none}
  .scene{display:flex;width:100%;gap:12px;align-items:center;text-align:left;min-height:56px;padding:12px;border-radius:var(--radius-control);font-size:var(--text-sm);margin:4px 0}
  .scene.active{background:var(--subtle);color:var(--ink)}
  .scene small{display:block;font-size:var(--text-xs);color:var(--text-muted);margin-top:4px;line-height:1.45}
  .scene-number{font-size:var(--text-xs);color:var(--text-muted)}
  .design-notes{display:none}
  .call-brief{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
  .call-brief summary{cursor:pointer;min-height:44px}
  .call-brief dt{color:var(--text-muted);margin-top:16px}
  .call-brief dd{margin:5px 0 0}
  .note-label,.note-source{font-size:var(--text-xs);color:var(--text-muted)}
  .design-notes h2{font-size:var(--text-xl);margin:18px 0}
  .design-notes p{font-size:var(--text-sm);color:var(--text)}
  body[data-studio="true"] .design-notes{display:block;position:fixed;right:28px;top:32px;width:215px;max-height:calc(100svh - 64px);overflow:auto;font-size:var(--text-sm);line-height:1.6}
  @media(hover:hover) and (pointer:fine){
    .primary:not(:disabled):hover{background:var(--brand-primary-strong)}
    .secondary:hover{background:var(--selection)}
    .option:not(.selected):hover{border-color:var(--text-muted);background:var(--subtle)}
    .quiet:hover{color:var(--ink)}
    .scene:hover{background:var(--subtle)}
  }
  @media(min-width:1000px){
    .app-shell{position:relative;display:flex;flex-direction:column;width:100%;max-width:520px;min-height:100svh;margin:0 auto;background:var(--surface)}
    .welcome{padding-top:1.5rem}
  }
  @media(max-width:999px){
    .studio-bar,.prototype-nav,body[data-studio="true"] .design-notes{display:none}
    body[data-studio="true"] .studio-bar{position:static;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:auto;padding:12px 20px;border-bottom:1px solid var(--line)}
    body[data-studio="true"] .studio-brand span{display:none}
    body[data-studio="true"] .prototype-nav{position:static;display:block;width:auto;max-height:none;margin:0;padding:0 20px}
    body[data-studio="true"] .prototype-nav summary{display:flex;align-items:center;justify-content:space-between}
    body[data-studio="true"] .prototype-nav summary:after{content:'+'}
    body[data-studio="true"] .prototype-nav details[open] summary:after{content:'−'}
    body[data-studio="true"] .scene-nav{display:grid;grid-template-columns:1fr 1fr;gap:4px}
    body[data-studio="true"] .app-shell{min-height:calc(100svh - 100px)}
  }
  @media(max-width:540px){
    .content{display:flex;flex-direction:column;flex:1;padding:1.5rem;min-width:0}
    .welcome{padding-top:1.5rem}
    .welcome h1{font-family:var(--font);font-size:var(--text-4xl);font-weight:400;line-height:1.08;letter-spacing:-.015em;max-width:18ch}
    .question-title{font-size:var(--text-2xl);line-height:1.25}
    .voice-symbol{height:132px}
    .footer{margin-top:auto;padding-top:1.75rem}
  }
  @media(max-width:360px){
    .content{display:flex;flex-direction:column;flex:1;padding:1.5rem;min-width:0}
    .welcome h1{font-family:var(--font);font-size:var(--text-4xl);font-weight:400;line-height:1.08;letter-spacing:-.015em;max-width:18ch}
    .question-title{font-size:var(--text-2xl);line-height:1.25}
    .option{padding:14px;gap:10px}
    .option strong{font-size:var(--text-md);font-weight:500;line-height:1.45}
  }
  @media(prefers-reduced-motion:reduce){
    *,*:before,*:after{animation:none;transition:none;scroll-behavior:auto}
    button:active{transform:none}
  }
  html.keyboard button{transition:none}
  html.keyboard button:active{transform:none}
  .welcome .intro strong{font-weight:600;color:var(--ink)}
  @media(min-width:1000px){
    .content{padding-left:2rem;padding-right:2rem}
  }
  @media(max-width:360px){
    .content{padding-left:1.25rem;padding-right:1.25rem}
    .welcome h1{font-size:var(--text-4xl)}
    .question-title{font-size:var(--text-2xl)}
  }
  button{ transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease); }
  button:active{ transform: none; }
  .primary,.secondary{ position: relative; border-radius:var(--radius-card); padding-inline: 42px; }
  .primary{ box-shadow:inset 0 0 0 1px rgb(var(--still-rgb) / 0.102); }
  .primary svg{ position: absolute; right: 22px; transition: transform 240ms var(--ease); }
  .primary:disabled{ box-shadow: none; }
  .primary:not(:disabled):active,.secondary:not(:disabled):active{ transform: translateY(1px) scale(.992); transition-duration: 80ms; }
  .primary:active svg{ transform: translateX(3px); }
  .option{ border-radius:var(--radius-card); transition: background-color 180ms ease, border-color 180ms ease, transform 160ms var(--ease); }
  .option:active{ transform: scale(.994); transition-duration: 80ms; }
  .option.selected{ background: var(--subtle); border-color: var(--brand-primary); }
  .option.selected strong{ color: var(--ink); }
  .selector{ transition: background-color 170ms ease, border-color 170ms ease; }
  .option.selected .selector{ border-color: var(--brand-primary); }
  .selector svg{ stroke-width: 2; }
  input,textarea,select{ transition: border-color 160ms ease, background-color 160ms ease; caret-color: var(--brand-primary); }
  input:focus,textarea:focus,select:focus{ border-color: var(--brand-primary); }
  .voice-symbol{ flex: none; }
  .voice-symbol.paused *{ animation-play-state: paused; }
  .bottom-nav button{ position: relative; z-index: 1; transition: color 180ms ease; }
  .bottom-nav .active{ background: none; }
  .toggle{ background:var(--text-muted); }
  .toggle.on{ background: var(--brand-primary); }
  .toggle span{ transition: transform 240ms var(--ease); }
  @media (hover: hover) and (pointer: fine){
    .primary:not(:disabled):hover{ background: var(--brand-primary-strong); }
    .primary:not(:disabled):hover svg{ transform: translateX(3px); }
  }
  @media (prefers-reduced-motion: reduce){
    *,*::before,*::after{ animation: none; transition: none; scroll-behavior: auto; }
    button:active,.primary:active svg,.primary:hover svg{ transform: none; }
  }
  html.keyboard *,html.keyboard *::before,html.keyboard *::after{ transition: none; }
  html.keyboard button:active,html.keyboard .primary:active svg{ transform: none; }
  body.opening-active{overflow:hidden}
  body.opening-active .studio-bar,body.opening-active .prototype-nav,body.opening-active .design-notes{visibility:hidden}
  .welcome-opening{position:fixed;z-index:50;inset:0;max-width:520px;margin-inline:auto;overflow:hidden;font-family:var(--font);isolation:isolate}
  .opening-canvas,.opening-words{position:absolute;inset:0;pointer-events:none}
  .opening-canvas{background:var(--surface);overflow:hidden}
  .opening-lettering{display:block;overflow:visible;flex:none;max-width:none}
  .opening-caption span{display:inline-block;will-change:transform,opacity}
  .opening-caption,.opening-pause{position:absolute;left:0;right:0;height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-inline:28px;text-align:center}
  .opening-caption-line{display:flex;justify-content:center;column-gap:7px}
  .opening-caption{font-size:var(--text-2xl);font-weight:500;line-height:34px;letter-spacing:-.56px;color:var(--ink)}
  .opening-pause strong{font-size:var(--text-2xl);line-height:34px;letter-spacing:-.56px;font-weight:500;color:var(--ink)}
  .opening-pause p{margin-top:6px;font-size:var(--text-md);line-height:23px;color:var(--text)}
  .opening-controls{position:absolute;left:8px;right:10px;top:max(6px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between}
  .opening-control{display:flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;padding:0 12px;font-size:var(--text-sm);line-height:1.5;color:var(--text);border-radius:var(--radius-control)}
  .opening-control svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .opening-control:focus-visible{outline-color:var(--brand-primary)}
  .opening-sound-hint{position:absolute;bottom:max(34px,env(safe-area-inset-bottom));left:0;right:0;text-align:center;color:var(--white);font-weight:500;font-size:var(--text-sm);line-height:1.5;pointer-events:none}
  .opening-again{position:absolute;bottom:max(40px,env(safe-area-inset-bottom));left:24px;right:24px}
  @media(max-height:699px){
    .opening-caption,.opening-pause strong{font-size:var(--text-xl);line-height:30px}
  }
  .live-call{padding-top:8px;gap:0;padding-bottom:max(20px,env(safe-area-inset-bottom));}
  .live-duration{display:flex;align-items:center;gap:7px;font-size:var(--text-sm);font-variant-numeric:tabular-nums;color:var(--text);white-space:nowrap}
  .live-connection-dot{width:5px;height:5px;border-radius:50%;background:var(--brand-primary)}
  .live-call[data-call-phase="ready"] .live-connection-dot,.live-call[data-call-phase="ended"] .live-connection-dot{background:var(--text-muted)}
  .live-topic-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:6px 0 0;min-height:32px;transition:opacity 240ms ease}
  .live-current-topic{font-size:var(--text-sm);line-height:1.4;color:var(--text)}
  .live-topic-progress{display:flex;align-items:center;gap:12px;flex:none}
  .live-topic-count{font-size:var(--text-xs);font-variant-numeric:tabular-nums;color:var(--text)}
  .live-topics{display:flex;gap:5px;list-style:none;padding:0;margin:0}
  .live-topic{width:15px;height:3px;border-radius:var(--radius-control);background:var(--line);transition:background-color 240ms ease}
  .live-topic.is-current{background:var(--brand-primary)}
  .live-topic.is-done{background:var(--brand-primary)}
  .live-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;flex:1;min-height:270px;max-height:340px;padding:12px 0 0}
  .call-orb{--call-orb-ratio:.8088235294;width:220px;height:220px;flex:none;position:relative;transform:scale(.92);transition:transform 600ms cubic-bezier(.22,1,.36,1),opacity 260ms ease}
  .live-state{font-size:var(--text-sm);line-height:1.5;color:var(--text);min-height:20px;text-align:center;margin:8px 0 0}
  .live-call[data-call-phase="speaking"] .call-orb{transform:scale(1)}
  .live-call[data-call-phase="listening"] .call-orb{transform:scale(.92)}
  .live-call[data-call-phase="topic-intro"] .call-orb{transform:scale(.87)}
  .live-call[data-call-phase="paused"] .call-orb,.live-call[data-call-phase="ended"] .call-orb{opacity:.7}
  .live-call[data-call-phase="paused"] .call-orb *,.live-call[data-call-phase="ended"] .call-orb *{animation-play-state:paused}
  .live-call[data-call-mode="modality"] .call-orb{transform:scale(1.1)}
  .live-call[data-call-mode="modality"] .live-topic-summary{color:var(--text)}
  .live-topic-intro,.live-moment-copy{text-align:center;padding:12px 0;animation:call-arrive 360ms cubic-bezier(.22,1,.36,1) both}
  .live-topic-intro h2,.live-moment-copy h2{font-size:var(--text-2xl);font-weight:400;line-height:1.25;letter-spacing:-.035em;margin:9px 0 0;text-wrap:balance}
  .live-topic-intro h2{font-family:var(--font);font-size:var(--text-4xl);line-height:1.12;letter-spacing:-.02em}
  .live-overline{color:var(--ink);font-size:var(--text-sm);line-height:1.5}
  .live-moment-hint{color:var(--text);font-size:var(--text-md);line-height:1.5;margin-top:12px}
  .live-moment-actions{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:82px}
  .live-moment-actions>.primary{width:100%}
  .live-moment-return{min-height:44px;font-size:var(--text-sm);color:var(--text);padding:8px 12px}
  .live-moment-pause{display:flex;align-items:center;gap:8px;min-height:44px;font-size:var(--text-sm);color:var(--ink);padding:8px 20px;border:1px solid var(--line);border-radius:var(--radius-panel)}
  .live-moment-pause svg{width:16px;height:16px}
  .live-dialogue{margin-top:12px;min-height:154px;padding-bottom:24px}
  .live-caption{font-size:var(--text-lg);line-height:1.6;letter-spacing:-.012em;text-wrap:pretty;overflow-wrap:anywhere}
  .live-caption-copy{animation:call-caption 200ms ease-out}
  .live-dialogue[data-captions-hidden="true"] .live-caption-copy{display:none}
  .live-captions-off{font-size:var(--text-md);color:var(--text);text-align:center;padding:28px 12px}
  .live-bottom{margin-top:auto;padding-top:16px}
  .live-controls{display:flex;justify-content:center;gap:32px;align-items:start}
  .live-control{display:flex;align-items:center;flex-direction:column;gap:8px;font-size:var(--text-xs);color:var(--text);padding:0;min-height:76px;min-width:56px}
  .live-control-disc{display:grid;place-items:center;width:52px;height:52px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);transition:background-color 180ms ease,color 180ms ease,transform 160ms var(--ease)}
  .live-control svg{width:22px;height:22px}
  .live-control[aria-pressed="true"] .live-control-disc{background:var(--selection);color:var(--ink)}
  .live-control[data-action="live-mute"][aria-pressed="true"] .live-control-disc{background:var(--ink);color:var(--surface)}
  .live-control.live-end .live-control-disc{background:var(--error);border-color:var(--error);color:var(--surface)}
  .live-control[data-action="live-more"] svg{stroke-width:4;stroke-linecap:round}
  .live-control:active{transform:none}
  .live-control:active .live-control-disc{transform:scale(.94)}
  .live-control:disabled{opacity:.55}
  .live-control:focus-visible{outline-offset:5px;border-radius:var(--radius-control)}
  .live-start{margin-bottom:12px}
  .live-prototype-note{margin-top:22px;color:var(--text-muted);font-size:var(--text-xs);line-height:1.5;text-align:center}
  .live-resume-link{display:block;margin:10px auto 0;min-height:44px;padding:8px 12px;font-size:var(--text-sm);color:var(--ink);text-decoration:underline;text-underline-offset:4px}
  .live-notice{font-size:var(--text-sm);line-height:1.5;color:var(--text);margin:8px 0}
  .live-secondary-actions{display:flex;justify-content:center;gap:24px;flex-wrap:wrap}
  .live-secondary-actions button{font-size:var(--text-sm);line-height:1.4;min-height:44px;padding:6px 0;text-decoration:underline;text-underline-offset:4px;color:var(--text)}
  .live-dialogue label{font-size:var(--text-sm);display:flex;justify-content:space-between;gap:12px}
  .live-dialogue label span{font-size:var(--text-xs);color:var(--text);font-weight:400}
  .live-dialogue textarea{min-height:98px;max-height:180px;border-radius:var(--radius-control);padding:12px 14px}
  .live-reply-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:8px}
  .live-reply-actions button{min-height:44px;font-size:var(--text-sm);color:var(--text)}
  .live-reply-actions .live-send{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:var(--radius-control);background:var(--brand-primary);color:var(--white)}
  .live-send svg{width:16px;height:16px}
  .live-reply-actions .live-send:disabled{background:var(--line);color:var(--text)}
  #call-transcript{max-width:480px;max-height:80svh;width:calc(100% - 32px);padding:24px;overscroll-behavior:contain}
  .live-transcript-note{font-size:var(--text-sm);color:var(--text);margin:12px 0 20px}
  .live-transcript-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:22px}
  .live-transcript-list li strong{display:block;font-size:var(--text-sm);font-weight:500;color:var(--ink);margin-bottom:6px}
  .live-transcript-list li p{font-size:var(--text-md);line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
  .live-transcript-list .live-transcript-topic{padding-top:16px;border-top:1px solid var(--line);font-size:var(--text-sm);font-weight:600}
  @keyframes call-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
  @keyframes call-caption{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
  @media(hover:hover) and (pointer:fine){
    .live-control:hover .live-control-disc{background:var(--line)}
    .live-control.live-end:hover .live-control-disc{background:var(--pulse-ink)}
    .live-moment-return:hover{color:var(--ink)}
  }
  @media(max-width:360px){
    .live-topic-summary{gap:10px}
    .live-topic-progress{gap:8px}
    .live-caption{font-size:var(--text-lg)}
    .live-dialogue{min-height:156px}
    .live-controls{gap:24px}
  }
  @media(max-height:760px){
    .live-stage{padding-top:0;min-height:220px}
    .call-orb{--call-orb-ratio:.6617647059;height:180px;width:180px}
    .live-dialogue{margin-top:10px;min-height:140px}
    .live-bottom{padding-top:10px}
  }
  @media(min-width:1000px){
    .live-call{min-height:640px}
    .live-dialogue{min-height:148px}
  }
  @media(prefers-reduced-motion:reduce){
    .live-call *,.live-call *::before{animation:none;transition:none}
    .live-control:active .live-control-disc{transform:none}
  }
  .keyboard .live-call *,.motion-paused .live-call *{animation:none;transition:none}
  .vision-portrait{margin:24px 0 0}
  .portrait-player{position:relative}
  .portrait-status{position:absolute;top:calc(100% + 22px);left:0;right:0;margin:0;color:var(--text);font-size:var(--text-sm);line-height:1.5;text-align:left}
  .portrait-player[data-phase="done"] .portrait-status{width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .portrait-player[data-phase="broken"] .portrait-status{position:static;margin:12px 0}
  .portrait-reflection{font-size:var(--text-sm);line-height:1.6;color:var(--text);margin:8px 0}
  body{ background: var(--canvas); }
  button,input,textarea,select{ font-family:var(--font); }
  button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
  outline: 3px solid var(--brand-primary); outline-offset: 4px;
}
  .workspace{ padding: 28px 0; }
  .app-shell{
  max-width: 520px; min-height: calc(100svh - 56px); border:1px solid var(--line-strong);
  border-radius:var(--radius-panel); box-shadow:0 12px 64px rgb(var(--still-rgb) / 0.031);
  isolation: isolate; overflow: clip;
}
  .brand-lockup{ width: 120px; }
  .content,.content.compact{
  padding: 24px var(--inset) 28px;
}
  .content h1,.content .question-title,.content .home-greeting h1{
  font-family: var(--font); font-size:var(--text-4xl); font-weight: 400;
  line-height: 1.08; letter-spacing: -.025em; text-wrap: pretty;
  overflow-wrap: break-word; max-width: none;
}
  .content h2{ font-size:var(--text-lg); line-height: 1.4; font-weight: 500; letter-spacing: -.02em; }
  .eyebrow{
  font-size:var(--text-xs); color: var(--brand-primary); line-height: 1.5;
  font-weight: 500; letter-spacing: .02em; margin-bottom: 14px;
}
  .intro{ font-size:var(--text-md); line-height: 1.65; margin-top: 16px; color: var(--text); }
  .footer{ margin-top: auto; padding-top: 32px; }
  .content > .footer{
  position: sticky; bottom: 0; z-index: 2; flex: none;
  margin-inline: calc(-1 * var(--inset)); margin-bottom: -28px;
  padding: 18px var(--inset) max(20px, env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
  .content > .footer::before{
  content: ''; display: block; position: absolute; left: 0; right: 0;
  height: 12px; top: -13px; background:linear-gradient(transparent, rgb(var(--surface-rgb) / 0.851));
  pointer-events: none;
}
  .content.compact > .footer{
  position: static; margin-inline: 0; margin-bottom: 0; padding: 28px 0 0;
  border: 0; background: transparent;
}
  .content.compact > .footer::before{ display: none; }
  .primary,.secondary{
  min-height: 56px; padding: 16px 40px; border-radius: var(--radius);
  font-size:var(--text-md); font-weight: 500; line-height: 1.5;
}
  .primary{ background: var(--brand-primary); box-shadow:0 4px 12px rgb(var(--still-rgb) / 0.071), inset 0 1px 0 rgb(var(--white-rgb) / 0.125); }
  .primary svg{ right: 20px; width: 18px; height: 18px; }
  .primary:disabled{ background:var(--selection); color:var(--text-muted); box-shadow: none; }
  .secondary{ background: var(--selection); color: var(--brand-primary); box-shadow: none; }
  label{ font-size:var(--text-sm); margin-bottom: 10px; color: var(--ink); }
  label small{ font-size:var(--text-xs); color: var(--text); font-weight: 400; }
  input,textarea,select{
  border:1px solid var(--line-strong); border-radius: var(--radius); padding: 16px;
  background:var(--surface); font-size:var(--text-md); line-height: 1.6;
}
  input:focus,textarea:focus,select:focus{ background:var(--surface); border-color: var(--brand-primary); }
  input::placeholder,textarea::placeholder{ color:var(--text-muted); }
  .field-group{ margin-top: 24px; }
  .preview-notice{ font-size:var(--text-xs); line-height: 1.6; }
  .content.welcome{ padding-top: 32px; }
  .content.welcome h1{ font-size:var(--text-4xl); line-height: 1.02; max-width: 13ch; }
  .welcome > .intro{ max-width: 34ch; }
  .welcome .footer{ padding-top: 20px; }
  .name-field{ margin-top: 40px; }
  .name-field label{ font-size:var(--text-xs); }
  .name-field input{ font-family: var(--font); font-size:var(--text-3xl); line-height: 1.2; border-bottom-color:var(--line-strong); padding: 12px 0 18px; background: transparent; }
  .name-field input::placeholder{ font-family:var(--font); font-size:var(--text-md); }
  .options{ margin-top: 26px; gap: 9px; }
  .option{ min-height: 58px; padding: 15px 17px; border-radius: var(--radius); border-color:var(--selection); background:var(--subtle); gap: 16px; }
  .option strong{ font-size:var(--text-sm); line-height: 1.5; font-weight: 400; }
  .selector{ width: 22px; height: 22px; background:var(--surface); border-color:var(--line-strong); }
  .selector svg{ width: 12px; height: 12px; }
  .option.selected{ border-color:var(--root); background:var(--still-tint); box-shadow:inset 0 0 0 .5px var(--root); }
  .option.selected strong{ color:var(--ink); font-weight: 500; }
  .option.selected .selector{ border-color: var(--brand-primary); background: var(--brand-primary); color:var(--white); }
  .call-prompt{ font-family: var(--font); font-size:var(--text-2xl); line-height: 1.3; font-weight: 400; }
  .call-review label{ font-size:var(--text-sm); }
  .content.live-call{ padding-top: 8px; padding-bottom: 24px; min-height: 640px; }
  .live-duration{ padding: 7px 11px; border: 1px solid var(--line); border-radius:var(--radius-card); font-size:var(--text-xs); }
  .live-topic-summary{ border-bottom: 1px solid var(--line); padding-bottom: 16px; min-height: 42px; }
  .live-current-topic{ font-size:var(--text-xs); color: var(--ink); }
  .live-topic-count{ font-size:var(--text-xs); }
  .live-topics{ gap: 4px; }
  .live-topic{ width: 17px; height: 3px; }
  .live-topic.is-current{ background: var(--brand-primary); }
  .live-stage{ min-height: 270px; max-height: 320px; padding-top: 20px; }
  .live-state{ font-size:var(--text-xs); margin-top: 14px; }
  .live-dialogue{ min-height: 164px; margin-top: 8px; padding: 10px 4px 28px; }
  .live-caption{ font-family: var(--font); font-size:var(--text-xl); font-weight: 400; line-height: 1.35; letter-spacing: -.015em; text-align: center; }
  .live-caption-copy{ animation: none; }
  .live-topic-intro,.live-moment-copy{ animation: none; }
  .live-topic-intro h2,.live-moment-copy h2{ font-family: var(--font); font-size:var(--text-4xl); font-weight: 400; line-height: 1.12; }
  .live-overline{ font-size:var(--text-xs); }
  .live-moment-hint{ font-size:var(--text-sm); }
  .live-controls{ gap: 38px; }
  .live-control{ font-size:var(--text-xs); gap: 10px; }
  .live-control-disc{ width: 54px; height: 54px; border: 0; background: var(--subtle); }
  .live-control.live-end .live-control-disc{ background: var(--error); }
  .live-prototype-note{ font-size:var(--text-xs); margin-top: 24px; }
  .live-secondary-actions{ gap: 20px; }
  .live-secondary-actions button,.live-resume-link{ font-size:var(--text-xs); }
  .live-dialogue textarea{ border-radius: var(--radius); background:var(--surface); }
  .live-reply-actions .live-send{ border-radius:var(--radius-control); }
  .vision-portrait{ margin-top: 28px; }
  .portrait-status{ top: calc(100% + 28px); text-align: center; font-size:var(--text-sm); }
  .portrait-reflection{ font-size:var(--text-sm); }
  .toggle{ width: 46px; height: 28px; min-height: 28px; background:var(--root); }
  .toggle span{ width: 22px; height: 22px; top: 3px; left: 3px; box-shadow:0 1px 3px rgb(var(--still-rgb) / 0.094); }
  .toggle.on{ background: var(--brand-primary); }
  .toggle.on span{ transform: translateX(18px); }
  .content .home-greeting h1{ font-size:var(--text-3xl); line-height: 1.12; }
  .home-greeting p{ font-size:var(--text-sm); margin-top: 10px; }
  .bottom-nav{ padding: 12px 20px max(14px, env(safe-area-inset-bottom)); border-color: var(--line); }
  .bottom-nav button{ font-size:var(--text-xs); gap: 6px; min-height: 54px; }
  .bottom-nav button svg{ width: 20px; height: 20px; }
  .next-label{ font-size:var(--text-xs); color: var(--brand-primary); }
  .time-note{ font-size:var(--text-xs); text-align: center; margin-top: 14px; }
  .reflection{ margin-top: 24px; }
  .addition{ padding: 24px 0; }
  .addition p{ font-size:var(--text-md); }
  dialog{ border:1px solid var(--line-strong); border-radius:var(--radius-panel); padding: 28px; max-width: 440px; box-shadow:0 24px 100px rgb(var(--still-rgb) / 0.141); }
  dialog::backdrop{ background:rgb(var(--still-rgb) / 0.322); backdrop-filter: blur(5px); }
  dialog h2{ font-family: var(--font); font-size:var(--text-3xl); font-weight: 400; line-height: 1.15; }
  dialog p{ font-size:var(--text-sm); line-height: 1.65; margin: 16px 0 24px; }
  #call-transcript{ padding: 28px; border-radius:var(--radius-panel); }
  .live-transcript-note{ font-size:var(--text-xs); }
  .live-transcript-list{ gap: 20px; }
  .live-transcript-list li p{ font-size:var(--text-sm); margin: 0; }
  .live-transcript-list li strong{ font-size:var(--text-xs); }
  .live-transcript-list .live-transcript-topic{ font-size:var(--text-sm); }
  .studio-bar{ top: 44px; left: max(28px, calc(50% - 570px)); width: 202px; gap: 10px; }
  .studio-brand{ font-family: var(--font); font-size:var(--text-2xl); letter-spacing: -.025em; font-weight: 400; }
  .studio-brand span{ font-family:var(--font); font-size:var(--text-xs); letter-spacing: .01em; margin-top: 8px; }
  .quiet{ font-size:var(--text-xs); }
  .quiet{ min-height: 32px; }
  .prototype-nav{ top: 218px; left: max(28px, calc(50% - 570px)); width: 202px; max-height: calc(100svh - 242px); scrollbar-width: thin; }
  .prototype-nav summary{ font-size:var(--text-xs); min-height: 36px; }
  .scene{ min-height: 56px; font-size:var(--text-xs); padding: 11px 12px; gap: 12px; border-radius:var(--radius-card); margin: 5px 0; }
  .scene small{ font-size:var(--text-xs); line-height: 1.5; margin-top: 3px; }
  .scene-number{ font-size:var(--text-xs); }
  .scene.active{ background:var(--surface); box-shadow:0 3px 12px rgb(var(--still-rgb) / 0.024); }
  body[data-studio='true'] .design-notes{ right: max(24px, calc(50% - 570px)); width: 210px; top: 52px; }
  .design-notes h2{ font-family: var(--font); font-size:var(--text-2xl); font-weight: 400; line-height: 1.15; }
  .design-notes p{ font-size:var(--text-xs); line-height: 1.7; }
  .design-notes .note-label,.design-notes .note-source{ font-size:var(--text-xs); }
  .call-brief{ font-size:var(--text-xs); }
  @media (hover: hover) and (pointer: fine){
    .option:not(.selected):hover{ border-color:var(--line-strong); background:var(--still-tint); transform: translateY(-1px); }
    .primary:not(:disabled):hover{ background: var(--brand-primary-strong); box-shadow:0 6px 20px rgb(var(--still-rgb) / 0.125); }
  }
  @media (min-width: 1000px){
    .welcome-opening{ inset: 28px 0; border-radius:var(--radius-panel); }
  }
  @media (max-width: 999px){
    .workspace{ padding: 0; }
    .app-shell{ min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; }
    body{ background:var(--surface); }
    body[data-studio='true'] .studio-bar{ padding: 10px 20px; background: var(--canvas); }
    body[data-studio='true'] .studio-brand{ font-size:var(--text-lg); }
    body[data-studio='true'] .prototype-nav{ padding: 8px 20px; background: var(--canvas); }
    body[data-studio='true'] .app-shell{ min-height: calc(100svh - 110px); }
    body[data-studio='true'] .scene{ margin: 0; }
  }
  @media (max-width: 540px){
    .content,.content.compact{ padding: 24px var(--inset) 24px; }
    .content h1,.content .question-title{ font-size:var(--text-4xl); }
    .content.welcome{ padding-top: 26px; }
    .content.welcome h1{ font-size:var(--text-4xl); }
    .intro{ font-size:var(--text-sm); }
    .option{ min-height: 58px; padding: 14px 16px; }
    .content .home-greeting h1{ font-size:var(--text-3xl); }
    .content.live-call{ min-height: calc(100svh - 72px); padding-top: 8px; }
    .live-stage{ max-height: 320px; min-height: 255px; }
    .live-dialogue{ padding-inline: 0; min-height: 154px; }
    .live-caption{ font-size:var(--text-xl); }
    .live-controls{ gap: 34px; }
    .content > .footer{ margin-bottom: -24px; }
    dialog,#call-transcript{ padding: 24px; }
  }
  @media (max-width: 360px){
    .content h1,.content .question-title{ font-size:var(--text-3xl); }
    .content.welcome h1{ font-size:var(--text-4xl); }
    .live-caption{ font-size:var(--text-xl); }
    .live-controls{ gap: 28px; }
  }
  @media (max-height: 740px){
    .content.live-call{ min-height: 570px; }
    .live-stage{ min-height: 215px; max-height: 250px; padding-top: 8px; }
    .live-dialogue{ min-height: 140px; padding-bottom: 20px; }
  }
  @media (prefers-reduced-motion: reduce){
    .option:hover{ transform: none; }
  }
  [data-motion-ghost],[data-motion-ghost] *{
  pointer-events: none; user-select: none;
}
  [data-motion-ghost] *,[data-motion-ghost] *::before,[data-motion-ghost] *::after{
  animation: none; transition: none;
}
  @media (prefers-reduced-motion: reduce){
    [data-motion-ghost]{ display: none; }
  }
  .compass-trail{position:absolute;top:0;left:0;width:100%;height:1400px;z-index:-1;overflow:visible;fill:none;stroke-linecap:round}
  .compass-stop{position:absolute;left:0;right:0;top:var(--stop-y);height:72px;margin:0;padding:0}
  .stage-button{position:relative;display:block;width:100%;height:72px;text-align:left;padding:0;background:transparent;border:0;border-radius:var(--radius-card)}
  .stage-button:focus-visible{outline:2px solid var(--brand-primary);outline-offset:-5px}
  .stage-button:disabled{opacity:1;cursor:default;transform:none}
  body[data-vision-board=true] .prototype-nav,body[data-vision-board=true] .design-notes,body[data-vision-board=true] .studio-bar{display:none}
  body[data-vision-board=true] .workspace{display:block;width:calc(100% - 48px);max-width:1280px;margin:0 auto;padding:24px 0}
  body[data-vision-board=true] .app-shell{max-width:none;width:100%;min-height:calc(100svh - 48px)}
  .vb-viewport{position:relative;height:clamp(360px,calc(100svh - 410px),780px);min-height:360px;overflow:hidden;border-radius:var(--radius-card);border:1px solid var(--line-strong);background:radial-gradient(circle,var(--line-strong) 1px,transparent 1px) 0 0/24px 24px,var(--selection);cursor:grab;touch-action:none;isolation:isolate}
  .vb-viewport.is-panning{cursor:grabbing}
  .vb-world{position:absolute;left:0;top:0;width:1px;height:1px;transform-origin:0 0;will-change:transform}
  .vb-card{position:absolute;border:1px solid var(--line-strong);border-radius:var(--radius-card);overflow:hidden;background:var(--surface);box-shadow:0 7px 25px rgb(var(--still-rgb) / 0.051);cursor:default;transform-origin:center}
  .vb-card:focus-within{outline:2px solid var(--brand-primary);outline-offset:4px;z-index:3}
  .vb-card-handle{display:flex;align-items:center;justify-content:space-between;padding:6px 8px 5px 14px;min-height:35px;gap:8px;color:var(--text);background:var(--surface)}
  .vb-card-handle>span{font-size:var(--text-xs);letter-spacing:.9px;text-transform:uppercase}
  .vb-card-handle button{display:grid;place-items:center;cursor:grab;width:28px;height:28px;min-height:28px;border-radius:var(--radius-control);background:var(--selection)}
  .vb-card-handle svg{width:14px;height:14px}
  .vb-card-open{display:block;width:100%;text-align:left;padding:0;color:inherit;cursor:pointer}
  .vb-card-open>img{display:block;width:100%;height:126px;object-fit:cover;pointer-events:none}
  .vb-card-words{padding:17px 18px 12px}
  .vb-card h2{font-family:var(--font);font-size:var(--text-xl);line-height:1.12;font-weight:400;color:var(--ink);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
  .vb-card p{font-size:var(--text-xs);line-height:1.65;color:var(--text-muted);margin-top:10px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}
  .vb-root{border-color:var(--line-strong);box-shadow:0 7px 30px rgb(var(--root-rgb) / 0.082)}
  .vb-root .vb-card-open>img{height:160px}
  .vb-root .vb-card-handle{background:var(--selection)}
  .vb-root .vb-card-handle>span{color:var(--root-ink)}
  .vb-root p{font-family:var(--font);font-size:var(--text-lg);line-height:1.3;-webkit-line-clamp:3;color:var(--ink);margin-top:10px}
  .vb-root h2{font-size:var(--text-sm);font-family:var(--font);font-weight:500}
  .vb-note{background:var(--ember-tint);border-color:var(--line-strong);border-radius:var(--radius-control) var(--radius-card) var(--radius-card) var(--radius-card);box-shadow:0 7px 20px rgb(var(--ember-rgb) / 0.071)}
  .vb-note .vb-card-handle{background:transparent;color:var(--ember-ink)}
  .vb-note .vb-card-handle button{background:rgb(var(--ember-rgb) / 0.471)}
  .vb-note .vb-card-words{padding-top:10px}
  .vb-note h2{font-family:var(--font);font-size:var(--text-xs);color:var(--ember-ink)}
  .vb-note p{font-family:var(--font);font-size:var(--text-xl);line-height:1.2;color:var(--ember-ink);-webkit-line-clamp:4}
  .vision-board-dialog{width:min(480px,calc(100vw - 24px));max-height:92svh;padding:28px;border-radius:var(--radius-panel);border:1px solid var(--line-strong);box-shadow:0 20px 100px rgb(var(--still-rgb) / 0.2);overflow:auto;scrollbar-width:thin}
  .vision-board-dialog::backdrop{background:rgb(var(--still-rgb) / 0.333);backdrop-filter:blur(5px)}
  .vision-board-dialog>h2{font-family:var(--font);font-size:var(--text-4xl);font-weight:400;line-height:1.08;letter-spacing:-.6px;color:var(--ink);margin:0}
  .vb-example{font-size:var(--text-xs);color:var(--ink);min-height:40px;margin-top:3px;text-decoration:underline;text-underline-offset:4px}
  .vb-practice{padding:18px;background:var(--selection);border-radius:var(--radius-card);margin-top:22px}
  .vb-practice small{font-size:var(--text-xs);color:var(--root-ink)}
  .vb-practice p{font-size:var(--text-sm);line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:9px}
  .vb-field-error{font-size:var(--text-xs);color:var(--error);line-height:1.6}
  @media(max-width:720px){
    body[data-vision-board=true] .workspace{width:100%;padding:0}
    body[data-vision-board=true] .app-shell{border:0;border-radius:0;min-height:100svh}
    .vb-viewport{height:calc(100svh - 280px);min-height:380px;border-radius:var(--radius-card)}
    .vision-board-dialog{padding:23px}
    .vision-board-dialog>h2{font-size:var(--text-3xl)}
  }
  @media(max-width:360px){
    .vision-board-dialog{padding:19px}
    .vision-board-dialog>h2{font-size:var(--text-3xl)}
  }
  @media(prefers-reduced-motion:no-preference){
    .vb-card-open:hover{background:var(--subtle)}
  }
  @media(max-width:720px){
    .vb-viewport{height:calc(100svh - 335px);min-height:330px}
  }
  body{ background: var(--canvas); }
  body[data-studio='false'] .studio-bar,body[data-studio='false'] .prototype-nav,body[data-studio='false'] .design-notes{ display: none; }
  body[data-studio='false']:not([data-vision-board='true']) .workspace{
  display: block; width: 100%; max-width: 640px; margin: 0 auto; padding: 24px 0;
}
  body[data-studio='false']:not([data-vision-board='true']) .app-shell{
  max-width: none; min-height: calc(100svh - 48px); border-radius:var(--radius-panel);
  border-color:var(--line-strong); box-shadow:0 18px 80px rgb(var(--still-rgb) / 0.035);
}
  .content,.content.compact{ padding: 28px var(--inset); }
  .content h1,.content .question-title{
  font-size:var(--text-4xl); line-height: 1.08; letter-spacing: -.028em; text-wrap: balance;
}
  .intro{ font-size:var(--text-md); line-height: 1.65; }
  .eyebrow{ font-size:var(--text-xs); letter-spacing: .035em; }
  .primary{ border-radius:var(--radius-card); min-height: 56px; font-size:var(--text-md); font-weight: 500; box-shadow:0 4px 10px rgb(var(--still-rgb) / 0.071); }
  .secondary{ min-height: 52px; border:1px solid var(--line-strong); border-radius:var(--radius-card); font-size:var(--text-md); background:var(--surface); color: var(--ink); margin-top: 10px; }
  .content > .footer{ margin-bottom: -28px; padding-top: 16px; padding-bottom: max(18px,env(safe-area-inset-bottom)); background:rgb(var(--surface-rgb) / 0.929); backdrop-filter: blur(12px); }
  .option{ min-height: 62px; border-radius:var(--radius-card); background:var(--subtle); padding: 16px 18px; border-color:var(--line-strong); }
  .option strong{ font-size:var(--text-md); font-weight: 400; line-height: 1.45; }
  .option.selected{ background:var(--still-tint); border-color:var(--root); box-shadow: inset 3px 0 0 var(--brand-primary); }
  .option.selected strong{ color:var(--root-ink); font-weight: 500; }
  .selector{ width: 24px; height: 24px; }
  input:not([type='time']),textarea,select{ font-size:var(--text-md); }
  textarea{ line-height: 1.65; }
  .name-field input{ font-family: var(--font); font-size:var(--text-4xl); }
  .content.welcome{ padding-top: 24px; }
  .content.welcome > .footer{ position: static; margin: auto 0 0; padding: 14px 0 0; border: 0; background: none; backdrop-filter: none; }
  .content.welcome > .footer::before{ display: none; }
  .compass-trail{ height: var(--trail-height,1400px); }
  .portrait-status{ position: static; margin: 14px 0 0; text-align: center; font-size:var(--text-xs); }
  .portrait-skip{ display: block; margin: 0 auto; min-height: 44px; font-size:var(--text-sm); color: var(--brand-primary); }
  .portrait-skip[hidden]{ display: none; }
  .vb-card-handle button{ min-width: 44px; min-height: 40px; }
  .toggle{ position: relative; min-height: 32px; height: 32px; width: 50px; }
  .toggle::before{ content: ''; position: absolute; inset: -7px 0; }
  .toggle span{ top: 5px; left: 5px; }
  .bottom-nav{ position: sticky; bottom: 0; z-index: 6; background:rgb(var(--surface-rgb) / 0.949); backdrop-filter: blur(18px); padding-bottom: max(12px,env(safe-area-inset-bottom)); }
  .bottom-nav button{ font-size:var(--text-xs); min-height: 58px; }
  dialog{ overscroll-behavior: contain; }
  dialog .primary{ font-size:var(--text-md); }
  dialog p{ font-size:var(--text-md); }
  .live-secondary-actions button{ min-height: 44px; font-size:var(--text-sm); }
  .live-prototype-note{ font-size:var(--text-xs); }
  .live-current-topic,.live-state{ font-size:var(--text-sm); }
  @media (min-width: 900px){
    body[data-studio='false']{ background:radial-gradient(ellipse at 15% 20%,var(--line-strong),transparent 44%),radial-gradient(ellipse at 85% 80%,var(--root-tint),transparent 42%),var(--selection); background-attachment: fixed; }
    body[data-studio='false'][data-screen='welcome'] .workspace,body[data-studio='false'][data-screen='vision'] .workspace{ max-width: 1000px; padding: 32px 0; }
    body[data-studio='false'][data-screen='welcome'] .app-shell,body[data-studio='false'][data-screen='vision'] .app-shell{ min-height: calc(100svh - 64px); }
    body[data-studio='false'] .content.welcome{ display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto auto; column-gap: 56px; padding: 36px 48px 44px; align-content: center; }
    body[data-studio='false'] .content.welcome > .footer{ grid-column: 2; grid-row: 2; margin: 0; align-self: end; padding-top: 8px; }
    body[data-studio='false'][data-screen='compass'] .workspace{ max-width: 720px; }
    body[data-studio='false'][data-screen='vision'] .bottom-nav{ padding-inline: calc((100% - 500px) / 2); }
    .content.live-call{ min-height: 690px; }
  }
  @media (max-width: 720px){
    body[data-studio='false']:not([data-vision-board='true']) .workspace{ padding: 0; }
    body[data-studio='false']:not([data-vision-board='true']) .app-shell{ min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; }
    body{ background:var(--surface); }
    .content,.content.compact{ padding: 24px var(--inset); }
    .content h1,.content .question-title{ font-size:var(--text-4xl); }
    .content.welcome{ padding-top: 22px; }
    .content > .footer{ margin-bottom: -24px; }
    .vision-board-dialog{ max-height: calc(100dvh - 24px); }
  }
  @media (max-width: 360px){
    .content h1,.content .question-title{ font-size:var(--text-3xl); }
    .option strong{ font-size:var(--text-md); }
  }
  @media (prefers-reduced-motion:no-preference){
    .option{ transition: background 180ms ease,border-color 180ms ease,box-shadow 250ms ease,transform 250ms var(--ease); }
  }
  body[data-vision-board='true']{ overflow: hidden; overscroll-behavior: none; background:var(--selection); }
  body[data-vision-board='true'] .studio-bar,body[data-vision-board='true'] .prototype-nav,body[data-vision-board='true'] .design-notes{ display: none; }
  body[data-screen][data-vision-board='true'] .workspace{ position: fixed; inset: 0; display: block; width: 100%; max-width: none; height: 100dvh; margin: 0; padding: 0; }
  body[data-vision-board='true'] .app-shell{ width: 100%; height: 100%; min-height: 0; max-width: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; }
  .board-appbar{ display: flex; align-items: center; gap: 5px; padding: calc(10px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left)); background:var(--surface); border-bottom:1px solid var(--line-strong); z-index: 2; }
  .board-title{ flex: 1; min-width: 0; padding-left: 5px; }
  .board-title h1{ font-family: var(--font); font-size:var(--text-2xl); font-weight: 400; line-height: 1.1; letter-spacing: -.5px; margin: 0; color:var(--ink); }
  .board-title p{ display: flex; align-items: center; gap: 5px; margin-top: 4px; color:var(--text); font-size:var(--text-xs); line-height: 1.4; }
  .board-saved-dot{ width: 5px; height: 5px; border-radius: 50%; background:var(--text-muted); }
  .board-icon{ display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 10px; border-radius: 50%; color:var(--text); border: 1px solid transparent; }
  .board-icon svg{ width: 21px; height: 21px; flex: none; }
  .board-icon:disabled{ opacity: .3; cursor: default; }
  .board-zoom-button:disabled{ opacity: .35; cursor: default; }
  .board-icon:focus-visible,.board-zoom-button:focus-visible,.board-add:focus-visible{ outline:2px solid var(--text); outline-offset: 3px; }
  .board-app .vb-viewport{ width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; margin: 0; background-color:var(--selection); background-image:radial-gradient(circle,var(--line-strong) 1px,transparent 1px); background-size: 24px 24px; box-shadow: none; isolation: isolate; touch-action: none; cursor: grab; overflow: hidden; }
  .board-app .vb-viewport:focus-visible{ outline:2px solid var(--text-muted); outline-offset: -4px; }
  .board-app .vb-world{ position: absolute; inset: 0; transform-origin: 0 0; }
  .board-app .vb-card{ display: flex; flex-direction: column; border:1px solid var(--line-strong); border-radius:var(--radius-card); overflow: hidden; box-shadow:0 10px 25px rgb(var(--root-rgb) / 0.063),0 2px 4px rgb(var(--root-rgb) / 0.035); background:var(--surface); user-select: none; touch-action: none; }
  .board-app .vb-card-handle{ flex: none; height: 44px; padding: 0 5px 0 16px; background:var(--surface); border: 0; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
  .board-app .vb-card-handle > span{ font-size:var(--text-xs); font-weight: 500; letter-spacing: 1px; color:var(--text); }
  .board-app .vb-card-handle button{ width: 44px; min-width: 44px; height: 44px; padding: 12px; touch-action: none; }
  .board-app .vb-card-handle svg{ width: 16px; height: 16px; }
  .board-app .vb-card-open{ display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; padding: 0; border-radius: 0; overflow: hidden; text-align: left; cursor: grab; touch-action: none; }
  .board-app .vb-card-open > img{ width: 100%; height: 42%; min-height: 0; object-fit: cover; flex: none; pointer-events: none; }
  .board-app .vb-card-words{ padding: 14px 16px 0; flex: 1; min-height: 0; overflow: hidden; }
  .board-app .vb-card-words h2{ margin: 0 0 7px; font-family: var(--font); font-size:var(--text-xl); line-height: 1.08; font-weight: 400; color:var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .board-app .vb-card-words p{ font-size:var(--text-sm); line-height: 1.5; margin: 0; color:var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .board-app .vb-note,.board-app .vb-note .vb-card-handle,.board-app .vb-note .vb-card-open{ background:var(--ember-tint); border-color:var(--line-strong); }
  .board-app .vb-note .vb-card-words p{ font-family: var(--font); font-size:var(--text-xl); line-height: 1.25; color:var(--ember-ink); }
  .board-app .vb-card.is-dragging{ box-shadow:0 18px 38px rgb(var(--root-rgb) / 0.157); z-index: 5; }
  .board-app .vb-card:focus-within{ outline-color:var(--text-muted); }
  .board-app .is-panning,.board-app .is-panning .vb-card-open{ cursor: grabbing; }
  .board-gesture-tip{ position: absolute; inset: 20px 12px auto; text-align: center; color:var(--text-muted); font-size:var(--text-xs); pointer-events: none; }
  .board-gesture-tip[hidden]{ display: none; }
  .board-card-pager{ position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 3px; border:1px solid var(--line-strong); border-radius:var(--radius-panel); background:rgb(var(--surface-rgb) / 0.961); box-shadow:0 5px 18px rgb(var(--root-rgb) / 0.071); }
  .board-card-pager > span{ min-width: 42px; text-align: center; font-size:var(--text-xs); color:var(--text); font-variant-numeric: tabular-nums; }
  .board-card-pager .board-icon{ width: 44px; }
  .board-dock{ padding: 12px max(20px,env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left)); background:var(--surface); border-top:1px solid var(--line-strong); z-index: 2; }
  .board-dock-row{ display: flex; gap: 16px; align-items: center; justify-content: center; max-width: 440px; margin-inline: auto; }
  .board-dock .board-icon{ border-color:var(--line-strong); }
  .board-add{ min-height: 50px; flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; background:var(--brand-primary-strong); color:var(--white); border-radius:var(--radius-panel); box-shadow:0 3px 7px rgb(var(--still-rgb) / 0.082); font-size:var(--text-sm); font-weight: 500; padding: 12px 20px; }
  .board-add svg{ width: 18px; height: 18px; }
  .board-zoom-button{ min-width: 48px; height: 44px; min-height: 44px; font-size:var(--text-xs); color:var(--text); font-variant-numeric: tabular-nums; border-radius:var(--radius-card); }
  .board-dock-note{ text-align: center; margin: 9px 0 0; font-size:var(--text-xs); color:var(--text-muted); line-height: 1.4; }
  .board-empty{ position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 25px; pointer-events: none; }
  .board-empty-art{ width: 240px; height: 165px; position: relative; margin-bottom: 25px; }
  .board-empty-art img{ position: absolute; width: 120px; height: 142px; object-fit: cover; border:7px solid var(--surface); border-bottom-width: 26px; box-shadow:0 5px 15px rgb(var(--root-rgb) / 0.078); border-radius:var(--radius-control); }
  .board-empty-art img:first-child{ left: 14px; top: 10px; transform: rotate(-11deg); }
  .board-empty-art img:nth-child(2){ right: 13px; transform: rotate(10deg); }
  .board-empty-art span{ position: absolute; bottom: 0; left: 77px; transform: rotate(-4deg); background:var(--ember-tint); padding: 10px 16px; font-family: var(--font); font-size:var(--text-xl); color:var(--ember-ink); box-shadow:0 3px 8px rgb(var(--root-rgb) / 0.063); }
  .board-empty h2{ font-family: var(--font); font-size:var(--text-4xl); font-weight: 400; line-height: 1.05; color:var(--text); margin: 0; }
  .board-empty > p{ font-size:var(--text-sm); line-height: 1.7; color:var(--text-muted); margin: 15px 0; }
  .board-empty-guide{ pointer-events: auto; display: flex; gap: 7px; align-items: center; min-height: 44px; padding: 8px 12px; color:var(--ink); font-size:var(--text-xs); border-radius:var(--radius-panel); }
  .board-empty-guide svg{ width: 16px; height: 16px; }
  dialog.vision-board-dialog{ position: fixed; inset: auto 0 0; width: min(100%,520px); max-width: none; margin: 0 auto; max-height: calc(var(--board-sheet-height,100dvh) - 20px); padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); border:1px solid var(--line-strong); border-bottom: 0; border-radius:var(--radius-panel) var(--radius-panel) 0 0; background:var(--surface); box-shadow:0 -10px 60px rgb(var(--still-rgb) / 0.141); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  dialog.vision-board-dialog::backdrop{ background:rgb(var(--ink-rgb) / 0.314); backdrop-filter: blur(3px); }
  .vision-board-dialog .board-sheet-grip{ height: 4px; width: 34px; border-radius:var(--radius-control); background:var(--line-strong); margin: -12px auto 16px; }
  .vision-board-dialog > h2{ font-size:var(--text-3xl); line-height: 1.06; margin-top: 18px; letter-spacing: -.7px; }
  .vision-board-dialog .primary{ background:var(--brand-primary-strong); }
  .vision-board-dialog .primary:hover:not(:disabled){ background:var(--brand-primary-strong); }
  .vision-board-dialog .board-sheet-back{ min-height: 44px; margin-top: 10px; }
  .vision-board-dialog input,.vision-board-dialog textarea{ font-size:var(--text-md); scroll-margin-block: 24px; border-radius:var(--radius-card); }
  .vision-board-dialog .vb-example{ min-height: 44px; }
  .vision-board-dialog .vb-field-error:empty{ display: none; }
  .board-sheet-choices{ display: grid; gap: 10px; margin-top: 22px; }
  .board-sheet-choice{ display: flex; align-items: center; gap: 14px; text-align: left; padding: 17px 15px; min-height: 84px; border:1px solid var(--line-strong); border-radius:var(--radius-card); background:var(--subtle); color:var(--text); }
  .board-sheet-choice:disabled{ opacity: .4; }
  .board-choice-icon{ display: grid; place-items: center; width: 35px; height: 40px; flex: none; }
  .board-choice-icon svg{ width: 25px; height: 25px; }
  .board-sheet-choice > span:nth-child(2){ flex: 1; min-width: 0; }
  .board-sheet-choice strong,.board-sheet-card strong{ display: block; font-size:var(--text-md); font-weight: 500; line-height: 1.35; }
  .board-sheet-choice small{ display: block; font-size:var(--text-xs); line-height: 1.5; color:var(--text-muted); margin-top: 4px; }
  .board-sheet-choice > svg,.board-sheet-card > svg{ width: 17px; height: 17px; flex: none; }
  .board-sheet-card-list{ display: grid; gap: 10px; margin-top: 24px; }
  .board-sheet-card{ display: flex; align-items: center; gap: 14px; padding: 12px; border:1px solid var(--line-strong); border-radius:var(--radius-card); text-align: left; color:var(--text); }
  .board-sheet-card > img,.board-list-note{ width: 54px; height: 64px; border-radius:var(--radius-control); object-fit: cover; flex: none; }
  .board-list-note{ display: grid; place-items: center; background:var(--ember-tint); color:var(--text-muted); }
  .board-list-note svg{ width: 24px; height: 24px; }
  .board-sheet-card > span:not(.board-list-note){ flex: 1; overflow-wrap: anywhere; }
  .board-sheet-card small{ font-size:var(--text-xs); color:var(--text-muted); margin-top: 6px; display: block; }
  .board-sheet-zoom{ display: flex; justify-content: center; align-items: center; gap: 35px; background:var(--selection); border-radius:var(--radius-card); padding: 16px; margin-top: 25px; }
  .board-sheet-zoom output{ min-width: 64px; text-align: center; font-size:var(--text-2xl); font-family: var(--font); }
  .board-sheet-zoom .board-icon{ background:var(--surface); }
  .board-help-list{ display: grid; gap: 20px; margin: 25px 0; }
  .board-help-list p{ font-size:var(--text-sm); line-height: 1.6; color:var(--text-muted); }
  .board-help-list strong{ display: block; color:var(--text); font-size:var(--text-md); margin-bottom: 4px; }
  @media(min-width:721px){
    .board-appbar{ padding-inline: 24px; }
    .board-dock{ padding-block: 13px; }
    .board-title h1{ font-size:var(--text-3xl); }
    .board-app .vb-viewport{ background-color:var(--selection); }
    .board-card-pager{ bottom: 22px; }
  }
  @media(max-width:360px){
    .board-appbar{ padding-inline: 6px; gap: 1px; }
    .board-title h1{ font-size:var(--text-2xl); }
    .board-dock{ padding-inline: 14px; }
    .board-dock-row{ gap: 9px; }
    dialog.vision-board-dialog{ padding-inline: 20px; }
    .vision-board-dialog > h2{ font-size:var(--text-3xl); }
  }
  @media(max-height:650px){
    .board-gesture-tip{ top: 12px; }
    .board-card-pager{ bottom: 10px; }
    .board-empty-art{ display: none; }
    .board-empty h2{ font-size:var(--text-3xl); }
  }
  @media(hover:hover) and (pointer:fine){
    .board-icon:not(:disabled):hover,.board-zoom-button:hover,.board-empty-guide:hover{ background:var(--selection); }
    .board-add:hover{ background:var(--brand-primary-strong); }
    .board-sheet-choice:not(:disabled):hover,.board-sheet-card:hover{ border-color:var(--root); background:var(--selection); }
  }
  @media(prefers-reduced-motion:no-preference){
    .board-icon,.board-zoom-button,.board-add,.board-sheet-choice,.board-sheet-card{ transition: background 180ms,border-color 180ms,transform 180ms; }
    .board-add:active,.board-icon:not(:disabled):active,.board-sheet-choice:not(:disabled):active{ transform: scale(.96); }
  }
  .voice-entry{ --voice-accent:var(--ink); --voice-space:132px; display:block; width:100%; min-width:0; margin:10px 0 0; padding:0; border:1px solid var(--line-strong); border-radius:var(--radius-card); background:var(--surface); color:var(--ink); text-align:left; scroll-margin-block:20px 24px; }
  .voice-entry *,.voice-entry *::before,.voice-entry *::after{ box-sizing:border-box; }
  .voice-entry.voice-compact{ --voice-space:52px; }
  .voice-chrome{ display:flex; flex-direction:column; gap:12px; padding:18px; }
  .voice-entry .voice-native-field{ display:none; }
  .voice-entry .voice-body{ flex:1; min-height:var(--voice-space); max-height:260px; overflow:auto; margin:0; padding:0; font-family:var(--font); font-size:var(--text-md); line-height:1.65; font-weight:400; letter-spacing:normal; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--ink); }
  .voice-entry .voice-placeholder{ color:var(--text-muted); }
  .voice-entry[data-mode='type'] .voice-native-field{ display:block; width:100%; max-width:100%; min-height:calc(var(--voice-space) + 18px); margin:0; padding:18px 18px 0; border:0; border-radius:var(--radius-card) var(--radius-card) 0 0; outline:0; box-shadow:none; background:transparent; font-family:var(--font); font-size:var(--text-md); line-height:1.65; color:var(--ink); resize:vertical; }
  .voice-entry[data-mode='type'] .voice-chrome{ padding-top:12px; }
  .voice-entry.voice-compact[data-mode='type'] .voice-native-field{ height:70px; }
  .voice-entry [hidden]{ display:none; }
  .voice-entry button{ font-family:var(--font); font-weight:400; cursor:pointer; border:0; margin:0; }
  .voice-entry button:disabled{ opacity:.45; cursor:default; }
  .voice-entry svg{ width:18px; height:18px; flex:none; }
  .voice-entry :is(button,summary,textarea):focus-visible{ outline:2px solid var(--root-ink); outline-offset:3px; }
  .voice-entry:focus-within{ border-color:var(--text-muted); box-shadow:0 0 0 3px rgb(var(--root-rgb) / 0.043); }
  .voice-entry:has(.voice-native-field:disabled){ opacity:.5; pointer-events:none; }
  .voice-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; }
  .voice-confirm,.voice-inline,.voice-type{ display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:10px 15px; font-size:var(--text-sm); line-height:1.3; border-radius:var(--radius-panel); background:transparent; white-space:nowrap; }
  .voice-entry .voice-confirm{ background:var(--voice-accent); color:var(--white); font-weight:500; }
  .voice-inline,.voice-type{ color:var(--text-muted); padding-inline:7px; }
  .voice-record-head,.voice-review-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; min-height:24px; }
  .voice-status{ display:flex; align-items:center; gap:8px; font-size:var(--text-xs); line-height:1.5; color:var(--text); }
  .voice-status i{ width:6px; height:6px; flex:none; border-radius:50%; background:var(--ember-ink); }
  [data-voice-timer]{ font-size:var(--text-xs); font-variant-numeric:tabular-nums; color:var(--text-muted); }
  .voice-entry[data-mode='recording']{ border-color:var(--root); }
  .voice-entry:is([data-mode='recording'],[data-mode='review'],[data-mode='requesting'],[data-mode='finishing']) .voice-body{ min-height:calc(var(--voice-space) - 36px); }
  .voice-entry .voice-support{ color:var(--text-muted); font-size:var(--text-sm); }
  .voice-review-head h3{ font-family:var(--font); font-size:var(--text-xs); line-height:1.5; font-weight:400; color:var(--text-muted); margin:0; }
  .voice-round{ display:grid; place-items:center; flex:none; width:44px; height:44px; padding:12px; border-radius:50%; color:var(--text-muted); background:transparent; margin:-10px -10px -10px 0; }
  .voice-entry textarea[data-voice-review]{ width:100%; min-height:120px; border:0; border-radius:var(--radius-control); background:transparent; color:var(--ink); resize:vertical; }
  .voice-review-tools{ display:flex; align-items:center; gap:5px; margin-left:-7px; }
  .voice-review-options{ position:relative; }
  .voice-review-options > summary{ display:flex; align-items:center; min-height:44px; padding:8px; color:var(--text-muted); cursor:pointer; font-size:var(--text-xs); list-style:none; border-radius:var(--radius-control); }
  .voice-review-options > summary::-webkit-details-marker{ display:none; }
  .voice-options-panel{ position:absolute; z-index:3; bottom:100%; left:-40px; width:180px; padding:8px; border:1px solid var(--line-strong); border-radius:var(--radius-control); background:var(--surface); box-shadow:0 8px 30px rgb(var(--still-rgb) / 0.082); }
  .voice-options-panel .voice-inline{ width:100%; justify-content:flex-start; border-radius:var(--radius-control); text-align:left; }
  .voice-insert-mode{ border-top:1px solid var(--line-strong); padding-top:4px; margin-top:4px; }
  .voice-insert-mode button[aria-pressed='true']{ background:var(--selection); color:var(--ink); }
  .voice-entry .voice-limit{ color:var(--ember-ink); font-size:var(--text-xs); line-height:1.5; margin:0; }
  .voice-limit:empty{ display:none; }
  .voice-entry .voice-warning{ color:var(--ember-ink); font-size:var(--text-xs); line-height:1.6; margin:0; }
  .voice-entry .voice-error{ color:var(--ember-ink); font-size:var(--text-sm); }
  .voice-kept-status{ display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:var(--text-xs); color:var(--text-muted); margin-top:-6px; }
  .voice-kept-status .voice-inline{ min-height:44px; font-size:var(--text-xs); }
  .name-field .voice-entry{ margin-top:12px; }
  .voice-preferences details{ margin-top:4px; }
  .voice-preferences summary{ min-height:44px; padding:14px 0; font-size:var(--text-xs); color:var(--text-muted); cursor:pointer; }
  .voice-preferences p{ font-size:var(--text-xs); line-height:1.7; color:var(--text-muted); margin:0 0 12px; }
  @media(max-width:360px){
    .voice-chrome{ padding:16px; }
    .voice-entry[data-mode='type'] .voice-native-field{ padding:16px 16px 0; }
    .voice-toolbar{ gap:8px; }
    .voice-confirm{ padding-inline:13px; }
  }
  @media(hover:hover){
    .voice-type:hover,.voice-inline:hover,.voice-round:hover,.voice-review-options > summary:hover{ background:var(--selection); }
    .voice-confirm:not(:disabled):hover{ background:var(--brand-primary-strong); }
  }
  @media(prefers-reduced-motion:no-preference){
    .voice-entry{ transition:border-color 180ms,box-shadow 180ms; }
    .voice-entry button{ transition:background 160ms,transform 160ms; }
    .voice-entry button:not(:disabled):active{ transform:scale(.97); }
    .voice-entry[data-mode='recording'] .voice-status i{ animation:voice-breathe 1.7s ease-in-out infinite; }
    .voice-entry:not([data-mode='type']) .voice-chrome{ animation:voice-appear 180ms ease-out; }
    @keyframes voice-breathe{ 50% { opacity:.45; } }
    @keyframes voice-appear{ from { opacity:.5;transform:translateY(2px); } to { opacity:1;transform:translateY(0); } }
  }
}

/* The HumanOS brand, in one place.

   Values come from the HumanOS Brand Guide 3.1, which follows the HumanOS App Figma file: a plum ink on near-white,
   near-black for actions, selection and focus, hairline lines at 10% black, and the six spectrum hues kept for people
   and artwork (in this app: the orb, the light behind a screen, the rooms of a call). Figtree is the only font.

   Nothing outside this file sets a colour, a font, a text size or a radius; brand.test.mjs checks that. brand.js
   carries the same values for the code that paints on a canvas. The guide defines no dark palette yet: the night
   values below are the HumanOS Brain's, the same roles kept calm and readable. docs/DESIGN_SYSTEM.md explains how a
   screen uses them. */
@layer tokens {
/* Figtree (OFL, assets/fonts/Figtree-OFL.txt): one variable file for every weight, in Latin and its extensions. */
@font-face{font-family:'Figtree';src:url('../assets/fonts/Figtree-latin.woff2') format('woff2');font-style:normal;font-weight:300 900;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Figtree';src:url('../assets/fonts/Figtree-latin-ext.woff2') format('woff2');font-style:normal;font-weight:300 900;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}

:root{
  color-scheme:light;

  /* Fixed colours: the same in light and dark. White and black for marks on a picture or a stage, and the night
     palette, which a dark stage (Awaken Noor) uses in either mode and dark mode reads below. */
  --white:#FFFFFF;
  --black:#000000;
  --white-rgb:255 255 255;
  --black-rgb:0 0 0;
  --night-canvas:#0E0B10;
  --night-surface:#17131A;
  --night-subtle:#1C1720;
  --night-selection:#2A2430;
  --night-line-strong:#3A3340;
  --night-ink:#F6F3F8;
  --night-text:#CFC8D4;
  --night-muted:#A39AAA;

  /* Ink and text */
  --ink:#22102A;            /* titles, body, labels */
  --title-ink:#191919;      /* every header's title (Figma 134:4304: #191919) */
  --text:#5F5666;           /* support text */
  --text-muted:#817687;     /* placeholder, caption, inactive tab, an unselected ring */
  --ink-rgb:34 16 42;       /* the ink at any strength: shadows, a scrim */

  /* Surfaces and lines */
  --canvas:#FBFBFB;         /* the ground behind everything, and the board */
  --surface:#FFFFFF;        /* pages, sheets, cards, the dock and the tab bar */
  --surface-rgb:255 255 255; /* the surface at a strength: a frosted bar, a fade into the page */
  --subtle:#F9F9FA;         /* fills: options, fields, rows, blocks */
  --selection:#F2F1F3;      /* hover, pressed, picked, a secondary button, a track */
  --line:rgb(0 0 0 / 10%);  /* hairlines and the edge of a field */
  --line-strong:#E3E3E3;    /* a track, a dot on the board */
  --scrim:rgb(var(--ink-rgb) / 30%); /* behind a sheet. No blur */

  /* Actions: near-black, never a hue */
  --brand-primary:#1D1D1D;        /* the primary button, a picked ring, focus, progress, a toggle on */
  --brand-primary-strong:#000000; /* the same under a finger */
  --on-primary:#FFFFFF;

  /* Status: a separate layer, never a person's state */
  --error:#C4342D;
  --success:#1E7A54;
  --warning:#96650B;
  --info:#1F6FA8;

  /* Spectrum: Body, Mind, Heart, Spirit, then Bond and Ember. For people and artwork, never for actions. The -rgb
     names let a light be used at any strength; the -tint names are the hue as a wash on white. */
  --root:#4ED3B2;
  --still:#3A8DEE;
  --pulse:#FF6E7F;
  --depth:#8B5CF6;
  --bond:#E24BD0;
  --ember:#FF9A5C;
  --root-rgb:78 211 178;
  --still-rgb:58 141 238;
  --pulse-rgb:255 110 127;
  --depth-rgb:139 92 246;
  --bond-rgb:226 75 208;
  --ember-rgb:255 154 92;
  --root-tint:color-mix(in srgb,var(--root) 14%,var(--white));
  --still-tint:color-mix(in srgb,var(--still) 12%,var(--white));
  --pulse-tint:color-mix(in srgb,var(--pulse) 12%,var(--white));
  --depth-tint:color-mix(in srgb,var(--depth) 10%,var(--white));
  --bond-tint:color-mix(in srgb,var(--bond) 10%,var(--white));
  --ember-tint:color-mix(in srgb,var(--ember) 16%,var(--white));
  /* The hue as soft light: the orb's six lights, a glow behind a picture */
  --root-light:color-mix(in srgb,var(--root) 60%,var(--white));
  --still-light:color-mix(in srgb,var(--still) 60%,var(--white));
  --pulse-light:color-mix(in srgb,var(--pulse) 60%,var(--white));
  --depth-light:color-mix(in srgb,var(--depth) 60%,var(--white));
  --bond-light:color-mix(in srgb,var(--bond) 60%,var(--white));
  --ember-light:color-mix(in srgb,var(--ember) 60%,var(--white));
  /* A hue dark enough to read as words on its own tint */
  --root-ink:color-mix(in oklab,var(--root) 45%,var(--ink));
  --still-ink:color-mix(in oklab,var(--still) 55%,var(--ink));
  --pulse-ink:color-mix(in oklab,var(--pulse) 50%,var(--ink));
  --depth-ink:color-mix(in oklab,var(--depth) 60%,var(--ink));
  --bond-ink:color-mix(in oklab,var(--bond) 55%,var(--ink));
  --ember-ink:color-mix(in oklab,var(--ember) 45%,var(--ink));
  /* The person's own words, lit: the spectrum, darkened to read */
  --words-glow:linear-gradient(95deg,var(--root-ink) 0%,var(--depth-ink) 50%,var(--pulse-ink) 100%);
  /* A note card on the board */
  --note:var(--ember-tint);
  /* How much of the light a screen shows. Set by the screen (styles/aura.css); the layer cross-fades between them */
  --aura-crown:0;           /* the page light, from the top */
  --aura-foot:0;            /* the stage light, rising from the foot */

  /* Font. One family. The system monospace is not a brand font: only for real code */
  --font:'Figtree',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-code:ui-monospace,'SF Mono',Menlo,Consolas,monospace;
  /* Check-in notes in Arabic script, which Figtree does not carry */
  --font-arabic:'Figtree','Noto Naskh Arabic','Geeza Pro','Segoe UI',system-ui,sans-serif;

  /* Text sizes. Interface text is 12, 14 or 16 (Figma signup labels: 15); larger text is a heading, in 600 */
  --text-xs:12px;
  --text-sm:14px;
  --text-md:16px;
  --text-lg:20px;
  --text-xl:24px;
  --text-2xl:28px;
  --text-3xl:32px;
  --text-4xl:40px;
  --text-5xl:64px;
  --text-6xl:88px;
  --text-hero:clamp(32px,10vw,44px);  /* the welcome title: fills a phone, stops on a wide one */
  --text-fit:clamp(20px,5.6cqw,24px); /* a heading inside a stage that scales with its box */

  /* Type: use as font:var(--type-title). Headings 600, body 400, buttons and labels 500 */
  --type-caption:400 var(--text-xs)/16px var(--font);   /* captions, disclosures, a timer. The reading floor */
  --type-label:500 var(--text-xs)/16px var(--font);     /* part labels, row eyebrows, map chips, tab labels */
  --type-eyebrow:600 var(--text-xs)/16px var(--font);   /* the small capital line above a title. Uppercase, --track-eyebrow */
  --type-support:400 var(--text-sm)/20px var(--font);   /* helper, status, an acknowledgement */
  --type-quiet:500 var(--text-sm)/20px var(--font);     /* text buttons */
  --type-bar:600 var(--text-md)/19px var(--font);       /* every header's title (Figma 134:4304, "Conscious Creation": Figtree SemiBold 16, letter spacing 0, its text box 143 x 19) */
  --type-body:400 var(--text-md)/24px var(--font);      /* reading, inputs (iOS zooms below 16px), rows, options */
  --type-button:500 var(--text-md)/24px var(--font);    /* primary, secondary, a time chip */
  --type-login-button:500 15px/24px var(--font);        /* Figma signup choices */
  --type-login-title:600 var(--text-xl)/1.3 var(--font);
  --type-login-title-compact:600 22px/1.3 var(--font);
  --type-heading:600 var(--text-lg)/26px var(--font);   /* card titles, the person's words on Home, an echo */
  --type-voice:600 var(--text-xl)/30px var(--font);     /* sheet titles, the guide's words in a call, result headlines */
  --type-title:600 var(--text-xl)/30px var(--font);     /* every screen title: 24 at 600 on every frame of the file that has one (2 December 2026) */
  --type-large:600 var(--text-3xl)/38px var(--font);    /* a moment's headline */
  --type-display:600 var(--text-4xl)/44px var(--font);  /* the welcome title on a short screen */
  --type-hero:600 var(--text-hero)/1.04 var(--font);    /* the welcome title */
  --type-poster:600 var(--text-5xl)/1.15 var(--font);   /* a vision headline on the board */
  --type-clock:600 var(--text-6xl)/1 var(--font);       /* the Home clock */
  --type-fit:600 var(--text-fit)/1.25 var(--font);      /* a heading on a stage that scales */

  /* Tracking. Large type is set tight */
  --track-display:-.035em;
  --track-title:-.03em;
  --track-voice:-.022em;
  --track-quote:-.015em;
  --track-eyebrow:.09em;

  /* Radii: controls 8, cards 16, panels 24, buttons as pills */
  --radius-control:8px;     /* fields, options, chips that are not buttons, thumbnails */
  --radius-card:16px;       /* cards, rows, blocks */
  --radius-panel:24px;      /* sheets, the portrait frame, large panels */
  --radius-pill:999px;      /* buttons, toggles, toasts, a bar's ends */

  /* Elevation: flat by default; shadows are the ink's own colour */
  --e1:0 1px 2px rgb(var(--ink-rgb) / 4%),0 8px 24px rgb(var(--ink-rgb) / 7%);
  --e2:0 2px 6px rgb(var(--ink-rgb) / 6%),0 16px 40px rgb(var(--ink-rgb) / 13%);
  --e3:0 -8px 40px rgb(var(--ink-rgb) / 13%);

  /* Spacing: nothing else */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:20px; --s-6:24px; --s-7:32px; --s-8:40px; --s-9:56px;

  /* Layout */
  --column:430px;
  --gutter:24px;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --safe-left:env(safe-area-inset-left,0px);
  --safe-right:env(safe-area-inset-right,0px);
  --page-l:max(var(--gutter),var(--safe-left));
  --page-r:max(var(--gutter),var(--safe-right));
  --bar-h:52px;
  --ack-h:40px;
  --primary-h:56px;
  --tabs-h:56px;
  --target:44px;
  --kb:0px;                /* written by viewport.js. Keyboard height on iOS. 0 on Android */

  /* Motion: durations */
  --d-press:90ms;
  --d-quick:180ms;
  --d-base:320ms;
  --d-move:460ms;
  --d-moment:720ms;
  --d-slow:1200ms;
  --d-breath:12000ms;

  /* Motion: the brand's easing, and the app's others */
  --ease:cubic-bezier(0.22, 1, 0.36, 1);      /* entrances: the brand's curve */
  --ease-exit:cubic-bezier(.4,0,1,1);
  --ease-move:cubic-bezier(.32,.72,0,1);
  --ease-breath:cubic-bezier(.45,0,.55,1);
  --ease-pen:cubic-bezier(.65,0,.35,1);
  --ease-press:cubic-bezier(.34,1.56,.64,1);
  --spring-soft:linear(0,.071,.229,.415,.593,.742,.858,.939,.992,1.022,1.035,1.038,1.035,1.029,1.021,1.015,1.009,1.005,1.002,1,.999,.999,.999,.999,.999);
  --spring-settle:linear(0,.057,.183,.333,.48,.61,.719,.804,.869,.917,.95,.973,.988,.997,1.002,1.004,1.005,1.005,1.004,1.004,1.003,1.002,1.002,1.001,1.001);

  /* The room's four lights, as the Figma file draws them rising from the foot of a call, the splash and the breath
     (its "Group 5839"): rose, lilac, amber and sky. For the light only (call-aura.js, the Glimpse), never for words
     or actions. brand.js carries them as ROOM. */
  --room-rose:#FF4478;
  --room-lilac:#DCA7FF;
  --room-amber:#FFB853;
  --room-sky:#86DEFA;
  --room-rose-rgb:255 68 120;
  --room-lilac-rgb:220 167 255;
  --room-amber-rgb:255 184 83;
  --room-sky-rgb:134 222 250;

  /* 1 December 2026, the Figma alignment: one marked place a part, so each part adds its own values without meeting
     another's. A new value goes under its mark, never into a screen's stylesheet. */
  /* tokens:aura */
  /* tokens:glimpse */
  --glimpse-ink:#22102A;    /* words on a Glimpse card (134:4225): its pastel light is the same in either theme, so its ink is too */
  --glimpse-ink-rgb:34 16 42;
  /* tokens:wall */
  --wall-veil:rgb(var(--black-rgb) / 3%);   /* the wash over her blurred vision behind the sign-in sheet (134:4474) */
  --wall-blur:32px;                         /* and how far it blurs what is behind (its background blur) */
  --wall-edge:rgb(var(--black-rgb) / 4%);   /* the sheet's field: a hairline at 4% black on the fill (134:4503) */
  --wall-close:color-mix(in srgb,var(--surface) 70%,transparent); /* the round close button: the sheet's white at 70% (134:4498) */
  /* tokens:questions */
  --q-card-picked:linear-gradient(160deg,color-mix(in srgb,var(--room-lilac) 6%,var(--subtle)) 0%,color-mix(in srgb,var(--room-lilac) 18%,var(--subtle)) 52%,color-mix(in srgb,var(--room-sky) 16%,color-mix(in srgb,var(--depth) 16%,var(--subtle))) 100%); /* a picked answer card: the design's soft lilac-to-blue wash (134:3142), made from the room's lights on the fill */
  --q-card-ratio:calc(240 / 172); /* the design's answer card, 172 x 240 in a 390 frame: its height over its width */
  --q-card-gap:14px;        /* between two answer cards (the design's 202 - 188) */
  /* tokens:motion */
  /* 2 December 2026, the night sweep: the same rule, one mark a part. */
  /* tokens:call */
  /* tokens:home */
  /* tokens:path */
  /* tokens:speed */
  /* tokens:shell */
  --toggle-thumb:var(--white);      /* a switch's thumb, off (134:4654: white on the light track) */
  --toggle-thumb-on:var(--white);   /* and on, over the near-black track */
  --seg-thumb:var(--white);         /* the segmented control's chosen half, on its grey track (134:4709) */
  --tabs-glass:rgb(var(--white-rgb) / 72%); /* the floating tab bar: white at 70% over the page (134:4807) */
  --tabs-edge:rgb(var(--white-rgb) / 70%);  /* and its white hairline */
}

/* Dark: the same roles on the night palette, when she turns on Dark theme in Settings (theme.js). */
:root[data-theme="dark"]{
  --ink:var(--night-ink);
  --title-ink:var(--night-ink);
  --text:var(--night-text);
  --text-muted:var(--night-muted);
  --ink-rgb:0 0 0;
  --canvas:var(--night-canvas);
  --surface:var(--night-surface);
  --surface-rgb:23 19 26;
  --subtle:var(--night-subtle);
  --selection:var(--night-selection);
  --line:rgb(255 255 255 / 10%);
  --line-strong:var(--night-line-strong);
  --scrim:rgb(0 0 0 / 50%);
  --brand-primary:#F6F3F8;
  --brand-primary-strong:#FFFFFF;
  --on-primary:#17121A;
  --error:#F07A72;
  --success:#4CC08A;
  --warning:#E0B04A;
  --info:#6CB3E8;
  --root-tint:color-mix(in srgb,var(--root) 16%,var(--night-surface));
  --still-tint:color-mix(in srgb,var(--still) 16%,var(--night-surface));
  --pulse-tint:color-mix(in srgb,var(--pulse) 16%,var(--night-surface));
  --depth-tint:color-mix(in srgb,var(--depth) 18%,var(--night-surface));
  --bond-tint:color-mix(in srgb,var(--bond) 16%,var(--night-surface));
  --ember-tint:color-mix(in srgb,var(--ember) 16%,var(--night-surface));
  --root-ink:color-mix(in oklab,var(--root) 70%,var(--white));
  --still-ink:color-mix(in oklab,var(--still) 60%,var(--white));
  --pulse-ink:color-mix(in oklab,var(--pulse) 70%,var(--white));
  --depth-ink:color-mix(in oklab,var(--depth) 55%,var(--white));
  --bond-ink:color-mix(in oklab,var(--bond) 60%,var(--white));
  --ember-ink:color-mix(in oklab,var(--ember) 70%,var(--white));
  /* The shell's pieces at night (no dark screen in the file: the app's own). A thumb that would sink into its track
     is lifted: light on the dark track, dark on the light one. A frosted bar is lifted off the canvas and edged. */
  --toggle-thumb:var(--night-text);
  --toggle-thumb-on:var(--on-primary);
  --seg-thumb:var(--night-line-strong);
  --tabs-glass:color-mix(in srgb,var(--night-selection) 80%,transparent);
  --tabs-edge:rgb(var(--white-rgb) / 9%);
  color-scheme:dark;
}
/* A call's room and a release are painted light in either mode (call-stage.js), so the screens over them keep the
   light colours. The Quick Reset is light too, in the call and when it opens by itself over a tab page
   (.reset-layer, appended to the shell outside any call screen). The same values as :root above; brand.test.mjs
   checks they stay so. */
:root[data-theme="dark"] .reset-layer,:root[data-theme="dark"] :is(.call-screen,.release-screen){
  --ink:#22102A;
  --title-ink:#191919;
  --text:#5F5666;
  --text-muted:#817687;
  --ink-rgb:34 16 42;
  --canvas:#FBFBFB;
  --surface:#FFFFFF;
  --surface-rgb:255 255 255;
  --subtle:#F9F9FA;
  --selection:#F2F1F3;
  --line:rgb(0 0 0 / 10%);
  --line-strong:#E3E3E3;
  --scrim:rgb(var(--ink-rgb) / 30%);
  --brand-primary:#1D1D1D;
  --brand-primary-strong:#000000;
  --on-primary:#FFFFFF;
  --error:#C4342D;
  --success:#1E7A54;
  --warning:#96650B;
  --info:#1F6FA8;
  --root-tint:color-mix(in srgb,var(--root) 14%,var(--white));
  --still-tint:color-mix(in srgb,var(--still) 12%,var(--white));
  --pulse-tint:color-mix(in srgb,var(--pulse) 12%,var(--white));
  --depth-tint:color-mix(in srgb,var(--depth) 10%,var(--white));
  --bond-tint:color-mix(in srgb,var(--bond) 10%,var(--white));
  --ember-tint:color-mix(in srgb,var(--ember) 16%,var(--white));
  --root-ink:color-mix(in oklab,var(--root) 45%,var(--ink));
  --still-ink:color-mix(in oklab,var(--still) 55%,var(--ink));
  --pulse-ink:color-mix(in oklab,var(--pulse) 50%,var(--ink));
  --depth-ink:color-mix(in oklab,var(--depth) 60%,var(--ink));
  --bond-ink:color-mix(in oklab,var(--bond) 55%,var(--ink));
  --ember-ink:color-mix(in oklab,var(--ember) 45%,var(--ink));
  --toggle-thumb:var(--white);
  --toggle-thumb-on:var(--white);
  --seg-thumb:var(--white);
  --tabs-glass:rgb(var(--white-rgb) / 72%);
  --tabs-edge:rgb(var(--white-rgb) / 70%);
  color-scheme:light;
}

@supports not (animation-timing-function:linear(0,1)){
  :root{--spring-soft:cubic-bezier(.34,1.3,.64,1);--spring-settle:cubic-bezier(.34,1.3,.64,1);}
}
@media (max-width:359px){
  :root{--gutter:20px;--type-title:600 var(--text-xl)/30px var(--font);--type-display:600 var(--text-3xl)/38px var(--font);}
}
@media (max-height:639px){
  :root{--type-clock:600 var(--text-5xl)/1 var(--font);--type-display:600 var(--text-3xl)/38px var(--font);--type-voice:600 var(--text-lg)/26px var(--font);--ack-h:20px;}
}
}

/* Reset, fonts, type rules, the one-screen shell and the light behind it. docs/DESIGN_SYSTEM.md. */
@layer base {

/* ---- The logo: the spectrum mark on light, the white mark on dark. Never typeset or recoloured otherwise. A call's
   room stays light in either mode, so the mark in it keeps its colours. ---- */
:root[data-theme="dark"] :is(.opening-brand-mark,.opening-brand-word,.brand-lockup img,.brand-lockup-mark,.today-brand .mark,.details-lockup){filter:brightness(0) invert(1)}

/* ---- Reset ---- */
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
*::before,*::after{box-sizing:border-box}
html{height:100%;touch-action:manipulation;-webkit-text-size-adjust:100%;font-synthesis:none;overscroll-behavior:none}
body{height:100%;margin:0;overflow:hidden;overscroll-behavior:none;background:var(--surface);color:var(--ink);font:var(--type-body);-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,h5,h6{margin:0;padding:0;font:inherit;color:inherit;letter-spacing:0}
p,ol,ul,dl,dd,dt,li,figure,blockquote{margin:0;padding:0;font:inherit;color:inherit;letter-spacing:0}
ol,ul{list-style:none}
small{font:inherit;color:inherit}
strong,b{font-weight:600}
em,i,cite{font-style:normal}
label{display:block;margin:0;font:inherit;color:inherit}
button,input,textarea,select{margin:0;font:inherit;color:inherit;letter-spacing:0}
button{padding:0;background:none;border:0;border-radius:0;box-shadow:none;cursor:pointer;touch-action:manipulation}
button,summary,[role=button],[role=switch],.tab,.option,.chip{-webkit-user-select:none;user-select:none}
/* No web tells under the finger: a long press on a control, a link or a picture in one opens no callout, and the
   app's own frame (the bar, the dock, the tab bar) is never selected. Her own words in the page stay selectable. */
:is(button,a,summary,[role=button],[role=switch],[role=tab],label,.tab,.option,.chip) :is(img,svg),:is(button,a,summary,[role=button],[role=switch],[role=tab],.tab,.option,.chip){-webkit-touch-callout:none}
img[draggable=false],button img,a img{-webkit-user-drag:none}
.bar,.dock,.tabs,.progress,.sheet-head{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
button:active{transform:none}
button:disabled{cursor:default}
a{color:inherit}
img,svg,canvas,video{display:block;max-width:100%}
svg{flex:none}
details>summary{list-style:none}
details>summary::-webkit-details-marker{display:none}
[hidden]{display:none!important}
h1:focus,h2:focus,[tabindex="-1"]:focus{outline:none}
::selection{background:rgb(var(--still-rgb) / .45)}
.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

/* ---- Type rules. One sans: 600 gives structure, 500 is a voice (the guide's words, the person's own), 400 reads.
   Large type is set tight, as on the stage; each size has its tracking beside it in tokens.css ---- */
.t-serif,.title,.bar-title--serif,.sheet-title,.dialog-title{text-wrap:balance}
.lead,.support,.note,.helper,.option,.row-title{text-wrap:pretty}
.title{font:var(--type-title);letter-spacing:var(--track-title);max-width:none}
.title--display{font:var(--type-display);letter-spacing:var(--track-display)}
.title--voice{font:var(--type-voice);letter-spacing:var(--track-voice)}
.lead{font:var(--type-body)}
.support{font:var(--type-support);color:var(--text)}
.note{font:var(--type-caption);color:var(--text-muted)}
.label{font:var(--type-label);color:var(--text-muted)}
.eyebrow{font:var(--type-eyebrow);letter-spacing:var(--track-eyebrow);text-transform:uppercase;color:var(--text-muted)}
.quote{font:var(--type-heading);letter-spacing:var(--track-quote);color:var(--ink);text-wrap:balance}
.voice-words{font:var(--type-voice);letter-spacing:var(--track-voice);color:var(--ink);text-wrap:balance}
/* The person's own words, lit as they are on the stage. Plain action ink where a clipped background is unsupported. */
.glow-words{color:var(--brand-primary)}
@supports ((-webkit-background-clip:text) or (background-clip:text)){.glow-words{background:var(--words-glow);-webkit-background-clip:text;background-clip:text;color:transparent}}
.field-error{font:var(--type-caption);color:var(--error)}
.field-error:empty{display:none}
/* Figures that count keep their width. */
.tabular{font-family:var(--font);font-variant-numeric:tabular-nums}

/* ---- Shell ---- */
.app-shell{position:relative;isolation:isolate;display:block;width:100%;max-width:var(--column);height:100vh;height:100dvh;min-height:0;margin-inline:auto;overflow:hidden;background:var(--surface);border:0;border-radius:0;box-shadow:none}
/* The aura: the light every screen stands in. It lives outside #app, so it never restarts when a screen changes:
   each screen only says how much of the page light (from the top) and of the stage light (from the foot) it wants
   (styles/aura.css), and the two cross-fade. Still gradients, moved by opacity and transform only. */
#atmosphere{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none;contain:strict}
#atmosphere i{position:absolute;display:block;opacity:0;transition:opacity var(--d-slow) var(--ease-breath);will-change:opacity}
/* The design (30 November 2026): the light behind every screen keeps moving, slowly, about the screen. Only transform
   moves; each layer is larger than the screen so its edge is never seen. */
#atmosphere .aura-crown{inset:-12% -16% -4%;opacity:var(--aura-crown);animation:aura-roam-crown 23s var(--ease-breath) infinite alternate;
  /* The Figma file's light turned over and laid along the top, faint (its Today, the page before the call and the
     daily calls' times): rose and lilac across the top, amber and sky toward the right. The room's four lights. */
  background:
    radial-gradient(100% 40% at 40% -10%,rgb(var(--room-rose-rgb) / .10),transparent 64%),
    radial-gradient(90% 38% at 72% -8%,rgb(var(--room-lilac-rgb) / .24),transparent 62%),
    radial-gradient(70% 34% at 100% 6%,rgb(var(--room-amber-rgb) / .18),transparent 64%),
    radial-gradient(60% 30% at 8% -6%,rgb(var(--room-sky-rgb) / .14),transparent 62%)}
#atmosphere .aura-foot{inset:-4% -10% -6%;opacity:var(--aura-foot);
  /* The Figma file's light at the foot (its call, splash and breath): amber rising on the left with sky under it, rose
     and lilac low on the right. */
  background:
    radial-gradient(46% 24% at 22% 84%,rgb(var(--room-amber-rgb) / .40),transparent 72%),
    radial-gradient(62% 22% at 10% 100%,rgb(var(--room-sky-rgb) / .46),transparent 72%),
    radial-gradient(60% 22% at 80% 92%,rgb(var(--room-rose-rgb) / .26),transparent 72%),
    radial-gradient(62% 24% at 86% 104%,rgb(var(--room-lilac-rgb) / .50),transparent 72%);
  animation:aura-drift 19s var(--ease-breath) infinite alternate}
@keyframes aura-drift{0%{transform:none}33%{transform:translate3d(-6%,-4%,0) scale(1.06)}66%{transform:translate3d(5%,-6%,0) scale(1.03)}100%{transform:translate3d(-3%,-2%,0) scale(1.08)}}
@keyframes aura-roam-crown{0%{transform:none}35%{transform:translate3d(7%,4%,0) scale(1.05)}70%{transform:translate3d(-6%,6%,0) scale(1.02)}100%{transform:translate3d(4%,-2%,0) scale(1.07)}}
html.motion-paused #atmosphere i{animation-play-state:paused}
#presence{position:absolute;left:0;top:0;width:300px;height:300px;z-index:2;transform-origin:0 0;pointer-events:none;opacity:0}
#app{position:absolute;inset:0;z-index:3;display:block;width:auto;max-width:none;min-height:0;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:hidden}
.screen{height:calc(100% - var(--kb));min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;grid-template-columns:minmax(0,1fr)}
.bar{grid-row:1;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:var(--s-2);min-height:calc(var(--bar-h) + var(--safe-top));padding:calc(var(--safe-top) + 4px) var(--page-r) 4px var(--page-l)}
.body{grid-row:2;position:relative;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:var(--s-2) var(--page-r) var(--s-6) var(--page-l);scroll-padding-bottom:var(--s-6)}
/* A 12px gradient softens content under the bar, once something has scrolled there. */
.body::before{content:'';position:sticky;top:calc(-1 * var(--s-2));z-index:2;display:block;height:12px;margin:calc(-1 * var(--s-2)) calc(-1 * var(--page-r)) -4px calc(-1 * var(--page-l));background:linear-gradient(var(--surface),transparent);pointer-events:none;opacity:0}
@supports (animation-timeline:scroll()){.body::before{animation:body-top-fade linear both;animation-timeline:scroll(nearest);animation-range:0 16px}}
@keyframes body-top-fade{from{opacity:0}to{opacity:1}}
.dock{grid-row:3;position:relative;display:grid;gap:0;padding:var(--s-3) var(--page-r) max(16px,var(--safe-bottom)) var(--page-l);background:var(--surface)}
.dock::before{content:'';position:absolute;left:0;right:0;bottom:100%;height:24px;background:linear-gradient(transparent,var(--surface));pointer-events:none}
.screen:has(.tabs) .dock{padding-bottom:var(--s-3)}

/* Bar variants. .bar--title for Today, Compass, My vision and sheets. */
.bar--title{grid-template-columns:minmax(0,1fr) auto}
.bar--rail{grid-template-columns:minmax(0,1fr) 44px}
.bar--rail-close{grid-template-columns:44px minmax(0,1fr)}
.bar--float{position:absolute;left:0;right:0;top:0;z-index:4;pointer-events:none}
.bar--float>*{pointer-events:auto}
.bar-gap{display:block;min-width:0;min-height:1px}
.bar-middle{min-width:0}
/* Every header's title is one style (2 December 2026, the Figma file's "Conscious Creation"): Figtree SemiBold 16 in a 19px line, #191919 (--title-ink). */
.bar-title{font:var(--type-bar);letter-spacing:0;color:var(--title-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar-title--serif{font:var(--type-bar);letter-spacing:0;color:var(--title-ink);white-space:normal;overflow:visible}
.bar-end{display:flex;align-items:center;justify-content:flex-end;min-width:0}
.bar-count{display:block;min-width:40px;text-align:right;font:var(--type-support);font-family:var(--font);color:var(--text-muted);font-variant-numeric:tabular-nums}

/* The film is its own surface above the shell, and stays inside the column. */
body.opening-active{overflow:hidden}

/* Desktop: one centred phone-width column on the desk, for every screen (the design, 30 November 2026: the board
   too), and every layer over it (the board's film, the introduction film, sheets) stands in the same column. */
@media (min-width:521px){
  body{background:var(--canvas)}
  dialog.vision-play,dialog.intro-video{inset:0;margin:0 auto;width:min(100%,var(--column));max-width:var(--column)}
  dialog.sheet{max-width:var(--column)}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important}
  #atmosphere i{transition-duration:.01ms}
  #atmosphere .aura-foot,#atmosphere .aura-crown{animation:none}
}
}

/* Every component in DESIGN_SYSTEM.md section 6, with all its states.
   Components that shared a class name with legacy start from all:unset, so nothing old leaks in. */
@layer components {

/* ---- Buttons ---- */
.primary,.secondary{all:unset;box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;gap:var(--s-2);width:100%;min-height:var(--primary-h);padding:var(--s-3) var(--s-6);border-radius:var(--radius-pill);font:var(--type-button);text-align:center;cursor:pointer;overflow:hidden;-webkit-user-select:none;user-select:none;touch-action:manipulation;transition:background-color var(--d-press) linear,color var(--d-quick) linear,transform var(--d-move) var(--ease-press)}
.primary{background:var(--brand-primary);color:var(--on-primary)}
.primary:active:not(:disabled):not([aria-disabled=true]){background:var(--brand-primary-strong);transform:scale(.97);transition-duration:var(--d-press);transition-timing-function:ease-out}
.primary:disabled,.primary[aria-disabled=true]{background:var(--selection);color:var(--text-muted);cursor:default}
/* The one sweep. Translate only. Played once per screen by presence-motion.js when a primary enables. */
.primary::after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,rgb(var(--white-rgb) / 0.18) 50%,transparent 80%);transform:translateX(-100%);pointer-events:none}
.primary svg,.secondary svg{position:static;flex:none;width:22px;height:22px;transition:none;transform:none}
.primary--float{width:auto;padding-inline:var(--s-5) var(--s-6);box-shadow:var(--e2)}
html[data-recording] .dock .primary,html[data-recording] .sheet-foot .primary{background:var(--selection);color:var(--text-muted);cursor:default}
/* The design's second button: paper with a hairline edge, ink words. */
.secondary{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.secondary:active:not(:disabled){background:var(--subtle);transform:scale(.97);transition-duration:var(--d-press);transition-timing-function:ease-out}
.secondary:disabled{background:var(--selection);color:var(--text-muted);cursor:default}
.secondary--danger{color:var(--error)}
.keep-kept{display:inline-flex;align-items:center;gap:var(--s-2)}

.quiet{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:var(--target);min-height:var(--target);padding:0;border-radius:var(--radius-control);color:var(--brand-primary);font:var(--type-quiet);text-align:center;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;transition:opacity var(--d-press) linear}
.quiet:active:not(:disabled){opacity:.6}
.quiet:disabled{color:var(--text-muted);cursor:default}
.dock .quiet{justify-self:center}
/* The way round the main button, at a page's or a sheet's foot, is set as the file sets it on every frame that has one
   ("I will do it later" 134:4606, "I will do later" 129:2663, "Do it again" 134:4225): 16 regular in ink. A call's foot keeps its own smaller controls. */
.dock:not(.call-dock) .quiet,.sheet-foot .quiet{font:var(--type-body)}
.destructive{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;min-height:var(--target);margin-top:var(--s-4);color:var(--error);font:var(--type-quiet);cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;transition:opacity var(--d-press) linear}
.destructive:active{opacity:.6}

/* ---- Icon buttons: aligned by their ink. Margin law ---- */
.icon-btn{all:unset;box-sizing:border-box;position:relative;width:44px;height:44px;display:grid;place-items:center start;background:none;border:0;padding:0;color:var(--ink);cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation}
.icon-btn svg{width:24px;height:24px;margin-inline-start:-8px;transition:transform var(--d-press) linear}
.icon-btn::before{content:'';position:absolute;inset:0 0 0 -16px}
.icon-btn:active svg{transform:scale(.92)}
.icon-btn:disabled{opacity:.4;cursor:default}
.icon-btn--end{place-items:center end}
.icon-btn--end svg{margin-inline:0 -5px}
.icon-btn--end::before{inset:0 -16px 0 0}
/* Inline icon box for rows and zoom: glyph centred in its 44px target */
.icon-btn--center{place-items:center}
.icon-btn--center svg{margin:0}
.icon-btn--center::before{inset:0}

/* ---- Answer option ---- */
.options{display:grid;gap:var(--s-2);margin-top:var(--s-4)}
.option{all:unset;box-sizing:border-box;position:relative;display:block;width:100%;min-height:54px;padding:15px 52px 15px 16px;border-radius:var(--radius-card);background:var(--subtle);color:var(--ink);font:var(--type-body);text-wrap:balance;text-align:left;cursor:pointer;overflow:hidden;-webkit-user-select:none;user-select:none;touch-action:manipulation;transition:background-color var(--d-quick) linear,transform 160ms var(--ease)}
.option:active{transform:scale(.985);transition-duration:var(--d-press)}
.option::after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1.5px var(--brand-primary);opacity:0;transition:opacity var(--d-quick) linear;pointer-events:none}
.option[aria-checked=true],.option[aria-pressed=true]{background:var(--selection)}
.option[aria-checked=true]::after,.option[aria-pressed=true]::after{opacity:1}
.option-label{display:block;font-weight:400}
.option-ring{position:absolute;right:16px;top:50%;width:24px;height:24px;margin-top:-12px;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 1.5px var(--text-muted);color:transparent;display:grid;place-items:center}
.option-ring svg{width:16px;height:16px;stroke-width:2.2}
.option[aria-checked=true] .option-ring,.option[aria-pressed=true] .option-ring{background:var(--brand-primary);box-shadow:none;color:var(--on-primary)}
.option-sub{display:block;font:var(--type-support);color:var(--text)}

/* ---- Chip ---- */
.chips{display:flex;flex-wrap:wrap;gap:var(--s-2)}
.chip{all:unset;box-sizing:border-box;position:relative;display:inline-flex;align-items:center;min-height:var(--target);padding:0 var(--s-4);border-radius:var(--radius-pill);background:var(--subtle);color:var(--ink);font:var(--type-support);cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;transition:background-color var(--d-quick) linear,box-shadow var(--d-quick) linear,transform 160ms var(--ease)}
.chip:active{transform:scale(.97);transition-duration:var(--d-quick),var(--d-quick),var(--d-press)}
.chip[aria-pressed=true],.chip[aria-checked=true]{background:var(--selection);box-shadow:inset 0 0 0 1.5px var(--brand-primary)}

/* ---- Fields. The voice-or-type field's interior lives in screens/voice.css ---- */
.field{all:unset;box-sizing:border-box;display:block;width:100%;min-width:0;border-radius:var(--radius-card);background:var(--subtle);color:var(--ink);font:var(--type-body);caret-color:var(--brand-primary);-webkit-user-select:text;user-select:text;transition:background-color var(--d-quick) linear}
/* The design's one input: paper, a hairline edge, 12px corners; the edge turns ink while she types. Every field is this. */
.field{background:var(--surface);border-radius:var(--radius-control);box-shadow:inset 0 0 0 1px var(--line-strong)}
.field::placeholder{color:var(--text-muted);opacity:1}
.field:focus{background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--brand-primary);outline:none}
.field--line{height:56px;padding:var(--s-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.field--text{min-height:96px;max-height:168px;padding:12px 56px 12px 16px;resize:none;overflow-y:auto;field-sizing:content;white-space:pre-wrap;overflow-wrap:anywhere}
textarea.field--line{height:auto;min-height:56px;max-height:168px;padding:16px 56px 16px 16px;resize:none;overflow-y:auto;field-sizing:content;white-space:pre-wrap;overflow-wrap:anywhere;text-overflow:clip}
.field--name{display:block;height:56px;padding:0 var(--s-4);font:var(--type-body);font-size:var(--text-md);text-overflow:ellipsis}
.field-group{display:grid;gap:var(--s-2);margin-top:var(--s-4)}
.field-group--tight{margin-top:var(--s-2)}

/* ---- Toggle ---- */
/* The file's switch (134:4654): 43 x 26, a 22px thumb 2px in, the track light grey off and near-black on. The target
   reaches 44px tall around it. */
.toggle{all:unset;box-sizing:border-box;position:relative;display:block;flex:none;width:43px;height:26px;border-radius:var(--radius-pill);background:var(--line-strong);cursor:pointer;touch-action:manipulation;transition:background-color var(--d-quick) linear}
.toggle::before{content:'';position:absolute;left:-4px;right:-4px;top:-9px;bottom:-9px}
.toggle-thumb{position:absolute;left:2px;top:2px;width:22px;height:22px;border-radius:50%;background:var(--toggle-thumb);box-shadow:0 1px 3px rgb(var(--ink-rgb) / 0.25);transition:transform 260ms var(--spring-soft),background-color var(--d-quick) linear}
.toggle[aria-checked=true]{background:var(--brand-primary)}
.toggle[aria-checked=true] .toggle-thumb{transform:translateX(17px);background:var(--toggle-thumb-on)}
.toggle:disabled{opacity:.5;cursor:default}

/* ---- Time chip ---- */
/* The file's time chip (129:2701): 36 tall, 10px in, 8px corners, on the selection fill; the finger's target reaches 44. */
.time-chip{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:36px;min-width:78px;padding:0 10px;border-radius:var(--radius-control);background:var(--selection);color:var(--ink);font:var(--type-button);font-variant-numeric:tabular-nums;white-space:nowrap}
.time-chip::before{content:'';position:absolute;inset:-4px 0}
.time-chip input{all:unset;box-sizing:border-box;position:absolute;inset:0;width:100%;height:100%;opacity:.01;font-size:var(--text-md);cursor:pointer}
.time-chip input:focus-visible{outline:none}
.time-chip:focus-within{outline:2px solid var(--brand-primary);outline-offset:2px}
.time-chip.is-off{color:var(--text-muted)}
.time-chip.is-off input{cursor:default}

/* ---- Segmented control. The only switcher in the app ---- */
/* The file's control (134:4709): 38 tall, the thumb 3px in, the chosen word in ink and the other in the support colour.
   Each half still answers a 44px finger. */
.seg{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;min-height:38px;padding:3px;border-radius:var(--radius-pill);background:var(--selection)}
.seg-thumb{position:absolute;left:3px;top:3px;bottom:3px;width:calc((100% - 6px) / var(--n,2));border-radius:var(--radius-pill);background:var(--seg-thumb);box-shadow:var(--e1);transform:translateX(calc(var(--i,0) * 100%));transition:transform 280ms var(--ease-move)}
.seg-btn{all:unset;box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;min-height:32px;padding:0 var(--s-3);border-radius:var(--radius-pill);color:var(--text);font:var(--type-quiet);text-align:center;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
.seg-btn[aria-checked=true]{color:var(--ink)}
.seg-btn::before{content:'';position:absolute;left:0;right:0;top:-6px;bottom:-6px}
/* A press dims the label under the finger at once; the thumb then slides to it (.seg-thumb). */
.seg-btn{transition:opacity var(--d-quick) linear,color var(--d-quick) linear}
.seg-btn:active{opacity:.6;transition-duration:var(--d-press)}
/* The switch answers the press as a phone's does: the thumb widens a little under the finger, then slides. */
.toggle .toggle-thumb{transform-origin:0 50%;transition:transform 260ms var(--spring-soft),scale var(--d-quick) var(--ease)}
.toggle[aria-checked=true] .toggle-thumb{transform-origin:100% 50%}
.toggle:active:not(:disabled) .toggle-thumb{scale:1.12 1}

/* ---- Rows and blocks ---- */
.rows{display:block;border-radius:var(--radius-card);background:var(--subtle);overflow:hidden}
.row{all:unset;box-sizing:border-box;position:relative;display:flex;align-items:center;gap:var(--s-3);width:100%;min-height:56px;padding:var(--s-3) var(--s-4);color:var(--ink);font:var(--type-body);text-align:left;touch-action:manipulation;transition:background-color var(--d-press) linear}
button.row,a.row,summary.row{cursor:pointer;-webkit-user-select:none;user-select:none}
button.row:active,a.row:active,summary.row:active{background:var(--selection)}
button.row:disabled{color:var(--text-muted);cursor:default}
.row+.row::before,.row-wrap+.row-wrap>.row::before{content:'';position:absolute;left:var(--s-4);right:0;top:0;height:1px;background:var(--line)}
.row-main{display:block;flex:1;min-width:0}
.row-title{display:block;font:var(--type-body);color:inherit}
.row-sub{display:block;font:var(--type-caption);color:var(--text-muted)}
.row-chev{flex:none;width:20px;height:20px;color:var(--text-muted)}
.row--64{min-height:64px}
.row-thumb{flex:none;width:48px;height:48px;border-radius:var(--radius-control);object-fit:cover;background:var(--selection)}
.row-thumb--note{display:grid;place-items:center;background:var(--note);color:var(--ink)}
.row-thumb--note svg{width:22px;height:22px}
.block{border-radius:var(--radius-card);background:var(--subtle);padding:var(--s-4)}
.section-gap{margin-top:var(--s-4)}

/* ---- Ack line and helper ---- */
.ack{display:flex;align-items:flex-end;height:var(--ack-h);min-height:var(--ack-h);margin-bottom:var(--s-2);font:var(--type-support);color:var(--text)}
@media (max-height:639px){.ack:not(:empty){height:auto}}
.helper{margin-top:var(--s-2);font:var(--type-support);color:var(--text-muted)}
.title--q{max-width:9em}

/* ---- Progress line. One bar, one line ---- */
.progress{position:relative;display:block;height:12px;width:100%;--p:0}
/* The journey's dashes (ui-kit.js, journeyBar): one a step, ink up to where she is. */
.progress--steps{display:flex;align-items:center}
.progress-steps{display:flex;gap:var(--s-1);width:100%}
.progress-steps i{position:relative;flex:1 1 0;height:3px;border-radius:var(--radius-pill);background:var(--line);overflow:hidden}
/* A dash fills from its start on a small spring as she moves on, and empties the same way going back. The dashes are
   kept between steps (presence-motion.js keeps a node whose class only says its state), so the fill moves. */
.progress-steps i::after{content:'';position:absolute;inset:0;border-radius:inherit;background:var(--ink);transform-origin:0 50%;transform:scaleX(0);transition:transform var(--d-move) var(--spring-settle)}
.progress-steps i.step-done::after{transform:scaleX(1)}
.progress-track{position:absolute;left:0;right:0;top:4px;height:4px;border-radius:var(--radius-pill);background:var(--line);overflow:hidden}
.progress-fill{position:absolute;inset:0;border-radius:inherit;background:var(--brand-primary);transform-origin:0 50%;transform:scaleX(var(--p));transition:transform var(--d-move) var(--spring-settle)}
.progress-bead{position:absolute;left:0;right:0;top:0;height:12px;transform:translateX(calc(var(--p) * 100%));transition:transform var(--d-move) var(--spring-settle);pointer-events:none}
.progress-bead img{position:absolute;left:-6px;top:0;width:12px;height:12px}

/* ---- A bar with a title in its middle (bar() in ui-kit.js: Back, the title, an end): the title stands at the centre
   of the page whatever stands at either side, as the file draws Settings (134:4767). The two side columns are kept
   equal and at least a target wide; a long title takes the room between them and ends in an ellipsis. A title bar
   (titleBar: the title at the left) and the journey's bar (its middle is the line) keep their own grids. ---- */
.bar:not(.bar--title):not(.bar--journey):has(>.bar-middle>.bar-title){grid-template-columns:minmax(var(--target),1fr) minmax(0,max-content) minmax(var(--target),1fr)}
.bar:not(.bar--title):not(.bar--journey):has(>.bar-middle>.bar-title)>.bar-middle{text-align:center}
/* And it is set as the file sets a pushed page's name (134:4767): 16, 600, in ink. The drawing page keeps its own, as it stands. */
.screen:not(.screen--portrait)>.bar:not(.bar--title):not(.bar--journey)>.bar-middle>.bar-title{font:var(--type-bar);letter-spacing:0;color:var(--title-ink)}
.bar:not(.bar--title):not(.bar--journey):has(>.bar-middle>.bar-title)>.bar-end{justify-self:end}
.bar:not(.bar--title):not(.bar--journey):has(>.bar-middle>.bar-title)>:first-child{justify-self:start}

/* ---- Rail. The call's only header ---- */
.rail{display:grid;gap:var(--s-1);min-width:0}
.rail-label{font:var(--type-support);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rail-segs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:var(--s-1)}
.rail-seg{position:relative;display:block;height:2px;border-radius:var(--radius-pill);background:var(--line);overflow:visible}
.rail-seg::after{content:'';position:absolute;inset:0;border-radius:inherit;background:var(--ink);transform-origin:0 50%;transform:scaleX(0);transition:transform var(--d-move) var(--spring-settle)}
.rail-seg.is-done::after{transform:scaleX(1)}
.rail-seg.is-current::after{transform:scaleX(.5)}
.rail-ember{position:absolute;right:0;top:-3px;width:8px;height:8px;opacity:0;pointer-events:none}
.rail-seg.is-done .rail-ember{opacity:1}
.rail-timer{display:block;width:44px;text-align:right;font:var(--type-caption);color:var(--text-muted);font-variant-numeric:tabular-nums}

/* ---- Sheets: two forms, both native dialog. No third form. No centred modal anywhere ---- */
dialog.sheet{position:fixed;inset:auto 0 0 0;display:none;flex-direction:column;margin:0 auto;padding:0;border:0;max-width:none;max-height:none;width:auto;min-height:0;background:var(--surface);color:var(--ink);font:var(--type-body);box-shadow:var(--e3);overflow:hidden;--sheet-pad-l:var(--page-l);--sheet-pad-r:var(--page-r)}
dialog.sheet[open]{display:flex}
dialog.sheet::backdrop{background:var(--scrim);backdrop-filter:none;-webkit-backdrop-filter:none;opacity:var(--scrim-o,1)}
dialog.sheet--tall{top:calc(56px + var(--safe-top));bottom:var(--kb);height:auto;width:min(100%,var(--column));border-radius:var(--radius-panel) var(--radius-panel) 0 0}
dialog.sheet--short{top:auto;bottom:max(8px,calc(var(--safe-bottom) + var(--kb)));height:fit-content;width:calc(min(100vw,var(--column)) - 16px);max-height:calc(100dvh - 72px - var(--kb));border-radius:var(--radius-panel);--sheet-pad-l:calc(var(--gutter) - 8px);--sheet-pad-r:calc(var(--gutter) - 8px)}
.sheet-form{display:flex;flex-direction:column;flex:1;min-height:0}
.sheet-head{flex:none;position:relative;padding:calc(var(--s-3) + 4px) var(--sheet-pad-r) var(--s-1) var(--sheet-pad-l);touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}
.sheet-grabber{position:absolute;left:50%;top:var(--s-2);width:36px;height:4px;margin-left:-18px;border-radius:var(--radius-pill);background:var(--line)}
.sheet-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--s-2);min-height:44px}
.sheet-bar--back{grid-template-columns:44px minmax(0,1fr) auto}
.sheet-title{font:var(--type-voice);color:var(--ink);min-width:0;outline:none}
/* The sheet's close as the file draws it (134:4498): a round 40px button with a 20px cross, top right, in the 44px
   target. On the sheet's paper the file's white glass reads as the fill. */
.sheet-bar>.icon-btn--end{place-items:center}
.sheet-bar>.icon-btn--end::after{content:'';position:absolute;inset:2px;border-radius:50%;background:var(--selection);transition:transform var(--d-press) linear}
.sheet-bar>.icon-btn--end svg{position:relative;z-index:1;width:20px;height:20px;margin:0}
.sheet-bar>.icon-btn--end:active::after{transform:scale(.94)}
.sheet-sub{display:block}
.sheet-segs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:var(--s-1);margin-top:var(--s-2)}
.sheet-segs span{display:block;height:2px;border-radius:var(--radius-pill);background:var(--line)}
.sheet-segs span.is-on{background:var(--brand-primary)}
.sheet-body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:var(--s-2) var(--sheet-pad-r) var(--s-6) var(--sheet-pad-l);scroll-padding-bottom:var(--s-6)}
.sheet-foot{flex:none;position:relative;display:grid;gap:var(--s-2);padding:var(--s-3) var(--sheet-pad-r) max(16px,var(--safe-bottom)) var(--sheet-pad-l)}
dialog.sheet--short .sheet-foot{padding-bottom:var(--s-4)}
.sheet-foot::before{content:'';position:absolute;left:0;right:0;bottom:100%;height:24px;background:linear-gradient(transparent,var(--surface));pointer-events:none}
.sheet-foot .quiet{justify-self:center}
.sheet-bleed{margin-inline:calc(-1 * var(--sheet-pad-l)) calc(-1 * var(--sheet-pad-r))}
.sheet-section{margin-top:var(--s-4)}
.sheet-foot-note{margin-top:var(--s-3)}
.part{margin-top:var(--s-5)}
.part .label{display:block;margin-bottom:var(--s-1)}

/* ---- Dialog: a Short sheet with role=alertdialog, no grabber, no close ---- */
.dialog-form{display:grid;gap:0;padding:var(--s-6) var(--sheet-pad-r) var(--s-4) var(--sheet-pad-l)}
.dialog-title{font:var(--type-voice);color:var(--ink)}
.dialog-body{margin-top:var(--s-2);font:var(--type-body);color:var(--text)}
.dialog-actions{display:grid;gap:var(--s-2);margin-top:var(--s-6)}

/* ---- Toast. For undo only. Lives above the dock or the tab bar ---- */
.toast{position:absolute;left:var(--page-l);right:var(--page-r);bottom:var(--toast-bottom,12px);z-index:6;display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);min-height:48px;padding:var(--s-1) var(--s-4) var(--s-1) var(--s-5);border-radius:var(--radius-pill);background:var(--brand-primary);color:var(--on-primary);font:var(--type-support);box-shadow:var(--e2)}
.toast-action{all:unset;box-sizing:border-box;position:relative;display:inline-flex;align-items:center;min-height:44px;padding:0 var(--s-1);color:var(--on-primary);font:var(--type-quiet);font-weight:600;cursor:pointer;touch-action:manipulation}
.toast-action:active{opacity:.6}

/* ---- Tab bar ---- */
/* The design's tab bar: a floating pill over the page, four tabs, the one in use in ink. The Figma file draws it so on
   VisionScape and Settings (127:2374, 134:4807: 348 x 71, white at 70% with a white hairline, fully round) and plain on
   Today; one bar everywhere, the floating one, because her pictures run under it and it must read the same on every
   page. Frosted, so words passing under it stay quiet. The tab in use: its icon filled, its name in 600. */
.tabs{all:unset;box-sizing:border-box;grid-row:4;position:relative;z-index:2;display:block;padding:0 var(--page-r) calc(var(--safe-bottom) + var(--s-2)) var(--page-l);background:transparent}
.kb-open .tabs{display:none}
/* The page runs on under the floating bar, as the file draws it: on a page with no dock of its own the body reaches the
   foot of the screen, and keeps room at its end so its last line scrolls clear of the bar. */
.screen:has(>.tabs):not(:has(>.dock))>.body{grid-row:2/5;grid-column:1}
.screen:has(>.tabs):not(:has(>.dock))>.tabs{grid-column:1;align-self:end}
/* A field focused low on such a page scrolls clear of the bar. */
.screen:has(>.tabs):not(:has(>.dock))>.body{scroll-padding-bottom:calc(70px + var(--safe-bottom) + var(--s-4))}
.screen:has(>.tabs):not(:has(>.dock))>.body::after{content:'';display:block;flex:none;height:calc(70px + var(--safe-bottom) + var(--s-2))}
/* What runs on under the floating bar fades into the page from a little above it, on every tab page (Today, VisionScape,
   Settings, the Compass), so a row cut by the bar never reads as a loose line under it. The board paints its own band
   for its Add pill. Taps pass through the fade. */
.screen:has(>.tabs):not(:has(>.dock)):not(.screen--board)>.tabs::before{content:'';position:absolute;left:0;right:0;bottom:0;top:calc(-1 * var(--s-7));z-index:-1;pointer-events:none;background:linear-gradient(to bottom,rgb(var(--surface-rgb) / 0),rgb(var(--surface-rgb) / .94) 52%)}
.tabs-inner{position:relative;display:grid;grid-template-columns:repeat(4,1fr);height:70px;padding:0 var(--s-3);border-radius:var(--radius-pill);background:var(--tabs-glass);box-shadow:inset 0 0 0 1px var(--tabs-edge),var(--e1);-webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2)}
.tab{all:unset;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:var(--tabs-h);color:var(--text);font:var(--type-label);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;transition:color var(--d-quick) linear}
.tab svg{width:24px;height:24px;transition:transform var(--d-press) linear}
.tab svg path{transition:fill var(--d-quick) linear}
.tab:active svg{transform:scale(.92)}
.tab.active,.tab[aria-current=page]{color:var(--ink);font-weight:600}
.tab.active .tab-fill{fill:currentColor}
.tab.active .tab-cut{stroke:var(--surface);fill:var(--surface)}
.tab-bead{position:absolute;left:0;top:3px;width:calc(100% / 4);height:8px;display:none;place-items:center;transform:translateX(calc(var(--nav-index,0) * 100%));transition:transform 360ms var(--spring-soft);pointer-events:none}
.tab-bead img{width:8px;height:8px}

/* ---- Pills and circles in the call dock ---- */
.pill{all:unset;box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;gap:var(--s-2);flex:1;min-width:0;min-height:var(--primary-h);padding:0 var(--s-5);border-radius:var(--radius-pill);background:var(--brand-primary);color:var(--on-primary);font:var(--type-button);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;transition:background-color var(--d-press) linear,transform 160ms var(--ease)}
.pill svg{width:22px;height:22px}
.pill:active{background:var(--brand-primary-strong);transform:scale(.98)}
.circle{all:unset;box-sizing:border-box;position:relative;display:grid;place-items:center;flex:none;width:56px;height:56px;border-radius:50%;background:var(--subtle);color:var(--ink);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;transition:background-color var(--d-press) linear,transform var(--d-move) var(--ease-press)}
.circle svg{width:24px;height:24px}
.circle:active{background:var(--selection);transform:scale(.94);transition-duration:var(--d-press);transition-timing-function:ease-out}
.circle--48{width:48px;height:48px}
.circle--danger{background:var(--error);color:var(--white)}
.circle--danger:active{background:var(--error)}
.circle[aria-pressed=true]{background:var(--selection)}

/* ---- Orb still: the small mark (a bead on the progress line, the tab bar) ---- */
.orb-still{display:block;margin-inline:auto;object-fit:contain;pointer-events:none}

/* ---- The orb at rest (ui-kit.js, auraOrb): the stage's six lights under its soft edge, over its halo. The live
   orb of a call (call-stage.js) and of a release is the same thing in motion, so this one uses the call orb's own
   layout, drift and edge. Sized by its box; everything inside is in container units, so one rule serves a 48px
   orb and a 168px one. Each light is blurred once and then only moved, so nothing is repainted per frame ---- */
.aura-orb{position:relative;display:block;flex:none;width:var(--orb,112px);aspect-ratio:1;margin-inline:auto;container-type:size;pointer-events:none}
.aura-orb-halo{position:absolute;inset:-34%;border-radius:50%;background:radial-gradient(circle,rgb(var(--depth-rgb) / .30) 0%,rgb(var(--root-rgb) / .12) 38%,transparent 64%);animation:aura-orb-breath var(--d-breath) var(--ease-breath) infinite}
.aura-orb-core{position:absolute;inset:0;overflow:hidden;isolation:isolate;background:var(--surface);
  -webkit-mask:url('../assets/call/breath-soft-mask.webp') center/100% 100% no-repeat;
  mask:url('../assets/call/breath-soft-mask.webp') center/100% 100% no-repeat;
  animation:aura-orb-breath var(--d-breath) var(--ease-breath) infinite}
.aura-orb-core i{position:absolute;display:block;width:82%;aspect-ratio:1;border-radius:50%;filter:blur(20cqw);will-change:transform}
.aura-orb-core i:nth-child(1){z-index:3;left:-27%;bottom:-18%;background:radial-gradient(circle at 58% 36%,var(--root-light) 0%,color-mix(in srgb,var(--root-light) 70%,var(--still-light)) 48%,transparent 72%);animation:cs-cloud-a 5.2s cubic-bezier(.45,0,.55,1) infinite alternate}
.aura-orb-core i:nth-child(2){z-index:2;left:0;bottom:-42%;background:radial-gradient(circle at 45% 42%,var(--still-light) 0%,color-mix(in srgb,var(--still-light) 70%,var(--depth-light)) 50%,transparent 73%);animation:cs-cloud-b 5.8s ease-in-out -3.1s infinite alternate}
.aura-orb-core i:nth-child(3){z-index:4;left:-22%;top:-24%;background:radial-gradient(circle at 50% 50%,var(--ember-light) 0%,color-mix(in srgb,var(--ember-light) 70%,var(--pulse-light)) 48%,transparent 73%);animation:cs-cloud-c 4.8s ease-in-out -4.7s infinite alternate}
.aura-orb-core i:nth-child(4){z-index:5;right:-21%;top:-16%;background:radial-gradient(circle at 44% 48%,var(--pulse-light) 0%,color-mix(in srgb,var(--pulse-light) 70%,var(--bond-light)) 49%,transparent 73%);animation:cs-cloud-b 5.4s ease-in-out -1.9s infinite alternate-reverse}
.aura-orb-core i:nth-child(5){z-index:3;right:-30%;bottom:-16%;background:radial-gradient(circle at 40% 38%,var(--bond-light) 0%,color-mix(in srgb,var(--bond-light) 70%,var(--depth-light)) 51%,transparent 73%);animation:cs-cloud-c 6s ease-in-out -5.4s infinite alternate-reverse}
.aura-orb-core i:nth-child(6){z-index:2;right:-2%;bottom:-39%;background:radial-gradient(circle at 46% 37%,var(--depth-light) 0%,color-mix(in srgb,var(--depth-light) 70%,var(--still-light)) 48%,transparent 73%);animation:cs-cloud-a 5s ease-in-out -2.6s infinite alternate-reverse}
@keyframes aura-orb-breath{0%,100%{transform:scale(.95)}33%,50%{transform:scale(1.04)}}
html.motion-paused .aura-orb :is(.aura-orb-halo,.aura-orb-core,i){animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.aura-orb :is(.aura-orb-halo,.aura-orb-core,i){animation:none}}

/* ---- Focus: on :focus-visible only, everywhere ---- */
:is(button,a,summary,[role=button],[role=switch],[role=radio],[role=checkbox],.tab,.chip,.option,.row,.pill,.circle,.quiet,.primary,.secondary,.icon-btn,.seg-btn,.toggle,.toast-action,.destructive):focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
.vb-viewport:focus-visible{outline:2px solid var(--brand-primary);outline-offset:-4px}

@media (prefers-reduced-motion:reduce){
  .primary,.secondary,.option,.chip,.quiet,.toggle-thumb,.toggle .toggle-thumb,.seg-thumb,.seg-btn,.tab-bead,.progress-fill,.progress-bead,.progress-steps i::after,.rail-seg::after,.pill,.circle,.icon-btn svg,.tab svg{transition-duration:.01ms}
  .primary:active:not(:disabled),.secondary:active:not(:disabled),.option:active,.chip:active,.pill:active,.circle:active,.icon-btn:active svg,.tab:active svg{transform:none}
  .toggle:active:not(:disabled) .toggle-thumb{scale:none}
}
/* The safety line above a question. Three lines are allowed here, and only here. */
.ack--safety{height:auto;color:var(--ink);padding-top:var(--s-2)}
}

/* Screen group: entry. Layout and details for this group only. Everything here stays in @layer screens. */
@layer screens {
/* ---- Opening film (owner upgrade): white paper, ink, the one orb ---- */
/* The film stays inside the column, edge to edge, and is the same paper as every page after it. */
.welcome-opening{inset:0;max-width:var(--column);border-radius:0;font-family:var(--font);color:var(--ink)}
/* The first screen's paper: white, with the aura low on the diagonal, cool light from the lower left and warm light
   from the lower right, each drifting slowly about the foot of the screen. Only transform moves. index.html's
   #startup draws the same two lights, still, before any stylesheet loads, so the film begins on them. */
.opening-canvas{background:var(--surface)}
.opening-canvas::before,.opening-canvas::after{content:"";position:absolute;bottom:-26%;width:120%;height:60%;pointer-events:none;will-change:transform}
/* The Figma splash's light (its "Group 5839" at a fifth of its strength): sky low on the left with amber above it,
   rose and lilac low on the right. The room's four lights, never the spectrum. */
.opening-canvas::before{left:-58%;background:radial-gradient(closest-side at 64% 30%,rgb(var(--room-amber-rgb) / .2),rgb(var(--room-amber-rgb) / 0)),radial-gradient(closest-side at 50% 62%,rgb(var(--room-sky-rgb) / .34),rgb(var(--room-sky-rgb) / .12) 55%,rgb(var(--room-sky-rgb) / 0));animation:opening-wash-cool 18s var(--ease-breath) infinite alternate}
.opening-canvas::after{right:-58%;background:radial-gradient(closest-side at 46% 44%,rgb(var(--room-rose-rgb) / .14),rgb(var(--room-rose-rgb) / 0)),radial-gradient(closest-side at 50% 66%,rgb(var(--room-lilac-rgb) / .3),rgb(var(--room-lilac-rgb) / .1) 55%,rgb(var(--room-lilac-rgb) / 0));animation:opening-wash-warm 22s var(--ease-breath) infinite alternate}
@keyframes opening-wash-cool{0%{transform:translate(0,0)}35%{transform:translate(14%,-12%)}70%{transform:translate(4%,-22%)}100%{transform:translate(18%,-4%)}}
@keyframes opening-wash-warm{0%{transform:translate(0,0)}30%{transform:translate(-12%,-16%)}65%{transform:translate(-4%,-26%)}100%{transform:translate(-18%,-6%)}}
@media (prefers-reduced-motion:reduce){.opening-canvas::before,.opening-canvas::after{animation:none}}
/* One dawn tint at the top, the questions' own --ember-tint. A dithered image at half size (assets/opening/dawn.png,
   216x468, so it never bands), scaled up; only its opacity moves. */
/* Hidden since the owner's review: even faint, its edge read as a stain on the paper. The film still drives it. */
.opening-dawn{position:absolute;left:0;top:0;width:50%;height:50%;transform:scale(2);transform-origin:0 0;opacity:0;will-change:opacity;display:none;
  background:var(--surface) url(../assets/opening/dawn.png) 0 0/100% 100% no-repeat}

/* The Welcome page waits under the film. Its parts arrive in order as the light lands (the logo's word, then
   the mark taking over from the light, then title, words and actions), each on its own layer, so the reveal
   is transform and opacity only and never repaints the page in one frame. */
body.opening-active #app :is(.brand-lockup-word,.brand-lockup-mark,.body>*,.dock){will-change:transform,opacity}

/* The first screen: the HumanOS mark where the orb will rest, then its name and its line. Her tap starts the
   score; the name lifts away and the mark's light swells into the orb. */
.opening-brand{position:absolute;left:0;right:0;display:flex;flex-direction:column;align-items:center;padding-inline:var(--page-l)}
.opening-brand-mark{position:relative;display:block;width:var(--mark);height:var(--mark);max-width:none;will-change:transform,opacity}
.opening-brand-halo{position:absolute;left:50%;top:calc(var(--mark) / 2);width:calc(var(--mark) * 3.2);height:calc(var(--mark) * 3.2);max-width:none;transform:translate(-50%,-50%);opacity:.24;will-change:opacity}
/* The name under the mark. Its line stands at the foot of the screen (the hint, below). */
.opening-brand-words{display:flex;flex-direction:column;align-items:center;margin-top:var(--s-6);will-change:transform,opacity}
.opening-brand-word{display:block;width:auto;height:26px;max-width:none}
.opening-brand-line{margin:var(--s-4) 0 0;font:var(--type-title);font-size:var(--text-lg);line-height:26px;letter-spacing:0;color:var(--text);text-align:center;text-wrap:balance}
/* The mark is the only colour on the opening: Skip is ink like the sound control. */
.opening-control.opening-skip{color:var(--text)}

/* The one orb. Its box is the orb at full lungs and is only ever scaled down, so it never blurs from upscaling. */
.opening-light{position:absolute;left:50%;top:50%;opacity:0;pointer-events:none;will-change:transform,opacity;transform-origin:50% 50%}
.opening-light img{position:absolute;inset:0;width:100%;height:100%;max-width:none;display:block;user-select:none;pointer-events:none;will-change:transform}
.opening-light-glow{opacity:0}
/* The orb is round and soft-edged whatever the image's own rim does, and a touch lighter than the paint, so on
   white paper it reads as light, not as a ball. */
.opening-light-orb{opacity:.9;-webkit-mask-image:radial-gradient(closest-side,var(--black) 68%,transparent 100%);mask-image:radial-gradient(closest-side,var(--black) 68%,transparent 100%)}

/* Sound and Skip sit on the gutter as 44px targets, centred in the bar the welcome page will have. No pill, no blur. */
.opening-controls{left:calc(var(--page-l) - 10px);right:calc(var(--page-r) - 12px);top:calc(var(--safe-top) + 4px)}
.opening-control{min-width:var(--target);min-height:var(--target);padding:0 12px;border-radius:var(--radius-pill);font:var(--type-quiet);color:var(--brand-primary);transition:opacity var(--d-quick) linear;-webkit-tap-highlight-color:transparent}
.opening-control[data-opening-action=sound]{width:var(--target);padding:0;color:var(--text)}
.opening-control svg{width:22px;height:22px;stroke-width:1.65}
.opening-control:active{opacity:.6}
.opening-sound-hint{bottom:calc(var(--safe-bottom) + var(--s-7));font:var(--type-caption);color:var(--text-muted);text-shadow:none}
/* Before her tap the first screen settles in, and the page asks for one tap, which starts the film and its score
   together. Only transform and opacity move; the tap hands over to the film's own values. */
.welcome-opening.is-waiting .opening-brand-mark{animation:opening-gate-mark 1200ms var(--ease) both}
.welcome-opening.is-waiting .opening-brand-word{animation:opening-gate-rise 900ms var(--ease) 280ms both}
.welcome-opening.is-waiting .opening-brand-line{animation:opening-gate-rise 900ms var(--ease) 460ms both}
/* Before her tap the hint is the brand's line, "Awaken more in you…", at the foot: the tap anywhere it invites stays. */
.welcome-opening.is-waiting .opening-sound-hint{bottom:calc(var(--safe-bottom) + var(--s-8));font:var(--type-body);color:var(--text);animation:opening-gate-in 700ms var(--ease) 460ms both}
@keyframes opening-gate-in{from{opacity:0}to{opacity:1}}
@keyframes opening-gate-from{from{opacity:0}}
@keyframes opening-gate-mark{from{opacity:0;transform:scale(.86)}}
@keyframes opening-gate-rise{from{opacity:0;transform:translateY(10px)}}
@media (prefers-reduced-motion:reduce){.welcome-opening.is-waiting :is(.opening-brand-mark,.opening-brand-halo,.opening-brand-word,.opening-brand-line,.opening-sound-hint){animation:none}}

/* Captions are the guide's voice: the serif of the call, "Breathe in" included. */
.opening-caption,.opening-pause strong{font:var(--type-title);font-size:var(--text-3xl);line-height:36px;letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
.opening-caption-line{column-gap:.24em}
.opening-pause p{margin-top:var(--s-2);font:var(--type-support);color:var(--text)}
.opening-again{left:var(--page-l);right:var(--page-r);bottom:max(16px,var(--safe-bottom))}
@media (max-height:699px){.opening-caption,.opening-pause strong{font-size:var(--text-2xl);line-height:32px}}

/* The hairline under the words: one breath in three parts, in, hold and out, each as long as it lasts.
   Quiet ink on a line track, never the bright accent: the orb is what the eye should follow. */
/* The orb's swell is the breath's timer and the captions name each part, so the progress line stays hidden: on
   white paper its three dashes read as a loading bar. */
.opening-progress{position:absolute;left:50%;width:96px;margin-left:-48px;height:2px;display:none;gap:3px;opacity:0;will-change:opacity}
.opening-progress i{flex:1 1 0;height:2px;border-radius:var(--radius-control);background:var(--line);overflow:hidden}
.opening-progress b{display:block;height:100%;background:var(--ink);opacity:.55;transform:scaleX(0);transform-origin:0 50%}

/* ---- Welcome ---- */
.brand-lockup{display:flex;align-items:center;height:30px}
.brand-lockup img{display:block;height:30px;width:auto;max-width:none}
.brand-lockup-mark{transform-origin:50% 50%}
.welcome-body{display:flex;flex-direction:column;padding-top:var(--s-4);padding-bottom:0}
.welcome-lead{margin-top:var(--s-2);color:var(--text);text-wrap:balance}
.welcome-said{margin-top:var(--s-3)}
.welcome-said+.quote{margin-top:var(--s-1)}
/* The river at dawn in the opening's own colours: paper, a lifted ink, cyan water, a peach sky. It rises out of
   the paper under her words (a long feather, so there is no empty band and no hard top edge), its full-strength
   part stays under 38% of the screen, and it feathers into paper over 64px above the actions. */
.welcome-plate{flex:1 1 0;min-height:0;max-height:56vh;max-height:56dvh;margin:var(--s-2) calc(-1 * var(--page-r)) 0 calc(-1 * var(--page-l));overflow:hidden;-webkit-mask-image:linear-gradient(transparent,rgb(var(--black-rgb) / 0.35) 22%,var(--black) 46%,var(--black) calc(100% - 64px),transparent);mask-image:linear-gradient(transparent,rgb(var(--black-rgb) / 0.35) 22%,var(--black) 46%,var(--black) calc(100% - 64px),transparent)}
.welcome-plate img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center 0;transform-origin:50% 40%}
@media (max-height:519px){.welcome-plate{display:none}}
/* Returning: her words lead, and the same painting fills the rest of the page as on the first Welcome, so coming
   back feels like the same calm place rather than a page with a hole in it. */
.welcome-body--resume .welcome-plate{margin-top:var(--s-3)}
/* The landscape settles in once, the way a painting comes into focus. Transform and opacity only. */
@media (prefers-reduced-motion:no-preference){
  .welcome-plate img{animation:welcome-plate-settle 1600ms var(--ease) both}
}
/* The outgoing copy of the page holds the painting still; it must not replay the settle as it leaves. */
[data-motion-ghost] .welcome-plate img{animation:none}
@keyframes welcome-plate-settle{from{opacity:0;transform:scale(1.045)}to{opacity:1;transform:none}}
}

/* ---- wall: the sign-in sheet over her Living Vision (views/wall.js; builder C, 1 December 2026) ----
   The Figma frame "Convo" (134:4423): her vision blurred behind a faint wash, and a white sheet from the foot with a
   round close button, the mark, the two-line title and the way in. The page under it (views/portrait.js, draftView
   with `walled`) is held still; this layer is the last child of that screen. As she passes, app.js lays a copy of it
   over the page (.wall--leaving) and draws the page without it: the sheet slides away and the wash fades, so the blur
   lifts while the drawing begins. Transform and opacity only. */
@layer screens {
.wall{position:fixed;inset:0;z-index:40;display:flex;flex-direction:column;justify-content:flex-end;pointer-events:auto}
.wall-veil{position:absolute;inset:0;background:var(--wall-veil);-webkit-backdrop-filter:blur(var(--wall-blur));backdrop-filter:blur(var(--wall-blur))}
.wall-sheet{position:relative;box-sizing:border-box;width:100%;max-width:var(--column);margin:0 auto;display:flex;flex-direction:column;align-items:center;padding:var(--s-9) var(--s-4) calc(var(--s-7) + var(--safe-bottom));border-radius:var(--radius-panel) var(--radius-panel) 0 0;background:var(--surface);color:var(--ink);box-shadow:var(--e3);text-align:center;max-height:calc(100% - var(--s-8));overflow-y:auto;overscroll-behavior:contain}
.wall-close{all:unset;box-sizing:border-box;position:absolute;top:var(--s-4);right:var(--s-4);display:grid;place-items:center;width:var(--s-8);height:var(--s-8);border-radius:var(--radius-pill);background:var(--wall-close);box-shadow:inset 0 0 0 1px var(--wall-close);color:var(--ink);cursor:pointer;touch-action:manipulation}
.wall-close::after{content:'';position:absolute;inset:calc((var(--target) - var(--s-8)) / -2)}
.wall-close svg{width:var(--s-5);height:var(--s-5)}
.wall-close:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
.wall-field:focus-visible{outline:none}
.wall-mark{display:block;width:72px;height:72px}
/* The logo is the white mark at night, as on the sign-in page (base.css): the spectrum mark sank into the dark sheet. */
:root[data-theme="dark"] .wall-mark{filter:brightness(0) invert(1)}
.wall-title{margin:var(--s-5) 0 0;font:var(--type-voice);letter-spacing:var(--track-voice);color:var(--ink);text-wrap:balance}
.wall-title:focus{outline:none}
.wall-lead{margin:var(--s-2) 0 0;max-width:32ch}
.wall-form{display:flex;flex-direction:column;align-items:stretch;gap:var(--s-3);width:100%;margin-top:var(--s-7)}
.wall-field{min-height:52px;padding:0 var(--s-5);border-radius:var(--radius-pill);background:var(--subtle);box-shadow:inset 0 0 0 1px var(--wall-edge);text-align:center}
.wall-field:focus{background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--brand-primary)}
.wall-code{letter-spacing:.3em}
.wall-message{margin:0;min-height:0;color:var(--error)}
.wall-message[role=status]{color:var(--text)}
.wall-message:empty{display:none}
.wall-preview{margin:0;color:var(--text)}
.wall-send{margin-top:var(--s-1)}
.wall-more{display:flex;justify-content:center;gap:var(--s-5);flex-wrap:wrap}
.wall-skip{align-self:center}
.wall--leaving{z-index:1000;pointer-events:none}
@media (prefers-reduced-motion:no-preference){
  .wall .wall-sheet{animation:wall-rise var(--d-move) var(--ease-move) both}
  .wall .wall-veil{animation:wall-fade var(--d-base) var(--ease) both}
  .wall--leaving .wall-sheet{animation:wall-fall var(--d-base) var(--ease-exit) both}
  .wall--leaving .wall-veil{animation:wall-lift var(--d-moment) var(--ease) both}
  /* The outgoing copy of a page holds the sheet where it is. */
  [data-motion-ghost] .wall .wall-sheet,[data-motion-ghost] .wall .wall-veil{animation:none}
}
@keyframes wall-rise{from{transform:translateY(100%)}to{transform:none}}
@keyframes wall-fade{from{opacity:0}to{opacity:1}}
@keyframes wall-fall{from{transform:none}to{transform:translateY(105%)}}
@keyframes wall-lift{from{opacity:1}to{opacity:0}}
}

/* Screen group: profile. Layout and details for this group only. Everything here stays in @layer screens. */
@layer screens {
/* ---- Name ---- */
/* Why we ask, under the field: one quiet line, so a careful person knows before typing. */
.name-why{margin-top:var(--s-1)}
.profile-photo{margin-top:24px}
.profile-photo-trigger{display:inline-flex;align-items:center;gap:12px;min-height:52px;border-radius:var(--radius-panel);color:var(--text)}
.profile-photo-avatar{flex:0 0 52px;width:52px;height:52px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--subtle);color:var(--text-muted)}
.profile-photo-avatar img{width:100%;height:100%;object-fit:cover}
.profile-photo-avatar svg{width:27px;height:27px}
.profile-photo-caption{font-size:var(--text-sm);line-height:20px;padding-right:4px}
.profile-photo .support{font-size:var(--text-sm);line-height:1.4;margin-top:4px}
.profile-photo-status{margin:0;min-height:0}
.profile-photo-status:empty{display:none}
.gender-open{display:grid;gap:var(--s-2);margin-top:var(--s-4)}
/* Gender choices arrive with the screen; the reconciler keeps these nodes when a chip is picked. */
@media (prefers-reduced-motion:no-preference){
  .gender-open>.label,.gender-open .chip{animation:profile-rise var(--d-base) var(--ease) backwards}
  .gender-open .chip:nth-child(2){animation-delay:30ms}
  .gender-open .chip:nth-child(3){animation-delay:60ms}
  .gender-open .chip:nth-child(4){animation-delay:90ms}
  .gender-open .chip:nth-child(5){animation-delay:120ms}
  .details-voice{animation:profile-rise var(--d-base) var(--ease) backwards}
}
@keyframes profile-rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---- Your details ---- */
.details-body{display:flex;flex-direction:column;padding-top:var(--s-1)}
.details-body>*{flex:none}
.field-group--first{margin-top:0}
.details-label{margin-bottom:var(--s-2)}
/* How voice works expands in place, so its chevron turns down and back instead of pointing away. */
.details-chev svg{display:block;width:100%;height:100%;transform:rotate(90deg);transition:transform var(--d-base) var(--ease)}
.details-disclose[aria-expanded=true] .details-chev svg{transform:rotate(-90deg)}
.details-voice{margin-top:var(--s-3);max-width:34em}
/* Under the three speeds of Noor's voice: when the choice takes effect. */
.pace-note{margin-top:var(--s-3);font-size:var(--text-sm);line-height:1.4}
.details-body>.destructive{align-self:flex-start}
/* The lockup signs the content, 40px after Start over, not the dock. */
.details-lockup{display:block;width:auto;height:22px;max-width:none;align-self:flex-start;margin-top:var(--s-8);opacity:.9}
.row-tick{color:var(--brand-primary)}
}

/* Screen group: questions. Layout and details for this group only. Everything here stays in @layer screens. */
@layer screens {
.question-chapter{font:var(--type-label);color:var(--brand-primary);margin:4px 0 8px}
/* Every title is two lines at every width, reserved. */
.question-title{max-width:9em;min-height:calc(2 * 30px)}
@media (max-width:359px){.question-title{min-height:calc(2 * 30px)}}
.question-body .helper{min-height:20px;transition:color var(--d-quick) linear}
.question-body .helper--limit{color:var(--text)}
/* Seven options at 360x740 overflowed by 14px: a scroll that shows nothing. Below 780 tall every option on every
   question is 2px shorter, so the seven fit there and all six questions keep one rhythm per phone. */
@media (max-height:779px){.question-body .option{min-height:52px;padding-block:14px}}
/* What scrolls under the bar fades out over 28px instead of being cut, so no sliver of an option shows there. */
.question-body::before{height:28px;margin-bottom:-20px}
/* Better, where scroll-driven animation runs: the content itself fades into whatever is behind it (the dawn wash
   too, which a paper-coloured band could not match), and only once it has scrolled: at rest nothing is masked. */
@property --q-top-fade{syntax:'<length>';inherits:false;initial-value:0px}
@supports (animation-timeline:scroll()){
  .question-body{-webkit-mask-image:linear-gradient(to bottom,transparent 0,var(--black) var(--q-top-fade));mask-image:linear-gradient(to bottom,transparent 0,var(--black) var(--q-top-fade));animation:q-top-fade linear both;animation-timeline:scroll(self);animation-range:0 24px}
  .question-body::before{display:none}
}
@keyframes q-top-fade{from{--q-top-fade:0px}to{--q-top-fade:32px}}

/* Selecting: the tint, the edge ring and the indicator's fill arrive together on one frame, 160ms. The tick draws after. */
.question-body .option-ring{transition:background-color var(--d-quick) linear,box-shadow var(--d-quick) linear}

/* The line sits optically centred between the chevron's ink and the count, not between their boxes. */
.screen--question .bar .progress{width:auto;margin:0 6px 0 -18px}

/* The touch light. It fills the option exactly and grows out of the finger by scaling about that point, so it never
   reaches past the option's edges: nothing to clip and nothing added to the option's scroll size. Only on while it plays. */
.question-body .option::before{content:'';position:absolute;inset:0;border-radius:inherit;background:radial-gradient(circle farthest-corner at var(--touch-x,50%) var(--touch-y,50%),rgb(var(--root-rgb) / .9),rgb(var(--root-rgb) / 0) 70%);transform-origin:var(--touch-x,50%) var(--touch-y,50%);opacity:0;pointer-events:none}
.question-body .option-label{position:relative}
}

@layer screens {
/* One meaningful illustration, a short reflection, and a thread to carry forward. */
.moment-eyebrow{font:var(--type-label);color:var(--text-muted);margin-bottom:10px}
.moment-title{font:var(--type-large);letter-spacing:var(--track-title);text-wrap:balance}
.moment-copy{color:var(--text);margin-top:16px;text-wrap:pretty;font-size:var(--text-md);line-height:24px}
.moment-body{text-align:center;padding-top:24px}
.screen--moment .moment-body{display:flex;flex-direction:column}
.screen--moment .story-art{margin-top:auto;margin-bottom:28px}
.screen--moment .moment-title{max-width:330px;margin-inline:auto;flex:none}
.screen--moment .guide-note{margin:22px auto auto;padding:16px;border:0;border-radius:var(--radius-card);background:var(--subtle);max-width:350px;flex:none}
.screen--moment .guide-note .label{margin-bottom:4px}
.screen--moment .guide-note-copy{font:var(--type-button)}
.moment-next{text-align:center;text-wrap:balance;margin-bottom:12px}
.onboarding-tools{display:flex;align-items:center;gap:5px}
.onboarding-sound{flex:none;opacity:.75;width:40px;height:44px;place-items:center}
.onboarding-sound::before{inset:0}
.onboarding-sound svg{width:19px;height:19px;margin:0}
.onboarding-sound[aria-pressed="false"]{opacity:.45}
.screen--question .bar-middle{min-width:40px}
.story-art{position:relative;isolation:isolate;display:grid;place-items:center;width:300px;max-width:100%;height:210px;margin:6px auto 22px}
.story-art img{position:relative;z-index:1;width:190px;height:190px;object-fit:contain;mix-blend-mode:multiply}
.story-paper{position:absolute;width:174px;height:174px;border-radius:48% 52% 44% 56%;background:var(--ember-tint);opacity:.65;transform:rotate(-12deg)}
.story-art[data-art="meaning"] .story-paper{background:var(--root-tint)}
.story-art[data-art="step"] .story-paper{background:var(--selection)}
.story-art[data-art="path"] .story-paper{background:var(--ember-tint)}
.story-thread{position:absolute;width:300px;height:200px;inset:auto;overflow:visible;stroke:var(--line-strong);stroke-width:1;z-index:0}
.story-thread circle{fill:var(--root);stroke:none}.story-thread circle:last-child{fill:var(--ember)}
.story-line{stroke-dasharray:1;stroke-dashoffset:0}
.story-art--compact{height:150px;margin:0 auto 14px}
.story-art--compact img{width:144px;height:144px}
.story-art--compact .story-paper{width:135px;height:135px}
.story-art--compact .story-thread{width:220px;height:147px}
.moment-thread{display:flex;align-items:flex-start;gap:13px;text-align:left;margin-top:26px;padding:18px 0 0;border-top:1px solid var(--line)}
.moment-thread>svg{flex:none;width:23px;height:23px;color:var(--brand-primary);margin-top:2px}
.moment-thread .label{display:block;color:var(--text-muted);font-size:var(--text-xs);line-height:18px;margin-bottom:5px}
.moment-thread p{font:var(--type-heading);letter-spacing:var(--track-quote);text-wrap:pretty;color:var(--ink)}
.guide-note{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;text-align:left;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}
.guide-note>.orb-still{width:28px;height:28px;margin-top:1px}
.guide-note .label{display:block;font-size:var(--text-xs);line-height:18px;color:var(--text-muted);margin-bottom:5px}
.guide-note-copy{font:var(--type-heading);letter-spacing:var(--track-quote);color:var(--ink);text-wrap:pretty}
.guide-typing{display:block;position:relative;text-wrap:wrap}
.guide-reserve{display:block;visibility:hidden}
.guide-live{position:absolute;inset:0}
@media(prefers-reduced-motion:no-preference){
  .story-art img{animation:story-arrive 750ms cubic-bezier(.22,1,.36,1) both}
  .story-paper{animation:paper-open 850ms cubic-bezier(.22,1,.36,1) both}
  .story-line{animation:thread-draw 1000ms ease 150ms both}
  .story-thread circle:last-child{animation:moment-rise 400ms ease 650ms both}
  .screen--moment .story-thread circle:last-child{transform-box:fill-box;transform-origin:center;animation:moment-land 650ms ease 550ms both}
  .moment-thread{animation:moment-rise 550ms var(--ease) 180ms backwards}
}
@media print{.guide-reserve{visibility:visible}.guide-live{display:none}}
@keyframes story-arrive{from{opacity:0;transform:translateY(12px) rotate(-4deg) scale(.92)}to{opacity:1;transform:none}}
@keyframes paper-open{from{opacity:0;transform:rotate(-22deg) scale(.8)}}
@keyframes thread-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes moment-rise{from{opacity:0;transform:translateY(8px)}}
@keyframes moment-land{0%{opacity:0;transform:scale(.5)}55%{opacity:1;transform:scale(1.8)}100%{opacity:1;transform:scale(1)}}
@media(max-height:739px){
  .moment-body{padding-top:8px}.screen--moment .story-art{margin-bottom:20px}
  .screen--moment .guide-note{margin-top:18px;padding:14px}
  .moment-title{font-size:var(--text-3xl);line-height:35px}
  .story-art{height:158px;margin:0 auto 14px}.story-art img{width:150px;height:150px}
  .story-paper{width:135px;height:135px}.story-thread{width:235px;height:157px}
  .moment-copy{margin-top:12px}.moment-thread{margin-top:20px;padding-top:15px}
  .moment-thread p{font-size:var(--text-lg);line-height:25px}
  .story-art--compact{height:112px;margin-bottom:12px}.story-art--compact img{width:108px;height:108px}
  .story-art--compact .story-paper{width:100px;height:100px}.story-art--compact .story-thread{width:180px;height:120px}
}
@media(max-width:359px){
  .moment-title{font-size:var(--text-3xl);line-height:34px}.onboarding-tools{gap:0}
  .moment-copy{font-size:var(--text-md);line-height:23px}
  .moment-thread p{font-size:var(--text-lg);line-height:25px}
}
/* The pauses have their own composition and motion, separate from the form. */
.screen--moment{background:linear-gradient(155deg,var(--pulse-tint) 0%,var(--surface) 36%,var(--surface) 78%)}
.screen--moment .dock{background:transparent}
.screen--moment .dock::before{display:none}
.screen--moment .moment-insight{width:100%;margin:auto auto 0;flex:none}
.screen--moment .story-art{margin-top:0;margin-bottom:24px}
.screen--moment .guide-note{position:relative;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius-panel) var(--radius-panel) var(--radius-panel) var(--radius-control);box-shadow:0 8px 24px rgb(var(--pulse-rgb) / 0.02);padding:18px;margin-top:24px}
.screen--moment .guide-note-copy{text-wrap:pretty}
.screen--moment-possibility{background:linear-gradient(175deg,var(--subtle),var(--surface) 75%)}
.screen--moment-possibility .moment-insight{border-radius:var(--radius-panel);background:var(--root-tint);padding:26px 20px 10px;border:1px solid var(--line-strong);position:relative;overflow:hidden}
.screen--moment-possibility .moment-title{font-size:var(--text-3xl);line-height:37px;max-width:310px}
.screen--moment-possibility .story-art{height:160px;margin:18px auto 0}
.screen--moment-possibility .story-art img{width:150px;height:150px}
.screen--moment-possibility .story-paper{background:var(--ember-tint);opacity:.8;width:140px;height:140px;transform:rotate(8deg)}
.screen--moment-possibility .story-thread{display:none}
.screen--moment-possibility .guide-note{background:none;border:0;border-radius:0;box-shadow:none;padding:0 4px;margin-top:28px}
.guide-wait{display:none;position:absolute;left:0;top:9px;align-items:center;gap:4px;height:9px}
.guide-wait i{width:4px;height:4px;background:var(--brand-primary);border-radius:50%;opacity:.4}
.guide-typing[data-typing]:has(.guide-live:empty) .guide-wait{display:flex}
.guide-typing[data-typing] .guide-live:not(:empty)::after{content:'';display:inline-block;width:1px;height:.85em;margin-left:3px;background:var(--brand-primary);vertical-align:-.03em}
@media(prefers-reduced-motion:no-preference){
  .screen--moment .moment-title{animation:ack-words 600ms ease 220ms backwards}
  .screen--moment .story-art img{animation:ack-open 850ms cubic-bezier(.16,1,.3,1) both}
  .screen--moment .story-paper{animation:ack-open 1000ms cubic-bezier(.16,1,.3,1) both}
  .screen--moment .guide-note{animation:ack-words 500ms ease 360ms backwards}
  .screen--moment-possibility .moment-insight{animation:ack-open 700ms cubic-bezier(.16,1,.3,1) both}
  .guide-typing[data-typing] .guide-wait i{animation:guide-dot 650ms ease-in-out infinite alternate}
  .guide-typing[data-typing] .guide-wait i:nth-child(2){animation-delay:110ms}
  .guide-typing[data-typing] .guide-wait i:nth-child(3){animation-delay:220ms}
  .guide-typing[data-typing] .guide-live:not(:empty)::after{animation:guide-caret 650ms step-end infinite}
}
@keyframes ack-open{from{opacity:0;transform:scale(.93)}to{opacity:1;transform:scale(1)}}
@keyframes ack-words{from{opacity:0}to{opacity:1}}
@keyframes guide-dot{to{opacity:.8;transform:translateY(-2px)}}
@keyframes guide-caret{50%{opacity:0}}
@media(max-height:739px){
  .screen--moment .story-art{height:150px;margin-bottom:18px}
  .screen--moment .guide-note{margin-top:18px;padding:14px}
  .screen--moment-possibility .moment-insight{padding:20px 18px 8px}
  .screen--moment-possibility .moment-title{font-size:var(--text-3xl);line-height:33px}
  .screen--moment-possibility .story-art{height:130px;margin:12px auto 0}
  .screen--moment-possibility .story-art img{width:125px;height:125px}
  .screen--moment-possibility .story-paper{width:116px;height:116px}
  .screen--moment-possibility .guide-note{padding:0 4px;margin-top:20px}
}
@media(max-height:620px){
  .screen--moment .moment-body{padding-top:4px;padding-bottom:14px}
  .screen--moment .story-art{height:128px;margin-bottom:12px}
  .screen--moment .story-art img{width:122px;height:122px}
  .screen--moment .story-paper{width:112px;height:112px}
  .screen--moment .story-thread{width:205px;height:137px}
  .screen--moment .moment-title{font-size:var(--text-3xl);line-height:32px}
  .screen--moment .guide-note{margin-top:18px;gap:10px;padding:13px;grid-template-columns:24px minmax(0,1fr)}
  .screen--moment .guide-note>.orb-still{width:24px!important;height:24px!important}
  .screen--moment .guide-note-copy{font-size:var(--text-lg);line-height:24px}
  .screen--moment-possibility .moment-insight{padding:18px 16px 6px}
  .screen--moment-possibility .moment-title{font-size:var(--text-2xl);line-height:31px}
  .screen--moment-possibility .story-art{height:110px;margin:12px auto 0}
  .screen--moment-possibility .story-art img{width:105px;height:105px}
  .screen--moment-possibility .story-paper{width:100px;height:100px}
  .screen--moment-possibility .guide-note{padding:0 4px}
}
}


/* Screen group: call. The guided call and every later conversation, on one stage: "Chapters of light".
   The room's light is the topic. Built in qa/polish/call-lab/final, judged in CALL_DESIGN.md, moved in here.
   The room is the modality stage's own (call-stage.js, auraLight): a white ground, the six lights at its foot, the
   orb above them; the words are the app's voice and the controls are the stage's round, hairlined ones.
   Everything here stays in @layer screens and is scoped to the stage (.cs) or the call screen. */
@layer screens {

/* ---- the screen: one island, the stage, filling the column. It never shrinks for the keyboard:
   the composer sits at the top, above it, and the room behind stays still. ---- */
.screen.call-screen{position:relative;display:block;height:100%;padding:0;overflow:hidden}
.call-island{position:absolute;inset:0}
/* The one orb: while the stage is mounted, the shell's presence stands down. */
html[data-call-stage] #presence{visibility:hidden}

.cs{
  --soft:var(--text);--tint:var(--ember);--glass:rgb(var(--ink-rgb) / 0.05);--glass-strong:rgb(var(--ink-rgb) / 0.09);--glass-line:rgb(var(--ink-rgb) / 0.12);
  /* What the person has said, kept on the stage (a check-in's notes): paper, a hairline and a soft lift. */
  --note-paper:var(--surface);--note-edge:inset 0 0 0 1px rgb(var(--ink-rgb) / 0.09),0 4px 14px rgb(var(--ink-rgb) / 0.05);
  --orb-size:220px;
  position:absolute;inset:0;overflow:hidden;isolation:isolate;
  background:var(--surface);color:var(--ink);font-family:var(--font);font-synthesis:none;
  -webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;
  touch-action:manipulation;user-select:none;-webkit-user-select:none;
}
.cs *{box-sizing:border-box}
/* base.css caps canvases at their box; the stage's light is drawn small and scaled far past it. */
.cs canvas,.cs svg{max-width:none}
.cs p,.cs h2,.cs h3{margin:0;font-weight:400;letter-spacing:0}
.cs-pill,.cs-round,.cs-send{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;-webkit-user-select:none;user-select:none}
.cs :focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}

/* ---- the room ---- */
.cs-sky,.cs-sky-slots,.cs-fx{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.cs-sky{z-index:0}
.cs-sky-slot{position:absolute;inset:0;width:100%;height:100%;display:block}
.cs-veil{position:absolute;inset:0;background:var(--depth-ink);opacity:0}
.cs-overcast{position:absolute;inset:0;background:var(--selection);opacity:0}
.cs-wave{position:absolute;display:block;will-change:transform,opacity;opacity:0;pointer-events:none}
.cs-band{position:absolute;left:0;width:100%;display:block}
.cs-paper{position:absolute;inset:0;background:var(--surface);opacity:0}

/* ---- the presence: the owner's orb, six drifting clouds under the soft mask ---- */
.cs-orb{position:absolute;left:0;top:0;width:272px;height:272px;z-index:1;transform-origin:50% 50%;pointer-events:none;transition:opacity .9s ease}
.cs-orb-lean,.cs-orb-gesture,.cs-orb-energy,.cs-orb-float{position:absolute;inset:0;transform-origin:50% 50%}
.cs-orb-float{animation:cs-float 9s ease-in-out infinite}
.cs-halo,.cs-flare{position:absolute;display:block;left:-52%;top:-52%;width:204%;height:204%;pointer-events:none}
.cs-halo{opacity:.38}
.cs-flare{opacity:0}
.cs-core{position:absolute;inset:0;isolation:isolate;overflow:hidden;background:var(--surface);
  -webkit-mask:url('../assets/call/breath-soft-mask.webp') center/100% 100% no-repeat;
  mask:url('../assets/call/breath-soft-mask.webp') center/100% 100% no-repeat}
.cs-turn{position:absolute;inset:0;transform-origin:50% 50%}
.cs-cloud{position:absolute;display:block;width:82%;aspect-ratio:1;animation:cs-cloud-a 5.2s cubic-bezier(.45,0,.55,1) infinite alternate}
.cs-cloud canvas{position:absolute;left:-100%;top:-100%;width:300%;height:300%;display:block}
.cs-cloud-cyan{z-index:3;left:-27%;bottom:-18%}
.cs-cloud-blue{z-index:2;left:0;bottom:-42%;animation:cs-cloud-b 5.8s ease-in-out -3.1s infinite alternate}
.cs-cloud-amber{z-index:4;left:-22%;top:-24%;animation:cs-cloud-c 4.8s ease-in-out -4.7s infinite alternate}
.cs-cloud-coral{z-index:5;right:-21%;top:-16%;animation:cs-cloud-b 5.4s ease-in-out -1.9s infinite alternate-reverse}
.cs-cloud-pink{z-index:3;right:-30%;bottom:-16%;animation:cs-cloud-c 6s ease-in-out -5.4s infinite alternate-reverse}
.cs-cloud-violet{z-index:2;right:-2%;bottom:-39%;animation:cs-cloud-a 5s ease-in-out -2.6s infinite alternate-reverse}
.is-paused .cs-cloud,.is-paused .cs-orb-float,.is-ended .cs-cloud,.is-ended .cs-orb-float,.is-hidden .cs-cloud,.is-hidden .cs-orb-float{animation-play-state:paused}
.is-paused .cs-orb,.is-ended .cs-orb{opacity:.72}

/* ---- the living shape (a version's setting: variant.js "noor"). Noor is drawn by noor-presence.js in the orb's own
   box, so whatever places, leans, swells and moves the orb moves her. The orb's own light stands down. Its core
   stays where it is, empty: other screens measure it to know where she is. Asleep is a form of hers, so a paused
   or ended call does not also fade her. ---- */
.cs-noor{position:absolute;inset:0;pointer-events:none}
.cs-living :is(.cs-halo,.cs-flare,.cs-turn){display:none}
.cs-living .cs-core{background:none;-webkit-mask:none;mask:none;isolation:auto;overflow:visible}
.cs-living .cs-orb-float{animation:none}
.cs-living.is-paused .cs-orb,.cs-living.is-ended .cs-orb{opacity:1}

/* ---- layout: header, the stage and its words, the dock. Controls keep their places in every state ---- */
.cs-ui{position:absolute;inset:0;z-index:2;display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  padding:var(--safe-top) var(--page-r) 0 var(--page-l)}
.cs-head{height:var(--bar-h);display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);transition:opacity .4s ease}
.cs-close[hidden]{display:none}
.cs-close{flex:none}
/* Ended: the title keeps the gutter, and the close takes the timer's place at the trailing edge. */
.is-ended .cs-time{display:none}
.cs-label-wrap{position:relative;flex:1 1 auto;min-width:0;height:28px;display:flex;align-items:center}
.cs-label{text-rendering:geometricPrecision;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;font-family:var(--font);font-weight:500;font-size:var(--text-lg);line-height:28px;white-space:nowrap;letter-spacing:var(--track-voice)}
.cs-label-ghost{position:absolute;left:0;top:0}
.cs-progress{display:flex;align-items:center;gap:var(--s-3);flex:none}
.cs-arc{position:relative;width:66px;height:26px;flex:none}
.cs-arc-svg{position:absolute;inset:0;overflow:visible}
.cs-arc-track{fill:none;stroke:var(--ink);stroke-opacity:.2;stroke-width:1.25;stroke-linecap:round}
.cs-arc-done{fill:none;stroke:var(--ink);stroke-opacity:0;stroke-width:1.25;stroke-linecap:round}
.cs-arc-done.is-past{stroke-opacity:.62}
.cs-arc-stop{fill:var(--ink);fill-opacity:.32}
.cs-arc-stop.is-past{fill:var(--stop);fill-opacity:1}
.cs-arm{position:absolute;width:0;height:0;transform-origin:0 0}
.cs-sun{position:absolute;left:-5.5px;top:-5.5px;width:11px;height:11px;border-radius:50%;background:var(--sun);box-shadow:0 0 0 2.5px rgb(var(--white-rgb) / 0.85)}
.cs-bloom{position:absolute;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--sun);opacity:0;pointer-events:none;transform:translate(-50%,-50%)}
.cs-time{display:inline-block;min-width:38px;text-align:right;font:var(--type-caption);font-family:var(--font);font-variant-numeric:tabular-nums;color:var(--soft)}
.cs-middle{display:flex;flex-direction:column;min-height:0}
.cs-stage-slot{flex:7 1 0;min-height:calc(var(--orb-size) + 14px)}
.cs-caption{position:relative;flex:3 0 auto;min-height:150px;text-align:center;display:flex;flex-direction:column;align-items:center}
.cs-echo{min-height:22px;font:var(--type-support);color:var(--soft);margin-bottom:var(--s-2);max-width:100%;text-wrap:balance}
.cs-echo-ghost{position:absolute;margin:0;pointer-events:none}
.cs-lines{display:grid;width:100%;justify-items:center}
.cs-line{grid-area:1/1;font:var(--type-voice);letter-spacing:var(--track-voice);text-wrap:balance;max-width:21em;color:var(--ink)}
.cs-word{display:inline-block}
/* The old guided-call rule for .call-prompt still sits in the legacy layer: the stage keeps its own voice. */
.cs .call-prompt{font-weight:500;letter-spacing:var(--track-voice);text-align:center}
.cs-captions-off{font:var(--type-support);color:var(--soft)}
.captions-off .cs-line{display:none}
.cs-notice{margin-top:var(--s-3);font:var(--type-caption);color:var(--soft);text-wrap:balance}
.cs-notice[hidden]{display:none}
.cs-dock{position:relative;display:flex;flex-direction:column;align-items:stretch;padding-bottom:max(14px,var(--safe-bottom))}
.cs-statusrow{position:relative;display:flex;align-items:center;justify-content:center;gap:var(--s-3);min-height:20px;margin-bottom:var(--s-3)}
.cs-status{min-height:20px;text-align:center;font:var(--type-support);color:var(--soft)}
.cs-status-intro{position:absolute;left:0;right:0;top:0;color:var(--ink)}
/* The offer under the question: its own quiet chip, a full 44px target, never on the status's baseline. */
.cs-offer{display:flex;justify-content:center;margin-top:var(--s-3)}
.cs-offer:empty{display:none}
/* Glass as the round buttons at the foot are (white at part strength, its own soft white edge, no dark line): the
   design's small buttons. The answers she may tap in a daily call (.cb-hint) are these too. */
.cs-offer .quiet{min-height:var(--target);padding-inline:18px;border-radius:var(--radius-pill);background:rgb(var(--white-rgb) / 0.72);box-shadow:inset 0 0 0 1px rgb(var(--white-rgb) / 0.9)}
.cs-interim{position:absolute;left:0;right:0;bottom:calc(100% + 6px);text-align:center;font:var(--type-heading);font-size:var(--text-lg);line-height:27px;letter-spacing:var(--track-quote);color:var(--ink);text-wrap:balance;max-height:81px;overflow:hidden}
.cs-answer{display:flex;gap:var(--s-3);align-items:stretch;margin-bottom:14px}
.cs-pill{position:relative;flex:1 1 auto;min-width:0;height:56px;border-radius:var(--radius-pill);overflow:hidden;background:var(--glass);box-shadow:inset 0 0 0 1px var(--glass-line);isolation:isolate;transition:transform 460ms var(--ease-press),box-shadow .34s ease}
.cs-pill:active,.cs-round:active{transform:scale(.95);transition-duration:var(--d-press);transition-timing-function:ease-out}
.pill-lit .cs-pill{box-shadow:none}
.cs-pill-lit{position:absolute;inset:0;background:var(--brand-primary);opacity:0;transition:opacity .42s ease var(--lit-delay,0ms);border-radius:inherit}
.cs-pill-bloom{position:absolute;display:block;pointer-events:none;will-change:transform}
.pill-lit .cs-pill-lit{opacity:1}
.cs-pill-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:var(--s-2);font:var(--type-button);white-space:nowrap;transition:opacity .34s ease var(--lit-delay,0ms)}
.cs-pill-ic{display:grid;place-items:center}
.cs-pill-label svg{width:21px;height:21px;flex:none}
.cs-pill-quiet{color:var(--ink);opacity:1}
.cs-pill-on{color:var(--on-primary);opacity:0}
.pill-lit .cs-pill-quiet{opacity:0}
.pill-lit .cs-pill-on{opacity:1}
.cs-strip{position:absolute;inset:0 20px;display:flex;align-items:center;justify-content:space-between;opacity:0;transition:opacity .24s ease}
.cs-strip i{display:block;width:2.5px;height:26px;border-radius:var(--radius-control);background:var(--brand-primary);transform:scaleY(.14)}
.is-recording .cs-strip{opacity:1}
.is-recording .cs-pill{background:var(--glass-strong)}
.is-recording .cs-pill-label{opacity:0}
.cs-round{flex:none;width:56px;height:56px;border-radius:50%;background:var(--glass);box-shadow:inset 0 0 0 1px var(--glass-line);display:grid;place-items:center;color:var(--ink);transition:transform 460ms var(--ease-press)}
.cs-round svg{width:22px;height:22px}
.cs-round[hidden]{display:none}
.cs-key.is-stop{background:var(--error);box-shadow:none;color:var(--white)}
.cs-key.is-stop svg path{fill:currentColor}
.cs-call{display:flex;justify-content:center;gap:var(--s-6)}
.cs-call .cs-round{width:48px;height:48px}
.cs-end{background:var(--error);box-shadow:none;color:var(--white)}
/* Mute is its own glyph, the slashed mic, so it never reads as a second "speak". Pressed, it fills. */
.cs-mute{transition:background-color .16s ease,color .16s ease,transform 460ms var(--ease-press)}
.cs [data-action="live-mute"][aria-pressed="true"]{background:var(--ink);box-shadow:none;color:var(--white)}

/* ---- the name as a title ---- */
.cs-title-layer{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.cs-title{position:absolute;left:0;top:0;text-rendering:geometricPrecision;font-family:var(--font);font-weight:500;letter-spacing:var(--track-voice);line-height:1.15;white-space:nowrap;color:var(--ink);font-kerning:normal;will-change:transform}
.cs-title-measure{display:inline-block}
.cs-title>span:not(.cs-title-measure){position:absolute;display:block;line-height:inherit;transform-origin:50% 60%}
.cs-title-index{position:absolute;text-align:center;font:var(--type-caption);letter-spacing:.01em;color:var(--ink)}
.cs-flyer{position:absolute;left:0;top:0;color:var(--ink);pointer-events:none;will-change:transform,opacity}
.cs-flyer-block{white-space:pre-wrap;overflow:hidden;overflow-wrap:anywhere}

/* ---- the path, large, under the name: the header's arc at twice the size ---- */
.cs-path{position:absolute;left:0;top:0;will-change:transform,opacity}
.cs-path svg{position:absolute;left:0;top:0;overflow:visible}
.cs-path-track,.cs-path-done,.cs-path-new{fill:none;stroke:var(--ink);stroke-linecap:round;stroke-width:1}
.cs-path-track{stroke-opacity:.26}
.cs-path-done,.cs-path-new{stroke-opacity:.72}
.cs-path-stop{fill:var(--ink);fill-opacity:.34}
.cs-path-stop.is-past{fill:var(--stop);fill-opacity:1}
.cs-path-arm{position:absolute;width:0;height:0;transform-origin:0 0}
.cs-path-sun{position:absolute;left:-9px;top:-9px;width:18px;height:18px;border-radius:50%;background:var(--sun);box-shadow:0 0 0 4px rgb(var(--white-rgb) / 0.85)}
.cs-path-answer{position:absolute;width:30px;height:30px;border-radius:50%;border:2px solid var(--sun);opacity:0;transform:translate(-50%,-50%)}
.cs-path-index{position:absolute;left:0;right:0;top:26px;text-align:center;font:var(--type-caption);color:var(--ink);opacity:0}

/* ---- typing: one tap. The question stays readable beside the small orb, the field above the keyboard ---- */
.cs-compose{position:absolute;z-index:3;left:var(--page-l);right:var(--page-r);top:calc(var(--safe-top) + 60px);display:flex;flex-direction:column;gap:var(--s-3);user-select:text;-webkit-user-select:text}
.cs-compose[hidden]{display:none}
.cs-compose-q{display:flex;align-items:center;gap:14px;min-height:64px}
.cs-compose-slot{flex:none;width:60px;height:60px}
.cs-compose-text{font:var(--type-heading);letter-spacing:var(--track-quote);color:var(--ink);text-wrap:pretty}
.cs-field{position:relative}
.cs-input{display:block;width:100%;min-height:112px;max-height:168px;resize:none;border:0;border-radius:var(--radius-card);padding:14px 56px 14px 16px;background:rgb(var(--white-rgb) / 0.9);box-shadow:inset 0 0 0 1px var(--glass-line);font:var(--type-body);color:var(--ink);caret-color:var(--brand-primary);outline:0;user-select:text;-webkit-user-select:text}
.cs-input:focus,.cs-input:focus-visible{outline:0;box-shadow:inset 0 0 0 1.5px var(--brand-primary)}
.cs-input::placeholder{color:var(--text-muted);opacity:1}
.cs-send{position:absolute;right:6px;bottom:6px;width:44px;height:44px;border-radius:50%;background:var(--brand-primary);color:var(--on-primary);display:grid;place-items:center;opacity:0;pointer-events:none}
.cs-send svg{width:20px;height:20px}
.cs-send.is-on{opacity:1;pointer-events:auto}
.cs-compose-foot{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);min-height:var(--target)}
.cs .cs-compose-close{gap:6px;padding-inline:0 10px}
.cs-compose-close svg{width:18px;height:18px;flex:none}
.cs-compose-tag{font:var(--type-caption);color:var(--soft);text-align:right}
.cs-compose-tag[hidden]{display:none}
.cs .cs-text{padding-inline:var(--s-3)}
.is-composing .cs-caption{opacity:0;pointer-events:none}
.is-composing .cs-dock{visibility:hidden;pointer-events:none;transition:visibility 0s linear .2s}
.is-composing .cs-orb{z-index:4}

/* ---- ended, breath, the closing reprise. Each primary sits where every primary sits ---- */
.cs-endpanel,.cs-breathpanel,.cs-closepanel{position:absolute;z-index:3;left:var(--page-l);right:var(--page-r);bottom:max(16px,var(--safe-bottom));display:flex;flex-direction:column;align-items:stretch;gap:var(--s-2);text-align:center}
.cs-endpanel[hidden],.cs-breathpanel[hidden],.cs-closepanel[hidden]{display:none}
.cs-endpanel .quiet,.cs-breathpanel .quiet{align-self:center}
.cs-endpanel .quiet{margin-top:var(--s-1)}
/* The close: her thank-you leads at the top, the chapters below the light, the way on at the bottom. */
.cs-closeline{position:absolute;z-index:3;left:var(--page-l);right:var(--page-r);top:calc(var(--safe-top) + 28px);text-align:center;font:var(--type-voice);letter-spacing:var(--track-voice);color:var(--ink);text-wrap:balance}
.cs-closeline[hidden]{display:none}
.cs-chapter{position:absolute;left:var(--page-l);right:var(--page-r);top:0;text-align:center;color:var(--ink);display:flex;flex-direction:column;align-items:center;gap:var(--s-1)}
.cs-chapter-label,.cs-chapter-note{font:var(--type-label);color:color-mix(in srgb,var(--ink) 64%,transparent)}
.cs-chapter-note{font:var(--type-caption);margin-top:2px}
.cs-chapter-note:empty{display:none}
.cs-chapter-words{font:var(--type-heading);letter-spacing:var(--track-voice);text-wrap:balance;margin:0;max-width:19em;overflow-wrap:anywhere}
.cs-chapter.is-empty .cs-chapter-label{font:var(--type-title);letter-spacing:var(--track-title)}
.cs-endline{font:var(--type-voice);letter-spacing:var(--track-voice);margin-bottom:var(--s-5);text-wrap:balance}
.cs-breathcue{font:var(--type-title);letter-spacing:var(--track-title);margin-bottom:28px;min-height:30px}
.cs-breathcue{text-wrap:balance}
.cs-breathacts{display:flex;flex-direction:column;gap:var(--s-1);min-height:104px;justify-content:flex-end;padding-bottom:var(--s-2)}
.cs-breathacts .quiet{min-height:var(--target);padding-inline:var(--s-4)}
/* The safety line is a message to read: a lead in the guide's voice, then body text in a measure, left-aligned. */
.cs.is-safety .cs-line{font:var(--type-body);letter-spacing:0;text-align:left;max-width:320px;text-wrap:pretty}
.cs.is-safety .cs-lead{display:block;font:var(--type-voice);letter-spacing:var(--track-voice);margin-bottom:var(--s-2)}
.cs.is-safety .cs-offer{width:100%;max-width:320px;justify-content:flex-start}
.cs-offer .cs-help{background:none;padding-inline:0}
.cs.is-safety .cs-orb{opacity:.55}
.is-breath .cs-caption,.is-ended .cs-caption{opacity:0}
/* Faded controls are also gone: nothing invisible can take a tap or a focus. */
.is-breath .cs-head,.is-breath .cs-dock,.is-ended .cs-dock,.is-finish .cs-dock,.is-finish .cs-head{visibility:hidden;transition:visibility 0s linear .3s}

.cs-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---- finish ---- */
/* (Scoped to the stage: a bare .is-done also caught the journey's dashes and any other part that says it is done.) */
.cs.is-done,.call-island.is-done{background:var(--surface)}
.is-done .cs-orb{transition:none}
/* After the gather the stage is lifted out of the screen, over the picture: only the point of light is left. */
.cs.is-handoff{position:absolute;inset:0;z-index:5;pointer-events:none;background:transparent}
.cs.is-handoff .cs-sky,.cs.is-handoff .cs-ui,.cs.is-handoff .cs-title-layer,.cs.is-handoff .cs-compose{display:none}

/* ---- sizes ---- */
@media (max-width:359px){
  .cs-label{font-size:var(--text-md)}
  /* The example tag takes its own line under the field, so neither it nor "Speak instead" wraps. */
  .cs-compose-foot{flex-wrap:wrap;row-gap:0}
  .cs-compose-tag{order:-1;flex-basis:100%;text-align:left}
  .cs-line{font-size:var(--text-xl);line-height:29px}
  .cs-call{gap:var(--s-5)}
  .cs-progress{gap:var(--s-2)}
}
@media (max-height:759px){
  .cs-caption{min-height:128px}
  .cs-line{font-size:var(--text-xl);line-height:29px}
  .cs-chapter-words{font-size:var(--text-lg);line-height:26px}
}
@media (max-height:639px){
  .cs-head{height:48px}
  .cs-caption{min-height:112px;flex-grow:1}
  /* Room for the small orb to lean toward her without touching the words under it. */
  .cs-stage-slot{flex:0 0 calc(var(--orb-size) + 40px)}
  /* The leaning orb never sits behind the small line above the question. */
  .cs:not(.is-safety) .cs-caption{padding-top:24px}
  .cs-echo{min-height:18px;font-size:var(--text-sm);line-height:18px;margin-bottom:var(--s-1)}
  .cs-line{font-size:var(--text-lg);line-height:27px}
  .cs-statusrow{margin-bottom:var(--s-2)}
  .cs-answer{margin-bottom:10px}
  .cs-pill,.cs-answer .cs-round{height:52px}
  .cs-answer .cs-round{width:52px}
  .cs-call .cs-round{width:44px;height:44px}
  .cs-dock{padding-bottom:max(10px,var(--safe-bottom))}
  .cs-chapter-words{font-size:var(--text-lg);line-height:24px}
  .cs-closeline{top:calc(var(--safe-top) + 18px);font-size:var(--text-lg);line-height:25px}
  .cs.is-safety .cs-line{font-size:var(--text-md);line-height:23px}
  .cs.is-safety .cs-lead{font-size:var(--text-lg);line-height:25px;margin-bottom:var(--s-1)}
}

/* ---- keyframes: the same drift as the original orb ---- */
@keyframes cs-float{0%,100%{transform:translateY(3px)}50%{transform:translateY(-5px)}}
@keyframes cs-cloud-a{0%{transform:translate(-25%,14%) scale(.9)}50%{transform:translate(16%,-22%) scale(1.16)}100%{transform:translate(30%,16%) scale(1)}}
@keyframes cs-cloud-b{0%{transform:translate(24%,-18%) scale(1.1)}50%{transform:translate(-28%,10%) scale(.9)}100%{transform:translate(12%,27%) scale(1.16)}}
@keyframes cs-cloud-c{0%{transform:translate(-15%,-27%) scale(1.15)}50%{transform:translate(29%,18%) scale(.92)}100%{transform:translate(-23%,25%) scale(1.08)}}

/* ---- reduced motion: a still orb, calm crossfades, nothing travels ---- */
@media (prefers-reduced-motion:reduce){
  .cs-cloud,.cs-orb-float{animation:none}
  .cs-orb,.cs-pill-lit,.cs-pill-label,.cs-strip{transition-duration:.2s}
  .cs-pill,.cs-round,.cs-mute{transition-duration:.01ms}
  .cs-pill:active,.cs-round:active{transform:none}
}

/* ---- the conversation sheet: each topic marked with a swatch of its own light ---- */
/* A speaker is named once per turn: 8px inside a turn, 20px at a change, a topic starts a new block. */
.transcript{display:flex;flex-direction:column;margin-top:var(--s-4)}
.transcript-topic{display:flex;align-items:center;gap:10px;margin-top:28px;font:var(--type-button);color:var(--ink)}
.transcript-topic:first-child{margin-top:0}
.transcript-swatch{flex:none;width:12px;height:12px;border-radius:50%}
.transcript-item{margin-top:var(--s-2)}
.transcript-item.is-turn{margin-top:var(--s-5)}
.transcript-topic+.transcript-item{margin-top:var(--s-3)}
.transcript-item .label{display:block;margin-bottom:var(--s-1)}
.transcript-item--guide .quote{font:var(--type-heading);letter-spacing:var(--track-quote);text-wrap:pretty;max-width:none}
.transcript-echo{font:var(--type-support);color:var(--text-muted);text-wrap:pretty}
/* The options sheet: three inset groups, apart. */
#call-options .sheet-group+.sheet-group{margin-top:var(--s-3)}
/* End call is the one way out that ends something: it reads in the error colour, as the sheet it opens does not. */
#call-options .row--end .row-title{color:var(--error)}
.row-state{flex:none;font:var(--type-body);color:var(--text-muted)}
.transcript-item--you .block{font:var(--type-body);background:var(--subtle);border-radius:var(--radius-card);padding:var(--s-3) var(--s-4)}

/* ---- The design's call (30 November 2026): the mark, the conversation's name and X (End call) in one row;
   one dash a chapter, ink up to the one she is in; the chapter's name under them; her words and Noor's in the middle;
   at the foot, "Write a response…" beside the microphone (Mute), and the menu (More) beside that, as the file's own
   sample of the call draws it (2 December 2026: with the mark as the only way in, the menu and its Start over were
   lost to him). The arc and the clock stay in the page for the
   chapter flights and the call's own timing, out of sight. No orb while the conversation runs: the room's light is
   the colour; the orb still breathes in the breath and the opening. ---- */
.cs-head{height:auto;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "steps" "label";align-items:stretch;row-gap:var(--s-2);padding-top:var(--s-2)}
.cs-top{grid-area:top;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;min-height:var(--bar-h)}
.cs-brand{display:grid;place-items:center start;width:44px;height:44px}
.cs-brand img{width:36px;height:36px}
.cs-top .cs-heading{margin:0;text-align:center;font:var(--type-bar);letter-spacing:0;color:var(--title-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-x{justify-self:end;place-items:center end}
.cs-steps{grid-area:steps;display:flex;gap:6px}
.cs-steps i{flex:1 1 0;height:3px;border-radius:var(--radius-pill);background:var(--line);transition:background-color var(--d-base) var(--ease)}
.cs[data-topic="0"] .cs-steps i:nth-child(-n+1){background:var(--ink)}
.cs[data-topic="1"] .cs-steps i:nth-child(-n+2){background:var(--ink)}
.cs[data-topic="2"] .cs-steps i:nth-child(-n+3){background:var(--ink)}
.cs[data-topic="3"] .cs-steps i:nth-child(-n+4){background:var(--ink)}
.cs[data-topic="4"] .cs-steps i:nth-child(-n+5){background:var(--ink)}
.cs[data-topic="5"] .cs-steps i:nth-child(-n+6){background:var(--ink)}
.cs[data-topic="6"] .cs-steps i:nth-child(-n+7){background:var(--ink)}
.cs[data-topic="7"] .cs-steps i:nth-child(-n+8){background:var(--ink)}
.cs-label-wrap{grid-area:label;height:24px}
.cs-samename .cs-label-wrap{visibility:hidden}
.cs-label{font:var(--type-body);letter-spacing:0;color:var(--text)}
.cs-progress{position:absolute;width:1px;height:1px;overflow:hidden;visibility:hidden}
/* Ended, the close stands exactly where the header's X was (the bar's middle, the glyph at the trailing edge), so the
   X does not hop when the call ends. */
.cs-close{position:absolute;top:calc(var(--safe-top) + var(--s-2) + (var(--bar-h) - 44px) / 2);right:var(--page-r);z-index:3;place-items:center end}
.cs-head:has(.cs-close:not([hidden])) .cs-x,.is-ended .cs-x{visibility:hidden}
.cs.is-live:not(.is-breath) .cs-orb{visibility:hidden}
.cs-lines{font-weight:400}
.cs-call{display:none}
.cs-answer{align-items:center;gap:var(--s-3)}
/* The keyboard round is there unless the pill itself types: muted, paused for a blocked speaker, she can still write. */
.cs-answer:has(.cs-pill[data-action="live-reply"]) .cs-key{display:none}
.cs-pill{background:rgb(var(--white-rgb) / 0.72);box-shadow:inset 0 0 0 1px rgb(var(--white-rgb) / 0.9)}
.cs-pill[data-action="live-reply"] .cs-pill-label{justify-content:flex-start;padding-inline:var(--s-5);font:var(--type-body);color:var(--text-muted)}
.cs-pill[data-action="live-reply"] .cs-pill-ic{display:none}
.cs-answer .cs-round{width:52px;height:52px;background:rgb(var(--white-rgb) / 0.72);box-shadow:inset 0 0 0 1px rgb(var(--white-rgb) / 0.9)}
/* The menu is glass like the microphone, never pressed: it opens a sheet and the call goes on under it. */
.cs-more svg{width:22px;height:22px}
/* Four at the foot (the keyboard beside a pill that speaks, unmutes or plays her voice) on a small phone: the rounds
   close up a little so the pill keeps its words whole; never under the 44px a finger needs. */
@media (max-width:379px){.cs-answer{gap:var(--s-2)}.cs-answer .cs-round{width:48px;height:48px}.cs-answer .cs-pill{height:48px}}
@media (max-width:339px){.cs-answer .cs-round{width:44px;height:44px}.cs-answer .cs-pill{height:44px}.cs-answer .cs-round svg{width:20px;height:20px}
  /* At 320 wide the pill beside three rounds holds its words, not its icon (the round beside it already shows one). */
  .cs-answer:has(.cs-key:not([hidden])) .cs-pill-ic{display:none}}

/* The room's light (call-aura.js): the design's four lights at the foot, moved with the voices by transform and opacity
   only. The painted sky under it is the plain white room; the light keeps moving because the voices move it, not on
   a loop of its own (the two constant loops of 1 December, the roam and the sway, are gone). */
.ca,.ca-room,.ca-turn{position:absolute;inset:0;pointer-events:none}
.ca{overflow:hidden;contain:strict}
.ca-room{transform-origin:50% 50%;opacity:0;will-change:transform,opacity}
.ca-turn{transform-origin:50% 100%;will-change:transform}
.ca-light{position:absolute;left:0;top:0;display:block;transform-origin:50% 50%;opacity:0;will-change:transform,opacity}
/* She is heard: a soft ring on the microphone that grows with her voice (call-aura.js scales it), and Noor's last line
   steps back a little while she speaks. */
.cs-mute{position:relative}
.cs-ring{position:absolute;inset:-5px;border-radius:50%;pointer-events:none;opacity:0;will-change:transform,opacity;
  box-shadow:0 0 0 2px rgb(var(--room-sky-rgb) / 0.7),0 0 16px 2px rgb(var(--room-lilac-rgb) / 0.55)}
.cs-lines{transition:opacity .45s var(--ease-breath)}
.cs.is-heard .cs-lines{opacity:.42;transition-duration:.25s}
@media (prefers-reduced-motion:reduce){.cs-lines,.cs.is-heard .cs-lines{transition:none}}

/* Write a response… is the design's light glass pill at every moment of the call. The older "lit" pill filled with
   the primary while the voice talked or listened, and the primary is near-black since Brand Guide 3.1. */
.cs-pill[data-action="live-reply"] .cs-pill-lit{display:none}
.pill-lit .cs-pill[data-action="live-reply"] .cs-pill-quiet{opacity:1}
.pill-lit .cs-pill[data-action="live-reply"] .cs-pill-on{opacity:0}

/* Typing an answer: the question starts under the whole head (its top padding and two gaps, the bar, the 3px
   dashes, the 24px chapter name), not over it. No orb in the conversation, so no empty place kept for one. */
.cs-compose{top:calc(var(--safe-top) + var(--s-2) * 3 + var(--bar-h) + 27px + var(--s-4))}
.cs.is-live:not(.is-breath) .cs-compose-slot{display:none}

/* Noor joining (call-stage.js setArriving): the call's first seconds, until her first words. Where her words will be,
   one quiet line in her voice's face, a size down and in the support ink, and under it, if she takes longer, what will
   happen, smaller. It lies over the caption's place, so her first words take that place without anything moving. The
   dashes keep their row (only hidden), so the head does not move when they draw in. */
.cs-arriving{position:absolute;left:0;right:0;top:0;display:grid;justify-items:center;gap:var(--s-2);padding:0 var(--s-2);pointer-events:none}
.cs-arriving p{margin:0;opacity:0;text-wrap:balance;max-width:21em}
.cs-arriving p.is-on{opacity:1}
.cs-arriving-line{font:var(--type-voice);font-weight:500;font-size:var(--text-lg);line-height:26px;letter-spacing:var(--track-voice);color:var(--text)}
.cs-arriving-hint{font:var(--type-support);color:var(--text)}
.cs.is-safety .cs-arriving,.is-composing .cs-arriving,.is-breath .cs-arriving{display:none}
.cs-steps i{transform-origin:0 50%}
}

/* Screen group: writing. Layout and details for this group only. Everything here stays in @layer screens. */
@layer screens {
/* Nothing can scroll this page sideways, not even a focus that fills in an example. */
.screen--write,.screen--write>.body{overflow-x:clip}
/* The one slot under the field. The offer and the tag share a cell, so neither can move what is below. */
.write-help{display:grid;align-items:center;justify-items:start;min-height:var(--target);margin-top:var(--s-1)}
.write-help>*{grid-area:1/1}
.write-help .quiet{transition:opacity var(--d-quick) linear,visibility 0s}
/* It would overwrite her words, so it is only offered to an empty field. Any words at all retire it. */
.write-body:has(#call-answer:not(:placeholder-shown)) .write-help .write-offer{opacity:0;visibility:hidden;transition:opacity var(--d-press) linear,visibility 0s var(--d-press)}
/* An example in the field: the tag, and one more to try. Both go the moment she changes a word. */
.write-example-tag{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--s-4);animation:write-tag-in var(--d-base) var(--ease) both}
.write-example-tag[hidden]{display:none}
.write-example-tag .quiet{justify-content:flex-start}
@keyframes write-tag-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.write-when{margin-top:var(--s-3)}
/* The safety line carries real weight, so it gets real room above the question. */
.write-body .ack--safety{margin-bottom:var(--s-5);padding-top:var(--s-1);animation:write-safety-in var(--d-base) var(--ease) both}
@keyframes write-safety-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

/* The care moment. Its own calm surface, not an intro paragraph, and the two ways on from it inside. */
.write-safety{margin:var(--s-1) 0 var(--s-3);padding:var(--s-4) var(--s-4) var(--s-1);border-radius:var(--radius-card);background:var(--selection);outline:none;animation:write-safety-in var(--d-base) var(--ease) both}
.write-safety-text{font:var(--type-body);color:var(--ink);text-wrap:pretty}
.write-safety-actions{display:flex;flex-wrap:wrap;column-gap:var(--s-6);margin-top:var(--s-1)}
.write-safety-actions .quiet{justify-content:flex-start}
/* No example straight after that. The field waits, quietly, until she chooses to keep going. */
.write-body.is-safety .write-help{visibility:hidden}
@media (prefers-reduced-motion:reduce){
  .write-example-tag,.write-body .ack--safety,.write-safety{animation:none}
}
}

/* Screen group: portrait. Layout and details for this group only. Everything here stays in @layer screens. */
@layer screens {
/* The bar: three real slots, so the title stays centred when Back and More arrive. */
.screen--portrait .bar{grid-template-columns:44px minmax(0,1fr) 44px}
.screen--portrait .bar-title{text-align:center}
/* Once her page has scrolled under the bar, the bar gets its hairline, so nothing is sliced by an invisible edge. */
.screen--portrait{timeline-scope:--portrait-scroll}
.screen--portrait>.body{scroll-timeline:--portrait-scroll block}
.screen--portrait>.bar{position:relative;z-index:3;background:var(--surface)}
.screen--portrait>.bar::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--line);opacity:0;pointer-events:none}
@supports (animation-timeline:scroll()){.screen--portrait>.bar::after{animation:portrait-bar-line linear both;animation-timeline:--portrait-scroll;animation-range:0 12px}}
@keyframes portrait-bar-line{to{opacity:1}}

.portrait-body{padding-top:var(--s-2)}
/* The headline is the most important line on the page: balanced, and never a lone "I" at a line end (see headlineHtml). */
.portrait-title{margin-bottom:var(--s-3);text-wrap:balance}

/* Frame law: canvas aspect equals art aspect. A tall painting clips evenly at top and bottom. */
.portrait-player{position:relative;display:block}
.art-frame{position:relative;width:100%;aspect-ratio:var(--art-ratio);max-height:min(46dvh,408px);margin:0;overflow:hidden;border-radius:var(--radius-panel);isolation:isolate;background:var(--surface)}
.art-frame canvas,.art-frame img{display:block;position:absolute;inset:auto;left:0;top:50%;width:100%;height:auto;max-width:none;aspect-ratio:var(--art-ratio);transform:translateY(-50%);border-radius:0}
.art-frame img{opacity:0;object-fit:cover;transition:opacity 320ms var(--ease);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
/* While it draws, the frame is a quiet tile on the gutter: the window of light is feathered inside it, never past it. */
.art-frame::before{content:'';position:absolute;inset:0;z-index:1;background:var(--subtle);mix-blend-mode:multiply;transition:opacity 320ms var(--ease);pointer-events:none}
/* Done is one move: the photograph comes up over the drawing as the drawing goes, and the tile becomes the picture. */
.portrait-player[data-phase="done"] .art-frame::before{opacity:0}
.portrait-player[data-phase="done"] .art-frame canvas{opacity:0;visibility:hidden;transition:opacity 200ms var(--ease-exit),visibility 0s 320ms}
.portrait-player[data-phase="done"] .art-frame img{opacity:1}
.portrait-player[data-fallback="true"] .art-frame canvas{display:none}
/* A hairline, in the ink's own colour, so a pale sky keeps its corner against the paper. Only on a finished picture. */
.art-frame::after{content:'';position:absolute;inset:0;z-index:2;border-radius:inherit;box-shadow:inset 0 0 0 1px rgb(var(--ink-rgb) / 0.07);opacity:0;transition:opacity 320ms linear;pointer-events:none}
.portrait-player[data-phase="done"] .art-frame::after{opacity:1}
/* The aha: as the window condenses into a painting, it takes one small breath. */
.portrait-aha .art-frame{animation:portrait-aha 1600ms var(--ease-breath)}
@keyframes portrait-aha{0%,100%{transform:scale(1)}36%{transform:scale(1.012)}}

/* If the picture does not come, the frame keeps its place and its size, so the page keeps its rhythm.
   The drawing's own light, the message in the middle, and a way to ask again. */
.art-broken{display:none}
.portrait-player[data-phase="broken"] .art-frame{background:radial-gradient(90% 60% at 30% 85%,rgb(var(--root-rgb) / .30),transparent 70%),radial-gradient(80% 60% at 80% 80%,rgb(var(--pulse-rgb) / .26),transparent 70%),var(--surface)}
.portrait-player[data-phase="broken"] .art-frame canvas,.portrait-player[data-phase="broken"] .art-frame img{visibility:hidden}
.portrait-player[data-phase="broken"] .art-broken{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--s-1);padding:var(--s-6);text-align:center;font:var(--type-support);color:var(--text);animation:portrait-broken-in var(--d-base) var(--ease) both}
.art-broken>span{max-width:24ch;text-wrap:balance}
.portrait-player[data-retrying] .art-broken .quiet{opacity:.5;pointer-events:none}
@keyframes portrait-broken-in{from{opacity:0}to{opacity:1}}

/* Status row: one line under the frame. 18px tall, and the Show now target extends outward, never pushing. */
.portrait-status-row{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);min-height:18px;margin-top:var(--s-2)}
.portrait-status,.portrait-player[data-phase="done"] .portrait-status{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;white-space:normal;font:var(--type-caption);color:var(--text-muted);text-align:left}
.portrait-skip{flex:none;min-height:44px;margin-block:-13px}
/* Broken: the message is in the frame. The status line still says it to a screen reader, and keeps its 18px. */
.portrait-player[data-phase="broken"] .portrait-status{opacity:0}

/* Her words. */
.portrait-reflection{margin-top:var(--s-3)}
.portrait-moment{margin-top:var(--s-2)}
.portrait-moment .w{display:inline-block;max-width:100%;overflow-wrap:anywhere}
.portrait-moment .hang{margin-inline-start:-.36em}
/* Tapping her words opens them for changing. Quiet, because this is reading first. */
.portrait-moment[data-action],.part[data-action]{cursor:pointer;transition:opacity var(--d-press) linear}
.portrait-moment[data-action]:active,.part[data-action]:active{opacity:.6}

/* The rest of the page. It exists once the picture does. */
/* When is a time, not a second sentence: meta text with a small clock, just under her step. */
.part-when{display:flex;align-items:center;gap:6px;margin-top:var(--s-1);font:var(--type-support);color:var(--text)}
.part-when svg{flex:none;width:16px;height:16px;color:var(--text-muted)}
.part-example{margin-top:var(--s-1)}
.portrait-lower>.quiet{margin-top:var(--s-3)}

/* The dock arrives late, the only one that does. It floats until it has landed, in exactly its final place. */
.screen--portrait{position:relative}
.dock--arriving{position:absolute;left:0;right:0;bottom:0;z-index:5}
/* The question sits on its answers. */
.portrait-dock .portrait-ask{text-align:center;margin-bottom:var(--s-1)}

/* Keep. */
.portrait-moment.is-kept{padding-bottom:var(--s-2);border-bottom:1.5px solid var(--brand-primary)}
.portrait-kept{margin-top:var(--s-2)}
.primary.is-kept svg{width:20px;height:20px}

/* The More sheet: Sound is a real switch in a row. */
.row--switch .toggle{cursor:inherit}
.row--switch[aria-checked=true] .toggle{background:var(--brand-primary)}
.row--switch[aria-checked=true] .toggle-thumb{transform:translateX(17px);background:var(--toggle-thumb-on)}

/* Make it sound like you: the headline grows rather than cutting off. */
@supports not (field-sizing:content){#edit-headline{min-height:80px}}

/* ---- The page around the drawing, as the Figma screens draw a picture (127:2337, 136:4839): white ground, the
   headline centred, the picture in a soft frame that floats a little, her words on soft cards. The drawing itself, its
   sound, Show now and the More sheet are the player's own and unchanged. ---- */
.screen--portrait,.screen--portrait>.bar{background:var(--surface)}
.portrait-title{text-align:center}
.portrait-player .art-frame{box-shadow:var(--e2)}
.portrait-reflection{text-align:center}
.portrait-moment{margin-top:var(--s-4);padding:var(--s-5) var(--s-6);border-radius:var(--radius-card);background:var(--subtle)}
.portrait-lower>.part{margin-top:var(--s-3);padding:var(--s-4) var(--s-5);border-radius:var(--radius-card);background:var(--subtle)}
.portrait-lower>.part:first-child{margin-top:var(--s-4)}
.portrait-lower>.quiet{display:block;margin:var(--s-4) auto 0}
.portrait-moment.is-kept{border-bottom:0;box-shadow:inset 0 0 0 1.5px var(--brand-primary)}
.portrait-dock{display:grid;gap:var(--s-2)}
/* Under the sign-in sheet (draftView, walled): the page is there, blurred and still, and cannot be reached. */
.screen--portrait.is-walled>.bar,.screen--portrait.is-walled>.body{filter:blur(20px);pointer-events:none;user-select:none;-webkit-user-select:none}
.screen--portrait.is-walled>.body{overflow:hidden}
/* Her picture shows through the blur, as the design draws its sign-up sheet over a vision (frame 134:4423): its
   colours are there, nothing of it can be read. Once she is past, the frame is empty again and the picture is drawn. */
.screen--portrait.is-walled .art-frame img{opacity:1;transition:none}

@media (prefers-reduced-motion:reduce){
  .art-frame img{transition-duration:240ms}
  .portrait-aha .art-frame{animation:none}
  .portrait-player[data-phase="broken"] .art-broken{animation:none}
}

/* ---- A Glimpse (call-glimpse.js): her vision as cards, side by side. Figma "A Glimpse" (134:4225): the middle card
   289 x 368 in a 390 frame, radius 16, on one of the file's three grainy pastel textures; its neighbours smaller (0.79)
   and paler, 16 px away, peeking in at both edges. The controller sets each card's size and paleness from the scroll
   position (transform and opacity only). The same row is the call's recap (live-onboarding.css, .cs-glimpse) and the
   written path's review page (glimpseView). ---- */
.glimpse-title{font:var(--type-title);letter-spacing:var(--track-title);color:var(--ink)}
.glimpse-lead{max-width:320px;margin:var(--s-3) auto 0;font:var(--type-body);color:color-mix(in srgb,var(--ink) 85%,transparent);text-wrap:balance}
/* The card's width follows the frame's (289 in 390), and stops where a tall card would no longer fit the screen. */
.glimpse-track{--gw:min(74.1cqw,320px,calc((100dvh - var(--glimpse-room,360px)) * .785));--gh:calc(var(--gw) * 1.273);
  display:flex;gap:var(--s-4);align-self:stretch;padding:0 calc((100cqw - var(--gw)) / 2);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;cursor:grab;outline:none}
.glimpse-track::-webkit-scrollbar{display:none}
.glimpse-track.is-gliding,.glimpse-track.is-dragging{scroll-snap-type:none}
.glimpse-track.is-dragging{cursor:grabbing;user-select:none;-webkit-user-select:none}
.glimpse-row{container-type:inline-size}
.glimpse-card{position:relative;flex:0 0 var(--gw);height:var(--gh);display:flex;flex-direction:column;align-items:center;padding:calc(var(--s-9) + var(--s-4)) var(--s-6) var(--s-6);border-radius:var(--radius-card);overflow:hidden;scroll-snap-align:center;text-align:center;
  background:linear-gradient(rgb(var(--white-rgb) / .18),rgb(var(--white-rgb) / .18)),var(--glimpse-texture) center / cover no-repeat,var(--subtle);transform-origin:50% 50%;will-change:transform,opacity}
.glimpse-card--sky{--glimpse-texture:url('../assets/vision/glimpse/sky.webp')}
.glimpse-card--rose{--glimpse-texture:url('../assets/vision/glimpse/rose.webp')}
.glimpse-card--dawn{--glimpse-texture:url('../assets/vision/glimpse/dawn.webp')}
/* Update: a small pill at the card's top right, 20% black, a white label. Its place to tap reaches past it. */
.glimpse-update{all:unset;position:absolute;top:var(--s-4);right:var(--s-4);padding:3px var(--s-2);border-radius:var(--radius-pill);background:rgb(var(--black-rgb) / .2);color:var(--white);font:var(--type-label);line-height:18px;cursor:pointer}
.glimpse-update::after{content:'';position:absolute;inset:-10px -8px}
.glimpse-update:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
.glimpse-card[data-side] .glimpse-update{pointer-events:none}
/* A card at the side shows its light only; its words come up as it comes to the middle. */
.glimpse-card>*{transition:opacity var(--d-base) var(--ease)}
.glimpse-card[data-side]>*{opacity:0}
.glimpse-card-title{font:var(--type-heading);color:var(--glimpse-ink);text-wrap:balance}
/* Long words stay readable: the text scrolls inside its card, the card never grows. */
.glimpse-card-text{flex:1;min-height:0;width:100%;margin-top:var(--s-3);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;font:var(--type-body);color:rgb(var(--glimpse-ink-rgb) / .85);text-wrap:pretty;
  mask-image:linear-gradient(to bottom,var(--black) calc(100% - 20px),transparent)}
.glimpse-card-text::-webkit-scrollbar{display:none}
.glimpse-card-when{display:inline-flex;align-items:center;gap:6px;margin-top:var(--s-3);font:var(--type-support);color:rgb(var(--glimpse-ink-rgb) / .75)}
.glimpse-card-when svg{width:16px;height:16px}
/* Dots: 10 px, the current one a 20 px pill that slides to its place; the others make room for it. Each is a button to
   its card with a finger-sized place round it. All by transform, from --i (the dot) and --on (the card in the middle). */
.glimpse-dots{position:relative;width:calc(var(--n) * 16.67px + 3.33px);height:10px;margin:var(--s-6) auto 0}
.glimpse-dot{all:unset;position:absolute;left:0;top:-12px;width:10px;height:34px;cursor:pointer;
  transform:translateX(calc(var(--i) * 16.67px + clamp(0,var(--i) - var(--on),1) * 10px));transition:transform var(--d-base) var(--ease)}
.glimpse-dot::before{content:'';position:absolute;left:0;top:12px;width:10px;height:10px;border-radius:var(--radius-pill);background:var(--line-strong)}
.glimpse-dot::after{content:'';position:absolute;inset:0 -3px}
.glimpse-dot.is-on::before{opacity:0}
.glimpse-dot:focus-visible::before{outline:2px solid var(--brand-primary);outline-offset:2px}
.glimpse-pill{position:absolute;left:0;top:0;width:20px;height:10px;border-radius:var(--radius-pill);background:var(--brand-primary);pointer-events:none;
  transform:translateX(calc(var(--on) * 16.67px));transition:transform var(--d-base) var(--ease)}
@media (prefers-reduced-motion:reduce){.glimpse-dot,.glimpse-pill{transition:none}}

/* The written path's review page. */
.glimpse-body{display:flex;flex-direction:column;align-items:stretch;padding-top:clamp(24px,6vh,56px);text-align:center;--glimpse-room:400px}
.glimpse-body>.glimpse-row{margin:var(--s-7) calc(-1 * var(--page-r)) 0 calc(-1 * var(--page-l))}
.glimpse-dock{display:grid;gap:var(--s-3)}
}

/* Screen group: rhythm. Layout and details for this group only. Everything here stays in @layer screens. */
@layer screens {
/* One quick practical thing, with her step in view. Everything hangs from the gutter; the disclosure rests on the dock. */
.when-body{display:flex;flex-direction:column}
.when-body>*{flex:none}
/* One sentence a line; balance takes over if the first one has to wrap. */
.when-body .helper{text-wrap:balance}

/* Name and controls share the first line. Her words get the whole width under them, so "You said" is never squeezed. */
.when-rows{margin-top:var(--s-4)}
.when-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 var(--s-3);min-height:68px;padding:var(--s-2) var(--s-4) var(--s-3)}
.when-row .row-main{display:contents}
.when-row .row-title{grid-column:1;grid-row:1;font:var(--type-body);transition:color var(--d-quick) linear}
.when-row .when-controls{grid-column:2;grid-row:1}
.when-row .row-sub{grid-column:1/-1;grid-row:2}
.when-row.is-off .row-title{color:var(--text)}
.when-controls{display:flex;align-items:center;gap:var(--s-3);flex:none}

/* The chip. Tabular, so a new time cannot shift the row. Off, the pill stays as an outline with quiet figures,
   so it reads as resting rather than gone; switched back on, it fills again. */
.when-row .time-chip{min-width:96px;box-shadow:inset 0 0 0 1px transparent;transition:background-color 160ms var(--ease),box-shadow 160ms var(--ease),color var(--d-quick) linear,transform 160ms var(--ease)}
.when-row .time-chip:active:not(.is-off){transform:scale(.97);transition-duration:var(--d-press),var(--d-press),var(--d-press),var(--d-press)}
.when-row .time-chip.is-off{background:transparent;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--text-muted) 40%,transparent)}
.when-row .time-chip>span:first-child{display:block}
/* The native time input lies over the chip for a tap and a screen reader, and paints nothing: its own figures and
   picker icon showed as ghost characters at the chip's edges (2 December). */
:is(.when-row,.call-card) .time-chip input::-webkit-datetime-edit,:is(.when-row,.call-card) .time-chip input::-webkit-calendar-picker-indicator{opacity:0}
:is(.when-row,.call-card) .time-chip input{opacity:0;color:transparent;background:transparent}
/* The line between rows runs to the row's edge from the text's edge, and is not cut by the grid. */
.when-row+.when-row::before{left:var(--s-4);right:0}

/* Two lines in one cell. Only opacity moves. */
.when-stack{display:grid;min-width:0}
.when-stack-item{grid-area:1/1;opacity:0;transition:opacity var(--d-quick) linear;text-wrap:balance}
.when-stack-item.is-on{opacity:1;transition:opacity var(--d-base) linear 60ms}
.when-sub .when-stack-item{text-wrap:pretty}

/* How long. Two cards, a real choice: the length drawn, its name, and what it does to the check-in. */
.when-pace{display:grid;gap:var(--s-2);margin-top:var(--s-4)}
.when-pace .label{margin:0}
.pace-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s-2)}
/* No all:unset here: it would take the shared focus ring with it. Unselected is a plain surface, like the answer options
   and the rows above. Selected is one layer that fades in: the tint and the 1.5px --brand-primary ring every selected option uses. */
.pace-card{appearance:none;box-sizing:border-box;position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:var(--target);margin:0;padding:var(--s-4);border:0;border-radius:var(--radius-card);background:var(--subtle);color:var(--ink);font:var(--type-body);text-align:left;cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform 160ms var(--ease)}
.pace-card::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--selection);box-shadow:inset 0 0 0 1.5px var(--brand-primary);opacity:0;transition:opacity 160ms linear}
.pace-card[aria-checked=true]::before{opacity:1}
.pace-card:active{transform:scale(.98);transition-duration:var(--d-press)}
/* The dial sits level with the ring, both 24px. Quiet grey until the card is hers, then the slice takes the action colour. */
.pace-glyph{display:block;width:24px;height:24px;margin-bottom:var(--s-2)}
.pace-dial,.pace-slice{transition:fill 160ms linear,stroke 160ms linear}
.pace-dial{stroke:color-mix(in srgb,var(--text-muted) 40%,transparent)}
.pace-slice{fill:color-mix(in srgb,var(--text-muted) 14%,transparent);stroke:color-mix(in srgb,var(--text-muted) 55%,transparent)}
.pace-card[aria-checked=true] .pace-dial{stroke:color-mix(in srgb,var(--text-muted) 70%,transparent)}
.pace-card[aria-checked=true] .pace-slice{fill:color-mix(in srgb,var(--brand-primary) 28%,transparent);stroke:var(--brand-primary)}
/* Hers or not, in the corner: the 24px option ring, or a filled one with the tick that scales in. */
.pace-check{position:absolute;top:var(--s-4);right:var(--s-4);width:24px;height:24px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--text-muted)}
.pace-dot{position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;background:var(--brand-primary);color:var(--on-primary);opacity:0;transform:scale(.5);transition:opacity 160ms linear,transform 160ms var(--ease)}
.pace-card[aria-checked=true] .pace-dot{opacity:1;transform:none;transition:opacity 160ms linear,transform 260ms var(--spring-soft)}
.pace-dot svg{width:16px;height:16px;stroke-width:2.2}
.pace-name{font-weight:500;text-wrap:balance}
.pace-effect{text-wrap:balance}
/* Under 340 two columns break the name and stack the effect three deep, so the cards stack as rows: dial, words, ring,
   all three on the title's first line (24px tall, like the dial and the ring). */
@media (max-width:339px){
  .pace-cards{grid-template-columns:minmax(0,1fr)}
  .pace-card{display:grid;grid-template-columns:24px minmax(0,1fr);gap:2px var(--s-3);padding-right:calc(var(--s-4) + 24px + var(--s-3))}
  .pace-glyph{grid-row:1/3;margin:0}
  .pace-name,.pace-effect{grid-column:2}
}

/* How long and the disclosure arrive as one, last. The disclosure belongs to the times above it, so it follows
   the pace line. Free space gathers above the dock. */
.when-note{margin-top:var(--s-6);text-wrap:pretty}
/* What she said about when, on one line above the title. */
.screen--when .ack{display:block;align-content:end;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* On a 664 tall phone, and a 360x740 one where the title takes two lines, the page fits without scrolling and the
   note stays clear of the dock's fade: the rows and the foot give back a little air, and the pace cards tighten.
   Under 340 wide the page scrolls anyway, so it keeps the full foot: cutting it there leaves the note's last line
   under the fade at the end of the scroll. */
@media (max-height:719px) and (min-width:340px),(max-height:759px) and (min-width:340px) and (max-width:379px){.when-body{padding-bottom:var(--s-3)}.when-note{margin-top:var(--s-2)}.when-rows,.when-pace{margin-top:var(--s-3)}.when-row{padding-bottom:var(--s-2)}
  .pace-card{gap:0;padding-block:var(--s-3)}.pace-check{top:var(--s-3)}.pace-glyph{margin-bottom:var(--s-1)}}

@media (prefers-reduced-motion:reduce){
  .when-stack-item,.when-stack-item.is-on,.when-row .time-chip,.when-row .row-title{transition-duration:.01ms;transition-delay:0ms}
  .when-row .time-chip:active:not(.is-off){transform:none}
  /* The cards still crossfade; nothing scales, and the tick has no spring to wait for. */
  .pace-card:active,.pace-dot{transform:none}
  .pace-card[aria-checked=true] .pace-dot{transition:opacity 160ms linear}
}

/* The design's "Make time for yourself" (views/rhythm.js, slotCards): the title and its line centred, then the two calls
   side by side as white cards on the page's soft light, each with its sign, its name, its time and its switch. */
.screen--when .body{text-align:center}
.call-title{font:var(--type-voice);letter-spacing:0;margin-top:var(--s-5)}
.screen--when .helper{max-width:342px;margin:var(--s-3) auto 0;font:var(--type-body);color:var(--text)}
/* The Figma frame (129:2663): the cards are white at three quarters over the page's light, with no shadow; the light is
   the file's lilac and sky rising from the foot (its "image 69", blurred), under the buttons too. */
.screen--when{background:linear-gradient(to top,rgb(var(--room-lilac-rgb) / .3),rgb(var(--room-sky-rgb) / .1) 38%,rgb(var(--room-lilac-rgb) / 0) 72%)}
.screen--when>.dock{background:transparent}
.screen--when>.dock::before{display:none}
/* 170 wide each in 390, 13 apart, 17 from the edges: they run 8 past the gutter, as Today's cards do; 59 under the line. */
.call-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s-3);margin:var(--s-9) calc(-1 * var(--s-2)) 0}
.call-card{display:flex;flex-direction:column;align-items:center;gap:var(--s-3);padding:var(--s-5) var(--s-3);border-radius:var(--radius-card);background:rgb(var(--surface-rgb) / .75)}
/* No edge in the file; on a page without the light (dark, or a plain screen) a hairline keeps the card readable. */
:root[data-theme="dark"] .call-card{box-shadow:inset 0 0 0 1px var(--line)}
.call-card-sign svg{width:32px;height:32px;color:var(--ink)}
.call-card-name{margin:0;font:var(--type-body);font-weight:600;color:var(--ink)}
.call-card.is-off .call-card-name,.call-card.is-off .call-card-sign{opacity:.5}
.call-card .time-chip{justify-content:center;min-height:36px;padding:var(--s-1) var(--s-3);border-radius:var(--radius-control);background:var(--selection);font:var(--type-button)}
.call-dock{display:grid;gap:var(--s-3)}
.screen--when .when-foot{text-align:left;margin-top:var(--s-6)}
}

/* Screen group: home. Layout and details for this group only. Everything here stays in @layer screens. */
@layer screens {
/* Today (Home) as the Figma frame "Today" (127:2255): the path's head, greeting, Reset card and "Up Next" line
   (styles/screens/path.css: .path-title, .today-moment, .path-up-next, .path-steps, .path-node, .path-card and its
   pictures), used as they are. What is Home's own is below: her words under the greeting, the call cards' states,
   the step cards with their tick on the line, and the arrival. */

/* The earlier bar (todayBar), kept for any page that still draws it. */
.today-brand{display:flex;align-items:center;gap:var(--s-2);min-width:0}
.today-brand .mark{display:block;flex:none;width:22px;height:22px;max-width:none;margin:0;border-radius:0}
.today-date{white-space:nowrap}
.today-initial{all:unset;box-sizing:border-box;position:relative;display:grid;place-items:center end;width:44px;height:44px;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
.today-initial>span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--selection);color:var(--ink);font:var(--type-quiet);transition:transform 160ms var(--ease)}
.today-initial:active>span{transform:scale(.94);transition-duration:var(--d-press)}
.today-initial-dot{display:block;width:8px;height:8px;border-radius:50%;background:var(--text-muted)}

/* Her words, one tap from her vision: a quiet line under the greeting, never more than two lines. */
.home-words{all:unset;box-sizing:border-box;display:-webkit-box;margin-top:var(--s-2);-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--text);font:var(--type-support);text-wrap:pretty;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;transition:opacity var(--d-press) linear}
.home-words:active{opacity:.6}
.home-words+.today-moment{margin-top:var(--s-5)}
.home-support{margin-top:var(--s-1);color:var(--text-muted)}

/* Up Next. The line's column holds a mark (22) or a step's tick (24): one column, so every card starts on one edge. */
.home-up .path-step{grid-template-columns:24px minmax(0,1fr)}
.home-up .path-step:not(:last-child)::before{left:11px}
.home-up .path-node{justify-self:center}
/* The call that is due: its ring in ink, a little larger, so the card it marks reads as the way on. */
.home-up .home-node--now{width:18px;height:18px;box-shadow:inset 0 0 0 2px var(--ink)}
.home-up .home-node--off{box-shadow:inset 0 0 0 1.5px var(--line-strong)}
/* A call card: its name, its state in words, its time at the top right with its sun or moon. */
.home-call-card{width:100%}
/* The path's cards keep room at the right for their round "go" mark (path.css); Home's cards have none: the due
   call says so in its pill, and the next conversation is the whole card. */
.home-up button.path-card{padding-right:var(--s-5)}
/* The time sits on the name's line, at its end: the name keeps one line on a 360 phone, and ends in an ellipsis before
   it would ever break or run under the time. */
.home-call-card .path-card-copy{padding-right:0}
.home-call-card .path-card-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-call-time{display:inline-flex;align-items:center;gap:var(--s-1);flex:none;margin-left:auto;padding-left:var(--s-2);font:var(--type-label);color:var(--text)}
.home-call-time svg{width:14px;height:14px}
/* Due now: its words become the button they are, an ink pill on the picture (the card is the tap target). */
.home-call.is-now .home-call-said{align-self:flex-start;margin-top:var(--s-1);padding:var(--s-1) var(--s-3);border-radius:var(--radius-pill);background:var(--brand-primary);color:var(--on-primary);font:var(--type-quiet)}
:root[data-theme="dark"] .home-call.is-now .home-call-said{background:var(--night-canvas);color:var(--white)}
.home-call.is-done .home-call-card,.home-call.is-missed .home-call-card{opacity:.72}
.home-call.is-off .home-call-card{opacity:.56}
.home-call-card:active{opacity:.8}
/* A step's card: plain, on the page's fill, its words in ink, a chevron to change them. */
.home-card{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:var(--s-3);width:100%;min-height:64px;padding:var(--s-3) var(--s-4) var(--s-3) var(--s-5);border-radius:var(--radius-control);background:var(--subtle);color:var(--ink);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.home-card:active{background:var(--selection)}
/* One height for every step card, whatever another sheet sets for a plan line (path.css). */
.home-up .step-row .home-card{min-height:64px}
.home-up .step-copy{display:block;flex:1;min-width:0;transition:opacity var(--d-press) linear}
.home-up .step-copy>.label{display:block;color:var(--text)}
.home-up .step-copy>.step-label{display:grid;justify-items:start;text-align:left}
.home-up .step-words{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font:var(--type-body);color:var(--ink);text-wrap:pretty;transition:color var(--d-base) linear}
.home-up .step-row.is-done .step-words{color:var(--text)}
.home-up .step-row.is-empty .step-words{color:var(--text)}
.step-chev{flex:none;width:20px;height:20px;margin-right:-4px;color:var(--text-muted);transition:transform 160ms var(--ease)}
.step-chev svg{display:block;width:20px;height:20px}
.home-card:active .step-chev{transform:translateX(2px);transition-duration:var(--d-press)}
/* The next conversation, on the path's picture for a conversation with Noor: its label, then its name. */
.home-up .path-card.home-next{width:100%;flex-direction:row;align-items:center}
.home-up .path-card.home-next .step-words{font:var(--type-body);font-weight:600}
.home-up .path-card.home-next .home-next-name{display:block;font:var(--type-body);font-weight:600}
.home-up .path-card.home-next .home-next-go{font:var(--type-support);color:var(--text)}
:root[data-theme="dark"] .home-up .path-card .step-copy>.label{color:var(--night-canvas);opacity:.7}
/* What runs on under the floating tab bar fades into the page (components.css, on every tab page), so the card that
   peeks beside it reads as the next one in the list and never as a loose coloured corner. */
/* Both calls off: one quiet line under the cards still starts a check-in. */
.home-anyway{display:flex;justify-content:center;margin-top:var(--s-3)}

/* "Your small step" and "Done today." share a cell and trade places. */
.step-copy>.step-label{display:grid}
.step-label>span{grid-area:1/1;transition:opacity var(--d-quick) linear}
.step-label-done{opacity:0;color:var(--brand-primary)}
.step-row.is-done .step-label-todo{opacity:0}
.step-row.is-done .step-label-done{opacity:1;transition:opacity var(--d-base) linear 60ms}

/* The day her step names: the label says so, in the action colour. Her step stays the row's words. */
.step-row.is-today .step-label-todo{color:var(--brand-primary)}

/* The ring. A real 24px circle with a 46px target. Filling it is the one reward on this row: the disc springs, the tick is penned. */
.step-ring{all:unset;box-sizing:border-box;position:relative;display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--text-muted);color:var(--on-primary);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;transition:transform 160ms var(--ease)}
.step-ring::before{content:'';position:absolute;inset:-11px}
.step-ring:active{transform:scale(.9);transition-duration:var(--d-press)}
.step-ring-fill,.step-ring-halo{position:absolute;inset:0;border-radius:50%;background:var(--brand-primary);pointer-events:none}
.step-ring-fill{opacity:0;transform:scale(.4);transition:opacity 120ms linear,transform 120ms var(--ease-exit)}
.step-ring.is-done .step-ring-fill{opacity:1;transform:none;transition:opacity 80ms linear,transform 300ms var(--spring-soft)}
.step-ring-halo{opacity:0}
.step-ring-mark{position:relative;display:block;width:16px;height:16px}
.step-ring-mark svg{display:block;width:16px;height:16px}
.step-ring-mark path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 80ms linear}
.step-ring.is-done .step-ring-mark path{stroke-dashoffset:0;transition:stroke-dashoffset 220ms var(--ease-pen) 45ms}

/* Short screens: the gentle line goes first, then her words under the greeting. Every card stays: the page scrolls. */
@media (max-height:719px){.home-support{display:none}}
/* Under 720 the first card of Up Next (often the call that is due) must stand whole above the tab bar when Home
   opens: her words go, and the Reset card takes its short height. */
@media (max-height:719px){
  .home-words{display:none}
  .screen--home .today-moment{min-height:120px;margin-top:var(--s-4)}
  .screen--home .path-up-next{margin-top:var(--s-5)}
}

/* These start from all:unset, which clears the shared focus ring, so they say it again. */
:is(.today-initial,.home-words,.home-card,.home-call-card,.step-ring):focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
.home-card:focus-visible,.home-call-card:focus-visible{border-radius:var(--radius-control)}

/* The vision reader, from Home: the latest check-in is one more item under "Since then", not a new section. */
.since-then+.reader-latest{margin-top:var(--s-5)}

/* Your small step, the sheet */
.step-sheet-field{margin-top:0}
.step-sheet-label{margin-top:var(--s-5)}
.step-sheet-label+.options{margin-top:var(--s-2)}

/* Arriving Home, the first time. Runs once. Input is live throughout, since only opacity and transform move: the
   greeting, the Reset card, then the day's cards one after another down the line. The tab bar is chrome and never moves. */
@keyframes home-rise{from{opacity:.5;transform:translateY(12px)}}
@keyframes home-appear{from{opacity:.4}}
@keyframes home-bead{from{opacity:0;transform:translateY(-6px) scale(.2)}}
.is-arriving .home-greeting{animation:home-rise var(--d-base) var(--ease) backwards}
.is-arriving .home-words{animation:home-rise var(--d-base) var(--ease) 40ms backwards}
.is-arriving .today-moment{animation:home-rise var(--d-move) var(--ease) 80ms backwards}
.is-arriving .path-up-next{animation:home-appear var(--d-base) linear 140ms backwards}
.is-arriving .home-item{animation:home-rise var(--d-move) var(--ease) 160ms backwards}
.is-arriving .home-item:nth-child(2){animation-delay:200ms}
.is-arriving .home-item:nth-child(3){animation-delay:240ms}
.is-arriving .home-item:nth-child(n+4){animation-delay:280ms}
.is-arriving .tab-bead img{animation:home-bead var(--d-move) var(--spring-soft) 320ms backwards}

@media (prefers-reduced-motion:reduce){
  .is-arriving :is(.home-greeting,.home-words,.today-moment,.path-up-next,.home-item){animation:home-appear 240ms linear backwards}
  .is-arriving .tab-bead img{animation:none}
  .step-ring,.step-ring-fill,.step-ring.is-done .step-ring-fill,.step-ring-mark path,.step-ring.is-done .step-ring-mark path,.step-label>span,.step-row.is-done .step-label-done,.step-words,.step-chev,.today-initial>span{transition-duration:.01ms;transition-delay:0ms}
  .step-ring:active,.today-initial:active>span,.home-card:active .step-chev{transform:none}
}

/* Settings (views/settings.js): two groups of rows, the second set a little apart. */
.settings-body{padding-top:var(--s-2)}
/* The frame's title: centred, in ink. */
.screen--settings .bar--title{grid-template-columns:minmax(0,1fr)}
.screen--settings .bar-title{display:block;text-align:center;font:var(--type-bar);letter-spacing:0;color:var(--title-ink)}
/* Start over, a little apart from the groups and drawn as they are: a flat row, no fill. */
.settings-section--demo{margin-top:var(--s-6);border-top:1px solid var(--line)}
/* Settings as the Figma frame draws it: her name with Edit, then flat groups on the page, hairlines between rows. */
.settings-profile{display:flex;align-items:center;gap:var(--s-3);padding:var(--s-2) 0 var(--s-4)}
.settings-avatar{display:grid;place-items:center;flex:none;width:56px;height:56px;border-radius:50%;background:radial-gradient(circle at 30% 30%,var(--still-light),var(--still-tint) 70%);color:var(--on-primary);font:var(--type-heading)}
.settings-who{display:flex;flex-direction:column;min-width:0;flex:1}
.settings-name{font:var(--type-body);font-weight:500;color:var(--ink)}
.settings-email{font:var(--type-support);color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pill-small{all:unset;box-sizing:border-box;flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 var(--s-4);border-radius:var(--radius-pill);box-shadow:inset 0 0 0 1px var(--line-strong);color:var(--ink);font:var(--type-quiet);cursor:pointer;touch-action:manipulation}
.pill-small:active{background:var(--selection)}
.settings-section{margin-top:var(--s-3)}
.settings-group{margin:0;padding:var(--s-2) 0 0;font:var(--type-caption);letter-spacing:.04em;text-transform:uppercase;color:var(--text)}
.settings-section .rows{border-radius:0;background:none}
.settings-section .row{padding-left:0;padding-right:0;min-height:56px}
.settings-section .row+.row::before{left:0}
.settings-section .row-chev{color:var(--text-muted)}
.settings-section .seg{min-height:36px;width:148px;background:var(--subtle)}
.settings-section .seg-btn{min-height:32px}
.row-value{font:var(--type-support);color:var(--text)}
/* Which build this is: one quiet line under the last group. */
.settings-version{margin:var(--s-5) 0 var(--s-2);text-align:center;color:var(--text-muted)}
/* Settings → Daily Calls (views/daily-calls.js), as its frame draws it: the group's two calls in one rounded card, each
   row its name and time chip and switch, what it is for under them, a hairline between. Then the note about emails. */
.daily-body{padding-top:var(--s-2)}
.daily-section .rows{border-radius:var(--radius-card);background:var(--subtle)}
.daily-section .row.daily-row{padding:var(--s-3) var(--s-4) var(--s-4);min-height:88px}
.daily-section .row.daily-row+.row::before{left:var(--s-4);right:var(--s-4)}
.daily-section .daily-row .row-sub{margin-top:var(--s-2)}
.daily-reminders{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s-1);margin-top:var(--s-4)}
.daily-note{margin:0;color:var(--text);text-wrap:pretty}
.daily-error{margin:0;color:var(--error)}
.support-now{margin:0;font:var(--type-body);color:var(--ink);text-wrap:pretty}
}

/* Screen group: checkin. Layout and details for this group only. Everything here stays in @layer screens. */
@layer screens {
/* ---- The check-in ---- */
/* Her memory line can run long. It pushes the title down rather than climbing into the bar. */
.checkin-body .ack{height:auto;text-wrap:balance}
/* Her step, as the blueprint has it: --type-support ink-2 at every size, so the screen never changes typeface between phones.
   The label above it is ours, so it is small and plain. */
.checkin-step{display:block;margin-top:var(--s-3)}
.checkin-step-label{display:block;font:var(--type-caption);color:var(--text-muted)}
.checkin-step-words{display:block;font:var(--type-support);color:var(--text);text-wrap:pretty}
/* On a tall phone the dock sits far below the answers. One quiet line over Done says how small this is. */
.checkin-reassure{margin:0 0 var(--s-2);text-align:center}
@media (max-height:759px){.checkin-reassure{display:none}}
.checkin-body .options{margin-top:var(--s-5)}
.checkin-body .quiet{margin-top:var(--s-2)}
/* The note is hers, not a fourth answer. Its own label and a wider gap set it apart from the options,
   in the same label-over-words grammar as her step above. */
.checkin-note{gap:var(--s-1);margin-top:var(--s-6)}
.checkin-note .label{font:var(--type-caption);color:var(--text-muted)}
/* With the keyboard up the answers scroll under the bar. The shared top fade shows only its last 4px;
   here it is 16px and sits right under the bar, so a card never ends on a hard cut. */
.checkin-body::before{top:0;height:16px;margin-bottom:-8px;background:linear-gradient(var(--surface) 3px,transparent)}
.checkin-note .field{scroll-margin-bottom:var(--s-6)}
@media (max-height:639px){
  .checkin-step{margin-top:var(--s-2)}
  .checkin-body .options{margin-top:var(--s-3)}
  .checkin-note{margin-top:var(--s-4)}
}

/* ---- The result, and Saved: no bar, the light in the middle. The headline is the answer's own ---- */
.screen--result{position:relative;isolation:isolate;--result-top:24dvh;--result-orb:120px}
@media (max-height:759px){.screen--result{--result-top:14dvh}}
@media (max-height:639px){.screen--result{--result-top:9dvh;--result-orb:96px}}
/* The light's own colour, on the paper around it. Static. It is only ever faded. */
.result-wash{position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(84% 34% at 50% calc(var(--safe-top) + var(--s-6) + var(--result-top) + var(--result-orb) / 2),var(--wash,var(--ember-tint)) 0%,transparent 100%)}
.result-body{display:flex;flex-direction:column;padding-top:calc(var(--safe-top) + var(--s-6));background:transparent}
/* The light sits at the same height on every result, however much is said under it. Long words scroll. */
.result-stack{display:grid;justify-items:center;width:100%;margin-top:var(--result-top);text-align:center}
.result-orb{position:relative;z-index:1;width:var(--result-orb);height:var(--result-orb)}
.result-pulse{position:relative;display:block;width:100%;height:100%}
/* The orb breathes on its own clock (components.css, .aura-orb). */
.result-halo{position:absolute;inset:0;border-radius:50%;opacity:0;pointer-events:none;background:radial-gradient(closest-side,transparent 58%,rgb(var(--pulse-rgb) / .6) 76%,transparent 100%)}
.result-title{margin-top:var(--s-5);font:var(--type-voice);color:var(--ink);text-wrap:balance}
.result-words{margin-top:var(--s-2);color:var(--text);text-wrap:balance;overflow-wrap:anywhere}
.result-words--hers{margin-top:var(--s-3);font:var(--type-heading);color:var(--text)}
.result-count{margin-top:var(--s-4)}
/* A centred stack gets a centred answer, and a quiet one: a filled pill here read as a disabled primary and
   outweighed the words. 16px under her step, then the text button's own 44px. */
.result-action{margin-top:var(--s-4)}
.result-action .quiet{padding-inline:var(--s-4)}
/* "About 3 minutes ·" / "Next in your Compass": when it wraps, it wraps between the two, never orphaning "Compass". */
.result-next-part{white-space:nowrap}
.result-next{width:100%;margin-top:var(--s-6);text-align:left}
@media (max-height:639px){.result-title{margin-top:var(--s-3)}.result-action{margin-top:var(--s-2)}.result-next{margin-top:var(--s-4)}}
@keyframes result-breath{0%,100%{transform:scale(.985)}33.333%,50%{transform:scale(1.03)}}
/* "Take a minute first." The light takes the minute with her: same clock, deeper breath. */
.screen--result[data-answer="space"] .result-pulse :is(.aura-orb-core,.aura-orb-halo){animation-name:result-breath-deep}
@keyframes result-breath-deep{0%,100%{transform:scale(.9)}33.333%,50%{transform:scale(1.12)}}

/* What she gave, on its way into the light. Only ever transform and opacity */
.result-flyer{z-index:0;transform-origin:50% 50%;will-change:transform,opacity;contain:layout paint}
.result-flyer-words{padding:12px 16px;overflow:hidden;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--brand-primary);white-space:pre-wrap;overflow-wrap:anywhere}
.result-ghost-field{border-radius:var(--radius-card);background:var(--subtle)}
[data-result-flying]{visibility:hidden}
/* The pill's old word, held on the pill until the new one lands. */
.result-said{display:grid;place-items:center;white-space:nowrap;pointer-events:none}
}

/* Screen group: checkin. The daily check-in as a call (qa/polish/CHECKIN_CALL.md): the notes board the guide
   writes on the stage, the guided moments it adds, and the result that is also the form.
   Everything here stays in @layer screens and is scoped to the stage's room (.cb) or the result. */
@layer screens {

/* ---- the stage's small additions: a quiet way out by the status, replies she can tap, her words warm ---- */
.cs-aside{display:flex;justify-content:center}
.cs-aside:empty{display:none}
.cs-statusrow.has-aside .cs-status:not(.cs-status-intro){display:none}
/* A full target on a 20px line: the row keeps its height, the tap area does not. */
.cs .cs-aside-link{min-height:var(--target);margin-block:-12px;padding-inline:var(--s-3);font:var(--type-quiet);color:var(--brand-primary)}
.cs.is-intro .cs-aside{visibility:hidden}
.cs-quick{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--s-2)}
/* The quick answers are the design's glass, as the round buttons at the foot (styles/screens/call.css). */
.cs-quick .quiet{min-height:var(--target);padding-inline:18px;border-radius:var(--radius-pill);background:rgb(var(--white-rgb) / 0.72);box-shadow:inset 0 0 0 1px rgb(var(--white-rgb) / 0.9);color:var(--ink)}
.cs-warm{z-index:0}
.cs.is-warm .cs-echo,.cs.is-warm .cs-offer{opacity:0}
.cs.is-warm .cs-line{color:var(--ink)}

/* ---- the guided moments' rooms ---- */
/* The release: the room settles toward night, not toward grey. The anchor: toward morning paper. */
.cs[data-modality="release"] .cs-overcast{background:var(--selection)}
.cs[data-modality="anchor"] .cs-overcast{background:var(--pulse-tint)}
/* In the anchor her moment is the words that matter: the cue steps back to a quieter voice. */
.cs[data-modality="anchor"] .cs-breathcue{font:var(--type-heading);color:var(--soft)}
.cb-anchor{position:absolute;inset:0;z-index:0;pointer-events:none;contain:strict}
.cb-anchor[hidden]{display:none}
.cb-anchor-pic{position:absolute;left:0;top:0;width:100%;height:100%;display:block;opacity:0}
.cb-anchor.has-picture .cb-anchor-pic{opacity:1}
.cb-anchor-words{position:absolute;left:var(--page-l);right:var(--page-r);top:0;margin:0;text-align:center;font:var(--type-voice);letter-spacing:var(--track-voice);color:var(--ink);text-wrap:balance;overflow-wrap:anywhere}

/* ---- the notes board ---- */
.cb{position:absolute;inset:0;z-index:2;pointer-events:none;contain:layout paint}
.cs.cs-room-pinned .cs-stage-slot{flex:0 0 var(--room-slot)}
.is-composing .cb,.cs.is-finish .cb{visibility:hidden}
/* One board for each chapter that makes room; only the chapter on screen shows its own. */
.cb-board{position:absolute;left:var(--page-l);right:var(--page-r);top:var(--cb-top,0);height:var(--cb-h,0);opacity:0;visibility:hidden}
.cb.is-board .cb-board.is-current,.cb .cb-ghost{opacity:1;visibility:visible}

/* Evening: Done | Still open. Her words in the serif, as if written; a hairline under each. */
.cb--evening .cb-board{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:var(--s-4);align-content:start}
/* A chapter's lines from earlier chapters take the board's first row, across its columns. */
.cb--evening .cb-board>:not(.cb-col){grid-column:1/-1}
.cb-col{position:relative;min-width:0;display:flex;flex-direction:column}
.cb-head{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2);margin:0 0 10px;padding-bottom:6px;font:var(--type-label);color:var(--soft);box-shadow:inset 0 -1px 0 color-mix(in srgb,var(--ink) 22%,transparent)}
.cb-head{position:relative}
/* The word sits over the column's rule at its end, so it never takes room from "Still open". */
.cb-tag{position:absolute;right:0;top:-2px;padding:0 8px;border-radius:var(--radius-pill);background:var(--note-paper);box-shadow:var(--note-edge);font:var(--type-label);color:var(--ink);opacity:0}
.cb.is-tomorrow .cb-tag{opacity:1}
.cb-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.cb-note{position:relative;display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:var(--s-2);padding-bottom:7px}
.cb-note[hidden]{display:none}
/* A note struck out leaves from where it stood, over its list, which has already closed up under it. */
.cb-note.is-leaving{position:absolute;z-index:1}
.cb-note-text{position:relative;z-index:1;font:var(--type-button);letter-spacing:-.005em;color:var(--ink);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.cb-rule{position:absolute;left:24px;right:0;bottom:0;height:1px;background:color-mix(in srgb,var(--ink) 16%,transparent);transform-origin:0 50%}
/* The line drawn through a note she takes back. */
.cb-strike{position:absolute;z-index:2;left:24px;right:0;top:11px;height:1.5px;border-radius:var(--radius-control);background:color-mix(in srgb,var(--ink) 62%,transparent);transform:scaleX(0);transform-origin:0 50%;pointer-events:none}
/* The words a note had, lifting away as its new words are written. */
.cb-was{position:absolute;left:0;right:0;top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.cb-glyph{position:relative;z-index:1;width:16px;height:16px;margin-top:3px;border-radius:50%;display:grid;place-items:center;color:var(--white)}
.cb-glyph svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cb-glyph--tray{background:var(--tint)}
/* Done is a tick written in the hour's ink, not a badge: no disc. The hairline under the note is the "as if written". */
.cb-glyph--done{background:none;color:var(--tint)}
.cb-glyph--done svg{stroke-width:1.9}
.cb-glyph--open{box-shadow:inset 0 0 0 1.25px color-mix(in srgb,var(--ink) 42%,transparent)}
.cb-glyph-tomorrow{position:absolute;inset:0;border-radius:50%;background:var(--tint);display:grid;place-items:center;opacity:0}
.cb-note.is-tomorrow .cb-glyph-tomorrow{opacity:1}
/* The glow a done note gives as it is set down: static paint, only ever faded. */
.cb-glow{position:absolute;inset:-6px -10px;border-radius:var(--radius-card);background:radial-gradient(closest-side,rgb(var(--ember-rgb) / 0.95),transparent);opacity:0;pointer-events:none;display:none}
.cb-ghost .cb-glow{display:block}
.cb-more{margin:6px 0 0 24px;font:var(--type-caption);color:var(--soft)}
/* Nothing in Done, once its question has passed: a quiet line, so the column is not left bare. */
.cb-empty{margin:0;font:var(--type-caption);color:var(--soft)}
.cb-empty[hidden]{display:none}
.cb-more[hidden]{display:none}
.cb.is-compact .cb-head{margin-bottom:6px;padding-bottom:4px}
.cb.is-compact .cb-list{gap:6px}
.cb.is-compact .cb-note{padding-bottom:5px}
.cb.is-compact .cb-note-text{font-size:var(--text-md);line-height:21px;-webkit-line-clamp:1}
.cb.is-compact .cb-strike{top:10px}
.cb.is-compact .cb-glyph{margin-top:2px}

/* Morning: three cards, Today / In the way / Then I'll. Empty, they are glass outlines waiting to be written. */
.cb--morning .cb-board{display:flex;flex-direction:column;gap:var(--s-2)}
.cb--morning .cb-board>:not(.cb-card){flex:none}
.cb-card{position:relative;flex:1 1 0;min-height:0;max-height:78px;border-radius:var(--radius-card);padding:8px 14px;display:flex;flex-direction:column;justify-content:center;overflow:hidden}
/* The card's glass edge is its own layer, so a card not asked yet can wait without it and gain it by opacity. */
.cb-card::before{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgb(var(--ink-rgb) / 0.1);transition:opacity .4s ease}
.cb-card .cb-card-label{transition:opacity .4s ease}
/* A card the chapter has not asked yet waits without its glass edge, its label half-faded (the board's step). */
.cb-card.is-later::before{opacity:0}
.cb-card.is-later .cb-card-label{opacity:.5}
.cb-card-fill{position:absolute;inset:0;border-radius:inherit;background:var(--note-paper);box-shadow:var(--note-edge);opacity:0}
.cb-card.is-filled .cb-card-fill{opacity:1}
.cb-card-label{position:relative;font:var(--type-label);color:var(--soft)}
.cb-card-words{position:relative;margin:1px 0 0;font:var(--type-button);letter-spacing:-.005em;color:var(--ink);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.cb-card-words:empty{display:none}
.cb-card .cb-rule{position:relative;left:auto;right:auto;bottom:auto;display:block;margin-top:5px;width:100%;opacity:0}
.cb-card.is-filled .cb-rule{opacity:1}
/* Through her words: the card's last line of words sits above its padding and its hairline. */
.cb-card .cb-strike{left:14px;right:14px;top:auto;bottom:25px}
.cb-card>.cb-was{left:14px;right:14px;top:auto;bottom:14px;font:var(--type-button);letter-spacing:-.005em;color:var(--ink)}
.cb--morning.is-compact .cb-card{padding-block:5px;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:10px}
.cb--morning.is-compact .cb-card-label{flex:none;width:72px}
.cb--morning.is-compact .cb-card-words{flex:1;min-width:0;font-size:var(--text-md);line-height:21px;-webkit-line-clamp:1}
.cb--morning.is-compact .cb-card .cb-rule{display:none}
.cb--morning.is-compact .cb-card .cb-strike{left:96px;bottom:15px}
.cb--morning.is-compact .cb-card>.cb-was{left:96px;bottom:5px;font-size:var(--text-md);line-height:21px}

/* ---- notes written while she talks ---- */
/* Unsaved, they are a little lighter, with no hairline; the hairline draws when they are saved. */
:is(.cb-note,.cb-card).is-wet :is(.cb-note-text,.cb-card-words),:is(.cb-chip,.cb-own-line,.cb-attached).is-wet :is(.cb-chip-words,.cb-own-words,.cb-attached-words){opacity:.8}
:is(.cb-note,.cb-card).is-wet .cb-rule{transform:scaleX(0)}
/* Chapter 1: one line under the header, in her own words. It folds away as the chapter turns. */
.cb-chips{position:absolute;left:var(--page-l);right:var(--page-r);top:var(--cb-fold-top,0);display:flex;justify-content:center;opacity:0;visibility:hidden;transition:opacity .4s ease,visibility 0s linear .4s}
.cb.is-chip .cb-chips{opacity:1;visibility:visible;transition:opacity .4s ease}
.cb-chips[hidden]{display:none}
.cb-chip{display:flex;align-items:baseline;gap:0;min-width:0;max-width:calc(100% - 32px);margin:0;padding:4px 14px;border-radius:var(--radius-pill);background:var(--note-paper);box-shadow:var(--note-edge);white-space:nowrap}
.cb-chip-label{flex:none;font:var(--type-label);color:var(--soft)}
.cb-chip-words{min-width:0;overflow:hidden;text-overflow:ellipsis;font:var(--type-quiet);color:var(--ink)}
/* The step a chapter is on, in plain words, where the definitions give one; its glyph is drawn by the step's kind. */
.cb-step{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;margin:0;font:var(--type-label);color:var(--soft)}
.cb-step-label{min-width:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.cb-step-glyph:empty{display:none}
/* What the other check-in left: a glance, one line, never a note and never tapped. */
.cb-context{display:flex;align-items:baseline;min-width:0;max-width:100%;margin:0;padding:3px 12px;border-radius:var(--radius-pill);background:var(--glass);white-space:nowrap;justify-self:start;align-self:flex-start}
.cb-context-label{flex:none;font:var(--type-label);color:var(--soft)}
.cb-context-words{min-width:0;overflow:hidden;text-overflow:ellipsis;font:var(--type-quiet);color:var(--ink)}
.cb-step[hidden],.cb-context[hidden]{display:none}
/* A note drawn with an item of a list: the first step, under the first thing still open. */
.cb-attached{display:block;grid-column:2;position:relative;z-index:1;margin-top:1px;font:var(--type-caption);color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cb.is-compact .cb-attached{display:none}
/* Answers she may tap, in the stage's offer slot (the board is never tapped): one row, never wrapping. */
.cs-offer .cb-hints{display:flex;flex-wrap:nowrap;justify-content:safe center;gap:var(--s-2);max-width:100%;overflow:hidden}
.cs-offer .cb-hint{flex:none;min-height:var(--target);padding-inline:12px;border-radius:var(--radius-pill);background:rgb(var(--white-rgb) / 0.72);box-shadow:inset 0 0 0 1px rgb(var(--white-rgb) / 0.9);font:var(--type-quiet);color:var(--ink)}

/* ---- checkins-2 (v0.3.22): the step row's glyph and words, the vision row, the plan's cards and columns ---- */
/* The row keeps its line while its words wait for Noor's first caption, so nothing under it moves when they come. */
.cb-step{min-height:18px}
.cb-step-glyph{flex:none;width:16px;height:16px;display:grid;place-items:center;color:var(--soft)}
.cb-step-glyph svg,.cb-context-glyph svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
/* A vision morning's row ends with the first clause of her vision, softly, in the serif. */
.cb-step-words{font:var(--type-support);color:var(--soft)}
.cb-context-glyph{flex:none;align-self:center;width:14px;height:14px;margin-right:5px;display:grid;place-items:center;color:var(--soft)}
.cb-context-glyph svg{width:14px;height:14px}
.cb-context-glyph:empty{display:none}
/* A flex row's label keeps the space after its " · ", which would otherwise collapse at the end of its box. */
.cb-chip-label,.cb-context-label{white-space:pre}
/* A card or a column the plan does not ask today, and that has no words, is not drawn. */
.cb-board>.cb-card[hidden],.cb-board>.cb-col[hidden]{display:none}
/* A short or gentle evening asks only what is still on her mind: that one column has the board's width. */
.cb--evening .cb-board.is-single{grid-template-columns:minmax(0,1fr)}
/* A board under 140 px tall keeps no lines of earlier chapters in its first row (the morning's "One thing · …"). */
.cb.is-tight .cb-board>.cb-rows{display:none}
/* On a short phone a card stays one line, however few cards the plan draws. */
.cb--morning.is-compact .cb-card{flex:none;min-height:31px}
/* On a short phone the step row is one line, cut with an ellipsis. */
.cb.is-compact .cb-step-label{-webkit-line-clamp:1;overflow-wrap:anywhere}
/* Her words in an Arabic script: a Naskh face after the brand serif (which has no Arabic letters) and before the rest of
   the stack, and taller lines, so Nastaliq's tall letters are never clipped where a note is cut to its lines. */
:is(.cb,.cs-chapter) bdi:is(:lang(ur),:lang(ar),:lang(fa)),.cr-field:is(:lang(ur),:lang(ar),:lang(fa)),.cs-offer .cb-hint:is(:lang(ur),:lang(ar),:lang(fa)){
  font-family:var(--font);line-height:1.7}
.cs-offer .cb-hint:is(:lang(ur),:lang(ar),:lang(fa)){font-family:var(--font);line-height:20px}
/* The recap's rows of a daily check-in: a row left out while it is empty is not drawn at all (live-call-stage.js). */
.cs-chapter-words[hidden]{display:none}

/* ---- the ledger: what she said earlier, kept readable under the header for the rest of the call ---- */
.cb-ledger{position:absolute;left:var(--page-l);right:var(--page-r);top:var(--cb-fold-top,0);display:flex;flex-direction:column;align-items:center;gap:6px;opacity:0;visibility:hidden;transition:opacity .4s ease}
.cb.is-ledger .cb-ledger{opacity:1;visibility:visible}
.cb.is-anchor .cb-ledger{opacity:0}
.cb-lines,.cb-own,.cb-rows{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;max-width:100%}
.cb-lines[hidden],.cb-own[hidden],.cb-rows[hidden]{display:none}
/* A line: done's tick or tomorrow's arrow, her words, whole, then "(+2)" for the rest; never a count alone. */
.cb-line{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;height:30px;margin:0;padding:0 12px;border-radius:var(--radius-pill);background:var(--note-paper);box-shadow:var(--note-edge);color:var(--ink);white-space:nowrap}
.cb-line.has-glyph{padding-left:7px}
.cb-line .cb-glyph{flex:none;margin-top:0}
.cb-line-text{min-width:0;overflow:hidden;text-overflow:ellipsis;font:var(--type-quiet)}
.cb-line-label{font:var(--type-label);color:var(--soft)}
.cb-line-more{flex:none;font:var(--type-label);color:var(--soft)}
.cb-line.is-empty .cb-line-text{font:var(--type-caption);color:var(--soft)}
/* The morning's lines stay one card, its cards stacked into it: the deck. */
.cb--morning .cb-lines{align-items:stretch;gap:2px;width:min(100%,320px);padding:6px 14px;border-radius:var(--radius-card);background:var(--note-paper);box-shadow:var(--note-edge),0 5px 0 -2px rgb(var(--ink-rgb) / 0.06),0 10px 0 -4px rgb(var(--ink-rgb) / 0.04)}
.cb--morning .cb-lines .cb-line{height:auto;min-height:24px;padding:0;border-radius:0;background:none}
/* The chapter's own note, under the lines, in her words: the evening's "Grateful for · …". */
.cb-own-line{max-width:100%;margin:2px 0 0;font:var(--type-quiet);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cb-own-label{font:var(--type-label);color:var(--soft)}
/* In a chapter that makes room, its lines from earlier chapters are the board's first row. */
.cb-board>.cb-rows{align-items:flex-start}

/* A narrow column has no room for the word: the column keeps "Still open", each note keeps its arrow.
   At 320 a column's text is about 108px: at 15px "Finished the report" fits whole rather than "Finished the…". */
@media (max-width:359px){
  .cb-tag{display:none}
  .cb.is-compact .cb-note-text{font-size:var(--text-md);line-height:19px}
  .cb.is-compact .cb-strike{top:9px}
  .cb.is-compact .cb-list{gap:4px}
  .cb-line-text,.cb-own-line{font-size:var(--text-md)}
}
@media (max-height:639px){
  .cs-quick{margin-bottom:8px}
  .cb-anchor-words{font-size:var(--text-xl);line-height:27px}
}
/* A short phone (the room measures it): the lines are smaller, one note each, so they stay clear of the orb. */
.cb.is-short :is(.cb-ledger,.cb-lines,.cb-own){gap:4px}
.cb.is-short .cb-line{height:24px}
.cb.is-short .cb-line-text{font-size:var(--text-md);line-height:20px}
.cb.is-short .cb-own-line{font-size:var(--text-md);line-height:20px;margin-top:0}
.cb.is-short .cb-chip{padding-block:2px}
.cb.is-short .cb-chip-words{font-size:var(--text-md);line-height:20px}
.cb--morning.is-short .cb-lines{gap:2px;padding:4px 12px}
.cb--morning.is-short .cb-lines .cb-line{min-height:20px}

/* ---- the result: "Your evening", "Your morning". The light, her notes, every one hers to change ---- */
.screen--checkin-result{--result-top:2dvh;--result-orb:88px}
/* Start, not left: an Urdu note sits on the right with its punctuation (each field carries her language and direction). */
.cr-stack{justify-items:stretch;text-align:start}
.cr-stack .result-orb{justify-self:center}
.cr-stack .result-title{text-align:center}
.cr-sub{margin-top:var(--s-1);text-align:center}
.cr-sections{display:flex;flex-direction:column;gap:var(--s-6);margin-top:var(--s-6);padding-bottom:var(--s-4)}
.cr-section{display:flex;flex-direction:column;align-items:stretch}
.cr-label{margin:0 0 var(--s-1)}
.cr-row{display:flex;align-items:flex-start;gap:var(--s-1);box-shadow:inset 0 -1px 0 var(--line)}
/* Her words, all of them, in the serif they were written in on the board. */
.cr-field{flex:1 1 auto;min-width:0;min-height:var(--target);margin:0;padding:9px 0;border:0;border-radius:0;background:transparent;font:var(--type-heading);color:var(--ink);resize:none;field-sizing:content;overflow-wrap:anywhere;outline:0;caret-color:var(--brand-primary)}
.cr-field:focus{box-shadow:inset 0 -2px 0 var(--brand-primary)}
.cr-quote{margin:0;padding:9px 0;font:var(--type-heading);color:var(--ink);overflow-wrap:anywhere}
.cs .cr-remove,.cr-remove{flex:none;place-items:center;color:var(--text-muted)}
.cr-remove svg{width:18px;height:18px;margin:0}
.cr-add{align-self:flex-start;gap:6px;padding-inline:0 var(--s-2)}
.cr-add svg{width:18px;height:18px;flex:none}
}

.release-offer{display:flex;flex-direction:column;gap:10px;width:100%}
.release-offer .support{text-align:center;font-size:var(--text-sm)}
.release-offer-links{display:flex;justify-content:center;gap:24px}
.release-offer-links .quiet{font-size:var(--text-sm)}
.release-screen{position:absolute;inset:0;isolation:isolate;background:var(--surface);overflow:hidden}
.release-host{position:absolute;inset:0;container-type:size;--font-aura:var(--font);opacity:0;transition:opacity 650ms ease}
.release-screen.is-ready .release-host{opacity:1}
.release-wait,.release-error{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px;padding:24px;text-align:center}
.release-error{background:var(--surface);z-index:100}
/* While the release opens: the same orb it is about to show. */
.release-wait-light{flex:none}
.release-screen.is-ready .release-wait{visibility:hidden}
/* The player's own button takes the app's action colour in its day look (its night look keeps its light button). */
.release-host .mod-stage.is-day{--mod-primary-bg:var(--brand-primary);--mod-primary-ink:var(--on-primary)}
/* Layout is relative to the app column. The player's clock, transforms, shader and score are untouched. */
.release-host .mod-orb{--orb-size:min(64cqw,272px,34cqh)}
.release-host .mod-focus{gap:clamp(10px,3cqh,26px);padding-inline:clamp(16px,6cqw,26px)}
.release-host .mod-words{max-width:min(340px,100%)}
.release-host .mod-foot{min-height:clamp(106px,21cqh,178px);flex-shrink:0}
.release-host .rel-land-action{overflow-wrap:anywhere}
.release-host .mod-words.rel-words-land{max-height:29cqh;overflow-y:auto;overscroll-behavior:contain}
@container (max-height:640px){
  .release-host .mod-orb{--orb-size:min(48cqw,210px,29cqh)}
  .release-host .mod-top{min-height:48px;padding-top:calc(env(safe-area-inset-top,0px) + 8px)}
  .release-host .mod-focus{gap:10px}
  .release-host .mod-foot{min-height:106px;gap:8px;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 12px)}
  .release-host .mod-line p{font-size:var(--text-fit)}
  .release-host .rel-land-action{font-size:var(--text-xl)}
}
@container (max-height:440px){
  .release-host .mod-focus{flex-direction:row;padding-inline:20px;gap:24px}
  .release-host .mod-orb{--orb-size:min(23cqw,30cqh)}
  .release-host .mod-words{flex:1;height:100px}
  .release-host .mod-foot{min-height:84px}
  .release-host .rel-land-action{font-size:var(--text-lg)}
}
@media(prefers-reduced-motion:reduce){.release-host{transition:none}}

/* ---- The same family as the short reset in the first call (reset.css, 2 December 2026): the call's top bar (the mark
   at the left, a round glass close at the right, the player's label for a screen reader only), the app's type, the
   call's glass buttons at the foot and the room's light. The release keeps its own night for the evening and the
   eyes-closed part (it is the moon there, and the living shape on a version that draws her): the glass and the room's
   light are its day look's. Nothing here changes how it plays. ---- */
.release-host .mod-top{min-height:calc(var(--bar-h) + var(--safe-top));padding:calc(var(--safe-top) + var(--s-2)) var(--page-r) 0 var(--page-l)}
.release-host .mod-top::before{content:'';flex:none;width:36px;height:36px;background:url('../assets/opening/brand-mark.webp') center/contain no-repeat}
.release-host .mod-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.release-host .mod-icon{position:relative;width:40px;height:40px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--mod-line);-webkit-backdrop-filter:blur(27.5px);backdrop-filter:blur(27.5px)}
.release-host .mod-icon::before{content:'';position:absolute;inset:-4px}
.release-host .mod-icon svg{width:20px;height:20px;stroke-width:1.5}
.release-host .mod-round{width:56px;height:56px;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
.release-host .mod-round.is-main{width:64px;height:64px}
.release-screen .release-host .mod-stage.is-day :is(.mod-icon,.mod-round){border:0;background:rgb(var(--white-rgb) / 72%);box-shadow:inset 0 0 0 1px rgb(var(--white-rgb) / 90%);color:var(--ink)}
/* The type: her line in the call's voice type, the rest in the app's. */
.release-host .mod-line p{font:var(--type-voice);letter-spacing:var(--track-voice)}
.release-host .mod-line.is-cue p{font:var(--type-heading);letter-spacing:0}
.release-host .mod-card-title,.release-host .rel-land-title{font:var(--type-title);letter-spacing:var(--track-voice)}
.release-host .mod-card-title.is-small,.release-host .mod-card-sub.is-big{font:var(--type-voice);letter-spacing:var(--track-voice)}
.release-host .mod-card-sub{font:var(--type-body)}
.release-host :is(.mod-card-meta,.mod-hint,.mod-note,.rel-land-line){font:var(--type-caption)}
.release-host :is(.rel-land-label,.rel-land-carry-label){font:var(--type-eyebrow);letter-spacing:var(--track-eyebrow)}
.release-host .rel-land-carry-item{font:var(--type-body)}
.release-host .mod-carry-w{font:var(--type-heading)}
.release-host .mod-primary{font:var(--type-button)}
.release-host .mod-quiet{font:var(--type-quiet)}
/* By day the player's moving light gives way to the room's four lights at the foot, as in the reset; its night is its
   own, drawn over them. */
.release-host::before{content:'';position:absolute;inset:-4% -10% -6%;z-index:0;pointer-events:none;
  background:
    radial-gradient(46% 24% at 22% 84%,rgb(var(--room-amber-rgb) / .16),transparent 72%),
    radial-gradient(62% 22% at 10% 100%,rgb(var(--room-sky-rgb) / .19),transparent 72%),
    radial-gradient(60% 22% at 80% 92%,rgb(var(--room-rose-rgb) / .11),transparent 72%),
    radial-gradient(62% 24% at 86% 104%,rgb(var(--room-lilac-rgb) / .21),transparent 72%);
  animation:aura-drift 19s var(--ease-breath) infinite alternate}
.release-screen .release-host .mod-stage.is-day{background:transparent}
.release-host .mod-light{transition:opacity 1.6s ease}
.release-screen .release-host .mod-stage.is-day .mod-light{opacity:0}
.release-screen .release-host .mod-stage.is-day .mod-foot::after{opacity:0}
.release-screen .release-host .mod-stage.is-day :is(.mod-hint,.mod-note){text-shadow:none}
@media(prefers-reduced-motion:reduce){.release-host::before{animation:none}}

/* Screen group: compass. Layout and details for this group only. Everything here stays in @layer screens. */
@layer screens {
/* One map, always whole. The painting stays put behind a scrolling path. No text ever sits on the paint. */
.compass-map{container-type:size;padding:0;background:linear-gradient(var(--ember-tint),var(--still-tint));--map-drift:56px;--map-lift:0 1px 2px rgb(var(--ink-rgb) / 0.1),0 4px 14px rgb(var(--ink-rgb) / 0.07)}
.compass-map::before{display:none}
.map-paint{position:sticky;top:0;z-index:0;height:0;pointer-events:none}
.map-paint img,.map-veil{position:absolute;left:0;top:0;display:block;width:100%;height:100cqh;max-width:none}
.map-paint img{height:calc(100cqh + var(--map-drift));object-fit:cover;-webkit-user-select:none;user-select:none}
.map-veil{background:var(--surface)}
/* The painting dissolves into the bar instead of meeting it at a hard edge. */
.map-mist{position:sticky;top:0;z-index:2;height:0;pointer-events:none}
.map-mist::after{content:'';position:absolute;left:0;right:0;top:0;height:28px;background:linear-gradient(var(--surface),transparent)}
/* The land drifts a little as the path scrolls. Off the main thread, and only where the browser can. */
@supports (animation-timeline:scroll()){
  @media (prefers-reduced-motion:no-preference){
    .map-paint img{animation:map-drift linear both;animation-timeline:scroll(nearest block)}
  }
}
@keyframes map-drift{to{transform:translateY(calc(-1 * var(--map-drift)))}}

.map-track{position:relative;z-index:1;width:100%}
.compass-trail,.trail-draw{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.compass-trail path,.trail-draw path{fill:none;stroke-linecap:round}
.trail-under{stroke:rgb(var(--white-rgb) / 0.34);stroke-width:7}
.trail-open{stroke:var(--surface);stroke-width:3;stroke-dasharray:.01 9}
.trail-done{stroke:var(--brand-primary);stroke-width:3}
.trail-light{position:absolute;left:0;top:0;z-index:3;width:40px;height:40px;max-width:none;offset-anchor:center;offset-rotate:0deg;pointer-events:none;will-change:transform,offset-distance}

.compass-parts,.compass-stops{position:absolute;inset:0;margin:0;padding:0;list-style:none;pointer-events:none}
.compass-part{position:absolute;left:var(--page-l);top:var(--y)}
/* A part label is a pill, a stop's name is a chip, so a header never reads as a place to tap. */
.compass-part span{display:inline-block;padding:6px 12px;border-radius:var(--radius-pill);background:var(--surface);color:var(--text);font:var(--type-label);box-shadow:var(--map-lift)}
.compass-stop{position:absolute;left:var(--x);top:var(--y);width:0;height:0;pointer-events:auto}
.stage-button{all:unset;box-sizing:border-box;position:absolute;left:-28px;top:-28px;display:grid;place-items:center;width:56px;height:56px;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
.stage-button:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px;border-radius:50%}
.stage-node{position:relative;display:grid;place-items:center;border-radius:50%;background:var(--surface);color:var(--text-muted);font:var(--type-caption);font-variant-numeric:tabular-nums;box-shadow:var(--map-lift);transition:scale var(--d-quick) var(--ease)}
.stage-chip{position:absolute;top:50%;padding:6px 10px;border-radius:var(--radius-control);background:var(--surface);color:var(--ink);font:var(--type-label);white-space:nowrap;translate:0 -50%;box-shadow:var(--map-lift);transition:scale var(--d-quick) var(--ease)}
/* The stop presses as one thing, node and name. In fast, out soft. */
.stage-button:active .stage-node{scale:.92;transition-duration:var(--d-press)}
.stage-button:active .stage-chip{scale:.97;transition-duration:var(--d-press)}
.stop-left .stage-chip{left:calc(50% + 30px);transform-origin:left center}
.stop-right .stage-chip{right:calc(50% + 30px);transform-origin:right center}

.is-kept .stage-node{width:44px;height:44px;background:var(--brand-primary);color:var(--on-primary)}
.is-kept .stage-node svg{width:22px;height:22px;stroke-width:2.2}

.is-next .stage-node{width:56px;height:56px}
.is-next .stage-node img{width:40px;height:40px;max-width:none;animation:stage-breath var(--d-breath) var(--ease-breath) infinite}
/* The ring and the halo are pseudo-elements so the unlock can bring them in by opacity alone. */
.is-next .stage-node::before{content:'';position:absolute;inset:0;border-radius:50%;box-shadow:inset 0 0 0 2px var(--brand-primary);pointer-events:none}
.is-next .stage-node::after{content:'';position:absolute;inset:-6px;border-radius:50%;box-shadow:0 0 0 2px var(--surface);opacity:0;animation:stage-halo var(--d-breath) var(--ease-breath) infinite;pointer-events:none}
.stage-num{position:absolute;inset:0;display:grid;place-items:center;opacity:0;pointer-events:none}
/* One slow halo and one slow breath on the 12s clock. Transform and opacity only. */
@keyframes stage-halo{0%,100%{opacity:0;transform:scale(.92)}33%,50%{opacity:.9;transform:scale(1)}}
@keyframes stage-breath{0%,100%{transform:scale(.97)}33%,50%{transform:scale(1.03)}}
.is-next .stage-chip{font-weight:500}
.is-next.stop-left .stage-chip{left:calc(50% + 36px)}
.is-next.stop-right .stage-chip{right:calc(50% + 36px)}

.is-locked .stage-node{width:40px;height:40px}
.is-locked .stage-chip{color:var(--text-muted)}
.is-far .stage-node{opacity:.6}
@media (prefers-reduced-motion:reduce){
  .is-next .stage-node::after{animation:none;opacity:.9}
  .is-next .stage-node img{animation:none}
  .stage-node,.stage-chip{transition:none}
  .stage-button:active .stage-node,.stage-button:active .stage-chip{scale:none}
}

/* The Next dock sits over the map with rounded shoulders, lifted off the paint. */
.next-dock{z-index:2;margin-top:calc(-1 * var(--radius-panel));padding-top:var(--s-4);border-radius:var(--radius-panel) var(--radius-panel) 0 0;box-shadow:var(--e3)}
.next-dock::before{display:none}
.next-label{display:block;font-variant-numeric:tabular-nums;word-spacing:.08em}
.next-name{color:var(--ink);margin-top:2px}
/* Her words are never cut mid-word on one line. Two lines, and only a long one at 320 clamps. */
.next-reason{margin-top:2px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.next-line{margin-bottom:var(--s-3)}
.next-dock .quiet{margin-top:var(--s-1)}
.next-dock .primary{margin-top:0}
.next-dock>.next-reason+.primary{margin-top:var(--s-3)}
@media (max-height:639px){.next-reason{display:none}.next-dock--done .next-reason{display:-webkit-box}}

/* Stage sheets */
.stage-question{margin-top:var(--s-3)}
.stage-time{margin-top:var(--s-2)}
.stage-kept{margin-bottom:var(--s-2)}
.stage-words{white-space:pre-line;overflow-wrap:anywhere}

/* What you've said, and past conversations */
.said-body{padding-top:var(--s-1)}
.said-section+.said-section{margin-top:var(--s-7)}
.said-head{display:block;margin-bottom:var(--s-3);color:var(--text)}
.said-head:has(+.said-line){margin-bottom:0}
.said-line{margin-bottom:var(--s-1)}
.said-item+.said-item{margin-top:var(--s-3)}
.said-item .note{display:block;margin-bottom:2px}
.said-chosen{font:var(--type-body)}
/* Her words press like a row. The fill reaches past the text, so the text stays on the gutter. */
.said-edit{all:unset;box-sizing:border-box;position:relative;display:block;width:100%;padding-block:var(--s-2);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
.said-edit+.said-edit{margin-top:var(--s-1)}
.said-edit::before{content:'';position:absolute;inset:0 -12px;z-index:-1;border-radius:var(--radius-control);background:var(--selection);opacity:0;transition:opacity var(--d-quick) linear}
.said-edit:active::before{opacity:1;transition-duration:var(--d-press)}
.said-edit:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px;border-radius:var(--radius-control)}
.said-edit .note{display:block;margin-bottom:2px}
.said-edit .quote{display:block;overflow-wrap:anywhere}
/* Each line she said is a way into changing it: the row's chevron says so, as every other row that opens does. */
.said-edit{padding-right:var(--s-7)}
.said-chev{position:absolute;right:0;top:50%;transform:translateY(-50%);color:var(--text-muted)}
.said-chev svg{display:block;width:20px;height:20px}
.said-section{isolation:isolate}
.said-empty{color:var(--text)}
.log-body{padding-top:var(--s-1)}
.log-date{margin-bottom:var(--s-1)}
.log-words{white-space:pre-line;overflow-wrap:anywhere}
.log-note{margin-top:var(--s-3);white-space:pre-line}
.log-pair{margin-top:var(--s-5)}
.log-pair .label{display:block;margin-bottom:var(--s-1)}
.log-pair .quote+.label{margin-top:var(--s-3)}
.log-pair+.log-pair{margin-top:var(--s-6)}
.since-then,.reader-latest{margin-top:var(--s-6)}
.reader-head{display:block;margin-bottom:var(--s-2);color:var(--text)}
.since-item+.since-item{margin-top:var(--s-3)}
.since-item .note{display:block;margin-bottom:var(--s-1)}
.part--first{margin-top:var(--s-4)}
}

/* Screen group: sessions. Layout and details for this group only. Everything here stays in @layer screens. */
@layer screens {
.session-call .rail-timer{min-height:1px}
.session-call .call-row{min-height:48px}
/* Here the echo slot holds a reason, often two lines, right above the question. They need air between them. */
.session-call .call-echo:not(:empty)+.call-words{margin-top:var(--s-3)}
@media (max-height:639px){.session-call .call-echo:not(:empty)+.call-words{margin-top:var(--s-2)}}
.session-call .call-echo{max-width:20em}
/* Writing a later conversation: the offer and the line that replaces it take the same room, so nothing moves. */
.session-write .ack{height:auto;text-wrap:balance}
.session-write .quiet{margin-top:var(--s-2)}
.session-example-tag{display:flex;align-items:center;min-height:var(--target);margin-top:var(--s-2);animation:session-tag-in var(--d-base) var(--ease)}
@keyframes session-tag-in{from{opacity:0;transform:translateY(4px)}}
@media (prefers-reduced-motion:reduce){.session-example-tag{animation:none}}
.session-safety{margin-bottom:var(--s-3);color:var(--ink)}
/* One topic: the header's arc has nothing to count, and its lone sun read as a record light beside the timer. */
.session-call .cs-arc{display:none}
/* The reason here is two lines under the orb. On smaller stages the orb comes down to meet it, so it gets 16px of its own. */
@media (max-height:759px){.session-call .cs-caption{padding-top:var(--s-4)}}
/* The smallest stage: the orb leans down on her turn, so the gap is measured from where it leans to. */
@media (max-height:639px){.session-call .cs-caption{padding-top:var(--s-6)}}
/* The page holds together around her words, not a short box over a long white page. */
.session-write .field{min-height:160px}
/* "Keep this in your vision?" hugs what it holds: 16px from her words to the foot (4 here, 12 the foot's own). */
.sheet-body:has(.session-save-field){padding-bottom:var(--s-1)}
/* Nothing here scrolls (long words scroll inside the field), so the foot's scroll fade would only wash the field's edge. */
.sheet-body:has(.session-save-field)+.sheet-foot::before{display:none}
.session-save-field .field{min-height:56px}
}
/* Round 2. "Keep this in your vision?" sits over the warm room she just talked in. The shared cold scrim turned the
   peach stage a muddy brown-grey, so this sheet alone gets a warm, light veil. Other sheets keep theirs. */
@layer screens {
#app-sheet:has(.session-save-field)::backdrop{background:rgb(var(--surface-rgb) / 0.6)}
/* Her words are in the field now. The stage's pull quote of the same words steps back while the sheet is open,
   so they appear once. filter, not opacity: the stage's own entrance animates opacity. */
.session-call .cs-chapter{transition:filter 160ms linear}
body:has(#app-sheet[open] .session-save-field) .session-call .cs-chapter{filter:opacity(0)}
@media (prefers-reduced-motion:reduce){.session-call .cs-chapter{transition:none}}
/* Her quote in the lead starts its own line, so "Last time you said:" reads as the label it is, and it balances if it wraps. */
.session-write .ack:has(.session-lead-quote){flex-direction:column;justify-content:flex-end;align-items:stretch}
.session-lead-quote{display:block;text-wrap:balance}
/* On the narrowest phones a line of its own costs a third line and pushes the question down: there it runs on,
   full width, and pretty keeps the last line from being a stub. */
@media (max-width:359px){.session-write .ack:has(.session-lead-quote){display:block;text-wrap:pretty}.session-lead-quote{display:inline}}
/* With the keyboard up there is room for the field or for its 160px, not both: its whole border stays above the dock. */
@media (max-height:520px){.session-write .field{min-height:104px}}
}

/* Screen group: board. Layout and details for this group only. Everything here stays in @layer screens. */
@layer screens {
/* The board stays inside the tab shell. The canvas runs under the bar, down to the tab bar. */
.screen--board .board-body{padding:0;overflow:hidden;overscroll-behavior:none}
.screen--board .board-body::before{display:none}
.screen--board .bar--float{z-index:4}
/* The title is not a control. A drag that starts on it still moves the canvas. */
.screen--board .bar--float .bar-middle{pointer-events:none}
/* Solid behind the title, then a 24px fade for the cards passing under it. */
.screen--board .bar--float::before{content:'';position:absolute;inset:0 0 -24px;z-index:-1;background:linear-gradient(var(--canvas) calc(100% - 24px),transparent);pointer-events:none}

/* ---- The canvas ---- */
.vb-viewport{position:absolute;inset:0;width:auto;height:auto;min-height:0;margin:0;overflow:hidden;border:0;border-radius:0;box-shadow:none;background:var(--canvas);touch-action:none;cursor:grab;isolation:isolate;-webkit-user-select:none;user-select:none}
.vb-viewport.is-panning,.vb-viewport.is-panning .vb-card-open{cursor:grabbing}
/* One layer, moved by transform. 160% still covers the screen at its smallest scale, .75. */
.vb-dots{position:absolute;left:0;top:0;width:160%;height:160%;transform-origin:0 0;background-image:radial-gradient(circle,var(--line-strong) 1px,transparent 1px);background-size:24px 24px;pointer-events:none}
.vb-world{position:absolute;inset:0;width:auto;height:auto;transform-origin:0 0;will-change:auto}
.vb-viewport.is-moving .vb-world,.vb-viewport.is-moving .vb-dots{will-change:transform}

/* ---- Cards ---- */
/* The card itself never clips, so the lifted shadow on ::after can show. Its picture is clipped by .vb-card-open. */
.vb-card{position:absolute;display:flex;flex-direction:column;padding:0;border:0;outline:0;overflow:visible;border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--e1);transition:transform 240ms var(--spring-soft),rotate 240ms var(--spring-soft);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none}
.vb-card.is-top{z-index:2}
/* The lifted shadow is its own layer that fades in. A shadow never animates. */
.vb-card::after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:var(--e2);opacity:0;transition:opacity var(--d-quick) linear;pointer-events:none}
/* A press dips a moment later, so a quick drag across a card stays a plain pan. */
.vb-card.is-pressed{transform:scale(.985);transition:transform var(--d-press) linear 40ms}
.vb-card.is-lifted{z-index:5;transform:scale(1.03);will-change:transform,translate;transition:transform 240ms var(--spring-soft),rotate 180ms var(--ease)}
.vb-card.is-lifted::after{opacity:1}
.vb-card--leaving{pointer-events:none}

/* The move handle exists for keyboards only. */
.vb-card-handle{all:unset;box-sizing:border-box;position:absolute;left:var(--s-2);top:var(--s-2);z-index:1;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--surface);color:var(--ink);box-shadow:var(--e1);opacity:0;pointer-events:none}
.vb-card-handle svg{width:24px;height:24px}
.vb-card-handle:focus-visible{opacity:1;outline:2px solid var(--brand-primary);outline-offset:2px;pointer-events:auto}

.vb-card-open{all:unset;box-sizing:border-box;position:relative;display:flex;flex-direction:column;flex:1;min-height:0;width:100%;overflow:hidden;border-radius:inherit;text-align:left;cursor:grab;touch-action:none}
.vb-card-open:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
/* The words take what they need and the picture takes the rest, so a short card never ends in a blank. 16:9 is its floor. */
.vb-card-open>img{display:block;flex:1 1 0;min-height:0;width:100%;height:auto;max-width:none;object-fit:cover;object-position:50% 45%;pointer-events:none}
.vb-pic.is-waiting{color:transparent}
.vb-card-words{display:block;flex:none;padding:var(--s-3) var(--s-4) var(--s-4)}
.vb-card-label{display:block;font:var(--type-caption);color:var(--text-muted)}
/* The part of life on every card: its mark in a 20px disc of its wash, then its name. */
.vb-card-label--area{display:flex;align-items:center;gap:6px;min-width:0}
.vb-card-label--area>span:last-child{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
/* A sample image says so, quietly, in its corner. */
.vb-sample-tag{position:absolute;top:10px;right:10px;z-index:1;padding:1px 8px;border-radius:var(--radius-pill);background:rgb(var(--surface-rgb) / 0.92);color:var(--text-muted);font:var(--type-caption);pointer-events:none}
.vb-photo{position:relative}
.vb-photo .vb-sample-tag{top:8px;right:8px}
.vb-card-title{display:-webkit-box;margin-top:2px;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font:var(--type-heading);color:var(--ink);text-wrap:balance}
.vb-card-title--words{-webkit-line-clamp:5;text-wrap:pretty}
.vb-card-text{display:-webkit-box;margin-top:var(--s-1);-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font:var(--type-support);color:var(--text);text-wrap:pretty}

/* A note is white paper with one small cyan mark, her words in serif. No cream. Its height follows its words. */
.vb-note{background:var(--surface)}
.vb-note .vb-card-open{background:transparent}
.vb-note-pin{display:block;flex:none;width:28px;height:3px;margin:var(--s-5) var(--s-5) 0;border-radius:var(--radius-pill);background:var(--brand-primary)}
.vb-note-text{display:-webkit-box;flex:none;margin:var(--s-3) var(--s-5) var(--s-5);-webkit-box-orient:vertical;-webkit-line-clamp:7;overflow:hidden;font:var(--type-heading);color:var(--ink);white-space:pre-line;text-wrap:pretty}
/* A short note is read at the size of a voice, 24/30, up to five lines, so the paper never looks unfinished. */
.vb-note--short .vb-note-text{-webkit-line-clamp:5;font:var(--type-voice);text-wrap:balance}

/* The picture rising from the card into the detail sheet. It lives in the sheet until it lands. */
dialog.sheet.is-flying{overflow:visible}
.vb-flight{position:absolute;z-index:3;margin:0;object-fit:cover;transform-origin:0 0;will-change:transform,opacity;pointer-events:none}

/* ---- What floats over it ---- */
/* The cards pass under the tab bar through a soft 24px fade, as they pass under the title. */
/* The Add pill rests on a soft band of canvas, so no card's words ever sit under it. One layer, painted once. */
.screen--board .board-body::after{content:'';position:absolute;left:0;right:0;bottom:0;z-index:2;height:104px;background:linear-gradient(transparent,color-mix(in srgb,var(--canvas) 86%,transparent) 55%,var(--canvas));pointer-events:none}
/* The hint lives in the header band, on the canvas colour, so cards pass under it and never under its words. */
.board-hint{position:absolute;left:0;right:0;top:calc(var(--bar-h) + var(--safe-top));z-index:5;margin:0;padding:0 var(--page-r) var(--s-3) var(--page-l);background:linear-gradient(var(--canvas) calc(100% - 12px),transparent);color:var(--text);text-wrap:balance;pointer-events:none;transition:opacity var(--d-quick) linear}
.board-hint.is-leaving{opacity:0}
.board-hint[hidden]{display:none}

.board-actions{position:absolute;left:0;right:0;bottom:var(--s-3);z-index:3;display:grid;justify-items:center;gap:var(--s-1);pointer-events:none;transition:transform 280ms var(--ease-move),opacity var(--d-quick) linear}
.board-actions>*{pointer-events:auto}
/* Under the floating tab bar (a page with tabs and no dock runs under it, components.css): the pinned pill and the
   band it rests on stand above the bar, never beneath it. */
.screen:has(>.tabs):not(:has(>.dock)) .board-actions{bottom:calc(70px + var(--safe-bottom) + var(--s-4))}
.screen--board:has(>.tabs):not(:has(>.dock)) .board-body::after{display:block;height:calc(104px + 70px + var(--safe-bottom) + var(--s-4))}
.primary--float svg{width:22px;height:22px}
/* Carrying a card: the pill steps aside. An Undo toast takes its place, one floating thing at a time. */
.board-body.is-carrying .board-actions{opacity:0;transform:translateY(var(--s-2))}
.app-shell:has(#toast:not([hidden])) .board-actions{opacity:0}
.board-body.is-carrying .board-actions>*,.app-shell:has(#toast:not([hidden])) .board-actions>*{pointer-events:none}

/* ---- Empty ---- */
.board-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--s-2);padding:calc(var(--bar-h) + var(--safe-top)) var(--page-r) 120px var(--page-l);text-align:center;pointer-events:none}
.board-empty-art{position:relative;display:block;flex:none;width:240px;height:165px;margin-bottom:var(--s-4)}
.board-empty-art img{position:absolute;width:120px;height:142px;max-width:none;object-fit:cover;border:7px solid var(--surface);border-bottom-width:26px;border-radius:var(--radius-control);box-shadow:var(--e1)}
.board-empty-art img:first-child{left:14px;top:10px;transform:rotate(-11deg)}
.board-empty-art img:nth-child(2){right:13px;top:0;transform:rotate(10deg)}
.board-empty-art span{position:absolute;left:77px;bottom:0;padding:14px var(--s-4) 10px;border-radius:var(--radius-control);background:var(--surface);color:var(--ink);font:var(--type-voice);box-shadow:var(--e1);transform:rotate(-4deg)}
.board-empty-art span::before{content:'';position:absolute;left:var(--s-4);top:7px;width:22px;height:3px;border-radius:var(--radius-pill);background:var(--brand-primary)}
.board-empty-title{color:var(--ink)}
.board-empty-line{color:var(--text)}
@media (max-height:519px){.board-empty-art{display:none}}

/* ---- Card styles. Each part of life lends a quiet tint and a deep tone to the cards that carry no picture: its own
   spectrum hue, the same as its mark (vision-board-views.js, AREA_TONES) ---- */
:where(.vb-card,.vp-slide){--q-tint:var(--ember-tint);--q-ink:var(--ember-ink)}
[data-area="connection"]{--q-tint:var(--pulse-tint);--q-ink:var(--pulse-ink)}
[data-area="purpose"]{--q-tint:var(--still-tint);--q-ink:var(--still-ink)}
[data-area="home"]{--q-tint:var(--bond-tint);--q-ink:var(--bond-ink)}
[data-area="growth"]{--q-tint:var(--depth-tint);--q-ink:var(--depth-ink)}
[data-area="adventure"]{--q-tint:var(--root-tint);--q-ink:var(--root-ink)}
.vb-root{--q-tint:var(--still-tint);--q-ink:var(--brand-primary)}

/* Her words, as a quote. The mark and the wash carry the part of life; the words stay ink on white. */
.vb-style--quote .vb-card-open{background:radial-gradient(130% 75% at 0% 0%,var(--q-tint) 0%,transparent 62%),var(--surface)}
.vb-quote{display:flex;flex-direction:column;flex:1;min-height:0;padding:var(--s-3) var(--s-5) var(--s-4)}
.vb-quote-mark{display:block;flex:none;height:44px;margin-left:-3px;font:var(--type-poster);color:var(--q-ink)}
.vb-quote-words{display:-webkit-box;flex:0 1 auto;min-height:0;margin-block:auto;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;font:var(--type-voice);color:var(--ink);text-wrap:pretty}
.vb-quote-words.is-short{-webkit-line-clamp:4;font:var(--type-title);text-wrap:balance}
.vb-quote-words.is-long{-webkit-line-clamp:7;font:var(--type-heading)}
.vb-quote-foot{display:flex;flex:none;align-items:center;gap:var(--s-2);margin-top:var(--s-3)}
.vb-quote-foot .vb-card-label{margin:0}

/* A photograph: a white border, the picture, a caption in her words. */
.vb-style--photo .vb-card-open{padding:10px 10px 0}
.vb-photo{display:block;flex:1 1 0;min-height:0;overflow:hidden;border-radius:var(--radius-control)}
.vb-photo>.vb-pic{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 45%;pointer-events:none}
.vb-pic--empty{display:block;width:100%;height:100%}
.vb-photo-caption{display:flex;flex:none;align-items:center;justify-content:center;gap:var(--s-2);min-width:0;padding:var(--s-3) var(--s-2) var(--s-4);font:var(--type-heading);color:var(--ink)}
.vb-photo-caption>span:last-child{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

/* Sizes. Small cards read one step smaller, large ones one step larger, so a card never looks crowded or empty. */
.vb-size--s .vb-card-title{font:var(--type-button);letter-spacing:var(--track-quote)}
.vb-size--s .vb-card-text,.vb-size--s .vb-card-label{font:var(--type-caption)}
.vb-size--s .vb-quote-words{font:var(--type-heading)}
.vb-size--s .vb-quote-words.is-short{font:var(--type-voice)}
.vb-size--s .vb-quote-mark{height:36px;font-size:var(--text-5xl);line-height:60px}
.vb-size--s .vb-note-text{font:var(--type-heading)}
.vb-size--s.vb-note--short .vb-note-text{font:var(--type-heading)}
.vb-size--s .vb-photo-caption{font:var(--type-button)}
.vb-size--l .vb-card-title{font:var(--type-voice)}
.vb-size--l .vb-quote-words{font:var(--type-title)}
.vb-size--l .vb-quote-words.is-short{font:var(--type-display)}
.vb-size--l .vb-quote-mark{height:52px;font-size:var(--text-6xl);line-height:92px}
.vb-size--l .vb-note-text,.vb-size--l.vb-note--short .vb-note-text{font:var(--type-title)}
.vb-size--l .vb-photo-caption{font:var(--type-voice)}

/* ---- Play my vision, beside More ---- */
.screen--board .bar--float .bar-end{display:flex;align-items:center;gap:var(--s-1)}
.vb-play-btn{all:unset;box-sizing:border-box;position:relative;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 var(--s-4) 0 var(--s-3);border-radius:var(--radius-pill);background:var(--surface);color:var(--ink);font:var(--type-quiet);box-shadow:var(--e1);cursor:pointer;-webkit-user-select:none;user-select:none;transition:transform var(--d-quick) var(--ease)}
.vb-play-btn::before{content:'';position:absolute;inset:-4px -2px}
.vb-play-btn svg{flex:none;width:18px;height:18px;color:var(--brand-primary)}
.vb-play-btn:active{transform:scale(.96);transition-duration:var(--d-press)}
.vb-play-btn:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px;box-shadow:none}

/* ---- The player: full screen, white paper, the picture above and her words below it ---- */
dialog.vision-play{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;overflow:hidden;background:var(--surface);color:var(--ink);overscroll-behavior:none}
dialog.vision-play::backdrop{background:var(--surface)}
.vp-stage{position:absolute;inset:0;overflow:hidden;background:var(--surface);touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:pointer}
/* A slide is two layers that move apart: its picture (or wash) crossfades, its words leave and arrive in turn. */
.vp-slide{position:absolute;inset:0}
.vp-art{position:absolute;inset:0;opacity:0}
.vp-pic{position:absolute;left:0;right:0;top:0;height:62%;overflow:hidden;background:var(--subtle)}
.vp-pic img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;transform-origin:50% 45%}
/* The picture meets the paper softly, and lightens under the bar so its controls always read. */
.vp-pic::before{content:'';position:absolute;left:0;right:0;top:0;z-index:1;height:calc(var(--safe-top) + 96px);background:linear-gradient(rgb(var(--surface-rgb) / 0.72),transparent)}
.vp-pic::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:34%;background:linear-gradient(transparent,rgb(var(--surface-rgb) / 0.7) 55%,var(--surface))}
.vp-tag{position:absolute;right:var(--page-r);top:calc(var(--safe-top) + var(--bar-h) + 8px);z-index:2;padding:1px 8px;border-radius:var(--radius-pill);background:rgb(var(--surface-rgb) / 0.92);color:var(--text-muted);font:var(--type-caption)}
/* Her words sit in the space under the picture, centred in it, so nothing floats in a blank band. */
.vp-words{position:absolute;left:var(--page-l);right:var(--page-r);top:62%;bottom:calc(max(var(--s-7),var(--safe-bottom)) + var(--s-2));display:flex;flex-direction:column;justify-content:center;max-width:30em;margin-inline:auto}
.vp-label{display:flex;align-items:center;gap:var(--s-2);margin:0;font:var(--type-label);color:var(--text-muted)}
.vp-title{margin:var(--s-2) 0 0;font:var(--type-title);letter-spacing:var(--track-title);color:var(--ink);text-wrap:balance}
.vp-title.is-short{font:var(--type-display);letter-spacing:-.01em}
.vp-sub{margin:var(--s-3) 0 0;font:var(--type-body);color:var(--text);text-wrap:pretty}
.vp-feel{margin:var(--s-3) 0 0;font:var(--type-support);color:var(--brand-primary)}
/* A card with no picture: her words alone, centred, in a cyan wash. A quote keeps one cyan mark on the gutter; a note has none. */
.vp-wash{position:absolute;inset:0;background:radial-gradient(120% 60% at 50% 0%,var(--still-tint) 0%,transparent 72%),var(--surface)}
.vp-slide--words .vp-words,.vp-slide--end .vp-words{top:calc(var(--safe-top) + var(--bar-h));bottom:calc(max(var(--s-7),var(--safe-bottom)) + var(--s-4))}
.vp-mark{display:block;height:56px;margin:0;font:var(--type-clock);color:var(--brand-primary)}
/* The end: the living orb, her headline, and three of her own pictures arriving one after another. */
.vp-slide--end .vp-words{align-items:center;text-align:center}
.vp-orb{display:block;margin:0 auto var(--s-4);animation:vp-breathe 6s var(--ease-breath) infinite alternate}
@keyframes vp-breathe{from{transform:scale(.94)}to{transform:scale(1.04)}}
.vp-slide--end .vp-label{justify-content:center}
.vp-strip{display:flex;justify-content:center;gap:var(--s-2);margin-top:var(--s-6)}
.vp-strip img{display:block;width:72px;height:72px;max-width:none;object-fit:cover;border-radius:var(--radius-control);box-shadow:var(--e1)}
/* The film's last page: its buttons stand at the foot, as on every page (the design, 30 November 2026). */
.vp-end{display:grid;justify-items:stretch;gap:var(--s-3);width:100%;margin-top:auto;padding-top:var(--s-7)}
.vp-end .quiet{justify-self:center}
.vp-slide--end .vp-words{justify-content:flex-start;bottom:calc(var(--safe-bottom) + var(--s-4))}
.vp-slide--end .vp-words>:first-child{margin-top:auto}
.vp-bar{position:absolute;left:0;right:0;top:0;z-index:3;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:var(--s-3);min-height:calc(var(--bar-h) + var(--safe-top));padding:calc(var(--safe-top) + 4px) var(--page-r) 4px var(--page-l);pointer-events:none}
.vp-bar>*{pointer-events:auto}
.vp-progress{display:flex;gap:var(--s-1);pointer-events:none}
.vp-progress span{flex:1;height:2px;overflow:hidden;border-radius:var(--radius-control);background:color-mix(in srgb,var(--ink) 16%,transparent)}
.vp-progress i{display:block;height:100%;background:var(--ink);transform:scaleX(0);transform-origin:0 50%}
@media (max-height:639px){.vp-pic{height:54%}.vp-slide--picture .vp-words{top:54%}.vp-title{font:var(--type-voice)}.vp-title.is-short{font:var(--type-title)}.vp-orb{--vp-orb:64px}.vp-strip img{width:56px;height:56px}.vp-end{margin-top:var(--s-5)}}

@media (hover:hover) and (pointer:fine){
  .vb-card:hover::after{opacity:.5}
}
@media (prefers-reduced-motion:reduce){
  .vb-card,.vb-card.is-lifted{transition:none}
  .vb-card.is-pressed,.vb-card.is-lifted{transform:none}
  .board-actions,.board-hint{transition-duration:.01ms}
  .vp-pic img{transform:none}
  .vp-orb{animation:none}
}
}

/* Screen group: my vision board (views/life-board.js), and the page before it that keeps it. Layout and details for
   this group only. Everything here stays in @layer screens, and every value is a token. */
@layer screens {

/* ---- The board ----
   One composition that fits the phone: the stage takes the room the page has, at one fixed shape, and every card is a
   share of it (life-board.js, constellation). Nothing pans and nothing zooms: her whole life is on one page. */
.lb-body{display:flex;flex-direction:column;padding-top:var(--s-1);padding-bottom:var(--s-3)}
.lb-fit{flex:1 1 auto;min-height:260px;display:grid;place-items:center;container-type:size}
.lb-stage{position:relative;width:100%;aspect-ratio:var(--lb-ratio);margin:0 auto}
@supports (width:1cqw){.lb-stage{width:min(100cqw,calc(100cqh * var(--lb-ratio)))}}
/* More than ten cards: the board grows downward at its full width, and the page scrolls. */
.lb-fit[data-long]{flex:none;display:block;padding-top:var(--s-2);container-type:normal}
.lb-fit[data-long] .lb-stage{width:100%}

/* The threads from her picture to each part of her life. Drawn under everything, so only what lies between shows. */
.lb-threads{position:absolute;inset:0;z-index:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.lb-threads line{stroke:var(--ink);stroke-opacity:.16;stroke-width:1.25px;stroke-linecap:round;vector-effect:non-scaling-stroke;stroke-dasharray:1;stroke-dashoffset:0}

/* Her Living Vision: the largest thing here, and the middle of it. */
.lb-hero{all:unset;box-sizing:border-box;position:absolute;z-index:1;aspect-ratio:2/3;overflow:hidden;border-radius:var(--radius-panel);background:var(--subtle);box-shadow:var(--e2);cursor:pointer;isolation:isolate;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;touch-action:pan-y;transition:transform var(--d-quick) var(--ease)}
.lb-hero:active{transform:scale(.985);transition-duration:var(--d-press)}
.lb-hero:focus-visible,.lb-card:focus-visible{outline:2px solid var(--brand-primary);outline-offset:3px}
.lb-hero .lb-pic{display:block;width:100%;height:100%;object-fit:cover;-webkit-touch-callout:none;transition:opacity var(--d-moment) var(--ease),filter var(--d-moment) var(--ease)}
.lb-hero-wait{position:absolute;inset:0;display:grid;place-items:center}
/* While a new picture is made the one she has stays, under a soft veil that breathes. */
.lb-hero-veil{position:absolute;inset:0;background:var(--surface);opacity:.5;animation:lb-breathe var(--d-breath) var(--ease-breath) infinite;pointer-events:none}

/* A part of her life: a square photograph with a paper edge, tucked against the picture like a print on a board. */
.lb-card{all:unset;box-sizing:border-box;position:absolute;z-index:calc(2 + var(--z,0));aspect-ratio:1;border-radius:var(--radius-card);cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:pan-y;transition:transform var(--d-quick) var(--ease)}
.lb-card:active{transform:scale(.96);transition-duration:var(--d-press)}
.lb-face{position:absolute;inset:0;overflow:hidden;border-radius:inherit;background:var(--subtle);box-shadow:0 0 0 3px var(--surface),var(--e1);isolation:isolate;container-type:inline-size}
/* Picked up: above everything, a little larger, following the finger with no lag. Put down, it settles. */
.lb-card.is-lifted,.lb-hero.is-lifted{z-index:80;cursor:grabbing;transition:none}
.lb-card.is-lifted .lb-face{box-shadow:0 0 0 3px var(--surface),var(--e2)}
.lb-face .lb-pic{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;-webkit-touch-callout:none;transition:opacity var(--d-moment) var(--ease),filter var(--d-moment) var(--ease)}
/* A picture this phone is still fetching develops in place: out of the soft light, into focus. */
.lb-pic.is-waiting{opacity:0;filter:blur(14px)}

/* Behind a picture that is not there yet: one of the six lights, soft, and the icon the part of life wore in onboarding. */
.lb-wait{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(130% 130% at 22% 14%,rgb(var(--lb-light) / .6),rgb(var(--lb-light) / 0) 70%),var(--subtle)}
.lb-wait .lb-icon{width:34%;height:auto;max-width:44px}
.lb-icon--plain{display:grid;place-items:center;aspect-ratio:1;color:var(--text-muted)}
.lb-icon--plain svg{width:100%;height:100%}
/* A card of words alone: her line on paper, in the light of its part of life. */
.lb-card[data-kind="words"] .lb-face{background:radial-gradient(130% 130% at 22% 14%,rgb(var(--lb-light) / .45),rgb(var(--lb-light) / 0) 72%),var(--surface)}
.lb-quote{position:absolute;left:9%;right:9%;top:50%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;transform:translateY(-50%);color:var(--ink);font:var(--type-label);font-size:clamp(var(--text-xs),10.5cqw,var(--text-lg));line-height:1.26;letter-spacing:var(--track-quote);text-align:center;text-wrap:balance}
.lb-card[data-kind="words"]:has(.lb-chip) .lb-quote{top:44%;-webkit-line-clamp:4}
[data-light="teal"]{--lb-light:var(--root-rgb)}
[data-light="blue"]{--lb-light:var(--still-rgb)}
[data-light="amber"]{--lb-light:var(--ember-rgb)}
[data-light="coral"]{--lb-light:var(--pulse-rgb)}
[data-light="pink"]{--lb-light:var(--bond-rgb)}
[data-light="violet"]{--lb-light:var(--depth-rgb)}
.lb-card[data-state="painting"] .lb-wait,.lb-sheet-pic--wait[data-state="painting"] .lb-wait{animation:lb-breathe var(--d-breath) var(--ease-breath) infinite}
@keyframes lb-breathe{0%,100%{opacity:.62}40%{opacity:1}}
/* Being painted. Her own words hold the card's place, and a slow sheen passes over it: something is being made here. */
.lb-wait .lb-quote{top:44%;-webkit-line-clamp:4;color:var(--text)}
.lb-card[data-state="painting"] .lb-wait::after,.lb-sheet-pic--wait[data-state="painting"] .lb-wait::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,color-mix(in srgb,var(--surface) 78%,transparent) 50%,transparent 70%);transform:translateX(-110%);animation:lb-sheen 2800ms var(--ease-breath) infinite;pointer-events:none}
@keyframes lb-sheen{0%{transform:translateX(-110%)}60%,100%{transform:translateX(110%)}}
/* A card that has a picture and is getting a new one keeps it, under the same soft veil as her Living Vision. */
.lb-card[data-state="painting"][data-pictured] .lb-face::after{content:"";position:absolute;inset:0;z-index:1;background:var(--surface);opacity:.5;animation:lb-breathe var(--d-breath) var(--ease-breath) infinite;pointer-events:none}
/* An empty card asks for her words: the plus is the only action colour on the board. */
.lb-plus{position:absolute;z-index:2;right:8px;top:8px;display:grid;place-items:center;width:26px;height:26px;border-radius:var(--radius-pill);background:var(--brand-primary);color:var(--on-primary)}
.lb-plus svg{width:15px;height:15px}
.lb-card[data-state="empty"] .lb-face{box-shadow:0 0 0 3px var(--surface),inset 0 0 0 1.5px var(--line),var(--e1)}

/* Its name: one word on a paper pill, inside the photograph's corner. */
.lb-chip{position:absolute;z-index:3;left:7px;bottom:7px;max-width:calc(100% - 14px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:2px 9px 3px;border-radius:var(--radius-pill);background:var(--surface);background:color-mix(in srgb,var(--surface) 93%,transparent);color:var(--ink);font:var(--type-label);pointer-events:none}

/* Her own sentence under her board, and the one quiet line that says what is still coming. */
.lb-words{all:unset;box-sizing:border-box;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;flex:none;max-width:34ch;margin:var(--s-4) auto 0;text-align:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.lb-words:focus-visible{outline:2px solid var(--brand-primary);outline-offset:4px;border-radius:var(--radius-control)}
.lb-foot{flex:none;display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);min-height:var(--target);margin-top:var(--s-1)}
.lb-status{margin:0;color:var(--text-muted)}
.lb-add{display:inline-flex;align-items:center;gap:6px;flex:none;width:auto;min-height:var(--target);padding:0 var(--s-1)}
.lb-add svg{width:18px;height:18px}
.screen--lifeboard[data-phase="arriving"] .lb-foot{justify-content:center}
@media (max-height:639px){.lb-words{-webkit-line-clamp:2;margin-top:var(--s-3)}}
@media (prefers-reduced-motion:reduce){.lb-card[data-state="painting"] .lb-wait,.lb-sheet-pic--wait .lb-wait,.lb-hero-veil,.lb-card[data-state="painting"] .lb-face::after{animation:none}.lb-wait::after{display:none}.lb-face .lb-pic,.lb-hero .lb-pic{transition:none}}

/* ---- A card, opened (a sheet) ---- */
.lb-sheet-pic{position:relative;margin:0 0 var(--s-2);aspect-ratio:1;overflow:hidden;border-radius:var(--radius-panel);background:var(--subtle)}
.lb-sheet-img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity var(--d-base) var(--ease)}
.lb-sheet-img.is-waiting{opacity:0}
.lb-sheet-pic--wait{aspect-ratio:16/9}
.lb-sheet-pic--hero{aspect-ratio:2/3;width:min(100%,calc(46dvh * 2 / 3));margin-inline:auto}
.lv-picture{margin-top:var(--s-4)}
.lb-sheet-pic--words{aspect-ratio:auto;margin-bottom:var(--s-5);padding:var(--s-8) var(--s-5);background:radial-gradient(130% 130% at 22% 14%,rgb(var(--lb-light) / .45),rgb(var(--lb-light) / 0) 72%),var(--subtle)}
.lb-sheet-quote{margin:0;text-align:center;cursor:pointer}
.lb-sheet-size{margin:0 0 var(--s-5)}
.lb-sheet-size .label{margin:0 0 var(--s-2);color:var(--text-muted)}
.lb-row-icon{flex:none;display:grid;place-items:center;width:24px;height:24px;color:var(--ink)}
.lb-row-icon svg{width:24px;height:24px}
.lb-chips-label{margin:var(--s-5) 0 var(--s-2);color:var(--text)}
.lb-optional{color:var(--text-muted);font-weight:400}
.lb-chips{display:flex;flex-wrap:wrap;gap:var(--s-2)}
.lb-none{display:block;margin:var(--s-3) auto 0}
.lb-sheet-caption{margin:0 0 var(--s-4);color:var(--text-muted)}
.lb-sheet-line{margin:0 0 var(--s-5);cursor:pointer}
.lb-ask{margin:0 0 var(--s-4);color:var(--text)}
.lb-sheet-note{margin:var(--s-3) 0 0;color:var(--text-muted)}
.sheet .row--danger .row-title{color:var(--error)}
.lb-pick-grid{margin-top:0}

/* ---- Before the board: keep it (the account page) ----
   What she is about to get, shown with her own things: her picture, and the parts of life she chose, around it. */
.join-body{display:flex;flex-direction:column}
.join-teaser{position:relative;flex:none;height:clamp(148px,25dvh,212px);margin:var(--s-1) 0 var(--s-5)}
.join-hero{position:absolute;z-index:1;left:50%;top:0;display:block;width:auto;height:100%;aspect-ratio:2/3;transform:translateX(-50%);object-fit:cover;border-radius:var(--radius-card);background:var(--subtle);box-shadow:var(--e2)}
.join-hero--wait{display:grid;place-items:center}
.join-chips{position:absolute;inset:0;z-index:2;pointer-events:none}
.join-chip{position:absolute;display:inline-flex;align-items:center;gap:6px;padding:5px 12px 5px 7px;border-radius:var(--radius-pill);background:var(--surface);box-shadow:var(--e1);color:var(--ink);font:var(--type-label);white-space:nowrap}
.join-chip img{flex:none;width:22px;height:22px}
.join-chip:nth-child(1){right:calc(50% + 34px);top:8%}
.join-chip:nth-child(2){left:calc(50% + 40px);top:20%}
.join-chip:nth-child(3){right:calc(50% + 44px);bottom:16%}
.join-chip:nth-child(4){left:calc(50% + 30px);bottom:5%}
.join-lead{margin:var(--s-3) 0 var(--s-5);color:var(--text)}
.join-field{margin:0}
.join-small{margin:var(--s-3) 0 0;color:var(--text-muted)}

/* ---- Changing a picture, and changing words: one question at a time (v0.7.0) ----
   An open picture offers two things in the sheet's foot: the first leads, the second is quiet under it. */
.lb-acts{display:grid;gap:var(--s-1)}
.lb-acts .lb-act{gap:var(--s-2)}
.lb-acts .lb-act svg{width:20px;height:20px}
.lb-acts .quiet{justify-self:center}
/* Everything else a card can do waits here, closed. */
.lb-more{margin:0 0 var(--s-2)}
/* Its word starts on the sheet's gutter with the caption and her words above it (no inset of its own). */
.lb-more-head{display:flex;align-items:center;justify-content:space-between;min-height:var(--target);padding:0;color:var(--text);font:var(--type-quiet);cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent}
.lb-more-head::-webkit-details-marker{display:none}
.lb-more-head svg{width:20px;height:20px;transform:rotate(90deg);transition:transform var(--d-quick) var(--ease)}
.lb-more[open] .lb-more-head svg{transform:rotate(-90deg)}
.lb-more-head:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px;border-radius:var(--radius-control)}
.lb-more[open] .lb-more-head{margin-bottom:var(--s-2)}
/* "Change the picture": the picture she is changing, small; one question; one box; one large microphone. */
.lb-ask-pic{position:relative;width:96px;aspect-ratio:1;margin:0 auto var(--s-4);overflow:hidden;border-radius:var(--radius-card);background:var(--subtle)}
.lb-ask-pic--hero{width:84px;aspect-ratio:2/3}
.lb-ask-img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity var(--d-base) var(--ease)}
.lb-ask-img.is-waiting{opacity:0}
.lb-ask-pic+.lb-ask{text-align:center}
/* A short screen (a small phone, or a browser with its bars showing): her picture sits beside the question, smaller,
   so the box, the large microphone and the button are all on the screen without scrolling. On the shortest screens
   the picture steps aside: she has just tapped it. */
@media (min-height:601px) and (max-height:720px){
  .lb-ask-head:has(.lb-ask-pic){display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:var(--s-4);margin-bottom:var(--s-3)}
  .lb-ask-head .lb-ask-pic{width:56px;margin:0}
  .lb-ask-head .lb-ask-pic--hero{width:44px}
  .lb-ask-head .lb-ask-pic+.lb-ask{margin:0;text-align:left}
}
@media (max-height:600px){
  .lb-ask-head .lb-ask-pic{display:none}
  .lb-ask-head .lb-ask-pic+.lb-ask{text-align:left}
}
/* The box has one microphone, and it is the large one under it. */
.lb-say .voice-mic{display:none}
.lb-say .field{padding-right:var(--s-4)}
.lb-talk{all:unset;box-sizing:border-box;display:grid;justify-items:center;gap:var(--s-2);width:max-content;margin:var(--s-5) auto 0;color:var(--ink);font:var(--type-quiet);cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.lb-talk svg{box-sizing:content-box;width:30px;height:30px;padding:21px;border-radius:50%;background:var(--brand-primary);color:var(--on-primary);transition:transform var(--d-press) var(--ease),background-color var(--d-quick) linear}
.lb-talk:active svg{transform:scale(.95)}
.lb-talk:focus-visible svg{outline:2px solid var(--brand-primary);outline-offset:3px}
/* While it listens it asks to be tapped again, and breathes so the open microphone is seen from across the room. */
.lb-talk[data-on] svg{background:var(--error);animation:lb-talk-on 1.6s var(--ease-breath) infinite}
@keyframes lb-talk-on{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--error) 34%,transparent)}50%{box-shadow:0 0 0 14px color-mix(in srgb,var(--error) 0%,transparent)}}
@media (prefers-reduced-motion:reduce){.lb-talk[data-on] svg{animation:none}}
.lb-say-note{text-align:center}

/* One way to stop: the large button, which shows a stop mark while it listens. The row under the box (Undo) sits in
   the space above the button, so nothing jumps under her finger; only a message that needs reading makes room. */
.lb-say .voice-rec[data-mode] .voice-stop,.lb-say .voice-below .voice-cancel{display:none}
.lb-say .voice-below:not(:has(.voice-line)){position:absolute;left:0;right:0;top:100%}
.lb-talk{margin-top:calc(var(--target) + var(--s-2))}
.lb-talk .lb-talk-stop{display:none}
.lb-talk[data-on] .lb-talk-mic{display:none}
.lb-talk[data-on] .lb-talk-stop{display:block}

/* ---- Sticky notes: a card of words on one of five papers ---- */
.lb-card[data-kind="words"][data-tone] .lb-face,.lb-sheet-pic--words[data-tone]{background:var(--lb-paper)}
/* The five papers: the colours sticky notes come in, soft enough for ink to read on (each 11:1 or better). */
[data-tone="sun"]{--lb-paper:var(--ember-tint)}
[data-tone="rose"]{--lb-paper:var(--pulse-tint)}
[data-tone="sky"]{--lb-paper:var(--still-tint)}
[data-tone="mint"]{--lb-paper:var(--root-tint)}
[data-tone="lilac"]{--lb-paper:var(--depth-tint)}
.lb-tones{display:flex;flex-wrap:wrap;gap:var(--s-3)}
.lb-tone{all:unset;box-sizing:border-box;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--subtle);cursor:pointer;-webkit-tap-highlight-color:transparent}
.lb-tone[data-tone]:not([data-tone=""]){background:var(--lb-paper)}
.lb-tone[aria-checked="true"]{outline:2px solid var(--brand-primary);outline-offset:2px}
.lb-tone:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
.lb-foot-acts{flex:none;display:flex;align-items:center;gap:var(--s-3)}

/* ---- The canvas: the same board, free to arrange (life-board-canvas.js) ----
   The canvas fills the screen; its bar and its tools float over it. The world is one layer moved and scaled by
   transform; a card in it is placed in the canvas's own pixels. */
.screen--canvas{position:relative;display:block;overflow:hidden;background:var(--canvas)}
.cv-viewport{position:absolute;inset:0;overflow:hidden;outline:0;touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.cv-viewport.is-moving,.cv-viewport.is-carrying{cursor:grabbing}
.cv-viewport.is-sizing{cursor:nwse-resize}
.cv-dots{position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(circle,var(--line-strong) 1px,transparent 1.6px);background-size:var(--cv-pitch,24px) var(--cv-pitch,24px);background-position:var(--cv-x,0px) var(--cv-y,0px)}
.cv-world{position:absolute;left:0;top:0;width:0;height:0;transform-origin:0 0;will-change:transform}
.cv-world .cv-item{touch-action:none;transition:box-shadow var(--d-quick) linear,scale var(--d-press) var(--ease)}
.cv-world .cv-item.is-lifted{z-index:80;box-shadow:var(--e3);scale:1.03}
.cv-world .cv-item:focus-visible{outline:2px solid var(--brand-primary);outline-offset:3px}
/* What is selected: a line round it, and the corner that resizes it (a finger-sized target with a small mark). */
.cv-frame{position:absolute;z-index:4;box-sizing:border-box;border:2px solid var(--brand-primary);border-radius:var(--radius-card);pointer-events:none}
.cv-handle{position:absolute;right:-22px;bottom:-22px;display:grid;place-items:center;width:44px;height:44px;pointer-events:auto;touch-action:none;cursor:nwse-resize}
.cv-handle::after{content:"";width:16px;height:16px;border-radius:50%;border:2px solid var(--brand-primary);background:var(--surface);box-shadow:var(--e1)}
/* Two equal sides, so the title stands in the middle of the screen whatever Done and the icons measure. */
.cv-bar{position:absolute;inset:0 0 auto;z-index:6;grid-template-columns:minmax(88px,1fr) auto minmax(88px,1fr);background:linear-gradient(var(--canvas) 58%,transparent);pointer-events:none}
.cv-bar>*{pointer-events:auto}
.cv-done{justify-self:start;padding:0 var(--s-1)}
.cv-title{text-align:center}
.cv-bar-end{display:flex;align-items:center;justify-content:flex-end;min-width:88px}
.cv-icon{place-items:center;border-radius:50%}
.cv-icon svg{width:22px;height:22px}
.cv-dock{position:absolute;inset:auto 0 0;z-index:6;display:grid;justify-items:center;gap:var(--s-2);padding:var(--s-5) var(--page-r) max(var(--s-4),var(--safe-bottom)) var(--page-l);background:linear-gradient(transparent,var(--canvas) 62%);pointer-events:none}
.cv-dock>*{pointer-events:auto}
.cv-line{margin:0;max-width:36ch;text-align:center;color:var(--text)}
.cv-tools{display:flex;align-items:center;gap:var(--s-1);padding:6px;border-radius:var(--radius-pill);background:var(--surface);box-shadow:var(--e2)}
.cv-tools:empty{display:none}
.cv-tools .primary{width:auto;min-height:44px;padding:0 var(--s-5);gap:var(--s-2)}
.cv-tools .primary svg{width:20px;height:20px}
@media (prefers-reduced-motion:reduce){.cv-world .cv-item{transition:none}}

/* ---- VisionScape (views/life-board.js, boardHomeView): the design's board. Her Living Vision in front of a small
   stack of her pictures, the hint on it, then each part of her life as a full-width picture with its name. ---- */
.bar--visionscape .bar-middle{text-align:center}
.bar--visionscape .bar-title{font:var(--type-bar);letter-spacing:0;color:var(--title-ink)}
.vs-play svg{width:20px;height:20px}
.vs-body{padding-bottom:var(--s-6)}
/* Her pictures pass softly under the title as she scrolls, as the frame (127:2337) lets them, never cut at a line. */
.screen--visionscape .vs-body{-webkit-mask-image:linear-gradient(to bottom,transparent,var(--ink) var(--s-5));mask-image:linear-gradient(to bottom,transparent,var(--ink) var(--s-5))}
.vs-stack{position:relative;flex:none;height:clamp(380px,62vh,540px);margin-top:var(--s-2)}
.vs-front{left:50%;top:9%;bottom:0;width:auto;aspect-ratio:3/4.4;transform:translateX(-50%);z-index:3;border-radius:var(--radius-panel)}
.vs-front:active{transform:translateX(-50%) scale(.985)}
.vs-behind{position:absolute;top:0;width:44%;aspect-ratio:3/4;overflow:hidden;border-radius:var(--radius-card);filter:blur(1.5px) saturate(.9);opacity:.85;z-index:1;box-shadow:var(--e1)}
.vs-behind .lb-pic{display:block;width:100%;height:100%;object-fit:cover}
.vs-behind--1{left:4%;transform:rotate(-6deg)}
.vs-behind--2{right:4%;transform:rotate(6deg);top:3%}
.vs-hint{position:absolute;left:50%;bottom:var(--s-4);z-index:4;transform:translateX(-50%);padding:var(--s-3) var(--s-4);border-radius:var(--radius-pill);background:rgb(var(--surface-rgb) / 0.9);box-shadow:var(--e1);font:var(--type-quiet);color:var(--ink);white-space:nowrap;pointer-events:none}
.vs-list{display:grid;gap:var(--s-4);margin-top:var(--s-6)}
.vs-card{position:relative;left:auto;top:auto;width:100%;aspect-ratio:3/4;border-radius:var(--radius-panel);z-index:auto}
.vs-card:active{transform:scale(.985)}
.vs-card .lb-face{box-shadow:var(--e1)}
.vs-card .lb-chip{display:none}
.vs-card-name{position:absolute;left:var(--s-5);bottom:var(--s-5);z-index:3;font:var(--type-large);color:var(--white);text-shadow:0 1px 12px rgb(var(--ink-rgb) / 0.35)}
.vs-card[data-kind="words"] .vs-card-name,.vs-card:not([data-pictured]) .vs-card-name{color:var(--ink);text-shadow:none}
.vs-card[data-kind="words"] .lb-quote{font:var(--type-voice);-webkit-line-clamp:8}
}

/* The first reveal lives in the Vision tab. Only its surroundings change: the original player's
   canvas, photo crossfade, choreography and score retain their own styles and lifecycle. */
@layer screens {
.screen--vision-reveal{grid-template-rows:minmax(0,1fr) auto;--reveal-width:min(72vw,calc((100dvh - 300px) * .666667),280px)}
.screen.screen--vision-reveal:has(>.tabs):not(:has(>.dock))>.reveal-body{grid-row:1;grid-column:1;display:flex;flex-direction:column;align-items:center;padding-top:clamp(28px,5.5dvh,48px);padding-bottom:var(--s-3);overflow-x:hidden}
.screen.screen--vision-reveal:has(>.tabs):not(:has(>.dock))>.tabs{grid-row:2;grid-column:1;align-self:end}
.screen--vision-reveal .reveal-body::before{display:none}
.screen--vision-reveal .reveal-title{flex:none;max-width:19ch;margin:0;text-align:center;font:var(--type-title);letter-spacing:var(--track-title);text-wrap:balance;color:var(--title-ink)}
.screen--vision-reveal .reveal-stack{position:relative;flex:none;width:100%;max-width:380px;margin-top:clamp(28px,6dvh,52px);isolation:isolate}
.screen--vision-reveal .reveal-picture{position:relative;z-index:2;width:var(--reveal-width);margin:0 auto;padding-top:16px}
.screen--vision-reveal .reveal-picture .art-frame{aspect-ratio:2/3;max-height:none;border-radius:var(--radius-card)}
/* Unmade cards: quiet color only. No sample or generated scene is presented as the person's board. */
.screen--vision-reveal .reveal-behind{position:absolute;top:0;z-index:0;width:calc(var(--reveal-width) * .7);aspect-ratio:3/4;border-radius:var(--radius-card);filter:blur(5px);opacity:.72;pointer-events:none}
.screen--vision-reveal .reveal-behind--warm{left:calc(50% - var(--reveal-width) * .66);transform:rotate(-6deg);background:linear-gradient(150deg,color-mix(in srgb,var(--ember-light) 74%,var(--text-muted)) 5%,color-mix(in srgb,var(--ember-light) 55%,var(--selection)) 58%,color-mix(in srgb,var(--root-light) 50%,var(--text-muted)))}
.screen--vision-reveal .reveal-behind--cool{right:calc(50% - var(--reveal-width) * .66);top:4px;transform:rotate(6deg);background:linear-gradient(155deg,color-mix(in srgb,var(--room-sky) 55%,var(--text-muted)),color-mix(in srgb,var(--room-sky) 34%,var(--line-strong)) 60%,color-mix(in srgb,var(--root-light) 50%,var(--text-muted)))}
.screen--vision-reveal .reveal-picture .live-picture-wait{width:100%;aspect-ratio:2/3;min-height:0;padding:var(--s-5);box-sizing:border-box;border-radius:var(--radius-card);gap:14px}
.screen--vision-reveal .reveal-picture .live-picture-wait .support{font:var(--type-support)}
/* All player shortcuts stay out of this first, uninterrupted reveal. Its recovery action is kept. */
.screen--vision-reveal .portrait-status-row{display:none}
.screen--vision-reveal .reveal-open{position:absolute;top:16px;left:50%;z-index:3;width:var(--reveal-width);aspect-ratio:2/3;transform:translateX(-50%);border:0;border-radius:var(--radius-card);padding:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}
.screen--vision-reveal .reveal-open:focus-visible{outline:2px solid var(--brand-primary);outline-offset:5px}
.screen--vision-reveal .reveal-stack:has([data-phase="broken"]) .reveal-open{display:none}
.screen--vision-reveal .reveal-caption{display:grid;place-items:center;flex:none;min-height:44px;margin-top:clamp(16px,3dvh,28px);text-align:center}
.screen--vision-reveal .reveal-progress{max-width:28ch;margin:0}
.screen--vision-reveal .reveal-hint{margin:0;padding:12px 18px;border-radius:var(--radius-pill);background:rgb(var(--surface-rgb) / .9);font:var(--type-quiet);color:var(--ink)}
.screen--vision-reveal:has([data-phase="broken"]) .reveal-hint{visibility:hidden}
.screen--vision-reveal .tab:disabled{opacity:.55;cursor:default}
.screen--vision-reveal .tab.active:disabled{opacity:1}
.screen--vision-reveal.is-walled>.reveal-body,.screen--vision-reveal.is-walled>.tabs{filter:blur(20px);pointer-events:none;user-select:none;-webkit-user-select:none}
.screen--vision-reveal.is-walled>.reveal-body{overflow:hidden}
[data-theme="dark"] .screen--vision-reveal .reveal-behind{opacity:.4}
@media (max-height:600px){
  .screen--vision-reveal{--reveal-width:min(66vw,calc((100dvh - 240px) * .666667),240px)}
  .screen.screen--vision-reveal:has(>.tabs):not(:has(>.dock))>.reveal-body{padding-top:20px}
  .screen--vision-reveal .reveal-title{font:var(--type-login-title-compact);line-height:1.25}
  .screen--vision-reveal .reveal-stack{margin-top:22px}
  .screen--vision-reveal .reveal-caption{margin-top:12px}
}
}

@layer screens {
body[data-flow-test]{--preview-tools-height:64px}
body[data-flow-test] .app-shell{margin-top:var(--preview-tools-height);height:calc(100dvh - var(--preview-tools-height))}
.preview-flow-tools{position:fixed;z-index:35;top:max(8px,var(--safe-top));left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:8px;max-width:calc(100% - 16px);padding:6px 10px;border:1px solid var(--line);border-radius:var(--radius-pill);background:rgb(var(--surface-rgb) / .96);box-shadow:var(--e1);color:var(--text);font:var(--type-caption)}
.preview-flow-tools[hidden]{display:none}
.preview-flow-tools>span{white-space:nowrap}
.preview-flow-tools button{font:var(--type-quiet);color:var(--ink);background:var(--subtle);border:0;border-radius:var(--radius-pill);padding:8px 12px;cursor:pointer;white-space:nowrap}
.preview-flow-tools button:disabled{opacity:.5;cursor:default}
.preview-flow-tools button:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
@media(max-width:440px){body[data-flow-test]{--preview-tools-height:88px}.preview-flow-tools{flex-wrap:wrap;width:max-content}.preview-flow-tools>span{width:100%;text-align:center}}
}

/* Screen group: the guided path after the first call (views/path.js): Noor's invitation on the board, the three
   steps on Today, the page before the conscious creation conversation, her plan, and the page that introduces the
   morning and the evening call. Layout and details for this group only; every value is a token. */
@layer screens {

/* ---- On the board: Noor's invitation, and the line it becomes after "Later" ----
   It stands between the board and the tab bar, so the board keeps its whole page above it and nothing covers a card. */
.path-dock{gap:var(--s-3);padding-top:var(--s-3);padding-bottom:var(--s-3)}
/* While the board is still arriving the invitation only keeps its room, so the board lands at the size it will have. */
.path-dock[data-path-waiting]{visibility:hidden;pointer-events:none}
/* The Figma card (161:5006): white, 349 wide in 390, radius 12, over the foot of her pictures and above the tab bar. */
.path-dock[data-path-dock="invite"]{margin:0 calc(var(--page-r) - var(--s-1)) var(--s-3) calc(var(--page-l) - var(--s-1));padding:var(--s-4) var(--s-5);border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--e2)}
.path-dock[data-path-dock="invite"]::before{display:none}
/* It lies over her pictures, as drawn: they run on under it, and the page leaves room to scroll the last one clear. */
.screen--lifeboard:has(.path-dock[data-path-dock="invite"]){position:relative}
.screen--lifeboard>.path-dock[data-path-dock="invite"]{position:absolute;left:0;right:0;bottom:calc(70px + var(--safe-bottom) + var(--s-2));z-index:5}
/* Room for the card (about 280 tall) and the gap under it, so the board's last line scrolls clear of the card. */
.screen--lifeboard:has(>.path-dock[data-path-dock="invite"]) .lb-body{padding-bottom:calc(296px + var(--s-4))}
.path-invite{display:block}
.path-invite-title{font:var(--type-body);font-weight:600;color:var(--ink)}
.path-invite-sub{margin-top:var(--s-3)}
.path-invite-time{margin-top:var(--s-1)}
/* The three steps on one line: a dot each, a line between them; the step done filled, the next one a ring in ink. */
.path-journey{all:unset;position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:var(--s-4)}
.path-journey::before,.path-journey::after{content:'';position:absolute;left:var(--s-1);right:var(--s-1);top:3px;height:2px;border-radius:var(--radius-pill);background:var(--line-strong)}
/* The part of the line she has walked, to the step she is on (--at: 0, .5 or 1, set by the view). */
.path-journey::after{right:auto;width:calc((100% - var(--s-2)) * var(--at,0));background:var(--ink)}
.path-journey .path-journey-step{display:grid;background:none;gap:var(--s-2);justify-items:center;text-align:center;list-style:none}
.path-journey-step:first-child{justify-items:start;text-align:left}
.path-journey-step:last-child{justify-items:end;text-align:right}
.path-journey-dot{position:relative;z-index:1;width:8px;height:8px;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--text-muted)}
.path-journey-step.is-done .path-journey-dot{background:var(--ink);box-shadow:none}
.path-journey-step.is-now .path-journey-dot{box-shadow:inset 0 0 0 1.5px var(--ink)}
.path-journey-name{font:var(--type-label);color:var(--ink);text-wrap:balance}
.path-journey-step.is-ahead .path-journey-name{color:var(--text)}
.path-acts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--s-4);align-items:center;margin-top:var(--s-4)}
.path-acts .quiet{padding-inline:var(--s-3)}
/* A short phone has no room under the board. There the invitation lies over the foot of the board until it is
   answered, so the board keeps its whole page; and the line it becomes is left to the dot on the Today tab (below),
   because a line that stayed would cost the board the height its cards need to be read. */
@media (max-height:699px){
  .screen--lifeboard{position:relative}
  .path-dock:not(.path-dock--line)::before{display:none}
  .path-dock--line{display:none}
  .path-invite-sub{display:none}
}
@media (max-height:599px){.path-invite-time{display:none}.path-invite-orb{width:36px;height:36px}}
/* The next step waits under Today: a dot on its tab, on every screen that has the tab bar, until it is taken. */
body:is([data-path-next="plan"],[data-path-next="live"]) .tab[data-screen="today"]{position:relative}
body:is([data-path-next="plan"],[data-path-next="live"]) .tab[data-screen="today"]:not(.active)::after{content:'';position:absolute;left:calc(50% + 9px);top:9px;width:7px;height:7px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 2px var(--surface)}

.path-dock--line{padding-top:var(--s-2);padding-bottom:var(--s-2)}
.path-dock--line::before{display:none}
.path-line{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:var(--s-3);width:100%;min-height:52px;padding:var(--s-2) var(--s-4);border-radius:var(--radius-card);background:var(--subtle);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;transition:background-color var(--d-press) linear}
.path-line:active{background:var(--selection)}
.path-line:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
.path-line-orb{flex:none;display:grid;place-items:center;width:24px;height:24px}
.path-line-copy{display:block;flex:1;min-width:0}
.path-line-copy>.label{display:block}
.path-line-words{display:block;font:var(--type-body);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.path-line-meta{flex:none;white-space:nowrap}
.path-line .row-chev svg{display:block;width:20px;height:20px}

/* ---- Today, before the two daily calls: the three steps ---- */
.path-body{display:flex;flex-direction:column;padding-bottom:var(--s-3)}
.path-body>*{flex:none}
/* One line: a long name ends in an ellipsis rather than pushing the greeting onto a second line of its own. */
.path-title{margin-top:var(--s-3);font:var(--type-voice);letter-spacing:var(--track-title);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* The Figma frame's head: the mark alone, 44 tall, at the top left (no date, no initial: Settings has Edit). */
.today-brand--path .mark{display:block;width:44px;height:44px}
.path-eyebrow{margin-top:var(--s-2)}
.path-eyebrow+.title{margin-top:var(--s-2)}
/* The line under the title is help, not her words: the support colour, a step below the title (as 134:3077 sets it). */
.path-lead{margin-top:var(--s-2);color:var(--text)}
/* The Figma frame "Today": a moment in Reset on painted light, then Up Next as cards on a dotted line. */
/* Its pictures are the file's own (assets/today/*.webp: its photographs laid as the file lays them, without the
   words; RECORD figma-align-2026-12-01). The card runs 8 past the gutter on each side, 358 wide in 390 as drawn. */
.today-moment{all:unset;box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:2px;min-height:169px;margin:var(--s-6) calc(-1 * var(--s-2)) 0;padding:var(--s-4) var(--s-4) var(--s-4);border-radius:var(--radius-card);overflow:hidden;cursor:pointer;touch-action:manipulation;
  background:var(--subtle) url(../assets/today/moment.webp) center/cover no-repeat}
.today-moment{transition:transform var(--d-press) var(--ease-press),filter var(--d-press) linear}
.today-moment:active{transform:scale(.98);filter:brightness(.96)}
.today-moment:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
.today-moment-chip{margin-bottom:var(--s-2);padding:var(--s-1) var(--s-3);border-radius:var(--radius-pill);background:rgb(var(--white-rgb) / 75%);font:var(--type-label);color:var(--ink)}
.today-moment-title{font:var(--type-heading);color:var(--ink)}
.today-moment-sub{font:var(--type-support);color:var(--ink);opacity:.85}
.path-up-next{margin:var(--s-6) 0 0;font:var(--type-heading);color:var(--ink)}
/* Up Next (127:2282 to 127:2303): cards 83 tall, 12 apart, radius 8, on the file's own pictures; at their left a
   dashed line with a filled tick for the one done and a ring for each still ahead. The list runs 8 past the gutter on
   the right, as the moment card above it does. */
.path-steps{all:unset;display:block;margin:var(--s-4) calc(-1 * var(--s-2)) 0 calc(-1 * var(--s-1))}
.path-step{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);gap:var(--s-3);align-items:center;padding-bottom:var(--s-3);list-style:none}
.path-step:last-child{padding-bottom:0}
.path-step:not(:last-child)::before{content:'';position:absolute;left:10px;top:calc(50% + 12px);height:calc(100% - 24px + var(--s-3));width:0;border-left:2px dashed var(--line-strong)}
.path-node{display:grid;place-items:center;justify-self:center;width:22px;height:22px;border-radius:50%}
.path-node--done{background:var(--brand-primary);color:var(--on-primary)}
.path-node--done svg{width:12px;height:12px;stroke-width:2.4}
.path-node--now,.path-node--ahead{width:16px;height:16px;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--text-muted)}
.path-card{all:unset;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--s-1);min-height:83px;justify-content:center;padding:var(--s-3) var(--s-5);border-radius:var(--radius-control);overflow:hidden;color:var(--ink);background:var(--subtle) center/cover no-repeat}
/* The card that is next is the way on: lifted, and it answers a press. The others lie flat and do nothing under a
   finger. */
button.path-card{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-shadow:var(--e1);transition:transform var(--d-press) var(--ease-press),filter var(--d-press) linear}
button.path-card:active{transform:scale(.98);filter:brightness(.96)}
button.path-card:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
.path-step.is-ahead .path-card{opacity:.72}
.path-card--see{background-image:url(../assets/today/see.webp)}
.path-card--plan{background-image:url(../assets/today/plan.webp)}
.path-card--live{background-image:url(../assets/today/live.webp)}
.path-card-copy{display:flex;align-items:center;gap:6px;padding-right:var(--s-7)}
.path-card-name{font:var(--type-body);font-weight:600}
.path-card-lock{width:14px;height:14px}
.path-card-about{font:var(--type-support);color:var(--text)}
.path-card-time{position:absolute;top:var(--s-4);right:var(--s-5);font:var(--type-caption);color:var(--text-muted)}
/* The pictures are light in either theme: in dark the words on them keep the light theme's ink. */
:root[data-theme="dark"] :is(.today-moment,.path-card){color-scheme:light;--ink:var(--night-canvas);--text:var(--night-canvas)}
:root[data-theme="dark"] .path-card-time{color:var(--night-canvas);opacity:.6}
/* A short phone (640 tall and under 720): the card that is next must stand whole above the tab bar when the page
   opens. What gives is the room around things, the Reset card's picture and the mark, never a word; the page still
   scrolls for the step after it, which peeks above the bar. */
@media (max-height:719px){
  .today-brand--path .mark{width:36px;height:36px}
  .path-title{margin-top:var(--s-1)}
  .today-moment{min-height:112px;margin-top:var(--s-4);padding-block:var(--s-3)}
  .today-moment-chip{margin-bottom:var(--s-1)}
  .path-up-next{margin-top:var(--s-4)}
  .path-steps{margin-top:var(--s-3)}
  .path-step{padding-bottom:var(--s-2)}
  .path-step:not(:last-child)::before{height:calc(100% - 24px + var(--s-2))}
  .path-card{min-height:72px;padding-block:var(--s-2)}
  /* Scrolled to its end, the last card stands well clear of the floating bar. */
  .path-body{padding-bottom:var(--s-6)}
}

/* ---- The page before the conversation: what Noor already knows, and Begin ---- */
.creation-ready-body{display:flex;flex-direction:column;padding-bottom:var(--s-4)}
.creation-ready-body>*{flex:none}
.carry{margin-top:var(--s-6)}
.carry-label{display:block}
.carry-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--s-4);align-items:center;margin-top:var(--s-2);padding:var(--s-3);border-radius:var(--radius-card);background:var(--subtle)}
.carry-card:not(:has(.carry-pic)){grid-template-columns:minmax(0,1fr);padding:var(--s-4)}
.carry-pic{display:block;width:64px;aspect-ratio:2/3;overflow:hidden;border-radius:var(--radius-control);background:var(--selection)}
.carry-img{display:block;width:100%;height:100%;object-fit:cover}
.carry-img.is-waiting{visibility:hidden}
.carry-words{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;text-wrap:pretty}
.carry-list{all:unset;display:block;margin-top:var(--s-2);border-radius:var(--radius-card);background:var(--subtle)}
.carry-item{position:relative;display:block;padding:var(--s-3) var(--s-4)}
.carry-item+.carry-item::before{content:'';position:absolute;left:var(--s-4);right:0;top:0;height:1px;background:var(--line)}
.carry-item dt{display:block}
.carry-item dd{all:unset;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin-top:2px;font:var(--type-body);color:var(--ink);text-wrap:pretty}
.ready-list{all:unset;display:grid;gap:var(--s-2);margin-top:var(--s-5)}
.ready-list li{display:flex;align-items:center;gap:var(--s-3);list-style:none;font:var(--type-support);color:var(--text)}
.ready-icon{flex:none;display:grid;place-items:center;width:24px;height:24px;color:var(--text-muted)}
.ready-icon svg{width:22px;height:22px}
.ready-under{display:grid;justify-items:center;gap:0;margin-top:var(--s-2);text-align:center}
.ready-note{max-width:34ch;text-wrap:balance}

/* ---- Her plan: the result of the conversation, in her words, every line hers to change ----
   A few cards of lines: what matters to her, what she is creating, what she will do, how it holds, her own word.
   Each line carries its name above her words, so the page reads as her document and not as a form. */
.plan-doc{display:grid;gap:var(--s-3);width:100%;margin-top:var(--s-5);padding-bottom:var(--s-4);text-align:left}
.plan-card{overflow:hidden;border-radius:var(--radius-card);background:var(--subtle)}
.plan-line{all:unset;box-sizing:border-box;position:relative;display:flex;align-items:center;gap:var(--s-3);width:100%;min-height:56px;padding:var(--s-3) var(--s-4);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background-color var(--d-press) linear}
.plan-line:active{background:var(--selection)}
.plan-line:focus-visible{outline:2px solid var(--brand-primary);outline-offset:-2px}
.plan-line+.plan-line::before{content:'';position:absolute;left:var(--s-4);right:0;top:0;height:1px;background:var(--line)}
.plan-line-copy{display:block;flex:1;min-width:0}
.plan-line-label{display:block}
.plan-line-words{display:block;margin-top:2px;font:var(--type-body);color:var(--ink);text-wrap:pretty;overflow-wrap:anywhere}
/* What she is creating, and her own word, are said in the voice her vision is said in. */
.plan-line--lead .plan-line-words{font:var(--type-heading);letter-spacing:var(--track-quote)}
.plan-line.is-open .plan-line-words,.plan-line--add .plan-line-words{margin-top:0;color:var(--text-muted)}
.plan-line.is-open .plan-line-label{color:var(--text)}
.plan-line .row-chev{flex:none;color:var(--text-muted)}
.plan-line .row-chev svg{display:block;width:20px;height:20px}
/* What a version's extra parts saved: shown with her plan, not a line to tap. */
.plan-line--extra{cursor:default}
.plan-line--extra:active{background:none}
/* The plan is longer than the light it stands under: the orb gives it room, and the page scrolls. */
.screen--result:has(.plan-doc){--result-top:2dvh;--result-orb:88px}
@media (max-height:699px){.screen--result:has(.plan-doc){--result-top:0dvh;--result-orb:72px}}

/* ---- The morning and the evening call, introduced with the plan they come back to ---- */
.rhythm-intro-body .helper{margin-top:var(--s-2)}
/* The page is centred (the design's "Make time for yourself"), so the things she will come back to are too: each line
   centred with its dot in front of it, never a dot at the gutter beside centred words. */
.rhythm-plan{margin-top:var(--s-5);text-align:center}
.rhythm-plan-label{display:block}
.rhythm-plan-list{all:unset;display:block;margin-top:var(--s-2)}
.rhythm-plan-list li{display:block;list-style:none;font:var(--type-support);color:var(--ink);text-wrap:balance;overflow-wrap:anywhere}
.rhythm-plan-list li+li{margin-top:var(--s-1)}
.rhythm-plan-list li::before{content:'';display:inline-block;vertical-align:middle;width:5px;height:5px;margin:0 var(--s-2) 2px 0;border-radius:50%;background:var(--text-muted)}
.rhythm-intro-body .when-note{margin-top:var(--s-5)}

/* Today: the things of her plan after the first (her small thing for most days says "Every day"), and under them
   the way back to the whole plan, which a short phone keeps although it drops the next conversation's row. */
.step-row--plan .step-text{min-height:44px}
.step-row--plan .step-copy>.label{display:block}
@media (max-height:599px){.home-next.home-plan{display:flex}}

@media (prefers-reduced-motion:reduce){
  .path-line,.plan-line,button.path-card,.today-moment{transition-duration:.01ms}
  button.path-card:active,.today-moment:active{transform:none}
}

}

/* Screen group: sheets. Layout and details for this group only. Everything here stays in @layer screens. */
@layer screens {

/* ---- The frame, on every sheet ---- */
/* Back: the box stays 44 wide and overlaps the title's column, so the chevron's ink sits on the gutter and the title stays close to it. */
.sheet-bar--back{grid-template-columns:20px minmax(0,1fr) auto}
.sheet-bar--back>.icon-btn:first-child{z-index:1}
/* Close stays in one place on every sheet, however many lines the title takes. */
.sheet-bar{align-items:start}
.sheet-title{padding-block:7px}
/* Content softens as it scrolls under the head. Exactly the body's top padding, so nothing is touched at rest. */
.sheet-body::before{content:'';display:block;position:sticky;top:calc(-1 * var(--s-2));z-index:2;height:var(--s-2);margin:calc(-1 * var(--s-2)) calc(-1 * var(--sheet-pad-r)) 0 calc(-1 * var(--sheet-pad-l));background:linear-gradient(var(--surface),transparent);pointer-events:none}
/* A sheet changing form: paper under its edge while it settles, so the frame never shows a gap. */
dialog.sheet.is-morphing{overflow:visible}
dialog.sheet.is-morphing::after{content:'';position:absolute;left:0;right:0;top:calc(100% - var(--radius-panel));height:100vh;z-index:-1;background:var(--surface);pointer-events:none}
.kb-open .sheet-foot .quiet{display:none}

/* ---- Segments: each one fills from the left as she moves on ---- */
.sheet-segs span,.sheet-segs span.is-on{position:relative;overflow:hidden;background:var(--line)}
.sheet-segs span::after{content:'';position:absolute;inset:0;background:var(--brand-primary);transform:scaleX(0);transform-origin:0 50%;transition:transform 360ms var(--ease-pen)}
.sheet-segs span.is-on::after{transform:none}

/* ---- Rows ---- */
.row-glyph{flex:none;display:block;width:24px;height:24px;color:var(--brand-primary)}
.row-glyph svg{display:block;width:24px;height:24px}
.row--glyph+.row--glyph::before{left:calc(var(--s-4) + 24px + var(--s-3))}
.row--thumb+.row--thumb::before{left:calc(var(--s-4) + 48px + var(--s-3))}
.row--thumb{padding-block:var(--s-2)}
/* A note in All cards: white paper and its small cyan mark, like the note itself. */
#vision-board-dialog .row-thumb--note{position:relative;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
#vision-board-dialog .row-thumb--note::before{content:'';position:absolute;left:10px;top:9px;width:14px;height:2px;border-radius:var(--radius-control);background:var(--brand-primary)}
/* The Board sheet's tools: one 20px cyan line icon each, and the same chevron. */
.row--tool .row-glyph,.row--tool .row-glyph svg{width:20px;height:20px}
.row--tool .row-glyph{margin-inline:2px}
.row--glyph.row--tool+.row--glyph.row--tool::before{left:calc(var(--s-4) + 24px + var(--s-3))}
/* A row that is a file picker: the real input covers it, so one tap opens the camera or the gallery. */
.row--file{cursor:pointer;-webkit-user-select:none;user-select:none}
.row--file:active{background:var(--selection)}
.row--file:has(.pic-file:focus-visible){outline:2px solid var(--brand-primary);outline-offset:-2px}
.row--glyph+.row--file::before{left:calc(var(--s-4) + 24px + var(--s-3))}
.row--thumb .row-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zoom-row{padding-block:var(--s-1)}
/* The plus lands on the chevrons' line above it. */
.zoom-controls{display:flex;align-items:center;flex:none;margin-inline-end:-8px}
.zoom-value{min-width:52px;text-align:center;font:var(--type-body);font-variant-numeric:tabular-nums}
.zoom-controls .icon-btn{border-radius:50%;transition:background-color var(--d-press) linear}
.zoom-controls .icon-btn:active{background:var(--selection)}

/* ---- Figures ---- */
.sheet-caption{margin-top:var(--s-2)}
.sheet-figure{margin:0}
.sheet-figure img{display:block;width:100%;max-width:none;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius-card);background:var(--selection)}
.sheet-figure figcaption{margin-top:var(--s-2)}
.sheet-figure.sheet-bleed{margin-inline:calc(-1 * var(--sheet-pad-l)) calc(-1 * var(--sheet-pad-r))}
/* A card's picture in its detail: its own 4:3, inside the gutter, so nothing in it is cut off. */
.detail-figure img{aspect-ratio:4/3;border-radius:var(--radius-card)}
.sheet-bleed img{border-radius:0}
.sheet-bleed figcaption{padding-inline:var(--sheet-pad-l) var(--sheet-pad-r)}
.sheet-body>.quiet{margin-top:var(--s-2)}
.detail-text{margin-top:var(--s-3);white-space:pre-line;overflow-wrap:anywhere}
/* Chips write her feelings in lower case, so they read as one phrase. The card shows that phrase as a line of its own. */
#vision-board-dialog .part .lead::first-letter{text-transform:uppercase}
.sheet-preload{display:none}

/* ---- Which part of life? Six tiles, each mark on a 64px disc of its own wash, its name and one quiet line ---- */
.area-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s-3)}
.area-tile{all:unset;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:var(--s-3);min-height:148px;padding:var(--s-4);border-radius:var(--radius-card);background:var(--subtle);color:var(--ink);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;transition:background-color var(--d-press) linear,transform 160ms var(--ease)}
.area-text{display:block;min-width:0}
.area-name{display:block;font:var(--type-quiet);color:var(--ink);text-wrap:balance}
.area-hint{display:block;margin-top:2px;font:var(--type-caption);color:var(--text-muted);text-wrap:balance}
.area-tile:active{background:var(--selection);transform:scale(.97);transition-duration:var(--d-press)}
.area-tile:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
.area-medallion{display:grid;flex:none;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--tint)}
.area-mark{display:block;width:18px;height:18px;overflow:visible}
.area-mark .m-fill{fill:var(--mark-fill);stroke:none}
.area-medallion--lg{width:64px;height:64px}
.area-medallion--lg .area-mark{width:34px;height:34px}
/* The sheet header's mark is 32px with an 18px icon at every size, so the header never grows. */
.area-medallion--sm{width:32px;height:32px}
.area-medallion--sm .area-mark{width:18px;height:18px}
.area-medallion--xs{width:24px;height:24px}
.area-medallion--xs .area-mark{width:15px;height:15px}
.area-medallion--dot{width:20px;height:20px}
.area-medallion--dot .area-mark{width:14px;height:14px}
.area-medallion--dot .area-mark path,.area-medallion--dot .area-mark circle,.area-medallion--dot .area-mark rect{stroke-width:2}
.sheet-title-area{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%}
.sheet-title-area>span:last-child{display:-webkit-box;min-width:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
@media (max-width:359px){.area-tile{min-height:136px;padding:var(--s-3)}.area-medallion--lg{width:56px;height:56px}.area-medallion--lg .area-mark{width:30px;height:30px}}
/* On a short screen the six become one list, each a row with its mark, so all six fit without scrolling. */
@media (max-height:699px){.area-tiles{grid-template-columns:minmax(0,1fr);gap:var(--s-2)}.area-tile{flex-direction:row;align-items:center;min-height:60px;padding:var(--s-2) var(--s-3)}.area-medallion--lg{width:44px;height:44px}.area-medallion--lg .area-mark{width:24px;height:24px}.area-hint{margin-top:0}}

/* ---- The card she is making, live: picture on top, the part of life, her words; three choices under it ---- */
.pic-card{position:relative;margin-top:var(--s-1);overflow:hidden;border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--e1)}
.pic-figure{position:relative;isolation:isolate;margin:0;aspect-ratio:4/3;max-height:min(42dvh,300px);width:100%;overflow:hidden;background:var(--selection);cursor:default}
.pic-img,.pic-layer{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 50%}
.pic-figure.is-painting{background:var(--surface);cursor:pointer}
.pic-glint{position:absolute;inset:0;z-index:2;background:linear-gradient(105deg,transparent 35%,rgb(var(--white-rgb) / 0.5) 50%,transparent 65%);opacity:0;transform:translateX(-110%);pointer-events:none}
.pic-card-words{display:block;padding:var(--s-3) var(--s-4) var(--s-4)}
.pic-name{all:unset;box-sizing:border-box;display:block;width:calc(100% + 16px);min-height:var(--target);margin:2px -8px 0;padding:6px 8px;border-radius:var(--radius-control);font:var(--type-heading);color:var(--ink);caret-color:var(--brand-primary);-webkit-user-select:text;user-select:text;transition:background-color var(--d-quick) linear}
.pic-name::placeholder{color:var(--text-muted);opacity:1}
.pic-name:hover,.pic-name:focus{background:var(--subtle)}
.pic-name:focus-visible{outline:2px solid var(--brand-primary);outline-offset:0}
.pic-card-text{display:-webkit-box;margin:2px 0 0;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font:var(--type-support);color:var(--text);text-wrap:pretty}
.pic-card-title{margin:var(--s-1) 0 0;font:var(--type-heading);color:var(--ink)}
/* The caption says how the picture was made. While it paints, a small cyan dot pulses beside it (opacity only). */
.pic-caption{display:flex;align-items:center;gap:var(--s-2);min-height:var(--target);margin:var(--s-1) 0 0}
.pic-dot{display:none;flex:none;width:8px;height:8px;border-radius:50%;background:var(--brand-primary)}
.pic-stage.is-painting .pic-dot{display:block;animation:pic-pulse 1s var(--ease-breath) infinite alternate}
@keyframes pic-pulse{from{opacity:.25}to{opacity:1}}
.pic-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s-2)}
.pic-choice{all:unset;box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;padding:6px 4px;border-radius:var(--radius-card);background:var(--subtle);color:var(--ink);font:var(--type-caption);text-align:center;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;transition:background-color var(--d-quick) linear,transform 160ms var(--ease)}
.pic-choice svg{flex:none;width:20px;height:20px;color:var(--brand-primary)}
.pic-choice::after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1.5px var(--brand-primary);opacity:0;transition:opacity var(--d-quick) linear;pointer-events:none}
.pic-choice.is-on{background:var(--selection)}
.pic-choice.is-on::after{opacity:1}
.pic-choice:active{transform:scale(.97);transition-duration:var(--d-press)}
.pic-choice:focus-visible,.pic-choice:has(.pic-file:focus-visible){outline:2px solid var(--brand-primary);outline-offset:2px}
/* The real file input covers its tile, so one tap opens the camera or the gallery. */
.pic-file{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;font-size:var(--text-md)}
.pic-error:empty{display:none}
.pic-error{margin-top:var(--s-2)}
/* Short screens: the picture gives way, so the card's words and the three choices always sit above the footer. */
@media (max-height:699px){.pic-figure{max-height:22dvh}.pic-card-words{padding:var(--s-2) var(--s-4) var(--s-3)}.pic-card-text{-webkit-line-clamp:1}.pic-caption{min-height:32px}}
@media (max-height:599px){.pic-figure{max-height:20dvh}.pic-card-text{display:none}.pic-name{min-height:40px}}

/* ---- A card's tools ---- */
.tool-group+.tool-group{margin-top:var(--s-4)}
.tool-label{margin:0 0 var(--s-2)}
.style-picks{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:var(--s-2)}
.style-pick{all:unset;box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;min-height:var(--target);padding:10px 4px 8px;border-radius:var(--radius-card);background:var(--subtle);font:var(--type-caption);color:var(--ink);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--d-quick) linear,transform 160ms var(--ease)}
.style-pick::after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1.5px var(--brand-primary);opacity:0;transition:opacity var(--d-quick) linear;pointer-events:none}
.style-pick[aria-checked=true]{background:var(--selection)}
.style-pick[aria-checked=true]::after{opacity:1}
.style-pick:active{transform:scale(.96);transition-duration:var(--d-press)}
.style-pick:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
.style-pick[aria-disabled=true] .style-swatch{opacity:.5}
.style-swatch{display:flex;flex-direction:column;gap:3px;width:34px;height:44px;padding:5px 5px 4px;border-radius:var(--radius-control);background:var(--surface);box-shadow:0 1px 2px rgb(var(--ink-rgb) / 0.12),0 2px 8px rgb(var(--ink-rgb) / 0.06)}
.style-swatch i{display:block;flex:none}
.sw-pic{height:17px;border-radius:var(--radius-control);background:linear-gradient(165deg,var(--ember-light) 0%,var(--ember-tint) 45%,var(--still-light) 100%)}
.sw-line{height:3px;border-radius:var(--radius-control);background:color-mix(in srgb,var(--text-muted) 50%,transparent)}
.sw-line--short{width:60%}
.sw-mark{height:9px;margin-bottom:1px;font:var(--type-heading);font-style:normal;color:var(--brand-primary)}
.style-swatch--photo{padding:4px 4px 5px}
.style-swatch--photo .sw-pic{flex:1 1 auto;height:auto}
.style-swatch--photo .sw-line{margin-top:2px;align-self:center}
.style-swatch--note{position:relative;padding-top:9px}
.style-swatch--note::before{content:'';position:absolute;left:5px;top:4px;width:10px;height:2px;border-radius:var(--radius-control);background:var(--brand-primary)}
.step-field{margin-top:var(--s-6)}
.guide-helper{margin-top:var(--s-2)}
.tool-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:var(--s-2)}
.tool-action{all:unset;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:var(--s-2);min-height:80px;padding:var(--s-3);border-radius:var(--radius-card);background:var(--subtle);color:var(--ink);font:var(--type-support);text-wrap:balance;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--d-press) linear,transform 160ms var(--ease)}
.tool-action svg{flex:none;width:24px;height:24px;color:var(--brand-primary)}
.tool-action:active{background:var(--selection);transform:scale(.97);transition-duration:var(--d-press)}
.tool-action:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
.tool-actions+.destructive{margin-top:var(--s-3)}
@media (max-width:359px){.tool-action{min-height:76px;padding:var(--s-3) 10px;font:var(--type-caption)}}

/* ---- Three short questions ---- */
/* Two lines are always held, so the field sits at the same place on every question. */
/* The question starts 32px under the progress line on every step and every part of life, however many lines it takes. */
.guide-question{margin-top:var(--s-6)}
.guide-field{margin-top:var(--s-3)}
.guide-field .field--text{min-height:clamp(96px,18dvh,144px)}
.guide-chips{margin-top:var(--s-3)}
.guide-chips .chip{transition:background-color var(--d-quick) linear,transform 160ms var(--ease)}
.guide-chips .chip:active{transform:scale(.96);transition-duration:var(--d-press)}
.guide-line{margin-top:var(--s-2)}
.guide-quiet{margin-top:var(--s-1)}
.guide-quiet[hidden]{display:none}
.field-group--first{margin-top:var(--s-1)}

/* ---- A note: what she types already looks like the card ---- */
.note-field .field{font:var(--type-heading)}
.note-field .field--text{min-height:112px}
.block--note{position:relative;padding-top:var(--s-6)}
.block--note::before{content:'';position:absolute;left:var(--s-4);top:var(--s-3);width:28px;height:3px;border-radius:var(--radius-pill);background:var(--brand-primary)}
.block--note .quote{white-space:pre-wrap;overflow-wrap:anywhere}

/* ---- How it works ---- */
.help-pair+.help-pair,.help-keyboard{margin-top:var(--s-4)}
.help-head{font:var(--type-quiet);color:var(--ink)}
.help-keyboard{display:none}
@media (pointer:fine){.help-keyboard{display:block}}

/* ---- Tidy: a small board in a fixed frame. The cards glide, the frame stays ---- */
/* The body is the measure: the preview takes what the switch and the line leave, so the whole sheet reads without scrolling. */
.sheet-body:has(>.tidy-preview){container-type:size}
.tidy-preview{position:relative;width:min(100%,max(144px,calc((100cqh - 124px) * 342 / 380)));aspect-ratio:342/380;margin:var(--s-3) auto 0;border-radius:var(--radius-card);overflow:hidden;background-color:var(--canvas);background-image:radial-gradient(var(--line-strong) 1px,transparent 1.5px);background-size:12px 12px}
.tidy-card{position:absolute;left:0;top:0;display:flex;flex-direction:column;gap:6%;overflow:hidden;border-radius:var(--radius-control);background:var(--surface);box-shadow:var(--e1);transition:transform var(--d-move) var(--ease-move);transition-delay:calc(var(--n,0) * 24ms);will-change:transform}
.tidy-card img{display:block;flex:none;width:100%;height:56%;max-width:none;object-fit:cover}
.tidy-card i{display:block;flex:none;height:4px;margin-inline:10%;border-radius:var(--radius-pill);background:var(--line)}
.tidy-card i:last-child{width:50%}
.tidy-card.is-note{justify-content:center}
.tidy-card.is-note::before{content:'';display:block;flex:none;width:18%;height:3px;margin-inline:10%;border-radius:var(--radius-pill);background:var(--brand-primary)}
.tidy-card.is-note i{background:color-mix(in srgb,var(--ink) 16%,transparent)}
.tidy-line{margin-top:var(--s-3);text-align:center}
@media (prefers-reduced-motion:reduce){
  .tidy-card,.sheet-segs span::after{transition:none}
  .pic-stage.is-painting .pic-dot{animation:none}
  .area-tile:active,.guide-chips .chip:active{transform:none}
}

/* ---- Make it sound like you: the one long-text sheet ---- */
#vision-edit{min-height:220px;max-height:none}
#editor .sheet-body{display:grid;gap:var(--s-2);align-content:start}
.edit-part{display:grid;gap:var(--s-2)}
.edit-part+.edit-part{margin-top:var(--s-3)}

/* ---- The vision reader. Label over the headline, the art edge to edge, her parts below. It is for reading, so the words stay on the first screen ---- */
.sheet-eyebrow{display:block;margin-bottom:var(--s-1);color:var(--text)}
.sheet-title-words{display:block}
}

/* Screen group: install. The invitation to add the app to the home screen (install-prompt.js). Everything here stays in @layer screens. */
@layer screens {
/* A short sheet: the app's icon beside one line, then either one button or the two or three taps this phone needs. */
.install-lead{display:flex;align-items:center;gap:var(--s-4)}
.install-icon{flex:none;width:56px;height:56px;border-radius:var(--radius-card);box-shadow:0 0 0 1px var(--line),var(--e1)}
.install-about{margin:0;font:var(--type-body);color:var(--text);text-wrap:pretty}
.install-steps{list-style:none;margin:var(--s-5) 0 0;padding:0;display:grid;gap:var(--s-3);counter-reset:install}
.install-steps li{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:var(--s-3);counter-increment:install;font:var(--type-body);color:var(--ink)}
.install-steps li::before{content:counter(install);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--selection);font:var(--type-quiet);color:var(--ink)}
.install-steps li>span{padding-top:2px}
.install-steps b{font-weight:600}
.install-steps svg{display:inline-block;width:20px;height:20px;margin:0 1px;vertical-align:-4px;color:var(--ink)}
.install-steps small{display:block;margin-top:2px;font:var(--type-caption);color:var(--text-muted)}
}

/* Screen group: voice. Layout and details for this group only. Everything here stays in @layer screens. */
@layer screens {
/* One component across about twenty screens. A real field, always. The mic sits inside it. */
voice-note-input{position:relative;display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;margin:0;padding:0;border:0;background:none;box-shadow:none;container:voice/inline-size;scroll-margin-block:var(--s-6) var(--s-2)}
voice-note-input>.field{grid-area:1/1}
.voice-chrome{grid-area:1/1;position:relative;display:grid;gap:0;min-height:0;padding:0;pointer-events:none;z-index:1}

/* Idle: a quiet 44px mic flush right, never filled. Tap is the only way a microphone opens. */
.voice-mic{all:unset;box-sizing:border-box;position:absolute;right:6px;top:2px;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--text-muted);cursor:pointer;pointer-events:auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
voice-note-input[data-size="line"] .voice-mic{top:6px}
.voice-mic svg{width:22px;height:22px;transition:transform var(--d-press) var(--ease),color var(--d-quick) linear}
.voice-mic:active svg{transform:scale(.92);color:var(--brand-primary)}
voice-note-input:focus-within .voice-mic{color:var(--text)}
.voice-mic:focus-visible{outline:2px solid var(--brand-primary);outline-offset:-2px}
.voice-mic.is-back{animation:voice-fade var(--d-base) var(--ease) both}
voice-note-input[data-size="line"] .field--line{padding-right:56px}

/* One panel over the field from the tap until her words land. Its look follows its own data-mode,
   so a fading ghost of it keeps the look it had.
   Waiting: still the idle field. Recording: a danger ring, a beating dot, live ticks, a filled stop.
   Catching: the ring goes back to --brand-primary, the stop becomes a small spinner. */
voice-note-input:is([data-mode="recording"],[data-mode="requesting"],[data-mode="finishing"]) .field{visibility:hidden}
.voice-rec{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:96px;max-height:168px;overflow:hidden;border-radius:var(--radius-card);background:var(--subtle);pointer-events:auto}
voice-note-input[data-size="line"] .voice-rec{min-height:56px}
.voice-rec:is([data-mode="recording"],[data-mode="finishing"]){min-height:96px;background:var(--surface)}
.voice-rec[data-mode="recording"]{box-shadow:inset 0 0 0 1.5px var(--error)}
.voice-rec[data-mode="finishing"]{box-shadow:inset 0 0 0 1.5px var(--brand-primary)}
/* A ghost: out of flow, inert, frozen. Its height follows the chrome while it fades. */
.voice-rec.voice-ghost{position:absolute;inset:0;min-height:0;max-height:none;pointer-events:none}
/* Stop was tapped and her words are being caught: the panel holds still for a beat (no chrome swap). */
.voice-rec[data-stopping] .voice-stop{pointer-events:none}
.voice-rec[data-stopping] .voice-dot{animation-play-state:paused}
.voice-ghost,.voice-ghost *{animation:none!important}

/* Waiting for the mic: the mic stays where it was and breathes. */
.voice-wait{display:none;position:absolute;right:6px;top:2px;width:44px;height:44px;place-items:center;color:var(--text-muted)}
voice-note-input[data-size="line"] .voice-wait{top:6px}
.voice-wait svg{width:22px;height:22px}
.voice-rec[data-mode="requesting"] .voice-wait{display:grid;animation:voice-breathe 1200ms var(--ease-breath) infinite}
/* The first 250ms after the tap: the real field, placeholder and all, stays showing under a clear panel, so a
   quick mic goes straight from idle to recording without a blank frame. Only the mic breathes. */
voice-note-input[data-grace] .field{visibility:visible}
voice-note-input[data-grace] .voice-rec{background:transparent}
voice-note-input[data-grace] :is(.voice-rec-row,.voice-live){visibility:hidden}

/* Her words, inside the field, on the same lines they land on: same font, same padding as the field. */
.voice-live{display:none;flex:1 1 auto;min-height:0;overflow:hidden;margin:0;padding:12px 56px 0 16px;font:var(--type-body);color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere;-webkit-mask-image:linear-gradient(transparent,var(--black) var(--s-3));mask-image:linear-gradient(transparent,var(--black) var(--s-3))}
voice-note-input[data-size="line"] .voice-live{padding-top:16px}
.voice-rec:is([data-mode="recording"],[data-mode="finishing"]) .voice-live{display:block}
.voice-rec[data-mode="recording"] .voice-live{animation:voice-fade var(--d-quick) var(--ease) both}
.voice-live.is-prompt{color:var(--text-muted)}
/* Waiting for the mic, a text field keeps showing what it showed (placeholder or her text), so the tap never blanks it. */
voice-note-input[data-size="text"] .voice-rec[data-mode="requesting"] .voice-live{display:block;-webkit-mask-image:none;mask-image:none}
.voice-live.is-value{color:var(--ink)}

.voice-rec-row{flex:none;display:flex;align-items:center;gap:var(--s-2);min-height:56px;padding:2px 10px 10px var(--s-4)}
.voice-rec[data-mode="requesting"] .voice-rec-row{padding:var(--s-1) 6px var(--s-1) var(--s-4)}
.voice-dot{display:none;flex:none;width:8px;height:8px;border-radius:50%;background:var(--error);transition:background-color var(--d-quick) linear}
.voice-rec:is([data-mode="recording"],[data-mode="finishing"]) .voice-dot{display:block}
/* Live is a beat in scale at full colour, never a fade to pale. */
.voice-rec[data-mode="recording"] .voice-dot{animation:voice-fade var(--d-base) var(--ease) both,voice-beat 1600ms var(--ease-breath) infinite}
.voice-rec[data-mode="finishing"] .voice-dot{background:var(--text-muted)}
.voice-status{display:block;min-width:0;overflow:hidden;font:var(--type-caption);color:var(--text);white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;animation:voice-fade var(--d-base) var(--ease) both}
.voice-rec[data-mode="requesting"] .voice-status{color:var(--text-muted)}
[data-voice-clock][hidden]{display:none}
[data-voice-timer]{font:inherit;color:inherit;font-variant-numeric:tabular-nums}
.voice-sep{margin-inline:6px;color:var(--text-muted)}

/* 24 ticks in --text-muted, transform only; JS sets the strip's opacity by energy and breathes them low
   while she is quiet, so the mic never looks dead. Fewer on narrow fields, so none is ever cut in half. */
.voice-ticks{display:none;flex:1 1 0;min-width:0;align-items:center;justify-content:flex-end;gap:3px;height:20px;overflow:hidden;opacity:.5}
.voice-rec:is([data-mode="recording"],[data-mode="finishing"]) .voice-ticks{display:flex}
.voice-rec[data-mode="finishing"] .voice-ticks{opacity:0;transition:opacity var(--d-quick) linear}
.voice-ticks i{flex:none;width:2px;height:100%;border-radius:var(--radius-control);background:var(--text-muted);transform:scaleY(.16)}
@container voice (max-width:300px){.voice-ticks i:nth-child(n+17){display:none}}
@container voice (max-width:250px){.voice-ticks i:nth-child(n+11){display:none}}

/* A 44px target drawing a 40px disc, 12px in from the field's stroke on both sides, so it sits in the corner
   instead of wedged against it. */
.voice-stop{all:unset;box-sizing:border-box;position:relative;flex:none;display:none;place-items:center;width:44px;height:44px;margin-left:auto;border-radius:50%;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;animation:voice-pop var(--d-base) var(--spring-soft) both}
.voice-stop::before{content:'';position:absolute;inset:2px;border-radius:50%;background:var(--error)}
.voice-rec[data-mode="recording"] .voice-stop{display:grid}
.voice-stop span{position:relative;display:block;width:14px;height:14px;border-radius:var(--radius-control);background:var(--on-primary);transition:transform var(--d-press) var(--ease)}
.voice-stop:active span{transform:scale(.86)}
.voice-stop:focus-visible{outline:2px solid var(--brand-primary);outline-offset:0}
.voice-spin{display:none;flex:none;width:44px;height:44px;margin-left:auto;place-items:center}
.voice-spin::before{content:'';box-sizing:border-box;width:16px;height:16px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--text-muted);animation:voice-spin 900ms linear infinite}
.voice-rec[data-mode="finishing"] .voice-spin{display:grid;animation:voice-fade var(--d-quick) linear both}

/* After recording: one soft wash on the field where the words just landed. */
voice-note-input[data-landed] .field{animation:voice-land 900ms var(--ease)}

/* Under the field: permission, Cancel, Undo, errors, the limit. A quiet link's text sits about 12px
   under the field and starts on the gutter; a line of text gets its own 8px. */
.voice-below{grid-area:2/1;display:grid;justify-items:start;gap:var(--s-1);margin-top:0}
.voice-below[hidden]{display:none}
.voice-below>.quiet{justify-content:flex-start;padding-inline:0}
.voice-line{margin:0;padding-top:var(--s-2);font:var(--type-caption);color:var(--text-muted);text-wrap:pretty}
.voice-error{display:flex;align-items:flex-start;gap:6px;color:var(--text)}
.voice-error svg{flex:none;width:16px;height:16px;margin-top:1px;color:var(--error)}
.voice-error-lead{color:var(--error)}
.voice-limit{justify-self:end;text-align:right;color:var(--error)}
.voice-below>:is(.voice-permission,.voice-error,.voice-cancel,.voice-retry,.voice-undo,.voice-info){animation:voice-fade var(--d-base) var(--ease) both}
.voice-undo{transition:opacity var(--d-quick) var(--ease-exit)}
.voice-undo[data-leaving]{opacity:0}

/* While a mic is open: the page primary goes grey in one 160ms step, and example offers step back
   (their space kept, so nothing moves). They return with the 160ms fade their screens give them. */
html[data-recording] :is(.dock,.sheet-foot) .primary{transition-duration:var(--d-quick)}
html[data-recording] :is(.write-help .quiet,.guide-quiet,.quiet[data-action="example"]){opacity:0;visibility:hidden;transition:opacity var(--d-press) linear,visibility 0s var(--d-press)}

@keyframes voice-fade{from{opacity:0}}
@keyframes voice-pop{from{transform:scale(.6);opacity:0}}
@keyframes voice-beat{50%{transform:scale(1.25)}}
@keyframes voice-breathe{50%{opacity:.4}}
@keyframes voice-spin{to{transform:rotate(1turn)}}
@keyframes voice-land{from{background-color:var(--selection)}}

@media (prefers-reduced-motion:reduce){
  .voice-live,.voice-dot,.voice-status,.voice-stop,.voice-mic.is-back,.voice-below>*,voice-note-input[data-landed] .field{animation:none}
  .voice-rec[data-mode] :is(.voice-dot,.voice-live,.voice-wait,.voice-stop,.voice-spin){animation:none}
  .voice-rec[data-mode="requesting"] .voice-wait{opacity:.6}
  .voice-ticks{opacity:.5}
}
}

@layer screens {
  .live-signin{display:grid;gap:18px;padding:28px;max-width:480px;margin:auto}
  .live-signin label{display:grid;gap:8px;min-height:0}
  .live-signin input.field{display:block;box-sizing:border-box;width:100%;min-height:52px;height:52px;padding:12px 16px;font-size:var(--text-md);line-height:1.4;flex:none}
  .live-signin{max-height:85dvh;overflow-y:auto}
  .live-signin-code{letter-spacing:.3em;text-align:center;font-variant-numeric:tabular-nums}
  .live-signin-more{display:flex;justify-content:space-between;gap:var(--s-3)}
  .cs-duplex .cs-line{opacity:1;max-height:34vh;overflow:auto}
  .cs-duplex .cs-closepanel{display:grid;gap:8px}
  /* Processing changes the presence, never the microphone controls. Reserve the
     status height so beginning and ending a thought cannot nudge the dock. */
  .cs-duplex .cs-status{min-height:34px;padding:4px 14px;line-height:26px;border-radius:var(--radius-panel);transition:background-color .25s,color .25s}
  .cs-duplex.is-thinking .cs-status,.live-thinking{color:var(--ink);font:var(--type-heading);text-align:center}
  .cs-duplex.is-thinking .cs-status{background:var(--glass);box-shadow:inset 0 0 0 1px var(--glass-line)}
  .cs-duplex.is-thinking .cs-status::before,.live-thinking::before{content:'';display:inline-block;width:8px;height:8px;margin-right:9px;border-radius:50%;background:var(--brand-primary);vertical-align:2px}
  .cs-duplex .cs-orb-float::after{content:'';position:absolute;inset:6%;border:2px solid transparent;border-top-color:rgb(var(--root-rgb) / .7);border-right-color:rgb(var(--pulse-rgb) / .3);border-radius:50%;opacity:0;pointer-events:none;transition:opacity .35s ease}
  .cs-duplex.is-thinking .cs-orb-float::after{opacity:1}
  @media(prefers-reduced-motion:no-preference){
    .cs-duplex.is-thinking .cs-core{animation:live-thinking-orbit 7s linear infinite}
    .cs-duplex.is-thinking .cs-orb-float::after{animation:live-thinking-orbit 3.4s linear infinite}
    .cs-duplex.is-thinking .cs-status::before,.live-thinking::before{animation:live-thinking-pulse 1.8s ease-in-out infinite}
  }
  .cs-duplex.is-paused .cs-orb-float::after,.cs-duplex.is-ended .cs-orb-float::after{opacity:0}
  .cs-duplex.is-paused .cs-core,.cs-duplex.is-ended .cs-core,.cs-duplex.is-hidden .cs-core,.cs-duplex.is-hidden .cs-orb-float::after,.cs-duplex.is-hidden .cs-status::before,html.motion-paused .cs-duplex .cs-core,html.motion-paused .cs-duplex .cs-orb-float::after,html.motion-paused .cs-duplex .cs-status::before{animation-play-state:paused}
  /* The living shape thinks in her own way: no ring round her, and her empty core is not turned. */
  .cs-living.cs-duplex .cs-orb-float::after{display:none}
  .cs-living.cs-duplex.is-thinking .cs-core{animation:none}
  @keyframes live-thinking-orbit{to{transform:rotate(360deg)}}
  @keyframes live-thinking-pulse{50%{opacity:.4;transform:scale(.8)}}
  .cs-duplex .cs-chapter-words{font-size:clamp(var(--text-lg),5.6vw,var(--text-xl));line-height:1.4;text-wrap:pretty;max-width:none}
  .cs-duplex.cs-review-scroll .cs-title-layer{top:var(--review-top);bottom:var(--review-bottom);overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;display:flex;flex-direction:column;gap:24px;padding:16px var(--page-r) 20px var(--page-l);scrollbar-width:thin;mask-image:linear-gradient(to bottom,transparent,var(--black) 12px,var(--black) calc(100% - 12px),transparent)}
  .cs-duplex.cs-review-scroll .cs-chapter{position:relative;inset:auto;flex:none;width:100%;transform:none!important;align-items:flex-start;text-align:left;gap:7px}
  .cs-duplex.cs-review-scroll .cs-chapter+.cs-chapter{padding-top:20px;border-top:1px solid color-mix(in srgb,var(--ink) 12%,transparent)}
  .cs-duplex.cs-review-scroll .cs-chapter-label{font:var(--type-label);letter-spacing:.045em;text-transform:uppercase;color:color-mix(in srgb,var(--ink) 70%,transparent)}
  @media(max-height:700px){
    .cs-duplex.cs-review-scroll .cs-title-layer{gap:18px}
    .cs-duplex.cs-review-scroll .cs-chapter+.cs-chapter{padding-top:14px}
  }
  .live-review-actions{display:flex;align-items:center;justify-content:center;gap:20px}
  .live-picture-wait{display:grid;place-items:center;align-content:center;min-height:220px;padding:30px;text-align:center;background:linear-gradient(145deg,rgb(var(--root-rgb) / .14),rgb(var(--ember-rgb) / .14));border-radius:var(--radius-panel);gap:20px}
  .live-picture-wait .support{max-width:30ch}
  .live-picture-presence{position:relative;display:block;width:24px;height:24px;margin:12px;border-radius:50%;background:radial-gradient(circle at 35% 28%,var(--surface) 0%,var(--root-tint) 30%,var(--root) 63%,var(--depth-light) 100%);box-shadow:0 0 16px 4px rgb(var(--root-rgb) / 0.2);pointer-events:none}
  .live-picture-presence::before{content:'';position:absolute;inset:-17px;border-radius:50%;background:radial-gradient(circle,rgb(var(--root-rgb) / 0.28),rgb(var(--depth-rgb) / 0.12) 46%,transparent 72%)}
  @media(prefers-reduced-motion:no-preference){
    .live-picture-presence{animation:live-picture-drift 3.6s ease-in-out infinite}
    .live-picture-presence::before{animation:live-thinking-pulse 2.8s ease-in-out infinite}
  }
  html.motion-paused .live-picture-presence,html.motion-paused .live-picture-presence::before{animation-play-state:paused}
  @keyframes live-picture-drift{0%,100%{transform:translate(-3px,3px)}50%{transform:translate(3px,-3px)}}
  /* ---- The first call's recap is the Glimpse (call-glimpse.js, mountCallGlimpse): the title, the line under it, the
     cards that follow Noor's voice, the dots, and at the foot the stage's own close panel
     with Build my Living Vision and Do it again (or what the recap's state says instead). The stage's list of chapters,
     its thank-you line and its light-orb stand aside (the chapters stay, out of sight, for the handoff). ---- */
  .cs-glimpse-on .cs-title-layer,.cs-glimpse-on .cs-closeline{display:none}
  /* The recap owns its header and controls, including for keyboard and screen-reader navigation. */
  .cs-glimpse-on .cs-head,.cs-glimpse-on .cs-middle,.cs-glimpse-on .cs-dock,.cs-glimpse-on .cs-sr{display:none}
  /* The stage closes on bands of the chapters' light across its lower half. The Glimpse frame is white, with only
     the room's light faint at the top right (call-aura.js, recap), so the bands stand aside too. */
  .cs-glimpse-on .cs-band{visibility:hidden}
  .cs-glimpse-on:not(.is-glimpse-leaving) .cs-orb{visibility:hidden}
  .cs-glimpse{--glimpse-foot:160px;--glimpse-room:calc(var(--glimpse-foot) + 250px + var(--safe-top) + var(--safe-bottom));position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:stretch;padding:calc(var(--safe-top) + var(--s-7)) 0 calc(var(--glimpse-foot) + max(16px,var(--safe-bottom)));text-align:center;container-type:inline-size;pointer-events:auto;transition:opacity var(--d-quick) var(--ease-exit)}
  .cs-glimpse .glimpse-head{position:relative;padding:0 var(--page-r) 0 var(--page-l)}
  .cs-glimpse .glimpse-row{margin-top:var(--s-7)}
  /* (.cs p and .cs h2 set margin 0 and weight 400 for the stage: these are stated for the Glimpse inside it.) */
  .cs-glimpse .glimpse-title{font:var(--type-title);letter-spacing:var(--track-title)}
  .cs-glimpse .glimpse-lead{margin:var(--s-3) auto 0}
  .cs-glimpse .glimpse-card-title{font:var(--type-heading)}
  .cs-glimpse-on .glimpse-listening{font:var(--type-support);color:var(--text-muted);text-wrap:balance}
  .cs-glimpse-on .glimpse-action-space{min-height:var(--primary-h)}
  .glimpse-end{all:unset;position:absolute;top:calc(-1 * var(--s-5));right:calc(var(--page-r) - 10px);display:grid;place-items:center;width:var(--target);height:var(--target);border-radius:var(--radius-pill);color:var(--text-muted);cursor:pointer}
  .glimpse-end svg{width:20px;height:20px}
  .glimpse-end:focus-visible{outline:2px solid var(--brand-primary);outline-offset:-2px}
  /* The microphone is held during narration, then returns to the person's mute preference. */
  .glimpse-mute{all:unset;position:absolute;top:calc(-1 * var(--s-5));left:calc(var(--page-l) - 10px);display:grid;place-items:center;width:var(--target);height:var(--target);border-radius:var(--radius-pill);color:var(--text-muted);opacity:.55;cursor:pointer;transition:opacity var(--d-quick) var(--ease),color var(--d-quick) var(--ease)}
  .glimpse-mute svg{width:20px;height:20px}
  .glimpse-mute[aria-pressed="true"]{color:var(--ink);opacity:1}
  .glimpse-mute:disabled{opacity:.4;cursor:default}
  .glimpse-mute:focus-visible{outline:2px solid var(--brand-primary);outline-offset:-2px}
  /* Update leaves with the question: paused, reconnecting, wrapping up or done, there is nothing to correct yet. */
  .cs-glimpse.is-fixed .glimpse-update{visibility:hidden}
  .cs-glimpse.is-leaving{opacity:0;pointer-events:none;animation:glimpse-out var(--d-quick) var(--ease-exit) both}
  /* Keep the entire recap over the already-mounted Vision screen while it fades.
     Unlike is-handoff, this preserves its UI and never paints a white cover. */
  .cs.is-glimpse-handoff{position:absolute;inset:0;z-index:5;pointer-events:none;background:var(--surface)}
  @keyframes glimpse-out{from{opacity:1}to{opacity:0}}
  @media(prefers-reduced-motion:no-preference){
    .cs-glimpse{animation:glimpse-in var(--d-moment) var(--ease) both}
    .cs-glimpse .glimpse-row{animation:glimpse-row-in var(--d-moment) var(--ease) 120ms both}
  }
  @keyframes glimpse-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
  @keyframes glimpse-row-in{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
  /* Its foot: the buttons, as the design draws them, over a soft white so the correction box can rise over the cards,
     and above the keyboard while she types. */
  .cs-glimpse-on .cs-closepanel{z-index:3;gap:var(--s-3);bottom:calc(max(16px,var(--safe-bottom)) + var(--kb))}
  .cs-glimpse-on .cs-closepanel:has(textarea){left:0;right:0;padding:var(--s-6) var(--page-r) 0 var(--page-l);background:linear-gradient(to bottom,rgb(var(--surface-rgb) / 0),var(--surface) var(--s-6))}
  .cs-glimpse-on .cs-closepanel textarea{text-align:start;padding:var(--s-3) var(--s-4)}
  .cs-glimpse-on .cs-closepanel .live-thinking{font:var(--type-support);color:var(--text)}
  .cs-glimpse-on .cs-closepanel textarea{min-height:88px}
  @media(max-height:700px){
    .cs-glimpse{--glimpse-foot:140px;padding-top:calc(var(--safe-top) + var(--s-5))}
    .cs-glimpse .glimpse-row{margin-top:var(--s-5)}
    .cs-glimpse .glimpse-dots{margin-top:var(--s-4)}
  }
}

@layer screens {
  .welcome-version{display:block;grid-column:1/-1;text-align:center;font-size:var(--text-xs);line-height:1.3;letter-spacing:.06em;opacity:.5;margin-top:5px}
  dialog.intro-video{position:fixed;inset:0;margin:0;padding:0;width:100%;max-width:100%;height:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;background:var(--surface);color:var(--ink);overflow:hidden}
  .intro-video::backdrop{background:transparent}
  .intro-video-stage{width:100%;height:100%;position:relative;isolation:isolate}
  /* Keep the film inside the viewport; its intrinsic height must not size a grid track. */
  .intro-video video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center;pointer-events:none}
  .intro-video video::-webkit-media-controls,.intro-video video::-webkit-media-controls-start-playback-button{display:none!important}
  .intro-video-skip{position:absolute;top:max(16px,calc(env(safe-area-inset-top) + 8px));right:max(16px,calc(env(safe-area-inset-right) + 8px));display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgb(var(--white-rgb) / 0.502);border-radius:50%;background:rgb(var(--white-rgb) / 0.188);color:rgb(var(--still-rgb) / 0.78);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);cursor:pointer;z-index:2;transition:background 160ms ease,color 160ms ease}
  .intro-video-skip svg{width:18px;height:18px}
  .intro-video-skip:hover,.intro-video-skip:focus-visible{background:rgb(var(--white-rgb) / 0.502);color:var(--ink)}
  .intro-video-skip:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
  .intro-video-skip:active{background:rgb(var(--white-rgb) / 0.702)}
  @media (prefers-reduced-motion:reduce){.intro-video-skip{transition:none}}
  .intro-video.is-leaving .intro-video-skip{visibility:hidden}
  .intro-video-recovery{position:absolute;inset:30% 20px auto;display:grid;justify-items:center;gap:16px;padding:24px;background:rgb(var(--white-rgb) / 0.93);border-radius:var(--radius-card);text-align:center}
  .intro-video-recovery[hidden]{display:none}
}

/* Onboarding: Welcome through the photo step. The same tokens as every other screen; what is its own is
   the layout of its pages: hairline answer rows with a colour icon, the shelf of book covers and the photo step.
   (The checkpoint, what matters and the page with Begin are styles/screens/awaken.css.) Colour comes only from the icons, the covers and the aura.
   Rules inside a page use the page body's class (.question-body …), so the inert copies presence-motion.js leaves
   beside the screen during a transition match too. Last layer, so these win over the older screen files. */
@layer skin {

/* ---- Shared by these pages ---- */
/* One journey: every step from the name to what matters has the same bar (ui-kit.js, journeyBar) and opens
   with a small capital line that says which part this is, so each title sits at the same height as the last. */
.journey-chapter,.question-body .question-chapter{font:var(--type-eyebrow);letter-spacing:var(--track-eyebrow);text-transform:uppercase;color:var(--text-muted);margin:6px 0 16px}
@media (max-height:700px){.name-body .journey-chapter{display:none}}
.moment-title{letter-spacing:var(--track-title)}
/* The design's buttons carry no arrow: the onward arrow stays in the markup and is not drawn. */
.primary--onward svg{display:none}
.primary--onward:active:not(:disabled) svg{transform:translateX(3px)}
.primary--onward:disabled svg{opacity:.6}
/* The final answer's two-second handoff uses the disabled button's gray treatment. */
.screen--question .primary.question-finishing:disabled{opacity:1;background:var(--selection);color:var(--text-muted)}
.question-finish-spinner{display:inline-block;flex:none;width:18px;height:18px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:question-finish-spin .7s linear infinite}
@keyframes question-finish-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.question-finish-spinner{animation:none}}
.option-lead{flex:none;display:grid;place-items:center;width:34px;height:34px;transition:transform 120ms var(--ease)}
.option-art{display:block;width:34px;height:34px;max-width:none;-webkit-user-drag:none;user-select:none;-webkit-touch-callout:none;pointer-events:none}
/* The sound toggle is a full 44px target; the negative margins keep the bar's layout exactly as it was. */
.onboarding-sound{width:44px;margin-inline:-2px}

/* ---- Questions: title, one helper line, then rows: icon, label, indicator, hairline ---- */
.question-body .question-title{min-height:calc(2 * 33px);max-width:none}
.question-body .helper{font:var(--type-support);color:var(--text-muted)}
.question-body .helper--limit{color:var(--ink)}
.question-body .options{gap:0;margin-top:14px;box-shadow:inset 0 1px 0 var(--line)}
.question-body .option{display:flex;align-items:center;gap:14px;min-height:62px;padding:12px 38px 12px 0;border-radius:0;background:none;box-shadow:inset 0 -1px 0 var(--line);color:var(--ink);font:var(--type-body);transition:none}
.question-body .option::after{display:none}
.question-body .option:active{transform:none}
.question-body .option[aria-checked=true]{background:none}
.question-body .option-label{flex:1;min-width:0}
.question-body .option[aria-checked=true] .option-label{font-weight:600}
.question-body .option:active .option-lead{transform:scale(.9)}
/* The indicator: a square for "choose up to two", a circle for "choose one"; both fill with violet when picked. */
.question-body .option-ring{right:0;width:22px;height:22px;margin-top:-11px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--text-muted)}
.question-body .option[role=checkbox] .option-ring{border-radius:var(--radius-control)}
.question-body .option[aria-checked=true] .option-ring{background:var(--brand-primary);box-shadow:none;color:var(--on-primary)}
.question-body .option-ring svg{width:15px;height:15px;stroke-width:2.6}
/* The touch light from the finger, in the aura's teal. */
.question-body .option::before{background:radial-gradient(circle farthest-corner at var(--touch-x,50%) var(--touch-y,50%),rgb(var(--root-rgb) / .9),rgb(var(--root-rgb) / 0) 70%)}
/* A statement to react to: the ask in a quiet line, then the statement itself, large, in quotes. One heading. */
.question-body .question-title--statement{min-height:0}
.question-body .question-prompt{display:block;margin-bottom:8px;font:var(--type-button);letter-spacing:0;color:var(--ink)}
.question-body .question-statement{display:block;text-wrap:balance}
@media (max-height:779px){.question-body .option{min-height:56px;padding-block:10px}}
/* Short phones (SE-sized): all seven choices still fit without scrolling. The chapter line goes (the bar already
   says where she is), rows and icons tighten a little. */
@media (max-height:700px){
  .question-body{padding-bottom:var(--s-3)}
  .question-body .question-chapter{display:none}
  .question-body .options{margin-top:10px}
  .question-body .option{min-height:50px;padding-block:8px}
  .question-body :is(.option-lead,.option-art){width:30px;height:30px}
}
@media (max-width:359px){.question-body .option{gap:12px}.question-body :is(.option-lead,.option-art){width:30px;height:30px}}
/* Smaller phones still (320x568: the first SE, or a later SE with Display Zoom): rows, icons and the title take one
   more step down, rows staying at least 44px tall. */
@media (max-height:600px){
  .question-body{padding-top:4px}
  .question-body .question-title{font-size:var(--text-2xl);line-height:30px;min-height:calc(2 * 30px)}
  .question-body .helper{margin-top:4px}
  .question-body .options{margin-top:6px}
  .question-body .option{min-height:46px;padding-block:6px}
  .question-body :is(.option-lead,.option-art){width:26px;height:26px}
}
/* Seven rows still cannot all sit above the dock at 320x568 (the reply, title and helper leave too little room for
   even 40px rows), and on a shorter screen, such as Safari with its bars on an SE, any question can run under it.
   While part of the page is hidden below, a quiet chevron over the dock says so; it fades once she has scrolled to
   the end. app.js measures that (data-more-below on #app) instead of a scroll timeline, so the cue also shows in
   Safari before 26, which has none: the first SE, the phone this size stands for, stops at iOS 15. */
.screen--question>.dock::after{content:'';position:absolute;left:50%;bottom:100%;width:32px;height:22px;margin-left:-16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6672' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/20px no-repeat;opacity:0;pointer-events:none;transition:opacity 160ms linear}
#app[data-more-below]>.screen--question>.dock::after{opacity:1}

/* ---- Name ---- */
.name-body .chip{background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);color:var(--ink);font:var(--type-button)}
.name-body .chip[aria-pressed=true]{background:var(--brand-primary);box-shadow:none;color:var(--on-primary)}
.name-body .profile-photo-avatar{background:var(--subtle);color:var(--text-muted)}
.name-body .profile-photo-trigger{color:var(--text)}

/* ---- Welcome ---- */
.welcome-body .welcome-eyebrow{display:block;margin:0 0 10px;font:var(--type-eyebrow);letter-spacing:var(--track-eyebrow);text-transform:uppercase;color:var(--text-muted)}
.welcome-body .title--display{--track-title:-.028em}
/* The promise: the claim, then the idea under it, and the painting takes the rest of the page. "superconscious" is one
   long word, so the claim scales with the screen width: 42px on a 375px phone, never wider than the column. */
.welcome-body--promise .welcome-lead{margin-top:var(--s-3);max-width:32ch}
.welcome-body .welcome-promise{font-size:var(--text-hero);line-height:1.06;hyphens:manual}
.welcome-body .welcome-lead{color:var(--text)}
/* The demo stamp stays small and quiet, but readable: the quiet grey at full strength is 5.1:1 (half-strength ink was 3.5:1). */
.screen--welcome .welcome-version{opacity:1;color:var(--text-muted)}



/* ---- Your portrait: one optional photo before the call. A round frame that is also the button ---- */
.photo-body{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:var(--s-5)}
.photo-step-frame{all:unset;box-sizing:border-box;position:relative;display:grid;place-items:center;flex:none;width:168px;height:168px;border-radius:50%;background:var(--subtle);color:var(--text-muted);cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;transition:transform 140ms var(--ease)}
.photo-step-frame:not(.has-photo)::before{content:'';position:absolute;inset:6px;border-radius:50%;border:1.5px dashed color-mix(in srgb,var(--text-muted) 55%,transparent);pointer-events:none}
.photo-step-frame:active{transform:scale(.97)}
.photo-step-frame:focus-visible{outline:2px solid var(--brand-primary);outline-offset:4px}
.photo-step-person{width:92px;height:92px}
/* The photo fills the circle whatever its shape: phone photos are portrait, and in the grid's auto row a tall image
   grew the row and spilled over the title. Taken out of the flow, it is the frame's size; cropped a little high,
   where a face usually is. (No overflow:hidden on the frame: it would clip the badge at its edge.) */
.photo-step-frame img{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:50% 35%}
/* A small violet badge: + until there is a photo, then a tick. */
.photo-step-frame::after{content:'';position:absolute;right:8px;bottom:8px;width:36px;height:36px;border-radius:50%;background:var(--brand-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/18px no-repeat;box-shadow:0 0 0 4px var(--surface)}
.photo-step-frame.has-photo::after{display:none}
.photo-step-tick{position:absolute;right:8px;bottom:8px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--brand-primary);color:var(--on-primary);box-shadow:0 0 0 4px var(--surface)}
.photo-step-tick svg{width:18px;height:18px;stroke-width:2.6}
.photo-body .photo-step-optional{margin:var(--s-6) 0 8px;font:var(--type-eyebrow);letter-spacing:var(--track-eyebrow);text-transform:uppercase;color:var(--text-muted)}
.photo-body .photo-step-title{max-width:11em;margin:0 auto;text-wrap:balance}
.photo-step-frame + .photo-step-title{margin-top:var(--s-5)}
.photo-body .photo-step-lead{max-width:30ch;margin:var(--s-3) auto 0;color:var(--text);text-wrap:pretty}
/* Why the photo is asked, then what happens to it: said in the page, beside the photo, not over the buttons. */
.photo-body .photo-step-privacy{max-width:30ch;margin:var(--s-3) auto 0;text-wrap:balance}
.photo-body .profile-photo-status{margin:var(--s-3) 0 0;min-height:20px}
.photo-body .profile-photo-status:empty{margin-top:0;min-height:0}
@media (prefers-reduced-motion:no-preference){.photo-step-frame.has-photo img{animation:mono-photo-in 380ms var(--ease) both}}
@keyframes mono-photo-in{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
@media (max-height:700px){.photo-body{padding-top:var(--s-4)}.photo-step-frame{width:136px;height:136px}.photo-step-person{width:76px;height:76px}.photo-body .photo-step-optional{margin-top:var(--s-4)}}
/* At 320x568 the privacy line takes two lines: a little less air keeps "Photo added." in view without a scroll. */
@media (max-height:600px){.photo-body{padding-top:var(--s-2)}.photo-step-frame{width:80px;height:80px}.photo-step-person{width:48px;height:48px}.photo-body .photo-step-optional{margin-top:var(--s-2)}.photo-body .photo-step-title{font-size:var(--text-2xl);line-height:30px}.photo-body .photo-step-lead{margin-top:10px;font-size:var(--text-md);line-height:21px}.photo-body .photo-step-privacy{margin-top:var(--s-2)}.photo-body .profile-photo-status{margin-top:var(--s-2)}}

/* ---- Awaken Noor: one introduction and the two connected moments, without explaining the later practice. ---- */
/* Centred while there is room; once there is not, it starts at the top, where centring would push the orb out of reach. */

/* ---- Books: a shelf of the real covers, three across, each book its own shape, all standing on one line. A pick
   lifts the book, rings it in violet and fills its tick; "None of these yet" is the last tile, in words. ---- */
.question-body--covers{display:flex;flex-direction:column;container-type:inline-size}
.question-body--covers>*{flex:none}
.question-body .options--covers{display:grid;flex:1 1 auto;min-height:0;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(72px,1fr));max-height:calc(2 * (100cqw - 24px) + 42px);gap:14px 12px;margin-top:16px;box-shadow:none}
.question-body .option--cover{position:relative;display:flex;align-items:flex-end;justify-content:center;container-type:size;min-height:0;padding:0;border-radius:var(--radius-control);background:none;box-shadow:none;overflow:visible}
/* Four rows share the available height. Each cover fits both the column and its row without stretching or cropping.
   The tick sits on the frame's top corner, so it rides with the book and never covers
   the author's name along the bottom, nor hangs below the last row into the dock's fade. */
.question-body .option--cover .cover-frame{position:relative;display:block;flex:none;width:min(100%,calc(100cqh * var(--cover,.6667)));aspect-ratio:var(--cover,.6667);transition:transform 160ms var(--ease)}
.question-body .option--cover .cover-art{-webkit-touch-callout:none;pointer-events:none;display:block;width:100%;height:100%;object-fit:cover;border-radius:var(--radius-control);box-shadow:0 1px 2px rgb(var(--ink-rgb) / 0.18),0 8px 14px -8px rgb(var(--ink-rgb) / 0.4);transition:box-shadow 160ms var(--ease)}
.question-body .option--cover[aria-checked=true] .cover-frame{transform:translateY(-4px)}
.question-body .option--cover[aria-checked=true] .cover-art{box-shadow:0 0 0 2.5px var(--surface),0 0 0 4.5px var(--brand-primary),0 12px 18px -10px rgb(var(--ink-rgb) / 0.45)}
.question-body .option--cover .option-ring{top:-6px;right:-6px;bottom:auto;margin:0;width:22px;height:22px;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--text-muted),0 0 0 2px var(--surface)}
.question-body .option--cover[aria-checked=true] .option-ring{background:var(--brand-primary);box-shadow:0 0 0 2px var(--surface);color:var(--on-primary)}
.question-body .option--cover-none{align-items:stretch;background:var(--subtle)}
.question-body .cover-none{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;padding:8px 6px;text-align:center;font:var(--type-quiet);color:var(--ink)}
.question-body .cover-none .option-art{width:28px;height:28px}
.question-body .cover-none .option-label{flex:none}
@media (max-width:359px){.question-body .cover-none{font-size:var(--text-xs);line-height:15px}.question-body .cover-none .option-art{width:24px;height:24px}}
.question-body .option--cover-none[aria-checked=true]{background:var(--selection);box-shadow:inset 0 0 0 2px var(--brand-primary)}
@media (max-height:700px){.question-body .options--covers{gap:10px 10px;margin-top:10px}}
@media (prefers-reduced-motion:reduce){.question-body .option--cover :is(.cover-frame,.cover-art){transition:none}}

@media (prefers-reduced-motion:reduce){.option-lead,.primary--onward svg{transition:none}.question-body .option:active .option-lead{transform:none}}

/* Large phones (Pro Max, Plus, XR): the same layout, with text a step larger so it never reads small on a big screen. */
@media (min-width:414px) and (min-height:820px){
  .question-body .question-chapter{font-size:var(--text-sm);line-height:17px}
  .question-body .question-title{font-size:var(--text-3xl);line-height:35px;min-height:calc(2 * 35px)}
  .question-body .question-prompt{font-size:var(--text-md);line-height:22px}
  .question-body .helper{font-size:var(--text-md);line-height:22px}
  .question-body .option{font-size:var(--text-md);line-height:24px}
  .name-body .chip{font-size:var(--text-md);line-height:21px}
  .photo-body .photo-step-lead{font-size:var(--text-lg);line-height:26px}
}
}

@layer skin {
/* A clear invitation, a contained glimpse of the future, and one leading action. */
.screen--welcome-first .welcome-body{padding-top:24px;gap:0}
.screen--welcome-first .welcome-eyebrow{flex:none;margin:0 0 14px;color:var(--text)}
.screen--welcome-first .welcome-promise{flex:none;font-size:var(--text-hero);line-height:1.1;max-width:10.5em;text-wrap:balance}
.screen--welcome-first .welcome-lead{flex:none;margin-top:16px;max-width:32ch;font-size:var(--text-md);line-height:25px;text-wrap:pretty}
.screen--welcome-first .welcome-plate{flex:1 1 180px;min-height:110px;max-height:300px;margin:28px 0 8px;border-radius:var(--radius-panel);-webkit-mask-image:none;mask-image:none}
.screen--welcome-first .welcome-plate img{object-position:center 46%}
.screen--welcome-first .dock{padding-top:12px}
.welcome-next{margin:0 0 14px;text-align:center;font:var(--type-support);font-size:var(--text-sm);color:var(--text)}
.screen--welcome-first .dock .quiet{margin-top:5px}
/* The Figma frame (134:3458): the title 24 semibold, as the questions after it, and the field 16 under it, 48 tall. */
.name-body .title{font:var(--type-voice);letter-spacing:var(--track-title)}
.name-body .name-field{margin-top:var(--s-4);gap:10px}
.name-body .field--name{height:48px}
:is(.screen--name,.screen--gender) .dock .quiet{margin-top:5px}
@media (max-height:700px){
  .screen--welcome-first .welcome-body{padding-top:14px}
  .screen--welcome-first .welcome-plate{margin-top:18px;min-height:85px}
  .screen--welcome-first .welcome-promise{font-size:var(--text-3xl)}
  .screen--welcome-first .welcome-lead{margin-top:12px;font-size:var(--text-md);line-height:23px}
  .screen--welcome-first .welcome-eyebrow{margin-bottom:10px}
  .welcome-next{margin-bottom:10px}
  .name-body .name-field{margin-top:var(--s-3)}
}
@media (max-height:560px){.screen--welcome-first .welcome-plate{display:none}.screen--welcome-first .welcome-body{padding-bottom:16px}}
}

@layer skin {
/* One question at a time: name, then visible, easily tapped gender choices. */
.name-body,.gender-body{padding-top:var(--s-5)}
.gender-choices{margin-top:24px}
.gender-body .chips{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.gender-body .chip{position:relative;width:100%;min-height:52px;padding:12px 48px 12px 16px;border-radius:var(--radius-card);text-align:left;font:var(--type-button);color:var(--ink);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.gender-body .chip::after{content:'';position:absolute;right:16px;top:50%;width:18px;height:18px;border-radius:50%;transform:translateY(-50%);box-shadow:inset 0 0 0 1.5px var(--text-muted)}
.gender-body .chip[aria-pressed=true]{color:var(--ink);background:var(--selection);box-shadow:inset 0 0 0 1.5px var(--brand-primary)}
.gender-body .chip[aria-pressed=true]::after{background:var(--brand-primary);border:4px solid var(--selection);box-shadow:0 0 0 1.5px var(--brand-primary)}
.gender-body .field-group--tight{margin-top:14px}
@media (max-height:600px){.name-body,.gender-body{padding-top:16px}.gender-choices{margin-top:18px}.gender-body .chips{gap:8px}.gender-body .chip{min-height:46px;padding-block:10px}}
}

@layer skin {
/* Cover concept: the image is the atmosphere of the page, not a card within it. */
.screen--promise-cover{isolation:isolate;background:var(--surface)}
.promise-cover{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.promise-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 20%}
.promise-cover::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgb(var(--surface-rgb) / 0.9) 0,rgb(var(--surface-rgb) / 0.2) 13%,transparent 31%,rgb(var(--surface-rgb) / 0.88) 53%,var(--surface) 75%)}
.screen--promise-cover>.bar{background:none}
.screen--promise-cover .promise-body{display:flex;flex-direction:column;justify-content:flex-end;padding-top:24px;padding-bottom:20px}
.screen--promise-cover .promise-title{font:var(--type-hero);letter-spacing:-.035em;text-wrap:initial}
.promise-title>span{display:block}
.promise-title>span:first-child{margin-bottom:7px}
.screen--promise-cover .promise-lead{font:var(--type-body);max-width:28ch;color:var(--text);margin-top:20px;text-wrap:pretty}
.screen--promise-cover>.dock{background:transparent;padding-top:0}
.screen--promise-cover>.dock::before{display:none}
.screen--promise-cover .dock .quiet{margin-top:8px}
@media (max-height:620px){
 .screen--promise-cover .promise-body{padding-bottom:18px}
 .screen--promise-cover .promise-title{font-size:var(--text-3xl)}
 .screen--promise-cover .promise-lead{font-size:var(--text-md);line-height:23px;margin-top:14px}
 .promise-cover::after{background:linear-gradient(180deg,rgb(var(--surface-rgb) / 0.9) 0,rgb(var(--surface-rgb) / 0.1) 16%,transparent 25%,rgb(var(--surface-rgb) / 0.92) 46%,var(--surface) 73%)}
}
@media (prefers-reduced-motion:no-preference){.promise-cover img{animation:promise-light-arrive 1.8s var(--ease) both}}
@keyframes promise-light-arrive{from{opacity:.5;transform:scale(1.025)}to{opacity:1;transform:none}}

/* The first page after the splash (views/entry.js, welcomeView): the mark, one line, the ways to sign in on a
   soft fill, and the guest's way at the foot. */
.screen--login .login-body{display:flex;flex-direction:column;align-items:center;padding-top:calc(var(--safe-top) + clamp(32px,7.4vh,64px))}
.login-mark{display:block;width:72px;height:72px}
.login-title{margin:var(--s-4) 0 0;text-align:center;font:var(--type-voice);letter-spacing:var(--track-voice);color:var(--ink)}
/* Welcome back, with a long name: it wraps rather than running off the page. */
.login-title--back{overflow-wrap:anywhere;text-wrap:balance}
.login-options{display:grid;gap:var(--s-3);width:100%;margin-top:var(--s-7)}
/* Her email on the first page, and the code on the next (views/entry.js). */
.login-form{display:grid;gap:var(--s-2);width:100%;margin-top:var(--s-7)}
.login-label{color:var(--text)}
.login-field{width:100%;min-height:52px;padding:0 var(--s-4)}
.login-field:focus{box-shadow:inset 0 0 0 1.5px var(--brand-primary)}
.login-code{letter-spacing:.3em;text-align:center;font-variant-numeric:tabular-nums}
.login-error{min-height:20px;margin:0;color:var(--error)}
.login-error[role=status]{color:var(--text)}
.login-send,.login-verify{margin-top:var(--s-2)}
.login-more{display:flex;justify-content:space-between;gap:var(--s-3);margin-top:var(--s-2)}
.screen--login-code .login-body{align-items:stretch;padding-top:var(--s-4)}
.screen--login-code .login-title{text-align:left;margin-top:0}
.login-lead{margin:var(--s-2) 0 0;color:var(--text)}
.login-lead strong{color:var(--ink);font-weight:600}
.login-option{gap:8px;min-height:52px;padding:12px 16px;background:var(--subtle);border:0;box-shadow:none;font:var(--type-login-button)}
.login-option svg,.login-option .login-provider-mark{width:24px;height:24px}
.login-option[data-action="login-email"] svg{width:20px;height:20px}
.login-option .login-provider-mark{padding:2px}
.login-option [fill=currentColor]{fill:var(--ink)}
.screen--welcome.screen--login{--page-l:max(16px,var(--safe-left));--page-r:max(16px,var(--safe-right))}
/* Figma 134:4013: logo at 106, title at 198, options at 292 in a 390 x 844 frame.
   Contract the empty space on short screens; the content scrolls rather than shrinking the controls. */
.screen--welcome.screen--login .login-body{padding-top:max(var(--safe-top),clamp(24px,12.56dvh,106px))}
.screen--welcome.screen--login .login-body>*{flex:none}
.screen--welcome.screen--login .login-mark{height:76px;object-fit:contain}
.screen--welcome.screen--login .login-title{font:var(--type-login-title)}
.screen--welcome.screen--login>.dock{padding-bottom:max(var(--safe-bottom),clamp(16px,6.64dvh,56px))}
.login-guest{min-height:52px;padding:12px 16px;font:var(--type-login-button);box-shadow:inset 0 0 0 1px rgb(var(--black-rgb) / .1)}
:root[data-theme="dark"] .login-guest{box-shadow:inset 0 0 0 1px var(--line)}
@media (max-height:520px){
  .screen--welcome.screen--login .login-body{padding-top:max(16px,var(--safe-top))}
  .screen--welcome.screen--login .login-mark{width:56px;height:60px}
  .screen--welcome.screen--login .login-title{margin-top:12px;font:var(--type-login-title-compact)}
  .screen--welcome.screen--login :is(.login-options,.login-form){margin-top:20px}
}

/* The question page as the design draws it (Figma 134:3077, 1 December 2026; views/questions.js, questionLayout): the
   title 24 semibold at the left, one grey helper line, the answers, one black pill. Written after the hairline rows
   above, so these win on a question screen; the book shelf keeps its own layout. */
.question-body .question-chapter{display:none}
.question-body .question-title{min-height:0;font:var(--type-voice);letter-spacing:var(--track-title);text-wrap:pretty}
.question-body .question-title--statement .question-statement{font:var(--type-title);letter-spacing:var(--track-title)}
.question-body .helper{margin-top:var(--s-2);font:var(--type-body);color:var(--text)}
/* The answers' picture: the design's soft pastel ones, their white already made see-through (scripts/illustrations.mjs),
   so the picture stands on the fill, on the picked wash and in dark alike, as the file's multiply does on white. */
.question-body .option-art--soft{object-fit:contain}

/* The cards: two to a row on the soft fill, the picture above, two lines of words under it, centred. Up to four
   answers are the design's 2 x 2 (172 x 240 in 390, picture 134 x 149); five or six are the same card in three rows.
   The row of cards is 16 from the screen's edges as in the file (the page's gutter less 8), fills the room between
   the helper and the button and never grows past the design's card: the page is a column, the cards share its
   height, and the card's own ratio of the column's width (cqw) caps them. fitQuestion tightens them on a short phone. */
.question-body--cards{display:flex;flex-direction:column;container-type:inline-size}
.question-body--cards>*{flex:none}
.question-body .options--cards{--q-rows:2;--q-card-min:150px;--q-card-w:calc((100cqw + 2 * var(--s-2) - var(--q-card-gap)) / 2);display:grid;flex:1 1 auto;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(var(--q-rows),minmax(var(--q-card-min),1fr));gap:var(--q-card-gap);max-height:calc(var(--q-rows) * var(--q-card-w) * var(--q-card-ratio) + (var(--q-rows) - 1) * var(--q-card-gap));margin:var(--s-5) calc(-1 * var(--s-2)) 0;box-shadow:none}
.question-body .options--cards-6{--q-rows:3;--q-card-min:118px;max-height:calc(3 * var(--q-card-w) * 1.04 + 2 * var(--q-card-gap))}
.question-body .options--cards .option{display:flex;flex-direction:column;align-items:center;gap:var(--s-2);min-height:0;padding:17px var(--s-3) var(--s-4);border-radius:var(--radius-control);background:var(--subtle);box-shadow:none;text-align:center;font:var(--type-quiet);color:var(--ink);transition:background-color var(--d-quick) linear}
/* The picture takes the room the words leave, never more: it is laid over its box, so its own size never pushes the
   words down on a short phone. */
.question-body .options--cards .option-lead{position:relative;flex:1 1 0;width:78%;height:auto;min-height:0}
.question-body .options--cards .option-art{position:absolute;inset:0;margin:auto;width:56px;height:56px;max-width:100%;max-height:100%}
.question-body .options--cards .option-art--soft{width:100%;height:100%}
.question-body .options--cards .option-label{flex:none;display:flex;align-items:center;justify-content:center;min-height:40px;text-wrap:balance}
.question-body .options--cards .option[aria-checked=true]{background:var(--q-card-picked)}
.question-body .options--cards .option[aria-checked=true] .option-label{font-weight:500}
.question-body .options--cards .option-ring{top:var(--s-2);right:var(--s-2);margin-top:0;width:20px;height:20px;opacity:0;transform:scale(.6);transition:opacity var(--d-quick) linear,transform var(--d-base) var(--spring-soft)}
.question-body .options--cards .option[aria-checked=true] .option-ring{opacity:1;transform:none}

/* One answer per row, with room around the illustration and label. Short phones tighten these in fitQuestion. */
.question-body .options--rows{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s-3);margin-top:var(--s-5);box-shadow:none}
.question-body .options--rows .option{display:flex;align-items:center;gap:var(--s-4);min-height:72px;padding:var(--s-3) 48px var(--s-3) var(--s-4);border-radius:var(--radius-control);background:var(--subtle);box-shadow:none;font:var(--type-body);text-align:left}
.question-body .options--rows .option-lead,.question-body .options--rows .option-art{width:40px;height:40px}
.question-body .options--rows .option-lead:has(.option-art--soft),.question-body .options--rows .option-art--soft{width:48px;height:48px}
.question-body .options--rows .option[aria-checked=true]{background:var(--q-card-picked)}
.question-body .options--rows .option[aria-checked=true] .option-label{font-weight:500}
.question-body .options--rows .option-ring{right:var(--s-3);width:20px;height:20px;margin-top:-10px}
.question-body .question-title--long{font:var(--type-voice);letter-spacing:var(--track-title)}
/* Many short answers: compact tiles, two to a row, the picture small at the start. */
.question-body .options--tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s-2);margin-top:var(--s-5);box-shadow:none}
.question-body .options--tiles .option{display:flex;align-items:center;gap:var(--s-2);min-height:60px;padding:var(--s-2) 30px var(--s-2) var(--s-3);border-radius:var(--radius-control);background:var(--subtle);box-shadow:none;font:var(--type-support);text-align:left}
.question-body .options--tiles .option-lead,.question-body .options--tiles .option-art{width:28px;height:28px}
.question-body .options--tiles .option-lead:has(.option-art--soft),.question-body .options--tiles .option-art--soft{width:34px;height:38px}
.question-body .options--tiles .option[aria-checked=true]{background:var(--q-card-picked)}
.question-body .options--tiles .option[aria-checked=true] .option-label{font-weight:500}
.question-body .options--tiles .option-ring{right:8px;width:18px;height:18px;margin-top:-9px}

/* Fitting a short phone (views/questions.js, fitQuestion): each level a little tighter than the last. */
.question-body[data-fit]{padding-bottom:var(--s-3)}
.question-body[data-fit] :is(.options--cards,.options--rows,.options--tiles){margin-top:var(--s-4)}
/* The cards fill the column down to the dock, so they keep clear of its 24px fade at every size. */
.question-body.question-body--cards{padding-bottom:var(--s-6)}
.question-body[data-fit] .options--cards{--q-card-gap:10px;--q-card-min:104px}
.question-body[data-fit] .options--cards-6{--q-card-min:92px}
.question-body[data-fit] .options--cards .option{padding-top:var(--s-3);padding-bottom:var(--s-3)}
.question-body[data-fit] .options--rows{gap:var(--s-2)}
.question-body[data-fit] .options--rows .option{min-height:60px;padding-block:var(--s-2)}
.question-body[data-fit] :is(.options--rows .option-lead,.options--rows .option-art){width:38px;height:42px}
.question-body[data-fit] .options--tiles .option{min-height:48px;font-size:var(--text-sm);line-height:18px}
.question-body:is([data-fit="2"],[data-fit="3"],[data-fit="4"]) .question-title{font:var(--type-heading);letter-spacing:var(--track-title)}
.question-body:is([data-fit="2"],[data-fit="3"],[data-fit="4"]) .question-title--statement .question-statement{font:var(--type-voice)}
.question-body:is([data-fit="2"],[data-fit="3"],[data-fit="4"]) .helper{font:var(--type-support)}
.question-body[data-fit="2"] .options--cards{--q-card-min:92px}
.question-body[data-fit="2"] .options--cards-6{--q-card-min:80px}
.question-body[data-fit="2"] .options--cards .option-label{min-height:36px}
.question-body[data-fit="2"] .options--rows .option{min-height:44px;padding-block:6px;font-size:var(--text-sm);line-height:19px}
.question-body[data-fit="2"] :is(.options--rows .option-lead,.options--rows .option-art){width:26px;height:26px}
.question-body:is([data-fit="3"],[data-fit="4"]) :is(.options--cards,.options--rows,.options--tiles){--q-card-gap:6px;gap:6px;margin-top:var(--s-3)}
.question-body[data-fit="3"] .options--cards{--q-card-min:72px}
.question-body[data-fit="3"] .options--cards .option{gap:var(--s-1);padding:var(--s-2)}
.question-body[data-fit="3"] .options--cards .option-label{min-height:32px;font:var(--type-label)}
.question-body[data-fit="3"] .options--rows .option{min-height:40px;padding-block:4px;font-size:var(--text-sm);line-height:18px}
.question-body[data-fit="3"] :is(.options--rows .option-lead,.options--rows .option-art){width:22px;height:22px}
/* The tightest: the cards become compact tiles, the picture small at the start, the words beside it. */
.question-body[data-fit="4"] .options--cards{grid-template-rows:none;grid-auto-rows:auto;max-height:none;flex:none}
.question-body[data-fit="4"] .options--cards .option{flex-direction:row;justify-content:flex-start;min-height:52px;padding:6px 28px 6px var(--s-2);gap:var(--s-2);text-align:left;font:var(--type-label)}
.question-body[data-fit="4"] .options--cards .option-lead{flex:none;width:32px;height:36px}
.question-body[data-fit="4"] .options--cards .option-art{width:28px;height:28px}
.question-body[data-fit="4"] .options--cards .option-art--soft{width:32px;height:36px}
.question-body[data-fit="4"] .options--cards .option-label{min-height:0;justify-content:flex-start}
.question-body[data-fit="4"] .options--cards .option-ring{top:50%;right:6px;margin-top:-10px}
.question-body:is([data-fit="2"],[data-fit="3"],[data-fit="4"]) .options--tiles .option{min-height:48px;font-size:var(--text-sm);line-height:18px}
/* The tightest: long answers too go two to a row, in words alone. */
.question-body[data-fit="4"] .options--rows{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:var(--s-3)}
.question-body[data-fit="4"] .options--rows .option{align-items:flex-start;min-height:0;padding:var(--s-2) 26px var(--s-2) var(--s-2);font-size:var(--text-sm);line-height:17px}
.question-body[data-fit="4"] .options--rows .option-lead{display:none}
.question-body[data-fit="4"] .options--rows .option-ring{top:8px;right:6px;margin-top:0;width:18px;height:18px}

/* The design's photo page (views/onboarding-moments.js): the line at the top, then a large soft circle with a small
   white one and a thin plus in it; Upload Photo, and Continue without Photo as the second button. */
.photo-body .photo-step-title{max-width:12em;font:var(--type-voice);letter-spacing:var(--track-title)}
.photo-body .photo-step-lead{font:var(--type-body);color:var(--text)}
.photo-body .photo-step-frame{width:clamp(180px,58vw,232px);height:clamp(180px,58vw,232px);margin-top:clamp(24px,4.6vh,48px);background:var(--subtle);box-shadow:none}
.photo-body .photo-step-frame:not(.has-photo)::before,.photo-body .photo-step-frame:not(.has-photo)::after{display:none}
.photo-step-plus{display:grid;place-items:center;width:36%;aspect-ratio:1;border-radius:50%;background:var(--surface);color:var(--text-muted)}
.photo-step-plus svg{width:42%;height:42%}
.photo-body .photo-step-frame + .photo-step-optional{margin-top:var(--s-4)}
.screen--photo .dock{display:grid;gap:var(--s-3)}
@media (max-height:700px){.photo-body .photo-step-frame{width:160px;height:160px;margin-top:var(--s-5)}}
/* The camera in the frame (selfie-camera.js; views/onboarding-moments.js). The frame keeps its size and its place:
   only what is in it changes. Her picture fills the circle as the photo it becomes will (the middle square), as a
   mirror where the camera faces her, and comes in softly once it is moving; until then a thin line turns on the rim.
   Taking the picture is a short light over the frame, which then holds still on what was taken. The camera is not a
   button: the frame's press and pointer are off while it is on. */
.photo-body .photo-step-frame.is-camera{cursor:default}
.photo-body .photo-step-frame.is-camera:active{transform:none}
.photo-step-camera{position:absolute;inset:0;border-radius:50%;overflow:hidden;isolation:isolate;-webkit-clip-path:circle(50%);clip-path:circle(50%);background:var(--subtle)}
.photo-step-video{display:block;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;transition:opacity 280ms linear}
.photo-step-video[data-mirrored="true"]{transform:scaleX(-1)}
.photo-step-frame:is([data-camera="live"],[data-camera="capturing"]) .photo-step-video{opacity:1}
.photo-step-camera::after{content:'';position:absolute;inset:0;background:var(--white);opacity:0;pointer-events:none}
.photo-step-frame[data-camera="capturing"] .photo-step-camera::after{animation:photo-step-flash 260ms linear both}
@keyframes photo-step-flash{from{opacity:.85}to{opacity:0}}
.photo-step-wait{position:absolute;inset:0;border-radius:50%;border:2px solid transparent;border-top-color:var(--text-muted);opacity:0;pointer-events:none}
.photo-step-frame[data-camera="starting"] .photo-step-wait{opacity:.7;animation:photo-step-turn 900ms linear infinite}
@keyframes photo-step-turn{to{transform:rotate(360deg)}}
/* "Photo added" keeps its room under the frame and is not said over a camera. */
.photo-body .photo-step-frame.is-camera + .photo-step-optional{visibility:hidden}
/* A photo taken here stands in the frame at once: it is the picture she was just looking at. */
.photo-body .photo-step-frame.is-shot img{animation:none}
@media (prefers-reduced-motion:reduce){
  .photo-step-video{transition:none}
  .photo-step-frame[data-camera="capturing"] .photo-step-camera::after{animation:none}
  .photo-step-frame[data-camera="starting"] .photo-step-wait{animation:none;border-color:var(--line)}
}
}

/* "Something else" picked: a box for her own words under the answers (views/questions.js). */
.question-body .own-words{margin-top:var(--s-3)}
.question-body .own-words-field{min-height:72px;max-height:120px;padding:12px var(--s-4);resize:none;overflow-y:auto;field-sizing:content;white-space:pre-wrap;overflow-wrap:anywhere;font:var(--type-body)}

/* Awaken Noor in onboarding: the checkpoint after the questions, the step that asks what matters, and the page
   before the experience, where Begin is (views/matters.js), and the layer the experience runs in
   (awaken-handoff.js). The experience's own look is vendor/awaken-noor/qa/awaken-breath/noor.css, loaded when it
   is needed. "What matters" is a question screen (styles/onboarding.css); only its cards are its own. */
@layer skin {

/* ---- The checkpoint (checkpointView): straight after the last question. A tick lands, a little light goes out
   from it, and two lines say thank you and what comes next. One page in two states, said by data-checkpoint on
   the screen: `arriving`, while it plays (under two seconds), and `settled`: as it ends, on Back and on a reload.
   Continue never waits for it. The page's own style carries the times (.checkpoint-body; checkpoint-moment.js,
   checkpointStyle): the mark begins at --t-rise, the tick is down at --t-land, then the two lines. As on the page
   before Awaken Noor, whatever moves while arriving ends exactly as it rests when settled, so nothing jumps when
   the animations go; and the words move inside their own block, because the block itself rises in with the page. ---- */
.checkpoint-body{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:var(--s-4)}
.checkpoint-mark{--mark:min(216px,58vw);position:relative;flex:none;width:var(--mark);aspect-ratio:1;margin:auto auto 0}

/* The light behind the tick: the app's own pastels, turning slowly (its ::before, which never stops). It opens as
   the tick lands (the element itself) and stays. */
.checkpoint-glow{position:absolute;inset:13%;border-radius:50%;opacity:.9;pointer-events:none}
.checkpoint-glow::before{content:'';position:absolute;inset:0;border-radius:50%;filter:blur(20px);animation:break-turn 18s linear infinite;
  background:conic-gradient(from 200deg,rgb(var(--ember-rgb) / .9),rgb(var(--pulse-rgb) / .75),rgb(var(--bond-rgb) / .55),rgb(var(--still-rgb) / .8),rgb(var(--root-rgb) / .9),rgb(var(--ember-rgb) / .9))}
[data-checkpoint=arriving] .checkpoint-glow{animation:checkpoint-glow 900ms var(--ease) calc(var(--t-land) - 90ms) both}
@keyframes checkpoint-glow{from{opacity:0;transform:scale(.55)}to{opacity:.9;transform:scale(1)}}

/* The mark itself is the app's own tick, the one on every answer she picked, as large as the page's light: an ink
   disc and a white tick. The disc arrives on a small spring and the tick is drawn into it. */
.checkpoint-disc{position:absolute;inset:27%;display:grid;place-items:center;border-radius:50%;background:var(--brand-primary);color:var(--on-primary);box-shadow:0 14px 28px -12px rgb(var(--ink-rgb) / 0.55)}
.checkpoint-disc svg{display:block;width:66%;height:66%;overflow:visible}
.checkpoint-tick{stroke:currentColor;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:100;stroke-dashoffset:0}
[data-checkpoint=arriving] .checkpoint-disc{animation:checkpoint-pop 500ms var(--ease-press) var(--t-rise) both,break-fade 170ms linear var(--t-rise) both}
[data-checkpoint=arriving] .checkpoint-tick{animation:checkpoint-draw 300ms cubic-bezier(.65,0,.35,1) calc(var(--t-land) - 230ms) both}
@keyframes checkpoint-pop{from{transform:scale(.4)}to{transform:scale(1)}}
@keyframes checkpoint-draw{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}

/* As the tick lands two rings leave the disc and fade, one after the other, once. */
.checkpoint-ripple{position:absolute;inset:27%;border-radius:50%;border:1.5px solid color-mix(in srgb,var(--ink) 62%,transparent);opacity:0;pointer-events:none}
[data-checkpoint=arriving] .checkpoint-ripple{animation:checkpoint-ripple 950ms var(--ease) var(--t-land) both}
[data-checkpoint=arriving] .checkpoint-ripple+.checkpoint-ripple{animation-delay:calc(var(--t-land) + 170ms)}
@keyframes checkpoint-ripple{0%{opacity:0;transform:scale(1)}12%{opacity:.34}100%{opacity:0;transform:scale(1.64)}}

/* And small lights fly out all round it and are gone: strokes and dots by turns, in the colours of the icons she
   has been choosing (assets/onboarding/atelier). --a is each one's direction. */
.checkpoint-sparks{position:absolute;inset:0;pointer-events:none}
.checkpoint-sparks i{--a:calc(360deg*var(--i)/var(--n) + 18deg);position:absolute;left:50%;top:50%;width:4px;height:14px;margin:-7px 0 0 -2px;border-radius:var(--radius-control);background:var(--root);opacity:0}
.checkpoint-sparks i:nth-child(5n+2){background:var(--ember)}
.checkpoint-sparks i:nth-child(5n+3){background:var(--pulse)}
.checkpoint-sparks i:nth-child(5n+4){background:var(--still)}
.checkpoint-sparks i:nth-child(5n+5){background:var(--ember)}
.checkpoint-sparks i:nth-child(even){width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%}
[data-checkpoint=arriving] .checkpoint-sparks i{animation:checkpoint-spark 640ms cubic-bezier(.2,.7,.3,1) calc(var(--t-land) + var(--i)*9ms) both}
[data-checkpoint=arriving] .checkpoint-sparks i:nth-child(even){animation-name:checkpoint-spark-far}
@keyframes checkpoint-spark{
  0%{opacity:0;transform:rotate(var(--a)) translateY(calc(var(--mark)*-.25)) scaleY(.4)}
  20%{opacity:1}
  100%{opacity:0;transform:rotate(var(--a)) translateY(calc(var(--mark)*-.41)) scaleY(1)}}
@keyframes checkpoint-spark-far{
  0%{opacity:0;transform:rotate(var(--a)) translateY(calc(var(--mark)*-.25)) scale(.5)}
  20%{opacity:1}
  100%{opacity:0;transform:rotate(var(--a)) translateY(calc(var(--mark)*-.47)) scale(1)}}

/* The two lines: thank you, then what comes next, each rising into its place as the tick has landed. The thanks
   stays on one line where it fits; where it does not, her name takes the second line (no balancing, which would
   break it after "for"). */
.checkpoint-words{width:100%;margin:var(--s-4) 0 auto}
.checkpoint-body .checkpoint-title{margin:0 auto;text-wrap:wrap}
.checkpoint-body .checkpoint-lead{max-width:30ch;margin:var(--s-3) auto 0;color:var(--text);text-wrap:balance}
[data-checkpoint=arriving] .checkpoint-title{animation:checkpoint-word 520ms var(--ease) var(--t-words) both}
[data-checkpoint=arriving] .checkpoint-lead{animation:checkpoint-word 520ms var(--ease) var(--t-line) both}
@keyframes checkpoint-word{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
/* A phone browser with its bars, and smaller phones: the mark gives up a little room. */
@media (max-height:719px){.checkpoint-mark{--mark:min(184px,52vw)}}
@media (max-height:619px){.checkpoint-mark{--mark:min(150px,46vw)}.checkpoint-words{margin-top:var(--s-2)}}
html.motion-paused :is(.checkpoint-glow,.checkpoint-disc,.checkpoint-tick,.checkpoint-ripple,.checkpoint-sparks i,.checkpoint-title,.checkpoint-lead),html.motion-paused .checkpoint-glow::before{animation-play-state:paused}

/* ---- The page before Awaken Noor (readyView), after the photo. (Its parts are named `break-…`: until v0.7.2 it
   was the break straight after the questions.) One page in two states, said by data-break on the screen:
   `gathering`, while her answers come together, and `ready`, when the page has turned to what is ahead and Begin
   can be tapped. The page's own style carries
   the times (.break-body; ready-moment.js, readyStyle): --n answers, and when each thing happens.
   Two rules keep the turn seamless. A thing that moves while gathering ends exactly as it rests when ready, so
   nothing jumps when the animations go. And nothing is both animated and transitioned: what the turn itself
   changes (the words, the lines, the ring letting go) is only ever a transition.
   The page is one composition, centred in the room it has (auto margins: on a short phone they are nothing, so it
   simply scrolls). The lines take their place while they are still unseen, so nothing moves when they appear ---- */
.break-body{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:var(--s-4)}
.break-stage{--stage:min(236px,62vw);--mote:38px;position:relative;flex:none;width:var(--stage);aspect-ratio:1;margin:auto auto 0}

/* Keep the original soft pastel glow, painted at rest. Only its gathering opacity changes;
   there is no continuously rotating filtered surface while the person reads. */
.break-glow{position:absolute;inset:19%;border-radius:50%;opacity:.85;pointer-events:none}
.break-glow::before{content:'';position:absolute;inset:0;border-radius:50%;filter:blur(18px);
  background:conic-gradient(from 20deg,rgb(var(--root-rgb) / .9),rgb(var(--still-rgb) / .8),rgb(var(--bond-rgb) / .6),rgb(var(--pulse-rgb) / .8),rgb(var(--ember-rgb) / .9),rgb(var(--root-rgb) / .9))}
@keyframes break-turn{to{transform:rotate(1turn)}}
[data-break=gathering] .break-glow{animation:break-glow-rise calc((var(--n) - 1)*var(--t-gap) + 320ms) ease-in calc(var(--t-leave) + var(--t-travel)*.82) both}
@keyframes break-glow-rise{from{opacity:0}to{opacity:.85}}

/* The ring fills while they gather: quickly at first, a held breath near the end, then whole. Ready, it lets go.
   (The times come from the page: .break-body's style, ready-moment.js readyStyle.) */
.break-ring{position:absolute;left:21%;top:21%;width:58%;height:58%;overflow:visible;transform:rotate(-90deg);pointer-events:none}
.break-ring circle{fill:none;stroke-width:1.5}
.break-ring-track{stroke:var(--line)}
.break-ring-fill{stroke:var(--brand-primary);stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:0}
[data-break=gathering] .break-ring-fill{animation:break-fill calc(var(--t-total) - var(--t-appear) - 240ms) linear var(--t-appear) both}
@keyframes break-fill{0%{stroke-dashoffset:100}10%{stroke-dashoffset:88}28%{stroke-dashoffset:72}40%{stroke-dashoffset:66}58%{stroke-dashoffset:44}72%{stroke-dashoffset:29}80%{stroke-dashoffset:25}93%{stroke-dashoffset:7}100%{stroke-dashoffset:0}}
[data-break=ready] .break-ring{opacity:0;transform:rotate(-90deg) scale(1.14);transition:opacity 520ms linear 60ms,transform 760ms var(--ease)}

/* The orb that waits. It is the experience's own orb as Awaken Noor opens: ink on the page (the same twelve values
   as .orb-ink and .halo-ink in vendor/awaken-noor/qa/awaken-breath/noor.css), so the light she breathes life
   into later is the one she has already seen. It grows as it takes her answers in, with a small beat for each. */
.break-orb{position:absolute;inset:29%;display:block}
.break-beat{display:block;width:100%;height:100%}
.aura-orb--ink .aura-orb-core{background:var(--brand-primary)}
.aura-orb--ink .aura-orb-core i:nth-child(1){background:radial-gradient(circle at 58% 36%,var(--night-line-strong) 0%,var(--night-selection) 48%,transparent 72%)}
.aura-orb--ink .aura-orb-core i:nth-child(2){background:radial-gradient(circle at 45% 42%,var(--night-surface) 0%,var(--night-subtle) 50%,transparent 73%)}
.aura-orb--ink .aura-orb-core i:nth-child(3){background:radial-gradient(circle at 50% 50%,var(--text) 0%,var(--night-line-strong) 48%,transparent 73%)}
.aura-orb--ink .aura-orb-core i:nth-child(4){background:radial-gradient(circle at 44% 48%,var(--night-selection) 0%,var(--brand-primary) 49%,transparent 73%)}
.aura-orb--ink .aura-orb-core i:nth-child(5){background:radial-gradient(circle at 40% 38%,var(--night-surface) 0%,var(--night-surface) 51%,transparent 73%)}
.aura-orb--ink .aura-orb-core i:nth-child(6){background:radial-gradient(circle at 46% 37%,var(--night-line-strong) 0%,var(--night-selection) 48%,transparent 73%)}
.aura-orb--ink .aura-orb-halo{background:radial-gradient(circle,rgb(var(--ink-rgb) / 0.14) 0%,rgb(var(--ink-rgb) / 0.05) 38%,transparent 64%)}
/* This small waiting orb needs only one painted surface and one gentle scale animation. Keep the shared
   orb's soft edge and ink palette, but do not run its six blurred, independently moving clouds here.
   The live call and Awaken Noor still use their own full orb. */
.screen--ready .aura-orb-core{background:radial-gradient(ellipse at 34% 28%,var(--night-line-strong) 0%,transparent 62%),radial-gradient(ellipse at 74% 80%,var(--night-surface) 0%,transparent 65%),var(--brand-primary)}
.screen--ready .aura-orb-core i{display:none;animation:none;filter:none;will-change:auto}
.screen--ready .aura-orb-halo{animation:none}
[data-break=gathering] .break-orb{animation:break-fade 640ms linear calc(var(--t-appear) - 160ms) both,break-grow calc((var(--n) - 1)*var(--t-gap) + 320ms) cubic-bezier(.3,0,.3,1) calc(var(--t-leave) + var(--t-travel)*.82) both}
[data-break=gathering] .break-beat{animation:break-beat var(--t-gap) ease-out calc(var(--t-leave) + var(--t-travel)*.82 - 30ms) var(--n) both}
@keyframes break-fade{from{opacity:0}to{opacity:1}}
@keyframes break-grow{from{transform:scale(.7)}to{transform:scale(1)}}
@keyframes break-beat{0%{transform:scale(1)}32%{transform:scale(1.075)}100%{transform:scale(1)}}

/* Ready: a ring leaves the orb and fades, again and again, slowly. Something is waiting. */
.break-ripple{position:absolute;inset:27%;border-radius:50%;border:1px solid color-mix(in srgb,var(--ink) 55%,transparent);opacity:0;pointer-events:none}
[data-break=ready] .break-ripple{animation:break-ripple 4400ms var(--ease) infinite}
[data-break=ready] .break-ripple+.break-ripple{animation-delay:2200ms}
@keyframes break-ripple{0%{opacity:0;transform:scale(.94)}10%{opacity:.34}68%,100%{opacity:0;transform:scale(1.66)}}

/* Her answers: each appears on the ring in turn, waits there, then goes in on a curve and is taken up. --a is its
   place on the ring; the two turns keep its picture upright while it travels. At rest (and ready) they are gone. */
.break-mote{--a:calc(360deg*var(--i)/var(--n) - 90deg);--r:calc(var(--stage)*.39);position:absolute;left:50%;top:50%;display:grid;place-items:center;width:var(--mote);height:var(--mote);margin:calc(var(--mote)/-2) 0 0 calc(var(--mote)/-2);opacity:0;pointer-events:none}
.break-mote img{display:block;width:34px;height:34px}
.break-mote--cover img{width:27px;height:40px;border-radius:var(--radius-control);object-fit:cover;filter:none;box-shadow:var(--e1)}
[data-break=gathering] .break-mote{animation:break-mote-in 460ms var(--ease) calc(var(--t-appear) + var(--i)*var(--t-each)) both,break-mote-go var(--t-travel) cubic-bezier(.6,0,.4,1) calc(var(--t-leave) + var(--i)*var(--t-gap)) forwards}
@keyframes break-mote-in{
  from{opacity:0;transform:rotate(calc(var(--a) - 18deg)) translateX(calc(var(--r)*1.2)) rotate(calc(18deg - var(--a))) scale(.55)}
  to{opacity:1;transform:rotate(var(--a)) translateX(var(--r)) rotate(calc(0deg - var(--a))) scale(1)}}
@keyframes break-mote-go{
  from{opacity:1;transform:rotate(var(--a)) translateX(var(--r)) rotate(calc(0deg - var(--a))) scale(1)}
  60%{opacity:1;transform:rotate(calc(var(--a) + 30deg)) translateX(calc(var(--r)*.46)) rotate(calc(-30deg - var(--a))) scale(.84)}
  to{opacity:0;transform:rotate(calc(var(--a) + 58deg)) translateX(0px) rotate(calc(-58deg - var(--a))) scale(.3)}}

/* What is happening, small, under the ring: one line, then the other. Ready, it is gone. */
.break-status{display:grid;justify-items:center;min-height:18px;margin:var(--s-3) 0 0;font:var(--type-caption);color:var(--text-muted)}
.break-status span{grid-area:1/1}
.break-status span:first-child{opacity:0}
[data-break=gathering] .break-status span:first-child{animation:break-status-a var(--t-total) linear both}
[data-break=gathering] .break-status span+span{animation:break-status-b var(--t-total) linear both}
@keyframes break-status-a{0%,46%{opacity:1}54%,100%{opacity:0}}
@keyframes break-status-b{0%,54%{opacity:0}62%,100%{opacity:1}}
[data-break=ready] .break-status{opacity:0;visibility:hidden;transition:opacity 200ms linear,visibility 0s linear 200ms}

/* The words. "Almost there." and the question share one place, so the turn moves nothing: one leaves, the other
   arrives. Then the three small lines, one after another. */
.break-words{width:100%;margin:var(--s-2) 0 auto}
.break-head{display:grid;justify-items:center}
.break-head>*{grid-area:1/1}
.break-great{align-self:center;margin:0;font:var(--type-title);letter-spacing:var(--track-title);color:var(--ink);opacity:0;transform:translateY(-8px);transition:opacity 220ms linear,transform 320ms var(--ease-exit)}
[data-break=gathering] .break-great{opacity:1;transform:none;transition:none}
.break-body .break-title{max-width:11em;margin:0 auto;text-wrap:balance;transition:opacity 480ms var(--ease) 260ms,transform 620ms var(--ease) 260ms}
[data-break=gathering] .break-title{opacity:0;transform:translateY(10px);transition:none}
.break-list{display:grid;gap:var(--s-2);width:fit-content;max-width:100%;margin:var(--s-5) auto 0;padding:0;list-style:none;text-align:left}
.break-list li{display:flex;align-items:center;gap:var(--s-3);font:var(--type-support);font-weight:500;color:var(--ink);transition:opacity 460ms var(--ease),transform 560ms var(--ease);transition-delay:calc(480ms + var(--i)*120ms)}
[data-break=gathering] .break-list li{opacity:0;transform:translateY(8px);transition:none}
.break-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:var(--subtle);color:var(--ink)}
.break-icon svg{width:19px;height:19px}
/* A phone browser with its bars, and smaller phones: the stage gives up room so nothing has to scroll. */
@media (max-height:719px){
  .break-body{padding-top:var(--s-2)}
  .break-stage{--stage:min(196px,56vw);--mote:34px}
  .break-mote img{width:30px;height:30px}
  .break-mote--cover img{width:24px;height:36px}
  .break-list{margin-top:var(--s-4)}
}
/* Under Begin stand its line and the way round the voice, so the page has less room than it had as the break:
   the stage steps down once more for a phone browser with its bars, and again for the smallest phones. */
@media (max-height:679px){
  .break-stage{--stage:min(150px,46vw);--mote:28px}
  .break-mote img{width:24px;height:24px}
  .break-mote--cover img{width:19px;height:28px}
}
@media (max-height:619px){
  .break-body{padding-bottom:var(--s-2)}
  .break-stage{--stage:min(116px,38vw);--mote:24px}
  .break-mote img{width:20px;height:20px}
  .break-mote--cover img{width:16px;height:24px}
  .break-status{margin-top:var(--s-2)}
  .break-list{gap:6px;margin-top:var(--s-3)}
  .break-icon{width:30px;height:30px}
  .break-icon svg{width:17px;height:17px}
}
html.motion-paused :is(.break-glow,.break-ripple,.break-mote,.break-mote img,.break-orb,.break-beat,.break-ring-fill,.break-status span),html.motion-paused .break-glow::before{animation-play-state:paused}

/* ---- What matters most: ten areas, two across, each a colour icon and its name. Picked is the ring and the tick,
   never the fill alone; with four picked the others step back, and a tap on one of them only says how to swap ---- */
.matters-body .question-title{min-height:0}
.matters-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:var(--s-4);padding:0 0 var(--s-2)}
.matter{all:unset;box-sizing:border-box;position:relative;display:flex;align-items:center;gap:10px;min-height:80px;padding:14px var(--s-3);border-radius:var(--radius-card);background:var(--subtle);color:var(--ink);font:var(--type-support);font-weight:500;cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;transition:background-color var(--d-quick) linear,opacity var(--d-quick) linear,transform 160ms var(--ease)}
.matter:active{transform:scale(.97);transition-duration:var(--d-press)}
/* The touch light from the finger (views/questions.js plays it), as on every answer. */
.matter::before{content:'';position:absolute;inset:0;border-radius:inherit;background:radial-gradient(circle farthest-corner at var(--touch-x,50%) var(--touch-y,50%),rgb(var(--root-rgb) / .9),rgb(var(--root-rgb) / 0) 70%);opacity:0;pointer-events:none}
.matter::after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1.5px var(--brand-primary);opacity:0;transition:opacity var(--d-quick) linear;pointer-events:none}
.matter[aria-checked=true]{background:var(--selection)}
.matter[aria-checked=true]::after{opacity:1}
.matter[aria-checked=true] .matter-label{font-weight:600}
.matter.is-dim{opacity:.45}
.matter:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
.matters-body .matter .matter-art{flex:none;width:30px;height:30px}
.matter-label{flex:1;min-width:0;text-wrap:balance}
/* The tick rides on the card's corner, as it does on a book cover. */
.matters-body .matter .matter-ring{position:absolute;right:-5px;top:-5px;display:grid;place-items:center;width:20px;height:20px;margin:0;border-radius:50%;background:var(--brand-primary);color:var(--on-primary);box-shadow:0 0 0 2px var(--surface);opacity:0;transform:scale(.6);transition:opacity var(--d-quick) linear,transform var(--d-base) var(--ease-press)}
.matters-body .matter[aria-checked=true] .matter-ring{opacity:1;transform:none}
.matters-body .matter .matter-ring svg{width:13px;height:13px;stroke-width:2.8}
/* Keep comfortable cards on short phones; the body scrolls and Continue stays reachable. */
@media (max-height:719px){
  .matters-grid{gap:10px;margin-top:14px;padding-bottom:var(--s-3)}
  .matter{min-height:76px;padding-block:12px}
}
@media (max-width:359px){.matter{gap:var(--s-2);padding-inline:10px}}

/* ---- Under Begin, on the page before Awaken Noor: what Begin opens, once, small; and the way round the voice,
   kept low. They arrive together with the page's turn, after the three lines, and cannot be reached before it:
   while her answers gather there is nothing to read under a button that is still waiting. Their room is kept, so
   the button never moves. It is their block that arrives (.begin-under), not the text button itself, whose own
   quick change under a finger must stay quick; and the block can be reached only from the moment it begins to
   show, never while it is still unseen under a button that has just woken. ---- */
.begin-under{display:grid;justify-items:center;transition:opacity 460ms var(--ease) 840ms,visibility 0s linear 840ms}
.screen--ready[data-break=gathering] .begin-under{opacity:0;visibility:hidden;transition:none}
.begin-note{margin:var(--s-2) 0 0;font:var(--type-caption);color:var(--text-muted);text-align:center;text-wrap:balance}
.begin-under>.begin-write{min-height:36px;color:var(--text)}
@media (max-height:719px){.begin-note{margin-top:6px}}

/* ---- The experience's layer: above every screen, outside what the renderer redraws. It arrives over the page
   the person began from; when the call has the room it fades away over the call, so only the orb carries on ---- */
/* No double-tap zoom on a phone: three quick taps are the hidden way on to the breaths (awaken-handoff.js). */
.awaken-layer{position:absolute;inset:0;z-index:5;display:flex;justify-content:center;background:var(--surface);opacity:0;touch-action:manipulation;transition:opacity var(--d-base) linear}
.awaken-layer.is-in{opacity:1}
.awaken-layer.is-leaving{opacity:0;pointer-events:none;transition:opacity 720ms var(--ease-breath)}
/* Its last words and its close button go at once: the call's own words are arriving under them. The orb stays where
   it is while the layer fades, and the call's orb holds the same place (call-stage.js, restore): one orb throughout. */
.awaken-layer.is-leaving :is(.noor-bar,.noor-words,.noor-cue,.noor-dock){opacity:0;transition:opacity 140ms linear}
.awaken-root{display:flex;justify-content:center;width:100%;height:100%}
/* Under the layer the app shows a plain page. */
.screen--awaken{background:var(--surface)}

@media (prefers-reduced-motion:reduce){
  .matter,.matters-body .matter .matter-ring,.awaken-layer,.awaken-layer.is-leaving{transition-duration:.01ms}
  /* The checkpoint is the settled page at once (checkpoint-moment.js): nothing arrives, flies out or turns. */
  .screen--checkpoint[data-checkpoint] :is(.checkpoint-glow,.checkpoint-disc,.checkpoint-tick,.checkpoint-ripple,.checkpoint-sparks i,.checkpoint-title,.checkpoint-lead),.screen--checkpoint .checkpoint-glow::before{animation:none}
  /* The page before Awaken Noor shows what it turns to, at once (ready-moment.js): nothing gathers, turns or ripples. */
  .screen--ready[data-break] :is(.break-glow,.break-ripple,.break-mote,.break-mote img,.break-orb,.break-beat,.break-ring-fill,.break-status span),.screen--ready .break-glow::before{animation:none}
  .screen--ready[data-break] :is(.break-ring,.break-status,.break-great,.break-title,.break-list li,.begin-under){transition:none}
}

/* The design's page before the call (views/matters.js, readyView): the hand holding a star, the line and what it is for,
   centred; Let's get started and I will do it later. */
/* The Figma frame (134:4606): the picture runs the width of the screen under the bar (376 x 333 in 390), and the
   words stand in the middle of the room left between it and the buttons. The picture is multiplied onto the page, so
   its white falls away; its soft panel fades out at the top and the foot, and its sides are the screen's own edges. */
.screen--create{position:relative;background:var(--surface)}
.create-body{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:0}
.create-art{flex:none;display:block;width:calc(100% + var(--page-l) + var(--page-r));max-width:420px;height:auto;margin:0 calc(-1 * var(--page-r)) 0 calc(-1 * var(--page-l));mix-blend-mode:multiply;-webkit-mask-image:linear-gradient(transparent,var(--black) 12%,var(--black) 80%,transparent);mask-image:linear-gradient(transparent,var(--black) 12%,var(--black) 80%,transparent)}
.create-title{margin-top:auto;padding-top:var(--s-5);font:var(--type-voice);letter-spacing:0;color:var(--ink)}
.create-art{position:relative;pointer-events:none}
.create-art img{display:block;width:100%;height:auto}
.create-art-motion{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;opacity:0;transition:opacity .24s ease}
.create-art-motion.is-playing{opacity:1}
[data-motion-ghost] .create-art-motion{display:none}
@media (prefers-reduced-motion:reduce){.create-art-motion{display:none;transition:none}}
.create-lead{max-width:342px;margin-top:var(--s-2);margin-bottom:auto;font:var(--type-body);color:var(--text)}
.create-dock{display:grid;gap:var(--s-3)}
/* At night the picture's white paper cannot be multiplied away (it would stand as a white panel on the dark page). Its
   tones are turned over instead, not quite fully, so the paper lands on the night surface and the hand and the star
   glow out of the dark in their own hues; a round fade takes the paper's last edge away. */
:root[data-theme="dark"] .create-art{mix-blend-mode:normal;filter:invert(.91) hue-rotate(180deg) saturate(1.3);-webkit-mask-image:radial-gradient(closest-side,var(--black) 72%,transparent);mask-image:radial-gradient(closest-side,var(--black) 72%,transparent)}
@media (max-height:700px){.create-art{width:min(80%,300px);margin-inline:auto}}
@media (max-height:600px){.create-art{width:min(60%,220px)}}
/* Microphone refusal is handled on the photo step, where continuing starts the conversation. */
.photo-body .photo-mic{max-width:300px;margin:var(--s-3) auto 0;padding:var(--s-3) var(--s-4);border-radius:var(--radius-card);background:var(--subtle);font:var(--type-support);color:var(--error)}

}


/* The short reset inside the first call (reset-handoff.js). The player is the product's own (vendor/quick-reset-player):
   its clock, transforms, shader and score are untouched. This sheet gives it the app's column, font and look, as
   checkin-release.css does for the release player.
   The player's own sheet is added to the page after the app's, so a rule here that must win over one of its looks
   (.mod-stage.is-day) names the layer as well. */
.reset-layer{position:absolute;inset:0;z-index:6;isolation:isolate;overflow:hidden;background:var(--surface);opacity:0;touch-action:manipulation;transition:opacity 420ms ease}
.reset-layer.is-in{opacity:1}
.reset-layer.is-leaving{opacity:0;pointer-events:none;transition:opacity 600ms ease}
.reset-host{position:absolute;inset:0;container-type:size;--font-aura:var(--font)}
/* The player's own button takes the app's action colour in its day look (its night look keeps its light button). */
.reset-host .mod-stage.is-day{--mod-primary-bg:var(--brand-primary);--mod-primary-ink:var(--on-primary)}

/* ---- The design's look (2 December 2026; Figma "Convo" 134:4319, "Take deep breath in..."): the owner asked for the
   reset to be "a bit tweaked to align with the main modality". The white ground with the room's light at the foot,
   the mark top left and a round glass close top right as on the call, one large soft orb in the upper middle, her
   line under it in the call's voice type, the call's glass buttons at the foot. ---- */

/* Light all the way through. The player turns its stage to night while the eyes are closed; here the ground, the words
   and the orb stay as the design draws them, and only the player's own timing changes the rest. Its moving light (a
   shader drawn in its own night and day colours) gives way to the room's four lights at the foot, at the strength the
   design gives them in this moment (a fifth, where the call has a half). */
.reset-layer .reset-host .mod-stage{
  --mod-ink:var(--ink);--mod-dim:var(--text);--mod-faint:var(--text-muted);
  --mod-line:rgb(var(--ink-rgb) / 12%);--mod-fill:rgb(var(--white-rgb) / 72%);
  --mod-primary-bg:var(--brand-primary);--mod-primary-ink:var(--on-primary);
  --mod-glow:linear-gradient(95deg,var(--root-ink) 0%,var(--depth-ink) 50%,var(--pulse-ink) 100%);
  background:transparent;color:var(--mod-ink)}
.reset-host .mod-light{display:none}
.reset-host::before{content:'';position:absolute;inset:-4% -10% -6%;z-index:0;pointer-events:none;
  background:
    radial-gradient(46% 24% at 22% 84%,rgb(var(--room-amber-rgb) / .16),transparent 72%),
    radial-gradient(62% 22% at 10% 100%,rgb(var(--room-sky-rgb) / .19),transparent 72%),
    radial-gradient(60% 22% at 80% 92%,rgb(var(--room-rose-rgb) / .11),transparent 72%),
    radial-gradient(62% 24% at 86% 104%,rgb(var(--room-lilac-rgb) / .21),transparent 72%);
  animation:aura-drift 19s var(--ease-breath) infinite alternate}
/* The player's shade behind its foot (dark at night, white by day) would cover that light. */
.reset-host .mod-foot::before,.reset-host .mod-foot::after{opacity:0}
.reset-host :is(.mod-hint,.mod-note){text-shadow:none}

/* The orb: one large soft orb, 170 in a 390 frame, its centre a little above a third of the way down. Both of the
   player's orbs (night and day) are the same light orb; the player still breathes it and moves between them. */
/* The player draws its orb at the top of its box and grows it downward as the breath fills: at rest it is under half
   the box, so a box of about 270 reaches the design's 170 as a breath comes in. Her line's centre sits about two
   thirds of the way down, as in the design (304 and 555 in 844). */
.reset-host{--reset-orb:min(76cqw,300px,32cqh)}
.reset-host .mod-orb{--orb-size:var(--reset-orb)}
/* Its colours fill the whole of it, as in the design: a pastel ground under the player's own six moving lights,
   blurred less than the player's day orb (which is mostly white). */
.reset-host :is(.mod-orb-night,.mod-orb-day){--au-orb-filter:blur(24px) saturate(1.1) brightness(1.04);
  --au-orb-ground:radial-gradient(circle at 50% 38%,rgb(var(--room-lilac-rgb) / 45%),rgb(var(--room-sky-rgb) / 35%) 78%)}
.reset-host .mod-orb-halo{opacity:.35}
/* Its two soft highlights, high on the left, breathing with it. */
.reset-host .mod-orb-pulse::before,.reset-host .mod-orb-pulse::after{content:'';position:absolute;z-index:4;border-radius:50%;pointer-events:none}
.reset-host .mod-orb-pulse::before{left:30%;top:5%;width:47%;height:26%;transform:rotate(-15deg);background:radial-gradient(closest-side,rgb(var(--white-rgb) / 55%),transparent)}
.reset-host .mod-orb-pulse::after{left:30%;top:10%;width:15%;height:14%;background:radial-gradient(closest-side,rgb(var(--white-rgb) / 75%),transparent)}
.reset-layer .reset-host .mod-ring{border-color:rgb(var(--room-lilac-rgb) / 60%)}
.reset-host .mod-focus{justify-content:flex-start;padding:max(var(--s-3),calc(36cqh - var(--bar-h) - var(--safe-top) - var(--reset-orb) * .27)) clamp(16px,6cqw,26px) 0;gap:max(var(--s-2),calc(30cqh - 62px - var(--reset-orb) * .73))}
.reset-host .mod-words{max-width:min(340px,100%)}

/* Her line in the call's voice type, centred, ink; the smaller cue under it and the cards in the app's type. */
.reset-host .mod-line p{font:var(--type-voice);letter-spacing:var(--track-voice)}
.reset-host .mod-line.is-cue p{font:var(--type-heading);letter-spacing:0}
.reset-host .mod-card-title{font:var(--type-title);letter-spacing:var(--track-voice)}
.reset-host .mod-card-title.is-small,.reset-host .mod-card-sub.is-big{font:var(--type-voice);letter-spacing:var(--track-voice)}
.reset-host .mod-card-sub{font:var(--type-body)}
.reset-host .mod-card-meta,.reset-host .mod-hint,.reset-host .mod-note{font:var(--type-caption)}
.reset-host .mod-carry-w{font:var(--type-heading)}
.reset-host .mod-primary{font:var(--type-button)}
.reset-host .mod-quiet{font:var(--type-quiet)}

/* The top bar as on the call: the mark at the left, a round glass close at the right. The player's "Quick Reset"
   label stays for a screen reader only. */
.reset-host .mod-top{min-height:calc(var(--bar-h) + var(--safe-top));padding:calc(var(--safe-top) + var(--s-2)) var(--page-r) 0 var(--page-l)}
.reset-host .mod-top::before{content:'';flex:none;width:36px;height:36px;background:url('../assets/opening/brand-mark.webp') center/contain no-repeat}
.reset-host .mod-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.reset-host .mod-icon{position:relative;width:40px;height:40px;border-radius:50%;background:rgb(var(--white-rgb) / 70%);box-shadow:inset 0 0 0 1px rgb(var(--white-rgb) / 70%);-webkit-backdrop-filter:blur(27.5px);backdrop-filter:blur(27.5px);color:rgb(var(--ink-rgb) / 85%)}
.reset-host .mod-icon::before{content:'';position:absolute;inset:-4px}
.reset-host .mod-icon svg{width:20px;height:20px;stroke-width:1.5}

/* The round buttons at the foot as the call's glass buttons. */
.reset-host .mod-round{width:56px;height:56px;border:0;background:rgb(var(--white-rgb) / 72%);box-shadow:inset 0 0 0 1px rgb(var(--white-rgb) / 90%);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);color:var(--ink)}
.reset-host .mod-round.is-main{width:64px;height:64px}
.reset-host .mod-foot{min-height:clamp(106px,19cqh,164px);flex-shrink:0}

@container (max-height:640px){
  .reset-host .mod-foot{min-height:106px;gap:8px;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 12px)}
  .reset-host .mod-line p{font-size:var(--text-fit)}
}
@container (max-height:440px){
  .reset-host .mod-focus{flex-direction:row;justify-content:center;padding:0 20px;gap:24px}
  .reset-host .mod-orb{--orb-size:min(23cqw,30cqh)}
  .reset-host .mod-words{flex:1;height:100px}
  .reset-host .mod-foot{min-height:84px}
}
@media(prefers-reduced-motion:reduce){.reset-layer,.reset-layer.is-leaving{transition-duration:.01ms}.reset-host::before{animation:none}}

/* Aura across the app: the light each screen stands in, and the few things every screen shares that are not a
   component. The colours, faces and timings themselves are tokens (styles/tokens.css); the light is drawn once
   in the shell (styles/base.css, #atmosphere). docs/DESIGN_SYSTEM.md. Last layer, so one table decides.
   Since 1 December 2026 both layers are the Figma file's four lights (rose, lilac, amber, sky; --room-* in brand.css):
   faint along the top where the file lays them over a page, rising from the foot where it stands a moment on them. */
@layer skin {

/* ---- The light each screen stands in ----
   Two lights, both outside #app, so they never restart when a screen changes; they cross-fade (1.2s).
   --aura-crown: the page light from the top, for screens that are read and answered.
   --aura-foot:  the stage light rising from the foot, for the moments with the orb.
   A screen that paints its own ground (the call's sky, the map, the board) asks for neither. */
.app-shell{--aura-crown:.55;--aura-foot:0}
.app-shell:has(.screen--welcome){--aura-crown:.9}
/* The page light gathers a little with each answer: by the last question it is at full strength. */
.app-shell:has(.screen--name){--aura-crown:.4}
.app-shell:has(.screen--question){--aura-crown:.46}
.app-shell:has(.screen--question[data-q="2"]){--aura-crown:.54}
.app-shell:has(.screen--question[data-q="3"]){--aura-crown:.62}
.app-shell:has(.screen--question[data-q="4"]){--aura-crown:.7}
.app-shell:has(.screen--question[data-q="5"]){--aura-crown:.78}
.app-shell:has(.screen--question[data-q="6"]){--aura-crown:.86}
.app-shell:has(.screen--question[data-q="7"]){--aura-crown:.94}
.app-shell:has(.screen--checkpoint,.screen--matters,.screen--photo,.screen--ready){--aura-crown:1}
/* Every result is the stage: the orb above, the light at the foot. */
.app-shell:has(.screen--moment){--aura-crown:.35;--aura-foot:1}
/* Awaken Noor draws its own room in its own layer; under it the stage light is already up for the call it opens. */
.app-shell:has(.screen--awaken){--aura-crown:0;--aura-foot:1}
.app-shell:has(.screen--result){--aura-crown:.3;--aura-foot:.9}
.app-shell:has(.release-screen){--aura-crown:0;--aura-foot:1}
/* The call paints its own sky from the same lights; the shell's stays lit under it, so leaving is seamless. */
.app-shell:has(.call-screen){--aura-crown:0;--aura-foot:1}
.app-shell:has(.screen--write){--aura-crown:.7}
.app-shell:has(.screen--portrait){--aura-crown:.7}
.app-shell:has(.screen--when){--aura-crown:.6}
.app-shell:has(.screen--home,.screen--path){--aura-crown:.8}
/* The page before the conscious creation conversation: the page light at full, as before the first call. */
.app-shell:has(.screen--creation-ready){--aura-crown:1}
.app-shell:has(.screen--checkin){--aura-crown:.6}
.app-shell:has(.screen--details,.screen--said,.screen--log){--aura-crown:.45}
.app-shell:has(.screen--compass,.screen--board){--aura-crown:0;--aura-foot:0}
/* My vision board is home: the page light, quiet, so her pictures are the colour on the page. */
.app-shell:has(.screen--lifeboard){--aura-crown:.3;--aura-foot:0}
/* Settings is plain paper in the Figma file. */
.app-shell:has(.screen--settings){--aura-crown:0;--aura-foot:0}
.app-shell:has(.screen--join){--aura-crown:1}
/* The opening film is plain paper with the one orb: the light arrives with the Welcome page under it. */
body.opening-active .app-shell{--aura-crown:0;--aura-foot:0}
/* The first page after the splash is plain paper, as the design draws it. */
.app-shell:has(.screen--login),.app-shell:has(.screen--create){--aura-crown:0;--aura-foot:0}

/* ---- On the stage the light runs under the controls: the dock is clear, and nothing fades over it ---- */
.screen--result>.dock{background:transparent}
.screen--result>.dock::before{display:none}

}
