/* simple.css — the plain view.
   Bigger type, bigger targets, one decision at a time, no jargon. */

.simple main { max-width: 900px; }

/* ---------- mode switch ---------- */

.mode-switch {
  display: inline-flex; border: 1px solid var(--border-strong);
  border-radius: var(--radius-s); overflow: hidden; background: var(--surface);
}
.mode-switch button {
  border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600;
  padding: 5px 12px; cursor: pointer; color: var(--text-dim); white-space: nowrap;
}
.mode-switch button:hover { background: var(--surface-sunk); }
.mode-switch button.on { background: var(--accent); color: var(--accent-text); }

/* ---------- big hero card ---------- */

.hero {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px; margin-bottom: 18px; text-align: center;
}
.hero.done { border-color: var(--ok); }
.hero.attention { border-color: var(--warn); }
.hero-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 8px;
}
.hero-title { font-size: 27px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.hero.done .hero-title { color: var(--ok); }
.hero-sub { color: var(--text-dim); font-size: 15px; margin-top: 8px; }
.hero-actions { margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.btn-huge {
  font-size: 17px; font-weight: 650; padding: 15px 34px; border-radius: var(--radius);
}

/* ---------- board: fixed panel left, scrolling list right ---------- */

/* The board screen gets the full width; the other plain screens stay narrow
   because they're single columns of prose and read badly stretched. */
body.simple[data-view="today"] main { max-width: 1180px; }

.board {
  display: grid; grid-template-columns: 330px minmax(0, 1fr);
  gap: 20px; align-items: start;
}

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  /* Clears the 58px top bar. The list on the right is the part that scrolls. */
  position: sticky; top: 74px;
}
.panel-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint);
}
.panel-title {
  font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
  margin-top: 7px;
}
.panel-sub { color: var(--text-dim); font-size: 13.5px; margin-top: 8px; }
.panel-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.panel-actions .btn { width: 100%; justify-content: center; }
.panel-note {
  font-size: 11.5px; color: var(--text-faint); margin-top: 12px; text-align: center;
}

/* The right column carries its own headings, so the first one sits flush with
   the top of the panel rather than a section-title's usual breathing room. */
.board-main > .section-title:first-child { margin-top: 0; }

@media (max-width: 900px) {
  .board { grid-template-columns: 1fr; }
  .panel { position: static; }
  .panel-actions { flex-direction: row; flex-wrap: wrap; }
  .panel-actions .btn { width: auto; flex: 1; }
}

/* ---------- headline numbers ---------- */

/* In the panel these are rows in one block, not a row of cards — three big
   tiles stacked in a 330px column would push the action button off screen. */
.stat-stack {
  margin-top: 18px; border-top: 1px solid var(--border);
}
.stat-line {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 2px; border-bottom: 1px solid var(--border);
}
.stat-line:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-line b {
  font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -.02em;
  min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums;
}
.stat-line span { font-size: 13px; color: var(--text-dim); }
.stat-line.good b { color: var(--ok); }
.stat-line.out  b { color: var(--out); }
.stat-line.bad  b { color: var(--bad); }
.stat-line.bad span { color: var(--bad); font-weight: 600; }

.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; text-align: center;
}
.stat b { display: block; font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.stat span { display: block; font-size: 13px; color: var(--text-dim); margin-top: 7px; }
.stat.good b { color: var(--ok); }
.stat.out  b { color: var(--out); }
.stat.bad  b { color: var(--bad); }
.stat.bad  { border-color: var(--bad); }

/* ---------- plain-language item list ---------- */

.plain-list { display: flex; flex-direction: column; gap: 10px; }
.plain-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: var(--radius); padding: 15px 17px;
}
.plain-item.bad  { border-left-color: var(--bad); }
.plain-item.warn { border-left-color: var(--warn); }
.plain-item.out  { border-left-color: var(--out); }
.plain-item.good { border-left-color: var(--ok); }
.plain-icon {
  flex: none; width: 22px; height: 22px; display: grid; place-items: center;
  color: var(--text-faint); margin-top: 1px;
}
.plain-icon .ic { width: 20px; height: 20px; }
/* With the tinted panels gone, the icon is what carries the status colour. */
.plain-item.bad  .plain-icon { color: var(--bad); }
.plain-item.warn .plain-icon { color: var(--warn); }
.plain-item.out  .plain-icon { color: var(--out); }
.plain-item.good .plain-icon { color: var(--ok); }
.plain-body { flex: 1; min-width: 0; }
.plain-what { font-size: 15px; font-weight: 600; line-height: 1.4; }
.plain-do   { font-size: 13.5px; color: var(--text-dim); margin-top: 4px; }
.plain-item .btn { flex: none; align-self: center; }

