/* ============================================================
   CUSTOMER HUB · css/ch.css — mobile-first design system.
   Token approach mirrors groomskart/css/gk.css so the two apps feel like
   one family, but this file is independent (no legacy aliases to carry).
   ============================================================ */

:root{
  color-scheme: light;
  --bg:#F2F2F7;
  --surface:rgba(255,255,255,0.72);
  --surface-solid:#FFFFFF;
  --surface-2:#FFFFFF;
  --fill:rgba(118,118,128,0.12);
  --fill-strong:rgba(118,118,128,0.20);
  --text:#1C1C1E;
  --text-2:rgba(60,60,67,0.60);
  --text-3:rgba(60,60,67,0.38);
  --separator:rgba(60,60,67,0.18);
  --separator-strong:rgba(60,60,67,0.29);
  --accent:#007AFF;
  --accent-ink:#FFFFFF;
  --gold-soft:rgba(0,122,255,0.10);
  --red:#FF3B30;
  --green:#34C759;
  --orange:#FF9500;
  --shadow-1:0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-2:0 8px 30px rgba(0,0,0,0.10);
  --shadow-3:0 24px 70px rgba(0,0,0,0.18);
  --r-xs:8px; --r-sm:10px; --r:16px; --r-lg:20px; --r-xl:28px; --r-pill:999px;
  --font-ui:-apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --blur:blur(20px) saturate(180%);
  --ease:cubic-bezier(.32,.72,0,1);
  --dur:.28s;
  --tap:48px;
  --nav-h:64px;
}

:root[data-theme="dark"]{
  color-scheme: dark;
  --bg:#000000;
  --surface:rgba(28,28,30,0.72);
  --surface-solid:#1C1C1E;
  --surface-2:#2C2C2E;
  --fill:rgba(118,118,128,0.24);
  --fill-strong:rgba(118,118,128,0.32);
  --text:#FFFFFF;
  --text-2:rgba(235,235,245,0.60);
  --text-3:rgba(235,235,245,0.38);
  --separator:rgba(180,150,80,0.28);
  --separator-strong:rgba(196,164,90,0.42);
  /* premium dark mode: gold instead of blue, matching groomskart's own dark
     theme — accent-ink flips to a dark ink so text on a solid gold fill
     stays legible (white-on-gold reads washed out). */
  --accent:#D4AF37;
  --accent-ink:#1C1C1E;
  --gold-soft:rgba(212,175,55,0.16);
  --red:#FF453A;
  --green:#30D158;
  --orange:#FF9F0A;
  --shadow-1:0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
  --shadow-2:0 8px 30px rgba(0,0,0,0.45);
  --shadow-3:0 24px 70px rgba(0,0,0,0.6);
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]):not([data-theme="dark"]){
    color-scheme: dark;
    --bg:#000000; --surface:rgba(28,28,30,0.72); --surface-solid:#1C1C1E;
    --surface-2:#2C2C2E; --fill:rgba(118,118,128,0.24); --fill-strong:rgba(118,118,128,0.32);
    --text:#FFFFFF; --text-2:rgba(235,235,245,0.60); --text-3:rgba(235,235,245,0.38);
    --separator:rgba(180,150,80,0.28); --separator-strong:rgba(196,164,90,0.42);
    --accent:#D4AF37; --accent-ink:#1C1C1E; --gold-soft:rgba(212,175,55,0.16);
    --red:#FF453A; --green:#30D158; --orange:#FF9F0A;
    --shadow-1:0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
    --shadow-2:0 8px 30px rgba(0,0,0,0.45); --shadow-3:0 24px 70px rgba(0,0,0,0.6);
  }
}
@supports not (backdrop-filter: blur(1px)){ :root{ --surface:var(--surface-solid); } }

/* ---------- base ---------- */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html, body{ max-width:100%; overflow-x:hidden; }
body{
  background:var(--bg); color:var(--text); font-family:var(--font-ui);
  -webkit-font-smoothing:antialiased; margin:0;
  padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom));
  transition:background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
