/* ============================================================
   极速达安维 · 运营中台样式表
   设计基调：深色侧栏 + 浅色内容区，电光蓝主色，橙作强调
   ============================================================ */

:root {
  --brand: #2b6bff;
  --brand-dark: #1547d6;
  --brand-soft: #edf3ff;
  --brand-line: #d6e3ff;

  --accent: #ff5c1f;
  --accent-soft: #fff2ec;

  --ink: #07132b;
  --ink-2: #0d2044;

  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --border: #e8edf6;
  --border-strong: #d8e0ee;

  --text: #0d1a30;
  --text-2: #55617a;
  --text-3: #8b95a8;

  --success: #0aa05c;
  --success-soft: #e7f8ef;
  --warning: #c07500;
  --warning-soft: #fff6e6;
  --danger: #e0342b;
  --danger-soft: #feecea;
  --info: #0b8fa8;
  --info-soft: #e4f6f9;
  --purple: #6c46d9;
  --purple-soft: #f2edff;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 18px;
  --shadow-1: 0 1px 2px rgba(9, 24, 51, 0.03), 0 6px 18px rgba(9, 24, 51, 0.04);
  --shadow-2: 0 16px 40px rgba(9, 24, 51, 0.12);
  --shadow-3: 0 28px 70px rgba(9, 24, 51, 0.18);

  --font: "HarmonyOS Sans SC", "PingFang SC", "MiSans", "OPPO Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: "HarmonyOS Sans SC", "PingFang SC", "MiSans", -apple-system, sans-serif;

  --sidebar-w: 232px;
  --topbar-h: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

button {
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #d4dae6;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #b9c2d4;
  background-clip: content-box;
}

/* ------------------------------ 登录页 ------------------------------ */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--surface);
}

.login-panel {
  position: relative;
  padding: 56px 64px;
  background: linear-gradient(150deg, #10306f 0%, #1b64f2 56%, #2b8bf2 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.login-panel::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.login-panel::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  left: -120px;
  top: -80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
  z-index: 1;
}

.login-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 19px;
}

.login-hero {
  z-index: 1;
  max-width: 440px;
}

.login-hero h1 {
  font-size: 30px;
  line-height: 1.35;
  margin: 0 0 16px;
  font-weight: 650;
  letter-spacing: 0.5px;
}

.login-hero p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.9;
}

.login-points {
  display: grid;
  gap: 12px;
}

.login-point {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
}

.login-point i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-style: normal;
  flex-shrink: 0;
  margin-top: 3px;
}

.login-foot {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  z-index: 1;
}

.login-form-side {
  display: grid;
  place-items: center;
  padding: 40px;
}

.login-card {
  width: 100%;
  max-width: 372px;
}

.login-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 650;
}

.login-card .sub {
  margin: 0 0 28px;
  color: var(--text-2);
  font-size: 13px;
}

.demo-accounts {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-2);
}

.demo-accounts strong {
  color: var(--text);
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}

.demo-account-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-family: var(--mono);
  font-size: 11.5px;
}

.demo-account-row span:first-child {
  color: var(--text-2);
}

.demo-account-row button {
  border: none;
  background: none;
  color: var(--brand);
  cursor: pointer;
  font-size: 11.5px;
  padding: 0;
  font-family: var(--font);
}

/* ------------------------------ 框架布局 ------------------------------ */
.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: transform 0.22s ease;
}

.sidebar-brand {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, #2b8bf2 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  overflow: hidden;
}

.brand-text b {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.brand-text span {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px 20px;
}

.nav-group-label {
  font-size: 11px;
  color: var(--text-3);
  padding: 12px 10px 6px;
  letter-spacing: 0.6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13.5px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.nav-icon {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10.5px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  font-weight: 600;
}

.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 11.5px;
  color: var(--text-3);
}

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-2);
}

.page-title {
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.page-title small {
  font-weight: 400;
  color: var(--text-3);
  font-size: 12px;
  margin-left: 8px;
}

.topbar-spacer {
  flex: 1;
}

.tenant-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px 4px 10px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-2);
}

.tenant-switch select {
  border: none;
  background: transparent;
  font-size: 12.5px;
  color: var(--text);
  outline: none;
  cursor: pointer;
  padding: 2px 0;
  max-width: 160px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
  cursor: pointer;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.topbar-user-meta {
  line-height: 1.3;
}

.topbar-user-meta b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.topbar-user-meta span {
  font-size: 11px;
  color: var(--text-3);
}

.content {
  padding: 20px 22px 48px;
  flex: 1;
  animation: fadeIn 0.22s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------ 通用组件 ------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}

.card-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.card-head .hint {
  font-size: 12px;
  color: var(--text-3);
}

.card-head .spacer {
  flex: 1;
}

.card-body {
  padding: 18px;
}

.card-body.flush {
  padding: 0;
}

.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.page-toolbar .spacer {
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}

.btn:hover {
  background: var(--surface-2);
  border-color: #c3ccdd;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-danger {
  color: var(--danger);
  border-color: #f3c9c6;
  background: #fff;
}

.btn-danger:hover {
  background: var(--danger-soft);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--brand);
  padding: 0 8px;
  height: 28px;
  font-size: 12.5px;
}

.btn-ghost:hover {
  background: var(--brand-soft);
}

.btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
  height: 40px;
  font-size: 14px;
}

.btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.field {
  margin-bottom: 16px;
}

.field > label {
  display: block;
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 6px;
  font-weight: 500;
}

.field .req {
  color: var(--danger);
  margin-left: 2px;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 11px;
  height: 36px;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.textarea {
  height: auto;
  padding: 9px 11px;
  line-height: 1.6;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 100, 242, 0.12);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-3);
}

.input-sm,
.select-sm {
  height: 32px;
  font-size: 12.5px;
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 5px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.form-grid .col-span-2 {
  grid-column: span 2;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  padding-left: 30px;
  width: 220px;
}

.search-box::before {
  content: "🔍";
  position: absolute;
  left: 10px;
  font-size: 12px;
  opacity: 0.55;
  pointer-events: none;
}

/* 分段控件 / 状态页签 */
.segmented {
  display: inline-flex;
  background: #eef1f7;
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
}

.segmented button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}

.segmented button.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-1);
}

.segmented .count {
  color: var(--text-3);
  margin-left: 4px;
  font-size: 11px;
}

