/* SalesPulse Mobile · iPhone wireframe · Sales Rep persona */

* { box-sizing: border-box; }

:root {
  --primary: #0d9488;
  --primary-600: #0f766e;
  --primary-soft: #ccfbf1;
  --primary-tint: #f0fdfa;
  --emerald: #059669;
  --emerald-soft: #d1fae5;

  --success: #10b981;
  --success-soft: #d1fae5;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --info: #3b82f6;
  --info-soft: #dbeafe;
  --violet: #8b5cf6;
  --violet-soft: #ede9fe;
  --indigo: #6366f1;
  --indigo-soft: #e0e7ff;
  --orange: #f97316;
  --orange-soft: #ffedd5;
  --pink: #ec4899;
  --pink-soft: #fce7f3;

  --bg: #f5f8f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --line-2: #eef2f5;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow-md: 0 4px 10px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 10px 28px rgba(15,23,42,.08), 0 4px 10px rgba(15,23,42,.05);
  --shadow-frame: 0 60px 120px -30px rgba(13,148,136,.35), 0 30px 60px -20px rgba(15,23,42,.25);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;

  --device-w: 390px;
  --device-h: 844px;
  --screen-pad: 16px;
  --header-h: 56px;
  --tab-h: 78px;
  --statusbar-h: 44px;
}

