:root{--bg:#1f1f1f;--panel:#252526;--line:#383838;--text:#d4d4d4;--muted:#a3a3a3;--accent:#007acc}body{font:13px/1.5 'Segoe UI',system-ui,sans-serif}header{height:38px;padding:0 14px;background:#181818;gap:10px}.brand{font-size:15px}.brand span{font-size:11px}#status{color:#b6c8d8;font-size:11px}main{max-width:none;margin:0;padding:0}.panel{border:0;border-radius:0;padding:22px}h1{font-size:22px}h2{font-size:17px}h3{font-size:14px}button{font:12px 'Segoe UI',sans-serif;border-radius:3px;padding:5px 9px;margin:3px;color:white}input,textarea,select{font-size:13px;border-radius:2px;padding:6px;background:#313131}label{margin:8px 0 4px}#workspace>nav{height:40px;background:#181818;border-bottom:1px solid var(--line);gap:3px;flex-wrap:nowrap;overflow:auto;margin:0;padding:3px 8px}nav button{white-space:nowrap;border:0;color:#aaa}nav button.active{color:#fff;border-bottom:2px solid #007acc;background:#252526}#logout{margin-left:auto}#login{max-width:430px;margin:10vh auto;padding:24px;border:1px solid var(--line);border-radius:6px}footer{display:none}#message{position:fixed;bottom:0;left:0;right:0;background:#007acc;color:white;min-height:23px;margin:0;padding:2px 12px;z-index:5;font-size:12px}#message:empty:before{content:'MIU · Prêt'}#processing-panel{margin:0;border-radius:0;padding:4px 12px;background:#181818;font-size:11px}#processing-panel:not([open]){height:27px}#processing-panel[open]{max-height:230px;overflow:auto}.ide-active #processing-panel{position:fixed;bottom:23px;left:0;right:0;z-index:4}.ide-active #ide{height:calc(100dvh - 128px)}#ide{display:grid;grid-template-columns:210px minmax(240px,1fr) minmax(300px,380px);overflow:hidden;background:#1f1f1f}#ide-explorer{background:#181818;border-right:1px solid var(--line);overflow:auto;padding:0 8px}#ide-editor{display:flex;flex-direction:column;min-width:0;overflow:hidden}#ide-chat{display:flex;flex-direction:column;min-width:0;background:#181818;border-left:1px solid var(--line);overflow:hidden}.ide-heading{height:35px;flex-shrink:0;border-bottom:1px solid var(--line);padding:9px;font-size:11px;letter-spacing:.06em;color:#bbb}#project-folder{font-size:11px;overflow-wrap:anywhere;padding:4px;color:#bbb}#code-tree{max-height:none;font-size:12px}#code-tree details{margin:0 0 0 10px}#code-tree summary{padding:3px;color:#ddd}#code-tree button{margin:0;border:0;border-radius:0;width:100%;text-align:left;font-size:12px}#code-tree button:hover{background:#37373d}#ide-editor #code-path{background:#252526;border:0;border-bottom:1px solid var(--line);padding:9px}#ide-editor #code-new{align-self:flex-start}#ide-editor .code-editor{flex:1;min-height:0;border:0;background:#1f1f1f}#ide-editor #code-text{max-height:none;resize:none;background:#1f1f1f;font-size:13px;line-height:1.6;outline-offset:-2px}#ide-editor #code-lines{max-height:none;background:#1f1f1f;font-size:13px;line-height:1.6;padding-top:12px}#code-state{font-size:11px;padding:3px 9px;color:#999}#code-save{align-self:flex-end;margin:6px 12px}#ide-sessions{padding:7px;border-bottom:1px solid var(--line)}#chat-sessions{width:100%;background:#252526}#chat-title{width:100%;margin:5px 0}#chat-history{flex:1;min-height:100px;overflow:auto;padding:12px}#chat-history article{padding:10px 0;border-bottom:1px solid #333}#chat-history article>strong{font-size:12px;color:#7fc4ef}#chat-history pre{font:13px/1.65 'Segoe UI',sans-serif;background:none;padding:0;border:0;max-height:none;white-space:pre-wrap;overflow-wrap:anywhere}#chat-history input{margin-top:8px}#ide-compose{padding:10px;border-top:1px solid var(--line);background:#202020;max-height:45%;overflow:auto}#llm-prompt{min-height:90px;border:1px solid #555;border-radius:6px;background:#2a2a2a}#llm-send{float:right;background:#007acc}#chat-processing{border:0;padding:0;font-size:11px;clear:both}#ide-compose details{margin:5px 0}#ide-compose details[open]{padding-bottom:12px}#media-preview:empty{display:none}#media-preview{padding:4px;margin:4px}#media-preview img{max-height:180px}#llm-answer{display:none}#folder-dialog{background:#252526;color:#ddd;border:1px solid #555;border-radius:7px;width:min(600px,90vw);max-height:85vh}#folder-dialog::backdrop{background:#0009}#folder-entries{height:280px;overflow:auto;border:1px solid #444;margin:10px 0}#folder-entries button{display:block;width:100%;text-align:left;border:0;border-radius:0;margin:0;padding:7px}#folder-error{color:#f99}body:not(.ide-active) #workspace>.tab{max-height:calc(100dvh - 130px);overflow:auto}#llm>div:has(>.chat-code-layout){display:none}@media(max-width:1050px){#ide{grid-template-columns:160px minmax(180px,1fr) minmax(260px,34%)}#ide-sessions button{font-size:11px}}@media(max-width:720px){#ide{grid-template-columns:125px minmax(180px,1fr);grid-template-rows:45% 55%}#ide-explorer{grid-row:1/3}#ide-chat{grid-column:2;border-top:1px solid #444}#ide-compose{max-height:60%}.brand span{display:inline}.panel{padding:15px}}

#chat-history:empty:before{content:'Discutez de votre projet avec MIU. Les conversations et les fichiers restent associes au dossier ouvert.';display:block;padding:20px 4px;color:#969696;font-size:13px;line-height:1.7}#chat-sessions:empty{display:none}

#chat-camera-preview{width:100%;max-height:230px;object-fit:contain;background:#000}#chat-media-tools p{font-size:11px}#new-folder-path{margin-top:8px;font-size:12px}
/* M501-M510 — modern full-window MIU workspace */
body.ide-active{overflow:hidden;background:#0b111b}.ide-active header{height:48px;background:linear-gradient(90deg,#0b1320,#101827);border-bottom:1px solid #233248}.ide-active .brand{font-size:20px;letter-spacing:.08em}.ide-active #workspace>nav{height:46px;background:#0d1521;border-bottom:1px solid #26364b;justify-content:center;gap:8px}.ide-active #workspace>nav button{padding:7px 14px;border-radius:7px;color:#aebdd0}.ide-active #workspace>nav button.active{background:#112b46;color:#eef7ff;border:1px solid #1e8fff;box-shadow:inset 0 -2px #12a8ff}.ide-active #ide{height:calc(100dvh - 117px);grid-template-columns:280px minmax(520px,1fr) 390px;background:#09111c}.ide-active #processing-panel{display:none}.ide-active #ide-explorer{background:#0b1420;border-right:1px solid #243449;padding:0 10px}.ide-active #ide-chat{grid-column:2;background:#0a1320;border:0;min-width:0}.ide-active #ide-activity{grid-column:3;background:#0b1420;border-left:1px solid #243449;padding:10px;overflow:auto}.ide-heading{height:40px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;color:#dce8f6;font-size:12px;font-weight:700;letter-spacing:.04em;background:transparent;border-bottom:1px solid #223146}.ide-chat-head{background:#0d1826}.ide-chat-head #ide-model-state{font-weight:400;font-size:10px;color:#6faee0}.ide-active #ide-sessions{display:flex;gap:6px;align-items:center;padding:7px 12px;background:#0c1623}.ide-active #chat-sessions{width:auto;min-width:180px;flex:1}.ide-active #chat-title{display:none}.ide-active #ide-sessions button{margin:0}.ide-active #chat-history{background:radial-gradient(circle at 50% 0,#122237 0,#09131f 38%,#08111c 100%);border:0;border-radius:0;padding:20px 28px;height:auto;min-height:0;max-height:none}.ide-active .chat-event{max-width:92%;border:1px solid #243a54;background:linear-gradient(180deg,#122034,#0e1928);border-radius:12px;padding:14px 16px;box-shadow:0 8px 28px #0002}.ide-active .chat-event.user_text,.ide-active .chat-event.user_voice{max-width:86%;background:#15243a;border-color:#2a4665}.ide-active .chat-event header{height:auto;background:transparent;border:0;padding:0;margin-bottom:8px}.ide-active .chat-event header strong{color:#55d9ff}.ide-active .chat-event.user_text header strong{color:#dce9ff}.ide-active #ide-compose{background:#0d1724;border-top:1px solid #26384e;padding:12px 18px;max-height:42%;box-shadow:0 -12px 30px #0003}.ide-active #llm-prompt{min-height:76px;background:#101d2d;border:1px solid #2d425c;border-radius:10px;box-shadow:none}.activity-card{background:linear-gradient(180deg,#101c2b,#0d1723);border:1px solid #24364b;border-radius:11px;margin-bottom:12px;overflow:hidden;box-shadow:0 7px 20px #0002}.activity-card>.ide-heading{background:#101b29}.activity-card p{padding:10px;margin:0;font-size:12px}.terminal-mini{height:340px}.terminal-mini pre{height:295px;max-height:none;margin:0;border:0;border-radius:0;background:#06101a;color:#b9e6c3;font:12px/1.55 Consolas,monospace;padding:13px;overflow:auto}#live-task{display:flex;gap:12px;align-items:center;padding:16px;min-height:78px}#live-task>div{min-width:0}#live-task strong,#live-task small{display:block}#live-task small{color:#8398b1;margin-top:3px}.task-dot{width:18px;height:18px;border-radius:50%;border:2px solid #34506d;display:inline-block;flex:none}.task-dot.idle{border-color:#2dca78;background:#2dca7833}.task-dot.spin{border-color:#1a9fff;border-top-color:transparent;animation:miu-spin .8s linear infinite}@keyframes miu-spin{to{transform:rotate(360deg)}}.task-dots{display:inline-flex;gap:3px;margin-left:4px}.task-dots i{width:4px;height:4px;background:#36b8ff;border-radius:50%;animation:miu-dot 1.15s infinite}.task-dots i:nth-child(2){animation-delay:.16s}.task-dots i:nth-child(3){animation-delay:.32s}@keyframes miu-dot{0%,70%,100%{opacity:.25;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}#recent-events{padding:5px 9px 10px}.recent-task{display:flex;gap:10px;padding:9px 5px;border-bottom:1px solid #1e2d40}.recent-task>span{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#17273a}.recent-task.ok>span{color:#42df84}.recent-task.bad>span{color:#ff7474}.recent-task.wait>span{color:#38b8ff}.recent-task strong,.recent-task small{display:block;font-size:11px}.recent-task small{color:#7f94aa}.editor-drawer{display:none;background:#0b1420;border:1px solid #2c4057;border-radius:10px;overflow:hidden;margin-bottom:12px}.editor-open .editor-drawer{display:flex;flex-direction:column;position:fixed;z-index:20;right:400px;top:100px;bottom:36px;width:min(760px,50vw);box-shadow:0 20px 60px #000b}.editor-drawer .code-editor{flex:1;min-height:0}.editor-drawer #code-text,.editor-drawer #code-lines{max-height:none}.editor-drawer #editor-close{padding:1px 7px;margin:0}.file-change-card{margin-top:13px;border:1px solid #2a405a;border-radius:10px;overflow:hidden;background:#0a1420}.file-change-head{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#111f30;border-bottom:1px solid #2a405a}.file-change-head strong{font-size:13px}.file-change-head span{font-size:11px;color:#91a9c2}.change-badge{margin-left:auto!important;color:#51df88!important;background:#153c2a;padding:2px 7px;border-radius:5px}.file-diff-preview{display:grid;grid-template-columns:1fr 1fr;max-height:340px;overflow:auto}.file-diff-preview pre{position:relative;margin:0!important;padding:30px 12px 12px!important;border-radius:0!important;font:12px/1.55 Consolas,monospace!important;white-space:pre!important;overflow:auto;background:#0b1521!important}.file-diff-preview pre:before{content:attr(data-label);position:absolute;top:7px;left:10px;font:700 9px system-ui;color:#6f859d;letter-spacing:.08em}.file-diff-preview pre:first-child{border-right:1px solid #273a50;background:linear-gradient(#35171b66,#0b1521 35%)!important}.file-diff-preview pre:last-child{background:linear-gradient(#12382466,#0b1521 35%)!important}.file-change-actions{display:flex;gap:8px;padding:7px 10px;border-top:1px solid #23364a}.file-change-actions button{margin:0;background:#132b43;color:#cfe9ff;border-color:#28557d}.ide-active #message{background:#0785d1;box-shadow:0 -1px #2ca9f4}.ide-active #message:empty:before{content:'MIU  •  Projet prêt  •  Qwen3 local disponible'}
@media(max-width:1150px){.ide-active #ide{grid-template-columns:220px minmax(420px,1fr) 300px}.editor-open .editor-drawer{right:310px;width:55vw}}@media(max-width:850px){.ide-active #ide{grid-template-columns:170px 1fr}.ide-active #ide-activity{display:none}.file-diff-preview{grid-template-columns:1fr}.editor-open .editor-drawer{right:10px;left:180px;width:auto}}


/* M511-M520 — strict MIU desktop window, VS Code spatial grammar with MIU identity */
:root{--miu-bg:#181818;--miu-editor:#1f1f1f;--miu-panel:#181818;--miu-input:#313131;--miu-border:#2b2b2b;--miu-border2:#3c3c3c;--miu-text:#cccccc;--miu-muted:#969696;--miu-blue:#0078d4;--miu-blue2:#0e639c;--miu-green:#2ea043;--miu-red:#f14c4c}
#miu-shell-chrome{display:none}#miu-statusbar{display:none}
body.ide-active{padding-top:35px;padding-left:48px;padding-bottom:22px;background:var(--miu-bg);color:var(--miu-text);font-family:"Segoe UI",system-ui,sans-serif}
body.ide-active>header{display:none}
.ide-active #miu-shell-chrome{display:block}
#miu-titlebar{position:fixed;z-index:50;left:0;right:0;top:0;height:35px;display:flex;align-items:center;background:#181818;border-bottom:1px solid #252525;color:#aaa;user-select:none}
.miu-mark{width:34px;text-align:center;color:#23c7b7;font-size:19px;font-weight:900}.miu-version{font-size:10px;margin-left:6px;color:#8b8b8b}.miu-menu{display:flex;gap:18px;margin-left:22px;font-size:12px}.miu-command{position:absolute;left:50%;transform:translateX(-50%);width:min(520px,34vw);height:24px;display:flex;align-items:center;justify-content:center;background:#202020;border:1px solid #323232;border-radius:6px;color:#999;font-size:12px}.miu-window-actions{margin-left:auto;height:100%;display:flex}.miu-window-actions span{width:46px;display:grid;place-items:center;font-size:13px}.miu-window-actions span:last-child:hover{background:#c42b1c;color:#fff}
#miu-activitybar{position:fixed;z-index:45;left:0;top:35px;bottom:22px;width:48px;background:#181818;border-right:1px solid #2a2a2a;display:flex;flex-direction:column;align-items:center;padding-top:4px}.miu-activitybar{}.miu-activitybar button,#miu-activitybar button{width:47px;height:48px;margin:0;border:0;border-left:2px solid transparent;border-radius:0;background:transparent;color:#858585;font-size:21px;padding:0}#miu-activitybar button:hover{color:#ddd;background:#222}#miu-activitybar button.active{color:#fff;border-left-color:#fff}.miu-activitybar .spacer,#miu-activitybar .spacer{flex:1}
.ide-active #workspace{height:calc(100dvh - 57px);position:relative}.ide-active #workspace>nav{display:none!important}.ide-active #miu-tabstrip{height:35px;background:#181818;border-bottom:1px solid #2b2b2b;display:flex;padding-left:240px}.ide-active #miu-tabstrip button{height:35px;min-width:180px;margin:0;border:0;border-right:1px solid #2b2b2b;border-radius:0;background:#181818;color:#aaa;padding:0 12px}.ide-active #miu-tabstrip button.active{background:#1f1f1f;color:#fff;border-top:1px solid #007acc}.ide-active #miu-tabstrip button span{float:right;color:#777}
.ide-active #ide{height:calc(100% - 35px);grid-template-columns:240px minmax(460px,1fr) minmax(320px,390px);background:#181818}
.ide-active #ide-explorer{background:#181818;border-right:1px solid #2b2b2b;padding:0 8px}.ide-active #ide-chat{background:#1f1f1f;border-right:1px solid #2b2b2b}.ide-active #ide-activity{background:#181818;border-left:0;padding:8px}
.ide-active .ide-heading{height:35px;background:#181818;border-bottom:1px solid #2b2b2b;color:#bbb;font-weight:600;letter-spacing:0;padding:0 10px}.ide-active .ide-chat-head{background:#181818}.ide-active .ide-chat-head #ide-model-state{color:#8c8c8c}
.ide-active #project-folder{color:#c8c8c8}.ide-active #code-tree summary{color:#ccc}.ide-active #code-tree button{color:#ccc;background:transparent}.ide-active #code-tree button:hover{background:#2a2d2e}.ide-active #code-tree button.active{background:#04395e}
.ide-active #ide-sessions{background:#181818;border-bottom:1px solid #2b2b2b}.ide-active #chat-sessions{background:#2a2a2a;border-color:#3c3c3c;color:#ccc}
.ide-active #chat-history{background:#1f1f1f;padding:16px 18px}.ide-active .chat-event{background:transparent;border:0;border-radius:0;box-shadow:none;border-bottom:1px solid #2b2b2b;padding:14px 6px;max-width:100%}.ide-active .chat-event.user_text,.ide-active .chat-event.user_voice{max-width:100%;background:#242424;border:1px solid #333;border-radius:7px;padding:12px}.ide-active .chat-event header strong{color:#4fc1ff}.ide-active .chat-event.user_text header strong{color:#ddd}
.ide-active #ide-compose{background:#181818;border-top:1px solid #333;padding:10px 12px;box-shadow:none}.ide-active #llm-prompt{background:#252526;border:1px solid #3c3c3c;border-radius:6px;color:#ddd;min-height:70px}.ide-active #llm-prompt:focus{border-color:#007acc}.ide-active #llm-send{background:#0e639c;border:1px solid #1177bb}.ide-active button{border-radius:3px}
.ide-active .activity-card{background:#181818;border:1px solid #303030;border-radius:5px;box-shadow:none;margin-bottom:8px}.ide-active .activity-card>.ide-heading{background:#181818}.ide-active .terminal-mini pre{background:#1e1e1e;color:#cccccc;font-family:Consolas,"Courier New",monospace}.ide-active .task-dot.spin{border-color:#3794ff;border-top-color:transparent}.ide-active .task-dots i{background:#3794ff}.ide-active .recent-task{border-bottom-color:#2b2b2b}.ide-active .recent-task>span{background:#252526}.ide-active .recent-task.ok>span{color:#89d185}.ide-active .recent-task.bad>span{color:#f48771}
#miu-statusbar{position:fixed;z-index:60;left:0;right:0;bottom:0;height:22px;background:#007acc;color:white;align-items:center;padding:0 9px;gap:9px;font-size:11px}body.ide-active #miu-statusbar{display:flex}#miu-statusbar .grow{flex:1}#miu-statusbar .ok{color:#9cffb3}
.ide-active #message{display:none}
.miu-diff-window{margin:10px 0 16px;border:1px solid #3a3a3a;background:#181818}.miu-diff-title{height:38px;display:flex;align-items:center;gap:12px;padding:0 10px;border-bottom:1px solid #333}.miu-diff-title span{color:#999;font-size:11px}.miu-diff-title button{margin-left:auto}.miu-diff-tabs{display:flex;justify-content:flex-end;padding:5px 8px;border-bottom:1px solid #333}.miu-diff-tabs button{background:transparent;color:#aaa;border:1px solid transparent}.miu-diff-tabs button.active{border-color:#007acc;color:#fff}.miu-diff-grid{display:grid;grid-template-columns:1fr 1fr;max-height:420px;overflow:auto}.miu-diff-grid>div{min-width:0}.miu-diff-grid>div:first-child{border-right:1px solid #3a3a3a}.miu-diff-grid header{height:25px;padding:4px 10px;background:#1f1f1f;color:#888;font-size:10px}.miu-diff-grid pre{margin:0;border:0;border-radius:0;min-height:150px;white-space:pre;overflow:auto;font:12px/1.55 Consolas,monospace;background:#1e1e1e;color:#d4d4d4}.miu-diff-grid>div:first-child pre{background:linear-gradient(90deg,#3f1d1d 0 4px,#1e1e1e 4px)}.miu-diff-grid>div:last-child pre{background:linear-gradient(90deg,#163b25 0 4px,#1e1e1e 4px)}.miu-diff-foot{display:flex;align-items:center;gap:10px;padding:7px 10px;border-top:1px solid #333;color:#999;font-size:11px}.miu-diff-foot .ok{color:#89d185}.miu-diff-foot button{margin-left:auto}
.miu-task-summary{margin:10px 0;border-left:3px solid #89d185;background:#202020;padding:10px 12px}.miu-task-summary.bad{border-left-color:#f48771}.miu-task-summary header{background:transparent!important;border:0!important;height:auto!important}.miu-task-summary img{max-width:100%;max-height:420px;object-fit:contain;background:#111;margin-top:8px}
.ide-active .editor-drawer{background:#1e1e1e;border-color:#3c3c3c}.ide-active.editor-open .editor-drawer{right:398px;top:71px;bottom:28px;box-shadow:0 8px 30px #0008}
@media(max-width:1100px){.ide-active #ide{grid-template-columns:210px minmax(400px,1fr) 320px}.ide-active #miu-tabstrip{padding-left:210px}.miu-command{display:none}.ide-active.editor-open .editor-drawer{right:328px}}
@media(max-width:820px){body.ide-active{padding-left:40px}.ide-active #miu-activitybar{width:40px}.ide-active #ide{grid-template-columns:180px 1fr}.ide-active #ide-activity{display:none}.ide-active #miu-tabstrip{padding-left:180px}.miu-menu{display:none}.ide-active.editor-open .editor-drawer{right:8px;left:230px}}
/* M521-M530 — exact reference-driven visual pass */
body.ide-active{padding-top:55px;padding-left:56px;background:#07101e;color:#dce8ff}#miu-titlebar{height:55px;background:linear-gradient(180deg,#10192d,#0a1221);border-bottom:1px solid #24324b;box-shadow:0 2px 10px #0008;color:#cbd8ef}.miu-ref-brand{height:55px;display:flex;align-items:center;gap:8px;padding:0 16px 0 14px}.miu-ref-logo{font-size:26px;font-weight:900;color:#18e0ad;text-shadow:0 0 14px #16e3ad66}.miu-ref-brand b{font-size:25px;letter-spacing:.04em;color:#bdc8ef}.miu-ref-brand small{color:#8190aa;margin-left:4px}.miu-ref-nav{display:flex;height:100%;align-items:stretch}.miu-ref-nav button{height:55px;margin:0 3px;padding:0 15px;border:0;border-radius:0;background:transparent;color:#b7c5e2;font-size:13px}.miu-ref-nav button:hover{background:#142039;color:#fff}.miu-ref-nav button.active{background:#132642;color:#fff;box-shadow:inset 0 -2px #13a8ff}.miu-ref-spacer{flex:1}#miu-workspace-pill,#miu-sync{align-self:center;background:#111d31;border:1px solid #263753;color:#b9c9e3;border-radius:9px;height:34px}#miu-full-pill{align-self:center;margin:0 8px;display:flex;align-items:center;gap:7px;height:34px;padding:0 10px;border:1px solid #1c684e;background:#0d5d40;color:#eafff7;border-radius:9px;font-weight:700}#miu-full-pill input{display:none}#miu-full-pill i{width:33px;height:18px;border-radius:10px;background:#25374c;position:relative}#miu-full-pill i:after{content:'';position:absolute;width:14px;height:14px;border-radius:50%;background:#a7b5c9;top:2px;left:2px;transition:.18s}#miu-full-pill.on{background:#087b4d;box-shadow:0 0 12px #00dc8c44}#miu-full-pill.on i{background:#67c7ba}#miu-full-pill.on i:after{left:17px;background:#fff}.ide-active #miu-activitybar{top:55px;width:56px;background:#091323;border-right:1px solid #22304a}.ide-active #miu-activitybar button{width:55px;height:54px;color:#8da0c4}.ide-active #miu-activitybar button.active{background:#0d1b31;color:#31aaff;border-left-color:#24a8ff}.ide-active #workspace{height:calc(100dvh - 77px)}.ide-active #miu-tabstrip{display:none}.ide-active #ide{height:100%;grid-template-columns:295px minmax(650px,1fr) 430px;background:#07101e}.ide-active #ide-explorer{background:linear-gradient(180deg,#0b1527,#091323);border-right:1px solid #22304a;padding:0 10px}.ide-active #ide-chat{background:#081221;border-right:1px solid #22304a}.ide-active #ide-activity{background:#0a1425;padding:9px}.ide-active .ide-heading{height:43px;background:transparent;border-color:#26344c;color:#edf4ff;font-size:13px}.ide-active #ide-sessions{display:none}.ide-active #chat-history{background:radial-gradient(circle at 50% 0,#14223d 0,#0a1425 42%,#07101e 100%);padding:12px 20px}.ide-active .chat-event{border:0;border-radius:11px;padding:12px 14px;margin:0 0 9px;background:transparent}.ide-active .chat-event.user_text,.ide-active .chat-event.user_voice{background:linear-gradient(135deg,#17223b,#111b30);border:1px solid #1d2e4a}.ide-active .chat-event header strong{color:#38d9ff}.ide-active #ide-compose{background:linear-gradient(180deg,#101a2d,#0b1425);border:1px solid #263753;border-radius:10px 10px 0 0;padding:8px 13px;max-height:36%;box-shadow:0 -8px 24px #0005}.ide-active #llm-prompt{min-height:62px;background:transparent;border:0;color:#e7efff;font-size:14px;resize:none}.ide-active #llm-prompt:focus{outline:0}.miu-send{float:right!important;background:#087cf0!important;border:1px solid #1b99ff!important;border-radius:7px!important;padding:8px 17px!important;font-weight:700!important}#miu-compose-actions{display:flex;align-items:center;gap:6px;border-top:1px solid #1f2d45;padding-top:7px}#miu-compose-actions span{flex:1}#miu-compose-actions button{background:#111d31;border:1px solid #2a3b58;color:#bcd0ef;border-radius:6px;padding:6px 10px}#miu-compose-actions button:hover{border-color:#168fff;color:#fff}#miu-add{font-size:18px!important;padding:3px 10px!important}.activity-card{background:linear-gradient(180deg,#101a2d,#0c1628);border:1px solid #223653;border-radius:9px}.activity-card>.ide-heading{background:transparent}.terminal-mini{height:390px}.terminal-mini pre{height:345px;background:#050d18;color:#d6e8ff}.task-dot.spin{border-color:#159dff;border-top-color:transparent}.task-dots i{background:#25aaff}.recent-task{border-bottom-color:#1d2c44}.recent-task.ok strong{color:#59e58d}.ide-active #code-tree button{color:#d0ddf2;border-radius:5px;padding:4px 7px}.ide-active #code-tree button.active{background:#0b4e9a;color:#fff}.ide-active #code-tree button[data-ext="js"]:before{content:'JS ';color:#ffd93d}.ide-active #code-tree button[data-ext="py"]:before{content:'◆ ';color:#55b9ff}.ide-active #code-tree button[data-ext="css"]:before{content:'CSS ';color:#9b69ff}.ide-active #code-tree button[data-ext="md"]:before{content:'▧ ';color:#61cfff}#miu-explorer-bottom{position:sticky;bottom:0;background:#091323;border-top:1px solid #22304a;padding:5px 0}#miu-explorer-bottom button{display:block;width:100%;text-align:left;background:transparent;border:0;color:#b5c6e4;padding:6px 9px}#miu-explorer-bottom b{float:right;background:#075bc7;border-radius:9px;padding:0 6px;color:#fff}.file-change-card,.miu-diff-window{border:1px solid #2b3d5b;background:#101a2e;border-radius:9px}.file-change-head,.miu-diff-title{background:#121e34;border-color:#2a3b58}.file-diff-preview,.miu-diff-grid{background:#091322}.file-diff-preview pre,.miu-diff-grid pre{background:#091322!important;color:#d7e4f8!important}.file-diff-preview pre:first-child,.miu-diff-grid>div:first-child pre{background:linear-gradient(90deg,#70252b 0 5px,#20151c 5px)!important}.file-diff-preview pre:last-child,.miu-diff-grid>div:last-child pre{background:linear-gradient(90deg,#12663c 0 5px,#10251b 5px)!important}.file-change-actions,.miu-diff-foot{border-color:#2a3b58}.ide-active.editor-open .editor-drawer{right:438px;top:65px;bottom:28px;background:#0a1425;border-color:#304361}.ide-active #miu-statusbar{height:22px;background:#07111f;border-top:1px solid #22324a;color:#bcd0eb}.ide-active #miu-statusbar>span:first-child{color:#20c9ff;font-weight:800}.ide-active #miu-statusbar .ok{color:#21dd75}
@media(max-width:1300px){.miu-ref-nav button{padding:0 9px}.ide-active #ide{grid-template-columns:245px minmax(520px,1fr) 350px}.ide-active.editor-open .editor-drawer{right:358px}}@media(max-width:980px){#miu-workspace-pill{display:none}.miu-ref-nav button{font-size:0;padding:0 9px}.miu-ref-nav button:first-letter{font-size:15px}.ide-active #ide{grid-template-columns:210px 1fr}.ide-active #ide-activity{display:none}}
.miu-task-controls{margin-left:auto;display:flex;gap:4px}.miu-task-controls button{width:28px;height:28px;padding:0;border-radius:50%;background:#18243b;border:1px solid #2b3c59;color:#b9c8df}.miu-task-controls button:last-child:hover{background:#9e2631;color:#fff}#live-task.running{position:relative}
/* M531-M540 advanced coding chat */
#miu-chat-modebar{display:flex;align-items:center;gap:7px;min-height:34px;margin-bottom:7px}#miu-chat-mode{width:105px;background:#111a2c;border:1px solid #27446f;color:#dce9ff;border-radius:7px;padding:6px}#miu-context-add{background:#111a2c;border-color:#263d63;color:#b9c9e8}#miu-context-chips{display:flex;gap:5px;flex-wrap:wrap}.miu-context-chip{background:#102b47!important;border:1px solid #185d94!important;color:#75c7ff!important;border-radius:12px!important;padding:3px 8px!important;font-size:11px}.grow{flex:1}#miu-context-meter{color:#7386a7;white-space:nowrap}#miu-chat-queue{display:flex;flex-direction:column;gap:4px}.miu-queued{display:flex;align-items:center;gap:5px;background:#11192a;border:1px solid #26334e;border-radius:6px;padding:5px 7px;color:#91a6c8;font-size:11px}.miu-queued span{flex:1}.miu-queued button{padding:2px 6px!important;background:#17233a!important;border-color:#2b456d!important}.chat-event.context{opacity:.72;border-left:2px solid #278bd2!important}
/* M541-M550 — MIU cognition is visible, evidence-first and non-sovereign */
.chat-event.phenotype,.chat-event.hypothesis,.chat-event.verification,.chat-event.adaptation{opacity:.9;border-left:2px solid #2a8bdc!important;padding-left:10px!important}.chat-event.adaptation{border-left-color:#d29922!important}.chat-event.verification{border-left-color:#3fb950!important}.miu-cognition-card{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#0d1626;border:1px solid #253652;border-radius:7px;padding:8px 10px;margin-top:5px;font-size:11px;color:#9fb3d4}.miu-cognition-card>b{color:#dbe8ff}.miu-cognition-card code{margin-left:auto;color:#7ee787}.miu-cognition-card ol{width:100%;margin:4px 0 0;padding-left:24px}.miu-cognition-card li{padding:3px 5px}.miu-cognition-card li.selected{background:#102b47;color:#cfe9ff;border-radius:4px}.miu-cognition-card .state{font-weight:700;text-transform:uppercase}.miu-cognition-card .state.verified{color:#3fb950}.miu-cognition-card .state.failed{color:#f85149}.miu-cognition-card .state.inconclusive{color:#d29922}

#miu-evolution-body{padding:9px}.evo-stage{padding:6px 4px;color:#c8d8e8}.evo-candidate{display:grid;grid-template-columns:1fr auto;gap:4px 8px;padding:7px 4px;border-top:1px solid #2b2b2b}.evo-candidate span{color:#8e9baa;font-size:10px}.evo-candidate meter{grid-column:1/3;width:100%;height:7px}.evo-winner{margin-top:7px;padding:7px;background:#163425;color:#8be5a9;border-radius:4px}

#miu-goal-body{padding:9px}.goal-state{color:#8fa2b5;font-size:10px;margin:5px 0 8px}.goal-steps{display:grid;gap:3px}.goal-steps div{display:flex;gap:7px;color:#718096;font-size:11px;padding:3px}.goal-steps .active{color:#d7e7f7;background:#18344d}.goal-steps .done{color:#7ed99a}

#miu-autonomy-body{padding:8px}.auto-state{font-weight:600;color:#a9c8e8;padding:5px}.auto-step{font-size:10px;color:#8496a8;border-left:2px solid #315d7d;padding:3px 7px;margin:2px}

/* M621-M630 — VS Code inspired process-oriented chat */
#miu-process-bar{height:37px;display:flex;align-items:center;justify-content:space-between;background:#0b1522;border-top:1px solid #203247;border-bottom:1px solid #203247;padding:0 10px;flex:none}
.process-tabs{display:flex;height:100%;align-items:end;gap:2px;overflow:auto}.process-tabs button{height:100%;margin:0;border:0;border-radius:0;background:transparent;color:#8194aa;padding:0 11px;font-size:11px}.process-tabs button.active{color:#e4effb;border-bottom:2px solid #2aa7ff;background:#112033}.process-tabs span{background:#20354c;border-radius:8px;padding:1px 5px;font-size:9px;margin-left:3px}.process-actions{display:flex;white-space:nowrap}.process-actions button{margin:1px 2px;padding:4px 7px}
#miu-process-drawer{flex:none;max-height:42%;overflow:auto;background:#09131f;border-bottom:1px solid #253a52;box-shadow:0 8px 20px #0004}.process-drawer-head{height:33px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;font-size:10px;color:#9eb2c7;border-bottom:1px solid #1d3044}#process-drawer-body{padding:10px 14px}.goal-title{font-size:13px;font-weight:600;color:#e3edf8}.goal-meta{font-size:10px;color:#7f94aa;margin-top:4px}
.process-steps{display:grid;gap:1px;margin-top:8px}.process-steps>div{display:grid;grid-template-columns:18px minmax(80px,1fr) auto;align-items:center;gap:5px;padding:6px 8px;color:#6f8398;border-left:2px solid #26384c}.process-steps>div.active{color:#dcecff;background:#10263a;border-color:#28a9ff}.process-steps>div.done{color:#83dca1;border-color:#37b56c}.process-steps small{font-size:9px;color:#70869b}
.process-run{display:flex;gap:8px;align-items:center;padding:7px;border-bottom:1px solid #172a3d}.process-run .run-dot{width:8px;height:8px;border-radius:50%;background:#2aa7ff}.process-run.error .run-dot{background:#ef6b73}.process-run b,.process-run small{display:block}.process-run small{font-size:9px;color:#7e93a9}.evidence-grid{display:grid;grid-template-columns:repeat(4,minmax(80px,1fr));gap:6px}.evidence-grid>div{padding:8px;background:#0d1b2a;border:1px solid #20354b;border-radius:5px}.evidence-grid small,.evidence-grid b{display:block}.evidence-grid small{font-size:9px;color:#71869c}.evidence-row{font-size:10px;padding:4px 8px;border-left:2px solid #3a617e;margin-top:3px;color:#9fb2c5}
@media(max-width:900px){.process-tabs button{padding:0 6px}.process-actions #process-focus{display:none}.evidence-grid{grid-template-columns:1fr 1fr}}

.toolchain-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.toolchain-grid>div{padding:9px;background:#0d1b2a;border:1px solid #20354b;border-radius:5px}.toolchain-grid small,.toolchain-grid b{display:block}.toolchain-grid small{font-size:9px;color:#71869c}

.agent-cap{margin-top:8px;padding:8px;border:1px solid #25415a;background:#0a1825;border-radius:5px}.agent-cap small,.agent-cap b,.agent-cap span{display:block}.agent-cap small,.agent-cap span{font-size:9px;color:#7890a8}

.pipeline-env{padding:8px 10px;background:#0d1c2a;border:1px solid #23415b;border-radius:5px;margin-bottom:7px}.pipeline-env b,.pipeline-env small{display:block}.pipeline-env small{font-size:9px;color:#7f96ad;margin-top:2px}

.run-history-row{display:grid;grid-template-columns:76px 1fr;gap:8px;padding:7px;border-bottom:1px solid #1b3044}.run-history-row b,.run-history-row small{display:block}.run-history-row small{font-size:9px;color:#748ba2}.run-state{font-size:9px;text-transform:uppercase;color:#a9bed2}.run-state.verified{color:#73d99a}.run-state.failed,.run-state.blocked{color:#f17c82}.run-state.waiting{color:#e7bf66}

/* M761-M770 live runtime surfaces */
.miu-live-strip{border:1px solid var(--border,#334155);border-radius:8px;padding:10px;margin:10px 0}.terminal-live,.miu-live-diff{max-height:320px;overflow:auto;white-space:pre-wrap}.problem-row{display:block;width:100%;text-align:left;margin:3px 0}.miu-phase{display:inline-block;margin:3px;padding:2px 6px;border:1px solid currentColor;border-radius:10px}.miu-live-file-status{font-size:.85rem;opacity:.8;margin-bottom:6px}

.miu-production-bar{position:sticky;top:0;z-index:1000;min-height:38px;display:flex;align-items:center;gap:12px;padding:0 14px;border-bottom:1px solid var(--border,#30363d);background:var(--panel,#181818);font:12px/1.2 system-ui,sans-serif;white-space:nowrap;overflow:auto}.miu-production-bar .miu-brand{font-weight:750;letter-spacing:.08em}.miu-production-bar [data-state=ok]{color:#8fd694}.miu-production-bar [data-state=warn]{color:#f0c36a}.miu-production-bar button{margin-left:auto;min-height:28px;padding:3px 10px}#workspace{min-height:calc(100vh - 38px)}.chat-code-layout{align-items:stretch}.chat-code-layout>aside{min-width:300px}.code-editor,.code-editor textarea{min-height:360px}.code-editor textarea{resize:vertical}.panel{max-width:none}@media(max-width:900px){.miu-production-bar{gap:8px}.miu-production-bar #miu-prod-workspace{display:none}.chat-code-layout{grid-template-columns:1fr!important}.chat-code-layout>aside{min-width:0}}
