.practical-source-card,
.practical-preview-task {
    display: grid;
    gap: 10px;
}

.practical-source-card [data-practical-lang="zh"],
.practical-preview-task [data-practical-lang="zh"] {
    display: none;
}

html[data-language="zh"] .practical-source-card [data-practical-lang="en"],
html[data-language="zh"] .practical-preview-task [data-practical-lang="en"] {
    display: none;
}

html[data-language="zh"] .practical-source-card [data-practical-lang="zh"],
html[data-language="zh"] .practical-preview-task [data-practical-lang="zh"] {
    display: inline;
}

.practical-source-summary {
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
}

.practical-card-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1.12fr) minmax(360px, .88fr);
    min-width: 0;
}

.practical-card-layout.is-text-only {
    grid-template-columns: 1fr;
}

.practical-source-card.is-chemistry-practical .practical-card-layout {
    align-items: start;
}

@media (min-width: 769px) {
    .practical-source-card.is-chemistry-practical .practical-card-layout:not(.is-text-only) {
        grid-template-columns: minmax(0, 1fr) minmax(280px, .45fr);
    }

    .practical-source-card.is-chemistry-practical .practical-card-layout:not(.is-text-only)::before {
        content: "";
        grid-column: 2;
        grid-row: 1;
        align-self: stretch;
        justify-self: start;
        width: 1px;
        background: #dbe3ee;
        pointer-events: none;
        z-index: 1;
    }

    .practical-source-card.is-chemistry-practical .practical-card-layout:not(.is-text-only) > .practical-setup-gallery {
        grid-column: 1;
        grid-row: 1;
    }

    .practical-source-card.is-chemistry-practical .practical-card-layout:not(.is-text-only) > .practical-info-column {
        grid-column: 2;
        grid-row: 1;
        border-left: 0;
    }
}

.practical-info-column {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border-left: 1px solid #dbe3ee;
    background: #f8fafc;
}

.practical-card-layout.is-text-only .practical-info-column {
    border-left: 0;
}

.practical-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.practical-setup-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    margin: 0;
    min-width: 0;
    padding: 10px;
    align-content: start;
    background: #fff;
}

.practical-setup-gallery.is-multiple {
    grid-template-columns: 1fr;
}

.practical-setup-gallery > div {
    display: grid;
    overflow: hidden;
    border: 0;
    border-radius: 7px;
    background: #fff;
}

.practical-setup-gallery img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #fff;
}

.practical-setup-gallery.is-multiple img {
    height: 200px;
}

.practical-source-card.is-chemistry-practical .practical-setup-gallery img {
    justify-self: center;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.paper5-quick-preview {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(260px, .84fr);
    min-height: 230px;
    background: #fff;
}

.paper5-quick-preview[data-question-role="q1"] {
    display: block;
    min-height: 0;
}

.paper5-quick-preview[data-question-role="q2"] {
    display: block;
    min-height: 0;
}

.paper5-q1-content {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr);
    min-width: 0;
}

.paper5-q2-content {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
    min-width: 0;
}

.paper5-preview-figure {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
    margin: 0;
    padding: 14px;
    place-items: center;
    background: #fff;
}

.paper5-quick-preview:not([data-question-role="q1"]) .paper5-preview-figure {
    border-right: 1px solid #e2e8f0;
}

.paper5-preview-figure > div {
    display: grid;
    width: 100%;
    place-items: center;
}

.paper5-preview-figure img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: contain;
    background: #fff;
}

