:root{--paper:#f5f0e8;--ink:#22231f;--muted:#625e57;--line:#c7bbae;--beige:#e9dfcf;--amber:#e57a1a;--pale:#f4d5b7;font-family:Inter,system-ui,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #9c4400;outline-offset:2px}button{border:0;background:none}main{max-width:690px;margin:auto;padding:0 25px 48px}header{height:98px;display:flex;align-items:center;border-bottom:1px solid var(--line);gap:8px}header img{width:53px;height:60px}header strong{font-size:20px;letter-spacing:-.04em;display:block}header span{font-size:15px;color:var(--muted)}header .right{margin-left:auto;font-size:13px;text-decoration:underline}h1{font-size:clamp(32px,7vw,46px);letter-spacing:-.045em;line-height:1.06;margin:27px 0 10px}h2{font-size:22px;letter-spacing:-.025em}p{line-height:1.5}.sub{color:var(--muted);margin:0 0 24px}.field{display:block;margin:18px 0;font-weight:650}.field input,.field textarea,.field select,.search,select{display:block;width:100%;margin-top:8px;border:1px solid #a89d90;border-radius:10px;padding:13px;background:transparent}.field textarea{min-height:105px;resize:vertical}.row{display:flex;gap:10px}.row>*{flex:1}.search{margin:0 0 10px}.filters select{background:var(--beige);border:0;margin:0}.list{margin-top:22px;border-top:1px solid var(--line)}.project{padding:17px 0;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center}.project h2{margin:0 0 8px}.project .content{flex:1;min-width:0}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{font-size:13px;background:var(--beige);padding:5px 8px;border-radius:6px}.chip.priority{background:var(--pale)}.meta{font-size:13px;color:var(--muted);margin-top:9px}.icon-button,.secondary{background:var(--beige);border-radius:10px;padding:12px}.icon-button{font-size:20px}.primary{background:var(--amber);color:#17120d;border-radius:10px;padding:15px 20px;font-weight:750;min-height:52px}.wide{width:100%}.actions{display:flex;align-items:center;gap:14px;margin-top:25px}.record{background:var(--amber);border-radius:50%;width:135px;height:135px;font-weight:750;font-size:17px;flex:none}.record svg{display:block;margin:0 auto 6px}.actions .secondary{font-weight:700}.back{font-size:26px;margin:0 10px 0 0}.section{border-top:1px solid var(--line);padding:4px 0 12px}.section summary{cursor:pointer;font-weight:700;padding:17px 0}.section summary small{font-weight:400;color:var(--muted)}.notice{background:var(--beige);padding:14px;border-radius:10px;margin:16px 0;line-height:1.4}.notice.error{background:#f2d8cc;color:#712710}.notice strong{display:block}.muted{color:var(--muted)}.small{font-size:13px}.review{border-top:1px solid var(--line);padding:14px 0;display:flex;gap:12px}.review input[type=checkbox]{width:20px;height:20px;accent-color:#bd5e08}.review label{flex:1;font-weight:700}.review textarea,.review input[type=text],.review select{width:100%;margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:8px;background:transparent}.queue audio{width:100%}.login{max-width:430px;margin:12vh auto}.login header{border:0;margin-bottom:50px}.loading{padding:25px}.empty{padding:26px 0;color:var(--muted)}.text-button{text-decoration:underline;padding:7px}.controls{display:flex;gap:4px}.controls button{padding:7px}.statusline{font-size:12px;color:var(--muted);margin-top:12px}::selection{background:#f3c597}@media(max-width:370px){main{padding:0 18px 40px}.record{width:115px;height:115px}.row{gap:6px}}
.today-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.today-heading .secondary{white-space:nowrap}.focus-section,.active-section{border-top:1px solid var(--line);padding:10px 0 24px}.section-heading h2{margin:14px 0}.focus-name{font-size:29px;margin:12px 0}.next-label{font-weight:700;margin:23px 0 5px}.next-step{font-size:21px;margin:0 0 18px;line-height:1.35}.active-next{margin:10px 0 0}.focus-choice{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:12px 0;gap:12px}.focus-choice small{display:block;margin-top:4px}
.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}.skeleton-header{gap:12px}.skeleton{display:block;border-radius:7px;background:#e9dfcf;position:relative;overflow:hidden}.skeleton:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(245,240,232,.8),transparent);transform:translateX(-100%);animation:skeleton-sweep 1.7s ease-in-out infinite}.skeleton-logo{width:48px;height:55px}.skeleton-brand{width:140px;height:33px}.skeleton-title{width:140px;height:42px;margin-top:28px}.skeleton-subtitle{width:min(290px,80%);height:16px;margin-top:14px}.skeleton-divider{border-top:1px solid var(--line);margin:28px 0 22px}.skeleton-heading{width:145px;height:21px}.skeleton-focus{width:200px;max-width:70%;height:29px;margin-top:22px}.skeleton-line{width:80%;height:19px;margin-top:25px}.skeleton-button{width:165px;height:52px;margin-top:22px}.skeleton-row{width:100%;height:66px;margin-top:17px}.is-pending{cursor:progress;opacity:.7}.is-pending:after{content:"";display:inline-block;width:.8em;height:.8em;margin-left:.65em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-.08em;animation:pending-spin .8s linear infinite}@keyframes skeleton-sweep{to{transform:translateX(100%)}}@keyframes pending-spin{to{transform:rotate(360deg)}}button{transition:background-color .16s ease,color .16s ease,opacity .16s ease}button:active{opacity:.75}@media(prefers-reduced-motion:reduce){.skeleton:after,.is-pending:after{animation:none}.skeleton:after{display:none}button{transition:none}}

/* GradientOrb uses a transparent WebGL canvas; the page remains visible around it. */
main:has(.floating-orb){padding-bottom:calc(112px + env(safe-area-inset-bottom, 0px))}
.floating-orb{position:fixed;z-index:20;right:max(20px,env(safe-area-inset-right, 0px));bottom:calc(20px + env(safe-area-inset-bottom, 0px));width:76px;height:76px;padding:0;border:0;border-radius:50%;background:transparent;display:grid;place-items:center}
.floating-orb:focus-visible{outline:3px solid #22231f;outline-offset:4px}
.orb-canvas{display:block;width:100%;height:100%;pointer-events:none}
.assistant-orb{width:144px;height:144px;margin:0 auto 20px}

.record-action{background:var(--amber);color:var(--ink)}.record-action.is-recording{box-shadow:inset 0 0 0 2px var(--ink)}.recording-status{font-size:13px;color:var(--ink);margin:10px 0 0}
.conversation{display:grid;gap:12px;margin:20px 0}.chat-message{padding:14px 16px;border-radius:12px;max-width:90%;background:var(--beige)}.chat-message strong{font-size:13px}.chat-message p{margin:6px 0 0;white-space:pre-wrap}.user-message{justify-self:end;background:#f4d5b7}.assistant-message{justify-self:start}.approval-card{border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--paper)}.approval-card h2{margin:0 0 8px}.previous-value{display:block;color:var(--muted);font-weight:400;font-size:13px;margin-top:5px;overflow-wrap:anywhere}.composer-label{margin-bottom:0}.composer-actions{flex-wrap:wrap;margin-top:12px}.chat-message.message-enter{animation:message-appear .18s ease-out}@keyframes message-appear{from{opacity:.65}to{opacity:1}}@media(prefers-reduced-motion:reduce){.chat-message.message-enter{animation:none}}
.project-modes{border:0;padding:0;margin:22px 0}.project-modes legend{font-weight:700;margin-bottom:9px}.mode-buttons,.dialog-actions{display:flex;gap:10px;flex-wrap:wrap}.mode-button.selected{box-shadow:inset 0 0 0 2px var(--ink)}.selected-project{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding:10px 12px;background:var(--beige);border-radius:10px}.selected-project .text-button{display:grid;place-items:center;min-width:44px;min-height:44px}dialog{width:min(520px,calc(100% - 32px));max-height:min(80vh,700px);overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);padding:20px}dialog::backdrop{background:rgba(34,35,31,.55)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-heading h2{margin:0}.picker-list{display:grid;max-height:42vh;overflow:auto}.picker-item{text-align:left;display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:52px;padding:12px 4px;border-top:1px solid var(--line)}.picker-item span{color:var(--muted);font-size:13px}.picker-item[hidden]{display:none}.dialog-actions{margin-top:20px}

.orb-canvas.orb-fallback{background:radial-gradient(circle, #000 8%, #e57a1a 48%, #000 70%, transparent 72%)}
/* Ask Banya: one history scroller and a composer in normal flex flow. */
main.ask-page{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}main.ask-page>header{flex:0 0 76px;height:76px}.ask-shell{display:flex;flex-direction:column;flex:1;min-height:0}.ask-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto}.ask-title h1{font-size:30px;margin:12px 0}.ask-title .assistant-orb{width:58px;height:58px;margin:0;flex:none}.chat-history{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 4px 12px 0;scrollbar-gutter:stable}.chat-history .notice{margin:8px 0 12px}.chat-history .conversation{margin:12px 0}.chat-composer{flex:0 0 auto;background:var(--paper);border-top:1px solid var(--line);padding:8px 0 calc(12px + env(safe-area-inset-bottom, 0px));max-height:60%;overflow-y:auto;overscroll-behavior:contain}.chat-composer .project-modes{margin:0 0 8px}.chat-composer .project-modes legend{font-size:13px;margin-bottom:5px}.chat-composer .mode-button{padding:8px 10px;font-size:13px;min-height:38px}.chat-composer .selected-project{margin-top:6px;padding:2px 10px}.chat-composer .composer-label{font-size:13px;margin:0}.chat-composer .composer-label textarea{min-height:46px;max-height:110px;resize:vertical;margin-top:4px;padding:10px}.chat-composer .composer-actions{margin-top:8px;gap:8px}.chat-composer .composer-actions button{min-height:44px}.chat-composer .recording-status{margin:4px 0 0}.chat-history:focus-visible{outline:2px solid #9c4400;outline-offset:-2px}@media(max-height:580px){main.ask-page>header{flex-basis:58px;height:58px}.ask-title h1{font-size:24px;margin:6px 0}.ask-title .assistant-orb{width:42px;height:42px}.chat-composer{max-height:65%}}

.composer-help{font-size:12px;color:var(--muted);margin:4px 0 0}
/* Ask Banya reading surface and composer */
main.ask-page{max-width:920px;padding-inline:24px}main.ask-page>header{flex-basis:64px;height:64px}.ask-top{position:relative;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;min-height:66px;flex:none}.ask-back{justify-self:start;margin:0;font-size:24px;min-width:44px;min-height:44px}.ask-top .assistant-orb{justify-self:end;width:52px;height:52px;margin:0}.ask-top .project-modes{margin:0;min-width:0}.ask-top .mode-buttons{background:var(--beige);border-radius:999px;padding:4px;gap:0;flex-wrap:nowrap}.ask-top .mode-button{border-radius:999px;padding:9px 16px;min-height:40px;font-size:13px;font-weight:700;white-space:nowrap}.ask-top .mode-button.selected{background:var(--ink);color:var(--paper);box-shadow:none}.ask-shell{width:100%;max-width:720px;margin:0 auto}.chat-history{scrollbar-gutter:auto;padding:0 4px 12px}.chat-history.chat-empty{display:flex;flex-direction:column;justify-content:center;text-align:center}.empty-greeting h2{font-size:clamp(28px,4vw,36px);margin:0 0 8px;letter-spacing:-.035em}.empty-greeting p{color:var(--muted);margin:0}.chat-history.chat-empty .conversation,.chat-history.chat-empty .queue{margin:0}.chat-composer{border:0;padding-top:8px}.composer-box{border:1px solid #b9ac9c;background:#ede4d8;border-radius:22px;padding:10px;box-shadow:0 3px 14px rgba(34,35,31,.05)}.composer-box textarea{display:block;width:100%;min-height:44px;max-height:120px;resize:vertical;border:0;outline:0;background:transparent;padding:8px 10px;font:inherit;color:var(--ink)}.composer-box:focus-within{outline:2px solid #9c4400;outline-offset:2px}.chat-composer .composer-actions{margin:2px 0 0;gap:8px}.composer-actions button{font-size:13px;font-weight:700}.composer-actions .send-action{margin-left:auto;min-height:44px;padding:10px 16px}.demo-caption{text-align:center;color:var(--muted);font-size:12px;margin:8px 0 0}.chat-composer .selected-project{margin:0 0 8px}.chat-message{max-width:85%}.approval-card{text-align:left}.chat-history .notice[role=status]{text-align:left}.ask-page .back:focus-visible{outline-offset:0}@media(max-width:480px){main.ask-page{padding-inline:16px}main.ask-page>header{flex-basis:58px;height:58px}.ask-top{min-height:58px;grid-template-columns:44px 1fr 44px}.ask-top .project-modes{justify-self:center}.ask-top .assistant-orb{width:44px;height:44px}.ask-top .mode-button{padding:8px 10px;font-size:12px}.chat-composer{padding-bottom:calc(8px + env(safe-area-inset-bottom, 0px))}.composer-box{border-radius:18px}.composer-actions button{padding:9px 10px;font-size:12px}.chat-message{max-width:92%}}

.approval-card{background:#f5f0e8;border:1px solid #c7bbae}.approval-card .review{align-items:flex-start;gap:12px}.approval-card .review input[type=checkbox]{flex:none;margin-top:3px}.proposed-value{display:block;font-size:12px;color:var(--muted);font-weight:600;margin-top:9px}.approval-card .review input[type=text],.approval-card .review textarea,.approval-card .review select{background:#fffaf3;margin-top:4px}.approval-card .primary{margin-top:10px}.message-enter{animation:message-appear .18s ease-out}@media(prefers-reduced-motion:reduce){.message-enter{animation:none}}
.ask-top .projects-link{justify-self:end;display:grid;place-items:center;width:44px;height:44px;border-radius:10px;color:var(--ink)}.ask-top .projects-link:hover{background:var(--beige)}.empty-orb{width:112px;height:112px;margin:0 auto 12px}.chat-active-orb{flex:none;width:42px;height:42px;margin:0 auto 2px}
.composer-icons{display:flex;align-items:center;gap:8px;margin-left:auto}.composer-actions .icon-action{width:44px;height:44px;min-height:44px;padding:10px;display:grid;place-items:center}.composer-actions .icon-action svg{display:block;width:22px;height:22px}.composer-actions .send-action{margin-left:0}.composer-actions .icon-action:disabled{opacity:.45;cursor:not-allowed}
/* Shared interaction and responsive safeguards */
.controls button{min-width:44px;min-height:44px}.text-button{min-height:44px}.mode-button{min-height:44px}.project .content,.selected-project span,.chat-message,.approval-card{min-width:0;overflow-wrap:anywhere}.project h2,.focus-name{overflow-wrap:anywhere}.picker-item{overflow-wrap:anywhere}.picker-item strong{min-width:0;text-align:left}.picker-item span{flex:none}.field input,.field textarea,.field select,.search{min-height:44px}.icon-button:hover,.secondary:hover{filter:brightness(.96)}.primary:hover{filter:brightness(.95)}button:disabled{cursor:not-allowed;opacity:.55}textarea::placeholder,input::placeholder{color:#625e57;opacity:1}::selection{background:#e9b17f;color:#22231f}@media(max-width:370px){.project .controls{gap:0}.controls button{min-width:40px;padding:6px}.project{gap:4px}.ask-top .mode-button{padding-inline:8px}.composer-actions .preview-action{font-size:11px}}
@media(max-width:370px){.filters{flex-direction:column}.filters select{width:100%}}
/* Persistent signed-in navigation */
main:has(.bottom-dock){padding-bottom:calc(96px + env(safe-area-inset-bottom, 0px))}
.bottom-dock{position:fixed;z-index:30;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,690px);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;background:var(--paper);border-top:1px solid var(--line);padding:5px max(5px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(5px,env(safe-area-inset-left,0px))}
.dock-item{min-width:0;min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted);font-size:10px;font-weight:650;padding:3px 0;border-radius:8px;white-space:nowrap}
.dock-item svg{width:23px;height:23px}.dock-item[aria-current=page]{color:var(--ink);font-weight:800}.dock-item[aria-current=page]:not(.dock-orb) svg{stroke:var(--amber);stroke-width:2.2}.dock-orb .orb-canvas{width:39px;height:39px}.dock-orb{min-height:66px;color:var(--ink)}
main.ask-page:has(.bottom-dock){padding-bottom:calc(78px + env(safe-area-inset-bottom, 0px))}.ask-top{display:flex;justify-content:center}.ask-top .project-modes{margin:auto}.chat-composer{padding-bottom:8px}
@media(max-height:580px){.bottom-dock{padding-top:1px}.dock-item{min-height:48px}.dock-orb{min-height:52px}.dock-orb .orb-canvas{width:32px;height:32px}main.ask-page:has(.bottom-dock){padding-bottom:calc(60px + env(safe-area-inset-bottom,0px))}}

/* The central shader rises above the dock without covering content. */
.dock-orb{position:relative;min-height:58px;justify-content:flex-end;padding-bottom:4px}.dock-orb .orb-canvas{position:absolute;width:82px;height:82px;max-width:none;bottom:17px;left:50%;transform:translateX(-50%)}
main:has(.bottom-dock){padding-bottom:calc(135px + env(safe-area-inset-bottom, 0px))}main.ask-page:has(.bottom-dock){padding-bottom:calc(115px + env(safe-area-inset-bottom, 0px))}
@media(max-height:580px){.dock-orb{min-height:48px}.dock-orb .orb-canvas{width:70px;height:70px;bottom:15px}main.ask-page:has(.bottom-dock){padding-bottom:calc(95px + env(safe-area-inset-bottom, 0px))}}

.review-diff,.audit-event{border-top:1px solid var(--line);padding:12px 0;overflow-wrap:anywhere}.review-diff p,.audit-event p{margin:5px 0}.audit-event h2{font-size:18px;margin:0 0 6px}.confirm-status:empty{display:none}

.settings-options{display:grid;gap:12px}.settings-options button{text-align:left;min-height:54px}
/* Keep inactive icons charcoal; dark amber meets contrast against the paper bar. */
.dock-item{color:var(--ink)}
.dock-item[aria-current=page]:not(.dock-orb) svg{stroke:#9c4400}

.project-entry{display:block;flex:1;min-width:0;padding:8px;border-radius:10px;text-align:left}.project-entry:hover{background:var(--beige)}.project-entry .content,.project-entry .meta{display:block}.project-name{display:block;font-size:20px;font-weight:700;letter-spacing:-.025em;margin-bottom:8px}.project-entry .chips{display:flex}.detail-text{white-space:pre-wrap;overflow-wrap:anywhere}.project-timeline{list-style:none;margin:20px 0 20px 7px;padding:0 0 0 20px;border-left:1px solid var(--line)}.project-timeline li{position:relative;padding:0 0 22px}.project-timeline li::before{content:'';position:absolute;left:-25px;top:6px;width:9px;height:9px;border-radius:50%;background:var(--amber)}.project-timeline p{margin:5px 0 0}
