:root { --copilot-bg:rgba(255,255,255,.97); }
html.qaym-dark { color-scheme:dark!important;--qaym-bg-canvas:#0E1614;--qaym-bg:#0E1614;--qaym-bg-ice:#0E1614;--qaym-surface:rgba(18,30,27,.85);--qaym-glass-card:rgba(18,30,27,.85);--qaym-glass-border:rgba(47,143,91,.12);--qaym-border:rgba(47,143,91,.12);--qaym-border-subtle:rgba(47,143,91,.06);--qaym-surface-hover:#172923;--qaym-subtle:#15251F;--text-primary:#E4F3EB;--text-title:#E4F3EB;--text-body:#C1DACD;--text-main:#E4F3EB;--text-secondary:#B2CFC0;--text-muted:#98B6A7;--brand-primary-light:rgba(47,143,91,.1);--shadow-fluid:0 10px 30px -10px rgba(0,0,0,.22);--shadow-active:0 16px 36px -8px rgba(0,0,0,.3);--copilot-bg:rgba(18,30,27,.97); }
html.qaym-dark body,html.qaym-dark .arc-console {background:var(--qaym-bg-canvas);color:var(--text-body);}
html.qaym-dark :is(input,select,textarea){color-scheme:dark!important;}
html.qaym-dark .arc-console :is(.card,.qaym-card,.qaym-managed-panel,.qaym-header,.qaym-table-container,.filter-toolbar,.kpi-card,.arc-palette,.workspace-tools-menu,.workspace-panel-list,.user-profile-pill,.pos-product-tile,.btn-topbar-icon) {background:var(--qaym-glass-card)!important;border-color:var(--qaym-border)!important;color:var(--text-primary);}
html.qaym-dark .arc-console :is(input,select,textarea) {color-scheme:dark!important;background:#14241E!important;border-color:rgba(47,143,91,.18)!important;color:var(--text-primary)!important;}
html.qaym-dark .arc-console :is(h1,h2,h3,h4,.kpi-val,.metric-val,.user-name-text,.qaym-logo,.topbar-brand-name,.amount,.qaym-table td,.qaym-table th) {color:var(--text-primary);}
html.qaym-dark .arc-console :is(.qaym-table th,.qaym-table tbody tr:hover td,.workspace-menu-action:hover,.workspace-panel-toggle:hover,.pos-product-tile:hover) {background:#172C24!important;color:var(--text-primary);}
html.qaym-dark .arc-console :is(.qaym-table td,.qaym-table th) {border-color:var(--qaym-border-subtle);}
html.qaym-dark .arc-console :is(.brand-emblem-wrap,.tenant-pill-badge,.kpi-symbol,.badge-status.new) {background:rgba(47,143,91,.08);border-color:rgba(47,143,91,.15);color:#B3EFC6;}
html.qaym-dark .arc-console .badge-status.pending {background:rgba(201,162,74,.1);color:#FCD34D;border-color:rgba(201,162,74,.2);}
html.qaym-dark .arc-console .badge-status.delivered {background:rgba(16,185,129,.1);color:#86EFAC;border-color:rgba(16,185,129,.2);}
html.qaym-dark .arc-console :is(.muted,.metric-label,.kpi-label,.workspace-menu-caption) {color:var(--text-muted);}
html.qaym-dark .arc-console .btn-qaym-secondary {background:#172923;color:var(--text-primary);border-color:var(--qaym-border);}
html.qaym-dark .qaym-table a {color:#86EFAC;}
html.qaym-dark .living-canvas::before {opacity:.4;}
.qaym-settings-trigger{font-size:1.2rem;flex-shrink:0;}
.qaym-settings-modal{box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--qaym-glass-border);border-radius:22px;background:var(--copilot-bg);color:var(--text-primary);box-shadow:0 24px 80px rgba(10,51,44,.2);font-family:var(--font-base);overflow:auto;text-align:start;}
.qaym-settings-modal[dir=rtl]{direction:rtl;}.qaym-settings-modal[dir=ltr]{direction:ltr;}
.qaym-settings-modal::backdrop{background:rgba(10,51,44,.3);backdrop-filter:blur(4px);}
.qaym-settings-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px 12px;}
.qaym-settings-head h2{font-size:1rem;margin:0;color:var(--text-primary);}
.qaym-settings-description{font-size:.74rem;line-height:1.9;color:var(--text-muted);margin:0;padding:0 24px 16px;}
.qaym-settings-fields{padding:0 24px;display:grid;gap:16px;}
.qaym-setting-field{display:grid;gap:8px;}.qaym-setting-field label,.qaym-setting-audio{font-size:.8rem;color:var(--text-primary);}
.qaym-setting-field select{box-sizing:border-box;width:100%;height:44px;border:1px solid var(--qaym-border);border-radius:10px;background:var(--qaym-surface);color:var(--text-primary);padding:0 12px;font:inherit;font-size:.83rem;}
.qaym-setting-field select:focus-visible{outline:2px solid var(--qaym-soft-mint);outline-offset:2px;}
.qaym-setting-audio{display:flex;align-items:center;gap:10px;line-height:1.8;cursor:pointer;}.qaym-setting-audio input{width:18px;height:18px;accent-color:var(--qaym-deep-emerald);}
.qaym-settings-sample{display:grid;gap:12px;margin:20px 24px 0;padding:16px;border:1px solid var(--qaym-border);border-radius:12px;background:var(--qaym-subtle);font-size:.84rem;}
.qaym-settings-footer{display:flex;justify-content:flex-end;padding:20px 24px;}
.copilot-orb {position:fixed;left:20px;bottom:24px;z-index:1200;width:52px;height:52px;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(47,143,91,.3);background:rgba(10,51,44,.94);color:#2F8F5B;box-shadow:0 8px 24px rgba(10,51,44,.2);cursor:pointer;font-size:1.5rem;animation:copilot-float 4s ease-in-out infinite;}
.copilot-orb::before{content:'';position:absolute;inset:-5px;border:1px solid rgba(47,143,91,.22);border-radius:inherit;animation:copilot-breathe 3s ease-in-out infinite;pointer-events:none;}
.canvas-paused .copilot-orb,.canvas-paused .copilot-orb::before{animation-play-state:paused;}
.copilot-drawer {position:fixed;left:20px;bottom:88px;z-index:9300;width:380px;max-width:90vw;height:560px;max-height:calc(100dvh - 110px);display:flex;flex-direction:column;background:var(--copilot-bg);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--qaym-glass-border);border-radius:24px;box-shadow:var(--shadow-active);overflow:hidden;color:var(--text-primary);}
.copilot-drawer[hidden]{display:none;}
.copilot-head {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 18px;border-bottom:1px solid var(--qaym-border);}
.copilot-head h2{font-size:.9rem;margin:0;}.copilot-head small{font-size:.6rem;color:var(--text-muted);}
.copilot-log {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px;display:flex;flex-direction:column;gap:12px;}
.copilot-bubble {padding:12px 14px;border-radius:16px;background:var(--qaym-subtle);font-size:.78rem;line-height:1.9;overflow-wrap:anywhere;}
.copilot-bubble.user{background:rgba(47,143,91,.12);margin-inline-start:26px;}.copilot-bubble.assistant{margin-inline-end:14px;}
.copilot-bubble p{margin:0 0 8px;}.copilot-bubble pre{white-space:pre-wrap;direction:ltr;text-align:left;font-family:var(--font-mono);font-size:.7rem;}
.copilot-bubble code{font-family:var(--font-mono);background:rgba(10,51,44,.07);padding:1px 4px;border-radius:4px;}
.copilot-bubble ul{padding-inline-start:18px;margin:4px 0;}.copilot-bubble h3{font-size:.85rem;margin:8px 0;}
.copilot-compose {padding:12px;border-top:1px solid var(--qaym-border);display:flex;align-items:end;gap:8px;}
.copilot-compose textarea{flex:1;min-width:0;resize:none;max-height:100px;font:inherit;font-size:.75rem;}
.copilot-notice{font-size:.62rem;line-height:1.8;color:var(--text-muted);padding:0 16px 10px;}
.copilot-shortcuts{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;}.copilot-shortcuts a{font-size:.67rem;padding:6px 8px;border:1px solid var(--qaym-border);border-radius:8px;text-decoration:none;color:var(--text-primary);}
.copilot-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 12px;max-height:130px;overflow:auto;flex-shrink:0;border-bottom:1px solid var(--qaym-border);}
.copilot-suggestions-label{width:100%;font-size:.68rem;color:var(--text-muted);}
.copilot-prompt{font:inherit;font-size:.68rem;line-height:1.7;text-align:start;padding:6px 9px;border:1px solid var(--qaym-glass-border);border-radius:10px;background:var(--qaym-surface);color:var(--text-primary);cursor:pointer;transition:border-color .15s,background .15s;}
.copilot-prompt:hover,.copilot-prompt:focus-visible{border-color:var(--qaym-soft-mint);outline:2px solid var(--qaym-mint-glow);outline-offset:1px;}
.copilot-prompt:disabled{opacity:.5;cursor:wait;}
.copilot-typing{display:inline-block;animation:copilot-breathe 1.4s ease-in-out infinite;}
.copilot-hint-bubble{position:fixed;left:20px;bottom:88px;z-index:1199;display:flex;align-items:center;gap:4px;box-sizing:border-box;width:290px;max-width:calc(100vw - 32px);padding:8px;border-radius:16px;background:var(--copilot-bg);backdrop-filter:blur(16px);border:1px solid var(--qaym-glass-border);box-shadow:var(--shadow-active);color:var(--text-primary);animation:copilot-hint-enter .25s ease-out;}
.copilot-hint-bubble[hidden]{display:none;}
.copilot-hint-bubble::after{content:'';position:absolute;bottom:-5px;left:21px;width:9px;height:9px;background:var(--copilot-bg);border-right:1px solid var(--qaym-glass-border);border-bottom:1px solid var(--qaym-glass-border);transform:rotate(45deg);}
.hint-prompt-btn{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:6px;background:transparent;border:0;color:inherit;font:inherit;font-size:.73rem;line-height:1.9;text-align:start;cursor:pointer;}
.hint-pulse-sparkle{color:#A9842F;font-size:1.15rem;animation:copilot-breathe 3s ease-in-out 3;}
.hint-close-btn{width:28px;height:28px;flex-shrink:0;align-self:flex-start;border:0;border-radius:8px;background:transparent;color:var(--text-muted);font-size:1rem;cursor:pointer;}
.hint-close-btn:hover{background:var(--qaym-subtle);color:var(--text-primary);}
.hint-prompt-btn:focus-visible,.hint-close-btn:focus-visible{outline:2px solid var(--qaym-soft-mint);outline-offset:2px;border-radius:8px;}
@keyframes copilot-hint-enter{from{opacity:0;transform:translateY(5px);}to{opacity:1;transform:translateY(0);}}
@keyframes copilot-float{0%,100%{transform:translateY(0);}50%{transform:translateY(-5px);}}
@keyframes copilot-breathe{0%,100%{opacity:.45;}50%{opacity:1;}}
@media(max-width:600px){.copilot-orb{left:12px;bottom:120px;width:44px;height:44px;}.copilot-drawer{left:12px;bottom:172px;max-height:calc(100dvh - 190px);}.copilot-hint-bubble{left:12px;bottom:176px;}.qaym-settings-head{padding-inline:18px;}.qaym-settings-fields,.qaym-settings-description{padding-inline:18px;}}
@media(max-width:520px){.user-name-text{max-width:56px;}.brand-emblem-img{width:24px;height:24px;}.brand-emblem-wrap{padding-inline:6px;}.topbar-brand-name{font-size:.8rem;}}
@media(max-width:380px){.topbar-brand-name{display:none;}.user-name-text{max-width:60px;}}
@media(prefers-reduced-motion:reduce){.copilot-orb,.copilot-orb::before,.copilot-typing,.copilot-hint-bubble,.hint-pulse-sparkle{animation:none!important;}}
@media print{.copilot-orb,.copilot-drawer,.copilot-hint-bubble,.qaym-settings-trigger,.qaym-settings-modal{display:none!important;}html.qaym-dark body{background:#fff!important;color:#000!important;}}

.qaym-settings-station{padding:0 24px;}.qaym-station-sections{display:grid;gap:20px;margin-top:20px;}.qaym-hardware-station{display:grid;gap:12px;padding-top:20px;border-top:1px solid var(--qaym-border);}.qaym-hardware-station h3{font-size:.9rem;margin:0;color:var(--text-primary);}.qaym-hardware-station p{margin:0;line-height:1.9;}.qaym-hardware-station input[type=password]{width:100%;min-width:0;box-sizing:border-box;background:var(--qaym-surface);border:1px solid var(--qaym-border);border-radius:10px;padding:10px;color:var(--text-primary);font:inherit;}