/* ambient wash — soft, fixed color blobs behind everything so the
   translucent glass surfaces (cards, sheets, nav) actually have something
   to blur; without this, --surface's translucency just looks like a flat
   dim panel over a flat background. Screen-only, and skipped entirely for
   anyone who asked for reduced motion since it's a purely decorative,
   fixed (non-animating) layer that still costs a compositing pass. */
@media screen{
  body::before{
    content:''; position:fixed; inset:0; z-index:-1; pointer-events:none;
    background:
      radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
      radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--green) 14%, transparent), transparent 46%),
      radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%);
    opacity:.5;
  }
  :root[data-theme="dark"] body::before{ opacity:.28; }
}
.hidden{ display:none !important; }
button, input, textarea, select{ font-family:inherit; }
a{ color:var(--accent); text-decoration:none; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
@media (prefers-reduced-motion: reduce){ *{ transition:none !important; animation:none !important; } html{ scroll-behavior:auto; } }
*{ scrollbar-width:thin; scrollbar-color:var(--separator-strong) transparent; }
*::-webkit-scrollbar{ width:8px; height:8px; }
*::-webkit-scrollbar-thumb{ background:var(--separator-strong); border-radius:99px; }

@keyframes chFadeUp{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
.ch-card, .stat-tile, .cust-card, .bill-card{ animation:chFadeUp .32s var(--ease) both; }
.ch-card:nth-child(2), .stat-tile:nth-child(2), .cust-card:nth-child(2){ animation-delay:.03s; }
.ch-card:nth-child(3), .stat-tile:nth-child(3), .cust-card:nth-child(3){ animation-delay:.06s; }
.ch-card:nth-child(4), .stat-tile:nth-child(4), .cust-card:nth-child(4){ animation-delay:.09s; }
.ch-card:nth-child(n+5), .cust-card:nth-child(n+5){ animation-delay:.12s; }

/* ---------- layout shell ---------- */
.ch-app{ max-width:640px; margin:0 auto; padding:0 16px; }
.ch-header{
  position:sticky; top:0; z-index:20; padding:14px 60px 10px 16px;
  margin:0 -16px; /* break out of .ch-app's side padding so the sticky bar
    (background + border-bottom + the fixed toggle sitting at the true
    viewport edge) actually spans edge-to-edge instead of looking inset */
  background:var(--surface); -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur);
  border-bottom:1px solid var(--separator);
}
.ch-header-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; max-width:640px; margin:0 auto; }
.ch-brand{ font-weight:800; font-size:1.05rem; letter-spacing:-0.01em; transition:color var(--dur) var(--ease); }
:root[data-theme="dark"] .ch-brand{ color:var(--accent); }
.ch-brand small{ color:var(--text-2); font-weight:600; font-size:0.65rem; letter-spacing:0.08em; text-transform:uppercase; margin-left:4px; }
.ch-greeting{ color:var(--text-2); font-size:0.85rem; margin:2px 0 0; }
.ch-back{ display:inline-flex; align-items:center; gap:6px; color:var(--text); font-weight:600; min-height:var(--tap); }

.ch-main{ padding:16px 0 32px; }
.ch-section-title{
  font-size:0.72rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--text-2); margin:24px 0 10px; padding:0 2px;
}
.ch-section-title:first-child{ margin-top:0; }

/* ---------- bottom nav ---------- */
.ch-nav{
  position:fixed; left:0; right:0; bottom:0; z-index:30; height:var(--nav-h);
  padding-bottom:env(safe-area-inset-bottom);
  background:var(--surface); -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur);
  border-top:1px solid var(--separator);
  display:flex; align-items:stretch; justify-content:space-around;
}
.ch-nav-item{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  color:var(--text-3); font-size:0.65rem; font-weight:600; min-height:var(--tap);
  transition:color .15s var(--ease), transform .15s var(--ease);
}
.ch-nav-item .ch-nav-icon{ font-size:1.25rem; line-height:1; }
.ch-nav-item.active{ color:var(--accent); }
:root[data-theme="dark"] .ch-nav-item.active .ch-nav-icon{ filter:drop-shadow(0 0 6px var(--gold-soft)); }
.ch-nav-item:active{ transform:scale(.92); }

