/* Standup — the brief you read from, and the deck you present from. */

.standup-bar {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  padding: var(--s3) var(--s5);
  border-bottom: 1px solid var(--rule-soft);
}

.brief { display: grid; grid-template-columns: 1fr 300px; gap: var(--s6); align-items: start; }
@media (max-width: 900px) { .brief { grid-template-columns: 1fr; } }

.brief-section { margin-bottom: var(--s6); }
.brief-section > header {
  display: flex; align-items: baseline; gap: var(--s3);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s4);
}
.brief-section > header h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim);
}
.brief-section > header .n { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.brief-section.accent-blocker > header { border-bottom-color: var(--t-blocker); }
.brief-section.accent-blocker > header h3 { color: var(--t-blocker); }

.brief-item { padding: 0 0 var(--s4); }
.brief-item + .brief-item { border-top: 1px solid var(--rule-soft); padding-top: var(--s4); }
.brief-item h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.brief-item .meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); display: flex; gap: 10px; flex-wrap: wrap; }

.stat-row { display: flex; flex-wrap: wrap; gap: var(--s5); margin-bottom: var(--s5); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--font-mono); font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.stat span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.stat.warn b { color: var(--t-blocker); }
.stat.good b { color: var(--ok); }

.mini-card {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 13.5px;
}
.mini-card:last-child { border-bottom: 0; }
.mini-card .where { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); margin-left: auto; white-space: nowrap; }
.mini-card .due { font-family: var(--font-mono); font-size: 10px; }
.mini-card .due.overdue { color: var(--t-blocker); }

/* --- progress --------------------------------------------------------------- */

.progress-panel {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: var(--s6);
  align-items: center;
  padding: var(--s5);
  background: var(--ink-850);
  border: 1px solid var(--rule);
  border-radius: var(--r3);
  margin-bottom: var(--s5);
}
@media (max-width: 860px) { .progress-panel { grid-template-columns: 1fr; } }

.progress-headline { display: flex; align-items: baseline; gap: var(--s3); }
.progress-headline b {
  font-family: var(--font-mono);
  font-size: 46px; font-weight: 600; line-height: .9; letter-spacing: -.03em;
  color: var(--text);
}
.progress-headline span { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

.bar {
  height: 8px;
  background: var(--ink-600);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  margin-top: var(--s3);
}
.bar i { display: block; height: 100%; }
.bar i.done { background: var(--ok); }
.bar i.doing { background: var(--t-update); }
.bar i.blocked { background: var(--t-blocker); }

.progress-legend {
  display: flex; flex-wrap: wrap; gap: var(--s4);
  margin-top: var(--s3);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint);
}
.progress-legend b { color: var(--text); font-weight: 600; }
.progress-legend .up { color: var(--ok); }
.progress-legend .warn { color: var(--t-blocker); }

.list-bars { display: flex; flex-direction: column; gap: 7px; }
.list-bar { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.list-bar .name {
  flex: 0 0 130px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list-bar .track { flex: 1; height: 6px; background: var(--ink-600); border-radius: 4px; overflow: hidden; }
.list-bar .track i { display: block; height: 100%; background: var(--t-update); }
.list-bar.is-done .track i { background: var(--ok); }
.list-bar .n { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); width: 26px; text-align: right; }

/* --- the work, split into done and not ---------------------------------------- */

.work { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin-bottom: var(--s6); }
@media (max-width: 900px) { .work { grid-template-columns: 1fr; } }

.work-col {
  background: var(--ink-850);
  border: 1px solid var(--rule);
  border-radius: var(--r3);
  overflow: hidden;
}
.work-col > header {
  display: flex; align-items: center; gap: var(--s3);
  padding: 11px var(--s4);
  border-bottom: 1px solid var(--rule);
}
.work-col > header h3 {
  margin: 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim);
}
.work-col > header .n { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.work-col.open > header { border-bottom-color: var(--t-update); }
.work-col.done > header { border-bottom-color: var(--ok); }
.work-col .body { padding: var(--s3) var(--s4) var(--s4); max-height: 460px; overflow-y: auto; }

.group-head {
  display: flex; align-items: center; gap: 8px;
  margin: var(--s3) 0 4px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint);
}
.group-head:first-child { margin-top: 0; }
.group-head .rule { flex: 1; height: 1px; background: var(--rule-soft); }

