/* Redesign, 17 Nov 2026 (Drew approved screen by screen).
   Shared layer for every redesigned page. Loaded after design-system.css and
   tailwind.output.css, so these rules win where they overlap.

   Rules held here (research/reel-design-rules-17nov.md):
   1 inner radius = outer radius minus padding   2 alpha borders
   3 palette in OKLCH                            4 gradients interpolate in oklch
   6 edge fade masks on scrollers                9 dynamic viewport units only
   Plus Drew's: depth on cards and bars (lit top edge, darker bottom edge,
   soft shadow), pills and small buttons 10px corners, colour = state. */

:root {
  --rd-bg:      oklch(0.172 0.032 268.9);
  --rd-text:    oklch(0.945 0.012 259.8);
  --rd-text-2:  oklch(0.675 0.032 248.3);
  --rd-text-3:  oklch(0.82 0.06 262 / 0.45);
  --rd-accent:  oklch(0.656 0.170 260);
  --rd-sky:     oklch(0.717 0.148 260);
  --rd-cyan:    oklch(0.825 0.103 234.5);
  --rd-violet:  oklch(0.62 0.17 295);
  --rd-ok:      oklch(0.764 0.168 159.8);
  --rd-warn:    oklch(0.764 0.154 70.8);
  --rd-danger:  oklch(0.64 0.19 25);
  --rd-grey:    oklch(0.62 0.02 260);
  --rd-s1:      oklch(0.21 0.03 265);
  --rd-s2:      oklch(0.25 0.035 265);
  --rd-s3:      oklch(0.29 0.04 265);
  --rd-line:    rgb(255 255 255 / 0.08);
  --rd-edge:    rgb(255 255 255 / 0.11);
  --rd-glass:   linear-gradient(145deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0.01));
  /* Card fill under the glass. Drew 18 Nov: see-through, the stars and glow
     show behind every section. Round 2 halved it again ("like 50%"): 0.28 ->
     0.14, and the blur went 22px -> 10px so the stars stay visible. */
  --rd-veil:    rgb(17 24 39 / 0.14);
  --rd-veil-1:  oklch(0.21 0.03 265 / 0.28);
  --rd-veil-3:  oklch(0.29 0.04 265 / 0.28);
  --rd-blur:    blur(2px) saturate(115%); /* Drew 18 Nov: stars must show through every section (was 10px, smeared them away) */
  /* For sections that used the solid old card colour inline. */
  --rd-section: var(--rd-glass), rgb(17 24 39 / 0.14);
  --rd-r:       24px;
  --rd-pad:     20px;
  --rd-depth:   inset 0 1px 0 rgb(255 255 255 / 0.14), inset 0 -1px 0 rgb(0 0 0 / 0.35),
                0 14px 34px rgb(0 0 0 / 0.38), 0 2px 6px rgb(0 0 0 / 0.28);
  --rd-depth-bar: inset 0 1px 1px rgb(255 255 255 / 0.45), inset 0 -2px 3px rgb(0 0 0 / 0.25),
                0 4px 10px rgb(0 0 0 / 0.35);
  --rd-depth-chip: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 2px 6px rgb(0 0 0 / 0.25);
  /* the lit call-to-action fill, for buttons styled inline on older pages */
  --rd-cta: linear-gradient(160deg in oklch, #5b9dff, #8b6ae8);
  --rd-cta-shadow: 0 8px 16px rgb(79 142 247 / 0.32), inset 0 1px 1px rgb(255 255 255 / 0.5), inset 0 -2px 3px rgb(0 0 0 / 0.25);
}

/* ══ Older pages wear the redesign too (Drew 18 Nov 2026: "make sure all the
   pages are updated with the recent design"). Pages still built on the October
   primitives (.card, .card-glass, .panel, .list-group, .profile-card, inputs,
   .btn) get the same see-through glass, depth, OKLCH accent and corners as the
   redesigned screens. This block sits FIRST in the file on purpose: every
   rd-* rule below has equal or higher specificity and so still wins. ══ */
.card, .card-glass, .panel, .list-group, .profile-card {
  background: var(--rd-glass), var(--rd-veil);
  border: 1px solid rgb(255 255 255 / 0.10);
  border-radius: var(--rd-r);
  backdrop-filter: var(--rd-blur); -webkit-backdrop-filter: var(--rd-blur);
  box-shadow: var(--rd-depth);
}
@media (hover: hover) {
  .card:hover { background: var(--rd-glass), rgb(17 24 39 / 0.22); border-color: oklch(0.825 0.103 234.5 / 0.22); box-shadow: var(--rd-depth); }
}
/* A sheet over the page stays solid enough to read. */
.card-glass.modal-panel { background: var(--rd-glass), oklch(0.21 0.03 265 / 0.94); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.inset-panel { background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.06); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05); }
.profile-card__avatar { background: linear-gradient(160deg in oklch, oklch(0.72 0.15 260), oklch(0.52 0.16 290));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.4), 0 6px 14px rgb(0 0 0 / 0.35); }
.list-row + .list-row::before { background: var(--rd-line); }
.list-row:active { background: rgb(255 255 255 / 0.05); }
.section-label { font-size: 13px; color: var(--rd-text-2); }
.page-head__title { color: var(--rd-text); letter-spacing: -0.02em; }
.field-help { color: var(--rd-text-2); }

/* fields: a soft well, lit from above, blue ring on focus */
.input, input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="time"], input[type="search"], input[type="tel"], input[type="url"],
textarea, select:not([class*="nav"]) {
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.11);
  border-radius: 14px;
  color: var(--rd-text);
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.28), inset 0 -1px 0 rgb(255 255 255 / 0.04);
}
textarea { padding-top: 12px; padding-bottom: 12px; }
.input:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus,
input[type="number"]:focus, input[type="date"]:focus, input[type="time"]:focus, input[type="search"]:focus,
input[type="tel"]:focus, input[type="url"]:focus, textarea:focus, select:not([class*="nav"]):focus {
  border-color: oklch(0.717 0.148 260 / 0.7);
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.28), 0 0 0 3px oklch(0.656 0.17 260 / 0.22);
}
.label, .field-label { color: var(--rd-text-2); }

/* buttons: the redesign's lit blue-to-violet, glass for the quiet one */
.btn { border-radius: 14px; font-weight: 600; }
.btn-primary, .btn-gradient {
  background: linear-gradient(160deg in oklch, #5b9dff, #8b6ae8);
  color: #fff;
  box-shadow: 0 10px 18px rgb(79 142 247 / 0.35), 0 2px 4px rgb(0 0 0 / 0.35), inset 0 1px 1px rgb(255 255 255 / 0.55), inset 0 -2px 3px rgb(0 0 0 / 0.25);
}
.btn-secondary {
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.16); color: var(--rd-text);
  box-shadow: var(--rd-depth-chip);
}
.btn-danger {
  background: linear-gradient(160deg in oklch, oklch(0.66 0.19 25), oklch(0.56 0.19 15)) !important;
  box-shadow: 0 8px 16px oklch(0.64 0.19 25 / 0.3), inset 0 1px 1px rgb(255 255 255 / 0.4), inset 0 -2px 3px rgb(0 0 0 / 0.25);
}

