:root {
  color-scheme: light; --bg:#f4f6fa; --panel:#fff; --text:#19273e; --muted:#60718b; --line:#e2e8f2;
  --primary:#2b5ed3; --nav:#172642; --nav-deep:#14213a; --radius:16px;
  font:16px/1.55 "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}
* { box-sizing:border-box; }
body { margin:0; color:var(--text); background:var(--bg); }
a { color:inherit; text-decoration:none; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
button:disabled { opacity:.58; cursor:default; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline:3px solid #769bf0; outline-offset:3px; }
h1,h2,p { margin:0; }
strong { font-weight:690; }
small { font-size:.82rem; color:var(--muted); }
[hidden] { display:none !important; }
.boot { padding:2rem; }
.skip { position:fixed; z-index:20; top:.5rem; left:.5rem; border-radius:8px; padding:.6rem; color:white; background:var(--primary); transform:translateY(-150%); }
.skip:focus { transform:none; }
.layout { min-height:100vh; display:grid; grid-template-columns:244px minmax(0,1fr); align-items:start; }
.sidebar { width:244px; min-height:100vh; height:100dvh; position:sticky; top:0; display:flex; flex-direction:column; padding:24px 16px 15px; color:#d5def0; background:linear-gradient(180deg,var(--nav),var(--nav-deep)); overflow:auto; }
.sidebar-brand { display:flex; align-items:center; gap:11px; margin:4px 5px 25px; padding-bottom:19px; border-bottom:1px solid #ffffff20; }
.sidebar-brand img { flex:none; }
.sidebar-brand strong,.sidebar-brand small { display:block; }
.sidebar-brand strong { color:#fff; font-size:1.04rem; letter-spacing:.03em; white-space:nowrap; }
.sidebar-brand small { color:#b3c2db; font-size:.765rem; white-space:nowrap; margin-top:3px; }
.nav-group { margin:0 0 22px; }
.nav-group>p { font-size:.78rem; font-weight:650; color:#a6b8d5; margin:0 11px 8px; }
.nav-link { width:100%; min-height:44px; display:flex; align-items:center; gap:11px; padding:10px 11px; margin:3px 0; background:transparent; color:#d4def0; border:0; border-radius:9px; text-align:left; font-size:.925rem; white-space:nowrap; }
.nav-link i { font-size:1.12rem; display:grid; width:19px; place-items:center; color:#b4c6e8; }
.nav-link:hover { background:#ffffff14; color:#fff; }
.nav-link.current { color:#fff; background:#3263c9; font-weight:650; }
.nav-link.current i { color:#fff; }
.nav-badge { margin-left:auto; background:#ffffff25; color:white; border-radius:999px; padding:1px 7px; font-size:.75rem; }
.sidebar-bottom { margin-top:auto; padding-top:11px; border-top:1px solid #ffffff25; }
.main-shell { min-width:0; }
.topbar { position:sticky; top:0; z-index:3; display:flex; justify-content:space-between; align-items:center; min-height:70px; padding:0 clamp(16px,3vw,40px); background:#fff; border-bottom:1px solid #e5eaf2; }
.breadcrumb,.topbar-right,.top-profile { display:flex; align-items:center; gap:12px; }
.breadcrumb { font-size:.9rem; color:#657690; }
.breadcrumb strong { color:#263750; }
.breadcrumb i { font-size:.87rem; }
.topbar-right { gap:20px; }
.top-bell { position:relative; font-size:1.18rem; padding:7px; height:36px; width:36px; display:grid; place-items:center; border-radius:50%; color:#445775; }
.top-bell:hover,.top-profile:hover { background:#f0f4fb; }
.notice-dot { height:8px; width:8px; background:#db5969; border:1px solid #fff; position:absolute; top:6px; right:6px; border-radius:50%; }
.top-profile { border-radius:9px; padding:4px 6px; gap:9px; }
.avatar { width:36px; height:36px; border-radius:50%; background:#e9efff; color:var(--primary); display:grid; place-items:center; font-weight:700; }
.profile-text strong,.profile-text small { display:block; line-height:1.35; }
.profile-text strong { font-size:.87rem; }
.profile-text small { font-size:.75rem; margin-top:2px; }
.menu-button { display:none !important; }
.main { max-width:1512px; padding:28px clamp(16px,3vw,40px) 48px; margin:auto; }
.main:focus { outline:none; }
.page-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:0 0 23px; }
.page-head h1 { font-size:clamp(1.55rem,2.1vw,2.05rem); line-height:1.25; letter-spacing:.015em; overflow-wrap:anywhere; }
.page-head p { color:var(--muted); margin-top:7px; font-size:.935rem; }
.actions { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.button { display:inline-flex; justify-content:center; align-items:center; gap:7px; color:var(--text); border:1px solid transparent; border-radius:8px; padding:8px 13px; font-size:.875rem; font-weight:650; line-height:1.45; white-space:nowrap; }
.button i { font-size:1rem; line-height:1; }
.primary { color:#fff; background:var(--primary); }
.primary:hover { background:#214eb7; }
.secondary { background:#fff; border-color:#dbe4f2; color:#354965; }
.secondary:hover { border-color:#a6b9db; background:#f9fbff; }
.quiet { color:#275bbe; background:transparent; padding:6px 9px; }
.quiet:hover { background:#edf3ff; }
.quiet.danger { color:#b43147; }
.quiet.danger:hover { background:#fff0f2; }
.icon-button { padding:8px; width:36px; height:36px; overflow:hidden; font-size:0; background:#f0f4fa; color:#415673; }
.back { display:inline-flex; gap:6px; align-items:center; color:#275bbe; margin-bottom:13px; font-size:.88rem; font-weight:650; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); min-width:0; box-shadow:0 2px 6px #263e6311; }
.panel-head { min-height:62px; display:flex; justify-content:space-between; align-items:center; gap:10px; padding:13px 19px; border-bottom:1px solid #edf1f7; }
.panel-head h2 { font-size:1.04rem; line-height:1.35; }
.panel-body { padding:18px 20px; overflow-wrap:anywhere; }
.hero { position:relative; border-radius:18px; overflow:hidden; min-height:226px; isolation:isolate; display:flex; align-items:center; margin-bottom:20px; padding:26px 30px; background:radial-gradient(ellipse at 87% 45%,#4c81f5 0%,transparent 55%),linear-gradient(110deg,#204cbb,#2f68e5 70%,#427af0); color:#fff; }
.hero::before,.hero::after { content:''; z-index:-1; position:absolute; right:-33px; width:420px; aspect-ratio:1; border-radius:50%; border:1px solid #ffffff2b; }
.hero::after { width:320px; right:25px; }
.hero-kicker { color:#e4edff; font-size:.86rem; display:flex; gap:7px; align-items:center; }
.hero h2 { color:#fff; margin:7px 0 4px; font-size:clamp(1.55rem,3vw,2.28rem); overflow-wrap:anywhere; }
.hero p { color:#edf3ff; font-size:.93rem; margin-bottom:19px; }
.hero-content { z-index:1; }
.hero-button { background:white; color:#224eaf; }
.hero-button:hover { background:#e8f0ff; }
.hero-outline { color:#fff; border-color:#ffffff72; background:#14377c26; }
.hero-outline:hover { background:#1347b7; }
.hero-art { position:absolute; right:clamp(38px,9vw,145px); top:50%; transform:translateY(-50%); width:170px; height:151px; }
.hero-book { display:grid; place-items:center; width:148px; height:136px; border-radius:28px; border:1px solid #c8d9ff8c; color:#e9f1ff; background:linear-gradient(145deg,#ffffff38,#ffffff05); box-shadow:12px 18px 34px #143b9977; transform:rotate(-11deg); font-size:4rem; }
.hero-mark { position:absolute; bottom:8px; right:1px; border-radius:14px; background:#d8e6ff; color:#255dcc; display:grid; place-items:center; width:48px; height:48px; font-size:1.7rem; transform:rotate(12deg); }
.metric-grid { display:grid; gap:16px; grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:21px; }
.metric { padding:16px 17px; height:100%; min-height:121px; }
.metric-link:hover .metric { border-color:#9bb4e9; }
.metric-head { display:flex; align-items:center; gap:9px; color:#475e7b; font-size:.88rem; font-weight:650; }
.metric-icon,.file-icon,.empty-icon { display:inline-grid; place-items:center; flex:none; width:36px; height:36px; border-radius:10px; font-size:1.16rem; }
.metric>strong { display:block; font-size:1.7rem; line-height:1.32; margin:7px 0 1px; }
.metric small { display:block; white-space:normal; }
.blue { color:#2659c6; background:#eaf1ff; }
.purple { color:#6344b8; background:#f2ecff; }
.green { color:#14745a; background:#e3f6ef; }
.orange { color:#9a5218; background:#fff0df; }
.red { color:#a52c44; background:#ffecf0; }
.neutral { color:#4e627d; background:#edf1f7; }
.dashboard-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.server-sampled { margin:-8px 0 14px; }
.server-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:18px; }
.server-card { min-width:0; padding:16px; }
.server-card h2 { font-size:.9rem; }
.server-value { display:block; font-size:clamp(1.3rem,2.4vw,1.8rem); margin:9px 0 1px; }
.server-card progress { margin-top:12px; }
.server-facts dd { overflow-wrap:anywhere; }
.empty { padding:36px 20px; min-height:160px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:6px; color:#314561; }
.empty-icon { width:48px; height:48px; margin-bottom:3px; border-radius:14px; color:#4568a0; background:#edf3fd; font-size:1.38rem; }
.empty p { color:var(--muted); font-size:.89rem; }
.list { display:flex; flex-direction:column; padding:5px 16px; }
.list-row { display:flex; align-items:center; gap:12px; padding:11px 3px; min-width:0; border-bottom:1px solid #edf1f7; }
.list-row:last-child { border-bottom:0; }
.list-row:hover strong,.doc-title:hover,.table-title:hover { color:var(--primary); }
.list-row>div { flex:1; min-width:0; overflow-wrap:anywhere; }
.list-row strong,.list-row small { display:block; }
.badge { display:inline-flex; align-items:center; width:max-content; max-width:100%; padding:3px 8px; border-radius:999px; font-size:.76rem; font-weight:650; white-space:nowrap; }
.toolbar { padding:15px 19px; border-bottom:1px solid #edf1f7; display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.search { display:flex; align-items:center; gap:9px; padding:4px 6px 4px 11px; min-width:min(100%,360px); background:#f8faff; color:#536b8e; border:1px solid #dfe7f3; border-radius:9px; }
.search input { flex:1; width:100%; min-width:40px; padding:6px 2px; border:0; background:none; color:var(--text); }
.search input:focus { outline:0; }
.search:focus-within { outline:2px solid #769bf0; outline-offset:2px; }
.doc-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; padding:18px; }
.doc-card { display:flex; flex-direction:column; gap:8px; border:1px solid var(--line); border-radius:12px; padding:14px; min-width:0; }
.doc-top,.doc-foot,.split-row { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.doc-title { font-weight:700; overflow-wrap:anywhere; }
.doc-card p { color:var(--muted); font-size:.88rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tags { display:flex; gap:5px; flex-wrap:wrap; }
.tags .badge { white-space:normal; overflow-wrap:anywhere; }
.doc-foot { font-size:.78rem; color:var(--muted); margin-top:auto; border-top:1px solid #edf1f8; padding-top:8px; }
.tabs { display:flex; align-items:center; gap:5px; border-radius:9px; padding:3px; background:#eef2f8; width:max-content; max-width:100%; flex-wrap:wrap; }
.tab { background:transparent; color:#536684; }
.tab.active { color:#2456bd; background:#fff; box-shadow:0 1px 3px #2945711f; }
.section-tabs { margin:0 0 16px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:.9rem; }
td,th { padding:12px 15px; vertical-align:middle; }
th { color:#4d627e; font-weight:680; background:#f6f8fc; white-space:nowrap; }
td { border-top:1px solid #edf1f7; overflow-wrap:anywhere; }
tr:hover td { background:#fcfdff; }
td small { display:block; }
.table-title { font-weight:680; }
progress { appearance:none; width:100%; min-width:60px; height:7px; background:#eaf0fa; border:0; border-radius:999px; display:block; margin-top:5px; }
progress::-webkit-progress-bar { background:#eaf0fa; border-radius:999px; }
progress::-webkit-progress-value { background:#4877e9; border-radius:999px; }
progress::-moz-progress-bar { background:#4877e9; border-radius:999px; }
.detail-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(245px,1fr); gap:17px; align-items:start; }
.wide-right { grid-template-columns:minmax(240px,1fr) minmax(0,2fr); }
.stack { display:grid; gap:16px; min-width:0; }
.separation { margin-top:18px; }
.facts { display:grid; grid-template-columns:max-content 1fr; gap:9px 13px; margin:14px 0 0; font-size:.9rem; align-items:baseline; }
.facts dt { color:var(--muted); }
.facts dd { margin:0; }
.preserve { white-space:pre-wrap; overflow-wrap:anywhere; }
.note { color:var(--muted); font-size:.89rem; }
.panel-body .note { margin-top:10px; }
.notice { color:#82500e; background:#fff5e3; padding:10px 13px; border-radius:8px; margin-bottom:12px; }
.preview-note { padding:11px 18px; color:var(--muted); background:#f8faff; border-bottom:1px solid var(--line); font-size:.88rem; }
.pdf-toolbar { display:flex; align-items:center; justify-content:space-between; gap:7px; padding:10px 12px; }
.pdf-toolbar output { color:var(--muted); font-size:.86rem; text-align:center; }
.pdf-page { padding:12px; height:min(65vh,680px); min-height:280px; overflow:auto; background:#edf1f7; border-radius:0 0 15px 15px; }
.pdf-page canvas { display:block; width:100%; height:auto; margin:0 auto; background:white; box-shadow:0 1px 5px #1c344b30; }
.image-preview,.media-preview { padding:18px; text-align:center; }
.image-preview img { max-width:100%; max-height:650px; object-fit:contain; }
.media-preview video,.media-preview audio { width:100%; max-height:650px; }
.preview-text { padding:20px; white-space:pre-wrap; overflow-wrap:anywhere; max-height:650px; overflow:auto; }
.preview-rich { padding:20px; overflow-wrap:anywhere; max-height:650px; overflow:auto; }
.preview-rich p { margin:0 0 .8em; }
.preview-rich img,.slides img { max-width:100%; max-height:450px; object-fit:contain; display:block; margin-top:8px; }
.preview-rich td,.preview-rich th { border:1px solid var(--line); }
.slides,.sheets { padding:16px; max-height:650px; overflow:auto; }
.slides article { min-height:150px; border:1px solid var(--line); border-radius:10px; margin-bottom:12px; padding:16px; background:#f9fbff; }
.slides p { white-space:pre-wrap; overflow-wrap:anywhere; margin-top:12px; }
.sheets details { margin-bottom:12px; border:1px solid var(--line); border-radius:8px; }
.sheets summary { padding:8px 12px; background:#eff5ff; font-weight:650; cursor:pointer; }
.spreadsheet td { border:1px solid #e7edf5; white-space:nowrap; }
.comments { margin-top:12px; }
.comment { border-top:1px solid var(--line); padding:10px 0; }
.comment-head { display:flex; justify-content:space-between; flex-wrap:wrap; gap:5px; }
time { font-size:.78rem; color:var(--muted); }
.comment p { margin-top:4px; }
.vote-option,.history-item { padding:11px 8px; border-bottom:1px solid #edf1f7; display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:space-between; }
.vote-option label { flex:1; display:flex; align-items:center; gap:8px; cursor:pointer; }
.history { margin-top:10px; }
.history p { flex:1 0 100%; color:var(--muted); font-size:.88rem; }
.org-name { display:flex; gap:8px; align-items:center; font-weight:650; }
.org-name i { color:#557cb1; }
.message-list { padding:2px 17px; }
.message { display:flex; gap:13px; padding:16px 9px; border-bottom:1px solid #ecf0f6; }
.message:last-child { border-bottom:0; }
.message.unread { background:#f8faff; }
.message>div { flex:1; min-width:0; }
.message header { display:flex; justify-content:space-between; align-items:baseline; gap:8px; flex-wrap:wrap; }
.message p { margin:4px 0; color:#435571; }
.field { display:grid; gap:6px; margin-bottom:13px; min-width:0; }
.field>span,.field>label,legend { font-size:.92rem; font-weight:660; }
.field input:not([type=checkbox],[type=radio]),.field textarea,.field select { width:100%; min-width:0; border:1px solid #d8e2f0; border-radius:8px; color:var(--text); background:#fff; padding:9px 11px; }
.field input[type=file] { min-height:43px; font-size:.85rem; }
.field input[type=file]::file-selector-button { border:0; color:#2858b8; background:#ebf2ff; border-radius:5px; padding:4px 8px; margin-right:8px; cursor:pointer; }
textarea { resize:vertical; }
.field select { appearance:none; background-image:linear-gradient(45deg,transparent 50%,#5f7390 50%),linear-gradient(135deg,#5f7390 50%,transparent 50%); background-position:calc(100% - 15px) center,calc(100% - 10px) center; background-size:5px 5px; background-repeat:no-repeat; padding-right:29px; }
input[type=checkbox],input[type=radio] { accent-color:var(--primary); width:17px; height:17px; margin:0; flex:none; }
fieldset { min-width:0; border:1px solid var(--line); border-radius:9px; margin:0 0 13px; padding:7px 10px 10px; }
legend { padding:0 5px; color:#354966; }
.choice-list { max-height:168px; overflow:auto; }
.choice-list label,.check-line { display:flex; align-items:center; gap:8px; padding:6px 3px; font-size:.9rem; cursor:pointer; }
.choice-list label:hover { background:#f3f7ff; }
.check-line { margin-bottom:10px; }
.form-error { color:#ad2941; font-size:.88rem; margin:8px 0; }
.form-error:empty { display:none; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
dialog { width:min(620px,calc(100% - 24px)); max-height:calc(100dvh - 26px); border:1px solid var(--line); border-radius:16px; color:var(--text); padding:0; box-shadow:0 24px 80px #0f24466c; }
dialog::backdrop { background:#0b1c42a3; }
.modal-head { position:sticky; top:0; z-index:1; background:#fff; padding:14px 19px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; }
.modal-head h2 { font-size:1.22rem; }
.modal-body { padding:17px 19px; }
.modal-body>.button,.modal-body>p:not(.form-error) { margin-bottom:12px; }
.modal-footer { display:flex; justify-content:flex-end; padding-top:10px; gap:8px; }
#toasts { position:fixed; z-index:10; bottom:18px; right:18px; display:flex; flex-direction:column; gap:7px; pointer-events:none; }
.toast { display:flex; gap:8px; align-items:center; border:1px solid #cad8ea; border-radius:10px; box-shadow:0 6px 22px #1726422d; padding:11px 14px; max-width:min(430px,calc(100vw - 36px)); font-size:.9rem; }
.login-layout { display:grid; grid-template-columns:1.12fr 1fr; min-height:100dvh; background:#fff; }
.login-cover { position:relative; isolation:isolate; overflow:hidden; display:flex; flex-direction:column; justify-content:space-between; min-height:100dvh; padding:clamp(24px,4.2vw,65px); color:#fff; background:radial-gradient(ellipse at 90% 82%,#376ee2 0%,transparent 52%),linear-gradient(142deg,#142a56,#224ead 75%); }
.login-cover::before,.login-cover::after { content:''; position:absolute; z-index:-1; width:min(56vw,780px); aspect-ratio:1; bottom:-270px; right:-260px; border-radius:50%; border:1px solid #a7c8ff55; }
.login-cover::after { width:min(46vw,655px); right:-195px; bottom:-224px; background:#95b9ff10; }
.cover-brand,.mobile-brand { display:flex; align-items:center; gap:12px; font-weight:680; letter-spacing:.02em; }
.cover-body { z-index:1; }
.cover-kicker { display:flex; align-items:center; gap:8px; font-weight:680; color:#d5e5ff; font-size:.9rem; }
.cover-kicker span { width:22px; height:2px; background:#8db6ff; }
.cover-body h1 { margin:13px 0 12px; font-size:clamp(2.4rem,5.25vw,5.1rem); line-height:1.16; letter-spacing:-.03em; }
.cover-body h1 span { color:#9fc3ff; }
.cover-body p { color:#e5efff; margin-bottom:21px; }
.cover-tools { display:flex; gap:8px; flex-wrap:wrap; }
.cover-tools span { display:inline-flex; gap:7px; align-items:center; color:#f0f6ff; border:1px solid #ffffff4d; border-radius:7px; background:#1129513f; padding:6px 8px; font-size:.84rem; }
.login-cover footer { color:#d7e5ff; font-size:.83rem; z-index:1; }
.cover-art { position:absolute; z-index:-1; right:6%; bottom:13%; height:160px; width:225px; opacity:.87; }
.art-book,.art-time,.art-tick { position:absolute; display:grid; place-items:center; color:#e7f0ff; border:1px solid #b6d2ffaa; background:linear-gradient(145deg,#a4c4ff55,#739ffa1f); box-shadow:10px 18px 32px #143e9b60; }
.art-book { right:17px; top:9px; width:145px; height:148px; font-size:4rem; border-radius:26px; transform:rotate(-11deg); }
.art-time { top:-10px; left:12px; width:64px; height:64px; font-size:1.9rem; border-radius:13px; transform:rotate(10deg); }
.art-tick { right:0; bottom:-4px; width:52px; height:52px; font-size:1.7rem; border-radius:12px; transform:rotate(9deg); }
.login-main { display:grid; place-items:center; padding:34px 20px; }
.login-card { width:min(400px,100%); }
.mobile-brand { display:none; }
.login-label { display:inline-flex; align-items:center; gap:6px; color:#2456bb; background:#eef4ff; border-radius:7px; padding:5px 8px; font-size:.82rem; font-weight:650; }
.login-card h2 { margin:9px 0 3px; font-size:2rem; letter-spacing:.025em; }
.login-card>p { color:var(--muted); margin-bottom:27px; }
.login-input { display:flex; align-items:center; gap:9px; padding:0 11px; color:#667eab; border:1px solid #dce5f2; border-radius:9px; height:46px; }
.login-input:focus-within { outline:2px solid #769bf0; outline-offset:2px; }
.login-input input:not([type=checkbox]) { border:0; outline:none; padding:6px 0; margin:0; font-size:.92rem; flex:1; min-width:0; }
.login-input i { display:flex; font-size:1.05rem; }
.reveal { display:grid; place-items:center; border:0; padding:5px; background:none; color:#5f7498; }
.captcha-row { display:grid; grid-template-columns:minmax(0,1fr) 146px; gap:8px; }
.captcha { width:146px; height:46px; padding:0; overflow:hidden; border:1px solid #dce5f2; border-radius:8px; background:#eaf0fb; }
.captcha img { width:100%; height:100%; object-fit:fill; display:block; }
.login-card form>.primary { width:100%; margin-top:5px; height:46px; font-size:.94rem; }
.first-page { min-height:100dvh; display:grid; place-items:center; padding:20px; }
.first-card { width:min(100%,455px); background:#fff; border:1px solid var(--line); border-radius:18px; padding:24px; box-shadow:0 8px 24px #17264217; }
.first-card h1 { margin-top:8px; font-size:1.65rem; }
.first-card p { color:var(--muted); margin:4px 0 16px; }
.first-card .form-error { color:#ad2941; }
.first-card>.button { margin-top:10px; }
@media (max-width:1070px) {
  .server-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .layout { grid-template-columns:214px minmax(0,1fr); }
  .sidebar { width:214px; padding-inline:12px; }
  .sidebar-brand { gap:7px; }
  .sidebar-brand img { width:34px; height:34px; }
  .doc-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .metric-grid { gap:10px; }
  .metric { padding:12px; }
  .metric-head { gap:6px; }
  .metric-icon { width:29px; height:29px; font-size:1rem; }
}
@media (max-width:790px) {
  .layout { display:block; }
  .sidebar { display:none; position:fixed; top:58px; left:0; bottom:0; z-index:4; height:calc(100dvh - 58px); min-height:0; box-shadow:8px 0 25px #0b1f4260; }
  .show-nav .sidebar { display:flex; }
  .topbar { min-height:58px; padding-inline:13px; }
  .menu-button { display:inline-flex !important; }
  .main { padding-top:20px; }
  .hero-art { right:34px; opacity:.75; }
  .detail-grid,.wide-right { grid-template-columns:1fr; }
  .login-layout { grid-template-columns:1fr; }
  .login-cover { display:none; }
  .login-main { min-height:100dvh; }
  .mobile-brand { display:flex; margin-bottom:18px; }
}
@media (max-width:530px) {
  .server-grid { grid-template-columns:1fr; gap:10px; }
  .main { padding-inline:12px; }
  .topbar-right { gap:5px; }
  .profile-text { display:none; }
  .page-head { align-items:flex-start; flex-direction:column; }
  .hero { min-height:191px; padding:19px 16px; }
  .hero-art { display:none; }
  .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-grid,.doc-grid,.form-grid { grid-template-columns:1fr; }
  .panel-head { padding:11px 12px; }
  .panel-body,.toolbar { padding:13px 12px; }
  .panel-head .button { padding:5px 7px; }
  .breadcrumb>span { display:none; }
}
