:root{color-scheme:light dark;--ink:#1d1d1f;--muted:#66666b;--page:#fff;--on-ink:#fff;--fill:#e5e5ea;--toolbar:#ffffffd9;--person-bubble:#e5e5ea;--card-edge:#dedee3;--inline-code:#f0eee6;--code-fill:#f5f4ee;--line:#dedee3;--surface:#fff;--wash:#f2f2f7;--blue:#215bcc;--phone-width:390px;font:17px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--wash);color:var(--ink)}body{min-height:100dvh}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled,[aria-disabled=true]{opacity:.45;cursor:default}a{color:inherit;text-underline-offset:3px}img{max-width:100%}textarea{resize:vertical}input,textarea,select{min-width:0}button:focus-visible,a:focus-visible,[tabindex]:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #007aff;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{overflow-wrap:anywhere}h2{line-height:1.2}p{margin:0 0 14px}button{touch-action:manipulation}.app-shell{max-width:var(--phone-width);min-height:100dvh;margin:auto;background:var(--wash)}.topbar{display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 16px;padding-top:max(10px,env(safe-area-inset-top));background:inherit;position:sticky;top:0;z-index:5;border-bottom:1px solid #e5e5ea}.topbar h1{font-size:19px;margin:0}.spacer{flex:1}.bar-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:600;text-align:center}.back,.bar-button{border:0;background:none;color:var(--blue);padding:8px 0;font-size:15px;white-space:nowrap}.menu{position:relative;flex:none}.menu>summary{cursor:pointer;list-style:none;font-weight:700;padding:10px 4px;letter-spacing:1px}.menu>summary::-webkit-details-marker{display:none}.menu>div{position:absolute;right:0;top:100%;display:grid;gap:2px;padding:6px;width:180px;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:0 5px 24px #0002}.menu button{text-align:left;border:0}.content{padding:20px 16px 40px}.page-title{font-size:32px;letter-spacing:-.7px;margin:10px 0 24px;font-weight:700}.section-title{font-size:17px;margin:28px 0 12px}.card{background:var(--surface);border-radius:14px}.form-card{padding:18px;margin-bottom:16px}.form-card h2,.form-card h3{font-size:20px;margin:0 0 14px}.field{display:grid;gap:7px;margin:16px 0}.field label{font-size:15px;font-weight:500}input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select{width:100%;border:1px solid var(--line);border-radius:9px;padding:12px;background:var(--surface)}textarea{display:block;line-height:1.4}.primary{display:block;width:100%;border:0;border-radius:26px;padding:14px 18px;background:var(--ink);color:var(--on-ink);font-weight:600;text-align:center}.secondary,.ph-control{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:10px 13px;font-size:15px}.secondary.on,.ph-control.on{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}.link-button{border:0;background:none;color:var(--blue);padding:12px 0}.danger{border:0;border-radius:10px;background:#ff3b30;color:#fff;padding:12px 20px}.muted,small{color:var(--muted);font-size:14px}.check-row{display:flex;align-items:center;gap:10px;margin:18px 0}.check-row input,input[type=radio]{width:20px;height:20px;accent-color:#007aff;flex:none}.consent-body{max-height:58dvh;overflow-y:auto;padding:0 6px 8px 0}.consent-body p{font-size:16px}.task-list{display:grid;gap:12px;margin-bottom:20px}.task{display:flex;align-items:center;gap:14px;padding:16px}.task>div{flex:1;min-width:0}.task h3{font-size:17px;margin:0 0 4px}.task p{font-size:15px;margin:0 0 4px;color:var(--muted)}.task button{flex:none}.error{padding:12px 14px;border-radius:10px;background:#ffefed;color:#a82014;margin:12px 0;font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere}.loading-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted)}.spinner{display:inline-block;width:20px;height:20px;border:2px solid #c7c7cc;border-top-color:var(--ink);border-radius:50%;animation:spin 1s linear infinite;flex:none}@keyframes spin{to{transform:rotate(360deg)}}.session-content{padding-bottom:max(24px,env(safe-area-inset-bottom))}.session-content>.error{margin:12px 16px}.working{padding:28px 20px}.working h2{font-size:24px;line-height:1.3;margin:0 0 28px}.working-row{display:flex;gap:12px;align-items:center;color:var(--muted)}.working details{margin-top:24px;font-size:15px}.working li{margin-bottom:12px}.working-composer{margin-top:36px}.working-composer label{display:block;margin-bottom:8px;font-size:15px}.input-row{display:flex;gap:8px;align-items:center}.input-row input{flex:1}.input-row button{flex:none;border:0;border-radius:9px;background:var(--ink);color:var(--on-ink);padding:12px}.backout{display:block;margin:0 auto 10px;font-size:14px}.view-host{min-width:0}.view-host .ph-phone{width:100%;min-height:calc(100dvh - 120px);border:0;border-radius:0;font-size:16px;line-height:1.4;background:var(--wash);overflow:visible}.view-host .ph-body{padding:20px 16px;min-width:0}.view-host .ph-heading{font-size:28px;letter-spacing:-.6px;line-height:1.15;margin-bottom:12px}.view-host .ph-goal{font-size:15px;color:var(--muted);line-height:1.4;margin-bottom:22px}.view-host .ph-title,.view-host .ph-source-option-title{font-size:17px;line-height:1.3}.view-host .ph-card{padding:14px;border-radius:14px}.view-host .ph-letter{width:23px;height:23px;font-size:13px;vertical-align:middle}.view-host .ph-lead{font-size:25px;margin-top:6px}.view-host .ph-second,.view-host .ph-row-values,.view-host .ph-spec-value,.view-host .ph-ask-line,.view-host .ph-shared{font-size:16px;line-height:1.4}
.view-host .ph-open-asks{gap:14px;padding:14px}.view-host .ph-open-ask-label{font-size:15px;color:var(--muted)}.view-host .ph-ask-input{font-size:16px;padding:9px 11px;border-radius:10px}.view-host .ph-ask-chips{gap:8px}.view-host .ph-ask-chip{font-size:16px;padding:7px 14px}.view-host .ph-muted,.view-host .ph-others,.view-host .ph-next,.view-host .ph-link,.view-host .ph-source-from,.view-host .ph-source-problem,.view-host .ph-spec-label,.view-host .ph-spec-name,.view-host .ph-words-line,.view-host .ph-words-quote,.view-host .ph-draft-label,.view-host .ph-draft-against{font-size:14px;line-height:1.4}.view-host .ph-photo{width:82px;height:82px}.view-host .ph-footer{position:sticky;bottom:0;z-index:2;padding:12px 16px max(12px,env(safe-area-inset-bottom));background:#f8f8fadf;backdrop-filter:blur(16px)}.view-host .ph-button{font-size:17px;padding:15px;border-radius:28px;cursor:pointer}.view-host .ph-button.ph-disabled{cursor:default}.view-host .ph-decline{font-size:16px;padding:13px;text-align:center;cursor:pointer}.view-host .ph-stack{gap:16px}.view-host .ph-tags{display:none}.view-host .ph-phone .ph-picked{outline:0}.view-host .ph-phone .ph-card.ph-selected{box-shadow:inset 0 0 0 2px var(--ink)}.view-host [data-ph-option],.view-host .ph-link,.view-host [data-ph-choice],.view-host [data-ph-plan],.view-host [data-ph-source]{cursor:pointer}.view-host .ph-source-claim-text,.view-host .ph-source-quote{font-size:16px}.view-host .ph-diff-text{font-size:17px;line-height:1.5}.view-host .ph-draft-values{font-size:15px;gap:8px}.view-host .ph-draft-tab-name,.view-host .ph-draft-tab-value,.view-host .ph-segment{font-size:14px}.view-host .ph-each-line,.view-host .ph-each-message,.view-host .ph-each-flag{font-size:15px;line-height:1.4}.view-host .ph-each-fold-shown{font-size:16px}.view-host .ph-each-fold-others{font-size:14px}.view-host .ph-each-choice{font-size:14px;padding:12px 8px;min-height:42px}.view-host .ph-each-choice.ph-picked{background:#1d1d1f;color:#fff}.view-host .ph-kind-icon{width:18px;height:18px}.view-host .ph-total{font-size:32px}.view-host .ph-strip{font-size:21px}.view-host .ph-happens,.view-host .ph-terms,.view-host .ph-item-detail{font-size:16px}.view-host .ph-cannot,.view-host .ph-strip-read,.view-host .ph-strip-off{font-size:14px}.view-host .ph-question{font-size:19px}.view-host .ph-matrix-label,.view-host .ph-matrix-cell,.view-host .ph-matrix-head-title,.view-host .ph-matrix-file{font-size:13px}.view-host .ph-matrix-try input{font-size:16px}.view-host .ph-schedule-name,.view-host .ph-schedule-slack{font-size:13px}.view-host .ph-space-path,.view-host .ph-space-plan,.view-host .ph-space-key{font-size:14px}.view-host .ph-space-plan span{padding:10px 12px;min-height:42px;display:inline-block}.view-host .ph-space-head,.view-host .ph-space-frees,.view-host .ph-space-disk{font-size:17px}.view-host input[type=range]{width:100%;accent-color:var(--ink);min-height:40px}.ph-control{margin:3px}.ph-controls{display:flex;gap:6px;flex-wrap:wrap}.ph-control small{display:block}.vault-lines{white-space:pre-line;font-size:16px;margin-top:8px}.vault-entry .ph-control{margin-top:12px}.batch-options{display:grid;gap:8px;margin-top:10px}.batch-options .ph-control{text-align:left;display:flex;align-items:center;gap:10px}.ph-batch-photo{width:55px;height:55px;object-fit:contain}.plan-edit-row{display:flex;align-items:start;gap:8px;margin:12px 0;flex-wrap:wrap}.plan-edit-row label{flex:1;min-width:60%}.plan-edit-row small{display:block}.plan-edit-row button{font-size:13px}.checkin-strip{display:flex;overflow:auto;gap:8px;margin-bottom:16px}.checkin-strip button{flex:none;max-width:180px;white-space:normal;text-align:left}.ph-checkin form{margin-top:20px}.ph-checkin form button{margin-top:10px}.sketch-board{position:relative}.sketch-board img{display:block;width:100%}.sketch-board canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}.rich-view figure{margin:0}.rich-view img{display:block;width:100%;height:auto}.figure-pair,.diagram-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rich-view .figure-pair .ph-card{padding:8px}.diagram-swipe{display:flex;overflow:auto;scroll-snap-type:x mandatory;gap:16px}.diagram-swipe>.ph-card{flex:0 0 92%;scroll-snap-align:start}.rich-view h3{font-size:16px}.rich-view pre{overflow:auto;background:#f6f6f6;padding:10px;border-radius:8px;font-size:13px;white-space:pre}.rich-view .code-add{background:#e3f5e7;color:#235c32}.rich-view .code-del{background:#ffe8e5;color:#8c3023}.ci-failed{color:#a82014}.rich-view code{display:block;font-family:ui-monospace,monospace}.floorplan-picture{position:relative}.plan-rect{position:absolute;border:2px solid #141413;background:#14141317;font-size:13px;overflow:hidden}.timeline-bar{background:#d5d5dd;border-radius:5px;padding:6px 4px;min-width:30px;margin-top:7px;font-size:13px}.timeline-bar.blocked{background:#f0ded9}.seats-chart{display:block;width:100%;max-height:300px}.seats-chart text{font-size:16px}.view-host .ph-mode-row{grid-template-columns:repeat(2,minmax(0,1fr))}.ph-mode video{max-width:100%}
/* Inset grouped settings, like the native Vault form. */
.settings-topbar { border: 0; }
.settings-topbar .bar-button { font-size: 17px; padding: 10px 0 10px 12px; }
.settings-content { padding-top: 8px; }
.settings-content .page-title { margin-bottom: 16px; }
.settings-note { color: var(--muted); font-size: 15px; margin: 0 4px 24px; }
.settings-group { overflow: hidden; margin-bottom: 14px; }
.settings-key { display: grid; gap: 4px; padding: 16px; }
.settings-key code { color: var(--muted); font: 15px/1.45 ui-monospace,SFMono-Regular,monospace; }
.settings-action { display: block; width: 100%; min-height: 48px; padding: 12px 16px; text-align: left; border: 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--blue); }
.settings-remove { color: #d70015; }
.api-key-form .field { margin-top: 0; }
.api-key-form .link-button { display: block; margin: 4px auto -8px; }
.settings-footnote,.settings-notice { margin: 12px 4px; color: var(--muted); font-size: 14px; }
.limit-key-link { display: block; margin: 0 0 16px; color: var(--blue); font-size: 15px; }
.session-content > .limit-key-link { margin: 0 16px 16px; }
/* ChatNativeTheme, IntraPickCard and ChatView's framed thread. */
.native.claude {
  --wash: #faf9f5; --surface: #fff; --ink: #141413; --muted: #73726c;
  --line: #e5e3da; --person-bubble: #f0eee6; --card-edge: #e3e1d8;
  background: var(--wash);
}
.native.chatgpt {
  --wash: #fff; --surface: #f4f4f4; --ink: #0d0d0d; --muted: #5d5d5d;
  --line: #e3e3e3; --person-bubble: #f4f4f4; --card-edge: #e3e3e3;
  background: var(--wash);
}
.session-topbar {
  min-height: 76px; padding: max(16px,env(safe-area-inset-top)) 16px 16px;
  border: 0; background: var(--wash); gap: 12px;
}
.toolbar-pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 17px; border: 0; border-radius: 28px; background: var(--toolbar);
  color: var(--ink); font-size: 17px; font-weight: 400;
  box-shadow: 0 12px 28px #00000007; backdrop-filter: blur(16px);
}
.toolbar-icon { width: 44px; padding: 10px; }
.toolbar-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.arm-paths .session-topbar { min-height: 64px; padding-top: max(4px,env(safe-area-inset-top)); }
.native .topbar { border: 0; background: var(--wash); }
.native-content, .arm-chat .session-content, .arm-chat_plus .session-content { padding-bottom: 0; }
.view-host.is-chat { background: transparent; }
.chat-shell {
  padding: 14px 20px 114px; min-height: calc(100dvh - 76px);
  display: flex; flex-direction: column; --chat-serif: "Iowan Old Style",Georgia,serif;
}
/* Safari's UI serif is New York. Chromium maps ui-serif to Times, so use
   the closest installed book face there, without distributing Apple's font. */
@supports (font: -apple-system-body) { .chat-shell { --chat-serif: ui-serif; } }

.chat-thread { display: flex; flex-direction: column; gap: 28px; flex: 1; min-width: 0; }
.chat-shell::after {
  content: ""; position: fixed; left: 50%; transform: translateX(-50%);
  bottom: var(--keyboard-inset,0px); width: min(100%,var(--phone-width)); height: 110px;
  background: linear-gradient(to bottom,transparent,var(--wash) 14px); z-index: 5; pointer-events: none;
}
.chat-message { min-width: 0; overflow-wrap: break-word; }
.chat-message.person {
  align-self: flex-end; max-width: calc(100% - 36px); background: var(--person-bubble);
  border-radius: 20px; padding: 14px 16px; color: var(--ink);
  font: 400 17px/24px -apple-system,BlinkMacSystemFont,system-ui,sans-serif;
}
.chat-message.person .chat-markdown { font: inherit; }
.chat-message.agent { width: 100%; padding: 0; background: none; }
.chat-shell.claude .chat-message.agent > .chat-markdown,
.chat-shell.claude .blank-answer > .chat-markdown {
  font: 400 18px/27px var(--chat-serif); color: var(--ink);
}
.chat-shell.chatgpt .chat-markdown { font: 400 17px/24px -apple-system,BlinkMacSystemFont,system-ui,sans-serif; }
.chat-shell.chatgpt .chat-message.person { max-width: calc(100% - 64px); border-radius: 22px; padding-top: 11px; padding-bottom: 11px; }
.chat-markdown { overflow-wrap: break-word; }
.chat-markdown p { margin: 0 0 15px; overflow-wrap: break-word; }
.chat-markdown p:last-child { margin-bottom: 0; }
.chat-markdown strong { font-weight: 700; }
.chat-markdown h1,.chat-markdown h2,.chat-markdown h3 { font-size: 20px; line-height: 27px; margin: 23px 0 15px; }
.chat-markdown h1 { font-size: 22px; }
.chat-markdown h3 { font-size: 18px; }
.chat-markdown ul,.chat-markdown ol { padding-left: 20px; margin: 0 0 15px; }
.chat-markdown li { padding-left: 0; margin: 0 0 9px; overflow-wrap: break-word; }
.chat-markdown li:last-child { margin-bottom: 0; }
.chat-markdown blockquote { border-left: 3px solid var(--line); margin: 15px 0; padding-left: 12px; }
.chat-markdown code { font: .84em/1.5 ui-monospace,SFMono-Regular,monospace; background: var(--inline-code); border-radius: 4px; padding: 2px 4px; }
.chat-markdown pre { overflow: auto; background: var(--code-fill); padding: 14px; border-radius: 12px; font-size: 15px; white-space: pre; }
.chat-markdown pre code { background: none; padding: 0; }
.md-table { overflow: auto; max-width: 100%; margin: 15px 0; }
.md-table table { border-collapse: collapse; min-width: 100%; font-size: 16px; }
.md-table th,.md-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); min-width: 90px; vertical-align: top; }
.md-image { display: block; max-width: 100%; height: auto; margin: 14px 0; }
.chat-composer {
  position: fixed; left: 50%; transform: translateX(-50%);
  width: calc(100% - 24px); max-width: calc(var(--phone-width) - 24px);
  bottom: calc(var(--keyboard-inset,0px) + max(34px,env(safe-area-inset-bottom)));
  display: flex; align-items: flex-end; gap: 8px; z-index: 6; margin: 0;
  border: 1px solid var(--line); border-radius: 26px; background: var(--surface);
  box-shadow: none; padding: 6px 7px 6px 8px;
}
.chat-composer textarea {
  display: block; flex: 1; border: 0; border-radius: 0; background: transparent;
  padding: 6px 0 6px 6px; min-height: 34px; max-height: 144px; resize: none;
  font: 400 17px/22px -apple-system,BlinkMacSystemFont,system-ui,sans-serif;
}
.chat-composer textarea::placeholder { color: #c2c2c6; opacity: 1; }
.chat-composer textarea:disabled { opacity: 1; }
.chat-composer .chat-send {
  border: 0; border-radius: 50%; width: 32px; height: 32px; flex: none;
  background: var(--ink); color: var(--wash); font: 600 23px/32px -apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  padding: 0; margin-bottom: 1px;
}
.chat-composer .chat-send:disabled { opacity: .16; }
.composer-more { position: relative; flex: none; }
.composer-more > summary {
  list-style: none; display: flex; align-items: center; justify-content: center;
  color: var(--muted); width: 30px; height: 34px; font: 300 27px/1 -apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  cursor: pointer;
}
.composer-more > summary::-webkit-details-marker { display: none; }
.composer-more > div { position: absolute; bottom: calc(100% + 16px); left: 0; padding: 6px; width: 180px; background: var(--wash); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 20px #0001; }
.composer-more button { display: block; width: 100%; padding: 10px; text-align: left; background: none; border: 0; font-size: 15px; }
.message-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; font: 13px -apple-system,BlinkMacSystemFont,system-ui,sans-serif; color: var(--muted); }
.message-actions button { background: none; border: 0; font-size: 13px; padding: 5px; }
.message-versions { display: flex; align-items: center; }
.chat-thought { font: 15px -apple-system,BlinkMacSystemFont,system-ui,sans-serif; color: var(--muted); margin-bottom: 14px; }
.chat-thought p { margin-top: 10px; }
.chat-thinking { color: var(--muted); font-size: 15px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.chat-options { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.chat-option {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 7px 14px 7px 7px; border: 1px solid var(--card-edge); border-radius: 28px;
  background: transparent; font-size: 15px; line-height: 21px; text-align: left;
}
.chat-letter { display: flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--fill); font-size: 13px; font-weight: 600; }
.chat-followups { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.chat-pick { padding: 16px; border: 1px solid var(--line); border-radius: 16px; margin: 16px 0; }
.native-options { display: grid; gap: 6px; margin: 12px 0; }
.native-option { display: flex; align-items: center; gap: 12px; background: none; border: 0; text-align: left; padding: 12px 4px; font-size: 16px; }
.radio-dot { display: inline-block; width: 20px; height: 20px; border: 1.5px solid var(--muted); border-radius: 50%; flex: none; }
.native-option.on .radio-dot,.blank-option.on .radio-dot,.blank-other.on .radio-dot { border: 6px solid var(--ink); }
.blank-turn { position: relative; }
.blank-answer { position: relative; }
.blank-inline {
  display: inline; background: none; border: 0; border-radius: 2px; padding: 0;
  color: var(--muted); font: inherit; cursor: pointer; text-align: left;
  text-decoration-line: underline; text-decoration-style: dotted; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-skip-ink: none;
}
.blank-inline.touched { color: var(--ink); }
/* blanks_split: an empty blank says what is missing in grey, and the countdown under the lead-in is the only copy */
/* blank states: empty (grey words, thin grey underline), being edited (a light grey behind them), filled (ink, ink
   underline), changing over from grey to ink; the continuation's values are drawn filled the same way */
.blank-inline { transition: color .25s ease, text-decoration-color .25s ease, background-color .2s ease; }
.blank-inline.placeholder { color: var(--muted); text-decoration-style: solid; text-decoration-color: var(--card-edge); }
.blank-inline.filled { color: var(--ink); text-decoration-style: solid; text-decoration-color: var(--ink); }
.blank-inline.placeholder.is-open,.blank-inline.filled.is-open { background: var(--person-bubble); border-radius: 4px; }
.intra-countdown { margin: 1em 0 0; color: var(--muted); font: 400 13px/18px -apple-system,BlinkMacSystemFont,system-ui,sans-serif; }
/* the second call's words come in under the lead-in, in the same message, block by block */
.blank-continuation { margin-top: 1em; }
.blank-continuation.streaming > * { animation: blank-stream .45s ease-out both; }
.blank-continuation.streaming > *:nth-child(2) { animation-delay: .12s; } .blank-continuation.streaming > *:nth-child(3) { animation-delay: .24s; }
.blank-continuation.streaming > *:nth-child(4) { animation-delay: .36s; } .blank-continuation.streaming > *:nth-child(n+5) { animation-delay: .48s; }
@keyframes blank-stream { from { opacity: 0; } to { opacity: 1; } }
/* asked, not guessed (blanks_nopre): an empty gap to fill, its question read to screen readers */
.blank-inline.empty { display: inline-block; min-width: 4.5em; height: 1.1em; vertical-align: -0.15em;
  border-bottom: 1.5px solid var(--ink); border-radius: 0; text-decoration: none; }
.blank-inline.is-open { background: var(--person-bubble); }
.settled-lines { display: grid; gap: 8px; font: 400 15px/18px -apple-system,BlinkMacSystemFont,system-ui,sans-serif; color: var(--muted); }
.settled-line { display: flex; align-items: baseline; gap: 8px; }
.settled-emoji { display: inline-block; width: 20px; flex: none; text-align: center; }
.settled-value { text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.settled-value.touched { color: var(--ink); }
.settled-rule { border: 0; border-top: 1px solid var(--card-edge); margin: 16px 0 14px; }
.blank-chooser { color: var(--ink); font: 400 17px/22px -apple-system,BlinkMacSystemFont,system-ui,sans-serif; }
.blank-card { padding: 16px; border: 1px solid var(--card-edge); border-radius: 16px; margin-top: 12px; background: var(--wash); }
.blank-question { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.blank-question h2 { margin: 0; font-size: 17px; line-height: 22px; font-weight: 500; flex: 1; overflow-wrap: break-word; }
.blank-question > span { font-size: 15px; color: var(--muted); flex: none; }
.blank-options { display: grid; }
.blank-option,.blank-other { display: flex; align-items: center; gap: 12px; background: transparent; border: 0; border-radius: 0; text-align: left; width: 100%; padding: 7px 0; font-size: 17px; line-height: 22px; }
.blank-option > span:last-child { min-width: 0; overflow-wrap: break-word; }
.blank-facts { display: grid; grid-template-columns: minmax(48px,1fr) repeat(var(--fact-count),minmax(0,max-content)); width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 12px; line-height: 17px; }
.blank-facts thead,.blank-facts tbody,.blank-facts tr { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.blank-facts th,.blank-facts td { min-width: 0; padding: 7px 4px; text-align: left; border-bottom: 1px solid var(--card-edge); font-weight: 400; }
.blank-facts thead { color: var(--muted); }
.blank-facts tbody th { font-weight: 500; }
.blank-facts tr.on { background: var(--ink); color: var(--wash); }
.blank-fact-value { display: block; width: 100%; min-width: 0; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blank-fact-value:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.blank-fact-detail { margin-top: 9px; font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.blank-other { color: var(--muted); }
.blank-apply {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 14px; padding: 11px 16px; background: var(--ink); color: var(--wash);
  border: 0; border-radius: 28px; font-size: 15px; line-height: 20px; font-weight: 500;
}
.blank-custom { margin-top: 12px; }
.blank-custom input { font-size: 17px; background: var(--person-bubble)!important; padding: 9px 12px!important; border: 0!important; }
.blank-popover {
  position: absolute; width: min(280px,100%); z-index: 7; padding: 16px;
  border: 1px solid var(--card-edge); border-radius: 20px; background: var(--surface);
  box-shadow: 0 8px 18px #00000012; max-height: min(420px,65dvh); overflow-y: auto;
}
.blank-popover .blank-question { margin-bottom: 12px; }
.blank-popover .blank-question h2 { color: var(--muted); font-size: 16px; line-height: 20px; font-weight: 400; }
.blank-popover .blank-options { display: flex; flex-wrap: wrap; gap: 8px; }
.blank-popover .blank-option,.blank-popover .blank-other { display: inline-flex; width: auto; max-width: 100%; padding: 8px 12px; border: 1px solid var(--card-edge); border-radius: 24px; gap: 8px; color: var(--muted); font-size: 16px; line-height: 20px; box-shadow: 0 1px 2px #00000006; }
.blank-popover .blank-option.on { color: var(--wash); background: var(--ink); border-color: var(--ink); }
.blank-popover.blank-with-facts { width: 100%; max-height: min(560px,65dvh); }
.blank-popover .blank-other.on { display: none; }
/* asked, not guessed (blanks_nopre2): the card sits open in the answer, under the sentence that asks it */
.blank-popover.blank-open-inline { position: static; width: auto; max-height: none; margin: 4px 0 16px; box-shadow: none; }
/* Bruce Liu's Leaving Blanks, as blanks_split v2 draws it in our look: pills that wrap, a flag on a second smaller
   line inside its pill, a light fill when not picked and solid ink when picked, "+ Something else" last */
.blank-popover .blank-option,.blank-popover .blank-other { background: var(--person-bubble); border-color: transparent; box-shadow: none; }
.blank-popover .blank-option.on { background: var(--ink); border-color: var(--ink); color: var(--wash); }
.blank-popover .blank-option.flagged { border-radius: 18px; padding: 7px 14px; }
.blank-chip-text { display: grid; gap: 1px; text-align: left; }
.blank-flag { font-size: 12px; line-height: 15px; color: var(--muted); }
.blank-popover .blank-option.on .blank-flag { color: var(--wash); opacity: .75; }
.blank-popover:not(.blank-open-inline) { width: max-content; min-width: 220px; max-width: 100%; border-radius: 16px;
  box-shadow: 0 6px 24px #0000001a, 0 1px 3px #0000000f; animation: blank-rise .16s ease-out; }
@keyframes blank-rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.blank-popover .blank-question h2 { font: 400 13px/17px -apple-system,BlinkMacSystemFont,system-ui,sans-serif; color: var(--muted); }
.blank-done { margin-top: 12px; padding: 8px 16px; border: 0; border-radius: 20px; background: var(--ink); color: var(--wash);
  font: 500 15px/20px -apple-system,BlinkMacSystemFont,system-ui,sans-serif; }
.blank-done:disabled { opacity: .35; }
/* the pad (Bruce's k50): four poles round a square, a dot where the finger is, the output's sentence there under it */
.blank-pad { display: grid; grid-template-columns: auto 132px auto; grid-template-rows: auto 132px auto; gap: 6px 10px;
  align-items: center; justify-items: center; font: 400 13px/16px -apple-system,BlinkMacSystemFont,system-ui,sans-serif; color: var(--muted); }
.pad-pole.top { grid-column: 2; grid-row: 1; } .pad-pole.bottom { grid-column: 2; grid-row: 3; }
.pad-pole.left { grid-column: 1; grid-row: 2; } .pad-pole.right { grid-column: 3; grid-row: 2; }
.pad-area { grid-column: 2; grid-row: 2; position: relative; width: 132px; height: 132px; border-radius: 14px;
  background: var(--person-bubble); touch-action: none; cursor: crosshair; }
.pad-cross { position: absolute; inset: 10px; background: linear-gradient(var(--card-edge),var(--card-edge)) center/1px 100% no-repeat,
  linear-gradient(var(--card-edge),var(--card-edge)) center/100% 1px no-repeat; opacity: .8; }
.pad-seed { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); opacity: .45; }
.pad-seed.tl { left: 25%; top: 25%; } .pad-seed.tr { left: 75%; top: 25%; } .pad-seed.bl { left: 25%; top: 75%; } .pad-seed.br { left: 75%; top: 75%; }
.pad-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px #0000000f; }
.pad-preview { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--person-bubble); max-width: 260px;
  font-size: 15px; line-height: 21px; color: var(--ink); }
.pad-preview.loading { min-height: 21px; opacity: .5; }
/* the pad grows with its preview instead of scrolling inside itself (its Use this sat under the fold) */
.blank-popover.blank-pad-chooser,.blank-popover:has(.blank-done) { max-height: none; overflow: visible; }
/* room under the answer while a popover is open, so a tall one (the pad) can be scrolled clear of the composer */
.blank-popover-room { flex: none; height: 380px; margin-top: -28px; }
.blank-popover .blank-custom #blank-text { background: transparent!important; border: 1px solid var(--card-edge)!important; border-radius: 24px; }
.blank-popover .blank-custom { display: flex; align-items: center; gap: 6px; }
.blank-popover .blank-custom input { flex: 1; font-size: 16px; line-height: 20px; }
.blank-popover .blank-custom .blank-apply { flex: none; width: 36px; height: 36px; padding: 0; margin: 0; font-size: 20px; }
.blank-popover .blank-custom-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.blank-swatch { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px #0002; flex: none; }
.intra-working { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: auto; color: var(--muted); font-size: 15px; line-height: 20px; }
.working-spark { font-size: 20px; }
.watch-work { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 12px; border: 0; background: transparent; color: var(--muted); flex: none; }
.watch-work svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.watch-work path { fill: currentColor; stroke: none; }
.intra-redo { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
/* Paths uses the same task bubble, while its generated cards keep their own type. */
.view-host .ph-body > .ph-goal { max-width: calc(100% - 56px); margin: 0 0 18px auto; padding: 10px 15px; border-radius: 20px; background: var(--person-bubble); font-size: 17px; line-height: 22px; color: var(--ink); }
.view-host .ph-heading { font-size: 20px; font-weight: 600; letter-spacing: 0; line-height: 25px; margin-bottom: 16px; }
.arm-paths .view-host .ph-body { padding-top: 0; }
.view-host .ph-cards .ph-stack { gap: 14px; }
.view-host .ph-cards .ph-card { border-radius: 18px; }
.view-host .ph-cards .ph-card-head { gap: 14px; }
.view-host .ph-cards .ph-photo { width: 92px; height: 92px; border-radius: 12px; }
.view-host .ph-cards .ph-photo .ph-letter { top: 5px; left: 5px; box-shadow: 0 1px 3px #0002; }
.view-host .ph-cards .ph-title { font-size: 17px; line-height: 20px; }
.view-host .ph-cards .ph-title-row { gap: 8px; }
.view-host .ph-cards .ph-price { flex: none; font-size: 20px; line-height: 24px; font-weight: 600; margin: 0; font-variant-numeric: tabular-nums; }
.view-host .ph-cards .ph-second { margin-top: 4px; font-size: 15px; line-height: 18px; font-weight: 500; }
.view-host .ph-cards .ph-others { margin-top: 4px; font-size: 15px; line-height: 18px; }
.view-host .ph-cards .ph-row-end { margin-top: 12px; }
.view-host .ph-cards .ph-next,.view-host .ph-cards .ph-link { font-size: 15px; line-height: 18px; }
.view-host .ph-phone .ph-card.ph-selected { box-shadow: inset 0 0 0 2.5px var(--ink); }
.view-host .ph-footer { padding: 8px 16px max(38px,env(safe-area-inset-bottom)); }
.view-host .ph-button { padding: 21px 12px; border-radius: 16px; line-height: 21px; }
.view-host .ph-slider-card .ph-title { font-size: 20px; }
.view-host .ph-chart-axis,.view-host .ph-chart-caption { font-size: 11px; }
.view-host .ph-slider-labels { font-size: 13px; }
.summary{padding:16px}.summary dl,.option-detail dl{display:grid;grid-template-columns:minmax(60px,auto) minmax(0,1fr);gap:10px 16px}.summary dt,.option-detail dt{color:var(--muted);font-size:15px}.summary dd,.option-detail dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.summary>.primary{margin-top:20px}.summary .link-button{display:block}.external{text-decoration:none}.survey{padding:20px;margin:18px 0}.survey h2{font-size:20px;line-height:1.35;font-weight:500;margin:0 0 24px}.survey .primary{margin-top:22px}.survey-choice{display:flex;gap:10px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);font-size:16px}.scale-buttons{display:flex;gap:8px;justify-content:space-between}.scale-buttons label{position:relative;flex:1;text-align:center}.scale-buttons input{position:absolute;opacity:0;width:100%;height:100%;left:0;top:0;margin:0;cursor:pointer}.scale-buttons span{display:block;border:1px solid var(--line);border-radius:8px;padding:12px 5px}.scale-buttons input:checked+span{background:var(--ink);color:var(--on-ink)}.scale-buttons input:focus-visible+span{outline:3px solid #007aff}.scale-labels{display:flex;justify-content:space-between;gap:20px;margin:12px 0;color:var(--muted);font-size:13px}.scale-labels>span{max-width:48%}.scale-labels>span:last-child{text-align:right}.survey input[type=range]{width:100%;accent-color:var(--ink);min-height:44px}.survey output{display:block;text-align:center;font-variant-numeric:tabular-nums}.modal-backdrop,.survey-overlay{position:fixed;inset:0;z-index:20;background:#0005;display:flex;justify-content:center;align-items:end;padding:18px 0 0}.modal,.survey-overlay>section{max-width:560px;width:100%;max-height:94dvh;overflow:auto;overscroll-behavior:contain;background:var(--wash);border-radius:24px 24px 0 0;padding:14px 20px max(24px,env(safe-area-inset-bottom));box-shadow:0 -5px 40px #0002}.modal.wide{max-width:1000px}.modal-top{display:flex;justify-content:flex-end}.modal h2{font-size:24px}.modal form>label{display:block;margin-bottom:8px}.modal form>.primary{margin-top:18px}.modal form>.danger{margin-top:16px}.modal .option-detail .ph-window{position:relative}.modal .option-detail .ph-photo{width:100%;height:auto}.modal .option-detail .ph-photo img{height:auto}.modal .path-pages{display:grid;gap:16px}.modal .path-pages figure{margin:0}.modal .path-pages figcaption{font-size:14px;color:var(--muted)}.full-image{display:block;width:auto;max-width:100%;margin:auto}.highlight{background:#fff0a7;border-radius:5px;padding:8px}.live-window{position:relative;overflow:auto;background:#e5e5ea;min-height:150px}.live-window img{display:block;width:100%;touch-action:pan-y}.live-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.live-controls form{width:100%;margin-top:14px}.live-controls label{display:block;font-size:15px;margin-bottom:6px}.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}
@media(min-width:700px){body{background:#e8e8ed}.app-shell{box-shadow:0 0 0 1px #ddd;min-height:100dvh}.modal-backdrop,.survey-overlay{align-items:center;padding:24px}.modal,.survey-overlay>section{border-radius:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}

.review-wipe{position:relative}.review-wipe .ph-picture{display:block;width:100%}.ph-review-before{position:absolute;inset:0;width:100%;height:100%}.modal iframe{display:block;width:100%;height:70dvh;border:0}.md-source-link{padding:0;border:0;background:none;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px}.code-copy{display:block;margin-top:10px;padding:5px 8px;font:13px -apple-system,BlinkMacSystemFont,system-ui,sans-serif;background:transparent;border:1px solid #c7c7c7;border-radius:6px}.view-host .ph-day-chip{font-size:14px;padding:10px;min-height:40px}.view-host .ph-day-chips{max-height:240px;overflow:auto}
.view-host .ph-phone{color:var(--ink);color-scheme:inherit}.view-host .ph-body{padding-bottom:130px}.view-host .ph-footer{position:fixed;left:50%;transform:translateX(-50%);width:min(100%,var(--phone-width));bottom:var(--keyboard-inset,0px)}.view-host .ph-map-plane{height:260px}.view-host .ph-pin{width:26px;height:26px;font-size:13px}.view-host .ph-place-label{font-size:12px;top:30px}.view-host .ph-timeline,.view-host .ph-calendar-strip{zoom:1.25;max-width:100%}.view-host .ph-slot,.view-host .ph-slot-range{font-size:10px}.view-host .ph-day-label{font-size:16px}.native .view-host .ph-card{background:var(--surface);color:var(--ink)}.native .view-host .ph-footer{background:var(--wash)}

/* SwiftUI's inset grouped Form/List and the shared PickBar. */
.entry-topbar { min-height: 56px; padding: 6px 16px; border: 0; }
.entry-content { padding: 0 20px 132px; }
.entry-content .page-title,.stopped-content .page-title {
  font-size: 34px; line-height: 41px; letter-spacing: -.7px; margin: 4px 0 28px;
}
.entry-shell .card { border-radius: 16px; overflow: hidden; }
.grouped-input input#code,.grouped-input input#signin-code {
  border: 0; border-radius: 0; padding: 16px; min-height: 56px;
  font: 20px/25px ui-monospace,SFMono-Regular,monospace; text-transform: uppercase;
}
.grouped-input input#code::placeholder { text-transform: none; }
.grouped-input input#email { border: 0; border-radius: 0; padding: 16px; min-height: 56px; font-size: 17px; line-height: 25px; }
.signin-content .page-title { margin-bottom: 14px; }
.signin-content > p { font-size: 17px; line-height: 25px; margin-bottom: 28px; }
.demo-group .grouped-action + .grouped-action { border-top: 1px solid var(--line); }
.waitlisted-shell .bottom-action { text-align: center; }
.waitlisted-shell .bottom-action .link-button { min-height: 62px; }
.demo-group { margin-top: 32px; }
.grouped-action { display: block; width: 100%; min-height: 50px; padding: 13px 16px; text-align: left; border: 0; background: var(--surface); }
input::placeholder,textarea::placeholder { color: var(--muted); opacity: 1; }
.home-composer textarea#goal {
  border: 0; padding: 16px; border-radius: 16px; min-height: 86px; resize: none;
  background: var(--surface); font: inherit;
}
.tasks-section { margin-top: 30px; }
.tasks-section .section-title { margin: 0 16px 8px; color: var(--muted); font-size: 13px; line-height: 18px; font-weight: 400; text-transform: uppercase; letter-spacing: .1px; }
.task-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 70px; padding: 13px 16px; border: 0; background: var(--surface); text-align: left; }
.task-row + .task-row { position: relative; }
.task-row + .task-row::before { content: ""; position: absolute; height: 1px; background: var(--line); top: 0; left: 16px; right: 0; }
.task-copy { display: grid; gap: 3px; flex: 1; min-width: 0; }
.task-name { font-size: 17px; line-height: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-store { color: var(--muted); font-weight: 400; }
.task-state { color: var(--muted); font-size: 15px; line-height: 20px; }
.task-state.awaiting { color: var(--blue); font-weight: 600; }
.row-chevron { color: var(--muted); font-size: 24px; line-height: 20px; font-weight: 400; }
.bottom-action {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: var(--keyboard-inset,0px);
  z-index: 5; width: min(100%,var(--phone-width)); padding: 8px 16px max(34px,env(safe-area-inset-bottom));
  background: color-mix(in srgb,var(--wash) 92%,transparent); backdrop-filter: blur(16px);
}
.bottom-action .primary { border-radius: 16px; min-height: 62px; padding: 20px 16px; font-size: 17px; line-height: 22px; }
.primary:disabled { opacity: 1; background: var(--fill); color: var(--muted); }
.consent-shell,.stopped-shell { --wash: var(--page); }
.consent-content { padding: 4px 20px 132px; }
.consent-content .page-title { font-size: 34px; line-height: 41px; letter-spacing: -.7px; margin: 0 0 14px; }
.consent-body { max-height: none; overflow: visible; padding: 0; }
.consent-body p { font-size: 17px; line-height: 25px; margin-bottom: 14px; }
.stopped-shell .session-topbar { min-height: 64px; padding: 8px 16px 12px; }
.stopped-content { padding: 0 16px 132px; }
.stopped-goal { max-width: calc(100% - 56px); margin: 0 0 20px auto; padding: 10px 15px; border-radius: 20px; background: var(--person-bubble); font-size: 17px; line-height: 22px; }
.stopped-reason { font-size: 17px; line-height: 25px; }
.stopped-content .link-button { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.vault-summary { padding: 12px 0; border-bottom: 1px solid var(--line); }
.vault-summary p { font-size: 15px; color: var(--muted); margin: 4px 0 0; }
/* The console keeps literal fallback colors; only the web shell supplies these. */
.app-shell,.modal,.survey-overlay > section {
  --ph-ink: var(--ink); --ph-on-ink: var(--on-ink); --ph-muted: var(--muted);
  --ph-wash: var(--wash); --ph-surface: var(--surface); --ph-line: var(--line);
  --ph-fill: var(--fill); --ph-blue: var(--blue); --ph-danger: #d70015; --ph-map: #e9eef2;
}
.view-host .ph-card { background: var(--surface); }
.view-host .ph-footer { background: var(--wash); }
.view-host .ph-photo { background: #fff; }
.chat-letter { color: var(--ink); }
.chat-composer textarea::placeholder { color: var(--muted); }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #fff; --muted: #98989d; --line: #38383a; --surface: #1c1c1e;
    --wash: #000; --page: #000; --on-ink: #000; --fill: #2c2c2e; --blue: #7ab7ff;
    --toolbar: #2c2c2ef2; --person-bubble: #2c2c2e; --card-edge: #38383a;
    --inline-code: #262626; --code-fill: #1e1e1c;
  }
  .native.claude {
    --wash: #151515; --ink: #f8f8f6; --muted: #94968d; --surface: #1f1f1d;
    --line: #30302e; --person-bubble: #2b2b29; --card-edge: #2b2e2d;
    --on-ink: #151515; --fill: #2b2b29; --inline-code: #262626; --code-fill: #1e1e1c;
  }
  .native.chatgpt {
    --wash: #000; --ink: #fff; --muted: #afafaf; --surface: #1f2221;
    --line: #2a2a2a; --person-bubble: #3f4241; --card-edge: #2a2a2a;
    --on-ink: #000; --fill: #3f4241; --inline-code: #2f2f2f; --code-fill: #171717;
  }
  .app-shell,.modal,.survey-overlay > section { --ph-danger: #ff6961; --ph-map: #202a32; }
  .topbar { border-color: var(--line); }
  .error { background: #3c1c19; color: #ffb4ab; }
  .danger { background: #a82018; color: #fff; }
  .settings-remove,.ci-failed { color: #ff6961; }
  .highlight { background: #554600; color: #fff4c0; }
  .rich-view pre { background: var(--code-fill); }
  .rich-view .code-add { background: #183a24; color: #a7e4b2; }
  .rich-view .code-del { background: #471d19; color: #ffb4ab; }
  .live-window { background: var(--fill); }
  .timeline-bar { background: var(--fill); }
  .timeline-bar.blocked { background: #50302b; }
  .plan-rect { border-color: var(--ink); background: #ffffff17; }
  .view-host .ph-each-choice.ph-picked { background: var(--ink); color: var(--on-ink); }
  .view-host .ph-letter:not(.ph-letter-selected) { background: #fff; color: #1d1d1f; }
}
@media (min-width: 700px) and (prefers-color-scheme: dark) {
  body { background: #151518; }
  .app-shell { box-shadow: 0 0 0 1px #38383a; }
}

.view-host .ph-button.ph-disabled { opacity: 1; background: var(--fill); color: var(--muted); }

/* a Paths stop as the planner writes it (phone.js stopDraft): drawn in askView's own rows; only the bars are its own */
.ph-draft .draft-option.writing .ph-title { color: var(--muted); }
.draft-bar { display: block; height: 8px; width: 60%; margin: 5px 0; border-radius: 4px; background: var(--person-bubble); }
.draft-bar.short { width: 40%; height: 12px; } .draft-bar.heading { width: 55%; height: 22px; display: inline-block; }
.ph-draft .draft-option.pending { opacity: .55; }
.ph-draft .draft-fold { opacity: .5; }
@media (prefers-reduced-motion: no-preference) { .ph-draft .draft-option.writing .draft-bar { animation: draft-breathe 1.4s ease-in-out infinite; } }
@keyframes draft-breathe { 50% { opacity: .5; } }

/* Bruce Liu's Leaving Blanks as k44/k47 draw it (Nathan, Nov 19: "pills are too big"): one-line white chips with a
   hairline edge, 15px words, about 32px tall, the flaw after the label as a smaller grey suffix rather than a second
   line, ink when picked; a content-sized card right under the blank's line; the blank grey with a thin underline and
   no fill, ink once filled */
.blank-popover { --chip-edge: #e6e6e6; --chip-suffix: #8a8a8a; }
.blank-popover:not(.blank-open-inline) { border-radius: 14px; padding: 12px 14px 14px; border-color: var(--chip-edge);
  box-shadow: 0 6px 22px #00000014, 0 1px 3px #0000000d; }
.blank-popover .blank-question { margin-bottom: 10px; }
.blank-popover .blank-options { gap: 8px; }
.blank-popover .blank-option,.blank-popover .blank-other,.blank-popover .blank-option.flagged {
  display: inline-flex; align-items: baseline; max-width: 100%; padding: 5px 14px; gap: 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--chip-edge); color: var(--ink);
  font: 400 15px/20px -apple-system,BlinkMacSystemFont,system-ui,sans-serif; white-space: nowrap; box-shadow: none; }
.blank-popover .blank-other { color: var(--muted); }
.blank-popover .blank-option.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
/* one line whenever it fits; a chip wider than the card (a long flaw) wraps its suffix rather than cutting it, since
   the flaw is what the pick turns on */
/* a chip is always one line (GENUI, Nov 19: a wrapped suffix made two-line boxes, a white slab when picked in dark):
   the planner's tag is 24 characters at most (context_blanks), a longer one takes a row of its own, and only past the
   card's width does the tag, never the label, end in an ellipsis */
.blank-popover .blank-option,.blank-popover .blank-other,.blank-popover .blank-option.flagged { white-space: nowrap; border-radius: 999px; }
.blank-popover .blank-chip-text { display: flex; align-items: baseline; min-width: 0; }
.blank-popover .blank-option > span:last-child,.blank-popover .blank-chip-text > span { min-width: 0; overflow: hidden;
  text-overflow: ellipsis; }
/* the label keeps its width (a weighted shrink still took a fraction of a pixel off it, enough for an ellipsis:
   "Retrieval survey (Calder 202...", D8 on r14-73) and is cut only when it alone is wider than the card */
.blank-popover .blank-chip-text > span:first-child { flex: 0 0 auto; max-width: 100%; }
.blank-popover .blank-flag { flex: 0 1000 auto; white-space: pre; }
.blank-popover .blank-flag { font-size: 13px; line-height: 20px; color: var(--chip-suffix); }
.blank-popover .blank-flag::before { content: " \00b7  "; }
.blank-popover .blank-option.on .blank-flag { color: var(--surface); opacity: .7; }
.blank-inline.is-open,.blank-inline.placeholder.is-open,.blank-inline.filled.is-open { background: none; border-radius: 0; }
.blank-inline.placeholder,.blank-inline.filled { text-decoration-line: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; }
.blank-inline.placeholder { color: var(--muted); text-decoration-color: currentColor; }
.blank-inline.filled { color: var(--ink); text-decoration-color: currentColor; }
@media (prefers-color-scheme: dark) { .blank-popover { --chip-edge: #3a3a3c; --chip-suffix: #8e8e93; } }
/* k50's pad: a larger square with a hairline edge, the seeds and the dot grey */
.blank-pad { grid-template-columns: auto 156px auto; grid-template-rows: auto 156px auto; }
.pad-area { width: 156px; height: 156px; border: 1px solid var(--chip-edge, #e6e6e6); background: var(--wash); }

/* Nathan, Nov 19 ("ui can generally look better", Gregg's walk): cards slid under the floating top bar along a hard
   straight edge; they now fade into it. "Details for A" read as a caption; it reads as a link now. */
.arm-paths .session-topbar::after, .stopped-shell .session-topbar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none;
  background: linear-gradient(var(--wash), transparent);
}
.view-host .ph-link { color: var(--ink); font-weight: 500; }
.view-host .ph-link::after { content: " \203A"; color: var(--muted); font-weight: 400; }
/* Pickpath's spacing (Nathan, Nov 20: "Spacing bad"), on 4s: the task bubble shares the back button's row at rest
   (its max-width leaves the button's 56 px); 24 from the bubble to the question, 12 from the question to its card,
   16 between options, a subtitle 2 under its title at 20 px leading, and 16 from a card to what follows it. */
.view-host .ph-body > .ph-goal { margin-bottom: 24px; }
.view-host .ph-heading { margin-bottom: 12px; }
.view-host .ph-ask-card { gap: 16px; }
.view-host .ph-ask-row { padding: 0; }
.view-host .ph-ask-line { margin-top: 2px; line-height: 20px; }
.view-host .ph-fact-rows { margin-bottom: 0; }
.view-host .ph-body > .ph-ask-card { margin-bottom: 16px; }
.arm-paths .view-host .ph-body > .ph-goal:first-child { margin-top: -60px; }
html:not(.scrolled) .arm-paths .session-topbar { background: transparent; pointer-events: none; }
html:not(.scrolled) .arm-paths .session-topbar > * { pointer-events: auto; }
html:not(.scrolled) .arm-paths .session-topbar::after { opacity: 0; }
/* A diagram card's title wraps beside its letter, not under it, and its values line up with the title's words. */
.view-host .rich-option > .ph-title { display: flex; align-items: flex-start; gap: 8px; }
.view-host .rich-option > .ph-title > .ph-letter { flex: none; margin-top: -1px; }
.view-host .rich-option > .ph-row-values { margin: 4px 0 12px 31px; }
/* Drafting rows hold a finished row's usual height (a 22 px title, one 20 px line), and the question's bar its 25 px line,
   so text fills in place and Compare and the Pick bar don't move while options stream (Gregg's frames, Nov 20). */
.view-host .ph-draft .ph-heading .draft-bar.heading { height: 20px; margin: 2px 0 3px; vertical-align: top; }
.view-host .ph-draft .draft-option .ph-title { min-height: 22px; }
.view-host .ph-draft .draft-option .ph-title .draft-bar.short { height: 14px; margin: 4px 0; }
/* the line is 19 px in a landed row (its line-height): at 20 the fourth row landed 3 px higher (r14-176's live audit) */
.view-host .ph-draft .draft-option.writing .ph-ask-line { min-height: 19px; }
.view-host .ph-draft .draft-option .ph-ask-line .draft-bar { height: 12px; margin: 3.5px 0; }
/* While a pick sends, the screen stays as it is (no greyed page); the Pick bar says it's going. */
.app-busy .view-host [aria-disabled=true]:not(.ph-disabled) { opacity: 1; }
.app-busy .view-host .ph-footer .ph-button:not(.ph-disabled) { opacity: .75; }
/* A summary row's tap scrolls its card to just under the floating bar, smoothly. */
.view-host .ph-phone [data-ph-option] { scroll-margin-top: 72px; }
/* Done arrives instead of cutting in. */
@media (prefers-reduced-motion: no-preference) {
  .summary.arrive { animation: summary-in .22s ease-out both; }
  @keyframes summary-in { from { opacity: 0; } to { opacity: 1; } }
}
.ph-draft .draft-option.reserved { opacity: .3; }
/* The draft shows no Compare fold: most finished screens (diagrams, layouts, cards) have none, and it vanished. */
.view-host .ph-draft .draft-fold { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .view-host.arrive .ph-ask-line, .view-host.arrive .ph-body > :not(.ph-goal):not(.ph-heading):not(.ph-ask-card):not(.ph-stack),
  .view-host.arrive .ph-stack > :not(.ph-ask-card), .view-host.arrive .ph-footer {
    animation: arrive-in .32s ease-out both; animation-delay: var(--since, 0ms);
  }
  @keyframes arrive-in { from { opacity: 0; } to { opacity: 1; } }
}
/* Taiku's Questions card (Nathan, Nov 20: "look like agenttile a bit more"): each option its own bordered row, the
   chosen one outlined in ink. */
.arm-paths .view-host .ph-ask-card { gap: 8px; padding: 12px; }
.arm-paths .view-host .ph-ask-card .ph-ask-row { padding: 12px; margin: 0; border: 1px solid var(--card-edge); border-radius: 12px; transition: border-color .15s, background-color .15s; }
.arm-paths .view-host .ph-ask-card .ph-ask-row[aria-pressed=true] { border-color: var(--ink); }
.arm-paths .view-host .ph-draft .ph-ask-card .ph-ask-row { border-style: dashed; }
/* The action that sends sits at the bottom (Nathan, Nov 20: "Shouldn't send buttons generally be close to bottom"):
   Done's New task in a bar pinned there, and a Details sheet's Pick as its full-width last line, kept in view. */
.summary { padding-bottom: 112px; }
.summary-bar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, var(--phone-width)); z-index: 4;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--wash) 24px); }
.summary-bar .primary { min-height: 52px; font-size: 17px; }
.modal .option-detail [data-detail-pick] { position: sticky; bottom: 0; display: block; width: 100%; margin-top: 20px; border: 0;
  border-radius: 26px; padding: 15px 18px; background: var(--ink); color: var(--on-ink); font-size: 17px; font-weight: 600;
  box-shadow: 0 0 0 12px var(--wash); }
/* /try to the app is one cross-document transition where Safari has it (18.2+), not a blank frame between pages. */
@view-transition { navigation: auto; }
/* the rounded composer shows focus itself; WebKit's square ring around the textarea inside it doesn't (Nov 20) */
.chat-composer textarea:focus, .chat-composer textarea:focus-visible { outline: none; }
.chat-composer:focus-within { border-color: color-mix(in srgb, currentColor 35%, transparent); }
/* a finished chat has no composer, so no room is kept for one; its Done follows the thread closely (Nov 20) */
.chat-shell:not(:has(.chat-composer)) { padding-bottom: 8px; min-height: 0; }
/* nor the composer's fade, which sat over Done's New task bar and hid it (Gregg, Nov 20: no way on after Done) */
.chat-shell:not(:has(.chat-composer))::after { display: none; }
.native-content + .summary, .chat-shell + .summary, .session-content .chat-shell ~ .summary { padding-top: 8px; }
.chat-shell ~ .summary .page-title { font-size: 20px; margin-top: 0; }
/* a try Blanks turn lands whole (phone.js wholeTurn): no empty bubble while it's held, one fade when it comes */
.blank-turn.holding { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .blank-turn.arrive { animation: arrive-in .32s ease-out both; animation-delay: var(--since, 0ms); }
}
/* what Feedforward settled, above the question it answers (app.js withCarried) */
.ff-carried { display: grid; gap: 6px; margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 20px; }
.ff-carried .settled-line { display: flex; gap: 8px; }
/* the view transitions paint() runs: short, and the page's fixed bars aren't caught in the crossfade's snapshot */
::view-transition-group(*) { animation-duration: .28s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
/* a row picked from the draft reads as picked (solid ink edge), and Pick tapped then spins until the screen lands */
.arm-paths .view-host .ph-draft .ph-ask-card .ph-ask-row.can-pick { cursor: pointer; }
.arm-paths .view-host .ph-draft .ph-ask-card .ph-ask-row.can-pick[aria-pressed=true] { border-style: solid; border-color: var(--ink); }
.ph-draft .draft-footer .early-pick { display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.ph-draft .draft-footer .early-pick.is-busy::after { content: ""; width: 14px; height: 14px; border: 1.5px solid currentColor;
  border-top-color: transparent; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* a checked box's tick in the page's own colour: white on the dark theme's white box left no tick (GENUI, Nov 20) */
.ph-check.ph-checked svg path { stroke: var(--wash); }
.message-actions.held { visibility: hidden; pointer-events: none; }
/* a drawing in an option's Details keeps a width its labels read at and scrolls sideways (Gregg, Nov 20: D1's flow at
   the sheet's width put its labels at ~6 px) */
.option-detail .ph-window { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.option-detail .ph-window img { width: max(100%, 720px); max-width: none; height: auto; }
.draft-bar.long { width: 82%; }
/* the pinned bar crossfades at its own size when the draft becomes the screen: stretched between two differently
   sized bars it blurred for ~0.3 s on the phone (Gregg's final pass, Nov 20) */
::view-transition-group(pp-bar) { animation-duration: 0s; }
::view-transition-old(pp-bar), ::view-transition-new(pp-bar) { height: 100%; width: 100%; object-fit: none; object-position: 50% 50%; }
/* Compare, after apple.com/iphone/compare on a phone (Nathan, Nov 20: "too compact and a lil ugly"): a quiet 44 pt
   summary with its own chevron, two columns with a 20 pt gutter, each row's label across both over its values, the
   same value said once, the chosen column a rounded tint with room around it */
.view-host .ph-compare > summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px;
  color: var(--muted); font-size: 15px; cursor: pointer; }
.view-host .ph-compare > summary::-webkit-details-marker { display: none; }
.view-host .ph-compare .ph-chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  stroke-linejoin: round; transition: transform .2s ease; }
.view-host .ph-compare[open] > summary .ph-chev { transform: rotate(180deg); }
.view-host .ph-specs { padding: 4px; border-radius: 16px; }
/* the room is inside the sideways scroller, which clips: the chosen column's tint reaches into it, corners and all */
.view-host .ph-spec-grid { gap: 0 20px; padding: 12px 14px 10px; }
.view-host .ph-spec-wash { margin: -10px -12px; border-radius: 12px; }
.view-host .ph-spec-head { padding-bottom: 12px; border-bottom: .5px solid var(--line); }
.view-host .ph-spec-name { font-size: 15px; line-height: 20px; margin-top: 8px; }
.view-host .ph-spec-label { border-top: 0; padding: 16px 0 4px; font-size: 13px; line-height: 18px; color: var(--muted); }
.view-host .ph-spec-value { font-size: 15px; line-height: 21px; }
.view-host .ph-spec-same { color: var(--ink); }
.view-host .ph-spec-detail { padding-top: 12px; margin-top: 4px; font-size: 15px; }
.view-host .ph-row-vals { color: var(--muted); font-size: 14px; line-height: 19px; }
/* the long pick-several as one list: each option one compact row (title, then its values on one muted line), hairlines
   between, so seven fit over the Pick bar on a phone */
.view-host .ph-fact-rows:has(.ph-row-vals) { padding: 2px 0; gap: 0; }
.view-host .ph-fact-rows:has(.ph-row-vals) .ph-fact-row { border: 0; border-radius: 0; margin: 0; padding: 9px 14px; gap: 10px;
  align-items: center; box-shadow: none; background: transparent; }
.view-host .ph-fact-rows:has(.ph-row-vals) .ph-fact-row + .ph-fact-row { border-top: .5px solid var(--line); }
.view-host .ph-fact-rows:has(.ph-row-vals) .ph-title { font-size: 16px; line-height: 21px; }
.view-host .ph-fact-rows .ph-row-vals { font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-host .ph-fact-rows:has(.ph-row-vals) .ph-fact-row .ph-ask-line:not(.ph-row-vals) { display: none; }
.view-host .ph-fact-rows:has(.ph-row-vals) .ph-fact-row.ph-selected { background: var(--fill, rgba(127,127,127,.12)); }
/* for the Nov 20 demo: Compare past three options broke out of the phone (columns sized for two, words split mid-word),
   and the rows above already carry each option's verdict; the words card read as a stray empty field (Nathan, 10:49).
   Both come back redrawn after the meeting */
.view-host .ph-compare:has(.ph-spec-head ~ .ph-spec-head ~ .ph-spec-head ~ .ph-spec-head) { display: none; }
.view-host .ph-words { display: none; }
/* a try task's note at Done: one box and its button, under the result */
.try-note { display: flex; gap: 8px; align-items: flex-end; margin: 16px 0 8px; }
.try-note textarea { flex: 1; min-height: 44px; resize: none; border-radius: 14px; font-size: 16px; line-height: 1.35; padding: 11px 14px; }
.try-note button { flex: none; min-height: 44px; border-radius: 22px; padding: 0 18px; }
/* a try task's number, quiet */
/* under the back button: the middle of the bar is where Pickpath's prompt bubble sits (r14-141 drew over it) */
/* in the page under the back button, scrolling away with it (it stayed put over the text when it hung off the
   sticky bar: Gregg's Chat+ L5 recording, Nov 20) */
.session-shell { position: relative; }
.session-shell > .try-num { position: absolute; left: 16px; top: 50px; width: 44px; text-align: center; color: var(--muted);
  font-size: 12px; line-height: 16px; font-weight: 500; font-variant-numeric: tabular-nums; pointer-events: none; z-index: 6; }
.try-rate { display: flex; gap: 8px; margin-top: 16px; }
.try-thumb { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 22px; background: transparent; color: var(--muted); }
.try-thumb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.try-thumb.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.try-rate + .try-note { margin-top: 10px; }
/* what the agent did on a try it finished without asking: a line each */
.did-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.did-card li { font-size: 15px; line-height: 21px; }
.did-card li + li { padding-top: 10px; border-top: .5px solid var(--line); }
/* Pickpath's choice as iOS's inset grouped list (Settings, the Apple Pay sheet): one rounded group, rows split by
   hairlines, a picked row tinted, not boxed; each row its letter, a two-line title, one fact line, and at its end a small
   page of its evidence as Files draws a document (Nathan, Nov 20: boxes in boxes, figures hard to find, one screen) */
.arm-paths .view-host .ph-ask-card { gap: 0; padding: 0; border-radius: 14px; overflow: hidden; }
.arm-paths .view-host .ph-ask-card .ph-ask-row { position: relative; display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; margin: 0; border: 0; border-radius: 0; background: transparent; transition: background-color .15s; }
.arm-paths .view-host .ph-ask-card .ph-ask-row + .ph-ask-row::before, .arm-paths .view-host .ph-ask-card .ph-ask-row + .sr-acts + .ph-ask-row::before { content: ""; position: absolute; top: 0; left: 50px; right: 0;
  border-top: .5px solid var(--line); }
.arm-paths .view-host .ph-ask-card .ph-ask-row[aria-pressed=true],
.arm-paths .view-host .ph-ask-card .ph-ask-row.ph-selected { border: 0; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.arm-paths .view-host .ph-draft .ph-ask-card .ph-ask-row,
.arm-paths .view-host .ph-draft .ph-ask-card .ph-ask-row.can-pick[aria-pressed=true] { border: 0; }
.arm-paths .view-host .ph-ask-card .ph-copy { flex: 1; min-width: 0; }
.arm-paths .view-host .ph-ask-card .ph-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.arm-paths .view-host .ph-ask-card .ph-ask-line { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ph-ask-sep { display: none; }
.arm-paths .view-host .ph-ask-card .ph-ask-line .ph-ask-fact { display: inline; }
.arm-paths .view-host .ph-ask-card .ph-ask-line .ph-ask-sep { display: inline; }
@media (max-height: 600px) { .arm-paths .view-host .ph-ask-card .ph-title { -webkit-line-clamp: 1; } }
.view-host .ph-also { margin-top: 0; }
/* the evidence: a white page of the lines, tiny, as a document's thumbnail; diff lines keep their green and red */
.view-host .ph-ev { flex: none; position: relative; width: 48px; height: 60px; margin: 2px 0 0; padding: 0; overflow: hidden;
  border: .5px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 6px; background: #fbfbf9; cursor: pointer; }
.view-host .ph-ev img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.view-host .ph-ev-page { position: absolute; left: 0; top: 0; width: 185px; padding: 10px 8px; transform: scale(.26); transform-origin: top left;
  display: grid; gap: 1px; text-align: left; color: #3a3a3c; font: 400 13px/16px ui-monospace, Menlo, monospace; }
.view-host .ph-ev-page i { font-style: normal; white-space: pre; overflow: hidden; text-overflow: clip; }
.view-host .ph-ev-page i.ph-ev-add { background: #d6f5dc; color: #135c25; }
.view-host .ph-ev-page i.ph-ev-del { background: #fbdcdc; color: #8a1d1d; }
.view-host .ph-ev-page i.ph-ev-hunk { color: #6d6d72; }
/* the bar while nothing's picked: a quiet label, not a grey slab */
.arm-paths .view-host .ph-button.ph-disabled { background: transparent; color: var(--muted); }
/* the close look: what the lines show, the file, then the lines themselves, numbered */
.ph-ev-look { margin: 4px 0 16px; }
.ph-ev-caption { margin: 0 0 2px; font-size: 15px; line-height: 20px; }
.ph-ev-file { margin: 0 0 10px; color: var(--muted); font: 400 12px/16px ui-monospace, Menlo, monospace; }
.ph-ev-lines { margin: 0; padding: 8px 0; overflow-x: auto; border-radius: 10px; background: var(--wash);
  font: 400 12px/18px ui-monospace, Menlo, monospace; }
.ph-ev-line { display: block; padding: 0 12px 0 0; white-space: pre; }
.ph-ev-line b { display: inline-block; width: 30px; margin-right: 10px; text-align: right; color: var(--muted); font-weight: 400; user-select: none; }
.ph-ev-line.ph-ev-add { background: color-mix(in srgb, #34c759 16%, transparent); }
.ph-ev-line.ph-ev-del { background: color-mix(in srgb, #ff3b30 16%, transparent); }
.ph-ev-line.ph-ev-hunk { color: var(--muted); }
.ph-ev-figure { width: 100%; border-radius: 10px; display: block; }
/* the room kept under a Pickpath choice is the pinned bar's own height, not 130 px plus 24: the page scrolled 86 px into
   nothing (L7, Nov 20), so a screen that fits read as one that doesn't */
.arm-paths .session-content { padding-bottom: 0; }
.arm-paths .view-host .ph-body { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
/* a row says its title and one line: the value and the deciding fact, cut at the end; the whole of both is in the close look */
/* the fact that tells the options apart gets two lines, not one cut mid-word (GENUI on the iPhone, Nov 20, U3) */
.arm-paths .view-host .ph-ask-card .ph-ask-line { -webkit-line-clamp: 2; }
.arm-paths .view-host .ph-ask-card.is-tight .ph-ask-line { -webkit-line-clamp: 1; }
/* the line naming the list's values, as an iOS grouped list's section header: 13 px, muted, over the group (it was 9 px) */
.arm-paths .view-host .ph-ask-named { margin: 0 0 6px 16px; font-size: 13px; line-height: 18px; color: var(--muted); }
/* the evidence page in the screen's own scheme: a dark tile of light code in dark mode, the diff's colours muted, a
   hairline edge, as Files and Notes preview a document (Gregg: white tiles were the loudest thing on the screen) */
@media (prefers-color-scheme: dark) {
  .view-host .ph-ev { background: #2c2c2e; border-color: rgba(255,255,255,.14); }
  .view-host .ph-ev-page { color: #c7c7cc; }
  .view-host .ph-ev-page i.ph-ev-add { background: rgba(48,209,88,.22); color: #b4f0c2; }
  .view-host .ph-ev-page i.ph-ev-del { background: rgba(255,69,58,.22); color: #ffc2bd; }
  .view-host .ph-ev-page i.ph-ev-hunk { color: #8e8e93; }
}
/* a table's evidence as its numbers, a row a line, set to be read */
.view-host .ph-ev.ph-ev-nums { display: grid; align-content: center; gap: 1px; padding: 4px 3px; color: var(--ink);
  font: 600 12px/15px ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; text-align: center; }
.view-host .ph-ev.ph-ev-nums i { font-style: normal; white-space: nowrap; overflow: hidden; }
/* a try's Done on one screen with its bar: the thumbs and the note share a row, the title and the list sized down
   (Nov 20, N3: the thumbs sat under the New task bar, the page 155 px too tall) */
.try-done { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.try-done .page-title { font-size: 26px; line-height: 31px; margin-bottom: 6px; }
.try-done > p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 20px; }
.try-done .did-card { padding: 10px 14px; }
.try-done .did-card ul { gap: 8px; }
.try-done .did-card li { font-size: 14px; line-height: 19px; }
.try-done .did-card li + li { padding-top: 8px; }
.try-feedback { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; }
.try-feedback .try-rate { margin: 0; flex: none; }
.try-feedback .try-note { flex: 1; min-width: 0; margin: 0; }
.try-feedback .try-note textarea { min-height: 44px; height: 44px; }
/* a prose tile: its few words at a size that reads */
.view-host .ph-ev.ph-ev-words { display: block; padding: 5px 4px; color: var(--ink); text-align: left; overflow: hidden; }
.view-host .ph-ev.ph-ev-words span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
  font-size: 9.5px; line-height: 12px; font-weight: 500; overflow-wrap: anywhere; }
/* the close look's lines wrap rather than run off the sheet's edge */
.ph-ev-look .ph-ev-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.ph-ev-look .ph-ev-line { padding-left: 40px; text-indent: -40px; }
/* a try's work on its Done: its name and file, four lines of it as a page would show them, the rest on a tap */
.try-work { margin: 0 0 12px; border-radius: 14px; background: var(--surface); overflow: hidden; }
.try-work summary { display: grid; gap: 8px; padding: 12px 14px; list-style: none; cursor: pointer; }
.try-work summary::-webkit-details-marker { display: none; }
.try-work-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.try-work-head b { font-size: 15px; line-height: 20px; }
.try-work-head small { color: var(--muted); font: 12px ui-monospace, Menlo, monospace; white-space: nowrap; }
.try-work-peek { display: grid; padding: 8px 10px; border-radius: 8px; background: var(--wash); font: 12px/17px ui-monospace, Menlo, monospace; }
.try-work-peek i { font-style: normal; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.try-work[open] .try-work-peek { display: none; }
.try-work-all { margin: 0; padding: 0 14px 14px; max-height: 52dvh; overflow: auto; font: 12px/17px ui-monospace, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.try-work-all span { display: block; }
.try-work .ph-ev-add { background: rgba(48,160,80,.16); } .try-work .ph-ev-del { background: rgba(220,60,50,.14); } .try-work .ph-ev-hunk { color: var(--muted); }
.try-work ins { text-decoration: none; background: rgba(48,160,80,.2); } .try-work del { color: var(--muted); }
.try-work-research .try-work-peek, .try-work-research .try-work-all, .try-work-computer .try-work-peek, .try-work-computer .try-work-all { font-family: inherit; font-size: 13px; line-height: 18px; }
.try-work.is-loading { display: grid; gap: 8px; padding: 14px; }
.try-work.is-loading span { height: 12px; border-radius: 6px; background: var(--wash); }
.try-work.is-loading span:first-child { width: 45%; } .try-work.is-loading span:last-child { width: 70%; }
/* a pick's values on Done, each with what it is ("Immediate · 2" meant nothing without the question: GENUI, Nov 20) */
.summary .form-card .pick-label { color: var(--muted); }
/* under the work, the pick it carried out is a line or two, not a second card as big as the work */
.try-done .try-work + .form-card { padding: 10px 14px; }
.try-done .try-work + .form-card h3 { font-size: 15px; line-height: 20px; margin: 0 0 2px; }
.try-done .try-work + .form-card p { margin: 0; font-size: 13px; line-height: 18px; }
.try-done .try-work-head { justify-content: flex-end; }
/* swipe actions on a Pickpath row, as Mail and Outlook draw them: the row's content slides over full-height blocks */
.arm-paths .view-host .ph-ask-card [data-ph-option].ph-ask-row { position: relative; overflow: hidden; touch-action: pan-y; --sx: 0px;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.arm-paths .view-host .ph-ask-card .ph-ask-row img { -webkit-user-drag: none; }
.arm-paths .view-host .ph-ask-card .ph-ask-row > :not(.swipe-acts) { transform: translateX(var(--sx)); }
.arm-paths .view-host .ph-ask-card .ph-ask-row.swipe-anim > :not(.swipe-acts) { transition: transform .26s cubic-bezier(.2,.9,.3,1.15); }
.arm-paths .view-host .ph-ask-card .ph-ask-row.swiped::before { opacity: 0; }
.swipe-acts { position: absolute; top: 0; bottom: 0; display: flex; overflow: hidden; width: 0; z-index: 1; }
.ph-ask-row.swipe-anim > .swipe-acts { transition: width .26s cubic-bezier(.2,.9,.3,1.15); }
.swipe-acts.left { right: 0; justify-content: flex-end; }
.swipe-acts.right { left: 0; }
/* a full swipe: the first action takes the whole width, as Mail's does */
@media (prefers-reduced-motion: reduce) { .ph-ask-row.swipe-anim > *, .ph-ask-row.swipe-anim > .swipe-acts { transition: none; } }
/* a table's rows stay one line each, side-scrolled, rather than wrapping into a sheet that scrolls */
.ph-ev-look .ph-ev-lines.is-table .ph-ev-line { white-space: pre; overflow-wrap: normal; padding-left: 0; text-indent: 0; }
/* an option's note: a muted line under its fact; while written, a one-line box in its place */
.ph-row-note { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 17px; font-style: italic;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
/* the box takes the row's whole width under its letter, title and tile, two lines of text, Done at its end (Gregg,
   Nov 20: half the row wide, the note scrolled out of view) */
.arm-paths .view-host .ph-ask-card .ph-ask-row:has(> .ph-note-form) { flex-wrap: wrap; }
.ph-note-form { display: flex; align-items: flex-end; gap: 6px; flex: 1 0 100%; margin-top: 8px; }
.ph-note-form textarea { flex: 1; min-width: 0; height: 58px; padding: 7px 10px; border-radius: 9px; border: .5px solid var(--line);
  background: var(--wash); font-size: 16px; line-height: 21px; resize: none; }
.ph-note-form button { flex: none; height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--blue, #0a84ff); font-weight: 600; font-size: 15px; }
.notes-card ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.notes-card li { display: grid; font-size: 14px; line-height: 19px; }
.notes-card li span { color: var(--muted); font-style: italic; }
/* a row moves to where it lands showing only its new self: crossfading the draft's copy into the written one drew both
   titles at once, a ghost "normalizatio" over B (Gregg's recording, Nov 20) */
::view-transition-old(.pp-row) { animation: none; opacity: 0; }
::view-transition-new(.pp-row) { animation: none; height: 100%; width: 100%; object-fit: none; object-position: 0 0; }
.sr-acts { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; pointer-events: none; }
.sr-acts button { display: block; width: 100%; height: 50%; }
/* the card holds the hidden buttons' places, and clips a swiped row's strip to its rounded corners (WebKit lets a
   transformed child's layer out of overflow: hidden; GENUI saw Pick square-cornered on the last row) */
.arm-paths .view-host .ph-ask-card { position: relative; clip-path: inset(0 round 14px); }
/* each swipe action a filled glyph over an 11 px name, iOS Mail's way, in the system's quiet colours (Gregg on Nathan's
   17:05: no orange, no slabs of text) */
.swipe-act { --bg: #8e8e93; flex: 1 1 0; min-width: 0; display: grid; place-content: center; justify-items: center; gap: 3px;
  border: 0; border-radius: 0; padding: 0; color: #fff; background: var(--bg); overflow: hidden; white-space: nowrap; }
.swipe-act svg { width: 22px; height: 22px; display: block; }
.swipe-act svg .cut { fill: var(--bg); }
.swipe-act span { font-size: 11px; line-height: 13px; font-weight: 500; letter-spacing: .01em; }
.swipe-act.note { --bg: #0a84ff; }
.swipe-act.pick { --bg: #30d158; }
@media (prefers-color-scheme: dark) { .swipe-act.details { --bg: #48484a; } }
/* a full swipe: the first action takes the whole width, its glyph riding at the row's edge */
.ph-ask-row.swipe-full > .swipe-acts.left .swipe-act.note { flex-grow: 0; flex-basis: 0; }
.ph-ask-row.swipe-full > .swipe-acts.left .swipe-act.details { place-content: center start; padding-left: 24px; }
@media (max-width: 340px) { .swipe-act span { display: none; } }
/* compact rows: the letter and the title on one line, one short muted fact under it, no tile; what an option rests on
   comes out on a drag or a hold (Nathan, Nov 20 17:20: "these items are so thick and tall ... maybe on drag it can show
   more info") */
.arm-paths .view-host .ph-ask-card .ph-ask-row > .ph-ev { display: none; }
.arm-paths .view-host .ph-ask-card .ph-ask-row { padding-block: 9px; min-height: 52px; align-items: center; }
.arm-paths .view-host .ph-ask-card .ph-ask-row .ph-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; }
.arm-paths .view-host .ph-ask-card .ph-ask-line, .arm-paths .view-host .ph-ask-card.is-tight .ph-ask-line { -webkit-line-clamp: 1; font-size: 14px; line-height: 19px; }
/* what a row slid left uncovers: its deciding fact and a glimpse of what it rests on, then the icons */
.swipe-acts.left { display: flex; }
.swipe-info { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 6px 12px; background: var(--wash, #f2f2f7); color: var(--ink); overflow: hidden; cursor: pointer; }
.swipe-info-in { min-width: 0; display: grid; gap: 4px; }
.swipe-info p { margin: 0; color: var(--muted); font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swipe-info code { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 500 12.5px/16px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: normal; overflow-wrap: anywhere; overflow: hidden; padding: 2px 6px; border-radius: 5px; background: color-mix(in srgb, var(--muted) 12%, transparent); }
.swipe-info code.add, .swipe-info code.is-add, .swipe-info code[class*="add"] { color: #248a3d; }
.swipe-info code[class*="del"] { color: #c9342f; }
.swipe-info img { display: block; max-width: 100%; max-height: 40px; border-radius: 5px; object-fit: cover; object-position: top left; }
.swipe-acts.left .swipe-act { flex: 0 0 44px; }
.swipe-acts.left .swipe-act span { font-size: 10px; }
.ph-ask-row.swipe-full > .swipe-acts.left .swipe-info { flex-grow: 0; flex-basis: 0; padding: 0; }
.ph-ask-row.swipe-full > .swipe-acts.left .swipe-act.details { flex: 1 1 auto; }
@media (prefers-color-scheme: dark) { .swipe-info { background: #2c2c2e; } }
/* the hold: the screen dims and blurs, the option comes up with its menu under it, as iOS's context menu does */
.peek-layer { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.peek-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.28); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .2s; }
.peek { position: relative; width: min(100%, 380px); max-height: calc(100dvh - 32px); display: grid; gap: 8px; transform: scale(.94); opacity: 0; transition: transform .22s cubic-bezier(.2,.9,.3,1.2), opacity .18s; }
.peek-layer.in .peek-backdrop { opacity: 1; } .peek-layer.in .peek { transform: none; opacity: 1; }
.peek-card { overflow: auto; max-height: calc(100dvh - 210px); padding: 14px 16px; border-radius: 14px; background: var(--surface, #fff); color: var(--ink); }
.peek-card h3 { display: flex; gap: 10px; align-items: center; margin: 0 0 6px; font-size: 17px; line-height: 22px; font-weight: 600; }
.peek-fact { margin: 0 0 8px; font-size: 15px; line-height: 20px; }
.peek-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0 0 10px; font-size: 14px; line-height: 19px; }
.peek-card dt { color: var(--muted); } .peek-card dd { margin: 0; font-weight: 500; }
.peek-card .ph-ev-look { margin: 0; }
.peek-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 9px; background: color-mix(in srgb, #0a84ff 12%, transparent); font-size: 14px; }
.peek-menu { display: grid; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--surface, #fff) 92%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.peek-menu button { display: flex; justify-content: space-between; align-items: center; min-height: 46px; padding: 0 16px; border: 0; background: none; color: var(--ink); font-size: 17px; text-align: left; }
.peek-menu button + button { border-top: .5px solid var(--line); }
.peek-menu button svg { width: 20px; height: 20px; }
.peek-menu button svg .cut { fill: var(--surface, #fff); }
@media (prefers-color-scheme: dark) { .peek-card { background: #1c1c1e; } .peek-menu { background: rgba(44,44,46,.92); } .peek-menu button svg .cut { fill: #2c2c2e; } }
@media (prefers-reduced-motion: reduce) { .peek, .peek-backdrop { transition: none; } }
.arm-paths .view-host .ph-ask-card .ph-ask-row { -webkit-touch-callout: none; }
/* a screenshot's file name is no name (page.png) */
.peek-card .ph-ev-look:has(.ph-ev-figure) .ph-ev-file { display: none; }
.swipe-info p.is-fact { color: var(--ink); font-size: 13px; line-height: 16px; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
/* a peek has the screen: the bar under it goes (Gregg: "Pick A · Unchanged" showed below the menu) */
body.peeking .ph-footer, body.peeking .pick-bar { visibility: hidden; }
/* "(not in the record)" is for the console and the log, not the person choosing (Nathan, Nov 21 01:47, on the r14-172 list) */
.arm-paths .view-host .ph-ask-card .ph-unchecked, .peek-card .ph-unchecked { display: none; }

/* the sheet an option's details, a source or a note open in (Nathan, Nov 21: "better looking mobile sheet"), drawn as
   iOS draws one: dimmed page, a grabber, a round close in the corner, the title under them, rising once on open */
.modal-backdrop { background: rgba(0,0,0,.32); padding: 12px 0 0; }
.modal.sheet { position: relative; padding: 0 20px max(20px, env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0;
  box-shadow: 0 -1px 0 rgba(0,0,0,.04), 0 -10px 40px rgba(0,0,0,.14); transition: transform .32s cubic-bezier(.32,.72,0,1); }
.modal.sheet .modal-top { position: sticky; top: 0; z-index: 2; display: block; height: 44px; margin: 0 -20px 2px; touch-action: none;
  background: linear-gradient(var(--wash) 70%, transparent); cursor: grab; }
.sheet-grabber { position: absolute; top: 5px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgba(60,60,67,.3); }
.sheet-close { position: absolute; top: 11px; right: 14px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(118,118,128,.12); color: rgba(60,60,67,.6); cursor: pointer; }
.sheet-close::before { content: ""; position: absolute; inset: -7px; }
.sheet-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.modal.sheet h2 { margin: 0 44px 10px 0; font-size: 22px; line-height: 1.22; letter-spacing: -.3px; font-weight: 700; }
.modal.sheet .option-detail dl { gap: 8px 16px; }
@media (prefers-reduced-motion: no-preference) {
  .modal-backdrop.entering { animation: sheet-dim .28s ease-out both; }
  .modal-backdrop.entering .modal.sheet { animation: sheet-rise .38s cubic-bezier(.32,.72,0,1) both; }
  @keyframes sheet-dim { from { background: rgba(0,0,0,0); } }
  @keyframes sheet-rise { from { transform: translateY(100%); } }
}
@media (prefers-color-scheme: dark) {
  .modal-backdrop { background: rgba(0,0,0,.5); }
  .modal.sheet { --wash: #1c1c1e; background: #1c1c1e; box-shadow: none; }
  .sheet-grabber { background: rgba(235,235,245,.3); }
  .sheet-close { background: rgba(118,118,128,.24); color: rgba(235,235,245,.6); }
}
@media (min-width: 700px) {
  .modal.sheet { border-radius: 16px; }
  .modal.sheet .modal-top { cursor: default; }
  .sheet-grabber { display: none; }
}

/* the popover as Bruce Liu's video draws it (Nathan, Nov 21: "better ways to make tooltips look", "reference the Bruce
   Liu VIDEO"): a white card with a hairline and a wide soft shadow, hung under the blank; it comes in where it sits,
   faint and blurred, sharp in about a quarter second, no slide; the question in grey with "Pick any" after it when
   several can be picked; pills stay the Nov 19 size ("pills are too big"); Done at the end of the last row */
.blank-popover:not(.blank-open-inline),.ff-popover.blank-popover:not(.blank-open-inline) { border-radius: 16px; padding: 14px 16px 16px;
  border: 0; box-shadow: 0 0 0 1px #0000000f, 0 12px 32px #0000001a, 0 2px 6px #0000000d; }
@media (prefers-reduced-motion: no-preference) {
  .blank-popover:not(.blank-open-inline):not(.shown),.ff-popover.blank-popover:not([hidden]) { animation: blank-in .28s cubic-bezier(.25,.1,.25,1) both; }
}
@keyframes blank-in { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
.blank-popover .blank-question { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.blank-popover .blank-question h2,.ff-popover .blank-question { font: 400 15px/20px -apple-system,BlinkMacSystemFont,system-ui,sans-serif; color: var(--muted); }
.blank-popover .blank-any { flex: none; margin-left: auto; font: 400 13px/20px -apple-system,BlinkMacSystemFont,system-ui,sans-serif; color: var(--chip-suffix); }
.blank-popover .blank-option,.blank-popover .blank-other,.blank-popover .blank-option.flagged,.ff-popover .ff-option,.ff-popover .ff-other {
  box-shadow: 0 1px 2px #0000000a; }
.blank-popover .blank-option.on { box-shadow: none; }
.blank-popover .blank-options .blank-done { margin: 0 0 0 auto; padding: 6px 16px; border-radius: 999px; }
@media (prefers-color-scheme: dark) {
  .blank-popover:not(.blank-open-inline),.ff-popover.blank-popover:not(.blank-open-inline) { box-shadow: 0 0 0 1px #ffffff1a, 0 12px 32px #00000080; }
  .blank-popover .blank-option,.blank-popover .blank-other,.ff-popover .ff-option,.ff-popover .ff-other { box-shadow: none; }
}
