:root {
  --bg: #f6f7f9; --card: #ffffff; --text: #17191c; --muted: #5d6470; --line: #e2e5ea;
  --accent: #1f6feb; --accent-text: #ffffff; --ok: #1a7f37; --warn: #9a6700; --bad: #cf222e;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1115; --card: #171a20; --text: #e8eaee; --muted: #9aa3af; --line: #2a2f38;
          --accent: #4c8dff; --ok: #3fb950; --warn: #d29922; --bad: #f85149; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; }
.logo { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.lang button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.lang button.on { color: var(--text); border-color: var(--text); }
h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.15; margin: 40px 0 10px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 16px; text-align: center; cursor: pointer; transition: border-color .15s; }
.drop.over, .drop:hover { border-color: var(--accent); }
.drop strong { display: block; font-size: 18px; margin-bottom: 6px; }
.drop small { color: var(--muted); }
input[type=text], input[type=email] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
label { display: block; font-size: 14px; color: var(--muted); margin: 16px 0 6px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-text); border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn[disabled] { opacity: .5; cursor: default; }
.bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 14px 0 6px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.muted { color: var(--muted); font-size: 14px; }
.status { font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.status.ok { color: var(--ok); } .status.warn { color: var(--warn); } .status.bad { color: var(--bad); }
video { width: 100%; border-radius: 10px; background: #000; margin-top: 14px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 8px 0 30px; }
.steps div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 14px; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: s 1s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes s { to { transform: rotate(360deg); } }
footer { color: var(--muted); font-size: 13px; padding-top: 20px; padding-bottom: 40px; }
footer a { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.hidden { display: none !important; }
.pickers { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.note { background: var(--card); border: 1px solid var(--warn); border-radius: var(--radius); padding: 12px 16px; color: var(--warn); }
.explorer { padding: 0; overflow: hidden; }
.ex-panes { display: grid; grid-template-columns: 200px 1fr; min-height: 220px; }
.ex-tree { border-right: 1px solid var(--line); padding: 8px 0; overflow: auto; max-height: 520px; font-size: 14px; }
.ex-tree a { display: block; padding: 5px 8px; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-tree a.on, .ex-tree a:hover { background: var(--bg); color: var(--accent); }
.ex-list { min-width: 0; overflow: auto; max-height: 560px; }
.ex-crumb { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ex-crumb a { color: var(--accent); text-decoration: none; }
.ex-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 84px 190px 96px; gap: 8px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ex-row > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-row.dir { cursor: pointer; }
.ex-row.dir:hover { background: var(--bg); }
.ex-row.skip { color: var(--muted); }
.ex-head { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 6px; padding-bottom: 6px; }
.st.ok { color: var(--ok); } .st.bad { color: var(--bad); } .st.warn { color: var(--warn); } .st.muted { color: var(--muted); }
.st .spin { width: 12px; height: 12px; margin-right: 6px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: none; }
.ex-preview { border-top: 1px solid var(--line); padding: 16px; }
.ex-pvhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ex-pvhead .btn { padding: 6px 12px; }
@media (max-width: 640px) {
  .ex-panes { grid-template-columns: 1fr; }
  .ex-tree { border-right: 0; border-bottom: 1px solid var(--line); max-height: 160px; }
  .ex-row { grid-template-columns: 22px minmax(0, 1fr) 70px; }
  .ex-row > span:nth-child(4) { grid-column: 2 / 4; font-size: 13px; }
  .ex-row > span:nth-child(5) { grid-column: 2 / 4; }
  .ex-head { display: none; }
}
.meter { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-size: 14px; }
.meter b { font-variant-numeric: tabular-nums; }
#up .bar, #rp .bar { margin-top: 6px; }
.bar i.rp { background: var(--ok); }
#uptext, #rptext { font-variant-numeric: tabular-nums; }
.ex-row { grid-template-columns: 26px minmax(0, 1fr) 84px minmax(190px, 280px) 80px; }
.st small { display: block; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--bad); font-weight: 600; }
.jobhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.jobhead h2 { margin: 0 0 2px; font-size: 20px; overflow-wrap: anywhere; }
.jobhead p { margin: 0 0 12px; }
.picked { margin: 14px 0 0; font-size: 14px; }
#older { margin: 16px 0; border-top: 1px solid var(--line); }
