.phase-practice,.phase-pattern { width:min(100% - 2rem, 58rem); }
.phase-intro .tool-heading { margin-bottom:1.5rem; }
.phase-stage { border:1px solid #bcb5a8; border-radius:18px; padding:clamp(1rem,4vw,2.25rem); background:#faf6ed; max-width:100%; }
.phase-screen > p,.phase-pattern-body > p { max-width:65ch; }
.phase-progress { color:#585b51; font-size:.875rem; font-weight:600; margin:0 0 .6rem; }
.phase-question { font-size:clamp(1.6rem,4vw,2.35rem); line-height:1.15; margin:0 0 .8rem; scroll-margin-top:6rem; }
.phase-stage :focus-visible,.phase-reset :focus-visible { outline:3px solid #9e532d; outline-offset:4px; }
.phase-stage [hidden] { display:none !important; }
.phase-stage :is(p,dd,li,small) { overflow-wrap:anywhere; }
.phase-choices { padding:0; border:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:.55rem; margin:1rem 0; min-inline-size:0; }
.phase-choice { display:flex; align-items:flex-start; gap:.65rem; border:1px solid #aca89b; border-radius:10px; min-height:46px; padding:.65rem .75rem; cursor:pointer; line-height:1.35; background:#fffdf8; }
.phase-choice:has(:checked) { background:#e1e6db; border-color:#3e4d38; box-shadow:inset 0 0 0 1px #3e4d38; }
.phase-choice:has(:focus-visible) { outline:3px solid #9e532d; outline-offset:3px; }
.phase-choice input { accent-color:#3e4d38; margin:.2rem 0 0; width:18px; height:18px; flex:none; }
.phase-choice-text { min-width:0; overflow-wrap:anywhere; }
.phase-choice-text small { display:block; color:#585b51; font-size:.8125rem; margin-top:.2rem; }
.phase-field { display:grid; gap:.4rem; margin:1rem 0; font-weight:600; }
.phase-field :is(input,textarea) { width:100%; min-width:0; border:1px solid #88887c; border-radius:9px; background:#fffdf8; color:#22261f; padding:.7rem .8rem; font:400 1rem/1.5 Inter,system-ui,sans-serif; }
.phase-field textarea { resize:vertical; min-height:8rem; }
.phase-field input { min-height:44px; }
.phase-note { color:#585b51; font-size:.9rem; }
.phase-emergency { border-left:3px solid #3e4d38; padding-left:.8rem; }
.phase-example { margin:.6rem 0; }
.phase-example summary { text-decoration:underline; width:max-content; max-width:100%; cursor:pointer; min-height:44px; display:list-item; padding:.5rem 0; }
.phase-example p { margin:.25rem 0 .5rem; }
.phase-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; margin:1.35rem 0 .65rem; }
.phase-actions button,.phase-actions a { min-height:44px; text-align:center; }
.phase-quiet-button,.phase-text-link { color:#3e4d38; background:none; border:0; text-decoration:underline; padding:.55rem .25rem; font:inherit; cursor:pointer; line-height:1.35; }
.phase-text-link { display:inline-flex; align-items:center; min-height:44px; }
.phase-group-heading { font-family:Inter,system-ui,sans-serif; font-size:1rem; margin:1.25rem 0 -.45rem; }
.phase-hands { display:grid; gap:1rem; grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:1rem; }
.phase-hands > section,.phase-help-card { border:1px solid #aaa59a; border-radius:13px; padding:1rem; min-width:0; }
.phase-hands h3 { margin-top:0; font-size:1.1rem; }
.phase-hands .phase-choices { grid-template-columns:minmax(0,1fr); }
.phase-hand-sentence,.phase-emphasis,.phase-return { font-weight:600; color:#3e4d38; }
.phase-habit-mark { border-left:3px solid #3e4d38; padding:.35rem .7rem; font-weight:600; }
.phase-smuggler { border-top:1px solid #b9af9c; padding-top:1rem; }
.phase-screen input[type=range] { display:block; width:100%; accent-color:#3e4d38; min-height:44px; margin-top:.75rem; }
.phase-scale { display:flex; justify-content:space-between; font-size:.85rem; }
.phase-screen output { display:block; text-align:center; font-weight:600; margin-top:.5rem; }
.phase-reset { max-width:min(35rem,calc(100% - 2rem)); max-height:85dvh; overflow:auto; padding:clamp(1.25rem,5vw,2rem); border:1px solid #3e4d38; border-radius:16px; background:#efe9de; color:#22261f; }
.phase-reset::backdrop { background:#22261fa1; }
.phase-reset h2 { margin:0 0 .65rem; }

.phase-result-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:1rem; align-items:start; }
.phase-result-layout:has(.phase-help-card) { grid-template-columns:minmax(0,3fr) minmax(0,2fr); }
.practice-paper { background:#fff; color:#22261f; border:1px solid #aaa59a; border-radius:12px; padding:clamp(.95rem,3vw,1.35rem); }
.practice-paper-header { display:flex; align-items:center; gap: .65rem; border-bottom:1px solid #3e4d38; padding-bottom:.65rem; }
.practice-paper-header img { object-fit:contain; flex:none; }
.practice-paper-header h2 { font-size:1.65rem; margin:0; }
.practice-paper-label { font-family:Inter,sans-serif; font-size:.73rem; font-weight:600; letter-spacing:.06em; color:#9e532d; margin:0; }
.practice-paper-footer { border-top:1px solid #3e4d38; margin-top:1rem; padding-top:.45rem; display:flex; flex-wrap:wrap; justify-content:space-between; gap:.3rem 1rem; font-size:.75rem; color:#585b51; }
.phase-result-lines { margin:0; }
.phase-result-lines > div { border-top:.7pt solid #b9af9c; padding:.52rem 0; }
.phase-result-lines dt,.six-paper-lines dt { color:#3e4d38; font-weight:600; }
.phase-result-lines dd,.six-paper-lines dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.phase-print-title { display:none; }
.phase-help-card { background:#efe9de; }
.phase-help-card h3,.phase-pattern-result h3 { margin:.1rem 0 .45rem; }
.phase-help-card li { margin:.5rem 0; }
.phase-help-card a { color:#3e4d38; }
.phase-pattern-result { margin-top:1rem; border-top:1px solid #b9af9c; padding-top:1rem; }
.phase-next { margin-top:1.1rem; }
.phase-next .eyebrow { margin-bottom:.45rem; }
.six-paper-heading { display:flex; align-items:center; justify-content:space-between; }
.six-paper-heading h3 { margin:.4rem 0; color:#3e4d38; }
.six-paper-string { border-bottom:.7pt solid #b9af9c; padding:.25rem 0 .5rem; }
.six-paper-lines { margin:.1rem 0; }
.six-paper-lines > div { display:grid; grid-template-columns:3rem minmax(0,1fr); gap:.5rem; align-items:baseline; }

@media (max-width:620px) {
  .phase-hands,.phase-result-layout:has(.phase-help-card) { grid-template-columns:minmax(0,1fr); }
  .phase-practice,.phase-pattern { width:min(100% - 1.5rem, 58rem); }
}
@media print {
  @page { size:letter; margin:.58in; }
  body.phase-tool-page { color:#22261f; background:#fff; }
  body.phase-tool-page > :not(main), .phase-intro, .phase-reset,
  .phase-stage > :not(.phase-screen):not(.phase-result-layout),
  .phase-screen > :not(.six-paper), .phase-help-card,
  .phase-title-field,.six-paper-heading button { display:none !important; }
  body.phase-tool-page :is(main,.phase-practice,.phase-stage,.phase-screen,.phase-result-layout,.practice-paper) {
    width:auto; max-width:none; min-height:0; margin:0; padding:0; border:0; box-shadow:none; background:#fff; display:block;
  }
  body.phase-tool-page .practice-paper { font:400 10pt/1.25 Inter,Arial,sans-serif; color:#22261f; }
  .practice-paper-header h2 { font:600 25pt/1.12 "Source Serif 4",Georgia,serif; }
  .practice-paper-label { font-size:9pt; }
  .practice-paper-footer { font-size:8.5pt; gap:.1in; }
  .phase-print-title { display:block; font-weight:600; white-space:pre-wrap; overflow-wrap:anywhere; }
  .phase-result-lines > div { padding:5pt 0; }
  .six-paper-heading h3 { margin:0; font:600 13pt/1.15 "Source Serif 4",Georgia,serif; }
  .six-paper-string { padding:4pt 0; break-inside:avoid; }
  .six-paper-lines > div { grid-template-columns:34pt minmax(0,1fr); }
  .six-paper-lines { margin:2pt 0 0; }
}