.paper5-q1-title {
    display: flex;
    gap: 9px;
    align-items: center;
    min-width: 0;
    padding: 11px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.paper5-q2-title {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 11px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.paper5-q1-title > span,
.paper5-q2-equation > span,
.paper5-q2-plot > span,
.paper5-q2-table-focus > span,
.paper5-q2-precision > span {
    width: max-content;
    padding: 3px 7px;
    border-radius: 999px;
    background: #ccfbf1;
    color: #115e59;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.paper5-q1-title > strong {
    min-width: 0;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.3;
}

.paper5-q2-title > strong {
    min-width: 0;
    color: #0f172a;
    font-size: 16.5px;
    line-height: 1.3;
}

.paper5-quick-preview[data-question-role="q1"] .paper5-preview-figure img {
    height: auto;
    max-height: 600px;
}

.paper5-preview-figure.is-missing {
    color: #64748b;
    font-size: 13px;
}

.paper5-q2-copy {
    display: grid;
    align-content: center;
    gap: 14px;
    min-width: 0;
    padding: 17px 16px;
    background: #fbfcfe;
}

.paper5-q2-plot,
.paper5-q2-equation,
.paper5-q2-table-focus,
.paper5-q2-precision {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.paper5-q2-equation-visual {
    display: flex;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
}

.card-summary .paper5-q2-equation-visual img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 42px;
    margin: 0;
    mix-blend-mode: multiply;
    object-fit: contain;
    object-position: left center;
}

.card-summary .paper5-q2-equation-visual.is-source-compact img {
    height: 22px;
}

.card-summary .paper5-q2-equation-visual.is-source-standard img {
    height: 29px;
}

.card-summary .paper5-q2-equation-visual.is-source-tall img {
    height: 36px;
}

.paper5-q2-facts {
    display: grid;
    gap: 10px;
}

.paper5-q2-value {
    min-width: 0;
    margin: 0;
}

.paper5-math-expression,
.paper5-inline-math,
.paper5-derived-value,
.paper5-inline-copy {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.paper5-math-expression {
    font-size: inherit;
}

.paper5-math-symbol,
.paper5-math-operator,
.paper5-math-power,
.paper5-slash-fraction {
    font-family: "Times New Roman", "Cambria Math", serif;
}

.paper5-math-symbol {
    font-style: italic;
}

.paper5-math-operator {
    font-style: normal;
}

.paper5-math-power {
    display: inline;
    font-style: normal;
    white-space: nowrap;
}

.paper5-math-power sup {
    position: relative;
    top: -.42em;
    padding-left: .02em;
    font-size: .72em;
    line-height: 0;
    vertical-align: baseline;
}

.paper5-slash-fraction {
    display: inline;
    margin: 0 .08em;
    color: inherit;
    font-family: "Times New Roman", "Cambria Math", serif;
    line-height: inherit;
    white-space: nowrap;
}

.paper5-q1-summary {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border-left: 1px solid #e2e8f0;
    background: #fbfcfe;
}

.paper5-measurement-summary {
    display: grid;
    min-width: 0;
}

.paper5-measurement-summary ul {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.paper5-measurement-summary li {
    display: grid;
    gap: 6px;
}

.paper5-measurement-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.paper5-measurement-tools > span {
    padding: 3px 6px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.paper5-measurement-tools > span[data-measurement-kind="length"] {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.paper5-measurement-tools > span[data-measurement-kind="angle"] {
    border-color: #a5f3fc;
    background: #ecfeff;
    color: #0e7490;
}

.paper5-measurement-tools > span[data-measurement-kind="mass"] {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.paper5-measurement-tools > span[data-measurement-kind="force"] {
    border-color: #fde68a;
    background: #fffbeb;
    color: #a16207;
}

.paper5-measurement-tools > span[data-measurement-kind="time-frequency"] {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

.paper5-measurement-tools > span[data-measurement-kind="field"] {
    border-color: #fbcfe8;
    background: #fdf2f8;
    color: #be185d;
}

.paper5-measurement-tools > span[data-measurement-kind="electric"] {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.paper5-measurement-tools > span[data-measurement-kind="volume"] {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
}

.paper5-measurement-tools > span[data-measurement-kind="temperature"] {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.paper5-measurement-tools > span[data-measurement-kind="flow"] {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}

.paper5-measurement-tools > span[data-measurement-kind="pressure"] {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
}

.paper5-measurement-summary li > p {
    margin: 0;
}

.paper5-plan-detail-summary {
    display: grid;
    min-width: 0;
    margin-top: 3px;
    padding-top: 16px;
    border-top: 1px solid #dbe4ee;
}

.paper5-plan-detail-summary > div {
    display: grid;
    gap: 15px;
}

.paper5-plan-detail-summary article {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
}

.paper5-plan-detail-summary article > span {
    display: inline-flex;
    width: 56px;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.paper5-plan-detail-summary article[data-summary-category="analysis_route"] > span {
    background: #ede9fe;
    color: #5b21b6;
}

.paper5-plan-detail-summary article[data-summary-category="quality_detail"] > span {
    background: #ccfbf1;
    color: #115e59;
}

.paper5-plan-detail-summary article[data-summary-category="safety_detail"] > span {
    background: #ffedd5;
    color: #9a3412;
}

.paper5-plan-detail-summary article > p {
    min-width: 0;
    margin: 0;
}

.paper5-measurement-summary li > p,
.paper5-plan-detail-summary article > p,
.paper5-q2-value {
    color: #1e293b;
    font-family: inherit;
    font-size: 12.75px;
    font-weight: 400;
    line-height: 1.5;
}

.practical-axis-list {
    display: grid;
    gap: 6px;
}

.practical-axis {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
}

.practical-axis > strong {
    padding-top: 4px;
    color: #475569;
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.practical-source-card.is-chemistry-practical .practical-axis {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
}

.practical-source-card.is-chemistry-practical .practical-axis > strong {
    padding-top: 0;
}

.practical-tag {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 8px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 10.5px;
    line-height: 1.2;
}

.practical-tag[data-practical-group="instrument"] {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #5b21b6;
}

.practical-tag[data-practical-group="question"] {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.practical-tag[data-practical-group="skill"] {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
}

.practical-tag[data-practical-group="type"] {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
}

.practical-tag[data-practical-group="chemical"] {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.practical-tag[data-practical-group="observation"] {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.practical-evaluation-summary {
    display: grid;
    gap: 4px;
    padding-top: 7px;
    border-top: 1px solid #e2e8f0;
}

.practical-evaluation-summary-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.practical-evaluation-summary-head strong {
    color: #334155;
    font-size: 10.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.practical-evaluation-summary-head span,
.practical-evaluation-summary > small {
    color: #94a3b8;
    font-size: 9.5px;
}

.practical-evaluation-summary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.practical-evaluation-summary-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border: 1px solid var(--evaluation-border, #99f6e4);
    border-radius: 6px;
    background: var(--evaluation-bg, #f0fdfa);
    color: var(--evaluation-text, #115e59);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.2;
}

[data-evaluation-theme="evidence"] {
    --evaluation-dot: #3b82f6;
    --evaluation-border: #93c5fd;
    --evaluation-bg: #eff6ff;
    --evaluation-text: #1e40af;
}

[data-evaluation-theme="observation"] {
    --evaluation-dot: #8b5cf6;
    --evaluation-border: #c4b5fd;
    --evaluation-bg: #f5f3ff;
    --evaluation-text: #5b21b6;
}

[data-evaluation-theme="control"] {
    --evaluation-dot: #14b8a6;
    --evaluation-border: #5eead4;
    --evaluation-bg: #f0fdfa;
    --evaluation-text: #115e59;
}

[data-evaluation-theme="motion"] {
    --evaluation-dot: #f97316;
    --evaluation-border: #fdba74;
    --evaluation-bg: #fff7ed;
    --evaluation-text: #9a3412;
}

[data-evaluation-theme="material"] {
    --evaluation-dot: #e11d48;
    --evaluation-border: #fda4af;
    --evaluation-bg: #fff1f2;
    --evaluation-text: #9f1239;
}

.option-item[data-evaluation-theme] .option-theme-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 999px;
    background: var(--evaluation-dot, #14b8a6);
}

.option-item[data-evaluation-theme].is-selected {
    background: var(--evaluation-bg, #f0fdfa);
    color: var(--evaluation-text, #115e59);
}

.practical-inventory {
    display: grid;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.practical-overview-inventory {
    padding: 10px 12px;
    border-bottom: 1px solid #dbe3ee;
    background: #f8fafc;
}

.practical-overview-inventory .practical-inventory {
    padding-top: 0;
    border-top: 0;
}

.practical-inventory-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.practical-inventory-head strong {
    color: #334155;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.practical-inventory-head span {
    color: #94a3b8;
    font-size: 9.5px;
    text-align: right;
}

.practical-inventory-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 7px 12px;
}

.practical-source-card.is-chemistry-practical .practical-inventory-groups {
    gap: 10px 18px;
}

.practical-source-card.is-chemistry-practical .practical-inventory-group:not([data-usage-state="provided_active"]) {
    margin-top: 2px;
}

.practical-inventory-group {
    display: grid;
    gap: 3px;
    flex: 0 1 auto;
    min-width: 0;
}

.practical-inventory-group[data-usage-state="provided_active"] {
    flex: 1 0 100%;
}

.practical-inventory-group-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
}

.practical-inventory-group-label > span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 999px;
    background: #3b82f6;
}

.practical-inventory-group-label small {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 600;
}

.practical-inventory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.practical-inventory-chip {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 3px 7px;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    background: #eff6ff;
    color: #1e3a5f;
    font-size: 10.25px;
    line-height: 1.25;
}

.practical-inventory-chip small {
    margin-left: 4px;
    color: inherit;
    font-size: 9px;
    font-weight: 700;
    opacity: .72;
}

.practical-inventory-chip.is-common-support-set {
    border-color: #cbd5e1;
    background: #fff;
    color: #475569;
}

.practical-inventory-group[data-usage-state="provided_setup_only"] .practical-inventory-group-label > span {
    background: #8b5cf6;
}

.practical-inventory-group[data-usage-state="provided_setup_only"] .practical-inventory-chip {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #5b21b6;
}

.practical-inventory-group[data-usage-state="provided_unused"] .practical-inventory-group-label > span {
    background: #94a3b8;
}

.practical-inventory-group[data-usage-state="provided_unused"] .practical-inventory-chip {
    border-color: #cbd5e1;
    border-style: dashed;
    background: #f8fafc;
    color: #64748b;
}

.practical-inventory-group[data-usage-state="safety_cleanup"] .practical-inventory-group-label > span {
    background: #f59e0b;
}

.practical-inventory-group[data-usage-state="safety_cleanup"] .practical-inventory-chip {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.practical-inventory-group[data-usage-state="planned_required"],
.practical-inventory-group[data-usage-state="scenario_only"] {
    flex: 1 0 100%;
}

.practical-inventory-group[data-usage-state="planned_primary"] .practical-inventory-group-label > span {
    background: #0f766e;
}

.practical-inventory-group[data-usage-state="planned_primary"] .practical-inventory-chip {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #115e59;
}

.practical-inventory-group[data-usage-state="planned_alternative"] .practical-inventory-group-label > span {
    background: #8b5cf6;
}

.practical-inventory-group[data-usage-state="planned_alternative"] .practical-inventory-chip {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #5b21b6;
}

.practical-inventory-group[data-usage-state="planned_optional_detail"] .practical-inventory-chip,
.practical-inventory-group[data-usage-state="scenario_only"] .practical-inventory-chip {
    border-color: #cbd5e1;
    border-style: dashed;
    background: #f8fafc;
    color: #475569;
}

.paper5-assessment-outline {
    display: grid;
    gap: 7px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.paper5-assessment-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: start;
}

.paper5-assessment-head > div {
    display: grid;
    gap: 1px;
}

.paper5-assessment-head strong {
    color: #334155;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.paper5-assessment-head span,
.paper5-assessment-head b {
    color: #0f766e;
    font-size: 9.5px;
}

.paper5-assessment-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.paper5-assessment-sections article {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 6px 7px;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    background: #f8fbff;
}

.paper5-assessment-sections header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 5px;
    align-items: baseline;
}

.paper5-assessment-sections header span,
.paper5-assessment-sections header b {
    color: #0f766e;
    font-size: 9px;
}

.paper5-assessment-sections header strong {
    overflow: hidden;
    color: #1e293b;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.paper5-assessment-sections p,
.paper5-assessment-sections small {
    margin: 0;
    color: #64748b;
    font-size: 9.25px;
    line-height: 1.35;
}

.paper5-assessment-detail {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #99f6e4;
    border-radius: 9px;
    background: #f8fffd;
}

.paper5-assessment-detail > header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.paper5-assessment-detail > header strong {
    color: #134e4a;
    font-size: 16px;
}

.paper5-assessment-detail > header b {
    color: #0f766e;
    font-size: 12.5px;
}

.paper5-assessment-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.paper5-assessment-detail-grid article {
    display: grid;
    gap: 6px;
    padding: 12px 0;
    border-top: 1px solid #ccfbf1;
}

.paper5-assessment-detail-grid article > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: baseline;
}

.paper5-assessment-detail-grid article > div b,
.paper5-assessment-detail-grid article > small {
    color: #0f766e;
    font-size: 12px;
}

.paper5-assessment-detail-grid article > div strong {
    color: #1e293b;
    font-size: 14.5px;
}

.paper5-assessment-detail-grid article > p {
    margin: 0;
    color: #64748b;
    font-size: 9.5px;
    line-height: 1.35;
}

.paper5-assessment-detail-grid ol {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.paper5-assessment-detail-grid li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 28px;
    gap: 8px;
    padding: 7px 0;
    border-top: 1px solid #ecfdf5;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
}

.paper5-assessment-detail-grid li b {
    color: #0f766e;
}

.paper5-assessment-detail-grid li em {
    color: #64748b;
    font-style: normal;
}

.paper5-assessment-detail-grid li > div {
    display: grid;
    gap: 4px;
}

.paper5-assessment-detail-grid li p {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
}

.paper5-criterion-chip {
    width: max-content;
    max-width: 100%;
    padding: 0;
    color: #075985;
    font-size: 10.5px;
    font-weight: 750;
    line-height: 1.35;
}

.paper5-assessment-sections small {
    color: #7c3aed;
    font-weight: 650;
}

.paper5-measurement-chains {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.paper5-measurement-chains article {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #bae6fd;
    border-radius: 9px;
    background: #f7fcff;
}

.paper5-measurement-chains header {
    display: grid;
    gap: 2px;
}

.paper5-measurement-chains header strong {
    color: #0c4a6e;
    font-size: 11px;
}

.paper5-measurement-chains header span,
.paper5-measurement-chains li,
.paper5-measurement-chains small {
    color: #475569;
    font-size: 9.5px;
    line-height: 1.4;
}

.paper5-measurement-chains ol {
    display: grid;
    gap: 3px;
    margin: 0;
    padding-left: 18px;
}

.paper5-measurement-chains small {
    padding-top: 5px;
    border-top: 1px dashed #bae6fd;
    color: #0369a1;
}

.paper5-writing-modules {
    display: grid;
    gap: 5px;
    padding: 8px 9px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
}

.paper5-writing-modules > strong {
    color: #334155;
    font-size: 10px;
}

.paper5-writing-modules > div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.paper5-writing-modules span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 9px;
    font-weight: 700;
}

.paper5-q2-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.paper5-q2-steps article {
    padding: 8px 9px;
    border-left: 3px solid #14b8a6;
    border-radius: 5px;
    background: #f0fdfa;
}

.paper5-q2-steps strong {
    color: #115e59;
    font-size: 10px;
}

.paper5-q2-steps p,
.paper5-numeric-rules li {
    margin: 3px 0 0;
    color: #475569;
    font-size: 9.25px;
    line-height: 1.4;
}

.paper5-numeric-rules {
    padding: 7px 9px;
    border: 1px solid #ccfbf1;
    border-radius: 7px;
    background: #fff;
}

.paper5-numeric-rules summary {
    cursor: pointer;
    color: #0f766e;
    font-size: 9.5px;
    font-weight: 750;
}

.paper5-numeric-rules ul {
    display: grid;
    gap: 3px;
    margin: 6px 0 0;
    padding-left: 18px;
}

.practical-source-link {
    color: var(--brand, var(--ph-chrome-accent, #0f766e));
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.practical-source-link:hover {
    text-decoration: underline;
}

body.practical-source-modal-open {
    overflow: hidden;
}

.practical-source-modal[hidden] {
    display: none !important;
}

.practical-source-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    overflow: auto;
    padding: 16px;
    background: rgba(15, 23, 42, .68);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    opacity: 0;
    transition: opacity .18s ease;
}

.practical-source-modal.is-open {
    opacity: 1;
}

.practical-source-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(794px, calc(100vw - 32px));
    max-width: 100%;
    max-height: calc(100svh - 32px);
    overflow: hidden;
    border: 1px solid var(--ph-line, rgba(255, 255, 255, .72));
    border-radius: var(--ph-radius-panel, 20px);
    background: var(--ph-surface, #fff);
    box-shadow: var(--ph-shadow-overlay, 0 28px 90px rgba(2, 6, 23, .42));
    transform: translateY(8px) scale(.988);
    transition: transform .18s ease;
}

.practical-source-modal.is-open .practical-source-dialog {
    transform: translateY(0) scale(1);
}

.practical-source-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 58px;
    padding: 9px 10px 9px 15px;
    border-bottom: 1px solid var(--ph-line, #dbe3ee);
    background: var(--ph-surface, #fff);
}

.practical-source-modal-title {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 2px 9px;
    min-width: 0;
}

.practical-source-modal-title > span {
    color: var(--brand, var(--ph-chrome-accent, #0f766e));
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.practical-source-modal-title strong {
    overflow: hidden;
    color: var(--ph-ink, #0f172a);
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.practical-source-modal-title small {
    grid-column: 1 / -1;
    color: var(--ph-ink-secondary, #64748b);
    font-size: 10px;
    line-height: 1.25;
}

.practical-source-modal-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.practical-source-modal-full {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 0 11px;
    border-color: var(--ph-line-strong, #99f6e4);
    background: var(--ph-surface, #fff);
    color: var(--ph-ink, #0f766e);
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.practical-source-modal-full:hover,
.practical-source-modal-full:focus-visible {
    border-color: var(--brand, #2dd4bf);
    background: color-mix(in srgb, var(--brand, #0f766e) 8%, #fff);
    color: var(--brand, #115e59);
    outline: 3px solid color-mix(in srgb, var(--brand, #0f766e) 16%, transparent);
    outline-offset: 1px;
}

.practical-source-modal-close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ph-line-strong, #cbd5e1);
    border-radius: 50%;
    background: var(--ph-surface-subtle, #f8fafc);
    color: var(--ph-ink-secondary, #334155);
    font: 400 22px/1 Arial, sans-serif !important;
    cursor: pointer;
}

.practical-source-modal-close:hover,
.practical-source-modal-close:focus-visible {
    border-color: var(--brand, #5eead4);
    background: color-mix(in srgb, var(--brand, #0f766e) 8%, #fff);
    color: var(--brand, #0f766e);
    outline: 3px solid color-mix(in srgb, var(--brand, #0f766e) 16%, transparent);
    outline-offset: 1px;
}

.practical-source-modal-page {
    position: relative;
    width: 100%;
    height: min(1000px, calc(100svh - 90px));
    min-height: 0;
    overflow: hidden;
    background: #525659;
}

.practical-source-modal-status {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 13px;
    padding: 32px;
    background: #525659;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    text-align: center;
}

.practical-source-modal-status::before {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .28);
    border-top-color: #fff;
    border-radius: 50%;
    content: '';
    animation: practical-source-spin .8s linear infinite;
}

.practical-source-modal-status > span { max-width: 520px; }

.practical-source-modal-status[data-status="delayed"]::before,
.practical-source-modal-status[data-status="error"]::before {
    display: none;
}

.practical-source-modal-status[data-status="error"] {
    color: #fee2e2;
}

.practical-source-modal-status[hidden] {
    display: none;
}

@keyframes practical-source-spin {
    to { transform: rotate(360deg); }
}

.practical-source-modal-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #525659;
}

.practical-evaluation-catalog {
    display: grid;
    gap: 11px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #cbd5e1;
}

.practical-evaluation-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.practical-evaluation-head > div {
    display: grid;
    gap: 2px;
}

.practical-evaluation-head strong {
    color: #0f172a;
    font-size: 14px;
}

.practical-evaluation-head span,
.practical-evaluation-note {
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.practical-evaluation-note {
    margin: 0;
}

.practical-evaluation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.practical-evaluation-pair {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #dbe3ee;
    border-radius: 9px;
    background: #f8fafc;
}

.practical-evaluation-pair > header {
    display: flex;
    align-items: center;
    gap: 7px;
}

.practical-evaluation-pair > header strong {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 11px;
}

.practical-evaluation-pair > header span {
    padding: 3px 7px;
    border: 1px solid var(--evaluation-border, #99f6e4);
    border-radius: 999px;
    background: var(--evaluation-bg, #f0fdfa);
    color: var(--evaluation-text, #115e59);
    font-size: 11px;
    font-weight: 800;
}

.practical-evaluation-pair > header small {
    margin-left: auto;
    color: #7c3aed;
    font-size: 9.5px;
    font-weight: 700;
}

.practical-evaluation-pair > div {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
}

.practical-evaluation-pair b {
    color: #64748b;
    font-size: 9.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.practical-evaluation-pair > div span {
    color: #1e293b;
    font-size: 12.5px;
    line-height: 1.48;
}

.practical-evaluation-pair.is-unpaired {
    border-style: dashed;
    background: #fffdf7;
}

.practical-evaluation-pair.is-unpaired > p {
    margin: 0;
    color: #92400e;
    font-size: 10.5px;
    line-height: 1.45;
}

.practical-pdf-frame {
    width: 100%;
    height: min(82vh, 920px);
    min-height: 620px;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    background: #e2e8f0;
}

body[data-practical-paper="true"] .page-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 14px 14px;
}

body[data-practical-paper="true"] .sheet {
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-practical-paper="true"] .sheet-head {
    margin: 0 0 8px;
    padding: 8px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
}

body[data-practical-paper="true"] .sheet-options {
    display: none;
}

.practical-assembled-viewer {
    position: relative;
    width: 100%;
    height: calc(100svh - 154px);
    min-height: 680px;
}

.practical-assembled-status {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
    background: #e2e8f0;
    border: 1px solid #94a3b8;
    border-radius: 10px;
}

.practical-assembled-status[hidden] {
    display: none;
}

.practical-assembled-status[data-status="delayed"] {
    color: #854d0e;
    background: #fffbeb;
}

.practical-assembled-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 1px solid #94a3b8;
    border-radius: 10px;
    background: #e2e8f0;
}

.practical-preview-task {
    margin: 0 0 24px;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
}

.practical-preview-head,
.practical-preview-task footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.practical-preview-head > div:first-child {
    display: flex;
    gap: 9px;
    align-items: baseline;
}

.practical-preview-head span {
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.practical-preview-head strong {
    color: #0f172a;
    font-size: 14px;
}

.practical-preview-head > div:last-child,
.practical-preview-task footer span {
    color: #64748b;
    font-size: 10px;
}

.practical-source-error,
.practical-source-missing {
    padding: 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 12px;
}

@media (max-width: 768px) {
    .practical-source-modal {
        padding: 10px;
    }

    .practical-source-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100svh - 20px);
        border-radius: 14px;
    }

    .practical-source-modal-head {
        min-height: 54px;
        padding: 7px 8px 7px 12px;
    }

    .practical-source-modal-close {
        width: 34px;
        height: 34px;
    }

    .practical-source-modal-full {
        width: 34px;
        padding: 0;
        justify-content: center;
        overflow: hidden;
    }

    .practical-source-modal-full-label { display: none; }
    .practical-source-modal-full > span:last-child {
        color: var(--brand, var(--ph-chrome-accent, #0f766e));
        font-size: 14px;
    }

    .practical-source-summary,
    .practical-preview-head,
    .practical-preview-task footer {
        grid-template-columns: 1fr;
        display: grid;
    }

    .practical-card-layout,
    .practical-axis {
        grid-template-columns: 1fr;
    }

    .paper5-quick-preview {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .paper5-q1-content {
        grid-template-columns: 1fr;
    }

    .paper5-q2-content {
        grid-template-columns: 1fr;
    }

    .paper5-preview-figure {
        padding: 12px;
    }

    .paper5-quick-preview:not([data-question-role="q1"]) .paper5-preview-figure {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .paper5-preview-figure img {
        height: 180px;
    }

    .paper5-quick-preview[data-question-role="q1"] .paper5-preview-figure img {
        height: auto;
        max-height: none;
    }

    .paper5-q1-title {
        align-items: flex-start;
    }

    .paper5-q1-title > strong,
    .paper5-q2-title > strong {
        font-size: 16px;
    }

    .paper5-q1-summary {
        padding: 13px;
        border-top: 1px solid #e2e8f0;
        border-left: 0;
    }

    .paper5-q2-copy {
        padding: 13px;
    }

    .practical-info-column {
        border-top: 1px solid #dbe3ee;
        border-left: 0;
    }

    .practical-setup-gallery img {
        height: 150px;
    }

    .practical-source-card.is-chemistry-practical .practical-setup-gallery img {
        width: auto;
        height: auto;
        max-height: 240px;
    }

    .practical-evaluation-head {
        display: grid;
        align-items: start;
    }

    .practical-evaluation-grid {
        grid-template-columns: 1fr;
    }

    .paper5-assessment-sections {
        grid-template-columns: 1fr;
    }

    .paper5-assessment-detail-grid {
        grid-template-columns: 1fr;
    }

    .paper5-measurement-chains,
    .paper5-q2-steps {
        grid-template-columns: 1fr;
    }

    .practical-pdf-frame {
        min-height: 520px;
        height: 72vh;
    }

    body[data-practical-paper="true"] .page-wrap {
        padding: 4px;
    }

    body[data-practical-paper="true"] .sheet-head {
        margin-bottom: 4px;
    }

    .practical-assembled-viewer {
        height: calc(100svh - 134px);
        min-height: 520px;
    }

    .practical-assembled-frame,
    .practical-assembled-status {
        border-radius: 7px;
    }
}

@media print {
    .practical-source-modal {
        display: none !important;
    }

    .practical-preview-task {
        border: 0;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .practical-source-modal,
    .practical-source-dialog {
        transition: none;
    }
}
