/* Trvlrr on the web — the signed-in web app.
   Same night/cream/peach as the marketing site (tokens come from /styles.css);
   this file adds the app furniture the static pages never needed.

   The app's own classes are prefixed — app-, itin-, tile-, chart-, day-. That is not
   decoration: /styles.css loads first and already defines .row, .day and friends, and
   its `.day { justify-items: center }` centred every itinerary row before the rename.

   Motion is additive everywhere. Every element is styled correct and visible at rest;
   an animation class only opts it into moving, so prefers-reduced-motion (and any
   browser without the observer) lands on the finished page. */

/* Every box here is flex or grid, and a `display` rule beats the `hidden` attribute's
   own `display: none` — so hidden has to be said louder, once, for all of them. */
[hidden] { display: none !important; }

.appbody {
  background: var(--night);
  color: var(--cream);
  min-height: 100svh;
  /* The nav is fixed, so every screen starts below it. */
  padding-top: 64px;
}
body.no-scroll { overflow: hidden; }

/* ---------- Nav ---------- */
.appnav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
  background: rgba(15, 18, 48, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--cream-25);
}
.appnav .brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 400; font-size: 21px;
  color: var(--cream); letter-spacing: -0.02em;
}
.appnav .brand img { border-radius: 7px; }
.apptabs { display: flex; gap: 4px; margin-left: 8px; }
.apptabs a {
  color: var(--cream-72); font-weight: 700; font-size: 14px;
  padding: 7px 14px; border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.apptabs a:hover { color: var(--cream); background: rgba(255, 243, 228, 0.08); }
.apptabs a[aria-current="page"] { color: var(--night); background: var(--peach); }
.appwho { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.appwho-mail {
  color: var(--cream-72); font-size: 13px;
  max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-btn {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--cream-72); background: transparent;
  border: 1px solid var(--cream-25); border-radius: 999px; padding: 7px 14px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.app-btn:hover { color: var(--cream); border-color: var(--cream-72); }

/* The tabs and the account sit in one wrapper that does not exist as a box on a wide
   screen, so the row lays out exactly as it did before the wrapper was there. */
.app-navmenu { display: contents; }
.app-burger, .app-navhere { display: none; }

/* On a phone five tabs and a button do not fit one row, and wrapping to two pushed the
   page heading up underneath a nav whose height the body padding no longer matched. So
   the bar says where you are, and a button opens the rest. */
@media (max-width: 720px) {
  .appnav { gap: 12px; padding: 10px 16px; flex-wrap: nowrap; }
  .app-navhere { display: block; color: var(--cream); font-weight: 800; font-size: 15px; }
  .app-burger {
    display: grid; gap: 5px; align-content: center; justify-items: center; margin-left: auto;
    width: 44px; height: 44px; padding: 0; cursor: pointer; background: transparent;
    border: 1px solid var(--cream-25); border-radius: 999px;
  }
  .app-burger span {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--cream);
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  }
  .app-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .app-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .app-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .app-navmenu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    padding: 10px 16px 18px; background: rgba(15, 18, 48, 0.98);
    border-bottom: 1px solid var(--cream-25); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  }
  .app-navmenu.is-open { display: grid; gap: 12px; animation: arrive 0.25s var(--ease) both; }
  .apptabs { flex-direction: column; margin-left: 0; gap: 2px; }
  .apptabs a { padding: 13px 16px; font-size: 16px; border-radius: 14px; }
  .appwho {
    margin-left: 0; justify-content: space-between; padding: 14px 4px 0 16px;
    border-top: 1px solid var(--cream-25);
  }
  .appwho-mail { max-width: none; flex: 1; min-width: 0; }
}

/* ---------- Sign-in gate ---------- */
.gate { min-height: calc(100svh - 64px); display: grid; place-items: center; padding: 40px 24px 80px; }
.gate-card { max-width: 460px; text-align: center; }
/* Direct child only: Clerk renders its own <h1> inside #clerk-signin, and a cream
   heading in the display serif is unreadable on its white card. */
.gate-card > h1 { font-size: clamp(40px, 6vw, 62px); color: var(--cream); margin: 8px 0 0; }
.gate-lede { color: var(--cream-72); font-size: 17px; margin: 14px 0 28px; }
.gate-note { color: var(--peach); font-size: 15px; margin-top: 20px; }
/* Clerk's widget is somebody else's document inside ours. Give it the body face and
   ink to inherit, so /styles.css's h1/h2/h3 and link colours cannot reach into it. */
#clerk-signin { display: flex; justify-content: center; font-family: var(--body); color: var(--text); }
#clerk-signin h1, #clerk-signin h2, #clerk-signin h3 { font-family: var(--body); color: inherit; }
#clerk-signin a { color: var(--teal); }

/* ---------- Screens ---------- */
.app-screen { max-width: var(--max); margin: 0 auto; padding: 40px 24px 96px; }
.app-screen-head { margin-bottom: 34px; }
.app-screen-head h1 { font-size: clamp(38px, 5.4vw, 66px); color: var(--cream); }
.app-sub { color: var(--cream-72); margin-top: 10px; font-size: 17px; }
.app-loading, .app-empty, .app-failed { color: var(--cream-72); padding: 60px 0; font-size: 17px; }
.app-failed { color: var(--peach); }
.app-loading { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.9; } }

