:root {
  --bg: #f2f6f8;
  --surface: #ffffff;
  --surface-2: #f7fafb;
  --ink: #17262e;
  --muted: #5b6e79;
  --subtle: #7a8b95;
  --line: #dce5e9;
  --line-strong: #cbd8de;
  --primary: #087f74;
  --primary-dark: #06665e;
  --primary-soft: #e3f4f1;
  --blue: #2d6fc9;
  --blue-soft: #eaf2fc;
  --violet: #6c52bf;
  --violet-soft: #f0edfb;
  --success: #147758;
  --success-soft: #e5f4ee;
  --warning: #98620e;
  --warning-soft: #fff3d9;
  --danger: #b43f45;
  --danger-soft: #fdecee;
  --shadow: 0 12px 30px rgba(29, 55, 68, 0.07);
  --radius: 14px;
  --sidebar: 248px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { display: block; }
.ops-icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible {
  outline: 3px solid rgba(8, 127, 116, 0.24);
  outline-offset: 2px;
}

[hidden] { display: none !important; }
.ops-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.ops-body { min-height: 100vh; background: var(--bg); }

.ops-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 26px 18px;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}

.ops-brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px; }
.ops-brand > span:last-child { display: grid; gap: 1px; }
.ops-brand b { font-size: 1.18rem; letter-spacing: 0.01em; }
.ops-brand small { color: var(--muted); font-size: 0.78rem; }

.ops-brand-mark {
  display: flex !important;
  width: 38px;
  height: 38px;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  border-radius: 11px;
  background: var(--primary);
  box-shadow: 0 7px 16px rgba(8, 127, 116, 0.2);
}

.ops-brand-mark i { display: block; width: 4px; border-radius: 3px; background: #fff; }
.ops-brand-mark i:nth-child(1) { height: 9px; opacity: 0.72; }
.ops-brand-mark i:nth-child(2) { height: 17px; }
.ops-brand-mark i:nth-child(3) { height: 13px; opacity: 0.88; }

.ops-nav { display: grid; gap: 6px; margin-top: 42px; }
.ops-nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 11px;
  color: #526572;
  font-size: 0.92rem;
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease;
}
.ops-nav a:hover { color: var(--ink); background: #edf4f4; }
.ops-nav a.active { color: var(--primary-dark); background: var(--primary-soft); }
.ops-nav-icon { display: grid; width: 22px; height: 22px; place-items: center; }
.ops-nav-icon .ops-icon { width: 20px; height: 20px; }
.ops-nav em {
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 5px;
  color: #6d7d87;
  background: #e8eef1;
  font-size: 0.68rem;
  font-style: normal;
}

.ops-sidebar-foot {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 18px 8px 0;
  border-top: 1px solid var(--line);
}
.ops-user-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 800;
}
.ops-sidebar-foot div:nth-child(2) { display: grid; }
.ops-sidebar-foot b { font-size: 0.86rem; }
.ops-sidebar-foot small { margin-top: 1px; color: var(--muted); font-size: 0.76rem; }
.ops-sidebar-foot > a { color: var(--muted); font-size: 0.78rem; }
.ops-logout { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 5px; }
.ops-sidebar-foot .ops-logout .ops-icon { width: 16px; height: 16px; }

.ops-main {
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: 44px clamp(28px, 4vw, 64px) 72px;
}
.ops-main > * { width: min(100%, 1480px); margin-right: auto; margin-left: auto; }
.ops-mobile-head, .ops-bottom-nav { display: none; }

.ops-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}
.ops-page-head h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.ops-page-head p { max-width: 72ch; margin: 0; color: var(--muted); font-size: 0.94rem; }