/* status badges: 10px corners, lit edge, OKLCH state colours */
.badge { border-radius: 10px; font-weight: 600; box-shadow: var(--rd-depth-chip); }
.badge-active { color: var(--rd-ok); background: oklch(0.764 0.168 159.8 / 0.12); border: 1px solid oklch(0.764 0.168 159.8 / 0.32); }
.badge-warning, .badge-expiring { color: var(--rd-warn); background: oklch(0.764 0.154 70.8 / 0.12); border: 1px solid oklch(0.764 0.154 70.8 / 0.34); }
.badge-danger, .badge-expired { color: oklch(0.78 0.13 25); background: oklch(0.64 0.19 25 / 0.14); border: 1px solid oklch(0.64 0.19 25 / 0.36); }
.badge-info { color: oklch(0.86 0.06 260); background: rgb(79 142 247 / 0.12); border: 1px solid rgb(79 142 247 / 0.3); }
/* list rows on older pages: the same see-through glass, softer */
.card-list-item { background: var(--rd-glass), rgb(17 24 39 / 0.11); border: 1px solid rgb(255 255 255 / 0.09); border-radius: 18px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.10), inset 0 -1px 0 rgb(0 0 0 / 0.3), 0 8px 20px rgb(0 0 0 / 0.28); }
/* the older segmented control: glass tray, the app's lit blue-to-violet pill */
.seg { border-radius: 16px; padding: 5px; background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.10);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), inset 0 -1px 0 rgb(0 0 0 / 0.2); }
.seg__item { border-radius: 11px; color: rgb(255 255 255 / 0.5); font-weight: 600; }
.seg__item.is-on { color: #fff;
  background: linear-gradient(135deg in oklch, oklch(0.72 0.13 230 / 0.30), oklch(0.58 0.19 275 / 0.24), oklch(0.55 0.22 295 / 0.30));
  border: 1px solid rgb(56 189 248 / 0.32); box-shadow: 0 4px 20px rgb(56 189 248 / 0.22), inset 0 1px 0 rgb(255 255 255 / 0.18); }

/* ── top bar: page title in place of the wordmark on tab pages ── */
.topbar-title {
  font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2;
  color: var(--rd-text); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rd-page { display: flex; flex-direction: column; gap: 20px; padding-bottom: 8px; }
.rd-sub { font-size: 14px; color: var(--rd-text-2); margin: 2px 2px 0; }

/* ── glass card with depth ── */
.rd-g {
  position: relative; isolation: isolate;
  background: var(--rd-glass), var(--rd-veil);
  border: 1px solid rgb(255 255 255 / 0.10);
  border-radius: var(--rd-r);
  backdrop-filter: var(--rd-blur); -webkit-backdrop-filter: var(--rd-blur);
  box-shadow: var(--rd-depth);
}
/* Default padding at zero specificity: a page's own padding (p-3, py-12, an
   inline style) wins, so cards moved over from the old classes keep theirs. */
:where(.rd-g) { padding: var(--rd-pad); }
.rd-g::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.06), transparent 40%, rgb(0 0 0 / 0.14));
}
.rd-g.flush { padding: 0; overflow: hidden; }
.rd-inner {
  background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: calc(var(--rd-r) - 16px); padding: 10px 14px; min-width: 0;
}
.rd-kv span { display: block; font-size: 12px; color: var(--rd-text-2); }
.rd-kv b { display: block; font-size: 16px; font-weight: 500; color: var(--rd-text); overflow-wrap: anywhere; }
.rd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.rd-label {
  font-size: 13px; color: var(--rd-text-2); margin: 6px 4px 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.rd-label a, .rd-label button { color: var(--rd-sky); font-size: 13px; background: none; border: 0; padding: 0; }

.rd-flag { width: 24px; height: 17px; border-radius: 3px; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12); }
.rd-flag-emoji { font-size: 20px; line-height: 1; flex-shrink: 0; }

/* ── pills: 10px corners, never fully round ── */
.rd-pill {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  font-size: 12px; font-weight: 600; line-height: 1.2; padding: 4px 10px; border-radius: 10px;
  color: oklch(0.86 0.06 260); background: rgb(79 142 247 / 0.12); border: 1px solid rgb(79 142 247 / 0.3);
  box-shadow: var(--rd-depth-chip); white-space: nowrap;
}
.rd-pill.here   { color: var(--rd-ok);   background: oklch(0.764 0.168 159.8 / 0.12); border-color: oklch(0.764 0.168 159.8 / 0.32); }
.rd-pill.warn   { color: var(--rd-warn); background: oklch(0.764 0.154 70.8 / 0.12);  border-color: oklch(0.764 0.154 70.8 / 0.34); }
.rd-pill.danger { color: oklch(0.78 0.13 25); background: oklch(0.64 0.19 25 / 0.14); border-color: oklch(0.64 0.19 25 / 0.36); }
.rd-pill.muted  { color: var(--rd-text-2); background: rgb(255 255 255 / 0.05); border-color: var(--rd-edge); }
.rd-pill.pro    { color: oklch(0.85 0.09 295); background: oklch(0.62 0.17 295 / 0.16); border-color: oklch(0.62 0.17 295 / 0.36); }

.rd-info {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.18);
  display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--rd-text-2);
  background: none; padding: 0; cursor: pointer; flex-shrink: 0;
  min-height: 0; min-width: 0; line-height: 1; align-self: center;
}

/* ── sliding pill (the app's own: glass tray, oklch blue-to-purple, glow, lit top edge) ── */
.rd-seg {
  --n: 3; --i: 0;
  position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr);
  padding: 5px; gap: 0; border-radius: 16px;
  background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.10);
  backdrop-filter: var(--rd-blur); -webkit-backdrop-filter: var(--rd-blur);
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.4), inset 0 1px 0 rgb(255 255 255 / 0.1), inset 0 -1px 0 rgb(0 0 0 / 0.2);
}
.rd-seg__glow {
  position: absolute; top: 5px; bottom: 5px; left: 5px;
  width: calc((100% - 10px) / var(--n)); border-radius: 11px; pointer-events: none;
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.42s cubic-bezier(.2,.8,.2,1);
  background: linear-gradient(135deg in oklch, oklch(0.72 0.13 230 / 0.30), oklch(0.58 0.19 275 / 0.24), oklch(0.55 0.22 295 / 0.30));
  border: 1px solid rgb(56 189 248 / 0.32);
  box-shadow: 0 4px 20px rgb(56 189 248 / 0.22), inset 0 1px 0 rgb(255 255 255 / 0.18);
}
.rd-seg__glow::after {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.55), transparent);
}
.rd-seg__item {
  position: relative; z-index: 1; min-width: 0; min-height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 14px; font-weight: 600; color: rgb(255 255 255 / 0.42);
  background: none; border: 0; border-radius: 11px; padding: 6px 4px; cursor: pointer;
  text-decoration: none; transition: color 0.3s ease;
}
.rd-seg__item svg { width: 18px; height: 18px; }
.rd-seg__item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rd-seg__item.is-on { color: #fff; }
.rd-seg.words .rd-seg__item { font-size: 11.5px; font-weight: 600; min-height: 52px; }
@media (prefers-reduced-motion: reduce) { .rd-seg__glow { transition: none; } }

/* ── chips row (filters) ── */
.rd-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.rd-chips::-webkit-scrollbar { display: none; }
.rd-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--rd-text-2);
  padding: 7px 13px; border-radius: 10px; background: rgb(255 255 255 / 0.05); border: 1px solid var(--rd-edge);
  box-shadow: var(--rd-depth-chip); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.rd-chip.is-on { color: #fff; background: rgb(79 142 247 / 0.22); border-color: rgb(79 142 247 / 0.5); }
.rd-chip i, .rd-chip svg { color: var(--rd-sky); }
/* A fixed set of actions that must all show (Trips: Add trip / Scan ticket / Scan notes):
   no scroll, no fade, chips share the width so nothing looks cut off (Drew, 24 Nov 2026). */
.rd-chips.rd-chips--fit { overflow: visible; -webkit-mask-image: none; mask-image: none; gap: 6px; padding: 2px 0 4px; }
.rd-chips--fit .rd-chip { flex: 1 1 0; min-width: 0; justify-content: center; padding: 8px 6px; gap: 5px; font-size: 13.5px; }

/* ── flight path (start, plane at today, end in orange) ── */
.rd-route { position: relative; height: 58px; margin: 18px 4px 0; --p: 0.5; }
.rd-route__track { position: absolute; left: 6px; right: 6px; top: 15px; height: 2px;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.22) 0 5px, transparent 5px 11px); }
.rd-route__done { position: absolute; left: 6px; top: 15px; height: 2px; border-radius: 2px;
  width: calc((100% - 12px) * var(--p));
  background: linear-gradient(90deg, var(--rd-accent), var(--rd-cyan));
  background: linear-gradient(90deg in oklch, var(--rd-accent), var(--rd-cyan));
  box-shadow: var(--rd-depth-bar); }
