/* Opt-in 0501 practice surfaces; no other lesson or shared runner changes. */
.quoting-practice {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 8px 1rem 1rem;
    border: 1px solid var(--quoting-border, #d4d7dc);
    border-radius: 6px;
    background: var(--pst-color-background, #fff);
    color: var(--pst-color-text-base, #222);
    min-width: 0;
}
.quoting-practice .quoting-practice-label {
    font-size: 1rem !important;
    font-weight: 600;
    margin: 0 0 .65rem;
}
.quoting-practice .quoting-practice-label strong { font-weight: inherit; }
.quoting-practice-tabs {
    display: flex;
    margin-bottom: .85rem;
    border-bottom: 1px solid var(--quoting-border, #d4d7dc);
}
.quoting-practice-tab {
    padding: .3rem 0 .45rem;
    border: 0;
    border-bottom: 2px solid var(--pst-color-primary, #176de8);
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
.quoting-practice-tab:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.quoting-practice table { margin-bottom: .8rem; }
/* Keep preserved starter comments readable in the static/narrow fallback. */
.quoting-practice .highlight pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.quoting-practice .quoting-solution {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: .5rem 0 0 !important;
}
.quoting-practice .quoting-solution > summary {
    color: var(--pst-color-text-muted, #555) !important;
    font-size: 1rem;
    font-weight: 400;
    border: 0;
    border-left: 1px solid var(--quoting-border, #d4d7dc);
    border-radius: 2px;
    background: transparent;
    padding: .25rem .5rem;
    box-shadow: none;
    display: inline-block;
    list-style: none;
    cursor: pointer;
}
.quoting-practice .quoting-solution > summary::-webkit-details-marker { display: none; }
.quoting-practice summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.quoting-practice .quoting-solution[open] > summary { background: var(--pst-color-surface, #eef0f2); }
@media (max-width: 540px) {
    .quoting-practice { padding-left: .5rem; padding-right: .5rem; }
}
.quoting-practice .tag_thebe-interactive .cell_input {
    border: 0 !important;
    box-shadow: none !important;
}
.quoting-practice .quoting-solution > summary::before {
    content: '›';
    display: inline-block;
    margin-right: .4rem;
}
.quoting-practice .quoting-solution[open] > summary::before { transform: rotate(90deg); }
@media print {
    .quoting-practice { break-inside: avoid; }
    .quoting-practice-tabs { display: none; }
}
.quoting-check-button { margin-left: 4px; }
.quoting-check-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.quoting-check-button:disabled { cursor: wait; opacity: .65; }
.quoting-check-feedback { margin: .5rem 0; }
.quoting-check-feedback:empty { display: none; }
.quoting-check-feedback p { margin: .35rem 0; }
.quoting-check-details > summary {
    cursor: pointer;
    padding: .2rem .5rem;
    border-left: 1px solid var(--quoting-border, #d4d7dc);
    font-size: 1rem;
}
.quoting-check-details pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Theme surfaces, with the same saved/live output treatment as Press. */
html[data-theme="dark"] .quoting-practice {
    --quoting-border: var(--pst-color-border, #48566b);
}
body .quoting-practice .cell_output pre,
body.thinkpress-runner-active .quoting-practice .cell :is(.cell_output, .jp-OutputArea .jp-OutputArea-output) pre {
    background: #f7f7f7 !important;
    color: #222 !important;
    border: 0 !important;
    padding-block: 8px !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
}
html[data-theme="dark"] body .quoting-practice .cell_output pre,
html[data-theme="dark"] body.thinkpress-runner-active .quoting-practice .cell :is(.cell_output, .jp-OutputArea .jp-OutputArea-output) pre {
    background: var(--pst-color-surface, #29313d) !important;
    color: var(--pst-color-text-base, #ced6dd) !important;
}
.quoting-practice :is([role="tabpanel"], .cell, .thebelab-cell, .thebelab-input) {
    min-width: 0;
    max-width: 100%;
}
.quoting-practice .thinkpress-cell-status { overflow-wrap: anywhere; min-width: 0; }
.quoting-practice .quoting-check-details {
    max-width: 100%;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
.quoting-practice .quoting-check-details > summary { color: inherit !important; }
.quoting-practice .quoting-check-details pre {
    background: var(--pst-color-surface, #f7f7f7);
    color: inherit;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
