:root {
  color-scheme: dark;
  --bg: #090c12;
  --bg-soft: #0f141e;
  --surface: #151b27;
  --surface-2: #1a2231;
  --surface-3: #202a3c;
  --text: #edf1f7;
  --muted: #98a3b7;
  --line: #293348;
  --accent: #ff8a2a;
  --accent-2: #ffc05a;
  --accent-soft: rgba(255, 138, 42, .13);
  --good: #3dd9a4;
  --good-soft: rgba(61, 217, 164, .13);
  --warn: #f7c64d;
  --warn-soft: rgba(247, 198, 77, .13);
  --bad: #ff7777;
  --bad-soft: rgba(255, 119, 119, .13);
  --blue: #78a9ff;
  --radius: 18px;
  --shadow: 0 14px 38px rgba(0, 0, 0, .28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Inter, system-ui, sans-serif;
  background:
    radial-gradient(900px 460px at 5% -8%, rgba(54, 77, 126, .26), transparent 63%),
    radial-gradient(800px 400px at 105% 0, rgba(111, 54, 104, .18), transparent 62%),
    var(--bg);
  background-attachment: fixed;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 10px 17px;
  color: #171006;
  background: linear-gradient(105deg, var(--accent), var(--accent-2));
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 138, 42, .25);
}

button:disabled {
  cursor: wait;
  opacity: .6;
  transform: none;
  box-shadow: none;
}

.button.secondary,
button.secondary {
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--line);
}

.button.ghost,
button.ghost {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}

.button.danger,
button.danger {
  color: var(--bad);
  background: var(--bad-soft);
  border: 1px solid rgba(255, 119, 119, .35);
}

button.compact,
.button.compact {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
}

button.busy::before {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: spin .65s linear infinite;
  vertical-align: -2px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color .15s, box-shadow .15s;
}

input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--accent);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 138, 42, .16);
}

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 9px 13px;
  border-radius: 10px;
  color: #111;
  background: var(--accent-2);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid rgba(41, 51, 72, .85);
  background: rgba(11, 14, 21, .88);
  backdrop-filter: blur(14px);
}

.topnav {
  display: flex;
  max-width: 1140px;
  min-height: 58px;
  margin: auto;
  padding: 8px 16px;
  align-items: center;
  gap: 14px;
}

.brand {
  flex: 0 0 auto;
  color: var(--accent-2);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .2px;
  text-decoration: none;
}

.desktop-links {
  display: flex;
  gap: 4px;
}

