/* veridrop minimal style — light, hvoy.ai-adjacent. No external deps. */

:root {
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --green: #10b981;
  --green-dark: #059669;
  --green-soft: #d1fae5;
  --red: #ef4444;
  --amber: #f59e0b;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Arial, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC",
               sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono",
               Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 24px 64px;
  flex: 1;
  width: 100%;
}

/* ============================== Liquid Glass System Overhaul ============================== */
.mac-desktop {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(4, 19, 35, 0.26)),
    url("/static/generated/mac-white-surf-wallpaper-loop.png") center top / cover repeat-y;
  animation: macWallpaperFlow 64s linear infinite;
}

@keyframes macWallpaperFlow {
  from { background-position: center 0, center 0; }
  to { background-position: center 0, center 1792px; }
}

.mac-desktop::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.18)),
    linear-gradient(90deg, rgba(3, 12, 24, 0.18), transparent 42%, rgba(3, 12, 24, 0.14));
}

.mac-system .glass-container {
  width: 100%;
  max-width: none;
  height: 100dvh;
  padding: 24px 28px 118px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.no-shell {
  display: contents;
}

.no-shell > .mac-live-titlebar {
  display: none;
}

.mac-system-window {
  position: relative;
  width: min(1040px, calc(100vw - 42px));
  max-height: min(720px, calc(100dvh - 144px));
  overflow: auto;
  padding: 54px 28px 28px;
  border-radius: 31px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.2));
  box-shadow:
    0 34px 96px rgba(5, 18, 34, 0.34),
    inset 2px 2px 1px rgba(255,255,255,0.56),
    inset -1px -1px 1px rgba(255,255,255,0.34);
  backdrop-filter: blur(20px) saturate(1.22);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.46) transparent;
}

.mac-system-window::before,
.mac-system-window::after {
  display: none;
}

.mac-live-titlebar {
  position: sticky;
  top: -54px;
  height: 38px;
  margin: -54px -28px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,0.24);
  background: linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0.12));
  backdrop-filter: blur(18px) saturate(1.18);
  z-index: 12;
  transition: opacity 260ms ease, transform 260ms ease;
}

.mac-titlebar-label {
  grid-column: 2;
  text-align: center;
  color: rgba(11,18,32,0.58);
  font-size: 13px;
  font-weight: 800;
}

.global-mac-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 40;
  padding: 10px 14px 9px;
  gap: 12px;
  border-radius: 28px;
}

.global-mac-dock .dock-app {
  width: 62px;
  gap: 6px;
}

.global-mac-dock .dock-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
}

.global-mac-dock .dock-label {
  font-size: 11px;
}

.mac-launchpad .global-mac-dock,
.mac-ranking .global-mac-dock {
  display: none;
}

.mac-system-window .hero {
  margin-top: 4px;
}

.mac-system-window .hero h1,
.mac-system-window .hub-hero h1,
.mac-system-window .page-hero h1 {
  color: rgba(255,255,255,0.96);
  text-shadow: 0 12px 34px rgba(0,0,0,0.26);
}

.mac-system-window .card,
.mac-system-window .feature,
.mac-system-window .protocol-card,
.mac-system-window .trust-card,
.mac-system-window .why-item,
.mac-system-window .faq-item,
.mac-system-window .form-card,
.mac-system-window .alert-card {
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.22);
  box-shadow:
    0 14px 36px rgba(5, 18, 34, 0.16),
    inset 2px 2px 1px rgba(255,255,255,0.42),
    inset -1px -1px 1px rgba(255,255,255,0.25);
  backdrop-filter: blur(14px) saturate(1.12);
}

.mac-system-window input,
.mac-system-window select,
.mac-system-window textarea {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.28);
  box-shadow: inset 1px 1px 1px rgba(255,255,255,0.42);
}

.mac-system-window .btn,
.mac-system-window button[type="submit"] {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.38);
  box-shadow:
    0 10px 22px rgba(5,18,34,0.16),
    inset 2px 2px 1px rgba(255,255,255,0.48),
    inset -1px -1px 1px rgba(255,255,255,0.24);
  transition: transform 700ms var(--glass-ease), padding 700ms var(--glass-ease);
}

.mac-system-window .btn:hover,
.mac-system-window button[type="submit"]:hover {
  transform: translateY(-1px) scale(1.012);
}

.dock-settings {
  background:
    radial-gradient(circle at 50% 50%, #f8fafc 0 15%, transparent 16%),
    conic-gradient(from 11deg, #f4f6fb 0 7%, #748093 8% 14%, #f4f6fb 15% 22%, #748093 23% 30%, #f4f6fb 31% 38%, #748093 39% 46%, #f4f6fb 47% 54%, #748093 55% 62%, #f4f6fb 63% 70%, #748093 71% 78%, #f4f6fb 79% 86%, #748093 87% 94%, #f4f6fb 95% 100%),
    linear-gradient(145deg, #eef2f8, #6b7280);
}

.dock-settings i {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 8px solid rgba(55,65,81,0.9);
  background: #dbe3ee;
  box-shadow:
    inset 0 0 0 6px rgba(248,250,252,0.9),
    0 0 0 5px rgba(55,65,81,0.48);
}

@media (max-width: 720px) {
  .mac-system .glass-container {
    padding: 10px;
  }
  .mac-system-window {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 24px;
    padding: 48px 16px 18px;
  }
}

/* ============================== Liquid Glass Ranking Platform ============================== */
:root {
  --glass-text: #f8fafc;
  --glass-muted: rgba(248, 250, 252, 0.76);
  --glass-line: rgba(255, 255, 255, 0.22);
  --glass-panel: rgba(255, 255, 255, 0.24);
  --glass-panel-strong: rgba(255, 255, 255, 0.34);
  --glass-green: #86efac;
  --glass-cyan: #67e8f9;
  --glass-red: #fca5a5;
  --glass-amber: #fcd34d;
  --glass-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
  --glass-ease: cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

@keyframes moveBackground {
  0% { background-position: center center; }
  50% { background-position: center 45%; }
  100% { background-position: center center; }
}

.glass-filter-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body {
  background:
    linear-gradient(180deg, rgba(10, 16, 27, 0.18), rgba(10, 16, 27, 0.54)),
    url("https://images.unsplash.com/photo-1432251407527-504a6b4174a2?q=80&w=1480&auto=format&fit=crop&ixlib=rb-4.1.0") center center / cover fixed;
  color: var(--glass-text);
  animation: moveBackground 60s linear infinite;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.32) 58%, rgba(0,0,0,0.5));
}

body::after {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.28), rgba(20, 83, 45, 0.08), rgba(30, 41, 59, 0.24));
}

.glass-container {
  max-width: 1180px;
  padding-top: 42px;
}

.glass-effect {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  transition: transform 700ms var(--glass-ease), padding 700ms var(--glass-ease), border-radius 700ms var(--glass-ease), box-shadow 300ms ease;
}

.glass-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.glass-distort {
  z-index: 0;
  backdrop-filter: blur(3px);
  filter: url(#glass-distortion);
}

.glass-tint {
  z-index: 1;
  background: var(--glass-panel);
}

.glass-shine {
  z-index: 2;
  box-shadow: inset 2px 2px 1px 0 rgba(255,255,255,0.5), inset -1px -1px 1px 1px rgba(255,255,255,0.36);
}

.glass-content {
  position: relative;
  z-index: 3;
}

.glass-panel,
.glass-card {
  border-radius: 28px;
  padding: 24px;
}

.glass-card:hover,
.glass-button:hover,
.glass-dock:hover {
  transform: translateY(-2px) scale(1.01);
  text-decoration: none;
}

.glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 22px;
  color: var(--glass-text);
  font-weight: 700;
}

.glass-button:hover { color: var(--glass-text); }

.glass-button .glass-tint { background: rgba(255,255,255,0.22); }
.glass-button.glass-success .glass-tint { background: rgba(34, 197, 94, 0.26); }
.glass-button.glass-danger .glass-tint { background: rgba(239, 68, 68, 0.24); }
.glass-button.glass-warning .glass-tint { background: rgba(245, 158, 11, 0.24); }

.glass-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.18);
  color: var(--glass-text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.glass-badge-success { background: rgba(34, 197, 94, 0.28); color: #ecfdf5; }
.glass-badge-warning { background: rgba(245, 158, 11, 0.28); color: #fffbeb; }
.glass-badge-danger { background: rgba(239, 68, 68, 0.28); color: #fff1f2; }

.eyebrow {
  display: inline-block;
  color: var(--glass-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.glass-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 28px;
  align-items: center;
  min-height: 74vh;
  padding: 18px 0 26px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--glass-text);
  text-shadow: 0 12px 36px rgba(0,0,0,0.32);
}

.page-hero.compact h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.hero-sub {
  max-width: 680px;
  color: var(--glass-text);
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.35;
  margin: 22px 0 10px;
  font-weight: 700;
}

.hero-note,
.page-hero p,
.section-head p,
.glass-panel p,
.glass-card p {
  color: var(--glass-muted);
}

.hero-note {
  max-width: 720px;
  font-size: 16px;
}

.hero-actions,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin: 24px 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.glass-metric {
  border-radius: 22px;
  padding: 14px;
}

.glass-metric .glass-tint { background: rgba(255,255,255,0.18); }
.glass-metric.glass-success .glass-tint { background: rgba(34,197,94,0.2); }
.glass-metric.glass-danger .glass-tint { background: rgba(239,68,68,0.2); }

.metric-label,
.metric-hint {
  display: block;
  color: var(--glass-muted);
  font-size: 12px;
}

.metric-value {
  display: block;
  margin: 2px 0;
  color: var(--glass-text);
  font-size: 22px;
}

.hero-ranking-panel {
  padding: 26px;
}

.panel-head,
.provider-card-head,
.provider-detail-head,
.ranking-list-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.panel-head h2,
.glass-panel h2,
.glass-card h2,
.provider-card h3,
.provider-card h2 {
  color: var(--glass-text);
  margin-top: 0;
}

.board-columns {
  display: grid;
  gap: 22px;
}

.board-columns h3 {
  margin: 18px 0 10px;
  color: var(--glass-text);
}

.ranking-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  color: var(--glass-text);
  padding: 12px;
  margin: 8px 0;
  border-radius: 18px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.16);
}

.ranking-row:hover {
  text-decoration: none;
  background: rgba(255,255,255,0.2);
}

.ranking-row small {
  display: block;
  color: var(--glass-muted);
  line-height: 1.4;
}

.provider-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 16px;
  color: var(--glass-text);
  font-weight: 900;
  background: linear-gradient(135deg, rgba(103,232,249,0.38), rgba(134,239,172,0.26), rgba(252,165,165,0.2));
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: inset 2px 2px 1px rgba(255,255,255,0.35);
}

.glass-disclaimer {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(15, 23, 42, 0.22);
  color: var(--glass-muted);
  font-size: 13px;
}

.glass-disclaimer strong {
  color: var(--glass-text);
  margin-right: 8px;
}

.glass-dock-section {
  margin: -10px 0 46px;
  display: flex;
  justify-content: center;
}

.glass-dock {
  border-radius: 30px;
  padding: 12px;
}

.dock-icons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px;
}

.dock-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 20px;
  color: var(--glass-text);
  background: rgba(255,255,255,0.18);
  font-weight: 900;
  transition: transform 700ms var(--glass-ease);
}

.dock-icons a:hover {
  transform: scale(1.12);
  text-decoration: none;
}

.section-head,
.page-hero.compact {
  margin: 30px 0 22px;
  max-width: 780px;
}

.provider-grid,
.glass-info-grid,
.detail-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

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

.provider-card {
  min-height: 100%;
}

.provider-card-head {
  align-items: flex-start;
}

.provider-card-head p {
  margin: 4px 0 0;
  font-size: 14px;
}

.provider-card-metrics,
.ranking-metrics-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.provider-card-metrics span,
.ranking-metrics-inline span {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  color: var(--glass-muted);
  font-size: 13px;
}

.provider-card-metrics strong,
.ranking-metrics-inline b {
  display: block;
  color: var(--glass-text);
  font-size: 17px;
}

.glass-link,
.glass-table a,
.info-list a {
  color: var(--glass-cyan);
  font-weight: 700;
}

.ranking-stack {
  display: grid;
  gap: 14px;
}

.ranking-list-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) auto minmax(280px, 1fr) auto;
}

.ranking-provider {
  display: flex;
  gap: 14px;
  align-items: center;
}

.ranking-provider h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.ranking-score-block {
  text-align: center;
}

.ranking-score-block strong {
  display: block;
  color: var(--glass-text);
  font-size: 34px;
}

.ranking-score-block span {
  color: var(--glass-muted);
  font-size: 12px;
}

.provider-detail-panel {
  margin-top: 16px;
}

.provider-detail-head {
  align-items: center;
}

.provider-detail-head h1,
.provider-detail-head h2 {
  margin: 0;
  color: var(--glass-text);
}

.score-dial {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 36px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.24);
}

.score-dial strong {
  font-size: 34px;
  color: var(--glass-text);
}

.score-dial span {
  color: var(--glass-muted);
  font-size: 12px;
}

.score-bars {
  display: grid;
  gap: 14px;
}

.score-bar-meta {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  color: var(--glass-text);
}

.score-bar-meta small {
  color: var(--glass-muted);
}

.score-bar-track {
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  overflow: hidden;
}

.score-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--glass-cyan), var(--glass-green), var(--glass-amber));
}

.info-list {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  color: var(--glass-muted);
}

.info-list dt {
  color: var(--glass-text);
  font-weight: 700;
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 120px;
  margin: 10px 0 18px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.11);
}

.mini-chart span {
  flex: 1;
  min-width: 14px;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, var(--glass-cyan), var(--glass-green));
}

.error-chart span {
  background: linear-gradient(180deg, var(--glass-amber), var(--glass-red));
}

.risk-list {
  display: grid;
  gap: 12px;
}

.risk-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
}

.risk-item strong {
  display: block;
  margin-top: 8px;
  color: var(--glass-text);
}

.table-panel {
  margin: 22px 0;
}

.glass-table-wrap {
  overflow-x: auto;
}

.glass-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.glass-table th {
  text-align: left;
  color: rgba(248,250,252,0.72);
  font-size: 12px;
  padding: 6px 12px;
}

.glass-table td {
  padding: 12px;
  background: rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  color: var(--glass-text);
}

.glass-table td:first-child {
  border-left: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px 0 0 14px;
}

.glass-table td:last-child {
  border-right: 1px solid rgba(255,255,255,0.14);
  border-radius: 0 14px 14px 0;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.glass-list {
  color: var(--glass-muted);
  padding-left: 20px;
}

.glass-list li {
  margin: 8px 0;
}

.glass-form {
  display: grid;
  gap: 14px;
}

.glass-form.inline-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.glass-form label {
  display: grid;
  gap: 7px;
  color: var(--glass-text);
  font-weight: 700;
}

.glass-form input,
.glass-form select,
.glass-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  padding: 11px 13px;
  background: rgba(255,255,255,0.18);
  color: var(--glass-text);
  outline: none;
}

.glass-form textarea {
  min-height: 120px;
  resize: vertical;
}

.glass-form input::placeholder,
.glass-form textarea::placeholder {
  color: rgba(248,250,252,0.58);
}

.glass-form input:focus-visible,
.glass-form select:focus-visible,
.glass-form textarea:focus-visible,
.glass-button:focus-visible,
.mini-action:focus-visible,
.glass-submit:focus-visible {
  outline: 3px solid rgba(103,232,249,0.42);
  outline-offset: 2px;
}

.glass-submit,
.mini-action {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 16px;
  padding: 10px 14px;
  color: var(--glass-text);
  background: rgba(34,197,94,0.28);
  font-weight: 800;
  cursor: pointer;
}

.mini-action {
  min-height: 34px;
  background: rgba(103,232,249,0.2);
}

.form-status {
  margin: 0;
  color: var(--glass-green);
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
}

.admin-sidebar h1 {
  margin-top: 0;
  color: var(--glass-text);
}

.admin-nav {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.admin-nav a {
  color: var(--glass-text);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
}

.admin-nav a:hover {
  text-decoration: none;
  background: rgba(255,255,255,0.2);
}

.admin-hero {
  margin-top: 0;
}

.muted {
  color: var(--glass-muted);
}

code {
  color: #e0f2fe;
  background: rgba(15,23,42,0.34);
  border-color: rgba(255,255,255,0.14);
}

@media (prefers-reduced-motion: reduce) {
  body,
  .glass-effect,
  .dock-icons a {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .glass-home-hero,
  .admin-layout,
  .detail-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: relative;
    top: 0;
  }
  .provider-grid,
  .glass-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ranking-list-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .glass-container {
    padding: 24px 14px 46px;
  }
  .glass-home-hero {
    min-height: auto;
  }
  .hero-copy h1,
  .page-hero h1 {
    font-size: 42px;
  }
  .hero-metrics,
  .provider-grid,
  .glass-info-grid,
  .provider-card-metrics,
  .ranking-metrics-inline,
  .glass-form.inline-form {
    grid-template-columns: 1fr;
  }
  .glass-panel,
  .glass-card {
    border-radius: 24px;
    padding: 18px;
  }
  .provider-detail-head,
  .panel-head,
  .provider-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .score-dial {
    width: 100%;
    height: auto;
    min-height: 92px;
  }
  .info-list {
    grid-template-columns: 1fr;
  }
}

/* ============================== macOS Desktop Mode ============================== */
.mac-desktop {
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.38)),
    repeating-radial-gradient(ellipse at 50% 0%, rgba(220, 247, 255, 0.28) 0 2px, rgba(110, 180, 210, 0.2) 3px 9px, rgba(24, 58, 91, 0.22) 10px 21px),
    linear-gradient(180deg, #b9e7f2 0%, #74a9c8 22%, #355f8f 45%, #88c5cf 68%, #d1f4ee 100%);
  background-size: 100% 100%, 100% 1180px, 100% 1180px;
  animation: macRiverFlow 42s linear infinite;
}

@keyframes macRiverFlow {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 0 1180px, 0 1180px; }
}

.mac-desktop::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.16)),
    repeating-linear-gradient(178deg, rgba(255,255,255,0.1) 0 1px, transparent 1px 18px);
}

.mac-desktop::after {
  background: linear-gradient(90deg, rgba(8,16,30,0.18), transparent 38%, rgba(8,16,30,0.2));
}

.mac-desktop .glass-container {
  width: 100%;
  max-width: none;
  height: 100dvh;
  padding: 0;
  margin: 0;
}

.mac-stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.mac-dock {
  position: relative;
  --dock-shift: translateX(0);
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 16px;
  padding: 16px 20px 14px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.44);
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.2));
  box-shadow:
    0 24px 70px rgba(10,20,36,0.28),
    inset 2px 2px 1px rgba(255,255,255,0.64),
    inset -1px -1px 1px rgba(255,255,255,0.34);
  backdrop-filter: blur(18px) saturate(1.25);
}

.mac-dock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  filter: url(#glass-distortion);
  pointer-events: none;
}

.dock-app {
  position: relative;
  z-index: 1;
  width: 78px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
  transition: transform 520ms var(--glass-ease);
  text-decoration: none;
}

.dock-app:hover,
.dock-app:focus-visible {
  transform: translateY(-8px) scale(1.08);
  text-decoration: none;
}

.dock-app.active::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.dock-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow:
    0 14px 30px rgba(7, 15, 30, 0.22);
}

.dock-img {
  background-image: var(--icon-url);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
}

.dock-gemini {
  background:
    linear-gradient(140deg, rgba(255,255,255,0.9), rgba(148,197,255,0.76) 36%, rgba(115,102,255,0.82) 67%, rgba(95,33,171,0.78));
}

.dock-gemini b {
  font-size: 38px;
  color: #fff;
  font-weight: 900;
}

.dock-settings {
  background: linear-gradient(145deg, #f7f8fb, #9aa4b5 48%, #48566c);
}

.dock-settings i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 8px solid rgba(255,255,255,0.86);
  box-shadow: 0 0 0 6px rgba(55,65,81,0.62), inset 0 0 0 8px rgba(55,65,81,0.62);
}

.dock-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.ranking-stage {
  grid-template-rows: 1fr auto;
  gap: 22px;
  padding: 34px 20px;
}

.mac-window {
  width: min(860px, calc(100vw - 32px));
  max-height: min(650px, calc(100dvh - 170px));
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.42);
  background: linear-gradient(180deg, rgba(255,255,255,0.44), rgba(255,255,255,0.22));
  box-shadow:
    0 30px 90px rgba(6, 16, 32, 0.34),
    inset 1px 1px 1px rgba(255,255,255,0.66);
  backdrop-filter: blur(22px) saturate(1.2);
}

.mac-window-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.18);
}

.traffic-lights {
  display: flex;
  gap: 2px;
}

.traffic-lights span,
.traffic-lights button,
.traffic-lights a {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  padding: 3px;
  cursor: pointer;
  background-clip: content-box !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.55);
  display: block;
}

.traffic-lights span:nth-child(1),
.traffic-close { background: #ff5f57; }
.traffic-lights span:nth-child(2),
.traffic-minimize { background: #febc2e; }
.traffic-lights span:nth-child(3),
.traffic-fullscreen { background: #28c840; }

.traffic-lights button:hover,
.traffic-lights a:hover {
  filter: brightness(1.06) saturate(1.1);
}

.window-title {
  display: grid;
  gap: 2px;
  color: rgba(11, 18, 32, 0.9);
}

.window-title strong {
  font-size: 15px;
}

.window-title small {
  max-width: 44ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(11,18,32,0.58);
}

.window-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}

.window-tabs a {
  color: rgba(11,18,32,0.64);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.window-tabs a.active {
  color: rgba(11,18,32,0.92);
  background: rgba(255,255,255,0.5);
}

.mini-ranking-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  max-height: calc(min(650px, 100dvh - 170px) - 102px);
  overflow: hidden;
}

.mini-ranking-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 54px 84px 104px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 16px;
  color: rgba(11,18,32,0.88);
  background: rgba(255,255,255,0.26);
  border: 1px solid rgba(255,255,255,0.24);
  text-decoration: none;
}

.mini-ranking-row:hover {
  background: rgba(255,255,255,0.42);
  text-decoration: none;
}

.mini-site-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(145deg, #2dd4bf, #2563eb 56%, #111827);
  box-shadow: inset 1px 1px 1px rgba(255,255,255,0.42), 0 8px 18px rgba(8,18,36,0.18);
}

.mini-site-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mini-site-main strong,
.mini-site-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-site-main strong {
  font-size: 14px;
}

.mini-site-main small,
.mini-metrics small,
.window-footnote {
  color: rgba(11,18,32,0.56);
}

.mini-score {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}

.mini-score.good { background: rgba(22,163,74,0.86); }
.mini-score.watch { background: rgba(217,119,6,0.86); }
.mini-score.risk { background: rgba(220,38,38,0.86); }

.mini-metrics {
  display: grid;
  gap: 1px;
  font-size: 12px;
}

.mini-metrics b {
  font-size: 13px;
}

.uptime-bars {
  height: 26px;
  display: flex;
  align-items: end;
  gap: 4px;
  justify-content: end;
}

.uptime-bars i {
  display: block;
  width: 7px;
  height: 22px;
  border-radius: 5px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.54);
}

