/* ZedTravel Admin Console — warm-travel design system
   Single accent (deep teal), warm bone surfaces, asymmetric bento.
   Overrides Bootstrap 5.1.3 visual layer; keeps grid/modal classes intact. */

/* Cascade note: this file is loaded AFTER bootstrap.min.css. We rely on
   selector specificity and source order — NOT @layer — because anything we
   put in a layer would lose to Bootstrap's unlayered rules (e.g. `.row > *`
   forcing `width: 100%`). */

  :root {
    /* warm-tinted neutrals (OKLCH, no pure black/white) */
    --zt-bone:        oklch(0.985 0.008 75);
    --zt-bone-raised: oklch(0.97  0.012 75);
    --zt-bone-sunk:   oklch(0.955 0.014 75);
    --zt-ink:         oklch(0.22  0.02  60);
    --zt-ink-muted:   oklch(0.5   0.02  60);
    --zt-ink-soft:    oklch(0.62  0.018 60);
    --zt-hairline:    oklch(0.9   0.012 75);
    --zt-hairline-strong: oklch(0.84 0.014 75);

    /* single accent + one micro-highlight */
    --zt-accent:      oklch(0.5   0.09  200);
    --zt-accent-soft: oklch(0.5   0.09  200 / 0.08);
    --zt-accent-ink:  oklch(0.32  0.07  200);
    --zt-ochre:       oklch(0.78  0.13  80);

    /* spacing scale (4pt) */
    --zt-1: 4px;
    --zt-2: 8px;
    --zt-3: 12px;
    --zt-4: 16px;
    --zt-5: 24px;
    --zt-6: 32px;
    --zt-7: 48px;
    --zt-8: 64px;
    --zt-9: 96px;

    /* type families — Bricolage Grotesque (display), Switzer (body), JetBrains Mono (numerals) */
    --zt-font-display: 'Bricolage Grotesque', ui-serif, Georgia, serif;
    --zt-font-body:    'Switzer', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --zt-font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* type scale (fixed rem for product UI) */
    --zt-fs-xs:  12px;
    --zt-fs-sm:  14px;
    --zt-fs-md:  16px;
    --zt-fs-lg:  20px;
    --zt-fs-xl:  28px;
    --zt-fs-2xl: 44px;
    --zt-fs-3xl: clamp(28px, 7vw, 64px);

    /* shell metrics */
    --zt-header-h:   60px;
    --zt-rail-w:     72px;
    --zt-rail-w-open: 240px;

    /* motion */
    --zt-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --zt-dur:  220ms;
  }

  @media (prefers-reduced-motion: reduce) {
    :root { --zt-dur: 0.01ms; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }

/* ─── reset (scoped to admin shell only) ───────────────────────────────── */
  body.zt-shell {
    margin: 0;
    padding-top: 0;
    background: var(--zt-bone);
    color: var(--zt-ink);
    font-family: var(--zt-font-body);
    font-size: var(--zt-fs-md);
    line-height: 1.5;
    font-feature-settings: 'ss01', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  body.zt-shell * { box-sizing: border-box; }
  body.zt-shell h1, body.zt-shell h2, body.zt-shell h3,
  body.zt-shell h4, body.zt-shell h5, body.zt-shell h6 {
    font-family: var(--zt-font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--zt-ink);
    margin: 0;
  }
  body.zt-shell a { color: inherit; text-decoration: none; }

/* ─── shell: header + rail + main ──────────────────────────────────────── */
  /* Header (override Bootstrap navbar) */
  body.zt-shell .navbar.fixed-top {
    background: var(--zt-bone);
    border-bottom: 1px solid var(--zt-hairline);
    padding: 0 var(--zt-5);
    height: var(--zt-header-h);
    box-shadow: none;
  }
  .zt-header {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: var(--zt-6);
  }
  .zt-header .zt-search { margin-left: auto; }
  .zt-header .zt-userpill { margin-left: var(--zt-3); }
  .zt-brand {
    display: flex;
    align-items: center;
    gap: var(--zt-2);
    font-family: var(--zt-font-display);
    font-size: var(--zt-fs-lg);
    font-weight: 500;
    letter-spacing: -0.025em;
    color: var(--zt-ink);
  }
  .zt-brand-mark {
    position: relative;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--zt-ink);
    color: var(--zt-bone);
    display: grid;
    place-items: center;
    font-family: var(--zt-font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.05em;
  }
  .zt-brand-mark::after {
    content: '';
    position: absolute;
    top: -3px; right: -3px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--zt-ochre);
    border: 2px solid var(--zt-bone);
  }
  .zt-brand-name { line-height: 1; }
  .zt-brand-name small {
    display: block;
    font-family: var(--zt-font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--zt-ink-soft);
    margin-top: 3px;
  }

  .zt-search {
    display: flex;
    align-items: center;
    gap: var(--zt-3);
    max-width: 480px;
    width: 100%;
    height: 36px;
    padding: 0 var(--zt-3);
    background: var(--zt-bone-raised);
    border: 1px solid var(--zt-hairline);
    border-radius: 10px;
    transition: border-color var(--zt-dur) var(--zt-ease), background var(--zt-dur) var(--zt-ease);
  }
  .zt-search:focus-within {
    border-color: var(--zt-accent);
    background: var(--zt-bone);
  }
  .zt-search svg { color: var(--zt-ink-soft); flex-shrink: 0; }
  .zt-search input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    font: inherit;
    color: var(--zt-ink);
  }
  .zt-search input::placeholder { color: var(--zt-ink-soft); }
  .zt-kbd {
    font-family: var(--zt-font-mono);
    font-size: 11px;
    color: var(--zt-ink-soft);
    background: var(--zt-bone);
    border: 1px solid var(--zt-hairline);
    border-radius: 5px;
    padding: 1px 6px;
    line-height: 1.4;
  }

  .zt-userpill {
    display: flex;
    align-items: center;
    gap: var(--zt-2);
    height: 36px;
    padding: 0 var(--zt-2) 0 var(--zt-3);
    border: 1px solid var(--zt-hairline);
    border-radius: 999px;
    background: var(--zt-bone);
    transition: background var(--zt-dur) var(--zt-ease);
    cursor: pointer;
  }
  .zt-userpill:hover { background: var(--zt-bone-raised); }
  .zt-userpill-name {
    font-size: var(--zt-fs-sm);
    font-weight: 500;
    color: var(--zt-ink);
  }
  .zt-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--zt-accent);
    color: var(--zt-bone);
    display: grid; place-items: center;
    font-family: var(--zt-font-display);
    font-size: 13px;
    font-weight: 500;
  }

  /* Sidebar rail */
  body.zt-shell .sidebar {
    position: fixed;
    top: var(--zt-header-h);
    left: 0;
    bottom: 0;
    width: var(--zt-rail-w);
    background: var(--zt-bone);
    border-right: 1px solid var(--zt-hairline);
    transition: width var(--zt-dur) var(--zt-ease);
    z-index: 90;
    overflow: visible;
    height: auto;
  }
  body.zt-shell .sidebar:hover,
  body.zt-shell .sidebar:focus-within,
  body.zt-shell .sidebar:not(.collapsed) {
    width: var(--zt-rail-w-open);
  }
  body.zt-shell .sidebar .position-sticky {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--zt-3) 0;
    position: relative !important;
    top: 0 !important;
  }
  body.zt-shell .sidebar .nav.flex-column {
    flex-direction: column;
    list-style: none;
    padding: var(--zt-2) var(--zt-3);
    margin: 0;
    display: flex;
    gap: var(--zt-1);
    flex: 1;
  }
  body.zt-shell .sidebar .nav-item { width: 100%; }
  body.zt-shell .sidebar .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* collapsed default: icon centered */
    gap: 0;
    height: 44px;
    padding: 0;
    border-radius: 10px;
    color: var(--zt-ink-muted) !important;
    font-size: var(--zt-fs-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--zt-dur) var(--zt-ease), color var(--zt-dur) var(--zt-ease);
  }
  body.zt-shell .sidebar:hover .nav-link,
  body.zt-shell .sidebar:focus-within .nav-link,
  body.zt-shell .sidebar:not(.collapsed) .nav-link {
    justify-content: flex-start;
    gap: var(--zt-3);
    padding: 0 var(--zt-3);
  }
  body.zt-shell .sidebar .nav-link:hover {
    background: var(--zt-bone-raised);
    color: var(--zt-ink) !important;
  }
  body.zt-shell .sidebar .nav-link.active {
    color: var(--zt-ink) !important;
  }
  body.zt-shell .sidebar:hover .nav-link.active,
  body.zt-shell .sidebar:focus-within .nav-link.active,
  body.zt-shell .sidebar:not(.collapsed) .nav-link.active {
    background: var(--zt-bone-raised);
  }
  /* Active indicator: collapsed → tint the icon teal + a 3px bottom pill;
     expanded → restore the classic side-dot at left:-16px. */
  body.zt-shell .sidebar .nav-link.active svg {
    color: var(--zt-accent);
  }
  body.zt-shell .sidebar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--zt-accent);
    transform: translateX(-50%);
    animation: zt-pulse 2.4s ease-in-out infinite;
  }
  body.zt-shell .sidebar:hover .nav-link.active::after,
  body.zt-shell .sidebar:focus-within .nav-link.active::after,
  body.zt-shell .sidebar:not(.collapsed) .nav-link.active::after {
    display: none;
  }
  body.zt-shell .sidebar:hover .nav-link.active svg,
  body.zt-shell .sidebar:focus-within .nav-link.active svg,
  body.zt-shell .sidebar:not(.collapsed) .nav-link.active svg {
    color: inherit;
  }
  body.zt-shell .sidebar:hover .nav-link.active::before,
  body.zt-shell .sidebar:focus-within .nav-link.active::before,
  body.zt-shell .sidebar:not(.collapsed) .nav-link.active::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--zt-accent);
    transform: translateY(-50%);
    animation: zt-pulse 2.4s ease-in-out infinite;
  }
  body.zt-shell .sidebar .nav-link svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    stroke-width: 1.6;
    transition: color var(--zt-dur) var(--zt-ease);
  }
  body.zt-shell .sidebar .nav-link .menu-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transform: translateX(-4px);
    transition: opacity var(--zt-dur) var(--zt-ease), transform var(--zt-dur) var(--zt-ease);
    pointer-events: none;
  }
  body.zt-shell .sidebar:hover .nav-link .menu-text,
  body.zt-shell .sidebar:focus-within .nav-link .menu-text,
  body.zt-shell .sidebar:not(.collapsed) .nav-link .menu-text {
    opacity: 1;
    width: auto;
    transform: translateX(0);
    pointer-events: auto;
  }

  .zt-rail-foot {
    margin-top: auto;
    padding: var(--zt-3) var(--zt-5);
    border-top: 1px solid var(--zt-hairline);
    display: flex;
    align-items: center;
    gap: var(--zt-3);
    color: var(--zt-ink-soft);
    font-size: var(--zt-fs-xs);
    font-family: var(--zt-font-mono);
    letter-spacing: 0.04em;
  }
  .zt-rail-foot-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--zt-ochre);
    box-shadow: 0 0 0 3px oklch(0.78 0.13 80 / 0.15);
    flex-shrink: 0;
  }
  .zt-rail-foot-text {
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--zt-dur) var(--zt-ease);
  }
  body.zt-shell .sidebar:hover .zt-rail-foot-text,
  body.zt-shell .sidebar:focus-within .zt-rail-foot-text,
  body.zt-shell .sidebar:not(.collapsed) .zt-rail-foot-text {
    opacity: 1;
  }

  /* Main content */
  body.zt-shell .main-content {
    margin-left: var(--zt-rail-w) !important;
    margin-top: var(--zt-header-h) !important;
    width: calc(100% - var(--zt-rail-w)) !important;
    padding: var(--zt-7) clamp(var(--zt-5), 4vw, var(--zt-9)) var(--zt-9);
    transition: none;
  }
  body.zt-shell .main-content.expanded { /* legacy hook from sidebar.js — neutralised */
    margin-left: var(--zt-rail-w) !important;
    width: calc(100% - var(--zt-rail-w)) !important;
  }
  body.zt-shell .container-fluid > .row {
    margin: 0;
  }

  /* Hamburger button (visible only on mobile) */
  .zt-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--zt-hairline);
    border-radius: 10px;
    color: var(--zt-ink);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--zt-dur) var(--zt-ease), border-color var(--zt-dur) var(--zt-ease);
  }
  .zt-hamburger:hover { background: var(--zt-bone-raised); }
  .zt-hamburger:active { transform: translateY(1px); }
  .zt-hamburger svg { width: 18px; height: 14px; }
  .zt-hamburger svg line {
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    transform-origin: center;
    transition: transform var(--zt-dur) var(--zt-ease), opacity var(--zt-dur) var(--zt-ease);
  }
  body[data-drawer-open] .zt-hamburger svg .l1 { transform: translateY(6px) rotate(45deg); }
  body[data-drawer-open] .zt-hamburger svg .l2 { opacity: 0; }
  body[data-drawer-open] .zt-hamburger svg .l3 { transform: translateY(-6px) rotate(-45deg); }

  /* Drawer scrim — only meaningful on mobile when drawer is open */
  .zt-drawer-scrim {
    position: fixed;
    inset: 0;
    background: oklch(0.22 0.02 60 / 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    z-index: 80;
    transition: opacity var(--zt-dur) var(--zt-ease);
  }
  body[data-drawer-open] .zt-drawer-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  /* Mobile: ≤768px — rail becomes a slide-out drawer behind a hamburger */
  @media (max-width: 767.98px) {
    body.zt-shell .navbar.fixed-top { padding: 0 var(--zt-4); }
    .zt-header { gap: var(--zt-3); }
    .zt-hamburger { display: inline-flex; }
    .zt-search { display: none; }
    .zt-brand { display: none; }
    .zt-header .zt-userpill { margin-left: auto; }

    /* Drawer */
    body.zt-shell .sidebar {
      position: fixed;
      top: var(--zt-header-h);
      left: 0;
      bottom: 0;
      width: min(280px, 84vw) !important;
      transform: translateX(-100%);
      transition: transform var(--zt-dur) var(--zt-ease);
      border-right: 1px solid var(--zt-hairline);
      box-shadow: 8px 0 24px -12px oklch(0.22 0.02 60 / 0.18);
      z-index: 95;
      overflow-y: auto;
    }
    body.zt-shell[data-drawer-open] .sidebar {
      transform: translateX(0);
    }
    /* Drawer always shows full labels (we're effectively in the open state) */
    body.zt-shell .sidebar .nav-link {
      justify-content: flex-start;
      gap: var(--zt-3);
      padding: 0 var(--zt-3);
    }
    body.zt-shell .sidebar .nav-link .menu-text {
      opacity: 1;
      width: auto;
      transform: none;
      pointer-events: auto;
    }
    body.zt-shell .sidebar .nav-link.active svg { color: inherit; }
    body.zt-shell .sidebar .nav-link.active::after { display: none; }
    body.zt-shell .sidebar .nav-link.active::before {
      content: '';
      position: absolute;
      left: -8px;
      top: 50%;
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--zt-accent);
      transform: translateY(-50%);
      animation: zt-pulse 2.4s ease-in-out infinite;
    }
    body.zt-shell .sidebar .nav.flex-column { padding: var(--zt-3) var(--zt-4); }
    .zt-rail-foot { padding: var(--zt-3) var(--zt-4); }
    .zt-rail-foot-text { opacity: 1; }

    /* Main content — full width, drawer floats above */
    body.zt-shell .main-content {
      margin-left: 0 !important;
      width: 100% !important;
      padding: var(--zt-5) var(--zt-4) var(--zt-7);
    }

    body[data-drawer-open] { overflow: hidden; }
  }
  @media (max-width: 480px) {
    .zt-userpill .zt-userpill-name { display: none; }
    .zt-userpill { padding: 0; border: 0; background: transparent; }
  }

