/* Shared controls for the classroom math tiles; the math visuals remain interactive. */
.module.math-modern-tile{gap:0;padding-bottom:14px;transition:padding-bottom .22s ease}
.numberline-module.math-modern-tile{transition:padding-bottom .22s ease,width .26s cubic-bezier(.2,.85,.25,1)}
.module.math-modern-tile:is(.is-math-controls-open,.has-tile-settings-open,.is-appearance-open){padding-bottom:48px}
.math-modern-tile>.math-tile-visual{margin-top:10px;min-height:0}
.math-modern-tile .math-hover-group{display:grid;grid-template-rows:0fr;flex:0 0 auto;margin-top:0;opacity:0;visibility:hidden;pointer-events:none;transition:grid-template-rows .22s ease,margin-top .22s ease,opacity .15s ease,visibility .22s}
.math-modern-tile .math-hover-clip{min-height:0;overflow:hidden}
.math-modern-tile .math-hover-content{display:flex;flex-direction:column;gap:8px;padding:3px 2px}
.math-modern-tile:is(.is-math-controls-open,.has-tile-settings-open,.is-appearance-open) .math-hover-group{grid-template-rows:1fr;margin-top:8px;opacity:1;visibility:visible;pointer-events:auto}
.math-modern-tile :is(.math-action-row,.tenframes-controls,.numberline-controls,.hundreds-controls){display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
.math-modern-tile :is(.math-hover-group button:not(.pattern-maker-color),.numberline-point-readout,.shapes-color,.times-families button,.tile-settings-panel .tile-action){box-sizing:border-box;min-height:32px;padding:6px 10px;border:1px solid color-mix(in srgb,var(--module-text,#17191d) 13%,transparent);border-radius:10px;background:var(--module-bg,#fff);color:var(--module-text,#17191d);font:600 12px/1.3 var(--module-font,Inter,system-ui,sans-serif);box-shadow:0 2px 5px #1720330d;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.math-modern-tile :is(.math-hover-group button:not(.pattern-maker-color),.numberline-point-readout,.shapes-color,.times-families button):hover:not(:disabled){background:color-mix(in srgb,var(--module-bg,#fff) 90%,#79abe6);border-color:#a6c5e8;transform:translateY(-1px)}
.math-modern-tile :is(.math-hover-group button,.numberline-point-readout,.shapes-color,.times-families button):active:not(:disabled){transform:none}
.math-modern-tile :is(.math-hover-group button,.times-families button):disabled{opacity:.4;cursor:default}
.math-modern-tile :is(.math-hover-group button.math-primary,.shapes-choice.is-active,.numberline-point-readout.is-active,.times-families button[aria-pressed=true]){background:color-mix(in srgb,var(--module-bg,#fff) 83%,#79abe6);border-color:#a6c5e8;color:var(--module-text,#17191d);box-shadow:0 2px 5px #1720330d}
.math-modern-tile :is(button,input,select):focus-visible,.math-modern-tile:focus-visible{outline:2px solid #5a8dcc;outline-offset:2px}
.math-modern-tile :is(.math-hover-group input,.math-hover-group select,.tile-setting input[type=number]){box-sizing:border-box;min-height:32px;border:1px solid color-mix(in srgb,var(--module-text,#17191d) 15%,transparent);border-radius:9px;background:var(--module-bg,#fff);color:var(--module-text,#17191d);padding:6px 9px;font:500 12px/1.3 var(--module-font,Inter,system-ui,sans-serif);box-shadow:none}
.math-modern-tile .math-hover-group select{appearance:none;padding-right:30px;background:var(--module-bg,#fff) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none" stroke="%23848e9c" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m5 7.5 5 5 5-5"/%3E%3C/svg%3E') no-repeat right 8px center/16px}
.math-modern-tile :is(.numberline-hint,.pattern-maker-header small){opacity:0;transition:opacity .15s;pointer-events:none}
.math-modern-tile.is-math-controls-open :is(.numberline-hint,.pattern-maker-header small){opacity:.6}
.math-modern-tile .times-summary{margin:0;font-size:11px}
.math-modern-tile .times-grid{padding:3px;gap:10px}
.math-modern-tile .tenframes-board{align-content:center!important}
.math-modern-tile .tenframes-frame-controls{flex-wrap:wrap;justify-content:center}
.math-modern-tile .shapes-picker{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.math-modern-tile .shapes-picker .shapes-choice{display:flex;flex-direction:row;gap:6px;height:38px;padding:5px 7px}
.math-modern-tile .shapes-choice svg{flex:none;width:22px;height:22px}
.math-modern-tile .shapes-choice span{font-size:10px;font-weight:600}
.math-modern-tile .shapes-visual{width:100%;height:100%;max-width:280px;max-height:100%;aspect-ratio:auto}
.math-modern-tile .shapes-stat{min-height:60px}
.math-modern-tile .pattern-maker-controls label>span{font-size:10px;font-weight:600;text-transform:none;letter-spacing:0;opacity:.65}
.math-modern-tile .pattern-maker-palette{gap:8px;padding:4px}
.math-modern-tile .pattern-maker-color{border-radius:9px;box-shadow:0 0 0 1px color-mix(in srgb,var(--module-text,#17191d) 20%,transparent);transform:none}
.math-modern-tile .pattern-maker-color.is-selected{box-shadow:0 0 0 2px var(--module-text,#17191d);transform:none}
.math-modern-tile .pattern-maker-row{grid-template-columns:20px minmax(0,1fr) 28px}
.math-modern-tile .pattern-maker-remove-row{width:28px;height:28px;border:1px solid color-mix(in srgb,var(--module-text,#17191d) 13%,transparent);border-radius:9px;background:var(--module-bg,#fff);opacity:0;visibility:hidden;transition:opacity .15s}
.math-modern-tile .pattern-maker-row:is(:hover,:focus-within) .pattern-maker-remove-row:not(:disabled){opacity:1;visibility:visible}
.math-modern-tile .grapher-error:empty{display:none}
.math-modern-tile .grapher-error:not(:empty){margin-top:6px;font-size:11px;flex:none}
.math-modern-tile .grapher-point-row label,.math-modern-tile .grapher-range-row label{font-size:11px;font-weight:550;opacity:1}
.math-modern-tile .grapher-coordinate-readout{flex-basis:100%;order:2;margin-left:0;font-size:10px}
.math-modern-tile .grapher-range-row{gap:6px}
.math-modern-tile .grapher-range-row input{width:62px}
@media(hover:none){
 .module.math-modern-tile{padding-bottom:48px}
 .math-modern-tile .math-hover-group{grid-template-rows:1fr;margin-top:8px;opacity:1;visibility:visible;pointer-events:auto}
 .math-modern-tile .pattern-maker-remove-row:not(:disabled){opacity:1;visibility:visible}
}
@media(prefers-reduced-motion:reduce){.module.math-modern-tile,.math-modern-tile .math-hover-group,.math-modern-tile button{transition:none}}

.math-modern-tile .numberline-point-readout[hidden]{display:none!important}
.math-modern-tile .pattern-maker-controls{grid-template-columns:minmax(100px,1fr) 66px auto}
.math-modern-tile .pattern-maker-apply{grid-column:auto}
.math-modern-tile .pattern-maker-board{justify-content:safe center}