.uptime-bars i.ok { background: #22c55e; }
.uptime-bars i.warn { background: #eab308; height: 18px; }
.uptime-bars i.bad { background: #ef4444; height: 13px; }

.window-footnote {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px 14px;
  font-size: 12px;
}

.compact-dock {
  padding: 10px 14px 9px;
  gap: 12px;
  border-radius: 28px;
}

.compact-dock .dock-app {
  width: 62px;
  gap: 6px;
}

.compact-dock .dock-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
}

.compact-dock .dock-label {
  font-size: 11px;
}

@media (max-width: 720px) {
  .mac-dock {
    gap: 9px;
    padding: 12px;
    max-width: calc(100vw - 20px);
    overflow-x: auto;
  }
  .dock-app {
    width: 58px;
  }
  .dock-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }
  .ranking-stage {
    padding: 18px 10px;
    gap: 12px;
  }
  .mac-window {
    max-height: calc(100dvh - 124px);
    border-radius: 22px;
  }
  .mac-window-bar {
    grid-template-columns: 1fr;
  }
  .traffic-lights {
    display: none;
  }
  .window-tabs {
    overflow-x: auto;
  }
  .mini-ranking-row {
    grid-template-columns: 36px minmax(0, 1fr) 42px;
  }
  .mini-metrics,
  .uptime-bars {
    display: none;
  }
  .window-footnote {
    display: none;
  }
}

/* Final wallpaper lock: generated asset must win over older prototype CSS. */
body.mac-desktop {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(4, 19, 35, 0.24)),
    url("/static/generated/mac-white-surf-wallpaper-loop.png") center top / cover repeat-y !important;
  animation: macWallpaperFlow 64s linear infinite !important;
}

body.mac-desktop::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.18)),
    linear-gradient(90deg, rgba(3, 12, 24, 0.12), transparent 42%, rgba(3, 12, 24, 0.1)) !important;
}

body.mac-fullscreen .mac-system .glass-container,
body.mac-fullscreen .glass-container {
  padding: 10px !important;
  place-items: stretch !important;
}

body.mac-fullscreen .mac-system-window,
body.mac-fullscreen .mac-window {
  width: calc(100vw - 20px) !important;
  max-width: none !important;
  height: calc(100dvh - 20px) !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 18px !important;
}

/* 20260706-45b: final provider-library override, intentionally last. */
.mac-system-window .provider-library.provider-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  width: min(100%, 980px) !important;
  margin: 0 auto !important;
}

.mac-system-window .provider-library.provider-grid .provider-card {
  border-radius: 12px !important;
  border: 0 !important;
}

.mac-system-window .provider-library.provider-grid .provider-card > .glass-content,
.mac-system-window .provider-library.provider-grid .provider-card .glass-content {
  display: grid !important;
  grid-template-columns: minmax(240px, 1.3fr) auto minmax(260px, 1fr) auto !important;
  grid-template-areas:
    "head badges metrics link"
    "head status metrics link" !important;
  align-items: center !important;
  column-gap: 16px !important;
  row-gap: 6px !important;
  padding: 12px 14px !important;
}

.mac-system-window .provider-library.provider-grid .provider-card-head {
  grid-area: head !important;
  grid-template-columns: 38px minmax(0, 1fr) auto !important;
}

.mac-system-window .provider-library.provider-grid .badge-row {
  grid-area: badges !important;
}

.mac-system-window .provider-library.provider-grid .provider-card-metrics {
  grid-area: metrics !important;
}

.mac-system-window .provider-library.provider-grid .provider-card-status {
  grid-area: status !important;
}

.mac-system-window .provider-library.provider-grid .glass-link {
  grid-area: link !important;
  justify-self: end !important;
}

@media (max-width: 920px) {
  .mac-system-window .provider-library.provider-grid .provider-card > .glass-content,
  .mac-system-window .provider-library.provider-grid .provider-card .glass-content {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "head"
      "badges"
      "metrics"
      "status"
      "link" !important;
  }

  .mac-system-window .provider-library.provider-grid .glass-link {
    justify-self: start !important;
  }
}

/* ============================== Native App Content Pass 20260706-45 ==============================
   Turn secondary screens into denser system-app surfaces: Finder-like
   provider rows, quiet tables/forms, and consistent app-window spacing. */
.mac-system-window {
  scrollbar-gutter: stable both-edges;
}

.mac-system-window .page-hero.compact,
.mac-system-window .provider-detail-hero {
  margin: 0 0 16px !important;
}

.mac-system-window .page-hero.compact h1,
.mac-system-window .provider-detail-head h1,
.mac-system-window .report-panel h2 {
  letter-spacing: 0 !important;
  text-wrap: balance;
}

.mac-system-window .provider-library {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  width: min(100%, 980px) !important;
  margin: 0 auto !important;
}

.mac-system-window .provider-library .provider-card {
  border-radius: 12px !important;
  border: 0 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), rgba(236,248,251,0.14)),
    rgba(255,255,255,0.10) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.44),
    inset 0 -1px 0 rgba(0, 28, 42, 0.026),
    0 1px 0 rgba(255,255,255,0.13) !important;
}

.mac-system-window .provider-library .provider-card:hover,
.mac-system-window .provider-library .provider-card:focus-within {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.44), rgba(236,249,252,0.20)),
    rgba(255,255,255,0.13) !important;
  transform: translate3d(0, -1px, 0) !important;
}

.mac-system-window .provider-library .provider-card > .glass-content {
  display: grid !important;
  grid-template-columns: minmax(240px, 1.3fr) auto minmax(260px, 1fr) auto !important;
  grid-template-areas:
    "head badges metrics link"
    "head status metrics link" !important;
  align-items: center !important;
  column-gap: 16px !important;
  row-gap: 6px !important;
  padding: 12px 14px !important;
}

.mac-system-window .provider-library .provider-card-head {
  grid-area: head !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.mac-system-window .provider-library .provider-logo {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

.mac-system-window .provider-library .provider-card-head h2 {
  font-size: 14px !important;
  line-height: 1.22 !important;
  margin: 0 0 2px !important;
}

.mac-system-window .provider-library .provider-card-head p {
  max-width: 42ch !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  color: rgba(8, 22, 34, 0.54) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.mac-system-window .provider-library .provider-card-head .glass-badge {
  align-self: center !important;
}

.mac-system-window .provider-library .badge-row {
  grid-area: badges !important;
  margin: 0 !important;
  gap: 5px !important;
  justify-content: flex-start !important;
}

.mac-system-window .provider-library .provider-card-metrics {
  grid-area: metrics !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(86px, 1fr)) !important;
  gap: 5px !important;
  margin: 0 !important;
}

.mac-system-window .provider-library .provider-card-metrics span {
  min-height: 27px !important;
  padding: 4px 7px !important;
  border-radius: 7px !important;
  font-size: 10.5px !important;
}

.mac-system-window .provider-library .provider-card-metrics strong {
  font-size: 12px !important;
}

.mac-system-window .provider-card-status {
  grid-area: status !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: rgba(8, 22, 34, 0.52) !important;
  font-size: 10.5px !important;
  white-space: nowrap !important;
}

.mac-system-window .provider-card-status .uptime-bars {
  height: 19px !important;
  padding: 3px 5px !important;
}

.mac-system-window .provider-library .glass-link {
  grid-area: link !important;
  align-self: center !important;
  justify-self: end !important;
  min-width: 42px !important;
  padding: 6px 9px !important;
  border-radius: 8px !important;
  font-size: 11.5px !important;
}

.mac-system-window .glass-card,
.mac-system-window .glass-panel,
.mac-system-window .form-panel,
.mac-system-window .table-panel,
.mac-system-window .content-panel,
.mac-system-window .admin-sidebar,
.mac-system-window .report-panel,
.mac-system-window .provider-detail-panel {
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.38), rgba(236,248,251,0.16)),
    rgba(255,255,255,0.11) !important;
  border: 0.5px solid rgba(255,255,255,0.44) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.50),
    inset 0 -1px 0 rgba(0, 28, 42, 0.030),
    0 1px 0 rgba(255,255,255,0.12) !important;
}

.mac-system-window .admin-grid,
.mac-system-window .detail-grid {
  gap: 10px !important;
}

.mac-system-window .glass-form {
  gap: 9px !important;
}

.mac-system-window .glass-form label {
  font-size: 11px !important;
  color: rgba(8, 22, 34, 0.58) !important;
}

.mac-system-window .glass-table-wrap {
  border-radius: 11px !important;
  border: 0.5px solid rgba(255,255,255,0.34) !important;
  background: rgba(255,255,255,0.10) !important;
}

.mac-system-window .glass-table th {
  height: 30px !important;
  font-size: 10px !important;
  letter-spacing: 0 !important;
  background: rgba(255,255,255,0.18) !important;
}

.mac-system-window .glass-table td {
  height: 34px !important;
  font-size: 12px !important;
  border-color: rgba(7, 28, 42, 0.055) !important;
}

.mac-system-window .glass-table tr:hover td {
  background: rgba(255,255,255,0.18) !important;
}

.mac-system-window .content-stack {
  gap: 10px !important;
}

.mac-system-window .content-panel > .glass-content {
  padding: 16px 18px !important;
}

.mac-system-window .glass-list {
  gap: 6px !important;
}

.mac-system-window .glass-list li {
  border-radius: 8px !important;
  padding: 8px 10px !important;
  background: rgba(255,255,255,0.14) !important;
}

@media (max-width: 920px) {
  .mac-system-window .provider-library .provider-card > .glass-content {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "head"
      "badges"
      "metrics"
      "status"
      "link" !important;
    align-items: stretch !important;
  }

  .mac-system-window .provider-library .provider-card-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mac-system-window .provider-library .glass-link {
    justify-self: start !important;
  }
}

.ranking-stage {
  padding: 24px 20px 26px;
}

.mac-window {
  max-height: min(710px, calc(100dvh - 156px));
}

.mini-ranking-list {
  max-height: calc(min(710px, 100dvh - 156px) - 104px);
}

.global-mac-dock {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 18px !important;
  width: max-content !important;
  max-width: calc(100vw - 28px) !important;
  transform: translateX(-50%) !important;
  --dock-shift: translateX(-50%);
  padding: 10px 14px 9px !important;
  gap: 12px !important;
  border-radius: 28px !important;
  z-index: 80 !important;
}

.global-mac-dock .dock-app {
  width: 62px !important;
}

.global-mac-dock .dock-icon {
  width: 50px !important;
  height: 50px !important;
  border-radius: 14px !important;
}

.mac-app-opening .mac-dock,
.mac-app-switching .mac-dock,
.mac-app-minimizing .mac-dock {
  animation: dockBreath 420ms var(--glass-ease) both;
}

@keyframes dockBreath {
  45% { transform: var(--dock-shift) translateY(8px) scale(.96); }
}

body.mac-fullscreen .global-mac-dock,
body.mac-fullscreen .compact-dock {
  opacity: 0;
  transform: translateX(-50%) translateY(28px) scale(.96) !important;
  pointer-events: none;
}

body.mac-fullscreen .mac-system .glass-container,
body.mac-fullscreen .glass-container {
  padding: 0 !important;
}

body.mac-fullscreen .mac-system-window,
body.mac-fullscreen .mac-window {
  width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

body.mac-fullscreen .mac-live-titlebar,
body.mac-fullscreen .mac-window-bar {
  opacity: 1;
  transform: translateY(0);
}

body.mac-fullscreen .mac-system-window:hover .mac-live-titlebar,
body.mac-fullscreen .mac-window:hover .mac-window-bar {
  opacity: 1;
  transform: translateY(0);
}

.uptime-bars i {
  background: rgba(255,255,255,0.4);
  box-shadow: none;
}

.uptime-bars i.ok { background: #35c759; }
.uptime-bars i.warn { background: #ffcc00; height: 18px; }
.uptime-bars i.bad { background: #ff453a; height: 13px; }

/* ============================== Final macOS Liquid Desktop Pass ============================== */
body.mac-desktop {
  min-height: 100dvh;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(5,18,34,0.24)),
    url("/static/generated/mac-white-surf-wallpaper-loop.png") !important;
  background-position: center 0, center 0 !important;
  background-size: cover, 100% auto !important;
  background-repeat: no-repeat, repeat-y !important;
  animation: macWallpaperFlow 72s linear infinite !important;
}

@keyframes macWallpaperFlow {
  from { background-position: center 0, center 0; }
  to { background-position: center 0, center 177.6833156217vw; }
}

body.mac-desktop::before {
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,0.16), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2)),
    linear-gradient(90deg, rgba(3, 12, 24, 0.14), transparent 48%, rgba(3, 12, 24, 0.12)) !important;
}

.mac-system .glass-container {
  padding: 24px 28px 116px;
}

.mac-system-window,
.mac-window {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.18)),
    rgba(255,255,255,0.16) !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  box-shadow:
    0 42px 120px rgba(2, 12, 26, 0.42),
    0 2px 12px rgba(255,255,255,0.14),
    inset 1px 1px 0 rgba(255,255,255,0.76),
    inset -1px -1px 0 rgba(255,255,255,0.24) !important;
  backdrop-filter: blur(24px) saturate(1.24) !important;
}

.mac-system-window {
  width: min(1010px, calc(100vw - 42px));
  max-height: min(720px, calc(100dvh - 146px));
  border-radius: 30px;
}

.mac-window {
  border-radius: 28px;
}

.mac-system-window::before,
.mac-window::before,
.mac-dock::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  filter: url(#glass-distortion);
  opacity: 0.56;
  mix-blend-mode: screen;
}

.mac-system-window::after,
.mac-window::after,
.mac-dock::after {
  content: "";
  display: block;
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.62), transparent 18%, transparent 70%, rgba(255,255,255,0.18)),
    linear-gradient(180deg, rgba(255,255,255,0.22), transparent 46%);
  opacity: 0.58;
}

.mac-system-window > *,
.mac-window > *,
.mac-dock > * {
  position: relative;
  z-index: 1;
}

.mac-live-titlebar,
.mac-window-bar {
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.1)) !important;
  border-bottom: 1px solid rgba(255,255,255,0.24) !important;
  backdrop-filter: blur(22px) saturate(1.22);
}

.traffic-lights button,
.traffic-lights a {
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.72),
    0 1px 4px rgba(0,0,0,0.18);
}

.traffic-close { background: radial-gradient(circle at 35% 30%, #ff9d99, #ff5f57 62%, #d6413a) !important; }
.traffic-minimize { background: radial-gradient(circle at 35% 30%, #ffe18b, #febc2e 62%, #d99000) !important; }
.traffic-fullscreen { background: radial-gradient(circle at 35% 30%, #8cff92, #28c840 62%, #14962b) !important; }

.mac-dock {
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.17)) !important;
  border: 1px solid rgba(255,255,255,0.48) !important;
  box-shadow:
    0 26px 82px rgba(3, 14, 30, 0.38),
    0 2px 12px rgba(255,255,255,0.14),
    inset 1px 1px 0 rgba(255,255,255,0.74),
    inset -1px -1px 0 rgba(255,255,255,0.22) !important;
  backdrop-filter: blur(26px) saturate(1.25) !important;
}

.global-mac-dock {
  bottom: 22px !important;
  padding: 12px 16px 11px !important;
  border-radius: 31px !important;
}

.dock-app {
  transition: transform 420ms cubic-bezier(.22,1,.36,1), filter 240ms ease;
}

.dock-app:hover,
.dock-app:focus-visible {
  transform: translateY(-10px) scale(1.11);
  filter: saturate(1.04);
}

.dock-icon {
  background-color: transparent !important;
  background-clip: padding-box;
  border: 0 !important;
  box-shadow:
    0 15px 30px rgba(4, 14, 28, 0.32),
    0 1px 3px rgba(255,255,255,0.22) !important;
}

.dock-img {
  background-size: contain !important;
  background-color: transparent !important;
}

.dock-label {
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.38);
}

.window-tabs {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.42),
    0 10px 26px rgba(4,14,28,0.12);
}

.mini-ranking-list {
  gap: 7px;
}

.mini-ranking-row {
  min-height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.26);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.3);
}

.mini-ranking-row:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.34);
}

.mini-site-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.36), rgba(255,255,255,0.08)),
    linear-gradient(145deg, #13b8a6, #2c64f0 56%, #111827);
}

.mini-score {
  width: 40px;
  height: 28px;
  border-radius: 12px;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.32),
    0 8px 18px rgba(3,14,28,0.14);
}

.uptime-bars {
  height: 24px;
  gap: 3px;
}

.uptime-bars i {
  width: 6px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16);
}

.uptime-bars i.ok { background: linear-gradient(180deg, #7ee787, #35c759) !important; }
.uptime-bars i.warn { background: linear-gradient(180deg, #ffe68b, #ffcc00) !important; }
.uptime-bars i.bad { background: linear-gradient(180deg, #ff8a83, #ff453a) !important; }

.detector-app .mac-system-window {
  width: min(760px, calc(100vw - 42px));
  max-height: min(600px, calc(100dvh - 138px));
  padding: 54px 24px 24px;
  overflow: hidden;
}

.detector-app .mac-live-titlebar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
}

.detector-app .hero {
  margin: 0 0 14px;
}

.detector-app .hero h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.06;
  max-width: 12ch;
  margin: 0 auto;
}

.detector-app .hero-sub {
  display: none !important;
}

.detector-app .alert-card {
  display: none !important;
}

.detector-app .form-card {
  padding: 16px;
  margin: 0;
}

.detector-app .features,
.detector-app .faq {
  display: none !important;
}

.detector-app .field-row {
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 168px;
}

.detector-app .field {
  margin-bottom: 10px;
}

.detector-app .field-checkbox {
  display: none !important;
}

.detector-app .hint,
.detector-app .checkbox-hint {
  display: none !important;
}

.detector-app input,
.detector-app select {
  min-height: 42px;
}

.detector-app .btn-primary {
  width: 100%;
  margin-top: 2px;
}

body.mac-fullscreen .global-mac-dock {
  opacity: 0;
  transform: translateX(-50%) translateY(28px) scale(.96) !important;
  pointer-events: none;
}

body.mac-fullscreen .compact-dock {
  opacity: 0;
  transform: translateY(28px) scale(.96) !important;
  pointer-events: none;
}

body.mac-fullscreen .mac-system-window,
body.mac-fullscreen .mac-window {
  width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border: 0 !important;
}

body.mac-fullscreen .mac-live-titlebar,
body.mac-fullscreen .mac-window-bar,
body.mac-fullscreen .mac-system-window:hover .mac-live-titlebar,
body.mac-fullscreen .mac-window:hover .mac-window-bar {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (max-width: 720px) {
  .mac-system .glass-container {
    padding: 14px 12px 100px;
  }

  .global-mac-dock,
  .compact-dock {
    max-width: calc(100vw - 18px) !important;
    gap: 8px !important;
    padding: 9px 10px 8px !important;
  }

  .global-mac-dock .dock-app,
  .compact-dock .dock-app {
    width: 48px !important;
  }

  .global-mac-dock .dock-icon,
  .compact-dock .dock-icon {
    width: 42px !important;
    height: 42px !important;
  }

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

  .detector-app .mac-system-window {
    width: calc(100vw - 22px);
    max-height: calc(100dvh - 114px);
    padding: 48px 14px 16px;
  }

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

/* ============================== Precision macOS Polish Pass ============================== */
body.mac-desktop {
  position: relative;
  isolation: isolate;
  background: #0c6571 !important;
  animation: none !important;
}

body.mac-desktop::after {
  content: "";
  position: fixed;
  top: -3344px;
  right: 0;
  bottom: -3344px;
  left: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/static/generated/mac-white-surf-wallpaper-loop.png");
  background-position: center 0;
  background-repeat: repeat;
  background-size: 941px auto;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: macWallpaperLayerFlow 128s linear infinite;
}

body.mac-desktop::before {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(4,15,27,0.24)),
    linear-gradient(90deg, rgba(4,12,24,0.16), transparent 40%, transparent 60%, rgba(4,12,24,0.16)) !important;
}

@keyframes macWallpaperLayerFlow {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 3344px, 0); }
}

.mac-desktop .glass-container,
.mac-desktop .mac-stage,
.mac-desktop .mac-dock {
  position: relative;
  z-index: 2;
}

.mac-system-window,
.mac-window,
.mac-dock {
  -webkit-backdrop-filter: blur(18px) saturate(1.32) brightness(1.04) !important;
  backdrop-filter: blur(18px) saturate(1.32) brightness(1.04) !important;
}

.mac-system-window,
.mac-window {
  background:
    linear-gradient(180deg, rgba(244, 251, 255, 0.28), rgba(220, 238, 244, 0.14)),
    linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02) 38%, rgba(255,255,255,0.12)),
    rgba(207, 230, 236, 0.18) !important;
  border-color: rgba(255,255,255,0.54) !important;
  outline: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 42px 130px rgba(1, 11, 24, 0.42),
    0 14px 40px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.82),
    inset 1px 0 0 rgba(255,255,255,0.28),
    inset -1px -1px 0 rgba(255,255,255,0.16) !important;
}

.mac-system-window::before,
.mac-window::before,
.mac-dock::before {
  opacity: 0.36;
  filter: url(#glass-distortion);
}

.mac-system-window::after,
.mac-window::after,
.mac-dock::after {
  inset: 0;
  border: 1px solid rgba(255,255,255,0.28);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.72), transparent 16%, transparent 72%, rgba(255,255,255,0.18)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.36), transparent 52%);
  opacity: 0.5;
}

.mac-live-titlebar,
.mac-window-bar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.36), rgba(236,247,250,0.16)),
    rgba(255,255,255,0.08) !important;
  color: rgba(12,18,28,0.74);
}

.mac-desktop .traffic-lights {
  display: flex !important;
}

.mac-dock {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.26), rgba(222,240,246,0.13)),
    rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.46) !important;
  box-shadow:
    0 24px 76px rgba(0, 12, 26, 0.36),
    0 4px 14px rgba(255,255,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.76),
    inset 0 -1px 0 rgba(255,255,255,0.12) !important;
}

.global-mac-dock {
  padding: 11px 16px 10px !important;
  border-radius: 30px !important;
}

.dock-icon {
  overflow: visible !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

.dock-img {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: drop-shadow(0 12px 14px rgba(2, 12, 24, 0.28));
}

.dock-app:hover .dock-img,
.dock-app:focus-visible .dock-img {
  filter: drop-shadow(0 16px 18px rgba(2, 12, 24, 0.32));
}

.dock-app {
  transform: translateY(var(--dock-lift, 0)) scale(var(--dock-scale, 1)) !important;
  transform-origin: center bottom;
  transition: transform 170ms cubic-bezier(.2,.8,.2,1), filter 170ms ease;
  will-change: transform;
}

.dock-model-app-icon {
  background-size: 100% 100% !important;
  filter: drop-shadow(0 12px 15px rgba(2, 12, 24, 0.32)) !important;
}

.dock-app.active::after {
  width: 4px;
  height: 4px;
  margin-top: -1px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 6px rgba(255,255,255,0.6);
}

.mini-ranking-row {
  background: rgba(232,247,251,0.18) !important;
  border-color: rgba(255,255,255,0.3) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.34),
    0 8px 24px rgba(3,14,26,0.08);
}

