/* ===========================================================================
   OperatorCo — shared expedition theme
   Dark navy (#0A2540) + teal accent (#00B4A0). All imagery is CSS gradient
   or inline SVG — NO binary assets.
   =========================================================================== */

:root {
  --navy: #0a2540;
  --navy-2: #0d2e4f;
  --navy-3: #112f52;
  --ink: #07182b;
  --teal: #00b4a0;
  --teal-2: #2dd4bf;
  --ice: #e8f4f8;
  --frost: #b9d6e2;
  --sky: #6db8d6;
  --paper: #f6f9fb;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(8, 24, 43, 0.1);
  --text: #e8f1f6;
  --text-dim: #9bb2c4;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(0, 180, 160, 0.18), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, rgba(109, 184, 214, 0.12), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Header ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(7, 24, 43, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.08rem;
}
.brand .logo-mark { width: 30px; height: 30px; flex: none; }
.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: 8px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.nav a:hover { color: var(--text); }
.header-spacer { flex: 1; }

/* ---- Insurance toggle switch ----------------------------------------- */
.ins-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 7px 12px 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 180, 160, 0.06);
}
.ins-toggle .ins-label { max-width: 180px; line-height: 1.25; }
.ins-toggle .ins-label b { color: var(--teal-2); font-weight: 600; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: background 0.2s ease;
  cursor: pointer;
}
.switch .track::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.switch input:checked + .track { background: var(--teal); }
.switch input:checked + .track::before { transform: translateX(18px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, #009a89 100%);
  color: #04241f;
  box-shadow: 0 10px 30px -12px rgba(0, 180, 160, 0.8);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 78% 18%, rgba(0, 180, 160, 0.32), transparent 62%),
    linear-gradient(160deg, #0e3a63 0%, #0a2540 48%, #061a30 100%);
  z-index: 0;
}
.hero-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap {
  position: relative;
  z-index: 2;
  padding: 96px 24px 110px;
  max-width: 920px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 180, 160, 0.4);
  border-radius: 999px;
  background: rgba(0, 180, 160, 0.07);
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 0%, #bfe4dc 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: var(--frost);
  max-width: 640px;
  margin: 0 0 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats .stat .n {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
}
.hero-stats .stat .l {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---- Section --------------------------------------------------------- */
.section { padding: 78px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  font-weight: 800;
}
.section-head p { color: var(--text-dim); margin: 0; font-size: 1.05rem; }

/* ---- Trip cards ------------------------------------------------------ */
.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 26px;
}
.trip-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.trip-card:hover { transform: translateY(-5px); border-color: rgba(0, 180, 160, 0.5); }
.trip-card .card-hero {
  position: relative;
  height: 196px;
  overflow: hidden;
}
.trip-card .card-hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.trip-card .card-hero .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(7, 24, 43, 0.72);
  border: 1px solid var(--line);
  color: var(--frost);
}
.trip-card .card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.trip-card h3 { margin: 0 0 6px; font-size: 1.32rem; font-weight: 700; }
.trip-card .meta { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 14px; }
.trip-card .desc { color: var(--frost); font-size: 0.94rem; margin: 0 0 20px; flex: 1; }
.trip-card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price .from { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.price .amount { font-size: 1.5rem; font-weight: 800; color: #fff; }
.price .amount small { font-size: 0.8rem; font-weight: 500; color: var(--text-dim); }

/* ---- Trust strip ----------------------------------------------------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.trust .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  padding: 44px 24px;
}
.trust .item { display: flex; gap: 14px; align-items: flex-start; }
.trust .item svg { flex: none; width: 30px; height: 30px; color: var(--teal); }
.trust .item h4 { margin: 0 0 4px; font-size: 1rem; }
.trust .item p { margin: 0; color: var(--text-dim); font-size: 0.88rem; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 0.86rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .demo-note {
  font-size: 0.78rem;
  color: var(--sky);
  border: 1px dashed rgba(109, 184, 214, 0.4);
  border-radius: 8px;
  padding: 8px 12px;
}

/* ===========================================================================
   Trip detail page
   =========================================================================== */
.trip-detail-hero {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.trip-detail-hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.trip-detail-hero .overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 26, 48, 0.85) 100%);
}
.trip-detail-hero .overlay .wrap { padding-bottom: 32px; }
.trip-detail-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 8px; font-weight: 800; }
.trip-detail-hero .sub { color: var(--frost); font-size: 1.05rem; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  padding: 56px 0;
  align-items: start;
}
@media (max-width: 920px) { .detail-grid { grid-template-columns: 1fr; } }

