:root{color-scheme:light dark;--ui-page:#f4f7fc;--ui-surface:#fff;--ui-text:#172b4d;--ui-muted:#526580;--ui-line:#dce5f1;--ui-selected:#edf4ff;--ui-skeleton:#e5eaf2;--ui-yellow:#1d4ed8;--ui-orange:#1d4ed8;--ui-on-accent:#fff;--ui-accent-hover:#1d4ed8;--ui-shadow:0 1px 2px #1f29370f,0 4px 12px #1f29370a;--ui-radius:10px;--ui-sidebar:216px}
@media(prefers-color-scheme:dark){:root{--ui-yellow:#2563eb;--ui-page:#0f1623;--ui-surface:#172131;--ui-text:#e8edf5;--ui-muted:#a3b0c2;--ui-line:#2a3648;--ui-selected:#1c2b47;--ui-skeleton:#243145;--ui-shadow:none}}
*{box-sizing:border-box}.site-shell{margin:0;background:var(--ui-page);color:var(--ui-text);font:14px/1.4 system-ui,-apple-system,sans-serif}
.site-shell h1{font-size:20px;line-height:24px;margin:0}.site-shell h2{font-size:18px;margin:0}.site-shell h3{font-size:16px}.site-shell p{margin:0}.site-shell a{color:inherit;text-decoration:none}
.site-shell button,.site-shell input,.site-shell summary,.site-shell .button{font:inherit;color:inherit}.site-shell button,.site-shell summary,.site-shell .button{min-height:44px;min-width:44px;border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-surface);padding:0 12px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;white-space:nowrap}
.site-shell button:hover,.site-shell .button:hover,.site-shell summary:hover{background:var(--ui-selected)}.site-shell .primary{background:var(--ui-yellow);border-color:var(--ui-yellow);color:var(--ui-on-accent);font-weight:650}.site-shell .primary:hover{background:var(--ui-accent-hover);border-color:var(--ui-accent-hover)}
.site-shell :focus-visible{outline:3px solid var(--ui-orange);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:8px;top:-80px;z-index:20;min-height:44px;min-width:44px;padding:12px;background:var(--ui-yellow);color:var(--ui-on-accent)!important}.skip-link:focus{top:4px}
.site-top{position:fixed;inset:0 0 auto;height:48px;z-index:5;background:var(--ui-surface);border-bottom:1px solid var(--ui-line);display:flex;align-items:center;gap:8px;padding:0 12px}.site-top>button{border:0;padding:0}.breadcrumbs{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.breadcrumbs a{min-height:44px;display:inline-flex;align-items:center}.breadcrumbs>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tenant-name{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ui-muted)}
.site-sidebar{position:fixed;inset:48px auto 0 0;width:var(--ui-sidebar);padding:12px 8px;border-right:1px solid var(--ui-line);background:var(--ui-surface);overflow:auto;transition:width .15s}.site-logo{display:inline-flex;align-items:center;gap:8px;min-height:44px;min-width:44px;padding-right:8px;font-size:16px;font-weight:700;white-space:nowrap}.site-logo img{display:block;border-radius:6px}.top-fill{flex:1}.breadcrumbs>span[aria-hidden]{color:var(--ui-muted)}.breadcrumbs a{color:var(--ui-link)}.crumb-back::before{content:"‹";margin-right:4px}.site-sidebar nav a,.nav-dialog nav a{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;margin:4px 0;border-radius:8px}.nav-icon{width:24px;text-align:center;font-size:20px}.site-sidebar a[aria-current],.nav-dialog a[aria-current]{background:var(--ui-selected);box-shadow:inset 3px 0 var(--ui-yellow);font-weight:650}.availability{margin:16px 8px!important;color:var(--ui-muted);font-size:12px}
.site-main{margin:48px 0 0 var(--ui-sidebar);padding:12px;max-width:1600px;min-width:0}.sidebar-collapsed{--ui-sidebar:64px}.sidebar-collapsed .site-sidebar .nav-label,.sidebar-collapsed .site-sidebar .availability{display:none}.sidebar-collapsed .site-sidebar nav a{padding:0 8px}.site-shell .muted{color:var(--ui-muted)}
.preview-banner{min-height:24px;line-height:20px;padding:2px 8px;margin-bottom:4px!important;border-left:3px solid var(--ui-orange);background:var(--ui-selected);font-size:12px}.page-heading{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}.page-heading>div:first-child{min-width:0}.page-heading p{font-size:12px;color:var(--ui-muted);white-space:nowrap}.page-actions{display:flex;align-items:center;gap:4px}.report-tabs{display:flex;align-items:center;gap:4px}.report-tabs a{display:inline-flex;min-height:44px;align-items:center;padding:0 8px;border-bottom:3px solid transparent;white-space:nowrap}.report-tabs a[aria-current]{border-color:var(--ui-yellow);font-weight:650}.reauth-link{font-size:13px;min-height:44px;display:inline-flex;align-items:center;white-space:nowrap;color:var(--ui-link)}.compact-label{display:none}.site-shell .page-actions [data-filter-open]{display:none}
.report-filters{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin-bottom:4px}.report-filters label{display:flex;align-items:center;gap:4px;flex:0 0 auto;max-width:100%}.report-filters label>span{white-space:nowrap;font-size:12px;flex-shrink:0}.report-filters select{min-width:120px;max-width:240px}.report-filters input:not([type=hidden]){min-height:44px;border:1px solid var(--ui-line);background:var(--ui-surface);border-radius:8px;padding:0 8px;min-width:0;font-size:16px;width:140px}.report-filters input[name=device]{width:172px}.report-filters input[name=product]{width:104px}.report-filters button{flex-shrink:0}
.account-menu,.date-menu,.column-menu{position:relative}.popover{position:absolute;z-index:8;right:0;top:calc(100% + 4px);min-width:192px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:8px;padding:8px;box-shadow:0 8px 24px #0002}.account-menu .popover a{min-height:44px;display:flex;align-items:center;padding:0 8px}.date-menu button{display:flex;width:100%;border:0;justify-content:flex-start}.column-menu fieldset{margin:0}.column-menu legend{font-size:12px}.column-choice{display:flex;align-items:center;min-height:44px;gap:8px}.column-choice input{width:44px;height:44px;accent-color:var(--ui-yellow)}
.ui-table-wrap{overflow:auto;max-height:calc(100dvh - 184px);background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:8px}.item-table{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed}.item-table th{position:sticky;top:0;z-index:2;background:var(--ui-surface);height:44px;text-align:left;font-size:12px;border-bottom:1px solid var(--ui-line);padding:0 8px}.item-table th:first-child{width:52px;padding:0 4px}.item-table th[data-column=name]{width:22%}.item-table th[data-column=time]{width:18%}.item-table th[data-column=device]{width:20%}.item-table th[data-column=price]{width:11%}.item-table th[data-column=classification]{width:10%}.item-table th[data-column=actions]{width:112px}.item-table th button{border:0;background:transparent;padding:0;justify-content:flex-start;font-weight:650}
.item-table td{height:44px;padding:0 8px;border-bottom:1px solid var(--ui-line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-table tr:last-child td{border-bottom:0}.item-table tr:has([data-row-select]:checked){background:var(--ui-selected)}.item-table .name-cell strong{font-weight:550}.item-table .price-cell,.item-table th[data-column=price]{text-align:right;font-variant-numeric:tabular-nums}.item-table .time-cell,.device-cell{font-size:12px;color:var(--ui-muted);font-variant-numeric:tabular-nums}.item-table .selection-cell{padding:0 4px}.action-cell button{border:0;background:transparent;padding:0 8px}
.status-badge{display:inline-flex;align-items:center;gap:4px;font-size:12px}.detail-drawer p.status-badge{display:flex}.status-badge.vend-success>span{color:#166534}.status-badge.pending>span{color:var(--ui-orange)}.status-badge.known>span{color:var(--ui-muted)}.status-badge.unknown>span{color:var(--ui-muted)}.row-selection{position:relative;display:flex;align-items:center;justify-content:center;width:44px;height:44px;cursor:pointer}.row-selection input{position:absolute;inset:0;margin:0;width:44px;height:44px;opacity:0;cursor:pointer}.row-selection span{width:18px;height:18px;border:1px solid var(--ui-muted);border-radius:4px;pointer-events:none}.row-selection input:checked+span{background:var(--ui-yellow);border-color:var(--ui-yellow)}.row-selection input:checked+span:after{content:'✓';display:block;text-align:center;line-height:16px;color:var(--ui-on-accent)}.row-selection input:focus-visible+span{outline:3px solid var(--ui-orange);outline-offset:3px}
.filter-chips,.selection-bar{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-bottom:4px}.filter-chip{display:inline-flex;min-height:44px;align-items:center;gap:8px;border:1px solid var(--ui-line);border-radius:8px;padding:0 8px;max-width:100%;overflow-wrap:anywhere}.selection-bar{padding:4px 8px;background:var(--ui-selected);border-radius:8px}.selection-bar strong{flex:1}.pagination{display:flex;gap:8px;justify-content:flex-end;margin:8px 0}.pagination a{display:inline-flex;min-height:44px;align-items:center;padding:0 12px;border:1px solid var(--ui-line);border-radius:8px}
.site-shell dialog{color:var(--ui-text);background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:12px;padding:16px;max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);overflow:auto}.site-shell dialog::backdrop{background:#0008}.site-shell dialog>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.site-shell dialog>header button{font-size:24px}.detail-drawer{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;width:440px;border-radius:12px 0 0 12px!important}.item-detail{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px 8px;margin:20px 0}.item-detail dt{color:var(--ui-muted)}.item-detail dd{margin:0;overflow-wrap:anywhere}.filter-dialog .report-filters{display:grid;gap:12px}.filter-dialog label{display:grid;gap:4px}.filter-dialog .report-filters input:not([type=hidden]){width:100%}.filter-dialog .popover{left:0;right:auto}
.ui-state{padding:32px 24px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:8px;min-height:224px}.ui-state p{color:var(--ui-muted);margin:8px 0 16px}.skeleton{height:40px;background:var(--ui-skeleton);border-radius:4px;margin:8px 0;animation:ui-pulse 1.4s infinite alternate}@keyframes ui-pulse{to{opacity:.5}}.toast{position:fixed;right:16px;top:64px;z-index:20;max-width:calc(100% - 32px);padding:12px 16px;background:var(--ui-text);color:var(--ui-surface);border-radius:8px;box-shadow:0 8px 24px #0002}.bottom-nav{display:none}[hidden]{display:none!important}
@media(min-width:768px) and (max-width:1279px){.report-tabs{display:none}.report-filters{flex-wrap:wrap}.tenant-name{max-width:160px}.reauth-link{display:none}}
@media(max-width:767px){.site-sidebar{display:none}.site-top{padding:0 8px}.site-top [data-sidebar-toggle]{display:none}.site-logo{padding-right:0}.site-logo-text{display:none}.breadcrumbs>a:not(.crumb-back),.breadcrumbs>span[aria-hidden]{display:none}.tenant-name{max-width:104px;font-size:12px}.site-main{margin-left:0;padding:8px 8px 76px}.page-heading{flex-wrap:wrap}.page-heading>div:first-child{width:100%;min-height:40px}.page-heading p{white-space:normal;font-size:11px}.page-actions{width:100%;justify-content:flex-end}.site-shell .page-actions [data-filter-open]{display:inline-flex;margin-right:auto}.report-tabs{display:none}.wide-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.compact-label{display:inline}.reauth-link{max-width:none;padding:0 4px}.report-filters{flex-wrap:wrap}.report-filters label{width:100%;display:grid;grid-template-columns:64px 1fr}.report-filters input:not([type=hidden]){width:100%}.has-ui .site-main [data-filter-home]{display:none}.column-menu .popover{min-width:220px}.ui-table-wrap{max-height:none;overflow:visible;border:0;background:transparent}.item-table,.item-table tbody{display:block;width:100%}.item-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.item-table tr[data-item-row]{display:grid;grid-template-columns:44px minmax(0,1fr) 88px;grid-template-rows:20px 20px 44px;gap:0 4px;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-surface);padding:8px 4px;margin-bottom:8px;min-height:102px}.item-table td{height:auto;min-width:0;border:0;padding:0;display:flex;align-items:center;overflow:hidden}.selection-cell{grid-column:1;grid-row:1/4;justify-content:center}.name-cell{grid-column:2;grid-row:1}.name-cell strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.time-cell{grid-column:2;grid-row:2}.device-cell{grid-column:2;grid-row:3;white-space:normal!important;line-height:16px;font-size:11px!important}.price-cell{grid-column:3;grid-row:2;justify-content:flex-end}.classification-cell{grid-column:3;grid-row:1;justify-content:flex-end}.action-cell{grid-column:3;grid-row:3;justify-content:flex-end}.action-cell button{font-size:12px;padding:0 4px}.bottom-nav{display:flex;align-items:center;justify-content:space-around;position:fixed;inset:auto 0 0;height:64px;padding-bottom:env(safe-area-inset-bottom);z-index:6;background:var(--ui-surface);border-top:1px solid var(--ui-line)}.bottom-nav a,.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:48px;min-width:64px;font-size:11px;border:0;gap:2px;padding:0 8px}.bottom-nav span{font-size:20px}.bottom-nav [aria-current]{color:var(--ui-text);box-shadow:inset 0 3px var(--ui-yellow)}.filter-dialog,.nav-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%!important;border-radius:16px 16px 0 0!important;max-height:90dvh!important}.detail-drawer{inset:0;margin:0;width:100%;max-width:100%!important;border-radius:0!important}.toast{top:56px}.selection-bar{font-size:12px}.selection-bar button{padding:0 8px}.filter-chips{flex-wrap:nowrap;overflow:auto}.filter-chip{flex-shrink:0}.site-shell .ui-state{padding:24px 16px}.pagination{justify-content:space-between}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.site-shell:not(.has-ui) .column-menu,.site-shell:not(.has-ui) .date-menu,.site-shell:not(.has-ui) [data-detail-open],.site-shell:not(.has-ui) [data-filter-open],.site-shell:not(.has-ui) .selection-cell,.site-shell:not(.has-ui) .item-table th:first-child{display:none}.has-ui .fallback-order{display:none}.fallback-order{display:inline-flex;min-height:44px;align-items:center}
.breadcrumbs a{min-width:44px}.item-table th,.item-table td{border-bottom:0;box-shadow:inset 0 -1px var(--ui-line)}.item-table tr:last-child td{box-shadow:none}.item-table th{z-index:2}.item-table th:first-child{z-index:3}
.site-shell :focus-visible,.row-selection input:focus-visible+span{outline-color:var(--ui-text)}
@media(prefers-color-scheme:dark){.status-badge.vend-success>span{color:#4ade80}}

/* Shared console layout; legacy page assets retain their own business controls. */
:root{--ui-danger:#b42318;--ui-success:#166534;--ui-warning:#8c4700;--ui-focus:#1d4ed8;--ui-link:#1d4ed8;--ui-chart:#2563eb;--ui-danger-bg:#fdecea;--ui-success-bg:#e8f5ee;--ui-warning-bg:#fdf3e7;--ui-info-bg:#eff4ff}
:root[data-theme=light]{color-scheme:light;--ui-yellow:#1d4ed8;--ui-page:#f4f7fc;--ui-surface:#fff;--ui-text:#172b4d;--ui-muted:#526580;--ui-line:#dce5f1;--ui-selected:#edf4ff;--ui-skeleton:#e5eaf2;--ui-shadow:0 1px 2px #1f29370f,0 4px 12px #1f29370a;--ui-danger:#b42318;--ui-success:#166534;--ui-warning:#8c4700;--ui-focus:#1d4ed8;--ui-link:#1d4ed8;--ui-chart:#2563eb;--ui-danger-bg:#fdecea;--ui-success-bg:#e8f5ee;--ui-warning-bg:#fdf3e7;--ui-info-bg:#eff4ff}
:root[data-theme=dark]{color-scheme:dark;--ui-yellow:#2563eb;--ui-page:#0f1623;--ui-surface:#172131;--ui-text:#e8edf5;--ui-muted:#a3b0c2;--ui-line:#2a3648;--ui-selected:#1c2b47;--ui-skeleton:#243145;--ui-shadow:none;--ui-danger:#ffaaa3;--ui-success:#8fdeab;--ui-warning:#ffbd80;--ui-focus:#93c5fd;--ui-link:#93c5fd;--ui-chart:#60a5fa;--ui-danger-bg:#3a1c1f;--ui-success-bg:#12301f;--ui-warning-bg:#33240f;--ui-info-bg:#1c2b47}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--ui-danger:#ffaaa3;--ui-success:#8fdeab;--ui-warning:#ffbd80;--ui-focus:#93c5fd;--ui-link:#93c5fd;--ui-chart:#60a5fa;--ui-danger-bg:#3a1c1f;--ui-success-bg:#12301f;--ui-warning-bg:#33240f;--ui-info-bg:#1c2b47}}
.site-shell{--white:var(--ui-surface);--paper:var(--ui-page);--black:var(--ui-text);--muted:var(--ui-muted);--line:var(--ui-line);--yellow:var(--ui-info-bg);--orange:var(--ui-yellow);--orange-pressed:var(--ui-accent-hover);--error:var(--ui-danger);max-width:none;padding:0}
.site-shell :focus-visible{outline-color:var(--ui-focus)}.site-main{padding:12px;overflow-wrap:anywhere}.site-main>h1{margin-bottom:12px}.site-main>p{margin:8px 0}.site-main section:not(.ui-state):not([data-nav-group]){min-width:0}.site-main input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.site-main select,.theme-control select{min-height:44px;font:inherit;font-size:16px;background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-muted);border-radius:8px;padding:8px;max-width:100%}.site-main input[type=checkbox],.site-main input[type=radio]{accent-color:var(--ui-yellow);font-size:16px}.site-main label{max-width:100%;color:var(--ui-text)}
.console-navigation{display:block;gap:0}.console-navigation section{margin:0;border:0;border-radius:0;padding:0}.site-shell .console-navigation h2{font-size:12px;display:flex;align-items:center;gap:8px;min-height:28px;color:var(--ui-muted);padding:0 12px;margin:0}.console-navigation h2>span:first-child{width:24px;text-align:center;font-size:16px}.site-sidebar nav a,.nav-dialog nav a,.nav-unavailable{min-height:44px;display:flex;align-items:center;gap:8px;padding:0 8px;margin:0;border-radius:8px;font-size:13px}.nav-unavailable{color:var(--ui-muted);cursor:default}.nav-unavailable small{margin-left:auto;font-size:10px;white-space:nowrap}.nav-icon{flex-shrink:0}.nav-label{min-width:0}.sidebar-collapsed .site-sidebar h2{padding:0 4px}.sidebar-collapsed .site-sidebar .nav-unavailable{padding:0 8px}.sidebar-collapsed .site-sidebar .nav-icon{font-size:18px}.nojs-navigation{display:none}
.top-tools{display:flex;align-items:center;gap:8px}.top-status{display:inline-flex;align-items:center;gap:4px;font-size:12px;white-space:nowrap;min-height:44px}.count-badge{font-variant-numeric:tabular-nums;padding:2px 6px;border-radius:4px;background:var(--ui-selected);color:var(--ui-text)}.site-shell .search-toggle{font-size:24px;padding:0}.theme-control{margin:0;display:flex;align-items:center}.theme-control select{width:100px;font-weight:400;min-width:44px}.console-search{margin:0}.console-search input{min-height:44px;max-width:176px;width:176px;border:1px solid var(--ui-line);border-radius:8px;padding:8px;background:var(--ui-surface);color:var(--ui-text);font-size:16px}.tenant-name{max-width:160px}.account-menu summary{padding:0 8px}.account-menu .popover{max-width:calc(100vw - 16px)}.account-menu .popover button{width:100%}.tenant-view-banner{position:sticky;top:48px;z-index:4;margin-top:48px;background:var(--ui-yellow);color:var(--ui-on-accent);padding:8px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px}.tenant-view-banner a{display:inline-flex;min-height:44px;align-items:center;font-weight:700}.tenant-view-banner~.site-main{margin-top:0}
.auth-shell{min-height:100dvh}.auth-brand{max-width:480px;margin:0 auto;padding:32px 16px 16px;display:flex;gap:8px;align-items:center;font-weight:700}.auth-shell .site-main{max-width:480px;margin:0 auto;padding:16px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:8px}.auth-shell .site-main form{display:grid;gap:12px}.auth-shell .site-main input:not([type=hidden]){width:100%}.auth-shell .site-main label{display:block;margin:0}.auth-shell .site-main a{display:inline-flex;align-items:center;min-height:44px;min-width:44px}.auth-shell .site-main p{margin:8px 0}
.site-shell .admin-topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--ui-line);padding:8px 0}.site-shell .sessions-nav{display:flex;flex-wrap:wrap;gap:8px}.site-shell .sessions-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 8px}.site-shell .sessions-list{display:grid;gap:8px}.site-shell .sessions-card{border:1px solid var(--ui-line);background:var(--ui-surface);padding:16px;border-radius:8px}.site-shell .sessions-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.site-shell .sessions-details dd{margin:4px 0;overflow-wrap:anywhere}.site-shell .password-panel{max-width:none}.site-shell .password-form{display:grid;gap:8px}.site-shell .password-error{color:var(--ui-danger)}.site-shell .password-error-summary{border:2px solid var(--ui-danger);padding:12px;border-radius:8px}.site-shell .password-error-summary a{display:inline-flex;min-height:44px;align-items:center}.site-shell .session-notice{position:fixed;z-index:30;right:16px;bottom:16px;width:min(384px,calc(100% - 32px));padding:16px;border:1px solid var(--ui-warning);border-radius:8px;background:var(--ui-surface);box-shadow:0 8px 24px #0002}.site-shell .session-notice p{margin:8px 0}.site-shell .session-notice a{display:inline-flex;align-items:center;min-height:44px}
.site-shell .product-card{padding:12px;gap:12px;border-radius:8px}.site-shell .product-list{gap:8px}.site-shell .editor-grid{gap:16px}.site-shell .fields,.site-shell .image-editor{padding:16px;border-radius:8px}.site-shell .product-card .secondary{padding:0 12px}.site-shell .field-error{color:var(--ui-danger)}.site-shell .brand{display:none}.site-shell .page-heading{margin-bottom:8px;gap:8px}.site-shell .page-heading h1{margin:0}.site-shell .report-filters{margin-bottom:4px}
@media(min-width:768px){.site-shell .console-navigation h2{min-height:24px}.site-main .sessions-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:768px) and (max-width:1279px){.top-status{display:none}.console-search input{width:132px}}
@media(max-width:767px){.site-main{padding:8px 8px 80px;margin-left:0}.site-top{gap:4px}.tenant-name{max-width:80px;font-size:12px}.top-tools{gap:4px}.top-status,.search-toggle,.console-search{display:none!important}.theme-control select{width:68px;padding:4px}.site-shell .account-menu summary{font-size:12px;padding:0 4px}.site-shell .bottom-nav{height:64px;padding-bottom:env(safe-area-inset-bottom);gap:0}.bottom-nav>a,.bottom-nav>button,.bottom-unavailable{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-width:44px;min-height:44px;font-size:12px}.bottom-unavailable{color:var(--ui-muted)}.bottom-nav [aria-current=page]{color:var(--ui-text);background:var(--ui-selected);border-top:3px solid var(--ui-yellow)}.site-shell:not(.has-ui) .bottom-nav button{display:none}.site-shell:not(.has-ui) .nojs-navigation{display:block;margin:0 8px 80px;background:var(--ui-surface);padding:8px;border:1px solid var(--ui-line);border-radius:8px}.site-shell:not(.has-ui) .nojs-navigation summary{display:flex}.auth-shell .site-main{margin:0 8px;max-width:none;padding:16px}.auth-brand{padding:16px}.site-shell .sessions-details{grid-template-columns:minmax(0,1fr)}.site-shell .session-notice{bottom:80px}.site-shell .product-card{grid-template-columns:64px minmax(0,1fr);padding:8px;gap:8px}.site-shell .product-card .secondary{grid-column:2}.site-shell .product-image,.site-shell .image-placeholder{min-height:64px}.site-shell .tenant-view-banner{font-size:12px;padding:4px 8px}.site-shell .confirm-dialog{width:calc(100% - 16px);margin:auto 8px 8px;padding:16px}.breadcrumbs{max-width:calc(100% - 188px)}.site-shell .report-tabs{overflow-x:auto;max-width:100%}}
@media(prefers-reduced-motion:reduce){.site-sidebar{transition:none}.skeleton{animation:none}}

@media(max-width:767px){.top-status[data-status=unhandled_alarm]{display:inline-flex!important;min-width:44px;justify-content:center;gap:2px}.top-status .status-label{display:none}.top-status .count-badge{padding:1px 3px;font-size:11px}}

@media(max-width:767px){.theme-control select{font-size:16px;width:88px}}
.site-shell .notice{background:var(--ui-selected);border:1px solid var(--ui-line);border-radius:8px;padding:8px 12px}.site-shell .sessions-current{display:inline-flex;gap:4px;padding:2px 6px;border:1px solid var(--ui-success);border-radius:4px;color:var(--ui-success);font-size:12px}.site-shell .sessions-confirm-actions{display:flex;gap:8px;flex-wrap:wrap}.site-shell .history-pagination{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.site-shell .history-pagination a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:0 8px}.site-shell code{overflow-wrap:anywhere}.mobile-account-status{display:none!important}@media(max-width:767px){.mobile-account-status{display:flex!important;min-height:44px;align-items:center;padding:0 8px}}
.site-shell .status-badge.vend-success>span{color:var(--ui-success)}.site-shell .status-badge.pending>span{color:var(--ui-warning)}
.copy-error{padding:12px 16px;margin:0 0 12px!important;background:var(--ui-selected);border:1px solid var(--ui-warning);border-radius:var(--ui-radius)}
.site-shell #reinstall-dialog[open] .reinstall-actions{position:sticky;bottom:0;z-index:1;background:var(--white)}
.console-navigation h2>span:first-child{display:none}.site-shell .console-navigation h2{padding:0 8px;margin-top:8px;font-weight:600}.console-navigation section:first-child h2{margin-top:0}.sidebar-collapsed .site-sidebar h2{min-height:1px;margin:8px 4px;border-top:1px solid var(--ui-line)}
.site-shell .metric-card{position:relative}.site-shell .metric-card>a::after{content:"";position:absolute;inset:0;border-radius:8px}.site-shell .metric-card>a:focus-visible{outline-offset:4px}@media(hover:hover){.site-shell .metric-card:has(>a):hover{border-color:var(--ui-link)}}
.nav-hint{display:block;font-size:12px;line-height:16px;color:var(--ui-muted,#64748b);font-weight:400;white-space:normal}
/* JC 10/26: the 語言 select sits in the top bar beside 外觀 (auth pages: at the right of the brand); a phone keeps it, narrower. */
.lang-control{margin:0;display:flex;align-items:center;gap:4px}.lang-control label{margin:0;display:flex}.lang-control select{min-height:44px;width:112px;font:inherit;font-size:16px;font-weight:400;background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-muted);border-radius:8px;padding:8px}.auth-brand .lang-control{margin-left:auto}
@media(max-width:767px){.lang-control select{width:108px;padding:4px}}
.theme-control{display:inline-flex;align-items:center;gap:4px}.theme-control>.icon{width:20px;height:20px;color:var(--ui-muted);flex:none}