.mini-ranking-row:hover {
  background: rgba(246,252,255,0.3) !important;
}

.mini-site-icon {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.05)),
    linear-gradient(145deg, #47c0d9, #356fe8 58%, #13233f) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 8px 18px rgba(1,12,28,0.18);
}

.mini-score {
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 8px 18px rgba(1,12,28,0.14);
}

.mini-score.good { background: #31c66a !important; }
.mini-score.watch { background: #d89529 !important; }
.mini-score.risk { background: #d84c42 !important; }

.uptime-bars {
  height: 25px;
  gap: 2px;
  align-items: center;
  justify-content: end;
  padding: 3px 4px;
  border-radius: 999px;
  background: rgba(244,250,252,0.18);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}

.uptime-bars i {
  width: 5px;
  height: 17px;
  border-radius: 999px;
  box-shadow: none !important;
}

.uptime-bars i.ok { background: #2fcf66 !important; height: 17px; }
.uptime-bars i.warn { background: #f2c84b !important; height: 14px; }
.uptime-bars i.bad { background: #e0584f !important; height: 10px; }

.mac-app-entering .mac-system-window,
.mac-app-entering .mac-window {
  animation: appAppear 640ms cubic-bezier(.18,1,.22,1) both;
}

.mac-app-switching .mac-system-window,
.mac-app-switching .mac-window,
.mac-app-minimizing .mac-system-window,
.mac-app-minimizing .mac-window {
  animation: appSink 560ms cubic-bezier(.32,.72,.18,1) both;
}

@keyframes appAppear {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(.92);
  }
  62% {
    opacity: 1;
    transform: translate3d(0, -3px, 0) scale(1.012);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes appSink {
  to {
    opacity: 0;
    transform: translate3d(0, 46px, 0) scale(.86);
  }
}

body.mac-fullscreen .mac-live-titlebar,
body.mac-fullscreen .mac-window-bar,
body.mac-fullscreen .mac-system-window:hover .mac-live-titlebar,
body.mac-fullscreen .mac-window:hover .mac-window-bar,
body.mac-fullscreen .mac-window:focus-within .mac-window-bar {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.mac-desktop::after {
    animation: none !important;
  }

  .mac-app-entering .mac-system-window,
  .mac-app-entering .mac-window,
  .mac-app-switching .mac-system-window,
  .mac-app-switching .mac-window,
  .mac-app-minimizing .mac-system-window,
  .mac-app-minimizing .mac-window,
  .mac-app-opening .mac-dock,
  .mac-app-switching .mac-dock,
  .mac-app-minimizing .mac-dock {
    animation: none !important;
  }
}

@media (max-width: 941px) {
  body.mac-desktop::after {
    top: -355.3666312434vw;
    bottom: -355.3666312434vw;
    background-repeat: repeat-y;
    background-size: 100% auto;
  }

  @keyframes macWallpaperLayerFlow {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, 355.3666312434vw, 0); }
  }
}

@media (max-width: 720px) {
  .mac-ranking .mac-window-bar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .mac-ranking .window-title small {
    display: none;
  }

  .mac-ranking .window-tabs {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .mac-ranking .window-tabs a {
    padding: 6px 9px;
  }

  .mac-ranking .mini-ranking-row {
    grid-template-columns: 34px minmax(0, 1fr) 38px 76px !important;
    gap: 8px;
    min-height: 50px;
    padding: 7px 8px;
  }

  .mac-ranking .mini-site-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 12px;
  }

  .mac-ranking .mini-site-main small,
  .mac-ranking .mini-metrics {
    display: none !important;
  }

  .mac-ranking .mini-score {
    width: 36px;
    height: 26px;
    font-size: 13px;
  }

  .mac-ranking .uptime-bars {
    display: flex !important;
    width: 76px;
    height: 24px;
    justify-self: end;
    padding: 3px 4px;
  }

  .mac-ranking .uptime-bars i {
    width: 4px;
  }
}

.detector-app .form-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), rgba(228,244,248,0.16)),
    rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.62),
    0 18px 54px rgba(2,12,24,0.14) !important;
}

.detector-app label {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
}

.detector-app input,
.detector-app select {
  border: 1px solid rgba(255,255,255,0.52) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245,250,252,0.86)) !important;
  color: rgba(10,18,28,0.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 10px 28px rgba(2,12,24,0.08) !important;
}

.detector-app input:focus,
.detector-app select:focus {
  border-color: rgba(255,255,255,0.88) !important;
  outline: 3px solid rgba(255,255,255,0.22);
}

.detector-app .btn-primary {
  border: 1px solid rgba(255,255,255,0.34) !important;
  background:
    linear-gradient(180deg, rgba(83, 208, 140, 0.96), rgba(43, 181, 106, 0.96)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.38),
    0 14px 34px rgba(16, 122, 74, 0.26) !important;
}

.detector-app .btn-primary:active {
  transform: translateY(1px) scale(.995);
}

.detector-app .combo-list {
  background: rgba(244,250,252,0.92);
  border-color: rgba(255,255,255,0.58);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.58),
    0 18px 46px rgba(2,12,24,0.22);
  backdrop-filter: blur(18px) saturate(1.2);
}

/* App content pages: keep providers, reports, comparisons, feedback and admin
   surfaces inside the same virtual macOS language as the launcher/rankings. */
.mac-system-window .page-hero.compact {
  margin: 0 0 18px;
  max-width: 760px;
}

.mac-system-window .eyebrow {
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.mac-system-window .page-hero.compact h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.04;
  text-shadow: 0 10px 30px rgba(0,0,0,0.24);
}

.mac-system-window .page-hero.compact p {
  max-width: 62ch;
  color: rgba(248,252,255,0.78);
  font-size: 14px;
  line-height: 1.65;
}

.mac-system-window .glass-effect {
  border-color: rgba(255,255,255,0.36);
  box-shadow:
    0 16px 44px rgba(2,12,24,0.16),
    inset 0 1px 0 rgba(255,255,255,0.52);
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), border-color 180ms ease, background 180ms ease;
}

.mac-system-window .glass-card:hover,
.mac-system-window .glass-button:hover {
  transform: translateY(-1px);
}

.mac-system-window .glass-panel,
.mac-system-window .glass-card {
  border-radius: 22px;
  padding: 18px;
}

.mac-system-window .glass-tint {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(225,242,247,0.1)),
    rgba(255,255,255,0.08);
}

.mac-system-window .glass-shine {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.52),
    inset 1px 0 0 rgba(255,255,255,0.12);
}

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

.provider-card {
  min-height: auto;
}

.provider-card-head {
  gap: 12px;
  align-items: center;
}

.provider-card-head h2,
.provider-card-head h3 {
  font-size: 16px;
  margin-bottom: 2px;
}

.provider-card-head p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(248,252,255,0.66);
}

.provider-logo {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.06)),
    linear-gradient(145deg, #47c0d9, #356fe8 58%, #13233f);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.46),
    0 8px 18px rgba(2,12,24,0.18);
}

.provider-card-metrics,
.ranking-metrics-inline {
  gap: 8px;
  margin: 14px 0;
}

.provider-card-metrics span,
.ranking-metrics-inline span {
  border-radius: 12px;
  background: rgba(244,250,252,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 9px;
}

.provider-card-metrics strong,
.ranking-metrics-inline b {
  font-size: 15px;
}

.glass-badge {
  border-color: rgba(255,255,255,0.24);
  background: rgba(244,250,252,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}

.glass-badge-success { background: rgba(47,207,102,0.28); }
.glass-badge-warning { background: rgba(242,200,75,0.28); }
.glass-badge-danger { background: rgba(224,88,79,0.28); }

.glass-table {
  border-spacing: 0 6px;
}

.glass-table th {
  color: rgba(248,252,255,0.68);
  font-weight: 800;
}

.glass-table td {
  background: rgba(244,250,252,0.14);
  border-color: rgba(255,255,255,0.18);
  color: rgba(248,252,255,0.88);
}

.glass-table tr:hover td {
  background: rgba(244,250,252,0.22);
}

.glass-form {
  display: grid;
  gap: 12px;
}

.glass-form label {
  display: grid;
  gap: 6px;
  color: rgba(248,252,255,0.82);
  font-size: 13px;
  font-weight: 800;
}

.glass-form input,
.glass-form select,
.glass-form textarea {
  border: 1px solid rgba(255,255,255,0.46);
  border-radius: 14px;
  background: rgba(248,252,255,0.88);
  color: rgba(10,18,28,0.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 8px 18px rgba(2,12,24,0.08);
}

.glass-submit,
.mini-action {
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(83,208,140,0.96), rgba(43,181,106,0.96));
  color: #fff;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.34),
    0 12px 26px rgba(16,122,74,0.2);
}

.admin-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
}

.admin-sidebar {
  top: 54px;
}

.admin-sidebar .glass-content {
  display: grid;
  gap: 12px;
}

.admin-sidebar h1 {
  margin: 0;
  font-size: 22px;
}

.admin-nav {
  gap: 6px;
  margin: 0;
}

.admin-nav a {
  background: rgba(244,250,252,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(248,252,255,0.86);
}

.admin-nav a:hover {
  background: rgba(244,250,252,0.22);
}

.content-stack {
  gap: 14px;
}

.score-dial {
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,0.34), transparent 42%),
    rgba(244,250,252,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.34);
}

@media (max-width: 980px) {
  .provider-grid {
    grid-template-columns: 1fr;
  }

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

/* ============================== Trust Strip ==============================
 * Hub homepage section right below the hero capsule. The whole strip
 * exists because Veridrop's product premise is "hand us your API key" —
 * users won't do that without proof of trust. We give 3 cards of
 * concrete promises, each linking into the actual code that proves it.
 * Visual weight is intentionally heavy: subtle gradient bg + clear
 * heading anchor + GitHub CTA at the bottom. */
.trust-strip {
  margin: 32px 0 40px;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg,
    rgba(16, 185, 129, 0.04) 0%,
    rgba(16, 185, 129, 0.01) 60%,
    var(--bg) 100%);
}
.trust-strip-head {
  text-align: center;
  margin-bottom: 24px;
}
.trust-strip-head h2 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.trust-strip-head p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.trust-strip-head p strong { color: var(--text); }

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.trust-card {
  padding: 18px 18px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.trust-icon {
  font-size: 24px;
  margin-bottom: 8px;
  line-height: 1;
}
.trust-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.trust-card h3 em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 13.5px;
}
.trust-card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.trust-card code {
  font-size: 11.5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
}
.trust-link {
  font-size: 12.5px;
  color: var(--green-dark, #047857);
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
}
.trust-link:hover { text-decoration: underline; }

.trust-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
/* GitHub-styled "primary" button — recognizable mono font + dark bg
 * matches what users expect on a GitHub-link CTA. Different from the
 * green primary CTA on detect pages so they don't compete visually. */
.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #1f2328;
  color: white;
  border: 1px solid #1f2328;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-github:hover {
  background: #34383d;
  border-color: #34383d;
  text-decoration: none;
  transform: translateY(-1px);
}
.trust-license-pill {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  color: var(--muted);
  padding: 6px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
@media (max-width: 760px) {
  .trust-cards { grid-template-columns: 1fr; }
  .trust-strip { padding: 22px 18px 18px; }
  .trust-strip-head h2 { font-size: 19px; }
}

/* hero */
.hero { text-align: center; margin-bottom: 32px; }
.hero h1 {
  font-size: 36px; line-height: 1.2; margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero-sub { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* hub */
.hub-hero {
  /* 不设 max-width — 让首屏文字、协议卡片、why/how 各 section 共用 .container
     的 960px 全宽,左右边缘视觉对齐。text-wrap: balance 会在 960px 内自动
     算出每行接近相等的宽度,所以不会出现"一行特别长"的问题。 */
  margin: 8px 0 28px;
}
.hub-hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hub-hero p {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
}
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.protocol-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--bg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.protocol-card-primary { border-color: rgba(16, 185, 129, 0.45); }
.protocol-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.protocol-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.protocol-card h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.protocol-card p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 14px;
}
.protocol-action {
  margin-top: auto;
  width: 100%;
}
.tier-badge {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.tier-crypto {
  color: #047857;
  background: var(--green-soft);
}
.tier-behavioral {
  color: #92400e;
  background: #fef3c7;
}
.tier-protocol {
  color: #374151;
  background: #f3f4f6;
}
.hub-note {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 32px;
}
.hub-note h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.hub-note p {
  color: var(--muted);
  margin: 0 0 16px;
}

/* CJK + 英文混排:用 text-wrap: balance 让浏览器主动平衡每行宽度
   (Chrome 114+ / Firefox 121+ / Safari 17.5+),避免出现某行只到一半就换行
   的难看排版。仅对短文本(<= 6 行)生效,正好覆盖首页这些介绍段落。
   line-break: strict 防止 CJK 标点出现在错误位置;overflow-wrap 兜底防溢出。 */
/* balance 让短段落每行宽度均衡(适合三协议卡片、why 卡片这种多个并列、
   需要视觉对齐的场景,以及只有 1-2 行的页脚 / meta 文字)。
   .answer-capsule 之前也加了 balance,但它在不同页面长度差很多:首页 hero
   文字长 (>6 行) balance 自动失效→走贪心填满容器;排行榜 hero 只 2 行,
   balance 反而把两行都缩到一半宽。所以 capsule 一律用贪心换行,跟 hub-note /
   how-steps 一致 — 第一行填满容器,装不下才换行。 */
.hub-meta,
.protocol-card p,
.why-item p {
  overflow-wrap: break-word;
  text-wrap: balance;
  line-break: strict;
}
.answer-capsule,
.hub-note p,
.how-steps p {
  overflow-wrap: break-word;
  line-break: strict;
}

/* answer capsule + meta strip (SEO definition-first per SEO_AI_GEO_PLAN §3.2) */
.answer-capsule {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 14px;
}
.answer-capsule strong {
  color: var(--green-dark);
  font-weight: 600;
}
.hub-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.01em;
}
.hub-meta strong {
  color: var(--text);
  font-weight: 600;
}
/* 内联版 meta:跟在 .answer-capsule 末尾继续流动而不是另起一段。
   保持灰色 + 稍小字号的视觉差异,前面留一格空白做天然分隔。 */
.hub-meta-inline {
  color: var(--muted);
  font-size: 0.85em;
  letter-spacing: 0.01em;
  margin-left: 0.5em;
}
.hub-meta-inline strong { color: var(--text); font-weight: 600; }

/* "why veridrop" 5-card differentiator grid */
.why-veridrop { margin: 44px 0 8px; }
.why-veridrop h2 {
  font-size: 24px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.why-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--bg);
  box-shadow: var(--shadow);
}
.why-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.why-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.why-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.why-item code {
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12.5px;
  color: var(--text);
}

/* "how it works" 3-step list */
.how-it-works { margin: 44px 0 8px; }
.how-it-works h2 {
  font-size: 24px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.how-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--bg);
}
.how-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.how-steps h3 {
  font-size: 16px;
  margin: 2px 0 6px;
  line-height: 1.35;
}
.how-steps p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.how-steps a { color: var(--green-dark); text-decoration: none; }
.how-steps a:hover { text-decoration: underline; }

