:root {
  --bg-page: #eef3fb;
  --bg-panel: #f6f9fe;
  --bg-card: #ffffff;
  --bg-card-soft: #f8fbff;
  --bg-rail: linear-gradient(180deg, #5f78d7 0%, #4e67bf 100%);
  --border: rgba(145, 163, 196, 0.22);
  --border-strong: rgba(112, 132, 173, 0.32);
  --text: #1f2a44;
  --text-soft: #6d7b98;
  --text-faint: #95a2bd;
  --primary: #5b7cfa;
  --primary-deep: #4863d7;
  --primary-soft: rgba(91, 124, 250, 0.12);
  --mint: #2bbf9b;
  --gold: #f2b94b;
  --danger: #d55c72;
  --slate: #8593b5;
  --radius-card: 24px;
  --radius-soft: 18px;
  --shadow-card: 0 16px 40px rgba(70, 86, 125, 0.08);
  --shadow-soft: 0 10px 30px rgba(70, 86, 125, 0.06);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(103, 126, 233, 0.15), transparent 28%),
    linear-gradient(180deg, #f5f8fe 0%, var(--bg-page) 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.shell {
  display: flex;
  min-height: 100vh;
  gap: 28px;
  padding: 18px;
}

.sidebar {
  width: 290px;
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  background: var(--bg-rail);
  color: #f4f7ff;
  border-radius: 34px;
  box-shadow: 0 22px 46px rgba(65, 85, 154, 0.22);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-title { font-size: 20px; font-weight: 700; }
.brand-subtitle { font-size: 12px; color: rgba(244, 247, 255, 0.7); margin-top: 4px; }

.sidebar-scroll {
  flex: 1;
  overflow: auto;
  padding-right: 4px;
}

.nav-group { margin-bottom: 22px; }

.nav-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(244, 247, 255, 0.58);
  margin-bottom: 10px;
  padding-left: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 18px;
  color: rgba(244, 247, 255, 0.92);
  margin-bottom: 6px;
  transition: all .2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateX(2px);
}

.nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--tone-color, #d8e2ff);
  background: var(--tone-bg, rgba(255, 255, 255, 0.12));
  border: 1px solid var(--tone-border, rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.nav-link.active .nav-icon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%),
    var(--tone-bg, rgba(255, 255, 255, 0.24));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 18px rgba(34, 48, 96, 0.18);
}

.nav-icon.tone-sky {
  --tone-color: #d7ecff;
  --tone-bg: rgba(90, 173, 255, 0.18);
  --tone-border: rgba(183, 221, 255, 0.22);
}

.nav-icon.tone-cyan {
  --tone-color: #cff7ff;
  --tone-bg: rgba(62, 210, 232, 0.18);
  --tone-border: rgba(190, 244, 255, 0.22);
}

.nav-icon.tone-amber {
  --tone-color: #ffe7ad;
  --tone-bg: rgba(242, 185, 75, 0.18);
  --tone-border: rgba(255, 227, 160, 0.22);
}

.nav-icon.tone-gold {
  --tone-color: #ffe2a0;
  --tone-bg: rgba(233, 170, 54, 0.18);
  --tone-border: rgba(255, 222, 152, 0.22);
}

.nav-icon.tone-orange {
  --tone-color: #ffd6b3;
  --tone-bg: rgba(255, 156, 88, 0.18);
  --tone-border: rgba(255, 211, 177, 0.22);
}

.nav-icon.tone-coral {
  --tone-color: #ffd0c8;
  --tone-bg: rgba(243, 125, 101, 0.18);
  --tone-border: rgba(255, 206, 198, 0.22);
}

.nav-icon.tone-rose {
  --tone-color: #ffcbd9;
  --tone-bg: rgba(228, 105, 137, 0.18);
  --tone-border: rgba(255, 203, 218, 0.22);
}

.nav-icon.tone-mint {
  --tone-color: #c8ffe8;
  --tone-bg: rgba(55, 205, 162, 0.18);
  --tone-border: rgba(195, 255, 228, 0.22);
}

.nav-icon.tone-lime {
  --tone-color: #e5ffb9;
  --tone-bg: rgba(156, 213, 76, 0.18);
  --tone-border: rgba(224, 255, 174, 0.22);
}

