/* ymaplify — mobile redesign prototype styles
   Uses design-system tokens from styles.css (var(--coral), --font-display, …). */

.ym { position: absolute; inset: 0; overflow: hidden;
  font-family: var(--font-body), system-ui, sans-serif; color: var(--ink);
  -webkit-font-smoothing: antialiased; }
.ym * { box-sizing: border-box; }
.ym button { font-family: inherit; }

/* ============ MAP BACKDROP ============ */
.map {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 12%, #cfe0ea 0%, transparent 42%),
    radial-gradient(90% 80% at 12% 88%, #cbe2d4 0%, transparent 46%),
    radial-gradient(70% 60% at 90% 90%, #cfe0ea 0%, transparent 50%),
    #e8eee4;
}
.map::before { content: ""; position: absolute; inset: -20%;
  background-image:
    repeating-linear-gradient(0deg, rgba(120,130,120,.10) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(90deg, rgba(120,130,120,.10) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(28deg, rgba(120,130,120,.09) 0 1px, transparent 1px 120px);
  transform: rotate(-4deg); }
.map::after { content: ""; position: absolute; left: -10%; right: -10%; top: 44%; height: 90px;
  background: linear-gradient(90deg, transparent, #bcd7e6 20%, #a9cadd 55%, #bcd7e6 80%, transparent);
  border-radius: 50%; filter: blur(3px); transform: rotate(-10deg); opacity: .8; }
[data-theme="night"] .map { background:
  radial-gradient(120% 90% at 78% 12%, #1c2740 0%, transparent 42%),
  radial-gradient(90% 80% at 12% 88%, #16233a 0%, transparent 46%), #101725; }
[data-theme="night"] .map::before { background-image:
  repeating-linear-gradient(0deg, rgba(150,170,210,.06) 0 1px, transparent 1px 68px),
  repeating-linear-gradient(90deg, rgba(150,170,210,.06) 0 1px, transparent 1px 68px),
  repeating-linear-gradient(28deg, rgba(150,170,210,.05) 0 1px, transparent 1px 120px); }
[data-theme="night"] .map::after { background: linear-gradient(90deg, transparent, #1d3350 30%, #22405f 60%, transparent); opacity: .6; }

.pin { position: absolute; transform: translate(-50%, -100%); z-index: 2; filter: drop-shadow(0 4px 6px rgba(0,0,0,.28)); }
.pin i { font-size: 30px; color: var(--coral); }
.pin.friend i { color: #7B61FF; }
.pin.dot { width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid #fff;
  transform: translate(-50%,-50%); background: var(--coral); filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.pin.emoji .bub { width: 40px; height: 40px; border-radius: 50% 50% 50% 4px; background: var(--pc, var(--coral));
  display: grid; place-items: center; font-size: 20px; border: 2.5px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.3); }

/* ============ TOP BAR ============ */
.topbar { position: absolute; left: 12px; right: 12px; top: 60px; z-index: 20;
  display: flex; align-items: center; gap: 9px; background: var(--surface); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 9px 10px; }
.tb-logo { display: flex; align-items: center; flex: none; padding-left: 2px; }
.tb-logo img { width: 30px; height: 30px; }
.tb-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tb-trip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--coral-soft); background: #FFF1F1; color: var(--coral-hover); cursor: pointer;
  font-size: 13px; font-weight: 700; white-space: nowrap; max-width: 150px; }
[data-theme="night"] .tb-trip { background: rgba(255,90,95,.14); }
.tb-trip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-icon { flex: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 19px; }
[data-theme="night"] .tb-icon { background: var(--surface-muted); }
.tb-pfp { flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--me, #7FB23A);
  display: grid; place-items: center; font-size: 20px; cursor: pointer; border: none; }
.tb-pfp.guest { background: var(--surface-muted); border: 1px solid var(--border); color: var(--ink-2); font-size: 19px; }

/* ============ MAP CONTROLS ============ */
.mapctl { position: absolute; right: 14px; z-index: 15; display: flex; flex-direction: column; gap: 10px; }
.mapctl .btn { width: 46px; height: 46px; border-radius: 15px; background: var(--map-control-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--map-control-border);
  box-shadow: var(--shadow-md); display: grid; place-items: center; font-size: 21px; color: var(--ink); cursor: pointer; }

.help-fab { position: absolute; left: 14px; top: 74px; z-index: 15; width: 40px; height: 40px; border-radius: 999px;
  background: var(--map-control-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--map-control-border); box-shadow: var(--shadow-md); color: var(--ink-2);
  display: grid; place-items: center; font-size: 20px; cursor: pointer; }

/* ============ HOME BOTTOM (paste bar + guest banner) ============ */
.home-bottom { position: absolute; left: 12px; right: 12px; bottom: 102px; z-index: 18; display: flex; flex-direction: column; gap: 10px; }
.paste-bar { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); cursor: pointer; text-align: left; }
.paste-bar__ico { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-size: 21px; color: #fff; background: var(--brand-gradient); }
.paste-bar__txt { flex: 1; min-width: 0; }
.paste-bar__txt b { display: block; font-size: 14.5px; font-weight: 700; }
.paste-bar__txt span { font-size: 12px; color: var(--text-2); }
.paste-bar__go { flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 18px; }
[data-theme="night"] .paste-bar__go { background: var(--magic-deep); }

/* ============ BOTTOM NAV (Trip · Plan · [Y] · Social · Profile) ============ */
.botnav { position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 19; height: 74px; padding: 8px 8px 8px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 28px; box-shadow: 0 8px 28px -8px rgba(15,22,32,.28); }
.bn-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: none; background: none; cursor: pointer; padding: 6px 0; color: var(--ink-2); font-family: inherit; }
.bn-tab i { font-size: 23px; line-height: 1; }
.bn-tab span { font-size: 10.5px; font-weight: 700; letter-spacing: .01em; }
.bn-tab.on { color: var(--coral); }
.bn-tab:active { transform: scale(.94); }
.bn-av { width: 25px; height: 25px; border-radius: 999px; background: var(--me, #7FB23A); display: grid; place-items: center;
  font-size: 14px; border: 2px solid transparent; }
.bn-av.guest { background: var(--surface-muted); border: 1px solid var(--border); color: var(--ink-2); font-size: 14px; }
.bn-tab--pfp.on .bn-av { border-color: var(--coral); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--coral); }
.bn-hero { position: relative; justify-self: center; width: 62px; height: 62px; margin-top: -26px; border-radius: 999px; cursor: pointer;
  border: none; background: var(--brand-gradient); padding: 3px; display: grid; place-items: center;
  box-shadow: 0 10px 22px -8px rgba(0,0,0,.34), 0 2px 6px rgba(0,0,0,.12); }
.bn-hero__disc { width: 100%; height: 100%; border-radius: 999px; background: var(--surface); display: grid; place-items: center; }
.bn-hero img { width: 31px; height: 31px; object-fit: contain; display: block; transform: translateY(1px); }
.bn-hero:active { transform: scale(.93); }

/* ============ SOCIAL FEED ============ */
.feed { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.feed__av { width: 38px; height: 38px; border-radius: 999px; background: var(--me, #7FB23A); flex: none;
  display: grid; place-items: center; font-size: 19px; }

.fcard { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 13px; box-shadow: var(--shadow-sm); }
.fcard__head { display: flex; align-items: center; gap: 10px; }
.fcard__line { margin: 0; flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.4; color: var(--text); }
.fcard__line b { font-weight: 700; }
.fcard__when { color: var(--text-3); font-weight: 600; }

.fspots { display: flex; flex-direction: column; gap: 8px; margin-top: 11px; }
.fspot { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--border); border-radius: 13px; background: var(--surface-muted); padding: 9px 10px; }
.fspot:active { transform: scale(.99); }
.fspot__thumb { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center;
  font-size: 20px; background: var(--surface); border: 1px solid var(--border); }
.fspot__txt { flex: 1; min-width: 0; }
.fspot__txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fspot__txt span { font-size: 11.5px; color: var(--text-2); }
.fspot__go { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700;
  color: var(--coral-hover); background: #FFF1F1; border: 1px solid var(--coral-soft); border-radius: 999px; padding: 5px 10px; }
.fspot__go i { font-size: 14px; }

.fcmts { display: flex; flex-direction: column; gap: 7px; margin-top: 11px; padding-left: 4px; }
.fcmt { display: flex; gap: 8px; align-items: flex-start; }
.fcmt__av { width: 22px; height: 22px; border-radius: 999px; flex: none; display: grid; place-items: center; font-size: 12px; }
.fcmt p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--text-2); }
.fcmt p b { color: var(--ink); font-weight: 700; }

.fcard__foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border); }
.fact { display: inline-flex; align-items: center; gap: 5px; border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 5px 9px; border-radius: 999px; }
.fact:hover { background: var(--surface-muted); }
.fact i { font-size: 16px; }
.fact.on { color: var(--coral); }

/* friends list */
.frow { display: flex; align-items: center; gap: 11px; padding: 10px 4px; }
.frow + .frow { border-top: 1px solid var(--border); }
.frow__av { width: 34px; height: 34px; border-radius: 999px; flex: none; display: grid; place-items: center; font-size: 17px; }
.frow b { flex: 1; font-size: 14px; font-weight: 700; }
.frow__x { width: 30px; height: 30px; border: none; background: transparent; border-radius: 9px; color: var(--text-3);
  cursor: pointer; display: grid; place-items: center; font-size: 17px; }
.frow__x:hover { background: var(--surface-muted); color: var(--ink); }

.guest-banner { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 16px;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
[data-theme="night"] .guest-banner { background: #2A3142; border: 1px solid var(--border); }
.guest-banner__ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-size: 19px; background: rgba(255,255,255,.14); color: #fff; }
.guest-banner__txt { flex: 1; min-width: 0; }
.guest-banner__txt b { display: block; font-size: 13.5px; font-weight: 700; }
.guest-banner__txt span { font-size: 11.5px; color: rgba(255,255,255,.72); line-height: 1.35; display: block; }
.guest-banner__cta { flex: none; height: 36px; padding: 0 15px; border-radius: 999px; border: none; cursor: pointer;
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; }

/* ============ GUIDE / COACH MARKS ============ */
.guide-layer { position: absolute; inset: 0; }
.guide-ring { position: absolute; border-radius: 18px; box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 0 9999px rgba(15,22,32,.6);
  animation: fade .2s ease-out; pointer-events: none; }
.guide-tip { position: absolute; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 15px; }
.guide-tip b { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.guide-tip p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.guide-tip__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.guide-tip__foot button { height: 34px; padding: 0 16px; border-radius: 999px; border: none; background: var(--ink);
  color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
[data-theme="night"] .guide-tip__foot button { background: var(--magic-deep); }
.guide-dots { display: flex; gap: 5px; }
.guide-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--grey-300); }
.guide-dots i.on { background: var(--coral); width: 16px; border-radius: 3px; }
.guide-card { position: relative; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 30px 26px 24px; width: 330px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.guide-badge { width: 64px; height: 64px; border-radius: 19px; background: var(--brand-gradient); color: #fff;
  display: grid; place-items: center; font-size: 30px; margin-bottom: 10px; }
.guide-card h3 { font-family: var(--font-display); font-size: 23px; margin: 0; letter-spacing: -.02em; }
.guide-card p { font-size: 15px; color: var(--text-2); margin: 7px 0 20px; line-height: 1.5; max-width: 30ch; }
.guide-skip { background: none; border: none; color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 10px; }

/* ============ BOTTOM SHEET ============ */
.scrim { position: absolute; inset: 0; z-index: 40; background: rgba(15,22,32,.42); animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0 } }
@keyframes rise { from { transform: translateY(26px); opacity: .4 } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--surface);
  border-radius: 24px 24px 0 0; box-shadow: 0 -18px 50px -12px rgba(15,22,32,.35);
  display: flex; flex-direction: column; max-height: 88%; animation: rise .26s cubic-bezier(0.2,0,0,1); overflow: hidden; }
.sheet.tall { height: 88%; }
.sheet__grab { flex: none; padding: 9px 0 3px; display: grid; place-items: center; }
.sheet__grab i { width: 38px; height: 5px; border-radius: 999px; background: var(--grey-300); display: block; }
.sheet__head { flex: none; display: flex; align-items: center; gap: 10px; padding: 4px 16px 12px; }
.sheet__head.line { border-bottom: 1px solid var(--border); padding: 12px 16px 14px; }
.sheet__back, .sheet__x { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 17px; flex: none; }
.sheet__x { color: var(--ink-2); }
.sheet__act { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border); background: #fff; flex: none;
  color: var(--coral); cursor: pointer; display: grid; place-items: center; font-size: 17px; }
.sheet__act:active { transform: scale(.94); }
[data-theme="night"] .sheet__act { background: var(--surface-muted); }
[data-theme="night"] .sheet__back, [data-theme="night"] .sheet__x { background: var(--surface-muted); }
.sheet__title { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.02em;
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.sheet__title .sub { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--text-2); margin-top: 1px; }
.sheet__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 16px 22px;
  display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.sheet__body > * { flex: none; }
.sheet__foot { flex: none; padding: 12px 16px 16px; border-top: 1px solid var(--border); background: var(--surface); }

/* ============ PRIMITIVES ============ */
.btn-primary { width: 100%; height: 50px; border-radius: 14px; border: none; cursor: pointer;
  background: var(--btn-accent-bg); color: #fff; font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary:active { transform: scale(.98); }
.btn-primary i { font-size: 18px; }
.btn-ghost { width: 100%; height: 48px; border-radius: 14px; cursor: pointer; background: var(--surface);
  border: 1px solid var(--border); color: var(--ink); font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-ghost i { font-size: 17px; }
.badge-magic { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  background: var(--brand-gradient); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.badge-magic i { font-size: 13px; }
.grouphdr { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); margin: 6px 2px -4px; }
.rows { border: 1px solid var(--border); border-radius: 15px; overflow: hidden; background: var(--surface); }
.row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; width: 100%;
  border: none; background: transparent; cursor: pointer; text-align: left; color: var(--ink); font-family: inherit; }
.row + .row { border-top: 1px solid var(--border); }
.row__ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; flex: none; }
.row__ico.coral { background: #FFECEC; color: var(--coral); }
.row__ico.green { background: #E6F4EC; color: var(--success); }
.row__ico.blue  { background: #E8EFFB; color: var(--info-blue); }
.row__ico.violet{ background: #EFE9FD; color: var(--magic-deep); }
.row__ico.slate { background: var(--grey-150); color: var(--slate-500); }
[data-theme="night"] .row__ico.coral { background: rgba(255,90,95,.16); }
[data-theme="night"] .row__ico.green { background: rgba(14,159,110,.16); }
[data-theme="night"] .row__ico.blue  { background: rgba(37,99,235,.18); }
[data-theme="night"] .row__ico.violet{ background: rgba(124,58,237,.2); }
[data-theme="night"] .row__ico.slate { background: var(--surface-muted); }
.row__txt { flex: 1; min-width: 0; }
.row__txt b { font-size: 14.5px; font-weight: 600; display: block; }
.row__txt span { font-size: 12px; color: var(--text-2); }
.row__val { color: var(--text-2); font-size: 13px; font-weight: 600; flex: none; }
.row:active { background: var(--surface-muted); }
.row.danger b { color: var(--danger-alt); }
.row.danger .row__ico { color: var(--danger-alt); }
.tgl { width: 46px; height: 28px; border-radius: 999px; background: var(--grey-300); position: relative; flex: none;
  transition: background .16s; cursor: pointer; border: none; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); transition: transform .16s; }
.tgl[data-on="true"] { background: var(--coral); }
.tgl[data-on="true"]::after { transform: translateX(18px); }

/* ============ PASTE SHEET ============ */
.paste-hero { position: relative; }
/* paste field: clean pill — no gradient aura (per feedback) */
.paste-field { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 8px 8px 10px; border-radius: 16px;
  border: 1.5px solid var(--border); background: var(--surface); box-shadow: 0 2px 12px rgba(15,22,32,.05); transition: border-color .18s, box-shadow .18s; }
.paste-field:focus-within { border-color: var(--coral-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 13%, transparent); }
.paste-field.filled { border-color: var(--coral-soft); }
.paste-srclbl { display: block; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin: 0 2px 8px; }
.paste-field input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: inherit;
  font-size: 15px; color: var(--ink); }
.paste-clear { border: none; background: var(--grey-150); color: var(--ink-2); width: 24px; height: 24px; border-radius: 999px; cursor: pointer; }
.paste-hint { font-size: 12.5px; color: var(--text-2); margin: 2px 0 8px; }

/* text search → city picker */
.paste-city { margin-top: 14px; }
.paste-city__lbl { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.paste-city__lbl i { font-size: 14px; color: var(--coral); }
.paste-city__row { display: flex; flex-wrap: wrap; gap: 8px; }
.citychip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); background: var(--surface-muted);
  border-radius: 999px; padding: 8px 14px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.citychip.on { border-color: var(--coral); background: #FFF1F1; color: var(--coral-hover); }
.citychip.new { color: var(--text-2); } .citychip.new i { font-size: 14px; }
.citychip.new.on { color: var(--coral-hover); }

/* link → auto-detect notice */
.paste-auto { display: flex; gap: 11px; align-items: flex-start; margin-top: 14px; padding: 12px;
  border-radius: 13px; border: 1px solid color-mix(in srgb, var(--magic) 22%, var(--border));
  background: linear-gradient(120deg, color-mix(in srgb, var(--magic) 8%, var(--surface)), var(--surface)); }
.paste-auto__ico { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-size: 18px; color: #fff; background: var(--brand-gradient); }
.paste-auto b { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.paste-auto span { font-size: 12px; line-height: 1.45; color: var(--text-2); }

/* idle */
.paste-idle { margin-top: 14px; }
.paste-srcgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 0 0 10px; }
.srcpill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 8px;
  font-size: 12px; font-weight: 600; color: var(--ink); border: 1px solid var(--border); border-radius: 12px; background: var(--surface-muted); cursor: default; }
.srcpill i { font-size: 16px; color: var(--c, var(--ink)); }
.srcpill--magic { grid-column: 1 / -1; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--ink); border: 1px solid var(--border); background: var(--surface-muted); }
.srcpill--magic img { width: 18px; height: 18px; border-radius: 5px; }
.srcpill__hint { font-weight: 500; color: var(--text-2); font-size: 11px; }
.magic-row { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.4; color: var(--text-2);
  background: linear-gradient(120deg, color-mix(in srgb, var(--magic) 8%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--magic) 22%, var(--border)); border-radius: 13px; padding: 12px; }
.magic-row .badge-magic { flex: none; }

/* ============ PROFILE ============ */
.idcard { display: flex; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--border);
  border-radius: 16px; background: var(--surface-muted); }
.idcard__av { position: relative; width: 56px; height: 56px; border-radius: 999px; background: var(--me, #7FB23A);
  border: none; cursor: pointer; display: grid; place-items: center; font-size: 29px; flex: none; }
.idcard__pen { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 2px solid var(--surface-muted); display: grid; place-items: center; font-size: 11px; }
.idcard__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.idcard__name { display: flex; align-items: center; gap: 7px; }
.idcard__who b { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.idcard__editname { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font-size: 13px; flex: none; }
.idcard__editname:active { transform: scale(.92); }
.idcard__who > span { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync { display: inline-flex; align-items: center; gap: 5px; color: var(--success); font-weight: 700; font-size: 11.5px; margin-top: 3px; }
/* condensed travel facts under the profile identity */
.pf-facts { position: relative; display: flex; align-items: stretch; gap: 0; width: 100%; margin-top: 11px;
  padding: 15px 4px 13px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.pf-fact { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; text-align: center; }
.pf-fact + .pf-fact { border-left: 1px solid var(--border); }
.pf-fact b { font-family: var(--font-display); font-size: 27px; font-weight: 700; color: var(--ink); line-height: 1; }
.pf-fact b small { font-size: 14px; font-weight: 700; color: var(--text-3); }
.pf-fact span { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.pf-facts__rank { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; letter-spacing: .01em; color: #9A6A00;
  background: linear-gradient(135deg, #FFE9A8, #F6C453); border-radius: 999px; padding: 3px 9px; box-shadow: var(--shadow-sm); }
.pf-facts__rank i { font-size: 12px; }

.plan { border: 1px solid color-mix(in srgb, var(--magic) 26%, var(--border)); border-radius: 16px; overflow: hidden;
  background: linear-gradient(125deg, color-mix(in srgb, var(--magic) 9%, var(--surface)), var(--surface)); }
.plan__top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 0; }
.plan__manage { border: none; background: none; color: var(--magic-deep); font-weight: 700; font-size: 13px; cursor: pointer; }
.plan__body { display: flex; align-items: center; gap: 12px; padding: 12px 14px 14px; }
.plan__inf { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 22px;
  color: var(--magic-deep); background: color-mix(in srgb, var(--magic) 12%, var(--surface)); }
.plan__txt { flex: 1; min-width: 0; }
.plan__txt b { display: block; font-size: 14.5px; font-weight: 700; }
.plan__txt span { font-size: 12px; color: var(--text-2); }
.signout { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--danger-alt);
  font-size: 14px; font-weight: 700; cursor: pointer; }
.signout i { font-size: 17px; }
.profile-foot { text-align: center; font-size: 11.5px; color: var(--text-3); padding-top: 2px; }

/* editable fields (account) */
.field { display: block; margin-bottom: 16px; }
.field__lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 7px; }
.field__in { width: 100%; height: 48px; padding: 0 14px; border-radius: 13px; border: 1.5px solid var(--border);
  background: var(--surface); font-family: inherit; font-size: 15px; color: var(--ink); outline: none; }
.field__in:focus { border-color: var(--coral); box-shadow: var(--ring-accent, 0 0 0 3px rgba(255,90,95,.12)); }
.field__row { display: flex; align-items: center; gap: 8px; }
.field__row .field__in { flex: 1; min-width: 0; }
.field__badge { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700;
  color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface)); border-radius: 999px; padding: 6px 10px; }
.field__badge i { font-size: 13px; }
.field__hint { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 7px; line-height: 1.4; }

/* plan & usage sheet */
.usage-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 18px; color: #fff;
  background: var(--brand-gradient); box-shadow: 0 12px 26px -10px rgba(193,62,155,.5); }
.usage-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(80% 60% at 85% 10%, rgba(255,255,255,.35), transparent 60%); }
.usage-hero__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.usage-hero__tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800;
  background: rgba(255,255,255,.22); border-radius: 999px; padding: 5px 12px; }
.usage-hero__price { font-size: 12.5px; font-weight: 700; opacity: .9; }
.usage-hero__big { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.usage-hero__big i { font-size: 34px; }
.usage-hero__big b { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.1; }
.usage-hero__sub { position: relative; z-index: 1; display: block; margin-top: 6px; font-size: 12.5px; opacity: .9; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 13px 10px; text-align: center; }
.stat__n { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1; }
.stat__n small { font-size: 12px; font-weight: 700; color: var(--text-3); }
.stat__l { display: block; font-size: 11px; font-weight: 600; color: var(--text-2); margin-top: 5px; }
/* condensed usage strip + swipeable plan comparison */
.usage-mini { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 14px; background: var(--surface-muted); padding: 12px 4px; }
.usage-mini__cell { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.usage-mini__cell + .usage-mini__cell { border-left: 1px solid var(--border); }
.usage-mini__cell b { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1; }
.usage-mini__cell b small { font-size: 11px; font-weight: 700; color: var(--text-3); }
.usage-mini__cell span { font-size: 10.5px; font-weight: 600; color: var(--text-2); }
.grouphdr__hint { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text-3); font-size: 10px; }

.planpager { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; margin: 0 -2px; }
.planpager::-webkit-scrollbar { display: none; }
.plancard { flex: 0 0 100%; scroll-snap-align: center; box-sizing: border-box; display: flex; flex-direction: column; gap: 9px;
  border: 1.5px solid var(--border); border-radius: 18px; background: var(--surface); padding: 15px; }
.plancard.current { border-color: color-mix(in srgb, var(--magic) 55%, var(--border));
  background: linear-gradient(150deg, color-mix(in srgb, var(--magic) 9%, var(--surface)), var(--surface)); box-shadow: 0 14px 30px -18px rgba(124,58,237,.55); }
.plancard__hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plancard__id { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.plancard__id b { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); }
.plancard__now { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--brand-gradient); border-radius: 999px; padding: 3px 8px; }
.plancard__founder { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #9A6A00; background: linear-gradient(135deg,#FFE9A8,#F6C453); border-radius: 999px; padding: 3px 8px; }
.plancard__founder i { font-size: 11px; }
.plancard__std { font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.plancard__price { text-align: right; flex: none; }
.plancard__price b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1; }
.plancard__price span { font-size: 10.5px; font-weight: 600; color: var(--text-2); }
.plancard__tag { font-size: 12px; color: var(--text-2); margin: -2px 0 2px; }
.plancard__feats { display: flex; flex-direction: column; gap: 7px; }
.planfeat { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.planfeat i { font-size: 15px; color: var(--success); flex: none; }
.planfeat.no { color: var(--text-3); }
.planfeat.no i { color: var(--text-3); }
.plancard__cta { margin-top: 4px; height: 42px; border-radius: 12px; border: none; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--coral); color: #fff; }
.plancard__cta.ghost { background: var(--surface); color: var(--ink-2); border: 1px solid var(--border); }
.plancard__cta:disabled { background: color-mix(in srgb, var(--magic) 12%, var(--surface)); color: var(--magic-deep); cursor: default; }
.plandots { display: flex; justify-content: center; gap: 6px; margin: 11px 0 2px; }
.plandot { width: 7px; height: 7px; border-radius: 999px; border: none; background: var(--grey-300); cursor: pointer; padding: 0; transition: width .18s ease; }
.plandot.on { background: var(--coral); width: 18px; }

.student-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 12px; padding: 12px 13px; border-radius: 14px; border: 1px dashed var(--border); background: var(--surface-muted); }
.student-note__ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; color: var(--info-blue); background: #E8EFFB; }
.student-note__txt b { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.student-note__txt span { font-size: 11.5px; color: var(--text-2); }
[data-theme="night"] .student-note__ico { background: rgba(37,99,235,.18); }

.perk { display: flex; align-items: center; gap: 11px; }
.perk__ico { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 17px;
  background: #EFE9FD; color: var(--magic-deep); }
.perk__txt { flex: 1; min-width: 0; }
.perk__txt b { display: block; font-size: 13.5px; font-weight: 700; }
.perk__txt span { font-size: 12px; color: var(--text-2); }
.perk__on { flex: none; color: var(--success); font-size: 19px; }

/* sign-in card (guest) */
.signin-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px;
  padding: 22px 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-muted); }
.signin-card__ico { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-gradient); color: #fff;
  display: grid; place-items: center; font-size: 27px; }
.signin-card b { font-family: var(--font-display); font-size: 18px; }
.signin-card p { font-size: 13px; color: var(--text-2); line-height: 1.5; margin: 0 0 8px; }
.signin-card .btn-primary, .signin-card .btn-ghost { margin: 0; }
.signin-card__note { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.signin-brandmark { display: block; margin-bottom: 2px; }
.signin-brand { height: 26px; display: block; }
.signin-brand.night { display: none; }
[data-theme="night"] .signin-brand.day { display: none; }
[data-theme="night"] .signin-brand.night { display: block; }
.signin-lead { font-size: 13px; color: var(--text-2); line-height: 1.5; margin: 0 0 6px; }
.signin-seg { display: flex; gap: 3px; padding: 3px; width: 100%; background: var(--chip-bg); border-radius: 999px; margin-bottom: 4px; }
.signin-seg button { flex: 1; height: 34px; border: none; background: none; cursor: pointer; border-radius: 999px; font: 700 13px/1 var(--font-body); color: var(--chip-text); }
.signin-seg button.on { background: var(--chip-active-bg); color: var(--chip-active-text); box-shadow: var(--shadow-sm); }
.signin-oauth { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 700 14px/1 var(--font-body); color: var(--ink); }
.signin-oauth i { font-size: 19px; }
.signin-oauth:active { transform: scale(.98); }
.signin-or { display: flex; align-items: center; gap: 10px; width: 100%; margin: 3px 0 1px; color: var(--text-3); font-size: 11px; }
.signin-or::before, .signin-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.signin-field { display: flex; align-items: center; gap: 9px; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.signin-field:focus-within { box-shadow: var(--ring-accent); border-color: var(--coral-soft); }
.signin-field i { font-size: 18px; color: var(--ink-2); }
.signin-field input { flex: 1; border: none; background: none; font: 400 14px/1 var(--font-body); color: var(--ink); outline: none; }
.signin-links { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.signin-links a { font-size: 11px; color: var(--text-3); text-decoration: none; }
.signin-links a:hover { color: var(--text-2); text-decoration: underline; }

/* ============ AVATAR PICKER ============ */
.av-preview { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 6px 0 4px; }
.av-preview__big { width: 84px; height: 84px; border-radius: 999px; display: grid; place-items: center; font-size: 44px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
.pick-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
  display: flex; align-items: center; gap: 7px; margin-bottom: -4px; }
.pick-label i { font-size: 14px; }
.emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ebtn { aspect-ratio: 1; border-radius: 12px; border: 1.5px solid transparent; background: var(--surface-muted);
  cursor: pointer; display: grid; place-items: center; font-size: 22px; }
.ebtn:active { transform: scale(.94); }
.ebtn.on { background: color-mix(in srgb, var(--me, #7FB23A) 16%, var(--surface)); border-color: var(--me, #7FB23A); }
.sw-row { display: flex; flex-wrap: wrap; gap: 12px; }
.sw { width: 34px; height: 34px; border-radius: 999px; cursor: pointer; border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border); position: relative; }
.sw.on { box-shadow: 0 0 0 2px var(--ink); }
.sw.on::after { content: "\ea5e"; font-family: "tabler-icons"; position: absolute; inset: 0; display: grid;
  place-items: center; color: #fff; font-size: 15px; }

/* ============ LEGAL ============ */
.seg { display: flex; gap: 4px; background: var(--grey-150); border-radius: 12px; padding: 4px; }
[data-theme="night"] .seg { background: var(--surface-muted); }
.seg__btn { flex: 1; height: 36px; border: none; border-radius: 9px; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--slate-500); }
.seg__btn.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.legal { line-height: 1.6; }
.legal h2 { font-family: var(--font-display); font-size: 20px; margin: 4px 0 2px; letter-spacing: -.02em; }
.legal__upd { font-size: 12px; color: var(--text-3); margin: 0 0 12px; }
.legal p { font-size: 13.5px; color: var(--text); margin: 0 0 12px; white-space: pre-line; }
.legal__end { text-align: center; font-size: 12px; color: var(--text-3); padding: 8px 0 4px; }

/* ============ TRIP SETUP ============ */
.route { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden;
  box-shadow: var(--shadow-sm); padding: 4px 0; position: relative; }
.route::before { content: none; }
.leg { position: relative; z-index: 2; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; }
.leg__dot { width: 22px; display: grid; place-items: center; }
.dot-from { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--slate-400); background: var(--surface); box-sizing: border-box; }
.dot-stop { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--slate-400); background: var(--surface); box-sizing: border-box; }
.dot-home { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--slate-400); background: var(--surface); box-sizing: border-box;
  display: grid; place-items: center; color: var(--text-3); font-size: 11px; }
.leg__name--static { cursor: default; }
.datepill--static { cursor: default; background: transparent; border-style: dashed; color: var(--text-2); }
.leg__field { min-width: 0; }
.leg__label { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); display: block; margin-bottom: 2px; }
.leg__label.muted { color: var(--text-3); }
.leg__name { display: flex; align-items: center; gap: 7px; min-width: 0; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.leg__name .nm { font-size: 15px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leg__name .fl { font-size: 17px; }
.leg__input { width: 100%; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink); border: none;
  border-bottom: 2px solid var(--coral); background: transparent; outline: none; padding: 1px 0; }
.leg__right { display: flex; align-items: center; gap: 4px; }
.leg__del { width: 24px; height: 24px; border-radius: 8px; border: none; background: transparent; cursor: pointer;
  color: var(--text-3); display: grid; place-items: center; font-size: 14px; }
.leg__del:active { background: var(--grey-150); }
.datepill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px;
  background: var(--surface-muted); border: 1px solid var(--border); color: var(--ink); cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.datepill i { color: var(--ink-2); }
.datepill .pre { color: var(--text-2); font-weight: 600; }
.datepill.on { border-color: var(--coral); background: #FFF6F6; color: var(--coral-hover); }
[data-theme="night"] .datepill.on { background: rgba(255,90,95,.14); }
.datepill.on i { color: var(--coral); }
.conn { position: relative; z-index: 1; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 12px;
  padding: 6px 14px; width: 100%; min-height: 46px; }
.conn__rail { position: relative; width: 22px; align-self: stretch; display: grid; place-items: center; }
.conn__rail::before { content: ""; position: absolute; left: 50%; top: -24px; bottom: -24px; transform: translateX(-50%);
  border-left: 2px dashed var(--seg-line); }
.seg-home  { --seg-line: color-mix(in srgb, var(--slate-400) 32%, transparent); --seg-ink: var(--text-3); }
.seg-route { --seg-line: var(--coral); --seg-ink: var(--coral); }
.conn__mode { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 999px; padding: 0; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--grey-300); color: var(--text-2); cursor: pointer; font-size: 12px; transition: transform .12s; }
.conn__mode:active { transform: scale(.9); }
.conn__side { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.conn__lbl { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--seg-ink); }
.seg-home .conn__lbl { color: var(--text-3); }
.conn__add { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px;
  border: 1px dashed var(--grey-300); background: transparent; color: var(--text-3); font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.conn__add i { font-size: 13px; }
.conn__add:active { border-color: var(--coral); color: var(--coral); }
.conn__mode.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--seg-line) 40%, transparent); }
.conn__modes { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; animation: fade .16s ease-out; }
.conn__mopt { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; font-size: 15px; }
.conn__mopt:active { background: var(--grey-150); }
.conn__mopt.sel { border-color: var(--coral); background: var(--coral); color: #fff; }
.conn__itin { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px;
  border: 1px dashed var(--grey-300); background: transparent; color: var(--text-3); font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.conn__itin i { font-size: 13px; }
.conn__itin.on { border-style: solid; border-color: var(--coral); background: #FFF6F6; color: var(--coral-hover); }
[data-theme="night"] .conn__itin.on { background: rgba(255,90,95,.14); }
.conn--tail { min-height: 40px; }
.conn--tail .conn__rail::before { content: none; }
.conn__tail-dot { width: 18px; height: 18px; border-radius: 999px; border: 1px dashed var(--grey-300);
  background: var(--surface); color: var(--slate-400); display: grid; place-items: center; font-size: 11px; }
.cal-drop { padding: 2px 14px 10px 44px; animation: fade .18s ease-out; }

/* mini calendar */
.cal { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); padding: 12px; }
.cal__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal__mo { font-size: 13px; font-weight: 700; }
.cal__nav { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; color: var(--ink); display: grid; place-items: center; font-size: 15px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.cal__dow { font-size: 9.5px; font-weight: 700; color: var(--text-3); text-align: center; padding: 2px 0 5px; text-transform: uppercase; }
.cal__d { aspect-ratio: 1; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: var(--ink);
  border-radius: 9px; cursor: pointer; border: none; background: transparent; font-family: inherit; }
.cal__d.mut { opacity: 0; cursor: default; }
.cal__d.in { background: #FFE7E7; border-radius: 0; color: var(--coral-hover); }
.cal__d.s { background: var(--coral); color: #fff; border-radius: 9px 0 0 9px; }
.cal__d.e { background: var(--coral); color: #fff; border-radius: 0 9px 9px 0; }
.cal__d.sel { background: var(--ink); color: #fff; }
[data-theme="night"] .cal__d.in { background: rgba(255,90,95,.2); }

.rtrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; }
.rtrow__txt { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.rtrow__txt i { font-size: 17px; color: var(--ink-2); }
.trip-hint { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.45; color: var(--text-2); margin: 0; }
.trip-hint i { font-size: 15px; color: var(--ink-2); flex: none; margin-top: 1px; }

/* ============ ITINERARY ============ */
.itin { display: flex; flex-direction: column; gap: 18px; }
.itin__day { position: relative; }
.itin__hd { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.itin__num { width: 30px; height: 30px; border-radius: 999px; background: var(--coral); color: #fff; flex: none;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.itin__meta b { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.itin__meta .fl { font-size: 15px; }
.itin__meta span { display: block; font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.itin__items { display: flex; flex-direction: column; gap: 8px; margin-left: 14px; padding-left: 20px; border-left: 2px dotted var(--grey-300); }
.itin__item { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; position: relative; }
.itin__t { grid-column: 1 / -1; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }
.itin__ico { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-muted); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 17px; color: var(--ink); flex: none; }
.itin__body b { font-size: 14px; font-weight: 600; display: block; }
.itin__body span { font-size: 12px; color: var(--text-2); }
.itin__add { margin-top: 2px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px;
  border-radius: 999px; border: 1px dashed var(--grey-300); background: transparent; color: var(--text-2); font-family: inherit;
  font-size: 12.5px; font-weight: 700; cursor: pointer; }

/* ============ TRIP DETAIL (Hub · Places · Day) ============ */
.td-sheet { overflow: hidden; }
.td-head { flex: none; display: flex; align-items: center; gap: 7px; padding: 12px 12px 12px; }
.td-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; }
.td-title__flag { font-size: 22px; flex: none; }
.td-title__txt { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1.1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-title__sub { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--text-2); margin-top: 2px; }
.td-head__edit { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font-size: 16px; flex: none; }
[data-theme="night"] .td-head__edit { background: var(--surface-muted); }

.td-tabs { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 14px 3px;
  padding: 4px; background: var(--grey-150); border-radius: 999px; }
[data-theme="night"] .td-tabs { background: var(--surface-muted); }
.td-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border: none;
  border-radius: 999px; background: transparent; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 700;
  color: var(--text-2); transition: color .14s; }
.td-tab.on { background: var(--surface); color: var(--coral); box-shadow: var(--shadow-sm); }
.td-tab:active { transform: scale(.97); }

.td-body { padding: 8px 14px 26px; gap: 0; }
.td-pane { display: flex; flex-direction: column; gap: 20px; animation: fade .18s ease-out; }

/* --- hero --- */
.td-hero { border: 1px solid var(--coral-soft); border-radius: 18px; padding: 12px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #FFF3F3, var(--surface) 70%); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px; }
[data-theme="night"] .td-hero { background: linear-gradient(160deg, rgba(255,90,95,.12), var(--surface) 70%); }
.td-hero__row { display: flex; align-items: center; gap: 11px; }
.td-hero__flag { font-size: 26px; flex: none; }
.td-hero__id { flex: 1; min-width: 0; }
.td-hero__eye { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.td-hero__name { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.td-hero__meta { font-size: 12px; color: var(--text-2); font-weight: 600; }
.td-hero__cd { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1;
  padding: 8px 11px; border-radius: 13px; background: color-mix(in srgb, var(--coral) 8%, var(--surface)); min-width: 78px; }
.td-hero__cd-row { display: inline-flex; align-items: baseline; gap: 4px; }
.td-hero__cd-row b { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--coral); }
.td-hero__cd-row span { font-size: 11px; font-weight: 800; color: var(--coral-hover); }
.td-hero__cd-track { width: 100%; height: 4px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--coral) 22%, var(--surface)); }
.td-hero__cd-track i { display: block; height: 100%; border-radius: 999px; background: var(--coral); }
/* up next */
.td-upnext { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; cursor: pointer;
  padding: 10px 11px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); }
.td-upnext:active { transform: scale(.99); }
.td-upnext__ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-size: 18px; color: var(--info-blue); background: #E8EFFB; }
[data-theme="night"] .td-upnext__ico { background: rgba(37,99,235,.18); }
.td-upnext__txt { flex: 1; min-width: 0; }
.td-upnext__eye { font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.td-upnext__txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-upnext__meta { font-size: 11.5px; color: var(--text-2); }

/* header people stack */
.td-people { display: inline-flex; align-items: center; flex: none; border: none; background: none; cursor: pointer; padding: 0; }
.td-people__av { width: var(--sz, 28px); height: var(--sz, 28px); border-radius: 999px; background: var(--c, var(--coral));
  display: grid; place-items: center; font-size: calc(var(--sz, 28px) * .52); border: 2px solid var(--surface); margin-left: -9px; }
.td-people__av:first-child { margin-left: 0; }
.td-people__av.sm { width: 26px; height: 26px; border: none; margin: 0; font-size: 14px; flex: none; }

/* status tag (booking) + link chip */
.td-status { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 800; flex: none;
  border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.td-status i { font-size: 13px; }
.td-status.ok { color: var(--success); background: color-mix(in srgb, var(--success) 13%, var(--surface)); }
.td-status.prop { color: #B45309; background: #FEF3E2; }
.td-status--icon { padding: 5px; border-radius: 999px; }
.td-status--icon i { font-size: 15px; }
[data-theme="night"] .td-status.prop { color: #F5A524; background: rgba(245,165,36,.16); }
.td-linkchip { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: 10.5px; font-weight: 700;
  color: var(--info-blue); }
.td-linkchip i { font-size: 12px; }

/* --- section --- */
.td-sec { display: flex; flex-direction: column; gap: 10px; }
.td-sec__hd { display: flex; align-items: center; gap: 9px; }
.td-sec__ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; flex: none; }
.td-sec__ico.coral { background: #FFECEC; color: var(--coral); }
.td-sec__ico.blue { background: #E8EFFB; color: var(--info-blue); }
.td-sec__ico.green { background: #E6F4EC; color: var(--success); }
.td-sec__ico.violet { background: #EFE9FD; color: var(--magic-deep); }
[data-theme="night"] .td-sec__ico.coral { background: rgba(255,90,95,.16); }
[data-theme="night"] .td-sec__ico.blue { background: rgba(37,99,235,.18); }
[data-theme="night"] .td-sec__ico.green { background: rgba(14,159,110,.16); }
[data-theme="night"] .td-sec__ico.violet { background: rgba(124,58,237,.2); }
.td-sec__title { flex: 1; margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 8px; }
.td-sec__count { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; color: var(--text-2);
  background: var(--grey-150); border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; }
[data-theme="night"] .td-sec__count { background: var(--surface-muted); }
.td-add { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-family: inherit; font-size: 12.5px;
  font-weight: 700; cursor: pointer; flex: none; }
.td-add i { font-size: 15px; }
.td-add:active { transform: scale(.96); }

/* empty state */
.td-empty { border: 1px solid var(--border); border-radius: 16px; background: var(--surface-muted);
  padding: 26px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.td-empty__ico { font-size: 26px; color: var(--text-3); margin-bottom: 4px; }
.td-empty b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.td-empty span { font-size: 12.5px; color: var(--text-2); }

/* line list (bookings / flights / expenses) */
.td-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.td-line { display: flex; align-items: center; gap: 11px; padding: 12px 13px; }
.td-line + .td-line, .td-list .td-total { border-top: 1px solid var(--border); }
.td-line__ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 18px; }
.td-line__ico.coral { background: #FFECEC; color: var(--coral); }
.td-line__ico.blue { background: #E8EFFB; color: var(--info-blue); }
.td-line__ico.green { background: #E6F4EC; color: var(--success); }
[data-theme="night"] .td-line__ico.coral { background: rgba(255,90,95,.16); }
[data-theme="night"] .td-line__ico.blue { background: rgba(37,99,235,.18); }
[data-theme="night"] .td-line__ico.green { background: rgba(14,159,110,.16); }
.td-line__txt { flex: 1; min-width: 0; }
.td-line__txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-line__txt span { font-size: 11.5px; color: var(--text-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-line__tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; flex: none;
  border-radius: 999px; padding: 4px 8px; }
.td-line__tag.ok { color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface)); }
.td-line__tag i { font-size: 13px; }
.td-line__amt { font-size: 13.5px; font-weight: 800; color: var(--ink); flex: none; }
.td-line__x { width: 28px; height: 28px; border-radius: 8px; border: none; background: transparent; color: var(--text-3);
  cursor: pointer; display: grid; place-items: center; font-size: 15px; flex: none; }
.td-line__x:active { background: var(--grey-150); }
.td-total { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--surface-muted); }
.td-total span { font-size: 12px; font-weight: 700; color: var(--text-2); }
.td-total b { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }

/* inline add form */
.td-form { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--coral-soft); border-radius: 16px;
  padding: 12px; background: color-mix(in srgb, var(--coral) 4%, var(--surface)); animation: fade .16s ease-out; }
.td-form__in { height: 44px; padding: 0 13px; border-radius: 11px; border: 1.5px solid var(--border); background: var(--surface);
  font-family: inherit; font-size: 14px; color: var(--ink); outline: none; }
.td-form__in:focus { border-color: var(--coral); box-shadow: var(--ring-accent, 0 0 0 3px rgba(255,90,95,.12)); }
.td-form__row { display: flex; gap: 8px; margin-top: 2px; }
.td-form__cancel { flex: 1; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.td-form__add { flex: 1; height: 40px; border-radius: 11px; border: none; background: var(--coral); color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.td-form__add:disabled { opacity: .45; cursor: default; }

/* notes */
.td-notes { width: 100%; min-height: 96px; resize: vertical; border: 1px solid var(--border); border-radius: 14px;
  padding: 13px; background: var(--surface); font-family: inherit; font-size: 13.5px; line-height: 1.5; color: var(--ink); outline: none; }
.td-notes:focus { border-color: var(--coral); box-shadow: var(--ring-accent, 0 0 0 3px rgba(255,90,95,.12)); }
.td-notes::placeholder { color: var(--text-3); }

/* group */
.td-group { display: flex; flex-wrap: wrap; gap: 8px; }
.td-person { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px 0 6px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink); }
.td-person.me { border-color: var(--coral-soft); background: #FFF1F1; color: var(--coral-hover); }
[data-theme="night"] .td-person.me { background: rgba(255,90,95,.14); }
.td-person__av { width: 26px; height: 26px; border-radius: 999px; background: var(--c, var(--coral)); display: grid; place-items: center; font-size: 14px; }
.td-person.add { padding: 0 14px; color: var(--text-2); border-style: dashed; cursor: pointer; font-family: inherit; }
.td-person.add i { font-size: 15px; }
.td-person.add:active { border-color: var(--coral); color: var(--coral); }

/* --- places --- */
.td-search { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-muted); margin-bottom: 2px; }
.td-search i { font-size: 18px; color: var(--text-3); }
.td-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: inherit; font-size: 14px; color: var(--ink); }
.td-search__x { width: 24px; height: 24px; border-radius: 999px; border: none; background: var(--grey-300); color: #fff; cursor: pointer; font-size: 13px; display: grid; place-items: center; }
.td-cat { display: flex; flex-direction: column; gap: 10px; }
.td-cat__hd { display: flex; align-items: center; gap: 8px; }
.td-cat__emoji { font-size: 17px; }
.td-cat__hd h3 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.td-cat__n { font-size: 11px; font-weight: 700; color: var(--text-2); background: var(--grey-150); border-radius: 999px;
  min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; }
[data-theme="night"] .td-cat__n { background: var(--surface-muted); }
.td-places { display: flex; flex-direction: column; gap: 8px; }
.td-place { display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--border); border-radius: 15px;
  background: var(--surface); box-shadow: var(--shadow-sm); }
.td-place__thumb { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(145deg, #f3f4f2, #e7e9e4); overflow: hidden; }
.td-place__thumb > img, .td-card__thumb > img { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-theme="night"] .td-place__thumb { background: var(--surface-muted); }
.td-place__txt { flex: 1; min-width: 0; }
.td-place__txt b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-place__txt span { display: block; font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-place__assign { position: relative; flex: none; }
.td-pill { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 11px; border-radius: 999px;
  font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.td-pill.on { background: #FFE7E7; color: var(--coral-hover); border: 1px solid var(--coral-soft); }
[data-theme="night"] .td-pill.on { background: rgba(255,90,95,.16); }
.td-pill.plan { background: transparent; color: var(--text-2); border: 1px dashed var(--grey-300); }
.td-pill.plan i { font-size: 13px; }
.td-pill:active { transform: scale(.96); }
.td-menu__scrim { position: fixed; inset: 0; z-index: 44; }
.td-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; width: 234px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: fade .14s ease-out; }
.td-menu__lbl { display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 2px 0 7px; }
.td-menu__daylist { display: flex; flex-direction: column; gap: 4px; max-height: 168px; overflow-y: auto; margin-bottom: 12px; }
.td-menu__dayrow { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 11px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-family: inherit; text-align: left; }
.td-menu__dayrow b { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; flex: none; }
.td-menu__dayrow span { flex: 1; font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.td-menu__dayrow i { color: var(--coral); }
.td-menu__dayrow.on { border-color: var(--coral); background: #FFF6F6; }
.td-menu__dayrow.on b { color: var(--coral-hover); }
[data-theme="night"] .td-menu__dayrow.on { background: rgba(255,90,95,.12); }
.td-menu__slots { display: flex; flex-direction: column; gap: 5px; }
.td-menu__slot { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.td-menu__slot i { font-size: 15px; color: var(--text-2); }
.td-menu__slot.on { background: #FFF1F1; border-color: var(--coral-soft); color: var(--coral-hover); }
.td-menu__slot.on i { color: var(--coral); }
[data-theme="night"] .td-menu__slot.on { background: rgba(255,90,95,.14); }
.td-menu__remove { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 34px; margin-top: 8px;
  border-radius: 10px; border: none; background: transparent; color: var(--danger-alt); cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 700; }
.td-menu__remove i { font-size: 15px; }

/* --- day --- */
.td-daypane { gap: 6px; position: relative; }
.td-days { position: sticky; top: -8px; z-index: 8; display: flex; flex-direction: column; gap: 8px;
  margin: -8px -14px 6px; padding: 10px 12px 9px; background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 10px -10px rgba(15,22,32,.14); }
.td-days__hd { display: flex; align-items: center; gap: 6px; padding: 0 2px; font: 800 10.5px/1 var(--font-body);
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.td-days__hd i { font-size: 13px; color: var(--coral); }
.td-days__row { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.td-days__row::-webkit-scrollbar { display: none; }
.td-daycell { flex: 1 1 0; min-width: 44px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px 6px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-family: inherit; }
.td-daycell:active { background: var(--surface-muted); }
.td-daycell__dow { font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.td-daycell__d { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1; }
.td-daycell__dot { width: 5px; height: 5px; border-radius: 999px; background: transparent; }
.td-daycell__dot.has { background: var(--coral); }
.td-daycell__now { font-size: 8px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #fff; background: var(--info-blue); border-radius: 999px; padding: 1px 5px; line-height: 1.5; }
.td-daycell__ok { display: inline-grid; place-items: center; color: var(--success); font-size: 12px; line-height: 1; }
.td-daycell.on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 8%, var(--surface)); }
.td-daycell.on .td-daycell__d { color: var(--coral); }
.td-daycell.done { opacity: .5; }
.td-daycell.today:not(.on) { border-color: var(--info-blue); }
.td-daycell.today:not(.on) .td-daycell__d { color: var(--info-blue); }
.td-daynav { flex: none; width: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.td-daynav:active { background: var(--surface-muted); }
.td-daynav:disabled { opacity: .35; cursor: default; }
.td-daycur { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  padding: 6px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-family: inherit; text-align: left; }
.td-daycur.open, .td-daycur:active { background: var(--surface-muted); }
.td-daycur__top { display: flex; align-items: center; gap: 6px; width: 100%; }
.td-daycur__top b { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--ink); }
.td-daycur__of { font-size: 12px; font-weight: 700; color: var(--text-3); }
.td-daycur__now { font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--info-blue); border-radius: 999px; padding: 2px 6px; }
.td-daycur__done { display: inline-grid; place-items: center; color: var(--success); font-size: 12px; }
.td-daycur__sub { max-width: 100%; font-size: 11px; font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-jump { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; margin-top: 6px; padding: 10px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 34px -14px rgba(0,0,0,.3); animation: fade .16s ease-out; }
.td-jump__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.td-jumpcell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; }
.td-jumpcell:active { background: var(--surface-muted); }
.td-jumpcell__dow { font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); }
.td-jumpcell b { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1; }
.td-jumpcell__dot { width: 5px; height: 5px; border-radius: 999px; background: transparent; }
.td-jumpcell__dot.has { background: var(--coral); }
.td-jumpcell__dot.now { background: var(--info-blue); }
.td-jumpcell.on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 8%, var(--surface)); }
.td-jumpcell.on b { color: var(--coral); }
.td-jumpcell.done { opacity: .5; }
.td-jumpcell.today:not(.on) { border-color: var(--info-blue); }
.td-jumpcell.today b { color: var(--info-blue); }
.td-jump__scrim { position: absolute; inset: 0; z-index: 4; }
.td-dayblock { scroll-margin-top: 62px; }
.td-dayblock + .td-dayblock { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; }
.td-daychip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; flex: none;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-family: inherit; }
.td-daychip b { font-size: 13px; font-weight: 700; color: var(--ink); }
.td-daychip__n { font-size: 11px; font-weight: 800; color: var(--text-3); background: var(--grey-150); border-radius: 999px;
  min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; }
.td-daychip__n.has { color: var(--coral); background: #FFE7E7; }
.td-daychip.on { background: var(--coral); border-color: var(--coral); }
.td-daychip.on b { color: #fff; }
.td-daychip.on .td-daychip__n { background: rgba(255,255,255,.25); color: #fff; }

.td-dayhd { display: flex; align-items: flex-end; justify-content: space-between; margin: 4px 2px 2px; }
.td-dayhd h2 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.td-dayhd h2 + span, .td-dayhd div span { font-size: 12px; color: var(--text-2); font-weight: 600; }
.td-dayhd__count { font-size: 11.5px; font-weight: 700; color: var(--text-2); }

.td-timeline { display: flex; flex-direction: column; gap: 6px; position: relative; margin-left: 4px; }
.td-timeline::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px;
  background: repeating-linear-gradient(var(--grey-300) 0 4px, transparent 4px 9px); }
.td-slot { position: relative; padding-left: 42px; padding-bottom: 8px; }
.td-slot__hd { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; }
.td-slot__ico { position: absolute; left: 0; width: 32px; height: 32px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); display: grid; place-items: center; font-size: 16px; color: var(--ink-2); z-index: 1; }
.td-slot__hd b { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.td-slot__n { font-size: 11px; font-weight: 700; color: var(--text-2); background: var(--grey-150); border-radius: 999px;
  min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; }
[data-theme="night"] .td-slot__n { background: var(--surface-muted); }
.td-slot__acts { margin-left: auto; display: flex; gap: 6px; }
.td-slot__btn, .td-slot__magic { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; display: grid; place-items: center; font-size: 16px; color: var(--ink); }
.td-slot__magic { border-color: var(--coral-soft); background: #FFF1F1; color: var(--coral); }
[data-theme="night"] .td-slot__magic { background: rgba(255,90,95,.14); }
.td-slot__btn:active, .td-slot__magic:active { transform: scale(.92); }
.td-slot__empty { display: flex; align-items: center; gap: 7px; width: 100%; padding: 12px 14px; border-radius: 13px;
  border: 1px dashed var(--grey-300); background: transparent; color: var(--text-3); font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.td-slot__empty i { font-size: 15px; }
.td-slot__items { display: flex; flex-direction: column; gap: 8px; }
.td-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow-sm); }
.td-card__grab { color: var(--grey-300); font-size: 17px; cursor: grab; flex: none; display: grid; place-items: center; }
.td-card__thumb { width: 44px; height: 44px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(145deg, #f3f4f2, #e7e9e4); overflow: hidden; }
[data-theme="night"] .td-card__thumb { background: var(--surface-muted); }
.td-card__body { flex: 1; min-width: 0; }
.td-card__eye { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); }
.td-card__body b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-card__price { font-size: 11.5px; color: var(--text-2); }
.td-card__x { width: 28px; height: 28px; border-radius: 8px; border: none; background: transparent; color: var(--text-3);
  cursor: pointer; display: grid; place-items: center; font-size: 15px; flex: none; }
.td-card__x:active { background: var(--grey-150); }

/* toast */
.td-toast { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: inline-flex;
  align-items: center; gap: 7px; max-width: 88%; padding: 11px 16px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow-lg); animation: rise .2s ease-out; white-space: nowrap; }
.td-toast i { font-size: 15px; color: #FFD08A; }
[data-theme="night"] .td-toast { background: #2A3142; border: 1px solid var(--border); }

/* --- extended forms (booking / transport / expense) --- */
.td-form__lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 4px 0 -2px; }
.td-form__two { display: flex; gap: 8px; }
.td-form__two .td-form__in:first-child { flex: 1; }
.td-form__two .td-form__in:last-child { width: 84px; flex: none; }
.td-form__link { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 11px;
  border: 1.5px solid var(--border); background: var(--surface); }
.td-form__link i { font-size: 16px; color: var(--text-3); }
.td-form__link input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: inherit; font-size: 13.5px; color: var(--ink); }
.td-form__link:focus-within { border-color: var(--coral); box-shadow: var(--ring-accent, 0 0 0 3px rgba(255,90,95,.12)); }
.td-detect { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; cursor: pointer; padding: 9px 11px;
  border-radius: 11px; border: 1px solid color-mix(in srgb, var(--magic) 24%, var(--border)); font-family: inherit; font-size: 12px; color: var(--text-2);
  background: linear-gradient(120deg, color-mix(in srgb, var(--magic) 9%, var(--surface)), var(--surface)); }
.td-detect i { font-size: 15px; color: var(--magic-deep); }
.td-detect b { color: var(--ink); font-weight: 700; }
/* segmented (proposal / confirmed) */
.td-seg { display: flex; gap: 4px; padding: 4px; background: var(--grey-150); border-radius: 12px; }
[data-theme="night"] .td-seg { background: var(--surface-muted); }
.td-seg__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 36px; border: none;
  border-radius: 9px; background: transparent; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.td-seg__btn i { font-size: 15px; }
.td-seg__btn.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
/* transport mode picker */
.td-modes { display: flex; gap: 6px; }
.td-mode { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-family: inherit; color: var(--text-2); }
.td-mode i { font-size: 19px; }
.td-mode span { font-size: 10.5px; font-weight: 700; }
.td-mode.on { border-color: var(--coral); background: #FFF6F6; color: var(--coral-hover); }
[data-theme="night"] .td-mode.on { background: rgba(255,90,95,.12); }
/* expense payers / split */
.td-payers { display: flex; flex-wrap: wrap; gap: 7px; }
.td-payer, .td-split { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 5px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.td-payer__av { width: 26px; height: 26px; border-radius: 999px; background: var(--c, var(--coral)); display: grid; place-items: center; font-size: 14px; }
.td-payer.on { border-color: var(--coral); background: #FFF1F1; color: var(--coral-hover); }
.td-split.on { border-color: var(--success); background: color-mix(in srgb, var(--success) 10%, var(--surface)); color: var(--success); }
.td-split.on i { color: var(--success); }
[data-theme="night"] .td-payer.on { background: rgba(255,90,95,.14); }
/* receipt attach */
.td-attach { display: flex; gap: 8px; }
.td-attach__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 11px;
  border: 1px dashed var(--grey-300); background: transparent; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.td-attach__btn i { font-size: 16px; }
.td-attach__btn.on { border-style: solid; border-color: var(--success); color: var(--success); }
.td-attach__ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--success); }
.td-attach__ok i { font-size: 14px; }
/* balances (splitwise) */
.td-bal { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.td-bal__row { display: flex; align-items: center; gap: 9px; padding: 10px 13px; }
.td-bal__row + .td-bal__row { border-top: 1px solid var(--border); }
.td-bal__row b { flex: 1; font-size: 13px; font-weight: 700; color: var(--ink); }
.td-bal__v { font-size: 12.5px; font-weight: 800; }
.td-bal__v.pos { color: var(--success); }
.td-bal__v.neg { color: var(--coral-hover); }
.td-bal__v.zero { color: var(--text-3); font-weight: 700; }

/* --- shared notes + comment thread --- */
.td-notewrap { display: flex; flex-direction: column; gap: 10px; }
.td-note__by { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.td-thread { display: flex; flex-direction: column; gap: 10px; }
.td-cmt { display: flex; gap: 9px; align-items: flex-start; }
.td-cmt__av { width: 28px; height: 28px; border-radius: 999px; background: var(--c, var(--coral)); flex: none; display: grid; place-items: center; font-size: 15px; }
.td-cmt__bub { flex: 1; min-width: 0; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 4px 13px 13px 13px; padding: 9px 12px; }
.td-cmt__bub b { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.td-cmt__when { font-size: 10.5px; font-weight: 600; color: var(--text-3); }
.td-cmt__bub p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text); }
.td-cmt__add { display: flex; align-items: center; gap: 9px; }
.td-cmt__add input { flex: 1; min-width: 0; height: 40px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-family: inherit; font-size: 13px; color: var(--ink); outline: none; }
.td-cmt__add input:focus { border-color: var(--coral); box-shadow: var(--ring-accent, 0 0 0 3px rgba(255,90,95,.12)); }
.td-cmt__send { width: 40px; height: 40px; flex: none; border-radius: 999px; border: none; background: var(--coral); color: #fff;
  cursor: pointer; display: grid; place-items: center; font-size: 17px; }
.td-cmt__send:disabled { opacity: .4; cursor: default; }

/* hide every scrollbar in the app */
.ym *, .ym { scrollbar-width: none; -ms-overflow-style: none; }
.ym *::-webkit-scrollbar, .ym::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* ============ MISC SHEETS ============ */
.ph { text-align: center; padding: 30px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ph i { font-size: 34px; color: var(--text-3); }
.ph b { font-family: var(--font-display); font-size: 17px; }
.ph p { font-size: 13px; color: var(--text-2); line-height: 1.5; margin: 0; }
.usage { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 6px 0 4px; }
.usage__big { width: 64px; height: 64px; border-radius: 18px; background: var(--brand-gradient); color: #fff;
  display: grid; place-items: center; font-size: 34px; margin: 8px 0 4px; }
.usage b { font-family: var(--font-display); font-size: 18px; }
.usage p { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.5; }

/* ============ PAGE SHELL (around the phone) ============ */
.wrap { min-height: 100vh; background: #ECECEA; display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px 70px; font-family: var(--font-body), system-ui, sans-serif; color: var(--ink); }
.lead { max-width: 720px; width: 100%; text-align: center; }
.lead__eye { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.lead h1 { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; margin: 0 0 10px; }
.lead__sub { font-size: 14.5px; line-height: 1.55; color: #4b4b4b; margin: 0 auto 20px; max-width: 560px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip i { font-size: 16px; color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on i { color: #fff; }
.stage { position: relative; }

/* ============ TRIP DETAIL — v2 additions ============ */
/* section head, tight variant (used inside modals) */
.td-sec__hd.tight { margin-top: 4px; }
.td-sec__hd.tight .td-sec__title { font-size: 14px; }
.td-sec__ico.slate { background: var(--grey-150); color: var(--ink-2); }
[data-theme="night"] .td-sec__ico.slate { background: var(--surface-muted); }

/* --- generic modal (members / detail) --- */
.td-modal__scrim { position: absolute; inset: 0; z-index: 70; background: rgba(15,22,32,.42); animation: fade .16s ease-out; }
.td-modal { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 71; max-height: 90%;
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .24s cubic-bezier(0.2,0,0,1); }
.td-modal__hd { flex: none; display: flex; align-items: center; gap: 11px; padding: 14px 14px 12px; border-bottom: 1px solid var(--border); }
.td-modal__ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 20px; }
.td-modal__ico.coral { background: #FFECEC; color: var(--coral); }
.td-modal__ico.blue { background: #E8EFFB; color: var(--info-blue); }
[data-theme="night"] .td-modal__ico.coral { background: rgba(255,90,95,.16); }
[data-theme="night"] .td-modal__ico.blue { background: rgba(37,99,235,.18); }
.td-modal__id { flex: 1; min-width: 0; }
.td-modal__id b { display: block; font-family: var(--font-display); font-size: 16.5px; font-weight: 700; letter-spacing: -.01em;
  color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-modal__id span { font-size: 12px; color: var(--text-2); font-weight: 600; }
.td-modal__x { width: 32px; height: 32px; flex: none; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.td-modal__body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.td-modal__foot { flex: none; padding: 12px 14px; border-top: 1px solid var(--border); }
.td-modal__foots { display: flex; gap: 8px; }
.td-modal__cta { width: 100%; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 13px; border: none; background: var(--coral); color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.td-modal__foots .td-modal__cta { flex: 1; }
.td-modal__cta i { font-size: 17px; }
.td-modal__ghost { flex: 1; height: 46px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

/* --- members overview --- */
.td-mlist { display: flex; flex-direction: column; gap: 8px; }
.td-member { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 11px; padding: 11px 12px;
  border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.td-member.me { border-color: var(--coral-soft); background: #FFF7F7; }
[data-theme="night"] .td-member.me { background: rgba(255,90,95,.08); }
.td-member__av { width: 40px; height: 40px; border-radius: 999px; background: var(--c, var(--coral)); flex: none;
  display: grid; place-items: center; font-size: 19px; }
.td-member__id { flex: 1; min-width: 0; }
.td-member__id b { display: flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.td-member__you { font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--coral);
  background: #FFECEC; border-radius: 999px; padding: 2px 7px; }
[data-theme="night"] .td-member__you { background: rgba(255,90,95,.18); }
.td-member__more { width: 32px; height: 32px; flex: none; border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.td-role { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; font-weight: 700; }
.td-role i { font-size: 13px; }
.td-role.coral { color: var(--coral); }
.td-role.blue { color: var(--info-blue); }
.td-role.slate { color: var(--text-2); }
.td-member__panel { flex-basis: 100%; border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 2px; }
.td-roleseg { display: flex; gap: 6px; margin-bottom: 10px; }
.td-roleseg__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.td-roleseg__btn i { font-size: 15px; }
.td-roleseg__btn.on { border-color: var(--coral); background: #FFF1F1; color: var(--coral-hover); }
[data-theme="night"] .td-roleseg__btn.on { background: rgba(255,90,95,.14); }
.td-member__remove { display: inline-flex; align-items: center; gap: 6px; width: 100%; height: 40px; justify-content: center; border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--danger-alt) 30%, var(--border)); background: transparent; color: var(--danger-alt);
  cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; }
.td-member__remove i { font-size: 16px; }

/* --- detail modal rows / pdf / note --- */
.td-detail { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.td-drow { display: flex; align-items: baseline; gap: 12px; padding: 10px 13px; }
.td-drow + .td-drow { border-top: 1px solid var(--border); }
.td-drow span { flex: none; width: 96px; font-size: 12px; font-weight: 700; color: var(--text-3); }
.td-drow b { flex: 1; font-size: 13.5px; font-weight: 700; color: var(--ink); text-align: right; }
.td-note__hint { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.td-note__hint i { font-size: 14px; }
.td-notes.sm { min-height: 72px; font-size: 13px; }
/* pdf */
.td-pdf { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--coral-soft); background: color-mix(in srgb, var(--coral) 5%, var(--surface)); font-family: inherit; text-align: left; }
.td-pdf__ico { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 21px; color: #D8443B; background: #FDECEA; }
[data-theme="night"] .td-pdf__ico { background: rgba(216,68,59,.18); }
.td-pdf__txt { flex: 1; min-width: 0; }
.td-pdf__txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.td-pdf__txt span { font-size: 11.5px; color: var(--text-2); }
.td-pdfview { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.td-pdfview__bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--surface-muted); border-bottom: 1px solid var(--border); }
.td-pdfview__bar i { color: #D8443B; font-size: 17px; }
.td-pdfview__bar b { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.td-pdfview__bar button { width: 28px; height: 28px; border-radius: 8px; border: none; background: transparent; color: var(--text-2); cursor: pointer; font-size: 15px; }
.td-pdfview__page { padding: 14px; background: repeating-linear-gradient(45deg, var(--grey-150), var(--grey-150) 10px, var(--surface-muted) 10px, var(--surface-muted) 20px); display: grid; place-items: center; }
.td-pdfdoc { width: 100%; background: #fff; border-radius: 6px; box-shadow: var(--shadow-lg); padding: 18px 16px; color: #1c1c1c; }
.td-pdfdoc__logo { font-family: var(--font-display); font-size: 13px; font-weight: 800; color: #003b95; margin-bottom: 12px; }
.td-pdfdoc h4 { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #0a7d33; }
.td-pdfdoc__line { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding: 5px 0; border-bottom: 1px dashed #e4e4e4; }
.td-pdfdoc__line span { color: #777; }
.td-pdfdoc__line b { color: #1c1c1c; text-align: right; }
.td-pdfdoc__line.total { border-bottom: none; margin-top: 4px; font-size: 13.5px; }
.td-pdfdoc__foot { margin: 12px 0 0; font-size: 10.5px; color: #999; line-height: 1.5; }

/* --- vote bar (detail) + mini votes (list) --- */
.td-vote { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 13px;
  border: 1px solid color-mix(in srgb, var(--magic) 22%, var(--border)); background: linear-gradient(120deg, color-mix(in srgb, var(--magic) 7%, var(--surface)), var(--surface)); }
.td-vote__lbl { flex: 1; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.td-vote__btn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: 13px; font-weight: 800; color: var(--text-2); }
.td-vote__btn i { font-size: 16px; }
.td-vote__btn.up.on { border-color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface)); color: var(--success); }
.td-vote__btn.down.on { border-color: var(--danger-alt); background: color-mix(in srgb, var(--danger-alt) 12%, var(--surface)); color: var(--danger-alt); }
.td-vote__who { display: inline-flex; }
.td-vote__av { width: 22px; height: 22px; border-radius: 999px; background: var(--c, var(--coral)); border: 2px solid var(--surface);
  display: grid; place-items: center; font-size: 11px; margin-left: -7px; }
.td-vote__av:first-child { margin-left: 0; }
/* mini votes in the list row */
.td-votemini { display: inline-flex; gap: 5px; flex: none; }
.td-votemini__b { display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 9px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: 11.5px; font-weight: 800; color: var(--text-2); }
.td-votemini__b i { font-size: 14px; }
.td-votemini__b.up.on { border-color: var(--success); color: var(--success); background: color-mix(in srgb, var(--success) 10%, var(--surface)); }
.td-votemini__b.down.on { border-color: var(--danger-alt); color: var(--danger-alt); background: color-mix(in srgb, var(--danger-alt) 10%, var(--surface)); }

/* pressable list row + rejected + red delete */
.td-line.press { cursor: pointer; }
.td-line.press:active { background: var(--surface-muted); }
.td-line.rejected { opacity: .5; }
.td-line.rejected .td-line__txt b { text-decoration: line-through; }
.td-line__x.danger { color: #fff; background: var(--danger-alt); }
.td-line__x.danger:active { filter: brightness(.92); }
.td-notechip { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; vertical-align: middle; }
.td-notechip__av { width: 15px; height: 15px; border-radius: 999px; background: var(--c, var(--coral)); display: inline-grid; place-items: center; font-size: 9px; }
.td-notechip i { font-size: 12px; color: var(--magic-deep); }

/* --- balances dropdown toggle --- */
.td-baltog { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px 13px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; }
.td-baltog__txt { font-size: 13px; font-weight: 700; color: var(--ink); }
.td-baltog__me { flex: 1; text-align: left; font-size: 12.5px; font-weight: 800; }
.td-baltog__me.pos { color: var(--success); }
.td-baltog__me.neg { color: var(--coral-hover); }
.td-baltog__me.zero { color: var(--text-3); }
.td-baltog.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: none; }
.td-baltog.open i:last-child { transform: rotate(180deg); }
.td-baltog.open + .td-bal { border-top-left-radius: 0; border-top-right-radius: 0; }

/* --- place tags --- */
.td-place { flex-direction: column; align-items: stretch; gap: 0; }
.td-place__main { display: flex; align-items: center; gap: 11px; }
.td-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--border); }
.td-tag { display: inline-flex; align-items: center; gap: 4px; height: 23px; padding: 0 9px 0 3px; border-radius: 999px;
  background: var(--surface-muted); border: 1px solid var(--border); font-size: 11px; font-weight: 600; color: var(--ink); }
.td-tag__av { width: 17px; height: 17px; border-radius: 999px; background: var(--c, var(--coral)); display: grid; place-items: center; font-size: 9.5px; }
.td-tag.add { padding: 0 9px; height: 23px; color: var(--text-3); border-style: dashed; cursor: pointer; font-family: inherit; font-weight: 700; }
.td-tag.add i { font-size: 12px; }
.td-tag.add:active { border-color: var(--coral); color: var(--coral); }
.td-tag__input input { height: 23px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--coral-soft); outline: none;
  background: var(--surface); font-family: inherit; font-size: 11px; color: var(--ink); width: 128px; }

/* --- micro calendar (day picker) --- */
.td-cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 12px; }
.td-calcell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px 6px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-family: inherit; }
.td-calcell__dow { font-size: 9.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; }
.td-calcell b { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.td-calcell i { position: absolute; top: 4px; right: 5px; color: var(--coral); }
.td-calcell.on { border-color: var(--coral); background: #FFF1F1; }
.td-calcell.on b { color: var(--coral-hover); }
[data-theme="night"] .td-calcell.on { background: rgba(255,90,95,.14); }
.td-calcell.today { border-color: var(--info-blue); }
.td-calcell__now { font-size: 8px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--info-blue); }
.td-calcell.done { opacity: .42; cursor: default; }
.td-calcell.done b { text-decoration: line-through; }

/* --- transport form: from→to city pickers + day pick --- */
.td-fromto { display: flex; align-items: stretch; gap: 8px; }
.td-cityfield { position: relative; flex: 1; min-width: 0; }
.td-citybtn { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; height: 52px; padding: 7px 12px; border-radius: 11px;
  border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font-family: inherit; position: relative; text-align: left; }
.td-cityfield__lbl { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.td-citybtn b { font-size: 14px; font-weight: 700; color: var(--ink); }
.td-citybtn i { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); }
.td-fromto__arw { flex: none; align-self: center; color: var(--text-3); font-size: 16px; }
.td-citylist { position: absolute; left: 0; right: 0; top: calc(100% + 5px); z-index: 46; max-height: 220px; overflow-y: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--shadow-lg); animation: fade .14s ease-out; }
.td-cityrow { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 10px; border-radius: 9px; border: none;
  background: transparent; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink); }
.td-cityrow i { font-size: 15px; color: var(--text-3); }
.td-cityrow.on { background: #FFF1F1; color: var(--coral-hover); }
.td-cityrow:active { background: var(--surface-muted); }
[data-theme="night"] .td-cityrow.on { background: rgba(255,90,95,.14); }
.td-daypick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.td-daypick::-webkit-scrollbar { display: none; }
.td-daypick__c { flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; width: 52px; padding: 7px 2px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-family: inherit; }
.td-daypick__c span { font-size: 9.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; }
.td-daypick__c b { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--ink); }
.td-daypick__c.on { border-color: var(--coral); background: #FFF1F1; }
.td-daypick__c.on b { color: var(--coral-hover); }
.td-daypick__c.done { opacity: .42; cursor: default; }
[data-theme="night"] .td-daypick__c.on { background: rgba(255,90,95,.14); }

/* --- day view greying (done / past) --- */
.td-daychip i { color: var(--success); font-size: 14px; }
.td-daychip.done { opacity: .55; }
.td-daychip.done b { color: var(--text-2); }
.td-daychip.today:not(.on) { border-color: var(--info-blue); }
.td-daychip__now { font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--info-blue); }
.td-daychip.on .td-daychip__now { color: #fff; }
.td-daychip.on i { color: #fff; }
.td-dayblock.done { opacity: .6; }
.td-dayhd__done { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; color: var(--success); }
.td-dayhd__done i { font-size: 15px; }
.td-dayhd__today { font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--info-blue);
  background: #E8EFFB; border-radius: 999px; padding: 3px 9px; }
[data-theme="night"] .td-dayhd__today { background: rgba(37,99,235,.18); }
.td-slot.past { opacity: .5; }
.td-slot.past .td-slot__ico { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, var(--border)); }
.td-slot__done { font-size: 11.5px; color: var(--text-3); font-style: italic; padding: 2px 0 6px; }

/* ============ TRIP DETAIL — v3 (detail facts, expense split, slot picker) ============ */
/* detail: icon-led fact rows (single column, no gap-bar) */
.td-facts { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 15px; overflow: hidden; background: var(--surface); }
.td-fact { display: flex; align-items: center; gap: 11px; padding: 10px 13px; text-decoration: none; }
.td-fact + .td-fact { border-top: 1px solid var(--border); }
.td-fact__ic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 16px;
  background: var(--surface-muted); color: var(--text-2); }
.td-fact__c { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.td-fact__c span { font-size: 12px; font-weight: 600; color: var(--text-3); flex: none; }
.td-fact__c b { font-size: 13.5px; font-weight: 700; color: var(--ink); text-align: right; }
.td-fact.accent .td-fact__ic { background: #FFECEC; color: var(--coral); }
.td-fact.accent .td-fact__c b { color: var(--coral); font-family: var(--font-display); font-size: 15px; }
[data-theme="night"] .td-fact.accent .td-fact__ic { background: rgba(255,90,95,.16); }
/* tappable link facts (Maps / booking page / tracker / route) */
.td-fact.link { cursor: pointer; }
.td-fact.link .td-fact__ic { background: #E8EFFB; color: var(--info-blue); }
[data-theme="night"] .td-fact.link .td-fact__ic { background: rgba(37,99,235,.18); }
.td-fact.link .td-fact__c { flex-direction: column; align-items: flex-start; gap: 1px; }
.td-fact.link .td-fact__c span { font-size: 13px; font-weight: 700; color: var(--info-blue); }
.td-fact.link .td-fact__c b { font-size: 11.5px; font-weight: 500; color: var(--text-2); text-align: left; }
.td-fact.link:active { background: color-mix(in srgb, var(--info-blue) 6%, var(--surface)); }

/* expense detail: receipt doc + AI itemise */
.td-pdf__ico.rc { color: var(--success); background: #E6F4EC; }
[data-theme="night"] .td-pdf__ico.rc { background: rgba(14,159,110,.16); }
.td-receiptdoc { width: 100%; max-width: 260px; background: #fff; border-radius: 6px; box-shadow: var(--shadow-lg); padding: 16px 16px 18px; color: #1c1c1c;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.td-receiptdoc__hd { text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px dashed #d0d0d0; }
.td-receiptdoc__ln { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; padding: 3px 0; }
.td-receiptdoc__ln.sub { color: #888; }
.td-receiptdoc__ln.tot { margin-top: 6px; padding-top: 8px; border-top: 1px dashed #d0d0d0; font-size: 13px; font-weight: 700; }
.td-aihint { display: flex; gap: 7px; padding: 10px 12px; border-radius: 12px; font-size: 12px; line-height: 1.45; color: var(--text-2);
  border: 1px solid color-mix(in srgb, var(--magic) 22%, var(--border)); background: linear-gradient(120deg, color-mix(in srgb, var(--magic) 7%, var(--surface)), var(--surface)); }
.td-aihint i { font-size: 16px; color: var(--magic-deep); flex: none; }
.td-aihint b { color: var(--ink); font-weight: 700; }
.td-items { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.td-item + .td-item { border-top: 1px solid var(--border); }
.td-item__hd { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: none; background: transparent;
  cursor: pointer; font-family: inherit; text-align: left; }
.td-item__hd:active { background: var(--surface-muted); }
.td-item__txt { flex: 1; min-width: 0; }
.td-item__txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.td-item__txt span { font-size: 11px; color: var(--text-2); }
.td-item__amt { font-size: 13px; font-weight: 800; color: var(--ink); flex: none; }
.td-item__who { display: inline-flex; flex: none; }
.td-item__av { width: 22px; height: 22px; border-radius: 999px; background: var(--c, var(--coral)); border: 2px solid var(--surface);
  display: grid; place-items: center; font-size: 11px; margin-left: -7px; }
.td-item__av:first-child { margin-left: 0; }
.td-item__pick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.td-pickchip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px 0 4px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--ink); }
.td-pickchip.on { border-color: var(--success); background: color-mix(in srgb, var(--success) 10%, var(--surface)); color: var(--success); }
.td-pickchip.on i { color: var(--success); }
.td-extras { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-2); padding: 2px 2px; }
.td-extras i { font-size: 15px; color: var(--text-3); }
.td-extras b { color: var(--ink); font-weight: 700; }
.td-owe { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.td-owe__row { display: flex; align-items: center; gap: 9px; padding: 10px 13px; }
.td-owe__row + .td-owe__row { border-top: 1px solid var(--border); }
.td-owe__row b { flex: 1; font-size: 13.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.td-owe__paid { font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, var(--surface)); border-radius: 999px; padding: 2px 7px; }
.td-owe__amt { font-size: 14px; font-weight: 800; color: var(--coral); font-family: var(--font-display); }

/* slot-add picker (Day → empty slot) */
.td-place__thumb.sm { width: 38px; height: 38px; font-size: 20px; border-radius: 10px; }
.td-picklist { display: flex; flex-direction: column; gap: 6px; }
.td-pickrow { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 13px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; text-align: left; }
.td-pickrow:active { background: var(--surface-muted); }
.td-pickrow__txt { flex: 1; min-width: 0; }
.td-pickrow__txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-pickrow__txt span { font-size: 11px; color: var(--text-2); }
.td-pickrow__add { width: 30px; height: 30px; flex: none; border-radius: 999px; display: grid; place-items: center; font-size: 16px;
  background: #FFECEC; color: var(--coral); }
[data-theme="night"] .td-pickrow__add { background: rgba(255,90,95,.16); }

/* trip-setup connector: subtle "editable" affordance on the mode chip */
.conn__mode { overflow: visible; }
.conn__mode-edit { position: absolute; right: -4px; bottom: -4px; width: 13px; height: 13px; border-radius: 999px;
  background: var(--coral); color: #fff; display: grid; place-items: center; border: 1.5px solid var(--surface); }
.conn__mode-edit i { font-size: 8px; }
.conn__mode.on .conn__mode-edit { display: none; }

/* ============ TRIP DETAIL — v4 (comment round 3) ============ */
/* note / comment indicator: small stacked profile avatars */
.td-noteav { display: inline-flex; align-items: center; margin-left: 7px; vertical-align: -4px; }
.td-noteav__av { width: 17px; height: 17px; border-radius: 999px; background: var(--c, var(--coral)); border: 1.5px solid var(--surface);
  display: grid; place-items: center; font-size: 9.5px; margin-left: -6px; }
.td-noteav__av:first-child { margin-left: 0; }
.td-line > .td-noteav { margin-left: 0; flex: none; }

/* detail: PDF/receipt attach — no red background */
.td-pdf { background: var(--surface); }
.td-pdf__ico { color: var(--info-blue); background: #E8EFFB; }
[data-theme="night"] .td-pdf__ico { background: rgba(37,99,235,.18); }
.td-pdfview__bar i { color: var(--info-blue); }

/* forms: PDF/receipt-first drop zone + AI summary + or-divider */
.td-pdfdrop { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 1.5px dashed color-mix(in srgb, var(--coral) 40%, var(--border)); background: color-mix(in srgb, var(--coral) 5%, var(--surface)); font-family: inherit; }
.td-pdfdrop.on { border-style: solid; border-color: var(--success); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.td-pdfdrop__ico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 21px; background: #FFECEC; color: var(--coral); }
.td-pdfdrop.on .td-pdfdrop__ico { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); }
[data-theme="night"] .td-pdfdrop__ico { background: rgba(255,90,95,.16); }
.td-pdfdrop__txt { flex: 1; min-width: 0; }
.td-pdfdrop__txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.td-pdfdrop__txt span { font-size: 11.5px; color: var(--text-2); }
.td-pdfsummary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; font-size: 12px; color: var(--text-2);
  background: color-mix(in srgb, var(--magic) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--magic) 20%, var(--border)); }
.td-pdfsummary i { font-size: 15px; color: var(--magic-deep); flex: none; }
.td-pdfsummary b { color: var(--ink); font-weight: 700; }
.td-orline { display: flex; align-items: center; gap: 10px; margin: 1px 0; color: var(--text-3); font-size: 11px; font-weight: 700; }
.td-orline::before, .td-orline::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* slot-add: Magic suggest row (logo, not a circled button) */
.td-magicrow { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 1px solid color-mix(in srgb, var(--magic) 24%, var(--border)); background: linear-gradient(120deg, color-mix(in srgb, var(--magic) 8%, var(--surface)), var(--surface)); font-family: inherit; margin-bottom: 4px; }
.td-magicrow__logo { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-sm); }
.td-magicrow__logo .td-logo { width: 20px; height: 20px; }
.td-magicrow__txt { flex: 1; min-width: 0; }
.td-magicrow__txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.td-magicrow__txt span { font-size: 11.5px; color: var(--text-2); }

/* detail: (legacy link cells removed — now .td-fact.link) */

/* transport: itinerary-derived date hint */
.td-fromitin { display: inline-flex; align-items: center; gap: 4px; margin-left: 7px; font-size: 9.5px; font-weight: 800; letter-spacing: .02em;
  text-transform: none; color: var(--info-blue); }
.td-fromitin i { font-size: 12px; }
.td-daypick__c { position: relative; }
.td-daypick__dot { position: absolute; top: 5px; right: 6px; width: 5px; height: 5px; border-radius: 999px; background: var(--info-blue); }

/* places: per-place tag trigger + count (row hidden until a tag exists) */
.td-place__tagbtn { position: relative; width: 32px; height: 32px; flex: none; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.td-place__tagbtn.has { color: var(--magic-deep); border-color: color-mix(in srgb, var(--magic) 30%, var(--border)); }
.td-place__tagbtn:active { transform: scale(.94); }
.td-place__tagn { position: absolute; top: -5px; right: -5px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px;
  background: var(--magic-deep); color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; }

/* places: "Add a place" — Magic Add (logo) */
.td-logo { width: 1em; height: 1em; object-fit: contain; display: inline-block; vertical-align: -0.15em; }
.td-slot__magic .td-logo { width: 18px; height: 18px; }
.td-addplace { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--coral-soft); background: color-mix(in srgb, var(--coral) 5%, var(--surface)); font-family: inherit; text-align: left; }
.td-addplace:active { transform: scale(.99); }
.td-addplace__logo { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-sm); }
.td-addplace__logo .td-logo { width: 22px; height: 22px; }
.td-addplace__txt { flex: 1; min-width: 0; }
.td-addplace__txt b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.td-addplace__txt span { font-size: 11.5px; color: var(--text-2); }
.td-modal__cta.magic { background: var(--magic-deep); }
.td-modal__cta.magic .td-logo { width: 18px; height: 18px; }

/* premium gate badge on upload affordances */
.td-premium { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: .02em;
  color: #B8860B; background: #FCF3D9; border-radius: 999px; padding: 3px 7px; }
.td-premium i { font-size: 11px; }
[data-theme="night"] .td-premium { color: #F5C451; background: rgba(245,196,81,.16); }

/* ============ TRIP SWITCHER ============ */
.trippill { display: none; }
/* trip title as a switcher in the detail header */
.td-title--switch { border: none; background: none; cursor: pointer; font-family: inherit; padding: 3px 6px 3px 2px; border-radius: 10px; }
.td-title--switch:active { background: var(--surface-muted); }
.tripsw__explore { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px; border-radius: 15px; cursor: pointer;
  border: 1px solid var(--coral-soft); background: color-mix(in srgb, var(--coral) 5%, var(--surface)); font-family: inherit; text-align: left; margin-bottom: 4px; }
.tripsw__ico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 20px; background: #FFECEC; color: var(--coral); }
[data-theme="night"] .tripsw__ico { background: rgba(255,90,95,.16); }
.tripsw__txt { flex: 1; min-width: 0; }
.tripsw__txt b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.tripsw__txt span { font-size: 11.5px; color: var(--text-2); }
.triprow { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border: none; background: transparent;
  cursor: pointer; font-family: inherit; text-align: left; }
.triprow + .triprow { border-top: 1px solid var(--border); }
.triprow:active { background: var(--surface-muted); }
.triprow.on { background: color-mix(in srgb, var(--coral) 5%, var(--surface)); }
.triprow__flag { font-size: 24px; flex: none; }
.triprow__txt { flex: 1; min-width: 0; }
.triprow__txt b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.triprow__txt span { font-size: 11.5px; color: var(--text-2); }
.triprow__now { font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--coral);
  background: #FFECEC; border-radius: 999px; padding: 3px 9px; }
[data-theme="night"] .triprow__now { background: rgba(255,90,95,.16); }

/* paste sheet: trip-scoped city flag */
.paste-city__flag { font-size: 15px; margin-right: 2px; }

/* ============ FRIENDS + SHARE MY PROFILE ============ */
.shareme { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; padding: 16px; border-radius: 18px; margin-bottom: 6px;
  border: 1px solid var(--coral-soft); background: linear-gradient(140deg, color-mix(in srgb, var(--coral) 8%, var(--surface)), var(--surface)); }
.shareme__av { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 999px; background: var(--c, var(--coral)); display: grid; place-items: center;
  font-size: 26px; box-shadow: var(--shadow-sm); }
.shareme__id b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); }
.shareme__id span { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.shareme__qr { border-radius: 11px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); }
.shareme__hint { grid-column: 1 / -1; margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-2); }
.shareme__row { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 10px; }
.shareme__btn { flex: 1; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.shareme__btn i { font-size: 16px; }
.shareme__btn.primary { flex: 1.4; border: none; background: var(--coral); color: #fff; }
.shareme__btn:active { transform: scale(.98); }
/* friend rows */
.frow2 { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; }
.frow2 + .frow2 { border-top: 1px solid var(--border); }
.frow2__av { width: 38px; height: 38px; border-radius: 999px; flex: none; background: var(--c, var(--coral)); display: grid; place-items: center; font-size: 18px; }
.frow2__id { flex: 1; min-width: 0; }
.frow2__id b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.frow2__id span { font-size: 11.5px; color: var(--text-2); }
.frow2__x { width: 32px; height: 32px; flex: none; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.frow2__acts { display: flex; gap: 6px; flex: none; }
.frow2__ok, .frow2__no { width: 34px; height: 34px; border-radius: 10px; border: none; cursor: pointer; display: grid; place-items: center; font-size: 17px; }
.frow2__ok { background: var(--coral); color: #fff; }
.frow2__no { background: var(--surface-muted); color: var(--text-2); }
.frow2__ok:active, .frow2__no:active { transform: scale(.92); }
.frow2 { position: relative; }
.frow2__x.on { border-color: var(--coral); color: var(--coral); background: #FFF1F1; }
[data-theme="night"] .frow2__x.on { background: rgba(255,90,95,.14); }
.frowmenu__scrim { position: fixed; inset: 0; z-index: 40; }
.frowmenu { position: absolute; right: 12px; top: 44px; z-index: 41; min-width: 190px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); }
.frowmenu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 11px; border: none; background: none;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; border-radius: 9px; text-align: left; }
.frowmenu button i { font-size: 17px; color: var(--text-2); }
.frowmenu button:active { background: var(--surface-muted); }
.frowmenu button.danger, .frowmenu button.danger i { color: var(--danger-alt); }

/* ============ QR CODE ============ */
.qr-svg { display: block; border-radius: 6px; }
.shareme__qr { position: relative; padding: 5px; border: 1px solid var(--border); cursor: pointer; }
.shareme__qr:active { transform: scale(.95); }
.shareme__qrzoom { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 999px;
  background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 12px; box-shadow: var(--shadow-sm); }
.qrmodal { position: absolute; inset: 0; z-index: 80; background: rgba(20,18,18,.55); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 24px; animation: fadein .16s ease; }
.qrmodal__card { position: relative; width: 100%; max-width: 280px; background: var(--surface); border-radius: 24px; padding: 24px 22px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--shadow-lg); }
.qrmodal__x { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 999px; border: none;
  background: var(--surface-muted); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font-size: 17px; }
.qrmodal__av { width: 52px; height: 52px; border-radius: 999px; background: var(--c, var(--coral)); display: grid; place-items: center;
  font-size: 26px; box-shadow: var(--shadow-sm); margin-bottom: 4px; }
.qrmodal__name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); }
.qrmodal__handle { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.qrmodal__qr { margin: 14px 0 8px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.qrmodal__hint { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: var(--text-2); text-align: center; }
.qrmodal__hint i { color: var(--coral); font-size: 15px; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ============ QR SCANNER ============ */
.scanner { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 4px; }
.scanner__view { position: relative; width: 100%; aspect-ratio: 1; max-width: 300px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 30%, #2a2f3a, #14171d); display: grid; place-items: center; }
.scanner__view.found { background: radial-gradient(120% 120% at 50% 40%, color-mix(in srgb, var(--success) 45%, #14171d), #14171d); }
.scanner__corner { position: absolute; width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.9); }
.scanner__corner.tl { top: 26px; left: 26px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.scanner__corner.tr { top: 26px; right: 26px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.scanner__corner.bl { bottom: 26px; left: 26px; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.scanner__corner.br { bottom: 26px; right: 26px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
.scanner__laser { position: absolute; left: 30px; right: 30px; height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--coral), transparent); box-shadow: 0 0 12px 2px var(--coral);
  animation: scan 2s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 20%; } 50% { top: 80%; } }
.scanner__hit { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #fff; animation: fadein .2s ease; }
.scanner__hitav { width: 58px; height: 58px; border-radius: 999px; background: var(--c, var(--coral)); display: grid; place-items: center;
  font-size: 30px; box-shadow: 0 0 0 4px rgba(255,255,255,.25); margin-bottom: 6px; }
.scanner__hit b { font-family: var(--font-display); font-size: 18px; }
.scanner__hit span { font-size: 12.5px; opacity: .85; }
.scanner__hint { display: flex; align-items: center; gap: 7px; margin: 2px 0; font-size: 12.5px; color: var(--text-2); }
.scanner__hint i { font-size: 16px; color: var(--coral); }

/* ============ SAVE VIA CHAT ============ */
.chat-intro { display: flex; gap: 12px; padding: 14px; border-radius: 16px; margin-bottom: 4px;
  border: 1px solid var(--border); background: linear-gradient(130deg, color-mix(in srgb, var(--info-blue) 8%, var(--surface)), var(--surface)); }
.chat-intro__ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 21px; color: #fff; background: linear-gradient(140deg, #2AABEE, #25D366); }
.chat-intro p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.chat-code { width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; cursor: pointer;
  border: 1.5px dashed var(--coral-soft); background: #FFF6F6; font-family: inherit; }
[data-theme="night"] .chat-code { background: rgba(255,90,95,.1); }
.chat-code.copied { border-style: solid; border-color: var(--coral); }
.chat-code__digits { display: flex; justify-content: center; gap: 7px; }
.chat-code__digits span { width: 38px; height: 48px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); font-family: var(--font-display); font-size: 24px; font-weight: 700;
  color: var(--coral-hover); letter-spacing: 0; }
.chat-code__meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; }
.chat-code__valid { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.chat-code__copy { display: inline-flex; align-items: center; gap: 5px; color: var(--coral); }
.chat-code__valid i, .chat-code__copy i { font-size: 15px; }
.chat-chans { display: flex; flex-direction: column; gap: 8px; }
.chat-chan { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 15px;
  border: 1px solid var(--border); background: var(--surface); }
.chat-chan.on { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); background: color-mix(in srgb, var(--success) 7%, var(--surface)); }
.chat-chan__ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 23px; color: #fff; background: var(--c, var(--coral)); }
.chat-chan__txt { flex: 1; min-width: 0; }
.chat-chan__txt b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.chat-chan__txt span { font-size: 12px; color: var(--text-2); }
.chat-chan__btn { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: none; background: var(--btn-accent-bg); color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.chat-chan__btn:active { transform: scale(.96); }
.chat-chan__wait { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--success); }
.chat-chan__wait i { font-size: 16px; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chat-how { margin-top: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface-muted); border: 1px solid var(--border); }
.chat-how__hd { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.chat-how__hd i { color: var(--coral); font-size: 17px; }
.chat-how ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.chat-how li { font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.chat-how li b { color: var(--ink); font-weight: 700; }
.chat-status { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 11px 13px; border-radius: 13px;
  background: color-mix(in srgb, var(--success) 10%, var(--surface)); color: var(--success); font-size: 12.5px; font-weight: 700; }
.chat-status i { font-size: 17px; }

/* ============ SOCIAL: tabs · rail · shots · discover ============ */
.soc-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 10px; border-radius: 12px; background: var(--grey-150); }
[data-theme="night"] .soc-tabs { background: var(--surface-muted); }
.soc-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border: none; border-radius: 9px;
  background: transparent; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--slate-500); cursor: pointer; }
.soc-tab i { font-size: 16px; }
.soc-tab.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.soc-rail { display: flex; gap: 13px; overflow-x: auto; padding: 2px 0 12px; margin: -2px -14px 6px; padding-left: 14px; padding-right: 14px;
  scrollbar-width: none; }
.soc-rail::-webkit-scrollbar { display: none; }
.soc-story { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; border: none; background: none; cursor: pointer; width: 58px; }
.soc-story__ring { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; padding: 2.5px;
  background: var(--grey-300); }
.soc-story__ring.on { background: var(--brand-gradient); }
.soc-story__av { width: 100%; height: 100%; border-radius: 999px; background: var(--c, var(--coral)); display: grid; place-items: center;
  font-size: 24px; border: 2.5px solid var(--surface); }
.soc-story__n { font-size: 11px; font-weight: 600; color: var(--text-2); max-width: 58px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fshots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.fshots.one { grid-template-columns: 1fr; }
.fshot { position: relative; display: flex; flex-direction: column; text-align: left; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; background: var(--surface); cursor: pointer; padding: 0; }
.fshot:active { transform: scale(.99); }
.fshot__cover { height: 92px; display: grid; place-items: center;
  background: linear-gradient(150deg, hsl(var(--hue) 68% 62%), hsl(calc(var(--hue) + 34) 62% 48%)); }
.fshots.one .fshot__cover { height: 120px; }
.fshot__emoji { font-size: 38px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.fshot__meta { padding: 8px 10px 10px; }
.fshot__meta b { display: block; font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fshot__meta span { font-size: 11px; color: var(--text-2); }
.fshot__go { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--coral); font-size: 15px; box-shadow: var(--shadow-sm); }

.hotgrid { columns: 2; column-gap: 9px; }
.hotcard { break-inside: avoid; margin-bottom: 9px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.hotcard__cover { position: relative; height: 96px; display: grid; place-items: center;
  background: linear-gradient(150deg, hsl(var(--hue) 68% 62%), hsl(calc(var(--hue) + 34) 62% 46%)); }
.hotcard.tall .hotcard__cover { height: 150px; }
.hotcard__emoji { font-size: 40px; filter: drop-shadow(0 2px 5px rgba(0,0,0,.28)); }
.hotcard__cat { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .02em; background: rgba(255,255,255,.92); color: var(--ink); }
.hotcard__save { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink-2); display: grid; place-items: center; font-size: 16px; }
.hotcard__save.on { color: var(--coral); }
.hotcard__save:active { transform: scale(.9); }
.hotcard__body { padding: 9px 11px 11px; }
.hotcard__body b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.25; margin-bottom: 4px; }
.hotcard__meta { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.hotcard__meta i { font-size: 13px; color: var(--coral); }
.hotcard__saves { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); margin-top: 3px; }
.hotcard__saves i { font-size: 12px; }

.followbtn { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  border: none; background: var(--btn-accent-bg); color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 700; }
.followbtn i { font-size: 15px; }
.followbtn.on { background: var(--surface-muted); color: var(--text-2); border: 1px solid var(--border); }
.followbtn:active { transform: scale(.96); }

/* ============ TRIP DETAIL — prominent switcher ============ */
.td-switch { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; cursor: pointer; font-family: inherit;
  padding: 5px 6px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); text-align: left; box-shadow: var(--shadow-sm); }
[data-theme="night"] .td-switch { background: var(--surface-muted); }
.td-switch:active { transform: scale(.985); }
.td-switch__flag { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 20px;
  background: color-mix(in srgb, var(--coral) 11%, var(--surface)); }
.td-switch__txt { flex: 1; min-width: 0; }
.td-switch__eye { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.td-switch__txt b { display: block; font-family: var(--font-display); font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; color: var(--ink);
  line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-switch__caret { flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--surface-muted); color: var(--text-2);
  display: grid; place-items: center; font-size: 15px; }
[data-theme="night"] .td-switch__caret { background: rgba(255,255,255,.08); }

/* day slot — Add more (only when a place exists) */
.td-slot__more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 2px; padding: 7px 13px; border-radius: 999px;
  border: 1px dashed var(--coral-soft); background: transparent; color: var(--coral); font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.td-slot__more i { font-size: 15px; }
.td-slot__more:active { transform: scale(.96); background: #FFF1F1; }

/* browsing — no active trip */
.td-browse { gap: 12px; }
.td-browse__hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 18px;
  border-radius: 20px; border: 1px solid var(--border); background: var(--surface-muted); }
.td-browse__ico { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-gradient); color: #fff; display: grid; place-items: center; font-size: 27px; }
.td-browse__hero b { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.td-browse__hero p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); max-width: 280px; }
.td-browse__cta { margin-top: 6px; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 18px; border-radius: 13px;
  border: none; background: var(--btn-accent-bg); color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.td-browse__cta i { font-size: 17px; }
.td-browse__cta:active { transform: scale(.98); }
.td-ghost { border: 1px solid var(--border); border-radius: 16px; padding: 14px; opacity: .55; }
.td-ghost__hd { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.td-ghost__ico { width: 30px; height: 30px; border-radius: 9px; background: var(--grey-150); color: var(--text-3); display: grid; place-items: center; font-size: 16px; }
[data-theme="night"] .td-ghost__ico { background: var(--surface-muted); }
.td-ghost__hd b { font-family: var(--font-display); font-size: 14px; color: var(--text-3); }
.td-ghost__rows { display: flex; flex-direction: column; gap: 8px; }
.td-ghost__row { height: 14px; border-radius: 7px; background: var(--grey-150); }
.td-ghost__row:nth-child(2) { width: 65%; }
[data-theme="night"] .td-ghost__row { background: var(--surface-muted); }

/* ============ RECENT SOURCES ============ */
.src-sum { display: grid; grid-template-columns: repeat(3, 1fr); padding: 15px 4px; margin-bottom: 12px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface-muted); }
.src-sum__cell { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; text-align: center; padding: 0 6px; }
.src-sum__cell + .src-sum__cell { border-left: 1px solid var(--border); }
.src-sum__cell b { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--ink); }
.src-sum__cell span { font-size: 11px; font-weight: 600; color: var(--text-2); }
.src-sum__div { width: 1px; align-self: stretch; margin: 4px 0; background: var(--border); }
.src-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 10px; padding: 0; }
.src-filters::-webkit-scrollbar { display: none; }
.src-chip { flex: none; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 7px 14px; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.src-chip.on { border-color: var(--coral); background: #FFF1F1; color: var(--coral-hover); }
.src-chip.off, .src-chip:disabled { opacity: .4; cursor: default; }
[data-theme="night"] .src-chip.on { background: rgba(255,90,95,.14); }
.src-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.src-row { display: flex; align-items: center; gap: 12px; padding: 12px 13px; text-decoration: none; }
.src-row + .src-row { border-top: 1px solid var(--border); }
.src-row:active { background: var(--surface-muted); }
.src-row__ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px;
  color: #fff; background: var(--c, var(--coral)); }
.src-row__txt { flex: 1; min-width: 0; }
.src-row__txt b { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-row__more { flex: none; font-size: 11px; font-weight: 700; color: var(--text-2); background: var(--surface-muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; }
.src-row__meta { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.src-row__meta i { font-size: 13px; color: var(--text-3); }
.src-row__open { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 16px;
  color: var(--text-3); background: var(--surface-muted); }

/* ============ TRAVEL PREFERENCES ============ */
.prefs-intro { margin: 0 2px 10px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.prefs-note { margin: 6px 2px 8px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.prefs-cta { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 14px; border-radius: 16px; cursor: pointer; text-align: left;
  border: 1px solid color-mix(in srgb, var(--magic) 24%, var(--border));
  background: linear-gradient(125deg, color-mix(in srgb, var(--magic) 9%, var(--surface)), var(--surface)); font-family: inherit; }
.prefs-cta:active { transform: scale(.99); }
.prefs-cta__ico { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--brand-gradient); }
.prefs-cta__txt { flex: 1; min-width: 0; }
.prefs-cta__txt b { display: block; font-family: var(--font-display); font-size: 15.5px; font-weight: 700; color: var(--ink); }
.prefs-cta__txt span { font-size: 12px; color: var(--text-2); }
.persona-card { display: flex; align-items: flex-start; gap: 12px; position: relative; border: 1px solid var(--coral-soft); border-radius: 18px; padding: 15px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--coral) 8%, var(--surface)), var(--surface)); }
.persona-card__main { flex: 1; min-width: 0; padding-right: 30px; }
.persona-card__name { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin-top: 2px; }
.persona-card__av { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 26px;
  background: var(--surface); box-shadow: var(--shadow-sm); }
.persona-card__id { flex: 1; min-width: 0; }
.persona-card__eye { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--coral); }
.persona-card__id b { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.persona-card__retake { position: absolute; top: 12px; right: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.persona-card__retake i { font-size: 14px; }
.persona-card__tag { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--text); }
.persona-bars { display: flex; flex-direction: column; gap: 9px; }
.persona-bar { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; gap: 9px; }
.persona-bar__l { font-size: 11px; font-weight: 600; color: var(--text-2); text-align: right; }
.persona-bar__r { font-size: 11px; font-weight: 600; color: var(--text-2); }
.persona-bar__track { position: relative; height: 6px; border-radius: 999px; background: var(--grey-150); }
[data-theme="night"] .persona-bar__track { background: var(--surface-muted); }
.persona-bar__track i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--coral);
  border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.2); transform: translate(-50%, -50%); }
.tune-flag { flex: none; font-size: 24px; width: 32px; text-align: center; }
.tune-badge { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; border: 1px solid var(--coral-soft); background: #FFF1F1; color: var(--coral-hover); }
[data-theme="night"] .tune-badge { background: rgba(255,90,95,.14); }
.tune-badge i { font-size: 14px; }
.tune-badge.on { border-color: color-mix(in srgb, var(--success) 40%, var(--border)); background: color-mix(in srgb, var(--success) 10%, var(--surface)); color: var(--success); }

/* ============ QUIZ (persona · per-trip) ============ */
.quiz { position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; padding: 22px; animation: fadein .16s ease; }
.quiz__scrim { position: absolute; inset: 0; background: rgba(20,18,18,.5); backdrop-filter: blur(2px); }
.quiz__card { position: relative; width: 100%; max-width: 340px; background: var(--surface); border-radius: 26px; padding: 18px 20px 20px;
  box-shadow: var(--shadow-lg); }
.quiz__top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.quiz__bar { flex: 1; height: 6px; border-radius: 999px; background: var(--grey-150); overflow: hidden; }
[data-theme="night"] .quiz__bar { background: var(--surface-muted); }
.quiz__bar i { display: block; height: 100%; border-radius: 999px; background: var(--coral); transition: width .25s ease; }
.quiz__x { flex: none; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font-size: 17px; }
.quiz__eye { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.quiz__scenario { margin: 8px 0 4px; font-family: var(--font-display); font-style: italic; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.quiz__q { margin: 4px 0 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
.quiz__sub { margin: 6px 0 0; font-size: 12.5px; color: var(--text-2); }
.quiz__foot { display: flex; gap: 9px; margin-top: 20px; }
.quiz__back { flex: none; height: 50px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.quiz__cta { flex: 1; height: 50px; border-radius: 14px; border: none; cursor: pointer; background: var(--btn-accent-bg); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.quiz__cta.full { width: 100%; margin-top: 16px; }
.quiz__cta:disabled { opacity: .5; }
.quiz__cta i { font-size: 18px; }
.quiz__cta:active, .quiz__back:active { transform: scale(.98); }
.quiz__done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 6px 4px 4px; }
.quiz__doneico { width: 58px; height: 58px; border-radius: 18px; background: var(--brand-gradient); color: #fff; display: grid; place-items: center; font-size: 28px; margin-bottom: 8px; }
.quiz__done h3 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.quiz__done p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); max-width: 260px; }

/* pole slider */
.qpole { margin-top: 20px; }
.qpole__ends { display: flex; gap: 16px; margin-bottom: 14px; }
.qpole__end { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; line-height: 1.35; color: var(--text-2); }
.qpole__end.right { text-align: right; align-items: flex-end; }
.qpole__emoji { font-size: 26px; }
.qslider { position: relative; }
.qslider__ticks { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; pointer-events: none; z-index: 1; }
.qslider__ticks i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.qtrack { position: relative; height: 54px; border-radius: 999px; background: var(--grey-150); overflow: hidden; cursor: pointer; touch-action: none; user-select: none; }
[data-theme="night"] .qtrack { background: var(--surface-muted); }
.qtrack__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--coral) 40%, #fff), var(--coral)); }
.qtrack__ticks { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.qtrack__ticks i { position: absolute; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); transform: translate(-50%, -50%); }
.qtrack__knob { position: absolute; top: 50%; width: 48px; height: 48px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.26); transform: translateY(-50%); z-index: 2; display: grid; place-items: center; }
.qtrack__knob span { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

/* chips + text (per-trip) */
.qchips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.qchip { display: inline-flex; align-items: center; gap: 7px; padding: 11px 15px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface); font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink); }
.qchip i { font-size: 17px; color: var(--text-2); }
.qchip.on { border-color: var(--coral); background: #FFF1F1; color: var(--coral-hover); }
.qchip.on i { color: var(--coral); }
[data-theme="night"] .qchip.on { background: rgba(255,90,95,.14); }
.qchip:active { transform: scale(.97); }
.qtext { width: 100%; margin-top: 16px; min-height: 96px; resize: none; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface-muted); padding: 12px 14px; font-family: inherit; font-size: 14px; line-height: 1.5; color: var(--ink); box-sizing: border-box; }
.qtext:focus { outline: none; border-color: var(--coral); background: var(--surface); }

/* per-trip result suggestions */
.tune-sugg { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.tune-sugg__row { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-muted); }
.tune-sugg__emoji { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 21px; background: var(--surface); border: 1px solid var(--border); }
.tune-sugg__txt { flex: 1; min-width: 0; }
.tune-sugg__txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.tune-sugg__txt span { font-size: 11.5px; color: var(--text-2); }

/* ============ REVIEW ROUND 5 ============ */

/* account — compact identity + grouped fields */
.acct-hero { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; margin-bottom: 12px;
  border: 1px solid var(--border); background: var(--surface-muted); }
.acct-hero__av { flex: none; width: 46px; height: 46px; border-radius: 999px; background: var(--me, var(--coral)); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; font-size: 24px; }
.acct-hero__id { flex: 1; min-width: 0; }
.acct-hero__id b { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.acct-hero__id span { display: block; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-hero__verif { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--success); }
.acct-hero__verif i { font-size: 16px; }
.acct-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.acct-field { display: block; padding: 9px 14px; cursor: text; }
.acct-field + .acct-field { border-top: 1px solid var(--border); }
.acct-field__lbl { display: block; font-size: 11px; font-weight: 700; color: var(--text-2); margin-bottom: 2px; }
.acct-field__in { width: 100%; border: none; background: transparent; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink); outline: none; padding: 0; }
.acct-note { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); margin: 8px 2px 2px; }
.acct-note i { font-size: 14px; flex: none; }

/* usage — gamified rank strip */
.usage-rank { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 14px; margin-bottom: 4px;
  border: 1px solid color-mix(in srgb, var(--coral) 22%, var(--border)); background: linear-gradient(120deg, color-mix(in srgb, var(--coral) 9%, var(--surface)), var(--surface)); }
.usage-rank__badge { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 19px;
  color: #9A6A00; background: linear-gradient(135deg, #FFE9A8, #F6C453); box-shadow: var(--shadow-sm); }
.usage-rank__txt { flex: 1; min-width: 0; }
.usage-rank__txt b { display: block; font-family: var(--font-display); font-size: 14.5px; font-weight: 700; color: var(--ink); }
.usage-rank__txt span { font-size: 11px; color: var(--text-2); }
.usage-rank__friends { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--coral);
  background: color-mix(in srgb, var(--coral) 12%, var(--surface)); border-radius: 999px; padding: 5px 9px; }
.usage-rank__friends i { font-size: 13px; }

/* persona — tuned note */
.persona-card__eye i { font-size: 12px; }
.persona-card__note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); font-size: 11.5px; line-height: 1.45; color: var(--text-2); }
.persona-card__note i { color: var(--coral); font-size: 16px; flex: none; margin-top: 1px; }

/* paste — per-trip expectations prompt */
.paste-tune { position: relative; margin-top: 12px; padding: 13px 13px 12px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--coral) 24%, var(--border)); background: linear-gradient(150deg, color-mix(in srgb, var(--coral) 8%, var(--surface)), var(--surface)); }
.paste-tune__x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 999px; border: none; background: transparent;
  color: var(--text-3); cursor: pointer; display: grid; place-items: center; font-size: 15px; }
.paste-tune__hd { display: flex; align-items: flex-start; gap: 10px; padding-right: 22px; }
.paste-tune__ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px;
  color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, var(--surface)); }
.paste-tune__lead b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.paste-tune__lead span { font-size: 11.5px; color: var(--text-2); line-height: 1.4; }
.paste-tune__chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 11px 0; }
.paste-tune__chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.paste-tune__chip i { font-size: 15px; }
.paste-tune__chip.on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, var(--surface)); color: var(--coral-hover); }
.paste-tune__save { width: 100%; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 12px;
  border: none; background: var(--coral); color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.paste-tune__save:disabled { opacity: .5; }
.paste-tuned { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 11px 13px; border-radius: 13px;
  border: 1px solid color-mix(in srgb, var(--success) 26%, var(--border)); background: color-mix(in srgb, var(--success) 8%, var(--surface)); font-size: 12px; color: var(--text-2); line-height: 1.4; }
.paste-tuned i { color: var(--success); font-size: 18px; flex: none; }
.paste-tuned b { color: var(--ink); font-weight: 700; }

/* chat — condensed how-it-works */
.chat-how__line { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.45; color: var(--text-2); }
.chat-how__line i { color: var(--coral); font-size: 16px; flex: none; }
.chat-how__line b { color: var(--ink); font-weight: 700; }

/* friend profile */
.fp-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 8px 12px 16px; }
.fp-hero__av { width: 76px; height: 76px; border-radius: 999px; background: var(--c, var(--coral)); display: grid; place-items: center; font-size: 38px; box-shadow: var(--shadow-md); margin-bottom: 4px; }
.fp-hero__name { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); }
.fp-hero__handle { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.fp-hero__style { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; color: var(--text-2); }
.fp-hero__se { font-size: 15px; }
.fp-hero__acts { display: flex; gap: 8px; margin-top: 12px; width: 100%; }
.fp-btn { flex: 1; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.fp-btn i { font-size: 16px; }
.fp-btn.primary { border: none; background: var(--coral); color: #fff; }
.fp-btn:active { transform: scale(.98); }
.fp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 4px; }
.fp-stat { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 13px 8px; text-align: center; }
.fp-stat b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1; }
.fp-stat span { font-size: 11px; font-weight: 600; color: var(--text-2); margin-top: 3px; display: block; }
.fp-maps { display: flex; flex-direction: column; gap: 8px; }
.fp-map { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; text-align: left; }
.fp-map:active { transform: scale(.99); }
.fp-map__em { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 21px; background: var(--surface-muted); }
.fp-map__txt { flex: 1; min-width: 0; }
.fp-map__txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.fp-map__txt span { font-size: 11.5px; color: var(--text-2); }
.fp-note { display: flex; align-items: center; gap: 6px; margin: 10px 2px 2px; font-size: 11.5px; color: var(--text-3); }
.fp-note i { font-size: 14px; flex: none; }

/* discover collection */
.coll-hero { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, hsl(var(--hue, 12) 70% 92%), var(--surface) 78%); border: 1px solid var(--border); }
[data-theme="night"] .coll-hero { background: linear-gradient(150deg, hsl(var(--hue,12) 42% 22%), var(--surface) 82%); }
.coll-hero__emoji { flex: none; width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 30px; background: var(--surface); box-shadow: var(--shadow-sm); }
.coll-hero__meta { flex: 1; min-width: 0; }
.coll-hero__eye { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.coll-hero__meta b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.coll-hero__saves { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.coll-hero__saves i { font-size: 13px; }
.coll-save { flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-family: inherit; font-size: 12px; font-weight: 700; }
.coll-save i { font-size: 15px; }
.coll-save.on { border-color: var(--coral); background: var(--coral); color: #fff; }
.coll-creator { display: flex; align-items: center; gap: 11px; padding: 2px; }
.coll-creator__av { flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--c, var(--coral)); display: grid; place-items: center; font-size: 20px; }
.coll-creator__id { flex: 1; min-width: 0; }
.coll-creator__id b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.coll-creator__id span { font-size: 11.5px; color: var(--text-2); }
.coll-intro { font-size: 13.5px; line-height: 1.55; color: var(--text); margin: 0; }
.coll-audio { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 13px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-muted); font-family: inherit; }
.coll-audio__btn { flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 16px; }
.coll-audio__wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 24px; overflow: hidden; }
.coll-audio__wave i { flex: 1; min-width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--coral) 45%, var(--border)); }
.coll-audio.on .coll-audio__wave i { background: var(--coral); }
.coll-audio__t { flex: none; font-size: 11px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.coll-audio__lbl { flex: none; font-size: 11px; color: var(--text-3); }
.coll-spots { display: flex; flex-direction: column; gap: 8px; }
.coll-spot { display: flex; gap: 11px; padding: 12px; border-radius: 15px; border: 1px solid var(--border); background: var(--surface); }
.coll-spot__em { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--surface-muted); }
.coll-spot__body { flex: 1; min-width: 0; }
.coll-spot__body b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.coll-spot__body p { margin: 3px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-2); }
.coll-spot__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.coll-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; font-size: 10.5px; font-weight: 700; }
.coll-chip i { font-size: 12px; }
.coll-chip.reel { color: var(--ink); background: var(--grey-150); }
[data-theme="night"] .coll-chip.reel { background: var(--surface-muted); }
.coll-chip.tip { color: var(--magic-deep); background: color-mix(in srgb, var(--magic) 12%, var(--surface)); }
.coll-spot__pin { flex: none; align-self: flex-start; width: 34px; height: 34px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); display: grid; place-items: center; font-size: 16px; }
.coll-spot__pin.on { border-color: var(--coral); background: var(--coral); color: #fff; }
.coll-vibe { display: flex; flex-wrap: wrap; gap: 7px; }
.coll-vibechip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-muted); font-size: 12px; font-weight: 700; color: var(--text-2); }
.coll-tips { display: flex; flex-direction: column; gap: 8px; }
.coll-tip { display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; border-radius: 13px; font-size: 12.5px; line-height: 1.45; color: var(--text);
  border: 1px dashed color-mix(in srgb, var(--coral) 30%, var(--border)); background: color-mix(in srgb, var(--coral) 5%, var(--surface)); }
.coll-tip i { color: var(--coral); font-size: 16px; flex: none; margin-top: 1px; }

/* trip hub — day badge + up-next eyebrow */
.td-hero__cd-eye { font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--coral-hover); }
.td-line__eye { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--info-blue); margin-bottom: 2px; }
.td-line__eye i { font-size: 12px; }
.td-line__eye.coral { color: var(--coral); }
.td-line__eye.ok { color: var(--success); }
.td-line__eye.prop { color: #B45309; letter-spacing: .05em; }
[data-theme="night"] .td-line__eye.prop { color: #F5A524; }

/* trip setup — trip switch pill */
.tripswitch { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 8px 0 6px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--coral-soft); background: color-mix(in srgb, var(--coral) 8%, var(--surface)); font-family: inherit; }
.tripswitch__fl { font-size: 17px; }
.tripswitch i { color: var(--coral); }
.tripswitch:active { transform: scale(.96); }

/* expense — receipt thumbnail + wireframe assignees */
.td-pdf--rc { border-color: var(--border); background: var(--surface); }
.td-rcthumb { flex: none; width: 38px; height: 46px; border-radius: 7px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 6px 5px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
[data-theme="night"] .td-rcthumb { background: var(--surface-muted); }
.td-rcthumb i { height: 3px; border-radius: 2px; background: var(--grey-200); display: block; }
.td-rcthumb i.sh { width: 62%; }
.td-rcthumb b { margin-top: auto; height: 5px; width: 72%; border-radius: 2px; background: var(--success); display: block; }
.td-pdf__view { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--info-blue);
  background: #E8EFFB; border-radius: 999px; padding: 6px 11px; }
[data-theme="night"] .td-pdf__view { background: rgba(37,99,235,.18); }
.td-pdf__view i { font-size: 14px; }
.td-aihint.sm { padding: 8px 11px; font-size: 11px; align-items: center; }
.td-aihint.sm i { font-size: 15px; }
.td-item__who { align-items: center; }
.td-item__add { flex: none; width: 22px; height: 22px; border-radius: 999px; border: 1.5px dashed var(--grey-300); background: var(--surface);
  display: grid; place-items: center; font-size: 11px; color: var(--text-3); margin-left: 5px; }
.td-item__add:only-child { margin-left: 0; }
.td-item__add i { font-size: 12px; }
.td-item.open { background: var(--surface-muted); }

/* modal body — don't shrink cards (fixes clipped item list + stray line at bottom of "owes") */
.td-modal__body > * { flex-shrink: 0; }

/* ============ REVIEW ROUND 6 ============ */

/* guide intro (short, centered) */
.guide-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 999px; border: none;
  background: var(--surface-muted); color: var(--text-2); cursor: pointer; display: grid; place-items: center; font-size: 17px; }
.guide-badge__em { font-size: 30px; line-height: 1; }
.guide-card .guide-dots { display: inline-flex; gap: 6px; justify-content: center; margin: 4px 0 14px; }
.guide-card .guide-dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--grey-300); }
.guide-card .guide-dots i.on { background: var(--coral); width: 20px; }

/* help & feedback */
.help-replay { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px; border-radius: 15px; cursor: pointer;
  border: 1px solid var(--coral-soft); background: color-mix(in srgb, var(--coral) 6%, var(--surface)); font-family: inherit; text-align: left; }
.help-replay__ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; color: #fff; background: var(--coral); }
.help-replay__txt { flex: 1; min-width: 0; }
.help-replay__txt b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.help-replay__txt span { font-size: 11.5px; color: var(--text-2); }
.faq { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 15px; overflow: hidden; background: var(--surface); }
.faq__item + .faq__item { border-top: 1px solid var(--border); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 13px 14px; cursor: pointer;
  border: none; background: transparent; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink); text-align: left; }
.faq__q i { flex: none; font-size: 16px; color: var(--text-3); }
.faq__item.open .faq__q i { color: var(--coral); }
.faq__a { margin: 0; padding: 0 14px 13px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.fbk { display: flex; flex-direction: column; gap: 9px; }
.fbk__seg { display: flex; gap: 6px; }
.fbk__segbtn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 6px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: 12px; font-weight: 700; color: var(--text-2); }
.fbk__segbtn i { font-size: 15px; }
.fbk__segbtn.on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 9%, var(--surface)); color: var(--coral-hover); }
.fbk__in { width: 100%; min-height: 84px; resize: none; border: 1px solid var(--border); border-radius: 13px; padding: 11px 13px;
  font-family: inherit; font-size: 13px; line-height: 1.45; color: var(--ink); background: var(--surface); outline: none; box-sizing: border-box; }
.fbk__in:focus { border-color: var(--coral); }
.fbk__send { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 12px; border: none;
  background: var(--coral); color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.fbk__send:disabled { opacity: .5; }
.fbk__send.sent { background: var(--success); }

/* paste idle — link-first, magic as add-on */
.paste-lead2 { padding: 2px 2px 0; }
.paste-lead2 b { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.paste-lead2 > span { font-size: 12px; color: var(--text-2); }
.paste-srclist { display: flex; flex-direction: column; margin-top: 10px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.paste-srcrow { display: flex; align-items: center; gap: 11px; padding: 10px 12px; }
.paste-srcrow + .paste-srcrow { border-top: 1px solid var(--border); }
.paste-srcrow__ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; color: #fff; background: var(--c, var(--coral)); }
.paste-srcrow__logo { width: 22px; height: 22px; object-fit: contain; }
.paste-srcrow.magic .paste-srcrow__ico { background: color-mix(in srgb, var(--coral) 12%, var(--surface)); }
.paste-srcrow__txt { flex: 1; min-width: 0; }
.paste-srcrow__txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.paste-srcrow__txt span { font-size: 11.5px; color: var(--text-2); }
.paste-upload { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--coral-soft, var(--border)); background: color-mix(in srgb, var(--coral) 9%, var(--surface)); color: var(--coral-hover); font-family: inherit; font-size: 11.5px; font-weight: 700; }
.paste-upload i { font-size: 14px; }

/* paste idle — link-first, magic as add-on */
.paste-lead { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 4px 0 2px; }
.paste-lead__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 5px;
  color: var(--coral); background: color-mix(in srgb, var(--coral) 11%, var(--surface)); }
.paste-lead b { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.paste-lead > span { font-size: 12px; color: var(--text-2); }
.paste-srcs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 4px; }
.paste-src { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px 7px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink);
  border: 1px solid var(--border); background: var(--surface); }
.paste-src__ico { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; font-size: 14px; color: #fff; background: var(--c, var(--coral)); }
.paste-or { display: flex; align-items: center; gap: 12px; margin: 14px 2px; color: var(--text-3); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.paste-or::before, .paste-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.magic-mini { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 14px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--magic) 9%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--magic) 24%, var(--border)); }
.magic-mini__badge { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: #fff; background: var(--brand-gradient); }
.magic-mini__txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.magic-mini__txt span { font-size: 11.5px; line-height: 1.4; color: var(--text-2); }

/* chat — simplified */
.chat-chan__done { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--success); }
.chat-chan__done i { font-size: 17px; }
.chat-foot { display: flex; align-items: flex-start; gap: 7px; margin: 2px; font-size: 11.5px; line-height: 1.45; color: var(--text-3); }
.chat-foot i { font-size: 14px; flex: none; margin-top: 1px; }
.chat-foot b { color: var(--ink); font-weight: 700; }

/* trip-setup header switch (matches the trip-detail switch) */
.sheet__title:has(.trip-hdrsw) { flex: 1; }
.sheet__title:has(.trip-hdrsw) > span { flex: 1; display: block; min-width: 0; }
.trip-hdrsw.td-switch { width: 100%; }

/* Kaio review — header trip switch is now an inline dropdown (was a dead-feeling button) */
.trip-hdrsw-wrap { position: relative; display: block; width: 100%; }
.trip-hdrsw-wrap .trip-hdrsw { padding-right: calc(var(--space-7) * 2 + var(--space-3)); }
.trip-hdrsw__edit { position: absolute; z-index: 2; top: 50%; right: calc(var(--space-6) + var(--space-1)); translate: 0 -50%; height: 30px; padding: 0 var(--space-2); border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); display: inline-flex; align-items: center; gap: var(--space-1); cursor: pointer; font: 700 var(--text-xs) var(--font-body), system-ui; white-space: nowrap; }
.trip-hdrsw__edit:hover, .trip-hdrsw__edit[aria-expanded="true"] { background: var(--surface-muted); color: var(--coral); border-color: var(--coral-soft); }
.trip-identity-pop { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); }
.trip-identity-pop__hd { display: flex; align-items: center; gap: 10px; }
.trip-identity-pop__done { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 9px 11px; border-radius: 10px; border: 0; background: var(--coral); color: #fff; font: 700 12px var(--font-body), system-ui; cursor: pointer; }
.trip-hdrsw .td-switch__caret { transition: transform .16s ease; }
.trip-hdrsw .td-switch__caret.on { transform: rotate(180deg); }
.trip-hdrsw__scrim { position: fixed; inset: 0; z-index: 40; }
.trip-hdrsw__menu { position: absolute; top: calc(100% + 8px); left: 0; width: 100%; z-index: 41;
  display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 15px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg, 0 16px 42px rgba(20,20,30,.18));
  animation: fade .14s ease-out; }
.trip-hdrsw__hd { font: 800 10px var(--font-body), system-ui; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 4px 8px 6px; }
.trip-hdrsw__opt { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 11px; border: none; background: none; cursor: pointer; text-align: left; font-family: inherit; }
.trip-hdrsw__opt:active { background: var(--surface-muted); }
.trip-hdrsw__opt.on { background: color-mix(in srgb, var(--coral) 7%, var(--surface)); }
.trip-hdrsw__fl { flex: none; font-size: 20px; width: 26px; text-align: center; }
.trip-hdrsw__nm { flex: 1; min-width: 0; font: 700 14px var(--font-display); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-hdrsw__all { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 11px; border: none; border-top: 1px solid var(--border);
  background: none; border-radius: 0 0 8px 8px; cursor: pointer; font: 700 13px var(--font-body), system-ui; color: var(--coral); }
.trip-hdrsw__all i { font-size: 17px; }
.trip-hdrsw__all:active { background: var(--surface-muted); }

/* Kaio review — "Add a city" bar at the top of trip setup (search + jump to map) */
.trip-addcity { display: flex; align-items: center; gap: 9px; }
.trip-addcity__field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 8px 0 13px;
  border-radius: 13px; border: 1px solid var(--border); background: var(--surface); }
.trip-addcity__field input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: 400 14px var(--font-body), system-ui; color: var(--ink); }
.trip-addcity__x { flex: none; width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--grey-150); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font-size: 14px; }
.trip-addcity__map { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border-radius: 13px; cursor: pointer;
  border: 1px solid var(--coral-soft); background: color-mix(in srgb, var(--coral) 8%, var(--surface)); color: var(--coral); font: 700 13px var(--font-body), system-ui; }
.trip-addcity__map i { font-size: 17px; }
.trip-addcity__map:active { transform: scale(.97); }

/* search results dropdown under the add bar */
.trip-addres { display: flex; flex-direction: column; gap: 6px; margin-top: -4px; }
.trip-addres__row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 12px; cursor: pointer; text-align: left; font-family: inherit;
  border: 1px solid var(--border); background: var(--surface); }
.trip-addres__row:active { background: var(--surface-muted); }
.trip-addres__fl { flex: none; font-size: 20px; width: 24px; text-align: center; color: var(--text-3); }
.trip-addres__row b { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.trip-addres__add { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--coral); }
.trip-addres__new { border-style: dashed; }

/* Kaio review — unscheduled-cities pool (cities in the trip, not yet placed on the route) */
.trip-pool { display: flex; flex-direction: column; gap: 9px; padding: 12px; border-radius: 16px;
  border: 1px dashed var(--coral-soft); background: color-mix(in srgb, var(--coral) 5%, var(--surface)); }
.trip-pool__lbl { display: inline-flex; align-items: center; gap: 6px; font: 800 10.5px var(--font-body), system-ui; letter-spacing: .05em; text-transform: uppercase; color: var(--coral-hover); }
.trip-pool__lbl i { color: var(--coral); }
.trip-pool__row { display: flex; flex-wrap: wrap; gap: 8px; }
.trip-pool__chip { display: inline-flex; align-items: stretch; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.trip-pool__place { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 7px 0 12px; border: none; background: none; cursor: pointer; font: 700 12.5px var(--font-body), system-ui; color: var(--ink); }
.trip-pool__place:active { background: var(--surface-muted); }
.trip-pool__fl { font-size: 15px; }
.trip-pool__go { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: color-mix(in srgb, var(--coral) 12%, var(--surface)); color: var(--coral); }
.trip-pool__x { flex: none; width: 30px; border: none; border-left: 1px solid var(--border); background: none; color: var(--text-3); cursor: pointer; display: grid; place-items: center; font-size: 14px; }
.trip-pool__x:active { background: var(--surface-muted); color: var(--danger-alt); }
.trip-pool__hint { font-size: 11px; color: var(--text-2); }

/* roundtrip — subtle inline row under the route */
.rt-inline { display: inline-flex; align-self: flex-start; align-items: center; gap: 9px; padding: 7px 8px 7px 12px; margin-top: -2px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-family: inherit; }
.rt-inline__txt { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.rt-inline__txt i { font-size: 15px; color: var(--text-3); }

/* home legs smaller than city stops → clearer overview */
.leg--home { padding-top: 7px; padding-bottom: 7px; }
.leg--home .leg__name .nm, .leg--return .leg__name--static .nm { font-size: 13px; color: var(--text-2); font-weight: 600; }
.leg--home .leg__name .fl, .leg--return .leg__name--static .fl { font-size: 14px; }
.leg--home .dot-from { width: 9px; height: 9px; }
.conn.seg-home { min-height: 38px; }
.conn__itin { height: 24px; font-size: 11px; }

/* round trip — inline home row under the last stop, toggled in place */
.conn--rt { min-height: 34px; }
.leg--rt { padding-top: 8px; padding-bottom: 8px; }
.leg--rt .leg__name--static { cursor: default; }
.leg--rt .leg__name--static .nm { font-size: 13px; color: var(--text-2); font-weight: 600; }
.leg--rt .leg__name--static .fl { font-size: 14px; }
.leg--rt .leg__right { gap: 9px; }
.leg--rt:not(.on) { opacity: .82; }
.leg--rt:not(.on) .dot-home { border-style: dashed; color: var(--text-3); }
.rt-tgl { border: none; background: transparent; padding: 3px; margin: -3px -3px -3px 0; cursor: pointer; display: grid; place-items: center; }

/* map editor */
.mapedit-hd { display: flex; align-items: center; gap: 11px; }
.mapedit-emoji { position: relative; flex: none; width: 52px; height: 52px; border-radius: 15px; border: 1px solid var(--border); background: var(--surface-muted);
  display: grid; place-items: center; font-size: 28px; cursor: pointer; }
.mapedit-emoji__edit { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 999px; background: var(--coral); color: #fff;
  display: grid; place-items: center; font-size: 11px; border: 2px solid var(--surface); }
.mapedit-name { flex: 1; min-width: 0; border: none; border-bottom: 2px solid var(--border); background: transparent; padding: 6px 2px;
  font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); outline: none; }
.mapedit-name:focus { border-color: var(--coral); }
.mapedit-emojis { display: flex; flex-wrap: wrap; gap: 7px; }
.mapedit-emojis__b { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); font-size: 21px; cursor: pointer; }
.mapedit-emojis__b.on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, var(--surface)); }
.mapvis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mapvis__opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; text-align: left; }
.mapvis__opt i { font-size: 18px; color: var(--text-2); margin-bottom: 2px; }
.mapvis__opt b { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.mapvis__opt span { font-size: 10.5px; color: var(--text-3); line-height: 1.3; }
.mapvis__opt.on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 8%, var(--surface)); }
.mapvis__opt.on i, .mapvis__opt.on b { color: var(--coral-hover); }
.mapvis__tick { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 999px; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 11px; }
.mapcollab { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.mapcollab__avs { display: flex; flex: none; }
.mapcollab__av { width: 30px; height: 30px; border-radius: 999px; background: var(--c, var(--coral)); display: grid; place-items: center; font-size: 15px;
  border: 2px solid var(--surface); margin-left: -8px; }
.mapcollab__av:first-child { margin-left: 0; }
.mapcollab__av.me { box-shadow: 0 0 0 2px var(--coral); }
.mapcollab__txt { flex: 1; min-width: 0; font-size: 12px; color: var(--text-2); }
.mapcollab__add { flex: none; width: 34px; height: 34px; border-radius: 999px; border: 1px dashed var(--grey-300); background: transparent; color: var(--coral); cursor: pointer; display: grid; place-items: center; font-size: 16px; }

/* sharing — compact visibility segmented control + inline collaborators (combined) */
.mapshare { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.mapshare__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; }
.mapshare__opt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 10px; cursor: pointer;
  border: none; background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.mapshare__opt i { font-size: 16px; }
.mapshare__opt.on { background: color-mix(in srgb, var(--coral) 10%, var(--surface)); color: var(--coral-hover); box-shadow: inset 0 0 0 1.5px var(--coral); }
.mapshare__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border); min-height: 30px; }
.mapshare__hint { font-size: 11.5px; color: var(--text-2); }
.mapshare__collab { display: inline-flex; align-items: center; gap: 8px; border: none; background: transparent; cursor: pointer; font-family: inherit; padding: 0; }
.mapshare__avs { display: inline-flex; align-items: center; }
.mapshare__avs .mapcollab__av { width: 24px; height: 24px; font-size: 12px; margin-left: -7px; border-width: 1.5px; }
.mapshare__avs .mapcollab__av:first-child { margin-left: 0; }
.mapshare__add { width: 24px; height: 24px; border-radius: 999px; border: 1px dashed var(--grey-300); background: var(--surface); color: var(--coral); display: grid; place-items: center; font-size: 12px; margin-left: -7px; }
.mapshare__ctxt { font-size: 11.5px; font-weight: 700; color: var(--coral); white-space: nowrap; }

/* map share — who-can-access overview (owner / editor / viewer) */
.msmodal { position: absolute; inset: 0; z-index: 82; background: rgba(20,18,18,.5); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 22px; animation: fadein .16s ease; }
.msmodal__card { position: relative; width: 100%; max-width: 320px; max-height: 82%; display: flex; flex-direction: column; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.msmodal__hd { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--border); }
.msmodal__ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: var(--coral); background: #FFECEC; }
[data-theme="night"] .msmodal__ico { background: rgba(255,90,95,.16); }
.msmodal__id { flex: 1; min-width: 0; }
.msmodal__id b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.msmodal__id span { font-size: 11.5px; color: var(--text-2); }
.msmodal__x { flex: none; width: 32px; height: 32px; border-radius: 999px; border: none; background: var(--surface-muted); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.msmodal__body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 6px; display: flex; flex-direction: column; }
.msrow { display: flex; align-items: center; gap: 10px; padding: 9px 4px; width: 100%; background: none; border: none; font-family: inherit; text-align: left; }
.msrow + .msrow { border-top: 1px solid var(--border); }
.msrow__av { flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--c, var(--coral)); display: grid; place-items: center; font-size: 17px; }
.msrow__id { flex: 1; min-width: 0; }
.msrow__id b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.msrow__id span { font-size: 11px; color: var(--text-2); }
.msrole { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; flex: none; }
.msrole i { font-size: 14px; }
.msrole.owner { color: var(--coral); }
.msroleseg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; flex: none; }
.msroleseg button { width: 34px; height: 30px; border: none; background: var(--surface); color: var(--text-2); cursor: pointer; display: grid; place-items: center; font-size: 15px; font-family: inherit; }
.msroleseg button + button { border-left: 1px solid var(--border); }
.msroleseg button.on { background: color-mix(in srgb, var(--coral) 12%, var(--surface)); color: var(--coral-hover); }
.msrow__rm { flex: none; width: 28px; height: 28px; border-radius: 999px; border: none; background: var(--surface-muted); color: var(--text-3); cursor: pointer; display: grid; place-items: center; font-size: 14px; }
.msrow__rm:active { background: color-mix(in srgb, var(--danger-alt) 14%, var(--surface)); color: var(--danger-alt); }
.msdiv { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 11px 4px 3px; }
.msrow--add { cursor: pointer; border-top: none; }
.msrow--add:active { background: var(--surface-muted); }
.msrow__plus { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--coral); flex: none; }
.msmodal__done { margin: 8px 12px 12px; height: 44px; border-radius: 12px; border: none; background: var(--coral); color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* maps as cards — visually distinct from the flag-led trip rows (no flags, no dates) */
.mapgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mapcard { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 12px; border-radius: 15px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; text-align: left; box-shadow: var(--shadow-sm); }
.mapcard:active { background: var(--surface-muted); }
.mapcard__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.mapcard__em { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--surface-muted); }
.mapcard__tag { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: color-mix(in srgb, var(--magic) 78%, #000); background: color-mix(in srgb, var(--magic) 13%, var(--surface)); border-radius: 999px; padding: 3px 7px 3px 6px; }
[data-theme="night"] .mapcard__tag { color: color-mix(in srgb, var(--magic) 45%, #fff); }
.mapcard__name { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.mapcard__meta { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 11px; color: var(--text-2); }
.mapcard__meta span { display: inline-flex; align-items: center; gap: 3px; }
.mapcard--new { align-items: center; justify-content: center; text-align: center; border-style: dashed; background: transparent; box-shadow: none; gap: 7px; }
.mapcard__plus { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, var(--surface)); }
.mapcard--new .mapcard__meta.one { color: var(--text-3); }
.mapedit-add { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); }
.mapedit-add input { flex: 1; min-width: 0; border: none; background: transparent; font-family: inherit; font-size: 14px; color: var(--ink); outline: none; }
.mapedit-add__btn { flex: none; width: 30px; height: 30px; border-radius: 999px; border: none; background: var(--coral); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.mapedit-add__btn:disabled { opacity: .4; }
/* Kaio review — add places by browsing the map / picking POIs (not just search/paste) */
.mapedit-addmap { width: 100%; margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: 13px; cursor: pointer; border: 1px dashed var(--coral-soft);
  background: color-mix(in srgb, var(--coral) 7%, var(--surface)); color: var(--coral); font-family: inherit; font-size: 13px; font-weight: 700; }
.mapedit-addmap i { font-size: 17px; }
.mapedit-addmap:active { transform: scale(.99); }
.mapedit-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.mapedit-row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; }
.mapedit-row + .mapedit-row { border-top: 1px solid var(--border); }
.mapedit-row__em { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: var(--surface-muted); }
.mapedit-row__txt { flex: 1; min-width: 0; }
.mapedit-row__txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.mapedit-row__txt span { font-size: 11px; color: var(--text-2); }
.mapedit-row__x { flex: none; width: 28px; height: 28px; border-radius: 999px; border: none; background: var(--surface-muted); color: var(--text-3); cursor: pointer; display: grid; place-items: center; font-size: 14px; }

/* trip switcher — prominent explore + maps section */
.tripsw__explore { padding: 15px 14px; }
.tripsw__ico { width: 44px; height: 44px; font-size: 22px; }
.tripsw__txt b { font-size: 16px; }
.tripsw__txt span { color: var(--text-2); }
.tripsw__go { flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 16px; }
.tripsw__mapnote { font-size: 11.5px; line-height: 1.45; color: var(--text-2); margin: -4px 2px 4px; }
.maprow { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border: none; background: transparent; cursor: pointer; font-family: inherit; text-align: left; }
.maprow + .maprow { border-top: 1px solid var(--border); }
.maprow:active { background: var(--surface-muted); }
.maprow__em { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--surface-muted); }
.maprow__txt { flex: 1; min-width: 0; }
.maprow__txt b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.maprow__txt span { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-2); }

/* flag stack (multi-country trips) */
.flagstack { flex: none; display: inline-flex; }
.flagstack__f { font-size: 22px; }
.flagstack.multi .flagstack__f { font-size: 18px; margin-left: -7px; text-shadow: -2px 0 0 var(--surface); }
.flagstack.multi .flagstack__f:first-child { margin-left: 0; }

/* direct messages */
.dm-peek { display: inline-flex; align-items: center; gap: 9px; border: none; background: transparent; cursor: pointer; font-family: inherit; padding: 0; }
.dm-peek__av { width: 34px; height: 34px; border-radius: 999px; background: var(--c, var(--coral)); display: grid; place-items: center; font-size: 17px; }
.dm-peek__id { text-align: left; }
.dm-peek__id b { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.dm-peek__id span { font-size: 11px; color: var(--text-2); }
.dm-note { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 11px; color: var(--text-3); }
.dm-note i { font-size: 14px; flex: none; }
.dm-thread { display: flex; flex-direction: column; gap: 8px; }
.dm-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.dm-msg.me { align-self: flex-end; align-items: flex-end; }
.dm-bub { padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--surface-muted); font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.dm-msg.me .dm-bub { border-radius: 16px 16px 4px 16px; background: var(--coral); color: #fff; }
.dm-when { font-size: 10px; color: var(--text-3); margin: 3px 4px 0; }
.dm-place { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 14px; cursor: pointer; min-width: 190px;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; text-align: left; }
.dm-place__em { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: var(--surface-muted); }
.dm-place__txt { flex: 1; min-width: 0; }
.dm-place__txt b { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.dm-place__txt span { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text-2); }
.dm-place__save { flex: none; width: 28px; height: 28px; border-radius: 999px; background: color-mix(in srgb, var(--coral) 12%, var(--surface)); color: var(--coral); display: grid; place-items: center; font-size: 15px; }
.dm-compose { display: flex; align-items: center; gap: 8px; width: 100%; }
.dm-compose input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--border); border-radius: 999px; padding: 0 14px; font-family: inherit; font-size: 14px; color: var(--ink); background: var(--surface); outline: none; }
.dm-compose input:focus { border-color: var(--coral); }
.dm-attach, .dm-send { flex: none; width: 40px; height: 40px; border-radius: 999px; border: none; cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.dm-attach { background: var(--surface-muted); color: var(--ink-2); border: 1px solid var(--border); }
.dm-attach.on { background: var(--coral); color: #fff; border-color: var(--coral); }
.dm-send { background: var(--coral); color: #fff; }
.dm-send:disabled { opacity: .4; }
.dm-picker { margin-top: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-muted); }
.dm-picker__lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.dm-picker__grid { display: flex; flex-wrap: wrap; gap: 7px; }
.dm-picker__b { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.dm-picker__b.on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, var(--surface)); color: var(--coral-hover); }
.dm-picker__tabs { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.dm-picker__tabs::-webkit-scrollbar { display: none; }
.dm-picker__tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 32px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; padding: 0 10px; }
.dm-picker__tab i { font-size: 14px; }
.dm-picker__tab.on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, var(--surface)); color: var(--coral-hover); }
.dm-picker__send { margin-top: 10px; width: 100%; height: 40px; border-radius: 12px; border: none; background: var(--coral); color: #fff; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.dm-picker__send:disabled { opacity: .4; }
.dm-picker__list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.dm-picker__row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: none; background: none; cursor: pointer; font-family: inherit; text-align: left; }
.dm-picker__row + .dm-picker__row { border-top: 1px solid var(--border); }
.dm-picker__row:active { background: var(--surface-muted); }
.dm-picker__em { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; background: var(--surface-muted); }
.dm-picker__rowtxt { flex: 1; min-width: 0; }
.dm-picker__rowtxt b { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.dm-picker__rowtxt span { font-size: 11px; color: var(--text-2); }
.dm-ref__stack { flex: none; display: inline-flex; }
.dm-ref__stackem { width: 30px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: var(--surface-muted); border: 2px solid var(--surface); margin-left: -12px; }
.dm-ref__stackem:first-child { margin-left: 0; }
.dm-place--multi { min-width: 190px; }

/* discover — create-a-guide entry */
.disc-create { display: flex; align-items: center; gap: 11px; width: 100%; margin-bottom: 12px; padding: 13px; border-radius: 14px; cursor: pointer; font-family: inherit; text-align: left;
  border: 1px solid color-mix(in srgb, var(--coral) 30%, var(--border)); background: linear-gradient(120deg, color-mix(in srgb, var(--coral) 8%, var(--surface)), var(--surface)); }
.disc-create:active { transform: scale(.99); }
.disc-create__ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; color: #fff; background: var(--coral); }
.disc-create__txt { flex: 1; min-width: 0; }
.disc-create__txt b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.disc-create__txt span { font-size: 11.5px; color: var(--text-2); }

/* guide editor — flexible block builder */
.ge-lead { font-size: 12.5px; color: var(--text-2); margin: 0 0 4px; }
.ge-cover { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--coral) 10%, var(--surface)), var(--surface)); }
.ge-cover__em { position: relative; flex: none; width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.ge-cover__empen { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 999px; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 10px; }
.ge-cover__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ge-cover__title { border: none; background: none; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); }
.ge-cover__city { border: none; background: none; font-size: 12.5px; color: var(--text-2); }
.ge-cover input:focus { outline: none; }
.ge-emojis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.ge-emojis__b { height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 20px; cursor: pointer; }
.ge-emojis__b.on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, var(--surface)); }
.ge-intro { width: 100%; box-sizing: border-box; min-height: 60px; resize: none; margin-top: 4px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: 13px; color: var(--ink); }
.ge-intro:focus { outline: none; border-color: var(--coral); }
.ge-blocks { display: flex; flex-wrap: wrap; gap: 8px; }
.ge-block { box-sizing: border-box; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 9px; display: flex; flex-direction: column; gap: 6px; }
.ge-block--full { flex: 1 1 100%; }
.ge-block--half { flex: 1 1 calc(50% - 4px); min-width: calc(50% - 4px); }
.ge-block__bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ge-block__type { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.ge-block__type i { font-size: 13px; }
.ge-block__acts { display: inline-flex; gap: 2px; }
.ge-block__acts button { width: 24px; height: 24px; border-radius: 7px; border: none; background: var(--surface-muted); color: var(--text-2); cursor: pointer; display: grid; place-items: center; font-size: 13px; }
.ge-block__acts button:disabled { opacity: .3; cursor: default; }
.ge-block__acts button.danger { color: var(--danger-alt); }
.ge-in { width: 100%; box-sizing: border-box; border: none; background: none; resize: none; font-family: inherit; font-size: 13px; color: var(--ink); }
.ge-in:focus { outline: none; }
.ge-in--head { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.ge-in--spot { font-weight: 700; font-size: 13.5px; }
.ge-in--note { min-height: 34px; font-size: 12.5px; color: var(--ink-2); }
.ge-spot { display: flex; gap: 8px; }
.ge-spot__em { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-muted); font-size: 17px; cursor: pointer; }
.ge-spot__f { flex: 1; min-width: 0; }
.ge-tip { display: flex; gap: 6px; align-items: flex-start; }
.ge-tip > i { color: var(--coral); font-size: 15px; margin-top: 4px; flex: none; }
.ge-photo { width: 100%; min-height: 84px; border-radius: 10px; border: 1.5px dashed var(--grey-300); background: var(--surface-muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-3); font-size: 12px; font-weight: 600; font-family: inherit; overflow: hidden; }
.ge-photo i { font-size: 22px; }
.ge-photo.filled { border-style: solid; border-color: var(--border); padding: 0; }
.ge-photo__img { width: 100%; height: 100px; background: linear-gradient(135deg, #F0B429, #EB5757 55%, #7C3AED); }
.ge-add { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.ge-add__b { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 999px; border: 1px dashed var(--grey-300); background: var(--surface); color: var(--ink-2); cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 700; }
.ge-add__b i { font-size: 15px; color: var(--coral); }
.ge-vis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ge-vis__b { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 38px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: 12px; font-weight: 700; color: var(--text-2); }
.ge-vis__b i { font-size: 15px; }
.ge-vis__b.on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, var(--surface)); color: var(--coral-hover); }
.dmrow { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; }
.dmrow + .dmrow { border-top: 1px solid var(--border); }
.dmrow__av { flex: none; width: 44px; height: 44px; border-radius: 999px; border: none; background: var(--c, var(--coral)); display: grid; place-items: center; font-size: 21px; cursor: pointer; }
.dmrow__main { flex: 1; min-width: 0; border: none; background: transparent; cursor: pointer; font-family: inherit; text-align: left; }
.dmrow__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dmrow__top b { font-size: 14px; font-weight: 700; color: var(--ink); }
.dmrow__when { font-size: 11px; color: var(--text-3); flex: none; }
.dmrow__prev { display: block; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* clickable people (open profile) */
.feed__av--btn, .fcmt__av--btn, .frow2__av--btn { border: none; cursor: pointer; font-family: inherit; padding: 0; }
.frow2__id--btn { border: none; background: transparent; cursor: pointer; font-family: inherit; text-align: left; padding: 0; }
.fcard__who, .fcmt__who { cursor: pointer; }
.frow2__dm { flex: none; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--coral); cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.frow2__dm:active { transform: scale(.94); }

/* booking / flight detail — compact */
.td-bkhd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.td-bkchip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.td-bkchip i { font-size: 15px; }
.td-bkchip.ok { color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface)); }
.td-bkchip.prop { color: var(--coral-hover); background: color-mix(in srgb, var(--coral) 12%, var(--surface)); }
.td-bkref { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.td-bkref i { font-size: 13px; color: var(--text-3); }
.td-stay { display: flex; flex-direction: column; gap: 10px; padding: 11px 12px; border-radius: 15px; border: 1px solid var(--border); background: var(--surface); }
.td-stay--ok { border-color: color-mix(in srgb, var(--success) 30%, var(--border)); background: color-mix(in srgb, var(--success) 5%, var(--surface)); }
.td-stay--prop { border-color: color-mix(in srgb, var(--coral) 26%, var(--border)); background: color-mix(in srgb, var(--coral) 5%, var(--surface)); }
.td-stay__badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font: 800 10px/1 var(--font-body); letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.td-stay__badge i { font-size: 13px; }
.td-stay--ok .td-stay__badge { color: var(--success); background: color-mix(in srgb, var(--success) 13%, var(--surface)); }
.td-stay--prop .td-stay__badge { color: var(--coral-hover); background: color-mix(in srgb, var(--coral) 13%, var(--surface)); }
.td-stay__grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.td-stay__col { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.td-stay__col.right { text-align: right; align-items: flex-end; }
.td-stay__lbl { font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.td-stay__col b { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.td-stay__col i { font-size: 11px; color: var(--text-2); font-style: normal; white-space: nowrap; }
.td-stay__mid { display: flex; flex-direction: column; align-items: center; padding: 0 9px; border-left: 1px dashed var(--border); border-right: 1px dashed var(--border); }
.td-stay__mid b { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--coral); }
.td-stay__mid span { font-size: 10px; color: var(--text-3); }
.td-rooms { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.td-room { display: flex; align-items: center; gap: 11px; padding: 11px 13px; }
.td-room + .td-room { border-top: 1px solid var(--border); }
.td-room__n { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  color: var(--text-2); background: var(--surface-muted); }
.td-room__c b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.td-room__c span { font-size: 11.5px; color: var(--text-2); }
.td-priceline { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--coral-soft); background: color-mix(in srgb, var(--coral) 6%, var(--surface)); }
.td-priceline span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.td-priceline b { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--coral); }
.td-linkrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.td-linkrow:has(> :only-child) { grid-template-columns: 1fr; }
.td-linkcard { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border-radius: 13px; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface); }
.td-linkcard:active { background: var(--surface-muted); }
.td-linkcard__ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; color: #fff; }
.td-linkcard__ic.maps { background: var(--info-blue); }
.td-linkcard__ic.site { background: var(--ink-2); }
.td-linkcard__t { flex: 1; min-width: 0; }
.td-linkcard__t b { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.td-linkcard__t span { display: block; font-size: 10.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-flight { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 15px 14px; border-radius: 15px; border: 1px solid var(--border); background: var(--surface); }
.td-flight__end { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.td-flight__end.right { text-align: right; align-items: flex-end; }
.td-flight__end b { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.td-flight__end span { font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.td-flight__mid { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--info-blue); }
.td-flight__ic { font-size: 18px; }
.td-flight__dur { font-size: 10px; color: var(--text-3); white-space: nowrap; }
.td-facts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.td-fact2 { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.td-fact2 span { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); }
.td-fact2 b { font-size: 14px; font-weight: 700; color: var(--ink); }
.td-thread__empty { font-size: 12px; color: var(--text-3); padding: 2px 2px 8px; }

/* ============ REVIEW ROUND 7 (teammate comments) ============ */

/* guide card — bigger, roomier CTA */
.guide-card .btn-primary { width: 100%; }

/* trip setup — round-trip toggle sits next to the label; smaller switch */
.leg__label--rt { display: inline-flex; align-items: center; gap: 9px; }
.tgl--sm { width: 34px; height: 20px; }
.tgl--sm::after { width: 15px; height: 15px; top: 2.5px; left: 2.5px; }
.tgl--sm[data-on="true"]::after { transform: translateX(14px); }

/* paste sheet — upload button bound to the right of the field; coloured source pills */
.paste-upload-btn { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-muted); color: var(--ink-2); cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 700; }
.paste-upload-btn i { font-size: 15px; }
.paste-upload-btn:active { background: var(--grey-150); }
.srcpill i { color: var(--c, var(--ink)); }
.magic-row__logo { width: 22px; height: 22px; flex: none; border-radius: 6px; }
.magic-row b { color: var(--ink); font-weight: 700; }

/* map share — matches the trip "Who can access" view; add-friend row + note */
.msnote { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.45; color: var(--text-2);
  background: var(--surface-muted); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.msnote i { font-size: 15px; color: var(--text-3); flex: none; margin-top: 1px; }
.td-member--add { cursor: pointer; text-align: left; }
.td-member--add:active { background: var(--surface-muted); }
.td-member__addbtn { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--coral);
  background: #FFECEC; border-radius: 999px; padding: 5px 10px; }
[data-theme="night"] .td-member__addbtn { background: rgba(255,90,95,.16); }
.td-member--add .td-role.slate { color: var(--text-3); }

/* trip switcher — trips as cards (mirrors maps) + archive */
.tripcard { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 12px; border-radius: 15px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; text-align: left; box-shadow: var(--shadow-sm); }
.tripcard:active { background: var(--surface-muted); }
.tripcard.current { border-color: var(--coral-soft); background: color-mix(in srgb, var(--coral) 5%, var(--surface)); }
.tripcard__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.tripcard__flag { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 23px; background: var(--surface-muted); }
.tripcard__more { width: 26px; height: 26px; flex: none; border-radius: 8px; border: none; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; font-size: 17px; }
.tripcard__more:active { background: var(--surface-muted); }
.tripcard__name { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.tripcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2); }
.tripcard__now { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--coral);
  background: #FFECEC; border-radius: 999px; padding: 2px 7px; }
[data-theme="night"] .tripcard__now { background: rgba(255,90,95,.16); }
.tripcard__scrim { position: fixed; inset: 0; z-index: 70; background: rgba(15,22,32,.42); }
.tripcard__menu { position: absolute; top: 40px; right: 10px; z-index: 6; min-width: 150px; display: flex; flex-direction: column; padding: 5px; gap: 2px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--shadow-lg); }
.tripcard__menu button { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; border: none; background: transparent; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink); text-align: left; }
.tripcard__menu button:active { background: var(--surface-muted); }
.tripcard__menu button i { font-size: 16px; color: var(--text-2); }
.tripcard--new { align-items: center; justify-content: center; text-align: center; border-style: dashed; background: transparent; box-shadow: none; gap: 7px; }
.tripcard__plus { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, var(--surface)); }
.tripcard--new .tripcard__meta.one { color: var(--text-3); }
.tripsw__archtog { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit; }
.tripsw__archtog span { flex: 1; text-align: left; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.tripsw__archtog.open i:last-child { transform: rotate(180deg); }
.triprow--arch { opacity: .72; }
.triprow--arch .triprow__flag { filter: grayscale(.5); }
.triprow__unarch { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--text-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; background: var(--surface); cursor: pointer; font-family: inherit; }
.triprow__unarch i { font-size: 14px; }

/* balances — settle up / manual clear */
.td-bal__you { font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--coral); background: #FFECEC; border-radius: 999px; padding: 2px 6px; margin-left: 6px; }
[data-theme="night"] .td-bal__you { background: rgba(255,90,95,.16); }
.td-bal__v { display: inline-flex; align-items: center; gap: 4px; }
.td-bal__row.done { opacity: .68; }
.td-bal__settle { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--coral);
  border: 1px solid var(--coral-soft); border-radius: 999px; padding: 5px 10px; background: color-mix(in srgb, var(--coral) 6%, var(--surface)); cursor: pointer; font-family: inherit; }
.td-bal__settle i { font-size: 13px; }
.td-bal__settle:active { background: color-mix(in srgb, var(--coral) 12%, var(--surface)); }
.td-bal__undo { flex: none; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; display: grid; place-items: center; font-size: 15px; }
.td-bal__foot { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-top: 1px solid var(--border); background: var(--surface-muted); }
.td-bal__foot > span { flex: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.td-bal__foot > span i { font-size: 14px; color: var(--text-3); }
.td-bal__all { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 30%, var(--border)); border-radius: 999px; padding: 6px 11px; background: var(--surface); cursor: pointer; font-family: inherit; }
.td-bal__all i { font-size: 14px; }

/* booking detail — link chip up top, compact room line, quiet total */
.td-bklink { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--info-blue); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--info-blue) 28%, var(--border)); border-radius: 999px; padding: 4px 10px; margin-left: auto; max-width: 52%; }
.td-bklink i { font-size: 13px; flex: none; }
.td-bklink span, .td-bklink { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-roomline { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.td-roomline__ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; color: var(--text-2); background: var(--surface-muted); }
.td-roomline__txt { flex: 1; min-width: 0; }
.td-roomline__txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-roomline__txt span { display: block; font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-total2 { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 4px; }
.td-total2 span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.td-total2 b { font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* plan & usage — unlimited framing + side-by-side comparison */
.usage-unl { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 15px;
  border: 1px solid color-mix(in srgb, var(--magic) 24%, var(--border)); background: linear-gradient(120deg, color-mix(in srgb, var(--magic) 9%, var(--surface)), var(--surface)); }
.usage-unl__ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 21px; color: #fff; background: var(--magic-deep); }
.usage-unl__txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.usage-unl__txt span { font-size: 11.5px; color: var(--text-2); line-height: 1.4; }
.plancmp { position: relative; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.plancmp__hl { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; pointer-events: none; }
.plancmp__hl .on { margin: 1px; border-radius: 13px; background: linear-gradient(180deg, color-mix(in srgb, var(--magic) 13%, var(--surface)), color-mix(in srgb, var(--magic) 5%, var(--surface)));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--magic) 40%, transparent); }
.plancmp__head, .plancmp__row { position: relative; z-index: 1; display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; align-items: center; }
.plancmp__head { padding: 10px 0 9px; border-bottom: 1px solid var(--border); }
.plancmp__col { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 4px; }
.plancmp__special { display: inline-flex; align-items: center; gap: 3px; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--brand-gradient); border-radius: 999px; padding: 2px 7px; box-shadow: 0 3px 8px -3px rgba(193,62,155,.6); }
.plancmp__special i { font-size: 9px; }
.plancmp__col b { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--ink); }
.plancmp__price { font-size: 11px; font-weight: 800; color: var(--ink); text-align: center; line-height: 1.15; }
.plancmp__price i { display: block; font-size: 8.5px; font-weight: 600; color: var(--text-3); font-style: normal; margin-top: 1px; }
.plancmp__row { padding: 7px 0; }
.plancmp__row + .plancmp__row { border-top: 1px solid var(--border); }
.plancmp__f { font-size: 11px; font-weight: 600; color: var(--ink-2); padding-left: 12px; padding-right: 4px; white-space: nowrap; }
.plancmp__cell { display: grid; place-items: center; font-size: 16px; }
.plancmp__cell em { font-size: 11px; font-weight: 800; font-style: normal; color: var(--ink); }
.plancmp__row--cta { padding: 10px 0 11px; border-top: 1px solid var(--border); }
.plancmp__choose { font: 700 12px/1 var(--font-body); color: var(--coral); background: none; border: none; padding: 7px 2px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.plancmp__choose:active { opacity: .55; }
.plancmp__choose.down { color: var(--text-3); font-weight: 600; }
.plancmp__cur { font: 800 10px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--magic-deep); background: none; padding: 7px 2px; white-space: nowrap; }
.plancmp__note { margin: 9px 2px 0; font-size: 11px; line-height: 1.4; color: var(--text-3); }

/* monthly / yearly toggle — sits inline to the right of the "Compare plans" heading */
.plancmp-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 9px; }
.plancmp-hd__t { margin: 0 !important; }
.cyc-seg { display: inline-flex; gap: 3px; padding: 2px; margin: 0; background: var(--grey-150); border-radius: 999px; width: fit-content; }
[data-theme="night"] .cyc-seg { background: var(--surface-muted); }
.cyc-seg__b { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border: none; background: none; border-radius: 999px; cursor: pointer; font: 700 11.5px/1 var(--font-body); color: var(--text-2); }
.cyc-seg__b.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.cyc-seg__save { font-size: 9.5px; font-weight: 800; color: var(--success); background: color-mix(in srgb, var(--success) 14%, var(--surface)); border-radius: 999px; padding: 2px 6px; }

/* booking detail — labelled ref row + divider before notes */
.td-bkmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 2px; }
.td-bkref b { color: var(--ink); margin-left: 1px; }
.td-divider { height: 1px; background: var(--border); border: 0; margin: 4px 0 2px; }

/* hub booking row — name on top, status chip, check-in / nights pills, labelled note avatars */
.td-bkrow { align-items: flex-start; }
.td-bkrow__top { display: flex; align-items: center; gap: 7px; }
.td-bkrow__top b { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-bkstatus { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; }
.td-bkstatus.ok { color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface)); }
.td-bkstatus.prop { color: var(--coral-hover); background: color-mix(in srgb, var(--coral) 12%, var(--surface)); }
.td-bkrow__pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.td-pill2 { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.td-pill2 i { font-size: 12px; color: var(--text-3); }
.td-contrib { display: inline-flex; align-items: center; gap: 5px; }
.td-contrib__t { font-size: 10.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.td-contrib .td-noteav { margin-left: 0; vertical-align: 0; }
/* spans inside .td-line__txt are forced display:block by an earlier rule — re-assert for booking-row spans */
.td-bkrow .td-bkstatus, .td-bkrow .td-pill2, .td-bkrow .td-contrib, .td-bkrow .td-noteav { display: inline-flex; }
.td-bkrow .td-noteav__av { display: grid; }

/* ============ ONBOARDING INTRO — Duolingo-style ============ */
.guide-scrim { z-index: 60; display: grid; place-items: center; }
.guide2 { position: relative; width: 330px; max-width: calc(100% - 34px); background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg);
  padding: 16px 24px 24px; display: flex; flex-direction: column; align-items: center; animation: guideIn .32s cubic-bezier(.2,.9,.3,1.1) both; }
@keyframes guideIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.guide2__top { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 4px; }
.guide2__nav { flex: none; width: 34px; height: 34px; border-radius: 999px; border: none; background: var(--surface-muted); color: var(--text-2); cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.guide2__nav:active { background: var(--grey-150); }
.guide2__nav--ghost { background: none; pointer-events: none; }
.guide2__prog { flex: 1; display: flex; gap: 5px; }
.guide2__seg { flex: 1; height: 6px; border-radius: 999px; background: var(--grey-150); transition: background .3s; }
.guide2__seg.on { background: var(--coral); }
.guide2__hero { position: relative; width: 132px; height: 126px; margin: 6px auto 2px; display: grid; place-items: center; }
.guide2__halo { position: absolute; width: 116px; height: 116px; border-radius: 40px; filter: blur(16px); opacity: .48; }
.guide2__hero.brand .guide2__halo { background: var(--brand-gradient); }
.guide2__hero.coral .guide2__halo { background: var(--coral); }
.guide2__hero.magic .guide2__halo { background: var(--magic); }
.guide2__orb { position: relative; z-index: 1; width: 100px; height: 100px; border-radius: 30px; display: grid; place-items: center; color: #fff;
  box-shadow: 0 16px 30px -14px rgba(0,0,0,.4); animation: guidePop .5s cubic-bezier(.2,1.2,.35,1) both, guideFloat 4.5s ease-in-out .55s infinite; }
.guide2__hero.brand .guide2__orb { background: var(--brand-gradient); }
.guide2__hero.coral .guide2__orb { background: linear-gradient(150deg, #FF8388, var(--coral)); }
.guide2__hero.magic .guide2__orb { background: linear-gradient(150deg, #A78BFA, var(--magic-deep)); }
.guide2__em { font-size: 52px; line-height: 1; }
.guide2__orb i { font-size: 48px; }
.guide2__orb img { width: 52px; height: 52px; filter: brightness(0) invert(1); }
@keyframes guidePop { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }
@keyframes guideFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.guide2__spark { position: absolute; width: 8px; height: 8px; border-radius: 999px; background: var(--coral); opacity: .8; animation: guideTwinkle 2.6s ease-in-out infinite; }
.guide2__hero.magic .guide2__spark { background: var(--magic); }
.guide2__hero.brand .guide2__spark { background: #C13E9B; }
.guide2__spark.a { top: 12px; right: 20px; animation-delay: .1s; }
.guide2__spark.b { bottom: 20px; left: 16px; width: 6px; height: 6px; animation-delay: .8s; }
.guide2__spark.c { top: 40px; left: 8px; width: 5px; height: 5px; animation-delay: 1.5s; }
@keyframes guideTwinkle { 0%,100% { transform: scale(.6); opacity: .3; } 50% { transform: scale(1); opacity: .9; } }
.guide2__title { font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-align: center; margin: 8px 0 0; animation: guideUp .4s ease-out both; }
.guide2__body { font-size: 14.5px; line-height: 1.5; color: var(--text-2); text-align: center; margin: 8px 0 20px; max-width: 27ch; animation: guideUp .4s ease-out .05s both; }
@keyframes guideUp { from { opacity: 0; transform: translateY(8px); } }
.guide2__cta { width: 100%; height: 52px; border: none; border-radius: 16px; background: var(--coral); color: #fff; cursor: pointer;
  font: 800 14.5px/1 var(--font-body); letter-spacing: .02em; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  box-shadow: 0 4px 0 var(--coral-hover); transition: transform .08s, box-shadow .08s; }
.guide2__cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--coral-hover); }
@media (prefers-reduced-motion: reduce) { .paste-hero__aura, .guide2, .guide2__orb, .guide2__spark, .guide2__title, .guide2__body { animation: none; } }

/* add-to-map field — attachment icon + fancy in-field search button */
.paste-field.busy { border-color: color-mix(in srgb, var(--magic) 42%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--magic) 12%, transparent); }
.paste-attach { flex: none; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface-muted); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.paste-attach:active { background: var(--grey-150); }
.paste-attach i { font-size: 18px; }
.paste-go { flex: none; height: 38px; min-width: 38px; padding: 0; border-radius: 11px; border: none; background: var(--coral); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: 800 12.5px/1 var(--font-body); position: relative; overflow: hidden; transition: min-width .3s ease, background .25s; }
.paste-go:active { transform: scale(.95); }
.paste-go:disabled { cursor: default; }
.paste-go:disabled:not(.run):not(.done) { background: var(--grey-150); color: var(--text-3); }
.paste-go i { font-size: 18px; }
.paste-go__lbl { white-space: nowrap; }
.paste-go__spin { display: inline-flex; animation: pasteGoSpin .8s linear infinite; }
@keyframes pasteGoSpin { to { transform: rotate(360deg); } }
.paste-go.run { min-width: 122px; padding: 0 14px; background: var(--magic-deep); }
.paste-go.run::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent, rgba(255,255,255,.5), transparent); transform: translateX(-100%); animation: pasteGoSweep 1s linear infinite; }
@keyframes pasteGoSweep { to { transform: translateX(100%); } }
.paste-go.done { min-width: 96px; padding: 0 14px; background: var(--success); }
@media (prefers-reduced-motion: reduce) { .paste-go__spin, .paste-go.run::after { animation: none; } }

/* ============ MANAGE / CANCEL SUBSCRIPTION ============ */
.subcard { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 15px 16px; border-radius: 17px;
  border: 1px solid color-mix(in srgb, var(--magic) 26%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--magic) 11%, var(--surface)), color-mix(in srgb, var(--coral) 7%, var(--surface))); }
.subcard__badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--brand-gradient); border-radius: 999px; padding: 3px 9px; }
.subcard__price { font-family: var(--font-display); font-size: 25px; font-weight: 700; color: var(--ink); }
.subcard__price span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.subcard__meta { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.subcard__meta i { font-size: 14px; color: var(--magic-deep); }
.sub-cancel { width: 100%; margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 46px; border-radius: 13px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 700 13.5px/1 var(--font-body); cursor: pointer; }
.sub-cancel:active { background: var(--surface-muted); }
.sub-cancel i { font-size: 17px; }

.cancel-lead { font-size: 14px; line-height: 1.5; color: var(--text-2); margin: 2px 2px 4px; }
.cancel-reasons { display: flex; flex-direction: column; gap: 8px; }
.cancel-reason { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 13px; border-radius: 14px; cursor: pointer; font-family: inherit; text-align: left;
  border: 1.5px solid var(--border); background: var(--surface); transition: border-color .15s, background .15s; }
.cancel-reason.on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 6%, var(--surface)); }
.cancel-reason__ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: var(--ink-2); background: var(--surface-muted); }
.cancel-reason.on .cancel-reason__ic { color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, var(--surface)); }
.cancel-reason__lb { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.cancel-reason__box { flex: none; width: 24px; height: 24px; border-radius: 999px; border: 1.5px solid var(--border); display: grid; place-items: center; color: transparent; font-size: 14px; }
.cancel-reason.on .cancel-reason__box { background: var(--coral); border-color: var(--coral); color: #fff; }
.cancel-keep { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 11px 12px; border-radius: 12px; font-size: 12px; line-height: 1.45; color: var(--text-2);
  background: color-mix(in srgb, var(--success) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--success) 22%, var(--border)); }
.cancel-keep i { flex: none; font-size: 16px; color: var(--success); margin-top: 1px; }
.cancel-foot { display: flex; flex-direction: column; gap: 8px; }
.cancel-cont { width: 100%; height: 44px; border: none; background: none; color: var(--text-2); font: 600 13px/1 var(--font-body); cursor: pointer; border-radius: 12px; }
.cancel-cont:disabled { opacity: .4; cursor: default; }
.cancel-cont:not(:disabled):active { background: var(--surface-muted); }

.cancel-offer { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; padding: 22px 18px 20px; border-radius: 18px; }
.cancel-offer.magic { background: linear-gradient(150deg, color-mix(in srgb, var(--magic) 13%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--magic) 30%, var(--border)); }
.cancel-offer.coral { background: linear-gradient(150deg, color-mix(in srgb, var(--coral) 12%, var(--surface)), var(--surface)); border: 1px solid var(--coral-soft); }
.cancel-offer__ic { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; font-size: 28px; color: #fff; margin-bottom: 4px; }
.cancel-offer.magic .cancel-offer__ic { background: linear-gradient(150deg, #A78BFA, var(--magic-deep)); box-shadow: 0 12px 24px -10px rgba(124,58,237,.6); }
.cancel-offer.coral .cancel-offer__ic { background: linear-gradient(150deg, #FF8388, var(--coral)); box-shadow: 0 12px 24px -10px rgba(255,90,95,.55); }
.cancel-offer__title { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.cancel-offer__body { font-size: 13.5px; line-height: 1.5; color: var(--text-2); max-width: 30ch; margin: 0 0 6px; }
.cancel-offer__cta { width: 100%; height: 50px; border: none; border-radius: 14px; color: #fff; cursor: pointer; font: 800 14px/1 var(--font-body); }
.cancel-offer.magic .cancel-offer__cta { background: var(--magic-deep); box-shadow: 0 4px 0 color-mix(in srgb, var(--magic-deep) 70%, #000); }
.cancel-offer.coral .cancel-offer__cta { background: var(--coral); box-shadow: 0 4px 0 var(--coral-hover); }
.cancel-offer__cta:active { transform: translateY(3px); box-shadow: none; }
.cancel-or { display: block; text-align: center; font-size: 11px; font-weight: 600; color: var(--text-3); margin: 4px 0 2px; }
.cancel-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cancel-compare__col { padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.cancel-compare__col.keep { border-color: color-mix(in srgb, var(--success) 26%, var(--border)); background: color-mix(in srgb, var(--success) 5%, var(--surface)); }
.cancel-compare__eye { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.cancel-compare__col.keep .cancel-compare__eye { color: var(--success); }
.cancel-compare__col.lose .cancel-compare__eye { color: var(--text-3); }
.cancel-compare ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.cancel-compare li { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; line-height: 1.35; color: var(--ink-2); }
.cancel-compare li i { flex: none; font-size: 14px; margin-top: 1px; }
.cancel-compare__col.keep li i { color: var(--success); }
.cancel-compare__col.lose { opacity: .9; }
.cancel-compare__col.lose li { color: var(--text-2); }
.cancel-compare__col.lose li i { color: var(--text-3); }
.cancel-final { width: 100%; margin-top: 2px; height: 46px; border-radius: 13px; border: 1px solid color-mix(in srgb, var(--coral) 30%, var(--border));
  background: var(--surface); color: var(--coral-hover); font: 700 13px/1 var(--font-body); cursor: pointer; }
.cancel-final:active { background: color-mix(in srgb, var(--coral) 7%, var(--surface)); }

.cancel-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 12px 6px; }
.cancel-done__ic { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; font-size: 36px; color: #fff; background: linear-gradient(150deg, #FF8388, var(--coral)); box-shadow: 0 16px 30px -14px rgba(255,90,95,.5); margin-bottom: 4px; }
.cancel-done__ic.ok { background: linear-gradient(150deg, #59D3A0, var(--success)); box-shadow: 0 16px 30px -14px rgba(14,159,110,.5); }
.cancel-done b { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--ink); }
.cancel-done p { font-size: 13.5px; line-height: 1.55; color: var(--text-2); max-width: 32ch; margin: 0 0 6px; }
.cancel-done__card { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; color: var(--ink-2);
  background: var(--surface-muted); border: 1px solid var(--border); margin-bottom: 10px; }
.cancel-done__card i { font-size: 15px; color: var(--text-2); }
.cancel-done .btn-primary { width: 100%; }
.cancel-done.kept p { margin-bottom: 12px; }

/* ============ SPLASH ============ */
.splash { position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; background: var(--brand-gradient); overflow: hidden; animation: splashIn .4s ease-out; }
@keyframes splashIn { from { opacity: 0; } }
.splash__glow { position: absolute; width: 340px; height: 340px; border-radius: 999px; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 65%); animation: splashPulse 2.2s ease-in-out infinite; }
@keyframes splashPulse { 0%,100% { transform: scale(.9); opacity: .5; } 50% { transform: scale(1.12); opacity: .85; } }
.splash__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.splash__mark { width: 96px; height: 96px; border-radius: 28px; background: #fff; display: grid; place-items: center; box-shadow: 0 20px 44px -16px rgba(0,0,0,.45); animation: splashPop .6s cubic-bezier(.2,1.3,.35,1) both; }
.splash__mark img { width: 58px; height: 58px; object-fit: contain; }
@keyframes splashPop { from { opacity: 0; transform: scale(.5) rotate(-10deg); } }
.splash__name { margin-top: 16px; font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: #fff; animation: guideUp .5s ease-out .2s both; }
.splash__tag { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); animation: guideUp .5s ease-out .3s both; }
.splash__dots { position: absolute; bottom: 46px; display: inline-flex; gap: 7px; }
.splash__dots i { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.6); animation: splashDot 1.1s ease-in-out infinite; }
.splash__dots i:nth-child(2) { animation-delay: .15s; }
.splash__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes splashDot { 0%,100% { opacity: .4; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .splash, .splash__mark, .splash__name, .splash__tag, .splash__glow, .splash__dots i { animation: none; } }

/* ============ TRAVEL VIBE ============ */
.vibe-lead { font-size: 14px; line-height: 1.5; color: var(--text-2); margin: 2px 2px 6px; }
.vibe-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vibe-chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 600; color: var(--ink); border: 1.5px solid var(--border); background: var(--surface-muted); transition: border-color .15s, background .15s, color .15s; }
.vibe-chip__em { font-size: 15px; }
.vibe-chip.on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 9%, var(--surface)); color: var(--coral-hover); }
.vibe-chip.on i { color: var(--coral); }
.vibe-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 11px 12px; border-radius: 12px; font-size: 12px; line-height: 1.45; color: var(--text-2); background: var(--surface-muted); border: 1px solid var(--border); }
.vibe-note i { flex: none; font-size: 15px; color: var(--text-3); margin-top: 1px; }
.vibe-foot { display: flex; flex-direction: column; gap: 6px; }
.vibe-foot .btn-primary { width: 100%; }
.vibe-skip { width: 100%; height: 40px; border: none; background: none; color: var(--text-2); font: 600 13px/1 var(--font-body); cursor: pointer; }

/* ============ ABOUT YOU — onboarding quiz wizard ============ */
@keyframes oaFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* each step fills the sheet so short steps read as designed, not sparse */
.oa-prog { height: 5px; border-radius: 999px; background: var(--grey-150); overflow: hidden; margin: 2px 0 4px; }
.oa-prog span { display: block; height: 100%; border-radius: 999px; background: var(--brand-gradient); transition: width .35s cubic-bezier(.2,0,0,1); }
.oa-step { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 13px; animation: oaFade .24s ease-out; }
.oa-scene, .oa-reveal { justify-content: center; text-align: center; }
.oa-sub { font-weight: 500; color: var(--text-3); }
.oa-q { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.oa-qsub { font-size: 13.5px; color: var(--text-2); margin: -6px 0 2px; line-height: 1.45; }
.oa-step .grouphdr { margin: 2px 2px -2px; }
.oa-step .vibe-lead { margin: 0 0 2px; }

/* searchable picker */
.oa-search { display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); }
.oa-search:focus-within { border-color: var(--coral-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 12%, transparent); }
.oa-search input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: 400 15px/1 var(--font-body); color: var(--ink); }
.oa-search__x { flex: none; border: none; background: var(--grey-150); color: var(--ink-2); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.oa-pick { display: flex; flex-direction: column; gap: 10px; }
.oa-pick__list { max-height: 210px; overflow-y: auto; padding: 3px 2px; margin: -1px; scrollbar-width: thin; }
.oa-noresult { font-size: 13px; color: var(--text-3); padding: 6px 2px; }

/* "what brings you" cards */
.oa-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.oa-card { display: flex; align-items: center; gap: 13px; padding: 15px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.oa-card.on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 8%, var(--surface)); }
.oa-card__ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 20px; color: var(--ink-2); background: var(--surface-muted); border: 1px solid var(--border); }
.oa-card.on .oa-card__ic { color: var(--coral); border-color: var(--coral-soft); background: color-mix(in srgb, var(--coral) 12%, var(--surface)); }
.oa-card__t { flex: 1; font-size: 15px; font-weight: 700; color: var(--ink); }
.oa-card__chk { width: 27px; height: 27px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-muted); color: var(--text-3); font-size: 15px; transition: background .15s, color .15s; }
.oa-card.on .oa-card__chk { background: var(--coral); color: #fff; }

/* slider scenes — emoji end-caps + poled slider */
.oa-scene__eye { display: block; font: 800 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 2px; }
.oa-slide { margin: 22px 4px 0; }
.oa-slide__ends { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.oa-end { font-size: 32px; line-height: 1; opacity: .4; filter: grayscale(.5); transition: opacity .18s ease, transform .18s ease, filter .18s ease; }
.oa-end.on { opacity: 1; filter: none; transform: scale(1.22) translateY(-2px); }
.oa-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; margin: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--coral) var(--fill, 50%), var(--grey-150) var(--fill, 50%)); }
.oa-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--coral); box-shadow: var(--shadow-md); cursor: grab; }
.oa-slider:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.08); }
.oa-slider::-moz-range-thumb { width: 26px; height: 26px; border: 3px solid var(--coral); border-radius: 50%; background: #fff; cursor: grab; }
.oa-slide__labels { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; text-align: left; }
.oa-lbl { flex: 1; }
.oa-lbl.right { text-align: right; }
.oa-lbl b { display: block; font-size: 13.5px; color: var(--text-2); transition: color .15s; }
.oa-lbl span { display: block; font-size: 11.5px; line-height: 1.4; color: var(--text-3); margin-top: 3px; }
.oa-lbl.on b { color: var(--coral); }
.oa-lean { align-self: center; margin-top: 26px; padding: 9px 16px; border-radius: 999px; background: var(--surface-muted); border: 1px solid var(--border); font: 700 13px/1 var(--font-body); color: var(--ink); }

/* travel-type reveal */
.oa-reveal__eye { display: inline-flex; align-items: center; gap: 6px; font: 800 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.oa-type { padding: 30px 22px; border-radius: 22px; background: color-mix(in srgb, var(--coral) 7%, var(--surface)); border: 1.5px solid var(--coral-soft); }
.oa-type__em { font-size: 60px; line-height: 1; display: block; }
.oa-type__name { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 16px 0 10px; }
.oa-type__blurb { font-size: 14.5px; line-height: 1.6; color: var(--text-2); margin: 0 auto; max-width: 30ch; }
.oa-recap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0; }
.oa-recap__chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: 700 12.5px/1 var(--font-body); color: var(--ink); }
.oa-recap__flag { font-size: 17px; line-height: 1; }
.oa-reveal__note { font-size: 12px; color: var(--text-3); line-height: 1.5; margin: 0 8px; }

.oa-foot { display: flex; flex-direction: column; gap: 4px; }
.oa-foot .btn-primary { width: 100%; }
.cv-visa-flag { font-size: 15px; margin-left: 2px; vertical-align: -1px; }

/* ============ BOOKMARK SAVE ANIMATION (fires whenever a bookmark fills) ============ */
@keyframes bkPop {
  0%   { transform: scale(.5) translateY(2px); }
  40%  { transform: scale(1.34) translateY(-2px); }
  62%  { transform: scale(.9); }
  100% { transform: scale(1); }
}
.ti-bookmark-filled { display: inline-block; transform-origin: center; animation: bkPop .46s cubic-bezier(.34,1.56,.4,1) both; }
@media (prefers-reduced-motion: reduce) { .ti-bookmark-filled { animation: none; } }

/* ============ DATA & PRIVACY — delete-account confirm ============ */
.del-warn { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 8px 8px 4px; }
.del-warn__ic { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; font-size: 27px; color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, var(--surface)); margin-bottom: 4px; }
.del-warn b { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); }
.del-warn p { font-size: 13px; line-height: 1.5; color: var(--text-2); max-width: 33ch; margin: 0; }
.del-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.del-line { display: flex; align-items: center; gap: 10px; padding: 11px 13px; font-size: 13px; color: var(--ink-2); }
.del-line + .del-line { border-top: 1px solid var(--border); }
.del-line__x { flex: none; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; color: var(--coral); background: color-mix(in srgb, var(--coral) 11%, var(--surface)); }
.del-ack { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 13px; border-radius: 13px; cursor: pointer; text-align: left; font-family: inherit;
  border: 1.5px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.del-ack.on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 6%, var(--surface)); color: var(--ink); }
.del-ack__box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--border); display: grid; place-items: center; color: transparent; font-size: 14px; }
.del-ack.on .del-ack__box { background: var(--coral); border-color: var(--coral); color: #fff; }
.del-alt { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; line-height: 1.45; color: var(--text-2); margin: 2px 2px 0; }
.del-alt i { flex: none; font-size: 15px; color: var(--text-3); margin-top: 1px; }
.del-final { width: 100%; height: 50px; border-radius: 13px; border: none; background: var(--coral); color: #fff; font: 800 14px/1 var(--font-body); cursor: pointer; box-shadow: 0 4px 0 var(--coral-hover); }
.del-final:disabled { opacity: .45; box-shadow: none; cursor: default; }
.del-final:not(:disabled):active { transform: translateY(3px); box-shadow: 0 1px 0 var(--coral-hover); }