.rd-route__dot { position: absolute; top: 11px; width: 10px; height: 10px; border-radius: 50%; }
.rd-route__dot.a { left: 1px; background: var(--rd-accent); }
.rd-route__dot.b { right: 1px; background: var(--rd-warn); box-shadow: 0 0 10px oklch(0.764 0.154 70.8 / 0.6); }
.rd-route__plane { position: absolute; top: 2px; width: 28px; height: 28px; margin-left: -14px;
  left: calc(6px + (100% - 12px) * var(--p));
  display: grid; place-items: center; color: #d6eeff; filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.5)); }
.rd-route__plane svg { width: 20px; height: 20px; }
.rd-route__t { position: absolute; top: 34px; font-size: 12px; color: var(--rd-text-2); white-space: nowrap; }
.rd-route__t b { color: var(--rd-text); font-weight: 500; font-size: 13px; }
.rd-route__t.r { right: 0; text-align: right; }
.rd-route__t.r em { font-style: normal; color: var(--rd-warn); font-weight: 600; }
.rd-route.tall .rd-route__t b { display: block; font-size: 14px; margin-top: 2px; }

/* ── here-now ring ── */
.rd-ringbox { position: relative; width: 220px; height: 220px; margin: 18px auto 0; max-width: 100%; }
.rd-ringbox svg { position: absolute; inset: 0; width: 100%; height: 100%;
  filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.45)) drop-shadow(0 0 10px rgb(127 209 255 / 0.15)); }
.rd-ringtxt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rd-ringtxt b { font-size: 64px; font-weight: 200; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--rd-text); }
.rd-ringtxt span { font-size: 13px; color: var(--rd-text-2); margin-top: 6px; }
.rd-ringtxt small { font-size: 12px; color: var(--rd-text-3); margin-top: 2px; }
.rd-verdict { text-align: center; font-size: 15px; margin-top: 14px; color: var(--rd-ok); font-weight: 500; }
.rd-verdict.warn { color: var(--rd-warn); }
.rd-verdict.danger { color: oklch(0.74 0.16 25); }

.rd-here { border-color: oklch(0.764 0.168 159.8 / 0.28);
  background: radial-gradient(70% 50% at 50% 38%, rgb(79 142 247 / 0.10), transparent 70%), var(--rd-glass), var(--rd-veil);
  padding-bottom: 0; }
.rd-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rd-head h3 { font-size: 20px; font-weight: 600; flex: 1; min-width: 0; margin: 0; color: var(--rd-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-head small { display: block; font-size: 13px; font-weight: 400; color: var(--rd-text-2); }

.rd-leave { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: calc(var(--rd-r) - 8px);
  background: linear-gradient(120deg in oklch, oklch(0.764 0.154 70.8 / 0.16), oklch(0.764 0.154 70.8 / 0.04));
  border: 1px solid oklch(0.764 0.154 70.8 / 0.35); box-shadow: var(--rd-depth-chip); }
.rd-leave span { display: block; font-size: 12px; color: oklch(0.85 0.09 75); }
.rd-leave b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin-top: 2px; color: var(--rd-text); }
.rd-leave .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  color: var(--rd-warn); background: oklch(0.764 0.154 70.8 / 0.14); }
.rd-leave.danger { background: linear-gradient(120deg in oklch, oklch(0.64 0.19 25 / 0.2), oklch(0.64 0.19 25 / 0.05)); border-color: oklch(0.64 0.19 25 / 0.45); }
.rd-leave.danger span, .rd-leave.danger .ic { color: oklch(0.78 0.13 25); }
.rd-why { margin-top: 12px; font-size: 14px; color: var(--rd-text-2); line-height: 1.5; }
.rd-why b { color: var(--rd-text); font-weight: 500; }
details.rd-more { margin-top: 10px; }
details.rd-more > summary { list-style: none; cursor: pointer; font-size: 14px; color: var(--rd-sky);
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
details.rd-more > summary::-webkit-details-marker { display: none; }
details.rd-more > summary svg { transition: transform 0.2s; }
details.rd-more[open] > summary svg { transform: rotate(180deg); }
details.rd-more .rd-more__body { font-size: 14px; color: var(--rd-text-2); line-height: 1.55; margin-top: 8px; }
details.rd-more .rd-more__body b { color: var(--rd-text); font-weight: 500; }
details.rd-more .rd-more__body p + p { margin-top: 6px; }

.rd-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rd-line); margin: 20px calc(-1 * var(--rd-pad)) 0; }
.rd-stats > div { padding: 14px 4px 16px; text-align: center; position: relative; min-width: 0; }
.rd-stats > div + div::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--rd-line); }
.rd-stats b { display: block; font-size: 20px; font-weight: 500; color: var(--rd-text); }
.rd-stats span { font-size: 12px; color: var(--rd-text-2); }

