:root{--family-global-height:64px}
body.family-global-layout{padding-top:var(--family-global-height)!important}
.family-global-replaced{display:none!important}
.family-global-header{position:fixed;inset:0 0 auto;z-index:90;height:var(--family-global-height);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));border-bottom:1px solid #e3e8ec;background:#fff;color:#1d3143;font:14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-sizing:border-box}
.family-global-header *{box-sizing:border-box}
.family-global-brand{display:flex;align-items:center;gap:10px;min-width:0}
.family-global-brand>b{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#1d3143;color:#fff}
.family-global-brand>span{display:grid;min-width:0}.family-global-brand strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.family-global-brand small{font-size:11px;color:#6b7781}
.family-global-actions{display:flex;align-items:center;gap:10px;flex:none}.family-global-switch{display:flex!important;align-items:center;justify-content:center;gap:7px;min-height:44px;white-space:nowrap;border:1px solid #e3e8ec;border-radius:10px;padding:0 12px;color:inherit;text-decoration:none;font-size:13px;background:#fff}.family-global-switch svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
.family-global-account{position:relative}.family-global-account summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;list-style:none;white-space:nowrap}.family-global-account summary::-webkit-details-marker{display:none}.family-global-account summary>b{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#edf2f5}.family-global-name{max-width:90px;overflow:hidden;text-overflow:ellipsis}.family-global-account nav{position:absolute;right:0;top:100%;width:184px;padding:6px;border:1px solid #e3e8ec;border-radius:12px;background:white;box-shadow:0 12px 36px #17324720}.family-global-account nav a,.family-global-account nav button{display:flex;align-items:center;width:100%;min-height:44px;padding:10px;border:0;border-radius:8px;background:transparent;color:inherit;text-decoration:none;text-align:left;font:inherit;cursor:pointer}.family-global-account nav a:hover,.family-global-account nav button:hover{background:#f3f6f8}.family-global-header :focus-visible{outline:3px solid #86b8dc;outline-offset:2px}
.family-global-layout .admin-topbar{top:var(--family-global-height);height:56px;grid-template-columns:minmax(180px,620px);justify-content:center}.family-global-layout .admin-sidebar{top:calc(var(--family-global-height) + 56px)}
.family-global-layout .leader-header,.family-global-layout .workspace-mobile-header,.family-global-layout .topbar{top:var(--family-global-height)}
.family-global-layout .leader-sidebar,.family-global-layout .sidebar{top:var(--family-global-height);height:calc(100dvh - var(--family-global-height))}
@media(max-width:600px){.family-global-header{gap:8px;padding-left:12px;padding-right:12px}.family-global-brand{gap:6px}.family-global-brand>b{display:none}.family-global-name{display:none}.family-global-switch{padding:0 9px;font-size:12px}.family-global-actions{gap:7px}}
@media(prefers-reduced-motion:reduce){.family-global-header *{scroll-behavior:auto}}

.family-global-layout .kc-sidebar{top:var(--family-global-height);height:calc(100dvh - var(--family-global-height))}
.family-global-layout .kc-top{top:var(--family-global-height)}
.family-global-layout .kc-user{display:none}
.family-account-entry{display:none}
.family-account-overlay{position:fixed;inset:0;z-index:1000;background:#14222b80;display:flex;align-items:flex-end;justify-content:center;font:16px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#17232c}
.family-account-panel{width:min(100%,520px);max-height:85dvh;overflow:auto;background:#fff;border-radius:20px 20px 0 0;padding:16px 20px calc(16px + env(safe-area-inset-bottom));box-sizing:border-box}
.family-account-person{display:flex;align-items:center;justify-content:space-between;font-size:20px}.family-account-person button{border:0;background:transparent;min-width:44px;min-height:44px;font:24px sans-serif;color:inherit}
.family-account-panel nav a,.family-account-panel nav button{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:52px;box-sizing:border-box;padding:12px 0;border:0;border-bottom:1px solid #e3e7e2;background:transparent;text-decoration:none;text-align:left;font:inherit;color:inherit}
.family-account-panel nav button{color:#9e3f39}.family-account-version{display:block;margin-top:16px;font-size:13px;color:#59666d}
@media(max-width:767px){
 :root{--family-global-height:0px}
 .family-global-header{display:none!important}
 .family-account-entry{display:block;padding:12px 16px calc(92px + env(safe-area-inset-bottom));font:16px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#17232c}
 .family-account-entry>button{display:flex;align-items:center;justify-content:space-between;border:0;border-radius:12px;padding:12px 16px;min-height:52px;width:100%;background:#fff;font:inherit;color:inherit}
 .family-account-entry>small{display:block;text-align:center;margin-top:16px;font-size:13px;color:#59666d}
 [data-family-account-slot] .family-account-entry{padding:0 0 12px}
 body:has(.shell.focus)>.family-account-entry{display:none}
 .family-global-layout .admin-topbar{height:48px}.family-global-layout .admin-sidebar{top:48px}
}

body:has(.shell.practice-focus)>.family-account-entry,body:has(.shell.exam-focus)>.family-account-entry{display:none}

.family-account-entry[hidden]{display:none!important}body:has(.shell.focus) .family-account-entry,body:has(.shell.practice-focus) .family-account-entry,body:has(.shell.exam-focus) .family-account-entry{display:none}.family-account-overlay{overscroll-behavior:contain}.family-account-panel{touch-action:pan-y}