/* ─── dashboard: bento + tiles ─────────────────────────────────────────── */
  .zt-greeting {
    margin-bottom: var(--zt-7);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--zt-5);
    flex-wrap: wrap;
  }
  .zt-eyebrow {
    font-family: var(--zt-font-mono);
    font-size: var(--zt-fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--zt-ink-soft);
    margin-bottom: var(--zt-3);
    display: flex;
    align-items: center;
    gap: var(--zt-2);
  }
  .zt-eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--zt-ochre);
    box-shadow: 0 0 0 3px oklch(0.78 0.13 80 / 0.18);
    animation: zt-pulse 2.4s ease-in-out infinite;
  }
  .zt-greet-title {
    font-family: var(--zt-font-display);
    font-size: var(--zt-fs-3xl);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--zt-ink);
    max-width: 18ch;
  }
  .zt-greet-title em {
    font-style: normal;
    color: var(--zt-accent-ink);
  }
  .zt-greet-actions {
    display: flex;
    gap: var(--zt-2);
  }
  .zt-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--zt-2);
    height: 36px;
    padding: 0 var(--zt-4);
    border-radius: 10px;
    border: 1px solid var(--zt-hairline);
    background: var(--zt-bone);
    color: var(--zt-ink);
    font: 500 var(--zt-fs-sm) var(--zt-font-body);
    cursor: pointer;
    transition: background var(--zt-dur) var(--zt-ease), transform 120ms var(--zt-ease), border-color var(--zt-dur) var(--zt-ease);
  }
  .zt-btn:hover { background: var(--zt-bone-raised); border-color: var(--zt-hairline-strong); }
  .zt-btn:active { transform: translateY(1px); }
  .zt-btn-primary {
    background: var(--zt-ink);
    color: var(--zt-bone);
    border-color: var(--zt-ink);
  }
  .zt-btn-primary:hover { background: var(--zt-accent-ink); border-color: var(--zt-accent-ink); }

  /* Bento grid: 4 cols × 2 rows; tiles span asymmetrically */
  .zt-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(0, auto);
    gap: 1px;
    background: var(--zt-hairline);
    border: 1px solid var(--zt-hairline);
    border-radius: 16px;
    overflow: hidden;
  }
  .zt-tile {
    background: var(--zt-bone);
    padding: var(--zt-6);
    display: flex;
    flex-direction: column;
    gap: var(--zt-3);
    min-height: 200px;
    opacity: 0;
    transform: translateY(8px);
    animation: zt-rise 480ms var(--zt-ease) forwards;
    animation-delay: calc(var(--i, 0) * 60ms);
  }
  .zt-tile-hero    { grid-column: span 2; grid-row: span 1; }
  .zt-tile-month   { grid-column: span 2; grid-row: span 1; }
  .zt-tile-co      { grid-column: span 1; grid-row: span 1; }
  .zt-tile-week    { grid-column: span 1; grid-row: span 1; }
  .zt-tile-chart   { grid-column: span 2; grid-row: span 1; min-height: 320px; }

  .zt-tile-label {
    font-family: var(--zt-font-mono);
    font-size: var(--zt-fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--zt-ink-soft);
  }
  .zt-tile-figure {
    font-family: var(--zt-font-mono);
    font-size: var(--zt-fs-2xl);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--zt-ink);
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: baseline;
    gap: var(--zt-3);
  }
  .zt-tile-unit {
    font-family: var(--zt-font-body);
    font-size: var(--zt-fs-md);
    font-weight: 400;
    color: var(--zt-ink-soft);
    letter-spacing: 0;
  }
  .zt-tile-caption {
    color: var(--zt-ink-muted);
    font-size: var(--zt-fs-sm);
    max-width: 36ch;
    margin-top: auto;
  }
  .zt-tile-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--zt-font-mono);
    font-size: var(--zt-fs-xs);
    font-weight: 500;
    color: var(--zt-accent-ink);
    background: var(--zt-accent-soft);
    padding: 3px 7px;
    border-radius: 999px;
    letter-spacing: 0;
  }

  .zt-tile-hero .zt-tile-figure { font-size: var(--zt-fs-3xl); }
  .zt-tile-month {
    background: var(--zt-bone-raised);
  }
  .zt-tile-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--zt-4);
  }
  .zt-tile-chart canvas {
    flex: 1;
    width: 100% !important;
    max-height: 260px;
  }

  /* sparkline beneath tile-co */
  .zt-spark {
    height: 28px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    margin-top: var(--zt-2);
  }
  .zt-spark-bar {
    flex: 1;
    background: var(--zt-accent);
    opacity: 0.35;
    border-radius: 2px;
    min-height: 3px;
  }
  .zt-spark-bar:last-child { opacity: 1; }

  .zt-empty {
    padding: var(--zt-6);
    border: 1px dashed var(--zt-hairline-strong);
    border-radius: 12px;
    color: var(--zt-ink-muted);
    font-size: var(--zt-fs-sm);
  }

  /* Tablet: collapse bento to 2 cols */
  @media (max-width: 1100px) {
    .zt-bento { grid-template-columns: repeat(2, 1fr); }
    .zt-tile-hero, .zt-tile-month, .zt-tile-chart { grid-column: span 2; }
    .zt-tile-co, .zt-tile-week { grid-column: span 1; }
  }
  /* Mobile: single column */
  @media (max-width: 700px) {
    .zt-bento { grid-template-columns: 1fr; }
    .zt-tile, .zt-tile-hero, .zt-tile-month,
    .zt-tile-co, .zt-tile-week, .zt-tile-chart { grid-column: span 1 !important; grid-row: span 1 !important; }
    .zt-tile { min-height: 0; padding: var(--zt-5); }
    .zt-tile-chart { min-height: 280px; }
    .zt-tile-chart canvas { max-height: 220px; }
    .zt-tile-figure { font-size: 32px; }
    .zt-tile-hero .zt-tile-figure { font-size: clamp(28px, 9vw, 44px); }
    .zt-greeting { align-items: flex-start; flex-direction: column; gap: var(--zt-3); }
    .zt-greet-actions { align-self: flex-start; }
  }

