:root {
  --bg: #0e1116;
  --panel: #161b23;
  --panel-2: #1c232d;
  --line: #2a3340;
  --text: #e6ebf2;
  --muted: #8b97a8;
  --accent: #4c9aff;
  --accent-dim: #1d3a5f;
  --ok: #3ecf8e;
  --warn: #f5a524;
  --bad: #f2555a;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- login */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.brand h1 {
  font-size: 20px;
  margin: 0;
  letter-spacing: -.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  fill: var(--accent);
  flex: none;
}

.brand-mark.sm { width: 20px; height: 20px; }

.sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
}

.field { display: block; margin-bottom: 16px; }

.field span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 12px 13px;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}

.field input:focus { border-color: var(--accent); }

button {
  font: inherit;
  cursor: pointer;
}

#login-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #08111d;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
}

#login-btn:disabled { opacity: .55; cursor: default; }

.error {
  margin: 14px 0 0;
  color: var(--bad);
  font-size: 14px;
}

/* ---------------------------------------------------------------- chrome */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(14, 17, 22, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-left { display: flex; align-items: center; gap: 9px; }

.topbar-title { font-weight: 600; letter-spacing: -.01em; }

.topbar-right { display: flex; align-items: center; gap: 8px; }

.stamp {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.ghost {
  padding: 7px 12px;
  font-size: 13.5px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ghost:hover { border-color: var(--accent); }
.ghost:disabled { opacity: .55; cursor: default; }

.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 22px 18px 60px;
}

.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin: 0 0 12px;
}

.empty {
  color: var(--muted);
  padding: 28px 0;
  text-align: center;
}

/* ---------------------------------------------------------------- alerts */

.alerts {
  margin-bottom: 30px;
  padding: 14px 16px;
  border: 1px solid #4a3a12;
  background: #201a0c;
  border-radius: var(--radius);
}

.alerts-title {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--warn);
}

.alert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  padding: 7px 0;
  font-size: 14px;
  border-top: 1px solid #3a2f14;
}

.alert-row:first-child { border-top: 0; }

.alert-badge {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #3d2f10;
  color: var(--warn);
  white-space: nowrap;
}

.alert-badge.bad { background: #3d1a1c; color: var(--bad); }

.alert-when { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- jobs */

.job {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 14px 16px;
}

.job-prop {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.job-when {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.job-exp {
  margin-left: auto;
  font-size: 12.5px;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.job-exp.ok { color: var(--ok); border-color: #1e4b36; background: #12241b; }
.job-exp.warn { color: var(--warn); border-color: #4a3a12; background: #201a0c; }
.job-exp.bad { color: var(--bad); border-color: #4a2124; background: #201214; }

.rows { border-top: 1px solid var(--line); }

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-top: 1px solid #222a35;
}

.row:first-child { border-top: 0; }

.row-label {
  flex: none;
  width: 108px;
  color: var(--muted);
  font-size: 13px;
}

.row-value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  word-break: break-all;
}

.row-value a { color: var(--accent); text-decoration: none; }
.row-value a:hover { text-decoration: underline; }

.row-value.masked { filter: blur(7px); user-select: none; transition: filter .12s; }
.row-value.masked.show { filter: none; user-select: auto; }

/* The password row: masked until deliberately revealed, then monospace so it
   can be read aloud and copied without transcription errors. */
.pw-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.pw-value.revealed {
  color: var(--text);
  letter-spacing: normal;
}

.copy {
  flex: none;
  padding: 5px 11px;
  font-size: 12.5px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.copy:hover { border-color: var(--accent); }
.copy.done { color: var(--ok); border-color: var(--ok); }

.foot {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 18px 40px;
  color: var(--muted);
  font-size: 12.5px;
}

@media (max-width: 560px) {
  .row { flex-wrap: wrap; }
  .row-label { width: 100%; }
  .stamp { display: none; }
}
