/* Shared client/admin enhancements. No print overrides or data changes. */
.main,#content,.view-frame{min-width:0}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.workspace-shortcuts{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}.workspace-shortcuts a{display:flex;gap:18px;justify-content:space-between;align-items:center;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-size:12px;text-decoration:none}.workspace-shortcuts a:hover{border-color:var(--orange)}.workspace-shortcuts span{color:var(--orange)}
.table-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 8px}.table-tools>span{font-size:11px;color:var(--muted)}.table-tools button{padding:8px 12px;font-size:11px}.cell-content{min-width:0}.navigation-search{max-width:520px}.navigation-search h2{font-size:20px}.navigation-results{display:grid;gap:8px;margin-top:18px}.navigation-results a{display:flex;justify-content:space-between;padding:14px;border:1px solid var(--line);border-radius:10px;color:var(--ink);text-decoration:none}.navigation-results a:hover{background:var(--bg);border-color:var(--orange)}
.mobile-bottom,.mobile-backdrop,.mobile-menu-close{display:none}
.mobile-menu-close{color:#f3f3f3!important;border-color:#ffffff40!important}
.mobile-page-hidden{display:none!important}.table-pagination{display:flex;align-items:center;gap:8px;margin-right:auto}.table-pagination span{font-size:11px;color:var(--muted)}.table-pagination button{font-size:19px;padding:4px 12px}.table-tools{flex-wrap:wrap}
@media(max-width:960px){
 html{scrollbar-gutter:auto}body.mobile-menu-open{overflow:hidden}.main{width:100%;margin-left:0}aside#sidebar{width:min(310px,86vw);padding:20px 18px calc(24px + env(safe-area-inset-bottom));transform:translateX(-105%);overflow-y:auto;overscroll-behavior:contain;z-index:110;height:100dvh}.collapsed aside#sidebar{transform:translateX(0)}
 .mobile-menu-close{display:block;align-self:flex-end;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-bottom:8px;min-height:44px}.mobile-backdrop:not([hidden]){display:block;position:fixed;inset:0;border:0;background:#0009;z-index:105;width:100%;height:100dvh;border-radius:0}.mobile-bottom{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:3px;position:fixed;bottom:0;left:0;right:0;z-index:80;padding:7px 6px calc(7px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -5px 22px #0002}.mobile-bottom a{display:grid;place-items:center;text-align:center;padding:10px 3px;min-height:46px;color:var(--muted);font-size:11px;line-height:1.3;border-radius:10px;text-decoration:none}.mobile-bottom a[aria-current=page]{color:var(--orange);background:#f69a3215}.shell.hidden .mobile-bottom{display:none}.main>footer{padding-bottom:calc(76px + env(safe-area-inset-bottom))}header{position:sticky;top:0;z-index:90}#toast{bottom:calc(88px + env(safe-area-inset-bottom));right:14px;left:14px;max-width:none}.icon-button{width:44px;height:44px;flex-shrink:0}.breadcrumbs{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-actions{gap:2px}input,select,textarea{font-size:16px}button,.primary,.secondary{min-height:44px}.page-top .actions{width:100%}.panel-title{gap:10px;flex-wrap:wrap}.pc-panel,.panel{min-width:0}.pc-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pc-card{padding:17px!important}.pc-card>strong{font-size:30px!important;margin:16px 0 8px!important}.pc-toolbar label{min-width:0!important}
}
@media(max-width:680px){
 #content{padding:22px 14px}header{height:64px;padding:0 8px;gap:4px}.header-actions .local-badge{display:none}.breadcrumbs span{margin:0 5px}.breadcrumbs{font-size:10px}header .avatar{width:34px;height:34px}.page-top h1{font-size:25px}.page-top{align-items:stretch;flex-direction:column}.actions>button{flex:1;white-space:normal}.workspace-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.workspace-shortcuts a{padding:12px;font-size:11px}.pc-shortcuts{grid-template-columns:1fr!important}.pc-toolbar{display:grid!important;grid-template-columns:1fr!important}.pc-cards{gap:10px!important}.pc-card>span{font-size:11px!important;align-items:flex-start}.pc-card small{font-size:10px!important;line-height:1.5;display:block}.pc-row-actions{min-width:0!important}.pc-workspace{padding:12px 14px!important}.pc-workspace button{width:100%}
 .table-wrap{overflow:visible}table{white-space:normal;display:block;width:100%}thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}tbody{display:grid;gap:12px}tr{display:block;border:1px solid var(--line);border-radius:12px;padding:9px 12px;background:var(--surface)}td{display:grid;grid-template-columns:minmax(82px,.8fr) minmax(0,1.5fr);gap:12px;align-items:start;padding:10px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere;font-size:12px}td::before{content:attr(data-label);font-size:10px;color:var(--muted);padding-top:2px}td:last-child{border:0}.cell-content{white-space:normal;overflow-wrap:anywhere}.cell-content>button,.cell-content>.primary,.cell-content>.secondary{margin:3px 3px 3px 0;white-space:normal}.cell-content .pc-row-actions{display:grid;grid-template-columns:1fr;gap:6px}.pc-note{max-width:none!important}.table-tools>span{display:none}.table-tools{justify-content:flex-end}.table-tools button{font-size:12px}.conversation{height:42dvh;min-height:220px}.message{max-width:96%}.chat-form{display:grid;grid-template-columns:1fr}.chat-form button{width:100%}dialog{padding:18px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 28px)}dialog h2{font-size:20px}.modal-heading{gap:10px}.modal-info{font-size:11px}.chart{gap:6px;padding-left:0;padding-right:0}.live-dashboard,.live-grid,.grid-main,.split{min-width:0}.pc-panel{padding:16px!important}.form-grid{grid-template-columns:1fr}.table-wrap td input[type=checkbox]{min-height:24px;min-width:24px;width:auto}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.mobile-bottom,.mobile-backdrop,.mobile-menu-close,.workspace-shortcuts,.table-tools,.navigation-search{display:none!important}}

