/* ArtinAI 3.1.10 — Minimal Workspace (presentation only)
   Scoped to the authenticated chat shell. Existing services, roles, agents,
   model selection, history, uploads, actions and dialogs are not replaced. */
body.artinai-body{--artin-bg:#fff;--artin-sidebar:#f7f7f8;--artin-surface:#fff;--artin-text:#202124;--artin-muted:#727782;--artin-border:#e9e9ec;--glass-panel:#fff;--glass-solid:#fff;--glass-edge:#e9e9ec;--glass-shadow:none;--hover:#ececf0;--bg:var(--artin-bg);--surface:var(--artin-surface);--sidebar:var(--artin-sidebar);--text:var(--artin-text);--muted:var(--artin-muted);--border:var(--artin-border)}
[data-theme=dark] body.artinai-body{--artin-bg:#212121;--artin-sidebar:#171717;--artin-surface:#212121;--artin-text:#ececec;--artin-muted:#a4a4aa;--artin-border:#353535;--glass-panel:#212121;--glass-solid:#262626;--glass-edge:#353535;--glass-shadow:none;--hover:#2f2f2f;--bg:var(--artin-bg);--surface:var(--artin-surface);--sidebar:var(--artin-sidebar);--text:var(--artin-text);--muted:var(--artin-muted);--border:var(--artin-border)}
.artinai-body .artin-chat{--side:264px!important;--gutter:0px!important;--edge:0px!important;background:var(--artin-bg)!important;color:var(--text)}
.artinai-body .artin-chat::before,.artinai-body .artin-chat::after{display:none!important}
.artinai-body .artin-chat .n-sidebar{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:auto!important;width:264px!important;height:100%!important;padding:18px 13px 12px!important;border:0!important;border-left:1px solid var(--border)!important;border-radius:0!important;background:var(--artin-sidebar)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.artinai-body .artin-chat .n-side-shell{gap:0!important}
.artinai-body .artin-chat .n-side-brand-centered{min-height:56px!important;padding:2px 10px 15px!important;margin:0 0 10px!important;border-bottom:0!important;justify-content:flex-start!important}
.artinai-body .artin-chat .n-sidebar-brand-lockup{max-width:none!important;margin:0!important;justify-content:flex-start!important;gap:10px!important}
.artinai-body .artin-chat .n-sidebar-brand-logo{width:32px!important;height:32px!important;flex:0 0 32px!important;display:grid!important;place-items:center!important}
.artinai-body .artin-chat .n-sidebar-brand-logo img,.artinai-body .artin-chat .n-sidebar-brand-logo svg{width:28px!important;height:28px!important;object-fit:contain!important}
.artinai-body .artin-chat .n-sidebar-brand-copy b{font-size:15px!important;font-weight:750!important;line-height:1.5!important}
.artinai-body .artin-chat .n-sidebar-brand-copy small{font-size:10px!important;opacity:.65}
.artinai-body .artin-chat .n-minimal-side-actions{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;align-items:center!important;gap:6px!important;padding:0 4px 18px!important}
.artinai-body .artin-chat .n-minimal-side-actions button{min-width:0!important;height:42px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;padding:0 12px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:var(--text)!important;box-shadow:none!important;font:inherit!important;font-size:12px!important;font-weight:650!important}
.artinai-body .artin-chat .n-minimal-side-actions button:hover{background:var(--hover)!important}
.artinai-body .artin-chat .n-minimal-side-actions button.n-minimal-search{justify-content:center!important;padding:0!important}
.artinai-body .artin-chat .n-minimal-side-actions .n-svg{width:18px!important;height:18px!important}
.artinai-body .artin-chat .n-sidebar-scroll{padding:0 2px!important}
.artinai-body .artin-chat .n-history-section-grow{padding:0!important;margin:0!important}
.artinai-body .artin-chat .n-history-heading{background:var(--artin-sidebar)!important;backdrop-filter:none!important;justify-content:flex-start!important;padding:8px 10px 9px!important}
.artinai-body .artin-chat .n-history-heading>span{justify-content:flex-start!important;font-size:11px!important;color:var(--muted)!important}
.artinai-body .artin-chat .n-history-heading>span .n-svg{width:15px!important;height:15px!important}
.artinai-body .artin-chat .n-history-row{min-height:40px!important;border:0!important;border-radius:10px!important;margin:1px 0!important;padding:0 4px!important}
.artinai-body .artin-chat .n-history-row:hover{background:var(--hover)!important;border-color:transparent!important}
.artinai-body .artin-chat .n-history-item{min-height:39px!important;justify-content:flex-start!important;text-align:right!important;padding:6px 9px!important;font-size:11.5px!important}
.artinai-body .artin-chat .n-history-item>span{text-align:right!important;font-size:11.5px!important}
.artinai-body .artin-chat .n-sidebar-quick-access{background:transparent!important;border-top:1px solid var(--border)!important;padding:12px 3px!important}
.artinai-body .artin-chat .n-sidebar-quick-head{font-size:10px!important;color:var(--muted)!important}
.artinai-body .artin-chat .n-sidebar-quick-buttons{gap:4px!important}
.artinai-body .artin-chat .n-sidebar-launcher{border-radius:10px!important;background:transparent!important;box-shadow:none!important}
.artinai-body .artin-chat .n-sidebar-launcher:hover{background:var(--hover)!important}
.artinai-body .artin-chat .n-sidebar-bottom-dock.n-minimal-profile-dock{display:block!important;grid-template-columns:none!important;border-top:1px solid var(--border)!important;padding:11px 2px 0!important}
.artinai-body .artin-chat .n-minimal-profile-dock .n-side-profile{width:100%!important;min-height:49px!important;height:49px!important;display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:10px!important;padding:5px 9px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--text)!important;text-align:right!important;font-size:12px!important;box-shadow:none!important;transform:none!important}
.artinai-body .artin-chat .n-minimal-profile-dock .n-side-profile:hover{background:var(--hover)!important}
.artinai-body .artin-chat .n-minimal-profile-dock .n-side-avatar{width:32px!important;height:32px!important;min-width:32px!important;border-radius:50%!important;background:var(--accent)!important;color:#fff!important}
.artinai-body .artin-chat .n-minimal-profile-dock .n-side-profile>.n-svg{width:14px!important;height:14px!important;margin-right:auto!important;opacity:.6}
/* Conversation shell and functional header */
@media(min-width:1025px){.artinai-body .artin-chat .n-main{inset:0 264px 0 0!important;right:264px!important;left:0!important;top:0!important;bottom:0!important}}
.artinai-body .artin-chat .n-main{background:var(--artin-bg)!important;display:flex!important;flex-direction:column!important;min-height:0!important}
.artinai-body .artin-chat .n-minimal-chat-header{height:68px!important;min-height:68px!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:0 28px!important;border-bottom:1px solid transparent!important;background:var(--artin-bg)!important;direction:rtl!important;z-index:6!important}
.artinai-body .artin-chat .n-minimal-chat-identity{display:flex!important;align-items:center!important;gap:8px!important;max-width:min(68%,560px)!important;min-height:42px!important;padding:6px 10px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:var(--text)!important;font:inherit!important;cursor:pointer!important}
.artinai-body .artin-chat .n-minimal-chat-identity:hover{background:var(--hover)!important}
.artinai-body .artin-chat .n-minimal-chat-title{font-size:15px!important;font-weight:720!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.artinai-body .artin-chat .n-minimal-chat-model{font-size:11px!important;font-weight:450!important;color:var(--muted)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.artinai-body .artin-chat .n-minimal-chat-identity .n-svg{width:15px!important;height:15px!important;color:var(--muted)!important}
.artinai-body .artin-chat .n-minimal-chat-head-actions{display:flex!important;gap:4px!important;align-items:center!important}
.artinai-body .artin-chat .n-minimal-chat-head-actions button{width:38px!important;height:38px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:11px!important;background:transparent!important;color:var(--text)!important}
.artinai-body .artin-chat .n-minimal-chat-head-actions button:hover{background:var(--hover)!important}
.artinai-body .artin-chat .n-minimal-chat-head-actions .n-svg{width:18px!important;height:18px!important}
/* ChatGPT-inspired, calm conversation canvas */
.artinai-body .artin-chat .n-thread{width:100%!important;max-width:none!important;min-height:0!important;flex:1 1 auto!important;margin:0!important;padding:24px max(24px,calc((100% - 840px)/2)) 200px!important;background:transparent!important;scrollbar-width:thin!important;scrollbar-color:var(--border) transparent!important}
.artinai-body .artin-chat .n-msg-row{width:100%!important;max-width:840px!important;margin:0 auto 30px!important;align-items:flex-start!important;gap:0!important}
.artinai-body .artin-chat .n-msg-row.user{justify-content:flex-start!important;flex-direction:row!important}
.artinai-body .artin-chat .n-msg-row.ai{justify-content:flex-start!important;flex-direction:row!important;direction:rtl!important}
.artinai-body .artin-chat .n-msg-row.ai .n-msg-card{max-width:100%!important;width:100%!important;align-items:flex-start!important;gap:5px!important}
.artinai-body .artin-chat .n-msg-row.user .n-msg{width:auto!important;max-width:min(76%,620px)!important;padding:12px 16px!important;border:0!important;border-radius:18px!important;background:var(--hover)!important;box-shadow:none!important;backdrop-filter:none!important;line-height:1.9!important}
.artinai-body .artin-chat .n-msg-row.ai .n-msg{width:100%!important;max-width:100%!important;padding:6px 2px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;line-height:2!important;color:var(--text)!important}
.artinai-body .artin-chat .n-msg-row.ai .n-msg-actions{padding-inline:0!important;opacity:.66!important;gap:2px!important}
.artinai-body .artin-chat .n-msg-row.ai .n-msg-actions:hover,.artinai-body .artin-chat .n-msg-row.ai .n-msg-card:focus-within .n-msg-actions{opacity:1!important}
.artinai-body .artin-chat .n-msg-action{border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;font-size:10px!important}
.artinai-body .artin-chat .n-msg-action:hover{background:var(--hover)!important}
/* Home state: generous whitespace, restrained prompts */
.artinai-body .artin-chat .n-workspace:not(.n-docked){flex:1 1 auto!important;height:auto!important;min-height:0!important;padding:clamp(18px,4vh,42px) 20px 32px!important;gap:24px!important;justify-content:center!important;overflow-y:auto!important}
.artinai-body .artin-chat .n-welcome-area{width:min(760px,100%)!important;max-width:760px!important;margin:0 auto!important;padding:0!important;gap:14px!important}
.artinai-body .artin-chat .n-welcome-logo{display:none!important}
.artinai-body .artin-chat .n-greeting{font-size:clamp(24px,2.65vw,33px)!important;font-weight:650!important;line-height:1.7!important;letter-spacing:-.3px!important;margin:0!important;text-align:center!important}
.artinai-body .artin-chat .n-welcome-subtitle{font-size:13px!important;color:var(--muted)!important;margin:3px 0 20px!important;text-align:center!important}
.artinai-body .artin-chat .n-reference-cards{max-width:740px!important;gap:8px!important}
.artinai-body .artin-chat .n-quick-chip{border-radius:14px!important;box-shadow:none!important;background:var(--surface)!important;border:1px solid var(--border)!important;min-height:65px!important}
/* Composer: one contained, two-level writing surface */
.artinai-body .artin-chat .n-docked{height:auto!important;min-height:0!important;flex:0 0 auto!important;padding:12px 24px max(22px,env(safe-area-inset-bottom))!important;background:var(--artin-bg)!important;box-shadow:none!important}
.artinai-body .artin-chat .n-composer-studio.n-composer-minimal{width:min(100%,820px)!important;max-width:820px!important;min-height:0!important;max-height:min(55dvh,430px)!important;margin:0 auto!important;padding:13px 15px 11px!important;border:1px solid var(--border)!important;border-radius:24px!important;background:var(--surface)!important;box-shadow:0 3px 16px rgba(0,0,0,.045)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:visible!important}
.artinai-body .artin-chat .n-composer-studio.n-composer-minimal:focus-within{border-color:color-mix(in srgb,var(--accent) 38%,var(--border))!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 7%,transparent)!important}
.artinai-body .artin-chat .n-composer-minimal .n-minimal-composer-main.n-minimal-composer-left-tools{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;grid-template-columns:none!important}
.artinai-body .artin-chat .n-composer-studio textarea,.artinai-body .artin-chat .n-composer-studio textarea:placeholder-shown{display:block!important;width:100%!important;min-height:47px!important;max-height:min(24dvh,160px)!important;margin:0!important;padding:7px 6px 4px!important;line-height:1.85!important;font-size:max(15px,var(--chat-font-size,16px))!important;background:transparent!important;color:var(--text)!important;box-shadow:none!important}
.artinai-body .artin-chat .n-composer-minimal .n-composer-side-all-left{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:44px!important;overflow:visible!important}
.artinai-body .artin-chat .n-composer-minimal .n-assistant-picker{min-width:0!important;max-width:190px!important;min-height:34px!important;height:34px!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;padding:4px 7px!important}
.artinai-body .artin-chat .n-composer-minimal .n-assistant-picker:hover{background:var(--hover)!important}
.artinai-body .artin-chat .n-composer-minimal .n-assistant-picker-copy small{display:none!important}
.artinai-body .artin-chat .n-composer-minimal .n-assistant-picker-copy b{font-size:11px!important}
.artinai-body .artin-chat .n-composer-minimal .n-tool,.artinai-body .artin-chat .n-composer-minimal .n-tool-attach,.artinai-body .artin-chat .n-composer-minimal .n-prompt-enhance{min-width:34px!important;min-height:34px!important;height:34px!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;color:var(--muted)!important}
.artinai-body .artin-chat .n-composer-minimal .n-tool:hover,.artinai-body .artin-chat .n-composer-minimal .n-prompt-enhance:hover{background:var(--hover)!important;color:var(--text)!important}
.artinai-body .artin-chat .n-composer-minimal .n-send{width:37px!important;height:37px!important;min-width:37px!important;flex:0 0 37px!important;margin-right:auto!important;margin-left:0!important;border-radius:50%!important;background:var(--text)!important;color:var(--bg)!important;box-shadow:none!important;display:grid!important;place-items:center!important}
.artinai-body .artin-chat .n-composer-minimal .n-send:disabled{opacity:.3!important}
.artinai-body .artin-chat .n-composer-minimal .n-send .n-svg{width:18px!important;height:18px!important}
.artinai-body .artin-chat .n-chat-studio-rail.n-chat-tools-only{margin:4px 0 0!important;padding:4px 0 0!important;border-top:1px solid var(--border)!important}
.artinai-body .artin-chat .n-chat-tools-only>.n-studio-tools-toggle{background:transparent!important;border:0!important;color:var(--muted)!important;min-height:28px!important;font-size:10px!important}
.artinai-body .artin-chat .n-chat-tools-only>.n-studio-tools-toggle:hover{background:var(--hover)!important}
/* Mobile: preserve existing navigation toggle, simplify spacing */
@media(max-width:1024px){
 .artinai-body .artin-chat{--side:0px!important}
 .artinai-body .artin-chat .n-sidebar{width:min(292px,calc(100vw - 28px))!important;top:0!important;bottom:0!important;right:0!important;left:auto!important;border-radius:0 0 0 0!important;z-index:30!important;transform:translateX(105%)!important}
 .artinai-body .artin-chat .n-sidebar.open{transform:none!important}
 .artinai-body .artin-chat .n-mobile-header{top:0!important;left:0!important;right:0!important;height:55px!important;min-height:55px!important;padding:0 14px!important;border:0!important;border-bottom:1px solid var(--border)!important;border-radius:0!important;background:var(--artin-bg)!important;box-shadow:none!important;backdrop-filter:none!important}
 .artinai-body .artin-chat .n-main{top:55px!important;right:0!important;left:0!important;bottom:0!important}
 .artinai-body .artin-chat .n-minimal-chat-header{height:49px!important;min-height:49px!important;padding:0 12px!important;border-bottom:1px solid var(--border)!important}
 .artinai-body .artin-chat .n-minimal-chat-title{font-size:12px!important}
 .artinai-body .artin-chat .n-minimal-chat-model{font-size:10px!important}
 .artinai-body .artin-chat .n-minimal-chat-head-actions button{width:34px!important;height:34px!important}
 .artinai-body .artin-chat .n-workspace:not(.n-docked){padding:14px 12px 20px!important;gap:16px!important}
 .artinai-body .artin-chat .n-thread{padding:16px 14px 170px!important}
 .artinai-body .artin-chat .n-msg-row{margin-bottom:22px!important}
 .artinai-body .artin-chat .n-msg-row.user .n-msg{max-width:88%!important;padding:10px 13px!important}
 .artinai-body .artin-chat .n-msg-row.ai .n-msg{padding:5px 0!important}
 .artinai-body .artin-chat .n-docked{padding:8px 10px max(12px,env(safe-area-inset-bottom))!important}
 .artinai-body .artin-chat .n-composer-studio.n-composer-minimal{border-radius:20px!important;padding:9px 11px 8px!important}
 .artinai-body .artin-chat .n-composer-minimal .n-composer-side-all-left{overflow-x:auto!important;overflow-y:visible!important;scrollbar-width:none!important;flex-wrap:nowrap!important}
 .artinai-body .artin-chat .n-composer-minimal .n-assistant-picker{flex:0 1 130px!important;max-width:130px!important}
 .artinai-body .artin-chat .n-composer-minimal .n-send{position:sticky!important;left:0!important;z-index:2!important}
}
@media(max-width:430px){.artinai-body .artin-chat .n-minimal-chat-model{display:none!important}.artinai-body .artin-chat .n-composer-minimal .n-prompt-enhance>span{display:none!important}.artinai-body .artin-chat .n-greeting{font-size:23px!important}}
@media(prefers-reduced-motion:reduce){.artinai-body .artin-chat *{scroll-behavior:auto!important}}

/* 3.1.10 integration: preserve all 3.1.9 chat services and controls. */
.artinai-body .artin-chat .n-main{
 top:0!important;bottom:0!important;right:264px!important;left:0!important;
 height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important
}
.artinai-body .artin-chat.without-sidebar .n-main,
.artinai-body .artin-chat.sidebar-collapsed .n-main{right:0!important}
.artinai-body .artin-chat .n-workspace:not(.n-docked){
 position:relative!important;min-height:0!important;flex:1 1 auto!important;
 height:auto!important;display:flex!important;flex-direction:column!important;
 align-items:center!important;justify-content:center!important
}
.artinai-body .artin-chat .n-workspace:not(.n-docked)>.n-composer{
 position:relative!important;inset:auto!important;left:auto!important;right:auto!important;
 bottom:auto!important;transform:none!important;flex:0 0 auto!important
}
.artinai-body .artin-chat .n-docked{
 position:relative!important;inset:auto!important;left:auto!important;right:auto!important;
 bottom:auto!important;width:100%!important;transform:none!important;
 height:auto!important;min-height:0!important;pointer-events:auto!important
}
.artinai-body .artin-chat .n-docked>.n-composer{
 position:relative!important;inset:auto!important;left:auto!important;right:auto!important;
 bottom:auto!important;transform:none!important
}
.artinai-body .artin-chat .n-thread{height:auto!important;overflow-y:auto!important;overflow-x:hidden!important}
.artinai-body .artin-chat .n-composer-studio.n-composer-minimal{
 position:relative!important;inset:auto!important;transform:none!important;box-sizing:border-box!important
}
.artinai-body .artin-chat .n-sidebar-quick-access{flex:0 0 auto!important;max-height:140px!important;overflow:auto!important}
.artinai-body .artin-chat .n-minimal-side-actions button:focus-visible,
.artinai-body .artin-chat .n-minimal-chat-head-actions button:focus-visible,
.artinai-body .artin-chat .n-minimal-chat-identity:focus-visible{
 outline:2px solid var(--accent)!important;outline-offset:2px!important
}
.artinai-body .artin-chat .n-minimal-side-actions button .n-svg,
.artinai-body .artin-chat .n-minimal-chat-head-actions button .n-svg{
 display:block!important;flex:none!important;transform:none!important
}
.artinai-body .artin-chat .n-msg-row.ai .n-msg{overflow-wrap:anywhere!important;word-break:normal!important}
.artinai-body .artin-chat .n-msg-row.ai .n-msg pre,
.artinai-body .artin-chat .n-msg-row.ai .n-msg table{max-width:100%!important;overflow-x:auto!important}
.artinai-body .artin-chat .n-composer-minimal .n-composer-side-all-left{flex-wrap:wrap!important;overflow:visible!important}
.artinai-body .artin-chat .n-composer-minimal .n-send{margin-right:auto!important}
.artinai-body .artin-chat .n-chat-studio-rail,
.artinai-body .artin-chat .n-slash-hints,
.artinai-body .artin-chat .n-voice-choice-menu{z-index:12!important}
@media(max-width:1024px){
 .artinai-body .artin-chat .n-main{top:55px!important;right:0!important;left:0!important;height:calc(100% - 55px)!important}
 .artinai-body .artin-chat .n-sidebar{right:0!important;left:auto!important}
 .artinai-body .artin-chat .n-docked{padding-bottom:max(10px,env(safe-area-inset-bottom))!important}
 .artinai-body .artin-chat .n-thread{padding-bottom:18px!important}
}
@media(max-width:600px){
 .artinai-body .artin-chat .n-minimal-chat-header{gap:4px!important}
 .artinai-body .artin-chat .n-minimal-chat-identity{max-width:calc(100% - 85px)!important;min-width:0!important}
 .artinai-body .artin-chat .n-minimal-chat-title{overflow:hidden!important;text-overflow:ellipsis!important}
 .artinai-body .artin-chat .n-composer-minimal .n-composer-side-all-left{gap:3px!important}
}
