:root{--bg:#f7f9f8;--ink:#17312d;--muted:#71847d;--line:#dae7e1;--green:#168676;--sidebar:#142b27}
*{box-sizing:border-box}html,body{margin:0;padding:0;height:100%;overflow:hidden}body{font-family:system-ui,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);font-size:14px}button,input,textarea{font:inherit}button{cursor:pointer}[hidden]{display:none!important}
.app{height:100dvh;display:grid;grid-template-columns:260px minmax(0,1fr);grid-template-rows:66px minmax(0,1fr) auto;overflow:hidden}
.mawj-studio-sidebar{grid-column:1;grid-row:1/4;background:var(--sidebar);color:#e6f4ef;display:flex;flex-direction:column;gap:8px;height:100dvh;padding:22px 13px;overflow:auto;z-index:60}
.mawj-brand{display:flex;align-items:center;gap:11px;padding:0 10px 20px;border-bottom:1px solid #35544a}
.mawj-brand-mark,.topbar .logo{background:url('/assets/mawj-identity-mark.svg') center/contain no-repeat;font-size:0;flex:none}
.mawj-brand-mark{height:42px;width:42px}.mawj-brand-copy{display:flex;flex-direction:column;gap:3px}.mawj-brand-copy strong{font-size:16px}.mawj-brand-copy span{font-size:11px;color:#a0c1b5}
.mawj-sidebar-new{min-height:46px;border:0;border-radius:12px;background:var(--green);color:white;font-weight:700;display:flex;gap:10px;align-items:center;justify-content:center;margin:8px 0}
.mawj-side-label{color:#93b1a7;font-size:11px;font-weight:700;margin:12px 8px 4px}
.mawj-history-search__label{display:none}.mawj-history-search__control{background:#203c35;border:1px solid #3b5c51;border-radius:10px}.mawj-history-search__input{width:100%;background:none;border:0;min-height:37px;color:white;padding:8px 10px;font-size:12px}
.mawj-history-list{max-height:30vh;overflow:auto}.mawj-history-state{padding:11px;border:1px dashed #476157;border-radius:10px;color:#a7c6bc;font-size:11px;text-align:center}
.mawj-side-nav{display:flex;flex-direction:column;gap:3px}.mawj-side-item{border:1px solid transparent;background:none;color:#d1e5df;display:flex;align-items:center;text-align:right;gap:10px;padding:8px 10px;border-radius:10px;min-height:44px}.mawj-side-item.is-active,.mawj-side-item:hover{background:#275247;border-color:#376d5e}.mawj-side-icon{height:29px;width:29px;display:grid;place-items:center;border-radius:8px;background:#306054;color:#adf0d8}.mawj-side-text{font-size:12px;font-weight:700}.mawj-side-soon{font-size:9px;margin-inline-start:auto;color:#98bcb0}.mawj-side-spacer{flex:1}.mawj-side-status{font-size:11px;color:#a5c5ba}.mawj-online-dot{display:inline-block;width:7px;height:7px;background:#64e2b5;border-radius:50%}
.mawj-engine-card,.mawj-studio-badge,.mawj-runtime-status,.mawj-workspace-bar,.mawj-runtime-ready,.mawj-workspace-project-controls,.mawj-composer-hints,.mawj-quick-prompts{display:none!important}
.topbar{grid-column:2;grid-row:1;background:white;border-bottom:1px solid var(--line);padding:0 25px;display:flex;align-items:center;gap:12px}.topbar .brand{display:flex;align-items:center;gap:9px;margin-inline-start:auto}.topbar .logo{height:34px;width:34px}.brand-title{font-weight:700;font-size:15px;margin:0}.brand-subtitle,.topbar>.new-chat{display:none}
.mawj-topbar-tools{display:flex;align-items:center;gap:8px}.mawj-command-trigger,.mawj-sidebar-toggle{display:flex;align-items:center;justify-content:center;gap:7px;min-height:36px;border:1px solid var(--line);background:#f5f9f7;border-radius:10px;color:#577870;padding:0 9px}.mawj-sidebar-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5}.mawj-command-trigger-key{font-size:10px;color:#93a8a0}.mawj-command-trigger-text{font-size:11px}.mawj-mobile-menu{display:none}
.messages{grid-column:2;grid-row:2;overflow:auto;min-height:0;padding:20px clamp(14px,4vw,55px);scrollbar-width:thin}
.app:has(.welcome .composer-wrap){grid-template-rows:66px minmax(0,1fr)}
.app:has(.welcome .composer-wrap)>.messages{display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 28%,#eaf8f2,transparent 70%),var(--bg)}
.messages>.welcome{width:100%;max-width:850px;margin:auto;padding:0}
.mawj-studio-home{width:100%;max-width:760px;margin:auto;display:flex;flex-direction:column;align-items:stretch}
.mawj-new-intro{text-align:center}.mawj-orbit{width:58px;height:58px;border-radius:18px;background:#dcf2e8;display:grid;place-items:center;margin:0 auto 13px}.mawj-orbit-core{height:45px;width:45px;background:url('/assets/mawj-identity-mark.svg') center/contain no-repeat}.mawj-greeting{color:#188b79;font-size:12px;font-weight:700;margin:0 0 7px}.mawj-new-title{font-size:clamp(30px,3vw,43px);margin:0;line-height:1.5;color:#1d3831;font-weight:750}.mawj-new-title em{font-style:normal;color:var(--green)}.mawj-new-subtitle{margin:9px auto 0;line-height:1.8;font-size:14px;color:var(--muted)}
.mawj-studio-home>.composer-wrap{width:100%;margin:20px auto 0}.composer{max-width:800px;width:100%;margin:auto;border:1px solid #cbded4;border-radius:18px;padding:15px 16px;min-height:140px;background:white;display:flex;flex-direction:column;gap:8px;box-shadow:0 12px 45px #155b4210}.composer:focus-within{border-color:#49a993;box-shadow:0 0 0 3px #5cb79a18}.composer .input-shell{width:100%;min-height:57px}#messageInput{width:100%;min-height:54px;max-height:170px;resize:none;border:0;background:transparent;color:#1e4038;font-size:16px;line-height:1.75;padding:6px 2px;outline:none}#messageInput::placeholder{color:#96aaa1}
.mawj-composer-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mawj-image-upload,.mawj-image-generate{height:40px!important;min-height:40px!important;border:1px solid #dce9e3!important;background:#f3f8f5!important;color:#385e53!important;border-radius:10px!important;font-size:12px!important;padding:0 12px!important}.mawj-image-generate svg{height:16px;width:16px}.send,#sendBtn{display:grid;place-items:center;width:44px;min-width:44px;height:44px;border:0;border-radius:10px;background:#168e7a;color:white;font-size:21px}.hint,.mawj-composer-meta{color:#8a9c95;font-size:10px;text-align:center;margin:5px auto 0}
.mawj-suggest-header{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#54796d;font-size:12px;margin:24px 0 10px}.mawj-suggest-header span+span{font-size:11px;color:#9aaca4}.mawj-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mawj-task-card{display:flex;align-items:center;gap:11px;min-height:74px;padding:12px 13px;border:1px solid #e0e9e4;border-radius:13px;background:white;text-align:right}.mawj-task-card:hover{background:#edf8f3;border-color:#b2d3c3}.mawj-task-icon{width:35px;height:35px;flex:0 0 35px;display:grid;place-items:center;border-radius:10px;background:#def2e8;color:var(--green)}.mawj-task-content{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.mawj-task-content strong{font-size:13px;color:#29463b}.mawj-task-content small{font-size:11px;line-height:1.5;color:#7e968a}.mawj-task-chevron{color:#a4b8ae}
.app>.composer-wrap{grid-column:2;grid-row:3;padding:9px 20px 14px;background:var(--bg)}.app>.composer-wrap .composer{max-width:820px}
.message{display:flex;max-width:860px;margin:0 auto 17px}.message.user{justify-content:flex-start}.message.assistant{justify-content:flex-end}.bubble{max-width:82%;overflow-wrap:anywhere;background:white;border:1px solid var(--line);padding:12px 16px;border-radius:16px;line-height:1.8;font-size:15px}.message.user .bubble{background:#168679;color:white;border:0}.message-card{max-width:100%;overflow:hidden}.message-card pre{max-width:100%;overflow:auto;background:#18302b;color:#e4fff6;padding:14px;border-radius:10px}.message-card img{max-width:100%;height:auto}
.mawj-drawer-overlay{display:none}.mawj-scroll-bottom{display:none}.mawj-scroll-bottom.is-visible{display:grid;place-items:center;position:sticky;bottom:10px;left:10px;width:40px;height:40px;background:#177a6b;border:0;border-radius:50%;color:white}.mawj-scroll-bottom svg{height:18px;width:18px;fill:none;stroke:currentColor;stroke-width:2}.mawj-scroll-bottom-badge{display:none}
.mawj-command-backdrop{display:none;position:fixed;inset:0;z-index:9000;background:#09241fbd;padding:10vh 12px 20px;justify-content:center;align-items:flex-start}.mawj-command-backdrop.is-open{display:flex}.mawj-command-panel{background:white;border-radius:16px;width:min(560px,100%);max-height:75vh;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 15px 70px #0003}.mawj-command-search-wrap{padding:16px;display:flex;gap:10px;border-bottom:1px solid var(--line)}.mawj-command-search{border:0;outline:none;min-width:0;flex:1}.mawj-command-list{overflow:auto;padding:8px}.mawj-command-item{width:100%;display:flex;align-items:center;gap:12px;background:none;border:0;border-radius:9px;padding:11px;text-align:right}.mawj-command-item.is-selected,.mawj-command-item:hover{background:#eaf5ef}.mawj-command-item-copy{display:flex;flex-direction:column;gap:4px}.mawj-command-item-copy small{color:#82988e}.mawj-command-item-icon{width:32px;height:32px;background:#dff4e9;border-radius:9px;display:grid;place-items:center;color:#168e7d}.mawj-command-footer{display:flex;justify-content:space-between;padding:11px 15px;border-top:1px solid var(--line);font-size:10px}.mawj-command-empty{display:none;padding:20px}.mawj-command-empty.is-visible{display:block}
.app.mawj-sidebar-collapsed{grid-template-columns:0 minmax(0,1fr)}.app.mawj-sidebar-collapsed>.topbar,.app.mawj-sidebar-collapsed>.messages,.app.mawj-sidebar-collapsed>.composer-wrap{grid-column:2}.app.mawj-sidebar-collapsed .mawj-studio-sidebar{display:none}
@media(max-width:950px){.app{grid-template-columns:minmax(0,1fr)}.topbar,.messages,.app>.composer-wrap{grid-column:1}.mawj-studio-sidebar{position:fixed;right:0;top:0;width:min(86vw,290px);transform:translateX(110%);transition:transform .2s}.app.mawj-sidebar-open .mawj-studio-sidebar{transform:translateX(0)}.app.mawj-sidebar-open .mawj-drawer-overlay{position:fixed;inset:0;z-index:40;background:#05251b98;display:block}.mawj-mobile-menu{display:grid;place-items:center;width:39px;height:39px;border:1px solid var(--line);border-radius:10px;background:white;color:#2e6a5d}}
@media(max-width:600px){.app{grid-template-rows:58px minmax(0,1fr) auto}.app:has(.welcome .composer-wrap){grid-template-rows:58px minmax(0,1fr)}.topbar{padding:0 13px;height:58px}.messages{padding:12px 13px}.app:has(.welcome .composer-wrap)>.messages>.welcome{flex:0 0 100%;max-width:100%;margin:auto 0}.mawj-orbit{width:50px;height:50px;margin-bottom:8px}.mawj-orbit-core{width:40px;height:40px}.mawj-new-title{font-size:clamp(24px,7vw,30px)}.mawj-greeting{font-size:10px}.mawj-new-subtitle{font-size:12px;line-height:1.7;margin-top:6px}.mawj-studio-home>.composer-wrap{margin-top:14px}.composer{min-height:115px;padding:11px 12px;gap:4px}.composer .input-shell{min-height:43px}#messageInput{min-height:43px;font-size:14px;padding:7px 2px}.mawj-composer-actions{gap:6px}.mawj-image-upload,.mawj-image-generate{height:37px!important;min-height:37px!important;padding:0 9px!important;font-size:11px!important}.send,#sendBtn{min-width:40px;width:40px;height:40px}.mawj-suggest-header{margin:17px 0 8px}.mawj-suggest-header span+span{display:none}.mawj-suggestions{gap:8px}.mawj-task-card{min-height:102px;align-items:flex-start;flex-direction:column;padding:10px;gap:6px}.mawj-task-icon{width:28px;height:28px;flex-basis:28px;font-size:14px}.mawj-task-content strong{font-size:12px}.mawj-task-content small{font-size:10px}.mawj-task-chevron{display:none}.mawj-command-trigger-text,.mawj-command-trigger-key{display:none}.app>.composer-wrap{padding:8px 10px}}


/* MAWJ composer v5 — streamlined rounded message bar */
.composer{position:relative!important;display:flex!important;flex-direction:column!important;gap:0!important;width:min(100%,800px)!important;min-height:112px!important;padding:11px 13px 10px!important;border-radius:26px!important;border:1px solid #d6e2de!important;background:#fff!important;box-shadow:0 4px 25px rgba(23,65,51,.075)!important}
.composer:focus-within{border-color:#9dcfc0!important;box-shadow:0 4px 25px rgba(23,65,51,.075),0 0 0 2px #e6f6f0!important}
.composer .input-shell{order:1!important;min-height:48px!important;width:100%!important}
.composer #messageInput{width:100%!important;min-height:47px!important;max-height:200px!important;padding:11px 12px!important;font-size:15px!important;line-height:1.7!important;border:0!important;outline:0!important;box-shadow:none!important;background:none!important;resize:none!important}
.composer .mawj-composer-actions{position:relative!important;order:2!important;display:flex!important;align-items:center!important;flex-direction:row!important;gap:5px!important;width:100%!important;min-height:42px!important;padding:0 4px!important}
.mawj-plus-button,.mawj-mic-button{display:grid!important;place-items:center!important;flex:0 0 39px!important;width:39px!important;height:39px!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#3c6156!important;padding:0!important;line-height:1!important}
.mawj-plus-button{order:1!important;font-size:28px!important;font-weight:400!important}
.mawj-plus-button:hover,.mawj-mic-button:hover{background:#edf6f1!important}
.mawj-plus-menu{position:absolute!important;z-index:100!important;bottom:48px!important;right:0!important;width:205px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;padding:8px!important;border:1px solid #dce9e3!important;border-radius:14px!important;background:white!important;box-shadow:0 10px 30px #173d302a!important}
.mawj-plus-menu[hidden]{display:none!important}
.mawj-plus-menu .mawj-image-upload,.mawj-plus-menu .mawj-image-generate{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;width:100%!important;height:41px!important;min-height:41px!important;padding:0 10px!important;background:transparent!important;border:0!important;border-radius:9px!important;text-align:right!important;color:#284e43!important}
.mawj-plus-menu .mawj-image-upload:hover,.mawj-plus-menu .mawj-image-generate:hover{background:#eaf5ef!important}
.composer .mawj-mic-button{order:8!important;margin-inline-start:auto!important}
.mawj-mic-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mawj-mic-button.is-listening{background:#e3f1ec!important;color:#bb4b48!important}
.composer #sendBtn{order:9!important;flex:0 0 39px!important;width:39px!important;min-width:39px!important;height:39px!important;min-height:39px!important;border-radius:50%!important;font-size:21px!important;background:#168e7d!important;color:white!important;box-shadow:none!important}
.composer #sendBtn:disabled{opacity:.5}
.mawj-mic-status{order:7!important;color:#477d70!important;font-size:11px!important}
.composer #imageUploadInput,.composer #imageEditMode{display:none!important}
.mawj-studio-home>.composer-wrap{width:min(100%,800px)!important;max-width:800px!important}
.app>.composer-wrap .composer{max-width:820px!important}
@media(max-width:600px){
.composer{min-height:100px!important;border-radius:23px!important;padding:8px 9px 7px!important}
.composer .input-shell{min-height:44px!important}
.composer #messageInput{min-height:43px!important;padding:9px 10px!important;font-size:14px!important}
.mawj-plus-button,.mawj-mic-button{flex-basis:36px!important;height:36px!important;width:36px!important}
.composer #sendBtn{flex-basis:36px!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important}
.mawj-plus-menu{right:0!important;bottom:44px!important}
}
/* Final visual cleanup: hide legacy character counter and keyboard instruction in landing composer. */
.mawj-char-count{display:none!important}
.mawj-studio-home>.composer-wrap>.hint{display:none!important}

/* MAWJ attachment picker and message previews */
.mawj-attach-option{display:flex;width:100%;height:41px;align-items:center;justify-content:flex-start;text-align:right;padding:0 10px;border:0;border-radius:9px;background:transparent;color:#284e43;font-size:12px}.mawj-attach-option:hover{background:#eaf5ef}.mawj-attachment-tray{order:1;display:flex;flex-direction:column;gap:4px;max-width:100%;padding:0 9px 8px}.mawj-attachment-tray[hidden]{display:none}.mawj-attachment-pill{display:flex;align-items:center;gap:8px;max-width:100%;width:max-content;background:#edf7f2;border:1px solid #d2e8dc;border-radius:11px;padding:5px 9px;color:#244f42}.mawj-attachment-pill img{width:37px;height:37px;object-fit:cover;border-radius:7px}.mawj-attachment-file{font-size:24px}.mawj-attachment-name{font-size:11px;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mawj-attachment-remove{width:22px;height:22px;border:0;background:transparent;border-radius:50%;color:#506c62;font-size:21px;line-height:1}.mawj-attachment-note{font-size:10px;color:#6c8679}.composer .mawj-attachment-tray{order:1!important}.composer .mawj-composer-actions{order:3!important}.composer .input-shell{order:2!important}.composer .mawj-attachment-tray{margin-bottom:2px!important}

/* MAWJ voice dictation panel */
.mawj-voice-overlay{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;background:rgba(8,30,25,.65);padding:18px}.mawj-voice-overlay[hidden]{display:none}.mawj-voice-panel{width:min(100%,470px);background:#fff;border-radius:22px;padding:25px;text-align:center;box-shadow:0 26px 80px #0003;color:#203e34}.mawj-voice-panel h2{margin:8px 0;font-size:21px}.mawj-voice-panel p{color:#607e70;font-size:13px}.mawj-voice-pulse{width:76px;height:76px;border-radius:50%;background:#e5f3ed;color:#208474;display:grid;place-items:center;font-size:32px;margin:0 auto}.mawj-voice-overlay.is-listening .mawj-voice-pulse{animation:mawj-voice-glow 1.5s ease-in-out infinite}@keyframes mawj-voice-glow{50%{box-shadow:0 0 0 19px #1baf8a17}}.mawj-voice-transcript{background:#f3f8f5;border:1px solid #dde9e1;border-radius:14px;padding:16px;min-height:105px;text-align:right;color:#3c6055;margin:17px 0;line-height:1.8}.mawj-voice-buttons{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.mawj-voice-buttons button{border:1px solid #d4e5d9;border-radius:11px;padding:10px 13px;background:#eff6f0;color:#286352;font-weight:600}.mawj-voice-buttons .mawj-voice-start{background:#168e7d;color:#fff;border-color:#168e7d}.mawj-voice-buttons .mawj-voice-insert{background:#263f39;color:#fff;border-color:#263f39}

.mawj-voice-buttons .mawj-voice-send{background:#1c8a77;color:white;border-color:#1c8a77}

/* Inline voice status and simplified single attachment menu */
.mawj-inline-dictation-state{order:7!important;flex:0 1 auto!important;max-width:240px!important;font-size:11px!important;color:#267d69!important;white-space:normal!important}
.mawj-inline-dictation-state[hidden]{display:none!important}
.mawj-mic-button.is-listening{background:#d9f4e8!important;color:#b42339!important;box-shadow:0 0 0 3px #d5f7e8!important;animation:mawj-listen-pulse 1.3s ease-in-out infinite}
@keyframes mawj-listen-pulse{50%{box-shadow:0 0 0 7px #b6efdc!important}}
.mawj-plus-menu{width:255px!important}
.mawj-plus-menu .mawj-attach-option{font-size:13px!important}


/* MAWJ v9 - clean chat sidebar; hidden history UI remains in DOM for legacy conversation integration */
@media(min-width:951px){
.app{grid-template-rows:0 minmax(0,1fr) auto!important}
.app:has(.welcome .composer-wrap){grid-template-rows:0 minmax(0,1fr)!important}
.topbar{display:none!important}
.messages{padding-top:25px!important}
}
.mawj-studio-sidebar{padding:18px 12px!important;gap:0!important;overflow-x:hidden!important}
.mawj-studio-sidebar .mawj-side-label,
.mawj-studio-sidebar .mawj-history-search,
.mawj-studio-sidebar .mawj-history-list,
.mawj-studio-sidebar .mawj-side-nav,
.mawj-studio-sidebar .mawj-engine-card,
.mawj-studio-sidebar .mawj-side-spacer,
.mawj-studio-sidebar .mawj-side-status{display:none!important}
.mawj-studio-sidebar .mawj-brand{position:relative!important;display:flex!important;align-items:center!important;gap:9px!important;padding:0 5px 20px!important;margin:0 0 19px!important;min-height:66px!important;border-bottom:1px solid #315047!important}
.mawj-studio-sidebar .mawj-brand-copy strong{font-size:17px!important}
.mawj-studio-sidebar .mawj-brand-copy span{display:none!important}
.mawj-studio-sidebar .mawj-brand-mark{width:41px!important;height:41px!important;flex:0 0 41px!important}
.mawj-studio-sidebar .mawj-sidebar-toggle{margin-inline-start:auto!important;flex:0 0 36px!important;width:36px!important;height:36px!important;padding:7px!important;min-width:36px!important;min-height:36px!important;background:#27473f!important;border:1px solid #45655c!important;border-radius:10px!important;color:#d9f3e9!important}
.mawj-studio-sidebar .mawj-sidebar-toggle:hover{background:#356a5d!important}
.mawj-studio-sidebar .mawj-sidebar-new{margin:0!important;min-height:44px!important;height:44px!important;border-radius:10px!important;font-size:13px!important}
.mawj-studio-sidebar .mawj-rename-dialog[hidden]{display:none!important}
.mawj-studio-sidebar .mawj-rename-dialog:not([hidden]){position:fixed!important;inset:0!important;z-index:999!important}
.mawj-command-trigger{display:none!important}
.app.mawj-sidebar-collapsed{grid-template-columns:66px minmax(0,1fr)!important}
.app.mawj-sidebar-collapsed .mawj-studio-sidebar{display:flex!important;width:66px!important;min-width:66px!important;padding:12px 7px!important;overflow:hidden!important}
.app.mawj-sidebar-collapsed .mawj-brand{height:64px!important;min-height:64px!important;display:flex!important;justify-content:center!important;padding:0 0 10px!important;margin:0 0 11px!important;flex-direction:column!important}
.app.mawj-sidebar-collapsed .mawj-brand-mark,.app.mawj-sidebar-collapsed .mawj-brand-copy{display:none!important}
.app.mawj-sidebar-collapsed .mawj-sidebar-toggle{display:grid!important;place-items:center!important;width:43px!important;height:43px!important;min-width:43px!important;min-height:43px!important;flex:0 0 43px!important;margin:0!important}
.app.mawj-sidebar-collapsed .mawj-sidebar-new{width:48px!important;height:46px!important;min-height:46px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0 auto!important}
.app.mawj-sidebar-collapsed .mawj-sidebar-new span:last-child{display:none!important}
.app.mawj-sidebar-collapsed .mawj-sidebar-new span:first-child{font-size:24px!important}
@media(max-width:950px){
 .app,.app.mawj-sidebar-collapsed{grid-template-columns:minmax(0,1fr)!important}
 .app.mawj-sidebar-collapsed .mawj-studio-sidebar{width:min(86vw,290px)!important;min-width:0!important;transform:translateX(110%)!important}
 .app.mawj-sidebar-open .mawj-studio-sidebar,.app.mawj-sidebar-open.mawj-sidebar-collapsed .mawj-studio-sidebar{transform:translateX(0)!important;width:min(86vw,290px)!important}
 .app.mawj-sidebar-collapsed .mawj-brand-mark,.app.mawj-sidebar-collapsed .mawj-brand-copy{display:flex!important}
 .app.mawj-sidebar-collapsed .mawj-brand{flex-direction:row!important}
 .app.mawj-sidebar-collapsed .mawj-sidebar-new span:last-child{display:inline!important}
 .app.mawj-sidebar-collapsed .mawj-sidebar-new{width:100%!important}
 .topbar{display:flex!important;justify-content:flex-end!important;padding:0 14px!important}
 .topbar .brand{display:none!important}
 .mawj-mobile-menu{display:grid!important;place-items:center!important;margin-inline-start:0!important;margin-inline-end:0!important}
 .mawj-topbar-tools{display:none!important}
 .mawj-studio-sidebar .mawj-brand{min-height:62px!important}
}


/* v10: retain chat history with minimal typography and reliable navigation */
.mawj-studio-sidebar .mawj-history-list{
 display:flex!important;flex-direction:column!important;gap:3px!important;
 min-height:48px!important;max-height:none!important;flex:1 1 auto!important;
 overflow-y:auto!important;overflow-x:hidden!important;
 margin:14px 0 0!important;padding:0 1px 10px!important;
 border:0!important;background:transparent!important;scrollbar-width:thin!important
}
.mawj-studio-sidebar .mawj-history-state{
 display:block!important;background:transparent!important;border:0!important;
 padding:18px 10px!important;color:#94b5ab!important;
 text-align:center!important;font-size:11px!important
}
.mawj-studio-sidebar .mawj-history-row{
 position:relative!important;display:flex!important;align-items:center!important;
 min-width:0!important;width:100%!important;max-width:100%!important;
 min-height:43px!important;flex:0 0 auto!important;border:0!important;
 border-radius:10px!important;background:transparent!important;
 padding:2px!important;margin:0!important;gap:3px!important
}
.mawj-studio-sidebar .mawj-history-row:hover{background:#22473d!important}
.mawj-studio-sidebar .mawj-history-open{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 flex:1 1 0!important;min-width:0!important;max-width:100%!important;
 min-height:41px!important;text-align:right!important;gap:8px!important;
 padding:8px 10px!important;margin:0!important;border:0!important;
 border-radius:9px!important;background:transparent!important;
 color:#dcebe5!important;font-size:12px!important;
}
.mawj-studio-sidebar .mawj-history-open::before{
 content:'◷';font-size:16px;flex:0 0 17px;color:#9abcb2
}
.mawj-studio-sidebar .mawj-history-open:hover,.mawj-studio-sidebar .mawj-history-open[aria-current="true"]{
 background:#28594d!important;color:#fff!important
}
.mawj-studio-sidebar .mawj-history-title{
 display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;
 white-space:nowrap!important;max-width:100%!important;min-width:0!important;
 font-size:12px!important;font-weight:600!important;color:inherit!important
}
.mawj-studio-sidebar .mawj-history-preview,
.mawj-studio-sidebar .mawj-history-meta,
.mawj-studio-sidebar .mawj-history-delete,
.mawj-studio-sidebar .mawj-history-rename-button{
 display:none!important
}
.mawj-studio-sidebar .mawj-history-row:focus-within{
 outline:1px solid #6cafa0!important;outline-offset:0!important
}
.mawj-studio-sidebar .mawj-history-open:focus-visible{outline:2px solid #8de2c9!important}
.app.mawj-sidebar-collapsed .mawj-history-list{display:none!important}
@media(max-width:950px){
 .mawj-studio-sidebar .mawj-history-list{display:flex!important}
 .app.mawj-sidebar-collapsed .mawj-history-list{display:flex!important}
}

/* Accessible per-conversation menu */
.mawj-studio-sidebar .mawj-history-row{overflow:visible!important}.mawj-studio-sidebar .mawj-history-open{padding-inline-start:4px!important}.mawj-studio-sidebar .mawj-actions-trigger{display:grid!important;place-items:center!important;flex:0 0 30px!important;width:30px!important;height:32px!important;min-width:30px!important;min-height:32px!important;margin:0 2px!important;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#b7d9cd!important;font-size:25px!important;line-height:1!important;opacity:.7!important}.mawj-studio-sidebar .mawj-history-row:hover .mawj-actions-trigger,.mawj-studio-sidebar .mawj-actions-trigger:focus-visible,.mawj-studio-sidebar .mawj-actions-trigger[aria-expanded=true]{opacity:1!important;background:#315b50!important}.mawj-studio-sidebar .mawj-actions-menu{position:absolute!important;z-index:150!important;top:36px!important;left:4px!important;width:176px!important;display:flex!important;flex-direction:column!important;gap:3px!important;padding:6px!important;background:#fff!important;border:1px solid #dbe7df!important;border-radius:12px!important;box-shadow:0 14px 38px #071f1960!important}.mawj-studio-sidebar .mawj-actions-menu[hidden]{display:none!important}.mawj-studio-sidebar .mawj-actions-menu .mawj-actions-rename,.mawj-studio-sidebar .mawj-actions-menu .mawj-actions-delete{display:block!important;position:static!important;width:100%!important;min-height:39px!important;padding:9px 11px!important;margin:0!important;border:0!important;border-radius:8px!important;background:transparent!important;text-align:right!important;font-size:12px!important;font-weight:600!important;color:#285044!important}.mawj-studio-sidebar .mawj-actions-menu .mawj-actions-delete{color:#bb3e44!important}.mawj-studio-sidebar .mawj-actions-menu button:hover,.mawj-studio-sidebar .mawj-actions-menu button:focus-visible{background:#edf5f0!important}.mawj-studio-sidebar .mawj-actions-menu .mawj-actions-delete:hover{background:#fff1f1!important}.mawj-rename-dialog:not([hidden]){position:fixed!important;inset:0!important;z-index:10000!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:16px!important;background:#0b241b9e!important}.mawj-rename-dialog__panel{width:min(100%,440px)!important;padding:23px!important;margin:0!important;background:#fff!important;border-radius:18px!important;box-shadow:0 18px 50px #0004!important;color:#203c32!important}.mawj-rename-dialog__title{font-size:20px!important;margin:0 0 10px!important;color:#173b31!important}.mawj-rename-dialog__description{font-size:13px!important;line-height:1.8!important;color:#678277!important}.mawj-rename-dialog__label{display:block!important;font-size:12px!important;font-weight:700!important;margin:15px 0 7px!important}.mawj-rename-dialog__input{width:100%!important;min-height:45px!important;border:1px solid #cbdcd2!important;border-radius:10px!important;padding:9px 12px!important;background:#fff!important;color:#193c30!important}.mawj-rename-dialog__error{font-size:12px!important;color:#b64243!important}.mawj-rename-dialog__actions{display:flex!important;justify-content:flex-end!important;gap:9px!important;margin-top:20px!important}.mawj-rename-dialog__button{min-height:40px!important;padding:9px 17px!important;background:#eef5f0!important;color:#34564b!important;border:0!important;border-radius:10px!important;font-size:12px!important}.mawj-rename-dialog__button--primary{background:#178675!important;color:white!important}.mawj-delete-backdrop{position:fixed;inset:0;z-index:11000;display:flex;align-items:center;justify-content:center;padding:16px;background:#0b241ba8}.mawj-delete-backdrop[hidden]{display:none!important}.mawj-delete-panel{width:min(100%,430px);background:#fff;border-radius:19px;padding:25px;text-align:center;box-shadow:0 24px 80px #0004}.mawj-delete-symbol{display:grid;place-items:center;margin:0 auto 12px;width:43px;height:43px;border-radius:13px;background:#fff0ee;color:#b33e42;font-size:26px;font-weight:700}.mawj-delete-panel h2{color:#253d34;font-size:20px;margin:0 0 8px}.mawj-delete-panel p{color:#73877d;font-size:13px;line-height:1.9;margin:0}.mawj-delete-buttons{display:flex;gap:9px;justify-content:center;margin-top:20px}.mawj-delete-buttons button{min-height:42px;padding:9px 20px;border:0;border-radius:10px;background:#edf3ee;color:#385348;font-weight:700;font-size:12px}.mawj-delete-buttons .mawj-delete-confirm{background:#b84145;color:white}@media(hover:none){.mawj-studio-sidebar .mawj-actions-trigger{opacity:1!important}}@media(max-width:600px){.mawj-studio-sidebar .mawj-actions-trigger{opacity:1!important;min-width:36px!important;width:36px!important;height:38px!important}.mawj-studio-sidebar .mawj-actions-menu{width:190px!important}.mawj-rename-dialog__panel,.mawj-delete-panel{padding:20px!important}}

/* v12 — natural widths and readable message wrapping */
.messages:not(:has(.welcome)) .message{display:flex!important;width:100%!important;max-width:850px!important;margin:0 auto 14px!important;align-items:flex-start!important;overflow:visible!important}
.messages .message.user{justify-content:flex-start!important}
.messages .message.assistant{justify-content:flex-end!important}
.messages .message .message-card{flex:0 1 auto!important;width:max-content!important;max-width:min(76%,690px)!important;min-width:0!important;overflow:visible!important;text-align:start!important}
.messages .message .message-card .bubble{display:block!important;width:auto!important;min-width:0!important;max-width:100%!important;padding:12px 17px!important;border-radius:16px!important;font-size:15px!important;line-height:1.9!important;word-break:normal!important;overflow-wrap:break-word!important;white-space:pre-wrap!important;text-align:right!important}
.messages .message.assistant .bubble{background:#fff!important;color:#213c35!important;border:1px solid #dbe8e3!important}
.messages .message.user .bubble{background:#168679!important;color:#fff!important;border:0!important}
.messages .message .message-meta{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;margin:5px 5px 0!important;font-size:11px!important;color:#81968d!important}
.messages .message .message-meta .copy-btn{border:0!important;border-radius:7px!important;background:#edf4f0!important;color:#467267!important;padding:3px 7px!important;font-size:11px!important}
.messages .message .message-card .md{white-space:normal!important}
.messages .message .message-card .md p{margin:0 0 9px!important;line-height:1.9!important}
.messages .message .message-card .md p:last-child{margin-bottom:0!important}
.messages .message .message-card pre{max-width:100%!important;overflow-x:auto!important;white-space:pre!important}
@media(max-width:600px){.messages:not(:has(.welcome)) .message{margin-bottom:13px!important}.messages .message .message-card{max-width:88%!important}.messages .message .message-card .bubble{padding:10px 12px!important;font-size:14px!important;line-height:1.85!important}}

.mawj-incomplete-note{font-size:12px;color:#916426;background:#fff5dc;padding:8px 12px;border-radius:9px;margin:8px 0;line-height:1.6}