/* the desktop sidebar only gets laid out inside the >=900px block below —
   on mobile it must stay hidden, not just unstyled (an unstyled <aside>
   full of nav links renders as a plain link list above the header). */
.ch-sidebar{ display:none; }
/* customers.html's desktop detail pane — same reasoning: mobile never
   shows it (it navigates to customer.html instead), so it must default
   hidden, not just unstyled. */
.ch-split-detail{ display:none; }

@media (min-width: 900px){
  body{ padding-bottom:0; }
  .ch-nav{ display:none; }
  .ch-desktop-shell{ display:flex; min-height:100vh; }
  .ch-sidebar{
    width:240px; flex-shrink:0; padding:20px 14px; border-right:1px solid var(--separator);
    display:flex; flex-direction:column; gap:4px; position:sticky; top:0; height:100vh;
  }
  .ch-sidebar .ch-brand{ padding:0 10px 20px; }
  .ch-sidebar-item{
    display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:var(--r-sm);
    color:var(--text-2); font-weight:600; font-size:0.9rem;
  }
  .ch-sidebar-item.active{ background:var(--fill); color:var(--text); }
  :root[data-theme="dark"] .ch-sidebar-item.active{ background:var(--gold-soft); color:var(--accent); }
  .ch-sidebar-item:hover{ background:var(--fill); }
  .ch-app{ max-width:none; flex:1; padding:24px 32px; margin:0; }
  .ch-header{ display:none; }

  /* two-pane master/detail — customers.html only (ch-split-detail is
     absent/empty on every other page, so this is a no-op there) */
  .ch-split{ display:flex; align-items:flex-start; gap:28px; }
  .ch-split-list{ width:400px; flex-shrink:0; max-height:calc(100vh - 48px); overflow-y:auto; padding-right:4px; }
  .ch-split-detail{ display:block; flex:1; min-width:0; position:sticky; top:24px; max-height:calc(100vh - 48px); overflow-y:auto; }
}

/* ---------- cards ---------- */
.ch-card{
  background:var(--surface); -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur);
  border:1px solid var(--separator); border-radius:var(--r); padding:16px;
  box-shadow:var(--shadow-1); margin-bottom:12px;
}
/* every translucent surface gets the same glass blur, not just .ch-card —
   without it these just look like flat dim panels over the ambient wash. */
.ch-card, .stat-tile, .opp-row, .cust-card, .bill-card{
  -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur);
}

/* ---------- stat tiles ---------- */
.stat-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.stat-tile{
  background:var(--surface); border:1px solid var(--separator); border-radius:var(--r);
  padding:16px; box-shadow:var(--shadow-1); transition:transform .18s var(--ease), box-shadow .18s var(--ease);
  display:block; color:inherit; text-decoration:none;
}
:root[data-theme="dark"] .stat-tile{ box-shadow:var(--shadow-1), inset 0 1px 0 var(--gold-soft); }
@media (hover:hover){ .stat-tile:hover, .cust-card:hover, .bill-card:hover, .opp-row:hover{ transform:translateY(-2px); box-shadow:var(--shadow-2); } }
.stat-tile .stat-value{ font-size:1.7rem; font-weight:800; letter-spacing:-0.02em; }
.stat-tile .stat-label{ color:var(--text-2); font-size:0.75rem; font-weight:600; margin-top:2px; }

/* ---------- opportunity rows ---------- */
.opp-row{
  display:flex; align-items:center; gap:12px; padding:14px 14px; border-radius:var(--r);
  background:var(--surface); border:1px solid var(--separator); margin-bottom:8px; min-height:var(--tap);
  cursor:pointer; transition:transform .15s var(--ease);
}
.opp-row:active{ transform:scale(.98); }
.opp-emoji{ font-size:1.3rem; }
.opp-text{ flex:1; font-weight:600; font-size:0.92rem; }
.opp-count{ color:var(--accent); font-weight:800; }
.opp-chevron{ color:var(--text-3); }

/* ---------- empty / loading / error states ---------- */
.ch-empty{ text-align:center; padding:40px 20px; color:var(--text-2); }
.ch-empty .ch-empty-icon{ font-size:2.2rem; margin-bottom:10px; }
.ch-empty .ch-empty-title{ color:var(--text); font-weight:700; margin-bottom:4px; }
.ch-empty .ch-empty-body{ font-size:0.88rem; line-height:1.4; }

