:root {
  --ink: #1c2430;
  --muted: #5c6b7a;
  --paper: #f3f6f8;
  --card: #fff;
  --accent: #0b5cab;
  --line: #d5dee6;
  --warn: #8a3b12;
  --ok: #0e6b45;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
header, main, footer { max-width: 1100px; margin: auto; padding: 24px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 750; text-decoration: none; font-size: 20px; color: var(--ink); }
.brand span { color: var(--accent); }
nav { display: flex; gap: 18px; font-size: 14px; }
.hero { max-width: 760px; padding: 36px 0 18px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 750; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 12px; font-weight: 650; }
h2 { font-size: 28px; line-height: 1.25; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; }
p, li { color: var(--muted); }
.hero p { font-size: 18px; max-width: 680px; }
.workspace { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
label { display: block; font-size: 14px; font-weight: 650; margin: 14px 0 6px; color: var(--ink); }
input { width: 100%; font: inherit; color: var(--ink); border: 1px solid #b7c6d4; background: white; padding: 12px; border-radius: 8px; }
button, .drop { font: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 8px; padding: 10px 14px; }
button:disabled { opacity: .45; cursor: default; }
.primary { width: 100%; margin-top: 16px; background: var(--accent); color: white; border-color: var(--accent); font-weight: 650; padding: 12px; }
#example, #browse { background: none; border: 0; color: var(--accent); text-decoration: underline; padding: 10px 0; }
.drop { margin-top: 4px; border: 1.5px dashed #9eb0c2; border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); background: #f7fafc; }
.drop.drag { border-color: var(--accent); background: #e8f2fb; color: var(--ink); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#error { color: var(--warn); min-height: 1.2em; }
#error:empty { display: none; }
.report { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.report:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.report pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.55; margin: 0; color: var(--ink); }
.report.match { border-left: 4px solid var(--ok); padding-left: 12px; }
.report.miss, .report.warn { border-left: 4px solid var(--warn); padding-left: 12px; }
.guide { max-width: 760px; margin: 36px auto 10px; }
.guide li { margin: 8px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 28px; }
th, td { border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; padding: 8px 10px 8px 0; }
th { color: var(--ink); font-size: 13px; }
footer { display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: 13px; margin-top: 28px; }
footer span { margin-right: auto; }
noscript { display: block; margin: 12px 0; padding: 12px; background: #fff4e5; }
input:focus, button:focus-visible, a:focus-visible, .drop:focus-visible { outline: 3px solid #9ec3ea; outline-offset: 2px; }
@media (max-width: 760px) {
  header, main, footer { padding: 16px; }
  .workspace, .pair { grid-template-columns: 1fr; }
  header { align-items: flex-start; flex-direction: column; }
}
@media print {
  header, footer, .hero, .input-card, .guide, #copy, #feedback, noscript { display: none !important; }
  .workspace { display: block; }
  .card { border: 0; padding: 0; }
  body { background: white; }
}