.nav-icon.tone-aqua {
  --tone-color: #c9fbf6;
  --tone-bg: rgba(78, 205, 197, 0.18);
  --tone-border: rgba(193, 249, 242, 0.22);
}

.nav-icon.tone-teal {
  --tone-color: #bdf3ea;
  --tone-bg: rgba(59, 180, 168, 0.18);
  --tone-border: rgba(182, 241, 233, 0.22);
}

.nav-icon.tone-slate {
  --tone-color: #dae5ff;
  --tone-bg: rgba(138, 157, 201, 0.18);
  --tone-border: rgba(211, 222, 255, 0.22);
}

.nav-icon.tone-violet {
  --tone-color: #dfd5ff;
  --tone-bg: rgba(138, 117, 230, 0.18);
  --tone-border: rgba(223, 212, 255, 0.22);
}

.nav-label { font-size: 14px; }

.sidebar-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.sidebar-user { font-weight: 600; }
.sidebar-role { font-size: 12px; color: rgba(244, 247, 255, 0.66); margin-top: 2px; }
.sidebar-logout { width: 100%; justify-content: center; background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255,255,255,0.16); }

.content {
  flex: 1;
  min-width: 0;
  padding: 6px 0 18px;
}

.page-shell {
  max-width: 1480px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.topbar-wide { margin-bottom: 28px; }
.eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.title { font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.subtitle { color: var(--text-soft); margin-top: 8px; max-width: 760px; line-height: 1.7; }

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-section { margin-top: 22px; }

.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(145, 163, 196, 0.18);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.card-head.compact { margin-bottom: 14px; }
.card-title { font-size: 20px; font-weight: 700; }
.card-subtitle { font-size: 13px; color: var(--text-soft); margin-top: 5px; }
.card-meta { font-size: 12px; color: var(--text-faint); white-space: nowrap; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.75fr);
  gap: 22px;
}

.hero-chart-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247, 250, 255, 0.98) 100%);
}

.hero-chart-card::after {
  content: "";
  position: absolute;
  inset: auto -140px -160px auto;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(91,124,250,0.18) 0%, transparent 68%);
}

.hero-chart-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.hero-chart-switches {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 520px;
}

.hero-switch {
  border: 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(236, 241, 251, 0.9);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all .2s ease;
}

.hero-switch:hover {
  background: rgba(222, 232, 250, 0.95);
  color: var(--text);
}

.hero-switch.active {
  background: linear-gradient(180deg, rgba(91,124,250,0.18), rgba(91,124,250,0.12));
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(91,124,250,0.2);
}

.chart-badge {
  position: absolute;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 98px;
  text-align: center;
  padding: 12px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 28px;
  font-weight: 800;
}

.hero-chart-svg {
  width: 100%;
  height: 280px;
  margin-top: 10px;
}

.chart-grid-lines line {
  stroke: rgba(155, 172, 205, 0.34);
  stroke-width: 1;
}

.chart-ghost {
  fill: none;
  stroke: rgba(177, 189, 214, 0.48);
  stroke-width: 2.2;
}

.chart-ghost.second { stroke: rgba(190, 200, 221, 0.36); }

.chart-primary {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: drawLine 2.2s ease forwards;
}

.chart-focus-ring {
  fill: rgba(91, 124, 250, 0.18);
  stroke: var(--primary);
  stroke-width: 3;
}

.chart-focus-dot { fill: var(--primary); }

.chart-axis {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 8px;
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 6px;
}

.dashboard-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.aside-card {
  background: rgba(255,255,255,0.88);
}

.aside-profile-card {
  background: linear-gradient(180deg, #5f78d7 0%, #6984eb 100%);
  color: #fff;
}

.aside-profile-card .card-subtitle,
.aside-profile-card .card-meta { color: rgba(255,255,255,0.72); }

.mini-bar-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 8px;
  height: 112px;
  margin-top: 16px;
}

.mini-bar-chart span {
  display: block;
  border-radius: 999px;
  background: rgba(255,255,255,0.56);
  animation: riseBar .9s ease both;
  transform-origin: bottom center;
}

.mini-bar-chart span:nth-child(odd) { animation-delay: .06s; }