/* ─── bootstrap visual overrides (tighten, retint) ─────────────────────── */
  body.zt-shell .alert-warning {
    background: oklch(0.97 0.04 80);
    border-color: oklch(0.85 0.07 80);
    color: oklch(0.32 0.07 60);
    border-radius: 10px;
  }
  body.zt-shell .table-responsive {
    border: 1px solid var(--zt-hairline);
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--zt-bone);
  }
  body.zt-shell .table-responsive .table { margin-bottom: 0; }
  @media (max-width: 768px) {
    body.zt-shell .table thead th,
    body.zt-shell .table tbody td { white-space: nowrap; }
  }
  body.zt-shell .table {
    color: var(--zt-ink);
    border-color: var(--zt-hairline);
  }
  body.zt-shell .table > :not(caption) > * > * {
    border-bottom-color: var(--zt-hairline);
    padding: 14px 16px;
  }
  body.zt-shell .table thead th {
    font-family: var(--zt-font-mono);
    font-size: var(--zt-fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--zt-ink-soft);
    border-bottom: 1px solid var(--zt-hairline-strong);
    background: transparent;
  }
  body.zt-shell .table-striped > tbody > tr:nth-of-type(odd) > * {
    background: var(--zt-bone-raised);
    color: var(--zt-ink);
  }
  body.zt-shell .btn-primary {
    background: var(--zt-ink);
    border-color: var(--zt-ink);
    color: var(--zt-bone);
    border-radius: 10px;
    font-weight: 500;
  }
  body.zt-shell .btn-primary:hover,
  body.zt-shell .btn-primary:focus {
    background: var(--zt-accent-ink);
    border-color: var(--zt-accent-ink);
    color: var(--zt-bone);
  }
  body.zt-shell .btn-danger {
    border-radius: 10px;
    font-weight: 500;
  }
  body.zt-shell .btn-secondary,
  body.zt-shell .btn-outline-secondary {
    border-radius: 10px;
    background: var(--zt-bone);
    border-color: var(--zt-hairline);
    color: var(--zt-ink);
  }
  body.zt-shell .form-control, body.zt-shell .form-select {
    border-radius: 10px;
    border-color: var(--zt-hairline);
    color: var(--zt-ink);
    background: var(--zt-bone);
  }
  body.zt-shell .form-control:focus, body.zt-shell .form-select:focus {
    border-color: var(--zt-accent);
    box-shadow: 0 0 0 3px var(--zt-accent-soft);
  }
  body.zt-shell .modal-content {
    border-radius: 14px;
    border: 1px solid var(--zt-hairline);
    background: var(--zt-bone);
  }

/* ─── keyframes ─────────────────────────────────────────────────────────── */
@keyframes zt-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
@keyframes zt-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
