
body #hundredsTool{border-width:2px!important;padding:22px!important;height:auto!important;min-height:0!important}
body #hundredsTitle{font-size:30px!important;font-weight:700!important;text-transform:none!important}
body #hundredsTool button,body #hundredsTool output{border-width:2px!important;border-radius:0!important;font-weight:400!important;text-transform:none!important;min-height:44px!important;font-size:14px!important;line-height:1.2!important}
body #hundredsTool .control-label{font-size:13px!important;font-weight:600!important;text-transform:none!important;margin:0 0 8px!important}
body #hundredsTool .control-group{border:0!important;padding:0!important;background:transparent!important;gap:8px!important}
body #hundredsTool .menu{gap:20px!important;align-self:center!important}
body #hundredsTool .hundreds-stage{grid-template-columns:minmax(0,1fr) minmax(280px,390px)!important;gap:32px!important;max-height:none!important}
body #hundredsTool .chart-frame{width:min(100%,560px)!important;max-height:none!important;margin:auto!important}
body #hundredsTool .chart-zoom-viewport{width:100%!important;height:auto!important;aspect-ratio:1;max-height:none!important;border-width:2px!important}
body #hundredsTool .chart-view-toolbar{gap:6px!important}
body #hundredsTool .chart-view-toolbar button{min-width:44px!important}
body #hundredsTool .chart-view-hint{font-weight:400!important;font-size:12px!important}
body #hundredsTool .menu details{grid-column:1/-1;border-top:1px solid #aaa;padding-top:16px}
body #hundredsTool summary{cursor:pointer;font-weight:400;font-size:15px;padding:8px 0}
body #hundredsTool .secondary-options{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:18px 0}
body #hundredsTool button svg{width:22px;height:22px;vertical-align:middle;margin-right:6px;flex-shrink:0}
body #hundredsTool button:hover:not(:disabled){background:#d1e8ca!important;text-decoration:underline}
body #hundredsTool .title-actions{gap:10px!important}
body #hundredsTool .title{align-items:center!important}
@media(max-width:980px){body #hundredsTool{padding:14px!important}body #hundredsTitle{font-size:24px!important}body #hundredsTool .hundreds-stage{display:flex!important;flex-direction:column!important;gap:20px!important}body #hundredsTool .menu{width:100%!important}body #hundredsTool .title{flex-wrap:wrap!important}body #hundredsTool .chart-frame{max-width:100%!important}}
body #hundredsTool .chart-frame{width:min(100%,440px)!important}
body #hundredsTool .chart-view-toolbar__zoom{flex:0 1 auto!important}
body #hundredsTool #chartZoomOutput{min-width:60px!important;width:60px!important}
body #hundredsTool .chart-view-toolbar{justify-content:center!important}
body #hundredsTool .menu button{white-space:nowrap!important}
body #hundredsTool .control-group[aria-label="Move by number"],body #hundredsTool .control-group[aria-label="Move by page"]{grid-template-columns:1fr 1fr!important}
body #hundredsTool .menu{max-width:430px!important}
body #hundredsTool .hundreds-stage{grid-template-columns:minmax(0,1fr) minmax(280px,430px)!important}
body #hundredsTool .chart-view-toolbar__zoom{display:flex!important;gap:6px!important;justify-content:flex-start!important}
body #hundredsTool .chart-view-toolbar{display:flex!important;flex-wrap:wrap!important}
body #hundredsTool #chartPen::before{content:' ';display:inline-block;width:18px;height:18px;vertical-align:middle;margin-right:4px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23212121' stroke-width='1.7'%3E%3Cpath d='m4 19 2-6L17 2l5 5-11 11-7 1Z' fill='%23f7a4a6'/%3E%3Cpath d='m14 5 5 5M3 22h18'/%3E%3C/svg%3E")}
@media(max-width:980px){body #hundredsTool .menu{max-width:none!important}body #hundredsTool .chart-view-toolbar{gap:5px!important}body #hundredsTool .chart-frame{width:100%!important}body #hundredsTool .menu .control-group--reset{grid-template-columns:1fr 1fr!important}body #hundredsTool #reverseOrderButton{grid-column:1/-1}body #hundredsTool .secondary-options{grid-template-columns:1fr!important}}
body #hundredsTool.fullscreen-container{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;overflow:auto!important;z-index:1000!important;display:block!important;background:#fffcf0!important}
body #hundredsTool.fullscreen-container .hundreds-stage{max-height:none!important}
body #hundredsTool.fullscreen-container .hundreds-layout{height:auto!important;padding-top:45px!important}
body #hundredsTool.fullscreen-container .chart-frame{max-height:none!important}
body.dmr-single-screen-tool--hundreds-chart .wrapper{padding-top:0!important;margin-top:18px!important}
body #hundredsTool.fullscreen-container .control-label{display:block!important}
@media(max-width:980px){body #hundredsTool.fullscreen-container .menu{grid-template-columns:1fr!important}body #hundredsTool.fullscreen-container .chart-view-toolbar{padding-top:0!important}body #hundredsTool.fullscreen-container .hundreds-layout{padding-top:35px!important}}
body #hundredsTool.fullscreen-container .hundreds-stage,body #hundredsTool.fullscreen-container .chart-frame,body #hundredsTool.fullscreen-container .menu{position:relative!important;inset:auto!important;transform:none!important;height:auto!important}
body #hundredsTool.fullscreen-container .hundreds-stage{display:grid!important;overflow:visible!important;align-items:center!important}
body #hundredsTool.fullscreen-container .hundreds-layout{overflow:visible!important;min-height:0!important}
@media(max-width:980px){body #hundredsTool.fullscreen-container .hundreds-stage{display:flex!important}}
body #hundredsTool #exitFullscreen{z-index:1010!important;position:fixed!important;top:12px!important;right:12px!important}
body #hundredsTool .secondary-options .control-group[aria-label="Jump pages"]{grid-column:1/-1!important}
body #hundredsTool .secondary-options button{white-space:normal!important;overflow-wrap:anywhere!important}

/* Classroom readability repair: let the chart use the available teaching space. */
body #hundredsTool{padding:clamp(20px,2.4vw,48px)!important}
body #hundredsTool .hundreds-stage{width:100%!important;max-width:1500px!important;margin-inline:auto!important;grid-template-columns:minmax(0,1fr) minmax(320px,430px)!important;gap:clamp(28px,4vw,72px)!important}
body #hundredsTool .chart-frame{width:min(100%,max(440px,calc(100dvh - 290px)),900px)!important}
body #hundredsTool.fullscreen-container .chart-frame{width:min(100%,calc(100dvh - 220px),1000px)!important}
body #hundredsTool #toggleFullscreen,body #hundredsTool #exitFullscreen:not(.hidden){display:grid!important;place-items:center!important;padding:8px!important;line-height:1!important}
body #hundredsTool #toggleFullscreen svg,body #hundredsTool #exitFullscreen svg{display:block!important;margin:0!important;position:static!important;transform:none!important}
@media(max-width:980px){body #hundredsTool{padding:16px!important}body #hundredsTool .hundreds-stage{gap:24px!important}body #hundredsTool .chart-frame,body #hundredsTool.fullscreen-container .chart-frame{width:100%!important;max-width:720px!important}}
/* The inherited second grid row reserved an empty row-gap below the stage. */
body #hundredsTool.fullscreen-container .hundreds-stage{grid-template-rows:auto!important}
/* Stacked tablet layouts still show a whole chart before scrolling to controls. */
@media(max-width:980px){body #hundredsTool.fullscreen-container .chart-frame{max-width:min(720px,max(280px,calc(100dvh - 240px)))!important}}
