/* Waypoint design system — shared tokens + components for the trip dashboard. */

:root{
  --paper:#EDF1EE;
  --surface:#FFFFFF;
  --ink:#16211F;
  --muted:#5B6B64;
  --line:#D3DBD5;
  --accent:#146B5C;
  --accent-2:#C1502D;
  --accent-tint: color-mix(in srgb, var(--accent) 10%, var(--surface));
  --accent2-tint: color-mix(in srgb, var(--accent-2) 12%, var(--surface));
  --map-bg: color-mix(in srgb, var(--accent) 5%, var(--surface));
  --land: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --shadow: 0 1px 2px rgba(20,30,25,0.06), 0 6px 20px -8px rgba(20,30,25,0.14);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --paper:#101513; --surface:#171E1B; --ink:#E8EDE9; --muted:#9AACA2; --line:#28322D;
    --accent:#3FAE97; --accent-2:#E07A50;
    --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 10px 26px -10px rgba(0,0,0,0.6);
  }
}
:root[data-theme="dark"]{
  --paper:#101513; --surface:#171E1B; --ink:#E8EDE9; --muted:#9AACA2; --line:#28322D;
  --accent:#3FAE97; --accent-2:#E07A50;
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 10px 26px -10px rgba(0,0,0,0.6);
}

*{ box-sizing:border-box; }
[hidden]{ display:none !important; }
@media (prefers-reduced-motion: reduce){ *{ transition:none !important; animation:none !important; } }

html, body{ height:100%; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Work Sans', system-ui, sans-serif;
  padding:0 16px;
}
a{ color:inherit; }
button, input, select, textarea{ font-family:inherit; }

.wp-app{ max-width:980px; margin:0 auto; padding-block:4px 56px; }
.wp-center-screen{ min-height:100vh; display:flex; align-items:center; justify-content:center; text-align:center; }

/* ---------- top bar ---------- */
.wp-topbar{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding-block:14px; border-bottom:1px solid var(--line); margin-bottom:22px; }
.wp-brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.wp-brand-mark{ width:32px; height:32px; color:var(--accent); flex-shrink:0; }
.wp-brand-text{ display:flex; flex-direction:column; line-height:1; }
.wp-brand-name{ font-family:'Big Shoulders Display', sans-serif; font-weight:800; font-size:24px; }
.wp-brand-eyebrow{ font-size:10.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin-top:2px; }
.wp-topbar-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

.wp-btn{ font-weight:600; font-size:14px; cursor:pointer; border:1px solid transparent; border-radius:8px; padding:9px 14px; display:inline-flex; align-items:center; gap:7px; transition:transform .12s ease, background .12s ease, border-color .12s ease; text-decoration:none; }
.wp-btn:active{ transform:translateY(1px); }
.wp-btn:disabled{ opacity:.5; cursor:default; transform:none; }
.wp-btn-primary{ background:var(--accent); color:#FFFFFF; }
.wp-btn-primary:hover{ background:color-mix(in srgb, var(--accent) 88%, black); }
.wp-btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.wp-btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }
.wp-btn-danger{ background:transparent; color:var(--accent-2); border-color:var(--accent-2); }
.wp-btn-danger:hover{ background:var(--accent2-tint); }
.wp-icon-btn{ width:36px; height:36px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:transparent; border:1px solid var(--line); color:var(--muted); cursor:pointer; flex-shrink:0; }
.wp-icon-btn:hover{ color:var(--accent-2); border-color:var(--accent-2); }
.wp-avatar{ width:36px; height:36px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:12.5px; color:#fff; border:2px solid var(--surface); flex-shrink:0; text-decoration:none; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.wp-icon{ width:16px; height:16px; }

/* ---------- trip switcher ---------- */
.wp-tripswitch{ position:relative; }
.wp-ts-btn{ display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:7px 12px; cursor:pointer; max-width:260px; }
.wp-ts-btn:hover{ border-color:var(--accent); }
.wp-ts-text{ display:flex; flex-direction:column; align-items:flex-start; line-height:1.25; min-width:0; }
.wp-ts-name{ font-weight:700; font-size:13.5px; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:160px; }
.wp-ts-sub{ font-size:10.5px; color:var(--muted); font-family:'IBM Plex Mono', monospace; }
.wp-ts-btn svg{ width:13px; height:13px; color:var(--muted); flex-shrink:0; }
.wp-ts-panel{ position:absolute; top:calc(100% + 8px); right:0; width:290px; background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); padding:8px; z-index:30; }
.wp-ts-panel[hidden]{ display:none; }
.wp-ts-row{ display:flex; width:100%; justify-content:space-between; align-items:center; gap:10px; padding:9px 10px; border-radius:8px; background:transparent; border:none; cursor:pointer; text-align:left; }
.wp-ts-row:hover{ background:var(--paper); }
.wp-ts-row.is-active{ background:var(--accent-tint); }
.wp-ts-row-name{ font-weight:600; font-size:13.5px; }
.wp-ts-row-dates{ font-size:11px; color:var(--muted); font-family:'IBM Plex Mono', monospace; margin-top:1px; }
.wp-ts-divider{ height:1px; background:var(--line); margin:6px 2px; }
.wp-ts-add{ display:flex; align-items:center; gap:8px; width:100%; padding:9px 10px; border-radius:8px; border:none; background:transparent; color:var(--accent); font-weight:600; font-size:13px; cursor:pointer; }
.wp-ts-add:hover{ background:var(--accent-tint); }
.wp-ts-add svg{ width:14px; height:14px; }