/* ========== Legacy leaderboard/result support styles ========== */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.lb-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  align-items: flex-start;
}
.lb-rank {
  font-size: 24px;
  text-align: center;
  padding-top: 4px;
}
.lb-rank-num {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.lb-main { min-width: 0; }
.lb-domain {
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
  word-break: break-all;  /* 长域名能换行 */
}
.lb-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
  overflow-wrap: break-word;
}
.lb-badge-info {
  background: var(--bg-soft);
  color: var(--muted);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 12px;
}
.lb-protocols {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.lb-proto-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 500;
}
.lb-proto-chip:hover { text-decoration: none; transform: translateY(-1px); transition: transform 0.1s; }
.lb-proto-name { font-weight: 600; }
.lb-proto-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-proto-verdict { font-size: 11.5px; opacity: 0.85; }
.lb-proto-count { font-size: 11px; opacity: 0.7; }
.lb-proto-ok    { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.lb-proto-good  { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.lb-proto-warn  { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.lb-proto-fail  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.lb-issues {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}
.lb-issues code {
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11.5px;
  border: 1px solid var(--line);
}
.lb-score {
  text-align: center;
  min-width: 64px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-soft);
}
.lb-score-num {
  display: block;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lb-score-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.lb-score-ok    { background: var(--green-soft); color: var(--green-dark); }
.lb-score-good  { background: #f0fdf4; color: #166534; }
.lb-score-warn  { background: #fffbeb; color: #92400e; }
.lb-score-fail  { background: #fef2f2; color: #991b1b; }

/* leaderboard list — domain link + detail entry */
.lb-domain a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.lb-domain a:hover {
  border-bottom-color: var(--muted);
  text-decoration: none;
}
.lb-detail-link {
  font-size: 12.5px;
  color: var(--green-dark, #047857);
  text-decoration: none;
  font-weight: 500;
}
.lb-detail-link:hover { text-decoration: underline; }

/* leaderboard detail page — per-domain SEO surface */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--muted); opacity: 0.5; }
.breadcrumb-current { color: var(--text); font-weight: 500; word-break: break-all; }

.lb-detail-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin: 24px 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.lb-detail-score {
  text-align: center;
  min-width: 110px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--bg-soft);
}
.lb-detail-score-num {
  display: block;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lb-detail-score-label {
  display: block;
  font-size: 11px;
  color: inherit;
  opacity: 0.75;
  margin-top: 6px;
  letter-spacing: 0.06em;
}
.lb-detail-protocols h2 {
  font-size: 15px;
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.lb-detail-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

.lb-detail-issues {
  margin: 28px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.lb-detail-issues h2 {
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.lb-issues-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lb-issues-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12.5px;
}
.lb-issues-list code {
  background: transparent;
  padding: 0;
  border: none;
  font-size: 12px;
  color: var(--text);
}
.lb-issues-count {
  color: var(--muted);
  font-size: 11.5px;
}

.lb-detail-history {
  margin: 28px 0;
}
.lb-detail-history h2 {
  font-size: 20px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.lb-history-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.lb-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.lb-history-table thead {
  background: var(--bg-soft);
}
.lb-history-table th,
.lb-history-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.lb-history-table th.num,
.lb-history-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.lb-history-table tbody tr:last-child td { border-bottom: none; }
.lb-history-table tbody tr:hover { background: var(--bg-soft); }
.lb-history-table code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  border: 1px solid var(--line);
}
.lb-history-table thead tr code,
.lb-history-table tbody tr:hover code {
  background: var(--bg);
}
.lb-history-score {
  display: inline-block;
  min-width: 36px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
}
.lb-history-score-ok    { background: #ecfdf5; color: #065f46; }
.lb-history-score-good  { background: #f0fdf4; color: #166534; }
.lb-history-score-warn  { background: #fffbeb; color: #92400e; }
.lb-history-score-fail  { background: #fef2f2; color: #991b1b; }

/* Leaderboard section headers — separate Top 10 from全部列表. */
.lb-section-heading {
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.lb-section-heading h2 {
  font-size: 20px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.lb-section-heading p {
  margin: 0;
}

/* Pagination — server-rendered links so each page is a distinct URL
 * for SEO long-tail (?page=2 etc.). Designed mobile-first: chips
 * wrap onto multiple lines if needed instead of overflowing. */
.lb-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 28px 0;
  font-size: 14px;
}
.lb-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.lb-page-btn:hover {
  background: var(--bg-soft);
  text-decoration: none;
}
.lb-page-current {
  background: var(--green);
  color: white;
  border-color: var(--green);
  font-weight: 600;
}
.lb-page-current:hover {
  background: var(--green);  /* lock — current page isn't a link */
  color: white;
}
.lb-page-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.lb-page-ellipsis {
  align-self: flex-end;
  padding: 7px 4px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .lb-detail-summary {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lb-detail-score { min-width: 0; }
  .lb-detail-score-num { font-size: 40px; }
}

/* coming soon */
.coming-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.coming-head h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 4px 0 10px;
  letter-spacing: -0.02em;
}
.coming-head .muted {
  max-width: 680px;
  margin: 0;
}
.coming-card {
  max-width: 680px;
}
.coming-notice {
  margin: 0 0 22px;
  color: var(--muted);
}
.wishlist-form .btn-primary {
  max-width: 220px;
}
.form-success {
  color: var(--green-dark);
  font-size: 14px;
  margin: 12px 0 0;
}

/* card */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.form-card { padding: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  background: var(--bg);
  font-family: inherit;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.field .hint { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field { margin-bottom: 18px; }

/* Opt-in checkbox row — for long-context probe and other paid extras. */
.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.field-checkbox input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.field-checkbox label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.5;
  flex: 1;
}
.field-checkbox label > strong { font-weight: 600; }
.field-checkbox .checkbox-hint {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}
.field-checkbox .checkbox-hint strong { color: var(--text); font-weight: 600; }
.field-checkbox:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft, rgba(16, 185, 129, 0.06));
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px;
  font-size: 15px; font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}
.btn:hover { background: var(--bg-soft); }
.btn-primary {
  background: var(--green); color: white; border-color: var(--green);
  width: 100%; padding: 13px 22px; font-size: 16px;
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-ghost { background: var(--bg); }

.form-error {
  color: var(--red);
  font-size: 14px;
  margin: 12px 0 0;
}
/* Rich error card — used when /api/detect returns 422 model_not_alive.
   Renders the inline "switch to recommended" + "force submit" actions
   instead of just text. */
.form-error.form-error-rich {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 14px 16px;
  color: #991b1b;
}
.form-error-title { font-weight: 600; margin-bottom: 4px; }
.form-error-body { font-size: 13px; color: #7f1d1d; word-break: break-word; }
.form-error-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.form-error-actions .btn { font-size: 13px; padding: 7px 14px; }

/* features */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 32px;
}
.feature h3 { font-size: 15px; margin: 0 0 6px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* running */
.running-card { text-align: center; padding: 56px 28px; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- result page ---------- */
.result-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 24px;
}
.result-head h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.02em; }
.result-head .muted { font-size: 14px; word-break: break-all; }
.result-actions { display: flex; gap: 8px; flex-shrink: 0; }

.result-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  align-items: center;
}
.result-left { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.score-ring {
  width: 220px; height: 220px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.score-ok      { background: var(--green); }
.score-ok-dim  { background: var(--green-dark); }
.score-warn    { background: var(--amber); }
.score-fail    { background: var(--red); }

.score-inner {
  width: calc(100% - 24px); height: calc(100% - 24px);
  background: var(--bg);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-num { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; }
.score-caption { color: var(--muted); font-size: 14px; margin-top: 4px; }
.attribution { margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.check-row:last-child { border-bottom: 0; }
.check-icon { display: flex; align-items: center; }
.check-label { font-size: 16px; }
.check-status {
  font-size: 14px; font-weight: 600;
}
.check-ok .check-status      { color: var(--green); }
.check-warn .check-status    { color: var(--amber); }
.check-fail .check-status    { color: var(--red); }
.check-muted .check-status   { color: var(--muted); }

/* metrics row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.metrics-row-5 { grid-template-columns: repeat(5, 1fr); }
.metric {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
}
.metric-warn { border-color: var(--red); border-width: 2px; }
.metric-label { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.metric-value { font-size: 24px; font-weight: 700; margin-top: 6px; }

.alert-card {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.notes-card {
  background: #fffbeb;
  border-color: #fde68a;
}
.notes-card h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.note-item + .note-item {
  border-top: 1px solid #fde68a;
  margin-top: 14px;
  padding-top: 14px;
}
.note-item p {
  color: #92400e;
  margin: 6px 0 0;
}

.details-card summary {
  cursor: pointer; font-weight: 600; padding: 4px 0;
}
.def-list { display: grid; grid-template-columns: 200px 1fr; gap: 10px 18px; margin-top: 14px; }
.def-list dt { font-weight: 600; }
.def-list dd { margin: 0; color: var(--muted); }

/* combobox (custom dropdown — replaces native <datalist> for mobile reliability) */
.combo { position: relative; width: 100%; }
/* input doesn't auto-fill its block container; force 100% so the combo
   matches the width of the sibling <select> in .field-row. */
.combo > input { width: 100%; }
.combo-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 280px;
  overflow-y: auto;
  z-index: 20;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  -webkit-overflow-scrolling: touch;
}
.combo-item {
  padding: 11px 14px;
  cursor: pointer;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", Consolas, monospace;
  color: var(--text);
  /* mobile: bigger tap target, easier to hit */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.combo-item:hover, .combo-item.active {
  background: var(--green-soft);
  color: var(--green-dark);
}
.combo-item:active {
  background: var(--green);
  color: white;
}
.combo-item[hidden] { display: none; }
/* When the input has a query, non-matching items dim instead of hide so the
   user can still see the relay's full model whitelist surfaced by /api/probe. */
.combo-item.no-match { opacity: 0.4; }
.combo-item.no-match:hover { opacity: 1; }

/* FAQ */
.faq { margin-top: 48px; }
.faq h2 {
  font-size: 24px;
  letter-spacing: -0.01em;
}

/* FAQ header — title row + dual-mode toggle (通俗 / 开发者).
   Two answers per question (data-mode="layperson|developer"); CSS hides
   the inactive mode based on the parent .faq's data-mode attribute. JS
   in app.js flips the attribute and persists the choice in localStorage. */
.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
}
.faq-header h2 { margin: 0; }
.faq-mode-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}
.faq-mode-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.faq-mode-btn:hover { color: var(--text); }
.faq-mode-active {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Mode-specific answer visibility — by default both <p data-mode> are in
   DOM (so search engines see both); CSS hides whichever doesn't match
   the active mode. */
.faq[data-mode="layperson"] [data-mode="developer"] { display: none; }
.faq[data-mode="developer"] [data-mode="layperson"] { display: none; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 0;
  transition: box-shadow 0.15s;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-body {
  padding: 0 22px 22px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}
.faq-body p:first-child { margin-top: 0; }
.faq-body ul, .faq-body ol { padding-left: 22px; }
.faq-body li { margin-bottom: 6px; }
.faq-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}
.faq-table th, .faq-table td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.faq-table th {
  background: var(--bg-soft);
  font-weight: 600;
}

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .protocol-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .answer-capsule { font-size: 16px; }
  .why-veridrop h2, .how-it-works h2 { font-size: 20px; }

  /* leaderboard 手机端:rank 列改小 + score 移到 main 下方,避免 3 列挤 */
  .lb-row {
    grid-template-columns: 32px 1fr;
    grid-template-areas:
      "rank main"
      ".    score";
    gap: 10px 12px;
  }
  .lb-rank { grid-area: rank; font-size: 18px; padding-top: 0; }
  .lb-rank-num { width: 28px; height: 28px; line-height: 28px; font-size: 12px; }
  .lb-main { grid-area: main; }
  .lb-score {
    grid-area: score;
    justify-self: start;
    min-width: 0;
    padding: 4px 10px;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
  }
  .lb-score-num { font-size: 20px; }
  .lb-score-label { margin-top: 0; }

  /* 手机端:步骤项从「左圆数字 + 右内容」改成「上数字 + 下内容」竖排,
     避免左边 32px 圆 + 16px gap 吃掉 48px 内容宽度。让描述文字填满整个
     步骤框,跟其他卡片视觉一致。 */
  .how-steps li {
    flex-direction: column;
    gap: 8px;
  }
  .field-row { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; padding: 24px; }
  .metrics-row, .metrics-row-5 { grid-template-columns: repeat(2, 1fr); }
  .def-list { grid-template-columns: 1fr; }
  .result-head { flex-direction: column; }
  .hero h1 { font-size: 28px; }
  .hub-hero h1, .coming-head h1 { font-size: 28px; }
  .coming-head { flex-direction: column; }
}

/* pre-submit /v1/models probe pill (web/static/app.js inserts it) */
.probe-pill {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.55;
}
.probe-pill .probe-headline { font-weight: 600; }
.probe-pill .probe-detail { margin-top: 4px; color: var(--muted); font-size: 12px; word-break: break-all; }
.probe-pill .probe-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.probe-pill .probe-action {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
}
.probe-ok      { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.probe-warn    { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.probe-fail    { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.probe-neutral { background: #f9fafb; border-color: #e5e7eb; color: #4b5563; }

/* =========== /faq page =========== */
.faq-hero {
  margin: 8px 0 24px;
}
.faq-hero h1 {
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.faq-hero-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 740px;
}

/* Two-column: sticky TOC | main content */
.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 16px;
}

.faq-toc {
  position: sticky;
  top: 18px;
  align-self: start;
  font-size: 14px;
}
.faq-toc-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.faq-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-toc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.faq-toc-list a {
  color: var(--text);
  padding: 7px 10px;
  border-radius: 6px;
  flex: 1;
  border-left: 2px solid transparent;
}
.faq-toc-list a:hover {
  background: var(--bg-soft);
  text-decoration: none;
  border-left-color: var(--green);
}
.faq-toc-count {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding-right: 6px;
}

/* Main column */
.faq-main { min-width: 0; }

.faq-category {
  scroll-margin-top: 76px;  /* offset for sticky header when jumping via TOC */
  margin-bottom: 48px;
}
.faq-category h2 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.faq-category-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.faq-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-entry {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  scroll-margin-top: 76px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-entry[open] {
  border-color: var(--green);
  box-shadow: 0 1px 6px rgba(16, 185, 129, 0.08);
}
.faq-entry summary.faq-q {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.faq-entry summary.faq-q::-webkit-details-marker { display: none; }
/* Custom triangle on the right */
.faq-entry summary.faq-q::before {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  margin-right: 4px;
  transition: transform 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.faq-entry[open] summary.faq-q::before {
  transform: rotate(45deg);
  border-color: var(--green);
}
.faq-entry summary.faq-q:hover { background: var(--bg-soft); }
.faq-entry[open] summary.faq-q:hover { background: var(--bg); }

.faq-permalink {
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.faq-entry:hover .faq-permalink,
.faq-entry[open] .faq-permalink { opacity: 1; }

.faq-a {
  padding: 0 16px 16px 36px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.75;
}

.faq-no-answer {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.faq-no-answer h2 {
  font-size: 16px;
  margin: 0 0 8px;
}
.faq-no-answer p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.7;
}

/* "更多问题 → /faq#xxx" trailer on product pages — separates the picked
   highlight FAQ from the deep-link to the full /faq page. */
.faq-more {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}
.faq-more a { color: var(--green-dark); }

/* Tablet (≤960px): TOC narrows but still sticky */
@media (max-width: 960px) {
  .faq-layout { grid-template-columns: 180px 1fr; gap: 28px; }
  .faq-toc { font-size: 13px; }
}

/* Mobile (≤820px, 覆盖 iPhone 全系 + iPad 竖屏):TOC 改成多行换行的 chip 卡片
   (而不是隐性横滚,所有分类一次看全),所有正文允许任意位置断词防止溢出。 */
@media (max-width: 820px) {
  .faq-hero h1 { font-size: 26px; }
  .faq-hero-sub { font-size: 14px; }
  .faq-layout { grid-template-columns: 1fr; gap: 16px; }
  .faq-toc {
    position: static;
    top: auto;
    margin: 0 0 4px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
  }
  .faq-toc-title { display: none; }
  .faq-toc-list {
    flex-direction: row;
    flex-wrap: wrap;       /* 多行排版,所有分类一次看全 */
    gap: 8px;
  }
  .faq-toc-list li { flex-shrink: 0; }
  .faq-toc-list a {
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    white-space: nowrap;
    font-size: 13px;
  }
  .faq-toc-list a:hover { border-left-color: var(--line); }
  .faq-toc-count {
    background: var(--bg-soft);
    border-radius: 999px;
    padding: 1px 6px;
    margin-left: 4px;
  }
  .faq-category h2 { font-size: 20px; }
  .faq-category-intro,
  .faq-q,
  .faq-a {
    overflow-wrap: anywhere;  /* 长英文/code 可在任意位置断行,不撑宽容器 */
  }
  .faq-a { padding: 0 14px 14px 32px; font-size: 14px; }
  /* 收紧 container 横向 padding,把 16px 让给正文 */
  .container { padding-left: 16px; padding-right: 16px; }
}

/* Final macOS app polish overrides. Keep these at the end so older page
   breakpoints cannot turn app windows back into tall web sections. */
.mac-system-window .provider-grid {
  align-items: stretch;
}

.mac-system-window .provider-card {
  min-height: 0;
}

.mac-system-window .provider-card .glass-content {
  display: grid;
  gap: 10px;
}

.mac-system-window .provider-card-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.mac-system-window .provider-card-head > div {
  min-width: 0;
}

.mac-system-window .provider-card-head h2,
.mac-system-window .provider-card-head h3,
.mac-system-window .provider-card-head p {
  overflow-wrap: anywhere;
}

.mac-system-window .provider-card .badge-row {
  gap: 6px;
  margin: 0;
}

.mac-system-window .provider-card-metrics,
.mac-system-window .ranking-metrics-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2px 0 0;
}

.mac-system-window .provider-card-metrics span,
.mac-system-window .ranking-metrics-inline span {
  min-width: 0;
  padding: 7px 8px;
  line-height: 1.2;
}

.mac-system-window .glass-link {
  justify-self: start;
  margin-top: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(244,250,252,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
}

.mac-system-window .admin-layout {
  grid-template-columns: minmax(176px, 220px) minmax(0, 1fr);
  gap: 14px;
}

.mac-system-window .admin-sidebar {
  position: sticky;
  top: 50px;
}

.mac-system-window .admin-sidebar .glass-content {
  gap: 10px;
}

.mac-system-window .admin-nav {
  display: grid;
  gap: 6px;
  margin: 0;
}

.mac-system-window .admin-nav a {
  padding: 8px 10px;
  min-width: 0;
}

.mac-system-window .admin-sidebar .glass-disclaimer {
  display: none;
}

.mac-system-window .admin-main {
  min-width: 0;
}

.mac-system-window .admin-hero {
  margin-bottom: 14px;
}

.mac-system-window .table-panel,
.mac-system-window .form-panel {
  margin-bottom: 14px;
}

.mac-system-window .glass-table-wrap {
  max-width: 100%;
  overflow: auto;
  border-radius: 16px;
}

.mac-system-window .glass-table {
  min-width: 620px;
}

@media (max-width: 760px) {
  .mac-system-window .page-hero.compact h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .mac-system-window .provider-card-head {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .mac-system-window .provider-card-head p {
    -webkit-line-clamp: 1;
  }

  .mac-system-window .provider-card-metrics,
  .mac-system-window .ranking-metrics-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mac-system-window .admin-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mac-system-window .admin-sidebar {
    position: relative;
    top: 0;
    padding: 14px;
  }

  .mac-system-window .admin-sidebar h1 {
    font-size: 18px;
  }

  .mac-system-window .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mac-system-window .admin-nav a {
    text-align: center;
  }
}

@media (max-width: 430px) {
  .mac-system-window .provider-card-head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .mac-system-window .provider-card-head .glass-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .mac-system-window .provider-card-metrics,
  .mac-system-window .ranking-metrics-inline,
  .mac-system-window .admin-nav {
    grid-template-columns: 1fr;
  }
}

.mac-system-window > .mac-live-titlebar {
  position: sticky !important;
  top: -54px !important;
  z-index: 30 !important;
  margin: -54px -28px 18px !important;
  transform: translateY(0) !important;
}

@media (max-width: 720px) {
  .mac-system-window > .mac-live-titlebar {
    top: -48px !important;
    margin: -48px -16px 16px !important;
  }
}

/* ============================== Goal Polish Lock ==============================
   Current target: virtual macOS, white-foam ocean, Demo-like Liquid Glass. */
body.mac-desktop::after {
  top: -355.3666312434vw !important;
  bottom: -355.3666312434vw !important;
  background-image: url("/static/generated/mac-white-surf-wallpaper-loop.png") !important;
  background-position: center 0 !important;
  background-repeat: repeat-y !important;
  background-size: 100% auto !important;
  animation: macWallpaperLayerFlow 118s linear infinite !important;
}

@keyframes macWallpaperLayerFlow {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 355.3666312434vw, 0); }
}

body.mac-desktop::before {
  background:
    radial-gradient(circle at 50% -4%, rgba(255,255,255,0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(1,12,24,0.2)),
    linear-gradient(90deg, rgba(3,9,18,0.18), transparent 37%, transparent 63%, rgba(3,9,18,0.18)) !important;
}

.mac-dock {
  gap: 12px !important;
  padding: 13px 17px 12px !important;
  border-radius: 32px !important;
  border: 1px solid rgba(255,255,255,0.42) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.18)),
    rgba(255,255,255,0.18) !important;
  box-shadow:
    0 6px 6px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(0, 0, 0, 0.1),
    inset 2px 2px 1px 0 rgba(255,255,255,0.5),
    inset -1px -1px 1px 1px rgba(255,255,255,0.42) !important;
  -webkit-backdrop-filter: blur(9px) saturate(1.18) !important;
  backdrop-filter: blur(9px) saturate(1.18) !important;
}

.mac-dock::before {
  opacity: 0.82 !important;
  filter: url(#glass-distortion) !important;
  mix-blend-mode: screen;
}

.mac-dock::after {
  inset: 0 !important;
  border: 0 !important;
  background: rgba(255,255,255,0.08) !important;
  box-shadow:
    inset 2px 2px 1px 0 rgba(255,255,255,0.48),
    inset -1px -1px 1px 1px rgba(255,255,255,0.42) !important;
  opacity: 1 !important;
}

.dock-app {
  width: 74px !important;
  gap: 7px !important;
}

.dock-icon {
  width: 64px !important;
  height: 64px !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  box-shadow: none !important;
  filter: drop-shadow(0 13px 15px rgba(2, 12, 24, 0.32)) !important;
  image-rendering: auto;
}

.global-mac-dock .dock-app,
.compact-dock .dock-app {
  width: 64px !important;
}

.global-mac-dock .dock-icon,
.compact-dock .dock-icon {
  width: 54px !important;
  height: 54px !important;
}

.dock-model-app-icon {
  background-size: 100% 100% !important;
}

.dock-app:hover .dock-img,
.dock-app:focus-visible .dock-img {
  filter: drop-shadow(0 17px 18px rgba(2, 12, 24, 0.36)) !important;
}

.dock-label {
  color: rgba(255,255,255,0.96);
  font-size: 11px !important;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.38);
}

.mac-system-window,
.mac-window {
  border-color: rgba(255,255,255,0.46) !important;
  background:
    linear-gradient(180deg, rgba(248,252,255,0.31), rgba(231,243,248,0.13)),
    rgba(255,255,255,0.13) !important;
  box-shadow:
    0 6px 6px rgba(0,0,0,0.2),
    0 0 20px rgba(0,0,0,0.1),
    0 38px 110px rgba(1, 11, 24, 0.36),
    inset 2px 2px 1px 0 rgba(255,255,255,0.48),
    inset -1px -1px 1px 1px rgba(255,255,255,0.34) !important;
  -webkit-backdrop-filter: blur(13px) saturate(1.18) !important;
  backdrop-filter: blur(13px) saturate(1.18) !important;
}

.mac-system-window::before,
.mac-window::before {
  opacity: 0.42 !important;
}

.mac-system-window::after,
.mac-window::after {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.48), transparent 18%, transparent 72%, rgba(255,255,255,0.16)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.28), transparent 54%) !important;
  opacity: 0.72 !important;
}

.mac-live-titlebar,
.mac-window-bar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.36), rgba(255,255,255,0.14)),
    rgba(255,255,255,0.08) !important;
  border-bottom: 1px solid rgba(255,255,255,0.28) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.16) !important;
  backdrop-filter: blur(12px) saturate(1.16) !important;
}

.traffic-lights button,
.traffic-lights a {
  width: 15px !important;
  height: 15px !important;
  border: 0.5px solid rgba(0,0,0,0.13) !important;
}

.uptime-bars {
  height: 24px !important;
  gap: 2px !important;
  padding: 4px 5px !important;
  border-radius: 10px !important;
  background: rgba(248,252,255,0.2) !important;
  border: 1px solid rgba(255,255,255,0.26) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 4px 10px rgba(2,12,24,0.06) !important;
}

.uptime-bars i {
  width: 4px !important;
  height: 15px !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  opacity: 0.92;
}

.uptime-bars i.ok { background: #35c759 !important; height: 15px !important; }
.uptime-bars i.warn { background: #ffcc00 !important; height: 12px !important; }
.uptime-bars i.bad { background: #ff453a !important; height: 9px !important; }

.mac-app-entering .mac-system-window,
.mac-app-entering .mac-window {
  animation: appAppear 560ms cubic-bezier(.18,1,.24,1) both !important;
}

.mac-app-switching .mac-system-window,
.mac-app-switching .mac-window,
.mac-app-minimizing .mac-system-window,
.mac-app-minimizing .mac-window {
  animation: appSink 520ms cubic-bezier(.32,.72,.18,1) both !important;
}

@keyframes appAppear {
  from {
    opacity: 0;
    transform: translate3d(0, 38px, 0) scale(.88);
  }
  64% {
    opacity: 1;
    transform: translate3d(0, -4px, 0) scale(1.01);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes appSink {
  to {
    opacity: 0;
    transform: translate3d(0, 54px, 0) scale(.82);
  }
}

@media (max-width: 720px) {
  .dock-app {
    width: 62px !important;
  }

  .dock-icon,
  .global-mac-dock .dock-icon,
  .compact-dock .dock-icon {
    width: 52px !important;
    height: 52px !important;
  }
}

/* ============================== App Legibility Lock ==============================
   Keep the glass translucent, but make app content read like native macOS
   controls instead of white text floating on bright frosted water. */
.mac-system-window {
  color: rgba(13, 20, 31, 0.86);
}

.mac-system-window .page-hero.compact h1,
.mac-system-window .admin-sidebar h1,
.mac-system-window .form-panel h2,
.mac-system-window .table-panel h2,
.mac-system-window .provider-card-head h2,
.mac-system-window .provider-card-head h3 {
  color: rgba(12, 18, 28, 0.9) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.42) !important;
}

.mac-system-window .page-hero.compact p,
.mac-system-window .provider-card-head p,
.mac-system-window .glass-card p,
.mac-system-window .glass-panel p {
  color: rgba(24, 34, 48, 0.68) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.28);
}

.mac-system-window .eyebrow,
.mac-system-window .metric-label,
.mac-system-window label {
  color: rgba(33, 44, 61, 0.64) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.36);
}

.mac-system-window .glass-card,
.mac-system-window .glass-panel,
.mac-system-window .form-card,
.mac-system-window .form-panel,
.mac-system-window .table-panel,
.mac-system-window .admin-sidebar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(233,244,248,0.22)),
    rgba(255,255,255,0.18) !important;
  border-color: rgba(255,255,255,0.5) !important;
}

.mac-system-window .glass-tint {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), rgba(229,242,247,0.16)),
    rgba(255,255,255,0.12) !important;
}

.detector-app .hero h1 {
  color: rgba(255,255,255,0.96) !important;
  text-shadow:
    0 2px 1px rgba(255,255,255,0.12),
    0 12px 30px rgba(0,0,0,0.28) !important;
}

.detector-app .form-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.46), rgba(232,244,248,0.25)),
    rgba(255,255,255,0.18) !important;
}

.detector-app label {
  color: rgba(33,44,61,0.66) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.36) !important;
}

.detector-app input,
.detector-app select,
.glass-form input,
.glass-form select,
.glass-form textarea {
  color: rgba(10,18,28,0.92) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,250,252,0.9)) !important;
  border-color: rgba(255,255,255,0.64) !important;
}

.mac-system-window .admin-nav a {
  color: rgba(14, 24, 38, 0.78) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), rgba(234,243,247,0.16)),
    rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.42) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.42);
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.mac-system-window .admin-nav a:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.52), rgba(238,247,250,0.28)),
    rgba(255,255,255,0.18) !important;
}

.mac-system-window .admin-nav a.active {
  color: rgba(8, 18, 30, 0.92) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.68), rgba(238,247,250,0.38)),
    rgba(255,255,255,0.26) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.62),
    0 8px 22px rgba(2,12,24,0.08);
}

.mac-system-window .provider-card-metrics span,
.mac-system-window .ranking-metrics-inline span {
  color: rgba(35, 46, 62, 0.62) !important;
  background: rgba(255,255,255,0.18) !important;
  border-color: rgba(255,255,255,0.34) !important;
}

.mac-system-window .provider-card-metrics strong,
.mac-system-window .ranking-metrics-inline b {
  color: rgba(12, 20, 31, 0.88) !important;
}

.mac-system-window .glass-link {
  color: rgba(22, 36, 54, 0.8) !important;
  background: rgba(255,255,255,0.2) !important;
  border-color: rgba(255,255,255,0.42) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.36);
}

.mac-system-window .glass-table th {
  color: rgba(37, 48, 64, 0.66) !important;
}

.mac-system-window .glass-table td {
  color: rgba(16, 25, 38, 0.8) !important;
  background: rgba(255,255,255,0.2) !important;
}

.mac-system-window .muted {
  color: rgba(38, 51, 68, 0.55) !important;
}

/* ============================== System Polish Lock ==============================
   Final pass for dense app pages: stronger native controls, crisp data badges,
   lighter motion cost, and always-visible fullscreen traffic lights. */
