/* Executive workspace: viewport shell, semantic color, progressive disclosure. */
:root{--bg:#101317;--surface:#191e25;--border:#303842;--muted:#a0aab5;--accent:#95c8b0;--good:#92c9a5;--working:#dfac79;--warning:#d1bd76;--critical:#dc9297}
body{background:var(--bg);color:#e8edf2}button,input,select,textarea{font:inherit}button{background:#252d37;border-color:#394451;color:#e8edf2;border-radius:9px}button.primary{background:#8cbaa4;color:#101c16;border-color:#8cbaa4}button.danger{background:#493137;color:#edb8bc;border-color:#79515a}input,textarea,select{background:#141a21;border-color:#394451;color:#e8edf2}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:disabled{opacity:.5}.tag.good,.good{color:var(--good)}.tag.good{background:#263b32}.tag.working{color:var(--working);background:#443629}.tag.warning{color:var(--warning);background:#403b29}.tag.critical{color:var(--critical);background:#452d33}progress{accent-color:var(--working);height:5px;width:100%;border-radius:6px}.good progress{accent-color:var(--good)}progress::-webkit-progress-bar{background:#303740;border-radius:6px}progress::-webkit-progress-value{background:var(--working);border-radius:6px}.good progress::-webkit-progress-value{background:var(--good)}[hidden]{display:none!important}
body.app-open{height:var(--app-height,100dvh);min-height:0;overflow:hidden;display:flex;flex-direction:column}.app-open>header,.app-open>footer,.app-open>.language-switch{display:none}.app-open main{width:100%;max-width:1700px;min-height:0;flex:1;display:flex;overflow:hidden;padding:16px 24px;margin:auto}.app-open #dashboard{width:100%;min-width:0;min-height:0;display:flex;flex-direction:column}.app-open #dashboard>.heading{flex:none;margin:0 0 10px;gap:10px}.heading h1{font-size:26px;margin:3px 0}.heading small{font-size:11px}.heading button{font-size:12px;padding:8px 12px;min-height:36px}.app-open #navigation{display:flex;flex-wrap:nowrap;flex:none;align-items:center;margin:0;padding:0 0 10px;gap:6px;border-bottom:1px solid var(--border)}#navigation>button{border:0;padding:10px 18px;min-height:40px;background:transparent}#navigation>button[aria-current=page]{background:#2b3e35;color:#b6dac5}#moreNavigation{position:relative;margin:0;margin-inline-start:auto;padding:0}#moreNavigation>summary{cursor:pointer;padding:10px 15px;font-size:14px;list-style:none}.more-menu{position:absolute;inset-inline-end:0;top:100%;width:250px;max-height:65dvh;overflow:auto;z-index:50;padding:8px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 16px 40px #0008;display:flex;flex-direction:column;gap:3px}.more-menu button{text-align:start;border:0;background:transparent;padding:9px}#notice{flex:none;margin:0;max-height:52px;overflow:auto}#notice:not(:empty){padding:8px}.app-open .page{flex:1;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 2px;scrollbar-width:thin}.card{background:var(--surface);border-color:var(--border);box-shadow:none;border-radius:14px}.app-open .page> .page-help{float:none;flex:none;margin:0 0 8px}.page h2{font-size:17px}.page p{line-height:1.5}.page *{min-width:0}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}.table-wrap{max-width:100%}.id{overflow-wrap:anywhere}
.executive{display:flex;flex-direction:column;gap:12px}.executive-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;flex:none}.executive-stat{padding:14px 18px;background:var(--surface);border:1px solid var(--border);border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.executive-stat small{font-size:12px;color:var(--muted)}.executive-stat strong{font-size:27px}.executive-stat.working strong{color:var(--working)}.executive-stat.warning strong{color:var(--warning)}.executive-stat.good strong{color:var(--good)}.command-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px;flex:1;min-height:180px;max-height:46vh}.executive-panel{display:flex;flex-direction:column;padding:16px;margin:0;min-height:0}.panel-scroll{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;min-height:0;flex:1}.section-heading{gap:10px;flex-wrap:wrap}.executive h2,.executive h3{margin:0}.executive .section-heading{flex:none}.section-heading button{font-size:12px;padding:6px 11px;min-height:32px}.work-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-block-end:1px solid var(--border);padding:13px 0}.work-row>div{flex:1;min-width:0}.work-row>button{flex:none}.work-row p{margin:5px 0;font-size:13px;overflow-wrap:anywhere}.work-row strong{font-size:14px}.work-row small{font-size:11px;color:var(--muted)}.work-row.working{border-inline-start:2px solid var(--working);padding-inline-start:10px}.work-row.critical{border-inline-start:2px solid var(--critical);padding-inline-start:10px}.work-row.warning{border-inline-start:2px solid var(--warning);padding-inline-start:10px}.work-row .tag{font-size:10px}.calm-state{height:100%;min-height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);text-align:center;padding:14px}.calm-state>span{font-size:28px;color:var(--good)}.calm-state p{margin:8px 0;font-size:14px}.calm-state small{font-size:11px}.pulse-grid,.portfolio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-content:start}.pulse-grid{max-height:30vh;overflow:auto;scrollbar-width:thin;flex:none}.project-tile{border:1px solid var(--border);background:var(--surface);border-radius:12px;padding:14px;min-width:0}.project-tile h3{font-size:15px}.project-tile p{font-size:12px;margin:9px 0}.project-tile small{font-size:10px}.project-tile .tag{font-size:10px}.one-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%}.text-button{padding:0!important;min-height:22px!important;background:none;border:0;text-align:start;font-size:12px}.goal-progress{margin:10px 0;font-size:11px;color:var(--muted)}.goal-progress>div{margin-bottom:3px}.goal-progress.good{color:var(--good)}#projectSearch{max-width:380px;margin:0}#portfolioGrid{overflow:auto;flex:1}#projectCommandDialog,#goalDialog,#goalDetailDialog,#decisionDialog{width:min(760px,94vw);max-height:88dvh;overflow:auto;background:var(--surface);color:#e8edf2;border:1px solid var(--border);border-radius:16px;padding:24px}dialog::backdrop{background:#07090dcc;backdrop-filter:blur(4px)}dialog h2{font-size:20px}dialog h3{font-size:15px}.project-summary{background:#222b32;border-radius:12px;padding:16px;margin:16px 0}.task-detail{margin:7px 0;padding:10px;border:1px solid var(--border);border-radius:8px}.task-detail summary{font-size:12px;overflow-wrap:anywhere}.milestones{padding-inline-start:22px}.milestones li{padding:8px 0;color:var(--working)}.milestones li.good{color:var(--good)}.milestones small{display:block;color:var(--muted);margin-top:4px}.app-open #chat{overflow:hidden;display:flex;flex-direction:column}.app-open #chat>.card{flex:1;min-height:0;display:flex;flex-direction:column;margin:0;padding:15px}.app-open #messages{height:auto;flex:1;min-height:50px;overflow:auto}.app-open #chatForm{flex:none}.app-open #chatForm~p{display:none}.app-open #chatProject{max-width:100%}.app-open #chat .bubble{font-size:14px;max-width:85%}.app-open #chat .bubble.user{background:#263d35}.app-open #chat .bubble.assistant{background:#26313d}.app-open #chat .page-help{display:none}#messages pre{font-size:12px}#chatRouteHint{font-size:11px}#chatLocalApprovals{max-height:120px;overflow:auto}[data-count]:not([data-count=""])::after{content:attr(data-count);background:#5b4930;color:#f1d49e;border-radius:10px;padding:1px 6px;font-size:10px;margin-inline-start:5px}
@media(min-width:801px) and (min-height:601px), (min-width:951px){.app-open #mobileNav{display:none}#chat>.card>.section-heading{flex:none}#chatProjectLabel{margin:6px 0}.app-open #chatText{max-height:90px;min-height:44px;resize:none}#voicePanel{flex:none}#voicePanel[open]{max-height:28vh;overflow:auto}#chatAttachments{flex:none;max-height:65px;overflow:auto}}
@media(max-width:1050px){.pulse-grid,.portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.executive-stat{padding:11px}.executive-stat strong{font-size:22px}#navigation>button{padding:10px 12px}}
@media(max-width:800px), (max-width:950px) and (max-height:600px){.app-open main{padding:0}.app-open #dashboard{padding-bottom:calc(54px + env(safe-area-inset-bottom,0px))}.app-open #navigation{display:none}.app-open #dashboard>.heading{margin:0;padding:5px 10px;height:44px}.app-open .page{padding:9px 10px}.app-open .executive{gap:8px}.executive-metrics{gap:5px;grid-template-columns:repeat(4,minmax(0,1fr))}.executive-stat{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:8px}.executive-stat small{font-size:9px}.executive-stat strong{font-size:18px}.command-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(140px,1fr) minmax(90px,.7fr);gap:8px;max-height:none;min-height:245px}.executive .executive-panel{padding:10px;margin:0}.executive h2{font-size:14px}.executive .section-heading small{display:none}.work-row{padding:8px 0;gap:7px}.work-row strong{font-size:12px}.work-row p{font-size:11px;margin:3px 0}.work-row small{font-size:9px}.work-row button{font-size:11px;min-height:32px;padding:5px 8px}.calm-state{min-height:60px;padding:6px}.calm-state>span{font-size:21px}.calm-state p{font-size:12px;margin:4px}.calm-state small{font-size:10px}.pulse-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:24vh}.project-tile{padding:10px}.project-tile h3{font-size:13px}.project-tile .tag{font-size:9px;padding:3px 5px}.project-tile p{font-size:10px;margin:6px 0}.project-tile small{font-size:9px}.project-tile .section-heading{gap:6px}.project-tile .section-heading small{display:block}.project-tile .section-heading>button{font-size:10px;min-height:28px;padding:4px 7px}.goal-progress{font-size:10px;margin:6px 0}.portfolio-grid{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.section-heading button{font-size:11px}.executive>.section-heading{gap:6px}.executive>.section-heading input{flex:1}.executive .section-heading h2{margin:0}.app-open #chat>.card{padding:9px}.app-open #chat .bubble{font-size:12px}#mobileNav{background:#191e25}#mobileNav button[aria-current=page]{background:#2b3e35;color:#b6dac5}#goalDialog,#goalDetailDialog,#projectCommandDialog,#decisionDialog{padding:15px;width:95vw;max-height:90dvh}dialog .columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}#projectCommandDialog .toolbar{gap:5px}#projectCommandDialog .toolbar button{font-size:11px}#command>.page-help{display:none}}
@media(max-height:650px){.pulse-grid{max-height:22vh}.command-grid{min-height:190px}.executive-stat{padding:7px 10px}.app-open .page{overflow:auto}#command>.section-heading>small{display:none}}

.supervision-strip{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;font-size:11px;margin:4px 0}.supervision-strip button{font-size:11px;min-height:28px;padding:4px 8px}.executive>.screen-help-button{align-self:flex-end;margin:0;min-height:28px;padding:4px 8px;font-size:11px}@media(max-width:800px), (max-width:950px) and (max-height:600px){#command>.screen-help-button{display:none}.supervision-strip{font-size:10px}.supervision-strip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}}

@media(max-width:800px), (max-width:950px) and (max-height:600px){.chat-card>.field-help-button{display:none}.chat-card>.section-heading.space{flex-wrap:nowrap}.chat-card #chatProjectLabel{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.chat-card #chatFiles{flex:none}.supervision-strip{margin:3px 0 6px}.supervision-strip small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.supervision-strip button{flex:none}}
