/* ==========================================================================
   迅羽 · 中央空调安装接单平台
   设计语言：深青 / 暖橙 / 纸白，克制、可靠、有施工现场的温度
   ========================================================================== */

:root {
  --ink: #0b1b2b;
  --ink-2: #26384a;
  --ink-3: #5b6b7b;
  --ink-4: #8a97a5;
  --line: #e4e9ed;
  --line-soft: #eef2f4;
  --paper: #ffffff;
  --bg: #f4f6f7;
  --bg-2: #edf1f2;
  --teal: #0f766e;
  --teal-2: #0b5d57;
  --teal-3: #0a4b46;
  --teal-soft: #e6f3f0;
  --teal-mist: #f0f8f6;
  --orange: #f5a524;
  --orange-soft: #fef3dc;
  --red: #d64545;
  --red-soft: #fdeceb;
  --blue: #2f6fed;
  --blue-soft: #eaf1fe;
  --purple: #7b5cd6;
  --purple-soft: #f0ecfc;
  --green: #16845b;
  --green-soft: #e6f6ee;
  --shadow-xs: 0 1px 2px rgba(11, 27, 43, 0.04);
  --shadow-sm: 0 2px 8px rgba(11, 27, 43, 0.05), 0 1px 2px rgba(11, 27, 43, 0.04);
  --shadow-md: 0 10px 30px rgba(11, 27, 43, 0.09);
  --shadow-lg: 0 24px 70px rgba(11, 27, 43, 0.18);
  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(15, 118, 110, 0.18); }
[hidden] { display: none !important; }

.icon { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }

/* ---------- 基础组件 ---------- */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 17px;
  border: 1px solid transparent; border-radius: 11px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  white-space: nowrap; user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 118, 110, 0.18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { --btn-bg: var(--teal); }
