/* syut.in — Liquid Glass design system (Light Minimalist, Calm & High Contrast) */
/* Fonts are self-hosted only: a remote @import blocks rendering when the phone/PC has no internet. */
@import url('/fonts/fonts.css');

:root {
  /* Subtle, Human-Centric Typography Suite (Inspired by Google Antigravity & Dropbox) */
  --font-tech: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', 'Cascadia Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Surfaces & Background */
  --bg: #ffffff;
  --bg-gradient: radial-gradient(130% 90% at 50% -20%, #dbeafe 0%, #eff6ff 38%, #ffffff 80%), #ffffff;
  
  /* High-Contrast Typography */
  --ink: #0f172a;               /* Deep slate - 100% visible text */
  --ink-heading: #031747;       /* syut.in signature deep navy */
  --muted: #334155;             /* Crisp secondary text */
  --dim: #64748b;               /* Refined cool slate for metadata */
  
  /* Liquid Glassmorphic Borders & Highlights */
  --stroke: rgba(186, 230, 253, 0.8);
  --stroke-2: rgba(2, 132, 199, 0.35);
  --hi: rgba(255, 255, 255, 0.95);
  --fill: rgba(240, 249, 255, 0.85);
  --fill-2: rgba(224, 242, 254, 0.9);
  
  /* Cloud Palette */
  --cloud-50: #f0f9ff;
  --cloud-100: #e0f2fe;
  --cloud-200: #bae6fd;
  --cloud-500: #0284c7;
  --cloud-600: #009fe3;
  --navy-950: #020d29;
  --navy-900: #031747;
  --navy-800: #0b2265;

  /* Accent & Status Colors */
  --a1: #031747;
  --a2: #0284c7;
  --a3: #009fe3;
  --ok: #059669;
  --warn: #d97706;
  --bad: #e11d48;

  /* Radii & Motion */
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 13px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --blur: saturate(190%) blur(22px);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
  font-family: var(--font-tech);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-gradient);
  color: var(--ink);
  background-attachment: fixed;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cloud-500); text-decoration: none; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  color: var(--ink-heading);
  font-weight: 700;
}
p { margin: 0; color: var(--muted); }
.muted { color: var(--muted) !important; }
.dim { color: var(--dim) !important; }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 8px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Subtle Liquid Aurora Background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-gradient);
  opacity: 0.22;
}
.aurora i {
  position: absolute;
  width: 65vmax;
  height: 65vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
  /* animation: drift disabled for 60fps instant UI */
}
.aurora i:nth-child(1) { background: radial-gradient(circle, #bae6fd 0, transparent 65%); top: -25vmax; left: -20vmax; }
.aurora i:nth-child(2) { background: radial-gradient(circle, #7dd3fc 0, transparent 65%); top: -10vmax; right: -30vmax; animation-duration: 32s; animation-delay: -8s; }
.aurora i:nth-child(3) { background: radial-gradient(circle, #e0f2fe 0, transparent 65%); bottom: -35vmax; left: 10vmax; opacity: 0.45; animation-duration: 38s; animation-delay: -15s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(5vmax, 3vmax, 0) scale(1.08); }
  100% { transform: translate3d(-3vmax, 6vmax, 0) scale(.96); }
}

/* ---------- Liquid Glass Surfaces ---------- */
.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 32px -10px rgba(2, 132, 199, 0.08),
              0 24px 60px -20px rgba(15, 23, 42, 0.05),
              inset 0 1px 0 var(--hi);
  isolation: isolate;
  color: var(--ink);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(140% 70% at 0% 0%, rgba(255, 255, 255, 0.7), transparent 50%),
              radial-gradient(90% 60% at 100% 100%, rgba(186, 230, 253, 0.25), transparent 60%);
}
.card {
  padding: 22px;
}
.card.pad-lg {
  padding: 28px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cloud-500);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  min-height: 48px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .02em;
  color: #ffffff !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  box-shadow: 0 8px 24px -6px rgba(3, 23, 71, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform .35s var(--spring), box-shadow .25s var(--ease), background .25s;
}
.btn:hover {
  background: linear-gradient(135deg, var(--cloud-500) 0%, var(--cloud-600) 100%);
  box-shadow: 0 10px 28px -6px rgba(2, 132, 199, 0.45);
  transform: translateY(-1.5px);
}
.btn:active {
  transform: scale(.96);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid var(--cloud-200);
  color: var(--navy-900) !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.06);
}
.btn.ghost:hover {
  background: var(--cloud-50) !important;
  border-color: var(--cloud-500);
}
.btn.danger {
  background: linear-gradient(135deg, #e11d48, #be123c) !important;
  box-shadow: 0 8px 24px -6px rgba(225, 29, 72, 0.4);
  color: #ffffff !important;
}
.btn.subtle {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--muted) !important;
  padding: 10px 14px;
  min-height: 0;
}
.btn.subtle:hover {
  color: var(--navy-900) !important;
}
.btn.sm {
  padding: 8px 16px;
  min-height: 36px;
  font-size: 13.5px;
}
.btn.block {
  width: 100%;
}
/* Direct overlay picker labels for iOS Safari native file picking */
.picker-label {
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.direct-picker-input {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.0001 !important;
  cursor: pointer !important;
  z-index: 10 !important;
  display: block !important;
  font-size: 100px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: auto !important;
}
.btn[disabled], .btn.busy {
  opacity: .5;
  pointer-events: none;
}
.btn .spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--cloud-200);
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy-900);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
  transition: transform .35s var(--spring), background .2s, border-color .2s;
}
.icon-btn:hover {
  background: var(--cloud-50);
  border-color: var(--cloud-500);
}
.icon-btn:active { transform: scale(.9); }
svg.i {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Form Controls ---------- */
.field {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--cloud-200);
  background: #ffffff;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus {
  border-color: var(--cloud-500);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
  background: #ffffff;
}
label.lbl {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 8px 2px;
}

