/* ============================================================
   Pathmeda Store Delivery — Prototype v2 Styles
   Design tokens locked in docs/README.md
   Pattern reference: acemica/surfex-app/demo/styles.css
   ============================================================ */

:root {
  /* Fresh Green (default) */
  --primary:#0C831F; --primary-dark:#06691A; --primary-light:#DFF5E2;
  --accent:#F8CB46; --accent-2:#FFF9D6;

  --ink-950:#1E232B; --ink-800:#2C333D; --ink-600:#5C6470;
  --ink-400:#939AA5; --ink-300:#BAC0C8; --ink-200:#D3D6DB; --ink-100:#E5E7EA;
  --paper:#F7F8F9; --paper-alt:#FFFFFF;
  --success:#1E8F5A; --success-bg:#DFF3E9;
  --warn:#C77B1B; --warn-bg:#FBEAD3;
  --danger:#B0331A; --danger-bg:#F7DED5;
  --info:#2C6ECB; --info-bg:#DDE8F8;

  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-xl:22px; --r-pill:999px;
  --shadow-sm:0 1px 2px rgba(30,35,43,.06);
  --shadow-md:0 4px 12px rgba(30,35,43,.08);
  --shadow-lg:0 12px 32px rgba(30,35,43,.10);

  --font-ui:'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Alt themes */
[data-theme="purple-yellow"] {
  --primary:#7B2CBF; --primary-dark:#5A189A; --primary-light:#EDE0FA;
  --accent:#FFEA00; --accent-2:#FFF6B0;
}
[data-theme="sunset-orange"] {
  --primary:#FC8019; --primary-dark:#D26608; --primary-light:#FFEDD9;
  --accent:#60B246; --accent-2:#FFF3E6;
}
[data-theme="ocean-blue"] {
  --primary:#1E6BFF; --primary-dark:#124BC7; --primary-light:#DCE8FF;
  --accent:#00C2A8; --accent-2:#E4FBF7;
}
[data-theme="coral-pink"] {
  --primary:#E63976; --primary-dark:#B01F53; --primary-light:#FDDCE7;
  --accent:#F5B968; --accent-2:#FFF0DC;
}
[data-theme="emerald-teal"] {
  --primary:#0F766E; --primary-dark:#0B5951; --primary-light:#D0F0EC;
  --accent:#F59E0B; --accent-2:#FEF3C7;
}
[data-theme="charcoal-gold"] {
  --primary:#2C333D; --primary-dark:#1E232B; --primary-light:#E5E7EA;
  --accent:#D4A017; --accent-2:#FFF3D6;
}
[data-theme="rose-wine"] {
  --primary:#9F1239; --primary-dark:#6D0F27; --primary-light:#FDE0E8;
  --accent:#E8B4C6; --accent-2:#FBF3F6;
}
[data-theme="forest-cream"] {
  --primary:#166534; --primary-dark:#0F4A23; --primary-light:#DFF3E4;
  --accent:#DDA15E; --accent-2:#FFF6E0;
}
[data-theme="slate-steel"] {
  --primary:#334155; --primary-dark:#1E293B; --primary-light:#E2E8F0;
  --accent:#94A3B8; --accent-2:#F1F5F9;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: var(--font-ui);
  color: var(--ink-950);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
img, svg { display:block; max-width:100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select {
  font: inherit; color: inherit;
  background: var(--paper-alt);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 10px 14px; outline: none; width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
::placeholder { color: var(--ink-400); }

/* ==== Typography ==== */
.display  { font-size: 34px; line-height: 40px; font-weight:700; letter-spacing:-.5px; }
.h1       { font-size: 24px; line-height: 32px; font-weight: 700; }
.h2       { font-size: 20px; line-height: 28px; font-weight: 600; }
.h3       { font-size: 17px; line-height: 24px; font-weight: 600; }
.body     { font-size: 15px; line-height: 22px; }
.body-strong { font-size:15px; line-height:22px; font-weight:600; }
.small    { font-size: 13px; line-height: 18px; color: var(--ink-600); }
.micro    { font-size: 11px; line-height: 16px; font-weight:600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-600); }
.muted    { color: var(--ink-600); }
.dim      { color: var(--ink-400); }
.mono     { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing:.02em; }
.right    { text-align: right; }

/* ==== Layout helpers ==== */
.row { display:flex; gap:12px; align-items:center; }
.row.between { justify-content:space-between; }
.row.gap-8 { gap: 8px; }
.row.gap-4 { gap: 4px; }
.col { display:flex; flex-direction:column; gap:12px; }
.grow { flex:1; }
.center { display:flex; align-items:center; justify-content:center; }
.wrap { flex-wrap: wrap; }
.mb-4 { margin-bottom:4px; } .mb-8 { margin-bottom:8px; } .mb-12 { margin-bottom:12px; } .mb-16 { margin-bottom:16px; } .mb-24 { margin-bottom:24px; }
.mt-8 { margin-top:8px; } .mt-12 { margin-top:12px; } .mt-16 { margin-top:16px; } .mt-24 { margin-top:24px; }

/* ==== Buttons ==== */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:44px; padding: 0 20px; border-radius: var(--r-md);
  border:1px solid transparent; background:transparent; color: var(--ink-950);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 0 0 3px var(--primary-light); }
.btn-accent { background: var(--accent); color: var(--ink-950); }
.btn-ghost { background: transparent; border-color: var(--ink-200); color: var(--ink-950); }
.btn-ghost:hover { border-color: var(--ink-950); background: var(--paper-alt); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { height:34px; padding: 0 14px; font-size:13px; border-radius: var(--r-sm); }
.btn-lg { height:52px; padding: 0 24px; font-size:15px; }
.btn-block { width:100%; }
.btn-icon { width:40px; height:40px; padding:0; border-radius: var(--r-pill); }

/* ==== Cards / surfaces ==== */
.card {
  background: var(--paper-alt);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 20px;
}
.card.shadow { box-shadow: var(--shadow-sm); }
.hairline { height:1px; background: var(--ink-200); border:0; margin: 16px 0; }

/* ==== Chips ==== */
.chip {
  display:inline-flex; align-items:center; gap:6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase;
  background: var(--ink-100); color: var(--ink-800);
}
.chip.brand   { background: var(--primary-light); color: var(--primary-dark); }
.chip.success { background: var(--success-bg); color: var(--success); }
.chip.warn    { background: var(--warn-bg); color: var(--warn); }
.chip.danger  { background: var(--danger-bg); color: var(--danger); }
.chip.info    { background: var(--info-bg); color: var(--info); }
.chip.dark    { background: var(--ink-950); color: var(--paper); }
.chip.large   { padding: 6px 14px; font-size:12px; }

.status-dot { width:8px; height:8px; border-radius:50%; background: currentColor; display:inline-block; }
.chip.live::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }

/* ==== Icons ==== */
.i { width:20px; height:20px; stroke: currentColor; fill:none; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.i-lg { width:24px; height:24px; }
.i-xl { width:32px; height:32px; }
.i-sm { width:16px; height:16px; }

/* ==== Avatar ==== */
.avatar {
  width:40px; height:40px; border-radius:50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:700; font-size:14px; flex-shrink:0;
}
.avatar-sm { width:32px; height:32px; font-size:12px; }
.avatar-lg { width:56px; height:56px; font-size:18px; }

/* ==== Admin shell (web personas) ==== */
.admin-shell { display:grid; grid-template-columns: 260px 1fr; min-height:100vh; background: var(--paper); }
.side {
  background: var(--ink-950); color: var(--paper); padding: 20px 16px 12px;
  display:flex; flex-direction:column; gap:6px; position:sticky; top:0; height:100vh;
}
.side .side-scroll { flex:1; overflow-y:auto; margin: 0 -6px; padding: 0 6px; min-height:0; }
.side .side-scroll::-webkit-scrollbar { width: 4px; }
.side .side-scroll::-webkit-scrollbar-thumb { background: var(--ink-800); border-radius: 4px; }
.side .brand { display:flex; align-items:center; gap:10px; padding: 4px 4px 16px; border-bottom:1px solid var(--ink-800); margin-bottom:12px; }
.side .brand img { height: 40px; width: auto; }
.side .grp-label { font-size:10px; color: var(--ink-400); letter-spacing:.1em; text-transform:uppercase; margin: 16px 6px 4px; font-weight:700; }
.side .nav-item {
  display:flex; align-items:center; gap:10px; padding: 10px 12px; border-radius: var(--r-md);
  color: var(--ink-300); font-weight:500; font-size:13.5px;
  cursor:pointer; background:transparent; border:0; border-left: 3px solid transparent;
  text-align:left; width:100%;
}
.side .nav-item:hover { background: var(--ink-800); color: var(--paper); }
.side .nav-item.active { background: var(--ink-800); color: var(--paper); border-left-color: var(--primary); padding-left: 9px; }
.side .nav-item .i { width:16px; height:16px; opacity:.8; }
.side .nav-item.active .i { opacity:1; }
.side .side-foot { padding: 12px 8px 4px; border-top:1px solid var(--ink-800); font-size:11px; color: var(--ink-400); margin-top:8px; }

.main { display:flex; flex-direction:column; min-width:0; }
.topbar {
  display:flex; align-items:center; gap:16px; padding: 12px 24px;
  background: var(--paper-alt); border-bottom: 1px solid var(--ink-200);
  position: sticky; top: 0; z-index: 5;
}
.topbar .search { flex:1; max-width: 460px; position:relative; }
.topbar .search input { padding-left: 40px; height: 40px; }
.topbar .search .i { position:absolute; left: 12px; top: 10px; color: var(--ink-400); }
.topbar .actions { margin-left:auto; display:flex; align-items:center; gap:10px; }
.topbar .persona-switch { max-width: 160px; height: 34px; padding: 0 10px; font-size: 12px; }
.topbar .avatar-block { display:flex; align-items:center; gap:8px; padding:4px 10px 4px 4px; border:1px solid var(--ink-200); border-radius: var(--r-pill); }

.a-screen { display:none; padding: 20px 24px 40px; flex:1; overflow-y:auto; }
.a-screen.active { display:block; }
.a-header { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom: 20px; flex-wrap:wrap; }
.a-header h1 { margin:0; font-size:22px; font-weight:700; }
.a-header .sub { color: var(--ink-600); font-size: 13px; margin-top: 4px; }

/* Tile grid */
.tiles { display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.tiles-6 { display:grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 20px; }
.tile { background: var(--paper-alt); border:1px solid var(--ink-200); border-radius: var(--r-lg); padding: 16px 18px; }
.tile .tlbl { font-size:11px; color: var(--ink-600); text-transform:uppercase; letter-spacing:.06em; font-weight:700; }
.tile .tval { font-size:24px; font-weight:700; margin-top:6px; }
.tile.brand { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border:0; }
.tile.brand .tlbl, .tile.brand .delta { color: rgba(255,255,255,0.85); }
.tile.warn .tval { color: var(--warn); }
.tile.danger .tval { color: var(--danger); }
.tile.success .tval { color: var(--success); }
.tile .delta { font-size:11px; margin-top:4px; color: var(--ink-600); }
.tile.click { cursor:pointer; transition: all .15s; }
.tile.click:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }

/* Panels */
.panels { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panels-3 { display:grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.panel { background: var(--paper-alt); border:1px solid var(--ink-200); border-radius: var(--r-lg); overflow:hidden; }
.panel .p-head { padding: 14px 18px; border-bottom: 1px solid var(--ink-200); display:flex; align-items:center; justify-content:space-between; }
.panel .p-head h3 { margin:0; font-size:15px; font-weight:600; }
.panel .p-body { padding: 4px 0; }
.panel .p-body-pad { padding: 16px 18px; }

.list-row { display:flex; align-items:center; padding: 12px 18px; gap:12px; border-bottom:1px solid var(--ink-100); }
.list-row:last-child { border-bottom:0; }
.list-row .l-main { flex:1; min-width:0; }
.list-row .l-main .l-title { font-weight:600; font-size:14px; }
.list-row .l-main .l-sub { font-size:12px; color: var(--ink-600); margin-top:2px; }

/* Table */
.table-wrap { background: var(--paper-alt); border:1px solid var(--ink-200); border-radius: var(--r-lg); overflow:hidden; }
.table-toolbar { display:flex; gap:8px; padding:14px 16px; border-bottom:1px solid var(--ink-200); align-items:center; flex-wrap:wrap; }
.table-toolbar .search { flex:1; max-width:280px; position:relative; }
.table-toolbar .search .i { position:absolute; left:12px; top:12px; color:var(--ink-400); }
.table-toolbar .search input { padding-left:38px; height: 36px; }
.select { height: 36px; padding: 0 12px; max-width: 180px; }
table.dtl { width:100%; border-collapse: collapse; font-size: 13px; }
table.dtl th { background: #F1F3F6; color: var(--ink-600); font-weight: 600; text-transform: uppercase; letter-spacing:.04em; font-size:10.5px; padding: 10px 14px; text-align:left; border-bottom:1px solid var(--ink-200); }
table.dtl td { padding: 12px 14px; border-bottom: 1px solid var(--ink-100); vertical-align: middle; }
table.dtl tr:last-child td { border-bottom:0; }
table.dtl tr:hover td { background: var(--paper); }
table.dtl .num { text-align: right; font-variant-numeric: tabular-nums; }

.thumb, .p-thumb { border-radius: var(--r-sm); background-size:cover; background-position:center; flex-shrink:0; box-shadow: inset 0 0 0 1px var(--ink-200); }

/* Tabs (horizontal) */
.tabs { display:flex; gap:20px; border-bottom: 1px solid var(--ink-200); margin-bottom: 16px; overflow-x:auto; }
.tabs::-webkit-scrollbar { display:none; }
.tabs button { border:0; background:transparent; padding: 12px 0; font-weight:600; color: var(--ink-400); border-bottom: 2px solid transparent; cursor:pointer; white-space:nowrap; font-size:13.5px; }
.tabs button.active { color: var(--ink-950); border-bottom-color: var(--primary); }
.tabs .pill { background: var(--ink-100); color: var(--ink-800); border-radius: var(--r-pill); padding: 2px 8px; margin-left: 6px; font-size:11px; }
.tabs button.active .pill { background: var(--primary-light); color: var(--primary-dark); }

/* Form */
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.field label { display:block; font-size:12px; color: var(--ink-600); font-weight:600; margin-bottom: 6px; }
.field .hint { font-size:11px; color: var(--ink-400); margin-top: 4px; }
.field.wide { grid-column: 1 / -1; }

/* Modal / overlay */
.overlay { position:fixed; inset:0; background: rgba(30,35,43,0.6); display:none; align-items:center; justify-content:center; z-index:100; padding: 20px; }
.overlay.active { display:flex; }
.modal {
  background: var(--paper-alt); border-radius: var(--r-lg); width: 100%; max-width: 560px;
  max-height: 90vh; display:flex; flex-direction:column; box-shadow: var(--shadow-lg);
}
.modal .m-head { padding: 16px 20px; border-bottom: 1px solid var(--ink-200); display:flex; justify-content:space-between; align-items:center; }
.modal .m-head h2 { margin:0; font-size:16px; font-weight:600; }
.modal .m-body { padding: 18px 20px; overflow-y: auto; }
.modal .m-foot { padding: 12px 20px; border-top: 1px solid var(--ink-200); display:flex; justify-content:flex-end; gap: 8px; }

/* Toast */
.toast-stack { position:fixed; top: 20px; right: 20px; z-index: 200; display:flex; flex-direction:column; gap:8px; pointer-events:none; }
.toast {
  background: var(--ink-950); color: var(--paper); padding: 12px 16px; border-radius: var(--r-md);
  min-width: 260px; max-width: 360px; box-shadow: var(--shadow-lg); pointer-events:auto;
  animation: toast-in .3s ease;
}
.toast .t-title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.toast .t-body { font-size: 12px; opacity: 0.85; }
@keyframes toast-in { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Timeline */
.timeline { padding-left: 6px; }
.tl-item { display:flex; gap: 12px; padding-bottom: 16px; position: relative; }
.tl-item:not(:last-child)::before { content:""; position:absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--ink-200); }
.tl-item.done:not(:last-child)::before { background: var(--primary); }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-200); display:grid; place-items:center; flex-shrink:0; font-size: 11px; font-weight:700; }
.tl-item.done .tl-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.tl-item.active .tl-dot { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.tl-body { padding-top: 2px; }
.tl-body .title { font-weight: 600; font-size: 13px; }
.tl-body .time { font-size: 11px; color: var(--ink-400); margin-top: 2px; }

/* ==== Mobile phone frame ==== */
.stage {
  min-height:100vh; display:flex; gap:28px; padding: 30px 20px;
  align-items:flex-start; justify-content:center; flex-wrap:wrap;
  background: linear-gradient(180deg, var(--paper) 0%, #E5E7EA 100%);
}
.stage-side { flex: 0 0 240px; max-width: 240px; position:sticky; top:30px; }
.stage-side .side-brand { display:flex; align-items:center; gap:10px; margin-bottom: 20px; }
.stage-side .side-brand img { height: 34px; }
.stage-side h4 { margin: 20px 0 10px; font-size: 12px; font-weight:700; color: var(--ink-600); letter-spacing:.08em; text-transform:uppercase; }
.stage-side .flow-item {
  display:flex; align-items:center; gap:10px; padding: 10px 12px; border-radius: var(--r-md);
  background: var(--paper-alt); border:1px solid var(--ink-200); margin-bottom:6px;
  cursor:pointer; transition: all .15s; font-size: 13px; font-weight: 500;
}
.stage-side .flow-item:hover { border-color: var(--ink-950); }
.stage-side .flow-item.active { background: var(--ink-950); color: var(--paper); border-color: var(--ink-950); }
.stage-side .flow-item .idx { font-weight:700; opacity:.6; width:22px; font-size:12px; }

.phone {
  width: 380px; height: 780px; background: var(--ink-950); border-radius: 44px;
  padding: 12px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--ink-800) inset;
  flex-shrink:0;
}
.phone-screen {
  width:100%; height:100%; background: var(--paper); border-radius: 34px;
  overflow: hidden; position: relative;
  display:flex; flex-direction:column;
}
.phone-notch {
  position:absolute; top:8px; left:50%; transform: translateX(-50%);
  width: 100px; height: 22px; background: var(--ink-950); border-radius: 0 0 14px 14px; z-index:10;
}
.phone-status { padding: 12px 20px 4px; display:flex; justify-content:space-between; font-size: 12px; font-weight:600; }

.m-screen { display:none; flex:1; flex-direction:column; overflow:hidden; }
.m-screen.active { display:flex; }
.m-topbar {
  padding: 6px 18px 12px; display:flex; align-items:center; gap:12px; background: var(--paper-alt);
  border-bottom: 1px solid var(--ink-100);
}
.m-topbar .back { width:32px; height:32px; border-radius: var(--r-pill); border:1px solid var(--ink-200); background: var(--paper); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.m-topbar .title { font-weight:600; font-size:15px; flex:1; }
.m-body { flex:1; overflow-y:auto; padding: 12px 18px 90px; }
.m-body.no-tabbar { padding-bottom: 20px; }
.m-body::-webkit-scrollbar { display:none; }

.m-tabbar {
  position:absolute; bottom:0; left:0; right:0;
  height:64px; padding: 8px 12px 14px; background: var(--paper-alt);
  border-top: 1px solid var(--ink-100); display:flex; justify-content:space-around;
}
.m-tab { flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; color: var(--ink-400); padding:4px 0; cursor:pointer; background:transparent; border:0; font-family: inherit; }
.m-tab .lbl { font-size:10px; font-weight:600; }
.m-tab.active { color: var(--primary); }

.m-sticky-bar {
  position:absolute; left:0; right:0; bottom:0;
  padding: 12px 18px 18px; background: var(--paper-alt); border-top: 1px solid var(--ink-100);
}

/* Product card mobile */
.p-card { display:flex; gap:12px; padding:10px; background: var(--paper-alt); border-radius: var(--r-md); border:1px solid var(--ink-200); margin-bottom:8px; cursor:pointer; transition: all .15s; }
.p-card:hover { border-color: var(--primary); }
.p-card img.p-thumb { width:64px; height:64px; border-radius: var(--r-sm); flex-shrink:0; }
.p-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.p-info .name { font-weight:600; font-size:13px; }
.p-info .sub { font-size:11px; color: var(--ink-600); }
.p-info .row { margin-top: 6px; }

/* Product tile (grid) mobile */
.p-tile { background: var(--paper-alt); border-radius: var(--r-md); border:1px solid var(--ink-200); padding: 8px; position: relative; }
.p-tile img { width: 100%; aspect-ratio: 1; border-radius: var(--r-sm); background: var(--ink-100); }
.p-tile .name { font-size: 12px; font-weight: 600; margin-top: 6px; line-height: 1.3; min-height: 30px; }
.p-tile .qty { font-size: 10px; color: var(--ink-400); margin-top: 2px; }
.p-tile .row { justify-content: space-between; margin-top: 6px; }
.p-tile .price { font-weight: 700; font-size: 13px; }
.p-tile .add-btn { border: 1px solid var(--primary); color: var(--primary); background: transparent; padding: 3px 12px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.p-tile .sponsored { position: absolute; top: 4px; left: 4px; background: var(--accent); color: var(--ink-950); font-size: 8px; padding: 2px 6px; border-radius: 3px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

/* Category tile mobile */
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.cat-tile img { width: 68px; height: 68px; border-radius: var(--r-md); }
.cat-tile .cn { font-size: 11px; font-weight: 600; color: var(--ink-800); text-align: center; }

/* Countdown */
.countdown { display:inline-flex; align-items:baseline; gap:4px; font-weight:700; font-variant-numeric: tabular-nums; }
.countdown .n { font-size:18px; }
.countdown .u { font-size:11px; color: currentColor; opacity:.7; margin-right:4px; }
.countdown.warn { color: var(--warn); }
.countdown.danger { color: var(--danger); }

/* Map container */
.map-view { background: var(--ink-100); border-radius: var(--r-md); position: relative; overflow: hidden; }
.map-view img.map-bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-pin { position: absolute; transform: translate(-50%, -100%); font-size: 22px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35)); z-index: 3; }
.map-pin.pulse { animation: pin-pulse 1.6s infinite ease-out; }
@keyframes pin-pulse { 0% { transform: translate(-50%,-100%) scale(1); } 50% { transform: translate(-50%,-100%) scale(1.15); } 100% { transform: translate(-50%,-100%) scale(1); } }
.map-route { position: absolute; z-index: 2; }
.map-eta {
  position: absolute; top: 12px; left: 12px; z-index: 5;
  background: var(--paper-alt); border: 1px solid var(--ink-200); border-radius: var(--r-md);
  padding: 8px 12px; box-shadow: var(--shadow-md);
  font-size: 12px; font-weight: 600;
}
.map-eta .big { font-size: 18px; font-weight: 700; color: var(--primary); }

/* Persona landing */
.landing { max-width: 1080px; margin: 0 auto; padding: 40px 24px 24px; }
.landing .brand-row { display:flex; align-items:center; gap:14px; margin-bottom: 20px; }
.landing h1 { font-size: 34px; font-weight: 700; margin: 20px 0 8px; max-width: 780px; }
.landing .lede { font-size: 15px; line-height: 22px; color: var(--ink-600); max-width: 720px; margin-bottom: 24px; }
.demo-info { background: var(--paper-alt); border:1px solid var(--ink-200); border-radius: var(--r-md); padding: 14px 18px; margin: 20px 0 28px; font-size: 13px; color: var(--ink-600); }
.demo-info strong { color: var(--ink-950); }
.tile-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .tile-grid { grid-template-columns: 1fr; } }
.persona-tile { background: var(--paper-alt); border:1px solid var(--ink-200); border-radius: var(--r-lg); padding: 24px; text-decoration:none; color:inherit; display:block; transition: all .15s; }
.persona-tile:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.persona-tile .ic-box { width:44px; height:44px; border-radius: var(--r-md); background: var(--primary-light); color: var(--primary-dark); display:grid; place-items:center; margin-bottom: 14px; }
.persona-tile h3 { font-size: 17px; margin: 0 0 6px; }
.persona-tile p { color: var(--ink-600); font-size: 13px; margin: 0 0 12px; }
.persona-tile .flow-hint { font-size: 11px; color: var(--primary-dark); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* Footer */
.site-footer {
  padding: 20px; text-align: center; font-size: 11px;
  color: var(--ink-400); letter-spacing: .08em; text-transform: uppercase;
  background: transparent; border-top: 1px solid var(--ink-100);
}
.site-footer strong { color: var(--ink-800); font-weight: 700; }

/* Theme swatch bar */
.theme-bar {
  position: fixed; bottom: 20px; right: 20px; z-index: 300;
  background: var(--paper-alt); border: 1px solid var(--ink-200); border-radius: var(--r-pill);
  padding: 6px 8px; display:flex; gap: 6px; box-shadow: var(--shadow-lg); align-items:center;
}
.theme-bar .tl { font-size: 10px; color: var(--ink-600); padding: 0 6px; font-weight: 600; letter-spacing:.06em; text-transform: uppercase; }
.theme-swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor:pointer; }
.theme-swatch:hover { transform: scale(1.1); }
.theme-swatch.on { border-color: var(--ink-950); }
.tsw-green { background: linear-gradient(135deg,#0C831F,#F8CB46); }
.tsw-purple { background: linear-gradient(135deg,#7B2CBF,#FFEA00); }
.tsw-orange { background: linear-gradient(135deg,#FC8019,#60B246); }
.tsw-blue { background: linear-gradient(135deg,#1E6BFF,#00C2A8); }
.tsw-coral { background: linear-gradient(135deg,#E63976,#F5B968); }
.tsw-emerald { background: linear-gradient(135deg,#0F766E,#F59E0B); }
.tsw-charcoal { background: linear-gradient(135deg,#2C333D,#D4A017); }
.tsw-rose { background: linear-gradient(135deg,#9F1239,#E8B4C6); }
.tsw-forest { background: linear-gradient(135deg,#166534,#DDA15E); }
.tsw-slate { background: linear-gradient(135deg,#334155,#94A3B8); }

/* Utility */
.hide { display: none !important; }
.show { display: block !important; }
.gap-6 { gap:6px; } .gap-10 { gap:10px; } .gap-16 { gap:16px; } .gap-20 { gap:20px; }
.pad-16 { padding:16px; } .pad-20 { padding:20px; }
.br-md { border-radius: var(--r-md); }
.br-lg { border-radius: var(--r-lg); }
.bg-primary-light { background: var(--primary-light); }
.text-primary { color: var(--primary); }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .tiles, .tiles-6 { grid-template-columns: repeat(2, 1fr); }
  .panels, .panels-3 { grid-template-columns: 1fr; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
}
