:root { color-scheme: light dark; --bg:#f3f5f8; --surface:#fff; --ink:#142438; --muted:#566579; --line:#d9e1eb; --accent:#174d83; --accent-text:#fff; --notice:#eef3fa; --good:#176344; --bad:#a22c35; --shadow:0 12px 36px #16324f0b; font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
@media (prefers-color-scheme:dark) { :root { --bg:#101923; --surface:#172431; --ink:#e5eef8; --muted:#a4b5c9; --line:#344659; --accent:#9cc9f8; --accent-text:#11263e; --notice:#1d3043; --good:#83d6aa; --bad:#ffadb5; --shadow:none; } }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--bg); color:var(--ink); }
.top { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:20px max(20px,calc((100% - 1120px)/2)); border-bottom:1px solid var(--line); background:var(--surface); font-size:14px; }
.brand { display:flex; align-items:center; gap:8px; font-weight:700; }
.brand span:last-child { color:var(--muted); font-weight:500; }
.mark { display:grid; place-items:center; width:32px; height:32px; border-radius:10px; color:var(--accent-text); background:var(--accent); font-size:20px; }
.local { color:var(--muted); white-space:nowrap; }
.local i { display:inline-block; height:8px; width:8px; border-radius:50%; background:var(--good); margin-right:6px; }
main { max-width:1160px; margin:auto; padding:44px 20px 24px; }
.intro { max-width:760px; margin-bottom:24px; }
.eyebrow { color:var(--accent); font-size:12px; font-weight:750; letter-spacing:.13em; }
h1 { font-size:clamp(30px,4.5vw,48px); letter-spacing:-.045em; line-height:1.08; margin:12px 0; }
p { line-height:1.55; }
.intro > p:last-child { color:var(--muted); font-size:17px; }
.notice { padding:15px 18px; background:var(--notice); border:1px solid var(--line); border-radius:12px; font-size:14px; line-height:1.55; margin-bottom:22px; }
.workspace { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start; }
.panel { min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:17px; padding:24px; box-shadow:var(--shadow); }
.panel-title { display:flex; align-items:flex-start; gap:12px; margin-bottom:22px; }
.step { display:grid; place-items:center; border:1px solid var(--line); color:var(--accent); border-radius:9px; width:36px; height:36px; flex:none; font-weight:700; font-size:14px; }
h2 { margin:0 0 3px; font-size:21px; letter-spacing:-.025em; }
.panel-title p { margin:0; color:var(--muted); font-size:13px; }
fieldset { border:0; margin:0; padding:0; min-width:0; }
label { display:block; margin:15px 0 6px; font-size:13px; font-weight:650; }
label small { font-weight:400; color:var(--muted); }
input { width:100%; min-width:0; padding:11px; border:1px solid var(--line); background:var(--bg); color:var(--ink); border-radius:8px; font:inherit; font-size:14px; }
input[type=file] { padding:9px; border-style:dashed; }
input::file-selector-button { background:var(--surface); border:1px solid var(--line); color:var(--ink); border-radius:6px; padding:6px 10px; margin-right:9px; cursor:pointer; }
input:focus-visible, button:focus-visible, a:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
button { border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:8px; padding:10px 14px; font:inherit; font-size:14px; font-weight:650; cursor:pointer; }
button:disabled { cursor:wait; opacity:.6; }
.primary { display:block; width:100%; background:var(--accent); color:var(--accent-text); border-color:var(--accent); margin-top:20px; }
.hint { color:var(--muted); font-size:12px; margin:7px 0; }
.status { margin:12px 0 0; font-size:13px; overflow-wrap:anywhere; }
.status:empty { display:none; }
.status.error { color:var(--bad); }
.status.success { color:var(--good); }
.result { border-top:1px solid var(--line); margin-top:18px; padding-top:16px; }
h3 { margin:0 0 6px; font-size:16px; }
.digest { display:flex; gap:7px; }
.digest input { font-family:ui-monospace,monospace; font-size:12px; }
dl { display:grid; grid-template-columns:minmax(100px, 36%) minmax(0,1fr); gap:10px 12px; font-size:13px; }
dt { color:var(--muted); }
dd { margin:0; overflow-wrap:anywhere; }
footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; margin-top:28px; color:var(--muted); font-size:12px; }
a { color:var(--accent); }
@media(max-width:740px) { .workspace { grid-template-columns:1fr; } main { padding-top:26px; } .panel { padding:18px; } .top { padding:14px; } }
@media(max-width:420px) { .top { flex-wrap:wrap; } }

.catalog { margin-top:20px; }
.table-wrap { overflow-x:auto; margin:12px 0; }
table { border-collapse:collapse; width:100%; text-align:left; font-size:13px; }
th, td { border-bottom:1px solid var(--line); padding:10px; vertical-align:top; overflow-wrap:anywhere; }
th { color:var(--muted); font-weight:650; }
