/* UI-only mobile overrides. Desktop dimensions remain unchanged. */
.ws-panels>*,.sidebar>*{min-width:0}
.ws-sticker-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;max-height:48dvh;overflow:auto}.ws-sticker-grid article{border:1px solid var(--border);border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:6px}.ws-sticker-grid img,.ws-sticker-preview{width:128px;height:128px;object-fit:contain;max-width:100%}.ws-sticker-grid button{min-height:36px}
.copilot-discovery{margin-top:8px}.copilot-discovery>p{font-size:12px}.copilot-suggestion-list{gap:6px}.copilot-discovery-categories details{margin-top:5px}
@media(max-width:720px){.nj-mobile-authenticated .dashboard-operations-grid .attention-card{order:-1}.nj-mobile-authenticated .dash-empty{min-height:68px;padding:12px}.nj-mobile-authenticated .dash-empty .empty-mark{display:none}.nj-mobile-authenticated .dashboard-metric-note,.nj-mobile-authenticated .attention-foot,.nj-mobile-authenticated .card-footnote{font-size:11px;line-height:1.45}.nj-mobile-authenticated .kpi-card{min-height:94px}.nj-mobile-authenticated .kw-summary-heading p{font-size:11px}.nj-mobile-authenticated .kw-summary .kw-queue-detail{font-size:10px}.nj-mobile-authenticated .kw-snapshot{font-size:10px;margin:5px 0}.nj-mobile-authenticated .kw-lead-status .subtle{display:none}}
.ws-right .ws-context-section{margin:8px 0}.ws-right .ws-context-section>summary{min-height:38px;display:flex;align-items:center;cursor:pointer}
body.nj-keyboard-open #kasim-floating-button,body:has(dialog[open]) #kasim-floating-button,body:has(.nj-mobile-drawer-open) #kasim-floating-button,body:has(.ws-drawer-open) #kasim-floating-button{visibility:hidden;pointer-events:none}
body:has(#kasim-right-workspace) #kasim-floating-button,body:has(.side-drawer) #kasim-floating-button{visibility:hidden;pointer-events:none}
@media(max-width:720px){body.kw-chat-active #kasim-floating-button{visibility:hidden;pointer-events:none}}
@media(min-width:721px) and (max-width:1199px){.ws-panels{grid-template-columns:minmax(210px,28%) minmax(0,1fr)}.ws-right{position:absolute;right:0;top:0;bottom:0;width:min(340px,45vw);z-index:17}.ws-panels.ws-context-hidden .ws-right{display:none}}
@media(min-width:1200px){.ws-panels{grid-template-columns:minmax(230px,24%) minmax(0,1fr) minmax(280px,29%)}.ws-panels.ws-context-hidden{grid-template-columns:minmax(230px,24%) minmax(0,1fr)}}
.ws-message.incoming{margin-left:0!important;margin-right:auto!important}.ws-message.outgoing{margin-left:auto!important;margin-right:0!important}
.ws-emoji-grid{display:grid;grid-template-columns:repeat(6,minmax(36px,1fr));gap:8px;width:100%;max-height:200px;overflow-y:auto}.ws-emoji-grid button{font-size:23px;min-height:42px;padding:5px}
.ws-composer{overflow:visible;z-index:3}.ws-compose-tools{max-height:min(360px,50dvh);overflow:auto}
.ws-recap-text{white-space:pre-wrap;font:inherit;font-size:11px;overflow-wrap:anywhere;padding:8px;border:1px solid var(--border);border-radius:8px}.ws-attention{color:var(--yellow,#f9cc75)}
.nj-mobile-top,.nj-mobile-bottom,.nj-mobile-shade,.nj-mobile-close{display:none}
.nj-mobile-settings{width:min(430px,calc(100vw - 24px));max-height:85dvh;overflow:auto;background:var(--surface,#142234);color:var(--text,#e4f0ff);border:1px solid var(--border,#304458);border-radius:14px;padding:14px}
.nj-mobile-settings::backdrop{background:#0009}.nj-mobile-settings header,.nj-mobile-settings footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.nj-mobile-settings h3{margin:0;font-size:16px}.nj-mobile-settings p{font-size:12px;line-height:1.5;color:var(--muted)}.nj-mobile-options>div{display:flex;align-items:center;gap:6px;border-top:1px solid var(--border);padding:5px 0}.nj-mobile-options label{display:flex;align-items:center;gap:8px;flex:1;font-size:13px}.nj-mobile-options input{width:auto}.nj-mobile-options button,.nj-mobile-settings button{min-width:36px;min-height:36px;padding:5px 8px}.nj-mobile-feedback{min-height:18px}
@media(max-width:720px){
 body.nj-mobile-authenticated{--nj-bottom:calc(52px + env(safe-area-inset-bottom));--nj-top:38px}
 .nj-mobile-authenticated #app-shell:not(.hidden){display:flex;flex-direction:column;min-height:100dvh;padding:var(--nj-top) 0 var(--nj-bottom)}
 .nj-mobile-authenticated .nj-mobile-top{display:flex;position:fixed;inset:0 0 auto;align-items:center;gap:8px;height:var(--nj-top);padding:0 8px;background:var(--surface,#142234);border-bottom:1px solid var(--border);z-index:52}
 .nj-mobile-top strong{font-size:12px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nj-mobile-top button{border:0;background:transparent;padding:5px;min-width:36px;min-height:36px}.nj-mobile-top svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7}
 .nj-mobile-authenticated .nj-mobile-bottom{position:fixed;bottom:var(--nj-keyboard-offset,0px);left:0;right:0;z-index:70;display:grid;grid-template-columns:repeat(var(--nj-nav-count,5),minmax(0,1fr));padding:3px 4px env(safe-area-inset-bottom);height:var(--nj-bottom);background:var(--surface,#142234);border-top:1px solid var(--border);box-shadow:0 -3px 12px #0002}
 .nj-mobile-bottom button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;padding:3px 1px;border:0;background:transparent;font-size:9px;border-radius:8px;color:var(--muted)}.nj-mobile-bottom button[aria-current]{color:var(--cyan,#79d8f2);background:color-mix(in srgb,var(--cyan,#79d8f2) 9%,transparent)}.nj-mobile-bottom svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65}.nj-mobile-bottom span{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 .nj-mobile-authenticated #app-shell>.sidebar,.nj-mobile-authenticated.kw-chat-active #app-shell>.sidebar{display:flex!important;flex-direction:column;position:fixed;left:0;top:0;bottom:var(--nj-bottom);width:min(300px,78vw);height:auto!important;max-height:none!important;padding:12px;overflow:auto;z-index:60;transform:translateX(-105%);transition:transform .18s ease;visibility:hidden;pointer-events:none;background:var(--surface,#142234);box-shadow:8px 0 28px #0005}
 .nj-mobile-authenticated #app-shell>.sidebar.nj-mobile-drawer-open{transform:none;visibility:visible;pointer-events:auto}
 .nj-mobile-authenticated .sidebar .brand{display:flex!important;margin:8px 0 14px}.nj-mobile-authenticated .sidebar .nav{display:flex!important;flex-direction:column!important;overflow:visible;white-space:normal}.nj-mobile-authenticated .sidebar .nav button{width:100%;padding:8px;min-height:40px;text-align:left}.nj-mobile-authenticated .sidebar .nav-label{font-size:9px;margin:10px 0 4px}.nj-mobile-authenticated .sidebar .sidebar-footer{display:block!important;margin-top:auto}
 .nj-mobile-authenticated .sidebar .nav button{display:flex;justify-content:flex-start;align-items:center;gap:10px}.nj-mobile-authenticated .sidebar .nav button span,.nj-mobile-authenticated .sidebar .brand-copy,.nj-mobile-authenticated .sidebar .owner-profile-copy{display:block!important}.nj-mobile-authenticated .sidebar .nav-label{display:block!important}.nj-mobile-authenticated .sidebar .nav svg{flex-shrink:0}
 .nj-mobile-authenticated .nj-mobile-close{display:block;align-self:flex-end;min-height:36px;min-width:36px;padding:5px}.nj-mobile-authenticated .nj-mobile-shade:not([hidden]){display:block;position:fixed;inset:0 0 var(--nj-bottom);z-index:58;border:0;border-radius:0;background:#0008}
 .nj-mobile-authenticated .workspace{width:100%;min-width:0;margin:0;padding:0}.nj-mobile-authenticated .view{padding:10px}.nj-mobile-authenticated .topbar{padding:7px 10px;gap:6px}.nj-mobile-authenticated .topbar h1{font-size:17px}.nj-mobile-authenticated .topbar p{font-size:11px;margin:2px 0}
 body.nj-mobile-authenticated.kw-chat-active #app-shell{height:var(--kasim-viewport,100dvh);min-height:0;box-sizing:border-box;overflow:hidden}.nj-mobile-authenticated.kw-chat-active .workspace{flex:1;height:auto;min-height:0;overflow:hidden}.nj-mobile-authenticated.kw-chat-active .topbar{display:none}.nj-mobile-authenticated.kw-chat-active .view{padding:2px;min-height:0;flex:1}
 .nj-mobile-authenticated .ws-bar{height:32px;min-height:32px;padding:2px 6px}.nj-mobile-authenticated .ws-chat-head{min-height:40px;padding:2px 5px}.nj-mobile-authenticated .ws-chat-head button{min-height:36px}.nj-mobile-authenticated .ws-filters{gap:4px;padding:4px}.nj-mobile-authenticated .ws-filters button{padding:5px 7px;min-height:32px}.nj-mobile-authenticated .ws-thread{padding:8px}.nj-mobile-authenticated .ws-messages{padding:8px;touch-action:pan-y}.nj-mobile-authenticated .ws-message{margin:6px 0;padding:8px 10px}.nj-mobile-authenticated .ws-composer{padding:4px 5px;max-height:48%}.nj-mobile-authenticated .ws-compose-row textarea{height:38px;min-height:38px;font-size:16px}.nj-mobile-authenticated .ws-compose-row button{min-height:40px}
 .nj-mobile-authenticated .ws-right{width:min(340px,86%);padding:8px}.nj-mobile-authenticated .ws-right>header{position:sticky;top:-8px;z-index:2;background:var(--surface-soft,#142234);padding:5px 0;min-height:40px;touch-action:pan-y}.nj-mobile-authenticated .ws-right>header button{min-width:36px;min-height:36px}.nj-mobile-authenticated .ws-right section{margin-top:8px;padding-top:6px}.nj-mobile-authenticated .ws-right dl{gap:5px}.nj-mobile-authenticated .ws-backdrop:not([hidden]){z-index:16}.nj-mobile-authenticated .ws-right.ws-drawer-open{z-index:17}
 .nj-mobile-authenticated #kasim-floating-button{bottom:calc(var(--nj-bottom) + 12px);right:10px;min-height:40px;padding:6px 10px}
 .nj-mobile-authenticated .view{padding-bottom:66px}
 .nj-mobile-authenticated.kw-chat-active .view{padding-bottom:2px}
 .nj-mobile-authenticated .sidebar{overflow-x:hidden!important}.nj-mobile-authenticated .sidebar .nav button span{min-width:0;white-space:normal;overflow-wrap:anywhere}
 .nj-mobile-authenticated .sidebar .brand img{max-width:100%}
 .nj-mobile-authenticated .sidebar .owner-profile{width:100%;min-width:0;max-width:100%;display:flex}
 .nj-mobile-authenticated .sidebar .owner-profile-copy{min-width:0;flex:1;white-space:normal;overflow-wrap:anywhere}
 .nj-mobile-authenticated .sidebar .owner-profile-copy strong,.nj-mobile-authenticated .sidebar .owner-profile-copy small{white-space:normal;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){.nj-mobile-authenticated #app-shell>.sidebar{transition:none}}
@media(max-width:720px){.nj-mobile-authenticated .dashboard-stack{gap:12px}.nj-mobile-authenticated .kpi-card{min-height:94px;padding:10px}.nj-mobile-authenticated .dash-card{padding:12px}.nj-mobile-authenticated .kpi-grid{gap:9px}.nj-mobile-authenticated .kpi-grid>.kpi-revenue:last-child:nth-child(odd){grid-column:1/-1}.nj-mobile-authenticated .dashboard-secondary-grid,.nj-mobile-authenticated .dashboard-operations-grid{gap:12px}}