.mac-system-window,
.mac-window {
  box-shadow:
    0 5px 8px rgba(1, 10, 22, 0.16),
    0 26px 72px rgba(1, 11, 24, 0.28),
    inset 1px 1px 0 rgba(255,255,255,0.54),
    inset -1px -1px 0 rgba(255,255,255,0.22) !important;
  -webkit-backdrop-filter: blur(11px) saturate(1.14) !important;
  backdrop-filter: blur(11px) saturate(1.14) !important;
}

.mac-dock {
  box-shadow:
    0 10px 26px rgba(1, 11, 24, 0.22),
    inset 1px 1px 0 rgba(255,255,255,0.52),
    inset -1px -1px 0 rgba(255,255,255,0.28) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.12) !important;
  backdrop-filter: blur(8px) saturate(1.12) !important;
}

.dock-app {
  transition:
    transform 160ms cubic-bezier(.2,.8,.2,1),
    opacity 160ms ease !important;
  will-change: transform;
}

.dock-app.active::after {
  width: 5px !important;
  height: 5px !important;
  bottom: -1px !important;
  background: rgba(255,255,255,0.94) !important;
  box-shadow: 0 1px 4px rgba(2,12,24,0.34) !important;
}

.dock-icon {
  filter: drop-shadow(0 10px 12px rgba(2, 12, 24, 0.28)) !important;
}

.dock-app:hover .dock-img,
.dock-app:focus-visible .dock-img {
  filter: drop-shadow(0 13px 14px rgba(2, 12, 24, 0.31)) !important;
}

body.mac-fullscreen .mac-live-titlebar,
body.mac-fullscreen .mac-window-bar,
body.mac-fullscreen .mac-system-window:hover .mac-live-titlebar,
body.mac-fullscreen .mac-window:hover .mac-window-bar {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.traffic-lights button,
.traffic-lights a {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.46),
    0 1px 2px rgba(1,10,22,0.18) !important;
}

.mac-system-window .glass-badge {
  color: rgba(16, 25, 38, 0.84) !important;
  min-height: 25px;
  border-radius: 9px !important;
  border-color: rgba(255,255,255,0.46) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.52), rgba(238,247,250,0.26)),
    rgba(255,255,255,0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.58),
    0 4px 10px rgba(2,12,24,0.06) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
}

.mac-system-window .glass-badge-success {
  color: rgba(10, 82, 42, 0.94) !important;
  background:
    linear-gradient(180deg, rgba(96,223,139,0.34), rgba(47,207,102,0.22)),
    rgba(255,255,255,0.16) !important;
}

.mac-system-window .glass-badge-warning {
  color: rgba(96, 64, 0, 0.94) !important;
  background:
    linear-gradient(180deg, rgba(255,218,86,0.38), rgba(255,204,0,0.22)),
    rgba(255,255,255,0.16) !important;
}

.mac-system-window .glass-badge-danger {
  color: rgba(122, 24, 19, 0.94) !important;
  background:
    linear-gradient(180deg, rgba(255,122,113,0.28), rgba(255,69,58,0.18)),
    rgba(255,255,255,0.16) !important;
}

.mac-system-window .provider-logo {
  color: rgba(255,255,255,0.96);
  text-shadow: 0 1px 2px rgba(1,10,22,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -10px 18px rgba(0,0,0,0.1),
    0 7px 14px rgba(2,12,24,0.15) !important;
}

.mac-system-window .provider-card,
.mac-system-window .glass-card,
.mac-system-window .glass-panel,
.mac-system-window .form-card,
.mac-system-window .form-panel,
.mac-system-window .table-panel {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.46),
    0 9px 22px rgba(2,12,24,0.08) !important;
}

.mac-system-window .provider-card-metrics span,
.mac-system-window .ranking-metrics-inline span {
  min-height: 42px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.38);
  font-variant-numeric: tabular-nums;
}

.mac-system-window .glass-table {
  font-variant-numeric: tabular-nums;
}

.mac-system-window .glass-table th {
  font-size: 11px;
  letter-spacing: 0.02em;
}

.mac-system-window .glass-table td {
  border-color: rgba(255,255,255,0.36) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.34);
}

.mac-system-window .glass-table tr:hover td {
  color: rgba(10, 18, 28, 0.9) !important;
  background: rgba(255,255,255,0.31) !important;
}

.glass-submit,
.mini-action {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease !important;
}

.glass-submit:hover,
.mini-action:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 10px 20px rgba(16,122,74,0.17) !important;
}

.glass-submit:active,
.mini-action:active {
  transform: translateY(0) scale(0.985);
}

.mac-app-entering .mac-system-window,
.mac-app-entering .mac-window {
  animation: appAppear 430ms cubic-bezier(.2,.9,.22,1) both !important;
}

.mac-app-switching .mac-system-window,
.mac-app-switching .mac-window,
.mac-app-minimizing .mac-system-window,
.mac-app-minimizing .mac-window {
  animation: appSink 410ms cubic-bezier(.32,.72,.18,1) both !important;
}

/* ============================== Finder Library Lock ==============================
   Providers should feel like a compact macOS asset library, not a tall web
   card feed. Scope this to the provider listing template only. */
.mac-system-window .provider-library {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  padding-bottom: 18px;
}

.mac-system-window .provider-library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 12px;
  margin: 0 0 10px !important;
  max-width: none !important;
}

.mac-system-window .provider-library-hero .eyebrow {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin-bottom: 4px;
}

.mac-system-window .provider-library-hero h1 {
  grid-column: 1;
  grid-row: 1;
  margin: 0 !important;
  font-size: clamp(22px, 4.5vw, 30px) !important;
  line-height: 1 !important;
}

.mac-system-window .provider-library-hero p {
  display: none !important;
}

.mac-system-window .provider-library .provider-card {
  border-radius: 16px !important;
  min-height: 0 !important;
  padding: 0 !important;
}

.mac-system-window .provider-library .provider-card .glass-content {
  display: grid !important;
  grid-template-columns: minmax(210px, 1.1fr) minmax(250px, 1.45fr) auto;
  grid-template-areas:
    "head metrics action"
    "badges metrics action";
  align-items: center;
  column-gap: 12px;
  row-gap: 7px;
  padding: 11px 12px !important;
}

.mac-system-window .provider-library .provider-card-head {
  grid-area: head;
  grid-template-columns: 38px minmax(0, 1fr) auto !important;
  gap: 10px !important;
}

.mac-system-window .provider-library .provider-logo {
  width: 38px !important;
  height: 38px !important;
  flex-basis: 38px !important;
  border-radius: 11px !important;
  font-size: 14px !important;
}

.mac-system-window .provider-library .provider-card-head h2 {
  font-size: 15px !important;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-system-window .provider-library .provider-card-head p {
  display: none !important;
}

.mac-system-window .provider-library .provider-card .badge-row {
  grid-area: badges;
  gap: 5px !important;
  overflow: hidden;
}

.mac-system-window .provider-library .glass-badge {
  min-height: 22px !important;
  padding: 4px 7px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

.mac-system-window .provider-library .provider-card-metrics {
  grid-area: metrics;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 0 !important;
}

.mac-system-window .provider-library .provider-card-metrics span {
  min-height: 38px !important;
  padding: 6px 7px !important;
  border-radius: 10px !important;
  font-size: 10px !important;
}

.mac-system-window .provider-library .provider-card-metrics strong {
  display: block;
  margin-top: 2px;
  font-size: 13px !important;
}

.mac-system-window .provider-library .glass-link {
  grid-area: action;
  justify-self: end !important;
  min-width: 74px;
  border-radius: 11px !important;
  padding: 7px 9px !important;
  color: rgba(12, 24, 38, 0.82) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.56), rgba(238,247,250,0.26)),
    rgba(255,255,255,0.2) !important;
  border-color: rgba(255,255,255,0.44) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.48),
    0 4px 10px rgba(2,12,24,0.06) !important;
  text-align: center;
}

.mac-system-window .provider-library .glass-link:hover {
  transform: translateY(-1px);
  color: rgba(8, 18, 30, 0.92) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(238,247,250,0.36)),
    rgba(255,255,255,0.28) !important;
}

@media (max-width: 900px) {
  .mac-system-window .provider-library .provider-card .glass-content {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head action"
      "badges badges"
      "metrics metrics";
  }

  .mac-system-window .provider-library .provider-card-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .mac-system-window .provider-library-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mac-system-window .provider-library-hero .eyebrow,
  .mac-system-window .provider-library-hero h1 {
    grid-column: 1;
  }

  .mac-system-window .provider-library-hero .eyebrow {
    grid-row: 1;
    justify-self: start;
    margin-bottom: 0;
  }

  .mac-system-window .provider-library-hero h1 {
    grid-row: 2;
  }

  .mac-system-window .provider-library .provider-card .glass-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "badges"
      "metrics"
      "action";
  }

  .mac-system-window .provider-library .provider-card-head {
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
  }

  .mac-system-window .provider-library .provider-card-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mac-system-window .provider-library .glass-link {
    justify-self: stretch !important;
  }
}

/* ============================== Detector Workbench Lock ==============================
   Model checks should read like compact macOS utility windows: one command
   surface, short title, no landing-page rhythm. */
.detector-app .mac-system-window {
  width: min(720px, calc(100vw - 38px)) !important;
  max-height: min(560px, calc(100dvh - 138px)) !important;
  padding: 50px 20px 20px !important;
}

.detector-app .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin: 0 0 10px !important;
}

.detector-app .hero::after {
  content: "本地检测";
  justify-self: end;
  align-self: center;
  padding: 5px 8px;
  border-radius: 9px;
  color: rgba(15, 28, 44, 0.7);
  font-size: 11px;
  font-weight: 800;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(238,247,250,0.28)),
    rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.44);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.52);
}

.detector-app .hero h1 {
  max-width: none !important;
  margin: 0 !important;
  color: rgba(13, 20, 31, 0.88) !important;
  font-size: clamp(20px, 4.1vw, 28px) !important;
  line-height: 1.04 !important;
  text-align: left !important;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255,255,255,0.42) !important;
}

.detector-app .hero-sub {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 14px;
}

.detector-app .form-card {
  padding: 0 !important;
  border-radius: 17px !important;
}

.detector-app .form-card form {
  display: grid;
  gap: 9px;
  padding: 13px !important;
}

.detector-app .field {
  display: grid;
  gap: 5px;
  margin-bottom: 0 !important;
}

.detector-app .field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 156px) !important;
  gap: 9px !important;
}

.detector-app label {
  font-size: 12px !important;
  line-height: 1.15;
}

.detector-app input,
.detector-app select {
  min-height: 38px !important;
  border-radius: 12px !important;
  padding: 9px 11px !important;
}

.detector-app .btn-primary {
  min-height: 40px !important;
  margin-top: 0 !important;
  border-radius: 13px !important;
}

.detector-app .form-error,
.detector-app .report {
  margin-top: 6px !important;
}

@media (max-width: 560px) {
  .detector-app .mac-system-window {
    width: min(572px, calc(100vw - 20px)) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .detector-app .hero {
    grid-template-columns: 1fr;
  }

  .detector-app .hero::after {
    justify-self: start;
    grid-row: 1;
  }

  .detector-app .hero h1 {
    grid-row: 2;
  }

  .detector-app .field-row {
    grid-template-columns: 1fr !important;
  }
}

/* ============================== Admin Console Lock ==============================
   Admin pages should feel like System Settings inside the virtual Mac: a
   compact segmented toolbar, a short title row, and dense utility panels. */
.mac-system-window .admin-layout {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

.mac-system-window .admin-sidebar {
  position: relative !important;
  top: 0 !important;
  padding: 8px !important;
  border-radius: 16px !important;
}

.mac-system-window .admin-sidebar .glass-content {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px !important;
}

.mac-system-window .admin-sidebar h1 {
  margin: 0 !important;
  padding: 0 8px 0 4px;
  color: rgba(15, 28, 44, 0.72) !important;
  font-size: 13px !important;
  line-height: 1;
  white-space: nowrap;
}

.mac-system-window .admin-nav {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 4px !important;
  margin: 0 !important;
}

.mac-system-window .admin-nav a {
  min-height: 30px;
  padding: 7px 8px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  text-align: center;
  white-space: nowrap;
}

.mac-system-window .admin-nav a.active {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.66),
    0 5px 12px rgba(2,12,24,0.07) !important;
}

.mac-system-window .admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 12px;
  margin: 0 0 8px !important;
  max-width: none !important;
}

.mac-system-window .admin-hero .eyebrow {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin-bottom: 3px;
}

.mac-system-window .admin-hero h1 {
  grid-column: 1;
  grid-row: 1;
  margin: 0 !important;
  font-size: clamp(21px, 4.2vw, 28px) !important;
  line-height: 1 !important;
}

.mac-system-window .admin-hero p {
  display: none !important;
}

.mac-system-window .admin-grid {
  gap: 10px !important;
}

.mac-system-window .form-panel,
.mac-system-window .table-panel {
  border-radius: 16px !important;
  padding: 0 !important;
}

.mac-system-window .form-panel > .glass-content,
.mac-system-window .table-panel > .glass-content {
  padding: 13px !important;
}

.mac-system-window .form-panel h2,
.mac-system-window .table-panel h2 {
  margin: 0 0 10px !important;
  font-size: 15px !important;
  line-height: 1.1;
}

.mac-system-window .glass-form {
  gap: 9px !important;
}

.mac-system-window .glass-form label {
  gap: 5px !important;
  font-size: 12px !important;
}

.mac-system-window .glass-form input,
.mac-system-window .glass-form select,
.mac-system-window .glass-form textarea {
  min-height: 37px;
  border-radius: 11px !important;
  padding: 8px 10px !important;
}

.mac-system-window .glass-form textarea {
  min-height: 96px;
}

.mac-system-window .glass-submit,
.mac-system-window .mini-action {
  min-height: 34px;
  border-radius: 11px !important;
  padding: 7px 10px !important;
}

.mac-system-window .glass-table {
  border-spacing: 0 5px !important;
}

.mac-system-window .glass-table th {
  padding: 6px 9px !important;
}

.mac-system-window .glass-table td {
  padding: 8px 9px !important;
}

@media (max-width: 760px) {
  .mac-system-window .admin-sidebar .glass-content {
    grid-template-columns: 1fr !important;
  }

  .mac-system-window .admin-sidebar h1 {
    display: none;
  }

  .mac-system-window .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .mac-system-window .admin-nav a {
    min-height: 28px;
    padding: 6px 7px !important;
    font-size: 11px !important;
  }
}

/* ============================== Intelligence Detail Lock ==============================
   Provider details and reports should behave like compact inspection
   windows: score, identity, badges and metrics visible together. */
.mac-system-window .provider-detail-hero {
  margin: 0 0 10px !important;
}

.mac-system-window .provider-detail-panel,
.mac-system-window .report-panel {
  padding: 0 !important;
  border-radius: 17px !important;
}

.mac-system-window .provider-detail-panel > .glass-content,
.mac-system-window .report-panel > .glass-content {
  display: grid;
  gap: 10px;
  padding: 13px !important;
}

.mac-system-window .provider-detail-head {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 82px !important;
  align-items: center !important;
  gap: 10px !important;
}

.mac-system-window .provider-detail-head > div {
  min-width: 0;
}

.mac-system-window .provider-detail-head .provider-logo {
  width: 42px !important;
  height: 42px !important;
  flex-basis: 42px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}

.mac-system-window .provider-detail-head .eyebrow {
  font-size: 10px !important;
}

.mac-system-window .provider-detail-head h1,
.mac-system-window .provider-detail-head h2 {
  color: rgba(13, 20, 31, 0.9) !important;
  font-size: clamp(18px, 4vw, 24px) !important;
  line-height: 1.05 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.mac-system-window .provider-detail-head p {
  display: -webkit-box;
  margin: 4px 0 6px !important;
  color: rgba(28, 40, 56, 0.62) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mac-system-window .provider-detail-head .badge-row {
  gap: 5px !important;
}

.mac-system-window .score-dial {
  width: 82px !important;
  height: 82px !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.52), rgba(238,247,250,0.23)),
    rgba(255,255,255,0.18) !important;
  border-color: rgba(255,255,255,0.44) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.54),
    0 7px 16px rgba(2,12,24,0.08) !important;
}

.mac-system-window .score-dial strong {
  color: rgba(12, 21, 32, 0.9) !important;
  font-size: 26px !important;
  line-height: 1;
}

.mac-system-window .score-dial span {
  color: rgba(36, 48, 64, 0.6) !important;
  font-size: 10px !important;
}

.mac-system-window .hero-metrics {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin-top: 0 !important;
}

.mac-system-window .glass-metric {
  min-width: 0;
  padding: 0 !important;
  border-radius: 13px !important;
}

.mac-system-window .glass-metric .glass-content {
  display: grid;
  gap: 2px;
  padding: 8px !important;
}

.mac-system-window .metric-label,
.mac-system-window .metric-hint {
  font-size: 10px !important;
  line-height: 1.15;
}

.mac-system-window .metric-value {
  color: rgba(12, 20, 31, 0.88) !important;
  font-size: 17px !important;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.mac-system-window .detail-grid {
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.mac-system-window .report-panel {
  margin-bottom: 10px !important;
}

.mac-system-window .page-hero.compact + .report-panel {
  margin-top: 0 !important;
}

.mac-system-window .report-panel .provider-detail-head {
  grid-template-columns: 42px minmax(0, 1fr) 82px !important;
}

@media (max-width: 760px) {
  .mac-system-window .provider-detail-head,
  .mac-system-window .report-panel .provider-detail-head {
    grid-template-columns: 40px minmax(0, 1fr) 76px !important;
  }

  .mac-system-window .score-dial {
    width: 76px !important;
    height: 76px !important;
  }

  .mac-system-window .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 430px) {
  .mac-system-window .provider-detail-head,
  .mac-system-window .report-panel .provider-detail-head {
    grid-template-columns: 38px minmax(0, 1fr) !important;
  }

  .mac-system-window .score-dial {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: auto !important;
    height: 58px !important;
  }
}

/* ============================== Utility Console Lock ==============================
   Comparison, content and feedback pages should be compact tools, not
   scroll-heavy content pages. */
.mac-system-window .utility-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 12px;
  margin: 0 0 10px !important;
  max-width: none !important;
}

.mac-system-window .utility-hero .eyebrow {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin-bottom: 3px;
}

.mac-system-window .utility-hero h1 {
  grid-column: 1;
  grid-row: 1;
  margin: 0 !important;
  font-size: clamp(21px, 4.2vw, 29px) !important;
  line-height: 1 !important;
}

.mac-system-window .utility-hero p {
  display: none !important;
}

.mac-system-window .comparison-panel,
.mac-system-window .feedback-panel,
.mac-system-window .content-panel {
  border-radius: 16px !important;
  padding: 0 !important;
}

.mac-system-window .comparison-panel > .glass-content,
.mac-system-window .feedback-panel > .glass-content,
.mac-system-window .content-panel > .glass-content {
  padding: 13px !important;
}

.mac-system-window .comparison-panel .glass-table-wrap {
  max-height: min(426px, calc(100dvh - 255px));
  overflow: auto;
  border-radius: 13px !important;
}

.mac-system-window .comparison-panel .glass-table {
  border-spacing: 0 4px !important;
  min-width: 620px !important;
}

.mac-system-window .comparison-panel .glass-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 6px 8px !important;
  background: rgba(245,250,252,0.78) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  backdrop-filter: blur(8px) saturate(1.1);
}

.mac-system-window .comparison-panel .glass-table td {
  padding: 7px 8px !important;
  font-size: 12px !important;
}

.mac-system-window .comparison-panel .glass-disclaimer {
  margin-top: 10px !important;
}

.mac-system-window .feedback-panel .glass-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px !important;
}

.mac-system-window .feedback-panel .glass-form label:nth-of-type(4),
.mac-system-window .feedback-panel .glass-form label:nth-of-type(6),
.mac-system-window .feedback-panel .glass-submit,
.mac-system-window .feedback-panel .form-status {
  grid-column: 1 / -1;
}

.mac-system-window .feedback-panel textarea {
  min-height: 112px !important;
}

.mac-system-window .content-stack {
  gap: 10px !important;
}

.mac-system-window .content-panel h2 {
  margin: 0 0 8px !important;
  color: rgba(13, 20, 31, 0.9) !important;
  font-size: 16px !important;
  line-height: 1.1;
}

.mac-system-window .content-panel p {
  margin: 6px 0 !important;
  color: rgba(28, 40, 56, 0.68) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.mac-system-window .glass-list {
  margin: 8px 0 0 !important;
  display: grid;
  gap: 6px;
}

.mac-system-window .glass-list li {
  color: rgba(16, 27, 42, 0.78);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .mac-system-window .utility-hero {
    grid-template-columns: 1fr;
  }

  .mac-system-window .utility-hero .eyebrow,
  .mac-system-window .utility-hero h1 {
    grid-column: 1;
  }

  .mac-system-window .utility-hero .eyebrow {
    grid-row: 1;
    justify-self: start;
    margin-bottom: 0;
  }

  .mac-system-window .utility-hero h1 {
    grid-row: 2;
  }

  .mac-system-window .feedback-panel .glass-form {
    grid-template-columns: 1fr;
  }

  .mac-system-window .comparison-panel .glass-table-wrap {
    max-height: min(420px, calc(100dvh - 280px));
  }
}

/* ============================== Interaction Refinement Lock ==============================
   Keep the desktop feeling native while removing pointermove-driven work. */
body.mac-desktop::after {
  animation-duration: 180s !important;
  contain: paint;
}

.dock-app {
  --dock-scale: 1;
  --dock-lift: 0px;
}

.dock-app:hover,
.dock-app:focus-visible {
  --dock-scale: 1.105;
  --dock-lift: -7px;
}

.dock-app:active {
  --dock-scale: 0.985;
  --dock-lift: -2px;
}

.dock-model-app-icon {
  background-size: contain !important;
  filter: drop-shadow(0 10px 11px rgba(2, 12, 24, 0.31)) !important;
}

.dock-app:hover .dock-model-app-icon,
.dock-app:focus-visible .dock-model-app-icon {
  filter: drop-shadow(0 13px 14px rgba(2, 12, 24, 0.34)) !important;
}

.mac-system-window,
.mac-window {
  -webkit-backdrop-filter: blur(8px) saturate(1.13) brightness(1.02) !important;
  backdrop-filter: blur(8px) saturate(1.13) brightness(1.02) !important;
  background:
    linear-gradient(180deg, rgba(250,253,255,0.34), rgba(229,242,247,0.14)),
    linear-gradient(125deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04) 42%, rgba(255,255,255,0.13)),
    rgba(210, 230, 236, 0.14) !important;
  box-shadow:
    0 4px 8px rgba(1, 10, 22, 0.16),
    0 28px 84px rgba(1, 11, 24, 0.32),
    inset 1px 1px 0 rgba(255,255,255,0.64),
    inset -1px -1px 0 rgba(255,255,255,0.25) !important;
}