.soft-calendar-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(247,250,255,0.98) 100%);
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.calendar-strip span,
.procurement-day {
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 14px;
  background: var(--bg-panel);
  color: var(--text-soft);
  font-size: 13px;
}

.calendar-strip span.active,
.procurement-day.active {
  background: linear-gradient(180deg, #f6bf4f 0%, #e0a329 100%);
  color: #fff;
}

.procurement-day {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: all .2s ease;
}

.procurement-day:hover {
  background: rgba(231, 237, 250, 0.96);
  color: var(--text);
}

.calendar-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 13px;
}

.procurement-notes div {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.procurement-notes strong {
  min-width: 74px;
  margin-right: 10px;
  color: var(--text);
  font-size: 12px;
}

.procurement-notes span:last-child {
  line-height: 1.6;
}

.calendar-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 8px;
}

.calendar-dot.blue { background: var(--primary); }
.calendar-dot.mint { background: var(--mint); }
.calendar-dot.gold { background: var(--gold); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  padding: 20px 22px;
  border-radius: 22px;
}

.stat-card-soft { background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,251,255,0.98)); }
.stat-card-alert { background: linear-gradient(180deg, rgba(255,248,249,0.95), rgba(255,240,244,0.98)); }

.metric { font-size: 13px; color: var(--text-faint); letter-spacing: 0.04em; }
.metric-value { font-size: 36px; font-weight: 800; margin-top: 8px; letter-spacing: -0.04em; }
.metric-foot { font-size: 12px; color: var(--text-soft); margin-top: 8px; }

.insight-card,
.stream-card { min-height: 100%; }

.kpi-stack { display: flex; flex-direction: column; gap: 18px; }
.kpi-label-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-soft); margin-bottom: 8px; }
.kpi-label-row strong { color: var(--text); font-size: 20px; }

.progress {
  height: 10px;
  border-radius: 999px;
  background: #edf2fb;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  animation: growProgress 1.3s ease forwards;
}

.progress-mint span { width: 96.4%; background: linear-gradient(90deg, #2bbf9b 0%, #4fd7b6 100%); }
.progress-gold span { width: 91.2%; background: linear-gradient(90deg, #f2b94b 0%, #ffd062 100%); }
.progress-slate span { width: 42%; background: linear-gradient(90deg, #8fa0c8 0%, #aab8d6 100%); }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quick-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid rgba(135, 154, 201, 0.18);
}

.quick-tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(91,124,250,0.12);
  color: var(--primary);
  font-weight: 700;
}

.activity-list { display: flex; flex-direction: column; gap: 14px; }

.activity-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(145,163,196,0.18);
}

.activity-row:last-child { border-bottom: 0; }

.avatar-chip {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(91,124,250,0.12);
  color: var(--primary);
  font-weight: 700;
}

.avatar-chip.alt { background: rgba(43,191,155,0.14); color: var(--mint); }
.activity-body { flex: 1; }
.activity-title { font-weight: 700; }
.activity-meta { font-size: 13px; color: var(--text-soft); margin-top: 4px; }
.activity-score { font-size: 22px; font-weight: 800; color: var(--primary-deep); }

.check-list { display: flex; flex-direction: column; gap: 12px; }

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248,251,255,0.98), rgba(240,245,255,0.98));
  color: var(--text-soft);
}

.check-mark {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-deep) 100%);
  box-shadow: 0 8px 16px rgba(91,124,250,0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(91,124,250,0.2);
}

.btn.secondary {
  background: rgba(91,124,250,0.12);
  color: var(--primary);
  box-shadow: none;
}

.btn.ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid rgba(129, 146, 181, 0.25);
  box-shadow: none;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.table th,
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(145,163,196,0.18);
  text-align: left;
  vertical-align: top;
}

.table th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
}

.table tbody tr:hover { background: rgba(245, 248, 255, 0.76); }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(91,124,250,0.12);
  color: var(--primary);
}

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; color: var(--text-faint); margin-bottom: 8px; letter-spacing: 0.08em; text-transform: uppercase; }

.input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(131, 149, 185, 0.2);
  border-radius: 16px;
  background: rgba(250, 252, 255, 0.96);
  color: var(--text);
  outline: none;
}

.input:focus,
select:focus,
textarea:focus {
  border-color: rgba(91,124,250,0.45);
  box-shadow: 0 0 0 4px rgba(91,124,250,0.08);
}

