/* Mobile-first. Big text, plain language, no jargon — built for a phone screen first. */

:root {
  --ok-fg: #166534; --ok-bg: #dcfce7;
  --verify-fg: #92400e; --verify-bg: #fef3c7;
  --break-fg: #b91c1c; --break-bg: #fee2e2;
  --text: #111827; --muted: #6b7280; --border: #e5e7eb;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  color: var(--text);
  background: #fafafa;
  font-size: 18px;
  line-height: 1.4;
}

main { max-width: 640px; margin: 0 auto; padding: 16px 16px 64px; }

h1 { font-size: 26px; margin: 8px 0 4px; }
h2 { font-size: 20px; margin: 28px 0 10px; }
.subtitle { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: white; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.topnav { display: flex; align-items: center; gap: 16px; }
.topnav a { color: var(--text); text-decoration: none; font-size: 15px; }
.link-btn {
  background: none; border: none; padding: 0; font-size: 15px; color: var(--text);
  text-decoration: underline; cursor: pointer;
}

.back-link { display: inline-block; margin: 12px 0; color: var(--text); text-decoration: none; font-size: 16px; }

.banner {
  font-size: 20px; font-weight: 600; padding: 16px; border-radius: 12px; margin: 12px 0 20px;
}
.banner-ok { background: var(--ok-bg); color: var(--ok-fg); }
.banner-verify { background: var(--verify-bg); color: var(--verify-fg); }
.banner-break { background: var(--break-bg); color: var(--break-fg); }

.btn {
  display: inline-block; font-size: 17px; font-weight: 600; padding: 12px 18px;
  border-radius: 10px; border: none; cursor: pointer; text-decoration: none; text-align: center;
}
.btn-primary { background: #2563eb; color: white; }
.btn-primary:disabled { background: #93c5fd; cursor: not-allowed; }
.btn-secondary { background: #eef2ff; color: #3730a3; }
.btn-ok { background: var(--ok-bg); color: var(--ok-fg); }
.btn-break { background: var(--break-bg); color: var(--break-fg); }
.btn-big { font-size: 19px; padding: 16px; }
.btn-wide { display: block; width: 100%; }

.progress-text { text-align: center; color: var(--muted); min-height: 1.4em; margin: 8px 0 0; }

.cards { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.card {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px;
  background: white; border: 1px solid var(--border); text-decoration: none; color: var(--text);
}
.card-body { display: flex; flex-direction: column; gap: 2px; }
.card-name { font-weight: 600; font-size: 17px; }
.card-headline { color: var(--muted); font-size: 15px; }

.dot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.dot-ok { background: #16a34a; }
.dot-ok_manual { background: #16a34a; }
.dot-verify { background: #f59e0b; }
.dot-break { background: #dc2626; }

.do-now-list { list-style: none; padding: 0; margin: 0; }
.do-now-item {
  background: white; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; margin-bottom: 12px;
}
.do-now-item p { margin: 0 0 8px; }

.manual-check { display: flex; flex-direction: column; gap: 8px; }
.manual-check-form { display: flex; flex-direction: column; gap: 8px; }
.manual-check-form input[type="number"] { font-size: 16px; padding: 10px; border-radius: 8px; border: 1px solid var(--border); }
.manual-check-buttons { display: flex; gap: 8px; }
.manual-check-buttons .btn { flex: 1; }

.link { color: #2563eb; font-weight: 600; text-decoration: none; }
.all-clear { color: var(--ok-fg); font-weight: 600; }

.login-card { max-width: 360px; margin: 60px auto; text-align: center; }
.login-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.login-card input { font-size: 17px; padding: 12px; border-radius: 8px; border: 1px solid var(--border); }
.error { color: var(--break-fg); }

.badge { font-size: 12px; padding: 2px 10px; border-radius: 10px; font-weight: 600; margin-left: 8px; }
.badge-ok, .badge-ok_manual { background: var(--ok-bg); color: var(--ok-fg); }
.badge-verify { background: var(--verify-bg); color: var(--verify-fg); }
.badge-break { background: var(--break-bg); color: var(--break-fg); }

.detail-row { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.detail-date { font-weight: 600; margin: 0 0 8px; }
.detail-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.detail-table td { padding: 4px 0; border-bottom: 1px solid #f3f4f6; }
.detail-table td:last-child { text-align: right; font-weight: 600; }

.sparkline-wrap { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.sparkline { width: 100%; height: auto; }
.sparkline-legend { font-size: 13px; color: var(--muted); }

.fix-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.fix-card h2 { margin-top: 0; }
.screenshot-placeholder {
  border: 1px dashed var(--border); border-radius: 8px; padding: 24px; text-align: center;
  color: var(--muted); font-size: 14px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

@media (min-width: 560px) {
  .cards { flex-direction: row; flex-wrap: wrap; }
  .card { flex: 1 1 calc(50% - 10px); }
}
