/* ── 设计变量 ─────────────────────────────────────────── */
:root {
  --brand: #2f6bff;
  --brand-hover: #4b80ff;
  --brand-soft: #eef3ff;
  --brand-soft-2: #dfe8ff;
  --bg: #f3f6fb;
  --card: #ffffff;
  --line: #edf0f5;
  --line-2: #e3e8f0;
  --text-1: #1d2433;
  --text-2: #5b6474;
  --text-3: #8a93a3;
  --ok: #0ca30c;
  --ok-text: #157f3b;
  --ok-soft: #e7f6ec;
  --warn: #fab219;
  --warn-text: #a15c00;
  --warn-soft: #fff4e0;
  --bad: #d03b3b;
  --bad-text: #b42323;
  --bad-soft: #fdecec;
  --violet: #7c5cff;
  --violet-soft: #f1edff;
  --cyan: #13a8c2;
  --cyan-soft: #e6f7fa;
  --orange: #ff8a3d;
  --orange-soft: #fff1e7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 6px 20px rgba(16, 24, 40, .04);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Element Plus 主题色 */
  --el-color-primary: #2f6bff;
  --el-color-primary-light-3: #6d97ff;
  --el-color-primary-light-5: #97b5ff;
  --el-color-primary-light-7: #c1d3ff;
  --el-color-primary-light-8: #d5e1ff;
  --el-color-primary-light-9: #eaf0ff;
  --el-color-primary-dark-2: #2656cc;
  --el-border-radius-base: 8px;
  --el-font-family: var(--font);
  --el-text-color-primary: var(--text-1);
  --el-text-color-regular: var(--text-2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); font-size: 14px; color: var(--text-1); background: var(--bg); -webkit-font-smoothing: antialiased; }
