:root{font-family:system-ui,-apple-system,"Noto Sans TC",sans-serif;--bg:#f7f4fb;--panel:#fff;--ink:#36364d;--muted:#7d7a91;--line:#e9e3f0;--mint:#71b7ad;--mint2:#438c84;--lav:#b5a8eb;--pink:#f6a9ba;--cream:#f7efdf}*{box-sizing:border-box}html,body{margin:0;max-width:100%;overflow-x:hidden;color:var(--ink);background:linear-gradient(145deg,#f3edff,#effaf7 55%,#fff5f1)}button,input,select,textarea{font:inherit;color:inherit}button,.upload{border:1px solid var(--line);background:#fff;border-radius:14px;padding:9px 12px;cursor:pointer;font-weight:700}button:hover{background:#f7f4fb}.primary{background:var(--mint);border-color:var(--mint);color:#fff}.primary:hover{background:var(--mint2)}.topbar{height:64px;padding:10px 20px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(110deg,#e4d9ff,#d8f3ed,#ffe7ed)}.topbar h1{margin:0;font-size:24px}.topbar small{font-size:12px;font-weight:500;color:var(--muted)}main{height:calc(100dvh - 64px);display:grid;grid-template-columns:minmax(270px,.78fr) minmax(360px,1.18fr) minmax(360px,1.18fr);gap:12px;padding:12px;max-width:1900px;margin:auto}.zone{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.panel{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 8px 30px rgba(75,63,111,.08)}.zoneTitle{position:sticky;top:-18px;z-index:20;background:rgba(255,255,255,.96);padding:18px 0 10px;margin-top:-18px}.zoneTitle span{font-size:11px;letter-spacing:.13em;color:var(--lav);font-weight:900}.zoneTitle h2{margin:2px 0 0;font-size:25px}.withTools{display:flex;align-items:center;justify-content:space-between}.jumpTools{display:flex;gap:5px}.jumpTools button,.sectionMenuBtn{width:38px;height:38px;padding:0;border-radius:12px}.controls h3{font-size:20px;margin:16px 0 12px}label{display:block;margin:13px 0 6px;font-weight:800;font-size:14px}input,select,textarea{width:100%;min-width:0;border:1.5px solid var(--line);border-radius:13px;background:#fff;padding:11px 12px}input:focus,select:focus{outline:2px solid #d9f1ed;border-color:var(--mint)}.microcopy,.muted,.status{font-size:12px;line-height:1.55;color:var(--muted)}.toggleGroup{display:flex;gap:5px;padding:4px;background:var(--cream);border-radius:16px}.toggleGroup button{flex:1;border:0;background:transparent;white-space:normal}.toggleGroup button.active{background:#fff;box-shadow:0 2px 10px rgba(80,70,110,.09)}.flowBtn,.softBtn{width:100%;margin-top:16px;padding:13px}.softBtn{background:#f3edff;border-color:#ddd1fb}.comingSoon{margin-top:18px;padding:11px 13px;background:#f7f5f8;border-radius:13px;display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.intentGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.intentCard{min-width:0;min-height:128px;text-align:left;padding:16px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;border-radius:20px}.intentCard>span{font-size:30px}.intentCard strong{font-size:18px}.intentCard small{color:var(--muted);white-space:normal;line-height:1.4}.intentCard.active{border:2px solid var(--mint);background:#effaf7;box-shadow:0 0 0 3px #e1f4f0}.refine,.advanced{margin:14px 0;border:1px solid var(--line);border-radius:16px;padding:12px}.refine summary,.advanced summary{cursor:pointer;font-weight:800}.chipGrid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.chipGrid button.active{background:#eee9ff;border-color:var(--lav)}.selectionActions{display:flex;gap:10px;align-items:center;margin:14px 0;flex-wrap:wrap}.candidateGrid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.candidateCard{border:1px solid var(--line);border-radius:16px;padding:12px;min-width:0}.candidateCard h4{margin:0 0 6px;font-size:14px;overflow-wrap:anywhere}.candidateCard p{margin:4px 0}.candidateActions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.candidateActions button{padding:7px 9px;font-size:12px}.collectionSection{margin-top:20px;padding-top:14px;border-top:1px solid var(--line)}.collectionSection h3{margin:0 0 8px}.memoryActions,.actions,.sectionHead,.tabs,.pager{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.tabs{margin:10px 0}.tab.active{background:#f6e2a9}.searchScope{padding:10px;background:#fbfafc;border-radius:14px}.wrapToggle{flex-wrap:wrap}.wrapToggle button{flex:1 1 120px}.item{border:1px solid var(--line);border-radius:15px;padding:12px;margin:9px 0}.item h3{margin:0;font-size:15px}.item p{font-size:12px;color:var(--muted)}.outputSection{scroll-margin-top:60px;margin-bottom:16px;border-bottom:1px solid var(--line);padding-bottom:16px}.outputSection h3{margin:0}.mapPanel{padding-top:2px}#map{height:310px;border-radius:17px;background:#efedf3;overflow:hidden}.weatherBlock{background:linear-gradient(110deg,#edf9fc,#f4efff);padding:12px;border-radius:16px}.weatherHeading{display:flex;gap:8px;align-items:center}.weatherHeading span{margin-left:auto;font-size:11px;color:var(--muted)}.triprow{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;padding:10px 0;border-bottom:1px solid var(--line)}.tripName{font-size:14px;font-weight:750;overflow-wrap:anywhere}.tripActions{display:flex;gap:6px;flex-wrap:wrap}.tripActions button{padding:7px 10px;font-size:12px}.reroll{color:#6d58bd;border-color:#cfc3f3}.removeStop{color:#a24c65}.dayGroup{margin:12px 0;padding:12px;border-radius:16px;background:#faf9fc}.dayGroup h4{margin:0 0 8px}.hotelAnchor{padding:12px;border-radius:14px;background:#f5edff;font-weight:800}.sectionPopover{position:fixed;z-index:3000;min-width:180px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px;box-shadow:0 12px 35px rgba(50,45,70,.18)}.sectionPopover button{display:block;width:100%;text-align:left;margin:3px 0}.mobileNav{display:none}footer{display:none}
@media(max-width:1100px) and (min-width:761px){main{grid-template-columns:minmax(240px,.8fr) minmax(330px,1.2fr);height:calc(100dvh - 64px)}.output{grid-column:1/-1;max-height:55dvh}.candidateGrid{grid-template-columns:1fr}}
@media(max-width:760px){body{padding-bottom:78px}.topbar{height:58px;padding:8px 14px}.topbar h1{font-size:21px}.topbar small{display:none}main{display:block;height:auto;padding:10px}.zone{overflow:visible}.panel{padding:15px;border-radius:20px}.zoneTitle{position:static;margin:0;padding:0 0 10px}.intentGrid,.candidateGrid{grid-template-columns:1fr 1fr}.intentCard{min-height:120px;padding:13px}.mobileNav{display:flex;position:fixed;z-index:2500;bottom:0;left:0;right:0;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);box-shadow:0 -5px 20px rgba(70,60,100,.12);gap:4px}.mobileNavBtn{position:relative;flex:1;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:1px;padding:5px}.mobileNavBtn span{font-size:11px}.mobileNavBtn b{position:absolute;top:0;right:14%;font-size:9px;background:#eee7ff;padding:1px 5px;border-radius:20px}.mobileNavBtn.active{background:#f7e9ef;color:#a04e6d}main[data-mobile-view="input"] #selectionZone,main[data-mobile-view="input"] #outputZone{display:none}main[data-mobile-view="selection"] #inputZone,main[data-mobile-view="selection"] #outputZone{display:none}main[data-mobile-view="trip"] #inputZone,main[data-mobile-view="trip"] #selectionZone{display:none}main[data-mobile-view="trip"] #outputMapSection{display:none}main[data-mobile-view="map"] #inputZone,main[data-mobile-view="map"] #selectionZone{display:none}main[data-mobile-view="map"] #outputWeatherSection,main[data-mobile-view="map"] #outputTripSection{display:none}#map{height:min(62dvh,500px)}.jumpTools{display:none}}
@media(max-width:430px){.intentGrid,.candidateGrid{grid-template-columns:1fr 1fr}.intentCard strong{font-size:16px}.intentCard small{font-size:11px}.chipGrid{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* v29: ingredient builder + output-first map */
.selectedIngredients{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0;padding:10px;border-radius:14px;background:#fbfafc;min-height:44px}.ingredientChip{border-color:#d8cef5;background:#f4f0ff;padding:7px 10px;font-size:12px}.parkingNote{margin:5px 0 0;padding:8px 10px;border-radius:10px;background:#f7f4ed;color:var(--muted);font-size:12px;line-height:1.45}.tripMeta{font-size:11px;color:var(--muted);margin-top:2px}.swapChoice{white-space:normal;text-align:left}.planSummary{padding:10px 12px;border-radius:14px;background:#eef9f6;margin:8px 0 12px;font-size:12px;line-height:1.5}
@media(max-width:760px){main[data-mobile-view="trip"] #outputMapSection{display:block}main[data-mobile-view="trip"] #outputZone{display:block}main[data-mobile-view="trip"] #outputWeatherSection{display:block}main[data-mobile-view="trip"] #outputTripSection{display:block}}

/* UI Fix v3: sticky brand header + mobile date containment */
.topbar{position:sticky;top:0;z-index:4000}
@media(max-width:760px){
  .topbar{position:sticky;top:0;z-index:4000}
  #date{display:block;width:100%;max-width:100%;min-width:0;padding-right:42px}
  #date::-webkit-calendar-picker-indicator{margin:0;max-width:24px}
  .controls{min-width:0}
}
.parkingMapLink{display:inline-flex;align-items:center;text-decoration:none;border:1px solid var(--line);background:#fff;border-radius:14px;padding:9px 12px;font-weight:700;color:var(--ink)}
.parkingLine a{font-weight:800;white-space:nowrap}

/* UI Fix v4: fixed mobile banner + restored photo placeholder */
.candidatePhoto{width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:linear-gradient(135deg,#f1ecfb,#e7f6f2);display:grid;place-items:center;margin-bottom:9px}
.candidatePhoto img{width:100%;height:100%;object-fit:cover;display:block}
.photoPlaceholder{font-size:34px;opacity:.72}
@media(max-width:760px){
 .topbar{position:fixed;top:0;left:0;right:0;width:100%;z-index:4000}
 body{padding-top:58px;padding-bottom:78px}
 main{padding-top:10px}
 .selectionActions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
 .selectionActions button{width:100%;min-width:0;padding-left:8px;padding-right:8px;font-size:14px}
 .selectionActions .status{grid-column:1/-1}
}


/* UI Fix v5: local couple-photo strip */
.couplePhotos{margin:4px 0 18px;padding:12px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,#fff7fb,#eef7ff)}
.couplePhotoHead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}.couplePhotoHead small{color:var(--muted);font-size:11px}
.couplePhotoGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.couplePhotoSlot{position:relative;aspect-ratio:1.25/1;min-width:0;padding:0;overflow:hidden;border:1.5px dashed #d8c9ef;background:rgba(255,255,255,.7);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.couplePhotoSlot>span:first-child{font-size:22px}.couplePhotoSlot small{font-size:10px;color:var(--muted)}.couplePhotoSlot img{width:100%;height:100%;object-fit:cover;display:block}.photoRemove{position:absolute;top:5px;right:5px;width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.88);display:grid;place-items:center;font-size:16px;font-weight:800;box-shadow:0 1px 6px rgba(0,0,0,.12);opacity:0;pointer-events:none;transition:opacity .15s ease}.couplePhotoSlot:hover .photoRemove,.couplePhotoSlot:focus-within .photoRemove{opacity:1;pointer-events:auto}.photoActionMenu{position:fixed;z-index:9999;left:50%;bottom:22px;transform:translateX(-50%);width:min(88vw,340px);padding:8px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 12px 40px rgba(42,35,70,.22);display:grid;gap:6px}.photoActionMenu button{width:100%;padding:13px 14px;border-radius:13px;background:#fff;border:1px solid var(--line);font:inherit;font-weight:700}.photoActionMenu button.danger{color:#a94a64}.photoActionBackdrop{position:fixed;inset:0;z-index:9998;background:rgba(20,18,30,.16)}
@media(max-width:760px){.couplePhotos{margin-top:2px}.couplePhotoGrid{gap:6px}.couplePhotoSlot{aspect-ratio:1/1}.photoRemove{display:none!important}}


/* UI Fix v6: iOS date hard containment + route detail refresh */
.dateField{display:block;width:100%;max-width:100%;min-width:0;overflow:hidden}
.dateField #date{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0}
.tripHeadActions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
@media(max-width:760px){
  .controls,.controls>*,.dateField,.dateField #date{min-width:0!important;max-width:100%!important}
  .dateField{width:100%!important;overflow:hidden!important}
  .dateField #date{-webkit-appearance:none;appearance:none;width:100%!important;inline-size:100%!important;box-sizing:border-box!important;padding-right:12px!important}
  .dateField #date::-webkit-date-and-time-value{text-align:left;min-width:0}
  .dateField #date::-webkit-calendar-picker-indicator{position:static;width:20px;min-width:20px;max-width:20px;margin:0;padding:0}
  .tripHeadActions{width:100%;margin-top:7px}.tripHeadActions button{flex:1 1 auto}
}
/* v8 — personal idea location resolver */
.ideaLocate{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0}.ideaLocate button,.buttonLink{flex:1 1 125px;text-align:center}.buttonLink{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff;color:inherit;text-decoration:none;font-weight:700}.ideaMatches{display:grid;gap:6px;margin:8px 0}.ideaMatch{width:100%;text-align:left;white-space:normal;line-height:1.4;padding:10px 12px}

/* v9: mobile Google Maps paste + cleaner parking actions */
.pasteLocationRow{display:flex;gap:8px;align-items:center}.pasteLocationRow input{flex:1;min-width:0}.pasteLocationRow button{flex:0 0 auto;white-space:nowrap}.parkingMapRow{margin-top:8px;padding-top:8px;border-top:1px solid rgba(0,0,0,.08)}.parkingMapRow .parkingMapLink{display:inline-flex;align-items:center;text-decoration:none}
@media(max-width:640px){.pasteLocationRow{align-items:stretch;flex-direction:column}.pasteLocationRow button{width:100%}}

/* v17.3: memory card + native share; JSON moved to secondary backup */
.memoryBackup{margin-top:10px}.memoryBackup .memoryActions{margin-top:10px}


/* v18 — Trend Discovery: alternate discovery path, not another filter */
.trendBox{margin:14px 0;padding:14px;border:1px solid #eadff5;border-radius:18px;background:linear-gradient(135deg,#fff8fb,#f4fbf8)}
.trendHead>div{display:flex;align-items:center;gap:10px;justify-content:space-between}.trendHead strong{font-size:17px}.trendHead small{color:var(--muted);font-weight:700}.trendSearchRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.trendSearchRow input{min-width:0}.trendExamples{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.trendExamples button{font-size:11px;padding:6px 9px}.trendGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.trendCard{border:1px solid var(--line);border-radius:16px;padding:10px;background:#fff;min-width:0}.trendCard .candidatePhoto{margin-bottom:8px}.trendBadge{display:inline-block;font-size:10px;font-weight:800;padding:4px 7px;border-radius:999px;background:#fff0df;color:#8a5723}.trendMeta{font-size:11px;color:var(--muted);margin:5px 0}.trendWhy{font-size:12px;line-height:1.45;margin:7px 0}.trendActions{display:flex;gap:6px;flex-wrap:wrap}.trendActions button,.trendActions a{font-size:11px;padding:7px 9px}.trendSource{font-size:10px;word-break:break-all}.trendMore{display:flex;gap:8px;justify-content:center;margin-top:10px}.trendPlaceholder{font-size:36px;opacity:.7}.trendNotReady{font-size:10px;color:var(--muted)}
@media(max-width:760px){.trendSearchRow{grid-template-columns:1fr}.trendSearchRow button{width:100%}.trendGrid{grid-template-columns:1fr 1fr}}
@media(max-width:430px){.trendGrid{grid-template-columns:1fr}}

/* v18.3 — Trend is a third Selection path, not a separate lower tool */
.trendIntentCard{grid-column:1/-1}.trendBox[hidden]{display:none!important}.trendBox{margin-top:10px}.trendBox .trendHead strong{font-size:15px}

/* v18.9 heart-arrow pagination */
.trendMore{align-items:center}.trendArrow{min-width:54px;font-size:18px;font-weight:800;padding:7px 12px}.trendPage{font-size:12px;font-weight:800;color:var(--muted);min-width:52px;text-align:center}.trendArrow:disabled{opacity:.3;cursor:default}

/* v19.0 — INPUT closes with memory tools; Selection stays focused */
.inputMemory{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.inputMemoryActions{margin-top:9px}.inputMemoryActions button{flex:1}
.memoryMaker{position:fixed;inset:0;z-index:10000;background:rgba(28,25,38,.48);display:grid;place-items:center;padding:18px}.memoryMaker[hidden]{display:none!important}.memoryMakerCard{position:relative;width:min(94vw,620px);max-height:90vh;overflow:auto;background:#fff;border-radius:24px;padding:22px;box-shadow:0 24px 70px rgba(30,25,50,.28)}.memoryClose{position:absolute;right:14px;top:12px;border:0;background:transparent;font-size:26px}.memoryChoiceGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.memoryChoice{min-height:112px;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:7px;padding:16px;border-radius:18px}.memoryChoice strong{font-size:16px}.memoryChoice small{font-weight:500;line-height:1.45;color:var(--muted)}.memoryChoice.ai{background:linear-gradient(135deg,#fff5fb,#f0f7ff)}.aiMemoryPreview{aspect-ratio:4/5;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#f3edff,#effaf7);display:grid;place-items:center}.aiMemoryPreview>span{font-size:48px}.aiMemoryPreview img{width:100%;height:100%;object-fit:contain;display:block}.aiMemoryPager{display:flex;align-items:center;justify-content:center;gap:12px;margin:10px 0}.aiMemoryPager button{min-width:56px}.aiMemoryPager span{min-width:60px;text-align:center;font-weight:800;color:var(--muted)}
@media(max-width:560px){.memoryChoiceGrid{grid-template-columns:1fr}.memoryMaker{padding:10px}.memoryMakerCard{padding:18px}}

/* v20 — 2gether share / paw-stamp RSVP */
.togetherShare{margin-top:14px;padding:14px;border:1px solid #eadff8;border-radius:16px;background:#fcf9ff}.shareLine{font-weight:700;margin-bottom:9px}.rsvpPanel{position:relative;margin-top:14px;padding:18px;border:1px solid #e5d6fb;border-radius:18px;background:#fff;overflow:hidden}.rsvpActions{display:flex;gap:10px;flex-wrap:wrap}.pawApprove{display:inline-flex;align-items:center;gap:8px}.pawIcon{position:relative;display:inline-block;width:31px;height:28px}.pawIcon i,.pawIcon b{position:absolute;display:block;background:#9567f2}.pawIcon i{width:8px;height:9px;border-radius:50%}.pawIcon i:nth-child(1){left:2px;top:9px}.pawIcon i:nth-child(2){left:8px;top:1px}.pawIcon i:nth-child(3){right:8px;top:1px}.pawIcon i:nth-child(4){right:2px;top:9px}.pawIcon b{left:8px;bottom:0;width:16px;height:14px;border-radius:52% 52% 45% 45%;transform:rotate(45deg)}.pawStamp{position:absolute;inset:0;display:grid;place-items:center;background:rgba(255,255,255,.76);z-index:4}.pawStamp[hidden]{display:none}.pawIcon.big{width:150px;height:136px;transform:rotate(-8deg);animation:pawPop .55s cubic-bezier(.2,.9,.25,1.25)}.pawIcon.big i{width:38px;height:43px}.pawIcon.big i:nth-child(1){left:5px;top:45px}.pawIcon.big i:nth-child(2){left:35px;top:4px}.pawIcon.big i:nth-child(3){right:35px;top:4px}.pawIcon.big i:nth-child(4){right:5px;top:45px}.pawIcon.big b{left:38px;bottom:0;width:75px;height:68px}.swapChoice{outline:2px dashed #9567f2;outline-offset:3px}.swapPickBtn{margin-left:8px;font-size:.86em}@keyframes pawPop{0%{opacity:0;transform:scale(1.8) rotate(-8deg)}65%{opacity:1;transform:scale(.92) rotate(-8deg)}100%{transform:scale(1) rotate(-8deg)}}
/* v20.1 RSVP: make the requested stop unmistakable to the original sender. */
.triprow.swapRequested{outline:2px solid currentColor;outline-offset:3px;border-radius:14px;padding:12px;margin:8px 3px}
.swapRequestBadge{font-weight:800;margin-bottom:7px;font-size:.92rem}

/* v20.9.3 Design Branch 02 — modular presentation, warmer 2gether identity */
:root{--bg:#f4f6f3;--panel:#fff;--ink:#263835;--muted:#71807d;--line:#e2e8e5;--mint:#2f8c80;--mint2:#23766d;--lav:#8d78df;--cream:#fff3d9}
html,body{background:#f3f5f2}.topbar{background:rgba(255,255,255,.96);border-bottom:1px solid var(--line)}.topbar h1{color:var(--mint2);font-size:18px}.topbar small{margin-left:18px;color:#8a9693}
main{grid-template-columns:minmax(250px,.72fr) minmax(500px,1.55fr) minmax(390px,1.08fr);gap:14px;max-width:1880px}.panel{box-shadow:0 5px 24px rgba(39,63,57,.055);border-radius:18px}.zoneTitle span{color:var(--mint2)}.zoneTitle h2{color:var(--ink)}
.controls{background:#fbfcfa}.ideas{background:#fff}.output{background:#fff}.optionalHint{font-weight:600;color:var(--muted)}
.intentCard{min-height:112px}.intentCard.active{border-color:#9dd5ce;background:#edf8f6;box-shadow:none}.intentCard>span{font-size:25px}.intentCard strong{font-size:16px}
.expandModule{margin:14px 0;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}.expandModuleHead{width:100%;border:0;border-radius:0;background:#fff;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:15px 16px}.expandModuleHead:hover{background:#fafcfb}.expandModuleHead span{display:flex;flex-direction:column;gap:4px}.expandModuleHead small{font-weight:500;color:var(--muted)}.expandGlyph{font-size:25px;font-weight:400;color:var(--mint2);line-height:1}.expandModuleBody{padding:0 14px 14px}.expandModuleBody[hidden]{display:none!important}.chipGrid button{text-align:left;background:#fff}.chipGrid button.active{background:#eaf7f4;border-color:#9ed6ce}
.selectedIngredients{background:#f6f9f7;border:0}.ingredientChip{background:#f3efff;border-color:#d8cdf8}.tripWarmCopy{font-size:13px;color:var(--muted);margin:-2px 0 14px}.parkingNote{background:#fff7e7}.parkingLine{padding:4px 0}.togetherShare{background:#edf8f6;border-color:#cfe9e4}.pawApprove{background:#edf8f6;border-color:#b9ddd7}
@media(max-width:1100px) and (min-width:761px){main{grid-template-columns:minmax(235px,.7fr) minmax(430px,1.3fr)}.output{grid-column:1/-1}}
@media(max-width:760px){.mobileNav{grid-template-columns:repeat(3,1fr)}.mobileNavBtn.active{background:#e9f6f3;color:var(--mint2)}.mobileNavBtn span{font-size:10px}.zoneTitle h2{font-size:24px}.expandModuleHead{padding:14px}.chipGrid{grid-template-columns:1fr 1fr}}


/* v20.9.5 — Discover spatial hierarchy: primary inspiration stays primary; secondary power tools share one compact zone. */
.trendEntry{margin-top:14px}.trendIntentCard{min-height:104px;background:linear-gradient(135deg,#eef9f7,#fff);border:1.5px solid #9dd5ce}.trendIntentCard.active{background:linear-gradient(135deg,#e7f7f4,#fff8e8)}
.trendBox{max-height:none;margin-bottom:16px}.normalIntentBlock{margin-top:18px}.normalIntentIntro{margin-bottom:9px}
.secondaryDiscover{margin:18px 0 8px;padding-top:14px;border-top:1px solid var(--line)}.secondaryDiscoverTitle{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-bottom:8px}.secondaryDiscoverTitle span{font-weight:850}.secondaryDiscoverTitle small{color:var(--muted)}.secondaryToolGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}.secondaryToolGrid .expandModule{margin:0}.secondaryToolGrid .expandModule:has(.expandModuleHead[aria-expanded="true"]){grid-column:1/-1}.secondaryToolGrid .expandModuleHead{min-height:72px}.secondaryToolGrid .expandModuleBody{border-top:1px solid var(--line);padding-top:14px}
@media(max-width:760px){.secondaryToolGrid{grid-template-columns:1fr}.secondaryToolGrid .expandModule:has(.expandModuleHead[aria-expanded="true"]){grid-column:auto}.secondaryDiscoverTitle{display:block}.secondaryDiscoverTitle small{display:block;margin-top:3px}}

/* v20.9.6 — location-aware optional ingredients */
[data-refine].ingredientLimited{opacity:.62;position:relative}
[data-refine].ingredientUnavailable{opacity:.32;filter:grayscale(.55);cursor:not-allowed}
.ingredientAvailabilityNote{font-size:.68em;font-weight:600;margin-left:.45rem;opacity:.8}
.parkingRefreshBtn{margin-top:.55rem;font-size:.86rem;padding:.42rem .7rem}

/* v20.9.7 resolved custom-place actions */
.resolvedSearchPlace{margin-top:10px;padding:14px 16px;border:1px solid #dce7e3;border-radius:16px;background:#fff}.resolvedSearchPlace strong{display:block;font-size:1rem}.resolvedSearchPlace p{margin:5px 0 0}.resolvedSearchPlace .actions{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}

.tripTiming{display:inline-flex;flex-wrap:wrap;gap:4px;margin:5px 0 3px;padding:5px 8px;border-radius:9px;background:#fff7df;color:#6c5a2d;font-size:11px;font-weight:700}.returnHomeNote{margin:12px 0 4px;padding:9px 11px;border-radius:12px;background:#f4f1fa;color:#655d78;font-size:12px;font-weight:700}
/* v20.9.9 — couple swap proposal flow */
.swapChooser{margin:12px 0 4px;padding:12px;border:1px solid #e5d6fb;border-radius:16px;background:#fcf9ff}.swapCandidate{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #eee7f7}.swapCandidate:first-of-type{margin-top:8px}.swapCandidate>div{min-width:0}.swapCandidate button{flex:0 0 auto}.incomingSwapProposal{padding:12px;border:1px solid #e5d6fb;border-radius:14px;background:#fcf9ff}.swapProposalRoute{font-weight:700;margin:8px 0}.swapRequestBadge{margin-bottom:8px;padding:7px 10px;border-radius:10px;background:#f3ecff;font-weight:700;color:#7652b5}

/* v20.9.12 couple swap completion */
.swapModeBanner{padding:12px 14px;border:1px solid #e5d6fb;border-radius:14px;background:#fcf9ff}.swapChoice{position:relative}.swapTarget{outline:3px solid #9567f2!important;outline-offset:4px;background:#fdfaff}.swapTarget:before{content:"💜 正在換這一站";display:inline-block;margin:6px 0 8px;padding:5px 9px;border-radius:999px;background:#f1e9ff;color:#6543a5;font-weight:800;font-size:.82rem}.swapChooser{margin:12px 0 4px;padding:14px;border:1px solid #d9c7fb;border-radius:16px;background:#fff}.swapCandidate{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;padding:11px 12px;border:1px solid #e4e8e5;border-radius:13px;background:#fff}.swapCandidate>div{min-width:0}.swapFallbackNote{margin-top:9px;padding:8px 10px;border-radius:10px;background:#fff7df;font-size:.86rem}.swapCancelBtn{margin-top:10px}.swapPreviewRoute{margin:12px 0;padding:12px;border-radius:14px;background:#f8f5ff}.swapPreviewOld{color:#7a7f7d;text-decoration:line-through}.swapPreviewArrow{padding:4px 0;color:#9567f2}.swapPreviewNew{font-weight:800;color:#4f357f}.swapPreviewActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.incomingSwapProposal{padding:14px;border:2px solid #d8c3ff;border-radius:16px;background:#fcf9ff}.swapProposalRoute{font-weight:800;font-size:1.05rem;margin:8px 0}.swapRequestBadge{display:inline-block;margin-bottom:8px;padding:5px 9px;border-radius:999px;background:#f1e9ff;color:#6543a5;font-weight:800}

/* v20.9.12: English is intentionally deferred while core couple flows stabilize. */
#language.languageDisabled{opacity:.42;cursor:not-allowed;filter:grayscale(.35)}
#language.languageDisabled:hover{transform:none;box-shadow:none}

/* v20.9.13 persistent couple Swap Mode */
.swapDiscoverBanner{position:sticky;top:8px;z-index:20;margin:0 0 14px;padding:12px 14px;border:2px dashed #9b6bc6;border-radius:16px;background:#fbf6ff;box-shadow:0 6px 20px rgba(77,47,104,.10)}
.swapDiscoverBanner strong{display:block;margin-bottom:4px}.swapGlobalPreview{margin:12px 0}.swapCancelBtn{margin-top:8px}

/* v20.9.16 exclusive swap mode */
.swapDisabledAdd{opacity:.38!important;cursor:not-allowed!important;filter:grayscale(.35)}
.swapReplacePrimary{border-color:#8d5de7!important;background:#f3ebff!important;color:#5e3a9b!important;font-weight:800!important}
.swapJumpLink{display:inline-block;margin:9px 10px 2px 0;font-weight:800;color:#6543a5;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.swapDiscoverBanner:after{content:"換站模式：新增行程暫停";display:inline-block;margin-top:7px;padding:4px 8px;border-radius:999px;background:#eee;color:#666;font-size:.78rem;font-weight:700}

/* v20.9.19 diagnostic runtime marker */
.runtimeStatus{font-size:11px;opacity:.72;margin-left:auto;padding:4px 8px;border:1px dashed currentColor;border-radius:999px;white-space:nowrap}
.runtimeStatus[data-swap-active="true"]{font-weight:700;opacity:1}
@media(max-width:760px){.runtimeStatus{font-size:10px;max-width:48vw;overflow:hidden;text-overflow:ellipsis}}

/* v20.9.22 compact persistent swap bar */
.swapDiscoverBanner{padding:12px 14px!important;margin:8px 0 14px!important;display:flex!important;align-items:center;gap:10px;flex-wrap:wrap;border:2px dashed #9b63d6!important;border-radius:14px!important;background:#fbf7ff!important}.swapDiscoverBanner>strong{margin-right:4px}.swapDiscoverBanner>.muted{flex:1;min-width:240px;margin:0}.swapDiscoverBanner .swapCancelBtn{margin-left:auto}.triprow.swapTarget{outline:2px solid #9b63d6;outline-offset:3px;border-radius:12px}

/* REVIEW r1: dev-only and not-yet-built UI hidden from users (nothing removed; ?debug=1 shows dev chrome) */
html:not(.debug) .runtimeStatus,html:not(.debug) .dbg{display:none}
#language.languageDisabled{display:none}
.toggleGroup button[data-value="transit"][disabled]{display:none}
.comingSoon{display:none}
footer a{color:inherit;text-decoration:underline}

/* v20.9.23: opening-hours status on trip cards */
.hoursWarn{color:#a1493f;font-weight:600}
.hoursOk{color:#3d7a5f}
.hoursUnknown{color:#7d7a91}
.planWarn{margin:8px 0;padding:10px 12px;border-radius:12px;background:#fdf0ee;color:#a1493f;font-weight:600;font-size:14px}