/* Compact counters and gentle motion, independent of background refreshes. */
.pc-cards,.stats.dj-cards{gap:12px!important;margin-bottom:20px}
.pc-cards .pc-card{padding:16px 18px!important;min-height:136px;border-radius:14px;box-shadow:inset 0 1px 0 #ffffff14,0 3px 0 #0002,0 7px 16px #0001}
.pc-cards .pc-card>strong{font-size:28px!important;line-height:1.15;margin:12px 0 7px!important}
.pc-cards .pc-card>span{font-size:11px!important;line-height:1.4}.pc-cards .pc-card small{font-size:10px!important;line-height:1.5}
.stats.dj-cards .dj-card{border-radius:14px;box-shadow:inset 0 1px 0 #ffffff16,0 3px 0 #0002,0 7px 16px #0001}
.stats.dj-cards .dj-card>summary{height:190px!important;min-height:190px!important;padding:14px 16px!important;gap:5px!important}
.stats.dj-cards .stat-top{min-height:32px!important;font-size:11px!important}.stats.dj-cards .stat-icon{width:34px!important;height:34px!important;border-radius:9px}.stats.dj-cards .dj-device-ring{width:30px;height:30px}
.stats.dj-cards .stat-value{font-size:28px!important;line-height:1.15;margin:0!important}.stats.dj-cards .stat-note{font-size:10px;min-height:22px!important;line-height:1.4}.stats.dj-cards .dj-mini-chart{min-height:28px!important}.stats.dj-cards .dj-mini-chart svg{height:18px!important}.stats.dj-cards .dj-mini-chart figcaption{font-size:8px;line-height:1.3}.dj-card-hint i{transition:transform 180ms ease}
button,a,.dj-card,.pc-card,.pc-shortcut,.tool-card,input,select,textarea{transition:background-color 160ms ease,border-color 160ms ease,box-shadow 180ms ease,transform 180ms ease}
button:active,.primary:active,.secondary:active{transform:translateY(1px) scale(.985)}
@media(hover:hover){.pc-card:hover,.dj-card:hover,.pc-shortcut:hover,.tool-card:hover{transform:translateY(-3px);box-shadow:inset 0 1px 0 #ffffff16,0 8px 20px #0002}.workspace-shortcuts a:hover,.navigation-results a:hover{transform:translateX(2px)}nav a:hover .nav-icon{transform:translateY(-1px)}}
.nav-icon{transition:transform 180ms ease}.dj-device-ring circle{transition:stroke-dasharray 500ms ease}.dj-card-menu a:hover,.dj-card-menu button:hover{transform:translateX(2px)}
.dj-enter{animation:dj-enter 360ms ease-out both;animation-delay:var(--entry-delay,0ms)}
dialog[open]{animation:dj-dialog 180ms ease-out}.mobile-bottom a[aria-current=page]{transition:background-color 200ms ease,color 200ms ease}
@keyframes dj-enter{from{opacity:.35;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes dj-dialog{from{opacity:.4;transform:translateY(6px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:680px){
 .pc-cards,.stats.dj-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .pc-cards .pc-card{padding:12px!important;min-height:126px;border-radius:12px}.pc-cards .pc-card>span{font-size:10px!important;gap:5px!important}.pc-cards .pc-card b{font-size:19px!important}.pc-cards .pc-card>strong{font-size:27px!important;margin:10px 0 6px!important}.pc-cards .pc-card small{font-size:9px!important}
 .stats.dj-cards .dj-card>summary{height:182px!important;min-height:182px!important;padding:12px!important;gap:4px!important}.stats.dj-cards .stat-top{font-size:10px!important;min-height:28px!important;align-items:flex-start}.stats.dj-cards .stat-icon{width:28px!important;height:28px!important;flex-shrink:0}.stats.dj-cards .dj-device-ring{width:25px;height:25px}.stats.dj-cards .stat-value{font-size:26px!important}.stats.dj-cards .stat-note{font-size:9px;line-height:1.4;min-height:26px!important}.dj-card-hint{font-size:9px}.stats.dj-cards .dj-mini-chart figcaption{font-size:8px}
}
@media(prefers-reduced-motion:reduce){.dj-enter,dialog[open]{animation:none!important}button,a,.dj-card,.pc-card,.pc-shortcut,.tool-card,.nav-icon,.dj-device-ring circle{transition:none!important;transform:none!important}}