.mac-dock {
  -webkit-backdrop-filter: blur(6px) saturate(1.12) !important;
  backdrop-filter: blur(6px) saturate(1.12) !important;
}

body.mac-fullscreen .mac-live-titlebar,
body.mac-fullscreen .mac-window-bar,
body.mac-fullscreen .mac-system-window:hover .mac-live-titlebar,
body.mac-fullscreen .mac-window:hover .mac-window-bar {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

body.mac-fullscreen .mac-system-window > .mac-live-titlebar {
  top: 0 !important;
  margin: 0 -28px 14px !important;
}

body.mac-fullscreen .mac-system-window {
  padding-top: 0 !important;
}

body.mac-fullscreen .mac-window-bar {
  position: sticky;
  top: 0;
  z-index: 35;
}

.mac-live-titlebar,
.mac-window-bar {
  min-height: 42px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(255,255,255,0.12);
}

.mac-system-window .glass-card,
.mac-system-window .glass-panel,
.mac-system-window .form-card,
.mac-system-window .form-panel,
.mac-system-window .table-panel,
.mac-system-window .content-panel {
  border-color: rgba(255,255,255,0.48) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.45), rgba(233,244,248,0.2)),
    rgba(255,255,255,0.15) !important;
}

@media (max-width: 720px) {
  body.mac-fullscreen .mac-system-window > .mac-live-titlebar {
    margin: 0 -16px 12px !important;
  }
}

/* ============================== Virtual Mac Fidelity Lock ==============================
   Generated white-surf wallpaper, icon-only Dock apps, refined Liquid Glass
   edges, and non-plastic monitoring bars. */
body.mac-desktop {
  background: #0f7e91 !important;
}

body.mac-desktop::after {
  top: -421.5277777778vw !important;
  bottom: -421.5277777778vw !important;
  background-image: url("/static/generated/mac-white-surf-wallpaper-loop.png") !important;
  background-position: center 0 !important;
  background-repeat: repeat-y !important;
  background-size: 100% auto !important;
  transform: translate3d(0, 0, 0);
  animation: macWallpaperLayerFlow 132s linear infinite !important;
  will-change: transform;
}

@keyframes macWallpaperLayerFlow {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 421.5277777778vw, 0); }
}

body.mac-desktop::before {
  background:
    radial-gradient(circle at 50% -8%, rgba(255,255,255,0.12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,13,28,0.18)),
    linear-gradient(90deg, rgba(2,10,22,0.12), transparent 34%, transparent 66%, rgba(2,10,22,0.12)) !important;
}

.mac-dock {
  gap: 13px !important;
  padding: 12px 17px 11px !important;
  border-radius: 31px !important;
  border: 1px solid rgba(255,255,255,0.38) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0.13)),
    rgba(218,239,245,0.14) !important;
  box-shadow:
    0 17px 54px rgba(0, 13, 30, 0.30),
    0 1px 0 rgba(255,255,255,0.24),
    inset 0 1px 0 rgba(255,255,255,0.74),
    inset 0 -1px 0 rgba(255,255,255,0.22) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.26) brightness(1.05) !important;
  backdrop-filter: blur(14px) saturate(1.26) brightness(1.05) !important;
}

.mac-dock::before {
  opacity: 0.34 !important;
  filter: url(#glass-distortion) !important;
  mix-blend-mode: screen;
}

.mac-dock::after {
  border: 0 !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.34), transparent 28%, rgba(255,255,255,0.12) 78%, rgba(255,255,255,0.24)) !important;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.5),
    inset -1px -1px 0 rgba(255,255,255,0.18) !important;
  opacity: 1 !important;
}

.dock-app,
.global-mac-dock .dock-app,
.compact-dock .dock-app {
  width: 64px !important;
  gap: 6px !important;
  transform: translate3d(0, var(--dock-lift, 0), 0) scale(var(--dock-scale, 1)) !important;
  transform-origin: center bottom;
  transition:
    transform 180ms cubic-bezier(.2,.9,.2,1),
    opacity 180ms ease !important;
}

.dock-app:hover,
.dock-app:focus-visible {
  --dock-scale: 1.13;
  --dock-lift: -8px;
}

.dock-app:active {
  --dock-scale: .985;
  --dock-lift: -2px;
}

.dock-icon,
.global-mac-dock .dock-icon,
.compact-dock .dock-icon {
  width: 56px !important;
  height: 56px !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background-color: transparent !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  box-shadow: none !important;
  filter: drop-shadow(0 11px 12px rgba(2, 12, 24, 0.32)) !important;
}

.dock-model-app-icon {
  background-size: contain !important;
}

.dock-label {
  color: rgba(255,255,255,0.96) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.42) !important;
}

.dock-app.active::after {
  width: 4px !important;
  height: 4px !important;
  margin-top: -1px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 1px 5px rgba(0,0,0,0.28) !important;
}

.mac-system-window,
.mac-window {
  border: 1px solid rgba(255,255,255,0.48) !important;
  outline: 1px solid rgba(255,255,255,0.13) !important;
  background:
    linear-gradient(180deg, rgba(248,253,255,0.34), rgba(226,241,247,0.15)),
    linear-gradient(125deg, rgba(255,255,255,0.18), rgba(255,255,255,0.035) 43%, rgba(255,255,255,0.14)),
    rgba(218, 238, 244, 0.16) !important;
  box-shadow:
    0 38px 110px rgba(0, 12, 28, 0.36),
    0 8px 24px rgba(255,255,255,0.10),
    inset 1px 1px 0 rgba(255,255,255,0.72),
    inset -1px -1px 0 rgba(255,255,255,0.20) !important;
  -webkit-backdrop-filter: blur(15px) saturate(1.22) brightness(1.03) !important;
  backdrop-filter: blur(15px) saturate(1.22) brightness(1.03) !important;
}

.mac-system-window::before,
.mac-window::before {
  opacity: 0.25 !important;
  filter: url(#glass-distortion) !important;
}

.mac-system-window::after,
.mac-window::after {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.44), transparent 22%, transparent 72%, rgba(255,255,255,0.16)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.22), transparent 54%) !important;
  opacity: 0.62 !important;
}

.mac-live-titlebar,
.mac-window-bar {
  min-height: 42px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.36), rgba(237,248,252,0.15)),
    rgba(255,255,255,0.08) !important;
  border-bottom: 1px solid rgba(255,255,255,0.24) !important;
  color: rgba(9, 18, 30, 0.76) !important;
}

.traffic-lights {
  gap: 4px !important;
}

.traffic-lights a,
.traffic-lights button,
.traffic-lights span {
  width: 16px !important;
  height: 16px !important;
  padding: 2px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.52),
    0 1px 2px rgba(0,0,0,0.18) !important;
}

.mac-system-window .glass-card,
.mac-system-window .glass-panel,
.mac-system-window .form-card,
.mac-system-window .form-panel,
.mac-system-window .table-panel,
.mac-system-window .content-panel,
.mac-system-window .admin-sidebar {
  border: 1px solid rgba(255,255,255,0.44) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(236,247,250,0.19)),
    rgba(255,255,255,0.13) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.54),
    0 8px 24px rgba(0, 13, 30, 0.075) !important;
}

.mini-ranking-row {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.32), rgba(232,246,250,0.18)),
    rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.42),
    0 7px 18px rgba(0, 13, 30, 0.08) !important;
}

.uptime-bars {
  height: 28px !important;
  gap: 3px !important;
  align-items: center !important;
  justify-content: end !important;
  padding: 5px 7px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,0.30) !important;
  background: rgba(255,255,255,0.13) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25) !important;
}

.uptime-bars i {
  width: 4px !important;
  min-height: 8px !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  opacity: .94;
}

.uptime-bars i.ok { height: 16px !important; background: #30d158 !important; }
.uptime-bars i.warn { height: 12px !important; background: #ffd60a !important; }
.uptime-bars i.bad { height: 9px !important; background: #ff453a !important; }

.mac-app-entering .mac-system-window,
.mac-app-entering .mac-window {
  animation: appAppear 520ms cubic-bezier(.17,.89,.25,1) both !important;
}

.mac-app-switching .mac-system-window,
.mac-app-switching .mac-window,
.mac-app-minimizing .mac-system-window,
.mac-app-minimizing .mac-window {
  animation: appSink 500ms cubic-bezier(.32,.72,.18,1) both !important;
}

@keyframes appAppear {
  from {
    opacity: 0;
    transform: translate3d(0, 42px, 0) scale(.88);
  }
  62% {
    opacity: 1;
    transform: translate3d(0, -5px, 0) scale(1.012);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes appSink {
  to {
    opacity: 0;
    transform: translate3d(0, 58px, 0) scale(.82);
  }
}

body.mac-fullscreen .global-mac-dock,
body.mac-fullscreen .compact-dock {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(34px) scale(.94) !important;
  pointer-events: none !important;
}

body.mac-fullscreen .mac-system-window,
body.mac-fullscreen .mac-window {
  border-radius: 0 !important;
  outline: 0 !important;
}

@media (max-width: 720px) {
  .dock-app,
  .global-mac-dock .dock-app,
  .compact-dock .dock-app {
    width: 58px !important;
  }

  .dock-icon,
  .global-mac-dock .dock-icon,
  .compact-dock .dock-icon {
    width: 50px !important;
    height: 50px !important;
  }
}

/* ============================== App Viewport Clearance Lock ==============================
   Long app pages must scroll inside the frosted window and never disappear
   underneath the Dock. */
.mac-system .glass-container {
  padding-bottom: 132px !important;
}

.mac-system-window {
  max-height: min(650px, calc(100dvh - 176px)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 35, 55, 0.18) transparent;
}

.mac-system-window::-webkit-scrollbar {
  width: 10px;
}

.mac-system-window::-webkit-scrollbar-track {
  background: transparent;
}

.mac-system-window::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(12, 34, 52, 0.18);
  background-clip: content-box;
}

.mac-system-window > :last-child {
  margin-bottom: 8px !important;
}

.mac-system-window .provider-library,
.mac-system-window .admin-main,
.mac-system-window .detail-grid,
.mac-system-window .content-stack {
  padding-bottom: 20px !important;
}

.mac-system-window .glass-submit,
.mac-system-window .mini-action,
.detector-app .btn-primary {
  color: rgba(7, 24, 36, 0.88) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.66), rgba(222,244,235,0.28)),
    rgba(72, 198, 115, 0.42) !important;
  border: 1px solid rgba(255,255,255,0.54) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.64),
    0 7px 18px rgba(12, 92, 50, 0.12) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.36) !important;
}

.mac-system-window .glass-submit:hover,
.mac-system-window .mini-action:hover,
.detector-app .btn-primary:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(225,246,238,0.34)),
    rgba(67, 190, 108, 0.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.68),
    0 9px 22px rgba(12, 92, 50, 0.14) !important;
}

.mac-system-window .glass-badge,
.mini-score {
  border-radius: 9px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.42),
    0 4px 10px rgba(0, 13, 30, 0.06) !important;
}

.mini-score.good { background: rgba(48, 209, 88, 0.82) !important; }
.mini-score.watch { background: rgba(255, 159, 10, 0.82) !important; }
.mini-score.risk { background: rgba(255, 69, 58, 0.82) !important; }

@media (max-width: 720px) {
  .mac-system .glass-container {
    padding-bottom: 122px !important;
  }

  .mac-system-window {
    max-height: calc(100dvh - 164px) !important;
  }
}

/* ============================== Virtual Mac Precision Pass 20260706-38 ==============================
   High-foam surf wallpaper, crisper app icons, thinner refractive glass,
   two-stage app switching, and non-plastic monitoring bars. */
body.mac-desktop {
  background: #63d1df !important;
}

body.mac-desktop::after {
  top: -421.5277777778vw !important;
  bottom: -421.5277777778vw !important;
  background-image: url("/static/generated/mac-white-surf-wallpaper-loop.png") !important;
  background-position: center 0 !important;
  background-repeat: repeat-y !important;
  background-size: 100vw auto !important;
  opacity: 0.98 !important;
  transform: translate3d(0, 0, 0);
  animation: macWallpaperLayerFlow 156s linear infinite !important;
  contain: paint;
  will-change: transform;
}

body.mac-desktop::before {
  background:
    radial-gradient(circle at 50% -12%, rgba(255,255,255,0.20), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0, 40, 64, 0.12)),
    linear-gradient(90deg, rgba(3, 23, 42, 0.11), transparent 30%, transparent 70%, rgba(3, 23, 42, 0.10)) !important;
}

@keyframes macWallpaperLayerFlow {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 421.5277777778vw, 0); }
}

.mac-dock,
.global-mac-dock,
.compact-dock {
  border-radius: 30px !important;
  border: 0.5px solid rgba(255, 255, 255, 0.42) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.13)),
    rgba(229, 247, 250, 0.18) !important;
  box-shadow:
    0 18px 44px rgba(0, 26, 44, 0.22),
    0 2px 5px rgba(255,255,255,0.18),
    inset 0 1px 0 rgba(255,255,255,0.76),
    inset 0 -1px 0 rgba(255,255,255,0.22),
    inset 1px 0 0 rgba(255,255,255,0.18),
    inset -1px 0 0 rgba(255,255,255,0.12) !important;
  -webkit-backdrop-filter: blur(13px) saturate(1.24) brightness(1.04) !important;
  backdrop-filter: blur(13px) saturate(1.24) brightness(1.04) !important;
}

.mac-dock::before,
.global-mac-dock::before,
.compact-dock::before {
  opacity: 0.18 !important;
  filter: url(#glass-distortion) !important;
  mix-blend-mode: screen !important;
}

.mac-dock::after,
.global-mac-dock::after,
.compact-dock::after {
  background:
    linear-gradient(126deg, rgba(255,255,255,0.48), rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.02) 66%, rgba(255,255,255,0.24)) !important;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.48),
    inset -1px -1px 0 rgba(255,255,255,0.14) !important;
}

.dock-app,
.global-mac-dock .dock-app,
.compact-dock .dock-app {
  width: 63px !important;
  text-decoration: none !important;
  transform: translate3d(0, var(--dock-lift, 0), 0) scale(var(--dock-scale, 1)) !important;
  transition:
    transform 210ms cubic-bezier(.18,.88,.2,1),
    opacity 180ms ease !important;
  -webkit-font-smoothing: antialiased;
}

.dock-app:hover,
.dock-app:focus-visible {
  --dock-scale: 1.16;
  --dock-lift: -9px;
}

.dock-app:active {
  --dock-scale: 1.03;
  --dock-lift: -5px;
}

.dock-icon,
.global-mac-dock .dock-icon,
.compact-dock .dock-icon {
  width: 56px !important;
  height: 56px !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background-color: transparent !important;
  background-image: var(--icon-url) !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow: none !important;
  filter: drop-shadow(0 8px 9px rgba(0, 22, 38, 0.30)) !important;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.dock-model-app-icon {
  filter:
    drop-shadow(0 8px 9px rgba(0, 20, 36, 0.26))
    drop-shadow(0 1px 0 rgba(255,255,255,0.14)) !important;
}

.dock-label {
  color: rgba(255,255,255,0.98) !important;
  font-size: 10.5px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.34),
    0 4px 10px rgba(0,0,0,0.22) !important;
}

.dock-app.active::after {
  width: 4px !important;
  height: 4px !important;
  background: rgba(255,255,255,0.96) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.30) !important;
}

.mac-system-window,
.mac-window {
  border-radius: 28px !important;
  border: 0.5px solid rgba(255,255,255,0.50) !important;
  outline: 1px solid rgba(255,255,255,0.12) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.45), rgba(231,247,250,0.18)),
    linear-gradient(128deg, rgba(255,255,255,0.20), rgba(255,255,255,0.045) 44%, rgba(255,255,255,0.16)),
    rgba(224, 246, 250, 0.13) !important;
  box-shadow:
    0 42px 110px rgba(0, 19, 38, 0.31),
    0 12px 32px rgba(255,255,255,0.11),
    inset 0 1px 0 rgba(255,255,255,0.78),
    inset 1px 0 0 rgba(255,255,255,0.28),
    inset -1px -1px 0 rgba(255,255,255,0.18) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.23) brightness(1.05) !important;
  backdrop-filter: blur(14px) saturate(1.23) brightness(1.05) !important;
}

.mac-system-window::before,
.mac-window::before {
  opacity: 0.18 !important;
  filter: url(#glass-distortion) !important;
}

.mac-system-window::after,
.mac-window::after {
  opacity: 0.72 !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.50), rgba(255,255,255,0.07) 24%, transparent 58%, rgba(255,255,255,0.18)),
    radial-gradient(circle at 52% 0%, rgba(255,255,255,0.20), transparent 48%) !important;
}

.mac-live-titlebar,
.mac-window-bar {
  min-height: 42px !important;
  border-bottom: 0.5px solid rgba(255,255,255,0.26) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.44), rgba(236,249,251,0.17)),
    rgba(255,255,255,0.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.58),
    inset 0 -1px 0 rgba(255,255,255,0.08) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.18) !important;
  backdrop-filter: blur(16px) saturate(1.18) !important;
}

.traffic-lights a,
.traffic-lights button,
.traffic-lights span {
  width: 14px !important;
  height: 14px !important;
  border: 0.5px solid rgba(0,0,0,0.12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.50),
    0 1px 2px rgba(0,0,0,0.18) !important;
}

.mac-system-window .glass-card,
.mac-system-window .glass-panel,
.mac-system-window .form-card,
.mac-system-window .form-panel,
.mac-system-window .table-panel,
.mac-system-window .content-panel,
.mac-system-window .admin-sidebar,
.mini-ranking-row {
  border: 0.5px solid rgba(255,255,255,0.43) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.46), rgba(237,249,251,0.19)),
    rgba(255,255,255,0.12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.52),
    0 7px 18px rgba(0, 20, 38, 0.065) !important;
}

.uptime-bars {
  height: 26px !important;
  gap: 3px !important;
  padding: 5px 7px !important;
  border-radius: 8px !important;
  border: 0.5px solid rgba(255,255,255,0.34) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.20), rgba(255,255,255,0.08)),
    rgba(244, 252, 252, 0.10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28) !important;
}

.uptime-bars i {
  width: 3px !important;
  min-height: 7px !important;
  border-radius: 5px !important;
  opacity: 0.95 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 0 0 0.5px rgba(0,0,0,0.04) !important;
}