.itin-list { list-style: none; margin: 0; padding: 0; }
.itin-list li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.itin-list .day {
  flex: none;
  width: 54px;
  font-weight: 800;
  color: var(--teal);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.itin-list h4 { margin: 0 0 4px; }
.itin-list p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

.booking-card {
  position: sticky;
  top: 88px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 26px;
  box-shadow: var(--shadow);
}
.booking-card h3 { margin: 0 0 18px; font-size: 1.2rem; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.field select,
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(7, 24, 43, 0.6);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.field select:focus,
.field input:focus { outline: 2px solid var(--teal); border-color: transparent; }

.cabin-tiers { display: grid; gap: 10px; margin-bottom: 18px; }
.cabin-tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cabin-tier:hover { border-color: rgba(0, 180, 160, 0.4); }
.cabin-tier.selected {
  border-color: var(--teal);
  background: rgba(0, 180, 160, 0.08);
}
.cabin-tier .ct-name { font-weight: 600; font-size: 0.95rem; }
.cabin-tier .ct-desc { font-size: 0.78rem; color: var(--text-dim); }
.cabin-tier .ct-price { font-weight: 700; color: #fff; white-space: nowrap; }

.booking-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  margin: 8px 0 18px;
}
.booking-total .t-amount { font-size: 1.6rem; font-weight: 800; color: #fff; }

/* ===========================================================================
   Checkout wizard
   =========================================================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  padding: 48px 0 80px;
  align-items: start;
}
@media (max-width: 920px) { .checkout-layout { grid-template-columns: 1fr; } }

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.step-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--text-dim);
}
.step-pill .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  font-weight: 700;
}
.step-pill.active { border-color: var(--teal); color: var(--text); background: rgba(0, 180, 160, 0.08); }
.step-pill.active .num { background: var(--teal); color: #04241f; }
.step-pill.done .num { background: var(--teal); color: #04241f; }

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
}
.panel h2 { margin: 0 0 6px; font-size: 1.45rem; }
.panel .panel-sub { color: var(--text-dim); margin: 0 0 26px; }

.traveler-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.traveler-row .field { margin-bottom: 0; }

.addon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
}

/* The widget mount point */
#ei-quote { margin-top: 8px; }
.ei-frame-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 180, 160, 0.3);
}
.ei-mount-note {
  font-size: 0.8rem;
  color: var(--sky);
  margin: 6px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
}

/* Order summary */
.order-summary {
  position: sticky;
  top: 88px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 26px;
  box-shadow: var(--shadow);
}
.order-summary h3 { margin: 0 0 18px; font-size: 1.1rem; }
.order-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.92rem;
  color: var(--frost);
}
.order-line.muted { color: var(--text-dim); font-size: 0.84rem; }
.order-line.protection {
  color: var(--teal-2);
  font-weight: 600;
}
.order-line.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.order-trip-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.order-trip-mini .thumb {
  width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: none;
}
.order-trip-mini .thumb svg { width: 100%; height: 100%; display: block; }
.order-trip-mini .ot-name { font-weight: 700; font-size: 0.95rem; }
.order-trip-mini .ot-meta { font-size: 0.78rem; color: var(--text-dim); }

/* Fake payment form */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-grid .field.full { grid-column: 1 / -1; }
.fake-card-note {
  font-size: 0.8rem;
  color: var(--sky);
  background: rgba(109, 184, 214, 0.08);
  border: 1px dashed rgba(109, 184, 214, 0.35);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 20px;
}

/* Confirmation */
.confirm-wrap { text-align: center; padding: 30px 10px; }
.confirm-wrap .check {
  width: 76px; height: 76px; margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 180, 160, 0.15);
  border: 2px solid var(--teal);
}
.confirm-wrap h2 { font-size: 1.9rem; margin: 0 0 10px; }
.confirm-wrap p { color: var(--frost); }
.confirm-detail {
  text-align: left;
  max-width: 420px;
  margin: 28px auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}

.empty-cart {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
}