.skeleton{ background:linear-gradient(90deg, var(--fill) 25%, var(--fill-strong) 37%, var(--fill) 63%); background-size:400% 100%; animation:chShimmer 1.4s ease infinite; border-radius:var(--r-sm); }
@keyframes chShimmer{ 0%{ background-position:100% 50%; } 100%{ background-position:0 50%; } }
.skel-card{ height:78px; margin-bottom:12px; border-radius:var(--r); }

.ch-toast{
  position:fixed; left:50%; bottom:calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  transform:translateX(-50%) translateY(8px); opacity:0; pointer-events:none; z-index:80;
  background:var(--surface-solid); color:var(--text); border:1px solid var(--separator);
  border-radius:var(--r-pill); padding:10px 18px; font-weight:600; font-size:0.85rem;
  box-shadow:var(--shadow-2); transition:opacity .2s var(--ease), transform .2s var(--ease);
  max-width:calc(100% - 32px); text-align:center;
}
.ch-toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* ---------- forms ---------- */
.ch-field{ margin-bottom:14px; }
.ch-label{ display:block; color:var(--text-2); font-weight:600; font-size:0.72rem; letter-spacing:0.04em; text-transform:uppercase; margin-bottom:6px; }
.ch-input, .ch-select, .ch-textarea{
  width:100%; background:var(--fill); border:1px solid transparent; color:var(--text);
  font-weight:500; font-size:0.95rem; border-radius:var(--r-sm); padding:11px 13px; min-height:var(--tap);
  transition:background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ch-textarea{ min-height:120px; resize:vertical; line-height:1.45; }
.ch-input::placeholder, .ch-textarea::placeholder{ color:var(--text-3); }
.ch-input:focus, .ch-select:focus, .ch-textarea:focus{
  outline:none; background:var(--surface-2); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.ch-hint{ color:var(--text-3); font-size:0.78rem; margin-top:5px; }
.ch-error-text{ color:var(--red); font-size:0.78rem; margin-top:5px; }

/* ---------- buttons ---------- */
.ch-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:var(--tap); padding:0 20px; border-radius:var(--r-sm); border:none;
  font-weight:700; font-size:0.92rem; cursor:pointer;
  transition:transform .15s var(--ease), filter .15s var(--ease), opacity .15s var(--ease);
}
.ch-btn:active{ transform:scale(.97); }
.ch-btn-primary{ background:var(--accent); color:var(--accent-ink); width:100%; }
.ch-btn-primary:hover{ filter:brightness(1.08); }
:root[data-theme="dark"] .ch-btn-primary{ box-shadow:0 6px 24px color-mix(in srgb, var(--accent) 38%, transparent); }
:root[data-theme="dark"] .ch-btn-fab{ box-shadow:var(--shadow-3), 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent); }
.ch-btn-primary:disabled{ opacity:.45; cursor:not-allowed; }
.ch-btn-secondary{ background:var(--fill); color:var(--text); }
.ch-btn-secondary:hover{ background:var(--fill-strong); }
.ch-btn-outline{ background:transparent; border:1px solid var(--separator); color:var(--text); }
.ch-btn-outline:hover{ background:var(--fill); }
.ch-btn-danger-outline{ background:transparent; border:1px solid var(--separator); color:var(--red); }
.ch-btn-sm{ min-height:36px; padding:0 14px; font-size:0.8rem; border-radius:var(--r-xs); }
.ch-btn-fab{
  position:fixed; right:18px; bottom:calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); z-index:40;
  width:56px; height:56px; border-radius:50%; background:var(--accent); color:var(--accent-ink);
  border:none; font-size:1.4rem; box-shadow:var(--shadow-3); display:flex; align-items:center; justify-content:center;
}
.ch-actions-row{ display:flex; gap:8px; margin-top:12px; }
.ch-actions-row .ch-btn{ flex:1; }

