/* Mobile workspace: compact brand bar, six reachable destinations, readable forms. */
.mobile-more,.mobile-tools-dialog,.mobile-poster-tabs{display:none}
@media(min-width:761px) and (max-width:1100px){
 body.earth-theme>aside{position:sticky;top:0;height:auto;min-height:0;padding:12px 24px;gap:12px;flex-wrap:wrap}
 body.earth-theme>aside nav{display:flex;flex-wrap:nowrap;overflow-x:auto;flex-basis:100%;margin:0;gap:6px;padding:0 0 2px}
 body.earth-theme>aside nav button{flex:none;min-height:44px;white-space:nowrap}
 body.earth-theme>main{padding:20px 24px 48px}
}
@media(max-width:760px){
 html{scroll-padding-top:78px;scroll-padding-bottom:90px}
 body.earth-theme{background:#f2ecdf;font-size:16px;line-height:1.65;--mobile-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
 body.earth-theme::before,.earth-theme .video-backdrop{display:none}
 body.earth-theme>aside{position:sticky;inset:0 0 auto;z-index:90;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:8px;width:100%;height:64px;min-height:64px;padding:8px 14px;background:#faf6ed;backdrop-filter:none;border-bottom:1px solid #e2d5c1;box-shadow:none}
 .earth-theme .brand-member{width:auto;min-width:0;flex:1;gap:8px;justify-content:space-between}
 .earth-theme aside h1.brand-title{gap:7px;font-size:21px;letter-spacing:0;min-width:0}
 .earth-theme .brand-logo{width:96px;height:26px}
 .earth-theme .brand-logo img{width:132px;height:132px;left:-17.7px;top:-54.2px}
 .earth-theme .brand-slash{display:none!important}
 .earth-theme .brand-member #memberEntry{font-size:12px;min-height:40px;padding:8px 10px;flex:none}
 .earth-theme .mobile-more{display:flex;align-items:center;justify-content:center;flex:none;min-height:44px;min-width:44px;padding:4px 7px;background:transparent;box-shadow:none;border:0;font-size:14px}
 body.earth-theme>aside nav{position:fixed;inset:auto 0 0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;width:100%;height:var(--mobile-bottom);margin:0;padding:5px 7px calc(5px + env(safe-area-inset-bottom,0px));background:#fffaf1;border-top:1px solid #dfceb5;box-shadow:0 -4px 20px #60452e09;overflow:visible;z-index:91;align-items:stretch}
 body.earth-theme>aside nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:56px;padding:5px 0;font-size:0;line-height:1.2;border:0;border-radius:11px;background:transparent;box-shadow:none;white-space:nowrap;color:#826d55;transform:none}
 body.earth-theme>aside nav button::before{content:'';position:static;display:block;width:22px;height:22px;background:currentColor;mask-image:var(--mobile-nav-icon);mask-size:contain;mask-repeat:no-repeat;-webkit-mask-image:var(--mobile-nav-icon);-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;transition:none}
 body.earth-theme>aside nav button::after{content:attr(data-mobile-label);font:500 12px/1.4 'Microsoft YaHei','PingFang SC',sans-serif;color:inherit}
 body.earth-theme>aside nav button.active{background:#eee1cc;color:#5c3e26;box-shadow:none;font-weight:700}
 body.earth-theme>main{width:100%;padding:12px 14px calc(var(--mobile-bottom) + 28px);margin:0;min-width:0}
 .earth-theme main>section{scroll-margin-top:78px;min-width:0}
 .earth-theme .workspace-bar{padding:10px 12px;margin:0 0 14px;gap:8px;font-size:13px;line-height:1.65;background:#ede5d5;border-color:#e0d2bb;border-radius:12px}
 .earth-theme .workspace-bar>div{width:100%}.earth-theme .workspace-bar button{min-height:40px;font-size:13px;flex:1}
 .earth-theme .mind-hero{display:grid;grid-template-columns:minmax(0,1fr) 95px;min-height:0;min-width:0;margin:0 0 14px;border-radius:16px;background:linear-gradient(120deg,#e8dbc2,#f5ebd7);box-shadow:none;backdrop-filter:none;overflow:hidden}
 .earth-theme .mind-copy{padding:20px 0 20px 18px;min-width:0}
 .earth-theme .mind-kicker{font-size:11px;letter-spacing:1px}
 .earth-theme .mind-copy h2{font-size:25px;line-height:1.35;letter-spacing:-.5px;margin:8px 0 0}
 .earth-theme .mind-copy h2 span{white-space:nowrap}
 .earth-theme .mind-copy p,.earth-theme .mind-meta,.earth-theme .tree-label{display:none}
 .earth-theme .tree-stage{min-height:142px;width:142px;margin-left:-24px;pointer-events:none;opacity:.85;overflow:hidden}
 .earth-theme .tree-stage .inspiration-tree{width:170px;left:-8px}
 .tree-crown,.tree-bud{animation:none}
 .earth-theme .trend-ticker{margin:0 0 16px;min-height:44px;border-radius:10px;grid-template-columns:88px minmax(0,1fr);box-shadow:none}
 .earth-theme .trend-label{padding:8px}.earth-theme .trend-label strong{font-size:12px;letter-spacing:0}.earth-theme .trend-label small,.earth-theme .trend-live{display:none}
 .earth-theme .trend-track{animation:none}.earth-theme .trend-group[aria-hidden=true]{display:none}.earth-theme .trend-viewport{overflow-x:auto;mask-image:none;-webkit-mask-image:none;scrollbar-width:none}.earth-theme .trend-item{font-size:13px;min-height:44px;padding-inline:12px}.earth-theme .trend-source,.earth-theme .trend-category{display:none}
 .earth-theme .grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0;min-width:0}
 .earth-theme .grid>div{min-width:0}
 .earth-theme .panel{padding:20px 16px;margin-bottom:16px;border:1px solid #e4d8c5;border-radius:16px;background:#fffcf6;box-shadow:0 3px 12px #624a3005;backdrop-filter:none;min-width:0}
 .earth-theme .hero{padding:6px 2px 16px;margin:0;background:none;border:0;box-shadow:none;backdrop-filter:none}
 .earth-theme .hero h2,#studio .hero h2{font-size:24px;line-height:1.45;margin:0 0 8px;letter-spacing:0}
 .earth-theme .hero p{font-size:14px;line-height:1.7;margin:0}
 .earth-theme h3{font-size:19px;line-height:1.5;margin-bottom:16px;letter-spacing:0}
 .earth-theme label{font-size:14px;color:#6a5540;margin:18px 0 8px;line-height:1.6}
 .earth-theme input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.earth-theme select,.earth-theme textarea{font-size:16px;min-width:0;max-width:100%;padding:12px;min-height:48px;border-radius:10px;background:#fffdf9;backdrop-filter:none;line-height:1.6}
 .earth-theme textarea{min-height:140px;resize:vertical}
 .earth-theme input[type=checkbox]{width:18px;height:18px;flex:none;margin:0}
 .earth-theme button{min-height:44px;font-size:14px;line-height:1.5;letter-spacing:0;backdrop-filter:none;transform:none}
 .earth-theme button.primary{min-height:48px;font-size:16px;font-weight:600}
 .earth-theme .muted,.earth-theme .note{font-size:14px;line-height:1.75;color:#806c55}
 .earth-theme .note{padding:12px;margin:14px 0}
 .earth-theme .row{gap:10px;flex-wrap:wrap}.earth-theme .row>*{min-width:0}
 #personForm>.row,#materialForm>.row,#topicForm>.row{display:grid;grid-template-columns:1fr 1fr}
 #personForm>.row button,#materialForm>.row button,#topicForm>.row button{width:100%;padding-inline:8px;white-space:normal}
 #materialForm>.row .primary{order:-1}
 .earth-theme .chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .earth-theme .chips label{display:flex;align-items:center;gap:7px;margin:0;min-height:46px;padding:9px;font-size:14px;border-radius:10px;line-height:1.4;backdrop-filter:none}
 .earth-theme .creation-heading{gap:8px;flex-wrap:wrap}.earth-theme .creation-kicker{font-size:12px;letter-spacing:1px}
 .earth-theme .creation-panel h2,.earth-theme .script-step h2{font-size:21px;margin:8px 0;line-height:1.5}
 .earth-theme .agent-state{font-size:12px}
 #generate,#generateTopics,#generateScripts,#regenerateScript{width:100%;min-height:48px}
 .earth-theme .creation-empty{padding:18px 14px}.earth-theme .creation-empty p{font-size:14px}
 .earth-theme .generated-topic{grid-template-columns:20px minmax(0,1fr) 28px;padding:14px 10px!important;gap:8px}
 .earth-theme .generated-topic strong{font-size:17px}.earth-theme .topic-angle{font-size:14px}
 .earth-theme .script-step{margin-top:24px;padding-top:22px;scroll-margin-top:80px}
 .earth-theme .script-card .row{display:grid;grid-template-columns:1fr}.earth-theme .script-card .row button{width:100%}
 .earth-theme .item{padding:16px 0}.earth-theme .item h3{font-size:18px}.earth-theme .item p{font-size:16px;line-height:1.85}
 .earth-theme .item .muted{font-size:14px}.earth-theme .tag{font-size:12px;letter-spacing:0}
 #topics>.row{display:grid;grid-template-columns:1fr 1fr}#searchTopic{grid-column:1/-1}
 #topicList .item>.row{display:grid;grid-template-columns:1fr 1fr}#topicList .row button{padding-inline:8px}
 .earth-theme .empty{padding:24px 12px;font-size:14px;line-height:1.8}
 #studio .hero{padding:6px 2px 16px}#studio .row{display:grid;grid-template-columns:1fr}#studio button{max-width:100%;white-space:normal}
 .earth-theme .shoot-calendar{padding:16px 12px!important;margin:0 0 16px}
 .earth-theme .cal-heading{gap:10px}.earth-theme .cal-heading h2{font-size:21px}.earth-theme .cal-heading p,.earth-theme .cal-summary{font-size:13px}
 .earth-theme .cal-toolbar{gap:10px;margin-top:14px}.earth-theme .cal-toolbar>select{width:100%}.earth-theme .cal-period{width:100%;gap:6px}.earth-theme .cal-period input{width:140px;min-height:44px;padding:8px}.earth-theme .cal-period button{font-size:13px;min-height:44px;padding:8px!important}
 .earth-theme .cal-cell{min-height:72px;padding:5px 3px!important;gap:4px;box-shadow:none}.earth-theme .cal-date{font-size:15px}.earth-theme .cal-cell-title{font-size:10px}.earth-theme .cal-date small{font-size:9px}.earth-theme .cal-weekdays span{padding:6px 0;font-size:12px}.earth-theme .cal-day-panel{padding:14px}.earth-theme .cal-day-heading button,.earth-theme .cal-entry-actions button{min-height:44px;font-size:13px}.earth-theme .cal-entry p{font-size:16px}.earth-theme .cal-note{font-size:12px!important}
 .earth-theme .member-gate{padding:18px;gap:12px;flex-direction:column;align-items:stretch;margin:16px 0}.earth-theme .member-gate p{font-size:14px}
 .earth-theme>main>p.muted{font-size:12px;line-height:1.8;margin:8px 4px;color:#95836d}
 .usage-guide-launcher,.feedback-launcher{display:none!important}
 .earth-theme dialog{width:calc(100% - 24px);max-width:560px;max-height:calc(100dvh - 32px);margin:auto;padding:20px 18px;border-radius:18px;overscroll-behavior:contain}
 .earth-theme dialog h2{font-size:22px;line-height:1.4}.earth-theme dialog .member-heading button,.earth-theme dialog #closeFeedback{min-height:44px;min-width:44px}
 .earth-theme .membership-dialog .muted{font-size:14px}.earth-theme .member-admin summary{font-size:14px;min-height:44px;line-height:1.7}
 .earth-theme .membership-dialog .phone-consent input{min-height:0;width:18px;height:18px}.earth-theme .phone-code button{font-size:14px;padding-inline:10px}
 .earth-theme .mobile-tools-dialog[open]{display:block;background:#faf5eb;color:#55412d;border:1px solid #d5c1a2;box-shadow:0 24px 90px #35251640}
 .mobile-tools-dialog::backdrop{background:#30251b77;backdrop-filter:blur(4px)}
 .mobile-tools-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.mobile-tools-heading h2{margin:0}.mobile-tools-heading button{min-width:44px;font-size:24px;border:0;box-shadow:none;background:none}
 .mobile-help-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.mobile-help-actions button{min-height:48px}
 .mobile-tools-dialog header{display:block;min-height:0;padding:14px!important;background:#eee4d2;backdrop-filter:none;box-shadow:none;border:0}.mobile-tools-dialog header .eyebrow{display:none}.mobile-tools-dialog header::before{content:'资料备份';display:block;font-size:15px;font-weight:600;margin-bottom:10px}.mobile-tools-dialog header .row{display:grid;grid-template-columns:1fr 1fr}.mobile-tools-dialog header .row button{width:100%;font-size:14px;padding-inline:8px}
 .earth-theme .mobile-tools-dialog .connection-settings{padding:16px 0;margin:16px 0 0;border:0;background:transparent;box-shadow:none}.mobile-tools-dialog .connection-settings summary{font-size:14px;line-height:1.7}.mobile-tools-dialog .connection-settings .panel{padding:12px}
 .earth-theme #toast{z-index:150;bottom:calc(var(--mobile-bottom) + 12px);width:max-content;max-width:calc(100vw - 28px);font-size:14px;padding:12px 16px;text-align:center;overflow-wrap:anywhere}
 .tour-panel{z-index:95;bottom:var(--mobile-bottom);max-height:46dvh;border-radius:16px 16px 0 0;padding:14px 16px}
 body.tour-active{padding-bottom:calc(var(--tour-space,260px) + var(--mobile-bottom))!important}.tour-copy p{font-size:14px}.tour-copy h2{font-size:18px}.tour-panel .tour-buttons button{font-size:14px;min-height:44px}.tour-highlight{scroll-margin-top:80px;scroll-margin-bottom:calc(var(--tour-space,260px) + var(--mobile-bottom) + 16px)}
 body.mobile-keyboard>aside nav{visibility:hidden}body.mobile-keyboard .tour-panel{display:none}
}
@media(max-width:360px){.earth-theme .brand-logo{width:79px;height:22px}.earth-theme .brand-logo img{width:109px;height:109px;left:-14.6px;top:-44.8px}.earth-theme aside h1.brand-title{font-size:20px}.earth-theme .mind-copy h2{font-size:23px}.earth-theme .mind-hero{grid-template-columns:minmax(0,1fr) 70px}.earth-theme .tree-stage{opacity:.65}.earth-theme .brand-member #memberEntry{padding-inline:8px}}

@media(max-width:760px){.earth-theme .workspace-bar>div:not(:has(button:not([hidden]))){display:none}}
