/* Classic MD tokens, baseline and application shell. Visual authority: DESIGN.md. */
@font-face { font-family:Roboto; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/Roboto-Regular.woff2') format('woff2'); }
@font-face { font-family:Roboto; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/Roboto-Medium.woff2') format('woff2'); }
@font-face { font-family:Roboto; font-style:normal; font-weight:700; font-display:swap; src:url('../fonts/Roboto-Bold.woff2') format('woff2'); }
:root {
    color-scheme:light;
    --ui-primary:#3f51b5; --ui-primary-dark:#35469c; --ui-link:#3049ad; --ui-primary-soft:#e8eaf6; --ui-on-primary:#fff;
    --ui-success:#267337; --ui-warning:#865600; --ui-danger:#bc2929;
    --ui-success-soft:#edf5ee; --ui-warning-soft:#fff3df; --ui-danger-soft:#fcecec;
    --ui-bg:#f5f5f5; --ui-surface:#fff; --ui-surface-soft:#f5f5f5;
    --ui-border:rgb(0 0 0 / 12%); --ui-border-soft:var(--ui-border); --ui-field:rgb(0 0 0 / 42%);
    --ui-text:rgb(0 0 0 / 87%); --ui-text-muted:rgb(0 0 0 / 60%); --ui-text-faint:var(--ui-text-muted); --ui-disabled-text:rgb(0 0 0 / 38%);
    --ui-radius-sm:2px; --ui-radius:2px; --ui-radius-lg:2px;
    --ui-shadow-sm:0 1px 3px rgb(0 0 0 / 14%);
    --ui-shadow:0 4px 12px rgb(0 0 0 / 18%); --ui-button-shadow:var(--ui-shadow-sm);
    --ui-header-height:64px; --ui-sidebar-width:240px; --ui-gutter:32px;
    --ui-brand-size:48px; --ui-brand-hero-size:48px;
    --ui-ease-standard:cubic-bezier(.4,0,.2,1); --ui-ease-enter:var(--ui-ease-standard); --ui-ease-exit:var(--ui-ease-standard);
    --ui-motion-short:120ms; --ui-motion-medium:180ms; --ui-transition:150ms var(--ui-ease-standard);
    --ui-accent:var(--ui-primary); --ui-accent-dark:var(--ui-primary-dark); --ui-accent-soft:var(--ui-primary-soft);
}
html { background:var(--ui-bg); font-size:14px; -webkit-text-size-adjust:100%; }
body { margin:0; }
body,input,button,select,textarea { font-family:Roboto,"Noto Sans CJK SC","Microsoft YaHei",sans-serif; }
button,input,select,textarea { font-size:inherit; }
button { cursor:pointer; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button:disabled { cursor:not-allowed; }
*,*::before,*::after { box-sizing:border-box; }
[hidden] { display:none!important; }
img { max-width:100%; vertical-align:middle; }
svg { vertical-align:middle; }
table { border-collapse:collapse; }
th { text-align:left; }
button,input { overflow:visible; }
button { text-transform:none; }
button,[type=button],[type=submit] { -webkit-appearance:button; }
fieldset { min-width:0; padding:0; margin:0; border:0; }
legend { padding:0; }
hr { border:0; border-top:1px solid var(--ui-border); margin:20px 0; }
h1,h2,h3,h4,h5,h6 { color:var(--ui-text); font-weight:400; line-height:1.4; margin:0 0 16px; }
h1 { font-size:24px; } h2 { font-size:16px; } h3 { font-size:16px; } h4,h5,h6 { font-size:14px; }
p { margin:0 0 12px; }
dl,ul,ol { margin-top:0; margin-bottom:16px; }
dd { margin:0 0 8px; } dt { font-weight:500; }
a { color:var(--ui-link); text-decoration:none; }
a:hover { color:var(--ui-link); }
strong,b { font-weight:500; }
small { font-size:12px; }
.app-shell { min-height:100vh; color:var(--ui-text); background:var(--ui-bg); font-size:14px; line-height:1.6; -webkit-font-smoothing:antialiased; }
.app-shell a { transition:color var(--ui-transition),background-color var(--ui-transition); }
.app-shell code { padding:2px 5px; color:var(--ui-text); background:var(--ui-surface-soft); border-radius:2px; font-size:14px; overflow-wrap:anywhere; }
.app-shell code:empty { display:none; }
.app-shell pre { max-width:100%; padding:16px; color:var(--ui-text); background:var(--ui-surface-soft); border:1px solid var(--ui-border); border-radius:2px; overflow:auto; white-space:pre-wrap; }
[data-state=error] { color:var(--ui-danger); } [data-state=success] { color:var(--ui-success); }
[data-state=info] { color:var(--ui-text-muted); }
.app-shell .container { width:calc(100% - var(--ui-gutter)*2); max-width:1120px; margin-inline:auto; padding:0; }
.app-shell-user,.app-shell-admin { padding-top:var(--ui-header-height); }
.ui-skip-link { position:fixed; z-index:2000; top:8px; left:8px; padding:10px 16px; color:#fff!important; background:var(--ui-primary); border-radius:2px; transform:translateY(-160%); }
.ui-skip-link:focus { transform:none; }
#main-content { display:block; height:0; scroll-margin-top:calc(var(--ui-header-height) + 12px); }
.app-header { position:fixed; z-index:40; top:0; right:0; left:0; display:flex; align-items:center; justify-content:space-between; height:var(--ui-header-height); padding:0 24px; color:#fff; background:var(--ui-primary); box-shadow:var(--ui-shadow-sm); }
.app-header-left,.app-header-right { display:flex; align-items:center; gap:16px; min-width:0; }
.app-context { display:flex; align-items:center; min-width:0; gap:16px; }
.app-context > span:first-child { color:#fff; font-size:24px; font-weight:500; }
.app-shell .app-menu-trigger,.app-drawer-close { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; color:inherit; background:transparent; border:0; border-radius:2px; }
.app-shell .app-menu-trigger:hover { color:#fff; background:rgb(255 255 255 / 12%); }
.avatar { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; overflow:hidden; }
.app-header .avatar { background:rgb(255 255 255 / 20%); color:#fff; font-size:14px; font-weight:500; transition:background-color var(--ui-transition); }
.app-header .dropdown-toggle:hover .avatar { background:rgb(255 255 255 / 28%); }
.avatar img { width:100%; height:100%; object-fit:cover; }
.app-header .dropdown-toggle { display:flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; color:#fff; cursor:pointer; }
.app-header .dropdown-toggle::after { display:none; }
.app-account-label { max-width:160px; margin-right:10px; color:#fff; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.app-drawer { position:fixed; top:var(--ui-header-height); bottom:0; left:0; z-index:20; width:var(--ui-sidebar-width); color:var(--ui-text); background:var(--ui-surface); border-right:1px solid var(--ui-border); overflow-y:auto; }
.menu-scroll { width:100%; height:100%; padding:0 0 24px; overflow-y:auto; }
.static-brand-mark,.static-hero-mark { display:block; flex-shrink:0; object-fit:contain; }
.app-drawer .app-drawer-close { position:absolute; top:8px; right:8px; color:var(--ui-text-muted); }
.app-drawer-close:hover { background:var(--ui-surface-soft); }
.app-nav-section + .app-nav-section { margin-top:12px; border-top:1px solid var(--ui-border); }
.app-nav-label { display:block; padding:20px 24px 8px; color:var(--ui-text-muted); font-size:12px; font-weight:500; }
.app-drawer .nav { display:flex; flex-direction:column; margin:0; padding:0; width:100%; list-style:none; }
.app-drawer .nav > li > a { display:flex; align-items:center; gap:24px; width:100%; min-height:48px; padding:10px 24px; color:var(--ui-text); background:transparent; border:0; border-radius:0; font:inherit; font-weight:500; line-height:1.4; text-align:left; cursor:pointer; }
.app-drawer .nav > li > a:hover { background:var(--ui-surface-soft); }
.app-drawer .nav > li.active > a { color:var(--ui-link); background:var(--ui-primary-soft); }
.app-drawer .nav .icon { display:inline-flex; align-items:center; justify-content:center; width:22px; flex:0 0 22px; margin:0; font-size:22px; color:var(--ui-text-muted); }
.app-drawer .nav > li.active .icon { color:var(--ui-link); }
.app-shell :is(a,button,summary):focus-visible { outline:2px solid var(--ui-link); outline-offset:3px; }
.app-shell-user main.content,.app-shell-admin main.content { min-height:calc(100vh - var(--ui-header-height) - 60px); padding-bottom:24px; }
.ui-content-header { padding:30px 0 24px; }
.content-heading { margin:0; color:var(--ui-text); font-size:24px; font-weight:400; line-height:1.4; }
.content-inner { position:relative; padding-top:0; }
.row,.ui-card-wrap { display:flex; flex-wrap:wrap; margin-inline:-12px; }
.ui-card-wrap { margin-block:0; }
[class^="col-"],[class*=" col-"] { padding-inline:12px; min-width:0; width:100%; }
main > .container > .col-lg-12:only-child { padding-inline:0; }
.label-flex { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.card { display:block; min-width:0; margin:0 0 24px; color:var(--ui-text); background:var(--ui-surface); border:0; border-radius:2px; box-shadow:var(--ui-shadow-sm); overflow:hidden; }
.card-main { min-width:0; width:100%; }
.card-inner { min-width:0; margin:0; padding:22px 24px; }
.card-heading { display:flex; align-items:center; gap:8px; margin:0 0 16px; color:var(--ui-text); font-size:16px; font-weight:400; line-height:1.5; }
.card-heading .icon { display:inline-flex; flex-shrink:0; color:var(--ui-text-muted); font-size:20px; }
.ui-footer { padding:16px 24px; text-align:center; color:var(--ui-text-muted); font-size:12px; }
.ui-language { display:inline-flex; align-items:center; margin:0; }
.ui-language select { max-width:144px; padding:6px 0; color:var(--ui-text); background:var(--ui-surface); border:0; border-bottom:1px solid var(--ui-field); border-radius:0; font:inherit; font-size:14px; cursor:pointer; }
.ui-language-icon { align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:0; border-radius:2px; color:var(--ui-text-muted); background:transparent; font:inherit; }
.ui-language-icon > .icon { font-size:24px; pointer-events:none; }
.ui-language-icon:hover { background:var(--ui-primary-soft); color:var(--ui-link); }
.ui-language-icon:focus-visible { outline:2px solid var(--ui-link); outline-offset:2px; }
.ui-language-bar { display:flex; justify-content:flex-end; padding:16px 24px; }
.app-shell-auth > .ui-language-bar { position:absolute; top:0; right:0; z-index:5; }