/* ---------- badges / chips ---------- */
.ch-badge{
  display:inline-flex; align-items:center; gap:4px; padding:3px 9px; border-radius:var(--r-pill);
  font-size:0.7rem; font-weight:700; background:var(--fill); color:var(--text-2);
}
.ch-badge-accent{ background:color-mix(in srgb, var(--accent) 16%, transparent); color:var(--accent); }
.ch-badge-green{ background:color-mix(in srgb, var(--green) 16%, transparent); color:var(--green); }
.ch-badge-orange{ background:color-mix(in srgb, var(--orange) 16%, transparent); color:var(--orange); }
.ch-badge-red{ background:color-mix(in srgb, var(--red) 16%, transparent); color:var(--red); }
.ch-chip-row{ display:flex; flex-wrap:wrap; gap:6px; }

/* ---------- customer / bill cards ---------- */
.cust-card{
  display:flex; align-items:center; gap:12px; padding:14px; border-radius:var(--r);
  background:var(--surface); border:1px solid var(--separator); margin-bottom:10px;
  cursor:pointer; transition:transform .15s var(--ease);
}
.cust-card:active{ transform:scale(.98); }
.cust-avatar{
  width:42px; height:42px; border-radius:50%; background:var(--fill); color:var(--text-2);
  display:flex; align-items:center; justify-content:center; font-weight:700; flex-shrink:0;
}
.cust-info{ flex:1; min-width:0; }
.cust-name{ font-weight:700; font-size:0.95rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cust-meta{ color:var(--text-2); font-size:0.78rem; margin-top:2px; display:flex; gap:6px; flex-wrap:wrap; align-items:center; }

.bill-card{ background:var(--surface); border:1px solid var(--separator); border-radius:var(--r); padding:14px; margin-bottom:10px; }
.bill-card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.bill-no{ font-weight:700; font-size:0.9rem; }
.bill-date{ color:var(--text-2); font-size:0.78rem; }
.bill-garments{ color:var(--text-2); font-size:0.85rem; line-height:1.5; }

.timeline{ position:relative; padding-left:20px; }
.timeline::before{ content:''; position:absolute; left:5px; top:4px; bottom:4px; width:2px; background:var(--separator); }
.timeline-item{ position:relative; margin-bottom:16px; }
.timeline-dot{ position:absolute; left:-20px; top:4px; width:10px; height:10px; border-radius:50%; background:var(--accent); }

/* ---------- search bar ---------- */
.ch-search{
  display:flex; align-items:center; gap:8px; background:var(--fill); border-radius:var(--r-pill);
  padding:0 14px; min-height:44px; margin-bottom:14px;
}
.ch-search input{ flex:1; background:transparent; border:none; outline:none; color:var(--text); font-size:0.92rem; font-weight:500; }
.ch-search input::placeholder{ color:var(--text-3); }

/* ---------- bottom sheet / modal ---------- */
.ch-sheet-backdrop{
  position:fixed; inset:0; z-index:60; background:rgba(0,0,0,0.4); opacity:0; pointer-events:none;
  transition:opacity .22s var(--ease);
}
.ch-sheet-backdrop.show{ opacity:1; pointer-events:auto; }
.ch-sheet{
  position:fixed; left:0; right:0; bottom:0; z-index:61; max-width:640px; margin:0 auto;
  background:var(--surface-solid); border-radius:var(--r-xl) var(--r-xl) 0 0;
  box-shadow:var(--shadow-3); padding:10px 18px calc(20px + env(safe-area-inset-bottom));
  transform:translateY(100%); transition:transform .28s var(--ease);
  max-height:85vh; overflow-y:auto;
}
.ch-sheet.show{ transform:translateY(0); }
.ch-sheet-handle{ width:36px; height:5px; border-radius:99px; background:var(--separator-strong); margin:6px auto 14px; }
.ch-sheet-title{ font-weight:800; font-size:1.05rem; margin-bottom:14px; }

@media (min-width: 900px){
  .ch-sheet{ left:auto; right:24px; bottom:24px; width:420px; border-radius:var(--r-xl); transform:translateY(24px) scale(.98); opacity:0; }
  .ch-sheet.show{ transform:none; opacity:1; }
  .ch-btn-fab{ right:32px; bottom:32px; }
}

/* ---------- message preview ---------- */
.msg-preview{
  background:#DCF8C6; color:#111; border-radius:var(--r); padding:14px 16px; font-size:0.9rem;
  line-height:1.5; white-space:pre-wrap; word-break:break-word; border:1px solid rgba(0,0,0,0.06);
}
:root[data-theme="dark"] .msg-preview{ background:#0b3d1c; color:#e9f7ee; }

/* ---------- progress / cooldown ---------- */
.progress-track{ height:6px; border-radius:99px; background:var(--fill); overflow:hidden; }
.progress-fill{ height:100%; background:var(--accent); border-radius:99px; transition:width .3s var(--ease); }

/* ---------- switch ---------- */
.ch-switch{
  position:relative; display:inline-block; width:46px; height:28px; flex-shrink:0;
}
.ch-switch input{ opacity:0; width:0; height:0; }
.ch-switch-track{
  position:absolute; inset:0; background:var(--fill-strong); border-radius:99px;
  cursor:pointer; transition:background-color .2s var(--ease);
}
.ch-switch-track::before{
  content:''; position:absolute; left:3px; top:3px; width:22px; height:22px; border-radius:50%;
  background:#fff; box-shadow:var(--shadow-1); transition:transform .2s var(--ease);
}
.ch-switch input:checked + .ch-switch-track{ background:var(--accent); }
.ch-switch input:checked + .ch-switch-track::before{ transform:translateX(18px); }
.ch-switch-row{ display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--separator); gap:12px; }
.ch-switch-row:last-child{ border-bottom:none; }
.ch-switch-row-label{ font-weight:600; font-size:0.9rem; }
.ch-switch-row-hint{ color:var(--text-2); font-size:0.78rem; margin-top:2px; }

/* ---------- variable palette ---------- */
.var-chip{
  display:inline-flex; align-items:center; padding:5px 10px; border-radius:var(--r-pill);
  background:var(--fill); color:var(--accent); font-family:ui-monospace, Menlo, monospace;
  font-size:0.78rem; font-weight:600; cursor:pointer; border:none;
}
.var-chip:hover{ background:var(--fill-strong); }

/* ---------- tables (admin lists) ---------- */
.ch-list-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 0; border-bottom:1px solid var(--separator);
}
.ch-list-row:last-child{ border-bottom:none; }

