/* ── Trips panel ────────────────────────────────────────────────
   SodTrips' stylesheet, carried over and scoped under #p-trips so it
   cannot leak into Photos, Social, Calendar, or Grammy.

   The original ships its own palette -- a light warm-grey page with a
   strong blue accent. That is re-pointed here at the family site's tokens
   instead of copied, so the tab inherits light/dark mode and reads as part
   of the site rather than an app bolted onto it. Only the DATA colours
   stay literal: stage colours, trip colours, and traveller swatches are
   content, not chrome, and they have to match what the API sends.

   Everything the family shell already provides -- the top bar, the tab
   strip, the page container -- is dropped from this copy. */

#p-trips {
  --surface: var(--card);
  --surface-2: var(--chip);
  --faint: var(--muted);
  --line-2: var(--line);
  --accent: var(--green);
  --accent-hover: var(--green-dark);
  --accent-warm: var(--warm);
  --good: #5b8c85;
  --shadow: 0 1px 2px rgba(38,48,58,.05), 0 6px 20px rgba(38,48,58,.06);
  --shadow-lg: 0 10px 40px rgba(38,48,58,.18);
  --r: 14px;
  font-size: 15px;
  line-height: 1.45;
}
@media (prefers-color-scheme: dark) {
  #p-trips { --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 10px 40px rgba(0,0,0,.55); }
}

/* sub-navigation inside the tab (Overview / Calendar / Trips / Ideas) */
#p-trips .subnav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; }
#p-trips .subnav button {
  border: 0; background: transparent; color: var(--muted); padding: 8px 14px;
  border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px;
}
#p-trips .subnav button svg { width: 16px; height: 16px; }
#p-trips .subnav button:hover { background: var(--chip); color: var(--ink); }
#p-trips .subnav button.on { background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
#p-trips .subnav .sp { flex: 1; }

#p-trips .btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px;
  cursor: pointer; font-family: inherit;
}
#p-trips .btn:hover { border-color: var(--muted); box-shadow: var(--shadow); }
#p-trips .btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
#p-trips .btn.primary:hover { background: var(--accent-hover); }
#p-trips .btn.ghost { border-color: transparent; background: transparent; }
#p-trips .btn svg { width: 16px; height: 16px; }
#p-trips .btn.sm { padding: 5px 10px; font-size: 13px; min-height: 32px; }
#p-trips .icon-btn {
  border: 0; background: transparent; color: var(--muted); width: 32px; height: 32px;
  border-radius: 8px; display: grid; place-items: center; cursor: pointer;
}
#p-trips .icon-btn:hover { background: var(--surface-2); color: var(--ink); }
#p-trips .icon-btn svg { width: 17px; height: 17px; }

#p-trips .view { animation: tripsFade .22s ease; }
@keyframes tripsFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#p-trips .hd { display: flex; align-items: baseline; gap: 12px; margin: 2px 0 16px; flex-wrap: wrap; }
#p-trips .hd h3 { font-size: 20px; margin: 0; letter-spacing: -.4px; }
#p-trips .hd .sub { color: var(--muted); font-size: 13.5px; }
#p-trips .section-t {
  font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--faint);
  font-weight: 700; margin: 26px 0 12px;
}

/* ---------- overview hero ---------- */
#p-trips .hero {
  position: relative; overflow: hidden; border-radius: 18px; color: #fff; padding: 26px 28px;
  background: linear-gradient(135deg, #2c6284, #3d7ea6 55%, #4f93b8); box-shadow: var(--shadow);
  cursor: pointer;
}
#p-trips .hero .deco { position: absolute; inset: 0; opacity: .16; pointer-events: none; }
#p-trips .hero .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; font-weight: 700; }
#p-trips .hero h4 { font-size: 26px; margin: 6px 0 2px; letter-spacing: -.6px; }
#p-trips .hero .where { opacity: .9; font-size: 15px; }
#p-trips .hero .count { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
#p-trips .hero .count .n { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -2px; }
#p-trips .hero .count .u { font-size: 15px; opacity: .9; }
#p-trips .hero .meta { display: flex; gap: 22px; margin-top: 16px; flex-wrap: wrap; font-size: 13.5px; }
#p-trips .hero .readiness { margin-top: 16px; max-width: 340px; }
#p-trips .hero .bar-track { height: 7px; background: rgba(255,255,255,.28); border-radius: 5px; overflow: hidden; }
#p-trips .hero .bar-fill { height: 100%; background: #fff; border-radius: 5px; }
#p-trips .hero .hero-cta { margin-top: 18px; background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
#p-trips .hero .hero-cta:hover { background: rgba(255,255,255,.28); }
#p-trips .hero.empty { background: linear-gradient(135deg, #3f7a5e, #5b8c85); }

