:root {
  --bg: #f6f6f4;
  --card: #ffffff;
  --text: #1c1c1a;
  --muted: #6b6b66;
  --line: #e2e1dc;
  --accent: #1f5f4a;
  --accent-text: #ffffff;
  --danger: #a3261d;
  --ok: #1f6f3f;
  --focus: #2f7a61;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --card: #1d1d1b;
    --text: #ecebe6;
    --muted: #a3a29b;
    --line: #34332f;
    --accent: #5fb393;
    --accent-text: #0f1512;
    --danger: #f07b70;
    --ok: #7fd09c;
    --focus: #7fc9ac;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.7 Vazirmatn, Vazir, Tahoma, system-ui, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
h1 { font-size: 26px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 13px; margin: 6px 0 0; }
.host { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--bg); padding: 1px 5px; border-radius: 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-top: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=password] {
  width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); font: 14px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.secret { -webkit-text-security: disc; }
input:focus-visible, button:focus-visible, .drop:focus-visible, .button:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.row:first-child { margin-top: 0; }
.row input { flex: 1; }
.row.center { justify-content: center; }
.row.between { justify-content: space-between; margin-top: 0; }
button, .button {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer; border-radius: 8px;
  padding: 9px 18px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); margin: 0;
}
button.ghost, .button.ghost { background: transparent; color: var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.danger { border-color: var(--danger); color: var(--danger); background: transparent; padding: 4px 12px; font-size: 13px; }
.path-field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; }
.path-field input { border: 0; border-radius: 0; background: transparent; padding-inline: 2px; }
.path-field input:focus-visible { outline: none; }
.path-field:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.prefix { color: var(--muted); font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 0 10px; white-space: nowrap; }
.prefix:last-child { padding-inline-start: 0; }
.drop { margin-top: 16px; border: 2px dashed var(--line); border-radius: 12px; padding: 20px; text-align: center; }
.drop p { margin: 0; }
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.picked { margin: 10px 0 0; font-size: 14px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; margin-top: 14px; }
progress { width: 100%; margin-top: 12px; accent-color: var(--accent); }
.status { margin: 10px 0 0; min-height: 1.7em; }
.status.error { color: var(--danger); }
.status.ok { color: var(--ok); }
.result { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.result a { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.list { list-style: none; margin: 12px 0 0; padding: 0; }
.list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.list a { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.list .when { color: var(--muted); font-size: 13px; margin-inline-start: auto; white-space: nowrap; }
