/* 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}}
.v6-meter>span{display:block;color:var(--v6-muted);font-size:10px;line-height:1.3;overflow-wrap:anywhere}
@media(max-width:600px){
  .v6-shell,.v6-shell.command-open,.v6-shell.command-open.nav-collapsed,.v6-shell.nav-collapsed,.v6-shell:not(.command-open){grid-template-rows:96px minmax(0,1fr)}
  .v6-shell .topbar{height:96px;flex-wrap:wrap;align-content:center;row-gap:6px}
  .v6-shell .menu,.v6-shell .v6-head,.v6-shell .live-clock,.v6-shell .top-actions{order:0}
  .v6-shell .live-clock{margin-left:auto}
  .v6-shell .project-status-strip{order:1;flex:0 0 100%;flex-wrap:nowrap;align-items:start;gap:12px}
  .v6-meter>span{font-size:9px;white-space:nowrap}
  .v6-track{margin-top:3px}
}
@media(prefers-reduced-motion:reduce){.v6-shell *{scroll-behavior:auto!important}}
.intelligence-library{margin:24px 0 32px}.library-toolbar{display:flex;align-items:center;gap:18px;justify-content:space-between;flex-wrap:wrap}.library-toolbar input{width:min(100%,340px);min-height:44px;background:var(--v6-card);color:var(--v6-ink);border-color:var(--v6-line)}.library-filters{display:flex;gap:6px;flex-wrap:wrap}.library-filters button{border:0;border-radius:24px;background:transparent;color:var(--v6-muted);padding:10px 18px;min-height:44px}.library-filters button[aria-pressed=true]{background:var(--v6-soft);color:var(--v6-ink)}.library-count{font-size:12px;margin:18px 0 10px;color:var(--v6-muted)}.library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 26px}.library-provider{display:flex;align-items:center;gap:16px;padding:20px 4px;min-width:0;border-bottom:1px solid var(--v6-line)}.library-provider-detail{flex:1;min-width:0}.library-provider h3{font-size:17px;margin:0 0 5px;color:var(--v6-ink)}.library-provider p{font-size:13px;line-height:1.5;margin:0 0 7px;color:var(--v6-muted)}.library-mark{width:48px;height:48px;flex:none;border-radius:13px;display:grid;place-items:center;font-size:19px;font-weight:700;border:1px solid var(--v6-line);background:#edf6ff;color:#075da8}.library-mark.ink{background:#242424;color:#fff}.library-mark.green{background:#e4f4ed;color:#166c4c}.library-mark.peach{background:#f7e8dd;color:#955038}.library-mark.yellow{background:#fff1c7;color:#775706}.library-mark.orange{background:#ffeadb;color:#a04e12}.library-state{font-size:11px;color:var(--v6-muted)}.library-add-button{flex:none;min-width:44px;min-height:44px;font-size:25px;background:transparent;border:0;border-radius:10px;color:var(--v6-ink);cursor:pointer}.library-add-button:hover{background:var(--v6-soft)}.library-add .secondary{margin-left:10px}.library-add select{width:100%;min-height:44px;border:1px solid var(--v6-line);border-radius:10px;background:var(--v6-card);color:var(--v6-ink)}
@media(max-width:700px){.library-grid{grid-template-columns:minmax(0,1fr)}.library-toolbar{gap:12px}.library-toolbar input{width:100%}.library-provider{gap:12px;padding:18px 0}.library-provider h3{font-size:16px}.library-mark{width:42px;height:42px}.library-add-button{font-size:23px}}
/* 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}}

.library-add-button.library-explore{font-size:14px;padding:8px;font-weight:600}
.dependency-library .library-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}.dependency-library .library-toolbar select{max-width:100%;min-height:44px}

/* Existing composer microphone state; speech never auto-submits. */
#v6-microphone[data-dictation-state="listening"]{color:#d34545;outline:2px solid currentColor;outline-offset:1px}
#v6-microphone[data-dictation-state="processing"]{opacity:.65}
.dictation-status{display:block;font-size:.8rem;line-height:1.4;margin-top:.35rem}
.dictation-status:empty{display:none}

