/* PrimerEDU additions: field-journal tutor */
.opt { text-transform: none; letter-spacing: 0; font-size: 0.8rem; color: var(--muted); }
.age-pills { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.pill { border: 1px solid var(--rule); background: rgba(255,252,245,.8); border-radius: 999px; padding: 10px 18px; font-family: Fraunces, serif; font-size: 1.02rem; }
.pill.on { background: var(--moss); color: #f7f3ea; border-color: var(--moss-deep); }
.topic-row { margin-bottom: 4px; align-items: stretch; }
.topic-row input { flex: 1; min-width: 0; border: 1px solid var(--rule); border-radius: 10px; background: #fffaf1; padding: 10px 12px; }
.topic-row .secondary { flex: 0 0 auto; white-space: nowrap; }
#suggestStatus { margin: 4px 0 18px; min-height: 1em; }
.age-tag { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; }

.lesson { margin: 10px 0 4px; padding: 10px 14px; border-left: 3px solid var(--moss); background: linear-gradient(90deg, rgba(201,215,196,.45), transparent); border-radius: 0 10px 10px 0; }
.lesson-label { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.lesson p { margin: 0 0 8px; font-family: Fraunces, serif; font-size: 1.05rem; }
.progress { display: flex; gap: 6px; flex-wrap: wrap; }
.progress .step { font-size: .74rem; padding: 2px 9px; border-radius: 999px; border: 1px dashed var(--rule); color: var(--muted); }
.progress .step.on { border-style: solid; border-color: var(--moss); color: var(--moss-deep); background: rgba(201,215,196,.5); }

.tutor { position: relative; padding-top: 16px; }
.move-tag { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--moss-deep); background: rgba(201,215,196,.6); border-radius: 999px; padding: 2px 9px; margin-bottom: 8px; }
.answer .you { display: block; font-size: .9rem; color: var(--muted); font-style: italic; margin-bottom: 6px; }
.answer .thinking { color: var(--muted); animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }

.storyboard.n3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .storyboard.n3 { grid-template-columns: repeat(3, 1fr); } .storyboard.n1 { grid-template-columns: minmax(0, 420px); justify-content: center; } }
.frame { box-shadow: 0 1px 0 var(--shadow), 0 8px 18px -12px var(--shadow); transform: rotate(-.3deg); }
.frame:nth-child(2) { transform: rotate(.4deg); }
.frame .art { overflow: hidden; }
.frame .art img.layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease, filter 1.4s ease; filter: blur(3px) saturate(.6); }
.frame .art img.layer.shown { opacity: 1; filter: none; }
.frame .art img.layer-sketch.shown { filter: grayscale(.2) contrast(1.05); }
.frame .role { position: absolute; top: 8px; right: 8px; z-index: 3; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; background: var(--moss); color: #f7f3ea; border-radius: 999px; padding: 2px 8px; }
.frame .stage { z-index: 3; }
.frame figcaption { font-size: .95rem; color: var(--ink); }
.pending { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pencil { width: 46px; height: 2px; background: var(--ink-soft); border-radius: 2px; animation: scribble 1.1s ease-in-out infinite alternate; transform-origin: left; }
@keyframes scribble { from { transform: scaleX(.2) rotate(-4deg); } to { transform: scaleX(1) rotate(3deg); } }
.frame .cover { display: none; }
.frame.covered .cover { display: grid; place-items: center; position: absolute; inset: 0; z-index: 4; border: 0; background:
  repeating-linear-gradient(-35deg, rgba(122,109,92,.08) 0 2px, transparent 2px 9px), #efe4cd; color: var(--ink-soft); font-family: Fraunces, serif; font-size: 1.05rem; line-height: 1.5; padding: 12px; }
.frame.covered .stage, .frame.covered .role { z-index: 5; }
@media (prefers-reduced-motion: reduce) { .frame .art img.layer, .pencil, .answer .thinking { transition: none; animation: none; } }

.wonder { margin: 6px 0 10px; }
.wonder-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wonder-chip { border: 1px solid var(--rule); background: #fffaf1; border-radius: 14px; padding: 8px 12px; text-align: left; max-width: 100%; font-size: .98rem; }
.wonder-chip::before { content: "✦ "; color: var(--moss); }
.wonder-chip:hover { background: rgba(201,215,196,.4); }
.restyle { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .88rem; color: var(--ink-soft); margin: 4px 0; }
.small { padding: 5px 12px; font-size: .85rem; }

.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ghost-chip { border: 1px dashed var(--rule); background: rgba(255,252,245,.7); border-radius: 999px; padding: 5px 12px; font-size: .86rem; color: var(--ink-soft); }
.composer.voice-only .row { justify-content: center; }
.composer.voice-only .mic-big { width: 72px; height: 72px; flex-basis: 72px; }

.dev-panel { width: min(640px, 100%); max-height: min(86vh, 900px); overflow-y: auto; overflow-x: hidden; }
.dev-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dev-h { font-family: Fraunces, serif; font-weight: 500; font-size: 1rem; margin: 18px 0 6px; padding-top: 12px; border-top: 1px solid var(--rule); }
.pedagogy { display: grid; gap: 10px; margin-top: 8px; }
.ped-turn { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; background: rgba(243,234,216,.5); font-size: .9rem; overflow-wrap: anywhere; }
.ped-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ped-read { color: var(--muted); font-size: .8rem; }
.ped-q { margin: 4px 0; font-style: italic; color: var(--ink-soft); }
.ped-turn ul { margin: 6px 0; padding-left: 18px; }
.ped-small { margin: 3px 0; font-size: .8rem; color: var(--muted); }
#devModels p { margin: 3px 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .dev-panel { max-height: 88vh; } }
.masthead { flex-wrap: nowrap; }
.masthead > div { min-width: 0; }
.frame.covered figcaption { color: transparent; position: relative; }
.frame.covered figcaption::after { content: "What do you think?"; color: var(--muted); font-style: italic; position: absolute; left: 10px; top: 8px; }
#answer, #storyboard .frame, #storyboard figcaption, #picks .chip, #styleMenu .title, #restyle, #pedagogy, #styleCardText, .wonder-chip, #lessonGoal { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 480px) { .storyboard, .storyboard.n3 { grid-template-columns: minmax(0, 1fr); } }
