:root {
  --blue: #1565C0;
  --blue-dark: #0D47A1;
  --bg: #eef1f4;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #52606d;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  padding-bottom: 40px;
}
header {
  background: var(--blue);
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 5;
}
header h1 { font-size: 20px; margin: 0; }
.status { font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.status--ok { background: #e3f9e5; color: #0b7724; }
.status--browser { background: #fff3e0; color: #a15c00; }
.status--none { background: #fdecea; color: #b71c1c; }
.status--unknown { background: #eceff1; color: #455a64; }

main { max-width: 640px; margin: 0 auto; padding: 16px; }
.controls {
  background: var(--card); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.controls label { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.controls input { width: 64px; padding: 6px 8px; font-size: 16px; border: 1px solid #cfd8dc; border-radius: 8px; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

.card {
  background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.card__head h2 { font-size: 18px; margin: 0; }
.btn {
  background: var(--blue); color: #fff; border: 0; border-radius: 8px;
  font-size: 15px; font-weight: 700; padding: 10px 18px; cursor: pointer;
}
.btn:active { background: var(--blue-dark); }

.preview {
  width: 320px; max-width: 100%; height: 420px; border: 1px dashed #b0bec5; border-radius: 8px;
  background: #fff; display: block; margin: 0 auto;
}
.preview--tall { height: 640px; }

.result {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px;
  box-shadow: 0 3px 12px rgba(0,0,0,.2); max-width: 90%;
}
.result--ok { background: #0b7724; color: #fff; }
.result--err { background: #b71c1c; color: #fff; }