#p-trips .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
#p-trips .tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 16px; box-shadow: var(--shadow);
  /* the family shell's photo tile is also .tile -- undo its square crop */
  position: static; aspect-ratio: auto; overflow: visible;
}
#p-trips .tile .k { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
#p-trips .tile .k svg { width: 14px; height: 14px; color: var(--faint); }
#p-trips .tile .v { font-size: 26px; font-weight: 800; letter-spacing: -1px; margin-top: 4px; }
#p-trips .tile .v small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

#p-trips .funnel { display: flex; gap: 8px; flex-wrap: wrap; }
#p-trips .funnel .step {
  flex: 1; min-width: 110px; border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 13px; background: var(--surface);
}
#p-trips .funnel .step .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 7px; }
#p-trips .funnel .step .lbl { font-size: 13px; font-weight: 700; }
#p-trips .funnel .step .cnt { font-size: 22px; font-weight: 800; margin-top: 5px; }
#p-trips .funnel .step .bl { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

#p-trips .tripline {
  display: flex; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); cursor: pointer;
  transition: .12s; margin-bottom: 10px;
}
#p-trips .tripline:hover { border-color: var(--muted); transform: translateX(2px); }
#p-trips .tripline .stripe { width: 5px; align-self: stretch; border-radius: 4px; min-height: 38px; }
#p-trips .tripline .when { text-align: center; min-width: 56px; }
#p-trips .tripline .when .d { font-size: 22px; font-weight: 800; line-height: 1; }
#p-trips .tripline .when .m { font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: .05em; }
#p-trips .tripline .body { flex: 1; min-width: 0; }
#p-trips .tripline .body .t { font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#p-trips .tripline .body .s { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
#p-trips .tripline .tail { text-align: right; }
#p-trips .chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
  /* the shell's .chip is uppercase with a fixed background; this one is tinted per stage */
  text-transform: none; letter-spacing: 0; margin-left: 0; background: none; color: inherit;
}
#p-trips .count-pill { font-size: 12.5px; color: var(--muted); font-weight: 600; }
#p-trips .avatars { display: flex; justify-content: flex-end; }
#p-trips .avatars .av {
  width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--surface); margin-left: -6px;
}
#p-trips .avatars .av:first-child { margin-left: 0; }
#p-trips .mini-bar { height: 5px; width: 90px; background: var(--line-2); border-radius: 4px; overflow: hidden; margin-top: 6px; margin-left: auto; }
#p-trips .mini-bar > i { display: block; height: 100%; border-radius: 4px; background: var(--good); }

/* ---------- calendar / timeline ---------- */
#p-trips .cal-wrap { overflow-x: auto; padding-bottom: 6px; }
#p-trips .timeline { min-width: 820px; position: relative; }
#p-trips .tl-months { display: flex; border-bottom: 1px solid var(--line); }
#p-trips .tl-months .mo {
  flex: 1; font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center;
  padding: 6px 2px; border-left: 1px solid var(--line-2);
}
#p-trips .tl-months .mo:first-child { border-left: 0; }
#p-trips .tl-months .mo.newyear { color: var(--accent); }
#p-trips .tl-body { position: relative; }
#p-trips .tl-grid { position: absolute; inset: 0; display: flex; pointer-events: none; z-index: 0; }
#p-trips .tl-grid .col { flex: 1; border-left: 1px solid var(--line-2); background: none; padding: 0; min-height: 0; }
#p-trips .tl-grid .col:first-child { border-left: 0; }
#p-trips .tl-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent-warm); z-index: 3; pointer-events: none; }
#p-trips .tl-today::after {
  content: "today"; position: absolute; top: -1px; left: 4px; font-size: 9.5px; font-weight: 800;
  color: var(--accent-warm); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
