:root {
  --primary: #6657d9;
  --primary-dark: #5143bd;
  --primary-soft: #f0eefe;
  --ink: #20242c;
  --muted: #697180;
  --muted-2: #9198a5;
  --line: #e7e9ef;
  --surface: #ffffff;
  --canvas: #f5f6f9;
  --success: #198f74;
  --success-soft: #e8f7f2;
  --warning: #c47a23;
  --warning-soft: #fff4e5;
  --danger: #c75151;
  --danger-soft: #fff0f0;
  --shadow: 0 10px 30px rgba(35, 39, 52, .06);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.device-gate { display: none; min-height: 100vh; padding: 24px; place-items: center; background: #f5f4fb; }
.gate-card { width: min(440px, 100%); padding: 36px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.gate-card h1 { margin: 12px 0; font-size: 26px; }
.gate-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.75; }
.gate-meta { display: flex; justify-content: space-between; padding: 14px 0; margin: 24px 0; border-block: 1px solid var(--line); color: var(--muted); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 17px; letter-spacing: .04em; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; position: relative; border-radius: 12px; background: var(--primary); box-shadow: 0 8px 18px rgba(102, 87, 217, .24); }
.brand-mark span { position: absolute; width: 16px; height: 10px; border: 2px solid #fff; border-radius: 10px 10px 4px 10px; transform: translate(-3px, -3px); }
.brand-mark span:last-child { transform: translate(4px, 5px) scale(.72); opacity: .82; }
.brand-mark.large { margin: 0 auto 20px; width: 58px; height: 58px; border-radius: 18px; }

.eyebrow { margin: 0; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(480px, 1.1fr) minmax(430px, .9fr); background: #fff; }
.login-intro { padding: 48px clamp(48px, 7vw, 110px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; background: #f4f2ff; }
.login-intro::before { content: ""; position: absolute; width: 540px; height: 540px; border: 1px solid rgba(102,87,217,.12); border-radius: 50%; right: -210px; bottom: -200px; box-shadow: 0 0 0 70px rgba(102,87,217,.035), 0 0 0 140px rgba(102,87,217,.025); }
.intro-copy { position: relative; max-width: 650px; }
.intro-copy h1 { margin: 18px 0 22px; font-size: clamp(38px, 4.2vw, 62px); line-height: 1.16; letter-spacing: -.04em; }
.intro-copy > p:last-child { max-width: 550px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.privacy-note { position: relative; max-width: 520px; display: flex; gap: 13px; padding: 16px 18px; background: rgba(255,255,255,.72); border: 1px solid rgba(102,87,217,.12); border-radius: 14px; }
.privacy-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.privacy-note strong { color: var(--ink); }
.privacy-icon { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; color: var(--primary); border: 1px solid #cfc9f5; border-radius: 50%; font-weight: 800; }
.login-panel { padding: 48px; display: grid; place-items: center; position: relative; }
.login-card { width: min(420px, 100%); }
.login-card h2 { margin: 12px 0 8px; font-size: 32px; letter-spacing: -.03em; }
.login-card > .muted { margin: 0 0 32px; font-size: 14px; }
.login-card label:not(.check-label) { display: block; margin: 20px 0 8px; font-size: 13px; font-weight: 700; }
.input-wrap { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; transition: .2s ease; background: #fff; }
.input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input-wrap input { width: 100%; height: 48px; padding: 0 14px; border: 0; outline: 0; background: transparent; }
.password-wrap input { padding-right: 0; }
.text-button, .link-button { border: 0; background: transparent; color: var(--primary); font-size: 12px; font-weight: 700; cursor: pointer; }
.text-button { padding: 10px 14px; }
.form-row { display: flex; justify-content: space-between; align-items: center; margin: 18px 0; }
.check-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; cursor: pointer; }
.check-label input { accent-color: var(--primary); }
.form-error { min-height: 18px; margin: -6px 0 8px; color: var(--danger); font-size: 12px; }
.button { min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 750; font-size: 13px; cursor: pointer; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--primary); box-shadow: 0 8px 18px rgba(102,87,217,.18); }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary { background: #fff; border-color: var(--line); color: #545c6a; }
.button.secondary:hover { border-color: #c9c4ef; color: var(--primary); }
.button.full { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; }
.button.small { min-height: 36px; padding: 0 14px; }
.demo-account { margin-top: 18px; padding: 12px; display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); background: var(--canvas); border-radius: 10px; font-size: 11px; }
.demo-account code { color: var(--primary); font-weight: 800; }
.login-footer { position: absolute; bottom: 24px; margin: 0; color: var(--muted-2); font-size: 11px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 24px 16px 18px; color: #e8e6f6; background: #252735; }
.sidebar-brand { padding: 0 10px 24px; color: #fff; }
.sidebar-brand small { color: #989bad; }
.side-nav { margin-top: 14px; }
.nav-label { margin: 22px 12px 8px; color: #75798d; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.nav-item { width: 100%; height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 10px; color: #aeb1c0; background: transparent; cursor: pointer; text-align: left; font-size: 13px; font-weight: 650; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.active { color: #fff; background: var(--primary); }
.nav-icon { width: 20px; text-align: center; font-size: 18px; }
.nav-count { margin-left: auto; min-width: 22px; padding: 2px 7px; text-align: center; color: #c9c7dc; background: rgba(255,255,255,.09); border-radius: 999px; font-size: 10px; }
.nav-item.active .nav-count { color: #fff; background: rgba(255,255,255,.18); }
.sidebar-bottom { margin-top: auto; }
.service-mini { display: flex; gap: 9px; align-items: center; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.035); }
.service-mini strong, .service-mini small { display: block; }
.service-mini strong { font-size: 11px; }
.service-mini small { margin-top: 3px; color: #838799; font-size: 9px; }
.version { margin-top: 14px; color: #686b7b; text-align: center; font-size: 9px; }
.status-dot { width: 8px; height: 8px; display: inline-block; flex: 0 0 auto; border-radius: 50%; }
.status-dot.online { background: #35bd91; box-shadow: 0 0 0 4px rgba(53,189,145,.12); }
.status-dot.warning { background: #e5a34f; box-shadow: 0 0 0 4px rgba(229,163,79,.12); }

.workspace { min-width: 0; }
.topbar { height: 78px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.breadcrumb { margin: 0 0 5px; color: var(--muted-2); font-size: 10px; }
.topbar h1 { margin: 0; font-size: 19px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.live-chip, .privacy-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; color: var(--success); background: var(--success-soft); border-radius: 999px; font-size: 11px; font-weight: 700; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(25,143,116,.35); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(25,143,116,0); } 100% { box-shadow: 0 0 0 0 rgba(25,143,116,0); } }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; position: relative; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; font-size: 18px; }
.notice-dot { width: 6px; height: 6px; position: absolute; top: 7px; right: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--danger); }
.admin-menu { position: relative; }
.admin-trigger { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.admin-trigger strong, .admin-trigger small { display: block; }
.admin-trigger strong { font-size: 12px; }
.admin-trigger small { margin-top: 2px; color: var(--muted-2); font-size: 9px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 10px; font-size: 12px; font-weight: 800; }
.admin-popover { display: none; width: 140px; padding: 6px; position: absolute; top: 48px; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.admin-popover.open { display: grid; }
.admin-popover button { padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; text-align: left; font-size: 12px; cursor: pointer; }
.admin-popover button:hover { background: var(--canvas); color: var(--primary); }

.page-container { padding: 26px 28px 54px; }
.page { display: none; }
.page.active { display: block; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } }
.page-heading { min-height: 54px; margin-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.page-heading h2 { margin: 0 0 7px; font-size: 22px; letter-spacing: -.02em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.date-chip { display: flex; gap: 12px; align-items: center; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 11px; }
.date-chip span { color: var(--muted-2); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card, .panel, .service-card { background: var(--surface); border: 1px solid #eceef3; border-radius: var(--radius); box-shadow: var(--shadow); }
.metric-card { padding: 18px 20px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 9px; font-size: 10px; font-weight: 800; }
.metric-card > strong { display: block; margin: 12px 0 6px; font-size: 28px; letter-spacing: -.03em; }
.metric-card p { margin: 0; color: var(--muted-2); font-size: 10px; }
.metric-card b { margin-right: 5px; }
.up { color: var(--success); }.neutral { color: var(--primary); }
.overview-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr); gap: 14px; }
.lower-grid { grid-template-columns: 1fr 1fr; }
.panel { padding: 18px; }
.panel-head { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.panel-head h3 { margin: 0 0 5px; font-size: 14px; }
.panel-head p { margin: 0; color: var(--muted-2); font-size: 10px; }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 10px; }
.legend i { width: 16px; height: 2px; display: inline-block; margin-right: 5px; vertical-align: middle; }.line-indigo { background: var(--primary); }.line-green { background: var(--success); }
.chart { height: 235px; position: relative; padding: 0 0 22px 35px; }
.chart-y { position: absolute; left: 0; top: 0; bottom: 24px; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted-2); font-size: 9px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.grid-lines line { stroke: #eceef2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.area { fill: url(#areaPurple); }
.line { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; }.primary-line { stroke: var(--primary); }.green-line { stroke: var(--success); stroke-dasharray: 5 4; }
.chart-x { position: absolute; left: 35px; right: 0; bottom: 0; display: flex; justify-content: space-between; color: var(--muted-2); font-size: 9px; }
.health-score { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.score-ring { width: 82px; height: 82px; display: grid; place-content: center; position: relative; border-radius: 50%; background: conic-gradient(var(--success) 0 96%, #e7eee9 96%); }
.score-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.score-ring span, .score-ring small { position: relative; text-align: center; }.score-ring span { font-size: 24px; font-weight: 850; }.score-ring small { color: var(--muted-2); font-size: 8px; }
.health-score > div:last-child strong { font-size: 14px; }.health-score > div:last-child p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.health-list { margin-top: 8px; }
.health-list > div { padding: 10px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f0f1f4; font-size: 10px; }
.health-list > div:last-child { border-bottom: 0; }.health-list span { display: flex; align-items: center; gap: 9px; color: var(--muted); }.health-list strong { font-size: 10px; }
.compact-list { display: grid; gap: 5px; }
.compact-item { padding: 10px 4px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid #f0f1f4; cursor: pointer; }
.compact-item:last-child { border: 0; }.compact-item:hover { background: #fbfbfd; }
.compact-icon, .type-icon { display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 800; }
.compact-icon { width: 34px; height: 34px; }.compact-item strong, .compact-item small { display: block; }.compact-item strong { font-size: 11px; }.compact-item small { margin-top: 4px; color: var(--muted-2); font-size: 9px; }.compact-time { color: var(--muted-2); font-size: 9px; }

.segmented { margin-bottom: 14px; padding: 4px; display: inline-flex; gap: 3px; background: #eaeaf0; border-radius: 10px; }
.segmented button { height: 34px; padding: 0 14px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; cursor: pointer; }
.segmented button.active { color: var(--primary); background: #fff; box-shadow: 0 2px 8px rgba(30,34,45,.08); font-weight: 750; }.segmented span { margin-left: 4px; color: var(--muted-2); }
.table-panel { padding: 0; overflow: hidden; }
.table-toolbar { padding: 14px 16px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.search-box { min-width: 240px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.search-box span { color: var(--muted-2); }.search-box input { width: 100%; height: 36px; border: 0; outline: 0; background: transparent; font-size: 11px; }
.table-toolbar .search-box { flex: 1; max-width: 360px; }
select { height: 36px; padding: 0 32px 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: 11px; outline: 0; }
.table-toolbar .button:last-child { margin-left: auto; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.data-table th { padding: 11px 16px; color: var(--muted-2); background: #fafafd; text-align: left; font-size: 9px; font-weight: 750; }
.data-table td { padding: 13px 16px; border-top: 1px solid #f0f1f4; color: var(--muted); font-size: 10px; vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfbfe; }.data-table td:first-child { color: var(--ink); font-weight: 700; }
.event-cell { display: flex; align-items: center; gap: 10px; }.type-icon { width: 32px; height: 32px; flex: 0 0 auto; }
.event-cell strong, .event-cell small { display: block; }.event-cell small { margin-top: 3px; color: var(--muted-2); font-weight: 400; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 750; }
.badge.recommend { color: var(--primary); background: var(--primary-soft); }.badge.virtual { color: #28718a; background: #e7f5f8; }.badge.notice { color: var(--warning); background: var(--warning-soft); }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 700; }.state::before { content:""; width:6px; height:6px; border-radius:50%; }.state.running { color: var(--success); }.state.running::before { background: var(--success); }.state.scheduled { color: var(--warning); }.state.scheduled::before { background: var(--warning); }.state.ended { color: var(--muted-2); }.state.ended::before { background: var(--muted-2); }
.row-action { border: 0; background: transparent; color: var(--primary); cursor: pointer; font-size: 16px; }
.table-footer { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 10px; }
.pager { display: flex; gap: 4px; }.pager button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); cursor: pointer; }.pager button.active { color: #fff; background: var(--primary); border-color: var(--primary); }.pager button:disabled { opacity: .45; }

.personal-layout { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 14px; }
.user-panel { padding: 14px; }.user-panel .search-box { min-width: 0; }
.user-list { margin-top: 12px; display: grid; gap: 4px; max-height: calc(100vh - 238px); overflow: auto; }
.user-item { width: 100%; padding: 10px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.user-item:hover { background: var(--canvas); }.user-item.active { background: var(--primary-soft); }.user-item .avatar { width: 34px; height: 34px; }.user-item strong, .user-item small { display: block; }.user-item strong { font-size: 11px; }.user-item small { margin-top: 3px; color: var(--muted-2); font-size: 9px; }.user-item > small { margin: 0; }
.behavior-panel { min-height: 620px; }
.profile-summary { padding-bottom: 16px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.profile-summary .avatar { width: 48px; height: 48px; border-radius: 14px; font-size: 16px; }.profile-main { flex: 1; }.profile-main h3 { margin: 0 0 5px; font-size: 15px; }.profile-main p { margin: 0; color: var(--muted); font-size: 10px; }.profile-kpis { display: flex; gap: 24px; }.profile-kpis div { text-align: right; }.profile-kpis strong, .profile-kpis span { display: block; }.profile-kpis strong { font-size: 15px; }.profile-kpis span { margin-top: 3px; color: var(--muted-2); font-size: 9px; }
.behavior-toolbar { padding: 14px 0; display: flex; align-items: center; justify-content: space-between; }
.filter-chips { display: flex; gap: 6px; }.filter-chips button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 10px; cursor: pointer; }.filter-chips button.active { color: var(--primary); border-color: #cbc5f3; background: var(--primary-soft); font-weight: 750; }
.timeline { display: grid; }.timeline-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; position: relative; padding: 12px 0; }.timeline-item:not(:last-child)::after { content:""; width: 1px; position:absolute; left:20px; top:48px; bottom:-8px; background: var(--line); }.timeline-icon { width: 40px; height: 40px; display:grid; place-items:center; z-index:1; border-radius:12px; background: var(--primary-soft); color:var(--primary); font-size:10px; font-weight:800; }.timeline-copy strong { font-size:11px; }.timeline-copy p { margin:5px 0 0; color:var(--muted); font-size:10px; line-height:1.6; }.timeline-meta { color:var(--muted-2); font-size:9px; text-align:right; }.timeline-meta button { display:block; margin:6px 0 0 auto; border:0; background:transparent; color:var(--primary); font-size:9px; cursor:pointer; }

.service-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:14px; }
.service-card { padding:16px; }.service-head { display:flex; justify-content:space-between; align-items:center; }.service-head span:first-child { font-size:11px; font-weight:750; }.service-card > strong { display:block; margin:16px 0 4px; font-size:20px; }.service-card > p { margin:0; color:var(--muted-2); font-size:9px; }.service-bar { height:4px; margin-top:14px; overflow:hidden; border-radius:99px; background:#edf0f1; }.service-bar span { height:100%; display:block; border-radius:inherit; background:var(--success); }
.system-layout { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr); gap:14px; }.save-state { color:var(--success); font-size:9px; }
.setting-list { border-top:1px solid var(--line); }.setting-row { min-height:78px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); }.setting-row strong { display:block; font-size:11px; }.setting-row p { margin:5px 0 0; color:var(--muted); font-size:9px; }.switch input { display:none; }.switch span { width:38px; height:22px; display:block; position:relative; border-radius:99px; background:#d8dbe2; cursor:pointer; transition:.2s; }.switch span::after { content:""; width:16px; height:16px; position:absolute; left:3px; top:3px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.16); transition:.2s; }.switch input:checked + span { background:var(--primary); }.switch input:checked + span::after { transform:translateX(16px); }
.range-control { min-width:210px; display:flex; align-items:center; gap:10px; }.range-control input { width:150px; accent-color:var(--primary); }.range-control output { width:45px; color:var(--primary); font-size:10px; font-weight:750; }
.setting-actions { padding-top:16px; display:flex; justify-content:flex-end; gap:8px; }
.audit-summary { display:grid; grid-template-columns:1fr; gap:8px; }.audit-summary div { padding:10px 12px; display:flex; justify-content:space-between; border-radius:9px; background:var(--canvas); font-size:10px; }.audit-summary span { color:var(--muted); }
.audit-list { margin:14px 0; display:grid; gap:12px; }.audit-list > div { display:flex; gap:10px; }.audit-dot { width:7px; height:7px; margin-top:5px; flex:0 0 auto; border-radius:50%; background:var(--primary); box-shadow:0 0 0 4px var(--primary-soft); }.audit-list p { margin:0; }.audit-list strong, .audit-list small { display:block; }.audit-list strong { font-size:10px; }.audit-list small { margin-top:4px; color:var(--muted-2); font-size:8px; }

.drawer { width:min(440px, 92vw); position:fixed; z-index:60; top:0; bottom:0; right:0; padding:22px; background:#fff; box-shadow:-20px 0 50px rgba(26,30,40,.16); transform:translateX(105%); transition:.24s ease; overflow:auto; }.drawer.open { transform:none; }.drawer-head { display:flex; justify-content:space-between; align-items:flex-start; padding-bottom:18px; border-bottom:1px solid var(--line); }.drawer-head h2 { margin:7px 0 0; font-size:20px; }.drawer-body { padding-top:18px; }.backdrop { display:none; position:fixed; z-index:50; inset:0; background:rgba(25,27,35,.28); }.backdrop.open { display:block; }.detail-section { padding:15px 0; border-bottom:1px solid var(--line); }.detail-section:last-child { border:0; }.detail-section h4 { margin:0 0 10px; font-size:11px; }.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.detail-field { padding:10px; border-radius:9px; background:var(--canvas); }.detail-field span, .detail-field strong { display:block; }.detail-field span { color:var(--muted-2); font-size:8px; }.detail-field strong { margin-top:5px; font-size:10px; }.detail-section p { margin:0; color:var(--muted); font-size:10px; line-height:1.75; }
dialog { width:min(560px,92vw); padding:0; border:0; border-radius:16px; box-shadow:0 24px 60px rgba(28,31,40,.2); } dialog::backdrop { background:rgba(25,27,35,.4); }.dialog-head { display:flex; justify-content:space-between; align-items:flex-start; padding:20px 22px 16px; border-bottom:1px solid var(--line); }.dialog-head h2 { margin:7px 0 0; font-size:19px; } dialog form > label, .dialog-grid label { display:grid; gap:7px; color:var(--ink); font-size:10px; font-weight:750; } dialog form > label { margin:18px 22px; }.dialog-grid { margin:18px 22px; display:grid; grid-template-columns:1fr 1fr; gap:12px; }.dialog-grid label { margin:0; } dialog input, dialog textarea, dialog select { width:100%; padding:11px 12px; border:1px solid var(--line); border-radius:9px; outline:0; color:var(--ink); background:#fff; font-size:11px; } dialog textarea { resize:vertical; } dialog input:focus, dialog textarea:focus, dialog select:focus { border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-soft); }.dialog-actions { padding:14px 22px 20px; display:flex; justify-content:flex-end; gap:8px; }
.toast { position:fixed; z-index:100; left:50%; bottom:28px; padding:11px 16px; color:#fff; background:#292c35; border-radius:9px; box-shadow:var(--shadow); transform:translate(-50%,20px); opacity:0; pointer-events:none; transition:.2s; font-size:11px; }.toast.show { opacity:1; transform:translate(-50%,0); }

@media (max-width: 1180px) {
  .metric-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid, .lower-grid, .system-layout { grid-template-columns: 1fr; }
  .login-intro { padding-inline: 48px; }
}

@media (max-width: 1023px), (pointer: coarse) and (max-width: 1100px) {
  .device-gate { display: grid; }
  .login-shell, .app-shell { display: none !important; }
}

