/* 主题:照参考 src/style.css 暗色金色设计系统全套(附录 A1) */
:root {
  font-family: 'JetBrains Mono', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #f8fafc; background: #0f172a; font-synthesis: none; text-rendering: optimizeLegibility;
  --gold: #f59e0b; --purple: #8b5cf6; --green: #34d399; --muted: #94a3b8; --line: #334155; --panel: #222735;
  --el-color-primary: #f59e0b; --el-color-primary-light-3: #fbbf24; --el-color-primary-light-5: #9c671d;
  --el-color-primary-light-7: #60471f; --el-color-primary-light-8: #493a24; --el-color-primary-light-9: #302c25;
  --el-color-primary-dark-2: #d97706; --el-color-success: #34d399; --el-color-danger: #ef4444; --el-color-info: #94a3b8;
  --el-bg-color: #222735; --el-bg-color-page: #0f172a; --el-bg-color-overlay: #222735;
  --el-fill-color-blank: #131b28; --el-fill-color-light: #272f42; --el-fill-color-lighter: #293244; --el-fill-color-dark: #161c29;
  --el-text-color-primary: #f8fafc; --el-text-color-regular: #cbd5e1; --el-text-color-secondary: #94a3b8; --el-text-color-placeholder: #738399;
  --el-border-color: #334155; --el-border-color-light: #334155; --el-border-color-lighter: #303b4c; --el-border-color-extra-light: #303b4c;
  --el-border-radius-base: 6px;
  --el-font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; } body { margin: 0; font-size: 14px; }
