/* WO-UX-001: Live-data presentation layer. All actions still use the existing app.js APIs.
   Colors and spacing follow the approved bright/ocean prototypes. No sample trip data. */
html[data-theme="light"]{
  color-scheme:light;--bg:#f9faf7;--card:#fff;--card-raised:#fff;
  --ink:#102d3e;--muted:#667e89;--line:#e1e9e7;--chip:#e6f2ef;
  --brand:#087a87;--brand-ink:#fff;--deep:#087a87;--focus:#0b8493;
  --shadow:0 12px 32px rgba(23,54,56,.08);--shadow-soft:0 5px 18px rgba(23,54,56,.055)
}
html[data-theme="dark"]{
  color-scheme:dark;--bg:#071b2d;--card:#112b3d;--card-raised:#163347;
  --ink:#f1f7f5;--muted:#a7bbc2;--line:#284657;--chip:#193e4d;
  --brand:#4fbdb5;--brand-ink:#09222b;--deep:#69d3c5;--focus:#f0c477;
  --shadow:0 12px 32px rgba(0,0,0,.24);--shadow-soft:0 5px 18px rgba(0,0,0,.19)
}
/* +one owns the shared app; companion tokens apply only inside a selected trip. */
html:not([data-companion])[data-theme="light"]{--bg:#f8f5ef;--card:#fffdf8;--card-raised:#fffdf8;--ink:#08253c;--muted:#50616b;--line:#deded7;--chip:#e3efec;--brand:#08757a;--brand-ink:#ffffff;--deep:var(--brand);--focus:#08757a;--teal:var(--brand);--seafoam:var(--brand)}
html:not([data-companion])[data-theme="dark"]{--bg:#10232f;--card:#172f3e;--card-raised:#172f3e;--ink:#f7f3e9;--muted:#b8c7cb;--line:#354c56;--chip:#233d46;--brand:#78cfca;--brand-ink:#08253c;--deep:var(--brand);--focus:#e0b66e;--teal:var(--brand);--seafoam:var(--brand)}
html:not([data-companion]){--font-body:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;--font-display:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif}
html:not([data-companion]) .ux-home :is(.ux-page-title,.ux-trip-tile-copy strong){font-family:var(--font-display);font-weight:700}
html,body{background:var(--bg);font-family:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif}
body{min-width:320px;background:radial-gradient(circle at 10% 8%,color-mix(in srgb,var(--brand) 5%,transparent),transparent 28%),var(--bg)}
button{touch-action:manipulation}
.ux-app-shell{position:relative;isolation:isolate;max-width:480px;min-height:100dvh;margin:0 auto;background:var(--bg);box-shadow:0 16px 80px #09262b28}
.ux-app-shell .bar.ux-header{
  position:sticky;top:0;left:auto;right:auto;z-index:40;width:100%;min-height:72px;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 42px;
  gap:8px;margin:0;padding:10px 18px;border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--bg) 95%,transparent);backdrop-filter:blur(18px);box-shadow:none
}
.ux-header .brand-button{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-width:0;padding:0;border:0;background:none;box-shadow:none}
.ux-header .brand-button:hover{box-shadow:none;transform:none}
.ux-header .brand-mark{width:40px;height:40px;object-fit:contain;border-radius:50%;background:#082d44}
.ux-header .brand{display:inline;overflow:visible;color:var(--ink);font:400 24px/1 Georgia,"Times New Roman",serif;letter-spacing:-1.3px;text-transform:lowercase}
.ux-header .brand::after{content:".";color:#ff796a}
.ux-header .header-trip{text-align:center;min-width:0;align-self:center}
.ux-header .trip-title{font-size:10px;letter-spacing:.075em;text-transform:uppercase;font-weight:800;line-height:1.25;color:var(--muted)}
.ux-header .trip-meta{font-size:9px;line-height:1.3;color:var(--muted)}
.ux-header .who[hidden]{display:none!important}
.ux-profile{width:37px;height:37px;min-height:37px;padding:0;border-radius:50%;border:2px solid var(--card);background:var(--chip);color:var(--brand);box-shadow:0 0 0 1px var(--line);font-size:14px}
.ux-app-shell .tabs{
  position:fixed;top:auto;bottom:0;left:50%;right:auto;z-index:45;width:min(100%,480px);height:calc(75px + env(safe-area-inset-bottom,0px));
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:3px;
  margin:0;padding:6px 12px calc(9px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);
  border:0;border-top:1px solid var(--line);background:color-mix(in srgb,var(--bg) 96%,transparent);box-shadow:0 -5px 22px #09262b12;backdrop-filter:blur(20px)
}
.ux-app-shell .tabs[hidden]{display:none!important}
.ux-app-shell .tabs.ux-scroll-hidden{transform:translate(-50%,110%)}
body.ux-nav-hidden .ux-app-shell .composer{bottom:env(safe-area-inset-bottom,0px)}
.ux-app-shell .tabs{transition:transform .23s ease}
.ux-app-shell .tabs::before{display:none}
.ux-app-shell .tabs button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-width:0;min-height:51px;padding:7px 4px;border:0;border-radius:13px;background:transparent;color:var(--muted);font-size:11px;font-weight:750}
.ux-app-shell .tabs .tab-icon{width:auto;font:25px/1 Georgia,serif}
.ux-app-shell .tabs button[aria-current="true"]{background:var(--chip);color:var(--brand);box-shadow:none}
.ux-app-shell main{width:100%;max-width:none;min-height:calc(100dvh - 72px);margin:0;padding:0 20px calc(105px + env(safe-area-inset-bottom,0px))}
.ux-app-shell main>.ux-page{animation:surface-in .2s ease-out}
.ux-page{padding-top:23px}
.ux-page h1,.ux-page h2{letter-spacing:-.035em}
.ux-page h1,.ux-page-title{font-family:Georgia,"Times New Roman",serif;font-size:35px;font-weight:400;line-height:1.11;margin:6px 0 8px}
.ux-page-heading{margin:2px 0 22px}
.ux-page-heading p{font-size:13px;line-height:1.4}
.ux-eyebrow{font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--brand)}
.ux-welcome{margin-bottom:17px}
.ux-welcome h1{margin:5px 0 7px}
.ux-welcome p{margin:0;color:var(--muted);font-size:13px}
.ux-trip-hero{
  position:relative;min-height:247px;overflow:hidden;isolation:isolate;border-radius:24px;
  background:linear-gradient(120deg,color-mix(in srgb,var(--brand) 56%,#17242c),hsl(var(--destination-hue,195) 45% 37%));
  color:#fff;box-shadow:0 13px 28px #0b405538
}
/* Shade the text bounds so a wrapped title stays legible and the landscape
   between the title and footer keeps its natural brightness. */
.ux-hero-overlay{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:80px;min-height:247px;padding:23px}
.ux-hero-main,.ux-hero-place{position:relative;isolation:isolate;max-width:100%;overflow-wrap:anywhere}
.ux-hero-main::before,.ux-hero-place::before{
  --fade-toward:to bottom;
  content:'';position:absolute;inset:-32px -48px -32px -24px;z-index:-1;pointer-events:none;
  background:rgba(5,15,23,.70);
  mask-image:linear-gradient(to right,#000 calc(100% - 48px),#000b calc(100% - 30px),transparent),
    linear-gradient(var(--fade-toward),#000 calc(100% - 32px),#000b calc(100% - 20px),transparent);
  mask-composite:intersect
}
.ux-hero-place::before{--fade-toward:to top}
.ux-hero-label{color:#c5ebe5;font-size:10px;font-weight:800;letter-spacing:.11em}
.ux-trip-hero h2{margin:10px 0 0;max-width:320px;color:white;font:400 32px/1.08 Georgia,"Times New Roman",serif}
.ux-trip-hero p{color:#d6ebe9;margin:auto 0 13px;font-size:12px;line-height:1.45}
.ux-hero-action{min-height:34px;padding:8px 12px;border-radius:99px;border:1px solid #ffffff65;background:#ffffff24;color:#fff;font-size:12px;font-weight:750;box-shadow:none}
.ux-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:25px 0 12px}
.ux-section-title h2{font:800 18px/1.15 "DM Sans",system-ui,sans-serif;letter-spacing:-.035em;margin:0}
.ux-text-link{width:auto;min-height:32px;padding:5px 0;border:0;background:none;color:var(--brand);font-size:12px;font-weight:800;box-shadow:none}
.ux-text-link:hover{box-shadow:none}
.ux-summary-card{
  display:flex;align-items:center;gap:12px;width:100%;min-height:83px;margin:0;padding:14px;border:1px solid var(--line);border-radius:17px;
  background:var(--card);color:var(--ink);text-align:left;box-shadow:var(--shadow-soft)
}
.ux-card-icon{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:13px;background:var(--chip);color:var(--brand);font-size:23px;font-weight:750}
.ux-card-copy{display:grid;gap:4px;min-width:0;flex:1}
.ux-card-copy strong{font-size:14px;letter-spacing:-.02em;line-height:1.3}
.ux-card-copy small{font-size:11px;color:var(--muted);line-height:1.35}
.ux-chevron{flex:none;font-size:24px;color:var(--muted);line-height:1}
.ux-attention{border-color:color-mix(in srgb,#c98758 38%,var(--line));background:color-mix(in srgb,#d98961 8%,var(--card))}
.ux-attention .ux-card-icon{background:color-mix(in srgb,#d98961 20%,var(--card));color:#b46440}
.ux-success .ux-card-icon{color:#248a72;background:color-mix(in srgb,#3eae90 14%,var(--card))}
.ux-roster{display:flex;align-items:center;gap:11px;width:100%;padding:14px;border:1px solid var(--line);border-radius:17px;background:var(--card);color:var(--ink);text-align:left;box-shadow:var(--shadow-soft)}
.ux-faces{display:flex;align-items:center;flex:none;padding-left:5px}
.ux-face{display:grid;place-items:center;width:31px;height:31px;margin-left:-5px;border:2px solid var(--card);border-radius:50%;background:var(--chip);color:var(--brand);font-size:11px;font-weight:800}
.ux-roster-copy{display:grid;gap:3px;min-width:0;flex:1}
.ux-roster-copy strong{font-size:13px}
.ux-roster-copy small{font-size:11px;color:var(--muted)}
.ux-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ux-quick{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:105px;padding:14px;border:1px solid var(--line);border-radius:17px;background:var(--card);color:var(--ink);text-align:left;box-shadow:var(--shadow-soft)}
.ux-quick>span{font-size:24px;color:var(--brand)}
.ux-quick strong{font-size:13px}
.ux-quick small{font-size:11px;color:var(--muted)}
.ux-reminder-link{margin-top:18px;width:100%;justify-content:flex-start;background:var(--chip);color:var(--brand);border:none;font-size:12px}
.ux-trip-list{display:grid;gap:12px;margin-top:13px}
.ux-trip-tile{display:flex;align-items:center;gap:12px;overflow:hidden;min-height:115px;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--ink);text-decoration:none;box-shadow:var(--shadow-soft)}
.ux-trip-tile-photo{position:relative;display:grid;place-items:center;align-self:stretch;flex:none;width:clamp(76px,25vw,100px);overflow:hidden;background:linear-gradient(145deg,hsl(var(--destination-hue,195) 40% 31%),hsl(var(--destination-hue,195) 48% 20%))}
.ux-destination-photo{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center;pointer-events:none}
.ux-destination-stamp{display:grid;place-items:center;width:3.5rem;height:3.5rem;border:2px solid #ffffff80;border-radius:50%;outline:1px dashed #ffffff85;outline-offset:3px;transform:rotate(-9deg);font:750 .95rem/1 system-ui,sans-serif;letter-spacing:.08em;color:#fff}
.ux-trip-hero .ux-destination-stamp{position:absolute;right:6%;top:10%;width:6rem;height:6rem;font-size:1.7rem;opacity:.7}
.ux-destination-photo[hidden],.ux-destination-stamp[hidden],.ux-cover-info[hidden]{display:none}
.ux-trip-tile-wrap{position:relative}
.ux-cover-info{position:absolute;z-index:3;display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:white;box-shadow:none}
.ux-cover-info span{display:grid;place-items:center;width:22px;height:22px;border:1px solid #fffc;border-radius:50%;background:#18232be8;color:#fff;font:italic bold 15px/1 Georgia,serif}
.ux-cover-info:hover,.ux-cover-info:focus-visible{background:transparent;box-shadow:none}
.ux-cover-info:focus-visible span{outline:2px solid white;outline-offset:2px}
.ux-trip-tile-wrap>.ux-cover-info{inset:auto auto 0 0}
.ux-trip-hero>.ux-cover-info{inset:0 0 auto auto}
.ux-cover-attribution{overflow-wrap:anywhere;line-height:1.5}
.ux-cover-attribution a{text-decoration:underline}
.ux-trip-tile-copy{display:grid;flex:1;min-width:0;gap:5px;padding:10px 0}
.ux-trip-tile-copy small{font-size:10px;color:var(--brand);font-weight:800}
.ux-trip-tile-copy strong{font-family:Georgia,serif;font-size:20px;line-height:1.1}
.ux-trip-tile-copy>span{font-size:11px;color:var(--muted)}
.ux-trip-tile>.ux-chevron{padding-right:12px}
.ux-new-trip{margin-top:17px;width:100%;border:1px dashed var(--brand);color:var(--brand);background:var(--chip)}
.ux-appearance-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ux-appearance-option{padding:10px 7px;min-height:50px;border:1px solid var(--line);background:var(--card);font-size:11px;text-align:center}
.ux-appearance-option.selected{border:2px solid var(--brand);background:var(--chip);color:var(--brand)}
.ux-link-row{width:100%;margin:17px 0 8px;justify-content:flex-start;color:var(--brand);background:var(--chip);font-size:13px}
.ux-logout{margin:24px 0;color:var(--muted);background:none;border:1px solid var(--line);font-size:12px}
.ux-extras{margin:27px 0;border:1px solid var(--line);border-radius:16px;background:var(--card);padding:14px}
.ux-extras>summary{font-size:13px;font-weight:750;color:var(--brand)}
.ux-plan .timeline{margin-top:15px}
.ux-days{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin:11px -3px 11px;padding:2px 3px 8px}
.ux-days::-webkit-scrollbar{display:none}
.ux-day-chip{flex:none;min-height:50px;padding:9px 13px;border:1px solid var(--line);border-radius:13px;background:var(--card);color:var(--muted);font-size:12px}
.ux-day-chip.selected{border-color:var(--brand);background:var(--brand);color:var(--brand-ink)}
.ux-plan .day{border-color:color-mix(in srgb,var(--brand) 40%,var(--line));margin-bottom:7px}
.ux-plan .day>h3{font:400 22px/1.2 Georgia,serif;margin-bottom:11px}
.ux-plan .act.card{padding:15px;border-radius:16px;background:var(--card);box-shadow:var(--shadow-soft)}
.ux-plan .act h3{font-size:14px;letter-spacing:-.015em}
.ux-plan .section-head h2{font-size:18px;margin:0}
.ux-settings .crew-section{margin-bottom:20px}
.ux-settings .crew-section>.section-head h2{font-size:15px}
/* Messenger-style Chat: conversation choice stays tucked behind the title. */
body[data-view="chat"] .ux-app-shell main{padding-top:7px}
body[data-view="chat"] .trip-pulse{display:none}
.ux-chat-switcher{position:relative;width:max-content;max-width:100%;margin:0 0 7px}
.ux-chat-switcher-button{display:flex;align-items:center;gap:8px;min-height:42px;padding:4px 1px;font:750 18px/1.2 "DM Sans",system-ui,sans-serif;letter-spacing:-.02em}
.ux-chat-switcher-name{color:var(--ink)}
.ux-chat-switcher-privacy{padding:4px 7px;border-radius:8px;background:var(--chip);color:var(--muted);font:650 10px/1.2 "DM Sans",system-ui,sans-serif;letter-spacing:0}
.ux-chat-switcher-chevron{font-size:18px;color:var(--muted)}
.ux-chat-switcher-menu{position:absolute;top:calc(100% + 3px);left:0;z-index:30;display:grid;gap:3px;min-width:220px;padding:7px;border:1px solid var(--line);border-radius:14px;background:var(--card-raised);box-shadow:var(--shadow)}
.ux-chat-switcher-menu button{width:100%;min-height:43px;text-align:left;border:0;box-shadow:none;background:transparent;color:var(--ink)}
.ux-chat-switcher-menu button.selected{background:var(--chip);color:var(--brand)}
.ux-chat-empty{align-self:center;margin:auto 0;color:var(--muted);font-size:13px;text-align:center}
.ux-app-shell .chat-shell{display:flex;flex-direction:column;gap:0;min-height:calc(100dvh - 240px)}
.ux-app-shell .thread-wrap{flex:1;min-height:0}
.ux-app-shell .thread{min-height:calc(100dvh - 337px);max-height:calc(100dvh - 295px)}
.ux-app-shell .composer{bottom:calc(75px + env(safe-area-inset-bottom,0px));gap:2px;padding:7px 0 5px;background:var(--bg)}
.ux-chat-compose-line{display:flex;align-items:flex-end;gap:9px}
.ux-app-shell .ux-chat-composer textarea{flex:1;min-width:0;min-height:46px;max-height:120px;height:auto;field-sizing:content;padding:11px 15px;border-radius:24px;resize:none;font-size:15px;box-shadow:none}
.ux-app-shell .ux-chat-composer .ux-chat-send{display:grid;place-items:center;flex:none;width:46px;min-width:46px;height:46px;min-height:46px;margin:0;padding:0;border-radius:50%;font-size:26px;font-weight:700;line-height:1;box-shadow:none}
.ux-chat-composer [role="status"]:empty{display:none}
.ux-app-shell .map{border-radius:18px}
.ux-app-shell .map-layout{display:grid;grid-template-columns:minmax(0,1fr)}
.ux-app-shell .map-layout .map,.ux-app-shell .map-layout .map-side{grid-column:auto;grid-row:auto;max-height:none}
.ux-app-shell .map{height:45dvh;min-height:285px}
.ux-app-shell .filters{padding-left:4px;padding-right:4px}
.ux-app-shell .reminder-banner{z-index:50}
.ux-rooster-fab{
  position:fixed;z-index:49;right:max(18px,calc((100vw - 480px)/2 + 18px));
  bottom:calc(95px + env(safe-area-inset-bottom,0px));display:grid;place-items:center;
  width:60px;height:60px;min-height:60px;padding:2px;border:2px solid var(--bg);border-radius:50%;
  background:linear-gradient(145deg,#0b2b43,#0c5366);box-shadow:0 0 0 1px #ff796a55,0 9px 22px #0b3b554d;
  cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none
}
.ux-rooster-fab img{width:54px;height:54px;object-fit:contain;pointer-events:none}
.ux-rooster-fab.dragging{cursor:grabbing;transform:scale(1.05)}
.ux-rooster-fab[hidden]{display:none!important}
body.typing .ux-app-shell .tabs{display:none}
body.typing .ux-rooster-fab{display:none}
body.typing .ux-app-shell main{padding-bottom:90px}
.ux-app-shell .toast{bottom:100px}
@media(min-width:600px){
  .ux-app-shell{margin:28px auto;min-height:calc(100dvh - 56px);border-radius:25px;overflow:hidden}
  .ux-app-shell .bar.ux-header{border-radius:25px 25px 0 0}
  .ux-app-shell .tabs{bottom:28px;border-radius:0 0 25px 25px}
  .ux-app-shell .sheet-backdrop{padding-left:0}
}
@media(max-width:360px){
  .ux-app-shell .bar.ux-header{padding:9px 12px}
  .ux-header .brand{font-size:20px}
  .ux-header .brand-mark{width:34px;height:34px}
  .ux-app-shell main{padding-left:14px;padding-right:14px}
  .ux-trip-hero h2{font-size:29px}
}
@media(prefers-reduced-motion:reduce){.ux-rooster-fab{transition:none}}

/* WO-UX-001H: Home fidelity pass, ported from the accepted light/ocean prototypes.
   Only presentation and static vector artwork change; all content remains real trip data. */
.ux-header .brand{font-family:"DM Sans","Segoe UI",system-ui,sans-serif;font-size:24px;font-weight:800;letter-spacing:-.065em}
.ux-header .brand-mark{border:1px solid #1d5a68}
/* The emblem is the plus. Keep the original lettering, without a second plus. */
.ux-header .brand-button[data-brand="plusone"]{--wordmark-width:92px;gap:7px;min-height:44px;text-decoration:none;justify-self:start}
.ux-app-shell .bar.ux-header:has(.brand-button[data-brand="plusone"]){grid-template-columns:minmax(0,1fr) 42px}
.ux-header:has(.brand-button[data-brand="plusone"]) .header-trip{display:none}
.ux-header .brand-button[data-brand="plusone"] .brand-mark{width:40px;height:40px;flex:none;border:0;border-radius:0;background:transparent;filter:none;mix-blend-mode:multiply}
.ux-header .brand-wordmark{width:calc(var(--wordmark-width)*.7275);height:calc(var(--wordmark-width)*.285);object-fit:cover;object-position:right;flex:none;mix-blend-mode:multiply}
.ux-header .brand-button[data-brand="plusone"] .brand-mark[hidden]~.brand-wordmark{width:var(--wordmark-width)}
.ux-header .brand-button[data-brand="plusone"] .brand{color:#08253c;font-family:"DM Sans",system-ui,sans-serif;font-size:28px;letter-spacing:-.065em}
.ux-header .brand-button[data-brand="plusone"] .brand::after{content:none}
.ux-header .brand-button[data-brand="plusone"] .brand-mark[hidden]~.brand::before{content:'+';color:#b98a42}
.ux-header .brand-button [hidden]{display:none!important}
html[data-theme="dark"] .ux-header .brand-button[data-brand="plusone"]{padding:4px 7px;border-radius:10px;background:#f8f5ef}
.ux-trip-tile-copy>.ux-trip-coordinator{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:14px;line-height:1.3;font-weight:650;color:var(--ink)}
.ux-trip-coordinator-avatar{display:block;flex:none;width:24px;height:24px;border-radius:50%;object-fit:cover;background:var(--chip)}
.ux-trip-coordinator-avatar[hidden]{display:none}
@media(max-width:360px){.ux-header .brand-button[data-brand="plusone"]{--wordmark-width:80px;gap:6px}.ux-header .brand-button[data-brand="plusone"] .brand-mark{width:35px;height:35px}}
body[data-view="today"] .ux-header .header-trip{display:flex;align-items:center;justify-content:center}
body[data-view="today"] .ux-header .trip-title{font-size:10px;letter-spacing:.11em;line-height:1.3}
body[data-view="today"] .ux-header .trip-meta{display:none}
html[data-theme="dark"] body[data-view="today"] .ux-app-shell{
  background-color:var(--bg);
  background-image:radial-gradient(ellipse at top,color-mix(in srgb,var(--brand) 12%,transparent),transparent 55%)
}
html[data-theme="dark"] body[data-view="today"] .ux-header{
  background:rgba(5,23,38,.76);border-bottom-color:rgba(164,220,233,.15)
}
.ux-app-shell .tabs .tab-icon{width:23px;height:23px;display:grid;place-items:center;font:inherit}
.ux-app-shell .tabs .tab-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ux-today .ux-welcome{margin-bottom:18px}
.ux-today .ux-welcome h1{font-size:38px;line-height:1.1;letter-spacing:-.025em;margin:5px 0 7px}
.ux-today .ux-welcome p{font-size:13px;line-height:1.5}
.ux-today .ux-trip-hero{min-height:248px;border-radius:22px;box-shadow:0 12px 28px #0b405538}
html[data-theme="dark"] .ux-today .ux-trip-hero{
  border:1px solid var(--line)
}
.ux-today .ux-hero-overlay{min-height:248px;padding:23px;justify-content:space-between}
.ux-today .ux-hero-label{font-weight:800;letter-spacing:.12em;color:#fff}
.ux-today .ux-trip-hero h2{max-width:285px;margin:9px 0 0;font:400 32px/1.05 Georgia,serif}
.ux-hero-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:9px;width:100%}
.ux-hero-place{display:grid;align-content:end;gap:3px;min-width:0;font-size:12px;color:#fff}
.ux-hero-place>span{display:flex;align-items:center;gap:4px}
.ux-hero-place strong{font-size:11px;color:#fff;line-height:1.4}
.ux-hero-place .ux-icon{width:14px;height:14px}
.ux-today .ux-hero-action{display:inline-flex;align-items:center;gap:6px;justify-content:center;white-space:nowrap;min-height:34px;margin:0;padding:8px 11px;background:rgba(5,15,23,.68);border:1px solid #ffffffa6;color:#fff}
.ux-today .ux-hero-action .ux-icon{width:15px;height:15px}
.ux-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:none}
.ux-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ux-today .ux-section-title{margin:25px 0 13px}
.ux-today .ux-text-link{display:inline-flex;align-items:center;gap:3px}
.ux-today .ux-text-link .ux-icon{width:14px;height:14px}
.ux-today .ux-summary-card{min-height:91px;padding:16px;border-radius:19px;gap:13px}
.ux-today .ux-card-icon{width:43px;height:43px;border-radius:13px}
.ux-today .ux-card-icon-warm{background:color-mix(in srgb,#d7a268 22%,var(--card));color:#ad7e45}
html[data-theme="dark"] .ux-today .ux-card-icon-warm{background:#423a3d;color:#ffd18f}
.ux-today .ux-card-copy strong{font-size:15px}
.ux-today .ux-card-copy small{font-size:12px}
.ux-today .ux-card-when{color:#a9793c;font-size:10px;line-height:1.2;font-weight:800;letter-spacing:.11em}
html[data-theme="dark"] .ux-today .ux-card-when{color:#ffc985}
.ux-today .ux-chevron .ux-icon{width:18px;height:18px}
.ux-today .ux-attention{background:var(--card);border-color:var(--line)}
html[data-theme="dark"] .ux-today .ux-summary-card,
html[data-theme="dark"] .ux-today .ux-roster,
html[data-theme="dark"] .ux-today .ux-quick{
  background:linear-gradient(155deg,rgba(24,53,75,.97),rgba(11,35,55,.97));
  border-color:rgba(90,153,182,.29);box-shadow:0 9px 21px #010d1b33,inset 0 1px #ffffff0a
}
.ux-today .ux-roster{min-height:90px;padding:15px;border-radius:19px}
.ux-today .ux-roster-copy strong{font-size:14px}
.ux-today .ux-roster-copy small{font-size:12px}
.ux-face-empty{background:color-mix(in srgb,var(--chip) 65%,var(--card));border:1px dashed var(--muted);color:var(--muted)}
.ux-today .ux-quick{min-height:105px;padding:14px;gap:12px;border-radius:17px}
.ux-today .ux-quick>.ux-icon{width:25px;height:25px;color:var(--brand)}
.ux-today .ux-quick-name{display:flex;align-items:center;gap:5px;color:var(--ink)}
.ux-today .ux-quick-name strong{font-size:14px}
.ux-today .ux-quick-name .ux-icon{width:16px;height:16px;color:var(--brand)}
html[data-theme="dark"] .ux-rooster-fab{border-color:#72f6e6;box-shadow:0 0 0 3px #0a2539,0 7px 27px #061625d9,0 0 24px #26e3cd52}
@media(max-width:360px){
  .ux-today .ux-welcome h1{font-size:34px}
  .ux-today .ux-trip-hero h2{font-size:29px}
  .ux-hero-foot{gap:4px}
  .ux-today .ux-hero-action{font-size:11px;padding:7px}
}

/* WO-UX-001P: compact itinerary modeled on the approved day-by-day prototype.
   Activity actions retain the existing authorizations inside the bottom sheet. */
.ux-plan .ux-plan-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;margin:4px 0 18px}
.ux-plan .ux-plan-heading h1{font:400 37px/1.08 Georgia,serif;margin:7px 0 6px;letter-spacing:-.045em}
.ux-plan .ux-plan-heading .ux-eyebrow{font-size:10px;letter-spacing:.095em}
.ux-plan .ux-plan-heading p{font-size:12px;margin:0;line-height:1.5}
.ux-plan-add{flex:none;margin-top:5px;padding:10px 13px;min-height:37px;border-radius:12px;background:var(--chip);color:var(--brand);font-size:12px;font-weight:750;border:1px solid var(--line);box-shadow:none}
.ux-plan .ux-itinerary{margin:0}
.ux-plan .ux-plan-day-picker{gap:8px;margin:0 -3px 10px;padding:3px 3px 9px}
.ux-plan-day-picker .ux-day-chip{display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:52px;height:66px;padding:7px 11px;border-radius:16px;box-shadow:var(--shadow-soft);font-weight:750;color:var(--ink);gap:1px}
.ux-plan-day-picker .ux-day-chip.ux-day-all{min-width:57px;height:66px;font-size:12px}
.ux-plan-day-picker .ux-day-chip span{color:inherit;font-size:11px;line-height:1.3;font-weight:750;opacity:.72}
.ux-plan-day-picker .ux-day-chip strong{font-size:19px;line-height:1.2}
.ux-plan-day-picker .ux-day-chip.selected{background:var(--brand);color:var(--brand-ink);border-color:var(--brand);box-shadow:0 7px 13px #0b7c8050}
.ux-plan-timezone{font-size:10px;color:var(--muted);margin:2px 0 18px}
/* A single explicit minmax(0,1fr) column prevents intrinsic content and long
   imported URLs from widening one day or squeezing later-day cards on iPhones. */
.ux-plan,.ux-plan .ux-itinerary,.ux-plan-days,.ux-plan-day{width:100%;min-width:0;max-width:100%}
.ux-plan-day{margin:0 0 23px}
.ux-plan-day>h3{font:400 21px/1.3 Georgia,serif;letter-spacing:-.025em;margin:0 0 12px;color:var(--ink)}
.ux-plan-event-list{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;width:100%;min-width:0;max-width:100%}
.ux-plan-event{display:grid;grid-template-columns:49px 41px minmax(0,1fr) 19px;gap:10px;align-items:center;width:100%;min-height:75px;padding:11px 12px;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--ink);text-align:left;box-shadow:var(--shadow-soft)}
.ux-plan-event:focus-visible,.ux-plan-add:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.ux-plan-event-time{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.15;gap:2px;color:var(--ink)}
.ux-plan-event-time strong{font-size:13px;white-space:nowrap;font-weight:800}
.ux-plan-event-time small{font-size:10px;font-weight:800;color:var(--muted)}
.ux-plan-event-icon{display:grid;place-items:center;width:41px;height:41px;border-radius:12px;color:var(--brand);background:var(--chip)}
.ux-plan-event-icon .ux-icon{width:24px;height:24px}
.ux-plan-event-copy{display:flex;flex-direction:column;justify-content:center;min-width:0;gap:4px}
.ux-plan-event-copy strong{font-size:13px;line-height:1.25;font-weight:800;overflow-wrap:anywhere}
.ux-plan-event-copy small{font-size:11px;line-height:1.3;color:var(--muted)}
.ux-plan-event-chevron{color:var(--muted)}
.ux-plan-event-chevron .ux-icon{width:17px;height:17px}
.ux-plan-event-excluded{opacity:.67}
.ux-plan-empty,.ux-plan-unscheduled{margin:0;padding:13px 15px;background:var(--card);border:1px solid var(--line);border-radius:14px;color:var(--muted);font-size:12px;line-height:1.5}
.ux-plan-unscheduled{margin-top:10px;padding:9px 12px;background:transparent;border-style:dashed}
html[data-theme="dark"] .ux-plan-event{background:linear-gradient(155deg,rgba(24,53,75,.97),rgba(11,35,55,.97));border-color:rgba(90,153,182,.29);box-shadow:0 9px 21px #010d1b33,inset 0 1px #ffffff0a}
html[data-theme="dark"] .ux-plan-event-icon{background:#254652;color:#85ddd6}
.ux-plan-backdrop{z-index:70;padding:0 0 env(safe-area-inset-bottom,0px)}
body.ux-plan-modal-open{overflow:hidden}
.ux-plan-sheet{width:min(100%,480px);max-height:min(88dvh,780px);overflow-y:auto;border-radius:24px 24px 0 0;background:var(--bg);padding:16px 18px 26px;border-color:var(--line)}
.ux-plan-sheet-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:2px 0 16px}
.ux-plan-sheet-heading h2{font:400 26px/1.15 Georgia,serif;letter-spacing:-.035em;color:var(--ink);margin:6px 0}
.ux-plan-sheet-heading .ux-plan-sheet-meta{font-size:12px;color:var(--muted);margin:0}
.ux-plan-sheet-close{flex:none;min-height:37px;padding:9px 13px;border:1px solid var(--line);background:var(--card);color:var(--brand);border-radius:11px;font-size:12px;font-weight:800}
.ux-plan-sheet-content .act.card{padding:17px;border:1px solid var(--line);border-radius:17px;background:var(--card);box-shadow:var(--shadow-soft)}
.ux-plan-sheet-content .activity-head h3{display:none}
.ux-plan-sheet-content .activity-head{align-items:flex-start}
.ux-plan-sheet-content .activity-meta{line-height:1.55}
@media(min-width:600px){.ux-plan-backdrop{padding-left:0}.ux-plan-sheet{border-radius:24px;margin-bottom:26px}}
@media(max-width:360px){.ux-plan-event{grid-template-columns:43px 37px minmax(0,1fr) 15px;gap:7px;padding:10px 8px}.ux-plan-event-icon{width:37px;height:37px}.ux-plan-event-time strong{font-size:12px}.ux-plan .ux-plan-heading h1{font-size:33px}}

/* Fresh start: Share trip (organizer) */
.ux-share-trip{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;margin:14px 0 4px;padding:16px 18px;border:0;border-radius:18px;
  background:var(--brand);color:var(--brand-ink);text-align:left;box-shadow:var(--shadow-soft);cursor:pointer}
.ux-share-trip strong{font-size:18px}
.ux-share-trip small{opacity:.9}
.share-sheet{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:18px;border:1px solid var(--line);border-radius:20px;
  background:var(--card,#fff);color:var(--ink);box-sizing:border-box}
.share-sheet::backdrop{background:rgba(8,24,32,.55)}
.share-sheet .share-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.share-sheet .share-head h2{margin:0}
.share-sheet .share-form .row{display:flex;gap:8px;align-items:center}
.share-sheet .share-form input{flex:1;min-width:0}
.share-sheet .link-box{overflow-wrap:anywhere}
.share-sheet .share-person{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 0;border-top:1px solid var(--line)}
.share-sheet .share-who{display:flex;flex-direction:column;min-width:0}
.share-sheet .share-person.joined .share-who span{color:var(--brand)}
.copy-buffer{position:fixed;top:0;left:-9999px;width:1px;height:1px;opacity:0}

/* Private account avatars (header, crew and chat). */
.ux-profile-photo,.ux-avatar-large,.ux-chat-member-photo{display:grid;place-items:center;width:100%;height:100%;overflow:hidden;border-radius:50%}
.ux-profile-photo img,.ux-avatar-large img,.member-avatar img,.ux-face img,.ux-chat-member-photo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.ux-avatar-settings-row{display:flex;align-items:center;gap:16px;margin:10px 0 21px;padding:16px;border:1px solid var(--line);border-radius:17px;background:var(--card)}
.ux-avatar-preview{display:grid;place-items:center;flex:none;width:92px;height:92px;overflow:hidden;border-radius:50%;background:var(--chip);color:var(--brand)}
.ux-avatar-large{font-size:32px;font-weight:750}
.ux-avatar-crop{display:block;width:92px;height:92px;object-fit:cover;border-radius:50%}
.ux-avatar-actions{display:grid;gap:10px;min-width:0}
.ux-avatar-actions p{margin:0}
.ux-avatar-buttons{display:flex;flex-wrap:wrap;gap:7px}
.ux-avatar-buttons button{min-height:39px;padding:7px 12px;font-size:12px}
.ux-avatar-remove{border-color:transparent;color:var(--muted);background:transparent;box-shadow:none}
@media(max-width:390px){.ux-avatar-settings-row{gap:12px;padding:12px}.ux-avatar-preview{width:72px;height:72px}.ux-avatar-crop{width:72px;height:72px}}


/* WO-CHAT-LAYOUT: Chat owns the available viewport, like a native messenger.
   The header stays in place; only the message thread scrolls. The composer is
   always visible and the thread grows when navigation disappears. */
body[data-view="chat"] .ux-app-shell{
  display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden;
}
body[data-view="chat"] .ux-app-shell .bar.ux-header{position:relative;flex:none}
body[data-view="chat"] .ux-app-shell main{
  display:flex;flex:1 1 auto;flex-direction:column;min-height:0;height:auto;overflow:hidden;
  padding:7px 20px calc(75px + env(safe-area-inset-bottom,0px));
}
body[data-view="chat"] .ux-chat-switcher{flex:none}
body[data-view="chat"] .ux-app-shell .chat-shell{
  display:flex;flex:1 1 auto;flex-direction:column;min-height:0;height:auto;overflow:hidden;
}
body[data-view="chat"] .ux-app-shell .thread-wrap{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}
body[data-view="chat"] .ux-app-shell .thread{
  flex:1 1 auto;min-height:0;max-height:none;height:auto;overscroll-behavior:contain;
}
body[data-view="chat"] .ux-app-shell .composer{
  flex:none;position:relative;bottom:auto;padding:7px 0 max(7px,env(safe-area-inset-bottom,0px));
}
body.ux-nav-hidden .ux-app-shell main{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
body[data-view="chat"].ux-nav-hidden .ux-app-shell main,
body[data-view="chat"].typing .ux-app-shell main{padding-bottom:env(safe-area-inset-bottom,0px)}
@media(max-width:360px){
  body[data-view="chat"] .ux-app-shell main{padding-left:14px;padding-right:14px}
}


/* Chat photos: one compact '+' in the native-style message composer; image previews stay in their thread. */
.ux-chat-photo-add{flex:none;display:grid;place-items:center;width:38px;min-width:38px;height:44px;min-height:44px;
  padding:0;border:0;border-radius:50%;background:transparent;color:var(--brand);font-size:32px;font-weight:400;line-height:1;box-shadow:none}
.ux-chat-photo-add:focus-visible,.ux-chat-photo:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.ux-chat-photo{display:block;width:max-content;max-width:100%;margin:3px 0 5px;padding:0;overflow:hidden;border:1px solid var(--line);
  border-radius:15px;background:var(--card);box-shadow:var(--shadow-soft);cursor:pointer}
.ux-chat-photo img{display:block;max-width:100%;max-height:min(53dvh,420px);width:auto;height:auto;object-fit:contain}
.ux-chat-photo-previews{display:flex;flex-wrap:wrap;gap:9px;max-height:45dvh;overflow:auto;justify-content:center}
.ux-chat-photo-preview{display:block;width:auto;max-width:calc(50% - 5px);max-height:180px;border-radius:12px;object-fit:contain}
.ux-chat-photo-dialog{width:min(100vw - 16px,680px);max-height:calc(100dvh - 16px);padding:12px;
  overflow:auto;border:1px solid var(--line);border-radius:16px;background:var(--bg);color:var(--ink)}
.ux-chat-photo-dialog::backdrop{background:#061b2ae0}
.ux-chat-photo-dialog>img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 95px);margin:auto;object-fit:contain}
.ux-chat-photo-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px}
.ux-chat-photo-bar button{min-height:36px;padding:7px 12px}


/* Trip map: map first, one location switch, secondary tools collapsed. */
body[data-view="map"] .ux-app-shell main{padding:10px 12px calc(95px + env(safe-area-inset-bottom,0px))}
body[data-view="map"].ux-nav-hidden .ux-app-shell main{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
body[data-view="map"] .ux-app-shell .map{height:min(66dvh,680px);min-height:355px;border-radius:16px}
.ux-map-share{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:5px 0 12px;padding:12px 14px;
  border:1px solid var(--line);border-radius:16px;background:var(--card)}
.ux-map-share-copy{min-width:0}
.ux-map-share-copy>b{display:block;font-size:15px}
.ux-map-share-copy p{margin:4px 0 0;font-size:11px;line-height:1.35}
.ux-map-switch{flex:none;position:relative;width:58px;height:34px;min-height:34px;padding:2px;border:0;border-radius:99px;
  background:var(--line);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink) 12%,transparent);transition:background .15s ease}
.ux-map-switch.on{background:var(--brand)}
.ux-map-switch-thumb{display:block;width:30px;height:30px;border-radius:50%;background:#fff;
  box-shadow:0 1px 5px #0003;transform:translateX(0);transition:transform .15s ease}
.ux-map-switch.on .ux-map-switch-thumb{transform:translateX(24px)}
.ux-map-switch:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.ux-map-details{margin:10px 0;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.ux-map-details>summary{cursor:pointer;list-style:none;padding:13px 15px;color:var(--ink);font-weight:700}
.ux-map-details>summary::-webkit-details-marker{display:none}
.ux-map-details>summary::after{content:'⌄';float:right;color:var(--muted)}
.ux-map-details[open]>summary::after{content:'⌃'}
.ux-map-details>.map-toolbar,.ux-map-details>.map-side{padding:0 12px 12px}
.ux-map-details .filters{max-height:170px;overflow-y:auto}

/* WO-MAP-DISCOVERY: place search is a first-class map action; compact mobile-first results. */
.ux-map-context{margin:0 0 8px}
.ux-map-hotel{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px;line-height:1.35}
.ux-map-hotel>span:first-child{color:var(--muted);font-weight:600}
.ux-map-hotel strong{font-size:13px;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ux-map-hotel .small{font-size:11px}
.ux-map-hotel button{margin-left:auto}
.ux-map-find-wrap{margin:0 0 8px}
.ux-map-find{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:15px;
  background:var(--card);padding:5px 5px 5px 10px;box-shadow:var(--shadow-soft)}
.ux-map-find-icon{font-size:24px;color:var(--muted);font-weight:400;line-height:1}
.ux-map-find input{flex:1;min-width:0;min-height:36px;padding:5px 4px;font-size:15px;border:0;
  background:transparent;color:var(--ink);box-shadow:none;outline:none}
.ux-map-find:focus-within{outline:2px solid var(--focus);outline-offset:1px}
.ux-map-find button{flex:none;min-height:36px;padding:5px 12px}
.ux-map-quick{display:flex;align-items:center;gap:6px;margin:4px 0 0;overflow:auto}
.ux-map-quick .small{font-size:11px;white-space:nowrap}
.ux-map-quick button{min-height:28px;padding:4px 10px;border-radius:999px}
.ux-map-find-wrap>p{margin:6px 2px;font-size:12px;line-height:1.35}
.ux-map-search-results{max-height:190px;overflow-y:auto;margin:4px 0 7px;border:1px solid var(--line);
  background:var(--card);border-radius:12px}
.ux-map-search-hit{padding:9px 11px;border-bottom:1px solid var(--line)}
.ux-map-search-hit:last-child{border-bottom:0}
.ux-map-search-hit b{display:block;font-size:13px}
.ux-map-search-hit p{margin:2px 0 4px;font-size:11px}
.ux-map-search-actions{display:flex;gap:6px;flex-wrap:wrap}
.ux-map-search-actions button{min-height:29px;padding:4px 9px;font-size:12px;border-radius:9px}
body[data-view="map"] .ux-app-shell .map{height:min(71dvh,740px);min-height:360px}

/* Map canvas refresh: compact floating search + a single collapsible place drawer. */
@media(max-width:799px){
  body[data-view="map"] .ux-app-shell main{
    width:100%;max-width:none;margin:0;padding:0!important;
    height:calc(100dvh - 177px);min-height:340px;overflow:hidden;
  }
  body[data-view="map"] .ux-map-stage{position:relative;width:100%;height:100%;min-height:340px;overflow:hidden;background:#d7e8ec}
  body[data-view="map"] .ux-map-stage>.map-layout,
  body[data-view="map"] .ux-map-stage>.map-layout>.map{
    display:block;width:100%;height:100%!important;min-height:0!important;max-height:none!important;
    margin:0;border:0;border-radius:0;box-shadow:none
  }
  .ux-map-stage>.ux-map-overlay-top{
    position:absolute;top:9px;left:10px;right:10px;z-index:900;pointer-events:none
  }
  .ux-map-stage>.ux-map-overlay-top>*{pointer-events:auto}
  .ux-map-stage .ux-map-find-wrap{margin:0 0 5px}
  .ux-map-stage .ux-map-find{border-radius:22px;min-height:47px;padding:4px 5px 4px 12px;background:#fff}
  .ux-map-stage .ux-map-find input{min-height:37px}
  .ux-map-stage .ux-map-quick{margin:6px 3px 0;gap:5px}
  .ux-map-stage .ux-map-quick>span{display:none}
  .ux-map-stage .ux-map-quick button{background:#fff;border:1px solid #d4dfe1;padding:5px 12px;min-height:34px;
    box-shadow:0 2px 8px #152e3a22;color:#163643;font-size:12px}
  .ux-map-stage .ux-map-context{
    display:block;margin:5px 0 0;padding:7px 11px;border:1px solid #dbe4e6;
    border-radius:14px;background:#fffffff2;box-shadow:0 2px 10px #152e3a20
  }
  .ux-map-stage .ux-map-hotel{display:flex;gap:4px}
  .ux-map-stage .ux-map-hotel strong{max-width:62%;font-size:12px}
  .ux-map-stage .ux-map-hotel>span.small{font-size:10px}
  .ux-map-stage .ux-map-context>p{margin:4px 0 0;font-size:11px}
  .ux-map-stage .ux-map-search-results{
    max-height:42dvh;overflow:auto;background:#fff;box-shadow:0 7px 25px #122c3e44
  }
  .ux-map-stage>.ux-map-controls{
    position:absolute;right:11px;bottom:70px;z-index:900;max-width:calc(100% - 22px)
  }
  .ux-map-stage .ux-map-share{
    gap:8px;margin:0;padding:7px 8px 7px 12px;background:#fffffff5;border:1px solid #d4dee1;
    border-radius:30px;box-shadow:0 3px 14px #122c3e42
  }
  .ux-map-stage .ux-map-share-copy b{font-size:12px;white-space:nowrap}
  .ux-map-stage .ux-map-share-copy p{display:none}
  .ux-map-stage .ux-map-switch{width:49px;height:30px;min-height:30px}
  .ux-map-stage .ux-map-switch-thumb{width:26px;height:26px}
  .ux-map-stage .ux-map-switch.on .ux-map-switch-thumb{transform:translateX(19px)}
  .ux-map-stage>.ux-map-details{
    position:absolute;left:9px;right:9px;bottom:7px;z-index:920;margin:0;
    max-height:calc(100% - 176px);overflow:auto;border:1px solid #d6e1e5;
    border-radius:19px;background:#fffffff8;box-shadow:0 4px 20px #16344340
  }
  .ux-map-stage>.ux-map-details>summary{padding:12px 16px;font-size:14px;line-height:20px}
  .ux-map-stage>.ux-map-details[open]{max-height:58%}
  .ux-map-stage .ux-map-details .filters{max-height:94px;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap}
  .ux-map-stage .ux-map-details .chip-btn{flex:none;white-space:nowrap}
  .ux-map-stage .ux-map-details .map-side{max-height:35dvh;overflow:auto}
  .ux-map-stage .leaflet-control-zoom{margin-top:163px!important}
  body[data-view="map"] .ux-rooster-fab{display:none}
}
@media(min-width:800px){
  body[data-view="map"] .ux-map-stage{display:grid;gap:10px}
  body[data-view="map"] .ux-map-stage>.ux-map-overlay-top{grid-row:1}
  body[data-view="map"] .ux-map-stage>.map-layout{grid-row:2}
  body[data-view="map"] .ux-map-stage>.ux-map-controls{grid-row:3}
}

/* Google Maps mode: crisp native vector map with accessible Rooster overlays. */
.rooster-google-pin{
  display:grid;place-items:center;min-width:31px;height:31px;padding:0 4px;
  color:white;background:#107a83;border:2px solid #fff;border-radius:999px;
  box-shadow:0 2px 9px #0b253650;font:800 14px/1 system-ui,sans-serif;cursor:pointer;
}
.rooster-google-hotel{background:#c84c40}
.rooster-google-activity{background:#bf8320}
.rooster-google-saved{background:#0c6970}
.rooster-google-member{background:#2168a4}
.rooster-google-device{background:#1b7ccc}
.rooster-google-search{background:#6844a0}
.rooster-google-nearby{min-width:15px;width:15px;height:15px;background:#7c908c;border-width:2px}
.rooster-google-popup{font:400 13px/1.4 system-ui,sans-serif;max-width:260px;color:#152e38}
.rooster-google-popup strong{font-size:14px}
.rooster-google-popup p{margin:5px 0;color:#536b74}
.rooster-google-popup-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.rooster-google-popup-actions a,.rooster-google-popup-actions button{background:#e8f4f4;border:1px solid #b5d8d8;
  border-radius:9px;color:#005c66;padding:6px 9px;font:700 12px/1.3 system-ui,sans-serif;text-decoration:none;cursor:pointer}
body.google-map-mode[data-view="map"] .ux-map-stage .ux-map-hotel{
  background:#f5f9f9;padding:9px 8px;border-radius:12px;margin:4px 0 7px}
body.google-map-mode[data-view="map"] .ux-map-stage .ux-map-details{background:#fff}
body.google-map-mode[data-view="map"] .ux-map-stage .ux-map-find-wrap{box-shadow:0 4px 16px #112a3b1e}
body.google-map-mode[data-view="map"] .ux-map-stage .ux-map-quick>button{box-shadow:0 2px 8px #112a3b1a}

/* Featured concierge: a permanent middle slot, with Fishing as the pilot guide. */
.ux-app-shell .tabs .tab-featured{
  position:relative;overflow:visible;transform:translateY(-8px);padding:0 2px 3px;
  min-height:58px;gap:1px;color:var(--brand);background:transparent
}
.ux-app-shell .tabs .tab-featured .tab-icon{
  width:52px;height:52px;display:grid;place-items:center;border-radius:50%;
  border:3px solid var(--bg);background:linear-gradient(135deg,#096575,#0b344b);
  color:#fff;box-shadow:0 4px 15px #073e5254
}
.ux-app-shell .tabs .tab-featured .tab-icon svg{width:29px;height:29px;stroke-width:2}
.ux-app-shell .tabs .tab-featured .tab-featured-label{font-size:11px;font-weight:850}
.ux-app-shell .tabs .tab-featured[aria-current="true"]{background:transparent;color:var(--brand)}
.ux-app-shell .tabs .tab-featured[aria-current="true"] .tab-icon{
  background:linear-gradient(135deg,#098e92,#075b72);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 35%,transparent),0 6px 18px #073e5260
}
.ux-app-shell .tabs button:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
@media(max-width:360px){.ux-app-shell .tabs{padding-left:6px;padding-right:6px;gap:0}}

/* The Fishing tab is a functional home for sourced research, scheduled outings and the existing catch board. */
.ux-fishing{padding-bottom:12px}
.ux-fishing-hero{
  position:relative;isolation:isolate;overflow:hidden;padding:27px 22px 22px;border-radius:24px;
  background:linear-gradient(125deg,#052d42 0%,#0a6371 72%,#178b88 100%);
  color:#f8ffff;box-shadow:0 10px 24px #0a384130
}
.ux-fishing-hero::after{
  content:"";position:absolute;z-index:-1;right:-80px;top:-130px;width:290px;height:290px;
  border:1px solid #b9eee44a;border-radius:50%;box-shadow:0 0 0 45px #b9eee413,0 0 0 91px #b9eee40c
}
.ux-fishing-hero .ux-eyebrow{color:#a4e2e1;font-size:11px;letter-spacing:.14em;font-weight:850}
.ux-fishing-hero .ux-fishing-motif{
  position:absolute;right:21px;top:20px;display:grid;place-items:center;width:52px;height:52px;
  border-radius:50%;border:1px solid #ffffff4a;background:#ffffff15;color:#d7faf4
}
.ux-fishing-motif .ux-icon svg{width:31px;height:31px}
.ux-fishing-hero h1{margin:18px 0 9px;font-size:45px;line-height:1;color:#fff;letter-spacing:-.04em}
.ux-fishing-hero p{max-width:320px;margin:0;font-size:14px;line-height:1.55;color:#e1f4f4}
.ux-fishing-ask{
  width:100%;min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:10px;
  border:1px solid #ffffff60;border-radius:14px;background:#f9ffff;color:#074c5a;
  padding:12px 15px;font-weight:800;font-size:14px;line-height:1.35;font-family:inherit;text-align:left
}
.ux-fishing-ask .ux-icon{flex:none}.ux-fishing-ask .ux-icon svg{width:20px;height:20px}
.ux-fishing-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 26px}
.ux-fishing-action{
  display:flex;flex-direction:column;align-items:flex-start;gap:11px;min-height:122px;
  padding:15px 14px;border-radius:16px;border:1px solid var(--line);
  background:var(--card);color:var(--ink);text-align:left;box-shadow:0 2px 10px #092b3810
}
.ux-fishing-action>.ux-icon:first-child{color:var(--brand)}
.ux-fishing-action>.ux-icon:first-child svg{width:26px;height:26px}
.ux-fishing-action>.ux-icon:last-child{display:none}
.ux-fishing-action strong{display:block;font-size:14px;line-height:1.25;margin-bottom:4px}

.ux-fishing{scroll-padding-top:20px}
.ux-fishing-action{position:relative;min-height:142px;gap:13px;justify-content:flex-start;overflow:hidden}
.ux-fishing-action small{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:12px}
.ux-fishing-action:focus-visible,.ux-fishing-panel-close:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.ux-fishing-action:active{transform:scale(.985)}
.ux-fishing-action-report{border-color:color-mix(in srgb,var(--brand) 34%,var(--line));background:linear-gradient(140deg,color-mix(in srgb,var(--seafoam) 19%,var(--card)),var(--card) 75%)}
.ux-fishing-panel{margin:-5px 0 25px;scroll-margin-top:15px}
.ux-fishing-panel-heading{display:flex;justify-content:space-between;align-items:center;padding:0 4px 12px;gap:15px}
.ux-fishing-panel-heading .ux-eyebrow{color:var(--brand)}
.ux-fishing-panel-close{min-height:38px;padding:5px 11px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--ink);font-weight:750}
.ux-fishing-tackle{padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--card);box-shadow:var(--shadow-soft)}
.ux-fishing-tackle h3{margin:0 0 12px;font-size:20px}
.ux-fishing-tackle p{line-height:1.5}
@media (max-width:360px){.ux-fishing-action{padding:13px 11px;min-height:152px}.ux-fishing-action strong{font-size:13px}}
.ux-fishing-action small{display:block;font-size:11px;line-height:1.35;color:var(--muted)}
.ux-fishing-section{margin:0 0 25px}
.ux-fishing-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.ux-fishing-section h2{margin:0;font-size:21px}
.ux-fishing-outings{display:grid;gap:9px}
.ux-fishing-outing{
  position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:5px;
  width:100%;padding:16px 38px 16px 17px;border-radius:15px;
  border:1px solid var(--line);background:var(--card);color:var(--ink);text-align:left
}
.ux-fishing-outing-date{font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.09em;color:var(--brand)}
.ux-fishing-outing strong{font-size:15px}.ux-fishing-outing small{font-size:12px;color:var(--muted)}
.ux-fishing-outing>.ux-icon{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:var(--brand)}
.ux-fishing-empty{padding:17px;border-radius:15px;border:1px dashed var(--line);background:var(--card)}
.ux-fishing-empty p{margin:7px 0 0}
.ux-fishing .catches{margin-top:0}

.ux-fishing-stale{padding:12px 14px;border:1px solid #d6a252;border-radius:12px;background:#fff4d9;color:#5b390e;font-weight:760;font-size:13px}

.ux-fishing-tile-time{margin-top:auto;color:var(--muted);font-size:11px;font-weight:720;white-space:nowrap}

/* The chosen jig is the Fishing guide mark; preserve its full lure and both assist hooks. */
.ux-app-shell .tabs .tab-featured .tab-icon .ux-jig-mark{
  display:block;width:42px;height:39px;object-fit:contain;filter:drop-shadow(0 1px 2px #001c2b66)
}
.ux-fishing-motif .ux-jig-mark{
  display:block;width:42px;height:39px;object-fit:contain;filter:drop-shadow(0 1px 2px #001c2b66)
}

/* A photo is an unsent composer attachment until the member presses Send. */
.ux-chat-attachments{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 0 10px}
.ux-chat-attachments[hidden]{display:none}
.ux-chat-attached-photo{position:relative;flex:none;width:68px;height:68px;border:1px solid var(--line);border-radius:12px;overflow:visible;background:var(--surface, #fff)}
.ux-chat-attached-photo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:11px}
.ux-chat-attachment-remove{position:absolute;top:-9px;right:-9px;display:grid;place-items:center;width:27px;min-width:27px;height:27px;min-height:27px;padding:0;border:2px solid var(--surface, #fff);border-radius:50%;background:#153240;color:#fff;font-size:20px;line-height:1}
.ux-chat-attachment-remove:focus-visible{outline:3px solid var(--focus);outline-offset:2px}

.ux-chat-reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.ux-chat-reactions button{min-height:28px;padding:3px 8px;border-radius:99px;font-size:13px;line-height:1.2;box-shadow:none}
.ux-chat-reactions button.mine{border-color:var(--teal);background:var(--chip)}
.msg.me .ux-chat-reactions{justify-content:flex-end}
.ux-chat-quoted{display:grid;gap:2px;max-width:100%;margin:1px 0 5px;padding:5px 9px;border:0;border-left:3px solid var(--teal);
  border-radius:5px 10px 10px 5px;background:var(--chip);color:var(--ink);text-align:left;box-shadow:none}
.ux-chat-quoted b{font-size:11px;color:var(--deep)}
.ux-chat-quoted span{max-width:32ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted)}
.msg.me .ux-chat-quoted{margin-left:auto}
.ux-chat-deleted{font-style:italic;opacity:.65}
.ux-chat-reply-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:7px 10px;border-left:3px solid var(--teal);border-radius:8px;background:var(--chip)}
.ux-chat-reply-preview[hidden]{display:none}
.ux-chat-reply-copy{display:grid;gap:1px;min-width:0}
.ux-chat-reply-copy b{font-size:12px;color:var(--deep)}
.ux-chat-reply-copy span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70vw}
.ux-chat-reply-preview>button{flex:none;min-width:32px;min-height:32px;padding:1px 7px;border:0;background:transparent;box-shadow:none;font-size:22px}
.ux-chat-quoted:focus-visible{outline:3px solid var(--focus);outline-offset:2px}

/* CHAT 2.0 — conversation-first treatment. Interactive cards keep their existing permissions/flows. */
body[data-view="chat"] .ux-app-shell main{padding-left:13px;padding-right:13px}
body[data-view="chat"] .ux-app-shell .thread{gap:12px;padding:9px 2px 18px}
body[data-view="chat"] .ux-app-shell .msg{
  width:100%;max-width:97%;grid-template-columns:29px minmax(0,1fr);gap:7px;align-items:start
}
body[data-view="chat"] .ux-app-shell .msg.me{
  max-width:93%;grid-template-columns:minmax(0,1fr);align-self:flex-end
}
body[data-view="chat"] .ux-app-shell .msg .msg-body{position:relative;min-width:0}
body[data-view="chat"] .ux-app-shell .msg .who{
  justify-content:flex-start;gap:5px;margin:0 3px 4px;
  color:var(--muted);font-size:11px;font-weight:590;line-height:1.35
}
body[data-view="chat"] .ux-app-shell .msg.me .who{justify-content:flex-end}
body[data-view="chat"] .ux-app-shell .msg .msg-avatar{
  width:29px;height:29px;margin-top:16px;border-color:color-mix(in srgb,var(--teal) 25%,var(--line));
  background:var(--card)
}
body[data-view="chat"] .ux-app-shell .msg.rooster .msg-avatar{
  border-color:color-mix(in srgb,var(--teal) 34%,var(--line));background:var(--card);padding:2px
}
body[data-view="chat"] .ux-app-shell .msg .bubble{
  padding:11px 13px;border:1px solid var(--line);border-radius:19px 19px 19px 7px;
  background:var(--card);color:var(--ink);box-shadow:0 3px 16px rgba(15,48,57,.04);
  font-size:15px;line-height:1.49;overflow-wrap:anywhere;white-space:pre-wrap;
  -webkit-user-select:none;user-select:none;touch-action:pan-y
}
body[data-view="chat"] .ux-app-shell .msg.rooster .bubble{
  border-color:color-mix(in srgb,var(--teal) 13%,var(--line));
  background:var(--card);color:var(--ink)
}
body[data-view="chat"] .ux-app-shell .msg.me .bubble{
  margin-left:auto;border-color:color-mix(in srgb,var(--brand) 90%,transparent);
  border-radius:19px 19px 7px 19px;background:var(--brand);color:var(--brand-ink);
  box-shadow:0 4px 15px color-mix(in srgb,var(--brand) 12%,transparent)
}
body[data-view="chat"] .ux-app-shell .msg.grouped{margin-top:-7px}
body[data-view="chat"] .ux-app-shell .msg.grouped .who{height:0;margin:0;overflow:visible}
body[data-view="chat"] .ux-app-shell .msg.grouped .who>span{display:none}
body[data-view="chat"] .ux-app-shell .msg.grouped .msg-avatar{visibility:hidden;margin-top:0}
body[data-view="chat"] .ux-app-shell .msg .card{width:100%;max-width:100%;margin-top:7px;border-radius:17px}
body[data-view="chat"] .ux-app-shell .msg .card.action.done{
  padding:10px 12px;border-color:color-mix(in srgb,var(--seafoam) 31%,var(--line));
  background:color-mix(in srgb,var(--seafoam) 5%,var(--card));box-shadow:var(--shadow-soft)
}
body[data-view="chat"] .ux-app-shell .msg .card.action.done .tag{color:var(--in)}
.ux-chat-expand{
  display:block;min-height:30px;margin-top:8px;padding:4px 0;border:0;border-radius:0;
  background:transparent!important;color:var(--deep)!important;box-shadow:none!important;
  font-size:12px;font-weight:760;text-align:left
}
.ux-chat-bubble-text{white-space:pre-wrap}
.ux-chat-context-trigger{
  position:absolute;top:-5px;right:0;z-index:3;display:grid;place-items:center;
  width:34px;min-width:34px;height:30px;min-height:30px;padding:0;border:1px solid var(--line);
  border-radius:10px;background:var(--card-raised);color:var(--muted);
  box-shadow:var(--shadow-soft);font-size:20px;line-height:1;opacity:0;pointer-events:none;
  transition:opacity .12s ease
}
.msg.me .ux-chat-context-trigger{right:0}
@media(hover:hover){
  .msg:hover .ux-chat-context-trigger,.msg:focus-within .ux-chat-context-trigger{
    opacity:1;pointer-events:auto
  }
}
.ux-chat-context-trigger:focus-visible{opacity:1;pointer-events:auto;outline:3px solid var(--focus)}
/* Thumbnails are deliberately small: the authorization-checked viewer retains the full image. */
.ux-chat-photo-grid{display:grid;grid-template-columns:repeat(2,max-content);gap:6px;max-width:100%;margin:5px 0}
.ux-chat-photo-grid .ux-chat-photo{
  width:104px;height:112px;max-width:100%;margin:0;overflow:hidden;border-radius:13px;
  border-color:var(--line);background:var(--chip);box-shadow:var(--shadow-soft)
}
.ux-chat-photo-grid .ux-chat-photo img{
  width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:top
}
.ux-chat-photo-grid .ux-chat-photo:only-child{width:136px;height:138px}
.msg.me .ux-chat-photo-grid{justify-content:end}
.ux-chat-context-overlay{position:fixed;inset:0;z-index:110;isolation:isolate}
.ux-chat-context-shade{
  position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;
  border:0;border-radius:0;background:rgba(5,21,30,.43);
  backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
  box-shadow:none;cursor:default
}
.ux-chat-context-panel{
  position:absolute;z-index:1;width:min(348px,calc(100vw - 24px));
  max-height:calc(100dvh - 24px);overflow-y:auto;padding:10px;
  border:1px solid color-mix(in srgb,var(--teal) 16%,var(--line));border-radius:22px;
  background:var(--card-raised);color:var(--ink);box-shadow:0 22px 70px rgba(0,15,23,.32);
  animation:chat-context-pop .15s ease-out
}
.ux-chat-context-emoji{display:flex;align-items:center;justify-content:space-between;gap:2px}
.ux-chat-context-emoji button,.ux-chat-context-extras button{
  display:grid;place-items:center;flex:1;min-width:0;height:45px;min-height:45px;
  padding:2px;border:0;border-radius:14px;background:transparent;
  box-shadow:none;font-size:25px
}
.ux-chat-context-emoji button:last-child{font-size:27px;color:var(--muted)}
.ux-chat-context-emoji button:active,.ux-chat-context-extras button:active{
  transform:scale(.93);background:var(--chip)
}
.ux-chat-context-extras{display:flex;gap:5px;border-bottom:1px solid var(--line);padding:3px 0}
.ux-chat-context-extras[hidden]{display:none}
.ux-chat-context-quote{
  margin:7px 0;padding:9px 12px;border-radius:13px;
  background:color-mix(in srgb,var(--teal) 5%,var(--card));border:1px solid var(--line)
}
.ux-chat-context-author{font-size:11px;font-weight:780;color:var(--deep)}
.ux-chat-context-quote p{
  display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4;
  margin:3px 0 0;font-size:14px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere
}
.ux-chat-context-actions{display:grid;gap:2px}
.ux-chat-context-actions button{
  min-height:45px;padding:10px 12px;border:0;border-radius:12px;background:transparent;
  color:var(--ink);font-size:15px;font-weight:680;text-align:left;box-shadow:none
}
.ux-chat-context-actions button:hover,.ux-chat-context-actions button:focus-visible{
  background:var(--chip)
}
.ux-chat-context-actions .danger{color:var(--danger)}
.ux-chat-context-panel button:focus-visible{outline:3px solid var(--focus);outline-offset:1px}
@keyframes chat-context-pop{
  from{opacity:0;transform:translateY(7px) scale(.97)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@media(prefers-reduced-motion:reduce){
  .ux-chat-context-panel{animation:none}
  .ux-chat-context-trigger{transition:none}
}


/* My Tackle Locker — status on the Fishing grid, full inventory behind the tap. */
.ux-fishing-action small{overflow-wrap:anywhere}
.ux-gear-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ux-gear-heading h3{margin:0}
.ux-gear-saved{flex:none;padding:5px 9px;border-radius:999px;background:var(--chip);color:var(--brand);font-size:11px;font-weight:800}
.ux-gear-status{margin:12px 0 17px;color:var(--muted);font-size:13px;line-height:1.5}
.ux-gear-group{padding:13px 0;border-top:1px solid var(--line)}
.ux-gear-group h4,.ux-gear-advice h4{margin:0 0 8px;color:var(--ink);font-size:14px;letter-spacing:-.01em}
.ux-gear-content{margin:0;color:var(--ink);font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.ux-gear-advice{margin:9px 0 17px;padding:14px;border:1px solid var(--line);border-radius:15px;background:var(--chip)}
.ux-gear-advice p{margin:6px 0;font-size:12px;color:var(--ink);line-height:1.55}
.ux-gear-original{margin:6px 0 18px;padding:12px;border:1px solid var(--line);border-radius:12px}
.ux-gear-original summary{cursor:pointer;color:var(--brand);font-size:12px;font-weight:750}
.ux-gear-original p{margin:9px 0 0}
.ux-gear-editor-form{display:grid;gap:9px;min-width:0}
.ux-gear-editor-help{margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
.ux-gear-editor-form textarea{display:block;width:100%;min-height:35dvh;max-height:52dvh;resize:vertical;padding:14px;
  border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);
  font:14px/1.5 "DM Sans",system-ui,sans-serif;overflow:auto;white-space:pre-wrap}
.ux-gear-editor-form textarea:focus{outline:2px solid var(--focus);outline-offset:2px}
.ux-gear-counter{justify-self:end;color:var(--muted);font-size:11px}
.sheet:has(.ux-gear-editor){width:min(94vw,720px);max-height:90dvh;overflow:auto}

/* WO-045: persists on every trip screen until the member answers the trip RSVP. */
.trip-rsvp-banner[hidden]{display:none!important}
.trip-rsvp-banner{position:sticky;top:72px;z-index:39;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  margin:0;padding:10px 16px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--seafoam) 28%,var(--card));box-shadow:0 4px 12px #09262b13}
.trip-rsvp-copy{display:flex;flex-direction:column;gap:2px;flex:1 1 180px;min-width:0}
.trip-rsvp-copy b{color:var(--ink);font-size:14px;line-height:1.25}
.trip-rsvp-copy span{color:var(--muted);font-size:12px;line-height:1.25}
.trip-rsvp-actions{display:flex;flex:1 1 180px;gap:8px}
.trip-rsvp-actions button{flex:1;min-height:42px;white-space:nowrap}

/* WO-046: 44px chat navigation, three clear choices and nothing covering the transcript. */
.ux-chat-conversation-bar{display:grid;gap:3px;margin:0 0 5px}
.ux-chat-segments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:3px;min-height:44px;border:1px solid var(--line);border-radius:13px;background:var(--chip)}
.ux-chat-segments button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:38px;padding:5px 8px;border:0;border-radius:10px;background:transparent;box-shadow:none;color:var(--ink);font:750 13px/1.1 "DM Sans",system-ui,sans-serif}
.ux-chat-segments button.selected{background:var(--card-raised);color:var(--brand);box-shadow:0 1px 3px #00000012}
.ux-chat-segments button:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.ux-dms-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:var(--brand);color:#fff;font-size:10px}
.ux-dms-badge[hidden]{display:none}
.ux-chat-dm-label{display:flex;justify-content:center;align-items:center;gap:10px;min-height:19px;margin:0;color:var(--muted);font-size:11px}
.ux-chat-dm-change{min-height:23px;padding:2px 6px;border:0;background:transparent;color:var(--brand);font-size:11px;font-weight:750}
.ux-dm-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ux-dm-heading h2{font-size:21px;margin:0}
.ux-dm-people{display:grid;gap:3px;margin-top:12px}
.ux-dm-person{display:flex;align-items:center;gap:10px;min-height:58px;width:100%;padding:7px 10px;border:0;border-bottom:1px solid var(--line);border-radius:5px;background:transparent;color:var(--ink);text-align:left;box-shadow:none}
.ux-dm-person-name{flex:1;font-weight:750}
.ux-dm-unread{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:14px;background:var(--brand);color:#fff;font-size:12px;font-weight:750}
.ux-dm-person .small{font-size:11px}
@media(max-width:360px){.ux-chat-segments button{font-size:12px;padding:5px 4px}}

/* C8: rich place recommendations in chat */
.place-options{display:grid;gap:10px}
.place-option{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.place-option-photo{width:100%;height:150px;object-fit:cover;border-radius:10px;background:var(--chip)}
.place-option-body{display:grid;gap:4px;min-width:0}
.place-option-title{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.place-option-title .chip{padding:2px 8px;border-radius:999px;background:color-mix(in srgb,var(--teal) 18%,transparent);color:var(--teal);font-size:11px;font-weight:700}
.place-option-why{font-style:italic}
.place-option-details{display:grid;gap:8px;margin-top:6px}
.place-photo-strip{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}
.place-photo{flex:0 0 78%;max-width:320px;height:180px;object-fit:cover;border-radius:10px;scroll-snap-align:start;background:var(--chip)}
.tiny{font-size:11px}
@media (min-width:700px){.place-option{grid-template-columns:180px 1fr}.place-option-photo{height:100%;min-height:130px}}
.place-option-details a.button{display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;color:var(--teal);text-decoration:none;font-weight:700}
.ux-plan-event-time .ux-plan-event-end{font-size:10px;color:var(--muted);white-space:nowrap}
.ux-plan-event{grid-template-columns:58px 41px minmax(0,1fr) 19px}
/* Confirmations opened from the event details panel must sit above it (that panel is z-index 70). */
.sheet-backdrop:not(.ux-plan-backdrop){z-index:90}
.ux-plan-clash{display:block;margin-top:2px;color:var(--amber,#c98a17);font-weight:700}
.ux-quick-grid>.ux-quick:only-child{grid-column:1/-1;min-height:84px}

/* Unread: red dot on Group / Roostr, red count on DMs, red dot on the bottom Chat tab */
.ux-dms-badge{background:#e5484d}
.ux-unread-dot{display:inline-block;width:9px;height:9px;margin-left:6px;border-radius:50%;background:#e5484d;vertical-align:middle;box-shadow:0 0 0 2px var(--card)}
.ux-unread-dot[hidden],.ux-nav-dot[hidden]{display:none}
[data-tab="chat"]{position:relative}
.ux-nav-dot{position:absolute;top:8px;right:calc(50% - 20px);width:10px;height:10px;border-radius:50%;background:#e5484d;box-shadow:0 0 0 2px var(--bg,#08192a)}

/* Blitz 2: Roostr's call on the Fishing page */
.ux-call{display:grid;gap:8px;margin:12px 0;padding:16px;border:1px solid color-mix(in srgb,var(--teal,#38b2ac) 45%,var(--line));border-radius:18px}
.ux-call-top{display:flex;justify-content:space-between;align-items:center}
.ux-call-head{margin:0;font-size:17px;font-weight:800;line-height:1.3}
.ux-call-line{margin:0;font-size:14px;line-height:1.4}
.ux-call-loading{margin:0;color:var(--muted)}
.ux-call-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.ux-call-chip{min-height:36px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--chip,transparent);color:var(--ink);font-weight:700;font-size:13px}
.ux-call-sessions{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.ux-call-sessions::-webkit-scrollbar{display:none}
.ux-call-session{flex:0 0 auto;min-height:34px;padding:5px 11px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);font-weight:700;font-size:13px}
.ux-call-session.on{background:var(--teal,#38b2ac);border-color:transparent;color:#05202b}
.ux-chat-outbox .bubble{opacity:.75}
.ux-typing-dots{display:inline-flex;gap:5px;align-items:center;padding:12px 14px}
.ux-typing-dots i{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.35;animation:uxTyping 1.2s infinite ease-in-out}
.ux-typing-dots i:nth-child(2){animation-delay:.15s}.ux-typing-dots i:nth-child(3){animation-delay:.3s}
@keyframes uxTyping{0%,60%,100%{opacity:.25;transform:translateY(0)}30%{opacity:.9;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.ux-typing-dots i{animation:none;opacity:.6}}
.ux-offline{position:relative;z-index:5;padding:6px 14px;background:#5a3d0a;color:#ffe7b0;font-size:13px;font-weight:600;text-align:center}
.ux-ready{display:grid;gap:8px;margin-top:14px}
.ux-ready-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.ux-ready-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ux-ready-list li{display:grid;grid-template-columns:24px 1fr;gap:4px 8px;align-items:start}
.ux-ready-icon{font-size:16px;line-height:1.4}
.ux-ready-text{font-size:14px;line-height:1.35}
.ux-ready-actions{grid-column:2;display:flex;flex-wrap:wrap;gap:6px}
.ux-ready-actions button{min-height:32px;padding:4px 10px}
.ux-ready-hide{background:transparent;border-color:transparent;color:var(--muted,#6b7c85);text-decoration:underline}
.ux-ready.ok .ux-ready-ok{margin:0;font-weight:600}
.ux-model-test{max-width:640px}
.ux-mt-body{display:grid;gap:12px}
.ux-mt-q{display:grid;gap:10px}
.ux-mt-question{font-weight:700;margin:0}
.ux-mt-answer{border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:grid;gap:6px}
.ux-mt-answer.win{border-color:var(--teal,#38b2ac);border-width:2px}
.ux-mt-head{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline}
.ux-mt-text{white-space:pre-wrap;font-size:14px;line-height:1.4;max-height:320px;overflow:auto}
.ux-mt-sum{width:100%;border-collapse:collapse;font-size:13px}
.ux-mt-sum th,.ux-mt-sum td{text-align:left;padding:6px 4px;border-bottom:1px solid var(--line)}
/* v2: trips without fishing show four tabs */
body.no-fishing .ux-app-shell .tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
body.no-fishing .ux-app-shell .tabs .tab-featured{display:none}
/* Voice + translator */
.ux-chat-mic{flex:0 0 auto;width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:transparent;font-size:18px}
.ux-chat-mic.on{background:var(--ember,#e8604c);color:#fff;border-color:transparent;animation:uxPulse 1.2s infinite}
.ux-chat-speak{border:0;background:transparent;font-size:14px;padding:0 6px;opacity:.75}
.ux-talk-toggle{margin-top:6px;width:100%;min-height:38px;border-radius:999px;border:1px dashed var(--line);background:transparent;font-weight:700}
.ux-talk-toggle.on{border-style:solid;background:var(--ember,#e8604c);color:#fff}
@keyframes uxPulse{0%,100%{box-shadow:0 0 0 0 rgba(232,96,76,.5)}50%{box-shadow:0 0 0 8px rgba(232,96,76,0)}}
@media (prefers-reduced-motion:reduce){.ux-chat-mic.on{animation:none}}
.ux-translator{max-width:560px}
.ux-tr-mics{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ux-tr-mic{min-height:64px;font-size:15px;line-height:1.2}
.ux-tr-mic.on{background:var(--ember,#e8604c);animation:uxPulse 1.2s infinite}
.ux-tr-form{display:grid;gap:8px;margin-top:10px}
.ux-tr-form textarea{width:100%;font-size:16px}
.ux-tr-status{min-height:1.2em;margin:8px 0}
.ux-tr-log{display:grid;gap:10px}
.ux-tr-entry{border:1px solid var(--line);border-radius:14px;padding:10px 12px;display:grid;gap:6px}
.ux-tr-entry.them{border-color:var(--teal,#38b2ac)}
.ux-tr-out{font-size:20px;font-weight:700;line-height:1.3}
.ux-tr-say{color:var(--muted,#5b6b73);font-style:italic}
.ux-tr-lines{width:100%;border-collapse:collapse}
.ux-tr-lines td{padding:6px 4px;border-bottom:1px solid var(--line);vertical-align:top}
.ux-tr-lines td:last-child{text-align:right;white-space:nowrap}
.ux-tr-big{position:fixed;inset:0;z-index:100;background:#fff;color:#071c27;display:grid;place-content:center;gap:16px;padding:24px;text-align:center}
.ux-tr-big p{font-size:clamp(30px,9vw,54px);font-weight:800;line-height:1.2;margin:0}
.ux-tr-convo-row{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.ux-tr-convo{flex:1;min-height:52px;font-size:16px}
.ux-tr-convo.on{background:var(--ember,#e8604c)}
.ux-tr-turn{font-size:18px;font-weight:800;text-align:center;border-radius:12px;padding:0}
.ux-tr-turn.me:not(:empty){padding:10px;background:color-mix(in srgb,var(--teal,#38b2ac) 15%,transparent)}
.ux-tr-turn.them:not(:empty){padding:10px;background:color-mix(in srgb,var(--ember,#e8604c) 15%,transparent)}
/* Trip countdown: one quiet line, digits that don't jiggle as they tick. */
/* Same size as the "Your trips" header. */
.ux-welcome p.ux-countdown,.ux-countdown{margin:10px 0 0;font:800 18px/1.15 "DM Sans",system-ui,sans-serif;letter-spacing:-.01em;color:var(--brand);font-variant-numeric:tabular-nums}
.ux-countdown .ux-countdown-what{font-size:13px;font-weight:600;color:var(--muted);letter-spacing:0}
.ux-countdown-list{margin:0 0 2px 2px}
/* Flights: one plan line, expands in place to every leg. */
.ux-plan-inline{display:flex;flex-direction:column;gap:0;width:100%;min-width:0;max-width:100%}
.ux-plan-inline.open>.ux-plan-event{border-bottom-left-radius:0;border-bottom-right-radius:0}
.ux-plan-inline>.ux-plan-event .ux-plan-event-chevron{transition:transform .15s}
.ux-plan-inline.open>.ux-plan-event .ux-plan-event-chevron{transform:rotate(90deg)}
.ux-plan-inline-details{display:flex;flex-direction:column;gap:9px;padding:11px 12px;
  border:1px solid var(--line);border-top:0;border-radius:0 0 16px 16px;background:var(--card);
  width:100%;min-width:0;max-width:100%;overflow-wrap:anywhere}
.ux-plan-inline-details>p{margin:0;line-height:1.45}
.ux-plan-inline-details .ux-plan-venue{display:flex;flex-direction:column;gap:7px;min-width:0}
.ux-plan-inline-details .ux-plan-venue>h4{margin:0;font-size:14px}
.ux-plan-inline-details .ux-plan-venue>p{margin:0}
.ux-plan-venue .ux-plan-venue-gallery{width:100%;min-width:0;max-width:100%;box-sizing:border-box;
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain}
.ux-plan-venue-gallery .place-photo{flex:0 0 78%;max-width:320px;height:180px}
.ux-plan-inline-details .ux-getting{margin:0}
/* Venue preview: the same bounded photo strip as More details, above the factual lines.
   Phone, weekly opening hours and pasted notes are in More details. */
.ux-plan-inline-details .ux-plan-venue-compact{width:100%;min-width:0;max-width:100%;gap:7px}
.ux-plan-venue-brief{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;min-width:0;max-width:100%}
.ux-plan-venue-facts{display:flex;flex-direction:column;gap:3px;width:100%;min-width:0;max-width:100%}
.ux-plan-venue-facts p{margin:0!important;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.ux-plan-venue-credit{margin:0;font-size:9px;line-height:1.2;overflow-wrap:anywhere}
.ux-plan-venue-actions{display:flex;flex-wrap:wrap;gap:6px 14px}
.ux-plan-venue-actions a{font-size:11px;white-space:normal}
.ux-plan-inline-details .ux-plan-more{min-height:32px;padding:6px 10px;font-size:11px}
.ux-plan-inline-details .ux-getting-links a{overflow-wrap:anywhere}
.ux-plan-inline-rsvp{display:grid;gap:7px}
.ux-plan-inline-rsvp .seg{display:flex;gap:6px}
.ux-plan-inline-rsvp .seg button{flex:1;min-width:0;font-size:12px;padding:9px 4px}
.ux-plan-more{align-self:flex-start;font-weight:700}
.ux-flight{display:flex;flex-direction:column;gap:0;width:100%;min-width:0;max-width:100%}
.ux-flight.open .ux-flight-row{border-bottom-left-radius:0;border-bottom-right-radius:0}
.ux-flight-chevron{transition:transform .15s}
.ux-flight.open .ux-flight-chevron{transform:rotate(90deg)}
.ux-flight-details{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--line);border-top:0;border-radius:0 0 16px 16px;background:var(--card)}
.ux-flight-leg{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:12px;background:color-mix(in srgb,var(--brand) 6%,transparent)}
.ux-flight-leg-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.ux-flight-ends{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}
.ux-flight-ends>div{display:flex;flex-direction:column;gap:1px}
.ux-flight-ends strong{font:800 22px/1 "DM Sans",system-ui,sans-serif;letter-spacing:-.02em}
.ux-flight-end-to{text-align:right;align-items:flex-end}
.ux-flight-time{font-weight:800;font-variant-numeric:tabular-nums}
.ux-flight-arrow{color:var(--brand);font-size:18px}
.ux-flight-facts{display:flex;flex-wrap:wrap;gap:6px 14px}
.ux-flight-facts:empty{display:none}
.ux-flight-kv{display:flex;flex-direction:column}
.ux-flight-kv small{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.ux-flight-layover{display:flex;justify-content:space-between;gap:8px;padding:6px 10px;border-left:3px dashed var(--line);margin-left:14px;font-size:13px;color:var(--muted)}
.ux-flight-layover.tight{color:#b45309;border-left-color:#f59e0b}
.ux-flight-layover.tight small{font-weight:800}
/* Plan item: "Getting there" details. */
.ux-getting{display:flex;flex-direction:column;gap:8px;margin:10px 0;padding:12px;border-radius:14px;background:color-mix(in srgb,var(--brand) 6%,transparent)}
.ux-getting h4{margin:0;font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.ux-getting-row{display:grid;grid-template-columns:96px 1fr;gap:8px;align-items:baseline}
.ux-getting-row>small{color:var(--muted);font-size:12px}
.ux-getting-links{display:flex;gap:14px;margin-top:2px}
.ux-getting-links a{font-weight:700}
.ux-getting-ref{font-variant-numeric:tabular-nums;letter-spacing:.04em}
.ux-getting-notes{white-space:pre-line;overflow-wrap:anywhere;word-break:break-word}
.ux-reclaim{margin-top:12px;display:flex;flex-direction:column;gap:10px;color:var(--ink)}
.ux-reclaim p{margin:0}
/* "Roostr has an update" note (the saved app opened instantly; a newer one arrived in the background). */
.ux-update{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:80;display:flex;gap:12px;align-items:center;
  padding:10px 12px 10px 16px;border-radius:14px;background:#102d3e;color:#f1f7f5;box-shadow:0 14px 30px -14px rgba(0,0,0,.6);font-size:14px}
.ux-update button{padding:7px 12px;border:0;border-radius:10px;background:#4fc1b1;color:#04221d;font-weight:700}
.ux-update .ux-update-close{padding:4px 8px;background:transparent;color:inherit;font-size:18px;line-height:1;font-weight:400}
/* Bills: settle-up first (what people act on), then the list. */
.ux-bills-settle{padding:15px;border-radius:16px;background:var(--card);box-shadow:var(--shadow-soft);margin-bottom:10px}
.ux-bills-total{margin:0 0 4px;color:var(--muted);font-size:13px}
.ux-bills-me{margin:0 0 10px;font:800 17px/1.25 "DM Sans",system-ui,sans-serif;color:var(--ink)}
.ux-bills-me.owes{color:#b4462f}.ux-bills-me.owed{color:var(--teal)}
.ux-bills-pay{margin:0;padding:0;list-style:none;display:grid;gap:6px}
.ux-bills-pay li{display:flex;gap:4px;align-items:baseline;flex-wrap:wrap;padding:8px 10px;border-radius:10px;background:var(--chip);font-size:14px}
.ux-bills-pay li.mine{outline:2px solid var(--brand)}
.ux-bills-pay .amt,.ux-bills-row .amt{margin-left:auto;font-weight:800;font-variant-numeric:tabular-nums}
.ux-bills details>summary{cursor:pointer;padding:8px 0;color:var(--brand);font-weight:700}
.ux-bills-list{margin:0;padding:0;list-style:none}
.ux-bills-list li{padding:10px 0;border-top:1px solid var(--line)}
.ux-bills-row{display:flex;gap:8px;align-items:baseline}
.ux-bills-list p{margin:3px 0 0}
.ux-bills-form{display:grid;gap:6px}
.ux-bills-form label,.ux-bills-label{font-weight:700;font-size:13px;margin:6px 0 0}
.ux-bills-amount{display:flex;gap:8px}.ux-bills-amount input{flex:1;min-width:0}.ux-bills-amount select{flex:none;width:auto}
.ux-bills-whos{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.ux-bills-form label.ux-bills-who{display:flex;align-items:center;gap:8px;font-weight:600;margin:0;padding:8px 10px;border-radius:10px;background:var(--chip)}
.ux-bills-form label.ux-bills-who input{flex:none;width:20px;height:20px;min-width:0;margin:0;padding:0;accent-color:var(--brand)}
.ux-bills-plan{display:flex;gap:6px;margin:6px 0 4px}
.ux-bills-plan button{flex:1;padding:8px 6px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--ink);font-weight:700;font-size:13px}
.ux-bills-plan button.on{background:var(--brand);border-color:var(--brand);color:#fff}
.ux-bills-pay li.out .amt{color:#b4462f}.ux-bills-pay li.in .amt{color:var(--teal)}
.ux-bills-how{margin:4px 0 8px;padding:0;list-style:none;font-size:13px}
.ux-bills-how li{display:flex;gap:8px;justify-content:space-between;padding:5px 0;border-top:1px solid var(--line)}
.ux-bills-how .amt{white-space:nowrap;font-variant-numeric:tabular-nums}
.ux-bills-person{padding:10px 0;border-top:1px solid var(--line)}
.ux-bills-who-name{margin:0 0 4px;font-weight:800}
.ux-bills-settle details>summary{padding:8px 0}
.ux-bills-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.ux-bills-actions button{flex:1 1 auto;min-width:120px}
.ux-bills-pay li .ux-bills-mark{margin-left:8px;padding:4px 10px;font-size:12px;border-radius:999px;background:transparent;border:1px solid var(--line);color:var(--brand);font-weight:700}
.ux-bills-thumb{flex:none;width:40px;height:40px;border-radius:8px;overflow:hidden;background:var(--chip)}
.ux-bills-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ux-bills-scan{display:flex;gap:10px;align-items:flex-start;padding:10px;border-radius:12px;background:var(--chip)}
.ux-bills-scan img{flex:none;width:72px;max-height:110px;object-fit:cover;border-radius:8px}
.ux-bills-scan p{margin:0}
.ux-bills-report h2{margin:0}
.ux-bills-report h3{margin:22px 0 8px;font-size:16px}
.ux-bills-report-head{display:grid;gap:4px}
.ux-bills-print{justify-self:start;margin-top:6px}
.ux-bills-table{width:100%;border-collapse:collapse;font-size:13px;margin:4px 0 8px}
.ux-bills-table th,.ux-bills-table td{padding:6px 4px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.ux-bills-table td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.ux-bills-table thead th{font-size:12px;color:var(--muted);font-weight:700}
.ux-bills-report-bill{display:flex;gap:12px;padding:10px 0;border-top:1px solid var(--line);break-inside:avoid}
.ux-bills-report-bill img,.ux-bills-noreceipt{flex:none;width:96px;max-height:160px;object-fit:contain;border-radius:8px;background:var(--chip)}
.ux-bills-noreceipt{display:grid;place-items:center;height:64px;font-size:12px;color:var(--muted)}
.ux-bills-report-bill p{margin:0 0 3px}
@media print{
  header,nav,.ux-tabbar,.ux-bills-actions,.ux-bills-print,.ux-page-heading button,.ux-update,#toast,.ux-fab{display:none!important}
  body{background:#fff}.ux-bills-report{color:#000}
}
.ux-bills-pay li.has-why{display:block}
.ux-bills-line{display:flex;gap:4px;align-items:baseline}
.ux-bills-why{margin-top:4px}
.ux-bills .ux-bills-why>summary{font-size:12px;color:var(--muted);font-weight:600;padding:2px 0!important;list-style:none;cursor:pointer}
.ux-bills-why>summary::-webkit-details-marker{display:none}
.ux-bills-why>summary::after{content:' ▾'}
.ux-bills-why[open]>summary::after{content:' ▴'}
.ux-bills-how li.minus .amt{color:var(--muted)}
.ux-bills-how li.net{font-weight:800}
.ux-bills-balwhy{margin:4px 0 0}
.ux-bills-plan button:disabled{opacity:.45}

/* Account recovery remains deliberately secondary to the trip, but impossible to miss before phone replacement. */
.ux-google-control{display:grid;justify-items:start;gap:10px;min-width:0}
.ux-google-control p{margin:0}
.ux-google-button{min-height:42px;max-width:100%;overflow:visible}
.ux-google-nudge{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;
  border:1px solid var(--line);border-radius:15px;background:var(--card);color:var(--ink)}
.ux-google-nudge p{margin:4px 0 0;color:var(--muted)}
.ux-google-nudge button{flex:none}
@media(max-width:480px){.ux-google-nudge{align-items:flex-start;flex-direction:column}}

.lp-back-boxes>.ux-google-control{padding:24px;border:1px solid var(--line);
  border-radius:22px;background:var(--card);box-shadow:var(--shadow-soft)}

/* A Plan card stays a read-only detail surface; conversation is the entry point for edits. */
.ux-plan-chat-entry{display:grid;gap:7px;margin:14px 0;padding-top:12px;border-top:1px solid var(--line)}
.ux-plan-chat-entry .ux-plan-ask{width:100%;min-height:44px}
.ux-plan-chat-entry p{margin:0}
.ux-chat-event-focus{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;
  border:1px solid var(--line);border-radius:12px;background:var(--chip)}
.ux-chat-event-focus>div{display:grid;gap:2px;min-width:0}
.ux-chat-event-focus strong{display:block;font-size:12px;overflow-wrap:anywhere}
.ux-chat-event-focus button{flex:none}
.ux-change-request-rows{display:grid;gap:6px;margin:10px 0;padding:10px 12px;background:var(--chip);border-radius:12px}
.ux-change-request-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:12px}
.ux-change-request-row small{flex:0 0 32%;color:var(--muted)}
.ux-change-request-row span{flex:1;overflow-wrap:anywhere}

/* Optional Roostr guide: no modal opens on its own; a compact resume control fits the existing header. */
.ux-guide-card[hidden]{display:none!important}
.ux-guide-card{margin:0 0 15px;padding:13px;border:1px solid var(--line);border-radius:15px;background:var(--card);box-shadow:var(--shadow-soft);min-width:0}
.ux-guide-intro,.ux-guide-lesson{display:flex;gap:11px;align-items:flex-start;min-width:0}
.ux-guide-intro .rooster-avatar,.ux-guide-lesson .rooster-avatar{width:40px;height:40px;flex:0 0 40px}
.ux-guide-intro p{margin:4px 0;color:var(--muted)}
.ux-guide-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;align-items:center}
.ux-guide-actions button{min-height:36px;max-width:100%;white-space:normal}
.ux-guide-resume{display:inline-flex!important;min-height:18px!important;padding:1px 6px!important;margin-top:3px;border:0!important;box-shadow:none!important;border-radius:8px;background:var(--chip)!important;color:var(--brand)!important;font-size:9px!important;line-height:1.2;font-weight:750}
.ux-guide-dialog{width:min(94vw,440px);max-width:440px;padding:17px;max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--ink)}
.ux-guide-progress{display:grid;gap:5px;margin:10px 0 16px}
.ux-guide-progress progress{width:100%;height:9px;accent-color:var(--brand)}
.ux-guide-lesson h3{font-size:18px;margin:0 0 7px;line-height:1.25}
.ux-guide-lesson p{margin:0;line-height:1.5;font-size:14px;color:var(--ink)}
.ux-guide-footer{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:13px;padding-top:10px;border-top:1px solid var(--line)}
.ux-guide-footer button{min-height:32px}

/* Private account preferences: a self-contained editor, not a traveler-facing analytics view. */
.ux-preferences-dialog{width:min(94vw,460px);max-width:460px;max-height:85dvh;overflow:auto;padding:17px;border-radius:18px;background:var(--card);color:var(--ink)}
.ux-preferences-dialog h3{font-size:15px;margin:14px 0 8px}
.ux-pref-enable{display:flex;align-items:center;gap:8px;padding:12px;margin:12px 0;background:var(--chip);border-radius:12px}
.ux-pref-enable input,.ux-pref-interests input{width:18px;height:18px;min-height:0;flex:none;margin:0}
.ux-pref-interests{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ux-pref-interests label{display:flex;align-items:center;gap:5px;font-size:13px;min-width:0;overflow-wrap:anywhere}
.ux-pref-fields{display:grid;gap:10px;margin:14px 0}
.ux-pref-field{display:grid;gap:5px;min-width:0}
.ux-pref-field>span{font-size:13px;font-weight:650}
.ux-pref-field select,.ux-pref-field textarea{width:100%;min-width:0}
.ux-preferences-dialog .action-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}

/* First-trip continuation: a small optional welcome, never a blocking modal. */
.ux-first-trip{display:grid;gap:10px;padding:18px;border:1px solid var(--line);border-radius:18px}
.ux-first-trip-top{display:flex;align-items:center;gap:12px}
.ux-first-trip-top .rooster-avatar{width:46px;height:46px;flex:0 0 46px}
.ux-first-trip h2{font-size:21px;line-height:1.2;margin:3px 0 0}
.ux-first-trip p{margin:0;font-size:14px;line-height:1.55}
.ux-first-trip-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ux-first-trip-actions button{min-height:42px}


/* PlusOne companion theme foundation. Roostr uses the exact legacy tokens above.
   Themes are trip-scoped; the device's light/dark setting remains independent. */
html[data-companion="couples"][data-theme="light"]{--bg:#f8f3ed;--card:#fffaf4;--ink:#382a30;--muted:#75616b;--line:#e6d8d3;--chip:#f0e3df;--brand:#86495f;--brand-ink:#ffffff;--card-raised:var(--card);--deep:var(--brand);--focus:var(--brand);--teal:var(--brand);--companion-body:Georgia,serif;--companion-heading:Georgia,serif;--companion-radius:20px}
html[data-companion="couples"][data-theme="dark"]{--bg:#231a22;--card:#342630;--ink:#f9eff2;--muted:#c8b3bd;--line:#58414e;--chip:#48303d;--brand:#e6a9bd;--brand-ink:#281921;--card-raised:var(--card);--deep:var(--brand);--focus:var(--brand);--teal:var(--brand);--companion-body:Georgia,serif;--companion-heading:Georgia,serif;--companion-radius:20px}
html[data-companion="family"][data-theme="light"]{--bg:#f5f8ff;--card:#ffffff;--ink:#193351;--muted:#506680;--line:#d8e3f1;--chip:#e4eefb;--brand:#2860a0;--brand-ink:#ffffff;--card-raised:var(--card);--deep:var(--brand);--focus:var(--brand);--teal:var(--brand);--companion-body:system-ui,sans-serif;--companion-heading:system-ui,sans-serif;--companion-radius:20px}
html[data-companion="family"][data-theme="dark"]{--bg:#111f34;--card:#1d304b;--ink:#eaf3ff;--muted:#b5c9e3;--line:#354e6d;--chip:#273f62;--brand:#94c3ff;--brand-ink:#12223b;--card-raised:var(--card);--deep:var(--brand);--focus:var(--brand);--teal:var(--brand);--companion-body:system-ui,sans-serif;--companion-heading:system-ui,sans-serif;--companion-radius:20px}
html[data-companion="adventure"][data-theme="light"]{--bg:#f2f5ed;--card:#fcfdf8;--ink:#20382d;--muted:#536c5c;--line:#d5e0d0;--chip:#e1ebd8;--brand:#3d6647;--brand-ink:#ffffff;--card-raised:var(--card);--deep:var(--brand);--focus:var(--brand);--teal:var(--brand);--companion-body:system-ui,sans-serif;--companion-heading:'Trebuchet MS',system-ui,sans-serif;--companion-radius:10px}
html[data-companion="adventure"][data-theme="dark"]{--bg:#15231b;--card:#23372a;--ink:#eff7e7;--muted:#b8cdb7;--line:#3d5642;--chip:#304b35;--brand:#a4d595;--brand-ink:#15251a;--card-raised:var(--card);--deep:var(--brand);--focus:var(--brand);--teal:var(--brand);--companion-body:system-ui,sans-serif;--companion-heading:'Trebuchet MS',system-ui,sans-serif;--companion-radius:10px}
html[data-companion="relaxed"][data-theme="light"]{--bg:#f7f5ed;--card:#fffdf7;--ink:#28443f;--muted:#5d746b;--line:#dde4d6;--chip:#e6eee3;--brand:#3b7064;--brand-ink:#ffffff;--card-raised:var(--card);--deep:var(--brand);--focus:var(--brand);--teal:var(--brand);--companion-body:'Trebuchet MS',system-ui,sans-serif;--companion-heading:Georgia,serif;--companion-radius:26px}
html[data-companion="relaxed"][data-theme="dark"]{--bg:#172b29;--card:#233c38;--ink:#ecf6ee;--muted:#b8d0c6;--line:#3e5750;--chip:#2e4b42;--brand:#9cceba;--brand-ink:#162d26;--card-raised:var(--card);--deep:var(--brand);--focus:var(--brand);--teal:var(--brand);--companion-body:'Trebuchet MS',system-ui,sans-serif;--companion-heading:Georgia,serif;--companion-radius:26px}
html[data-companion="culture"][data-theme="light"]{--bg:#faf4ec;--card:#fffaf4;--ink:#432e24;--muted:#765c4b;--line:#e6dac8;--chip:#f3e6d4;--brand:#99502e;--brand-ink:#ffffff;--card-raised:var(--card);--deep:var(--brand);--focus:var(--brand);--teal:var(--brand);--companion-body:system-ui,sans-serif;--companion-heading:Georgia,serif;--companion-radius:12px}
html[data-companion="culture"][data-theme="dark"]{--bg:#2d201a;--card:#402d22;--ink:#fff1e4;--muted:#d7bfa8;--line:#604635;--chip:#543a2b;--brand:#f0b88f;--brand-ink:#352219;--card-raised:var(--card);--deep:var(--brand);--focus:var(--brand);--teal:var(--brand);--companion-body:system-ui,sans-serif;--companion-heading:Georgia,serif;--companion-radius:12px}
html[data-companion="celebration"][data-theme="light"]{--bg:#fcf3f8;--card:#fffafd;--ink:#4a2540;--muted:#765571;--line:#ebd7e7;--chip:#f6e2ef;--brand:#a02e79;--brand-ink:#ffffff;--card-raised:var(--card);--deep:var(--brand);--focus:var(--brand);--teal:var(--brand);--companion-body:system-ui,sans-serif;--companion-heading:'Trebuchet MS',system-ui,sans-serif;--companion-radius:24px}
html[data-companion="celebration"][data-theme="dark"]{--bg:#2c192c;--card:#41283e;--ink:#fff0fa;--muted:#d6b5ce;--line:#62415c;--chip:#55314e;--brand:#f5a5d8;--brand-ink:#351d31;--card-raised:var(--card);--deep:var(--brand);--focus:var(--brand);--teal:var(--brand);--companion-body:system-ui,sans-serif;--companion-heading:'Trebuchet MS',system-ui,sans-serif;--companion-radius:24px}
html[data-companion]:not([data-companion="roostr"]){--font-body:var(--companion-body);--font-display:var(--companion-heading);--radius:var(--companion-radius);--seafoam:var(--brand)}
html[data-companion]:not([data-companion="roostr"]),html[data-companion]:not([data-companion="roostr"]) body{font-family:var(--companion-body)}
html[data-companion]:not([data-companion="roostr"]) :is(button,input,select,textarea,.ux-chat-switcher-button,.ux-chat-switcher-privacy,.ux-countdown,.ux-flight-ends strong,.ux-bills-me){font-family:var(--companion-body)}
html[data-companion]:not([data-companion="roostr"]) :is(.ux-page h1,.ux-page h2,.ux-page h3,.ux-page-title,.ux-today .ux-trip-hero h2,.ux-plan .ux-plan-heading h1,.ux-plan-day>h3,.ux-plan-sheet-heading h2,.ux-trip-tile-copy strong,.ux-header .brand){font-family:var(--companion-heading)}
html[data-companion]:not([data-companion="roostr"]) .ux-header .brand{text-transform:none;letter-spacing:-.025em}
html[data-companion]:not([data-companion="roostr"]) .ux-header .brand::after{content:none}
html[data-companion]:not([data-companion="roostr"]) .ux-header .brand-mark{object-fit:cover;border-color:var(--line);background:var(--chip)}
html[data-companion]:not([data-companion="roostr"]) body[data-view="today"] .ux-app-shell{background-image:radial-gradient(ellipse at top,color-mix(in srgb,var(--brand) 16%,transparent),transparent 55%);background-color:var(--bg)}
html[data-companion]:not([data-companion="roostr"]) body[data-view="today"] .ux-header{background:var(--bg);border-color:var(--line)}
html[data-companion]:not([data-companion="roostr"]) .ux-today .ux-trip-hero{border-color:var(--line);border-radius:var(--companion-radius)}
html[data-companion]:not([data-companion="roostr"]) .ux-today :is(.ux-hero-label,.ux-hero-place){color:#ffffff}
html[data-companion]:not([data-companion="roostr"]) :is(.ux-plan-event,.ux-today .ux-summary-card,.ux-today .ux-roster,.ux-today .ux-quick){background:var(--card);border-color:var(--line);border-radius:var(--companion-radius);box-shadow:var(--shadow-soft)}
html[data-companion]:not([data-companion="roostr"]) .ux-plan-event-icon{background:var(--chip);color:var(--brand)}
html[data-companion]:not([data-companion="roostr"]) button.primary{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}
html[data-companion]:not([data-companion="roostr"]) .ux-rooster-fab{background:var(--chip);border-color:var(--brand);box-shadow:var(--shadow);color:var(--ink)}
html[data-companion]:not([data-companion="roostr"]) .rooster-avatar{background:var(--chip);border-color:var(--brand);color:var(--ink);font-weight:700}
html[data-companion]:not([data-companion="roostr"]) :is(.ux-rooster-fab,.rooster-avatar) img{border-radius:50%;object-fit:cover}
html[data-companion]:not([data-companion="roostr"]) .ux-plan-day-picker .ux-day-chip.selected{box-shadow:0 7px 13px color-mix(in srgb,var(--brand) 24%,transparent)}
html[data-companion]:not([data-companion="roostr"]) .msg.rooster .msg-avatar{background:var(--chip);border-color:var(--brand);color:var(--ink)}
html[data-companion]:not([data-companion="roostr"]) body[data-view="chat"] .ux-app-shell .msg.rooster .bubble{background:var(--chip);border-color:var(--line);color:var(--ink);border-radius:var(--companion-radius)}
html[data-companion]:not([data-companion="roostr"]) body[data-view="chat"] .ux-app-shell .msg.me .bubble{background:var(--brand);color:var(--brand-ink);border-radius:var(--companion-radius)}

/* Dashboard-to-public navigation and personal itinerary filter. */
.ux-dashboard-link{display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px 12px;border-radius:14px;text-decoration:none;font-weight:750;text-align:center;box-sizing:border-box}
.ux-explore-link{margin-top:10px;color:var(--brand);background:var(--card);border:1px solid var(--line)}
.ux-plan-day-picker .ux-day-you{min-width:57px}

/* Private, optional post-activity feedback. */
.ux-experience-feedback{padding:12px;border-radius:12px;background:var(--chip);margin:10px 0}
.ux-experience-feedback p{margin:5px 0 9px}
.ux-experience-feedback .seg{display:flex;flex-wrap:wrap;gap:5px}
.ux-experience-feedback .seg button{flex:1 1 90px;white-space:normal;min-height:40px}
.ux-experience-list{display:grid;gap:9px;margin:12px 0}
.ux-experience-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:9px 0}
.ux-experience-row p{margin:4px 0 0}

.trip-alarm-fields,.trip-alarm-fields label,.trip-alarm-actions{display:grid;gap:.45rem}
.trip-alarm-fields{gap:.85rem}
.trip-alarm-fields label{font-weight:650}
.trip-alarm-fields input,.trip-alarm-fields select{width:100%;min-width:0;min-height:44px;font-size:1rem}
.trip-alarm-fields [hidden]{display:none}
.trip-alarm-fields p{margin:0}
.trip-alarm-fields details>summary{padding:.65rem 0;cursor:pointer}
.trip-alarm-fields li+li{margin-top:.4rem}
.trip-alarm-actions a,.trip-alarm-actions button{min-height:44px}
.trip-alarm-actions a{display:grid;place-items:center;border-radius:12px;background:var(--brand);color:var(--brand-ink);text-align:center;text-decoration:none}
