/* ==========================================================================
   GS-CRM prototype — shared styles
   Tokens match shadcn/ui default ("zinc") light theme, radius 0.5rem.
   ========================================================================== */

:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 240 5.9% 10%;
  --radius: 0.5rem;

  /* semantic tint pairs for intent tags / status, independent of theme */
  --rose-bg: #fef2f2;   --rose-fg: #b91c1c;
  --blue-bg: #eff6ff;   --blue-fg: #1d4ed8;
  --violet-bg: #f5f3ff; --violet-fg: #6d28d9;
  --amber-bg: #fffbeb;  --amber-fg: #b45309;
  --orange-bg: #fff7ed; --orange-fg: #c2410c;
  --green-bg: #f0fdf4;  --green-fg: #15803d;
  --slate-bg: #f8fafc;  --slate-fg: #475569;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
a { color: inherit; text-decoration: none; }
svg.icon { width: 16px; height: 16px; flex-shrink: 0; }
svg.icon-lg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- app shell ---------- */
.app-shell {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: hsl(var(--muted) / 0.4);
  border-right: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 20px;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.brand-name { font-weight: 600; font-size: 14px; }
.brand-sub { font-size: 11px; color: hsl(var(--muted-foreground)); }

.nav-section-label {
  font-size: 11px;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 8px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--foreground) / 0.75);
  font-size: 13.5px;
  font-weight: 500;
  cursor: default;
}
.nav-item svg { stroke: currentColor; }
.nav-item .nav-badge {
  margin-left: auto;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
}
.nav-item.active {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid hsl(var(--border));
}
.nav-item.active .nav-badge { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

.sidebar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-top: 1px solid hsl(var(--border));
}
.sidebar-footer .owner-name { font-size: 13px; font-weight: 600; }
.sidebar-footer .owner-role { font-size: 11.5px; color: hsl(var(--muted-foreground)); }

/* ---------- main / topbar ---------- */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid hsl(var(--border));
  flex-shrink: 0;
}
.topbar h1 { font-size: 16px; font-weight: 600; }
.topbar .topbar-meta { font-size: 12.5px; color: hsl(var(--muted-foreground)); margin-top: 1px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 280px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 7px 10px;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / 0.3);
}
.search-box input {
  border: none; outline: none; background: transparent;
  font-size: 13px; color: hsl(var(--foreground)); flex: 1;
}
.kbd {
  font-size: 11px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  border-radius: 4px;
  padding: 1px 5px;
  color: hsl(var(--muted-foreground));
}

.page-content { padding: 24px 28px 40px; flex: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  border-radius: calc(var(--radius) - 2px);
  padding: 7px 13px;
  border: 1px solid transparent;
  cursor: default;
}
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-outline { background: hsl(var(--background)); border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.btn-ghost { background: transparent; color: hsl(var(--foreground) / 0.8); }
.btn-sm { padding: 4px 9px; font-size: 12.5px; }

/* ---------- badges / tags / pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-outline { border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); }
.badge-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.badge-vip { background: #1c1917; color: #fbbf24; }

.tag { background: var(--tag-bg); color: var(--tag-fg); }
.tag-complaint   { --tag-bg: var(--rose-bg);   --tag-fg: var(--rose-fg); }
.tag-delivery    { --tag-bg: var(--blue-bg);   --tag-fg: var(--blue-fg); }
.tag-subscription{ --tag-bg: var(--violet-bg); --tag-fg: var(--violet-fg); }
.tag-product     { --tag-bg: var(--amber-bg);  --tag-fg: var(--amber-fg); }
.tag-refund      { --tag-bg: var(--orange-bg); --tag-fg: var(--orange-fg); }
.tag-reorder     { --tag-bg: var(--green-bg);  --tag-fg: var(--green-fg); }
.tag-billing     { --tag-bg: var(--amber-bg);  --tag-fg: var(--amber-fg); }
.tag-presales    { --tag-bg: var(--slate-bg);  --tag-fg: var(--slate-fg); }

.status-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; }
.status-dot { width: 6px; height: 6px; border-radius: 999px; }
.dot-open { background: #f59e0b; }
.dot-waiting { background: #64748b; }
.dot-resolved { background: #22c55e; }

/* ---------- avatars ---------- */
.avatar {
  width: 34px; height: 34px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600;
  flex-shrink: 0;
  color: #fff;
}
.avatar-sm { width: 26px; height: 26px; font-size: 11px; }
.avatar-lg { width: 56px; height: 56px; font-size: 19px; }

/* ---------- cards ---------- */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}
.card-header { padding: 14px 18px; border-bottom: 1px solid hsl(var(--border)); }
.card-header h3 { font-size: 13.5px; font-weight: 600; }
.card-header .card-sub { font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 1px; }
.card-body { padding: 18px; }

