:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;color:#263440;background:#faf9f7;font-size:14px;--primary:#b84e0a;--primary-hover:#943e08;--accent:#ee8a37;--accent-glow:#ee8a3733;--accent-soft:#fff4e8;--muted:#657786;--line:#e7e9ec}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:27px;line-height:1.35;letter-spacing:-.025em;font-weight:650}h2{font-size:21px;line-height:1.4}h3{font-size:17px;line-height:1.5}p{line-height:1.75}small{font-size:12px;line-height:1.6}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.muted{color:var(--muted)}.small{font-size:12px}.button{min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:10px;background:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:550}.button:hover:not(:disabled){background:var(--accent-soft)}.primary{background:var(--primary);color:#fff}.primary:hover:not(:disabled){background:var(--primary-hover)}.outline{border-color:#e7ddd5;background:#fff}.text-button{padding:8px;color:var(--primary)}.icon-button{padding:10px;min-width:44px;color:var(--primary)}.compact{padding:8px 12px}.danger{color:#a54c42}.full{width:100%}.badge{display:inline-flex;border-radius:6px;padding:5px 8px;font-size:11px;line-height:1.4;background:var(--accent-soft);color:var(--primary)}.badge.warm{background:var(--accent-soft);color:var(--primary)}.eyebrow{display:block;font-size:11px;letter-spacing:.08em;color:#657786;font-weight:600;margin-bottom:12px}
.sidebar{width:216px;position:fixed;inset:0 auto 0 0;padding:32px 20px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#fffdfb;z-index:5}.brand{display:flex;align-items:center;gap:10px;margin-bottom:48px;font-size:22px;font-weight:700;letter-spacing:-.05em}.brand>.icon{width:36px;height:36px;padding:7px;color:white;background:var(--primary);border-radius:12px}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:.05em;margin-top:4px;color:var(--muted)}.nav-item{display:flex;align-items:center;gap:12px;min-height:50px;width:100%;border:0;background:none;border-radius:10px;text-align:left;color:#657786;font-size:14px;margin-bottom:8px;padding:12px}.nav-item.active{background:var(--accent-soft);color:var(--primary);font-weight:650}.nav-item:hover{background:#fff8f1}.sidebar-bottom{margin-top:auto;color:var(--muted)}.sidebar-bottom small{display:block;text-align:center;font-size:10px;margin-top:14px}.workspace{margin-left:216px}.topbar{height:64px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fffdfb}.mobile-brand{display:none}main{max-width:1240px;margin:0 auto;padding:24px 36px 48px}.trip-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px}.trip-picker{display:flex;align-items:center;gap:10px;min-width:0;flex:1;max-width:520px}.trip-picker select{margin:0;min-width:0;font-size:15px;font-weight:650;background:#fff;border-color:#e0bca4;height:46px}.trip-picker>.button{white-space:nowrap}.sync-status{border:0;padding:9px 0;background:none;display:flex;align-items:center;gap:6px;color:#657786;font-size:11px;min-height:36px;text-align:left}.sync-status>.icon{width:14px;height:14px}.sync-status.attention{color:var(--primary)}.content-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0}.day-content{min-width:0}.days{display:flex;gap:9px;overflow-x:auto;scrollbar-width:thin;padding-bottom:4px;margin-bottom:12px}.day-tab{min-width:104px;flex:0 0 auto;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 13px;text-align:left;color:#657786;display:flex;align-items:center;gap:12px;min-height:48px}.day-tab strong{font-size:13px}.day-tab span{font-size:11px}.day-tab.selected{background:var(--primary);border-color:var(--primary);color:#fff}.filter-row{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:16px;min-width:0}.filters{display:flex;gap:3px;overflow-x:auto;scrollbar-width:none;min-width:0}.filter{border:0;background:transparent;border-radius:7px;padding:9px 11px;color:#657786;white-space:nowrap;font-size:12px;min-height:36px}.filter.selected{color:var(--primary);background:var(--accent-soft);font-weight:650}
.timeline-item{display:grid;grid-template-columns:60px minmax(0,1fr);gap:15px;padding-bottom:21px}.time-rail{position:relative;text-align:center;padding-top:10px;color:#657786}.time-rail strong{display:block;font-size:15px;font-weight:600}.time-rail:after{content:'';position:absolute;width:1px;top:73px;bottom:-21px;left:50%;background:#e5e9ed}.timeline-item:last-child .time-rail:after{display:none}.rail-dot{display:inline-grid;place-items:center;width:29px;height:29px;border-radius:50%;background:var(--accent-soft);margin-top:10px}.rail-dot>.icon{width:16px;height:16px}.itinerary-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 20px;min-width:0;box-shadow:0 2px 4px #26344010}.card-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:3px;min-height:34px}.category{font-size:11px;border-radius:5px;padding:4px 7px;color:var(--primary);background:var(--accent-soft)}.category.meal,.rail-dot.meal{color:var(--primary);background:var(--accent-soft)}.category.hotel,.rail-dot.hotel{color:var(--primary);background:var(--accent-soft)}.category.transport,.rail-dot.transport{color:var(--primary);background:var(--accent-soft)}.itinerary-card h3{font-size:17px;overflow-wrap:anywhere}.place-line{display:flex;align-items:flex-start;gap:7px;color:#657786;font-size:12px;margin-top:10px}.place-line>.icon{width:14px;height:14px;margin-top:3px}.place-line span{min-width:0;overflow-wrap:anywhere}.place-line small{display:block;color:#657786;font-size:11px;margin-top:2px}.item-note{font-size:13px;color:#657786;margin-top:9px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.item-facts{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:#657786;margin-top:10px}.item-facts:empty{display:none}.unconfirmed{color:var(--primary)}.runtime-note{background:var(--accent-soft);color:var(--primary);padding:8px 10px;margin-top:10px;border-radius:7px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.card-actions{display:flex;align-items:center;gap:4px;margin-top:12px;border-top:1px solid #eff1f3;padding-top:7px;flex-wrap:wrap}.card-actions .text-button{font-size:12px;padding:6px 8px;min-height:38px}.card-actions>.text-button:last-child{margin-left:auto}.panel{padding:23px;border:1px solid var(--line);border-radius:14px;background:#fff}.context .panel{margin-bottom:18px}.context h3{font-size:16px}.context p{font-size:12px;color:var(--muted);margin-top:6px}.stay-card .badge{margin:12px 0}.stay-card .button{display:flex;width:100%;justify-content:space-between}.budget h3{font-size:22px;margin-top:9px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 18px}.section-head h2{font-size:18px}.section-head>.muted{font-size:12px}.place-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.place-card{position:relative;min-width:0}.place-symbol{display:inline-grid;place-items:center;background:var(--accent-soft);width:39px;height:39px;border-radius:10px;margin-right:10px}.place-card>.badge{vertical-align:middle;font-size:10px}.place-card h3{margin-top:17px}.place-card>strong{display:block;font-size:12px;color:#657786;margin-top:3px}.place-card>p{font-size:12px;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}.empty{text-align:center;padding:38px 22px;margin:14px 0}.empty>.icon{width:36px;height:36px;color:var(--primary);margin-bottom:16px}.empty h2{font-size:21px}.empty p{max-width:440px;margin:12px auto 19px;color:var(--muted);font-size:13px}.empty .actions{justify-content:center}.timeline .empty{margin:0 0 20px}.timeline .empty h2{font-size:18px}.update-notice{padding:12px;color:var(--muted);font-size:12px}.mobile-nav{display:none}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
dialog{border:1px solid var(--line);border-radius:18px;padding:0;width:min(620px,calc(100% - 32px));max-height:90dvh;color:#263440;background:#fffdfb;box-shadow:0 20px 90px #26344030}dialog::backdrop{background:#26344066;backdrop-filter:blur(2px)}dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fffdfb;z-index:2}dialog>header h2{font-size:20px}.dialog-body{padding:20px}.dialog-body p{margin-bottom:13px}.dialog-body h3{margin:12px 0}.dialog-body label{display:block;margin-bottom:15px;font-size:12px;font-weight:550;color:#657786}input,select,textarea{display:block;width:100%;min-height:44px;margin-top:7px;padding:10px 12px;border:1px solid #e7ddd5;border-radius:9px;background:#fff;color:#344353}textarea{resize:vertical;line-height:1.6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.settings-section{padding:0 0 19px;margin-bottom:19px;border-bottom:1px solid var(--line)}.settings-section h3{margin-top:0}.settings-section p{font-size:13px}.settings-section:last-child{margin-bottom:0}.migration-note{background:var(--accent-soft);border-radius:9px;padding:10px;margin-top:12px}.pending-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding-top:12px;font-size:12px}.form-error,#form-error{color:#a54c42;font-size:12px;white-space:pre-wrap}.manage-item{border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:12px;background:white;min-width:0}.manage-item strong{display:block;overflow-wrap:anywhere;font-size:14px}.manage-item small{display:block;color:var(--muted);margin-top:5px}.manage-actions{display:flex;gap:2px;flex-wrap:wrap;margin-top:10px}.manage-actions .button{font-size:12px}.trash{margin-top:22px;font-size:13px}.trash summary{cursor:pointer;padding:10px 0}.trash-row{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);padding:8px 0}.trash-row>span{overflow-wrap:anywhere;min-width:0}.place-detail{padding:5px 0 15px}.place-detail h3{font-size:23px}.place-detail>strong{color:#657786;font-size:13px}.place-detail>p{font-size:13px;margin-top:8px}.external-link{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid var(--line);border-radius:10px;background:white;margin-bottom:10px}.external-link strong{font-size:14px}.external-link small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:3px}.external-link>span{min-width:0}.external-link:hover{border-color:var(--accent)}.loading{padding-top:20vh;text-align:center}.brandmark{display:grid;place-items:center;margin:0 auto 22px;width:50px;height:50px;border-radius:14px;background:var(--primary);color:#fff;font-size:26px}.loading p{color:var(--muted);margin-top:12px}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,12px);z-index:100;background:var(--primary);color:#fff;font-size:13px;padding:13px 20px;border-radius:12px;max-width:min(600px,calc(100% - 32px));opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;box-shadow:0 8px 25px #26344022}#toast.show{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}
@media(min-width:1600px){main{padding-top:32px}.timeline-item{padding-bottom:26px}}
@media(max-width:1100px){.sidebar{width:188px;padding:28px 16px}.workspace{margin-left:188px}.topbar{padding:0 24px}main{padding:20px 24px 40px}.content-grid{grid-template-columns:minmax(0,1fr)}.context{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-left:75px}.context .panel{margin:0}}
@media(max-width:700px){.sidebar{display:none}.workspace{margin:0}.topbar{height:52px;padding:0 16px;border:0;background:transparent}.mobile-brand{display:flex;align-items:center;gap:7px;font-size:16px;color:var(--primary)}.mobile-brand>.icon{width:23px;height:23px}main{padding:4px 16px 94px}.trip-toolbar{display:block;margin:0}.trip-picker{gap:8px;max-width:none}.trip-picker select{height:44px;font-size:16px;border-radius:10px;padding:8px 11px}.trip-picker>.button{font-size:12px;min-height:44px;padding:8px 10px}.trip-picker>.button .icon{width:16px;height:16px}.sync-status{padding:7px 0;font-size:10px;min-height:28px;max-width:100%}.sync-status>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.days{gap:7px;margin-bottom:7px;padding-bottom:3px}.day-tab{min-width:101px;min-height:42px;padding:8px 11px;gap:11px}.day-tab strong{font-size:12px}.day-tab span{font-size:10px}.filter-row{margin-bottom:11px}.filters{gap:2px}.filter{padding:7px 11px;min-height:34px;font-size:11px}.timeline-item{grid-template-columns:42px minmax(0,1fr);gap:9px;padding-bottom:16px}.time-rail{padding-top:11px}.time-rail strong{font-size:12px}.time-rail:after{top:67px;bottom:-16px}.rail-dot{width:27px;height:27px;margin-top:9px}.itinerary-card{border-radius:12px;padding:12px 13px}.itinerary-card h3{font-size:16px}.card-heading{min-height:31px;margin-bottom:2px}.category{font-size:10px;padding:3px 6px}.place-line{font-size:11px;gap:5px;margin-top:8px}.place-line small{font-size:10px}.item-note{font-size:12px;margin-top:8px;line-height:1.75}.item-facts{font-size:10px;gap:8px;margin-top:8px}.card-actions{gap:0;margin-top:10px;padding-top:5px}.card-actions .text-button{font-size:11px;padding:5px 6px;min-height:36px}.card-actions .icon{width:14px;height:14px}.context{margin-left:51px;display:block}.context .panel{margin-bottom:14px;padding:18px}.budget h3{font-size:20px}.place-grid{grid-template-columns:1fr;gap:13px}.place-card{padding:18px}.section-head{margin:9px 0 16px}.section-head h2{font-size:19px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-evenly;gap:12px;z-index:10;padding:8px 24px max(8px,env(safe-area-inset-bottom));background:#fffdfbf5;border-top:1px solid var(--line);backdrop-filter:blur(12px)}.mobile-nav .nav-item{max-width:220px;min-height:46px;margin:0;display:flex;justify-content:center;gap:9px;padding:10px;font-size:12px}.mobile-nav .icon{width:19px;height:19px}.empty{padding:34px 20px;margin-top:16px}.empty h2{font-size:20px}.empty p{font-size:12px}.empty .actions{gap:8px}.empty .button{font-size:12px}.timeline .empty{padding:25px 12px}.timeline .empty h2{font-size:17px}dialog{width:calc(100% - 20px);max-height:92dvh;border-radius:16px}dialog>header{padding:12px 16px}dialog>header h2{font-size:18px}.dialog-body{padding:16px}.form-grid{gap:0 12px}.manage-item{padding:12px}.manage-actions .button{font-size:11px;padding:8px;min-width:38px}.manage-actions{gap:1px}#toast{bottom:86px;font-size:12px;padding:12px 16px}.external-link small{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.map-provider-native{border:1px solid var(--line);border-radius:10px;background:white;margin-bottom:10px;overflow:hidden}.map-provider-native .map-app-link{margin:0;border:0;border-radius:0;background:var(--accent-soft)}.map-provider-native .map-app-link:hover{background:#ffe9d6}.map-provider-native .map-web-link{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 14px;font-size:12px;color:var(--primary);border-top:1px solid var(--line)}.map-provider-native .map-web-link:hover{background:#fff8f1}

/* Production UI: clear touch targets, compact cards, no summary sidebar. */
.card-actions .text-button{min-height:44px}.card-actions{justify-content:flex-end}.card-actions>.text-button:last-child{margin-left:0}.item-facts{font-size:12px;color:#657786}.settings-section .form-grid{gap:0 16px}.settings-section .form-grid label{margin-bottom:0}.dialog-body input,.dialog-body select,.dialog-body textarea{font-size:16px}.filter{min-height:44px}.sync-status{font-size:12px}.place-detail h3{font-size:20px}.place-detail{padding-bottom:4px}
@media(max-width:700px){.settings-section .form-grid{grid-template-columns:1fr;gap:16px}.card-actions .text-button{font-size:12px;min-height:44px;padding:8px 10px}.filter{font-size:12px;min-height:44px}.sync-status{font-size:11px}.place-line{font-size:12px}.item-facts{font-size:12px}}

.item-extras{margin:4px 0 20px}.item-extras summary{cursor:pointer;min-height:44px;padding:12px 0;color:var(--primary);font-weight:550}.item-extras[open] summary{margin-bottom:8px}

.map-fallbacks{display:flex;border-top:1px solid var(--line)}.map-fallbacks>a{flex:1;min-width:0;min-height:44px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;color:var(--primary);font-size:12px}.map-provider-native .map-fallbacks .map-web-link{border-top:0}.map-search-link+.map-web-link{border-left:1px solid var(--line)}.map-search-link:hover{background:#fff8f1}

/* Compact itinerary header and inline duration; historical runtime is data only. */
.topbar-start{display:flex;align-items:center;gap:14px;min-width:0;flex:1}.mobile-brand{display:flex;align-items:center;gap:7px;flex-shrink:0;color:var(--primary);font-size:17px}.topbar-start .sync-status{min-width:0;min-height:44px;padding:8px 0;margin:0;max-width:100%}.sync-status span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar>.icon-button{flex-shrink:0}.trip-toolbar{margin:0 0 16px}.trip-picker{max-width:none}.date-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:10px;min-width:0}.date-toolbar .days{flex:1;min-width:0;margin:0}.date-toolbar>[data-action=manage]{flex-shrink:0;white-space:nowrap;min-height:44px}.item-duration{font-size:12px;font-weight:400;color:#657786;line-height:1.6;white-space:normal}.card-heading{min-height:24px;margin-bottom:6px}.itinerary-card h3{line-height:1.6}.timeline-item h3>.item-title{overflow-wrap:anywhere}
@media(max-width:700px){.topbar-start{gap:10px}.topbar{gap:8px}.topbar-start .sync-status{font-size:11px}.trip-toolbar{margin-bottom:12px}.date-toolbar{gap:8px;margin-bottom:8px}.date-toolbar>[data-action=manage]{font-size:11px;padding:8px 9px;border:0;background:var(--accent-soft)}.date-toolbar>[data-action=manage] .icon{width:14px;height:14px}.date-toolbar .day-tab{min-width:94px;min-height:44px;gap:7px}.card-heading{min-height:22px;margin-bottom:5px}.item-duration{font-size:12px}}

.trip-delete-row{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.delete-trip-title{font-weight:650;overflow-wrap:anywhere;margin-bottom:10px}.destructive{background:#a54c42;color:#fff}.destructive:hover:not(:disabled){background:#934237}

/* Standalone OAuth consent: independent of the itinerary form layout. */
.auth-page{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:32px 20px;background:#faf9f7}.auth-page .auth-card{width:100%;max-width:520px;margin:0;padding:32px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 12px 40px #2634400b}.auth-brand{display:flex;align-items:center;gap:10px;margin-bottom:27px;color:var(--primary);font-size:18px;font-weight:650}.auth-brand small{margin-left:6px;font-size:13px;font-weight:400;color:#657786}.auth-symbol{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--primary);color:white;font-size:25px;font-weight:400}.auth-card h1{font-size:25px;overflow-wrap:anywhere}.auth-lead{margin-top:8px;color:#657786;font-size:14px}.auth-permissions{margin:25px 0 0;padding:0;border:0;min-width:0}.auth-permissions legend{padding:0;margin-bottom:10px;font-size:13px;font-weight:600;color:#657786}.auth-permission{display:flex;align-items:flex-start;gap:12px;padding:16px;margin-bottom:10px;border:1px solid #e7ddd5;border-radius:12px;background:#fffaf5;cursor:pointer}.auth-permission input[type=checkbox]{display:block;flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:2px 0 0;padding:0;accent-color:var(--primary);cursor:pointer}.auth-permission span{min-width:0}.auth-permission strong{display:block;font-size:15px;line-height:1.5}.auth-permission small{display:block;margin-top:4px;font-size:13px;line-height:1.6;color:#657786;overflow-wrap:anywhere}.auth-notice{font-size:12px;line-height:1.7;color:#657786;margin:0 0 20px}.auth-notice span{display:block;font-weight:400}.auth-notice-readonly{padding:11px 13px;background:#faf2e5;border-radius:9px;color:#805c30;font-weight:550}.auth-facts{margin:0;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:13px}.auth-facts>div{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;margin:7px 0}.auth-facts dt{color:#657786}.auth-facts dd{margin:0;overflow-wrap:anywhere;font-weight:500}.auth-account,.auth-loopback{font-size:12px;line-height:1.7;color:#657786;margin-top:16px}.auth-loopback{color:#805c30}.auth-actions{display:grid;grid-template-columns:minmax(0,1fr) 80px;gap:10px;margin-top:22px}.auth-actions .button{font-size:14px;min-height:46px}.auth-security{margin-top:22px;padding-top:18px;border-top:1px solid var(--line);font-size:12px;color:#657786;line-height:1.7}.auth-permission:focus-within{border-color:var(--accent)}
@media(max-width:560px){.auth-page{align-items:flex-start;padding:24px 14px max(24px,env(safe-area-inset-bottom))}.auth-page .auth-card{padding:24px 20px;border-radius:16px}.auth-brand{margin-bottom:23px}.auth-card h1{font-size:23px}.auth-permission{padding:14px 12px}.auth-actions{grid-template-columns:minmax(0,1fr) 66px;gap:8px}.auth-actions .button{font-size:13px;padding:10px 9px}.auth-facts>div{grid-template-columns:78px minmax(0,1fr);gap:8px}}

.mcp-readme-link{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:44px;padding:8px 10px;color:var(--primary);font-size:12px;white-space:nowrap;border-radius:8px}.mcp-readme-link:hover{background:var(--accent-soft)}.access-entry{padding:16px 0;border-bottom:1px solid var(--line)}.access-entry:first-child{padding-top:4px}.access-entry h3{overflow-wrap:anywhere;margin:10px 0 6px}.access-heading{display:flex;gap:8px;flex-wrap:wrap}.access-entry .access-meta{font-size:12px;color:#657786;overflow-wrap:anywhere;margin-bottom:10px}.access-entry>.button{margin-top:2px}.access-list{margin-bottom:18px}
main.mcp-readme,.mcp-readme main{max-width:900px;margin:0 auto;padding:24px}.mcp-readme .mcp-reference{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:14px;line-height:1.8}.mcp-readme header{margin:0;padding:0 0 18px}.mcp-readme header h1{margin:0 0 16px}.mcp-readme header nav{display:flex;gap:16px;flex-wrap:wrap}.mcp-readme header a{color:var(--primary);text-decoration:underline;text-underline-offset:3px}.mcp-readme main a{color:var(--primary)}
@media(max-width:700px){.mcp-readme-link{font-size:11px;padding:8px 5px}main.mcp-readme,.mcp-readme main{padding:20px 16px}.mcp-readme header{padding:0 0 16px}}

/* Whole-trip map keeps labels compact and date colors consistent. */
.itinerary-map-page{min-width:0}.map-date-row{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:0 0 12px;scrollbar-width:thin}.map-date-chip{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;min-height:44px;padding:9px 13px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#657786;font-size:13px}.map-date-chip.selected{background:var(--accent-soft);border-color:var(--accent);color:var(--primary);font-weight:650}.map-color-dot{width:9px;height:9px;border-radius:50%;background:var(--day-color);flex-shrink:0}.map-frame{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff8f1}.map-frame:has(.itinerary-map[hidden]){display:none}.itinerary-map{height:clamp(360px,62dvh,720px);width:100%;position:relative;background:#fff8f1}.map-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;color:var(--muted);font-size:12px}.map-caption p{line-height:1.6}.map-caption>div{display:flex;flex-shrink:0}.map-caption .button{font-size:12px;padding:8px}.trip-map-marker{max-width:110px;display:flex;align-items:center;gap:5px;background:white;border:1px solid var(--day-color);border-radius:16px;padding:3px 8px 3px 3px;filter:drop-shadow(0 2px 3px #26344030);white-space:nowrap}.trip-map-marker span{flex-shrink:0;display:grid;place-items:center;background:var(--day-color);border-radius:50%;min-width:25px;height:25px;padding:0 4px;color:white;font-size:10px;font-weight:650}.trip-map-marker em{min-width:0;max-width:66px;overflow:hidden;text-overflow:ellipsis;color:#344353;font-size:11px;font-style:normal}.map-popup-visit{border-bottom:1px solid var(--line);padding:7px 0}.map-popup-visit:last-child{border-bottom:0}.trip-map-popup{max-height:250px;overflow-y:auto}.trip-map-popup{max-width:240px;min-width:160px;padding:3px 0;color:#344353}.trip-map-popup small{display:block;color:var(--muted);margin-bottom:5px}.trip-map-popup strong{display:block;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.trip-map-popup .button{margin-top:5px;min-height:44px}.map-place-list{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.map-place-row{padding:12px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);min-width:0}.map-place-row:last-child{border-bottom:0}.map-place-row>div{flex:1;min-width:0}.map-place-row small{display:block;color:var(--muted);font-size:11px}.map-place-row strong{display:block;font-size:13px;overflow-wrap:anywhere;line-height:1.5}.map-place-row>.button{flex-shrink:0;font-size:12px;padding:8px}.map-day-dot{display:grid;place-items:center;background:var(--day-color);border-radius:50%;color:white;width:25px;height:25px;font-size:11px;flex-shrink:0}.settings-section #amap-config-status{margin-bottom:16px;color:var(--muted)}.settings-section #amap-settings-form label{margin-bottom:15px}
@media(max-width:700px){.map-date-row{padding-bottom:10px;gap:7px}.map-date-chip{font-size:12px;padding:8px 11px}.itinerary-map{height:clamp(330px,calc(100dvh - 250px),600px)}.map-frame{border-radius:12px}.map-caption{font-size:11px}.map-place-row{padding:10px;gap:8px}.map-place-row strong{font-size:12px}}

.map-config-hint{color:var(--muted);font-size:12px;margin-top:-5px;margin-bottom:15px}

/* Map first: real AMap underneath a scrollable, resizable daily itinerary. */
.map-home-open{overflow:hidden}.has-map-home{height:100dvh;color:#263440}.has-map-home .sidebar{display:none}.has-map-home .workspace{margin:0;padding:0;height:100dvh;max-width:none}.has-map-home main{padding:0;margin:0;max-width:none}.has-map-home .topbar{position:fixed;z-index:15;inset:max(10px,env(safe-area-inset-top)) 16px auto;min-height:48px;height:48px;padding:0;border:0;margin:0;gap:10px;background:transparent;pointer-events:none}.has-map-home .topbar>*{pointer-events:auto}.has-map-home .topbar-start{flex:0 1 auto;gap:9px;background:#fffffff5;border:1px solid #e8eced;border-radius:26px;padding:2px 13px;box-shadow:0 2px 12px #2634400a}.has-map-home .mobile-brand{color:#263440;font-size:18px;gap:8px}.has-map-home .mobile-brand .icon{color:var(--accent);width:23px;height:23px}.has-map-home .sync-status{max-width:min(48vw,240px);font-size:12px;color:#627380}.has-map-home .topbar>.icon-button{margin-left:auto;background:#fff;border:1px solid #e8eced;border-radius:50%;color:var(--primary);box-shadow:0 2px 12px #2634400a;width:48px;height:48px}.has-map-home .trip-toolbar{position:fixed;top:calc(max(10px,env(safe-area-inset-top)) + 61px);left:16px;right:16px;z-index:15;margin:0;max-width:560px}.has-map-home .trip-picker{gap:8px;display:flex}.has-map-home #trip-select{flex:1;min-width:0;height:46px;border:1px solid #e4e9eb;border-radius:24px;padding:10px 33px 10px 16px;background-color:#fffffff5;font-size:15px;color:#263440;font-weight:650;box-shadow:0 2px 12px #2634400a}.has-map-home .trip-picker>.button{flex-shrink:0;border-radius:24px;background:#fff;border-color:#e4e9eb;color:var(--primary);min-height:46px;padding:10px 14px;font-size:13px}.map-home{position:fixed;inset:0;height:100dvh;background:#edf1f3;--home-safe-offset:max(0px,calc(env(safe-area-inset-top) - 10px));--home-sheet-height:min(clamp(340px,48dvh,520px),calc(100dvh - 152px - var(--home-safe-offset)))}.home-map-surface,#home-map{position:absolute;inset:0;width:100%;height:100%;background:#edf1f3}.home-map-caption{position:absolute;z-index:4;top:calc(136px + var(--home-safe-offset));left:16px;right:16px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;pointer-events:none}.home-map-caption p{max-width:min(60vw,340px);padding:7px 10px;color:#526572;background:#ffffffef;border-radius:9px;font-size:12px;line-height:1.6;pointer-events:auto;overflow-wrap:anywhere}.home-map-controls{display:flex;flex-direction:row;gap:6px;pointer-events:auto;flex-shrink:0}.home-map-controls>.button{background:#fff;border-color:#e4e9eb;color:#344353;min-height:44px;padding:8px 10px;box-shadow:0 2px 8px #2634400a}.home-map-surface:has(#home-map[hidden]) .home-map-caption{top:calc(150px + var(--home-safe-offset))}.home-map-surface:has(#home-map[hidden]) .home-map-caption p{background:#fff;max-width:280px;font-size:13px;padding:14px 16px}.home-map-surface:has(#home-map[hidden]) .home-map-controls>[data-action=map-fit]{display:none}.itinerary-sheet{position:absolute;z-index:10;left:0;right:0;bottom:0;height:clamp(340px,48dvh,520px);display:flex;flex-direction:column;background:#fff;border:1px solid #e8eced;border-bottom:0;border-radius:26px 26px 0 0;box-shadow:0 -6px 26px #26344010;padding:0 16px;overflow:hidden}.itinerary-sheet[data-sheet=expanded]{height:calc(100dvh - 152px - var(--home-safe-offset))}.itinerary-sheet[data-sheet=compact]{height:148px}.sheet-toggle{position:relative;flex-shrink:0;display:flex;align-items:center;justify-content:center;min-height:36px;width:100%;border:0;background:transparent;color:#697985;padding:14px 0 4px;touch-action:none;font-size:11px}.sheet-toggle:before{content:"";position:absolute;top:8px;left:calc(50% - 18px);width:36px;height:4px;border-radius:4px;background:#c5ccd2}.sheet-toggle-label{line-height:1.4}.has-map-home .content-grid{display:flex;flex:1;min-height:0;margin:0;gap:0}.has-map-home .day-content{display:flex;flex-direction:column;width:100%;min-width:0;min-height:0}.has-map-home .day-heading{flex-shrink:0;margin:1px 0 3px;padding-right:95px;min-height:38px;display:flex;align-items:center}.has-map-home .day-heading h2{font-size:18px;line-height:1.6;color:#263440}.has-map-home .day-heading h2 span{font-size:16px;font-weight:550}.has-map-home .date-toolbar{position:relative;min-height:55px;flex-shrink:0;margin:0;gap:0;display:block}.has-map-home .date-toolbar>[data-action=manage]{position:absolute;right:0;top:-41px;min-height:38px;background:transparent;border:0;color:var(--primary);font-size:12px;padding:6px 0 6px 8px}.has-map-home .date-toolbar>[data-action=manage] .icon{width:16px;height:16px}.has-map-home .days{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:0 0 3px}.has-map-home .days::-webkit-scrollbar{display:none}.has-map-home .day-tab{display:flex;flex-direction:column;justify-content:center;gap:1px;flex:1 0 56px;min-width:56px;min-height:50px;padding:5px 10px;border:0;border-radius:14px;background:transparent;color:#627181}.has-map-home .day-tab strong{font-size:14px;font-weight:550}.has-map-home .day-tab span{font-size:11px}.has-map-home .day-tab.selected{background:var(--primary);color:#fff}.has-map-home .filter-row{flex-shrink:0;margin:1px 0 0;min-width:0}.has-map-home .filters{gap:5px;overflow-x:auto;scrollbar-width:none;padding:0;display:flex;border-bottom:1px solid #eff1f3}.has-map-home .filter{min-height:34px;padding:5px 9px;border-radius:0;font-size:12px;color:#74818d;white-space:nowrap;flex-shrink:0}.has-map-home .filter.selected{background:transparent;color:var(--primary);box-shadow:inset 0 -2px var(--accent);font-weight:600}.sheet-scroll{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;flex:1;min-height:0;scroll-padding:8px;-webkit-overflow-scrolling:touch}.has-map-home .timeline{padding:0 0 12px;min-height:0}.has-map-home .timeline-item{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;margin:0;min-width:0;padding:13px 0;border-bottom:1px solid #eff1f3;scroll-margin-top:6px}.has-map-home .timeline-item:last-child{border-bottom:0}.has-map-home .time-rail{padding:1px 0 0;position:relative;text-align:center;min-width:0}.has-map-home .time-rail:after{top:31px;bottom:-15px;left:14px;background:#e5e9ed}.stop-number{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:var(--primary);color:#fff;font-size:14px;font-weight:600}.stop-number.note{background:#a1adb7}.stop-number .icon{width:16px;height:16px}.has-map-home .itinerary-card{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;display:flex;gap:9px;align-items:center;min-width:0}.item-copy{flex:1;min-width:0}.has-map-home .itinerary-card h3{font-size:14px;line-height:1.65;font-weight:650;overflow-wrap:anywhere}.has-map-home .item-time{font-size:13px;margin-right:5px;color:#384655;white-space:nowrap;font-weight:600}.has-map-home .item-duration{font-size:12px;font-weight:400;color:#75818a;word-break:keep-all}.has-map-home .place-line{margin-top:5px;gap:5px;color:#7b8791;font-size:12px;line-height:1.6}.has-map-home .place-line .icon{width:14px;height:14px;margin-top:2px}.has-map-home .item-note{margin-top:6px;font-size:12px;line-height:1.75;color:#6d7b86;white-space:pre-wrap;overflow-wrap:anywhere}.has-map-home .card-actions{padding:0;margin:0;border:0;flex-shrink:0}.has-map-home .card-actions .button{min-height:44px;min-width:60px;background:var(--accent-soft);color:var(--primary);border:0;border-radius:22px;padding:9px 10px;font-size:12px;white-space:nowrap}.has-map-home .card-actions .icon{width:15px;height:15px}.has-map-home .timeline-item.is-focused{background:#fff8f0;box-shadow:0 0 0 6px #fff8f0}.has-map-home .mobile-nav{position:static;display:flex;flex-shrink:0;margin:0;padding:6px 0 max(6px,env(safe-area-inset-bottom));border-top:1px solid #eff1f3;gap:8px;background:white;backdrop-filter:none;z-index:auto}.has-map-home .mobile-nav .nav-item{display:flex;flex:1;align-items:center;justify-content:center;gap:6px;max-width:none;margin:0;min-height:42px;padding:6px;border-radius:10px;font-size:12px;color:#74818d}.has-map-home .mobile-nav .nav-item.active{background:#fff4e8;color:var(--primary)}.has-map-home .mobile-nav .icon{width:17px;height:17px}.itinerary-sheet[data-sheet=compact] .filter-row,.itinerary-sheet[data-sheet=compact] .sheet-scroll,.itinerary-sheet[data-sheet=compact] .mobile-nav{display:none}.has-map-home .trip-map-marker.is-compact{max-width:145px;padding:4px 9px 4px 4px;border-color:var(--primary);gap:6px;border-radius:22px}.has-map-home .trip-map-marker.is-compact>span{background:var(--primary);min-width:30px;height:30px;font-size:14px}.has-map-home .trip-map-marker.is-compact>em{font-size:12px;max-width:95px;color:#344353}.has-map-home .trip-map-marker.is-selected{border-width:2px;box-shadow:0 0 0 4px var(--accent-glow)}.has-map-home .update-notice{position:fixed;left:16px;right:16px;top:120px;z-index:25;max-width:520px;background:#fff5e7}.map-home-open #toast{bottom:calc(env(safe-area-inset-bottom) + 64px)}
@media(min-width:901px){.has-map-home .topbar{max-width:none;right:24px;left:24px}.has-map-home .trip-toolbar{left:24px;max-width:560px}.itinerary-sheet{left:auto;right:24px;bottom:24px;width:420px;border:1px solid #e8eced;border-radius:22px;padding:0 20px;height:clamp(420px,68dvh,720px)}.itinerary-sheet[data-sheet=expanded]{height:calc(100dvh - 156px)}.itinerary-sheet[data-sheet=compact]{height:148px}.home-map-caption{left:24px;right:24px}.home-map-controls{margin-right:452px;flex-direction:row}.has-map-home .itinerary-card h3{font-size:15px}.has-map-home .timeline-item{padding:17px 0}}
@media(max-width:360px){.has-map-home .topbar{left:10px;right:10px}.has-map-home .topbar-start{gap:6px;padding:2px 10px}.has-map-home .mobile-brand{font-size:16px;gap:5px}.has-map-home .sync-status{font-size:10px;max-width:125px}.has-map-home .trip-toolbar{left:10px;right:10px}.has-map-home #trip-select{font-size:13px;padding-left:12px}.has-map-home .trip-picker>.button{font-size:12px;padding:10px}.itinerary-sheet{padding:0 12px}.has-map-home .day-heading h2{font-size:16px}.has-map-home .day-heading h2 span{font-size:14px}.has-map-home .timeline-item{grid-template-columns:27px minmax(0,1fr);gap:7px}.stop-number{width:26px;height:26px;font-size:12px}.has-map-home .time-rail:after{left:12px}.has-map-home .itinerary-card{gap:7px;align-items:flex-start}.has-map-home .card-actions{padding-top:6px}.has-map-home .card-actions .button{min-width:48px;padding:8px;font-size:11px;gap:3px}.has-map-home .card-actions .icon{display:none}}

/* Keep the official SDK logo and attribution visible above the mobile sheet. */
@media(max-width:900px){.map-home{--map-attribution-bottom:calc(var(--home-sheet-height) + 8px)}.itinerary-sheet{height:var(--home-sheet-height)}.map-home:has(.itinerary-sheet[data-sheet=compact]){--map-attribution-bottom:156px}#home-map .amap-logo,#home-map .amap-copyright{bottom:var(--map-attribution-bottom)!important}.map-home:has(.itinerary-sheet[data-sheet=expanded]) #home-map .amap-logo{top:calc(124px + var(--home-safe-offset));bottom:auto!important}.map-home:has(.itinerary-sheet[data-sheet=expanded]) #home-map .amap-copyright{top:calc(128px + var(--home-safe-offset));bottom:auto!important}.map-home:has(.itinerary-sheet[data-sheet=expanded]) .home-map-surface:has(#home-map:not([hidden])) .home-map-caption{visibility:hidden}}

@media(min-width:601px) and (max-width:900px) and (max-height:600px){.map-home{--home-panel-width:min(390px,47vw)}.itinerary-sheet{left:auto;right:12px;bottom:12px;width:var(--home-panel-width);height:calc(100dvh - 83px - var(--home-safe-offset));border:1px solid #e8eced;border-radius:20px}.itinerary-sheet[data-sheet=expanded]{height:calc(100dvh - 71px - var(--home-safe-offset))}.itinerary-sheet[data-sheet=compact]{height:148px}.has-map-home .trip-toolbar{right:calc(min(390px,47vw) + 28px)}.home-map-controls{margin-right:calc(var(--home-panel-width) + 12px);flex-direction:row}.map-home:has(.itinerary-sheet[data-sheet]) #home-map .amap-logo,.map-home:has(.itinerary-sheet[data-sheet]) #home-map .amap-copyright{top:auto;bottom:2px!important}.map-home:has(.itinerary-sheet[data-sheet=expanded]) .home-map-surface:has(#home-map:not([hidden])) .home-map-caption{visibility:visible}}

/* Shared controls use explicit contrast, system Chinese type and native input behavior. */
body{touch-action:manipulation}
button,input,select,textarea{color:inherit;touch-action:manipulation}
a.button,.nav-item,.itinerary-sheet,.trip-toolbar,.topbar,.dialog-body{touch-action:manipulation}
input,select,textarea{color:#344353}
.button.primary{background:var(--primary);border-color:var(--primary);color:#fff}
.button.primary:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover);color:#fff}
.button.outline{background:#fff;border-color:#e7ddd5;color:var(--primary)}
.button.outline:hover:not(:disabled){background:#fff8f1;border-color:var(--accent);color:var(--primary)}
.button.outline.danger{color:#a54c42}
.dialog-body,.dialog-body h3{color:#263440}
.dialog-body label,.dialog-body .muted{color:#657786}
.home-map-caption,.home-map-controls{display:none}
.trip-select-wrap{position:relative;flex:1;min-width:0}
.trip-select-wrap::after{content:"";position:absolute;right:16px;top:calc(50% - 6px);width:8px;height:8px;border-right:2px solid #657786;border-bottom:2px solid #657786;transform:rotate(45deg);pointer-events:none}
.trip-select-wrap #trip-select{width:100%;appearance:none;-webkit-appearance:none;padding-right:43px;color:#344353}
.has-map-home #trip-select{color:#344353;font-weight:600;padding-right:43px}
.has-map-home .itinerary-card h3{color:#263440;font-weight:600}
.has-map-home .day-heading h2,.has-map-home .item-time{color:#344353}
.has-map-home .place-line,.has-map-home .item-note,.has-map-home .item-duration{color:#657786}
@media(max-width:900px){
 .itinerary-sheet{padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .itinerary-sheet[data-sheet=compact]{height:calc(148px + env(safe-area-inset-bottom))}
 .map-home:has(.itinerary-sheet[data-sheet=compact]){--map-attribution-bottom:calc(156px + env(safe-area-inset-bottom))}
 /* The drag handle intentionally retains touch-action:none on mobile only. */
 .sheet-toggle{touch-action:none}
}
@media(min-width:901px){
 :root{font-size:15px}
 .map-home{--home-panel-width:clamp(360px,32vw,440px)}
 .has-map-home .trip-toolbar{right:calc(clamp(360px,32vw,440px) + 48px);max-width:560px}
 .itinerary-sheet,.itinerary-sheet[data-sheet=expanded]{top:88px;right:24px;bottom:auto;width:var(--home-panel-width);height:calc(100dvh - 112px);padding:0 20px;border:1px solid #e8eced;border-radius:20px}
 .itinerary-sheet[data-sheet=compact]{height:88px}
 .sheet-toggle{min-height:44px;padding:9px 0;justify-content:flex-end;gap:8px;touch-action:manipulation;font-size:13px;color:#657786}
 .sheet-toggle::before{display:none}
 .sheet-toggle::after{content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(225deg);margin:4px 3px 0 0}
 .itinerary-sheet[data-sheet=compact] .sheet-toggle::after{transform:rotate(45deg);margin-top:-3px}
 .itinerary-sheet[data-sheet=compact] .date-toolbar,.itinerary-sheet[data-sheet=compact] .filter-row,.itinerary-sheet[data-sheet=compact] .sheet-scroll{display:none}
 .itinerary-sheet[data-sheet=compact] .day-heading{padding-right:0}
 .has-map-home .day-heading h2{font-size:20px}
 .has-map-home .day-heading h2 span{font-size:17px}
 .has-map-home .day-tab strong{font-size:15px}
 .has-map-home .day-tab span,.has-map-home .filter{font-size:12px}
 .has-map-home .itinerary-card h3{font-size:16px}
 .has-map-home .item-time{font-size:14px}
 .has-map-home .place-line,.has-map-home .item-note,.has-map-home .item-duration{font-size:13px}
 .has-map-home #trip-select{font-size:16px}
}

/* The single-screen app also keeps signed-out desktop views centered. */
.workspace{margin-left:0}
.mobile-brand{display:flex;align-items:center;gap:7px;font-size:16px;color:var(--primary)}
.topbar-start{display:flex;align-items:center;gap:12px;min-width:0}

/* Shared orange actions, including settings, navigation and the agent guide. */
.mcp-readme-link,.mcp-readme a{color:var(--primary)}
.mcp-readme-link:hover,.mcp-readme a:hover{color:var(--primary-hover);text-decoration:underline}
.place-line>.icon,.place-symbol>.icon{color:var(--primary)}
.has-map-home .card-actions .button:hover:not(:disabled){background:#ffe9d6;color:var(--primary-hover)}
.button.danger:hover:not(:disabled){background:#fff0ee;color:#a54c42}
.button.destructive:hover:not(:disabled){background:#934237;color:#fff}

/* Dialogs and standalone app pages share the same warm surfaces and controls. */
.button{border-radius:14px;font-weight:600}
input,select,textarea{border-radius:12px;accent-color:var(--primary)}
input:hover:not(:disabled),select:hover:not(:disabled),textarea:hover:not(:disabled){border-color:#d5ae91}
input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:var(--primary)}
dialog{border-radius:24px;background:#fffdfb;box-shadow:0 20px 80px #26344030}
dialog>header{padding:18px 22px;background:#fffdfb}
dialog>header .icon-button{background:var(--accent-soft);border-radius:50%}
.dialog-body{padding:22px}
.dialog-body label{line-height:1.6}
.dialog-body .settings-section,.dialog-body .trip-delete-row{border-color:#ece6e0}
.manage-item,.access-entry{border-radius:16px;padding:16px;background:#fff;border:1px solid #ece6e0}
.manage-actions{gap:5px}
.external-link,.map-provider-native{border-radius:16px;border-color:#ece6e0}
.external-link:hover,.map-provider-native:hover{border-color:#d5ae91}
.map-provider-native .map-app-link{border-radius:0}
.external-link .icon,.map-app-link .icon,.map-web-link .icon,.map-search-link .icon{color:var(--primary)}
.migration-note,.auth-permission,.auth-notice-readonly{border-radius:14px;background:var(--accent-soft)}
.auth-page{background:#faf9f7}
.auth-page .auth-card{border-radius:24px;border-color:#ece6e0;box-shadow:0 12px 40px #2634400b}
.auth-symbol{border-radius:12px}
.auth-permission{border-color:#e7ddd5}
.auth-permission:has(input:checked){border-color:#d5ae91}
.auth-actions .button{border-radius:14px}
main.mcp-readme,.mcp-readme main{padding:32px 24px}
.mcp-readme header{padding:24px;border:1px solid #ece6e0;background:#fff;border-radius:20px;margin-bottom:18px}
.mcp-readme .mcp-reference{margin:0;padding:24px;border:1px solid #ece6e0;background:#fff;border-radius:20px;color:#344353}
.mcp-readme-link{padding:10px 14px;background:var(--accent-soft);border-radius:14px}
@media(max-width:700px){
 dialog{border-radius:22px}
 dialog>header{padding:14px 18px}
 .dialog-body{padding:18px}
 .manage-item,.access-entry{padding:14px}
 main.mcp-readme,.mcp-readme main{padding:20px 16px}
 .mcp-readme header,.mcp-readme .mcp-reference{padding:20px;border-radius:18px}
 .auth-page .auth-card{padding:24px 20px;border-radius:22px}
}

/* Continuous touch sheet: pixels while dragging, nearby anchors on release. */
.sheet-toggle-label{display:none}
@media(max-width:900px){
 .itinerary-sheet,.itinerary-sheet[data-sheet=normal],.itinerary-sheet[data-sheet=free],.itinerary-sheet[data-sheet=expanded],.itinerary-sheet[data-sheet=compact]{height:var(--sheet-height,var(--home-sheet-height));min-height:calc(148px + env(safe-area-inset-bottom));max-height:calc(100dvh - var(--sheet-bottom,0px));padding-top:var(--sheet-top-padding,0px);transition:height 180ms ease-out}
 .itinerary-sheet.is-dragging{transition:none;will-change:height}
 .sheet-toggle{min-height:44px;height:44px;padding:0;touch-action:none}
 .sheet-toggle:before{top:16px;width:40px;height:5px;left:calc(50% - 20px);background:#abb3bb}
 .sheet-covers-header .topbar,.sheet-covers-header .trip-toolbar{visibility:hidden;pointer-events:none}
 .sheet-covers-header .itinerary-sheet{z-index:30}
 .map-home #home-map .amap-logo,.map-home #home-map .amap-copyright{top:auto!important;bottom:var(--map-attribution-bottom)!important}
 .map-home[data-map-covered=true] #home-map .amap-logo,.map-home[data-map-covered=true] #home-map .amap-copyright{visibility:hidden}
}
@media(min-width:601px) and (max-width:900px) and (max-height:600px){.itinerary-sheet{--sheet-bottom:12px}.map-home #home-map .amap-logo,.map-home #home-map .amap-copyright{bottom:2px!important}}
@media(prefers-reduced-motion:reduce){.itinerary-sheet{transition:none}}
.itinerary-sheet.sheet-initializing{transition:none}

.access-list{display:grid;gap:12px}
