/* Approved V2 presentation. Existing business fields, dialogs and actions keep their owning modules. */
:root:has(body.v2-app){--mf-workspace-width:520px;--v2-header-height:calc(64px + env(safe-area-inset-top,0px));--v2-viewport-height:100dvh;--v2-viewport-top:0px;--v2-bottom-inset:env(safe-area-inset-bottom,0px);--v2-nav-reserve:58px;--v2-compose-height:130px;--creator-fixed-shell-width:min(100vw,var(--mf-workspace-width));--creator-fixed-shell-center:50%;--minimal-canvas:var(--v2-canvas,#f5f5f5);--canvas:var(--v2-canvas,#f5f5f5)}
html:has(body.v2-app){min-width:0!important;overflow:hidden!important;background:var(--v2-canvas,#f5f5f5);scroll-padding-bottom:0}
body.theme-liquid.v2-app{min-width:0!important;width:100%;height:var(--v2-viewport-height);min-height:0!important;overflow:hidden!important;background:var(--v2-canvas,#f5f5f5)!important;color:#292d2d;--ink:#292d2d;--canvas:var(--v2-canvas,#f5f5f5);--minimal-canvas:var(--v2-canvas,#f5f5f5);--minimal-ink:#292d2d;--minimal-dark:#292d2d;--minimal-soft:#f5f6f7}
body.v2-app .v2-stage{position:fixed;top:var(--v2-viewport-top);left:50%;margin-left:calc(-1 * min(50vw,calc(var(--mf-workspace-width)/2)));width:min(100%,var(--mf-workspace-width));height:var(--v2-viewport-height);overflow:hidden;background:var(--v2-canvas,#f5f5f5);isolation:isolate}
body.v2-app .app-shell{position:relative;top:var(--v2-viewport-top);width:100%!important;min-width:0!important;max-width:var(--mf-workspace-width);height:var(--v2-viewport-height);min-height:0!important;display:flex;flex-direction:column;margin:0 auto;padding:0!important;background:var(--v2-canvas,#f5f5f5)!important;overflow:hidden;box-shadow:none!important;isolation:isolate;transform:none;transition:none!important}
body.v2-app .app-shell>.app-header,body.v2-app .app-shell>.tab-bar{display:none!important}
body.v2-app .app-shell>#appView{position:relative!important;flex:1;min-width:0;min-height:0;width:100%!important;max-width:none!important;height:auto!important;padding:18px 16px calc(var(--v2-nav-reserve) + var(--v2-bottom-inset) + 24px)!important;margin:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain;scroll-behavior:auto;-webkit-overflow-scrolling:touch;background:transparent!important;z-index:1}
body.v2-app :is(button,input,textarea,select){font-family:inherit}
body.v2-app :is(input,textarea,select){font-size:16px}
body.v2-app :is(.v2-header,.v2-navigation,.v2-drawer,.v2-workbench) button{font-family:inherit;-webkit-tap-highlight-color:transparent}
body.v2-app .v2-header{position:relative;z-index:40;flex:none;height:var(--v2-header-height);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(env(safe-area-inset-top,0px) + 8px) 15px 8px;background:var(--v2-canvas,#f5f5f5);color:#292d2d}
/* Match the approved topic/script root-page return without altering its action. */
body.v2-app:is([data-v2-route="schedule"],[data-v2-route="review"]) #v2Header .mf-return-chat:not(.mf-return-chat-source){background:transparent!important;box-shadow:none!important}
body.v2-app .v2-header h1{flex:1;min-width:0;text-align:center;font-size:var(--mf-type-nav-size);font-weight:var(--mf-type-medium);letter-spacing:normal;line-height:var(--mf-type-nav-line);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.v2-app .v2-circle{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-height:44px;min-width:44px;padding:0;border:0;border-radius:50%;background:#fff;color:#292d2d;box-shadow:none;transition:background 140ms ease}
body.v2-app .v2-header-spacer{width:44px;flex:none}
body.v2-app .v2-icon{display:flex;align-items:center;justify-content:center;width:23px;height:23px;flex:none;transform-origin:0 0;transition:none!important}
body.v2-app .v2-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.v2-app .v2-navigation{position:absolute;left:0;right:0;bottom:var(--v2-bottom-inset);z-index:60;height:58px;display:flex;gap:0;padding:5px 10px 4px;background:var(--v2-canvas,#f5f5f5);border:0;border-radius:0;box-shadow:none;transition:none!important}
body.v2-app .v2-navigation button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:0;border:0;border-radius:0;padding:0;background:transparent;color:#929292;font-size:11px;font-weight:400;box-shadow:none;transform:none;transition:none!important}
body.v2-app .v2-navigation button[aria-current=page]{color:#202020;font-weight:500}
body.v2-app .v2-navigation button[data-target=ai][aria-current=page] .v2-icon svg{fill:currentColor;stroke:none}
body.v2-app .v2-navigation button[data-target=ai][aria-current=page] .v2-icon circle{fill:#fff}
body.v2-app :is(.v2-circle,.v2-navigation button,.v2-workbench,.v2-drawer-row,.v2-primary):focus-visible{outline:2px solid #292d2d;outline-offset:2px}
body.v2-app .v2-shell-status{position:absolute;left:20px;right:20px;bottom:calc(var(--v2-bottom-inset) + var(--v2-nav-reserve) + 8px);z-index:65;padding:12px 16px;background:#292d2d;color:#fff;border-radius:18px;text-align:center;font-size:12px;pointer-events:none}
body.v2-app .v2-shell-status:empty{display:none}
body.v2-app .v2-drawer{position:fixed;inset:var(--v2-viewport-top) 0 auto;top:var(--v2-viewport-top);bottom:auto;width:100%;max-width:var(--mf-workspace-width);height:var(--v2-viewport-height);max-height:none;margin:0 auto;padding:0;border:0;border-radius:0;background:transparent;overflow:hidden;color:#292d2d;box-shadow:none}
body.v2-app .v2-drawer::backdrop{background:transparent;backdrop-filter:none}
body.v2-app .v2-drawer-panel{position:absolute;inset:0 auto 0 0;width:83.4%;padding:calc(env(safe-area-inset-top,0px) + 16px) 20px calc(var(--v2-bottom-inset) + 16px);display:flex;flex-direction:column;min-height:0;background:#f8f8f8;opacity:0;transform:translateX(-20px);transition:none}
body.v2-app .v2-drawer-panel>header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;margin-bottom:16px}
body.v2-app .v2-drawer-panel h2{font-size:19px;margin:0;font-weight:650;letter-spacing:-.4px}
body.v2-app .v2-drawer-panel .v2-circle{background:#eceeef}
body.v2-app .v2-drawer-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
body.v2-app .v2-drawer-content h3{margin:26px 7px 10px;color:#878c91;font-size:11px;font-weight:500}
body.v2-app .v2-drawer-row{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;padding:10px;border:0;border-radius:14px;background:transparent;color:#292d2d;text-align:left;font-size:13px;line-height:1.5;box-shadow:none}
body.v2-app .v2-drawer-row>span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.v2-app .v2-drawer-row>.v2-icon{width:18px;height:18px}
body.v2-app .v2-drawer-row>.v2-icon:last-child{width:14px;height:14px}
body.v2-app .v2-primary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;border:0;border-radius:24px;padding:10px 16px;background:#292d2d;color:white;font-size:14px;font-weight:600;box-shadow:none}
body.v2-app .v2-drawer-empty{margin:8px 10px;font-size:12px;color:#858b90;line-height:1.6}
body.v2-app .v2-drawer-foot{margin:0;padding-top:20px;flex:none;font-size:11px;color:#989da1;line-height:1.6}
body.v2-app .v2-drawer-shade{position:absolute;inset:0 0 0 83.4%;border:0;border-radius:0;padding:0;background:#00000059;color:transparent;opacity:0;transition:none;box-shadow:none}
/* Only the icon spans travel. The capsule has a fixed 74px geometry throughout. */
body.v2-app .v2-workbench{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:4px;flex:0 0 74px;width:74px;height:44px;min-width:74px;min-height:44px;padding:0 9px;border:0;border-radius:22px;background:transparent!important;color:#292d2d!important;font-size:12px!important;font-weight:500;line-height:18px;white-space:nowrap;box-shadow:none!important;transform:none;transition:none!important;overflow:visible}
body.v2-app .v2-workbench-surface{position:absolute;inset:6px 0;border:1px solid #292d2d33;border-radius:16px;background:#f5f6f7;z-index:-1;pointer-events:none}
body.v2-app .v2-workbench-icons{display:grid;grid-template-columns:repeat(2,7px);grid-template-rows:repeat(2,7px);gap:2px;width:16px;height:16px;flex:none}
body.v2-app .v2-workbench-icons>.v2-icon{width:7px;height:7px}
body.v2-app .v2-workbench-icons svg{fill:currentColor;stroke-width:1.2}
body.v2-app .v2-workbench-icons circle{fill:#fff}
body.v2-app .v2-workbench-label{font-size:12px;line-height:18px}
body.v2-app[data-v2-dock-moving] .cw-compose textarea{pointer-events:none}
body.v2-app[data-v2-dock-closing=true] #appView.ui-view .cw-composer-dock{transform:translateY(-58px)!important}
/* One professional-page host scrolls. The actual composer form keeps its owning handlers. */
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-chat=true] .app-shell>#appView.ui-view{padding:0 14px calc(var(--v2-compose-height) + var(--v2-nav-reserve) + var(--v2-bottom-inset) + 20px)!important}
body.v2-app[data-v2-chat=true] #appView.ui-view .cw-chat{min-height:0!important;padding:0!important}
body.v2-app[data-v2-chat=true] #appView.ui-view .cw-chat>.cw-nav,body.v2-app[data-v2-chat=true] .cw-conversation-bar{display:none!important}
body.v2-app[data-v2-chat=true] #appView.ui-view .cw-messages{min-height:0!important;padding:16px 0 16px!important}
body.v2-app[data-v2-chat=true] #appView.ui-view .cw-composer-dock{position:fixed!important;left:50%!important;right:auto!important;bottom:calc(var(--v2-fixed-bottom-offset,0px) + var(--v2-bottom-inset) + 8px)!important;width:calc(min(100vw,520px) - 16px)!important;max-width:none!important;margin:0 0 0 calc(8px - min(50vw,260px))!important;padding:0!important;z-index:55;background:transparent!important;transform:translateY(0px);transition:none!important}
body.v2-app[data-v2-chat=true] #appView.ui-view .cw-composer-dock .cw-compose{display:block!important;position:relative!important;width:100%!important;max-width:none!important;margin:0!important;padding:14px 16px 8px!important;background:#fff!important;border:0!important;border-radius:28px!important;box-shadow:0 3px 20px #00000004;transform:none!important}
body.v2-app[data-v2-chat=true] #appView.ui-view .cw-compose textarea{display:block;width:100%!important;height:auto;min-height:40px!important;max-height:132px!important;padding:6px 4px!important;font-size:16px!important;line-height:1.5;color:#292d2d;background:transparent!important;border:0!important;border-radius:0!important;resize:none;overflow-y:auto;box-shadow:none!important}
body.v2-app[data-v2-chat=true] .cw-compose-footer{display:flex;align-items:center;justify-content:flex-start;gap:6px;min-height:44px;margin-top:4px}
body.v2-app[data-v2-chat=true] .cw-compose-actions{display:flex;align-items:center;gap:10px;flex:none;margin-left:auto}
body.v2-app[data-v2-chat=true] #appView.ui-view .cw-style-trigger{position:relative;isolation:isolate;flex:0 1 auto;display:flex;align-items:center;gap:4px;max-width:calc(100% - 118px);min-width:0;min-height:44px;padding:0 9px!important;font-size:12px!important;line-height:18px;background:transparent!important;color:#292d2d!important;border:0!important;border-radius:22px;box-shadow:none}
body.v2-app[data-v2-chat=true] .cw-style-trigger::before{content:"";position:absolute;inset:6px 0;border:1px solid #292d2d33;border-radius:16px;background:#f5f6f7;z-index:-1;pointer-events:none}
body.v2-app[data-v2-chat=true] .cw-style-trigger span{white-space:nowrap;min-width:0;max-width:130px;overflow:hidden;text-overflow:ellipsis}
body.v2-app[data-v2-chat=true] #appView.ui-view .cw-compose .cw-send{display:flex;align-items:center;justify-content:center;flex:none;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#292d2d!important;color:#fff!important;font-size:12px!important}
body.v2-app[data-v2-chat=true] #appView.ui-view .cw-compose .cw-send[type=submit]{font-size:0!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V4M5 11l7-7 7 7'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:center!important;background-size:25px!important}
body.v2-app[data-v2-chat=true] .cw-send[type=submit]>svg{display:none}
body.v2-app[data-v2-chat=true] .cw-compose .cw-send:disabled{opacity:.35}
body.v2-app[data-v2-chat=true] .cw-compose .voice-input-button{flex:none;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;background:transparent!important;border:0!important;border-radius:50%;box-shadow:none!important}
body.v2-app[data-v2-chat=true] #appView.ui-view .cw-message.is-assistant{padding-top:0!important}
body.v2-app[data-v2-chat=true] #appView.ui-view .cw-message.is-assistant>.cw-avatar,body.v2-app[data-v2-chat=true] .cw-message-role,body.v2-app[data-v2-chat=true] .cw-empty-avatar{display:none!important}
body.v2-app[data-v2-chat=true] #appView.ui-view .cw-message-content{max-width:100%!important}
body.v2-app[data-v2-chat=true] .cw-latest{position:fixed!important;left:50%;bottom:var(--v2-latest-bottom,calc(var(--v2-compose-height) + var(--v2-nav-reserve) + var(--v2-bottom-inset) + 16px))!important;font-size:12px;border-radius:20px}
body.v2-app[data-v2-chat=true] .cw-style-dialog .cw-choice[aria-pressed=true]{background:#292d2d!important;color:#fff!important}
body.v2-app[data-v2-chat=true] .cw-style-dialog .cw-choice[aria-pressed=true] small{color:#c7cbce!important}
body.v2-app[data-v2-keyboard=true] .v2-navigation{display:none!important}
@media(hover:hover) and (pointer:fine){body.v2-app .v2-drawer-row:hover{background:#eeeeee}body.v2-app .v2-circle:hover{background:#e8eaec}}
@media(prefers-reduced-motion:reduce){body.v2-app :is(.v2-header,.v2-navigation,.v2-workbench,.v2-drawer,.cw-composer-dock){transition:none!important;animation:none!important}}
@media(max-width:359px){body.v2-app .v2-header{padding-left:10px;padding-right:10px}body.v2-app[data-v2-chat=true] .cw-compose-actions{gap:4px}body.v2-app[data-v2-chat=true] .cw-style-trigger span{max-width:86px}}
/* Older route styles must not replace the new single viewport with a 402px scrolling shell. */
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .app-shell{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;max-width:var(--mf-workspace-width)!important;height:var(--v2-viewport-height)!important;min-height:0!important;overflow:hidden!important}
body.v2-app .v2-stage>.app-shell{top:0!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app #appView.ui-view{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app:is([data-chat-workspace],[data-route="creator-positioning"],[data-style-studio="true"]) .app-shell{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;max-width:var(--mf-workspace-width)!important;height:var(--v2-viewport-height)!important;min-height:0!important;overflow:hidden!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app:is([data-route="creator-positioning"],[data-style-studio="true"]) #appView.ui-view{flex:1!important;height:auto!important;min-height:0!important;padding-top:0!important;padding-bottom:0!important;overflow:hidden!important}
/* Chat header actions and bottom-to-top progressive material. Controls sit above it. */
body.v2-app .v2-header-actions{display:flex;gap:2px;flex:none}
body.v2-app .v2-header{gap:6px}
body.v2-app [data-v2-title]{cursor:text;touch-action:manipulation}
body.v2-app [data-v2-title]:focus-visible{outline:2px solid #292d2d;outline-offset:3px;border-radius:8px}
body.v2-app .v2-bottom-blur{position:absolute;z-index:42;left:0;right:0;bottom:0;height:var(--v2-blur-height,0px);max-height:calc(100% - var(--v2-header-height));pointer-events:none;overflow:hidden;isolation:isolate;display:none}
body.v2-app[data-v2-chat=true] .v2-bottom-blur{display:block}
body.v2-app .v2-bottom-blur::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,#f5f5f500 0%,#f5f5f580 calc(var(--v2-blur-solid-at,100px) * .55),#f5f5f5 var(--v2-blur-solid-at,100px),#f5f5f5 100%)}
body.v2-app .v2-bottom-blur i{position:absolute;inset:0;pointer-events:none;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);mask-image:linear-gradient(to bottom,transparent,#000 35%);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 35%)}
body.v2-app .v2-bottom-blur i:nth-child(2){backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);mask-image:linear-gradient(to bottom,transparent 20%,#000 65%);-webkit-mask-image:linear-gradient(to bottom,transparent 20%,#000 65%)}
body.v2-app .v2-bottom-blur i:nth-child(3){backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);mask-image:linear-gradient(to bottom,transparent 45%,#000 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 45%,#000 100%)}
@media(prefers-reduced-transparency:reduce){body.v2-app .v2-bottom-blur i{backdrop-filter:none;-webkit-backdrop-filter:none}}
/* Let the composer share the shell stacking context: backdrop only blurs messages. */
body.v2-app[data-v2-chat=true] .app-shell>#appView.ui-view{z-index:auto!important}

/* Overlap the two clipping boundaries so scaled/fractional scrolling cannot expose glyph slivers. */
body.v2-app[data-v2-chat=true] .v2-header::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:3px;background:#f5f5f5;pointer-events:none}
body.v2-app .v2-bottom-blur::before{content:"";position:absolute;left:0;right:0;bottom:-2px;height:calc(var(--v2-bottom-inset) + 14px);z-index:1;background:#f5f5f5;pointer-events:none}

/* Hide visual scrollbars only; native touch, wheel and keyboard scrolling stay enabled. */
*{scrollbar-width:none!important;-ms-overflow-style:none!important}
*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

/* Original website's 334×70 floating glass navigation, adapted to five Harness destinations.
   The existing navigation-motion.js owns its clipped black surface and white label copies. */
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .v2-navigation.mf-web-navigation{
 box-sizing:border-box;position:absolute;left:50%;right:auto;bottom:max(15px,var(--v2-bottom-inset));
 width:min(334px,calc(100% - 32px));height:70px;min-height:70px;transform:translateX(-50%);
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:7px;gap:2px;border:0;border-radius:36px;
 background:rgba(255,255,255,.40);-webkit-backdrop-filter:blur(3px) saturate(160%);backdrop-filter:blur(3px) saturate(160%);
 box-shadow:0 8px 24px rgba(17,19,21,.10),inset 0 1px 0 rgba(255,255,255,.72),0 0 0 1px rgba(17,19,21,.05);
 --motion-curve:cubic-bezier(.22,1,.36,1);--minimal-dark:#2d3031;
}
body.v2-app .v2-navigation.mf-web-navigation[hidden]{display:none!important}
body.v2-app .v2-library-tabs[aria-label="灵感与选题"]{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation>button.tab,
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation .nav-elastic-copy{
 box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
 height:56px;min-height:56px;min-width:0;margin:0;padding:0;border:0;border-radius:28px;
 background:transparent;color:#292d2d;font-size:11px;font-weight:400;line-height:1.35;box-shadow:none;
}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation>button.tab{
 transition:transform 140ms cubic-bezier(.23,1,.32,1)!important;cursor:pointer;
}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation>button.tab:active{transform:scale(.96)}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation>button.tab.active{font-weight:var(--mf-type-medium)}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation:not(.nav-motion-ready)>button.tab.active{
 background:#2d3031!important;color:#fff!important;box-shadow:0 4px 12px rgba(17,19,21,.26),0 1px 2px rgba(17,19,21,.16),inset 0 1px 0 rgba(255,255,255,.14);
}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation .v2-icon{
 display:flex!important;position:relative;width:20px!important;height:20px!important;min-width:20px!important;margin:0!important;border:0!important;background:none!important;color:inherit!important;
 align-items:center!important;justify-content:center!important;transform:scale(.86);transform-origin:50% 50%;transition:none!important;
}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation .v2-icon::before,
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation .v2-icon::after{display:none!important;content:none!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation .v2-icon svg{
 width:100%;height:100%;fill:none!important;stroke:currentColor!important;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation .v2-icon circle{fill:none}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation .nav-elastic-shadow{
 position:absolute;inset:0;z-index:2;pointer-events:none;filter:drop-shadow(0 4px 6px rgba(17,19,21,.26)) drop-shadow(0 1px 1px rgba(17,19,21,.16));
}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation .nav-elastic-surface{
 position:absolute;inset:0;display:block;background:#2d3031;clip-path:inset(50% round 28px);pointer-events:none;
}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation .nav-elastic-surface::before{
 content:"";position:absolute;left:0;right:0;top:7px;height:1px;background:rgba(255,255,255,.14);pointer-events:none;
}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation.nav-motion-ready>button.tab{
 background:transparent!important;box-shadow:none!important;color:#292d2d!important;
}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation .nav-elastic-copy{
 position:absolute;pointer-events:none;background:transparent!important;box-shadow:none!important;color:white!important;text-shadow:none;
}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation:not(.nav-motion-ready) .nav-elastic-shadow{visibility:hidden}
@media(prefers-reduced-motion:reduce){html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation>button.tab{transition:none!important;transform:none!important}}
@media(prefers-reduced-transparency:reduce){html[data-visual-mode="minimal"] body.theme-liquid.v2-app .v2-navigation.mf-web-navigation{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}}

/* Navigation mascot: simplified vector of the existing five-lobed black-gold companion.
   The clipped active copy keeps the same silhouette, with contrasting eyes. */
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation .v2-icon svg .mf-mascot-body{fill:currentColor;stroke:#ad8950;stroke-width:.55}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation .v2-icon svg .mf-mascot-eyes{fill:#ffffff;stroke:none}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation .nav-elastic-copy .v2-icon svg .mf-mascot-eyes{fill:#2d3031}

/* Keep the shared icon box and label baseline; slightly enlarge only the mascot artwork. */
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation .v2-icon[data-v2-icon="ai"] svg{width:22px!important;height:22px!important;flex:none;max-width:none;overflow:visible}

/* Match the native buttons and clipped active copies; avoid fractional text line-box drift. */
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .mf-web-navigation .v2-nav-label{display:block;flex:none;line-height:15px;text-align:center;white-space:nowrap}


/* Shell owns the heading; local back handlers remain available to the route controller. */
html[data-visual-mode="minimal"] body.theme-liquid.v2-app .app-shell>#appView.ui-view [data-shell-owned="true"]{display:none!important}
/* Compact feedback uses its own surface; action hit areas stay 44px. */
body.v2-app #toast{bottom:calc(var(--v2-nav-reserve,58px) + var(--v2-bottom-inset,0px) + 8px);box-sizing:border-box;width:max-content;max-width:min(calc(100% - 32px),340px);min-height:36px;padding:8px 12px;border-radius:14px;font-size:var(--mf-type-action-size,13px);line-height:var(--mf-type-action-line,20px);overflow-wrap:anywhere}
body.v2-app #toast:has(button){display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:0 8px 0 12px;pointer-events:none}
body.v2-app #toast.show:has(button){pointer-events:auto}
body.v2-app #toast button{position:relative;isolation:isolate;flex:none;box-sizing:border-box;min-width:44px;min-height:44px;height:44px;padding:0 10px;border:0;border-radius:999px;background:transparent;color:#202324;font:inherit;white-space:nowrap}
body.v2-app #toast button::before{content:"";position:absolute;inset:8px 0;z-index:-1;border-radius:inherit;background:#fff;pointer-events:none}
body.v2-app #toast button:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* 3.1: a reading workspace on wide screens; never scale the mobile surface. */
@media(min-width:900px){:root:has(body.v2-app){--mf-workspace-width:720px}body.v2-app .app-shell>#appView{padding-inline:24px!important}}
