:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #5f6368;
  --subtle: #80868b;
  --line: #dadce0;
  --soft-line: #e8eaed;
  --panel: #ffffff;
  --page: #f8fafc;
  --blue: #1a73e8;
  --blue-dark: #174ea6;
  --green: #188038;
  --yellow-bg: #fef7e0;
  --yellow-line: #fdd663;
  --yellow-ink: #7a4d00;
  --red: #d93025;
  --shadow: 0 1px 2px rgba(60, 64, 67, 0.12), 0 1px 3px rgba(60, 64, 67, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, #ffffff 0, #f8fafc 320px),
    var(--page);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--soft-line);
  backdrop-filter: saturate(160%) blur(8px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #c2d7ff;
  border-radius: 8px;
  background: #e8f0fe;
  color: var(--blue-dark);
  font-size: 12px;
  letter-spacing: 0;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.topnav a:hover,
.topnav a:focus,
.topnav a[aria-current="page"] {
  background: #e8f0fe;
  color: var(--blue-dark);
}

.identity {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  min-width: 160px;
}

.identity strong,
.identity span {
  display: block;
  overflow-wrap: anywhere;
}

.identity strong {
  color: var(--ink);
  font-size: 13px;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.policy-hero {
  align-items: flex-start;
}

.eyebrow {
  margin-bottom: 6px !important;
  color: var(--blue-dark) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  letter-spacing: 0;
  line-height: 1.2;
}

h1 {
  font-size: 32px;
  font-weight: 700;
}

h2 {
  font-size: 19px;
  font-weight: 700;
}

h3 {
  font-size: 16px;
}

.panel,
.policy-card,
.stat {
  background: var(--panel);
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
  margin-bottom: 20px;
}

.panel p:first-child {
  margin-top: 0;
}

.panel p:last-child {
  margin-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat {
  position: relative;
  min-height: 112px;
  padding: 18px;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--blue);
}

.stat:nth-child(2)::before {
  background: var(--red);
}

.stat:nth-child(3)::before {
  background: var(--green);
}

.stat span,
.meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 20px;
}

.meta-grid.compact {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.meta-grid div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfcfe;
}

.meta-grid strong {
  overflow-wrap: anywhere;
}

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

.wide,
fieldset {
  grid-column: 1 / -1;
}

label,
legend {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea,
button,
.button {
  font: inherit;
  border-radius: 6px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c7ccd1;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.16);
}

textarea {
  min-height: 94px;
  resize: vertical;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--blue-dark);
}

.button.secondary {
  background: #ffffff;
  border-color: #c6dafc;
  color: var(--blue-dark);
}

.button.secondary:hover {
  background: #e8f0fe;
}

.actions,
.image-actions,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.inline-form select,
.inline-form input {
  max-width: 260px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.warning,
.flash.warning {
  color: var(--yellow-ink);
  background: var(--yellow-bg);
  border: 1px solid var(--yellow-line);
  border-radius: 8px;
  padding: 12px 14px;
}

.notice-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.notice-stack p {
  margin: 0;
}

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

.flash {
  background: #e6f4ea;
  color: #0d652d;
  border: 1px solid #b7dfc2;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #fbfcfe;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8f0fe;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pill.ai-clear {
  background: #e6f4ea;
  color: var(--green);
}

.pill.ai-review {
  background: var(--yellow-bg);
  color: var(--yellow-ink);
}

.pill.ai-red_flag {
  background: #fce8e6;
  color: var(--red);
}

.pill.ai-unavailable,
.pill.ai-not-run {
  background: #f1f3f4;
  color: var(--muted);
}

.ai-review {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid #d2e3fc;
  border-radius: 8px;
  background: #f8fbff;
}

.ai-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ai-review-head h2 {
  margin: 0;
}

.red-flag-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.red-flag-list li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #ffffff;
}

.red-flag-list strong {
  font-size: 12px;
}

.red-flag-list em {
  color: var(--muted);
  font-style: normal;
}

.flag-high strong {
  color: var(--red);
}

.flag-medium strong {
  color: var(--yellow-ink);
}

.flag-low strong {
  color: var(--blue-dark);
}

.filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 10px;
}

.file-box {
  border: 1px dashed #aeb7c2;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}

.file-box input {
  background: #ffffff;
}

.preview {
  display: none;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.preview[src] {
  display: block;
}

.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-right: 16px;
}

.check input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.policy-ack {
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #c6dafc;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--ink);
}

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

.policy-card {
  padding: 22px;
}

.policy-card ul,
.source-list ul {
  margin: 0;
  padding-left: 20px;
}

.policy-card li,
.source-list li {
  margin: 8px 0;
}

.policy-table td:first-child {
  font-weight: 700;
}

.customer-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.customer-review figure {
  margin: 0;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfcfe;
  overflow: hidden;
}

.customer-review img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #ffffff;
}

.customer-review figcaption {
  padding: 10px 12px;
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.success-panel {
  border-color: #b7dfc2;
  background: #f5fbf7;
}

.link-share,
.pin-share {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.pin-share > div:first-child {
  min-width: 190px;
  padding: 16px;
  border: 1px solid #c6dafc;
  border-radius: 8px;
  background: #ffffff;
}

.pin-share span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.pin-share strong {
  display: block;
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.pin-form {
  display: grid;
  max-width: 360px;
  gap: 16px;
}

.pin-input {
  height: 64px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.alert-panel {
  border-color: #b7dfc2;
  background: #f8fffb;
}

.qr-code {
  width: 190px;
  height: 190px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.callout {
  border-color: #c6dafc;
  background: #f8fbff;
}

.callout strong {
  display: block;
  margin-bottom: 6px;
}

.source-list a {
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 22px 32px 36px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header,
  .brand-block,
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
    padding: 16px 20px;
  }

  .identity {
    text-align: left;
  }

  .page {
    padding: 22px 18px;
  }

  .stats,
  .meta-grid,
  .form-grid,
  .filters,
  .customer-review,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
  }

  h1 {
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  .topnav {
    width: 100%;
  }

  .topnav a {
    flex: 1 1 46%;
    justify-content: center;
  }

  .panel,
  .policy-card {
    padding: 18px;
  }
}