/* trips that count */
.rd-trips { margin: 18px calc(-1 * var(--rd-pad)) 0; border-top: 1px solid var(--rd-line); padding: 12px var(--rd-pad) 8px; }
.rd-trips h4 { font-size: 13px; font-weight: 400; color: var(--rd-text-2); display: flex; justify-content: space-between; margin: 0 0 4px; }
.rd-tp { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.rd-tp + .rd-tp { border-top: 1px solid var(--rd-line); }
.rd-tp .d { width: 8px; height: 8px; border-radius: 50%; background: var(--rd-sky); }
.rd-tp .d.now { background: var(--rd-ok); box-shadow: 0 0 0 4px oklch(0.764 0.168 159.8 / 0.18); }
.rd-tp b { font-size: 15px; font-weight: 500; color: var(--rd-text); }
.rd-tp small { display: block; font-size: 12px; color: var(--rd-text-2); margin-top: 1px; }
.rd-tp .n { font-size: 15px; font-weight: 500; color: var(--rd-sky); text-align: right; }
.rd-tp.old { opacity: 0.45; }
.rd-tp.old .d { background: var(--rd-text-2); }
.rd-tp.old .n { color: var(--rd-text-2); }

/* ── header pass (Home, option C) ── */
.rd-hello .date { font-size: 13px; color: var(--rd-text-2); }
.rd-hello h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.025em; margin: 4px 0 0; color: var(--rd-text); }
.rd-pass { display: flex; align-items: center; gap: 14px; padding: 16px 18px; overflow: hidden; text-decoration: none; }
.rd-pass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg in oklch, transparent 30%, rgb(120 200 255 / 0.10) 45%, rgb(190 140 255 / 0.10) 55%, transparent 70%); }
/* Passport flags: the flags themselves, no ring or disc behind them (Drew 18 Nov). */
.rd-fl2 { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.rd-fl2 > * { font-size: 34px; line-height: 1; filter: drop-shadow(0 3px 6px rgb(0 0 0 / 0.45)); }
.rd-pass .who { flex: 1; min-width: 0; }
.rd-pass .who b { display: block; font-size: 17px; font-weight: 600; color: var(--rd-text); }
.rd-pass .who span { display: block; font-size: 13px; color: var(--rd-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-pass .nums { display: flex; flex-direction: column; gap: 4px; text-align: right; font-size: 13px; color: var(--rd-text-2); flex-shrink: 0; }
.rd-pass .nums b { color: var(--rd-text); font-size: 15px; font-weight: 600; margin-right: 3px; }

/* ── wallet: tinted stack, tap = forward, tap again = full visa ── */
.rd-wallet { position: relative; display: grid; }
.rd-wc { --h: 260; grid-area: 1 / 1; position: relative; border-radius: var(--rd-r); padding: 16px;
  border: 1px solid oklch(0.72 0.10 var(--h) / 0.38);
  background: linear-gradient(150deg in oklch, oklch(0.50 0.11 var(--h) / 0.26), oklch(0.30 0.06 var(--h) / 0.10) 60%, transparent), var(--rd-glass), oklch(0.21 0.03 265 / 0.16);
  backdrop-filter: var(--rd-blur); -webkit-backdrop-filter: var(--rd-blur);
  box-shadow: var(--rd-depth); transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.3s; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.rd-wc .h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rd-wc .h b { font-size: 17px; font-weight: 600; flex: 1; min-width: 0; color: var(--rd-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-wc .h .d { font-size: 15px; font-weight: 500; color: oklch(0.86 0.08 var(--h)); white-space: nowrap; }
.rd-wc .rd-pill { color: oklch(0.88 0.08 var(--h)); background: oklch(0.6 0.1 var(--h) / 0.2); border-color: oklch(0.72 0.1 var(--h) / 0.4); }
.rd-wc .body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease; }
.rd-wc .body__in { overflow: hidden; min-height: 0; }
.rd-wc.is-front { border-color: oklch(0.72 0.10 var(--h) / 0.5);
  background: linear-gradient(150deg in oklch, oklch(0.52 0.12 var(--h) / 0.30), oklch(0.30 0.06 var(--h) / 0.12) 65%, transparent), var(--rd-glass), oklch(0.29 0.04 265 / 0.16); }
.rd-wc.is-front .body { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.35s ease 0.1s; }
.rd-wc.is-front .h .d { display: none; }
.rd-wallet-list { display: flex; flex-direction: column; }
.rd-wallet-list .rd-wc { grid-area: auto; }
.rd-wallet-list .rd-wc + .rd-wc { margin-top: -18px; }
.rd-wallet-list .rd-wc:not(.is-front) { padding-bottom: 30px; }
.rd-wallet-list .rd-wc.is-front { z-index: 2; margin-bottom: 0; }
.rd-wallet-list .rd-wc.is-front + .rd-wc { margin-top: 10px; }
/* Wallet depth as in design v4: cards further back sit narrower (.94, then .97). */
.rd-wallet-list .rd-wc:not(.is-front) { transform: scale(0.94); transform-origin: 50% 0; }
.rd-wallet-list .rd-wc:has(+ .rd-wc.is-front) { transform: scale(0.97); }
.rd-bignum { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.rd-bignum b { font-size: 46px; font-weight: 200; letter-spacing: -0.04em; line-height: 1; color: var(--rd-text); font-variant-numeric: tabular-nums; }
.rd-bignum span { font-size: 15px; color: var(--rd-text-2); }
.rd-full { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rd-line); }
.rd-full summary { list-style: none; cursor: pointer; font-size: 14px; color: var(--rd-sky); }
.rd-full summary::-webkit-details-marker { display: none; }

/* ── list rows ── */
.rd-lr { display: flex; align-items: center; gap: 12px; padding: 12px 16px; position: relative; text-decoration: none; color: inherit; min-height: 56px; }
.rd-lr + .rd-lr::before { content: ""; position: absolute; top: 0; left: 52px; right: 16px; height: 1px; background: var(--rd-line); }
.rd-lr .t { flex: 1; min-width: 0; }
.rd-lr .t b { display: block; font-size: 16px; font-weight: 500; color: var(--rd-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-lr .t span { display: block; font-size: 13px; color: var(--rd-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-lr .v { font-size: 16px; font-weight: 500; color: var(--rd-sky); text-align: right; flex-shrink: 0; }
.rd-lr .v small { display: block; font-size: 11px; color: var(--rd-text-2); font-weight: 400; }
.rd-lr .chev { color: var(--rd-text-3); flex-shrink: 0; }

/* ── tax bars toward each country's own limit ── */
.rd-taxhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rd-taxhead b { font-size: 17px; font-weight: 600; color: var(--rd-text); display: inline-flex; align-items: center; gap: 6px; }
.rd-tr { display: grid; grid-template-columns: 24px 1fr 72px; gap: 10px; align-items: center; margin-top: 14px; }
.rd-tr .bar { height: 10px; border-radius: 5px; background: rgb(255 255 255 / 0.06); position: relative; overflow: hidden;
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.45), inset 0 -1px 0 rgb(255 255 255 / 0.05); }
.rd-tr .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; box-shadow: var(--rd-depth-bar);
  background: linear-gradient(90deg in oklch, var(--rd-accent), var(--rd-cyan)); }
.rd-tr .bar i.close { background: linear-gradient(90deg in oklch, var(--rd-warn), oklch(0.80 0.15 85)); }
.rd-tr .bar i.over { background: linear-gradient(90deg in oklch, var(--rd-warn), var(--rd-danger)); }
.rd-tr .n { font-size: 15px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; color: var(--rd-text); }
.rd-tr .n small { font-size: 12px; color: var(--rd-text-2); font-weight: 400; }
.rd-taxnote { font-size: 14px; margin-top: 16px; color: var(--rd-text-2); line-height: 1.45; }
.rd-taxnote em { font-style: normal; color: var(--rd-warn); font-weight: 600; }

/* ── locked (free plan) ── */
.rd-locked { position: relative; }
.rd-locked > .rd-blur { filter: blur(7px); opacity: 0.55; pointer-events: none; user-select: none; }
.rd-lockcard { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(300px, 88%);
  text-align: center; z-index: 2; }
.rd-lockcard p { font-size: 14px; color: var(--rd-text-2); margin: 6px 0 14px; line-height: 1.45; }
.rd-lockcard b { font-size: 16px; color: var(--rd-text); }

/* ── buttons ── */
.rd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 14px; font-size: 16px; font-weight: 600; color: #fff; border: 0; cursor: pointer; text-decoration: none;
  background: linear-gradient(160deg in oklch, #5b9dff, #8b6ae8);
  box-shadow: 0 10px 18px rgb(79 142 247 / 0.45), 0 2px 4px rgb(0 0 0 / 0.35), inset 0 1px 1px rgb(255 255 255 / 0.55), inset 0 -2px 3px rgb(0 0 0 / 0.25); }
.rd-btn.ghost { background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.16); box-shadow: var(--rd-depth-chip); }
.rd-btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.rd-btn.rd-btn--wide { width: 100%; }
.rd-dash { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 16px;
  border: 1px dashed rgb(127 209 255 / 0.4); color: var(--rd-sky); font-size: 15px; font-weight: 500; background: rgb(79 142 247 / 0.05);
  cursor: pointer; width: 100%; }

/* ── quick access (edge fade) ── */
.rd-qa { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.rd-qa::-webkit-scrollbar { display: none; }
.rd-qa a { flex: none; display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--rd-text);
  padding: 9px 13px; border-radius: 12px; background: rgb(255 255 255 / 0.05); border: 1px solid var(--rd-edge);
  box-shadow: var(--rd-depth-chip); text-decoration: none; }
.rd-qa svg { color: var(--rd-sky); width: 16px; height: 16px; }

details.rd-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; color: var(--rd-text-2); min-height: 24px; }
details.rd-fold > summary::-webkit-details-marker { display: none; }
details.rd-fold > summary b { flex: 1; font-weight: 500; font-size: 15px; }
details.rd-fold > summary .chev { transition: transform 0.2s; }
details.rd-fold[open] > summary .chev { transform: rotate(180deg); }

/* ── (+) in the nav and its menu ── */
.nav-item.nav-plus { color: #fff; }
.nav-item.nav-plus .nav-plus__btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg in oklch, #5b9dff, #4f8ef7);
  box-shadow: 0 6px 18px rgb(79 142 247 / 0.45), inset 0 1px 1px rgb(255 255 255 / 0.5), inset 0 -2px 3px rgb(0 0 0 / 0.25);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1); }
.nav-item.nav-plus .nav-plus__btn svg { width: 22px; height: 22px; stroke: #fff; transform: none !important; }
.nav-item.nav-plus[aria-expanded="true"] .nav-plus__btn { transform: rotate(45deg); }
.nav-item.nav-plus span.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rd-plusmenu-scrim { position: fixed; inset: 0; z-index: 9998; background: rgb(3 6 14 / 0.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rd-plusmenu { position: fixed; left: calc(16px + var(--safe-l)); right: calc(16px + var(--safe-r)); max-width: 420px; margin: 0 auto; z-index: 10000;
  bottom: calc(var(--nav-h) + 16px); padding: 8px; }
.rd-plusmenu .rd-lr { border-radius: calc(var(--rd-r) - 8px); padding: 12px; }
.rd-plusmenu .rd-lr + .rd-lr::before { left: 60px; }
.rd-plusmenu .rd-lr:active { background: rgb(255 255 255 / 0.05); }
.rd-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: rgb(79 142 247 / 0.14); color: var(--rd-sky); box-shadow: var(--rd-depth-chip); }
.rd-ico svg { width: 20px; height: 20px; }

/* ── Travel Wrapped pop-up: centred, equal buttons ── */
.rd-scrim { position: fixed; inset: 0; z-index: 10000; background: rgb(3 6 14 / 0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.rd-sheet { width: 100%; max-width: 380px; border-radius: 36px; padding: 44px 24px 24px; text-align: center; position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(80% 60% at 50% 0%, rgb(140 170 255 / 0.35), transparent 70%), linear-gradient(165deg in oklch, rgb(61 111 214 / 0.95), rgb(76 58 160 / 0.95));
  border: 1px solid rgb(255 255 255 / 0.22); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 30px 80px rgb(0 0 0 / 0.5); }
.rd-sheet .x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; color: #fff;
  background: rgb(255 255 255 / 0.14); display: grid; place-items: center; cursor: pointer; }
.rd-sheet .spark { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto; background: rgb(255 255 255 / 0.14);
  border: 1px solid rgb(255 255 255 / 0.2); display: grid; place-items: center; }
.rd-sheet h3 { font-size: 24px; font-weight: 600; margin: 18px 0 0; letter-spacing: -0.01em; }
.rd-sheet p { font-size: 15px; color: rgb(255 255 255 / 0.82); margin: 8px auto 0; line-height: 1.45; max-width: 270px; }
.rd-sheet .stats2 { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; padding: 14px 0; border-radius: 16px; background: rgb(0 0 0 / 0.14); }
.rd-sheet .stats2 div + div { border-left: 1px solid rgb(255 255 255 / 0.15); }
.rd-sheet .stats2 b { display: block; font-size: 26px; font-weight: 300; line-height: 1.1; }
.rd-sheet .stats2 span { font-size: 12px; color: rgb(255 255 255 / 0.75); }
.rd-sheet .btns { display: grid; gap: 10px; margin-top: 22px; }
.rd-sheet .btns a, .rd-sheet .btns button { min-height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; width: 100%; text-decoration: none; cursor: pointer; }
.rd-sheet .btns .w { background: #fff; color: #1d2d5c; border: 0; }
.rd-sheet .btns .g { background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.2); color: #fff; }

/* ── photos: never a straight cut edge, fade 0 to 100 to 0 ── */
.rd-photo-fade {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
}

/* ── toggles (3D) ── */
.rd-toggle { position: relative; width: 51px; height: 31px; flex-shrink: 0; display: inline-block; }
.rd-toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.rd-toggle i { position: absolute; inset: 0; border-radius: 999px; background: rgb(255 255 255 / 0.12);
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.45), inset 0 -1px 0 rgb(255 255 255 / 0.06); transition: background 0.25s; }
.rd-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: linear-gradient(180deg in oklch, #fff, #dfe6f2); box-shadow: 0 3px 8px rgb(0 0 0 / 0.4), inset 0 -1px 1px rgb(0 0 0 / 0.15);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1); }
.rd-toggle input:checked + i { background: linear-gradient(160deg in oklch, #5b9dff, #8b6ae8);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.4), inset 0 -2px 3px rgb(0 0 0 / 0.25), 0 4px 12px rgb(79 142 247 / 0.35); }
.rd-toggle input:checked + i::after { transform: translateX(20px); }
.rd-toggle input:focus-visible + i { outline: 2px solid var(--rd-sky); outline-offset: 2px; }

/* ── coloured 3D icon tiles (settings rows) ── */
.rd-tile { --h: 260; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; color: #fff;
  background: linear-gradient(160deg in oklch, oklch(0.72 0.15 var(--h)), oklch(0.52 0.16 var(--h)));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.45), inset 0 -2px 3px rgb(0 0 0 / 0.25), 0 3px 8px rgb(0 0 0 / 0.35); }
.rd-tile svg { width: 18px; height: 18px; }
.rd-group { padding: 0; overflow: hidden; }
.rd-group .rd-lr + .rd-lr::before { left: 60px; }
.rd-group .rd-lr { min-height: 52px; }
.rd-group-title { font-size: 13px; color: var(--rd-text-2); margin: 6px 4px -10px; }

/* ── journey line (Travel > Trips) ── */
.rd-journey { position: relative; padding-left: 28px; }
.rd-journey::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 18px; width: 2px;
  background: repeating-linear-gradient(180deg, rgb(127 209 255 / 0.35) 0 4px, transparent 4px 9px); }
.rd-journey .m { font-size: 13px; color: var(--rd-text-2); margin: 16px 0 8px; }
.rd-journey .m:first-child { margin-top: 0; }
.rd-jt { position: relative; margin-bottom: 10px; padding: 14px 16px; display: block; text-decoration: none; color: inherit; }
.rd-jt::after { content: ""; position: absolute; left: -26px; top: 22px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--rd-sky); background: var(--rd-bg); }
.rd-jt.now::after { background: var(--rd-ok); border-color: var(--rd-ok); box-shadow: 0 0 0 5px oklch(0.764 0.168 159.8 / 0.2); }
.rd-jt.next::after { border-style: dashed; }
.rd-jt .top { display: flex; align-items: center; gap: 10px; }
.rd-jt .top b { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; color: var(--rd-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-jt .top .n { font-size: 15px; font-weight: 500; color: var(--rd-sky); white-space: nowrap; }
.rd-jt.now .top .n { color: var(--rd-ok); }
.rd-jt .dates { font-size: 14px; color: var(--rd-text-2); margin: 3px 0 0 34px; }
.rd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 34px; }
.rd-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--rd-text-2); padding: 4px 8px;
  border-radius: 8px; background: rgb(255 255 255 / 0.04); border: 1px solid var(--rd-edge); }
.rd-tag svg { width: 12px; height: 12px; }

/* ── boarding pass with real cut-out notches ── */
.rd-bp { padding: 18px 20px; overflow: visible;
  -webkit-mask: radial-gradient(circle 10px at 0 64%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 64%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 10px at 0 64%, transparent 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 10px at 100% 64%, transparent 98%, #000) right / 51% 100% no-repeat; }
.rd-bp .row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--rd-text-2); }
.rd-bp .iata { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.rd-bp .iata b { font-size: 38px; font-weight: 300; letter-spacing: -0.02em; color: var(--rd-text); line-height: 1; }
.rd-bp .iata .mid { flex: 1; height: 2px; position: relative;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.3) 0 5px, transparent 5px 10px); }
.rd-bp .iata .mid svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 20px; height: 20px; color: var(--rd-cyan); }
.rd-bp .perf { border-top: 1px dashed rgb(255 255 255 / 0.2); margin: 18px -20px 0; }
.rd-bp .foot { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.rd-bp .foot div:last-child { text-align: right; }
.rd-bp .foot span { display: block; font-size: 12px; color: var(--rd-text-2); }
.rd-bp .foot b { font-size: 16px; font-weight: 500; color: var(--rd-text); }

/* ── visa card (Travel > Visas): tint by STATE, never by country ── */
.rd-vc { --h: 260; border-color: oklch(0.72 0.10 var(--h) / 0.36);
  background: linear-gradient(160deg in oklch, oklch(0.50 0.11 var(--h) / 0.28), oklch(0.30 0.06 var(--h) / 0.11) 60%, transparent), var(--rd-glass), var(--rd-veil); }
.rd-vc.st-here    { --h: 160; }
.rd-vc.st-ready   { --h: 260; }
.rd-vc.st-warn    { --h: 70; }
.rd-vc.st-danger  { --h: 25; }
.rd-vc.st-expired { --h: 260; opacity: 0.55; background: var(--rd-glass), var(--rd-veil); border-color: var(--rd-edge); }

/* ── empty state ── */
.rd-empty { text-align: center; padding: 28px 20px; }
.rd-empty b { display: block; font-size: 17px; color: var(--rd-text); }
.rd-empty p { font-size: 14px; color: var(--rd-text-2); margin: 6px 0 16px; }

@media (max-width: 360px) {
  :root { --rd-pad: 16px; }
  .rd-ringbox { width: 190px; height: 190px; }
  .rd-ringtxt b { font-size: 54px; }
  .rd-hello h1 { font-size: 26px; }
  .rd-bp .iata b { font-size: 30px; }
  .rd-seg.words .rd-seg__item { font-size: 10.5px; }
}

/* `hidden` must win over the display these components set, or a closed
   pop-up stays on screen (the Wrapped X did nothing until this rule). */
.rd-scrim[hidden], .rd-plusmenu[hidden], .rd-plusmenu-scrim[hidden],
.rd-full[hidden], [data-full-hint][hidden], .rd-page [hidden] { display: none !important; }

/* The full visa card opened inside a wallet card or Where you are now:
   no second card around it, the outer card already is one. */
/* Embedded full visa (Home: All details, wallet "tap again"). Drew 18 Nov: it
   was cropped. Zero padding + overflow hidden cut the first letter and the
   bottom bar, and the skin's blur drew a box. Now it sits open in its host card. */
[data-visa-full][data-embedded] { border: 0 !important; background: none !important; box-shadow: none !important;
  padding: 6px 4px 8px !important; overflow: visible !important; border-radius: 0 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
/* The glass shading layer too: with the radius at 0 it painted a square-cornered
   box inside the rounded host card (Drew, 27 Nov). */
[data-visa-full][data-embedded]::before { content: none; }

/* ── Settings: coloured 3D icon tiles on the grouped rows ── */
.list-row__icon.rd-tile { width: 30px; height: 30px; border-radius: 8px; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.list-row__icon.rd-tile svg { width: 17px; height: 17px; stroke: #fff; }
.list-row--danger .list-row__icon.rd-tile { color: #fff; }

/* ── 3D switches everywhere the app uses .apple-switch ── */
.apple-switch { box-shadow: inset 0 2px 4px rgb(0 0 0 / .45), inset 0 -1px 0 rgb(255 255 255 / .06); }
.apple-switch.on { background: linear-gradient(160deg in oklch, #5b9dff, #8b6ae8);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .4), inset 0 -2px 3px rgb(0 0 0 / .25), 0 4px 12px rgb(79 142 247 / .35); }
.apple-switch .knob { background: linear-gradient(180deg in oklch, #fff, #dfe6f2) !important;
  box-shadow: 0 3px 8px rgb(0 0 0 / .4), inset 0 -1px 1px rgb(0 0 0 / .15) !important; }

/* ── pick-a-time chips under a reminder ── */
.pref-row { flex-wrap: wrap; }
.rd-pickrow { flex-basis: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 12px; }
.rd-pickrow .rd-chip { justify-content: center; padding: 9px 4px; min-height: 40px; }
.rd-pickrow .rd-chip.is-on { background: linear-gradient(160deg in oklch, #5b9dff, #8b6ae8); border-color: transparent;
  box-shadow: 0 6px 14px rgb(79 142 247 / .35), inset 0 1px 1px rgb(255 255 255 / .45); }
.list-row--danger .list-row__icon.rd-tile { background: linear-gradient(160deg in oklch, oklch(0.72 0.15 var(--h)), oklch(0.52 0.16 var(--h))); }

/* Back cards in the wallet show name and days only (as designed); the pill
   lives on the front card. Keeps "Portugal" whole at 320px. */
.rd-wallet-list .rd-wc:not(.is-front) .rd-pill { display: none; }
.rd-head h3 small { white-space: normal; }

/* ── eclipse avatar: a rim of light, no grey card (Profile + Edit profile) ── */
.pf-eclipse { position: relative; text-align: center; padding: 8px 0 18px; }
.pf-glow { position: absolute; left: 50%; top: 10px; width: 260px; height: 260px; transform: translateX(-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, oklch(0.70 0.12 250 / .35), oklch(0.60 0.12 260 / .12) 55%, transparent 100%); }
.pf-avatar { position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 50%; margin: 18px auto 0; overflow: hidden;
  display: grid; place-items: center; background: #05080f; box-shadow: 0 0 0 2px oklch(0.85 0.08 240 / .9), 0 0 24px 6px oklch(0.70 0.14 240 / .55), 0 0 70px 18px oklch(0.60 0.14 250 / .3); }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-avatar span { font-size: 40px; font-weight: 600; color: var(--rd-text); }

/* ── Edit profile (settings account) ── */
.rd-form { display: flex; flex-direction: column; gap: 12px; }
.rd-form .rd-field span { display: block; font-size: 13px; color: var(--rd-text-2); margin: 0 2px 6px; }
.rd-photo-acts { position: relative; z-index: 1; display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.rd-photo-acts form { margin: 0; }
.rd-photo-acts .rd-pill { font-size: 13px; padding: 7px 14px; cursor: pointer; }
.rd-photo-acts .rd-pill.danger { font-family: inherit; }
.rd-hint { position: relative; z-index: 1; font-size: 12px; color: var(--rd-text-2); margin: 10px 0 0; }
.rd-rows { padding: 2px 0; }
.rd-rows .list-row { min-height: 56px; }
.rd-rows .list-row + .list-row::before { left: 16px; }

/* ── My passports (18 Nov 2026) ── */
.pp-list { display: flex; flex-direction: column; gap: 12px; }
.pp-card { --h: 350; display: flex; gap: 16px; align-items: stretch; padding: 16px; }
.pp-card.is-default { border-color: oklch(0.72 0.10 var(--h) / 0.5);
  background: linear-gradient(150deg in oklch, oklch(0.45 0.10 var(--h) / 0.35), transparent 60%), var(--rd-glass), var(--rd-veil); }
.pp-cover { position: relative; flex: 0 0 74px; height: 104px; border-radius: 10px; color: oklch(0.85 0.08 85);
  background: repeating-linear-gradient(135deg, rgb(255 255 255 / .025) 0 2px, transparent 2px 7px), linear-gradient(160deg in oklch, oklch(0.40 0.10 var(--h)), oklch(0.24 0.08 var(--h)));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), inset 0 -2px 4px rgb(0 0 0 / .35), 0 10px 20px rgb(0 0 0 / .45); }
.pp-cover .pp-flag { position: absolute; top: 6px; right: 7px; font-size: 14px; line-height: 1; }
.pp-cover .pp-crest { position: absolute; left: 50%; top: 34px; width: 26px; height: 26px; transform: translateX(-50%); }
.pp-cover .pp-word { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 7px; letter-spacing: .2em; color: rgb(255 255 255 / .6); }
.pp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pp-top h3 { flex: 1; min-width: 0; margin: 0; font-size: 18px; font-weight: 600; color: var(--rd-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-num { margin: 4px 0 0; font-size: 14px; color: var(--rd-text-2); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.pp-dates { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 2px; margin: 6px 0 0; font-size: 12px; color: var(--rd-text-2); }
.pp-acts { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.pp-acts form { margin: 0; }
.pp-acts form:first-child:has(.rd-btn) { margin-right: auto; }
.rd-iconbtn { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; flex-shrink: 0; cursor: pointer;
  color: var(--rd-text-2); background: rgb(255 255 255 / 0.06); border: 1px solid var(--rd-edge); box-shadow: var(--rd-depth-chip); padding: 0; }
.rd-iconbtn svg { width: 17px; height: 17px; }
.rd-iconbtn.danger { color: oklch(0.72 0.15 25); }
.pp-acts .rd-iconbtn:first-of-type { margin-left: auto; }
.pp-acts form + .rd-iconbtn { margin-left: 0; }
.pp-score { text-align: right; flex-shrink: 0; }
.pp-score b { display: block; font-size: 40px; font-weight: 200; letter-spacing: -0.04em; line-height: 1; color: var(--rd-text); font-variant-numeric: tabular-nums; }
.pp-score small { font-size: 11px; color: var(--rd-text-2); }
.pp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.pp-tiles .rd-inner { text-align: center; padding: 10px 6px; }
.pp-tiles b { display: block; font-size: 18px; font-weight: 600; color: var(--rd-text); white-space: nowrap; }
.pp-tiles span { font-size: 11px; color: var(--rd-text-2); }
.pp-mix { display: flex; gap: 2px; height: 10px; margin-top: 16px; border-radius: 5px; overflow: hidden;
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.45); }
.pp-mix i { display: block; height: 100%; box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.4), inset 0 -2px 3px rgb(0 0 0 / 0.25); }
.pp-mix .f, .pp-legend .f { background: var(--rd-ok); }
.pp-mix .a, .pp-legend .a { background: var(--rd-sky); }
.pp-mix .e, .pp-legend .e { background: var(--rd-violet); }
.pp-mix .r, .pp-legend .r { background: rgb(255 255 255 / 0.12); box-shadow: none; }
.pp-legend { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 6px; margin-top: 10px; font-size: 12px; color: var(--rd-text-2); }
.pp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pp-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pp-legend b { color: var(--rd-text); }
.pp-compare { border-top: 1px solid var(--rd-line); margin-top: 16px; padding-top: 14px; }
.pp-sub { font-size: 13px; color: var(--rd-text-2); margin: 0 0 4px; }
.pp-how { margin-top: 14px; font-size: 12px; color: var(--rd-text-2); }
.pp-how summary { cursor: pointer; color: var(--rd-sky); font-size: 13px; list-style: none; }
.pp-how summary::-webkit-details-marker { display: none; }
.pp-how p { margin: 8px 0 0; line-height: 1.5; }
.pp-scan { border-radius: 16px; padding: 14px; border: 1px dashed oklch(0.825 0.103 234.5 / 0.4); background: rgb(79 142 247 / 0.05); }
.pp-scan__head { display: flex; align-items: center; gap: 12px; }
.pp-scan__head b { display: block; font-size: 15px; font-weight: 600; color: var(--rd-text); }
.pp-scan__head span:not(.rd-tile) { display: block; font-size: 13px; color: var(--rd-text-2); }
.pp-scan__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pp-note { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4;
  color: var(--rd-text-2); background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.07); }
.pp-note.hidden { display: none; }
.pp-note.danger { color: oklch(0.78 0.13 25); background: oklch(0.64 0.19 25 / 0.10); border-color: oklch(0.64 0.19 25 / 0.3); }
.pp-note.ok { color: var(--rd-ok); background: oklch(0.764 0.168 159.8 / 0.10); border-color: oklch(0.764 0.168 159.8 / 0.3); }
.pp-note.warn { color: var(--rd-warn); background: oklch(0.764 0.154 70.8 / 0.10); border-color: oklch(0.764 0.154 70.8 / 0.3); }
.rd-drop { position: absolute; z-index: 50; left: 0; right: 0; margin-top: 4px; max-height: 240px; overflow-y: auto; border-radius: 14px;
  background: var(--rd-glass), oklch(0.21 0.03 265 / 0.96); border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.1); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.rd-drop__row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; color: var(--rd-text); font-size: 15px; }
.rd-drop__row:hover, .rd-drop__row:active { background: rgb(255 255 255 / 0.06); }
.pp-region { display: flex; align-items: center; gap: 8px; margin: 0 4px 12px; font-size: 16px; font-weight: 600; color: var(--rd-text); }
@media (max-width: 360px) { .pp-cover { flex-basis: 60px; height: 86px; } .pp-tiles b { font-size: 16px; } }
.pp-power .rd-head h3 { white-space: normal; font-size: 18px; line-height: 1.2; }

/* ── compact country chips: flag + short code (Drew 18 Nov: full names took too much room) ── */
.rd-ccs { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-cc { --c: var(--rd-sky); display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 7px; border-radius: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; line-height: 1; color: var(--c);
  background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.10); box-shadow: var(--rd-depth-chip); }
.rd-cc i { font-style: normal; font-size: 16px; letter-spacing: 0; }
.rd-cc.v { --c: var(--rd-ok); background: oklch(0.764 0.168 159.8 / 0.10); border-color: oklch(0.764 0.168 159.8 / 0.26); }
.rd-cc.l { --c: var(--rd-sky); background: oklch(0.717 0.148 260 / 0.10); border-color: oklch(0.717 0.148 260 / 0.28); }
.rd-cc.w { --c: oklch(0.80 0.12 295); background: oklch(0.62 0.17 295 / 0.12); border-color: oklch(0.62 0.17 295 / 0.30); }
/* narrow phones (320): passport names wrap instead of cutting, buttons stay one line, Home pass flags shrink */
.pp-top h3 { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.pp-acts .rd-btn { white-space: nowrap; padding: 0 12px; }
@media (max-width: 360px) {
  .rd-fl2 > * { font-size: 26px; }
  .rd-fl2 { gap: 2px; }
  .rd-pass { gap: 10px; padding: 14px; }
}

/* ── Where you are now: room to breathe (Drew 18 Nov: "looks too squeezed") ──
   The tall route's two-line dates are 42px high from top 34px, so the route
   box grows to hold them, and Leave by and the reason sit 20px apart. */
.rd-route.tall { height: 80px; }
.rd-here .rd-leave { margin-top: 20px; }
.rd-here .rd-leave + .rd-why, .rd-here .rd-leave ~ .rd-why { margin-top: 20px; }
.rd-here .rd-why + details, .rd-here .rd-why + .rd-full { margin-top: 14px; }

/* ── wallet press: the card sinks while held, springs back (Drew 18 Nov) ── */
.rd-wallet-list .rd-wc { transition: transform 0.35s cubic-bezier(.2,.8,.2,1), translate 0.32s cubic-bezier(.3,1.5,.5,1), box-shadow 0.25s, filter 0.2s; }
.rd-wallet-list .rd-wc.is-pressed { translate: 0 6px; filter: brightness(0.94);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), inset 0 -1px 0 rgb(0 0 0 / 0.35), 0 6px 14px rgb(0 0 0 / 0.35);
  transition: translate 0.12s ease-out, box-shadow 0.12s, filter 0.12s; }
@media (prefers-reduced-motion: reduce) { .rd-wallet-list .rd-wc, .rd-wallet-list .rd-wc.is-pressed { transition: none; } }

/* ── Edit visa and other form pages (18 Nov 2026) ── */
.ev-hero { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.ev-hero b { display: block; font-size: 20px; font-weight: 600; color: var(--rd-text); }
.ev-hero span:not(.rd-pill):not(.ev-flag) { display: block; font-size: 13px; color: var(--rd-text-2); margin-top: 2px; }
.ev-flag { font-size: 38px; line-height: 1; flex-shrink: 0; filter: drop-shadow(0 3px 6px rgb(0 0 0 / 0.45)); }
.ev-form { display: flex; flex-direction: column; gap: 20px; }
.ev-form .rd-form { gap: 16px; }
.ev-form .rd-label { margin-bottom: -12px; }
.ev-btns { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.ev-danger { display: flex; flex-direction: column; gap: 10px; }
.ev-danger .rd-btn { font-size: 15px; }
.ev-del { color: oklch(0.78 0.13 25); border-color: oklch(0.64 0.19 25 / 0.36); background: oklch(0.64 0.19 25 / 0.10); }
.rd-dialog-scrim { z-index: 10000; background: rgb(3 6 14 / 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 20px; }
.rd-dialog { width: 100%; max-width: 380px; background: var(--rd-glass), oklch(0.21 0.03 265 / 0.95); }
.rd-dialog__t { font-size: 19px; font-weight: 600; color: var(--rd-text); margin: 0; }
.rd-dialog__p { font-size: 15px; line-height: 1.5; color: var(--rd-text-2); margin: 8px 0 20px; }

/* ── parts the older pages were moved onto (18 Nov 2026) ── */
.rd-item { border-radius: 18px; padding: 14px 16px; }
:where(.rd-g) .rd-item, .rd-g .rd-g.rd-item { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 6px 14px rgb(0 0 0 / 0.25); }
.rd-t1 { color: var(--rd-text); }
.rd-t2 { color: var(--rd-text-2); }
.rd-t3 { color: oklch(0.60 0.03 255); }
.rd-t-danger { color: oklch(0.78 0.13 25); }
.rd-t-warn { color: var(--rd-warn); }
.rd-t-ok { color: var(--rd-ok); }
.rd-t-sky { color: var(--rd-sky); }
.rd-fill { background: rgb(255 255 255 / 0.07); }
.rd-fill-danger { background: linear-gradient(160deg in oklch, oklch(0.62 0.19 25), oklch(0.52 0.18 20)); color: #fff; }
.rd-tint-danger { background: oklch(0.64 0.19 25 / 0.14); }
.rd-tint-warn { background: oklch(0.764 0.154 70.8 / 0.14); }
.rd-tint-ok { background: oklch(0.764 0.168 159.8 / 0.14); }
.rd-tint-violet { background: oklch(0.62 0.17 295 / 0.16); }
.rd-tint-sky { background: oklch(0.717 0.148 260 / 0.16); }
.rd-dot-sky { background: var(--rd-sky); }
.rd-edge-c { border-color: var(--rd-edge); }

/* The label's pull-up only works inside the page's flex column (gap 20px).
   Anywhere else it slid the next card over the label (Drew 18 Nov: "Careful"
   hidden on Edit visa). */
.rd-page > .rd-label, .rd-page > * > .rd-label.rd-in-flow { margin-bottom: -8px; }

/* Wallet smoothness (Drew 18 Nov: "a bit jumpy"): the details open and close
   with the card (rows 0fr <-> 1fr), the stack padding eases, the pill fades in. */
.rd-wallet-list .rd-wc { transition: transform 0.4s cubic-bezier(.2,.8,.2,1), translate 0.32s cubic-bezier(.3,1.5,.5,1),
  padding 0.4s cubic-bezier(.2,.8,.2,1), margin 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, filter 0.2s, background 0.3s, border-color 0.3s; }
@keyframes rdFadeIn { from { opacity: 0; } to { opacity: 1; } }
.rd-wc.is-front .h .rd-pill, .rd-wc:not(.is-front) .h .d { animation: rdFadeIn 0.3s ease both; }
@media (prefers-reduced-motion: reduce) { .rd-wc .body, .rd-wc.is-front .body { transition: none; } .rd-wc .h .rd-pill, .rd-wc .h .d { animation: none; } }

/* ── Pop-ups (Drew, 18 Nov 2026: "is this an old page? make it elegant and organised").
   One look for every modal: dark scrim with a light blur, a glass panel with a lit
   top edge and soft drop shadow, a round glass back/close, sentence-case title with
   a soft subtitle, grouped glass rows, glass inputs, the app's gradient button.
   The panel is more solid than a section on purpose: it sits over content, so the
   text must stay readable; the scrim, not the panel, shows the stars. ── */
.rd-modal-scrim { position: fixed; inset: 0; z-index: 10000; padding: 20px; padding-top: max(20px, env(safe-area-inset-top));
  background: rgb(3 6 14 / 0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.rd-modal { position: relative; width: 100%; max-width: 460px; max-height: min(88dvh, 100%); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 28px; color: var(--rd-text);
  background: radial-gradient(120% 60% at 50% 0%, oklch(0.42 0.09 265 / 0.30), transparent 70%), var(--rd-glass), oklch(0.19 0.03 265 / 0.94);
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), inset 0 -1px 0 rgb(0 0 0 / 0.35), 0 24px 60px -12px rgb(0 0 0 / 0.7); }
.rd-modal__head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 4px; flex-shrink: 0; }
.rd-modal__titles { flex: 1; min-width: 0; }
.rd-modal__title { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.rd-modal__sub { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--rd-text-2); }
.rd-modal__btn, .btn-dismiss, .btn-dismiss-lg, .cal-nav-btn { width: 44px !important; height: 44px !important; min-width: 44px; border-radius: 50% !important;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0;
  border: 1px solid rgb(255 255 255 / 0.16) !important; color: rgb(255 255 255 / 0.85) !important; font-size: 20px; line-height: 1; cursor: pointer;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0.04)) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), inset 0 -1px 0 rgb(0 0 0 / 0.3), 0 6px 14px -6px rgb(0 0 0 / 0.6) !important;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: transform .15s ease; }
.rd-modal__btn:active, .btn-dismiss:active, .cal-nav-btn:active { transform: scale(0.92); }
.rd-modal__btn svg, .cal-nav-btn svg { width: 20px; height: 20px; }
.search-result-arrow, .chip-arrow svg { color: var(--rd-text-2); flex-shrink: 0; margin-left: auto; }
.rd-modal__body { flex: 1; overflow-y: auto; padding: 14px 20px 22px; }
.rd-modal__lead { font-size: 14px; line-height: 21px; color: var(--rd-text-2); margin: 0 0 16px; }
.rd-modal .search-section-label { font-size: 13px; color: var(--rd-text-2); margin: 18px 4px 8px; }
.rd-modal #defaultActions, .rd-modal .rd-modal__group { border-radius: 18px; overflow: hidden; border: 1px solid rgb(255 255 255 / 0.09);
  background: rgb(255 255 255 / 0.035); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06); }
.rd-modal #defaultActions .search-section-label { margin: 14px 16px 4px; }
.rd-modal .search-action-row, .rd-modal .date-quick-btn { padding: 12px 14px; border-radius: 0; min-height: 56px; }
.rd-modal .search-action-row + .search-action-row, .rd-modal .date-quick-btn + .date-quick-btn { border-top: 1px solid rgb(255 255 255 / 0.07); }
.rd-modal .search-action-icon, .rd-modal .date-quick-icon { width: 36px; height: 36px; border-radius: 10px; color: #fff;
  background: linear-gradient(160deg in oklch, oklch(0.62 0.15 265), oklch(0.48 0.17 285)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 4px 10px -4px rgb(0 0 0 / 0.6); }
.rd-modal .search-action-arrow { margin-left: auto; color: var(--rd-text-2); }
.rd-modal input[type=text], .rd-modal input[type=time], .rd-modal select, .rd-modal textarea, .rd-modal .input {
  background: rgb(255 255 255 / 0.06) !important; border: 1px solid rgb(255 255 255 / 0.12) !important; border-radius: 14px !important;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.25); color: #fff; }
.rd-modal input:focus, .rd-modal select:focus, .rd-modal textarea:focus { border-color: oklch(0.70 0.13 265 / 0.7) !important; outline: none; }
.rd-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.rd-steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; color: var(--rd-text); }
.rd-steps li span { width: 26px; height: 26px; min-width: 26px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #fff; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14); }
.rd-modal .rd-result { border-radius: 16px; padding: 14px 16px; background: oklch(0.55 0.10 230 / 0.10); border: 1px solid oklch(0.72 0.10 230 / 0.25); }
.rd-modal .rd-err { border-radius: 14px; padding: 12px 14px; font-size: 13px; color: #fca5a5; background: oklch(0.55 0.15 25 / 0.10); border: 1px solid oklch(0.65 0.15 25 / 0.3); }
.rd-modal .rd-link { background: none; border: 0; color: var(--rd-text-2); font-size: 14px; cursor: pointer; margin: 12px auto 0; display: block; }

.rd-modal__btn.rd-x-sm { width: 36px !important; height: 36px !important; min-width: 36px; }
.rd-modal__btn.rd-x-sm svg { width: 16px; height: 16px; }
/* Confirm dialogs (delete / unlink visa) wear the same pop-up panel. */
.rd-dialog { border-radius: 28px; border: 1px solid rgb(255 255 255 / 0.12);
  background: radial-gradient(120% 60% at 50% 0%, oklch(0.42 0.09 265 / 0.30), transparent 70%), var(--rd-glass), oklch(0.19 0.03 265 / 0.94);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), inset 0 -1px 0 rgb(0 0 0 / 0.35), 0 24px 60px -12px rgb(0 0 0 / 0.7); }

/* ---- 10 niche design hacks pass (28 Nov 2026) ---------------------------- */
/* Jumping to an anchor (or focusing a field with the keyboard) must not hide
   the target under the sticky glass header. */
html:has(body > header) { scroll-padding-top: calc(72px + env(safe-area-inset-top)); }

/* Validate on blur (static/js/form-ux.js): message under the field, red edge. */
.field-error { margin: 6px 2px 0; font-size: 13px; line-height: 1.35; color: var(--status-danger); text-align: left; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--status-danger) !important; }

/* Disable on submit: the busy button reads as working, not broken. */
button[aria-busy="true"], input[aria-busy="true"] { opacity: 0.6; cursor: progress; }

/* Bigger hit areas: small controls keep their look but take taps from at
   least a 44px box. The ::before is invisible, centred on the control, and
   never smaller than the control itself. Add .hit-44 to any small control. */
.hit-44, .rd-info, .rd-modal__btn.rd-x-sm { position: relative; }
.hit-44::before, .rd-info::before, .rd-modal__btn.rd-x-sm::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
}