.task {
  display: flex; align-items: baseline; gap: 9px;
  padding: 5px 0;
  font-size: 13.5px;
  cursor: pointer;
  border-bottom: 1px solid var(--rule-soft);
}
.task:last-child { border-bottom: 0; }
.task:hover { color: var(--text); }
.task .tick { color: var(--ok); flex: 0 0 auto; }
.task .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rule-strong); flex: 0 0 auto; transform: translateY(-2px); }
.task .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task.is-done .t { color: var(--text-dim); }
.task .meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); white-space: nowrap; }
.task .meta.overdue { color: var(--t-blocker); }

.quick-add {
  display: flex; gap: 6px; align-items: center;
  margin: 6px 0 2px;
}
.quick-add input {
  flex: 1;
  background: var(--ink-800);
  border: 1px dashed var(--rule);
  border-radius: var(--r2);
  padding: 5px 9px;
  font-size: 13px;
  outline: none;
}
.quick-add input:focus { border-style: solid; border-color: var(--rule-strong); background: var(--ink-700); }

/* --- deck ------------------------------------------------------------------ */

.deck {
  position: fixed; inset: 0; z-index: var(--z-deck);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255,176,32,.05), transparent 60%),
    var(--ink-900);
  display: flex; flex-direction: column;
}

.deck-slide {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 6vh 7vw 3vh;
  animation: slide-in .22s ease-out;
}
@keyframes slide-in { from { opacity: 0; transform: translateY(10px); } }

.deck-eyebrow {
  display: flex; align-items: baseline; gap: var(--s4);
  margin-bottom: var(--s5);
}
.deck-eyebrow h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--signal);
}
.deck-eyebrow .n { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }

.deck-list { max-width: 1100px; display: flex; flex-direction: column; gap: var(--s5); }

.deck-item h3 { margin: 0 0 6px; font-size: clamp(20px, 2.1vw, 30px); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.deck-item .prose { font-size: clamp(15px, 1.25vw, 19px); color: #c9d0de; }
.deck-item .meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }

.deck-cover { display: flex; flex-direction: column; justify-content: center; height: 100%; max-width: 1100px; }
.deck-cover .kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--signal); margin-bottom: var(--s4); }
.deck-cover h1 { margin: 0 0 var(--s3); font-size: clamp(34px, 5vw, 68px); font-weight: 600; letter-spacing: -.03em; line-height: 1.02; }
.deck-cover .sub { font-family: var(--font-mono); font-size: 14px; color: var(--text-dim); margin-bottom: var(--s7); }

.deck-foot {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s3) 7vw;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
}
.deck-foot .pct { color: var(--ok); }

/* The run of the whole project, under every slide. */
.deck-progress { flex: 0 0 auto; height: 3px; background: var(--ink-700); display: flex; }
.deck-progress i { display: block; height: 100%; background: var(--ok); }

.deck-stats { display: flex; flex-wrap: wrap; gap: var(--s6); margin: var(--s5) 0; }
.deck-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 56px); font-weight: 600; line-height: .95; letter-spacing: -.03em;
}
.deck-stat span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-faint);
}
.deck-stat.good b { color: var(--ok); }
.deck-stat.warn b { color: var(--t-blocker); }

.deck-bars { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.deck-bars .list-bar .name { flex: 0 0 200px; font-size: 12px; }
.deck-bars .list-bar .track { height: 10px; }
.deck-bars .list-bar .n { font-size: 14px; width: 40px; }

.deck-tasks { columns: 2; column-gap: var(--s6); max-width: 1100px; }
@media (max-width: 900px) { .deck-tasks { columns: 1; } }
.deck-tasks .task { break-inside: avoid; font-size: clamp(14px, 1.15vw, 17px); cursor: default; }
.deck-tasks .group-head { break-after: avoid; font-size: 11px; }
.deck-more { margin-top: var(--s4); color: var(--text-faint); font-family: var(--font-mono); font-size: 12px; }
.deck-dots { display: flex; gap: 5px; }
.deck-dots button {
  width: 7px; height: 7px; padding: 0; border-radius: 50%;
  background: var(--rule-strong); border: 0; cursor: pointer;
}
.deck-dots button.on { background: var(--signal); }
.deck-dots button.empty { opacity: .35; }

.deck-empty { color: var(--text-faint); font-size: clamp(16px, 1.6vw, 22px); font-family: var(--font-serif); }