#p-trips .tl-row { position: relative; height: 44px; z-index: 1; }
#p-trips .tl-bar {
  position: absolute; top: 7px; height: 30px; border-radius: 8px; display: flex; align-items: center;
  padding: 0 10px; color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.14);
  cursor: pointer; overflow: hidden; white-space: nowrap; transition: .12s; min-width: 8px;
}
#p-trips .tl-bar:hover { filter: brightness(1.06); z-index: 5; }
#p-trips .tl-bar.soft { opacity: .62; border: 1.5px dashed rgba(255,255,255,.7); }
#p-trips .tl-bar .tl-days { font-weight: 600; opacity: .85; margin-left: 7px; font-size: 11px; }
#p-trips .cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 14px 2px 0; font-size: 12.5px; color: var(--muted); }
#p-trips .cal-legend .lg { display: flex; align-items: center; gap: 6px; }
#p-trips .cal-legend .sw { width: 12px; height: 12px; border-radius: 4px; }
#p-trips .someday-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
#p-trips .someday-strip .sc {
  border: 1.5px dashed var(--line); border-radius: 11px; padding: 9px 13px;
  background: var(--surface-2); cursor: pointer;
}
#p-trips .someday-strip .sc:hover { border-color: var(--accent); }
#p-trips .someday-strip .sc .sm { font-size: 11.5px; color: var(--muted); }

/* ---------- trips board ---------- */
#p-trips .board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
#p-trips .board .col {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px; min-height: 120px;
}
#p-trips .board .col.dragover { border-color: var(--accent); border-style: dashed; }
#p-trips .col-h { display: flex; align-items: center; gap: 7px; padding: 2px 4px 10px; }
#p-trips .col-h .dot { width: 9px; height: 9px; border-radius: 50%; }
#p-trips .col-h .nm { font-weight: 700; font-size: 13.5px; }
#p-trips .col-h .ct {
  margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 700; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; padding: 1px 8px;
}
#p-trips .tcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px;
  box-shadow: var(--shadow); margin-bottom: 9px; cursor: grab; border-left: 4px solid var(--accent); transition: .12s;
}
#p-trips .tcard:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
#p-trips .tcard.dragging { opacity: .4; }
#p-trips .tcard .tt { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
#p-trips .tcard .dest { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
#p-trips .tcard .dest svg { width: 12px; height: 12px; }
#p-trips .tcard .row2 { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; gap: 8px; }
#p-trips .tcard .dates { font-size: 11.5px; color: var(--muted); font-weight: 600; }
#p-trips .stars { color: #e0a458; font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
#p-trips .col-add {
  width: 100%; border: 1px dashed var(--line); background: transparent; color: var(--muted);
  border-radius: 9px; padding: 7px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}
#p-trips .col-add:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- ideas ---------- */
#p-trips .ideas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
#p-trips .idea {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 9px; border-top: 4px solid var(--accent);
}
#p-trips .idea .it { font-weight: 700; font-size: 16px; }
#p-trips .idea .idest { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
#p-trips .idea .idest svg { width: 13px; height: 13px; }
#p-trips .idea .facts { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
#p-trips .idea .facts b { color: var(--ink); }
#p-trips .idea .heat { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
#p-trips .star-btn { border: 0; background: transparent; font-size: 19px; letter-spacing: 2px; color: #e0a458; padding: 0; line-height: 1; cursor: pointer; }
#p-trips .star-btn .off, #p-trips .star-input .off { color: var(--line); }
#p-trips .idea .acts { display: flex; gap: 7px; margin-top: auto; padding-top: 6px; }

/* ---------- detail overlay + modals ---------- */
/* Both are position:fixed, so they cover the whole page even though they
   are appended inside the panel -- which is what keeps this stylesheet
   scoped without a portal. */
