:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f5f7fb;
  --ink: #172033;
  --muted: #6f7a8c;
  --line: #e4e9f1;
  --card: #ffffff;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --violet: #7c3aed;
  --violet-soft: #f5f3ff;
  --green: #059669;
  --green-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fff7ed;
  --red: #dc2626;
  --red-soft: #fef2f2;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, #eef4ff 0%, #f5f7fb 36%, #f8fafc 100%); }
button, input { font: inherit; }
.shell { max-width: 1180px; margin: 0 auto; padding: 42px 20px 88px; }
.hero { margin-bottom: 22px; }
.eyebrow { font-size: 11px; letter-spacing: .14em; font-weight: 900; color: #60708a; }
h1 { margin: 8px 0 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.03em; color: #121a2b; }
h2 { margin: 4px 0 0; font-size: clamp(23px, 3vw, 30px); letter-spacing: -.02em; color: #151d2f; }
.card { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 16px 40px rgba(27, 42, 74, .07); }
.form-card { margin-bottom: 22px; }
label { display: block; font-weight: 800; margin-bottom: 9px; color: #26324a; }
.url-row { display: flex; gap: 10px; }
input[type=url] { flex: 1; min-width: 0; padding: 14px 15px; border: 1px solid #cfd7e5; border-radius: 13px; font-size: 16px; background: #fff; color: #172033; outline: none; transition: .2s ease; }
input[type=url]:focus { border-color: #7aa2f7; box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
button { border: 0; border-radius: 13px; padding: 13px 18px; font-weight: 900; cursor: pointer; background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.20); transition: transform .15s ease, box-shadow .15s ease; }
button:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(37,99,235,.24); }
button:disabled { opacity: .55; cursor: wait; transform: none; }
button.secondary { background: #fff; color: #25314a; border: 1px solid #cfd7e5; box-shadow: none; }
button.secondary:hover { background: #f8fafc; box-shadow: 0 6px 18px rgba(27,42,74,.08); }
.error { margin-top: 14px; padding: 12px 14px; background: var(--red-soft); color: #991b1b; border: 1px solid #fecaca; border-radius: 12px; }
.hidden { display: none !important; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.stat { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 17px; padding: 18px 18px 16px; box-shadow: 0 10px 26px rgba(27,42,74,.05); }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; border-radius: 17px 0 0 17px; background: var(--stat-accent, var(--blue)); }
.stat .num { font-size: 31px; font-weight: 950; margin-top: 5px; letter-spacing: -.02em; color: #101827; }
.stat .label { color: #6c778b; font-size: 13px; font-weight: 700; }
.stat.stat-score { --stat-accent: var(--violet); }
.stat.stat-images { --stat-accent: var(--blue); }
.stat.stat-missing { --stat-accent: var(--red); }
.stat.stat-visual { --stat-accent: var(--green); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 28px 0 14px; }
.image-list { display: grid; gap: 16px; }
.image-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; grid-template-columns: 280px 1fr; gap: 20px; box-shadow: 0 12px 30px rgba(27,42,74,.06); }
.thumb-wrap { min-width: 0; }
.thumb { width: 100%; height: 240px; border-radius: 15px; background: #eef2f7; object-fit: cover; display: block; border: 1px solid #edf1f6; }
.image-id { margin-top: 9px; padding: 7px 10px; border-radius: 10px; background: #f7f8fb; color: #657086; font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.image-meta { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.info-block { border-radius: 14px; padding: 11px 13px; border: 1px solid transparent; }
.info-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 950; margin-bottom: 5px; }
.current-alt { background: #f8fafc; border-color: #e6eaf0; }
.current-alt .info-label { color: #64748b; }
.current-alt .value { color: #243047; font-weight: 750; line-height: 1.45; }
.current-alt.missing { background: var(--red-soft); border-color: #fecaca; }
.current-alt.missing .info-label, .current-alt.missing .value { color: #b91c1c; }
.keyterms-block { background: var(--violet-soft); border-color: #e9ddff; }
.keyterms-block .info-label { color: #6d28d9; }
.term-list { display: flex; gap: 6px; flex-wrap: wrap; }
.term { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: #fff; color: #5b21b6; border: 1px solid #e9ddff; font-size: 12px; font-weight: 850; }
.alt-recommendation { position: relative; background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%); border: 1px solid #bfd3ff; border-radius: 17px; padding: 16px 54px 16px 16px; box-shadow: 0 10px 26px rgba(37,99,235,.10); }
.alt-recommendation .info-label { color: #1d4ed8; }
.alt-text { color: #0f2147; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.35; font-weight: 950; letter-spacing: -.015em; }
.copy-btn { position: absolute; top: 13px; right: 13px; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border-radius: 10px; background: #fff; color: #1d4ed8; border: 1px solid #bcd0fb; box-shadow: 0 5px 14px rgba(37,99,235,.12); }
.copy-btn:hover { background: #eff6ff; transform: translateY(-1px); }
.copy-btn svg { width: 18px; height: 18px; }
.copy-btn.copied { color: #047857; border-color: #a7f3d0; background: var(--green-soft); }
.meta-row { display: grid; grid-template-columns: minmax(150px, 180px) 1fr; gap: 10px; align-items: start; }
.meta-label { color: #6b778c; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.meta-value { color: #26324a; line-height: 1.45; overflow-wrap: anywhere; }
.confidence-value { display: inline-flex; align-items: center; gap: 9px; font-weight: 950; }
.confidence-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 950; }
.confidence-high { background: var(--green-soft); color: #047857; }
.confidence-mid { background: var(--amber-soft); color: #b45309; }
.confidence-low { background: var(--red-soft); color: #b91c1c; }
.technical { color: #6b7280; font-size: 13px; background: #f8fafc; border-radius: 11px; padding: 10px 12px; border: 1px solid #edf0f4; }
.muted { color: #8a94a7; }
@media (max-width: 900px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .image-card { grid-template-columns: 1fr; }
  .thumb { height: 280px; }
}
@media (max-width: 640px) {
  .shell { padding: 30px 14px 60px; }
  .url-row { flex-direction: column; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: stretch; }
  .meta-row { grid-template-columns: 1fr; gap: 4px; }
  .alt-text { font-size: 20px; }
}