.wp-role-pill{ font-family:'IBM Plex Mono', monospace; font-size:10px; font-weight:500; letter-spacing:.06em; text-transform:uppercase; padding:3px 7px; border-radius:99px; white-space:nowrap; flex-shrink:0; }
.wp-role-owner{ background:var(--accent); color:#fff; }
.wp-role-organizer{ background:var(--accent); color:#fff; }
.wp-role-companion{ background:var(--accent-tint); color:var(--accent); border:1px solid var(--accent); }
.wp-role-traveler{ background:transparent; color:var(--muted); border:1px solid var(--line); }

/* ---------- hero ---------- */
.wp-hero{ display:flex; justify-content:space-between; align-items:flex-start; gap:18px; flex-wrap:wrap; }
.wp-hero-eyebrow{ font-size:11.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); }
.wp-hero-title{ font-family:'Big Shoulders Display', sans-serif; font-weight:800; font-size:clamp(26px,5vw,38px); text-wrap:balance; line-height:1.0; margin-top:3px; }
.wp-hero-sub{ font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--muted); margin-top:7px; }
.wp-companion-stack{ display:flex; align-items:center; }
.wp-companion-stack .wp-avatar{ margin-left:-10px; }
.wp-companion-stack .wp-avatar:first-child{ margin-left:0; }

/* ---------- tabs ---------- */
.wp-tabbar{ display:flex; gap:4px; border-bottom:1px solid var(--line); overflow-x:auto; margin-top:20px; }
.wp-tab{ display:flex; align-items:center; gap:7px; padding:11px 14px; border:none; background:transparent; color:var(--muted); font-weight:600; font-size:13.5px; cursor:pointer; border-bottom:2px solid transparent; flex-shrink:0; white-space:nowrap; }
.wp-tab svg{ width:15px; height:15px; }
.wp-tab:hover{ color:var(--ink); }
.wp-tab.is-active{ color:var(--accent); border-bottom-color:var(--accent); }

.wp-panel[hidden]{ display:none; }
.wp-panel{ padding-top:22px; }
.wp-panel-inner{ display:flex; flex-direction:column; gap:16px; }

/* ---------- shared cards / chips ---------- */
.wp-card{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:18px 20px 20px; box-shadow:var(--shadow); }
.wp-card-head{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
.wp-card-head h2{ font-family:'Big Shoulders Display', sans-serif; font-weight:700; font-size:19px; margin:0; }
.wp-count-chip{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--muted); background:var(--paper); border:1px solid var(--line); border-radius:99px; padding:3px 10px; flex-shrink:0; }
.wp-empty{ border:1.5px dashed var(--line); border-radius:10px; padding:22px; text-align:center; color:var(--muted); font-size:13.5px; }
.wp-empty button{ margin-top:10px; }

