.hero-toggle,.hero-compact-dates{display:none}
.theme-toggle{flex:none;width:44px;font-size:24px}
@media(max-width:760px){
  .prod-topbar{padding:10px 0;gap:4px}
  .prod-topbar .brand{font-size:20px;gap:7px}
  .prod-topbar .brand-icon{width:29px;height:33px}
  .prod-topbar .brand-zh{display:none}
  .prod-topbar>.text-button{padding:6px;font-size:12px}
  .prod-hero{padding:12px 14px;margin:4px 0 10px;border-radius:16px}
  .prod-hero:after,.prod-hero .eyebrow{display:none}
  .prod-hero h1{font-size:22px;line-height:1.3;margin:0 72px 6px 0;max-width:none;overflow-wrap:anywhere}
  .prod-hero p{font-size:13px;margin:5px 0}
  .hero-toggle{display:block;position:absolute;right:8px;top:8px;z-index:2;min-width:60px}
  .prod-hero.is-compact #trip-overview{display:none}
  .prod-hero.is-compact .hero-compact-dates{display:block;margin:0}
  .prod-hero.is-expanded #trip-overview{display:block}
  .day-strip{margin:14px 0}
}
:root[data-theme=light]{color-scheme:light;--paper:#f4f8f7;--white:#fff;--ink:#183c40;--muted:#536b72;--teal:#16786d;--soft:#e6f2ee;--line:#c9dcd8;--orange:#965124;--shadow:0 8px 28px #2541390d}
[data-theme=light] body{background:#f4f8f7;color:var(--ink)}
[data-theme=light] :is(button,input,select,textarea){color-scheme:light}
[data-theme=light] a{color:#12695e}
[data-theme=light] :is(.desktop-rail,.sheet-head,.form-actions,.discussion-composer){background:#f4f8f7;border-color:var(--line)}
[data-theme=light] :is(.prod-card,.auth-card,.project-entry,.provider-card,.prod-table th,.prod-table td,dialog){background:#fff;color:var(--ink);border-color:var(--line)}
[data-theme=light] :is(input,select,textarea){background:#fff;color:var(--ink);border-color:#9dbdb7}
[data-theme=light] :is(label,.prod-card p,.prod-card small,.muted,.safe-note,.auth-shell p,.prod-user,.prod-sync,.prod-table small,.project-entry small,.prod-comment small,.admin-call small,.route-leg,.page-footer,.google-credit,.google-attribution){color:#536b72}
[data-theme=light] input::placeholder,[data-theme=light] textarea::placeholder{color:#6e8386}
[data-theme=light] .prod-hero{background:linear-gradient(125deg,#dfefea,#d9ecf1);border-color:#b9d5ce}
[data-theme=light] .prod-hero p{color:#375c60}
[data-theme=light] .prod-hero .eyebrow{color:#26746a}
[data-theme=light] .prod-hero:after{color:#8a7842}
[data-theme=light] :is(.text-button,.discussion-button,.icon-button){color:#176b61}
[data-theme=light] .icon-button:hover{background:#d9ede6;color:#145a53}
[data-theme=light] :is(.hint-banner,.prod-icon,.night-picker label,.chat-bubble,.layout-toggle,.secondary-button,.sheet-head-actions .icon-button){background:#e6f2ee;color:#244d4d;border-color:#b2d1c8}
[data-theme=light] .chat-bubble.user{background:#d3eae7}
[data-theme=light] .pill{background:#daeee4;color:#245c4b}
[data-theme=light] .day-button{background:#fff;border-color:#c9dcd8;color:var(--ink)}
[data-theme=light] .day-button .date{color:#536b72}
[data-theme=light] .day-button.active,[data-theme=light] .layout-toggle button.active{background:var(--grad);color:#102d38}
[data-theme=light] .day-button.active .date{color:#234e52}
[data-theme=light] .layout-toggle button{color:#375c60}
[data-theme=light] .nav-item{color:#536b72}
[data-theme=light] .nav-item.active,[data-theme=light] .nav-item:hover{background:#dcefe8;color:#155c53}
[data-theme=light] .bottom-nav{background:#fafffdf5;border-color:#b9d5ce;box-shadow:0 -4px 20px #25413910}
[data-theme=light] .bottom-nav .nav-item.active .nav-icon{background:#cee9df;border-color:#9bc7bb}
[data-theme=light] :is(.vote-button,.add-button){background:#e3f1ec;color:#235f52;border-color:#b2d1c8}
[data-theme=light] .vote-button.voted{background:#ffe4d6;color:#87472b;border-color:#dda789}
[data-theme=light] :is(.prod-empty,.prod-comment blockquote){color:#536b72;border-color:#9dbdb7}
[data-theme=light] .prod-empty h3{color:#183c40}
[data-theme=light] :is(.prod-table,.prod-table td,.prod-table th,.provider-card,.member-row,.prod-comment,.admin-call){border-color:#c9dcd8}
[data-theme=light] .form-error{background:#ffebe7;color:#8b302d}
[data-theme=light] .status-error{color:#9b332c}
[data-theme=light] .status-ok{color:#176b50}
[data-theme=light] .reply-label{color:#176b61}
[data-theme=light] .sheet-handle{background:#a7c2bc}
[data-theme=light] .loading-state{color:#375c60}
[data-theme=light] .brand{color:#176b61}

/* Only the direct sequence badge is circular; nested place labels remain text. */
.prod-route{align-items:flex-start;min-width:0}
.prod-route>strong{flex:1;min-width:0;line-height:1.6;padding-top:3px;overflow-wrap:anywhere}
.prod-route>.place-name,.prod-route strong .place-name{display:inline;width:auto;height:auto;border:0;border-radius:0}
.collaboration-bar{display:flex;align-items:center;justify-content:space-between;gap:8px}
.spot-detail summary,.daily-travel>summary,.travel-section>summary,.form-details>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;color:var(--muted)}
summary:before{content:'▸';font-size:12px}details[open]>summary:before{content:'▾'}summary{list-style:none}summary::-webkit-details-marker{display:none}
.daily-travel{border:1px solid var(--line);border-radius:14px;padding:0 14px}.daily-travel>.prod-stack{padding-bottom:14px}
.travel-section{margin-top:24px}.travel-section>summary{font-size:20px;font-weight:700}
.menu-list{display:grid;gap:8px}.menu-list button{text-align:left;padding:12px 16px;border:1px solid var(--line);border-radius:12px}
.sort-row{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:12px;padding:8px;margin:8px 0;background:var(--paper)}
.sort-row>div{flex:1;min-width:0}.sort-row strong{display:block;overflow-wrap:anywhere;font-size:15px}.sort-row small{color:var(--muted)}
.sort-row button{flex:none;width:44px}.sort-grip{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;font-size:28px}
.sort-row.sorting{outline:2px solid #67cdb9;opacity:.8;box-shadow:0 8px 20px #0003}.sort-row.sorting .sort-grip{cursor:grabbing}
#sort-list{user-select:none;-webkit-user-select:none}.form-details>.prod-stack{padding-top:12px}
@media(max-width:760px){
 .prod-toolbar{margin:12px 0;gap:6px}.prod-toolbar h2{font-size:20px;margin:4px 0}
 .layout-toggle{padding:3px}.layout-toggle button{padding:6px 10px;min-height:40px;font-size:12px}
 .prod-card{padding:12px 14px}.prod-card h3{font-size:18px;margin:8px 0;overflow-wrap:anywhere}.prod-card .card-bottom{margin-top:4px}
 .prod-card .card-top>small{margin-left:auto}.prod-stack{gap:10px}.plan-controls{margin-bottom:12px}
 .plan-controls .primary-button{min-height:44px;padding:8px 14px}.day-button{min-width:66px;padding:10px 8px}.day-strip{gap:7px}
 .spot-detail{font-size:13px}.collaboration-bar .prod-sync{font-size:10px}.daily-travel>summary{font-size:13px}
 .ai-fab{font-size:12px;min-height:42px;padding:8px 12px}
}

.ai-fab{width:48px;height:48px;min-height:48px;padding:0;border-radius:50%;display:grid;place-items:center;right:16px}

/* A quiet trip header and compact itinerary rows keep the plan in view. */
.prod-topbar{justify-content:space-between;padding:12px 0}.account-avatar{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--soft);color:var(--ink);font-weight:700}
.prod-hero,[data-theme=light] .prod-hero{background:none;border:0;border-radius:0;padding:8px 0;margin:0 0 8px;overflow:visible}
.prod-hero:after,.prod-hero .eyebrow{display:none}.prod-hero h1{font-size:25px;margin:0 72px 6px 0;max-width:none}
.hero-toggle{display:block;position:absolute;right:0;top:4px;min-height:44px;min-width:60px}
.prod-hero.is-compact #trip-overview{display:none}.prod-hero.is-compact .hero-compact-dates{display:block;margin:0;font-size:13px;color:var(--muted)}
.prod-hero.is-expanded #trip-overview{display:block}.prod-toolbar h2{font-size:20px;margin:0}.day-strip{margin:14px 0}
.itinerary-item{display:grid;grid-template-columns:54px minmax(0,1fr)44px;gap:10px;align-items:center;padding:10px 12px;border-radius:14px}
.stop-clock,.stop-info{background:none;border:0;padding:6px 0;color:var(--ink);text-align:left;min-width:0}
.stop-clock{font-size:15px;font-weight:700;color:var(--teal)}.stop-info strong{font-size:16px;line-height:1.5;display:block;overflow-wrap:anywhere}.stop-info small{font-size:12px;display:block;margin-top:4px}
.spot-note{white-space:pre-wrap;line-height:1.8}.map-tools{margin:12px 0}.day-map-scroll{overflow:auto;max-height:62dvh;border:1px solid var(--line);border-radius:12px;background:#e7eeeb}.day-map-scroll img{display:block;width:100%;max-width:none;height:auto}
.map-legend{list-style:none;padding:0}.map-legend li{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.map-legend small{display:block;color:var(--muted);font-size:12px}.map-letter{flex:none;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;background:#16786d;color:white;font-weight:700}
#sheet.map-expanded{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0;box-sizing:border-box}
@media(max-width:760px){.prod-hero h1{font-size:22px}.prod-hero{padding:4px 0}.itinerary-item{padding:8px 10px;gap:8px}.prod-topbar .brand{font-size:20px}.prod-main .day-button{min-width:60px}.prod-toolbar{margin:10px 0}.plan-controls{margin-bottom:10px}.prod-stack{gap:8px}}
@media(min-width:761px){.prod-topbar .brand{visibility:hidden}.prod-topbar{padding:0;height:48px}}
