/* Stella ID Photo — single stylesheet for the app, legal and checkout-return pages. */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --ink: #14233c;
  --ink-2: #3a475a;
  --muted: #687284;
  --line: #e3e1da;
  --line-strong: #cfccc3;
  --accent: #0f7a62;
  --accent-ink: #0b5e4b;
  --accent-soft: #e4f2ec;
  --warn: #9a5b06;
  --warn-soft: #fdf4e3;
  --warn-line: #f0d7a6;
  --danger: #b42318;
  --focus: #2f6fde;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgb(20 35 60 / 6%);
  --shadow: 0 1px 2px rgb(20 35 60 / 5%), 0 8px 24px rgb(20 35 60 / 7%);
  --shadow-lg: 0 2px 4px rgb(20 35 60 / 6%), 0 24px 60px rgb(20 35 60 / 14%);

  --font-sans:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --page: 1180px;

  color-scheme: light;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
}
[hidden] {
  display: none !important;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.small {
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
button,
.btn {
  font: inherit;
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s,
    transform 0.05s;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover:not(:disabled) {
  background: #22365a;
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover:not(:disabled) {
  background: rgb(20 35 60 / 6%);
}
.btn-dashed {
  background: transparent;
  color: var(--ink-2);
  border: 1px dashed var(--line-strong);
}
.btn-dashed:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 0;
}
.btn-inline {
  display: inline;
  font-size: inherit;
  white-space: normal;
}
.btn-icon {
  min-height: 36px;
  width: 36px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  font-weight: 400;
}
.btn-icon:hover {
  background: rgb(20 35 60 / 6%);
  color: var(--ink);
}
.btn-sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 14px;
}
.btn-lg {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}
/* Legacy buttons without a .btn class (hidden download actions). */
#downloadActions button {
  min-height: 40px;
}

/* ---------- Form fields ---------- */
select,
input[type="email"],
.refund-panel input[type="text"],
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* Prevents iOS zoom on focus. */
}
select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%2314233c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}
select:hover,
input[type="email"]:hover,
.refund-panel input[type="text"]:hover,
textarea:hover {
  border-color: var(--ink-2);
}
.select-lg {
  min-height: 54px;
  font-weight: 600;
}
.field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
}
.hint {
  font-size: 13px;
  color: var(--muted);
}
.status-line:empty,
.hint:empty {
  display: none;
}
.status-line {
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- Boot & banners ---------- */
body.booting main,
body.booting .site-footer,
body.booting .site-header,
body.booting .test-banner {
  display: none;
}
#bootScreen {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}
body:not(.booting) #bootScreen {
  display: none;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.noscript {
  padding: 24px;
  text-align: center;
}
.test-banner {
  padding: 8px 16px;
  background: var(--ink);
  color: #dfe6f1;
  font-size: 13px;
  text-align: center;
}

/* ---------- Header & footer ---------- */
.site-header,
.site-footer,
main {
  max-width: var(--page);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
/* The privacy promise next to the name: a phone with a padlock, and a short label. */
.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
/* Solid green with white text, so it is the first thing seen after the name. */
.header-privacy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow:
    0 0 0 4px var(--accent-soft),
    0 6px 18px rgb(15 122 98 / 28%);
}
.header-lock {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
}
.header-lock .dl-phone,
.header-lock .dl-shackle,
.header-lock .dl-bar {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-lock .dl-body {
  fill: var(--accent);
}
.header-lock .dl-dot {
  fill: #fff;
}
.header-privacy-text {
  display: grid;
}
.header-privacy-text strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}
.header-privacy-text small {
  color: #fff;
  font-size: 12.5px;
  opacity: 0.9;
}
.brand-sm {
  font-size: 16px;
  gap: 8px;
}
.site-footer nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.site-footer nav a {
  color: var(--ink-2);
  text-decoration: none;
}
/* Phones: the name and the badge share one row; the badge drops its second line. */
@media (max-width: 400px) {
  .site-header .brand {
    font-size: 17px;
    gap: 8px;
  }
  .site-header .brand img {
    width: 24px;
    height: 24px;
  }
  .brand-group {
    gap: 10px;
  }
}
@media (max-width: 359px) {
  .brand-group {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}
.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 72px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.site-footer p {
  margin-top: 6px;
}

/* ---------- Landing ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
  padding: 40px 0 56px;
}
.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.lede {
  max-width: 48ch;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 18px;
}
.start-card {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.start-card .field-label + select {
  margin-bottom: 12px;
}
.step-dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
}
.hero-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
}
.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
/* The refund promise, set apart under the price. */
.refund-promise {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid #bfe0d3;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  line-height: 1.45;
}
.refund-promise svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.refund-promise strong,
.refund-promise a {
  color: var(--accent-ink);
}
.price-line strong {
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.badge {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4% 14%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(circle at 50% 40%, #e2ece7 0, #ecebe5 55%, transparent 75%);
}
.sample {
  margin: 0;
  padding: 18px 18px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.sample-frame {
  position: relative;
  padding: 0 30px 26px 0;
}
.sample-photo {
  position: relative;
  container-type: size;
  width: min(280px, 60vw);
  aspect-ratio: 33 / 48;
  overflow: hidden;
  background: #f3f3f1;
}
.sample-photo img {
  /* Crop the stock portrait like a real visa photo: head fills most of the frame. */
  position: absolute;
  left: calc(50cqw - 115.5cqh);
  top: -90cqh;
  width: 231cqh;
  max-width: none;
  height: auto;
}
.sample-guide {
  position: absolute;
  left: 50%;
  top: 4cqh;
  width: 42.6cqh;
  height: 64cqh;
  transform: translateX(-50%);
  border: 1.5px dashed rgb(15 122 98 / 70%);
  border-radius: 50%;
}
.dim {
  position: absolute;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.dim-x {
  left: 0;
  right: 30px;
  bottom: 0;
  text-align: center;
  border-top: 1px solid var(--line-strong);
  padding-top: 4px;
}
.dim-y {
  top: 0;
  bottom: 26px;
  right: 0;
  width: 22px;
  border-left: 1px solid var(--line-strong);
  writing-mode: vertical-rl;
  text-align: center;
  padding-left: 4px;
}
.sample figcaption {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.sample figcaption strong {
  color: var(--ink);
  font-size: 14px;
}
.illustration-caption {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Privacy (landing) ---------- */
.device-lock svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* A compact band: a small phone with a padlock beside the headline. */
.privacy-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 8px;
  padding: 28px 36px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  scroll-margin-top: 24px;
}
.privacy-copy {
  order: 2;
}
.privacy-feature .eyebrow {
  margin-bottom: 8px;
  color: #9fd6c2;
}
.privacy-feature h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.privacy-copy > p:not(.eyebrow) {
  max-width: 76ch;
  margin-top: 8px;
  color: #d5dbe4;
  font-size: 16px;
}
.privacy-visual {
  order: 1;
}
.device {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 76px;
  padding: 14px 8px 16px;
  border: 2px solid #4a5b75;
  border-radius: 16px;
  background: #1c2e4a;
}
.device-photo {
  width: 44px;
  height: 56px;
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 38%, #e9d6c4 0 10px, transparent 11px),
    radial-gradient(ellipse at 50% 108%, #2f4a6e 0 24px, transparent 25px), #fff;
}
.device-lock {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.device-lock svg {
  width: 15px;
  height: 15px;
}

/* ---------- Workspace ---------- */
.workspace {
  padding: 8px 0 24px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.stepper li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stepper li:not(:last-child)::after {
  content: "";
  width: 32px;
  border-top: 1px solid var(--line-strong);
  margin-left: 4px;
}
.stepper span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}
.stepper [data-state="current"] {
  color: var(--ink);
  font-weight: 600;
}
.stepper [data-state="current"] span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.stepper [data-state="done"] span {
  background: var(--accent-soft);
  border-color: transparent;
  color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230b5e4b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.studio {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.studio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.studio-head h1 {
  font-family: var(--font-display);
  font-size: 28px;
}
.studio-head h1:focus {
  outline: none;
}
.studio-actions {
  display: flex;
  gap: 4px;
}

.people-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.people-list {
  display: contents;
}
.person-tab {
  display: grid;
  font-size: 14px;
  font-weight: 600;
  gap: 0;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  line-height: 1.25;
}
.person-tab:hover {
  border-color: var(--ink);
}
.person-tab[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.person-doc {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.75;
}
.person-rejected {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
}
.person-tab[aria-pressed="true"] .person-rejected {
  color: #ffb4ab;
}
.people-toolbar .btn-dashed {
  border-radius: var(--radius-sm);
  min-height: 44px;
}

.upload {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 48px 24px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
}
.upload-icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 50%;
  background: var(--accent-soft);
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.upload h2 {
  font-size: 20px;
}
.upload p {
  max-width: 44ch;
  color: var(--muted);
}
.upload-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.upload-actions label {
  position: relative;
}
.upload-help {
  max-width: 460px;
  margin-top: 8px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
}
.upload-help summary {
  text-align: center;
}
.upload-help[open] > * + * {
  margin-top: 10px;
}

.ai-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
}
.ai-panel p {
  flex: 1;
}
.white-opt-in {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--warn-line);
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  font-size: 14px;
}
.white-opt-in p {
  margin: 0 0 8px;
  color: var(--warn);
}
.ai-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.ai-panel .btn {
  color: var(--accent-ink);
}

/* Results: show preparation instead of unfinished previews; reveal when idle. */
.photo-results {
  display: grid;
  gap: 16px;
}
.preparation-animation {
  display: none;
  justify-items: center;
  gap: 8px;
  padding: 48px 0;
  text-align: center;
}
.photo-results[aria-busy="true"] > :not(.preparation-animation) {
  display: none !important;
}
.photo-results[aria-busy="true"] > .preparation-animation {
  display: grid;
}
.preparation-frame {
  position: relative;
  width: 120px;
  height: 150px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.preparation-person {
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 84px;
  height: 70px;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
  background: #d9dde3;
}
.preparation-person::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 62px;
  width: 46px;
  height: 56px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #d9dde3;
}
.preparation-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: scan 1.6s ease-in-out infinite alternate;
}
@keyframes scan {
  from {
    top: 6%;
  }
  to {
    top: 92%;
  }
}
.preparation-animation p {
  font-weight: 600;
}
.preparation-animation small {
  color: var(--muted);
}
.photo-results[aria-busy="false"] .result-previews {
  animation: reveal 0.35s ease-out;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.result-previews {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
  padding: 28px 16px 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #eef0f2, #e7e9ec);
}
.result-previews figure {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0;
}
.result-previews canvas {
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 280px;
  background: #fff;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 10%),
    0 10px 24px rgb(20 35 60 / 14%);
}
.result-previews figure + figure canvas {
  max-width: 180px;
  max-height: 230px;
}
.result-previews figcaption {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.diagnosis {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.diagnosis-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.diagnosis h2 {
  font-size: 16px;
}
#diagnosisSummary {
  font-size: 14px;
  color: var(--ink-2);
}
.diagnosis-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--line) center / 18px no-repeat;
}
.diagnosis[data-state="ok"] {
  background: var(--accent-soft);
  border-color: #c4e2d6;
}
.diagnosis[data-state="ok"] .diagnosis-icon {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.diagnosis[data-state="warn"] {
  background: var(--warn-soft);
  border-color: var(--warn-line);
}
.diagnosis[data-state="warn"] .diagnosis-icon {
  background-color: #e5a23a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v5' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12' r='1.2' fill='white'/%3E%3C/svg%3E");
}
.diagnosis[data-state="reject"] {
  background: #fdf0ef;
  border-color: #f2c4bf;
}
.diagnosis[data-state="reject"] .diagnosis-icon {
  background-color: var(--danger);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
#diagnosisWarnings li.rejection {
  color: var(--danger);
  font-weight: 600;
}
#diagnosisWarnings {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 0 0 44px;
  font-size: 14px;
  color: var(--ink-2);
}
#diagnosisWarnings:empty,
#backgroundCheck:empty {
  display: none;
}
#backgroundCheck {
  padding-left: 44px;
  color: var(--ink-2);
}
.diagnosis > .small.muted {
  padding-left: 44px;
}

.panel {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}
details > summary::-webkit-details-marker {
  display: none;
}
details > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  margin-right: 4px;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s;
}
details[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.upload-help > summary::after {
  margin-left: 0;
}
.upload-help > summary {
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
}
.panel[open] > summary {
  margin-bottom: 14px;
}
.panel ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-2);
}
#documentSources {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.tabs {
  display: inline-flex;
  padding: 3px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #eef0f2;
}
.tabs button {
  min-height: 34px;
  padding: 6px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
.tabs button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.adjust-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.canvas-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eef0f2;
}
.canvas-wrap canvas {
  width: 100%;
  height: auto;
}
#guides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  fill: none;
  stroke: #e0482d;
  stroke-width: 2;
  stroke-dasharray: 6 5;
  vector-effect: non-scaling-stroke;
}
.adjust-controls {
  display: grid;
  gap: 16px;
}
.caption {
  font-size: 13px;
  color: var(--muted);
}
.controls {
  display: grid;
  gap: 14px;
}
.controls label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.background-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
}
.card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.settings {
  display: grid;
  gap: 8px;
}
.settings .field-label {
  margin: 0;
}
#documentNote:empty {
  display: none;
}
.office-choice {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.payment-panel {
  display: grid;
  gap: 12px;
}
.payment-panel h2 {
  font-size: 18px;
}
#paymentSummary {
  color: var(--ink-2);
}
.includes {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}
.includes li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.includes li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2l3 3 6-6' fill='none' stroke='%230f7a62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}
.pay-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.payment-total {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
#paymentStatus:empty {
  display: none;
}
/* Free beta: the notice and optional "would you have paid?" question in the checkout dialog. */
.beta-notice {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  line-height: 1.45;
}
.beta-survey {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.beta-survey textarea {
  width: 100%;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  resize: vertical;
}
.beta-feedback-label {
  margin-top: 6px;
}
.beta-survey legend {
  padding: 0 4px;
  font-weight: 600;
}
/* Why checkout is unavailable: a rejected photo, or a check still running. */
.payment-blocked {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--danger);
}
.payment-blocked.is-waiting {
  color: var(--muted);
}
.privacy-note {
  display: flex;
  gap: 10px;
  padding: 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.privacy-note img {
  flex: none;
  margin-top: 2px;
}
.privacy-note div {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.privacy-note .btn-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
#draftStatus:empty {
  display: none;
}

/* ---------- Completed ---------- */
.completed {
  max-width: 640px;
  margin: 24px auto 0;
}
.completed-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 40px 32px;
  text-align: center;
}
.completed-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 30px no-repeat;
}
.completed[data-state="wait"] .completed-icon,
.completed:not([data-state]) .completed-icon {
  background: none;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.completed[data-state="warn"] .completed-icon {
  background-color: #e5a23a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v5' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12' r='1.1' fill='white'/%3E%3C/svg%3E");
}
.completed h1 {
  font-family: var(--font-display);
  font-size: 30px;
}
#completedStatus {
  max-width: 48ch;
  color: var(--ink-2);
}
.order-details {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 8px 0;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 14px;
}
.order-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.order-details dt {
  color: var(--muted);
}
.order-details dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.order-details dd:empty::after {
  content: "—";
  color: var(--muted);
}
.completed-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Saving photos on the order page. */
.save-photos {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
  text-align: left;
}
.save-photos h2 {
  font-size: 19px;
}
.save-privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
}
.save-privacy img {
  flex: none;
  margin-top: 2px;
}
.save-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.save-list li {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.save-who strong {
  display: block;
}
.save-who span {
  color: var(--muted);
  font-size: 14px;
}
.save-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.save-note {
  color: var(--danger);
  font-size: 14px;
}
.feedback-box {
  display: grid;
  gap: 8px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.feedback-box h2 {
  font-size: 17px;
}
.feedback-box h2 .muted {
  font-size: 14px;
  font-weight: 400;
}
.feedback-box .btn {
  justify-self: start;
}
.order-keep {
  display: grid;
  gap: 10px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.order-keep h2 {
  font-size: 17px;
}
.refund-link-row input {
  width: 100%;
  font-size: 13px;
}
.save-photos .btn-link {
  justify-self: start;
}

/* ---------- Dialogs ---------- */
dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 28px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
dialog::backdrop {
  background: rgb(15 23 38 / 55%);
  backdrop-filter: blur(2px);
}
dialog[open] {
  animation: pop 0.18s ease-out;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -6px -10px 16px 0;
}
.dialog-head h2 {
  font-size: 22px;
}
#termsDialog {
  display: none;
}
#termsDialog[open] {
  display: grid;
  gap: 14px;
}
#termsDialog .dialog-head {
  margin-bottom: 0;
}
.checkout-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.checkout-price {
  flex: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}