.flash {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-size: 14px;
}

.flash.success { background: rgba(43,191,155,0.12); color: #118368; }
.flash.error { background: rgba(213,92,114,0.12); color: #9d3048; }

.admin-image-preview { margin: 0 0 10px; }
.admin-image-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; border: 1px solid rgba(131,149,185,0.18); background: #fff; }

.admin-upload-panel {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-upload-preview {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  border: 1px dashed rgba(131,149,185,0.28);
  background: linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.admin-upload-preview.has-image {
  border-style: solid;
}

.admin-upload-preview .admin-image-thumb {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.admin-upload-placeholder {
  font-size: 13px;
  color: var(--text-soft);
}

.admin-upload-copy {
  flex: 1;
  min-width: 0;
}

.admin-product-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
}

.admin-product-thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(131,149,185,0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f1f6ff 100%);
  box-shadow: 0 10px 24px rgba(71, 88, 128, 0.08);
  flex-shrink: 0;
}

.admin-product-thumb-placeholder {
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
}

.admin-product-copy {
  min-width: 0;
}

.admin-product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.admin-product-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.6;
}

.product-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-thumb-small {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(131,149,185,0.18);
  background: linear-gradient(180deg, #ffffff 0%, #eff4ff 100%);
  box-shadow: 0 10px 24px rgba(71, 88, 128, 0.08);
  flex-shrink: 0;
}

.product-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-name {
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
}

.product-meta,
.product-stat-line {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

.product-stat-line {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.96), rgba(240, 245, 255, 0.98));
}

.mobile-shell {
  max-width: 500px;
  margin: 0 auto;
  padding: 22px 16px 34px;
}

.mobile-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(91,124,250,0.16), transparent 24%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3fb 100%);
  z-index: -1;
}

.mobile-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(145,163,196,0.16);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.mobile-session-bar {
  position: sticky;
  top: 0;
  z-index: 8;
  margin-bottom: 16px;
  padding-top: 4px;
}

.mobile-session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(145,163,196,0.16);
  box-shadow: 0 14px 28px rgba(70, 86, 125, 0.08);
  backdrop-filter: blur(14px);
}

.mobile-session-copy {
  min-width: 0;
}

.mobile-session-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.mobile-session-name {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.mobile-session-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.mobile-logout-btn {
  white-space: nowrap;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.82);
}

.mobile-header,
.mobile-hero {
  margin-bottom: 18px;
}

.mobile-hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 28px;
  color: #fff;
  box-shadow: 0 22px 44px rgba(70, 86, 125, 0.14);
}

.mobile-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
}

.mobile-hero-staff {
  background: linear-gradient(135deg, #5d7dff 0%, #5ab9ff 100%);
}

.mobile-hero-manager {
  background: linear-gradient(135deg, #5573df 0%, #43b4c7 100%);
}

.mobile-hero-eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

.mobile-hero .mobile-title,
.mobile-hero .mobile-subtitle,
.mobile-hero .mobile-stat-row {
  position: relative;
  z-index: 1;
}

.mobile-hero .mobile-subtitle {
  color: rgba(255,255,255,0.8);
}

.mobile-title { font-size: 30px; line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; }
.mobile-subtitle { color: var(--text-soft); margin-top: 6px; line-height: 1.7; }

.mobile-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.mobile-stat-pill {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.12);
}

.mobile-stat-pill.emphasis {
  background: rgba(255,255,255,0.22);
}

.mobile-stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}

.mobile-card-highlight {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,247,255,0.96));
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head.compact {
  margin-bottom: 12px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.section-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

.stack { display: flex; flex-direction: column; gap: 12px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.mobile-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mobile-action-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-action-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 104px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid rgba(135,154,201,0.18);
  box-shadow: 0 10px 22px rgba(70, 86, 125, 0.04);
}

.mobile-action-tile strong {
  font-size: 16px;
  color: var(--text);
}

.mobile-action-tile span {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-soft);
}

.mobile-action-tile.primary {
  background: linear-gradient(135deg, rgba(91,124,250,0.18) 0%, rgba(104,143,255,0.1) 100%);
  border-color: rgba(91,124,250,0.2);
}