.wp-stat-strip{ display:flex; gap:10px; flex-wrap:wrap; }
.wp-stat-chip{ background:var(--surface); border:1px solid var(--line); border-radius:99px; padding:8px 14px; font-size:13px; font-weight:600; color:var(--ink); display:flex; align-items:center; gap:7px; }
.wp-stat-chip svg{ width:14px; height:14px; color:var(--accent); flex-shrink:0; }
.wp-stat-chip .dim{ color:var(--muted); font-weight:500; }

.wp-link-btn{ background:none; border:none; color:var(--accent); font-weight:600; font-size:13.5px; cursor:pointer; display:inline-flex; align-items:center; gap:6px; padding:4px; }
.wp-link-btn:hover{ text-decoration:underline; }
.wp-link-btn svg{ width:14px; height:14px; }

.wp-board-grid{ display:grid; grid-template-columns:1.15fr 1fr; gap:18px; align-items:start; }
@media (max-width:760px){ .wp-board-grid{ grid-template-columns:1fr; } }
.wp-compare-grid{ grid-template-columns:1fr 1fr; }
@media (max-width:760px){ .wp-compare-grid{ grid-template-columns:1fr; } }
.wp-scroll-list{ max-height:480px; overflow-y:auto; padding-right:4px; margin-top:10px; }

.wp-map-slot{ width:100%; border-radius:8px; overflow:hidden; background:var(--map-bg); }
.wp-map-caption{ font-size:12px; color:var(--muted); margin:10px 2px 0; }