.desktop-links a,
.nav-button {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.desktop-links a:hover,
.nav-button:hover {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: none;
  transform: none;
}

.desktop-links a.active {
  color: #181006;
  background: linear-gradient(105deg, var(--accent), var(--accent-2));
}

.logout-form {
  margin-left: auto;
}

main {
  width: min(1120px, 100%);
  margin: auto;
  padding: 20px 16px 70px;
}

.mobile-nav {
  display: none;
}

.flash-stack {
  position: fixed;
  top: 68px;
  right: max(16px, calc((100vw - 1120px) / 2));
  z-index: 100;
  width: min(400px, calc(100vw - 32px));
}

.flash {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 14px;
  background: rgba(26, 34, 49, .96);
  box-shadow: var(--shadow);
}

.flash-success {
  color: var(--good);
  border-color: rgba(61, 217, 164, .35);
}

.flash-error {
  color: var(--bad);
  border-color: rgba(255, 119, 119, .35);
}

.flash-info {
  color: var(--blue);
}

.card {
  margin-bottom: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}

.card.flat {
  box-shadow: none;
}

.card-header {
  display: flex;
  margin-bottom: 13px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(21px, 4vw, 30px);
  line-height: 1.2;
}

h2 {
  margin-bottom: 12px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h3 {
  font-size: 15px;
}

.section-intro {
  max-width: 720px;
  color: var(--muted);
}

.muted,
.mut {
  color: var(--muted);
}

.fine {
  color: var(--muted);
  font-size: 12px;
}

.good,
.ok {
  color: var(--good);
}

.warn {
  color: var(--warn);
}

.bad,
.err {
  color: var(--bad);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
}

.stat {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px;
  color: inherit;
  background: var(--bg-soft);
  text-align: left;
  text-decoration: none;
}

.stat strong,
.stat b {
  display: block;
  overflow: hidden;
  color: var(--accent-2);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat small {
  display: block;
  color: var(--muted);
}

a.stat {
  transition: transform .15s, border-color .15s;
}

a.stat:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.status-pill,
.badge,
.best,
.drop,
.up,
.note,
.stale {
  display: inline-flex;
  min-height: 25px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-ok,
.best,
.drop {
  color: var(--good);
  border-color: rgba(61, 217, 164, .35);
  background: var(--good-soft);
}

.status-starting,
.status-warn,
.note {
  color: var(--warn);
  border-color: rgba(247, 198, 77, .35);
  background: var(--warn-soft);
}

.status-degraded,
.up {
  color: var(--bad);
  border-color: rgba(255, 119, 119, .35);
  background: var(--bad-soft);
}

.badge {
  color: var(--muted);
  background: var(--surface-2);
}

.stale {
  color: var(--warn);
  background: var(--warn-soft);
}

.actions,
.filterbar,
.inline-fields,
.range-tabs,
.legend,
.pagination,
.profile-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.actions form {
  margin: 0;
}

.progress-shell {
  overflow: hidden;
  height: 9px;
  margin: 10px 0 5px;
  border-radius: 999px;
  background: var(--bg);
}

.progress-bar {
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s ease;
}

.progress-bar.indeterminate {
  width: 35%;
  animation: indeterminate 1.3s ease-in-out infinite alternate;
}

.table-scroll,
.health-scroll {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px 4px;
  scrollbar-color: var(--line) transparent;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 9px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, .022);
}

thead th {
  position: static;
  background: var(--surface);
}

.plink {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.plink:hover {
  color: var(--accent-2);
}

.external {
  display: inline-flex;
  min-width: 30px;
  min-height: 30px;
  margin-left: 4px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
}

.external:hover {
  color: var(--accent);
}

.price {
  color: var(--good);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.old {
  color: var(--muted);
  font-size: 12px;
  text-decoration: line-through;
  white-space: nowrap;
}

.range {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sort-link,
.toggle,
.range-tab {
  display: inline-flex;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  align-items: center;
  color: var(--muted);
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.sort-link {
  min-height: auto;
  border: 0;
  padding: 0;
  background: transparent;
}

.toggle:hover,
.range-tab:hover,
.sort-link:hover {
  color: var(--text);
  border-color: var(--accent);
}

.toggle.on,
.range-tab.on,
.sort-link.on {
  color: #171006;
  border-color: transparent;
  background: linear-gradient(105deg, var(--accent), var(--accent-2));
}

.filter-label {
  margin-right: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 210px) auto;
  gap: 8px;
}

.result-summary {
  color: var(--muted);
  font-size: 13px;
}

.pagination {
  justify-content: center;
  margin-top: 14px;
}

.pagination a,
.pagination span {
  display: inline-grid;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  place-items: center;
  color: var(--muted);
  text-decoration: none;
}

.pagination a:hover,
.pagination .current {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.metagrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 9px;
}

.metric {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  background: var(--bg-soft);
}

.metric strong {
  display: block;
  overflow: hidden;
  color: var(--accent-2);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric.hero strong {
  color: var(--good);
  font-size: 23px;
}

.metric small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.chart-wrap {
  position: relative;
  min-height: 210px;
}

.price-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 210px;
  overflow: visible;
  touch-action: pan-y;
}

.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-area {
  fill: url("#price-area");
}

.chart-band {
  fill: rgba(120, 169, 255, .13);
  stroke: none;
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.chart-median {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
  stroke-dasharray: 6 5;
  opacity: .85;
  vector-effect: non-scaling-stroke;
}

.chart-marker {
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
}

.chart-marker.dip-line {
  stroke: var(--good);
}

.chart-marker.target-line {
  stroke: var(--warn);
}

.chart-point {
  fill: var(--surface);
  stroke: var(--accent-2);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart-point:focus,
.chart-point.active {
  fill: var(--accent-2);
  outline: 0;
}

.chart-label {
  fill: var(--muted);
  font-size: 11px;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  max-width: 210px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 9px;
  color: var(--text);
  background: rgba(9, 12, 18, .96);
  box-shadow: var(--shadow);
  font-size: 12px;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}

.chart-tooltip[hidden] {
  display: none;
}

.legend {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

.legend-item::before {
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 6px;
  border-radius: 4px;
  background: var(--accent);
  content: "";
  vertical-align: 3px;
}

.legend-item.median::before {
  background: var(--blue);
}

.legend-item.band::before {
  height: 8px;
  background: rgba(120, 169, 255, .25);
}

.legend-item.target::before {
  background: var(--warn);
}

.legend-item.dip::before {
  background: var(--good);
}

.dotplot {
  position: relative;
  width: min(190px, 22vw);
  min-width: 110px;
  height: 24px;
}

.dotplot::before {
  position: absolute;
  top: 11px;
  right: 4px;
  left: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  content: "";
}

.dotplot-dot {
  position: absolute;
  top: 5px;
  left: clamp(5px, var(--pos, 0%), calc(100% - 13px));
  width: 13px;
  height: 13px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.dotplot.best-dot {
  background: var(--good);
  box-shadow: 0 0 0 1px var(--good);
}

.health-table {
  min-width: 680px;
}

.health-cell {
  min-width: 116px;
}

.health-indicator {
  display: inline-flex;
  min-height: 31px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px 8px;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 800;
}

.health-indicator::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
}

.health-indicator.ok::before {
  background: var(--good);
  box-shadow: 0 0 0 4px var(--good-soft);
}

.health-indicator.warn::before,
.health-indicator.stale::before {
  background: var(--warn);
}

.health-indicator.error::before {
  background: var(--bad);
  box-shadow: 0 0 0 4px var(--bad-soft);
}

.scan-bars {
  display: flex;
  height: 105px;
  padding-top: 8px;
  align-items: flex-end;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.scan-bar {
  position: relative;
  flex: 1;
  min-width: 10px;
  max-width: 46px;
  height: var(--height, 10%);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  opacity: .85;
}

.scan-bar.deep {
  background: linear-gradient(180deg, var(--blue), #5277c4);
}

.sparkline {
  display: block;
  width: 100px;
  height: 30px;
}

.sparkline polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline.down polyline {
  stroke: var(--good);
}

.forum-item {
  display: block;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  padding: 9px 2px;
  color: var(--text);
  text-decoration: none;
}

.forum-item:last-child {
  border-bottom: 0;
}

.forum-item:hover {
  color: var(--accent-2);
}

.forum-item small {
  color: var(--muted);
}

label {
  display: block;
  margin: 12px 0 5px;
  font-weight: 700;
}

.field-hint {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.check-field {
  display: grid;
  grid-template-columns: 24px 1fr;
  min-height: 44px;
  margin: 10px 0;
  align-items: center;
  gap: 9px;
}

.check-field label {
  margin: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.watch-form {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(150px, .7fr);
  margin: 14px 0 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  align-items: end;
  gap: 10px 14px;
  background: var(--bg-soft);
}

.watch-form .field label {
  margin-top: 0;
}

.watch-form .watch-trust {
  margin: 0;
}

.watch-form > button {
  justify-self: end;
}

.field.full {
  grid-column: 1 / -1;
}

.settings-tabs {
  display: flex;
  overflow-x: auto;
  margin: 0 0 14px;
  padding-bottom: 3px;
  gap: 6px;
}

.settings-tab {
  flex: 0 0 auto;
  min-height: 40px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.settings-tab[aria-selected="true"] {
  color: #171006;
  border-color: transparent;
  background: linear-gradient(105deg, var(--accent), var(--accent-2));
}

.js-enabled .settings-panel[hidden] {
  display: none;
}

.profile-card {
  flex: 1 1 180px;
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--bg-soft);
}

.profile-card strong {
  display: block;
  margin-bottom: 4px;
}

.profile-card p {
  min-height: 35px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.load-estimate {
  margin: 12px 0;
  border: 1px solid rgba(120, 169, 255, .3);
  border-radius: 13px;
  padding: 11px 13px;
  color: var(--blue);
  background: rgba(120, 169, 255, .08);
}

.secret-box {
  border: 1px dashed var(--line);
  border-radius: 13px;
  padding: 12px;
  background: var(--bg-soft);
}

.secret-reveal {
  border-color: rgba(247, 198, 77, .38);
  background: var(--warn-soft);
}

.sticky-save {
  position: sticky;
  bottom: 12px;
  z-index: 15;
  display: flex;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 9px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(15, 20, 30, .94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

code {
  border-radius: 6px;
  padding: 2px 5px;
  color: var(--accent-2);
  background: var(--bg);
  overflow-wrap: anywhere;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 25px 16px;
  color: var(--muted);
  text-align: center;
}

.login-page {
  display: grid;
  min-height: 100vh;
  padding: 18px;
  place-items: center;
}

.login-card {
  width: min(390px, 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}

.login-card h1 {
  color: var(--accent-2);
}

.login-card button {
  width: 100%;
  margin-top: 8px;
}

.login-error {
  border: 1px solid rgba(255, 119, 119, .35);
  border-radius: 11px;
  padding: 9px 11px;
  color: var(--bad);
  background: var(--bad-soft);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes indeterminate {
  from { transform: translateX(-20%); }
  to { transform: translateX(210%); }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .topnav {
    min-height: 52px;
    padding: 7px 13px;
  }

  .desktop-links {
    display: none;
  }

  .nav-button {
    min-height: 38px;
    padding: 7px 11px;
  }

  main {
    padding: 13px 10px calc(92px + env(safe-area-inset-bottom));
  }

  .mobile-nav {
    position: fixed;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 8px;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 62px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 5px;
    background: rgba(15, 20, 30, .94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }

  .mobile-nav a {
    display: grid;
    min-width: 0;
    min-height: 50px;
    border-radius: 13px;
    place-items: center;
    align-content: center;
    color: var(--muted);
    text-decoration: none;
  }

  .mobile-nav a span {
    font-size: 20px;
    line-height: 1;
  }

  .mobile-nav a small {
    margin-top: 3px;
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-nav a.active {
    color: var(--accent-2);
    background: var(--accent-soft);
  }

  .flash-stack {
    top: 60px;
    right: 10px;
    width: calc(100vw - 20px);
  }

  .card {
    border-radius: 15px;
    padding: 14px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat strong,
  .stat b {
    font-size: 19px;
  }

  .actions > form,
  .actions > form button {
    flex: 1 1 140px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .watch-form {
    grid-template-columns: 1fr;
  }

  .watch-form > button {
    width: 100%;
    justify-self: stretch;
  }

  .responsive-table {
    display: block;
  }

  .responsive-table thead {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
  }

  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table tr {
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 7px 10px;
    background: var(--bg-soft);
  }

  .responsive-table td {
    display: grid;
    grid-template-columns: minmax(88px, .42fr) 1fr;
    min-height: 38px;
    border-bottom: 1px solid rgba(41, 51, 72, .72);
    padding: 8px 2px;
    align-items: center;
    gap: 8px;
    text-align: right;
  }

  .responsive-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-align: left;
    text-transform: uppercase;
  }

  .responsive-table td:first-child {
    display: block;
    padding: 9px 2px 11px;
    text-align: left;
  }

  .responsive-table td:first-child::before {
    display: none;
  }

  .responsive-table td:last-child {
    border-bottom: 0;
  }

  .responsive-table td > * {
    justify-self: end;
  }

  .responsive-table td:first-child > * {
    justify-self: start;
  }

  .product-table .product-name {
    font-size: 15px;
    line-height: 1.4;
  }

  .dotplot {
    width: min(190px, 100%);
    margin-left: auto;
  }

  .price-chart {
    min-height: 190px;
  }

  .chart-label {
    font-size: 10px;
  }

  .sticky-save {
    bottom: 78px;
  }
}

@media (max-width: 390px) {
  .brand {
    font-size: 15px;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 10px;
  }

  .metagrid {
    grid-template-columns: 1fr 1fr;
  }
}

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