﻿/* PC design specification, pages 5–10: shared day/night presentation tokens. */
/* Windows installers may register PingFang with localized family names. */
@font-face { font-family:"PingFang SC"; src:local("苹方 特细"); font-style:normal; font-weight:200; font-display:swap; }
@font-face { font-family:"PingFang SC"; src:local("苹方 细体"); font-style:normal; font-weight:300; font-display:swap; }
@font-face { font-family:"PingFang SC"; src:local("苹方 常规"); font-style:normal; font-weight:400; font-display:swap; }
@font-face { font-family:"PingFang SC"; src:local("苹方 中等"); font-style:normal; font-weight:500; font-display:swap; }
@font-face { font-family:"PingFang SC"; src:local("苹方 粗体"); font-style:normal; font-weight:600; font-display:swap; }
@font-face { font-family:"PingFang SC"; src:local("苹方 粗体"); font-style:normal; font-weight:700; font-display:swap; }
@font-face { font-family:"PingFang SC"; src:local("苹方 特粗"); font-style:normal; font-weight:800; font-display:swap; }
@font-face { font-family:"PingFang SC"; src:local("苹方 特粗"); font-style:normal; font-weight:900; font-display:swap; }

html:is([data-shell-skin="glass"],[data-login-skin="glass"]) {
  --sg-ink:#202427; --sg-muted:#565e64; --sg-quiet:#596166;
  --sg-page:#e8e9e7; --sg-solid:#f8f9f8; --sg-panel:rgba(255,255,255,.68);
  --sg-sidebar:rgba(255,255,255,.74); --sg-shell:rgba(249,250,249,.36);
  --sg-reading:rgba(248,249,248,.9);
  --sg-edge:rgba(255,255,255,.4); --sg-line:rgba(70,74,71,.17);
  --sg-control-line:#7b7e76; --sg-primary:#25282a; --sg-on-primary:#fff;
  --sg-warning:#785624; --sg-warning-bg:#f3e9d3; --sg-wallpaper-filter:none;
  --sg-font:"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
  --font-ui:var(--sg-font); --font-editorial:var(--sg-font); --font-sans:var(--sg-font);
  --bfg-sans:var(--sg-font); --dk-sans:var(--sg-font); --nv-sans:var(--sg-font); --nv-heading:var(--sg-font);
  --content-font:var(--sg-font); --display-font:var(--sg-font); --bf-c-sans:var(--sg-font);
  --sg-body:400 14px/22px var(--sg-font); --sg-control:500 14px/22px var(--sg-font);
  --sg-label:500 13px/20px var(--sg-font); --sg-help:400 12px/18px var(--sg-font);
  --sg-meta:400 11px/16px var(--sg-font); --sg-title:600 30px/40px var(--sg-font);
  --sg-entry:600 26px/36px var(--sg-font); --sg-dialog-title:600 24px/34px var(--sg-font);
  --sg-section:600 18px/26px var(--sg-font);
  --sg-space:24px; --sg-inset:32px; --sg-shell-radius:28px; --sg-radius:24px;
  --sg-nested-radius:16px; --sg-control-radius:12px; --sg-tag-radius:8px; --sg-pill-radius:999px;
  --sg-control-height:44px; --sg-glass-filter:blur(20px);
  --sg-shadow:0 1px 3px rgba(0,0,0,.05),0 10px 20px rgba(0,0,0,.03);
  --sg-dialog-shadow:0 1px 3px rgba(0,0,0,.05),0 16px 40px rgba(0,0,0,.06);
  --focus-ring:var(--sg-ink); --focus-ring-offset:var(--sg-solid);
  color-scheme:light; background:var(--sg-page);
}
html[data-shell-skin="glass"][data-shell-mode="night"],
html[data-login-skin="glass"][data-login-mode="night"],
html[data-glass-standalone="game"]:has(body[data-theme="night"]) {
  --sg-ink:#f3f2ef; --sg-muted:#c2c0ba; --sg-quiet:#aaa8a1;
  --sg-page:#181817; --sg-solid:#343430; --sg-panel:rgba(48,48,45,.72);
  --sg-sidebar:rgba(39,39,36,.83); --sg-shell:rgba(31,31,28,.47);
  --sg-reading:rgba(42,42,39,.9);
  --sg-edge:rgba(255,255,255,.24); --sg-line:rgba(233,232,222,.15);
  --sg-control-line:#909187; --sg-primary:#dedcd5; --sg-on-primary:#242422;
  --sg-warning:#e1c894; --sg-warning-bg:#484131; --sg-wallpaper-filter:grayscale(1) brightness(.38);
  color-scheme:dark;
}
html:is([data-shell-skin="glass"],[data-login-skin="glass"]):not([data-glass-page="document-editor"]) :is(body,button,input,select,textarea,option,table,dialog,h1,h2,h3,h4,p,span,strong,b,a,small,label,time,output,dt,dd,th,td,div,section,article,legend,li,summary) {
  font-variant-numeric:tabular-nums !important;
}
html[data-shell-skin="glass"] body.portal-beefur {
  --bf-ivory:var(--sg-solid); --bf-charcoal:var(--sg-ink); --bf-gold:var(--sg-ink);
  --bf-border:var(--sg-line); --bf-bg:var(--sg-page);
  --theme-bg:var(--sg-page); --theme-surface:var(--sg-solid); --theme-text:var(--sg-ink);
  --theme-muted:var(--sg-muted); --theme-line:var(--sg-line); --theme-accent:var(--sg-ink);
  margin:0; padding:28px; overflow:auto; isolation:isolate; position:relative;
  background:var(--sg-page); color:var(--sg-ink); font:var(--sg-body);
}
html:is([data-shell-skin="glass"],[data-login-skin="glass"]) :is(body,button,input,select,textarea,option,table,dialog) {
  font-family:var(--sg-font) !important;
}
html[data-shell-skin="glass"] body::before {
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:url("../img/login-pc-glass-background.png") center/cover no-repeat; filter:var(--sg-wallpaper-filter);
}
html[data-shell-skin="glass"] *, html[data-shell-skin="glass"] *::before, html[data-shell-skin="glass"] *::after { box-sizing:border-box; }
html[data-shell-skin="glass"] body.portal-beefur .bf-app {
  display:flex; align-items:flex-start; width:100%; max-width:1568px; min-height:calc(100svh - 56px);
  height:auto; max-height:none; margin:0 auto; overflow:visible; border:1px solid var(--sg-edge);
  border-radius:var(--sg-shell-radius); background:var(--sg-shell);
  -webkit-backdrop-filter:var(--sg-glass-filter); backdrop-filter:var(--sg-glass-filter);
  box-shadow:var(--sg-shadow);
  font:inherit;
}
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar {
  flex:0 0 208px; width:208px; height:calc(100svh - 58px); max-height:calc(100svh - 58px);
  position:sticky; top:28px; padding:8px 0; overflow:hidden; border:0; border-right:1px solid var(--sg-line);
  border-radius:var(--sg-shell-radius) 0 0 var(--sg-shell-radius); background:var(--sg-sidebar); z-index:5;
  -webkit-backdrop-filter:var(--sg-glass-filter); backdrop-filter:var(--sg-glass-filter);
  box-shadow:inset 1px 0 0 var(--sg-edge);
}
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar-brand { min-height:96px; height:auto; padding:20px 24px; }
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar-brand a { display:grid; grid-template-columns:28px minmax(0,1fr); gap:2px 10px; width:100%; align-items:center; color:var(--sg-ink); }
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar-brand .brand-logo { grid-column:1; grid-row:1/3; width:28px; height:28px; max-width:none; }
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar-brand .brand-logo--black { display:block; }
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar-brand .brand-logo--white { display:none; }
html[data-shell-skin="glass"][data-shell-mode="night"] body.portal-beefur .bf-sidebar-brand .brand-logo--black { display:none; }
html[data-shell-skin="glass"][data-shell-mode="night"] body.portal-beefur .bf-sidebar-brand .brand-logo--white { display:block; }
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar-brand .brand-logo-text { font:600 20px/28px var(--sg-font); letter-spacing:.02em; }
html[data-shell-skin="glass"] .sg-brand-tagline { grid-column:2; color:var(--sg-muted); font:var(--sg-meta); overflow-wrap:anywhere; }
html[data-shell-skin="glass"] .sg-nav-toggle { display:none; }
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar .portal-nav { display:block; padding:8px 16px 24px; overflow-x:hidden; overflow-y:auto; scrollbar-width:thin; }
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar .portal-nav-label { display:block; margin:20px 0 8px; padding:0 12px; color:var(--sg-muted); font:400 11px/18px var(--sg-font); letter-spacing:.03em; }
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar .portal-nav-label:first-child { margin-top:8px; }
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar .portal-nav a {
  display:flex; align-items:center; gap:10px; min-height:44px; padding:10px 12px; margin:0 0 4px;
  border:1px solid transparent; border-radius:12px; color:var(--sg-muted); font:var(--sg-control);
  white-space:normal; overflow-wrap:anywhere; text-decoration:none; transition:background 160ms,color 160ms;
}
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar .portal-nav a::before { content:none; }
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar .portal-nav a:hover { color:var(--sg-ink); background:var(--sg-panel); }
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar .portal-nav a.active { color:var(--sg-on-primary); background:var(--sg-primary); box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 3px 8px rgba(20,20,18,.06); }
html[data-shell-skin="glass"] .bf-nav-icon, html[data-shell-skin="glass"] .portal-nav-icon { flex:0 0 18px; width:18px; height:18px; color:inherit; }
html[data-shell-skin="glass"] .portal-nav-badge { flex-shrink:0; margin-inline-start:auto; color:var(--sg-warning); background:var(--sg-warning-bg); font-size:11px; }
html[data-shell-skin="glass"] body.portal-beefur .bf-main-wrap { display:flex; flex-direction:column; flex:1; min-width:0; min-height:0; overflow:visible; }
html[data-shell-skin="glass"] body.portal-beefur .bf-main-wrap::before, html[data-shell-skin="glass"] .bfg-noise, html[data-shell-skin="glass"] .bfg-scroll-progress { display:none; }
html[data-shell-skin="glass"] body.portal-beefur .bf-topbar {
  position:relative; top:auto; min-height:88px; height:auto; padding:20px 24px 12px;
  background:transparent; backdrop-filter:none; -webkit-backdrop-filter:none; border:0; z-index:4; font-family:var(--sg-font);
}
html[data-shell-skin="glass"] body.portal-beefur .bf-topbar .portal-topbar-right { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:10px; width:100%; min-width:0; margin:0; }
html[data-shell-skin="glass"] .sg-appearance { display:flex; align-items:center; min-height:44px; gap:4px; padding:4px; background:var(--sg-shell); border:1px solid var(--sg-line); border-radius:12px; }
html[data-shell-skin="glass"] .sg-appearance button { display:grid; place-items:center; width:32px; height:32px; padding:0; color:var(--sg-muted); background:transparent; border:0; border-radius:8px; cursor:pointer; transition:background 160ms,color 160ms,transform 160ms; }
html[data-shell-skin="glass"] .sg-appearance button:hover { background:var(--sg-solid); color:var(--sg-ink); }
html[data-shell-skin="glass"] .sg-appearance button:active { transform:scale(.96); }
html[data-shell-skin="glass"] .sg-appearance button[aria-pressed="true"] { color:var(--sg-on-primary); background:var(--sg-primary); }
html[data-shell-skin="glass"] .sg-appearance svg { width:18px; height:18px; }
html[data-shell-skin="glass"] body.portal-beefur .bf-language-picker { margin:0; }
html[data-shell-skin="glass"] body.portal-beefur .bf-language-picker select { min-height:44px; max-width:128px; padding:8px 12px; border:1px solid var(--sg-control-line); border-radius:12px; background:var(--sg-solid); color:var(--sg-ink); font:var(--sg-control); }
html[data-shell-skin="glass"] body.portal-beefur .bf-language-picker select:hover { border-color:var(--sg-control-line); }
html[data-shell-skin="glass"] .bf-language-picker option { color:var(--sg-ink); background:var(--sg-solid); }
html[data-shell-skin="glass"] body.portal-beefur .bf-topbar-contact-link { min-height:44px; padding:8px; gap:6px; border:1px solid var(--sg-line); border-radius:12px; color:var(--sg-ink); background:var(--sg-panel); font:var(--sg-control); }
html[data-shell-skin="glass"] body.portal-beefur .bf-topbar-contact-link:hover { background:var(--sg-solid); color:var(--sg-ink); }
html[data-shell-skin="glass"] body.portal-beefur .bf-topbar .portal-notify-btn { width:44px; height:44px; border:1px solid var(--sg-line); border-radius:12px; background:var(--sg-panel); color:var(--sg-ink); }
html[data-shell-skin="glass"] body.portal-beefur .bf-topbar-user { min-width:0; flex-wrap:wrap; gap:8px; padding-left:8px; border:0; color:var(--sg-ink); }
html[data-shell-skin="glass"] body.portal-beefur .bf-topbar .portal-user-avatar { width:40px; height:40px; background:var(--sg-primary); color:var(--sg-on-primary); font-family:var(--sg-font); }
html[data-shell-skin="glass"] body.portal-beefur .bf-topbar-user-name { max-width:160px; overflow-wrap:anywhere; font:500 13px/20px var(--sg-font); }
html[data-shell-skin="glass"] body.portal-beefur .bf-topbar-user-links { gap:8px; margin-left:2px; font:400 12px/20px var(--sg-font); }
html[data-shell-skin="glass"] .bf-topbar-user-links a { display:inline-flex; align-items:center; min-height:36px; color:var(--sg-ink); }
html[data-shell-skin="glass"] body.portal-beefur .portal-main { padding:0 24px 24px; overflow:visible; flex:1; min-width:0; font-family:var(--sg-font); }
html[data-shell-skin="glass"] body.portal-beefur .bf-main-inner { max-width:none; margin:0; }
html[data-shell-skin="glass"] body.portal-beefur .portal-main :is(a,p,span,button,input,select,label), html[data-shell-skin="glass"] .lable-zi { font-family:var(--sg-font); }

