/* ============================================================
   Vihan TravelOS — design system
   ============================================================ */
@font-face {
  font-family: "Manrope";
  src: url("./manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;

  --bg: #f4f3ee;
  --bg-deep: #eeede7;
  --surface: #ffffff;
  --surface-warm: #faf9f5;
  --surface-soft: #f6f6f1;
  --ink: #14201c;
  --ink-soft: #2e3c36;
  --muted: #69756f;
  --faint: #909a94;
  --line: #e7e7df;
  --line-strong: #d9dbd2;

  --forest: #0c2b23;
  --forest-2: #123e32;
  --forest-3: #1b5946;
  --green: #167a5a;
  --green-mid: #2f9473;
  --green-soft: #e8f3ee;
  --gold: #e3ae55;
  --gold-deep: #b8822a;
  --gold-soft: #fbf1df;
  --sand: #f2eadb;
  --red: #c55043;
  --red-soft: #fbecea;
  --blue: #3867bd;
  --blue-soft: #edf1fa;
  --purple: #7457c8;
  --purple-soft: #f1edfb;
  --teal: #1e7f86;
  --teal-soft: #e6f3f3;

  --r-xs: 6px;
  --r-sm: 9px;
  --r: 13px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(20, 32, 28, 0.04);
  --shadow-sm: 0 4px 14px -8px rgba(20, 32, 28, 0.18);
  --shadow: 0 18px 42px -28px rgba(20, 32, 28, 0.34);
  --shadow-lg: 0 30px 70px -28px rgba(9, 28, 22, 0.38);
  --sidebar-w: 252px;
  --topbar-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 1, "ss01" 1;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg.lucide { width: 18px; height: 18px; stroke-width: 1.8; flex: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: #cfe6d9; color: var(--forest); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 300; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: #c9cec6 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #c9cec6; border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   Shell
   ============================================================ */
.app-shell { display: flex; min-height: 100vh; }
.main-shell {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.view {
  flex: 1;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 26px 30px 40px;
  outline: none;
}
.view-inner { animation: viewRise 0.34s cubic-bezier(0.22, 0.68, 0.3, 1) both; }
@keyframes viewRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 30px 22px;
  color: var(--faint);
  font-size: 10.5px;
  letter-spacing: 0.01em;
  border-top: 1px solid rgba(217, 219, 210, 0.55);
  margin: 0 30px;
}
.footer-right { display: inline-flex; align-items: center; gap: 7px; }
.dot-sep { opacity: 0.45; margin: 0 4px; }
.live-pip { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #2f9473; box-shadow: 0 0 0 3px rgba(47, 148, 115, 0.14); }

/* Sidebar */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar-w);
  background:
    radial-gradient(120% 50% at 0% 0%, rgba(55, 118, 93, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, #0d2d24 0%, #0a241d 56%, #081d18 100%);
  color: rgba(244, 242, 233, 0.82);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}
.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23d9c79d' stroke-width='.55'%3E%3Cpath d='M-20 120C20 80 50 150 90 110S160 40 200 80'/%3E%3Cpath d='M-20 140C20 100 50 170 90 130S160 60 200 100'/%3E%3Cpath d='M-20 160C20 120 50 190 90 150S160 80 200 120'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 280px;
  mask-image: linear-gradient(to bottom, transparent, #000 55%, #000);
  z-index: 0;
}
.sidebar > * { position: relative; z-index: 1; }
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 21px 20px 17px;
  min-height: 78px;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: #fbf8ef;
  color: var(--forest);
  display: grid; place-items: center;
  padding: 5px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  flex: none;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark svg { width: 21px; height: 21px; stroke-width: 2; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 25px; letter-spacing: 0.045em; color: #f7f2e5; font-weight: 400; }
.brand-sub { margin-top: 5px; font-size: 8px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(235, 228, 211, 0.48); font-weight: 700; }
.sidebar-scroll { overflow-y: auto; padding: 4px 12px 14px; flex: 1; scrollbar-color: rgba(255, 255, 255, 0.15) transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); background-clip: content-box; }
.nav-group { margin-top: 15px; }
.nav-group:first-child { margin-top: 2px; }
.nav-label {
  padding: 0 10px 7px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(235, 228, 211, 0.36);
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 35px;
  padding: 7px 10px;
  margin: 1px 0;
  border-radius: 8px;
  color: rgba(242, 240, 232, 0.72);
  font-size: 12.3px;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: background 0.16s, color 0.16s;
}
.nav-item svg { width: 16px; height: 16px; opacity: 0.75; stroke-width: 1.7; }
.nav-item:hover { background: rgba(255, 255, 255, 0.055); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, 0.09); color: #fff7e8; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.nav-item.active svg { color: var(--gold); opacity: 1; }
.nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: rgba(227, 174, 85, 0.16);
  color: #eec97e;
  display: grid; place-items: center;
  font-size: 9.5px; font-weight: 800;
}
.nav-badge.red { background: rgba(225, 104, 88, 0.16); color: #f0a89f; }
.sidebar-foot { padding: 12px 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.control-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 13px 13px 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.control-card::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -30px; top: -45px; border: 1px solid rgba(227, 174, 85, 0.2); }
.control-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.control-eyebrow .status-dot { width: 5px; height: 5px; border-radius: 50%; background: #6ad0a4; box-shadow: 0 0 0 3px rgba(106, 208, 164, 0.12); }
.control-title { margin-top: 8px; font-size: 12.5px; font-weight: 650; color: #f6f1e5; }
.control-meta { margin-top: 2px; font-size: 10px; color: rgba(238, 233, 220, 0.46); }
.control-link { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 10.5px; font-weight: 700; color: #e9c987; }
.control-link svg { width: 13px; height: 13px; }
.sidebar-user { display: none; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar-h);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(244, 243, 238, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(217, 219, 210, 0.7);
}
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 9px; min-width: 0; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; color: var(--faint); font-size: 11.5px; white-space: nowrap; }
.breadcrumbs svg { width: 12px; height: 12px; opacity: 0.5; }
.breadcrumbs strong { color: var(--ink-soft); font-weight: 650; }
.menu-btn { display: none !important; }
.search-trigger {
  display: flex; align-items: center; gap: 8px;
  width: 260px; height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--faint);
  font-size: 11.5px;
  text-align: left;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}
.search-trigger:hover { background: #fff; border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.search-trigger svg { width: 15px; height: 15px; color: var(--muted); }
.search-trigger span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd {
  font-family: var(--font);
  font-size: 9px;
  font-weight: 700;
  color: var(--faint);
  border: 1px solid var(--line);
  background: var(--surface-warm);
  border-radius: 4px;
  padding: 2px 5px;
  white-space: nowrap;
}
.icon-btn {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  transition: 0.16s;
  position: relative;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.8); border-color: var(--line); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
.topbar-icon { border-color: transparent; }
.notif-dot { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); border: 1.5px solid var(--bg); }
.topbar-sep { width: 1px; height: 23px; background: var(--line-strong); margin: 0 3px; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 3px 6px 3px 4px;
  border: 1px solid transparent; border-radius: 10px;
  background: transparent;
}
.user-chip:hover { background: rgba(255, 255, 255, 0.7); border-color: var(--line); }
.user-chip-copy { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.user-chip-copy strong { font-size: 11.5px; font-weight: 700; }
.user-chip-copy small { font-size: 9px; color: var(--faint); margin-top: 2px; }
.user-chip > svg { width: 13px; height: 13px; color: var(--faint); margin-left: 2px; }
.new-request-btn { margin-left: 3px; }

/* ============================================================
   Typography + page chrome
   ============================================================ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-head-main { min-width: 0; }
.eyebrow {
  display: flex; align-items: center; gap: 7px;
  color: var(--muted); font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 8px;
}
.eyebrow .eyebrow-mark { width: 16px; height: 1px; background: var(--gold-deep); display: inline-block; }
.page-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}
.page-title .title-accent { font-style: italic; color: var(--green); }
.page-sub { margin-top: 7px; color: var(--muted); font-size: 12px; max-width: 720px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex: none; padding-bottom: 2px; }
.page-actions .btn { height: 38px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-title { font-size: 13.5px; font-weight: 750; letter-spacing: -0.005em; display: flex; align-items: center; gap: 8px; }
.section-title .muted-count { font-size: 10px; color: var(--faint); font-weight: 600; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 99px; padding: 1px 7px; }
.section-sub { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.text-link { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 11px; font-weight: 750; }
.text-link:hover { color: var(--forest); }
.text-link svg { width: 13px; height: 13px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.strong { font-weight: 700; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--font-display); font-weight: 400; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ============================================================
   Buttons, chips, inputs
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 13px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.005em;
  white-space: nowrap;
  transition: transform 0.14s, background 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--forest); color: #fbf7ec; box-shadow: 0 7px 16px -10px rgba(12, 43, 35, 0.7); }
.btn-primary:hover { background: var(--forest-2); }
.btn-gold { background: var(--gold); color: #3a2a0c; box-shadow: 0 7px 16px -10px rgba(184, 130, 42, 0.55); }
.btn-gold:hover { background: #edbd6c; }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink-soft); }
.btn-outline:hover { border-color: #b9c0b7; background: #fff; box-shadow: var(--shadow-xs); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-soft); color: var(--ink); }
.btn-soft { background: var(--green-soft); color: var(--green); }
.btn-soft:hover { background: #dbeee5; }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: #f7ded9; }
.btn-sm { height: 30px; padding: 0 9px; font-size: 10.5px; border-radius: 7px; }
.btn-sm svg { width: 12px; height: 12px; }
.btn-lg { height: 42px; padding: 0 18px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.48; cursor: not-allowed; transform: none; }
.btn-icon-only { width: 32px; padding: 0; }
.btn .spinner { width: 12px; height: 12px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 25px; padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px; font-weight: 600;
  white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; }
.chip.active { background: var(--forest); border-color: var(--forest); color: #f7f2e5; }
.chip.gold { background: var(--gold-soft); border-color: #f0dfbc; color: var(--gold-deep); }
.chip.red { background: var(--red-soft); border-color: #f5d7d2; color: var(--red); }
.chip.green { background: var(--green-soft); border-color: #d5e9df; color: var(--green); }
.chip.blue { background: var(--blue-soft); border-color: #dbe3f4; color: var(--blue); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 7px;
  border-radius: 5px;
  font-size: 9.5px; font-weight: 750;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge::before { content: ""; width: 4.5px; height: 4.5px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.badge.no-dot::before { display: none; }
.badge-success { background: var(--green-soft); color: #146d50; border-color: #d8e9e1; }
.badge-warning { background: var(--gold-soft); color: #97661d; border-color: #f2e2c3; }
.badge-danger { background: var(--red-soft); color: #b14337; border-color: #f4d8d4; }
.badge-info { background: var(--blue-soft); color: #325ea9; border-color: #dee6f5; }
.badge-purple { background: var(--purple-soft); color: #6546b5; border-color: #e7dff8; }
.badge-neutral { background: var(--surface-soft); color: var(--muted); border-color: var(--line); }
.badge-dark { background: var(--forest); color: #f3ead7; }
.badge-dark::before { background: var(--gold); }

.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 10px; font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  flex: none;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 2px rgba(20, 32, 28, 0.1);
}
.avatar-sm { width: 28px; height: 28px; font-size: 9px; }
.avatar-lg { width: 42px; height: 42px; font-size: 12px; }
.avatar-xl { width: 54px; height: 54px; font-size: 15px; }
.avatar-forest { background: linear-gradient(145deg, #245d49, #0d3025); }
.avatar-gold { background: linear-gradient(145deg, #d9ad63, #a87528); color: #2f220b; }
.avatar-blue { background: linear-gradient(145deg, #6189d8, #2f5aa7); }
.avatar-coral { background: linear-gradient(145deg, #df8a6d, #b2513d); }
.avatar-plum { background: linear-gradient(145deg, #9a7ac2, #644b91); }
.avatar-teal { background: linear-gradient(145deg, #4ba2a4, #1f6f73); }
.avatar-slate { background: linear-gradient(145deg, #71847d, #43534c); }
.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar { margin-left: -7px; border: 2px solid var(--surface); }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-more { background: var(--surface-soft); color: var(--muted); font-size: 8.5px; border: 1px solid var(--line); }
.person { display: flex; align-items: center; gap: 9px; min-width: 0; }
.person-copy { min-width: 0; line-height: 1.25; }
.person-copy strong { display: block; font-size: 11.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-copy small { display: block; color: var(--faint); font-size: 9.5px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.field > label .optional { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--faint); font-size: 9px; }
.input, .select, .textarea {
  width: 100%;
  height: 39px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  padding: 0 11px;
  font-size: 12px;
  color: var(--ink);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.textarea { height: auto; min-height: 86px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #a9b2ac; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(47, 148, 115, 0.12); }
.select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2369756f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
.input-group { display: flex; align-items: center; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; height: 39px; padding: 0 10px; gap: 8px; transition: 0.16s; }
.input-group:focus-within { border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(47, 148, 115, 0.12); }
.input-group svg { width: 15px; height: 15px; color: var(--faint); flex: none; }
.input-group input, .input-group select { border: 0; background: transparent; outline: none; width: 100%; height: 100%; font-size: 12px; padding: 0; min-width: 0; }
.input-group .prefix { color: var(--faint); font-size: 12px; }
.input-sm { height: 33px; font-size: 11px; }
.help-text { font-size: 9.5px; color: var(--faint); line-height: 1.45; }
.help-text.error { color: var(--red); }
.help-text.success { color: var(--green); }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; color: var(--ink-soft); cursor: pointer; line-height: 1.4; }
.check input { width: 14px; height: 14px; accent-color: var(--green); margin: 1px 0 0; flex: none; }
.switch { position: relative; width: 34px; height: 19px; border-radius: 99px; background: #d9ddd7; border: 0; padding: 0; transition: 0.2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: 0.2s; }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(15px); }

.segmented { display: inline-flex; align-items: center; padding: 3px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; gap: 2px; }
.segmented button { height: 26px; padding: 0 9px; border: 0; background: transparent; color: var(--muted); border-radius: 6px; font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 32, 28, 0.1); }
.tabs { display: flex; align-items: center; gap: 3px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { height: 38px; padding: 0 11px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 11px; font-weight: 650; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--green); }
.tab .count { font-size: 9px; color: var(--faint); background: var(--surface-soft); padding: 1px 5px; border-radius: 99px; }
.tab.active .count { background: var(--green-soft); color: var(--green); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; flex-wrap: wrap; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-search { width: 220px; }
.filter-search.input-group { height: 33px; background: var(--surface); }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--surface); }
.view-toggle button { width: 29px; height: 29px; border: 0; background: transparent; color: var(--faint); display: grid; place-items: center; }
.view-toggle button svg { width: 14px; height: 14px; }
.view-toggle button.active { background: var(--forest); color: #fff; }

/* ============================================================
   Cards and layout grids
   ============================================================ */
.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-xs);
  position: relative;
}
.card-pad { padding: 17px 18px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px 17px 0; }
.card-head.with-border { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.card-title { font-size: 12.5px; font-weight: 750; display: flex; align-items: center; gap: 7px; }
.card-title svg { width: 15px; height: 15px; color: var(--muted); }
.card-sub { color: var(--faint); font-size: 10px; margin-top: 2px; }
.card-body { padding: 15px 17px 17px; }
.card-foot { border-top: 1px solid var(--line); padding: 10px 17px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-hover { transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s; }
.card-hover:hover { border-color: #d2d7ce; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); }
.grid-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spacer { flex: 1; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

/* Stat cards */
.stat-card { padding: 16px 17px 15px; min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stat-label { color: var(--muted); font-size: 10.5px; font-weight: 650; letter-spacing: 0.01em; display: flex; align-items: center; gap: 6px; }
.stat-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-soft); display: grid; place-items: center; color: var(--muted); flex: none; }
.stat-icon svg { width: 15px; height: 15px; }
.stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat-icon.gold { background: var(--gold-soft); color: var(--gold-deep); }
.stat-icon.blue { background: var(--blue-soft); color: var(--blue); }
.stat-icon.red { background: var(--red-soft); color: var(--red); }
.stat-icon.purple { background: var(--purple-soft); color: var(--purple); }
.stat-value { font-size: 27px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; margin-top: 12px; display: flex; align-items: baseline; gap: 6px; }
.stat-value .stat-unit { font-size: 11px; color: var(--faint); font-weight: 600; letter-spacing: 0; }
.stat-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 7px; }
.stat-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 750; color: var(--green); }
.stat-delta.down { color: var(--red); }
.stat-delta svg { width: 11px; height: 11px; }
.stat-note { color: var(--faint); font-size: 9.5px; }
.spark-line { height: 23px; width: 72px; opacity: 0.8; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: 0 0 var(--r) var(--r); }
table.data { width: 100%; border-collapse: collapse; }
table.data th {
  text-align: left; padding: 9px 12px;
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); background: var(--surface-warm);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data th:first-child, table.data td:first-child { padding-left: 17px; }
table.data th:last-child, table.data td:last-child { padding-right: 17px; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 11px; vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background 0.13s; }
table.data tbody tr:hover { background: #fbfbf7; }
table.data tbody tr.clickable { cursor: pointer; }
table.data .cell-main { font-size: 11.5px; font-weight: 700; color: var(--ink); }
table.data .cell-sub { display: flex; align-items: center; gap: 5px; color: var(--faint); font-size: 9.5px; margin-top: 2px; }
table.data .cell-sub svg { width: 10px; height: 10px; }
table.data .num { font-variant-numeric: tabular-nums; font-weight: 650; }
table.data .row-actions { display: flex; justify-content: flex-end; gap: 3px; opacity: 0.55; transition: opacity 0.14s; }
table.data tr:hover .row-actions { opacity: 1; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }
.pager { display: flex; align-items: center; gap: 3px; }
.pager button { min-width: 25px; height: 25px; border: 1px solid var(--line); background: var(--surface); border-radius: 5px; color: var(--muted); font-size: 9.5px; display: grid; place-items: center; }
.pager button.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.pager button:disabled { opacity: 0.4; }
.pager svg { width: 12px; height: 12px; }

/* ============================================================
   Dashboard
   ============================================================ */
.dash-hero {
  position: relative;
  min-height: 224px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(115deg, #0b2b22 0%, #103a2d 58%, #174738 100%);
  color: #f8f3e7;
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  box-shadow: 0 24px 50px -38px rgba(9, 35, 27, 0.7);
  margin-bottom: 15px;
  isolation: isolate;
}
.dash-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='440' height='260' viewBox='0 0 440 260'%3E%3Cg fill='none' stroke='%23e6cf9d' stroke-opacity='.16' stroke-width='.7'%3E%3Cpath d='M-40 200C60 120 130 240 220 170S380 60 490 140'/%3E%3Cpath d='M-40 222C60 142 130 262 220 192S380 82 490 162'/%3E%3Cpath d='M-40 244C60 164 130 284 220 214S380 104 490 184'/%3E%3Cpath d='M-40 178C60 98 130 218 220 148S380 38 490 118'/%3E%3Ccircle cx='60' cy='50' r='60'/%3E%3Ccircle cx='390' cy='210' r='90'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 620px;
  background-position: left bottom;
}
.dash-hero-copy { position: relative; z-index: 2; padding: 28px 10px 26px 30px; display: flex; flex-direction: column; justify-content: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; color: #e6c47f; font-size: 9px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.hero-eyebrow svg { width: 13px; height: 13px; }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -0.015em; margin-top: 12px; color: #fbf6e9; }
.hero-title em { color: #eac77f; font-style: italic; }
.hero-copy { max-width: 460px; margin-top: 10px; color: rgba(247, 242, 230, 0.64); font-size: 11.5px; line-height: 1.6; }
.hero-copy strong { color: #f7edd8; font-weight: 700; }
.hero-actions { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.hero-actions .btn { height: 35px; font-size: 10.5px; }
.hero-actions .btn-gold { background: #e8bd6d; color: #31230c; }
.hero-actions .btn-outline { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); color: #f4eedf; }
.hero-actions .btn-outline:hover { background: rgba(255, 255, 255, 0.13); }
.hero-route { display: flex; align-items: center; gap: 8px; margin-top: 19px; color: rgba(247, 242, 230, 0.48); font-size: 9px; font-weight: 600; letter-spacing: 0.04em; }
.hero-avatars { display: flex; }
.hero-avatars .avatar { width: 23px; height: 23px; font-size: 7.5px; margin-left: -5px; border: 1.5px solid #123e32; }
.hero-avatars .avatar:first-child { margin-left: 0; }
.hero-route strong { color: #f4e7c9; font-weight: 700; }
.hero-aside { position: relative; z-index: 2; padding: 14px 14px 14px 0; display: flex; }
.next-card { position: relative; flex: 1; border-radius: 13px; overflow: hidden; background: #193f31; border: 1px solid rgba(255, 255, 255, 0.13); display: flex; flex-direction: column; justify-content: flex-end; min-height: 194px; }
.next-card-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.62; transform: scale(1.02); transition: transform 5s ease; }
.next-card:hover .next-card-img { transform: scale(1.09); }
.next-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 28, 22, 0.08) 0%, rgba(9, 28, 22, 0.48) 50%, rgba(9, 28, 22, 0.92) 100%); }
.next-card-body { position: relative; z-index: 2; padding: 13px 14px; }
.next-label { display: flex; align-items: center; justify-content: space-between; color: #f0d39a; font-size: 8px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.next-label span:last-child { color: rgba(250, 245, 233, 0.72); background: rgba(255, 255, 255, 0.12); padding: 2px 6px; border-radius: 4px; letter-spacing: 0.02em; font-size: 7.5px; }
.next-title { font-family: var(--font-display); font-size: 22px; line-height: 1.05; color: #fff9ec; margin-top: 7px; }
.next-meta { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: rgba(250, 245, 233, 0.65); font-size: 8.5px; }
.next-meta svg { width: 10px; height: 10px; }
.next-progress { height: 3px; background: rgba(255, 255, 255, 0.18); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.next-progress i { display: block; height: 100%; width: 72%; border-radius: 99px; background: #e6bd70; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.dash-main { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.05fr); gap: 14px; margin-bottom: 14px; }
.dash-main > .card { display: flex; flex-direction: column; }
.dash-main-3 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.95fr); gap: 14px; margin-bottom: 14px; }
.chart-card .card-body { padding-top: 9px; }
.chart-summary { display: flex; align-items: flex-end; gap: 15px; padding: 6px 17px 0; }
.chart-big { font-size: 26px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.chart-small { color: var(--faint); font-size: 9.5px; padding-bottom: 3px; }
.chart-legend { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 9.5px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
.legend-dot.gold { background: var(--gold); }
.legend-dot.muted { background: #cfd5ce; }
.chart-area { width: 100%; height: auto; display: block; overflow: visible; }
.chart-axis-labels { display: flex; justify-content: space-between; padding: 0 3px; color: var(--faint); font-size: 8px; }
.chart-tooltip-dot { transition: r .15s; }
.chart-area .gridline { stroke: #eeeee7; stroke-width: 1; }
.chart-area .area-path { transition: opacity .2s; }
.chart-area .hover-col { fill: transparent; cursor: pointer; }
.chart-area .hover-col:hover { fill: rgba(22, 122, 90, 0.04); }

.approval-list { display: flex; flex-direction: column; }
.approval-item { display: flex; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.approval-item:last-child { border-bottom: 0; }
.approval-main { min-width: 0; flex: 1; }
.approval-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.approval-title { font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.approval-sub { display: flex; align-items: center; gap: 5px; color: var(--faint); font-size: 9px; margin-top: 2px; }
.approval-sub svg { width: 10px; height: 10px; }
.approval-bottom { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.approval-amount { font-size: 10px; font-weight: 700; color: var(--ink-soft); }
.quick-approve { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--faint); }
.quick-approve:hover { color: var(--green); border-color: #c7ddd2; background: var(--green-soft); }
.quick-approve svg { width: 12px; height: 12px; }

.departure-list { display: flex; flex-direction: column; }
.departure-row { display: flex; align-items: center; gap: 11px; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.departure-row:last-child { border-bottom: 0; }
.departure-thumb { width: 42px; height: 42px; border-radius: 8px; background-size: cover; background-position: center; flex: none; position: relative; }
.departure-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.departure-copy { min-width: 0; flex: 1; }
.departure-title { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.departure-meta { color: var(--faint); font-size: 9px; margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.departure-meta svg { width: 10px; height: 10px; }
.departure-date { text-align: right; flex: none; }
.departure-date strong { display: block; font-size: 10.5px; font-weight: 750; }
.departure-date small { color: var(--faint); font-size: 8.5px; }
.visa-mini-list { display: flex; flex-direction: column; gap: 10px; }
.visa-mini-row { display: flex; align-items: center; gap: 8px; }
.visa-mini-row .flag { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--surface-soft); font-size: 13px; flex: none; }
.visa-mini-copy { flex: 1; min-width: 0; }
.visa-mini-name { display: flex; justify-content: space-between; font-size: 10px; font-weight: 650; gap: 5px; }
.visa-mini-name span:last-child { color: var(--faint); font-weight: 500; font-size: 8.5px; }
.mini-bar { height: 4px; background: var(--surface-soft); border-radius: 99px; margin-top: 5px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.mini-bar i.gold { background: var(--gold); }
.mini-bar i.red { background: var(--red); }
.mini-bar i.blue { background: var(--blue); }
.spend-list { display: flex; flex-direction: column; gap: 13px; }
.spend-row .spend-top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; margin-bottom: 5px; }
.spend-row .spend-top span:first-child { font-weight: 650; }
.spend-row .spend-top span:last-child { color: var(--faint); font-variant-numeric: tabular-nums; }
.spend-bar { height: 6px; border-radius: 99px; background: var(--surface-soft); overflow: hidden; display: flex; }
.spend-bar i { display: block; height: 100%; border-radius: 99px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.quick-action { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; transition: 0.15s; }
.quick-action:hover { background: var(--surface-warm); border-color: var(--line-strong); }
.quick-action .qa-icon { width: 27px; height: 27px; border-radius: 7px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.quick-action .qa-icon svg { width: 13px; height: 13px; }
.quick-action .qa-icon.gold { background: var(--gold-soft); color: var(--gold-deep); }
.quick-action .qa-icon.blue { background: var(--blue-soft); color: var(--blue); }
.quick-action .qa-icon.purple { background: var(--purple-soft); color: var(--purple); }
.qa-copy { min-width: 0; }
.qa-copy strong { display: block; font-size: 9.5px; font-weight: 750; white-space: nowrap; }
.qa-copy small { display: block; font-size: 8px; color: var(--faint); margin-top: 1px; }
.activity-feed { position: relative; }
.activity-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.activity-item:first-child { padding-top: 0; }
.activity-item:last-child { border: 0; padding-bottom: 0; }
.activity-icon { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--surface-soft); color: var(--muted); }
.activity-icon svg { width: 12px; height: 12px; }
.activity-icon.green { background: var(--green-soft); color: var(--green); }
.activity-icon.gold { background: var(--gold-soft); color: var(--gold-deep); }
.activity-icon.blue { background: var(--blue-soft); color: var(--blue); }
.activity-copy { font-size: 10px; color: var(--muted); line-height: 1.45; }
.activity-copy strong { color: var(--ink-soft); font-weight: 700; }
.activity-time { font-size: 8.5px; color: var(--faint); margin-top: 2px; }

/* ============================================================
   Requests & workflow
   ============================================================ */
.workflow-strip { display: flex; align-items: center; gap: 0; margin-bottom: 18px; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.workflow-step { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 650; color: var(--faint); white-space: nowrap; }
.workflow-step .step-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; font-size: 7.5px; font-weight: 800; color: var(--faint); }
.workflow-step.done .step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.workflow-step.current .step-dot { background: var(--gold); border-color: var(--gold); color: #3a2a0c; box-shadow: 0 0 0 3px var(--gold-soft); }
.workflow-step.current { color: var(--ink); }
.workflow-line { flex: 1; min-width: 16px; height: 1px; border-top: 1px dashed var(--line-strong); margin: 0 7px; }
.request-table-card .card-head { padding-bottom: 0; }
.request-route { display: flex; align-items: center; gap: 5px; }
.request-route .route-code { font-weight: 800; font-size: 10.5px; letter-spacing: 0.01em; }
.request-route .route-arrow { color: var(--gold-deep); }
.request-route svg { width: 12px; height: 12px; color: var(--faint); }
.req-progress { display: flex; align-items: center; gap: 6px; }
.req-progress .bar { width: 56px; height: 4px; border-radius: 99px; background: var(--surface-soft); overflow: hidden; }
.req-progress .bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.req-progress span { font-size: 8.5px; color: var(--faint); }

.stats-inline { display: flex; align-items: center; gap: 0; }
.stat-inline-item { padding: 0 18px; border-right: 1px solid var(--line); }
.stat-inline-item:first-child { padding-left: 0; }
.stat-inline-item:last-child { border-right: 0; }
.stat-inline-item strong { display: block; font-size: 18px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }
.stat-inline-item span { font-size: 9px; color: var(--faint); }

/* Request detail drawer */
.drawer-body .detail-title { font-family: var(--font-display); font-size: 27px; line-height: 1.08; letter-spacing: -0.01em; }
.detail-route { display: flex; align-items: center; gap: 12px; margin: 15px 0; }
.detail-route-node { display: flex; flex-direction: column; gap: 1px; }
.detail-route-node strong { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.detail-route-node span { color: var(--faint); font-size: 9px; }
.detail-route-line { flex: 1; display: flex; align-items: center; gap: 5px; color: var(--faint); }
.detail-route-line .line { flex: 1; border-top: 1px dashed var(--line-strong); }
.detail-route-line svg { width: 15px; height: 15px; color: var(--gold-deep); }
.detail-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-meta .label { font-size: 8.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 750; }
.detail-meta .value { font-size: 11px; font-weight: 650; margin-top: 2px; }
.timeline { position: relative; margin-left: 4px; }
.timeline-item { position: relative; padding: 0 0 15px 20px; border-left: 1px solid var(--line); }
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-dot { position: absolute; left: -6px; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.timeline-item.done .timeline-dot { background: var(--green); border-color: var(--green); }
.timeline-item.current .timeline-dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.timeline-title { font-size: 10.5px; font-weight: 700; }
.timeline-meta { font-size: 9px; color: var(--faint); margin-top: 2px; }
.timeline-note { font-size: 9.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.policy-check { display: flex; gap: 9px; padding: 9px 10px; border-radius: 8px; background: var(--surface-warm); border: 1px solid var(--line); margin-bottom: 6px; }
.policy-check .pc-icon { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.policy-check .pc-icon svg { width: 11px; height: 11px; }
.policy-check.warn .pc-icon { background: var(--gold-soft); color: var(--gold-deep); }
.policy-check.bad .pc-icon { background: var(--red-soft); color: var(--red); }
.policy-check .pc-copy { font-size: 9.5px; color: var(--muted); line-height: 1.4; }
.policy-check .pc-copy strong { color: var(--ink-soft); font-weight: 700; display: block; font-size: 10px; margin-bottom: 1px; }
.quote-row { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: var(--surface); transition: 0.15s; }
.quote-row:hover { border-color: var(--line-strong); }
.quote-row.selected { border-color: #b9d9c8; background: #f5fbf8; box-shadow: inset 0 0 0 1px #b9d9c8; }
.quote-row .q-radio { width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 50%; flex: none; display: grid; place-items: center; }
.quote-row.selected .q-radio { border-color: var(--green); }
.quote-row.selected .q-radio::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.quote-main { flex: 1; min-width: 0; }
.quote-vendor { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; }
.quote-detail { color: var(--faint); font-size: 8.5px; margin-top: 1px; }
.quote-price { text-align: right; }
.quote-price strong { display: block; font-size: 11px; font-weight: 750; }
.quote-price small { color: var(--faint); font-size: 8px; }

/* ============================================================
   Flights / hotels / rail
   ============================================================ */
.booking-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 15px; align-items: start; }
.search-panel { position: sticky; top: calc(var(--topbar-h) + 16px); }
.search-panel .card-body { padding: 15px; }
.search-panel .form-grid { grid-template-columns: 1fr; gap: 11px; }
.trip-type { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--surface-soft); padding: 3px; border-radius: 8px; margin-bottom: 13px; }
.trip-type button { border: 0; height: 27px; border-radius: 6px; background: transparent; font-size: 9px; font-weight: 700; color: var(--muted); }
.trip-type button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.swap-row { position: relative; }
.swap-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; z-index: 2; color: var(--muted); }
.swap-btn:hover { color: var(--green); border-color: #c9ddd3; }
.search-summary { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 11px; }
.search-summary-row { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); padding: 3px 0; }
.search-summary-row strong { color: var(--ink); font-weight: 700; }

.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.results-title { font-size: 15px; font-weight: 750; letter-spacing: -0.01em; }
.results-sub { color: var(--faint); font-size: 10px; margin-top: 2px; }
.result-sort { display: flex; align-items: center; gap: 7px; font-size: 9.5px; color: var(--faint); }
.filter-bar { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.flight-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 9px; overflow: hidden; transition: 0.18s; }
.flight-card:hover { border-color: #cfd8cf; box-shadow: var(--shadow-sm); }
.flight-top { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.airline { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: none; letter-spacing: -0.02em; }
.airline.indigo { background: #eef2fe; color: #3c4d9e; }
.airline.airindia { background: #fdeeee; color: #b73737; }
.airline.vistara { background: #f3eef8; color: #6c4b8d; }
.airline.spice { background: #fff0e8; color: #c75e2b; }
.airline.akasa { background: #fff4de; color: #9a6517; }
.flight-main { flex: 1; min-width: 0; }
.flight-airline-row { display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--faint); }
.flight-airline-row strong { font-size: 10px; color: var(--ink-soft); font-weight: 700; }
.flight-time-row { display: flex; align-items: center; gap: 13px; margin-top: 5px; }
.flight-time strong { font-size: 16px; font-weight: 750; letter-spacing: -0.02em; display: block; line-height: 1.1; }
.flight-time span { font-size: 8.5px; color: var(--faint); display: block; margin-top: 1px; }
.flight-path { flex: 1; max-width: 150px; text-align: center; position: relative; }
.flight-duration { font-size: 8px; color: var(--faint); margin-bottom: 3px; }
.flight-line { height: 1px; background: var(--line-strong); position: relative; }
.flight-line::before, .flight-line::after { content: ""; position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.flight-line::before { left: 0; } .flight-line::after { right: 0; }
.flight-line svg { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; background: var(--surface); color: var(--muted); padding: 0 2px; }
.flight-stops { font-size: 7.5px; color: var(--faint); margin-top: 2px; }
.flight-price { text-align: right; flex: none; padding-left: 10px; min-width: 90px; }
.flight-price strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.flight-price small { display: block; color: var(--faint); font-size: 8px; margin-top: 1px; }
.flight-price .badge { margin-top: 4px; }
.flight-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 15px; border-top: 1px dashed var(--line); background: #fcfcf9; font-size: 8.5px; color: var(--faint); }
.flight-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.flight-actions { display: flex; align-items: center; gap: 5px; }
.fare-note { font-size: 8px; color: var(--faint); }
.best-fare-tag { background: var(--green); color: #fff; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 3px; padding: 2px 5px; }

.hotel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hotel-card { overflow: hidden; }
.hotel-img { height: 140px; background-size: cover; background-position: center; position: relative; }
.hotel-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.35)); }
.hotel-badges { position: absolute; z-index: 1; top: 9px; left: 9px; display: flex; gap: 4px; }
.hotel-badge { background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--ink); border-radius: 5px; padding: 3px 6px; font-size: 8px; font-weight: 750; display: inline-flex; align-items: center; gap: 3px; }
.hotel-badge svg { width: 9px; height: 9px; color: var(--gold-deep); }
.hotel-fav { position: absolute; z-index: 1; top: 9px; right: 9px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.9); border: 0; display: grid; place-items: center; color: var(--muted); }
.hotel-fav:hover { color: var(--red); }
.hotel-fav svg { width: 13px; height: 13px; }
.hotel-content { padding: 12px 13px; }
.hotel-name { font-size: 12.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hotel-loc { display: flex; align-items: center; gap: 4px; color: var(--faint); font-size: 9px; margin-top: 2px; }
.hotel-loc svg { width: 10px; height: 10px; }
.hotel-amenities { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.hotel-amenity { font-size: 8px; color: var(--muted); background: var(--surface-soft); border-radius: 4px; padding: 2px 5px; }
.hotel-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.hotel-rating { display: flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 700; }
.hotel-rating .rating-pill { background: var(--forest); color: #fff; border-radius: 4px; padding: 2px 4px; font-size: 8.5px; }
.hotel-rating span { color: var(--faint); font-weight: 500; }
.hotel-price { text-align: right; }
.hotel-price strong { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.hotel-price small { display: block; color: var(--faint); font-size: 8px; }
.hotel-card .btn { width: 100%; margin-top: 9px; }

.rail-tabs { margin-bottom: 14px; }
.rail-card { display: flex; align-items: center; gap: 14px; padding: 13px 15px; }
.rail-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.rail-icon.bus { background: var(--gold-soft); color: var(--gold-deep); }
.rail-main { flex: 1; min-width: 0; }
.rail-name { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 750; }
.rail-route { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 9px; color: var(--muted); }
.rail-route strong { color: var(--ink); font-size: 10px; }
.rail-route .line { width: 45px; border-top: 1px dashed var(--line-strong); }
.rail-times { display: flex; align-items: center; gap: 10px; margin-top: 3px; font-size: 8.5px; color: var(--faint); }
.rail-price { text-align: right; flex: none; }
.rail-price strong { font-size: 14px; font-weight: 800; }
.rail-price small { display: block; color: var(--faint); font-size: 8px; margin-bottom: 4px; }
.rail-card .badge { font-size: 8px; height: 19px; }
.rail-availability { font-size: 8px; color: var(--green); font-weight: 700; margin-top: 3px; }
.rail-availability.low { color: var(--gold-deep); }

/* ============================================================
   Packages / pilgrimage / MICE
   ============================================================ */
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.package-card { overflow: hidden; display: flex; flex-direction: column; }
.package-img { height: 158px; background-size: cover; background-position: center; position: relative; }
.package-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 25, 20, 0.05) 0%, transparent 45%, rgba(8, 25, 20, 0.48) 100%); }
.package-top-badges { position: absolute; z-index: 2; top: 10px; left: 10px; display: flex; gap: 4px; }
.package-badge { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px); border-radius: 4px; padding: 3px 6px; font-size: 7.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--forest); }
.package-badge.gold { background: #e6bd70; color: #34250c; }
.package-days { position: absolute; z-index: 2; right: 10px; bottom: 9px; color: #fff; font-size: 8.5px; font-weight: 700; display: flex; align-items: center; gap: 4px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.package-days svg { width: 10px; height: 10px; }
.package-content { padding: 13px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.package-region { color: var(--gold-deep); font-size: 8px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.package-name { font-family: var(--font-display); font-size: 21px; line-height: 1.06; margin-top: 5px; color: var(--ink); }
.package-desc { color: var(--muted); font-size: 9.5px; line-height: 1.45; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.package-meta { display: flex; align-items: center; gap: 11px; margin-top: 9px; color: var(--faint); font-size: 8.5px; }
.package-meta span { display: flex; align-items: center; gap: 3px; }
.package-meta svg { width: 10px; height: 10px; }
.package-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.package-price { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.package-price small { display: block; color: var(--faint); font-size: 8px; font-weight: 500; letter-spacing: 0; margin-top: 1px; }
.package-card .btn { height: 29px; padding: 0 9px; font-size: 9.5px; }
.package-progress { margin-top: 10px; }
.package-progress .top { display: flex; justify-content: space-between; font-size: 8px; color: var(--faint); margin-bottom: 4px; }
.package-progress .top strong { color: var(--ink-soft); font-weight: 700; }
.package-progress .bar { height: 4px; background: var(--surface-soft); border-radius: 99px; overflow: hidden; }
.package-progress .bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); }

.pilgrimage-banner { display: grid; grid-template-columns: 1fr 0.85fr; min-height: 170px; overflow: hidden; margin-bottom: 16px; background: linear-gradient(115deg, #2b1a0f, #4a2e18); color: #faf1df; border: 0; }
.pilgrimage-banner-copy { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.pilgrimage-banner h2 { font-family: var(--font-display); font-size: 29px; font-weight: 400; line-height: 1.05; }
.pilgrimage-banner p { color: rgba(250, 241, 223, 0.62); font-size: 10.5px; margin-top: 6px; max-width: 460px; }
.pilgrimage-banner-stats { display: flex; gap: 21px; margin-top: 13px; }
.pilgrimage-banner-stats strong { display: block; font-size: 17px; font-weight: 750; color: #f5d79b; }
.pilgrimage-banner-stats span { font-size: 8px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(250, 241, 223, 0.45); }
.pilgrimage-banner-img { background-size: cover; background-position: center; position: relative; }
.pilgrimage-banner-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #3b2414 0%, transparent 70%); }
.group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.group-card { padding: 14px; }
.group-head { display: flex; align-items: flex-start; gap: 10px; }
.group-route-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--sand); display: grid; place-items: center; color: var(--gold-deep); flex: none; }
.group-route-icon svg { width: 16px; height: 16px; }
.group-copy { flex: 1; min-width: 0; }
.group-name { font-size: 11.5px; font-weight: 750; }
.group-meta { font-size: 8.5px; color: var(--faint); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.group-meta svg { width: 9px; height: 9px; }
.group-progress { margin-top: 11px; }
.group-progress .top { display: flex; justify-content: space-between; font-size: 8px; color: var(--faint); margin-bottom: 4px; }
.group-progress .bar { height: 5px; background: var(--surface-soft); border-radius: 99px; overflow: hidden; }
.group-progress .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), #d29036); }
.group-alloc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 11px; }
.alloc-chip { background: var(--surface-warm); border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px; font-size: 7.5px; color: var(--faint); }
.alloc-chip strong { display: block; color: var(--ink-soft); font-size: 9px; font-weight: 700; margin-top: 1px; }
.group-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.group-foot .avatar-stack .avatar { width: 21px; height: 21px; font-size: 7px; }

.mice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.mice-card { overflow: hidden; }
.mice-img { height: 120px; background-size: cover; background-position: center; position: relative; }
.mice-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(8,25,20,.55)); }
.mice-type { position: absolute; z-index: 2; left: 10px; bottom: 9px; color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mice-status { position: absolute; z-index: 2; top: 9px; right: 9px; }
.mice-content { padding: 12px 13px; }
.mice-name { font-size: 12px; font-weight: 750; }
.mice-meta { color: var(--faint); font-size: 8.5px; margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.mice-meta svg { width: 9px; height: 9px; }
.mice-stats { display: flex; gap: 16px; margin-top: 10px; }
.mice-stat strong { display: block; font-size: 13px; font-weight: 750; }
.mice-stat span { font-size: 7.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.mice-budget { margin-top: 10px; }
.mice-budget .top { display: flex; justify-content: space-between; font-size: 8px; color: var(--faint); margin-bottom: 4px; }
.mice-budget .bar { height: 4px; background: var(--surface-soft); border-radius: 99px; overflow: hidden; }
.mice-budget .bar i { display: block; height: 100%; border-radius: 99px; background: var(--teal); }

/* Visa */
.visa-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; }
.visa-table-card .visa-country { display: flex; align-items: center; gap: 8px; }
.flag-chip { width: 25px; height: 25px; border-radius: 6px; background: var(--surface-soft); display: grid; place-items: center; font-size: 14px; flex: none; }
.visa-check-list { display: flex; flex-direction: column; gap: 6px; }
.visa-check { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px; background: var(--surface-warm); font-size: 9px; color: var(--muted); }
.visa-check .check-box { width: 13px; height: 13px; border-radius: 3px; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; background: var(--surface); }
.visa-check.done .check-box { background: var(--green); border-color: var(--green); color: #fff; }
.visa-check.done .check-box svg { width: 8px; height: 8px; }
.visa-check.done { color: var(--ink-soft); }
.visa-alert { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border-radius: 7px; background: var(--red-soft); border: 1px solid #f5d8d3; font-size: 9px; color: #9b4439; line-height: 1.4; }
.visa-alert svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }
.visa-alert strong { display: block; font-weight: 750; color: #8d3a30; }
.visa-pipeline { display: flex; flex-direction: column; gap: 9px; }
.visa-stage { display: flex; align-items: center; gap: 9px; }
.visa-stage .stage-label { width: 72px; font-size: 9px; color: var(--muted); font-weight: 600; }
.visa-stage .bar-wrap { flex: 1; height: 17px; background: var(--surface-soft); border-radius: 4px; overflow: hidden; }
.visa-stage .bar-wrap i { display: block; height: 100%; background: var(--green-soft); border-right: 2px solid var(--green); }
.visa-stage .bar-wrap i.gold { background: var(--gold-soft); border-color: var(--gold); }
.visa-stage .bar-wrap i.blue { background: var(--blue-soft); border-color: var(--blue); }
.visa-stage .bar-wrap i.red { background: var(--red-soft); border-color: var(--red); }
.visa-stage strong { width: 18px; font-size: 9px; font-weight: 750; text-align: right; }

/* ============================================================
   Costing
   ============================================================ */
.costing-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.95fr); gap: 15px; align-items: start; }
.cost-sheet-table { width: 100%; border-collapse: collapse; }
.cost-sheet-table th { text-align: left; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 7px 8px; border-bottom: 1px solid var(--line); }
.cost-sheet-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cost-sheet-table tr:last-child td { border-bottom: 0; }
.cost-sheet-table .input { height: 30px; font-size: 10px; padding: 0 8px; }
.cost-sheet-table .cost-name { font-size: 10.5px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.cost-sheet-table .cost-name svg { width: 13px; height: 13px; color: var(--faint); }
.cost-sheet-table .cost-qty { width: 70px; }
.cost-sheet-table .cost-rate { width: 100px; }
.cost-sheet-table .cost-amount { font-size: 10.5px; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-subtotal td { background: var(--surface-warm); font-weight: 700; }
.cost-summary { position: sticky; top: calc(var(--topbar-h) + 16px); }
.cost-total-big { font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: -.02em; margin-top: 4px; }
.cost-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 10.5px; }
.cost-summary-row:last-child { border: 0; }
.cost-summary-row span { color: var(--muted); }
.cost-summary-row strong { font-weight: 750; font-variant-numeric: tabular-nums; }
.cost-summary-row.total { border-top: 1px solid var(--line-strong); border-bottom: 0; margin-top: 4px; padding-top: 11px; font-size: 12px; }
.cost-summary-row.total strong { font-size: 15px; }
.margin-control { padding: 12px 0 8px; }
.margin-slider { width: 100%; height: 5px; appearance: none; border-radius: 99px; background: linear-gradient(90deg, var(--green) var(--range, 30%), var(--surface-soft) var(--range, 30%)); outline: none; }
.margin-slider::-webkit-slider-thumb { appearance: none; width: 17px; height: 17px; border-radius: 50%; background: var(--surface); border: 3px solid var(--green); box-shadow: 0 2px 5px rgba(0,0,0,.15); cursor: pointer; }
.cost-donut-wrap { display: flex; align-items: center; gap: 14px; }
.cost-donut { width: 112px; height: 112px; flex: none; }
.cost-legend { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.cost-legend-row { display: flex; align-items: center; gap: 6px; font-size: 8.5px; color: var(--muted); }
.cost-legend-row .dot { width: 6px; height: 6px; border-radius: 2px; }
.cost-legend-row strong { margin-left: auto; color: var(--ink-soft); font-weight: 700; }
.saved-quote-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.saved-quote-row:last-child { border: 0; }

/* ============================================================
   CRM Kanban
   ============================================================ */
.crm-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; margin-bottom: 14px; }
.crm-mini { padding: 12px 13px; }
.crm-mini-label { font-size: 8.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
.crm-mini-value { font-size: 19px; font-weight: 750; letter-spacing: -.02em; margin-top: 3px; }
.crm-mini-meta { font-size: 8.5px; color: var(--muted); margin-top: 2px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: 236px; gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kanban-col { background: #efefe8; border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-height: 360px; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; padding: 1px 3px 8px; }
.kanban-title { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 750; }
.kanban-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.kanban-count { min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: rgba(255,255,255,.7); border: 1px solid var(--line); display: grid; place-items: center; font-size: 8px; font-weight: 700; color: var(--muted); }
.kanban-cards { display: flex; flex-direction: column; gap: 6px; min-height: 50px; }
.lead-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; cursor: grab; transition: 0.15s; box-shadow: var(--shadow-xs); }
.lead-card:hover { border-color: #cdd4cc; box-shadow: var(--shadow-sm); }
.lead-card.dragging { opacity: .4; transform: rotate(1.5deg); }
.lead-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.lead-name { font-size: 10px; font-weight: 750; line-height: 1.3; }
.lead-value { color: var(--green); font-size: 9.5px; font-weight: 800; white-space: nowrap; }
.lead-trip { color: var(--faint); font-size: 8px; margin-top: 3px; display: flex; align-items: center; gap: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-trip svg { width: 9px; height: 9px; }
.lead-tags { display: flex; align-items: center; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.lead-tag { font-size: 7px; font-weight: 700; border-radius: 3px; padding: 2px 4px; background: var(--surface-soft); color: var(--muted); }
.lead-tag.urgent { background: var(--red-soft); color: var(--red); }
.lead-tag.hot { background: var(--gold-soft); color: var(--gold-deep); }
.lead-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); }
.lead-owner { display: flex; align-items: center; gap: 4px; font-size: 7.5px; color: var(--faint); }
.lead-owner .avatar { width: 17px; height: 17px; font-size: 6px; }
.lead-date { font-size: 7.5px; color: var(--faint); display: flex; align-items: center; gap: 3px; }
.lead-date svg { width: 9px; height: 9px; }
.lead-date.overdue { color: var(--red); }
.kanban-col.drag-over { background: #e9ede5; border-color: #b9ccbd; }
.kanban-empty { padding: 14px 8px; text-align: center; color: var(--faint); font-size: 8.5px; border: 1px dashed var(--line-strong); border-radius: 6px; }

/* ============================================================
   Desk / vendors / billing / documents
   ============================================================ */
.desk-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-radius: var(--r); background: linear-gradient(115deg, #0e2e25, #174435); color: #f6f0e3; margin-bottom: 14px; position: relative; overflow: hidden; }
.desk-hero::after { content: ""; position: absolute; right: -40px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(227,174,85,.18); box-shadow: 0 0 0 30px rgba(227,174,85,.04), 0 0 0 60px rgba(227,174,85,.03); }
.desk-hero-copy { position: relative; z-index: 2; display: flex; align-items: center; gap: 13px; }
.desk-hero-icon { width: 45px; height: 45px; border-radius: 12px; background: rgba(255,255,255,.09); display: grid; place-items: center; color: #eac77f; border: 1px solid rgba(255,255,255,.1); }
.desk-hero-icon svg { width: 21px; height: 21px; }
.desk-hero h2 { font-family: var(--font-display); font-size: 25px; font-weight: 400; line-height: 1.05; }
.desk-hero p { color: rgba(246, 240, 227, .56); font-size: 9.5px; margin-top: 3px; }
.desk-hero-stats { display: flex; align-items: center; gap: 22px; position: relative; z-index: 2; flex: none; }
.desk-hero-stat strong { display: block; font-size: 19px; font-weight: 750; color: #f2d699; }
.desk-hero-stat span { font-size: 8px; text-transform: uppercase; letter-spacing: .08em; color: rgba(246, 240, 227, .45); }
.flight-board { display: flex; flex-direction: column; }
.flight-board-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 10px; }
.flight-board-row:last-child { border-bottom: 0; }
.board-time { width: 38px; font-weight: 750; font-variant-numeric: tabular-nums; font-size: 10.5px; }
.board-code { width: 38px; font-weight: 800; font-size: 10px; color: var(--muted); }
.board-flight { flex: 1; min-width: 0; }
.board-flight strong { display: block; font-size: 10px; font-weight: 700; }
.board-flight small { color: var(--faint); font-size: 8px; }
.board-status { margin-left: auto; }
.emergency-card { border-left: 3px solid var(--red); }
.emergency-row { display: flex; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.emergency-row:last-child { border: 0; padding-bottom: 0; }
.emergency-icon { width: 27px; height: 27px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.emergency-icon svg { width: 12px; height: 12px; }
.emergency-copy { flex: 1; min-width: 0; }
.emergency-title { font-size: 9.5px; font-weight: 700; }
.emergency-meta { font-size: 8px; color: var(--faint); margin-top: 1px; }
.emergency-time { font-size: 7.5px; color: var(--faint); }
.desk-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }

.vendor-score { display: flex; align-items: center; gap: 6px; }
.vendor-score .score-bar { width: 38px; height: 4px; border-radius: 99px; background: var(--surface-soft); overflow: hidden; }
.vendor-score .score-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.vendor-score span { font-size: 9px; font-weight: 750; }
.vendor-cat { display: flex; align-items: center; gap: 8px; }
.vendor-icon { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-soft); color: var(--muted); }
.vendor-icon svg { width: 13px; height: 13px; }
.vendor-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }

.billing-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.invoice-amount { font-weight: 750; }
.gst-cell { font-size: 8px; color: var(--faint); display: block; margin-top: 1px; }
.payment-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 3px; }
.revenue-breakdown { display: flex; flex-direction: column; gap: 10px; }
.breakdown-row { display: grid; grid-template-columns: 92px 1fr 62px; gap: 8px; align-items: center; font-size: 9px; }
.breakdown-row .bar { height: 5px; background: var(--surface-soft); border-radius: 99px; overflow: hidden; }
.breakdown-row .bar i { display: block; height: 100%; border-radius: 99px; }
.breakdown-row strong { text-align: right; font-weight: 700; font-size: 9px; }
.invoice-paper { background: #fff; width: 100%; padding: 26px 28px; color: #1a2420; }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 17px; border-bottom: 2px solid var(--forest); }
.invoice-brand { font-family: var(--font-display); font-size: 24px; letter-spacing: .04em; }
.invoice-tagline { font-size: 8px; text-transform: uppercase; letter-spacing: .16em; color: var(--faint); margin-top: 2px; }
.invoice-title { font-size: 18px; font-weight: 800; text-align: right; letter-spacing: -.01em; }
.invoice-no { font-size: 9px; color: var(--muted); text-align: right; margin-top: 2px; }
.invoice-billto { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.invoice-billto .label { font-size: 7.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 800; }
.invoice-billto strong { font-size: 10.5px; display: block; margin-top: 3px; }
.invoice-billto p { font-size: 8.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.invoice-lines { width: 100%; border-collapse: collapse; margin-top: 15px; }
.invoice-lines th { font-size: 7.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); }
.invoice-lines td { font-size: 9px; padding: 7px 0; border-bottom: 1px solid #f1f1eb; }
.invoice-lines th:last-child, .invoice-lines td:last-child { text-align: right; }
.invoice-totals { margin-left: auto; width: 250px; margin-top: 12px; }
.invoice-total-row { display: flex; justify-content: space-between; font-size: 9px; padding: 4px 0; color: var(--muted); }
.invoice-total-row.grand { border-top: 1px solid var(--forest); margin-top: 4px; padding-top: 8px; color: var(--ink); font-weight: 800; font-size: 12px; }
.invoice-footer { margin-top: 20px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 7.5px; color: var(--faint); line-height: 1.6; }
.invoice-watermark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: .035; font-family: var(--font-display); font-size: 120px; transform: rotate(-18deg); }

.doc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.doc-card { padding: 12px; }
.doc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.doc-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.doc-icon.pdf { background: var(--red-soft); color: var(--red); }
.doc-icon.img { background: var(--purple-soft); color: var(--purple); }
.doc-icon svg { width: 16px; height: 16px; }
.doc-name { font-size: 10.5px; font-weight: 700; margin-top: 10px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-meta { font-size: 8px; color: var(--faint); margin-top: 3px; }
.doc-expiry { display: flex; align-items: center; gap: 4px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 8px; color: var(--muted); }
.doc-expiry svg { width: 10px; height: 10px; }
.doc-expiry.warn { color: var(--gold-deep); }
.doc-expiry.bad { color: var(--red); }
.doc-actions { display: flex; gap: 3px; margin-top: 7px; }
.upload-zone { border: 1.5px dashed var(--line-strong); border-radius: var(--r); padding: 24px; text-align: center; background: var(--surface-warm); transition: 0.16s; cursor: pointer; }
.upload-zone:hover { border-color: var(--green-mid); background: #f7fbf8; }
.upload-zone .upload-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 8px; color: var(--muted); }
.upload-zone .upload-icon svg { width: 17px; height: 17px; }
.upload-zone strong { display: block; font-size: 10.5px; font-weight: 750; }
.upload-zone span { font-size: 8.5px; color: var(--faint); }

/* ============================================================
   Portal / reports
   ============================================================ */
.portal-shell { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.portal-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px; border-bottom: 1px solid var(--line); background: var(--surface-warm); }
.portal-brand { display: flex; align-items: center; gap: 8px; }
.portal-brand-mark { width: 27px; height: 27px; border-radius: 7px; background: var(--forest); color: var(--gold); display: grid; place-items: center; }
.portal-brand-mark svg { width: 14px; height: 14px; }
.portal-brand-copy { font-size: 11px; font-weight: 750; line-height: 1.05; }
.portal-brand-copy small { display: block; font-size: 7.5px; color: var(--faint); font-weight: 500; letter-spacing: .04em; }
.portal-links { display: flex; align-items: center; gap: 16px; font-size: 9px; color: var(--muted); font-weight: 600; }
.portal-links span.active { color: var(--ink); }
.portal-user { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 650; }
.portal-hero { position: relative; display: block; min-height: 220px; background: #0c2b23; color: #f8f3e7; overflow: hidden; }
.portal-hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.portal-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0c2b23 0%, rgba(12,43,35,.94) 32%, rgba(12,43,35,.55) 58%, rgba(12,43,35,.05) 100%); }
.portal-hero-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 28px 26px; z-index: 2; max-width: 60%; min-height: 220px; }
.portal-hero-copy .eyebrow { color: #e3bd76; margin-bottom: 7px; }
.portal-hero-copy h2 { font-family: var(--font-display); font-size: 31px; line-height: 1.02; font-weight: 400; }
.portal-hero-copy p { color: rgba(248, 243, 231, .62); font-size: 9.5px; margin-top: 5px; line-height: 1.5; }
.portal-search { display: flex; gap: 7px; margin-top: 13px; max-width: 380px; }
.portal-search .input-group { background: rgba(255,255,255,.96); height: 34px; border: 0; }
.portal-search .btn { height: 34px; }
.portal-content { padding: 18px 22px 22px; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.portal-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 14px; }
.portal-kpi { padding: 11px 12px; background: var(--surface-warm); border: 1px solid var(--line); border-radius: 8px; }
.portal-kpi strong { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.portal-kpi span { font-size: 8px; color: var(--faint); }
.portal-kpi small { display: block; font-size: 7.5px; color: var(--green); margin-top: 2px; font-weight: 700; }
.trip-ticket { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.trip-ticket-top { background: var(--forest); color: #f7f1e4; padding: 12px 14px; display: flex; justify-content: space-between; align-items: flex-start; }
.trip-ticket-top .label { font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase; color: #dcb976; font-weight: 800; }
.trip-ticket-top h3 { font-family: var(--font-display); font-size: 20px; font-weight: 400; margin-top: 3px; }
.trip-ticket-body { padding: 12px 14px; }
.trip-leg { display: flex; align-items: center; gap: 10px; }
.trip-leg .node { text-align: center; }
.trip-leg .node strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.trip-leg .node span { font-size: 7.5px; color: var(--faint); }
.trip-leg .path { flex: 1; text-align: center; }
.trip-leg .path .duration { font-size: 7.5px; color: var(--faint); }
.trip-leg .path .line { height: 1px; background: var(--line-strong); position: relative; margin-top: 3px; }
.trip-leg .path .line svg { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; background: var(--surface); color: var(--green); }
.trip-ticket-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-top: 1px dashed var(--line); background: var(--surface-warm); font-size: 8px; color: var(--faint); }
.portal-action-list { display: flex; flex-direction: column; gap: 7px; }
.portal-action { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; transition: .15s; }
.portal-action:hover { border-color: var(--line-strong); background: var(--surface-warm); }
.portal-action .pa-icon { width: 27px; height: 27px; border-radius: 7px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.portal-action .pa-icon svg { width: 13px; height: 13px; }
.portal-action .pa-copy { flex: 1; min-width: 0; }
.portal-action strong { display: block; font-size: 9.5px; font-weight: 700; }
.portal-action small { display: block; color: var(--faint); font-size: 8px; }
.loyalty-card { background: linear-gradient(135deg, #2e2415, #4b3820); color: #f8edd8; border-radius: 10px; padding: 14px; position: relative; overflow: hidden; }
.loyalty-card::after { content: ""; position: absolute; width: 120px; height: 120px; border: 1px solid rgba(227,174,85,.2); border-radius: 50%; right: -35px; top: -35px; box-shadow: 0 0 0 22px rgba(227,174,85,.04); }
.loyalty-card .loyalty-label { font-size: 7.5px; letter-spacing: .14em; text-transform: uppercase; color: #d6b476; font-weight: 800; }
.loyalty-points { font-family: var(--font-display); font-size: 31px; margin-top: 4px; line-height: 1; }
.loyalty-meta { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; font-size: 8px; color: rgba(248,237,216,.52); }
.loyalty-tier { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: 2px 6px; font-size: 7.5px; font-weight: 700; color: #ecd198; }

.report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.report-library { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.report-card { padding: 12px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.report-icon { width: 31px; height: 31px; border-radius: 8px; background: var(--surface-soft); display: grid; place-items: center; color: var(--muted); flex: none; }
.report-icon svg { width: 14px; height: 14px; }
.report-copy { flex: 1; min-width: 0; }
.report-name { font-size: 10px; font-weight: 700; }
.report-desc { font-size: 8px; color: var(--faint); margin-top: 2px; line-height: 1.4; }
.report-formats { display: flex; gap: 3px; margin-top: 6px; }
.format-pill { font-size: 6.5px; font-weight: 800; color: var(--faint); border: 1px solid var(--line); border-radius: 3px; padding: 1px 3px; }
.analytics-source { display: flex; align-items: center; gap: 6px; font-size: 8px; color: var(--faint); }
.analytics-source .live-pip { width: 5px; height: 5px; }

/* ============================================================
   Drawers / modals / overlays
   ============================================================ */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(8, 24, 19, 0.35); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity 0.22s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(570px, 100vw);
  background: var(--surface);
  box-shadow: -30px 0 80px -30px rgba(9, 28, 22, 0.4);
  transform: translateX(102%);
  transition: transform 0.3s cubic-bezier(0.22, 0.68, 0.3, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer.wide { width: min(720px, 100vw); }
.drawer-head { padding: 19px 22px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; background: var(--surface); }
.drawer-head-copy { flex: 1; min-width: 0; }
.drawer-eyebrow { font-size: 8px; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); font-weight: 800; }
.drawer-title { font-size: 18px; font-weight: 750; letter-spacing: -.02em; margin-top: 3px; line-height: 1.2; }
.drawer-sub { color: var(--muted); font-size: 10px; margin-top: 3px; }
.drawer-close { flex: none; }
.drawer-body { flex: 1; overflow-y: auto; padding: 19px 22px 24px; }
.drawer-foot { padding: 12px 22px; border-top: 1px solid var(--line); background: var(--surface-warm); display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.drawer-foot .foot-left { margin-right: auto; font-size: 9px; color: var(--faint); }
.drawer-section { margin-bottom: 21px; }
.drawer-section:last-child { margin-bottom: 0; }
.drawer-section-title { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 9px; }
.drawer-section-title span:last-child { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 9px; }

.modal {
  position: fixed; top: 50%; left: 50%; z-index: 70;
  width: min(620px, calc(100vw - 30px));
  max-height: calc(100vh - 50px);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -47%) scale(0.98);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .22s;
  display: flex; flex-direction: column;
}
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal.wide { width: min(860px, calc(100vw - 30px)); }
.modal.narrow { width: min(440px, calc(100vw - 30px)); }
.modal-head { padding: 18px 20px 13px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; }
.modal-title { font-size: 16px; font-weight: 750; letter-spacing: -.015em; }
.modal-sub { font-size: 10px; color: var(--muted); margin-top: 3px; }
.modal-body { padding: 17px 20px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 8px; background: var(--surface-warm); border-radius: 0 0 16px 16px; flex-wrap: wrap; }
.modal-foot .foot-left { margin-right: auto; font-size: 9px; color: var(--faint); }

/* Command palette */
.palette-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(8, 24, 19, .38); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: .18s; }
.palette-overlay.open { opacity: 1; pointer-events: auto; }
.palette {
  position: fixed; z-index: 81; top: 13vh; left: 50%;
  width: min(650px, calc(100vw - 30px));
  max-height: 68vh; transform: translateX(-50%) translateY(-8px); opacity: 0; pointer-events: none;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
  transition: .2s; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.4);
}
.palette.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.palette-search { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.palette-search svg { width: 18px; height: 18px; color: var(--muted); }
.palette-search input { flex: 1; border: 0; outline: none; font-size: 14px; background: transparent; }
.palette-search kbd { font-size: 8px; }
.palette-body { overflow-y: auto; padding: 7px; }
.palette-label { font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 8px 9px 4px; }
.palette-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 9px; border: 0; background: transparent; border-radius: 7px; text-align: left; }
.palette-item:hover, .palette-item.active { background: var(--surface-soft); }
.palette-item .pi-icon { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-warm); border: 1px solid var(--line); color: var(--muted); flex: none; }
.palette-item .pi-icon svg { width: 13px; height: 13px; }
.palette-item .pi-copy { flex: 1; min-width: 0; }
.palette-item strong { display: block; font-size: 10.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item small { display: block; font-size: 8.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item .pi-type { font-size: 7.5px; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; }
.palette-empty { padding: 30px; text-align: center; color: var(--faint); font-size: 11px; }
.palette-foot { border-top: 1px solid var(--line); padding: 7px 13px; display: flex; align-items: center; gap: 11px; font-size: 8px; color: var(--faint); }
.palette-foot span { display: flex; align-items: center; gap: 4px; }

/* Notifications */
.notif-panel {
  position: fixed; z-index: 75; top: 59px; right: 22px;
  width: min(370px, calc(100vw - 28px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: .18s; overflow: hidden;
}
.notif-panel.open { opacity: 1; pointer-events: auto; transform: none; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notif-head strong { font-size: 11.5px; font-weight: 750; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; gap: 9px; padding: 10px 14px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.notif-item:last-child { border: 0; }
.notif-item.unread { background: #fbfaf4; }
.notif-icon { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--green-soft); color: var(--green); }
.notif-icon.gold { background: var(--gold-soft); color: var(--gold-deep); }
.notif-icon.red { background: var(--red-soft); color: var(--red); }
.notif-icon.blue { background: var(--blue-soft); color: var(--blue); }
.notif-icon svg { width: 13px; height: 13px; }
.notif-copy { flex: 1; min-width: 0; }
.notif-copy strong { display: block; font-size: 9.5px; font-weight: 700; line-height: 1.35; }
.notif-copy p { font-size: 8.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.notif-copy small { display: block; font-size: 7.5px; color: var(--faint); margin-top: 3px; }
.notif-foot { padding: 7px; border-top: 1px solid var(--line); text-align: center; }

/* Toasts */
.toast-root { position: fixed; z-index: 120; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; min-width: 260px; max-width: 420px; background: #112d24; color: #f7f2e6; border-radius: 9px; padding: 9px 12px; box-shadow: 0 12px 32px -12px rgba(0,0,0,.5); font-size: 10.5px; opacity: 0; transform: translateY(10px) scale(.98); transition: .22s; pointer-events: auto; border: 1px solid rgba(255,255,255,.08); }
.toast.show { opacity: 1; transform: none; }
.toast-icon { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #e8c37a; flex: none; }
.toast-icon svg { width: 11px; height: 11px; }
.toast.success .toast-icon { background: rgba(90,190,145,.18); color: #89ddb4; }
.toast.error .toast-icon { background: rgba(220,100,85,.2); color: #f4a89d; }
.toast strong { font-weight: 700; }
.toast .toast-close { margin-left: auto; color: rgba(255,255,255,.45); border: 0; background: transparent; padding: 2px; }
.toast .toast-close svg { width: 12px; height: 12px; }

/* ============================================================
   AI assistant
   ============================================================ */
.ai-fab {
  position: fixed; z-index: 35; right: 24px; bottom: 22px;
  height: 40px; padding: 0 14px 0 11px;
  border-radius: 99px; border: 1px solid rgba(255,255,255,.12);
  background: var(--forest); color: #f7f1e4;
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 14px 30px -12px rgba(12,43,35,.65);
  font-size: 10.5px; font-weight: 700;
  transition: .2s;
}
.ai-fab:hover { background: var(--forest-2); transform: translateY(-2px); }
.ai-fab svg { width: 16px; height: 16px; color: #e8c37a; }
.ai-fab-glow { position: absolute; inset: -4px; border-radius: inherit; background: radial-gradient(circle at 30% 50%, rgba(227,174,85,.22), transparent 60%); z-index: -1; pointer-events: none; }
.ai-root { position: fixed; inset: 0; z-index: 76; pointer-events: none; }
.ai-root.open { pointer-events: auto; }
.ai-scrim { position: absolute; inset: 0; background: rgba(8,24,19,.25); opacity: 0; transition: .22s; }
.ai-root.open .ai-scrim { opacity: 1; }
.ai-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(410px, 100vw);
  background: var(--surface); box-shadow: -25px 0 70px -30px rgba(9,28,22,.4);
  display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .3s cubic-bezier(.22,.68,.3,1);
}
.ai-root.open .ai-panel { transform: none; }
.ai-head { padding: 15px 17px; background: var(--forest); color: #f9f3e5; display: flex; align-items: center; gap: 10px; }
.ai-orb { width: 35px; height: 35px; border-radius: 10px; background: radial-gradient(circle at 30% 25%, #f4d795, #b88434); display: grid; place-items: center; color: #2b200b; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.ai-orb svg { width: 17px; height: 17px; }
.ai-head-copy { flex: 1; }
.ai-head-title { font-size: 12px; font-weight: 750; display: flex; align-items: center; gap: 6px; }
.ai-head-title .beta { font-size: 6.5px; letter-spacing: .1em; border: 1px solid rgba(255,255,255,.22); border-radius: 3px; padding: 1px 4px; color: #e5c68b; font-weight: 800; }
.ai-head-sub { font-size: 8px; color: rgba(249,243,229,.5); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.ai-head-sub .live-pip { width: 4px; height: 4px; background: #7ed3a9; box-shadow: none; }
.ai-head .icon-btn { color: rgba(255,255,255,.65); }
.ai-head .icon-btn:hover { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }
.ai-body { flex: 1; overflow-y: auto; padding: 15px 15px 12px; background: var(--surface-warm); }
.ai-welcome { text-align: center; padding: 10px 10px 16px; }
.ai-welcome .ai-orb { width: 42px; height: 42px; margin: 0 auto 9px; }
.ai-welcome h3 { font-family: var(--font-display); font-size: 23px; font-weight: 400; }
.ai-welcome p { color: var(--muted); font-size: 9.5px; line-height: 1.5; margin-top: 4px; }
.ai-suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 12px; text-align: left; }
.ai-suggestion { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); padding: 8px; font-size: 8.5px; color: var(--ink-soft); line-height: 1.35; text-align: left; }
.ai-suggestion:hover { border-color: #cbd8ce; }
.ai-suggestion svg { width: 11px; height: 11px; color: var(--gold-deep); margin-bottom: 4px; display: block; }
.ai-msg { display: flex; gap: 8px; margin-bottom: 12px; }
.ai-msg.user { flex-direction: row-reverse; }
.ai-msg-avatar { width: 23px; height: 23px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 8px; font-weight: 700; }
.ai-msg-avatar.bot { background: var(--forest); color: var(--gold); }
.ai-msg-avatar.user { background: var(--gold-soft); color: var(--gold-deep); }
.ai-msg-avatar svg { width: 11px; height: 11px; }
.ai-bubble { max-width: 84%; padding: 9px 11px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 9.5px; line-height: 1.55; color: var(--ink-soft); }
.ai-msg.user > div { display: flex; justify-content: flex-end; flex: 1 1 auto; min-width: 0; }
.ai-msg.user .ai-bubble { background: var(--forest); color: #f8f2e4; border-color: var(--forest); width: fit-content; max-width: 88%; }
.ai-bubble strong { font-weight: 750; }
.ai-bubble .ai-line { display: flex; align-items: flex-start; gap: 5px; padding: 3px 0; }
.ai-bubble .ai-line svg { width: 10px; height: 10px; margin-top: 2px; color: var(--gold-deep); flex: none; }
.ai-bubble .ai-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.ai-bubble .ai-action { font-size: 8px; font-weight: 700; border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; background: var(--surface-warm); color: var(--ink-soft); }
.ai-bubble .ai-action:hover { border-color: var(--green-mid); color: var(--green); }
.ai-meta { font-size: 7px; color: var(--faint); margin-top: 3px; }
.ai-typing { display: flex; gap: 3px; padding: 4px 0; }
.ai-typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); animation: typing 1.1s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .15s; } .ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.ai-compose { padding: 10px 12px 11px; border-top: 1px solid var(--line); background: var(--surface); }
.ai-input-row { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 4px 4px 4px 10px; background: var(--surface); }
.ai-input-row:focus-within { border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(47,148,115,.09); }
.ai-input-row input { flex: 1; border: 0; outline: none; font-size: 10.5px; background: transparent; min-width: 0; }
.ai-mic, .ai-send { width: 28px; height: 28px; border-radius: 7px; border: 0; display: grid; place-items: center; flex: none; }
.ai-mic { background: transparent; color: var(--muted); }
.ai-mic:hover { background: var(--surface-soft); color: var(--ink); }
.ai-mic.listening { background: var(--red-soft); color: var(--red); animation: pulseMic 1.4s infinite; }
@keyframes pulseMic { 0%,100% { box-shadow: 0 0 0 0 rgba(197,80,67,.2); } 50% { box-shadow: 0 0 0 5px rgba(197,80,67,0); } }
.ai-send { background: var(--forest); color: #f6f0e3; }
.ai-send:hover { background: var(--forest-2); }
.ai-mic svg, .ai-send svg { width: 14px; height: 14px; }
.ai-compose-note { font-size: 7px; color: var(--faint); text-align: center; margin-top: 5px; }
.ai-voice-hint { display: flex; align-items: center; gap: 5px; justify-content: center; font-size: 8px; color: var(--gold-deep); margin-bottom: 7px; background: var(--gold-soft); border: 1px solid #f1e2c3; border-radius: 5px; padding: 4px; }

/* ============================================================
   Misc
   ============================================================ */
.empty-state { padding: 40px 20px; text-align: center; }
.empty-state .empty-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-soft); display: grid; place-items: center; margin: 0 auto 9px; color: var(--faint); }
.empty-state strong { display: block; font-size: 11.5px; font-weight: 700; }
.empty-state p { color: var(--faint); font-size: 9.5px; margin-top: 3px; }
.info-banner { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 8px; background: var(--blue-soft); border: 1px solid #dce5f4; color: #395c98; font-size: 9.5px; line-height: 1.45; }
.info-banner svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.info-banner.gold { background: var(--gold-soft); border-color: #f1e0bf; color: #8e631d; }
.inline-list { display: flex; flex-direction: column; }
.inline-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.inline-row:last-child { border: 0; padding-bottom: 0; }
.inline-label { font-size: 9.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.inline-label svg { width: 12px; height: 12px; }
.inline-value { font-size: 10px; font-weight: 700; text-align: right; }
.kpi-strip { display: flex; align-items: center; gap: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 14px; overflow-x: auto; }
.kpi-strip-item { padding: 0 18px; border-right: 1px solid var(--line); white-space: nowrap; }
.kpi-strip-item:first-child { padding-left: 0; }
.kpi-strip-item:last-child { border: 0; }
.kpi-strip-item strong { display: block; font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.kpi-strip-item span { font-size: 8px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.mini-tag { font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-deep); background: var(--gold-soft); border: 1px solid #f0e2c5; padding: 1px 4px; border-radius: 3px; }
.status-line { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--faint); }
.status-line .live-pip { width: 4px; height: 4px; }
.two-col-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-tile { padding: 10px 11px; border-radius: 8px; background: var(--surface-warm); border: 1px solid var(--line); }
.info-tile .label { font-size: 8px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.info-tile .value { font-size: 11px; font-weight: 700; margin-top: 3px; }
.info-tile .value.small { font-size: 9.5px; font-weight: 600; color: var(--muted); line-height: 1.4; }
.scroll-x { overflow-x: auto; }
.mobile-table-hint { display: none; }
@media (max-width: 820px) {
  .mobile-table-hint { display: inline-flex; }
  .portal-kpi:last-child { grid-column: span 2; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
}
.hidden { display: none !important; }

/* skeleton */
.skeleton { border-radius: 5px; background: linear-gradient(90deg, #efefe9 25%, #f7f7f2 37%, #efefe9 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1240px) {
  :root { --sidebar-w: 232px; }
  .view { padding: 24px 22px 36px; }
  .topbar { padding: 0 22px; }
  .search-trigger { width: 210px; }
  .page-title { font-size: 34px; }
  .dash-hero { grid-template-columns: 1.4fr .9fr; }
  .hero-title { font-size: 40px; }
  .package-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: repeat(3, 1fr); }
  .hotel-grid { grid-template-columns: repeat(2, 1fr); }
  .crm-summary { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1050px) {
  .sidebar { transform: translateX(-100%); transition: transform .26s cubic-bezier(.22,.68,.3,1); box-shadow: 20px 0 60px rgba(0,0,0,.3); }
  .sidebar.open { transform: none; }
  .sidebar-scrim { display: none; position: fixed; inset: 0; z-index: 39; background: rgba(8,24,19,.35); backdrop-filter: blur(2px); }
  .sidebar-scrim.open { display: block; }
  .main-shell { margin-left: 0; }
  .menu-btn { display: inline-grid !important; }
  .sidebar-user { display: block; padding: 0 12px 10px; }
  .dash-main, .dash-main-3 { grid-template-columns: 1fr; }
  .booking-layout { grid-template-columns: 230px minmax(0,1fr); }
  .visa-layout, .costing-layout { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .desk-grid { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-hero-copy { max-width: 66%; }
}
@media (max-width: 960px) and (min-width: 821px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .view { padding: 20px 16px 32px; }
  .topbar { padding: 0 16px; height: 60px; }
  :root { --topbar-h: 60px; }
  .app-footer { margin: 0 16px; padding: 14px 0 18px; flex-direction: column; gap: 4px; }
  .search-trigger { width: 36px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .user-chip-copy, .user-chip > svg { display: none; }
  .topbar-sep { display: none; }
  .new-request-btn span { display: none; }
  .new-request-btn { width: 36px; padding: 0; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
  .page-title { font-size: 32px; }
  .page-actions { width: 100%; overflow-x: auto; }
  .dash-hero { grid-template-columns: 1fr; min-height: 0; }
  .dash-hero-copy { padding: 24px 22px 18px; }
  .hero-aside { padding: 0 14px 14px; }
  .next-card { min-height: 150px; }
  .hero-title { font-size: 36px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat-card { min-height: 112px; padding: 13px; }
  .stat-value { font-size: 23px; }
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: 1fr; }
  .hotel-grid { grid-template-columns: 1fr; }
  .group-grid, .mice-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-layout { grid-template-columns: 1fr; }
  .search-panel { position: static; }
  .search-panel .form-grid { grid-template-columns: 1fr 1fr; }
  .rail-card { flex-wrap: wrap; }
  .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .form-grid .span-2, .form-grid .span-3 { grid-column: span 1; }
  .detail-meta-grid { grid-template-columns: 1fr 1fr; }
  .drawer { width: 100vw; }
  .drawer-body { padding: 16px; }
  .drawer-head { padding: 16px; }
  .modal { width: calc(100vw - 20px); max-height: calc(100vh - 28px); }
  .modal-body { padding: 14px 15px; }
  .modal-head, .modal-foot { padding-left: 15px; padding-right: 15px; }
  .report-library { grid-template-columns: 1fr 1fr; }
  .billing-summary, .vendor-summary, .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-hero { min-height: 0; }
  .portal-hero-copy { position: relative; max-width: 100%; padding: 24px 18px 22px; background: linear-gradient(180deg, rgba(12,43,35,.55), #0c2b23); min-height: 0; }
  .portal-hero-img { height: 100%; }
  .portal-hero-img::after { background: linear-gradient(180deg, rgba(12,43,35,.15), #0c2b23); }
  .portal-links { display: none; }
  .portal-content { padding: 14px; }
  .portal-kpis { grid-template-columns: 1fr 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .desk-hero { flex-direction: column; align-items: flex-start; }
  .desk-hero-stats { width: 100%; justify-content: space-between; }
  .pilgrimage-banner { grid-template-columns: 1fr; }
  .pilgrimage-banner-img { height: 120px; }
  .pilgrimage-banner-img::after { background: linear-gradient(180deg, transparent 0%, #3b2414 100%); }
  .ai-panel { width: 100vw; }
  .ai-fab { right: 15px; bottom: 15px; height: 38px; padding: 0 13px; }
  .ai-fab-label { display: none; }
  .notif-panel { right: 10px; top: 54px; }
  .two-col-info { grid-template-columns: 1fr; }
  .crm-summary { gap: 8px; }
  .kanban { grid-auto-columns: 220px; }
  .cost-summary { position: static; }
  .invoice-paper { padding: 18px; }
  .invoice-billto { flex-direction: column; gap: 10px; }
  .stats-inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
  .stat-inline-item { padding: 0; border: 0; min-width: 0; }
  .stat-inline-item strong { font-size: 16px; }
  .stat-inline-item span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stat-inline-item:nth-child(n+3) { display: none; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #helpBtn, .user-chip { display: none !important; }
  .breadcrumbs > span:first-child, .breadcrumbs > svg { display: none; }
  .topbar { padding: 0 10px; gap: 8px; }
  .topbar-actions { gap: 4px; }
  .view { padding: 16px 12px 28px; }
  .stat-card { padding: 12px; min-height: 108px; }
  .stat-label { font-size: 9.5px; }
  .stat-value { font-size: 21px; flex-wrap: wrap; gap: 2px; }
  .stat-unit { font-size: 9px; }
  .stat-icon { width: 26px; height: 26px; }
  .hero-actions { flex-wrap: wrap; }
  .kpi-strip-item { padding: 0 12px; }
  .stat-note { display: none; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .report-library { grid-template-columns: 1fr; }
  .billing-summary { grid-template-columns: 1fr 1fr; }
  .search-panel .form-grid { grid-template-columns: 1fr; }
  .hero-copy { font-size: 10.5px; }
  .hero-title { font-size: 33px; }
  .trip-type { grid-template-columns: repeat(3, 1fr); }
  .flight-top { flex-wrap: wrap; gap: 10px; }
  .flight-main { flex-basis: calc(100% - 55px); }
  .flight-price { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 7px 0 0; border-top: 1px dashed var(--line); }
  .flight-price .badge { margin: 0; }
  .page-title { font-size: 28px; }
  .stats-inline { grid-template-columns: 1fr 1fr; }
  .kanban { grid-auto-columns: 84vw; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Print — A4
   ============================================================ */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 10pt; }
  .sidebar, .topbar, .app-footer, .ai-fab, .toast-root, .drawer, .modal, .palette, .notif-panel, .sidebar-scrim, .ai-root, .page-actions, .toolbar, .tabs, .overlay, .view > .page-head .eyebrow, .app-footer { display: none !important; }
  .main-shell { margin: 0; }
  .view { padding: 0; max-width: none; }
  .app-shell { display: block; }
  .card { break-inside: avoid; box-shadow: none; border-color: #ddd; }
  .print-only { display: block !important; }
  .no-print { display: none !important; }
  body.printing-invoice .view { display: none; }
  body.printing-invoice .print-area { display: block !important; }
}
.print-only { display: none; }

/* ============================================================
   Travel request calendar
   ============================================================ */
.calendar-card { overflow: hidden; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.calendar-month { font-family: var(--font-display); font-size: 22px; line-height: 1; }
.calendar-nav { display: flex; align-items: center; gap: 4px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-dow { padding: 8px 10px; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); background: var(--surface-warm); border-bottom: 1px solid var(--line); }
.calendar-cell { min-height: 92px; padding: 6px 6px 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); position: relative; }
.calendar-cell:nth-child(7n) { border-right: 0; }
.calendar-cell.out { background: #fbfbf7; }
.calendar-day { font-size: 9.5px; font-weight: 700; color: var(--muted); width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; }
.calendar-cell.today .calendar-day { background: var(--forest); color: #fff; }
.calendar-event { display: block; width: 100%; text-align: left; border: 0; border-left: 2px solid var(--green); background: var(--green-soft); color: #1b5e47; border-radius: 3px; padding: 2px 4px; font-size: 7.5px; font-weight: 650; line-height: 1.25; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-event.pending { border-color: var(--gold); background: var(--gold-soft); color: #8a5e18; }
.calendar-event.rejected { border-color: var(--red); background: var(--red-soft); color: #a34438; }
.calendar-event.booked { border-color: var(--blue); background: var(--blue-soft); color: #325da8; }
.calendar-more { font-size: 7px; color: var(--faint); margin-top: 2px; padding-left: 3px; }
@media (max-width: 820px) {
  .calendar-cell { min-height: 68px; }
  .calendar-event { font-size: 6.5px; }
  .calendar-dow { padding: 6px; font-size: 6.5px; }
}

/* ============================================================
   Program detail additions
   ============================================================ */
.package-hero { height: 196px; border-radius: 11px; background-size: cover; background-position: center; position: relative; overflow: hidden; margin-bottom: 16px; }
.package-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8,25,20,.82)); }
.package-hero-copy { position: absolute; left: 16px; right: 16px; bottom: 13px; z-index: 2; color: #fff; }
.package-hero-copy h3 { font-family: var(--font-display); font-size: 27px; line-height: 1.05; font-weight: 400; }
.package-hero-copy p { color: rgba(255,255,255,.68); font-size: 9px; margin-top: 3px; }
.package-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 17px; }
.package-fact { padding: 8px 9px; border-radius: 7px; background: var(--surface-warm); border: 1px solid var(--line); }
.package-fact .label { font-size: 7px; color: var(--faint); font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.package-fact strong { display: block; font-size: 11px; font-weight: 750; margin-top: 2px; }
.itinerary-day { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.itinerary-day:last-child { border: 0; }
.itinerary-num { width: 27px; height: 27px; border-radius: 7px; background: var(--surface-soft); display: grid; place-items: center; font-size: 7.5px; font-weight: 800; color: var(--muted); flex: none; }
.itinerary-copy { flex: 1; }
.itinerary-title { font-size: 10.5px; font-weight: 700; }
.itinerary-text { font-size: 9px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.inc-exc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inc-list { display: flex; flex-direction: column; gap: 5px; }
.inc-item { display: flex; align-items: flex-start; gap: 5px; font-size: 9px; color: var(--muted); line-height: 1.4; }
.inc-item svg { width: 10px; height: 10px; margin-top: 2px; flex: none; }
.inc-item.yes svg { color: var(--green); }
.inc-item.no svg { color: var(--faint); }
.pilgrim-allocation { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pilgrim-alloc-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pilgrim-alloc-row:last-child { border: 0; }
.pilgrim-alloc-row .pa-icon { width: 23px; height: 23px; border-radius: 6px; background: var(--sand); color: var(--gold-deep); display: grid; place-items: center; flex: none; }
.pilgrim-alloc-row .pa-icon svg { width: 11px; height: 11px; }
.pilgrim-alloc-row .pa-copy { flex: 1; }
.pilgrim-alloc-row .pa-copy strong { display: block; font-size: 9px; font-weight: 700; }
.pilgrim-alloc-row .pa-copy small { font-size: 7.5px; color: var(--faint); }
.mice-guest-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.mice-guest-row:last-child { border: 0; }
.mice-guest-row .person-copy strong { font-size: 9.5px; }
.mice-guest-row .person-copy small { font-size: 8px; }

/* Responsive split layouts (replace inline grid styles) */
.dash-bottom { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.82fr); }
.split-2-1 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin-bottom: 14px; }
.split-vendor { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); margin-bottom: 14px; }
.split-form { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr); gap: 18px; }
@media (max-width: 820px) {
  .dash-bottom, .split-2-1, .split-vendor, .split-form { grid-template-columns: minmax(0, 1fr); }
}


/* ============================================================
   Server sync & security
   ============================================================ */
.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .55);
  color: var(--faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.sync-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green-mid); box-shadow: 0 0 0 3px rgba(47, 148, 115, .1); }
.sync-pill.saving { color: var(--gold-deep); border-color: #efdfbc; background: var(--gold-soft); }
.sync-pill.saving .sync-dot { background: var(--gold-deep); animation: syncPulse 1.1s infinite; }
.sync-pill.error { color: var(--red); border-color: #f0d3ce; background: var(--red-soft); }
.sync-pill.error .sync-dot { background: var(--red); }
.sync-pill.saved .sync-dot { background: var(--green-mid); }
@keyframes syncPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.security-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 30px -4px;
  padding: 9px 12px;
  border: 1px solid #efdfbc;
  border-radius: 9px;
  background: var(--gold-soft);
  color: #7d581b;
  font-size: 10px;
  line-height: 1.45;
}
.security-banner > svg { width: 15px; height: 15px; color: var(--gold-deep); flex: none; }
.security-banner span { flex: 1; }
.security-banner strong { font-weight: 800; color: #6f4b10; }
.security-banner .btn { flex: none; background: rgba(255, 255, 255, .55); border-color: #e5d1a8; color: #7d581b; }
.security-banner .icon-btn { flex: none; width: 24px; height: 24px; font-size: 15px; color: #9b7836; }
@media (max-width: 820px) {
  .sync-pill { display: none; }
  .security-banner { margin: 10px 16px -2px; font-size: 9px; align-items: flex-start; flex-wrap: wrap; }
  .security-banner .btn { margin-left: 24px; }
}
@media (max-width: 520px) {
  .security-banner { margin: 10px 12px -2px; }
}

/* ============================================================
   Website builder
   ============================================================ */
.wb-page .page-title { font-size: 34px; }
.wb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.wb-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wb-save-state { font-size: 8.5px; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 5px; }
.wb-save-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.wb-save-state.dirty { color: var(--gold-deep); }
.wb-save-state.dirty::before { background: var(--gold); }
.wb-shell {
  display: grid;
  grid-template-columns: 220px minmax(360px, 1.02fr) minmax(410px, 1.18fr);
  height: calc(100vh - 205px);
  min-height: 610px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.wb-side { background: #f6f5f0; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; padding: 14px 10px 10px; }
.wb-side-brand { display: flex; align-items: center; gap: 8px; padding: 3px 8px 16px; }
.wb-side-mark { width: 29px; height: 29px; border-radius: 7px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 4px; flex: none; }
.wb-side-mark img { width: 100%; height: 100%; object-fit: cover; }
.wb-side-brand strong { display: block; font-size: 10px; font-weight: 800; }
.wb-side-brand small { display: block; color: var(--faint); font-size: 7.5px; margin-top: 1px; }
.wb-side-label { font-size: 7.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); padding: 9px 9px 5px; }
.wb-side-link, .wb-page-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 9.5px;
  text-align: left;
  transition: .15s;
}
.wb-side-link svg, .wb-page-link svg { width: 14px; height: 14px; flex: none; }
.wb-side-link:hover, .wb-page-link:hover { background: rgba(12,43,35,.06); color: var(--ink); }
.wb-side-link.active { background: var(--forest); color: #f9f3e5; }
.wb-side-link.active svg { color: var(--gold); }
.wb-page-link { padding-left: 8px; }
.wb-page-link.active { background: #fff; color: var(--ink); font-weight: 700; border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.wb-page-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.wb-page-dot.published { background: var(--green-mid); }
.wb-page-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-page-nav { color: var(--faint); display: flex; }
.wb-page-nav svg { width: 10px; height: 10px; }
.wb-count { margin-left: auto; min-width: 16px; height: 15px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-deep); padding: 0 4px; display: grid; place-items: center; font-size: 7px; font-weight: 800; }
.wb-side-link.active .wb-count { background: rgba(255,255,255,.14); color: #f6dfb1; }
.wb-add-page {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 8px 3px;
  min-height: 29px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
}
.wb-add-page:hover { border-color: var(--green-mid); color: var(--green); background: #fff; }
.wb-side-foot { margin-top: auto; padding: 12px 7px 2px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; color: var(--faint); font-size: 7.5px; }
.wb-side-foot span { display: flex; align-items: center; gap: 5px; }
.wb-side-foot svg { width: 10px; height: 10px; }
.wb-empty-side { padding: 10px; color: var(--faint); font-size: 9px; }
.wb-center { overflow-y: auto; background: #fff; min-width: 0; }
.wb-center-head { padding: 16px 17px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 11px; position: sticky; top: 0; z-index: 4; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.wb-eyebrow { font-size: 7.5px; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; color: var(--faint); margin-bottom: 4px; }
.wb-center-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 400; line-height: 1; letter-spacing: -.01em; }
.wb-center-head .row { align-items: center; }
.wb-page-status { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 7.5px; font-weight: 800; border-radius: 4px; padding: 2px 5px; background: var(--surface-soft); color: var(--muted); }
.wb-page-status.published { background: var(--green-soft); color: var(--green); }
.wb-page-status.draft { background: var(--gold-soft); color: var(--gold-deep); }
.wb-back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--muted); font-size: 8.5px; font-weight: 700; padding: 0 0 7px; }
.wb-back:hover { color: var(--ink); }
.wb-back svg { width: 11px; height: 11px; }
.wb-page-meta { padding: 15px 17px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.wb-meta-tabs { display: flex; gap: 13px; border-bottom: 1px solid var(--line); padding-bottom: 7px; margin-bottom: 1px; }
.wb-meta-tabs span { font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.wb-meta-tabs span.active { color: var(--ink); }
.wb-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wb-field > span { font-size: 7.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); display: flex; justify-content: space-between; gap: 5px; }
.wb-field > span small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--faint); }
.wb-field input, .wb-field select, .wb-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  min-height: 33px;
  padding: 0 8px;
  font-size: 10px;
  color: var(--ink);
  font-family: var(--font);
}
.wb-field textarea { padding: 7px 8px; resize: vertical; line-height: 1.5; }
.wb-field input:focus, .wb-field select:focus, .wb-field textarea:focus { outline: none; border-color: var(--green-mid); box-shadow: 0 0 0 2px rgba(47,148,115,.1); }
.wb-field input[readonly] { background: var(--surface-soft); color: var(--faint); }
.wb-field > small { font-size: 7.5px; color: var(--faint); line-height: 1.45; }
.wb-form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; align-items: end; }
.wb-check { display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--muted); padding-bottom: 8px; }
.wb-check input { accent-color: var(--green); width: 13px; height: 13px; }
.wb-seo { border-top: 1px solid var(--line); padding-top: 9px; }
.wb-seo summary { display: flex; align-items: center; gap: 5px; font-size: 8.5px; font-weight: 750; color: var(--muted); cursor: pointer; list-style: none; margin-bottom: 8px; }
.wb-seo summary::-webkit-details-marker { display: none; }
.wb-seo summary svg { width: 11px; height: 11px; }
.wb-seo[open] summary { color: var(--ink); }
.wb-seo .wb-field + .wb-field { margin-top: 8px; }
.wb-section-list-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 17px 6px; color: var(--faint); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.wb-section-list { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.wb-section-row { display: flex; align-items: center; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; transition: .14s; }
.wb-section-row:hover { border-color: var(--line-strong); background: #fdfdf9; }
.wb-section-grip { color: #c7cec6; cursor: grab; display: flex; }
.wb-section-grip svg { width: 12px; height: 12px; }
.wb-section-icon { width: 27px; height: 27px; border-radius: 6px; background: var(--surface-soft); color: var(--muted); display: grid; place-items: center; flex: none; }
.wb-section-icon svg { width: 12px; height: 12px; }
.wb-section-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wb-section-copy strong { font-size: 9.5px; font-weight: 750; }
.wb-section-copy small { color: var(--faint); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-section-tools { display: flex; align-items: center; gap: 0; opacity: .4; transition: .15s; }
.wb-section-row:hover .wb-section-tools { opacity: 1; }
.wb-section-tools .icon-btn { width: 22px; height: 24px; }
.wb-section-tools svg { width: 11px; height: 11px; }
.wb-empty-sections { padding: 28px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--faint); }
.wb-empty-sections svg { width: 22px; height: 22px; margin-bottom: 6px; }
.wb-empty-sections strong { display: block; font-size: 10.5px; color: var(--ink-soft); }
.wb-empty-sections p { font-size: 9px; margin: 3px 0 10px; }
.wb-center-foot { padding: 11px 17px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 7px; margin-top: auto; }
.wb-editor-body { padding: 15px 17px 20px; display: flex; flex-direction: column; gap: 12px; }
.wb-section-label { font-size: 7.5px; text-transform: uppercase; letter-spacing: .11em; color: var(--faint); font-weight: 800; border-bottom: 1px solid var(--line); padding-bottom: 5px; margin-top: 3px; }
.wb-repeater { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.wb-repeater-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px; background: var(--surface-warm); border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.wb-repeater-rows { display: flex; flex-direction: column; }
.wb-repeater-row { display: flex; gap: 7px; align-items: flex-start; padding: 8px; border-bottom: 1px solid var(--line); background: #fff; }
.wb-repeater-row:last-child { border: 0; }
.wb-repeater-fields { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.wb-repeater-fields .wb-field:first-child:nth-last-child(3) { grid-column: span 2; }
.wb-repeater-fields .wb-field:last-child:nth-child(3) { grid-column: span 2; }
.wb-repeater-remove { flex: none; color: var(--faint); }
.wb-image-field { display: flex; align-items: center; gap: 6px; }
.wb-image-field input { flex: 1; min-width: 0; }
.wb-image-field select { width: 120px; flex: none; }
.wb-image-thumb { width: 33px; height: 33px; border-radius: 5px; background-size: cover; background-position: center; border: 1px solid var(--line); flex: none; }
.wb-colour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.wb-colour { display: flex; gap: 5px; align-items: center; }
.wb-colour input[type=color] { width: 32px; height: 33px; padding: 2px; flex: none; }
.wb-colour input[type=text] { min-width: 0; }
.wb-theme-preview { display: flex; align-items: center; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-warm); }
.wb-theme-preview > span { width: 23px; height: 23px; border-radius: 5px; border: 1px solid rgba(0,0,0,.06); }
.wb-theme-preview div { display: flex; flex-direction: column; line-height: 1.3; }
.wb-theme-preview strong { font-size: 10px; }
.wb-theme-preview small { color: var(--faint); font-size: 8px; }
.wb-info { display: flex; gap: 6px; padding: 8px 9px; border-radius: 6px; background: var(--blue-soft); border: 1px solid #dce5f4; color: #395c98; font-size: 8.5px; line-height: 1.5; }
.wb-info svg { width: 12px; height: 12px; flex: none; margin-top: 1px; }
.wb-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 320px; gap: 8px; color: var(--faint); font-size: 10px; text-align: center; }
.wb-loading svg { width: 25px; height: 25px; }
.wb-loading h3 { font-size: 13px; color: var(--ink); }
.wb-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.wb-type-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px; text-align: left; min-height: 105px; }
.wb-type-card:hover { border-color: var(--green-mid); background: #fbfdfb; }
.wb-type-card > span { width: 25px; height: 25px; border-radius: 6px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.wb-type-card svg { width: 12px; height: 12px; }
.wb-type-card strong { font-size: 9.5px; font-weight: 750; }
.wb-type-card small { font-size: 8px; color: var(--faint); line-height: 1.4; }
.wb-demo-list { padding: 11px 13px; display: flex; flex-direction: column; gap: 6px; }
.wb-demo-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.wb-demo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.wb-demo-main strong { font-size: 10px; font-weight: 750; }
.wb-demo-main span { font-size: 8.5px; color: var(--muted); }
.wb-demo-main small { font-size: 8px; color: var(--faint); margin-top: 1px; }
.wb-demo-type { width: 125px; font-size: 8px; color: var(--muted); line-height: 1.35; }
.wb-demo-type small { display: block; color: var(--faint); font-size: 7.5px; margin-top: 2px; }
.wb-demo-row .select { width: 96px; height: 30px; font-size: 8px; }
.wb-preview { background: #e9e8e1; display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); }
.wb-preview-bar { height: 44px; padding: 0 11px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); background: #f7f6f1; flex: none; }
.wb-preview-title { display: flex; align-items: center; gap: 5px; font-size: 8.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: auto; }
.wb-preview-title svg { width: 12px; height: 12px; }
.wb-device-toggle { display: flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.wb-device-toggle button { width: 27px; height: 25px; border: 0; border-right: 1px solid var(--line); background: #fff; color: var(--faint); display: grid; place-items: center; }
.wb-device-toggle button:last-child { border: 0; }
.wb-device-toggle button.active { background: var(--forest); color: #fff; }
.wb-device-toggle svg { width: 11px; height: 11px; }
.wb-frame-wrap { flex: 1; overflow: auto; padding: 12px; display: flex; justify-content: center; align-items: flex-start; }
.wb-frame-wrap iframe { width: 100%; height: 100%; min-height: 500px; border: 0; border-radius: 5px; background: #fff; box-shadow: 0 8px 30px -18px rgba(0,0,0,.35); }
.wb-frame-wrap.device-tablet iframe { width: 768px; max-width: 100%; }
.wb-frame-wrap.device-mobile iframe { width: 390px; max-width: 100%; }
.wb-preview-foot { height: 31px; border-top: 1px solid var(--line); background: #f7f6f1; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; color: var(--faint); font-size: 7.5px; flex: none; }
.wb-preview-foot button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--muted); font-size: 8px; font-weight: 700; }
.wb-preview-foot svg { width: 10px; height: 10px; }
@media (max-width: 1240px) {
  .wb-shell { grid-template-columns: 195px minmax(330px, 1fr) minmax(360px, 1.1fr); }
  .wb-head { align-items: flex-start; }
  .wb-save-state { display: none; }
}
@media (max-width: 1040px) {
  .wb-shell { grid-template-columns: 195px minmax(330px, 1fr); height: auto; min-height: 600px; }
  .wb-preview { display: none; }
  .wb-center { min-height: 600px; }
}
@media (max-width: 820px) {
  .wb-shell { grid-template-columns: 1fr; height: auto; }
  .wb-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 230px; }
  .wb-side-foot { display: none; }
  .wb-center { min-height: 500px; }
  .wb-head { flex-direction: column; }
  .wb-type-grid { grid-template-columns: 1fr 1fr; }
  .wb-form-two, .wb-colour-grid { grid-template-columns: 1fr; }
  .wb-repeater-fields { grid-template-columns: 1fr; }
  .wb-repeater-fields .wb-field:first-child:nth-last-child(3), .wb-repeater-fields .wb-field:last-child:nth-child(3) { grid-column: auto; }
}
