/* 全站唯一样式表 · 小斗科技管理系统
   1 主题变量 -> 2 全局重置 -> 3 模块页 -> 4 主壳 -> 5 模块专属覆盖
   命名空间：主壳 <body class="shell-root">；模块页 <body class="module-root" data-module="模块key">。
   两组样式各带作用域前缀，合在一份文件里也不会互相串色；换主题只改第 1 区变量。 */

/* ---- 1. 主题变量（换主题只改这里） ---- */
:root{
  
  --bg:#f4f6f9; --surface:#ffffff; --surface-2:#f8fafc; --card:var(--surface);
  --ink:#1f2937; --ink-2:#374151; --muted:#6b7280; --line:#e4e9f0;
  
  --blue:#185fa5; --blue-soft:#e8f2fc;
  --teal:#0f6e56; --teal-soft:#e4f5ee;
  --amber:#a1670b; --amber-soft:#fdf3dd;
  --red:#b42318; --red-soft:#fdeceb;
  
  --side:#1b2431; --side-ink:#cbd5e1; --side-dim:#8794a7;
  
  --radius:10px; --shell-radius:12px;
  /* 语义衍生色：把规则里残留的硬编码色收进变量，保证深色模式完整（dark 区给对应值） */
  --nav-ink:#41506a;
  --btn-hover-bg:#fafbfd; --btn-hover-bd:#b9c6d8;
  --blue-strong:#12508e;
  --th-ink:#4b5b70; --row-hover:#fafcff;
  --tag-gray-bg:#f1f3f6; --tag-gray-ink:#5f6b7c;
  --ok-bg:#f2fbf6; --ok-bd:#a7d9c1;
  --track:#e9eef5;
  --notice-bd:#cfe3f7; --notice-ink:#0c447c;
  --notice-amber-bd:#f0dcae; --notice-amber-ink:#7a4d08;
  --warn-card-bg:#fffdf7; --err-card-bg:#fffafa;
  --stat-bg:#f7f9fc; --stat-bd:#edf1f6; --stat-ink:#26364b;
  --focus-ring:rgba(24,95,165,.12);
  --tip-bg:#fbfcfe; --tip-bd:#cfd9e6; --code-bg:#eef2f7;
  --pk-recent-bg:#fffbe6;
}


:root[data-theme="dark"]{
  --bg:#111827; --surface:#1f2937; --surface-2:#273449; --card:var(--surface);
  --ink:#e5eaf1; --ink-2:#cbd5e1; --muted:#94a3b8; --line:#374151;
  --blue:#7bb8f5; --blue-soft:#1e3a5f;
  --teal:#8fe3c0; --teal-soft:#154634;
  --amber:#f0c674; --amber-soft:#4a3a15;
  --red:#e06a5c; --red-soft:#4a1f1c;
  --side:#0d1420; --side-ink:#cbd5e1; --side-dim:#8794a7;
  --nav-ink:#aab7c8;
  --btn-hover-bg:#273449; --btn-hover-bd:#3a4659;
  --blue-strong:#9ecbf8;
  --th-ink:#9fb0c3; --row-hover:#283546;
  --tag-gray-bg:#2a3547; --tag-gray-ink:#9aa7b8;
  --ok-bg:#16352a; --ok-bd:#2f6b50;
  --track:#2a3547;
  --notice-bd:#2f567f; --notice-ink:#bcd8f5;
  --notice-amber-bd:#6b531f; --notice-amber-ink:#f0c674;
  --warn-card-bg:#2e2710; --err-card-bg:#2e1815;
  --stat-bg:#273449; --stat-bd:#33415a; --stat-ink:#e5eaf1;
  --focus-ring:rgba(123,184,245,.22);
  --tip-bg:#1a2433; --tip-bd:#33415a; --code-bg:#2a3547;
  --pk-recent-bg:rgba(255,213,79,0.10);
}

/* ---- 2. 全局重置（主壳与模块页共用） ---- */
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--bg);color:var(--ink);font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
.hidden{display:none !important}

/* ---- 3. 模块页（水电 / 停车共用基线） ---- */




.module-root .shell{display:flex;min-height:100%}
.module-root .main{flex:1;min-width:0}
.module-root .topbar{background:var(--surface);border-bottom:1px solid var(--line);padding:16px 26px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.module-root .topbar h1{margin:0;font-size:19px;font-weight:600}
.module-root .topbar p{margin:3px 0 0;color:var(--muted);font-size:12.5px}
.module-root .top-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.module-root .content{padding:22px 26px 60px}
.module-root .card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin-bottom:16px}
.module-root .card h2{margin:0 0 12px;font-size:15px;font-weight:600}
.shell-root #wbStorage{max-width:480px}
.shell-root #wbStorage .wb-storage-top{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.shell-root #wbStorage .stat .n{white-space:nowrap;font-size:21px}
.shell-root #wbStorage h2{display:flex;align-items:center;justify-content:space-between}
.shell-root #wbStorage h2 .btn{padding:4px 12px;font-size:12px}
.module-root .card h3{margin:0 0 10px;font-size:14px;font-weight:600}
.module-root .row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
/* 工具栏里「标签在上、控件在下」的字段与按钮/下拉混排时统一贴底，
   否则矮按钮会被垂直居中，浮到输入框上方，几个方框高低不齐 */
