.pet-welcome img{width:64px;height:64px}.pet-progress{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.pet-progress button{flex:1 1 180px;text-align:left;font-size:.9rem}.pet-progress button.active{background:#087b7b;color:white;outline:3px solid #9fe5da;outline-offset:2px}.pet-lesson-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:20px;align-items:start}.pet-plain-text{font-size:1.2rem;line-height:2.1;white-space:pre-wrap;user-select:text}.pet-task{position:sticky;top:15px}.pet-source{font-size:.92rem;border-top:1px solid #c7d9dc;margin-top:22px;padding-top:14px}.pet-targets{padding:12px;background:#eef9f5;border-left:4px solid #1c8a76;line-height:1.7}.pet-report{padding:14px 0;border-bottom:1px solid #c4d4d9}.pet-report summary{font-weight:700}.pet-report .preview{white-space:pre-wrap}.pet-report section.evidence{margin:12px 0}#petDraft{font-size:1.18rem;line-height:1.9;min-height:360px}#petStage details{margin:14px 0}#petStage input,#petStage textarea{max-width:100%}#petMessage:empty{display:none}@media(max-width:850px){.pet-lesson-grid{grid-template-columns:1fr}.pet-task{position:static}.pet-progress button{flex-basis:140px}.pet-plain-text{font-size:1.1rem}}
/* The model sits beside its task card, so adapt its inner annotation layout to
   the available column rather than only to the browser width. */
.pet-lesson-grid .pet-annotation-layout{grid-template-columns:1fr}
.pet-lesson-grid .pet-annotation-sidebar{max-height:420px}
.pet-sentence-frames{padding:16px;border:1px solid #b4d9d4;border-radius:12px;background:#f1fbf6}.pet-sentence-frames nav{margin:12px 0}.pet-sentence-frames textarea{background:white}.pet-sentence-frames button[data-pet-action=insertFrame]{margin-bottom:14px}
/* The completed exemplar is a read-only bridge into drafting and revision. */
.pet-completed-example{max-width:980px;margin-inline:auto}
.pet-example-legend{display:flex;flex-wrap:wrap;gap:.55rem 1.1rem;list-style:none;padding:0;font-size:.9rem;line-height:1.6}
.pet-example-legend li{display:flex;align-items:baseline;gap:.4rem}
.pet-example-legend span{font-weight:800;min-width:1.5rem;text-align:center}
.pet-legend-claim,.pet-legend-restatedClaim{color:#b91c1c}.pet-legend-transition{color:#8a6100;border:2px solid #c78c00;border-radius:3px}.pet-legend-reason{color:#1d4ed8;border-bottom:3px solid #1d4ed8}.pet-legend-evidence{color:#15803d;border-bottom:3px solid #15803d}
.pet-writing-layout{display:grid;grid-template-columns:minmax(280px,.95fr) minmax(0,1.15fr);gap:20px;align-items:start}
.pet-writing-layout.pet-reference-hidden{grid-template-columns:minmax(0,1fr)}
.pet-writing-content,.pet-writing-reference{min-width:0}
.pet-writing-reference{position:sticky;top:15px;max-height:calc(100vh - 35px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.pet-writing-reference[hidden]{display:none}
.pet-writing-reference h2{margin-top:0}
.pet-reference-controls{display:flex;justify-content:flex-start;margin-bottom:12px}
.pet-reference-close{display:none!important}
.pet-annotations-exemplar .pet-annotation-layout{display:block}
.pet-annotations-exemplar .pet-annotation-text{font-size:1.04rem;line-height:2.85;min-height:0}
.pet-annotations-exemplar .pet-annotation-status{display:none}
.pet-writing-content .pet-annotation-layout{grid-template-columns:1fr}
.pet-writing-content .pet-annotation-sidebar{max-height:360px}
.pet-model-directions details{border-bottom:1px solid #c7d9dc;padding-bottom:10px}
.pet-model-directions summary{font-weight:650}
@media(max-width:850px){
 .pet-writing-layout{display:block}
 .pet-writing-reference{position:fixed;inset:auto 12px 12px;max-height:65vh;z-index:30;box-shadow:0 10px 45px #16354a55;border:2px solid #087b7b;background:#fff}
 .pet-reference-close{display:block!important;margin:0 0 14px auto}
 .pet-writing-reference .pet-annotation-text{font-size:1rem}
}