/* ---------- sticky bottom action bar (Quick WhatsApp, forms) ---------- */
.ch-sticky-actionbar{
  position:fixed; left:0; right:0; bottom:var(--nav-h); z-index:35;
  padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  background:var(--surface-solid); border-top:1px solid var(--separator);
}
.ch-sticky-actionbar .ch-btn{ max-width:640px; margin:0 auto; width:100%; display:flex; }
body.has-actionbar{ padding-bottom:calc(var(--nav-h) * 2 + env(safe-area-inset-bottom)); }
@media (min-width: 900px){
  .ch-sticky-actionbar{ bottom:0; }
  body.has-actionbar{ padding-bottom:0; }
}

/* ---------- theme toggle (floating, present on every page via nav.js) ---------- */
.ch-theme-toggle{
  position:fixed; top:14px; right:16px; z-index:50;
  width:40px; height:40px; border-radius:50%; border:1px solid var(--separator);
  background:var(--surface); -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur);
  display:flex; align-items:center; justify-content:center; font-size:1.15rem;
  box-shadow:var(--shadow-1); cursor:pointer; transition:transform .15s var(--ease), box-shadow .15s var(--ease);
}
.ch-theme-toggle:active{ transform:scale(.9); }
/* deliberately plain in dark mode too — a glow here stacked with the
   gold-tinted --separator border into a hard ring rather than a soft
   ambient touch, so this one small control stays neutral. */
@media (min-width: 900px){ .ch-theme-toggle{ top:20px; right:28px; } }

.ch-owner-gate{
  position:fixed; inset:0; z-index:100; background:var(--bg); display:none;
  align-items:center; justify-content:center; padding:20px;
}
.ch-owner-gate-card{
  max-width:340px; width:100%; text-align:center; background:var(--surface-solid);
  border:1px solid var(--separator); border-radius:var(--r-xl); padding:30px 22px; box-shadow:var(--shadow-2);
}
