:root{color-scheme:dark;--bg:#070d1a;--panel:#101d35;--blue:#234dcc;--royal:#153cb0;--line:#2c4167;--text:#f0f5ff;--muted:#b5c4de;--gold:#f3d27d;font-family:Arial,"Noto Sans KR",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.55}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{min-height:42px;padding:8px 13px;background:#162641;border:1px solid var(--line);border-radius:10px;cursor:pointer}button:hover{background:#203859}button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.primary{background:var(--blue);border-color:#5279e3}.primary:hover{background:#315cdf}.quiet{background:transparent;border-color:transparent}.small{font-size:12px;padding:7px 10px}a{color:#bdcfff}h1,h2,h3,p{margin-top:0}h1{font-size:18px;margin-bottom:0}h2{font-size:17px;margin-bottom:0}h3{font-size:15px;margin-bottom:6px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}[hidden]{display:none!important}.topbar{display:flex;align-items:center;gap:20px;padding:14px 24px;background:linear-gradient(105deg,#183fb8,#132a68);border-bottom:1px solid #3f62b1}.brand{color:#fff;font-size:27px;font-weight:700;text-decoration:none;letter-spacing:-1.5px}.brand span{font-size:12px;font-weight:400;letter-spacing:0}.header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.header-actions button{background:#193672;border-color:#5a75ab;font-size:12px}.language select{background:#102656;border:1px solid #5573ad;border-radius:9px;padding:8px;max-width:90px;min-height:42px}.tripbar{display:flex;gap:12px;align-items:center;padding:10px 24px;background:#101d37}.tripbar button{display:flex;align-items:center;gap:10px;min-width:0;max-width:75%;text-align:left}#trip-label{overflow-wrap:anywhere}#save-state{font-size:11px;color:var(--muted);margin-left:auto}.pin{color:var(--gold);font-size:20px}#tabs{display:flex;gap:6px;padding:8px 24px;border-bottom:1px solid var(--line);background:#091529}#tabs button{background:transparent;border-color:transparent}#tabs button[aria-pressed=true]{background:#203f91;border-color:#4e70b4}#count{font-size:11px;padding:2px 6px;border-radius:5px;background:#365da9}.workspace{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(310px,1fr);max-width:1440px;margin:auto;align-items:start}.explore-pane{padding:24px 24px 0;min-width:0}.plan-pane{padding:24px;min-width:0;border-left:1px solid var(--line);background:#0c172a;min-height:540px}.section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#a5bceb;margin:0 0 4px}.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.category{position:relative;padding:0;overflow:hidden;text-align:left;aspect-ratio:1.16;border-radius:12px;background:#21385f;border:1px solid #466298;isolation:isolate}.category img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}.category:hover img{transform:scale(1.05)}.category::after{content:"";position:absolute;inset:30% 0 0;background:linear-gradient(transparent,#050b1bf0);z-index:0}.category span{position:absolute;bottom:9px;left:10px;right:8px;font-size:13px;font-weight:600;z-index:1}.category[aria-pressed=true]{outline:2px solid var(--gold);outline-offset:2px}.image-caption{font-size:10px;color:#9eafce;margin:7px 0 18px}.welcome{padding:24px 0;display:flex;align-items:center;gap:14px}.welcome p{color:var(--muted);font-size:13px;margin:0}.imo-avatar{display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex-shrink:0;border-radius:17px;background:#254ec2;font-size:19px;font-weight:700}.turn{margin:18px 0 22px}.bubble{padding:12px 15px;border-radius:14px;background:#142747;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:13px}.bubble.user{background:#224598;margin-left:12%;width:fit-content;max-width:88%;margin-left:auto}.bubble.pending{color:var(--muted)}.bubble.reply{background:transparent;padding:0 3px}.results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.place-card{min-width:0;border:1px solid var(--line);border-radius:14px;background:#101d33;overflow:hidden}.place-photo{display:block;width:100%;padding:0;border:0;border-radius:0;aspect-ratio:1.55;background:#1a3155}.place-photo img{width:100%;height:100%;object-fit:cover;display:block}.photo-missing{aspect-ratio:2.4;background:#132741;display:flex;align-items:center;justify-content:center;color:#abbddc;font-size:12px}.place-body{padding:12px}.place-body p{color:var(--muted);font-size:12px;margin-bottom:8px;overflow-wrap:anywhere}.place-body h3{overflow-wrap:anywhere}.place-body .meta{font-size:10px;color:#a8bbdc;max-height:3.1em;overflow:hidden}.place-actions,.inline-actions{display:flex;gap:7px;flex-wrap:wrap}.place-actions button,.place-actions a{min-height:36px;padding:6px 9px;font-size:12px;border-radius:8px}.place-actions a{display:flex;align-items:center;text-decoration:none;border:1px solid var(--line)}.place-actions .primary{flex:1}.composer-dock{position:sticky;bottom:0;padding:12px 0 max(12px,env(safe-area-inset-bottom));background:var(--bg);z-index:3}#journey-composer{display:flex;gap:7px;align-items:flex-end;padding:6px;background:#11213b;border:1px solid #3d5b87;border-radius:15px}#journey-message{resize:none;min-height:42px;max-height:140px;width:100%;background:transparent;border:0;padding:10px 8px;font-size:16px}#journey-composer button{flex-shrink:0;font-size:12px}#network-state{font-size:12px;color:var(--gold);padding-bottom:3px}.day-filter{display:flex;gap:6px;overflow-x:auto;margin:14px 0;padding:3px 0 9px}.day-filter button{font-size:12px;white-space:nowrap;flex-shrink:0;min-height:35px}.day-filter button[aria-pressed=true]{background:#2b4ca5;border-color:#6e8dd0}.plan-empty{padding:28px 14px;text-align:center;border:1px dashed #38517a;border-radius:12px;color:var(--muted);font-size:13px}.summary-line{font-size:12px;color:var(--muted);margin:6px 0}.warning{color:var(--gold)!important}.stop-row{padding:14px 0;border-bottom:1px solid var(--line)}.stop-top{display:flex;align-items:flex-start;gap:10px}.stop-number{font-size:12px;color:#d2dfff;background:#234b9d;border-radius:7px;padding:4px 7px;flex-shrink:0}.stop-title{min-width:0;flex:1}.stop-title h3{margin-bottom:4px}.stop-title p{font-size:12px;color:var(--muted);margin-bottom:8px}.stop-row .inline-actions button{font-size:11px;min-height:34px;padding:6px 9px}.stop-row.done{opacity:.68}.plan-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.plan-controls button{flex:1;font-size:12px;white-space:nowrap}.plan-controls .primary{flex-basis:100%}.workspace.today-view{display:block;max-width:720px}#today-panel{padding:24px}.guide-hero{background:linear-gradient(140deg,#163879,#112046);border:1px solid #456da6;border-radius:20px;padding:24px}.guide-hero img{width:100%;max-height:240px;object-fit:cover;border-radius:12px;margin-bottom:15px}.guide-hero h3{font-size:26px}.guide-hero p{color:#c4d2ea;margin-bottom:10px}.guide-label{font-size:12px;color:var(--gold)!important;letter-spacing:.2px}.guide-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:15px 0}.guide-actions button{min-height:46px}.guide-actions .primary{grid-column:1/-1}.today-bottom{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.today-bottom button{flex:1}#guide-day{background:#172a4a;border:1px solid var(--line);border-radius:8px;padding:8px}#reminder-status{font-size:12px;color:var(--muted)}dialog{width:min(540px,calc(100% - 24px));max-height:85dvh;border:1px solid #486491;border-radius:18px;background:#101e36;color:var(--text);padding:20px;overflow:auto}dialog::backdrop{background:#020714bb}.modal-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.modal-heading button{font-size:23px;padding:1px 13px}.field{display:flex;flex-direction:column;gap:6px;font-size:12px;margin-bottom:14px}.field input,.field select,.field textarea{width:100%;background:#0a152a;border:1px solid #3d5681;border-radius:8px;min-height:44px;padding:10px;font-size:16px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.help{color:var(--muted);font-size:12px;margin-bottom:13px}.modal-buttons{display:flex;flex-wrap:wrap;gap:8px}.modal-buttons button{flex:1;min-width:100px}.modal-photo{max-width:100%;max-height:60dvh;object-fit:contain;border-radius:10px}#modal-error{color:var(--gold);font-size:13px;margin:12px 0 0}.saved-trip{width:100%;text-align:left;margin-bottom:9px;display:flex;justify-content:space-between;gap:10px}.toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);max-width:min(480px,90%);z-index:20;background:#25477f;border:1px solid #7197d4;padding:12px 18px;border-radius:12px;font-size:13px;box-shadow:0 8px 25px #0005}.route-link{display:block;background:var(--blue);border-radius:10px;padding:12px;text-align:center;text-decoration:none}.progress-label{font-size:12px;color:var(--muted);margin:14px 0}.no-image .place-photo{display:none}.language-note{font-size:12px;color:var(--gold)}
@media(min-width:761px){#plan-panel[hidden]{display:block!important}.workspace.today-view #plan-panel[hidden]{display:none!important}.workspace.plan-focus{grid-template-columns:minmax(0,1fr) minmax(350px,1.25fr)}}
@media(max-width:760px){body{font-size:13px}.topbar{padding:11px 12px;gap:10px}.brand{font-size:22px}.brand span{display:none}h1{font-size:16px}.header-actions{gap:5px}.header-actions button{padding:7px 9px;font-size:11px}.language select{max-width:66px;font-size:12px;padding:6px}.tripbar{padding:8px 12px;gap:8px}.tripbar button{max-width:80%;font-size:12px;padding:7px 9px}#save-state{font-size:10px}#tabs{padding:7px 10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}#tabs button{font-size:12px;padding:7px 5px}.workspace{display:block}.explore-pane,.plan-pane,#today-panel{padding:16px 12px 0}.plan-pane{border-left:0;min-height:0;padding-bottom:25px}.section-heading{margin-bottom:12px}h2{font-size:15px}.eyebrow{font-size:9px}.category-grid{gap:7px}.category{aspect-ratio:.92}.category span{font-size:11px;left:7px;bottom:7px;right:5px}.results-grid{gap:9px}.place-body{padding:10px}.place-body h3{font-size:14px}.place-actions{gap:5px}.place-actions button,.place-actions a{font-size:11px;padding:6px 7px;min-height:38px}.place-actions .primary{flex-basis:100%}.place-body .meta{font-size:10px}.composer-dock{margin-top:10px}.guide-hero{padding:18px}.guide-hero h3{font-size:23px}.toast{bottom:80px}#journey-composer{gap:4px}#journey-composer button{padding:8px;font-size:11px}.fields{gap:0 10px}.today-bottom{padding-bottom:24px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{body{background:white;color:black}.topbar,.tripbar,#tabs,.explore-pane,.plan-controls,.inline-actions,.day-filter,#today-panel,.toast,dialog{display:none!important}.workspace{display:block}.plan-pane{display:block!important;background:white;color:black;border:0;padding:0}.plan-pane .section-heading button{display:none}.stop-row{break-inside:avoid}.stop-title p,.summary-line{color:#333}.warning{color:#333!important}}

.pin{display:inline-block;flex:0 0 11px;width:11px;height:11px;border:2px solid #aac3ff;border-radius:50% 50% 50% 0;transform:rotate(-45deg);margin:0 5px 2px 2px}
/* V61: intrinsic input widths must not expand a narrow phone's grid. */
.field,.fields>*{min-width:0}.field input,.field select,.field textarea{min-width:0;max-width:100%}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}#journey-message{min-width:0}.setup-modal{width:min(480px,calc(100% - 16px));height:min(560px,calc(100dvh - 20px));max-height:calc(100dvh - 20px);padding:16px;overflow:hidden}.setup-modal[open]{display:flex;flex-direction:column}.setup-modal .modal-heading{flex:none;margin-bottom:10px;min-height:36px}.setup-modal .modal-heading h2{font-size:17px}.setup-modal .modal-heading button{min-height:36px}.setup-modal #modal-content{min-height:0;flex:1;display:flex;flex-direction:column}.setup-layout{display:flex;flex-direction:column;flex:1;min-height:0}.setup-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;scrollbar-width:thin}.setup-footer{flex:none;padding-top:10px;border-top:1px solid var(--line);margin-top:8px}.setup-footer button{flex:1;min-width:0;min-height:44px}.setup-actions{display:flex;align-items:center;gap:6px}.setup-actions>*{min-width:0}.setup-actions button{flex:1}.setup-where{margin:8px 0 12px}.setup-label{font-size:12px;color:var(--muted);margin-bottom:5px}.setup-selected{width:100%;text-align:left;min-height:44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#152d58;border-color:#5b7dc1}.setup-where .setup-actions{margin-top:8px}.setup-where .small{font-size:11px;padding:5px;line-height:1.25;min-height:42px}.setup-context{font-size:11px;color:#c4d3ed;line-height:1.4;margin:5px 0}.setup-date-days{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:10px}.setup-date-days .field{margin:0}.setup-date-days input{font-size:14px;padding:8px 4px;min-height:44px}.setup-date-days .quiet{padding:3px 0;min-height:30px;font-size:11px;text-align:left}.setup-counter{border:1px solid var(--line);border-radius:8px;background:#0a152a;height:44px;gap:0}.setup-counter button{flex:none;width:33px;padding:0;background:transparent;border:0;border-radius:6px;min-height:42px;font-size:22px}.setup-counter output{flex:1;text-align:center;font-size:12px;line-height:1.1}.setup-advanced{min-height:34px;font-size:12px;margin-top:4px;padding:5px 0}.setup-modal .help{font-size:12px;margin-bottom:8px}.setup-modal #modal-error{font-size:12px;flex:none;max-height:50px;overflow:auto;margin:7px 0 0}.setup-modal #modal-error:empty{display:none}.setup-tastes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.setup-tastes .category{aspect-ratio:.83}.setup-tastes .category span{font-size:11px;left:6px;right:4px;bottom:6px}.setup-area-card{display:flex;align-items:center;gap:12px;width:100%;padding:8px;margin:8px 0;text-align:left;min-height:88px}.setup-area-card img{width:84px;height:68px;object-fit:cover;border-radius:8px;flex-shrink:0}.setup-area-card>span{display:flex;flex-direction:column;gap:5px}.setup-area-card strong{font-size:15px}.setup-area-card small{font-size:12px;color:var(--muted);line-height:1.35}.setup-regions{margin-top:10px}.setup-region-row{width:100%;display:flex;align-items:center;gap:8px;text-align:left;margin-bottom:6px;min-height:44px}.setup-region-row>span:first-child{flex:1}.setup-region-row small{font-size:11px;color:var(--muted)}.setup-search{display:flex;align-items:end;gap:7px}.setup-search .field{flex:1;min-width:0;margin-bottom:0}.setup-search input{font-size:16px;min-width:0}.setup-search>button{flex:none;min-height:44px;padding:7px 11px}.setup-places{margin-top:10px}.setup-place-row{display:flex;flex-direction:column;width:100%;text-align:left;gap:5px;margin-bottom:8px}.setup-place-row small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.setup-confirm p{overflow-wrap:anywhere}.setup-confirm h3{font-size:18px}
@media(max-width:360px){.setup-modal{padding:12px}.setup-modal .help{font-size:11px}.setup-where{margin-top:4px;margin-bottom:10px}.setup-date-days{gap:8px}.setup-where .small{font-size:10px}.setup-area-card img{width:72px}.setup-modal .field input{max-width:100%}}
@media(max-height:500px){.setup-modal{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}.setup-modal .modal-heading{margin-bottom:4px}.setup-footer{padding-top:5px;margin-top:5px}}

/* The main chat owns its composer. Planner controls stay outside the frame. */
#journey-app{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.topbar,.tripbar,#tabs{flex:none}.workspace{flex:1;min-height:0;width:100%;overflow:auto}.explore-pane{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden}.explore-pane>.section-heading,.category-grid,.image-caption,.main-chat-toolbar{flex:none}#main-chat-frame{display:block;flex:1;min-height:140px;width:100%;border:0;background:var(--bg);border-radius:12px}.main-chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0}.main-chat-toolbar button,.main-chat-toolbar a{font-size:11px;min-height:32px;display:flex;align-items:center}.main-chat-toolbar a{color:var(--muted)}#main-chat-status{font-size:12px;color:var(--muted);padding:8px}.chat-focused>.section-heading,.chat-focused>.category-grid,.chat-focused>.image-caption{display:none}.legacy-chat-elements{display:none!important}.plan-pane{overflow:auto;height:100%;min-height:0}.category{max-height:130px}.workspace #today-panel{overflow:auto}.workspace.plan-focus,.workspace.today-view{overflow:auto}
@media(max-width:760px){.explore-pane{padding:8px 10px 0}.section-heading{margin-bottom:7px}.category-grid{gap:5px}.category{max-height:76px;aspect-ratio:1}.image-caption{margin:5px 0;font-size:9px}.main-chat-toolbar{margin:0}.main-chat-toolbar button,.main-chat-toolbar a{min-height:30px;font-size:10px}#main-chat-frame{min-height:120px}.plan-pane{height:auto;min-height:100%}}
@media print{#journey-app{height:auto;overflow:visible}.workspace,.plan-pane{height:auto;overflow:visible}}

/* IMO_JOURNEY_RESTORE_V62: one full-width conversation; separate, reversible sheets. */
#journey-app{height:100dvh;min-height:0}
.topbar{padding:9px 18px}.tripbar{padding:6px 18px}#tabs{padding:4px 18px}
.workspace,.workspace.plan-focus,.workspace.today-view{display:flex;flex-direction:column;align-items:stretch;max-width:none;overflow:hidden;min-height:0;width:100%}
#explore-panel{padding:8px 18px 0;flex:1;min-height:0;height:auto}
#explore-panel>.section-heading{display:none}#explore-panel .eyebrow{display:none}
#categories{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:minmax(110px,1fr);gap:8px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin;overscroll-behavior-x:contain}
#categories .category{height:94px;max-height:none;aspect-ratio:auto;min-width:0}
.category img{object-fit:cover;aspect-ratio:auto}.category span{overflow-wrap:anywhere}
#explore-panel>.image-caption{font-size:10px;margin:3px 0}
.main-chat-toolbar{gap:8px;margin:2px 0 5px;flex-wrap:wrap}
.main-chat-toolbar button,.main-chat-toolbar a{font-size:12px;min-height:40px;padding:6px 10px}
.main-chat-toolbar a{margin-left:auto}#chat-expand{border-color:#5279e3}
#main-chat-frame{flex:1 1 0;min-height:0;height:0;border-radius:12px 12px 0 0}
#main-chat-status:empty,#network-state:empty{display:none}
#main-chat-status{flex:none;margin:0;padding:5px 8px}
#journey-app.chat-expanded>.topbar,#journey-app.chat-expanded>.tripbar,#journey-app.chat-expanded>#tabs{display:none}
#journey-app.chat-expanded #explore-panel>.section-heading,#journey-app.chat-expanded #categories,#journey-app.chat-expanded #explore-panel>.image-caption{display:none}
.journey-sheet{width:min(1120px,calc(100% - 24px));height:calc(100dvh - 24px);max-width:none;max-height:calc(100dvh - 24px);padding:0;border-radius:18px;overflow:hidden}
.journey-sheet[open]{display:flex;flex-direction:column}
.sheet-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;flex:none;padding:12px 20px;border-bottom:1px solid var(--line);background:#15316b}
.sheet-heading button{flex:none;min-height:44px}.sheet-heading h2{font-size:19px}
.journey-sheet #plan-panel,.journey-sheet #today-panel{flex:1;min-height:0;min-width:0;height:auto;overflow:auto;overscroll-behavior:contain;padding:20px;border:0}
#journey-sheet #plan-panel[hidden],#journey-sheet #today-panel[hidden]{display:none!important}
#plan-summary{display:flex;flex-wrap:wrap;gap:3px 18px;padding:10px 14px;background:#132440;border-radius:12px}
#plan-summary:empty{display:none}.summary-line{font-size:13px;margin:2px 0}
.stop-row{padding:16px;margin:12px 0;border:1px solid var(--line);background:#111f38;border-radius:14px}
.stop-title h3{font-size:18px}.stop-title p{font-size:14px;overflow-wrap:anywhere}
.stop-row .inline-actions button{min-height:44px;font-size:13px;padding:7px 14px}
.plan-controls{position:sticky;bottom:-20px;z-index:1;padding:12px 0 max(12px,env(safe-area-inset-bottom));background:#0c172a}
.plan-controls button{min-height:46px;font-size:14px}.plan-controls .primary{flex-basis:auto}
#photo-sheet{width:min(960px,calc(100% - 24px))}
.photo-sheet-body{flex:1;min-height:0;overflow:auto;padding:20px;overscroll-behavior:contain}
#photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#photo-grid .category{width:100%;height:auto;aspect-ratio:1.25;max-height:none;min-height:100px}
#photo-grid .category span{font-size:15px}
#modal{width:min(760px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:20px}
#modal>.modal-heading{position:sticky;top:-20px;z-index:2;background:#101e36;padding:12px 0;margin-bottom:12px}
#modal .modal-heading button{font-size:14px;min-height:44px}
#modal.setup-modal{width:min(760px,calc(100% - 24px));height:min(760px,calc(100dvh - 24px))}
#modal.setup-modal>.modal-heading{position:static;padding:0}
#notice{pointer-events:auto}button,a{touch-action:manipulation}
@media(max-width:760px){
 .topbar{padding:7px 10px;gap:8px}.tripbar{padding:5px 10px}#tabs{padding:3px 8px}
 #save-state{max-width:70px}.tripbar button{max-width:calc(100% - 76px)}
 #explore-panel{padding:5px 8px 0}#explore-panel h2{font-size:14px}#more-categories{font-size:11px;min-height:36px;padding:4px 7px}
 #categories{grid-auto-columns:88px;gap:6px}#categories .category{height:78px}
 .main-chat-toolbar{gap:4px}.main-chat-toolbar button,.main-chat-toolbar a{font-size:11px;min-height:40px;padding:5px 8px}
 .journey-sheet,#photo-sheet{width:100%;height:100dvh;max-height:100dvh;max-width:100%;margin:0;border:0;border-radius:0}
 .sheet-heading{padding:9px 12px;padding-top:max(9px,env(safe-area-inset-top))}.sheet-heading h2{font-size:17px}
 .journey-sheet #plan-panel,.journey-sheet #today-panel{padding:12px}
 .plan-controls{bottom:-12px;gap:6px}.plan-controls button{font-size:12px;padding:7px}.plan-controls .primary{flex-basis:100%}
 .photo-sheet-body{padding:12px}#photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#photo-grid .category{aspect-ratio:.9}#photo-grid .category span{font-size:12px}
 #modal,#modal.setup-modal{width:calc(100% - 12px);max-height:calc(100dvh - 12px);padding:14px}#modal.setup-modal{height:calc(100dvh - 12px)}
 #modal>.modal-heading{top:-14px}.stop-row{padding:12px}.stop-title h3{font-size:16px}
}
@media(max-height:580px){
 #explore-panel>.section-heading,#explore-panel>#categories,#explore-panel>.image-caption{display:none}
 .topbar{padding-top:3px;padding-bottom:3px}.tripbar{padding-top:2px;padding-bottom:2px}#tabs{padding-top:2px;padding-bottom:2px}
}
@media print{
 #journey-app{height:auto;overflow:visible}#journey-sheet{position:static;display:block!important;inset:auto;margin:0;width:100%;height:auto;max-height:none;overflow:visible;border:0;background:white;color:black}
 #journey-sheet::backdrop{display:none}#journey-sheet>.sheet-heading,#photo-sheet,#modal{display:none!important}
 #journey-sheet #plan-panel{display:block!important;height:auto;overflow:visible;padding:0;background:white;color:black}
 #plan-summary,.stop-row{background:white;color:black}.stop-row{border-color:#bbb;box-shadow:none;break-inside:avoid}#journey-sheet .plan-controls,#journey-sheet .inline-actions{display:none!important}
 .workspace{display:block;height:auto;overflow:visible}.stop-title p,.summary-line{color:#333}
}

/* Keep travel actions visible in expanded chat; use a single compact row. */
#journey-app.chat-expanded>#tabs{display:flex;flex:0 0 auto;padding:4px 18px}
#journey-app.chat-expanded>#tabs button{min-height:40px}
#journey-app.chat-expanded .main-chat-toolbar{margin-top:0}
@media(max-width:760px){#journey-app.chat-expanded>#tabs{padding:3px 8px}}
@media print{#journey-app.chat-expanded>#tabs{display:none!important}}

#chat-tool-title,#chat-tool-close{display:none}
#journey-app.journey-tool-open #explore-panel{position:fixed;inset:0;z-index:50;height:100dvh;width:100%;box-sizing:border-box;padding:0;background:#080f1d}
#journey-app.journey-tool-open #explore-panel>:is(.section-heading,#categories,.image-caption){display:none!important}
#journey-app.journey-tool-open .main-chat-toolbar{flex:none;display:flex;flex-wrap:nowrap;align-items:center;gap:12px;min-height:58px;padding:8px 12px;margin:0;background:#15316b;border-bottom:1px solid #5277ac}
#journey-app.journey-tool-open .main-chat-toolbar>:not(#chat-tool-title):not(#chat-tool-close){display:none!important}
#journey-app.journey-tool-open #chat-tool-title{display:block;flex:1;min-width:0;font-size:17px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#journey-app.journey-tool-open #chat-tool-close{display:inline-flex;flex:none;align-items:center;min-height:44px;font-size:14px;background:#183765;color:#fff;border:1px solid #a6c4ef;padding:8px 14px}
#journey-app.journey-tool-open #main-chat-frame{border-radius:0}
.journey-search-status{flex:none;margin:0;padding:8px 12px;background:#15316b;color:#fff;font-size:13px}
.journey-search-status[hidden]{display:none}
@media(max-width:760px){#journey-app.journey-tool-open .main-chat-toolbar{padding-top:max(8px,env(safe-area-inset-top))}#journey-app.journey-tool-open #chat-tool-title{font-size:15px}#journey-app.journey-tool-open #chat-tool-close{font-size:13px;padding:8px 10px}}
@media print{#journey-app.journey-tool-open #explore-panel{display:none!important}}
