:root {
  --ink: #101828; --ink-2: #344054; --muted: #667085; --faint: #98a2b3;
  --line: #e4e7ec; --line-2: #eef1f5; --bg: #f5f7fa; --card: #fff;
  --orange: #ff5a1f; --orange-2: #e94b12; --orange-soft: #fff1eb;
  --navy: #101d33; --navy-2: #16243d; --green: #079455; --green-soft: #ecfdf3;
  --amber: #b54708; --amber-soft: #fffaeb; --red: #b42318; --red-soft: #fef3f2;
  --blue: #175cd3; --blue-soft: #eff8ff; --purple: #6941c6; --purple-soft: #f4f3ff;
  --shadow: 0 8px 24px rgba(16, 24, 40, .06);
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; }
body { -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; }
.muted { color: var(--muted); } .tiny { font-size: 11px; color: var(--faint); }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--orange); }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #ff7a45, #ff4d12); box-shadow: 0 8px 18px rgba(255,90,31,.24); font-size: 22px; }
.brand-lockup strong { display: block; font-size: 18px; letter-spacing: -.4px; }
.brand-lockup strong em { font-style: normal; color: var(--orange); font-weight: 700; }
.brand-lockup small { display: block; color: var(--faint); font-size: 10px; margin-top: 2px; }

