:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1b2230;
  --muted: #5d6779;
  --border: #dde2ec;
  --accent: #2f6fed;
  --accent-text: #ffffff;
  --ok: #1d8a52;
  --ok-bg: #e7f6ee;
  --warn: #9a5b00;
  --warn-bg: #fff4e0;
  --err: #b42318;
  --err-bg: #fdecea;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151c;
    --card: #1a2029;
    --text: #e6eaf1;
    --muted: #9aa4b5;
    --border: #2c3442;
    --accent: #5b8ef5;
    --ok: #4cc58a;
    --ok-bg: #15301f;
    --warn: #f0b552;
    --warn-bg: #342813;
    --err: #ff7b6e;
    --err-bg: #3a1c1a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 0 16px 40px;
}
.top { max-width: 640px; margin: 28px auto 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 18px; }
/* The Zimpa logo from the house style (logo.svg, via zmp_pentest): white wordmark on the gradient.
   It brings its own background, so it works in light and dark mode. Ratio 1172.74 : 452.08. */
.brand img { display: block; height: 28px; width: auto; }
.brand-name { padding-left: 10px; border-left: 1px solid var(--border); }
.card {
  max-width: 640px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; padding: 24px;
}
.foot { max-width: 640px; margin: 16px auto; color: var(--muted); font-size: 13px; text-align: center; }
h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 24px 0 8px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); font-size: 14px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
textarea, input[type=text], input[type=password], select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
}
textarea { min-height: 140px; resize: vertical; font-family: var(--mono); font-size: 14px; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 180px; }
button {
  font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: 10px 18px;
  background: var(--accent); color: var(--accent-text); cursor: pointer; margin-top: 18px;
}
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--border); }
button:disabled { opacity: .6; cursor: default; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: -8px -4px 18px; }
.tabs button {
  margin: 0; background: none; color: var(--muted); border-radius: 0; padding: 10px 12px;
  border-bottom: 2px solid transparent;
}
.tabs button[aria-selected=true] { color: var(--text); border-bottom-color: var(--accent); }
.linkbox { display: flex; gap: 8px; margin-top: 8px; }
.linkbox input { font-family: var(--mono); font-size: 13px; }
.linkbox button { margin: 0; white-space: nowrap; }
.secret {
  white-space: pre-wrap; word-break: break-all; font-family: var(--mono); font-size: 14px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin: 8px 0 0;
}
.note { border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 14px 0; }
.note.ok { background: var(--ok-bg); color: var(--ok); }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.note.err { background: var(--err-bg); color: var(--err); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.list .actions { display: flex; gap: 6px; flex-shrink: 0; }
.list li button { margin: 0; padding: 6px 12px; font-size: 13px; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.hidden { display: none !important; }
.hint { margin: 6px 0 0; font-size: 13px; }
