html.fw-business-open{overflow:hidden}
html.fw-business-open .glass-nav .glass-selection{background:linear-gradient(145deg,rgba(240,252,255,.18),rgba(164,215,237,.06));border:1px solid rgba(255,255,255,.68);box-shadow:inset 0 1px rgba(255,255,255,.86),0 8px 22px rgba(20,73,98,.12);backdrop-filter:blur(4px) saturate(1.14);-webkit-backdrop-filter:blur(4px) saturate(1.14)}
html.fw-business-open .glass-nav .glass-optic-canvas{opacity:0}
.fw-surface{position:fixed;z-index:26;inset:0 0 0 55px;display:flex;flex-direction:column;overflow:hidden;border:0;background:transparent;color:#163846;font:14px/1.5 system-ui,-apple-system,"PingFang SC",sans-serif}
.fw-surface[data-fullscreen="true"]{left:0}
.fw-frame{display:block;flex:1;min-height:0;width:100%;height:100%;border:0;background:transparent}
.fw-loading{position:absolute;inset:0;z-index:5;display:grid;place-items:center;margin:0;padding:24px;border:0;background:transparent;text-align:center;font-size:16px;color:#173e52}
.fw-business-open :is(.module-section,#workbench,.announce-bar){visibility:hidden!important;pointer-events:none!important}
.fw-business-fullscreen .glass-nav{visibility:hidden!important;pointer-events:none!important}
@media(max-width:720px){.fw-surface{left:50px}}
[hidden]{display:none!important}

.fw-search{width:min(660px,calc(100vw - 30px));max-height:80svh;padding:22px;border:1px solid #ffffffad;border-radius:26px;background:rgba(237,249,252,.72);backdrop-filter:blur(12px) saturate(1.08);-webkit-backdrop-filter:blur(12px) saturate(1.08);box-shadow:inset 0 1px rgba(255,255,255,.7),0 24px 75px rgba(18,54,74,.16);color:#163846;font:14px/1.5 system-ui,-apple-system,"PingFang SC",sans-serif}
.fw-search::backdrop{background:#163d4c35;backdrop-filter:blur(5px)}
.fw-search header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.fw-search h2{margin:0;font-size:23px}.fw-search header button{border:1px solid #b7d4de;background:#ffffff50;border-radius:12px;width:40px;height:40px;font-size:23px;color:inherit;cursor:pointer}
.fw-search input{display:block;width:100%;box-sizing:border-box;padding:13px 16px;border:1px solid #b0d3de;border-radius:15px;background:#ffffff63;color:inherit;font:inherit;outline-offset:2px}
.fw-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:48svh;overflow:auto;margin-top:14px}
.fw-search-results button{display:grid;gap:5px;padding:15px;border:1px solid #ffffffca;border-radius:16px;background:#ffffff24;color:#163846;font:inherit;text-align:left;cursor:pointer}.fw-search-results small{font-size:11px;color:#467485}.fw-search-results button:hover{background:#fff8}
.fw-search :focus-visible{outline:3px solid #168ff0;outline-offset:2px}
@media(max-width:500px){.fw-search-results{grid-template-columns:1fr}.fw-search{padding:18px}}

/* One restrained glass material across the home navigation and lower modules. */
.glass-nav,.glass-toolbar-group{background:linear-gradient(145deg,rgba(245,253,255,.12),rgba(188,225,244,.035) 55%,rgba(255,255,255,.09))!important;border-color:rgba(255,255,255,.78)!important;backdrop-filter:blur(2px) saturate(1.08)!important;box-shadow:inset 0 1px #fff,0 8px 24px #1c597518!important}
.glass-topbar .glass-nav-links button{background:linear-gradient(145deg,rgba(249,254,255,.16),rgba(177,216,237,.035) 55%,rgba(255,255,255,.1))!important;border:1px solid rgba(255,255,255,.52);box-shadow:inset 0 1px rgba(255,255,255,.85),inset 0 -1px rgba(24,69,91,.2),0 5px 12px rgba(18,55,74,.09);color:#153f53!important}
.creation-promo{border-color:rgba(255,255,255,.88)!important;box-shadow:inset 0 1px #fff,0 8px 24px #2059731a!important}
.tool-tile{background:transparent!important;border-color:rgba(255,255,255,.72)!important;box-shadow:inset 0 1px #fff,0 8px 24px #20597318!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.tool-copy{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.mission-action{background:linear-gradient(145deg,rgba(244,252,255,.065),rgba(128,189,215,.025) 48%,rgba(238,252,255,.055))!important;border-color:rgba(235,252,255,.62)!important;box-shadow:0 10px 23px rgba(15,55,78,.12),inset 0 1px 1px rgba(255,255,255,.78),inset 1px 0 rgba(255,255,255,.33),inset 0 -1px 1px rgba(21,68,92,.38)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.rh-categories button,.rh-search,.rh-sort,.rh-more,.rh-retry{background:rgba(249,255,255,.76)!important;border-color:rgba(255,255,255,.88)!important}

.fw-retry{position:absolute;z-index:8;top:calc(50% + 36px);left:50%;transform:translateX(-50%);border:1px solid #ffffffbd;border-radius:12px;padding:10px 15px;background:rgba(234,249,253,.9);box-shadow:inset 0 1px #fff,0 5px 18px #24516518;color:#163f52;font:600 13px/1.4 system-ui;cursor:pointer}
.mission-action::before{padding:9px!important;background:conic-gradient(from 145deg,rgba(37,136,188,.07),rgba(252,255,255,.68) 20%,rgba(118,222,252,.18) 31%,rgba(255,255,255,.06) 47%,rgba(186,159,220,.09) 63%,rgba(249,255,255,.48) 78%,rgba(57,139,172,.11))!important}
.mission-action::after{inset:8px!important;border-color:rgba(248,255,255,.38)!important;border-top-color:rgba(255,255,255,.85)!important;border-bottom-color:rgba(18,70,96,.24)!important;border-radius:16px!important;box-shadow:0 1px 2px rgba(255,255,255,.23),inset 0 1px 2px rgba(16,72,92,.07)!important}

/* Account controls share the home glass material while retaining the original menu layout. */
html:has(.glass-topbar) .emeng-profile-menu.rh-profile-menu{border:1px solid rgba(255,255,255,.8)!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(235,249,255,.72),rgba(204,232,246,.48))!important;color:#153f53!important;backdrop-filter:blur(18px) saturate(1.15);-webkit-backdrop-filter:blur(18px) saturate(1.15);box-shadow:inset 0 1px #fff,0 18px 48px rgba(13,53,75,.22)!important}
html:has(.glass-topbar) .rh-profile-meta strong{color:#153f53}html:has(.glass-topbar) .rh-profile-meta small,html:has(.glass-topbar) .rh-wallet-row span{color:#436779}
html:has(.glass-topbar) .rh-create-team,html:has(.glass-topbar) .rh-wallet-row button{background:linear-gradient(145deg,rgba(255,255,255,.27),rgba(209,236,249,.08))!important;border:1px solid rgba(255,255,255,.7)!important;color:#153f53!important;box-shadow:inset 0 1px #fff8}
html:has(.glass-topbar) .rh-wallet-row,html:has(.glass-topbar) .rh-wallet-rows,html:has(.glass-topbar) .rh-profile-footer{border-color:rgba(255,255,255,.68)}
html:has(.glass-topbar) .rh-wallet-row:first-child strong,html:has(.glass-topbar) .rh-wallet-row:first-child svg{color:#007e9d}html:has(.glass-topbar) .rh-wallet-row:nth-child(2) strong,html:has(.glass-topbar) .rh-wallet-row:nth-child(2) svg{color:#996100}
html:has(.glass-topbar) .rh-profile-grid button,html:has(.glass-topbar) .rh-profile-footer button{color:#31576b!important}
html:has(.glass-topbar) .rh-profile-grid button:hover,html:has(.glass-topbar) .rh-profile-grid button.active{background:linear-gradient(145deg,#fff5,#d2edf31a)!important;color:#006d9b!important;box-shadow:inset 0 1px #fff8}
html:has(.glass-topbar) .rh-profile-footer .logout{color:#b32e40!important}
html:has(.glass-topbar) .emeng-profile-mask{background:rgba(19,51,70,.18);backdrop-filter:blur(3px)}
html:has(.glass-topbar) .emeng-profile-dialog{border-color:#ffffffc9;background:linear-gradient(145deg,rgba(235,249,255,.82),rgba(203,230,244,.6));color:#153f53;backdrop-filter:blur(22px) saturate(1.15);box-shadow:inset 0 1px #fff,0 20px 65px #123a4f38}
html:has(.glass-topbar) .emeng-profile-dialog :is(h2,.emeng-profile-field span,.emeng-profile-kicker){color:#153f53}html:has(.glass-topbar) .emeng-profile-dialog :is(.emeng-profile-tip,.emeng-profile-avatar-row p){color:#436779}
html:has(.glass-topbar) .emeng-profile-dialog :is(button,input,.emeng-feature-stats article,.emeng-feature-records article){border-color:#ffffffa6;background:linear-gradient(145deg,#ffffff40,#d4edf314);color:#153f53;box-shadow:inset 0 1px #ffffffa6}

/* Keep the existing glass shortcuts visible while the community content is open. */
html.fw-business-open:has(.fw-surface[data-route="community"]:not([hidden])) .glass-topbar{visibility:visible!important;opacity:1!important;pointer-events:none!important;top:8px!important;z-index:31}
.fw-surface[data-route="community"]{top:72px!important}
@media(max-width:720px){.fw-surface[data-route="community"]{top:76px!important}html.fw-business-open:has(.fw-surface[data-route="community"]:not([hidden])) .glass-topbar{top:6px!important}}

/* Hide visible scrollbars on the Golden frame while retaining wheel, touch and keyboard scrolling. */
html:has(.fw-surface){scrollbar-width:none}html:has(.fw-surface)::-webkit-scrollbar{display:none;width:0}
.fw-frame{scrollbar-width:none}.fw-frame::-webkit-scrollbar{display:none;width:0}

html.fw-community-open .glass-topbar{visibility:visible!important;opacity:1!important;pointer-events:none!important;top:8px!important;z-index:31!important}
html.fw-community-open .fw-surface{top:72px!important}

html.fw-business-open .glass-topbar{visibility:visible!important;opacity:1!important;pointer-events:none!important;top:8px!important;z-index:40!important}
html.fw-business-open .fw-surface:not([data-fullscreen="true"]){top:72px!important}

html.fw-business-open .glass-topbar .glass-nav-links button.active{z-index:3}

/* Home surface: keep glass contours but remove every frosted fill and blur. */
html:has(.glass-topbar) :is(.announce-bar,.announce-close,.glass-nav,.glass-toolbar-group,.glass-nav .glass-selection,.glass-topbar .glass-nav-links button,.module-card,.creation-promo,.mission-action,.mission-primary,.catalog-controls button,.tool-tile,.tool-copy,.rh-card,.rh-categories button,.rh-search,.rh-sort,.rh-more,.rh-retry,.rh-play,.rh-duration,.tool-dialog,.tool-dialog button,.rh-dialog,.rh-dialog-actions button,.fw-search header button,.fw-search input,.fw-search-results button,.emeng-profile-menu.rh-profile-menu,.rh-create-team,.rh-wallet-row button){background:transparent!important;background-image:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}
html:has(.glass-topbar) .rh-categories button[aria-pressed="true"]{color:#087fc1!important;border-color:rgba(8,127,193,.9)!important}
html:has(.glass-topbar) :is(.module-card::before,.tool-tile::before,.rh-card::before){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:has(.glass-topbar) .mission-action::before{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:has(.glass-topbar) :is(.rh-dialog,.tool-dialog,.fw-search)::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:has(.glass-topbar) .emeng-profile-mask{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:has(.glass-topbar) :is(.glass-nav-links button:hover:not(.active),.announce-close:hover,.mission-action:hover,.rh-categories button:hover,.rh-more:hover,.rh-retry:hover,.fw-search-results button:hover){background:transparent!important;box-shadow:none!important}
html:has(.glass-topbar) .rh-duration{color:#fff!important;text-shadow:0 1px 3px rgba(0,0,0,.8)}
html:has(.glass-topbar) .rh-play{color:#fff!important;text-shadow:0 1px 3px rgba(0,0,0,.75)}

html:has(.glass-topbar) body .emeng-profile-menu.rh-profile-menu{background:linear-gradient(145deg,rgba(235,249,255,.94),rgba(204,232,246,.91))!important;background-image:linear-gradient(145deg,rgba(235,249,255,.94),rgba(204,232,246,.91))!important;backdrop-filter:blur(10px) saturate(1.1)!important;-webkit-backdrop-filter:blur(10px) saturate(1.1)!important;box-shadow:inset 0 1px rgba(255,255,255,.9),0 18px 48px rgba(13,53,75,.22)!important}
html:has(.glass-topbar) body .rh-dialog[open]{background:rgba(229,245,249,.96)!important;backdrop-filter:blur(6px) saturate(1.05)!important;-webkit-backdrop-filter:blur(6px) saturate(1.05)!important;box-shadow:0 24px 80px rgba(8,35,48,.32)!important}
html:has(.glass-topbar) body .rh-dialog[open]::backdrop{background:rgba(10,31,42,.46)!important;backdrop-filter:blur(4px)!important;-webkit-backdrop-filter:blur(4px)!important}
.fw-surface[data-route="create"] .fw-frame{mix-blend-mode:normal}
/* The card page uses the whole work area below the shared toolbar. */
.fw-surface[data-route="create"]{top:72px!important;bottom:0!important}

.fw-surface[data-route="create"]{inset:72px 0 0 55px!important;height:calc(100dvh - 72px)!important;max-height:none!important}
.fw-surface[data-route="create"] .fw-frame{height:100%!important;max-height:none!important}

/* Login opened inside a business frame must cover the same viewport as direct login. */
html.fw-business-fullscreen :is(.glass-nav,.glass-topbar){visibility:hidden!important;pointer-events:none!important}
html.fw-business-fullscreen .fw-surface[data-fullscreen="true"]{inset:0!important;height:100dvh!important;max-height:none!important}

/* Canvas is immersive: hide outer site chrome and fill the entire viewport. */
html.fw-canvas-fullscreen :is(.glass-nav,.glass-topbar){visibility:hidden!important;pointer-events:none!important}
html.fw-canvas-fullscreen .fw-surface[data-route="canvas"]{inset:0!important;height:100dvh!important;max-height:none!important}

/* Keep profile tools readable over the homepage and usable in short viewports. */
html:has(.glass-topbar) .emeng-profile-mask{background:rgba(16,45,60,.48)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:has(.glass-topbar) .emeng-profile-feature{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;padding:24px;background:#e8f5f8!important;color:#173d50!important;font:14px/1.6 system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:normal;word-spacing:normal}
html:has(.glass-topbar) .emeng-profile-feature h2{margin:8px 52px 0 0;color:#173d50!important;font-size:24px;line-height:1.3;overflow-wrap:anywhere}
html:has(.glass-topbar) .emeng-profile-feature .emeng-profile-kicker{color:#4c778a!important;letter-spacing:.12em}
html:has(.glass-topbar) .emeng-profile-feature-body{gap:12px;margin-top:16px;color:#31596b;line-height:1.65}
html:has(.glass-topbar) .emeng-profile-feature-body p,html:has(.glass-topbar) .emeng-profile-feature-body small{margin:0;color:#426779;font:inherit;overflow-wrap:anywhere}
html:has(.glass-topbar) .emeng-profile-feature-body form{display:grid;gap:12px;margin:0}
html:has(.glass-topbar) .emeng-profile-feature-body :is(input:not([type=checkbox]),button){box-sizing:border-box;min-width:0;min-height:44px;padding:10px 14px;border:1px solid #b7d5df!important;border-radius:11px;background:#fff!important;color:#173d50!important;box-shadow:none!important;font:inherit;letter-spacing:normal;white-space:normal}
html:has(.glass-topbar) .emeng-profile-feature-body>button,html:has(.glass-topbar) .emeng-profile-feature-body form>button,html:has(.glass-topbar) .emeng-feature-links button{width:100%;justify-content:center;font-weight:650;cursor:pointer}
html:has(.glass-topbar) .emeng-profile-feature-body button.is-primary{border-color:#167f9a!important;background:#167f9a!important;color:#fff!important}
html:has(.glass-topbar) .emeng-profile-feature-body [role=tablist]{display:flex;gap:6px;min-width:0;padding:5px;border:1px solid #c6dfe6;border-radius:12px;background:#d8edf2}
html:has(.glass-topbar) .emeng-profile-feature-body [role=tab]{flex:1;padding:8px 6px;font-size:12px}
html:has(.glass-topbar) .emeng-profile-feature-body [role=tab][aria-selected=true]{border-color:#167f9a!important;background:#167f9a!important;color:#fff!important}
html:has(.glass-topbar) .emeng-feature-stats article,html:has(.glass-topbar) .emeng-feature-records article{min-width:0;border:1px solid #c8e0e7;background:#f6fbfc;color:#173d50;overflow-wrap:anywhere}
html:has(.glass-topbar) .emeng-feature-stats small,html:has(.glass-topbar) .emeng-feature-records small{color:#59798a}
html:has(.glass-topbar) .emeng-feature-stats b{overflow-wrap:anywhere;font-size:18px}
html:has(.glass-topbar) .emeng-feature-code{min-width:0;flex-wrap:wrap}
html:has(.glass-topbar) .emeng-feature-code b{min-width:0;overflow-wrap:anywhere;background:#f6fbfc;color:#173d50}
html:has(.glass-topbar) .emeng-profile-feature .emeng-profile-back,html:has(.glass-topbar) .emeng-profile-feature .emeng-profile-close{background:#f7fbfc!important;color:#173d50!important;box-shadow:none!important}
@media(max-width:560px){html:has(.glass-topbar) .emeng-profile-feature{padding:20px 16px}.emeng-profile-feature .emeng-profile-feature-body [role=tablist]{flex-direction:column}}

html:has(.glass-topbar) .emeng-profile-feature{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
html:has(.glass-topbar) .emeng-profile-feature-body>button{width:100%;min-height:44px;white-space:normal;line-height:1.45}

/* AI tools keep their own dark workspace while loading. */
.fw-surface[data-route="tools"],.fw-surface[data-route="tools"] .fw-frame{background:#09090a}.fw-surface[data-route="tools"] .fw-loading{color:#f5f5f6}