a { color: inherit; text-decoration: none; } h1,h2,h3,h4,p { margin: 0; }
svg { flex-shrink: 0; vertical-align: middle; }
::selection { background: #f59e0b45; color: #fff; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { border-radius: 9px; background: #445269; }
.gold { color: var(--gold); } .muted { color: var(--muted); } .green { color: var(--green); } .purple-text { color: var(--purple); }
.eyebrow { font-size: 10px; letter-spacing: 2px; line-height: 1.7; }
.el-button { font-family: Arial, sans-serif; font-weight: 500; }
.el-button > span { display: inline-flex; align-items: center; gap: 7px; }
.el-button--primary:not(.is-plain):not(.is-link):not(.is-text) { color: #1e293b; font-weight: 600; }
.el-button--primary.is-plain { --el-button-bg-color: #f59e0b0d; --el-button-border-color: #8b6327; --el-button-text-color: #f59e0b; }
.el-button--danger.is-plain { --el-button-bg-color: #ef44440d; --el-button-border-color: #8b4343; --el-button-text-color: #f87171; }
.el-input__wrapper, .el-select__wrapper, .el-textarea__inner { border-radius: 6px; background: #141414; }
.el-input__wrapper.is-focus, .el-select__wrapper.is-focused { box-shadow: 0 0 0 1px var(--gold) inset, 0 0 12px #f59e0b18 !important; }
.el-dialog { border: 1px solid var(--line); border-radius: 12px; padding: 24px; max-width: calc(100vw - 32px); }
.el-dialog__title { font-size: 17px; font-weight: 600; }
.el-dialog__header { padding-bottom: 18px; } .el-dialog__body { padding: 0; }
.el-overlay { background: #050914bd; backdrop-filter: blur(4px); }
.el-message-box { max-width: calc(100vw - 32px); background: #222735; border-color: #334155; }
.el-message-box__content { line-height: 1.9; }
.el-loading-mask { background: #0f172abf; border-radius: 10px; }
.el-form-item__label { font-size: 12px; }
.el-pagination { --el-pagination-button-bg-color: #141414; --el-pagination-bg-color: #141414; --el-pagination-hover-color: #f59e0b; }
.el-pagination .el-pager li { border-radius: 2px; background: #141414; }
.el-pagination .el-pagination__total { color: #cbd5e1; font-size: 14px; margin-right: 16px; }
.el-table { --el-table-bg-color: transparent; --el-table-tr-bg-color: transparent; --el-table-header-bg-color: #1b2231;
  --el-table-row-hover-bg-color: #293244; --el-table-border-color: #33415585; --el-table-text-color: #cbd5e1;
  --el-table-header-text-color: #94a3b8; font-size: 12px; }
.el-table th.el-table__cell { font-weight: 400; padding: 12px 0; }
.el-table td.el-table__cell { padding: 15px 0; }
.el-table__inner-wrapper:before { display: none; }
.icon-button { border: 0; background: transparent; color: #94a3b8; width: 32px; height: 32px; display: inline-flex;
  justify-content: center; align-items: center; border-radius: 6px; transition: color .15s, background .15s; cursor: pointer; }
.icon-button:hover { color: #f59e0b; background: #f59e0b12; }
.icon-button.round { border: 1px solid #3d4657; border-radius: 50%; background: #131b28; }
.icon-button.round svg { width: 15px; }
.text-button { border: 0; background: none; color: var(--gold); padding: 0; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.text-button:hover { color: #fbbf24; }
.brand-mark { display: inline-block; width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b 8%, #c7956a 46%, #8b5cf6 100%); box-shadow: 0 0 18px #f59e0b20; }
.status-dot { width: 6px; height: 6px; display: inline-block; flex-shrink: 0; vertical-align: middle; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 8px #34d39930; }
.status-dot.inactive { background: #64748b; box-shadow: none; }
.demo-tag, .local-tag, .count-badge { display: inline-flex; align-items: center; white-space: nowrap; font-size: 10px; line-height: 19px;
  letter-spacing: .6px; border: 1px solid #f59e0b44; padding: 0 7px; border-radius: 3px; color: #fbbf24; background: #f59e0b0c; }
.demo-tag.subtle, .count-badge { color: #94a3b8; background: #272f42; border-color: #374358; }
.local-tag { color: #34d399; background: #34d3990d; border-color: #34d39955; }
.count-badge { line-height: 21px; padding: 0 10px; letter-spacing: 2px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 5px;
  background: #34d3990e; color: #6ee7b7; font-size: 11px; white-space: nowrap; }
.status-pill.inactive { color: #94a3b8; background: #94a3b810; }

.console-shell { height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 224px; display: flex; flex-direction: column;
  background: #0b1120; border-right: 1px solid #334155; z-index: 30; transition: width .18s; overflow: hidden; }
.brand { height: 60px; flex: 0 0 60px; display: flex; align-items: center; padding: 0 16px; gap: 10px;
  font-family: Orbitron, sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 1px; white-space: nowrap; overflow: hidden; }
.sidebar nav { padding: 12px 10px 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 44px; margin-bottom: 4px;
  border-radius: 8px; color: #94a3b8; font-size: 14px; letter-spacing: .5px; white-space: nowrap; cursor: pointer; }
.nav-item:hover { color: #e2e8f0; background: #ffffff04; }
.nav-item.router-link-active, .nav-item.active { color: #f59e0b; background: #f59e0b1c; }
.nav-item.router-link-active:before, .nav-item.active:before { position: absolute; content: ''; width: 3px; height: 26px;
  border-radius: 0 3px 3px 0; background: #f59e0b; left: -10px; top: 9px; }
.sidebar-footer { margin-top: auto; height: 43px; flex-shrink: 0; border-top: 1px solid #334155; padding: 16px; color: #94a3b8; font-size: 8px; letter-spacing: 1px; }
.workspace { height: 100vh; min-height: 0; margin-left: 224px; display: flex; flex-direction: column; transition: margin-left .18s; }
.topbar { height: 60px; flex-shrink: 0; padding: 0 20px; border-bottom: 1px solid #334155; background: #22273599;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-left { font-size: 14px; } .topbar-right { gap: 18px; }
.local-badge { display: flex; gap: 7px; align-items: center; color: #94a3b8; font-size: 10px; }
.header-divider { height: 18px; width: 1px; background: #334155; }
.tenant-chip { display: inline-flex; align-items: center; gap: 7px; margin-left: 22px; padding: 5px 12px;
  border-radius: 999px; background: #34d3990e; color: #6ee7b7; font-size: 11px; white-space: nowrap; }
.user-menu { background: none; color: #cbd5e1; display: flex; align-items: center; gap: 10px; border: 0; font-size: 11px; cursor: pointer; }
.avatar { border: 1px solid #f59e0b66; background: #f59e0b12; color: #fbbf24; border-radius: 7px; width: 29px; height: 29px; display: grid; place-items: center; font-size: 13px; }
.main-content { padding: 24px; flex: 1; min-width: 0; overflow: auto; }
.workspace-footer { font-size: 9px; letter-spacing: 1px; color: #627087; display: flex; justify-content: space-between; gap: 12px; padding: 0 24px 20px; }
.collapsed .sidebar { width: 64px; } .collapsed .workspace { margin-left: 64px; }
.collapsed .brand > span, .collapsed .nav-item > span, .collapsed .sidebar-footer > span { display: none; }
.collapsed .sidebar nav { padding: 12px 0 0; }
.collapsed .nav-item { padding: 0; justify-content: center; border-radius: 0; }
.collapsed .nav-item.router-link-active:before, .collapsed .nav-item.active:before { left: 0; }
.sidebar-overlay { display: none; }
.page { min-height: 100%; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 50px; margin-bottom: 20px; }
.page-heading h1 { font-family: Orbitron, sans-serif; font-size: 22px; font-weight: 900; letter-spacing: 2px; line-height: 29px; }
.page-heading p { color: #94a3b8; font-size: 12px; line-height: 15px; letter-spacing: 1px; margin-top: 6px; }
.heading-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.panel { border: 1px solid #334155; background: #222735; border-radius: 16px; padding: 20px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.panel-heading h2 { font-family: Orbitron, 'PingFang SC', sans-serif; display: flex; align-items: center; gap: 9px;
  color: #a4b3c9; font-size: 11px; font-weight: 500; letter-spacing: 1.5px; line-height: 1.6; }
.panel-heading h2 svg { width: 14px; height: 14px; color: var(--gold); }
.panel-heading h2 > span:not(.legend-dot) { font-family: 'JetBrains Mono', 'PingFang SC', sans-serif; font-size: 11px; letter-spacing: 1px; }
.error-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px;
  background: #ef444413; border: 1px solid #ef444450; border-radius: 7px; color: #fca5a5; font-size: 12px; margin-bottom: 18px; }
.explanation-note { display: flex; align-items: flex-start; gap: 10px; margin: 18px 2px; color: #8190a6; font-size: 11px; line-height: 1.9; }
.empty-state { padding: 40px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: #8190a6; text-align: center; font-size: 12px; }
.view-footnote { font-size: 10px; color: #8291a6; line-height: 1.9; margin: 14px 0 0; }
.form-error { color: #fca5a5; font-size: 11px; line-height: 1.7; margin-top: 13px; }
.dialog-footer { padding-top: 22px; display: flex; justify-content: flex-end; gap: 12px; }
.field-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #cbd5e1; margin: 20px 0 10px; }
.field-label > span { color: #64748b; font-size: 8px; letter-spacing: 1px; }
.numeric { font-variant-numeric: tabular-nums; }
.table-scroll { min-width: 0; overflow-x: auto; }
.table-footer { display: flex; align-items: center; justify-content: flex-end; min-height: 32px; gap: 16px; }
.table-footer > span { font-size: 10px; color: #738399; }
.spinning { animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.panel-badges { display: flex; gap: 10px; align-items: center; }

/* 登录 */
.login-page { min-height: 100vh; position: relative; overflow: hidden; background: #0f172a; }
.login-grid-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(51,65,85,.22) 1px,transparent 1px),linear-gradient(90deg,rgba(51,65,85,.22) 1px,transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at center,rgba(0,0,0,.9),transparent 72%); }
.login-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .14; pointer-events: none; }
.gold-glow { width: 520px; height: 520px; background: #f59e0b; left: -120px; top: -160px; }
.purple-glow { width: 560px; height: 560px; background: #8b5cf6; right: -160px; bottom: -200px; }
.login-wrap { position: relative; z-index: 2; display: flex; min-height: 100vh; }
.login-brand { position: relative; flex: 1.1; display: flex; align-items: center; justify-content: center; padding: 48px; }
.corner { width: 18px; height: 18px; position: absolute; opacity: .7; }
.corner-tl { top: 24px; left: 24px; border-top: 2px solid #f59e0b; border-left: 2px solid #f59e0b; }
.corner-tr { top: 24px; right: 24px; border-top: 2px solid #f59e0b; border-right: 2px solid #f59e0b; }
.corner-bl { left: 24px; bottom: 24px; border-left: 2px solid #8b5cf6; border-bottom: 2px solid #8b5cf6; }
.corner-br { right: 24px; bottom: 24px; border-right: 2px solid #8b5cf6; border-bottom: 2px solid #8b5cf6; }
.brand-content { max-width: 520px; width: 100%; }
.brand-tag { color: #8b5cf6; font-size: 12px; letter-spacing: 3px; margin-bottom: 18px; }
.login-brand h1 { font-family: Orbitron,sans-serif; font-size: clamp(40px,6vw,64px); font-weight: 900; letter-spacing: 4px; line-height: 1; white-space: nowrap; }
.login-brand h1 > span { color: #f59e0b; text-shadow: 0 0 30px rgba(245,158,11,.45); }
.brand-rule { background: linear-gradient(90deg,#f59e0b,transparent 70%); height: 1px; margin: 22px 0; }
.brand-description { color: #94a3b8; font-size: 13px; letter-spacing: 2px; margin: 0 0 26px; }
.login-hud { display: flex; flex-direction: column; list-style: none; padding: 0; margin: 0; gap: 10px; }
.login-hud li { display: flex; justify-content: space-between; max-width: 340px; font-size: 12px; letter-spacing: 1px; color: #94a3b8; }
.login-hud b { font-weight: 500; color: #f8fafc; } .login-hud b.green { color: #34d399; }
.login-form-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px; }
.login-card-wrap { position: relative; width: 100%; max-width: 400px; }
.login-card { width: 100%; padding: 36px 32px; border: 1px solid #334155; border-radius: 10px; background: #222735; }
.login-card h2 { font-family: Orbitron,sans-serif; font-size: 24px; font-weight: 900; letter-spacing: 4px; line-height: 30px; margin: 0 0 6px; }
.login-subtitle { font-size: 12px; letter-spacing: 1px; color: #94a3b8; line-height: 18px; margin: 0 0 26px; }
.login-field { margin-bottom: 18px; }
.login-card .el-input__wrapper { border-radius: 8px; background: #272f42; box-shadow: 0 0 0 1px #334155 inset; }
.login-card .el-input__wrapper.is-focus { box-shadow: 0 0 0 1px #f59e0b inset,0 0 12px #f59e0b2e !important; }
.login-submit { height: 44px; width: 100%; margin-top: 8px; border-radius: 4px; letter-spacing: 4px; }
.login-error { color: #fca5a5; font-size: 11px; line-height: 1.7; margin: 0 0 12px; }
.demo-login { padding: 18px 0 0; } .demo-login > div { display: flex; align-items: center; justify-content: space-between; }
.demo-login > p { margin: 12px 0 8px; font-size: 11px; color: #cbd5e1; } .demo-login > p span { color: #64748b; margin: 0 6px; }
.demo-login > small { font-size: 10px; color: #94a3b8; line-height: 1.8; display: block; }

/* 仪表盘 */
.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.kpi-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--kpi-color); }
.kpi-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; color: var(--kpi-color);
  background: color-mix(in srgb, var(--kpi-color) 12%, transparent); border: 1px solid color-mix(in srgb, var(--kpi-color) 30%, transparent); }
.kpi-value { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; }
.kpi-label { margin-top: 4px; font-size: 11px; letter-spacing: 1px; color: var(--muted); white-space: nowrap; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 20px; align-items: stretch; }
.hero-card { position: relative; overflow: hidden; min-width: 0; padding: 22px; min-height: 156px;
  background: radial-gradient(120% 160% at 100% 0%, #f59e0b19, transparent 46%), var(--panel); border: 1px solid #f59e0b8c; border-radius: 16px; }
.hero-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--gold), var(--purple)); }
.hero-top, .hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-top { margin-bottom: 14px; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; font-family: Orbitron, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--gold); }
.domain-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #f59e0b24; }
.hero-badge { font-size: 9px; letter-spacing: 2px; padding: 3px 9px; border-radius: 4px; color: var(--gold); border: 1px solid #f59e0b8c; background: #f59e0b19; white-space: nowrap; }
.hero-domain { font-size: clamp(18px, 3vw, 28px); font-weight: 500; overflow-wrap: anywhere; }
.hero-foot { margin-top: 14px; } .hero-hint { font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.seed-card { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.seed-placeholder { padding: 14px 16px; background: #0b1120; border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 10px; font-size: 13px; color: var(--gold); overflow-wrap: anywhere; }
.identity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.identity-card { display: flex; align-items: center; gap: 12px; min-height: 104px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.identity-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; color: var(--gold);
  background: #f59e0b19; border: 1px solid #f59e0b8c; }
.identity-label { font-size: 10px; letter-spacing: 2px; color: var(--muted); margin-bottom: 6px; }
.identity-value { font-size: 16px; letter-spacing: 1px; overflow-wrap: anywhere; }
.identity-status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px;
  background: #34d3991f; border: 1px solid #34d39966; color: #34d399; }
.identity-status > i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.section-label { font-family: Orbitron, 'PingFang SC', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 3px; color: var(--muted); margin-bottom: 14px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.shortcut-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; transition: border-color .15s, transform .15s; cursor: pointer; }
.shortcut-card:hover { border-color: #f59e0b8c; transform: translateY(-2px); }
.shortcut-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--purple); background: #8b5cf629; border: 1px solid #8b5cf64d; }
.shortcut-card h3 { font-size: 13px; font-weight: 400; letter-spacing: 1px; }
.shortcut-card p { margin-top: 4px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.visit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.visit-card { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; text-align: center; }
.visit-card strong { font-size: 28px; font-weight: 700; }
.visit-card p { margin-top: 6px; font-size: 11px; letter-spacing: 1px; color: var(--muted); }

/* 列表 */
.module-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.module-stat { height: 97px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.module-stat p { font-size: 10px; letter-spacing: 2px; color: var(--muted); margin-bottom: 12px; }
.module-stat strong { font-size: 22px; font-weight: 400; letter-spacing: 1px; }
.module-filter.panel { padding: 16px 20px; margin-bottom: 20px; }
.module-filter-row { display: flex; gap: 12px; flex-wrap: wrap; }
.module-search { width: 280px; } .module-devices .module-search { width: 240px; }
.module-filter-row .el-select { width: 160px; }
.module-panel-head { height: 24px; display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.module-panel-head h2 { display: flex; align-items: center; gap: 8px; font: 700 11px Orbitron,'PingFang SC',sans-serif; letter-spacing: 2px; color: var(--muted); }
.module-panel-head h2 svg { color: var(--gold); }
.module-list { margin-bottom: 20px; }
.module-table-scroll { width: 100%; min-width: 0; overflow-x: auto; }
.module-table { --el-table-bg-color:#141414; --el-table-tr-bg-color:#141414; --el-table-header-bg-color:#141414; font-size: 13px; }
.module-table th.el-table__cell { padding: 8px 0; font-weight: 700; }
.module-table td.el-table__cell { padding: 9px 0; }
.preview-name { color: #e2e8f0; }
.preview-cell-sub { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); line-height: 1.5; }
.preview-copy { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--gold); font: inherit; font-size: 12px; cursor: pointer; }
.preview-row-actions { display: flex; gap: 12px; align-items: center; }
.preview-row-actions .el-button + .el-button { margin-left: 0; }
.clickable-rows tbody tr { cursor: pointer; }
.preview-status { font-size: 12px; color: var(--muted); } .preview-status.online { color: #34d399; }
.module-pagination { display: flex; justify-content: flex-end; margin-top: 16px; }

/* 详情组件 */
.record-details-device, .record-details-dialog { color: #e2e8f0; background: #0f172a; }
.record-details-device .el-drawer__header { padding: 20px; margin-bottom: 0; border-bottom: 1px solid #334155; }
.record-details-device .el-drawer__title, .record-details-dialog .el-dialog__title { color: var(--gold);
  font: 700 14px Orbitron, sans-serif; letter-spacing: 3px; line-height: 1.6; }
.record-details-device .el-drawer__body { padding: 20px; }
.rd-info-group { padding: 0 0 17px; margin-bottom: 20px; border-bottom: 1px solid #334155; }
.rd-info-group h3, .rd-app-heading h3 { color: #d5a344; font: 400 10px 'JetBrains Mono', monospace; letter-spacing: 2px; line-height: 1.6; margin: 0 0 12px; }
.rd-device-fields { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 10px 12px; margin: 0; font-size: 12px; line-height: 1.6; }
.rd-device-fields dt { color: #7f8da4; } .rd-device-fields dd { margin: 0; min-width: 0; }
.rd-field-value { display: flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.rd-jailbroken { color: #c084fc; font-size: 10px; }
.rd-copy-uuid { flex-shrink: 0; border: 0; background: transparent; color: var(--gold); font: inherit; font-size: 10px; cursor: pointer; padding: 0 3px; }
.rd-copy-uuid:disabled { color: #637086; cursor: not-allowed; }
.rd-meter { width: 110px; max-width: 100%; height: 4px; margin-top: 5px; overflow: hidden; background: #334155; border-radius: 3px; }
.rd-meter i { display: block; height: 100%; background: #34d399; }
.rd-disk-meter i { background: #f59e0b; }
.rd-app-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.rd-app-heading h3 { margin: 0; } .rd-app-heading > span { color: #7f8da4; font-size: 9px; white-space: nowrap; }
.rd-app-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.rd-app-card { min-height: 125px; display: flex; align-items: center; flex-direction: column; padding: 13px 7px;
  border: 1px solid #334155; border-radius: 10px; background: #252e40; text-align: center; }
.rd-app-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 11px; background: #a46f19; color: #ffda8d; font-size: 18px; }
.rd-app-card strong { font-size: 11px; font-weight: 400; } .rd-app-card small { color: #8d9ab0; font-size: 9px; margin-top: 4px; }
.rd-app-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 16px; }
.rd-app-pagination > button { width: 28px; height: 28px; border: 1px solid #334155; border-radius: 6px; background: #1c2639; color: #e2e8f0; font-size: 22px; cursor: pointer; }
.rd-app-pagination > button:disabled { color: #526078; opacity: .55; cursor: not-allowed; }
.rd-app-dots { display: flex; gap: 2px; } .rd-app-dots button { width: 22px; height: 26px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
.rd-app-dots button span { width: 6px; height: 6px; border-radius: 50%; background: #526078; }
.rd-app-dots button.active span { background: #f59e0b; }
.rd-app-page-status { color: #7f8da4; text-align: center; font-size: 10px; margin: 7px 0 0; }
.rd-local-note, .rd-disabled-note { font-size: 11px; line-height: 1.7; color: #8593aa; margin: 14px 0; }
.rd-copy-status { color: #d5a344; font-size: 11px; margin-top: 10px; }
.record-details-dialog.el-dialog { padding: 20px; border: 1px solid #334155; border-radius: 12px; }
.record-details-dialog .el-dialog__header { padding-bottom: 15px; padding-right: 28px; }
.record-details-dialog .el-dialog__body { min-width: 0; max-height: calc(75dvh - 105px); overflow-y: auto; }
.record-details-dialog .el-dialog__footer { padding-top: 16px; }
.rd-meta-fields { display: grid; grid-template-columns: 122px minmax(0,1fr); margin: 0; font-size: 12px; line-height: 1.6; }
.rd-meta-fields dt, .rd-meta-fields dd { margin: 0; padding: 10px 0; border-bottom: 1px solid #273247; overflow-wrap: anywhere; }
.rd-meta-fields dt { color: #8593aa; }
.rd-communication-block { margin: 16px 0 0; }
.rd-communication-block h3 { font: 400 10px 'JetBrains Mono', monospace; color: #d5a344; letter-spacing: 1.5px; margin: 0 0 8px; }
.rd-communication-block pre, .rd-material-placeholder { margin: 0; padding: 12px; min-height: 44px; border: 1px solid #334155;
  border-radius: 6px; background: #1e293b; color: #8593aa; font: 11px/1.8 'JetBrains Mono','PingFang SC',monospace;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.rd-wallet-tabs .el-tabs__item { font-size: 11px; }
.rd-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rd-table th { text-align: left; font-weight: 500; color: #8593aa; background: #172134; }
.rd-table th, .rd-table td { padding: 10px 12px; border-bottom: 1px solid #334155; white-space: nowrap; }
.rd-table .rd-placeholder { color: #8593aa; }
.rd-table-actions { display: flex; gap: 14px; align-items: center; }

/* 渠道/引流 */
.distribution-code { font-size: 13px; color: var(--purple); letter-spacing: 2px; }
.new-version-tag { display: inline-block; padding: 2px 6px; border: 1px solid #f59e0b44; background: #f59e0b15;
  color: var(--gold); border-radius: 4px; font-size: 9px; margin-left: 8px; }
.distribution-link-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.distribution-url { color: #94a3b8; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.distribution-links { display: flex; flex-direction: column; gap: 4px; }
.url-label { font-size: 10px; flex-shrink: 0; } .domain-color { color: #a78bfa; }
.distribution-status { display: inline-block; padding: 3px 8px; font-size: 10px; letter-spacing: 1px;
  border: 1px solid #64748b55; border-radius: 5px; color: #94a3b8; background: #64748b11; }
.distribution-status.active { color: #34d399; border-color: #34d39955; background: #34d39911; }
.distribution-status.disabled { color: #ef4444; border-color: #ef444466; background: #ef44441a; }
.distribution-actions { display: flex; align-items: center; white-space: nowrap; gap: 8px; }
.distribution-actions .el-button + .el-button { margin-left: 0; }
.distribution-actions .el-button--small { padding: 5px 8px; font-size: 11px; }
.thumbnail-preview { height: 40px; width: 72px; border: 1px solid var(--line); border-radius: 6px; cursor: zoom-in; object-fit: cover; }
.distribution-dialog-note { color: var(--muted); font-size: 11px; line-height: 1.8; margin-bottom: 16px; }
.distribution-code-row { display: flex; align-items: center; gap: 10px; }
.distribution-code-row .el-input { flex: 1; }
.distribution-full { width: 100%; }
.embed-preview-box { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.embed-preview-box pre { width: 100%; padding: 14px; margin: 0; background: #0b1120; border: 1px solid var(--line);
  color: #cbd5e1; font: 12px/1.7 'JetBrains Mono', sans-serif; border-radius: 10px; white-space: pre-wrap; }
.distribution-template-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; max-height: 320px; overflow-y: auto; }
.distribution-template-card { padding: 0; text-align: left; background: #0b1120; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; color: #cbd5e1; cursor: pointer; }
.distribution-template-card.active { border-color: var(--gold); box-shadow: 0 0 0 1px #f59e0b55; }
.distribution-template-shot { position: relative; height: 150px; background: #0b1120; border-bottom: 1px solid var(--line); }
.distribution-template-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.distribution-template-shot b { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; display: grid;
  place-items: center; background: var(--gold); color: #111827; border-radius: 50%; font-size: 12px; }
.distribution-template-meta { padding: 10px 12px; }
.distribution-template-meta strong { display: block; font-size: 13px; }
.distribution-template-meta small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.domain-verify-steps { padding: 16px; background: #0b1120; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; }
.domain-verify-steps h3 { font-size: 12px; color: var(--gold); margin-bottom: 16px; }
.domain-verify-steps > div { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; }
.domain-step-number { display: grid; place-items: center; flex-shrink: 0; width: 23px; height: 23px; border-radius: 50%;
  border: 1px solid #f59e0b66; color: var(--gold); font-size: 11px; }
.domain-verify-steps p { font-size: 12px; line-height: 1.8; } .domain-verify-steps p span { display: block; font-size: 11px; color: var(--muted); }
.domain-txt-block { border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; margin-bottom: 14px; background: #0b1120; }
.domain-txt-block > div { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.domain-txt-block > div + div { border-top: 1px solid var(--line); }
.domain-txt-block span { color: var(--muted); font-size: 11px; }
.domain-txt-block code { flex: 1; color: #94a3b8; font-size: 12px; overflow-wrap: anywhere; }
.domain-bound-stage { display: flex; align-items: center; gap: 16px; padding: 24px 16px; border: 1px solid #34d39944;
  border-radius: 8px; background: #34d39909; color: #34d399; }
.domain-bound-stage p { font-size: 12px; margin-bottom: 7px; } .domain-bound-stage strong { font-size: 16px; overflow-wrap: anywhere; }

/* 统计 */
.records-panel { margin-top: 20px; }
.records-panel.has-records .panel-heading { margin-bottom: 16px; }
.record-table { --el-table-bg-color:#141414; --el-table-tr-bg-color:#141414; --el-table-header-bg-color:#141414; font-size: 13px; }
.record-table th.el-table__cell, .record-table td.el-table__cell { padding: 8px 0; }
.filter-panel { margin-bottom: 20px; }
.filter-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.channel-select { width: 240px; } .date-range { width: 250px; }
.stats-panel.has-rows .panel-heading { margin-bottom: 16px; }

/* 归集 */
.preview-auto-query { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-color: #72562b; margin-bottom: 20px; }
.preview-auto-query h2 { font: 600 13px Orbitron, sans-serif; letter-spacing: 1px; }
.preview-auto-query p { color: var(--muted); font-size: 11px; margin-top: 6px; }
.preview-note { color: var(--muted); font-size: 12px; line-height: 18px; margin: 0 0 16px; }
.preview-chain-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.preview-chain-card { padding: 16px; min-height: 194px; background: #0b1120; border: 1px solid #334155;
  border-left: 3px solid var(--chain-color); border-radius: 12px; }
.preview-chain-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.preview-chain-title i { width: 8px; height: 8px; border-radius: 50%; background: var(--chain-color); }
.preview-chain-title strong { font-size: 13px; font-weight: 500; }
.preview-chain-title > span { color: var(--muted); background: #263043; border: 1px solid var(--line); padding: 2px 7px; border-radius: 4px; font-size: 11px; }
.preview-chain-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.preview-chain-foot > span { color: var(--gold); font-size: 10px; }
.preview-interval-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.preview-interval-row > .el-button { margin-left: auto; }
.preview-collect-list { display: flex; flex-direction: column; gap: 12px; }
.preview-collect-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; min-height: 66px; padding: 14px 16px;
  background: #0b1120; border: 1px solid var(--line); border-left: 3px solid var(--chain-color); border-radius: 12px; }
.preview-collect-row .preview-chain-title { min-width: 180px; margin: 0; }
.preview-static-field { flex: 1; min-width: 190px; }
.preview-static-field label { color: var(--muted); font-size: 10px; display: block; margin-bottom: 6px; }
.preview-static-field > div { border: 1px solid var(--line); border-radius: 5px; height: 32px; padding: 7px 10px; color: #748093; font-size: 12px; background: #141414; overflow: hidden; }
.preview-static-field.amount { flex: 0 0 140px; }
.preview-auto-collect { border-style: dashed; }
.preview-auto-state { display: flex; align-items: flex-start; gap: 14px; padding: 20px 16px; border: 1px dashed #80632a;
  border-radius: 12px; background: #f59e0b08; }
.preview-auto-state svg, .preview-auto-state h3 { color: var(--gold); }
.preview-auto-state h3 { font-size: 14px; font-weight: 400; margin-bottom: 6px; }
.preview-auto-state p { font-size: 12px; line-height: 1.7; color: var(--muted); }

/* 子租户 */
.tenant-grid { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 16px; align-items: start; }
.tenant-list { padding: 16px; }
.tree-refresh { display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; height: 24px; border: 0;
  background: none; color: #cbd5e1; font-size: 12px; cursor: pointer; }
.tree-refresh:hover { color: #f59e0b; }
.tenant-tree .el-tree { background: transparent; color: #cbd5e1; }
.tenant-tree .el-tree-node__content { height: 34px; }
.tenant-tree .el-tree-node.is-current > .el-tree-node__content { background: #f59e0b12; }
.tenant-node { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 12px; }
.tenant-node-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tenant-device-count { color: var(--muted); font-size: 10px; white-space: nowrap; }
.local-account-summary { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.local-account-properties { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 20px; margin-top: 18px; font-size: 11px; }
.local-account-properties dt { color: var(--muted); margin-bottom: 6px; }
.local-account-properties dd { margin: 0; color: #cbd5e1; overflow-wrap: anywhere; }
.tenant-actions { display: flex; gap: 12px; margin-top: 25px; }
.local-extra-fields { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.local-extra-fields summary { color: var(--muted); font-size: 12px; cursor: pointer; margin-bottom: 16px; }
.subtenant-table { width: 100%; --el-table-bg-color:#141414; --el-table-tr-bg-color:#141414; --el-table-header-bg-color:#141414; }
.subtenant-table th.el-table__cell, .subtenant-table td.el-table__cell { padding: 8px 0; font-size: 13px; }
.fixture-caption { color: var(--muted); font-size: 10px; line-height: 1.8; margin-top: 12px; }
.fixture-id { font-size: 12px; } .online-status { color: #34d399; }

/* 设置 */
.domain-hero { position: relative; overflow: hidden; padding: 24px; margin-bottom: 20px; border: 1px solid #f59e0b8c;
  border-radius: 16px; background: radial-gradient(120% 160% at 100% 0%, #f59e0b19, transparent 46%), var(--panel); }
.domain-hero h2 { display: inline-flex; align-items: center; gap: 8px; font-family: Orbitron, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--gold); }
.domain-hero::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--gold), var(--purple)); }
.domain-value { font-size: clamp(20px, 4vw, 34px); font-weight: 500; overflow-wrap: anywhere; margin: 14px 0; }
.domain-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.domain-foot > span { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.auth-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-bottom: 20px; }
.auth-grid .panel { min-height: 360px; }
.password-form { margin-top: 51px; }
.password-field { display: flex; align-items: center; margin-bottom: 18px; }
.password-field > label { width: 90px; padding-right: 12px; flex-shrink: 0; text-align: right; font-size: 14px; color: #cbd5e1; }
.password-offset { margin-left: 90px; }
.factor-state { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 48px 0 0; }
.factor-state-icon { width: 64px; height: 64px; border: 1px solid #10b981; color: #34d399; border-radius: 50%;
  background: #10b98112; display: grid; place-items: center; box-shadow: 0 0 30px #10b98118; }
.factor-state-icon.off { background: #64748b16; color: #94a3b8; border-color: #64748b; box-shadow: none; }
.factor-state h3 { font-family: Orbitron, 'PingFang SC', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 1.5px; margin: 14px 0 24px; }
.factor-state p { font-size: 11px; color: #94a3b8; line-height: 20px; margin-bottom: 24px; }
.factor-state p strong { color: #cbd5e1; font-weight: 400; }
.factor-setup { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 12px; }
.factor-qr { width: 120px; height: 120px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.factor-qr img { width: 104px; height: 104px; }
.factor-secret { font-size: 13px; letter-spacing: 2px; color: var(--gold); overflow-wrap: anywhere; }
.factor-confirm { display: flex; gap: 8px; width: 100%; max-width: 280px; }
.factor-setup-foot { display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--muted); }
.factor-dialog-title { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.factor-dialog-title small { font-size: 10px; color: var(--gold); }
.factor-dialog-field { display: flex; align-items: center; margin-bottom: 18px; }
.factor-dialog-field label { width: 80px; flex-shrink: 0; text-align: right; padding-right: 12px; font-size: 14px; color: #cbd5e1; }
.settings-preview-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 20px; align-items: start; }
.domain-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 4px; }
.domain-tile { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 12px 14px; color: #cbd5e1;
  background: #0b1120; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-family: inherit; }
.domain-tile.active { border-color: var(--gold); background: #f59e0b10; box-shadow: 0 0 0 1px #f59e0b44 inset; }
.tile-top { display: flex; align-items: center; justify-content: space-between; min-height: 18px; }
.tile-badge { font-size: 9px; padding: 2px 7px; border-radius: 4px; color: var(--muted); }
.tile-badge.on { color: #0b1120; background: var(--gold); }
.tile-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line); }
.tile-dot.on { background: var(--gold); border-color: var(--gold); }
.tile-name { font-size: 12px; overflow-wrap: anywhere; }
.pool-empty { height: 80px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.notify-binding { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; margin-bottom: 14px;
  background: #0b1120; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.notify-binding.bound { border-color: #34d39966; }
.binding-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.binding-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--muted); }
.binding-dot.on { background: #34d399; }
.binding-info h3 { font-family: Orbitron, 'PingFang SC', sans-serif; font-size: 13px; font-weight: 400; letter-spacing: 1px; margin-bottom: 4px; }
.binding-info p { font-size: 11px; line-height: 1.6; color: var(--muted); }
.notify-link { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 8px; color: var(--gold); font-size: 11px; overflow-wrap: anywhere; }
.notify-options { display: flex; flex-direction: column; padding: 6px 16px 16px; background: #0b1120; border: 1px solid var(--line); border-radius: 12px; }
.notify-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--line); }
.notify-option:last-of-type { border-bottom: 0; }
.notify-option > span { font-size: 13px; letter-spacing: 1px; }
.notify-save { display: flex; justify-content: flex-end; padding-top: 14px; }
.threshold-head { font-size: 11px; color: var(--muted); letter-spacing: 1px; padding: 10px 0 6px; }
.threshold-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px 18px; }
.threshold-row { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.threshold-row > span { width: 48px; flex-shrink: 0; font-size: 12px; font-weight: 600; }
.threshold-row .el-input-number { flex: 1; }

/* 帮助 */
.help-grid { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 16px; align-items: start; }
.help-navigation { padding: 8px; border-radius: 14px; }
.help-navigation > button { border: 0; background: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  height: 40px; border-radius: 10px; width: 100%; text-align: left; color: #94a3b8; font-size: 14px; letter-spacing: 1px;
  margin-bottom: 4px; cursor: pointer; }
.help-navigation > button.active, .help-navigation > button:hover { background: #f59e0b0f; color: #f59e0b; }
.help-article { padding: 24px 28px; border-radius: 14px; min-height: 320px; }
.help-article > h2 { font-size: 16px; letter-spacing: 2px; font-weight: 600; color: #fbbf24; margin-bottom: 18px; }
.help-article ul { padding-left: 20px; margin: 0; }
.help-article li { font-size: 13px; color: #94a3b8; letter-spacing: 1px; line-height: 26px; margin: 10px 0; }
.help-article li::marker { color: #f59e0b; }
.help-article code { background: #0b1120; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: #fbbf24; }

/* 图片查看器 */
.image-viewer-mask { position: fixed; inset: 0; z-index: 2000; background: #050914e6; display: grid; place-items: center; }
.image-viewer-bar { position: fixed; top: 18px; right: 22px; display: flex; gap: 8px; z-index: 2001; }
.image-viewer-bar .icon-button { background: #1e293bcc; }
.image-viewer-body img { max-width: 82vw; max-height: 78vh; transition: transform .18s; box-shadow: 0 10px 60px #00000080; }

@media (max-width: 1400px) { .kpi-grid, .shortcut-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1200px) { .module-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 1050px) {
  .auth-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; } .identity-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tenant-grid { grid-template-columns: 1fr; }
  .settings-preview-grid { grid-template-columns: 1fr; }
  .preview-chain-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar, .collapsed .sidebar { width: 224px; transform: translateX(-100%); transition: transform .2s; }
  .mobile-open .sidebar { transform: translateX(0); }
  .workspace, .collapsed .workspace { margin-left: 0; }
  .collapsed .brand > span, .collapsed .nav-item > span, .collapsed .sidebar-footer > span { display: inline; }
  .collapsed .nav-item { justify-content: flex-start; padding: 0 20px; border-radius: 8px; }
  .collapsed .nav-item.router-link-active:before { left: -10px; }
  .sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 29; border: 0; background: #00000099; }
  .kpi-grid, .shortcut-grid, .visit-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .identity-grid { grid-template-columns: 1fr; }
  .main-content { padding: 22px 16px; }
  .username, .header-divider { display: none; }
  .login-brand { display: none; }
}
