:root {
  --bg: #f4f5f2; --surface: #ffffff; --ink: #1b2420; --muted: #5d6b64; --line: #dde2dc; --accent: #1f5c4a; --accent-ink: #ffffff;
  --warn-bg: #fdf3e2; --warn: #8a5300; --bad-bg: #fbe9e7; --bad: #9b2c1f; --ok-bg: #e6f2ec; --ok: #1f5c4a; --info-bg: #e9eff6; --info: #24476b;
  --radius: 10px; --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 4px 16px rgba(20, 30, 25, .05);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 10px; align-items: center; }
.brand .mark { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.brand strong { display: block; letter-spacing: .04em; }
.brand small { color: var(--muted); font-size: 12px; }
.who { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.narrow { max-width: 440px; margin: 40px auto; }
h1 { font-size: 22px; margin: 0 0 6px; } h2 { font-size: 18px; margin: 0 0 12px; } h3 { font-size: 15px; margin: 18px 0 8px; }
p { line-height: 1.5; } .muted { color: var(--muted); } .small { font-size: 13px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.code { letter-spacing: .3em; font-size: 20px; text-align: center; }
button { font: inherit; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
button.secondary { background: #fff; color: var(--accent); }
button.link { background: none; border: none; color: var(--accent); padding: 0; text-decoration: underline; }
button:disabled { opacity: .55; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.msg { padding: 10px 12px; border-radius: 8px; margin: 12px 0; font-size: 14px; }
.msg.bad { background: var(--bad-bg); color: var(--bad); } .msg.ok { background: var(--ok-bg); color: var(--ok); } .msg.info { background: var(--info-bg); color: var(--info); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr.click { cursor: pointer; } tr.click:hover td { background: #f8faf7; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--info); }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted); }
.drop.over { border-color: var(--accent); background: var(--ok-bg); }
.files li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.files { list-style: none; padding: 0; margin: 12px 0 0; }
progress { width: 140px; }
.qr { display: flex; justify-content: center; margin: 12px 0; }
.qr svg { max-width: 240px; height: auto; }
.secret { font-family: ui-monospace, Consolas, monospace; background: #f3f5f2; padding: 8px; border-radius: 6px; word-break: break-all; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cond { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 10px 0; }
.cond header { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.cond ul { margin: 8px 0 0 18px; padding: 0; font-size: 14px; line-height: 1.45; }
.report { white-space: pre-wrap; font-size: 14px; line-height: 1.5; background: #fafbf9; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.back { margin-bottom: 12px; }
@media (max-width: 640px) { .top { padding: 12px 16px; } .card { padding: 16px; } th:nth-child(n+4), td:nth-child(n+4) { display: none; } }
details { margin-top: 18px; } summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cond li { margin-bottom: 12px; }
.cond li .row { margin-top: 6px; }
.cond li .row input[type=text] { flex: 1; min-width: 200px; width: auto; padding: 8px 10px; }
.cond li label.row { display: inline-flex; font-weight: 400; margin: 0; gap: 6px; }