.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--cloud-100);
  border: 1px solid var(--cloud-200);
  position: relative;
}
.seg button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, background .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.seg button.on {
  color: var(--navy-900);
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.12);
}

.switch {
  position: relative;
  width: 52px;
  height: 32px;
  flex: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #e2e8f0;
  border: 1px solid var(--cloud-200);
  transition: background .35s var(--ease);
}
.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  transition: transform .45s var(--spring);
}
.switch input:checked + span {
  background: linear-gradient(135deg, var(--navy-900), var(--cloud-500));
}
.switch input:checked + span::after {
  transform: translateX(20px);
}

.setting {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--cloud-100);
}
.setting:first-child { border-top: 0; padding-top: 0; }
.setting .t {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}
.setting .d {
  font-size: 13.5px;
  color: var(--dim);
  margin-top: 2px;
}

.option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--r-md);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid var(--cloud-200);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.04);
  transition: background .2s, border-color .2s, transform .3s var(--spring);
}
.option:active { transform: scale(.985); }
.option.on {
  background: #f0f9ff;
  border-color: var(--cloud-500);
  box-shadow: 0 6px 20px -6px rgba(2, 132, 199, 0.25);
}
.option .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  margin-top: 1px;
  border: 2px solid var(--cloud-200);
  background: #ffffff;
  transition: border-color .2s, background .2s;
}
.option.on .dot {
  border-color: var(--cloud-500);
  background: radial-gradient(circle, var(--cloud-500) 45%, #ffffff 48%);
}
.option .t {
  font-weight: 750;
  color: var(--navy-900);
  font-size: 15px;
}
.option .d {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: 2px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* ---------- Status Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  background: #ffffff;
  border: 1px solid var(--cloud-200);
  color: var(--navy-900);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.06);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
}
.pill.ok::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pill.warn::before { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.pill.bad::before { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.pill.plain::before { display: none; }

/* ---------- Progress Bar ---------- */
.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--cloud-100);
  overflow: hidden;
  border: 1px solid var(--cloud-200);
}
.bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width .5s var(--ease);
  background: linear-gradient(90deg, var(--navy-900), var(--cloud-500), var(--navy-900));
  background-size: 200% 100%;
  animation: flow 2.4s linear infinite;
}
.bar.ok > i { background: var(--ok); animation: none; }
.bar.bad > i { background: var(--bad); animation: none; }
@keyframes flow { to { background-position: -200% 0; } }

/* ---------- Liquid Orb (Central Transfer Node) ---------- */
.orb {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 10px auto 14px;
  display: grid;
  place-items: center;
}
.orb .blob {
  position: absolute;
  inset: 20px;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.7), transparent 30%),
              linear-gradient(140deg, #031747, #0284c7 50%, #009fe3);
  box-shadow: inset -10px -15px 30px rgba(3, 23, 71, 0.4),
              inset 10px 12px 25px rgba(255, 255, 255, 0.5),
              0 24px 50px -15px rgba(2, 132, 199, 0.4);
  /* animation: morph disabled for 60fps instant UI */
}
.orb.idle .blob { filter: saturate(.9); }
.orb.done .blob {
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.7), transparent 30%),
              linear-gradient(140deg, #059669, #10b981 50%, #06b6d4);
  box-shadow: 0 24px 50px -15px rgba(16, 185, 129, 0.4);
}
.orb.warn .blob {
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.7), transparent 30%),
              linear-gradient(140deg, #d97706, #f59e0b 50%, #fb7185);
  box-shadow: 0 24px 50px -15px rgba(245, 158, 11, 0.4);
}
.orb.busy .blob { animation-duration: 3.5s; }
.orb svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.orb svg.ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.orb svg.ring .track { stroke: rgba(186, 230, 253, 0.4); }
.orb svg.ring .val { stroke: url(#ringGrad); transition: stroke-dashoffset .6s var(--ease); }
.orb .label {
  position: relative;
  text-align: center;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(3, 23, 71, 0.5);
}
.orb .label b {
  display: block;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: #ffffff !important;
}
.orb .label span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 700;
}
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; transform: rotate(0) scale(1); }
  33% { border-radius: 58% 42% 40% 60% / 55% 58% 42% 45%; transform: rotate(8deg) scale(1.03); }
  66% { border-radius: 45% 55% 62% 38% / 40% 50% 50% 60%; transform: rotate(-6deg) scale(.98); }
}