/* 表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.data th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-2);
  background: var(--surface-2);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
}

table.data td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

table.data tbody tr:hover {
  background: #f8faff;
}

table.data tbody tr:last-child td {
  border-bottom: none;
}

.cell-strong {
  font-weight: 600;
}

.cell-mono {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
}

.cell-sub {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
}

.cell-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* 状态徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.7;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.badge--pending {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge--dispatched {
  background: var(--purple-soft);
  color: var(--purple);
}

.badge--accepted {
  background: var(--info-soft);
  color: var(--info);
}

.badge--on_the_way {
  background: #e8f2ff;
  color: #1667c9;
}

.badge--working {
  background: var(--brand-soft);
  color: var(--brand);
}

.badge--completed {
  background: #fff0e6;
  color: #b45309;
}

.badge--finished {
  background: var(--success-soft);
  color: var(--success);
}

.badge--cancelled {
  background: #f1f2f5;
  color: var(--text-3);
}

.badge--active {
  background: var(--success-soft);
  color: var(--success);
}

.badge--pending-review {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge--disabled {
  background: #f1f2f5;
  color: var(--text-3);
}

.badge--paid {
  background: var(--success-soft);
  color: var(--success);
}

.badge--plain {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.badge--plain::before {
  display: none;
}

.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-2);
  margin: 0 4px 4px 0;
}

/* KPI 卡片 */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}

.kpi-label {
  font-size: 12.5px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.4px;
  margin: 6px 0 2px;
  font-variant-numeric: tabular-nums;
}

.kpi-value small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 3px;
}

.kpi-foot {
  font-size: 11.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.kpi-foot .up {
  color: var(--success);
  font-weight: 600;
}

.kpi-foot .down {
  color: var(--danger);
  font-weight: 600;
}

.kpi-accent {
  position: absolute;
  right: -18px;
  top: -18px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--brand-soft);
  opacity: 0.55;
}

.kpi--warning .kpi-accent {
  background: var(--warning-soft);
}

.kpi--success .kpi-accent {
  background: var(--success-soft);
}

.kpi--danger .kpi-accent {
  background: var(--danger-soft);
}

/* 栅格 */
.grid-2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}

.grid-even {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* 图表 */
.chart-wrap {
  padding: 8px 4px 0;
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-2);
  padding: 4px 4px 0;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 5px;
}

.bar-list {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 74px 1fr 54px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}

.bar-track {
  height: 8px;
  background: #eef1f7;
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--brand) 0%, #4c8bf5 100%);
  transition: width 0.4s ease;
}

.bar-value {
  text-align: right;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* 列表项 */
.list {
  display: grid;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: var(--surface-2);
}

.list-main {
  flex: 1;
  min-width: 0;
}

.list-main b {
  font-size: 13px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-main span {
  font-size: 11.5px;
  color: var(--text-3);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 定高滚动容器：用于长列表，避免页面被撑得过长 */
.table-scroll {
  max-height: 620px;
  overflow: auto;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* 空态与加载 */
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-3);
}

.empty-icon {
  font-size: 30px;
  opacity: 0.5;
  margin-bottom: 8px;
}

.empty p {
  margin: 0;
  font-size: 13px;
}

.skeleton {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  margin-bottom: 10px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-2);
}

.pagination .spacer {
  flex: 1;
}

/* 弹层 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.42);
  z-index: 100;
  display: flex;
  animation: fadeIn 0.16s ease;
}

.modal-wrap {
  margin: auto;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  animation: popIn 0.18s ease;
}

.modal-wrap.wide {
  width: min(760px, calc(100vw - 32px));
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.modal-head .spacer {
  flex: 1;
}

.icon-btn {
  border: none;
  background: transparent;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--text-3);
  font-size: 16px;
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

/* 抽屉 */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.38);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.16s ease;
}

