:root{--bg:#f5f6fa;--surface:#fff;--surface-secondary:#eef1f7;--surface-hover:#e8ebf4;--border:#dfe3ec;--text:#172033;--text-secondary:#596579;--text-muted:#8a94a6;--primary:#625bf6;--primary-hover:#5148e8;--accent:#8b5cf6;--success:#18a66a;--warning:#d88b19;--danger:#dc4c64;--shadow:0 8px 26px rgba(20,29,50,.08);--shadow-soft:0 3px 12px rgba(20,29,50,.045);color-scheme:light}
:root[data-theme="dark"]{--bg:#0d1521;--surface:#152131;--surface-secondary:#1b293b;--surface-hover:#24354b;--border:#2b3b51;--text:#eef2f8;--text-secondary:#b2bdcc;--text-muted:#7f8da1;--primary:#7a70ff;--primary-hover:#9189ff;--accent:#a675ff;--success:#37c988;--warning:#e9a23b;--danger:#f06a7d;--shadow:0 10px 30px rgba(0,0,0,.24);--shadow-soft:0 3px 14px rgba(0,0,0,.16);color-scheme:dark}
body{--color-background:var(--bg);--color-panel:var(--surface);--color-chat-background:var(--bg);--color-message-bg:var(--surface);--color-input:var(--surface);--color-input-focus:var(--surface-secondary);--color-border:var(--border);--color-text:var(--text);--color-text-muted:var(--text-secondary);--color-highlight:var(--primary);background:var(--bg)!important;color:var(--text)!important}
#left-panel,.sidebar-header-panel,.modal-inner,.dropdown-menu,.toast,.welcome-action-card{background:var(--surface)!important;border-color:var(--border)!important;color:var(--text)!important}
#left-panel{box-shadow:none!important;width:280px!important;min-width:280px!important}.left-panel-top{margin-top:5.4rem!important;padding:1rem!important}.sidebar-header-panel{border-radius:14px!important;box-shadow:var(--shadow)!important}.welcome-container{background:var(--bg);color:var(--text)}.welcome-shell{width:min(100%,1160px)!important}.welcome-action-card{border-radius:12px!important;transition:transform .18s ease,border-color .18s ease,background .18s ease}.welcome-action-card:hover{transform:translateY(-2px);background:var(--surface-hover)!important;border-color:color-mix(in srgb,var(--primary) 38%,var(--border))!important}.welcome-hero h1{color:var(--text)!important}.welcome-hero p,.welcome-action-description{color:var(--text-secondary)!important}.welcome-composer .input-row{background:var(--surface)!important;border:1px solid var(--border)!important;box-shadow:var(--shadow)}
#left-panel.hidden{margin-left:-280px!important}
.sidebar-header-panel .logo-container strong{display:block;overflow:hidden;color:var(--text);font-size:0;line-height:1.64rem;white-space:nowrap}
.sidebar-header-panel .logo-container strong::before{content:"M";font-size:1.05rem;font-weight:800;color:var(--primary)}
.sidebar-header-panel.sidebar-header-panel-open .logo-container strong,.sidebar-header-panel:hover .logo-container strong,.sidebar-header-panel:focus-within .logo-container strong{font-size:1rem}
.sidebar-header-panel.sidebar-header-panel-open .logo-container strong::before,.sidebar-header-panel:hover .logo-container strong::before,.sidebar-header-panel:focus-within .logo-container strong::before{content:none}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--primary)!important;outline-offset:2px}.btn-ok,.button.primary{background:var(--primary)!important;color:#fff!important}.btn-ok:hover,.button.primary:hover{background:var(--primary-hover)!important}input,textarea,select{background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important}table{background:var(--surface);color:var(--text)}th,td{border-color:var(--border)!important}*{scrollbar-color:var(--text-muted) transparent}x-icon,.material-symbols-outlined{color:currentColor}
.version-info,#header-plugins{display:none!important}@media(max-width:768px){#left-panel{width:min(88vw,280px)!important;min-width:min(88vw,280px)!important}#left-panel.hidden{margin-left:calc(-1 * min(88vw,280px))!important}.welcome-container{padding-inline:1rem!important}.welcome-actions{grid-template-columns:1fr!important}}

/* Notifications must follow the data-theme switch used by MineAssist. */
.notification-toggle{
  width:42px!important;height:42px!important;border:1px solid var(--border)!important;
  border-radius:12px!important;background:var(--surface)!important;color:var(--text)!important;
  box-shadow:var(--shadow-soft)!important;opacity:1!important
}
.notification-toggle:hover{background:var(--surface-hover)!important;border-color:color-mix(in srgb,var(--primary) 45%,var(--border))!important}
.notification-toggle .notification-icon,.notification-toggle x-icon,.notification-toggle .material-symbols-outlined{color:var(--text)!important;opacity:1!important;visibility:visible!important}
.notification-toggle .material-symbols-outlined{font-size:23px!important}
.notification-toggle.has-unread{border-color:var(--primary)!important;background:color-mix(in srgb,var(--primary) 10%,var(--surface))!important}
.notification-badge{top:-6px!important;right:-6px!important;min-width:18px!important;height:18px!important;padding:0 5px!important;border:2px solid var(--bg)!important;background:var(--danger)!important;color:#fff!important}
.notification-modal,.notification-modal .modal-content,.notification-item{background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important}
.notification-title,.notification-message{color:var(--text)!important}.notification-timestamp,.notification-detail-content{color:var(--text-secondary)!important}
.toast-item{background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important;box-shadow:var(--shadow)!important}
.toast-title,.toast-message,.toast-content{color:var(--text)!important}

/* Reserve the rightmost control slot for the fixed theme button. */
#time-date-container{right:78px!important;gap:12px!important}
#time-date-container .project-dropdown-button{max-width:min(210px,36vw);overflow:hidden;white-space:nowrap}
#time-date-container .project-dropdown-button>span:not(.project-color-ball){overflow:hidden;text-overflow:ellipsis}
@media(max-width:560px){
  #time-date-container{right:76px!important;gap:9px!important}
  #time-date-container .project-dropdown-button{max-width:150px}
}

/* Mobile shell: the sidebar overlays the chat instead of shrinking it. */
@media(max-width:768px){
  html,body{width:100%;max-width:100%;overflow:hidden}
  .container,#right-panel,#chat-area-wrapper{min-width:0!important;width:100%!important;max-width:100vw!important}
  #right-panel{flex:1 1 100%!important;margin-left:0!important}
  #left-panel{position:fixed!important;inset:0 auto 0 0!important;width:min(86vw,300px)!important;min-width:0!important;height:100dvh!important;z-index:10030!important;box-shadow:18px 0 48px rgba(8,15,30,.24)!important}
  #left-panel.hidden{margin-left:0!important;transform:translateX(-105%)!important;pointer-events:none}
  #left-panel:not(.hidden){transform:translateX(0)!important}
  .sidebar-header-panel{z-index:10040!important}
  #input-section{box-sizing:border-box;width:100%!important;padding:.25rem .55rem calc(.5rem + env(safe-area-inset-bottom,0px))!important}
  #input-section .input-row{box-sizing:border-box;max-width:100%;min-width:0;gap:.35rem}
  #chat-input-container{min-width:0!important}.welcome-model-trigger{max-width:34vw}.welcome-model-menu{position:fixed;left:.75rem;right:.75rem;top:auto;bottom:calc(5.6rem + env(safe-area-inset-bottom,0px));width:auto;max-height:55dvh;overflow:auto}
  #time-date-container{top:.25rem!important;right:4.2rem!important;margin-top:.35rem!important;max-width:calc(100vw - 8rem)}
}

/* MineAssist dark product shell refinement — 2026-09-03 v2 */
:root,:root[data-theme="dark"]{--bg:#070708;--surface:#101012;--surface-secondary:#171719;--surface-hover:#1b1b1e;--border:#27272b}

#left-panel{width:252px!important;min-width:252px!important;background:#0a0a0b!important}
#left-panel.hidden{margin-left:-252px!important}
.sidebar-header-panel{width:226px!important;background:#0a0a0b!important;border-color:#1d1d20!important}
.left-panel-top{padding:.62rem .62rem 0!important}
.mineassist-sidebar-nav{padding:.22rem 0 .55rem!important;border-bottom:1px solid #1d1d20!important}
.mineassist-sidebar-nav>.mineassist-more-toggle{
  margin:0!important;background:transparent!important;color:#92929a!important;font-weight:520!important;
  box-shadow:none!important
}
.mineassist-sidebar-nav>.mineassist-more-toggle:hover{background:#161618!important;color:#eeeef0!important}
.mineassist-more-toggle .mineassist-more-chevron{margin-left:auto;font-size:1.05rem!important}
.mineassist-more-items{display:grid;gap:.1rem;padding:.18rem 0 .28rem .35rem}
.mineassist-more-items button,.mineassist-more-items a{min-height:2rem!important;padding:.35rem .62rem!important;font-size:.78rem!important}
.mineassist-more-items .material-symbols-outlined{font-size:1.05rem!important}
.chats-list-container{margin-top:.5rem!important}
.chats-list-container .section-header-row{padding:.2rem .42rem .28rem!important}
.chats-list-container .section-header{
  color:#707078!important;font-size:.67rem!important;font-weight:580!important;letter-spacing:.075em!important;
  text-transform:uppercase
}
.chats-list-container #newChat{width:26px;height:26px;margin:0!important;border-radius:7px!important;color:#85858d!important}
.chats-list-container #newChat:hover{background:#19191c!important;color:#fff!important}
.chats-list-container #newChat .material-symbols-outlined{font-size:1.05rem!important}
.chat-period-label{padding:.72rem .43rem .26rem!important;font-size:.58rem!important;color:#5d5d65!important}
.chat-container{min-height:32px!important}
.chat-list-button{padding:6px!important}

/* One-row account with quiet secondary data */
.left-panel-bottom{padding:.2rem .28rem .45rem!important}
.left-panel-bottom .mineassist-account-card{position:relative;padding:8px 8px 7px!important;background:transparent!important}
.left-panel-bottom .mineassist-account-user{margin:0!important;padding-right:3.2rem}
.left-panel-bottom .mineassist-account-user img{width:29px!important;height:29px!important}
.left-panel-bottom .mineassist-account-user div{display:flex;align-items:center;gap:.38rem;min-width:0}
.left-panel-bottom .mineassist-account-user strong{max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.left-panel-bottom .mineassist-account-user small{
  display:inline-flex!important;margin:0!important;padding:.16rem .32rem;border-radius:4px;background:#251d42;color:#a991ff!important;
  font-size:.52rem!important;line-height:1
}
.left-panel-bottom .mineassist-account-grid{
  display:flex!important;gap:.3rem!important;margin:.34rem 0 0 37px;padding:0!important;border:0!important;color:#696971;font-size:.59rem!important
}
.left-panel-bottom .mineassist-account-grid span{display:none}
.left-panel-bottom .mineassist-account-grid b{max-width:86px!important;color:#777780!important;font-weight:450!important;text-align:left!important}
.left-panel-bottom .mineassist-account-grid b:nth-of-type(1){display:none}
.left-panel-bottom .mineassist-account-grid b:nth-of-type(2)::before{content:"Токены: ";color:#55555d}
.left-panel-bottom .mineassist-account-grid b:nth-of-type(3)::before{content:"· Баланс: ";color:#55555d}
.left-panel-bottom .mineassist-token-progress{display:none!important}
.left-panel-bottom .mineassist-account-actions{position:absolute;right:7px;top:8px;display:flex!important;gap:.32rem!important;margin:0!important}
.left-panel-bottom .mineassist-account-actions button{
  width:auto!important;padding:2px!important;background:transparent!important;color:#76767f!important;font-size:.55rem!important
}
.left-panel-bottom .mineassist-account-actions button:hover{color:#b49fff!important}

/* Smaller composer in upper-middle */
.welcome-container{padding:clamp(7rem,18vh,11rem) 1rem 2rem!important}
.welcome-container::before{background:radial-gradient(circle at 50% 38%,rgba(113,81,235,.105),transparent 26%)!important}
.welcome-shell{width:min(100%,600px)!important;gap:.72rem!important;margin:0 auto!important}
.welcome-hero{margin-bottom:.15rem!important}
.welcome-hero h1::before{font-size:.88rem!important;color:#dadade!important;font-weight:560!important}
.welcome-composer .input-row{
  grid-template-columns:auto auto minmax(0,auto) 1fr auto!important;grid-template-rows:minmax(48px,auto) auto auto!important;
  gap:.28rem .4rem!important;min-height:102px!important;padding:.62rem .66rem!important;border-radius:15px!important;background:#121214!important
}
.welcome-composer #chat-input-container{grid-column:1/-1!important;grid-row:1!important;min-height:48px!important}
.welcome-composer #chat-input{min-height:48px!important;padding:.1rem .2rem!important;font-size:.92rem!important}
.welcome-composer .attachment-wrapper{grid-column:1!important;grid-row:2!important}
.welcome-composer .composer-tools{grid-column:2!important;grid-row:2!important}
.welcome-composer .welcome-model-selector{grid-column:3!important;grid-row:2!important}
.welcome-composer .composer-active-tools{grid-column:1/5!important;grid-row:3!important}
.welcome-composer #chat-buttons-wrapper{grid-column:5!important;grid-row:2!important}
.welcome-composer .chat-more-trigger,.welcome-composer #send-button{width:32px!important;height:32px!important;border-radius:9px!important}
.welcome-composer .welcome-model-trigger{min-height:32px!important;max-width:168px!important;padding:.32rem .45rem!important;font-size:.68rem!important}

.composer-tools{position:relative;flex:0 0 auto}
.composer-tools-trigger{
  display:inline-flex;align-items:center;gap:.3rem;min-height:32px;padding:.32rem .52rem;border:0;border-radius:9px;
  background:#1d1d20;color:#a7a7af;font:inherit;font-size:.7rem;cursor:pointer
}
.composer-tools-trigger:hover,.composer-tools-trigger.active{background:#282139;color:#c8baff}
.composer-tools-trigger .material-symbols-outlined{font-size:.95rem}
.composer-tools-menu{
  position:absolute;z-index:130;left:0;bottom:calc(100% + .55rem);width:min(360px,calc(100vw - 2rem));padding:.42rem;
  border:1px solid #2b2b30;border-radius:13px;background:#141416;box-shadow:0 22px 60px rgba(0,0,0,.48)
}
.composer-tools-title{padding:.38rem .52rem .48rem;color:#73737c;font-size:.62rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.composer-tool-row{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.62rem;width:100%;padding:.55rem .56rem;
  border:0;border-radius:9px;background:transparent;color:#d8d8dc;text-align:left;cursor:pointer
}
.composer-tool-row:hover{background:#1e1e21}
.composer-tool-row>.material-symbols-outlined{font-size:1.05rem;color:#8e78e8}
.composer-tool-copy{display:grid;gap:.12rem;min-width:0}
.composer-tool-copy strong{font-size:.72rem;font-weight:560}
.composer-tool-copy small{color:#777780;font-size:.6rem;line-height:1.25}
.composer-tool-switch{position:relative;width:28px;height:16px;border-radius:99px;background:#303035;transition:.16s}
.composer-tool-switch i{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#8b8b93;transition:.16s}
.composer-tool-switch.on{background:#7155e8}
.composer-tool-switch.on i{left:14px;background:#fff}
.composer-active-tools{display:flex;align-items:center;gap:.25rem;min-width:0;overflow-x:auto}
.composer-active-tools button{padding:.22rem .42rem;border:1px solid #3d3169;border-radius:99px;background:#211a39;color:#bcaaff;font-size:.57rem;white-space:nowrap;cursor:pointer}

/* Prompt examples are stacked suggestions, never navigation cards */
.welcome-quick-section{width:min(100%,560px);margin:.35rem auto 0!important}
.welcome-actions{display:grid!important;grid-template-columns:1fr!important;gap:.34rem!important}
.welcome-action-card,.welcome-action-card.is-wide{
  display:flex!important;width:100%!important;min-height:0!important;padding:.48rem .68rem!important;border-color:#232327!important;
  border-radius:9px!important;background:#0d0d0f!important;color:#83838c!important;text-align:left!important
}
.welcome-action-card:hover{background:#151517!important;border-color:#343038!important;color:#c9c9ce!important}
.welcome-action-title{font-size:.64rem!important;font-weight:430!important;line-height:1.35!important}

/* Quieter utility chrome */
#time-date-container{opacity:.74;transform:scale(.92);transform-origin:top right}
.notification-toggle{box-shadow:none!important;background:#101012!important;border-color:#252529!important}

@media(max-width:768px){
  #left-panel{width:min(86vw,264px)!important;min-width:min(86vw,264px)!important}
  .welcome-container{padding:7.5rem .8rem 1rem!important}
  .welcome-shell{width:min(100%,600px)!important}
  .welcome-composer .input-row{grid-template-columns:auto auto minmax(0,1fr) auto!important}
  .welcome-composer #chat-buttons-wrapper{grid-column:4!important}
  .welcome-composer .composer-active-tools{grid-column:1/4!important}
  .welcome-actions{overflow:visible!important}
  .welcome-action-card{white-space:normal!important}
}
@media(max-width:420px){
  #time-date-container .project-dropdown-button{display:none!important}
  #time-date-container{right:4rem!important}.welcome-model-trigger{max-width:38vw;padding-inline:.45rem}.welcome-model-trigger>.material-symbols-outlined:first-child{display:none}
}

/* MineAssist dark product shell — 2026-09-03 */
:root,:root[data-theme="dark"]{
  --bg:#09090b;--surface:#111113;--surface-secondary:#18181b;--surface-hover:#202024;
  --border:#29292e;--text:#f5f5f7;--text-secondary:#a5a5ad;--text-muted:#71717a;
  --primary:#7c5cff;--primary-hover:#9278ff;--accent:#a78bfa;
  --shadow:0 22px 70px rgba(0,0,0,.38);--shadow-soft:0 10px 32px rgba(0,0,0,.25);
  color-scheme:dark
}
html,body,.light-mode{background:#09090b!important;color:var(--text)!important}
body{font-family:Inter,"Rubik",system-ui,-apple-system,"Segoe UI",sans-serif!important}

/* Narrow product sidebar */
#left-panel{
  width:264px!important;min-width:264px!important;background:#0d0d0f!important;
  border-right:1px solid #202024!important;box-shadow:none!important
}
#left-panel.hidden{margin-left:-264px!important}
.left-panel-top{margin-top:4.2rem!important;padding:.65rem .7rem 0!important}
.sidebar-header-panel{
  top:.75rem!important;left:.78rem!important;width:238px!important;min-height:2.8rem!important;
  padding:.45rem .72rem!important;border:1px solid #242429!important;border-radius:12px!important;
  background:#111113!important;box-shadow:none!important
}
.sidebar-header-panel .logo-container strong{font-size:.94rem!important;color:#fafafa!important}
.sidebar-header-panel .logo-container strong::before{content:none!important}
.mineassist-sidebar-nav{gap:.18rem!important;padding:.4rem 0 .7rem!important;border-bottom:1px solid #222226!important}
.mineassist-sidebar-nav button,.mineassist-sidebar-nav a{
  min-height:2.35rem!important;padding:.48rem .66rem!important;border-radius:9px!important;
  color:#b4b4bc!important;font-size:.84rem!important
}
.mineassist-sidebar-nav button:first-child{
  margin-bottom:.28rem;background:linear-gradient(135deg,#7254f5,#8b68ff)!important;
  color:#fff!important;font-weight:650!important;box-shadow:0 8px 22px rgba(124,92,255,.2)
}
.mineassist-sidebar-nav button:hover,.mineassist-sidebar-nav a:hover{background:#1b1b1f!important;color:#fff!important}
.mineassist-sidebar-nav button:first-child:hover{background:linear-gradient(135deg,#8267ff,#997dff)!important}
#chats-section{margin-inline-start:0!important;width:100%!important}
.chats-list-container{margin-top:.72rem!important}
.chats-list-container .section-header-row{padding:.15rem .45rem .3rem!important;background:#0d0d0f!important}
.chats-list-container .section-header{color:#e8e8eb!important;font-size:.83rem!important;font-weight:620!important}
.chat-period-label{padding:.72rem .48rem .3rem;color:#66666f;font-size:.62rem;font-weight:750;letter-spacing:.09em}
.chats-config-list>.chat-tree-item{padding:0!important}
.chat-container{min-height:34px!important;border-radius:8px!important;color:#aaaab2!important}
.chat-container:hover{background:#18181b!important;color:#fff!important}
.chat-container.chat-selected{background:#202024!important;color:#fff!important}
.chat-list-button{padding:7px 7px!important;gap:.48rem!important}
.chat-name{font-size:.78rem!important}
.chat-selected .chat-name{font-size:.78rem!important;font-weight:570!important}
.project-color-ball{width:.42rem!important;height:.42rem!important;border-color:#4b4b53!important}
.chat-list-action-btn{margin-right:3px!important}

/* Compact profile remains fully informative */
.left-panel-bottom{background:#0d0d0f;border-top:1px solid #202024;padding:.15rem .22rem .3rem}
.left-panel-bottom .mineassist-account{margin:.25rem .35rem!important}
.left-panel-bottom .mineassist-account-card{padding:9px!important;border:0!important;background:#131316!important;border-radius:11px!important}
.left-panel-bottom .mineassist-account-heading{display:none!important}
.left-panel-bottom .mineassist-account-user{margin:0 0 7px!important}
.left-panel-bottom .mineassist-account-user img{width:30px!important;height:30px!important;box-shadow:0 0 0 2px rgba(124,92,255,.35)!important}
.left-panel-bottom .mineassist-account-user strong{font-size:.78rem!important}
.left-panel-bottom .mineassist-account-user small{color:#8d70ff!important;font-size:.59rem!important;font-weight:750;text-transform:uppercase}
.left-panel-bottom .mineassist-account-grid{gap:3px 8px!important;padding-top:7px!important;font-size:.67rem!important;border-color:#27272c!important}
.left-panel-bottom .mineassist-account-actions{margin-top:7px!important}
.left-panel-bottom .mineassist-account-actions button{padding:6px!important;border-radius:7px!important;font-size:.68rem!important}

/* Quiet, centered home */
.welcome-container{
  min-height:100dvh!important;padding:clamp(5rem,12vh,8.5rem) clamp(1rem,5vw,4rem) 2.5rem!important;
  background:#09090b!important
}
.welcome-container::before{
  inset:0!important;background:radial-gradient(circle at 50% 42%,rgba(124,92,255,.09),transparent 31%)!important;
  opacity:1!important;filter:none!important
}
.welcome-shell{width:min(100%,760px)!important;margin:auto!important;padding:0!important;gap:1rem!important}
.welcome-hero{text-align:center;margin-bottom:.25rem}
.welcome-hero h1{font-size:0!important;margin:0!important}
.welcome-hero h1::before{content:none!important}
.welcome-hero .welcome-current-model{display:inline!important;font-size:1.05rem;font-weight:650;letter-spacing:-.01em;color:#f7f7f8}
.welcome-hero .welcome-greeting{display:none!important}
.welcome-hero p{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important}
.welcome-composer{min-height:auto!important}
.welcome-composer .input-row{
  position:relative;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;
  grid-template-rows:auto auto;gap:.3rem .6rem!important;min-height:126px!important;padding:.82rem!important;
  border:1px solid #303036!important;border-radius:18px!important;background:#151518!important;
  box-shadow:0 22px 70px rgba(0,0,0,.42)!important
}
.welcome-composer .input-row:focus-within{border-color:#6550b8!important;box-shadow:0 24px 80px rgba(0,0,0,.48),0 0 0 3px rgba(124,92,255,.08)!important}
.welcome-composer #chat-input-container{grid-column:1/-1;grid-row:1;min-height:64px!important}
.welcome-composer #chat-input{min-height:64px!important;padding:.15rem .25rem!important;font-size:1rem!important;color:#f3f3f5!important}
.welcome-composer #chat-input.is-empty::before{content:"\427 \435 \43c  \44f  \43c \43e \433 \443  \43f \43e \43c \43e \447 \44c ?"!important;color:#7c7c85!important}
.welcome-composer .attachment-wrapper{grid-column:1;grid-row:2}
.welcome-composer .chat-more-trigger{width:36px!important;height:36px!important;padding:0!important;border-radius:10px!important;background:#202024!important;color:#d2d2d7!important}
.welcome-composer .attachment-trigger-label{display:none!important}
.welcome-composer .welcome-model-selector{grid-column:2;grid-row:2;justify-self:start}
.welcome-composer .welcome-model-trigger{min-height:36px!important;max-width:220px!important;padding:.4rem .6rem!important;border:0!important;background:transparent!important;color:#b9b9c1!important}
.welcome-composer .welcome-model-trigger:hover{background:#202024!important;color:#fff!important}
.welcome-composer .welcome-model-menu{top:auto!important;bottom:calc(100% + .5rem)!important;background:#17171a!important;border-color:#303036!important;border-radius:13px!important}
.welcome-composer #chat-buttons-wrapper{grid-column:3;grid-row:2}
.welcome-composer #send-button{width:36px!important;height:36px!important;border-radius:10px!important;background:#7c5cff!important;color:#fff!important}
.welcome-composer #send-button:hover{background:#9278ff!important}
.welcome-alerts{margin-top:.35rem}
.welcome-quick-section{gap:.55rem!important;margin-top:.15rem}
.welcome-quick-section h2{display:none!important}
.welcome-actions{display:flex!important;justify-content:center;flex-wrap:wrap;gap:.5rem!important}
.welcome-action-card,.welcome-action-card.is-wide{
  display:inline-flex!important;width:auto!important;min-height:0!important;gap:.45rem!important;padding:.56rem .76rem!important;
  border:1px solid #29292e!important;border-radius:999px!important;background:#121214!important;color:#b9b9c1!important;
  box-shadow:none!important;backdrop-filter:none!important
}
.welcome-action-card:hover{transform:none!important;background:#1c1c20!important;border-color:#4a3f78!important;color:#fff!important}
.welcome-action-icon{font-size:1rem!important;color:#947cff!important}
.welcome-action-title{font-size:.74rem!important;font-weight:520!important}
.welcome-action-description,.welcome-action-arrow{display:none!important}

/* Chat surface and overlays */
#right-panel,#chat-area-wrapper,.chat-container-wrapper{background:#09090b!important}
#input-section{background:linear-gradient(180deg,transparent,#09090b 28%)!important}
.modal-inner,.dropdown-menu,.notification-modal,.toast-item{background:#151518!important;border-color:#303036!important}

@media(max-width:768px){
  #left-panel{width:min(86vw,276px)!important;min-width:min(86vw,276px)!important}
  #left-panel.hidden{margin-left:0!important}
  .sidebar-header-panel{width:3.2rem!important;min-width:3.2rem!important;background:#151518!important}
  .welcome-container{padding:7rem .85rem 1.25rem!important}
  .welcome-shell{width:100%!important}
  .welcome-composer .input-row{min-height:118px!important;border-radius:16px!important;padding:.7rem!important}
  .welcome-actions{justify-content:flex-start!important;overflow-x:auto;flex-wrap:nowrap;padding-bottom:.3rem}
  .welcome-action-card{flex:0 0 auto!important}
}

/* v2 final cascade: intentionally last so component and v1 rules cannot restore bulky layout. */
:root,:root[data-theme="dark"]{--bg:#070708;--surface:#101012;--surface-secondary:#171719;--surface-hover:#1b1b1e;--border:#27272b}
#left-panel{width:252px!important;min-width:252px!important;background:#0a0a0b!important}
#left-panel.hidden{margin-left:-252px!important}
.sidebar-header-panel{width:226px!important;background:#0a0a0b!important;border-color:#1d1d20!important}
.left-panel-top{padding:.62rem .62rem 0!important}
.mineassist-sidebar-nav{padding:.22rem 0 .55rem!important;border-bottom:1px solid #1d1d20!important}
.mineassist-sidebar-nav>.mineassist-more-toggle{margin:0!important;background:transparent!important;color:#92929a!important;font-weight:520!important;box-shadow:none!important}
.mineassist-sidebar-nav>.mineassist-more-toggle:hover{background:#161618!important;color:#eeeef0!important}
.mineassist-more-toggle .mineassist-more-chevron{margin-left:auto;font-size:1.05rem!important}
.mineassist-more-items{display:grid;gap:.1rem;padding:.18rem 0 .28rem .35rem}
.mineassist-more-items button,.mineassist-more-items a{min-height:2rem!important;padding:.35rem .62rem!important;font-size:.78rem!important}
.mineassist-more-items .material-symbols-outlined{font-size:1.05rem!important}
.chats-list-container{margin-top:.5rem!important}
.chats-list-container .section-header-row{padding:.2rem .42rem .28rem!important;background:#0a0a0b!important}
.chats-list-container .section-header{color:#707078!important;font-size:.67rem!important;font-weight:580!important;letter-spacing:.075em!important;text-transform:uppercase}
.chats-list-container #newChat{width:26px;height:26px;margin:0!important;border-radius:7px!important;color:#85858d!important}
.chats-list-container #newChat:hover{background:#19191c!important;color:#fff!important}
.chats-list-container #newChat .material-symbols-outlined{font-size:1.05rem!important}
.chat-period-label{padding:.72rem .43rem .26rem!important;font-size:.58rem!important;color:#5d5d65!important}
.chat-container{min-height:32px!important}.chat-list-button{padding:6px!important}
.left-panel-bottom{padding:.2rem .28rem .45rem!important;background:#0a0a0b!important}
.left-panel-bottom .mineassist-account-card{position:relative;padding:8px 8px 7px!important;background:transparent!important}
.left-panel-bottom .mineassist-account-user{margin:0!important;padding-right:3.2rem}
.left-panel-bottom .mineassist-account-user img{width:29px!important;height:29px!important}
.left-panel-bottom .mineassist-account-user div{display:flex;align-items:center;gap:.38rem;min-width:0}
.left-panel-bottom .mineassist-account-user strong{max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.left-panel-bottom .mineassist-account-user small{display:inline-flex!important;margin:0!important;padding:.16rem .32rem;border-radius:4px;background:#251d42;color:#a991ff!important;font-size:.52rem!important;line-height:1}
.left-panel-bottom .mineassist-account-grid{display:flex!important;gap:.3rem!important;margin:.34rem 0 0 37px;padding:0!important;border:0!important;color:#696971;font-size:.59rem!important}
.left-panel-bottom .mineassist-account-grid span{display:none}.left-panel-bottom .mineassist-account-grid b{max-width:86px!important;color:#777780!important;font-weight:450!important;text-align:left!important}
.left-panel-bottom .mineassist-account-grid b:nth-of-type(1){display:none}.left-panel-bottom .mineassist-account-grid b:nth-of-type(2)::before{content:"Токены: ";color:#55555d}.left-panel-bottom .mineassist-account-grid b:nth-of-type(3)::before{content:"· Баланс: ";color:#55555d}
.left-panel-bottom .mineassist-token-progress{display:none!important}
.left-panel-bottom .mineassist-account-actions{position:absolute;right:7px;top:8px;display:flex!important;gap:.32rem!important;margin:0!important}
.left-panel-bottom .mineassist-account-actions button{width:auto!important;padding:2px!important;background:transparent!important;color:#76767f!important;font-size:.55rem!important}
.welcome-container{padding:clamp(7rem,18vh,11rem) 1rem 2rem!important;background:#070708!important}
.welcome-container::before{background:radial-gradient(circle at 50% 38%,rgba(113,81,235,.105),transparent 26%)!important}
.welcome-shell{width:min(100%,600px)!important;gap:.72rem!important;margin:0 auto!important}
.welcome-hero{margin-bottom:.15rem!important}.welcome-hero h1::before{font-size:.88rem!important;color:#dadade!important;font-weight:560!important}
.welcome-composer .input-row{grid-template-columns:auto auto minmax(0,auto) 1fr auto!important;grid-template-rows:minmax(48px,auto) auto auto!important;gap:.28rem .4rem!important;min-height:102px!important;padding:.62rem .66rem!important;border-radius:15px!important;background:#121214!important}
.welcome-composer #chat-input-container{grid-column:1/-1!important;grid-row:1!important;min-height:48px!important}.welcome-composer #chat-input{min-height:48px!important;padding:.1rem .2rem!important;font-size:.92rem!important}
.welcome-composer .attachment-wrapper{grid-column:1!important;grid-row:2!important}.welcome-composer .composer-tools{grid-column:2!important;grid-row:2!important}.welcome-composer .welcome-model-selector{grid-column:3!important;grid-row:2!important}.welcome-composer .composer-active-tools{grid-column:1/5!important;grid-row:3!important}.welcome-composer #chat-buttons-wrapper{grid-column:5!important;grid-row:2!important}
.welcome-composer .chat-more-trigger,.welcome-composer #send-button{width:32px!important;height:32px!important;border-radius:9px!important}.welcome-composer .welcome-model-trigger{min-height:32px!important;max-width:168px!important;padding:.32rem .45rem!important;font-size:.68rem!important}
.welcome-quick-section{width:min(100%,560px);margin:.35rem auto 0!important}.welcome-actions{display:grid!important;grid-template-columns:1fr!important;gap:.34rem!important}
.welcome-action-card,.welcome-action-card.is-wide{display:flex!important;width:100%!important;min-height:0!important;padding:.48rem .68rem!important;border-color:#232327!important;border-radius:9px!important;background:#0d0d0f!important;color:#83838c!important;text-align:left!important}
.welcome-action-card:hover{background:#151517!important;border-color:#343038!important;color:#c9c9ce!important}.welcome-action-title{font-size:.64rem!important;font-weight:430!important;line-height:1.35!important}
#time-date-container{opacity:.74;transform:scale(.92);transform-origin:top right}.notification-toggle{box-shadow:none!important;background:#101012!important;border-color:#252529!important}
@media(max-width:768px){#left-panel{width:min(86vw,264px)!important;min-width:min(86vw,264px)!important}.welcome-container{padding:7.5rem .8rem 1rem!important}.welcome-shell{width:min(100%,600px)!important}.welcome-composer .input-row{grid-template-columns:auto auto minmax(0,1fr) auto!important}.welcome-composer #chat-buttons-wrapper{grid-column:4!important}.welcome-composer .composer-active-tools{grid-column:1/4!important}.welcome-actions{overflow:visible!important}.welcome-action-card{white-space:normal!important}}

/* Reference-density corrections — v3 */
.mineassist-sidebar-nav>.mineassist-primary-new-chat{
  justify-content:flex-start!important;min-height:2.3rem!important;margin:.15rem 0 .42rem!important;padding:.42rem .68rem!important;
  border-radius:999px!important;background:#7657f4!important;color:#fff!important;font-size:.78rem!important;font-weight:620!important;
  box-shadow:none!important
}
.mineassist-sidebar-nav>.mineassist-primary-new-chat:hover{background:#876cff!important;color:#fff!important}
.mineassist-sidebar-nav>.mineassist-primary-new-chat .material-symbols-outlined{font-size:1rem!important}
.mineassist-sidebar-nav>.mineassist-more-toggle{
  min-height:2rem!important;margin:0!important;padding:.34rem .58rem!important;border-radius:7px!important;background:transparent!important;
  color:#898991!important;font-size:.75rem!important;font-weight:480!important;box-shadow:none!important
}
.mineassist-sidebar-nav>.mineassist-more-toggle:hover{background:#151517!important;color:#d7d7dc!important}
.chats-list-container #newChat{display:none!important}
.chats-list-container .section-header-row{justify-content:flex-start!important;padding:.34rem .43rem .22rem!important}
.composer-tools-trigger{
  width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;
  justify-content:center!important;border-radius:9px!important
}
.composer-tools-trigger .material-symbols-outlined{font-size:1rem!important}
.welcome-composer .input-row{min-height:96px!important;grid-template-rows:minmax(44px,auto) auto auto!important;padding:.56rem .62rem!important}
.welcome-composer #chat-input-container,.welcome-composer #chat-input{min-height:44px!important}
.welcome-shell{width:min(100%,590px)!important}
.welcome-quick-section{width:min(100%,548px)!important}

/* Critical composition and footer corrections — v4 */
.mineassist-more-items>button,.mineassist-more-items>a,
.mineassist-more-items>button:first-child,.mineassist-more-items>a:first-child{
  margin:0!important;background:transparent!important;color:#a0a0a8!important;font-weight:450!important;box-shadow:none!important
}
.mineassist-more-items>button:hover,.mineassist-more-items>a:hover,
.mineassist-more-items>button:first-child:hover,.mineassist-more-items>a:first-child:hover{
  background:#171719!important;color:#ededf0!important;box-shadow:none!important
}
.welcome-container{
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-height:100dvh!important;padding:4.5rem 1rem 3rem!important;background:#070708!important
}
.welcome-shell{flex:0 1 590px!important;width:min(100%,590px)!important;margin:0 auto!important;padding:0!important}
.welcome-container::before{background:radial-gradient(circle at 50% 50%,rgba(116,82,244,.12),transparent 25%)!important}
.welcome-composer .input-row{
  min-height:98px!important;border:1px solid #2d2d32!important;border-radius:16px!important;background:#121214!important;
  box-shadow:0 20px 70px rgba(0,0,0,.44),0 0 46px rgba(108,76,225,.07)!important
}
.welcome-composer .input-row:focus-within{border-color:#504376!important;box-shadow:0 24px 76px rgba(0,0,0,.48),0 0 52px rgba(112,80,236,.1)!important}
.welcome-hero h1::before{font-size:.9rem!important;letter-spacing:-.01em!important}
.welcome-action-card{box-shadow:none!important}

.left-panel-bottom{height:62px!important;min-height:62px!important;box-sizing:border-box;padding:5px 8px!important;border-top:1px solid #202024!important}
.left-panel-bottom .mineassist-account{height:52px!important;margin:0!important}
.left-panel-bottom .mineassist-account-card{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:29px 16px!important;
  column-gap:8px!important;width:100%!important;height:52px!important;box-sizing:border-box;padding:4px 5px!important;border:0!important;
  border-radius:9px!important;background:transparent!important
}
.left-panel-bottom .mineassist-account-heading{display:none!important}
.left-panel-bottom .mineassist-account-user{grid-column:1!important;grid-row:1!important;margin:0!important;padding:0!important;min-width:0!important}
.left-panel-bottom .mineassist-account-user img{width:27px!important;height:27px!important}
.left-panel-bottom .mineassist-account-user>div{display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important}
.left-panel-bottom .mineassist-account-user strong{max-width:94px!important;font-size:.7rem!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.left-panel-bottom .mineassist-account-user small{margin:0!important;padding:2px 4px!important;border-radius:4px!important;background:#251d42!important;color:#b5a0ff!important;font-size:.48rem!important;font-weight:700!important;text-transform:uppercase!important;line-height:1!important}
.left-panel-bottom .mineassist-account-meta{
  grid-column:1!important;grid-row:2!important;display:flex!important;align-items:center!important;gap:4px!important;
  margin-left:32px!important;min-width:0!important;overflow:hidden;color:#65656d!important;font-size:.5rem!important;line-height:1!important;white-space:nowrap
}
.left-panel-bottom .mineassist-account-meta span{min-width:0;overflow:hidden;text-overflow:ellipsis}.left-panel-bottom .mineassist-account-meta b{color:#85858e;font-weight:480}.left-panel-bottom .mineassist-account-meta i{font-style:normal;color:#45454c}
.left-panel-bottom .mineassist-account-grid,.left-panel-bottom .mineassist-token-progress{display:none!important}
.left-panel-bottom .mineassist-account-actions{
  position:static!important;grid-column:2!important;grid-row:1/3!important;display:flex!important;align-items:center!important;
  gap:3px!important;margin:0!important
}
.left-panel-bottom .mineassist-account-actions button{
  width:auto!important;min-width:0!important;padding:3px 4px!important;border:0!important;border-radius:5px!important;
  background:transparent!important;color:#71717a!important;font-size:.5rem!important;line-height:1!important;white-space:nowrap
}
.left-panel-bottom .mineassist-account-actions button:hover{background:#19191c!important;color:#b9a8ff!important}
@media(max-width:768px){.welcome-container{align-items:center!important;padding:4.5rem .8rem 2rem!important}.welcome-shell{flex-basis:590px!important}}

/* Restored light theme — 2026-09-04 */
:root[data-theme="light"]{
  --bg:#f7f7f8;--surface:#ffffff;--surface-secondary:#f0f0f3;--surface-hover:#e9e9ed;
  --border:#dcdce2;--text:#17171a;--text-secondary:#606069;--text-muted:#85858e;
  --primary:#6846e8;--primary-hover:#5736d4;--accent:#825ff0;--success:#138a57;
  --warning:#b9740d;--danger:#c83d55;--shadow:0 14px 38px rgba(34,31,48,.09);--shadow-soft:0 5px 18px rgba(34,31,48,.06);
  color-scheme:light
}
:root[data-theme="light"] body,:root[data-theme="light"] .light-mode{background:var(--bg)!important;color:var(--text)!important}
:root[data-theme="light"] #left-panel,:root[data-theme="light"] .sidebar-header-panel,:root[data-theme="light"] .left-panel-bottom{background:#f1f1f3!important;border-color:#dddde2!important;color:var(--text)!important}
:root[data-theme="light"] .mineassist-sidebar-nav{border-color:#dddde2!important}
:root[data-theme="light"] .mineassist-sidebar-nav>.mineassist-more-toggle{color:#66666f!important}
:root[data-theme="light"] .mineassist-sidebar-nav>.mineassist-more-toggle:hover,
:root[data-theme="light"] .mineassist-more-items>button:hover,:root[data-theme="light"] .mineassist-more-items>a:hover{background:#e4e4e8!important;color:#1d1d20!important}
:root[data-theme="light"] .mineassist-more-items>button,:root[data-theme="light"] .mineassist-more-items>a{color:#55555e!important}
:root[data-theme="light"] .chats-list-container .section-header-row{background:#f1f1f3!important}
:root[data-theme="light"] .chat-container{color:#55555e!important}
:root[data-theme="light"] .chat-container:hover{background:#e5e5e9!important;color:#17171a!important}
:root[data-theme="light"] .chat-container.chat-selected{background:#dfdfe5!important;color:#17171a!important}
:root[data-theme="light"] .welcome-container{background:#f7f7f8!important;color:var(--text)!important}
:root[data-theme="light"] .welcome-container::before{background:radial-gradient(circle at 50% 50%,rgba(104,70,232,.1),transparent 27%)!important}
:root[data-theme="light"] .welcome-hero h1::before{color:#303036!important}
:root[data-theme="light"] .welcome-hero .welcome-current-model{color:#242429!important;text-shadow:none!important}
:root[data-theme="light"] .welcome-composer .input-row{background:#fff!important;border-color:#d8d8df!important;box-shadow:0 20px 55px rgba(43,38,67,.1),0 0 42px rgba(104,70,232,.05)!important}
:root[data-theme="light"] .welcome-composer #chat-input{color:#18181b!important}
:root[data-theme="light"] .welcome-composer #chat-input.is-empty::before{color:#92929a!important}
:root[data-theme="light"] .welcome-composer .chat-more-trigger,:root[data-theme="light"] .composer-tools-trigger{background:#f0f0f3!important;color:#55555e!important}
:root[data-theme="light"] .welcome-composer .welcome-model-trigger{color:#55555e!important}
:root[data-theme="light"] .welcome-composer .welcome-model-trigger:hover{background:#eeeef2!important;color:#17171a!important}
:root[data-theme="light"] .welcome-model-menu,:root[data-theme="light"] .composer-tools-menu{background:#fff!important;border-color:#d9d9df!important;box-shadow:0 20px 55px rgba(32,28,47,.14)!important;color:#202024!important}
:root[data-theme="light"] .composer-tool-row{color:#303036!important}
:root[data-theme="light"] .composer-tool-row:hover{background:#f0f0f3!important}
:root[data-theme="light"] .composer-tool-copy small{color:#707078!important}
:root[data-theme="light"] .welcome-action-card{background:#fff!important;border-color:#dedee3!important;color:#676770!important}
:root[data-theme="light"] .welcome-action-card:hover{background:#f0f0f3!important;border-color:#cac6d9!important;color:#242429!important}
:root[data-theme="light"] .left-panel-bottom .mineassist-account-user small{background:#e9e3ff!important;color:#6544d9!important}
:root[data-theme="light"] .left-panel-bottom .mineassist-account-meta{color:#74747d!important}
:root[data-theme="light"] .left-panel-bottom .mineassist-account-meta b{color:#4f4f57!important}
:root[data-theme="light"] .left-panel-bottom .mineassist-account-actions button{color:#62626b!important}
:root[data-theme="light"] .left-panel-bottom .mineassist-account-actions button:hover{background:#e3e3e8!important;color:#5d3ed2!important}
:root[data-theme="light"] #right-panel,:root[data-theme="light"] #chat-area-wrapper,:root[data-theme="light"] .chat-container-wrapper{background:#f7f7f8!important}
:root[data-theme="light"] #input-section{background:linear-gradient(180deg,transparent,#f7f7f8 28%)!important}
:root[data-theme="light"] .modal-inner,:root[data-theme="light"] .dropdown-menu,:root[data-theme="light"] .notification-modal,:root[data-theme="light"] .toast-item{background:#fff!important;border-color:#dcdce2!important;color:#17171a!important}
:root[data-theme="light"] .notification-toggle{background:#fff!important;border-color:#d8d8df!important;color:#202024!important}

/* Temporary quiet loading state: do not interrupt the chat with full-width bubble rows. */
#chat-loading-splash,
#chat-history > .message-window-loader[data-message-window-ui]{display:none!important}

/* Keep background controls from looking like stuck loaders through modal overlays. */
:root{
  --ma-sidebar-width:0px;
  --ma-workspace-left:0px;
  --ma-workspace-width:100vw;
  --ma-workspace-center-x:50vw;
  --ma-window-safe-gap:20px;
  --ma-window-safe-gutters:40px;
}
@keyframes ma-ui-reveal{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes ma-component-reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
#left-panel,.sidebar-header-panel,#right-panel .welcome-host,#right-panel #chat-area-wrapper,#input-section{
  animation:ma-ui-reveal .34s cubic-bezier(.22,.72,.22,1) both
}
#left-panel{animation-delay:.03s}
#right-panel .welcome-host,#right-panel #chat-area-wrapper{animation-delay:.08s}
#input-section{animation-delay:.12s}
.mineassist-sidebar-nav>*{animation:ma-component-reveal .28s cubic-bezier(.22,.72,.22,1) both}
.mineassist-sidebar-nav>*:nth-child(2){animation-delay:.035s}.mineassist-sidebar-nav>*:nth-child(3){animation-delay:.07s}
#chats-section .config-list>li{animation:ma-component-reveal .24s ease-out both}
#chats-section .config-list>li:nth-child(2){animation-delay:.025s}#chats-section .config-list>li:nth-child(3){animation-delay:.05s}#chats-section .config-list>li:nth-child(n+4){animation-delay:.075s}
@media(prefers-reduced-motion:reduce){#left-panel,.sidebar-header-panel,#right-panel .welcome-host,#right-panel #chat-area-wrapper,#input-section,.mineassist-sidebar-nav>*,#chats-section .config-list>li{animation:none}}
.modal-backdrop{
  inset:0!important;
  width:100dvw!important;
  height:100dvh!important;
  background:rgba(7,7,8,.78)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important
}
.modal.show{inset:0!important;width:100dvw!important;height:100dvh!important;overflow:hidden!important}
.modal.show{z-index:30000!important}
.modal[data-modal-size="small"]{--ma-modal-width:520px;--ma-modal-height:auto}
.modal[data-modal-size="medium"]{--ma-modal-width:780px;--ma-modal-height:auto}
.modal[data-modal-size="large"]{--ma-modal-width:1120px;--ma-modal-height:min(86dvh,860px)}
.modal[data-modal-size="workspace"]{--ma-modal-width:1280px;--ma-modal-height:min(90dvh,900px)}
.modal.show>.modal-inner{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  position:fixed!important;
  inset:auto!important;
  left:var(--ma-workspace-center-x)!important;
  top:50dvh!important;
  transform:translate(-50%,-50%)!important;
  width:min(var(--ma-modal-width,780px),calc(var(--ma-workspace-width) - var(--ma-window-safe-gutters)))!important;
  height:var(--ma-modal-height,auto)!important;
  min-width:0!important;
  min-height:0!important;
  max-width:calc(var(--ma-workspace-width) - var(--ma-window-safe-gutters))!important;
  max-height:calc(100dvh - var(--ma-window-safe-gutters))!important;
  margin:0!important;
  overflow:hidden!important;
  resize:none!important;
}
.modal.show>.modal-inner>.modal-header{
  position:relative!important;
  flex:0 0 auto!important;
  z-index:3!important;
}
.modal.show>.modal-inner>.modal-scroll{
  flex:1 1 auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:none!important;
  overflow:auto!important;
  overscroll-behavior:contain;
}
.modal.show>.modal-inner>.modal-footer-slot{
  position:relative!important;
  flex:0 0 auto!important;
  z-index:3!important;
  max-width:100%!important;
}
.modal.show>.modal-inner>.modal-footer-slot>.modal-footer{
  box-sizing:border-box!important;
  max-width:100%!important;
}
.modal.show>.modal-inner.modal-maximized{
  width:calc(var(--ma-workspace-width) - var(--ma-window-safe-gutters))!important;
  height:calc(100dvh - var(--ma-window-safe-gutters))!important;
  max-width:none!important;
  max-height:none!important;
}
.modal-maximize{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  padding:0;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  color:var(--text);
  opacity:.72;
  cursor:pointer;
}
.modal-maximize:hover,.modal-maximize.is-active{
  opacity:1;
  border-color:color-mix(in srgb,var(--primary) 35%,var(--border));
  background:var(--surface-hover);
}
.modal-maximize svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html:has(.modal.show) .notification-toggle,
html:has(.modal.show) #time-date-container,
html:has(.modal.show) .ma-theme,
html:has(.modal.show) #right-canvas,
html:has(.modal.show) x-component[path="canvas/right-canvas.html"]{
  visibility:hidden!important;
  pointer-events:none!important;
  animation:none!important
}
.modal-inner:has(.ma-mc){width:min(94vw,1220px)!important;max-width:calc(100vw - 24px)!important}
@media(max-width:768px){
  :root{--ma-window-safe-gap:8px;--ma-window-safe-gutters:16px}
  .modal.show[data-modal-size="large"]>.modal-inner,
  .modal.show[data-modal-size="workspace"]>.modal-inner{
    width:calc(100dvw - 16px)!important;height:calc(100dvh - 16px)!important;
    max-width:none!important;max-height:none!important;border-radius:12px!important
  }
  .modal-inner:has(.ma-mc) .modal-scroll{overflow:auto!important}
}
body:has(.modal.show) #send-button,
body:has(.modal.show) #chat-buttons-wrapper,
body:has(.modal.show) #time-date-container,
body:has(.modal.show) .ma-theme,
body:has(.modal.show) #right-canvas,
body:has(.modal.show) x-component[path="canvas/right-canvas.html"]{
  visibility:hidden!important;
  animation:none!important;
  pointer-events:none!important
}

/* Spacious sidebar account card: important values stay readable. */
.left-panel-bottom{height:auto!important;min-height:0!important;padding:7px 9px max(9px,env(safe-area-inset-bottom,0px))!important}
.left-panel-bottom .mineassist-account{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;margin:0!important;z-index:auto!important}
.left-panel-bottom .mineassist-account-card,.left-panel-bottom .mineassist-account-skeleton{width:100%!important;height:auto!important;padding:10px!important;border:1px solid var(--border)!important;border-radius:14px!important;background:var(--surface)!important}
.left-panel-bottom .mineassist-account-card{display:block!important}.left-panel-bottom .mineassist-account-skeleton{display:grid!important}
.left-panel-bottom .mineassist-account-name-row strong{max-width:none!important}
.left-panel-bottom .mineassist-account-value-row b{max-width:none!important;overflow:visible!important;text-overflow:clip!important}
.left-panel-bottom .mineassist-account-actions{position:static!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin-top:9px!important}
.left-panel-bottom .mineassist-account-actions button{width:auto!important;min-height:30px!important;padding:5px 7px!important;border:1px solid var(--border)!important;border-radius:8px!important;background:var(--surface-secondary)!important;color:var(--text)!important;font-size:.7rem!important}
.left-panel-bottom .mineassist-account-actions button:first-child{border-color:color-mix(in srgb,var(--primary) 36%,var(--border))!important;color:var(--primary)!important}
.left-panel-bottom .mineassist-token-progress{display:block!important}
@media(max-width:768px){.left-panel-bottom{min-height:0!important}}

/* Active composer tools: readable, wrapped and clearly selected. */
#input-section .input-row{
  display:grid!important;grid-template-columns:auto auto minmax(0,1fr) auto!important;
  grid-template-rows:minmax(42px,auto) auto!important;align-items:center!important;
  gap:.38rem .48rem!important;min-height:0!important;padding:.48rem .58rem!important
}
#input-section .attachment-wrapper{grid-column:1!important;grid-row:1!important}
#input-section .composer-tools{grid-column:2!important;grid-row:1!important}
#input-section #chat-input-container{grid-column:3!important;grid-row:1!important;width:auto!important;min-height:42px!important;align-self:center!important}
#input-section #chat-input{min-height:42px!important;padding:.32rem 2.2rem .32rem .18rem!important}
#input-section #chat-buttons-wrapper{grid-column:4!important;grid-row:1!important}
#input-section .composer-active-tools{
  grid-column:1/-1!important;grid-row:2!important;display:flex;flex-wrap:wrap!important;
  align-items:center!important;gap:.3rem!important;min-width:0!important;padding:.02rem 0 0!important;
  overflow:visible!important;white-space:normal!important
}
#input-section .composer-active-tools button{
  display:inline-flex!important;align-items:center!important;gap:.3rem!important;max-width:100%!important;
  min-height:24px!important;padding:.22rem .44rem!important;border:1px solid #51417f!important;border-radius:999px!important;
  background:#241b40!important;color:#d8ceff!important;font-size:.63rem!important;font-weight:600!important;
  line-height:1.15!important;white-space:normal!important;box-shadow:0 2px 8px rgba(20,13,40,.2)!important
}
#input-section .composer-active-tools button:hover{border-color:#8069ca!important;background:#302254!important;color:#fff!important}
#input-section .composer-active-tools button>span:first-child{color:#a98dff!important;font-size:.65rem!important}
#input-section .composer-active-tool-remove{margin-left:.08rem;color:#9c91b8!important;font-size:.82rem!important;line-height:1!important}
.welcome-composer .composer-active-tools{padding-left:0!important}
:root[data-theme="light"] #input-section .composer-active-tools button{
  border-color:#cfc4f5!important;background:#eee9ff!important;color:#493a75!important;box-shadow:none!important
}
:root[data-theme="light"] #input-section .composer-active-tools button:hover{border-color:#9f8be3!important;background:#e5ddff!important;color:#2d2250!important}
@media(max-width:640px){#input-section .input-row{grid-template-columns:auto auto minmax(0,1fr) auto!important;padding:.42rem!important}.composer-active-tool-remove{display:none!important}}

/* Keep the empty editor caret and placeholder on the same text baseline. */
#chat-input{position:relative;align-content:start!important}
#chat-input.is-empty::before{position:absolute;inset:0!important;padding:inherit;line-height:inherit;box-sizing:border-box;pointer-events:none}

/* File actions are teleported to body: use MineAssist theme tokens explicitly. */
.file-actions-menu.dropdown-menu{
  padding:6px!important;border-radius:12px!important;
  background:var(--surface)!important;color:var(--text)!important;
  border:1px solid var(--border)!important;box-shadow:var(--shadow)!important;
}
.file-actions-menu .dropdown-item{
  display:flex;align-items:center;gap:10px;min-height:38px;
  padding:8px 10px;border-radius:7px;font-size:14px;line-height:1.4;
  background:transparent;color:var(--text)!important;opacity:1;
}
.file-actions-menu .dropdown-item:hover,
.file-actions-menu .dropdown-item:focus-visible{
  background:var(--surface-hover)!important;color:var(--text)!important;
}
.file-actions-menu .dropdown-item:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
.file-actions-menu .dropdown-item x-icon{color:inherit!important;flex-shrink:0}
.file-actions .file-delete-action{border-radius:7px;box-shadow:none}

/* Equal hit areas and icon baselines for the buttons below agent messages. */
.step-action-buttons{align-items:center;gap:6px;padding:6px 0}
.step-action-buttons .action-button{
  width:30px;height:30px;min-width:30px;padding:0;box-sizing:border-box;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:7px;line-height:1;color:var(--text-secondary);
}
.step-action-buttons .action-button x-icon,
.step-action-buttons .action-button .material-symbols-outlined{
  display:inline-flex;align-items:center;justify-content:center;
  width:18px;height:18px;margin:0;font-size:18px;line-height:1;
}
.step-action-buttons .action-button:hover{background:var(--surface-hover)}
.step-action-buttons .action-button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

.ma-archive-badge{display:inline-flex;align-items:center;margin-left:3px;opacity:0.5;color:var(--color-primary)}
/* hide-process-groups */
.process-group{display:none!important}
/* restore response in embedded process groups */
.process-group.embedded{display:block!important}
