/* Penpot 桌面设计；旧页面地址与业务控制器保持连续。 */
body.product-page,body.auth-page {
  --mixtouring-background:#fcfcfb; --mixtouring-foreground:#20201f;
  --mixtouring-card:#fff; --mixtouring-muted:#eff1ef; --mixtouring-muted-foreground:#60645f;
  --mixtouring-border:#d7dad7; --mixtouring-primary:#1d211c; --mixtouring-primary-foreground:#fff;
  --mixtouring-ring:#60655f; --color-brand-accent:#60645f; --color-accent-text:#355a43;
  --color-route-soft:#f3f4f1; --color-route-selected:#eaf0ea; --mt-sidebar:#f7f7f5;
  font-size:15px; line-height:1.45;
}
body.product-page {padding-left:248px!important;}
html[lang=zh-CN] body.product-page,html[lang=zh-CN] body.auth-page {font-family:'Noto Sans SC',Inter,system-ui,sans-serif;}
html[data-theme=dark] body.product-page,html[data-theme=dark] body.auth-page {
  --mixtouring-background:#141714;--mixtouring-foreground:#edf0ed;--mixtouring-card:#1d211c;
  --mixtouring-muted:#282e28;--mixtouring-muted-foreground:#b9c0b8;--mixtouring-border:#4d584d;
  --mixtouring-primary:#edf0ed;--mixtouring-primary-foreground:#161916;--mixtouring-ring:#b9c0b8;
  --color-brand-accent:#b9c0b8;--color-accent-text:#9aefbb;--color-route-soft:#282e28;
  --color-route-selected:#21392a;--mt-sidebar:#191d19;
}
body.product-page nav.mt-sidebar[data-mobile-nav] {position:fixed;inset:0 auto 0 0;width:248px;min-width:0;height:100dvh;display:flex;flex-direction:column;padding:24px 16px 16px;background:var(--mt-sidebar);border:0;border-radius:0;box-shadow:none!important;z-index:50;gap:0;}
body.product-page nav.mt-sidebar::before {display:none;}
body.product-page nav.mt-sidebar>div.mt-brand {display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:8px;font-size:19px;font-weight:500;margin-bottom:24px;}
body.product-page nav.mt-sidebar button,body.product-page nav.mt-sidebar a {font:inherit;color:var(--mixtouring-foreground);background:transparent;text-decoration:none;border:0;min-height:44px;border-radius:8px;}
body.product-page nav.mt-sidebar button {cursor:pointer;}
body.product-page nav.mt-sidebar svg,body.product-page nav.mt-sidebar img {width:20px;height:20px;flex:none;}
body.product-page nav.mt-sidebar .mt-brand>span {min-width:0}
body.product-page nav.mt-sidebar .mt-brand .mt-wordmark,.auth-page .brand .mt-wordmark {display:block;width:128px;max-width:100%;height:auto}
html[data-theme=dark] .mt-wordmark {filter:invert(1)}
body.product-page nav.mt-sidebar #sidebarToggle {display:grid;place-items:center;width:44px;min-width:44px;padding:10px;}
body.product-page nav.mt-sidebar>div.mt-nav-links {display:flex;flex-direction:column;gap:6px;}
body.product-page nav.mt-sidebar .mt-nav-links a {display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:12px;padding:10px 12px;width:100%;height:auto;min-height:44px;font-size:14px;}
body.product-page nav.mt-sidebar .mt-nav-links span {font-size:14px;}
body.product-page nav.mt-sidebar a:hover,body.product-page nav.mt-sidebar button:hover,body.product-page nav.mt-sidebar .mt-nav-links [aria-current=page] {background:var(--mixtouring-muted);color:var(--mixtouring-foreground);}
body.product-page nav.mt-sidebar>div.mt-account {display:block;position:relative;margin-top:auto;}
body.product-page nav.mt-sidebar #accountToggle {display:flex;flex-direction:row;align-items:center;gap:12px;width:100%;padding:8px 12px;text-align:left;font-size:14px;}
body.product-page nav.mt-sidebar #accountToggle>svg {margin-left:auto;width:16px;}
.mt-avatar {display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--mixtouring-muted);flex:none;}
body.product-page nav.mt-sidebar #accountMenu {position:absolute;bottom:56px;left:0;width:216px;background:var(--mixtouring-card);border:1px solid var(--mixtouring-border);padding:8px;border-radius:12px;box-shadow:0 8px 24px #0001;}
body.product-page nav.mt-sidebar #accountMenu[hidden] {display:none;}
body.product-page nav.mt-sidebar #accountMenu a {display:flex;justify-content:flex-start;padding:12px;font-size:14px;}
body.product-page.mt-sidebar-collapsed {padding-left:80px!important;}
body.product-page.mt-sidebar-collapsed nav.mt-sidebar {width:80px;padding-inline:12px;}
.mt-sidebar-collapsed .mt-brand>span,.mt-sidebar-collapsed .nav-label,.mt-sidebar-collapsed #accountToggle>svg {display:none!important;}
body.product-page.mt-sidebar-collapsed nav.mt-sidebar .mt-nav-links a {justify-content:center;padding:10px;}
body.product-page.mt-sidebar-collapsed nav.mt-sidebar #accountToggle {padding:8px;}
body.product-page .app-shell,body.product-page .trip-shell {max-width:1240px;margin:0 auto;padding:40px 48px;min-height:100dvh;width:100%;}
body.product-page .personal-layout {display:block;max-width:1040px;margin:auto;}
body.product-page .personal-content {min-width:0;max-width:1040px;margin:auto;}
body.product-page h1,body.product-page.user-page h1 {font-size:24px!important;line-height:1.3;font-weight:500;margin:0 0 28px;}
body.product-page h2 {font-weight:500;line-height:1.4;}
body.product-page .personal-content section {padding:24px 0;margin:0;border-bottom:1px solid var(--mixtouring-border);}
body.product-page .personal-content h2 {font-size:16px;}
body.product-page .personal-card,body.product-page .trip-library-card {border-radius:12px;box-shadow:none;padding:24px;overflow-wrap:anywhere;}
body.product-page .personal-row {gap:16px;}
body.product-page .personal-content button,body.product-page .personal-content input,body.product-page .personal-content select {border-radius:8px;min-height:44px;}
body.product-page .mt-button-primary,body.product-page .mt-button-secondary {border-radius:8px;line-height:1.4;}
body.product-page #draftWrap {display:grid;gap:20px;margin-top:24px;}
body.product-page .trip-library-heading h2 {overflow-wrap:anywhere;font-size:20px;}
body.product-page #entryCard {max-width:720px;margin:100px auto 0;padding:0;border:0;background:none;}
body.product-page #entryLabel.mt-theme {display:block;position:relative;width:100%;height:168px;overflow:hidden;border-radius:16px;margin-bottom:28px!important;background:#16465a;}
.mt-theme>img {width:100%;height:100%;object-fit:cover;object-position:50% 40%;opacity:.65;}
body.product-page .mt-theme h1 {position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:white;margin:0;font-size:30px!important;padding:20px;}
.mt-theme-dots {position:absolute;bottom:8px;left:0;right:0;display:flex;justify-content:center;}
.mt-theme-dots button {width:44px;height:32px;border:0;background:none;cursor:pointer;display:grid;place-items:center;}
.mt-theme-dots button::after {content:'';width:7px;height:7px;border-radius:50%;background:#ffffff70;}
.mt-theme-dots button[aria-pressed=true]::after {background:white;}
body.product-page .conversation-composer,body.product-page #entryCard .conversation-composer {display:flex;flex-direction:column;align-items:stretch;padding:18px 20px 16px;border:1px solid var(--mixtouring-border);border-radius:24px;gap:0;box-shadow:none;background:var(--mixtouring-card);}
body.product-page .conversation-composer:focus-within {border-color:var(--mixtouring-muted-foreground);box-shadow:none;}
body.product-page #nlInput,body.product-page #nlInput:focus-visible {width:100%;min-height:52px;padding:0;border:0;outline:0;box-shadow:none;background:transparent;font-size:15px;line-height:1.45;}
.mt-composer-toolbar {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:18px;}
#composerMemoryLabel {white-space:nowrap;}
body.product-page .mt-composer-toolbar select.mt-reasoning,
body.product-page :where(#guideArea) .mt-composer-toolbar select.mt-reasoning {width:auto;min-width:0;max-width:190px;min-height:44px;border:0;border-radius:8px;padding:0 4px;background:transparent;color:var(--mixtouring-muted-foreground);font:inherit;font-size:13px;line-height:20px;box-shadow:none;cursor:pointer;color-scheme:light;}
body.product-page .mt-composer-toolbar select.mt-reasoning:hover:not(:disabled) {background:var(--mixtouring-muted);}
body.product-page .mt-composer-toolbar select.mt-reasoning:focus-visible {outline:2px solid var(--mixtouring-ring);outline-offset:2px;}
body.product-page .mt-composer-toolbar select.mt-reasoning:disabled {cursor:wait;opacity:.65;}
html[data-theme=dark] body.product-page .mt-composer-toolbar select.mt-reasoning {color-scheme:dark;}

body.product-page .mt-composer-toolbar .mt-circle,body.product-page #guideArea .mt-composer-toolbar .mt-circle {display:grid;place-items:center;width:44px;height:44px;padding:10px;border:0;border-radius:50%;background:var(--mixtouring-muted);flex:none;}
.mt-circle svg {width:24px;height:24px;}
.mt-composer-actions {display:inline-flex;align-items:center;gap:inherit;margin-inline-start:auto;}
body.product-page #composerMemory,body.product-page #guideArea #composerMemory {display:flex;align-items:center;gap:8px;font:inherit;font-size:13px;line-height:20px;padding:0;border:0;background:none;color:var(--mixtouring-muted-foreground);min-height:44px;}
.mt-switch-track {display:block;width:32px;height:20px;border-radius:10px;background:#cccfcc;padding:3px;flex:none;}
.mt-switch-track::after {content:'';display:block;width:14px;height:14px;border-radius:50%;background:white;transition:transform 140ms;}
[aria-checked=true]>.mt-switch-track {background:#218358;}
[aria-checked=true]>.mt-switch-track::after {transform:translateX(12px);}
#attachmentStatus {font-size:12px;color:var(--mixtouring-muted-foreground);margin:8px 0 0;}
body.product-page .entry-examples {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:12px;width:100%;margin-top:20px;}
body.product-page .entry-examples>span {display:none;}
body.product-page .entry-examples button {display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;min-height:48px;height:100%;border:1px solid var(--mixtouring-border);border-radius:20px;background:none;padding:10px 16px;font-size:13px;line-height:20px;}
body.product-page #guideArea {border:0;background:transparent;padding:0;box-shadow:none;}
body.product-page #guideArea .guide-message {font-size:15px;line-height:1.45;background:transparent;padding:0;margin:0 0 24px;}
body.product-page #guideArea .guide-message p {margin:0 0 8px;}
body.product-page #guideArea .guide-user {background:var(--mixtouring-muted);padding:16px;border-radius:12px;margin-left:15%;}
body.product-page .source-arrow {color:var(--mixtouring-muted-foreground);}
body.product-page .personal-content a {color:var(--mixtouring-foreground);}
@media(min-width:960px) {
 body.product-page .trip-shell:has(#planColumn:not([hidden])) {padding:28px 32px;}
 body.product-page .planning-workspace:has(#planColumn:not([hidden])) {grid-template-columns:minmax(300px,1fr) minmax(340px,1.1fr);gap:28px;}
}
@media(max-width:1180px) {
 body.product-page .app-shell,body.product-page .trip-shell {padding:28px;}
 body.product-page #entryCard {margin-top:64px;}
}
@media(prefers-reduced-motion:reduce) {body.product-page *,body.product-page *::before,body.product-page *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}}

body.product-page nav.mt-sidebar .mt-brand>span{font-size:19px;font-weight:500}
html[data-theme] body.product-page nav.mt-sidebar .mt-nav-links [aria-current=page]{background:var(--mixtouring-muted);color:var(--mixtouring-foreground)}

body.product-page .personal-content label:has(input[type=checkbox]){display:flex;align-items:center;gap:12px}
body.product-page .personal-content input[type=checkbox]{width:20px;min-height:20px;height:20px;margin:0;flex:none}
body.product-page #languageSelect,body.product-page #themeSelect{max-width:320px}
body.product-page .saved-heart-button{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:13px;border:0;background:transparent}
.saved-heart-button img{width:22px;height:22px;flex:none}

@media(min-width:960px){
 body.product-page .planning-workspace:has(#planColumn:not([hidden])){display:grid!important;grid-template-columns:minmax(280px,.9fr) minmax(320px,1.1fr);min-height:0;gap:28px}
 body.product-page .planning-workspace:has(#planColumn:not([hidden])) #guideArea{display:flex;flex-direction:column;min-width:0;min-height:0;max-width:none;margin:0;overflow:hidden}
 body.product-page .planning-workspace:has(#planColumn:not([hidden])) .guide-messages{flex:1;min-height:0;max-height:none;overflow-y:auto}
 body.product-page .planning-workspace:has(#planColumn:not([hidden])) .conversation-composer{flex:none}
}
body.product-page .conversation-heading p{display:none}

/* 对话与行程：按新版原型组织阅读层级。 */
body.product-page #guideArea .conversation-heading{border:0;padding:0 0 12px;justify-content:flex-end;min-height:44px;flex:none}
body.product-page:has(#planColumn[hidden]) .conversation-heading{display:none}
body.product-page #guideArea .message-author{display:none}
body.product-page #guideArea .message-row{margin:0 0 24px}
body.product-page #guideArea .message-user{width:fit-content;max-width:85%;min-width:0;margin-left:auto}
body.product-page #guideArea .guide-user{margin-left:0;padding:8px 14px;border-radius:12px;overflow-wrap:anywhere}
body.product-page #guideArea .chat-trip-version{display:block;border:0;background:var(--mixtouring-muted);border-radius:12px;padding:16px;margin:16px 0}
body.product-page .chat-trip-version .version-icon{display:none}
body.product-page .chat-trip-version p{font-size:15px;line-height:1.45;margin:8px 0}
body.product-page .chat-trip-version .version-actions{margin-top:8px}
body.product-page #taskPreview.current-plan{padding:20px;background:var(--mt-sidebar);border:0;border-radius:12px;box-shadow:none}
body.product-page #taskPreview .plan-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
body.product-page #taskPreview .plan-heading h2{font-size:18px;line-height:24px;margin:0}
body.product-page .mt-panel-close{width:44px;height:44px;display:grid;place-items:center;font-size:24px;background:none;border:0;border-radius:8px;color:var(--mixtouring-foreground);cursor:pointer}
body.product-page .plan-save-row .plan-actions{display:flex;flex-direction:row;align-items:center;gap:12px}
body.product-page #taskSaveNote{font-size:12px;line-height:1.45;margin:8px 0 12px}
body.product-page .trip-summary{margin:0 0 16px;border-bottom:1px solid var(--mixtouring-border);font-size:14px}
body.product-page .trip-summary>summary{min-height:44px;align-content:center;cursor:pointer}
body.product-page .trip-summary h3{font-size:16px;font-weight:500;margin:8px 0}
body.product-page .trip-summary .route-overview{font-size:15px;line-height:1.45;margin:12px 0 16px}
body.product-page .itinerary-tabs{display:flex;gap:8px;margin:0 0 20px}
body.product-page .itinerary-tabs button{min-height:44px;padding:8px 16px;border:0;border-radius:20px;color:var(--mixtouring-foreground);background:transparent;font:inherit;cursor:pointer}
body.product-page .itinerary-tabs [aria-pressed=true]{background:var(--mixtouring-card)}
body.product-page .itinerary-city .city-heading{display:none}
body.product-page .itinerary-card{display:block;padding:0;margin:0 0 16px}
body.product-page .itinerary-card::before,body.product-page .itinerary-marker{display:none!important}
body.product-page .itinerary-card-body{border:0;border-radius:12px;padding:18px;background:var(--mixtouring-card)}
body.product-page .itinerary-card-body h3{font-size:16px;line-height:1.4;font-weight:500;margin:0 0 12px}
body.product-page .itinerary-meta{font-size:13px;color:var(--mixtouring-muted-foreground);margin:0 0 8px}
body.product-page .itinerary-points,body.product-page .itinerary-card p{font-size:15px;line-height:1.45}
body.product-page .itinerary-card .card-edit{font-size:14px;padding:8px 0;color:var(--mixtouring-foreground)}
body.product-page .itinerary-card .day-expand,body.product-page .itinerary-card .day-collapse{font-size:13px;color:var(--mixtouring-muted-foreground)}
@media(min-width:960px){
 body.product-page.itinerary-collapsed #planColumn{display:none!important}
 body.product-page.itinerary-collapsed .planning-workspace:has(#planColumn:not([hidden])){grid-template-columns:minmax(0,720px)!important;justify-content:center}
 body.product-page .planning-workspace:has(#planColumn:not([hidden])){grid-template-columns:minmax(300px,1fr) minmax(320px,440px)}
}

/* 个人页面复用原型的卡片、设置行与分类控件。 */
body.product-page.user-page .app-shell{max-width:1136px}
body.product-page .trips-toolbar{display:flex;align-items:center;margin:28px 0 0;gap:16px}
body.product-page #draftSearch{width:100%;flex:1;padding:14px 16px;border-radius:8px}
body.product-page .trips-toolbar #draftCount{white-space:nowrap;font-size:12px;margin:0}
body.product-page .trip-library-card{padding:24px;border:0;border-radius:12px;background:var(--mixtouring-card)}
body.product-page .trip-library-card .mt-meta{margin:8px 0 0;font-size:13px}
body.product-page .trip-library-actions{margin-top:20px;gap:12px}
body.product-page .mt-empty.prototype-empty,body.product-page.user-page .mt-empty{border:0;background:none;text-align:center;max-width:640px;margin:120px auto;padding:24px}
body.product-page .mt-empty h2{font-size:20px}
body.product-page .settings-card{padding:0 24px;border-radius:12px;background:var(--mixtouring-card)}
body.product-page .settings-card section{padding:0!important;border-bottom:1px solid var(--mixtouring-border)}
body.product-page .settings-card section:last-child{border:0}
body.product-page .setting-row{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:24px 0!important;min-height:92px}
body.product-page .setting-row h2{margin:0;font-size:16px;font-weight:500}
body.product-page .setting-row p{margin:8px 0 0;font-size:13px}
/* 工具栏与设置行随选中文字收缩。表单字段继续使用各自的列宽。 */
.mt-select-inline {position:relative;display:inline-flex;align-items:center;max-width:100%;color:var(--mixtouring-foreground)}
.mt-select-inline:has(> select[hidden]) {display:none}
.mt-select-inline > select {appearance:none;field-sizing:content;cursor:pointer}
body.product-page .mt-select-inline > select:is(#themeSelect,#languageSelect),
body.auth-page .mt-select-inline > #authLanguage {width:auto;max-width:100%;min-height:44px;padding:0 9px;border:0;border-radius:8px;background:transparent;font:inherit;font-size:14px;color:inherit}
.mt-select-inline:hover {border-radius:8px;background:var(--mixtouring-muted)}
.mt-select-inline > select:focus-visible {outline:2px solid var(--mixtouring-ring);outline-offset:2px}
/* 单选菜单共用表面和选项状态，选中标记与当前键盘焦点独立。 */
.mt-select-menu {
  position:fixed;inset:auto;z-index:1000;margin:0;box-sizing:border-box;
  width:max-content;max-width:calc(100vw - 16px);overflow:auto;overscroll-behavior:contain;
  padding:4px;border:1px solid var(--mixtouring-border);border-radius:12px;
  background:var(--mixtouring-card);color:var(--mixtouring-foreground);
  box-shadow:0 6px 20px rgb(0 0 0 / .12);font:inherit;font-size:14px;
}
.mt-select-menu [role=option] {
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:8px 10px;min-height:44px;box-sizing:border-box;border-radius:8px;cursor:pointer;
}
.mt-select-menu [role=option]::after {content:"";min-width:1em}
.mt-select-menu [aria-selected=true]::after {content:"✓";color:var(--color-accent-text)}
.mt-select-menu [role=option]:hover,.mt-select-menu [role=option]:focus {background:var(--mixtouring-muted);outline:0}
.mt-select-menu [role=option]:focus-visible {outline:2px solid var(--mixtouring-ring);outline-offset:-2px}
.mt-select-menu [aria-disabled=true] {opacity:.55;cursor:default}
@supports (appearance:base-select) and selector(::picker(select)) {
  body:is(.auth-page,.product-page) select:not([multiple]):not([size]),
  body:is(.auth-page,.product-page) select:not([multiple]):not([size])::picker(select) {appearance:base-select}
  .mt-select-inline > select:not([hidden]) {display:inline-flex;align-items:center}
  .mt-select-inline select::picker-icon {display:none}
  select::picker(select) {
    margin-block:4px;min-width:anchor-size(width);width:max-content;max-width:calc(100vw - 16px);
    max-height:min(360px,80dvh);overflow:auto;overscroll-behavior:contain;padding:4px;
    background:var(--mixtouring-card);color:var(--mixtouring-foreground);
    border:1px solid var(--mixtouring-border);border-radius:12px;box-shadow:0 6px 20px rgb(0 0 0 / .12);
    font:inherit;font-size:14px;
  }
  body:is(.auth-page,.product-page) select option {
    display:flex;align-items:center;gap:16px;min-height:44px;padding:8px 10px;
    border-radius:8px;background:var(--mixtouring-card);color:var(--mixtouring-foreground);cursor:pointer;
  }
  select option::checkmark {order:1;margin-inline-start:auto;color:var(--color-accent-text)}
  body:is(.auth-page,.product-page) select option:is(:hover,:focus) {background:var(--mixtouring-muted)}
  body:is(.auth-page,.product-page) select option:focus-visible {outline:2px solid var(--mixtouring-ring);outline-offset:-2px}
}
body.product-page .settings-memory{display:flex;align-items:center;gap:8px;font-size:14px;flex:none}
body.product-page #memoryEnabled{appearance:none;width:32px;height:20px;min-height:20px;border:0;border-radius:10px;background:#cccfcc;position:relative;padding:3px;cursor:pointer}
body.product-page #memoryEnabled::after{content:'';display:block;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform 140ms}
body.product-page #memoryEnabled:checked{background:#218358}
body.product-page #memoryEnabled:checked::after{transform:translateX(12px)}
body.product-page .settings-advanced{padding:0 0 16px;font-size:13px;color:var(--mixtouring-muted-foreground)}
body.product-page .settings-advanced>summary{min-height:36px;padding:8px 0}
body.product-page .settings-footer{margin:24px 0}
body.product-page .settings-footer a{display:inline-flex;padding:12px 20px;background:var(--mixtouring-muted);border-radius:8px;text-decoration:none}
body.product-page .saved-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
body.product-page .saved-tabs{display:flex;gap:8px}
body.product-page .saved-tabs button{border:0;border-radius:20px;padding:8px 16px;min-height:44px;background:transparent;white-space:nowrap}
body.product-page .saved-tabs button[aria-pressed=true]{background:var(--mixtouring-muted)}
body.product-page #collectionSearch{max-width:300px;min-width:0}
body.product-page .saved-add{font-size:13px;margin-bottom:12px}
body.product-page .saved-add[open]{max-width:640px;padding:20px;background:var(--mixtouring-card);border-radius:12px}
body.product-page .saved-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
body.product-page .saved-card{position:relative;background:var(--mixtouring-card);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}
body.product-page .saved-card h2{font-size:18px;line-height:1.4;margin:0;overflow-wrap:anywhere}
body.product-page .saved-card p{margin:0;font-size:13px}
.saved-card-media{height:180px;border-radius:10px;background:var(--mixtouring-muted);display:grid;place-items:center}
.saved-card-media>img{width:44px;height:44px;opacity:.35}
body.product-page .saved-card .saved-heart-button{position:absolute;top:24px;right:24px;width:44px;height:44px;padding:11px;border-radius:50%;background:var(--mixtouring-card)}
body.product-page .saved-card-open{margin-top:auto;background:var(--mixtouring-muted);border:0;min-height:44px;border-radius:8px}
body.product-page .saved-detail{width:min(640px,calc(100vw - 64px));max-height:calc(100dvh - 64px);overflow:auto;border:1px solid var(--mixtouring-border);border-radius:16px;padding:28px;background:var(--mixtouring-card);color:var(--mixtouring-foreground)}
.saved-detail::backdrop{background:#0005}
.saved-detail .detail-close{display:block;margin:0 0 12px auto;min-width:44px;min-height:44px;border:0;background:none;color:inherit;font-size:24px}
.saved-detail h2{font-size:24px;margin:24px 0 12px;overflow-wrap:anywhere}
.saved-detail .detail-actions{display:flex;gap:12px;margin-top:28px}
.saved-detail button:not(.detail-close){padding:10px 16px;min-height:44px;border-radius:8px;border:0;font:inherit;cursor:pointer;color:var(--mixtouring-foreground);background:var(--mixtouring-muted)}
.saved-detail button.primary{color:var(--mixtouring-primary-foreground);background:var(--mixtouring-primary)}
@media(max-width:1180px){body.product-page .saved-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.product-page .saved-toolbar{gap:12px;flex-wrap:wrap}}

body.product-page #taskPreview .itinerary-card-body{background:var(--mixtouring-card);border:0}
body.product-page #taskSaveNote a{margin-inline:4px}

.saved-detail form label{display:grid;gap:8px;margin:20px 0;font-size:14px}.saved-detail select{width:100%;min-height:44px;border:1px solid var(--mixtouring-border);border-radius:8px;background:var(--mixtouring-card);color:var(--mixtouring-foreground);padding:10px;font:inherit}.saved-detail [role=alert]{color:var(--state-error);font-size:14px}.saved-detail .detail-actions a{align-self:center;text-decoration:none}.saved-detail #savedDayForm p:not([role]){font-size:13px;color:var(--mixtouring-muted-foreground)}

body.product-page .conversation-recovery{flex:none;padding:16px;background:var(--mixtouring-muted);border:1px solid var(--mixtouring-border);border-radius:12px;margin:0 0 16px;font-size:14px;line-height:1.45}.conversation-recovery p{margin:0 0 12px}.conversation-recovery button{min-height:44px}

.help-card-list{display:grid;gap:20px}.help-card{background:var(--mixtouring-card);border-radius:12px;padding:24px}.help-card h2{font-size:16px;margin:0 0 12px}.help-card p{font-size:15px;line-height:1.5;margin:0}.help-feedback{margin-top:24px;padding:20px 24px;border:1px solid var(--mixtouring-border);border-radius:12px}.help-feedback>summary{cursor:pointer;min-height:44px}.help-feedback textarea{width:100%}

body.product-page #taskPreview .preview-banner{border:1px solid var(--mixtouring-border);background:var(--mixtouring-muted);color:var(--mixtouring-foreground);border-radius:12px;padding:16px;margin:12px 0}body.product-page #taskPreview .preview-banner button{border:0;color:var(--mixtouring-foreground);background:var(--mixtouring-card)}body.product-page #taskPreview .preview-banner #acceptRoutePreview{background:var(--mixtouring-primary);color:var(--mixtouring-primary-foreground)}body.product-page .plan-save-row .plan-actions{flex-wrap:wrap}

/* 全站键盘入口、危险操作与长文阅读。 */
.mt-skip{position:fixed;top:-100px;left:16px;z-index:200;padding:12px 16px;background:var(--mixtouring-card);color:var(--mixtouring-foreground);border:2px solid var(--mixtouring-ring);border-radius:8px;text-decoration:none}
.mt-skip:focus{top:12px}
body.product-page #mainContent:focus{outline:none}
body.product-page .mt-button-danger{background:#b42318;color:#fff;border:1px solid #b42318;border-radius:8px}
html[data-theme=dark] body.product-page .mt-button-danger{background:#ffb4ac;color:#3b0b07;border-color:#ffb4ac}
body.product-page.legal-page .personal-content{max-width:72ch;margin:0 auto}
body.product-page.legal-page .personal-content p{font-size:15px;line-height:1.65;margin:0 0 16px;overflow-wrap:anywhere}
body.product-page.legal-page .personal-content h2{font-size:18px;line-height:1.4;margin:28px 0 12px}
body.product-page.legal-page .personal-content section{border:0;padding:0}
body.product-page .saved-detail:focus-visible{outline:2px solid var(--mixtouring-ring);outline-offset:2px}

/* 成稿阅读优先；保留已有收起侧栏与行程的显式选择。 */
@media(min-width:1100px){
 body.product-page:not(.mt-sidebar-collapsed){padding-left:208px!important}
 body.product-page:not(.mt-sidebar-collapsed) nav.mt-sidebar[data-mobile-nav]{width:208px}
 body.product-page:not(.itinerary-collapsed) .planning-workspace:has(#planColumn:not([hidden])){grid-template-columns:minmax(300px,.85fr) minmax(420px,1.15fr)}
}
body.product-page .conversation-composer{padding:14px 16px 12px}
body.product-page #nlInput{min-height:44px;max-height:160px}

body.product-page:not(.itinerary-collapsed) .planning-workspace:has(#planColumn:not([hidden])) .conversation-heading{display:none}
body.product-page #taskPreview .itinerary-card-body{display:flex;flex-direction:column}
body.product-page #taskPreview .itinerary-card-body>.card-edit{order:-1;align-self:flex-end;margin:0 0 4px;padding:4px 8px;min-height:44px}

.itinerary-day-index{display:flex;gap:6px;overflow-x:auto;padding:8px 0 12px;position:sticky;top:0;background:var(--mixtouring-card);z-index:2}.itinerary-day-index button{white-space:nowrap;border:1px solid var(--mixtouring-border);background:transparent;color:inherit;border-radius:16px;padding:6px 10px;font:inherit;font-size:12px;cursor:pointer}.itinerary-card{scroll-margin-top:60px}

.itinerary-day-index[hidden]{display:none}

/* 规划动作的共享外观：不再依赖聊天区或日卡父容器。 */
body.product-page :where(.guide-primary,.day-map-button,.card-edit,.day-travel-controls button,.day-schedule-check button) {
 min-height:44px; border:1px solid var(--mixtouring-border); border-radius:8px; padding:8px 12px;
 font:inherit; font-size:13px; line-height:1.5; background:var(--mixtouring-card); color:var(--mixtouring-foreground);
}
body.product-page .guide-primary {background:var(--mixtouring-primary);color:var(--mixtouring-primary-foreground)}
body.product-page .guide-primary:disabled {background:var(--mixtouring-muted);color:var(--mixtouring-muted-foreground);border-color:transparent;opacity:1}
body.product-page :is(.day-map-button,.card-edit,.day-travel-controls button,.day-schedule-check button):hover:not(:disabled) {background:var(--mixtouring-muted)}
body.product-page :is(button,a,summary):focus-visible {outline:2px solid var(--mixtouring-ring);outline-offset:3px}
body.product-page .day-travel-controls>label {flex:1 1 180px;min-width:0}
body.product-page .day-travel-controls :is(input,select) {width:100%}
body.product-page .day-schedule-event {grid-column:1/-1;flex-wrap:wrap}
body.product-page .day-travel-legs {font-size:13px;line-height:1.7;overflow-wrap:anywhere}
body.product-page .day-travel-legs a {display:inline-flex;align-items:center;min-height:44px;color:var(--color-accent-text);text-underline-offset:3px}

/* 组件库爱心：固定图标触控区，仅用于整份路线。 */
.plan-header-actions{display:flex;align-items:center;gap:8px}
body.product-page .route-favorite{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:8px;background:transparent;color:inherit;cursor:pointer}
.route-favorite img{width:24px;height:24px}
body.product-page .route-favorite:hover:not(:disabled){background:var(--mixtouring-muted)}

/* 行前准备沿用概览的折叠行，展开后按文字层级阅读。 */
.travel-prep dl {margin:0}
.travel-prep dt {margin:16px 0 4px;font-size:14px;font-weight:600;color:var(--mixtouring-foreground)}
.travel-prep dd {margin:0;color:var(--mixtouring-muted-foreground)}
.travel-prep dd p {margin:0;line-height:1.65}
.prep-links {display:flex;flex-wrap:wrap;gap:0 16px}
.prep-links a {display:inline-flex;align-items:center;gap:5px;max-width:100%;min-height:44px;font-size:13px;font-weight:500;color:var(--mixtouring-foreground);text-decoration:none;overflow-wrap:anywhere}
.prep-links a > span[aria-hidden] {flex:none;color:var(--mixtouring-muted-foreground);font-weight:400}
.prep-links a:is(:hover,:focus-visible), .prep-links a:is(:hover,:focus-visible) > span {color:var(--color-accent-text)}
.travel-prep .mt-text-button {margin:8px 0;padding-inline:0}

/* 手机及窄屏：与规划工作区共用 960px 分栏断点。 */
@media(max-width:959px){
  body.product-page,body.product-page.mt-sidebar-collapsed{
    --phone-bar:calc(56px + env(safe-area-inset-top,0px));
    padding:var(--phone-bar) 0 0!important;
  }
  body.product-page nav.mt-sidebar[data-mobile-nav]{
    inset:0 0 auto;width:100%;height:auto;max-height:100dvh;overflow-y:auto;
    padding:calc(6px + env(safe-area-inset-top,0px)) 16px 6px;background:var(--mixtouring-background);
  }
  body.product-page nav.mt-sidebar>div.mt-brand{margin:0;min-height:44px}
  body.product-page nav.mt-sidebar .mt-brand .mt-wordmark{width:112px}
  body.product-page nav.mt-sidebar #sidebarToggle svg{display:none}
  body.product-page nav.mt-sidebar #sidebarToggle::after{content:"";width:18px;height:10px;border-block:1.5px solid currentColor}
  body.product-page.mobile-nav-open nav.mt-sidebar #sidebarToggle::after{content:"×";border:0;width:auto;height:auto;font-size:24px;line-height:1}
  body.product-page:not(.mobile-nav-open) nav.mt-sidebar>:is(.mt-nav-links,.mt-account){display:none}
  body.product-page.mobile-nav-open nav.mt-sidebar{background:var(--mt-sidebar);box-shadow:0 8px 16px #0001!important}
  body.product-page.mobile-nav-open nav.mt-sidebar .mt-nav-links{margin:8px 0}
  body.product-page nav.mt-sidebar #accountMenu{position:static;width:100%;border:0;background:transparent;box-shadow:none}
  body.product-page .trip-shell,body.product-page .app-shell{width:100%;min-height:calc(100dvh - var(--phone-bar));padding:16px 16px max(20px,env(safe-area-inset-bottom))}
  body.product-page #entryCard{margin:clamp(16px,6vh,56px) auto 0}
  body.product-page #entryLabel.mt-theme{height:clamp(120px,20vh,160px);margin-bottom:18px!important}
  body.product-page .mt-theme h1{font-size:24px!important}
  body.product-page .entry-examples{grid-template-columns:1fr;gap:8px;margin-top:16px}
  body.product-page .entry-examples button{justify-content:flex-start;border-radius:12px;min-height:44px}
  body.product-page #nlInput,body.product-page input:not([type=checkbox]),body.auth-page input{font-size:16px}
  body.product-page .mt-composer-toolbar{gap:4px;margin-top:6px}
  @media(max-width:389px){body.product-page #composerMemoryLabel{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}}
  body.product-page #composerMemory,body.product-page #guideArea #composerMemory{min-width:44px;justify-content:center}
  body.product-page #entryCard .conversation-composer,body.product-page .conversation-composer{padding:12px;border-radius:16px}
  body.trip-page .trip-shell:has(#guideArea:not([hidden])){
    height:calc(var(--phone-height,100dvh) - var(--phone-bar));min-height:0;
    display:flex;flex-direction:column;gap:8px;padding-top:4px;padding-bottom:max(8px,env(safe-area-inset-bottom))
  }
  body.product-page #nlInput{max-height:min(120px,16dvh)}
  body.trip-page #planStatus:empty{display:none}
  body.trip-page .workspace-tabs:not([hidden]){position:static;flex:none;margin:0;padding:2px;border:0;border-radius:12px}
  body.trip-page .planning-workspace{display:flex!important;flex-direction:column;min-height:0;min-width:0;flex:1}
  body.trip-page #guideArea:not([hidden]),body.trip-page[data-workspace-view=chat]:has(#planColumn:not([hidden])) #guideArea{
    display:flex;flex-direction:column;position:static;flex:1;height:100%;min-height:0;max-height:none;margin:0;width:100%;overflow:hidden;
  }
  body.trip-page[data-workspace-view=route]:has(#planColumn:not([hidden])) #guideArea{display:none}
  body.trip-page .planning-workspace .guide-messages{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;margin:0 0 8px}
  body.trip-page #planColumn:not([hidden]){flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
  body.trip-page #taskPreview.current-plan{padding:12px;border-radius:12px}
  body.product-page .itinerary-card-body{padding:14px}
  .itinerary-day-index{background:var(--mt-sidebar)}
  .itinerary-day-index button{min-height:44px}
  body.product-page .saved-grid,body.product-page .day-schedule-check form{grid-template-columns:1fr}
  body.product-page .saved-toolbar,body.product-page .trips-toolbar{align-items:stretch;flex-wrap:wrap;gap:10px}
  body.product-page #collectionSearch{max-width:none;width:100%}
  body.product-page .trip-library-card,body.product-page .settings-card{padding:16px}
  body.product-page .trip-library-actions,body.product-page .detail-actions{flex-wrap:wrap}
  body.product-page .setting-row{gap:12px;flex-wrap:wrap;padding:16px 0!important}
  body.product-page .mt-empty.prototype-empty,body.product-page.user-page .mt-empty{margin:48px auto}
  body.product-page .saved-detail{width:calc(100% - 24px);max-height:90dvh;padding:18px}
  .auth-page nav{padding:8px 16px}
  .auth-page main{margin:24px auto;width:calc(100% - 40px);max-width:384px}
}

body.product-page #guideArea .formatted-reply { margin:0; line-height:1.45; }
body.product-page #guideArea .formatted-reply p { margin:0; line-height:inherit; }
body.product-page #guideArea .formatted-reply p + p { margin-top:.52em; }
body.product-page #guideArea .formatted-reply strong { font-weight:700; }

body.product-page #guideArea .formatted-reply h3 { margin:.9em 0 .3em; font:inherit; font-weight:700; }
body.product-page #guideArea .formatted-reply h3:first-child { margin-top:0; }
body.product-page #guideArea .formatted-reply ul { margin:.25em 0 .6em; padding-inline-start:1.4em; list-style:disc outside; }
body.product-page #guideArea .formatted-reply li + li { margin-top:.32em; }
body.product-page #guideArea .formatted-reply { overflow-wrap:anywhere; }

body.product-page #taskPreview .plan-header-actions > button { display:grid; place-items:center; width:44px; height:44px; min-height:44px; margin:0; padding:0; line-height:1; }
body.product-page #taskPreview .plan-header-actions > button > img,
body.product-page #taskPreview .plan-header-actions > button > svg { display:block; width:24px; height:24px; margin:0; }

.cloud-sync-status{position:fixed;inset:auto 1rem 1rem auto;z-index:99;max-width:min(26rem,90vw);padding:.5rem .8rem;background:var(--paper,#fff);color:var(--ink,#222);border:1px solid currentColor;border-radius:.55rem;font-size:.85rem}
.cloud-sync-status[hidden]{display:none}
#googleLogin{margin-top:1rem}