.ops-head-actions { display: flex; align-items: flex-end; gap: 10px; }
.ops-field-label { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.ops-date-field { display: grid; gap: 7px; }
.ops-date-picker { position: relative; }
.ops-date-trigger {
  display: grid;
  min-width: 210px;
  min-height: 44px;
  grid-template-columns: 20px 1fr 18px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
}
.ops-date-trigger:hover { border-color: #93bcb7; background: #fbfdfd; }
.ops-date-trigger[aria-expanded="true"] { border-color: #69afa8; box-shadow: 0 0 0 3px var(--primary-soft); }
.ops-date-trigger svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--primary); }
.ops-date-trigger .ops-date-chevron { color: var(--subtle); }

.ops-calendar {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 326px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(24, 48, 61, 0.18);
}
.ops-calendar-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; }
.ops-calendar-head strong { font-size: 0.98rem; text-align: center; }
.ops-calendar-head button,
.ops-calendar-days button {
  min-width: 38px;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
}
.ops-calendar-head button { display: grid; color: var(--muted); place-items: center; }
.ops-calendar-head button .ops-icon { width: 20px; height: 20px; }
.ops-calendar-head button:hover, .ops-calendar-days button:hover { background: var(--primary-soft); }
.ops-calendar-week, .ops-calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.ops-calendar-week { margin-top: 10px; color: var(--subtle); font-size: 0.72rem; font-weight: 700; text-align: center; }
.ops-calendar-week span { padding: 7px 0; }
.ops-calendar-days button { font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.ops-calendar-days button.outside { color: #a6b1b7; }
.ops-calendar-days button.today { color: var(--primary-dark); font-weight: 800; box-shadow: inset 0 0 0 1px #8cc8c2; }
.ops-calendar-days button.selected { color: #fff; background: var(--primary); font-weight: 800; box-shadow: none; }
.ops-calendar-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 11px; border-top: 1px solid var(--line); }
.ops-calendar-foot button { min-height: 38px; padding: 0 9px; border: 0; color: var(--primary-dark); background: transparent; font-size: 0.78rem; font-weight: 700; }
.ops-calendar-foot button:last-child { border-radius: 8px; color: #fff; background: var(--primary); }
.ops-calendar-foot button:disabled { color: #9aa9b0; cursor: default; opacity: 0.62; }

.ops-filters select,
.ops-filter-input,
.service-controls select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: var(--surface);
}
.ops-filters select:focus,
.ops-filter-input:focus,
.service-controls select:focus { border-color: #69afa8; box-shadow: 0 0 0 3px var(--primary-soft); }

.ops-button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 750;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.ops-button:active { transform: translateY(1px); }
.ops-button.primary { color: #fff; background: var(--primary); }
.ops-button.primary:hover { background: var(--primary-dark); }
.ops-button.secondary { color: #3e525e; border-color: var(--line-strong); background: var(--surface); }
.ops-button.secondary:hover { border-color: #9db9b6; background: #f9fcfc; }

/* Photo evidence catalog -------------------------------------------------- */
.report-page-head .ops-button { display: inline-flex; flex: none; align-items: center; gap: 8px; }
.report-page-head .ops-button .ops-icon { width: 18px; height: 18px; }
.catalog-notice {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: -8px 0 20px;
  padding: 13px 16px;
  border-radius: 12px;
  color: #704a0e;
  background: var(--warning-soft);
}
.catalog-notice b { flex: none; font-size: 0.88rem; }
.catalog-notice span { font-size: 0.82rem; }
.catalog-strip { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 2fr); margin-bottom: 24px; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.catalog-inventory { display: grid; align-content: center; gap: 12px; min-height: 156px; padding: 24px; color: #e7f4f3; background: #173b40; }
.catalog-inventory .catalog-kicker { color: #b9d4d2; font-size: 0.75rem; font-weight: 750; }
.catalog-inventory > p { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.catalog-inventory > p strong { color: #fff; font-size: 2rem; font-weight: 820; line-height: 1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.catalog-inventory > p span { color: #c6dcda; font-size: 0.8rem; }
.catalog-inventory dl { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.catalog-inventory dl > div { display: flex; align-items: baseline; gap: 6px; }
.catalog-inventory dt { color: #9fc2bf; font-size: 0.7rem; }
.catalog-inventory dd { margin: 0; color: #eef8f7; font-size: 0.78rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.catalog-gates { display: grid; align-content: center; gap: 16px; min-width: 0; padding: 20px 24px; }
.catalog-gates > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.catalog-gates > header > div { display: grid; gap: 2px; }
.catalog-gates > header b { font-size: 0.9rem; }
.catalog-gates > header span { color: var(--muted); font-size: 0.72rem; }
.catalog-gates > header small { flex: none; color: var(--primary); font-size: 0.7rem; font-weight: 750; }
.catalog-gate-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }
.catalog-gate-grid > div { display: grid; min-width: 0; gap: 2px; padding: 0 16px; border-left: 1px solid var(--line); }
.catalog-gate-grid > div:first-child { padding-left: 0; border-left: 0; }
.catalog-gate-grid dt { color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.catalog-gate-grid dd { margin: 0; color: var(--ink); font-size: 1.25rem; font-weight: 820; line-height: 1.25; font-variant-numeric: tabular-nums; }
.catalog-gate-grid small { overflow: hidden; color: var(--subtle); font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }
.catalog-gate-grid .is-ready dd { color: var(--success); }
.catalog-gate-grid .is-review dd { color: var(--warning); }
.ops-filters.photo-search-form {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) minmax(180px, 1fr) minmax(150px, 0.78fr) 150px 150px auto;
  grid-template-areas: "query group status from to actions";
  align-items: end;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.photo-query { grid-area: query; }
.photo-group { grid-area: group; }
.photo-status { grid-area: status; }
.photo-date-from { grid-area: from; }
.photo-date-to { grid-area: to; }
.photo-search-form .ops-filter-field { display: grid; min-width: 0; gap: 6px; }
.photo-search-form .ops-filter-field > span:first-child { color: var(--muted); font-size: 0.75rem; font-weight: 750; }
.photo-search-form .ops-select-shell select { width: 100%; min-width: 0; min-height: 46px; padding-right: 38px; appearance: none; font-size: 0.86rem; font-weight: 650; }
.photo-search-form .ops-date-field { gap: 6px; }
.photo-search-form .ops-date-picker,
.photo-search-form .ops-date-trigger { width: 100%; min-width: 0; }
.photo-search-form .ops-date-trigger { min-height: 46px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.photo-search-form .ops-date-trigger [data-date-label] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-date-from .ops-calendar { right: auto; left: 0; }
.photo-search-actions { display: grid; grid-area: actions; grid-template-columns: auto auto; gap: 8px; }
.photo-search-form .ops-button, .photo-reset { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.photo-results-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 2px 12px; }
.photo-results-head > div:first-child { display: grid; gap: 2px; }
.photo-results-head h2 { margin: 0; font-size: 1rem; letter-spacing: -0.01em; }
.photo-results-head p, .photo-sort-label { margin: 0; color: var(--muted); font-size: 0.75rem; }
.photo-download-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.photo-select-page { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; color: #425965; font-size: 0.76rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.photo-select-page input, .photo-select-checkbox { width: 17px; height: 17px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.photo-selected-count { min-width: 60px; color: var(--muted); font-size: 0.74rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.photo-download-tools .ops-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; white-space: nowrap; }
.photo-download-tools .ops-icon { width: 17px; height: 17px; }
.photo-evidence-list {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.photo-evidence-row {
  position: relative;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.photo-select-checkbox { position: absolute; top: 24px; left: 28px; z-index: 2; border-radius: 4px; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9); }
.photo-evidence-row:last-child { border-bottom: 0; }
.photo-evidence-row:focus-visible { outline: none; box-shadow: inset 0 0 0 3px rgba(8, 127, 116, 0.24); }
.photo-thumb {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  align-self: start;
  overflow: hidden;
  border-radius: 11px;
  background: #14272d;
}
.photo-thumb::after { content: "查看原图"; position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; border-radius: 6px; color: #fff; background: rgba(23, 38, 46, 0.78); font-size: 0.68rem; font-weight: 750; opacity: 0; transition: opacity 160ms ease; }
.photo-thumb:hover::after, .photo-thumb:focus-visible::after { opacity: 1; }
.photo-thumb img { display: block; width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: contain; object-position: center; transition: transform 260ms cubic-bezier(.2,.8,.2,1); }
.photo-thumb:hover img { transform: scale(1.025); }
.photo-evidence-main { display: grid; min-width: 0; gap: 8px; }
.photo-evidence-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px; }
.photo-evidence-title > div { display: grid; min-width: 0; gap: 3px; }
.photo-evidence-title > .photo-row-actions { display: flex; align-items: center; gap: 8px; }
.photo-evidence-title b { overflow-wrap: anywhere; font-size: 1rem; }
.photo-evidence-title > div:first-child > span { color: var(--muted); font-size: 0.77rem; }
.photo-single-download { display: inline-flex; min-height: 32px; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--primary-dark); background: var(--surface); font-size: 0.72rem; font-weight: 750; }
.photo-single-download:hover { border-color: #91bcb7; background: var(--primary-soft); }
.photo-single-download .ops-icon { width: 15px; height: 15px; }
.photo-script { display: -webkit-box; margin: 0; overflow: hidden; color: #304955; font-size: 0.84rem; font-weight: 700; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.photo-ocr-block { display: grid; max-width: 96ch; gap: 3px; }
.photo-ocr-block > span { color: var(--subtle); font-size: 0.68rem; font-weight: 750; }
.photo-ocr { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 0.8rem; line-height: 1.5; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.photo-ocr-details { margin-top: 1px; color: var(--muted); font-size: 0.75rem; }
.photo-ocr-details summary { width: max-content; color: var(--primary-dark); font-weight: 700; cursor: pointer; }
.photo-ocr-details p { max-height: 280px; margin: 8px 0 0; padding: 12px; overflow: auto; border-radius: 10px; color: #425965; background: var(--surface-2); line-height: 1.55; white-space: pre-wrap; }
.photo-provenance { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 2px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.photo-provenance > div { display: flex; min-width: 0; gap: 6px; }
.photo-provenance dt { color: var(--subtle); font-size: 0.72rem; font-weight: 750; }
.photo-provenance dd { max-width: 42ch; margin: 0; overflow: hidden; color: #455b67; font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.photo-empty { padding: 58px 24px; text-align: center; }
.photo-empty b { font-size: 1rem; }
.photo-empty p { margin: 7px auto 0; color: var(--muted); font-size: 0.82rem; }
.photo-empty .ops-button { display: inline-flex; align-items: center; justify-content: center; margin-top: 16px; }
#photo-results > .ops-pagination { margin-bottom: 20px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.report-recovery-card { min-width: 0; margin-top: 28px; contain: inline-size; }
.report-recovery-card .ops-table-wrap { width: 100%; max-width: 100%; contain: inline-size layout paint; }
.restricted-access-card { display: flex; max-width: 620px; align-items: flex-start; gap: 18px; margin: 12vh auto 0; padding: 28px; }
.restricted-access-card > span { font-size: 1.75rem; line-height: 1; }
.restricted-access-card h1 { margin: 0 0 8px; font-size: 1.25rem; }
.restricted-access-card p { margin: 0 0 20px; color: var(--muted); }
.recovery-number.success { color: var(--success); font-weight: 850; }

@media (max-width: 1540px) {
  .ops-filters.photo-search-form { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "query query group status" "from to actions actions"; }
  .photo-search-actions { grid-template-columns: 1fr auto; }
  .photo-search-form .ops-button { width: 100%; }
}

@media (max-width: 1000px) {
  #photo-results > .ops-pagination { display: grid; min-height: 0; gap: 10px; padding: 12px 14px 14px; }
  #photo-results .ops-pagination-controls { width: 100%; justify-content: space-between; gap: 7px; }
  #photo-results .ops-page-number:not(.current):not(.neighbor),
  #photo-results .ops-page-gap { display: none; }
  #photo-results .ops-page-size { margin-left: auto; }
  .report-recovery-card .ops-table-wrap { overflow: visible; contain: none; }
  .report-recovery-card .ops-table { min-width: 0; }
  .report-recovery-card .ops-table thead { display: none; }
  .report-recovery-card .ops-table,
  .report-recovery-card .ops-table tbody,
  .report-recovery-card .ops-table tr,
  .report-recovery-card .ops-table td { display: block; width: 100%; }
  .report-recovery-card .ops-table tr { padding: 12px 18px; border-bottom: 1px solid var(--line); }
  .report-recovery-card .ops-table tr:last-child { border-bottom: 0; }
  .report-recovery-card .ops-table td { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); align-items: start; gap: 12px; padding: 6px 0; border: 0; }
  .report-recovery-card .ops-table td::before { color: var(--subtle); font-size: 0.72rem; font-weight: 700; content: attr(data-label); }
  .report-recovery-card .ops-table td.empty { display: block; }
  .report-recovery-card .ops-table td.empty::before { content: none; }
}

@media (max-width: 900px) {
  .catalog-strip { grid-template-columns: 1fr; }
  .catalog-inventory { min-height: 0; grid-template-columns: auto 1fr; align-items: end; }
  .catalog-inventory .catalog-kicker, .catalog-inventory dl { grid-column: 1 / -1; }
  .catalog-inventory > p { justify-self: end; }
  .ops-filters.photo-search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "query query" "group status" "from to" "actions actions"; }
  .photo-evidence-row { grid-template-columns: 170px minmax(0, 1fr); gap: 16px; }
  .photo-sort-label { display: none; }
}

@media (max-width: 620px) {
  .report-page-head { align-items: flex-start; }
  .report-page-head .ops-button { width: 100%; justify-content: center; }
  .catalog-notice { align-items: flex-start; flex-direction: column; gap: 3px; }
  .catalog-inventory { display: grid; padding: 20px; }
  .catalog-inventory > p { justify-self: start; }
  .catalog-gates { padding: 20px; }
  .catalog-gate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .catalog-gate-grid > div { padding: 0 12px; }
  .catalog-gate-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .catalog-gate-grid > div:last-child { grid-column: 1 / -1; padding-top: 12px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .ops-filters.photo-search-form { grid-template-columns: 1fr; grid-template-areas: "query" "group" "status" "from" "to" "actions"; padding: 16px; }
  .photo-search-actions { grid-template-columns: minmax(0, 1fr) auto; }
  .photo-results-head { align-items: start; }
  .photo-results-head { display: grid; gap: 10px; }
  .photo-download-tools { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .photo-download-tools::-webkit-scrollbar { display: none; }
  .photo-selected-count { margin-left: auto; }
  .photo-download-page { display: none !important; }
  .photo-evidence-row { grid-template-columns: 1fr; padding: 14px; }
  .photo-select-checkbox { top: 22px; left: 22px; }
  .photo-thumb { aspect-ratio: 16 / 9; }
  .photo-evidence-title { gap: 10px; }
  .photo-evidence-title .status-chip { flex: none; }
  .photo-single-download span { display: none; }
  .photo-provenance { display: grid; }
}
.ops-button:disabled { cursor: wait; opacity: 0.55; transform: none; }

.ops-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding: 19px 22px;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.ops-flow > div { display: grid; grid-template: auto auto / 34px 1fr; column-gap: 10px; align-items: center; min-width: 132px; }
.ops-flow > div > span {
  display: grid;
  width: 32px;
  height: 32px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 50%;
  color: #6f7f89;
  background: #eaf0f2;
  font-size: 0.75rem;
  font-weight: 800;
}
.ops-flow b { font-size: 0.88rem; }
.ops-flow small { margin-top: 1px; color: var(--muted); font-size: 0.75rem; }
.ops-flow-arrow { display: grid; color: #91a2ab; place-items: center; }
.ops-flow-arrow .ops-icon { width: 18px; height: 18px; }
.ops-flow .done > span, .ops-flow .live > span { color: var(--primary-dark); background: var(--primary-soft); }
.ops-flow .live > span { box-shadow: 0 0 0 4px rgba(8, 127, 116, 0.07); }
.ops-flow .future { opacity: 0.62; }
.ops-flow .future > span { border: 1px dashed #99a8b0; background: transparent; }

.ops-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.ops-kpi {
  position: relative;
  min-height: 150px;
  padding: 21px 20px 18px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.ops-kpi.accent::after { position: absolute; inset: 0 0 auto; height: 3px; background: var(--primary); content: ""; }
.ops-kpi p { margin: 17px 0 7px; color: var(--muted); font-size: 0.82rem; font-weight: 750; }
.ops-kpi strong { display: block; font-size: 2rem; line-height: 1.05; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.ops-kpi strong.kpi-word { font-size: 1.62rem; }
.ops-kpi strong.kpi-state { display: flex; align-items: center; gap: 9px; }
.kpi-state i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: currentColor; }
.kpi-state.success { color: var(--success); }
.kpi-state.warning { color: var(--warning); }
.kpi-state.danger { color: var(--danger); }
.ops-kpi small { display: block; margin-top: 8px; color: var(--subtle); font-size: 0.75rem; line-height: 1.45; }
.pending-groups-kpi { display: flex; min-width: 0; flex-direction: column; }
.pending-groups-summary { flex: none; }
.pending-group-list { display: grid; max-height: 92px; gap: 0; margin: 10px -4px 0; padding: 0 4px; overflow-y: auto; list-style: none; scrollbar-color: #b8cbc9 transparent; scrollbar-width: thin; }
.pending-group-list li { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.pending-group-list span { min-width: 0; color: #38515d; font-size: 0.75rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.pending-group-list b { padding-top: 1px; color: var(--primary-dark); font-size: 0.72rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pending-group-list .is-empty span { color: var(--subtle); font-weight: 500; }
.kpi-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 1rem;
  font-weight: 750;
}
.kpi-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kpi-icon.mint { color: #227558; background: #e9f5ef; }
.kpi-icon.danger { color: var(--danger); background: var(--danger-soft); }
.kpi-icon.violet { color: var(--violet); background: var(--violet-soft); }
.kpi-icon.success { color: var(--success); background: var(--success-soft); }
.kpi-icon.warning { color: var(--warning); background: var(--warning-soft); }

.ops-grid { display: grid; gap: 18px; margin-bottom: 20px; }
.ops-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ops-card { overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.ops-main > .ops-card { margin-bottom: 20px; }
.ops-dashboard-content > .ops-card { margin-bottom: 20px; }
.ops-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 21px 22px; border-bottom: 1px solid var(--line); }
.ops-card-head h2, .audit-launch h2 { margin: 0 0 5px; font-size: 1.06rem; line-height: 1.3; }
.ops-card-head p, .audit-launch p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.ops-card-head > a { display: inline-flex; min-height: 44px; align-items: center; padding: 6px 0; color: var(--primary-dark); font-size: 0.82rem; font-weight: 750; }
.live-dot { padding: 6px 9px; border-radius: 999px; color: var(--success); background: var(--success-soft); font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.live-dot::before { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--success); content: ""; }

.automation-card { container-type: inline-size; }
.service-list { padding: 2px 22px 6px; }
.service-row { display: grid; min-width: 0; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-overview { display: grid; min-width: 0; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 13px; }
.service-symbol { position: relative; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--primary-dark); background: var(--primary-soft); }
.service-symbol > .ops-icon { width: 21px; height: 21px; }
.service-symbol i { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border: 3px solid var(--surface); border-radius: 50%; background: currentColor; }
.service-symbol.success { color: var(--success); background: var(--success-soft); }
.service-symbol.info { color: var(--blue); background: var(--blue-soft); }
.service-symbol.warning { color: var(--warning); background: var(--warning-soft); }
.service-symbol.danger { color: var(--danger); background: var(--danger-soft); }
.service-symbol.neutral { color: #6b7f89; background: #edf2f4; }
.service-copy { min-width: 0; }
.service-title-line { display: flex; min-width: 0; align-items: center; gap: 8px; flex-wrap: wrap; }
.service-title-line > b { font-size: 0.94rem; line-height: 1.35; }
.service-copy > small { display: block; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 0.76rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.service-policy-pill { display: inline-flex; margin-top: 7px; padding: 4px 7px; border-radius: 999px; color: #2a716a; background: #e6f4f2; font-size: 0.67rem; font-weight: 780; line-height: 1.2; }
.service-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.service-meta > div { display: grid; min-width: 0; gap: 3px; padding: 2px 15px; border-left: 1px solid var(--line); }
.service-meta > div:first-child { padding-left: 0; border-left: 0; }
.service-meta span { color: var(--subtle); font-size: 0.7rem; font-weight: 700; }
.service-meta b { overflow: hidden; color: var(--ink); font-size: 0.82rem; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.service-controls { display: grid; min-width: 0; grid-template-columns: minmax(130px, 1fr) auto; align-items: end; gap: 8px 12px; }
.service-policy { display: grid; min-width: 0; gap: 6px; }
.service-policy > span:first-child, .service-power > span > b { color: var(--muted); font-size: 0.7rem; font-weight: 750; }
.service-select-shell { position: relative; display: block; min-width: 0; }
.service-select-shell select { width: 100%; min-width: 0; min-height: 42px; padding: 0 40px 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; appearance: none; color: var(--ink); background: var(--surface); font-size: 0.84rem; font-weight: 720; outline: none; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.service-select-shell select:hover { border-color: #9dbdb9; background: #fbfdfd; }
.service-select-shell select:focus-visible { border-color: #68aca5; box-shadow: 0 0 0 3px var(--primary-soft); }
.service-select-shell select:disabled { cursor: wait; color: var(--subtle); background: var(--surface-2); }
.service-select-shell > .ops-icon { position: absolute; top: 50%; right: 12px; width: 17px; height: 17px; color: var(--subtle); pointer-events: none; transform: translateY(-50%); }
.service-power { display: flex; min-width: 126px; align-items: center; justify-content: flex-end; gap: 10px; }
.service-power > span { display: grid; gap: 1px; text-align: right; }
.service-power > span > small { color: var(--subtle); font-size: 0.69rem; }
.service-schedule-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.4; }
.service-schedule-note::before { display: inline-block; width: 5px; height: 5px; margin: 0 7px 1px 1px; border-radius: 50%; background: #75aaa4; content: ""; }
.service-manual-action { grid-column: 1 / -1; width: 100%; min-height: 38px; }
.switch { position: relative; display: grid; width: 48px; height: 44px; flex: none; place-items: center; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { display: block; width: 46px; height: 26px; border-radius: 999px; background: #bcc9ce; transition: background 180ms ease; }
.switch span::before { position: absolute; top: 12px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(26, 49, 60, 0.24); content: ""; transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid rgba(8, 127, 116, 0.24); outline-offset: 2px; }
.switch input:disabled + span { cursor: wait; opacity: 0.58; }

@container (min-width: 500px) and (max-width: 679px) {
  .service-row.is-editable { grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.72fr); align-items: center; gap: 16px 22px; }
  .service-row.is-editable .service-controls { grid-column: 1 / -1; }
}

@container (min-width: 680px) {
  .service-row.is-editable { grid-template-columns: minmax(190px, 1fr) minmax(145px, 0.62fr) minmax(280px, 1.12fr); align-items: center; gap: 20px; }
  .service-row.is-readonly { grid-template-columns: minmax(230px, 1fr) minmax(180px, 0.7fr); align-items: center; }
  .service-meta { grid-template-columns: 1fr; gap: 5px; }
  .service-meta > div { grid-template-columns: auto minmax(0, 1fr); gap: 9px; padding: 0; border-left: 0; }
  .service-meta b { text-align: right; }
}

@media (min-width: 761px) {
  .automation-card .ops-card-head { padding-top: 18px; padding-bottom: 18px; }
  .service-row.is-editable { display: flex; align-items: center; gap: 16px 18px; padding: 16px 0; flex-wrap: wrap; }
  .service-row.is-editable .service-overview { flex: 1 1 260px; }
  .service-row.is-editable .service-meta { flex: 0 0 260px; }
  .service-row.is-editable .service-meta b { overflow: visible; text-overflow: clip; }
  .service-row.is-editable .service-controls { flex: 0 1 340px; gap: 6px 12px; }
  .service-row.is-editable .service-policy { gap: 0; }
  .service-row.is-editable .service-policy > span:first-child { display: none; }
  .service-row.is-readonly { display: flex; align-items: center; gap: 18px; padding: 18px 0; }
  .service-row.is-readonly .service-overview { flex: 1 1 280px; }
  .service-row.is-readonly .service-meta { flex: 0 1 200px; }
}

.trend-chart { --trend-label-space: 34px; position: relative; height: 292px; }
.trend-chart-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: none; }
.trend-chart > .trend-chart-scroll { position: absolute; inset: 0 0 0 56px; }
.trend-chart-scroll::-webkit-scrollbar { display: none; }
.trend-unit { position: absolute; top: 12px; left: 27px; color: var(--subtle); font-size: 0.72rem; }
.trend-y-axis { position: absolute; top: 37px; bottom: calc(38px + var(--trend-label-space)); left: 14px; width: 34px; }
.trend-y-axis span { position: absolute; right: 0; color: var(--subtle); font-size: 0.72rem; font-variant-numeric: tabular-nums; transform: translateY(50%); }
.trend-plot { position: relative; min-width: max(100%, calc(var(--trend-days, 14) * 46px + 20px)); height: 100%; }
.trend-grid { position: absolute; inset: 37px 20px calc(38px + var(--trend-label-space)) 0; }
.trend-grid-line { position: absolute; right: 0; left: 0; border-top: 1px solid #dfe8eb; }
.trend-bars { position: absolute; inset: 37px 20px 38px 0; display: grid; grid-template-columns: repeat(var(--trend-days, 14), minmax(30px, 1fr)); gap: 6px; }
.trend-col { --bar: 0%; position: relative; display: grid; min-width: 0; grid-template-rows: 1fr 27px; gap: 7px; align-items: end; }
.trend-bar-slot { position: relative; display: block; width: min(34px, calc(100% - 8px)); height: 100%; margin: 0 auto; }
.trend-bar-mark { position: absolute; right: 0; bottom: 0; left: 0; min-height: 2px; height: var(--bar); }
.trend-bar-mark > i { display: block; width: 100%; height: 100%; border-radius: 6px 6px 2px 2px; background: var(--primary); opacity: 0.9; }
.trend-value { position: absolute; bottom: calc(100% + 6px); left: 50%; min-width: max-content; color: #334a55; font-size: 0.74rem; font-weight: 800; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; transform: translateX(-50%); }
.trend-col b { color: var(--muted); font-size: 0.72rem; font-weight: 650; text-align: center; white-space: nowrap; }

/* Gracefully render a dashboard HTML response cached before the fixed-axis chart markup shipped. */
.ops-card > .trend-chart-scroll > .trend-chart { min-width: max(100%, calc(76px + var(--trend-days, 14) * 46px)); padding: 37px 20px 38px 56px; }
.ops-card > .trend-chart-scroll .trend-plot { min-width: 0; height: calc(100% - var(--trend-label-space)); }
.ops-card > .trend-chart-scroll .trend-grid { inset: 0; }
.ops-card > .trend-chart-scroll .trend-bars { inset: 0; }
.ops-card > .trend-chart-scroll .trend-col { display: block; height: 100%; }
.ops-card > .trend-chart-scroll .trend-bar-slot { display: flex; height: 100%; align-items: flex-end; }
.ops-card > .trend-chart-scroll .trend-bar-slot > i { display: block; width: 100%; min-height: 2px; height: var(--bar); border-radius: 6px 6px 2px 2px; background: var(--primary); opacity: 0.9; }
.ops-card > .trend-chart-scroll .trend-bar-slot > .trend-value { bottom: calc(var(--bar) + 6px); }
.ops-card > .trend-chart-scroll .trend-col > .trend-value { right: 0; bottom: calc(var(--bar) + 6px); left: 0; transform: none; }
.ops-card > .trend-chart-scroll .trend-col > b { position: absolute; top: calc(100% + 7px); right: 0; left: 0; line-height: 27px; }

.api-total-badge { display: flex; align-items: baseline; gap: 5px; color: var(--muted); white-space: nowrap; }
.api-total-badge span, .api-total-badge small { font-size: 0.72rem; font-weight: 700; }
.api-total-badge strong { color: var(--primary-dark); font-size: 1.35rem; line-height: 1; font-variant-numeric: tabular-nums; }
.api-usage-overview { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.api-usage-overview > div { min-width: 0; padding: 17px 20px; border-right: 1px solid var(--line); }
.api-usage-overview > div:last-child { border-right: 0; }
.api-usage-overview span { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.api-usage-overview strong { display: block; margin: 5px 0 3px; font-size: 1.55rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.api-usage-overview small { color: var(--subtle); font-size: 0.74rem; }
.danger-text { color: var(--danger); }
.api-budget { display: grid; grid-template-columns: 1fr auto; align-content: center; column-gap: 12px; }
.api-budget strong { margin: 0; font-size: 1.15rem; }
.api-budget-track { grid-column: 1 / 3; height: 8px; margin: 10px 0 6px; overflow: hidden; border-radius: 999px; background: #dfe9eb; }
.api-budget-track i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.api-budget small { grid-column: 1 / 3; }
.api-usage-list { display: grid; padding: 0 22px 22px; }
.api-usage-row { display: grid; grid-template-columns: minmax(290px, 0.9fr) minmax(180px, 1.1fr) 100px; align-items: center; gap: 22px; padding: 14px 0; border-top: 1px solid var(--line); }
.api-usage-name { display: grid; min-width: 0; gap: 3px; }
.api-usage-name b { font-size: 0.86rem; }
.api-usage-name code { overflow: hidden; color: var(--subtle); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; }
.api-usage-meter { height: 9px; overflow: hidden; border-radius: 999px; background: #e8eef0; }
.api-usage-meter i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: #45a99f; }
.api-usage-count { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; font-variant-numeric: tabular-nums; }
.api-usage-count strong { font-size: 1.02rem; }
.api-usage-count span { color: var(--muted); font-size: 0.74rem; }
.api-usage-count em { color: var(--danger); font-size: 0.68rem; font-style: normal; }
.api-empty { padding: 28px !important; }

.ops-table-wrap { overflow: auto; }
.ops-table { width: 100%; min-width: 900px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ops-table th { padding: 13px 18px; border-bottom: 1px solid var(--line); color: #687b86; background: var(--surface-2); font-size: 0.74rem; font-weight: 750; text-align: left; white-space: nowrap; }
.ops-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 0.84rem; vertical-align: middle; }
.ops-table tr:last-child td { border-bottom: 0; }
.ops-table td > b { font-size: 0.86rem; }
.table-sub, .table-error { display: block; margin-top: 4px; color: var(--subtle); font-size: 0.72rem; }
.table-error { max-width: 300px; color: var(--danger); white-space: normal; }
.empty { padding: 44px !important; color: #7c8c95 !important; font-size: 0.86rem !important; text-align: center !important; }
.path-cell { max-width: 350px; overflow-wrap: anywhere; white-space: normal; }
.mono-small { color: #526875; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.76rem !important; }

.status-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.status-chip.success { color: var(--success); background: var(--success-soft); }
.status-chip.info { color: var(--blue); background: var(--blue-soft); }
.status-chip.warning { color: var(--warning); background: var(--warning-soft); }
.status-chip.danger { color: var(--danger); background: var(--danger-soft); }
.status-chip.neutral { color: #586b76; background: #e8eef1; }
.run-mobile-time, .run-mobile-summary { display: none; }

.ops-filters { display: flex; gap: 10px; margin-bottom: 16px; }
.ops-filters select { min-width: 180px; font-size: 0.86rem; }
.ops-live-filters { display: inline-grid; width: auto; grid-template-columns: repeat(2, minmax(190px, 230px)); gap: 12px; }
.ops-filter-field { display: grid; gap: 6px; color: var(--muted); font-size: 0.75rem; font-weight: 750; }
.ops-input-shell { position: relative; display: block; }
.ops-filter-input { width: 100%; min-height: 46px; padding-right: 13px; padding-left: 40px; font-size: 0.9rem; font-weight: 650; }
.ops-filter-input::placeholder { color: var(--muted); font-weight: 500; opacity: 1; }
.ops-input-shell > .ops-icon { position: absolute; top: 50%; left: 13px; z-index: 1; width: 18px; height: 18px; color: #70848e; pointer-events: none; transform: translateY(-50%); }
.ops-select-shell { position: relative; display: block; }
.ops-live-filters .ops-select-shell select { width: 100%; min-width: 0; min-height: 46px; padding-right: 40px; appearance: none; color: var(--ink); background: var(--surface); font-size: 0.9rem; font-weight: 680; }
.ops-select-shell > .ops-icon { position: absolute; top: 50%; right: 13px; width: 17px; height: 17px; color: var(--subtle); pointer-events: none; transform: translateY(-50%); }
.uploads-live-filters { width: 100%; grid-template-columns: minmax(190px, 1fr) minmax(210px, 0.78fr) minmax(220px, 1.15fr) auto; grid-template-areas: "chat date script clear"; align-items: end; }
.uploads-filter-chat { grid-area: chat; }
.uploads-filter-date { min-width: 0; grid-area: date; }
.uploads-filter-date .ops-date-trigger { width: 100%; min-width: 0; min-height: 46px; }
.uploads-filter-script { grid-area: script; }
.uploads-filter-clear { min-width: 108px; grid-area: clear; }
.uploads-live-filters noscript { grid-column: 1 / -1; }
[data-live-filter] { position: relative; }
[data-live-filter].is-loading::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; border-radius: 2px; background: var(--primary); content: ""; transform-origin: left; animation: ops-filter-progress 900ms cubic-bezier(0.16, 1, 0.3, 1) infinite; }
[data-live-region] { transition: opacity 150ms ease, filter 150ms ease; }
[data-live-region].is-updating { opacity: 0.52; filter: saturate(0.72); pointer-events: none; }
[data-live-region].is-arriving { animation: ops-filter-arrive 240ms cubic-bezier(0.16, 1, 0.3, 1); }
[data-list-first] { scroll-margin-top: 82px; }
[data-list-first]:focus-visible, [data-live-region]:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 38%, transparent); outline-offset: -3px; }
@keyframes ops-filter-progress { 0% { transform: scaleX(0.08); opacity: 0.45; } 70% { transform: scaleX(0.82); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes ops-filter-arrive { from { opacity: 0.58; filter: blur(1px); } to { opacity: 1; filter: blur(0); } }
.ops-pagination { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.ops-pagination-summary { display: flex; align-items: baseline; gap: 5px; margin: 0; color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ops-pagination-summary strong { color: var(--ink); font-size: 0.9rem; font-weight: 800; }
.ops-pagination-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ops-page-button { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border: 1px solid #ccdadd; border-radius: 11px; background: #fff; color: #3c515c; font-size: 0.86rem; font-weight: 750; font-variant-numeric: tabular-nums; text-decoration: none; transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms cubic-bezier(0.16, 1, 0.3, 1); }
a.ops-page-button:hover { border-color: #8ebeb9; background: #f7fbfa; color: var(--primary); transform: translateY(-1px); }
.ops-page-button:focus-visible, .ops-page-size select:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent); outline-offset: 2px; }
.ops-page-button.current { border-color: #68aaa4; background: #fff; color: var(--primary); box-shadow: inset 0 -2px var(--primary); }
.ops-page-button.disabled { background: #f1f5f6; color: #a6b4ba; }
.ops-page-arrow .ops-icon { width: 18px; height: 18px; }
.ops-page-gap { display: grid; width: 28px; height: 44px; flex: 0 0 28px; place-items: center; color: #91a2aa; font-weight: 800; }
.ops-page-size { position: relative; display: block; margin-left: 4px; }
.ops-page-size select { width: 96px; height: 44px; padding: 0 32px 0 13px; appearance: none; border: 1px solid #bdced2; border-radius: 11px; background: #fff; color: #2f444f; font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.ops-page-size > .ops-icon { position: absolute; top: 50%; right: 11px; width: 17px; height: 17px; color: #607681; pointer-events: none; transform: translateY(-50%); }
.ops-grid.two .ops-pagination { display: grid; gap: 10px; }
.ops-grid.two .ops-pagination-controls { width: 100%; justify-content: space-between; gap: 7px; }
.ops-grid.two .ops-page-number:not(.current):not(.neighbor), .ops-grid.two .ops-page-gap { display: none; }
.ops-grid.two .ops-page-size { margin-left: auto; }
.ops-tabs { display: inline-grid; grid-auto-flow: column; gap: 3px; margin-bottom: 16px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: #eaf0f2; }
.ops-tabs a { display: grid; min-height: 38px; padding: 8px 15px; border-radius: 8px; color: var(--muted); font-size: 0.82rem; font-weight: 750; place-items: center; transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.ops-tabs a:hover { color: var(--ink); }
.ops-tabs a.active { color: var(--primary-dark); background: var(--surface); box-shadow: 0 2px 7px rgba(29, 55, 68, 0.1); }

.audit-launch { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; margin-bottom: 20px; padding: 24px; overflow: visible; }
.audit-launch-copy { max-width: 68ch; }
.audit-launch-actions { display: grid; grid-template-columns: minmax(210px, auto) auto auto; align-items: end; gap: 10px; }
.audit-list { padding: 4px 22px 8px; }
.audit-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px; min-height: 66px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border-bottom: 0; }
.audit-row:hover, .audit-row.selected { color: var(--primary-dark); }
.audit-row.selected { box-shadow: inset 2px 0 var(--primary); }
.audit-row.selected > *:first-child { margin-left: 9px; }
.audit-row div { display: grid; gap: 3px; }
.audit-row b { font-size: 0.84rem; }
.audit-row small { color: var(--muted); font-size: 0.74rem; }
.audit-row strong { color: var(--danger); font-size: 0.78rem; }
.audit-row strong.clean { color: var(--success); }
.status-orb { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #8d9ba3; }
.status-orb.success { background: var(--success); }
.status-orb.info { background: var(--blue); }
.status-orb.warning { background: var(--warning); }
.status-orb.danger { background: var(--danger); }
.audit-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.audit-summary > div { display: grid; gap: 5px; padding: 16px; border-right: 1px solid var(--line); }
.audit-summary > div:last-child { border-right: 0; }
.audit-summary span { color: var(--muted); font-size: 0.75rem; }
.audit-summary b { font-size: 1.38rem; font-variant-numeric: tabular-nums; }
.issue-list { padding: 0 22px 17px; }
.issue-list > div { display: flex; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.issue-list p { display: grid; gap: 3px; margin: 0; }
.issue-list b { font-size: 0.82rem; }
.issue-list small { color: var(--muted); font-size: 0.74rem; }
.issue-list em { color: #5f717c; font-size: 0.75rem; font-style: normal; overflow-wrap: anywhere; }
.ops-alert { margin: 17px 22px; padding: 12px 14px; border-radius: 9px; font-size: 0.8rem; }
.ops-alert.success { color: var(--success); background: var(--success-soft); }
.ops-alert.danger { color: var(--danger); background: var(--danger-soft); }

.step-dots { display: flex; align-items: center; gap: 5px; }
.step-dots i { width: 8px; height: 8px; border-radius: 50%; background: #c2cdd2; }
.step-dots i.success { background: var(--success); }
.step-dots i.failed { background: var(--danger); }
.step-dots i.running { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.step-dots span { color: var(--muted); font-size: 0.74rem; }
.ops-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-top: 14px; padding: 13px 16px; border-radius: 10px; color: #315f5a; background: #e6f4f2; font-size: 0.8rem; }
.ops-note b { color: var(--primary-dark); white-space: nowrap; }

.reserved-module { display: flex; min-height: 300px; align-items: center; justify-content: center; gap: 30px; padding: 48px; }
.reserved-module > span { color: #dce6e9; font-size: 4.5rem; font-weight: 800; letter-spacing: -0.04em; }
.reserved-module > div { max-width: 560px; }
.reserved-module em { display: inline-block; padding: 5px 8px; border-radius: 7px; color: var(--violet); background: var(--violet-soft); font-size: 0.75rem; font-style: normal; font-weight: 800; }
.reserved-module h2 { margin: 14px 0 8px; font-size: 1.5rem; letter-spacing: -0.02em; }
.reserved-module p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.75; }

.ops-toast { position: fixed; bottom: 24px; left: 50%; z-index: 99; padding: 12px 17px; border-radius: 10px; color: #fff; background: #183a36; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18); font-size: 0.82rem; font-weight: 750; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity 180ms ease, transform 180ms ease; }
.ops-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ops-toast.bad { background: #8f353b; }

.ops-login-body { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: var(--bg); }
.ops-login { width: min(420px, 100%); }
.ops-login-brand { justify-content: center; margin-bottom: 26px; }
.ops-login-brand .ops-brand-mark { width: 44px; height: 44px; }
.ops-login-brand b { font-size: 1.4rem; }
.ops-login-brand small { font-size: 0.78rem; }
.ops-login-card { padding: 32px; border-radius: 18px; background: #fff; box-shadow: 0 20px 56px rgba(30, 63, 78, 0.12); }
.ops-login-card h1 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.ops-login-card > p { margin: 7px 0 25px; color: var(--muted); font-size: 0.86rem; }
.ops-login-card label { display: grid; gap: 7px; margin-top: 15px; font-size: 0.82rem; font-weight: 750; }
.ops-login-card input { height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; outline: none; }
.ops-login-card input:focus { border-color: #69afa8; box-shadow: 0 0 0 3px var(--primary-soft); }
.ops-login-card button { width: 100%; height: 48px; margin-top: 23px; }
.ops-login-error { margin: 14px 0; padding: 11px 13px; border-radius: 9px; color: var(--danger); background: var(--danger-soft); font-size: 0.82rem; }
.ops-login-foot { margin-top: 17px; color: var(--subtle); font-size: 0.75rem; text-align: center; }

@media (max-width: 1180px) {
  .ops-kpis { grid-template-columns: repeat(2, 1fr); }
  .ops-flow { grid-template-columns: 160px auto 160px auto 160px auto 160px auto 160px; }
  .api-usage-overview { grid-template-columns: repeat(2, 1fr); }
  .api-usage-overview > div:nth-child(2) { border-right: 0; }
  .api-usage-overview > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 1420px) {
  .ops-grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root {
    --sidebar: 0;
    --mobile-nav-height: calc(60px + env(safe-area-inset-bottom));
  }
  html {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
  }
  .ops-body {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
  }
  .ops-sidebar { display: none; }
  .ops-main {
    min-height: 0;
    margin-left: 0;
    padding: 0 14px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  .ops-main > * { width: 100%; }
  .ops-mobile-head {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    width: auto;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    margin: 0 -14px 24px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
  }
  .ops-mobile-head .ops-brand { min-height: 44px; padding: 0; }
  .ops-mobile-head .ops-brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .ops-mobile-head > a:last-child { display: inline-flex; min-width: 60px; min-height: 44px; align-items: center; justify-content: center; gap: 5px; padding: 8px 4px; color: var(--muted); font-size: 0.8rem; }
  .ops-mobile-head .ops-logout .ops-icon { width: 17px; height: 17px; }
  .ops-bottom-nav {
    position: relative;
    z-index: 30;
    display: grid;
    width: 100%;
    min-height: var(--mobile-nav-height);
    grid-template-columns: repeat(6, 1fr);
    align-self: end;
    padding: 5px 5px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -8px 26px rgba(29, 55, 68, 0.06);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
  }
  .ops-bottom-nav.is-single { grid-template-columns: 1fr; }
  .ops-bottom-nav a { position: relative; display: grid; min-height: 50px; grid-template-rows: 22px auto; place-items: center; gap: 2px; padding: 5px 2px 2px; color: #687b86; font-size: 0.7rem; font-weight: 750; line-height: 1; }
  .ops-bottom-nav .ops-icon { width: 20px; height: 20px; }
  .ops-bottom-nav a.active { color: var(--primary-dark); }
  .ops-bottom-nav a.active::before { position: absolute; top: -5px; left: 50%; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); content: ""; transform: translateX(-50%); }

  .ops-page-head { display: grid; align-items: start; gap: 18px; margin-bottom: 21px; }
  .ops-page-head h1 { margin-bottom: 6px; font-size: 1.65rem; }
  .ops-page-head p { font-size: 0.88rem; line-height: 1.6; }
  .ops-head-actions { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto; }
  .ops-head-actions .ops-date-field { min-width: 0; }
  .ops-date-trigger { width: 100%; min-width: 0; min-height: 48px; }
  .ops-button { min-height: 48px; }

  .ops-calendar { position: fixed; inset: auto 0 calc(76px + env(safe-area-inset-bottom)); width: 100%; max-height: min(540px, calc(100vh - 100px)); padding: 14px 6px; overflow-y: auto; border-radius: 16px 16px 0 0; }
  .ops-calendar-head button, .ops-calendar-days button { width: 100%; min-width: 0; min-height: 44px; }
  .ops-calendar-foot button { min-height: 44px; }

  .ops-flow { grid-template-columns: 155px auto 155px auto 155px auto 155px auto 155px; gap: 10px; margin-bottom: 14px; padding: 15px; }
  .ops-kpis { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .ops-kpi { min-height: 138px; padding: 17px; }
  .ops-kpi p { margin-top: 15px; font-size: 0.78rem; }
  .ops-kpi strong { font-size: 1.75rem; }
  .ops-kpi small { font-size: 0.72rem; }
  .kpi-icon { top: 14px; right: 14px; width: 31px; height: 31px; }
  .ops-grid { gap: 14px; margin-bottom: 14px; }
  .ops-card-head { padding: 18px 17px; }
  .ops-card-head h2, .audit-launch h2 { font-size: 1rem; }
  .ops-card-head p, .audit-launch p { font-size: 0.78rem; }
  .service-list { padding: 0 17px 3px; }
  .service-row { gap: 15px; padding: 19px 0; }
  .service-overview { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .service-symbol { width: 40px; height: 40px; border-radius: 11px; }
  .service-title-line > b { font-size: 0.92rem; }
  .service-copy > small { margin-top: 4px; font-size: 0.74rem; white-space: normal; }
  .service-meta { padding-left: 52px; }
  .service-meta > div { padding-right: 10px; padding-left: 10px; }
  .service-meta > div:first-child { padding-left: 0; }
  .service-meta span { font-size: 0.68rem; }
  .service-meta b { font-size: 0.79rem; }
  .service-controls { grid-template-columns: minmax(0, 1fr) auto; padding-left: 52px; gap: 8px 12px; }
  .service-select-shell select { min-height: 46px; font-size: 0.9rem; }
  .service-power { min-width: 118px; }
  .service-schedule-note { font-size: 0.7rem; }

  .trend-chart-scroll { scroll-snap-type: x proximity; }
  .trend-chart { height: 292px; }
  .trend-col { scroll-snap-align: center; }

  .api-usage-overview { grid-template-columns: 1fr 1fr; margin: 16px; }
  .api-usage-overview > div { padding: 15px; }
  .api-usage-overview strong { font-size: 1.35rem; }
  .api-usage-list { padding: 0 16px 17px; }
  .api-usage-row { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 15px 0; }
  .api-usage-name { min-width: 0; }
  .api-usage-name code { white-space: normal; overflow-wrap: anywhere; }
  .api-usage-meter { grid-column: 1 / 3; grid-row: 2; }
  .api-usage-count { grid-column: 2; grid-row: 1; align-self: start; }

  .ops-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .uploads-live-filters { grid-template-columns: minmax(0, 1fr) minmax(170px, 0.7fr); grid-template-areas: "chat chat" "script script" "date clear"; }
  .uploads-filter-clear { width: 100%; min-width: 0; }
  .ops-filter-input { min-height: 48px; font-size: 1rem; }
  .ops-filters select { width: 100%; min-width: 0; min-height: 48px; }
  .ops-live-filters { width: 100%; gap: 10px; margin-bottom: 17px; }
  .ops-filter-field { gap: 5px; font-size: 0.78rem; }
  .ops-live-filters .ops-select-shell select { min-height: 48px; padding-right: 35px; padding-left: 12px; font-size: 1rem; }
  .ops-select-shell > .ops-icon { right: 11px; }
  .ops-filters noscript { grid-column: 1 / 3; }
  .ops-filters noscript .ops-button { width: 100%; }
  .ops-tabs { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-tabs a { min-height: 42px; }

  .ops-table-wrap { overflow: visible; }
  .ops-table { min-width: 0; }
  .ops-table thead { display: none; }
  .ops-table, .ops-table tbody, .ops-table tr, .ops-table td { display: block; width: 100%; }
  .ops-table tr { padding: 11px 16px; border-bottom: 1px solid var(--line); }
  .ops-table tr:last-child { border-bottom: 0; }
  .ops-table td { display: grid; grid-template-columns: minmax(92px, 35%) minmax(0, 1fr); align-items: start; gap: 12px; padding: 6px 0; border: 0; font-size: 0.82rem; }
  .ops-table td::before { color: var(--subtle); font-size: 0.74rem; font-weight: 700; content: attr(data-label); }
  .ops-table td > * { min-width: 0; }
  .ops-table td.empty { display: block; }
  .ops-table td.empty::before { content: none; }
  .path-cell { max-width: none; }

  .ops-ledger tbody { display: grid; }
  .ops-ledger tr { position: relative; display: grid; width: 100%; padding: 17px; }
  .ops-ledger td { display: block; width: auto; min-width: 0; padding: 0; }
  .ops-ledger td::before { display: block; margin-bottom: 3px; color: var(--subtle); font-size: 0.68rem; font-weight: 750; line-height: 1.25; content: attr(data-label); }
  .ops-ledger td > b { font-size: 0.92rem; line-height: 1.4; }
  .ops-ledger td[data-label="结果"],
  .ops-ledger td[data-label="状态"] { min-height: 0; }
  .ops-ledger td[data-label="结果"]::before,
  .ops-ledger td[data-label="状态"]::before { content: none; }
  .ops-ledger td[data-label="结果"] .status-chip,
  .ops-ledger td[data-label="状态"] .status-chip { position: absolute; top: 15px; right: 16px; gap: 5px; padding: 4px 8px; }
  .ops-ledger td[data-label="结果"] .status-chip::before,
  .ops-ledger td[data-label="状态"] .status-chip::before { width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; content: ""; }
  .ops-ledger .table-error { max-width: none; margin-top: 12px; padding: 10px 12px; border-radius: 8px; color: var(--danger); background: var(--danger-soft); font-size: 0.74rem; line-height: 1.55; }
  .ops-ledger td.empty { display: block; grid-column: 1 / -1; padding: 32px 12px !important; }

  .recent-runs-table tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .recent-runs-table td[data-label="任务"] { grid-column: 1 / -1; padding-right: 68px; }
  .recent-runs-table td[data-label="任务"]::before { content: none; }
  .recent-runs-table td[data-label="开始时间"] { display: flex; grid-column: 1 / -1; align-items: baseline; gap: 8px; margin: 4px 0 13px; color: var(--muted); font-size: 0.78rem; }
  .recent-runs-table td[data-label="开始时间"]::before { display: inline; margin: 0; content: "开始"; }
  .recent-runs-table td[data-label="耗时"],
  .recent-runs-table td[data-label="目标"],
  .recent-runs-table td[data-label="成功"],
  .recent-runs-table td[data-label="失败"] { padding-top: 11px; border-top: 1px solid var(--line); color: var(--ink); font-size: 0.88rem; font-weight: 750; }
  .recent-runs-table td[data-label="目标"],
  .recent-runs-table td[data-label="成功"],
  .recent-runs-table td[data-label="失败"] { padding-left: 10px; border-left: 1px solid var(--line); }
  .recent-runs-table td[data-label="结果"] { grid-column: 1 / -1; }

  .uploads-ledger tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .uploads-ledger td[data-label="群"] { grid-column: 1 / -1; grid-row: 1; padding-right: 78px; }
  .uploads-ledger td[data-label="群"]::before { content: none; }
  .uploads-ledger td[data-label="时间"] { grid-column: 1 / 3; grid-row: 2; margin-top: 12px; }
  .uploads-ledger td[data-label="日期"] { grid-column: 3 / 5; grid-row: 2; margin-top: 12px; padding-left: 13px; border-left: 1px solid var(--line); }
  .uploads-ledger td[data-label="脚本"],
  .uploads-ledger td[data-label="文件"],
  .uploads-ledger td[data-label="MsgID"] { grid-column: 1 / -1; padding-top: 11px; border-top: 1px solid var(--line); }
  .uploads-ledger td[data-label="脚本"] { grid-row: 3; margin-top: 12px; }
  .uploads-ledger td[data-label="文件"] { grid-row: 4; margin-top: 10px; }
  .uploads-ledger td[data-label="MsgID"] { grid-row: 5; margin-top: 10px; }
  .uploads-ledger td[data-label="结果"] { grid-column: 1 / -1; grid-row: 6; }

  .runs-ledger tr { grid-template-columns: minmax(0, 1fr); padding-top: 18px; padding-bottom: 16px; }
  .runs-ledger td[data-label="任务"] { grid-column: 1; grid-row: 1; padding-right: 78px; }
  .runs-ledger td[data-label="任务"]::before { content: none; }
  .runs-ledger td[data-label="任务"] > b { font-size: 0.98rem; }
  .runs-ledger td[data-label="任务"] .table-sub { margin-top: 2px; font-size: 0.7rem; }
  .runs-ledger td[data-label="开始"],
  .runs-ledger td[data-label="结束"],
  .runs-ledger td[data-label="耗时"],
  .runs-ledger td[data-label="目标"],
  .runs-ledger td[data-label="成功 / 上传"],
  .runs-ledger td[data-label="待处理"],
  .runs-ledger td[data-label="失败"] { display: none; }
  .runs-ledger .run-mobile-time { display: grid; grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr) 17px minmax(0, 1fr); align-items: end; gap: 8px; margin-top: 13px; color: var(--muted); }
  .runs-ledger .run-mobile-time::before,
  .runs-ledger .run-mobile-summary::before { display: none; content: none; }
  .run-mobile-time > span { display: grid; min-width: 0; gap: 2px; }
  .run-mobile-time > span:last-child { text-align: right; }
  .run-mobile-time small { color: var(--subtle); font-size: 0.66rem; font-weight: 750; }
  .run-mobile-time b { overflow: hidden; color: #425762; font-size: 0.77rem; font-weight: 650; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
  .run-mobile-time > .ops-icon { width: 17px; height: 17px; margin-bottom: 1px; color: #9aabb3; }
  .runs-ledger .run-mobile-summary { display: block; grid-column: 1; grid-row: 3; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
  .run-mobile-stats { display: flex; min-height: 34px; flex-wrap: wrap; align-items: center; gap: 10px 0; }
  .run-mobile-stats > span { display: grid; min-width: 60px; gap: 2px; padding: 0 13px; border-left: 1px solid var(--line); }
  .run-mobile-stats > span:first-child { min-width: 55px; padding-left: 0; border-left: 0; }
  .run-mobile-stats small { color: var(--subtle); font-size: 0.65rem; font-weight: 750; white-space: nowrap; }
  .run-mobile-stats b { font-size: 0.88rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .run-mobile-stats .warning b { color: var(--warning); }
  .run-mobile-stats .danger b { color: var(--danger); }
  .run-mobile-stats em { margin-left: 13px; color: var(--muted); font-size: 0.78rem; font-style: normal; }
  .runs-ledger td[data-label="状态"] { grid-column: 1; grid-row: 4; }

  .cx-ledger tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cx-ledger td[data-label="设备 / 阶段"] { grid-column: 1 / -1; grid-row: 1; padding-right: 78px; }
  .cx-ledger td[data-label="设备 / 阶段"]::before { content: none; }
  .cx-ledger td[data-label="检查表 ID"] { grid-column: 1 / 3; grid-row: 2; margin-top: 12px; }
  .cx-ledger td[data-label="入队时间"] { grid-column: 3 / 5; grid-row: 2; margin-top: 12px; padding-left: 13px; border-left: 1px solid var(--line); }
  .cx-ledger td[data-label="尝试"],
  .cx-ledger td[data-label="步骤"] { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
  .cx-ledger td[data-label="尝试"] { grid-column: 1 / 3; grid-row: 3; }
  .cx-ledger td[data-label="步骤"] { grid-column: 3 / 5; grid-row: 3; padding-left: 13px; border-left: 1px solid var(--line); }
  .cx-ledger td[data-label="状态"] { grid-column: 1 / -1; grid-row: 4; }
  .cx-ledger td[data-label="错误"] { grid-column: 1 / -1; grid-row: 5; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }

  .audit-launch { grid-template-columns: 1fr; align-items: stretch; gap: 18px; padding: 18px 17px; }
  .audit-launch-actions { grid-template-columns: 1fr 1fr; }
  .audit-launch-actions .ops-date-field { grid-column: 1 / 3; }
  .audit-launch-actions .ops-button { width: 100%; }
  .audit-list { padding: 3px 17px 6px; }
  .audit-row { min-height: 68px; padding: 13px 0; }
  .audit-row.selected { box-shadow: inset 2px 0 var(--primary); }
  .audit-summary { grid-template-columns: 1fr 1fr; margin: 17px; }
  .audit-summary > div { padding: 14px; }
  .audit-summary > div:nth-child(2) { border-right: 0; }
  .audit-summary > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .issue-list { padding-right: 17px; padding-left: 17px; }
  [data-list-first] { scroll-margin-top: 78px; }
  .ops-pagination { display: grid; min-height: 0; gap: 10px; padding: 12px 14px 14px; }
  .ops-pagination-summary { padding-left: 2px; }
  .ops-pagination-controls { width: 100%; justify-content: space-between; gap: 7px; }
  .ops-page-number:not(.current):not(.neighbor), .ops-page-gap { display: none; }
  .ops-page-size { margin-left: auto; }
  .reserved-module { display: grid; min-height: 260px; gap: 5px; padding: 28px; }
  .reserved-module > span { font-size: 3rem; }
  .reserved-module h2 { font-size: 1.25rem; }
  .ops-toast { bottom: calc(var(--mobile-nav-height) + 12px); max-width: calc(100vw - 28px); text-align: center; }
}

@media (max-width: 480px) {
  .uploads-live-filters { grid-template-columns: 1fr; grid-template-areas: "chat" "script" "date" "clear"; }
  .ops-kpi { min-height: 132px; }
  .ops-kpi p { margin-top: 14px; }
  .ops-card-head { gap: 10px; }
  .automation-card .ops-card-head { align-items: center; }
  .automation-card .ops-card-head p { max-width: 24ch; }
  .automation-card .live-dot { padding: 5px 8px; font-size: 0.7rem; }
  .service-meta, .service-controls { padding-left: 0; }
  .service-meta { margin-left: 52px; }
  .api-total-badge { gap: 3px; }
  .api-total-badge span { display: none; }
  .api-total-badge strong { font-size: 1.25rem; }
}

@media (max-width: 360px) {
  .ops-main { padding-right: 10px; padding-left: 10px; }
  .ops-mobile-head { margin-right: -10px; margin-left: -10px; }
  .ops-kpis, .api-usage-overview { grid-template-columns: 1fr; }
  .ops-kpi { min-height: 118px; }
  .ops-kpi p { margin-top: 5px; }
  .service-controls { grid-template-columns: 1fr; }
  .service-power { width: 100%; justify-content: space-between; }
  .service-power > span { text-align: left; }
  .api-usage-overview > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .api-usage-overview > div:last-child { border-bottom: 0; }
  .ops-ledger tr { padding: 15px; }
  .ops-ledger td[data-label="结果"] .status-chip,
  .ops-ledger td[data-label="状态"] .status-chip { top: 13px; right: 14px; }
  .run-mobile-stats > span { min-width: 0; padding-right: 12px; padding-left: 0; border-left: 0; }
  .run-mobile-stats em { margin-left: 6px; }
  .ops-page-number.neighbor { display: none; }
  .ops-bottom-nav a { font-size: 0.66rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