/* ---------- itinerary ---------- */
.wp-day-strip-wrap{ display:flex; align-items:center; gap:8px; }
.wp-chev{ width:32px; height:32px; border-radius:50%; border:1px solid var(--line); background:var(--surface); color:var(--muted); flex-shrink:0; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.wp-chev:hover{ color:var(--accent); border-color:var(--accent); }
.wp-chev:disabled{ opacity:.35; cursor:default; }
.wp-chev svg{ width:15px; height:15px; }
.wp-day-strip{ display:flex; gap:8px; overflow-x:auto; padding:4px 2px; flex:1; scrollbar-width:thin; }
.wp-day-pill{ font-family:'IBM Plex Mono', monospace; flex-shrink:0; min-width:52px; border:1px solid var(--line); background:var(--surface); border-radius:10px; padding:7px 4px 8px; text-align:center; cursor:pointer; color:var(--ink); }
.wp-day-pill .wd{ font-size:10.5px; color:var(--muted); letter-spacing:.06em; text-transform:uppercase; }
.wp-day-pill .dd{ font-size:16px; font-weight:600; margin-top:1px; }
.wp-day-pill .dot{ width:4px; height:4px; border-radius:50%; background:var(--accent); margin:4px auto 0; visibility:hidden; }
.wp-day-pill.has-plans .dot{ visibility:visible; }
.wp-day-pill.is-active{ background:var(--accent); border-color:var(--accent); color:#fff; }
.wp-day-pill.is-active .wd{ color:rgba(255,255,255,.75); }
.wp-day-pill.is-active .dot{ background:#fff; }

.wp-itin-columns{ display:grid; grid-template-columns:1fr; gap:18px; }
.wp-itin-columns.has-editor{ grid-template-columns:1fr 1.3fr; }
@media (max-width:820px){ .wp-itin-columns.has-editor{ grid-template-columns:1fr; } }

.wp-custom-event-form{ display:flex; gap:8px; margin-bottom:12px; }
.wp-custom-event-form input{ flex:1; padding:9px 12px; border:1px solid var(--line); border-radius:8px; background:var(--paper); color:var(--ink); font-size:13.5px; }
.wp-custom-event-form input:focus{ outline:none; border-color:var(--accent); }

.wp-avail-list{ display:flex; flex-direction:column; gap:8px; max-height:520px; overflow-y:auto; padding-right:2px; }
.wp-avail-item{ display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; cursor:grab; background:var(--surface); }
.wp-avail-item.is-scheduled{ background:var(--accent-tint); border-color:var(--accent); }
.wp-avail-item.dragging{ opacity:.45; }
.wp-avail-item .wp-avail-name{ font-weight:600; font-size:13.5px; flex:1; min-width:0; }
.wp-avail-votes{ display:flex; gap:6px; font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--muted); }
.wp-avail-votes svg{ width:11px; height:11px; }
.wp-grip{ color:var(--line); flex-shrink:0; }
.wp-grip svg{ width:14px; height:14px; }

.wp-schedule{ position:relative; background:var(--paper); border:1px solid var(--line); border-radius:10px; height:600px; overflow-y:auto; }
.wp-schedule.drag-over-active{ outline:2px dashed var(--accent); outline-offset:-2px; }
.wp-hour-row{ height:48px; border-top:1px solid var(--line); position:relative; padding-left:56px; }
.wp-hour-row:first-child{ border-top:none; }
.wp-hour-row.drag-over{ background:var(--accent-tint); }
.wp-hour-label{ position:absolute; left:6px; top:3px; font-family:'IBM Plex Mono', monospace; font-size:10.5px; color:var(--muted); }
.wp-event-block{ position:absolute; left:58px; right:8px; border-radius:8px; padding:6px 8px; color:#fff; background:var(--accent); z-index:5; overflow:hidden; box-shadow:var(--shadow); }
.wp-event-block .name{ font-size:12px; font-weight:600; line-height:1.25; }
.wp-event-remove{ position:absolute; top:3px; right:5px; background:none; border:none; color:rgba(255,255,255,.7); cursor:pointer; padding:2px; }
.wp-event-remove:hover{ color:#fff; }
.wp-event-resize{ position:absolute; bottom:0; left:0; width:100%; height:7px; cursor:ns-resize; }

.wp-add-stop-row{ display:flex; align-items:center; justify-content:center; gap:8px; padding:12px 0 2px; }

.wp-sheet-rows{ display:flex; flex-direction:column; }
.wp-sheet-row{ display:grid; grid-template-columns:74px 14px 1fr auto; gap:12px; align-items:center; padding:11px 0; border-bottom:1px solid var(--line); }
.wp-sheet-row:last-child{ border-bottom:none; }
.wp-sheet-time{ font-family:'IBM Plex Mono', monospace; font-size:12.5px; color:var(--muted); font-variant-numeric:tabular-nums; line-height:1.25; white-space:nowrap; }
.wp-sheet-time b{ display:block; color:var(--ink); font-size:13.5px; font-weight:600; }
.wp-tick{ width:2px; height:100%; background:var(--line); border-radius:2px; position:relative; }
.wp-tick::before{ content:""; position:absolute; top:2px; left:50%; transform:translateX(-50%); width:8px; height:8px; border-radius:50%; background:var(--accent); }
.wp-sheet-name{ font-weight:600; font-size:14.5px; min-width:0; }
.wp-votes{ display:flex; gap:6px; flex-shrink:0; }
.wp-vote{ display:inline-flex; align-items:center; gap:4px; font-family:'IBM Plex Mono', monospace; font-size:12px; padding:3px 7px; border-radius:99px; font-variant-numeric:tabular-nums; }
.wp-vote svg{ width:12px; height:12px; }
.wp-vote.up{ background:var(--accent-tint); color:var(--accent); }
.wp-vote.down{ background:var(--accent2-tint); color:var(--accent-2); }

/* ---------- experiences ---------- */
.wp-exp-toolbar{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.wp-search-wrap{ position:relative; flex:1; max-width:360px; display:flex; gap:8px; }
.wp-search-wrap .wp-input-icon{ position:relative; flex:1; }
.wp-search-wrap svg.wp-search-icon{ position:absolute; left:11px; top:50%; transform:translateY(-50%); width:15px; height:15px; color:var(--muted); }
.wp-search-wrap input{ width:100%; padding:9px 12px 9px 33px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font-size:13.5px; }
.wp-search-wrap input:focus{ border-color:var(--accent); outline:none; }
.wp-exp-row{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:12px 8px; margin:0 -8px; border-bottom:1px solid var(--line); border-radius:10px; transition:background .15s ease; }
.wp-exp-row:last-child{ border-bottom:none; }
.wp-exp-row.is-locatable{ cursor:pointer; }
.wp-exp-row.is-locatable:hover{ background:var(--paper); }
.wp-exp-row.is-focused{ background:var(--accent-tint); }
.wp-exp-photo-wrap{ position:relative; flex-shrink:0; }
.wp-exp-photo{ width:64px; height:64px; border-radius:10px; object-fit:cover; display:block; background:var(--paper); }
.wp-exp-photo-empty{ display:flex; align-items:center; justify-content:center; color:var(--line); }
.wp-exp-photo-empty svg{ width:22px; height:22px; }
.wp-exp-index{ position:absolute; top:-6px; left:-6px; width:20px; height:20px; border-radius:50%; background:var(--accent); color:#fff; font-family:'IBM Plex Mono', monospace; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow); }
.wp-exp-main{ flex:1; min-width:0; }
.wp-exp-name{ font-weight:600; font-size:14.5px; }
.wp-exp-desc{ font-size:12.5px; color:var(--muted); margin-top:4px; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.wp-exp-actions{ display:flex; align-items:center; gap:6px; flex-shrink:0; margin-top:2px; }
.wp-vote-btn{ font-family:'IBM Plex Mono', monospace; font-size:12px; border:1px solid var(--line); background:var(--surface); border-radius:99px; padding:5px 9px; display:inline-flex; align-items:center; gap:4px; cursor:pointer; color:var(--muted); }
.wp-vote-btn svg{ width:12px; height:12px; }
.wp-vote-btn.up.is-active{ background:var(--accent-tint); color:var(--accent); border-color:var(--accent); }
.wp-vote-btn.down.is-active{ background:var(--accent2-tint); color:var(--accent-2); border-color:var(--accent-2); }

/* ---------- companions ---------- */
.wp-invite-row{ display:flex; gap:8px; flex-wrap:wrap; }
.wp-invite-row input{ flex:1; min-width:180px; padding:9px 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font-size:13.5px; }
.wp-invite-row input:focus{ border-color:var(--accent); outline:none; }
.wp-member-row{ display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.wp-member-row:last-child{ border-bottom:none; }
.wp-member-info{ flex:1; min-width:0; }
.wp-member-name{ font-weight:600; font-size:14px; }
.wp-member-role-label{ font-size:12px; color:var(--muted); text-transform:capitalize; }
.wp-role-select{ font-size:12.5px; border:1px solid var(--line); border-radius:6px; padding:5px 8px; background:var(--surface); color:var(--ink); }
.wp-role-select:disabled{ opacity:.55; }
.wp-danger-zone{ border:1px dashed var(--accent-2); border-radius:12px; padding:16px 18px; display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.wp-danger-zone p{ font-size:12.5px; color:var(--muted); margin:2px 0 0; }

/* ---------- accommodations ---------- */
.wp-acc-search-tabs{ display:flex; gap:4px; border-bottom:1px solid var(--line); margin-bottom:14px; }
.wp-acc-tab{ padding:8px 4px; border:none; background:none; font-weight:600; font-size:13.5px; color:var(--muted); cursor:pointer; border-bottom:2px solid transparent; margin-right:14px; }
.wp-acc-tab.is-active{ color:var(--accent); border-bottom-color:var(--accent); }
.wp-selected-stay{ background:var(--accent-tint); border:1px solid var(--accent); border-radius:10px; padding:12px 14px; display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:14px; }
.wp-selected-stay .name{ font-weight:700; color:var(--accent); font-size:14.5px; }
.wp-hotel-row{ display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.wp-hotel-row:last-child{ border-bottom:none; }
.wp-hotel-name{ font-weight:600; font-size:14px; }
.wp-stars{ display:inline-flex; gap:1px; color:#D9A441; vertical-align:middle; }
.wp-stars svg{ width:12px; height:12px; }
.wp-stars svg.empty{ color:var(--line); }
.wp-rating-count{ font-size:11.5px; color:var(--muted); margin-left:4px; }
.wp-manual-form{ display:flex; gap:8px; margin-top:16px; }
.wp-manual-form input{ flex:1; padding:9px 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font-size:13.5px; }
.wp-manual-form input:focus{ outline:none; border-color:var(--accent); }
.wp-hotel-list{ max-height:340px; overflow-y:auto; padding-right:2px; }

/* ---------- flights ---------- */
.wp-flight-form{ display:flex; flex-direction:column; gap:0; padding-bottom:14px; margin-bottom:14px; border-bottom:1px solid var(--line); }
.wp-flight-list{ display:flex; flex-direction:column; gap:10px; }
.wp-flight-card{ border:1px solid var(--line); border-radius:10px; padding:14px 16px; }
.wp-flight-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.wp-flight-route{ display:flex; align-items:center; gap:8px; font-family:'Big Shoulders Display', sans-serif; font-weight:700; font-size:19px; }
.wp-flight-route svg{ width:15px; height:15px; color:var(--accent); transform:rotate(90deg); }
.wp-flight-meta{ display:flex; gap:18px; margin-top:10px; font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--muted); flex-wrap:wrap; }
.wp-flight-meta b{ color:var(--ink); font-weight:600; display:block; font-size:12.5px; }

/* ---------- chat ---------- */
.wp-chat-thread{ display:flex; flex-direction:column; gap:12px; max-height:440px; overflow-y:auto; padding:4px 2px; }
.wp-chat-row{ display:flex; gap:10px; }
.wp-chat-row .wp-avatar{ width:30px; height:30px; font-size:11px; flex-shrink:0; }
.wp-chat-body{ min-width:0; }
.wp-chat-meta{ display:flex; gap:8px; align-items:baseline; }
.wp-chat-who{ font-weight:700; font-size:13px; }
.wp-chat-time{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--muted); }
.wp-chat-text{ font-size:13.5px; color:var(--ink); margin-top:2px; line-height:1.4; word-break:break-word; }
.wp-chat-input-row{ display:flex; gap:8px; align-items:center; border-top:1px solid var(--line); padding-top:14px; }
.wp-chat-input-row input{ flex:1; padding:11px 14px; border:1px solid var(--line); border-radius:99px; background:var(--paper); color:var(--ink); font-size:14px; }
.wp-chat-input-row input:focus{ outline:none; border-color:var(--accent); }
.wp-send-btn{ width:40px; height:40px; border-radius:50%; background:var(--accent); border:none; color:#fff; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; }
.wp-send-btn svg{ width:16px; height:16px; }

/* ---------- simple pages (auth, profile, articles) ---------- */
.wp-narrow{ max-width:480px; margin:0 auto; padding-block:40px 56px; }
.wp-simple-head{ display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:26px; }
.wp-simple-head .wp-brand-mark{ width:30px; height:30px; }
.wp-simple-head .wp-brand-name{ font-size:24px; }
.wp-page-head{ text-align:center; margin-bottom:22px; }
.wp-page-head h1{ font-family:'Big Shoulders Display', sans-serif; font-weight:800; font-size:clamp(26px,5vw,34px); margin:0; text-wrap:balance; }
.wp-page-head p{ color:var(--muted); font-size:14px; margin:8px 0 0; }

.wp-lighttop{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding-block:16px; border-bottom:1px solid var(--line); margin-bottom:26px; flex-wrap:wrap; }

.wp-field{ display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.wp-field label{ font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.wp-field input, .wp-field select, .wp-field textarea{ padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font-size:14px; font-family:inherit; }
.wp-field input:focus, .wp-field select:focus, .wp-field textarea:focus{ outline:none; border-color:var(--accent); }
.wp-field input:read-only{ background:var(--paper); color:var(--muted); }
.wp-field-row{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; }
@media (max-width:480px){ .wp-field-row{ grid-template-columns:1fr; } }
.wp-field-row-3{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; }
@media (max-width:560px){ .wp-field-row-3{ grid-template-columns:1fr; } }

.wp-status{ font-size:13px; text-align:center; margin-top:12px; min-height:18px; }
.wp-status.is-error{ color:var(--accent-2); }
.wp-status.is-success{ color:var(--accent); }
.wp-status.is-info{ color:var(--muted); }

.wp-avatar-upload{ display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:20px; }
.wp-avatar-preview{ width:96px; height:96px; border-radius:50%; object-fit:cover; border:3px solid var(--surface); box-shadow:var(--shadow); background:var(--paper); }
.wp-file-label{ display:inline-flex; align-items:center; gap:7px; cursor:pointer; }
input[type="file"].wp-file-input{ position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }

.wp-progress{ height:8px; border-radius:99px; background:var(--paper); overflow:hidden; margin-top:8px; }
.wp-progress-bar{ height:100%; background:var(--accent); width:0%; transition:width .2s ease; }

.wp-article-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:18px; margin-top:20px; }
.wp-article-card{ background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column; }
.wp-article-card img{ width:100%; height:150px; object-fit:cover; display:block; }
.wp-article-card-body{ padding:16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.wp-article-card-body h3{ font-family:'Big Shoulders Display', sans-serif; font-weight:700; font-size:19px; margin:0; }
.wp-article-card-body p{ font-size:13px; color:var(--muted); margin:0; flex:1; line-height:1.5; }

.wp-article-body{ font-size:15.5px; line-height:1.7; color:var(--ink); }
.wp-article-body h2{ font-family:'Big Shoulders Display', sans-serif; font-weight:700; font-size:22px; margin:1.4em 0 .5em; }
.wp-article-body p{ margin-bottom:1em; }
.wp-article-body a{ color:var(--accent); text-decoration:underline; }
.wp-experience-card{ position:relative; counter-increment:stop; background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:18px; margin:1.8em 0; overflow:hidden; }
.wp-experience-card h3{ display:flex; align-items:center; gap:10px; font-family:'Big Shoulders Display', sans-serif; font-weight:700; font-size:22px; line-height:1.1; margin:0 0 8px; }
.wp-experience-card h3::before{ content:counter(stop); width:28px; height:28px; border-radius:50%; background:var(--accent); color:#fff; font-family:'IBM Plex Mono', monospace; font-weight:700; font-size:13px; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.wp-experience-card p{ font-size:14.5px; line-height:1.65; margin:0 0 8px; }
.wp-experience-card .wp-stop-walk{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--muted); }
.wp-stop-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:12px; }
.wp-article-body figure{ margin:1.6em 0; }
.wp-article-body figure img{ width:100%; height:auto; border-radius:12px; display:block; }
.wp-article-body figcaption{ font-family:'IBM Plex Mono', monospace; font-size:11px; line-height:1.45; color:var(--muted); padding:7px 2px 0; }
.wp-article-body figcaption a{ color:var(--muted); }
.wp-experience-card .wp-stop-figure{ margin:-18px -18px 16px; }
.wp-experience-card .wp-stop-figure img{ height:240px; object-fit:cover; border-radius:0; }
.wp-experience-card .wp-stop-figure figcaption{ padding:7px 18px 0; }
.wp-hero-credit{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--muted); margin:-14px 2px 20px; }
.wp-hero-credit a{ color:inherit; }
.wp-article-body .wp-aside{ font-size:13.5px; color:var(--muted); font-style:italic; }

/* ---------- articles (editorial) ---------- */
.wp-eyebrow{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); }
.wp-article-hero{ margin-bottom:22px; }
.wp-article-hero > img{ width:100%; height:320px; object-fit:cover; border-radius:16px; display:block; margin-bottom:22px; box-shadow:var(--shadow); }
.wp-article-hero.is-plain{ background:linear-gradient(135deg, var(--accent-tint), var(--map-bg)); border:1px solid var(--line); border-radius:16px; padding:34px 28px; }
.wp-article-hero h1{ font-family:'Big Shoulders Display', sans-serif; font-weight:800; font-size:clamp(34px,7vw,54px); line-height:1; margin:10px 0 0; text-wrap:balance; }
.wp-deck{ font-size:17px; line-height:1.55; color:var(--muted); margin:14px 0 0; max-width:60ch; }
.wp-article-meta{ display:flex; gap:16px; flex-wrap:wrap; margin-top:16px; font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--muted); }
.wp-places-panel{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px 18px; margin-bottom:22px; box-shadow:var(--shadow); }
.wp-places-head{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.wp-places-head h2{ font-family:'Big Shoulders Display', sans-serif; font-weight:700; font-size:19px; margin:0; }
.wp-places-list{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:2px 16px; }
.wp-places-list a{ display:flex; align-items:center; gap:9px; padding:6px 0; text-decoration:none; font-size:13.5px; font-weight:600; }
.wp-places-list a:hover{ color:var(--accent); }
.wp-stop-num{ width:22px; height:22px; border-radius:50%; background:var(--accent); color:#fff; font-family:'IBM Plex Mono', monospace; font-size:11.5px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.wp-article-body{ counter-reset:stop; }
.wp-article-body .lead{ font-size:18.5px; line-height:1.65; }
.wp-article-body blockquote{ margin:1.4em 0; padding:14px 18px; border-left:4px solid var(--accent-2); background:var(--accent2-tint); border-radius:0 10px 10px 0; font-size:14.5px; line-height:1.6; }
.wp-article-body em{ font-style:italic; }
.wp-article-thumb{ position:relative; height:150px; background:linear-gradient(135deg, var(--accent-tint), var(--map-bg)); display:flex; align-items:center; justify-content:center; color:var(--accent); }
.wp-article-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.wp-article-thumb > svg{ width:38px; height:38px; opacity:.55; }
.wp-chip{ position:absolute; top:10px; left:10px; background:var(--surface); color:var(--ink); border-radius:99px; padding:3px 10px; font-family:'IBM Plex Mono', monospace; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; box-shadow:var(--shadow); }
.wp-article-foot{ display:flex; gap:14px; align-items:center; flex-wrap:wrap; font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--muted); }
.wp-article-foot svg{ width:12px; height:12px; color:var(--accent); vertical-align:-1px; margin-right:3px; }
.wp-toast{ position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:var(--ink); color:var(--surface); padding:11px 16px; border-radius:10px; font-size:13.5px; box-shadow:var(--shadow); z-index:60; max-width:calc(100vw - 32px); display:flex; gap:14px; align-items:center; }
.wp-toast a{ color:inherit; text-decoration:underline; font-weight:600; }
.wp-hint{ font-size:12px; color:var(--muted); margin:0; line-height:1.45; }
.wp-place-helper{ display:flex; flex-direction:column; gap:10px; padding:14px; border:1px dashed var(--line); border-radius:10px; background:var(--paper); }
.wp-place-helper .wp-field{ margin-bottom:0; }
.wp-template-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 14px; background:var(--accent-tint); border:1px solid var(--accent); border-radius:10px; margin-bottom:18px; font-size:13.5px; }

.wp-modal-backdrop{ position:fixed; inset:0; background:rgba(16,21,19,.5); z-index:50; display:flex; align-items:center; justify-content:center; padding:16px; }
.wp-modal-backdrop[hidden]{ display:none; }
.wp-modal{ background:var(--surface); border-radius:16px; box-shadow:var(--shadow); padding:22px; max-width:420px; width:100%; }
.wp-modal h3{ font-family:'Big Shoulders Display', sans-serif; font-size:20px; margin:0 0 14px; }
.wp-modal-list{ display:flex; flex-direction:column; gap:8px; max-height:260px; overflow-y:auto; }
.wp-modal-list button{ text-align:left; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--paper); cursor:pointer; font-weight:600; font-size:13.5px; color:var(--ink); }
.wp-modal-list button:hover{ border-color:var(--accent); }
.wp-modal-actions{ display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }

.wp-feedback-btn{ position:fixed; bottom:20px; right:20px; width:52px; height:52px; border-radius:50%; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow); text-decoration:none; z-index:40; }
.wp-feedback-btn:hover{ background:color-mix(in srgb, var(--accent) 88%, black); }
.wp-feedback-btn svg{ width:22px; height:22px; }

/* ---------- member locations ---------- */
.wp-loc-share{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.wp-loc-note{ font-size:12.5px; color:var(--muted); margin:10px 0 12px; line-height:1.45; }
.wp-loc-list{ margin-top:12px; }
.wp-loc-row{ display:flex; align-items:center; gap:12px; padding:9px 8px; margin:0 -8px; border-radius:10px; cursor:pointer; }
.wp-loc-row:hover{ background:var(--paper); }
.wp-loc-row.is-stale{ opacity:.6; }
.wp-loc-when{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--muted); margin-top:1px; }
