/* Black/white/grey only — depth comes from tone (opacity, lightness), not
hue. --accent-error is the one deliberate exception: alert states are
harder to scan at a glance without it. Nothing else in this file should
introduce a new color. */
:root {
  color-scheme: dark;
  --bg: #050505;
  --text: #f2f2f2;
  --text-muted: #a3a3a3;
  --text-faint: #757575;
  --white: #ffffff;
  --black: #0a0a0a;
  --accent-error: #e5675f;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  margin: 0;
  padding: 48px 16px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.05), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.035), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.04), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}
.wrap { max-width: 640px; margin: 0 auto; }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  stroke: var(--white);
  stroke-width: 1.6;
}
h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--white);
}
.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
}
.badge.ok { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.badge.err { color: var(--accent-error); border-color: rgba(229, 103, 95, 0.4); }
.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 28px 32px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}
.field { margin-bottom: 18px; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-faint); }
input[type="file"], input[type="password"] {
  width: 100%;
  padding: 9px 11px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.row { display: flex; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text); text-transform: none; margin: 0; }
.check input { width: auto; margin: 0; }
button {
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  background: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: default; }
button:hover:not(:disabled) { filter: brightness(0.92); }
#status { margin-left: 12px; font-size: 13px; color: var(--text-muted); }
#status.err { color: var(--accent-error); }
.hidden { display: none; }
.summary-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; margin-bottom: 16px; align-items: center; }
.summary-grid dt { color: var(--text-muted); display: flex; align-items: center; gap: 7px; }
.summary-grid dd { margin: 0; color: var(--text); word-break: break-word; }
svg.icon { width: 15px; height: 15px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.warning { color: var(--text); font-size: 13px; margin: 4px 0; display: flex; align-items: center; gap: 6px; }
.warning svg.icon { stroke: var(--text-muted); }
button svg.icon { stroke: var(--black); margin-right: 2px; vertical-align: -3px; }
img.thumb { max-width: 200px; border-radius: 8px; margin-top: 8px; display: block; }
a.qr { display: inline-block; padding: 8px; background: var(--white); border-radius: 8px; }
a.qr img { display: block; }
.qr-caption { font-size: 12px; color: var(--text-muted); margin: 6px 0 16px; }
details summary { cursor: pointer; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
pre {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  font-size: 12px;
  overflow-x: auto;
  max-height: 480px;
  overflow-y: auto;
}
a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--white); }
