/* The keyboard lives inside the course app, including its portrait-to-landscape transform. */
.nk-canonical{display:none!important}
.nk-fraction{display:inline-flex;align-items:center;gap:4px;min-width:0;max-width:100%}
.nk-fraction input{min-width:0!important;width:72px!important;text-align:center}
.nk-fraction>span{color:#716347;font-weight:700}
#numberKeypadToggle{flex:none!important;min-width:34px!important;width:36px;padding:3px!important;font-size:20px!important;line-height:1!important}
#numberKeypadToggle[hidden]{display:none!important}
#numberKeypad{display:none}
.nk-open .nk-host#exercise{position:relative;display:block!important;padding:5px!important;overflow:hidden!important;min-width:0;background:#fff8eb}
.nk-open .nk-host#exercise>*:not(#numberKeypad){display:none!important}
.nk-open #numberKeypad{display:flex;flex-direction:column;gap:6px;width:100%;height:100%;min-height:0;min-width:0}
.nk-editor{display:flex;align-items:center;gap:5px;min-width:0;flex:none;padding:2px 1px}
.nk-label{flex:1;min-width:0;font-size:13px;line-height:1.25;color:#675c60;overflow-wrap:anywhere}
.nk-values{display:flex;align-items:center;gap:3px;min-width:0;max-width:75%}
.nk-values .nk-value{padding:5px 7px!important;min-width:48px;min-height:37px;max-width:140px;white-space:nowrap!important;overflow:auto;font-size:20px!important;line-height:1.2!important;border:2px solid #b1c8b8;background:#fffefa!important;border-radius:8px;color:#45415b}
.nk-values .nk-value.active{border-color:#b58c3d;background:#fff2cf!important;box-shadow:0 0 0 1px #e4cf9e}
.nk-slash{font-size:22px;color:#7b6744}
.nk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.35fr);grid-template-rows:repeat(4,minmax(30px,1fr));gap:5px;flex:1;min-height:0}
.nk-grid button{width:100%;min-width:0;min-height:30px;padding:3px!important;font-size:21px!important;line-height:1.2!important;background:#fffefa!important;border:1px solid #d9c9ad!important;border-radius:9px;touch-action:manipulation;user-select:none;box-shadow:0 1px 0 #e2d1ad}
.nk-grid button:active{background:#f8e7b9!important;box-shadow:none}
.nk-grid .nk-tool{font-size:13px!important;color:#6b5b42;background:#f7eed8!important}
.nk-grid .nk-submit{font-size:14px!important;color:#fffefa!important;background:#357f73!important;border-color:#29685f!important}
.nk-grid [data-nk-key=blank]{visibility:hidden}
.nk-notice{font-size:12px;line-height:1.25;color:#8a542e;flex:none}
.nk-notice:empty{display:none}
@container mathapp (max-height:520px){
 .ut-practice .nk-open .board{grid-template-columns:minmax(0,1fr) 220px!important}
 .nk-open .nk-host#exercise{padding:3px!important}
 .nk-open #numberKeypad{gap:3px}
 .nk-editor{padding:0;gap:3px;min-height:29px}
 .nk-label{font-size:11px}
 .nk-values .nk-value{min-height:27px!important;min-width:38px;max-width:102px;font-size:17px!important;padding:2px 4px!important}
 .nk-slash{font-size:17px}
 .nk-grid{gap:3px;grid-template-rows:repeat(4,minmax(23px,1fr))}
 .nk-grid button{min-height:23px!important;font-size:19px!important;padding:1px!important;border-radius:7px}
 .nk-grid .nk-tool,.nk-grid .nk-submit{font-size:12px!important}
 .nk-notice{font-size:10px}
 .nk-fraction input{width:53px!important}
 #numberKeypadToggle{width:29px;min-width:29px!important;min-height:28px!important;font-size:18px!important}
}
