.cycle-workshops [hidden] { display: none !important; }
.cycle-workshops :focus-visible { outline: 3px solid #245bd2; outline-offset: 3px; }
.cycle-workshops label, .cycle-workshops legend { font-weight: 650; color: #20365d; }
.cycle-workshops select, .cycle-workshops input[type="text"] {
    display: block;
    width: 100%;
    max-width: 29rem;
    margin-top: .25rem;
    padding: .65rem .75rem;
    border: 1px solid #a9bad5;
    border-radius: .45rem;
    background: #fff;
    color: #172740;
    font: inherit;
}
#workshop-grade { max-width: 12rem; }
#workshop-prompt, #workshop-end-heading { scroll-margin-top: 6rem; }
#workshop-prompt { margin: .3rem 0 .8rem; font-size: 1.25rem; }
#workshop-content { min-width: 0; }
.workshop-count { margin: 1.2rem 0 .2rem; color: #486187; font-size: .92rem; }
.workshop-source {
    padding: .85rem 1rem;
    border-radius: .55rem;
    background: #f2f6ff;
    border: 1px solid #d1dff4;
    line-height: 1.65;
}
.workshop-help { margin: .5rem 0 .75rem; color: #405776; line-height: 1.55; }
.workshop-answer-field {
    display: block;
    max-width: 30rem;
    margin: .9rem 0 .4rem;
}
.workshop-answer-field input { max-width: 14rem !important; }
.workshop-unit { display: block; margin-top: .2rem; font-size: .9rem; color: #456086; }
#workshop-feedback { margin: .65rem 0 0; font-weight: 700; }
#workshop-feedback:empty { display: none; }
.workshop-solution {
    margin-top: .75rem;
    padding: .85rem 1rem;
    border-inline-start: 4px solid #517fce;
    border-radius: .3rem;
    background: #f1f6ff;
    line-height: 1.65;
}
.cycle-workshops button:disabled { cursor: default; }
.cycle-workshops .tool-actions button:disabled { opacity: .6; }
#workshop-end h3 { margin-top: 1.2rem; }

.fraction-bar {
    display: grid;
    grid-template-columns: repeat(var(--parts), minmax(0, 1fr));
    width: 100%;
    max-width: 33rem;
    height: 4.5rem;
    border: 2px solid #31548e;
    border-radius: .35rem;
    overflow: hidden;
    margin: .8rem 0;
    background: #fff;
}
.fraction-part {
    display: block;
    padding: 0;
    border: 0;
    border-inline-end: 1px solid #5274ab;
    background: #fff;
    border-radius: 0;
}
.fraction-part:last-child { border-inline-end: 0; }
button.fraction-part { cursor: pointer; }
button.fraction-part:focus-visible { outline-offset: -4px; }
.fraction-part.is-filled, .hundred-grid .is-filled {
    background: repeating-linear-gradient(135deg, #3263ba, #3263ba 5px, #2a59af 5px, #2a59af 10px);
}
.fraction-comparison { max-width: 33rem; }
.fraction-comparison p { margin: .2rem 0; font-weight: 700; color: #25477d; }
.fraction-comparison .fraction-bar { margin-top: .3rem; height: 2.8rem; }
.fraction-number-line {
    display: flex;
    width: 100%;
    max-width: 38rem;
    align-items: center;
    justify-content: space-between;
    border-block-start: 3px solid #31548e;
    margin: 2rem 0 1rem;
    padding-top: .4rem;
}
.fraction-point {
    position: relative;
    flex: 0 1 2.2rem;
    min-width: 1.6rem;
    min-height: 2.2rem;
    border: 1px solid #a4b6d5;
    border-radius: .3rem;
    color: #24447a;
    background: #fff;
    font: inherit;
    cursor: pointer;
}
.fraction-point::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -.9rem;
    height: .6rem;
    border-inline-start: 2px solid #31548e;
}
.fraction-point[aria-pressed="true"] { background: #244f9e; color: #fff; border-color: #244f9e; }
.hundred-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1px; background: #8298b8; padding: 1px; width: min(100%, 17rem); }
.hundred-grid span { aspect-ratio: 1; background: #fff; }

.conversion-table { width: 100%; max-width: 36rem; border-collapse: collapse; text-align: center; table-layout: fixed; margin: .7rem 0; }
.conversion-table caption { margin-bottom: .4rem; text-align: left; color: #405776; }
.conversion-table :is(th,td) { border: 1px solid #b2c2dc; padding: .6rem .15rem; color: #213b67; }
.conversion-table th { background: #eef3fc; }
.conversion-table td { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.conversion-table .conversion-unit { background: #dceaff; box-shadow: inset 0 -3px #295da9; font-weight: 750; }

.symmetry-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); width: min(100%, 29rem); gap: 1px; padding: 1px; background: #b4c3da; margin: .8rem 0; }
.symmetry-cell { display: block; aspect-ratio: 1; padding: 0; background: #fff; border: 0; border-radius: 0; }
button.symmetry-cell { cursor: pointer; }
.symmetry-cell.is-given { background: #315ba3; }
.symmetry-cell[aria-pressed="true"] { background: #317062; }
.symmetry-axis { border-inline-start: 3px dashed #98421c; }
.symmetry-cell:focus-visible { outline-offset: -3px; }

.geometry-rectangle { margin: .7rem 0; min-width: 0; }
.geometry-rectangle figcaption { color: #25477d; font-weight: 700; margin-bottom: .4rem; }
.rectangle-grid {
    display: grid;
    grid-template-columns: repeat(var(--rectangle-columns), minmax(0, 1fr));
    width: min(100%, calc(var(--rectangle-columns) * 2rem));
    border: 2px solid #31548e;
    background: #b4c3da;
    gap: 1px;
}
.rectangle-grid span { display: block; aspect-ratio: 1; background: #dceaff; }
.geometry-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.workshop-checkboxes { border: 1px solid #c0d0e6; border-radius: .5rem; padding: .8rem 1rem; margin: .8rem 0; }
.workshop-checkboxes legend { padding: 0 .35rem; font-size: 1rem; }
.workshop-checkboxes label { display: flex; align-items: center; gap: .55rem; margin: .55rem 0; font-weight: 500; }
.workshop-checkboxes input { width: 1.15rem; height: 1.15rem; accent-color: #245bd2; }
.workshop-intermediate { color: #24477c; font-weight: 700; }
.workshop-problem-questions { padding-inline-start: 1.3rem; line-height: 1.6; }

.reading-evidence { display: grid; gap: .45rem; margin: .65rem 0 1rem; }
.evidence-sentence {
    display: flex;
    gap: .75rem;
    width: 100%;
    border: 1px solid #c7d5e9;
    border-radius: .5rem;
    padding: .7rem .8rem;
    text-align: left;
    background: #fafcff;
    color: #1b3156;
    font: inherit;
    line-height: 1.6;
    cursor: pointer;
}
.evidence-number { color: #536d96; flex: 0 0 1rem; font-size: .85rem; }
.evidence-sentence[aria-pressed="true"] { background: #fff0bd; border-color: #b88b27; box-shadow: inset 3px 0 #a97816; }

.graph-layout { display: grid; grid-template-columns: minmax(9rem, .75fr) minmax(0, 1.6fr); gap: 1.5rem; align-items: start; }
.graph-data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.graph-data-table caption { margin-bottom: .45rem; text-align: left; color: #405776; }
.graph-data-table :is(th,td) { border: 1px solid #becde3; padding: .5rem; text-align: left; }
.graph-data-table thead th { background: #eef3fc; }
.graph-figure { margin: 0; }
.graph-figure figcaption { font-weight: 700; color: #203d6f; margin-bottom: .7rem; }
.workshop-chart { display: flex; gap: .45rem; height: 14rem; padding-top: 1.3rem; }
.chart-scale { display: flex; flex-direction: column; justify-content: space-between; text-align: right; color: #526889; font-size: .78rem; width: 2rem; flex: 0 0 2rem; margin-top: -.5em; margin-bottom: -.5em; }
.chart-columns {
    display: flex;
    gap: 8%;
    align-items: end;
    justify-content: space-around;
    width: 100%;
    border-inline-start: 1px solid #849bbc;
    border-block-end: 1px solid #849bbc;
    background: repeating-linear-gradient(to top, transparent, transparent calc(10% - 1px), #d6dfec calc(10% - 1px), #d6dfec 10%);
}
.chart-column { position: relative; height: 100%; flex: 1; display: flex; align-items: end; max-width: 3rem; }
.chart-bar { position: relative; width: 100%; background: #3263ba; border-radius: .2rem .2rem 0 0; min-height: 1px; }
.chart-bar-value { position: absolute; width: 100%; text-align: center; top: -1.3rem; color: #203d6f; font-size: .85rem; font-weight: 700; }
.chart-labels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline-start: 2.45rem; margin-top: .35rem; gap: .3rem; text-align: center; font-size: .72rem; color: #3c547c; }
.chart-controls { display: grid; gap: .45rem; margin-top: .8rem; }
.chart-controls label { display: grid; grid-template-columns: 5.1rem minmax(0, 1fr); gap: .25rem .5rem; align-items: center; font-size: .9rem; }
.chart-controls input { width: 100%; accent-color: #245bd2; margin: 0; }
.chart-controls output { grid-column: 2; color: #526889; font-weight: 400; font-size: .82rem; }

@media (max-width: 660px) {
    .graph-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .graph-data-table { max-width: 25rem; }
}
@media (max-width: 420px) {
    .geometry-pair { grid-template-columns: minmax(0, 1fr); }
    .fraction-point { font-size: .85rem; }
}