/* ===========================================================================
   Audit panel
   =========================================================================== */
.audit-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 180, 160, 0.5);
  background: linear-gradient(135deg, #0d2e4f, #07182b);
  color: var(--text);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  box-shadow: 0 14px 36px -12px rgba(0, 0, 0, 0.7);
}
.audit-fab svg { width: 18px; height: 18px; color: var(--teal); }
.audit-fab .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-2);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.audit-panel {
  position: fixed;
  bottom: 0;
  right: 0;
  width: min(460px, 100vw);
  max-height: 82vh;
  z-index: 61;
  display: flex;
  flex-direction: column;
  border-top-left-radius: 18px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-right: 0;
  background: rgba(7, 20, 36, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: -20px 0 60px -20px rgba(0, 0, 0, 0.8);
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.audit-panel.open { transform: translateY(0); }
.audit-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.audit-panel-head h3 { margin: 0; font-size: 1rem; flex: 1; }
.audit-panel-head .env-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--frost);
}
.audit-panel-head .icon-btn {
  background: none; border: 0; color: var(--text-dim); cursor: pointer; font-size: 1.3rem; line-height: 1;
}
.audit-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.audit-controls button,
.audit-controls .seg {
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}
.audit-controls button:hover { background: rgba(255, 255, 255, 0.09); }
.audit-docs-link {
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid rgba(0, 180, 160, 0.4);
  background: rgba(0, 180, 160, 0.1);
  color: var(--teal-2);
  cursor: pointer;
  white-space: nowrap;
}
.audit-docs-link:hover { background: rgba(0, 180, 160, 0.18); }
.code-drawer .copy-row .audit-docs-link { margin-left: 10px; }
.audit-controls .seg { display: inline-flex; padding: 0; overflow: hidden; }
.audit-controls .seg button { border: 0; border-radius: 0; }
.audit-controls .seg button.active { background: var(--teal); color: #04241f; font-weight: 700; }

.audit-feed {
  overflow-y: auto;
  padding: 10px 14px 18px;
  flex: 1;
}
.audit-event {
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 9px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.84rem;
}
.audit-event.lane-widget { border-left-color: var(--teal); }
.audit-event.lane-api { border-left-color: var(--sky); }
.audit-event.lane-webhook { border-left-color: #c084fc; }
.audit-event .ae-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.audit-event .lane-tag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
}
.lane-widget .lane-tag { background: rgba(0, 180, 160, 0.18); color: var(--teal-2); }
.lane-api .lane-tag { background: rgba(109, 184, 214, 0.18); color: var(--sky); }
.lane-webhook .lane-tag { background: rgba(192, 132, 252, 0.18); color: #d8b4fe; }
.audit-event .ae-name { font-weight: 600; }
.audit-event .ae-time { margin-left: auto; color: var(--text-dim); font-size: 0.72rem; }
.audit-event .ae-flags { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.audit-event .flag {
  font-size: 0.64rem;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.flag.ok { color: var(--teal-2); border-color: rgba(0, 180, 160, 0.4); }
.flag.bad { color: #fda4af; border-color: rgba(253, 164, 175, 0.4); }
.flag.sim { color: #fcd34d; border-color: rgba(252, 211, 77, 0.4); }
.flag.inferred { color: var(--sky); border-color: rgba(109, 184, 214, 0.4); cursor: help; }
.audit-event details { margin-top: 8px; }
.audit-event summary { cursor: pointer; color: var(--text-dim); font-size: 0.78rem; }
.audit-event pre {
  margin: 8px 0 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.72rem;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: #cfe6ef;
}
.audit-empty { text-align: center; color: var(--text-dim); padding: 40px 10px; font-size: 0.86rem; }

.code-drawer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
}
.code-drawer summary {
  padding: 12px 18px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-2);
  list-style: none;
}
.code-drawer summary::-webkit-details-marker { display: none; }
.code-drawer pre {
  margin: 0;
  padding: 14px 18px 18px;
  font-size: 0.72rem;
  line-height: 1.6;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: #cfe6ef;
}
.code-drawer .copy-row { padding: 0 18px 14px; }
.code-drawer .copy-row button {
  font-size: 0.74rem;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav { display: none; }
  .ins-toggle .ins-label { max-width: 120px; font-size: 0.72rem; }
}