.uptime-bars i.ok { height: 15px !important; background: #29c95f !important; }
.uptime-bars i.warn { height: 12px !important; background: #f2c84b !important; }
.uptime-bars i.bad { height: 9px !important; background: #e85048 !important; }

.mac-app-entering .mac-system-window,
.mac-app-entering .mac-window {
  animation: appAppear 560ms cubic-bezier(.18,.92,.2,1) both !important;
}

.mac-app-entering-from-switch .mac-system-window,
.mac-app-entering-from-switch .mac-window {
  animation-duration: 620ms !important;
}

.mac-app-switching-out .mac-system-window,
.mac-app-switching-out .mac-window,
.mac-app-switching .mac-system-window,
.mac-app-switching .mac-window {
  animation: appSwitchOut 520ms cubic-bezier(.32,.72,.16,1) both !important;
}

.mac-app-minimizing .mac-system-window,
.mac-app-minimizing .mac-window {
  transform-origin: center calc(100% + 96px);
  animation: appMinimizeToDock 440ms cubic-bezier(.36,.72,.2,1) both !important;
}

.mac-app-opening .mac-dock {
  animation: dockOpenPulse 440ms cubic-bezier(.18,.9,.2,1) both !important;
}

@keyframes appAppear {
  from {
    opacity: 0;
    transform: translate3d(0, 54px, 0) scale(.86);
  }
  58% {
    opacity: 1;
    transform: translate3d(0, -4px, 0) scale(1.012);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes appSwitchOut {
  to {
    opacity: 0;
    transform: translate3d(0, 64px, 0) scale(.82);
  }
}

@keyframes appMinimizeToDock {
  to {
    opacity: 0;
    transform: translate3d(0, 118px, 0) scale(.58);
  }
}

@keyframes dockOpenPulse {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  52% { transform: translateX(-50%) translateY(-5px) scale(1.018); }
  100% { transform: translateX(-50%) translateY(0) scale(1); }
}

body.mac-fullscreen .global-mac-dock,
body.mac-fullscreen .compact-dock {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(42px) scale(.92) !important;
  pointer-events: none !important;
}

body.mac-fullscreen .mac-system .glass-container,
body.mac-fullscreen .glass-container {
  padding: 0 !important;
  display: block !important;
}

body.mac-fullscreen .mac-system-window,
body.mac-fullscreen .mac-window {
  width: 100vw !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  padding-top: 54px !important;
}

body.mac-fullscreen .mac-live-titlebar,
body.mac-fullscreen .mac-window-bar {
  opacity: 0 !important;
  transform: translateY(-18px) !important;
  pointer-events: none !important;
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(.2,.7,.2,1) !important;
}

body.mac-fullscreen .mac-system-window:focus-within .mac-live-titlebar,
body.mac-fullscreen .mac-window:focus-within .mac-window-bar {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

@media (max-width: 720px) {
  body.mac-desktop::after {
    top: -421.5277777778vw !important;
    bottom: -421.5277777778vw !important;
    background-size: 100vw auto !important;
  }

  .dock-app,
  .global-mac-dock .dock-app,
  .compact-dock .dock-app {
    width: 56px !important;
  }

  .dock-icon,
  .global-mac-dock .dock-icon,
  .compact-dock .dock-icon {
    width: 49px !important;
    height: 49px !important;
  }
}

/* Ranking rows must keep name, score, availability, latency, and status visible
   even inside the compact macOS-style window. */
.mac-ranking .mini-ranking-row {
  grid-template-columns: 42px minmax(128px, 1fr) 44px 72px 88px !important;
  gap: 10px !important;
}

.mac-ranking .mini-metrics {
  display: grid !important;
  justify-items: end !important;
  align-content: center !important;
  gap: 0 !important;
  min-width: 62px;
  font-variant-numeric: tabular-nums;
}

.mac-ranking .mini-metrics b {
  font-size: 12px !important;
  line-height: 1.05 !important;
  color: rgba(8, 22, 34, 0.84) !important;
}

.mac-ranking .mini-metrics small {
  display: block !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
  color: rgba(8, 22, 34, 0.50) !important;
}

.mac-ranking .uptime-bars {
  justify-self: end !important;
  width: 86px !important;
}

@media (max-width: 720px) {
  .mac-ranking .mini-ranking-row {
    grid-template-columns: 34px minmax(74px, 1fr) 36px 46px 62px !important;
    gap: 6px !important;
    padding: 7px 8px !important;
  }

  .mac-ranking .mini-site-main strong {
    font-size: 12px !important;
  }

  .mac-ranking .mini-site-main small {
    display: none !important;
  }

  .mac-ranking .mini-score {
    width: 34px !important;
    height: 25px !important;
    font-size: 12px !important;
  }

  .mac-ranking .mini-metrics {
    min-width: 44px !important;
  }

  .mac-ranking .mini-metrics b {
    font-size: 10.5px !important;
  }

  .mac-ranking .mini-metrics small {
    font-size: 9px !important;
  }

  .mac-ranking .uptime-bars {
    width: 62px !important;
    gap: 2px !important;
    padding: 4px 5px !important;
  }

  .mac-ranking .uptime-bars i {
    width: 2.5px !important;
  }
}

/* ============================== Finder List Precision Pass 20260706-38 ==============================
   Provider library rows now behave like a compact Finder list: icon, name,
   score, metrics, and one short action in a single scan line. */
.mac-system-window .provider-library {
  gap: 7px !important;
}

.mac-system-window .provider-library .provider-card {
  border-radius: 14px !important;
}

.mac-system-window .provider-library .provider-card .glass-content {
  grid-template-columns: minmax(176px, 1fr) minmax(188px, 0.92fr) 48px !important;
  grid-template-areas: "head metrics action" !important;
  column-gap: 9px !important;
  row-gap: 0 !important;
  min-height: 54px !important;
  padding: 8px 10px !important;
}

.mac-system-window .provider-library .provider-card-head {
  align-items: center !important;
  grid-template-columns: 36px minmax(0, 1fr) 42px !important;
  gap: 8px !important;
}

.mac-system-window .provider-library .provider-logo {
  width: 36px !important;
  height: 36px !important;
  flex-basis: 36px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

.mac-system-window .provider-library .provider-card-head h2 {
  font-size: 14px !important;
  line-height: 1.05 !important;
}

.mac-system-window .provider-library .provider-card-head .glass-badge {
  justify-self: end;
  min-width: 42px !important;
  min-height: 24px !important;
  padding: 5px 6px !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.mac-system-window .provider-library .provider-card .badge-row {
  display: none !important;
}

.mac-system-window .provider-library .provider-card-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 4px !important;
  align-items: center !important;
}

.mac-system-window .provider-library .provider-card-metrics span {
  min-height: 32px !important;
  padding: 5px 5px !important;
  border-radius: 8px !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0.10)),
    rgba(255,255,255,0.07) !important;
}

.mac-system-window .provider-library .provider-card-metrics strong {
  margin-top: 1px !important;
  font-size: 11.5px !important;
  line-height: 1.05 !important;
  font-variant-numeric: tabular-nums;
}

.mac-system-window .provider-library .glass-link {
  min-width: 46px !important;
  padding: 7px 8px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

@media (max-width: 720px) {
  .mac-system-window .provider-library-hero {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    margin-bottom: 8px !important;
  }

  .mac-system-window .provider-library-hero .eyebrow {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }

  .mac-system-window .provider-library-hero h1 {
    grid-column: 1 !important;
    grid-row: 1 !important;
    font-size: 24px !important;
  }

  .mac-system-window .provider-library .provider-card .glass-content {
    grid-template-columns: minmax(118px, 1fr) minmax(126px, 0.86fr) 42px !important;
    grid-template-areas: "head metrics action" !important;
    gap: 6px !important;
    min-height: 50px !important;
    padding: 7px 8px !important;
  }

  .mac-system-window .provider-library .provider-card-head {
    grid-template-columns: 32px minmax(0, 1fr) 36px !important;
    gap: 6px !important;
  }

  .mac-system-window .provider-library .provider-logo {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
  }

  .mac-system-window .provider-library .provider-card-head h2 {
    font-size: 12px !important;
  }

  .mac-system-window .provider-library .provider-card-head .glass-badge {
    min-width: 34px !important;
    min-height: 23px !important;
    padding: 5px 4px !important;
    font-size: 10px !important;
  }

  .mac-system-window .provider-library .provider-card-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }

  .mac-system-window .provider-library .provider-card-metrics span {
    min-height: 30px !important;
    padding: 3px 4px !important;
    font-size: 8.5px !important;
    line-height: 1.05 !important;
    color: rgba(8, 22, 34, 0.48) !important;
  }

  .mac-system-window .provider-library .provider-card-metrics strong {
    margin-top: 1px !important;
    font-size: 10.5px !important;
  }

  .mac-system-window .provider-library .glass-link {
    min-width: 40px !important;
    padding: 7px 6px !important;
    font-size: 11px !important;
  }
}

/* Detector utility copy should read like an app control, not a landing page. */
.detector-app .hero h1 {
  font-size: clamp(22px, 4vw, 27px) !important;
  letter-spacing: 0 !important;
}

.detector-app .field-row {
  grid-template-columns: minmax(0, 1fr) minmax(118px, 132px) !important;
}

.detector-app select {
  font-size: 12px !important;
  text-overflow: ellipsis;
}

/* ============================== Control Surface Precision Pass 20260706-38 ==============================
   Inputs, selects, buttons, status messages, and admin controls should feel
   like native controls embedded in the frosted macOS window, not transparent
   HTML fields floating over glass. */
.mac-system-window input:not([type="checkbox"]):not([type="radio"]),
.mac-system-window select,
.mac-system-window textarea,
.detector-app input:not([type="checkbox"]):not([type="radio"]),
.detector-app select,
.detector-app textarea,
.glass-form input:not([type="checkbox"]):not([type="radio"]),
.glass-form select,
.glass-form textarea {
  color: rgba(8, 20, 32, 0.88) !important;
  caret-color: rgba(2, 132, 199, 0.78);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(249,252,253,0.58)),
    rgba(255,255,255,0.42) !important;
  border: 0.5px solid rgba(255,255,255,0.70) !important;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.92),
    inset 0 -1px 0 rgba(8, 34, 52, 0.035),
    0 1px 0 rgba(255,255,255,0.42),
    0 7px 18px rgba(0, 23, 44, 0.055) !important;
  -webkit-backdrop-filter: blur(7px) saturate(1.08) !important;
  backdrop-filter: blur(7px) saturate(1.08) !important;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    transform 160ms ease !important;
}

.mac-system-window input::placeholder,
.mac-system-window textarea::placeholder,
.detector-app input::placeholder,
.detector-app textarea::placeholder,
.glass-form input::placeholder,
.glass-form textarea::placeholder {
  color: rgba(8, 24, 36, 0.42) !important;
}

.mac-system-window input:not([type="checkbox"]):not([type="radio"]):focus,
.mac-system-window select:focus,
.mac-system-window textarea:focus,
.detector-app input:not([type="checkbox"]):not([type="radio"]):focus,
.detector-app select:focus,
.detector-app textarea:focus,
.glass-form input:not([type="checkbox"]):not([type="radio"]):focus,
.glass-form select:focus,
.glass-form textarea:focus {
  outline: 0 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(250,254,255,0.68)),
    rgba(255,255,255,0.50) !important;
  border-color: rgba(115, 206, 244, 0.76) !important;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.96),
    0 0 0 3px rgba(78, 190, 239, 0.17),
    0 8px 20px rgba(0, 82, 132, 0.09) !important;
}

.mac-system-window select,
.detector-app select,
.glass-form select {
  cursor: pointer;
  padding-right: 30px !important;
}

.mac-system-window label,
.detector-app label,
.glass-form label {
  color: rgba(8, 22, 34, 0.60) !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}

.mac-system-window .hint,
.detector-app .hint,
.mac-system-window .checkbox-hint,
.detector-app .checkbox-hint {
  color: rgba(8, 22, 34, 0.48) !important;
  font-size: 11px !important;
  line-height: 1.38 !important;
}

.field-checkbox,
.detector-app .field-checkbox {
  border: 0.5px solid rgba(255,255,255,0.50) !important;
  border-radius: 13px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), rgba(241,250,252,0.16)),
    rgba(255,255,255,0.10) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.50),
    0 5px 14px rgba(0, 23, 44, 0.045) !important;
}

.field-checkbox input[type="checkbox"],
.detector-app .field-checkbox input[type="checkbox"] {
  accent-color: #4fc36f;
}

.combo-list {
  border: 0.5px solid rgba(255,255,255,0.58) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(239,250,252,0.58)),
    rgba(255,255,255,0.44) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.70),
    0 16px 38px rgba(0, 23, 44, 0.16) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.16) !important;
  backdrop-filter: blur(16px) saturate(1.16) !important;
}

.combo-item {
  border-radius: 9px !important;
}

.combo-item:hover,
.combo-item:focus {
  background: rgba(45, 166, 222, 0.13) !important;
}

.mac-system-window .glass-submit,
.mac-system-window .mini-action,
.detector-app .btn-primary,
.mac-system-window button[type="submit"],
.detector-app button[type="submit"] {
  color: rgba(7, 24, 34, 0.88) !important;
  font-weight: 760 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(224, 246, 234, 0.36)),
    rgba(76, 198, 111, 0.34) !important;
  border: 0.5px solid rgba(255,255,255,0.70) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    inset 0 -1px 0 rgba(18, 103, 52, 0.08),
    0 8px 18px rgba(15, 101, 54, 0.095) !important;
  transform: translateZ(0);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease !important;
}

.mac-system-window .glass-submit:hover,
.mac-system-window .mini-action:hover,
.detector-app .btn-primary:hover,
.mac-system-window button[type="submit"]:hover,
.detector-app button[type="submit"]:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(223, 249, 236, 0.46)),
    rgba(77, 199, 112, 0.40) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.84),
    0 10px 22px rgba(15, 101, 54, 0.12) !important;
  transform: translateY(-1px);
}

.mac-system-window .glass-submit:active,
.mac-system-window .mini-action:active,
.detector-app .btn-primary:active,
.mac-system-window button[type="submit"]:active,
.detector-app button[type="submit"]:active {
  transform: translateY(1px) scale(0.992);
  box-shadow:
    inset 0 1px 2px rgba(19, 93, 50, 0.13),
    0 4px 12px rgba(15, 101, 54, 0.08) !important;
}

.form-status {
  min-height: 30px !important;
  padding: 7px 9px !important;
  border-radius: 11px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.36), rgba(241,250,252,0.16)),
    rgba(255,255,255,0.12) !important;
  border: 0.5px solid rgba(255,255,255,0.48) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.48) !important;
}

.mac-system-window .admin-nav {
  padding: 4px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.38), rgba(241,250,252,0.14)),
    rgba(255,255,255,0.10) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.52),
    0 5px 14px rgba(0, 23, 44, 0.045) !important;
}

.mac-system-window .admin-nav a {
  border: 0.5px solid transparent !important;
  background: transparent !important;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease !important;
}

.mac-system-window .admin-nav a:hover {
  text-decoration: none !important;
  background: rgba(255,255,255,0.24) !important;
  border-color: rgba(255,255,255,0.28) !important;
}

.mac-system-window .admin-nav a.active {
  color: rgba(6, 18, 30, 0.88) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(239,249,252,0.40)),
    rgba(255,255,255,0.32) !important;
  border-color: rgba(255,255,255,0.66) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.76),
    0 6px 14px rgba(0, 23, 44, 0.08) !important;
}

.mac-system-window .utility-hero h1,
.mac-system-window .admin-hero h1,
.mac-system-window .provider-library-hero h1 {
  letter-spacing: 0 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.34) !important;
}

/* ============================== Deep App Surface Pass 20260706-39 ==============================
   Square first-party model icons, always-visible fullscreen controls,
   lighter glass rendering, and denser inspector/list pages. */
body.mac-desktop::after {
  animation-duration: 220s !important;
  will-change: transform;
}

.mac-system-window::before,
.mac-window::before,
.mac-dock::before,
.global-mac-dock::before,
.compact-dock::before,
.mac-system-window .glass-distort,
.mac-window .glass-distort,
.mac-dock .glass-distort {
  filter: none !important;
}

.mac-system-window .glass-distort,
.mac-window .glass-distort {
  opacity: 0.58 !important;
  -webkit-backdrop-filter: blur(1.5px) saturate(1.04) !important;
  backdrop-filter: blur(1.5px) saturate(1.04) !important;
}

.mac-system-window .glass-effect,
.mac-window .glass-effect {
  transition:
    transform 180ms cubic-bezier(.2,.8,.2,1),
    box-shadow 180ms ease,
    background 180ms ease !important;
}

.dock-model-app-icon {
  width: 58px !important;
  height: 58px !important;
  background-size: contain !important;
  filter: drop-shadow(0 9px 10px rgba(0, 18, 34, 0.24)) !important;
}

.dock-app:hover .dock-model-app-icon,
.dock-app:focus-visible .dock-model-app-icon {
  filter: drop-shadow(0 12px 13px rgba(0, 18, 34, 0.27)) !important;
}

body.mac-fullscreen .mac-live-titlebar,
body.mac-fullscreen .mac-window-bar,
body.mac-fullscreen .mac-system-window:hover .mac-live-titlebar,
body.mac-fullscreen .mac-window:hover .mac-window-bar,
body.mac-fullscreen .mac-system-window:focus-within .mac-live-titlebar,
body.mac-fullscreen .mac-window:focus-within .mac-window-bar {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
  pointer-events: auto !important;
}

body.mac-fullscreen .mac-system-window,
body.mac-fullscreen .mac-window {
  padding-top: 0 !important;
}

body.mac-fullscreen .mac-live-titlebar,
body.mac-fullscreen .mac-window-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
}

.mac-system-window .provider-detail-panel > .glass-content,
.mac-system-window .report-panel > .glass-content {
  gap: 8px !important;
  padding: 12px !important;
}

.mac-system-window .provider-detail-head,
.mac-system-window .report-panel .provider-detail-head {
  grid-template-columns: 42px minmax(0, 1fr) 72px !important;
  gap: 9px !important;
}

.mac-system-window .provider-detail-head .provider-logo {
  border-radius: 13px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.50),
    0 8px 16px rgba(0, 30, 56, 0.13) !important;
}

.mac-system-window .provider-detail-head h1,
.mac-system-window .provider-detail-head h2 {
  font-size: clamp(19px, 3.8vw, 23px) !important;
}

.mac-system-window .provider-detail-head p {
  margin: 3px 0 5px !important;
  font-size: 11.5px !important;
}

.mac-system-window .score-dial {
  width: 72px !important;
  height: 72px !important;
  border-radius: 18px !important;
}

.mac-system-window .score-dial strong {
  font-size: 25px !important;
}

.mac-system-window .hero-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.mac-system-window .glass-metric .glass-content {
  padding: 7px 8px !important;
}

.mac-system-window .metric-value {
  font-size: 16px !important;
}

.mac-system-window .detail-grid > .glass-panel,
.mac-system-window .table-panel,
.mac-system-window .report-panel,
.mac-system-window .comparison-panel {
  border-radius: 17px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(242,250,252,0.32)),
    rgba(255,255,255,0.20) !important;
  border-color: rgba(255,255,255,0.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.64),
    0 8px 18px rgba(0, 22, 42, 0.055) !important;
}

.mac-system-window .page-hero.compact:not(.utility-hero) {
  margin: 0 0 12px !important;
  padding: 0 !important;
  max-width: none !important;
}

.mac-system-window .page-hero.compact:not(.utility-hero) h1 {
  margin: 8px 0 7px !important;
  font-size: clamp(28px, 5vw, 36px) !important;
  line-height: 1.02 !important;
}

.mac-system-window .page-hero.compact:not(.utility-hero) p {
  max-width: 78ch !important;
  margin: 0 0 10px !important;
  color: rgba(20, 32, 46, 0.66) !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

.mac-system-window .hero-actions {
  gap: 8px !important;
}

.mac-system-window .hero-actions .glass-button {
  min-height: 38px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(238,249,251,0.36)),
    rgba(255,255,255,0.22) !important;
  border-color: rgba(255,255,255,0.58) !important;
}

.mac-system-window .hero-actions .glass-button .glass-content {
  color: rgba(7, 20, 32, 0.78) !important;
  font-size: 12px !important;
  font-weight: 720 !important;
  padding: 9px 14px !important;
}

.mac-system-window .glass-table-wrap {
  border-radius: 14px !important;
  border: 0.5px solid rgba(255,255,255,0.48) !important;
  background: rgba(255,255,255,0.20) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45) !important;
}

.mac-system-window .glass-table {
  min-width: 0 !important;
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

.mac-system-window .glass-table th {
  padding: 8px 10px !important;
  color: rgba(8, 21, 34, 0.50) !important;
  font-size: 10.5px !important;
  font-weight: 740 !important;
  letter-spacing: 0 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.70), rgba(238,249,251,0.44)) !important;
  border-bottom: 0.5px solid rgba(10, 30, 48, 0.08) !important;
}

.mac-system-window .glass-table td {
  padding: 9px 10px !important;
  color: rgba(10, 23, 35, 0.78) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  border-bottom: 0.5px solid rgba(10, 30, 48, 0.055) !important;
  background: rgba(255,255,255,0.04) !important;
  font-variant-numeric: tabular-nums;
}

.mac-system-window .glass-table tr:last-child td {
  border-bottom: 0 !important;
}

.mac-system-window .glass-table tr:hover td {
  background: rgba(98, 192, 228, 0.13) !important;
}

.mac-system-window .comparison-panel .glass-table {
  min-width: 560px !important;
}

.mac-system-window .comparison-panel .glass-table-wrap {
  max-height: min(470px, calc(100dvh - 235px)) !important;
}

.mac-system-window .risk-item {
  border-radius: 13px !important;
  border: 0.5px solid rgba(255,255,255,0.44) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(240,250,252,0.18)),
    rgba(255,255,255,0.10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.46) !important;
}

.mac-system-window .glass-disclaimer {
  color: rgba(8, 22, 34, 0.62) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(228,242,247,0.22)),
    rgba(255,255,255,0.16) !important;
  border-color: rgba(255,255,255,0.46) !important;
}

@media (max-width: 760px) {
  .mac-system-window .provider-detail-head,
  .mac-system-window .report-panel .provider-detail-head {
    grid-template-columns: 40px minmax(0, 1fr) 68px !important;
  }

  .mac-system-window .score-dial {
    width: 68px !important;
    height: 68px !important;
  }

  .mac-system-window .hero-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .mac-system-window .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Detail content readability for the lighter 20260706-39 glass panels. */
.mac-system-window .detail-grid h2,
.mac-system-window .table-panel h2,
.mac-system-window .report-panel h2 {
  color: rgba(8, 20, 32, 0.88) !important;
  font-size: 16px !important;
  line-height: 1.12 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.38) !important;
}

.mac-system-window .score-bar-meta {
  color: rgba(8, 21, 34, 0.72) !important;
  font-size: 12px !important;
}

.mac-system-window .score-bar-meta strong {
  color: rgba(7, 18, 30, 0.88) !important;
  font-size: 12px !important;
  font-variant-numeric: tabular-nums;
}

.mac-system-window .score-bar-meta small {
  color: rgba(8, 21, 34, 0.48) !important;
}

.mac-system-window .score-bar-track {
  height: 8px !important;
  margin-top: 6px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(224,239,244,0.24)),
    rgba(255,255,255,0.18) !important;
  box-shadow:
    inset 0 1px 1px rgba(0, 32, 52, 0.08),
    inset 0 -1px 0 rgba(255,255,255,0.48) !important;
}

.mac-system-window .info-list {
  color: rgba(8, 21, 34, 0.66) !important;
  gap: 9px 12px !important;
  font-size: 12px !important;
}

.mac-system-window .info-list dt {
  color: rgba(8, 21, 34, 0.54) !important;
}

.mac-system-window .info-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mac-system-window .mini-chart {
  height: 92px !important;
  margin: 7px 0 11px !important;
  padding: 10px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.32), rgba(232,247,250,0.16)),
    rgba(255,255,255,0.12) !important;
  border: 0.5px solid rgba(255,255,255,0.38) !important;
}

.mac-system-window .risk-item strong {
  color: rgba(8, 21, 34, 0.84) !important;
}

.mac-system-window .risk-item p {
  color: rgba(8, 21, 34, 0.62) !important;
  font-size: 12.5px !important;
  line-height: 1.42 !important;
}

.mac-system-window .comparison-panel .glass-table {
  min-width: min(560px, 100%) !important;
}

/* ============================== Virtual Mac Refinement Pass 20260706-40 ==============================
   New white-surf wallpaper asset, quieter Dock glass, hybrid fullscreen
   controls, and non-plastic monitoring bars. */
body.mac-desktop {
  background: #3ca7ba !important;
}

body.mac-desktop::after {
  background-image: url("/static/generated/mac-white-surf-wallpaper-loop.png") !important;
  opacity: 1 !important;
  animation-duration: 238s !important;
}

body.mac-desktop::before {
  background:
    radial-gradient(circle at 50% -18%, rgba(255,255,255,0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(0, 42, 60, 0.10)),
    linear-gradient(90deg, rgba(0, 28, 42, 0.08), transparent 32%, transparent 68%, rgba(0, 28, 42, 0.08)) !important;
}

.mac-dock,
.global-mac-dock,
.compact-dock {
  padding: 11px 18px 10px !important;
  gap: 12px !important;
  border-radius: 29px !important;
  border: 0.5px solid rgba(255,255,255,0.46) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(248,253,255,0.18) 42%, rgba(221,243,248,0.13)),
    rgba(236,249,252,0.17) !important;
  box-shadow:
    0 16px 38px rgba(0, 30, 48, 0.20),
    0 1px 0 rgba(255,255,255,0.24),
    inset 0 1px 0 rgba(255,255,255,0.86),
    inset 0 -1px 0 rgba(8, 54, 72, 0.06),
    inset 1px 0 0 rgba(255,255,255,0.26),
    inset -1px 0 0 rgba(255,255,255,0.16) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.16) brightness(1.04) !important;
  backdrop-filter: blur(12px) saturate(1.16) brightness(1.04) !important;
}

.mac-dock::after,
.global-mac-dock::after,
.compact-dock::after {
  background:
    linear-gradient(140deg, rgba(255,255,255,0.55), rgba(255,255,255,0.09) 30%, rgba(255,255,255,0.03) 68%, rgba(255,255,255,0.28)) !important;
  opacity: 0.82 !important;
}

.dock-icon,
.global-mac-dock .dock-icon,
.compact-dock .dock-icon {
  width: 57px !important;
  height: 57px !important;
  border: 0 !important;
  outline: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  filter:
    drop-shadow(0 8px 9px rgba(0, 20, 34, 0.22))
    drop-shadow(0 1px 0 rgba(255,255,255,0.18)) !important;
}

.dock-model-app-icon {
  width: 59px !important;
  height: 59px !important;
}

.dock-label {
  color: rgba(255,255,255,0.98) !important;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.34),
    0 5px 14px rgba(0, 30, 44, 0.20) !important;
}

.mac-system-window,
.mac-window {
  border: 0.5px solid rgba(255,255,255,0.56) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.49), rgba(236,249,252,0.18)),
    linear-gradient(128deg, rgba(255,255,255,0.24), rgba(255,255,255,0.05) 42%, rgba(255,255,255,0.16)),
    rgba(220, 244, 249, 0.15) !important;
  box-shadow:
    0 34px 88px rgba(0, 24, 42, 0.28),
    0 8px 22px rgba(255,255,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.82),
    inset 1px 0 0 rgba(255,255,255,0.30),
    inset -1px -1px 0 rgba(255,255,255,0.19) !important;
}

