/* Домашняя лаборатория: голые листы со своей шапкой (план, материалы, «как исследуем», карточка, шаблон), журнал — обычный лист
   с полями «Имя / Дата». Ряды делят высоту поровну (minmax(0, 1fr)); текст карточки ужимается замером в app.js. */
.panel .check { display: block; margin: 4px 0; font-weight: 600; }
#ex-names, #ex-title { width: 100%; font: inherit; padding: 8px 10px; border: 1.5px solid #ddd3c2; border-radius: 10px; }
#ex-names { resize: vertical; margin-top: 6px; }
.ex-pick label span { font-size: 13px; font-weight: 600; }
.ex-have summary { cursor: pointer; font-weight: 800; }
.ex-have .hint { margin: 6px 0; }
.ex-emo { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; line-height: 1; font-weight: 400; }
.ex-empty { font-size: 14pt; text-align: center; color: #777; }

.ex-wrap { width: 100%; height: 100%; padding: 12mm 13mm 10mm; display: flex; flex-direction: column; color: #222; --acc: #2f7d5b; --tint: #e8f4ec; }
.ex-head { flex: none; display: flex; align-items: center; gap: 4mm; border-bottom: 1.2mm solid var(--acc); padding-bottom: 2.5mm; margin-bottom: 3mm; }
.ex-head > .ex-emo { font-size: 30pt; }
.ex-h1 { font: 600 22pt/1.1 var(--head); color: var(--acc); }
.ex-sub { font: 10.5pt/1.3 var(--body); color: #555; margin-top: 1mm; }
.ex-wrap p { margin: 0 0 1.6mm; }
.ex-wrap h3 { font: 600 13pt/1.2 var(--head); color: var(--acc); margin: 3mm 0 1.5mm; }
.ex-box { background: var(--tint); border-radius: 3mm; padding: 2mm 3.5mm; margin: 1mm 0 2mm; }
.ex-box p:last-child { margin-bottom: 0; }
.ex-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 700; font-size: .95em; }

/* план */
.ex-plan { flex: 1; min-height: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(var(--n), minmax(0, 1fr)); max-height: calc(var(--n) * 22mm); }
.ex-plan li { min-height: 0; display: flex; align-items: center; gap: 3mm; border-bottom: 1px dashed #c9d9cf; overflow: hidden; }
.ex-plan2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; column-gap: 6mm; max-height: calc(var(--n) * 30mm); }
.ex-plan2 b { font-size: 11pt; } .ex-plan2 span { font-size: 8.5pt; } .ex-plan2 .ex-emo { font-size: 13pt; width: 7mm; } .ex-plan2 .ex-li-n { width: 5mm; font-size: 11pt; }
.ex-li-n { flex: none; width: 7mm; font: 700 13pt var(--head); color: var(--acc); text-align: right; }
.ex-plan .ex-emo { flex: none; font-size: 16pt; width: 9mm; text-align: center; }
.ex-plan b { display: block; font: 600 12.5pt/1.15 var(--head); }
.ex-plan span { display: block; font-size: 9.5pt; color: #555; line-height: 1.25; }
.ex-note { flex: none; margin-top: 3mm !important; font-size: 10pt; color: #555; }

/* материалы */
.ex-mats { flex: none; list-style: none; margin: 0 0 3mm; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--n), auto); grid-auto-flow: column; column-gap: 6mm; }
.ex-mats li { display: flex; align-items: baseline; gap: 2mm; padding: 1.4mm 0; border-bottom: 1px solid #e3e3e3; font-size: 10pt; line-height: 1.25; }
.ex-mats i { flex: none; width: 3.6mm; height: 3.6mm; border: 1.3px solid #555; border-radius: 0.8mm; align-self: center; }
.ex-mats span { flex: 1; min-width: 0; }
.ex-mats b { flex: none; max-width: 45%; text-align: right; font-weight: 700; }
.ex-wrap > .ex-box { font-size: 10pt; line-height: 1.35; }

/* как исследуем */
.ex-method { font-size: 12pt; line-height: 1.4; }
.ex-method h3 { font-size: 15pt; margin-top: 5mm; }
.ex-steps5, .ex-steps { list-style: none; margin: 0 0 2mm; padding: 0; }
.ex-steps5 li, .ex-steps li { display: flex; gap: 2.5mm; align-items: flex-start; margin-bottom: 1.6mm; }
.ex-safe { margin: 0; padding-left: 5mm; }
.ex-safe li { margin-bottom: 1mm; }

/* карточка опыта */
.ex-fit { flex: 1; min-height: 0; overflow: hidden; font-size: 12pt; line-height: 1.32; }
.ex-diag { height: 34mm; display: flex; justify-content: center; margin: 0 0 2mm; color: #2a3a32; }
.ex-diag svg { height: 100%; width: auto; max-width: 100%; overflow: visible; }
.ex-diag text { font-family: var(--body); }
.ex-q { border: 1.4px dashed var(--acc); border-radius: 3mm; padding: 1.5mm 3mm; margin-top: 2mm !important; }
.ex-small { font-size: .85em; color: #666; }

/* журнал и дневник (обычный лист) */
.ex-journal { width: 100%; height: 100%; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 4mm; align-self: stretch; }
.ex-j { min-height: 0; border: 1.4px solid #9cc3ad; border-radius: 4mm; padding: 2.5mm 4mm; display: flex; flex-direction: column; overflow: hidden; }
.ex-j0 { border: 0; }
.ex-jt { flex: none; font: 600 13pt/1.15 var(--head); color: #2f7d5b; display: flex; gap: 2mm; align-items: center; }
.ex-jq { flex: none; font-size: 10pt; color: #444; margin-top: 1.5mm; }
.ex-lines { min-height: 0; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(7mm - 1px), #aaa calc(7mm - 1px), #aaa 7mm); }
.ex-lines.l2 { flex: 2; } .ex-lines.l3 { flex: 3; }
.ex-dwrap { width: 100%; height: 100%; display: flex; flex-direction: column; font-size: 10pt; line-height: 1.3; }
.ex-dwrap p { margin: 0 0 1.5mm; }
.ex-dline { font-weight: 700; }
.ex-diary { flex: none; width: 100%; border-collapse: collapse; table-layout: fixed; margin: 1mm 0 2.5mm; }
.ex-diary th, .ex-diary td { border: 1.2px solid #9cc3ad; padding: 1mm 1.5mm; }
.ex-diary th { background: #e8f4ec; font-size: 9pt; line-height: 1.2; font-weight: 700; }
.ex-diary th:first-child, .ex-diary td:first-child { width: 14mm; text-align: center; }
.ex-diary td { height: 9.5mm; }
.ex-dwrap .ex-lines { flex: 1; min-height: 14mm; }

/* шаблоны: настоящие миллиметры, без масштабирования */
.ex-tpl { font-size: 10.5pt; line-height: 1.35; }
.ex-scale svg, .ex-tpl-rotor svg, .ex-tpl-balance svg { display: block; }
.ex-scale { margin: 0 0 3mm; }
.ex-scale text, .ex-tpl text { font-family: var(--body); }
.ex-tpl-rotor { display: flex; gap: 20mm; justify-content: center; margin-top: 2mm; }
.ex-tpl-balance { display: flex; justify-content: center; margin-top: 6mm; }
