/* ============================================================================
   DESHWALI ADMIN — DESIGN SYSTEM (single source of truth)

   Every admin surface (#/admin/dashboard, #/admin/tourists, #/admin/live's
   chrome) consumes THESE tokens and THESE components. Change a token here and
   the whole admin updates; no screen may re-declare its own colours, radii,
   shadows or spacing.

   Naming: --ds-* are the tokens. The legacy --at-* names are kept as aliases
   so existing markup keeps working — they point INTO the token layer and must
   never hold literal values again.

   Components:  .at-btn .at-sel .at-badge .at-card .at-menu .at-side .at-top
                .bk-* (booking wizard)  .ds-kpi .ds-table .ds-prog .ds-act
                .ds-chart .ds-group .ds-bnav
   ========================================================================== */

:root{
  /* -- colour tokens ------------------------------------------------------ */
  --ds-primary:#0B6B4F;          /* deep emerald — CTAs, active nav, focus */
  --ds-primary-hover:#075E45;
  --ds-primary-soft:#EDF7F2;     /* tinted surface for active/selected     */
  --ds-primary-fg:#FFFFFF;
  --ds-gold:#C29A3F;             /* restrained premium accent               */
  --ds-navy:#0F2440;             /* brand plate (logo)                      */

  --ds-bg:#F6F8F6;               /* app background                          */
  --ds-surface:#FFFFFF;          /* cards, bars                             */
  --ds-surface-glass:rgba(255,255,255,.72);
  --ds-surface-mut:#FBFCFB;      /* subheaders, zebra                       */

  --ds-text:#17201B;
  --ds-text-2:#3A443E;
  --ds-mut:#66716A;

  --ds-border:#E6EAE6;
  --ds-border-strong:#CFDCD4;

  --ds-success:#0E9F6E;  --ds-success-soft:#D9F2E8;  --ds-success-ink:#075E45;
  --ds-warn:#F59E0B;     --ds-warn-soft:#FEF3C7;     --ds-warn-ink:#92610A;
  --ds-error:#DC2626;    --ds-error-soft:#FDECEA;    --ds-error-ink:#B3261E;
  --ds-info:#475569;     --ds-info-soft:#E2E8F0;

  /* -- shape, depth, motion ---------------------------------------------- */
  --ds-r-card:16px; --ds-r-input:11px; --ds-r-pill:999px; --ds-r-ic:10px;
  --ds-sh-1:0 1px 2px rgba(16,24,20,.05);
  --ds-sh-2:0 1px 2px rgba(16,24,20,.04),0 8px 28px rgba(16,24,20,.06);
  --ds-sh-pop:0 12px 32px rgba(16,24,20,.14);
  --ds-t:.18s ease;
  /* motion tokens — one vocabulary, used by every animated surface */
  --ds-m-fast:120ms; --ds-m-norm:200ms; --ds-m-med:300ms; --ds-m-enter:350ms;
  --ds-ease:cubic-bezier(.22,.61,.36,1);
  /* glass — an ACCENT, never the whole screen. Only the drawer header, the
     sticky action bar and floating chrome use it; data surfaces stay opaque
     so that text keeps its contrast. */
  --ds-glass:rgba(255,255,255,.78);
  --ds-glass-tint:rgba(237,247,242,.86);
  --ds-glass-line:rgba(255,255,255,.65);
  --ds-blur:saturate(1.5) blur(18px);

  /* -- legacy aliases (existing markup) ----------------------------------- */
  --at-bg:var(--ds-bg); --at-card:var(--ds-surface); --at-line:var(--ds-border);
  --at-ink:var(--ds-text); --at-mut:var(--ds-mut); --at-em:var(--ds-primary);
  --at-emd:var(--ds-primary-hover); --at-soft:var(--ds-primary-soft);
  --at-r:14px; --at-sh:var(--ds-sh-1);
}

/* One reduced-motion switch for the whole admin: motion is decoration here,
   never information, so it can be turned off wholesale. */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms !important;
    animation-delay:0ms !important;
    animation-iteration-count:1 !important;transition-duration:.001ms !important;
    transition-delay:0ms !important;scroll-behavior:auto !important}
}

/* ================================================================= root */
.at-root{min-height:100dvh;background:var(--ds-bg);color:var(--ds-text);
  font-size:14.5px;line-height:1.5}
.at-root *{box-sizing:border-box}

/* ================================================================ topbar */
.at-top{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:10px;
  padding:0 16px;height:58px;background:var(--ds-surface);
  border-bottom:1px solid var(--ds-border)}
.at-brand{display:flex;align-items:center;gap:10px;min-width:0;
  color:inherit;text-decoration:none}
/* the wordmark is drawn by BRAND.lockup(); only the console's own role label
   is styled here, and it sits beside the logo rather than inside it */
