/* ==========================================================
   vazio. — página Plano (questionário + plano gerado)
   ========================================================== */

/* ---------- Questionário ---------- */
.wizard { max-width: 720px; margin: 0 auto; }
.wizard-head .eyebrow { margin-bottom: 10px; }
.progress { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 32px; }
.progress i { display: block; height: 100%; width: 25%; background: var(--accent); transition: width .3s ease; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step-title { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 28px; padding: 0; }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 24px; }
.options-4 { grid-template-columns: repeat(2, 1fr); }
.opt {
  text-align: left; padding: 16px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font-size: 15px; font-weight: 500; transition: border-color .2s ease, box-shadow .2s ease;
}
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.opt-tall { display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.opt-tall strong { font-size: 18px; font-weight: 600; }
.opt-tall small { color: var(--muted); font-size: 14px; font-weight: 400; }

.row-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.lbl { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.lbl span { opacity: .75; }
p.lbl { display: block; }
.lbl-range { flex-direction: row; justify-content: space-between; align-items: baseline; margin-top: 24px; }
.lbl-range output { color: var(--ink); font-size: 20px; }
.calc { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.days { display: flex; flex-wrap: wrap; gap: 8px; }
.day {
  width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-weight: 500;
}
.day[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.add-row { display: flex; gap: 8px; margin: 16px 0; }
.add-row .input { flex: 1; }
.materias { display: grid; gap: 8px; }
.mat {
  display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 12px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.mat-nome { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-sel { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mat-sel select { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 6px 8px; font-size: 14px; color: var(--ink); }
.mat-x { width: 32px; height: 32px; border-radius: 999px; border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--muted); }
.mat-x:hover { background: var(--surface-2); color: var(--ink); }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 36px; }
.form-error { color: #c0392b; font-size: 14px; min-height: 20px; margin: 12px 0 0; text-align: right; }

/* ---------- Plano gerado ---------- */
.plan-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.plan-title { font-size: clamp(36px, 5vw, 60px); }
.plan-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.plan-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; margin-bottom: 16px; }

.method-name { font-family: var(--font-display); font-weight: 400; font-size: 40px; margin: 0 0 8px; line-height: 1; }
.method-resumo { margin: 0 0 8px; font-weight: 500; }
.method-porque { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.method-card .lbl { margin: 0; }

.cycle { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cycle li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cycle li:last-child { border-bottom: 0; }
.cyc-nome { flex: 1; min-width: 0; }
.cyc-n { font-size: 13px; color: var(--muted); }
.cycle .cyc-warn { color: var(--mode-aquecer); font-size: 14px; border: 0; }

.week-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.legend-done { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.sw-done { background: var(--ink); opacity: .25; }
.sw-next { border: 2px solid var(--accent); }

.weekgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wd { min-width: 0; }
.wd-name { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.wd.is-today .wd-name { color: var(--accent); font-weight: 500; }
.wd ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wb {
  border-radius: 8px; padding: 8px 10px 8px 12px; background: var(--surface-2);
  border-left: 4px solid var(--c); display: flex; flex-direction: column; gap: 2px; min-width: 0;
  font-size: 13px; font-weight: 500;
}
.wb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb small { font-size: 11px; color: var(--muted); font-weight: 400; }
.wb.done { opacity: .4; }
.wb.done span::before { content: "✓ "; }
.wb.next { outline: 2px solid var(--accent); outline-offset: 1px; }
.wd-rest { font-size: 13px; color: var(--muted); margin: 0; padding: 8px 0; }

@media (max-width: 900px) {
  .plan-grid { grid-template-columns: 1fr; }
  .weekgrid { grid-template-columns: 1fr; gap: 14px; }
  .wd { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; }
  .wd-name { margin: 8px 0 0; }
}
@media (max-width: 560px) {
  .row-2 { grid-template-columns: 1fr; }
  .options-4 { grid-template-columns: 1fr; }
  .day { width: 44px; height: 48px; }
  .mat { grid-template-columns: auto 1fr auto; }
  .mat-sel { grid-column: 2 / span 1; }
  .mat .mat-x { grid-row: 1; grid-column: 3; }
  .plan-actions .btn { flex: 1; }
}
