@font-face{font-family:Manrope;src:url('assets/Manrope.ttf') format('truetype');font-weight:200 800;font-display:swap}
:root{--paper:#fcfbf7;--ink:#182d46;--muted:#65717b;--blue:#244ecb;--coral:#bf4e35;--line:#e3e4de;--softblue:#eaf0ff;--peach:#fff0e7;--radius:14px;--ease:cubic-bezier(.2,.75,.25,1)}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#e8eeed;font-family:Manrope,Arial,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none;padding:0;-webkit-tap-highlight-color:transparent}button:active{transform:scale(.975)}button:focus-visible,input:focus-visible{outline:3px solid var(--blue);outline-offset:3px}button{transition:background .16s,color .16s,transform .12s}button:hover{color:var(--blue)}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,p{margin:0}strong{font-weight:700}small{font-size:11px}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}[x-cloak]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.app{position:relative;background:var(--paper);width:min(100%,390px);height:100dvh;min-height:760px;max-height:940px;margin:0 auto;overflow:hidden;font-variant-numeric:tabular-nums}.view{height:100%;position:relative}.overview{display:flex;flex-direction:column}.topbar{height:59px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:4px 22px 0}.back-label{font-weight:600;font-size:14px;letter-spacing:-.1px}.icon-button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%}.icon-button:hover,.round-button:hover{background:var(--softblue)}.trip-title{padding:12px 24px 19px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.4px}.trip-title h1{font-size:40px;line-height:1.24;letter-spacing:-1.9px;font-weight:550;margin:8px 0 9px;white-space:nowrap}.title-dot{color:var(--blue)}.trip-title p{font-size:14px;color:var(--muted)}.city-hero{height:218px;position:relative;flex-shrink:0;overflow:hidden}.city-hero>img{width:100%;height:100%;object-fit:cover}.hero-caption{position:absolute;bottom:0;left:0;right:0;padding:8px 23px;background:#244254;color:#e9f0ed;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px}.companions{display:flex;align-items:center;margin:19px 23px 21px;gap:12px}.avatar-stack{display:flex;align-items:center;padding-right:3px;height:44px}.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:33px;height:33px;border:2px solid var(--paper);font-weight:750;font-size:11px;flex-shrink:0}.avatar-stack .avatar+.avatar{margin-left:-12px}.you{background:#e8d4b1;color:#514733}.alex{background:#cae0d3;color:#39564b}.jamie{background:#e9c6be;color:#74443b}.companions strong{font-size:12px;letter-spacing:-.2px}.companions p{font-size:11px;color:var(--muted);margin-top:4px}.round-button{margin-left:auto;width:36px;height:44px;display:grid;place-items:center;border-radius:50%}.round-button svg{width:20px;height:20px}.days-heading{padding:0 24px 12px;display:flex;justify-content:space-between;align-items:center}.days-heading h2{font-size:17px;font-weight:750;letter-spacing:-.4px}.days-heading>span{font-size:11px;color:var(--muted)}.trip-days{padding:0 23px;flex:1;min-height:0;overflow-y:auto;scrollbar-width:none}.trip-day{display:flex;width:100%;text-align:left;gap:15px;align-items:center;min-height:72px;border-top:1px solid var(--line)}.trip-day:hover{background:#f2f5f1}.day-number{width:31px;flex-shrink:0;text-align:center}.day-number small{display:block;font-size:8px;color:var(--muted);letter-spacing:.6px;font-weight:650;margin-bottom:3px}.day-number b{font-size:24px;line-height:1;font-weight:550;letter-spacing:-1px}.day-summary{flex:1;min-width:0}.day-summary strong{font-size:13px;display:block;letter-spacing:-.2px}.day-summary>span{display:block;font-size:10px;color:var(--muted);margin-top:5px}.day-preview{width:43px;height:45px;flex-shrink:0;overflow:hidden;border-radius:7px}.day-preview svg{height:100%;width:100%;stroke:none}.chevron{width:14px;height:14px;transform:rotate(180deg);color:#6b797e}.bottom-nav{height:74px;flex-shrink:0;display:flex;border-top:1px solid var(--line);padding:7px 32px 9px;justify-content:space-between;background:var(--paper)}.nav-item{position:relative;display:flex;align-items:center;flex-direction:column;width:66px;gap:4px;color:#707b83;font-size:10px;font-weight:600;padding:7px 0;border-radius:12px}.nav-item svg{width:22px;height:22px}.nav-item.selected{color:var(--blue);background:var(--softblue)}.nav-dot{width:4px;height:4px;border-radius:50%;background:var(--coral);position:absolute;top:6px;right:19px}.back-button{display:flex;align-items:center;gap:7px;height:44px;font-size:16px;font-weight:650;margin-left:-6px}.back-button svg{width:20px;height:20px}.mini-members{display:flex;height:44px;align-items:center;padding:0 1px 0 4px}.mini-members .avatar+.avatar{margin-left:-9px}.mini-members .avatar{width:31px;height:31px;font-size:10px}.date-strip{position:relative;flex-shrink:0;display:flex;margin:10px 22px 0;background:#eeefea;border-radius:13px;padding:4px;height:59px}.date-strip button{position:relative;z-index:1;width:25%;font-size:11px;color:var(--muted);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border-radius:10px}.date-strip button.active{color:var(--blue)}.date-strip b{font-size:12px;font-weight:750}.date-slider{position:absolute;left:4px;top:4px;width:calc((100% - 8px)/4);height:51px;background:white;box-shadow:0 1px 3px #182d4610;border-radius:10px;transition:transform .24s var(--ease)}.day-title{height:91px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;padding:15px 23px 11px;gap:8px}.day-title .eyebrow{font-size:9px;color:var(--muted);letter-spacing:1px;margin-bottom:7px}.day-title h1{font-size:23px;line-height:1.2;font-weight:700;letter-spacing:-.9px}.text-button{font-size:14px;color:var(--blue);font-weight:750;height:44px;padding:0 3px;white-space:nowrap}.small-grip{font-family:Arial,sans-serif;font-size:17px;vertical-align:-1px;margin-right:2px}.edit-label{font-size:10px;color:var(--coral);font-weight:750;white-space:nowrap}.map-panel{position:relative;flex-shrink:0;height:210px;width:100%;overflow:hidden;background:#eef0e6}.map-drawing{height:100%;width:100%}.map-drawing>svg{width:100%;height:100%;stroke:none}.map-summary{position:absolute;bottom:15px;left:22px;display:flex;gap:8px;align-items:center;border-radius:20px;background:#fffefa;padding:9px 14px;font-size:11px;box-shadow:0 2px 8px #18334212}.map-summary svg{width:16px;height:16px;color:var(--blue)}.map-summary strong{font-size:12px}.map-summary i{width:3px;height:3px;background:#9dabae;border-radius:50%;margin:0 2px}.map-scale{position:absolute;bottom:20px;right:17px;display:flex;align-items:center;gap:5px;font-size:8px;color:#506878}.map-scale span{width:40px;height:5px;border:1px solid #506878;border-top:0}.route-state{position:absolute;top:3px;left:22px;color:var(--coral);font-size:12px;font-weight:700;background:#fff6ed;border-radius:12px;padding:3px 10px;line-height:16px;display:flex;align-items:center;gap:5px}.live-dot,.tiny-dot{display:inline-block;border-radius:50%;background:#658374;width:4px;height:4px;vertical-align:2px;margin-right:4px}.live-dot{background:var(--coral);margin:0;width:5px;height:5px}.plan-section{padding:0 23px;overflow-y:auto;scrollbar-width:thin;min-height:0;flex:1}.plan-heading{height:52px;display:flex;align-items:center;justify-content:space-between}.plan-heading strong{font-size:13px}.plan-heading>span{font-size:10px;color:var(--muted)}.stop-row{position:relative;display:flex;align-items:center;min-height:80px;gap:12px;border-radius:12px;transition:background .18s,opacity .18s}.stop-row.selected{background:#edf1fb}.stop-number{align-self:center;width:23px;height:23px;background:var(--blue);color:white;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:750;flex-shrink:0;z-index:1}.stop-main{text-align:left;flex:1;min-width:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:3px 0}.stop-time{font-size:10px;color:var(--muted);font-weight:600;display:block;margin-bottom:4px}.stop-main>strong{display:block;font-size:14px;letter-spacing:-.35px;line-height:1.3}.stop-meta{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:4px;margin-top:6px}.stop-meta svg{width:12px;height:12px}.stop-art{height:57px;width:56px;flex-shrink:0;overflow:hidden;border-radius:8px}.stop-art svg{width:100%;height:100%;stroke:none}.transit{height:27px;display:flex;gap:6px;align-items:center;position:relative;color:var(--muted);font-size:9px;padding-left:36px}.transit svg{height:12px;width:12px;stroke-width:1.5}.transit-line{position:absolute;top:-1px;bottom:-1px;left:11px;border-left:1px dashed #c5cfda}.day-bottom{position:relative;flex-shrink:0;background:var(--paper);border-top:1px solid var(--line);min-height:72px;padding:11px 23px 15px}.day-footer{display:flex;align-items:center;justify-content:space-between;height:44px;gap:7px}.footer-note{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:7px}.footer-note svg{width:17px;height:17px;color:#54796a}.add-stop{width:40px;height:40px;border-radius:50%;background:var(--softblue);color:var(--blue);font-size:26px;line-height:1;font-weight:400}.edit-footer{display:flex;gap:12px;align-items:center}.cancel-button{height:44px;flex:1;font-size:14px;font-weight:650}.primary-button{height:46px;border-radius:var(--radius);background:var(--blue);color:white;font-size:14px;font-weight:750;padding:0 26px;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .15s,transform .12s}.primary-button:hover{color:white;background:#183eae}.primary-button svg{width:17px;height:17px}.editing .primary-button{background:var(--coral)}.editing .primary-button:hover{background:#a7412c}.edit-footer .primary-button{flex:2}.editing .stop-number{background:var(--coral)}.editing .stop-main{pointer-events:none}.editing .map-summary svg{color:var(--coral)}.drag-handle{height:64px;width:44px;flex-shrink:0;display:grid;place-items:center;touch-action:none;cursor:grab;border-radius:9px}.drag-handle:hover{background:var(--peach)}.grip-dots{width:12px;height:18px;display:block;background:radial-gradient(circle,#8e9ba5 1.5px,transparent 1.8px) 0 0/6px 6px}.drag-placeholder{background:var(--peach);outline:1.5px dashed #d6917e;outline-offset:-1px}.drag-placeholder .stop-main,.drag-placeholder .stop-number,.drag-placeholder .drag-handle{opacity:.14}.drag-ghost{position:fixed;left:0;top:0;z-index:5;pointer-events:none;display:flex;align-items:center;gap:15px;background:#fffaf5;box-shadow:0 3px 6px #55382a18,0 13px 28px #55382a23;border:1px solid #d99078;border-radius:12px;padding:12px 15px;min-height:85px;rotate:-2deg;will-change:transform}.drag-ghost>div{flex:1}.drag-ghost strong{display:block;font-size:14px;letter-spacing:-.3px}.ghost-arrow{font-size:23px;color:var(--coral);width:19px}.ghost-caption{font-size:9px;color:var(--coral);display:block;margin-top:5px}.save-error{font-size:11px;line-height:1.5;color:#a53d27;margin-top:8px}.dialog-backdrop{position:absolute;inset:0;z-index:10;background:#14294058;display:flex;align-items:flex-end}.dialog{width:100%;background:var(--paper);border-radius:23px 23px 0 0;padding:10px 25px 29px;max-height:calc(100% - 35px);overflow-y:auto;box-shadow:0 -5px 30px #182d461a}.sheet-handle{width:36px;height:4px;background:#d2d8d3;border-radius:3px;margin:0 auto 12px}.dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.dialog header h2{font-size:23px;letter-spacing:-.6px;font-weight:650;max-width:270px;line-height:1.25}.dialog header .icon-button{margin-right:-12px;flex-shrink:0}.dialog-intro{font-size:13px;color:var(--muted);line-height:1.65;margin:4px 0 20px}.person{display:flex;align-items:center;gap:13px;margin:20px 0}.person .avatar{width:43px;height:43px;font-size:14px}.person strong{display:block;font-size:14px}.person small{color:var(--muted);font-weight:400}.person div>span{display:block;font-size:12px;color:var(--muted);margin-top:5px}.full{width:100%;margin-top:22px}.share-preview{background:#edf1e9;padding:19px;border-radius:12px;user-select:text}.share-preview>strong{font-size:20px;display:block;letter-spacing:-.6px}.share-preview>span{font-size:11px;display:block;margin-top:6px;color:var(--muted)}.share-preview>p{white-space:pre-line;font-size:12px;line-height:1.8;margin-top:17px}.copy-fallback{font-size:12px;color:var(--muted);margin-top:8px}.booking-item{display:flex;align-items:flex-start;gap:12px;padding:20px 0;border-bottom:1px solid var(--line)}.booking-item>svg{width:20px;height:20px;color:var(--blue);margin-top:2px}.booking-item>div{flex:1}.booking-item strong{font-size:13px}.booking-item span,.booking-item small{display:block;font-size:13px;color:var(--muted);line-height:1.6;margin-top:4px}.booking-item>b{font-size:10px;color:#4d7563;padding-top:3px}.detail-art{height:120px;width:100%;background:#e9eee7;border-radius:12px;margin:15px 0;overflow:hidden;text-align:center}.detail-art svg{width:120px;height:120px;stroke:none}.detail-meta{font-size:13px;color:var(--muted);margin-bottom:13px}.detail-booking{display:flex;gap:12px;background:var(--softblue);border-radius:12px;padding:16px;margin-bottom:20px}.detail-booking svg{width:20px;height:20px;color:var(--blue)}.detail-booking strong{font-size:13px}.detail-booking p,.detail-booking span{font-size:13px;color:var(--muted);margin-top:5px;display:block}form label{display:block;font-size:12px;font-weight:750;margin:15px 0 8px}form label>span{font-weight:400;color:var(--muted)}input{width:100%;padding:13px;border:1px solid #ccd3cd;border-radius:10px;background:white;color:var(--ink);font-size:16px;outline-offset:1px!important}.sheet-enter{transition:transform .3s var(--ease)}.sheet-leave{transition:transform .2s ease-in}.sheet-start{transform:translateY(100%)}.sheet-end{transform:translateY(0)}.entry{animation:arrive .4s var(--ease) both}.city-hero.entry{animation-delay:.05s}.companions.entry{animation-delay:.1s}.days-heading.entry,.trip-days.entry{animation-delay:.15s}@keyframes arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}.day-content-in{animation:arrive .22s var(--ease)}.route-stroke{animation:routeDraw .32s var(--ease) both}@keyframes routeDraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}.map-marker{cursor:pointer}.map-marker:focus{outline:none}.map-marker:focus-visible circle{stroke:var(--ink);stroke-width:3}.map-marker:hover circle{stroke:var(--ink);stroke-width:2}.map-marker text{font-family:Manrope,Arial,sans-serif}
@media(min-width:600px){body{padding:24px 0}.app{height:844px;box-shadow:0 8px 45px #344e5212}.app.embedded{margin:0;box-shadow:none}body:has(.embedded){padding:0;background:var(--paper)}}
@media(max-height:810px){.app{min-height:0}.city-hero{height:182px}.companions{margin-top:14px;margin-bottom:15px}.trip-title{padding-top:7px;padding-bottom:14px}.trip-day{min-height:68px}.day-title{height:87px}.map-panel{height:190px}.plan-section{max-height:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.drag-ghost{will-change:auto}}
/* Round 2: complete day rows and improve phone-size reading. */
.trip-title{padding-top:6px;padding-bottom:15px}.city-hero{height:190px}.companions{margin-top:14px;margin-bottom:17px}.companions strong{font-size:13px}.companions p{font-size:12px}.day-summary strong{font-size:14px}.day-summary>span{font-size:12px}.day-number small{font-size:9px}.days-heading>span{font-size:12px}.bottom-nav{height:70px}.nav-item{font-size:11px}.plan-heading{height:42px}.plan-heading>span{font-size:11px}.stop-main>strong{font-size:15px}.stop-time{font-size:12px}.stop-meta{font-size:12px}.transit{height:28px;font-size:12px}.footer-note{font-size:12px}.ghost-caption{font-size:10px}.edit-label{font-size:11px}.hero-caption{font-size:9px}
@media(max-height:810px){.city-hero{height:155px}.companions{margin-top:12px;margin-bottom:12px}}
/* Round 3: preserve the whole city drawing and remove repeated reorder guidance. */
.city-hero>img{object-fit:fill}.editing .plan-heading>span{display:none}.editing .ghost-caption{color:#9d402d}.map-marker circle:first-child{r:22px}
/* Independent review: readable route, clear action, bounded lifted paper. */
.drag-ghost{rotate:-1.2deg}.add-stop{width:138px;border-radius:12px;font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:7px}.add-stop>span{font-size:23px;font-weight:400;line-height:1}.route-stroke{stroke-linejoin:round}

/* Revision: keep itinerary actions available while exposing shared-plan state. */
.day-view{display:flex;flex-direction:column}.day-footer .footer-note{margin-right:auto}.day-footer .undo-button{min-width:44px}.companions p{max-width:208px;line-height:1.5}.person>div{flex:1}.member-link{display:flex;align-items:center;gap:4px;min-height:44px;font-size:12px;font-weight:700;color:var(--blue);text-decoration:none}.member-link svg{width:16px;height:16px}.plan-version{font-size:12px;line-height:1.7;color:var(--muted);margin:8px 0 16px}.shared-plan-link{text-decoration:none;margin:0 0 20px}.conflict-note{font-size:12px;line-height:1.5;color:var(--coral);padding-bottom:8px}.conflict-note>div{display:flex;gap:18px}.conflict-note .text-button{font-size:13px}.set-location{font-size:12px;font-weight:700;color:var(--blue);min-height:44px;width:74px;flex-shrink:0;text-align:center}.location-picker{height:220px;cursor:crosshair;background:#eff0e7;border-radius:12px;overflow:hidden}.location-picker svg{height:100%;width:100%;stroke:none}.location-picker:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.location-help{font-size:12px;color:var(--muted);margin-top:10px}button:disabled{opacity:.5;cursor:default}.save-error{font-size:12px}.stop-meta svg{width:14px;height:14px}.map-summary{font-size:12px}.plan-heading>span{font-size:12px}.stop-main{padding:8px 0}.stop-meta{line-height:1.5}.drag-ghost{min-height:80px}.ghost-caption{display:none}

.viewer-label{display:block;font-size:11px;color:var(--muted);margin-top:3px}