html, body, #root { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 800px at 20% 10%, #ccfbf1 0%, transparent 55%),
    radial-gradient(1000px 700px at 85% 80%, #dbeafe 0%, transparent 55%),
    linear-gradient(180deg, #eef9f7 0%, #f5f8f7 50%, #e9f3f1 100%);
  min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; padding: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ========== Canvas ========== */
.canvas {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 36px 24px 60px;
  gap: 24px;
}

.canvas-head {
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.canvas-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.canvas-brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--emerald) 100%);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(13,148,136,.35);
}
.canvas-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
}
.canvas-brand-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.canvas-meta {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.canvas-meta strong { color: var(--text); display: block; font-size: 13px; font-weight: 600; }

/* ========== Device Frame ========== */
.device-frame {
  width: var(--device-w);
  height: var(--device-h);
  background: #0b0d10;
  border-radius: 56px;
  padding: 12px;
  box-shadow: var(--shadow-frame);
  position: relative;
  flex-shrink: 0;
}
.device-frame::before {
  /* outer chrome ring */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 56px;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.device-screen {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 32px;
  background: #0b0d10;
  border-radius: 22px;
  z-index: 30;
}
.home-indicator {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: #0f172a;
  border-radius: 3px;
  z-index: 30;
  opacity: .85;
}

/* ========== Status bar ========== */
.status-bar {
  height: var(--statusbar-h);
  padding: 16px 28px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  z-index: 20;
  background: transparent;
}
.status-bar .sb-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}
.status-bar svg { color: var(--text); }
.status-bar .battery {
  width: 26px; height: 12px;
  border: 1px solid var(--text);
  border-radius: 3px;
  position: relative;
  padding: 1px;
}
.status-bar .battery::after {
  content: "";
  position: absolute;
  right: -3px; top: 3px;
  width: 2px; height: 6px;
  background: var(--text);
  border-radius: 0 1px 1px 0;
}
.status-bar .battery span {
  display: block;
  height: 100%;
  background: var(--text);
  border-radius: 1px;
  width: 80%;
}

/* ========== Mobile header ========== */
.m-header {
  height: var(--header-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.m-header .h-title {
  flex: 1;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  text-align: center;
  letter-spacing: -.01em;
}
.m-header .h-left,
.m-header .h-right {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 48px;
}
.m-header .h-right { justify-content: flex-end; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--text-2);
  transition: background .15s;
  position: relative;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn .dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--surface);
}

.h-title-row {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.h-title-row .eyebrow {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

/* ========== Screen ========== */
.screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 16px calc(var(--tab-h) + 24px);
  background: var(--bg);
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.no-tab { padding-bottom: 24px; }
.screen.no-pad { padding-left: 0; padding-right: 0; }

/* ========== Bottom Tab ========== */
.bottom-tab {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--tab-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: flex-start;
  padding: 8px 4px 22px;
  z-index: 20;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  border-radius: 10px;
  transition: color .15s;
}
.tab-item .tab-icon {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 10px;
  transition: background .15s;
}
.tab-item.active { color: var(--primary); }
.tab-item.active .tab-icon {
  background: var(--primary-soft);
  color: var(--primary);
}
.tab-item .tab-badge {
  position: absolute;
  margin-top: -22px;
  margin-left: 14px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  border: 2px solid #fff;
  min-width: 16px;
  text-align: center;
}

/* ========== Hero greeting ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--emerald) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 18px 18px 20px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 24px -8px rgba(13,148,136,.45);
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .greet {
  font-size: 12px;
  opacity: .9;
  margin-bottom: 2px;
}
.hero .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.01em;
}
.hero .role {
  font-size: 12px;
  opacity: .85;
  margin-top: 2px;
  margin-bottom: 14px;
}
.hero-stat-row {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.hero-stat {
  flex: 1;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 10px 12px;
}
.hero-stat .l { font-size: 10px; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }
.hero-stat .v { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-top: 4px; }
.hero-stat .d { font-size: 11px; opacity: .9; margin-top: 1px; }

/* ========== Mini stat grid 2x2 ========== */
.mstat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.mstat {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 12px 14px;
  position: relative;
}
.mstat .mi {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 8px;
  background: var(--primary-soft);
  color: var(--primary);
}
.mstat.emerald .mi { background: var(--emerald-soft); color: var(--emerald); }
.mstat.indigo .mi { background: var(--indigo-soft); color: var(--indigo); }
.mstat.violet .mi { background: var(--violet-soft); color: var(--violet); }
.mstat.warning .mi { background: var(--warning-soft); color: var(--warning); }
.mstat.orange .mi { background: var(--orange-soft); color: var(--orange); }
.mstat.danger .mi { background: var(--danger-soft); color: var(--danger); }
.mstat .ml { font-size: 11px; color: var(--muted); }
.mstat .mv { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-top: 2px; letter-spacing: -.01em; color: var(--text); }
.mstat .md { font-size: 11px; margin-top: 4px; display: inline-flex; align-items: center; gap: 3px; }
.mstat .md.up { color: var(--emerald); }
.mstat .md.down { color: var(--danger); }
.mstat .md.flat { color: var(--muted); }

/* ========== Section ========== */
.m-section {
  margin-bottom: 16px;
}
.m-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
}
.m-section-head .t {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.m-section-head .t small {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 1px;
}
.m-section-head .a {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* ========== Card ========== */
.m-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px;
}
.m-card + .m-card { margin-top: 8px; }

/* ========== List item ========== */
.m-list {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
}
.m-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  width: 100%;
  text-align: left;
}
.m-list-item:last-child { border-bottom: 0; }
.m-list-item .li-icon {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.m-list-item.emerald .li-icon { background: var(--emerald-soft); color: var(--emerald); }
.m-list-item.indigo .li-icon { background: var(--indigo-soft); color: var(--indigo); }
.m-list-item.violet .li-icon { background: var(--violet-soft); color: var(--violet); }
.m-list-item.warning .li-icon { background: var(--warning-soft); color: var(--warning); }
.m-list-item.orange .li-icon { background: var(--orange-soft); color: var(--orange); }
.m-list-item.danger .li-icon { background: var(--danger-soft); color: var(--danger); }
.m-list-item.pink .li-icon { background: var(--pink-soft); color: var(--pink); }
.m-list-item.info .li-icon { background: var(--info-soft); color: var(--info); }
.m-list-item .li-body {
  flex: 1;
  min-width: 0;
}
.m-list-item .li-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-list-item .li-sub {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-list-item .li-right {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.m-list-item .li-right .v {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* ========== Avatar ========== */
.avatar-mini {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.avatar-mini.primary { background: var(--primary-soft); color: var(--primary); }
.avatar-mini.emerald { background: var(--emerald-soft); color: var(--emerald); }
.avatar-mini.indigo  { background: var(--indigo-soft); color: var(--indigo); }
.avatar-mini.violet  { background: var(--violet-soft); color: var(--violet); }
.avatar-mini.warning { background: var(--warning-soft); color: var(--warning); }
.avatar-mini.orange  { background: var(--orange-soft); color: var(--orange); }
.avatar-mini.danger  { background: var(--danger-soft); color: var(--danger); }
.avatar-mini.pink    { background: var(--pink-soft); color: var(--pink); }
.avatar-mini.info    { background: var(--info-soft); color: var(--info); }
.avatar-mini.success { background: var(--success-soft); color: var(--success); }

/* ========== Pill / status ========== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-2);
  white-space: nowrap;
}
.status-pill .pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
.status-pill.primary { background: var(--primary-soft); color: var(--primary-600); }
.status-pill.primary .pill-dot { background: var(--primary); }
.status-pill.emerald { background: var(--emerald-soft); color: var(--emerald); }
.status-pill.emerald .pill-dot { background: var(--emerald); }
.status-pill.success { background: var(--success-soft); color: #065f46; }
.status-pill.success .pill-dot { background: var(--success); }
.status-pill.warning { background: var(--warning-soft); color: #92400e; }
.status-pill.warning .pill-dot { background: var(--warning); }
.status-pill.danger  { background: var(--danger-soft); color: #991b1b; }
.status-pill.danger .pill-dot { background: var(--danger); }
.status-pill.info    { background: var(--info-soft); color: #1d4ed8; }
.status-pill.info .pill-dot { background: var(--info); }

/* ========== Chip / segmented ========== */
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px 12px;
  padding: 2px 16px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
}
.chip.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.segmented {
  display: flex;
  background: var(--surface-3);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
  margin-bottom: 12px;
}
.segmented button {
  flex: 1;
  padding: 7px 8px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.segmented button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

/* ========== Progress ========== */
.progress {
  height: 6px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width .3s;
}
.progress-fill.warn { background: var(--warning); }
.progress-fill.danger { background: var(--danger); }
.progress-fill.success { background: var(--success); }

/* ========== FAB ========== */
.fab {
  position: absolute;
  right: 18px;
  bottom: calc(var(--tab-h) + 18px);
  width: 54px; height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--emerald) 100%);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 24px -6px rgba(13,148,136,.55);
  z-index: 25;
}

/* ========== Charts ========== */
.line-chart {
  width: 100%;
  height: 160px;
  display: block;
}
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 130px;
  padding: 8px 0 18px;
}
.bar-chart .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary) 0%, var(--emerald) 100%);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  position: relative;
}
.bar-chart .bar .bar-label {
  position: absolute;
  bottom: -16px;
  left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.bar-chart .bar .bar-value {
  position: absolute;
  top: -16px;
  left: 0; right: 0;
  text-align: center;
  font-size: 9px;
  color: var(--text-2);
  font-weight: 600;
}

/* ========== Dial ========== */
.dial {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dial-center .pct {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}
.dial-center .lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }
.dial-center .sub { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* ========== Donut ========== */
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.donut { position: relative; width: 140px; height: 140px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.donut-center .v {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}
.donut-center .l { font-size: 10px; color: var(--muted); }
.donut-legend { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.donut-legend-item .swatch {
  width: 10px; height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.donut-legend-item .name { flex: 1; color: var(--text-2); }
.donut-legend-item .val { font-weight: 600; color: var(--text); }

/* ========== Spark ========== */
.spark {
  display: block;
  width: 100%;
  height: 28px;
}

/* ========== Insight / alert ========== */
.insight {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  margin-bottom: 8px;
}
.insight.warn { background: #fffbeb; border-color: #fde68a; }
.insight.danger { background: #fef2f2; border-color: #fecaca; }
.insight-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.insight.warn .insight-icon { background: var(--warning-soft); color: var(--warning); }
.insight.danger .insight-icon { background: var(--danger-soft); color: var(--danger); }
.insight .ti { font-size: 12.5px; font-weight: 600; color: var(--text); }
.insight .tx { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ========== Timeline ========== */
.timeline {
  position: relative;
  padding-left: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line-2);
}
.tl-item {
  position: relative;
  margin-bottom: 14px;
  padding-right: 4px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-icon {
  position: absolute;
  left: -26px;
  top: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  border: 3px solid var(--bg);
}
.tl-icon.emerald { background: var(--emerald-soft); color: var(--emerald); }
.tl-icon.indigo  { background: var(--indigo-soft); color: var(--indigo); }
.tl-icon.violet  { background: var(--violet-soft); color: var(--violet); }
.tl-icon.warning { background: var(--warning-soft); color: var(--warning); }
.tl-icon.orange  { background: var(--orange-soft); color: var(--orange); }
.tl-icon.danger  { background: var(--danger-soft); color: var(--danger); }
.tl-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.tl-text {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
  line-height: 1.4;
}
.tl-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

/* ========== Pipeline list ========== */
.deal-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.deal-card .dh {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.deal-card .dn {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.deal-card .dc {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.deal-card .dv {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.deal-card .df {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.deal-card .df .prob {
  font-weight: 600;
  color: var(--text-2);
}

/* ========== Podium horizontal ========== */
.podium-h {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  align-items: end;
}
.podium-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  position: relative;
}
.podium-card .pc-rank {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--surface);
}
.podium-card.gold   { background: linear-gradient(180deg, #fef9c3 0%, #fff 100%); border-color: #fde68a; }
.podium-card.gold .pc-rank { background: #fbbf24; color: #fff; }
.podium-card.silver { background: linear-gradient(180deg, #f1f5f9 0%, #fff 100%); }
.podium-card.silver .pc-rank { background: #94a3b8; color: #fff; }
.podium-card.bronze { background: linear-gradient(180deg, #fef3c7 0%, #fff 100%); }
.podium-card.bronze .pc-rank { background: #d97706; color: #fff; }
.podium-card .pc-avatar { margin: 0 auto 6px; }
.podium-card .pc-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
}
.podium-card .pc-val {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* ========== Leaderboard row ========== */
.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  margin-bottom: 6px;
}
.lb-row.me { border-color: var(--primary); background: var(--primary-tint); }
.lb-row .lb-rank {
  width: 26px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.lb-row.top1 .lb-rank { color: #d97706; }
.lb-row.top2 .lb-rank { color: #64748b; }
.lb-row.top3 .lb-rank { color: #b45309; }
.lb-row .lb-info { flex: 1; min-width: 0; }
.lb-row .lb-info .nm {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-row .lb-info .rg {
  font-size: 11px;
  color: var(--muted);
}
.lb-row .lb-val {
  text-align: right;
}
.lb-row .lb-val .v {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.lb-row .lb-val .p {
  font-size: 11px;
  color: var(--emerald);
  font-weight: 600;
}

.me-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--emerald) 100%);
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.me-banner .mb-rank {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.me-banner .mb-body { flex: 1; }
.me-banner .mb-body .t { font-size: 12px; opacity: .9; }
.me-banner .mb-body .v { font-family: var(--font-display); font-size: 16px; font-weight: 700; }

/* ========== Team grid ========== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}
.team-card .ta {
  width: 52px; height: 52px;
  font-size: 16px;
  border-radius: 50%;
  margin: 0 auto 8px;
}
.team-card .tn {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.team-card .tr {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.team-card .ts {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 6px;
}

/* ========== Region row ========== */
.region-row {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.region-row .rh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.region-row .rn { font-size: 13px; font-weight: 600; color: var(--text); }
.region-row .rmgr { font-size: 11px; color: var(--muted); }
.region-row .rv {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.region-row .rp { font-size: 11px; color: var(--muted); margin-top: 2px; margin-bottom: 8px; }
.region-row .rp.up { color: var(--emerald); }
.region-row .rp.down { color: var(--danger); }

/* ========== Approval card ========== */
.appr-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 8px;
}
.appr-card.urgent {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
}
.appr-card .ah {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.appr-card .ac { font-size: 13px; font-weight: 600; color: var(--text); }
.appr-card .ai { font-size: 11px; color: var(--muted); margin-top: 2px; }
.appr-card .av {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 6px 0 4px;
}
.appr-card .amini {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.appr-card .amini span strong { color: var(--text); font-weight: 600; }

.appr-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.appr-step {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.appr-step::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: -16px;
  width: 2px;
  background: var(--line);
}
.appr-step:last-child::before { display: none; }
.appr-step .as-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--muted);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
}
.appr-step.done .as-dot { background: var(--emerald); color: #fff; }
.appr-step.current .as-dot {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.appr-step .as-body { flex: 1; }
.appr-step .as-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.appr-step .as-role { font-size: 11px; color: var(--muted); }
.appr-step .as-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}
.appr-step.done .as-tag { color: var(--emerald); }
.appr-step.current .as-tag { color: var(--primary); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--text);
  color: #fff;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.secondary { background: var(--surface-3); color: var(--text); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.outline { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.block { width: 100%; }
.btn.lg { height: 46px; font-size: 14px; padding: 0 18px; }

/* ========== Forecast scenario card ========== */
.scenario-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 8px;
  position: relative;
}
.scenario-card.active {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.scenario-card .sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.scenario-card .sn {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.scenario-card .sv {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.scenario-card .sa {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* ========== Product card ========== */
.prod-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.prod-card .pi {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.prod-card .pb { flex: 1; min-width: 0; }
.prod-card .pn {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prod-card .pc {
  font-size: 11px;
  color: var(--muted);
}
.prod-card .pr { text-align: right; }
.prod-card .pv {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.prod-card .pg { font-size: 11px; font-weight: 600; }
.prod-card .pg.up { color: var(--emerald); }
.prod-card .pg.down { color: var(--danger); }

/* ========== Channel breakdown ========== */
.ch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.ch-row:last-child { border-bottom: 0; }
.ch-row .ch-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.ch-row .ch-body { flex: 1; }
.ch-row .ch-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.ch-row .ch-bar {
  height: 4px;
  background: var(--surface-3);
  border-radius: 999px;
  margin-top: 5px;
  overflow: hidden;
}
.ch-row .ch-bar > div { height: 100%; border-radius: 999px; }
.ch-row .ch-val {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.ch-row .ch-pct { font-size: 11px; color: var(--muted); }

/* ========== Profile menu list ========== */
.prof-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--emerald) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 20px 18px;
  text-align: center;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.prof-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,.2), transparent 60%);
}
.prof-hero .pa {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.2);
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 10px;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-display);
  position: relative;
  z-index: 1;
}
.prof-hero .pn {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.prof-hero .pr { font-size: 12px; opacity: .9; margin-top: 2px; position: relative; z-index: 1; }
.prof-hero .pstat {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.prof-hero .pstat > div {
  flex: 1;
  background: rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 8px 6px;
}
.prof-hero .pstat .l { font-size: 10px; opacity: .85; }
.prof-hero .pstat .v { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-top: 2px; }

/* ========== Empty hint ========== */
.empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  animation: toast-in .2s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ========== Helpers ========== */
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.muted { color: var(--muted); font-size: 11.5px; }
.label-tiny { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.report-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 8px;
}
.report-card .rh {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.report-card .ri {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.report-card .rt {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.report-card .rs {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.report-card .rd {
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.4;
}
.report-card .rf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}

/* ========== Mini KPI row ========== */
.mini-kpi-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.mini-kpi {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.mini-kpi .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mini-kpi .v { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); margin-top: 2px; }
.mini-kpi .d { font-size: 10.5px; color: var(--emerald); font-weight: 600; }
.mini-kpi .d.down { color: var(--danger); }
.mini-kpi .d.flat { color: var(--muted); }