/* ---------- Lists & Queue Items ---------- */
.list { display: flex; flex-direction: column; }
.li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--cloud-100);
}
.li:first-child { border-top: 0; }
.li .ico {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  background: #ffffff;
  border: 1px solid var(--cloud-200);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.06);
  overflow: hidden;
  color: var(--cloud-500);
}
.li .ico img { width: 100%; height: 100%; object-fit: cover; }
.li .name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.li .meta {
  font-size: 13px;
  color: var(--dim);
  margin-top: 2px;
}

/* ---------- Toasts & Scrim Modals ---------- */
#toasts {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(14px + var(--sat));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 100;
  pointer-events: none;
}
.toast {
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  max-width: 92vw;
  pointer-events: auto;
  background: var(--navy-900);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(3, 23, 71, 0.25);
  animation: toastIn .5s var(--spring);
}
.toast.bad {
  background: #be123c;
  box-shadow: 0 10px 30px rgba(190, 18, 60, 0.3);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.95); } }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(3, 23, 71, 0.38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade .25s var(--ease);
}
.scrim.center { align-items: center; padding: 20px; }
.sheet {
  width: min(560px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 26px 24px calc(24px + var(--sab));
  background: #ffffff;
  border: 1px solid var(--cloud-200);
  box-shadow: 0 25px 65px -15px rgba(3, 23, 71, 0.3);
  animation: sheetUp .45s var(--ease);
  color: var(--ink);
}
.scrim.center .sheet { border-radius: var(--r-xl); animation: pop .4s var(--spring); }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
@keyframes fade { from { opacity: 0; } }

.kbd {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--cloud-100);
  border: 1px solid var(--cloud-200);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-900);
}
.copy {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--cloud-50);
  border: 1.5px solid var(--cloud-200);
  color: var(--navy-900);
}
.copy code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13.5px;
  font-family: ui-monospace, monospace;
  color: var(--navy-900);
  font-weight: 600;
}

/* =========================================================
   Unified Icon Family & Architectural Minimalist Utilities
   ========================================================= */
.syut-ico {
  display: inline-block;
  vertical-align: middle;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Floating Non-Blocking Connection Pill (Auto-Resume / Reconnecting) */
.connection-pill {
  position: sticky;
  top: 12px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto 14px;
  max-width: 640px;
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
  animation: pop .35s var(--spring);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.connection-pill.warning {
  background: rgba(254, 243, 199, 0.96);
  border: 1.5px solid #f59e0b;
  color: #92400e;
}
.connection-pill.ok {
  background: rgba(236, 253, 245, 0.96);
  border: 1.5px solid #10b981;
  color: #065f46;
}
.pulsing-amber {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
  flex: none;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.btn-retry-pill {
  padding: 4px 12px;
  border-radius: 99px;
  background: #0f172a;
  color: #ffffff;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .18s;
}
.btn-retry-pill:hover { opacity: 0.88; }

/* Lead Capture / Email Gate Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 23, 71, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade .25s var(--ease);
}
.modal-card {
  width: min(480px, 100%);
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid var(--cloud-200);
  box-shadow: 0 25px 60px -15px rgba(3, 23, 71, 0.28);
  padding: 32px 28px;
  animation: pop .35s var(--spring);
  text-align: left;
}
.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cloud-500);
  background: var(--cloud-50);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--cloud-200);
  margin-bottom: 12px;
}
.fluid-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--cloud-200);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--cloud-50);
  color: var(--ink);
}
.fluid-input:focus {
  border-color: var(--navy-900);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(3, 23, 71, 0.1);
}
.btn-primary-fluid {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--navy-900);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  margin-top: 12px;
  transition: transform .18s, background .18s;
  box-shadow: 0 6px 18px -3px rgba(3, 23, 71, 0.25);
}
.btn-primary-fluid:hover {
  background: var(--cloud-500);
  transform: translateY(-1px);
}
.modal-footer-note {
  font-size: 12px;
  color: var(--dim);
  text-align: center;
  margin-top: 14px;
  line-height: 1.45;
}

/* Dual Ledger: Device vs Personal Drive Mapping */
.dual-ledger-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.ledger-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.ledger-tab-btn {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--cloud-200);
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  transition: all .18s;
}
.ledger-tab-btn.active {
  background: var(--navy-900);
  color: #ffffff;
  border-color: var(--navy-900);
}
.ledger-list {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--cloud-200);
  border-radius: 16px;
  background: #ffffff;
}
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--cloud-100);
  font-size: 13px;
}
.ledger-row:last-child { border-bottom: 0; }
.status-pill-synced {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.status-pill-pending {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.status-pill-flight {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