.at-brand__role{color:var(--ds-mut);font-size:11.5px;display:block;
  padding-left:10px;border-left:1px solid var(--ds-border);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.at-top .sp{flex:1}
.at-iconbtn{width:40px;height:40px;border-radius:var(--ds-r-ic);
  border:1px solid var(--ds-border);background:var(--ds-surface);
  display:grid;place-items:center;cursor:pointer;color:var(--ds-text);
  transition:background var(--ds-t)}
.at-iconbtn:hover{background:var(--ds-primary-soft)}
.at-iconbtn .i{width:19px;height:19px}
.at-me{display:flex;align-items:center;gap:8px;border:1px solid var(--ds-border);
  background:var(--ds-surface);border-radius:var(--ds-r-pill);
  padding:4px 12px 4px 4px;cursor:pointer;min-height:40px;font-family:inherit;
  transition:background var(--ds-t)}
.at-me:hover{background:var(--ds-primary-soft)}
.at-me__av{width:30px;height:30px;border-radius:50%;background:var(--ds-primary-soft);
  color:var(--ds-primary-hover);display:grid;place-items:center;font-weight:800;
  font-size:12px}
.at-me .i{width:15px;height:15px;color:var(--ds-mut)}
.at-menu{position:absolute;top:54px;inset-inline-end:16px;z-index:60;width:238px;
  background:var(--ds-surface);border:1px solid var(--ds-border);
  border-radius:14px;box-shadow:var(--ds-sh-pop);overflow:hidden}
.at-menu__h{padding:12px 14px;border-bottom:1px solid var(--ds-border)}
.at-menu__h b{display:block;font-size:14px}
.at-menu__h small{color:var(--ds-mut);font-size:12px}
.at-menu a,.at-menu button{display:flex;align-items:center;gap:10px;width:100%;
  padding:11px 14px;background:none;border:0;font:inherit;color:var(--ds-text);
  cursor:pointer;text-decoration:none;text-align:start;transition:background var(--ds-t)}
.at-menu a:hover,.at-menu button:hover{background:var(--ds-primary-soft)}
.at-menu .i{width:17px;height:17px;color:var(--ds-mut)}
.at-menu .danger{color:var(--ds-error-ink)}.at-menu .danger .i{color:var(--ds-error-ink)}
.at-menu hr{border:0;border-top:1px solid var(--ds-border);margin:4px 0}

/* ================================================================ layout */
.at-wrap{display:flex;max-width:1280px;margin:0 auto}
.at-side{width:236px;flex:none;padding:18px 12px;position:sticky;top:58px;
  height:calc(100dvh - 58px);display:none;flex-direction:column;overflow-y:auto}
.ds-group{font-size:11px;font-weight:700;letter-spacing:.08em;color:var(--ds-mut);
  text-transform:uppercase;padding:0 12px;margin:14px 0 6px}
.ds-group:first-child{margin-top:0}
.at-side a{display:flex;align-items:center;gap:10px;padding:10px 12px;
  border-radius:var(--ds-r-ic);color:var(--ds-text);text-decoration:none;
  font-weight:600;font-size:14px;margin-bottom:2px;position:relative;
  transition:background var(--ds-t)}
.at-side a .i{width:18px;height:18px;color:var(--ds-mut)}
.at-side a:hover{background:var(--ds-surface)}
.at-side a.on{background:var(--ds-primary-soft);color:var(--ds-primary-hover)}
.at-side a.on .i{color:var(--ds-primary-hover)}
.at-side a.on::before{content:'';position:absolute;inset-inline-start:0;top:9px;
  bottom:9px;width:3px;border-radius:99px;background:var(--ds-primary)}
.at-side .sp{flex:1}
.at-main{flex:1;min-width:0;padding:22px 16px 90px}
@media(min-width:1080px){.at-side{display:flex}.at-main{padding:26px 28px 60px}}

/* ============================================================= page header */
.at-head{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;margin-bottom:16px}
.at-head h1{font-size:24px;font-weight:800;letter-spacing:-.02em;line-height:1.2}
.at-head .sub{color:var(--ds-mut);font-size:13.5px;margin-top:2px}
.at-head .acts{display:flex;gap:8px;margin-inline-start:auto;flex:none}

/* ================================================================ buttons */
.at-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:42px;padding:0 16px;border-radius:var(--ds-r-input);font-weight:650;
  font-size:14px;background:var(--ds-primary);color:var(--ds-primary-fg);
  cursor:pointer;border:0;font-family:inherit;white-space:nowrap;
  transition:background var(--ds-t),box-shadow var(--ds-t)}
.at-btn:hover{background:var(--ds-primary-hover)}
.at-btn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--ds-primary-soft),
  0 0 0 1.5px var(--ds-primary)}
.at-btn .i{width:17px;height:17px}
.at-btn.line{background:var(--ds-surface);color:var(--ds-text);
  border:1px solid var(--ds-border)}
