﻿:root {
  /* Core design tokens: color, elevation, radius, spacing, and control
     metrics shared by every surface, including the chart tokens below. */
  --ink: #17252d;
  --muted: #5f7280;
  --line: #dfe8eb;
  --surface: #fff;
  --surface-elevated: #fbfdfd;
  --bg: #f3f7f8;
  --primary: #0b776f;
  --primary2: #075b56;
  --soft: #e2f5f1;
  --danger: #bf4141;
  --warn: #ad6817;
  --success: #0f7a54;
  --info: #2b70b7;
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 14px;
  --control-h: 42px;
  --row-h: 44px;
  --focus-ring: 3px solid color-mix(in srgb, var(--primary) 38%, transparent);
  --shadow-sm: 0 1px 4px rgba(24, 56, 68, 0.05);
  --shadow: 0 14px 40px rgba(20, 45, 55, 0.09);
  /* Chart design tokens shared by app.css and the canvas renderer. */
  --chart-grid: #e6edf0;
  --chart-axis-text: #5f7280;
  --chart-price: #0b776f;
  --chart-stock: #2b70b7;
  --chart-crosshair: #8aa0ab;
  --chart-point-core: #ffffff;
  --chart-danger: #bf4141;
  --chart-tooltip-bg: #17252d;
  --chart-tooltip-text: #f4f9fa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    "Segoe UI",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}
.hidden {
  display: none !important;
}
.skip-link {
  position: fixed;
  z-index: 120;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.muted {
  color: var(--muted);
}
button,
input {
  font: inherit;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
canvas.chart:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: #fff;
}
.login-art {
  padding: 48px clamp(40px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #eafffa;
  background: radial-gradient(circle at 10% 10%, #1e6666 0, transparent 35%),
    linear-gradient(145deg, #082e32, #163d4a);
}
.brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.login-art h1 {
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.05;
  margin: 12px 0 20px;
  letter-spacing: -0.055em;
}
.login-art > div > p:last-child {
  max-width: 620px;
  color: #b8d5d2;
  font-size: 17px;
}
.eyebrow {
  color: #67d6c5 !important;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.pulse-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid #ffffff2e;
  border-radius: 18px;
  background: #092e32a8;
}
.pulse-card span {
  color: #a6c8c5;
}
.pulse-card strong {
  font-size: 22px;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-form {
  width: min(430px, 100%);
}
.login-form h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin: 8px 0;
}
.login-form label {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  font-weight: 500;
}
.login-form input {
  height: 48px;
  border: 1px solid #cbd8dd;
  border-radius: 10px;
  padding: 0 13px;
  outline: none;
}
.login-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #0b776f20;
}
.login-form button,
.primary {
  height: 48px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  font-weight: 600;
  cursor: pointer;
}
.login-form button:hover,
.primary:hover {
  background: var(--primary2);
}
.login-form button:disabled {
  opacity: 0.6;
}
.fatal {
  position: fixed;
  z-index: 99;
  inset: 16px 16px auto;
  padding: 14px;
  color: #fff;
  background: var(--danger);
  border-radius: 10px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 245px 1fr;
}
.shell aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--line);
}
.nav-label {
  margin: 30px 0 6px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
nav {
  display: grid;
  gap: 3px;
}
nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: #50636d;
  text-decoration: none;
  font-weight: 500;
}
.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  color: var(--muted);
  font-size: 15px;
}
nav a:hover {
  background: var(--bg);
  color: var(--ink);
}
nav a.active {
  color: var(--primary);
  background: var(--soft);
  font-weight: 600;
}
nav a.active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
}
nav a.active .nav-icon {
  color: var(--primary);
}
.version-trigger {
  display: grid;
  gap: 1px;
  width: 100%;
  padding: 8px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.version-trigger strong {
  font-size: 13px;
  font-weight: 600;
}
.version-trigger small {
  color: inherit;
  opacity: 0.72;
}
.version-trigger span {
  color: inherit;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.version-trigger:disabled {
  cursor: wait;
  opacity: 0.75;
}
.dialog-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(13, 30, 37, 0.52);
}
body.dialog-open {
  overflow: hidden;
}
.changelog-dialog {
  width: min(680px, 100%);
  max-height: min(760px, calc(100dvh - 48px));
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(13, 30, 37, 0.25);
}
.changelog-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.changelog-dialog h2,
.changelog-dialog p {
  margin: 0;
}
.dialog-close {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: var(--bg);
  font-size: 24px;
  cursor: pointer;
}
.changelog-content {
  max-height: calc(min(760px, 100dvh - 48px) - 88px);
  padding: 20px 22px 26px;
  overflow-y: auto;
}
.changelog-summary {
  display: grid;
  margin-bottom: 20px;
  color: var(--muted);
}
.changelog-summary strong {
  color: var(--ink);
}
.changelog-release + .changelog-release {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.changelog-release h3,
.changelog-release h4 {
  margin: 0 0 8px;
}
.changelog-release h4 {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.changelog-release ul {
  margin: 0;
  padding-left: 20px;
}
.changelog-release li + li {
  margin-top: 5px;
}
.changelog-error {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.main > header {
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fffffff0;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-about {
  width: 38px;
  min-height: 38px;
  margin-left: auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}
.header-about:hover {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
header > div:nth-child(2) {
  display: grid;
}
header small {
  color: var(--muted);
}
#menu {
  display: none;
  border: 0;
  background: none;
  font-size: 20px;
}
.account {
  margin-left: 0;
  position: relative;
}
.account > button {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px 8px;
  border: 0;
  border-radius: var(--radius-md);
  background: none;
  cursor: pointer;
}
.account > button:hover {
  background: var(--bg);
}
.account > button > span:nth-child(2) {
  display: grid;
  text-align: left;
}
.account > button > span:first-child {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 11px;
}
.account-menu {
  position: absolute;
  z-index: 55;
  right: 0;
  top: calc(100% + 8px);
  width: 272px;
  padding: 14px;
  display: grid;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(13, 30, 37, 0.14);
}
.account-close {
  display: none;
}
.account-menu button {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #f2caca;
  border-radius: 8px;
  color: var(--danger);
  background: #faeaea;
  cursor: pointer;
}
.account-sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-sheet-head > div {
  display: grid;
  min-width: 0;
}
.account-sheet-head strong {
  font-size: 14px;
  font-weight: 600;
}
.account-sheet-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
}
.account-menu-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  font-weight: 600;
}
.account-menu-divider {
  height: 1px;
  background: var(--line);
}
.mobile-sheet,
.mobile-sheet-backdrop,
.mobile-product-actions {
  display: none;
}
#content {
  padding: 24px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-end;
  margin-bottom: 20px;
}
.page-head h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.04em;
}
.page-head p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 14px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cards-five {
  grid-template-columns: repeat(5, 1fr);
}
.card {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 4px #18384408;
}
.metric {
  transition: border-color 0.15s;
}
.metric:hover {
  border-color: #c3d2d8;
}
.metric span {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.metric-label::before {
  content: attr(data-marker);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: var(--radius-sm);
  color: var(--primary);
  background: var(--soft);
  font-size: 13px;
  letter-spacing: 0;
}
.metric strong {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.metric small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}
.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.status-item {
  padding: 13px 16px;
  background: var(--surface);
}
.status-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-item span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.status-item strong {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.section {
  margin-top: 26px;
}
.section h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.latest-changes td:nth-child(n + 2):nth-child(-n + 5),
.latest-changes th:nth-child(n + 2):nth-child(-n + 5) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.latest-changes td:last-child {
  color: var(--muted);
  font-size: 13px;
}
.cell-secondary {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  white-space: normal;
}
.products-table td:nth-child(3),
.products-table th:nth-child(3),
.products-table td:nth-child(5),
.products-table th:nth-child(5),
.products-table td:nth-child(6),
.products-table th:nth-child(6) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.products-table td:last-child {
  color: var(--muted);
  font-size: 13px;
}
.history-table td:nth-child(n + 2):nth-child(-n + 3),
.history-table th:nth-child(n + 2):nth-child(-n + 3),
.history-table td:nth-child(n + 5):nth-child(-n + 6),
.history-table th:nth-child(n + 5):nth-child(-n + 6) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.history-table td:first-child {
  width: auto;
  white-space: nowrap;
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.list-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto repeat(3, minmax(150px, auto));
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.search-control {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.secondary {
  min-height: var(--control-h);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
}
.secondary:hover {
  border-color: #c3d2d8;
  background: var(--surface-elevated);
}
.empty-state-copy strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  height: var(--row-h);
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody tr:hover td {
  background: var(--surface-elevated);
}
td:first-child {
  width: 28%;
  white-space: normal;
}
.product-link {
  display: -webkit-box;
  overflow: hidden;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
th {
  color: var(--muted);
  background: #f8fafb;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
tr:last-child td {
  border-bottom: 0;
}
.product-link {
  border: 0;
  padding: 0;
  color: var(--primary);
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
}
.badge.warning {
  color: var(--warn);
  background: #fff1da;
}
.badge.success {
  color: var(--primary);
  background: var(--soft);
}
.badge.neutral {
  color: var(--muted);
  background: #eef2f3;
}
.badge.critical {
  color: var(--danger);
  background: #faeaea;
}
.empty,
.loading,
.error {
  min-height: 128px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 26px 20px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.loading::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 3px solid var(--soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: pp-spin 0.9s linear infinite;
}
@keyframes pp-spin {
  to {
    transform: rotate(360deg);
  }
}
.empty::before {
  content: "◌";
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--muted);
  background: var(--bg);
  font-size: 19px;
}
.error {
  color: var(--danger);
  gap: 12px;
}
.error p {
  margin: 0;
}
.retry-button {
  min-height: 42px;
  padding: 0 18px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.identity-card {
  margin-bottom: 16px;
}
.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}
.identity-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.identity-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.identity-value {
  min-width: 0;
  overflow-wrap: anywhere;
}
.identity-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.identity-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.identity-head .product-link {
  font-size: 13px;
}
.notice {
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
}
.notice.warning {
  color: var(--warn);
  background: #fff1da;
  border: 1px solid #f0d7ad;
}
.notice.success {
  color: #16845b;
  background: #e2f5ee;
  border: 1px solid #bfe7d9;
}
.page-action {
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}
.table-actions {
  display: flex;
  gap: 6px;
}
.table-actions .secondary,
.mobile-data-card .table-actions .secondary {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}
.mobile-data-card .table-actions {
  margin-top: 12px;
}
.mobile-data-card .admin-url {
  display: block;
  margin-top: 10px;
}
.admin-url {
  display: inline-block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}
.pager .secondary {
  min-height: 36px;
  padding: 0 14px;
}
.pager .secondary:disabled {
  opacity: 0.5;
  cursor: default;
}
.pager-state {
  color: var(--muted);
  font-size: 12px;
}
.admin-summary {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
}
.admin-table td:nth-child(6),
.admin-table td:nth-child(7) {
  color: var(--muted);
  font-size: 13px;
}
.admin-table td:first-child {
  width: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.admin-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
}
.form-group {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
}
.form-group-title {
  padding: 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.form-group-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.form-input[aria-invalid="true"] {
  border-color: var(--danger);
}
.form-input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px #bf414126;
}
.form-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.variant-dimensions {
  display: grid;
  gap: 8px;
}
.variant-dimension-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(160px, 1.2fr) auto;
  gap: 8px;
  align-items: center;
}
.variant-label[readonly] {
  background: var(--surface);
  color: var(--muted);
}
@media (max-width: 560px) {
  .variant-dimension-row {
    grid-template-columns: 1fr;
  }
  .variant-dimension-row .compact {
    justify-self: start;
  }
}
.crawler-test-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.job-state {
  font-variant-numeric: tabular-nums;
}
.crawler-test-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
}
.crawler-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.crawler-preview .fact strong {
  overflow-wrap: anywhere;
  white-space: normal;
}
.crawler-failure strong {
  display: block;
  color: var(--danger);
}
.crawler-failure p,
.crawler-failure small {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.crawler-health {
  margin-bottom: 16px;
}
.crawler-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.crawler-jobs-table td:nth-child(4),
.crawler-jobs-table th:nth-child(4),
.crawler-jobs-table td:nth-child(5),
.crawler-jobs-table th:nth-child(5),
.crawler-jobs-table td:nth-child(7),
.crawler-jobs-table th:nth-child(7) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.hb-time {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.status-item strong .badge {
  vertical-align: middle;
}
.schedule-dialog {
  width: min(460px, 100%);
  display: grid;
  gap: 12px;
}
.schedule-dialog .form-field {
  margin: 0;
}
.form-field {
  display: grid;
  gap: 6px;
  font-weight: 500;
}
.form-field > span {
  font-size: 13px;
}
.form-input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #0b776f20;
  outline: none;
}
.form-hint {
  color: var(--muted);
  font-weight: 400;
}
.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 400;
}
.form-message {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #f2caca;
  border-radius: 10px;
  color: var(--danger);
  background: #faeaea;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.form-actions .primary {
  padding: 0 20px;
}
.form-cancel {
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  color: var(--ink);
  text-decoration: none;
}
.confirm-backdrop {
  z-index: 110;
}
.confirm-dialog {
  width: min(430px, 100%);
  padding: 22px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(13, 30, 37, 0.25);
}
.confirm-dialog h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.confirm-dialog p {
  margin: 0 0 18px;
  color: var(--muted);
}
.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.confirm-actions .primary {
  min-height: 42px;
  padding: 0 18px;
}
.detail-charts {
  display: grid;
  gap: 16px;
}
@media (min-width: 1024px) {
  .detail-charts {
    grid-template-columns: 1fr 1fr;
  }
  .detail-charts > .chart-ranges {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
}
.history-error {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-grid .card > h2,
.chart-card > h2 {
  margin-top: 0;
}
.detail-grid h2 {
  margin-top: 0;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.fact {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
}
.fact span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.fact strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chart {
  width: 100%;
  height: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  touch-action: pan-y;
}
.chart-card {
  position: relative;
}
.chart-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 10px;
}
.chart-stat {
  min-width: 0;
}
.chart-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.chart-stat strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.chart-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.range-button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.range-button[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--soft);
  color: var(--primary);
}
.chart-tooltip {
  position: absolute;
  z-index: 6;
  max-width: 250px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--chart-tooltip-bg);
  color: var(--chart-tooltip-text);
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(13, 30, 37, 0.25);
}
.chart-tooltip strong {
  display: block;
  font-weight: 600;
}
.chart-data {
  margin-top: 10px;
}
.chart-data summary {
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}
.chart-data-scroll {
  max-height: 220px;
  overflow: auto;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.chart-data-scroll th,
.chart-data-scroll td {
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.chart-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.chart-head h2,
.chart-head p,
.chart-card h3 {
  margin: 0;
}
.product-switcher {
  width: clamp(340px, 34vw, 420px);
  max-width: 100%;
}
.product-switcher-trigger {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}
.product-switcher-trigger:hover,
.product-switcher-trigger[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  background: color-mix(in srgb, var(--soft) 40%, var(--surface));
  box-shadow: 0 4px 14px rgba(21, 64, 74, 0.08);
}
.product-switcher-trigger-copy,
.product-switcher-row-copy {
  display: block;
  min-width: 0;
}
.product-switcher-trigger-copy strong,
.product-switcher-trigger-copy small,
.product-switcher-row-copy strong,
.product-switcher-row-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-switcher-trigger-copy strong {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.product-switcher-trigger-copy small {
  margin-top: 2px;
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}
.product-switcher-trigger-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.product-switcher-trigger-star,
.product-switcher-favorite {
  color: #75868d;
  font-size: 20px;
}
.product-switcher-trigger-star.is-favorite,
.product-switcher-favorite.is-favorite {
  color: #d18a00;
}
.product-switcher-chevron {
  font-size: 18px;
  transition: transform 180ms ease;
}
.product-switcher-trigger[aria-expanded="true"] .product-switcher-chevron {
  transform: rotate(180deg);
}
.favorite-quick-access {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}
.favorite-quick-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.favorite-chips {
  display: flex;
  min-width: 0;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.favorite-chip {
  flex: 0 0 auto;
  min-height: 38px;
  max-width: 190px;
  padding: 0 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.favorite-chip:hover,
.favorite-chip[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
  color: var(--primary);
  background: var(--soft);
}
.product-switcher-layer {
  position: fixed;
  z-index: 160;
  inset: 0;
}
.product-switcher-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: transparent;
}
.product-switcher-panel {
  position: fixed;
  z-index: 1;
  display: flex;
  max-height: min(620px, calc(100dvh - 32px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(20, 45, 55, 0.18);
  animation: product-switcher-in 180ms ease-out;
}
@keyframes product-switcher-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.product-switcher-panel > header {
  display: flex;
  flex: 0 0 auto;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 4px 16px;
}
.product-switcher-panel h3 {
  margin: 0;
  font-size: 15px;
}
.product-switcher-close {
  display: none;
  width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 25px;
  cursor: pointer;
}
.product-switcher-close:hover {
  background: var(--soft);
}
.product-switcher-search {
  flex: 0 0 auto;
  padding: 8px 12px 10px;
}
.product-switcher-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--bg);
}
.product-switcher-status {
  flex: 0 0 auto;
  min-height: 0;
  margin: 0;
  padding: 0 14px;
  color: var(--danger);
  font-size: 12px;
}
.product-switcher-status:not(:empty) {
  padding-bottom: 8px;
}
.product-switcher-results {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 8px 10px;
}
.product-switcher-group + .product-switcher-group {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}
.product-switcher-group h4 {
  margin: 0;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-switcher-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: stretch;
  border-radius: 10px;
}
.product-switcher-row:hover,
.product-switcher-row[aria-selected="true"] {
  background: var(--soft);
}
.product-switcher-select {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 8px 10px;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.product-switcher-row-copy strong {
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.product-switcher-row-copy small {
  margin-top: 2px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.product-switcher-check {
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 700;
}
.product-switcher-favorite {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.product-switcher-favorite:hover {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.product-switcher-empty {
  display: grid;
  min-height: 120px;
  place-content: center;
  gap: 3px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}
.product-switcher-empty strong {
  color: var(--ink);
}
.product-switcher-empty span {
  font-size: 12px;
}
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.chart-card {
  min-width: 0;
}
.chart-subtitle,
.flat-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}
.flat-note {
  margin: 8px 0 0;
  text-align: center;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-head h2 {
  margin-bottom: 14px;
}
.compact-select {
  min-height: 36px;
}
.history-error-details {
  margin-top: 10px;
}
.history-error-details summary {
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
}
.history-error-details p {
  overflow-wrap: anywhere;
  color: var(--muted);
}
.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.trend-title {
  min-height: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.select {
  min-height: 42px;
  max-width: min(420px, 48vw);
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.alert-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 10px;
}
.evaluation-time {
  margin: 0 0 12px;
  color: var(--muted);
}
.event-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.event-count {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.event-day {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.event-list .event-day:first-child {
  margin-top: 4px;
}
.event-product {
  font-size: 14px;
}
.event-control-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.event-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 3px 0 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.event-item.unread {
  border-left: 3px solid var(--primary);
  background: var(--surface-elevated);
}
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.event-actions .secondary {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}
.event-actions .secondary:disabled {
  opacity: 0.6;
  cursor: default;
}
.alert-meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.median-context {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.load-more {
  width: 100%;
  margin-top: 12px;
}
.value-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.value-chips span {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-elevated);
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.event-list {
  margin-top: 12px;
}

.activity-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.activity-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.7rem 0.9rem;
}

.activity-tab.active {
  border-bottom-color: var(--primary);
  color: var(--ink);
}

.incident-card {
  display: grid;
  gap: 0.7rem;
}

.incident-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.incident-heading h2 { margin: 0; font-size: 1.05rem; }
.incident-conditions { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.65rem; }
.incident-conditions p { margin: 0.2rem 0; }
.notification-settings-layout {
  width: min(1120px, 100%);
  margin-top: 20px;
}
.notification-settings-card {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
  overflow: hidden;
}
.settings-section {
  display: grid;
  gap: 20px;
  padding: 26px 30px;
}
.settings-section + .settings-section {
  border-top: 1px solid var(--line);
}
.settings-section-header h2,
.settings-section-header p,
.notification-history-header h2,
.notification-history-header p {
  margin: 0;
}
.settings-section-header h2,
.notification-history-header h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
}
.settings-section-header p,
.notification-history-header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.provider-status {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
}
.provider-status.connected {
  border-color: color-mix(in srgb, var(--success) 24%, var(--line));
  background: color-mix(in srgb, var(--success) 5%, var(--surface));
}
.provider-status.not-configured {
  border-color: color-mix(in srgb, var(--warn) 28%, var(--line));
  background: color-mix(in srgb, var(--warn) 5%, var(--surface));
}
.provider-identity,
.provider-state {
  display: flex;
  align-items: center;
}
.provider-identity {
  min-width: 0;
  gap: 12px;
}
.provider-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #101719;
  font-weight: 700;
}
.provider-identity strong,
.provider-identity small {
  display: block;
}
.provider-identity small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.provider-state {
  flex: 0 0 auto;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
}
.provider-status.connected .provider-state {
  color: var(--success);
}
.provider-status.not-configured .provider-state {
  color: var(--warn);
}
.provider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent);
}
.settings-toggle {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.settings-toggle:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
  background: color-mix(in srgb, var(--soft) 24%, var(--surface));
}
.settings-toggle-copy {
  min-width: 0;
}
.settings-toggle-copy strong,
.settings-toggle-copy small {
  display: block;
}
.settings-toggle-copy strong {
  font-size: 14px;
  font-weight: 600;
}
.settings-toggle-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
.switch-control {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
}
.switch-control input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.switch-track {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid #b7c5ca;
  border-radius: 999px;
  background: #dbe4e7;
  transition: background 160ms ease, border-color 160ms ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 45, 55, 0.22);
  transition: transform 160ms ease;
}
.switch-control input:checked + .switch-track {
  border-color: var(--primary);
  background: var(--primary);
}
.switch-control input:checked + .switch-track::after {
  transform: translateX(20px);
}
.switch-control input:focus-visible + .switch-track {
  outline: var(--focus-ring);
  outline-offset: 3px;
}
.settings-address-grid,
.settings-toggle-grid,
.settings-threshold-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.settings-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}
.settings-field-wide {
  grid-column: 1 / -1;
}
.settings-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.settings-input {
  min-height: 48px;
  padding: 0 14px;
}
.settings-helper {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.settings-input-group {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.settings-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #0b776f20;
}
.settings-input-group .settings-input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
}
.input-suffix {
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-elevated);
  font-size: 13px;
  font-weight: 600;
}
.settings-actions-section {
  background: var(--surface-elevated);
}
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.settings-actions button {
  min-height: 48px;
  padding-inline: 20px;
}
.test-email-button::before {
  content: attr(data-icon);
  margin-right: 7px;
}
.settings-feedback {
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 10px;
}
.settings-feedback strong,
.settings-feedback p {
  margin: 0;
}
.settings-feedback p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
}
.settings-feedback.success {
  border-color: #bfe7d9;
  color: var(--success);
  background: #e9f7f1;
}
.settings-feedback.error {
  border-color: #f2caca;
  color: var(--danger);
  background: #faeaea;
}
.notification-history-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.notification-history-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.history-filter {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
}
.history-filter:hover,
.history-filter.active {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  color: var(--primary2);
  background: var(--soft);
}
.notification-history-body .empty {
  min-height: 128px;
}
.email-delivery-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.email-delivery-card-header h3 {
  margin: 0;
}
.delivery-error {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--danger);
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .activity-tabs { position: sticky; top: 0; z-index: 2; background: var(--surface); }
  .activity-tab { flex: 1; padding-inline: 0.3rem; }
  .incident-heading { align-items: flex-start; flex-direction: column; }
  .settings-section { padding: 20px 16px; }
  .provider-status,
  .notification-history-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .provider-state { margin-left: 52px; }
  .settings-address-grid,
  .settings-toggle-grid,
  .settings-threshold-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .settings-field-wide { grid-column: auto; }
  .settings-toggle { min-height: 72px; }
  .settings-actions { display: grid; grid-template-columns: 1fr; }
  .settings-actions button { width: 100%; }
  .notification-history-section { margin-top: 22px; padding-top: 22px; }
  .history-filters { width: 100%; }
  .history-filter { min-height: 42px; flex: 1; }
}
.event-list .empty {
  min-height: 104px;
  padding: 16px;
}
.event-list .alert-row {
  padding: 14px;
  margin-bottom: 8px;
}
.alert-row time {
  color: var(--muted);
  font-size: 12px;
}
.empty-state-copy h2 {
  font-size: 17px;
  font-weight: 600;
}
.empty-state-copy h2,
.empty-state-copy p {
  margin: 4px;
}
.alert-row small {
  display: block;
  color: var(--muted);
}
.alert-row p {
  margin: 3px 0;
  color: var(--muted);
}
.mobile-bottom-nav,
.mobile-cards {
  display: none;
}
.mobile-data-card {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.mobile-data-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.mobile-secondary {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.mobile-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.mobile-field {
  display: grid;
  gap: 2px;
}
.mobile-field span {
  color: var(--muted);
  font-size: 11px;
}
.mobile-field strong {
  font-size: 13px;
  font-weight: 500;
}
.mobile-time {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.product-mobile-card {
  cursor: pointer;
}
@media (max-width: 1150px) {
  /* The five-control filter row needs ~780px; below this width it wraps
     into two columns so the page never scrolls horizontally. */
  .list-controls {
    grid-template-columns: 1fr 1fr;
  }
  .list-controls .search-control {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .shell {
    grid-template-columns: 1fr;
  }
  .shell aside {
    transform: translateX(-105%);
    z-index: 10;
    box-shadow: var(--shadow);
    transition: 0.2s;
  }
  .shell aside.open {
    transform: none;
  }
  .main {
    grid-column: 1;
  }
  #menu {
    display: block;
  }
  .cards,
  .cards-five {
    grid-template-columns: repeat(2, 1fr);
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .status-strip {
    grid-template-columns: 1fr;
  }
  .list-controls {
    grid-template-columns: 1fr 1fr;
  }
  .search-control {
    grid-column: 1/-1;
  }
}
@media (max-width: 768px) {
  body.mobile-sheet-open {
    overflow: hidden;
  }
	body.product-switcher-open {
		overflow: hidden;
	}
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }
  .header-about {
    display: none;
  }
  .account {
    margin-left: auto;
  }
  #menu {
    display: none;
  }
  .desktop-data {
    display: none;
  }
  .mobile-cards {
    display: grid;
    gap: 10px;
  }
  .mobile-bottom-nav {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: max(0px, calc(100vh - 100dvh));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    height: calc(62px + env(safe-area-inset-bottom));
    padding: 5px 0 env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(20, 45, 55, 0.08);
    backdrop-filter: blur(14px);
  }
  .mobile-bottom-nav > a,
  .mobile-bottom-nav > button {
    position: relative;
    display: grid;
    width: 100%;
    place-items: center;
    align-content: center;
    gap: 1px;
    min-width: 0;
    min-height: 50px;
    padding: 2px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font: inherit;
    text-decoration: none;
    border-radius: 9px;
    cursor: pointer;
  }
  .mobile-bottom-nav > :is(a, button) > span {
    font-size: 19px;
    line-height: 1;
  }
  .mobile-bottom-nav small {
    font-size: 10px;
    font-weight: 500;
  }
  .mobile-bottom-nav > :is(a, button).active {
    color: var(--primary);
    background: var(--soft);
  }
  .nav-badge {
    position: absolute;
    top: 3px;
    left: calc(50% + 8px);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    color: #fff;
    background: var(--danger);
    font-size: 10px;
    line-height: 17px;
    text-align: center;
  }
  .mobile-sheet-backdrop {
    position: fixed;
    z-index: 70;
    inset: 0;
    display: block;
    background: rgba(10, 26, 32, 0.42);
    backdrop-filter: blur(1px);
    animation: sheet-backdrop-in 0.18s ease-out;
  }
  .mobile-sheet {
    position: fixed;
    z-index: 80;
    left: 0;
    right: 0;
    bottom: max(0px, calc(100vh - 100dvh));
    display: flex;
    max-height: calc(100dvh - 12px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-width: 1px 0 0;
    border-radius: 18px 18px 0 0;
    background: var(--surface);
    box-shadow: 0 -16px 46px rgba(16, 38, 47, 0.24);
    animation: mobile-sheet-in 0.2s ease-out;
  }
  .mobile-sheet-grabber {
    width: 38px;
    height: 4px;
    margin: 8px auto 0;
    flex: 0 0 4px;
    border-radius: 999px;
    background: #cad7dc;
  }
  .mobile-sheet-header {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 10px 18px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-sheet-header h2,
  .mobile-sheet-header p {
    margin: 0;
  }
  .mobile-sheet-header h2 {
    font-size: 19px;
  }
  .mobile-sheet-header .eyebrow {
    font-size: 10px;
  }
  .mobile-sheet-content {
    min-height: 0;
    padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  .mobile-sheet-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
  .mobile-sheet-actions > button {
    min-height: 46px;
    flex: 1 1 0;
  }
  .compact-sheet {
    max-height: min(580px, calc(100dvh - 40px));
  }
  .more-menu {
    max-height: min(720px, calc(100dvh - 12px));
  }
  .more-section {
    padding: 10px 0;
  }
  .more-section + .more-section {
    border-top: 1px solid var(--line);
  }
  .more-section h3 {
    margin: 0 8px 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .more-section > button {
    display: grid;
    width: 100%;
    min-height: 54px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    color: var(--ink);
    background: transparent;
    text-align: left;
    cursor: pointer;
  }
  .more-section > button:hover {
    background: var(--bg);
  }
  .more-section > button > span:first-child {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--primary);
    background: var(--soft);
    border-radius: 8px;
  }
  .more-section > button > span:last-child {
    display: grid;
    min-width: 0;
  }
  .more-section > button strong {
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
  }
  .more-section > button small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .more-section > .more-signout > span:first-child {
    color: var(--danger);
    background: #faeaea;
  }
  .more-version {
    border: 0 !important;
  }
  .more-version > span {
    text-decoration: none;
  }
  .more-version .version-date,
  .more-version .version-action {
    display: block;
  }
  .more-version .version-action {
    color: var(--primary);
    font-size: 11px;
    font-style: normal;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .more-health {
    display: grid;
    gap: 2px;
    margin: 6px 8px 0;
    padding: 10px 12px;
    border: 1px solid #f2caca;
    border-radius: 9px;
    color: var(--danger);
    background: #fff5f5;
  }
  .more-health small {
    color: #825151;
  }
  .sheet-choice-group {
    min-width: 0;
    margin: 0;
    padding: 14px 0;
    border: 0;
  }
  .sheet-choice-group + .sheet-choice-group {
    border-top: 1px solid var(--line);
  }
  .sheet-choice-group legend {
    margin-bottom: 7px;
    font-weight: 600;
  }
  .sheet-radio-choice {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 11px;
    padding: 7px 8px;
    border-radius: 9px;
    cursor: pointer;
  }
  .sheet-radio-choice:hover {
    background: var(--bg);
  }
  .sheet-radio-choice input {
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--primary);
  }
  .sheet-choice-list {
    display: grid;
    gap: 3px;
    padding-top: 10px;
  }
  .sheet-sort-choice {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    color: var(--ink);
    background: transparent;
    text-align: left;
    cursor: pointer;
  }
  .sheet-sort-choice:hover,
  .sheet-sort-choice[aria-checked="true"] {
    background: var(--soft);
  }
  .sheet-choice-check {
    color: var(--primary);
    font-weight: 700;
    opacity: 0;
  }
  .sheet-sort-choice[aria-checked="true"] .sheet-choice-check {
    opacity: 1;
  }
  @keyframes mobile-sheet-in {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes sheet-backdrop-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  .identity-grid {
    grid-template-columns: 1fr;
  }
  .identity-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .chart {
    height: 240px;
  }
  .section-head {
    align-items: flex-end;
  }
  .history-mobile-card .mobile-field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .chart-head {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }
	.product-switcher {
		width: 100%;
	}
	.product-switcher-trigger {
		min-height: 64px;
	}
	.favorite-quick-access {
		display: block;
	}
	.favorite-quick-label {
		display: block;
		margin-bottom: 6px;
	}
	.favorite-chips {
		margin-inline: -2px;
		padding: 2px 2px 5px;
	}
	.favorite-chip {
		min-height: 44px;
	}
	.product-switcher-layer.is-mobile .product-switcher-backdrop {
		background: rgba(10, 26, 32, 0.36);
		backdrop-filter: blur(1px);
	}
	.product-switcher-layer.is-mobile {
		top: var(--product-switcher-vv-top, 0px);
		bottom: auto;
		height: var(--product-switcher-vv-height, 100dvh);
	}
	.product-switcher-layer.is-mobile .product-switcher-panel {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		max-height: min(620px, calc(var(--product-switcher-vv-height, 100dvh) - 18px));
		padding-bottom: env(safe-area-inset-bottom);
		border-width: 1px 0 0;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -14px 40px rgba(16, 38, 47, 0.2);
		animation-name: product-switcher-sheet-in;
	}
	.product-switcher-layer.is-mobile.is-visual-viewport-reduced .product-switcher-panel {
		padding-bottom: 0;
	}
	.product-switcher-layer.is-mobile .product-switcher-panel::before {
		content: "";
		position: absolute;
		top: 8px;
		left: 50%;
		width: 36px;
		height: 4px;
		margin-left: -18px;
		border-radius: 999px;
		background: var(--line);
	}
	.product-switcher-layer.is-mobile .product-switcher-panel > header {
		min-height: 60px;
		padding-top: 14px;
	}
	.product-switcher-layer.is-mobile .product-switcher-close {
		display: grid;
	}
	.product-switcher-layer.is-mobile .product-switcher-search input {
		min-height: 50px;
		font-size: 16px;
	}
	.product-switcher-layer.is-mobile .product-switcher-results {
		padding-bottom: 12px;
	}
	.product-switcher-layer.is-mobile .product-switcher-select {
		min-height: 60px;
	}
	@keyframes product-switcher-sheet-in {
		from {
			opacity: 0;
			transform: translateY(28px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
  .chart-head .select {
    width: 100%;
    max-width: none;
  }
  .chart {
    height: 240px;
  }
  .product-controls {
    position: sticky;
    z-index: 4;
    top: 58px;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    margin-inline: -2px;
    box-shadow: 0 6px 18px rgba(24, 56, 68, 0.06);
  }
  .product-controls .search-control {
    grid-column: auto;
    min-height: 46px;
    font-size: 16px;
  }
  .product-controls .desktop-product-control {
    display: none;
  }
  .mobile-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .mobile-product-actions .secondary {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    overflow: hidden;
  }
  .mobile-product-actions .secondary > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-filter-button.has-active-filters {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
    background: var(--soft);
  }
  .mobile-control-icon {
    flex: 0 0 auto;
    color: currentColor;
    font-size: 16px;
  }
  .table-wrap {
    max-width: 100%;
  }
  .account-menu {
    position: fixed;
    z-index: 65;
    left: auto;
    right: 12px;
    top: 66px;
    bottom: auto;
    width: min(320px, calc(100vw - 24px));
    padding: 14px;
    border-radius: 13px;
    box-shadow: 0 16px 42px rgba(20, 45, 55, 0.2);
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    animation: account-popover-in 0.16s ease-out;
  }
  .account-menu::before {
    content: none;
  }
  .account-close {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    width: 36px;
    min-height: 36px !important;
    padding: 0 !important;
    place-items: center;
    border: 0 !important;
    color: var(--muted) !important;
    background: transparent !important;
    font-size: 24px;
  }
  .account-menu button {
    min-height: 44px;
  }
  @keyframes account-popover-in {
    from {
      opacity: 0;
      transform: translateY(-6px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  .dialog-backdrop {
    padding: 0;
    place-items: end center;
  }
  .confirm-backdrop {
    padding: 16px calc(16px + env(safe-area-inset-bottom));
    place-items: center;
  }
  .changelog-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 16px 16px 0 0;
  }
  .changelog-dialog > header {
    padding: 16px;
  }
  .changelog-content {
    max-height: calc(100dvh - 104px);
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  }
  .event-list .alert-row {
    grid-template-columns: auto 1fr;
  }
  .alert-row time {
    grid-column: 2;
  }
  .event-list .empty {
    min-height: 96px;
  }
}
@media (max-width: 580px) {
  #content {
    padding: 16px 12px 24px;
  }
  .main > header {
    height: 58px;
    padding: 0 12px;
  }
  #page-subtitle {
    display: none;
  }
  .account > button > span:nth-child(2) {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .page-head h1 {
    font-size: 24px;
    line-height: 1.2;
  }
  .page-head {
    margin-bottom: 16px;
  }
  .page-head p {
    font-size: 13px;
  }
  .card {
    padding: 14px;
    border-radius: 11px;
  }
  .product-mobile-card {
    padding: 12px;
  }
  .product-mobile-card .mobile-secondary {
    margin: 3px 0 9px;
    -webkit-line-clamp: 1;
  }
  .product-mobile-card .mobile-field-grid {
    gap: 8px 12px;
  }
  .product-mobile-card .mobile-time {
    margin-top: 9px;
    padding-top: 8px;
  }
  .metric strong {
    font-size: 28px;
  }
  .metric small {
    font-size: 10px;
  }
  .status-strip {
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .status-item + .status-item {
    border-top: 1px solid var(--line);
  }
  .login-panel {
    padding: 24px;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .list-controls {
    grid-template-columns: 1fr;
  }
  .search-control {
    grid-column: auto;
  }
  .list-controls .select {
    max-width: none;
    width: 100%;
  }
  .chart-summary {
    gap: 8px 16px;
  }
  .admin-summary {
    grid-template-columns: 1fr;
  }
  .range-button {
    min-height: 40px;
    flex: 1 1 auto;
  }
}
