:root {
  --ink-950: #06101f;
  --ink-900: #0a1729;
  --ink-850: #0e1e33;
  --ink-800: #142640;
  --slate-700: #34445b;
  --slate-600: #526176;
  --slate-500: #718096;
  --slate-400: #98a4b7;
  --slate-300: #c2ccda;
  --slate-200: #dbe2ec;
  --slate-150: #e8edf4;
  --slate-100: #f2f5f9;
  --canvas: #eef3f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --blue-700: #075fd8;
  --blue-600: #0874f9;
  --blue-500: #1684ff;
  --blue-100: #e6f1ff;
  --green-700: #087c52;
  --green-600: #0a9b68;
  --green-100: #e5f8ef;
  --amber-700: #9a5a00;
  --amber-600: #d68100;
  --amber-100: #fff3d9;
  --red-700: #b4232d;
  --red-600: #df3640;
  --red-100: #feecee;
  --violet-700: #6842c7;
  --violet-100: #efeaff;
  --line: rgba(13, 33, 59, .11);
  --line-strong: rgba(13, 33, 59, .18);
  --shadow-sm: 0 1px 2px rgba(6, 16, 31, .05), 0 8px 22px rgba(25, 49, 84, .05);
  --shadow-md: 0 18px 48px rgba(22, 47, 81, .09), 0 2px 8px rgba(22, 47, 81, .04);
  --shadow-xl: 0 32px 90px rgba(4, 18, 40, .22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --sidebar-w: 252px;
  --font-sans: "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-950);
  background:
    radial-gradient(circle at 85% -10%, rgba(26, 132, 255, .10), transparent 26rem),
    var(--canvas);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:not(:disabled), select:not(:disabled), input[type="date"] { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(8, 116, 249, .28);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--blue-700);
  transform: translateY(-150%);
  box-shadow: var(--shadow-md);
}
.skip-link:focus { transform: translateY(0); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-lockup > span:last-child { display: grid; min-width: 0; }
.brand-lockup strong { color: #fff; font-size: 15px; font-weight: 650; white-space: nowrap; }
.brand-lockup small { color: #7f90a8; font-size: 11px; }
.brand-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Login */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(3, 13, 28, .98), rgba(7, 27, 52, .94)),
    radial-gradient(circle at 15% 20%, rgba(22, 132, 255, .22), transparent 30rem);
}
.login-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  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, #000, transparent 85%);
}
.login-shell {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .34);
}
.login-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 80%, rgba(16, 129, 255, .34), transparent 22rem),
    linear-gradient(145deg, #071427, #0a1f3b 60%, #08285a);
}
.login-brand-panel::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -110px;
  width: 340px;
  aspect-ratio: 1;
  border: 1px solid rgba(74, 160, 255, .25);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(74, 160, 255, .04), 0 0 0 92px rgba(74, 160, 255, .03);
}
.brand-lockup-light strong { font-size: 16px; }
.login-statement { position: relative; z-index: 1; }
.login-statement h1 { margin: 0; font-size: clamp(36px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -.045em; }
.login-statement > p:last-child { max-width: 390px; margin: 24px 0 0; color: #a8b7ca; font-size: 16px; }
.login-signal { display: flex; align-items: center; gap: 9px; color: #a8b7ca; font-size: 12px; }
.login-signal span { width: 8px; height: 8px; border-radius: 50%; background: #24d78c; box-shadow: 0 0 0 5px rgba(36,215,140,.12); }
.login-form { align-self: center; padding: 58px 52px; }
.login-form header { margin-bottom: 38px; }
.login-form h2 { margin: 0 0 10px; font-size: 32px; letter-spacing: -.04em; }
.login-form header > p:last-child { margin: 0; color: var(--slate-600); }
.field-label { display: block; margin: 0 0 8px; color: var(--slate-700); font-size: 12px; font-weight: 650; }
.password-field { position: relative; }
.password-field input {
  width: 100%;
  height: 52px;
  padding: 0 72px 0 15px;
  border: 1px solid var(--slate-300);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink-950);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.password-field input:focus { border-color: var(--blue-500); background: #fff; outline: none; box-shadow: 0 0 0 4px rgba(8,116,249,.09); }
.password-field button { position: absolute; top: 7px; right: 7px; height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--blue-700); font-size: 12px; font-weight: 650; }
.form-status { min-height: 22px; margin: 12px 0 0; color: var(--red-700); font-size: 12px; }

/* Buttons and controls */
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 650;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button svg { width: 17px; height: 17px; }
.button-primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px rgba(8,116,249,.22); }
.button-primary:hover:not(:disabled) { background: var(--blue-700); box-shadow: 0 13px 28px rgba(8,116,249,.28); }
.button-secondary { border-color: var(--slate-300); background: #fff; color: var(--ink-900); }
.button-secondary:hover:not(:disabled) { border-color: var(--blue-500); color: var(--blue-700); }
.button-danger { border-color: rgba(223,54,64,.2); background: var(--red-600); color: #fff; }
.button-ghost { border-color: transparent; background: transparent; color: var(--blue-700); }
.button-block { width: 100%; margin-top: 18px; min-height: 50px; }
.button-small { min-height: 34px; padding: 0 11px; font-size: 12px; }
.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255,255,255,.8);
  transition: .18s ease;
}
.icon-button:hover { border-color: var(--blue-500); color: var(--blue-700); background: #fff; box-shadow: var(--shadow-sm); }
.icon-button svg { width: 18px; height: 18px; }
.field, .select, .textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-950);
  transition: .18s ease;
}
.field, .select { padding: 0 12px; }
.textarea { padding: 10px 12px; resize: vertical; }
.field:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(8,116,249,.08); }

/* App shell */
.ops-app { min-height: 100vh; }
.ops-sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  padding: 25px 18px 20px;
  color: #aebbd0;
  background:
    radial-gradient(circle at 10% 0, rgba(22,132,255,.13), transparent 16rem),
    var(--ink-950);
  border-right: 1px solid rgba(255,255,255,.06);
}
.ops-sidebar > .brand-lockup { padding: 0 8px 22px; border-bottom: 1px solid rgba(255,255,255,.09); }
.system-state { display: flex; align-items: center; gap: 11px; margin: 18px 2px 8px; padding: 12px; border: 1px solid rgba(55,222,151,.15); border-radius: 13px; background: rgba(17,92,67,.15); }
.system-state > span:last-child { display: grid; }
.system-state strong { color: #d8f7e9; font-size: 12px; }
.system-state small { color: #6f9f8e; font-size: 10px; }
.signal-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #20cd83; box-shadow: 0 0 0 5px rgba(32,205,131,.10); }
.system-state.has-issues { border-color: rgba(245,166,35,.2); background: rgba(133,78,8,.18); }
.system-state.has-issues strong { color: #ffe5b0; }
.system-state.has-issues small { color: #b99765; }
.system-state.has-issues .signal-dot { background: #f5a623; box-shadow: 0 0 0 5px rgba(245,166,35,.1); }
.ops-nav { flex: 1; min-height: 0; margin-top: 12px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.ops-nav > p { margin: 18px 12px 7px; color: #5f708a; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav-item {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #93a2b8;
  text-align: left;
  font-weight: 560;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); transform: translateX(2px); }
.nav-item.is-active { color: #fff; border-color: rgba(35,136,255,.30); background: linear-gradient(90deg, rgba(22,132,255,.24), rgba(22,132,255,.10)); box-shadow: inset 3px 0 var(--blue-500); }
.nav-item svg { width: 18px; height: 18px; flex: 0 0 18px; }
.nav-item b { min-width: 20px; margin-left: auto; padding: 1px 6px; border-radius: 999px; background: rgba(22,132,255,.18); color: #b9dcff; font-size: 10px; text-align: center; }
.nav-item b.danger-count { background: rgba(223,54,64,.18); color: #ffb9be; }
.sidebar-footer { padding: 15px 3px 0; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer button { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.03); color: #aebbd0; }
.sidebar-footer button:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.sidebar-footer button svg { width: 17px; height: 17px; }
.sidebar-footer small { display: block; margin-top: 10px; color: #506079; font-size: 9px; text-align: center; }
.sidebar-scrim { display: none; }
.ops-stage { min-height: 100vh; margin-left: var(--sidebar-w); }
.ops-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(248,250,253,.88);
  backdrop-filter: blur(18px) saturate(145%);
}
.mobile-menu { display: none; }
.command-search { width: min(620px, 52vw); height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid var(--slate-200); border-radius: 11px; background: rgba(255,255,255,.75); color: var(--slate-500); text-align: left; transition: .18s ease; }
.command-search:hover { border-color: var(--slate-300); background: #fff; box-shadow: var(--shadow-sm); }
.command-search svg { width: 17px; height: 17px; }
.command-search span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.command-search kbd { padding: 2px 7px; border: 1px solid var(--slate-200); border-radius: 6px; background: var(--slate-100); color: var(--slate-600); font-family: var(--font-sans); font-size: 10px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.beijing-clock { margin-right: 5px; color: var(--slate-500); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
.pending-action { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--slate-200); border-radius: 10px; background: #fff; color: var(--slate-700); font-size: 11px; font-weight: 680; white-space: nowrap; }
.pending-action:hover, .pending-action.is-active { border-color: rgba(214,129,0,.32); background: var(--amber-100); color: var(--amber-700); }
.pending-action svg { width: 17px; height: 17px; }
.pending-action b { min-width: 19px; padding: 2px 5px; border-radius: 999px; background: var(--red-100); color: var(--red-700); font-family: var(--font-mono); font-size: 9px; text-align: center; }
.operator-chip { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border: 0; border-radius: 10px; background: transparent; }
.operator-chip:hover { background: var(--surface); }
.operator-chip > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ink-950); color: #fff; font-weight: 700; }
.operator-chip > span:last-child { display: grid; text-align: left; }
.operator-chip strong { font-size: 12px; }
.operator-chip small { color: var(--slate-500); font-size: 9px; }
.ops-main { width: min(1540px, 100%); margin: 0 auto; padding: 36px clamp(22px, 3vw, 48px) 70px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.page-heading h1 { margin: 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1; letter-spacing: -.05em; }
.page-heading > div:first-child > p:last-child { margin: 11px 0 0; color: var(--slate-600); font-size: 14px; }
.page-actions { display: flex; align-items: center; gap: 8px; }
.view-root { min-height: 420px; }
.view-enter { animation: view-in .36s cubic-bezier(.2,.75,.25,1) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* Common content */
.surface { border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); }
.surface-header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.surface-header h2, .surface-header h3 { margin: 0; letter-spacing: -.025em; }
.surface-header h2 { font-size: 19px; }
.surface-header h3 { font-size: 16px; }
.surface-header p { margin: 3px 0 0; color: var(--slate-500); font-size: 11px; }
.surface-body { padding: 20px; }
.empty-state { min-height: 220px; display: grid; place-items: center; padding: 35px; color: var(--slate-500); text-align: center; }
.empty-state > div { max-width: 340px; }
.empty-state svg { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--slate-400); }
.empty-state h3 { margin: 0 0 6px; color: var(--ink-900); }
.empty-state p { margin: 0; }
.skeleton { position: relative; overflow: hidden; min-height: 100px; border-radius: 14px; background: #e7edf5; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.7) 45%, transparent 70%); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.status-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 0 9px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.success { border-color: rgba(10,155,104,.2); background: var(--green-100); color: var(--green-700); }
.status-pill.warning { border-color: rgba(214,129,0,.22); background: var(--amber-100); color: var(--amber-700); }
.status-pill.danger { border-color: rgba(223,54,64,.18); background: var(--red-100); color: var(--red-700); }
.status-pill.info { border-color: rgba(8,116,249,.16); background: var(--blue-100); color: var(--blue-700); }
.status-pill.neutral { border-color: var(--slate-200); background: var(--slate-100); color: var(--slate-600); }
.status-pill.violet { border-color: rgba(104,66,199,.18); background: var(--violet-100); color: var(--violet-700); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--slate-500); }
.danger-text { color: var(--red-700) !important; }
.success-text { color: var(--green-700) !important; }
.tab-bar { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(225,232,242,.66); }
.tab-bar button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 8px; background: transparent; color: var(--slate-600); font-size: 12px; font-weight: 620; }
.tab-bar button.is-active { background: #fff; color: var(--ink-950); box-shadow: 0 2px 8px rgba(15,38,68,.10); }
.filters { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, auto)); gap: 9px; padding: 14px; border-bottom: 1px solid var(--line); background: rgba(246,248,252,.75); }
.filter-search { position: relative; }
.filter-search svg { position: absolute; left: 12px; top: 12px; width: 17px; height: 17px; color: var(--slate-400); }
.filter-search .field { padding-left: 38px; }
.date-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.date-controls .quick-date { min-height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--slate-600); font-weight: 620; }
.date-controls .quick-date.is-active { border-color: var(--blue-600); background: var(--blue-600); color: #fff; }
.date-controls label { display: inline-flex; align-items: center; gap: 7px; color: var(--slate-500); font-size: 11px; }
.date-controls input { width: 136px; min-height: 38px; padding: 0 8px; border: 1px solid var(--slate-300); border-radius: 9px; background: #fff; }
.result-meta { color: var(--slate-500); font-size: 11px; }
.view-root > .date-controls { margin-bottom: 16px; }

/* Cockpit */
.cockpit-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .75fr); gap: 18px; }
.cockpit-main, .cockpit-side { min-width: 0; display: grid; align-content: start; gap: 18px; }
.cockpit-main > *, .cockpit-side > * { min-width: 0; }
.metric-strip { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); background: var(--ink-950); box-shadow: 0 18px 44px rgba(5,19,38,.18); }
.metric-card { min-width: 0; min-height: 142px; padding: 21px; border-left: 1px solid rgba(255,255,255,.09); color: #fff; }
.metric-card:first-child { border-left: 0; background: radial-gradient(circle at 100% 0, rgba(22,132,255,.26), transparent 12rem); }
.metric-card > span { color: #8495ad; font-size: 11px; }
.metric-card strong { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: clamp(26px, 2.6vw, 38px); line-height: 1; letter-spacing: -.045em; }
.metric-card small { display: flex; align-items: center; gap: 6px; margin-top: 13px; color: #8292a9; font-size: 10px; }
.metric-card small.up { color: #54dda9; }
.metric-card small.down { color: #ff9399; }
.metric-card .metric-sub { margin-top: 7px; color: #b8c5d5; font-size: 11px; }
.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.business-card { min-height: 104px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); }
.business-card span { color: var(--slate-500); font-size: 11px; }
.business-card strong { display: block; margin-top: 9px; font-family: var(--font-mono); font-size: 24px; letter-spacing: -.04em; }
.business-card small { color: var(--slate-500); font-size: 10px; }
.exception-list { display: grid; }
.exception-row { width: 100%; display: grid; grid-template-columns: 9px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 15px 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; transition: background .15s ease; }
.exception-row:last-child { border-bottom: 0; }
.exception-row:hover { background: var(--surface-soft); }
.exception-row .severity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-600); box-shadow: 0 0 0 5px rgba(214,129,0,.08); }
.exception-row.critical .severity-dot { background: var(--red-600); box-shadow: 0 0 0 5px rgba(223,54,64,.08); }
.exception-row.info .severity-dot { background: var(--blue-600); box-shadow: 0 0 0 5px rgba(8,116,249,.08); }
.exception-row strong, .exception-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exception-row strong { font-size: 12px; }
.exception-row small { margin-top: 2px; color: var(--slate-500); font-size: 10px; }
.exception-row time { color: var(--slate-500); font-family: var(--font-mono); font-size: 10px; }
.provider-mini-list { display: grid; gap: 10px; padding: 15px; }
.provider-mini { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.provider-mini header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.provider-mini h3 { margin: 0; font-size: 13px; }
.provider-mini p { margin: 8px 0 0; color: var(--slate-500); font-size: 10px; }
.provider-mini .mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.provider-mini .mini-stats div { min-width: 0; }
.provider-mini .mini-stats strong, .provider-mini .mini-stats span { display: block; }
.provider-mini .mini-stats strong { font-family: var(--font-mono); font-size: 13px; }
.provider-mini .mini-stats span { color: var(--slate-500); font-size: 9px; }
.provider-mini .provider-error { margin-top: var(--space-sm); color: var(--red-700); overflow-wrap: anywhere; }
.rank-list { counter-reset: rank; }
.rank-row { counter-increment: rank; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-row::before { content: counter(rank); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--slate-100); color: var(--slate-500); font-family: var(--font-mono); font-size: 10px; }
.rank-row:nth-child(-n+3)::before { background: var(--blue-100); color: var(--blue-700); }
.rank-row strong, .rank-row small { display: block; }
.rank-row small { color: var(--slate-500); font-size: 10px; }
.rank-row > b { font-family: var(--font-mono); font-size: 12px; }
.trend-chart { height: 190px; display: flex; align-items: end; gap: 7px; padding: 24px 20px 18px; }
.trend-bar { min-width: 8px; flex: 1; display: grid; align-items: end; gap: 6px; height: 100%; }
.trend-bar i { min-height: 3px; border-radius: 5px 5px 2px 2px; background: linear-gradient(to top, var(--blue-700), #4ca5ff); box-shadow: 0 5px 13px rgba(8,116,249,.13); transition: height .45s cubic-bezier(.2,.75,.25,1); }
.trend-bar span { color: var(--slate-500); font-size: 8px; text-align: center; white-space: nowrap; }

/* Tables */
.data-table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-soft); color: var(--slate-500); font-size: 10px; font-weight: 650; letter-spacing: .025em; text-align: left; white-space: nowrap; }
.data-table td { min-height: 68px; padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: #f8fbff; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .cell-main { display: block; color: var(--ink-900); font-size: 12px; font-weight: 620; }
.data-table .cell-sub { display: block; max-width: 240px; margin-top: 3px; overflow: hidden; color: var(--slate-500); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.data-table .cell-number { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.data-table .row-action { padding: 5px 0; border: 0; background: transparent; color: var(--blue-700); font-size: 11px; font-weight: 650; white-space: nowrap; }
.table-pager { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--slate-500); font-size: 11px; }
.table-pager > div { display: flex; gap: 7px; }
.cockpit-recent-mobile, .customers-mobile, .applications-mobile, .finance-mobile { display: none; overflow-x: visible; }
.admin-mobile-list { gap: var(--space-sm); padding: var(--space-sm); }
.admin-mobile-card { min-width: 0; padding: var(--space-md); border-bottom: 1px solid var(--line); background: var(--surface); }
.admin-mobile-card:last-child { border-bottom: 0; }
.admin-mobile-card > header { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-sm); }
.admin-mobile-card > header .customer-person { min-width: 0; }
.admin-mobile-card dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-sm); margin: var(--space-md) 0 0; }
.admin-mobile-card dl > div { min-width: 0; }
.admin-mobile-card .mobile-card-wide { grid-column: 1 / -1; }
.admin-mobile-card dt { color: var(--slate-500); font-size: 10px; }
.admin-mobile-card dd { margin: var(--space-2xs) 0 0; color: var(--ink-900); font-size: 12px; font-weight: 620; overflow-wrap: anywhere; }
.admin-mobile-card > footer { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.admin-mobile-card > footer .button { flex: 1 1 150px; }
.mobile-card-reference { margin: var(--space-sm) 0 0; color: var(--slate-500); font-size: 10px; overflow-wrap: anywhere; }
.mobile-card-statuses { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2xs); }
.application-mode-tabs { margin-bottom: 16px; }
.application-filters { grid-template-columns: minmax(220px,1fr) minmax(150px,auto) auto; }
.application-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.applications-table td:last-child { min-width: 210px; }
.provider-distribution { display: flex; flex-wrap: wrap; gap: 5px; max-width: 240px; }
.provider-distribution span { padding: 3px 7px; border-radius: 6px; background: var(--slate-100); color: var(--slate-600); font-size: 9px; }
.provider-distribution span.winner { background: var(--red-100); color: var(--red-700); font-weight: 700; }

/* Orders workbench */
.orders-workbench { min-width: 0; display: grid; gap: 16px; }
.order-view-tabs,
.order-source-tabs {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.order-view-tabs button,
.order-source-tabs button,
.order-status-tabs button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--slate-600);
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
}
.order-view-tabs button.is-active,
.order-source-tabs button.is-active,
.order-status-tabs button.is-active {
  border-color: var(--slate-200);
  background: var(--surface);
  color: var(--ink-950);
  box-shadow: var(--shadow-sm);
}
.order-view-tabs button.is-active,
.order-source-tabs button.is-active { color: var(--blue-700); }
.order-view-tabs > span,
.order-source-tabs > span {
  min-width: 0;
  margin-left: auto;
  padding: 0 10px;
  color: var(--slate-500);
  font-size: 10px;
}
.order-filter-panel {
  min-width: 0;
  display: grid;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.order-filter-details { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.order-filter-details > summary { min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 16px; color: var(--ink-900); cursor: pointer; font-size: 12px; font-weight: 680; list-style: none; }
.order-filter-details > summary::-webkit-details-marker { display: none; }
.order-filter-details > summary::after { content: "+"; margin-left: auto; color: var(--slate-500); font-size: 18px; font-weight: 400; }
.order-filter-details[open] > summary::after { content: "−"; }
.order-filter-details > summary small { color: var(--slate-500); font-size: 10px; font-weight: 500; }
.order-filter-details .order-filter-panel { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.order-live-status { color: var(--green-700) !important; font-variant-numeric: tabular-nums; }
.order-live-status::before { content: ""; width: 6px; height: 6px; display: inline-block; margin-right: 6px; border-radius: 50%; background: currentColor; }
.order-live-status.is-syncing { color: var(--blue-700) !important; }
.order-live-status.has-error { color: var(--red-700) !important; }
[data-live-order-id].is-live-updated { animation: order-live-update .8s cubic-bezier(.16,1,.3,1); }
@keyframes order-live-update { 0% { background: var(--blue-100); } 100% { background: transparent; } }
.order-filter-line {
  min-width: 0;
  display: grid;
  grid-template-columns: 104px minmax(0,1fr);
  align-items: start;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.order-filter-line:last-child { border-bottom: 0; }
.order-filter-line > strong { padding-top: 10px; font-size: 11px; }
.order-date-controls { min-width: 0; }
.order-user-picker {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}
.order-user-picker > summary {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  list-style: none;
  cursor: pointer;
}
.order-user-picker > summary::-webkit-details-marker { display: none; }
.order-user-picker > summary span,
.order-user-picker > summary small { color: var(--slate-500); font-size: 10px; }
.order-user-picker > summary strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.order-user-picker[open] > summary { border-bottom: 1px solid var(--line); }
.order-user-picker-body {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) minmax(0,1fr);
  gap: 10px;
  padding: 11px;
}
.order-user-all,
.order-user-picker-body > section {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.order-user-picker-body > section > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.order-user-picker-body > section > header strong { font-size: 10px; }
.order-user-picker-body > section > header span,
.order-user-list > p { margin: 0; color: var(--slate-500); font-size: 9px; }
.order-user-list { min-width: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.order-user-avatar {
  width: 70px;
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--slate-600);
}
.order-user-avatar > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--slate-200);
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--ink-900);
  font-size: 11px;
  font-weight: 760;
  transition: transform .16s cubic-bezier(.22,.72,.18,1), border-color .16s cubic-bezier(.22,.72,.18,1), background-color .16s cubic-bezier(.22,.72,.18,1), color .16s cubic-bezier(.22,.72,.18,1), box-shadow .16s cubic-bezier(.22,.72,.18,1);
}
.order-user-avatar > small { width: 100%; display: grid; color: inherit; font-size: 8px; text-align: center; }
.order-user-avatar b,
.order-user-avatar em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-user-avatar em { color: var(--slate-500); font-size: 8px; font-style: normal; }
.order-user-avatar:hover > span { border-color: var(--blue-500); transform: translateY(-1px); }
.order-user-avatar.is-active { color: var(--blue-700); }
.order-user-avatar.is-active > span { border-color: var(--blue-600); background: var(--blue-600); color: var(--surface); box-shadow: 0 0 0 3px var(--blue-100); }
.order-search-row { min-width: 0; display: grid; grid-template-columns: minmax(220px,1fr) auto; gap: 9px; }
.order-search-row .filter-search svg { top: 12px; }
.order-metrics { min-width: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); overflow: hidden; border: 1px solid var(--ink-800); border-radius: var(--radius-md); background: var(--ink-950); box-shadow: var(--shadow-md); }
.order-metric { min-width: 0; min-height: 108px; padding: 17px; border-left: 1px solid var(--ink-800); color: var(--surface); }
.order-metric:first-child { border-left: 0; }
.order-metric.is-primary { background: var(--ink-900); }
.order-metric span,
.order-metric small { display: block; overflow: hidden; color: var(--slate-400); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.order-metric strong { display: block; margin: 10px 0 8px; font-family: var(--font-mono); font-size: 26px; line-height: 1; letter-spacing: -.04em; }
.order-results { min-width: 0; overflow: hidden; }
.order-status-tabs { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.order-status-tabs button { min-height: 32px; font-size: 10px; }
.orders-desktop-table { min-width: 0; display: block; }
.orders-mobile-list { display: none; }
.order-card-table { min-width: 1120px; }
.order-queue-table { min-width: 920px; }
.order-card-table .customer-person,
.order-queue-table .customer-person { min-width: 160px; }
.order-row-actions { display: grid; justify-items: start; }
.order-mobile-card { min-width: 0; display: grid; gap: 13px; padding: 15px; border-bottom: 1px solid var(--line); background: var(--surface); }
.order-mobile-card:last-child { border-bottom: 0; }
.order-mobile-card > header { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.order-mobile-card > header > div { min-width: 0; }
.order-mobile-card code,
.order-mobile-card header small { display: block; overflow-wrap: anywhere; }
.order-mobile-card code { color: var(--ink-950); font-family: var(--font-mono); font-size: 11px; font-weight: 650; }
.order-mobile-card header small { margin-top: 3px; color: var(--slate-500); font-size: 9px; }
.order-mobile-card .customer-person { min-width: 0; }
.order-mobile-card dl { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; }
.order-mobile-card dl > div { min-width: 0; padding: 9px; border-radius: 9px; background: var(--slate-100); }
.order-mobile-card dt { color: var(--slate-500); font-size: 8px; }
.order-mobile-card dd { margin: 3px 0 0; overflow-wrap: anywhere; color: var(--ink-900); font-size: 10px; font-weight: 620; }
.order-mobile-card > footer { display: flex; flex-wrap: wrap; gap: 7px; }

/* Customers */
.customer-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.customer-family-tabs { margin-bottom: 16px; }
.customer-family-tabs + .date-controls { margin-bottom: 16px; }
.customer-family-tabs + .metric-strip { margin-bottom: 16px; }
.customer-table-wrap { overflow: visible; }
.customer-table { width: 100%; table-layout: fixed; }
.customer-table .customer-col-identity { width: 23%; }
.customer-table .customer-col-money { width: 17%; }
.customer-table .customer-col-period { width: 18%; }
.customer-table .customer-col-route { width: 28%; }
.customer-table .customer-col-activity { width: 14%; }
.customer-table th { position: sticky; z-index: 2; top: 68px; }
.customer-table th,
.customer-table td { padding-inline: 11px; }
.customer-table td { height: 84px; }
.customer-table .customer-person { min-width: 0; }
.customer-table .cell-main,
.customer-table .balance-stack strong { white-space: nowrap; }
.customer-identity-cell { min-width: 0; display: grid; gap: 7px; }
.customer-statuses { display: flex; flex-wrap: wrap; gap: 5px; }
.customer-statuses .status-pill { min-height: 22px; padding-inline: 7px; font-size: 9px; }
.customer-table .route-brief strong { color: var(--ink-900); font-size: 10px; }
.customer-table .route-brief span { line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.customer-activity { min-width: 0; display: grid; justify-items: start; gap: 7px; }
.customer-activity b,
.customer-activity small { display: block; }
.customer-activity b { font-size: 11px; }
.customer-activity small { color: var(--slate-500); font-size: 9px; white-space: nowrap; }
.summary-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.82); }
.summary-card span { color: var(--slate-500); font-size: 10px; }
.summary-card strong { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 23px; }
.customer-person { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.customer-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 50%; background: linear-gradient(135deg, #dcecff, #f2f7ff); color: var(--blue-700); font-size: 11px; font-weight: 750; }
.customer-person > span { min-width: 0; }
.customer-person strong, .customer-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-person strong { font-size: 12px; }
.customer-person small { color: var(--slate-500); font-size: 10px; }
.order-party-person .customer-avatar { background: var(--violet-100); color: var(--violet-700); }
.order-party-role { display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 5px; background: var(--violet-100); color: var(--violet-700); font-size: 8px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.balance-stack strong, .balance-stack small { display: block; }
.balance-stack strong { font-family: var(--font-mono); font-size: 12px; }
.balance-stack small { color: var(--slate-500); font-size: 9px; }
.route-brief { display: grid; gap: 3px; }
.route-brief span { color: var(--slate-600); font-size: 10px; white-space: nowrap; }

/* Providers */
.provider-command { overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); background: var(--ink-950); color: #fff; box-shadow: 0 20px 50px rgba(6,20,41,.18); }
.provider-command-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border-bottom: 1px solid rgba(255,255,255,.09); }
.provider-command-head h2 { margin: 0; font-size: 20px; }
.provider-command-head p { margin: 4px 0 0; color: #8799b1; font-size: 11px; }
.provider-command-head .button-secondary { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; }
.provider-sequence { padding: 18px 22px 22px; }
.provider-sequence-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: #8799b1; font-size: 10px; }
.provider-sequence-note strong { color: #dce8f5; }
.provider-lanes { display: grid; gap: 10px; }
.provider-lane {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(150px,.7fr) minmax(440px,2fr) minmax(170px,.7fr);
  align-items: center;
  gap: var(--space-md);
  min-height: 116px;
  padding: var(--space-md);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.provider-lane:hover { border-color: rgba(55,155,255,.34); background: rgba(255,255,255,.065); }
.provider-position { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--ink-800); border-radius: var(--radius-sm); background: var(--ink-850); color: var(--slate-300); font-family: var(--font-mono); font-size: 11px; }
.provider-lane-title { min-width: 0; display: grid; justify-items: start; gap: var(--space-xs); }
.provider-lane-title h3 { margin: 0; font-size: 14px; }
.provider-lane-title small { color: var(--slate-400); font-size: 9px; font-weight: 500; }
.provider-lane-metrics { min-width: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: var(--space-xs); }
.provider-lane .lane-stat { min-width: 0; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); background: var(--ink-850); }
.provider-lane .lane-stat span, .provider-lane .lane-stat strong { display: block; }
.provider-lane .lane-stat span { color: var(--slate-500); font-size: 9px; }
.provider-lane .lane-stat strong { margin-top: var(--space-2xs); color: var(--slate-200); font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.provider-lane .lane-stat small { display: block; margin-top: var(--space-2xs); color: var(--slate-400); font-size: 8px; overflow-wrap: anywhere; }
.provider-lane-config { min-width: 0; display: grid; gap: var(--space-xs); }
.provider-lane-config label { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: var(--space-xs); color: var(--slate-400); font-size: 9px; }
.provider-lane-config > label { display: flex; }
.provider-lane-config > label > span { flex: 0 0 42px; }
.provider-lane-config > label > select { min-width: 0; width: 0; flex: 1 1 0; }
.provider-lane select, .provider-lane input { min-height: 36px; padding: 0 var(--space-xs); border: 1px solid var(--ink-800); border-radius: var(--radius-sm); background: var(--ink-850); color: var(--surface); }
.provider-lane select { min-width: 0; width: auto; justify-self: stretch; }
.provider-lane input { width: 58px; }
.provider-lane .lane-controls { display: flex; align-items: center; gap: var(--space-xs); }
.provider-lane .lane-controls label { min-width: 0; flex: 1; }
.provider-foot { display: flex; justify-content: space-between; gap: 15px; padding: 17px 22px; border-top: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.025); }
.provider-foot > div { display: flex; align-items: center; gap: 9px; }
.provider-foot label { color: #8394aa; font-size: 10px; }
.provider-foot input { width: 90px; min-height: 38px; padding: 0 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: #10233c; color: #fff; }
.provider-foot .button-primary { min-width: 126px; }
.provider-help-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 16px; }
.provider-help { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.82); }
.provider-help span { color: var(--blue-600); font-size: 10px; font-weight: 700; }
.provider-help h3 { margin: 7px 0 4px; font-size: 14px; }
.provider-help p { margin: 0; color: var(--slate-500); font-size: 10px; }

/* Finance and anomalies */
.finance-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.finance-metric { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.86); }
.finance-metric.primary { border-color: transparent; background: var(--ink-950); color: #fff; }
.finance-metric span { color: var(--slate-500); font-size: 10px; }
.finance-metric.primary span { color: #8394aa; }
.finance-metric strong { display: block; margin-top: 9px; font-family: var(--font-mono); font-size: 21px; }
.finance-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr); gap: 16px; }
.finance-customer-list { display: grid; }
.finance-customer { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 14px 17px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.finance-customer:hover { background: var(--surface-soft); }
.finance-customer:last-child { border-bottom: 0; }
.finance-customer strong, .finance-customer small { display: block; }
.finance-customer small { color: var(--slate-500); font-size: 9px; }
.finance-customer b { font-family: var(--font-mono); font-size: 12px; }
.anomaly-summary { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.anomaly-card { min-height: 102px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.84); }
.anomaly-card.total { border-color: transparent; background: var(--ink-950); color: #fff; }
.anomaly-card span { color: var(--slate-500); font-size: 10px; }
.anomaly-card.total span { color: #8394aa; }
.anomaly-card strong { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 27px; }
.anomaly-board { display: grid; gap: 9px; }
.anomaly-item { display: grid; grid-template-columns: 7px minmax(0,1fr) 150px auto; align-items: center; gap: 14px; min-height: 72px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.87); box-shadow: var(--shadow-sm); }
.anomaly-item > i { width: 7px; height: 38px; border-radius: 5px; background: var(--amber-600); }
.anomaly-item.critical > i { background: var(--red-600); }
.anomaly-item.info > i { background: var(--blue-600); }
.anomaly-item h3 { margin: 0; font-size: 13px; }
.anomaly-item p { margin: 3px 0 0; color: var(--slate-500); font-size: 10px; }
.anomaly-item time { color: var(--slate-500); font-family: var(--font-mono); font-size: 10px; }

/* Settings */
.settings-layout { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: 16px; }
.settings-stack { display: grid; align-content: start; gap: 16px; }
.settings-list { display: grid; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong, .setting-row small { display: block; }
.setting-row small { color: var(--slate-500); font-size: 10px; }
.setting-row > span:last-child { text-align: right; }
.audit-list { max-height: 620px; overflow: auto; }
.audit-row { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 15px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border-bottom: 0; }
.audit-row time { color: var(--slate-500); font-family: var(--font-mono); font-size: 9px; }
.audit-row strong { display: block; font-size: 11px; }
.audit-row p { margin: 3px 0 0; color: var(--slate-500); font-size: 9px; overflow-wrap: anywhere; }

/* Drawer and dialogs */
dialog { color: var(--ink-950); }
dialog::backdrop { background: rgba(3,12,25,.45); backdrop-filter: blur(4px); }
.entity-drawer { width: min(560px, 100%); height: 100dvh; max-width: none; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: transparent; }
.entity-drawer.is-customer { width: min(1120px, calc(100% - 24px)); }
.entity-drawer[open] { animation: drawer-in .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes drawer-in { from { opacity: 0; transform: translateX(25px); } to { opacity: 1; transform: none; } }
.drawer-shell { height: 100%; display: flex; flex-direction: column; background: #f7f9fc; box-shadow: var(--shadow-xl); }
.drawer-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); backdrop-filter: blur(18px); }
.drawer-header h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.drawer-content { flex: 1; overflow: auto; padding: 20px; }
.drawer-section { margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.drawer-section > header { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-section h3 { margin: 0; font-size: 14px; }
.drawer-section > div { padding: 15px 16px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.detail-item { min-width: 0; padding: 11px; border-radius: 10px; background: var(--slate-100); }
.detail-item span, .detail-item strong { display: block; }
.detail-item span { color: var(--slate-500); font-size: 9px; }
.detail-item strong { margin-top: 4px; overflow-wrap: anywhere; font-size: 11px; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-form { display: grid; gap: 12px; }
.drawer-form .form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.route-editor { display: grid; gap: 8px; }
.route-row { display: grid; grid-template-columns: 28px minmax(0,1fr) 92px 64px 70px; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.route-row > b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--blue-100); color: var(--blue-700); font-family: var(--font-mono); font-size: 9px; }
.route-row strong { font-size: 11px; }
.route-row select, .route-row input { min-width: 0; height: 34px; border: 1px solid var(--slate-300); border-radius: 8px; background: #fff; }
.route-row input { padding: 0 8px; }
.route-move { display: flex; justify-content: flex-end; gap: 4px; }
.route-move .icon-button { width: 32px; height: 32px; }
.route-move svg { width: 16px; height: 16px; }
.customer-drawer-layout { display: grid; gap: 12px; }
.customer-drawer-layout .drawer-section { margin-bottom: 0; }
.customer-drawer-layout .drawer-section > header { padding: 10px 12px; }
.customer-drawer-layout .drawer-section > div { padding: 12px; }
.customer-drawer-overview-body { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 14px; }
.customer-drawer-identity { min-width: 0; display: grid; align-content: start; justify-items: start; gap: 10px; }
.customer-drawer-identity .customer-person { min-width: 0; }
.customer-drawer-overview-data { min-width: 0; display: grid; gap: 9px; }
.customer-overview-details { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.customer-business-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.customer-drawer-layout .detail-item { padding: 8px 9px; }
.customer-drawer-layout .detail-item strong { margin-top: 2px; font-size: 10px; }
.customer-drawer-workspace { display: grid; grid-template-columns: minmax(240px,.78fr) minmax(390px,1.25fr) minmax(300px,1fr); align-items: start; gap: 12px; }
.customer-drawer-stack { min-width: 0; display: grid; gap: 12px; }
.customer-drawer-layout .drawer-form { gap: 9px; }
.customer-credential-forms { display: grid; gap: 12px; }
.customer-route-section,
.customer-orders-section { min-width: 0; }
.customer-route-section .muted { margin: 0 0 10px; font-size: 10px; }
.customer-route-actions { margin-top: 10px; }
.customer-recent-orders { max-height: 420px; overflow: auto; scrollbar-color: var(--slate-300) transparent; }
.customer-recent-orders .finance-customer { min-width: 0; padding: 9px 11px; }
.customer-recent-orders .finance-customer span { min-width: 0; }
.customer-recent-orders .finance-customer strong,
.customer-recent-orders .finance-customer small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-recent-orders .finance-customer b { font-size: 10px; white-space: nowrap; }
.command-dialog { width: min(680px, calc(100% - 28px)); padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 18px; background: #fff; box-shadow: var(--shadow-xl); }
.command-shell > label { height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.command-shell > label svg { width: 20px; height: 20px; color: var(--slate-400); }
.command-shell input { flex: 1; border: 0; outline: 0; font-size: 16px; }
.command-results { max-height: 430px; overflow: auto; padding: 9px; }
.command-results > p { padding: 24px; color: var(--slate-500); text-align: center; }
.command-result { width: 100%; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; }
.command-result:hover, .command-result.is-active { background: var(--blue-100); }
.command-result > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--ink-950); color: #fff; font-size: 10px; font-weight: 700; }
.command-result strong, .command-result small { display: block; }
.command-result small { color: var(--slate-500); font-size: 10px; }
.command-result > em { color: var(--slate-500); font-size: 10px; font-style: normal; }
.command-shell footer { min-height: 43px; display: flex; align-items: center; gap: 16px; padding: 0 14px; border-top: 1px solid var(--line); color: var(--slate-500); font-size: 9px; }
.command-shell footer button { margin-left: auto; border: 0; background: transparent; color: var(--slate-500); }
.confirm-dialog { width: min(440px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 18px; background: #fff; box-shadow: var(--shadow-xl); }
.confirm-dialog form { padding: 26px; }
.confirm-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--red-100); color: var(--red-700); }
.confirm-icon svg { width: 22px; height: 22px; }
.confirm-dialog h2 { margin: 17px 0 7px; font-size: 20px; }
.confirm-dialog p { margin: 0 0 18px; color: var(--slate-600); }
.confirm-dialog textarea { width: 100%; padding: 10px; border: 1px solid var(--slate-300); border-radius: 10px; resize: vertical; }
.confirm-dialog form > div:last-child { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.toast-region { position: fixed; z-index: 1000; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 260px; max-width: 390px; display: grid; grid-template-columns: 9px minmax(0,1fr); gap: 11px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-md); animation: toast-in .25s ease both; }
.toast::before { content: ""; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--green-600); }
.toast.error::before { background: var(--red-600); }
.toast strong, .toast span { display: block; }
.toast strong { font-size: 11px; }
.toast span { color: var(--slate-500); font-size: 10px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mobile-nav { display: none; }

@media (max-width: 1320px) {
  .cockpit-grid { grid-template-columns: minmax(0,1fr); }
  .cockpit-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 1180px) {
  :root { --sidebar-w: 224px; }
  .ops-sidebar { padding-inline: 14px; }
  .brand-lockup strong { font-size: 14px; }
  .cockpit-grid { grid-template-columns: 1fr; }
  .cockpit-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finance-layout { grid-template-columns: 1fr; }
  .provider-lane { grid-template-columns: 34px minmax(150px,.7fr) minmax(360px,1.7fr); }
  .provider-lane-config { grid-column: 2 / -1; display: grid; grid-template-columns: minmax(170px,.55fr) minmax(220px,1fr); }
}

@media (max-width: 1100px) {
  .customers-desktop, .applications-desktop { display: none; }
  .customers-mobile, .applications-mobile { display: grid; overflow-x: visible; }
  .customer-drawer-workspace { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .customer-orders-section { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  body { padding-bottom: 68px; }
  .ops-sidebar { transform: translateX(-102%); transition: transform .24s cubic-bezier(.2,.8,.2,1); box-shadow: 16px 0 55px rgba(4,16,34,.25); }
  .ops-sidebar.is-open { transform: none; }
  .sidebar-scrim { position: fixed; z-index: 35; inset: 0; display: block; padding: 0; border: 0; background: rgba(4,14,28,.42); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .sidebar-scrim.is-open { opacity: 1; pointer-events: auto; }
  .ops-stage { margin-left: 0; }
  .ops-topbar { height: 62px; padding: 0 17px; }
  .mobile-menu { display: grid; }
  .command-search { flex: 1; width: auto; }
  .beijing-clock, .operator-chip { display: none; }
  .ops-main { padding: 26px 18px 34px; }
  .mobile-nav { position: fixed; z-index: 32; inset: auto 0 0; height: calc(64px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,1fr); padding: 6px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }
  .mobile-nav button { display: grid; justify-items: center; align-content: center; gap: 2px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--slate-500); font-size: 9px; }
  .mobile-nav button.is-active { color: var(--blue-700); background: var(--blue-100); }
  .mobile-nav svg { width: 19px; height: 19px; }
  .metric-strip { grid-template-columns: repeat(2,1fr); }
  .metric-card:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.09); }
  .metric-card:nth-child(4) { border-top: 1px solid rgba(255,255,255,.09); }
  .customer-summary, .finance-metrics { grid-template-columns: repeat(2,1fr); }
  .settings-layout { grid-template-columns: 1fr; }
  .provider-help-grid { grid-template-columns: 1fr; }
  .anomaly-item { grid-template-columns: 7px minmax(0,1fr) auto; }
  .anomaly-item time { display: none; }
  .order-user-picker-body { grid-template-columns: 1fr 1fr; }
  .order-user-all { grid-column: 1 / -1; }
  .order-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .order-metric:nth-child(4) { border-left: 0; border-top: 1px solid var(--ink-800); }
  .order-metric:nth-child(5) { border-top: 1px solid var(--ink-800); }
}

@media (max-width: 640px) {
  .login-screen { padding: 0; place-items: stretch; }
  .login-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .login-brand-panel { min-height: 270px; padding: 27px 24px; }
  .login-statement h1 { font-size: 34px; }
  .login-statement > p:last-child { margin-top: 14px; font-size: 13px; }
  .login-signal { display: none; }
  .login-form { padding: 38px 24px 50px; }
  .login-form header { margin-bottom: 26px; }
  .ops-topbar { gap: 8px; padding: 0 12px; }
  .command-search { justify-content: center; flex: 0 0 40px; padding: 0; }
  .command-search span, .command-search kbd { display: none; }
  .top-actions { margin-left: auto; }
  .pending-action { justify-content: center; padding-inline: 8px; }
  .pending-action > span { display: none; }
  .ops-main { padding: 23px 12px 30px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 30px; }
  .page-heading > div:first-child > p:last-child { max-width: 260px; font-size: 12px; }
  .page-actions { display: none; }
  .metric-strip { grid-template-columns: 1fr 1fr; border-radius: 17px; }
  .metric-card { min-height: 118px; padding: 17px; }
  .metric-card strong { font-size: 25px; }
  .business-grid { grid-template-columns: 1fr; }
  .cockpit-side { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .filter-search { grid-column: 1 / -1; }
  .filters .date-controls { grid-column: 1 / -1; }
  .date-controls { width: 100%; display: grid; grid-template-columns: repeat(2,1fr); }
  .date-controls label { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .date-controls label span { grid-column: 1 / -1; }
  .date-controls input { width: 100%; }
  .date-controls [data-apply-range] { grid-column: 1 / -1; }
  .customer-summary, .finance-metrics, .anomaly-summary { grid-template-columns: 1fr 1fr; }
  .anomaly-card.total { grid-column: 1 / -1; }
  .surface-header { align-items: flex-start; padding: 14px; }
  .surface-body { padding: 14px; }
  .data-table { min-width: 760px; }
  .provider-command-head { align-items: flex-start; padding: 18px; }
  .provider-command-head p { max-width: 210px; }
  .provider-sequence { padding: 13px; }
  .provider-foot { flex-direction: column; padding: 14px; }
  .provider-foot > div { justify-content: space-between; }
  .provider-foot .button-primary { width: 100%; }
  .finance-layout { gap: 12px; }
  .entity-drawer { width: 100%; }
  .drawer-content { padding: 12px; }
  .drawer-form .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .route-row { grid-template-columns: 26px minmax(0,1fr) 96px; }
  .route-row input { grid-column: 2; }
  .route-move { grid-column: 3; }
  .anomaly-item { grid-template-columns: 7px minmax(0,1fr); padding: 13px; }
  .anomaly-item .button { grid-column: 2; justify-self: start; }
  .audit-row { grid-template-columns: 1fr; gap: 5px; }
  .toast-region { right: 10px; bottom: 75px; left: 10px; }
  .toast { min-width: 0; max-width: none; }
  .order-view-tabs,
  .order-source-tabs { align-items: stretch; }
  .orders-workbench button { min-height: 44px; }
  .orders-workbench .quick-date { min-height: 44px; }
  .order-view-tabs button { flex: 1 1 0; }
  .order-source-tabs button { flex: 1 1 calc(33.333% - 4px); padding-inline: 7px; }
  .order-view-tabs > span,
  .order-source-tabs > span { width: 100%; margin-left: 0; padding: 4px 6px; }
  .order-filter-panel { padding: 0 12px; }
  .order-filter-line { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
  .order-filter-line > strong { padding-top: 0; }
  .order-user-picker > summary { grid-template-columns: minmax(0,1fr) auto; }
  .order-user-picker > summary span { display: none; }
  .order-user-picker-body { grid-template-columns: 1fr; padding: 9px; }
  .order-user-all { grid-column: auto; }
  .order-user-list { flex-wrap: wrap; padding: 3px 2px 7px; }
  .order-user-avatar { flex: 0 0 66px; }
  .order-search-row { grid-template-columns: 1fr; }
  .order-metrics { grid-template-columns: 1fr 1fr; }
  .order-metric { min-height: 98px; padding: 14px; }
  .order-metric:nth-child(3),
  .order-metric:nth-child(5) { border-left: 0; }
  .order-metric:nth-child(n+3) { border-top: 1px solid var(--ink-800); }
  .order-status-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 9px; }
  .order-status-tabs button { min-width: 0; padding-inline: 6px; white-space: normal; }
  .orders-desktop-table { display: none; }
  .orders-mobile-list { display: grid; }
  .order-results .table-pager { align-items: stretch; flex-direction: column; }
  .order-results .table-pager > div { display: grid; grid-template-columns: 1fr 1fr; }
  .order-mobile-card dl { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .mobile-menu,
  .command-search,
  .top-actions .icon-button,
  .pending-action { min-width: 44px; min-height: 44px; }
  .sidebar-footer button { min-height: 44px; }
  .entity-drawer.is-customer { width: 100%; }
  .entity-drawer .drawer-content { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .entity-drawer :is(button, input, select, textarea) { min-height: 44px; }
  .entity-drawer .route-move .icon-button { width: 44px; height: 44px; }
  .customer-drawer-overview-body { grid-template-columns: 1fr; }
  .customer-overview-details,
  .customer-business-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .customer-drawer-workspace { grid-template-columns: 1fr; }
  .customer-orders-section { grid-column: auto; }
  .page-actions .button { min-height: 44px; }
  .tab-bar button { min-width: 44px; }
  .cockpit-recent-desktop { display: none; }
  .customers-desktop { display: none; }
  .applications-desktop { display: none; }
  .finance-desktop { display: none; }
  .cockpit-recent-mobile { display: grid; overflow-x: visible; }
  .customers-mobile { display: grid; overflow-x: visible; }
  .applications-mobile { display: grid; overflow-x: visible; }
  .finance-mobile { display: grid; overflow-x: visible; }
  .cockpit-grid > *,
  .finance-layout > *,
  .settings-layout > *,
  .surface,
  .admin-mobile-card { min-width: 0; }
  #viewRoot :is(button, input, select) { min-height: 44px; }
  #viewRoot .row-action { min-height: 44px; display: inline-flex; align-items: center; }
  .filters { grid-template-columns: 1fr; }
  .filters .filter-search,
  .filters .date-controls { grid-column: auto; }
  .filters > span:empty { display: none; }
  .table-pager { align-items: stretch; flex-direction: column; }
  .table-pager > div { display: grid; grid-template-columns: 1fr 1fr; }
  .customer-person { min-width: 0; }
  .customer-person strong,
  .customer-person small { white-space: normal; overflow-wrap: anywhere; }
  .route-brief span { white-space: normal; overflow-wrap: anywhere; }
  .provider-command-head { flex-direction: column; }
  .provider-command-head .button { width: 100%; }
  .provider-sequence-note { align-items: flex-start; flex-direction: column; }
  .provider-lane {
    min-width: 0;
    grid-template-columns: 34px minmax(0,1fr);
    gap: var(--space-sm);
    padding: var(--space-sm);
  }
  .provider-lane-title { grid-column: 2; }
  .provider-lane-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .provider-health-stat { grid-column: 1 / -1; }
  .provider-lane .lane-stat { display: block; min-width: 0; }
  .provider-lane-config { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .provider-lane-config label { grid-template-columns: 48px minmax(0,1fr); }
  .provider-lane-config > label > span { flex-basis: 48px; }
  .provider-lane select,
  .provider-lane input,
  .provider-lane .icon-button { width: 44px; min-width: 44px; min-height: 44px; }
  .provider-lane .lane-controls { justify-content: stretch; }
  .provider-lane .lane-controls label { flex: 1; }
  .provider-lane input { width: 100%; }
  .provider-foot > div { min-width: 0; flex-wrap: wrap; }
  .provider-foot input { min-height: 44px; }
  .provider-mini .mini-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .setting-row { min-width: 0; align-items: flex-start; flex-wrap: wrap; }
  .setting-row > span:first-child { min-width: 0; flex: 1 1 180px; }
  .setting-row small,
  .audit-row p { overflow-wrap: anywhere; }
  .audit-row { min-width: 0; grid-template-columns: 1fr; }
  .finance-metric,
  .summary-card { min-width: 0; }
  .finance-metric strong,
  .summary-card strong { overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
  .admin-mobile-card dl { grid-template-columns: 1fr; }
  .admin-mobile-card .mobile-card-wide { grid-column: auto; }
  .customer-overview-details,
  .customer-business-metrics { grid-template-columns: 1fr; }
  .provider-lane-metrics { grid-template-columns: 1fr; }
  .provider-health-stat { grid-column: auto; }
}

.secondary-admin-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-md); padding: var(--space-lg); }
.secondary-admin-card { min-width: 0; padding: var(--space-md); border: var(--rule-thin) solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-paper-2); }
.secondary-admin-card > header { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: var(--space-sm); }
.secondary-admin-card > header strong, .secondary-admin-card > header small { display: block; overflow-wrap: anywhere; }
.secondary-admin-card > header small { margin-top: var(--space-2xs); color: var(--color-muted); }
.secondary-admin-card dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-sm); margin: var(--space-md) 0; padding: var(--space-sm) 0; border-block: var(--rule-thin) solid var(--color-rule); }
.secondary-admin-card dt { color: var(--color-muted); font-size: var(--text-xs); }
.secondary-admin-card dd { margin: var(--space-2xs) 0 0; overflow-wrap: anywhere; font-weight: 700; }
.secondary-admin-card footer { display: flex; justify-content: flex-end; }
@media (max-width: 1100px) { .secondary-admin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 680px) { .secondary-admin-grid { grid-template-columns: 1fr; padding: var(--space-md); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