/* ---------- login ---------- */
.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; }
.login-art { background: var(--navy); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-art::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; right: -260px; top: -220px; background: radial-gradient(circle, rgba(255,90,31,.28), transparent 62%); }
.login-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent); }
.login-art > * { position: relative; z-index: 1; }
.login-art .brand-lockup small { color: #93a1b7; }
.login-copy { margin: auto 0; max-width: 460px; }
.login-copy .eyebrow { color: #ff8f66; }
.login-copy h1 { font-size: clamp(42px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -2.6px; margin: 18px 0; font-weight: 750; }
.login-copy p { color: #aebbd0; font-size: 14px; line-height: 1.8; max-width: 400px; }
.login-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.login-points span { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); border-radius: 999px; padding: 7px 11px; font-size: 11px; color: #d6dfec; }
.login-foot { color: #6f7f98; font-size: 11px; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.login-card { width: 100%; max-width: 370px; }
.login-card h2 { font-size: 28px; letter-spacing: -.8px; margin: 12px 0 6px; }
.login-card p { margin: 0 0 26px; font-size: 13px; line-height: 1.6; }
.login-card label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.login-card input { margin-top: 7px; }
.login-note { color: var(--faint); font-size: 11px; text-align: center; margin-top: 16px; line-height: 1.6; }
.form-error { color: var(--red); font-size: 12px; min-height: 18px; margin: 2px 0 10px; }
input, select, textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 8px; padding: 9px 11px; outline: none; background: #fff; color: var(--ink); transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,90,31,.10); }
textarea { resize: vertical; min-height: 70px; }
label small { display: block; color: var(--faint); font-size: 10px; margin-top: 4px; font-weight: 400; line-height: 1.5; }
.btn { border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; color: var(--ink-2); padding: 9px 14px; font-weight: 600; font-size: 12px; transition: .15s; white-space: nowrap; }
.btn:hover { background: #f9fafb; border-color: #b8c0cc; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 5px 13px rgba(255,90,31,.2); }
.btn.primary:hover { background: var(--orange-2); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: #f2f4f7; color: var(--ink); }
.btn.sm { padding: 7px 10px; font-size: 11px; }
.btn.block { width: 100%; padding: 11px; }

/* ---------- app ---------- */
.app { min-height: 100vh; }
.topbar { height: 68px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; position: sticky; top: 0; z-index: 10; }
.topbar .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 18px; }
.topbar .brand-lockup strong { font-size: 15px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.mode-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--amber); background: var(--amber-soft); border: 1px solid #fedf89; border-radius: 999px; padding: 5px 9px; }
.mode-pill i { width: 6px; height: 6px; border-radius: 50%; background: #f79009; }
.mode-pill.oauth-ok { color: var(--green); background: var(--green-soft); border-color: #abefc6; }
.mode-pill.oauth-ok i { background: var(--green); }
.user-pill { font-size: 11px; color: var(--ink-2); background: #f2f4f7; border-radius: 999px; padding: 6px 10px; }
.main { max-width: 1440px; margin: 0 auto; padding: 30px 32px 48px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.page-head h1 { font-size: 32px; letter-spacing: -1.2px; margin: 8px 0 7px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; max-width: 720px; }
.head-actions { display: flex; gap: 8px; flex-shrink: 0; }
.warning { display: flex; gap: 12px; align-items: baseline; border: 1px solid #fedf89; background: #fffcf5; color: #93370d; border-radius: 9px; padding: 10px 13px; font-size: 11px; line-height: 1.6; margin-bottom: 16px; }
.warning b { flex-shrink: 0; font-size: 11px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 15px; box-shadow: 0 2px 5px rgba(16,24,40,.03); }
.stat span { display: block; color: var(--muted); font-size: 11px; }
.stat b { display: block; font-size: 27px; letter-spacing: -.8px; margin: 7px 0 3px; font-weight: 700; }
.stat small { color: var(--faint); font-size: 10px; }
.stat.accent { background: var(--navy); border-color: var(--navy); color: #fff; }
.stat.accent span, .stat.accent small { color: #aebbd0; }
.stat.accent b { color: #ff9b73; }
.metric-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.metric-strip > div { background: #fff; padding: 12px 14px; }
.metric-strip span { display: block; color: var(--faint); font-size: 10px; }
.metric-strip b { display: block; font-size: 20px; letter-spacing: -.4px; margin: 4px 0 2px; }
.metric-strip small { display: block; color: var(--faint); font-size: 9px; }
.metric-strip .metric-action { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; background: #fbfcfd; }
.metric-strip .metric-action .btn { width: 100%; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line-2); }
.panel-head h2 { margin: 0; font-size: 17px; letter-spacing: -.3px; }
.panel-head p { margin: 4px 0 0; color: var(--faint); font-size: 11px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.filters .input { width: auto; min-width: 120px; padding: 7px 9px; font-size: 11px; }
.filters #search { min-width: 220px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 940px; }
.table th { text-align: left; font-size: 10px; color: var(--faint); font-weight: 600; letter-spacing: .04em; padding: 11px 12px; background: #fbfcfd; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-size: 12px; color: var(--ink-2); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfdff; }
.acct-cell { display: flex; align-items: center; gap: 9px; min-width: 210px; }
.avatar { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-2); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.acct-cell b { display: block; font-size: 12px; color: var(--ink); font-weight: 600; }
.acct-cell small { display: block; color: var(--faint); font-size: 10px; margin-top: 2px; }
.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 7px; font-size: 10px; border: 1px solid transparent; white-space: nowrap; }
.badge.green { background: var(--green-soft); color: var(--green); border-color: #abefc6; }
.badge.amber { background: var(--amber-soft); color: var(--amber); border-color: #fedf89; }
.badge.red { background: var(--red-soft); color: var(--red); border-color: #fecdca; }
.badge.gray { background: #f2f4f7; color: var(--muted); border-color: var(--line); }
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: #b2ddff; }
.badge.purple { background: var(--purple-soft); color: var(--purple); border-color: #d9d6fe; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.icon-btn { border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; padding: 4px; }
.icon-btn:hover { color: var(--ink); }
.empty { text-align: center; padding: 58px 20px 66px; }
.empty-mark { font-size: 42px; color: #d0d5dd; line-height: 1; }
.empty h3 { margin: 12px 0 5px; font-size: 16px; }
.empty p { margin: 0 auto 16px; color: var(--muted); font-size: 12px; max-width: 390px; line-height: 1.7; }
.panel-foot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-2); padding: 9px 20px; color: var(--faint); font-size: 10px; background: #fcfdfe; }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(16,24,40,.48); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(3px); }
.modal { width: min(660px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; border-radius: 14px; box-shadow: 0 30px 60px rgba(16,24,40,.22); }
.modal.small { width: min(420px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 22px 12px; border-bottom: 1px solid var(--line-2); }
.modal-head h2 { font-size: 21px; letter-spacing: -.4px; margin: 5px 0 0; }
.modal form { padding: 16px 22px 20px; }
.modal form > label { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.modal form > label input { margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.form-grid label input, .form-grid label select, .form-grid label textarea { margin-top: 6px; }
.form-grid .span-2 { grid-column: span 2; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line-2); }
.test-body { padding: 16px 22px 22px; }
.test-body pre { white-space: pre-wrap; word-break: break-word; background: #fbfcfd; border: 1px solid var(--line); border-radius: 8px; padding: 12px; max-height: 460px; overflow: auto; font-size: 11px; line-height: 1.6; color: var(--ink-2); }
.test-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.test-metrics div { background: #fbfcfd; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px; }
.test-metrics span { display: block; color: var(--faint); font-size: 10px; }
.test-metrics b { display: block; font-size: 18px; margin-top: 3px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; background: var(--navy); color: #fff; border-radius: 9px; padding: 11px 14px; font-size: 12px; box-shadow: 0 14px 30px rgba(16,24,40,.22); max-width: 340px; }
.toast.error { background: #7a271a; }

@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-strip .metric-action { grid-column: span 2; }
  .filters { justify-content: flex-start; }
  .panel-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 820px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-art { min-height: 330px; padding: 30px; }
  .login-copy { margin: 34px 0; }
  .login-copy h1 { font-size: 42px; }
  .login-foot { display: none; }
  .login-panel { padding: 30px 22px 42px; }
  .topbar { padding: 0 16px; height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 10px; align-items: flex-start; gap: 8px; }
  .top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .mode-pill { display: none; }
  .main { padding: 22px 14px 40px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head h1 { font-size: 27px; }
  .head-actions { justify-content: flex-end; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-strip .metric-action { grid-column: span 2; }
  .stat.accent { grid-column: span 2; }
  .filters #search { min-width: 100%; }
  .filters .input { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal { border-radius: 14px 14px 0 0; max-height: 92vh; }
  .warning { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* ---------- 2026-11 workspace skin: match main AdOps cockpit ---------- */
:root {
  --navy: #0b1424;
  --navy-2: #101d33;
  --ink: #101828;
  --bg: #f4f6f9;
  --line: #e4e7ec;
  --line-2: #eef1f5;
  --orange: #ff5a1f;
  --orange-soft: #fff1eb;
  --green: #079455;
  --green-soft: #ecfdf3;
  --amber: #b54708;
  --amber-soft: #fffaeb;
  --red: #b42318;
  --red-soft: #fef3f2;
  --blue: #175cd3;
  --blue-soft: #eff8ff;
  --purple: #6941c6;
  --purple-soft: #f4f3ff;
  --shadow: 0 8px 28px rgba(16, 24, 40, .06);
}
body { background: var(--bg); }
.app { display: flex; min-height: 100vh; background: var(--bg); }
.workspace { min-width: 0; flex: 1; }
.sidebar { width: 236px; flex: 0 0 236px; background: linear-gradient(180deg, #0b1424 0%, #101d33 58%, #0b1424 100%); color: #c9d3e2; min-height: 100vh; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 14px; overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
.side-brand .brand-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg, #ff8a5c, #ff4d12); color: #fff; font-size: 21px; box-shadow: 0 8px 20px rgba(255, 90, 31, .28); }
.side-brand strong { display: block; color: #fff; font-size: 17px; letter-spacing: -.4px; }
.side-brand strong em { color: #ff7a45; font-style: normal; }
.side-brand small { display: block; color: #7d8da5; font-size: 9px; margin-top: 3px; letter-spacing: .2px; }
.side-label { color: #586a83; font-size: 9px; letter-spacing: .12em; padding: 0 12px; margin: 14px 0 6px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-item { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; color: #9caec5; text-align: left; padding: 9px 11px; border-radius: 7px; font-size: 12px; transition: .15s; }
.side-item:hover { background: rgba(255,255,255,.055); color: #fff; }
.side-item.active { background: rgba(255,255,255,.08); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--orange); }
.side-ico { width: 17px; text-align: center; color: #7f91a9; font-size: 13px; }
.side-item.active .side-ico { color: #ff8a5c; }
.side-active-dot { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.side-foot { margin-top: auto; padding-top: 20px; }
.side-conn { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 9px; padding: 11px 12px; }
.side-conn-top { display: flex; justify-content: space-between; color: #98a9bf; font-size: 10px; }
.side-conn-top i { width: 6px; height: 6px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 3px rgba(18,183,106,.12); }
.side-conn b { display: block; color: #fff; font-size: 24px; line-height: 1; margin: 8px 0 3px; }
.side-conn small { display: block; color: #6f819a; font-size: 9px; }
.side-user { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.08); margin-top: 14px; padding: 13px 4px 0; font-size: 11px; color: #d2dbe8; }
.side-user small { color: #6f819a; font-size: 9px; }

.topbar { height: 64px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.top-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crumb { color: var(--faint); font-size: 11px; }
.crumb b { color: #c3cad5; font-weight: 400; margin: 0 4px; }
.mobile-menu { display: none; font-size: 18px; margin-right: 4px; }
.mobile-brand { display: none; align-items: center; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 700; }
.mobile-brand em { color: var(--orange); font-style: normal; }
.mobile-brand .brand-mark { width: 27px; height: 27px; border-radius: 8px; font-size: 15px; }
.top-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.top-actions .mode-pill { font-size: 9px; padding: 4px 8px; }
.top-actions .user-pill { font-size: 10px; padding: 5px 9px; }
.main { max-width: 1480px; margin: 0 auto; padding: 24px 28px 44px; }
.page-head { margin-bottom: 14px; }
.page-head h1 { font-size: 30px; letter-spacing: -1.2px; margin: 7px 0 5px; }
.page-head p { font-size: 12px; max-width: 760px; }
.head-actions { gap: 7px; }
.warning { border: 1px solid #fedf89; background: #fffcf5; color: #93370d; font-size: 10.5px; padding: 8px 11px; margin-bottom: 12px; }
.hero-panel { position: relative; overflow: hidden; display: flex; align-items: center; gap: 15px; background: linear-gradient(105deg, #101d33 0%, #14233c 62%, #1b2b47 100%); color: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 12px 26px rgba(16,24,40,.12); }
.hero-panel::after { content: ""; position: absolute; right: -70px; top: -100px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,90,31,.24), transparent 68%); }
.hero-mark { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,90,31,.16); border: 1px solid rgba(255,138,92,.30); color: #ff9a73; font-size: 24px; flex-shrink: 0; position: relative; z-index: 1; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-kicker { color: #ff9a73; font-size: 8.5px; font-weight: 700; letter-spacing: .14em; }
.hero-copy h2 { margin: 4px 0 4px; font-size: 20px; letter-spacing: -.5px; }
.hero-copy p { margin: 0; color: #9fb0c8; font-size: 10.5px; }
.hero-copy p b { color: #fff; font-weight: 600; }
.hero-side { margin-left: auto; text-align: right; position: relative; z-index: 1; border-left: 1px solid rgba(255,255,255,.10); padding-left: 18px; flex-shrink: 0; }
.hero-side span { display: block; color: #8b9db5; font-size: 9px; }
.hero-side b { display: block; color: #ff9a73; font-size: 13px; margin: 4px 0 2px; }
.hero-side small { color: #7a8ca4; font-size: 8.5px; }
.stat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-bottom: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: 0 2px 6px rgba(16,24,40,.03); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 2px; border-radius: 0 2px 2px 0; background: var(--orange); opacity: .55; }
.stat:nth-child(2)::before { background: var(--orange); } .stat:nth-child(3)::before { background: #2e90fa; } .stat:nth-child(4)::before { background: #f04438; } .stat:nth-child(5)::before { background: #f79009; }
.stat span { color: var(--muted); font-size: 10px; }
.stat b { font-size: 24px; letter-spacing: -.7px; margin: 6px 0 2px; }
.stat small { font-size: 9px; }
.stat.accent { background: #101d33; border-color: #101d33; }
.stat.accent span, .stat.accent small { color: #9fb0c8; }
.stat.accent b { color: #ff9a73; }
.metric-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; background: transparent; border: 0; border-radius: 0; overflow: visible; margin-bottom: 12px; }
.metric-strip > div { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px; }
.metric-strip b { font-size: 18px; }
.metric-strip .metric-action { background: #fff; border: 1px dashed #d0d5dd; }
.metric-action .btn { background: #fff; }
.panel { border-radius: 11px; box-shadow: var(--shadow); }
.panel-head { padding: 15px 17px 11px; }
.panel-head h2 { font-size: 16px; }
.table th { padding: 10px 11px; }
.table td { padding: 11px 11px; }
.avatar { background: var(--orange-soft); color: var(--orange); }
.warning { border-radius: 8px; }
@media (max-width: 1180px) {
  .sidebar { width: 210px; flex-basis: 210px; }
  .top-actions .mode-pill:nth-of-type(2) { display: none; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-strip .metric-action { grid-column: span 3; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: -240px; z-index: 40; transition: left .2s; box-shadow: 20px 0 40px rgba(0,0,0,.2); }
  .sidebar.open { left: 0; }
  .mobile-brand { display: flex; }
  .mobile-menu { display: inline-flex; }
  .topbar { padding: 0 15px; }
  .crumb { display: none; }
  .main { padding: 18px 14px 36px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-strip .metric-action { grid-column: span 2; }
  .hero-side { display: none; }
  .top-actions .mode-pill { display: none; }
}
@media (max-width: 560px) {
  .hero-panel { align-items: flex-start; padding: 14px; }
  .hero-copy h2 { font-size: 17px; }
  .page-head h1 { font-size: 26px; }
  .head-actions { width: 100%; justify-content: flex-end; }
  .stat-grid { gap: 7px; }
  .stat b { font-size: 21px; }
}
