/* =============================================================================
 * Blueprint app — decision moments
 *
 * Styles for the points where people decide or hesitate:
 *   .upnext        Home's lead card: "where am I going next?" + live countdown
 *   .confirm-job   who/where a write lands, so the wrong job is obvious before saving
 *   .saved-mark    the moment a write lands (tick draws in, card settles)
 *   .choices-card  "did you mean…?" when Cory isn't sure, never a guess
 *   .suggest       what to say when the mic is idle
 * ============================================================================= */

/* ─── Up next ────────────────────────────────────────────────────────────── */

.upnext {
  border-radius: var(--r-lg);
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--navy);
  color: var(--ink-inv);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.upnext-main { display: block; padding: 16px 16px 12px; }
.upnext-when {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E3C9A6;
}
.upnext-title {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-2xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.upnext-sub { display: block; margin-top: 4px; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.75); }
.upnext-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 8px;
  padding: 0 12px 12px;
}
.upnext-actions > * {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--tap);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink-inv);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.upnext-actions svg { width: 17px; height: 17px; }
.upnext-actions > *:active { background: rgba(255, 255, 255, 0.18); }
.upnext .upnext-brief { background: var(--blue); box-shadow: 0 6px 14px -6px rgba(30, 91, 255, 0.9); }
.upnext :focus-visible { box-shadow: 0 0 0 2px var(--navy), 0 0 0 4.5px #8FB0FF; }

.time-chip { width: auto; min-width: 66px; white-space: nowrap; text-align: left; color: var(--ink); }

/* ─── Confirm: identity + the saved moment ───────────────────────────────── */

.confirm-job {
  padding: 8px 14px 0;
  font-size: var(--fs-xs);
  color: var(--ink-2);
}
.confirm.done .confirm-job { display: none; }

.saved-mark {
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--go);
  color: var(--ink-inv);
  animation: pop 420ms cubic-bezier(0.3, 1.6, 0.5, 1);
}
.confirm-head .saved-mark svg { color: var(--ink-inv); width: 13px; height: 13px; stroke-width: 3.2; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw-tick 360ms 120ms var(--ease) forwards; }
.confirm.saved { border-color: var(--go); }
.confirm.saved .confirm-head { background: var(--go-50); color: var(--go-600); }
@keyframes pop { 0% { transform: scale(0.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes draw-tick { to { stroke-dashoffset: 0; } }

/* ─── Did you mean…? ─────────────────────────────────────────────────────── */

.choices-card { display: grid; gap: 8px; }
.choice-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  text-align: left;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-1);
}
.choice-opt:first-child { border-color: var(--navy); }
.choice-opt b { font-size: var(--fs-md); }
.choice-opt span { font-size: var(--fs-sm); color: var(--ink-2); }
.choice-opt:active { background: var(--surface-2); }

/* ─── Idle suggestions ───────────────────────────────────────────────────── */

.suggest {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.suggest:empty { display: none; }
.suggest-label {
  width: 100%;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
}
.suggest-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  animation: enter var(--t-med) var(--ease);
}
.suggest-chip:active { background: var(--paper-2); }
.suggest-chip:focus-visible { border-radius: var(--r-pill); }

.choices-card.answered .choice-opt:not(.picked) { opacity: 0.45; pointer-events: none; }
.choices-card.answered .choice-opt.picked { border-color: var(--navy); background: var(--surface-2); pointer-events: none; }

.voice-thread { scrollbar-width: none; }
.voice-thread::-webkit-scrollbar { display: none; }