/* A screen arrives rather than appearing. */
.app-screen.arrive { animation: arrive 0.45s var(--ease) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Cards lift in as they come into view, a beat apart. */
.will-rise { opacity: 0; transform: translateY(20px); }
.risen {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.block-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.block-head h1 { margin: 0; }
.block-head h2 { margin: 0; }
.block-note {
  color: var(--cream-72); font-size: 12px; font-weight: 800; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 999px; background: rgba(255, 243, 228, 0.08);
}

/* A pair of tabs that swap one pane for another. */
.modes { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px;
         background: rgba(255, 243, 228, 0.07); border: 1px solid var(--cream-25); }
.modes .mode {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--cream-72); background: transparent; border: 0;
  padding: 6px 15px; border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.modes .mode:hover { color: var(--cream); }
.modes .mode.on { color: var(--night); background: var(--peach); }

/* ---------- Trips ---------- */
.trip-year { margin-bottom: 52px; }
.year-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--cream-25);
}
.year-head h2 { font-size: clamp(30px, 3.4vw, 42px); color: var(--cream); }
.year-count { color: var(--cream-72); font-size: 14px; font-weight: 700; }

.tripgrid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }
.tripcard {
  display: block; color: var(--cream); border-radius: var(--radius); overflow: hidden;
  background: var(--ink); border: 1px solid var(--cream-25);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.tripcard:hover {
  transform: translateY(-4px); border-color: var(--peach);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}
.tripcard-cover {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, #2c2a63, #7a5aa5);
}
.tripcard-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.6s var(--ease);
}
.tripcard:hover .tripcard-cover img.shown { transform: scale(1.06); }
.tripcard-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.34) 0%, rgba(0,0,0,0.12) 45%, rgba(0,0,0,0.66) 100%);
}
.tripcard-on { position: absolute; inset: auto 0 0 0; padding: 16px 18px; z-index: 1; }
.tripcard-on h3 { font-size: 24px; line-height: 1.1; color: #fff; }
.tripcard-body { padding: 14px 18px 17px; }
.tripcard-route { color: var(--cream); font-size: 14px; font-weight: 600; line-height: 1.45; }
.tripcard-meta { color: var(--cream-72); font-size: 13px; margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}
.tag-planned { background: var(--peach); color: var(--night); }

/* A photo fades up rather than snapping in when its bytes land. */
.lazyshot { opacity: 0; }
.lazyshot.shown { opacity: 1; }

/* ---------- Trip detail ---------- */
.app-back {
  color: var(--cream-72); font-size: 14px; font-weight: 700;
  display: inline-block; margin-bottom: 20px;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.app-back:hover { color: var(--cream); transform: translateX(-3px); }
/* Capped: at full width a 21:8 band is 450px of gradient before the itinerary starts. */
.trip-hero {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 8;
  max-height: 320px; background: linear-gradient(135deg, #2c2a63, #7a5aa5); margin-bottom: 30px;
}
.trip-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.7s var(--ease);
}
.trip-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.72) 100%);
}
.trip-hero-on { position: absolute; inset: auto 0 0 0; padding: 26px 30px; z-index: 1; }
.trip-hero-on h1 { font-size: clamp(30px, 4.4vw, 54px); color: #fff; }
.hero-when { color: rgba(255,255,255,0.86); font-size: 16px; margin-top: 8px; font-weight: 600; }
@media (max-width: 720px) { .trip-hero { aspect-ratio: 3 / 2; } .trip-hero-on { padding: 18px 20px; } }

.trip-cols { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
/* A grid item's min-width is its content by default, so the day strip — which is
   twenty-six pills wide — pushed its own column out over the sidebar instead of
   scrolling inside it. The track was already minmax(0, 1fr); the item has to agree. */
.trip-cols > * { min-width: 0; }
@media (max-width: 900px) { .trip-cols { grid-template-columns: minmax(0, 1fr); } }

.app-block { margin-bottom: 40px; }
.app-block > h2, .block-head h2 {
  font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--peach);
}
.app-block > h2 { margin-bottom: 14px; }

/* ---------- Day by day ---------- */
.itin-days {
  display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 4px 2px 12px; scrollbar-width: thin;
  scrollbar-color: var(--cream-25) transparent;
}
.itin-days::-webkit-scrollbar { height: 6px; }
.itin-days::-webkit-scrollbar-thumb { background: var(--cream-25); border-radius: 999px; }
.day-pill {
  flex: 0 0 auto; width: 54px; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 7px 0 9px; border-radius: 15px;
  background: rgba(255, 243, 228, 0.05); border: 1px solid var(--cream-25);
  color: var(--cream); scroll-margin-inline: 40px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.day-pill:hover { transform: translateY(-2px); border-color: var(--cream-72); }
.day-pill.quiet { color: var(--cream-25); }
.day-pill.on {
  background: var(--peach); border-color: var(--peach); color: var(--night);
  transform: translateY(-2px);
}
/* The day you are actually on keeps a mark even when another day is selected. */
.day-pill.today:not(.on) { border-color: var(--peach); }
.pill-month { font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
              opacity: 0.75; min-height: 12px; }
.pill-weekday { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.pill-date { font-size: 19px; font-weight: 800; line-height: 1.1; font-variant-numeric: proportional-nums; }

.day-panel { min-height: 120px; }
.day-panel.turned { animation: turn 0.34s var(--ease) both; }
@keyframes turn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.day-heading {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-size: 15px; font-weight: 800; color: var(--cream); margin: 6px 0 12px;
}
.day-of { font-size: 12px; font-weight: 700; color: var(--cream-72); letter-spacing: 0.04em; }
.day-blank { color: var(--cream-25); font-size: 15px; padding: 18px 0 26px; }

/* A day's worth of the itinerary in the Everything pane: the date once, then its rows. */
.itin-day { margin-bottom: 22px; }
.itin-date { font-size: 13px; font-weight: 800; color: var(--cream-72); letter-spacing: 0.04em; margin-bottom: 8px; }

.itin-row {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px;
  padding: 13px 16px; border-radius: 16px; background: rgba(255, 243, 228, 0.05);
  border: 1px solid var(--cream-25); margin-bottom: 8px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.itin-row:hover { background: rgba(255, 243, 228, 0.09); border-color: var(--cream-72); }
/* The mode as a word rather than an icon: the site is type-driven, and a label never
   has to be guessed at. The word also carries the tone — a coloured rail down the
   side of every row was one stripe too many for a list this dense. */
.itin-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--peach); line-height: 1.9; overflow: hidden; text-overflow: ellipsis;
}
.itin-row.tone-go .itin-label { color: #8fbfe0; }
.itin-row.tone-stay .itin-label { color: #ab92cf; }
.itin-row.tone-do .itin-label { color: var(--peach); }
.itin-row.tone-warn .itin-label { color: var(--rose); }
.itin-row.tone-quiet .itin-label { color: rgba(255, 243, 228, 0.42); }
.itin-title { color: var(--cream); font-weight: 700; font-size: 16px; line-height: 1.35; }
.itin-sub { color: var(--cream-72); font-size: 14px; margin-top: 4px; line-height: 1.5; }
.itin-sub .itin-sep { opacity: 0.45; margin: 0 2px; }
/* The separator is surrounded by real spaces so a line can break between facts. */
.itin-bit { white-space: nowrap; }
.itin-row.is-planned { border-style: dashed; }
.itin-row.is-cancelled .itin-title { text-decoration: line-through; opacity: 0.66; }
.itin-row.is-warning .itin-title { color: var(--rose); }
.itin-row.is-done .itin-title::after { content: " ✓"; color: var(--peach); }

/* ---------- Side cards ---------- */
.side-card {
  background: rgba(255, 243, 228, 0.05); border: 1px solid var(--cream-25);
  border-radius: 18px; padding: 18px 20px; margin-bottom: 16px;
}
.side-card h2 {
  font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--peach); margin-bottom: 12px;
}
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li { color: var(--cream); font-size: 15px; padding: 5px 0; line-height: 1.45; }
.side-card li .muted2 { color: var(--cream-72); }
.side-notes { color: var(--cream-72); font-size: 15px; white-space: pre-wrap; line-height: 1.55; }

/* ---------- Photos ---------- */
.photo-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); }
.shot {
  padding: 0; border: 0; cursor: zoom-in; border-radius: 12px; overflow: hidden;
  aspect-ratio: 1; display: block; position: relative;
  /* A quiet shimmer stands in for the photo, so the grid has shape before it has
     pictures rather than collapsing and then jumping. */
  background: linear-gradient(100deg, rgba(255,243,228,0.05) 30%, rgba(255,243,228,0.11) 50%,
                              rgba(255,243,228,0.05) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.8s linear infinite;
}
.shot:has(img.shown) { animation: none; }
@keyframes shimmer { to { background-position: -300% 0; } }
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.shot:hover img.shown { transform: scale(1.07); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(8, 9, 24, 0.95);
  backdrop-filter: blur(6px);
  display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: 56px 24px 20px;
  animation: fadein 0.25s var(--ease) both;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.lightbox-stage {
  position: relative; display: grid; place-items: center;
  width: 100%; height: 100%; min-height: 0;
}
.lightbox-stage img {
  grid-area: 1 / 1; max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 10px;
}
#lightbox-img { opacity: 0; transition: opacity 0.3s var(--ease); }
#lightbox-img.shown { opacity: 1; }
#lightbox-img.from-right { animation: slide-right 0.34s var(--ease) both; }
#lightbox-img.from-left { animation: slide-left 0.34s var(--ease) both; }
@keyframes slide-right { from { transform: translateX(34px); } to { transform: none; } }
@keyframes slide-left { from { transform: translateX(-34px); } to { transform: none; } }
/* The thumbnail the grid already holds, blurred up to fill the frame while the full
   size downloads. A soft version of the photo beats an empty rectangle. */
.lightbox-ghost { filter: blur(18px); transform: scale(1.03); opacity: 0.75; }
.lightbox-ghost:not([src]) { display: none; }
.lightbox-spin {
  grid-area: 1 / 1; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--cream-25); border-top-color: var(--cream);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lightbox-count {
  color: var(--cream-72); font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums; padding-top: 14px;
}
/* Above the stage: the photo fills the frame, and without this it paints over the
   controls — the arrow keys worked while a click on the arrow hit the picture. */
.lightbox-close, .lightbox-step {
  position: absolute; z-index: 2; font: inherit; cursor: pointer; color: var(--cream);
  background: rgba(255, 243, 228, 0.08); border: 1px solid var(--cream-25);
  border-radius: 999px; line-height: 1;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox-close:hover, .lightbox-step:hover { background: rgba(255, 243, 228, 0.2); }
.lightbox-close { top: 16px; right: 20px; font-size: 24px; width: 42px; height: 42px; }
.lightbox-step {
  top: 50%; margin-top: -26px; font-size: 30px; width: 52px; height: 52px;
  padding-bottom: 4px;
}
.lightbox-step.prev { left: 18px; }
.lightbox-step.next { right: 18px; }
.lightbox-step.prev:hover { transform: translateX(-3px); }
.lightbox-step.next:hover { transform: translateX(3px); }
@media (max-width: 720px) {
  .lightbox { padding: 52px 8px 14px; }
  .lightbox-step { width: 42px; height: 42px; font-size: 24px; margin-top: -21px; }
  .lightbox-step.prev { left: 6px; }
  .lightbox-step.next { right: 6px; }
}

/* ---------- Map ---------- */
.globewrap { position: relative; display: grid; place-items: center; }
#globe {
  width: min(100%, 680px); aspect-ratio: 1; cursor: grab; touch-action: none;
  display: block;
}
#globe.dragging { cursor: grabbing; }
#globe.over-pin { cursor: pointer; }
.globetip {
  position: absolute; pointer-events: none; z-index: 4; transform: translate(-50%, calc(-100% - 14px));
  background: var(--cream); color: var(--text); border-radius: 10px; padding: 7px 11px;
  font-size: 13px; line-height: 1.35; white-space: nowrap;
  box-shadow: 0 6px 22px rgba(0,0,0,0.4);
}
.mapwrap.flat {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--cream-25);
  background: #0c0e26;
}
.mapwrap svg { display: block; width: 100%; height: auto; }
.pin { cursor: pointer; }
.pin circle { transition: r 0.25s var(--ease); }
.pin:hover circle, .pin:focus-visible circle { r: 6.5; }
/* Flat-map routes draw themselves in, a few at a time, rather than all appearing. */
.mapwrap .arc.drawn {
  stroke-dasharray: 2000; stroke-dashoffset: 2000;
  animation: draw 1.5s var(--ease) forwards;
  animation-delay: calc(var(--arc-order) * 40ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.mapwrap .pin.drawn { animation: pop 0.4s var(--ease) both; animation-delay: calc(var(--pin-order) * 22ms); }
@keyframes pop { from { opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center; }
                 to { opacity: 1; transform: none; } }
.maplegend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--cream-72); font-size: 14px; }
.maplegend span { display: flex; align-items: center; gap: 8px; }
.maphint { margin-left: auto; opacity: 0.7; }
.swatch { width: 11px; height: 11px; border-radius: 999px; display: inline-block; }

/* ---------- Stats ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); margin-bottom: 40px; }
.tile {
  background: rgba(255, 243, 228, 0.05); border: 1px solid var(--cream-25);
  border-radius: 18px; padding: 18px 20px 20px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.tile:hover { border-color: var(--cream-72); transform: translateY(-3px); }
.tile-label { color: var(--cream-72); font-size: 13px; font-weight: 700; }
/* Stat values are sans and proportional on purpose: tabular figures read loose at
   display sizes, and a serif here would look like decoration rather than data. The
   unit rides on the same line, and a six-figure number steps down rather than
   running into the edge of its tile. */
.tile-value {
  display: flex; align-items: baseline; gap: 5px; margin-top: 8px;
  font-family: var(--body); font-weight: 800; font-size: 38px; line-height: 1.05;
  color: var(--cream); font-variant-numeric: proportional-nums; letter-spacing: -0.02em;
}
.tile-value.is-long { font-size: 30px; }
.tile-number { min-width: 0; }
.tile-unit { font-size: 16px; font-weight: 700; color: var(--cream-72); }
.tile-under { color: var(--cream-72); font-size: 13px; margin-top: 6px; }

.chartcard {
  background: rgba(255, 243, 228, 0.05); border: 1px solid var(--cream-25);
  border-radius: 18px; padding: 22px 24px 18px; margin-bottom: 26px;
}
.chartcard h2 { font-family: var(--display); font-size: 26px; color: var(--cream); }
.chartcard .app-sub { font-size: 14px; margin-top: 6px; }
.chart { margin-top: 20px; position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-bar { fill: var(--peach); transition: fill 0.15s ease; }
/* Bars grow out of the baseline, left to right. */
.chart.grown .chart-bar {
  transform: scaleY(0); transform-origin: center bottom;
  animation: grow 0.7s var(--ease) forwards;
  animation-delay: calc(var(--grow-order) * 35ms);
}
@keyframes grow { to { transform: scaleY(1); } }
/* A zero-alpha fill is not reliably hit-tested, so say it outright. */
.chart-hit { fill: transparent; pointer-events: all; cursor: pointer; }
.chart-bar.on { fill: #ffdcbb; }
.chart-grid { stroke: rgba(255, 243, 228, 0.13); stroke-width: 1; }
.chart-axis { fill: var(--cream-72); font-family: var(--body); font-size: 11px; font-weight: 700;
              font-variant-numeric: tabular-nums; }
.chart-label { fill: var(--cream); font-family: var(--body); font-size: 11px; font-weight: 800; }
.tip {
  position: absolute; pointer-events: none; z-index: 4; transform: translate(-50%, -100%);
  background: var(--cream); color: var(--text); border-radius: 10px; padding: 7px 11px;
  font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 22px rgba(0,0,0,0.35);
}
.tipval { font-variant-numeric: tabular-nums; }

/* Every chart has a table twin — the value is never hover-only. */
details.tableview { margin-top: 16px; }
details.tableview summary { color: var(--cream-72); font-size: 13px; font-weight: 700; cursor: pointer; }
details.tableview summary:hover { color: var(--cream); }
details.tableview table { border-collapse: collapse; margin-top: 12px; font-size: 14px; }
details.tableview th, details.tableview td {
  text-align: left; padding: 5px 20px 5px 0; color: var(--cream);
  border-bottom: 1px solid var(--cream-25); font-variant-numeric: tabular-nums;
}
details.tableview th { color: var(--cream-72); font-size: 12px; font-weight: 800;
                       letter-spacing: 0.1em; text-transform: uppercase; }

.homelist { list-style: none; margin: 0; padding: 0; }
.homelist li { padding: 10px 0; border-bottom: 1px solid var(--cream-25); color: var(--cream); font-size: 16px; }
.homelist li:last-child { border-bottom: 0; }
.home-years { color: var(--cream-72); font-size: 14px; }

/* ---------- Buttons, rows, notes: the editing furniture ---------- */
.app-btn.is-small { font-size: 12px; padding: 5px 11px; }
.app-btn.is-primary { color: var(--night); background: var(--peach); border-color: var(--peach); }
.app-btn.is-primary:hover { background: #ffdcbb; border-color: #ffdcbb; color: var(--night); }
.app-btn.is-danger { color: #fff; background: #b8505a; border-color: #b8505a; }
.app-btn.is-danger:hover { background: #cc5f69; border-color: #cc5f69; color: #fff; }
.app-btn.is-danger-quiet { color: var(--rose); }
.app-btn.is-danger-quiet:hover { color: #f0a9af; border-color: var(--rose); }
.app-btn:disabled { opacity: 0.5; cursor: default; }
.app-btn.is-busy { opacity: 0.6; cursor: progress; }
a.app-btn { display: inline-block; text-decoration: none; }
.app-btn:focus-visible, .itin-row.is-editable:focus-visible, .day-pill:focus-visible,
.app-switch:focus-visible, .pack-tick:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }

.trip-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; align-items: center; }
.trip-actions.is-centred { justify-content: center; margin-top: 28px; }
.app-screen.is-narrow { max-width: 820px; }
.app-note { color: var(--cream-72); font-size: 14px; line-height: 1.55; }
.block-head .app-btn { margin-left: auto; }
.block-head .app-btn + .app-btn, .block-head .app-note { margin-left: 0; }

.app-list { display: grid; gap: 8px; }
.app-row {
  display: flex; align-items: center; gap: 10px; color: var(--cream);
  padding: 12px 16px; border-radius: 16px; background: rgba(255, 243, 228, 0.05);
  border: 1px solid var(--cream-25);
}
a.app-row { transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
a.app-row:hover { background: rgba(255, 243, 228, 0.09); border-color: var(--cream-72); }
.app-row-main { flex: 1; min-width: 0; }
.app-row-title { font-weight: 700; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.app-row-title a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--cream-25); text-underline-offset: 3px; }
.app-row-sub { color: var(--cream-72); font-size: 13px; margin-top: 2px; line-height: 1.45; overflow-wrap: anywhere; }

.app-alert {
  border: 1px solid var(--rose); background: rgba(217, 138, 145, 0.1);
  border-radius: 18px; padding: 18px 20px; margin-bottom: 30px; display: grid; gap: 8px;
}
.app-alert h2 { font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: 0.2em;
                text-transform: uppercase; color: var(--rose); }
.app-alert-text { color: var(--cream-72); font-size: 14px; margin-bottom: 4px; }

.app-plus {
  border: 1px solid var(--peach); border-radius: var(--radius); padding: 34px 32px;
  background: linear-gradient(140deg, rgba(244, 195, 154, 0.12), rgba(122, 90, 165, 0.14)); margin-top: 8px;
}
.app-plus-mark { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--peach); }
.app-plus h2 { font-size: clamp(30px, 4vw, 44px); color: var(--cream); margin: 8px 0 10px; }
.app-plus p { color: var(--cream-72); font-size: 16px; line-height: 1.55; }
.app-plus-how { margin-top: 14px; font-size: 14px !important; }

/* An editable row is a button in everything but tag. */
.itin-row.is-editable { cursor: pointer; }
.itin-row.is-editable:hover { border-color: var(--peach); }
.day-heading .day-add { margin-left: auto; }

.side-link { display: block; color: inherit; transition: border-color 0.3s var(--ease); }
.side-link:hover { border-color: var(--peach); }
.side-figure { font-weight: 800; font-size: 24px; color: var(--cream); letter-spacing: -0.01em; }

/* A switch is a checkbox that looks like what it does. */
.app-switch {
  appearance: none; flex: none; width: 42px; height: 24px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 243, 228, 0.18); position: relative; transition: background 0.25s var(--ease);
}
.app-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cream); transition: transform 0.25s var(--ease);
}
.app-switch:checked { background: var(--peach); }
.app-switch:checked::after { transform: translateX(18px); background: var(--night); }

/* ---------- Toasts and menus ---------- */
.app-toasts { position: fixed; z-index: 90; left: 50%; bottom: 28px; transform: translateX(-50%);
              display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(92vw, 520px); }
.app-toast {
  background: var(--cream); color: var(--text); font-weight: 700; font-size: 14px; line-height: 1.4;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  animation: toast-in 0.3s var(--ease) both; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.app-toast.is-bad { background: #f3c4c8; border-radius: 16px; text-align: center; }
.app-toast.is-leaving { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.app-menu {
  position: absolute; z-index: 60; min-width: 210px; padding: 6px; border-radius: 14px;
  background: var(--ink); border: 1px solid var(--cream-25); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  display: grid; gap: 2px;
}
.app-menu button {
  font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer;
  color: var(--cream); background: transparent; border: 0; border-radius: 9px; padding: 9px 12px;
}
.app-menu button:hover, .app-menu button:focus-visible { background: rgba(255, 243, 228, 0.1); outline: none; }
.app-menu button.is-danger { color: var(--rose); }

/* ---------- Dialogs and forms ---------- */
.app-dlg {
  width: min(94vw, 520px); max-height: min(88svh, 860px); padding: 0; border-radius: 22px;
  background: var(--ink); color: var(--cream); border: 1px solid var(--cream-25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); overflow: hidden;
}
.app-dlg[open] { display: flex; flex-direction: column; animation: arrive 0.3s var(--ease) both; }
.app-dlg.is-wide { width: min(94vw, 700px); }
.app-dlg::backdrop { background: rgba(8, 9, 24, 0.72); backdrop-filter: blur(4px); }
.dlg-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px 8px; }
.dlg-head h2 { font-size: 26px; color: var(--cream); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dlg-x { font: inherit; font-size: 24px; line-height: 1; width: 36px; height: 36px; cursor: pointer; color: var(--cream-72);
         background: transparent; border: 1px solid var(--cream-25); border-radius: 999px; }
.dlg-x:hover { color: var(--cream); border-color: var(--cream-72); }
.dlg-body { padding: 8px 24px 24px; overflow-y: auto; display: grid; gap: 14px; }
.dlg-text { color: var(--cream-72); font-size: 15px; line-height: 1.55; }
.dlg-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.dlg-gap { flex: 1; }

.fm { display: grid; gap: 14px; }
.fm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.fm-field, .fm-check { grid-column: 1 / -1; display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.fm-field.is-half, .fm-check.is-half { grid-column: auto; }
@media (max-width: 560px) { .fm-field.is-half, .fm-check.is-half { grid-column: 1 / -1; } }
.fm-label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--cream-72); }
.fm-hint { font-size: 12px; color: var(--cream-72); line-height: 1.4; }
.fm input:not([type=checkbox]), .fm select, .fm textarea, .fm-field select,
.pack-add input, .photo-search input, .plan-ask textarea, .cost-cur select {
  font: inherit; font-size: 15px; color: var(--cream); width: 100%; min-width: 0;
  background: rgba(255, 243, 228, 0.07); border: 1px solid var(--cream-25); border-radius: 12px;
  padding: 10px 12px; color-scheme: dark;
}
.fm textarea, .plan-ask textarea { resize: vertical; line-height: 1.5; }
.fm input:focus, .fm select:focus, .fm textarea:focus, .pack-add input:focus,
.photo-search input:focus, .plan-ask textarea:focus { outline: none; border-color: var(--peach); }
.fm select option, .fm-field select option, .cost-cur select option { background: var(--ink); color: var(--cream); }
.fm-money { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.fm-check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.fm-check input, .pack-tick { width: 18px; height: 18px; accent-color: var(--peach); flex: none; }
.fm-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fm-people { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-people legend { margin-bottom: 8px; padding: 0; }
.fm-chip { cursor: pointer; }
.fm-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fm-chip span {
  display: inline-block; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--cream-25); color: var(--cream-72);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.fm-chip input:checked + span { background: var(--peach); border-color: var(--peach); color: var(--night); }
.fm-chip input:focus-visible + span { outline: 2px solid var(--peach); outline-offset: 2px; }
.fm-error { color: #f3a9b0; font-size: 14px; font-weight: 600; }

/* ---------- Planner ---------- */
.plan-thread { display: grid; gap: 10px; margin-bottom: 26px; max-height: 60svh; overflow-y: auto; padding-right: 4px; }
.plan-msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.plan-msg.is-user { justify-self: end; background: var(--peach); color: var(--night); border-bottom-right-radius: 6px; }
.plan-msg.is-assistant { justify-self: start; background: rgba(255, 243, 228, 0.08); border: 1px solid var(--cream-25); border-bottom-left-radius: 6px; }
.plan-msg.is-thinking { animation: breathe 1.6s ease-in-out infinite; color: var(--cream-72); }
.plan-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; margin-bottom: 8px;
  background: rgba(255, 243, 228, 0.05); border: 1px dashed var(--cream-25);
}
.plan-card-main { flex: 1; min-width: 0; }
.plan-card-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.plan-why { color: var(--cream-72); font-size: 13px; font-style: italic; margin-top: 6px; line-height: 1.5; }
.plan-ask { display: grid; gap: 10px; position: sticky; bottom: 0; padding: 14px 0 6px;
            background: linear-gradient(to bottom, rgba(15, 18, 48, 0), var(--night) 22%); }

/* ---------- Packing ---------- */
.pack-row.is-done .app-row-title { text-decoration: line-through; color: var(--cream-72); }
.pack-add { display: flex; gap: 8px; }
.pack-add input { flex: 1; }

/* ---------- Costs ---------- */
.cost-total { font-weight: 800; font-size: clamp(30px, 4.6vw, 46px); color: var(--cream); margin-top: 8px; letter-spacing: -0.02em; }
.cost-amount { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-cur { display: inline-flex; align-items: center; gap: 8px; color: var(--cream-72); font-size: 14px; font-weight: 700; }
.cost-cur select { width: auto; padding: 6px 10px; font-size: 14px; }

/* ---------- Photos ---------- */
.photo-grid.is-large { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.photo-search { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.photo-search input { flex: 1 1 260px; }
.lightbox-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; padding-top: 12px; }
.lightbox-foot .lightbox-count { padding-top: 0; }
.lightbox-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lightbox-act {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--cream);
  background: rgba(255, 243, 228, 0.08); border: 1px solid var(--cream-25); border-radius: 999px; padding: 7px 14px;
}
.lightbox-act:hover { background: rgba(255, 243, 228, 0.2); }
.lightbox-act.is-danger { color: #f3a9b0; }

/* ---------- Memories ---------- */
.memory {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; color: var(--cream);
  padding: 10px; border-radius: 18px; border: 1px solid var(--cream-25); background: rgba(255, 243, 228, 0.05); margin-bottom: 8px;
  transition: border-color 0.3s var(--ease);
}
.memory:hover { border-color: var(--peach); }
.memory-cover { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #2c2a63, #7a5aa5); }
.memory-cover img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s var(--ease); }
.year-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- You ---------- */
.you-card { margin-bottom: 34px; }
.you-card .block-head h2 { font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: 0.2em;
                           text-transform: uppercase; color: var(--peach); }
.you-card > .app-note { margin-bottom: 10px; }
.you-facts { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 8px 18px; font-size: 15px; }
.you-facts dt { color: var(--cream-72); font-weight: 700; font-size: 13px; padding-top: 2px; }
.you-facts dd { margin: 0; color: var(--cream); line-height: 1.5; white-space: pre-wrap; }
@media (max-width: 560px) { .you-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; } .you-facts dd { margin-bottom: 10px; } }
.you-code { font-family: var(--mono); font-weight: 600; letter-spacing: 0.04em; }
.you-mono { font-family: var(--mono); font-size: 12px; }
.you-avatar {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; vertical-align: middle;
  margin-right: 4px; background: var(--violet) center / cover; color: var(--cream); font-size: 13px; font-weight: 800;
}

/* ---------- Stillness ----------
   Asked for less movement: keep every hover and state change, drop the travel. */
@media (prefers-reduced-motion: reduce) {
  .will-rise { opacity: 1; transform: none; }
  .app-screen.arrive { animation: none; }
  .app-loading, .shot, .lightbox, .lightbox-spin,
  .chart.grown .chart-bar, .mapwrap .arc.drawn, .mapwrap .pin.drawn,
  .day-panel.turned, #lightbox-img.from-left, #lightbox-img.from-right,
  .app-dlg[open], .app-toast, .plan-msg.is-thinking, .app-navmenu.is-open {
    animation: none;
  }
  .chart.grown .chart-bar { transform: none; }
  .mapwrap .arc.drawn { stroke-dashoffset: 0; }
  .tripcard:hover, .tile:hover, .day-pill:hover { transform: none; }
  .tripcard:hover .tripcard-cover img.shown, .shot:hover img.shown { transform: none; }
  html { scroll-behavior: auto; }
}

/* A long form keeps its buttons in reach: they ride the bottom edge of the dialog. */
.fm > .dlg-actions {
  position: sticky; bottom: -24px; margin: 0 -24px -24px; padding: 14px 24px 20px;
  background: linear-gradient(to bottom, rgba(26, 23, 64, 0), var(--ink) 30%);
}

/* ---------- The upload tray and the drop target ---------- */
.app-tray {
  position: fixed; z-index: 80; right: 18px; bottom: 18px; width: min(360px, calc(100vw - 36px));
  background: var(--ink); border: 1px solid var(--cream-25); border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55); padding: 12px 14px; display: grid; gap: 10px;
}
.tray-head { display: flex; align-items: center; gap: 8px; }
.tray-title {
  flex: 1; min-width: 0; text-align: left; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
  color: var(--cream); background: transparent; border: 0; padding: 2px 0;
}
.tray-caret { color: var(--cream-72); margin-left: 8px; font-size: 12px; }
.tray-bar { height: 5px; border-radius: 999px; background: rgba(255, 243, 228, 0.12); overflow: hidden; }
.tray-bar span { display: block; height: 100%; background: var(--peach); border-radius: 999px; transition: width 0.4s var(--ease); }
.tray-bar span.is-bad { background: var(--rose); }
.tray-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; display: grid; gap: 2px; }
.tray-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 6px 0;
             border-top: 1px solid rgba(255, 243, 228, 0.1); font-size: 13px; }
.tray-name { color: var(--cream); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-state { color: var(--cream-72); text-align: right; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-trip { grid-column: 1 / -1; color: rgba(255, 243, 228, 0.45); font-size: 12px; }
.tray-item.is-failed .tray-state { color: #f3a9b0; }
.tray-item.is-done .tray-state { color: var(--peach); }
.app-drop {
  position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; pointer-events: none;
  background: rgba(15, 18, 48, 0.82); backdrop-filter: blur(3px);
  border: 3px dashed var(--peach); border-radius: 0;
}
.app-drop p { font-family: var(--display); font-size: clamp(26px, 4vw, 44px); color: var(--cream); text-align: center; padding: 0 24px; }
.app-drop strong { color: var(--peach); font-weight: 500; }

/* ---------- Plus (#/plus) ---------- */
.plus-title { font-size: 28px; margin: 4px 0 14px; letter-spacing: -0.01em; }
.plus-perks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.plus-perks li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--app-card, rgba(127,127,127,.08)); }
.plus-perks strong { font-weight: 650; }
.plus-perks span { color: var(--app-muted, #6b7280); font-size: 14px; }
.plus-card { padding: 16px; border-radius: 14px; border: 1px solid rgba(127,127,127,.25); display: grid; gap: 10px; }
.plus-card.is-on { border-color: var(--app-accent, #0d7890); }
.plus-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plus-buy .app-btn { display: grid; gap: 2px; padding: 12px; }
.plus-buy .app-btn span { font-size: 13px; font-weight: 500; opacity: .85; }
.apptabs a.app-nav-plus:not([aria-current]) { color: var(--peach); box-shadow: inset 0 0 0 1.5px var(--peach); }
@media (max-width: 480px) { .plus-buy { grid-template-columns: 1fr; } }

/* Public passport dialog (passport.js). */
.pp-handle { display: flex; align-items: center; border: 1px solid var(--cream-25); border-radius: 12px; overflow: hidden; }
.pp-handle span { padding: 0 4px 0 12px; color: var(--cream-72); font-size: 14px; white-space: nowrap; }
.pp-handle input { flex: 1; min-width: 0; border: 0 !important; background: transparent; padding-left: 0 !important; }
.pp-check { display: block; min-height: 1.3em; margin-top: 6px; color: var(--cream-72); font-size: 13px; }
.pp-check.is-bad { color: #ff9a9a; }
.pp-you { display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: 24px; align-items: center; }
.pp-dlg { display: grid; grid-template-columns: minmax(0, 250px) 1fr; gap: 26px; align-items: start; }
.pp-preview { width: 100%; }
@media (max-width: 700px) { .pp-you, .pp-dlg { grid-template-columns: 1fr; } .pp-preview { max-width: 280px; margin: 0 auto; } }
