#main{display:flex;flex:1;min-height:0;overflow:hidden;height:calc(100vh - 32px)}#content{flex:1;overflow-y:auto;padding:20px 24px;background:var(--c-bg)}body{overflow:hidden;height:100vh}/* ============================================
   智能家居工具箱 - 全局样式
   ============================================ */

/* 字体: 系统字体栈优先(APK/离线环境无外网, 不再依赖 Google Fonts) */

:root {
  --c-bg: #0B0F19;
  --c-card: #121826;
  --c-card-2: #1B2333;
  --c-border: #232C3F;
  --c-border-hi: #2E3950;
  --c-primary: #2DD4BF;
  --c-primary-deep: #0E9384;
  --c-info: #38BDF8;
  --c-warn: #F59E0B;
  --c-success: #34D399;
  --c-danger: #F87171;
  --c-text: #E5EAF2;
  --c-text-2: #8B96A8;
  --c-text-3: #5B6478;
  /* 字号体系 (三级): xs=辅助说明 / sm=正文 / md=标题 */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 20px;
  --fs-xl: 24px;
}
.dashboard-issue-date{display:inline-flex;margin-top:6px;padding:3px 7px;border-radius:999px;font-size:9px;line-height:1.2}.dashboard-issue-date.overdue{background:#fff0ef;color:#c2413a}.dashboard-issue-date.near{background:#fff7e6;color:#b46c00}.dashboard-issue-date.aging{background:#fffbe8;color:#927000}.dashboard-issue-date.normal{background:#edf9f7;color:#168f80}.dashboard-issue-date.none{background:var(--c-card-2);color:var(--c-text-3)}
/* color-scheme: 让 Android WebView 原生下拉选择器/日期选择器跟随应用主题
   （未声明时系统弹窗可能深底黑字看不清） */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

/* 启动遮罩转圈动画 */
@keyframes bootSpin { to { transform: rotate(360deg); } }
@keyframes statusPulse { 50% { opacity:.35; } }

/* ============ 浅色主题（白天自动切换, 与设备仓库统一） ============
   html[data-theme="light"] 由 JS 按 smarthome_theme_mode(auto=按时间) 设置 */
:root[data-theme="light"] {
  --c-bg: #F3F6FA;
  --c-card: #FFFFFF;
  --c-card-2: #EDF1F6;
  --c-border: #D9E0EA;
  --c-border-hi: #C4CEDC;
  --c-primary: #0E9384;
  --c-primary-deep: #0B7568;
  --c-info: #0284C7;
  --c-warn: #D97706;
  --c-success: #059669;
  --c-danger: #DC2626;
  --c-text: #1B2436;
  --c-text-2: #5A6478;
  --c-text-3: #8B95A8;
}

.theme-color-setting{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.theme-color-setting input[type=color]{width:42px;height:32px;padding:2px;border:1px solid var(--c-border);border-radius:8px;background:var(--c-card);cursor:pointer}.theme-color-setting>span{min-width:62px;font-size:12px;font-weight:700;color:var(--c-text-2);font-family:monospace}.theme-color-dot{width:24px;height:24px;border:2px solid #fff;border-radius:50%;background:var(--dot);box-shadow:0 0 0 1px var(--c-border);cursor:pointer;transition:transform .15s}.theme-color-dot:hover{transform:scale(1.12)}.theme-color-reset{height:30px;padding:0 9px;border:1px solid var(--c-border);border-radius:7px;background:var(--c-card-2);color:var(--c-text-2);font-size:11px;cursor:pointer}.theme-color-reset:hover{border-color:var(--c-primary);color:var(--c-primary)}

.settings-desktop-head{display:none}
@media (min-width:769px){
  .settings-desktop-head{min-height:104px;margin-bottom:16px;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;border:1px solid color-mix(in srgb,var(--c-primary) 24%,var(--c-border));border-radius:16px;background:linear-gradient(120deg,color-mix(in srgb,var(--c-primary) 11%,var(--c-card)),var(--c-card) 58%);box-shadow:0 8px 28px rgba(31,51,82,.06)}
  .settings-desktop-head span{display:block;margin-bottom:5px;color:var(--c-primary);font-size:11px;font-weight:800;letter-spacing:.12em}
  .settings-desktop-head h2{margin:0;color:var(--c-text);font-size:21px;line-height:1.25}
  .settings-desktop-head p{margin:7px 0 0;color:var(--c-text-2);font-size:12px}
  .settings-desktop-head>b{padding:7px 12px;border:1px solid color-mix(in srgb,var(--c-primary) 30%,var(--c-border));border-radius:18px;background:color-mix(in srgb,var(--c-primary) 10%,var(--c-card));color:var(--c-primary);font-size:11px}
  .settings-layout{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px 18px}
  .settings-layout>.card{margin:0;overflow:hidden;border:1px solid #dce4ee;border-radius:14px;background:var(--c-card);box-shadow:0 4px 18px rgba(31,51,82,.055);transition:border-color .18s,box-shadow .18s,transform .18s}
  .settings-layout>.card:hover{border-color:color-mix(in srgb,var(--c-primary) 34%,#dce4ee);box-shadow:0 10px 30px rgba(31,51,82,.09);transform:translateY(-1px)}
  .settings-layout>.card>.card-header{min-height:52px;padding:0 18px;border-bottom:1px solid #e6ebf2;background:linear-gradient(90deg,color-mix(in srgb,var(--c-primary) 7%,#fff),#fff)}
  .settings-layout>.card>.card-header h3{color:#26344a;font-size:14px;font-weight:750}
  .settings-layout>.card>.card-body{padding:10px 18px 16px}
  .settings-layout .setting-item{min-height:58px;padding:10px 4px!important;border-bottom:1px solid #edf1f5!important;gap:16px}
  .settings-layout .setting-item:last-child{border-bottom:0!important}
  .settings-layout .setting-item .label{color:#26344a;font-size:13px;font-weight:650}
  .settings-layout .setting-item .desc{margin-top:4px;color:#8794a8;font-size:11px;line-height:1.45}
  .settings-layout .setting-item input:not([type=file]):not([type=color]){height:36px!important;padding:0 11px!important;border:1px solid #d8e1ec!important;border-radius:8px!important;background:#f8fafc!important;color:#26344a!important;font-size:12px!important;box-shadow:none!important;transition:border-color .15s,box-shadow .15s}
  .settings-layout .setting-item input:not([type=file]):not([type=color]):focus{border-color:var(--c-primary)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--c-primary) 12%,transparent)!important}
  .settings-layout .btn{min-height:34px;border-radius:8px;font-weight:650}
  .settings-layout .btn-primary{box-shadow:0 5px 14px color-mix(in srgb,var(--c-primary) 22%,transparent)}
  .settings-layout .btn-secondary{background:#f7f9fc!important;border-color:#dbe3ed!important;color:#536176!important}
  .settings-layout .btn-secondary:hover{border-color:var(--c-primary)!important;color:var(--c-primary)!important}
  .settings-layout .theme-color-setting{max-width:350px}
  .settings-layout .toggle-switch{box-shadow:inset 0 0 0 1px rgba(31,51,82,.06)}
  .settings-layout #avatar-preview{box-shadow:0 0 0 3px #fff,0 0 0 4px #dce4ee,0 5px 12px rgba(31,51,82,.12)}
  .settings-card-tip{margin-top:12px;padding:10px 12px;border-radius:8px;background:#f6f8fb;color:#7c899c;font-size:11px;line-height:1.55}
  .settings-actions,.settings-inline-action{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
  .settings-inline-action input{width:130px!important;text-align:left!important;font-family:monospace}
  .settings-status{padding:5px 9px;border-radius:14px;background:#f1f4f8;color:#7b8799;font-size:11px;font-weight:750}.settings-status.online{background:#eaf8f4;color:#168f80}
  .settings-advanced{margin-top:10px;padding:0 12px;border:1px solid #e1e7ef;border-radius:9px;background:#fafbfd}.settings-advanced summary{height:40px;display:flex;align-items:center;color:#68778d;font-size:12px;font-weight:700;cursor:pointer;list-style:none}.settings-advanced summary:after{content:'⌄';margin-left:auto;color:#9aa5b5}.settings-advanced[open] summary:after{transform:rotate(180deg)}.settings-advanced>.setting-item{padding-left:0!important;padding-right:0!important}.settings-advanced>.btn{margin:0 0 12px}
  .settings-danger-row{margin-top:12px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #f2c8c5;border-radius:9px;background:#fff7f6}.settings-danger-row strong,.settings-danger-row span{display:block}.settings-danger-row strong{color:#bd3b34;font-size:12px}.settings-danger-row span{margin-top:4px;color:#9a6a67;font-size:10px}
  .settings-version-row{margin:2px 2px 24px;display:flex;align-items:center;justify-content:center;gap:12px;color:#8a96a8;font-size:11px}.settings-version-row button{padding:0;border:0;background:transparent;color:var(--c-primary);font:inherit;font-weight:700;cursor:pointer}
  .app-update-dialog{display:grid;gap:10px;line-height:1.65}.app-update-dialog>strong{font-size:18px;color:var(--text,#182238)}.app-update-dialog p{margin:0;color:#7b8799}.app-update-dialog ul{margin:0;padding:10px 12px 10px 30px;border-radius:12px;background:#f4f8fb;color:#445166}.app-update-dialog small{color:#7b8799}
}
/* 浅色主题: 输入框/搜索框/下拉框统一浅色(JS 内联深色样式用 !important 覆盖) */
[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: #FFFFFF !important;
  color: #1B2436 !important;
  border-color: #D9E0EA !important;
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder { color: #8B95A8 !important; }
[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="datetime-local"],
[data-theme="light"] input[type="time"] { color-scheme: light; }
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  border-color: var(--c-primary) !important;
  box-shadow: 0 0 0 3px rgba(14,147,132,.12) !important;
}
/* 浅色主题下复选框标签文字 */
[data-theme="light"] .pt-label { color: #3A4559 !important; }

/* ========== 浅色主题: JS 内联浅色正文(#E5EAF2 灰白)自动变深色 ==========
   白天模式下白字在浅色卡片/弹窗上看不清, 统一覆盖为深色;
   深色渐变容器(项目详情头部/卡片头/统计卡/按钮/导出菜单)内的文字保持浅色 */
[data-theme="light"] [style*="color:#E5EAF2"] { color: #1B2436 !important; }
[data-theme="light"] .pd-hero [style*="color:#E5EAF2"],
[data-theme="light"] .card-header [style*="color:#E5EAF2"],
[data-theme="light"] .stats-card [style*="color:#E5EAF2"],
[data-theme="light"] .btn [style*="color:#E5EAF2"],
[data-theme="light"] .export-menu [style*="color:#E5EAF2"],
[data-theme="light"] .dash-stat [style*="color:#E5EAF2"],
[data-theme="light"] .wk-ring [style*="color:#E5EAF2"],
[data-theme="light"] .pd-hero [style*="color:#FFFFFF"],
[data-theme="light"] .card-header [style*="color:#FFFFFF"],
[data-theme="light"] .stats-card [style*="color:#FFFFFF"],
[data-theme="light"] .btn [style*="color:#FFFFFF"] { color: #E5EAF2 !important; }

/* 付款/成本编辑器弹窗(白天): 内联深色字/分隔线/输入框 → 浅色(深色模式不受影响) */
.payment-category-add{display:flex;gap:8px;margin-top:8px}.payment-category-add input{min-width:0;flex:1}.payment-category-add .btn{height:40px;white-space:nowrap}
[data-theme="light"] .pay-editor [style*="color:#E5EAF2"] { color: #1B2436 !important; }
[data-theme="light"] .pay-editor [style*="color:#8B96A8"] { color: #5A6478 !important; }
[data-theme="light"] .pay-editor [style*="color:#2DD4BF"] { color: #0E9384 !important; }
[data-theme="light"] .pay-editor [style*="color:#34D399"] { color: #059669 !important; }
[data-theme="light"] .pay-editor [style*="color:#F59E0B"] { color: #D97706 !important; }
[data-theme="light"] .pay-editor [style*="color:#F87171"] { color: #DC2626 !important; }
[data-theme="light"] .pay-editor [style*="border-bottom:1px solid #1B2333"] { border-bottom-color: #EDF1F6 !important; }
[data-theme="light"] .pay-editor [style*="border-bottom:1px solid #232C3F"] { border-bottom-color: #D9E0EA !important; }
[data-theme="light"] .pay-editor [style*="border-top:1px solid #232C3F"] { border-top-color: #D9E0EA !important; }
[data-theme="light"] .pay-editor select,
[data-theme="light"] .pay-editor input {
  background: #FFFFFF !important;
  color: #1B2436 !important;
  border-color: #D9E0EA !important;
}
[data-theme="light"] .pay-editor select option { background: #FFFFFF; color: #1B2436; }

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Noto Sans SC', -apple-system, 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  overflow: hidden;
  height: 100vh;
  user-select: none;
  /* 沉浸式全屏: 内容避开顶部状态栏安全区 */
  padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
}

/* ========== Layout ========== */
.layout { display: flex; height: 100vh; }

/* ========== Sidebar ========== */
.sidebar {
  width: 220px; background: var(--c-card);
  border-right: 1px solid var(--c-border);
  display: flex; flex-direction: column; padding: 16px 0; flex-shrink: 0;
  overflow-y: auto;
}
.sidebar .user-info {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 16px; border-bottom: 1px solid var(--c-border); margin-bottom: 8px;
}
.sidebar .avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff; font-weight: 600;
}
.sidebar .user-info .name { font-size: 13px; font-weight: 500; }
.sidebar .user-info .role { font-size: 11px; color: var(--c-text-2); }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; margin: 1px 8px;
  border-radius: 8px; cursor: pointer;
  font-size: 14px; color: var(--c-text-2);
  transition: all 0.15s; position: relative;
}
.nav-item:hover { background: var(--c-card-2); color: var(--c-text); }
.nav-item.active {
  background: rgba(79, 195, 247, 0.12);
  color: var(--c-primary);
}
.nav-item.active::before {
  content: ''; position: absolute; left: -8px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0;
  background: var(--c-primary);
}
.app-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav-item .icon { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 24px; color: currentColor; }
.nav-item .icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-icon-style="flat"] .nav-item .icon { width: 27px; height: 27px; flex-basis: 27px; border-radius: 8px; background: var(--icon-flat, #24C1AE); color: #fff; box-shadow: 0 3px 8px rgba(36,193,174,.18); box-shadow: 0 3px 8px color-mix(in srgb, var(--icon-flat, #24C1AE) 24%, transparent); }
html[data-icon-style="flat"] .nav-item .icon svg { width: 16px; height: 16px; stroke-width: 2; }
html[data-icon-style="flat"] .nav-item[data-page="dashboard"] { --icon-flat: #24C1AE; }
html[data-icon-style="flat"] .nav-item[data-page="customers"] { --icon-flat: #4F7CF7; }
html[data-icon-style="flat"] .nav-item[data-page="quotations"] { --icon-flat: #F2A93B; }
html[data-icon-style="flat"] .nav-item[data-page="floorplan"] { --icon-flat: #8B6FE8; }
html[data-icon-style="flat"] .nav-item[data-page="contracts"] { --icon-flat: #E56D8D; }
html[data-icon-style="flat"] .nav-item[data-page="design"] { --icon-flat: #36A9C9; }
html[data-icon-style="flat"] .nav-item[data-page="proposal"] { --icon-flat: #6B7D95; }
html[data-icon-style="flat"] .nav-item[data-page="devices"] { --icon-flat: #EF7E52; }
html[data-icon-style="flat"] .nav-item[data-page="settings"] { --icon-flat: #667085; }
.nav-item .badge {
  margin-left: auto; background: var(--c-danger); color: #fff;
  font-size: 10px; padding: 1px 7px; border-radius: 10px; font-weight: 500;
}
.sidebar-divider { height: 1px; background: var(--c-border); margin: 8px 16px; }
.sidebar .nav-label {
  font-size: 10px; color: var(--c-text-3); letter-spacing: 1px;
  padding: 8px 16px 4px; text-transform: uppercase;
}
.icon-style-setting { align-items: center; gap: 24px; }
.icon-style-options { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.icon-style-current { min-width: 124px; padding: 10px 12px; display: grid; gap: 7px; justify-items: center; border: 1px solid #9bded6; border-radius: 10px; background: rgba(36,193,174,.08); color: #168f82; }
.icon-style-current b { font-size: 12px; }
.icon-style-option { min-width: 124px; padding: 11px 12px; display: grid; gap: 8px; justify-items: center; border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-card-2); color: var(--c-text-2); font-family: inherit; cursor: pointer; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
.icon-style-option:hover { border-color: #9bded6; color: var(--c-text); }
.icon-style-option.active { border-color: #24C1AE; background: rgba(36,193,174,.08); color: #168f82; box-shadow: 0 0 0 3px rgba(36,193,174,.1); }
.icon-style-option b { font-size: 12px; }
.icon-style-sample { height: 28px; display: flex; align-items: center; gap: 7px; }
.icon-style-sample i { width: 17px; height: 17px; display: block; }
.icon-style-sample.line i { border: 2px solid currentColor; border-radius: 5px; }
.icon-style-sample.line i:nth-child(2) { border-radius: 50%; }
.icon-style-sample.line i:nth-child(3) { border-radius: 50% 50% 50% 2px; transform: rotate(-45deg); }
.icon-style-sample.flat i { border-radius: 5px; background: #24C1AE; box-shadow: 0 2px 5px rgba(36,193,174,.2); }
.icon-style-sample.flat i:nth-child(2) { border-radius: 50%; background: #4F7CF7; }
.icon-style-sample.flat i:nth-child(3) { border-radius: 50% 50% 50% 2px; background: #F2A93B; transform: rotate(-45deg); }
@media (max-width: 980px) {
  .icon-style-setting { align-items: flex-start; flex-direction: column; }
  .icon-style-options { width: 100%; justify-content: flex-start; }
}

/* ========== Main Content ========== */
.main {
  flex: 1; overflow-y: auto;
  padding: 24px 28px; background: var(--c-bg);
}
.main::-webkit-scrollbar { width: 6px; }
.main::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.page-header h1 { font-size: 22px; font-weight: 600; }
.page-header .subtitle { font-size: 13px; color: var(--c-text-2); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; border: none;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-deep));
  color: #fff; box-shadow: 0 2px 8px rgba(45,212,191,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(45,212,191,0.35); }
.btn-secondary {
  background: var(--c-card-2); color: var(--c-text); border: 1px solid var(--c-border);
}
.btn-secondary:hover { background: var(--c-border); }
.btn-danger {
  background: rgba(248,113,113,0.15); color: var(--c-danger); border: 1px solid rgba(248,113,113,0.3);
}
.btn-danger:hover { background: rgba(248,113,113,0.25); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ========== Cards ========== */
.card {
  background: var(--c-card); border-radius: 12px;
  border: 1px solid var(--c-border); overflow: hidden;
  margin-bottom: 16px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--c-border);
}
.card-header h3 { font-size: 14px; font-weight: 600; }
.card-header .action { font-size: 12px; color: var(--c-primary); cursor: pointer; }
.card-header .action:hover { text-decoration: underline; }
.card-body { padding: 16px 20px; }

/* ========== Stats Grid ========== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.stats-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.stat-card {
  background: var(--c-card); border-radius: 12px; padding: 16px 18px;
  border: 1px solid var(--c-border); transition: all 0.25s ease;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-deep)); opacity: 0;
  transition: opacity 0.25s ease;
}
.stat-card:hover { border-color: var(--c-border-hi); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.35); }
.stat-card:hover::before { opacity: 1; }
.stat-card .label { font-size: 12px; color: var(--c-text-2); margin-bottom: 4px; letter-spacing: 0.3px; }
.stat-card .value { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.stat-card .change { font-size: 11px; margin-top: 4px; }
.stat-card .change.up { color: var(--c-success); }
.stat-card .change.down { color: var(--c-danger); }

/* ========== 项目总览渐变统计卡片（与设备仓库 stats-card 风格统一） ========== */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.dash-stat {
  border-radius: 12px; padding: 16px 18px; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative; overflow: hidden;
}
.dash-stat:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,0.5); }
.dash-stat .d-flex-between { display: flex; justify-content: space-between; align-items: center; }
.dash-label { font-size: 12px; color: rgba(255,255,255,0.72); margin-bottom: 6px; letter-spacing: 0.3px; }
.dash-value { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -0.5px; line-height: 1.2; }
.dash-ico { font-size: 30px; opacity: 0.85; }
.grad-blue { background: linear-gradient(135deg, #1e3a5f 0%, #2d4d7a 100%); }
.grad-green { background: linear-gradient(135deg, #1e4d3a 0%, #2d6b50 100%); }
.grad-teal { background: linear-gradient(135deg, #1e4a52 0%, #2d6b74 100%); }
.grad-orange { background: linear-gradient(135deg, #5c3a1e 0%, #7a5a2d 100%); }
.grad-purple { background: linear-gradient(135deg, #3a2d5c 0%, #5a3d7a 100%); }
.grad-emerald { background: linear-gradient(135deg, #1e5a4a 0%, #2d7a62 100%); }
.grad-red { background: linear-gradient(135deg, #5c2323 0%, #7a2d2d 100%); }
.grad-gold { background: linear-gradient(135deg, #4a3a1e 0%, #6b5a2d 100%); }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dash-grid { grid-template-columns: repeat(1, 1fr); } }

/* ========== Two Column ========== */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; margin-bottom: 24px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }

/* ========== Project Item ========== */
.project-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--c-card-2);
  transition: all 0.15s; cursor: pointer;
}
.project-item:last-child { border-bottom: none; }
.project-item:hover { padding-left: 4px; }
.project-item .status {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.project-item .status.ongoing { background: var(--c-warn); box-shadow: 0 0 6px rgba(245,158,11,0.4); }
.project-item .status.completed { background: var(--c-success); }
.project-item .status.pending { background: var(--c-info); }
.project-item .info { flex: 1; }
.project-item .info .name { font-size: 13px; font-weight: 500; }
.project-item .info .detail { font-size: 11px; color: var(--c-text-2); margin-top: 2px; }
.project-item .price { font-size: 13px; font-weight: 600; color: var(--c-primary); }

/* ========== Device Item ========== */
.device-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--c-card-2);
}
.device-item:last-child { border-bottom: none; }
.device-item .icon-bg {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.device-item .info { flex: 1; }
.device-item .info .name { font-size: 13px; font-weight: 500; }
.device-item .info .desc { font-size: 11px; color: var(--c-text-2); }

/* ========== Activities ========== */
.activity-item {
  display: flex; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--c-card-2);
}
.activity-item:last-child { border-bottom: none; }
.activity-item .time { font-size: 11px; color: var(--c-text-3); flex-shrink: 0; width: 52px; }
.activity-item .text { font-size: 12px; line-height: 1.5; }

/* ========== Quick Actions ========== */
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; border-radius: 10px;
  background: var(--c-card-2); border: 1px solid var(--c-border);
  cursor: pointer; transition: all 0.15s;
  color: var(--c-text); font-family: inherit; font-size: 12px;
}
.quick-btn:hover { background: var(--c-border); border-color: var(--c-primary); transform: translateY(-1px); }
.quick-btn .qicon { font-size: 22px; }

/* ========== Status Bar ========== */
.footer-bar {
  position: fixed; bottom: 0; right: 0; left: 220px;
  background: var(--c-card); border-top: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 28px; font-size: 11px; color: var(--c-text-3);
  z-index: 10;
}
.main { padding-bottom: 40px; }

/* ========== Tables ========== */
.data-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.data-table th {
  text-align: left; padding: 10px 12px; font-weight: 500;
  color: var(--c-text-2); font-size: 12px;
  border-bottom: 1px solid var(--c-border);
}
.data-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--c-card-2);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(45,212,191,0.04); }
.data-table .status-tag {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 500;
}
.data-table .status-tag.active { background: rgba(52,211,153,0.15); color: var(--c-success); }
.data-table .status-tag.pending { background: rgba(245,158,11,0.15); color: var(--c-warn); }
.data-table .status-tag.done { background: rgba(45,212,191,0.15); color: var(--c-primary); }
.data-table .status-tag.closed { background: rgba(158,158,158,0.15); color: #9e9e9e; }
.data-table .actions { display: flex; gap: 6px; }
.data-table .actions .btn-sm { padding: 3px 10px; font-size: 11px; }

/* ========== Modals ========== */
/* Hide number input spinners */
.modal input[type=number]::-webkit-outer-spin-button,
.modal input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.modal input[type=number] { -moz-appearance: textfield; }
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  z-index: 1000; align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--c-card); border-radius: 16px; border: 1px solid var(--c-border);
  width: 92%; max-width: 560px; max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: modalIn 0.2s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--c-border);
}
.modal-header h2 { font-size: 16px; font-weight: 600; }
.modal-header .close-btn {
  width: 28px; height: 28px; border-radius: 6px; border: none;
  background: transparent; color: var(--c-text-2); cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
}
.modal-header .close-btn:hover { background: var(--c-border); color: var(--c-text); }

/* Project type checkbox cards */
.pt-label { display:flex; align-items:center; justify-content:center; gap:5px; padding:6px 12px 7px; background:var(--c-card-2); border:1px solid var(--c-border); border-radius:6px; cursor:pointer; font-size:13px; transition:all .2s ease; }
.pt-label:hover { background:var(--c-border); border-color:var(--c-border-hi); }
.pt-label:has(input:checked) { border-color:var(--c-primary); background:rgba(45,212,191,0.08); }
.pt-label input[type=checkbox] { accent-color:var(--c-primary); cursor:pointer; margin:0; width:13px; height:13px; }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 24px; border-top: 1px solid var(--c-border);
}

/* ========== Forms ========== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: var(--c-text-2); margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 9px 12px; border-radius: 8px;
  background: var(--c-card-2); border: 1px solid var(--c-border);
  color: var(--c-text); font-size: 13px; font-family: inherit;
  outline: none; transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--c-primary); }
.form-group textarea { min-height: 60px; resize: vertical; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--c-card); color: var(--c-text); }
.project-name-hints { margin-top:8px; padding:9px 10px; border:1px solid rgba(36,193,174,.34); border-radius:8px; background:rgba(36,193,174,.07); color:var(--c-text-2); font-size:12px; }
.project-name-hints-title,.project-name-hints-more { margin:0; color:var(--c-text-2); line-height:1.45; }
.project-name-hints-list { display:grid; gap:6px; margin:7px 0 0; padding:0; list-style:none; }
.project-name-hints-list li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 8px; padding-top:6px; border-top:1px solid rgba(36,193,174,.18); }
.project-name-hints-list strong { overflow-wrap:anywhere; color:var(--c-text); font-weight:600; }
.project-name-hints-list span { grid-column:1; overflow-wrap:anywhere; }
.project-name-hints-list em { grid-column:2; grid-row:1 / span 2; align-self:center; color:var(--c-primary); font-style:normal; white-space:nowrap; }
.project-name-hints-more { margin-top:7px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ========== Empty State ========== */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px 20px; color: var(--c-text-3);
}
.empty-state[hidden] { display: none !important; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state .empty-text { font-size: 14px; margin-bottom: 4px; }
.empty-state .empty-sub { font-size: 12px; }

/* ========== Search Bar ========== */
.search-bar {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.search-bar input {
  flex: 1; padding: 9px 14px; border-radius: 8px;
  background: var(--c-card-2); border: 1px solid var(--c-border);
  color: var(--c-text); font-size: 13px; font-family: inherit;
  outline: none;
}
.search-bar input:focus { border-color: var(--c-primary); }
.search-bar input::placeholder { color: var(--c-text-3); }

/* ========== Tab Headers ========== */
.tab-group { display: flex; gap: 2px; margin-bottom: 16px; }
.tab-item {
  padding: 8px 18px; border-radius: 8px 8px 0 0;
  font-size: 13px; color: var(--c-text-2); cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.15s;
}
.tab-item:hover { color: var(--c-text); }
.tab-item.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }

/* ========== Calculator ========== */
.calc-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--c-card-2);
}
.calc-row .calc-name { flex: 1; font-size: 13px; }
.calc-row .calc-price { color: var(--c-text-2); font-size: 12px; width: 70px; text-align: right; }
.calc-row input[type="number"] {
  width: 60px; padding: 5px 8px; border-radius: 6px;
  background: var(--c-card-2); border: 1px solid var(--c-border);
  color: var(--c-text); font-size: 13px; text-align: center;
  outline: none;
}
.calc-row input[type="number"]:focus { border-color: var(--c-primary); }
.calc-row .calc-total { width: 80px; text-align: right; font-weight: 600; font-size: 13px; color: var(--c-primary); }

/* ========== Floor Plan Canvas ========== */
.floorplan-toolbar {
  display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap;
}
.floorplan-toolbar .tool-btn {
  padding: 6px 14px; border-radius: 6px; border: 1px solid var(--c-border);
  background: var(--c-card-2); color: var(--c-text-2); cursor: pointer;
  font-size: 12px; font-family: inherit; transition: all 0.15s;
}
.floorplan-toolbar .tool-btn:hover { background: var(--c-border); color: var(--c-text); }
.floorplan-toolbar .tool-btn.active { background: rgba(45,212,191,0.15); color: var(--c-primary); border-color: var(--c-primary); }
.floorplan-canvas-wrapper {
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: 12px;
  overflow: hidden; position: relative; min-height: 400px;
}
.floorplan-canvas-wrapper canvas { display: block; width: 100%; }
.floorplan-editor-workspace{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:14px;align-items:start}.floorplan-canvas-column{min-width:0}.plan-lighting-sidebar{max-height:570px;overflow:hidden;display:flex;flex-direction:column;border:1px solid #d8e2ef;border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(31,55,92,.06)}.plan-lighting-sidebar-title{padding:14px 14px 11px;display:flex;align-items:end;justify-content:space-between;border-bottom:1px solid #e4ebf4}.plan-lighting-sidebar-title strong{color:#17223b;font-size:15px}.plan-lighting-sidebar-title span{color:#8b99ad;font-size:11px}.plan-lighting-sidebar-grid{padding:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow-y:auto}.plan-lighting-sidebar-button{min-width:0;height:78px;padding:7px 4px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #dce5f0;border-radius:8px;background:#fbfcff;color:#53617a;font-family:inherit;cursor:pointer;transition:.18s}.plan-lighting-sidebar-button:hover{border-color:#9edfd7;background:#f1fcfa;transform:translateY(-1px)}.plan-lighting-sidebar-button.active{border-color:#24C1AE;background:#eafaf7;box-shadow:0 0 0 2px rgba(36,193,174,.12);color:#168f80}.plan-lighting-visual{--lighting-body-color:#ffdda0;--lighting-body-deep:#d6a56d;--lighting-glow-color:rgba(255,218,150,.7);position:relative;width:42px;height:38px;display:grid;place-items:center}.plan-lighting-visual .lighting-glow{position:absolute;inset:2px;border-radius:50%;background:radial-gradient(circle,var(--lighting-glow-color) 0,rgba(255,218,150,.22) 40%,rgba(255,218,150,0) 72%);filter:blur(3px);transition:.18s}.plan-lighting-visual .lighting-body{position:relative;z-index:1;width:25px;height:25px;display:grid;place-items:center;border:1px solid rgba(182,137,91,.44);border-radius:50%;background:linear-gradient(145deg,#fff4dd,var(--lighting-body-color));box-shadow:inset 0 -3px 5px rgba(214,165,109,.28);color:#8b5d2d;font-size:16px;font-style:normal;line-height:1}.plan-lighting-sidebar-button:hover .lighting-glow,.plan-lighting-sidebar-button.active .lighting-glow{transform:scale(1.18);filter:blur(4px)}.plan-lighting-visual.is-grille .lighting-body,.plan-lighting-visual.is-grille10 .lighting-body,.plan-lighting-visual.is-squarePanelLight .lighting-body,.plan-lighting-visual.is-lightMembrane .lighting-body{border-radius:5px}.plan-lighting-visual.is-rectPanelLight .lighting-body,.plan-lighting-visual.is-linear .lighting-body,.plan-lighting-visual.is-diningLinearPendant .lighting-body,.plan-lighting-visual.is-mirror .lighting-body{width:34px;height:15px;border-radius:5px}.plan-lighting-visual.is-ovalLightMembrane .lighting-body,.plan-lighting-visual.is-ringLight .lighting-body{width:34px;height:22px;border-radius:50%}.plan-lighting-visual.is-rectRingLight .lighting-body,.plan-lighting-visual.is-track .lighting-body{width:35px;height:18px;border-radius:4px}.plan-lighting-visual.is-step .lighting-body{border-radius:4px}.lighting-name{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.light-effect-on .plan-lighting-visual .lighting-glow{animation:lighting-pulse 1.8s ease-in-out infinite}.light-effect-on .plan-lighting-sidebar-button.active .lighting-body{box-shadow:0 0 12px rgba(255,218,150,.8),inset 0 -3px 5px rgba(214,165,109,.28)}@keyframes lighting-pulse{50%{opacity:.66;transform:scale(1.12)}}@media(max-width:1100px){.floorplan-editor-workspace{grid-template-columns:1fr}.plan-lighting-sidebar{max-height:none}.plan-lighting-sidebar-grid{grid-template-columns:repeat(6,minmax(70px,1fr));max-height:210px}}

/* ========== Proposal Preview ========== */
.proposal-preview {
  background: #fff; color: #333; padding: 40px;
  border-radius: 8px; font-size: 13px; line-height: 1.8;
  max-width: 800px; margin: 0 auto;
}

/* ========== Settings ========== */
.setting-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--c-card-2);
}
.setting-item .label { font-size: 13px; }
.setting-item .desc { font-size: 11px; color: var(--c-text-2); margin-top: 2px; }
.toggle-switch {
  width: 40px; height: 22px; border-radius: 11px;
  background: var(--c-border); cursor: pointer; position: relative;
  transition: all 0.2s; flex-shrink: 0;
}
.toggle-switch.on { background: var(--c-primary); }
.toggle-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: all 0.2s;
}
.toggle-switch.on::after { left: 20px; }

/* ========== Animations ========== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.page-content { animation: fadeInUp 0.3s ease-out; }

/* ========== Toast ========== */
.toast-container {
  position: fixed; bottom: 60px; right: 28px;
  z-index: 9500; /* 高于手机端全屏页(3000)/启动遮罩, 确保提示始终可见 */
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--c-card-2); border: 1px solid var(--c-border);
  border-radius: 10px; padding: 10px 16px; font-size: 13px;
  color: var(--c-text); box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  animation: toastIn 0.25s ease-out;
  min-width: 200px;
}
.toast.success { border-left: 3px solid var(--c-success); }
.toast.error { border-left: 3px solid var(--c-danger); }
.toast.info { border-left: 3px solid var(--c-primary); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ========== Device Category Tags ========== */
.cat-tag {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 500;
}
.cat-tag.light { background: rgba(255,193,7,0.15); color: #ffc107; }
.cat-tag.curtain { background: rgba(45,212,191,0.15); color: var(--c-primary); }
.cat-tag.sensor { background: rgba(52,211,153,0.15); color: var(--c-success); }
.cat-tag.switch_ { background: rgba(171,71,188,0.15); color: #ab47bc; }
.cat-tag.security { background: rgba(248,113,113,0.15); color: var(--c-danger); }
.cat-tag.env { background: rgba(245,158,11,0.15); color: var(--c-warn); }
.cat-tag.lock { background: rgba(158,158,158,0.15); color: #9e9e9e; }
.cat-tag.voice { background: rgba(42,167,255,0.15); color: #2aa7ff; }
.cat-tag.ac { background: rgba(0,188,212,0.15); color: #00bcd4; }

/* ========== Charts ========== */
.chart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.chart-card { background: var(--c-card); border-radius: 12px; border: 1px solid var(--c-border); padding: 14px; height: 260px; display:flex;flex-direction:column; }
.chart-card h4 { font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--c-text-2); flex-shrink:0; }
.chart-card canvas { width: 100% !important; flex:1; display: block; min-height:0; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; margin-top: 6px; }
.chart-legend .legend-item { display: flex; align-items: center; gap: 4px; color: var(--c-text-2); }
.chart-legend .legend-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

/* ========== Filter Bar ========== */
.filter-bar {
  display: flex; gap: 8px; padding: 12px; background: var(--c-card);
  border-radius: 12px; border: 1px solid var(--c-border); margin-top: 12px;
  align-items: center; flex-wrap: wrap;
}
.filter-bar label { font-size: 12px; color: var(--c-text-2); }
.filter-bar select, .filter-bar input {
  padding: 6px 10px; border-radius: 6px; background: var(--c-card-2);
  border: 1px solid var(--c-border); color: var(--c-text); font-size: 12px; outline: none;
}

/* ========== Project Summary ========== */
.proj-summary-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.proj-summary-table th {
  text-align: center; padding: 6px 4px; font-weight: 500;
  color: var(--c-text-2); font-size: 11px; background: var(--c-card-2);
  border-bottom: 2px solid var(--c-border); white-space: nowrap;
}
.proj-summary-table td {
  text-align: center; padding: 5px 4px; border-bottom: 1px solid var(--c-card-2);
  font-size: 12px; vertical-align: middle;
}
.proj-summary-table tr:hover td { background: rgba(45,212,191,0.04); }
.proj-summary-table .status-select { max-width:80px;cursor:pointer; }
.proj-summary-table .status-select.ds { border-left: 3px solid var(--c-info); }
.proj-summary-table .status-select.cs { border-left: 3px solid var(--c-warn); }
.proj-summary-table .status-select.ws { border-left: 3px solid #b7791f; }
.proj-summary-table .status-select.ps { border-left: 3px solid var(--c-success); }
.proj-summary-table .status-select.is { border-left: 3px solid #ab47bc; }
/* Option background colors */
.proj-summary-table .status-select option[value="未开始"] { background: var(--c-border); color: var(--c-text-2); }
.proj-summary-table .status-select option[value="设计中"] { background: #1a3a5c; color: var(--c-info); }
.proj-summary-table .status-select option[value="修改中"] { background: #3d2e1a; color: var(--c-warn); }
.proj-summary-table .status-select option[value="已完成"] { background: #1a3d2e; color: var(--c-success); }
.proj-summary-table .status-select option[value="等待交底"] { background: #3d2e1a; color: var(--c-warn); }
.proj-summary-table .status-select option[value="交底完成"] { background: #1a3d2e; color: var(--c-success); }
.proj-summary-table .status-select option[value="复查结束"] { background: #1a3d2e; color: var(--c-success); }
.proj-summary-table .status-select option[value="设备复核"] { background: #3d2e1a; color: var(--c-warn); }
.proj-summary-table .status-select option[value="采购中"] { background: #1a3a5c; color: var(--c-info); }
.proj-summary-table .status-select option[value="采购完成"] { background: #1a3d2e; color: var(--c-success); }
.proj-summary-table .status-select option[value="等待施工"] { background: #3d2e1a; color: var(--c-warn); }
.proj-summary-table .status-select option[value="施工结束"] { background: #1a3d2e; color: var(--c-success); }
.proj-summary-table .status-select option[value="调试结束"] { background: #2a1a3d; color: #ab47bc; }
.proj-summary-table .proj-name { font-weight: 600; font-size: 13px; text-align: left; padding-left: 6px; }
.proj-summary-table .num { font-weight: 500; }
.proj-summary-table .num.green { color: var(--c-success); }
.proj-summary-table .num.blue { color: var(--c-primary); }
.proj-summary-table .num.orange { color: var(--c-warn); }
.proj-summary-table .num.red { color: var(--c-danger); }

/* ========== Servicing Countdown ========== */
.countdown { color: var(--c-primary); font-weight: 600; cursor: pointer; font-size: 12px; }
.countdown:hover { text-decoration: underline; }
#project-context-menu .ctx-item{ padding:8px 16px; font-size:13px; cursor:pointer; transition:background .15s; }
#project-context-menu .ctx-item:hover{ background:var(--c-border); }
#project-context-menu .ctx-danger{ color:var(--c-danger); }

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}




/* ========== Desktop App Polish ========== */

/* Font rendering */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* Custom scrollbar - desktop style */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 4px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--c-border-hi); background-clip: content-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* Selection */
::selection { background: rgba(45,212,191,0.3); color: var(--c-text); }

/* Remove default focus outlines, add custom ones */
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 1px; border-radius: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: -1px; border-color: var(--c-primary) !important; }
button:focus-visible { outline-offset: 1px; }
.nav-item:focus-visible { outline-offset: -2px; }

/* Card hover transitions - smoother */
.card { transition: border-color 0.2s; }
.card:hover { border-color: var(--c-border-hi); }
.stat-card { transition: border-color 0.2s, transform 0.2s; }
.stat-card:hover { transform: translateY(-1px); }

/* Data table header - sticky */
.data-table thead th { position: sticky; top: 0; z-index: 1; }

/* Modal backdrop - softer blur */
.modal-overlay { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Better button press state */
.btn:active { transform: scale(0.97); }
.nav-item:active { transform: scale(0.97); }

/* Sidebar - no scrollbar unless needed */
.sidebar::-webkit-scrollbar { width: 4px; }

/* Content area - smooth scroll */
#content { scroll-behavior: smooth; }

/* Toast stacking fix */
.toast-container { gap: 6px; pointer-events: none; }
.toast { pointer-events: auto; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Stats grid - max 9 cards nicely */
.stats-grid-3 { gap: 8px; }
.stat-card { padding: 12px 14px; }

/* Page header consistent spacing */
.page-header { gap: 12px; }
/* ========== Layout Fixes (class vs id mismatches) ========== */
#page-header { display: none !important; align-items: center; justify-content: space-between; margin-bottom: 0; gap: 12px; }
#page-title { font-size: 22px; font-weight: 600; }
#page-subtitle { font-size: 13px; color: var(--c-text-2); margin-top: 4px; }
#page-actions { display: flex; gap: 8px; flex-shrink: 0; }
#page-content { animation: fadeInUp 0.3s ease-out; }

/* ========== 页面滑动切换动画（左滑前进/右滑后退） ========== */
@keyframes slideInRight { from { transform: translateX(52px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInLeft  { from { transform: translateX(-52px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
#page-content.swipe-fwd { animation: slideInRight .3s cubic-bezier(.32,.72,.28,1); }
#page-content.swipe-back { animation: slideInLeft .3s cubic-bezier(.32,.72,.28,1); }

/* ========== 通用下拉菜单组件（滑动动画） ========== */
.dd-wrap { position: relative; width: 100%; }
.dd-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 4px; background: var(--c-card-2);
  border: 1px solid var(--c-border); color: var(--c-text); font-size: 13px;
  cursor: pointer; user-select: none; transition: border-color 0.2s;
}
.dd-trigger:hover { border-color: var(--c-primary); }
.dd-trigger .dd-arrow { font-size: 10px; color: var(--c-text-2); transition: transform 0.25s ease; }
.dd-panel {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 100;
  background: var(--c-card-2); border: 1px solid var(--c-border); border-radius: 6px;
  max-height: 0; opacity: 0; overflow: hidden;
  transform: translateY(-8px); pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.dd-panel.open {
  max-height: 280px; opacity: 1;
  transform: translateY(0); pointer-events: all;
  overflow-y: auto;
}
.dd-panel::-webkit-scrollbar { width: 4px; }
.dd-panel::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }
.dd-option {
  padding: 8px 12px; font-size: 13px; color: var(--c-text);
  cursor: pointer; transition: background 0.15s;
}
.dd-option:hover { background: var(--c-border); }
.dd-option:first-child { border-radius: 6px 6px 0 0; }
.dd-custom-input {
  width: 100%; padding: 6px 8px; border-radius: 4px;
  background: var(--c-card-2); border: 1px solid var(--c-border);
  color: var(--c-text); font-size: 13px; outline: none; box-sizing: border-box;
}
.dd-custom-input:focus { border-color: var(--c-primary); }
/* 原生 select 统一美化 */
select {
  padding: 6px 10px; border-radius: 6px; border: 1px solid var(--c-border);
  background: var(--c-card-2); color: var(--c-text); font-size: 12px; outline: none;
  cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
select:hover { border-color: var(--c-primary); }
select:focus { border-color: var(--c-primary); box-shadow: 0 0 0 2px rgba(45,212,191,0.15); }
/* 表格内状态选择器保持紧凑 */
#footer-left { }
#footer-right { }

/* Sidebar footer */
.sidebar-footer { padding: 12px 16px; border-top: 1px solid var(--c-border); margin-top: auto; }
.sidebar-user { font-size: 12px; color: var(--c-text-3); display: flex; align-items: center; gap: 6px; }

/* Sidebar logo */
.sidebar-logo { 
  width: 36px; height: 36px; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-deep));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}

/* Modal close button */
.close-btn { width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent; color: var(--c-text-2); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.close-btn:hover { background: var(--c-border); color: var(--c-text); }

/* ========== 设备清单 - 固定搜索栏 ========== */
.dev-filter-bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--c-bg); padding: 8px 0 4px;
  margin-bottom: 4px;
}
.dev-filter-row {
  display: flex; align-items: center; gap: 8px;
}
.dev-search-input {
  flex: 1; padding: 8px 12px; border-radius: 6px;
  border: 1px solid var(--c-border); background: var(--c-card-2);
  color: var(--c-text); font-size: 13px; outline: none;
  transition: border-color 0.2s;
}
.dev-search-input:focus { border-color: var(--c-primary); }
.dev-search-input::placeholder { color: var(--c-text-3); }
.dev-batch-bar {
  margin-top: 8px; padding: 8px 12px;
  background: var(--c-card-2); border-radius: 8px;
  border: 1px solid var(--c-border);
  display: flex; align-items: center; gap: 10px;
}
.dev-table-wrap {
  overflow-x: auto;
}

/* ========== 报价计算器 - 工具栏 ========== */
.calc-toolbar {
  display: flex; gap: 8px; margin-bottom: 12px;
  align-items: flex-start;
}

/* ========== 设备搜索输入框（联想匹配） ========== */
.ds-wrap { position: relative; width: 100%; }
.ds-input {
  width: 100%; padding: 8px 12px; border-radius: 4px;
  border: 1px solid var(--c-border); background: var(--c-card-2);
  color: var(--c-text); font-size: 13px; outline: none;
  transition: border-color 0.2s; box-sizing: border-box;
}
.ds-input:focus { border-color: var(--c-primary); }
.ds-input::placeholder { color: var(--c-text-3); }
.ds-panel {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 100;
  background: var(--c-card-2); border: 1px solid var(--c-border); border-radius: 6px;
  max-height: 0; opacity: 0; overflow: hidden;
  transform: translateY(-8px); pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.ds-panel.open {
  max-height: 320px; opacity: 1;
  transform: translateY(0); pointer-events: all;
  overflow-y: auto;
}
.ds-panel::-webkit-scrollbar { width: 4px; }
.ds-panel::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }
.ds-empty {
  padding: 12px; text-align: center; font-size: 12px; color: var(--c-text-3);
}
.ds-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; cursor: pointer; transition: background 0.15s;
  border-bottom: 1px solid var(--c-border);
}
.ds-item:last-child { border-bottom: none; }
.ds-item:hover { background: var(--c-border); }
.ds-item-name { font-size: 13px; color: var(--c-text); }
.ds-cat-tag { font-size: 10px; color: var(--c-primary); background: rgba(45,212,191,0.1); padding: 1px 6px; border-radius: 3px; margin: 0 6px; }
.ds-item-info { font-size: 11px; color: var(--c-text-2); }

/* ========== 项目详情弹窗 ========== */
@media (min-width: 769px) {
  #modal-overlay .modal:has(#modal-body .pd-hero) {
    width: min(1100px, calc(100vw - 48px)) !important;
    max-width: 1100px !important;
  }
}
.pd-hero {
  border-radius: 12px; padding: 18px 20px; margin: -4px 0 16px;
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.pd-hero-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.pd-hero-icon svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.pd-project-name-edit {
  min-width: 0; max-width: 100%; padding: 2px 0; color: #fff; font: inherit; text-align: left;
}
.pd-project-name-edit span {
  display: block; min-width: 0; font-size: 17px; font-weight: 700; line-height: 1.35;
  overflow-wrap: anywhere; word-break: break-word;
}
.pd-hero-editable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.pd-hero-editable:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,.36); }
.pd-hero-editable:active { transform: translateY(0) scale(.995); }
.pd-hero-editable:focus-visible { outline: 2px solid rgba(255,255,255,.82); outline-offset: 3px; }
.project-name-help { margin: 4px 0 0; color: var(--c-text-2); font-size: 11px; line-height: 1.6; }
.pd-status-tag {
  flex-shrink: 0; padding: 5px 14px; border-radius: 20px; white-space: nowrap;
  font-size: 12px; font-weight: 600;
}
html[data-icon-style="flat"] .pd-hero-icon { background: var(--project-stage-color,#24C1AE); border-color: transparent; box-shadow: 0 4px 10px color-mix(in srgb,var(--project-stage-color,#24C1AE) 35%,transparent); }
html[data-icon-style="flat"] .pd-hero-icon svg { width: 23px; height: 23px; stroke-width: 2; }
.pd-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px;
}
.pd-stat { 
  background: var(--c-card-2); border: 1px solid var(--c-border); border-radius: 10px;
  padding: 12px 14px; transition: border-color 0.2s;
}
.pd-stat:hover { border-color: var(--c-border-hi); }
.pd-stat-editable { cursor: pointer; transition: border-color .2s, transform .15s ease, background .15s ease; }
.pd-stat-editable:hover { background: color-mix(in srgb, var(--c-primary) 6%, var(--c-card-2)); }
.pd-stat-editable:active { transform: scale(.985); }
.pd-stat-editable:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.pd-stat-label { font-size: 11px; color: var(--c-text-2); margin-bottom: 5px; }
.pd-stat-val { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.contract-price-help{margin:0;color:var(--c-text-2);font-size:12px;line-height:1.7}
.project-price-history{margin-top:14px;padding:10px 12px;border:1px solid var(--c-border);border-radius:10px;background:var(--c-card-2)}
.project-price-history-title,.project-price-history-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.project-price-history-title{padding-bottom:7px;color:var(--c-text-2);font-size:11px}.project-price-history-title span{color:var(--c-text-3)}
.project-price-history-row{padding:7px 0;border-top:1px solid var(--c-border);font-size:11px}.project-price-history-row strong{color:var(--c-text)}.project-price-history-row span{color:var(--c-text-3)}
.project-price-history-empty{margin:14px 0 0;color:var(--c-text-3);font-size:12px}
.pd-progress-block {
  background: var(--c-card-2); border: 1px solid var(--c-border); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 16px;
}
.pd-progress {
  height: 8px; background: var(--c-border); border-radius: 4px; overflow: hidden;
}
.pd-progress-bar {
  height: 100%; border-radius: 4px; transition: width 0.5s ease;
}
.pd-section-title {
  font-size: 13px; font-weight: 600; color: var(--c-text);
  margin: 18px 0 10px; display: flex; align-items: center; gap: 6px;
}
.pd-section-title::after {
  content: ""; flex: 1; height: 1px; background: var(--c-border); margin-left: 8px;
}
.pd-steps {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 4px;
}
.pd-step {
  background: var(--c-card-2); border: 1px solid var(--c-border); border-radius: 10px;
  padding: 12px 6px; text-align: center; transition: all 0.2s;
}
.pd-step.done { border-color: rgba(16,185,129,0.72); background: rgba(52,211,153,0.2); box-shadow: inset 0 0 0 1px rgba(52,211,153,0.08); }
.pd-step.cur { border-color: var(--c-primary); background: rgba(45,212,191,0.08); }
.pd-step-ico {
  width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%;
  background: var(--c-card-2); display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.pd-step.done .pd-step-ico { background: var(--c-success); color: #fff; }
.pd-step.cur .pd-step-ico { background: var(--c-primary-deep); color: #fff; }
.pd-step-name { font-size: 12px; font-weight: 600; color: var(--c-text); }
.pd-step-st { font-size: 10px; color: var(--c-text-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-step.done .pd-step-st { color: var(--c-success); }
.pd-step.cur .pd-step-st { color: var(--c-primary); }
.pd-step.clickable { cursor: pointer; }
.pd-step.clickable:hover { border-color: var(--c-primary); box-shadow: 0 0 0 2px rgba(45,212,191,0.15); }
.pd-step.clickable:active { transform: scale(0.97); }
.pd-stage-opt {
  display: inline-block; padding: 5px 12px; border-radius: 16px;
  background: var(--c-card-2); border: 1px solid var(--c-border);
  color: var(--c-text); font-size: 12px; cursor: pointer;
  transition: all 0.15s; user-select: none;
}
.pd-stage-opt:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pd-stage-opt.sel { background: rgba(45,212,191,0.15); border-color: var(--c-primary); color: var(--c-primary); font-weight: 600; }
#pd-stage-picker {
  margin: 8px 0 4px; padding: 10px 14px;
  background: var(--c-card-2); border: 1px solid var(--c-border); border-radius: 10px;
  animation: fadeInUp 0.2s ease-out;
}
.pd-info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  background: var(--c-card-2); border: 1px solid var(--c-border); border-radius: 10px; padding: 8px 12px;
}
.pd-info { display: flex; padding: 8px 4px; border-bottom: 1px solid var(--c-card-2); }
.pd-info:nth-last-child(-n+2) { border-bottom: none; }
.pd-info-label { width: 76px; flex-shrink: 0; font-size: 12px; color: var(--c-text-2); }
.pd-info-val { flex: 1; font-size: 12px; color: var(--c-text); word-break: break-all; }
.pd-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pd-block {
  background: var(--c-card-2); border: 1px solid var(--c-border); border-radius: 10px; overflow: hidden;
}
.pd-block-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--c-border);
  font-size: 13px; font-weight: 600; color: var(--c-text);
}
.pd-block-edit {
  font-size: 11px; color: var(--c-primary); font-weight: 400; cursor: pointer;
}
.pd-block-edit:hover { text-decoration: underline; }
.pd-block table { border-collapse: collapse; }
.pd-block td { border-bottom: 1px solid var(--c-card-2); font-size: 12px; }
.pd-block tr:last-child td { border-bottom: none; }
@media (max-width: 640px) {
  .pd-stats { grid-template-columns: repeat(2, 1fr); }
  .pd-steps { grid-template-columns: repeat(3, 1fr); }
  .pd-two-col { grid-template-columns: 1fr; }
  .pd-info-grid { grid-template-columns: 1fr; }
  .pd-info:nth-last-child(-n+2) { border-bottom: 1px solid var(--c-card-2); }
}

/* ============================================
   移动端适配（安卓手机端布局优化）
   仅调整布局与排版，不改动任何功能参数
   ============================================ */
@media (max-width: 768px) {
  /* 内容区紧凑化(左右页边距收窄); 顶部加留白: 与系统状态栏拉开视觉间距(Android insets 已避让) */
  #content { padding: 16px 8px 20px; }
  #page-actions { flex-wrap: wrap; }

  /* 卡片内边距压缩 */
  .card-header { padding: 12px 14px; }
  .card-body { padding: 12px 14px; }

  /* 网格布局：多列改为单列/两列（排版优化） */
  .chart-grid { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 12px; }

  /* 表单单列化 */
  .form-row { grid-template-columns: 1fr; gap: 10px; }
  /* 覆盖 JS 内联网格（项目内容多选 4列→2列） */
  #ps-work-grid,
  #modal-body div[style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  /* 覆盖 JS 内联网格（项目卡片 auto-fill → 单列） */
  #page-content div[style*="repeat(auto-fill,minmax(300px,1fr))"] { grid-template-columns: 1fr !important; }

  /* 表格：窄屏下横向滚动，保持数据完整 */
  .card:has(.data-table) { overflow-x: auto; }
  .card:has(.proj-summary-table) { overflow-x: auto; }
  .data-table, .proj-summary-table { white-space: nowrap; }
  .data-table th, .data-table td { padding: 8px 10px; }
  .dev-table-wrap { -webkit-overflow-scrolling: touch; }

  /* 弹窗：手机端接近全屏 */
  .modal { width: calc(100% - 32px); max-width: 100%; max-height: 82vh; height: auto; border-radius: 16px; }
  .modal-header { padding: 14px 16px; }
  .modal-body { padding: 14px 16px; }
  .modal-footer { padding: 12px 16px; }
  .modal-header .close-btn { width: 32px; height: 32px; }

  /* 按钮触控友好 */
  .btn { padding: 10px 16px; font-size: 14px; }
  .btn-sm { padding: 7px 12px; font-size: 12px; }
  .tab-item { padding: 8px 14px; }

  /* 搜索与筛选栏：纵向堆叠 */
  .search-bar { flex-direction: column; align-items: stretch; }
  .search-bar input { min-height: 40px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar select, .filter-bar input { width: 100%; }
  .dev-filter-row { flex-wrap: wrap; }
  .dev-filter-row select, .dev-filter-row input { min-height: 36px; }
  .dev-batch-bar { flex-wrap: wrap; }

  /* Toast：底部居中全宽 */
  .toast-container { left: 16px; right: 16px; bottom: 16px; align-items: stretch; }
  .toast { min-width: 0; width: 100%; }

  /* 项目详情弹窗 */
  .pd-hero { grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; }
  .pd-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pd-steps { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .pd-stat { padding: 10px 12px; }

  /* 报价计算器 */
  .calc-row { flex-wrap: wrap; gap: 8px; }
  .calc-row .calc-name { flex: 1 1 100%; }
  .calc-toolbar { flex-wrap: wrap; }

  /* 页头标题略缩 */
  #page-title { font-size: 20px; }

  /* 方案书预览 */
  .proposal-preview { padding: 16px; font-size: 12px; line-height: 1.7; }

  /* 状态栏 */
  .footer-bar { padding: 6px 12px; }
}

@media (max-width: 480px) {
  /* 更窄屏幕（360-430dp 常见安卓机型） */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stats-grid-3 { grid-template-columns: 1fr; }
  .stat-card .value { font-size: 22px; }
  .dash-value { font-size: 22px; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  #ps-work-grid,
  #modal-body div[style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  .pd-stats { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .pd-steps { grid-template-columns: repeat(2, 1fr); }
  .tab-group { overflow-x: auto; white-space: nowrap; }
  .tab-item { padding: 8px 12px; font-size: 12px; }
  .pd-hero-icon { width: 44px; height: 44px; }
  .pd-hero-icon svg { width: 22px; height: 22px; }
  .card-header h3 { font-size: 13px; }
}

/* 设备入库桌面弹窗：提升到主页面层级，不受仓库 iframe 原高度限制。 */
#devices-iframe-wrap.stock-in-host-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 5000 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}

/* 入库弹窗使用主工作台级遮罩，覆盖侧边栏、顶部栏和内容区。 */
body.stock-in-workbench-modal-open { overflow: hidden !important; }
body.stock-in-workbench-modal-open::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 4990;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
/* Popover 在部分内置浏览器里不会稳定绘制 ::backdrop，始终保留主页面遮罩。 */
body.stock-in-native-popover::before { display: block; }
#devices-iframe-wrap.stock-in-host-modal::backdrop {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#devices-iframe-wrap.stock-in-host-modal #devices-frame {
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  border-radius: 0 !important;
}

/* ===== 2026 desktop dashboard refresh ===== */
.desktop-topbar,.desktop-dashboard-intro{display:none}
@media (min-width:769px){
  :root,:root[data-theme="dark"],:root[data-theme="light"]{
    --c-bg:#f3f6fc;--c-card:#fff;--c-card-2:#f7f9fd;--c-border:#d7e1f2;
    --c-border-hi:#b9c9e5;--c-primary:#3155e7;--c-primary-deep:#2948d0;
    --c-info:#3155e7;--c-success:#08a04b;--c-warn:#f35b0b;--c-danger:#d72d1d;
    --c-text:#17223b;--c-text-2:#52617a;--c-text-3:#8794aa;
  }
  body{background:#f3f6fc;color:#17223b}
  #main{height:100vh}
  #footer{display:none!important}
  .sidebar{width:244px;padding:0;background:#fff;border-color:#d7e1f2;box-shadow:none}
  .sidebar-user{min-height:110px!important;padding:22px 14px!important;margin:0 0 8px!important;border-bottom:1px solid #e3e9f3!important;align-items:center!important}
  #sidebar-avatar{width:68px!important;height:68px!important;border-radius:17px!important;background:linear-gradient(145deg,#4770f4,#2442cc)!important;font-size:26px!important;box-shadow:0 9px 24px rgba(49,85,231,.2)}
  .sidebar-user>div:last-child>div:first-child{font-size:16px!important;font-weight:800!important;color:#13203a!important}
  .sidebar-user>div:last-child>div:last-child{color:#52617a!important}
  .sidebar-user>div:last-child>div:first-child{font-size:0!important}
  .sidebar-user>div:last-child>div:first-child:after{content:'全屋智能工具箱';font-size:16px}
  .sidebar-user>div:last-child>div:last-child{font-size:0!important}
  .sidebar-user>div:last-child>div:last-child:after{content:'全屋智能体验模板';font-size:12px}
  .sidebar-online{display:inline-flex;align-items:center;gap:6px;margin-top:7px;padding:3px 9px;border:1px solid #d7e1f2;border-radius:10px;background:#f5f7fb;color:#718097;font-size:11px;font-weight:700}.sidebar-online b{font:inherit}.sidebar-online i{width:7px;height:7px;border-radius:50%;background:#94a0b2;box-shadow:0 0 0 3px #e8edf4}.sidebar-online.online{border-color:#b9e7cd;background:#effaf4;color:#079647}.sidebar-online.online i{background:#10a651;box-shadow:0 0 0 3px #d9f4e4}.sidebar-online.offline{border-color:#f1c3bf;background:#fff3f2;color:#d53b31}.sidebar-online.offline i{background:#e1483e;box-shadow:0 0 0 3px #fde0de}.sidebar-online.checking i{animation:statusPulse 1s infinite}@keyframes statusPulse{50%{opacity:.35}}
  .nav{padding:12px 8px}
  .nav-item{height:45px;margin:2px 6px;padding:0 14px;border-radius:11px;color:#3f4e66;font-size:14px;font-weight:600;gap:10px}
  .nav-item:hover{background:#f5f7fd;color:#3155e7}
  .nav-item.active{background:linear-gradient(90deg,#eef2ff,#f8f9ff);color:#3155e7;border:1px solid #d9e0ff}
  .nav-item.active:before{left:-8px;width:3px;height:26px;background:#3155e7}
  .nav-item .icon{color:#77859c}
  .nav-item.active .icon{color:currentColor}
  html[data-icon-style="flat"] .nav-item .icon{color:#fff}
  .sidebar-divider{margin:8px 14px;background:#edf1f7}
  #content{padding:0;background:#f3f6fc}
  .desktop-topbar{height:62px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #d7e1f2;position:sticky;top:0;z-index:20}
  .desktop-breadcrumb{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.desktop-breadcrumb strong{font-size:18px}.desktop-breadcrumb span{font-size:13px;color:#8491a7}
  .quotation-add-customer{display:none;height:36px;margin-left:auto;padding:0 14px;align-items:center;justify-content:center;border:0;border-radius:8px;background:#24C1AE;color:#fff;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;box-shadow:0 4px 12px rgba(36,193,174,.2)}.quotation-add-customer:hover{background:#1EAF9E}
  .desktop-statuses{display:flex;align-items:center;gap:9px}.topbar-btn{height:38px;padding:0 14px;border:1px solid #d7e1f2;border-radius:9px;background:#fff;color:#34435b;font-weight:600}
  .status-pill{height:38px;padding:0 14px;display:flex;align-items:center;gap:8px;border:1px solid #b9e7cd;border-radius:9px;background:#effaf4;color:#079647;font-size:13px;font-weight:700}.status-pill b{font:inherit}.status-pill i{width:9px;height:9px;border-radius:50%;background:#10a651;box-shadow:0 0 0 4px #d9f4e4}.status-pill.checking{border-color:#d7e0ee;background:#f5f7fb;color:#78859a}.status-pill.checking i{background:#98a4b6;box-shadow:0 0 0 4px #e8edf4}.status-pill.offline{border-color:#f0cac7;background:#fff5f4;color:#c83c34}.status-pill.offline i{background:#e25047;box-shadow:0 0 0 4px #fde2df}.status-pill.online{border-color:#b9e7cd;background:#effaf4;color:#079647}

  .ai-settings-modal{width:min(620px,calc(100vw - 40px));max-width:620px}.ai-settings-form{display:grid;gap:14px}.ai-settings-form label{display:grid;gap:7px;color:#52617a;font-size:12px;font-weight:700}.ai-settings-form input{width:100%;height:42px;padding:0 13px;border:1px solid #d3ddec;border-radius:8px;background:#f7f9fd;color:#17223b;font-family:inherit;font-size:14px;outline:0}.ai-settings-form input:focus{background:#fff;border-color:#24C1AE;box-shadow:0 0 0 3px rgba(36,193,174,.12)}.ai-settings-summary{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #d9e2ef;border-radius:9px;background:#f7f9fd}.ai-settings-summary>div{display:grid;gap:3px}.ai-settings-summary small{color:#7d899c}.ai-settings-dot{width:11px;height:11px;border-radius:50%;background:#e25047;box-shadow:0 0 0 4px #fde2df}.ai-settings-summary.is-online{border-color:#b9e7cd;background:#effaf4}.ai-settings-summary.is-online .ai-settings-dot{background:#10a651;box-shadow:0 0 0 4px #d9f4e4}.ai-settings-readonly{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 12px;border:1px solid #e0e7f1;border-radius:8px;background:#fafbfd;color:#68768d;font-size:12px}.ai-settings-readonly strong{color:#35445c;word-break:break-all;text-align:right}.ai-settings-error{padding:11px 13px;border:1px solid #f2c2bf;border-radius:8px;background:#fff3f2;color:#c03932;font-size:13px;line-height:1.5}.ai-settings-loading{padding:42px;text-align:center;color:#7d899c}.ai-settings-modal .modal-footer .ai-clear-button{margin-right:auto;color:#c83c34}.ai-settings-modal .modal-footer .btn-primary{background:#24C1AE;border-color:#24C1AE}.ai-settings-modal .modal-footer .btn-primary:disabled{opacity:.6;cursor:wait}
  .topbar-dashboard-edit{height:38px;padding:0 14px;border:1px solid #3155e7;border-radius:9px;background:#3155e7;color:#fff;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;box-shadow:0 4px 12px rgba(49,85,231,.16)}.topbar-dashboard-edit:hover{background:#2948d0}
  .admin-chip{height:48px;display:flex;align-items:center;gap:10px;padding:4px 12px 4px 5px;border:1px solid #d7e1f2;border-radius:11px;background:#f8faff;font-family:inherit;text-align:left;cursor:pointer}.admin-chip b{width:38px;height:38px;display:grid;place-items:center;border-radius:9px;background:#51627e;color:#fff;font-size:18px}.admin-chip span{display:flex;flex-direction:column}.admin-chip strong{font-size:13px;color:#17223b}.admin-chip small{font-size:10px;color:#617089}.admin-chip em{font-style:normal;color:#617089;margin-left:8px}
  #sidebar-avatar.has-avatar,#admin-header-avatar.has-avatar{padding:0!important;overflow:hidden;background:transparent!important;box-shadow:none!important}#sidebar-avatar.has-avatar:after{display:none}#sidebar-avatar img,#admin-header-avatar img{width:100%;height:100%;object-fit:cover;display:block}
  .desktop-dashboard-intro{display:flex;align-items:flex-end;justify-content:space-between;margin:18px 18px 12px;padding-bottom:12px;border-bottom:1px solid #cad7ea}.desktop-dashboard-intro span{font-size:13px;color:#3155e7;font-weight:700}.desktop-dashboard-intro h1{font-size:23px;margin:5px 0 2px}.desktop-dashboard-intro p{font-size:14px;color:#52617a}.desktop-dashboard-actions{display:flex;gap:10px}.desktop-dashboard-actions .btn{height:39px;border-radius:7px}.desktop-dashboard-actions .btn-primary{background:#3155e7;box-shadow:0 6px 16px rgba(49,85,231,.18)}
  #content:not(:has(#page-content .dash-grid)):not(:has(#page-content .ops-dashboard)) .desktop-dashboard-intro{display:none}
  #page-content{padding:0 18px 22px}
  #page-content:has(.ops-dashboard){padding-top:18px}
  .dash-grid{grid-template-columns:repeat(4,1fr);gap:0;margin:0 0 12px;padding:68px 14px 14px;background:#fff;border:1px solid #d7e1f2;border-radius:10px;position:relative;overflow:visible}
  .dash-grid:before{content:'核心指标\A 经营概览';white-space:pre;position:absolute;left:14px;top:14px;font-size:13px;line-height:24px;color:#3155e7;font-weight:700}
  .dash-stat{min-height:86px;border-radius:0!important;padding:12px!important;background:#fff!important;border:1px solid #d7e1f2;border-right:0;box-shadow:none!important;transform:none!important;cursor:pointer}
  .dash-stat:nth-child(4n){border-right:1px solid #d7e1f2}.dash-stat:first-of-type{border-radius:9px 0 0 9px!important}.dash-stat:nth-child(4){border-radius:0 9px 9px 0!important}.dash-stat:nth-child(n+5){display:none}
  .dash-label{color:#8290a6;font-size:12px;font-weight:700}.dash-value{color:#3155e7!important;font-size:23px}.dash-stat:nth-child(2) .dash-value{color:#08a04b!important}.dash-stat:nth-child(3) .dash-value{color:#f35b0b!important}.dash-stat:nth-child(4) .dash-value{color:#d72d1d!important}.dash-ico{display:none}
  .chart-grid{gap:12px}.chart-card,.card{background:#fff;border:1px solid #d7e1f2;border-radius:10px;box-shadow:none}.chart-card{height:275px}.chart-card h4{font-size:15px;color:#17223b}
  .filter-bar{background:#fff;border:1px solid #d7e1f2;border-radius:9px}.quick-btn{background:#f8faff;border-color:#d7e1f2;color:#34435b}.activity-item{border-color:#e7edf6}

  /* Reference-matched operations dashboard */
  .ops-dashboard{width:100%;padding-bottom:20px}
  .ops-overview,.ops-panel{background:#fff;border:1px solid #cfdced;border-radius:10px;box-shadow:0 1px 2px rgba(37,55,90,.02)}
  .ops-overview{padding:14px;margin-bottom:12px}
  .ops-overview-title small,.ops-panel header small{display:block;color:#3155e7;font-size:12px;font-weight:700;margin-bottom:5px}
  .ops-overview-title h2,.ops-panel header h2{font-size:18px;line-height:1.15;margin:0;color:#17223b}
  .ops-overview-grid{display:grid;grid-template-columns:repeat(5,1fr);margin-top:12px;border:1px solid #cfdbec;border-radius:9px;overflow:hidden}
  .ops-metric{min-height:86px;padding:11px 13px;border-right:1px solid #d9e3f1;background:#fff}.ops-metric:last-child{border-right:0}
  .ops-metric-label{font-size:12px;color:#8491a6;font-weight:700;margin-bottom:4px}.ops-metric-value{font-size:23px;font-weight:800;line-height:1.18;color:#3155e7}.ops-metric-note{font-size:12px;color:#405069;margin-top:3px}
  .ops-layout{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px}
  .ops-span-6{grid-column:span 6}.ops-span-4{grid-column:span 4}
  .ops-panel{padding:14px}.ops-panel header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.ops-panel-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#eff3ff;color:#3155e7;font-size:17px}
  .ops-tile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .ops-tile{height:84px;padding:11px 13px;border:1px solid #cfdbec;border-radius:9px;background:linear-gradient(180deg,#fafbff,#fff)}
  .ops-tile span{display:block;color:#8491a6;font-size:12px;font-weight:700;margin-bottom:13px}.ops-tile strong{font-size:22px;line-height:1;font-weight:800;color:#3155e7}
  .blue{color:#3155e7!important}.indigo{color:#5d55e8!important}.green{color:#079b44!important}.orange{color:#ef5b0b!important}.red{color:#cf291c!important}
  .ops-panel.module-full{grid-column:span 12}.ops-panel.module-large{grid-column:span 6}.ops-panel.module-medium{grid-column:span 4}
  [data-dashboard-module][hidden]{display:none!important}
  .dashboard-editor{position:fixed;inset:0;z-index:100000;background:rgba(22,34,59,.32);display:none;align-items:center;justify-content:center;padding:24px}.dashboard-editor.show{display:flex}
  .editor-sheet{width:min(880px,calc(100vw - 48px));height:min(760px,calc(100vh - 48px));background:#fff;border:1px solid #d7e1f2;border-radius:14px;box-shadow:0 24px 70px rgba(32,48,80,.25);display:flex;flex-direction:column;overflow:hidden;animation:editorIn .2s ease}
  @keyframes editorIn{from{transform:translateY(14px) scale(.98);opacity:0}to{transform:none;opacity:1}}
  .editor-sheet>header{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #edf1f7}.editor-sheet>header h2{font-size:18px}.editor-sheet>header button{border:0;background:none;font-size:30px;color:#536078;cursor:pointer}
  .editor-body{flex:1;overflow:auto;padding:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}.editor-summary{grid-column:1/-1;display:flex;flex-direction:column;gap:7px;padding:15px 14px;border:1px solid #ccd9ed;border-radius:10px;background:#f3f6fc}.editor-summary strong{font-size:15px}.editor-summary span{font-size:13px;color:#59677e}
  .editor-module{min-width:0;padding:15px 13px;border:1px solid #ccd9ed;border-radius:11px;background:#fff}.editor-module-head{display:flex;gap:11px;align-items:flex-start;min-height:54px}.editor-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:9px;background:#eef3ff;color:#3155e7}.editor-module-head>div{min-width:0}.editor-module-head strong{font-size:15px}.editor-module-head p{margin-top:4px;color:#52617a;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-controls{display:grid;grid-template-columns:35px minmax(0,1fr) 36px 36px;gap:6px;margin-top:12px}.editor-controls select,.editor-controls>button:not(.editor-switch){height:32px;border:1px solid #ccd9ed;border-radius:7px;background:#fff;color:#52617a}.editor-controls select{min-width:0;padding:0 8px}.editor-switch{width:34px;height:20px;margin-top:6px;padding:2px;border:0;border-radius:12px;background:#c8d1df}.editor-switch i{display:block;width:16px;height:16px;border-radius:50%;background:#fff;transition:.15s}.editor-switch.on{background:#3d5df3}.editor-switch.on i{transform:translateX(14px)}
  @media(max-width:760px){.editor-body{grid-template-columns:1fr}.editor-summary{grid-column:auto}}
  .editor-sheet>footer{height:70px;padding:12px 16px;display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #e5ebf4;background:#fff}.editor-sheet>footer button{height:40px;padding:0 16px;border:1px solid #d3ddec;border-radius:8px;background:#fff;color:#41516a;font-weight:700}.editor-sheet>footer .done{background:#3155e7;color:#fff;border-color:#3155e7}
  @media(max-width:1180px){.ops-overview-grid{grid-template-columns:repeat(3,1fr)}.ops-metric{border-bottom:1px solid #d9e3f1}.ops-span-4{grid-column:span 6}.ops-layout .ops-span-4:last-child{grid-column:span 12}}
}

@media(min-width:769px){
  #page-content:has(.fp-desk){padding-top:18px}.fp-desk{display:grid;gap:15px}.fp-search{min-height:58px;padding:9px 12px;display:flex;justify-content:flex-end;align-items:center;border:1px solid #d8e2ef;border-radius:9px;background:#fff}.fp-search>div{width:430px;height:40px;padding:0 12px;display:flex;align-items:center;gap:8px;border:1px solid #ccd9eb;border-radius:6px;color:#8da0bd}.fp-search input{flex:1;height:100%;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;outline:0;color:#17223b!important}.fp-search>div:focus-within{border-color:#24C1AE;box-shadow:0 0 0 3px rgba(36,193,174,.1)}.fp-table-wrap{overflow:hidden;border:1px solid #d7e1ee;border-radius:9px;background:#fff}.fp-table{width:100%;border-collapse:collapse}.fp-table th{height:38px;padding:0 14px;background:#edf2ff;color:#8090a8;font-size:12px;text-align:left}.fp-table td{height:78px;padding:10px 14px;border-bottom:1px solid #e5ecf5;color:#283750;font-size:13px;vertical-align:middle}.fp-table td>a,.fp-table td:nth-child(2)>a{display:block;color:#3155e7;font-size:14px;font-weight:700;cursor:pointer}.fp-table td small{display:block;margin-top:6px;color:#52617a}.fp-muted{color:#8996a9}.fp-progress{display:flex;gap:6px}.fp-progress span{padding:4px 7px;border-radius:5px;background:#f2f5fa;color:#52617a;font-size:11px}.fp-warn{color:#f05b12!important}.fp-status{display:inline-flex;padding:6px 10px;border:1px solid #d7e1ee;background:#f8faff;color:#52617a}.fp-status.quoted{border-color:#cce3ff;background:#edf5ff;color:#3155e7}.fp-actions{display:flex;align-items:center;gap:12px;white-space:nowrap}.fp-actions button{height:36px;padding:0 13px;border:0;border-radius:8px;background:#24C1AE;color:#fff;font-family:inherit;font-weight:700;cursor:pointer}.fp-actions button:hover{background:#1EAF9E}.fp-actions a{color:#34435b;font-weight:700;cursor:pointer}.fp-empty{height:180px!important;text-align:center!important;color:#8996a9!important}.fp-editor-head{height:52px;margin-bottom:12px;padding:0 14px;display:flex;align-items:center;gap:16px;border:1px solid #d7e1ee;border-radius:9px;background:#fff}.fp-editor-head button{border:0;background:transparent;color:#24C1AE;font-family:inherit;font-weight:700;cursor:pointer}.fp-editor-head strong{font-size:15px;color:#17223b}.fp-light-switch{margin-left:auto;display:flex;align-items:center;gap:8px;color:#7b8799;font-size:12px}.fp-light-switch label{position:relative;width:36px;height:20px}.fp-light-switch input{position:absolute;opacity:0}.fp-light-switch i{display:block;width:36px;height:20px;padding:2px;border-radius:12px;background:#c7d0dd;cursor:pointer;transition:.18s}.fp-light-switch i:after{content:'';display:block;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:.18s}.fp-light-switch input:checked+i{background:#24C1AE}.fp-light-switch input:checked+i:after{transform:translateX(16px)}.fp-light-switch input:checked~*{}.fp-light-switch .active-label{color:#24C1AE;font-weight:700}.light-effect-on .floorplan-canvas-wrapper{box-shadow:0 0 24px rgba(36,193,174,.13)}
  #page-content:has(.customer-search-toolbar){padding-top:18px}.customer-search-toolbar{min-height:75px;padding:14px 18px;margin-bottom:14px;display:flex;align-items:center;border:1px solid #d8e2ef;border-radius:12px;background:#fff}.customer-search-box{height:44px;width:100%;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid #ccd9eb;border-radius:6px;background:#fff;color:#8da0bd}.customer-search-box>span{font-size:17px}.customer-search-box input{flex:1;height:100%;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#17223b!important;font-size:13px!important;box-shadow:none!important;outline:0!important}.customer-search-box input::placeholder{color:#92a0b5!important}.customer-search-box:focus-within{border-color:#24C1AE;box-shadow:0 0 0 3px rgba(36,193,174,.1)}
  .quote-desk-head{height:64px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;border:1px solid #d8e2ef;border-radius:12px;background:#fff}.quote-desk-head>div{display:flex;flex-direction:column;gap:3px}.quote-desk-head strong{font-size:17px;color:#17223b}.quote-desk-head span{font-size:12px;color:#8390a5}.quote-desk-head button{height:38px;padding:0 16px;border:0;border-radius:8px;background:#24C1AE;color:#fff;font-family:inherit;font-weight:700;cursor:pointer;box-shadow:0 5px 13px rgba(36,193,174,.2)}.quote-desk-head button:hover{background:#1EAF9E}
  .quote-desk{display:grid;gap:15px;padding-top:18px}.quote-modes{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.quote-mode{height:88px;padding:16px 18px;display:flex;align-items:center;gap:14px;border:1px solid #d8e2ef;border-radius:14px;background:#fff;color:#17223b;font-family:inherit;text-align:left;cursor:pointer}.quote-mode:hover,.quote-mode.active{border-color:#5a75ff;background:#f7f8ff}.quote-mode i{width:46px;height:46px;display:grid;place-items:center;border-radius:11px;background:#eef0ff;color:#5b67f3;font-size:24px;font-style:normal}.quote-mode.sky i{background:#e8f5ff;color:#16a9ef}.quote-mode.cyan i{background:#e5f9f9;color:#08b6c2}.quote-mode span{display:flex;flex-direction:column;gap:6px}.quote-mode strong{font-size:16px}.quote-mode small{font-size:13px;color:#405069}
  .quote-toolbar{min-height:75px;padding:14px 18px;display:flex;align-items:center;gap:12px;border:1px solid #d8e2ef;border-radius:12px;background:#fff}.quote-search{height:44px;flex:1;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid #ccd9eb;border-radius:6px;color:#8da0bd}.quote-search input{flex:1;height:100%;border:0!important;background:transparent!important;box-shadow:none!important;outline:0;color:#17223b}.quote-toolbar>select{width:180px;height:44px;padding:0 12px;border:1px solid #ccd9eb;border-radius:6px;background:#fff;color:#52617a}.quote-counts{display:flex;gap:8px;white-space:nowrap}.quote-counts span{padding:7px 11px;border:1px solid #d9e2ef;border-radius:16px;background:#f8faff;color:#34435b;font-size:12px;font-weight:700}
  .quote-table-wrap{overflow:hidden;border:1px solid #d7e1ee;border-radius:12px;background:#fff}.quote-table{width:100%;border-collapse:collapse}.quote-table th{height:40px;padding:0 20px;background:#edf2ff;color:#8090a8;font-size:12px;text-align:left}.quote-table th:nth-child(n+2){text-align:center}.quote-table td{height:57px;padding:0 20px;border-bottom:1px solid #e6edf6;color:#283750;font-size:13px}.quote-table td:nth-child(n+2){text-align:center}.quote-table td:first-child{font-size:14px;color:#11213d}.quote-stage{display:inline-flex;padding:6px 12px;border-radius:15px;font-size:12px;font-weight:700}.quote-stage.quote{background:#edf5ff;color:#0c6dd8}.quote-stage.project{background:#eff8ea;color:#2fa719}.quote-stage.lead{background:#fff5e7;color:#dc7b0b}.quote-actions{white-space:nowrap}.quote-action-group{width:300px;margin:0 auto;display:grid;grid-template-columns:118px 78px 78px;align-items:center;justify-content:center;gap:8px}.quote-actions button{height:35px;padding:0 12px;margin:0;border:0;border-radius:8px;font-family:inherit;font-weight:700;cursor:pointer}.quote-actions .open{background:#24C1AE;color:#fff;box-shadow:0 4px 10px rgba(36,193,174,.22)}.quote-actions .open:hover{background:#1EAF9E}.quote-actions .deposit{background:#e8f8f5;color:#168f80;border:1px solid #b9e9e2}.quote-actions .deposit:hover{background:#d8f4ef}.quote-actions .delete{background:#fff0ee;color:#e43b2e}.quote-actions .delete:hover{background:#ffe4e1}.delete-placeholder{display:block;width:78px;height:35px}.quote-empty{height:160px!important;text-align:center!important;color:#8a96a9!important}
  .quote-pagination{height:55px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;background:#f8faff;color:#34435b;font-size:12px}.quote-pagination>div{display:flex;align-items:center;gap:10px}.quote-pagination select{height:32px;padding:0 10px;border:1px solid #d4dfed;border-radius:7px;background:#fff;color:#52617a}.quote-pagination button{width:30px;height:30px;border:0;border-radius:7px;background:#fff;color:#60708a}.quote-pagination button.active{background:#3b56ea;color:#fff;font-weight:800}
  @media(max-width:1200px){.quote-modes{grid-template-columns:repeat(2,1fr)}.quote-toolbar{flex-wrap:wrap}.quote-search{flex-basis:100%}.quote-counts{margin-left:auto}}
  .admin-popover{display:none;position:fixed;right:18px;top:67px;z-index:99999;width:270px;padding:14px 10px;background:#fff;border:1px solid #d9e3f1;border-radius:9px;box-shadow:0 12px 30px rgba(27,44,76,.18);color:#26344d}.admin-popover.show{display:block}.admin-popover:before{content:'';position:absolute;right:52px;top:-7px;width:14px;height:14px;background:#fff;border-left:1px solid #d9e3f1;border-top:1px solid #d9e3f1;transform:rotate(45deg)}
  .admin-pop-head{padding:7px 16px 12px;display:flex;flex-direction:column}.admin-pop-head strong{font-size:15px}.admin-pop-head span{font-size:12px;color:#8290a6;margin-top:2px}.admin-popover hr{height:1px;border:0;background:#e7edf6;margin:7px 10px}
  .admin-menu-item{width:100%;height:42px;padding:0 15px;display:flex;align-items:center;gap:12px;border:0;border-radius:7px;background:transparent;color:#34435b;font-family:inherit;font-size:14px;text-align:left;cursor:pointer}.admin-menu-item:hover{background:#f3f6fc;color:#3155e7}.admin-menu-item i{width:18px;font-style:normal;text-align:center}.admin-menu-item span{flex:1}.admin-menu-item em{font-size:12px;font-style:normal;color:#8894a7}.admin-menu-item.danger{color:#e22f2f}
  .admin-form{display:grid;gap:13px}.admin-form label{display:grid;gap:6px;color:#52617a;font-size:12px}.admin-form input,.danger-box input{height:40px;padding:0 12px;border:1px solid #d3ddec;border-radius:8px;background:#fff;color:#17223b}.profile-data{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid #e7edf6;color:#52617a}.profile-data strong{color:#17223b;text-align:right}.form-hint{font-size:12px;line-height:1.6;color:#7b879b}.admin-log article{padding:12px 0;border-bottom:1px solid #e7edf6}.admin-log article strong{display:block}.admin-log time{font-size:11px;color:#8995a8}.admin-log p{font-size:13px;color:#52617a;margin-top:5px}.billing-card{padding:16px;border:1px solid #d4dfef;border-radius:10px;background:#f7f9fd}.billing-card h3{margin:5px 0 8px}.billing-card>div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #e2e9f3}.danger-box{padding:15px;border:1px solid #f2b8b5;border-radius:10px;background:#fff5f4;color:#b92620}.danger-box p{font-size:13px;margin:12px 0 7px}.danger-box input{width:100%}
  .profile-avatar-row{display:flex;align-items:center;gap:16px;padding:14px;border:1px solid #d5dfed;border-radius:10px;background:#f7f9fd}.profile-avatar{width:72px;height:72px;flex:0 0 72px;display:grid;place-items:center;border-radius:16px;overflow:hidden;background:#51627e;color:#fff;font-size:24px;font-weight:800}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-avatar-row p{font-size:12px;color:#7b879b;margin:5px 0 9px}.profile-avatar-actions{display:flex;gap:7px}
}

.customer-quote-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.customer-quote-methods label{position:relative;min-height:64px;padding:10px 12px;display:flex;align-items:center;gap:10px;border:1px solid var(--c-border);border-radius:10px;background:var(--c-card-2);cursor:pointer}.customer-quote-methods input{position:absolute;opacity:0;pointer-events:none}.customer-quote-methods i{width:36px;height:36px;display:grid;place-items:center;border-radius:9px;background:rgba(36,193,174,.12);color:#24C1AE;font-style:normal;font-size:18px}.customer-quote-methods span{display:flex;flex-direction:column;gap:3px}.customer-quote-methods strong{font-size:13px;color:var(--c-text)}.customer-quote-methods small{font-size:11px;color:var(--c-text-2)}.customer-quote-methods label:has(input:checked){border-color:#24C1AE;background:rgba(36,193,174,.07);box-shadow:0 0 0 2px rgba(36,193,174,.1)}
@media(min-width:769px){#modal-overlay .modal select#c-prov,#modal-overlay .modal select#c-city,#modal-overlay .modal select#c-dist{background:#fff!important;color:#34435b!important;border:1px solid #ccd9eb!important;border-radius:7px!important;height:40px;padding:0 10px!important;box-shadow:none!important}#modal-overlay .modal select#c-prov:focus,#modal-overlay .modal select#c-city:focus,#modal-overlay .modal select#c-dist:focus{border-color:#24C1AE!important;box-shadow:0 0 0 3px rgba(36,193,174,.12)!important}.quote-create-methods{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:769px){.customer-edit-modal .modal-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),.customer-edit-modal .modal-body select,.customer-edit-modal .modal-body textarea{background:#f7f9fd!important;color:#34435b!important;border:1px solid #d5dfed!important;border-radius:7px!important;box-shadow:none!important}.customer-edit-modal .modal-body input::placeholder,.customer-edit-modal .modal-body textarea::placeholder{color:#96a2b5!important}.customer-edit-modal .modal-body input:focus,.customer-edit-modal .modal-body select:focus,.customer-edit-modal .modal-body textarea:focus{background:#fff!important;border-color:#24C1AE!important;box-shadow:0 0 0 3px rgba(36,193,174,.12)!important}.customer-edit-modal .modal-footer .btn-primary{background:#24C1AE!important;border-color:#24C1AE!important;color:#fff!important;box-shadow:0 5px 14px rgba(36,193,174,.24)!important}.customer-edit-modal .modal-footer .btn-primary:hover{background:#1EAF9E!important;border-color:#1EAF9E!important}}
@media(min-width:769px){.customer-edit-modal .pt-label,.customer-create-modal .pt-label{position:relative;min-height:40px!important;padding:0 12px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;border:1px solid #d5dfed!important;border-radius:8px!important;background:#f7f9fd!important;color:#52617a!important;font-size:13px!important;font-weight:600;transition:border-color .15s,background .15s,color .15s,box-shadow .15s}.customer-edit-modal .pt-label:hover,.customer-create-modal .pt-label:hover{border-color:#9fded6!important;background:#f2fbf9!important}.customer-edit-modal .pt-label:has(.pt-checkbox:checked),.customer-create-modal .pt-label:has(.pt-checkbox:checked){border-color:#24C1AE!important;background:#eafaf7!important;color:#168f81!important;box-shadow:0 0 0 2px rgba(36,193,174,.08)}.customer-edit-modal .pt-checkbox,.customer-create-modal .pt-checkbox{width:16px!important;height:16px!important;margin:0!important;accent-color:#24C1AE!important;cursor:pointer}.customer-edit-modal .pt-label:has(.pt-checkbox:disabled),.customer-create-modal .pt-label:has(.pt-checkbox:disabled){opacity:.5;cursor:not-allowed}}
@media(min-width:769px){.modal.customer-create-modal{width:min(1120px,calc(100vw - 48px));max-height:calc(100vh - 70px)}.customer-create-modal .modal-body{max-height:calc(100vh - 205px);overflow-y:auto;padding:22px 28px}.customer-create-modal .modal-header{padding:17px 28px}.customer-create-modal .modal-footer{padding:14px 28px}.customer-create-modal .customer-quote-methods{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ============================================
   移动端纵向布局（安卓手机端）
   手机端由底部 tabbar 导航，侧边栏整体隐藏
   ============================================ */
@media (max-width: 768px) {
  :root {
    --mobile-page-safe-top: max(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)), 24px);
    --mobile-page-safe-bottom: max(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)), 16px);
  }
  html, body { height: 100dvh; min-height: 100dvh; }
  /* 主布局改为纵向：内容区在上，tabbar 在下 */
  body { padding-top: var(--mobile-page-safe-top); }
  #main { flex-direction: column; height: calc(100dvh - var(--mobile-page-safe-top)); }

  /* 内容区占满整宽, 并撑满可视高度: 数据不足时也不露出大片背景空白 */
  #content { flex: 1; min-height: 0; }
  #page-content { min-height: 100%; }

  /* 底部状态栏占满全宽 */
  .footer-bar { left: 0; }
}


/* ========== 智居工作台首页（P3） ========== */
.wk { max-width: 640px; margin: 0 auto; }
.wk-hello { margin-bottom: 14px; }
.wk-hi { font-size: var(--fs-md); font-weight: 600; color: var(--c-text); }
.wk-sub { font-size: var(--fs-xs); color: var(--c-text-2); margin-top: 3px; }
.wk-ring { background: var(--c-card); border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.wk-ring-t { flex: 1; min-width: 0; }
.wk-ring-l { font-size: var(--fs-xs); color: var(--c-text-2); }
.wk-ring-v { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text); margin-top: 2px; }
.wk-ring-m { font-size: var(--fs-xs); color: var(--c-warn); margin-top: 4px; }
.mobile-home-sync { display:none; flex-shrink:0; border:0; font-family:inherit; cursor:pointer; }
.wk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.wk-stat { background: var(--c-card); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.wk-stat-l { font-size: var(--fs-xs); color: var(--c-text-2); }
.wk-stat-v { font-size: var(--fs-xl); font-weight: 600; margin-top: 2px; }
.wk-sec { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text); margin: 0 0 8px; }
.wk-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.wk-qbtn { background: var(--c-card-2); border: 1px solid var(--c-border); border-radius: 12px; padding: 10px 6px; text-align: center; font-size: var(--fs-xs); color: var(--c-text); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: all .15s; }
.wk-qbtn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.wk-qbtn:active { transform: scale(.97); }
.finance-summary{display:grid;gap:12px;color:var(--c-text)}
.finance-summary-hero{min-height:108px;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-radius:15px;background:linear-gradient(135deg,#24C1AE 0%,#168f80 100%);box-shadow:0 10px 24px rgba(36,193,174,.2);color:#fff}
.finance-summary-hero>div{min-width:0;display:grid;gap:7px}.finance-summary-hero span{font-size:12px;opacity:.86}.finance-summary-hero strong{overflow:hidden;font-size:28px;line-height:1.1;letter-spacing:-.7px;text-overflow:ellipsis;white-space:nowrap}.finance-summary-hero em{flex:0 0 auto;padding:6px 10px;border:1px solid rgba(255,255,255,.32);border-radius:999px;background:rgba(255,255,255,.14);font-size:11px;font-style:normal;font-weight:700}
.finance-summary-progress{padding:15px;border:1px solid var(--c-border);border-radius:13px;background:var(--c-card)}.finance-summary-progress>div:first-child,.finance-summary-progress p{display:flex;align-items:center;justify-content:space-between;gap:12px}.finance-summary-progress>div:first-child span{color:var(--c-text-2);font-size:12px}.finance-summary-progress>div:first-child strong{color:var(--c-primary);font-size:16px}.finance-summary-track{height:8px;margin-top:11px;overflow:hidden;border-radius:999px;background:var(--c-border)}.finance-summary-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#24C1AE,#34D399)}.finance-summary-progress p{margin:9px 0 0;color:var(--c-text-2);font-size:10px}
.finance-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.finance-summary-grid article{position:relative;min-width:0;min-height:108px;padding:14px;display:grid;align-content:space-between;gap:5px;overflow:hidden;border:1px solid var(--c-border);border-radius:13px;background:var(--c-card)}.finance-summary-grid article:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--finance-accent,#24C1AE)}.finance-summary-grid article span{color:var(--c-text-2);font-size:11px}.finance-summary-grid article strong{overflow:hidden;color:var(--finance-accent,#24C1AE);font-size:19px;letter-spacing:-.3px;text-overflow:ellipsis;white-space:nowrap}.finance-summary-grid article small{color:var(--c-text-3);font-size:9px}.finance-summary-grid .received{--finance-accent:#20B486}.finance-summary-grid .pending{--finance-accent:#F59E0B}.finance-summary-grid .profit{--finance-accent:#24C1AE}.finance-summary-grid .profit.negative{--finance-accent:#F87171}.finance-summary-grid .rate{--finance-accent:#6366F1}
@media(max-width:768px){.finance-summary-page .fullpage-body{padding:14px;background:#f4f7f8}.finance-summary-page .fullpage-foot{padding:12px 16px calc(12px + var(--mobile-page-safe-bottom));background:#fff}.finance-summary-page .fullpage-foot .btn{height:46px;border-radius:11px}.finance-summary-hero{min-height:102px}.finance-summary-grid article{min-height:102px}}
.wk-recent { background: var(--c-card); border-radius: 14px; padding: 4px 14px; }
.wk-ritem { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--c-border); }
.wk-ritem:last-child { border-bottom: none; }
.wk-rdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.wk-ri { flex: 1; min-width: 0; }
.wk-rn { font-size: var(--fs-sm); color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-rs { font-size: var(--fs-xs); color: var(--c-text-2); margin-top: 2px; }
.wk-rp { font-size: var(--fs-sm); color: var(--c-warn); font-weight: 600; }
/* ===== "我的"页功能入口：单列卡片 ===== */
.wk-mine-grid { display: flex; flex-direction: column; gap: 10px; }
.wk-mine-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all .15s;
}
.wk-mine-card:hover { border-color: var(--c-primary); }
.wk-mine-card:active { transform: scale(.97); }
.wk-mine-card .mc-ic {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--c-card-2);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-lg); flex-shrink: 0;
}
.wk-mine-card .mc-body { flex: 1; min-width: 0; }
.wk-mine-card .mc-n { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text); }
.wk-mine-card .mc-d { font-size: var(--fs-xs); color: var(--c-text-2); margin-top: 2px; line-height: 1.4; }
.wk-mine-card .mc-go { font-size: var(--fs-md); color: var(--c-text-3); flex-shrink: 0; }
@media (min-width: 769px) {
  .wk { max-width: 900px; }
  .wk-stats { grid-template-columns: repeat(4, 1fr); }
  .wk-quick { grid-template-columns: repeat(4, 1fr); }
}

/* ========== 底部导航 Tabbar（P2） ========== */
#tabbar { display: none; }
@media (max-width: 768px) {
  .wk-ring { position:relative; padding-right:92px; }
  .mobile-home-sync { display:inline-flex; position:absolute; top:50%; right:8px; transform:translateY(-50%); min-width:78px; min-height:40px; align-items:center; justify-content:center; gap:5px; margin:0; padding:3px 8px; border:1px solid #d7e1f2; border-radius:12px; background:#f5f7fb; color:#718097; font-size:10px; font-weight:700; }
  .mobile-home-sync b { font:inherit; }.mobile-home-sync i { width:7px; height:7px; border-radius:50%; background:#94a0b2; box-shadow:0 0 0 3px #e8edf4; }.mobile-home-sync.online { border-color:#b9e7cd; background:#effaf4; color:#079647; }.mobile-home-sync.online i { background:#10a651; box-shadow:0 0 0 3px #d9f4e4; }.mobile-home-sync.offline { border-color:#f1c3bf; background:#fff3f2; color:#d53b31; }.mobile-home-sync.offline i { background:#e1483e; box-shadow:0 0 0 3px #fde0de; }.mobile-home-sync.checking i { animation:statusPulse 1s infinite; }
  #tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    background: var(--c-card); border-top: 1px solid var(--c-border);
    height: calc(56px + var(--mobile-page-safe-bottom));
    padding-bottom: var(--mobile-page-safe-bottom);
  }
  .tabbar-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: var(--c-text-3); font-size: var(--fs-xs); cursor: pointer;
    transition: color .15s; -webkit-tap-highlight-color: transparent;
  }
  .tabbar-item.active { color: var(--c-primary); }
  .tabbar-item:active { transform: scale(.95); }

  /* 手机端隐藏顶部菜单卡片条与状态栏，由底部导航取代 */
  .sidebar { display: none !important; }
  #footer { display: none; }
  #content { padding-bottom: calc(76px + var(--mobile-page-safe-bottom)) !important; }
}

/* ========== 手机端弹窗表单优化（添加/编辑客户等） ========== */
@media (max-width: 768px) {
  /* 输入框/下拉/文本域：加大触控高度与字号（防 iOS 聚焦缩放） */
  :is(.modal,.fullpage) .form-group input,
  :is(.modal,.fullpage) .form-group select,
  :is(.modal,.fullpage) .form-group textarea,
  :is(.modal,.fullpage) .form-group .dd-trigger {
    padding: 12px 14px !important;
    font-size: 16px !important;
    border-radius: 8px;
  }
  :is(.modal,.fullpage) .form-group label { font-size: 13px; margin-bottom: 6px; }
  :is(.modal,.fullpage) .form-group { margin-bottom: 16px; }

  /* 地区三级下拉（省/市/区）手机端纵向堆叠 */
  .region-selects { flex-direction: column; }
  #c-prov, #c-city, #c-dist {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    border-radius: 8px;
    margin-bottom: 6px;
  }
  .region-selects select:last-child { margin-bottom: 0; }

  /* 来源/状态自定义下拉面板：限制宽度防溢出 */
  .dd-panel { max-width: calc(100vw - 48px); }

  /* 项目内容多选：大触控块 */
  .pt-label { padding: 13px 8px; font-size: 14px; border-radius: 8px; }
  .pt-label input[type=checkbox] { width: 16px; height: 16px; }

  /* 弹窗底部按钮：全宽等分，触控友好 */
  .modal-footer { display: flex; gap: 8px; }
  .modal-footer .btn { flex: 1; padding: 12px 10px; font-size: 15px; }

  /* 弹窗标题加大 */
  .modal-header h2, .modal-header h3 { font-size: 17px; }

  /* ---- 模态框 → 底部抽屉（手机端） ----
     全宽贴底 + 顶部大圆角 + 底部滑入动画 + 拖拽手柄 */
  .modal-overlay {
    align-items: flex-end;
    justify-content: center;
    padding: var(--mobile-page-safe-top) 0 var(--mobile-page-safe-bottom);
  }
  .modal {
    position: relative;
    width: 100%; max-width: 100%;
    max-height: calc(100dvh - var(--mobile-page-safe-top) - var(--mobile-page-safe-bottom)); min-height: 0;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    animation: sheetIn .28s cubic-bezier(.32,.72,.28,1);
  }
  .modal::before {
    content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 4px; border-radius: 2px; background: var(--c-border-hi);
  }
  .modal-header { padding: 22px 20px 14px; }
  @keyframes sheetIn {
    from { transform: translateY(100%); opacity: .6; }
    to { transform: translateY(0); opacity: 1; }
  }
}

/* ================================================================
   手机端 UI 精修 v3.0
   - 统一圆角/间距节奏, 暗色滚动条, 顶部菜单条优化
   - tabbar 激活指示器, 触控反馈强化, 沉浸式安全区收尾
   ================================================================ */

/* ---- 全屏页面核心结构(不受媒体查询限制, 横屏旋转后仍生效) ---- */
.fullpage-overlay {
  position: fixed;
  top: var(--mobile-page-safe-top, 0);
  right: 0;
  bottom: var(--mobile-page-safe-bottom, 0);
  left: 0;
  z-index: 3000;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.32,.72,.28,1);
}
.fullpage-overlay.show { transform: translateY(0); }
.fullpage-overlay.is-secondary-page {
  top: var(--mobile-page-safe-top, 0);
  right: 0;
  bottom: var(--mobile-page-safe-bottom, 0);
  left: 0;
}
.fullpage-overlay.project-detail-subpage {
  top: max(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)), 28px) !important;
}
.fullpage {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.fullpage-head {
  display: flex;
  align-items: center;
  padding: 12px 8px 12px 4px;
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}
.fullpage-back {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 10px;
}
.fullpage-back:active { background: var(--c-card-2); }
.fullpage-title {
  flex: 1;
  text-align: center;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--c-text);
  margin-right: 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fullpage-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  padding: 16px 10px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.fullpage-overlay.is-confirm-page {
  padding: 16px;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .48);
}
.is-confirm-page .fullpage {
  width: min(360px, 100%);
  max-height: min(440px, calc(100dvh - 80px));
  flex: 0 1 auto;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: var(--c-card);
  box-shadow: 0 20px 55px rgba(15, 23, 42, .28);
}
.is-confirm-page .fullpage-head { padding: 10px 12px; }
.is-confirm-page .fullpage-body { padding: 20px 18px; }
.is-confirm-page .fullpage-foot { padding: 12px 16px; }
.fullpage-body::-webkit-scrollbar { display: none; }
.fullpage-body * { scrollbar-width: none; -ms-overflow-style: none; }
.fullpage-body *::-webkit-scrollbar { display: none; }
.fullpage-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--c-border);
  background: var(--c-card);
}
.fullpage-foot .btn {
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  padding: 12px 18px;
  font-size: 15px;
  border-radius: 10px;
  font-weight: 500;
}

@media (min-width:769px) {
  #modal-overlay .modal.secondary-modal {
    width: min(920px, calc(100vw - 64px));
    max-width: 920px;
    max-height: calc(100vh - 64px);
    border-radius: 16px;
  }
  #modal-overlay .secondary-modal .modal-header { padding: 18px 26px 15px; }
  #modal-overlay .secondary-modal .modal-body { max-height: calc(100vh - 196px); padding: 22px 26px; overflow-y: auto; }
  #modal-overlay .secondary-modal .modal-footer { padding: 14px 26px 18px; }
}

/* ---- 暗色主题细滚动条(全局, 桌面/手机一致) ---- */
* { scrollbar-width: thin; scrollbar-color: var(--c-border-hi) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--c-border-hi); border-radius: 3px; }
*::-webkit-scrollbar-thumb:hover { background: var(--c-text-3); }

@media (max-width: 768px) {
  /* ---- 侧边栏已在手机端整体隐藏, 无多余滚动条规则 ---- */

  /* ---- 内容区底部预留: tabbar(56) + 底部安全区 ---- */
  #content { padding-bottom: calc(80px + var(--mobile-page-safe-bottom)) !important; }

  /* ---- 手机端隐藏内容区滚动条(保留滚动功能, 仅视觉隐藏) ---- */
  #content { scrollbar-width: none; -ms-overflow-style: none; }
  #content::-webkit-scrollbar { display: none; }
  #content::-webkit-scrollbar-thumb { display: none; }
  #content * { scrollbar-width: none; -ms-overflow-style: none; }
  #content *::-webkit-scrollbar { display: none; }
  #content *::-webkit-scrollbar-thumb { display: none; }

  /* ---- 卡片圆角与描边统一(8pt 节奏) ---- */
  .card,
  .wk-stat, .wk-ring, .wk-recent, .wk-mine-card,
  .wk-qbtn, .stat-card, .dash-card { border-radius: 14px; }

  /* ---- 底部 tabbar: 激活指示器 + 视觉细化 ---- */
  #tabbar {
    height: calc(58px + var(--mobile-page-safe-bottom));
    box-shadow: 0 -4px 16px rgba(0,0,0,.35);
  }
  .tabbar-item { position: relative; gap: 4px; }
  .tabbar-item::before {
    content: ''; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 26px; height: 3px; border-radius: 0 0 3px 3px;
    background: var(--c-primary);
    transition: transform .18s ease; transform-origin: center;
  }
  .tabbar-item.active::before { transform: translateX(-50%) scaleX(1); }
  .tabbar-item.active { font-weight: 500; }
  .tabbar-item svg { transition: transform .15s ease; }
  .tabbar-item.active svg { transform: translateY(-1px); }

  /* ---- 列表/卡片触控反馈 ---- */
  .wk-ritem:active { background: var(--c-card-2); border-radius: 8px; }
  .wk-mine-card:active, .wk-qbtn:active { transform: scale(.97); }
  .wk-stat:active { transform: scale(.98); }

  /* ---- 首页问候区 ---- */
  .wk-hi { font-size: 18px; }
  .wk-hello { padding: 0 2px; }

  /* ---- 登录页(AuthUI)手机端细节 ---- */
  #login-screen > .auth-card { width: min(320px, 86vw); }
  #auth-user:focus, #auth-pass:focus, #auth-pass2:focus, #auth-server:focus,
  .modal .form-group input:focus, .modal .form-group select:focus, .modal .form-group textarea:focus {
    border-color: var(--c-primary) !important;
    box-shadow: 0 0 0 3px rgba(45,212,191,.12);
  }

  /* ---- 表格容器圆角与滚动体验 ---- */
  .card:has(.data-table) { border-radius: 14px; }
  .dev-table-wrap { border-radius: 12px; }

  /* ---- 设备页 iframe: 高度由内容决定, 消除与 tabbar 之间空白 ----
     iframe 子页通过 postMessage 上报实际内容高度, 父页动态设置高度;
     内容少时 iframe 不会撑满屏幕, 下方不再留空。 */
.fp-console-page{padding:4px!important;overflow:auto}.fp-design-console{min-width:1180px;min-height:calc(100vh - 76px);padding:10px;background:#f4f7fc;color:#17223b}.fp-quote-tip{height:48px;padding:8px 10px;display:flex;flex-direction:column;justify-content:center;border:1px solid #b9caff;border-radius:7px;background:#f1f4ff}.fp-quote-tip strong{font-size:13px}.fp-quote-tip span{margin-top:2px;color:#73819a;font-size:11px}.fp-scheme-fields{height:48px;margin-top:6px;padding:5px 9px;display:grid;grid-template-columns:1.2fr 1.15fr .95fr;gap:10px;align-items:center;border:1px solid #d7e1ee;border-radius:7px;background:#fff}.fp-scheme-fields label{display:grid;grid-template-columns:64px 1fr;gap:7px;align-items:center;font-size:12px;font-weight:700}.fp-scheme-fields input,.fp-scheme-fields select{height:30px;padding:0 10px;border:1px solid #ccd9eb;border-radius:5px;background:#fff;color:#53617a;font-family:inherit;outline:0}.fp-command-row{min-height:42px;margin-top:5px;padding:5px 8px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #d7e1ee;border-radius:7px;background:#fff}.fp-command-row>div{display:flex;gap:6px}.fp-command-row button{height:30px;padding:0 11px;border:1px solid #cbd8e9;border-radius:5px;background:#fff;color:#35445d;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}.fp-command-row button.primary{border-color:#24C1AE;background:#24C1AE;color:#fff}.fp-command-row button.danger{border-color:#ffc2bd;background:#fff6f5;color:#e3473e}.fp-main-workspace{height:calc(100vh - 230px);min-height:590px;margin-top:6px;display:grid;grid-template-columns:238px minmax(0,1fr);gap:6px}.fp-left-panel{padding:8px;overflow:hidden auto;border:1px solid #d6e0ed;border-radius:7px;background:#fff}.fp-left-panel section{padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #e3eaf3}.fp-side-title{height:26px;display:flex;align-items:center;justify-content:space-between}.fp-side-title strong{font-size:13px}.fp-side-title span{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#75839a;font-size:10px}.fp-drawing-card{padding:7px;border:1px solid #5578ff;border-radius:7px;background:#f0f4ff}.fp-drawing-card>strong{height:25px;padding:0 8px;display:flex;align-items:center;overflow:hidden;border:1px solid #d4dfef;border-radius:5px;background:#fff;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.fp-drawing-card>div{margin-top:6px;display:grid;grid-template-columns:38px 1fr 24px;gap:4px;align-items:center}.fp-drawing-card input{height:25px;padding:0 7px;border:1px solid #cfdbee;border-radius:4px;background:#fff;font-size:11px}.fp-drawing-card small,.fp-drawing-card>span{color:#7e8ca3;font-size:10px}.fp-drawing-card>span{display:block;margin-top:5px}.icon-danger{border:0!important;background:transparent!important;color:#ff7770!important}.fp-add-drawing{width:100%;height:29px;margin-top:6px;border:1px solid #cdd9e9;border-radius:5px;background:#fff;color:#42516a;font-family:inherit}.fp-region-section{padding:9px!important;border:1px solid #dbe4ef!important;border-radius:7px;background:#f5f7fb}.fp-region-section strong{font-size:12px}.fp-region-section p,.fp-region-section small{display:block;margin:4px 0;color:#7e8ca3;font-size:10px;line-height:1.45}.fp-region-section>div{display:grid;grid-template-columns:1fr 65px;gap:5px}.fp-region-section select,.fp-region-section button{height:29px;border:1px solid #d3deec;border-radius:5px;background:#fff;color:#718098;font-size:10px}.fp-lights-section{border-bottom:0!important}.fp-inline-switch{height:28px;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700}.fp-inline-switch label{width:32px;height:18px}.fp-inline-switch input{display:none}.fp-inline-switch i{display:block;width:32px;height:18px;padding:2px;border-radius:10px;background:#bec9d8}.fp-inline-switch i:after{content:'';display:block;width:14px;height:14px;border-radius:50%;background:#fff;transition:.15s}.fp-inline-switch input:checked+i{background:#24C1AE}.fp-inline-switch input:checked+i:after{transform:translateX(14px)}.fp-inline-switch button{margin-left:auto;width:23px;height:23px;border:1px solid #f0ba71;border-radius:6px;background:#fff8e9;color:#df7900}.fp-lights-section .plan-lighting-sidebar-grid{max-height:210px;padding:0;grid-template-columns:repeat(5,1fr);gap:5px}.fp-lights-section .plan-lighting-sidebar-button{height:37px;padding:0}.fp-lights-section .plan-lighting-visual{width:31px;height:31px}.fp-lights-section .plan-lighting-visual .lighting-body{width:22px;height:22px;font-size:12px}.fp-lights-section .lighting-name{display:none}.fp-light-stats{margin-top:7px;padding:7px;display:flex;justify-content:space-between;border:1px solid #e0e8f1;border-radius:8px;font-size:11px}.fp-light-stats span:first-child{color:#b55d00}.fp-light-stats span:last-child{color:#0a9e83}.fp-canvas-stage{min-width:0;overflow:hidden;border:1px solid #d6e0ed;border-radius:7px;background:#fff}.fp-canvas-stage .floorplan-toolbar{height:38px;margin:0;padding:4px 8px;border:0;border-bottom:1px solid #e1e8f1;border-radius:0;background:#fff}.fp-canvas-stage .floorplan-toolbar input{width:160px;height:28px;margin-left:auto;padding:0 8px;border:1px solid #d2ddea;border-radius:5px;background:#fff;color:#34435b}.fp-canvas-stage .floorplan-canvas-wrapper{position:relative;height:calc(100% - 38px);overflow:auto;display:flex;align-items:flex-start;padding:8px;background:#f4f7fc}.fp-canvas-stage canvas{width:auto!important;max-width:none;height:100%!important;min-height:560px;border:1px solid #dbe3ee;background:#fff;cursor:crosshair}.fp-empty-blueprint{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:7px;color:#7d899d}.fp-empty-blueprint strong{font-size:15px}.fp-empty-blueprint span{font-size:11px}.fp-empty-blueprint button{height:30px;padding:0 15px;border:0;border-radius:6px;background:#24C1AE;color:#fff}.fp-design-console:fullscreen{padding:10px;overflow:auto;background:#f4f7fc}.fp-design-console:fullscreen .fp-main-workspace{height:calc(100vh - 165px)}

.fp-new-design-modal{width:min(720px,calc(100vw - 48px));max-width:720px!important;border-radius:14px!important;background:#fff!important;color:#17223b!important}.fp-new-design-modal .modal-header{padding:22px 36px 14px;border-bottom:1px solid #d7e1ed}.fp-new-design-modal .modal-header h3{font-size:20px;font-weight:500}.fp-new-design-modal .close-btn{color:#7e8999}.fp-new-design-modal .modal-body{padding:20px 36px 14px}.fp-new-design-modal .modal-footer{padding:14px 36px 26px;border-top:1px solid #d7e1ed}.fp-new-design-modal .modal-footer .btn{height:38px;padding:0 18px}.fp-new-design-modal .modal-footer .btn-primary{background:#24C1AE!important;border-color:#24C1AE!important;box-shadow:0 7px 18px rgba(36,193,174,.2)}.fp-new-design-form{display:grid;gap:20px}.fp-new-design-form label{display:flex;flex-direction:column;gap:10px;color:#47556d;font-size:13px;font-weight:700}.fp-new-design-form input,.fp-new-design-form select{width:100%;height:39px;padding:0 12px;border:1px solid #cbd8eb;border-radius:7px;background:#fff;color:#34435b;font-family:inherit;font-size:14px;outline:0}.fp-new-design-form input::placeholder{color:#a2aec2}.fp-new-design-form input:focus,.fp-new-design-form select:focus{border-color:#24C1AE;box-shadow:0 0 0 3px rgba(36,193,174,.1)}.fp-new-design-form select:disabled{background:#f7f9fc;color:#a2aec2}.fp-new-customer-row{display:grid;grid-template-columns:minmax(0,1fr) 134px;gap:12px;align-items:end}.fp-new-customer-row button{height:39px;border:1px solid #cbd8eb;border-radius:7px;background:#fff;color:#293950;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}.fp-new-customer-row button:hover{border-color:#24C1AE;color:#168f80}

  #devices-iframe-wrap {
    border-radius: 14px;
    overflow: hidden;
  }
  #devices-iframe-wrap iframe {
    display: block;
    width: 100%;
    border: none;
  }
  /* 设备仓库全屏 tab(入库/出库等): 临时取消内容区底部预留, iframe 贴 tabbar */
  #content.devices-fp { padding-bottom: 0 !important; }
  #content.devices-fp #devices-iframe-wrap { border-radius: 0; }
  #content.devices-fp #devices-iframe-wrap iframe { border-radius: 0; }
  /* 设备仓库全屏 tab: 手机端 iframe 容器固定覆盖整个页面(含底部菜单), 与主应用"编辑客户"全屏页一致 */
  #content.devices-fp #devices-iframe-wrap.devices-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 2500;
    border-radius: 0;
    background: var(--c-bg);
  }
  #content.devices-fp #devices-iframe-wrap.devices-fullscreen iframe { border-radius: 0; }

  /* 全屏页面核心结构已移至媒体查询外(见上方), 以下仅保留移动端特有规则 */
  .mobile-form-page .fullpage-body {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 14px 24px;
  }
  .project-detail-page .pd-hero,
  .project-detail-page .pd-stats,
  .project-detail-page .pd-progress-block,
  .project-detail-page .pd-info-grid,
  .project-detail-page .pd-block { border-radius: 10px; }

  .mobile-delete-confirm {
    position: fixed;
    inset: 0;
    z-index: 6200;
    padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .48);
  }
  .mobile-delete-confirm-card {
    width: min(340px, 100%);
    padding: 22px 18px 16px;
    border: 1px solid var(--c-border);
    border-radius: 16px;
    background: var(--c-card);
    box-shadow: 0 20px 55px rgba(15, 23, 42, .3);
    color: var(--c-text);
    text-align: center;
  }
  .mobile-delete-confirm-icon { margin-bottom: 10px; font-size: 36px; }
  .mobile-delete-confirm-card strong { display: block; font-size: 16px; }
  .mobile-delete-confirm-card p { margin: 8px 0 18px; color: var(--c-text-2); font-size: 12px; line-height: 1.6; }
  .mobile-delete-confirm-card > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mobile-delete-confirm-card .btn { min-height: 42px; }

  /* 项目详情(手机端): 底部操作区放在页面内容最底部, 滑动到底部才可见 —— 删除(左)/保存(右) */
  .pd-actions {
    margin-top: 18px;
    padding: 16px 2px 8px;
    border-top: 1px solid var(--c-border);
    display: flex;
    align-items: stretch;
    gap: 12px;
  }
  /* 删除项目: 次级视觉(透明底+红描边), 弱化干扰 */
  .pd-actions .pd-actions-del {
    flex: 1;
    padding: 13px 10px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    background: transparent;
    border: 1px solid rgba(248,113,113,.45);
    color: var(--c-danger);
    white-space: nowrap;
  }
  .pd-actions .pd-actions-del:active { background: rgba(248,113,113,.12); }
  /* 保存: 主操作, 更宽更突出(渐变主色+发光) */
  .pd-actions .pd-actions-save {
    flex: 2;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(45,212,191,.28);
  }
}

/* ================================================================
 * 登录 / 注册界面 (v3.0.4)
 *  - 整屏透明, 无卡片底色 / 无圆框, 直接显示在 body 主题背景上
 *  - 注册 与 服务器设置 放同一行底部入口
 *  - 服务器地址弹层(底部滑入) [hidden] 强制隐藏
 * ================================================================ */

/* ---- 屏幕容器(透明) + 去掉点击高亮直角 ---- */
#login-screen {
  background: transparent !important;
  padding: 24px 16px;
}
#login-screen * {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

/* ---- 登录表单(无底色无边框, 直接显示) ---- */
.auth-card {
  position: relative;
  width: min(320px, 86vw);
  padding: 20px 0 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.auth-head { text-align: center; margin-bottom: 24px; }
.auth-logo {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--auth-accent, #24C1AE);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(36, 193, 174, .28);
}
.auth-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.auth-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--c-text);
  letter-spacing: .5px;
}

/* ---- 输入框 ---- */
.auth-field { margin-bottom: 14px; }
.auth-field input {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--auth-input-radius, 10px);
  background: var(--c-card-2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
[data-theme="light"] .auth-field input {
  background: #F4F7FB;
  border-color: #DCE3EC;
}
.auth-field input::placeholder { color: var(--c-text-3); }
.auth-field input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(45,212,191,.14);
}

/* ---- 错误提示 ---- */
.auth-msg {
  font-size: 12px;
  color: var(--c-danger);
  min-height: 16px;
  margin: 4px 0 10px;
  text-align: center;
}

/* ---- 主按钮 ---- */
.auth-btn {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 10px;
  background: var(--auth-accent, #24C1AE);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 7px 18px rgba(36, 193, 174, .28);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.auth-btn:hover { transform: translateY(-1px); background:#1EAF9E; box-shadow:0 10px 24px rgba(36,193,174,.36); }
.auth-btn:active { transform: translateY(1px); background:#199A8C; box-shadow:0 4px 10px rgba(36,193,174,.25); }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.auth-connection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin: 0 0 8px;
  color: var(--c-text-3);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.auth-connection[data-state="failed"] { color: var(--c-danger); }
.auth-connection-retry {
  flex-shrink: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: transparent;
  color: var(--auth-accent, #24C1AE);
  font: inherit;
  cursor: pointer;
}
.auth-connection-retry[hidden] { display: none; }


/* ---- 底部一行: 注册账号 | 服务器设置 ---- */
.auth-alt-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 16px;
}
.auth-alt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--c-text-2);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 8px;
  transition: all .15s ease;
}
.auth-alt-btn svg { display: block; opacity: .85; }
.auth-alt-btn:hover { color: var(--c-primary); background: rgba(45,212,191,.08); }
.auth-alt-btn:active { transform: scale(.95); }
[data-theme="light"] .auth-alt-btn:hover { background: rgba(14, 147, 132, .07); }
.auth-alt-sep {
  width: 1px;
  height: 14px;
  background: var(--c-border);
  margin: 0 2px;
}
[data-theme="light"] .auth-alt-sep { background: #DCE3EC; }

/* ---- 底部小字 ---- */
.auth-foot-txt {
  text-align: center;
  margin-top: 14px;
  font-size: 11px;
  color: var(--c-text-3);
}
[data-theme="light"] .auth-foot-txt { color: #8B95A8; }

/* ---- 服务器地址设置弹层(底部滑入) ---- */
.server-pop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: server-pop-fade .18s ease;
}
/* 关键修复: HTML 的 hidden 属性优先级高于上面 display:flex */
.server-pop[hidden] { display: none !important; }
.server-pop * {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}
@keyframes server-pop-fade { from { opacity: 0; } to { opacity: 1; } }

.server-pop-card {
  width: min(380px, 100%);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 18px 18px 0 0;
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -16px 40px rgba(0,0,0,.4);
  animation: server-pop-up .22s ease;
}
@keyframes server-pop-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
[data-theme="light"] .server-pop-card { background: #fff; border-color: #E2E8F0; }

.server-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.server-pop-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}
.server-pop-title svg { color: var(--c-primary); }
.server-pop-close {
  background: transparent;
  border: none;
  color: var(--c-text-3);
  font-size: 16px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  font-family: inherit;
}
.server-pop-close:hover { background: var(--c-card-2); color: var(--c-text); }
[data-theme="light"] .server-pop-close:hover { background: #F1F5F9; }

.server-pop-body input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--c-card-2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}
[data-theme="light"] .server-pop-body input { background: #F4F7FB; border-color: #DCE3EC; }
.server-pop-body input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(45,212,191,.14); }
.server-pop-tip {
  margin-top: 6px;
  font-size: 11px;
  color: var(--c-text-3);
  line-height: 1.5;
}
[data-theme="light"] .server-pop-tip { color: #8B95A8; }

.server-pop-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.server-pop-clear,
.server-pop-ok {
  flex: 1;
  padding: 11px 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid var(--c-border);
  background: var(--c-card-2);
  color: var(--c-text-2);
  transition: all .15s ease;
}
[data-theme="light"] .server-pop-clear,
[data-theme="light"] .server-pop-ok {
  border-color: #DCE3EC;
  background: #F4F7FB;
  color: #475569;
}
.server-pop-clear:hover { color: var(--c-danger); }
.server-pop-clear:active,
.server-pop-ok:active {
  transform: translateY(0);
  outline: none;
}
/* 密码找回入口行 */
.server-pop-recover {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
}
[data-theme="light"] .server-pop-recover { border-top-color: #E2E8F0; }
.server-pop-recover .auth-alt-btn {
  width: 100%;
  justify-content: center;
  padding: 10px 0;
  border-radius: 8px;
  color: var(--c-text-2);
}
.server-pop-recover .auth-alt-btn:hover { color: var(--c-primary); background: rgba(45,212,191,.08); }
[data-theme="light"] .server-pop-recover .auth-alt-btn:hover { background: rgba(14,147,132,.07); }
.server-pop-recover svg { color: var(--c-primary); opacity: 1; }
.server-pop-ok {
  background: #24C1AE;
  border-color: transparent;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow:0 6px 16px rgba(36,193,174,.25);
}
.server-pop-ok:hover { transform:translateY(-1px); background:#1EAF9E; box-shadow:0 9px 22px rgba(36,193,174,.34); }
.server-pop-ok:active { transform:translateY(1px); background:#199A8C; box-shadow:0 3px 9px rgba(36,193,174,.22); }
[data-theme="light"] .server-pop-ok { background:#24C1AE; border-color:#24C1AE; color:#fff; }
[data-theme="light"] .server-pop-ok:hover { background:#1EAF9E; }

/* 新建设计方案弹窗：桌面端独立样式，避免被移动端抽屉规则覆盖 */
@media (min-width:769px) {
  #modal-overlay:has(.fp-new-design-modal) { background:rgba(20,27,38,.52); backdrop-filter:blur(2px); }
  #modal-overlay .modal.fp-new-design-modal { width:min(720px,calc(100vw - 64px))!important; max-width:720px!important; min-height:460px; max-height:calc(100vh - 80px); border:1px solid #d8e1ed!important; border-radius:15px!important; background:#fff!important; color:#17223b!important; box-shadow:0 24px 70px rgba(18,31,49,.28)!important; overflow:hidden; }
  #modal-overlay .fp-new-design-modal .modal-header { min-height:75px; padding:24px 36px 14px!important; border-bottom:1px solid #d6e0ec!important; background:#fff; }
  #modal-overlay .fp-new-design-modal .modal-header h3 { margin:0; color:#17223b; font-size:21px!important; line-height:1.35; font-weight:500; }
  #modal-overlay .fp-new-design-modal .close-btn { width:32px; height:32px; color:#7e8999; font-size:17px; }
  #modal-overlay .fp-new-design-modal .close-btn:hover { background:#f1f4f8; color:#17223b; }
  #modal-overlay .fp-new-design-modal .modal-body { padding:21px 36px 24px!important; overflow:visible; }
  #modal-overlay .fp-new-design-modal .modal-footer { min-height:70px; padding:14px 36px 26px!important; border-top:1px solid #d6e0ec!important; background:#fff; }
  #modal-overlay .fp-new-design-modal .modal-footer .btn { flex:0 0 auto!important; min-width:62px; height:40px; padding:0 18px!important; border-radius:8px; font-size:14px!important; }
  #modal-overlay .fp-new-design-modal .modal-footer .btn-secondary { background:#fff!important; border-color:#cbd8e8!important; color:#415069!important; }
  #modal-overlay .fp-new-design-modal .modal-footer .btn-primary { min-width:112px; background:#24C1AE!important; border-color:#24C1AE!important; color:#fff!important; box-shadow:0 7px 18px rgba(36,193,174,.23); }
  #modal-overlay .fp-new-design-modal .modal-footer .btn-primary:hover { background:#1eaf9e!important; transform:translateY(-1px); }
  #modal-overlay .fp-new-design-form { display:flex!important; flex-direction:column!important; gap:21px!important; width:100%; }
  #modal-overlay .fp-new-design-form>label,#modal-overlay .fp-new-customer-row>label { display:flex!important; flex:1; flex-direction:column!important; gap:9px!important; margin:0; color:#45546c; font-size:13px; font-weight:700; }
  #modal-overlay .fp-new-design-form label>span { display:block; }
  #modal-overlay .fp-new-design-form input,#modal-overlay .fp-new-design-form select { box-sizing:border-box; display:block; width:100%!important; height:40px!important; min-height:40px; margin:0!important; padding:0 13px!important; border:1px solid #cbd8eb!important; border-radius:7px!important; background-color:#fff!important; color:#34435b!important; font-family:inherit; font-size:14px!important; outline:0; box-shadow:none!important; }
  #modal-overlay .fp-new-design-form input::placeholder { color:#a2aec2!important; }
  #modal-overlay .fp-new-design-form input:focus,#modal-overlay .fp-new-design-form select:focus { border-color:#24C1AE!important; box-shadow:0 0 0 3px rgba(36,193,174,.11)!important; }
  #modal-overlay .fp-new-design-form input.invalid,#modal-overlay .fp-new-design-form select.invalid { border-color:#ef635b!important; box-shadow:0 0 0 3px rgba(239,99,91,.1)!important; }
  #modal-overlay .fp-field-error { min-height:0; margin-top:-5px; color:#dc443c; font-size:11px; font-weight:500; }
  #modal-overlay .fp-field-error:empty { display:none; }
  #modal-overlay .fp-new-design-status { min-height:18px; margin-top:-7px; color:#6e7d93; font-size:12px; }
  #modal-overlay .fp-new-design-status.error { color:#dc443c; }
  #modal-overlay .fp-new-design-status.loading { color:#168f80; }
  #modal-overlay .fp-new-design-modal.shake { animation:fp-modal-shake .26s ease; }
  @keyframes fp-modal-shake { 25%{transform:translateX(-5px)}50%{transform:translateX(5px)}75%{transform:translateX(-3px)} }
  #modal-overlay .fp-new-design-modal .modal-footer .btn-primary:disabled { opacity:.65; cursor:wait; transform:none; }
  #modal-overlay .fp-new-design-form select:disabled { background:#f7f9fc!important; color:#a2aec2!important; cursor:not-allowed; }
  #modal-overlay .fp-new-customer-row { display:grid!important; grid-template-columns:minmax(0,1fr) 134px!important; gap:12px!important; align-items:end!important; width:100%; }
  #modal-overlay .fp-new-customer-row>button { height:40px!important; padding:0 12px; border:1px solid #cbd8eb; border-radius:7px; background:#fff; color:#293950; font-family:inherit; font-size:14px; font-weight:700; cursor:pointer; }
  #modal-overlay .fp-new-customer-row>button:hover { border-color:#24C1AE; color:#168f80; background:#f4fcfa; }
}

/* 方案设计工作台扩展 */
@media (min-width:769px){.fp-design-head{min-height:68px;margin:-10px -10px 10px;padding:10px 18px;display:flex;align-items:center;gap:16px;border-bottom:1px solid #d7e1ed;background:#fff}.fp-design-head>button{height:40px;padding:0 15px;border:1px solid #cbd8e8;border-radius:7px;background:#fff;color:#34435b;font-family:inherit;font-weight:700}.fp-design-head>div{display:flex;flex-direction:column;gap:4px}.fp-design-head strong{font-size:16px}.fp-design-head span{color:#718098;font-size:11px}.fp-left-panel{display:flex;flex-direction:column}.fp-products-section,.fp-design-region{padding-bottom:12px!important}.fp-products-section>select,.fp-design-region>select,.fp-design-region>input{box-sizing:border-box;width:100%;height:38px;margin-top:8px;padding:0 10px;border:1px solid #ccd9eb;border-radius:7px;background:#fff;color:#60708a;font-family:inherit}.fp-product-search{height:38px;margin-top:8px;padding:0 9px;display:flex;align-items:center;gap:7px;border:1px solid #ccd9eb;border-radius:7px;color:#91a0b5}.fp-product-search input{min-width:0;flex:1;border:0;outline:0;color:#34435b}.fp-product-list{max-height:235px;margin-top:8px;display:flex;flex-direction:column;gap:7px;overflow:auto}.fp-product-card{min-height:64px;padding:8px;display:flex;align-items:center;gap:8px;border:1px solid #dbe4ef;border-radius:8px;background:#f7f9fc}.fp-product-card.active{border-color:#3d5df2;background:#f2f5ff}.fp-product-card>i{width:26px;height:26px;display:grid;place-items:center;border:2px solid #3d5df2;border-radius:50%;background:#fff;color:#34435b;font-style:normal}.fp-product-card>span{min-width:0;flex:1}.fp-product-card strong,.fp-product-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fp-product-card strong{font-size:12px}.fp-product-card small{margin-top:3px;color:#8390a4;font-size:9px}.fp-product-card button{height:30px;padding:0 10px;border:1px solid #d8e1ed;border-radius:6px;background:#fff;color:#7e899b;font-weight:700}.fp-products-empty{padding:20px;text-align:center;color:#8996a9}.fp-region-visibility{height:28px;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700}.fp-region-visibility label{width:32px;height:18px}.fp-region-visibility input{display:none}.fp-region-visibility i{display:block;width:32px;height:18px;padding:2px;border-radius:10px;background:#bdc8d7}.fp-region-visibility i:after{content:'';display:block;width:14px;height:14px;border-radius:50%;background:#fff;transition:.15s}.fp-region-visibility input:checked+i{background:#3d5df2}.fp-region-visibility input:checked+i:after{transform:translateX(14px)}.fp-region-color{height:32px;margin-top:8px;padding:0 10px;border:1px solid #d7e1ed;border-radius:7px;background:#fff;color:#34435b;text-align:left}.fp-region-color:first-letter{color:#128de0}.fp-design-region>div:last-of-type{margin-top:8px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.fp-design-region>div:last-of-type button{height:36px;border:1px solid #d5dfec;border-radius:6px;background:#fff;color:#72819a;font-weight:700}.fp-design-region>div:last-of-type button.primary{border-color:#3d5df2;background:#3d5df2;color:#fff}.fp-design-region p,.fp-design-region small{display:block;margin:7px 0 0;color:#8190a5;font-size:10px;line-height:1.5}.fp-main-workspace{grid-template-columns:310px minmax(0,1fr)}.fp-left-panel .plan-lighting-sidebar-grid{max-height:205px;grid-template-columns:repeat(6,1fr)}.fp-lights-section .plan-lighting-sidebar-button{height:40px}.fp-light-stats{height:38px;align-items:center}.fp-canvas-stage .floorplan-canvas-wrapper{border:1px dashed #cfd9e7;margin:10px;height:calc(100% - 60px);background:#fff}.fp-empty-blueprint:before{content:'▧';font-size:34px;color:#8f9aaf}.fp-empty-blueprint button{background:#3d5df2}}

/* ---- 移动端 login 表单细节 ---- */
@media (max-width: 480px) {
  .auth-card { width: min(320px, 86vw); }
  .auth-field input { padding: 12px 12px; font-size: 15px; }
  .auth-btn { padding: 13px 0; }
  .auth-alt-btn { padding: 10px 12px; }
}

/* 客户表单：日期、文件夹与表单内删除确认。 */
.customer-date-control{display:grid;grid-template-columns:minmax(0,1fr) 62px 62px;gap:8px;align-items:center}
.customer-date-control #c-sign-date{height:42px!important;padding:0 12px!important;border:1px solid #d5dfed!important;border-radius:8px!important;background:#f7f9fd!important;color:#34435b!important;color-scheme:light;font-size:13px!important;box-shadow:none!important}
.customer-date-control #c-sign-date:hover{border-color:#a8dcd6!important;background:#f4fbfa!important}.customer-date-control #c-sign-date:focus{border-color:#24C1AE!important;background:#fff!important;box-shadow:0 0 0 3px rgba(36,193,174,.12)!important}
.customer-date-control #c-sign-date::-webkit-calendar-picker-indicator{padding:7px;border-radius:6px;background-color:#e5f8f5;cursor:pointer;opacity:.9}
.customer-date-action{height:42px;padding:0 10px;border:1px solid #9ddfd6;border-radius:8px;background:#eafaf7;color:#168f80;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.customer-date-action:hover{border-color:#24C1AE;background:#dcf7f2}.customer-date-action.muted{border-color:#d5dfed;background:#fff;color:#607087}.customer-date-action.muted:hover{border-color:#aab9cc;background:#f6f8fb;color:#34435b}
.customer-field-hint{display:block;margin-top:6px;color:#7c899d;font-size:11px;line-height:1.5}
.customer-folder-row{display:flex;align-items:center;gap:8px}.customer-folder-row .customer-folder-input{min-width:0;flex:1;height:42px!important;padding:0 12px!important;border:1px solid #d5dfed!important;border-radius:8px!important;background:#f7f9fd!important;color:#34435b!important;font-size:13px!important;box-shadow:none!important}
.customer-folder-row .customer-folder-input::placeholder{color:#96a2b5!important}.customer-folder-row .customer-folder-input:hover{border-color:#b8c6d8!important;background:#f9fbfe!important}.customer-folder-row .customer-folder-input:focus{border-color:#24C1AE!important;background:#fff!important;box-shadow:0 0 0 3px rgba(36,193,174,.12)!important}
.customer-folder-row .customer-folder-button{height:42px!important;padding:0 15px!important;flex:0 0 auto;white-space:nowrap;border:1px solid #cbd8e8!important;border-radius:8px!important;background:#fff!important;color:#42516a!important}.customer-folder-row .customer-folder-button:hover{border-color:#24C1AE!important;background:#effaf8!important;color:#168f80!important}
.customer-delete-confirm{margin:5px 0 0;padding:14px 15px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #f2b8b5;border-radius:10px;background:#fff5f4;color:#9f2822;animation:customerDeleteConfirmIn .18s ease-out}.customer-delete-confirm[hidden]{display:none!important}
@keyframes customerDeleteConfirmIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.customer-delete-confirm-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.customer-delete-confirm-copy strong{font-size:13px}.customer-delete-confirm-copy span{color:#b45650;font-size:11px;line-height:1.5}.customer-delete-confirm-actions{display:flex;gap:8px;flex:0 0 auto}.customer-delete-confirm-actions .btn{height:36px!important;padding:0 12px!important;white-space:nowrap}
@media(min-width:769px){.customer-edit-modal .modal-footer .btn-danger{margin-right:auto}.customer-create-modal .modal-footer .btn-primary,.customer-edit-modal .modal-footer .btn-primary{min-width:82px}}
@media(max-width:768px){.customer-date-control{grid-template-columns:minmax(0,1fr) 58px 58px}.customer-date-action{height:46px}.customer-folder-row .customer-folder-input,.customer-folder-row .customer-folder-button{height:46px!important}.customer-delete-confirm{align-items:stretch;flex-direction:column}.customer-delete-confirm-actions{justify-content:flex-end}.customer-delete-confirm-actions .btn{flex:0 1 auto!important}}

/* 项目情况：与客户管理统一的工具栏、卡片和响应式布局。 */
#page-content:has(.project-search-toolbar){padding-top:18px}
.project-search-toolbar{min-height:75px;margin-bottom:14px;padding:14px 18px;display:flex;align-items:center;gap:10px;border:1px solid #d8e2ef;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(31,51,82,.025)}
.project-search-box{height:44px;min-width:260px;flex:1;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid #ccd9eb;border-radius:7px;background:#fff;color:#8da0bd;transition:border-color .15s,box-shadow .15s}
.project-search-box>span{font-size:17px}.project-search-box input{min-width:0;flex:1;height:100%;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#17223b!important;font-size:13px!important;box-shadow:none!important;outline:0!important}.project-search-box input::placeholder{color:#92a0b5!important}.project-search-box:focus-within{border-color:#24C1AE;box-shadow:0 0 0 3px rgba(36,193,174,.1)}
.project-toolbar-select{width:168px;box-shadow:none}.project-toolbar-select option{background:#fff;color:#34435b}
.project-result-count{height:32px;padding:0 11px;display:inline-flex;align-items:center;white-space:nowrap;border:1px solid #d9e2ef;border-radius:16px;background:#f8faff;color:#52617a;font-size:12px;font-weight:700}
.project-toolbar-add{height:40px!important;padding:0 14px!important;flex:0 0 auto;border-radius:8px!important;background:#24C1AE!important;border-color:#24C1AE!important;color:#fff!important;box-shadow:0 4px 12px rgba(36,193,174,.2)!important}
.project-filter-menu{position:relative;flex:0 0 auto}
.project-filter-trigger{position:relative;height:40px;min-width:76px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #ccd9eb;border-radius:8px;background:#fff;color:#52617a;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer}
.project-filter-trigger:hover,.project-filter-trigger[aria-expanded="true"]{border-color:#24C1AE;color:#168f80;background:#f3fcfa}.project-filter-trigger svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.project-filter-trigger>b{position:absolute;right:-5px;top:-6px;min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border:2px solid #fff;border-radius:9px;background:#f05d55;color:#fff;font-size:9px;line-height:1}
.project-filter-panel{position:absolute;z-index:120;right:0;top:calc(100% + 9px);width:320px;padding:15px;display:grid;gap:13px;border:1px solid #d7e1ee;border-radius:12px;background:#fff;box-shadow:0 18px 46px rgba(28,45,70,.2)}.project-filter-panel[hidden]{display:none}.project-filter-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px}.project-filter-panel header strong{color:#17223b;font-size:14px}.project-filter-panel label{display:grid;gap:6px;color:#52617a;font-size:11px;font-weight:600}.project-filter-panel .project-toolbar-select{width:100%;height:40px}.project-filter-panel footer{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding-top:2px}.project-filter-panel footer .btn{height:40px}
.project-filter-choice-trigger{width:100%;min-width:0}
.project-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.project-status-card{position:relative;overflow:hidden;cursor:default;border:1px solid #d8e2ef!important;border-radius:12px!important;background:#fff!important;color:#17223b!important;box-shadow:0 2px 8px rgba(31,51,82,.035)!important;transition:transform .18s,border-color .18s,box-shadow .18s!important}.project-status-card:before{content:"";position:absolute;left:0;top:17px;width:3px;height:39px;border-radius:0 3px 3px 0;background:var(--project-stage-color,#24C1AE)}.project-status-card:hover{transform:translateY(-2px)!important;border-color:#9edbd4!important;box-shadow:0 9px 24px rgba(31,51,82,.1)!important}
.project-status-card>.card-body{padding:16px 17px!important;background:#fff!important;color:#17223b!important}
.project-card-head{display:flex;align-items:center;gap:10px;margin-bottom:11px}.project-stage-icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:11px;background:color-mix(in srgb,var(--project-stage-color,#24C1AE) 13%,#fff);color:var(--project-stage-color,#24C1AE)}.project-stage-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.project-card-main{min-width:0;flex:1}.project-card-title{color:#17223b;font-size:15px;font-weight:700;line-height:1.35;overflow-wrap:anywhere;word-break:break-word}.project-card-customer{margin-top:3px;overflow:hidden;color:#8190a5;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
html[data-icon-style="flat"] .project-stage-icon{background:var(--project-stage-color,#24C1AE);color:#fff;box-shadow:0 4px 10px color-mix(in srgb,var(--project-stage-color,#24C1AE) 24%,transparent)}html[data-icon-style="flat"] .project-stage-icon svg{width:18px;height:18px;stroke-width:2}
.project-stage-tag{padding:4px 8px;flex:0 0 auto;border:1px solid color-mix(in srgb,var(--project-stage-color,#24C1AE) 32%,#e3eaf3);border-radius:12px;background:color-mix(in srgb,var(--project-stage-color,#24C1AE) 9%,#fff);color:var(--project-stage-color,#168f80);font-size:10px;font-weight:700}.project-detail-link{min-height:32px;padding:0 4px;flex:0 0 auto;border:0;border-radius:7px;background:transparent;color:#24C1AE;font-family:inherit;font-size:11px;font-weight:600;cursor:pointer}.project-detail-link:hover{background:rgba(36,193,174,.1)}.project-detail-link:focus-visible{outline:2px solid #24C1AE;outline-offset:2px}
.project-card-location{margin-bottom:12px;overflow:hidden;color:#738198;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.project-card-metrics{margin-bottom:12px;padding:11px 0;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #e5ebf3;border-bottom:1px solid #e5ebf3}.project-card-metrics>div{min-width:0;padding:0 9px;border-right:1px solid #e7edf5}.project-card-metrics>div:first-child{padding-left:0}.project-card-metrics>div:last-child{padding-right:0;border-right:0}.project-card-metrics span,.project-card-metrics strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-card-metrics span{margin-bottom:4px;color:#8996a9;font-size:10px}.project-card-metrics strong{color:#34435b;font-size:13px}.project-card-metrics>div:first-child strong{color:#168f80}
.project-progress-row{display:flex;align-items:center;gap:9px}.project-progress-track{height:6px;flex:1;overflow:hidden;border-radius:4px;background:#edf1f6}.project-progress-track i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#24C1AE,#168f80);transition:width .3s}.project-progress-row>span{width:31px;color:#718098;font-size:11px;text-align:right}.project-empty-state{margin-top:14px!important;border:1px dashed #cdd9e8;border-radius:12px;background:#fff}
.project-progress-label{margin:0 40px 5px 0;color:#8996a9;font-size:10px}

#pull-refresh-indicator{display:none}
@media(max-width:768px){#pull-refresh-indicator{position:fixed;z-index:120;top:calc(env(safe-area-inset-top,0px) + 8px);left:50%;height:32px;padding:0 13px;align-items:center;gap:7px;border:1px solid rgba(36,193,174,.24);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 5px 16px rgba(31,55,92,.13);color:#168f80;font-size:11px;opacity:0;transform:translate(-50%,-18px);transition:opacity .15s,transform .15s}#pull-refresh-indicator.show{display:flex;opacity:1;transform:translate(-50%,0)}#pull-refresh-indicator i{width:13px;height:13px;border:2px solid rgba(36,193,174,.28);border-top-color:#24C1AE;border-radius:50%}#pull-refresh-indicator.refreshing i{animation:pullRefreshSpin .7s linear infinite}#pull-refresh-indicator.ready i{border-color:#24C1AE}@keyframes pullRefreshSpin{to{transform:rotate(360deg)}}}
@media(max-width:1180px){.project-search-toolbar{flex-wrap:wrap}.project-search-box{flex-basis:100%}.project-toolbar-select{flex:1}.project-result-count{margin-left:auto}}
@media(max-width:768px){.project-toolbar-select{width:100%}.project-result-count{justify-self:end}.project-card-grid{grid-template-columns:1fr}.project-status-card>.card-body{padding:14px!important}.project-stage-tag{display:none}.project-card-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* 仓库三类业务弹窗：覆盖 Popover 默认的窄宽度。 */
body.stock-in-workbench-modal-open #devices-iframe-wrap{position:fixed!important;inset:0!important;z-index:5000!important;box-sizing:border-box!important;width:100vw!important;max-width:none!important;height:100vh!important;min-height:100vh!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:transparent!important}
body.stock-in-workbench-modal-open #devices-iframe-wrap #devices-frame{display:block!important;width:100vw!important;max-width:none!important;height:100vh!important;min-height:100vh!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important}

/* 项目详情 - AI 设备清单导入。 */
@media(min-width:769px){.project-device-list-modal{width:min(1120px,94vw)!important;max-width:1120px!important;height:min(820px,90vh)!important;max-height:90vh!important}}
.project-device-import-panel{margin:0 0 18px;padding:16px;border:1px solid #d8e4ef;border-radius:12px;background:#f8fbfd;color:#22314a}.project-device-import-head{margin-bottom:12px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.project-device-import-head>div{display:flex;flex-direction:column;gap:3px}.project-device-import-head strong{color:#17223b;font-size:14px}.project-device-import-head span{color:#78879c;font-size:11px}.project-device-ai-chip{padding:4px 9px;border:1px solid #9ddfd6;border-radius:12px;background:#e8faf7!important;color:#168f80!important;font-weight:800;white-space:nowrap}.project-device-upload{min-height:68px;padding:12px 14px;display:flex;align-items:center;gap:12px;border:1px dashed #9bcfc9;border-radius:10px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s}.project-device-upload:hover{border-color:#24C1AE;background:#f2fbf9}.project-device-upload-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 38px;border-radius:10px;background:#e4f8f5;color:#168f80;font-size:22px;font-weight:700}.project-device-upload>span:last-child{min-width:0;display:flex;flex-direction:column;gap:4px}.project-device-upload b{overflow:hidden;color:#34435b;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.project-device-upload small{color:#8997aa;font-size:10px;line-height:1.5}.project-device-import-status{min-height:18px;margin:9px 1px 2px;color:#7e8ca0;font-size:11px}.project-device-import-status.loading{color:#357eae}.project-device-import-status.success{color:#168f80}.project-device-import-status.error{color:#cf4d4d}.project-device-import-empty{padding:18px;border:1px solid #e1e8f1;border-radius:9px;background:#fff;color:#93a0b2;font-size:11px;text-align:center}.project-device-import-count{margin:8px 0;color:#65758b;font-size:11px}.project-device-import-count strong{color:#168f80}.project-device-import-table-wrap{overflow:auto;border:1px solid #dce5ef;border-radius:9px;background:#fff}.project-device-import-table{width:100%;min-width:780px;border-collapse:collapse}.project-device-import-table th{padding:8px 7px;border-bottom:1px solid #dfe7f0;background:#f2f6fa;color:#728097;font-size:10px;text-align:left;white-space:nowrap}.project-device-import-table td{padding:5px;border-bottom:1px solid #edf1f5}.project-device-import-table tbody tr:last-child td{border-bottom:0}.project-device-import-table input{width:100%;height:34px!important;padding:0 8px!important;border:1px solid transparent!important;border-radius:6px!important;background:#f7f9fc!important;color:#34435b!important;font-size:11px!important;box-shadow:none!important}.project-device-import-table input:hover{border-color:#cbd8e8!important}.project-device-import-table input:focus{border-color:#24C1AE!important;background:#fff!important;box-shadow:0 0 0 2px rgba(36,193,174,.1)!important}.project-device-import-table th:nth-child(1){width:20%}.project-device-import-table th:nth-child(2){width:17%}.project-device-import-table th:nth-child(3){width:8%}.project-device-import-table th:nth-child(4){width:8%}.project-device-import-table th:nth-child(5){width:12%}.project-device-import-table th:nth-child(6){width:28%}.project-device-row-delete{width:30px;height:30px;border:1px solid #f0c2bf;border-radius:7px;background:#fff5f4;color:#d9534f;font-size:18px;cursor:pointer}.project-device-row-delete:hover{background:#ffe9e7}.project-device-import-actions{margin-top:12px;display:flex;justify-content:flex-end;gap:9px}.project-device-import-actions select{height:38px;padding:0 34px 0 11px;border:1px solid #cad7e6;border-radius:8px;background:#fff;color:#52617a;font-size:11px;outline:0}.project-device-import-actions select:focus{border-color:#24C1AE}.project-device-import-actions .btn{height:38px!important;background:#24C1AE!important;border-color:#24C1AE!important;color:#fff!important}.project-device-import-actions .btn:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:768px){.project-device-import-panel{margin:-2px -2px 16px;padding:13px}.project-device-import-head{align-items:center}.project-device-upload{padding:11px}.project-device-import-actions{align-items:stretch;flex-direction:column}.project-device-import-actions select,.project-device-import-actions .btn{width:100%;height:44px!important}.project-device-import-table-wrap{max-width:calc(100vw - 32px)}}

/* Hierarchical category picker */
.quotation-category-picker-modal .qcp-main{grid-template-columns:240px minmax(0,1fr) 300px}
.quotation-category-picker-modal .qcp-categories{display:block;padding:8px;overflow:auto;background:#f7f9fc}
.qcp-menu-group{margin-bottom:7px;border:1px solid #dce5f0;border-radius:9px;background:#fff;overflow:hidden}
.qcp-menu-parent{width:100%;min-height:42px;padding:0 10px;display:grid;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:7px;border:0;background:#fff;color:#26364f;font:inherit;font-size:12px;font-weight:750;text-align:left;cursor:pointer}
.qcp-menu-parent:hover,.qcp-menu-group.active .qcp-menu-parent{background:#edf9f7;color:#168f80}
.qcp-menu-parent small,.qcp-menu-children small{color:#93a0b2;font-size:9px;font-weight:600;white-space:nowrap}
.qcp-menu-parent b{color:#7b899d;font-size:16px;text-align:center}
.qcp-menu-children{display:none;padding:5px 7px 7px;border-top:1px solid #edf1f6;background:#fbfcfe}
.qcp-menu-group.active .qcp-menu-children{display:grid;gap:5px}
.qcp-menu-children button{width:100%;min-height:34px;padding:0 9px 0 13px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid transparent;border-radius:7px;background:transparent;color:#52617a;font:inherit;font-size:11px;text-align:left;cursor:pointer}
.qcp-menu-children button:hover{border-color:#b8e1dc;background:#f0faf8;color:#168f80}
.qcp-menu-children button.active{border-color:#24C1AE;background:#e6f8f5;color:#168f80;font-weight:750;box-shadow:0 0 0 2px rgba(36,193,174,.08)}
.qcp-menu-children button.active small{color:#168f80}
.qcp-menu-empty{padding:9px 10px;color:#9aa6b6;font-size:10px;text-align:center}
.qcp-category-move{position:fixed;z-index:10020;width:196px;padding:7px;border:1px solid #cbd8e7;border-radius:10px;background:#fff;box-shadow:0 14px 36px rgba(25,40,65,.22);color:#263750}
.qcp-category-move header{padding:7px 9px 9px;border-bottom:1px solid #e4eaf2;font-size:11px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qcp-category-move button{width:100%;height:34px;margin-top:3px;padding:0 9px;border:0;border-radius:7px;background:#fff;color:#40516b;font:inherit;font-size:11px;text-align:left;cursor:pointer}
.qcp-category-move button:hover{background:#e9f8f6;color:#168f80}.qcp-category-move button.reset{border-top:1px solid #e4eaf2;border-radius:0;color:#d26b36}
@media(max-width:1050px){.quotation-category-picker-modal .qcp-main{grid-template-columns:210px minmax(0,1fr)}.quotation-category-picker-modal .qcp-selected{grid-column:1/-1}}
@media(max-width:768px){.quotation-category-picker-modal .qcp-main{grid-template-columns:1fr}.quotation-category-picker-modal .qcp-categories{max-height:270px}.quotation-category-picker-modal .qcp-selected{grid-column:auto}}


/* 项目设备清单：文本框式安装进度表。 */
.project-device-import-table{min-width:700px}.project-device-import-table th:nth-child(1){width:24%}.project-device-import-table th:nth-child(2){width:35%}.project-device-import-table th:nth-child(3){width:14%}.project-device-import-table th:nth-child(4){width:14%}.project-device-import-table th:nth-child(5){width:44px}.project-device-import-table input[readonly]{background:#eef3f8!important;color:#718097!important}
.device-quote-sheet{margin-top:16px;color:#1f2c3e}.device-quote-title{height:68px;padding:0 18px;display:flex;align-items:center;justify-content:center;gap:12px;position:relative;border:1px solid #cfd9e5;border-bottom:0;border-radius:10px 10px 0 0;background:#fff}.device-quote-title>div{display:flex;flex-direction:column;align-items:center}.device-quote-title strong{font-size:18px}.device-quote-title small{margin-top:3px;color:#8290a3;font-size:10px}.device-quote-logo{width:38px;height:38px;display:grid;place-items:center;position:absolute;left:18px;border-radius:11px;background:#24C1AE;color:#fff;font-size:19px;font-weight:800}.device-quote-scroll{overflow:auto;padding-bottom:2px}.device-quote-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0;table-layout:fixed;background:#fff;border:1px solid #cfd9e5}.device-quote-table th,.device-quote-table td{height:48px;padding:6px;border-right:1px solid #d7e0ea;border-bottom:1px solid #d7e0ea;color:#253247;font-size:11px;text-align:left;vertical-align:middle}.device-quote-table th:last-child,.device-quote-table td:last-child{border-right:0}.device-quote-table tbody tr:last-child td{border-bottom:0}.device-quote-table th{height:42px;background:#edf2f7;color:#52617a;font-weight:800;white-space:nowrap}.device-quote-table th:nth-child(1){width:190px}.device-quote-table th:nth-child(2){width:240px}.device-quote-table th:nth-child(3){width:100px}.device-quote-table th:nth-child(4){width:80px}.device-quote-table th:nth-child(5){width:120px}.device-quote-table th:nth-child(6){width:100px}.device-quote-table th:nth-child(7){width:220px}.device-quote-table input{box-sizing:border-box;width:100%;height:34px;padding:0 9px;border:1px solid #cbd7e6;border-radius:6px;background:#f8fafc;color:#263750;font:inherit;outline:0;box-shadow:none}.device-quote-table input:hover{border-color:#9fb2c8;background:#fff}.device-quote-table input:focus{border-color:#24C1AE;background:#fff;box-shadow:0 0 0 2px rgba(36,193,174,.11)}.device-quote-table input[type=number]{text-align:center}.device-quote-table input.device-count-mismatch{border-color:#ef9b98;background:#fff2f1;color:#d93632;font-weight:800}.device-quote-table input.device-count-mismatch:focus{border-color:#df4c47;box-shadow:0 0 0 2px rgba(223,76,71,.12)}.device-quote-empty td{height:70px;color:#93a0b2;text-align:center}.device-quote-footnote{margin:9px 2px 2px;color:#5d6b7e;font-size:10px;line-height:1.6}
@media(max-width:768px){.device-quote-title{justify-content:flex-start;padding-left:62px}.device-quote-title strong{font-size:14px}.device-quote-logo{left:14px}.device-quote-table{min-width:900px}}
.device-quote-logo{overflow:hidden;background:#ff6900;color:transparent;font-size:0}
.device-quote-logo img{width:100%;height:100%;display:block;object-fit:cover;transform:scale(1.22)}
/* Full quotation creation workspace */
.quotation-workspace-modal{width:min(1600px,calc(100vw - 32px))!important;max-width:none!important;height:calc(100vh - 28px)!important;max-height:none!important;border-radius:12px!important;background:#f3f7fd!important;color:#1b2940!important}
.quotation-workspace-modal .modal-header{height:58px;padding:0 20px;background:#fff}.quotation-workspace-modal .modal-body{padding:0!important;overflow:auto!important}.quotation-workspace-modal .modal-footer{display:none!important}
#quotation-workspace{min-width:1220px;padding:14px 16px 84px;background:#f3f7fd;color:#1d2a40}
.qw-top,.qw-category,.qw-summary>section{border:1px solid #d4dfed;border-radius:10px;background:#fff}
/* Location groups share the existing quotation controls and mobile card fields. */
#quotation-workspace .qw-detail-stats{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
#quotation-workspace .qw-detail-stats span{padding:6px 10px;border:0;border-radius:15px;background:#f1f5fb;color:#506078;font-size:11px;white-space:nowrap}
#quotation-workspace .qw-detail-stats b{color:#1b2a42}
#quotation-workspace .qw-grouped-category .qw-category-head{padding-right:11px}
#quotation-workspace .qw-grouped-category .qw-category-head>input{height:40px}
#quotation-workspace .qw-grouped-category .qw-category-head button{height:40px;border-radius:8px}
#quotation-workspace .qw-grouped-category .qw-category-head button:disabled{opacity:.45;cursor:not-allowed}
#quotation-workspace .qw-location-group{margin-bottom:12px;min-width:0}
#quotation-workspace .qw-location-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;margin-bottom:0;border:1px solid #d9dee5;border-radius:8px;background:#f1f3f5}
#quotation-workspace .qw-location-head label{display:flex;align-items:center;gap:14px;min-width:0;color:#606975;font-size:14px;font-weight:700}
#quotation-workspace .qw-location-head input{width:320px;max-width:100%;min-width:0;height:40px;padding:0 12px;border:1px solid #cbd8ea;border-radius:7px;background:#fff;color:#263750;font:inherit;font-weight:400;text-align:center;box-sizing:border-box;outline:none}
#quotation-workspace .qw-location-head input:focus{border-color:#24C1AE;box-shadow:0 0 0 3px rgba(36,193,174,.1)}
#quotation-workspace .qw-location-head>div{display:flex;gap:10px;flex-shrink:0}
#quotation-workspace .qw-location-head button{height:40px;padding:0 15px;border:1px solid #cbd8ea;border-radius:8px;background:#fff;color:#35465f;font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
#quotation-workspace .qw-location-head button:hover{border-color:#24C1AE;color:#168e80}
#quotation-workspace .qw-grouped-category :is(.qw-category-head,.qw-location-head) .danger{width:108px;flex-shrink:0;padding-left:0;padding-right:0;border-color:#ffc3c0;background:#fff4f3;color:#e3443d}
#quotation-workspace .qw-location-devices{margin-top:8px;border:1px solid #dbe4ef;border-radius:8px;min-width:0}
#quotation-workspace .qw-location-devices>.qw-table-head{border:0;border-radius:7px 7px 0 0;min-height:40px}
#quotation-workspace .qw-location-devices>.qw-item-row{border:0;border-top:1px solid #dbe4ef}
#quotation-workspace .qw-location-devices>.qw-subtotal{padding:16px 10px;background:#fff;border-radius:0 0 7px 7px}
#quotation-workspace .qw-category-subtotal{border:0;padding:6px 4px 2px}
#quotation-workspace .qw-location-empty{padding:18px 12px;color:#7c899c;font-size:12px;text-align:center}
@media(min-width:769px){
  #quotation-workspace .qw-grouped-category :is(.qw-table-head,.qw-item-row){grid-template-columns:minmax(160px,2fr) 80px 66px 64px 50px 70px 70px 78px 88px 88px minmax(120px,1.3fr) 130px;gap:8px}
  #quotation-workspace .qw-location-devices .qw-table-head>span:nth-child(n+2):nth-child(-n+9){text-align:center}
  #quotation-workspace .qw-location-devices .qw-table-head>span:nth-child(10){text-align:left}
}
@media(max-width:768px){
  #quotation-workspace .qw-toolbar .qw-detail-stats{margin-left:0}
  #quotation-workspace .qw-grouped-category .qw-category-head{padding-right:0}
  #quotation-workspace .qw-location-head{flex-wrap:wrap;gap:10px}
  #quotation-workspace .qw-location-head label{width:100%}
  #quotation-workspace .qw-location-head input{flex:1;width:0;max-width:none}
  #quotation-workspace .qw-location-head>div{width:100%;flex-wrap:wrap;gap:6px;justify-content:flex-end}
  #quotation-workspace .qw-location-head button{padding:0 8px;font-size:11px}
  #quotation-workspace .qw-location-devices>.qw-item-row{margin:10px 8px;border:1px solid #dbe4ef}
  #quotation-workspace .qw-location-devices>.qw-subtotal{font-size:12px}
}
[data-theme="dark"] #quotation-workspace .qw-location-head{background:var(--c-card-2);border-color:var(--c-border)}
[data-theme="dark"] #quotation-workspace .qw-location-head label{color:var(--c-text-2)}
[data-theme="dark"] #quotation-workspace :is(.qw-location-head input,.qw-location-head button,.qw-location-devices>.qw-subtotal){background:var(--c-card);color:var(--c-text);border-color:var(--c-border)}
[data-theme="dark"] #quotation-workspace .qw-location-devices{border-color:var(--c-border)}
.qw-fields{display:grid;grid-template-columns:1.35fr 1fr .65fr;gap:12px;padding:12px}.qw-fields label,.qw-summary label,.qw-landing label{display:grid;gap:6px;color:#506078;font-size:12px;font-weight:700}
.qw-fields input,.qw-fields select,.qw-summary input,.qw-summary select,.qw-summary textarea,.qw-landing input,.qw-item-row input,.qw-item-row select,.qw-category-head input{width:100%;height:38px;padding:0 11px;border:1px solid #cbd8ea;border-radius:7px;background:#f8fafd;color:#263750;font:inherit;outline:none;box-sizing:border-box}
.qw-fields input:focus,.qw-fields select:focus,.qw-summary input:focus,.qw-summary select:focus,.qw-summary textarea:focus,.qw-item-row input:focus,.qw-item-row select:focus,.qw-category-head input:focus{border-color:#24C1AE;background:#fff;box-shadow:0 0 0 3px rgba(36,193,174,.1)}
.qw-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border-top:1px solid #dce5f0}.qw-toolbar>div{display:flex;align-items:center;gap:8px}.qw-toolbar span,.qw-summary header span{padding:3px 8px;border:1px solid #d4dfed;border-radius:5px;color:#51617a;font-size:11px}
.qw-toolbar button,.qw-category-head button,.qw-fee button,.qw-bottom button,.qw-landing button{height:34px;padding:0 13px;border:1px solid #cbd8ea;border-radius:7px;background:#fff;color:#35465f;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.qw-toolbar button:hover,.qw-category-head button:hover,.qw-bottom button:hover{border-color:#24C1AE;color:#168e80}.qw-toolbar .primary,.qw-bottom .primary{border-color:#24C1AE;background:#24C1AE;color:#fff}.qw-category-head .danger,.qw-delete{border-color:#ffc3c0!important;background:#fff4f3!important;color:#e3443d!important}
.qw-current{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 14px;border-top:1px solid #dce5f0}.qw-current strong,.qw-current small{display:block}.qw-current small{margin-top:3px;color:#7c899c;font-size:11px;font-weight:400}.qw-current>div:last-child{display:flex;gap:8px}.qw-current span{padding:6px 10px;border-radius:15px;background:#f1f5fb;color:#506078;font-size:11px}.qw-current b{color:#1b2a42}
.qw-categories{display:grid;gap:12px;margin-top:12px}.qw-category{padding:10px 12px}.qw-category-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px}.qw-category-head>input{height:36px;font-weight:800;flex:1}.qw-category-head>div{display:flex;gap:8px;flex:none}
.qw-table-head,.qw-item-row{display:grid;grid-template-columns:minmax(220px,2fr) 72px 76px 64px 54px 76px 76px 84px 94px 94px minmax(150px,1.3fr) 140px;align-items:center;gap:6px}.qw-table-head{min-height:38px;padding:0 8px;border:1px solid #d2deed;border-radius:7px 7px 0 0;background:#eaf1fb;color:#445570;font-size:11px;font-weight:800}.qw-table-head>span:nth-child(n+2):nth-child(-n+10),.qw-table-head>span:last-child{text-align:center}.qw-item-row{min-height:52px;padding:7px 8px;border:1px solid #dbe4ef;border-top:0;background:#fbfcfe}.qw-item-row input,.qw-item-row select{height:36px;background:#fff}.qw-item-row input[readonly]{background:#f1f5f9;color:#66758b}.qw-item-row>strong{color:#1b2940;font-size:13px;text-align:center}.qw-product-image{width:38px;height:38px;margin:auto;display:grid;place-items:center;overflow:hidden;border:1px solid #d7e1ed;border-radius:6px;background:#eef3f8;color:#8c98aa}.qw-product-image img{width:100%;height:100%;object-fit:contain}.qw-item-actions{display:flex;justify-content:center;gap:2px}.qw-item-actions button{height:28px;padding:0 5px;border:1px solid #cbd8ea;border-radius:5px;background:#fff;color:#35465f;font-size:10px;font-weight:700;cursor:pointer}.qw-item-actions button:disabled{opacity:.45;cursor:not-allowed}.qw-item-actions .qw-delete{border:0!important;background:transparent!important;color:#e3443d;font-size:11px}.qw-subtotal{padding:12px 4px 2px;border-top:1px solid #dce5f0;text-align:right;font-size:13px}.qw-subtotal strong{font-size:15px}
.qw-device-select-wrap{position:relative;min-width:0}.qw-device-select-wrap .qw-device-select{color:transparent;font-family:inherit!important;font-size:11px!important;font-weight:400}.qw-device-select-wrap .qw-device-select option{color:#263750;font-family:inherit;font-size:11px;font-weight:400}.qw-device-selected-name{position:absolute;inset:1px 29px 1px 1px;display:flex;align-items:center;padding:0 10px;overflow:hidden;background:#fff;color:#263750;font-size:12px;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}
.qw-item-row>.qw-cell-input,.qw-percent-field,.qw-item-value{height:36px;border:1px solid #cbd8ea;border-radius:7px;background:#fff!important;color:#263750!important;font-family:inherit;font-size:12px;font-weight:400;line-height:1.2;box-sizing:border-box}.qw-item-row>.qw-cell-input{text-align:center}.qw-item-row>.qw-cell-input[readonly]{background:#fff!important;color:#263750!important}.qw-item-row>.qw-item-remark{text-align:left}.qw-percent-field{min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden}.qw-percent-field input{width:46px!important;min-width:0;flex:0 0 46px;height:34px!important;padding:0 2px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#263750!important;font-size:12px;text-align:right;box-shadow:none!important}.qw-percent-field span{flex:0 0 auto;padding:0 0 0 2px;color:#263750;font-size:12px;pointer-events:none}.qw-item-value{display:flex;align-items:center;justify-content:center;min-width:0;padding:0 5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.qw-item-row>strong.qw-item-value{color:#263750!important;font-size:12px;font-weight:400}.qw-estimated-total{cursor:text}.qw-estimated-cost-input{width:100%;height:34px!important;padding:0 5px!important;border:0!important;background:#fff!important;text-align:center;outline:0}.qw-cell-input[type=number],.qw-percent-field input[type=number],.qw-estimated-cost-input[type=number]{appearance:textfield}.qw-cell-input[type=number]::-webkit-inner-spin-button,.qw-cell-input[type=number]::-webkit-outer-spin-button,.qw-percent-field input[type=number]::-webkit-inner-spin-button,.qw-percent-field input[type=number]::-webkit-outer-spin-button,.qw-estimated-cost-input[type=number]::-webkit-inner-spin-button,.qw-estimated-cost-input[type=number]::-webkit-outer-spin-button{margin:0;appearance:none}
.qw-summary{display:grid;grid-template-columns:1.06fr .94fr;gap:12px;margin-top:14px}.qw-summary>section{padding:13px}.qw-summary header{display:flex;align-items:center;gap:8px;margin-bottom:12px}.qw-summary>section>label{margin-bottom:10px}.qw-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.qw-summary-grid.metrics label,.qw-business label{display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:0 10px;border:1px solid #d6e0ed;border-radius:7px;background:#f6f8fc}.qw-summary-grid strong,.qw-business strong{font-size:14px;color:#16263e}.qw-summary textarea{height:82px;padding:10px;resize:vertical}.qw-fee{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center;margin:10px 0;padding:9px;border:1px solid #dce5f0;border-radius:7px;background:#f7f9fc}.qw-fee small{grid-column:1/-1;color:#8995a7}
.qw-export-service-card{display:grid;gap:9px;margin:12px 0;padding:12px;border:1px solid #cbd8ea;border-radius:9px;background:#f6f9fd}.qw-export-service-card>header{margin:0;display:flex;align-items:center;justify-content:space-between}.qw-export-service-card>header div{display:grid;gap:3px}.qw-export-service-card>header b{color:#173f75;font-size:13px}.qw-export-service-card>header small{color:#7e8ca0;font-size:10px;font-weight:400}.qw-export-service-card label{margin:0!important}.qw-export-service-card textarea{height:auto;min-height:58px;background:#fff}.qw-export-service-card input{background:#fff}
.qw-business{display:grid;gap:8px}.qw-business .good{min-width:110px;padding:6px 8px;border:1px solid #ace6c5;border-radius:6px;background:#e9f9ef;color:#08a149;text-align:right}.qw-summary details{margin-top:12px;border:1px solid #d6e0ed;border-radius:8px;background:#f8fafd}.qw-summary summary{display:flex;justify-content:space-between;padding:12px;cursor:pointer;font-weight:800}.qw-summary details p{padding:0 12px 12px;color:#718097;font-size:11px}.qw-landing{margin-top:12px;padding:12px;border:1px solid #d6e0ed;border-radius:8px;background:#f7f9fc}.qw-landing>div:first-child{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.qw-landing small{color:#8794a8}.qw-landing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.qw-landing button{align-self:end}
.qw-bottom{position:sticky;bottom:-1px;z-index:4;display:flex;align-items:center;justify-content:flex-end;gap:28px;margin:16px -16px -84px;padding:12px 22px;border-top:1px solid #cfdaea;background:rgba(255,255,255,.97);box-shadow:0 -8px 25px rgba(55,78,110,.08)}.qw-bottom>div:first-child{display:grid;grid-template-columns:auto auto;align-items:center;gap:0 8px}.qw-bottom>div:first-child strong{color:#24C1AE;font-size:21px}.qw-bottom small{grid-column:2;color:#8794a8;font-size:10px}.qw-bottom>div:last-child{display:flex;gap:9px}
@media(max-width:768px){.quotation-workspace-modal{width:100%!important;height:100%!important}.qw-summary{grid-template-columns:1fr}.qw-bottom{justify-content:space-between}}
/* Quotation workspace as a single main-content page */
#page-content.quotation-workspace-page{padding:14px 16px 0!important;overflow:auto!important;background:#f3f7fd!important}
#page-content.quotation-workspace-page #quotation-workspace{min-height:calc(100vh - 86px);padding:0 0 84px}
#page-content.quotation-workspace-page .qw-bottom{margin:16px 0 -84px}
/* 手机端工作台横向溢出修复（必须在基础规则之后，确保 !important 覆盖） */
@media(max-width:768px){#page-content.quotation-workspace-page{padding:8px 8px 0!important;overflow-x:hidden!important}#page-content.quotation-workspace-page #quotation-workspace{width:100%;min-width:0}.qw-fields{grid-template-columns:1fr}.qw-toolbar,.qw-current{align-items:stretch;flex-direction:column}.qw-current>div:last-child{flex-wrap:wrap}.qw-category{overflow-x:auto}.qw-table-head,.qw-item-row{min-width:1100px}.qw-summary{grid-template-columns:1fr}}
body.quotation-workspace-page-open #modal-overlay{display:none!important}
body.quotation-workspace-page-open .content-area{background:#f3f7fd}
.qw-mobile-header,.qw-field-label{display:none}
.qw-labeled-field{display:contents}
.qw-labeled-field>.qw-cell-input{height:36px;border:1px solid #cbd8ea;border-radius:7px;background:#fff;color:#263750;font-family:inherit;font-size:12px;font-weight:400;line-height:1.2;text-align:center;box-sizing:border-box}
.qw-labeled-field>.qw-item-remark{text-align:left}
.qw-item-location,.qw-item-location::placeholder{text-align:center}
.qw-labeled-field>strong.qw-item-value{font-size:12px;font-weight:400}
@media(max-width:768px){
  body.quotation-workspace-page-open #tabbar{display:none!important}
  body.quotation-workspace-page-open #content{padding-bottom:0!important;overflow:hidden}
  #page-content.quotation-workspace-page{height:100%;min-height:0;overscroll-behavior-y:contain}
  #page-content.quotation-workspace-page #quotation-workspace{min-height:0;padding-bottom:0}
  .qw-mobile-header{display:flex;align-items:center;gap:16px;padding:6px 0 12px;color:var(--c-text)}
  .qw-mobile-header button{min-height:44px;padding:0 12px;border:1px solid var(--c-border);border-radius:8px;background:var(--c-card);color:var(--c-primary);font:inherit}
  #quotation-workspace .qw-category{overflow:visible;padding:12px;min-width:0}
  #quotation-workspace .qw-category-head{flex-wrap:wrap;gap:8px}
  #quotation-workspace .qw-category-head>input{flex:1 0 100%;width:100%;min-width:0;height:44px}
  #quotation-workspace .qw-category-head>div{flex:1 1 100%;flex-wrap:wrap;gap:6px}
  #quotation-workspace .qw-category-head button,#quotation-workspace .qw-toolbar button{min-height:40px;height:auto;padding:8px 10px;white-space:normal}
  #quotation-workspace .qw-toolbar>div{flex-wrap:wrap;min-width:0}
  #quotation-workspace .qw-fields{grid-template-columns:minmax(0,1fr)}
  #quotation-workspace .qw-fields label,#quotation-workspace .qw-summary label{min-width:0}
  #quotation-workspace .qw-table-head{display:none}
  #quotation-workspace .qw-item-row{position:relative;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px;margin-top:10px;padding:12px;border:1px solid #dbe4ef;border-radius:10px}
  #quotation-workspace .qw-labeled-field{display:grid;gap:5px;min-width:0;align-content:start}
  #quotation-workspace .qw-field-label{display:block;color:var(--c-text-2);font-size:12px;font-weight:500}
  #quotation-workspace .qw-field-0{grid-column:1/-1;padding-right:52px;min-height:62px}
  #quotation-workspace .qw-product-image{position:absolute;right:12px;top:30px;width:42px;height:42px}
  #quotation-workspace .qw-field-10,#quotation-workspace .qw-item-actions{grid-column:1/-1}
  #quotation-workspace .qw-item-row input,#quotation-workspace .qw-item-row select,#quotation-workspace .qw-item-value{width:100%;min-width:0;min-height:42px;height:42px;font-size:14px}
  #quotation-workspace .qw-percent-field{height:42px}
  #quotation-workspace .qw-percent-field input{height:40px!important;min-height:0}
  #quotation-workspace .qw-device-selected-name{font-size:13px}
  #quotation-workspace .qw-item-actions{justify-content:flex-end;flex-wrap:wrap;gap:8px}
  #quotation-workspace .qw-item-actions button{height:40px;padding:0 12px;font-size:12px}
  #quotation-workspace .qw-summary{grid-template-columns:minmax(0,1fr)}
  #quotation-workspace .qw-summary-grid{grid-template-columns:minmax(0,1fr)}
  #quotation-workspace .qw-editable-metric input{width:44%!important;min-width:0}
  #quotation-workspace .qw-fee-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  #quotation-workspace .qw-fee-row input:nth-of-type(3){grid-column:1/-1}
  #quotation-workspace .qw-service-head{grid-template-columns:minmax(0,1fr) auto}
  #quotation-workspace .qw-service-tabs{flex-wrap:wrap}
  #quotation-workspace .qw-service-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  #quotation-workspace .qw-landing-head{grid-template-columns:minmax(0,1fr);gap:6px!important}
  #quotation-workspace .qw-landing-head small{text-align:left}
  #quotation-workspace .qw-landing-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #page-content.quotation-workspace-page .qw-bottom{position:static;margin:16px 0 0;padding:12px 10px calc(12px + var(--mobile-page-safe-bottom));border-radius:10px 10px 0 0}
  #quotation-workspace .qw-bottom button{min-height:44px;height:auto;white-space:normal}
}
/* Add-category product picker */
body.quotation-workspace-page-open.quotation-category-picker-open #modal-overlay{display:flex!important;background:rgba(20,28,40,.52)!important;backdrop-filter:blur(2px)!important}
body.quotation-workspace-page-open.quotation-confirm-open #modal-overlay{display:flex!important;background:rgba(20,28,40,.52)!important;backdrop-filter:blur(2px)!important}
.qw-no-spinner{-moz-appearance:textfield}.qw-no-spinner::-webkit-inner-spin-button,.qw-no-spinner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.qw-editable-metric{gap:10px!important}.qw-editable-metric>span{display:grid;gap:2px}.qw-editable-metric small{font-size:10px;font-weight:500;color:#8794a8}.qw-editable-metric input{width:150px!important;text-align:right;font-weight:800;color:#16263e;background:#fff!important}
.qw-fee{grid-template-columns:1fr!important}.qw-fee small{grid-column:auto!important;line-height:1.6}
.qw-fee{display:block!important;padding:8px!important;background:#f4f7fb!important}.qw-fee-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.qw-fee-head b{color:#1d2a40;font-size:13px}.qw-fee-head button{height:30px!important;padding:0 11px!important}.qw-fee-empty{margin-top:7px;padding:8px 10px;border:1px dashed #cbd8ea;border-radius:6px;background:#fff;color:#7c899c;font-size:11px}.qw-fee-row{display:grid;grid-template-columns:1fr 112px 1.4fr 1.1fr auto;gap:7px;align-items:center;margin-top:7px}.qw-fee-row input,.qw-fee-row select{height:34px!important;background:#fff!important}.qw-fee-row .qw-fee-amount{text-align:center;font-weight:700}.qw-fee-row .qw-fee-delete{border:0!important;background:transparent!important;color:#e23d35!important;padding:0 4px!important}
.qw-service-panel{margin-top:12px;padding:10px;border:1px solid #cbd8ea;border-radius:8px;background:#f3f7fd}.qw-service-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center}.qw-service-head>div:first-child{display:grid;gap:3px}.qw-service-head>div:first-child b{color:#17263c;font-size:13px}.qw-service-head>div:first-child small{color:#687991;font-size:10px;line-height:1.45}.qw-service-collapse{border:0;background:transparent;color:#25364f;font-weight:700;cursor:pointer}.qw-service-tabs{display:flex;gap:7px}.qw-service-tabs button{height:32px;padding:0 12px;border:0;border-radius:4px;background:#eef1f6;color:#8190a5;font-weight:700;cursor:pointer}.qw-service-tabs button.active,.qw-service-tabs button.apply{background:#3152ed;color:#fff}.qw-service-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:9px}.qw-service-cards article{display:grid;gap:5px;padding:10px;border:1px solid #cbd8ea;border-radius:7px;background:#fff}.qw-service-cards b{color:#34435a;font-size:11px}.qw-service-cards strong{color:#07162c;font-size:15px}.qw-service-cards small{color:#45556d;font-size:10px}.qw-service-warning{margin-top:8px;padding:10px;border:1px solid #f0c77d;border-radius:7px;background:#fff8e9;color:#a95006;font-size:10px;line-height:1.6}
.qw-landing{padding:10px!important;background:#f3f7fd!important}.qw-landing-head{display:grid!important;grid-template-columns:auto 1fr;gap:18px!important;align-items:start!important;margin-bottom:9px!important}.qw-landing-head b{white-space:nowrap;color:#17263c}.qw-landing-head small{text-align:right;line-height:1.55}.qw-landing-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}.qw-landing-grid label{gap:5px!important}.qw-landing-grid input[readonly]{background:#f5f7fa!important;color:#9aa5b5;text-align:center}.qw-landing-reset{width:140px;margin-top:14px}
@media(max-width:1180px){.qw-fee-row{grid-template-columns:1fr 110px 1fr}.qw-fee-row input:nth-of-type(3){grid-column:1/3}.qw-service-head{grid-template-columns:1fr auto}.qw-service-tabs{grid-column:1/-1}.qw-landing-grid{grid-template-columns:repeat(3,1fr)!important}}
.qw-export-wrap{position:relative}.qw-export-wrap>button{min-width:82px}.qw-export-wrap #qw-export-menu{display:none;position:absolute;right:0;bottom:42px;z-index:12;width:120px;padding:5px;border:1px solid #cbd8ea;border-radius:8px;background:#fff;box-shadow:0 12px 30px rgba(32,50,77,.18)}.qw-export-wrap #qw-export-menu.open{display:grid}.qw-export-wrap #qw-export-menu button{width:100%;border:0;background:#fff;text-align:left}.qw-export-wrap #qw-export-menu button:hover{background:#eaf8f6;color:#168e80}
#quotation-workspace .qw-bottom>div:last-child>button,#quotation-workspace .qw-bottom .qw-export-wrap>button{box-sizing:border-box;width:100%;min-width:0;min-height:40px;height:40px;padding:0 8px;border-radius:8px;display:flex;align-items:center;justify-content:center;white-space:nowrap}
@media(min-width:769px){#quotation-workspace .qw-bottom>div:last-child{display:grid;grid-auto-flow:column;grid-auto-columns:112px;align-items:center}}
.qw-bottom-delete{border-color:#ffc3c0!important;background:#fff4f3!important;color:#e3443d!important}.qw-bottom-delete:hover{background:#ffe0de!important;border-color:#e3443d!important}
@media(max-width:768px){.qw-bottom{align-items:stretch;flex-direction:column;gap:10px}.qw-bottom>div:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.qw-bottom>div:last-child>button,.qw-bottom .qw-export-wrap,.qw-bottom .qw-export-wrap>button{width:100%}}
/* 手机端报价管理卡片式二级页面 */
.qm-topbar{display:flex;align-items:center;gap:8px;padding:10px 12px;background:var(--c-card);border-bottom:1px solid var(--c-border)}.qm-back{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--c-text);cursor:pointer;border-radius:8px}.qm-back:active{background:var(--c-card-2)}.qm-title{flex:1;font-size:16px;font-weight:700;color:var(--c-text)}.qm-add{height:32px;padding:0 14px;border:1px solid var(--c-primary);border-radius:8px;background:var(--c-primary);color:#fff;font-size:13px;font-weight:600;cursor:pointer}
.qm-search{padding:10px 12px}.qm-search input{width:100%;height:38px;padding:0 12px;border:1px solid var(--c-border);border-radius:8px;background:var(--c-card);color:var(--c-text);font-size:13px;outline:none;box-sizing:border-box}.qm-search input:focus{border-color:var(--c-primary);box-shadow:0 0 0 3px rgba(36,193,174,.12)}
.qm-card-list{display:flex;flex-direction:column;gap:10px;padding:0 12px 12px}
.qm-card{padding:13px;border:1px solid var(--c-border);border-radius:11px;background:var(--c-card);cursor:pointer;transition:border-color .15s,box-shadow .15s}.qm-card:active{border-color:var(--c-primary);background:var(--c-card-2);box-shadow:0 4px 14px rgba(36,193,174,.12)}.qm-card-head{display:flex;align-items:center;gap:10px}.qm-card-avatar{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,var(--c-primary),#0e9384);color:#fff;font-size:17px;font-weight:700}.qm-card-main{flex:1;min-width:0}
.qm-card-row1{display:flex;align-items:center;justify-content:space-between;gap:8px}.qm-card-title{font-size:14px;font-weight:600;color:var(--c-text);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qm-card-name,.qm-card-address{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qm-card-name{margin-top:3px;font-size:11px;color:var(--c-text-2)}.qm-card-address{margin-top:10px;font-size:12px;color:var(--c-text-2)}
.qm-card-row2{display:flex;align-items:center;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid var(--c-border);flex-wrap:wrap}.qm-card-amount{font-size:15px;font-weight:700;color:var(--c-primary)}.qm-card-count{font-size:12px;color:var(--c-text-2)}.qm-card-time{font-size:11px;color:var(--c-text-3);margin-left:auto}
.qm-card-actions{display:flex;gap:8px;margin-top:8px}.qm-share-btn{min-height:40px;padding:0 12px;border:1px solid var(--c-border);border-radius:7px;background:var(--c-card-2);color:var(--c-text);font-size:12px;font-weight:600;cursor:pointer}
.qm-empty{text-align:center;padding:60px 20px;color:#8B96A8}.qm-empty .empty-icon{font-size:40px;margin-bottom:8px}.qm-empty .empty-text{font-size:14px;margin-bottom:4px}
.quotation-detail{display:grid;gap:12px}.quotation-detail-overview,.quotation-detail-amount,.quotation-detail-items{border:1px solid var(--c-border);border-radius:11px;background:var(--c-card)}.quotation-detail-overview{padding:13px}.quotation-detail-title{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center}.quotation-detail-title>span:first-child{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:rgba(36,193,174,.12);font-size:18px}.quotation-detail-title strong,.quotation-detail-title small{display:block}.quotation-detail-title strong{overflow:hidden;color:var(--c-text);font-size:14px;text-overflow:ellipsis;white-space:nowrap}.quotation-detail-title small{margin-top:3px;color:var(--c-text-2);font-size:10px}.quotation-detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:13px 0 0;padding-top:12px;border-top:1px solid var(--c-border)}.quotation-detail-facts>div:last-child{grid-column:1/-1}.quotation-detail-facts dt{color:var(--c-text-2);font-size:10px}.quotation-detail-facts dd{margin:4px 0 0;overflow-wrap:anywhere;color:var(--c-text);font-size:12px;line-height:1.5}.quotation-detail-amount{display:grid;grid-template-columns:1fr auto;align-items:end;padding:13px;background:rgba(36,193,174,.07)}.quotation-detail-amount small,.quotation-detail-amount span{color:var(--c-text-2);font-size:11px}.quotation-detail-amount strong{grid-column:1;color:var(--c-primary);font-size:23px;line-height:1.25}.quotation-detail-amount span{grid-column:2;grid-row:2;text-align:right}.quotation-detail-items{overflow:hidden}.quotation-detail-items>header{display:flex;align-items:center;justify-content:space-between;padding:12px 13px;border-bottom:1px solid var(--c-border)}.quotation-detail-items>header strong{font-size:14px}.quotation-detail-items>header small{color:var(--c-text-2);font-size:11px}.quotation-detail-items table{width:100%;border-collapse:collapse;font-size:13px}.quotation-detail-items th,.quotation-detail-items td{padding:9px 10px;border-bottom:1px solid var(--c-border)}.quotation-detail-items th{color:var(--c-text-2);font-size:11px;font-weight:600;text-align:left}.quotation-detail-items th:not(:first-child),.quotation-detail-items td:not(:first-child){text-align:right}.quotation-detail-items td:first-child{overflow-wrap:anywhere}.quotation-detail-items td:last-child,.quotation-detail-total-row td:last-child{color:var(--c-primary);font-weight:700}.quotation-detail-total-row td{font-weight:700}.quotation-detail-status-actions{display:flex;gap:8px;flex-wrap:wrap}.quotation-detail-status-actions .btn{min-height:40px}.quotation-detail-page .fullpage-foot .btn{min-height:40px;flex:1}
@media(max-width:768px){.quotation-detail-items table,.quotation-detail-items tbody,.quotation-detail-items tr,.quotation-detail-items td{display:block;width:100%;box-sizing:border-box}.quotation-detail-items thead{display:none}.quotation-detail-item-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;padding:11px 12px;border-bottom:1px solid var(--c-border)}.quotation-detail-item-row td{display:flex;padding:3px 0;border:0;text-align:right!important;color:var(--c-text-2)!important;font-size:11px}.quotation-detail-item-row td::before{content:attr(data-label);margin-right:auto;color:var(--c-text-2)}.quotation-detail-item-row td:first-child{grid-column:1/-1;display:block;padding:0 0 7px;color:var(--c-text)!important;font-size:13px;font-weight:600;text-align:left!important}.quotation-detail-item-row td:first-child::before{display:none}.quotation-detail-item-row td:last-child{color:var(--c-primary)!important;font-weight:700}.quotation-detail-total-row{display:flex!important;align-items:center;justify-content:space-between;padding:11px 12px}.quotation-detail-total-row td{display:none}.quotation-detail-total-row td:last-child,.quotation-detail-total-row td:first-child{display:block;width:auto;padding:0;border:0}.quotation-detail-total-row td:last-child{font-size:16px}.quotation-detail-page .fullpage-foot{gap:7px}.quotation-detail-page .fullpage-foot .btn{min-width:0;padding:0 8px;font-size:12px}}
.qw-lock-warning{padding:10px 2px;line-height:1.7}.qw-lock-warning strong{font-size:15px;color:#1b2940}.qw-lock-warning p{margin-top:8px;color:#718097}
.project-quote-baseline{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;padding:13px 14px;border:1px solid rgba(36,193,174,.45);border-radius:9px;background:rgba(36,193,174,.09)}.project-quote-baseline>div{display:grid;gap:4px}.project-quote-baseline small{color:#8B96A8}
.project-quote-history-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.project-quote-history-summary>div{display:grid;gap:5px;padding:12px;border:1px solid #232C3F;border-radius:9px;background:#1B2333}.project-quote-history-summary small{color:#8B96A8}
.project-quote-table{max-height:52vh;overflow:auto;border:1px solid #232C3F;border-radius:9px}.project-quote-table table{width:100%;min-width:900px;border-collapse:collapse}.project-quote-table th{position:sticky;top:0;z-index:1;padding:9px;background:#141a26;color:#8B96A8;text-align:left}.project-quote-table td{padding:9px;border-top:1px solid #232C3F}.project-quote-table td>strong,.project-quote-table td>small{display:block}.project-quote-table td>small{margin-top:3px;color:#8B96A8}.project-quote-table tr.quote-diff-added{background:rgba(34,197,94,.09)}.project-quote-table tr.quote-diff-removed{background:rgba(248,113,113,.10)}.project-quote-table tr.quote-diff-changed{background:rgba(245,158,11,.10)}.quote-diff-tag{display:inline-block;margin-right:6px;padding:2px 7px;border-radius:999px;background:rgba(36,193,174,.14);color:#24C1AE;font-size:11px}.project-quote-ai-result{margin-top:12px;padding:12px;border-radius:8px;background:#1B2333;color:#C7D0DE;line-height:1.65;white-space:pre-wrap}
.quotation-category-picker-modal{width:min(1120px,calc(100vw - 70px))!important;max-width:none!important;height:min(700px,calc(100vh - 80px))!important;max-height:none!important;border-radius:13px!important;background:#fff!important;color:#1c2b43!important}
.quotation-category-picker-modal .modal-header{height:64px;padding:0 30px}.quotation-category-picker-modal .modal-body{padding:14px 30px 0!important;overflow:hidden!important}.quotation-category-picker-modal .modal-footer{display:none!important}
#quotation-category-picker{height:100%;display:grid;grid-template-rows:42px minmax(0,1fr) 72px;gap:10px}
.qcp-tools{display:grid;grid-template-columns:minmax(300px,1fr) 170px auto 106px;gap:9px}.qcp-tools input,.qcp-tools select,.qcp-tools>button{height:36px;border:1px solid #cbd8eb;border-radius:6px;background:#fff;color:#40516b;font:inherit;font-size:12px}.qcp-search{display:flex;align-items:center;padding:0 10px;border:1px solid #cbd8eb;border-radius:6px;color:#8190a6}.qcp-search input{width:100%;border:0;outline:0}.qcp-tools select{padding:0 10px}.qcp-tabs{display:flex;align-items:center;border-radius:5px;background:#f1f4f9}.qcp-tabs button{height:30px;min-width:58px;border:0;background:transparent;color:#4d5e77;font-size:12px;font-weight:700;cursor:pointer}.qcp-tabs button.active{background:#3f5ee8;color:#fff}.qcp-tools>button{font-weight:700;cursor:pointer}
.qcp-main{display:grid;grid-template-columns:180px minmax(0,1fr) 300px;gap:10px;min-height:0}.qcp-categories,.qcp-products,.qcp-selected{min-height:0;border:1px solid #cfdbea;border-radius:7px;background:#f7f9fd}.qcp-categories{display:flex;flex-direction:column;gap:6px;padding:8px;overflow:auto}.qcp-categories button{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 10px;border:1px solid #d2deed;border-radius:7px;background:#fff;color:#263750;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.qcp-categories button small{padding:2px 6px;border-radius:9px;background:#edf1f7;color:#8794a7;font-size:9px}.qcp-categories button.active{border:2px solid #3f5ee8;background:#eef2ff;color:#2048db}.qcp-categories button.active small{background:#3f5ee8;color:#fff}
.qcp-products{display:grid;grid-template-rows:46px minmax(0,1fr);overflow:hidden}.qcp-products>header{display:flex;align-items:center;gap:8px;padding:0 12px;border-bottom:1px dashed #d2ddec}.qcp-products>header>span{color:#7e8ba0;font-size:11px}.qcp-products>header>div{display:flex;gap:6px;margin-left:auto}.qcp-products>header button{height:28px;padding:0 9px;border:1px solid #cbd7e7;border-radius:5px;background:#fff;color:#42536d;font-size:10px;font-weight:700;cursor:pointer}.qcp-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:8px;padding:10px;overflow:auto}.qcp-product{min-height:70px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;grid-template-rows:1fr auto;gap:3px 8px;padding:8px;border:1px solid #d4dfed;border-radius:8px;background:#fff;color:#293a54;text-align:left;cursor:pointer}.qcp-product.selected{border:2px solid #3f5ee8;background:#f3f5ff}.qcp-product i{grid-row:1/3;width:40px;height:40px;display:grid;place-items:center;overflow:hidden;border-radius:6px;background:#edf2f7;color:#7f8da2;font-style:normal}.qcp-product i img{width:100%;height:100%;object-fit:contain}.qcp-product span strong,.qcp-product span small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qcp-product span strong{font-size:11px}.qcp-product span small{margin-top:3px;color:#8290a4;font-size:9px}.qcp-product em{font-size:11px;font-style:normal;font-weight:800;color:#1e4ee8}.qcp-product>b{justify-self:end;padding:2px 7px;border-radius:9px;background:#edf2f8;color:#7c899c;font-size:9px}.qcp-product.selected>b{background:#3f5ee8;color:#fff}.qcp-empty{grid-column:1/-1;padding:70px 20px;color:#7f8ca0;font-size:12px;text-align:center}
.qcp-product-group-wrap{min-width:0}.qcp-product-group-wrap.expanded{grid-column:1/-1}.qcp-product-group{width:100%}.qcp-product-group em{white-space:nowrap}.qcp-variants{margin-top:7px;padding:9px;border:1px solid #b9c9df;border-radius:9px;background:#eef3f9;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.qcp-variants>header{grid-column:1/-1;display:flex;align-items:center;gap:8px;padding:0 2px 4px}.qcp-variants>header strong{font-size:11px}.qcp-variants>header span{color:#7d8ba0;font-size:9px}.qcp-variant{min-width:0;min-height:56px;padding:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:1fr auto;gap:3px 8px;border:1px solid #d1ddeb;border-radius:7px;background:#fff;color:#2b3b54;text-align:left;cursor:pointer}.qcp-variant:hover{border-color:#8abfd0}.qcp-variant.selected{border:2px solid #24C1AE;background:#edfafa}.qcp-variant span{grid-row:1/3;min-width:0}.qcp-variant span strong,.qcp-variant span small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qcp-variant span strong{font-size:10px}.qcp-variant span small{margin-top:4px;color:#8190a4;font-size:9px}.qcp-variant em{color:#168f80;font-size:10px;font-style:normal;font-weight:800}.qcp-variant>b{justify-self:end;color:#78869a;font-size:9px}.qcp-variant.selected>b{color:#168f80}
.qcp-device-dialog-layer{position:fixed;inset:0;z-index:10030;display:grid;place-items:center;padding:24px;background:rgba(18,27,40,.58);backdrop-filter:blur(2px)}
.qcp-device-dialog{width:min(780px,calc(100vw - 36px));max-height:min(620px,calc(100vh - 36px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 22px 64px rgba(11,27,47,.34);color:#263750}
.qcp-device-dialog>header{min-height:58px;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#274f7d;color:#fff}.qcp-device-dialog>header div{display:flex;flex-direction:column;gap:3px}.qcp-device-dialog>header strong{font-size:15px}.qcp-device-dialog>header small{color:#dce8f5;font-size:10px}.qcp-device-dialog>header button{width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:#fff;font-size:24px;cursor:pointer}.qcp-device-dialog>header button:hover{background:rgba(255,255,255,.12)}
.qcp-device-dialog-body{min-height:0;padding:20px;display:grid;grid-template-columns:150px minmax(0,1fr);gap:22px;overflow:auto}.qcp-dialog-image{width:150px;height:150px;display:grid;place-items:center;overflow:hidden;border:1px solid #cad7e7;border-radius:12px;background:#f5f8fc;color:#8b99ad;font-size:42px}.qcp-dialog-image img{width:100%;height:100%;object-fit:contain}.qcp-dialog-content{min-width:0}.qcp-dialog-content h3{margin:0 0 4px;color:#20314b;font-size:18px}.qcp-dialog-content>p{margin:0 0 16px;color:#7f8da1;font-size:11px}.qcp-dialog-content>label{display:block;margin:13px 0 7px;color:#52637b;font-size:11px;font-weight:800}
.qcp-dialog-colors,.qcp-dialog-specs{display:flex;flex-wrap:wrap;gap:8px}.qcp-dialog-color{min-width:88px;padding:8px 11px;border:1px solid #ccd8e7;border-radius:8px;background:#fff;color:#34465f;text-align:left;cursor:pointer}.qcp-dialog-color strong,.qcp-dialog-color small{display:block}.qcp-dialog-color strong{font-size:11px}.qcp-dialog-color small{margin-top:3px;color:#8a97a9;font-size:9px}.qcp-dialog-color.active{border-color:#24C1AE;background:#eaf9f7;color:#168f80;box-shadow:0 0 0 1px #24C1AE}.qcp-dialog-color.active small{color:#4c9f95}
.qcp-dialog-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.qcp-dialog-spec{min-width:0;min-height:62px;padding:9px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:1fr auto;gap:4px 10px;border:1px solid #d0dbea;border-radius:8px;background:#fff;color:#2c3d56;text-align:left;cursor:pointer}.qcp-dialog-spec:hover{border-color:#7bcfc4}.qcp-dialog-spec.selected{border:2px solid #24C1AE;background:#edfafa}.qcp-dialog-spec span{grid-row:1/3;min-width:0}.qcp-dialog-spec span strong,.qcp-dialog-spec span small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qcp-dialog-spec span strong{font-size:11px}.qcp-dialog-spec span small{margin-top:5px;color:#8491a4;font-size:9px}.qcp-dialog-spec em{color:#168f80;font-size:11px;font-style:normal;font-weight:800}.qcp-dialog-spec>b{justify-self:end;color:#79879a;font-size:9px}.qcp-dialog-spec.selected>b{color:#168f80}.qcp-dialog-empty{grid-column:1/-1;padding:20px;color:#8b98aa;font-size:11px;text-align:center}
.qcp-device-dialog>footer{min-height:58px;padding:10px 16px;display:flex;align-items:center;justify-content:flex-end;gap:14px;border-top:1px solid #d9e2ed;background:#f8fafc}.qcp-device-dialog>footer span{margin-right:auto;color:#718096;font-size:11px}.qcp-device-dialog>footer button{height:36px;padding:0 18px;border:1px solid #24C1AE;border-radius:7px;background:#24C1AE;color:#fff;font-weight:800;cursor:pointer}
.qcp-selected{display:grid;grid-template-rows:36px 42px minmax(0,1fr) auto;background:#fff;overflow:hidden}.qcp-selected header{display:flex;align-items:center;justify-content:space-between;padding:0 10px;border-bottom:1px solid #d7e1ed}.qcp-selected header span{color:#8290a4;font-size:10px}.qcp-selected>strong{display:flex;align-items:center;padding:0 10px;border-bottom:1px solid #d7e1ed;color:#2d55e8}.qcp-selected>div{padding:8px;overflow:auto}.qcp-selected article{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;border-bottom:1px solid #e4eaf2;font-size:11px}.qcp-selected article button{border:0;background:transparent;color:#e24842;cursor:pointer}.qcp-selected article span{min-width:0}.qcp-selected article span strong,.qcp-selected article span small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qcp-selected article span small{margin-top:3px;color:#8492a5;font-size:9px}.qcp-selected p{min-height:54px;margin:0;padding:12px;border-top:1px solid #d7e1ed;color:#7e8ca0;font-size:10px;line-height:1.6}
@media(max-width:768px){.qcp-variants{grid-template-columns:1fr}}
@media(max-width:768px){.qcp-device-dialog-layer{padding:10px}.qcp-device-dialog{width:100%;max-height:calc(100vh - 20px)}.qcp-device-dialog-body{grid-template-columns:1fr;padding:15px}.qcp-dialog-image{width:112px;height:112px}.qcp-dialog-specs{grid-template-columns:1fr}.qcp-device-dialog>header small{display:none}}
.qcp-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid #d5dfec}.qcp-footer button{height:36px;padding:0 16px;border:1px solid #cbd8ea;border-radius:7px;background:#fff;color:#40516b;font-weight:700;cursor:pointer}.qcp-footer .primary{border-color:#405ee8;background:#405ee8;color:#fff}.qcp-footer .primary:disabled{opacity:.45;cursor:not-allowed}

/* 2026-08-17 客户、项目与项目详情响应式优化。 */
.customer-search-toolbar{min-height:68px!important;padding:12px 14px!important;display:flex!important;align-items:center;gap:10px}.customer-toolbar-add{height:40px!important;padding:0 15px!important;flex:0 0 auto;border-radius:7px!important;background:#24C1AE!important;border-color:#24C1AE!important;color:#fff!important}.customer-search-box{min-width:0;flex:1}
#pd-stage-picker{position:fixed;left:50%;top:50%;z-index:5200;width:min(340px,calc(100vw - 32px));margin:0;padding:20px;transform:translate(-50%,-50%);background:var(--c-card);border:1px solid var(--c-border-hi);border-radius:12px;box-shadow:0 18px 55px rgba(0,0,0,.38);animation:pdPickerIn .18s ease-out}@keyframes pdPickerIn{from{opacity:0;transform:translate(-50%,-47%) scale(.97)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.pd-stage-picker-close{position:absolute;right:10px;top:9px;width:30px;height:30px;border:0;border-radius:7px;background:transparent;color:var(--c-text-2);font-size:22px;line-height:1;cursor:pointer}.pd-stage-picker-title{padding-right:32px;color:var(--c-text);font-size:15px;font-weight:700}.pd-stage-picker-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}.pd-stage-picker-options .pd-stage-opt{display:flex;min-height:40px;align-items:center;justify-content:center;border-radius:8px}.pd-stage-picker-hint{margin-top:12px;color:var(--c-text-2);font-size:10px;text-align:center}
.pd-detail-stack{display:grid;align-content:start;gap:10px}.pd-device-card{width:100%;min-height:68px;padding:12px 14px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;border:1px solid var(--c-border);border-radius:10px;background:var(--c-card-2);color:var(--c-text);font-family:inherit;text-align:left;cursor:pointer}.pd-device-card-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:9px;background:rgba(36,193,174,.13);color:var(--c-primary);font-size:20px}.pd-device-card-copy{min-width:0;display:grid;gap:4px}.pd-device-card-copy strong{font-size:13px}.pd-device-card-copy small{overflow:hidden;color:var(--c-text-2);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.pd-device-card-arrow{color:var(--c-primary);font-size:11px;font-weight:700}.pd-desktop-delete{margin-left:auto}.pd-desktop-save{min-width:96px}
.pd-device-catalog{width:100%;table-layout:fixed;border-collapse:collapse}.pd-device-catalog th{padding:8px 12px;border-bottom:1px solid var(--c-border);color:var(--c-text-2);font-size:10px;font-weight:600;text-align:left}.pd-device-catalog th:nth-child(2),.pd-device-catalog td:nth-child(2){width:84px;text-align:center}.pd-device-catalog th:last-child,.pd-device-catalog td:last-child{width:68px;text-align:right}.pd-device-catalog td{padding:10px 12px}.pd-device-row{cursor:pointer;outline:none;transition:background .15s}.pd-device-row:hover,.pd-device-row:focus{background:rgba(36,193,174,.08)}.pd-device-row td:first-child{min-width:0}.pd-device-row strong,.pd-device-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pd-device-row strong{color:var(--c-text);font-size:12px}.pd-device-row small{margin-top:4px;color:var(--c-text-2);font-size:10px}.pd-device-qty{color:var(--c-text);font-size:11px}.pd-device-view{color:var(--c-primary);font-size:11px;font-weight:600}.pd-device-empty{padding:20px!important;color:var(--c-text-2);text-align:center!important}
/* 手机端客户与项目列表共用透明工具栏；控件本身保留独立输入框和按钮外观。 */
@media(max-width:768px){
  #page-content:has(.customer-search-toolbar),#page-content:has(.project-search-toolbar){padding-top:8px}
  .customer-search-toolbar,.project-search-toolbar{--list-toolbar-add-width:92px;min-height:40px!important;margin-bottom:10px!important;padding:0!important;display:grid!important;align-items:center;gap:6px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  .customer-search-toolbar{grid-template-columns:minmax(0,1fr) var(--list-toolbar-add-width)}
  .project-search-toolbar{grid-template-columns:minmax(0,1fr) 40px var(--list-toolbar-add-width)}
  .customer-toolbar-add,.project-toolbar-add{box-sizing:border-box;width:var(--list-toolbar-add-width)!important;height:40px!important;min-height:40px!important;padding:0 7px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;grid-column:-2;grid-row:1;flex:0 0 var(--list-toolbar-add-width)!important;border-radius:8px!important;font-size:12px!important}
  .customer-search-box,.project-search-box{grid-column:1;grid-row:1;width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;padding:0!important;align-self:stretch}
  .customer-search-box input,.project-search-box input{font-size:12px!important}
  .project-filter-menu{grid-column:2;grid-row:1;width:40px}.project-filter-trigger{box-sizing:border-box;width:40px;min-width:40px;height:40px;padding:0}.project-filter-trigger>span{display:none}
  .project-filter-panel{position:fixed;z-index:6100;top:auto;right:12px;bottom:calc(72px + env(safe-area-inset-bottom,0px));left:12px;width:auto;padding:16px;border-radius:14px;box-shadow:0 20px 60px rgba(15,23,42,.3)}.project-filter-panel header strong{font-size:15px}
  .project-toolbar-select{width:100%;height:40px;padding-left:9px;font-size:12px}.project-result-count{height:28px;justify-self:end;padding:0 9px;font-size:11px}
  .project-card-grid{gap:9px}.project-status-card>.card-body{padding:13px!important}.project-card-metrics{margin-bottom:9px;padding:9px 0}.project-card-location{margin-bottom:9px}.pd-actions{margin-top:14px;padding:14px 0 calc(8px + env(safe-area-inset-bottom,0px));gap:9px}.pd-actions .pd-actions-del{padding:12px 8px;border-radius:9px;font-size:13px}.pd-actions .pd-actions-save{padding:12px;border-radius:9px;font-size:14px}
}
/* 主题协调修复：桌面端、项目页和固定浅色工作区跟随夜间模式。 */
@media(min-width:769px){
  :root[data-theme="dark"]{--c-bg:#0B0F19;--c-card:#121826;--c-card-2:#1B2333;--c-border:#232C3F;--c-border-hi:#2E3950;--c-primary:#24C1AE;--c-primary-deep:#0E9384;--c-info:#38BDF8;--c-success:#34D399;--c-warn:#F59E0B;--c-danger:#F87171;--c-text:#E5EAF2;--c-text-2:#8B96A8;--c-text-3:#5B6478}
}
[data-theme="dark"] body,[data-theme="dark"] #content{background:var(--c-bg)!important;color:var(--c-text)!important}
[data-theme="dark"] :is(.sidebar,.desktop-topbar,.dash-grid,.dash-stat,.chart-card,.card,.filter-bar,.ops-overview,.ops-panel,.ops-metric,.editor-sheet,.editor-module,.customer-search-toolbar,.project-search-toolbar,.project-status-card,.project-status-card>.card-body){background:var(--c-card)!important;border-color:var(--c-border)!important;color:var(--c-text)!important}
[data-theme="dark"] :is(.sidebar-user,.nav-item,.desktop-breadcrumb,.desktop-breadcrumb strong,.admin-chip,.admin-chip strong,.admin-chip small,.topbar-btn,.project-card-title,.project-card-metrics strong,.chart-card h4,.ops-overview-title h2,.ops-panel header h2){color:var(--c-text)!important}
[data-theme="dark"] :is(.nav-item:hover,.nav-item.active,.admin-chip,.status-pill.checking,.quick-btn){background:var(--c-card-2)!important;border-color:var(--c-border)!important}
[data-theme="dark"] .project-status-card:before{background:var(--project-stage-color,#24C1AE)}
[data-theme="dark"] .project-stage-icon{background:color-mix(in srgb,var(--project-stage-color,#24C1AE) 18%,var(--c-card))!important}
[data-theme="dark"][data-icon-style="flat"] .project-stage-icon{background:var(--project-stage-color,#24C1AE)!important;color:#fff!important}
[data-theme="dark"] .project-stage-tag{background:color-mix(in srgb,var(--project-stage-color,#24C1AE) 14%,var(--c-card))!important}
[data-theme="dark"] :is(.project-card-metrics,.project-card-metrics>div,.activity-item){border-color:var(--c-border)!important}
[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),select,textarea){background:var(--c-card-2)!important;color:var(--c-text)!important;border-color:var(--c-border-hi)!important;color-scheme:dark}
[data-theme="dark"] select option{background:var(--c-card-2);color:var(--c-text)}
[data-theme="dark"] :is(.customer-search-box input,.project-search-box input,.quote-search input,.fp-search input,.fp-product-search input){background:transparent!important;border:0!important}
[data-theme="dark"] .customer-date-control #c-sign-date{background:var(--c-card-2)!important;color:var(--c-text)!important;border-color:var(--c-border-hi)!important;color-scheme:dark}
[data-theme="dark"] :is(.quotation-workspace-modal,#quotation-workspace,.qw-top,.qw-category,.qw-summary>section,.qw-item-row,.qw-service-cards article,.qw-export-service-card,.qw-fee-empty,.quotation-category-picker-modal,.qcp-categories,.qcp-products,.qcp-selected,.qcp-product,.qcp-variant,.qcp-device-dialog,.qcp-dialog-color,.qcp-dialog-spec,.qcp-device-dialog>footer,.project-device-import,.project-device-import-empty,.project-device-import-table-wrap,.device-quote-title,.device-quote-table,.fp-design-console,.fp-scheme-fields,.fp-command-row,.fp-left-panel,.fp-canvas-stage,.fp-canvas-stage .floorplan-toolbar,.fp-design-head,.plan-lighting-sidebar,.plan-lighting-sidebar-button){background:var(--c-card)!important;color:var(--c-text)!important;border-color:var(--c-border)!important}
[data-theme="dark"] :is(.qw-table-head,.qw-fee,.qw-service-panel,.qcp-main,.qcp-variants,.qcp-dialog-image,.device-quote-table th,.project-device-import-table th,.fp-region-section,.fp-canvas-stage .floorplan-canvas-wrapper){background:var(--c-card-2)!important;color:var(--c-text-2)!important;border-color:var(--c-border)!important}
[data-theme="dark"] :is(.qw-item-row>strong,.qw-fee-head b,.qw-service-head>div:first-child b,.qw-service-cards b,.qw-service-cards strong,.qcp-dialog-content h3,.qcp-dialog-content>label,.device-quote-sheet,.device-quote-table td,.fp-design-console,.fp-side-title strong,.fp-product-card strong){color:var(--c-text)!important}
[data-theme="dark"] :is(.qw-service-head>div:first-child small,.qw-service-cards small,.qcp-dialog-content>p,.qcp-dialog-color small,.qcp-dialog-spec small,.device-quote-title small,.device-quote-footnote,.fp-side-title span,.fp-product-card small){color:var(--c-text-2)!important}
[data-theme="dark"] :is(.qw-toolbar button,.qw-category-head button,.qw-fee button,.qw-bottom button,.qw-landing button,.qcp-tools>button,.qcp-products>header button,.qcp-footer button,.fp-command-row button,.fp-design-head>button){background:var(--c-card-2)!important;color:var(--c-text)!important;border-color:var(--c-border-hi)!important}
[data-theme="dark"] :is(.qw-toolbar .primary,.qw-bottom .primary,.qcp-footer .primary){background:var(--c-primary)!important;color:#fff!important;border-color:var(--c-primary)!important}
[data-theme="dark"] :is(.device-quote-table th,.device-quote-table td,.project-device-import-table th,.project-device-import-table td){border-color:var(--c-border)!important}
[data-theme="dark"] :is(.customer-search-box,.project-search-box,.quote-search,.fp-search>div){background:var(--c-card-2)!important;color:var(--c-text-2)!important;border-color:var(--c-border-hi)!important}
@media(max-width:768px){html[data-theme="dark"] body #page-content :is(.customer-search-toolbar,.project-search-toolbar){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}}
[data-theme="dark"] :is(.project-progress-track,.dash-progress-track){background:var(--c-border)!important}
/* 主应用原生设备仓库总览。 */
.warehouse-barcode-field{position:relative}.warehouse-barcode-field input{padding-right:58px!important}.warehouse-barcode-scan{position:absolute;right:5px;bottom:5px;height:30px;padding:0 10px;border:0;border-radius:6px;background:rgba(36,193,174,.12);color:var(--c-primary-deep);font-size:10px;cursor:pointer}.warehouse-scan{display:grid;justify-items:center;gap:10px}.warehouse-scan video{width:min(560px,100%);aspect-ratio:4/3;border-radius:8px;background:#111;object-fit:cover}.warehouse-scan p{margin:0;color:var(--c-text-2);font-size:11px}.warehouse-advanced{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.warehouse-advanced section{padding:16px;border:1px solid var(--c-border);border-radius:8px;background:var(--c-card)}.warehouse-advanced h4{margin:0;color:var(--c-text);font-size:13px}.warehouse-advanced p{min-height:34px;margin:7px 0 12px;color:var(--c-text-2);font-size:10px;line-height:1.6}.warehouse-import-drop{min-height:76px;display:grid;place-items:center;align-content:center;gap:4px;border:1px dashed var(--c-primary);border-radius:8px;background:rgba(36,193,174,.06);color:var(--c-primary-deep);cursor:pointer}.warehouse-import-drop strong{font-size:12px}.warehouse-import-drop span{color:var(--c-text-2);font-size:9px}.warehouse-import-preview{min-height:76px;margin-top:10px;padding:12px;display:grid;align-content:center;gap:5px;border-radius:7px;background:var(--c-card-2);color:var(--c-text-2);font-size:10px}.warehouse-import-preview strong{color:var(--c-text);font-size:11px}.warehouse-advanced-actions{display:flex;flex-wrap:wrap;gap:7px}.warehouse-import-table{max-height:220px;margin-top:7px;overflow:auto;border:1px solid var(--c-border);border-radius:6px}.warehouse-import-table table{width:100%;border-collapse:collapse}.warehouse-import-table th,.warehouse-import-table td{padding:7px 8px;border-bottom:1px solid var(--c-border);font-size:9px;text-align:left}.warehouse-import-table th{background:var(--c-card);color:var(--c-text-2)}@media(max-width:768px){.warehouse-advanced{grid-template-columns:1fr}.warehouse-advanced p{min-height:0}.warehouse-advanced-actions{display:grid}.warehouse-advanced-actions .btn{width:100%}}
.warehouse-device-editor{display:grid;gap:2px}.warehouse-records{display:grid;gap:10px}.warehouse-record-filter{display:flex;align-items:center;gap:6px}.warehouse-record-filter button{height:34px;padding:0 12px;border:1px solid var(--c-border);border-radius:6px;background:var(--c-card-2);color:var(--c-text-2);cursor:pointer}.warehouse-record-filter button.active{border-color:var(--c-primary);background:rgba(36,193,174,.1);color:var(--c-primary-deep)}.warehouse-record-filter span{margin-left:auto;color:var(--c-text-2);font-size:10px}.warehouse-record-table{max-height:58vh;overflow:auto;border:1px solid var(--c-border);border-radius:8px}.warehouse-record-table table{width:100%;border-collapse:collapse}.warehouse-record-table th,.warehouse-record-table td{padding:9px 11px;border-bottom:1px solid var(--c-border);font-size:10px;text-align:left}.warehouse-record-table th{position:sticky;top:0;z-index:1;background:var(--c-card-2);color:var(--c-text-2)}.warehouse-record-table td strong,.warehouse-record-table td small{display:block}.warehouse-record-table td small{margin-top:3px;color:var(--c-text-2);font-size:9px}.warehouse-record-type{padding:3px 7px;border-radius:5px;font-size:9px}.warehouse-record-type.in{background:rgba(52,211,153,.12);color:#15926a}.warehouse-record-type.out{background:rgba(245,158,11,.12);color:#b66d00}@media(max-width:768px){.warehouse-record-filter{flex-wrap:wrap}.warehouse-record-filter span{width:100%;margin:2px 0}.warehouse-record-table table{min-width:650px}.warehouse-record-table{max-height:none}}
.warehouse-detail{display:grid;gap:16px}.warehouse-detail-main{display:grid;grid-template-columns:150px minmax(0,1fr) 110px;gap:18px;align-items:start}.warehouse-detail-image{width:150px;height:150px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--c-border);border-radius:8px;background:var(--c-card-2);color:var(--c-primary);font-size:42px}.warehouse-detail-image img{width:100%;height:100%;object-fit:contain}.warehouse-detail-main h3{margin:4px 0;color:var(--c-text);font-size:19px}.warehouse-detail-main p{margin:0 0 15px;color:var(--c-text-2);font-size:11px}.warehouse-detail-main dl{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 16px}.warehouse-detail-main dl div{min-width:0}.warehouse-detail-main dt{color:var(--c-text-2);font-size:9px}.warehouse-detail-main dd{margin:3px 0 0;overflow:hidden;color:var(--c-text);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.warehouse-detail-stock{padding:14px;display:grid;justify-items:center;border:1px solid var(--c-border);border-radius:8px;background:var(--c-card-2)}.warehouse-detail-stock small,.warehouse-detail-stock span{color:var(--c-text-2);font-size:9px}.warehouse-detail-stock strong{margin:4px 0;color:var(--c-primary);font-size:28px}.warehouse-detail-records{overflow:hidden;border:1px solid var(--c-border);border-radius:8px}.warehouse-detail-records h4{margin:0;padding:11px 13px;border-bottom:1px solid var(--c-border);font-size:12px}.warehouse-detail-records table{width:100%;border-collapse:collapse}.warehouse-detail-records th,.warehouse-detail-records td{padding:9px 12px;border-bottom:1px solid var(--c-border);font-size:10px;text-align:left}.warehouse-detail-records th{color:var(--c-text-2);background:var(--c-card-2)}.warehouse-detail-empty{text-align:center!important;color:var(--c-text-2)}.warehouse-transaction{display:grid;gap:2px}@media(max-width:768px){.warehouse-detail-main{grid-template-columns:92px minmax(0,1fr)}.warehouse-detail-image{width:92px;height:92px}.warehouse-detail-stock{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px}.warehouse-detail-stock strong{font-size:22px}.warehouse-detail-main dl{grid-template-columns:1fr}.warehouse-detail-records{overflow-x:auto}.warehouse-detail-records table{min-width:520px}}
.warehouse-native{display:grid;gap:14px;color:var(--c-text)}.warehouse-native-head{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:18px}.warehouse-native-head h2{margin:0;color:var(--c-text);font-size:20px}.warehouse-native-head p{margin:5px 0 0;color:var(--c-text-2);font-size:11px}.warehouse-native-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.warehouse-native-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.warehouse-native-stats article{min-height:96px;padding:15px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr;gap:5px 10px;border:1px solid var(--c-border);border-radius:8px;background:var(--c-card)}.warehouse-native-stats span{color:var(--c-text-2);font-size:11px}.warehouse-native-stats strong{grid-row:1/3;align-self:center;color:var(--c-primary);font-size:22px}.warehouse-native-stats small{color:var(--c-text-3);font-size:10px}.warehouse-native-stats .warn strong{color:var(--c-warn)}.warehouse-native-toolbar{min-height:54px;padding:7px;display:grid;grid-template-columns:minmax(240px,1fr) 170px auto;align-items:center;gap:8px;border:1px solid var(--c-border);border-radius:8px;background:var(--c-card)}.warehouse-native-search{height:40px;padding:0 11px;display:flex;align-items:center;gap:8px;border:1px solid var(--c-border);border-radius:7px;background:var(--c-card-2);color:var(--c-text-2)}.warehouse-native-search input{width:100%;height:100%;padding:0;border:0;background:transparent;color:var(--c-text);outline:0}.warehouse-native-toolbar select{height:40px;border-radius:7px}.warehouse-native-toolbar>span{padding:0 8px;color:var(--c-text-2);font-size:11px;white-space:nowrap}.warehouse-native-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.warehouse-native-device{min-height:104px;padding:11px;display:grid;grid-template-columns:78px minmax(0,1fr) 72px;align-items:center;gap:12px;border:1px solid var(--c-border);border-radius:8px;background:var(--c-card);color:var(--c-text);font-family:inherit;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s}.warehouse-native-device:hover{border-color:var(--c-primary);box-shadow:0 6px 18px rgba(36,193,174,.08)}.warehouse-native-thumb{width:78px;height:78px;display:grid;place-items:center;overflow:hidden;border-radius:7px;background:var(--c-card-2);color:var(--c-primary);font-size:26px}.warehouse-native-thumb img{width:100%;height:100%;object-fit:contain}.warehouse-native-copy{min-width:0;display:grid;gap:5px}.warehouse-native-copy strong,.warehouse-native-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.warehouse-native-copy strong{font-size:14px}.warehouse-native-copy small{color:var(--c-text-2);font-size:10px}.warehouse-native-copy em{width:max-content;max-width:100%;padding:3px 7px;border-radius:5px;background:rgba(36,193,174,.1);color:var(--c-primary-deep);font-size:9px;font-style:normal}.warehouse-native-stock{display:grid;justify-items:end;gap:2px}.warehouse-native-stock small{color:var(--c-text-2);font-size:9px}.warehouse-native-stock strong{color:var(--c-success);font-size:22px}.warehouse-native-stock em{color:var(--c-text-3);font-size:9px;font-style:normal}.warehouse-native-stock.low strong{color:var(--c-warn)}.warehouse-native-stock.empty strong{color:var(--c-danger)}.warehouse-native-empty{grid-column:1/-1;padding:42px;border:1px dashed var(--c-border);border-radius:8px;color:var(--c-text-2);text-align:center}.warehouse-workbench{height:min(720px,calc(100vh - 190px));min-height:520px}.warehouse-workbench iframe{width:100%;height:100%;display:block;border:0;background:#fff}.modal:has(.warehouse-workbench){width:min(1180px,calc(100vw - 40px));max-width:1180px}@media(max-width:768px){.warehouse-native{gap:10px}.warehouse-native-head{align-items:stretch;flex-direction:column}.warehouse-native-head h2{font-size:17px}.warehouse-native-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-native-actions .btn{width:100%;min-height:40px}.warehouse-native-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.warehouse-native-stats article{min-height:82px;padding:12px}.warehouse-native-toolbar{grid-template-columns:minmax(0,1fr) 116px}.warehouse-native-toolbar>span{grid-column:1/-1;padding:0 4px}.warehouse-native-list{grid-template-columns:1fr}.warehouse-native-device{min-height:90px;grid-template-columns:64px minmax(0,1fr) 58px;gap:9px}.warehouse-native-thumb{width:64px;height:64px}.warehouse-native-copy strong{font-size:13px}.warehouse-workbench{height:calc(100vh - 58px);min-height:0;margin:-16px}.fullpage-body:has(.warehouse-workbench){overflow:hidden}}
/* 设备仓库原版报表式工作台与主页面原生数据整合。 */
.warehouse-report{display:grid;gap:14px;color:var(--c-text)}.warehouse-report-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.warehouse-report-head h2{margin:0;font-size:20px}.warehouse-report-head p{margin:5px 0 0;color:var(--c-text-2);font-size:11px}.warehouse-report-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.warehouse-report-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.warehouse-report-stats button{min-height:96px;padding:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr auto;gap:3px 8px;border:1px solid #d8e4e7;border-radius:8px;background:linear-gradient(135deg,#24c1ae,#1aa694);color:#fff;text-align:left;cursor:pointer}.warehouse-report-stats button.orange{background:linear-gradient(135deg,#f59e0b,#dc7b08)}.warehouse-report-stats button.blue{background:linear-gradient(135deg,#398dd8,#256eb6)}.warehouse-report-stats button.plain{background:linear-gradient(135deg,#607489,#465b70)}.warehouse-report-stats span{font-size:11px;font-weight:700}.warehouse-report-stats strong{grid-column:2;grid-row:1/4;align-self:center;font-size:24px}.warehouse-report-stats small{font-size:9px;opacity:.82}.warehouse-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.warehouse-report-card{min-width:0;overflow:hidden;border:1px solid var(--c-border);border-radius:8px;background:#fff}.warehouse-report-card>header{min-height:45px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#24c1ae;color:#fff;font-size:12px;font-weight:700}.warehouse-report-card>header.success{background:#20a878}.warehouse-report-card>header.danger{background:#dc5c67}.warehouse-report-card>header button{border:0;background:transparent;color:#fff;font:inherit;cursor:pointer}.warehouse-report-card>header small{font-size:10px;font-weight:500;opacity:.9}.warehouse-report-card>header b{margin-left:5px;padding:2px 6px;border-radius:5px;background:#fff;color:#c43f4c}.warehouse-report-table{width:100%;overflow:auto}.warehouse-report-table table{width:100%;min-width:540px;border-collapse:collapse}.warehouse-report-table th,.warehouse-report-table td{padding:10px 12px;border-bottom:1px solid #e6edf2;color:#45546a;font-size:10px;text-align:left;white-space:nowrap}.warehouse-report-table th{background:#f4f7fa;color:#69778c;font-weight:700}.warehouse-report-table tbody tr:last-child td{border-bottom:0}.warehouse-report-link,.warehouse-table-action{padding:0;border:0;background:transparent;color:#168f80;font:inherit;font-weight:700;cursor:pointer}.warehouse-table-action{padding:4px 8px;border:1px solid #9bded5;border-radius:5px}.warehouse-report-empty,.warehouse-report-ok{height:92px!important;color:#8793a5!important;text-align:center!important}.warehouse-report-ok{color:#168f80!important}.warehouse-report-warning{padding:3px 7px;border-radius:5px;background:#fff0f1;color:#c43f4c}.warehouse-stock-danger{color:#c43f4c}.warehouse-report-toolbar{padding:9px 12px;display:grid;grid-template-columns:minmax(240px,1fr) 180px;gap:8px;border-bottom:1px solid #e5ebf1;background:#f7f9fc}.warehouse-report-toolbar label{height:38px;padding:0 10px;display:flex;align-items:center;gap:7px;border:1px solid #d1dce7;border-radius:7px;background:#fff;color:#7d8999}.warehouse-report-toolbar input{width:100%;height:100%;border:0;outline:0;background:transparent;color:#26364d}.warehouse-report-toolbar select{height:38px;border-color:#d1dce7;background:#fff;color:#45546a}.warehouse-ai-import{display:grid;gap:12px}.warehouse-ai-upload{min-height:110px;padding:18px;display:grid;place-content:center;gap:6px;border:1px dashed #74cfc3;border-radius:8px;background:#f1fbf9;color:#168f80;text-align:center;cursor:pointer}.warehouse-ai-upload span{color:#68788d;font-size:10px;font-weight:400}.warehouse-ai-status{padding:9px 11px;border-radius:7px;background:#f3f6f9;color:#67758a;font-size:11px}.warehouse-ai-status.loading{background:#eef7ff;color:#2874ad}.warehouse-ai-status.success{background:#eaf9f5;color:#168f80}.warehouse-ai-status.error{background:#fff0f1;color:#bd3442}.warehouse-ai-count{margin-bottom:7px;color:#607087;font-size:11px}.warehouse-ai-table{max-height:430px;overflow:auto;border:1px solid #dbe4ec;border-radius:8px}.warehouse-ai-table table{min-width:940px;border-collapse:collapse}.warehouse-ai-table th,.warehouse-ai-table td{padding:6px;border-right:1px solid #e3e9ef;border-bottom:1px solid #e3e9ef;font-size:10px}.warehouse-ai-table th{position:sticky;top:0;z-index:1;background:#edf3f6;color:#59697d}.warehouse-ai-table input:not([type=checkbox]){width:118px;height:32px;padding:0 7px;border:1px solid #ced9e4;border-radius:5px;background:#fff;color:#26364d}.warehouse-ai-table td:nth-child(4) input{width:170px}
@media(max-width:1100px){.warehouse-report-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:768px){.warehouse-report{gap:10px}.warehouse-report-head{align-items:stretch;flex-direction:column}.warehouse-report-head h2{font-size:17px}.warehouse-report-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-report-actions .btn{width:100%;min-height:40px}.warehouse-report-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.warehouse-report-stats button{min-height:80px;padding:11px}.warehouse-report-grid{grid-template-columns:1fr}.warehouse-report-card>header{min-height:42px}.warehouse-report-toolbar{grid-template-columns:1fr}.warehouse-report-table table{min-width:620px}.warehouse-report-alert .warehouse-report-table,.warehouse-report-inventory .warehouse-report-table{max-height:360px}.warehouse-ai-table{max-height:calc(100vh - 310px)}}
.warehouse-integrated{display:block;min-height:100%;margin:-16px;background:#f8f9fa;color:#212529}.warehouse-integrated-loading,.warehouse-integrated-error{min-height:360px;display:grid;place-items:center;color:var(--c-text-2);font-size:12px}.warehouse-integrated-error{color:var(--c-danger)}#warehouse-integrated-stash{display:none!important}
@media(min-width:769px){body.warehouse-integrated-active .desktop-topbar{display:none!important}body.warehouse-integrated-active #content{padding:0!important;overflow:hidden!important}body.warehouse-integrated-active #page-content{height:100%;overflow:hidden}.warehouse-integrated{height:100%;margin:0;overflow:auto}.warehouse-integrated>.container{width:100%;max-width:none!important}}
@media(max-width:768px){.warehouse-integrated{position:fixed;inset:var(--mobile-page-safe-top) 0 calc(58px + var(--mobile-page-safe-bottom)) 0;z-index:35;margin:0;overflow:auto;background:#f8f9fa}.warehouse-integrated>.container{max-width:none}}
@media(max-width:768px){html.ui-keyboard-open #content{padding-bottom:var(--mobile-page-safe-bottom)!important}}
@media(max-width:768px){body.stock-in-modal-open #tabbar{display:none!important}body.stock-in-modal-open .warehouse-integrated{inset:var(--mobile-page-safe-top) 0 var(--mobile-page-safe-bottom) 0!important;z-index:950!important;overflow:hidden!important}}
@media(max-width:768px){
  body:has(#warehouse-integrated-root .tab-pane.active.show:not(#dashboard)) #tabbar{display:none!important}
  body:has(#warehouse-integrated-root .tab-pane.active.show:not(#dashboard)) .warehouse-integrated{inset:var(--mobile-page-safe-top) 0 var(--mobile-page-safe-bottom) 0!important;z-index:950!important;overflow:hidden!important}
  body:has(#warehouse-integrated-root #deviceDetailModal.show) .warehouse-integrated{z-index:5100!important}
  body:has(#warehouse-integrated-root #deviceDetailModal.show)>.modal-backdrop{display:none!important}
}

/* 软件更新：版本信息、更新说明与下载进度。 */
.app-update-dialog{display:grid;gap:14px;color:var(--c-text);line-height:1.55}
.app-update-hero{min-height:116px;padding:18px;display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:13px;border:1px solid color-mix(in srgb,var(--c-primary) 24%,var(--c-border));border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--c-primary) 14%,var(--c-card)),var(--c-card) 68%);box-shadow:0 8px 24px rgba(31,51,82,.07)}
.app-update-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#31ccb9,#0e9384);color:#fff;font-size:30px;font-weight:400;box-shadow:0 8px 18px rgba(14,147,132,.22)}
.app-update-hero div{min-width:0}.app-update-hero small,.app-update-hero strong,.app-update-hero p{display:block}.app-update-hero small{color:var(--c-text-2);font-size:11px;font-weight:700}.app-update-hero strong{margin-top:2px;color:var(--c-text);font-size:23px;line-height:1.25}.app-update-hero p{margin:5px 0 0;color:var(--c-text-2);font-size:10px}.app-update-hero>b{align-self:start;padding:5px 8px;border-radius:999px;background:color-mix(in srgb,var(--c-primary) 12%,var(--c-card));color:var(--c-primary);font-size:9px;white-space:nowrap}
.app-update-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.app-update-meta>span{min-height:58px;padding:10px 12px;display:flex;flex-direction:column;justify-content:center;border:1px solid var(--c-border);border-radius:12px;background:var(--c-card);color:var(--c-text-2);font-size:9px}.app-update-meta strong{margin-top:3px;color:var(--c-text);font-size:12px}
.app-update-notes{overflow:hidden;border:1px solid var(--c-border);border-radius:14px;background:var(--c-card)}.app-update-notes header{min-height:46px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--c-border);background:var(--c-card-2)}.app-update-notes header strong{font-size:13px}.app-update-notes header span{padding:4px 7px;border-radius:999px;background:color-mix(in srgb,var(--c-primary) 11%,var(--c-card));color:var(--c-primary);font-size:8px;font-weight:700}.app-update-notes ul{margin:0;padding:10px 14px;display:grid;gap:0;list-style:none}.app-update-notes li{position:relative;padding:9px 4px 9px 26px;border-bottom:1px solid color-mix(in srgb,var(--c-border) 72%,transparent);color:var(--c-text);font-size:11px;line-height:1.55}.app-update-notes li:last-child{border-bottom:0}.app-update-notes li:before{content:'✓';position:absolute;left:2px;top:9px;width:17px;height:17px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--c-primary) 13%,var(--c-card));color:var(--c-primary);font-size:9px;font-weight:800}
.app-update-safe{padding:11px 13px;display:flex;align-items:center;gap:10px;border:1px solid color-mix(in srgb,var(--c-success) 26%,var(--c-border));border-radius:12px;background:color-mix(in srgb,var(--c-success) 7%,var(--c-card))}.app-update-safe>span{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--c-success) 16%,var(--c-card));color:var(--c-success);font-weight:800}.app-update-safe p{margin:0}.app-update-safe strong,.app-update-safe small{display:block}.app-update-safe strong{color:var(--c-text);font-size:11px}.app-update-safe small{margin-top:3px;color:var(--c-text-2);font-size:9px;line-height:1.5}
.app-update-progress{padding:12px 13px;border:1px solid var(--c-border);border-radius:12px;background:var(--c-card)}.app-update-progress>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.app-update-progress>div span{color:var(--c-text);font-size:11px;font-weight:700}.app-update-progress>div b{color:var(--c-primary);font-size:11px}.app-update-progress>i{height:7px;margin-top:9px;display:block;overflow:hidden;border-radius:999px;background:var(--c-card-2)}.app-update-progress>i>em{width:0;height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#24c1ae,#0e9384);transition:width .2s ease}.app-update-progress>small{display:block;margin-top:7px;color:var(--c-text-2);font-size:9px}.app-update-progress.is-error{border-color:color-mix(in srgb,var(--c-danger) 42%,var(--c-border));background:color-mix(in srgb,var(--c-danger) 5%,var(--c-card))}.app-update-progress.is-error>div b{color:var(--c-danger)}
@media(max-width:768px){.app-update-page .fullpage-body{padding:14px 14px 20px;background:var(--c-bg)}.app-update-page .fullpage-foot{gap:10px;padding-top:12px}.app-update-page .fullpage-foot .btn{min-width:0;flex:1;height:48px;border-radius:12px;font-size:14px}.app-update-page .fullpage-foot .btn-primary{box-shadow:0 7px 18px rgba(36,193,174,.2)}.app-update-page .fullpage-foot .btn:disabled{opacity:.58;cursor:wait}.app-update-hero{grid-template-columns:48px minmax(0,1fr);padding:15px}.app-update-icon{width:48px;height:48px}.app-update-hero>b{grid-column:1/-1;width:max-content;margin-top:-4px}.app-update-notes li{font-size:10px}}

/* 手机端搜索框以“项目”页面为统一基准。 */
@media(max-width:768px){
  :is(.customer-search-box,.quote-search,.fp-search>div,.fp-product-search,.warehouse-native-search,.warehouse-report-toolbar label){
    box-sizing:border-box!important;
    height:40px!important;
    min-height:40px!important;
    padding:0 11px!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    border:1px solid var(--c-border)!important;
    border-radius:7px!important;
    background:var(--c-card-2)!important;
    color:var(--c-text-2)!important;
    box-shadow:none!important;
  }
  :is(.customer-search-box,.quote-search,.fp-search>div,.fp-product-search,.warehouse-native-search,.warehouse-report-toolbar label):focus-within{
    border-color:var(--c-primary)!important;
    box-shadow:0 0 0 3px rgba(36,193,174,.1)!important;
  }
  :is(.customer-search-box,.quote-search,.fp-search>div,.fp-product-search,.warehouse-native-search,.warehouse-report-toolbar label)>span{
    flex:0 0 auto;
    font-size:17px!important;
  }
  :is(.customer-search-box,.quote-search,.fp-search>div,.fp-product-search,.warehouse-native-search,.warehouse-report-toolbar label) input{
    width:100%!important;
    min-width:0!important;
    height:100%!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:var(--c-text)!important;
    font-family:inherit!important;
    font-size:13px!important;
    box-shadow:none!important;
    outline:0!important;
  }
  :is(.customer-search-box,.quote-search,.fp-search>div,.fp-product-search,.warehouse-native-search,.warehouse-report-toolbar label) input::placeholder{
    color:var(--c-text-3)!important;
  }
  .search-bar input,.dev-search-input{
    box-sizing:border-box!important;
    height:40px!important;
    min-height:40px!important;
    padding:0 11px!important;
    border:1px solid var(--c-border)!important;
    border-radius:7px!important;
    background:var(--c-card-2)!important;
    color:var(--c-text)!important;
    font-family:inherit!important;
    font-size:13px!important;
    box-shadow:none!important;
    outline:0!important;
  }
  .search-bar input:focus,.dev-search-input:focus{
    border-color:var(--c-primary)!important;
    box-shadow:0 0 0 3px rgba(36,193,174,.1)!important;
  }
  .search-bar input::placeholder,.dev-search-input::placeholder{color:var(--c-text-3)!important}
}

/* 全端统一的居中删除确认模板。 */
.mobile-delete-confirm{
  position:fixed;inset:0;z-index:6200;
  padding:max(16px,var(--safe-area-inset-top,env(safe-area-inset-top,0px))) 16px max(16px,var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));
  display:flex;align-items:center;justify-content:center;
  background:rgba(15,23,42,.48);backdrop-filter:blur(3px)
}
.mobile-delete-confirm-card{
  width:min(340px,100%);padding:22px 18px 16px;
  border:1px solid var(--c-border);border-radius:14px;
  background:var(--c-card);color:var(--c-text);
  box-shadow:0 22px 60px rgba(0,0,0,.35);text-align:center
}
.mobile-delete-confirm-input{
  width:100%;height:42px;margin:0 0 16px;padding:0 12px;
  border:1px solid var(--c-border-hi);border-radius:8px;
  background:var(--c-card-2);color:var(--c-text);font:inherit;outline:0
}
.mobile-delete-confirm-input:focus{border-color:var(--c-primary);box-shadow:0 0 0 3px rgba(36,193,174,.1)}
.account-logout-confirm-icon{width:52px;height:52px;margin:0 auto 12px;display:grid;place-items:center;border-radius:50%;background:#fff2f1;color:#d75149;font-size:28px;font-weight:700}
.account-logout-confirm-card p{margin-bottom:20px}.account-logout-confirm-card .btn-danger{background:#d75149;border-color:#d75149;color:#fff}.account-logout-confirm-card .btn:disabled{opacity:.62;cursor:wait}

/* 项目跟进记录、方案交底与首页任务卡。 */
.project-operation-block{margin-top:14px}.project-followup-counts{padding:10px 12px;display:grid;grid-template-columns:repeat(4,1fr);gap:7px;border-bottom:1px solid var(--c-border)}.project-followup-counts span{padding:8px 6px;border-radius:7px;background:var(--c-card-2);color:var(--c-text-2);font-size:10px;text-align:center}.project-followup-counts b{display:block;margin-top:3px;color:var(--c-primary);font-size:16px}.project-followup-counts .warn b{color:var(--c-danger)}.project-followup-list{display:grid}.project-followup-item{min-height:58px;padding:9px 12px;display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:9px;border-bottom:1px solid var(--c-border)}.project-followup-item:last-child{border-bottom:0}.project-followup-item>i{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:rgba(36,193,174,.1);font-style:normal}.project-followup-item strong,.project-followup-item small{display:block}.project-followup-item strong{font-size:12px}.project-followup-item small{margin-top:3px;overflow:hidden;color:var(--c-text-2);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.project-followup-item>button{height:28px;padding:0 8px;border:1px solid #f2b8b5;border-radius:6px;background:#fff5f4;color:#c2413a;font-size:9px}.project-followup-item>button.done{border-color:#a9ded6;background:#edf9f7;color:#168f80}.project-operation-empty{padding:24px;color:var(--c-text-2);font-size:11px;text-align:center}.project-handover-summary{padding:13px}.project-handover-summary>strong{font-size:12px}.project-handover-summary p{margin:8px 0;color:var(--c-text);font-size:11px;line-height:1.7}.project-handover-summary aside{padding:8px 10px;border-radius:7px;background:#fff8e8;color:#a76500;font-size:10px}.project-handover-photos{margin-top:10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.project-handover-photos img{width:100%;aspect-ratio:1;display:block;border-radius:7px;object-fit:cover}.project-handover-photos>span{grid-column:1/-1;color:var(--c-text-2);font-size:11px}.project-handover-photos .error{color:var(--c-danger)}.project-operation-form{display:grid;gap:13px}.project-operation-form>label{display:grid;gap:6px;color:var(--c-text-2);font-size:11px;font-weight:600}.project-operation-form input,.project-operation-form select,.project-operation-form textarea{width:100%;padding:10px 11px;border:1px solid var(--c-border);border-radius:7px;background:var(--c-card-2);color:var(--c-text);font:inherit;outline:0}.project-operation-form input,.project-operation-form select{height:42px}.project-operation-form textarea{resize:vertical}.project-operation-form :is(input,select,textarea):focus{border-color:var(--c-primary);box-shadow:0 0 0 3px rgba(36,193,174,.1)}.project-photo-upload input{height:auto;padding:0;border:0}.project-photo-upload>span{padding:12px;border:1px dashed var(--c-primary);border-radius:8px;background:rgba(36,193,174,.06);color:var(--c-primary);text-align:center}.dashboard-task-row{width:100%;min-height:62px;padding:10px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;border:0;border-bottom:1px solid var(--c-border);background:transparent;color:var(--c-text);font:inherit;text-align:left}.dashboard-task-row strong,.dashboard-task-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-task-row strong{font-size:12px}.dashboard-task-row span{grid-column:1;color:var(--c-text-2);font-size:10px}.dashboard-task-row small{grid-column:2;grid-row:1/3;align-self:center;color:var(--c-primary);font-size:10px}.ops-tile[role=button]{cursor:pointer}.ops-tile[role=button]:hover{border-color:var(--c-primary)}
@media(max-width:768px){.project-followup-counts{grid-template-columns:repeat(4,minmax(0,1fr));padding:8px}.project-handover-photos{grid-template-columns:repeat(3,minmax(0,1fr))}}
.dashboard-task-manager{display:grid;gap:12px}.dashboard-task-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px}.dashboard-task-toolbar>.btn{height:42px;white-space:nowrap}.dashboard-task-toolbar>label{height:42px;padding:0 11px;display:flex;align-items:center;gap:8px;border:1px solid var(--c-border);border-radius:7px;background:var(--c-card-2);color:var(--c-text-2)}.dashboard-task-toolbar input{width:100%;height:100%;padding:0;border:0;background:transparent;color:var(--c-text);font:inherit;outline:0}.dashboard-issue-list{display:grid;gap:11px}.dashboard-issue-project{overflow:hidden;border:1px solid var(--c-border);border-radius:11px;background:var(--c-card)}.dashboard-issue-project>header{min-height:58px;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--c-border);background:var(--c-card-2);cursor:pointer}.dashboard-issue-project>header strong,.dashboard-issue-project>header small{display:block}.dashboard-issue-project>header strong{font-size:14px}.dashboard-issue-project>header small{margin-top:3px;color:var(--c-text-2);font-size:10px}.dashboard-issue-project>header>span{color:var(--c-primary);font-size:10px}.dashboard-issue-item{padding:12px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:start;gap:10px;border-bottom:1px solid var(--c-border);cursor:pointer}.dashboard-issue-item:last-child{border-bottom:0}.dashboard-issue-item>b{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#fff0ef;color:var(--c-danger);font-size:12px}.dashboard-issue-item>div{min-width:0}.dashboard-issue-item>div>strong{display:block;color:var(--c-text);font-size:12px;line-height:1.75;white-space:normal;overflow-wrap:anywhere}.dashboard-issue-item p{margin:6px 0;color:var(--c-text-2);font-size:10px;line-height:1.65;white-space:normal;overflow-wrap:anywhere}.dashboard-issue-item small{display:block;margin-top:6px;color:var(--c-text-3);font-size:9px}.dashboard-issue-item>footer{display:flex;flex-direction:column;gap:5px}.dashboard-issue-item>footer button{min-width:58px;height:28px;padding:0 7px;border:1px solid #9edfd7;border-radius:6px;background:#edf9f7;color:#168f80;font-size:9px}.dashboard-issue-item>footer .edit{border-color:var(--c-border);background:var(--c-card-2);color:var(--c-text-2)}.dashboard-issue-item>footer .danger{border-color:#f0bbb7;background:#fff4f3;color:#c2413a}.dashboard-issue-photos{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}.dashboard-issue-photos img{width:54px;height:54px;border-radius:6px;object-fit:cover}.dashboard-task-editor textarea{white-space:pre-wrap}.dashboard-task-editor-page .fullpage-foot{justify-content:stretch}.dashboard-task-editor-page .fullpage-foot .btn{flex:1}
.dashboard-task-editor label small{color:var(--c-text-3);font-size:9px;font-weight:400}.dashboard-task-image-field>span{display:block;margin-bottom:6px;color:var(--c-text-2);font-size:11px;font-weight:600}.dashboard-task-image-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.dashboard-task-image-upload{width:96px;height:96px;flex:0 0 96px;display:flex!important;flex-direction:column;align-items:center;justify-content:center!important;gap:6px!important;overflow:hidden;border:1.5px dashed #9ddbd2;border-radius:12px;background:linear-gradient(145deg,#f5fcfb,#e9f8f5);color:#168f80;cursor:pointer}.dashboard-task-image-upload input{display:none}.dashboard-task-image-upload i{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#d9f5f0;color:#24c1ae;font-size:20px;font-style:normal}.dashboard-task-image-upload b{font-size:11px}.dashboard-task-photo-preview{display:flex;gap:8px;flex-wrap:wrap}.dashboard-task-photo-preview>span{position:relative;width:96px;height:96px}.dashboard-task-photo-preview img{width:100%;height:100%;display:block;border-radius:12px;object-fit:cover}.dashboard-task-photo-preview button{position:absolute;top:4px;right:4px;width:24px;height:24px;border:0;border-radius:50%;background:rgba(22,30,43,.76);color:#fff;font-size:16px;line-height:1}.dashboard-task-image-help{display:grid;gap:7px}.dashboard-task-image-help small{color:var(--c-text-3);font-size:9px}.dashboard-resolved-list{display:grid;gap:9px}.dashboard-resolved-item{padding:11px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid var(--c-border);border-radius:9px;background:var(--c-card)}.dashboard-resolved-item>b{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#edf9f7;color:#168f80}.dashboard-resolved-item strong,.dashboard-resolved-item small{display:block}.dashboard-resolved-item strong{font-size:12px}.dashboard-resolved-item small{margin-top:4px;color:var(--c-text-2);font-size:9px}.dashboard-resolved-item button{height:30px;padding:0 10px;border:1px solid #9edfd7;border-radius:6px;background:#edf9f7;color:#168f80}.dashboard-lead-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-lead-card{min-height:92px;padding:13px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid var(--c-border);border-radius:11px;background:var(--c-card);color:var(--c-text);text-align:left;cursor:pointer}.dashboard-lead-card>i{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:rgba(36,193,174,.1);font-style:normal}.dashboard-lead-card strong,.dashboard-lead-card small{display:block}.dashboard-lead-card strong{font-size:13px}.dashboard-lead-card small{margin-top:5px;overflow:hidden;color:var(--c-text-2);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.dashboard-lead-card em{padding:4px 7px;border-radius:999px;background:#fff7e6;color:#b46c00;font-size:9px;font-style:normal}.dashboard-lead-card>b{grid-column:2/4;color:var(--c-primary);font-size:10px;font-weight:500}
.device-style-photo-field>span{display:block;margin-bottom:7px;color:var(--c-text-2);font-size:11px;font-weight:600}.device-style-photo-row{display:flex;align-items:center;gap:12px}.device-style-photo-row>div{display:grid;gap:7px}.device-style-photo-row small{color:var(--c-text-3);font-size:9px}.device-style-photo-upload{width:96px;height:96px;flex:0 0 96px;display:flex!important;flex-direction:column;align-items:center;justify-content:center!important;gap:6px!important;border:1.5px dashed #9ddbd2;border-radius:12px;background:linear-gradient(145deg,#f5fcfb,#e9f8f5);color:#168f80;cursor:pointer}.device-style-photo-upload input{display:none}.device-style-photo-upload>i{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#d9f5f0;color:#24c1ae;font-size:20px;font-style:normal}.device-style-photo-upload b{font-size:11px}.device-style-photo-preview{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px}.device-style-photo-preview>span{position:relative;width:96px;height:96px}.device-style-photo-preview button,.project-handover-photos button{width:100%;height:100%;padding:0;border:0;border-radius:10px;background:transparent;overflow:hidden}.device-style-photo-preview img,.project-handover-photos button img{width:100%;height:100%;display:block;object-fit:cover}.device-style-photo-preview>span>i{position:absolute;top:4px;right:4px;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:rgba(22,30,43,.76);color:#fff;font-size:16px;font-style:normal;cursor:pointer}.project-handover-photos button{aspect-ratio:1}.project-photo-viewer{position:relative;min-height:55vh;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f4f7fb;touch-action:none;user-select:none;cursor:grab}.project-photo-viewer:active{cursor:grabbing}.project-photo-viewer img{max-width:100%;max-height:70vh;object-fit:contain;transform-origin:center;will-change:transform;-webkit-user-drag:none;pointer-events:none}.project-photo-gesture-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);padding:5px 10px;border-radius:999px;background:rgba(15,23,42,.68);color:#fff;font-size:9px;white-space:nowrap;pointer-events:none}.project-photo-viewer-page .fullpage-body{background:#f4f7fb}.site-review-summary>div:last-child:not(.project-operation-empty){padding:13px}.site-review-summary strong{font-size:12px}.site-review-summary p{margin:5px 0 0;color:var(--c-text-2);font-size:10px}.site-review-editor{display:grid;gap:12px}.site-review-toolbar{display:flex;justify-content:space-between;gap:9px}.site-review-list{display:grid;gap:11px;overflow-x:auto}.site-review-card{padding:12px;display:grid;gap:11px;border:1px solid var(--c-border);border-radius:11px;background:var(--c-card)}.site-review-card>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.site-review-card>header strong{font-size:13px}.site-review-card>header>span{display:flex;align-items:center;gap:7px}.site-review-card>header button{height:28px;padding:0 9px;border:1px solid #f0bbb7;border-radius:6px;background:#fff4f3;color:#c2413a;font-size:9px}.site-review-card>header .site-review-edit-done{border-color:#8ddbd1;background:#edf9f7;color:#168f80}.site-review-card>label{display:grid;gap:6px;color:var(--c-text-2);font-size:11px;font-weight:600}.site-review-card input,.site-review-card textarea{width:100%;padding:10px 11px;border:1px solid var(--c-border);border-radius:7px;background:var(--c-card-2);color:var(--c-text);font:inherit;outline:0}.site-review-card input{height:42px}.site-review-card textarea{resize:vertical}.site-review-page .fullpage-foot .btn{flex:1}
@media(max-width:768px){.dashboard-task-toolbar{grid-template-columns:104px minmax(0,1fr)}.dashboard-task-toolbar>.btn{padding:0 10px;font-size:12px}.dashboard-issue-item{grid-template-columns:26px minmax(0,1fr)}.dashboard-issue-item>b{width:26px;height:26px}.dashboard-issue-item>footer{grid-column:2;flex-direction:row;flex-wrap:wrap;margin-top:4px}.dashboard-issue-item>footer button{flex:1;min-width:70px}.dashboard-task-page .fullpage-body{padding-left:9px;padding-right:9px}.dashboard-lead-cards{grid-template-columns:1fr}.dashboard-task-image-help{flex:1;min-width:110px}}
.task-project-picker{position:relative}.task-project-picker>input{padding-right:38px}.task-project-picker>span{position:absolute;top:0;right:0;width:38px;height:42px;display:grid;place-items:center;color:var(--c-text-2);pointer-events:none}.task-project-suggestions{position:absolute;z-index:30;top:calc(100% + 5px);left:0;right:0;max-height:238px;display:none;overflow:auto;border:1px solid var(--c-border);border-radius:9px;background:#fff;box-shadow:0 12px 30px rgba(31,48,72,.2)}.task-project-suggestions.show{display:block}.task-project-suggestions button{width:100%;min-height:54px;padding:9px 12px;display:block;border:0;border-bottom:1px solid var(--c-border);background:#fff;color:var(--c-text);text-align:left}.task-project-suggestions button:last-child{border-bottom:0}.task-project-suggestions button:active,.task-project-suggestions button:hover{background:#edf9f7}.task-project-suggestions strong,.task-project-suggestions small{display:block}.task-project-suggestions strong{font-size:12px}.task-project-suggestions small{margin-top:4px;color:var(--c-text-2);font-size:9px}.task-project-suggestions>div{padding:14px;color:var(--c-text-2);font-size:10px}.dashboard-task-image-row{gap:14px}.dashboard-task-image-help{gap:8px}.dashboard-task-image-help .btn{border-color:#1677ff!important;background:#fff!important;color:#1677ff!important}.dashboard-task-photo-below:empty{display:none}.dashboard-task-photo-preview>span>button{position:static;width:100%;height:100%;padding:0;border:0;border-radius:12px;background:transparent;overflow:hidden}.dashboard-task-photo-preview>span>button img{width:100%;height:100%;display:block;border-radius:0;object-fit:cover}.dashboard-task-photo-preview>span>i{position:absolute;z-index:2;top:4px;right:4px;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:rgba(22,30,43,.76);color:#fff;font-size:16px;font-style:normal;cursor:pointer}.dashboard-issue-photos button{width:54px;height:54px;padding:0;border:0;border-radius:6px;background:transparent;overflow:hidden}.dashboard-issue-photos button img{width:100%;height:100%;display:block;object-fit:cover}
.site-review-card{overflow:hidden}.site-review-entry-row{width:100%;min-width:620px;box-sizing:border-box;display:grid;grid-template-columns:minmax(112px,1fr) minmax(145px,1.12fr) minmax(160px,1.22fr) 76px 52px;align-items:end;gap:10px}.site-review-entry-row>*{box-sizing:border-box}.site-review-entry-row>label{display:grid;gap:6px;color:var(--c-text-2);font-size:10px;font-weight:700}.site-review-entry-row input{height:42px;padding:9px 11px;border-radius:9px}.site-review-quantity input{text-align:center}.site-review-mini-upload{cursor:pointer}.site-review-mini-upload input{display:none}.site-review-mini-upload>i{width:42px;height:42px;box-sizing:border-box;display:grid;place-items:center;border:1.5px dashed #74d4c7;border-radius:10px;background:#effbf9;color:#18b7a4;font-size:22px;font-style:normal;transition:.15s}.site-review-mini-upload:hover>i{background:#ddf7f2;border-color:#24c1ae}.site-review-photo-preview{min-width:620px}.site-review-photo-preview:empty{display:none}
.site-review-input-choice{position:relative;display:block}.site-review-input-choice input{padding-right:43px}.site-review-choice{position:absolute;top:1px;right:1px;width:40px;height:40px;box-sizing:border-box;padding:0;border:0;border-left:1px solid var(--c-border);border-radius:0 8px 8px 0;background-color:#f8fafc;color:var(--c-text-2);font-size:0;outline:0;cursor:pointer}.site-review-choice option{font-size:14px}.site-review-input-choice:focus-within input{border-color:#59cfc0;box-shadow:0 0 0 2px rgba(36,193,174,.1)}

/* 手机表单稳定性与现场复核新增弹窗 */
.site-review-create-overlay{position:fixed;inset:0;z-index:6100;box-sizing:border-box;padding:18px;overflow-y:auto;background:rgba(15,23,42,.5)}
.site-review-create-card{width:min(420px,100%);margin:24px auto;padding:20px;overflow:visible;border:1px solid var(--c-border);border-radius:16px;background:var(--c-card);box-shadow:0 22px 60px rgba(15,23,42,.3)}
.site-review-create-card h3{margin:0 0 16px;text-align:center;font-size:17px}.site-review-create-card>label{display:grid;gap:6px;margin-bottom:13px;color:var(--c-text-2);font-size:12px;font-weight:600}.site-review-create-card input{width:100%;height:44px;padding:0 12px;border:1px solid var(--c-border);border-radius:9px;background:var(--c-card-2);color:var(--c-text);font:inherit;font-size:16px;outline:0}.site-review-create-card footer{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.site-review-create-card footer .btn{min-height:44px}
/* 手机端新增复核区域全屏页 */
.site-review-create-page .site-review-create-form{width:100%;max-height:none;overflow:visible}
.site-review-create-page .site-review-create-form h3{display:none}
.site-review-create-page .site-review-create-form>label input{height:44px;font-size:16px}
.site-review-create-page .fullpage-foot .btn{flex:1}
@media(max-width:768px){.site-review-create-page .device-style-photo-row{flex-wrap:wrap}.site-review-create-page .device-style-photo-row .btn{flex:1;min-width:100px}}
.payment-record-list{display:grid;gap:12px}.payment-record-card{padding:13px;border:1px solid var(--c-border);border-radius:12px;background:var(--c-card)}.payment-record-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.payment-record-head strong{font-size:13px}.payment-record-head>span{display:flex;align-items:center;gap:7px}.payment-record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.payment-record-grid label{display:grid;gap:6px}.payment-record-grid label>span,.payment-proof-field>span{color:var(--c-text-2);font-size:10px;font-weight:600}.payment-record-grid input,.payment-record-grid select{width:100%;height:42px;padding:0 10px;border:1px solid var(--c-border);border-radius:8px;background:var(--c-card-2);color:var(--c-text);font-size:14px;outline:0}.payment-proof-field{margin-top:12px}.payment-proof-row{margin-top:7px;display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap}.payment-proof-upload{width:82px;height:82px;flex:0 0 82px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1.5px dashed #8ed8ce;border-radius:10px;background:#effaf8;color:#168f80;cursor:pointer}.payment-proof-upload input{display:none}.payment-proof-upload i{font-size:22px;font-style:normal}.payment-proof-upload b{font-size:10px}.payment-proof-preview{display:flex;flex-wrap:wrap;gap:8px}.payment-proof-preview>span{position:relative;width:82px;height:82px}.payment-proof-preview button,.payment-detail-photos button{width:100%;height:100%;padding:0;overflow:hidden;border:0;border-radius:9px;background:transparent}.payment-proof-preview img,.payment-detail-photos img{width:100%;height:100%;display:block;object-fit:cover}.payment-proof-preview>span>i{position:absolute;top:3px;right:3px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:rgba(15,23,42,.72);color:#fff;font-style:normal;cursor:pointer}.payment-detail-list{display:grid}.payment-detail-record{padding:10px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;border-bottom:1px solid var(--c-border)}.payment-detail-record:last-child{border-bottom:0}.payment-detail-record strong,.payment-detail-record small{display:block}.payment-detail-record strong{font-size:12px}.payment-detail-record small{margin-top:4px;color:var(--c-text-2);font-size:9px}.payment-detail-record>b{align-self:center;color:var(--c-text-3);font-size:13px}.payment-detail-record>b.paid{color:var(--c-primary);font-weight:700}.payment-detail-photos{grid-column:1/-1;display:flex;gap:7px;flex-wrap:wrap}.payment-detail-photos button{width:58px;height:58px}

.media-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.media-stat{min-width:0;padding:13px 14px;border:1px solid #d9e3ef;border-radius:10px;background:#f8fafd}.media-stat>span{display:block;color:#6f7e94;font-size:11px;font-weight:700}.media-stat strong{min-width:0;margin-top:7px;display:flex;align-items:baseline;gap:4px;color:#17263d;font-size:20px;line-height:1.15}.media-stat strong small{color:#7d899a;font-size:10px;font-weight:600}.media-stat strong em{margin-left:auto;color:#168f80;font-size:13px;font-style:normal;font-weight:700}.media-stat p{margin:6px 0 0;color:#8a96a8;font-size:9px;line-height:1.45}.media-stat-account{grid-column:1/-1;border-color:#a9e0d8;background:#eefaf8}.media-stat-account>span,.media-stat-account strong{color:#147f72}.media-stat-warning{border-color:#f0d5a4;background:#fff9ed}.media-stat-warning strong{color:#b56a00}.media-stat-muted{background:#f5f7fa}.media-retention-note{padding:11px 13px;display:grid;gap:4px;border-left:3px solid #24c1ae;border-radius:0 8px 8px 0;background:#f3faf9}.media-retention-note strong{color:#244057;font-size:11px}.media-retention-note p{margin:0;color:#6f7e91;font-size:10px;line-height:1.55}.media-library{display:grid;gap:18px;margin-top:3px}.media-date-group{display:grid;gap:10px}.media-date-title{display:flex;align-items:center;gap:8px;margin:0;color:var(--c-text);font-size:15px;font-weight:700}.media-date-title span{color:var(--c-text-2);font-size:10px;font-weight:500}.media-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.media-tile{width:100%;min-width:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.media-thumb{position:relative;overflow:hidden;border:1px solid var(--c-border);border-radius:10px;background:var(--c-card-2);aspect-ratio:1}.media-thumb img{display:block;width:100%;height:100%;object-fit:cover}.media-time{position:absolute;right:6px;top:6px;padding:2px 6px;border-radius:9px;background:rgba(15,23,42,.72);color:#fff;font-size:9px}.media-meta{display:grid;gap:2px;padding:6px 2px 0}.media-meta strong{overflow:hidden;color:var(--c-text);font-size:11px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.media-meta small{color:var(--c-text-2);font-size:9px}.media-source-list{display:flex;gap:4px;overflow:hidden}.media-source-list span{max-width:100%;overflow:hidden;padding:1px 5px;border-radius:7px;background:rgba(36,193,174,.1);color:var(--c-primary-deep);font-size:8px;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:480px){.media-stats{grid-template-columns:1fr}.media-stat-account{grid-column:auto}.media-gallery{gap:7px}.media-thumb{border-radius:7px}.media-meta{padding-top:5px}.media-meta strong{font-size:10px}}
@media(max-width:768px){
  html,body{max-width:100%;overflow-x:hidden}
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),select,textarea{font-size:16px!important}
  .fullpage-overlay input,.fullpage-overlay select,.fullpage-overlay textarea{font-size:16px!important}
  .mobile-form-page .fullpage-body,.project-detail-subpage .fullpage-body{max-width:100vw;overflow-x:hidden}
  .customer-form-page .form-row,.dashboard-task-editor,.project-operation-form{width:100%;min-width:0}
  .site-review-card{overflow:hidden}.site-review-entry-row{min-width:0;width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end}.site-review-entry-row>label{min-width:0}.site-review-entry-row .site-review-quantity{grid-column:1}.site-review-mini-upload{grid-column:2}.site-review-row-delete{grid-column:2;justify-self:end}.site-review-photo-preview{min-width:0}
  .payment-record-grid{grid-template-columns:1fr}.payment-record-grid input,.payment-record-grid select{font-size:16px}
}
.payment-detail-record.editable{position:relative;padding-right:54px;cursor:pointer;transition:background .15s}.payment-detail-record.editable:hover{background:color-mix(in srgb,var(--c-primary) 6%,var(--c-card))}.payment-detail-record>b.cost{color:#d78b12;font-weight:700}.detail-card-edit{position:absolute;right:12px;bottom:11px;color:var(--c-primary);font-size:10px;font-weight:700}.pd-block-edit{cursor:pointer}
.sync-update-banner{margin:0 0 12px;padding:10px 12px;border:1px solid #f2c66d;border-radius:10px;background:#fff8e8;color:#8a5a00;font-size:12px;line-height:1.5}

/* 项目记录数量、交底明细与现场复核单行展示。 */
.project-followup-count{min-width:0;padding:8px 6px;border:0;border-radius:7px;background:var(--c-card-2);color:var(--c-text-2);font:inherit;text-align:center;cursor:pointer}.project-followup-count:hover{background:color-mix(in srgb,var(--c-primary) 10%,var(--c-card-2))}.project-followup-count span{display:block;padding:0;background:none;color:inherit;font-size:10px}.project-followup-count b{display:block;margin-top:3px;color:var(--c-primary);font-size:16px}.project-followup-count small{display:block;margin-top:2px;color:var(--c-text-3);font-size:8px}.project-followup-count.warn b{color:var(--c-danger)}
.project-record-detail-list{display:grid;gap:10px}.project-record-summary-card{position:relative;width:100%;padding:12px 88px 12px 12px;border:1px solid var(--c-border);border-radius:10px;background:var(--c-card);color:var(--c-text);font:inherit;text-align:left;cursor:pointer}.project-record-summary-card:hover,.project-record-summary-card:focus{border-color:#83d8cd;background:#f5fcfb;outline:0}.project-record-detail-list header{display:flex;align-items:center;justify-content:space-between;gap:10px}.project-record-detail-list header strong{font-size:13px}.project-record-detail-list header span,.project-record-summary-card>small{color:var(--c-text-3);font-size:9px}.project-record-detail-list p{margin:9px 0;color:var(--c-text);font-size:11px;line-height:1.7;white-space:pre-wrap}.project-record-summary-card>p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-record-summary-card>b{position:absolute;right:12px;bottom:12px;color:var(--c-primary);font-size:9px}.project-followup-record-detail{display:grid;gap:12px}.project-followup-record-detail>header,.project-followup-record-detail>section{padding:12px;border:1px solid var(--c-border);border-radius:10px;background:var(--c-card)}.project-followup-record-detail>header strong,.project-followup-record-detail>header span,.project-followup-record-detail>header small{display:block}.project-followup-record-detail>header span{margin-top:7px;color:var(--c-text-2);font-size:10px}.project-followup-record-detail>header small{margin-top:4px;color:var(--c-text-3);font-size:9px}.project-followup-record-detail>section>span{color:var(--c-text-2);font-size:10px;font-weight:700}.project-followup-record-detail>section>p{margin:8px 0 0;font-size:11px;line-height:1.75;white-space:pre-wrap}.project-record-detail-photos{margin-top:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.project-record-detail-photos button{position:relative;padding:0;overflow:hidden;border:0;border-radius:9px;background:var(--c-card-2);cursor:pointer}.project-record-detail-photos img{width:100%;aspect-ratio:1;display:block;object-fit:cover}.project-record-detail-photos button span{position:absolute;right:5px;bottom:5px;padding:2px 6px;border-radius:999px;background:rgba(17,24,39,.7);color:#fff;font-size:8px}.project-record-no-photo{color:var(--c-text-3)!important}
.project-record-photo-links,.site-review-photo-text-list{margin-top:9px;display:flex;align-items:center;flex-wrap:wrap;gap:7px}.project-photo-text-link,.site-review-photo-text-list button{height:30px;padding:0 10px;border:1px solid #8ddbd1;border-radius:7px;background:#edf9f7;color:#168f80;font-size:10px;font-weight:700;cursor:pointer}.site-review-photo-text-list>span{display:flex;align-items:center}
.project-handover-list{display:grid}.project-handover-entry{width:100%;min-height:62px;padding:10px 12px;display:grid;grid-template-columns:130px minmax(0,1fr) auto;align-items:center;gap:10px;border:0;border-bottom:1px solid var(--c-border);background:transparent;color:var(--c-text);text-align:left;cursor:pointer}.project-handover-entry:last-child{border-bottom:0}.project-handover-entry span strong,.project-handover-entry span small{display:block}.project-handover-entry span strong{font-size:12px}.project-handover-entry span small{margin-top:4px;color:var(--c-text-3);font-size:8px}.project-handover-entry em{overflow:hidden;color:var(--c-text-2);font-size:10px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.project-handover-entry>b{color:var(--c-primary);font-size:9px;white-space:nowrap}.project-handover-detail{display:grid;gap:12px}.project-handover-detail header,.project-handover-detail section{padding:12px;border:1px solid var(--c-border);border-radius:10px;background:var(--c-card)}.project-handover-detail header strong,.project-handover-detail header small{display:block}.project-handover-detail header small{margin-top:5px;color:var(--c-text-3);font-size:9px}.project-handover-detail section>span{color:var(--c-text-2);font-size:9px;font-weight:700}.project-handover-detail section p{margin:7px 0 0;font-size:11px;line-height:1.75;white-space:pre-wrap}
/* 现场复核：分组布局 */
.site-review-area-group{margin-bottom:12px}
.site-review-area-title{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--c-text);background:linear-gradient(90deg,#edf9f7,var(--c-card-2));border:1px solid var(--c-border);border-bottom:0;border-radius:10px 10px 0 0}.site-review-area-title strong{font-size:15px}.site-review-area-title small{flex:0 0 auto;padding:3px 7px;border-radius:999px;background:rgba(36,193,174,.12);color:#168f80;font-size:11px;font-weight:700}
.site-review-saved-head,.site-review-saved-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) 38px minmax(64px,.8fr);align-items:center;gap:10px}.site-review-saved-head{padding:8px 12px;border-bottom:1px solid var(--c-border);background:var(--c-card-2);color:var(--c-text-3);font-size:11px;font-weight:700}.site-review-saved-list{overflow-x:auto}.site-review-saved-row{min-height:52px;padding:8px 12px;border-bottom:1px solid var(--c-border);font-size:13px}.site-review-saved-row:last-child{border-bottom:0}.site-review-saved-row>b{color:var(--c-primary);font-size:13px}.site-review-saved-row>div{display:flex;flex-wrap:wrap;gap:5px}.site-review-saved-row small{color:var(--c-text-3)}
.site-review-compact-head,.site-review-compact-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) 38px minmax(64px,.8fr);align-items:center;gap:9px}.site-review-compact-head{padding:7px 12px;color:var(--c-text-3);font-size:11px;font-weight:700;border:1px solid var(--c-border);border-bottom:0;border-radius:10px 10px 0 0;background:var(--c-card-2)}.site-review-compact-row{min-height:52px;padding:9px 12px;border:1px solid var(--c-border);border-top:0;background:var(--c-card);color:var(--c-text);font-size:13px;cursor:pointer;transition:.15s}.site-review-compact-row:last-child{border-radius:0 0 10px 10px}.site-review-area-group>.site-review-compact-head,.site-review-area-group>.site-review-saved-head{border-radius:0}.site-review-area-group>.site-review-saved-list{border:1px solid var(--c-border);border-top:0;border-radius:0 0 10px 10px}.site-review-area-group>.site-review-saved-row{border:0;border-bottom:1px solid var(--c-border)}.site-review-area-group>.site-review-saved-row:last-child{border-bottom:0}.site-review-compact-row:hover,.site-review-compact-row:focus{border-color:#83d8cd;background:#f5fcfb;outline:0}.site-review-compact-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.site-review-compact-row>b{color:var(--c-primary);text-align:center;font-size:13px}.site-review-compact-row>div{min-width:0;display:flex;align-items:center;gap:5px;overflow:hidden}.site-review-compact-row .project-photo-text-link{height:27px;flex:0 0 auto;padding:0 8px;font-size:11px}.site-review-compact-row small{color:var(--c-text-3);font-size:11px}
/* 新增表单：类别/规格层级 */
.site-review-draft-section{margin-bottom:14px}
.site-review-draft-area{display:grid;gap:6px;font-size:12px;font-weight:600;color:var(--c-text-2)}
.site-review-draft-area input{height:44px;padding:0 12px;border:1px solid var(--c-border);border-radius:9px;font-size:16px;outline:0}
.site-review-draft-groups{display:grid;gap:14px}
.site-review-draft-category{border:1px solid var(--c-border);border-radius:10px}
.site-review-dcat-head{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--c-card-2);border-bottom:1px solid var(--c-border);border-radius:10px 10px 0 0}
.site-review-dcat-head label{flex:1;display:grid;gap:4px;font-size:12px;font-weight:600;color:var(--c-text-2)}
.site-review-dcat-head .dd-trigger{height:42px;font-size:14px}
.site-review-dspec-add,.site-review-dcat-remove{height:34px;padding:0 10px;border-radius:7px;font-size:12px;cursor:pointer;flex-shrink:0}
.site-review-dspec-add{border:1px solid #8ddbd1;background:#edf9f7;color:#168f80}
.site-review-dcat-remove{border:1px solid #f2b8b5;background:#fff5f4;color:#c2413a}
.site-review-draft-spec{padding:10px 12px;border-bottom:1px dashed var(--c-border)}
.site-review-draft-spec:last-child{border-bottom:0;border-radius:0 0 10px 10px}
.site-review-dspec-row{display:grid;grid-template-columns:minmax(0,1fr) 80px 32px;align-items:end;gap:8px}
.site-review-dspec-row label{display:grid;gap:4px;font-size:12px;font-weight:600;color:var(--c-text-2)}
.site-review-dspec-row .dd-trigger{height:42px;font-size:14px}
.site-review-draft-qty input{height:42px;text-align:center;font-size:14px}
.site-review-dspec-remove{width:32px;height:32px;border:1px solid #f2b8b5;background:#fff5f4;color:#c2413a;border-radius:7px;font-size:14px;cursor:pointer}
.site-review-dspec-photos{display:flex;align-items:center;gap:8px;margin-top:8px}
.site-review-draft-add-cat{margin-top:12px;text-align:center}
.site-review-draft-add-cat .btn{min-width:120px}
.site-review-manual-input{width:100%;height:38px;margin-top:4px;padding:0 10px;border:1px solid var(--c-border);border-radius:7px;font-size:14px;outline:0;background:var(--c-card);color:var(--c-text)}
.site-review-manual-input:focus{border-color:var(--c-primary)}
.payment-detail-record.editable.payment-detail-no-label{padding-right:12px}
@media(max-width:768px){.project-followup-counts{overflow-x:auto;grid-template-columns:repeat(4,minmax(82px,1fr))}.project-record-summary-card{padding-right:72px}.project-record-detail-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.project-handover-entry{grid-template-columns:104px minmax(110px,1fr) auto}.site-review-summary{overflow:hidden}.site-review-saved-head,.site-review-saved-row{min-width:600px}.site-review-page .site-review-card{padding:12px;overflow:hidden}.site-review-page .site-review-entry-row{width:100%;min-width:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.site-review-page .site-review-entry-row>label{min-width:0}.site-review-page .site-review-entry-row>label:nth-child(3){grid-column:1/-1}.site-review-page .site-review-entry-row .site-review-quantity{grid-column:1}.site-review-page .site-review-mini-upload{grid-column:2}.site-review-page .site-review-photo-text-list{min-width:0;margin-top:2px;padding-top:10px;border-top:1px dashed var(--c-border)}}

/* 项目资料：四张摘要入口，桌面四列、窄屏两列。 */
.pd-project-resources{--pd-summary-accent:#0e9384;margin-top:16px;min-width:0}
:root[data-theme="dark"] .pd-project-resources{--pd-summary-accent:#24C1AE}
.pd-resources-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-bottom:10px;color:var(--c-text)}
.pd-resources-heading>strong{font-size:14px}.pd-resources-heading>small{font-size:11px;color:var(--c-text-2)}
.pd-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pd-summary-card{display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:178px;padding:18px;border:1px solid var(--c-border);border-radius:12px;background:color-mix(in srgb,#24C1AE 3%,var(--c-card));color:var(--c-text);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}
.pd-summary-card:hover{border-color:#24C1AE;background:color-mix(in srgb,#24C1AE 7%,var(--c-card))}
.pd-summary-card:focus-visible{outline:2px solid #24C1AE;outline-offset:3px}
.pd-summary-title{font-size:14px;font-weight:700;line-height:1.5}
.pd-summary-value{display:block;margin-top:14px;color:var(--pd-summary-accent);font-size:clamp(20px,2.1vw,28px);line-height:1.25;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.pd-summary-meta{margin:8px 0 14px;color:var(--c-text-2);font-size:12px;line-height:1.5}
.pd-summary-foot{display:flex;align-items:flex-end;flex-wrap:wrap;justify-content:space-between;gap:7px;margin-top:auto;padding-top:12px;border-top:1px solid var(--c-border);font-size:11px;line-height:1.5}
.pd-summary-foot>small{color:var(--c-text-2);font-size:10px}.pd-summary-foot>small:empty{display:none}.pd-summary-foot>span{margin-left:auto;color:var(--pd-summary-accent);font-weight:600}
.project-finance-detail{min-width:0}.project-finance-detail-summary{display:grid;gap:8px;padding:18px;margin-bottom:14px;border:1px solid var(--c-border);border-radius:12px;background:var(--c-card-2)}
.project-finance-detail-summary>span{color:var(--c-text);font-size:13px}.project-finance-detail-summary>strong{color:var(--c-primary);font-size:26px;overflow-wrap:anywhere}.project-finance-detail-summary>small{color:var(--c-text-2);font-size:12px}
.project-finance-detail .payment-detail-list{overflow:hidden;border:1px solid var(--c-border);border-radius:10px;background:var(--c-card-2)}
.project-finance-detail .payment-detail-record:focus-visible{outline:2px solid var(--c-primary);outline-offset:-2px}
@media(max-width:1024px){.pd-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:768px){.pd-summary-grid{gap:10px}.pd-summary-card{padding:14px;min-height:166px}.pd-summary-title{font-size:13px}.pd-summary-value{font-size:24px}.pd-summary-meta{font-size:11px}.project-device-menu-page .fullpage-foot{flex-wrap:wrap}.project-device-menu-page .fullpage-foot .btn{flex:1 1 40%;height:auto;min-height:40px;white-space:normal}}
@media(max-width:360px){.pd-summary-card{padding:11px}.pd-summary-value{font-size:21px}.pd-summary-foot{font-size:10px}}

/* 项目详情卡片间距与窄屏防溢出。 */
.project-detail-page .pd-block{width:100%;max-width:100%;min-width:0;margin-top:12px;box-sizing:border-box}
.project-detail-page .project-operation-block{margin-top:12px}
.project-detail-page .pd-device-catalog{max-width:100%}
.project-device-menu-block .project-list-menu-grid{margin-top:0;padding:10px}
.project-list-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.project-list-menu-card{min-width:0;padding:14px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid var(--c-border);border-radius:12px;background:var(--c-card);color:var(--c-text);font:inherit;text-align:left;cursor:pointer}.project-list-menu-card>i{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:rgba(36,193,174,.11);font-size:20px;font-style:normal}.project-list-menu-card.install>i{background:rgba(245,158,11,.12)}.project-list-menu-card span,.project-list-menu-card strong,.project-list-menu-card small{display:block;min-width:0}.project-list-menu-card strong{font-size:13px}.project-list-menu-card small{margin-top:4px;overflow:hidden;color:var(--c-text-2);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.project-list-menu-card>b{color:var(--c-text-3);font-size:24px;font-weight:400}.project-list-page{display:grid;gap:12px}.project-list-summary{padding:15px;display:grid;grid-template-columns:1fr auto;gap:5px 12px;border-radius:13px;background:linear-gradient(135deg,#24c1ae,#168f80);color:#fff}.project-list-summary span{font-size:11px;opacity:.86}.project-list-summary strong{grid-row:1/3;grid-column:2;align-self:center;font-size:22px}.project-list-summary small{font-size:10px;opacity:.9}.project-list-columns,.project-list-row{display:grid;grid-template-columns:minmax(0,1fr) 82px 92px;align-items:center;gap:8px}.project-list-columns{padding:0 12px;color:var(--c-text-2);font-size:10px}.project-list-columns span:not(:first-child){text-align:center}.project-list-rows{overflow:hidden;border:1px solid var(--c-border);border-radius:12px;background:var(--c-card)}.project-list-row{min-height:62px;padding:10px 12px;border-bottom:1px solid var(--c-border)}.project-list-row:last-child{border-bottom:0}.project-list-row>div{min-width:0}.project-list-row strong,.project-list-row small{display:block}.project-list-row strong{overflow-wrap:anywhere;font-size:12px}.project-list-row small{margin-top:4px;color:var(--c-text-2);font-size:9px}.project-list-row>span,.project-list-row>b{text-align:center;font-size:11px}.project-install-status{color:var(--c-text-3);font-weight:700}.project-install-status.partial{color:#d88708}.project-install-status.complete{color:#169b75}.project-install-status.over{color:#d45b35;font-weight:800}.project-new-status.no{color:var(--c-text-2);font-weight:500}.project-new-status.yes{padding:4px 8px;border-radius:999px;background:#fff0df;color:#d45b1d;font-weight:800}.project-list-row.is-new{border-left:3px solid #f59e0b;background:#fffaf3}.project-list-empty{padding:42px 18px;color:var(--c-text-2);font-size:12px;text-align:center}.project-device-menu-page .fullpage-foot .btn{flex:1}
.project-detail-page .payment-detail-list,.project-detail-page .project-handover-list,.project-detail-page .site-review-saved-list{min-width:0;max-width:100%}
.site-review-saved-head,.site-review-saved-row,.site-review-compact-head,.site-review-compact-row{width:100%;min-width:0;box-sizing:border-box;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) 38px minmax(64px,.8fr)}
.site-review-saved-list,.site-review-list{min-width:0;max-width:100%;overflow-x:hidden}
.site-review-saved-row>span,.site-review-saved-row>div,.site-review-compact-row>*{min-width:0}
.site-review-saved-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:768px){
  .project-list-menu-grid{grid-template-columns:1fr}.project-list-menu-card{min-height:72px}.project-list-columns,.project-list-row{grid-template-columns:minmax(0,1fr) 72px 88px}.project-device-menu-page .fullpage-body{padding:14px;background:#f4f7f8}
  .project-detail-page .fullpage-body,.project-detail-subpage .fullpage-body,.site-review-page .fullpage-body{width:100%;max-width:100vw;box-sizing:border-box;overflow-x:hidden}
  .project-detail-page .fullpage-body>*,.project-detail-subpage .fullpage-body>*,.site-review-page .fullpage-body>*{max-width:100%;min-width:0;box-sizing:border-box}
  .project-followup-counts{width:100%;min-width:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:7px;overflow-x:hidden}
  .project-followup-count{min-width:0;padding:7px 2px;overflow:hidden}
  .project-followup-count span{font-size:9px;white-space:normal;overflow-wrap:anywhere}
  .project-followup-count b{font-size:15px}
  .project-followup-count small{font-size:7px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
  .project-handover-entry{grid-template-columns:82px minmax(0,1fr) 62px;gap:5px;padding:9px 8px}
  .project-handover-entry>*{min-width:0}.project-handover-entry>b{overflow:hidden;text-overflow:ellipsis}
  .site-review-saved-head,.site-review-saved-row,.site-review-compact-head,.site-review-compact-row{min-width:0;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) 34px minmax(50px,.8fr);gap:3px}
  .site-review-saved-head,.site-review-compact-head{padding:7px 6px;font-size:10px}
  .site-review-saved-row,.site-review-compact-row{padding:8px 6px;font-size:12px}
  .site-review-saved-row>span,.site-review-compact-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .site-review-saved-row>div,.site-review-compact-row>div{gap:3px;overflow:hidden}
  .site-review-saved-row .project-photo-text-link,.site-review-compact-row .project-photo-text-link{height:24px;padding:0 4px;font-size:10px}
  .site-review-area-title{font-size:14px;padding:8px 10px}
  .site-review-dspec-row{grid-template-columns:minmax(0,1fr) 68px 28px}
  .site-review-dcat-head{flex-wrap:wrap}
  .site-review-dcat-head label{min-width:0;flex-basis:100%}.site-review-dcat-head .site-review-dspec-add,.site-review-dcat-head .site-review-dcat-remove{flex:1}
}

/* 手机端客户/项目搜索与设备清单入口：以项目搜索框的轻量规格为共同基线。 */
@media(max-width:768px){
  html body #page-content .customer-search-toolbar .customer-search-box,html body #page-content .project-search-toolbar .project-search-box{position:relative!important;box-sizing:border-box!important;height:40px!important;min-height:40px!important;padding:0!important;display:block!important;overflow:hidden!important;border:1px solid var(--c-border)!important;border-radius:7px!important;background:#fff!important;background-color:#fff!important;background-image:none!important;color:#8da0bd!important;box-shadow:none!important}
  .customer-search-box:focus-within,.project-search-box:focus-within{border-color:var(--c-primary)!important;box-shadow:0 0 0 3px rgba(36,193,174,.1)!important}
  html body #page-content .customer-search-box>span,html body #page-content .project-search-box>span{position:absolute!important;z-index:1!important;left:0!important;top:0!important;width:42px!important;height:100%!important;display:grid!important;place-items:center!important;background:#fff!important;color:#52617a!important;font-size:17px!important;pointer-events:none!important}
  html body #page-content .customer-search-box input,html body #page-content .project-search-box input{box-sizing:border-box!important;display:block!important;width:100%!important;min-width:0!important;height:100%!important;margin:0!important;padding:0 12px 0 42px!important;border:0!important;border-radius:0!important;-webkit-appearance:none!important;appearance:none!important;background:#fff!important;background-color:#fff!important;background-image:none!important;color:#17223b!important;-webkit-text-fill-color:#17223b!important;font-family:inherit!important;font-size:13px!important;box-shadow:none!important;outline:0!important}
  html body #page-content .customer-search-box input::-webkit-search-cancel-button,html body #page-content .project-search-box input::-webkit-search-cancel-button{margin-right:0;background-color:#fff}
  .customer-search-box input::placeholder,.project-search-box input::placeholder{color:#92a0b5!important}
  .project-device-menu-block .project-list-menu-grid{width:100%;min-width:0;grid-template-columns:1fr;gap:9px}
  .project-list-menu-card{--project-menu-accent:#24C1AE;--project-menu-tint:rgba(36,193,174,.11);width:100%;max-width:100%;min-width:0;min-height:76px;padding:13px;grid-template-columns:42px minmax(0,1fr) auto;overflow:hidden;border-color:color-mix(in srgb,var(--project-menu-accent) 16%,var(--c-border));background:transparent;transition:border-color .15s ease,transform .15s ease}
  .project-list-menu-card.quote{--project-menu-accent:#24C1AE;--project-menu-tint:rgba(36,193,174,.12)}
  .project-list-menu-card.install{--project-menu-accent:#2D6EA3;--project-menu-tint:rgba(45,110,163,.11)}
  .project-list-menu-card>i{background:var(--project-menu-tint)!important;color:var(--project-menu-accent)}
  .project-list-menu-card strong,.project-list-menu-card>b{color:var(--project-menu-accent)}
  .project-list-menu-card small{color:var(--c-text-2)}
  .project-list-menu-card:active{border-color:color-mix(in srgb,var(--project-menu-accent) 42%,var(--c-border));background:transparent;transform:translateY(1px)}
  .project-list-menu-card:focus-visible{outline:0;border-color:var(--project-menu-accent);box-shadow:0 0 0 3px var(--project-menu-tint)}
}

/* 待处理问题：处理结果表单与详情 */
.dashboard-issue-context{padding:12px;border:1px solid var(--c-border);border-radius:10px;background:var(--c-card-2)}
.dashboard-issue-context small,.dashboard-issue-context strong{display:block;overflow-wrap:anywhere}
.dashboard-issue-context small{margin-bottom:6px;color:var(--c-text-2)}
.dashboard-issue-context strong{line-height:1.7;white-space:pre-wrap}
.dashboard-issue-completion input[type="datetime-local"]{min-width:0;max-width:100%;box-sizing:border-box}
#dashboard-issue-photo-status{margin:10px 0;color:var(--c-text-2);font-size:12px;overflow-wrap:anywhere}
#dashboard-issue-photo-status:empty{display:none}
#dashboard-issue-photo-status .error{color:var(--c-danger)}
#dashboard-issue-photo-preview{margin-top:10px}
#dashboard-issue-photo-preview>span>button.dashboard-issue-photo-remove{position:absolute;z-index:2;top:4px;right:4px;width:26px;height:26px;border-radius:50%;background:rgba(22,30,43,.76);color:#fff}
#dashboard-issue-save:disabled{opacity:.55;cursor:wait}
#dashboard-resolved-panel .dashboard-resolved-item>div{min-width:0;overflow-wrap:anywhere}
#dashboard-resolved-panel .dashboard-resolved-item>footer{display:flex;flex-direction:column;gap:7px}
.dashboard-resolved-note{margin:6px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--c-text-2);font-size:12px}
#dashboard-resolved-detail p,#dashboard-resolved-detail strong{overflow-wrap:anywhere}
@media(max-width:768px){
  #dashboard-resolved-panel .dashboard-resolved-item{grid-template-columns:28px minmax(0,1fr)}
  #dashboard-resolved-panel .dashboard-resolved-item>footer{grid-column:2;flex-direction:row;flex-wrap:wrap}
  #dashboard-resolved-panel .dashboard-resolved-item>footer button{flex:1}
}

/* Personal profile editor: shared data form, presented as a desktop modal or mobile full-page form. */
.profile-entry{display:flex;align-items:center;gap:12px;width:100%;margin-bottom:16px;padding:10px;border:1px solid transparent;border-radius:16px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:background .16s ease,border-color .16s ease}
.profile-entry:hover,.profile-entry:focus-visible{border-color:rgba(36,193,174,.34);background:rgba(36,193,174,.07);outline:0}
.profile-entry:active{background:rgba(36,193,174,.12)}
.profile-entry-avatar{width:52px;height:52px;flex:0 0 52px;display:grid;place-items:center;overflow:hidden;border-radius:16px;background:linear-gradient(135deg,#2dd4bf,#0e9384);color:#fff;font-size:24px}
.profile-entry-avatar img{width:100%;height:100%;object-fit:cover}
.profile-entry-copy{min-width:0}.profile-entry-copy .wk-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-entry-hint{margin-top:5px;color:#168f80;font-size:12px;font-weight:700}
.profile-entry-go{margin-left:auto;color:#8b96a8;font-size:22px;font-weight:400}

.profile-editor{display:grid;gap:16px;color:#17223b}
.profile-editor-hero{display:flex;align-items:center;gap:15px;padding:16px;border:1px solid #bfe9e2;border-radius:14px;background:linear-gradient(135deg,#f1fcfa,#fff)}
#profile-avatar-preview{width:82px;height:82px;flex:0 0 82px;display:grid;place-items:center;overflow:hidden;border:3px solid #fff;border-radius:24px;background:linear-gradient(135deg,#2dd4bf,#0e9384);box-shadow:0 7px 20px rgba(22,143,128,.2);color:#fff;font-size:30px;font-weight:800}
#profile-avatar-preview img{width:100%;height:100%;object-fit:cover}
#profile-avatar-file{display:none!important}
.profile-editor-hero>div:last-child{min-width:0;flex:1}.profile-editor-hero p{margin:4px 0 10px;color:#617089;font-size:12px;line-height:1.55}.profile-editor-hero strong{display:block;font-size:15px}
.profile-editor-card{display:grid;gap:14px;padding:16px;border:1px solid #dbe8e6;border-radius:14px;background:#fff}
.profile-editor-card label{display:grid;gap:7px;color:#52617a;font-size:12px;font-weight:700}
.profile-editor-card input{box-sizing:border-box;width:100%;height:44px;padding:0 13px;border:1px solid #cadbd8;border-radius:9px;background:#fff;color:#17223b;font:inherit;font-size:14px;outline:0;transition:border-color .15s,box-shadow .15s}
.profile-editor-card input:focus{border-color:#24c1ae;box-shadow:0 0 0 3px rgba(36,193,174,.13)}
.profile-editor-card input[readonly]{border-color:#dfe8e7;background:#f5f8f8;color:#718097;cursor:default}
.profile-editor-card input[readonly]:focus{box-shadow:none}
.profile-editor-card .form-hint{margin-top:-5px}.profile-editor-card .form-hint:not(:empty){color:#168f80}
.profile-editor .btn{min-height:42px}.profile-editor-hero .btn{min-height:36px;padding:0 12px;border-color:#9ddfd5;background:#fff;color:#168f80;font-size:12px;font-weight:700}.profile-editor-hero .btn:hover{border-color:#24c1ae;background:#effbf9}
.profile-avatar-actions{display:flex;flex-wrap:wrap;gap:8px}
#profile-discard-confirm{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border:1px solid #f3d4a2;border-radius:10px;background:#fffaf0;color:#7d5a21;font-size:12px;line-height:1.5}#profile-discard-confirm[hidden]{display:none!important}
#profile-discard-confirm>div{display:flex;gap:8px;flex:0 0 auto}#profile-discard-confirm .btn{min-height:34px;padding:0 11px;font-size:12px}
@media(min-width:769px){
  #modal-overlay .modal:has(#profile-editor){width:min(540px,calc(100vw - 48px));max-width:540px;max-height:calc(100vh - 48px);border-color:#d4e7e4;background:#fff;box-shadow:0 24px 70px rgba(20,61,57,.22)}
  #modal-overlay .modal:has(#profile-editor) .modal-header{padding:19px 24px 15px;border-bottom-color:#e1eeec}
  #modal-overlay .modal:has(#profile-editor) .modal-body{padding:18px 24px;overflow-y:auto}
  #modal-overlay .modal:has(#profile-editor) .modal-footer{padding:14px 24px 18px;border-top-color:#e1eeec}
  #modal-overlay .modal:has(#profile-editor) .modal-footer .btn{height:42px;min-width:96px}
  #modal-overlay .modal:has(#profile-editor) .modal-footer .btn-primary{background:#24c1ae;border-color:#24c1ae;box-shadow:0 6px 15px rgba(36,193,174,.23)}
}
@media(max-width:768px){
  .profile-entry{margin-bottom:14px;padding:10px 8px}.profile-entry-avatar{width:54px;height:54px;flex-basis:54px}.profile-entry-hint{font-size:11px}
  #fullpage-overlay:has(#profile-editor) .fullpage-body{padding:16px 14px 20px;overflow-y:auto;-webkit-overflow-scrolling:touch}
  #fullpage-overlay:has(#profile-editor) .fullpage-foot{padding:11px 14px max(12px,env(safe-area-inset-bottom,12px));background:#fff}
  #fullpage-overlay:has(#profile-editor) .fullpage-foot .btn{height:44px;min-height:44px;padding:0 12px}
  .profile-editor{gap:14px}.profile-editor-hero{align-items:flex-start;padding:14px;gap:13px;border-radius:13px}
  #profile-avatar-preview{width:80px;height:80px;flex-basis:80px;border-radius:23px;font-size:28px}
  .profile-editor-hero p{margin:3px 0 9px}.profile-editor-hero .btn{min-height:38px}
  .profile-editor-card{gap:13px;padding:14px;border-radius:13px}.profile-editor-card input{height:46px;font-size:16px}
  #profile-discard-confirm{align-items:stretch;flex-direction:column}#profile-discard-confirm>div{justify-content:flex-end}#profile-discard-confirm .btn{min-height:38px}
}
@media(max-width:374px){.profile-editor-hero{gap:11px;padding:12px}#profile-avatar-preview{width:72px;height:72px;flex-basis:72px;border-radius:21px}.profile-editor-hero .btn{padding:0 9px}.profile-editor-card{padding:12px}}

/* Mobile Mine: account, data and software controls are grouped here; desktop settings keeps its existing layout. */
@media(max-width:768px){
  #mobile-mine.mobile-mine{padding:14px 14px calc(22px + env(safe-area-inset-bottom,0px));color:#233448}
  #mobile-mine .profile-entry{margin:0 0 14px;padding:14px;border:1px solid #c7eee8;border-radius:17px;background:linear-gradient(135deg,#effbf9,#fff);box-shadow:0 5px 18px rgba(24,90,83,.06)}
  #mobile-mine .profile-entry-avatar{border-radius:15px}.mobile-mine-group{margin:0 0 13px;border:1px solid #e1ebeb;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 3px 13px rgba(27,65,61,.035)}
  .mobile-mine-group>h3{margin:0;padding:12px 14px 7px;color:#75908e;font-size:12px;font-weight:700}.mobile-mine-row{box-sizing:border-box;width:100%;min-height:63px;padding:10px 14px;display:flex;align-items:center;gap:11px;border:0;border-top:1px solid #edf2f2;background:#fff;color:#203648;font:inherit;text-align:left;cursor:pointer}
  .mobile-mine-group>h3+.mobile-mine-row{border-top:0}.mobile-mine-row:active{background:#f0fbf9}.mobile-mine-row>span:nth-child(2){min-width:0;flex:1}.mobile-mine-row b,.mobile-mine-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-mine-row b{font-size:14px;font-weight:700}.mobile-mine-row small{margin-top:4px;color:#829293;font-size:11px}.mobile-mine-row>i,.mobile-mine-admin summary>i{color:#9aa8aa;font-size:22px;font-style:normal;font-weight:300}
  .mobile-mine-icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:10px;background:#eaf9f6;color:#159b8d}.mobile-mine-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .mobile-mine-admin{background:#fbfefd}.mobile-mine-admin summary{min-height:50px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;color:#177f74;font-size:14px;font-weight:700;cursor:pointer;list-style:none}.mobile-mine-admin summary::-webkit-details-marker{display:none}.mobile-mine-admin[open] summary{border-bottom:1px solid #e2efed}.mobile-mine-admin[open] summary>i{transform:rotate(90deg)}
  .mobile-mine-logout{box-sizing:border-box;width:100%;height:46px;margin:2px 0 8px;border:1px solid #f3c9c5;border-radius:13px;background:#fff;color:#d75149;font:inherit;font-size:14px;font-weight:700}.mobile-mine-logout:active{background:#fff5f4}.mobile-mine-dialog-actions{display:flex;gap:10px;margin-top:16px}.mobile-mine-dialog-actions .btn{flex:1}.mobile-mine-dialog-note,.mobile-mine-password-status,.mobile-mine-about{margin:0;color:#617982;font-size:13px;line-height:1.65}.mobile-mine-password-status{margin-bottom:14px;padding:10px 12px;border-radius:10px;background:#eefaf8;color:#178b7d}.mobile-mine-about{padding:8px 0;font-size:15px;font-weight:700}
}
/* Transaction details reuse the secondary modal shell. */
.wh-tx-detail{display:grid;gap:20px;color:#23334a}
.wh-tx-heading{display:grid;gap:8px}
.wh-tx-kind{justify-self:start;padding:4px 9px;border-radius:6px;background:#e8f8f5;color:#148779;font-size:11px;font-weight:600}
.wh-tx-heading h2{margin:0;font-size:21px;line-height:1.45;overflow-wrap:anywhere}
.wh-tx-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:10px}
.wh-tx-metric{padding:14px;border:1px solid #e1e9ee;border-radius:10px;background:#f7f9fb;min-width:0}
.wh-tx-metric span{display:block;color:#728094;font-size:12px;margin-bottom:8px}
.wh-tx-metric strong{display:block;font-size:22px;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.wh-tx-metric.is-total{background:#eefaf7;border-color:#c6eae3;color:#128878}
.wh-tx-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 24px;margin:0}
.wh-tx-fields>div{min-width:0}
.wh-tx-fields dt{margin:0 0 5px;color:#7a8797;font-size:12px;font-weight:400}
.wh-tx-fields dd{margin:0;color:#27384f;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.wh-tx-section{display:grid;gap:11px}.wh-tx-section>h3{margin:0;color:#526278;font-size:13px}.wh-tx-fields .wh-tx-wide{grid-column:1/-1}
.wh-tx-note{padding-top:16px;border-top:1px solid #e8edf2}
.wh-tx-note h3{margin:0 0 7px;font-size:12px;font-weight:400;color:#7a8797}
.wh-tx-note p{margin:0;font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.wh-tx-hint{margin:0;padding-top:14px;border-top:1px solid #e8edf2;font-size:12px;line-height:1.6;color:#8793a3}
#modal-overlay:has(.wh-tx-detail) .modal{width:min(680px,calc(100vw - 48px));max-width:680px}
#modal-overlay:has(.wh-tx-detail) #modal-body{padding:24px 28px}
#modal-overlay:has(.wh-tx-detail) #transactionDetailDelete{margin-right:auto}
@media(max-width:480px){.wh-tx-detail{gap:18px}.wh-tx-heading h2{font-size:19px}.wh-tx-summary{gap:7px;grid-template-columns:repeat(auto-fit,minmax(88px,1fr))}.wh-tx-metric{padding:12px 9px}.wh-tx-metric strong{font-size:18px}.wh-tx-fields{gap:15px 16px}.wh-tx-fields dd{font-size:14px}}

.qw-estimated-total{position:relative!important;overflow:visible!important}.qw-estimated-cost-popover{position:absolute;z-index:120;left:50%;top:calc(100% + 6px);width:min(240px,calc(100vw - 32px));padding:10px;border:1px solid #b9cbe2;border-radius:9px;background:#fff;box-shadow:0 12px 28px rgba(28,49,80,.2);transform:translateX(-50%);text-align:left;white-space:normal;line-height:1.35}.qw-estimated-cost-popover b{display:block;margin-bottom:6px;font-size:12px}.qw-estimated-cost-popover .qw-estimated-cost-input{width:100%;height:34px!important;padding:0 8px!important;border:1px solid #b9cbe2!important;border-radius:6px!important;background:#fff!important;text-align:left;outline:0}.qw-estimated-cost-popover .qw-estimated-cost-input:focus{border-color:#24c1ae!important;box-shadow:0 0 0 2px rgba(36,193,174,.14)}.qw-estimated-cost-popover .qw-estimated-cost-input.invalid{border-color:#dc4c64!important}.qw-estimated-cost-preview,.qw-estimated-cost-error{display:block;margin-top:6px;font-size:11px;font-style:normal}.qw-estimated-cost-preview{color:#617089}.qw-estimated-cost-error{color:#c93850}

.qw-original-price-input.invalid{border-color:#dc4c64!important;box-shadow:0 0 0 2px rgba(220,76,100,.12)!important}.qw-original-price-hint{display:block;margin-top:3px;color:#617089;font-size:10px;line-height:1.25;text-align:center;white-space:normal}.qw-original-price-hint.error{color:#c93850}
@media(min-width:769px){#quotation-workspace .qw-item-row>.qw-field-5{position:relative;display:block;min-width:0;width:100%}#quotation-workspace .qw-item-row>.qw-field-5>input{width:100%;min-width:0}#quotation-workspace .qw-field-5>.qw-original-price-hint{position:absolute;z-index:5;top:calc(100% + 2px);left:0;right:0;margin:0;padding:2px 3px;border-radius:4px;background:rgba(255,255,255,.96);box-shadow:0 2px 7px rgba(34,52,78,.12);pointer-events:none}}
#page-content.quotation-workspace-page{animation:none!important;transform:none!important}#quotation-workspace{padding-bottom:calc(var(--qw-bottom-height,72px) + 18px)!important}.qw-bottom{position:fixed!important;left:var(--qw-content-left,0)!important;right:var(--qw-content-right,0)!important;bottom:0!important;z-index:850!important;margin:0!important;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;border-radius:0!important}.qw-export-wrap #qw-export-menu{top:auto!important;bottom:calc(100% + 8px)!important;max-height:min(320px,60vh);overflow:auto}
@media(max-width:768px){#page-content.quotation-workspace-page .qw-bottom{position:fixed!important;left:var(--qw-content-left,0)!important;right:var(--qw-content-right,0)!important;bottom:0!important;margin:0!important;padding:10px 10px calc(10px + env(safe-area-inset-bottom,0px))!important}.qw-bottom>div:last-child{grid-template-columns:repeat(3,minmax(0,1fr))}.qw-bottom button{min-width:0;padding-left:6px!important;padding-right:6px!important;font-size:11px!important}}

.qw-operating-panel{margin-top:12px;padding:12px;border:1px solid #d6e0ed;border-radius:8px;background:#f7f9fc}.qw-operating-panel label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}.qw-operating-panel input{width:100px;min-width:0;text-align:center}.qw-operating-panel small{display:block;margin-top:7px;color:#687991;font-size:11px;line-height:1.5}[data-theme="dark"] .qw-operating-panel{background:var(--c-card-2);border-color:var(--c-border);color:var(--c-text-2)}

.qw-price-editor-anchor{position:relative!important;overflow:visible!important}.qw-price-editor-anchor:has(.qw-estimated-cost-popover){z-index:121}

#quotation-workspace .qw-table-head>span{ text-align:center!important }
#quotation-workspace .qw-item-row .qw-cell-input,#quotation-workspace .qw-item-row .qw-name-input,#quotation-workspace .qw-item-row .qw-device-select,#quotation-workspace .qw-item-row .qw-device-selected-name{ text-align:center }
#quotation-workspace .qw-item-row .qw-device-select{ text-align-last:center }
#quotation-workspace .qw-item-row .qw-device-selected-name{inset:1px;justify-content:safe center;padding:0 29px}
