/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-soft);
  font-size: 12.5px; font-weight: 600;
  transition: all .18s var(--ease);
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(8,35,26,.03);
}
.btn .icon { font-size: 15px; }
.btn:hover { border-color: var(--line-strong); color: var(--text); background: #FBFDFA; transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #1FBE9A 0%, #0D8569 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(14, 133, 104, .8), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: linear-gradient(135deg, #26CBAB 0%, #0E8F70 100%); color: #fff; }
.btn-accent {
  background: linear-gradient(135deg, var(--lime-400), #A9D846);
  color: var(--ink-900);
  border-color: transparent;
  box-shadow: 0 10px 22px -14px rgba(184, 228, 79, .9), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-accent:hover { color: var(--ink-900); background: linear-gradient(135deg, var(--lime-300), #B9E25B); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.btn-ghost:hover { background: rgba(16, 34, 28, .05); border-color: transparent; color: var(--text); }
.btn-danger { color: var(--rose); border-color: #F1D2D2; background: #FFF9F9; }
.btn-danger:hover { background: var(--rose-soft); border-color: #E8BDBD; color: var(--rose); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 11.5px; border-radius: 8px; }
.btn-sm .icon { font-size: 13px; }
.btn-lg { height: 44px; padding: 0 20px; border-radius: 12px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

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

/* ============ 卡片 ============ */
.card {
  position: relative;
  background: linear-gradient(160deg, #FFFFFF 0%, #FCFEFB 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 0;
}
.card-title { font-size: 13.5px; font-weight: 700; }
.card-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.card-body { padding: 16px 18px 18px; }
.card-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.card-flush { padding: 0; overflow: hidden; }

.card-glass {
  background:
    linear-gradient(160deg, rgba(255,255,255,.95), rgba(247, 251, 246, .88));
  backdrop-filter: blur(10px);
}
.card-dark {
  background:
    radial-gradient(480px 200px at 100% 0%, rgba(200, 242, 107, .14), transparent 60%),
    linear-gradient(160deg, var(--ink-800), var(--ink-950));
  border-color: rgba(200, 242, 107, .12);
  color: #E8FFF6;
}
.card-dark .card-sub, .card-dark .text-muted { color: rgba(190, 218, 206, .68); }
.card-dark .card-title { color: #F3FFF9; }

/* KPI */
.kpi {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #FFFFFF, #F8FBF7);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-height: 122px;
  transition: transform .22s var(--ease), box-shadow .22s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi::before {
  content: '';
  position: absolute; right: -34px; top: -46px; width: 132px; height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 201, 165, .16), transparent 68%);
}
.kpi::after {
  content: '';
  position: absolute; left: 18px; right: 18px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,242,107,.7), transparent);
  opacity: .5;
}
.kpi-head { display: flex; align-items: center; gap: 8px; }
.kpi-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--jade-100); color: var(--jade-600);
  font-size: 15px;
}
.kpi-icon.amber { background: var(--amber-soft); color: var(--amber); }
.kpi-icon.rose { background: var(--rose-soft); color: var(--rose); }
.kpi-icon.violet { background: var(--violet-soft); color: var(--violet); }
.kpi-icon.blue { background: var(--blue-soft); color: var(--blue); }
.kpi-label { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.kpi-value {
  margin-top: 9px;
  font-family: 'Barlow Condensed', 'Manrope', sans-serif;
  font-size: 36px; font-weight: 600; line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink-900);
  display: flex; align-items: baseline; gap: 5px;
}
.kpi-value .unit { font-family: 'Manrope'; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kpi-foot { margin-top: 9px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.kpi-trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 11px; }
.kpi-trend.up { color: var(--jade-600); }
.kpi-trend.down { color: var(--rose); }
.kpi-spark { position: absolute; right: 14px; bottom: 12px; width: 86px; height: 30px; opacity: .8; }

/* ============ 标签 / 状态 ============ */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px;
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: var(--mist); color: var(--text-soft);
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.pill.no-dot::before { display: none; }
.pill.green { background: #E8F8F2; color: #0C7A5F; }
.pill.amber { background: var(--amber-soft); color: #A46B16; }
.pill.red { background: var(--rose-soft); color: var(--rose); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.violet { background: var(--violet-soft); color: var(--violet); }
.pill.cyan { background: var(--cyan-soft); color: var(--cyan); }
.pill.gray { background: #F0F3EF; color: var(--muted); }
.pill.dark { background: var(--ink-800); color: var(--lime-300); }
.pill.lime { background: rgba(200, 242, 107, .2); color: #56771A; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11px; color: var(--muted);
  background: #F3F6F2; border: 1px solid var(--line);
}
.tag .icon { font-size: 12px; }

.dot-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-soft); }
.dot-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--jade-400); box-shadow: 0 0 0 3px rgba(42,201,165,.12); }

/* ============ 工具栏 / 筛选 ============ */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 15px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  margin-bottom: 14px;
}
.toolbar-search {
  position: relative; width: 260px; max-width: 100%;
}
.toolbar-search .icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: var(--muted-light); pointer-events: none;
}
.toolbar-search .geo-input { padding-left: 36px; height: 36px; background: #F7FAF6; }
.toolbar-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar-filters .geo-select { height: 36px; width: auto; min-width: 112px; background-color: #F7FAF6; font-size: 12px; }
.toolbar-filters .geo-input { height: 36px; width: auto; background-color: #F7FAF6; font-size: 12px; }
.toolbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: 11px; color: var(--muted); }

.view-toggle {
  display: inline-flex; padding: 3px; border-radius: 9px; background: #F1F5F0; border: 1px solid var(--line);
}
.view-toggle button {
  height: 28px; padding: 0 9px; border-radius: 7px; color: var(--muted); font-size: 11.5px;
  display: inline-flex; align-items: center; gap: 4px;
}
.view-toggle button .icon { font-size: 13px; }
.view-toggle button.active { background: #fff; color: var(--jade-600); box-shadow: 0 1px 3px rgba(8,35,26,.08); font-weight: 600; }

/* ============ 数据表 ============ */
.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: auto;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.geo-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; }
.geo-table thead th {
  position: sticky; top: 0; z-index: 2;
  padding: 11px 14px;
  text-align: left;
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
  background: #F7FAF5;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.geo-table thead th.sortable { cursor: pointer; user-select: none; }
.geo-table thead th.sortable:hover { color: var(--jade-600); }
.geo-table thead th .sort-ind { font-size: 10px; margin-left: 3px; opacity: .5; }
.geo-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid #EDF2EC;
  font-size: 12.5px;
  vertical-align: middle;
  color: var(--text-soft);
}
.geo-table tbody tr:last-child td { border-bottom: 0; }
.geo-table tbody tr { transition: background .15s; }
.geo-table tbody tr:hover { background: #F9FCF7; }
.geo-table tbody tr:hover .row-actions { opacity: 1; }
.geo-table .cell-main { color: var(--text); font-weight: 600; }
.geo-table .cell-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.geo-table .cell-num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.geo-table .col-actions { text-align: right; white-space: nowrap; }
.row-actions { display: inline-flex; align-items: center; gap: 2px; opacity: .55; transition: opacity .15s; }
.row-actions .icon-btn { width: 28px; height: 28px; border-radius: 7px; }
.row-actions .icon-btn .icon { font-size: 14px; }
.row-actions .icon-btn:hover { background: var(--jade-100); color: var(--jade-700); border-color: transparent; }

.link-name {
  color: var(--text); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px dashed transparent;
  transition: color .15s, border-color .15s;
}
.link-name:hover { color: var(--jade-600); border-bottom-color: rgba(14,133,104,.35); }
.link-name .icon { font-size: 12px; opacity: 0; transition: opacity .15s, transform .15s; transform: translateX(-3px); }
.link-name:hover .icon { opacity: .7; transform: none; }

.table-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #FBFDFA;
  font-size: 11.5px; color: var(--muted);
}
.table-foot .pager { margin-left: auto; }

.pager { display: flex; align-items: center; gap: 4px; }
.pager button {
  min-width: 30px; height: 30px; padding: 0 8px;
  border-radius: 8px; border: 1px solid var(--line); background: #fff;
  color: var(--text-soft); font-size: 11.5px; font-weight: 600;
  transition: all .15s;
}
.pager button:hover { border-color: var(--jade-300); color: var(--jade-600); }
.pager button.active { background: var(--ink-800); border-color: var(--ink-800); color: var(--lime-300); }
.pager button[disabled] { opacity: .35; pointer-events: none; }
.pager .ellipsis { padding: 0 3px; color: var(--muted-light); }

/* ============ 卡片实体 ============ */
.entity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1400px) { .entity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .entity-grid { grid-template-columns: 1fr; } }

.entity-card {
  position: relative;
  padding: 17px 17px 15px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(158deg, #fff, #F9FCF7);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.entity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #C8DBCC; }
.entity-card::after {
  content: '';
  position: absolute; top: 0; right: 0; width: 100px; height: 100px;
  background: radial-gradient(circle at 100% 0%, rgba(200, 242, 107, .22), transparent 65%);
  pointer-events: none;
}
.entity-top { display: flex; align-items: flex-start; gap: 11px; }
.entity-avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--ink-800), var(--jade-700));
  color: var(--lime-300); font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.entity-avatar.light { background: var(--jade-100); color: var(--jade-700); box-shadow: none; }
.entity-title { font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.entity-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.entity-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 11px; }
.entity-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin-top: 14px; background: var(--line); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
}
.entity-metric { background: #FBFDFA; padding: 9px 8px; text-align: center; }
.entity-metric .v { font-family: 'Barlow Condensed'; font-size: 20px; font-weight: 600; color: var(--text); line-height: 1.1; }
.entity-metric .l { font-size: 10px; color: var(--muted); margin-top: 2px; }
.entity-foot {
  margin-top: 13px; padding-top: 11px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted);
}
.entity-foot .right { margin-left: auto; display: flex; gap: 4px; }

/* ============ 弹窗 ============ */
.modal-layer { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-layer.layer-2 { z-index: 120; }
.modal-layer.layer-3 { z-index: 140; }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(6, 20, 15, .44);
  backdrop-filter: blur(14px) saturate(130%);
  animation: maskIn .25s var(--ease);
}
.modal {
  position: relative;
  width: min(720px, 96vw);
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,.7);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: modalIn .32s var(--ease);
}
.modal::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--jade-400), var(--lime-400), var(--jade-400));
  opacity: .85;
}
.modal-accent {
  position: absolute; right: -50px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,201,165,.12), transparent 68%);
  pointer-events: none;
}
.modal-head {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid #EEF3ED;
}
.modal-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(145deg, var(--ink-800), var(--jade-700));
  color: var(--lime-300); display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  font-size: 18px;
}
.modal-icon.light { background: var(--jade-100); color: var(--jade-700); box-shadow: none; }
.modal-titles { min-width: 0; flex: 1; }
.modal-title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.modal-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.modal-close {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  color: var(--muted); transition: all .15s;
}
.modal-close:hover { background: #F1F5F0; color: var(--text); }
.modal-body { padding: 18px 22px; overflow: auto; flex: 1; min-height: 0; }
.modal-body.flush { padding: 0; }
.modal-foot {
  padding: 14px 22px;
  border-top: 1px solid #EEF3ED;
  display: flex; align-items: center; gap: 9px;
  background: #FBFDFA;
}
.modal-foot .spacer { flex: 1; }
.modal-note { font-size: 11px; color: var(--muted); margin-right: auto; }
.modal-confirm { width: min(420px, 94vw); }
.modal-confirm .modal-body { padding: 20px 22px 10px; font-size: 13px; color: var(--text-soft); line-height: 1.7; }
.modal-confirm .modal-foot { border-top: 0; padding-top: 12px; }

@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes layerOut { to { opacity: 0; transform: scale(.985); } }

/* 表单栅格 */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-section-title {
  grid-column: span 2;
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px; padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--jade-600);
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
}