.btn-dark { --btn-bg: var(--ink); }
.btn-orange { --btn-bg: var(--orange); --btn-fg: #3a2600; }
.btn-danger { --btn-bg: var(--red); }
.btn-soft { --btn-bg: var(--teal-soft); --btn-fg: var(--teal-2); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: #fff; box-shadow: var(--shadow-sm); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--teal-2); box-shadow: var(--shadow-sm); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 11px; }
.btn-link { background: none; border: 0; color: var(--teal); font-weight: 600; padding: 4px 0; display: inline-flex; align-items: center; gap: 3px; }
.btn-link .icon { width: 15px; height: 15px; }
.btn.is-loading { pointer-events: none; opacity: 0.8; }
.btn.is-loading .btn-label { visibility: hidden; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-soft.is-loading::after, .btn-ghost.is-loading::after, .btn-white.is-loading::after {
  border-color: rgba(15, 118, 110, 0.25); border-top-color: var(--teal);
}
.btn.is-loading { position: relative; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: 7px;
  font-size: 12px; font-weight: 600; white-space: nowrap; letter-spacing: 0.01em;
  background: var(--line-soft); color: var(--ink-3);
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-pool, .badge-urgent { background: var(--orange-soft); color: #a46400; }
.badge-accepted, .badge-review { background: var(--blue-soft); color: var(--blue); }
.badge-stage1_review, .badge-stage2_review, .badge-stage3_review { background: var(--purple-soft); color: var(--purple); }
.badge-completed, .badge-approved, .badge-paid { background: var(--green-soft); color: var(--green); }
.badge-cancelled, .badge-pending { background: #eef1f3; color: var(--ink-4); }
.badge-submitted { background: var(--orange-soft); color: #a46400; }
.badge-rejected { background: var(--red-soft); color: var(--red); }
.badge-settled, .badge-confirmed { background: var(--teal-soft); color: var(--teal-2); }
.badge-role { background: #eef1f3; color: var(--ink-2); font-weight: 500; }
.badge-role.admin { background: var(--teal-soft); color: var(--teal-2); }

.avatar {
  --hue: 190;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, hsl(var(--hue) 42% 90%), hsl(var(--hue) 36% 82%));
  color: hsl(var(--hue) 55% 28%);
  font-weight: 700; font-size: 15px; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-xl { width: 72px; height: 72px; font-size: 26px; }

.muted { color: var(--ink-3); }
.faint { color: var(--ink-4); }
.tiny { font-size: 12px; }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 4px; }
.grow { flex: 1 1 auto; min-width: 0; }
.wrap { flex-wrap: wrap; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }
.text-teal { color: var(--teal); }
.text-orange { color: #a46400; }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-right { text-align: right; }
.divider { height: 1px; background: var(--line-soft); }

.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.field > label, .field-label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.field > label .req { color: var(--red); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: #fbfcfc;
  border-radius: 11px; padding: 0 13px; height: 44px;
  font-size: 14px; color: var(--ink); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.textarea { height: auto; min-height: 92px; padding: 11px 13px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #a7b1bc; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}
.input:disabled, .select:disabled { background: #f3f5f6; color: var(--ink-4); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6b7b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hint { font-size: 12px; color: var(--ink-4); line-height: 1.5; }
.error-text { font-size: 12.5px; color: var(--red); }
.form-error {
  background: var(--red-soft); color: var(--red); border-radius: 10px;
  padding: 9px 12px; font-size: 13px; margin-bottom: 12px;
}
.input-group { position: relative; }
.input-group .input { padding-right: 44px; }
.input-group .input-action {
  position: absolute; right: 4px; top: 4px; width: 36px; height: 36px;
  border: 0; background: none; border-radius: 8px; color: var(--ink-4);
  display: flex; align-items: center; justify-content: center;
}
.input-group .input-action:hover { background: var(--line-soft); color: var(--ink-2); }
.search-box { position: relative; }
.search-box .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-4); width: 18px; }
.search-box .input { padding-left: 38px; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 13.5px; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--teal); margin-top: 2px; flex: 0 0 auto; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { display: none; }
.switch .track { width: 40px; height: 23px; border-radius: 99px; background: #cfd7dd; position: relative; transition: background 0.2s; flex: 0 0 auto; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.switch input:checked + .track { background: var(--teal); }
.switch input:checked + .track::after { transform: translateX(17px); }
.segmented { display: inline-flex; padding: 3px; background: var(--line-soft); border-radius: 11px; gap: 2px; }
.segmented button { border: 0; background: none; padding: 7px 13px; border-radius: 8px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); font-weight: 600; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--ink-3);
  height: 32px; padding: 0 13px; border-radius: 99px; font-size: 13px; display: inline-flex; align-items: center; gap: 5px;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 卡片 / 布局 ---------- */
.card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.card-head h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.card-body { padding: 18px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 2px 12px; }
.section-title h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.section-title .count { color: var(--ink-4); font-weight: 500; font-size: 12px; margin-left: 4px; }
.section-link { font-size: 12.5px; color: var(--ink-4); display: inline-flex; align-items: center; gap: 2px; }
.section-link .icon { width: 14px; height: 14px; }

/* ---------- 空状态 / 骨架 / 加载 ---------- */
.empty { padding: 42px 20px; text-align: center; color: var(--ink-4); }
.empty .empty-icon { width: 54px; height: 54px; border-radius: 18px; margin: 0 auto 12px; background: var(--line-soft); display: flex; align-items: center; justify-content: center; color: var(--ink-4); }
.empty h4 { color: var(--ink-2); font-size: 14.5px; margin-bottom: 4px; }
.empty p { font-size: 12.5px; line-height: 1.6; }
.empty .btn { margin-top: 14px; }
.skeleton { background: linear-gradient(90deg, #eef1f3 25%, #f7f9f9 37%, #eef1f3 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
.skeleton-line { height: 13px; margin-bottom: 9px; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(15, 118, 110, 0.18); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.7s linear infinite; }
.loading-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--ink-4); font-size: 13px; }
.top-progress { position: fixed; z-index: 300; top: 0; left: 0; height: 3px; width: 100%; overflow: hidden; background: transparent; }
.top-progress::after { content: ""; display: block; width: 40%; height: 100%; background: var(--teal); animation: progress 1s ease-in-out infinite; border-radius: 2px; }

/* ---------- 弹层 / Toast ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 16, 27, 0.52);
  backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.18s ease;
}
.modal {
  width: min(560px, 100%); max-height: min(88vh, 900px); background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  animation: modalIn 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.modal.modal-lg { width: min(760px, 100%); }
.modal.modal-xl { width: min(980px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 14px; flex: 0 0 auto; }
.modal-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.modal-head p { color: var(--ink-4); font-size: 12.5px; margin-top: 3px; }
.modal-close { border: 0; background: var(--line-soft); width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); flex: 0 0 auto; }
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-body { padding: 6px 22px 20px; overflow-y: auto; flex: 1 1 auto; }
.modal-foot { padding: 14px 22px calc(16px + var(--safe-bottom)); border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 9px; flex: 0 0 auto; background: #fff; }
.modal-foot .btn { min-width: 84px; }
.modal-narrow { width: min(430px, 100%); }
.modal-full { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
.modal-backdrop.full { padding: 0; }

.toast-root { position: fixed; z-index: 400; top: max(16px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: min(420px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: flex-start; gap: 9px; background: rgba(11, 27, 43, 0.94); color: #fff;
  padding: 11px 16px; border-radius: 11px; font-size: 13.5px; line-height: 1.45; box-shadow: var(--shadow-md);
  animation: toastIn 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1); max-width: 100%;
}
.toast .icon { width: 17px; height: 17px; margin-top: 1px; }
.toast.success .icon { color: #6ee7b7; }
.toast.error .icon { color: #fca5a5; }
.toast.warn .icon { color: #fcd34d; }
.toast.leaving { animation: toastOut 0.22s ease forwards; }

/* ==========================================================================
   师傅端（移动优先）
   ========================================================================== */
.m-shell {
  width: 100%; max-width: 540px; min-height: 100dvh; margin: 0 auto;
  background: var(--bg); display: flex; flex-direction: column; position: relative;
  box-shadow: 0 0 0 1px rgba(11, 27, 43, 0.04);
}
.m-main { flex: 1 1 auto; padding-bottom: 24px; }
.m-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, #127f75 0%, #0f766e 38%, #0a514c 78%, #083b38 100%);
  color: #fff; padding: calc(14px + env(safe-area-inset-top)) 18px 74px;
  border-radius: 0 0 28px 28px;
}
.m-hero::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: -110px; top: -140px; background: radial-gradient(circle, rgba(245, 165, 36, 0.28), transparent 68%);
}
.m-hero::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  left: -120px; bottom: -150px; background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
}
.m-hero > * { position: relative; z-index: 1; }
.m-hero.compact { padding-bottom: 30px; border-radius: 0 0 24px 24px; }
.m-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.m-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: 0.03em; font-size: 13px; }
.m-brand .mark {
  width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hello { margin-top: 20px; }
.hello .greet { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.hello .date { color: rgba(255, 255, 255, 0.7); font-size: 12px; margin-top: 3px; }
.m-hero-actions { display: flex; gap: 8px; align-items: center; }
.hero-icon-btn {
  width: 36px; height: 36px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1); color: #fff; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-icon-btn .icon { width: 19px; height: 19px; }
.hero-icon-btn .unread-dot { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--orange); color: #3a2600; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #0e6d65; }

.earn-card {
  margin: -56px 16px 0; position: relative; z-index: 2;
  background: linear-gradient(125deg, #0b1b2b 0%, #143244 58%, #0d4a46 100%);
  color: #fff; border-radius: 20px; padding: 18px 18px 16px;
  box-shadow: 0 14px 30px rgba(11, 27, 43, 0.22); overflow: hidden;
}
.earn-card::after { content: ""; position: absolute; right: -40px; top: -60px; width: 170px; height: 170px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, 0.05); }
.earn-card .label { font-size: 12px; color: rgba(255, 255, 255, 0.62); display: flex; align-items: center; gap: 6px; }
.earn-card .amount { font-size: 31px; font-weight: 800; letter-spacing: -0.03em; margin: 3px 0 1px; font-variant-numeric: tabular-nums; }
.earn-card .amount small { font-size: 16px; font-weight: 600; opacity: 0.7; margin-right: 2px; }
.earn-card .sub { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.earn-card .stat { display: flex; flex-direction: column; gap: 1px; }
.earn-card .stat span { font-size: 10.5px; color: rgba(255, 255, 255, 0.56); }
.earn-card .stat b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.earn-card .go { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: flex; align-items: center; justify-content: center; }

.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 14px 16px 0; }
.quick-stats.repair-stats { grid-template-columns: repeat(2, 1fr); margin: 12px 0 0; }
.qstat { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 11px 12px; box-shadow: var(--shadow-xs); }
.qstat b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qstat b.teal { color: var(--teal); }
.qstat b.orange { color: var(--orange); }
.qstat span { display: block; font-size: 11px; color: var(--ink-4); margin-top: 1px; }
.qstat .n { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.qstat .l { font-size: 11px; color: var(--ink-4); margin-top: 1px; }
.qstat.accent .n { color: var(--orange); }
.qstat.teal .n { color: var(--teal); }

.m-body { padding: 0 16px; }
.notice-strip {
  margin-top: 14px; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(120deg, #fff8e8, #fffdf7); border: 1px solid #f7e7c4;
  border-radius: 13px; padding: 10px 12px; color: #75520a; font-size: 12.5px;
}
.notice-strip .icon { width: 17px; height: 17px; color: #b37b13; flex: 0 0 auto; }
.notice-strip .text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-strip .tag { font-size: 10px; font-weight: 700; background: #f3d79c; color: #624300; border-radius: 5px; padding: 2px 5px; }

/* 订单卡片 */
.order-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 17px;
  padding: 15px; box-shadow: var(--shadow-xs); margin-bottom: 11px; position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.order-card:active { transform: scale(0.992); }
.order-card.urgent { border-left: 3px solid var(--orange); }
.oc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oc-no { font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); letter-spacing: -0.02em; }
.oc-title { font-size: 15.5px; font-weight: 700; margin-top: 7px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
.oc-title .type { font-size: 11px; font-weight: 600; color: var(--teal-2); background: var(--teal-soft); border-radius: 5px; padding: 2px 6px; }
.oc-addr { display: flex; align-items: flex-start; gap: 5px; color: var(--ink-3); font-size: 12.5px; margin-top: 5px; line-height: 1.45; }
.oc-addr .icon { width: 14px; height: 14px; margin-top: 2px; color: var(--ink-4); }
.oc-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 9px; color: var(--ink-3); font-size: 12px; }
.oc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.oc-meta .icon { width: 13px; height: 13px; color: var(--ink-4); }
.oc-progress { margin-top: 12px; }
.oc-fee-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line); }
.oc-fee .fee { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.oc-fee .fee small { font-size: 11px; font-weight: 600; color: var(--ink-4); margin-right: 2px; }
.oc-fee .fee-label { font-size: 10.5px; color: var(--ink-4); }
.oc-actions { display: flex; gap: 7px; }
.oc-actions .btn { height: 34px; font-size: 12.5px; padding: 0 13px; border-radius: 9px; }

/* 三阶段进度 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 8px; left: 16%; right: 16%; height: 2px; background: var(--line); }
.steps .step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.steps .sdot { width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: transparent; }
.steps .sdot .icon { width: 10px; height: 10px; stroke-width: 3; }
.steps .slabel { font-size: 10px; color: var(--ink-4); white-space: nowrap; }
.steps .step.done .sdot { background: var(--teal); border-color: var(--teal); color: #fff; }
.steps .step.done .slabel { color: var(--teal-2); }
.steps .step.current .sdot { border-color: var(--orange); background: #fff; color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.steps .step.current .slabel { color: #a46400; font-weight: 600; }
.steps .step.rejected .sdot { border-color: var(--red); background: #fff; color: var(--red); }
.steps .step.rejected .slabel { color: var(--red); }
.steps .step.done + .step::before { content: ""; position: absolute; left: -50%; right: 50%; top: 8px; height: 2px; background: var(--teal); z-index: -1; }

/* 订单池 */
.pool-top { padding: 0 16px; }
.pool-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 17px; padding: 15px;
  margin-bottom: 11px; box-shadow: var(--shadow-xs); position: relative; overflow: hidden;
}
.pool-card.urgent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); }
.pool-fee { display: grid; grid-template-columns: repeat(3, 1fr); background: #f8faf9; border-radius: 11px; padding: 9px 4px; margin-top: 11px; }
.pool-fee .pf { text-align: center; border-right: 1px solid var(--line); }
.pool-fee .pf:last-child { border-right: 0; }
.pool-fee .pf span { display: block; font-size: 10px; color: var(--ink-4); }
.pool-fee .pf b { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pool-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; }
.distance-pill { font-size: 11px; color: var(--teal-2); background: var(--teal-soft); border-radius: 99px; padding: 3px 8px; display: inline-flex; align-items: center; gap: 3px; }
.distance-pill .icon { width: 12px; height: 12px; }
.pool-empty { padding: 50px 20px; text-align: center; color: var(--ink-4); font-size: 13px; }

/* 订单详情 */
.detail-page { background: var(--bg); min-height: 100dvh; padding-bottom: 90px; }
.detail-hero {
  background: linear-gradient(140deg, #127f75, #0b5d57 62%, #083b38); color: #fff;
  padding: calc(12px + env(safe-area-inset-top)) 18px 28px; border-radius: 0 0 26px 26px; position: relative; overflow: hidden;
}
.detail-hero::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; right: -100px; top: -80px; border: 28px solid rgba(255, 255, 255, 0.06); }
.detail-hero > * { position: relative; z-index: 1; }
.dh-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.back-btn { width: 36px; height: 36px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.1); color: #fff; display: flex; align-items: center; justify-content: center; }
.back-btn.dark { background: #fff; color: var(--ink); border-color: var(--line); }
.detail-hero .order-no { margin-top: 18px; font-family: var(--mono); font-size: 11.5px; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.02em; }
.detail-hero h1 { font-size: 22px; font-weight: 750; margin-top: 4px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.detail-hero .sub { color: rgba(255, 255, 255, 0.72); font-size: 12.5px; margin-top: 5px; }
.hero-pill { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.14); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.detail-body { padding: 0 16px; margin-top: -10px; position: relative; z-index: 2; }
.info-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 17px; padding: 16px; box-shadow: var(--shadow-sm); }
.info-rows { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row:first-child { padding-top: 0; }
.info-row .k { color: var(--ink-4); flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
.info-row .k .icon { width: 14px; height: 14px; }
.info-row .v { text-align: right; color: var(--ink-2); font-weight: 500; min-width: 0; word-break: break-all; }
.info-row .v strong { font-weight: 700; }
.phone-link { color: var(--teal); font-weight: 700; font-variant-numeric: tabular-nums; }
.addr-link { color: var(--teal); }

.fee-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 11px; }
.fee-summary .fs { background: #f8faf9; border: 1px solid var(--line-soft); border-radius: 11px; padding: 9px 10px; }
.fee-summary .fs .l { font-size: 10px; color: var(--ink-4); }
.fee-summary .fs .v { font-size: 15px; font-weight: 800; margin-top: 1px; font-variant-numeric: tabular-nums; }
.fee-summary .fs.hl { background: var(--teal-mist); border-color: #d5ebe6; }
.fee-summary .fs.hl .v { color: var(--teal-2); }

.stage-list { margin-top: 14px; }
.stage-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 17px; margin-bottom: 11px; overflow: hidden; box-shadow: var(--shadow-xs); }
.stage-card.active { border-color: #cfe7e2; box-shadow: 0 6px 20px rgba(15, 118, 110, 0.08); }
.stage-card.rejected { border-color: #f2cfcc; }
.stage-head { display: flex; align-items: flex-start; gap: 11px; padding: 14px 15px 12px; }
.stage-idx { width: 29px; height: 29px; border-radius: 9px; background: var(--line-soft); color: var(--ink-3); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.stage-card.active .stage-idx { background: var(--teal); color: #fff; }
.stage-card.done .stage-idx { background: var(--green-soft); color: var(--green); }
.stage-card.rejected .stage-idx { background: var(--red-soft); color: var(--red); }
.stage-head .st-title { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.stage-head .st-sub { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.stage-fee { text-align: right; flex: 0 0 auto; }
.stage-fee .f { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stage-fee .l { font-size: 10px; color: var(--ink-4); }
.stage-body { padding: 0 15px 14px; }
.stage-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; background: #f8faf9; border-radius: 9px; padding: 9px 10px; }
.stage-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--ink-3); margin-top: 9px; }
.stage-meta span { display: inline-flex; align-items: center; gap: 4px; }
.stage-meta .icon { width: 13px; height: 13px; color: var(--ink-4); }
.stage-alert { background: var(--red-soft); color: #9c2f2f; border-radius: 9px; padding: 8px 10px; font-size: 12.5px; margin-top: 9px; display: flex; gap: 6px; align-items: flex-start; line-height: 1.5; }
.stage-alert .icon { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }
.stage-actions { display: flex; gap: 8px; margin-top: 12px; }
.stage-actions .btn { flex: 1; height: 38px; border-radius: 10px; font-size: 13px; }
.stage-locked { font-size: 11.5px; color: var(--ink-4); display: flex; align-items: center; gap: 5px; margin-top: 9px; }
.stage-locked .icon { width: 13px; height: 13px; }
.stage-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 9px; }
.stage-photos a { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: var(--line-soft); }
.stage-photos img { width: 100%; height: 100%; object-fit: cover; }
.signature-preview { margin-top: 9px; border: 1px dashed var(--line); border-radius: 9px; padding: 5px; background: #fff; }
.signature-preview img { max-height: 70px; margin: 0 auto; }

/* 通用上传区 */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line-soft); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item .del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(11, 27, 43, 0.7); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; }
.photo-item .del .icon { width: 12px; height: 12px; }
.photo-add { aspect-ratio: 1; border: 1.5px dashed #c9d4db; border-radius: 10px; background: #fafcfc; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--ink-4); font-size: 11px; }
.photo-add .icon { width: 21px; height: 21px; }
.photo-add:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-mist); }
.upload-status { font-size: 11.5px; color: var(--teal); display: flex; align-items: center; gap: 6px; }
.upload-status .spinner { width: 13px; height: 13px; border-width: 1.5px; }
.photo-demo-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 7px; }
.photo-count { font-size: 11px; color: var(--ink-4); }
.photo-count b { color: var(--teal); }

.upload-box { border: 1.5px dashed #c9d4db; border-radius: 12px; padding: 16px; text-align: center; color: var(--ink-3); font-size: 13px; background: #fafcfc; }
.upload-box .icon { width: 24px; height: 24px; color: var(--teal); margin-bottom: 5px; }
.upload-box small { display: block; color: var(--ink-4); font-size: 11px; margin-top: 3px; }

/* 签名 */
.sig-wrap { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; touch-action: none; }
.sig-wrap canvas { width: 100%; height: 190px; display: block; touch-action: none; }
.sig-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--ink-4); }
.sig-foot button { border: 0; background: none; color: var(--teal); font-weight: 600; font-size: 12px; }
.rating { display: flex; gap: 4px; }
.rating button { border: 0; background: none; padding: 2px; color: #d7dee4; }
.rating button.on { color: var(--orange); }
.rating .icon { width: 26px; height: 26px; fill: currentColor; stroke: currentColor; }

/* 定位 */
.locate-box { background: #f6faf9; border: 1px solid #dcebe7; border-radius: 12px; padding: 12px; }
.locate-head { display: flex; align-items: flex-start; gap: 9px; }
.locate-head .pin { width: 34px; height: 34px; border-radius: 10px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.locate-head .pin .icon { width: 18px; height: 18px; }
.locate-head .addr { font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.locate-head .coords { font-size: 10.5px; color: var(--ink-4); margin-top: 2px; font-family: var(--mono); }
.locate-actions { display: flex; gap: 7px; margin-top: 9px; }
.locate-actions .btn { flex: 1; height: 34px; font-size: 12px; border-radius: 8px; }
.locate-state { font-size: 11px; margin-top: 7px; display: flex; align-items: center; gap: 4px; }
.locate-state.ok { color: var(--green); }
.locate-state.warn { color: #a46400; }

/* 钱包 */
.wallet-hero { background: linear-gradient(140deg, #0b1b2b, #103a3b 70%, #0d5c55); color: #fff; padding: calc(14px + env(safe-area-inset-top)) 18px 68px; border-radius: 0 0 28px 28px; position: relative; overflow: hidden; }
.wallet-hero::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -110px; top: -130px; background: radial-gradient(circle, rgba(245, 165, 36, 0.2), transparent 65%); }
.wallet-hero > * { position: relative; z-index: 1; }
.wallet-amount { margin-top: 22px; }
.wallet-amount .l { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.wallet-amount .v { font-size: 36px; font-weight: 800; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; margin-top: 1px; }
.wallet-amount .v small { font-size: 17px; opacity: 0.65; margin-right: 3px; }
.wallet-amount .m { font-size: 11.5px; color: rgba(255, 255, 255, 0.55); margin-top: 2px; }
.wallet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; }
.wallet-grid .wg { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 11px; padding: 9px 10px; }
.wallet-grid .wg span { display: block; font-size: 10px; color: rgba(255, 255, 255, 0.6); }
.wallet-grid .wg b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wallet-card { margin: -48px 16px 0; position: relative; z-index: 2; background: #fff; border-radius: 17px; box-shadow: var(--shadow-md); padding: 15px 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wallet-card .wc { text-align: center; border-right: 1px solid var(--line-soft); }
.wallet-card .wc:last-child { border-right: 0; }
.wallet-card .wc span { font-size: 10.5px; color: var(--ink-4); display: block; }
.wallet-card .wc b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wallet-card .wc b.teal { color: var(--teal); }
.wallet-card .wc b.orange { color: #a46400; }

.month-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
.month-row:last-child { border-bottom: 0; }
.month-row .m { font-size: 13.5px; font-weight: 600; }
.month-row .bar { flex: 1; height: 5px; background: var(--line-soft); border-radius: 99px; margin: 0 12px; overflow: hidden; }
.month-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #4fb3a8); border-radius: 99px; }
.month-row .amt { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.settle-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 15px; padding: 13px 14px; margin-bottom: 9px; box-shadow: var(--shadow-xs); }
.settle-card .sc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.settle-card .sc-month { font-size: 14px; font-weight: 700; }
.settle-card .sc-no { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); margin-top: 1px; }
.settle-card .sc-amt { font-size: 17px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.settle-card .sc-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--ink-4); }
.settle-card .sc-meta .go { margin-left: auto; color: var(--teal); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.settle-card .sc-meta .icon { width: 12px; height: 12px; }

.pending-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.pending-item:last-child { border-bottom: 0; }
.pending-item .pi-main { flex: 1; min-width: 0; }
.pending-item .pi-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pending-item .pi-sub { font-size: 10.5px; color: var(--ink-4); margin-top: 1px; }
.pending-item .pi-amt { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 我的 */
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head .avatar { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2); }
.profile-head .name { font-size: 21px; font-weight: 750; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.profile-head .meta { font-size: 11.5px; color: rgba(255, 255, 255, 0.68); margin-top: 3px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 13px; padding: 11px 0; }
.profile-stats .ps { text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.13); }
.profile-stats .ps:last-child { border-right: 0; }
.profile-stats .ps b { display: block; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.profile-stats .ps span { font-size: 10px; color: rgba(255, 255, 255, 0.6); }
.menu-list { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; margin-top: 14px; }
.menu-item { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi-icon { width: 33px; height: 33px; border-radius: 9px; background: var(--teal-mist); color: var(--teal); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.menu-item .mi-icon .icon { width: 17px; height: 17px; }
.menu-item .mi-text { flex: 1; }
.menu-item .mi-sub { font-size: 11px; color: var(--ink-4); }
.menu-item .chev { color: #c2ccd4; }
.profile-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 15px; margin-top: 14px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.skill-tag { font-size: 11px; background: var(--teal-soft); color: var(--teal-2); padding: 3px 8px; border-radius: 6px; }

/* 公告 */
.notice-page { padding-bottom: 30px; }
.notice-item { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px; margin-bottom: 9px; }
.notice-item .nt { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.notice-item .nb { font-size: 12.5px; color: var(--ink-3); line-height: 1.65; margin-top: 5px; white-space: pre-wrap; }
.notice-item .nd { font-size: 10.5px; color: var(--ink-4); margin-top: 7px; }
.pin-tag { font-size: 9px; background: var(--orange-soft); color: #a46400; padding: 2px 5px; border-radius: 4px; font-weight: 700; }

/* 底部导航 */
.tabbar {
  position: sticky; bottom: 0; z-index: 50; flex: 0 0 auto;
  display: flex;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 7px 6px calc(7px + var(--safe-bottom));
}
.tabbar a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #8b98a5; font-size: 10px; padding: 2px 0; border-radius: 9px; position: relative; }
.tabbar a .icon { width: 21px; height: 21px; stroke-width: 1.7; }
.tabbar a.active { color: var(--teal); font-weight: 600; }
.tabbar a.active .icon { stroke-width: 2.2; }
.tabbar a.active::before { content: ""; position: absolute; top: -8px; width: 18px; height: 3px; border-radius: 0 0 3px 3px; background: var(--teal); }
.tabbar .tab-badge { position: absolute; top: -3px; right: calc(50% - 17px); min-width: 15px; height: 15px; border-radius: 8px; background: var(--red); color: #fff; font-size: 9px; display: flex; align-items: center; justify-content: center; padding: 0 3px; border: 1.5px solid #fff; }

/* ==========================================================================
   登录页
   ========================================================================== */
.login-page { min-height: 100dvh; display: grid; grid-template-columns: 1.08fr 0.92fr; background: #fff; }
.login-brand {
  position: relative; overflow: hidden; color: #fff; padding: 46px 54px;
  background: linear-gradient(150deg, #0b1b2b 0%, #0b302f 45%, #0a514c 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.login-brand::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(160deg, #000 30%, transparent 82%);
}
.login-brand::after { content: ""; position: absolute; width: 520px; height: 520px; right: -210px; bottom: -230px; border-radius: 50%; border: 70px solid rgba(15, 118, 110, 0.28); }
.login-brand > * { position: relative; z-index: 1; }
.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-logo .mark { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(140deg, #17a294, #0f766e); display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 800; box-shadow: 0 8px 24px rgba(15, 118, 110, 0.4); }
.brand-logo .bt { font-size: 19px; font-weight: 750; letter-spacing: 0.02em; }
.brand-logo .bs { font-size: 10px; color: rgba(255, 255, 255, 0.48); letter-spacing: 0.16em; text-transform: uppercase; }
.brand-copy { margin: 40px 0 20px; max-width: 470px; }
.brand-copy .kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #9fe3d9; border: 1px solid rgba(159, 227, 217, 0.25); background: rgba(15, 118, 110, 0.18); padding: 4px 9px; border-radius: 99px; letter-spacing: 0.06em; }
.brand-copy h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.18; letter-spacing: -0.035em; font-weight: 800; margin: 18px 0 14px; }
.brand-copy h1 em { font-style: normal; color: #f5b94c; }
.brand-copy p { font-size: 14px; line-height: 1.8; color: rgba(255, 255, 255, 0.6); max-width: 410px; }
.login-art { margin: 16px 0 26px; max-width: 430px; }
.login-art svg { width: 100%; height: auto; }
.brand-points { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 22px; max-width: 450px; }
.brand-point { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: rgba(255, 255, 255, 0.7); }
.brand-point .bp-ic { width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: #8fd9cf; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.brand-point .bp-ic .icon { width: 14px; height: 14px; }
.brand-point b { display: block; color: #fff; font-size: 12.5px; font-weight: 600; }
.brand-point span { font-size: 10.5px; color: rgba(255, 255, 255, 0.42); }
.brand-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 10.5px; color: rgba(255, 255, 255, 0.35); border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 18px; margin-top: 28px; }
.login-side { display: flex; align-items: center; justify-content: center; padding: 38px; position: relative; background: #fbfcfc; }
.login-side::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--orange)); }
.login-card { width: min(400px, 100%); }
.login-card .lc-eyebrow { font-size: 11px; font-weight: 700; color: var(--teal); letter-spacing: 0.14em; text-transform: uppercase; }
.login-card h2 { font-size: 27px; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.login-card .lc-sub { font-size: 13px; color: var(--ink-4); margin-top: 5px; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--line-soft); border-radius: 12px; padding: 4px; margin: 22px 0 19px; }
.role-switch button { border: 0; background: none; border-radius: 9px; padding: 9px 8px; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 500; }
.role-switch button .icon { width: 16px; height: 16px; }
.role-switch button.active { background: #fff; color: var(--teal); font-weight: 700; box-shadow: var(--shadow-sm); }
.login-form .field { margin-bottom: 14px; }
.login-form .input { height: 48px; border-radius: 12px; }
.login-form .btn { height: 48px; border-radius: 12px; font-size: 15px; margin-top: 5px; }
.login-error { background: var(--red-soft); color: #a32f2f; border-radius: 10px; padding: 9px 11px; font-size: 12.5px; margin-bottom: 12px; display: flex; gap: 6px; align-items: flex-start; }
.login-error .icon { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }
.demo-block { margin-top: 25px; padding-top: 19px; border-top: 1px dashed var(--line); }
.demo-title { font-size: 11px; color: var(--ink-4); display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.demo-title span:last-child { color: var(--ink-4); font-size: 10.5px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.demo-btn { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 10px; text-align: left; display: flex; align-items: center; gap: 8px; transition: border-color 0.15s, background 0.15s; }
.demo-btn:hover { border-color: var(--teal); background: var(--teal-mist); }
.demo-btn .db-avatar { width: 25px; height: 25px; border-radius: 7px; background: var(--teal-soft); color: var(--teal-2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.demo-btn .db-name { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.demo-btn .db-role { display: block; font-size: 9.5px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-btn > span:last-child { min-width: 0; }
.login-help { text-align: center; font-size: 11px; color: var(--ink-4); margin-top: 18px; line-height: 1.7; }
.login-help b { color: var(--ink-3); font-weight: 600; }
.login-help a { color: var(--teal); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(15,118,110,.28); }
.login-mobile-brand { display: none; }

/* ==========================================================================
   管理后台
   ========================================================================== */
.admin-shell { display: flex; min-height: 100dvh; background: #f3f5f7; }
.admin-sidebar {
  width: 246px; flex: 0 0 auto; background: #0b1b2b; color: rgba(255, 255, 255, 0.72);
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 80;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.sb-brand { display: flex; align-items: center; gap: 11px; padding: 22px 20px 18px; }
.sb-brand .mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(140deg, #17a294, #0f766e); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #fff; box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35); }
.sb-brand .bt { color: #fff; font-size: 16px; font-weight: 750; letter-spacing: 0.02em; line-height: 1.2; }
.sb-brand .bs { font-size: 9px; color: rgba(255, 255, 255, 0.35); letter-spacing: 0.13em; text-transform: uppercase; }
.sb-nav { flex: 1; overflow-y: auto; padding: 6px 12px 20px; }
.sb-group { margin-top: 18px; }
.sb-group-label { font-size: 9.5px; color: rgba(255, 255, 255, 0.28); letter-spacing: 0.14em; text-transform: uppercase; padding: 0 10px 7px; }
.sb-item { display: flex; align-items: center; gap: 10px; padding: 9.5px 11px; border-radius: 9px; font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-bottom: 2px; position: relative; transition: background 0.15s, color 0.15s; }
.sb-item .icon { width: 18px; height: 18px; stroke-width: 1.7; color: rgba(255, 255, 255, 0.4); }
.sb-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.sb-item.active { background: rgba(15, 118, 110, 0.28); color: #fff; font-weight: 600; }
.sb-item.active .icon { color: #6fd3c7; }
.sb-item.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #4fc3b4; }
.sb-item .count { margin-left: auto; background: var(--orange); color: #3a2600; font-size: 9.5px; font-weight: 800; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.sb-user { margin: 12px; padding: 11px; border-radius: 11px; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; gap: 9px; }
.sb-user .avatar { width: 34px; height: 34px; font-size: 13px; }
.sb-user .u-name { color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.sb-user .u-role { font-size: 10px; color: rgba(255, 255, 255, 0.4); }
.sb-user .u-out { margin-left: auto; border: 0; background: none; color: rgba(255, 255, 255, 0.4); padding: 4px; }
.sb-user .u-out:hover { color: #fff; }
.admin-main { flex: 1; min-width: 0; margin-left: 246px; display: flex; flex-direction: column; min-height: 100dvh; }
.admin-topbar {
  height: 66px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px;
  padding: 0 28px; position: sticky; top: 0; z-index: 60;
}
.admin-topbar .tb-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.admin-topbar .tb-crumb { font-size: 11px; color: var(--ink-4); margin-top: 0; }
.admin-topbar .tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-icon { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ink-3); position: relative; }
.tb-icon:hover { background: var(--line-soft); }
.tb-icon .unread-dot { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--red); color: #fff; font-size: 9px; display: flex; align-items: center; justify-content: center; padding: 0 3px; border: 1.5px solid #fff; }
.tb-date { font-size: 11.5px; color: var(--ink-4); padding-right: 4px; }
.tb-menu { display: none; }
.admin-content { padding: 26px 28px 46px; max-width: 1520px; width: 100%; margin: 0 auto; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
.page-head p { font-size: 12.5px; color: var(--ink-4); margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line-soft); border-radius: 15px; padding: 16px 17px; box-shadow: var(--shadow-xs); position: relative; overflow: hidden; }
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi .k-label { font-size: 11.5px; color: var(--ink-4); }
.kpi .k-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--teal-mist); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.kpi .k-icon .icon { width: 17px; height: 17px; }
.kpi .k-value { font-size: 27px; font-weight: 800; letter-spacing: -0.035em; margin-top: 9px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .k-value small { font-size: 13px; color: var(--ink-4); font-weight: 500; margin-left: 3px; letter-spacing: 0; }
.kpi .k-foot { font-size: 10.5px; color: var(--ink-4); margin-top: 7px; display: flex; align-items: center; gap: 5px; }
.kpi .k-foot b { color: var(--teal); font-weight: 600; }
.kpi.warn .k-icon { background: var(--orange-soft); color: #a46400; }
.kpi.warn .k-value { color: #a46400; }
.kpi.blue .k-icon { background: var(--blue-soft); color: var(--blue); }
.kpi.dark { background: linear-gradient(135deg, #0b1b2b, #123a3a); border-color: transparent; }
.kpi.dark .k-label, .kpi.dark .k-foot { color: rgba(255, 255, 255, 0.5); }
.kpi.dark .k-value { color: #fff; }
.kpi.dark .k-icon { background: rgba(255, 255, 255, 0.1); color: #7bd8cc; }
.kpi.dark .k-foot b { color: #f5b94c; }

.admin-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-top: 14px; }
.admin-grid.equal { grid-template-columns: 1fr 1fr; }
.chart-wrap { padding: 16px 18px 12px; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.chart-head h3 { font-size: 14.5px; font-weight: 700; }
.chart-head p { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.chart-legend { display: flex; gap: 12px; font-size: 10.5px; color: var(--ink-4); }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 170px; margin-top: 16px; padding-top: 8px; border-bottom: 1px solid var(--line-soft); position: relative; }
.bars::before { content: ""; position: absolute; inset: 8px 0 0; background: repeating-linear-gradient(to bottom, var(--line-soft) 0 1px, transparent 1px 42px); pointer-events: none; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; position: relative; z-index: 1; }
.bar-pair { display: flex; align-items: flex-end; gap: 4px; height: 100%; width: 100%; justify-content: center; }
.bar { width: min(16px, 34%); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #1a968a, #0f766e); min-height: 3px; transition: height 0.4s; position: relative; }
.bar.b2 { background: linear-gradient(180deg, #f7c15c, #f5a524); }
.bar .tip { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--ink-3); opacity: 0; transition: opacity 0.15s; }
.bar-col:hover .bar .tip { opacity: 1; }
.bar-label { font-size: 9.5px; color: var(--ink-4); margin-top: 5px; white-space: nowrap; }
.chart-foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 11px; font-size: 10.5px; color: var(--ink-4); }
.chart-foot b { color: var(--ink-2); }

.todo-list { padding: 6px 0; }
.todo-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 17px; border-bottom: 1px solid var(--line-soft); }
.todo-item:last-child { border-bottom: 0; }
.todo-item .ti-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-top: 6px; flex: 0 0 auto; }
.todo-item .ti-main { flex: 1; min-width: 0; }
.todo-item .ti-title { font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.todo-item .ti-sub { font-size: 10.5px; color: var(--ink-4); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.todo-item .ti-fee { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.todo-item .btn { height: 27px; padding: 0 9px; font-size: 11px; border-radius: 7px; }

.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th { text-align: left; font-size: 10.5px; font-weight: 600; color: var(--ink-4); letter-spacing: 0.04em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfcfc; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background 0.12s; }
.data-table tbody tr:hover { background: #fbfcfc; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table .t-strong { font-weight: 600; color: var(--ink); }
.data-table .t-sub { font-size: 10.5px; color: var(--ink-4); margin-top: 1px; }
.data-table .t-money { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .t-actions { display: flex; gap: 5px; justify-content: flex-end; }
.data-table .empty-cell { padding: 34px; text-align: center; color: var(--ink-4); }
.table-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-xs); }
.table-toolbar { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.table-toolbar .search-box { width: 240px; }
.table-toolbar .select { width: 140px; height: 38px; font-size: 12.5px; }
.table-toolbar .input { height: 38px; font-size: 12.5px; }
.table-toolbar .spacer { flex: 1; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-size: 11px; color: var(--ink-4); border-top: 1px solid var(--line-soft); }
.pager { display: flex; align-items: center; gap: 5px; }
.pager button { width: 29px; height: 29px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-3); display: flex; align-items: center; justify-content: center; font-size: 11.5px; }
.pager button.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.pager button:disabled { opacity: 0.4; cursor: not-allowed; }

.order-cell { display: flex; align-items: center; gap: 9px; }
.type-dot { width: 31px; height: 31px; border-radius: 9px; background: var(--teal-mist); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.mini-stages { display: flex; align-items: center; gap: 3px; }
.mini-stage { width: 26px; height: 5px; border-radius: 3px; background: var(--line); }
.mini-stage.done { background: var(--teal); }
.mini-stage.submitted { background: var(--orange); }
.mini-stage.rejected { background: var(--red); }
.mini-stage-label { font-size: 9.5px; color: var(--ink-4); margin-top: 3px; white-space: nowrap; }
.assignee { display: flex; align-items: center; gap: 6px; }
.assignee .avatar { width: 24px; height: 24px; font-size: 10px; }

.list-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.audit-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 15px; padding: 15px; box-shadow: var(--shadow-xs); }
.audit-card .ac-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.audit-card .ac-no { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }
.audit-card .ac-title { font-size: 14px; font-weight: 700; margin-top: 3px; }
.audit-card .ac-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }
.audit-card .ac-thumbs { display: flex; gap: 5px; margin-top: 9px; }
.audit-card .ac-thumbs img { width: 48px; height: 48px; border-radius: 7px; object-fit: cover; }
.audit-card .ac-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); }
.audit-card .ac-fee { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.audit-card .ac-fee span { font-size: 10px; color: var(--ink-4); font-weight: 500; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-stat { background: #fff; border: 1px solid var(--line-soft); border-radius: 13px; padding: 12px 14px; }
.mini-stat .l { font-size: 10.5px; color: var(--ink-4); }
.mini-stat .v { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.mini-stat .v small { font-size: 11px; color: var(--ink-4); font-weight: 500; }

.installer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.installer-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 15px; padding: 16px; box-shadow: var(--shadow-xs); position: relative; }
.installer-card.disabled { opacity: 0.82; }
.installer-card .ic-head { display: flex; align-items: center; gap: 10px; }
.installer-card .ic-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.installer-card .ic-meta { font-size: 10.5px; color: var(--ink-4); margin-top: 1px; }
.installer-card .ic-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.installer-card .ic-stats div { text-align: center; border-right: 1px solid var(--line-soft); }
.installer-card .ic-stats div:last-child { border-right: 0; }
.installer-card .ic-stats b { display: block; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.installer-card .ic-stats span { font-size: 9.5px; color: var(--ink-4); }
.installer-card .ic-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.installer-card .ic-areas { font-size: 10px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr); gap: 14px; align-items: start; }
.detail-stack { display: flex; flex-direction: column; gap: 14px; }
.detail-section { background: #fff; border: 1px solid var(--line-soft); border-radius: 15px; overflow: hidden; }
.detail-section > .ds-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.detail-section > .ds-head h3 { font-size: 13.5px; font-weight: 700; }
.detail-section > .ds-body { padding: 16px; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.kv .k { font-size: 10.5px; color: var(--ink-4); }
.kv .v { font-size: 12.5px; font-weight: 500; margin-top: 1px; word-break: break-all; }
.kv .v.strong { font-weight: 700; }

.audit-stage { border: 1px solid var(--line-soft); border-radius: 12px; padding: 13px; margin-bottom: 10px; }
.audit-stage:last-child { margin-bottom: 0; }
.audit-stage.submitted { border-color: #f0dfb7; background: #fffdf8; }
.audit-stage.rejected { border-color: #f2cfcc; }
.audit-stage .as-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.audit-stage .as-name { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.audit-stage .as-fee { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.audit-stage .as-info { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.6; }
.audit-stage .as-photos { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.audit-stage .as-photos img { width: 58px; height: 58px; border-radius: 7px; object-fit: cover; }

.log-list { display: flex; flex-direction: column; gap: 0; }
.log-item { display: flex; gap: 10px; position: relative; padding-bottom: 13px; }
.log-item:last-child { padding-bottom: 0; }
.log-item::before { content: ""; position: absolute; left: 5px; top: 13px; bottom: 0; width: 1px; background: var(--line); }
.log-item:last-child::before { display: none; }
.log-item .ldot { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--line); margin-top: 3px; flex: 0 0 auto; z-index: 1; }
.log-item:first-child .ldot { border-color: var(--teal); background: var(--teal-soft); }
.log-item .l-main { flex: 1; min-width: 0; }
.log-item .l-action { font-size: 11.5px; font-weight: 600; }
.log-item .l-detail { font-size: 10.5px; color: var(--ink-4); margin-top: 1px; line-height: 1.5; }
.log-item .l-time { font-size: 9.5px; color: var(--ink-4); white-space: nowrap; }

.permission-group { margin-bottom: 14px; }
.permission-group .pg-label { font-size: 10px; font-weight: 700; color: var(--ink-4); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.permission-group .check-grid { gap: 7px 12px; }

.settlement-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.settlement-summary .ss { background: #fff; border: 1px solid var(--line-soft); border-radius: 13px; padding: 13px 15px; }
.settlement-summary .ss > span { display: block; font-size: 10.5px; color: var(--ink-4); }
.settlement-summary .ss > b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.025em; margin-top: 1px; font-variant-numeric: tabular-nums; }
.settlement-summary .ss.hl > span { color: rgba(255, 255, 255, 0.6); }
.settlement-summary .ss.hl > b { color: #fff; }
.settlement-summary .ss .l { font-size: 10.5px; color: var(--ink-4); }
.settlement-summary .ss .v { font-size: 21px; font-weight: 800; letter-spacing: -0.025em; margin-top: 1px; font-variant-numeric: tabular-nums; }
.settlement-summary .ss.hl { background: linear-gradient(135deg, #0f766e, #0b5d57); border-color: transparent; }
.settlement-summary .ss.hl .l { color: rgba(255, 255, 255, 0.6); }
.settlement-summary .ss.hl .v { color: #fff; }

.settings-section { max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.form-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 15px; overflow: hidden; }
.form-card .fc-head { padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.form-card .fc-head h3 { font-size: 14px; font-weight: 700; }
.form-card .fc-head p { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.form-card .fc-body { padding: 18px; }
.form-card .fc-foot { padding: 13px 18px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 8px; background: #fbfcfc; }

.notice-admin-list { display: flex; flex-direction: column; gap: 10px; }
.notice-admin { background: #fff; border: 1px solid var(--line-soft); border-radius: 13px; padding: 14px 15px; }
.notice-admin .na-head { display: flex; align-items: center; gap: 8px; }
.notice-admin .na-title { font-size: 13.5px; font-weight: 700; }
.notice-admin .na-body { font-size: 12px; color: var(--ink-3); margin-top: 5px; line-height: 1.65; white-space: pre-wrap; }
.notice-admin .na-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 10px; color: var(--ink-4); }

.no-perm { padding: 70px 20px; text-align: center; }
.no-perm .np-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--orange-soft); color: #a46400; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.no-perm h3 { font-size: 17px; font-weight: 700; }
.no-perm p { font-size: 12.5px; color: var(--ink-4); margin-top: 5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .installer-grid { grid-template-columns: repeat(2, 1fr); }
  .settlement-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.25s ease; box-shadow: none; }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 20px 0 60px rgba(0, 0, 0, 0.25); }
  .admin-main { margin-left: 0; }
  .tb-menu { display: flex; }
  .admin-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-side { min-height: 100dvh; padding: 28px 22px; align-items: flex-start; padding-top: 46px; }
  .login-mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 34px; }
  .login-mobile-brand .mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(140deg, #17a294, #0f766e); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; }
  .login-mobile-brand .bt { font-size: 16px; font-weight: 750; }
  .login-mobile-brand .bs { font-size: 9px; color: var(--ink-4); letter-spacing: 0.12em; }
}
@media (max-width: 820px) {
  .admin-content { padding: 20px 16px 40px; }
  .admin-topbar { padding: 0 16px; height: 60px; }
  .tb-date { display: none; }
  .page-head h1 { font-size: 22px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .list-cards { grid-template-columns: 1fr; }
  .kv-grid { grid-template-columns: 1fr; gap: 9px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; gap: 0; }
  .data-table th, .data-table td { padding: 10px; }
  .table-toolbar .search-box { width: 100%; }
  .table-toolbar .select { flex: 1; min-width: 120px; }
}
@media (max-width: 560px) {
  body { background: var(--bg); }
  .m-shell { max-width: none; box-shadow: none; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; animation: sheetIn 0.25s cubic-bezier(0.2, 0.9, 0.3, 1); }
  .modal.modal-lg, .modal.modal-xl { width: 100%; }
  .modal-foot { padding-bottom: calc(14px + var(--safe-bottom)); }
  .modal-head { padding: 17px 18px 12px; }
  .modal-body { padding: 4px 18px 18px; }
  .modal-foot { padding-left: 18px; padding-right: 18px; }
  .modal.full-mobile { height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .login-side { padding: 24px 20px; }
  .login-card h2 { font-size: 25px; }
  .demo-grid { grid-template-columns: 1fr 1fr; }
  .toast-root { top: 10px; }
  .kpi-grid { gap: 10px; }
  .kpi { padding: 13px; }
  .kpi .k-value { font-size: 23px; }
  .admin-grid { margin-top: 10px; }
  .settlement-summary { gap: 8px; }
  .installer-grid { grid-template-columns: 1fr; }
  .detail-grid { gap: 10px; }
  .admin-topbar .tb-title { font-size: 14px; }
  .admin-topbar .tb-crumb { display: none; }
  .bars { gap: 7px; height: 150px; }
  .bar { width: 40%; }
  .chart-wrap { padding: 14px 14px 10px; }
  .page-head { margin-bottom: 16px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .table-toolbar { padding: 11px 12px; }
  .table-foot { padding: 10px 12px; }
  .data-table th:nth-child(3), .data-table td:nth-child(3) { display: none; }
}
@media (min-width: 561px) {
  .m-shell { min-height: 100dvh; }
}
@media (min-width: 900px) {
  body:has(.m-shell) { background: radial-gradient(circle at 20% 10%, #e7efee, #eef2f4 55%, #e8edef); }
  .m-shell { min-height: calc(100dvh - 0px); box-shadow: 0 0 0 1px rgba(11, 27, 43, 0.06), 0 24px 70px rgba(11, 27, 43, 0.1); }
}
@media (min-width: 900px) {
  .m-shell { max-width: 500px; }
}

/* ---------- 动画 ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px) scale(0.98); } }
@keyframes progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* 启动屏 */
.boot-screen { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(160deg, #0b1b2b, #0b302f 60%, #0a514c); color: #fff; }
.boot-logo { width: 62px; height: 62px; border-radius: 19px; background: linear-gradient(140deg, #17a294, #0f766e); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; box-shadow: 0 12px 30px rgba(15, 118, 110, 0.4); }
.boot-name { font-size: 17px; font-weight: 700; letter-spacing: 0.12em; }
.boot-bar { width: 96px; height: 3px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.boot-bar span { display: block; width: 40%; height: 100%; background: #6fd3c7; border-radius: 2px; animation: progress 1.1s ease-in-out infinite; }

/* ---------- 后台补充 ---------- */
.sb-scrim { position: fixed; inset: 0; z-index: 79; background: rgba(6, 18, 28, 0.48); backdrop-filter: blur(2px); }
.sb-scrim[hidden] { display: none; }
@media (min-width: 1081px) { .sb-scrim { display: none !important; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 14px; }
.form-grid .field { margin-bottom: 0; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }

.table-scroll { width: 100%; overflow-x: auto; }
.table-scroll .data-table { min-width: 760px; }
.table-scroll .pager button { width: auto; padding: 0 10px; gap: 3px; }
.pager button { width: auto; min-width: 29px; padding: 0 9px; gap: 3px; white-space: nowrap; }
.pager button:disabled { opacity: 0.4; cursor: not-allowed; }

.rank-no { width: 22px; height: 22px; border-radius: 7px; background: var(--teal-mist); color: var(--teal); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 1px; }
.chart-legend .dot { width: 7px; height: 7px; border-radius: 2px; display: inline-block; background: var(--teal); }
.chart-legend .dot.orange { background: var(--orange); }
.status-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.status-pills .pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; background: var(--bg); color: var(--ink-3); font-size: 10.5px; }
.status-pills .pill b { color: var(--ink); }

.fee-lines .kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 12px; }
.fee-lines .kv:last-child { border-bottom: 0; }
.fee-lines .kv.total { margin-top: 3px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.audit-review .kv { display: flex; gap: 10px; padding: 5px 0; font-size: 12px; }
.audit-review .kv .k { width: 68px; flex: 0 0 auto; color: var(--ink-4); }
.audit-review .kv .v { color: var(--ink-2); }

.as-actions { display: flex; gap: 7px; justify-content: flex-end; padding: 0 16px 13px; }
.as-head .stage-idx { flex: 0 0 auto; }
.audit-stage .as-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 7px; padding: 0 16px 10px; }
.audit-stage .as-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* 售后维修 */
.part-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.part-row:last-child { border-bottom: 0; }
.part-row .grow { min-width: 0; }
.stage-fee-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--teal-mist); border: 1px solid #d5ece7; margin-bottom: 14px; }
.stage-fee-banner b { font-size: 20px; color: var(--teal); }
.repair-type-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.fee-summary .fs > span { display: block; font-size: 10px; color: var(--ink-4); }
.fee-summary .fs > b { display: block; font-size: 15px; font-weight: 800; margin-top: 1px; font-variant-numeric: tabular-nums; }
.fee-summary .fs > small { display: block; font-size: 10px; color: var(--ink-4); margin-top: 2px; }
.fee-summary .fs.hl > b { color: var(--teal-2); }

/* ---------------- 材料与工资条 ---------------- */
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-orange { background: var(--orange-soft); color: #a46400; }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-gray { background: #eef1f3; color: var(--ink-4); }

.m-hero-sm { padding-bottom: 22px; }
.m-hero-sm .hello h1 { font-size: 25px; }
.hero-link { display: inline-flex; align-items: center; gap: 3px; margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.8); }

.material-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.material-card { position: relative; border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 13px; min-width: 0; }
.material-card.in-cart { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft); }
.mc-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mc-code { font-size: 10px; color: var(--ink-4); letter-spacing: .4px; }
.material-card h3 { margin-top: 8px; font-size: 15px; font-weight: 750; line-height: 1.35; }
.mc-spec { margin-top: 3px; min-height: 30px; font-size: 11px; color: var(--ink-4); line-height: 1.45; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; }
.mc-price { color: var(--teal-2); font-size: 17px; font-weight: 800; white-space: nowrap; }
.mc-price small { font-size: 10px; font-weight: 500; color: var(--ink-4); }
.mc-stock { margin-top: 7px; font-size: 10px; color: var(--ink-4); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--teal); border-radius: 9px; overflow: hidden; }
.stepper button { width: 27px; height: 27px; border: 0; background: var(--teal-soft); color: var(--teal-2); font-size: 16px; cursor: pointer; }
.stepper b { min-width: 25px; text-align: center; font-size: 12px; }
.cart-bar { position: fixed; left: 50%; bottom: 67px; z-index: 62; transform: translateX(-50%); width: min(540px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; background: rgba(11,27,43,.97); color: #fff; border-radius: 15px 15px 0 0; box-shadow: 0 -6px 24px rgba(11,27,43,.2); }
.cart-bar b { display: block; font-size: 16px; }
.cart-bar span { display: block; margin-top: 2px; font-size: 11px; color: rgba(255,255,255,.65); }
.cart-bar .btn { flex-shrink: 0; }
.checkout-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.checkout-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); }
.checkout-row:last-child { border-bottom: 0; }
.checkout-row b { font-size: 13px; }
.checkout-row span { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-4); }
.checkout-total { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; }
.checkout-total span { font-size: 13px; color: var(--ink-3); }
.checkout-total b { font-size: 21px; color: var(--teal-2); }

.material-order-card { margin-bottom: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.moc-head, .moc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.moc-head .mono { font-size: 11px; color: var(--ink-4); }
.moc-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.moc-body b { font-size: 14px; }
.moc-body span { font-size: 11px; color: var(--ink-4); }
.moc-foot { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-4); }
.moc-foot b { font-size: 17px; color: var(--ink); }
.tabs-pill { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.tabs-pill button { flex-shrink: 0; border: 1px solid var(--line); background: #fff; color: var(--ink-3); padding: 7px 12px; border-radius: 99px; font-size: 12px; cursor: pointer; }
.tabs-pill button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.wallet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 18px; }
.wallet-actions a { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); }
.wallet-actions a svg { color: var(--teal); }
.wallet-actions a b { font-size: 12px; }
.wallet-actions a span { font-size: 10px; color: var(--ink-4); }

.payroll-kpis { grid-template-columns: repeat(5, 1fr); }
.payroll-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
.payroll-rules div { padding: 12px; border-radius: 11px; background: var(--bg); }
.payroll-rules b { display: block; font-size: 13px; }
.payroll-rules span { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-4); line-height: 1.55; }
.payslip-card { margin-bottom: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.pc-head, .pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-head b { font-size: 16px; }
.pc-head .mono { display: block; margin-top: 3px; font-size: 10px; color: var(--ink-4); }
.pc-net { margin-top: 10px; font-size: 26px; font-weight: 850; color: var(--teal-2); }
.pc-net small { margin-left: 5px; font-size: 11px; font-weight: 400; color: var(--ink-4); }
.pc-foot { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--ink-4); }
.pc-foot svg { margin-left: auto; }
.payslip-hero h1 { font-size: 36px; color: #fff; margin-top: 8px; }
.payslip-hero p { margin-top: 5px; color: rgba(255,255,255,.7); font-size: 12px; }
.payslip-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.payslip-line:last-child { border-bottom: 0; }
.payslip-line b { font-size: 13px; }
.payslip-line span { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-4); }

.payslip-sheet { max-width: 900px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.ps-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.ps-brand { font-size: 12px; color: var(--ink-4); letter-spacing: 1px; }
.ps-head h2 { margin-top: 6px; font-size: 23px; }
.ps-head p { margin-top: 4px; font-size: 11px; color: var(--ink-4); }
.ps-person { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ps-person span { display: block; font-size: 10px; color: var(--ink-4); }
.ps-person b { display: block; margin-top: 3px; font-size: 13px; }
.ps-table { margin-top: 16px; }
.ps-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.ps-summary div { padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.ps-summary span { display: block; font-size: 11px; color: var(--ink-4); }
.ps-summary b { display: block; margin-top: 3px; font-size: 16px; }
.ps-summary .total { background: var(--ink); color: #fff; }
.ps-summary .total b { color: #fff; font-size: 22px; }
.ps-summary .total span { color: rgba(255,255,255,.7); }
.ps-foot { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 10px; color: var(--ink-4); line-height: 1.6; }

@media (max-width: 900px) {
  .payroll-kpis { grid-template-columns: repeat(2, 1fr); }
  .payroll-rules { grid-template-columns: 1fr 1fr; }
  .ps-person { grid-template-columns: 1fr 1fr; }
  .payslip-sheet { padding: 18px; }
}
@media (max-width: 560px) {
  .material-grid { gap: 8px; }
  .payroll-rules { grid-template-columns: 1fr; }
  .ps-summary { grid-template-columns: 1fr 1fr; }
}
@media print {
  .admin-sidebar, .admin-topbar, .no-print, .sb-scrim, .toast, .modal-backdrop { display: none !important; }
  .admin-main { margin-left: 0 !important; }
  .admin-content { padding: 0 !important; max-width: none !important; }
  .payslip-sheet { border: 0; padding: 0; max-width: none; }
  body { background: #fff; }
}
.kv-grid .kv { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.finance-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.finance-filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.finance-table { min-width: 1080px; }
.finance-table .t-sub { font-size: 11px; }
.row-loss td { background: #fffafa; }
@media (max-width: 1100px) { .finance-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .finance-filters { grid-template-columns: 1fr 1fr; } }
.material-month { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 12px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #0b1b2b, #0d4a46); }
.material-month span { display: block; font-size: 11px; color: rgba(255,255,255,.66); }
.material-month b { display: block; margin-top: 2px; font-size: 24px; letter-spacing: -.02em; }
.material-month .mm-side { text-align: right; }
.material-month em { display: block; font-style: normal; font-size: 11px; color: rgba(255,255,255,.78); }
.material-month em + em { margin-top: 5px; }
.online-dot,.offline-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:1px}
.online-dot{background:var(--green);box-shadow:0 0 0 4px rgba(22,163,74,.12)}
.offline-dot{background:#c3ccd4}
.sb-nav{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.22) transparent}
.sb-nav::-webkit-scrollbar{width:4px}
.sb-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2);border-radius:4px}
.photo-spec { border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-bottom:10px; background:#fff; }
.photo-spec-head { display:flex; align-items:center; gap:8px; font-size:13px; }
.photo-spec-head .tiny { margin-left:auto; }
.photo-spec-grid { margin-top:8px; }
.kpi-link { text-decoration: none; color: inherit; display: block; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.kpi-link:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: var(--shadow-sm); }
.kpi-link:focus-visible { outline: 3px solid rgba(15,118,110,.25); outline-offset: 2px; }
.kpi-link::after { content: ''; position: absolute; inset: 0; }
.filter-toolbar { flex-wrap: wrap; row-gap: 10px; }
.filter-toolbar .search-box { flex: 1 1 230px; min-width: 210px; max-width: 360px; }
.filter-toolbar .input[type="date"] { color: var(--ink-2); }
@media (max-width: 820px) {
  .filter-toolbar { align-items: stretch; }
  .filter-toolbar .search-box, .filter-toolbar .select, .filter-toolbar .input { flex: 1 1 140px; width: auto !important; max-width: none; }
}
.link-btn { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.risk-strip { display:flex; align-items:center; gap:9px; padding:12px 16px; margin-bottom:18px; border:1px solid #f3c4c0; background:var(--red-soft); color:#8f2c2c; border-radius:var(--radius); font-size:12.5px; text-decoration:none; }
.risk-strip span { flex:1; opacity:.9; }
.risk-strip:hover { border-color:var(--red); }
.dash-group-title { display:flex; align-items:baseline; gap:10px; margin:20px 0 10px; }
.dash-group-title b { font-size:14px; }
.dash-group-title span { font-size:11.5px; color:var(--ink-4); }
.dash-kpis { grid-template-columns:repeat(3,1fr); }
@media (max-width: 760px) { .dash-kpis { grid-template-columns:1fr; } }
