/* Founder-approved V6 shell; operational contents retain existing TDX authority. */
.v6-shell .v6-head{border:0;box-shadow:none;padding:0;background:transparent}
#v6-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:12px}
.v6-shell .sprint-scroll>.command-work{padding:4px 2px;min-height:28px;margin:0;border:0;border-radius:0;background:transparent;font-size:12px;line-height:1.2}
.v6-shell{--v6-bg:#f2f5fa;--v6-card:#fff;--v6-ink:#18263a;--v6-muted:#687b91;--v6-line:#dce4ee;--v6-blue:#0067ed;--v6-soft:#eaf1fa;--v6-left:235px;--tdx-command-width:350px;font:13px/1.5 'DM Sans','Inter',-apple-system,sans-serif;color:var(--v6-ink);height:100dvh;min-height:0;display:grid;grid-template-columns:var(--v6-left) minmax(0,1fr) var(--tdx-command-width);grid-template-rows:72px minmax(0,1fr);overflow:hidden;background:var(--v6-bg)}
body[data-theme=dark] .v6-shell{--v6-bg:#0d1726;--v6-card:#19283d;--v6-ink:#f3f7ff;--v6-muted:#a9bad1;--v6-line:#344a64;--v6-blue:#66aaff;--v6-soft:#263a51}
.v6-shell.command-open,.v6-shell.command-open.nav-collapsed{grid-template-columns:var(--v6-left) minmax(0,1fr) var(--tdx-command-width)}
.v6-shell.nav-collapsed{--v6-left:72px;grid-template-columns:var(--v6-left) minmax(0,1fr) var(--tdx-command-width)}
.v6-shell.nav-hidden{--v6-left:0px}.v6-shell:not(.command-open){grid-template-columns:var(--v6-left) minmax(0,1fr) 0}
.v6-shell .sidebar{grid-column:1;grid-row:1/3;position:relative;top:auto;height:auto;min-width:0;overflow:auto;display:flex;background:var(--v6-card);border-right:1px solid var(--v6-line);padding:0}
.v6-shell.nav-hidden .sidebar{visibility:hidden}.v6-shell .brand-home{padding:7px 8px;min-height:120px;flex:none;position:relative;overflow:hidden;margin:0;background:transparent}
.v6-shell .v6-official-brand{display:block;width:100%;max-height:106px;height:auto;object-fit:contain}
.v6-shell .v6-compact-brand{display:none;width:58px;height:65px;object-fit:contain}
.v6-shell.nav-collapsed .v6-official-brand{display:none}
.v6-shell.nav-collapsed .v6-compact-brand{display:block}
.v6-shell .stage{position:absolute;bottom:2px;right:8px;font-size:8px}.v6-shell.nav-collapsed .stage{display:none}
.v6-shell .new-chat{margin:7px 9px 4px;padding:11px 12px;border:0;box-shadow:none;border-radius:11px;background:none;color:var(--v6-muted);font-size:12.5px;font-weight:600}
.v6-shell .sidebar nav{padding:6px 9px;gap:0}.v6-shell .sidebar nav button{font-size:12.5px;font-weight:600;height:auto;min-height:42px;padding:11px 12px;color:var(--v6-muted);border-radius:11px}
.v6-shell .sidebar nav button:hover,.v6-shell .new-chat:hover{background:var(--v6-soft);color:var(--v6-blue)}
.v6-shell .sidebar nav button.active{background:var(--v6-soft);color:var(--v6-blue)}
.v6-shell .nav-icon{width:19px;height:19px}.v6-shell .recent-wrap{margin:12px 0;min-height:0;flex:1}.v6-shell .recent-list button{font-size:12px;color:var(--v6-muted)}
.v6-shell .sidebar-bottom{padding-top:8px;margin-top:auto}.v6-shell .sidebar-footer{padding:5px 12px;font-size:10px}
.v6-appearance{border-top:1px solid var(--v6-line);padding:12px;font-size:12px;flex:none}.v6-appearance button{padding:8px;border:0;border-radius:9px;background:var(--v6-soft);color:var(--v6-ink);margin:3px;min-height:36px}.v6-appearance button[aria-pressed=true]{outline:1px solid var(--v6-blue)}
.v6-shell.nav-collapsed .brand-home{min-height:86px;padding:8px}.v6-shell.nav-collapsed .v6-official-brand{width:58px;height:65px;object-fit:contain}.v6-shell.nav-collapsed .v6-appearance{padding:5px}.v6-shell.nav-collapsed .v6-appearance strong{font-size:0}.v6-shell.nav-collapsed .v6-appearance strong::before{content:'◐';font-size:18px}.v6-shell.nav-collapsed .v6-appearance button{font-size:9px;padding:4px;margin:2px;min-height:26px}.v6-shell.nav-collapsed .sidebar nav button{font-size:0;justify-content:center;padding:10px;width:54px;margin:2px 0}.v6-shell.nav-collapsed .new-chat{width:54px;margin-inline:auto;padding:10px}
.v6-shell .topbar{grid-column:2/4;grid-row:1;height:72px;min-width:0;gap:12px;padding:7px 14px;background:var(--v6-card);border-bottom:1px solid var(--v6-line);font-weight:400;z-index:4}
.v6-shell #header-brand-home{display:none!important}.v6-shell .menu{padding:8px;min-width:32px;background:var(--v6-soft);border-radius:9px;color:var(--v6-ink)}
.v6-head{position:relative;padding:0;display:flex;align-items:center;justify-content:center;flex:none;width:62px;height:62px;background:transparent;overflow:hidden;transform:translateY(6px);z-index:4}
.v6-head img{width:64px;height:58px;object-fit:contain}.head-light{position:absolute;width:7px;height:7px;border-radius:50%;background:#8996a4}.left-ear{left:6px;top:29px}.right-ear{right:5px;top:29px}.eye-alert{left:28px;top:33px;width:8px;height:4px;opacity:.8}
.v6-head[data-activity=active] .eye-alert{background:#ffb83e;box-shadow:0 0 7px #ffb83e}.v6-head[data-attention=RED] .left-ear,.v6-head[data-attention=RED] .right-ear{background:#ff6d7a;box-shadow:0 0 9px #ff6d7a}.v6-head[data-attention=YELLOW] .left-ear,.v6-head[data-attention=YELLOW] .right-ear{background:#ffb83e}.v6-head[data-attention=GREEN] .left-ear,.v6-head[data-attention=GREEN] .right-ear{background:#2ae4c5}
.v6-shell .project-status-strip{flex:1;min-width:0;display:flex;gap:18px;border:0;padding:0;margin:0;min-height:0}.v6-meter{flex:1;min-width:0;max-width:290px}.v6-meter label{display:flex;justify-content:space-between;gap:5px;color:var(--v6-muted);font-size:10px;font-weight:600;margin:0;white-space:nowrap}.v6-track{background:var(--v6-soft);height:7px;border-radius:8px;display:flex;margin-top:7px;overflow:hidden}.v6-track span{background:#13b779;max-width:100%}.v6-track.regression{justify-content:flex-end}.v6-track.regression span{background:#e85e6c}.v6-track.unknown{border:1px dashed var(--v6-line)}
.live-clock{display:flex;flex-direction:column;align-items:flex-end;min-width:151px;flex:none;font-variant-numeric:tabular-nums;line-height:1.2}.live-clock span{font:200 15px 'Inter',sans-serif;letter-spacing:-.3px}.live-clock small{font-size:10px;color:var(--v6-muted);margin-top:3px}.v6-shell .top-actions{margin:0;gap:3px;color:var(--v6-muted);font-size:11px}.v6-shell #command-toggle{font-size:11px;color:var(--v6-ink);background:var(--v6-soft);border-radius:9px;padding:8px}
.v6-shell>main{grid-column:2;grid-row:2;min-height:0;min-width:0;overflow:auto;display:flex;flex-direction:column;background:var(--v6-bg)}
.v6-shell .content,.v6-shell .content:has(#workspace-view:not([hidden])){padding:0 18px;width:100%;max-width:none;flex:1;min-height:0;display:flex;flex-direction:column}
.v6-shell #workspace-view{min-height:100%;flex:1}.v6-shell #native-bot-status{font-size:10px;padding:7px 18px;color:var(--v6-muted);margin:0;border-bottom:1px solid var(--v6-line)}
.v6-shell #workspace-view>.heading{padding:12px 0 0;margin:0;max-width:none;font-size:11px}.v6-shell #workspace-view>.heading h1{font-size:23px}.v6-shell #project-chat{min-height:0}.v6-shell #notice{font-size:11px;min-height:0;margin:4px auto;color:var(--v6-blue)}
.v6-shell .empty-home{padding-top:0!important;justify-content:center;min-height:0}.v6-shell .empty-home .conversation-thread{flex:1;max-width:800px;display:flex;justify-content:center;padding:22px 0}.v6-shell .chat-empty{width:100%;max-width:750px;margin:auto;padding:0;text-align:center}
.v6-shell .chat-empty .v6-eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:var(--v6-blue)}.v6-shell .chat-empty h2{font-size:clamp(29px,3.2vw,47px);font-weight:750;line-height:1.12;letter-spacing:-1.8px;margin:18px 0;color:var(--v6-ink)}.v6-shell .chat-empty .v6-support{font-size:13px;line-height:1.6;margin-bottom:25px;color:var(--v6-muted)}
.v6-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:630px;margin:auto}.v6-quick button{background:var(--v6-card);color:var(--v6-ink);border:1px solid var(--v6-line);margin:0;min-height:45px;border-radius:13px;padding:10px 7px;font-size:11px;font-weight:650;box-shadow:0 3px 12px #00000009}.v6-quick button:hover{border-color:var(--v6-blue)}
.v6-shell .chat-composer,.v6-shell .empty-home .chat-composer{position:sticky;bottom:0;flex:none;margin:10px auto 17px;max-width:860px;width:100%;padding:12px;border-radius:19px;box-shadow:0 10px 30px #0000000a;background:var(--v6-card);border:1px solid var(--v6-line);min-height:0}.v6-shell .chat-composer textarea{background:none;color:var(--v6-ink);height:53px;min-height:53px;font-size:13px;padding:0;outline:0}.v6-shell .composer-actions{gap:6px}.v6-shell .composer-actions>span{font-size:10px;color:var(--v6-muted)}.v6-shell .composer-tools{margin-left:auto;gap:5px}.v6-tool{background:transparent;color:var(--v6-muted);border:0;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 9px;min-height:35px}.v6-tool svg{width:17px;height:17px;flex:none}.v6-tool.intel{font-size:10px;font-weight:700;background:var(--v6-soft);color:var(--v6-ink);border:1px solid var(--v6-line)}.v6-tool.intel span{font-size:10px;color:inherit}.v6-tool:hover{background:var(--v6-soft);color:var(--v6-blue)}.v6-shell #chat-send{padding:9px 13px;font-weight:700;border-radius:10px;background:#0067ed;border-color:#0067ed;color:#fff;font-size:13px}
.v6-shell .conversation-thread{padding:22px 0;gap:12px;max-width:800px}.v6-shell .chat-message{border-radius:13px;padding:13px;max-width:85%;font-size:13px}.v6-shell .chat-message.user{background:#0067ed;color:white}.v6-shell .chat-message.tdx{background:var(--v6-card);border:1px solid var(--v6-line);color:var(--v6-ink)}
.v6-shell .command-center{grid-column:3;grid-row:2;position:relative;top:auto;right:auto;width:auto;height:auto;min-height:0;overflow:visible;z-index:auto;box-shadow:none;display:flex;flex-direction:column;padding:12px;background:var(--v6-card);border-left:1px solid var(--v6-line)}
.v6-shell .command-header{flex:none}.v6-shell .command-header strong{font-size:13px;color:var(--v6-ink)}.v6-shell .command-header button{font-size:18px;background:var(--v6-soft);border-radius:9px}.v6-shell .command-context{font-size:10px;margin:3px 0 6px;color:var(--v6-muted)}.v6-shell .railscroll{min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:10px}
.v6-shell .command-resize{display:block;left:-6px;top:0;bottom:0;width:12px;height:auto;z-index:5;cursor:col-resize;touch-action:none}.v6-shell .command-backdrop{display:none!important}
.v6-shell .command-card{margin:0;flex:none;border:1px solid var(--v6-line);border-radius:15px;box-shadow:0 4px 18px #00000007;background:var(--v6-card)}.v6-shell .command-card>summary{min-height:0;padding:10px 12px;font-size:12px;font-weight:850;color:var(--v6-ink)}.v6-shell .command-card>div{padding:2px 12px 12px;font-size:12px}.v6-shell .command-card p{font-size:11px;color:var(--v6-muted);margin:3px 0;line-height:1.3}.v6-shell .command-card button{font-size:11px;margin:0;padding:9px;min-height:34px;border-radius:9px;background:var(--v6-soft);color:var(--v6-blue);border:1px solid var(--v6-line)}
.sprint-scroll{height:200px;min-height:130px;max-height:200px;overflow-y:auto;overscroll-behavior:contain;border-top:1px solid var(--v6-line);border-bottom:1px solid var(--v6-line);margin:10px 0;padding:4px 4px 4px 0;scrollbar-width:thin}.v6-stat{display:flex;align-items:center;gap:7px;padding:4px 2px;min-height:28px;line-height:1.2;font-size:12px}.v6-stat>span{flex:1}.v6-stat small{font-size:10px;color:var(--v6-muted)}.v6-dot{width:9px;height:9px;flex:none;border-radius:50%;background:#8e9aaa}.v6-dot.done{background:#13b779}.v6-dot.active{background:#f0a52b}.v6-dot.blocked{background:#e85e6c}
.sprint-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 0 0;position:sticky;bottom:0;background:var(--v6-card);z-index:3}.sprint-actions button{width:100%;white-space:nowrap;padding:9px 5px!important;font-size:11px!important}.sprint-task-inspector{margin-top:9px;border-top:1px solid var(--v6-line);padding-top:8px}.sprint-task-inspector>summary{font-size:11px;font-weight:750;color:var(--v6-blue);cursor:pointer;padding:6px 3px}.v6-shell .command-work{background:var(--v6-soft);padding:12px;border-radius:10px;margin-top:7px;border:0;color:var(--v6-ink)}
.v6-week{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin:10px 0}.v6-week button{padding:7px 0!important;color:var(--v6-ink)!important;font-size:11px!important}.v6-week button b{display:block}.v6-week .today{outline:2px solid var(--v6-blue)}
.v6-shell .community-stage{background:var(--v6-soft);border:0;padding:12px;border-radius:10px;text-align:left}.v6-shell .community-stage .bot-preview{width:65px;height:62px;object-fit:contain;display:block;margin:0 auto 7px}.v6-shell .community-stage strong{color:var(--v6-ink);font-size:12px}.v6-shell .community-stage button{margin:5px 4px 0 0}.v6-browser-tabs{display:flex;gap:5px;margin-bottom:8px}.v6-browser-tabs button{flex:1;padding:7px 2px!important;font-size:10px!important;color:var(--v6-muted)!important}.v6-browser-tabs .selected{background:#0067ed!important;color:white!important}.v6-browserbox{border:1px solid var(--v6-line);border-radius:10px;overflow:hidden;background:var(--v6-soft);margin-bottom:10px}.v6-browser-address{padding:8px;background:var(--v6-card);border-bottom:1px solid var(--v6-line);font-size:10px;color:var(--v6-muted)}.v6-browser-content{min-height:115px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--v6-blue);font-size:23px}.v6-browser-content p{font-size:12px;font-weight:700;margin:2px;color:var(--v6-ink)}.v6-browser-content small{font-size:10px;color:var(--v6-muted)}
#v6-dialog,#command-calendar{background:var(--v6-card,#fff);color:var(--v6-ink,#18263a);width:min(900px,calc(100vw - 36px));max-height:85dvh;overflow:auto;padding:24px;border:1px solid #dce4ee;border-radius:20px}#v6-dialog::backdrop,#command-calendar::backdrop{background:#091629b0}body[data-theme=dark] #v6-dialog,body[data-theme=dark] #command-calendar{--v6-card:#19283d;--v6-ink:#f3f7ff;--v6-soft:#263a51;--v6-muted:#a9bad1;--v6-line:#344a64;--v6-blue:#66aaff}
.v6-folders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px 13px;padding-top:14px}.v6-folder{position:relative;display:flex;flex-direction:column;gap:5px;min-height:126px;padding:17px 14px;background:linear-gradient(160deg,var(--v6-card,#fff),var(--v6-soft,#eaf1fa));border:1px solid var(--v6-line,#dce4ee);border-radius:7px 15px 15px 15px;color:var(--v6-ink,#18263a);text-align:left;box-shadow:0 6px 20px #00000009}.v6-folder summary{cursor:pointer;font-weight:750}.v6-folder small{color:var(--v6-muted,#687b91)}.v6-folder:before{content:'';position:absolute;left:-1px;top:-12px;width:43%;height:13px;background:var(--v6-soft,#eaf1fa);border:1px solid var(--v6-line,#dce4ee);border-bottom:0;border-radius:8px 10px 0 0}.v6-levels{display:flex;gap:10px;flex-wrap:wrap}.v6-levels button{padding:14px;border-radius:12px;border:1px solid #dce4ee}.v6-levels button:disabled{opacity:.65;cursor:not-allowed}.v6-action-summary{margin-top:12px;border-top:1px solid var(--v6-line);padding-top:10px}.v6-action-summary dl{font-size:12px}.v6-action-summary dt{font-weight:700}.v6-action-summary dd{margin:0 0 8px}
@media(max-width:1150px) and (min-width:851px){.v6-shell{--v6-left:205px}.v6-shell.nav-collapsed{--v6-left:72px}.v6-shell.nav-hidden{--v6-left:0px}.v6-quick{grid-template-columns:repeat(2,minmax(0,1fr))}.live-clock{min-width:133px}.v6-shell .topbar{gap:7px;padding-inline:8px}.v6-shell .top-actions #sign-out,.v6-shell .top-actions #sign-in{font-size:10px;padding:4px}.v6-meter label{font-size:9px}}
@media(max-width:850px){.v6-shell,.v6-shell.command-open,.v6-shell.command-open.nav-collapsed,.v6-shell.nav-collapsed,.v6-shell:not(.command-open){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:68px minmax(0,1fr)}.v6-shell .topbar{grid-column:1;grid-row:1;height:68px;padding:7px;gap:7px}.v6-shell>main{grid-column:1;grid-row:2}.v6-shell .sidebar{position:fixed;z-index:12;top:0;bottom:0;left:0;width:min(350px,86vw);height:100dvh;transform:translateX(-100%);visibility:hidden}.v6-shell .sidebar.open{visibility:visible;transform:translateX(0)}.v6-shell.nav-hidden .sidebar.open{visibility:visible}.v6-shell.nav-collapsed .sidebar nav button{font-size:12.5px;width:100%;justify-content:flex-start}.v6-shell.nav-collapsed .sidebar nav button>span:not(.nav-tooltip){display:inline}.v6-shell.nav-collapsed .recent-wrap,.v6-shell.nav-collapsed .sidebar-bottom{display:block}.v6-shell .command-center{position:fixed;right:0;top:0;bottom:0;width:min(370px,92vw);height:100dvh;z-index:12;grid-column:auto;grid-row:auto}.v6-shell .command-resize{display:none}.v6-shell .command-backdrop:not([hidden]){display:block!important;position:fixed;inset:0;z-index:11;background:#09162988}.v6-shell .project-status-strip{gap:7px;flex:1}.v6-meter label{font-size:8px;white-space:normal}.live-clock{min-width:104px}.live-clock span{font-size:12px}.live-clock small{font-size:9px}.v6-head{width:48px}.v6-head img{width:50px!important}.left-ear{left:4px}.right-ear{right:4px}.eye-alert{left:22px}.v6-shell .menu{min-width:28px;padding:4px}.v6-shell #command-toggle{font-size:10px;padding:6px}.v6-shell .top-actions{gap:0}.v6-shell .top-actions #sign-in,.v6-shell .top-actions #sign-out{font-size:9px;padding:2px;min-height:32px}.v6-shell .content,.v6-shell .content:has(#workspace-view:not([hidden])){padding:0 14px}.v6-shell .chat-empty h2{font-size:30px;letter-spacing:-1px}.v6-quick{grid-template-columns:repeat(2,minmax(0,1fr))}.v6-shell .composer-actions>span{display:none}.v6-tool.intel span{max-width:55px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v6-folders{grid-template-columns:repeat(2,minmax(0,1fr))}.v6-shell #project-workspace.with-companion{display:flex;height:auto;min-height:0;overflow:visible}.v6-shell #project-workspace.with-companion:not([data-mobile-view=chat]) #project-chat{display:none}}
@media(max-width:430px){.v6-shell .project-status-strip{gap:3px}.v6-head{width:40px}.v6-head img{width:44px!important}.live-clock{min-width:88px}.live-clock span{font-size:10px}.v6-shell .topbar{gap:4px}.v6-meter label{font-size:7px}.v6-quick button{font-size:10px;white-space:normal}.v6-tool{padding:7px}.v6-shell .chat-composer{margin-bottom:10px}.v6-shell .chat-empty h2{font-size:29px}}
@media(prefers-reduced-motion:reduce){.v6-shell *{scroll-behavior:auto!important}}
/* V6.1 authorized corrections: same shell, independently scrolling conversation. */
.v6-shell>main:has(#project-chat:not([hidden])){overflow:hidden}
.v6-shell #workspace-view{min-height:0;overflow:auto}
.v6-shell #workspace-view:has(#project-chat:not([hidden])){overflow:hidden}
.v6-shell #project-workspace:has(#project-chat:not([hidden])){min-height:0;flex:1;overflow:hidden}
.v6-shell #project-chat,.v6-shell #project-chat.empty-home{flex:1!important;min-height:0;overflow:hidden}
.v6-shell #project-chat .conversation-thread{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.v6-shell #project-chat .chat-composer{position:static;bottom:auto;flex:none}
.v6-shell #project-chat .chat-empty h2{font-weight:600}
.v6-shell #project-workspace.with-companion{height:auto;min-height:0;flex:1}
@media(max-width:850px){.v6-shell #project-workspace.with-companion{height:auto;min-height:0;overflow:hidden}.v6-shell .with-companion #project-chat{max-height:none;min-height:0}.v6-shell .with-companion #view-body{overflow-y:auto;min-height:0;flex:1}}