.mobile-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248,251,255,0.98), rgba(240,245,255,0.98));
}

.mobile-product-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,249,255,0.96));
}

.bottom-bar {
  position: sticky;
  bottom: 0;
  padding-top: 14px;
  background: linear-gradient(180deg, rgba(238,243,251,0) 0%, rgba(238,243,251,0.94) 26%, rgba(238,243,251,0.98) 100%);
}

.hint { color: var(--text-soft); font-size: 12px; line-height: 1.6; }
.source-list { margin: 8px 0 0; padding-left: 18px; color: var(--text-soft); }

.thumb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.thumb-link { display: block; border: 1px solid rgba(131,149,185,0.18); border-radius: 16px; overflow: hidden; background: #fff; }
.thumb-image { display: block; width: 100%; height: 118px; object-fit: cover; }

/* 选项卡样式 */
.tabs-bar {
    display: flex;
    gap: 4px;
    background: rgba(241, 245, 251, 0.8);
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-soft);
    background: transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.6);
}

.tab-item.active {
    color: var(--primary);
    background: #fff;
    box-shadow: 0 2px 8px rgba(91, 124, 250, 0.15);
    font-weight: 600;
}

.live-chart-card {
  overflow: hidden;
}

.dual-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 220px;
  margin-top: 8px;
}

.dual-bars.tall {
  min-height: 236px;
}

.dual-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dual-bar-stack {
  height: 170px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.dual-bar {
  width: 18px;
  border-radius: 999px 999px 8px 8px;
  transform-origin: bottom;
  animation: riseBar 0.7s ease both;
}

.dual-bar.qty,
.dual-bar.sales {
  background: linear-gradient(180deg, #7db4ff 0%, #5b7cfa 100%);
  box-shadow: 0 10px 20px rgba(91,124,250,0.22);
}

.dual-bar.gift {
  background: linear-gradient(180deg, #7fe2d4 0%, #2bbf9b 100%);
  box-shadow: 0 10px 20px rgba(43,191,155,0.2);
}

.dual-bar.cost {
  background: linear-gradient(180deg, #ffb58d 0%, #f37d65 100%);
  box-shadow: 0 10px 20px rgba(243,125,101,0.2);
}

.dual-bar-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.dual-bar-meta {
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.4;
}

.chart-legend.compact {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 12px;
}

.chart-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
}

.dot.blue { background: #5b7cfa; }
.dot.mint { background: #2bbf9b; }
.dot.coral { background: #f37d65; }

.mini-trend-svg {
  width: 100%;
  height: 220px;
  margin-top: 6px;
}

.mini-trend-area {
  fill: rgba(91,124,250,0.14);
  animation: fadeCard 0.8s ease both;
}

.mini-trend-area.warm {
  fill: rgba(243,125,101,0.14);
}

.mini-trend-line {
  fill: none;
  stroke: #5b7cfa;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: drawLine 1.4s ease forwards;
}

.mini-trend-line.warm {
  stroke: #f37d65;
}

.mini-trend-dot {
  fill: #fff;
  stroke: #5b7cfa;
  stroke-width: 3;
  animation: fadeCard 0.8s ease both;
}

.mini-trend-dot.warm {
  stroke: #f37d65;
}

.trend-axis.small {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
  gap: 8px;
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 11px;
  text-align: center;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.metric-chip {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248,250,255,0.98), rgba(241,245,252,0.98));
  border: 1px solid rgba(145,163,196,0.14);
}

.metric-chip span {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.metric-chip strong {
  font-size: 18px;
  color: var(--text);
}

@keyframes drawLine {
  from { stroke-dashoffset: 1500; }
  to { stroke-dashoffset: 0; }
}

@keyframes riseBar {
  from { transform: scaleY(0.2); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes growProgress {
  from { width: 0; }
}

@media (max-width: 1180px) {
  .shell { display: block; padding: 14px; }
  .sidebar { width: auto; margin-bottom: 18px; }
  .hero-grid,
  .grid-4,
  .grid-2,
  .stat-grid,
  .form-row { grid-template-columns: 1fr; }
  .chart-axis { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 420px) {
  .mobile-action-grid,
  .mobile-action-grid-compact,
  .mobile-stat-row {
    grid-template-columns: 1fr;
  }
}
