.phq-quiz {
    --phq-border: #d8dee8;
    --phq-text: #172033;
    --phq-muted: #5f6b7a;
    --phq-primary: #2563eb;
    --phq-primary-hover: #1d4ed8;
    --phq-danger: #b91c1c;
    max-width: 860px;
    margin: 24px auto;
    padding: 28px;
    background: #fff;
    color: var(--phq-text);
    border: 1px solid var(--phq-border);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    box-sizing: border-box;
}
.phq-quiz * { box-sizing: border-box; }
.phq-quiz [hidden] { display: none !important; }

.phq-login-required { text-align: center; }
.phq-login-required h2 { margin: 0 0 10px; }
.phq-login-required > p { max-width: 620px; margin: 0 auto 18px; color: var(--phq-muted); line-height: 1.55; }
.phq-login-required-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.phq-login-required .phq-registration-disabled { max-width: 620px; margin: 18px auto 0; color: var(--phq-text); text-align: left; }
.phq-account-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: -8px 0 24px; padding: 12px 14px; border-radius: 10px; background: #f8fafc; color: var(--phq-muted); font-size: .92rem; }
.phq-account-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phq-link-button { border: 0; padding: 0; background: transparent; color: var(--phq-primary); text-decoration: underline; cursor: pointer; font: inherit; }
.phq-selector h2, .phq-history h2 { margin-top: 0; }
.phq-selector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.phq-selector label, .phq-answer-label { display: grid; gap: 8px; font-weight: 650; }
.phq-selector select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--phq-border); border-radius: 8px; background: #fff; }
.phq-learning-memory { margin: 4px 0 18px; padding: 15px 16px; border: 1px solid #bfdbfe; border-radius: 10px; background: #f8fbff; }
.phq-selector .phq-learning-memory-option { display: flex; align-items: flex-start; gap: 10px; font-weight: 750; cursor: pointer; }
.phq-learning-memory-option input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; }
.phq-learning-memory-option input:disabled + span { color: var(--phq-muted); cursor: not-allowed; }
.phq-learning-memory p { margin: 8px 0 12px; color: var(--phq-muted); font-size: .92rem; line-height: 1.45; }
.phq-learning-memory-status { display: inline-block; min-height: 20px; margin-left: 10px; font-size: .9rem; font-weight: 700; vertical-align: middle; }
.phq-mode-actions, .phq-learning-actions, .phq-test-actions, .phq-finished-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.phq-test-count-panel { margin-top: 18px; padding: 20px; border: 1px solid #c4b5fd; border-radius: 12px; background: #faf5ff; }
.phq-test-count-panel h3 { margin: 0 0 8px; }
.phq-test-count-panel p { margin: 0 0 16px; color: var(--phq-muted); }
.phq-test-count-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.phq-test-count-actions label { min-width: 150px; }
.phq-test-count { width: 150px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--phq-border); border-radius: 8px; background: #fff; font: inherit; }
.phq-test-count:focus { border-color: var(--phq-primary); outline: 0; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.phq-test-count-message { min-height: 24px; margin-top: 10px; color: var(--phq-danger); font-weight: 650; }
.phq-registration-disabled { margin-top: 16px; padding: 12px; border: 1px solid #fde68a; border-radius: 8px; background: #fffbeb; }
.phq-loading { text-align: center; padding: 36px 10px; color: var(--phq-muted); }
.phq-top-row, .phq-progress-row, .phq-section-heading, .phq-review-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.phq-mode-badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #dbeafe; color: #1e40af; font-weight: 750; font-size: .85rem; }
.phq-timer { padding: 6px 11px; border-radius: 8px; background: #ecfdf5; color: #166534; font-variant-numeric: tabular-nums; font-weight: 800; }
.phq-timer-warning { background: #fef2f2; color: #b91c1c; }
.phq-progress-row { margin-top: 13px; color: var(--phq-muted); font-size: .95rem; }
.phq-meta { margin: 12px 0 4px; color: var(--phq-muted); font-size: .9rem; }
.phq-instruction, .phq-review-instruction { font-size: 1.05rem; line-height: 1.82; }
.phq-instruction img, .phq-review-instruction img { max-width: 100%; height: auto; }
.phq-content-math-inline { display: inline-block; width: auto; min-width: 0; margin: 0 .1em; padding: 0; border: 0; background: transparent; box-shadow: none; pointer-events: none; vertical-align: middle; font-size: 1.08em; }
.phq-content-math-display { display: block; width: fit-content; max-width: 100%; margin: .65em auto; padding: .2em .4em; border: 0; background: transparent; box-shadow: none; pointer-events: none; font-size: 1.2em; overflow-x: auto; }
.phq-illustration, .phq-review-image { margin: 20px 0; text-align: center; }
.phq-illustration img, .phq-review-image img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--phq-border); }
.phq-illustration figcaption { margin-top: 7px; color: var(--phq-muted); font-size: .9rem; }
.phq-formula-box, .phq-review-formula { margin: 18px 0; padding: 16px; text-align: center; border-radius: 10px; background: #f8fafc; }
.phq-formula { width: 100%; border: 0; background: transparent; font-size: 1.7rem; pointer-events: none; }
.phq-answer-label, .phq-answer-block { margin-top: 22px; }
.phq-answer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.phq-answer-title { font-weight: 650; }
.phq-answer { width: 100%; min-height: 56px; padding: 8px 12px; border: 2px solid #cbd5e1; border-radius: 9px; background: #fff; font-size: 1.35rem; }
.phq-answer:focus-within { border-color: var(--phq-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.phq-speech-button { flex: 0 0 auto; gap: 6px; min-height: 36px; padding: 7px 11px; }
.phq-speech-button.phq-speech-listening { border-color: #dc2626; background: #fef2f2; color: #b91c1c; }
.phq-speech-button.phq-speech-listening:hover { background: #fee2e2; }
.phq-speech-icon { font-size: 1rem; line-height: 1; }
.phq-speech-help, .phq-speech-unavailable { margin: 8px 2px 0; color: var(--phq-muted); font-size: .82rem; font-weight: 500; line-height: 1.45; }
.phq-speech-unavailable { color: #92400e; }
.phq-speech-status { min-height: 20px; margin: 7px 2px 0; color: #1e3a8a; font-size: .88rem; font-weight: 650; line-height: 1.4; }
.phq-speech-status-error { color: var(--phq-danger); }
@media (max-width: 520px) {
    .phq-answer-heading { align-items: flex-start; flex-wrap: wrap; }
    .phq-speech-button { margin-left: auto; }
}
.phq-button { appearance: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #b8c2d1; background: #fff; color: var(--phq-text); padding: 11px 15px; border-radius: 8px; font-weight: 680; cursor: pointer; text-decoration: none; }
.phq-button:hover { background: #f8fafc; }
.phq-button:disabled { opacity: .52; cursor: not-allowed; }
.phq-button-primary { border-color: var(--phq-primary); background: var(--phq-primary); color: #fff; }
.phq-button-primary:hover { background: var(--phq-primary-hover); color: #fff; }
.phq-button-test { border-color: #7c3aed; background: #7c3aed; color: #fff; }
.phq-button-test:hover { background: #6d28d9; color: #fff; }
.phq-button-danger { border-color: var(--phq-danger); color: var(--phq-danger); }
.phq-test-next.phq-button-last-disabled { border-color: #b8c2d1; background: #fff; color: var(--phq-muted); }
.phq-test-finish.phq-button-finish-active { border-color: var(--phq-primary); background: var(--phq-primary); color: #fff; opacity: 1; }
.phq-test-finish.phq-button-finish-active:hover,
.phq-test-finish.phq-button-finish-active:focus-visible { border-color: var(--phq-primary-hover); background: var(--phq-primary-hover); color: #fff; }
.phq-button-small { padding: 7px 10px; font-size: .88rem; }
.phq-feedback { min-height: 28px; margin-top: 15px; font-weight: 700; }
.phq-success { color: #15803d; }
.phq-error { color: #b91c1c; }
.phq-selector-message { margin-top: 12px; min-height: 24px; }
.phq-reveal-box { margin-top: 14px; padding: 13px 15px; border: 1px solid #bfdbfe; border-radius: 9px; background: #eff6ff; white-space: pre-wrap; overflow: visible; }
.phq-answer-caption { display: block; margin-bottom: 6px; font-weight: 750; }
.phq-choice-answer { display: inline-block; font-size: 1.3rem; font-weight: 800; line-height: 1.4; }
.phq-static-answer {
    display: inline-block;
    box-sizing: content-box;
    max-width: 100%;
    min-width: 70px;
    min-height: 2.05em;
    padding: .18em .14em .32em;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: 0;
    pointer-events: none;
    font-size: 1.45rem;
    line-height: 1.35;
    vertical-align: middle;
    overflow: visible;
    contain: none;
}
.phq-static-answer.phq-has-radical {
    min-height: 2.38em;
    padding-top: .32em;
    padding-bottom: .46em;
}
.phq-static-answer::part(container),
.phq-static-answer::part(content) {
    overflow: visible;
}
.phq-static-answer.phq-has-radical::part(container) {
    padding-block: .16em .24em;
}
.phq-static-answer-review { font-size: 1.25rem; }
.phq-explanation { width: 100%; min-height: 240px; margin-top: 18px; padding: 24px; border: 1px solid #c4b5fd; border-radius: 10px; background: #f5f3ff; overflow: visible; }
.phq-explanation-heading { margin-bottom: 14px; font-weight: 800; color: #5b21b6; }
.phq-explanation-content { min-height: 170px; line-height: 1.75; white-space: pre-wrap; overflow-x: auto; overflow-wrap: anywhere; }
.phq-explanation-notice { margin-top: 10px; color: var(--phq-muted); font-size: .85rem; }
.phq-finished { padding: 6px 0 20px; }
.phq-final-score { margin: 14px 0 24px; padding: 22px; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; text-align: center; }
.phq-result-number { font-size: 1.2rem; }
.phq-grade { margin-top: 10px; font-size: 1.1rem; }
.phq-result-meta { margin-top: 8px; color: var(--phq-muted); }
.phq-student-comment { margin: 0 0 24px; padding: 20px; border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff; }
.phq-student-comment h3 { margin: 0 0 7px; }
.phq-student-comment p { margin: 0 0 14px; color: var(--phq-muted); }
.phq-student-comment label { display: block; margin-bottom: 7px; font-weight: 750; }
.phq-student-comment-text { display: block; width: 100%; min-height: 120px; padding: 11px 12px; resize: vertical; border: 1px solid #94a3b8; border-radius: 8px; background: #fff; color: var(--phq-text); font: inherit; line-height: 1.5; }
.phq-student-comment-text:focus { border-color: var(--phq-primary); outline: 0; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.phq-student-comment-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.phq-comment-counter { color: var(--phq-muted); font-size: .9rem; }
.phq-comment-status { min-height: 22px; font-weight: 700; }
.phq-review { display: grid; gap: 18px; }
.phq-review > h3 { margin-bottom: 0; }
.phq-review-card { padding: 20px; border: 1px solid var(--phq-border); border-left-width: 5px; border-radius: 11px; background: #fff; }
.phq-review-correct { border-left-color: #16a34a; }
.phq-review-wrong { border-left-color: #dc2626; }
.phq-review-head { color: var(--phq-muted); }
.phq-review-answers { display: grid; grid-template-columns: minmax(130px, .35fr) 1fr; gap: 8px 16px; margin: 16px 0; padding: 14px; border-radius: 8px; background: #f8fafc; }
.phq-review-answers dt { font-weight: 750; }
.phq-review-answers dd { margin: 0; overflow-wrap: anywhere; }
.phq-review-explanation { margin-bottom: 0; }
.phq-section-heading { margin-bottom: 16px; }
.phq-section-heading h2 { margin: 0; }
.phq-table-wrap { overflow-x: auto; }
.phq-history h2 { font-size: clamp(1.8rem, 4vw, 2.35rem); line-height: 1.15; }
.phq-history-content { max-width: 700px; margin: 0 auto; container-type: inline-size; container-name: phq-history; }
.phq-history-table-wrap { width: 100%; border: 1px solid var(--phq-border); border-radius: 10px; background: #fff; overflow: hidden; }
.phq-history-table { width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .84rem; line-height: 1.25; }
.phq-history-table th, .phq-history-table td { min-width: 0; padding: 7px 7px; border: 0; border-bottom: 1px solid var(--phq-border); text-align: left; vertical-align: middle; overflow: hidden; }
.phq-history-table th { background: #f8fafc; color: var(--phq-muted); font-size: .72rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.phq-history-table th:nth-child(1) { width: 43%; }
.phq-history-table th:nth-child(2) { width: 19%; }
.phq-history-table th:nth-child(3) { width: 20%; }
.phq-history-table th:nth-child(4) { width: 18%; text-align: center; }
.phq-history-table tbody tr:nth-child(even) { background: #fbfdff; }
.phq-history-table tbody tr:hover { background: #f8fafc; }
.phq-history-table tbody tr:last-child td { border-bottom: 0; }
.phq-history-scope strong, .phq-history-scope span, .phq-history-date span, .phq-history-date small, .phq-history-score strong, .phq-history-score span { display: block; }
.phq-history-scope strong { margin-bottom: 2px; font-size: .86rem; line-height: 1.25; overflow-wrap: anywhere; }
.phq-history-scope span { color: var(--phq-muted); font-size: .75rem; line-height: 1.3; overflow-wrap: anywhere; }
.phq-history-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.phq-history-date small { margin-top: 1px; color: var(--phq-muted); font-size: .73rem; }
.phq-history-score { white-space: nowrap; text-align: center !important; font-variant-numeric: tabular-nums; }
.phq-history-score strong { font-size: .83rem; }
.phq-history-score span { margin-top: 2px; color: var(--phq-muted); font-size: .75rem; }
.phq-history-grade-action { text-align: center !important; white-space: nowrap; }
.phq-history-grade-actions { display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; }
.phq-history-grade-label { display: none; color: var(--phq-muted); font-size: .75rem; font-weight: 700; }
.phq-history-grade-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; padding: 3px 7px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-weight: 800; line-height: 1.2; }
.phq-history-detail.phq-button { width: 30px; min-width: 30px; height: 30px; padding: 0; border-radius: 999px; font-size: 1.2rem; line-height: 1; }
@container phq-history (max-width: 560px) {
    .phq-history-table-wrap { border: 0; background: transparent; overflow: visible; }
    .phq-history-table { display: block; font-size: .86rem; }
    .phq-history-table thead { display: none; }
    .phq-history-table tbody { display: grid; gap: 9px; }
    .phq-history-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding: 11px 12px; border: 1px solid var(--phq-border); border-radius: 9px; background: #fff; }
    .phq-history-table tbody tr:nth-child(even), .phq-history-table tbody tr:hover { background: #fff; }
    .phq-history-table td { display: block; width: auto; padding: 0; border: 0; overflow: visible; }
    .phq-history-scope { grid-column: 1 / -1; }
    .phq-history-date { grid-column: 1; grid-row: 2; }
    .phq-history-score { grid-column: 2; grid-row: 2; text-align: right !important; }
    .phq-history-grade-action { grid-column: 1 / -1; grid-row: 3; text-align: left !important; }
    .phq-history-grade-actions { display: flex; justify-content: space-between; }
    .phq-history-grade-label { display: inline; margin-right: auto; }
}
@media (max-width: 680px) {
    .phq-quiz { padding: 19px; }
    .phq-account-bar, .phq-top-row, .phq-progress-row, .phq-section-heading, .phq-review-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .phq-selector-grid { grid-template-columns: 1fr; }
    .phq-mode-actions, .phq-learning-actions, .phq-test-actions, .phq-finished-actions { display: grid; grid-template-columns: 1fr; }
    .phq-button { width: 100%; }
    .phq-review-answers { grid-template-columns: 1fr; }
    .phq-review-answers dd { margin-bottom: 8px; }
    .phq-history-content { max-width: none; }
    .phq-history-detail.phq-button { width: 30px; }
}

.phq-solution-line { margin: .55em 0; line-height: 1.9; }
.phq-solution-math {
    --caret-color: transparent;
    box-sizing: content-box;
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: 0;
    pointer-events: none;
    vertical-align: middle;
    overflow: visible;
    contain: none;
}
.phq-solution-math-inline {
    display: inline-block;
    width: auto;
    min-width: 0;
    min-height: 1.42em;
    margin: 0 .12em;
    padding: .08em .04em .18em;
    font-size: 1.08em;
    line-height: 1.28;
    vertical-align: -.18em;
}
.phq-solution-math-inline.phq-has-radical {
    min-height: 1.72em;
    margin-right: .18em;
    padding-top: .16em;
    padding-bottom: .28em;
    font-size: 1.14em;
}
.phq-solution-math-display {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: .65em auto;
    padding: .34em .5em .48em;
    font-size: 1.22em;
    overflow-x: auto;
    overflow-y: visible;
}
.phq-solution-math::part(container),
.phq-solution-math::part(content) {
    overflow: visible;
}
.phq-solution-math.phq-has-radical::part(container) {
    padding-block: .12em .2em;
}


/* Wzory osadzone wizualnym edytorem bezpośrednio w treści zadania. */
.phq-content-math {
    --caret-color: transparent;
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: 0;
    pointer-events: none;
}
.phq-content-math-inline {
    display: inline-block;
    width: auto;
    min-width: 0;
    margin: 0 .12em;
    padding: 0;
    font-size: 1.08em;
    vertical-align: middle;
}
.phq-content-math-block {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: .75em auto;
    padding: .2em .4em;
    font-size: 1.25em;
    overflow-x: auto;
}

/* Czytelniejsze wzory matematyczne osadzone w treści zadania. */
.phq-instruction .phq-content-math-inline,
.phq-review-instruction .phq-content-math-inline {
    min-height: 1.42em;
    margin: 0 .14em;
    padding: .04em .03em .1em;
    color: #0f172a;
    font-size: 1.22em;
    line-height: 1.18;
    vertical-align: -.16em;
}
.phq-instruction .phq-content-math-radical,
.phq-review-instruction .phq-content-math-radical {
    min-height: 1.5em;
    margin-right: .18em;
    font-size: 1.34em;
}
.phq-instruction .phq-content-math-display,
.phq-review-instruction .phq-content-math-display,
.phq-instruction .phq-content-math-block,
.phq-review-instruction .phq-content-math-block {
    width: fit-content;
    max-width: 100%;
    margin: .75em auto;
    padding: .42em .68em;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1.48em;
    line-height: 1.2;
}
@media (max-width: 680px) {
    .phq-instruction .phq-content-math-inline,
    .phq-review-instruction .phq-content-math-inline {
        font-size: 1.17em;
    }
    .phq-instruction .phq-content-math-radical,
    .phq-review-instruction .phq-content-math-radical {
        font-size: 1.28em;
    }
    .phq-instruction .phq-content-math-display,
    .phq-review-instruction .phq-content-math-display,
    .phq-instruction .phq-content-math-block,
    .phq-review-instruction .phq-content-math-block {
        padding: .35em .5em;
        font-size: 1.32em;
    }
}


/* Physics answer toolbar */
.phq-physics-answer-toolbar { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.phq-physics-key { appearance: none; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #0f172a; min-width: 42px; min-height: 36px; padding: 6px 10px; font: inherit; font-weight: 700; cursor: pointer; }
.phq-physics-key:hover, .phq-physics-key:focus-visible { border-color: #64748b; background: #f8fafc; outline: none; }
.phq-physics-answer-help { margin: 9px 0 0; color: var(--phq-muted); font-size: .9rem; line-height: 1.45; }
.phq-physics-answer-help code { white-space: nowrap; }

/* 1.0.6: ułamkowe jednostki osadzone na wspólnej linii bazowej.
   Liczba pozostaje kotwicą linii bazowej, a ułamek jednostki jest centrowany
   względem wysokości cyfr. Cały akapit ma stały line-height, więc m/s, N/kg,
   kg/m³ i m/s² nie tworzą niższych ani wyższych wierszy. */
.phq-physics-measurement,
.phq-physics-measurement-simple {
    display: inline;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit !important;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    vertical-align: baseline;
}
.phq-physics-number {
    font: inherit;
    font-variant-numeric: tabular-nums;
}
.phq-physics-unit-inline {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit !important;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    vertical-align: baseline;
    white-space: nowrap;
}
.phq-physics-measurement-fraction,
.phq-physics-measurement-inline {
    display: inline-flex;
    align-items: center;
    gap: .16em;
    white-space: nowrap;
    vertical-align: baseline;
    line-height: 1;
}
.phq-inline-unit-fraction {
    display: inline-grid;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    min-width: 1.28em;
    margin: 0 .04em;
    padding: 0;
    font-family: inherit;
    font-size: .80em;
    font-weight: inherit;
    font-style: normal;
    line-height: .76;
    vertical-align: middle;
    transform: translateY(-.02em);
    white-space: nowrap;
}
.phq-inline-unit-fraction-num,
.phq-inline-unit-fraction-den {
    display: block;
    min-width: 100%;
    padding: 0 .08em;
    text-align: center;
    white-space: nowrap;
}
.phq-inline-unit-fraction-num {
    padding-bottom: .13em;
    border-bottom: .06em solid currentColor;
}
.phq-inline-unit-fraction-den {
    padding-top: .13em;
}
.phq-physics-standalone-fraction {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    vertical-align: baseline;
    line-height: 1;
}
.phq-physics-baseline-anchor {
    display: inline-block;
    width: 0;
    overflow: hidden;
    font: inherit;
    line-height: 1;
}
.phq-physics-scientific-math {
    --caret-color: transparent;
    display: inline-block;
    box-sizing: content-box;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    pointer-events: none;
    line-height: 1;
    font-size: 1em;
    vertical-align: -.08em;
}
.phq-physics-scientific-math::part(container),
.phq-physics-scientific-math::part(content) {
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
}
.phq-instruction,
.phq-review-instruction {
    text-wrap: pretty;
}
.phq-instruction.phq-has-inline-unit-fractions,
.phq-review-instruction.phq-has-inline-unit-fractions {
    /* Stały rytm całego akapitu: identyczny odstęp również w wierszach bez ułamka. */
    line-height: 1.82;
}
.phq-static-measurement-answer {
    min-width: 0;
    width: auto;
    font-size: 1.34rem;
    line-height: 1.25;
    padding: .12em .08em .18em;
}
.phq-static-measurement-answer.phq-physics-measurement-fraction {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    vertical-align: baseline;
}
.phq-static-measurement-text {
    display: inline-block;
    font-size: 1.25rem;
    line-height: 1.4;
}
