:root {
  --ink: #0b1b2b; --ink-2: #12283d; --ink-3: #1b3a55;
  --accent: #2f6bff; --accent-soft: #eaf0ff; --teal: #0f9d8f; --teal-soft: #e6f6f3;
  --gold: #c9a227; --bg: #f3f6fa; --card: #ffffff; --text: #152230;
  --muted: #66788c; --muted-2: #8a9aab; --line: #e3e9f1; --line-strong: #d3dce8;
  --danger: #d34a4a; --danger-soft: #fdeeee; --success: #0f7a5a; --success-soft: #e6f5ef;
  --warn: #a8700a; --warn-soft: #fdf3df;
  --shadow-sm: 0 1px 2px rgba(15, 30, 46, 0.05); --shadow-md: 0 12px 30px rgba(15, 30, 46, 0.08);
  --radius: 14px; --sidebar-w: 248px;
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --mono: "Cascadia Mono", Consolas, "Courier New", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* shell */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); padding: 22px 16px 18px;
  background: linear-gradient(180deg, #0a1827 0%, #0e2237 58%, #102a42 100%); color: #dbe6f2;
  display: flex; flex-direction: column; z-index: 30; }
.sidebar::after { content: ""; position: absolute; inset: auto 0 0 0; height: 220px;
  background: radial-gradient(120% 80% at 20% 100%, rgba(47, 107, 255, 0.22), transparent 70%); pointer-events: none; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 20px; position: relative; z-index: 1; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, #2f6bff, #6a9bff);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: -0.5px; color: #fff;
  box-shadow: 0 6px 16px rgba(47, 107, 255, 0.35); }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: 0.2px; color: #fff; }
.brand-sub { font-size: 11px; color: #8fa6bd; letter-spacing: 0.6px; text-transform: uppercase; }
.sidebar-rule { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 4px 6px 16px; }
.nav-label { font-size: 10px; letter-spacing: 1.6px; color: #6f89a3; text-transform: uppercase; padding: 0 10px; margin: 14px 0 6px; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px;
  color: #b9c9da; font-size: 13.5px; margin-bottom: 3px; transition: background 0.15s ease, color 0.15s ease;
  position: relative; z-index: 1; }
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(47, 107, 255, 0.28), rgba(47, 107, 255, 0.08));
  color: #fff; box-shadow: inset 0 0 0 1px rgba(94, 140, 255, 0.28); }
