#math-bkt-section{overflow-y:auto}.bkt-content{width:100%;max-width:1100px;margin:auto;padding:18px 0;color:#243448}.bkt-toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:0 0 16px}.bkt-toolbar label{min-width:0;flex:1;display:flex;flex-direction:column;gap:6px;font-weight:700}.bkt-toolbar select{width:100%;min-width:0;max-width:100%;min-height:44px;padding:8px;border:1px solid #ccd4de;border-radius:10px;background:white}.bkt-content button{min-height:44px;border-radius:10px;border:1px solid #bacadd;background:white;padding:10px 16px;font-weight:700}.bkt-content button:focus-visible,.bkt-content summary:focus-visible{outline:3px solid #fd922b;outline-offset:3px}.bkt-guide{background:#f2f6fa;padding:14px;border-radius:12px;margin-bottom:16px}.bkt-content p{line-height:1.65;overflow-wrap:anywhere}.bkt-domain>summary{font-size:20px;font-weight:800;padding:14px}.bkt-stage,.bkt-student-row{border:1px solid #dce3eb;background:white;padding:16px;border-radius:12px;margin:10px 0}.bkt-stage>summary,.bkt-type>summary{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;cursor:pointer;min-height:44px;align-items:center}.bkt-stage>summary span,.bkt-type>summary span{font-size:13px;color:#53637b}.bkt-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:14px 0}.bkt-metric{display:flex;flex-direction:column;padding:12px;background:#f2f6fb;border-radius:10px;gap:6px}.bkt-metric strong{font-size:25px}.bkt-metric small,.bkt-metric span{font-size:12px}.bkt-type{padding:12px;margin:10px 0;background:#f8fafc;border-radius:10px}.bkt-response-history,.bkt-session-history ol{max-height:320px;overflow:auto;padding-left:24px}.bkt-content li{padding:7px 0;line-height:1.6}.bkt-content summary{cursor:pointer}.practice-bkt-note{border:1px solid #dae2ef;border-radius:12px;background:#f4f7fb;padding:12px;line-height:1.6;margin:12px 0;white-space:normal}.practice-bkt-note button{margin:6px}.practice-bkt-note select{min-height:44px;padding:8px;border:1px solid #ccc;border-radius:8px}.practice-question.repeat-stimulus small{display:block;color:#786333}.practice-question p{white-space:pre-line}@media(max-width:600px){.bkt-content{padding:16px 0}.bkt-toolbar{display:grid;grid-template-columns:1fr;width:100%}.bkt-toolbar label{min-width:0}.bkt-toolbar select{width:100%;min-width:0}.bkt-stage{padding:12px}.bkt-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.bkt-metric{min-width:0}.bkt-stage>summary{display:block}.bkt-stage>summary span{display:block;margin-top:8px}}
/* Keep class overview compact; detail and graph views retain the full width. */
.bkt-student-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bkt-student-grid > .bkt-student-row { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.bkt-student-grid h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.bkt-student-grid p { flex: 1; margin: 0 0 12px; }
.bkt-student-grid button { width: 100%; white-space: normal; line-height: 1.5; }
@media (max-width: 900px) { .bkt-student-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bkt-student-grid { grid-template-columns: minmax(0, 1fr); } }
/* The graph shares the activity page's content width and scroll container. */
.bkt-content, .bkt-content * { box-sizing: border-box; }
.bkt-content :is(details,article,summary) { min-width: 0; overflow-wrap: anywhere; }
.bkt-content .bkt-graph { margin: 6px 0 24px; padding: 22px; border: 1px solid #d0e3ed; border-radius: 24px; background: #fff; box-shadow: 0 12px 36px #284b6810; }
.bkt-graph-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.bkt-graph-header > div:first-child { min-width: 0; }
.bkt-graph-eyebrow { color: #1688cf; font-size: 12px; font-weight: 800; }
.bkt-graph h2 { margin: 6px 0; font-size: clamp(20px, 3vw, 27px); color: #203f57; font-weight: 900; }
.bkt-graph-header p, .bkt-graph-note { margin: 6px 0 14px; color: #64778b; font-size: 12px; }
.bkt-graph-controls { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; flex-shrink: 0; }
.bkt-graph-controls button { min-width: 44px; color: #345a77; font-size: 12px; padding: 8px 12px; }
.bkt-graph-controls button:hover { background: #edf7ff; border-color: #1688cf; }
.bkt-graph-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 14px 0; font-size: 12px; color: #40586c; }
.bkt-graph-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.bkt-graph-legend i { width: 11px; height: 11px; flex-shrink: 0; border-radius: 4px; }
.bkt-graph-legend small { font-size: 11px; color: #718096; }
.bkt-graph-viewport { height: clamp(360px, 47vw, 580px); overflow: auto; overscroll-behavior: contain; border: 1px solid #e2edf3; border-radius: 16px; background: #fbfdff; }
.bkt-graph-svg { display: block; width: 100%; height: 100%; max-width: none; font-family: 'Noto Sans KR', sans-serif; }
.bkt-graph-group.is-muted, .bkt-graph-node.is-muted { opacity: .28; }
.bkt-graph-edge { opacity: .36; pointer-events: none; }
.bkt-graph-edge.reference { opacity: .18; }
.bkt-graph-node { cursor: pointer; outline: none; }
.bkt-graph-node:hover rect:first-of-type, .bkt-graph-node:focus-visible rect:first-of-type, .bkt-graph-node[aria-pressed="true"] rect:first-of-type { stroke-width: 5; stroke: #183f57; }
.bkt-graph-node[aria-pressed="true"] { opacity: 1; }
.bkt-graph.has-selection .bkt-graph-edge { opacity: .06; }
.bkt-graph.has-selection .bkt-graph-edge.is-connected { opacity: 1; stroke-width: 3; }
.bkt-graph.has-selection .bkt-graph-node:not(.is-connected) { opacity: .23; }
.bkt-graph.has-selection .bkt-graph-node.is-connected { opacity: 1; }
.bkt-graph-selection { margin-top: 14px; padding: 16px; border-radius: 14px; border: 1px solid #dbe8ee; background: #f3f8fb; }
.bkt-graph-selection h3 { font-size: 17px; color: #24495f; margin: 0 0 10px; font-weight: 800; }
.bkt-graph-selection p { font-size: 13px; margin: 6px 0; }
.bkt-graph-selection > .bkt-graph-controls { margin-top: 12px; justify-content: flex-start; }
.bkt-graph-types { list-style: none; padding: 0; display: grid; gap: 8px; }
.bkt-graph-types li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; border-top: 1px solid #dbe8ee; }
.bkt-graph-types small { color: #63778b; }
.bkt-graph:fullscreen { overflow: auto; border: 0; border-radius: 0; padding: 24px; background: white; }
.bkt-graph:fullscreen .bkt-graph-viewport { height: 65dvh; }
@media (max-width: 700px) {
  .bkt-content .bkt-graph { padding: 14px; border-radius: 18px; }
  .bkt-graph-header { flex-direction: column; gap: 4px; }
  .bkt-graph-controls { justify-content: flex-start; flex-shrink: 1; }
  .bkt-graph-legend { gap: 8px 12px; }
  .bkt-graph-legend > span { flex-wrap: wrap; }
  .bkt-graph-viewport { height: 340px; }
  .bkt-graph-selection { padding: 12px; }
}