.mac-live-titlebar,
.mac-window-bar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(239,250,252,0.18)),
    rgba(255,255,255,0.08) !important;
  border-bottom: 0.5px solid rgba(255,255,255,0.30) !important;
}

body.mac-fullscreen .mac-live-titlebar,
body.mac-fullscreen .mac-window-bar {
  background: rgba(255,255,255,0.015) !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(0px) !important;
  backdrop-filter: blur(0px) !important;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    backdrop-filter 180ms ease !important;
}

body.mac-fullscreen .mac-live-titlebar:hover,
body.mac-fullscreen .mac-window-bar:hover,
body.mac-fullscreen .mac-live-titlebar:focus-within,
body.mac-fullscreen .mac-window-bar:focus-within {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.54), rgba(239,250,252,0.20)),
    rgba(255,255,255,0.12) !important;
  border-bottom-color: rgba(255,255,255,0.30) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.58),
    0 10px 28px rgba(0, 24, 42, 0.07) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.16) !important;
  backdrop-filter: blur(14px) saturate(1.16) !important;
}

body.mac-fullscreen .mac-titlebar-label {
  opacity: 0 !important;
  transform: translateY(-2px);
  transition: opacity 160ms ease, transform 160ms ease !important;
}

body.mac-fullscreen .mac-live-titlebar:hover .mac-titlebar-label,
body.mac-fullscreen .mac-window-bar:hover .mac-titlebar-label,
body.mac-fullscreen .mac-live-titlebar:focus-within .mac-titlebar-label,
body.mac-fullscreen .mac-window-bar:focus-within .mac-titlebar-label {
  opacity: 1 !important;
  transform: translateY(0);
}

body.mac-fullscreen .traffic-lights {
  opacity: 1 !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
}

.uptime-bars,
.mac-ranking .uptime-bars {
  height: 24px !important;
  align-items: end !important;
  gap: 2.5px !important;
  padding: 5px 6px !important;
  border-radius: 7px !important;
  border: 0.5px solid rgba(8, 28, 42, 0.06) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.38), rgba(233,246,249,0.20)),
    rgba(255,255,255,0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.54),
    inset 0 -1px 0 rgba(0, 28, 42, 0.035) !important;
}

.uptime-bars i,
.mac-ranking .uptime-bars i {
  width: 3px !important;
  border-radius: 3px !important;
  opacity: 0.96 !important;
  background-image: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 0 0 0.5px rgba(0,0,0,0.035) !important;
}

.uptime-bars i.ok,
.mac-ranking .uptime-bars i.ok {
  height: 15px !important;
  background: #34c759 !important;
}

.uptime-bars i.warn,
.mac-ranking .uptime-bars i.warn {
  height: 11px !important;
  background: #f5c84b !important;
}

.uptime-bars i.bad,
.mac-ranking .uptime-bars i.bad {
  height: 8px !important;
  background: #e4554f !important;
}

.mac-app-entering .mac-system-window,
.mac-app-entering .mac-window {
  animation-duration: 540ms !important;
}

.mac-app-switching-out .mac-system-window,
.mac-app-switching-out .mac-window,
.mac-app-switching .mac-system-window,
.mac-app-switching .mac-window {
  animation-duration: 500ms !important;
}

.mac-app-minimizing .mac-system-window,
.mac-app-minimizing .mac-window {
  animation-duration: 420ms !important;
}

/* ============================== Liquid Fidelity Pass 20260706-41 ==============================
   Restore the demo-like refractive edge only on shell surfaces, tighten
   active app affordance, and make ranking rows read like a native list. */
.mac-dock::before,
.global-mac-dock::before,
.compact-dock::before,
.mac-system-window::before,
.mac-window::before {
  filter: url(#glass-distortion) !important;
  opacity: 0.12 !important;
  mix-blend-mode: screen !important;
}

.mac-dock::after,
.global-mac-dock::after,
.compact-dock::after,
.mac-system-window::after,
.mac-window::after {
  inset: 0.5px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.64), rgba(255,255,255,0.08) 18%, rgba(255,255,255,0.025) 56%, rgba(255,255,255,0.25)),
    radial-gradient(circle at 50% -12%, rgba(255,255,255,0.28), transparent 46%) !important;
  opacity: 0.70 !important;
}

.mac-dock,
.global-mac-dock,
.compact-dock {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), rgba(246,252,253,0.16) 48%, rgba(214,240,247,0.11)),
    rgba(232,248,252,0.13) !important;
  box-shadow:
    0 14px 34px rgba(0, 26, 44, 0.18),
    0 1px 0 rgba(255,255,255,0.24),
    inset 0 1px 0 rgba(255,255,255,0.82),
    inset 0 -1px 0 rgba(0, 52, 68, 0.07),
    inset 1px 0 0 rgba(255,255,255,0.30),
    inset -1px 0 0 rgba(255,255,255,0.15) !important;
}

.dock-app.active::after {
  width: 4px !important;
  height: 4px !important;
  margin-top: 0 !important;
  background: rgba(255,255,255,0.96) !important;
  border: 0.5px solid rgba(0, 32, 48, 0.18) !important;
  box-shadow:
    0 1px 3px rgba(0, 20, 34, 0.24),
    0 0 0 0.5px rgba(255,255,255,0.45) !important;
}

.dock-app {
  transition:
    transform 240ms cubic-bezier(.175,.885,.32,1.85),
    opacity 180ms ease,
    filter 180ms ease !important;
}

.dock-app:hover,
.dock-app:focus-visible {
  --dock-scale: 1.105;
  --dock-lift: -7px;
}

.dock-app:active {
  --dock-scale: 0.965;
  --dock-lift: -1px;
}

.mac-system-window,
.mac-window {
  box-shadow:
    0 30px 82px rgba(0, 24, 42, 0.26),
    0 8px 24px rgba(255,255,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.82),
    inset 1px 0 0 rgba(255,255,255,0.32),
    inset -1px -1px 0 rgba(255,255,255,0.20) !important;
}

.mac-ranking .mini-ranking-row {
  min-height: 48px !important;
  border-radius: 12px !important;
  border: 0.5px solid rgba(255,255,255,0.38) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.40), rgba(239,249,251,0.18)),
    rgba(255,255,255,0.12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.54),
    0 1px 0 rgba(255,255,255,0.20) !important;
}

.mac-ranking .mini-ranking-row + .mini-ranking-row {
  margin-top: 6px !important;
}

.mac-ranking .mini-ranking-row:hover,
.mac-ranking .mini-ranking-row:focus-visible {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.52), rgba(235,249,252,0.24)),
    rgba(255,255,255,0.16) !important;
  border-color: rgba(255,255,255,0.50) !important;
  transform: translateY(-1px) scale(1.002) !important;
}

.mac-ranking .mini-site-icon {
  border-radius: 10px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.48),
    0 5px 10px rgba(0, 35, 66, 0.13) !important;
}

.mac-ranking .mini-score {
  border-radius: 9px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.42),
    0 3px 8px rgba(0, 20, 34, 0.055) !important;
}

.mac-ranking .mini-score.good {
  background: rgba(52, 199, 89, 0.78) !important;
}

.mac-ranking .mini-score.watch {
  background: rgba(245, 180, 54, 0.78) !important;
}

.mac-ranking .mini-score.risk {
  background: rgba(228, 85, 79, 0.78) !important;
}

.mac-app-entering .mac-system-window,
.mac-app-entering .mac-window {
  animation: appAppear 620ms cubic-bezier(.175,.885,.32,1.16) both !important;
}

.mac-app-switching-out .mac-system-window,
.mac-app-switching-out .mac-window,
.mac-app-switching .mac-system-window,
.mac-app-switching .mac-window {
  animation: appSwitchOut 500ms cubic-bezier(.34,.72,.18,1) both !important;
}

.mac-app-minimizing .mac-system-window,
.mac-app-minimizing .mac-window {
  transform-origin: center calc(100% + 84px);
  animation: appMinimizeToDock 470ms cubic-bezier(.36,.72,.2,1) both !important;
}

@keyframes appAppear {
  from {
    opacity: 0;
    transform: translate3d(0, 58px, 0) scale(.84);
  }
  62% {
    opacity: 1;
    transform: translate3d(0, -3px, 0) scale(1.008);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes appSwitchOut {
  to {
    opacity: 0;
    transform: translate3d(0, 58px, 0) scale(.84);
  }
}

@keyframes appMinimizeToDock {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 112px, 0) scale(.54);
  }
}

/* ============================== Native Content Polish 20260706-42 ==============================
   Remove plastic green actions and candy progress fills from app content;
   keep controls quiet, readable, and system-like inside the glass window. */
.mac-system-window .form-card,
.mac-system-window .form-panel,
.detector-app .form-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.50), rgba(239,249,252,0.24)),
    rgba(255,255,255,0.14) !important;
  border: 0.5px solid rgba(255,255,255,0.52) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.68),
    inset 0 -1px 0 rgba(0, 36, 52, 0.035),
    0 8px 18px rgba(0, 24, 42, 0.055) !important;
}

.detector-app input:not([type="checkbox"]):not([type="radio"]),
.detector-app select,
.detector-app textarea,
.mac-system-window input:not([type="checkbox"]):not([type="radio"]),
.mac-system-window select,
.mac-system-window textarea,
.glass-form input:not([type="checkbox"]):not([type="radio"]),
.glass-form select,
.glass-form textarea {
  min-height: 36px !important;
  border-radius: 11px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(247,251,252,0.66)),
    rgba(255,255,255,0.40) !important;
  border: 0.5px solid rgba(255,255,255,0.66) !important;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.86),
    inset 0 -1px 0 rgba(0, 35, 52, 0.035),
    0 1px 0 rgba(255,255,255,0.30) !important;
}

.detector-app .btn-primary,
.mac-system-window .glass-submit,
.mac-system-window button[type="submit"],
.mac-system-window .mini-action {
  color: rgba(7, 21, 34, 0.86) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(236,249,252,0.42)),
    rgba(255,255,255,0.24) !important;
  border: 0.5px solid rgba(255,255,255,0.70) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.86),
    inset 0 -1px 0 rgba(0, 48, 72, 0.045),
    0 7px 16px rgba(0, 38, 62, 0.07) !important;
}

.detector-app .btn-primary:hover,
.mac-system-window .glass-submit:hover,
.mac-system-window button[type="submit"]:hover,
.mac-system-window .mini-action:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.90), rgba(232,249,252,0.52)),
    rgba(255,255,255,0.30) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.90),
    0 9px 18px rgba(0, 38, 62, 0.09) !important;
}

.detector-app .btn-primary:active,
.mac-system-window .glass-submit:active,
.mac-system-window button[type="submit"]:active,
.mac-system-window .mini-action:active {
  transform: translateY(1px) scale(0.996) !important;
  box-shadow:
    inset 0 1px 2px rgba(0, 40, 60, 0.08),
    0 3px 9px rgba(0, 38, 62, 0.05) !important;
}

.mac-system-window .score-bar-track {
  height: 7px !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(224,240,245,0.30)),
    rgba(255,255,255,0.20) !important;
  box-shadow:
    inset 0 1px 1px rgba(0, 36, 54, 0.08),
    inset 0 -1px 0 rgba(255,255,255,0.62) !important;
}

.mac-system-window .score-bar-track span {
  background:
    linear-gradient(90deg, #66d9df 0%, #78dfbd 64%, #d7dc73 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 0 0 0.5px rgba(0,0,0,0.025) !important;
}

.mac-system-window .glass-disclaimer {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(8, 22, 34, 0.62) !important;
}

.mac-system-window .glass-disclaimer strong {
  color: rgba(8, 22, 34, 0.76) !important;
  font-size: 12px !important;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255,255,255,0.34);
}

.mac-system-window .glass-disclaimer span {
  color: rgba(8, 22, 34, 0.56) !important;
}

.mac-system-window .glass-table th {
  color: rgba(8, 21, 34, 0.46) !important;
}

.mac-system-window .glass-table td {
  color: rgba(8, 21, 34, 0.72) !important;
}

/* ============================== Benchmark Mac Polish 20260706-44 ==============================
   Stronger white-surf wallpaper, finer liquid-glass shell edges, crisp
   borderless Dock icons, and flatter professional uptime bars. */
body.mac-desktop {
  background: #50b6c8 !important;
}

body.mac-desktop::after {
  background-image: url("/static/generated/mac-white-surf-wallpaper-loop.png") !important;
  background-size: cover !important;
  background-repeat: repeat-y !important;
  background-position: center 0 !important;
  opacity: 1 !important;
  filter: saturate(1.08) contrast(1.05) brightness(1.04) !important;
  animation: macWallpaperFlow44 210s linear infinite !important;
  will-change: background-position;
}

body.mac-desktop::before {
  background:
    radial-gradient(circle at 50% -18%, rgba(255,255,255,0.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(0, 31, 46, 0.07)),
    linear-gradient(90deg, rgba(0, 21, 34, 0.06), transparent 30%, transparent 70%, rgba(0, 21, 34, 0.06)) !important;
}

@keyframes macWallpaperFlow44 {
  from { background-position: center 0; }
  to { background-position: center 1821px; }
}

.mac-dock,
.global-mac-dock,
.compact-dock {
  padding: 9px 16px 8px !important;
  gap: 12px !important;
  border-radius: 28px !important;
  border: 0.5px solid rgba(255,255,255,0.50) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.38), rgba(246,252,255,0.15) 46%, rgba(209,235,244,0.12)),
    rgba(226, 244, 250, 0.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.24) brightness(1.04) !important;
  backdrop-filter: blur(18px) saturate(1.24) brightness(1.04) !important;
  box-shadow:
    0 18px 48px rgba(0, 28, 45, 0.18),
    0 1px 0 rgba(255,255,255,0.22),
    inset 0 1px 0 rgba(255,255,255,0.92),
    inset 0 -1px 0 rgba(0, 45, 66, 0.045),
    inset 1px 0 0 rgba(255,255,255,0.22),
    inset -1px 0 0 rgba(255,255,255,0.12) !important;
}

.mac-dock::before,
.global-mac-dock::before,
.compact-dock::before,
.mac-system-window::before,
.mac-window::before {
  opacity: 0.09 !important;
  filter: url(#glass-distortion) !important;
}

.mac-dock::after,
.global-mac-dock::after,
.compact-dock::after {
  inset: 0.5px !important;
  border-radius: inherit !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.62), rgba(255,255,255,0.08) 28%, rgba(255,255,255,0.018) 68%, rgba(255,255,255,0.30)),
    radial-gradient(circle at 50% -18%, rgba(255,255,255,0.24), transparent 48%) !important;
  opacity: 0.66 !important;
}

.dock-app,
.global-mac-dock .dock-app,
.compact-dock .dock-app {
  width: 60px !important;
  min-width: 60px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translate3d(0, var(--dock-lift, 0), 0) scale(var(--dock-scale, 1)) !important;
  transition:
    transform 280ms cubic-bezier(.16,1.18,.28,1.04),
    opacity 180ms ease,
    filter 180ms ease !important;
}

.dock-app:hover,
.dock-app:focus-visible {
  --dock-scale: 1.13;
  --dock-lift: -8px;
  text-decoration: none !important;
}

.dock-app:active {
  --dock-scale: 0.96;
  --dock-lift: -1px;
}

.global-mac-dock .dock-icon,
.compact-dock .dock-icon,
.dock-icon {
  width: 56px !important;
  height: 56px !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  image-rendering: auto !important;
  filter:
    drop-shadow(0 9px 10px rgba(0, 18, 30, 0.22))
    drop-shadow(0 1px 0 rgba(255,255,255,0.22)) !important;
}

.dock-model-app-icon {
  width: 58px !important;
  height: 58px !important;
}

.dock-app.active::after {
  width: 4px !important;
  height: 4px !important;
  margin-top: 1px !important;
  background: rgba(255,255,255,0.98) !important;
  border: 0 !important;
  box-shadow:
    0 1px 3px rgba(0, 20, 34, 0.22),
    0 0 0 0.5px rgba(0, 20, 34, 0.16) !important;
}

.mac-system-window,
.mac-window {
  border-radius: 28px !important;
  border: 0.5px solid rgba(255,255,255,0.58) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.48), rgba(235,248,252,0.19)),
    linear-gradient(130deg, rgba(255,255,255,0.23), rgba(255,255,255,0.045) 45%, rgba(255,255,255,0.15)),
    rgba(219, 242, 249, 0.14) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.22) brightness(1.02) !important;
  backdrop-filter: blur(24px) saturate(1.22) brightness(1.02) !important;
  box-shadow:
    0 32px 84px rgba(0, 22, 38, 0.24),
    0 10px 28px rgba(255,255,255,0.09),
    inset 0 1px 0 rgba(255,255,255,0.86),
    inset 1px 0 0 rgba(255,255,255,0.30),
    inset -1px -1px 0 rgba(255,255,255,0.19) !important;
}

.mac-system-window::after,
.mac-window::after {
  opacity: 0.60 !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.62), rgba(255,255,255,0.07) 20%, rgba(255,255,255,0.02) 58%, rgba(255,255,255,0.24)),
    radial-gradient(circle at 50% -14%, rgba(255,255,255,0.26), transparent 48%) !important;
}

.mac-live-titlebar,
.mac-window-bar {
  min-height: 38px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.40), rgba(239,250,252,0.16)),
    rgba(255,255,255,0.075) !important;
  border-bottom: 0.5px solid rgba(255,255,255,0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.46),
    0 1px 0 rgba(0, 32, 46, 0.025) !important;
}

.traffic-lights a,
.traffic-lights button,
.traffic-close,
.traffic-minimize,
.traffic-fullscreen {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.48),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    0 1px 2px rgba(0,0,0,0.15) !important;
}

.mac-ranking .mini-ranking-row {
  min-height: 46px !important;
  border-radius: 10px !important;
  border: 0 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.36), rgba(237,248,251,0.15)),
    rgba(255,255,255,0.10) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.46),
    inset 0 -1px 0 rgba(0, 28, 42, 0.028),
    0 1px 0 rgba(255,255,255,0.14) !important;
}

.mac-ranking .mini-ranking-row:hover,
.mac-ranking .mini-ranking-row:focus-visible {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.46), rgba(235,249,252,0.21)),
    rgba(255,255,255,0.13) !important;
  transform: translate3d(0, -1px, 0) scale(1.0015) !important;
}

.uptime-bars,
.mac-ranking .uptime-bars {
  height: 22px !important;
  gap: 2px !important;
  padding: 4px 5px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(229,244,248,0.12)),
    rgba(255,255,255,0.095) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.40),
    inset 0 -1px 0 rgba(0, 26, 38, 0.030) !important;
}

.uptime-bars i,
.mac-ranking .uptime-bars i {
  width: 2.5px !important;
  border-radius: 2px !important;
  opacity: 0.92 !important;
  box-shadow: none !important;
}

.uptime-bars i.ok,
.mac-ranking .uptime-bars i.ok {
  height: 14px !important;
  background: #2dbf59 !important;
}

.uptime-bars i.warn,
.mac-ranking .uptime-bars i.warn {
  height: 10px !important;
  background: #d9ad37 !important;
}

.uptime-bars i.bad,
.mac-ranking .uptime-bars i.bad {
  height: 7px !important;
  background: #d94c45 !important;
}

.mac-app-entering .mac-system-window,
.mac-app-entering .mac-window {
  animation: appAppear44 560ms cubic-bezier(.18,.92,.22,1.02) both !important;
}

.mac-app-entering-from-switch .mac-system-window,
.mac-app-entering-from-switch .mac-window {
  animation-delay: 70ms !important;
}

.mac-app-switching-out .mac-system-window,
.mac-app-switching-out .mac-window,
.mac-app-switching .mac-system-window,
.mac-app-switching .mac-window {
  animation: appSwitchOut44 430ms cubic-bezier(.32,.68,.22,1) both !important;
}

.mac-app-minimizing .mac-system-window,
.mac-app-minimizing .mac-window {
  transform-origin: center calc(100% + 96px) !important;
  animation: appMinimizeToDock44 430ms cubic-bezier(.30,.72,.20,1) both !important;
}

@keyframes appAppear44 {
  from {
    opacity: 0;
    transform: translate3d(0, 72px, 0) scale(.78);
    filter: blur(8px);
  }
  58% {
    opacity: 1;
    transform: translate3d(0, -3px, 0) scale(1.006);
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes appSwitchOut44 {
  to {
    opacity: 0;
    transform: translate3d(0, 64px, 0) scale(.80);
    filter: blur(6px);
  }
}

@keyframes appMinimizeToDock44 {
  to {
    opacity: 0;
    transform: translate3d(0, 124px, 0) scale(.48);
    filter: blur(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mac-desktop::after {
    animation-duration: 0.001ms !important;
  }
}

body.mac-fullscreen .mac-system .glass-container,
body.mac-fullscreen .glass-container {
  padding: 10px !important;
  place-items: stretch !important;
}

body.mac-fullscreen .mac-system-window,
body.mac-fullscreen .mac-window {
  width: calc(100vw - 20px) !important;
  max-width: none !important;
  height: calc(100dvh - 20px) !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 18px !important;
}

/* 20260706-45c: true final provider-library override, EOF anchored. */
.mac-system-window .provider-library.provider-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  width: min(100%, 980px) !important;
  margin: 0 auto !important;
}

.mac-system-window .provider-library.provider-grid .provider-card {
  border-radius: 12px !important;
  border: 0 !important;
}

.mac-system-window .provider-library.provider-grid .provider-card > .glass-content,
.mac-system-window .provider-library.provider-grid .provider-card .glass-content {
  display: grid !important;
  grid-template-columns: minmax(240px, 1.3fr) auto minmax(260px, 1fr) auto !important;
  grid-template-areas:
    "head badges metrics link"
    "head status metrics link" !important;
  align-items: center !important;
  column-gap: 16px !important;
  row-gap: 6px !important;
  padding: 12px 14px !important;
}

.mac-system-window .provider-library.provider-grid .provider-card-head {
  grid-area: head !important;
  grid-template-columns: 38px minmax(0, 1fr) auto !important;
}

.mac-system-window .provider-library.provider-grid .badge-row {
  grid-area: badges !important;
}

.mac-system-window .provider-library.provider-grid .provider-card-metrics {
  grid-area: metrics !important;
}

.mac-system-window .provider-library.provider-grid .provider-card-status {
  grid-area: status !important;
}

.mac-system-window .provider-library.provider-grid .glass-link {
  grid-area: link !important;
  justify-self: end !important;
}

@media (max-width: 920px) {
  .mac-system-window .provider-library.provider-grid .provider-card > .glass-content,
  .mac-system-window .provider-library.provider-grid .provider-card .glass-content {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "head"
      "badges"
      "metrics"
      "status"
      "link" !important;
  }

  .mac-system-window .provider-library.provider-grid .glass-link {
    justify-self: start !important;
  }
}