.nav-item.active::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: #6a9bff; }
.nav-item svg { width: 17px; height: 17px; flex: none; opacity: 0.9; }
.nav-item .nav-badge { margin-left: auto; font-size: 10px; background: rgba(255, 255, 255, 0.1); padding: 1px 7px; border-radius: 999px; color: #cfe0f2; }
.sidebar-footer { margin-top: auto; position: relative; z-index: 1; }
.sidebar-note { font-size: 11px; line-height: 1.6; color: #7d94ab; border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px; padding: 10px 12px; background: rgba(255, 255, 255, 0.03); }
.sidebar-note b { color: #b8cde2; font-weight: 600; }
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 66px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 30px; gap: 18px;
  position: sticky; top: 0; z-index: 20; }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.crumb b { color: var(--text); font-weight: 600; }
.crumb .sep { color: #c2ccd8; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.role-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--accent-soft); color: #2453c9; border: 1px solid #d8e3ff; }
.role-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.user-chip { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.user-chip .avatar { width: 34px; height: 34px; border-radius: 50%; }
.user-chip .meta { line-height: 1.25; }
.user-chip .meta b { display: block; font-size: 13px; font-weight: 600; }
.user-chip .meta span { font-size: 11px; color: var(--muted-2); }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #dfe9ff, #eef3ff); color: #2b55bd; font-weight: 700; font-size: 13px; flex: none; }
.avatar.gold { background: linear-gradient(135deg, #f7edd0, #fdf7e6); color: #8d6d13; }
.avatar.teal { background: linear-gradient(135deg, #d9f2ee, #edf9f6); color: #0b6f64; }
.content { padding: 30px; max-width: 1360px; width: 100%; margin: 0 auto; flex: 1; }
.page-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .eyebrow { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.page-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.25; }
.page-head .desc { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 760px; }
.page-head .spacer { flex: 1; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.card-head h3 { font-size: 15px; font-weight: 650; }
.card-head .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-head .spacer { flex: 1; }
.card-body { padding: 22px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 16px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.kpi::after { content: ""; position: absolute; right: -26px; top: -26px; width: 92px; height: 92px; border-radius: 50%; background: var(--accent-soft); opacity: 0.7; }
.kpi .label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.2px; }
.kpi .value { font-size: 34px; font-weight: 750; letter-spacing: -1px; margin: 4px 0 2px; line-height: 1.1; position: relative; }
.kpi .value small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.kpi .meta { font-size: 11.5px; color: var(--muted-2); display: flex; align-items: center; gap: 6px; position: relative; }
.kpi .meta .up { color: var(--success); font-weight: 600; }
.kpi.teal::after { background: var(--teal-soft); }
.kpi.gold::after { background: #fbf1d8; }
.kpi.ink::after { background: #e8eef6; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.table th { text-align: left; font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted-2);
  font-weight: 650; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #f8fafd; white-space: nowrap; }
table.table td { padding: 13px 14px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
table.table tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover { background: #fafcff; }
table.table .strong { font-weight: 600; }
table.table .muted { color: var(--muted); }
table.table .num { font-variant-numeric: tabular-nums; font-weight: 650; }
table.table .right { text-align: right; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px;
  background: #eef3f9; color: #3d5266; font-size: 11px; font-family: var(--mono); white-space: nowrap; }
.chip.blue { background: var(--accent-soft); color: #2453c9; }
.chip.teal { background: var(--teal-soft); color: #0b6f64; }
.chip.gold { background: var(--warn-soft); color: #8a5f07; }
.chip + .chip { margin-left: 4px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--success); }
.status.warn { color: var(--warn); }
.status.off { color: var(--muted-2); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px;
  font-weight: 650; letter-spacing: 0.2px; background: #eef3f9; color: #3d5266; white-space: nowrap; }
.badge.blue { background: var(--accent-soft); color: #2453c9; }
.badge.teal { background: var(--teal-soft); color: #0b6f64; }
.badge.gold { background: var(--warn-soft); color: #8a5f07; }
.badge.danger { background: var(--danger-soft); color: #a83232; }
.badge.success { background: var(--success-soft); color: var(--success); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px;
  border-radius: 9px; border: 1px solid transparent; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.15s ease; white-space: nowrap; background: #fff; color: var(--text); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 14px rgba(47, 107, 255, 0.24); }
.btn-primary:hover:not(:disabled) { background: #2459e0; transform: translateY(-1px); }
.btn-outline { border-color: var(--line-strong); color: #2c3e50; }
.btn-outline:hover:not(:disabled) { border-color: #b9c6d6; background: #f8fafd; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: #eef3f9; color: var(--text); }
.btn-danger { background: var(--danger-soft); color: #a83232; border-color: #f5d6d6; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 0; }

/* forms */
.field { margin-bottom: 15px; }
.field label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: #2a3b4d; }
.field label .req { color: var(--danger); }
.field .helper { font-size: 11.5px; color: var(--muted-2); margin-top: 5px; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 12px;
  background: #fff; color: var(--text); outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.input, .select { height: 40px; }
.textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12); }
.input::placeholder, .textarea::placeholder { color: #9aa9b8; }
.field-row { display: flex; align-items: center; justify-content: space-between; }
.counter { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--danger); font-weight: 600; }
.form-error { display: none; padding: 10px 12px; border-radius: 9px; margin-bottom: 14px;
  background: var(--danger-soft); border: 1px solid #f3cccc; color: #a83232; font-size: 12.5px; }
.form-error.show { display: block; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.toolbar .input, .toolbar .select { width: auto; min-width: 170px; }
.toolbar .search { min-width: 240px; }

/* announcements */
.ann-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.composer { position: sticky; top: 88px; }
.recipient-box { background: #f7f9fd; border: 1px dashed #cfdbeb; border-radius: 10px; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.recipient-box .num { font-size: 24px; font-weight: 750; color: var(--accent); letter-spacing: -0.5px; }
.recipient-box .txt { font-size: 12px; color: var(--muted); line-height: 1.4; }
.ann-list { display: flex; flex-direction: column; }
.ann-item { padding: 18px 22px; border-bottom: 1px solid #eef2f7; }
.ann-item:last-child { border-bottom: 0; }
.ann-item .top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.ann-item h4 { font-size: 14.5px; font-weight: 650; margin-bottom: 5px; }
.ann-item p { font-size: 12.5px; color: #4c5f73; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ann-item .foot { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 11.5px; color: var(--muted-2); }
.ann-item .foot .who { display: inline-flex; align-items: center; gap: 6px; color: #52677c; }
.empty { padding: 46px 22px; text-align: center; color: var(--muted); }
.empty .icon { width: 44px; height: 44px; border-radius: 12px; background: #eef3f9; display: grid; place-items: center; margin: 0 auto 12px; color: #8ca0b5; }
.empty h4 { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.empty p { font-size: 12.5px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.pager .info { font-size: 12px; color: var(--muted); }
.pager .controls { display: flex; gap: 6px; }
.page-btn { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; color: #43566a; font-size: 12px; cursor: pointer; }
.page-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* banners */
.banner { display: flex; align-items: flex-start; gap: 11px; padding: 13px 16px; border-radius: 11px;
  font-size: 12.5px; line-height: 1.65; background: #f2f7ff; border: 1px solid #dbe7fb; color: #2c4a75; margin-bottom: 18px; }
.banner svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.banner.warn { background: #fffaf0; border-color: #f3e3bd; color: #7c5a10; }
.banner.danger { background: var(--danger-soft); border-color: #f3cccc; color: #9a3030; }
.banner b { font-weight: 650; }

/* permission check */
.check-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.check-stat { border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; background: #fbfcfe; }
.check-stat .n { font-size: 24px; font-weight: 750; line-height: 1.1; }
.check-stat .l { font-size: 11px; color: var(--muted); letter-spacing: 0.3px; }
.check-stat.pass .n { color: var(--success); }
.check-stat.fail .n { color: var(--danger); }
.check-stat.info .n { color: var(--ink-3); }
.check-table td { font-size: 12.5px; }
.check-table .req-path { font-family: var(--mono); font-size: 11.5px; color: #3b5268; }
.check-table .method { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: #fff; padding: 1px 5px; border-radius: 4px; background: #64748b; margin-right: 5px; }
.check-table .method.post { background: #b7791f; }
.check-table .method.get { background: #2b6cb0; }
.check-table .method.patch { background: #6b46c1; }
.result { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; font-size: 12px; }
.result.pass { color: var(--success); }
.result.fail { color: var(--danger); }
.result .ic { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 9px; }
.result.pass .ic { background: var(--success); }
.result.fail .ic { background: var(--danger); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-step { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9d5e3; background: #fff; display: grid; place-items: center; font-size: 9px; color: #708399; font-weight: 700; }
.tl-step.done .tl-dot { border-color: var(--success); background: var(--success); color: #fff; }
.tl-step.fail .tl-dot { border-color: var(--danger); background: var(--danger); color: #fff; }
.tl-line { width: 2px; flex: 1; background: #e3e9f1; min-height: 12px; }
.tl-body { padding-bottom: 16px; }
.tl-body .t { font-size: 12.5px; font-weight: 650; }
.tl-body .d { font-size: 11.5px; color: var(--muted); margin-top: 2px; font-family: var(--mono); }

/* toast */
.toast-stack { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 9px; z-index: 100; }
.toast { min-width: 260px; max-width: 380px; background: #10304a; color: #f2f7fc; border-radius: 10px; padding: 12px 14px;
  font-size: 12.5px; box-shadow: 0 16px 34px rgba(8, 20, 32, 0.28); display: flex; gap: 9px; animation: toast-in 0.2s ease; }
.toast .ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; flex: none; background: var(--accent); color: #fff; margin-top: 1px; }
.toast.success .ic { background: var(--success); }
.toast.error .ic { background: var(--danger); }
.toast b { display: block; font-weight: 650; margin-bottom: 1px; }
.toast span { color: #bcd0e2; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.login-brand { position: relative; overflow: hidden; color: #eaf2fb; padding: 48px 56px;
  background: radial-gradient(120% 100% at 0% 0%, #163a5c 0%, #0b1c2d 48%, #081522 100%); display: flex; flex-direction: column; }
.login-brand::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(180deg, #000 20%, transparent 90%); }
.login-brand::after { content: ""; position: absolute; width: 560px; height: 560px; right: -220px; bottom: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.35), transparent 62%); }
.login-brand .inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.login-logo { display: flex; align-items: center; gap: 12px; }
.login-logo .mark { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, #2f6bff, #6a9bff); display: grid; place-items: center; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.login-logo b { font-size: 16px; letter-spacing: 0.4px; display: block; color: #fff; }
.login-logo span { font-size: 10.5px; letter-spacing: 2.2px; color: #86a0ba; text-transform: uppercase; }
.login-hero { margin-top: auto; margin-bottom: auto; padding: 60px 0 40px; }
.login-hero .kicker { font-size: 11px; letter-spacing: 2.6px; text-transform: uppercase; color: #7fa6cd; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.login-hero .kicker::before { content: ""; width: 30px; height: 1px; background: #4d7aa6; }
.login-hero h1 { font-size: 44px; line-height: 1.18; letter-spacing: -1.2px; font-weight: 720; color: #fff; }
.login-hero h1 em { font-style: normal; color: #7fa9ff; }
.login-hero p { margin-top: 18px; max-width: 460px; font-size: 13.5px; line-height: 1.9; color: #9fb6cc; }
.login-meta { display: flex; gap: 26px; margin-top: 32px; }
.login-meta .m { font-size: 11px; color: #8aa3bb; letter-spacing: 0.4px; }
.login-meta .m b { display: block; font-size: 13px; color: #dce9f6; font-weight: 600; margin-top: 3px; letter-spacing: 0; }
.login-foot { font-size: 11px; color: #6c839a; display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 16px; }
.login-side { display: flex; align-items: center; justify-content: center; padding: 40px; background: #f6f8fb; position: relative; }
.login-card { width: 100%; max-width: 410px; }
.login-card .head { margin-bottom: 22px; }
.login-card .head .eyebrow { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.login-card .head h2 { font-size: 26px; letter-spacing: -0.4px; margin: 6px 0 6px; }
.login-card .head p { color: var(--muted); font-size: 12.5px; }
.login-card .panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-md); }
.demo-box { margin-top: 20px; }
.demo-box .title { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted-2); font-weight: 650; margin-bottom: 8px; }
.demo-box .title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-account { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; transition: all 0.14s ease; width: 100%; background: none; text-align: left; }
.demo-account:hover { background: #f4f7fc; border-color: #e2e9f3; }
.demo-account .avatar { width: 34px; height: 34px; border-radius: 9px; font-size: 12px; }
.demo-account .info { flex: 1; min-width: 0; }
.demo-account .info b { display: block; font-size: 12.5px; font-weight: 650; }
.demo-account .info span { display: block; font-size: 11px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-account .go { font-size: 10.5px; color: var(--accent); font-weight: 650; }
.login-note { margin-top: 16px; font-size: 11px; color: var(--muted-2); text-align: center; line-height: 1.7; }

/* misc */
.mono { font-family: var(--mono); font-size: 11.5px; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.loading { padding: 44px; text-align: center; color: var(--muted-2); font-size: 12.5px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #dbe4ef; border-top-color: var(--accent); margin: 0 auto 10px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #eef2f7 25%, #f7f9fc 37%, #eef2f7 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.role-explainer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.role-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fbfcfe; }
.role-card b { font-size: 12.5px; }
.role-card p { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.6; }

/* dashboard extras */
.bar-track { height: 7px; background: #eef3f9; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3f79ff, #7fa9ff); }
.quick-list { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.quick-action { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); background: #fbfcfe; transition: all 0.15s ease; }
.quick-action:hover { border-color: #c9d8ee; background: #f4f8ff; transform: translateY(-1px); }
.quick-action .qa-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); flex: none; }
.quick-action .qa-icon svg { width: 17px; height: 17px; }
.quick-action b { display: block; font-size: 12.5px; font-weight: 650; }
.quick-action small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.mini-ann { padding: 13px 18px; border-bottom: 1px solid #eef2f7; }
.mini-ann:last-child { border-bottom: 0; }
.mini-ann .top { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.mini-ann b { font-size: 12.5px; font-weight: 650; display: block; }
.mini-ann p { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.55; }
.note-list { display: flex; flex-direction: column; gap: 12px; }
.note-list div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; font-size: 11.5px; line-height: 1.65; }
.note-list b { color: #2f4358; font-weight: 650; }
.note-list span { color: var(--muted); }

/* participants extras */
.summary-strip { display: flex; align-items: center; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8fafd; padding: 0 8px; }
.strip-item { display: flex; align-items: baseline; gap: 6px; padding: 11px 14px; border-right: 1px solid #e8eef5; }
.strip-item:last-child { border-right: 0; }
.strip-item span { font-size: 11px; color: var(--muted-2); }
.strip-item b { font-size: 15px; font-weight: 700; color: #1c2f42; }
.strip-item em { font-style: normal; font-size: 10.5px; color: var(--muted-2); }
.person { display: flex; align-items: center; gap: 10px; }
.person .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.footnote { font-size: 11px; color: var(--muted-2); line-height: 1.7; margin-top: 12px; }
.forbidden-wrap { text-align: center; padding: 26px 16px; }
.forbidden-code { font-size: 58px; font-weight: 800; letter-spacing: -3px; color: #d9e2ee; line-height: 1; }
.forbidden-wrap h3 { font-size: 18px; margin: 10px 0 6px; }
.forbidden-wrap p { font-size: 12.5px; color: var(--muted); line-height: 1.8; max-width: 560px; margin: 0 auto; }
.api-sample { margin: 18px auto 0; max-width: 520px; background: #0e1e2e; border-radius: 10px; padding: 14px 16px; text-align: left; }
.api-sample .line { display: flex; gap: 12px; font-family: var(--mono); font-size: 11.5px; line-height: 1.9; }
.api-sample .k { color: #7f9cba; min-width: 62px; }
.api-sample .v { color: #d9e6f3; word-break: break-all; }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ann-layout { grid-template-columns: 1fr; }
  .composer { position: static; }
  .summary-strip { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .content, .topbar { padding-left: 18px; padding-right: 18px; }
}
