:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --text: #172026;
  --muted: #69757d;
  --line: #dce3e7;
  --normal: #11834a;
  --watch: #b47700;
  --warning: #c44e00;
  --avoid: #b42318;
  --unknown: #5f6b74;
  --shadow: 0 12px 36px rgba(23, 32, 38, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header,
main {
  width: min(1040px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 48px 0 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: #33424b;
  font-size: 18px;
}

.mini-link,
.ad-slot a,
.service-link,
.widget-footer a {
  text-decoration: none;
}

.mini-link {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 700;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--panel);
}

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

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

.service-card,
.explanation,
.detail-panel,
.ad-slot {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.service-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.service-name {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.15;
}

.model-name {
  margin: 0;
  color: var(--muted);
}

.pill {
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ability {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ability-number {
  font-size: 56px;
  font-weight: 850;
  line-height: 1;
}

.ability-unit {
  color: var(--muted);
  font-weight: 700;
}

.message {
  margin: 0;
  font-weight: 700;
}

.service-link {
  justify-self: start;
  border-bottom: 1px solid currentColor;
  color: #1f4f7a;
  font-weight: 700;
}

.explanation,
.detail-panel,
.ad-slot {
  margin-top: 16px;
  padding: 18px;
}

.ad-slot {
  color: #33424b;
  font-size: 14px;
}

.severity-normal {
  --state: var(--normal);
}

.severity-watch {
  --state: var(--watch);
}

.severity-warning {
  --state: var(--warning);
}

.severity-avoid {
  --state: var(--avoid);
}

.severity-unknown {
  --state: var(--unknown);
}

.service-card {
  border-top: 5px solid var(--state, var(--unknown));
}

.pill,
.widget-state {
  background: var(--state, var(--unknown));
}

html.widget-root {
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.widget-page {
  width: 100vw;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  line-height: 1.2;
}

.widget-shell {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 7px 10px 6px;
  background: #fff;
  box-shadow: none;
}

.widget-header,
.widget-footer {
  display: flex;
  align-items: center;
  gap: 5px;
}

.widget-header {
  justify-content: space-between;
}

.widget-title {
  margin: 0;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-time {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
}

.icon-button {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  background: #fff;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.widget-list {
  margin: 5px 0 4px;
}

.widget-summary {
  margin: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-service {
  color: var(--state, var(--unknown));
}

.widget-service strong {
  color: var(--text);
  font-weight: 850;
}

.widget-divider {
  margin: 0 4px;
  color: var(--muted);
}

.widget-footer {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.1;
}

.widget-footer a {
  color: #1f4f7a;
  font-weight: 800;
}

.facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}

.facts dt {
  color: var(--muted);
  font-weight: 700;
}

.facts dd {
  margin: 0;
}

.evidence-list {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 760px) {
  .site-header {
    display: block;
    padding-top: 32px;
  }

  .mini-link {
    display: inline-block;
    margin-top: 18px;
  }

  .status-bar,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .status-bar {
    display: grid;
  }

  .service-grid {
    display: grid;
  }
}
