:root {
  --teal: #05aaa8;
  --teal-700: #007f82;
  --teal-900: #075e60;
  --teal-50: #e9f8f7;
  --ink: #17282b;
  --muted: #6f7f82;
  --subtle: #95a1a3;
  --line: #e2e9e9;
  --bg: #f4f7f7;
  --surface: #fff;
  --danger: #d94c5c;
  --danger-soft: #fff0f1;
  --warning: #e58b27;
  --warning-soft: #fff7e8;
  --success: #17865b;
  --success-soft: #e9f7f0;
  --blue: #4f7ae8;
  --blue-soft: #edf2ff;
  --purple: #8158c7;
  --purple-soft: #f3eefe;
  --sidebar: 248px;
  --topbar: 76px;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(19, 49, 51, .07);
}

* { box-sizing: border-box; }
html { height: 100%; }
body { min-height: 100%; margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-shell { min-height: 100vh; }

.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: var(--sidebar); flex-direction: column; color: rgba(255,255,255,.82); background: linear-gradient(180deg, #075e60 0%, #064d50 100%); }
.brand { display: flex; align-items: center; min-height: var(--topbar); padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.09); gap: 11px; }
.brand img { width: 108px; height: auto; padding: 7px 8px; background: white; border-radius: 7px; }
.brand div { display: grid; gap: 2px; }
.brand strong { color: white; font-size: 11px; letter-spacing: .13em; }
.brand span { color: rgba(255,255,255,.58); font-size: 9px; white-space: nowrap; }
.side-nav { display: grid; min-height: 0; overflow-y: auto; gap: 4px; padding: 18px 14px; }
.side-nav button { position: relative; display: flex; align-items: center; width: 100%; gap: 13px; padding: 12px 13px; color: rgba(255,255,255,.7); background: transparent; border: 0; border-radius: 9px; font-size: 13px; text-align: left; transition: .18s ease; }
.side-nav button:hover { color: white; background: rgba(255,255,255,.07); }
.side-nav button.active { color: white; background: rgba(5,170,168,.27); box-shadow: inset 3px 0 0 #4dd3ce; }
.side-nav button svg { width: 18px; flex: 0 0 auto; }
.side-nav button b, .side-nav button i { display: grid; min-width: 20px; height: 20px; margin-left: auto; place-items: center; padding: 0 5px; color: var(--teal-900); background: #9ce7e0; border-radius: 10px; font-size: 9px; font-style: normal; }
.side-nav button i { color: white; background: #e8756d; }
.sidebar-bottom { margin-top: auto; padding: 16px 14px; border-top: 1px solid rgba(255,255,255,.08); }
.company-sites { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 13px; gap: 6px; }
.company-sites a { display: grid; padding: 8px 9px; gap: 2px; color: rgba(255,255,255,.68); background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); border-radius: 8px; font-size: 8px; text-decoration: none; transition: .18s ease; }
.company-sites a:hover { color: white; background: rgba(255,255,255,.1); }
.company-sites a span { color: #72ddd4; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.sync-status { display: flex; align-items: center; margin: 0 8px 12px; gap: 9px; }
.sync-status > span { width: 7px; height: 7px; background: #50d8b1; border-radius: 50%; box-shadow: 0 0 0 4px rgba(80,216,177,.11); }
.sync-status div, .user-card div { display: grid; flex: 1; gap: 2px; text-align: left; }
.sync-status strong { color: rgba(255,255,255,.75); font-size: 10px; font-weight: 600; }
.sync-status small { color: rgba(255,255,255,.38); font-size: 9px; }
.user-card { display: flex; align-items: center; width: 100%; padding: 9px; gap: 9px; color: white; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; }
.avatar, .top-avatar, .owner-avatar { display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-weight: 750; }
.avatar { width: 34px; height: 34px; color: #075e60; background: #a9e8e2; font-size: 10px; }
.user-card strong { font-size: 11px; }
.user-card small { color: rgba(255,255,255,.5); font-size: 9px; }
.user-card > svg { width: 17px; color: rgba(255,255,255,.5); }

.main-area { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; height: var(--topbar); padding: 0 30px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar-title { min-width: 230px; }
.topbar-title h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.topbar-title p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.topbar-actions { display: flex; align-items: center; margin-left: auto; gap: 11px; }
.language-toggle { display: inline-flex; height: 38px; align-items: center; gap: 7px; padding: 0 10px 0 7px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 9px; font: inherit; cursor: pointer; transition: .18s ease; }
.language-toggle:hover { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(5,170,168,.08); }
.language-code { display: grid; width: 24px; height: 24px; place-items: center; color: white; background: var(--teal-900); border-radius: 6px; font-size: 9px; font-weight: 800; }
.language-label { font-size: 10px; font-weight: 700; }
.global-search { display: flex; align-items: center; width: 310px; gap: 8px; padding: 9px 11px; color: var(--muted); background: var(--bg); border: 1px solid transparent; border-radius: 9px; transition: .2s; }
.global-search:focus-within { background: white; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(5,170,168,.1); }
.global-search svg { width: 16px; }
.global-search input { min-width: 0; flex: 1; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 11px; }
.global-search kbd { color: #899597; font-family: inherit; font-size: 9px; }
.notification-button, .mobile-menu { position: relative; display: grid; width: 38px; height: 38px; place-items: center; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 9px; }
.notification-button svg { width: 17px; }
.notification-button span { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; background: #ed625d; border: 1px solid white; border-radius: 50%; }
.top-avatar { width: 38px; height: 38px; color: white; background: linear-gradient(135deg, var(--teal), var(--teal-900)); font-size: 10px; }
.mobile-menu { display: none; }
.page-content { max-width: 1560px; margin: auto; padding: 27px 30px 42px; }

.page-heading { display: flex; align-items: flex-end; margin-bottom: 22px; gap: 18px; }
.page-heading > div:first-child { flex: 1; }
.page-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 9px; font-size: 11px; font-weight: 700; transition: .18s ease; }
.button svg { width: 16px; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--teal); border: 1px solid var(--teal); box-shadow: 0 7px 16px rgba(5,170,168,.2); }
.button.primary:hover { background: var(--teal-700); }
.button.secondary { color: var(--ink); background: white; border: 1px solid var(--line); }
.button.secondary:hover { border-color: #b9cdce; }
.button.ghost { color: var(--teal-700); background: transparent; border: 0; }
.button.danger { color: var(--danger); background: var(--danger-soft); border: 0; }
.button.small { min-height: 30px; padding: 0 10px; font-size: 9px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 17px; }
.kpi-card { position: relative; min-height: 129px; overflow: hidden; padding: 20px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.kpi-card::after { content: ""; position: absolute; top: -26px; right: -22px; width: 82px; height: 82px; background: var(--kpi-soft); border-radius: 50%; }
.kpi-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.kpi-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--kpi-color); background: var(--kpi-soft); border-radius: 10px; }
.kpi-icon svg { width: 17px; }
.kpi-value { display: flex; align-items: baseline; margin-top: 12px; gap: 8px; }
.kpi-value strong { font-size: 29px; letter-spacing: -.04em; }
.kpi-value span { color: var(--success); font-size: 9px; font-weight: 700; }
.kpi-note { margin-top: 4px; color: var(--subtle); font-size: 9px; }
.kpi-note.danger { color: var(--danger); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .85fr); gap: 17px; }
.dashboard-stack { display: grid; align-content: start; gap: 17px; }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { display: flex; align-items: center; min-height: 58px; padding: 0 19px; border-bottom: 1px solid var(--line); }
.card-header h3 { margin: 0; font-size: 13px; }
.card-header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.card-header .card-header-action { margin-left: auto; }
.card-body { padding: 18px 19px; }

.urgent-list { display: grid; }
.urgent-row { display: grid; grid-template-columns: minmax(210px, 1.25fr) .8fr .62fr .55fr auto; align-items: center; min-height: 73px; padding: 0 19px; gap: 13px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .16s; }
.urgent-row:hover { background: #fbfdfd; }
.urgent-row:last-child { border-bottom: 0; }
.lead-identity { display: flex; align-items: center; min-width: 0; gap: 10px; }
.lead-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: var(--avatar-color, var(--teal-700)); background: var(--avatar-bg, var(--teal-50)); border-radius: 10px; font-size: 10px; font-weight: 800; }
.lead-identity div { min-width: 0; }
.lead-identity strong, .lead-identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-identity strong { font-size: 11px; }
.lead-identity span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.cell-main, .cell-sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-main { font-size: 10px; font-weight: 650; }
.cell-sub { margin-top: 4px; color: var(--muted); font-size: 8px; }
.owner-chip { display: flex; align-items: center; min-width: 0; gap: 7px; }
.owner-avatar { width: 27px; height: 27px; color: white; background: var(--owner-color, var(--teal)); font-size: 8px; }
.owner-chip span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.owner-chip.unassigned span { color: var(--danger); }
.due { color: var(--muted); font-size: 9px; white-space: nowrap; }
.due.overdue { color: var(--danger); font-weight: 700; }
.row-arrow { display: grid; width: 28px; height: 28px; place-items: center; color: var(--muted); background: var(--bg); border: 0; border-radius: 8px; }
.row-arrow svg { width: 14px; }

.status, .priority { display: inline-flex; align-items: center; width: max-content; padding: 5px 8px; border-radius: 6px; font-size: 8px; font-weight: 750; white-space: nowrap; }
.status-new { color: var(--blue); background: var(--blue-soft); }
.status-contacted { color: #59636c; background: #edf0f1; }
.status-qualified { color: var(--purple); background: var(--purple-soft); }
.status-sample { color: #a6631d; background: var(--warning-soft); }
.status-quotation, .status-negotiation { color: #087d7f; background: var(--teal-50); }
.status-won { color: var(--success); background: var(--success-soft); }
.status-lost { color: var(--danger); background: var(--danger-soft); }
.priority { padding: 4px 7px; }
.priority-high { color: var(--danger); background: var(--danger-soft); }
.priority-medium { color: #aa681d; background: var(--warning-soft); }
.priority-low { color: var(--muted); background: #eef2f2; }

.funnel { display: grid; gap: 12px; }
.funnel-row { display: grid; grid-template-columns: 66px 1fr 28px; align-items: center; gap: 9px; }
.funnel-row span { color: var(--muted); font-size: 9px; }
.funnel-row b { font-size: 9px; text-align: right; }
.progress { height: 7px; overflow: hidden; background: #edf1f1; border-radius: 7px; }
.progress i { display: block; width: var(--progress); height: 100%; background: var(--bar, var(--teal)); border-radius: inherit; }
.funnel-summary { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.funnel-summary div { display: grid; gap: 4px; }
.funnel-summary strong { font-size: 14px; }
.funnel-summary span { color: var(--muted); font-size: 8px; }

.expo-mini { display: grid; gap: 15px; }
.expo-mini-top { display: flex; align-items: center; gap: 11px; }
.expo-mark { display: grid; width: 43px; height: 43px; place-items: center; color: white; background: var(--expo-color); border-radius: 11px; font-size: 10px; font-weight: 850; }
.expo-mini-top div:nth-child(2) { min-width: 0; flex: 1; }
.expo-mini-top strong, .expo-mini-top span { display: block; }
.expo-mini-top strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.expo-mini-top span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.days-pill { padding: 6px 8px; color: var(--blue); background: var(--blue-soft); border-radius: 7px; font-size: 8px; font-weight: 750; }
.expo-target-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }
.expo-target-label b { color: var(--ink); }
.team-overview { display: grid; gap: 14px; }
.team-overview-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; }
.team-overview-row .owner-avatar { width: 30px; height: 30px; }
.team-overview-row strong, .team-overview-row span { display: block; }
.team-overview-row strong { font-size: 9px; }
.team-overview-row span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.workload { min-width: 39px; text-align: right; }
.workload b { font-size: 10px; }
.workload small { display: block; color: var(--muted); font-size: 7px; }
.industry-queue { display: grid; gap: 12px; }
.industry-queue > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; }
.industry-queue-icon { display: grid; width: 32px; height: 32px; place-items: center; color: var(--teal-700); background: var(--teal-50); border-radius: 9px; }
.industry-queue-icon.sample { color: #b16b1c; background: var(--warning-soft); }
.industry-queue-icon.quote { color: var(--blue); background: var(--blue-soft); }
.industry-queue-icon.docs { color: var(--purple); background: var(--purple-soft); }
.industry-queue-icon.mfg { color: var(--success); background: var(--success-soft); }
.industry-queue-icon svg { width: 15px; }
.industry-queue p { display: grid; margin: 0; gap: 3px; }
.industry-queue p strong { font-size: 9px; }
.industry-queue p small { color: var(--muted); font-size: 7px; }
.industry-queue > div > b { display: grid; min-width: 26px; height: 26px; place-items: center; background: var(--bg); border-radius: 8px; font-size: 9px; }

.filter-card { margin-bottom: 15px; padding: 13px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.filter-row { display: flex; align-items: center; gap: 9px; }
.list-search { display: flex; align-items: center; min-width: 230px; flex: 1; gap: 7px; padding: 9px 11px; background: var(--bg); border: 1px solid transparent; border-radius: 8px; }
.list-search:focus-within { background: white; border-color: var(--teal); }
.list-search svg { width: 15px; color: var(--muted); }
.list-search input { width: 100%; background: transparent; border: 0; outline: 0; font-size: 10px; }
.filter-row select { min-width: 135px; height: 36px; padding: 0 28px 0 10px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; font-size: 9px; outline: 0; }
.filter-reset { width: 36px; height: 36px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 8px; }
.filter-summary { display: flex; align-items: center; margin-top: 11px; padding-top: 10px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; }
.filter-summary strong { margin: 0 3px; color: var(--ink); }
.batch-actions { display: none; align-items: center; margin-left: auto; gap: 7px; }
.batch-actions.show { display: flex; }

.lead-table-card { overflow: hidden; }
.lead-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.lead-table th { height: 42px; padding: 0 11px; color: var(--muted); background: #fafcfc; border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 750; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.lead-table td { height: 66px; padding: 0 11px; border-bottom: 1px solid var(--line); font-size: 9px; vertical-align: middle; }
.lead-table tr:last-child td { border-bottom: 0; }
.lead-table tbody tr { cursor: pointer; transition: background .15s; }
.lead-table tbody tr:hover { background: #fbfdfd; }
.lead-table th:first-child, .lead-table td:first-child { width: 42px; padding-left: 16px; }
.lead-table th:nth-child(2) { width: 21%; }
.lead-table th:nth-child(3) { width: 13%; }
.lead-table th:nth-child(4) { width: 12%; }
.lead-table th:nth-child(5) { width: 11%; }
.lead-table th:nth-child(6) { width: 12%; }
.lead-table th:nth-child(7) { width: 11%; }
.lead-table th:nth-child(8) { width: 8%; }
.check { width: 15px; height: 15px; accent-color: var(--teal); }
.score { display: flex; align-items: center; gap: 6px; }
.score-ring { --score: 50; display: grid; width: 29px; height: 29px; place-items: center; background: conic-gradient(var(--score-color, var(--teal)) calc(var(--score) * 1%), #e8eeee 0); border-radius: 50%; }
.score-ring::after { content: attr(data-score); display: grid; width: 23px; height: 23px; place-items: center; color: var(--ink); background: white; border-radius: 50%; font-size: 7px; font-weight: 800; }
.pagination { display: flex; align-items: center; min-height: 52px; padding: 0 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; }
.pagination-controls { display: flex; margin-left: auto; gap: 5px; }
.pagination-controls button { display: grid; width: 28px; height: 28px; place-items: center; background: white; border: 1px solid var(--line); border-radius: 7px; font-size: 9px; }
.pagination-controls button.active { color: white; background: var(--teal); border-color: var(--teal); }
.mobile-lead-list { display: none; }

.expo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.expo-card { overflow: hidden; }
.expo-card-banner { position: relative; display: flex; min-height: 116px; align-items: flex-end; padding: 17px; color: white; background: linear-gradient(135deg, var(--expo-color), color-mix(in srgb, var(--expo-color), #062d31 40%)); }
.expo-card-banner::before { content: ""; position: absolute; top: -45px; right: -30px; width: 150px; height: 150px; border: 25px solid rgba(255,255,255,.09); border-radius: 50%; }
.expo-card-banner div { position: relative; z-index: 1; }
.expo-card-banner span { display: block; margin-bottom: 7px; font-size: 9px; opacity: .75; }
.expo-card-banner h3 { margin: 0; font-size: 15px; }
.expo-state { position: absolute; z-index: 1; top: 14px; right: 14px; padding: 5px 8px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); border-radius: 7px; font-size: 8px; backdrop-filter: blur(6px); }
.expo-card-body { padding: 17px; }
.expo-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.expo-meta div { display: grid; gap: 4px; }
.expo-meta span { color: var(--muted); font-size: 8px; }
.expo-meta strong { font-size: 9px; }
.expo-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 17px 0; padding: 13px 0; background: var(--bg); border-radius: 9px; }
.expo-stats div { display: grid; gap: 4px; padding: 0 8px; border-right: 1px solid var(--line); text-align: center; }
.expo-stats div:last-child { border: 0; }
.expo-stats strong { font-size: 14px; }
.expo-stats span { color: var(--muted); font-size: 7px; }
.expo-card-actions { display: flex; gap: 7px; }
.expo-card-actions .button { flex: 1; }

.task-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.task-column { padding: 13px; background: #edf2f2; border-radius: 13px; }
.task-column-title { display: flex; align-items: center; margin: 0 2px 12px; font-size: 11px; }
.task-column-title span { width: 8px; height: 8px; margin-right: 7px; background: var(--task-color); border-radius: 50%; }
.task-column-title b { display: grid; min-width: 19px; height: 19px; margin-left: auto; place-items: center; color: var(--muted); background: white; border-radius: 10px; font-size: 8px; }
.task-column-list { display: grid; gap: 9px; }
.task-card { padding: 14px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 3px 12px rgba(19,49,51,.045); cursor: pointer; }
.task-card-top { display: flex; justify-content: space-between; align-items: center; }
.task-card h4 { margin: 11px 0 5px; font-size: 11px; }
.task-card > p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.task-card-bottom { display: flex; align-items: center; margin-top: 13px; padding-top: 10px; border-top: 1px solid var(--line); }
.task-card-bottom .owner-avatar { width: 24px; height: 24px; font-size: 7px; }
.task-card-bottom span { margin-left: 6px; color: var(--muted); font-size: 8px; }
.task-card-bottom time { margin-left: auto; color: var(--muted); font-size: 8px; }
.task-card-bottom time.overdue { color: var(--danger); font-weight: 700; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.rep-card { padding: 18px; }
.rep-head { display: flex; align-items: center; gap: 11px; }
.rep-head .owner-avatar { width: 44px; height: 44px; font-size: 10px; }
.rep-head div:nth-child(2) { min-width: 0; flex: 1; }
.rep-head strong, .rep-head span { display: block; }
.rep-head strong { font-size: 12px; }
.rep-head span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.rep-head .status-dot { width: 7px; height: 7px; background: #3dca8f; border-radius: 50%; }
.rep-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 17px 0; padding: 13px 0; background: var(--bg); border-radius: 9px; }
.rep-metrics div { text-align: center; border-right: 1px solid var(--line); }
.rep-metrics div:last-child { border: 0; }
.rep-metrics strong, .rep-metrics span { display: block; }
.rep-metrics strong { font-size: 14px; }
.rep-metrics span { margin-top: 4px; color: var(--muted); font-size: 7px; }
.rep-load-label { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 8px; }
.rep-load-label b { color: var(--ink); }
.rep-products { display: flex; flex-wrap: wrap; margin-top: 13px; gap: 5px; }
.rep-products span { padding: 4px 6px; color: var(--teal-700); background: var(--teal-50); border-radius: 5px; font-size: 7px; }

.analytics-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 15px; }
.chart-card { padding: 19px; }
.chart-head { display: flex; align-items: start; }
.chart-head h3 { margin: 0; font-size: 13px; }
.chart-head p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.chart-legend { display: flex; margin-left: auto; gap: 12px; color: var(--muted); font-size: 8px; }
.chart-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 4px; background: var(--legend); border-radius: 2px; }
.bar-chart { display: flex; height: 230px; align-items: flex-end; justify-content: space-around; margin-top: 22px; padding: 0 8px 23px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 45px, #eef2f2 46px); }
.bar-group { display: flex; height: 100%; align-items: flex-end; gap: 5px; }
.bar-group i { display: block; width: 18px; height: var(--height); background: var(--bar-color); border-radius: 5px 5px 0 0; }
.bar-group label { position: absolute; transform: translate(-4px, 19px); color: var(--muted); font-size: 7px; white-space: nowrap; }
.source-list { display: grid; gap: 16px; margin-top: 22px; }
.source-row { display: grid; grid-template-columns: 75px 1fr 38px; align-items: center; gap: 8px; }
.source-row span { color: var(--muted); font-size: 8px; }
.source-row strong { font-size: 9px; text-align: right; }
.source-bar { height: 7px; background: var(--bg); border-radius: 7px; }
.source-bar i { display: block; width: var(--width); height: 100%; background: var(--source-color); border-radius: inherit; }

.empty { padding: 55px 20px; color: var(--muted); text-align: center; }
.empty svg { width: 32px; height: 32px; margin-bottom: 9px; color: #a8b7b8; }
.empty strong, .empty span { display: block; }
.empty strong { color: var(--ink); font-size: 12px; }
.empty span { margin-top: 6px; font-size: 9px; }

.modal-backdrop, .drawer-backdrop, .mobile-backdrop { position: fixed; z-index: 50; inset: 0; visibility: hidden; opacity: 0; background: rgba(8,30,32,.46); transition: .2s ease; }
.modal-backdrop.open, .drawer-backdrop.open, .mobile-backdrop.open { visibility: visible; opacity: 1; }
.modal { position: fixed; z-index: 75; top: 50%; left: 50%; visibility: hidden; width: min(680px, calc(100% - 30px)); max-height: calc(100vh - 40px); overflow: auto; transform: translate(-50%, -47%) scale(.98); opacity: 0; background: white; border-radius: 16px; box-shadow: 0 25px 80px rgba(7,44,46,.25); transition: .22s ease; }
.modal-backdrop { z-index: 70; }
.modal.open { visibility: visible; transform: translate(-50%, -50%) scale(1); opacity: 1; }
.modal-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; min-height: 65px; padding: 0 20px; background: white; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 16px; }
.modal-header p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.icon-close { display: grid; width: 32px; height: 32px; margin-left: auto; place-items: center; color: var(--muted); background: var(--bg); border: 0; border-radius: 8px; }
.icon-close svg { width: 16px; }
.modal-body { padding: 20px; }
.modal-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; padding: 14px 20px; gap: 8px; background: white; border-top: 1px solid var(--line); }
.form-section-title { margin: 4px 0 13px; color: var(--teal-700); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.form-section-heading { display: flex; align-items: center; margin-top: 22px; }
.form-section-heading .form-section-title { margin: 0 0 13px; }
.form-section-heading a { display: inline-flex; align-items: center; margin: 0 0 13px auto; gap: 4px; color: var(--teal-700); font-size: 8px; font-weight: 700; text-decoration: none; }
.form-section-heading a svg { width: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 9px; font-weight: 700; }
.form-field label em { color: var(--danger); font-style: normal; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 10px 11px; color: var(--ink); background: #fbfcfc; border: 1px solid var(--line); border-radius: 8px; outline: 0; font-size: 10px; transition: .16s; }
.form-field textarea { min-height: 76px; resize: vertical; line-height: 1.5; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { background: white; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(5,170,168,.09); }
.form-field small { color: var(--muted); font-size: 8px; }
.request-field { margin: 0; padding: 0; border: 0; }
.request-field.full { grid-column: 1 / -1; }
.request-field legend { margin-bottom: 7px; font-size: 9px; font-weight: 700; }
.request-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.request-grid input { position: absolute; opacity: 0; pointer-events: none; }
.request-grid span { display: flex; min-height: 34px; align-items: center; justify-content: center; padding: 6px; color: var(--muted); background: #fbfcfc; border: 1px solid var(--line); border-radius: 7px; font-size: 8px; text-align: center; transition: .16s; }
.request-grid input:checked + span { color: var(--teal-700); background: var(--teal-50); border-color: var(--teal); box-shadow: inset 0 0 0 1px rgba(5,170,168,.08); }
.scan-banner { display: flex; align-items: center; margin-bottom: 18px; padding: 12px; gap: 11px; background: linear-gradient(90deg, var(--teal-50), #f2fbfa); border: 1px dashed #9cd9d4; border-radius: 10px; }
.scan-banner > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: var(--teal-700); background: white; border-radius: 9px; }
.scan-banner > div { flex: 1; }
.scan-banner strong, .scan-banner small { display: block; }
.scan-banner strong { font-size: 10px; }
.scan-banner small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.assign-rule { display: flex; align-items: flex-start; margin-top: 13px; padding: 11px; gap: 9px; color: #456568; background: var(--teal-50); border-radius: 8px; font-size: 8px; line-height: 1.55; }
.assign-rule svg { width: 14px; flex: 0 0 auto; color: var(--teal-700); }
.scan-loading { padding: 35px 20px; text-align: center; }
.scan-frame { position: relative; width: 250px; height: 150px; margin: 0 auto 18px; overflow: hidden; background: linear-gradient(135deg, #eaf5f4, #d9e8e7); border: 1px solid #b8cece; border-radius: 12px; }
.scan-frame::before { content: "VITAJOY  ·  BUSINESS CARD"; position: absolute; top: 30px; right: 20px; left: 20px; padding: 25px 10px; color: #719092; background: white; border-radius: 7px; font-size: 9px; letter-spacing: .08em; box-shadow: 0 7px 25px rgba(29,60,62,.1); }
.scan-frame::after { content: ""; position: absolute; right: 0; left: 0; top: 0; height: 2px; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { to { top: calc(100% - 2px); } }
.scanner-body { max-width: 560px; margin-inline: auto; }
.scanner-hero { display: flex; align-items: center; margin-bottom: 16px; gap: 11px; }
.scanner-hero > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: var(--teal-700); background: var(--teal-50); border-radius: 10px; }
.scanner-hero strong, .scanner-hero small { display: block; }
.scanner-hero strong { font-size: 11px; }
.scanner-hero small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.scanner-card-guide { position: relative; display: grid; width: min(440px, 100%); aspect-ratio: 1.66; margin: 0 auto; place-items: center; overflow: hidden; background: radial-gradient(circle at 70% 20%, rgba(141,225,216,.33), transparent 35%), linear-gradient(145deg, #e7f3f2, #cfdedd); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(7,94,96,.08); }
.scanner-card-guide::before { content: ""; position: absolute; inset: 18px; background: rgba(255,255,255,.87); border-radius: 10px; box-shadow: 0 10px 35px rgba(19,49,51,.1); transform: rotate(-1.5deg); }
.scan-corner { position: absolute; z-index: 2; width: 29px; height: 29px; border-color: var(--teal); border-style: solid; }
.scan-corner.top-left { top: 10px; left: 10px; border-width: 3px 0 0 3px; border-radius: 8px 0 0; }
.scan-corner.top-right { top: 10px; right: 10px; border-width: 3px 3px 0 0; border-radius: 0 8px 0 0; }
.scan-corner.bottom-left { bottom: 10px; left: 10px; border-width: 0 0 3px 3px; border-radius: 0 0 0 8px; }
.scan-corner.bottom-right { right: 10px; bottom: 10px; border-width: 0 3px 3px 0; border-radius: 0 0 8px; }
.card-guide-copy { position: relative; z-index: 1; display: grid; place-items: center; color: #779092; }
.card-guide-copy svg { width: 28px; height: 28px; color: var(--teal); }
.card-guide-copy strong { margin-top: 9px; font-size: 10px; letter-spacing: .15em; }
.card-guide-copy span { margin-top: 5px; font-size: 8px; }
.scanner-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; gap: 9px; }
.scanner-actions .button { min-height: 43px; }
.ocr-mode { display: flex; align-items: center; margin-top: 14px; padding: 10px 12px; color: var(--muted); background: var(--bg); border-radius: 9px; font-size: 9px; }
.ocr-mode select { min-width: 150px; height: 30px; margin-left: auto; padding: 0 8px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 7px; font-size: 9px; }
.scanner-privacy { display: flex; align-items: flex-start; margin-top: 12px; gap: 7px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.scanner-privacy svg { width: 13px; flex: 0 0 auto; color: var(--success); }
.scan-processing { padding-block: 28px 34px; text-align: center; }
.scan-preview-wrap { position: relative; width: min(440px, 100%); aspect-ratio: 1.66; margin: 0 auto 22px; overflow: hidden; background: #d8e4e3; border-radius: 13px; box-shadow: 0 12px 35px rgba(19,49,51,.12); }
.scan-preview-wrap img { width: 100%; height: 100%; object-fit: contain; }
.scan-line { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: #34d5cf; box-shadow: 0 0 12px 3px rgba(5,170,168,.42); animation: scan 1.7s ease-in-out infinite alternate; }
.scan-processing > strong { display: block; font-size: 11px; }
.scan-processing > p { margin: 8px 0 0; color: var(--muted); font-size: 8px; }
.ocr-progress-track { width: min(330px, 84%); height: 7px; margin: 13px auto 0; overflow: hidden; background: #e8eeee; border-radius: 7px; }
.ocr-progress-track i { display: block; width: 4%; height: 100%; background: linear-gradient(90deg, var(--teal), #41d1ca); border-radius: inherit; transition: width .25s ease; }
.scan-result-summary { display: grid; grid-template-columns: minmax(190px, .9fr) 1.1fr; align-items: center; margin-bottom: 21px; padding: 12px; gap: 14px; background: var(--bg); border-radius: 11px; }
.scan-result-summary img { width: 100%; aspect-ratio: 1.66; object-fit: contain; background: #dde7e7; border-radius: 8px; }
.scan-result-summary > div { display: grid; justify-items: start; gap: 5px; }
.scan-result-summary strong { font-size: 11px; }
.scan-result-summary small { color: var(--muted); font-size: 8px; }
.confidence-badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; color: var(--success); background: var(--success-soft); border-radius: 6px; font-size: 8px; font-weight: 700; }
.confidence-badge.low { color: var(--warning); background: var(--warning-soft); }
.confidence-badge svg { width: 11px; }
.raw-ocr { margin-top: 15px; padding: 10px 12px; background: #fbfcfc; border: 1px solid var(--line); border-radius: 8px; }
.raw-ocr summary { color: var(--muted); font-size: 8px; cursor: pointer; }
.raw-ocr pre { max-height: 130px; overflow: auto; margin: 10px 0 0; padding-top: 9px; color: #56676a; border-top: 1px solid var(--line); font: 9px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.scanner-error { display: grid; justify-items: center; padding-block: 30px; text-align: center; }
.scanner-error > span { display: grid; width: 46px; height: 46px; place-items: center; color: var(--danger); background: var(--danger-soft); border-radius: 50%; }
.scanner-error > strong { margin-top: 12px; font-size: 11px; }
.scanner-error > p { margin: 6px 0 20px; color: var(--muted); font-size: 8px; }
.scanner-error .form-field { width: 100%; text-align: left; }

.detail-drawer { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(480px, 100%); overflow-y: auto; transform: translateX(104%); background: white; box-shadow: -20px 0 60px rgba(7,44,46,.15); transition: .26s ease; }
.detail-drawer.open { transform: translateX(0); }
.drawer-header { position: sticky; z-index: 3; top: 0; display: flex; min-height: 64px; align-items: center; padding: 0 19px; background: white; border-bottom: 1px solid var(--line); }
.drawer-header strong { font-size: 13px; }
.drawer-header span { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.drawer-body { padding: 19px; }
.drawer-profile { display: flex; align-items: center; gap: 12px; }
.drawer-profile .lead-avatar { width: 50px; height: 50px; border-radius: 13px; font-size: 13px; }
.drawer-profile > div:nth-child(2) { min-width: 0; flex: 1; }
.drawer-profile h2 { margin: 0; font-size: 17px; }
.drawer-profile p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.drawer-score { display: grid; text-align: center; gap: 3px; }
.drawer-score strong { color: var(--teal-700); font-size: 20px; }
.drawer-score span { color: var(--muted); font-size: 7px; }
.contact-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 17px 0; }
.contact-actions button, .contact-actions a { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 6px; color: var(--teal-700); background: var(--teal-50); border: 0; border-radius: 8px; font-size: 8px; text-decoration: none; }
.contact-actions svg { width: 14px; }
.industry-quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); margin: -8px 0 17px; gap: 8px; }
.industry-quick-actions button { display: flex; min-height: 35px; align-items: center; justify-content: center; gap: 5px; color: #536568; background: white; border: 1px solid var(--line); border-radius: 8px; font-size: 8px; font-weight: 700; }
.industry-quick-actions button:hover { color: var(--teal-700); border-color: #a9d5d2; }
.industry-quick-actions svg { width: 13px; }
.drawer-section { padding: 17px 0; border-top: 1px solid var(--line); }
.drawer-section-title { display: flex; align-items: center; margin-bottom: 12px; }
.drawer-section-title h3 { margin: 0; font-size: 10px; }
.drawer-section-title button { margin-left: auto; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.info-item { display: grid; gap: 4px; }
.info-item span { color: var(--muted); font-size: 8px; }
.info-item strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
.industry-type { margin-left: auto; padding: 5px 7px; color: var(--teal-700); background: var(--teal-50); border-radius: 6px; font-size: 8px; font-weight: 700; }
.request-tags { display: flex; flex-wrap: wrap; margin-top: 13px; gap: 5px; }
.request-tags span { padding: 5px 7px; color: #6f5318; background: var(--warning-soft); border-radius: 6px; font-size: 7px; }
.request-tags small { color: var(--muted); font-size: 8px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-tags span { padding: 6px 8px; color: var(--teal-700); background: var(--teal-50); border-radius: 6px; font-size: 8px; }
.note-box { margin: 0; padding: 11px; color: #536467; background: var(--bg); border-radius: 8px; font-size: 9px; line-height: 1.6; }
.drawer-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer-controls label { color: var(--muted); font-size: 8px; }
.drawer-controls select, .drawer-controls input { width: 100%; height: 35px; margin-top: 6px; padding: 0 8px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 7px; font-size: 9px; }
.timeline { position: relative; display: grid; gap: 16px; }
.timeline::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 13px; width: 1px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 27px 1fr; gap: 10px; }
.timeline-icon { z-index: 1; display: grid; width: 27px; height: 27px; place-items: center; color: var(--teal-700); background: var(--teal-50); border: 3px solid white; border-radius: 50%; }
.timeline-icon svg { width: 11px; }
.timeline-copy p { margin: 1px 0 5px; font-size: 9px; line-height: 1.45; }
.timeline-copy span { color: var(--muted); font-size: 7px; }
.add-followup { display: grid; gap: 8px; }
.add-followup textarea { width: 100%; min-height: 67px; padding: 10px; background: #fbfcfc; border: 1px solid var(--line); border-radius: 8px; outline: 0; resize: vertical; font-size: 9px; }
.add-followup-actions { display: flex; justify-content: flex-end; gap: 7px; }
.add-followup-actions select { min-width: 110px; padding: 0 8px; background: white; border: 1px solid var(--line); border-radius: 8px; font-size: 9px; }
.followup-schedule label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; color: var(--muted); font-size: 8px; }
.followup-schedule input { height: 34px; padding: 0 8px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; font-size: 9px; }

.vip-badge { display: inline-flex; width: max-content; align-items: center; padding: 4px 7px; color: #8c6114; background: #fff1cd; border: 1px solid #f2d790; border-radius: 6px; font-size: 7px; font-weight: 850; letter-spacing: .04em; }
.profile-name-row { display: flex; align-items: center; gap: 7px; }
.profile-name-row h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-action { padding: 0; color: var(--teal-700); background: none; border: 0; font-size: 8px; font-weight: 750; }
.promote-vip { display: flex; width: 100%; min-height: 39px; align-items: center; justify-content: center; margin-bottom: 15px; gap: 7px; color: #8c6114; background: #fff9e9; border: 1px dashed #e5c373; border-radius: 9px; font-size: 8px; font-weight: 750; }
.promote-vip svg { width: 14px; }
.vip-drawer-section { margin: 0 0 3px; padding: 14px; background: linear-gradient(135deg, #fffaf0, #fff5d9); border: 1px solid #f0d99e; border-radius: 10px; }
.vip-drawer-section .drawer-section-title h3 { display: flex; align-items: center; gap: 5px; color: #8c6114; }
.vip-drawer-section .drawer-section-title svg { width: 13px; }
.vip-drawer-section > strong { font-size: 9px; }
.vip-drawer-section > p { margin: 7px 0 11px; color: #705d34; font-size: 8px; line-height: 1.55; }
.vip-drawer-section > div:last-child { display: flex; justify-content: space-between; color: #8d7b55; font-size: 7px; }
.vip-enable { display: flex; align-items: center; margin-bottom: 17px; padding: 13px; gap: 11px; background: #fff9e9; border: 1px solid #efd99f; border-radius: 10px; cursor: pointer; }
.vip-enable > input { accent-color: #bd8525; }
.vip-enable > span { display: grid; width: 35px; height: 35px; place-items: center; color: #a87218; background: #ffedbe; border-radius: 9px; }
.vip-enable svg { width: 17px; }
.vip-enable div { display: grid; gap: 4px; }
.vip-enable strong { font-size: 10px; }
.vip-enable small { color: var(--muted); font-size: 8px; }

.vip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.vip-card { position: relative; overflow: hidden; padding: 20px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.vip-card:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(19,49,51,.11); }
.vip-ribbon { position: absolute; top: 0; right: 0; padding: 7px 11px; color: white; background: #bd8525; border-radius: 0 0 0 10px; font-size: 8px; font-weight: 850; }
.vip-ribbon.level-S { background: linear-gradient(135deg, #8a5a09, #d4a63e); }
.vip-ribbon.level-A { background: #bd8525; }
.vip-ribbon.level-B { background: #8b6fc0; }
.vip-card-head { display: flex; align-items: center; padding-right: 35px; }
.vip-card-head .lead-identity { flex: 1; }
.vip-reason { min-height: 17px; margin: 14px 0; color: #77591e; font-size: 9px; font-weight: 750; }
.vip-metrics { display: grid; grid-template-columns: 1fr 1fr; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vip-metrics > div { display: grid; gap: 4px; }
.vip-metrics > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.vip-metrics span, .vip-metrics small { color: var(--muted); font-size: 7px; }
.vip-metrics strong { font-size: 13px; }
.vip-plan { min-height: 86px; margin: 13px 0; padding: 11px; background: #fffaf0; border-radius: 9px; }
.vip-plan > span { display: flex; align-items: center; gap: 5px; color: #9a6c1d; font-size: 8px; font-weight: 750; }
.vip-plan svg { width: 12px; }
.vip-plan p { margin: 7px 0 0; color: #6a6253; font-size: 8px; line-height: 1.55; }
.vip-footer { display: flex; align-items: center; justify-content: space-between; }
.vip-risk { padding: 5px 7px; color: var(--danger); background: var(--danger-soft); border-radius: 6px; font-size: 7px; }

.customer-grade-badge { display: inline-grid; min-width: 36px; height: 24px; place-items: center; padding: 0 7px; border-radius: 7px; font-size: 8px; font-weight: 900; white-space: nowrap; }
.customer-grade-badge.grade-A { color: #845b11; background: #fff0bf; border: 1px solid #ecd183; }
.customer-grade-badge.grade-B { color: #315fbf; background: var(--blue-soft); border: 1px solid #cedaff; }
.customer-grade-badge.grade-C { color: #6d48aa; background: var(--purple-soft); border: 1px solid #dfd2f4; }
.customer-grade-badge.grade-D { color: #697779; background: #edf1f1; border: 1px solid #dce3e3; }
.grade-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 15px; gap: 12px; }
.grade-kpi { display: grid; grid-template-columns: auto 1fr auto; min-height: 86px; align-items: center; padding: 15px; gap: 12px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); text-align: left; }
.grade-kpi:hover, .grade-kpi.active { border-color: var(--grade-color); box-shadow: 0 0 0 2px color-mix(in srgb, var(--grade-color), transparent 83%); }
.grade-kpi.grade-A { --grade-color:#bd8525; }
.grade-kpi.grade-B { --grade-color:#4f7ae8; }
.grade-kpi.grade-C { --grade-color:#8158c7; }
.grade-kpi.grade-D { --grade-color:#95a1a3; }
.grade-kpi > span { display: grid; width: 42px; height: 42px; place-items: center; color: white; background: var(--grade-color); border-radius: 11px; font-size: 18px; font-weight: 900; }
.grade-kpi div { display: grid; gap: 3px; }
.grade-kpi strong { font-size: 20px; }
.grade-kpi small { color: var(--muted); font-size: 8px; }
.grade-kpi > b { color: var(--grade-color); font-size: 8px; }
.scoring-standard { margin-bottom: 15px; overflow: hidden; }
.scoring-head { display: flex; min-height: 68px; align-items: center; padding: 0 19px; border-bottom: 1px solid var(--line); }
.scoring-head h3, .classification-head h3 { margin: 0; font-size: 13px; }
.scoring-head p, .classification-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.scoring-head > div:last-child { display: grid; margin-left: auto; gap: 2px; text-align: right; }
.scoring-head > div:last-child span, .scoring-head > div:last-child small { color: var(--muted); font-size: 7px; }
.scoring-head > div:last-child strong { color: var(--teal-700); font-size: 11px; }
.scoring-dimensions { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 19px; gap: 11px; }
.scoring-dimensions article { position: relative; min-height: 100px; padding: 14px; background: #fafcfc; border: 1px solid var(--line); border-radius: 10px; }
.dimension-weight { position: absolute; top: 11px; right: 11px; padding: 4px 6px; color: var(--teal-700); background: var(--teal-50); border-radius: 5px; font-size: 7px; font-weight: 850; }
.scoring-dimensions strong { display: block; padding-right: 35px; font-size: 9px; }
.scoring-dimensions p { margin: 12px 0 0; color: var(--muted); font-size: 8px; line-height: 1.65; }
.grade-strategies { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 19px 17px; gap: 10px; }
.grade-strategies > div { display: flex; align-items: flex-start; gap: 8px; }
.grade-strategies p { display: grid; margin: 0; gap: 3px; color: var(--muted); font-size: 7px; line-height: 1.4; }
.grade-strategies p strong { color: var(--ink); font-size: 8px; }
.classification-card { overflow: hidden; }
.classification-head { display: flex; min-height: 65px; align-items: center; padding: 0 19px; border-bottom: 1px solid var(--line); }
.grade-filters { display: flex; margin-left: auto; gap: 5px; }
.grade-filters button { min-width: 39px; height: 28px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 7px; font-size: 8px; }
.grade-filters button.active { color: white; background: var(--teal-700); border-color: var(--teal-700); }
.classification-row { display: grid; grid-template-columns: 38px minmax(180px, 1.25fr) 100px repeat(4, minmax(90px, 1fr)) 34px; min-height: 78px; align-items: center; padding: 0 19px; gap: 11px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .16s; }
.classification-row:hover { background: #fbfdfd; }
.classification-row:last-child { border-bottom: 0; }
.customer-score { display: grid; gap: 6px; }
.customer-score > strong { font-size: 15px; }
.customer-score > strong small { color: var(--muted); font-size: 7px; }
.customer-score > span { display: block; height: 5px; overflow: hidden; background: #e8eeee; border-radius: 5px; }
.customer-score > span i { display: block; width: var(--score-width); height: 100%; background: var(--score-color); border-radius: inherit; }
.classification-metric { min-width: 0; }
.classification-metric span, .classification-metric strong, .classification-metric small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classification-metric span { color: var(--muted); font-size: 7px; }
.classification-metric strong { margin-top: 5px; font-size: 9px; }
.classification-metric small { margin-top: 4px; color: var(--subtle); font-size: 7px; }
.current-grade-banner { display: flex; align-items: center; margin-bottom: 17px; padding: 13px; gap: 11px; background: #fafcfc; border: 1px solid var(--line); border-radius: 10px; }
.current-grade-banner > div { display: grid; gap: 4px; }
.current-grade-banner strong { font-size: 11px; }
.current-grade-banner small { color: var(--muted); font-size: 8px; }
.drawer-score-breakdown { display: grid !important; grid-template-columns: repeat(4, 1fr); margin: 11px 0 0; gap: 5px; }
.drawer-score-breakdown span { padding: 6px 3px; color: #6f5b34; background: rgba(255,255,255,.62); border-radius: 6px; font-size: 7px !important; text-align: center; }

.pool-rules-grid { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 15px; gap: 12px; }
.pool-rule-banner { display: grid; grid-template-columns: auto 1fr auto; min-height: 76px; align-items: center; padding: 14px 16px; gap: 12px; color: #285f63; background: linear-gradient(135deg, #eaf8f7, #f6fbfb); border: 1px solid #bee3e0; border-radius: 12px; }
.pool-rule-banner > span { display: grid; width: 36px; height: 36px; place-items: center; color: white; background: var(--teal-700); border-radius: 10px; font-size: 14px; font-weight: 900; }
.pool-rule-banner.warning { color: #78511c; background: linear-gradient(135deg, #fff7e8, #fffaf2); border-color: #efd6aa; }
.pool-rule-banner.warning > span { background: var(--warning); }
.pool-rule-banner strong { font-size: 10px; }
.pool-rule-banner p { margin: 5px 0 0; color: var(--muted); font-size: 8px; }
.pool-rule-banner > b { padding: 6px 8px; color: var(--teal-700); background: white; border-radius: 7px; font-size: 8px; white-space: nowrap; }
.pool-rule-banner.warning > b { color: #a6631d; }
.pool-card, .performance-alert-card { margin-top: 15px; overflow: hidden; }
.pool-head { display: flex; min-height: 62px; align-items: center; padding: 0 19px; border-bottom: 1px solid var(--line); }
.pool-head h3 { margin: 0; font-size: 13px; }
.pool-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.pool-head > span { margin-left: auto; color: var(--muted); font-size: 9px; }
.pool-row { display: grid; grid-template-columns: 38px minmax(180px,1.25fr) 1.35fr .8fr .85fr auto; min-height: 82px; align-items: center; padding: 0 19px; gap: 12px; border-bottom: 1px solid var(--line); }
.pool-row:last-child { border-bottom: 0; }
.pool-row > div span, .pool-row > div strong, .pool-row > div small { display: block; }
.pool-row > div > span { color: var(--muted); font-size: 7px; }
.pool-row > div > strong { margin-top: 5px; font-size: 9px; }
.pool-row > div > small { margin-top: 4px; color: var(--subtle); font-size: 7px; }
.performance-alert-list > article { display: grid; grid-template-columns: 38px minmax(180px,1.2fr) 1.5fr .8fr auto; min-height: 78px; align-items: center; padding: 0 19px; gap: 12px; border-bottom: 1px solid var(--line); }
.performance-alert-list > article:last-child { border-bottom: 0; }
.performance-alert-list > article > div:nth-child(3) span, .performance-alert-list > article > div:nth-child(3) strong, .performance-alert-list > article > div:nth-child(3) small { display: block; }
.performance-alert-list > article > div:nth-child(3) span { color: var(--muted); font-size: 7px; }
.performance-alert-list > article > div:nth-child(3) strong { margin-top: 5px; color: var(--danger); font-size: 9px; }
.performance-alert-list > article > div:nth-child(3) small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.empty.compact { padding: 28px 20px; }

.performance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.performance-card { overflow: hidden; }
.performance-rep-head { display: flex; min-height: 74px; align-items: center; padding: 0 16px; gap: 10px; border-bottom: 1px solid var(--line); }
.performance-rep-head .owner-avatar { width: 36px; height: 36px; }
.performance-rep-head > div:nth-child(2) { display: grid; flex: 1; gap: 4px; }
.performance-rep-head > div:nth-child(2) strong { font-size: 10px; }
.performance-rep-head > div:nth-child(2) span { color: var(--muted); font-size: 8px; }
.completion-ring { --completion:0; display: grid; width: 48px; height: 48px; place-items: center; background: radial-gradient(circle at center, white 58%, transparent 60%), conic-gradient(var(--completion-color) calc(var(--completion) * 1%), #e8eeee 0); border-radius: 50%; text-align: center; }
.completion-ring strong { font-size: 9px; }
.completion-ring small { margin-top: -9px; color: var(--muted); font-size: 5px; }
.performance-summary { display: grid; grid-template-columns: repeat(4, 1fr); padding: 13px 16px; border-bottom: 1px solid var(--line); }
.performance-summary div { display: grid; gap: 3px; text-align: center; }
.performance-summary div + div { border-left: 1px solid var(--line); }
.performance-summary strong { font-size: 12px; }
.performance-summary span { color: var(--muted); font-size: 6px; }
.performance-summary .danger strong { color: var(--danger); }
.performance-targets { display: grid; padding: 15px 16px; gap: 12px; }
.performance-targets > label { color: var(--muted); font-size: 7px; }
.performance-bar { display: grid; margin-top: 5px; gap: 5px; }
.performance-bar > div { display: flex; align-items: baseline; gap: 5px; }
.performance-bar strong { color: var(--ink); font-size: 10px; }
.performance-bar span { color: var(--muted); font-size: 7px; }
.performance-bar b { margin-left: auto; color: var(--rate-color); font-size: 8px; }
.performance-bar > span { display: block; height: 5px; overflow: hidden; background: #e8eeee; border-radius: 5px; }
.performance-bar > span i { display: block; width: var(--completion); height: 100%; background: var(--completion-color); border-radius: inherit; }
.performance-card-footer { display: flex; min-height: 42px; align-items: center; padding: 0 16px; color: var(--muted); background: #fafcfc; border-top: 1px solid var(--line); font-size: 7px; }
.performance-card-footer button { display: flex; align-items: center; margin-left: auto; gap: 4px; color: var(--teal-700); background: none; border: 0; font-size: 7px; font-weight: 750; }
.performance-card-footer svg { width: 11px; }
.performance-detail-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 15px; gap: 15px; }
.customer-tracking-list > article { display: grid; grid-template-columns: minmax(165px,1.3fr) auto .7fr 34px auto; min-height: 72px; align-items: center; padding: 0 16px; gap: 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.customer-tracking-list > article:last-child { border-bottom: 0; }
.customer-tracking-list > article > div:nth-child(2) { display: flex; flex-wrap: wrap; gap: 5px; }
.customer-tracking-list > article > div:nth-child(3) { text-align: right; }
.customer-tracking-list > article > div:nth-child(3) strong, .customer-tracking-list > article > div:nth-child(3) span { display: block; }
.customer-tracking-list > article > div:nth-child(3) strong { font-size: 9px; }
.customer-tracking-list > article > div:nth-child(3) span { margin-top: 4px; color: var(--muted); font-size: 7px; }
.tracking-result { color: var(--muted); font-size: 7px; white-space: nowrap; }
.tracking-result.won { color: var(--success); font-weight: 750; }
.tracking-result.overdue { color: var(--danger); font-weight: 750; }
.relationship-badge { padding: 4px 6px; color: #59686a; background: #edf1f1; border-radius: 5px; font-size: 6px; }
.target-table { display: grid; gap: 8px; }
.target-row { display: grid; grid-template-columns: minmax(140px,1.2fr) repeat(4,1fr); align-items: center; padding: 10px; gap: 8px; border: 1px solid var(--line); border-radius: 9px; }
.target-row .owner-chip { min-width: 0; }
.target-row label { color: var(--muted); font-size: 7px; }
.target-row input { width: 100%; height: 34px; margin-top: 5px; padding: 0 7px; border: 1px solid var(--line); border-radius: 7px; font-size: 8px; }
.pool-assignment-context, .performance-review-alert { display: flex; align-items: center; margin-bottom: 17px; padding: 13px; gap: 11px; background: var(--teal-50); border: 1px solid #c8e7e4; border-radius: 10px; }
.pool-assignment-context > span { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: var(--teal-700); background: white; border-radius: 9px; }
.pool-assignment-context svg { width: 17px; }
.pool-assignment-context div, .performance-review-alert div { display: grid; gap: 5px; }
.pool-assignment-context strong, .performance-review-alert strong { font-size: 9px; }
.pool-assignment-context small, .performance-review-alert span { color: var(--muted); font-size: 8px; }
.performance-review-alert { color: #7b541f; background: var(--warning-soft); border-color: #efd7af; }
.performance-review-alert > svg { width: 22px; flex: 0 0 auto; color: var(--warning); }
.alert-settings-intro { display: flex; align-items: center; margin-bottom: 17px; padding: 13px; gap: 11px; color: #7b541f; background: var(--warning-soft); border: 1px solid #efd7af; border-radius: 10px; }
.alert-settings-intro > svg { width: 22px; flex: 0 0 auto; color: var(--warning); }
.alert-settings-intro div { display: grid; gap: 5px; }
.alert-settings-intro strong { font-size: 9px; }
.alert-settings-intro span { color: var(--muted); font-size: 8px; }
.alert-settings-grid .form-field { padding: 12px; background: #fbfcfc; border: 1px solid var(--line); border-radius: 9px; }
.alert-settings-grid .form-field > small { display: block; margin-top: 7px; color: var(--muted); font-size: 7px; line-height: 1.5; }
.number-suffix { position: relative; margin-top: 6px; }
.number-suffix input { width: 100%; padding-right: 42px; }
.number-suffix span { position: absolute; top: 50%; right: 11px; color: var(--muted); font-size: 8px; transform: translateY(-50%); pointer-events: none; }
.rule-detail-list { display: grid; gap: 10px; }
.rule-detail-list article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 14px; gap: 12px; background: #fafcfc; border: 1px solid var(--line); border-radius: 10px; }
.rule-detail-list article > span { display: grid; width: 48px; height: 30px; place-items: center; color: white; background: var(--teal-700); border-radius: 7px; font-size: 8px; font-weight: 800; }
.rule-detail-list article:nth-child(2) > span { background: var(--warning); }
.rule-detail-list strong { font-size: 9px; }
.rule-detail-list p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.rule-detail-list b { color: var(--teal-700); font-size: 8px; white-space: nowrap; }

.order-table-card { overflow: hidden; }
.order-table-head { display: flex; min-height: 62px; align-items: center; padding: 0 19px; border-bottom: 1px solid var(--line); }
.order-table-head h3 { margin: 0; font-size: 13px; }
.order-table-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.order-table-head > span { margin-left: auto; color: var(--muted); font-size: 9px; }
.order-row { display: grid; grid-template-columns: 100px 1fr 1.4fr 92px 115px 34px; min-height: 76px; align-items: center; padding: 0 19px; gap: 13px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .16s; }
.order-row:hover { background: #fbfdfd; }
.order-row:last-child { border-bottom: 0; }
.order-row > div { min-width: 0; }
.order-row span, .order-row small { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.order-number { margin-top: 0 !important; color: var(--teal-700) !important; font-size: 10px !important; font-weight: 800; }
.order-customer strong, .order-product { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.order-amount { font-size: 11px; }
.order-status { display: inline-flex !important; width: max-content; margin-top: 0 !important; padding: 5px 7px; border-radius: 6px; font-size: 8px !important; font-weight: 750; }
.order-confirmed { color: var(--blue) !important; background: var(--blue-soft); }
.order-production { color: #a6631d !important; background: var(--warning-soft); }
.order-ready { color: var(--purple) !important; background: var(--purple-soft); }
.order-shipped { color: var(--teal-700) !important; background: var(--teal-50); }
.order-completed { color: var(--success) !important; background: var(--success-soft); }
.order-cancelled { color: var(--danger) !important; background: var(--danger-soft); }
.payment-pending { margin-left: 5px !important; color: #a6631d !important; background: var(--warning-soft); }
.payment-partial { margin-left: 5px !important; color: var(--purple) !important; background: var(--purple-soft); }
.payment-paid { margin-left: 5px !important; color: var(--success) !important; background: var(--success-soft); }
.payment-overdue { margin-left: 5px !important; color: var(--danger) !important; background: var(--danger-soft); }
.order-pill-group { display: flex; align-items: center; gap: 5px; }
.order-pill-group .payment-pending, .order-pill-group .payment-partial, .order-pill-group .payment-paid, .order-pill-group .payment-overdue { margin-left: 0 !important; }
.drawer-orders { display: grid; gap: 8px; }
.drawer-orders article { padding: 10px; background: #fbfcfc; border: 1px solid var(--line); border-radius: 8px; }
.drawer-orders article > div { display: flex; align-items: center; justify-content: space-between; }
.drawer-orders strong { font-size: 9px; }
.drawer-orders p { margin: 7px 0 5px; font-size: 8px; }
.drawer-orders > article > span { color: var(--muted); font-size: 7px; }
.no-order-state { display: flex; align-items: center; padding: 12px; gap: 10px; background: var(--bg); border-radius: 9px; }
.no-order-state > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: var(--muted); background: white; border-radius: 9px; }
.no-order-state svg { width: 16px; }
.no-order-state strong { font-size: 9px; }
.no-order-state p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }

.import-drop { display: grid; min-height: 190px; place-items: center; padding: 25px; color: var(--muted); background: #fbfcfc; border: 1px dashed #b9cbcc; border-radius: 11px; text-align: center; }
.import-drop svg { width: 30px; height: 30px; color: var(--teal); }
.import-drop strong, .import-drop span { display: block; }
.import-drop strong { margin-top: 10px; color: var(--ink); font-size: 11px; }
.import-drop span { margin-top: 6px; font-size: 8px; }
.import-drop input { display: none; }
.import-notes { margin: 15px 0 0; padding: 0 0 0 17px; color: var(--muted); font-size: 8px; line-height: 1.8; }
.assign-list { display: grid; gap: 8px; }
.assign-option { display: flex; align-items: center; padding: 11px; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.assign-option:has(input:checked) { background: var(--teal-50); border-color: var(--teal); }
.assign-option input { accent-color: var(--teal); }
.assign-option .owner-avatar { width: 31px; height: 31px; }
.assign-option div:nth-last-child(2) { flex: 1; }
.assign-option strong, .assign-option span { display: block; }
.assign-option strong { font-size: 9px; }
.assign-option span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.assign-option b { color: var(--muted); font-size: 8px; }

.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; visibility: hidden; min-width: 230px; padding: 12px 15px; transform: translateY(12px); opacity: 0; color: white; background: #123f42; border-radius: 9px; box-shadow: 0 12px 35px rgba(6,45,47,.22); font-size: 10px; transition: .2s ease; }
.toast.show { visibility: visible; transform: translateY(0); opacity: 1; }
.bottom-nav, .mobile-fab { display: none; }

@media (max-width: 1180px) {
  .global-search { width: 240px; }
  .urgent-row { grid-template-columns: minmax(180px, 1.25fr) .75fr .58fr auto; }
  .urgent-row .owner-chip { display: none; }
  .lead-table th:nth-child(3), .lead-table td:nth-child(3) { display: none; }
  .lead-table th:nth-child(2) { width: 25%; }
  .expo-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .vip-grid { grid-template-columns: repeat(2, 1fr); }
  .order-row { grid-template-columns: 92px 1fr 1.3fr 88px 110px; }
  .order-row > .owner-chip { display: none; }
  .classification-row { grid-template-columns: 38px minmax(180px, 1.2fr) 90px repeat(3, minmax(85px, 1fr)); }
  .classification-row > :nth-child(7), .classification-row > .owner-chip { display: none; }
  .performance-grid { grid-template-columns: repeat(2, 1fr); }
  .pool-row { grid-template-columns: 38px minmax(170px,1.2fr) 1fr .8fr auto; }
  .pool-row > div:nth-child(5) { display: none; }
}

@media (max-width: 960px) {
  :root { --sidebar: 220px; }
  .topbar { padding: 0 20px; }
  .page-content { padding: 22px 20px 36px; }
  .global-search { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-stack { grid-template-columns: 1fr 1fr; }
  .filter-row { flex-wrap: wrap; }
  .list-search { min-width: calc(100% - 45px); }
  .filter-row select { flex: 1; }
  .lead-table th:nth-child(6), .lead-table td:nth-child(6), .lead-table th:nth-child(8), .lead-table td:nth-child(8) { display: none; }
  .task-board { grid-template-columns: 1fr; }
  .task-column-list { grid-template-columns: repeat(2, 1fr); }
  .order-row { grid-template-columns: 90px 1fr 1.2fr 105px; }
  .order-row > .order-amount { display: none; }
  .scoring-dimensions, .grade-strategies { grid-template-columns: repeat(2, 1fr); }
  .classification-row { grid-template-columns: 38px minmax(170px, 1.3fr) 85px minmax(95px, 1fr); }
  .classification-row > :nth-child(5), .classification-row > :nth-child(6) { display: none; }
  .performance-detail-grid { grid-template-columns: 1fr; }
  .pool-rules-grid { grid-template-columns: 1fr; }
  .performance-alert-list > article { grid-template-columns: 38px minmax(170px,1.2fr) 1.3fr auto; }
  .performance-alert-list > article > .owner-chip { display: none; }
}

@media (max-width: 720px) {
  :root { --topbar: 62px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .sidebar { width: min(280px, 84vw); transform: translateX(-102%); box-shadow: 20px 0 50px rgba(7,44,46,.2); transition: .24s ease; }
  .sidebar.open { transform: translateX(0); }
  .brand { min-height: 70px; }
  .main-area { margin-left: 0; }
  .topbar { padding: 0 15px; }
  .mobile-menu { display: grid; margin-right: 10px; border: 0; }
  .topbar-title { min-width: 0; }
  .topbar-title h1 { font-size: 17px; }
  .topbar-title p { display: none; }
  .language-toggle { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .language-label { display: none; }
  .notification-button { width: 34px; height: 34px; }
  .top-avatar { display: none; }
  .page-content { padding: 18px 14px 25px; }
  .page-heading { align-items: center; margin-bottom: 16px; }
  .page-heading h2 { font-size: 19px; }
  .page-heading p { font-size: 9px; }
  .heading-actions .button.secondary { display: none; }
  .heading-actions .button.primary { min-height: 35px; padding: 0 11px; }
  .kpi-grid { gap: 9px; margin-bottom: 12px; }
  .kpi-card { min-height: 106px; padding: 14px; border-radius: 12px; }
  .kpi-top > span:first-child { font-size: 9px; }
  .kpi-icon { width: 30px; height: 30px; }
  .kpi-value { margin-top: 8px; }
  .kpi-value strong { font-size: 24px; }
  .kpi-value span { display: none; }
  .kpi-note { font-size: 8px; }
  .dashboard-grid, .dashboard-stack { gap: 12px; }
  .dashboard-stack { grid-template-columns: 1fr; }
  .card { border-radius: 12px; }
  .card-header { min-height: 52px; padding: 0 14px; }
  .urgent-row { grid-template-columns: 1fr auto; min-height: 67px; padding: 0 14px; }
  .urgent-row > *:not(.lead-identity):not(.due) { display: none; }
  .lead-avatar { width: 34px; height: 34px; }
  .mobile-fab { position: fixed; z-index: 24; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 6px; padding: 11px 14px; color: white; background: var(--teal); border: 0; border-radius: 22px; box-shadow: 0 8px 24px rgba(5,170,168,.28); font-size: 10px; font-weight: 750; }
  .mobile-fab svg { width: 16px; }
  .bottom-nav { position: fixed; z-index: 25; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); min-height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -5px 20px rgba(18,49,51,.06); backdrop-filter: blur(12px); }
  .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #8b9899; background: transparent; border: 0; font-size: 8px; }
  .bottom-nav button svg { width: 18px; }
  .bottom-nav button.active { color: var(--teal-700); }
  .bottom-nav .bottom-add { align-self: center; width: 48px; height: 48px; margin: -22px auto 0; color: white; background: var(--teal); border: 5px solid white; border-radius: 50%; box-shadow: 0 5px 15px rgba(5,170,168,.25); }
  .bottom-nav .bottom-add svg { width: 20px; }
  .filter-card { padding: 10px; }
  .filter-row select { min-width: calc(50% - 5px); }
  .filter-summary { font-size: 8px; }
  .batch-actions .button span { display: none; }
  .lead-table { display: none; }
  .mobile-lead-list { display: grid; }
  .mobile-lead-card { padding: 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
  .mobile-lead-card:last-child { border-bottom: 0; }
  .mobile-lead-head { display: flex; align-items: center; }
  .mobile-lead-head .lead-identity { flex: 1; }
  .mobile-lead-meta { display: flex; align-items: center; margin-top: 12px; gap: 7px; }
  .mobile-lead-meta .owner-chip { margin-left: auto; }
  .mobile-lead-footer { display: flex; margin-top: 12px; padding-top: 10px; color: var(--muted); border-top: 1px solid var(--line); font-size: 8px; }
  .mobile-lead-footer span:last-child { margin-left: auto; }
  .pagination { min-height: 45px; }
  .expo-grid, .team-grid { grid-template-columns: 1fr; }
  .vip-grid { grid-template-columns: 1fr; }
  .vip-card { padding: 17px; }
  .grade-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .grade-kpi { min-height: 72px; padding: 11px; gap: 8px; }
  .grade-kpi > span { width: 36px; height: 36px; font-size: 15px; }
  .grade-kpi > b { display: none; }
  .scoring-head, .classification-head { align-items: flex-start; padding: 14px; gap: 10px; }
  .scoring-head > div:last-child { flex: 0 0 auto; }
  .scoring-dimensions { grid-template-columns: 1fr; padding: 12px 14px; }
  .grade-strategies { grid-template-columns: 1fr; padding: 0 14px 14px; }
  .classification-head { display: grid; }
  .grade-filters { margin-left: 0; }
  .classification-row { grid-template-columns: 34px 1fr auto; min-height: 0; padding: 14px; gap: 10px; }
  .classification-row > .customer-grade-badge { grid-column: 1; grid-row: 1; }
  .classification-row > .lead-identity { grid-column: 2; grid-row: 1; }
  .classification-row > .customer-score { grid-column: 3; grid-row: 1; min-width: 70px; text-align: right; }
  .classification-row > .classification-metric:nth-child(4) { display: grid; grid-column: 1 / -1; grid-row: 2; grid-template-columns: auto auto 1fr; align-items: center; padding-top: 10px; gap: 8px; border-top: 1px solid var(--line); }
  .classification-row > .classification-metric:nth-child(4) strong, .classification-row > .classification-metric:nth-child(4) small { margin: 0; }
  .classification-row > :nth-child(n+5) { display: none; }
  .performance-grid { grid-template-columns: 1fr; }
  .performance-rep-head { min-height: 68px; }
  .pool-rule-banner { grid-template-columns: auto 1fr; }
  .pool-rule-banner > b { display: none; }
  .pool-head { padding: 12px 14px; }
  .pool-row { grid-template-columns: 34px 1fr auto; min-height: 0; padding: 14px; }
  .pool-row > .customer-grade-badge { grid-column: 1; grid-row: 1; }
  .pool-row > .lead-identity { grid-column: 2; grid-row: 1; }
  .pool-row > div:nth-child(3) { grid-column: 1 / -1; grid-row: 2; padding-top: 9px; border-top: 1px solid var(--line); }
  .pool-row > div:nth-child(4), .pool-row > div:nth-child(5) { display: none; }
  .pool-row > button { grid-column: 3; grid-row: 1; }
  .performance-alert-list > article { grid-template-columns: 34px 1fr auto; min-height: 0; padding: 14px; }
  .performance-alert-list > article > div:nth-child(3) { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid var(--line); }
  .customer-tracking-list > article { grid-template-columns: 1fr auto; padding: 12px 14px; }
  .customer-tracking-list > article > div:nth-child(3), .customer-tracking-list > article > .owner-chip { display: none; }
  .target-row { grid-template-columns: 1fr 1fr; }
  .target-row > .owner-chip { grid-column: 1 / -1; }
  .order-table-head { min-height: 55px; padding: 0 14px; }
  .order-row { grid-template-columns: 1fr auto; min-height: 0; padding: 14px; gap: 8px 12px; }
  .order-row > div:first-child { grid-column: 1; grid-row: 1; }
  .order-row > .order-customer { grid-column: 1; grid-row: 2; }
  .order-row > div:nth-child(3) { grid-column: 1 / -1; grid-row: 3; padding-top: 8px; border-top: 1px solid var(--line); }
  .order-row > div:nth-child(5) { grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: end; }
  .industry-quick-actions { grid-template-columns: repeat(2, 1fr); }
  .task-column-list { grid-template-columns: 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .bar-chart { height: 190px; }
  .bar-group i { width: 14px; }
  .modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: calc(94vh - env(safe-area-inset-bottom)); transform: translateY(105%); border-radius: 18px 18px 0 0; }
  .modal.open { transform: translateY(0); }
  .modal-header { min-height: 58px; }
  .modal-body { padding: 17px; }
  .modal-footer { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .request-field.full { grid-column: auto; }
  .request-grid { grid-template-columns: repeat(2, 1fr); }
  .scanner-body { max-width: none; }
  .scanner-card-guide { width: 100%; }
  .scanner-actions { grid-template-columns: 1fr; }
  .scan-result-summary { grid-template-columns: 1fr; }
  .scan-result-summary img { max-height: 170px; }
  .detail-drawer { padding-bottom: env(safe-area-inset-bottom); }
  .drawer-header { min-height: 58px; }
  .drawer-body { padding: 16px; }
  .toast { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); left: 14px; min-width: 0; text-align: center; }
}

@media (max-width: 390px) {
  .kpi-card { padding: 12px; }
  .kpi-value strong { font-size: 22px; }
  .heading-actions .button.primary span { display: none; }
  .filter-row select { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* VITAJOY Global Executive visual system — selected concept 1 */
:root {
  --teal: #009f9c;
  --teal-700: #007f82;
  --teal-900: #075e60;
  --teal-50: #eaf8f7;
  --ink: #142226;
  --muted: #66767a;
  --subtle: #94a0a2;
  --line: #dde6e7;
  --bg: #f5f8f8;
  --sidebar: 232px;
  --topbar: 72px;
  --radius: 7px;
  --shadow: 0 1px 2px rgba(18, 44, 47, .035);
}

body { background: var(--bg); }
.sidebar { color: rgba(255,255,255,.84); background: linear-gradient(180deg, #00aaa6 0%, #008f91 58%, #087477 100%); }
.brand { min-height: 122px; align-items: flex-start; flex-direction: column; justify-content: center; padding: 20px 24px 18px; gap: 8px; background: #fff; border: 0; text-decoration: none; }
.brand img { width: 148px; max-height: 55px; padding: 0; object-fit: contain; object-position: left center; background: transparent; border-radius: 0; }
.brand div { gap: 3px; }
.brand strong { color: #263438; font-size: 9px; letter-spacing: .18em; }
.brand span { color: #7b898c; font-size: 7px; letter-spacing: .08em; }
.side-nav { gap: 2px; padding: 18px 13px; }
.side-nav button { min-height: 45px; padding: 0 15px; color: rgba(255,255,255,.82); border-radius: 5px; font-size: 12px; font-weight: 600; }
.side-nav button:hover { background: rgba(255,255,255,.1); }
.side-nav button.active { color: #fff; background: rgba(0, 91, 93, .24); box-shadow: inset 3px 0 0 #fff; }
.side-nav button svg { width: 17px; }
.side-nav button b, .side-nav button i { color: #006d70; background: #d7f5f1; }
.side-nav button i { color: #fff; background: #d96359; }
.sidebar-bottom { padding: 14px 13px; }

.main-area { background: var(--bg); }
.topbar { padding: 0 28px; background: rgba(255,255,255,.97); border-color: #dfe7e8; backdrop-filter: blur(18px); }
.topbar-title h1 { font-size: 18px; font-weight: 720; }
.topbar-title p { color: #849194; font-size: 9px; }
.global-search { width: 330px; background: #f4f7f7; border-color: #edf1f1; border-radius: 5px; }
.notification-button, .mobile-menu { border-radius: 5px; }
.top-avatar { border-radius: 50%; background: #009f9c; }
.page-content { max-width: 1640px; padding: 24px 28px 44px; }

.dashboard-hero { position: relative; display: grid; min-height: 178px; overflow: hidden; grid-template-columns: minmax(460px, 1.1fr) minmax(360px, .9fr); margin-bottom: 0; background: #fff; border: 1px solid var(--line); border-radius: 7px 7px 0 0; }
.dashboard-hero-copy { position: relative; z-index: 2; display: flex; align-items: flex-start; flex-direction: column; justify-content: center; padding: 26px 34px; }
.hero-eyebrow { color: #008d8c; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.dashboard-hero h2 { margin: 7px 0 0; color: #101a1d; font-size: clamp(30px, 3vw, 44px); font-weight: 760; letter-spacing: -.045em; line-height: 1; }
.dashboard-hero p { margin: 11px 0 0; color: var(--muted); font-size: 11px; }
.hero-actions { display: flex; margin-top: 18px; gap: 8px; }
.hero-actions .button { min-height: 34px; border-radius: 4px; font-size: 10px; }
.hero-secondary { color: #165052; background: #fff; border: 1px solid #b9d0d0; }
.dashboard-hero-visual { position: relative; background: linear-gradient(90deg, rgba(0,145,145,.18), rgba(0,91,94,.34)), url("assets/brand-reference-manufacturing.jpg") center/cover no-repeat; filter: saturate(.86) contrast(1.03); }
.dashboard-hero-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.08) 28%, rgba(0,127,130,.08) 100%); }
.dashboard-scope { position: absolute; z-index: 3; top: 15px; right: 16px; display: flex; align-items: center; gap: 7px; }
.dashboard-scope span { display: inline-flex; min-height: 30px; align-items: center; gap: 6px; padding: 0 10px; color: #fff; background: rgba(5,65,67,.5); border: 1px solid rgba(255,255,255,.3); border-radius: 4px; font-size: 8px; font-weight: 700; backdrop-filter: blur(8px); }
.dashboard-scope svg { width: 13px; }
.dashboard-scope b { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; color: #006f70; background: #d9fffa; border-radius: 3px; font-size: 7px; letter-spacing: .12em; }

.dashboard-hero + .kpi-grid { gap: 0; margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 7px 7px; }
.dashboard-hero + .kpi-grid .kpi-card { min-height: 132px; padding: 20px 24px; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.dashboard-hero + .kpi-grid .kpi-card:last-child { border-right: 0; }
.kpi-card::after { display: none; }
.kpi-top { font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.kpi-icon { width: 36px; height: 36px; border-radius: 50%; }
.kpi-value { margin-top: 10px; }
.kpi-value strong { font-size: 27px; font-weight: 750; }
.kpi-value span { font-size: 8px; }
.kpi-note { margin-top: 7px; font-size: 8px; }

.card, .filter-card { border-radius: 7px; box-shadow: var(--shadow); }
.card-header { min-height: 60px; }
.card-header h3 { color: #172428; font-size: 12px; font-weight: 760; }
.card-header p { font-size: 8px; }
.button { border-radius: 5px; }
.button.primary { background: #009f9c; border-color: #009f9c; box-shadow: none; }
.button.primary:hover { background: #007f82; }
.lead-avatar { border-radius: 5px; }
.row-arrow, .filter-reset, .pagination-controls button { border-radius: 4px; }
.funnel-row .progress, .progress { border-radius: 1px; }
.funnel-row .progress i, .progress i { border-radius: 1px; }

@media (max-width: 960px) {
  .dashboard-hero { grid-template-columns: 1.05fr .75fr; }
  .dashboard-hero-copy { padding: 24px; }
  .dashboard-hero + .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-hero + .kpi-grid .kpi-card:nth-child(2) { border-right: 0; }
  .dashboard-hero + .kpi-grid .kpi-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  :root { --topbar: 60px; }
  .brand { min-height: 108px; }
  .page-content { padding: 12px 12px 24px; }
  .topbar { padding: 0 12px; }
  .dashboard-hero { display: flex; min-height: 250px; flex-direction: column; border-radius: 6px 6px 0 0; }
  .dashboard-hero-visual { order: 1; min-height: 82px; background-position: center 47%; }
  .dashboard-hero-visual::before { background: linear-gradient(180deg, rgba(0,111,113,.08), rgba(0,95,97,.34)); }
  .dashboard-hero-copy { order: 2; padding: 18px; }
  .dashboard-hero h2 { font-size: 28px; }
  .dashboard-hero p { margin-top: 8px; font-size: 9px; }
  .hero-actions { width: 100%; margin-top: 14px; }
  .hero-actions .button { flex: 1; }
  .dashboard-scope { top: 10px; right: 10px; }
  .dashboard-scope span { min-height: 26px; padding: 0 7px; background: rgba(3,67,69,.58); }
  .dashboard-scope span:nth-child(2), .dashboard-scope b { display: none; }
  .dashboard-hero + .kpi-grid { gap: 0; margin-bottom: 12px; }
  .dashboard-hero + .kpi-grid .kpi-card { min-height: 112px; padding: 14px; border-radius: 0; }
  .dashboard-hero + .kpi-grid .kpi-card:nth-child(2) { border-right: 0; }
  .dashboard-hero + .kpi-grid .kpi-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .kpi-top { font-size: 7px; }
  .kpi-icon { width: 30px; height: 30px; }
  .kpi-value strong { font-size: 21px; }
  .kpi-note { line-height: 1.4; }
  .mobile-fab { right: 14px; padding: 10px 13px; background: #009f9c; border-radius: 5px; box-shadow: 0 7px 20px rgba(0,127,130,.22); }
  .bottom-nav .bottom-add { background: #009f9c; }
}

/* Intelligent operations center */
.intelligence-kpis .kpi-card { min-height: 122px; }
.intelligence-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .75fr); gap: 15px; }
.intelligence-lower-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 15px; gap: 15px; }
.forecast-card, .cadence-card, .quality-card, .duplicate-card { overflow: hidden; }
.live-indicator, .cadence-count, .quality-card .card-header > span, .duplicate-card .card-header > span { display: inline-flex; align-items: center; margin-left: auto; color: var(--muted); font-size: 7px; font-weight: 750; }
.live-indicator { gap: 6px; color: var(--teal-700); letter-spacing: .08em; }
.live-indicator i { width: 6px; height: 6px; background: #28bf96; border-radius: 50%; box-shadow: 0 0 0 4px rgba(40,191,150,.1); }
.cadence-count { padding: 5px 8px; color: #9a641c; background: var(--warning-soft); border-radius: 4px; }
.forecast-head, .forecast-list > article { display: grid; grid-template-columns: minmax(185px, 1.45fr) .65fr .9fr .72fr .72fr .72fr; align-items: center; padding: 0 16px; gap: 10px; }
.forecast-head { min-height: 35px; color: var(--muted); background: #fafcfc; border-bottom: 1px solid var(--line); font-size: 7px; font-weight: 760; text-transform: uppercase; letter-spacing: .035em; }
.forecast-list > article { min-height: 68px; border-bottom: 1px solid var(--line); cursor: pointer; }
.forecast-list > article:last-child { border-bottom: 0; }
.forecast-list > article:hover { background: #fbfdfd; }
.forecast-list > article > strong { font-size: 9px; }
.weighted-value { color: var(--teal-700); }
.probability-cell { display: flex; align-items: center; gap: 7px; }
.probability-cell > span { display: block; min-width: 46px; height: 5px; flex: 1; overflow: hidden; background: #e7eeee; border-radius: 1px; }
.probability-cell i { display: block; width: var(--probability); height: 100%; background: linear-gradient(90deg, #57cbc5, #008f90); }
.probability-cell strong { min-width: 25px; font-size: 8px; }
.forecast-risk { display: inline-flex; width: max-content; padding: 5px 7px; color: var(--danger); background: var(--danger-soft); border-radius: 4px; font-size: 7px; font-weight: 730; }
.forecast-risk.normal { color: var(--success); background: var(--success-soft); }

.cadence-list > article { display: grid; grid-template-columns: 62px minmax(130px,1fr) 30px 72px; min-height: 72px; align-items: center; padding: 0 14px; gap: 9px; border-bottom: 1px solid var(--line); cursor: pointer; }
.cadence-list > article:last-child { border-bottom: 0; }
.cadence-list > article:hover { background: #fbfdfd; }
.cadence-state { width: max-content; padding: 5px 7px; color: var(--teal-700); background: var(--teal-50); border-radius: 4px; font-size: 7px; font-weight: 760; }
.cadence-state.due { color: #a6631d; background: var(--warning-soft); }
.cadence-list > article > div:nth-child(2) { min-width: 0; }
.cadence-list > article > div:nth-child(2) strong, .cadence-list > article > div:nth-child(2) span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cadence-list > article > div:nth-child(2) strong { font-size: 9px; }
.cadence-list > article > div:nth-child(2) span { margin-top: 5px; color: var(--muted); font-size: 7px; }
.cadence-list time { color: var(--muted); font-size: 7px; text-align: right; }

.quality-list > article { display: grid; grid-template-columns: minmax(180px,1fr) 1.15fr 30px; min-height: 70px; align-items: center; padding: 0 16px; gap: 11px; border-bottom: 1px solid var(--line); cursor: pointer; }
.quality-list > article:last-child { border-bottom: 0; }
.quality-list > article:hover { background: #fbfdfd; }
.quality-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.quality-tags span { padding: 5px 7px; color: #9a641c; background: var(--warning-soft); border-radius: 4px; font-size: 7px; }
.duplicate-list > article { display: grid; grid-template-columns: 1fr 42px auto; min-height: 70px; align-items: center; padding: 0 16px; gap: 10px; border-bottom: 1px solid var(--line); }
.duplicate-list > article:last-child { border-bottom: 0; }
.duplicate-list > article > div { min-width: 0; }
.duplicate-list strong, .duplicate-list span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duplicate-list strong { font-size: 9px; }
.duplicate-list span { margin-top: 5px; color: var(--muted); font-size: 7px; }
.duplicate-list b { color: var(--teal-700); font-size: 9px; text-align: center; }

.merge-warning { display: flex; align-items: center; margin-bottom: 14px; padding: 13px; gap: 10px; color: #7a521d; background: var(--warning-soft); border: 1px solid #efd7af; border-radius: 7px; }
.merge-warning > svg { width: 21px; flex: 0 0 auto; color: var(--warning); }
.merge-warning div { display: grid; gap: 4px; }
.merge-warning strong { font-size: 9px; }
.merge-warning span { color: var(--muted); font-size: 8px; line-height: 1.5; }
.merge-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.merge-options > label { position: relative; display: block; cursor: pointer; }
.merge-options input { position: absolute; top: 14px; right: 14px; accent-color: var(--teal); }
.merge-option-copy { min-height: 122px; padding: 14px; background: #fafcfc; border: 1px solid var(--line); border-radius: 7px; }
.merge-options input:checked + .merge-option-copy { background: var(--teal-50); border-color: var(--teal); box-shadow: 0 0 0 2px rgba(0,159,156,.08); }
.merge-option-copy .lead-identity { padding-right: 28px; }
.merge-option-copy > small, .merge-option-copy > b { display: block; }
.merge-option-copy > small { margin-top: 13px; color: var(--muted); font-size: 7px; }
.merge-option-copy > b { margin-top: 10px; color: var(--teal-700); font-size: 8px; }

@media (max-width: 1180px) {
  .intelligence-grid { grid-template-columns: 1fr; }
  .cadence-list { display: grid; grid-template-columns: 1fr 1fr; }
  .cadence-list > article:nth-child(odd) { border-right: 1px solid var(--line); }
}

@media (max-width: 960px) {
  .intelligence-lower-grid { grid-template-columns: 1fr; }
  .forecast-head, .forecast-list > article { grid-template-columns: minmax(180px,1.4fr) .65fr .8fr .7fr .7fr; }
  .forecast-head > :nth-child(4), .forecast-list > article > :nth-child(4) { display: none; }
}

@media (max-width: 720px) {
  .intelligence-kpis { border: 1px solid var(--line); border-radius: 6px; }
  .intelligence-grid, .intelligence-lower-grid { gap: 12px; }
  .forecast-head { display: none; }
  .forecast-list > article { grid-template-columns: 1fr auto; min-height: 0; padding: 13px; gap: 10px; }
  .forecast-list > article > .lead-identity { grid-column: 1; grid-row: 1; }
  .forecast-list > article > .status { grid-column: 2; grid-row: 1; }
  .forecast-list > article > .probability-cell { grid-column: 1 / -1; grid-row: 2; padding-top: 9px; border-top: 1px solid var(--line); }
  .forecast-list > article > strong:nth-of-type(1) { display: none; }
  .forecast-list > article > .weighted-value { grid-column: 1; grid-row: 3; }
  .forecast-list > article > .weighted-value::before { content: "加权预测 "; color: var(--muted); font-size: 7px; font-weight: 500; }
  .forecast-list > article > .forecast-risk { grid-column: 2; grid-row: 3; justify-self: end; }
  .cadence-list { grid-template-columns: 1fr; }
  .cadence-list > article { grid-template-columns: 58px 1fr 68px; min-height: 68px; }
  .cadence-list > article:nth-child(odd) { border-right: 0; }
  .cadence-list .owner-chip { display: none; }
  .quality-list > article { grid-template-columns: 1fr auto; min-height: 0; padding: 13px; }
  .quality-list .quality-tags { grid-column: 1 / -1; grid-row: 2; padding-top: 9px; border-top: 1px solid var(--line); }
  .duplicate-list > article { grid-template-columns: 1fr auto; min-height: 0; padding: 13px; }
  .duplicate-list > article > b { grid-column: 2; grid-row: 1; }
  .duplicate-list > article > button { grid-column: 1 / -1; grid-row: 2; }
  .merge-options { grid-template-columns: 1fr; }
}

/* Converted customer and transaction analytics */
.analytics-access-banner { display: grid; min-height: 76px; grid-template-columns: 38px 1fr auto; align-items: center; margin-bottom: 12px; padding: 14px 18px; gap: 12px; border-color: #b9e0de; background: linear-gradient(92deg, #f3fbfa, #fff); }
.analytics-access-icon { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--teal); border-radius: 50%; }
.analytics-access-icon svg { width: 18px; }
.analytics-access-banner > div:nth-child(2) strong { font-size: 10px; }
.analytics-access-banner > div:nth-child(2) p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.analytics-access-banner > span { padding: 6px 9px; color: var(--teal-700); background: #dff5f2; border-radius: 4px; font-size: 8px; font-weight: 760; }
.analytics-scope-tabs { display: inline-flex; margin-bottom: 14px; padding: 3px; gap: 2px; background: #e9efef; border-radius: 6px; }
.analytics-scope-tabs button { min-height: 31px; padding: 0 13px; color: var(--muted); background: transparent; border: 0; border-radius: 4px; font-size: 8px; font-weight: 720; cursor: pointer; }
.analytics-scope-tabs button.active { color: var(--teal-700); background: #fff; box-shadow: 0 1px 4px rgba(18,44,47,.1); }
.converted-kpi-grid { margin-bottom: 15px; }
.converted-analytics-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); margin-bottom: 15px; gap: 15px; }
.transaction-trend-card, .rep-transaction-card, .converted-customer-table-card { overflow: hidden; }
.transaction-trend-card .card-header > span, .rep-transaction-card .card-header > span, .converted-customer-table-card .card-header > span { margin-left: auto; color: var(--teal-700); font-size: 8px; font-weight: 760; }
.transaction-trend-chart { display: grid; height: 238px; grid-template-columns: repeat(7, 1fr); align-items: end; padding: 24px 18px 18px; gap: 12px; background: repeating-linear-gradient(to top, transparent 0 49px, #eef2f2 50px); border-top: 1px solid var(--line); }
.transaction-trend-chart > div { display: grid; height: 100%; grid-template-rows: 25px 1fr 18px; align-items: end; text-align: center; }
.transaction-trend-chart span { align-self: start; color: var(--muted); font-size: 7px; white-space: nowrap; }
.transaction-trend-chart i { display: block; width: min(36px, 74%); height: var(--height); min-height: 3px; justify-self: center; background: linear-gradient(180deg, #29bbb6, #008b8d); border-radius: 4px 4px 1px 1px; box-shadow: 0 6px 15px rgba(0,143,143,.12); }
.transaction-trend-chart label { color: var(--muted); font-size: 7px; }
.rep-transaction-list > article { display: grid; min-height: 58px; grid-template-columns: 20px 30px 1fr auto; align-items: center; padding: 0 15px; gap: 9px; border-top: 1px solid var(--line); }
.rep-transaction-list > article > b { color: #9aa7a9; font-size: 8px; text-align: center; }
.rep-transaction-list .owner-avatar { width: 30px; height: 30px; }
.rep-transaction-list > article > div { min-width: 0; }
.rep-transaction-list > article > div strong, .rep-transaction-list > article > div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-transaction-list > article > div strong { font-size: 9px; }
.rep-transaction-list > article > div small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.rep-transaction-list > article > div i { display: block; height: 3px; margin-top: 6px; overflow: hidden; background: #e8eeee; border-radius: 1px; }
.rep-transaction-list > article > div em { display: block; width: var(--width); height: 100%; background: var(--teal); }
.rep-transaction-list > article > strong { color: var(--ink); font-size: 9px; text-align: right; }
.converted-table-head, .converted-customer-list > article { display: grid; grid-template-columns: minmax(145px,1.25fr) 105px minmax(165px,1.35fr) 52px 92px 90px 88px 70px; align-items: center; padding: 0 16px; gap: 9px; }
.converted-table-head { min-height: 36px; color: var(--muted); background: #fafcfc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 7px; font-weight: 760; letter-spacing: .03em; }
.converted-table-head > span:first-child { grid-column: span 2; }
.converted-customer-list > article { min-height: 72px; border-bottom: 1px solid var(--line); cursor: pointer; }
.converted-customer-list > article:hover { background: #fbfdfd; }
.converted-customer-list > article > div:nth-child(3) { min-width: 0; }
.converted-customer-list > article > div:nth-child(3) strong, .converted-customer-list > article > div:nth-child(3) span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.converted-customer-list > article > div:nth-child(3) strong { font-size: 9px; }
.converted-customer-list > article > div:nth-child(3) span { margin-top: 5px; color: var(--muted); font-size: 7px; }
.converted-customer-list > article > strong { font-size: 9px; }
.converted-customer-list > article > strong small { display: block; margin-top: 4px; color: var(--muted); font-size: 7px; font-weight: 550; }
.converted-customer-list .receivable { color: #b36b20; }
.transaction-payment-state { display: inline-flex; width: max-content; padding: 5px 7px; border-radius: 4px; font-size: 7px; font-weight: 750; }
.transaction-payment-state.paid { color: var(--success); background: var(--success-soft); }
.transaction-payment-state.pending { color: #a6631d; background: var(--warning-soft); }
.transaction-payment-state.overdue { color: var(--danger); background: var(--danger-soft); }
.transaction-permission-note { display: flex; align-items: center; min-height: 50px; padding: 10px 16px; gap: 9px; color: var(--muted); background: #f8fbfb; font-size: 8px; line-height: 1.5; }
.transaction-permission-note svg { width: 17px; flex: 0 0 auto; color: var(--teal); }
.transaction-permission-note strong { color: var(--ink); }
.analytics-section-divider { display: flex; align-items: center; margin: 25px 0 14px; }
.analytics-section-divider::after { content: ""; height: 1px; flex: 1; margin-left: 16px; background: var(--line); }
.analytics-section-divider h2 { margin: 0; font-size: 15px; }
.analytics-section-divider p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }

@media (max-width: 1180px) {
  .converted-analytics-grid { grid-template-columns: 1fr; }
  .rep-transaction-list { display: grid; grid-template-columns: 1fr 1fr; }
  .rep-transaction-list > article:nth-child(odd) { border-right: 1px solid var(--line); }
  .converted-table-head, .converted-customer-list > article { grid-template-columns: minmax(140px,1.15fr) 96px minmax(150px,1.25fr) 48px 86px 82px 64px; }
  .converted-table-head > span:nth-child(6), .converted-customer-list > article > :nth-child(7) { display: none; }
}

@media (max-width: 720px) {
  .analytics-access-banner { grid-template-columns: 34px 1fr; padding: 12px; }
  .analytics-access-icon { width: 34px; height: 34px; }
  .analytics-access-banner > span { display: none; }
  .analytics-scope-tabs { display: grid; grid-template-columns: repeat(2,1fr); width: 100%; }
  .analytics-scope-tabs button { min-height: 34px; }
  .converted-analytics-grid { gap: 12px; }
  .transaction-trend-chart { height: 205px; padding: 18px 9px 14px; gap: 5px; }
  .transaction-trend-chart span { font-size: 6px; transform: rotate(-24deg); transform-origin: center; }
  .rep-transaction-list { grid-template-columns: 1fr; }
  .rep-transaction-list > article:nth-child(odd) { border-right: 0; }
  .converted-table-head { display: none; }
  .converted-customer-list > article { grid-template-columns: 1fr auto; min-height: 0; padding: 13px; gap: 10px; }
  .converted-customer-list > article > .lead-identity { grid-column: 1; grid-row: 1; }
  .converted-customer-list > article > div:nth-child(2) { grid-column: 2; grid-row: 1; }
  .converted-customer-list > article > div:nth-child(3) { grid-column: 1 / -1; grid-row: 2; padding-top: 9px; border-top: 1px solid var(--line); }
  .converted-customer-list > article > strong:nth-child(4) { display: none; }
  .converted-customer-list > article > strong:nth-child(5) { grid-column: 1; grid-row: 3; }
  .converted-customer-list > article > strong:nth-child(5)::before { content: "交易额 "; color: var(--muted); font-size: 7px; font-weight: 500; }
  .converted-customer-list > article > strong:nth-child(6), .converted-customer-list > article > strong:nth-child(7) { display: none; }
  .converted-customer-list > article > .transaction-payment-state { grid-column: 2; grid-row: 3; justify-self: end; }
  .transaction-permission-note { align-items: flex-start; }
}

/* V17 authentication, converted-customer operations, admin and installable mobile app */
[hidden] { display: none !important; }
html[data-auth="guest"] .app-shell,
html[data-auth="guest"] .bottom-nav,
html[data-auth="guest"] .mobile-fab,
html[data-auth="guest"] .modal,
html[data-auth="guest"] .modal-backdrop,
html[data-auth="guest"] .detail-drawer,
html[data-auth="guest"] .drawer-backdrop { display: none !important; }
html[data-auth="authenticated"] .auth-screen { display: none; }

.auth-screen { position: fixed; z-index: 200; inset: 0; display: grid; grid-template-columns: minmax(480px, 1.15fr) minmax(430px, .85fr); min-height: 100vh; overflow: auto; background: #fff; }
.auth-brand-panel { position: relative; display: flex; min-height: 100vh; flex-direction: column; overflow: hidden; padding: 42px 54px 36px; color: #fff; background: linear-gradient(135deg, rgba(4,63,66,.98), rgba(0,132,132,.91)), radial-gradient(circle at 72% 18%, #25c1b5 0, transparent 42%); }
.auth-brand-panel::before { content: ""; position: absolute; width: 660px; height: 660px; right: -290px; bottom: -300px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 85px rgba(255,255,255,.035), 0 0 0 170px rgba(255,255,255,.025); }
.auth-brand-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 0 65%, rgba(255,255,255,.04) 65% 66%, transparent 66%); }
.auth-brand-top, .auth-brand-copy, .auth-brand-footer { position: relative; z-index: 1; }
.auth-brand-top { display: flex; align-items: center; gap: 15px; }
.auth-brand-top img { width: 150px; height: auto; filter: brightness(0) invert(1); }
.auth-brand-top span { padding-left: 15px; color: rgba(255,255,255,.52); border-left: 1px solid rgba(255,255,255,.25); font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.auth-brand-copy { max-width: 620px; margin: auto 0; padding: 80px 0; }
.auth-eyebrow { display: inline-flex; padding: 8px 12px; color: #bff4ee; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.13); border-radius: 3px; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.auth-brand-copy h1 { margin: 25px 0 20px; font-size: clamp(38px, 4.4vw, 68px); line-height: 1.12; letter-spacing: -.045em; }
.auth-brand-copy p { max-width: 540px; margin: 0; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.9; }
.auth-feature-row { display: flex; margin-top: 35px; gap: 10px; }
.auth-feature-row span { padding: 9px 13px; color: rgba(255,255,255,.78); background: rgba(255,255,255,.075); border-radius: 3px; font-size: 9px; font-weight: 720; }
.auth-brand-footer { display: flex; align-items: center; gap: 22px; color: rgba(255,255,255,.4); font-size: 8px; font-weight: 760; letter-spacing: .08em; }
.auth-brand-footer b { color: #8ee6dc; }
.auth-form-panel { display: grid; min-height: 100vh; place-items: center; padding: 50px clamp(35px, 6vw, 90px); background: #fbfdfd; }
.auth-form-wrap { width: min(390px, 100%); }
.auth-mobile-logo { display: none; }
.auth-secure-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--teal-700); font-size: 9px; font-weight: 760; }
.auth-secure-badge svg { width: 14px; }
.auth-welcome h2 { margin: 13px 0 9px; color: #102d30; font-size: 30px; letter-spacing: -.035em; }
.auth-welcome p { margin: 0 0 32px; color: var(--muted); font-size: 11px; }
.login-form { display: grid; gap: 17px; }
.login-form > label > span { display: block; margin-bottom: 8px; color: #32494c; font-size: 10px; font-weight: 720; }
.login-input { display: flex; height: 48px; align-items: center; padding: 0 13px; gap: 10px; background: #fff; border: 1px solid #dce5e5; border-radius: 5px; transition: .18s ease; }
.login-input:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,159,156,.09); }
.login-input > svg { width: 17px; flex: 0 0 auto; color: #8a999a; }
.login-input input { min-width: 0; flex: 1; color: var(--ink); background: transparent; border: 0; outline: 0; font: inherit; font-size: 12px; }
.login-input button { display: grid; width: 30px; height: 30px; place-items: center; color: #849294; background: transparent; border: 0; cursor: pointer; }
.login-input button svg { width: 16px; }
.login-options { display: flex; align-items: center; margin-top: -3px; }
.login-options label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.login-options input { accent-color: var(--teal); }
.login-options button { margin-left: auto; padding: 0; color: var(--teal-700); background: transparent; border: 0; font-size: 9px; font-weight: 720; cursor: pointer; }
.login-error { min-height: 14px; margin: -7px 0 -4px; color: var(--danger); font-size: 9px; }
.login-submit { display: flex; height: 48px; align-items: center; justify-content: center; gap: 9px; color: #fff; background: linear-gradient(90deg, #008f8e, #08aaa4); border: 0; border-radius: 5px; box-shadow: 0 10px 24px rgba(0,145,142,.2); font: inherit; font-size: 11px; font-weight: 780; cursor: pointer; }
.login-submit svg { width: 16px; }
.auth-app-note { display: flex; align-items: center; margin-top: 24px; padding: 11px 12px; gap: 9px; color: #667679; background: #eef7f6; border-radius: 5px; font-size: 8px; }
.auth-app-note svg { width: 16px; color: var(--teal); }

.account-actions { display: grid; grid-template-columns: 1fr auto; margin-top: 7px; gap: 5px; }
.account-actions button { display: flex; min-height: 30px; align-items: center; justify-content: center; padding: 0 8px; gap: 6px; color: rgba(255,255,255,.57); background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.06); border-radius: 4px; font-size: 8px; cursor: pointer; }
.account-actions svg { width: 13px; }
.source-group-badge { display: inline-flex; padding: 5px 7px; border-radius: 3px; font-size: 8px; font-weight: 760; }
.source-group-badge.source-expo { color: #8f611d; background: #fff3dd; }
.source-group-badge.source-web { color: #3064aa; background: #edf3ff; }
.source-group-badge.source-other { color: #617174; background: #eff3f3; }

.rep-sales-board { overflow: hidden; margin-bottom: 15px; }
.rep-sales-board .card-header .text-action { margin-left: auto; }
.text-action { padding: 7px 10px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 4px; font-size: 8px; font-weight: 720; cursor: pointer; }
.text-action.active { color: var(--teal-700); background: var(--teal-50); border-color: #b9deda; }
.rep-sales-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.rep-sales-item { display: grid; min-height: 74px; grid-template-columns: 36px minmax(130px,1fr) repeat(3,minmax(84px,.7fr)); align-items: center; padding: 0 16px; gap: 11px; text-align: left; background: #fff; border: 0; border-top: 1px solid var(--line); cursor: pointer; }
.rep-sales-item:nth-child(odd) { border-right: 1px solid var(--line); }
.rep-sales-item:hover, .rep-sales-item.active { background: #f5fbfa; }
.rep-sales-item.active { box-shadow: inset 3px 0 var(--teal); }
.rep-sales-item .owner-avatar { width: 34px; height: 34px; }
.rep-sales-item div { min-width: 0; }
.rep-sales-item strong, .rep-sales-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-sales-item strong { font-size: 9px; }
.rep-sales-item span { margin-top: 4px; color: var(--muted); font-size: 7px; }
.rep-sales-item .warning strong, .old-customer-list .warning { color: #b46a1e; }
.old-customer-card { overflow: hidden; }
.old-customer-card .card-header > span { margin-left: auto; color: var(--teal-700); font-size: 8px; font-weight: 760; }
.old-customer-head, .old-customer-list > article { display: grid; grid-template-columns: minmax(170px,1.2fr) 110px minmax(150px,1.25fr) 90px 90px 85px 94px; align-items: center; padding: 0 16px; gap: 10px; }
.old-customer-head { min-height: 36px; color: var(--muted); background: #fafcfc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 7px; font-weight: 760; }
.old-customer-list > article { min-height: 72px; border-bottom: 1px solid var(--line); cursor: pointer; }
.old-customer-list > article:hover { background: #fbfdfd; }
.old-customer-list > article > div:nth-child(3) strong, .old-customer-list > article > div:nth-child(3) span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.old-customer-list > article > div:nth-child(3) strong, .old-customer-list > article > strong { font-size: 9px; }
.old-customer-list > article > div:nth-child(3) span, .old-customer-list > article > strong small { display: block; margin-top: 4px; color: var(--muted); font-size: 7px; font-weight: 550; }
.tracking-result { color: #4d6265; font-size: 8px; }
.tracking-result.overdue { color: var(--danger); }

.admin-kpis { margin-bottom: 14px; }
.admin-security-banner { display: grid; min-height: 68px; grid-template-columns: 36px 1fr auto; align-items: center; margin-bottom: 14px; padding: 12px 17px; gap: 12px; color: #5d4b25; background: linear-gradient(90deg,#fff9ea,#fff); border-color: #edddb5; }
.admin-security-banner > svg { width: 20px; color: #bd8525; }
.admin-security-banner strong { font-size: 10px; }
.admin-security-banner p { margin: 5px 0 0; color: #83724f; font-size: 8px; line-height: 1.5; }
.admin-security-banner > span { padding: 5px 8px; color: #9b6a1e; background: #ffedc4; border-radius: 3px; font-size: 8px; font-weight: 760; }
.admin-role-grid { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 14px; gap: 10px; }
.admin-role-card { position: relative; min-height: 150px; padding: 16px; overflow: hidden; }
.admin-role-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--role-color); }
.admin-role-card > span { display: grid; width: 31px; height: 31px; place-items: center; color: #fff; background: var(--role-color); border-radius: 5px; }
.admin-role-card > span svg { width: 15px; }
.admin-role-card > div { margin-top: 13px; }
.admin-role-card strong, .admin-role-card small { display: block; }
.admin-role-card strong { font-size: 10px; }
.admin-role-card small { margin-top: 4px; color: var(--role-color); font-size: 7px; font-weight: 720; }
.admin-role-card p { min-height: 32px; margin: 10px 0; color: var(--muted); font-size: 7px; line-height: 1.55; }
.admin-role-card > b { color: var(--role-color); font-size: 8px; }
.admin-user-card, .permission-matrix-card { overflow: hidden; margin-bottom: 14px; }
.admin-user-card .card-header > span, .permission-matrix-card .card-header > span { margin-left: auto; color: var(--teal-700); font-size: 8px; font-weight: 760; }
.admin-user-head, .admin-user-list > article { display: grid; grid-template-columns: minmax(180px,1.35fr) 110px 95px 90px 70px 92px 70px 100px; align-items: center; padding: 0 15px; gap: 9px; }
.admin-user-head { min-height: 34px; color: var(--muted); background: #fafcfc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 7px; font-weight: 760; }
.admin-user-list > article { min-height: 64px; border-bottom: 1px solid var(--line); font-size: 8px; }
.admin-user-identity { display: flex; min-width: 0; align-items: center; gap: 9px; }
.admin-user-identity > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--user-color); border-radius: 50%; font-size: 8px; font-weight: 760; }
.admin-user-identity div { min-width: 0; }
.admin-user-identity strong, .admin-user-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-identity strong { font-size: 9px; }
.admin-user-identity small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.admin-role-pill, .account-status { display: inline-flex; width: max-content; align-items: center; padding: 5px 7px; border-radius: 3px; font-size: 7px; font-weight: 740; }
.admin-role-pill { color: #40616a; background: #eef4f5; }
.admin-role-pill.role-admin { color: #007f82; background: #e5f6f4; }
.admin-role-pill.role-manager { color: #3961a9; background: #edf2ff; }
.admin-role-pill.role-sales { color: #6841a8; background: #f2edfb; }
.account-status { gap: 5px; }
.account-status i { width: 5px; height: 5px; border-radius: 50%; }
.account-status.active { color: #16704c; background: #e8f7ef; }
.account-status.active i { background: #20a36c; }
.account-status.inactive { color: #8c565b; background: #f8eeee; }
.account-status.inactive i { background: #cf6971; }
.admin-row-actions { display: flex; gap: 5px; }
.admin-row-actions button { display: grid; width: 27px; height: 27px; place-items: center; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.admin-row-actions svg { width: 13px; }
.permission-matrix-head, .permission-matrix > div { display: grid; grid-template-columns: minmax(180px,1fr) repeat(4,minmax(100px,.65fr)); align-items: center; min-height: 40px; padding: 0 16px; gap: 8px; border-top: 1px solid var(--line); font-size: 8px; }
.permission-matrix-head { color: var(--muted); background: #fafcfc; font-size: 7px; }
.permission-matrix > div > strong, .permission-matrix > div > b, .permission-matrix > div > i { text-align: center; }
.permission-matrix > div > b { color: var(--teal); }
.permission-matrix > div > b svg { width: 14px; }
.permission-matrix > div > i { color: #bec7c8; }
.app-install-guide { display: grid; gap: 9px; }
.app-install-guide article { display: flex; align-items: flex-start; padding: 13px; gap: 12px; background: #f7fafa; border: 1px solid var(--line); border-radius: 6px; }
.app-install-guide article > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--teal); border-radius: 50%; font-size: 9px; font-weight: 780; }
.app-install-guide strong { font-size: 10px; }
.app-install-guide p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }

@media (max-width: 1180px) {
  .admin-role-grid { grid-template-columns: repeat(2,1fr); }
  .admin-user-head, .admin-user-list > article { grid-template-columns: minmax(170px,1.2fr) 105px 90px 80px 80px 70px 90px; }
  .admin-user-head > :nth-child(5), .admin-user-list > article > :nth-child(5) { display: none; }
  .rep-sales-grid { grid-template-columns: 1fr; }
  .rep-sales-item:nth-child(odd) { border-right: 0; }
  .old-customer-head, .old-customer-list > article { grid-template-columns: minmax(160px,1.2fr) 105px minmax(145px,1.2fr) 88px 80px 90px; }
  .old-customer-head > :nth-child(6), .old-customer-list > article > :nth-child(6) { display: none; }
}

@media (max-width: 760px) {
  .auth-screen { display: block; min-height: 100vh; background: linear-gradient(180deg,#edf8f7 0 155px,#fff 155px); }
  .auth-brand-panel { display: none; }
  .auth-form-panel { min-height: 100vh; align-items: start; padding: 38px 22px; background: transparent; }
  .auth-form-wrap { width: 100%; max-width: 430px; }
  .auth-mobile-logo { display: flex; height: 74px; flex-direction: column; justify-content: center; margin-bottom: 48px; }
  .auth-mobile-logo img { width: 132px; }
  .auth-mobile-logo span { margin-top: 7px; color: var(--teal-900); font-size: 7px; font-weight: 760; letter-spacing: .15em; }
  .auth-welcome h2 { font-size: 25px; }
  .rep-sales-item { grid-template-columns: 34px 1fr auto; min-height: 80px; padding: 10px 13px; }
  .rep-sales-item > div:nth-child(4), .rep-sales-item > div:nth-child(5) { display: none; }
  .old-customer-head { display: none; }
  .old-customer-list > article { grid-template-columns: 1fr auto; min-height: 0; padding: 13px; gap: 10px; }
  .old-customer-list > article > .lead-identity { grid-column: 1; grid-row: 1; }
  .old-customer-list > article > .owner-chip { grid-column: 2; grid-row: 1; }
  .old-customer-list > article > div:nth-child(3) { grid-column: 1 / -1; grid-row: 2; padding-top: 9px; border-top: 1px solid var(--line); }
  .old-customer-list > article > strong:nth-child(4) { grid-column: 1; grid-row: 3; }
  .old-customer-list > article > strong:nth-child(n+5) { display: none; }
  .old-customer-list > article > .tracking-result { grid-column: 2; grid-row: 3; justify-self: end; }
  .admin-security-banner { grid-template-columns: 28px 1fr; padding: 12px; }
  .admin-security-banner > span { display: none; }
  .admin-role-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-role-card { min-height: 138px; padding: 13px; }
  .admin-user-head { display: none; }
  .admin-user-list > article { grid-template-columns: 1fr auto; min-height: 0; padding: 13px; gap: 10px; }
  .admin-user-list > article > .admin-user-identity { grid-column: 1; grid-row: 1; }
  .admin-user-list > article > b { grid-column: 1; grid-row: 2; padding-left: 41px; }
  .admin-user-list > article > .admin-role-pill { grid-column: 2; grid-row: 1; }
  .admin-user-list > article > :nth-child(4), .admin-user-list > article > :nth-child(5), .admin-user-list > article > time, .admin-user-list > article > .account-status { display: none; }
  .admin-row-actions { grid-column: 1 / -1; grid-row: 3; padding-top: 9px; border-top: 1px solid var(--line); }
  .admin-row-actions button { width: 34px; height: 30px; }
  .permission-matrix { min-width: 660px; }
  .permission-matrix-card { overflow-x: auto; }
}

/* V18 new-customer warning and management decision workflow */
.new-customer-alert-summary { display: grid; min-height: 70px; grid-template-columns: 38px minmax(260px,1fr) auto auto; align-items: center; margin-bottom: 14px; padding: 13px 16px; gap: 12px; color: #613f16; background: linear-gradient(90deg,#fff7e6,#fffdf8); border: 1px solid #efd8a8; border-radius: var(--radius); }
.new-customer-alert-icon { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: linear-gradient(145deg,#e29a34,#bd6b21); border-radius: 6px; box-shadow: 0 7px 15px rgba(183,106,29,.18); }
.new-customer-alert-icon svg { width: 18px; }
.new-customer-alert-summary strong { font-size: 10px; }
.new-customer-alert-summary p { margin: 5px 0 0; color: #8d734e; font-size: 8px; line-height: 1.55; }
.new-customer-alert-summary > b { padding: 6px 9px; color: #a45b19; background: #ffebc7; border-radius: 4px; font-size: 8px; white-space: nowrap; }
.new-customer-alert-card { overflow: hidden; margin-bottom: 14px; border-color: #eadfc9; }
.new-customer-alert-card .card-header > span { margin-left: auto; color: #a7601d; font-size: 8px; font-weight: 760; }
.new-customer-alert-list > article { display: grid; min-height: 78px; grid-template-columns: minmax(185px,1.05fr) minmax(280px,1.6fr) 112px 100px; align-items: center; padding: 10px 16px; gap: 13px; border-top: 1px solid var(--line); }
.new-customer-alert-list > article:hover { background: #fffdf8; }
.new-customer-alert-reasons > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 7px; }
.new-customer-alert-reasons > div { display: flex; flex-wrap: wrap; gap: 5px; }
.new-customer-alert-reasons b { display: inline-flex; padding: 5px 7px; color: #9a5418; background: #fff0d6; border-radius: 3px; font-size: 7px; font-weight: 740; }
.new-customer-alert-reasons small { display: block; margin-top: 7px; color: var(--muted); font-size: 7px; }
.new-customer-review-alert { background: #fff8ea; border-color: #ead7ae; }
.new-customer-review-alert > svg { color: #c67925; }
.alert-settings-section { display: flex; align-items: baseline; margin: 17px 0 9px; gap: 9px; }
.alert-settings-section:first-of-type { margin-top: 2px; }
.alert-settings-section strong { color: var(--ink); font-size: 10px; }
.alert-settings-section span { color: var(--muted); font-size: 8px; }
.followup-schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.followup-schedule label { display: grid; gap: 6px; }
.followup-schedule select { min-width: 0; }

@media (max-width: 900px) {
  .new-customer-alert-summary { grid-template-columns: 38px 1fr auto; }
  .new-customer-alert-summary > .button { grid-column: 2 / -1; justify-self: start; }
  .new-customer-alert-list > article { grid-template-columns: minmax(170px,1fr) minmax(250px,1.5fr) 100px; }
  .new-customer-alert-list > article > .button { grid-column: 3; }
  .new-customer-alert-list > article > .owner-chip { grid-column: 3; }
}

@media (max-width: 760px) {
  .new-customer-alert-summary { grid-template-columns: 34px 1fr; padding: 12px; }
  .new-customer-alert-icon { width: 34px; height: 34px; }
  .new-customer-alert-summary > b { grid-column: 2; width: max-content; }
  .new-customer-alert-summary > .button { grid-column: 2; }
  .new-customer-alert-list > article { grid-template-columns: 1fr auto; padding: 13px; gap: 10px; }
  .new-customer-alert-list > article > .lead-identity { grid-column: 1; grid-row: 1; }
  .new-customer-alert-list > article > .owner-chip { grid-column: 2; grid-row: 1; }
  .new-customer-alert-reasons { grid-column: 1 / -1; grid-row: 2; padding-top: 9px; border-top: 1px solid var(--line); }
  .new-customer-alert-list > article > .button { grid-column: 1 / -1; grid-row: 3; width: 100%; }
  .followup-schedule { grid-template-columns: 1fr; }
  .alert-settings-section { display: grid; gap: 4px; }
}

/* V20 customer deduplication */
.duplicate-check-entry { color: #6a4d9b; background: #f5f0ff; border-color: #ddd0f1; }
.duplicate-check-entry:hover { background: #eee6fb; }
.customer-lookup-strip { display: grid; min-height: 78px; grid-template-columns: 42px minmax(260px,.9fr) minmax(340px,1.1fr); align-items: center; margin-bottom: 14px; padding: 14px 16px; gap: 13px; color: #173e40; background: linear-gradient(110deg,#eaf8f7,#fff); border: 1px solid #bfdfdc; border-radius: var(--radius); box-shadow: 0 5px 16px rgba(0,116,113,.05); }
.customer-lookup-icon { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: linear-gradient(145deg,#058f8d,#06b5ae); border-radius: 7px; box-shadow: 0 7px 17px rgba(0,143,140,.2); }
.customer-lookup-icon svg { width: 19px; }
.customer-lookup-copy strong { font-size: 10px; }
.customer-lookup-copy p { margin: 5px 0 0; color: #668182; font-size: 8px; line-height: 1.5; }
.customer-lookup-strip form { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 4px; background: #fff; border: 1px solid #c9dcdb; border-radius: 6px; box-shadow: 0 6px 18px rgba(24,64,66,.06); }
.customer-lookup-strip input { min-width: 0; height: 36px; padding: 0 10px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 9px; }
.customer-lookup-strip form .button { height: 34px; }
.duplicate-check-search { padding: 15px; background: linear-gradient(135deg,#f5f9f9,#fff); border: 1px solid var(--line); border-radius: 7px; }
.duplicate-check-search > label { display: block; margin-bottom: 8px; color: #31494c; font-size: 9px; font-weight: 760; }
.duplicate-check-search > div { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; overflow: hidden; background: #fff; border: 1px solid #cfdcdc; border-radius: 5px; box-shadow: 0 5px 15px rgba(22,62,64,.05); }
.duplicate-check-search > div > span { display: grid; place-items: center; color: var(--teal); }
.duplicate-check-search > div > span svg { width: 17px; }
.duplicate-check-search input { min-width: 0; height: 43px; padding: 0 6px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 10px; }
.duplicate-check-search .button { height: 35px; margin-right: 4px; }
.duplicate-check-search > small { display: block; margin-top: 8px; color: var(--muted); font-size: 7px; }
.duplicate-check-result-box { margin-top: 12px; }
.duplicate-check-placeholder, .duplicate-check-clear { display: flex; min-height: 90px; align-items: center; justify-content: center; padding: 18px; gap: 12px; color: var(--muted); background: #fafcfc; border: 1px dashed #cedada; border-radius: 7px; }
.duplicate-check-placeholder { flex-direction: column; text-align: center; }
.duplicate-check-placeholder svg, .duplicate-check-clear > svg { width: 25px; color: #82a6a6; }
.duplicate-check-placeholder strong, .duplicate-check-clear strong { color: var(--ink); font-size: 10px; }
.duplicate-check-placeholder span, .duplicate-check-clear span { display: block; margin-top: 5px; font-size: 8px; }
.duplicate-check-clear { justify-content: flex-start; color: #537568; background: #f0faf5; border-color: #bfe2cf; border-style: solid; }
.duplicate-check-clear > svg { color: #1c8b5e; }
.duplicate-check-clear > div { flex: 1; }
.duplicate-check-found { overflow: hidden; border: 1px solid #ecd9b8; border-radius: 7px; }
.duplicate-check-found-head { display: flex; align-items: center; padding: 11px 14px; gap: 10px; color: #7b551d; background: #fff7e8; }
.duplicate-check-found-head > svg { width: 19px; color: #d18328; }
.duplicate-check-found-head strong, .duplicate-check-found-head span { display: block; }
.duplicate-check-found-head strong { font-size: 10px; }
.duplicate-check-found-head span { margin-top: 4px; color: #9a7a4c; font-size: 7px; }
.duplicate-check-results > article { display: grid; min-height: 70px; grid-template-columns: 52px minmax(150px,1.15fr) minmax(180px,1.4fr) 75px 105px auto; align-items: center; padding: 9px 13px; gap: 10px; border-top: 1px solid var(--line); }
.duplicate-check-results > article:hover { background: #fffdf9; }
.duplicate-match-score { text-align: center; }
.duplicate-match-score strong, .duplicate-match-score span { display: block; }
.duplicate-match-score strong { color: #b36a22; font-size: 13px; }
.duplicate-match-score span { margin-top: 2px; color: var(--muted); font-size: 7px; }
.duplicate-match-contact { min-width: 0; }
.duplicate-match-contact strong, .duplicate-match-contact span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duplicate-match-contact strong { font-size: 8px; }
.duplicate-match-contact span { margin-top: 4px; color: #a26728; font-size: 7px; }
.duplicate-customer-type { display: inline-flex; width: max-content; padding: 5px 7px; border-radius: 3px; font-size: 7px; font-weight: 750; }
.duplicate-customer-type.new { color: #3969a9; background: #edf3ff; }
.duplicate-customer-type.existing { color: #157353; background: #e8f7ef; }
.duplicate-customer-type.pool { color: #9a5e19; background: #fff1d8; }
.lead-duplicate-warning { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; margin: 12px 0; padding: 11px 12px; gap: 10px; color: #7d4f18; background: #fff5e3; border: 1px solid #e8c98d; border-radius: 6px; }
.lead-duplicate-warning > svg { width: 19px; color: #d07b22; }
.lead-duplicate-warning strong, .lead-duplicate-warning span { display: block; }
.lead-duplicate-warning strong { font-size: 9px; }
.lead-duplicate-warning span { margin-top: 4px; color: #987344; font-size: 7px; line-height: 1.45; }

@media (max-width: 880px) {
  .customer-lookup-strip { grid-template-columns: 42px 1fr; }
  .customer-lookup-strip form { grid-column: 2; }
  .duplicate-check-results > article { grid-template-columns: 48px 1fr auto; }
  .duplicate-check-results > article > .duplicate-match-contact { grid-column: 2 / -1; }
  .duplicate-check-results > article > .owner-chip { grid-column: 2; }
  .duplicate-check-results > article > .duplicate-match-actions { grid-column: 3; }
}

@media (max-width: 620px) {
  .customer-lookup-strip { grid-template-columns: 35px 1fr; padding: 12px; }
  .customer-lookup-icon { width: 35px; height: 35px; }
  .customer-lookup-strip form { grid-column: 1 / -1; grid-template-columns: 1fr; padding: 5px; }
  .customer-lookup-strip form .button { width: 100%; }
  .duplicate-check-search > div { grid-template-columns: 30px 1fr; padding-bottom: 5px; }
  .duplicate-check-search .button { grid-column: 1 / -1; width: calc(100% - 8px); margin: 0 4px; }
  .duplicate-check-results > article { grid-template-columns: 45px 1fr; padding: 11px; }
  .duplicate-check-results > article > .duplicate-customer-type { grid-column: 1; grid-row: 2; }
  .duplicate-check-results > article > .duplicate-match-contact { grid-column: 2; }
  .duplicate-check-results > article > .owner-chip { grid-column: 2; }
  .duplicate-check-results > article > .duplicate-match-actions { grid-column: 1 / -1; }
  .duplicate-check-results > article > .duplicate-match-actions .button { width: 100%; }
  .duplicate-check-clear { align-items: flex-start; flex-wrap: wrap; }
  .duplicate-check-clear .button { width: 100%; }
  .lead-duplicate-warning { grid-template-columns: 25px 1fr; }
  .lead-duplicate-warning .button { grid-column: 1 / -1; width: 100%; }
}

/* V23 sample feedback and VIP market intelligence */
.sample-overdue-banner { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; margin-bottom: 14px; padding: 13px 16px; gap: 12px; color: #7b421d; background: linear-gradient(100deg,#fff2e8,#fffaf5); border: 1px solid #edc6a8; border-radius: var(--radius); }
.sample-overdue-banner > span { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: #d66b31; border-radius: 7px; }
.sample-overdue-banner svg { width: 18px; }
.sample-overdue-banner strong { font-size: 10px; }
.sample-overdue-banner p { margin: 5px 0 0; color: #9a755d; font-size: 8px; line-height: 1.5; }
.sample-management-card { overflow: hidden; }
.sample-filter-bar { display: grid; grid-template-columns: minmax(180px,1fr) minmax(260px,1.1fr) 115px 125px; align-items: center; min-height: 72px; padding: 12px 16px; gap: 10px; }
.sample-filter-bar h3 { margin: 0; font-size: 11px; }
.sample-filter-bar p { margin: 5px 0 0; color: var(--muted); font-size: 8px; }
.sample-filter-bar select { height: 38px; min-width: 0; padding: 0 9px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 8px; }
.sample-search { display: grid; grid-template-columns: 30px 1fr; align-items: center; overflow: hidden; background: #f8fbfb; border: 1px solid var(--line); border-radius: 5px; }
.sample-search svg { width: 14px; justify-self: center; color: var(--teal); }
.sample-search input { min-width: 0; height: 36px; padding: 0 7px 0 0; background: transparent; border: 0; outline: 0; font-size: 8px; }
.sample-table-head, .sample-row { display: grid; grid-template-columns: minmax(165px,1.05fr) minmax(185px,1.15fr) minmax(130px,.85fr) 110px minmax(160px,1.05fr) 105px 82px; align-items: center; gap: 11px; }
.sample-table-head { min-height: 35px; padding: 0 16px; color: var(--muted); background: #f6f9f9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 7px; font-weight: 750; }
.sample-row { min-height: 92px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.sample-row:last-child { border-bottom: 0; }
.sample-row:hover { background: #fbfdfd; }
.sample-customer-link { min-width: 0; padding: 0; text-align: left; background: transparent; border: 0; }
.sample-product strong, .sample-product > span, .sample-logistics strong, .sample-logistics span, .sample-logistics small, .sample-due strong, .sample-due span, .sample-feedback strong, .sample-feedback span { display: block; }
.sample-product strong, .sample-logistics strong, .sample-due strong, .sample-feedback strong { color: var(--ink); font-size: 8px; }
.sample-product > span, .sample-logistics span, .sample-due span, .sample-feedback span { margin-top: 5px; color: var(--muted); font-size: 7px; line-height: 1.45; }
.sample-logistics small { margin-top: 4px; color: #438178; font-size: 7px; }
.sample-status { display: inline-flex; width: max-content; margin-top: 7px; padding: 4px 7px; color: #526769; background: #edf1f1; border-radius: 3px; font-size: 7px; font-weight: 760; }
.sample-status.shipped, .sample-status.delivered, .sample-status.testing { color: #2e63a8; background: #edf3ff; }
.sample-status.revision { color: #a2611d; background: #fff1d9; }
.sample-status.approved { color: #157353; background: #e7f7ee; }
.sample-status.rejected, .sample-status.overdue { color: #b64b42; background: #fff0ee; }
.sample-due.overdue strong, .sample-due.overdue span { color: var(--danger); }
.sample-feedback span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.drawer-sample-section h3 svg, .drawer-market-section h3 svg { width: 14px; margin-right: 5px; vertical-align: -3px; color: var(--teal); }
.drawer-sample-list { display: grid; gap: 8px; }
.drawer-sample-list article { padding: 11px; background: #f8fbfb; border: 1px solid var(--line); border-radius: 6px; }
.drawer-sample-list article > div:first-child, .drawer-sample-list article > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drawer-sample-list strong { font-size: 9px; }
.drawer-sample-list article > span, .drawer-sample-list small { color: var(--muted); font-size: 7px; }
.drawer-sample-list p { margin: 8px 0; color: #445f61; font-size: 8px; line-height: 1.5; }
.drawer-sample-list button { padding: 0; color: var(--teal-700); background: transparent; border: 0; font-size: 8px; font-weight: 760; }
.vip-market-intelligence { overflow: hidden; margin-bottom: 14px; border-color: #d9d1ba; }
.vip-market-intelligence .card-header { background: linear-gradient(90deg,#fffdf7,#fff); }
.vip-market-intelligence .card-header > span { margin-left: auto; color: #99742d; font-size: 8px; font-weight: 740; }
.vip-market-event-list > article { display: grid; grid-template-columns: 48px minmax(220px,1.15fr) minmax(240px,1.35fr) 110px 88px; align-items: center; min-height: 90px; padding: 11px 16px; gap: 13px; border-top: 1px solid var(--line); }
.market-event-date { display: grid; width: 43px; height: 48px; place-items: center; color: #8a6422; background: #fff7e4; border: 1px solid #ead8aa; border-radius: 6px; }
.market-event-date strong { font-size: 15px; line-height: 1; }
.market-event-date span { margin-top: -6px; font-size: 7px; font-weight: 740; text-transform: uppercase; }
.market-event-copy > span { display: inline-flex; padding: 4px 6px; color: #6f5b2b; background: #f5eedb; border-radius: 3px; font-size: 7px; font-weight: 750; }
.market-event-copy h4 { margin: 7px 0 4px; font-size: 10px; }
.market-event-copy p, .market-event-copy small { display: block; margin: 0; color: var(--muted); font-size: 7px; line-height: 1.45; }
.market-event-copy small { margin-top: 4px; }
.market-event-opportunity { padding: 9px 11px; background: #f0faf6; border-radius: 5px; }
.market-event-opportunity span, .market-event-opportunity strong, .market-event-opportunity small { display: block; }
.market-event-opportunity span { color: #318269; font-size: 7px; font-weight: 750; }
.market-event-opportunity strong { margin-top: 5px; font-size: 8px; line-height: 1.45; }
.market-event-opportunity small { margin-top: 5px; color: var(--muted); font-size: 7px; }
.vip-market-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.vip-market-profile > div { padding: 9px; background: #fbfaf5; border: 1px solid #ede7d6; border-radius: 5px; }
.vip-market-profile span, .vip-market-profile strong { display: block; }
.vip-market-profile span { color: #9a8050; font-size: 7px; }
.vip-market-profile strong { margin-top: 5px; font-size: 8px; line-height: 1.4; }
.market-trend-note { margin: 8px 0 0; padding: 9px 10px; color: #5c512f; background: #fff8e8; border-radius: 5px; font-size: 8px; line-height: 1.5; }
.market-trend-note span { display: block; margin-bottom: 4px; color: #9a7430; font-size: 7px; font-weight: 760; }
.drawer-market-events { display: grid; margin-top: 10px; gap: 7px; }
.drawer-market-events article { padding: 10px; border-left: 3px solid #d4ad58; background: #fafafa; }
.drawer-market-events article > span, .drawer-market-events article > strong, .drawer-market-events article > small { display: block; }
.drawer-market-events article > span { color: #9b7939; font-size: 7px; }
.drawer-market-events article > strong { margin-top: 5px; font-size: 9px; }
.drawer-market-events article p { margin: 5px 0; color: #59696a; font-size: 8px; line-height: 1.45; }
.drawer-market-events article > small { color: var(--muted); font-size: 7px; line-height: 1.45; }

@media (max-width: 1180px) {
  .sample-table-head, .sample-row { grid-template-columns: minmax(160px,1fr) minmax(175px,1.1fr) 120px 95px 105px 78px; }
  .sample-table-head > :nth-child(5), .sample-row > :nth-child(5) { display: none; }
  .vip-market-event-list > article { grid-template-columns: 45px minmax(210px,1fr) minmax(220px,1.2fr) 90px; }
  .vip-market-event-list > article > .owner-chip { display: none; }
}

@media (max-width: 820px) {
  .sample-filter-bar { grid-template-columns: 1fr 1fr; }
  .sample-filter-bar > div, .sample-search { grid-column: 1 / -1; }
  .sample-table-head { display: none; }
  .sample-list { display: grid; padding: 10px; gap: 10px; }
  .sample-row { grid-template-columns: 1fr auto; min-height: 0; padding: 13px; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
  .sample-row > .sample-customer-link { grid-column: 1; grid-row: 1; }
  .sample-row > .sample-status { grid-column: 2; grid-row: 1; }
  .sample-row > .sample-product { grid-column: 1 / -1; grid-row: 2; padding-top: 9px; border-top: 1px solid var(--line); }
  .sample-row > .sample-logistics { grid-column: 1; grid-row: 3; }
  .sample-row > .sample-due { grid-column: 2; grid-row: 3; text-align: right; }
  .sample-row > .sample-feedback { display: block; grid-column: 1 / -1; grid-row: 4; }
  .sample-row > .owner-chip { grid-column: 1; grid-row: 5; }
  .sample-row > .button { grid-column: 2; grid-row: 5; }
  .vip-market-event-list > article { grid-template-columns: 43px 1fr auto; padding: 12px; }
  .market-event-opportunity { grid-column: 2 / -1; }
}

@media (max-width: 620px) {
  .sample-overdue-banner { grid-template-columns: 34px 1fr; padding: 12px; }
  .sample-overdue-banner > span { width: 34px; height: 34px; }
  .sample-overdue-banner .button { grid-column: 2; width: max-content; }
  .sample-filter-bar { grid-template-columns: 1fr; }
  .sample-filter-bar > div, .sample-search { grid-column: 1; }
  .sample-row { grid-template-columns: 1fr; }
  .sample-row > .sample-customer-link, .sample-row > .sample-product, .sample-row > .sample-logistics, .sample-row > .sample-due, .sample-row > .sample-feedback, .sample-row > .owner-chip, .sample-row > .button { grid-column: 1; grid-row: auto; text-align: left; }
  .sample-row > .button { width: 100%; }
  .vip-market-event-list > article { grid-template-columns: 40px 1fr; }
  .market-event-copy { grid-column: 2; }
  .market-event-opportunity, .vip-market-event-list > article > .button { grid-column: 1 / -1; }
  .vip-market-event-list > article > .button { width: 100%; }
  .vip-market-profile { grid-template-columns: 1fr; }
}