/* Approved compact roadmap. Existing shell and composer rules remain unchanged. */
.v6-shell .chat-message.tdx:has(.project-roadmap){max-width:100%;width:100%;box-sizing:border-box;background:transparent;border:0;box-shadow:none;padding:0}
.chat-message:has(.project-roadmap)>.speaker,.chat-message:has(.project-roadmap)>p{display:none}
#workspace-view:has(.project-roadmap)>.heading{display:none}
.project-roadmap{color:var(--v6-ink);min-width:0;padding:10px 0}
.roadmap-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
.roadmap-heading h2{font-size:clamp(26px,3vw,36px);line-height:1.1;letter-spacing:-1px;margin:0 0 8px;font-weight:750}
.roadmap-heading p{font-size:14px;color:var(--v6-muted);margin:0}
.roadmap-project-type{display:inline-flex;align-items:center;flex-shrink:0;padding:10px 13px;border:1px solid var(--v6-line);border-radius:15px;font-size:12px;background:var(--v6-card)}
.project-roadmap-grid.v6-quick{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none;width:100%;gap:12px;margin:0 0 20px}
.project-roadmap-grid.v6-quick .project-roadmap-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;width:100%;min-width:0;min-height:84px;border-radius:15px;padding:13px 18px;text-align:left;font-size:12px;white-space:normal;box-shadow:0 4px 14px #112b4a07}
.project-roadmap-grid.v6-quick .project-roadmap-card[aria-pressed=true]{border-color:var(--v6-blue);background:color-mix(in srgb,var(--v6-blue) 5%,var(--v6-card));box-shadow:0 0 0 1px var(--v6-blue)}
.roadmap-tile-title{display:flex;align-items:center;gap:12px;font-size:12px;font-weight:750;line-height:1.2}
.roadmap-tile-title svg{width:24px;height:24px;flex:none;color:var(--v6-blue)}
[data-stage=design] svg{color:#f56614}[data-stage=budget] svg{color:#eaa100}[data-stage=dossier] svg{color:#00af37}[data-stage=test] svg{color:#00a975}[data-stage=build] svg,[data-stage=deploy] svg{color:#254bf5}
.roadmap-status{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:400;color:var(--v6-muted);white-space:nowrap}
.roadmap-status:before{content:'';width:10px;height:10px;border:1.5px solid currentColor;border-radius:50%;box-sizing:border-box;flex:none}
.roadmap-status[data-state=INPUTS_SAVED]{color:var(--v6-blue)}.roadmap-status[data-state=REVIEWED_INPUTS]{color:#00835b}.roadmap-status[data-state=BLOCKED]{color:#a33b2f}
.roadmap-chevron{position:absolute;right:12px;top:32px;font-size:22px;font-weight:400;color:var(--v6-muted)}
.project-roadmap-explore{background:var(--v6-card);border:1px solid var(--v6-line);border-radius:19px;padding:12px 12px 0;box-shadow:0 5px 18px #10234106;overflow:hidden}
.roadmap-stage-header{display:flex;align-items:center;gap:13px;background:color-mix(in srgb,var(--v6-blue) 3%,var(--v6-card));border-radius:13px;padding:14px 16px;margin-bottom:12px}
.roadmap-stage-icon{display:flex;align-items:center;justify-content:center;width:45px;height:45px;border-radius:50%;background:var(--v6-blue);color:white;flex:none}.roadmap-stage-icon svg{width:28px;height:28px;color:white}
.roadmap-stage-header>div{flex:1;min-width:0}.roadmap-stage-header small{font-size:10px;letter-spacing:.08em;color:var(--v6-muted);font-weight:650}.roadmap-stage-header h3{font-size:23px;line-height:1.15;margin:3px 0}.roadmap-stage-header p{font-size:12px;color:var(--v6-muted);margin:0}
.roadmap-stage-header>.roadmap-status{padding:7px 10px;border-radius:12px;background:color-mix(in srgb,var(--v6-blue) 5%,var(--v6-card));align-self:flex-start}
.roadmap-stage-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.roadmap-objectives,.roadmap-answer{background:color-mix(in srgb,var(--v6-blue) 3%,var(--v6-card));border-radius:13px;padding:12px 14px;margin:0;min-width:0}
.roadmap-objectives{list-style:none;display:grid;gap:14px;padding-block:20px}.roadmap-objectives li{display:flex;align-items:center;gap:12px;font-size:12px;line-height:1.35}.roadmap-objective-indicator{font-size:20px;line-height:1;color:var(--v6-muted)}
.roadmap-answer>small{font-size:10px;letter-spacing:.07em;font-weight:700;color:var(--v6-blue)}
.project-roadmap form{display:grid;gap:10px;margin:6px 0 0}.project-roadmap label{display:grid;gap:8px;font-size:12px;font-weight:600;line-height:1.3}
.project-roadmap input:not([type=checkbox]),.project-roadmap textarea{width:100%;box-sizing:border-box;min-width:0;max-width:100%;font:inherit;font-size:12px;border:1px solid var(--v6-line);border-radius:11px;background:var(--v6-card);color:var(--v6-ink);padding:10px}
.project-roadmap textarea{min-height:62px;resize:vertical;font-weight:400}.roadmap-panel-actions{display:flex;gap:8px}.roadmap-panel-actions button{min-height:38px;flex:1;min-width:0;font-size:11px;padding:7px 9px;border-radius:10px;white-space:normal;margin:0}
.roadmap-records{margin:12px 0;font-size:12px}.roadmap-records:not([open]){display:none}
.roadmap-dossier-strip{display:flex;align-items:center;gap:14px;border-top:1px solid var(--v6-line);margin:12px -12px 0;padding:8px 15px;font-size:10px;color:var(--v6-muted);flex-wrap:wrap}
.roadmap-dossier-strip>span+span{border-left:1px solid var(--v6-line);padding-left:14px}.roadmap-dossier-strip button{margin:0 0 0 auto;padding:4px;font-size:10px;min-height:32px;border:0;background:transparent;color:var(--v6-blue);box-shadow:none}
.roadmap-create,.roadmap-sources{margin:10px 0;font-size:11px;color:var(--v6-muted)}.roadmap-create form{padding:12px;background:var(--v6-card);border:1px solid var(--v6-line);border-radius:12px}.roadmap-create label:has([type=checkbox]){display:flex;align-items:center;flex-direction:row-reverse;justify-content:flex-end}
.project-roadmap :focus-visible{outline:3px solid var(--v6-blue);outline-offset:3px}
@media(max-width:850px){.project-roadmap-grid.v6-quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.project-roadmap-grid.v6-quick .project-roadmap-card{min-height:64px;padding:9px 12px;gap:7px;border-radius:13px}.roadmap-tile-title{font-size:11px;gap:8px}.roadmap-tile-title svg{width:20px;height:20px}.roadmap-status{font-size:10px}.roadmap-chevron{top:21px;right:8px;font-size:18px}.roadmap-heading{align-items:flex-start;flex-wrap:wrap;gap:6px;margin-bottom:12px}.roadmap-heading h2{font-size:26px}.roadmap-heading p{font-size:12px;line-height:1.4}.roadmap-project-type{padding:6px 9px;font-size:10px}.roadmap-stage-columns{grid-template-columns:1fr;gap:8px}.roadmap-stage-header{gap:9px;padding:11px 9px}.roadmap-stage-header h3{font-size:20px}.roadmap-stage-header p{font-size:11px}.roadmap-stage-header>.roadmap-status{padding:5px;font-size:9px}.roadmap-stage-icon{width:34px;height:34px}.roadmap-stage-icon svg{width:22px;height:22px}.roadmap-objectives{gap:8px;padding:10px 12px}.roadmap-objectives li{font-size:11px}.roadmap-objective-indicator{font-size:17px}.roadmap-answer{padding:10px 12px}.roadmap-dossier-strip{gap:8px;font-size:9px}.roadmap-dossier-strip>span+span{padding-left:8px}.roadmap-dossier-strip button{font-size:9px}.project-roadmap textarea{min-height:60px}}

.v6-shell #project-chat .conversation-thread:has(.project-roadmap){max-width:1040px;padding:12px 0}
.roadmap-conversation-history{font-size:11px;color:var(--v6-muted)}.roadmap-conversation-history[open]{display:grid;gap:8px}
.project-roadmap .roadmap-panel-actions button[type=submit]{background:var(--v6-blue);color:#fff;border:1px solid var(--v6-blue);box-shadow:0 4px 10px #0067ed22}
@media(min-width:851px){.project-roadmap-grid.v6-quick .project-roadmap-card{aspect-ratio:2.35;min-height:80px;max-height:106px}}
@media(min-width:851px){.roadmap-heading h2{font-size:40px}.roadmap-heading p{font-size:16px}.roadmap-tile-title{font-size:14px}.roadmap-status{font-size:13px}.roadmap-stage-header h3{font-size:28px}.roadmap-stage-header p{font-size:14px}.roadmap-objectives li{font-size:14px}.project-roadmap label,.project-roadmap textarea{font-size:14px}.roadmap-panel-actions button{font-size:13px;min-height:44px}.roadmap-dossier-strip{font-size:12px}.roadmap-dossier-strip button{font-size:12px}}
@media(max-width:850px){.roadmap-tile-title{font-size:12px}.roadmap-status{font-size:11px}.roadmap-objectives li{font-size:12px}.project-roadmap label,.project-roadmap textarea{font-size:13px}}
.roadmap-guidance{font-size:12px;line-height:1.45;color:var(--v6-muted);margin:0 0 12px}
@media(max-width:850px){.roadmap-panel-actions button{min-height:44px}.roadmap-create label:has([type=checkbox]){min-height:44px}}
.project-roadmap label{margin:0;line-height:1.3}
@media(max-width:850px){.roadmap-answer{line-height:1.3}.roadmap-answer>small{display:block;line-height:1.2}.project-roadmap form{gap:6px}.project-roadmap label{gap:6px}.roadmap-stage-header small{display:block;line-height:1.2}.roadmap-stage-header p{line-height:1.3}.roadmap-objectives{padding:8px 12px;gap:5px}.roadmap-objectives li{line-height:1.3}}

/* Compact TDX draft expands upward within the existing composer; long text scrolls inside. */
.v6-shell .chat-composer #chat-input{height:24px;min-height:24px;max-height:min(160px,25dvh);line-height:24px;resize:none;overflow-y:hidden}
.dictation-status[data-dictation-state="listening"]::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#d34545;margin-right:7px}
.dictation-status[data-dictation-state="processing"]::before{content:"";display:inline-block;width:10px;height:10px;border:2px solid var(--v6-line);border-top-color:var(--v6-blue);border-radius:50%;margin-right:7px;animation:tdx-transcribing .8s linear infinite}
@keyframes tdx-transcribing{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.dictation-status[data-dictation-state="processing"]::before{animation:none}}

/* Chat/L.A.M.P. host correction: preserve the inspector; keep conversation usable.
   Measure the actual center pane, including when the Command Center is open. */
.v6-shell #workspace-view{container-type:inline-size;container-name:chat-workspace}
.v6-shell #project-workspace.with-companion{display:flex;flex-direction:column;gap:10px;overflow:hidden}
.v6-shell #project-companion-switch{position:static;flex:none;flex-wrap:wrap;background:var(--v6-bg);align-items:center}
.v6-shell #project-companion-switch button[aria-pressed=true]{border-color:var(--v6-blue);color:var(--v6-blue)}
.v6-shell #lamp-new-tab{margin-left:auto;font-size:12px;padding:8px;text-decoration:none;color:var(--v6-blue)}
.v6-shell .with-companion:not([data-mobile-view="details"]) #view-body{display:none}
.v6-shell #project-workspace.with-companion:not([data-mobile-view="details"]) #project-chat{display:flex;max-height:none;min-height:0}
.v6-shell #project-workspace.with-companion[data-mobile-view="details"] #project-chat{display:none}
.v6-shell #project-workspace.with-companion #view-body{min-width:0;min-height:0;overflow:auto;flex:1}
.v6-shell #project-workspace.with-companion #return-project-chat{position:static;flex:none}
.v6-shell .with-companion .chat-composer textarea{max-height:24dvh}
@container chat-workspace (min-width:1000px){
 .v6-shell #project-workspace.with-companion{display:grid;grid-template-columns:minmax(440px,1.2fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 .v6-shell #project-workspace.with-companion #project-chat,.v6-shell #project-workspace.with-companion[data-mobile-view="details"] #project-chat{display:flex}
 .v6-shell #project-workspace.with-companion #view-body,.v6-shell .with-companion:not([data-mobile-view="details"]) #view-body{display:block}
}

.v6-shell #project-workspace.with-companion[data-detached="true"]{display:flex}
.v6-shell #project-workspace.with-companion[data-detached="true"][data-mobile-view="details"] #project-chat{display:none}
.v6-shell #project-workspace.with-companion[data-detached="true"]:not([data-mobile-view="details"]) #view-body{display:none}

/* Founder-requested project chat disclosure; retains existing shell tokens. */
.v6-shell .project-chat-folders>summary{padding:11px 12px;min-height:42px;box-sizing:border-box;font-size:12.5px;font-weight:600;color:var(--v6-muted);cursor:pointer;border-radius:11px}
.v6-shell .project-chat-folders>summary:hover{background:var(--v6-soft);color:var(--v6-blue)}
.v6-shell .project-chat-list{padding-left:12px;max-height:260px;overflow-y:auto}
.v6-shell .project-chat-list summary{padding:8px 4px;cursor:pointer;overflow-wrap:anywhere;color:var(--v6-muted)}
.v6-shell .project-chat-list button{display:block;width:100%;min-height:36px!important;padding:7px 8px!important;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:12px!important}
.v6-shell .chat-history{padding:8px 12px;color:var(--v6-muted)}
.v6-shell .chat-history summary{cursor:pointer;min-height:36px;align-content:center;font-weight:600}
.v6-shell .chat-history label{display:grid;gap:5px;font-size:12px}
.v6-shell .chat-history input{width:100%;box-sizing:border-box;min-height:36px;background:var(--v6-card);color:var(--v6-ink);border:1px solid var(--v6-line);border-radius:8px;padding:6px}
.v6-shell .chat-history p{font-size:11px}.v6-shell .chat-history .recent-list{max-height:280px;overflow-y:auto}
@media(min-width:851px){.v6-shell.nav-collapsed .project-chat-folders{display:none}}
/* Sidebar owns scrolling: expanded project folders must not collapse history to zero. */
.v6-shell .sidebar>#nav,.v6-shell .sidebar>.sidebar-bottom,.v6-shell .sidebar>.v6-appearance{flex-shrink:0}
.v6-shell .sidebar>.recent-wrap{flex:0 0 auto;overflow:visible}

#sidebar-close{display:none}
.v6-shell .sidebar{overflow-x:hidden}.v6-shell .project-chat-folders,.v6-shell .project-chat-list,.v6-shell .chat-history,.v6-shell .recent-list{min-width:0;max-width:100%}
@media(max-width:850px){.v6-shell #sidebar-close{display:block;position:sticky;top:0;z-index:2;flex:none;min-height:44px;padding:10px 12px;border:0;background:var(--v6-card);color:var(--v6-blue);text-align:right}.v6-shell .sidebar.open{left:0;right:auto}}

/* Founder response-flow correction: existing bubble and control tokens retained. */
.v6-shell .response-summary,.v6-shell .response-layer{white-space:pre-wrap;overflow-wrap:anywhere}
.v6-shell .response-more,.v6-shell .response-less{font:inherit;font-size:.9em;margin:8px 8px 0 0;padding:6px 10px;min-height:36px}
.v6-shell .response-details{border-top:1px solid var(--v6-line);margin-top:10px;padding-top:2px}
.v6-shell .response-layer{margin:10px 0}

/* Founder November7: in-flow Community preview; existing shell tokens and controls. */
.v6-shell .community-sidebar{min-width:0;width:100%;color:var(--v6-muted)}
.v6-shell .community-sidebar>summary{cursor:pointer;min-height:44px;padding:11px 12px;font-weight:600;border-radius:11px}
.v6-shell .community-sidebar>summary:hover,.v6-shell .community-sidebar[open]>summary{background:var(--v6-soft);color:var(--v6-blue)}
.v6-shell [data-community-sidebar]{width:100%;height:432px;max-height:60dvh;overflow:auto;background:var(--v6-bg);border:1px solid var(--v6-line);border-radius:11px;padding:12px;overflow-wrap:anywhere}
.v6-shell [data-community-sidebar] p{font-size:12px;color:var(--v6-muted);margin:14px 0;line-height:1.5}
.v6-shell [data-community-sidebar] button,.v6-shell [data-community-sidebar] a{display:block;width:100%;white-space:normal;font-size:12px;margin-top:12px;color:var(--v6-blue)}
.v6-shell.nav-collapsed .community-sidebar{display:none}
@media(prefers-reduced-motion:no-preference){.v6-shell .community-sidebar[open]>section{animation:community-reveal .16s ease-out}@keyframes community-reveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}}

/* Versioned November7 room illustration: existing Learning stage/audience/control vocabulary. */
.v6-shell .community-room-illustration{border:1px solid var(--v6-line);border-radius:10px;background:var(--v6-card,#fff);padding:10px;margin-top:10px;color:var(--v6-ink,#17263d)}
.v6-shell .community-preview-stage{display:flex;justify-content:space-between;gap:8px;font-size:10px;font-weight:600;color:var(--v6-muted);padding-bottom:8px;border-bottom:1px solid var(--v6-line)}
.v6-shell .community-preview-audience{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 5px;padding:9px 0;max-height:155px;overflow:auto}
.v6-shell .community-preview-seat{display:flex;justify-content:center}
.v6-shell .community-preview-head{position:relative;display:block;width:30px;height:30px;border-radius:50%;background:var(--v6-soft);border:1px solid var(--v6-line);overflow:hidden}
.v6-shell .community-preview-head:before{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:var(--v6-muted);top:5px;left:9px}
.v6-shell .community-preview-head:after{content:"";position:absolute;width:20px;height:14px;border-radius:12px 12px 0 0;background:var(--v6-muted);top:17px;left:4px}
.v6-shell .community-room-illustration small{font-size:10px;color:var(--v6-muted)}
.v6-shell .community-preview-thread{margin-top:10px;padding:7px;border:1px dashed var(--v6-line);border-radius:7px;font-size:10px;color:var(--v6-muted)}
.v6-shell .community-preview-controls{display:flex;justify-content:space-between;gap:4px;margin-top:10px;font-size:9px;color:var(--v6-muted)}
.v6-shell .community-preview-controls span{padding:5px 3px;border-radius:6px;background:var(--v6-soft)}
.v6-shell [data-community-sidebar] p{margin:8px 0;line-height:1.4}