#termsDialog .field-label {
  margin: 4px 0 -6px;
}
#orderError {
  color: var(--danger);
  font-size: 14px;
}
#orderError:empty {
  display: none;
}
.consents {
  display: grid;
  gap: 12px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
}
.consents .check {
  color: var(--ink-2);
}
.fine-print {
  line-height: 1.5;
}
.refund-panel {
  display: grid;
  gap: 12px;
}
.refund-panel .dialog-head {
  margin-bottom: 0;
}
.refund-panel textarea {
  min-height: 90px;
  resize: vertical;
}
.refund-panel .field-label {
  margin-bottom: -6px;
}
.refund-step {
  display: grid;
  gap: 12px;
}
.refund-step[hidden] {
  display: none;
}
.refund-summary {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 600;
}
#refundStatus:empty {
  display: none;
}

/* ---------- Drag & drop ---------- */
body.dragging::after {
  content: "Drop photos to add them";
  position: fixed;
  inset: 12px;
  z-index: 50;
  display: grid;
  place-items: center;
  border: 3px dashed var(--accent);
  border-radius: var(--radius-lg);
  background: rgb(228 242 236 / 92%);
  color: var(--accent-ink);
  font-size: 22px;
  font-weight: 700;
  pointer-events: none;
}

/* ---------- Legal & checkout-return pages ---------- */
.legal-page,
.checkout-return {
  max-width: 760px;
  margin: 40px auto;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.legal-page > a:first-child {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 700;
  text-decoration: none;
}
.legal-page h1,
.checkout-return h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 34px;
}
.legal-page h2 {
  margin: 32px 0 8px;
  font-size: 19px;
}
.legal-page p,
.checkout-return p {
  margin: 0 0 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  color: var(--ink-2);
}
.checkout-return .brand {
  margin-bottom: 20px;
}
.checkout-return button {
  min-height: 44px;
  margin: 8px 0 12px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

#printArea {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 16px;
  }
  .hero-visual {
    order: -1;
  }
  .hero-visual .illustration-caption {
    display: none;
  }
  .sample-photo {
    width: min(170px, 44vw);
  }
  .hero h1 {
    max-width: 16ch;
  }
  .start-card {
    max-width: none;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  /* A compact, always-visible checkout bar on small screens. */
  .workspace {
    padding-bottom: 110px;
  }
  .payment-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-radius: 0;
    border-width: 1px 0 0;
    box-shadow: 0 -8px 24px rgb(20 35 60 / 10%);
  }
  .payment-panel h2,
  .payment-panel #paymentSummary,
  .payment-panel .includes,
  .payment-panel #paymentNote {
    display: none;
  }
  .payment-panel .pay-row {
    padding: 0;
    border: 0;
  }
  .payment-panel #pay {
    grid-column: 2;
    grid-row: 1;
  }
  .payment-panel #paymentStatus,
  .payment-panel #paymentBlocked,
  .payment-panel #paymentCheck {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .header-privacy-text small {
    display: none;
  }
  .brand-group {
    gap: 12px;
  }
  .header-privacy {
    gap: 7px;
    padding: 4px 12px 4px 4px;
    box-shadow:
      0 0 0 3px var(--accent-soft),
      0 4px 12px rgb(15 122 98 / 25%);
  }
  .header-lock {
    width: 28px;
    height: 28px;
    padding: 2px;
  }
  .header-privacy-text strong {
    font-size: 14px;
  }

  .privacy-feature {
    gap: 18px;
    margin-top: 8px;
    padding: 22px 20px;
  }
  .device {
    width: 60px;
    padding: 10px 6px 12px;
  }
  .device-photo {
    width: 36px;
    height: 46px;
  }
  body {
    font-size: 15px;
  }
  .site-header,
  .site-footer,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-header {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .lede {
    font-size: 16px;
  }
  .start-card {
    padding: 18px;
    margin-top: 24px;
  }
  .hero-actions {
    grid-template-columns: 1fr;
  }
  .studio {
    padding: 18px;
    gap: 16px;
    border-radius: var(--radius);
  }
  .studio-head h1 {
    font-size: 24px;
  }
  .studio-actions {
    margin-left: -14px;
  }
  .stepper {
    font-size: 13px;
  }
  .stepper li:not(:last-child)::after {
    width: 14px;
  }
  .hero-visual {
    display: none;
  }
  .result-previews {
    flex-wrap: nowrap;
    gap: 14px;
    padding: 18px 10px 14px;
  }
  .result-previews canvas {
    max-width: 100%;
    max-height: 200px;
  }
  .result-previews figure + figure canvas {
    max-height: 160px;
  }
  .result-previews figcaption {
    font-size: 12px;
    text-align: center;
  }
  .diagnosis {
    padding: 16px;
  }
  #diagnosisWarnings,
  #backgroundCheck,
  .diagnosis > .small.muted {
    padding-left: 0;
  }
  .adjust-layout {
    grid-template-columns: 1fr;
  }
  .canvas-wrap {
    max-width: 240px;
    margin: 0 auto;
  }
  .site-footer {
    flex-direction: column;
    margin-top: 48px;
  }
  dialog {
    padding: 22px;
  }
  .legal-page,
  .checkout-return {
    margin: 0;
    padding: 24px 16px;
    border: 0;
    border-radius: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

/* ---------- Print: only the 4 × 6 sheet ---------- */
@media print {
  @page {
    size: 6in 4in;
    margin: 0;
  }
  body > * {
    display: none !important;
  }
  #printArea {
    display: block !important;
    width: 152.4mm;
    height: 101.6mm;
  }
  #printArea img {
    display: block;
    width: 152.4mm;
    height: 101.6mm;
  }
}

/* Private usage dashboard (stats.html). */
.stats-page {
  max-width: 880px;
}
.stats-note {
  color: var(--muted);
  font-size: 14px;
}
.stats-key,
.stats-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 20px 0;
}
.stats-key input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
}
.stats-key button,
.stats-controls button,
.stats-controls select {
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.stats-key button {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.stats-error {
  color: var(--danger);
}
.stats-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 8px 0 20px;
}
.stats-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stats-tile strong {
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.stats-tile span {
  color: var(--muted);
  font-size: 13px;
}
.stats-card {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stats-page .stats-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
}
.stats-row {
  display: grid;
  grid-template-columns: minmax(90px, 180px) 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 3px 0;
  font-size: 14px;
}
.stats-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stats-bar {
  height: 10px;
  background: var(--surface-2);
  border-radius: 5px;
  overflow: hidden;
}
.stats-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
}
.stats-count {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stats-empty {
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 560px) {
  .stats-page {
    margin: 0;
    padding: 20px 16px;
    border-radius: 0;
  }
  .stats-row {
    grid-template-columns: minmax(70px, 120px) 1fr auto;
  }
}
.stats-page [hidden] {
  display: none;
}