.module-root .row:has(> label.field){align-items:flex-end}
.module-root .grow{flex:1}
.module-root .muted{color:var(--muted)}
.module-root .small{font-size:12px}
.module-root .btn{border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:7px 13px;font-size:13px;white-space:nowrap}
.module-root .btn:hover{border-color:var(--btn-hover-bd);background:var(--btn-hover-bg)}
.module-root .btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.module-root .btn.primary:hover{background:var(--blue-strong)}
.module-root .btn.teal{background:var(--teal);border-color:var(--teal);color:#fff}
.module-root .btn.ghost{background:transparent}
.module-root .btn.danger{color:var(--red);border-color:#f0c9c5}
.module-root .btn.warn{color:var(--amber);border-color:#e9d09a}
.module-root .btn:disabled{opacity:.45;cursor:not-allowed}
.module-root input[type=text], .module-root input[type=number], .module-root input[type=date], .module-root input[type=month], .module-root select, .module-root textarea{border:1px solid var(--line);border-radius:7px;padding:7px 9px;background:var(--surface);outline:none}
/* 常规单行控件统一高度 34px；表格内联编辑框、分页框、文本域等紧凑/特殊控件排除在外 */
.module-root input[type=text]:not(.cell-input):not(.picker-input):not(.reading-input):not(.meter-label-input):not(.memo-input):not(.pPrice):not(.pNote):not(.v-note):not(.sc-pginput),
.module-root input[type=number]:not(.cell-input):not(.picker-input):not(.reading-input):not(.sc-pginput),
.module-root input[type=date]:not(.cell-input):not(.picker-input):not(.pDate):not(.mo-date),
.module-root input[type=month]:not(.cell-input),
.module-root select:not(.cell-select):not(.v-tag):not(.pUtil){height:34px;line-height:1;box-sizing:border-box}
.module-root input:focus, .module-root select:focus, .module-root textarea:focus{border-color:var(--blue);box-shadow:0 0 0 2px var(--focus-ring)}
.module-root label.field{display:flex;flex-direction:column;gap:5px;font-size:12.5px;color:var(--muted)}
.module-root label.field input, .module-root label.field select{color:var(--ink);width:100%}
/* 数字输入框去掉右侧上下增减按钮，保持纯数字录入 */
.module-root input[type=number]{-moz-appearance:textfield}
.module-root input[type=number]::-webkit-outer-spin-button, .module-root input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* 通用浮窗 popover（全站公用，自写无依赖）
   用法：触发按钮加 data-pop="浮窗id"；浮窗 <div class="ui-pop" id="同id" hidden>；
   浮窗内关闭按钮加 data-pop-close。开合 / 互斥 / 点外部关闭 / ESC 关闭由 common.js 统一处理。
   浮窗默认显示在触发按钮上方，需要下方改 .ui-pop.below。样式画廊不参与。 */
.ui-pop-anchor{position:relative}
.ui-pop{position:absolute;bottom:calc(100% + 6px);left:0;z-index:30;min-width:280px;
  background:var(--surface);border:1px solid var(--line);border-radius:8px;
  box-shadow:0 8px 24px rgba(0,0,0,.16);padding:14px}
.ui-pop.below{bottom:auto;top:calc(100% + 6px)}
.ui-pop[hidden]{display:none}
.ui-pop-title{font-size:13px;font-weight:600;margin-bottom:12px}

.module-root .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:16px}
.module-root .stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px}
.module-root .stat .n{font-size:24px;font-weight:600;line-height:1.2}
.module-root .stat .l{color:var(--muted);font-size:12px;margin-top:4px}
.module-root .stat.warn .n{color:var(--amber)}
.module-root .stat.teal .n{color:var(--teal)}
.module-root .tbl-wrap{overflow:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.module-root table{width:100%;border-collapse:collapse;font-size:13px}
.module-root th, .module-root td{padding:8px 10px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:middle}
.module-root th{background:var(--surface-2);color:var(--th-ink);font-weight:600;position:sticky;top:0;z-index:1;font-size:12.5px}
.module-root tbody tr:hover{background:var(--row-hover)}
.module-root #rBody tr[data-mid]:not(.row-settled){cursor:pointer}
.module-root #rBody tr[data-mid]:has(.rChk:checked){background:var(--blue-soft)}
.module-root tbody tr:last-child td{border-bottom:0}
.module-root tr.row-warn{background:var(--amber-soft)}
.module-root tr.row-bad{background:var(--red-soft)}
.module-root .tag{display:inline-block;padding:1px 7px;border-radius:20px;font-size:11.5px;line-height:1.7;border:1px solid transparent}
.module-root .tag.blue{background:var(--blue-soft);color:var(--blue)}
.module-root .tag.teal{background:var(--teal-soft);color:var(--teal)}
.module-root .tag.amber{background:var(--amber-soft);color:var(--amber)}
.module-root .tag.red{background:var(--red-soft);color:var(--red)}
.module-root .tag.gray{background:var(--tag-gray-bg);color:var(--tag-gray-ink)}
.module-root .tag.new-in{background:#e8f8ef;color:#0f9d58;border:1px solid #b7e4c7;font-weight:600;letter-spacing:.3px;font-size:10px;padding:0 5px;line-height:1.5;margin-left:4px}
:root[data-theme="dark"] .module-root .tag.new-in{background:rgba(15,157,88,.20);color:#74e0a6;border-color:rgba(15,157,88,.45);font-size:10px;padding:0 5px;line-height:1.5;margin-left:4px}
.module-root .reading-input{width:110px;text-align:right;padding:5px 8px;font-variant-numeric:tabular-nums}
.module-root .reading-input.invalid{border-color:var(--red);background:var(--red-soft)}
.module-root .reading-input.filled{background:var(--ok-bg);border-color:var(--ok-bd)}
.module-root .hint{font-size:11.5px;color:var(--muted)}
.module-root .hint.bad{color:var(--red)}
.module-root .bill-group{margin:0 0 22px}
.module-root .bill-month{display:flex;align-items:baseline;gap:12px;margin:0 0 10px;padding:0 0 8px;border-bottom:2px solid var(--line)}
.module-root .bill-month h3{margin:0;font-size:15px;font-weight:600}
/* 账单：每行一张整幅卡片，按钮横排一行，文本按需在下方整幅展开 */
.module-root .bill-grid{display:grid;grid-template-columns:1fr;gap:10px}
.module-root .bill{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:13px 16px}
.module-root .bill-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.module-root .bill-id{flex:1 1 220px;min-width:0}
.module-root .bill-name{font-weight:600;font-size:14px}
.module-root .bill-meta{color:var(--muted);font-size:13px;margin-top:3px}
.module-root .bill-figure{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 170px;min-width:170px}
.module-root .bill-amt{font-size:19px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.module-root .bill .acts{display:flex;gap:8px;flex:0 0 auto;flex-wrap:nowrap;margin:0}
.module-root .btn.bill-view{color:var(--blue);border-color:var(--notice-bd)}
.module-root .btn.bill-view:hover{background:var(--blue-soft);border-color:var(--blue);color:var(--blue)}
/* 账单全文浮层：点「查看文本」才展开，文内可复制 */
.module-root .bill-tip{position:fixed;z-index:60;width:min(260px,calc(100vw - 16px));max-height:60vh;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 12px 32px rgba(20,30,45,.18);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s}
.module-root .bill-tip.show{opacity:1;visibility:visible;pointer-events:auto}
.module-root .bill-tip-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;row-gap:2px;padding:8px 12px;border-bottom:1px solid var(--line);border-radius:var(--radius) var(--radius) 0 0;background:var(--surface-2);font-size:12px;color:var(--muted)}
.module-root .bill-tip-bar b{color:var(--ink);font-weight:600}
.module-root .bill-tip-acts{display:flex;gap:6px;flex:0 0 auto}
.module-root .bill-tip-copy:disabled{opacity:.5;cursor:not-allowed}
.module-root pre.bill-tip-text{margin:0;padding:12px;font:12.5px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;white-space:pre-wrap;word-break:break-all;overflow:auto;flex:1;min-height:0}
.module-root .empty{padding:34px;text-align:center;color:var(--muted);background:var(--surface);border:1px dashed var(--line);border-radius:var(--radius)}
.module-root .empty.error{color:var(--red)}
.module-root .loading{padding:40px;text-align:center;color:var(--muted)}
.module-root details{margin-top:10px}
.module-root summary{cursor:pointer;color:var(--blue);font-size:13px}
.module-root .modal{position:fixed;inset:0;background:rgba(20,30,45,.40);display:flex;align-items:center;justify-content:center;z-index:50;padding:20px}
.module-root .modal.hidden{display:none}
.module-root .modal-card{background:var(--surface);border-radius:12px;width:min(560px,100%);max-height:88vh;overflow:auto;overscroll-behavior:contain;padding:20px}
/* 修改密码等简单表单：宽度约为常规（560px）的一半 */
.module-root .modal-card.narrow{width:min(300px,100%)}
.module-root .modal-card h2{margin:0 0 14px;font-size:16px}
.module-root .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
/* 添加新表：左标签、右控件，单列纵向扫读，弹窗宽度可收窄 */
.module-root .form-rows{display:grid;gap:12px}
.module-root .form-row{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:12px}
.module-root .form-row>label{font-size:12.5px;color:var(--muted);text-align:right;white-space:nowrap}
.module-root .form-row>input, .module-root .form-row>select{width:100%;color:var(--ink)}
.module-root .form-rows+.notice{margin-top:14px;margin-bottom:0}
.module-root .usr-fields{display:flex;flex-direction:column;gap:12px;margin-bottom:4px}
.module-root .usr-fields label.field{width:auto}
.module-root .usr-fields label.field input, .module-root .usr-fields label.field select{width:260px;max-width:100%}
.module-root .form-grid .full{grid-column:1/-1}
/* 统一确认弹窗正文：替代浏览器原生 confirm()，支持换行与主题变量 */
.module-root .confirm-text{margin:0;color:var(--ink-2);line-height:1.75;white-space:normal;word-break:break-word}
.module-root .modal-acts{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
/* 本地测试库提示（common.js 4.3 节）：独立遮罩，不占用 #modal，
   避免把正在编辑的业务弹窗顶掉；主壳与模块页共用，故不带作用域前缀。 */
.local-gate{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(20,30,45,.42)}
.local-gate[hidden]{display:none}
.local-card{width:min(430px,100%);max-height:86vh;overflow:auto;background:var(--surface);color:var(--ink);
  border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 50px rgba(15,23,42,.28);
  padding:22px 22px 18px}
.local-card h2{margin:0 0 12px;font-size:17px;font-weight:600;line-height:1.4}
.local-card p{margin:0 0 16px;color:var(--ink-2);font-size:13px;line-height:1.75;word-break:break-word}
.local-card p b{color:var(--ink);font-weight:600}
.local-check{display:flex;align-items:center;gap:9px;padding:11px 13px;border-radius:8px;
  background:var(--amber-soft);border:1px solid var(--notice-amber-bd);color:var(--notice-amber-ink);
  font-size:13px;cursor:pointer;user-select:none;margin-bottom:16px}
.local-check input{width:15px;height:15px;margin:0;accent-color:var(--blue);cursor:pointer;flex:none}
.local-acts{display:flex;justify-content:flex-end;gap:8px}
.local-card .btn{border:1px solid var(--line);background:var(--surface);border-radius:7px;
  padding:8px 14px;font-size:13px;white-space:nowrap}
.local-card .btn:hover{border-color:var(--btn-hover-bd);background:var(--btn-hover-bg)}
.local-card .btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.local-card .btn.primary:hover{background:var(--blue-strong)}
/* 主壳侧栏常驻标识：本地环境才注入，点击可再次查看说明；侧栏折叠时隐藏。 */
.shell-root .env-note{display:flex;align-items:center;gap:5px;margin:0 18px 10px;padding:5px 9px;
  border-radius:6px;background:rgba(245,158,11,.14);border:1px solid rgba(245,158,11,.32);
  color:#fbbf24;font-size:11.5px;line-height:1.5;cursor:pointer;user-select:none;white-space:nowrap}
.shell-root .env-note:hover{background:rgba(245,158,11,.26)}
.shell-root .env-note b{font-weight:600}
.shell-root .sidebar.collapsed .env-note{display:none}
@media (max-width:760px){.local-acts .btn{flex:1 1 0;justify-content:center}}
.module-root .months{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin-top:6px}
.module-root .months label{display:flex;align-items:center;gap:4px;font-size:12px;background:var(--surface-2);border:1px solid var(--line);border-radius:6px;padding:4px 6px;cursor:pointer}
.module-root .toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%) translateY(20px);background:#20304a;color:var(--surface);padding:10px 18px;border-radius:8px;opacity:0;pointer-events:none;transition:.2s;z-index:80;font-size:13px}
.module-root .toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.module-root .toast.bad{background:var(--red)}
.module-root .notice{background:var(--blue-soft);border:1px solid var(--notice-bd);color:var(--notice-ink);border-radius:8px;padding:10px 13px;font-size:12.5px;margin-bottom:14px}
.module-root .notice.amber{background:var(--amber-soft);border-color:var(--notice-amber-bd);color:var(--notice-amber-ink)}
.module-root .legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:8px 0}
.module-root .legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px;vertical-align:-1px}
.module-root .divider{height:1px;background:var(--line);margin:14px 0}
.module-root .link{color:var(--blue);text-decoration:none;cursor:pointer}
.module-root .modal-card.wide{width:min(940px,100%)}
.module-root .modal-card.pkw{width:min(760px,100%)}
.module-root .modal-card.pk-manual-modal{width:min(420px,100%)}
body[data-module="parking"] .pk-manual-form .form-row>input,
body[data-module="parking"] .pk-manual-form .form-row>select,
body[data-module="parking"] .pk-manual-form .form-row>div>input{width:100%}
/* 设备新增/编辑弹窗：输入框与下拉框固定宽度，不撑满整行 */
body[data-module="parking"] .modal-card.dev-modal .form-row>input,
body[data-module="parking"] .modal-card.dev-modal .form-row>select,
body[data-module="parking"] .modal-card.dev-modal .form-row>div>input,
body[data-module="parking"] .modal-card.dev-modal .form-row>div>select{width:180px;max-width:100%}
/* 相机新增/编辑弹窗：宽度按标题与输入框内容自适应，不固定 560px */
body[data-module="parking"] .modal-card.dev-add-modal,
body[data-module="parking"] .modal-card.dev-edit-modal{width:max-content;min-width:360px;max-width:min(560px,100%)}
.module-root .empty.slim{padding:16px;font-size:12.5px}
.module-root .req{color:var(--red)}
.module-root .picker-input{width:100%;min-width:110px;padding:5px 7px;border:1px solid var(--line);border-radius:6px;font-size:12.5px}
.module-root .picker-input.short{width:90px;text-align:right;font-variant-numeric:tabular-nums}
.module-root .progress-note{margin-top:14px}
.module-root .progress-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12.5px;margin-bottom:7px}
.module-root .progress{height:8px;border-radius:20px;background:var(--track);overflow:hidden}
.module-root .progress i{display:block;height:100%;background:var(--teal);border-radius:20px;transition:width .25s}
.module-root .big{font-size:19px;font-weight:600;margin-top:2px}
.module-root .teal-ink{color:var(--teal)}
.module-root .amber-ink{color:var(--amber)}
.module-root .todo-list{list-style:none;margin:0;padding:0}
.module-root .todo-list li{padding:7px 0;border-bottom:1px dashed var(--line);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.module-root .todo-list li:last-child{border-bottom:0}
.module-root .todo-title{font-size:13px}
.module-root .row-done td{opacity:.5;text-decoration:line-through}
.module-root .todo-list li.row-done{opacity:.5}
.module-root .todo-list li.row-done .memo-title{text-decoration:line-through}
.module-root .memo-add{display:flex;gap:8px;margin-top:12px}
.module-root .memo-input{flex:1;padding:8px 10px;font-size:13px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink)}
.module-root .memo-input:focus{outline:none;border-color:var(--blue)}
.module-root .memo-check{display:inline-flex;align-items:center}
.module-root .memo-title{flex:0 1 auto;font-size:13px;font-weight:500}
.module-root .memo-content{margin-left:2px}
.module-root .todo-list li .btn.slim{padding:3px 9px;font-size:12px;margin-left:auto}
/* 工作台电房电表：两行三相数值 + 一个大表格（数值容器不加背景色） */
.module-root .meter-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.module-root .meter-head-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.module-root .meter-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.module-root .meter-toggle.on{color:var(--teal);border-color:var(--teal)}
.module-root .meter-toggle.off{color:var(--muted);border-color:var(--line)}
.module-root .meter-title{font-size:14px;font-weight:600;color:var(--ink)}
.module-root .meter-countdown{position:relative;width:36px;height:36px;display:inline-block;flex:none}
.module-root .meter-countdown svg{width:36px;height:36px;display:block;transform:rotate(-90deg)}
.module-root .meter-countdown circle{fill:none;stroke-width:3}
.module-root .meter-countdown .ring-bg{stroke:var(--line)}
.module-root .meter-countdown .ring-fg{stroke:var(--blue);stroke-linecap:round;transition:stroke-dashoffset .9s linear}
.module-root .meter-countdown .ring-num{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;color:var(--ink-2);font-variant-numeric:tabular-nums}
.module-root .meter-phase-wrap{display:flex;gap:12px;margin-bottom:12px}
.module-root .meter-phase-box{flex:1;min-width:0;border:1px solid var(--line);border-radius:12px;padding:12px}
.module-root .meter-phase-box-title{font-size:12px;font-weight:600;color:var(--ink-2);margin-bottom:10px;cursor:pointer}
.module-root .meter-phase-box-title:hover{color:var(--teal)}
.module-root .meter-phase-row{display:flex;flex-direction:column;gap:8px}
.module-root .meter-phase{min-width:0;text-align:center;padding:10px 6px}
.module-root .meter-phase-val{display:inline-block;position:relative;font-size:26px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.2;white-space:nowrap}
.module-root .meter-phase-unit{font-size:12px;color:var(--muted);font-weight:400;margin-left:3px}
.module-root .meter-delta{position:absolute;left:100%;top:50%;transform:translateY(-50%);font-size:12px;font-weight:600;margin-left:6px;white-space:nowrap}
.module-root .meter-delta.up{color:#e5484d}
.module-root .meter-delta.down{color:#17a673}
.module-root .meter-phase-label{font-size:11.5px;color:var(--muted);margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.module-root .meter-label-edit{cursor:text}
.module-root .meter-label-edit:hover{color:var(--ink-2)}
.module-root .meter-label-input{width:100%;font-size:11.5px;color:var(--ink);text-align:center;border:1px solid var(--blue);border-radius:4px;padding:2px 4px;background:var(--bg)}
.module-root .meter-label-input:focus{outline:none}
.module-root .meter-cell-unit{font-size:10.5px;color:var(--muted);font-weight:400;margin-left:3px}
.module-root .meter-tbl-cat{font-weight:600;color:var(--ink-2);width:130px}
.module-root .meter-tbl-trend{cursor:pointer}
.module-root .meter-tbl-trend:hover{color:var(--teal)}
.module-root .meter-tbl-val{font-variant-numeric:tabular-nums}
.module-root .trend-modal{user-select:none;-webkit-user-select:none}
.module-root .trend-modal svg text{pointer-events:none}
.module-root .trend-scroll{position:relative;height:14px;background:var(--surface-2);border:1px solid var(--line);border-radius:7px;margin:10px 0 4px;cursor:pointer;overflow:hidden}
.module-root .trend-scroll-thumb{position:absolute;top:0;bottom:0;background:var(--blue-soft);border:1px solid var(--blue);border-radius:6px;min-width:14px;cursor:grab}
.module-root .trend-scroll-thumb:active{cursor:grabbing}
@media(max-width:600px){.module-root .meter-phase-wrap{flex-direction:column}}
.module-root .row-settled{background:var(--ok-bg)}
.module-root .cell-input{padding:5px 7px;font-size:12.5px;border:1px solid var(--line);border-radius:6px}
.module-root .cell-input.short{width:110px;text-align:right;font-variant-numeric:tabular-nums}
.module-root .cell-input.filled{background:var(--ok-bg);border-color:var(--ok-bd)}
.module-root .cell-input.invalid{border-color:var(--red);background:var(--red-soft)}
.module-root .cell-input:disabled{background:var(--bg);color:var(--muted)}
@media(max-width:900px){.module-root .content{padding:16px}.module-root .topbar{padding:14px 16px}}

/* 近半年用量趋势弹窗与异常标记 */
.module-root .trend-flag{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:var(--red-soft);color:var(--red);font-size:11px;font-weight:700;vertical-align:1px;cursor:help}
.module-root .trend-tabs{gap:6px;margin-bottom:8px}
.module-root .trend-chart{border:1px solid var(--line);border-radius:8px;padding:8px 12px 4px;background:var(--surface)}
.module-root .trend-chart svg{display:block}
.module-root #trendTable td, .module-root #trendTable th{white-space:nowrap}

/* 水电表历史抄表记录弹窗 */
.module-root .mh-info{display:flex;flex-direction:column;gap:8px;padding:10px 13px;margin:12px 0 14px;background:var(--surface-2);border:1px solid var(--line);border-radius:8px}
.module-root .mh-info .mh-row{display:flex;flex-wrap:wrap;gap:8px 22px}
.module-root .mh-info .mh-row div{font-size:12.5px;color:var(--muted)}
.module-root .mh-info b{color:var(--ink);font-weight:600;margin-left:3px}
.module-root .mh-gap{color:var(--amber);font-weight:600}
.module-root .mh-add{padding:12px 13px;margin-top:14px;background:var(--surface-2);border:1px solid var(--line);border-radius:8px}
.module-root .mh-add .field{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
.module-root .mh-add input[type=date]{width:150px}
.module-root .mh-add input[type=number]{width:110px}
.module-root .mh-add input[type=text]{width:150px}
.module-root .mh-del{padding:3px 9px;font-size:12px}
/* 列表内联：结算方式下拉 */
.module-root .cell-select.mode-sel{width:auto;min-width:96px;padding:4px 6px;font-size:12.5px;height:30px}

/* 抄表页：常驻结算结果卡片（不自动消失，可复制、可关闭） */
.module-root .settle-result{border-left:4px solid var(--blue)}
.module-root .settle-result.tone-ok{border-left-color:var(--teal)}
.module-root .settle-result.tone-issue{border-left-color:var(--amber);background:var(--warn-card-bg)}
.module-root .settle-result.tone-error{border-left-color:var(--red);background:var(--err-card-bg)}
.module-root .settle-head{margin-bottom:10px}
.module-root .settle-head strong{font-size:14px;margin-right:2px}
.module-root .settle-list{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:6px;max-height:280px;overflow:auto}
.module-root .settle-list li{display:flex;gap:9px;align-items:baseline;font-size:12.5px;line-height:1.6;padding:6px 9px;background:var(--surface-2);border:1px solid var(--line);border-radius:6px}
.module-root .settle-list li .idx{flex:0 0 auto;color:var(--muted);font-variant-numeric:tabular-nums;min-width:16px}
.module-root .settle-list li .who{flex:0 0 auto;font-weight:600;white-space:nowrap}
.module-root .settle-list li .why{color:var(--notice-amber-ink);word-break:break-word;user-select:text}
.module-root .tone-error .settle-list li .why{color:var(--red)}
.module-root .tone-ok .settle-list li .why{color:var(--teal)}

/* 操作日志页与详情弹窗 */
.module-root .log-filters .field input[type=date]{min-width:140px}
.module-root .log-filters .log-ui{display:flex;align-items:center;gap:5px;padding-bottom:9px;white-space:nowrap}
.module-root .log-row{cursor:pointer}
.module-root .log-row:hover{background:var(--blue-soft)}
.module-root .log-summary{max-width:420px;word-break:break-word}
.module-root .audit-json{margin:8px 0 0;padding:10px;background:var(--surface-2);border:1px solid var(--line);border-radius:7px;font:12px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;white-space:pre-wrap;word-break:break-all;max-height:260px;overflow:auto;user-select:text}
.module-root .audit-diff{width:100%;border-collapse:collapse;font-size:12.5px}
.module-root .audit-diff th, .module-root .audit-diff td{border-bottom:1px solid var(--line);padding:6px 9px;text-align:left;vertical-align:top;word-break:break-all}
.module-root .audit-diff th{color:var(--muted);font-weight:500;background:var(--surface-2)}
.module-root .audit-diff .old{color:var(--red);text-decoration:line-through}
.module-root .audit-diff .new{color:var(--teal)}
/* 单进程主壳嵌入模式：模块页只作为内容区，导航由主壳统一提供（不再有模块侧栏） */
html.embed .main{width:100%}
html.embed .shell{min-height:100vh}


/* ---- 4. 主壳（工作台 + 左侧折叠菜单） ---- */




.shell-root .app{display:flex;height:100vh;overflow:hidden}

/* ---------------- 左侧：工作台 + 可折叠模块菜单 ---------------- */
.shell-root .sidebar{width:200px;flex:0 0 200px;background:var(--side);color:var(--side-ink);display:flex;flex-direction:column;min-height:0;transition:width .2s ease,flex-basis .2s ease}
/* 侧栏折叠：收成 48px 窄条，只留绿点与模块徽标图标；文字/状态/用户/时间隐藏 */
.shell-root .sidebar.collapsed{width:48px;flex-basis:48px}
.shell-root .sidebar.collapsed .brand-text,
.shell-root .sidebar.collapsed .nav-label,
.shell-root .sidebar.collapsed .group-name,
.shell-root .sidebar.collapsed .caret,
.shell-root .sidebar.collapsed .group-items,
.shell-root .sidebar.collapsed .nav-home span:not(.nav-ico),
.shell-root .sidebar.collapsed .side-status,
.shell-root .sidebar.collapsed .side-user,
.shell-root .sidebar.collapsed .side-foot{display:none}
.shell-root .sidebar.collapsed .brand{padding:20px 15px 18px;justify-content:center}
.shell-root .sidebar.collapsed .nav-home{justify-content:center;padding:10px 0}
.shell-root .sidebar.collapsed .nav{padding:14px 6px 20px}
.shell-root .sidebar.collapsed .group-head{justify-content:center;padding:9px 0}
.shell-root .sidebar.collapsed .group-badge{width:30px;flex:0 0 30px;padding:3px 0;text-align:center;overflow:hidden}
.shell-root .nav-collapse{margin-left:auto;flex:0 0 auto;width:22px;height:22px;padding:0;border:0;border-radius:6px;background:rgba(255,255,255,.08);color:var(--side-dim);font-size:15px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.shell-root .nav-collapse:hover{background:rgba(255,255,255,.16);color:var(--side-ink)}
.shell-root .sidebar.collapsed .nav-collapse{margin-left:0}
.shell-root .sidebar.collapsed .brand-dot{display:none}
.shell-root .sidebar.collapsed .brand-logo{width:32px;height:32px}
.shell-root .brand-logo{width:32px;height:32px;flex:0 0 auto;border-radius:8px}
.shell-root .brand{display:flex;align-items:center;gap:11px;padding:20px 18px 18px;border-bottom:1px solid rgba(255,255,255,.08)}
.shell-root .brand-dot{width:10px;height:10px;border-radius:50%;background:#3fbf8f;flex:0 0 auto;box-shadow:0 0 0 4px rgba(63,191,143,.14)}
.shell-root .brand strong{display:block;color:var(--side-ink);font-size:14.5px;font-weight:600;letter-spacing:.2px}
.shell-root .brand small{display:block;color:var(--side-dim);font-size:11.5px;margin-top:2px}
.shell-root .nav{flex:1;min-height:0;overflow-y:auto;padding:14px 10px 20px}
.shell-root .nav::-webkit-scrollbar{width:6px}
.shell-root .nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:3px}
.shell-root .nav-home, .shell-root .group-head, .shell-root .group-items button{width:100%;border:0;background:transparent;color:var(--side-ink);text-align:left;border-radius:8px}
.shell-root .nav-home{display:flex;align-items:center;gap:10px;padding:10px 12px;font-size:13.5px;margin-bottom:6px}
.shell-root .nav-home:hover, .shell-root .group-head:hover{background:rgba(255,255,255,.07)}
.shell-root .nav-home.active{background:rgba(63,191,143,.16);color:#8ff0c6;font-weight:600}
.shell-root .nav-ico{width:18px;height:18px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;color:inherit}
.shell-root .nav-ico svg{width:18px;height:18px;display:block}
.shell-root .nav-label{padding:12px 12px 6px;color:var(--side-dim);font-size:11px;letter-spacing:1px}
.shell-root .group{margin-bottom:4px}
.shell-root .group-head{display:flex;align-items:center;gap:9px;padding:9px 10px;font-size:13.5px;font-weight:500}
.shell-root .group-head .caret{margin-left:auto;color:var(--side-dim);font-size:15px;line-height:1;transition:transform .18s}
.shell-root .group.open .group-head .caret{transform:rotate(90deg)}
.shell-root .group-badge{flex:0 0 auto;font-size:10.5px;padding:2px 7px;border-radius:5px;background:rgba(255,255,255,.1);color:#dbe6f3}
.shell-root .group[data-accent="blue"] .group-badge{background:rgba(90,165,240,.18);color:#9dc9f7}
.shell-root .group[data-accent="teal"] .group-badge{background:rgba(63,191,143,.16);color:#8fe3c0}
.shell-root .group-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shell-root .group-items{max-height:0;overflow:hidden;transition:max-height .2s ease}
.shell-root .group.open .group-items{max-height:600px}
.shell-root .group-items button{display:block;padding:7px 12px 7px 42px;font-size:12.8px;color:#aab7c8;position:relative}
.shell-root .group-items button:before{content:"";position:absolute;left:25px;top:50%;width:5px;height:5px;margin-top:-2.5px;border-radius:50%;background:rgba(255,255,255,.2)}
.shell-root .group-items button:hover{background:rgba(255,255,255,.06);color:var(--side-ink)}
.shell-root .group-items button.active{background:rgba(90,165,240,.16);color:#b6dcff;font-weight:600}
.shell-root .group-items button.active:before{background:#7bb8f5}
.shell-root .side-foot{padding:13px 18px;border-top:1px solid rgba(255,255,255,.08);color:var(--side-dim);font-size:11.5px;line-height:1.7}
.shell-root .side-date{font-size:12.5px;color:var(--side-ink)}
.shell-root .side-time{font-size:15px;font-weight:600;color:#8ff0c6;font-variant-numeric:tabular-nums;letter-spacing:.5px;margin-top:2px}

/* ---------------- 右侧：工作台 / 模块内容 ---------------- */
.shell-root .stage{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--bg)}
.shell-root .workbench{flex:1;min-height:0;overflow-y:auto;padding:28px 32px 48px}
.shell-root .frame{flex:1;min-height:0;width:100%;border:0;background:var(--surface)}
.shell-root .wb-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap;margin-bottom:18px}
.shell-root .wb-head h1{margin:0;font-size:24px;font-weight:600;letter-spacing:.3px}
.shell-root .wb-head p{margin:5px 0 0;color:var(--muted);font-size:13px}
.shell-root .wb-pills{display:flex;gap:8px;flex-wrap:wrap;padding-top:4px}
/* 全站统一列表页：卡片内的筛选工具栏（带下边线）与表格下方的分页条。
   无作用域前缀，主壳 .shell-root 与各模块 .module-root 均可直接使用。 */
.list-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--line)}
/* 抄表页：筛选与状态各占一行，状态行合并统计/提示/勾选，避免多余换行 */
.module-root .sheet-filters{padding-bottom:8px;margin-bottom:0;border-bottom:0;gap:8px}
/* 用户名可能很长，固定下拉宽度，避免把后面的筛选项挤到下一行 */
.module-root .sheet-filters #rTenant{width:140px;max-width:140px}
.module-root .sheet-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid var(--line)}
.module-root .sheet-status .progress-note{margin-top:0}
.module-root .sheet-status .progress-head{margin-bottom:0;font-size:12.5px}
/* 停车系统日志：筛选行与表格之间不要分隔线（与命令/报文卡片一致） */
:is(body[data-module="parking"],body[data-module="utility"],body[data-module="iot"]) .log-filters.list-toolbar,
#syslog .log-filters.list-toolbar{border-bottom:0;padding-bottom:0}
.list-pager{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}
.month-chips{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.month-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--muted);font-family:inherit;font-size:12.5px;line-height:1.2;cursor:pointer;white-space:nowrap}
.month-chip:hover{border-color:var(--teal);color:var(--teal)}
.month-chip.active{background:var(--teal-soft);border-color:var(--teal);color:var(--teal);font-weight:600}
.month-chip .n{font-weight:600}
.month-more{max-width:150px}
/* 抄表账期：◀ 年月下拉 ▶ 三段式切换（箭头用实心三角，保证看得清） */
.month-pick{min-width:112px;max-width:150px}
.module-root .month-nav{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:34px;height:30px;padding:0;font-size:11px;line-height:1;color:var(--ink-2)}
.module-root .month-nav:not(:disabled):hover{border-color:var(--teal);color:var(--teal)}
.shell-root .pill{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:5px 12px;font-size:12px;color:var(--muted)}
.shell-root .pill.ok{color:var(--teal);border-color:var(--ok-bd);background:var(--ok-bg)}
.shell-root .sys-strip{display:flex;gap:0;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);border-radius:var(--shell-radius);padding:14px 18px;margin-bottom:20px}
.shell-root .sys-item{padding:0 20px;border-right:1px solid var(--line);min-width:150px}
.shell-root .sys-item:first-child{padding-left:0}
.shell-root .sys-item:last-child{border-right:0}
.shell-root .sys-item small{display:block;color:var(--muted);font-size:11.5px;margin-bottom:3px}
.shell-root .sys-item strong{font-size:13.5px;font-weight:600}
.shell-root .section-title{font-size:14px;font-weight:600;margin:22px 0 12px;color:var(--ink-2)}
.shell-root .mod-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:18px;align-items:start}
.shell-root .mod-card{background:var(--card);border:1px solid var(--line);border-radius:var(--shell-radius);padding:20px;position:relative;overflow:hidden}
.shell-root .mod-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--blue)}
.shell-root .mod-card[data-accent="teal"]:before{background:var(--teal)}
.shell-root .mod-head{display:flex;align-items:flex-start;gap:11px}
.shell-root .mod-badge{flex:0 0 auto;font-size:11px;padding:3px 9px;border-radius:6px;background:var(--blue-soft);color:var(--blue);font-weight:600}
.shell-root .mod-card[data-accent="teal"] .mod-badge{background:var(--teal-soft);color:var(--teal)}
.shell-root .mod-title{flex:1;min-width:0}
.shell-root .mod-title h2{margin:0;font-size:16px;font-weight:600}
.shell-root .mod-title p{margin:3px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.shell-root .dot{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:#c9d2de;margin-top:6px}
.shell-root .dot.ok{background:#35b77f;box-shadow:0 0 0 3px rgba(53,183,127,.14)}
.shell-root .dot.bad{background:#e06a5c;box-shadow:0 0 0 3px rgba(224,106,92,.14)}
.shell-root .stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:18px 0 14px}
.shell-root .stat{background:var(--stat-bg);border:1px solid var(--stat-bd);border-radius:8px;padding:10px 6px;text-align:center;min-width:0}
.shell-root .stat-label{display:block;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shell-root .stat-val{display:block;margin-top:4px;font-size:17px;font-weight:600;color:var(--stat-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shell-root .stat.warn .stat-val{color:var(--red)}
.shell-root .mod-foot{display:flex;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);padding:11px 0 14px;font-size:12px;color:var(--muted)}
.shell-root .mod-foot b{color:var(--ink-2);font-weight:600}
.shell-root .mod-actions{display:flex;gap:8px;flex-wrap:wrap}
.shell-root .btn{border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:7px 13px;font-size:12.5px;color:var(--ink-2)}
.shell-root .btn:hover{border-color:var(--btn-hover-bd);background:var(--btn-hover-bg)}
.shell-root .btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.shell-root .btn.primary:hover{background:var(--blue-strong)}
.shell-root .mod-card[data-accent="teal"] .btn.primary{background:var(--teal);border-color:var(--teal)}
.shell-root .wb-tip{margin-top:22px;background:var(--tip-bg);border:1px dashed var(--tip-bd);border-radius:10px;padding:13px 16px;color:var(--muted);font-size:12px;line-height:1.8}
.shell-root .wb-tip code{background:var(--code-bg);border-radius:4px;padding:1px 5px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink-2)}
.shell-root .loading{color:var(--muted);font-size:13px;padding:8px 0}
.shell-root .err{color:var(--red)}
@media(max-width:900px){
  .shell-root .sidebar{width:196px;flex-basis:196px}
  .shell-root .workbench{padding:20px}
  .shell-root .mod-grid{grid-template-columns:1fr}
  .shell-root .sys-item{min-width:120px;padding:0 12px}
}


/* ---- 5. 停车模块专属覆盖 ---- */
/* 顶部标题行：h1 与实时状态灯同行，副标题另起一行 */
body[data-module="parking"] .topbar>div{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px}
body[data-module="parking"] .topbar>div>p{flex:0 0 100%}
body[data-module="parking"] .plate{font-weight:600;letter-spacing:.6px}
body[data-module="parking"] .plate-input{text-transform:uppercase;font-weight:600;letter-spacing:.6px}
body[data-module="parking"] .vnote{max-width:260px;white-space:normal;word-break:break-word}
body[data-module="parking"] .form-row>div.small{padding:4px 0}

/* 停车工作台：出入口设备状态条（当前为占位，接入后 st-online / st-offline 生效） */
body[data-module="parking"] .pk-devices{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:14px}
body[data-module="parking"] .pk-dev{display:flex;align-items:center;gap:9px;padding:9px 14px;background:var(--card);border:1px solid var(--line);border-radius:9px;font-size:12.5px}
body[data-module="parking"] .pk-dev b{font-weight:600;color:var(--ink)}
body[data-module="parking"] .pk-dev-code{font-size:11px;color:var(--muted);padding:1px 6px;border-radius:4px;background:var(--surface-2);border:1px solid var(--line)}
body[data-module="parking"] .pk-dot{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:var(--muted);box-shadow:0 0 0 3px var(--surface-2)}
body[data-module="parking"] .pk-dev.st-online .pk-dot{background:var(--teal);box-shadow:0 0 0 3px var(--teal-soft)}
body[data-module="parking"] .pk-dev.st-offline .pk-dot{background:var(--red);box-shadow:0 0 0 3px var(--red-soft)}
body[data-module="parking"] .pk-dev-ip{font-size:11.5px;color:var(--muted)}
body[data-module="parking"] .pk-dev-st{padding:1px 8px;border-radius:20px;background:var(--surface-2);border:1px solid var(--line);color:var(--muted);font-size:11.5px}
body[data-module="parking"] .pk-dev.st-online .pk-dev-st{color:var(--teal);border-color:var(--ok-bd);background:var(--ok-bg)}
body[data-module="parking"] .pk-dev.st-offline .pk-dev-st{color:var(--red);border-color:var(--red);background:var(--red-soft)}
/* 设备设置页：每张卡片独占一行，统一铺满容器宽度 */
body[data-module="parking"] .pk-fit{width:100%}
body[data-module="parking"] .pk-dev-hint{font-size:11.5px;color:var(--muted)}
/* MQTT 设置卡片：连接过程时间线（最新在上，可滚动看历史） */
body[data-module="parking"] .mq-trace,body[data-module="iot"] .mq-trace{width:max-content;max-width:100%;margin-top:10px;max-height:150px;overflow:auto;padding:4px 10px;
  border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}
body[data-module="parking"] .mq-ev,body[data-module="iot"] .mq-ev{display:flex;align-items:baseline;gap:8px;padding:4px 0;
  font-size:12px;line-height:1.7;word-break:break-all}
body[data-module="parking"] .mq-ev + .mq-ev,body[data-module="iot"] .mq-ev + .mq-ev{border-top:1px dashed var(--line)}
body[data-module="parking"] .mq-dot,body[data-module="iot"] .mq-dot{flex:0 0 auto;width:7px;height:7px;border-radius:50%;
  background:var(--muted);align-self:center}
body[data-module="parking"] .mq-ev.lv-ok .mq-dot,body[data-module="iot"] .mq-ev.lv-ok .mq-dot{background:var(--teal)}
body[data-module="parking"] .mq-ev.lv-err .mq-dot,body[data-module="iot"] .mq-ev.lv-err .mq-dot{background:var(--red)}
body[data-module="parking"] .mq-ev b,body[data-module="iot"] .mq-ev b{flex:0 0 auto;font-weight:600;color:var(--ink)}
body[data-module="parking"] .mq-ev.lv-ok b,body[data-module="iot"] .mq-ev.lv-ok b{color:var(--teal)}
body[data-module="parking"] .mq-ev.lv-err b,body[data-module="iot"] .mq-ev.lv-err b{color:var(--red)}
body[data-module="parking"] .mq-ts,body[data-module="iot"] .mq-ts{flex:0 0 auto;color:var(--muted);font-variant-numeric:tabular-nums}
body[data-module="parking"] .mq-detail,body[data-module="iot"] .mq-detail{flex:1 1 auto;min-width:0;color:var(--muted)}
/* 主壳「设备与连接」里的统一 MQTT 卡片（作用域 shell-root） */
body.shell-root .mq-meta-line{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
body.shell-root .mq-trace{width:100%;margin-top:10px;max-height:150px;overflow:auto;padding:4px 10px;
  border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}
body.shell-root .mq-ev{display:flex;align-items:baseline;gap:8px;padding:4px 0;
  font-size:12px;line-height:1.7;word-break:break-all}
body.shell-root .mq-ev + .mq-ev{border-top:1px dashed var(--line)}
body.shell-root .mq-dot{flex:0 0 auto;width:7px;height:7px;border-radius:50%;
  background:var(--muted);align-self:center}
body.shell-root .mq-ev.lv-ok .mq-dot{background:var(--teal)}
body.shell-root .mq-ev.lv-err .mq-dot{background:var(--red)}
body.shell-root .mq-ev b{flex:0 0 auto;font-weight:600;color:var(--ink)}
body.shell-root .mq-ev.lv-ok b{color:var(--teal)}
body.shell-root .mq-ev.lv-err b{color:var(--red)}
body.shell-root .mq-ts{flex:0 0 auto;color:var(--muted);font-variant-numeric:tabular-nums}
body.shell-root .mq-detail{flex:1 1 auto;min-width:0;color:var(--muted)}

/* 工作台两栏：左在场车辆 / 右过车记录 */
body[data-module="parking"] .pk-grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:stretch}
body[data-module="parking"] .pk-grid2 > .pk-card{min-width:0;display:flex;flex-direction:column}
body[data-module="parking"] .pk-grid2 > .pk-card > #pkOnsite,
body[data-module="parking"] .pk-grid2 > .pk-card > #pkRecent{flex:1;min-height:0}
body[data-module="parking"] .pk-grid2 > .pk-card > #pkOnPager,
body[data-module="parking"] .pk-grid2 > .pk-card > #recPager{margin-top:auto;padding-top:10px;flex:0 0 auto}
@media(max-width:1180px){body[data-module="parking"] .pk-grid2{grid-template-columns:1fr}}
body[data-module="parking"] .pk-card{margin-bottom:14px}
/* 卡片头（标题 + 统计 + 右侧筛选/搜索/主按钮）：模块通用，水电与停车共用 */
.module-root .pk-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.module-root .pk-head h2{margin:0;font-size:15px}
body[data-module="parking"] .pk-head.pk-head-rec{flex-wrap:nowrap}
body[data-module="parking"] .pk-head.pk-head-rec .pk-mini{max-width:150px;min-width:0}
body[data-module="parking"] .pk-head.pk-head-rec label.pk-inline input{width:118px}
body[data-module="parking"] .pk-card-btns{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:2px 0 4px}
body[data-module="parking"] .pk-owner{margin-left:6px;font-size:12px;color:var(--muted)}
body[data-module="parking"] .pk-note{max-width:240px;white-space:normal;word-break:break-word;color:var(--ink-2)}
/* 日志卡片查询结果行：空态也占一行，避免查询前后卡片高度跳动 */
body[data-module="parking"] .log-ops-count{margin-top:8px;min-height:16px}

/* 抓拍图缩略图：统一 72×34 固定框，拉伸填满（不留白），空占位同宽 */
body[data-module="parking"] .pk-thumb{width:72px;height:34px;box-sizing:border-box;border-radius:5px;border:1px solid var(--line);background:var(--surface-2)}
body[data-module="parking"] img.pk-thumb{display:inline-block;object-fit:fill;vertical-align:middle}
body[data-module="parking"] .pk-thumb-empty{display:inline-flex;align-items:center;justify-content:center;font-size:11px;color:var(--muted);border-style:dashed;cursor:help}

/* 进出记录筛选条 / 车辆管理筛选 */
body[data-module="parking"] .pk-filters{gap:10px;align-items:flex-end}
body[data-module="parking"] .pk-date{width:138px}
/* 卡片头里的小尺寸筛选控件：模块通用（水电表 / 用户 / 停车共用） */
.module-root .pk-mini{min-width:0;max-width:190px}
/* 车辆列表「备注」列：直接输入，失焦 / 回车即保存 */
body[data-module="parking"] .v-note{width:160px;max-width:160px;padding:5px 8px;font-size:12px}
/* 车牌弹窗「备注快捷标签」：一行小标签按钮，点一下追加入备注 */
body[data-module="parking"] .pk-quick-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
body[data-module="parking"] .pk-quick-tag{background:var(--surface-2);border-color:var(--line);color:var(--ink-2)}
body[data-module="parking"] .pk-quick-tag:hover{border-color:var(--blue);color:var(--blue)}
body[data-module="parking"] .pk-quick-manage{margin-left:2px;color:var(--muted)}
body[data-module="parking"] .qt-input{width:100%;max-width:260px}
body[data-module="parking"] .form-row>input#ovCreated{width:auto;min-width:0;justify-self:start}
/* 搜索框清除叉：输入框右侧 ×，空值时自动隐藏（全站统一标准，任何模块可用） */
.pk-search{position:relative;display:inline-flex;align-items:center}
.pk-search > input{padding-right:20px}
.pk-clear{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:16px;height:16px;line-height:14px;text-align:center;border-radius:50%;color:var(--muted);cursor:pointer;font-size:15px;user-select:none}
.pk-clear:hover{color:var(--ink);background:var(--surface-2)}
.pk-search > input:placeholder-shown + .pk-clear{display:none}
body[data-module="parking"] .pk-check{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--ink-2)}
/* 全站统一分页条（箭头 + 多页码），主壳、停车、水电、审计共用 */
.pk-pg{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.pk-pg-btn{display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;padding:0;border:1px solid var(--line);
  border-radius:7px;background:var(--surface);color:var(--muted);font-size:16px;line-height:1;cursor:pointer}
.pk-pg-btn:hover:not(:disabled){border-color:var(--btn-hover-bd);color:var(--ink)}
.pk-pg-btn:disabled{opacity:.45;cursor:not-allowed}
.pk-pg-num{min-width:28px;height:28px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink-2);
  font-size:13px;font-variant-numeric:tabular-nums;cursor:pointer}
.pk-pg-num:hover{border-color:var(--btn-hover-bd);color:var(--ink)}
.pk-pg-gap{min-width:14px;text-align:center;color:var(--muted);font-size:13px}
.pk-pg-cur{min-width:28px;height:28px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--blue);border-radius:7px;color:var(--blue);background:var(--blue-soft);
  font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}

/* 设备状态：四态（在线 / 离线 / 故障 / 未知），离线与故障整块告警 */
body[data-module="parking"] .pk-dev.st-fault .pk-dot{background:var(--amber);box-shadow:0 0 0 3px var(--amber-soft)}
body[data-module="parking"] .pk-dev.st-fault .pk-dev-st{color:var(--amber);border-color:var(--amber);background:var(--amber-soft)}
body[data-module="parking"] .pk-dev.st-unknown .pk-dot{background:var(--muted)}
body[data-module="parking"] .pk-dev-alert{border-color:var(--red);background:var(--red-soft)}
body[data-module="parking"] .pk-dev-alert b{color:var(--red)}
body[data-module="parking"] .pk-dev.st-fault.pk-dev-alert{border-color:var(--amber);background:var(--amber-soft)}
body[data-module="parking"] .pk-dev.st-fault.pk-dev-alert b{color:var(--amber)}
body[data-module="parking"] .pk-dev-lane{font-size:11.5px;color:var(--muted)}
body[data-module="parking"] .pk-dev-hb{font-size:11px;color:var(--muted);border-left:1px solid var(--line);padding-left:9px}

/* 表格补充：结果副行、行内按钮组、未处理异常高亮 */
body[data-module="parking"] .pk-sub{font-size:11px;color:var(--muted);margin-top:2px;line-height:1.4;white-space:normal}
/* 行内容垂直居中：行内加了按钮、缩略图后行高被撑大，文字若顶对齐会显得悬空 */
body[data-module="parking"] .pk-tbl td{vertical-align:middle}
body[data-module="parking"] .pk-col-center{text-align:center}
body[data-module="parking"] .pk-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body[data-module="parking"] .pk-acts,body[data-module="iot"] .pk-acts{display:flex;gap:6px;flex-wrap:nowrap}
body[data-module="parking"] tr.row-open td:first-child{box-shadow:inset 3px 0 0 var(--amber)}
/* 在场车辆 / 过车记录：临时车行首列竖线，样式同异常记录，颜色用中灰 */
body[data-module="parking"] tr.row-temp td:first-child{box-shadow:inset 3px 0 0 var(--side-dim)}
body[data-module="parking"] .pk-tbl tr.pk-recent td{background:var(--pk-recent-bg)}
/* 拦截等异常过车记录淡红底色：需覆盖上面「最近 1 小时」的 td 高亮 */
body[data-module="parking"] .pk-tbl tr.row-bad td{background:var(--red-soft)}
/* 卡片头里的日期筛选不能撑成整个原生控件宽度 */
body[data-module="parking"] .pk-head label.field{width:132px;min-width:0}
body[data-module="parking"] .pk-head label.field input{width:100%}
/* 命令与回执 / 上行报文卡片：筛选行标签在上、控件在下，按钮与输入框底部对齐 */
body[data-module="parking"] #cmdLogCard .pk-head,
body[data-module="parking"] #msgLogCard .pk-head{align-items:flex-end}
body[data-module="parking"] .pk-head label.pk-inline{flex-direction:row;align-items:center;gap:6px;width:auto}
body[data-module="parking"] .pk-head label.pk-inline input{width:126px}
/* 设置页：同一组内标签列等宽，输入框左边缘对齐 */
body[data-module="parking"] .pk-set-group .form-row{grid-template-columns:150px minmax(0,1fr);align-items:start}
body[data-module="parking"] .pk-set-group .form-row>label{padding-top:8px}
/* 勾选框行较矮：取消标签顶部内边距，使标签与勾选框、说明文字同一高度 */
body[data-module="parking"] .pk-set-group .form-row:has(input[type=checkbox])>label{padding-top:0}

/* 黑名单 / 限制车 双 Tab */
body[data-module="parking"] .pk-tabs{display:inline-flex;border:1px solid var(--line);border-radius:7px;overflow:hidden}
body[data-module="parking"] .pk-tabs button{border:0;background:var(--surface);color:var(--muted);font-size:12.5px;padding:6px 14px;cursor:pointer}
body[data-module="parking"] .pk-tabs button.active{background:var(--blue-soft);color:var(--blue);font-weight:600}

/* 表单：有效期起止、数字输入 */
body[data-module="parking"] .pk-range{align-items:center;gap:8px;flex-wrap:nowrap}
body[data-module="parking"] .pk-range input{width:150px}
body[data-module="parking"] .pk-num{width:140px}

/* 设置分组 */
body[data-module="parking"] .pk-set-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}
body[data-module="parking"] .pk-set-group{border-top:1px solid var(--line);padding:12px 0;margin-top:0}
body[data-module="parking"] #setPanes .sc-slide-hd + .pk-set-group{border-top:0;padding-top:0;margin-top:0}
body[data-module="parking"] .pk-set-group h3{margin:0 0 12px;font-size:13px;font-weight:600;color:var(--ink-2)}
body[data-module="parking"] .pk-set-group .form-row>div{flex:1;min-width:0}
body[data-module="parking"] .pk-set-group .form-row>div .small{margin-top:4px;line-height:1.6}
/* 设置项：说明跟在控件右侧同一行，宽度不足自动折行 */
body[data-module="parking"] .pk-set-group .form-row>div.set-field-body{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
body[data-module="parking"] .pk-set-group .form-row>div.set-field-body .small{margin-top:0;flex:1;min-width:200px;line-height:1.6}
/* 全宽文本框/下拉框：让出右侧空间给同行说明 */
body[data-module="parking"] .pk-set-group .form-row>div.set-field-body>input[style*="100%"],
body[data-module="parking"] .pk-set-group .form-row>div.set-field-body>select[style*="100%"]{width:auto!important;flex:1 1 240px;min-width:160px}
/* 无牌车入场方式：文本框宽度与数字框（140px）一致 */
body[data-module="parking"] #set_plateless_mode{width:140px!important;flex:0 0 140px;min-width:0}
/* 测试文字历史下拉 */
body[data-module="parking"] .led-quick-acts{flex:0 0 100%;display:flex;align-items:center;gap:12px}
body[data-module="parking"] .led-style-sel{width:104px;height:34px;padding:5px 7px;font-size:12px;box-sizing:border-box}
body[data-module="parking"] .led-text-wrap{position:relative;display:inline-flex;align-items:center;gap:4px}
body[data-module="parking"] .led-hist-toggle{padding:0 9px;line-height:32px}
body[data-module="parking"] .led-hist-menu{position:absolute;top:100%;left:0;z-index:30;min-width:300px;max-width:420px;
  max-height:260px;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:6px;
  box-shadow:0 6px 20px rgba(0,0,0,.12);padding:4px 0}
body[data-module="parking"] .led-hist-menu[hidden]{display:none}
body[data-module="parking"] .led-hist-empty{padding:10px 12px;color:var(--muted);font-size:12px}
body[data-module="parking"] .led-hist-item{display:flex;align-items:center;gap:8px;padding:6px 8px 6px 12px;cursor:pointer;font-size:12.5px}
body[data-module="parking"] .led-hist-item:hover{background:var(--blue-soft)}
body[data-module="parking"] .led-hist-item .txt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-module="parking"] .led-hist-item .del{flex:0 0 auto;border:0;background:transparent;color:var(--muted);
  font-size:16px;line-height:1;padding:0 4px;cursor:pointer}
body[data-module="parking"] .led-hist-item .del:hover{color:var(--red)}
/* 场景配置：双标签 + 场景卡片 */
body[data-module="parking"] .led-scene-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:10px}
@media(max-width:1200px){body[data-module="parking"] .led-scene-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){body[data-module="parking"] .led-scene-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
body[data-module="parking"] .led-scene-card{border:1px solid var(--line);border-radius:8px;padding:10px 12px;min-width:0;cursor:grab}
body[data-module="parking"] .led-scene-card.dragging{opacity:.4;cursor:grabbing;border-style:dashed}
/* 场景卡片配色：浅底 + 深字 + 彩色边框，参照车辆信息按钮（sc-tag-p）风格 */
body[data-module="parking"] .led-scene-card.led-bg-blue{background:var(--blue-soft);border-color:var(--blue)}
body[data-module="parking"] .led-scene-card.led-bg-teal{background:var(--teal-soft);border-color:var(--teal)}
body[data-module="parking"] .led-scene-card.led-bg-amber{background:var(--amber-soft);border-color:var(--amber)}
body[data-module="parking"] .led-scene-card.led-bg-blue .led-scene-card-hd b{color:var(--blue)}
body[data-module="parking"] .led-scene-card.led-bg-teal .led-scene-card-hd b{color:var(--teal)}
body[data-module="parking"] .led-scene-card.led-bg-amber .led-scene-card-hd b{color:var(--amber)}
body[data-module="parking"] .led-scene-card-hd{display:flex;align-items:center;gap:8px;margin-bottom:10px;flex-wrap:wrap}
body[data-module="parking"] .led-scene-card-hd b{font-size:13px;font-weight:600;color:var(--ink)}
body[data-module="parking"] .led-scene-card-bd{display:flex;flex-direction:column;gap:6px}
body[data-module="parking"] .led-scene-line{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;line-height:1.5}
body[data-module="parking"] .led-scene-line .k{flex:0 0 52px;color:var(--muted)}
body[data-module="parking"] .led-scene-line .v{flex:1;min-width:0;color:var(--ink);overflow-wrap:anywhere}
body[data-module="parking"] .led-cb{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:var(--ink)}
body[data-module="parking"] .led-cb input{width:auto;height:auto}
/* 数据保留组：描述文字放到输入框右侧同一行 */
body[data-module="parking"] .pk-hint-inline .form-row>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body[data-module="parking"] .pk-hint-inline .form-row>div .small{margin-top:0}
/* 屏显文字测试：输入框 + 测试按钮同一行；输入框定宽，避免过长 */
body[data-module="parking"] .pk-tpl-row{display:flex;gap:6px;align-items:center;min-width:0}
body[data-module="parking"] .pk-tpl-row>input{flex:0 1 300px;min-width:0;max-width:300px;color:var(--ink)}
body[data-module="parking"] #tplIn,body[data-module="parking"] #set_in_zone01_text,body[data-module="parking"] #voiceIn,body[data-module="parking"] #tplOut,body[data-module="parking"] #set_out_zone01_text,body[data-module="parking"] #voiceOut,body[data-module="parking"] #set_fee_out_display_text,body[data-module="parking"] #set_fee_out_voice_text{flex-basis:240px;max-width:240px}
/* 公共组的五个提示框与上面进出场框同宽 */
body[data-module="parking"] #tplBlocked,body[data-module="parking"] #tplLotFull,body[data-module="parking"] #tplNoPlate,body[data-module="parking"] #set_blacklist_text,body[data-module="parking"] #set_repeat_out_text{flex-basis:240px;max-width:240px}
body[data-module="parking"] .pk-tpl-row>.btn{flex:0 0 auto}
/* 场景弹窗：每行文字/播报内容后的「测试」按钮，紧凑不换行；输入框占满剩余宽度 */
body[data-module="parking"] .pk-tpl-row>.led-line-test{height:34px;padding:0 10px;font-size:12px;white-space:nowrap}
body[data-module="parking"] .modal-card .pk-tpl-row>input{flex:1 1 160px;max-width:none}
/* 场景弹窗每行前的勾选开关：紧凑、不占额外行高；未勾选时输入框淡显但仍可编辑保存 */
body[data-module="parking"] .led-line-on{flex:0 0 auto;gap:0;margin:0}
body[data-module="parking"] .led-line-on input{width:15px;height:15px;margin:0;cursor:pointer}
body[data-module="parking"] .led-line-row.off>input{opacity:.55}
/* 每行样式下拉：按「滚动/翻页」实际文字宽度显示，不占满 104px */
body[data-module="parking"] .led-line-row>select.led-style-sel{width:auto;min-width:0;flex:0 0 auto;padding:5px 22px 5px 8px}
/* 场景弹窗文本框：四行与播报内容统一收窄到 280px，五个框左端齐、右端齐 */
body[data-module="parking"] .led-scene-form .pk-tpl-row>input{flex:0 1 280px;max-width:280px}
/* 弹窗右侧留白：表单整体不贴边，视觉居中 */
body[data-module="parking"] .modal-card .form-rows.led-scene-form{padding-right:22px}
body[data-module="parking"] .modal-card.led-scene-modal{width:min(620px,100%)}

/* 抓拍图放大 */
body[data-module="parking"] .pk-thumb[data-full]{cursor:zoom-in}
body[data-module="parking"] .modal-card.pk-img-modal{width:min(1120px,100%)}
body[data-module="parking"] .pk-imgbox{background:var(--surface-2);border:1px dashed var(--line);border-radius:8px;padding:10px;text-align:center;margin:10px 0}
body[data-module="parking"] .pk-imgbox img{max-width:100%;max-height:80vh;border-radius:6px;cursor:zoom-out}

/* 在场车辆：车牌可点、详情弹窗上下分栏 */
body[data-module="parking"] .plate-link{cursor:pointer;color:var(--blue);font-weight:600}
body[data-module="parking"] .plate-link:hover{text-decoration:underline}
body[data-module="parking"] .pk-detail{display:flex;flex-direction:column;gap:12px;margin-top:4px}
body[data-module="parking"] .pk-detail section{border-top:1px solid var(--line);padding-top:10px}
body[data-module="parking"] .pk-detail section:first-child{border-top:0;padding-top:0}
body[data-module="parking"] .pk-detail-bottom .tbl-wrap{max-height:44vh;overflow:auto;overscroll-behavior:contain}

/* 主壳侧栏底部的主题切换控件（永远可见，含 iframe 模式） */

/* 全局设置页（主壳级，不进 iframe） */
.shell-root .settings{flex:1;min-height:0;overflow-y:auto;padding:28px 32px 48px}
.shell-root .set-card{background:var(--card);border:1px solid var(--line);border-radius:var(--shell-radius);padding:20px 22px;margin-bottom:18px;max-width:660px}
.shell-root .set-card.mq-card{max-width:800px}
.shell-root #gsetPanes [data-gset-pane="1"] .set-card{max-width:800px}
.shell-root .set-card h3{margin:0 0 16px;font-size:15px;font-weight:600;color:var(--ink-2)}
.shell-root .set-row{display:flex;align-items:center;justify-content:space-between;gap:20px}
.shell-root .set-row.col{flex-direction:column;align-items:stretch;gap:14px}
.shell-root .set-label{font-size:13.5px;font-weight:500;color:var(--ink-2)}
.shell-root .set-hint{color:var(--muted);font-size:12px;line-height:1.6;margin-top:6px}
.shell-root .set-field{display:flex;flex-direction:column;gap:5px}
.shell-root .set-field label{font-size:12.5px;color:var(--muted)}
.shell-root .set-input,.shell-root .set-select{background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:8px 11px;font-size:13px;color:var(--ink-2);height:34px;line-height:1;box-sizing:border-box}
.shell-root .set-field .set-input{width:100%}
.shell-root .set-input:focus,.shell-root .set-select:focus{outline:none;border-color:var(--blue)}
.shell-root .set-select{min-width:180px}
.shell-root .set-actions{display:flex;gap:10px;margin-top:2px}
/* 侧栏 Logo 选择 */
.shell-root .logo-picks{display:flex;gap:12px;flex-wrap:wrap}
.shell-root .logo-pick-wrap{position:relative}
.shell-root .logo-pick-del{position:absolute;top:4px;right:4px;width:18px;height:18px;line-height:16px;text-align:center;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--muted);font-size:14px;cursor:pointer;padding:0}
.shell-root .logo-pick-del:hover{border-color:var(--red);color:var(--red)}
.shell-root .logo-pick{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 16px;background:var(--surface);border:1px solid var(--line);border-radius:9px;cursor:pointer;color:var(--muted);font-size:12px;min-width:96px}
.shell-root .logo-pick:hover{border-color:var(--blue)}
.shell-root .logo-pick.on{border-color:var(--blue);color:var(--ink-2);background:var(--blue-soft,rgba(49,120,198,.08))}
.shell-root .logo-pick img{width:40px;height:40px;border-radius:9px}
.shell-root .logo-pick-dot{width:14px;height:14px;border-radius:50%;background:#3fbf8f;box-shadow:0 0 0 4px rgba(63,191,143,.14);margin:13px}
/* 工具页：串口参数与数据监测 */
.shell-root #tools .set-card{max-width:1000px}
/* 工具页顶部一行：左侧窄的串口参数卡，右侧遥控器数据（码库）卡 */
.shell-root #tools .tool-top{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap;margin-bottom:18px}
.shell-root #tools .tool-top .set-card{margin-bottom:0}
.shell-root #tools .ser-param-card{max-width:320px;flex:0 0 320px;padding:18px}
.shell-root #tools .rf-lib-card{flex:0 1 auto;min-width:0;max-width:100%}
/* 码库卡宽度跟着内容走：表格按内容宽度排版，不被拉满 */
.shell-root .rf-lib-card .tbl-wrap{width:fit-content;max-width:100%}
.shell-root .rf-lib-card table{width:auto}
/* 可排序表头 */
.shell-root .rf-sort{cursor:pointer;user-select:none;white-space:nowrap}
.shell-root .rf-sort:hover{color:var(--blue)}
.shell-root .rf-sort.on{color:var(--blue);font-weight:600}
.shell-root .ser-param-card .set-field{display:grid;grid-template-columns:84px 160px;align-items:center;gap:6px 10px}
.shell-root .ser-param-card .set-select,.shell-root .ser-param-card .set-input{min-width:0;width:100%}
.shell-root .ser-param-card .set-field label{white-space:nowrap}
.shell-root .ser-param-card .set-actions .btn:first-child{margin-right:auto}
.shell-root .ser-param-card .set-field .set-hint{grid-column:1 / -1;margin-top:0}
.shell-root .ser-grid{display:flex;flex-direction:column;gap:10px}
.shell-root .ser-grid .set-select,.shell-root .ser-grid .set-input{min-width:0;width:100%}
.shell-root #tools .tool-tab-card{background:transparent;border:0;padding:0;max-width:1000px}
.shell-root #tools .tool-tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin:0 0 14px}
.shell-root #tools .tool-tab{border:0;background:transparent;padding:8px 16px;font-size:13px;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}
.shell-root #tools .tool-tab:hover{color:var(--ink)}
.shell-root #tools .tool-tab.on{color:var(--blue);font-weight:600;border-bottom-color:var(--blue)}
.shell-root .ser-status{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--ink-2)}
.shell-root .ser-meta{font-size:12px;color:var(--muted);line-height:1.6;margin-top:6px;word-break:break-word}
.shell-root .ser-hex,.shell-root .ser-ascii{font-family:ui-monospace,Consolas,monospace;font-size:12px;word-break:break-all}
.shell-root .rf-chip{display:inline-block;margin:2px 4px 2px 0;padding:1px 7px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:12px;color:var(--ink-2);font-family:ui-monospace,Consolas,monospace}
/* 已列出但还没采集到码值的键位 */
.shell-root .rf-chip-pending{border-style:dashed;color:var(--muted);background:transparent}
/* 遥控器改名弹窗里的按键列表 */
.shell-root .rf-key-list{display:flex;flex-direction:column;gap:8px;max-height:260px;overflow:auto;margin:0 0 4px}
.shell-root .rf-key-row{display:flex;align-items:center;gap:10px}
.shell-root .rf-key-row .set-input{flex:1 1 auto;min-width:0;width:100%}
.shell-root .rf-key-code{flex:0 0 auto;font-family:ui-monospace,Consolas,monospace;font-size:12px;color:var(--muted);white-space:nowrap}
/* 发射弹窗：一按键一行，右侧发射按钮 */
.shell-root .rf-tx-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.shell-root .rf-tx-row{display:flex;align-items:center;gap:10px;padding:7px 12px;border-top:1px solid var(--line)}
.shell-root .rf-tx-row:first-child{border-top:0}
.shell-root .rf-tx-name{font-size:13px;font-weight:600;min-width:52px}
.shell-root .rf-tx-code{font-family:ui-monospace,Consolas,monospace;font-size:12px;color:var(--muted)}
.shell-root .rf-tx-msg{margin-top:10px;font-size:12.5px;color:var(--ink-2)}
.shell-root .rf-tx-empty{padding:14px 12px;font-size:13px;color:var(--muted)}
.shell-root .rf-quality{padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);font-size:13px;margin-bottom:10px}
/* 采集头：按钮与质量信息栏同处一个容器，按钮靠左 */
.shell-root .rf-panel{border:1px solid var(--line);border-radius:7px;background:var(--surface);padding:10px 12px;margin-bottom:10px}
.shell-root .rf-panel-actions{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.shell-root .rf-panel .rf-quality{border:0;background:transparent;padding:0;margin:0}
.shell-root .rf-quality .rf-q-top{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.shell-root .rf-q-score{font-size:15px;font-weight:700}
.shell-root .rf-q-notes{margin:6px 0 0;padding-left:18px;font-size:12px;color:var(--ink-2)}
.shell-root .rf-q-notes li{margin:2px 0}
.shell-root #rfBody tr.rf-bad td{color:var(--red)}
.shell-root .db-size-list{display:flex;flex-direction:column;gap:6px;margin:2px 0}
.shell-root .db-size-row{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12.5px;color:var(--ink-2);padding:5px 0;border-bottom:1px solid var(--line)}
.shell-root .db-size-row:last-child{border-bottom:none}
/* 账号安全：系统账号清单（含全部可登录账号） */
.shell-root .acct-list{list-style:none;margin:12px 0 16px;padding:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.shell-root .acct-row{display:flex;align-items:center;gap:8px;padding:10px 13px;background:var(--surface);border-bottom:1px solid var(--line);min-width:0}
.shell-root .acct-row:last-child{border-bottom:none}
.shell-root .acct-name{flex:0 0 auto;min-width:48px;font-size:13.5px;font-weight:600;color:var(--ink-2)}
.shell-root .acct-user{font-size:12.5px;color:var(--muted)}
.shell-root .acct-user-input{flex:0 0 130px;width:130px;min-width:0;box-sizing:border-box;height:34px;padding:5px 8px;font-size:13px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink)}
.shell-root .acct-pw,
.shell-root .acct-pw2{flex:1 1 120px;min-width:0;max-width:200px;box-sizing:border-box;height:34px;padding:5px 8px;font-size:13px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink)}
.shell-root .acct-user-input:focus,
.shell-root .acct-pw:focus,
.shell-root .acct-pw2:focus{outline:none;border-color:var(--blue)}
.shell-root .acct-row .acct-save{flex:0 0 auto;margin-left:8px}
/* 工作台两列布局：备忘占左半，右半预留给其他模块 */
.shell-root .wb-cols{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.shell-root .wb-col{flex:1 1 320px;min-width:0;max-width:50%}
.shell-root .btn.sm{font-size:12px;padding:4px 11px}
.shell-root .tag{display:inline-block;padding:1px 8px;border-radius:20px;font-size:11.5px;line-height:1.7;border:1px solid transparent;margin-left:4px}
.shell-root .tag.blue{background:var(--blue-soft);color:var(--blue)}
.shell-root .tag.teal{background:var(--teal-soft);color:var(--teal)}
.shell-root .tag.gray{background:var(--tag-gray-bg);color:var(--tag-gray-ink)}
.shell-root .tag.red{background:var(--red-soft);color:var(--red)}
.shell-root .toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%) translateY(20px);background:#20304a;color:#fff;padding:10px 18px;border-radius:8px;opacity:0;pointer-events:none;transition:.2s;z-index:80;font-size:13px}
.shell-root .toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.shell-root .toast.bad{background:var(--red)}

/* ---- 样式画廊（仅停车模块演示页，纯展示） ---- */
body[data-module="parking"] .sc-wrap{max-width:1080px}
body[data-module="parking"] .sc-card{width:100%}
body[data-module="parking"] .sc-note{background:var(--surface-2);border:1px solid var(--line);border-left:3px solid var(--blue);border-radius:8px;padding:11px 14px;font-size:13px;line-height:1.7;color:var(--ink-2);margin:6px 0 16px}
body[data-module="parking"] .sc-note-amber{border-left-color:var(--amber);margin:14px 0 0}
/* 画廊：左侧分类导航 + 右侧分页 */
body[data-module="parking"] .sc-gallery{display:flex;gap:20px;align-items:flex-start}
body[data-module="parking"] .sc-cats{flex:0 0 156px;display:flex;flex-direction:column;gap:6px;position:sticky;top:12px}
body[data-module="parking"] .sc-cat{display:flex;gap:9px;align-items:center;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px 11px;cursor:pointer;font-size:13px;color:var(--ink-2)}
body[data-module="parking"] .sc-cat b{width:20px;height:20px;flex:0 0 20px;border-radius:5px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--muted)}
body[data-module="parking"] .sc-cat:hover{border-color:var(--btn-hover-bd)}
body[data-module="parking"] .sc-cat.on{border-color:var(--blue);background:var(--blue-soft);color:var(--blue);font-weight:600}
body[data-module="parking"] .sc-cat.on b{background:var(--blue);color:#fff}
body[data-module="parking"] .sc-pages{flex:1;min-width:0}
body[data-module="parking"] .sc-page{display:none;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:18px 20px;min-height:320px}
body[data-module="parking"] .sc-page.on{display:block}
body[data-module="parking"] .sc-page-hd{margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--line)}
body[data-module="parking"] .sc-page-hd h2{margin:0;font-size:15px;color:var(--ink)}
body[data-module="parking"] .sc-page .sc-card{border:1px solid var(--line);box-shadow:none;margin-top:14px}
body[data-module="parking"] .sc-page .pk-head label.field{width:auto;min-width:0}
/* 统计卡片增强款（第 1 页） */
body[data-module="parking"] .sc-mini-stats{display:flex;gap:12px;flex-wrap:wrap}
body[data-module="parking"] .sc-mini-stat{flex:1 1 150px;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:12px 14px}
body[data-module="parking"] .sc-mini-stat .l{font-size:12.5px;color:var(--muted)}
body[data-module="parking"] .sc-mini-stat .n{font-size:24px;font-weight:600;color:var(--ink);line-height:1.3;font-variant-numeric:tabular-nums}
body[data-module="parking"] .sc-mini-stat .trend{font-size:12px;margin-top:3px}
body[data-module="parking"] .sc-mini-stat .trend.up{color:var(--teal)}
body[data-module="parking"] .sc-mini-stat .trend.down{color:var(--red)}
body[data-module="parking"] .sc-mini-stat .mini-bar{height:4px;border-radius:3px;background:var(--line);margin-top:9px;overflow:hidden}
body[data-module="parking"] .sc-mini-stat .mini-bar i{display:block;height:100%;background:var(--blue);border-radius:3px}
/* 指示灯增强款（第 9 页） */
body[data-module="parking"] .sc-lamps{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:6px}
body[data-module="parking"] .sc-lamp{display:inline-block;border-radius:50%;flex:0 0 auto}
body[data-module="parking"] .sc-lamp.lg{width:20px;height:20px}
body[data-module="parking"] .sc-lamp.md{width:14px;height:14px}
body[data-module="parking"] .sc-lamp.sm{width:9px;height:9px}
body[data-module="parking"] .sc-lamp.ok{background:var(--teal)}
body[data-module="parking"] .sc-lamp.warn{background:var(--amber)}
body[data-module="parking"] .sc-lamp.off{background:var(--side-dim)}
body[data-module="parking"] .sc-lamp.ring{background:transparent;border:3px solid var(--blue)}
/* 仪器仪表（第 15 页） */
body[data-module="parking"] .sc-gauges{display:flex;gap:14px;flex-wrap:wrap}
body[data-module="parking"] .sc-gauge{flex:1 1 150px;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:14px;text-align:center}
body[data-module="parking"] .sc-gauge svg{width:96px;height:60px;max-width:100%}
body[data-module="parking"] .sc-readout{font-size:30px;font-weight:600;color:var(--ink);line-height:1.4;font-variant-numeric:tabular-nums}
body[data-module="parking"] .sc-readout span{font-size:14px;color:var(--muted);font-weight:400}
/* 仪表扩展件（第 15 页） */
body[data-module="parking"] .sc-segbar{display:flex;gap:3px;height:60px;align-items:center;justify-content:center}
body[data-module="parking"] .sc-segbar i{flex:1;max-width:9px;height:26px;border-radius:2px;background:var(--line)}
body[data-module="parking"] .sc-segbar i.on{background:var(--blue)}
body[data-module="parking"] .sc-vbars{display:flex;gap:12px;height:60px;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--line)}
body[data-module="parking"] .sc-vbars i{width:14px;border-radius:3px 3px 0 0}
body[data-module="parking"] .sc-threshold{height:12px;border-radius:3px;position:relative;margin:24px 0;background:linear-gradient(90deg,var(--teal) 0 60%,var(--amber) 60% 90%,var(--red) 90% 100%)}
body[data-module="parking"] .sc-threshold i{position:absolute;left:72%;top:-6px;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid var(--ink)}
body[data-module="parking"] .sc-delta{font-size:13px;font-weight:600;color:var(--teal);margin-bottom:4px}
body[data-module="parking"] .sc-delta span{font-size:11.5px;color:var(--muted);font-weight:400}
/* 柱状图与趋势图（第 17 页） */
body[data-module="parking"] .sc-charts{display:flex;gap:14px;flex-wrap:wrap}
body[data-module="parking"] .sc-chart{flex:1 1 180px;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:12px;text-align:center}
body[data-module="parking"] .sc-chart svg{width:100%;height:72px;max-width:100%}
body[data-module="parking"] .sc-chart .small{margin-top:6px}
/* 看板（第 16 页） */
body[data-module="parking"] .sc-board{display:flex;gap:12px;align-items:flex-start}
body[data-module="parking"] .sc-board-col{flex:1 1 0;min-width:0;background:var(--surface-2);border-radius:9px;padding:10px}
body[data-module="parking"] .sc-board-hd{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;color:var(--ink-2);margin-bottom:8px}
body[data-module="parking"] .sc-board-hd .tag{margin-left:0}
body[data-module="parking"] .sc-board-card{background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:8px 10px;font-size:12.5px;color:var(--ink);margin-bottom:7px}
body[data-module="parking"] .sc-board-card:last-child{margin-bottom:0}
/* 分页器演示（第 8 页 6 种对照） */
body[data-module="parking"] .sc-pgdemo{display:flex;align-items:center;gap:7px;flex-wrap:wrap;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:11px 14px;margin:8px 0 2px}
body[data-module="parking"] .sc-pgdemo.col{flex-direction:column;align-items:flex-start;gap:8px}
body[data-module="parking"] .sc-pgbtn{background:var(--surface);border:1px solid var(--line);color:var(--ink);border-radius:6px;min-width:28px;height:28px;padding:0 8px;font-size:12.5px;cursor:pointer}
body[data-module="parking"] .sc-pgnum{background:var(--surface);border:1px solid var(--line);color:var(--ink-2);border-radius:6px;min-width:28px;height:28px;padding:0 6px;font-size:12.5px;cursor:pointer}
body[data-module="parking"] .sc-pgnum.on{background:var(--blue);border-color:var(--blue);color:#fff}
body[data-module="parking"] .sc-pgtxt{font-size:12.5px;color:var(--ink-2)}
body[data-module="parking"] .sc-pginput{width:48px;height:28px;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:6px;color:var(--ink);font-size:12.5px}
body[data-module="parking"] .sc-pgpill{background:var(--surface);border:1px solid var(--line);color:var(--ink-2);border-radius:20px;height:29px;padding:0 12px;font-size:12.5px;cursor:pointer}
body[data-module="parking"] .sc-pgpill.on{background:var(--blue);border-color:var(--blue);color:#fff}
/* 按钮 / 表单 / 筛选演示（第 3、5、7 页） */
body[data-module="parking"] .sc-note-red{border-left-color:var(--red);margin:8px 0 0}
body[data-module="parking"] .btn.sm{padding:3px 9px;font-size:11.5px}
body[data-module="parking"] .btn.lg{padding:9px 18px;font-size:14px}
body[data-module="parking"] .btn.ico{width:30px;height:30px;padding:0;line-height:1;font-size:15px;text-align:center}
body[data-module="parking"] .btn.ico.danger{color:var(--red);border-color:var(--red)}
body[data-module="parking"] .btn.pill{border-radius:999px}
body[data-module="parking"] .btn.solid{background:var(--blue-soft);color:var(--blue);border-color:var(--blue)}
body[data-module="parking"] .sc-btn-group{display:inline-flex}
body[data-module="parking"] .sc-btn-group button{border:1px solid var(--line);background:var(--surface);color:var(--ink-2);font-size:12px;padding:5px 13px;cursor:pointer}
body[data-module="parking"] .sc-btn-group button+button{border-left:0}
body[data-module="parking"] .sc-btn-group button:first-child{border-radius:6px 0 0 6px}
body[data-module="parking"] .sc-btn-group button:last-child{border-radius:0 6px 6px 0}
body[data-module="parking"] .sc-btn-group button.on{background:var(--blue-soft);color:var(--blue);border-color:var(--blue)}
body[data-module="parking"] .sc-form-states .field{width:160px}
body[data-module="parking"] .sc-form-states .field input{width:100%}
body[data-module="parking"] .sc-f-msg{font-size:11px;line-height:1.3;min-height:15px}
body[data-module="parking"] .sc-f-ok input{border-color:var(--teal)}
body[data-module="parking"] .sc-f-ok .sc-f-msg{color:var(--teal)}
body[data-module="parking"] .sc-f-err input{border-color:var(--red)}
body[data-module="parking"] .sc-f-err .sc-f-msg{color:var(--red)}
body[data-module="parking"] .sc-f-warn input{border-color:var(--amber)}
body[data-module="parking"] .sc-f-warn .sc-f-msg{color:var(--amber)}
body[data-module="parking"] .sc-toggle{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--ink);cursor:pointer;white-space:nowrap}
body[data-module="parking"] .sc-toggle input{position:absolute;opacity:0;width:0;height:0}
body[data-module="parking"] .sc-track{width:34px;height:18px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);position:relative;flex:0 0 34px;transition:background .15s}
body[data-module="parking"] .sc-track::after{content:"";position:absolute;left:2px;top:2px;width:12px;height:12px;border-radius:50%;background:var(--muted);transition:transform .15s,background .15s}
body[data-module="parking"] .sc-toggle input:checked+.sc-track{background:var(--blue-soft);border-color:var(--blue)}
body[data-module="parking"] .sc-toggle input:checked+.sc-track::after{transform:translateX(16px);background:var(--blue)}
body[data-module="parking"] .sc-form-switches{gap:24px}
body[data-module="parking"] .sc-form-switches>.small{margin-left:4px}
body[data-module="parking"] .sc-chipbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body[data-module="parking"] .sc-chip{border:1px solid var(--line);background:var(--surface);color:var(--ink-2);border-radius:999px;font-size:12px;padding:4px 13px;cursor:pointer}
body[data-module="parking"] .sc-chip.on{border-color:var(--blue);background:var(--blue-soft);color:var(--blue)}
body[data-module="parking"] .sc-chip .x{font-size:14px;line-height:0;margin-left:3px;color:var(--muted)}
body[data-module="parking"] .sc-filter-more{display:none;margin-top:10px}
body[data-module="parking"] .sc-filter-fold.open .sc-filter-more{display:block}
/* 标签样式（第 2 页 7 组对照） */
body[data-module="parking"] .sc-tag{display:inline-flex;align-items:center;gap:6px;padding:2px 9px;border-radius:6px;font-size:11.5px;line-height:1.7;border:1px solid var(--line);background:var(--surface-2);color:var(--ink)}
body[data-module="parking"] .sc-tag-dot{width:7px;height:7px;border-radius:50%;flex:0 0 7px}
body[data-module="parking"] .sc-tag-o{background:transparent}
body[data-module="parking"] .sc-tag-x{font-size:14px;line-height:1;color:var(--muted);margin-left:2px;cursor:pointer}
body[data-module="parking"] .sc-tag-c{font-style:normal;font-size:10.5px;padding:0 6px;border-radius:999px;margin-left:2px}
body[data-module="parking"] .sc-tag-p{border-radius:999px;padding:3px 12px}
body[data-module="parking"] .sc-tag-b{width:3px;height:12px;border-radius:2px;flex:0 0 3px}
/* 徽章扩展（第 2 页新增 6 组） */
body[data-module="parking"] .sc-bdg-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 11px;border-radius:999px;font-size:11.5px;font-weight:600}
body[data-module="parking"] .sc-bdg-pill i{width:6px;height:6px;border-radius:50%;flex:0 0 6px}
body[data-module="parking"] .sc-bdg-grad{display:inline-block;padding:3px 12px;border-radius:6px;color:#fff;font-size:11.5px;font-weight:600;letter-spacing:.3px}
body[data-module="parking"] .sc-bdg-split{display:inline-flex;align-items:stretch;overflow:hidden;border-radius:6px;font-size:11.5px;border:1px solid var(--line)}
body[data-module="parking"] .sc-bdg-split b{padding:3px 9px;background:var(--ink-2);color:var(--surface);font-weight:600}
body[data-module="parking"] .sc-bdg-split em{font-style:normal;padding:3px 11px;font-weight:600}
body[data-module="parking"] .sc-bdg-star{font-size:15px;letter-spacing:1px}
body[data-module="parking"] .sc-bdg-star .off{color:var(--line)}
body[data-module="parking"] .sc-bdg-star-muted{font-size:11.5px;color:var(--muted);margin-left:4px}
body[data-module="parking"] .sc-bdg-notify{position:relative;display:inline-block;padding:6px 13px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2);color:var(--ink);font-size:11.5px}
body[data-module="parking"] .sc-bdg-count{position:absolute;top:-8px;right:-9px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--red);color:#fff;font-size:10px;font-style:normal;line-height:17px;text-align:center;font-weight:600;box-shadow:0 0 0 2px var(--surface)}
body[data-module="parking"] .sc-bdg-count.dot{min-width:8px;width:8px;height:8px;padding:0;top:-4px;right:-4px}
body[data-module="parking"] .sc-bdg-toggle{display:inline-block;padding:3px 12px;border-radius:6px;font-size:11.5px;font-weight:600;cursor:pointer;border:1px solid var(--line);background:var(--surface-2);color:var(--muted)}
body[data-module="parking"] .sc-bdg-toggle.on{background:var(--teal-soft);color:var(--teal);border-color:var(--teal)}
/* 状态灯 */
body[data-module="parking"] .sc-dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:0 0 9px}
body[data-module="parking"] .sc-dot.ok{background:var(--teal)}
body[data-module="parking"] .sc-dot.warn{background:var(--amber)}
body[data-module="parking"] .sc-dot.off{background:var(--side-dim)}
/* 折叠面板 */
:is(body[data-module="parking"],body[data-module="utility"]) .sc-acc{border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-top:8px}
:is(body[data-module="parking"],body[data-module="utility"]) .sc-acc-item+.sc-acc-item{border-top:1px solid var(--line)}
:is(body[data-module="parking"],body[data-module="utility"]) .sc-acc-hd{width:100%;display:flex;justify-content:space-between;align-items:center;background:var(--surface-2);border:0;padding:11px 14px;font-size:13px;color:var(--ink);cursor:pointer;text-align:left}
:is(body[data-module="parking"],body[data-module="utility"]) .sc-acc-hd .caret{font-size:16px;color:var(--muted)}
:is(body[data-module="parking"],body[data-module="utility"]) .sc-acc-bd{display:none;padding:4px 14px 10px}
:is(body[data-module="parking"],body[data-module="utility"]) .sc-acc-item.open .sc-acc-bd{display:block}
:is(body[data-module="parking"],body[data-module="utility"]) .sc-acc-item.open .sc-acc-hd{color:var(--blue)}
body[data-module="parking"] .sc-sec{font-size:12.5px;font-weight:600;color:var(--muted);margin:18px 0 8px;padding-bottom:5px;border-bottom:1px dashed var(--line)}
body[data-module="parking"] .sc-sec:first-of-type{margin-top:4px}
/* 切换器外壳 */
body[data-module="parking"] .sc-switcher{margin-top:4px}
body[data-module="parking"] .sc-stage{margin-top:12px}
/* 方法一：圆点 + 箭头 */
body[data-module="parking"] .sc-dots{display:flex;gap:9px;justify-content:center;align-items:center}
body[data-module="parking"] .sc-dot{width:9px;height:9px;border-radius:50%;border:0;padding:0;background:var(--line);cursor:pointer;transition:.15s}
body[data-module="parking"] .sc-dot:hover{background:var(--side-dim)}
body[data-module="parking"] .sc-dot.on{background:var(--blue);width:22px;border-radius:5px}
body[data-module="parking"] .sc-arrows{display:flex;gap:14px;justify-content:center;align-items:center;margin-top:14px}
body[data-module="parking"] .sc-idx{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:56px;text-align:center}
/* 方法二：标签 */
body[data-module="parking"] .sc-tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--line)}
body[data-module="parking"] .sc-tab{border:1px solid transparent;border-bottom:0;background:transparent;padding:8px 15px;font-size:13px;color:var(--muted);cursor:pointer;border-radius:7px 7px 0 0;margin-bottom:-1px}
body[data-module="parking"] .sc-tab:hover{color:var(--ink)}
body[data-module="parking"] .sc-tab.on{background:var(--surface);border-color:var(--line);color:var(--blue);font-weight:600}
/* 方法三：步骤条 */
body[data-module="parking"] .sc-steps{display:flex;gap:0;align-items:flex-start}
body[data-module="parking"] .sc-step{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;position:relative;cursor:pointer;color:var(--muted);font-size:12.5px}
body[data-module="parking"] .sc-step:not(:last-child):after{content:"";position:absolute;top:13px;left:50%;width:100%;height:2px;background:var(--line);z-index:0}
body[data-module="parking"] .sc-step.done:not(:last-child):after{background:var(--blue)}
body[data-module="parking"] .sc-step b{width:26px;height:26px;border-radius:50%;background:var(--surface);border:2px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:12px;z-index:1;color:var(--muted)}
body[data-module="parking"] .sc-step.on b{background:var(--blue);border-color:var(--blue);color:#fff}
body[data-module="parking"] .sc-step.done b{border-color:var(--blue);color:var(--blue)}
body[data-module="parking"] .sc-step.on span{color:var(--blue);font-weight:600}
/* 方法四：左侧缩略导航 */
:is(body[data-module="parking"],body[data-module="utility"],body[data-module="iot"]) .sc-kind-rail{display:flex;gap:16px;align-items:stretch}
:is(body[data-module="parking"],body[data-module="utility"],body[data-module="iot"]) .sc-rail{flex:0 0 130px;display:flex;flex-direction:column;gap:6px}
:is(body[data-module="parking"],body[data-module="utility"],body[data-module="iot"]) .sc-rail-item{display:flex;gap:9px;align-items:center;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:9px 11px;cursor:pointer;font-size:13px;color:var(--ink-2)}
:is(body[data-module="parking"],body[data-module="utility"],body[data-module="iot"]) .sc-rail-item b{width:20px;height:20px;flex:0 0 20px;border-radius:5px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--muted)}
:is(body[data-module="parking"],body[data-module="utility"],body[data-module="iot"]) .sc-rail-item:hover{border-color:var(--btn-hover-bd)}
:is(body[data-module="parking"],body[data-module="utility"],body[data-module="iot"]) .sc-rail-item.on{border-color:var(--blue);background:var(--blue-soft);color:var(--blue);font-weight:600}
:is(body[data-module="parking"],body[data-module="utility"],body[data-module="iot"]) .sc-rail-item.on b{background:var(--blue);color:#fff}
:is(body[data-module="parking"],body[data-module="utility"],body[data-module="iot"]) .sc-rail-item.done b{border:1px solid var(--blue);color:var(--blue)}
:is(body[data-module="parking"],body[data-module="utility"],body[data-module="iot"]) .sc-kind-rail .sc-stage{flex:1;margin-top:0;min-width:0}
/* 物联网日志两标签：顶部横排（参照停车日志 #logTabs） */
body[data-module="iot"] .sc-kind-rail:has(#iotLogTabs){flex-direction:column;gap:12px;align-items:stretch}
body[data-module="iot"] #iotLogTabs{flex:0 0 auto;width:fit-content;flex-direction:row;gap:8px}
body[data-module="iot"] .sc-kind-rail:has(#iotLogTabs) .sc-stage{flex:0 0 auto;margin-top:0}
body[data-module="iot"] #iotLogPanes{max-width:none}
body[data-module="parking"] #setPanes,body[data-module="parking"] #vehPanes,body[data-module="parking"] #dashPanes{max-width:1100px}
body[data-module="parking"] #logPanes{max-width:none}
body[data-module="parking"] #dashTabs{flex:0 0 145px}
/* 工作台二标签：由左侧竖排改为顶部横排（只作用于含 #dashTabs 的那一组，不影响车辆/设置/日志页） */
body[data-module="parking"] .sc-kind-rail:has(#dashTabs){flex-direction:column;gap:12px;align-items:stretch}
body[data-module="parking"] #dashTabs{flex:0 0 auto;width:fit-content;flex-direction:row;gap:8px}
body[data-module="parking"] .sc-kind-rail:has(#dashTabs) .sc-stage{flex:0 0 auto;margin-top:0}
/* 车辆三标签：由左侧竖排改为顶部横排（只作用于含 #vehTabs 的那一组） */
body[data-module="parking"] .sc-kind-rail:has(#vehTabs){flex-direction:column;gap:12px;align-items:stretch}
body[data-module="parking"] #vehTabs{flex:0 0 auto;width:fit-content;flex-direction:row;gap:8px}
body[data-module="parking"] .sc-kind-rail:has(#vehTabs) .sc-stage{flex:0 0 auto;margin-top:0}
/* 日志三标签：由左侧竖排改为顶部横排（只作用于含 #logTabs 的那一组） */
body[data-module="parking"] .sc-kind-rail:has(#logTabs){flex-direction:column;gap:12px;align-items:stretch}
body[data-module="parking"] #logTabs{flex:0 0 auto;width:fit-content;flex-direction:row;gap:8px}
body[data-module="parking"] .sc-kind-rail:has(#logTabs) .sc-stage{flex:0 0 auto;margin-top:0}
/* 设置三标签：由左侧竖排改为顶部横排（只作用于含 #setTabs 的那一组） */
body[data-module="parking"] .sc-kind-rail:has(#setTabs){flex-direction:column;gap:12px;align-items:stretch}
body[data-module="parking"] #setTabs{flex:0 0 auto;width:fit-content;flex-direction:row;gap:8px}
body[data-module="parking"] .sc-kind-rail:has(#setTabs) .sc-stage{flex:0 0 auto;margin-top:0}
/* 用户合同三标签（用户管理 / 租赁合同 / 房租账单）：复用停车顶部标签样式 */
body[data-module="utility"] .sc-kind-rail:has(#userTabs){flex-direction:column;gap:12px;align-items:stretch}
body[data-module="utility"] #userTabs{flex:0 0 auto;width:fit-content;flex-direction:row;gap:8px}
body[data-module="utility"] .sc-kind-rail:has(#userTabs) .sc-stage{flex:0 0 auto;margin-top:0}
body[data-module="utility"] .sc-kind-rail:has(#meterTabs){flex-direction:column;gap:12px;align-items:stretch}
body[data-module="utility"] #meterTabs{flex:0 0 auto;width:fit-content;flex-direction:row;gap:8px}
body[data-module="utility"] .sc-kind-rail:has(#meterTabs) .sc-stage{flex:0 0 auto;margin-top:0}
/* 主壳全局设置顶部双标签（设备与连接 / 全局设置）：参照日志页横排 sc-rail，主壳作用域独立写 */
.shell-root .sc-kind-rail:has(#gsetTabs){display:flex;flex-direction:column;gap:12px;align-items:stretch}
.shell-root #gsetTabs{flex:0 0 auto;width:fit-content;flex-direction:row;gap:8px;display:flex}
.shell-root #gsetTabs .sc-rail-item{display:flex;gap:9px;align-items:center;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:9px 11px;cursor:pointer;font-size:13px;color:var(--ink-2)}
.shell-root #gsetTabs .sc-rail-item b{width:20px;height:20px;flex:0 0 20px;border-radius:5px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--muted)}
.shell-root #gsetTabs .sc-rail-item:hover{border-color:var(--btn-hover-bd)}
.shell-root #gsetTabs .sc-rail-item.on{border-color:var(--blue);background:var(--blue-soft);color:var(--blue);font-weight:600}
.shell-root #gsetTabs .sc-rail-item.on b{background:var(--blue);color:#fff}
/* 用户编辑弹窗折叠面板：三项各自独立成卡，边界更清楚 */
body[data-module="utility"] .modal-card .sc-acc{border:0;border-radius:0;overflow:visible;display:flex;flex-direction:column;gap:10px}
body[data-module="utility"] .modal-card .sc-acc-item{border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--surface)}
body[data-module="utility"] .modal-card .sc-acc-hd{font-weight:600;background:color-mix(in srgb, var(--line) 85%, var(--surface))}
body[data-module="utility"] .modal-card .sc-acc-item.open .sc-acc-hd{border-bottom:1px solid var(--line)}
body[data-module="utility"] .modal-card .sc-acc-bd{padding:12px 14px;background:var(--surface)}
body[data-module="parking"] #dashPanes .pk-grid2{grid-template-columns:1fr}
body[data-module="parking"] #dashPanes .set-pane{border:0;background:transparent;padding:0;min-height:0}
body[data-module="parking"] .dash-ano-badge{margin-left:auto;min-width:22px;height:18px;line-height:18px;padding:0 5px;border-radius:9px;background:#ef6a58;color:#fff;font-size:11px;font-weight:600;text-align:center;box-sizing:border-box}
body[data-module="parking"] .dash-ano-badge.zero{background:var(--surface-2);color:var(--muted)}
body[data-module="parking"] .set-pane{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:16px 18px;min-height:250px}
/* 表格：可展开行 */
body[data-module="parking"] .sc-exp-btn{padding:2px 9px;font-size:12px}
body[data-module="parking"] .sc-exp-row{display:none}
body[data-module="parking"] .sc-exp-row.on{display:table-row}
body[data-module="parking"] .sc-exp-row td{background:var(--surface-2);white-space:normal}
body[data-module="parking"] .sc-exp-box{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:6px 18px;font-size:12.5px;color:var(--ink-2);line-height:1.7}
body[data-module="parking"] .sc-exp-box b{color:var(--ink);font-weight:600;margin-right:6px}
/* 表格：固定首列 + 横向滚动 */
body[data-module="parking"] .sc-tbl-wrap{max-width:560px;overflow:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
body[data-module="parking"] .sc-tbl-fixed{min-width:800px}
body[data-module="parking"] .sc-tbl-fixed th:first-child,
body[data-module="parking"] .sc-tbl-fixed td:first-child{position:sticky;left:0;z-index:2;background:var(--surface-2);box-shadow:1px 0 0 var(--line)}
body[data-module="parking"] .sc-tbl-fixed td:first-child{background:var(--surface)}
/* 幻灯片内容 */
body[data-module="parking"] .sc-slide{display:none;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:16px 18px;min-height:250px}
body[data-module="parking"] .sc-slide.on{display:block}
body[data-module="parking"] .sc-kind-tabs .sc-slide,
body[data-module="parking"] .sc-kind-steps .sc-slide{border-top-left-radius:0;border-top-right-radius:0}
body[data-module="parking"] .sc-slide-hd{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px;padding-bottom:9px;border-bottom:1px solid var(--line)}
body[data-module="parking"] .sc-slide-hd b{font-size:14px;color:var(--ink)}
body[data-module="parking"] .sc-fields{display:flex;flex-direction:column}
body[data-module="parking"] .sc-field{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 2px;border-bottom:1px solid var(--line)}
body[data-module="parking"] .sc-field:last-child{border-bottom:0}
body[data-module="parking"] .sc-flabel{font-size:13px;color:var(--ink-2)}
body[data-module="parking"] .sc-fctrl{display:flex;align-items:center;gap:8px;flex:0 0 auto}
body[data-module="parking"] .sc-num{font-size:15px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
body[data-module="parking"] .sc-text{font-size:13px;color:var(--ink-2);background:var(--surface-2);border:1px solid var(--line);border-radius:6px;padding:3px 10px}
body[data-module="parking"] .sc-switch{width:38px;height:21px;border-radius:20px;background:var(--line);position:relative;display:inline-block;transition:.15s}
body[data-module="parking"] .sc-switch i{position:absolute;top:2px;left:2px;width:17px;height:17px;border-radius:50%;background:#fff;transition:.15s;box-shadow:0 1px 2px rgba(0,0,0,.2)}
body[data-module="parking"] .sc-switch.on{background:var(--blue)}
body[data-module="parking"] .sc-switch.on i{left:19px}

/* 样式画廊 · 浮层提醒参考（纯前端演示） */
body[data-module="parking"] .sc-float-btns{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 6px}
body[data-module="parking"] .sc-float-stack{position:fixed;top:76px;right:18px;z-index:70;display:flex;flex-direction:column;gap:8px;width:min(300px,calc(100vw - 36px));pointer-events:none}
body[data-module="parking"] .sc-float-item{position:relative;background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--blue);border-radius:9px;padding:10px 30px 10px 12px;box-shadow:0 8px 24px rgba(20,30,45,.14);pointer-events:auto;animation:scFloatIn .18s ease-out}
body[data-module="parking"] .sc-float-item.warn{border-left-color:var(--amber)}
body[data-module="parking"] .sc-float-item.bad{border-left-color:var(--red)}
body[data-module="parking"] .sc-float-item.ok{border-left-color:var(--teal)}
body[data-module="parking"] .sc-float-item b{display:block;font-size:13px;color:var(--ink);margin-bottom:3px}
body[data-module="parking"] .sc-float-item p{margin:0;font-size:12px;color:var(--muted);line-height:1.6}
body[data-module="parking"] .sc-float-x{position:absolute;top:6px;right:8px;border:0;background:transparent;color:var(--muted);font-size:16px;line-height:1;cursor:pointer}
@keyframes scFloatIn{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:none}}
body[data-module="parking"] .sc-float-banner{position:fixed;top:76px;left:18px;right:18px;z-index:69;display:flex;align-items:center;gap:10px;background:var(--amber-soft);border:1px solid var(--notice-amber-bd);color:var(--notice-amber-ink);border-radius:9px;padding:10px 12px;font-size:12.5px;box-shadow:0 8px 24px rgba(20,30,45,.10)}
body[data-module="parking"] .sc-float-banner.blue{background:var(--blue-soft);border-color:var(--notice-bd);color:var(--notice-ink)}
body[data-module="parking"] .sc-float-banner .grow{flex:1}
body[data-module="parking"] .sc-float-banner button{border:1px solid currentColor;background:transparent;color:inherit;border-radius:6px;padding:3px 10px;font-size:12px;cursor:pointer}

/* ==================== 6. 手机适配（抽屉导航 + 通用层，仅 ≤768px 生效） ==================== */
/* 汉堡按钮：仅手机显示，压在内容之上 */
.shell-root .nav-drawer-btn{display:none;position:fixed;top:10px;left:10px;z-index:96;width:38px;height:38px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font-size:17px;line-height:1;box-shadow:0 2px 10px rgba(20,30,45,.16)}
.shell-root .nav-scrim{display:none;position:fixed;inset:0;z-index:94;background:rgba(15,23,42,.42)}
@media(max-width:768px){
  .shell-root .nav-scrim.drawer-open{display:block}
  /* 抽屉侧栏：默认移出屏幕，drawer-open 时滑入；覆盖折叠态的固定宽度 */
  .shell-root .sidebar,
  .shell-root .sidebar.collapsed{position:fixed;top:0;bottom:0;left:0;z-index:95;width:250px;flex-basis:250px;transform:translateX(-102%);transition:transform .22s ease;box-shadow:8px 0 28px rgba(15,23,42,.22)}
  .shell-root .sidebar.drawer-open{transform:translateX(0)}
  /* 抽屉里始终展示完整菜单文字，忽略桌面折叠隐藏规则 */
  .shell-root .sidebar .brand-text,
  .shell-root .sidebar .nav-label,
  .shell-root .sidebar .group-name,
  .shell-root .sidebar .caret,
  .shell-root .sidebar .nav-home span:not(.nav-ico),
  .shell-root .sidebar .side-status,
  .shell-root .sidebar .side-user,
  .shell-root .sidebar .side-foot{display:revert}
  .shell-root .sidebar .nav-collapse{display:none}
  .shell-root .nav-drawer-btn{display:block}
  /* 主壳内容区：顶部让出汉堡按钮，左右收紧 */
  .shell-root .workbench,.shell-root .settings{padding:62px 14px 40px}
  .shell-root .wb-head h1{font-size:21px}
  .shell-root .sys-item{min-width:calc(50% - 12px);padding:0 10px}
  .shell-root .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* 模块页通用层：顶部/内容 padding 收紧 */
  .module-root .topbar{padding:12px 14px 12px 56px;align-items:flex-start}
  .module-root .topbar h1{font-size:17px}
  .module-root .content{padding:12px 12px 40px}
  .module-root .card{padding:13px;margin-bottom:12px}
  .module-root .card h2{font-size:14.5px}
  .module-root .stats{gap:8px;margin-bottom:12px}
  .module-root .stat{padding:10px 12px}
  .module-root .stat .n{font-size:20px}
  /* 触摸目标：常规按钮与输入控件放大到易点尺寸 */
  .module-root .btn,.shell-root .btn{min-height:38px;padding:8px 14px;font-size:13px}
  .module-root input[type=text]:not(.cell-input):not(.picker-input):not(.reading-input):not(.v-note):not(.pPrice):not(.pNote),
  .module-root input[type=number]:not(.cell-input):not(.picker-input):not(.reading-input),
  .module-root input[type=date]:not(.cell-input):not(.pDate):not(.mo-date),
  .module-root input[type=month]:not(.cell-input),
  .module-root select:not(.cell-select):not(.v-tag):not(.pUtil){height:38px;font-size:13px}
  /* 固定宽度字段在窄屏让位，避免横向溢出 */
  .module-root label.field input,.module-root label.field select{width:100%;min-width:0}
  .module-root .pk-head .pk-mini,.module-root .pk-date,.module-root .pk-num{max-width:100%;min-width:0}
  /* 过车记录筛选行：桌面强制单行，手机改为换行，标题独占一行，下拉框不被压成箭头 */
  body[data-module="parking"] .pk-head.pk-head-rec{flex-wrap:wrap}
  body[data-module="parking"] .pk-head.pk-head-rec h2{flex-basis:100%}
  body[data-module="parking"] .pk-head.pk-head-rec .grow{display:none}
  body[data-module="parking"] .pk-head.pk-head-rec select.pk-mini{flex:0 0 auto;width:112px;min-width:112px}
  /* 弹窗：贴边、限高、留出安全区 */
  .module-root .modal{padding:10px}
  .module-root .modal-card{width:100%;max-height:86vh;padding:16px}
  /* 表格容器保持横滚，降低内边距换取可视列数 */
  .module-root th,.module-root td{padding:7px 8px}
  /* 置顶标签栏：手机端改两行网格，文字横排不竖排（仅停车模块，PC 端不触发） */
  body[data-module="parking"] #dashTabs,
  body[data-module="parking"] #vehTabs,
  body[data-module="parking"] #logTabs,
  body[data-module="parking"] #setTabs{flex-wrap:wrap;width:100%}
  body[data-module="parking"] .sc-rail-item{flex:0 0 calc(33.333% - 6px);gap:6px;padding:9px 6px;font-size:12px;white-space:nowrap;min-width:0}
}