/* Pages without a page-specific stylesheet still inherit the active mode. */
html[data-shell-skin="glass"]:not([data-glass-page]) body.portal-beefur .bf-main-inner { --theme-surface:var(--sg-solid); --theme-text:var(--sg-ink); --theme-accent:var(--sg-primary); --theme-line:var(--sg-line); color:var(--sg-ink); }
html[data-shell-skin="glass"][data-shell-mode="night"]:not([data-glass-page]) body.portal-beefur .bf-main-inner { background:transparent; padding:0; border-radius:0; color-scheme:inherit; }
html[data-shell-skin="glass"] .sg-page-heading { flex:1 1 100%; min-width:0; }
html[data-shell-skin="glass"] .sg-page-heading h1 { margin:0 0 8px; color:var(--sg-ink); font:var(--sg-title); }
html[data-shell-skin="glass"] .sg-page-heading > span { color:var(--sg-muted); font:var(--sg-meta); letter-spacing:normal; }
html[data-shell-skin="glass"] body.portal-beefur .bf-topbar { flex-wrap:wrap; gap:16px; padding-top:24px; padding-bottom:24px; }
html[data-shell-skin="glass"] body.portal-beefur .bf-topbar .portal-topbar-right { justify-content:flex-start; }
html[data-shell-skin="glass"] body.portal-beefur .portal-footer { padding:24px 0 0; color:var(--sg-muted); text-align:left; font:400 11px/18px var(--sg-font); letter-spacing:.03em; }
html[data-shell-skin="glass"] :is(a,button,select):focus-visible { outline:2px solid var(--sg-ink); outline-offset:3px; box-shadow:none; }
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar .portal-nav a:focus-visible { outline-offset:-3px !important; }
html[data-shell-skin="glass"] .portal-notify-drawer-panel, html[data-shell-skin="glass"] .portal-notify-modal-dialog { border:1px solid var(--sg-control-line); border-radius:24px; background:var(--sg-solid); color:var(--sg-ink); font-family:var(--sg-font); }
html[data-shell-skin="glass"] .portal-notify-drawer-panel :is(h2,strong,p,div,button,a), html[data-shell-skin="glass"] .portal-notify-modal-dialog :is(h2,strong,p,div,button,a) { color:inherit; font-family:var(--sg-font); }
html[data-shell-skin="glass"] .portal-notify-drawer-item { border-color:var(--sg-line); background:transparent; }
html[data-shell-skin="glass"] .portal-notify-drawer-item:hover { background:var(--sg-panel); }
html[data-shell-skin="glass"] .portal-notify-drawer-close { color:var(--sg-ink); background:var(--sg-panel); }
html[data-shell-skin="glass"] .portal-notify-modal .portal-btn-primary { color:var(--sg-on-primary); background:var(--sg-primary); border-color:var(--sg-primary); }
html[data-shell-skin="glass"] .portal-notify-modal .portal-btn-outline, html[data-shell-skin="glass"] .portal-notify-drawer .portal-btn-outline { color:var(--sg-ink); background:var(--sg-panel); border-color:var(--sg-control-line); }
@media (min-width:1280px) {
  html[data-shell-skin="glass"] .sg-page-heading { flex:0 0 180px; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-topbar .portal-topbar-right { flex:1; justify-content:flex-end; width:auto; }
}
@media (min-width:1024px) and (max-width:1279px) {
  html[data-shell-skin="glass"] body.portal-beefur { padding:20px; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar { top:20px; height:calc(100svh - 42px); max-height:calc(100svh - 42px); }
  html[data-shell-skin="glass"] body.portal-beefur .portal-main, html[data-shell-skin="glass"] body.portal-beefur .bf-topbar { padding-left:24px; padding-right:24px; }
}
/* Only the main application shell owns an internal content scroller.
   Standalone forms, legal pages and mail pages must keep document scrolling. */
@media (min-width:1024px) {
  html[data-shell-skin="glass"]:not([data-glass-standalone]) { overflow:hidden; }
  html[data-shell-skin="glass"] body.portal-beefur { height:100dvh; overflow:hidden; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-app { align-items:stretch; height:100%; min-height:0; max-height:100%; overflow:hidden; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar { position:relative; top:0; height:100%; max-height:100%; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-main-wrap { height:100%; overflow:hidden; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-topbar {
    flex:0 0 auto; background:var(--sg-shell); border-bottom:1px solid var(--sg-line);
    -webkit-backdrop-filter:var(--sg-glass-filter); backdrop-filter:var(--sg-glass-filter);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  }
  html[data-shell-skin="glass"] body.portal-beefur .portal-main { min-height:0; overflow-x:hidden; overflow-y:auto; padding-top:24px; scroll-padding-block:24px; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar .portal-nav,
  html[data-shell-skin="glass"] body.portal-beefur .portal-main { overscroll-behavior-y:contain; scrollbar-width:thin; scrollbar-color:var(--sg-control-line) transparent; scrollbar-gutter:stable; }
}
@media (max-width:1023px) {
  html[data-shell-skin="glass"] body.portal-beefur { padding:16px; }
  /* Override the legacy theme's !important off-canvas rules on this pilot only. */
  html[data-shell-skin="glass"] body.portal-beefur .bf-app { display:flex !important; flex-direction:column; min-height:calc(100svh - 32px); border-radius:var(--sg-shell-radius); }
  html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar { position:static !important; inset:auto; width:100% !important; flex-basis:auto; height:auto !important; max-height:none !important; padding:0; border:0; border-bottom:1px solid var(--sg-line); border-radius:var(--sg-shell-radius) var(--sg-shell-radius) 0 0; transform:none; box-shadow:none; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar-brand { display:flex; align-items:center; justify-content:space-between; min-height:84px; padding:18px 24px; gap:16px; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar-brand a { width:auto; }
  html[data-shell-skin="glass"] .sg-nav-toggle { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 12px; border:1px solid var(--sg-control-line); border-radius:12px; background:var(--sg-panel); color:var(--sg-ink); font:500 12px/20px var(--sg-font); }
  html[data-shell-skin="glass"] .sg-nav-toggle svg { width:18px; height:18px; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar .portal-nav { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 12px; padding:0 20px 20px; overflow:visible; }
  html[data-shell-skin="glass"][data-shell-nav="closed"] body.portal-beefur .bf-sidebar .portal-nav { display:none !important; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar .portal-nav-label { grid-column:1/-1; margin:12px 0 4px; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar .portal-nav a { margin:0; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-main-wrap { width:100%; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-topbar { padding:20px 24px; min-height:0; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-topbar .portal-topbar-right { justify-content:flex-start; gap:8px; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-topbar-user { padding:0; }
  html[data-shell-skin="glass"] body.portal-beefur .portal-main { padding:8px 24px 24px !important; overflow-x:visible !important; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-main-inner { padding:0 !important; }
  html[data-shell-skin="glass"][data-shell-mode="night"]:not([data-glass-page]) body.portal-beefur .bf-main-inner { padding:16px !important; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-topbar-user-name,
  html[data-shell-skin="glass"] body.portal-beefur .bf-topbar-contact-link span,
  html[data-shell-skin="glass"] body.portal-beefur .bf-language-picker { display:block !important; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-topbar-user-links { display:flex !important; flex-wrap:wrap; }
  html[data-shell-skin="glass"] .sg-appearance button { width:32px; height:32px; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-language-picker select { min-height:44px; }
}
@media (max-width:600px) {
  html[data-shell-skin="glass"] body.portal-beefur { padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); }
  html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar-brand { padding:16px; min-height:80px; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar .portal-nav { grid-template-columns:minmax(0,1fr); padding:0 12px 16px; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-topbar { padding:16px; }
  html[data-shell-skin="glass"] .sg-page-heading h1 { font-size:26px; line-height:36px; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-topbar-user { flex-basis:100%; border-top:1px solid var(--sg-line); padding-top:8px; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-topbar-user-name { max-width:100%; flex:1; }
  html[data-shell-skin="glass"] body.portal-beefur .bf-topbar-user-links { margin-left:auto; }
  html[data-shell-skin="glass"] body.portal-beefur .portal-main { padding:8px 16px 24px !important; }
  html[data-shell-skin="glass"] .portal-notify-drawer-panel { width:min(100%,420px); max-width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  html[data-shell-skin="glass"] *, html[data-shell-skin="glass"] *::before, html[data-shell-skin="glass"] *::after { animation-duration:.01ms !important; animation-delay:0s !important; animation-iteration-count:1 !important; transition:none !important; scroll-behavior:auto !important; }
}
@supports not (backdrop-filter:blur(20px)) {
  html[data-shell-skin="glass"] { --sg-panel:var(--sg-solid); --sg-sidebar:var(--sg-solid); }
  html[data-shell-skin="glass"][data-glass-page="document-editor"] { --sg-panel:var(--sg-solid); --sg-sidebar:var(--sg-solid); }
}
@media (prefers-reduced-transparency:reduce) {
  html[data-shell-skin="glass"] { --sg-panel:var(--sg-solid); --sg-sidebar:var(--sg-solid); --sg-shell:var(--sg-page); }
  html[data-shell-skin="glass"][data-glass-page="document-editor"] { --sg-panel:var(--sg-solid); --sg-sidebar:var(--sg-solid); --sg-shell:var(--sg-page); }
}
/* Customer feedback uses the existing day/night palette. */
.sg-notices { position:fixed; inset:24px 24px auto auto; z-index:15000; display:grid; gap:12px; width:min(440px,calc(100vw - 48px)); max-height:calc(100dvh - 48px); overflow:auto; overscroll-behavior:contain; pointer-events:none; }
.sg-notice { display:flex; align-items:flex-start; gap:12px; padding:16px; border:1px solid var(--sg-control-line); border-radius:var(--sg-control-radius); color:var(--sg-ink); background:var(--sg-solid); box-shadow:0 12px 32px rgba(20,20,18,.14); font:var(--sg-body); pointer-events:auto; }
.sg-notice-icon { display:grid; place-items:center; flex:0 0 24px; height:24px; border:1px solid currentColor; border-radius:50%; font-weight:600; }
.sg-notice-message { flex:1; min-width:0; padding-top:1px; white-space:pre-line; overflow-wrap:anywhere; }
.sg-notice-close { display:grid; place-items:center; flex:0 0 32px; height:32px; margin:-4px -4px -4px 0; padding:0; border:0; border-radius:8px; color:inherit; background:transparent; font:24px/1 var(--sg-font); cursor:pointer; }
.sg-notice-close:hover { background:var(--sg-panel); }
.sg-notice-close:focus-visible { outline:2px solid var(--sg-ink); outline-offset:2px; }
@media (max-width:600px) { .sg-notices { inset:12px 12px auto; width:auto; max-height:calc(100dvh - 24px); } }

/* Form feedback and action confirmation use the existing day/night tokens. */
html:not([data-glass-page="document-editor"]) .sg-field-error[role="alert"] { display:block; grid-column:1/-1; margin:8px 0; color:var(--glass-danger); font:var(--sg-help); white-space:pre-line; overflow-wrap:anywhere; }
html:not([data-glass-page="document-editor"]) [aria-describedby*="sg-field-error-"] { outline:1px solid var(--glass-danger); outline-offset:2px; }
/* Page theme files contain !important rules for every dialog; scope this override to feedback only. */
html:not([data-glass-page="document-editor"]) .sg-feedback-dialog { box-sizing:border-box; width:min(560px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:var(--sg-inset); overflow:auto; overscroll-behavior:contain; border:1px solid var(--sg-control-line); border-radius:24px; background:var(--sg-panel) !important; color:var(--sg-ink); box-shadow:var(--sg-dialog-shadow); -webkit-backdrop-filter:var(--sg-glass-filter); backdrop-filter:var(--sg-glass-filter); font:var(--sg-body); }
html:not([data-glass-page="document-editor"]) .sg-feedback-dialog::backdrop { background:rgba(18,20,20,.42) !important; backdrop-filter:blur(5px); }
html:not([data-glass-page="document-editor"]) .sg-feedback-dialog h2 { margin:0 0 16px; color:inherit; font:600 24px/34px var(--sg-font); }
html:not([data-glass-page="document-editor"]) .sg-feedback-dialog p { margin:0; color:var(--sg-muted); font:var(--sg-body); white-space:pre-line; overflow-wrap:anywhere; }
.sg-feedback-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin-top:28px; }
html:not([data-glass-page="document-editor"]) .sg-feedback-dialog input { box-sizing:border-box; display:block; width:100%; min-height:44px; margin-top:16px; padding:10px 12px; border:1px solid var(--sg-control-line); border-radius:12px; color:var(--sg-ink); background:var(--sg-solid); font:var(--sg-body); }
html:not([data-glass-page="document-editor"]) .sg-feedback-actions button { min-width:96px; min-height:44px; padding:10px 20px; border:1px solid var(--sg-control-line); border-radius:12px; background:var(--sg-panel); color:var(--sg-ink); font:500 14px/22px var(--sg-font); cursor:pointer; }
html:not([data-glass-page="document-editor"]) .sg-feedback-actions .sg-feedback-confirm { background:var(--sg-primary); border-color:var(--sg-primary); color:var(--sg-on-primary); }
@media (max-width:600px) { html:not([data-glass-page="document-editor"]) .sg-feedback-dialog { padding:24px; } }

html[data-shell-skin="glass"]:not([data-glass-page="document-editor"]) :is(.sg-notice,.portal-notify-drawer-panel,.portal-notify-modal-dialog) {
  border:1px solid var(--sg-edge); border-radius:var(--sg-radius); background:var(--sg-panel); box-shadow:var(--sg-dialog-shadow);
  -webkit-backdrop-filter:var(--sg-glass-filter); backdrop-filter:var(--sg-glass-filter);
}
html:not([data-glass-page="document-editor"]) .sg-feedback-dialog { border-color:var(--sg-edge); }

/* PC foundation, pp. 5 / 24: natural page flow and 32px content inset. */
html[data-shell-skin="glass"] body.portal-beefur .bf-topbar { gap:24px; align-items:flex-start; padding:32px 32px 28px; min-height:120px; background:transparent; border:0; box-shadow:none; backdrop-filter:none; }
html[data-shell-skin="glass"] .sg-page-heading { flex:1 1 260px; }
html[data-shell-skin="glass"] .sg-page-heading h1 { margin:0; font:var(--sg-title); }
html[data-shell-skin="glass"] .sg-page-heading p { margin:8px 0 0; font:var(--sg-help); color:var(--sg-muted); }
html[data-shell-skin="glass"] body.portal-beefur .bf-topbar .portal-topbar-right { flex:0 0 auto; width:auto; gap:16px; align-items:center; }
html[data-shell-skin="glass"] .sg-workspace-label { font:var(--sg-meta); letter-spacing:.12em; color:var(--sg-muted); }
html[data-shell-skin="glass"] .sg-settings { position:relative; }
html[data-shell-skin="glass"] .sg-settings > summary { list-style:none; display:grid; place-items:center; width:40px; height:40px; border:1px solid var(--sg-line); border-radius:12px; background:var(--sg-panel); color:var(--sg-ink); cursor:pointer; }
html[data-shell-skin="glass"] .sg-settings > summary::-webkit-details-marker { display:none; }
html[data-shell-skin="glass"] .sg-settings svg { width:20px; height:20px; stroke-width:1.6; }
html[data-shell-skin="glass"] .sg-settings-panel { position:absolute; top:52px; right:0; width:260px; display:grid; gap:16px; padding:24px; border:1px solid var(--sg-line); border-radius:24px; background:var(--sg-solid); box-shadow:var(--sg-dialog-shadow); z-index:30; }
html[data-shell-skin="glass"] .sg-settings-panel > a { color:var(--sg-ink); font:var(--sg-control); padding-block:6px; }
html[data-shell-skin="glass"] .sg-settings-panel > .sg-settings-feature-link { display:flex; flex-direction:column; align-items:flex-start; gap:4px; text-decoration:none; }
html[data-shell-skin="glass"] .sg-settings-panel > .sg-settings-feature-link small { color:var(--sg-muted); font:var(--sg-meta); }
html[data-shell-skin="glass"] .sg-settings-panel > .sg-settings-feature-link:hover span { text-decoration:underline; text-underline-offset:3px; }
html[data-shell-skin="glass"] .sg-settings-panel .bf-language-picker { display:flex; align-items:center; justify-content:space-between; gap:12px; }
html[data-shell-skin="glass"] .sg-settings-panel .sg-appearance { width:max-content; }
html[data-shell-skin="glass"] body.portal-beefur .bf-topbar .portal-notify-btn { width:40px; height:40px; }
html[data-shell-skin="glass"] .portal-user-avatar { display:grid; place-items:center; text-decoration:none; }
html[data-shell-skin="glass"] body.portal-beefur .portal-main { padding:0 32px 24px; overflow:visible; }
html[data-shell-skin="glass"] .portal-footer { display:flex; justify-content:space-between; gap:24px; }
html[data-shell-skin="glass"] body.portal-beefur .portal-main { display:flex; flex-direction:column; }
html[data-shell-skin="glass"] body.portal-beefur .bf-main-inner { flex:1 0 auto; }
html[data-shell-skin="glass"] .sg-sidebar-bottom { padding:16px; display:grid; gap:16px; margin-top:auto; }
html[data-shell-skin="glass"] .sg-sidebar-bottom svg { width:20px; height:20px; flex:none; stroke-width:1.6; }
html[data-shell-skin="glass"] .sg-assistant-link { display:flex; gap:12px; align-items:center; padding:14px; border:1px solid var(--sg-line); border-radius:16px; background:var(--sg-panel); color:var(--sg-ink); text-decoration:none; }
html[data-shell-skin="glass"] .sg-assistant-link span { flex:1; }
html[data-shell-skin="glass"] .sg-assistant-link strong { display:block; font:var(--sg-control); }
html[data-shell-skin="glass"] .sg-assistant-link small { display:block; font:var(--sg-meta); color:var(--sg-muted); }
html[data-shell-skin="glass"] .sg-collapse { display:flex; align-items:center; gap:12px; min-height:40px; padding:8px 14px; background:transparent; border:0; color:var(--sg-muted); font:var(--sg-help); cursor:pointer; }
html[data-shell-skin="glass"] .portal-page-header.sg-heading-moved:empty { display:none; }
html[data-shell-skin="glass"] .sg-heading-moved { margin-bottom:24px; }
/* Navigation groups keep the existing role-filtered links in a compact hierarchy. */
html[data-shell-skin="glass"] .sg-nav-group { min-width:0; margin-bottom:4px; }
html[data-shell-skin="glass"] .sg-nav-group > summary {
 display:flex; align-items:center; gap:10px; min-height:44px; padding:10px 12px;
 border:1px solid transparent; border-radius:12px; color:var(--sg-muted); font:var(--sg-control);
 list-style:none; cursor:pointer; overflow-wrap:anywhere;
}
html[data-shell-skin="glass"] .sg-nav-group > summary::-webkit-details-marker { display:none; }
html[data-shell-skin="glass"] .sg-nav-group > summary:hover,
html[data-shell-skin="glass"] .sg-nav-group.has-active > summary { color:var(--sg-ink); background:var(--sg-panel); }
html[data-shell-skin="glass"] .sg-nav-group > summary:focus-visible,
html[data-shell-skin="glass"] .sg-help-link:focus-visible { outline:2px solid var(--sg-ink); outline-offset:-3px; }
html[data-shell-skin="glass"] .sg-nav-chevron { flex:0 0 14px; width:14px; height:14px; margin-inline-start:auto; transition:transform 160ms; }
html[data-shell-skin="glass"] .sg-nav-group[open] > summary > .sg-nav-chevron { transform:rotate(180deg); }
html[data-shell-skin="glass"] .sg-nav-group[open] > summary > .sg-nav-summary-badge { display:none; }
html[data-shell-skin="glass"] .sg-nav-children { margin:4px 0 8px 10px; padding-inline-start:4px; border-inline-start:1px solid var(--sg-line); }
html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar .sg-nav-children a { gap:8px; padding:9px 8px; font-size:13px; line-height:20px; }
html[data-shell-skin="glass"] .sg-nav-copy { display:flex; flex-direction:column; gap:2px; }
html[data-shell-skin="glass"] .sg-nav-copy small { font-size:10px; line-height:14px; opacity:.8; }
html[data-shell-skin="glass"] .sg-nav-placeholder { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-height:44px; padding:9px 8px; color:var(--sg-muted); font-size:13px; cursor:default; }
html[data-shell-skin="glass"] .sg-nav-placeholder small { padding:1px 5px; border:1px solid var(--sg-line); border-radius:5px; font-size:10px; line-height:16px; white-space:nowrap; }
html[data-shell-skin="glass"] .sg-nav-section + .sg-nav-section { margin-top:8px; padding-top:8px; border-top:1px solid var(--sg-line); }
html[data-shell-skin="glass"] .sg-help-link { display:flex; align-items:center; gap:10px; min-height:40px; padding:8px 12px; border-radius:12px; color:var(--sg-muted); font:var(--sg-control); text-decoration:none; }
html[data-shell-skin="glass"] .sg-help-link:hover { color:var(--sg-ink); background:var(--sg-panel); }
html[data-shell-skin="glass"] .sg-help-link.active { color:var(--sg-on-primary); background:var(--sg-primary); }
@media (min-width:1024px) {
 html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar { width:248px; flex-basis:248px; }
 html[data-shell-skin="glass"]:not([data-glass-standalone]) { overflow:auto; }
 html[data-shell-skin="glass"] body.portal-beefur { height:auto; min-height:100dvh; overflow:visible; }
 html[data-shell-skin="glass"] body.portal-beefur .bf-app { height:auto; max-height:none; min-height:calc(100dvh - 56px); align-items:flex-start; overflow:visible; }
 html[data-shell-skin="glass"] body.portal-beefur .bf-sidebar { position:sticky; top:28px; height:calc(100dvh - 56px); max-height:calc(100dvh - 56px); }
 html[data-shell-skin="glass"] body.portal-beefur .bf-main-wrap { height:auto; min-height:calc(100dvh - 58px); overflow:visible; }
 html[data-shell-skin="glass"][data-shell-collapsed="true"] body.portal-beefur .bf-sidebar { width:80px; flex-basis:80px; }
 html[data-shell-skin="glass"][data-shell-collapsed="true"] .bf-sidebar :is(.brand-logo-text,.sg-brand-tagline,.portal-nav-label,.portal-nav a > span,.sg-assistant-link span,.sg-assistant-link > svg:last-child,.sg-collapse span) { display:none; }
 html[data-shell-skin="glass"][data-shell-collapsed="true"] body.portal-beefur .bf-sidebar-brand { padding:24px; }
 html[data-shell-skin="glass"][data-shell-collapsed="true"] body.portal-beefur .bf-sidebar .portal-nav { padding-inline:12px; }
 html[data-shell-skin="glass"][data-shell-collapsed="true"] body.portal-beefur .bf-sidebar .portal-nav a { justify-content:center; padding-inline:8px; }
 html[data-shell-skin="glass"][data-shell-collapsed="true"] .sg-sidebar-bottom { padding-inline:12px; }
 html[data-shell-skin="glass"][data-shell-collapsed="true"] :is(.sg-assistant-link,.sg-collapse) { justify-content:center; padding-inline:8px; }
 html[data-shell-skin="glass"][data-shell-collapsed="true"] .sg-nav-group > summary { justify-content:center; padding-inline:8px; }
 html[data-shell-skin="glass"][data-shell-collapsed="true"] .sg-nav-group > summary > :is(span,.sg-nav-chevron),
 html[data-shell-skin="glass"][data-shell-collapsed="true"] .sg-nav-children,
 html[data-shell-skin="glass"][data-shell-collapsed="true"] .sg-help-link > span { display:none; }
 html[data-shell-skin="glass"][data-shell-collapsed="true"] .sg-help-link { justify-content:center; padding-inline:8px; }
}
@media (max-width:1279px) { html[data-shell-skin="glass"] .sg-workspace-label { display:none; } }
@media (max-width:1023px) {
 html[data-shell-skin="glass"] body.portal-beefur .bf-topbar { padding:24px; min-height:0; }
 html[data-shell-skin="glass"] body.portal-beefur .portal-main { padding:0 24px 24px; }
 html[data-shell-skin="glass"] .sg-sidebar-bottom { display:flex; padding:0 20px 12px; }
 html[data-shell-skin="glass"] .sg-sidebar-bottom .sg-collapse { display:none; }
 html[data-shell-skin="glass"] .sg-nav-group { grid-column:1/-1; }
 html[data-shell-skin="glass"] .sg-page-heading { flex-basis:200px; }
}
@media (max-width:600px) {
 html[data-shell-skin="glass"] body.portal-beefur .bf-topbar { padding:24px 16px; }
 html[data-shell-skin="glass"] body.portal-beefur .portal-main { padding:0 16px 24px; }
 html[data-shell-skin="glass"] .sg-settings-panel { right:-64px; }
 html[data-shell-skin="glass"] .portal-footer { flex-wrap:wrap; }
}