#p-trips .overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(30,38,46,.5);
  display: flex; justify-content: center; align-items: flex-start; padding: 34px 18px; overflow-y: auto;
}
#p-trips .sheet {
  width: 100%; max-width: 840px; background: var(--bg); border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; animation: tripsPop .2s ease;
}
@keyframes tripsPop { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
#p-trips .sheet-top { padding: 22px 24px; color: #fff; position: relative; }
#p-trips .sheet-top .close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.2); color: #fff; }
#p-trips .sheet-top .close:hover { background: rgba(255,255,255,.32); }
#p-trips .sheet-top .eyebrow { font-size: 12px; opacity: .85; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
#p-trips .sheet-top h4 { font-size: 23px; margin: 4px 0 3px; letter-spacing: -.5px; }
#p-trips .sheet-top .sub { opacity: .95; font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
#p-trips .pipeline { display: flex; margin-top: 16px; border-radius: 10px; overflow: hidden; }
#p-trips .pipeline button {
  flex: 1; border: 0; padding: 9px 4px; font-size: 11.5px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.16); transition: .12s; white-space: nowrap; cursor: pointer; font-family: inherit;
}
#p-trips .pipeline button:hover { background: rgba(255,255,255,.28); }
#p-trips .pipeline button.on { background: rgba(255,255,255,.95); color: #26303a; }
#p-trips .pipeline button:not(:last-child) { border-right: 1px solid rgba(255,255,255,.18); }
#p-trips .sheet-body { padding: 20px 24px 28px; }
#p-trips .sheet-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
#p-trips .panel-t {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint);
  font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

#p-trips .bk { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
#p-trips .bk:last-child { border-bottom: 0; }
#p-trips .bk .ki {
  width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); display: grid;
  place-items: center; color: var(--muted); flex: none; margin-top: 1px;
}
#p-trips .bk .ki svg { width: 15px; height: 15px; }
#p-trips .bk .binfo { flex: 1; min-width: 0; }
#p-trips .bk .bt { font-weight: 600; font-size: 14px; }
#p-trips .bk .bt.done { text-decoration: line-through; color: var(--muted); }
#p-trips .bk .bmeta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1px; }
#p-trips .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
#p-trips .seg button {
  border: 0; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 700;
  padding: 5px 8px; cursor: pointer; font-family: inherit;
}
#p-trips .seg button:not(:last-child) { border-right: 1px solid var(--line); }
#p-trips .seg button.on-todo { background: var(--chip); color: var(--ink); }
#p-trips .seg button.on-booked { background: var(--good); color: #fff; }
#p-trips .seg button.on-confirmed { background: var(--accent); color: #fff; }
#p-trips .budget-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 14px; }
#p-trips .budget-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
#p-trips .budget-row.tot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; }

#p-trips .est-out { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; margin-top: 4px; }
#p-trips .est-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; padding: 4px 0; gap: 12px; }
#p-trips .est-row .lbl { color: var(--muted); }
#p-trips .est-row .lbl small { display: block; font-size: 11.5px; color: var(--faint); font-weight: 600; }
#p-trips .est-row .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
#p-trips .est-tot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 9px; }
#p-trips .est-tot .amt { font-size: 22px; letter-spacing: -.5px; }
#p-trips .est-tot .lbl { font-weight: 700; color: var(--ink); }
#p-trips .est-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
#p-trips .est-note .an { display: block; padding-left: 15px; position: relative; }
#p-trips .est-note .an::before { content: "·"; position: absolute; left: 4px; color: var(--faint); font-weight: 800; }
#p-trips .est-links { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
#p-trips .est-links a {
  font-size: 12.5px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; color: var(--accent); background: var(--surface);
}
#p-trips .est-links a:hover { border-color: var(--accent); }
#p-trips .est-links a svg { width: 13px; height: 13px; }

#p-trips .readi { margin-top: 14px; }
#p-trips .readi .lab { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
#p-trips .readi .track { height: 8px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
#p-trips .readi .fill { height: 100%; background: linear-gradient(90deg, var(--good), var(--accent)); border-radius: 5px; transition: width .3s; }