.drawer {
  width: min(620px, 100vw);
  background: var(--surface);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-3);
  animation: slideLeft 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes slideLeft {
  from {
    transform: translateX(24px);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.drawer-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.drawer-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 650;
}

.drawer-head .sub {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 32px;
}

.drawer-foot {
  border-top: 1px solid var(--border);
  padding: 14px 22px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.section-title {
  font-size: 12px;
  font-weight: 650;
  color: var(--text-2);
  letter-spacing: 0.4px;
  margin: 22px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title:first-child {
  margin-top: 0;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  font-size: 13px;
}

.info-grid .label {
  color: var(--text-3);
  font-size: 11.5px;
  margin-bottom: 2px;
}

.info-grid .value {
  color: var(--text);
  word-break: break-all;
}

.info-grid .col-span-2 {
  grid-column: span 2;
}

.amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.amount-large {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.3px;
}

/* 时间轴 */
.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 16px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-strong);
}

.timeline-item.done::before {
  background: var(--brand);
  border-color: var(--brand);
}

.timeline-item.current::before {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.timeline-title {
  font-size: 13px;
  font-weight: 500;
}

.timeline-meta {
  font-size: 11.5px;
  color: var(--text-3);
}

/* Toast */
.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #1f2937;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: var(--shadow-2);
  animation: toastIn 0.2s ease;
  max-width: 340px;
}

.toast.success {
  background: #0f7b47;
}

.toast.error {
  background: #b3261e;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 师傅选择卡 */
.tech-pick {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}

.tech-pick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.tech-pick-item:hover {
  border-color: var(--brand-line);
  background: var(--surface-2);
}

.tech-pick-item.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.tech-pick-item .who {
  flex: 1;
  min-width: 0;
}

.tech-pick-item .who b {
  font-size: 13px;
  display: block;
}

.tech-pick-item .who span {
  font-size: 11.5px;
  color: var(--text-3);
}

.tech-pick-item .score {
  font-size: 11.5px;
  color: var(--text-2);
  text-align: right;
}

.rating {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: -1px;
}

/* 统计小块 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-cell {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
}

.stat-cell .label {
  font-size: 11.5px;
  color: var(--text-3);
}

.stat-cell .value {
  font-size: 18px;
  font-weight: 650;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* 提示条 */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  background: var(--info-soft);
  color: #0a5b68;
  border: 1px solid #cbe9ee;
}

.notice.warn {
  background: var(--warning-soft);
  color: #8a5400;
  border-color: #f6dfb5;
}

/* 站点卡片 */
.tenant-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.tenant-card h4 {
  margin: 0 0 2px;
  font-size: 14.5px;
  font-weight: 650;
}

.tenant-card .region {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 12px;
}

.tenant-metrics {
  display: flex;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.tenant-metrics div span {
  display: block;
  font-size: 11px;
  color: var(--text-3);
}

.tenant-metrics div b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* 响应式 */
@media (max-width: 1180px) {
  .grid-2,
  .grid-even {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-3);
  }
  .sidebar.open {
    transform: none;
  }
  .main {
    margin-left: 0;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-panel {
    display: none;
  }
  .content {
    padding: 16px 14px 40px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .col-span-2 {
    grid-column: span 1;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .topbar-user-meta {
    display: none;
  }
  .page-title small {
    display: none;
  }
}

@media (max-width: 560px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kpi-value {
    font-size: 21px;
  }
  .search-box input {
    width: 150px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .info-grid .col-span-2 {
    grid-column: span 1;
  }
}

/* ============================================================
   视觉升级层 v2
   深色侧栏 + 轻量内容区；图标统一为内联 SVG（1.8px 线性）
   本层只覆盖外观，不改动任何交互逻辑
   ============================================================ */

/* ---------------- 图标基类 ---------------- */
.ico {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

/* ---------------- 侧栏：深色 ---------------- */
.sidebar {
  background: linear-gradient(180deg, #08172e 0%, #0a1e3c 52%, #06122a 100%);
  border-right: none;
  box-shadow: 4px 0 28px rgba(9, 24, 51, 0.1);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px 280px at 8% -6%, rgba(72, 128, 255, 0.3), transparent 66%);
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  height: var(--topbar-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 18px;
  gap: 11px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(140deg, #4a86ff 0%, #2b6bff 46%, #1547d6 100%);
  box-shadow: 0 8px 20px rgba(43, 107, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  font-size: 0;
}

.brand-mark .ico {
  width: 19px;
  height: 19px;
  color: #fff;
  stroke-width: 2.1;
}

.brand-text b {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.4px;
}

.brand-text span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10.5px;
  letter-spacing: 0.4px;
}

.sidebar-nav {
  padding: 10px 12px 22px;
}

.nav-group-label {
  color: rgba(255, 255, 255, 0.3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  padding: 16px 10px 8px;
}

.nav-item {
  position: relative;
  padding: 9px 11px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13.5px;
  gap: 11px;
  margin-bottom: 3px;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.18s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.nav-item.active {
  background: linear-gradient(96deg, rgba(43, 107, 255, 0.95) 0%, rgba(43, 107, 255, 0.52) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(27, 79, 216, 0.35);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: #8fbaff;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0;
  transition: color 0.16s ease;
}

.nav-icon .ico {
  width: 17px;
  height: 17px;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  color: #fff;
}

.nav-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.nav-badge {
  background: linear-gradient(135deg, #ff7a3d, #ff5c1f);
  box-shadow: 0 3px 9px rgba(255, 92, 31, 0.42);
}

.sidebar-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  padding: 14px 16px;
  line-height: 1.7;
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  gap: 16px;
}

.menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  display: none;
  place-items: center;
}

.burger {
  display: block;
  width: 15px;
}

.burger i {
  display: block;
  height: 1.8px;
  border-radius: 2px;
  background: var(--text-2);
  margin: 3px 0;
}

.page-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
}

.page-title small {
  font-size: 12px;
  color: var(--text-3);
  margin-left: 10px;
  font-weight: 400;
  letter-spacing: 0;
}

.tenant-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 9px;
  padding: 5px 10px 5px 11px;
}

.tenant-label {
  font-size: 11.5px;
  color: var(--text-3);
}

.tenant-switch select {
  font-size: 12.5px;
  font-weight: 600;
  padding-right: 12px;
  appearance: none;
  -webkit-appearance: none;
}

.tenant-caret {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 1.6px solid var(--text-3);
  border-bottom: 1.6px solid var(--text-3);
  transform: rotate(45deg);
  pointer-events: none;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 14px;
  border-left: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.15s ease;
}

.topbar-user:hover {
  background: var(--surface-2);
}

.avatar {
  background: linear-gradient(150deg, #e8f0ff, #d5e4ff);
  color: var(--brand-dark);
  font-weight: 700;
}

.topbar-user-meta b {
  font-size: 12.5px;
  font-weight: 600;
}

.user-caret {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, 2px);
  opacity: 0.7;
}

.content {
  padding: 22px 24px 52px;
}

/* ---------------- 卡片 ---------------- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.card-head {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.card-head h3 {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.1px;
}

/* ---------------- KPI ---------------- */
.kpi-grid {
  gap: 16px;
}

.kpi {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(9, 24, 51, 0.09);
}

.kpi-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #6aa0ff, var(--brand));
}

.kpi--warning .kpi-accent {
  background: linear-gradient(180deg, #ffcf7a, var(--warning));
}

.kpi--success .kpi-accent {
  background: linear-gradient(180deg, #6fe3a8, var(--success));
}

.kpi-icon {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}

.kpi-icon .ico {
  width: 17px;
  height: 17px;
}

.kpi-icon--brand {
  background: var(--brand-soft);
  color: var(--brand);
}

.kpi-icon--warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.kpi-icon--success {
  background: var(--success-soft);
  color: var(--success);
}

.kpi-icon--ink {
  background: #eef1f8;
  color: #41506b;
}

.kpi-label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.2px;
}

.kpi-value {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -1px;
  margin-top: 6px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.kpi-value small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 3px;
  letter-spacing: 0;
}

.kpi-foot {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--border);
  font-size: 11.5px;
  color: var(--text-3);
}

.kpi--warning .kpi-value {
  color: #8a5500;
}

.kpi--success .kpi-value {
  color: #07753f;
}

/* ---------------- 按钮 ---------------- */
.btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.15s ease, box-shadow 0.18s ease, transform 0.12s ease, filter 0.15s ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: linear-gradient(135deg, #3a78ff 0%, #2b6bff 52%, #1c56e0 100%);
  border: none;
  color: #fff;
  box-shadow: 0 7px 16px rgba(43, 107, 255, 0.28);
}

.btn-primary:hover {
  filter: brightness(0.96);
  box-shadow: 0 9px 20px rgba(43, 107, 255, 0.34);
}

.btn-ghost {
  background: var(--brand-soft);
  color: var(--brand);
  border: none;
}

.btn-ghost:hover {
  background: #e3ecff;
}

.btn-quiet {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.btn-quiet:hover {
  border-color: var(--brand-line);
  color: var(--brand);
}

.btn-ico {
  width: 13px;
  height: 13px;
  display: inline-block;
  vertical-align: -2px;
}

.btn-sm {
  height: 30px;
  padding: 0 11px;
  font-size: 12px;
  border-radius: 8px;
}

/* ---------------- 表格 ---------------- */
table.data th {
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}

table.data td {
  padding: 13px 14px;
  border-bottom: 1px solid #f1f4fa;
  font-size: 13px;
}

table.data tbody tr {
  transition: background 0.12s ease;
}

table.data tbody tr:hover {
  background: #f8faff;
}

.cell-strong {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.cell-mono {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.2px;
}

/* ---------------- 徽章 ---------------- */
.badge {
  padding: 2px 9px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2px;
  border-radius: 7px;
}

.badge--completed {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge--working {
  color: var(--brand-dark);
}

/* ---------------- 提示条 ---------------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.7;
}

.notice.warn {
  background: #fffdf6;
  border: 1px solid #ffe8c2;
  color: #7a5800;
}

.notice-ico {
  color: var(--warning);
  margin-top: 2px;
}

.notice b {
  color: #6b4d00;
}

/* ---------------- 空态 ---------------- */
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3);
}

.empty-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 0;
  color: #b2c2dc;
  opacity: 1;
}

.empty-icon .ico {
  width: 20px;
  height: 20px;
}

.empty p {
  margin: 0;
  font-size: 12.5px;
}

/* ---------------- 分段筛选 ---------------- */
.segmented {
  background: #eef2f9;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.segmented button {
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.segmented button.active {
  background: #fff;
  color: var(--text);
  font-weight: 650;
  box-shadow: 0 2px 6px rgba(9, 24, 51, 0.1);
}

/* ---------------- 登录页 ---------------- */
.login-panel {
  background: radial-gradient(900px 620px at 92% -12%, rgba(86, 146, 255, 0.45) 0%, rgba(86, 146, 255, 0) 62%),
    linear-gradient(158deg, #06122a 0%, #0b2350 42%, #123a8f 100%);
}

.login-panel::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

.login-panel::before {
  background: radial-gradient(circle, rgba(86, 200, 255, 0.16) 0%, rgba(86, 200, 255, 0) 70%);
}

.login-brand {
  font-size: 16px;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.92);
}

.login-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, #4a86ff 0%, #2b6bff 46%, #1547d6 100%);
  box-shadow: 0 10px 24px rgba(43, 107, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  font-size: 0;
}

.login-logo .ico {
  width: 22px;
  height: 22px;
  color: #fff;
  stroke-width: 2.1;
}

.login-hero h1 {
  font-size: 33px;
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.login-hero p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13.5px;
  line-height: 1.95;
}

.login-point {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.login-point i {
  background: rgba(122, 200, 255, 0.18);
  color: #8fd3ff;
  width: 19px;
  height: 19px;
  font-size: 10px;
  border: 1px solid rgba(143, 211, 255, 0.28);
}

.login-foot {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11.5px;
}

.login-form-side {
  background: var(--bg);
  padding: 40px 32px;
}

.login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 32px 30px;
  box-shadow: 0 24px 64px rgba(9, 24, 51, 0.09);
  max-width: 400px;
}

.login-card h2 {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.3px;
}

.login-card .sub {
  color: var(--text-3);
  font-size: 12.5px;
  margin-bottom: 26px;
}

.input {
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.input:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 107, 255, 0.12);
}

.login-card .btn-block {
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 10px;
}

.demo-accounts {
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
}

/* ---------------- 进度条 / 排行 ---------------- */
.bar-track {
  background: #eef2f9;
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  border-radius: 6px;
  background: linear-gradient(90deg, #6aa0ff, var(--brand));
}

/* ---------------- 滚动条 ---------------- */
::-webkit-scrollbar-thumb {
  background: #d3dbe8;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* ---------------- 表格密度微调（避免日期/站点名折行） ---------------- */
table.data th,
table.data td,
table.data .cell-sub {
  white-space: nowrap;
}

table.data th {
  padding: 11px 12px;
  font-size: 11px;
}

table.data td {
  padding: 12px;
  font-size: 12.5px;
}

table.data .cell-sub {
  font-size: 11px;
  margin-top: 3px;
}

.cell-actions {
  gap: 5px;
}

/* ---------------- 评分星形（SVG） ---------------- */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  letter-spacing: 0;
  color: #d7dfec;
  vertical-align: middle;
}

.rating i {
  display: inline-flex;
  font-style: normal;
}

.rating .star {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
}

.rating i.on {
  color: #f5a524;
}

/* 弹层关闭键内的图标尺寸 */
.icon-btn .ico {
  width: 15px;
  height: 15px;
}

.notice-ico .ico {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}

/* ---------------- 品类列表（网格对齐） ---------------- */
.cate-row {
  display: grid;
  grid-template-columns: 14px 32px minmax(0, 1fr) 28px 56px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.cate-row.is-active {
  background: var(--brand-soft);
}

.cate-ico {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-2);
  font-size: 17px;
  line-height: 1;
}

.cate-ico .ico {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.cate-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cate-mini {
  display: inline-block;
  width: 17px;
  font-size: 13px;
  line-height: 1;
  vertical-align: -1px;
}

/* ---------------- 站点卡片信息密度 ---------------- */
.tenant-card {
  padding: 18px 20px;
}

.tenant-card .info-grid {
  gap: 14px 18px;
  margin-top: 2px;
}

.tenant-card .info-grid .label {
  color: #8494ad;
  font-size: 11px;
  letter-spacing: 0.2px;
  margin-bottom: 5px;
}

.tenant-card .info-grid .value {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.5;
}

.tenant-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 14px;
  margin-top: 14px;
}

.tenant-metrics > div {
  min-width: 0;
}

.tenant-metrics div span {
  font-size: 10.5px;
  color: #8494ad;
  margin-bottom: 3px;
  white-space: nowrap;
}

.tenant-metrics div b {
  display: block;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.tenant-metrics div b i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 1px;
}

/* ---------------- 满意度概览 ---------------- */
.score-hero {
  text-align: center;
  min-width: 118px;
}

.score-num {
  font-size: 42px;
  font-weight: 680;
  letter-spacing: -1.4px;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.score-stars {
  margin: 7px 0 6px;
  display: flex;
  justify-content: center;
}

.score-stars .rating .star {
  width: 15px;
  height: 15px;
}

.score-label {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.2px;
}

.bar-row {
  align-items: center;
}

.bar-track {
  height: 7px;
  border-radius: 999px;
  background: var(--surface-3, #eef1f7);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.bar-fill--good {
  background: linear-gradient(90deg, #ffc46b, #f5a524);
}

.bar-fill--mid {
  background: linear-gradient(90deg, #d3dbe9, #b9c5d8);
}

.bar-fill--bad {
  background: linear-gradient(90deg, #f0908a, #e04f3d);
}

.bar-value {
  font-size: 11.5px;
  color: var(--text-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rate-block {
  text-align: center;
  min-width: 108px;
  border-left: 1px solid var(--border);
  padding-left: 26px;
}

.rate-num {
  font-size: 27px;
  font-weight: 680;
  letter-spacing: -0.6px;
  color: var(--ink);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.rate-num small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 1px;
}

.rate-label {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
  margin-top: 3px;
}

/* ---------------- 下拉框（自定义箭头） ---------------- */
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a889e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.select:disabled {
  cursor: not-allowed;
  color: var(--text-3);
  background-color: var(--surface-2);
}

/* 长文本值（URL / 卡号）避免撑破卡片 */
.info-grid .value {
  overflow-wrap: anywhere;
}

.cell-mono {
  font-variant-numeric: tabular-nums;
}

/* ---------------- 规则说明列表 ---------------- */
.rule-list {
  list-style: none;
  counter-reset: rule;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.rule-list li {
  counter-increment: rule;
  position: relative;
  padding-left: 30px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-2);
}

.rule-list li::before {
  content: counter(rule);
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------------- 搜索框图标（SVG，替换 emoji） ---------------- */
.search-box::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -6.5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818fa8' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.6' cy='10.6' r='6.5'/%3E%3Cpath d='m15.4 15.4 4.2 4.2'/%3E%3C/svg%3E");
  background-size: 13px 13px;
  background-repeat: no-repeat;
  opacity: 0.85;
}

/* ---------------- 筛选栏（两行式布局） ---------------- */
.filter-bar {
  display: grid;
  gap: 12px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-tabs .segmented {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs .segmented::-webkit-scrollbar {
  display: none;
}

.filter-tabs .tab-total {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.filter-fields {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-fields .search-box {
  flex: 1 1 240px;
  max-width: 340px;
}

.filter-fields .search-box input {
  width: 100%;
}

.filter-fields .range-sep {
  font-size: 12px;
  color: var(--text-3);
  flex: none;
}

.filter-fields .date-input {
  width: 148px;
  flex: none;
}

.filter-fields .spacer {
  flex: 1;
}

/* 小尺寸主按钮不做大面积发光，避免表格里出现糊边 */
.btn-sm.btn-primary {
  box-shadow: 0 2px 6px rgba(43, 107, 255, 0.16);
}

.btn-sm.btn-primary:hover {
  box-shadow: 0 5px 12px rgba(43, 107, 255, 0.28);
}

/* 表格内的次要信息间距 */
.cell-sub .rating {
  margin-right: 4px;
}

.cell-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.cell-phone {
  margin-left: 8px;
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 400;
}

/* ---------------- 品牌 Logo ---------------- */
.sidebar-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.26);
  color: inherit;
  font-size: 0;
}

.brand-mark img,
.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.login-brand .login-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 16px rgba(3, 12, 30, 0.28);
  font-size: 0;
}

.login-brand span {
  letter-spacing: 0.6px;
}

/* ============================================================
   内容配置（对外文案）
   ------------------------------------------------------------
   左侧表单 + 右侧手机预览：改一个字就能看到小程序里的样子，
   避免"改了文案但不知道效果"再跑一趟开发者工具。
   ============================================================ */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.content-card {
  overflow: hidden;
}

.content-tabs {
  padding: 0 18px 14px;
  border-bottom: 1px solid var(--border);
}

.content-tabs .segmented {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.content-tabs .segmented::-webkit-scrollbar {
  display: none;
}

.content-tabs .segmented button {
  flex: 1 0 auto;
  padding: 7px 14px;
}

.content-form {
  display: block;
}

.content-pane .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.pane-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  margin-bottom: 16px;
  border-radius: 9px;
  background: var(--brand-soft, #edf3ff);
  border: 1px solid var(--brand-line, #d6e3ff);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--brand-deep, #1547d6);
}

.pane-ico {
  display: inline-flex;
  flex-shrink: 0;
  color: currentColor;
  margin-top: 1px;
}

.pane-ico .ico {
  width: 15px;
  height: 15px;
}

.pane-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

.pane-divider span {
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}

.pane-divider i {
  font-style: normal;
  font-size: 12px;
  color: var(--text-3);
}

.content-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-2, #f8fafd);
}

.content-actions .spacer {
  flex: 1;
}

/* ---------------- 右侧预览 ---------------- */
.content-preview {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
}

.preview-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.preview-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}

.preview-head .hint {
  font-size: 11.5px;
  color: var(--text-3);
}

.phone-frame {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(13, 26, 48, 0.06));
  overflow: hidden;
}

.phone-hero {
  padding: 14px 14px 22px;
  background: linear-gradient(168deg, #08182f 0%, #102a5c 38%, #1a48c8 78%, #2b6bff 100%);
  color: #fff;
}

.ph-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.ph-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  padding: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ph-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ph-brand b {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.ph-brand i {
  font-style: normal;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.78);
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}

.ph-line {
  font-size: 13px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
  word-break: break-word;
}

.ph-line--strong {
  font-size: 17px;
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.2px;
  margin-top: 1px;
}

.ph-sub {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.ph-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -16px 12px 0;
  position: relative;
  background: #fff;
  border-radius: 11px;
  padding: 7px 8px 7px 12px;
  box-shadow: 0 8px 20px rgba(8, 24, 47, 0.16);
}

.ph-search span {
  flex: 1;
  font-size: 10px;
  color: var(--text-4, #b8c2d4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-search em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3a78ff, #2b6bff 55%, #1547d6);
  white-space: nowrap;
}

.ph-notice {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 12px 12px 0;
  padding: 6px 8px;
  border-radius: 7px;
  background: #fffdf8;
  border: 1px solid #ffeccd;
  font-size: 9.5px;
  line-height: 1.55;
  color: #8a6a30;
}

.ph-notice b {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 600;
  color: #c07500;
  background: #fff6e6;
  border-radius: 3px;
  padding: 1px 4px;
}

.ph-notice--empty {
  background: var(--surface-2, #f8fafd);
  border-color: var(--border);
  color: var(--text-4, #b8c2d4);
  justify-content: center;
}

.ph-sec {
  padding: 14px 14px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.ph-list {
  list-style: none;
  margin: 6px 14px 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ph-list li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 10px;
  line-height: 1.55;
  color: var(--text-2, #55617a);
}

.ph-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: #e7f8ef;
  color: #0aa05c;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}

.ph-dot::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 2.5px;
  width: 4px;
  height: 2px;
  border-left: 1.2px solid currentColor;
  border-bottom: 1.2px solid currentColor;
  transform: rotate(-45deg);
}

.ph-foot {
  margin: 14px 14px 16px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  text-align: center;
  font-size: 9px;
  color: var(--text-4, #b8c2d4);
  letter-spacing: 0.3px;
}

.preview-extra {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface, #fff);
  padding: 12px 14px 14px;
}

.pe-title {
  font-size: 12px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 8px;
}

.pe-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 5px;
}

.pe-list li {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--text-2, #55617a);
}

.pe-tip {
  margin: 0 0 8px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--brand-deep, #1547d6);
  background: var(--brand-soft, #edf3ff);
  border-radius: 7px;
  padding: 7px 9px;
}

.pe-empty {
  font-size: 10.5px;
  color: var(--text-4, #b8c2d4);
}

@media (max-width: 1180px) {
  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-preview {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: start;
  }

  .preview-head {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .content-pane .form-grid {
    grid-template-columns: 1fr;
  }
}

/* 激活指示条：.nav-item 未定位导致指示条跑到侧栏最左并被裁掉 */
.nav-item {
  position: relative;
}

.nav-item.active::before {
  left: -6px;
}

/* ---------------- 内容配置：列表条目编辑器 ---------------- */
.rec-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px 14px;
  margin-bottom: 12px;
  background: var(--surface, #fff);
}

.rec-card:last-of-type {
  margin-bottom: 14px;
}

.rec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--border);
}

.rec-head .spacer {
  flex: 1;
}

.rec-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--brand-soft, #edf3ff);
  color: var(--brand-deep, #1547d6);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.rec-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rec-card .form-grid {
  gap: 12px 16px;
}

.rec-add {
  width: 100%;
  height: 38px;
  border-style: dashed;
  color: var(--brand-deep, #1547d6);
  font-size: 12.5px;
}

.rec-add:hover {
  background: var(--brand-soft, #edf3ff);
}

.rec-empty {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-3, #8b95a7);
  margin-bottom: 12px;
}

/* 预览区补充元素 */
.pe-label {
  font-size: 10px;
  font-weight: 650;
  color: var(--text-3, #8b95a7);
  margin: 6px 0 4px;
  letter-spacing: 0.4px;
}

.pe-list--muted li {
  color: var(--text-3, #8b95a7);
}

.pe-list--faq {
  list-style: none;
  padding-left: 0;
}

.pe-list--faq li {
  display: flex;
  gap: 6px;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}

.pe-list--faq li:last-child {
  border-bottom: none;
}

.pe-list--faq b {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--brand-soft, #edf3ff);
  color: var(--brand-deep, #1547d6);
  font-size: 9px;
  line-height: 14px;
  text-align: center;
  font-weight: 700;
}

.pe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.pe-chip {
  font-size: 9.5px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-3, #8b95a7);
  background: var(--surface-2, #f8fafd);
}

.pe-chip--on {
  border-color: var(--brand-line, #d6e3ff);
  background: var(--brand-soft, #edf3ff);
  color: var(--brand-deep, #1547d6);
}

/* ---------------- 服务与定价：品类可视化编辑 ---------------- */
.head-sub {
  font-size: 11.5px;
  color: var(--text-3);
  margin-left: 8px;
  white-space: nowrap;
}

.cate-list .cate-row {
  padding: 10px 16px;
}

.cate-row.is-active {
  background: var(--brand-soft);
}

.cate-row.is-dragging {
  opacity: 0.45;
}

.cate-row.drop-before::after,
.cate-row.drop-after::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.cate-row.drop-before::after {
  top: -1px;
}

.cate-row.drop-after::after {
  bottom: -1px;
}

.cate-drag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 26px;
  color: var(--text-4, #b6c0d0);
  cursor: grab;
}

.cate-drag .ico {
  width: 13px;
  height: 13px;
}

.cate-drag:active {
  cursor: grabbing;
}

.cate-drag.is-static {
  cursor: default;
}

.cate-gap {
  display: block;
  width: 28px;
}

.cate-ico {
  overflow: hidden;
  border: 1px solid transparent;
}

.cate-ico--all {
  background: var(--brand-soft);
  color: var(--brand);
}

.cate-ico--all .ico {
  width: 16px;
  height: 16px;
}

.cate-ico--inline {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 11px;
  vertical-align: -4px;
  margin-right: 5px;
  background: var(--brand-soft);
}

.cate-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cate-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--surface-2);
  font-size: 12px;
  line-height: 1;
  overflow: hidden;
  vertical-align: -4px;
  margin-right: 5px;
}

.list-main .cate-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(43, 107, 255, 0.1);
  color: var(--brand);
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  vertical-align: 1px;
}

.list-main .cate-flag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 10px;
  line-height: 15px;
  font-weight: 500;
  vertical-align: 1px;
}

.cate-edit {
  width: 26px;
  height: 26px;
}

.cate-edit .ico {
  width: 14px;
  height: 14px;
}

.cate-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--text-3);
  min-height: 38px;
}

.cate-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 4px 2px 6px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
}

.cate-filter-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border: none;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 4px;
}

.cate-filter-x:hover {
  background: var(--surface-2);
  color: var(--text);
}

.cate-filter-x .ico {
  width: 10px;
  height: 10px;
}

.icon-btn--danger:hover {
  background: rgba(235, 87, 87, 0.1);
  color: #d64545;
}

.icon-btn--danger .ico {
  width: 14px;
  height: 14px;
}

/* 品类编辑器 */
.cate-editor {
  display: block;
}

.ed-sec {
  padding: 2px 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

.ed-sec:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.ed-sec-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ed-sec-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.ed-sec-head span {
  font-size: 11.5px;
  color: var(--text-3);
}

.ed-sec--danger .ed-sec-head h4 {
  color: #c53b3b;
}

.icon-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(155deg, #f5f9ff 0%, #e8f0ff 100%);
  border: 1px solid rgba(43, 107, 255, 0.1);
  font-size: 20px;
  overflow: hidden;
}

.icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-picker .input {
  flex: 1;
  min-width: 0;
}

.emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 7px;
}

.emoji-btn {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.emoji-btn:hover {
  background: var(--brand-soft);
}

.emoji-btn.is-on {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.color-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.color-dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.color-dot--default {
  background: linear-gradient(155deg, #f5f9ff 0%, #e8f0ff 100%);
}

.color-dot.is-on {
  border-color: var(--text);
  box-shadow: inset 0 0 0 2px #fff;
}

.color-input {
  width: 96px;
  height: 30px;
  font-size: 11.5px;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "MiSans", -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
}

.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  height: 32px;
  position: relative;
}

.switch .switch-input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  pointer-events: none;
}

.switch-track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d3dbe8;
  transition: background 0.16s ease;
  flex-shrink: 0;
}

.switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.24);
  transition: transform 0.16s ease;
}

.switch input:checked + .switch-track {
  background: var(--brand);
}

.switch input:checked + .switch-track::after {
  transform: translateX(16px);
}

.switch-text {
  font-size: 12px;
  color: var(--text-2);
}

/* 模板区块 */
.tpl-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tpl-bar .select {
  width: 260px;
  max-width: 60%;
}

.tpl-target {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.tpl-label {
  font-size: 11.5px;
  color: var(--text-3);
  padding-top: 4px;
  flex-shrink: 0;
}

.chk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.chk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}

.chk input[type='checkbox'] {
  width: 14px;
  height: 14px;
  accent-color: var(--brand);
  margin: 0;
  cursor: pointer;
}

.tpl-preview:empty {
  display: none;
}

.tpl-empty {
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 9px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-3);
  text-align: center;
  background: var(--surface-2);
}

.tpl-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 7px;
  background: var(--surface);
}

.tpl-item.is-off {
  opacity: 0.48;
}

.tpl-item .tpl-name {
  flex: 1;
  min-width: 90px;
  height: 30px;
  font-size: 12.5px;
}

.tpl-item .tpl-num {
  width: 56px;
  height: 30px;
  padding: 0 6px;
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tpl-unit {
  font-size: 10.5px;
  color: var(--text-3);
  flex-shrink: 0;
}

.tpl-current {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--text-3);
}

/* 模板库 */
.tpl-lib {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tpl-lib-card {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
  background: var(--surface);
}

.tpl-lib-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.tpl-lib-head b {
  font-size: 13px;
  flex: 1;
  min-width: 0;
}

.tpl-lib-tag {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
}

.tpl-lib-del {
  height: 24px;
  padding: 0 8px;
  font-size: 11px;
  color: var(--text-3);
}

.tpl-lib-del.is-armed {
  color: #d64545;
  border-color: rgba(214, 69, 69, 0.4);
  background: rgba(235, 87, 87, 0.08);
}

.tpl-lib-desc {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 8px;
}

.tpl-lib-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tpl-lib-item {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 10.5px;
  white-space: nowrap;
}

.tpl-lib-item--empty {
  color: var(--text-3);
}

@media (max-width: 1180px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
}

/* 品类编辑页签 */
.ed-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--surface-2);
  border-radius: 10px;
  margin-bottom: 16px;
}

.ed-tab {
  flex: 1;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.ed-tab:hover {
  color: var(--text);
}

.ed-tab.is-on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.ed-tab--danger.is-on {
  color: #c53b3b;
}

.ed-pane {
  display: none;
}

.ed-pane.is-on {
  display: block;
}

/* 表单内的开关：覆盖 .field label 的块级默认样式 */
.field .switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.ed-sec--danger .ed-sec-head {
  display: block;
  margin-bottom: 14px;
}

.ed-sec--danger .ed-sec-head span {
  display: block;
  margin-top: 4px;
}

.btn-danger-solid {
  background: #d64545;
  border-color: #d64545;
  color: #fff;
}

.btn-danger-solid:hover {
  background: #c53b3b;
  border-color: #c53b3b;
  color: #fff;
}

/* 订单筛选：区域 / 师傅下拉 */
.filter-fields .select-sm {
  width: 150px;
  flex: none;
}
.filter-fields .select-sm#filter-tech {
  width: 150px;
}

/* 服务区域选择器 */
.region-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.region-cascades {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.region-cascades .select {
  flex: 1 1 130px;
  min-width: 110px;
}
.region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-soft, #eef3ff);
  color: var(--brand, #2b6bff);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12.5px;
}
.region-chip-x {
  font-style: normal;
  cursor: pointer;
  opacity: 0.6;
  font-weight: 700;
  padding: 0 2px;
}
.region-chip-x:hover {
  opacity: 1;
}

/* 街道多选面板 */
.region-street-panel {
  border: 1px solid var(--border, #e6e8eb);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface-2, #fafbfc);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.region-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.region-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #1a1f26);
}
.region-panel-actions {
  display: flex;
  gap: 6px;
}
.region-street-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 2px;
}
.region-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-2, #3c434d);
  cursor: pointer;
  user-select: none;
}
.region-check input {
  accent-color: var(--brand, #2b6bff);
  cursor: pointer;
}
.region-panel-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
  border-top: 1px dashed var(--border, #e6e8eb);
}
.region-count {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--brand, #2b6bff);
  font-weight: 600;
  white-space: nowrap;
}

/* 已选区域列表（服务区域多区域管理） */
.region-selected {
  border: 1px solid var(--border, #e6e8eb);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-2, #fafbfc);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.region-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-soft, #eef3ff);
  color: var(--brand, #2b6bff);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12.5px;
  line-height: 1.4;
}
.region-chip-x {
  font-style: normal;
  cursor: pointer;
  opacity: 0.6;
  font-weight: 700;
  padding: 0 2px;
}
.region-chip-x:hover {
  opacity: 1;
}

/* 小号按钮 */
.btn-xs {
  padding: 2px 8px;
  font-size: 11.5px;
  border-radius: 6px;
  line-height: 1.5;
}

/* 区县多选器（自动派单自定义区域：省→市→区县三级，区县级勾选） */
.area-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.area-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.area-province {
  border: 1px solid var(--border, #e6e8eb);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-2, #fafbfc);
}
.area-province + .area-province {
  margin-top: 8px;
}
.area-province-head {
  margin-bottom: 8px;
}
.area-province-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text, #1a1f26);
}
.area-city {
  padding: 6px 0 6px 8px;
  border-left: 2px solid var(--border-strong, #dfe3e8);
  margin-left: 4px;
  padding-left: 12px;
}
.area-city + .area-city {
  margin-top: 4px;
}
.area-city-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.area-city-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2, #3c434d);
}


/* 街道多选器（自动派单自定义区域：直接勾选服务区域街道，按区县分组） */
.street-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.street-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.street-group {
  border: 1px solid var(--border, #e6e8eb);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-2, #fafbfc);
}
.street-group-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2, #3c434d);
  margin-bottom: 6px;
  padding-left: 2px;
}
.street-group + .street-group {
  margin-top: 8px;
}

/* 自动派单区域分级管理 */
.auto-assign-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aa-mode {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.aa-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2, #3c434d);
  cursor: pointer;
  user-select: none;
}
.aa-option input {
  accent-color: var(--brand, #2b6bff);
  cursor: pointer;
}
.aa-picker {
  border: 1px dashed var(--border, #e6e8eb);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface-2, #fafbfc);
}

/* ---------------- 角色经营分析 / 用户与服务商管理 ---------------- */
.kpi--brand .kpi-accent {
  background: linear-gradient(180deg, #6aa0ff, var(--brand));
}
.role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.role-card {
  position: relative;
  border: 1px solid var(--border, #e6e8eb);
  border-radius: var(--radius, 14px);
  padding: 18px;
  background: var(--surface, #fff);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.role-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--brand);
}
.role-card--success::before { background: var(--success); }
.role-card--warning::before { background: var(--warning); }
.role-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 14px 32px rgba(9, 24, 51, 0.1);
}
.role-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.role-card-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.role-card--success .role-card-icon { background: var(--success-soft); color: var(--success); }
.role-card--warning .role-card-icon { background: var(--warning-soft); color: var(--warning); }
.role-card-icon .ico { width: 18px; height: 18px; }
.role-card-name {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}
.role-card-value {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1px;
  margin: 14px 0 10px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.role-card-value small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 4px;
  letter-spacing: 0;
}
.role-card-rows {
  display: grid;
  gap: 7px;
  padding: 12px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.role-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.role-card-row span { color: var(--text-3); }
.role-card-row b { color: var(--text-2); font-weight: 600; }
.role-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--brand);
}
.role-card-foot .ico { width: 14px; height: 14px; }
.detail-kv { color: var(--text-2); }
@media (max-width: 900px) {
  .role-cards { grid-template-columns: 1fr; }
}

/* ---------------- 统计时间区间选择器 ---------------- */
.range-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.range-label {
  font-size: 12.5px;
  color: var(--text-3);
  white-space: nowrap;
}
.range-presets button {
  min-width: 52px;
}
.range-custom {
  display: flex;
  align-items: center;
  gap: 8px;
}
.range-custom .input[type="date"] {
  width: 150px;
}
.range-sep {
  color: var(--text-3);
  font-size: 12px;
}
@media (max-width: 720px) {
  .range-picker { gap: 8px; }
  .range-custom .input[type="date"] { width: 130px; }
}

/* ---------------- 权限管控中心 / 管理员授权 ---------------- */
.notice-ico { display: inline-flex; flex: 0 0 auto; }
.notice-ico .ico, .notice > .ico { width: 16px; height: 16px; }
.cell-main { color: var(--text); font-weight: 600; font-size: 13px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px; }
button.badge { font-family: inherit; }
.form-block { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border, #e6e8eb); }
.form-block-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 220px; overflow-y: auto; }
.check-line { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border, #e6e8eb); border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text-2, #555); }
.check-line:hover { border-color: var(--brand); background: var(--brand-soft, #f0f5ff); }
.check-line input { accent-color: var(--brand); }
@media (max-width: 720px) { .check-grid { grid-template-columns: 1fr; } }

/* ---------------- 登录页加盟申请入口 ---------------- */
.apply-tenant-entry {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border, #e6e8eb);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-3);
}
.apply-tenant-entry button {
  border: none;
  background: var(--brand-soft, #f0f5ff);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.apply-tenant-entry button:hover { background: var(--brand); color: #fff; }

/* ---------------- 加盟申请提醒（铃铛 + 角标 + 通知面板） ---------------- */
.nav-badge--brand { background: var(--brand); color: #fff; }

.notice-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.notice-bell:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.notice-bell .ico { width: 19px; height: 19px; }
.notice-bell__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}

.notice-list { display: grid; gap: 10px; }
.notice-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--surface-2);
}
.notice-row__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.notice-row__head b { font-size: 13.5px; }
.notice-row__meta { font-size: 12px; color: var(--text-3); line-height: 1.7; }
.notice-row__act { margin-top: 8px; display: flex; justify-content: flex-end; }

/* ---------------- 站点卡片：服务区域 / 自动派单配置摘要 ---------------- */
.tenant-config {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  gap: 7px;
}
.tenant-config__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.6;
}
.tenant-config__label {
  flex: 0 0 60px;
  color: var(--text-3);
}
.tenant-config__val {
  flex: 1;
  color: var(--text-2);
  word-break: break-all;
}

/* ---------------- 双层区域派单开关（平台管站点 / 站点管师傅） ---------------- */
.gate-field {
  padding: 12px 14px;
  border: 1px solid var(--brand-line, var(--border));
  border-radius: var(--radius-sm);
  background: var(--brand-soft, var(--surface-2));
}
.gate-field > label:first-child { display: flex; align-items: center; gap: 8px; }
.gate-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  padding: 1px 7px;
  border-radius: 20px;
  color: var(--brand, var(--text-2));
  background: var(--surface);
  border: 1px solid var(--brand-line, var(--border));
}
.gate-switch-text { font-weight: 600; }
.notice-inline {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft, var(--surface-2));
  border: 1px solid var(--danger, var(--border));
  color: var(--danger, var(--text-2));
  font-size: 12.5px;
  line-height: 1.6;
}