/* ============ 详情 / TAB ============ */
.tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 22px; background: #FCFEFB; }
.tab {
  position: relative; padding: 12px 13px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: color .18s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--jade-700); }
.tab.active::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--jade-400), var(--lime-400));
  border-radius: 3px;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .25s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.detail-hero {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px;
  border-radius: 14px;
  background:
    radial-gradient(380px 160px at 100% 0, rgba(200,242,107,.16), transparent 65%),
    linear-gradient(150deg, var(--ink-800), var(--ink-950));
  color: #E8FFF6;
  margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.detail-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
.detail-hero .h-icon {
  width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto;
  background: rgba(200, 242, 107, .14); border: 1px solid rgba(200,242,107,.2);
  color: var(--lime-300); display: grid; place-items: center; font-size: 20px;
}
.detail-hero .h-title { font-size: 17px; font-weight: 700; color: #F5FFFA; line-height: 1.35; }
.detail-hero .h-sub { font-size: 11.5px; color: rgba(194, 220, 209, .75); margin-top: 3px; }
.detail-hero .h-meta { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.detail-hero .h-metric .v { font-family: 'Barlow Condensed'; font-size: 22px; color: var(--lime-300); line-height: 1; }
.detail-hero .h-metric .l { font-size: 10px; color: rgba(194, 220, 209, .65); margin-top: 3px; }

.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.detail-item { background: #fff; padding: 11px 13px; }
.detail-item .l { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.detail-item .v { font-size: 12.5px; font-weight: 600; margin-top: 3px; color: var(--text); word-break: break-all; }
.detail-item.span-2 { grid-column: span 2; }
.detail-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .detail-grid, .detail-grid.three { grid-template-columns: 1fr; } .detail-item.span-2 { grid-column: span 1; } }

.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th { font-size: 10.5px; color: var(--muted); text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mini-table td { font-size: 12px; padding: 8px; border-bottom: 1px solid #F1F5F0; }
.mini-table tr:last-child td { border-bottom: 0; }

/* ============ 时间线 ============ */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 5px; bottom: 5px; width: 1px; background: linear-gradient(180deg, var(--jade-400), var(--line)); }
.timeline-item { position: relative; padding: 0 0 16px 10px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -19px; top: 4px; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-strong);
}
.timeline-item.done::before { border-color: var(--jade-500); background: var(--jade-500); box-shadow: 0 0 0 3px rgba(42,201,165,.13); }
.timeline-item.current::before { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 3px rgba(217,150,47,.15); }
.timeline-item.reject::before { border-color: var(--rose); background: var(--rose); }
.timeline-title { font-size: 12.5px; font-weight: 600; }
.timeline-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.timeline-body { margin-top: 5px; font-size: 12px; color: var(--text-soft); background: #F8FAF6; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }

/* ============ 进度 ============ */
.progress { height: 5px; border-radius: 5px; background: #EDF2EC; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--jade-500), var(--lime-400)); transition: width .4s var(--ease); }
.progress.thin { height: 3px; }
.progress.amber > i { background: linear-gradient(90deg, var(--amber), #F0C46A); }
.progress.rose > i { background: linear-gradient(90deg, #C95555, #E88A8A); }

/* ============ 看板 ============ */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(178px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 4px; }
.kanban-col {
  background: rgba(255,255,255,.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px;
  min-height: 320px;
}
.kanban-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; }
.kanban-title { font-size: 12.5px; font-weight: 700; }
.kanban-count { font-family: 'Barlow Condensed'; font-size: 14px; color: var(--muted); background: #F0F4EF; border-radius: 6px; padding: 0 6px; }
.kanban-col[data-status="待接单"] .kanban-head::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.kanban-col[data-status="优配中"] .kanban-head::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.kanban-col[data-status="待复核"] .kanban-head::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.kanban-col[data-status="已完成"] .kanban-head::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--jade-500); }

.task-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 11px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(8,35,26,.03);
  transition: transform .18s var(--ease), box-shadow .18s, border-color .18s;
  cursor: pointer;
}
.task-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #C8DBCC; }
.task-card::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--line-strong); }
.task-card[data-priority="紧急"]::before { background: var(--rose); }
.task-card[data-priority="高"]::before { background: var(--amber); }
.task-card[data-priority="中"]::before { background: var(--blue); }
.task-card[data-priority="低"]::before { background: var(--muted-light); }
.task-top { display: flex; align-items: center; gap: 6px; }
.task-no { font-size: 10px; letter-spacing: .05em; color: var(--muted-light); font-family: 'Barlow Condensed'; }
.task-title { font-size: 12.5px; font-weight: 600; line-height: 1.5; margin-top: 5px; color: var(--text); }
.task-meta { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 10.5px; color: var(--muted); flex-wrap: wrap; }
.task-foot { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed #EDF2EC; }
.task-avatar {
  width: 22px; height: 22px; border-radius: 7px; background: var(--jade-100); color: var(--jade-700);
  font-size: 9.5px; font-weight: 700; display: grid; place-items: center;
}
.task-foot .right { margin-left: auto; display: flex; gap: 5px; }

/* ============ 提示 / 空态 ============ */
.empty { text-align: center; padding: 52px 20px; color: var(--muted); }
.empty .icon-box {
  width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 15px;
  background: linear-gradient(145deg, #F1F6EF, #E7EEE5);
  display: grid; place-items: center; color: var(--muted-light); font-size: 22px;
  border: 1px solid var(--line);
}
.empty .e-title { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.empty .e-sub { font-size: 11.5px; margin-top: 3px; }

.toast-stack { position: fixed; top: 22px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
  min-width: 240px; max-width: 380px;
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(9, 23, 19, .94);
  color: #E8FFF6;
  font-size: 12.5px;
  box-shadow: 0 18px 44px -16px rgba(0,0,0,.5);
  border: 1px solid rgba(200,242,107,.14);
  backdrop-filter: blur(10px);
  animation: toastIn .3s var(--ease);
}
.toast .icon { font-size: 16px; color: var(--lime-300); margin-top: 1px; }
.toast.error .icon { color: #FF9C9C; }
.toast.warn .icon { color: #F3C46F; }
.toast.leaving { animation: toastOut .25s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(16px); } }

.alert {
  display: flex; gap: 10px; padding: 11px 13px;
  border-radius: 10px; font-size: 12px;
  background: var(--jade-100); color: var(--jade-700);
  border: 1px solid rgba(42,201,165,.2);
}
.alert.amber { background: var(--amber-soft); color: #8C5A10; border-color: #F0DDB8; }
.alert.rose { background: var(--rose-soft); color: #A33C3C; border-color: #EFCACA; }
.alert .icon { font-size: 16px; flex: 0 0 auto; margin-top: 1px; }

/* ============ 其他 ============ */
.chart-box { width: 100%; height: 300px; }
.chart-box.sm { height: 230px; }
.chart-box.lg { height: 360px; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

.stat-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #EDF2EC; }
.stat-line:last-child { border-bottom: 0; }
.stat-line .l { font-size: 12px; color: var(--muted); }
.stat-line .v { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

.segmented { display: inline-flex; background: #F0F4EF; border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.segmented button { height: 27px; padding: 0 10px; border-radius: 6px; font-size: 11px; color: var(--muted); }
.segmented button.active { background: #fff; color: var(--jade-700); box-shadow: var(--shadow-xs); font-weight: 600; }

.metric-inline { display: flex; align-items: baseline; gap: 4px; }
.metric-inline .v { font-family: 'Barlow Condensed'; font-size: 16px; font-weight: 600; color: var(--text); }
.metric-inline .u { font-size: 10px; color: var(--muted); }

.spectrum-bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; }
.spectrum-bar i { display: block; height: 100%; }

.code-chip {
  font-family: 'Barlow Condensed', monospace;
  font-size: 11px; letter-spacing: .06em;
  padding: 2px 6px; border-radius: 5px;
  background: #F1F5F0; border: 1px solid var(--line); color: var(--muted);
}

.sync-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.sync-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 7px; font-size: 11px; border: 1px solid var(--line); color: var(--muted); background: #fff; }
.sync-btn:hover { border-color: var(--jade-300); color: var(--jade-700); background: var(--jade-100); }
.sync-btn .icon { font-size: 13px; }