/* ---------- stat tiles ---------- */
.stat-grid { display: grid; gap: 12px; }
.stat-tile {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-tile .stat-label {
  font-size: 12px; color: hsl(var(--muted-foreground)); font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.stat-tile .stat-value { font-size: 22px; font-weight: 650; margin-top: 6px; letter-spacing: -0.01em; }
.stat-tile .stat-delta { font-size: 11.5px; margin-top: 4px; color: hsl(var(--muted-foreground)); }
.stat-delta.up { color: #15803d; }
.stat-delta.down { color: #b91c1c; }

/* ---------- filter row / chips ---------- */
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground) / 0.7);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip.active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.chip-sep { width: 1px; height: 18px; background: hsl(var(--border)); margin: 0 2px; }

/* ---------- table ---------- */
.data-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 14px;
  border-bottom: 1px solid hsl(var(--border));
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 13px;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.th-sorted { color: hsl(var(--foreground)); display: inline-flex; align-items: center; gap: 4px; }

/* ---------- inbox rows ---------- */
.inbox-list { display: flex; flex-direction: column; }
.inbox-row {
  display: grid;
  grid-template-columns: 34px 200px 1fr auto auto 74px;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid hsl(var(--border));
}
.inbox-row.unread { background: hsl(var(--muted) / 0.35); }
.inbox-sender { display: flex; flex-direction: column; min-width: 0; }
.inbox-sender .name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-sender .email { font-size: 11.5px; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-subject { min-width: 0; }
.inbox-subject .subj-line { display: flex; align-items: center; gap: 7px; }
.inbox-subject .subj { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-subject .snippet { font-size: 12.5px; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.inbox-context { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.inbox-context .ctx-spend { font-size: 12.5px; font-weight: 600; }
.inbox-context .ctx-orders { font-size: 11px; color: hsl(var(--muted-foreground)); }
.inbox-time { font-size: 12px; color: hsl(var(--muted-foreground)); white-space: nowrap; }
.sparkle-mark { color: #a855f7; display: inline-flex; }

/* ---------- conversation screen ---------- */
.conv-shell { display: grid; grid-template-columns: 1fr 340px; flex: 1; min-height: 0; }
.conv-main { border-right: 1px solid hsl(var(--border)); display: flex; flex-direction: column; min-width: 0; }
.conv-header { padding: 18px 28px; border-bottom: 1px solid hsl(var(--border)); }
.conv-header h2 { font-size: 17px; font-weight: 650; }
.conv-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.conv-thread { padding: 22px 28px; flex: 1; overflow: hidden; }
.email-msg { border: 1px solid hsl(var(--border)); border-radius: var(--radius); margin-bottom: 14px; }
.email-msg-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid hsl(var(--border)); }
.email-msg-head .who { font-size: 13px; font-weight: 600; }
.email-msg-head .when { margin-left: auto; font-size: 11.5px; color: hsl(var(--muted-foreground)); }
.email-msg-body { padding: 16px; font-size: 13.5px; line-height: 1.65; color: hsl(var(--foreground) / 0.9); }
.email-msg-body p + p { margin-top: 10px; }
.thread-divider {
  text-align: center; font-size: 11.5px; color: hsl(var(--muted-foreground));
  padding: 4px 0 14px; position: relative;
}

.suggestions { padding: 0 28px 18px; }
.suggestion-card {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.suggestion-card.recommended { border-color: #a855f7; box-shadow: 0 0 0 1px #a855f7 inset; }
.suggestion-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.suggestion-stance { font-size: 13px; font-weight: 650; }
.suggestion-draft { font-size: 12.5px; color: hsl(var(--foreground) / 0.75); margin-bottom: 8px; }
.suggestion-why { display: flex; gap: 6px; font-size: 11.5px; color: hsl(var(--muted-foreground)); background: hsl(var(--muted) / 0.5); border-radius: 6px; padding: 7px 9px; }
.suggestion-actions { display: flex; justify-content: flex-end; margin-top: 10px; }

.composer { padding: 16px 28px 22px; border-top: 1px solid hsl(var(--border)); }
.composer-box { border: 1px solid hsl(var(--border)); border-radius: var(--radius); }
.composer-box textarea-fake { display: block; padding: 12px 14px; font-size: 13px; color: hsl(var(--foreground) / 0.55); min-height: 46px; }
.composer-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-top: 1px solid hsl(var(--border)); }
.composer-icons { display: flex; gap: 12px; color: hsl(var(--muted-foreground)); }

/* ---------- context (right pane) ---------- */
.context-pane { padding: 20px; overflow: hidden; }
.context-profile { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 16px; }
.context-profile .cname { font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.context-profile .cemail { font-size: 12px; color: hsl(var(--muted-foreground)); }
.context-profile .csince { font-size: 11px; color: hsl(var(--muted-foreground)); margin-top: 2px; }
.context-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.context-stats .cstat { background: hsl(var(--muted) / 0.4); border-radius: 8px; padding: 10px 12px; }
.context-stats .cstat .l { font-size: 11px; color: hsl(var(--muted-foreground)); }
.context-stats .cstat .v { font-size: 16px; font-weight: 650; margin-top: 3px; }
.context-block { margin-bottom: 18px; }
.context-block h4 { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.03em; color: hsl(var(--muted-foreground)); margin-bottom: 10px; }
.order-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid hsl(var(--border)); font-size: 12.5px; }
.order-row:last-child { border-bottom: none; }
.order-row .oid { font-weight: 600; }
.order-row .oflag { color: var(--rose-fg); }
.order-row .ometa { color: hsl(var(--muted-foreground)); margin-left: auto; text-align: right; }
.sub-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.contact-note { font-size: 12px; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ---------- customer profile screen ---------- */
.profile-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.profile-name-row { display: flex; align-items: center; gap: 8px; }
.profile-name-row h2 { font-size: 20px; font-weight: 650; }
.profile-sub { font-size: 12.5px; color: hsl(var(--muted-foreground)); margin-top: 4px; display: flex; align-items: center; gap: 14px; }
.profile-actions { margin-left: auto; display: flex; gap: 8px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid hsl(var(--border)); margin: 22px 0 18px; }
.tab { font-size: 13px; font-weight: 500; padding: 8px 4px; margin-right: 20px; color: hsl(var(--muted-foreground)); border-bottom: 2px solid transparent; }
.tab.active { color: hsl(var(--foreground)); border-color: hsl(var(--foreground)); font-weight: 600; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 1px; background: hsl(var(--border)); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before {
  content: ""; position: absolute; left: -22px; top: 3px; width: 9px; height: 9px; border-radius: 999px;
  background: hsl(var(--background)); border: 2px solid var(--dot-color, #64748b);
}
.timeline-item .ti-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.timeline-item .ti-when { font-size: 11px; color: hsl(var(--muted-foreground)); font-weight: 400; margin-left: auto; }
.timeline-item .ti-body { font-size: 12.5px; color: hsl(var(--muted-foreground)); margin-top: 3px; }

/* ---------- dashboard ---------- */
.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-row .bar-row-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.bar-row .bar-row-top .lbl { font-weight: 500; }
.bar-row .bar-row-top .pct { color: hsl(var(--muted-foreground)); }
.bar-track { height: 7px; border-radius: 999px; background: hsl(var(--muted)); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: hsl(var(--foreground)); }

.attn-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid hsl(var(--border)); }
.attn-row:last-child { border-bottom: none; }
.attn-row .a-main { min-width: 0; }
.attn-row .a-name { font-size: 13px; font-weight: 600; }
.attn-row .a-issue { font-size: 12px; color: hsl(var(--muted-foreground)); }
.attn-row .a-value { margin-left: auto; text-align: right; font-size: 12.5px; font-weight: 600; }

/* ==========================================================================
   Mobile screens (bottom tab nav, single column)
   ========================================================================== */

.m-shell { min-height: 100vh; display: flex; flex-direction: column; background: hsl(var(--background)); }

.m-topbar {
  position: sticky; top: 0; z-index: 10;
  background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid hsl(var(--border));
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.m-topbar h1 { font-size: 17px; font-weight: 650; }
.m-topbar .m-sub { font-size: 11.5px; color: hsl(var(--muted-foreground)); margin-top: 1px; }
.m-topbar .m-titles { min-width: 0; flex: 1; }
.m-topbar .m-titles .m-subj-trunc { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-back { color: hsl(var(--muted-foreground)); display: flex; flex-shrink: 0; }
.m-icon-btn {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid hsl(var(--border));
  display: flex; align-items: center; justify-content: center; color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}

.m-content { flex: 1 0 auto; padding: 16px 16px 28px; }

.m-filter-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.m-filter-scroll .chip { white-space: nowrap; flex-shrink: 0; }

.m-tabbar {
  flex-shrink: 0;
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  display: flex;
  padding: 9px 0 14px;
}
.m-tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: hsl(var(--muted-foreground) / 0.8); position: relative; }
.m-tab-item.active { color: hsl(var(--foreground)); font-weight: 650; }
.m-tab-badge {
  position: absolute; top: -3px; right: calc(50% - 22px);
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-size: 10px; font-weight: 700; min-width: 15px; height: 15px; line-height: 15px;
  border-radius: 999px; text-align: center; padding: 0 3px;
}

/* inbox list item (mobile) */
.m-inbox-card { padding: 13px 0; border-bottom: 1px solid hsl(var(--border)); }
.m-ic-top { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.m-ic-name { font-weight: 650; font-size: 13.5px; }
.m-ic-email { font-size: 11px; color: hsl(var(--muted-foreground)); }
.m-ic-time { margin-left: auto; font-size: 11px; color: hsl(var(--muted-foreground)); white-space: nowrap; }
.m-ic-tagrow { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.m-ic-subj { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.m-ic-snippet {
  font-size: 12.5px; color: hsl(var(--muted-foreground)); margin-bottom: 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.m-ic-foot { display: flex; align-items: center; justify-content: space-between; }
.m-ic-foot .m-ic-ctx { font-size: 12px; }
.m-ic-foot .m-ic-ctx b { font-weight: 650; }
.m-ic-foot .m-ic-ctx span { color: hsl(var(--muted-foreground)); }

/* conversation (mobile) */
.m-context-strip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: hsl(var(--muted) / 0.45); border-radius: var(--radius); margin-bottom: 16px; }
.m-context-strip .m-cs-name { font-size: 13.5px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.m-context-strip .m-cs-since { font-size: 11px; color: hsl(var(--muted-foreground)); margin-top: 1px; }
.m-context-strip .m-cs-stats { margin-left: auto; text-align: right; }
.m-context-strip .m-cs-stats .v { font-size: 13.5px; font-weight: 650; }
.m-context-strip .m-cs-stats .l { font-size: 10.5px; color: hsl(var(--muted-foreground)); }

/* customer profile (mobile) */
.m-profile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.m-stat-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }

/* customers list (mobile) */
.m-cust-card { padding: 13px 0; border-bottom: 1px solid hsl(var(--border)); }
.m-cust-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.m-cust-top .m-cust-name { font-weight: 650; font-size: 13.5px; }
.m-cust-top .m-cust-email { font-size: 11px; color: hsl(var(--muted-foreground)); }
.m-cust-top .m-cust-status { margin-left: auto; }
.m-cust-metrics { display: flex; gap: 18px; font-size: 12px; }
.m-cust-metrics .m-cm-l { color: hsl(var(--muted-foreground)); font-size: 10.5px; }
.m-cust-metrics .m-cm-v { font-weight: 650; font-size: 13px; margin-top: 1px; }

/* order cards (mobile, customer profile) */
.m-order-card { padding: 11px 0; border-bottom: 1px solid hsl(var(--border)); }
.m-order-card:last-child { border-bottom: none; }
.m-order-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.m-order-top .oid { font-weight: 650; font-size: 13px; }
.m-order-top .ototal { font-weight: 650; font-size: 13px; }
.m-order-meta { font-size: 11.5px; color: hsl(var(--muted-foreground)); }

/* zoom helper: 2x variant appends ?2x to the URL */
