/* Step & Bank — dark, sturdy, job-site readable.
   Big numbers, high contrast, thumb-sized targets. One hand, gloves half off. */

:root {
  --bg: #0e1116;
  --card: #171c24;
  --card-2: #1e2530;
  --line: #2b3442;
  --text: #f2f4f7;
  --muted: #a7b0be;
  --amber: #f5b301;
  --amber-dark: #8a6400;
  --green: #35c26e;
  --yellow: #f5b301;
  --red: #ff5a52;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  padding-bottom: 84px; /* room for the bottom nav */
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.85em; }
.error { color: var(--red); font-weight: 600; }
.info { color: var(--green); font-weight: 600; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(14, 17, 22, 0.96);
  border-bottom: 2px solid var(--amber);
}
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.2px; }
.brand-name .amp { color: var(--amber); }
.tag {
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--amber);
  border-radius: 999px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  vertical-align: middle;
}

/* ---------- layout ---------- */
main { max-width: 560px; margin: 0 auto; padding: 14px 14px 8px; }
.anchor { scroll-margin-top: 76px; height: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}
.card h2 { margin: 0 0 8px; font-size: 1.35rem; }
.card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.hero-card h1 { margin: 0 0 8px; font-size: 1.7rem; line-height: 1.15; }

/* ---------- dashboard ---------- */
.dashboard-card { border-color: var(--amber-dark); }
.dash-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.big-hours {
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.step-line { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.raise-line { margin-top: 10px; }

.progress-track {
  height: 18px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 8px;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--amber);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ---------- ladder ---------- */
.ladder { display: flex; gap: 6px; align-items: flex-end; height: 92px; margin: 6px 0 10px; }
.ladder-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  border-radius: 8px 8px 0 0;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-bottom: none;
  color: var(--muted);
  font-weight: 800;
  padding-bottom: 6px;
  min-height: 26%;
}
.ladder-step .pct { font-size: 0.8rem; font-weight: 700; }
.ladder-step.done { background: #3d2f05; color: var(--amber); border-color: var(--amber-dark); }
.ladder-step.now {
  background: var(--amber);
  color: #141414;
  border-color: var(--amber);
  box-shadow: 0 0 0 2px var(--amber-dark);
}

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 12px; flex: 1; }
.field > span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.field-row { display: flex; gap: 12px; }
.field-row .field { min-width: 0; }

input[type="email"], input[type="password"], input[type="text"],
input[type="number"], input[type="date"] {
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color-scheme: dark;
}
input:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }

.toggle-row { display: flex; gap: 8px; margin-bottom: 14px; }
.toggle-btn {
  flex: 1;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--muted);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.toggle-btn.active { background: var(--amber); border-color: var(--amber); color: #141414; }

.stepper { display: flex; align-items: stretch; gap: 6px; }
.stepper input { text-align: center; }
.stepper-btn {
  width: 52px;
  min-height: 52px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  flex: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  min-height: 52px;
  padding: 12px 18px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--amber); border-color: var(--amber); color: #141414; }
.btn-block { display: block; width: 100%; margin-top: 8px; }
.btn-link { background: none; border: none; color: var(--amber); min-height: 44px; }
.btn-ghost { background: none; }
.btn-small { min-height: 40px; padding: 6px 12px; font-size: 0.9rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btn-row .btn { flex: 1; }
.btn:disabled { opacity: 0.55; cursor: wait; }

/* ---------- entries ---------- */
.entry-list { list-style: none; margin: 0; padding: 0; }
.entry-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.entry-item:last-child { border-bottom: none; }
.entry-main { flex: 1; min-width: 0; }
.entry-top { font-weight: 700; font-variant-numeric: tabular-nums; }
.entry-meta { color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}
.badge-ojt { background: #3d2f05; color: var(--amber); }
.badge-class { background: #123524; color: var(--green); }
.badge-edited { background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
.badge-queued { background: #3d2f05; color: var(--amber); }
.entry-actions { display: flex; flex-direction: column; gap: 6px; }
.entry-actions button {
  min-height: 38px;
  padding: 4px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.queue-card { border-color: var(--amber-dark); }

/* ---------- bank / class ---------- */
.verdict { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.verdict-green { color: var(--green); }
.verdict-yellow { color: var(--yellow); }
.verdict-red { color: var(--red); }
.class-big { font-size: 2.4rem; font-weight: 800; color: var(--amber); font-variant-numeric: tabular-nums; }

/* ---------- snapshot / pay table ---------- */
.snapshot-gap { font-size: 1.1rem; font-weight: 700; margin: 8px 0; }
.gap-ok { color: var(--green); }
.gap-off { color: var(--yellow); }
table.pay { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.pay th, table.pay td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--line); }
table.pay th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
table.pay tr.now td { color: var(--amber); font-weight: 800; }
table.pay tr.done td { color: var(--muted); }

/* ---------- bottom nav ---------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: flex;
  background: rgba(14, 17, 22, 0.97);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 14px 4px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
}
.bottom-nav a:active, .bottom-nav a:focus { color: var(--amber); }

.footer { max-width: 560px; margin: 4px auto 0; padding: 0 14px; text-align: center; }

@media (min-width: 480px) {
  .big-hours { font-size: 5rem; }
}