.section-title {
  font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-faint); margin: 26px 0 11px;
}

/* ---------- guided count ---------- */

.wiz-head { margin-bottom: 18px; }
.wiz-steps { display: flex; gap: 7px; margin-bottom: 16px; }
.wiz-steps i {
  height: 4px; flex: 1; border-radius: 0; background: var(--surface-sunk);
}
.wiz-steps i.on   { background: var(--accent); }
.wiz-steps i.past { background: var(--ok); }
.wiz-q { font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.wiz-hint { color: var(--text-dim); font-size: 15px; margin-top: 9px; }

.tile-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px; margin: 20px 0;
}
.tile {
  position: relative; border: 2px solid var(--border); background: var(--surface);
  border-radius: var(--radius); padding: 15px 9px 13px; text-align: center; cursor: pointer;
  font: inherit; color: var(--text); transition: none;
}
.tile:hover { border-color: var(--border-strong); background: var(--surface-2); }
.tile .t-no { font-size: 23px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.tile .t-desc {
  font-size: 11.5px; color: var(--text-dim); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tile .t-mark {
  display: block; margin-top: 8px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint);
}
/* Punched in — you found this one. Filled, not outlined: at arm's length the
   grid should read as "how much is done", and the gaps are the work left. */
.tile.is-in {
  border-color: var(--ok); background: var(--ok-soft);
}
.tile.is-in .t-no { color: var(--ok); }
.tile.is-in .t-mark { color: var(--ok); }
.tile.is-in .t-mark .ic { width: 15px; height: 15px; }

/* Not punched in yet. Faint, so it disappears into the page once everything
   around it is filled — the remaining gaps are what draws the eye. */
.tile.is-todo { border-color: var(--border); color: var(--text-dim); }
.tile.is-todo .t-no { color: var(--text-dim); font-weight: 600; }

.tile.is-gone { border-color: var(--out); background: var(--surface-2); }
.tile.is-gone .t-no, .tile.is-gone .t-mark { color: var(--out); }
.tile.is-carried { border-style: dashed; opacity: .5; cursor: default; }
.tile.is-carried:hover { border-color: var(--border); background: var(--surface); }

/* ---------- punch-in progress ---------- */

.punch-bar {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin: 18px 0 4px; padding: 11px 14px;
}
.punch-fill {
  position: absolute; inset: 0 auto 0 0;
  background: var(--ok-soft); border-right: 1px solid var(--ok);
  transition: width .12s linear;
}
.punch-bar.is-done .punch-fill { border-right: 0; }
.punch-text { position: relative; font-size: 14px; color: var(--text-dim); }
.punch-text b { color: var(--text); font-size: 16px; font-weight: 700; }
.punch-left { color: var(--warn); font-weight: 650; }
.punch-ok   { color: var(--ok); font-weight: 650; }

/* The un-punched list at review: compact, because on a bad night it can be
   long, and it still has to be readable as a list of numbers. */
.unpunched { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.unpunched span {
  border: 1px solid currentColor; border-radius: var(--radius-s);
  padding: 3px 8px; font-size: 12.5px; font-weight: 650;
}
.unpunched i { font-style: normal; font-weight: 500; opacity: .75; font-size: 11px; }

.hero-foot { margin-top: 16px; }

.wiz-bar {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 16px; margin-top: 18px;
}
.wiz-count { font-size: 14px; color: var(--text-dim); }
.wiz-count b { color: var(--text); font-size: 16px; }

/* ---------- verification cards ---------- */

.verify-card {
  border: 2px solid var(--warn); background: var(--surface);
  border-radius: var(--radius); padding: 20px; margin-bottom: 14px;
}
.verify-card.answered { border-color: var(--ok); padding: 15px 18px; }
.verify-card.refused  { border-color: var(--bad); }
.verify-who { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.verify-why { color: var(--text-dim); font-size: 14.5px; margin: 9px 0 16px; line-height: 1.5; }
.verify-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.verify-actions .btn { font-size: 14px; padding: 11px 18px; }
.verify-answer { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.verify-answer b { font-weight: 650; }

@media (max-width: 620px) {
  .hero { padding: 22px 16px; }
  .hero-title { font-size: 22px; }
  .wiz-q { font-size: 21px; }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .stat b { font-size: 28px; }
  .btn-huge { width: 100%; justify-content: center; }
}

/* ---------- the key board, as three columns ----------
   Middle is what's left to do and shrinks as you work; the side panels are the
   two answers you can give. Both panels stay narrow so the grid keeps the
   width — the middle is where the eyes are. */

.key-board {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 230px;
  gap: 14px;
  align-items: start;
  margin: 18px 0 0;
}
.kp-main { min-width: 0; }
.kp-main .tile-grid { margin: 0; }

.kp {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); position: sticky; top: 72px;
  max-height: calc(100vh - 150px); display: flex; flex-direction: column;
}
.kp-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 13px; border-bottom: var(--rule); font-size: 13px;
}
.kp-head .ic { width: 16px; height: 16px; }
.kp-head span {
  margin-left: auto; font-size: 12px; font-weight: 700;
  color: var(--text-faint); font-variant-numeric: tabular-nums;
}
.kp-checked .kp-head { color: var(--ok); }
.kp-contract .kp-head { color: var(--out); }

.kp-list { overflow-y: auto; padding: 7px; display: flex; flex-direction: column; gap: 5px; }
.kp-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 6px 8px; padding: 7px 9px;
  border: 1px solid var(--border); border-radius: var(--radius-s);
  background: var(--surface);
}
.kp-row.is-odd { border-color: var(--bad); background: var(--bad-soft); }
.kp-who { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.kp-no { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.kp-desc {
  font-size: 11px; color: var(--text-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kp-sub { grid-column: 1 / -1; font-size: 11px; color: var(--bad); }
.kp-undo { padding: 4px 8px; font-size: 11px; }
.kp-empty, .kp-note {
  padding: 12px 13px; font-size: 11.5px; color: var(--text-faint); line-height: 1.5;
}
.kp-note { border-top: var(--rule); }

.kp-done {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--ok); background: var(--ok-soft);
  border-radius: var(--radius); padding: 20px;
}
.kp-done .ic { width: 26px; height: 26px; color: var(--ok); flex: none; }

/* ---------- how the count was done ---------- */

.method-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.method-label {
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-faint);
}
.method-line b { font-size: 15px; }

/* A required field nobody has filled in yet. */
input.needs-value { border-color: var(--warn); }

/* ---------- choosing how to count ---------- */

.choice-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px; margin-top: 16px;
}
.choice {
  text-align: left; font: inherit; color: var(--text); cursor: pointer;
  border: 2px solid var(--border); background: var(--surface);
  border-radius: var(--radius); padding: 14px;
}
.choice:hover { border-color: var(--border-strong); }
.choice.is-rec { border-color: var(--accent); }
.choice-title { font-size: 15px; font-weight: 650; }
.choice-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 5px; line-height: 1.5; }

@media (max-width: 1080px) {
  /* Side panels below the grid rather than beside it — at this width they'd be
     too narrow to read a loaner number in. */
  .key-board { grid-template-columns: 1fr; }
  .kp { position: static; max-height: 320px; }
}