#p-trips .day-group { margin-bottom: 16px; }
#p-trips .day-h { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
#p-trips .day-h .dh-date { color: var(--muted); font-weight: 600; font-size: 12px; }
#p-trips .itin { display: flex; gap: 9px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); align-items: flex-start; }
#p-trips .itin:last-child { border-bottom: 0; }
#p-trips .itin .tm { font-size: 12px; color: var(--muted); font-weight: 700; min-width: 52px; padding-top: 2px; }
#p-trips .itin .ik { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); flex: none; }
#p-trips .itin .ik svg { width: 13px; height: 13px; }
#p-trips .itin .itxt { flex: 1; min-width: 0; }
#p-trips .itin .itt { font-weight: 600; font-size: 13.5px; }
#p-trips .itin .inn { font-size: 12px; color: var(--muted); }
#p-trips .del { border: 0; background: transparent; cursor: pointer; padding: 4px; color: var(--faint); }
#p-trips .del svg { width: 14px; height: 14px; }
#p-trips .del:hover { color: var(--accent-warm); }

#p-trips .empty-note { text-align: center; padding: 34px 20px; color: var(--muted); }
#p-trips .empty-note svg { width: 38px; height: 38px; color: var(--faint); margin-bottom: 8px; }
#p-trips .empty-note .big { font-weight: 700; color: var(--ink); font-size: 16px; margin-bottom: 3px; }

#p-trips .modal {
  position: fixed; inset: 0; z-index: 80; background: rgba(30,38,46,.5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
#p-trips .modal .box {
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%;
  max-width: 520px; max-height: 90vh; overflow-y: auto; animation: tripsPop .18s ease;
}
#p-trips .modal .mh { padding: 18px 22px 6px; font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#p-trips .modal .mb { padding: 6px 22px 18px; }
#p-trips .modal .mf {
  padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end;
  position: sticky; bottom: 0; background: var(--surface);
}
#p-trips .field { margin-bottom: 13px; }
#p-trips .field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
#p-trips .field input, #p-trips .field select, #p-trips .field textarea {
  width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg); color: var(--ink); outline: none; font-size: 16px; font-family: inherit;
}
#p-trips .field input:focus, #p-trips .field select:focus, #p-trips .field textarea:focus { border-color: var(--accent); }
#p-trips .field textarea { resize: vertical; min-height: 60px; }
#p-trips .field.row { display: flex; gap: 12px; }
#p-trips .field.row > div { flex: 1; }
#p-trips .swatches { display: flex; gap: 7px; flex-wrap: wrap; }
#p-trips .swatches .sw { width: 26px; height: 26px; border-radius: 7px; cursor: pointer; border: 2px solid transparent; }
#p-trips .swatches .sw.on { border-color: var(--ink); }
#p-trips .party-pick { display: flex; gap: 7px; flex-wrap: wrap; }
#p-trips .party-pick .pp {
  border: 1px solid var(--line); border-radius: 20px; padding: 5px 11px 5px 6px; font-size: 13px;
  font-weight: 600; display: flex; align-items: center; gap: 6px; cursor: pointer; background: var(--surface-2);
}
#p-trips .party-pick .pp.on { background: var(--accent); color: #fff; border-color: var(--accent); }
#p-trips .party-pick .pp .d { width: 16px; height: 16px; border-radius: 50%; color: #fff; font-size: 9px; display: grid; place-items: center; font-weight: 700; }
#p-trips .star-input { font-size: 24px; color: #e0a458; letter-spacing: 3px; cursor: pointer; }
#p-trips .memrow { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
#p-trips .memrow .av { width: 26px; height: 26px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 11px; flex: none; }
#p-trips .memrow input[type="text"] { flex: 1; min-width: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font-size: 15px; }
#p-trips .memrow input[type="color"] { width: 38px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: none; flex: none; }

@media (max-width: 820px) {
  #p-trips .tiles { grid-template-columns: repeat(2, 1fr); }
  #p-trips .board { grid-template-columns: 1fr; }
  #p-trips .sheet-cols { grid-template-columns: 1fr; }
  #p-trips .overlay { padding: 12px 8px; }
  #p-trips .sheet-body { padding: 16px 16px 24px; }
  #p-trips .sheet-top { padding: 18px 16px; }
  #p-trips .hero { padding: 20px 18px; }
  #p-trips .hero .count .n { font-size: 42px; }
}
