:root {
  --bg: #0b0e0f;
  --surface: #15191b;
  --surface-2: #1d2224;
  --border: #272d30;
  --text: #eef1f0;
  --text-dim: #9aa3a0;
  --accent: #34d399;
  --accent-text: #052e1f;
  --danger: #f87171;
  --danger-text: #450a0a;
  --warn: #fbbf24;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6f5;
    --surface: #ffffff;
    --surface-2: #eef0ef;
    --border: #dde1df;
    --text: #13171a;
    --text-dim: #5b6460;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 440px;
  padding: 32px 20px 48px;
}

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.brand h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card + .card { margin-top: 16px; }

.lede {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}

label.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease;
}

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

button {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 650;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

button:active { transform: scale(0.98); }
button:disabled { opacity: 0.55; cursor: default; transform: none; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  margin-top: 14px;
}

.btn-danger {
  background: var(--danger);
  color: var(--danger-text);
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.btn-row button { flex: 1; padding: 18px; font-size: 16px; }

.status-line {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-height: 18px;
}
.status-line.ok { color: var(--accent); }
.status-line.err { color: var(--danger); }

.section-title {
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin: 28px 0 10px 4px;
}

.job-list { display: flex; flex-direction: column; gap: 8px; }

.job-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.job-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.job-main { flex: 1; min-width: 0; }
.job-label { font-size: 14px; font-weight: 600; }
.job-time { font-size: 12px; color: var(--text-dim); margin-top: 1px; }

.pill {
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-pending, .pill-notified { background: rgba(251, 191, 36, 0.16); color: var(--warn); }
.pill-approved, .pill-completed { background: rgba(52, 211, 153, 0.16); color: var(--accent); }
.pill-denied, .pill-expired, .pill-failed { background: rgba(248, 113, 113, 0.16); color: var(--danger); }
.pill-in_progress { background: rgba(148, 163, 184, 0.2); color: var(--text-dim); }

.empty-state {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  padding: 24px 0;
}

.confirm-title {
  text-align: center;
  font-size: 22px;
  font-weight: 650;
  margin: 8px 0 4px;
}
.confirm-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}