.at-btn.line:hover{background:var(--ds-primary-soft);border-color:var(--ds-border-strong)}
.at-btn.ghost{background:transparent;color:var(--ds-mut);border:0}
.at-btn.ghost:hover{background:var(--ds-primary-soft);color:var(--ds-primary-hover)}
.at-btn.danger{background:var(--ds-surface);color:var(--ds-error-ink);
  border:1px solid #F3C1BD}
.at-btn.sm{min-height:34px;padding:0 12px;font-size:13px;border-radius:9px}
.at-btn.sm .i{width:15px;height:15px}
.at-btn[disabled]{opacity:.55;pointer-events:none}
@keyframes atspin{to{transform:rotate(360deg)}}
.at-spin .i{animation:atspin .8s linear infinite}
/* language toggle */
.at-lang{font-weight:750;font-size:12.5px;letter-spacing:.02em;color:var(--ds-primary-hover)}
/* live-status pill — replaces the old manual refresh button */
.at-livedot{width:8px;height:8px;border-radius:50%;background:var(--ds-success);
  flex:none;position:relative}
.at-livedot::after{content:'';position:absolute;inset:-4px;border-radius:50%;
  border:1.5px solid var(--ds-success);opacity:.45;animation:atpulse 2s ease-out infinite}
@keyframes atpulse{0%{transform:scale(.6);opacity:.55}100%{transform:scale(1.25);opacity:0}}
.at-livepill{color:var(--ds-mut);font-weight:600}

/* ================================================================= notice */
.at-note{display:flex;gap:10px;align-items:flex-start;background:var(--ds-surface);
  border:1px solid var(--ds-border);border-inline-start:3px solid var(--ds-primary);
  border-radius:12px;padding:11px 12px;margin-bottom:16px;font-size:13.5px}
.at-note .i{width:17px;height:17px;color:var(--ds-primary);flex:none;margin-top:2px}
.at-note b{font-weight:700}
.at-note .txt{color:var(--ds-mut)}
.at-note .txt b{color:var(--ds-text)}
.at-note a{color:var(--ds-primary-hover);font-weight:650;text-decoration:none;
  white-space:nowrap}
.at-note .x{margin-inline-start:auto;flex:none;background:none;border:0;
  cursor:pointer;color:var(--ds-mut);padding:2px}
.at-note .x .i{color:var(--ds-mut);margin:0}

/* ============================================================== KPI cards */
.at-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px}
@media(min-width:760px){.at-stats{grid-template-columns:repeat(4,1fr);gap:12px}}
.at-stats.ds-kpi--5{grid-template-columns:repeat(2,1fr)}
@media(min-width:760px){.at-stats.ds-kpi--5{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1180px){.at-stats.ds-kpi--5{grid-template-columns:repeat(5,1fr)}}
.at-stat{background:var(--ds-surface);border:1px solid var(--ds-border);
  border-radius:var(--ds-r-card);padding:14px 16px;box-shadow:var(--ds-sh-1)}
.at-stat .lbl{display:flex;align-items:center;gap:7px;color:var(--ds-mut);
  font-size:12.5px;font-weight:650}
.at-stat .lbl .i{width:15px;height:15px}
.at-stat .val{font-size:26px;font-weight:800;letter-spacing:-.02em;margin-top:4px}
.at-stat .mic{font-size:11.5px;color:var(--ds-mut);margin-top:2px}
.at-stat .mic b{color:var(--ds-success-ink);font-weight:700}
.at-stat.warn .val{color:var(--ds-warn-ink)}
.at-stat.gold .val{color:var(--ds-gold)}

/* ================================================================ toolbar */
.at-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.at-search{flex:1;min-width:220px;position:relative}
.at-search .i{position:absolute;inset-inline-start:12px;top:50%;
  transform:translateY(-50%);width:17px;height:17px;color:var(--ds-mut);
  pointer-events:none}
.at-search input{width:100%;min-height:42px;padding:0 12px 0 38px;
  border:1px solid var(--ds-border);border-radius:var(--ds-r-input);font:inherit;
  background:var(--ds-surface)}
[dir=rtl] .at-search input{padding:0 38px 0 12px}
.at-search input:focus{outline:none;border-color:var(--ds-primary);
  box-shadow:0 0 0 3px var(--ds-primary-soft)}
.at-sel{min-height:42px;padding:0 10px;border:1px solid var(--ds-border);
  border-radius:var(--ds-r-input);font:inherit;font-size:13.5px;
  background:var(--ds-surface);color:var(--ds-text);max-width:170px}
.at-sel:focus{outline:none;border-color:var(--ds-primary)}
.at-desk{display:none}
@media(min-width:760px){.at-desk{display:inline-flex}.at-mob{display:none}}

/* =============================================================== skeleton */
@keyframes atsheen{0%{background-position:-200px 0}100%{background-position:200px 0}}
.at-skel{border-radius:8px;background:#EDF0ED linear-gradient(90deg,#EDF0ED 0,#F7F9F7 40px,#EDF0ED 80px);
  background-size:200px 100%;animation:atsheen 1.1s infinite linear}

/* ================================================================== cards */
.at-card{background:var(--ds-surface);border:1px solid var(--ds-border);
  border-radius:var(--ds-r-card);box-shadow:var(--ds-sh-1)}
.at-bk{margin-bottom:14px;overflow:hidden}
.at-bk__h{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;
  padding:13px 16px;border-bottom:1px solid var(--ds-border);
  background:var(--ds-surface-mut)}
.at-bk__h .ref{font-weight:800;font-size:15px}
.at-bk__h .m{color:var(--ds-mut);font-size:13px}
.at-bk__h .acts{display:flex;gap:6px;margin-inline-start:auto}

/* ================================================================= badges */
.at-badge{font-size:11.5px;font-weight:700;padding:3px 9px;
  border-radius:var(--ds-r-pill)}
.at-badge--confirmed{background:var(--ds-success-soft);color:var(--ds-success-ink)}
.at-badge--pending{background:var(--ds-warn-soft);color:var(--ds-warn-ink)}
.at-badge--completed{background:var(--ds-info-soft);color:var(--ds-info)}
.at-badge--cancelled{background:var(--ds-error-soft);color:var(--ds-error-ink)}
.at-badge--none{background:#EFF2EF;color:var(--ds-mut)}

/* ===================================================== traveller rows/cards */
.at-trs{padding:4px 16px}
.at-tr{display:grid;grid-template-columns:minmax(150px,1.4fr) minmax(130px,1fr) 64px 110px auto;
  gap:10px;align-items:center;padding:10px 0;
  border-bottom:1px dashed var(--ds-border);cursor:pointer}
.at-tr:last-of-type{border-bottom:0}
.at-tr:hover{background:linear-gradient(90deg,transparent,var(--ds-primary-soft) 10%,var(--ds-primary-soft) 90%,transparent)}
.at-tr .who{display:flex;align-items:center;gap:10px;min-width:0}
.at-tr .who b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis}
.at-tr .who small{display:block;color:var(--ds-mut);font-size:11.5px}
.at-lead{color:var(--ds-gold);font-size:13px;vertical-align:1px}
.at-av{border-radius:50%;object-fit:cover;flex:none}
.at-av--ini{display:grid;place-items:center;background:var(--ds-primary-soft);
  color:var(--ds-primary-hover);font-weight:800}
.at-ph{font-family:ui-monospace,monospace;font-size:12.5px;color:var(--ds-text-2);
  background:#F4F3EE;padding:3px 8px;border-radius:6px;white-space:nowrap}
.at-ph.bad{color:var(--ds-error-ink);background:var(--ds-error-soft)}
.at-doc{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:650}
.at-doc .dot{width:8px;height:8px;border-radius:50%;flex:none}
.at-doc .dot.g{background:var(--ds-success)}.at-doc .dot.y{background:var(--ds-warn)}
.at-doc .dot.r{background:var(--ds-error)}
.at-doc .bar{width:44px;height:5px;border-radius:99px;background:#EDF0ED;
  overflow:hidden;flex:none}
.at-doc .bar i{display:block;height:100%;background:var(--ds-success);border-radius:99px}
.at-tr .rowacts{display:flex;gap:4px;justify-content:flex-end}
.at-bk__f{display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  padding:10px 16px;border-top:1px solid var(--ds-border);
  background:var(--ds-surface-mut)}
.at-bk__f input{min-height:36px;padding:0 10px;border:1px solid var(--ds-border);
  border-radius:9px;font:inherit;font-size:13px;background:var(--ds-surface)}
.at-bk__f .m{color:var(--ds-mut);font-size:12.5px}
@media(max-width:759px){
  .at-tr{grid-template-columns:1fr auto;grid-auto-rows:auto;row-gap:6px;
    border:1px solid var(--ds-border);border-radius:12px;padding:10px 12px;margin:8px 0}
  .at-tr:hover{background:var(--ds-surface)}
  .at-tr .c-ph,.at-tr .c-room,.at-tr .c-doc{grid-column:1 / -1}
  .at-tr .rowacts{grid-row:1;grid-column:2}
  .at-trs{padding:2px 12px 8px}
}

/* =========================================================== empty / error */
.at-hero{padding:44px 20px;text-align:center}
.at-hero .art{width:74px;height:74px;border-radius:50%;background:var(--ds-primary-soft);
  display:grid;place-items:center;margin:0 auto 16px}
.at-hero .art .i{width:34px;height:34px;color:var(--ds-primary-hover)}
.at-hero h3{font-size:18px;font-weight:800;margin-bottom:6px}
.at-hero p{color:var(--ds-mut);font-size:14px;max-width:380px;margin:0 auto 18px}
.at-hero .acts{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.at-err .art{background:var(--ds-error-soft)}.at-err .art .i{color:var(--ds-error-ink)}

/* ================================================================== pager */
.at-pager{display:flex;align-items:center;gap:8px;justify-content:flex-end;
  color:var(--ds-mut);font-size:13px;margin-top:4px}

/* ============================================== traveller drawer (profile) */
@keyframes dsOvl{from{opacity:0}to{opacity:1}}
@keyframes dsDwIn{from{opacity:0;transform:translateX(40px)}
  to{opacity:1;transform:none}}
@keyframes dsSheetIn{from{opacity:0;transform:translateY(100%)}
  to{opacity:1;transform:none}}
@keyframes dsRise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes dsPhotoIn{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
@keyframes dsRing{from{opacity:.9;transform:scale(.9)}to{opacity:0;transform:scale(1.35)}}

.at-ovl{position:fixed;inset:0;background:rgba(14,20,17,.28);z-index:70;
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  animation:dsOvl var(--ds-m-norm) var(--ds-ease) both}
.at-dw{position:fixed;top:0;bottom:0;inset-inline-end:0;width:min(480px,100%);
  background:var(--ds-bg);z-index:71;display:flex;flex-direction:column;
  box-shadow:-18px 0 48px rgba(16,24,20,.20);
  animation:dsDwIn var(--ds-m-enter) var(--ds-ease) both}

/* --- glass profile header --- */
.at-dw__h{position:relative;padding:18px 60px 14px 16px;
  background:linear-gradient(160deg,var(--ds-glass-tint),var(--ds-glass));
  backdrop-filter:var(--ds-blur);-webkit-backdrop-filter:var(--ds-blur);
  border-bottom:1px solid var(--ds-border);
  animation:dsRise var(--ds-m-med) var(--ds-ease) both;animation-delay:60ms}
.at-dw__h .x{position:absolute;top:12px;inset-inline-end:12px}
.at-dw__id{display:flex;align-items:center;gap:14px}
.at-ava{position:relative;flex:none}
.at-ava .at-av{width:76px;height:76px;border-radius:22px;
  box-shadow:0 6px 18px rgba(16,24,20,.16);
  animation:dsPhotoIn var(--ds-m-med) var(--ds-ease) both}
.at-ava .at-av--ini{font-size:27px;letter-spacing:.02em;
  background:linear-gradient(150deg,#D9F2E8,#EDF7F2);color:var(--ds-primary-hover)}
.at-ava__cam{position:absolute;inset-inline-end:-4px;bottom:-4px;width:30px;height:30px;
  border-radius:50%;border:2px solid var(--ds-surface);background:var(--ds-primary);
  color:#fff;display:grid;place-items:center;cursor:pointer;padding:0;
  box-shadow:0 2px 8px rgba(16,24,20,.22);transition:transform var(--ds-m-fast) var(--ds-ease)}
.at-ava__cam:hover{transform:translateY(-1px) scale(1.04)}
.at-ava__cam:active{transform:scale(.96)}
.at-ava__cam .i{width:15px;height:15px}
.at-ava.busy::after{content:'';position:absolute;inset:-5px;border-radius:26px;
  border:2px solid var(--ds-primary);animation:dsRing 900ms var(--ds-ease) infinite}
.at-dw__nm{min-width:0}
.at-dw__nm h3{font-size:23px;font-weight:800;letter-spacing:-.02em;line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.at-dw__nm .role{color:var(--ds-mut);font-size:13px;margin-top:1px}
.at-dw__meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.at-dw__ref{font-family:ui-monospace,monospace;font-size:12.5px;font-weight:700;
  color:var(--ds-text-2);background:rgba(255,255,255,.7);
  border:1px solid var(--ds-glass-line);padding:4px 10px;border-radius:var(--ds-r-pill)}
.at-dw__tel{display:inline-flex;align-items:center;gap:6px;font-size:13px;
  font-weight:650;color:var(--ds-text-2);text-decoration:none}
.at-dw__tel .i{width:14px;height:14px;color:var(--ds-mut)}

/* --- segmented tabs --- */
.at-tabs{position:relative;display:flex;gap:2px;padding:8px 12px 10px;
  background:var(--ds-glass);backdrop-filter:var(--ds-blur);
  -webkit-backdrop-filter:var(--ds-blur);
  border-bottom:1px solid var(--ds-border);overflow-x:auto;scrollbar-width:none;
  animation:dsRise var(--ds-m-med) var(--ds-ease) both;animation-delay:110ms}
.at-tabs::-webkit-scrollbar{display:none}
.at-tab{position:relative;z-index:1;flex:1;min-width:max-content;padding:9px 12px;
  font-weight:650;font-size:13.5px;color:var(--ds-mut);background:none;border:0;
  cursor:pointer;font-family:inherit;white-space:nowrap;border-radius:var(--ds-r-pill);
  transition:color var(--ds-m-norm) var(--ds-ease),
             background var(--ds-m-norm) var(--ds-ease)}
.at-tab.on{color:var(--ds-primary-hover)}
/* The active pill is drawn BY the active tab, so it is aligned by construction.
   A separately positioned indicator had to be measured in JS, and the tabs are
   content-width and horizontally scrollable, so it drifted and hung outside the
   strip on small screens. */
/* --- document viewer ----------------------------------------------------- */
/* The paper on screen, in place. Reading a visa should not mean leaving the
   register, opening a downloads folder and coming back. */
.at-dv{position:fixed;inset:0;z-index:120;background:rgba(10,20,16,.62);
  backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;
  padding:16px;animation:dvIn var(--ds-m-norm) var(--ds-ease)}
@keyframes dvIn{from{opacity:0}to{opacity:1}}
.at-dv__box{background:var(--ds-surface);border-radius:16px;overflow:hidden;
  width:min(980px,100%);height:min(88dvh,100%);display:flex;flex-direction:column;
  box-shadow:var(--ds-sh-pop)}
.at-dv__bar{display:flex;align-items:center;gap:10px;padding:10px 12px;
  border-bottom:1px solid var(--ds-border);flex:none}
.at-dv__bar b{font-size:14px;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;max-width:46%}
.at-dv__bar small{color:var(--ds-mut);font-size:12px;flex:none}
.at-dv__bar .sp{flex:1}
.at-dv__body{flex:1;min-height:0;background:var(--ds-surface-mut);
  display:flex;align-items:center;justify-content:center;overflow:auto}
.at-dv__body iframe{width:100%;height:100%;border:0;background:#fff}
.at-dv__body img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.at-dv__none{text-align:center;color:var(--ds-mut);padding:32px}
.at-dv__none svg{width:34px;height:34px;opacity:.5}
.at-dv__none p{margin:10px 0 0;font-size:13.5px}
@media (max-width:640px){.at-dv{padding:0}.at-dv__box{height:100dvh;border-radius:0}}

/* payment entry inside the drawer */
.at-payrow{display:flex;gap:8px;flex-wrap:wrap}
.at-payrow .at-inp{flex:1;min-width:96px}

/* --- account & safety screen -------------------------------------------- */
/* Two cards side by side on a desk, stacked on a phone. */
.ds-grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
@media (max-width:900px){.ds-grid2{grid-template-columns:1fr}}
.ds-muted{color:var(--ds-mut,#6b7280);font-size:13px;line-height:1.55;margin:0 0 12px}
/* A caution the owner must actually read — used for "there is no automatic
   backup", which is the single most consequential sentence in the admin. */
.ds-warn{display:flex;gap:9px;align-items:flex-start;padding:11px 12px;
  border-radius:10px;margin:0 0 12px;font-size:12.8px;line-height:1.5;
  background:var(--ds-warn-soft,#FEF3C7);color:var(--ds-warn-ink,#92400E)}
.ds-warn svg{width:17px;height:17px;flex:none;margin-top:1px}

/* remove-receipt button, sized for a thumb but visually quiet: it sits next to
   a money figure and must never look like the primary action of the row */
.at-rcdel{flex:none;width:34px;height:34px;margin-left:8px;display:grid;
  place-items:center;border:0;border-radius:9px;background:transparent;
  color:var(--ds-mut,#6b7280);cursor:pointer}
.at-rcdel svg{width:16px;height:16px}
.at-rcdel:hover{background:var(--ds-danger-soft,#FEE2E2);color:var(--ds-danger,#B91C1C)}
.at-rcdel[disabled]{opacity:.5;cursor:default}

.at-tabs__ind{display:none}
.at-tab.on{background:var(--ds-primary-soft);
  box-shadow:inset 0 0 0 1px #CFE7DB}

/* --- scrolling body --- */
.at-dw__b{flex:1;overflow-y:auto;padding:14px 16px 16px;
  -webkit-overflow-scrolling:touch}
.at-dw__b>*{animation:dsRise var(--ds-m-med) var(--ds-ease) both}
.at-dw__b>*:nth-child(1){animation-delay:40ms}
.at-dw__b>*:nth-child(2){animation-delay:90ms}
.at-dw__b>*:nth-child(3){animation-delay:140ms}
.at-dw__b>*:nth-child(n+4){animation-delay:180ms}
.at-dw__b h4{font-size:11.5px;font-weight:700;letter-spacing:.08em;
  color:var(--ds-mut);text-transform:uppercase;margin:18px 2px 8px}
.at-dw__b h4:first-child{margin-top:2px}

/* --- info card: one internal layout for every data group --- */
.ds-info{background:var(--ds-surface);border:1px solid var(--ds-border);
  border-radius:14px;padding:4px 14px;box-shadow:var(--ds-sh-1)}
.ds-info+.ds-info{margin-top:10px}
.at-kv{display:flex;justify-content:space-between;gap:14px;padding:11px 0;
  border-bottom:1px dashed var(--ds-border);font-size:13.5px;align-items:baseline}
.at-kv:last-child{border-bottom:0}
.at-kv .k{color:var(--ds-mut);flex:none}
.at-kv .v{font-weight:650;text-align:end;min-width:0;word-break:break-word}
.at-kv .v.mut{color:var(--ds-mut);font-weight:600}

/* --- stat trio (payments) --- */
.ds-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
  margin-bottom:12px}
.ds-trio div{min-width:0;padding:10px}
/* a rupee figure must never wrap mid-number ("₹90,0 / 00"), so it shrinks
   with the column instead of breaking */
.ds-trio .v{white-space:nowrap;font-size:clamp(13px,4.1vw,16px)}
.ds-trio .l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ds-trio div{background:var(--ds-surface);border:1px solid var(--ds-border);
  border-radius:12px;padding:10px 12px}
.ds-trio .l{font-size:11px;font-weight:650;color:var(--ds-mut);
  text-transform:uppercase;letter-spacing:.05em}
.ds-trio .v{font-size:16px;font-weight:800;letter-spacing:-.01em;margin-top:2px}
.ds-trio .v.due{color:var(--ds-warn-ink)}
.ds-trio .v.paid{color:var(--ds-success-ink)}

/* --- journey rail --- */
.ds-rail{background:var(--ds-surface);border:1px solid var(--ds-border);
  border-radius:14px;padding:14px;box-shadow:var(--ds-sh-1)}
.ds-rail__s{display:flex;gap:12px;align-items:flex-start;position:relative;
  padding-bottom:16px}
.ds-rail__s:last-child{padding-bottom:0}
.ds-rail__s::before{content:'';position:absolute;inset-inline-start:15px;top:32px;
  bottom:0;width:2px;background:var(--ds-border);
  transform-origin:top;animation:dsGrow var(--ds-m-enter) var(--ds-ease) both}
@keyframes dsGrow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.ds-rail__s:last-child::before{display:none}
.ds-rail__ic{width:32px;height:32px;border-radius:10px;flex:none;display:grid;
  place-items:center;background:var(--ds-primary-soft);z-index:1}
.ds-rail__ic .i{width:16px;height:16px;color:var(--ds-primary-hover)}
.ds-rail__s.hl .ds-rail__ic{background:var(--ds-primary)}
.ds-rail__s.hl .ds-rail__ic .i{color:#fff}
.ds-rail__t b{display:block;font-size:14px;line-height:1.3}
.ds-rail__t small{display:block;color:var(--ds-mut);font-size:12.5px;margin-top:1px}
.ds-rail__t .code{font-family:ui-monospace,monospace;font-weight:800;font-size:15px;
  letter-spacing:.04em;color:var(--ds-primary-hover)}

/* --- chips / progress --- */
.at-chip{font-size:12.5px;font-weight:700;padding:7px 12px;
  border-radius:var(--ds-r-pill);cursor:pointer;border:0;font-family:inherit;
  transition:transform var(--ds-m-fast) var(--ds-ease)}
.at-chip:active{transform:scale(.97)}
.at-chip.ok{background:var(--ds-success-soft);color:var(--ds-success-ink)}
.at-chip.no{background:#F4F3EE;color:var(--ds-mut)}
.at-paybar{height:8px;border-radius:99px;background:#EDF0ED;overflow:hidden;
  margin:8px 0 4px}
.at-paybar i{display:block;height:100%;background:var(--ds-primary);border-radius:99px;
  transition:width var(--ds-m-enter) var(--ds-ease)}

/* --- sticky glass action bar --- */
.at-dw__f{display:flex;gap:8px;align-items:center;padding:12px 16px
  calc(12px + env(safe-area-inset-bottom));
  background:var(--ds-glass);backdrop-filter:var(--ds-blur);
  -webkit-backdrop-filter:var(--ds-blur);border-top:1px solid var(--ds-border)}
.at-dw__f .at-btn{flex:1}
.at-dw__f .at-btn.at-more{flex:none;width:46px;padding:0}
.at-dw__menu{position:absolute;inset-inline-end:16px;
  bottom:calc(70px + env(safe-area-inset-bottom));z-index:5;
  min-width:190px;background:var(--ds-surface);border:1px solid var(--ds-border);
  border-radius:12px;box-shadow:var(--ds-sh-pop);overflow:hidden;
  animation:dsRise var(--ds-m-fast) var(--ds-ease) both}
.at-dw__menu button{display:flex;align-items:center;gap:10px;width:100%;
  padding:11px 14px;background:none;border:0;font:inherit;cursor:pointer;
  text-align:start;color:var(--ds-text)}
.at-dw__menu button:hover{background:var(--ds-primary-soft)}
.at-dw__menu .i{width:16px;height:16px;color:var(--ds-mut)}
.at-dw__menu .danger{color:var(--ds-error-ink)}
.at-dw__menu .danger .i{color:var(--ds-error-ink)}

/* --- mobile: full bottom sheet with a drag handle --- */
@media(max-width:640px){
  .at-dw{inset:auto 0 0 0;width:100%;height:94dvh;border-radius:20px 20px 0 0;
    animation:dsSheetIn var(--ds-m-enter) var(--ds-ease) both}
  .at-dw__h{border-radius:20px 20px 0 0;padding-top:22px}
  .at-dw__h::before{content:'';position:absolute;top:8px;left:50%;
    transform:translateX(-50%);width:40px;height:4px;border-radius:99px;
    background:var(--ds-border-strong)}
}

/* ======================================================== nav drawer (mob) */
.at-nav{position:fixed;top:0;bottom:0;inset-inline-start:0;width:min(280px,86%);
  background:var(--ds-surface);z-index:71;padding:16px 12px;
  box-shadow:14px 0 40px rgba(16,24,20,.18);overflow-y:auto}
.at-nav a{display:flex;align-items:center;gap:10px;padding:12px;
  border-radius:var(--ds-r-ic);color:var(--ds-text);text-decoration:none;font-weight:600}
.at-nav a.on{background:var(--ds-primary-soft);color:var(--ds-primary-hover)}
.at-nav a .i{width:18px;height:18px;color:var(--ds-mut)}
.at-nav a.on .i{color:var(--ds-primary-hover)}

/* ========================================================== filter sheet */
.at-sheet{position:fixed;inset-inline:0;bottom:0;background:var(--ds-surface);
  z-index:71;border-radius:18px 18px 0 0;
  padding:18px 16px calc(18px + env(safe-area-inset-bottom));
  box-shadow:0 -14px 40px rgba(16,24,20,.2)}
.at-sheet h3{font-size:16px;font-weight:800;margin-bottom:12px}
.at-sheet .row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.at-sheet .at-sel{max-width:none;width:100%}

/* ================================================================== forms */
.at-form{max-width:860px;padding:20px}
.at-form h2{font-size:18px;font-weight:800;margin-bottom:4px}
.at-form .sub{color:var(--ds-mut);font-size:13px;margin-bottom:14px}
.at-form label{display:block;font-weight:650;font-size:13px;margin:12px 0 4px;
  color:var(--ds-text-2)}
.at-form input,.at-form select{width:100%;min-height:44px;padding:0 12px;
  border:1px solid var(--ds-border);border-radius:10px;font:inherit;
  background:var(--ds-surface)}
.at-form input:focus,.at-form select:focus{outline:none;border-color:var(--ds-primary);
  box-shadow:0 0 0 3px var(--ds-primary-soft)}
.at-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:0 14px}
.at-sec{font-size:12px;font-weight:700;letter-spacing:.07em;color:var(--ds-mut);
  text-transform:uppercase;margin:20px 0 2px;padding-top:14px;
  border-top:1px solid var(--ds-border)}
.at-msg{padding:11px 13px;border-radius:10px;background:var(--ds-error-soft);
  color:var(--ds-error-ink);margin:10px 0;font-size:13.5px}

/* ================================================================== login */
.at-login{min-height:100dvh;display:grid;place-items:center;padding:20px;
  background:var(--ds-bg)}
.at-login .box{width:min(400px,100%);background:var(--ds-surface);
  border:1px solid var(--ds-border);border-radius:var(--ds-r-card);padding:26px;
  box-shadow:var(--ds-sh-2)}
.at-login label{display:block;font-weight:650;font-size:13px;margin:12px 0 4px}
.at-login input{width:100%;min-height:44px;padding:0 12px;
  border:1px solid var(--ds-border);border-radius:10px;font:inherit}
.at-login input:focus{outline:none;border-color:var(--ds-primary);
  box-shadow:0 0 0 3px var(--ds-primary-soft)}

/* ========================================================= booking wizard */
.bk-wrap{display:grid;grid-template-columns:1fr;gap:16px;align-items:start}
@media(min-width:1080px){.bk-wrap{grid-template-columns:minmax(0,1fr) 330px}}
.bk-head{margin-bottom:14px}
.bk-head h1{font-size:24px;font-weight:800;letter-spacing:-.02em}
.bk-head .sub{color:var(--ds-mut);font-size:13.5px;margin-top:2px}
.bk-steps{display:flex;gap:6px;margin:14px 0 16px;overflow-x:auto;
  scrollbar-width:none;padding-bottom:2px}
.bk-steps::-webkit-scrollbar{display:none}
.bk-step{display:inline-flex;align-items:center;gap:7px;flex:none;
  padding:8px 13px;border-radius:var(--ds-r-pill);border:1px solid var(--ds-border);
  background:var(--ds-surface-glass);font-size:12.5px;font-weight:650;
  color:var(--ds-mut);cursor:pointer;font-family:inherit;transition:all var(--ds-t)}
.bk-step b{font-size:11px;opacity:.7}
.bk-step.on{background:var(--ds-primary);border-color:var(--ds-primary);
  color:var(--ds-primary-fg)}
.bk-step.done{color:var(--ds-primary-hover);border-color:#BFDCCE;
  background:var(--ds-primary-soft)}
/* step 4 with no traveller yet — nobody can sign in to this booking */
.bk-step.warn{color:var(--ds-warn-ink);border-color:#F3E3B3;background:#FFF9E8}
.bk-card{background:var(--ds-surface-glass);backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);border:1px solid rgba(230,234,230,.9);
  border-radius:18px;padding:18px;margin-bottom:14px;box-shadow:var(--ds-sh-2)}
.bk-card__h{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.bk-card__h .ic{width:34px;height:34px;border-radius:var(--ds-r-ic);
  background:var(--ds-primary-soft);display:grid;place-items:center;flex:none}
.bk-card__h .ic .i{width:17px;height:17px;color:var(--ds-primary-hover)}
.bk-card__h b{font-size:15px}
.bk-card__h small{display:block;color:var(--ds-mut);font-size:12px}
.bk-card label{display:block;font-weight:650;font-size:12.5px;margin:10px 0 4px;
  color:var(--ds-text-2)}
.bk-card label .req{color:var(--ds-error-ink)}
.bk-card input,.bk-card select{width:100%;min-height:44px;padding:0 12px;
  border:1px solid var(--ds-border);border-radius:var(--ds-r-input);font:inherit;
  background:rgba(255,255,255,.85);
  transition:border-color .15s,box-shadow .15s}
.bk-card input:focus,.bk-card select:focus{outline:none;border-color:var(--ds-primary);
  box-shadow:0 0 0 3px var(--ds-primary-soft)}
.bk-card input.err{border-color:var(--ds-error);box-shadow:0 0 0 3px var(--ds-error-soft)}
.bk-err{color:var(--ds-error-ink);font-size:12px;margin-top:4px}
.bk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:0 12px}
.bk-grid--2{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.bk-seg{display:flex;background:#EDF0ED;border-radius:var(--ds-r-input);
  padding:3px;gap:3px;margin-bottom:4px}
.bk-seg button{flex:1;min-height:38px;border:0;border-radius:9px;background:none;
  font:inherit;font-size:13px;font-weight:650;color:var(--ds-mut);cursor:pointer;
  transition:all var(--ds-t)}
.bk-seg button.on{background:var(--ds-surface);color:var(--ds-primary-hover);
  box-shadow:0 1px 3px rgba(16,24,20,.1)}
.bk-route{display:flex;align-items:center;gap:14px;justify-content:center;
  padding:10px;margin-top:12px;border-radius:12px;background:var(--ds-primary-soft)}
.bk-route .code{font-size:20px;font-weight:800;letter-spacing:.04em;
  font-family:ui-monospace,monospace;color:var(--ds-primary-hover)}
.bk-route .city{font-size:11px;color:var(--ds-mut);text-align:center}
.bk-route .arr{color:var(--ds-primary);display:flex;align-items:center}
.bk-route .arr .i{width:18px;height:18px}
.bk-tr{display:grid;grid-template-columns:1.2fr 1fr 72px auto auto;gap:8px 10px;
  align-items:end;padding:12px 0;border-bottom:1px dashed var(--ds-border)}
.bk-tr:last-of-type{border-bottom:0}
/* passport pair sits on its own line under the name/phone row */
.bk-tr .c-pass{grid-column:1 / 3}
.bk-tr .c-exp{grid-column:3 / -1}
@media(max-width:640px){.bk-tr{grid-template-columns:1fr 1fr;padding:14px 0}
  .bk-tr .c-name{grid-column:1/-1}
  .bk-tr .c-pass,.bk-tr .c-exp{grid-column:auto}}

/* ------------------------------------------------- document rows (drawer) */
.at-docrow{display:grid;grid-template-columns:1fr auto;gap:8px 10px;
  align-items:center;padding:12px 0;border-bottom:1px dashed var(--ds-border)}
.at-docrow:last-of-type{border-bottom:0}
.at-docrow__t b{display:block;font-size:14px}
.at-docrow__t small{display:block;font-size:12px;color:var(--ds-text-2);
  word-break:break-all}
.at-docrow__t small.mut{color:var(--ds-mut)}
.at-docrow__a{grid-column:1 / -1;display:flex;gap:6px;justify-content:flex-end;
  align-items:center}
.bk-tr label{margin-top:0}
.bk-chip{display:inline-flex;align-items:center;gap:8px;background:var(--ds-primary-soft);
  color:var(--ds-primary-hover);font-size:13px;font-weight:650;padding:8px 12px;
  border-radius:var(--ds-r-pill);margin:3px 4px 3px 0}
.bk-sum{position:sticky;top:74px}
/* The summary rows carry their own class so the SAME markup lays out
   identically in the sticky aside and inside the review card. */
.bk-sumrows .hd{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding-bottom:12px;margin-bottom:4px;border-bottom:1px solid var(--ds-border)}
.bk-sumrows .ref{font-size:18px;font-weight:800;letter-spacing:.01em;
  font-family:ui-monospace,monospace}
.bk-sumrows .row{display:flex;align-items:center;gap:12px;padding:11px 0;
  border-bottom:1px dashed var(--ds-border);font-size:13.5px;line-height:1.45}
.bk-sumrows .row:last-of-type{border-bottom:0}
.bk-sumrows .row .i{width:16px;height:16px;color:var(--ds-mut);flex:none}
.bk-sumrows .row .v{font-weight:650;min-width:0;flex:1;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.bk-sumrows .row .m{color:var(--ds-mut);font-size:12.5px;flex:none;
  margin-inline-start:auto;text-align:end;white-space:nowrap}
.bk-sumrows .total{display:flex;justify-content:space-between;align-items:baseline;
  gap:16px;margin-top:14px;padding-top:14px;border-top:1px solid var(--ds-border)}
.bk-sumrows .total span{color:var(--ds-mut);font-size:13px}
.bk-sumrows .total b{font-size:22px;letter-spacing:-.02em}
.bk-draftnote{display:flex;gap:10px;align-items:center;background:#FFF9E8;
  border:1px solid #F3E3B3;border-radius:12px;padding:10px 13px;font-size:13px;
  margin-bottom:14px}
.bk-draftnote a{color:var(--ds-warn-ink);font-weight:700;cursor:pointer;
  white-space:nowrap}
.bk-bar{position:sticky;bottom:0;z-index:30;display:flex;gap:8px;
  padding:10px 0 calc(10px + env(safe-area-inset-bottom));margin-top:4px;
  background:linear-gradient(transparent,var(--ds-bg) 30%)}
.bk-bar{flex-wrap:wrap}
.bk-bar .at-btn{flex:1 1 auto;min-width:0}
.bk-bar .at-btn span{overflow:hidden;text-overflow:ellipsis}
@media(min-width:1080px){
  .bk-bar{position:static;background:none;padding:4px 0}
  .bk-bar .at-btn{flex:none}
}
@media(max-width:1079px){
  .bk-hide-m{display:none}
  .bk-sum-card{display:none}
}

/* ============================================================== dashboard */
.ds-row{display:grid;grid-template-columns:1fr;gap:14px;margin-bottom:14px}
@media(min-width:1080px){
  .ds-row--main{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
  .ds-row--half{grid-template-columns:1fr 1fr}
}
.ds-card{background:var(--ds-surface);border:1px solid var(--ds-border);
  border-radius:var(--ds-r-card);box-shadow:var(--ds-sh-1);padding:16px 18px;
  min-width:0}
.ds-card__h{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.ds-card__h b{font-size:15px}
.ds-card__h .sp{flex:1}
.ds-card__h a{font-size:12.5px;font-weight:650;color:var(--ds-primary-hover);
  text-decoration:none}
.ds-seg{display:flex;background:#EDF0ED;border-radius:9px;padding:2px;gap:2px}
.ds-seg button{border:0;background:none;font:inherit;font-size:12px;font-weight:650;
  color:var(--ds-mut);padding:5px 10px;border-radius:7px;cursor:pointer}
.ds-seg button.on{background:var(--ds-surface);color:var(--ds-primary-hover);
  box-shadow:0 1px 2px rgba(16,24,20,.09)}
/* chart */
.ds-chart{display:flex;align-items:flex-end;gap:6px;height:150px;padding-top:8px}
.ds-chart .col{flex:1;max-width:72px;display:flex;flex-direction:column;
  justify-content:flex-end;gap:2px;height:100%;min-width:0;margin:0 auto}
.ds-chart .seg{border-radius:4px 4px 0 0;min-height:2px;
  transition:height .25s ease}
.ds-chart .seg.c{background:var(--ds-primary)}
.ds-chart .seg.p{background:var(--ds-warn)}
.ds-chart .seg.x{background:#D5DBD6}
.ds-chart .lab{font-size:10.5px;color:var(--ds-mut);text-align:center;
  margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ds-legend{display:flex;gap:14px;font-size:12px;color:var(--ds-mut);margin-top:10px}
.ds-legend i{width:9px;height:9px;border-radius:3px;display:inline-block;
  margin-inline-end:5px}
/* journey timeline */
.ds-journey{display:flex;flex-direction:column;gap:0;margin-top:6px}
.ds-jstop{display:flex;gap:12px;align-items:flex-start;position:relative;
  padding:0 0 18px 2px}
.ds-jstop::before{content:'';position:absolute;inset-inline-start:10px;top:20px;
  bottom:0;width:2px;background:var(--ds-border)}
.ds-jstop:last-child::before{display:none}
.ds-jstop .pt{width:18px;height:18px;border-radius:50%;flex:none;margin-top:1px;
  border:2px solid var(--ds-primary);background:var(--ds-surface);z-index:1}
.ds-jstop.hl .pt{background:var(--ds-primary)}
.ds-jstop b{font-size:13.5px;display:block}
.ds-jstop small{color:var(--ds-mut);font-size:12px}
/* progress rows */
.ds-prog{margin-bottom:12px}
.ds-prog .t{display:flex;justify-content:space-between;font-size:13px;
  font-weight:650;margin-bottom:5px}
.ds-prog .t span:last-child{color:var(--ds-mut);font-weight:600}
.ds-prog .bar{height:7px;border-radius:99px;background:#EDF0ED;overflow:hidden}
.ds-prog .bar i{display:block;height:100%;border-radius:99px;
  background:var(--ds-primary);transition:width .3s ease}
.ds-prog.warn .bar i{background:var(--ds-warn)}
/* tables */
.ds-table{width:100%;border-collapse:collapse;font-size:13.5px}
.ds-table th{text-align:start;font-size:11.5px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;color:var(--ds-mut);padding:8px 10px;
  border-bottom:1px solid var(--ds-border);white-space:nowrap}
.ds-table td{padding:10px;border-bottom:1px dashed var(--ds-border);
  vertical-align:middle}
.ds-table tr:last-child td{border-bottom:0}
.ds-table tr{transition:background var(--ds-t)}
.ds-table tbody tr:hover{background:var(--ds-surface-mut)}
.ds-tblwrap{overflow-x:auto;margin:0 -6px;padding:0 6px}
/* quick actions */
.ds-acts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ds-act{display:flex;flex-direction:column;gap:8px;align-items:flex-start;
  padding:14px;border:1px solid var(--ds-border);border-radius:14px;
  background:var(--ds-surface);text-decoration:none;color:var(--ds-text);
  font-weight:650;font-size:13.5px;cursor:pointer;font-family:inherit;
  transition:border-color var(--ds-t),box-shadow var(--ds-t),transform var(--ds-t)}
.ds-act:hover{border-color:var(--ds-border-strong);box-shadow:var(--ds-sh-2);
  transform:translateY(-1px)}
.ds-act .ic{width:34px;height:34px;border-radius:var(--ds-r-ic);
  background:var(--ds-primary-soft);display:grid;place-items:center}
.ds-act .ic .i{width:17px;height:17px;color:var(--ds-primary-hover)}
/* compact per-card empty state */
.ds-empty{padding:22px 10px;text-align:center;color:var(--ds-mut);font-size:13px}
.ds-empty .i{width:26px;height:26px;color:var(--ds-border-strong);margin-bottom:6px}
.ds-empty a,.ds-empty button{color:var(--ds-primary-hover);font-weight:700;
  cursor:pointer;background:none;border:0;font:inherit;text-decoration:none}
/* bottom navigation (mobile) */
.ds-bnav{position:fixed;inset-inline:0;bottom:0;z-index:50;display:flex;
  background:var(--ds-surface);border-top:1px solid var(--ds-border);
  padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
.ds-bnav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;
  padding:6px 2px;color:var(--ds-mut);text-decoration:none;font-size:10.5px;
  font-weight:650;border-radius:10px}
.ds-bnav a .i{width:20px;height:20px}
.ds-bnav a.on{color:var(--ds-primary-hover)}
@media(min-width:1080px){.ds-bnav{display:none}}
.has-bnav .at-main{padding-bottom:110px}