[v-cloak] { display: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 登录页 ─────────────────────────────────────────── */
.login-page { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; background: #f7f9fd; }
.login-hero {
  position: relative; overflow: hidden; color: #fff; padding: 56px 64px;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.18), transparent 38%),
              linear-gradient(135deg, #1e3fae 0%, #2f6bff 58%, #5b8cff 100%);
  display: flex; flex-direction: column;
}
.login-hero .brand-row { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; }
.login-hero .brand-logo { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.login-hero h1 { font-size: 36px; line-height: 1.3; margin-top: 72px; font-weight: 700; letter-spacing: 1px; }
.login-hero .tagline { margin-top: 14px; font-size: 15px; opacity: .85; }
.feature-list { margin-top: 36px; display: grid; gap: 14px; max-width: 420px; }
.feature { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); backdrop-filter: blur(4px); }
.feature .f-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.feature b { display: block; font-size: 14px; }
.feature span { font-size: 12px; opacity: .8; }
.login-hero .hero-art { position: absolute; right: -40px; bottom: -30px; width: 420px; opacity: .95; pointer-events: none; }
.login-hero .copyright { margin-top: auto; font-size: 12px; opacity: .65; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 32px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(30, 63, 174, .10); border: 1px solid var(--line); }
.login-card h2 { font-size: 24px; font-weight: 700; }
.login-card .sub { color: var(--text-3); margin: 8px 0 28px; font-size: 13px; }
.login-card .el-input__wrapper { padding: 4px 12px; }
.login-card .login-btn { width: 100%; height: 44px; font-size: 15px; letter-spacing: 4px; margin-top: 8px; }
.login-card .hint { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 22px; color: var(--text-3); font-size: 12px; }

/* ── 整体框架 ─────────────────────────────────────────── */
.app-shell { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 232px; flex: none; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; transition: width .2s ease; }
.sidebar.collapsed { width: 76px; }
.brand { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 22px; flex: none; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; flex: none; color: #fff; display: grid; place-items: center;
  background: linear-gradient(135deg, #5b8cff, #2f6bff); box-shadow: 0 6px 14px rgba(47,107,255,.3); }
.brand-name { font-size: 16px; font-weight: 700; white-space: nowrap; }
.brand-sub { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.nav { flex: 1; padding: 8px 14px; overflow-y: auto; }
.nav-title { font-size: 12px; color: var(--text-3); padding: 14px 10px 8px; white-space: nowrap; }
.nav-item { position: relative; height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 14px; margin-bottom: 4px;
  border-radius: 10px; color: var(--text-2); cursor: pointer; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.nav-item:hover { background: var(--brand-soft); color: var(--brand); }
.nav-item.active { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(47,107,255,.28); }
.nav-item .nav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-left: auto; box-shadow: 0 0 0 3px rgba(12,163,12,.15); }
.nav-item.active .nav-dot { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.sidebar.collapsed .nav-item { justify-content: center; padding: 0; }
.sidebar.collapsed .nav-item .nav-dot { position: absolute; top: 9px; right: 12px; }
.sidebar-foot { margin: 12px 14px 16px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #f2f6ff, #f8faff); border: 1px solid var(--line); }
.sidebar-foot .sf-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-2); padding: 3px 0; }
.sidebar.collapsed .sidebar-foot { display: none; }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; flex: none; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 24px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); cursor: pointer; border: none; background: transparent; transition: background .15s; }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; }
.crumb b { color: var(--text-1); font-size: 15px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12px; background: #f5f7fb; color: var(--text-2); white-space: nowrap; }
.clock { font-size: 13px; color: var(--text-2); padding: 0 6px; white-space: nowrap; }
.divider-v { width: 1px; height: 22px; background: var(--line-2); }
.user-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 20px; outline: none; }
.user-chip:hover { background: var(--brand-soft); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #7aa2ff, #2f6bff); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }

.page { flex: 1; overflow-y: auto; padding: 20px 24px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-head h1 { font-size: 20px; font-weight: 700; }
.page-head p { color: var(--text-3); font-size: 13px; margin-top: 4px; }

/* ── 卡片与栅格 ─────────────────────────────────────────── */
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-3 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); }
.g-bulk { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 28px; }
.card-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-title small { font-size: 12px; font-weight: 400; color: var(--text-3); }
.card-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 12px; }
.section-bar h3 { font-size: 15px; font-weight: 600; }
.link { color: var(--brand); cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { color: var(--brand-hover); }

/* 图标块 */
.tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.tile.sm { width: 36px; height: 36px; border-radius: 10px; }
.tile.lg { width: 52px; height: 52px; border-radius: 14px; }
.t-blue { background: var(--brand-soft); color: var(--brand); }
.t-green { background: var(--ok-soft); color: var(--ok-text); }
.t-violet { background: var(--violet-soft); color: var(--violet); }
.t-orange { background: var(--orange-soft); color: #e0681c; }
.t-cyan { background: var(--cyan-soft); color: var(--cyan); }
.t-red { background: var(--bad-soft); color: var(--bad); }
.tile.solid { color: #fff; box-shadow: 0 8px 16px rgba(16,24,40,.12); }
.solid.t-blue { background: linear-gradient(135deg, #6a96ff, #2f6bff); }
.solid.t-green { background: linear-gradient(135deg, #3ccf78, #15a34a); }
.solid.t-violet { background: linear-gradient(135deg, #a28bff, #7c5cff); }
.solid.t-orange { background: linear-gradient(135deg, #ffb070, #ff7a2a); }
.solid.t-cyan { background: linear-gradient(135deg, #45d1e6, #13a8c2); }
.solid.t-red { background: linear-gradient(135deg, #f37b7b, #d03b3b); }

/* 状态 */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #c3c9d4; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(12,163,12,.16); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(250,178,25,.18); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 3px rgba(208,59,59,.16); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 6px; font-weight: 500; white-space: nowrap; }
.tag-green { background: var(--ok-soft); color: var(--ok-text); }
.tag-orange { background: var(--warn-soft); color: var(--warn-text); }
.tag-red { background: var(--bad-soft); color: var(--bad-text); }
.tag-blue { background: var(--brand-soft); color: var(--brand); }
.tag-gray { background: #f1f3f7; color: var(--text-2); }

/* ── 工作台 ─────────────────────────────────────────── */
.welcome { position: relative; overflow: hidden; padding: 24px 28px; min-height: 196px;
  background: linear-gradient(115deg, #eaf1ff 0%, #f6f9ff 52%, #e6efff 100%); border-color: #e2eaff; }
.welcome h2 { font-size: 22px; font-weight: 700; }
.welcome .w-sub { color: var(--text-2); font-size: 13px; margin-top: 8px; }
.welcome .w-sub b { color: var(--brand); font-size: 15px; }
.welcome .w-stats { display: flex; gap: 12px; margin-top: 22px; position: relative; z-index: 1; flex-wrap: wrap; }
.mini-stat { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-width: 150px; border-radius: 12px; background: rgba(255,255,255,.85); box-shadow: 0 4px 14px rgba(47,107,255,.06); cursor: pointer; transition: transform .15s; }
.mini-stat:hover { transform: translateY(-2px); }
.mini-stat .ms-label { font-size: 12px; color: var(--text-3); }
.mini-stat .ms-value { font-size: 20px; font-weight: 700; margin-top: 2px; }
.welcome .w-art { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 230px; pointer-events: none; }

.svc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f8faff; border: 1px solid #eef2fb; }
.svc-row + .svc-row { margin-top: 10px; }
.svc-row .svc-name { font-weight: 600; font-size: 14px; }
.svc-row .svc-desc { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.svc-row .svc-main { flex: 1; min-width: 0; }

.kpi { display: flex; gap: 14px; align-items: flex-start; }
.kpi .kpi-label { font-size: 13px; color: var(--text-2); }
.kpi .kpi-value { font-size: 28px; font-weight: 700; line-height: 1.2; margin-top: 6px; }
.kpi .kpi-value small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 4px; }
.kpi .kpi-sub { font-size: 12px; color: var(--text-3); margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpi .kpi-body { flex: 1; min-width: 0; }
.delta-up { color: var(--ok-text); font-weight: 600; }
.delta-down { color: var(--bad-text); font-weight: 600; }
.spark { display: block; margin-top: 10px; max-width: 100%; height: auto; }

.chart-summary { display: flex; gap: 28px; margin-bottom: 8px; }
.chart-summary .cs-label { font-size: 12px; color: var(--text-3); }
.chart-summary .cs-value { font-size: 18px; font-weight: 700; margin-top: 2px; }

.meter-wrap { display: flex; align-items: center; gap: 22px; }
.meter-legend { flex: 1; display: grid; gap: 12px; }
.ml-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.ml-row b { margin-left: auto; color: var(--text-1); font-size: 15px; }
.ml-key { width: 10px; height: 10px; border-radius: 3px; flex: none; }

.bar-list { display: grid; gap: 14px; }
.bar-item .bi-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.bar-item .bi-top b { color: var(--text-1); }

.track { height: 8px; border-radius: 4px; background: var(--brand-soft-2); overflow: hidden; }
.track .fill { height: 100%; border-radius: 4px; background: var(--brand); transition: width .5s ease; }
.track.lg { height: 10px; border-radius: 5px; }

.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px; border-radius: 12px; cursor: pointer; font-size: 13px; color: var(--text-2); transition: background .15s; border: none; background: transparent; font-family: inherit; }
.quick-item:hover { background: #f5f8ff; color: var(--brand); }

.list { display: grid; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); min-width: 0; }
.list-row:last-child { border-bottom: none; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-title { font-size: 13px; font-weight: 500; }
.list-row .lr-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.list-row .lr-time { font-size: 12px; color: var(--text-3); white-space: nowrap; }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px 0; color: var(--text-3); font-size: 13px; text-align: center; }
.empty .tile { margin-bottom: 2px; }

/* 环形进度 */
.ring { position: relative; flex: none; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring .ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .ring-value { font-size: 26px; font-weight: 700; }
.ring .ring-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.ring circle { transition: stroke-dashoffset .6s ease; }

/* ── 服务控制 / 批量补跑 ─────────────────────────────────── */
.svc-card .svc-head { display: flex; align-items: center; gap: 14px; }
.svc-card .svc-head h3 { font-size: 17px; font-weight: 700; }
.svc-card .svc-head p { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.svc-card .svc-head .status { margin-left: auto; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.info-cell { padding: 12px 14px; border-radius: 12px; background: #f8faff; border: 1px solid #eef2fb; min-width: 0; }
.info-cell .ic-label { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.info-cell .ic-value { font-size: 15px; font-weight: 600; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13px; margin-top: 14px; line-height: 1.6; }
.notice.warn { background: var(--warn-soft); color: var(--warn-text); }
.notice.bad { background: var(--bad-soft); color: var(--bad-text); }
.notice.info { background: var(--brand-soft); color: #2551c4; }
.notice.ok { background: var(--ok-soft); color: var(--ok-text); }
.notice .el-icon { margin-top: 2px; flex: none; }
.engine-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.engine { display: flex; gap: 12px; align-items: center; min-width: 0; }
.engine .e-label { font-size: 12px; color: var(--text-3); }
.engine .e-value { font-size: 14px; font-weight: 600; margin-top: 4px; }
.engine .e-body { min-width: 0; }

.progress-hero { display: flex; gap: 28px; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; flex: 1; }
.shortcut-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.tips { display: grid; gap: 12px; margin: 18px 0 22px; }
.tip { display: flex; gap: 10px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.tip .el-icon { color: var(--brand); margin-top: 3px; flex: none; }

/* ── 终端日志 ─────────────────────────────────────────── */
.terminal { background: #0f172a; color: #dbe4f0; border-radius: 12px; padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; overflow-y: auto; }
.terminal.h-sm { height: 300px; }
.terminal.h-lg { height: calc(100vh - 290px); min-height: 360px; }
.log-line { white-space: pre-wrap; word-break: break-all; display: flex; gap: 10px; }
.log-line .lt { color: #64748b; flex: none; }
.log-line .lv { flex: none; font-size: 11px; line-height: 18px; margin-top: 2px; padding: 0 6px; border-radius: 4px; background: #1e293b; color: #93c5fd; height: 18px; }
.log-line .lv.WARNING { background: #3b2f12; color: #fcd34d; }
.log-line .lv.ERROR, .log-line .lv.CRITICAL { background: #3b1717; color: #fca5a5; }
.log-line.ok .lm { color: #86efac; }
.log-line.warn .lm { color: #fde68a; }
.log-line.err .lm { color: #fca5a5; }
.log-line mark { background: #facc15; color: #0f172a; border-radius: 2px; }
.log-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.log-toolbar .grow { flex: 1; }
.log-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 10px; }

/* ── 系统设置 ─────────────────────────────────────────── */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.form-section + .form-section { margin-top: 16px; }
.form-section .el-form-item { margin-bottom: 20px; }
.form-section .el-form-item:last-child { margin-bottom: 4px; }
.field-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }
.field-hint.warn { color: var(--warn-text, #b45309); }
.readonly-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.readonly-row:last-child { border-bottom: none; }
.readonly-row span { color: var(--text-3); }
.save-bar { position: sticky; bottom: 0; z-index: 5; margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(16,24,40,.05); }
.save-bar .grow { flex: 1; font-size: 12px; color: var(--text-3); }
.pw-meter { display: flex; gap: 4px; margin-top: 8px; }
.pw-meter i { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); }

/* ── 图表 ─────────────────────────────────────────── */
.chart-box { width: 100%; }
.chart-table { max-height: 260px; overflow-y: auto; }

/* ── Element Plus 微调 ─────────────────────────────────── */
.el-button { font-weight: 500; }
.el-button--primary:not(.is-plain):not(.is-link) { box-shadow: 0 4px 12px rgba(47,107,255,.22); }
.el-radio-button__inner { font-weight: 500; }
.el-table { --el-table-header-bg-color: #f7f9fc; --el-table-border-color: var(--line); font-size: 13px; }
.el-dropdown-menu__item { gap: 6px; }

/* ── 响应式 ─────────────────────────────────────────── */
@media (max-width: 1360px) {
  .g-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .g-3 > :first-child { grid-column: 1 / -1; }
  .engine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .g-2-1, .g-1-1, .g-bulk, .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome .w-art { display: none; }
  .welcome { min-height: 0; }
  .clock { display: none; }
}
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .topbar .pill { display: none; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .page { padding: 16px; }
  .topbar { padding: 0 16px; gap: 8px; }
  .user-chip > span { display: none; }
  .g-4, .g-3, .engine-grid, .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .g-3 > :first-child { grid-column: auto; }
  .page-head { flex-direction: column; align-items: stretch; }
  .chart-summary { flex-wrap: wrap; gap: 12px 20px; }
  .log-toolbar > .el-select, .log-toolbar > .el-input { width: 100% !important; }
  .log-toolbar .grow { display: none; }
  .progress-hero, .meter-wrap { flex-direction: column; align-items: stretch; }
}
