#zf-home{position:fixed;top:72px;left:0;width:100%;height:calc(100dvh - 72px);border:0;z-index:20;background:#fbfaf9}
.zf-public-frame[hidden]{display:none!important}
.zf-public-frame{background:#fbfaf9}
.zf-site-links{padding:4px 8px 10px;border-bottom:1px solid var(--sidebar-border)}
.zf-site-links-title{padding:8px;font-size:11px;color:var(--muted-foreground)}
.zf-site-links ul{display:flex;flex-direction:column;gap:4px;margin:0;padding:0;list-style:none}
.zf-site-links svg{width:18px;height:18px;flex:none}
[data-collapsible="icon"] .zf-site-links-title{display:none}
@media(max-width:767px){.zf-site-links a{min-height:44px}}
.zf-live-home #root main{visibility:hidden}.zf-live-home body{overflow:hidden}
#root header{position:relative;z-index:40;min-height:72px}#root header img{object-fit:contain}
[data-slot="dialog-overlay"],[data-slot="sheet-overlay"]{z-index:50!important}[data-slot="dialog-content"],[data-slot="sheet-content"],[data-slot="popover-content"],[data-slot="dropdown-menu-content"]{z-index:60!important}
@media(max-width:767px){#zf-home{top:64px;height:calc(100dvh - 64px)}#root header{min-height:64px}body{padding-bottom:0!important}}
/* Hide the requested chat navigation entry and unknown-version badge. */
button[aria-label="系统更新，当前版本：未知版本"],
[data-sidebar="menu-item"]:has(> button[data-sidebar="menu-button"] > svg.lucide-message-square) {
  display: none !important;
}

/* Leave bottom-right application actions accessible. */
.zf-toolbar{left:12px;right:auto;bottom:12px;width:max-content;padding:4px;}


.zf-tutorial #root header a[href="/?view=tutorial"]{color:#29445c!important;border-bottom:1px solid #b58d98;border-radius:0}
.zf-tutorial #root header a[href="/"].text-foreground{color:#82909b!important}
@media(max-width:767px){.zf-tutorial #root header nav{display:flex!important}}

html[data-zf-view="order"] #root header a[href="/?view=order"],html[data-zf-view="support"] #root header a[href="/?view=support"]{color:#29445c!important;border-bottom:1px solid #b58d98;border-radius:0}
html[data-zf-view="order"] #root header a[href="/"].text-foreground,html[data-zf-view="support"] #root header a[href="/"].text-foreground{color:#82909b!important}
html[data-zf-view="characters"] #root header a[href="/?view=characters"]{color:#29445c!important;border-bottom:1px solid #b58d98;border-radius:0}
html[data-zf-view="characters"] #root header a[href="/"].text-foreground{color:#82909b!important}

/* Mobile menu remains below the header, including its close button. */
#root header{z-index:45}
[data-zf-order],[data-zf-characters]{translate:none!important;transform:none!important;opacity:1!important}
[data-zf-mobile-shell]{justify-content:flex-start!important;padding:80px 24px 24px!important;gap:20px!important;overflow-y:auto}
[data-zf-mobile-nav]{gap:4px!important}
[data-zf-mobile-nav]>a{min-height:44px!important;padding:10px 12px!important;line-height:24px!important;translate:none!important;transform:none!important;transition:none!important;border-radius:7px!important}
[data-zf-mobile-nav]>a[data-zf-nav-current="true"]{background:#eee8ed;color:#29445c!important}
[data-zf-mobile-nav]>a[data-zf-nav-current="false"]{color:#82909b!important}
[data-zf-mobile-overlay]{z-index:40!important}

/* Public documents inside the native console shell. */
body.zf-console-view main[data-slot="sidebar-inset"]{position:relative;overflow:hidden;min-height:0;padding:0!important}
body.zf-console-view main[data-slot="sidebar-inset"] > :not(#zf-site-panel){display:none!important}
#zf-site-panel{display:block;flex:1;width:100%;height:calc(100dvh - 74px);min-height:0;border:0;border-radius:12px}
[data-zf-public-menu] a[data-active="true"]{background:var(--sidebar-accent);color:var(--sidebar-accent-foreground);font-weight:600}
body.zf-console-view [data-sidebar="content"] a[href="/dashboard/overview"]{background:transparent;font-weight:400}
@media(max-width:767px){#zf-site-panel{height:calc(100dvh - 66px);border-radius:0}}
/* One shared layer uses the approved homepage petals on every route. */
.zf-atmosphere{position:fixed;inset:0;z-index:35;overflow:hidden;pointer-events:none}
.zf-atmosphere .zf-petal{position:absolute;top:-8%;width:18px;height:28px;opacity:0;clip-path:none;border-radius:95% 0 85% 10%;background:linear-gradient(130deg,#eddde4 8%,#c591a3 48%,#e9cdd6 68%,#faf4f4);box-shadow:inset 1px 0 3px #fff8;filter:blur(.15px);animation-name:zf-home-fall;animation-timing-function:linear;animation-iteration-count:infinite}
@keyframes zf-home-fall{0%{transform:translate3d(0,-20px,0) rotate(0);opacity:0}10%{opacity:.35}85%{opacity:.3}100%{transform:translate3d(80px,110vh,0) rotate(280deg);opacity:0}}
.zf-motion-paused .zf-petal{animation-play-state:paused}
.zf-global-motion{position:fixed;bottom:14px;right:16px;z-index:36;padding:5px 11px;border:1px solid #dce0e4;border-radius:20px;background:#f7f7f5e8;color:#526578;font-size:11px;cursor:pointer}
@media(max-width:850px){.zf-atmosphere .zf-petal{width:12px;height:20px}.zf-global-motion{bottom:10px;right:10px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.zf-atmosphere{display:none}.zf-global-motion{display:none}}

[data-zf-public-menu] a[data-active="false"],body.zf-console-view [data-sidebar="content"] a[href="/dashboard/overview"]{background:transparent!important;box-shadow:none!important;font-weight:400!important}
