/* VERSION B of the Kit engine (05.11): #12 Fraction, #22 Parts of Speech, #24 Group Generator, #28 Tone, #41 Easy Grader,
   #75 Punnett. Linked only from «New Tool Kit B.dc.html». Every class is kb-; A classes are reused, never restyled
   outside a kb- parent. #11 wheel, #32, #78, #79 are not touched by anything here. */

.nt-page .kb-pane{position:relative;display:flex;flex-direction:column;gap:16px}
.nt-page .kb-pane > div{display:flex;flex-direction:column;gap:16px;min-width:0}
.nt-page .kb-tabs{margin-bottom:2px}
.nt-page .kb-cap{font:500 11px var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.nt-page .kb-lempty{margin:0;color:var(--muted);font-size:13.5px}
.nt-page .kb-plate{padding:20px;border-radius:16px;background:color-mix(in srgb,var(--line) 28%,var(--surface2))}
.nt-page .kb-kbd{margin-left:10px;padding:1px 7px;border-radius:6px;background:rgba(255,255,255,.18);font:500 11px var(--font-mono);letter-spacing:.02em}
.nt-page .qa-btn .kb-kbd,.nt-page .kb-kbd.dim{background:var(--surface2);color:var(--muted)}

/* round icon buttons (same look as the wheel and Background Remover circles) */
.nt-page .kb-cb{position:relative;display:inline-grid;place-items:center;flex:none;width:34px;height:34px;padding:0;border:1.5px solid var(--line);border-radius:99px;background:var(--surface);color:#626A64;cursor:pointer}
.nt-page .kb-cb::before{content:"";width:17px;height:17px;background:currentColor;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.nt-page .kb-cb:hover,.nt-page .kb-cb[aria-expanded="true"]{border-color:var(--ink);color:var(--ink)}
.nt-page .kb-cb:disabled{opacity:.4;cursor:default;border-color:var(--line)}
.nt-page .kb-cb[data-tip]::after{left:auto;right:0;transform:none}
:root[data-theme="dark"] .nt-page .kb-cb{color:#9EA396}
:root[data-theme="dark"] .nt-page .kb-cb:hover{color:var(--ink)}
.nt-page .kb-i-ok{color:var(--green)!important;border-color:var(--green)!important}
.nt-page .kb-i-copy{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='2.5'/%3E%3Cpath d='M16 8V6.5A2.5 2.5 0 0 0 13.5 4h-7A2.5 2.5 0 0 0 4 6.5v7A2.5 2.5 0 0 0 6.5 16H8'/%3E%3C/svg%3E")}
.nt-page .kb-i-ok{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
.nt-page .kb-i-dl{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m-5-5 5 5 5-5M5 20h14'/%3E%3C/svg%3E")}
.nt-page .kb-i-link{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1.2 1.2'/%3E%3Cpath d='M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1.2-1.2'/%3E%3C/svg%3E")}
.nt-page .kb-i-print{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 9V4h10v5'/%3E%3Crect x='3.5' y='9' width='17' height='8' rx='2'/%3E%3Cpath d='M7 14h10v6H7z'/%3E%3C/svg%3E")}
.nt-page .kb-i-proj{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M12 16v4M8 20h8'/%3E%3C/svg%3E")}
.nt-page .kb-i-shuffle{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h3.5c2 0 3.2 1 4.3 2.7l2.4 4.6c1.1 1.7 2.3 2.7 4.3 2.7H21'/%3E%3Cpath d='M3 17h3.5c1.4 0 2.4-.5 3.2-1.4M13.3 8.4c.8-.9 1.8-1.4 3.2-1.4H21'/%3E%3Cpath d='m18 4 3 3-3 3M18 14l3 3-3 3'/%3E%3C/svg%3E")}
.nt-page .kb-i-edit{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16z'/%3E%3Cpath d='m13.5 6.5 4 4'/%3E%3C/svg%3E")}

.nt-page .kb-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.nt-page .kb-htx{display:flex;flex-direction:column;gap:2px;min-width:0}
.nt-page .kb-htx b{font:600 16px/1.3 var(--font-body);color:var(--ink)}
.nt-page .kb-htx span{font:500 12px var(--font-mono);color:var(--muted);overflow-wrap:anywhere}
.nt-page .kb-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.nt-page .kb-mw{position:relative}
.nt-page .kb-pop{left:auto;right:0;top:calc(100% + 6px);width:min(290px,86vw)}
.nt-page .kb-pop:focus{outline:none}
.nt-page .kb-pop .kt-lmb.on{background:var(--surface2);font-weight:700}
.nt-page .kb-toast{position:absolute;left:50%;bottom:-6px;z-index:8;transform:translate(-50%,8px);opacity:0;pointer-events:none;max-width:calc(100% - 24px);padding:9px 16px;border-radius:99px;background:var(--ink);color:var(--surface);font:600 13.5px var(--font-body);text-align:center;transition:opacity .2s,transform .2s}
.nt-page .kb-toast.show{opacity:1;transform:translate(-50%,0)}
.nt-page .kb-run{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.nt-page .kb-runnote{font-size:13px;color:var(--muted)}
.nt-page .kb-ta{width:100%;min-height:150px;resize:vertical;font-size:16px;line-height:1.6}
.nt-page .kb-tcard{display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px 18px;border:1.5px solid var(--line);border-radius:16px;background:var(--surface)}
.nt-page .kb-tagbox{margin:0;padding:4px 0;font-size:17px;line-height:2.15;overflow-wrap:anywhere}
.nt-page .kb-try{margin-top:14px}
.nt-page .kb-chev{width:12px;height:12px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat}

/* switches (legend rows, Show answers) */
.nt-page .kb-tog,.nt-page .kb-switch i{position:relative;flex:none;width:30px;height:18px;border-radius:99px;background:var(--green);transition:background .15s}
.nt-page .kb-tog::after,.nt-page .kb-switch i::after{content:"";position:absolute;top:2px;left:14px;width:14px;height:14px;border-radius:50%;background:#fff;transition:left .15s}
.nt-page .off .kb-tog,.nt-page .kb-switch:not(.on) i{background:var(--sw-off,#CFCFC4)}
.nt-page .off .kb-tog::after,.nt-page .kb-switch:not(.on) i::after{left:2px}
.nt-page .kb-switch{display:inline-flex;align-items:center;gap:9px;border:0;background:none;padding:4px 0;cursor:pointer;font:600 14px var(--font-body);color:var(--ink)}

/* ---------- #12 fraction ---------- */
.nt-page .kb-fmode{align-self:flex-start;width:auto}
.nt-page .kb-eqrow{display:flex;align-items:center;flex-wrap:wrap;gap:14px 16px}
.nt-page .kb-ops{display:grid;grid-template-columns:repeat(2,36px);gap:5px}
.nt-page .kb-op{width:36px;height:34px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:600 19px/1 var(--font-body);cursor:pointer}
.nt-page .kb-op:hover{border-color:var(--ink)}
.nt-page .kb-op.on{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.nt-page .kb-eqs{font:500 30px var(--font-display);color:var(--muted)}
.nt-page .kb-ans{display:flex;align-items:center;gap:6px;min-width:64px;font:600 34px var(--font-display);color:var(--green-deep)}
.nt-page .kb-ans0{justify-content:center;height:84px;border:2px dashed var(--line);border-radius:12px;color:var(--muted);font-size:26px}
.nt-page .kb-sign{min-width:48px;text-align:center;font:600 40px var(--font-display);color:var(--green-deep)}
.nt-page .kb-sign.off{color:var(--muted)}
.nt-page .kb-wait{margin:0;color:var(--muted);font-size:14px}
.nt-page .kb-expr{display:flex;flex-direction:column;gap:10px}
.nt-page .kb-expr .kt-exprrow{display:flex;gap:10px;align-items:flex-end}
.nt-page .kb-expr .oc-field{flex:1;min-width:0}
.nt-page .kb-expr .kt-exprin{width:100%;font-size:18px}
.nt-page .kb-keys{display:flex;flex-wrap:wrap;gap:6px}
.nt-page .kb-key{min-width:40px;height:36px;padding:0 10px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);font:600 17px var(--font-body);color:var(--ink);cursor:pointer}
.nt-page .kb-key:hover{border-color:var(--ink)}
.nt-page .kb-fres{display:flex;flex-direction:column;gap:20px}
.nt-page .kb-fcard{display:flex;flex-direction:column;gap:14px}
.nt-page .kb-exeq{font-size:26px}
.nt-page .kb-forms{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.nt-page .kb-form{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;padding:10px 14px 12px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);cursor:copy;text-align:left;color:var(--ink)}
.nt-page .kb-form:hover{border-color:var(--green)}
.nt-page .kb-form.done{border-color:var(--green);background:var(--green-tint)}
.nt-page .kb-form b{font:600 19px/1.3 var(--font-body);overflow-wrap:anywhere;max-width:100%}
.nt-page .kb-form b small{font:500 11px var(--font-mono);color:var(--muted)}
.nt-page .kb-fcap{font:500 10.5px var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.nt-page .kb-fcols{gap:24px}
.nt-page .kb-steps{list-style:none;counter-reset:s;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.nt-page .kb-steps li{counter-increment:s;display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--line) 28%,var(--surface2));font-size:14.5px;line-height:1.5}
.nt-page .kb-steps li::before{content:counter(s);display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--surface);font:600 12px var(--font-mono);color:var(--green-deep)}
@media(max-width:760px){.nt-page .kb-forms{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  .nt-page .kb-plate{padding:14px}
  .nt-page .kb-eqrow{gap:10px}
  .nt-page .kb-ops{grid-template-columns:repeat(4,34px)}
  .nt-page .kb-eqrow .kb-ops{order:0}
  .nt-page .kb-ans{font-size:28px}
  .nt-page .kb-eqs{font-size:24px}
  .nt-page .kb-fmode{width:100%}
  .nt-page .kb-expr .kt-exprrow{flex-direction:column;align-items:stretch}
}

/* ---------- #22 parts of speech ---------- */
.nt-page .kb-posgrid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}
.nt-page .kb-side{display:flex;flex-direction:column;gap:12px;min-width:0}
.nt-page .kb-word{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border-radius:16px;background:color-mix(in srgb,var(--line) 28%,var(--surface2))}
.nt-page .kb-wtop{display:flex;align-items:center;gap:10px}
.nt-page .kb-wtop .kt-wc-word{font:600 22px var(--font-display)}
.nt-page .kb-wx{margin-left:auto}
.nt-page .kb-word .kt-wc-why{margin:0;font-size:14px}
.nt-page .kb-word .opt-in{width:100%}
.nt-page .kb-whint{margin:0;padding:14px 16px;border-radius:16px;border:1.5px dashed var(--line);color:var(--muted);font-size:14px}
.nt-page .kb-lhead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}
.nt-page .kb-legend{display:flex;flex-direction:column;border:1.5px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface)}
.nt-page .kb-lrow{display:grid;grid-template-columns:12px minmax(0,1fr) 28px 40px 30px;align-items:center;gap:10px;padding:8px 12px;border:0;border-top:1px solid var(--line);background:none;cursor:pointer;text-align:left;color:var(--ink);font:500 14px var(--font-body)}
.nt-page .kb-lrow:first-child{border-top:0}
.nt-page .kb-lrow:hover{background:var(--surface2)}
.nt-page .kb-lsw{width:12px;height:12px;border-radius:4px;background:var(--pc)}
.nt-page .kb-ln{font:600 13px var(--font-mono);text-align:right}
.nt-page .kb-lpct{font:500 12px var(--font-mono);color:var(--muted);text-align:right}
.nt-page .kb-lrow.off .kb-lname,.nt-page .kb-lrow.off .kb-ln{color:var(--muted)}
.nt-page .kb-lrow.off .kb-lsw{opacity:.35}
@media(max-width:900px){.nt-page .kb-posgrid{grid-template-columns:minmax(0,1fr)}}

/* ---------- #24 groups ---------- */
.nt-page .kb-gwrap{position:relative}
.nt-page .kb-ggrid{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);gap:28px;align-items:start}
.nt-page .kb-gleft,.nt-page .kb-gright,.nt-page .kb-gres{display:flex;flex-direction:column;gap:14px;min-width:0}
.nt-page .kb-gleft .kt-names{width:100%;min-height:180px}
.nt-page .kb-lhd{display:flex;align-items:center;justify-content:space-between;gap:10px}
.nt-page .kb-lname2{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:2px 0;border:0;background:none;cursor:pointer;color:var(--ink);font:600 21px/1.2 var(--font-display)}
.nt-page .kb-lname2>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.nt-page .kb-lname2:hover{color:var(--green-deep)}
.nt-page .kb-lpop{left:0;right:auto;width:min(290px,calc(100vw - 48px))}
.nt-page .kb-lmrow{display:flex;align-items:center;gap:4px}
.nt-page .kb-lmrow .kt-lmb{flex:1;min-width:0}
.nt-page .kb-lempty{padding:2px 10px 6px}
.nt-page .kb-lnew{margin-top:4px;border-top:1px solid var(--line)!important;border-radius:0 0 9px 9px;color:var(--green-deep)}
.nt-page .kb-lnew:disabled{color:var(--muted);cursor:default}
.nt-page .kb-save{flex:none}
.nt-page .kb-saverow{display:flex;gap:8px;align-items:center}
.nt-page .kb-saverow .opt-in{flex:1;min-width:0}
.nt-page .kb-split{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:16px;background:color-mix(in srgb,var(--line) 28%,var(--surface2))}
.nt-page .kb-quick{gap:6px}
.nt-page .kb-make{display:flex;align-items:center;gap:8px;font-weight:600}
.nt-page .kb-make .opt-in{min-width:0}
.nt-page .kb-make select.opt-in{flex:1}
.nt-page .kb-num{width:76px;flex:none;text-align:center}
.nt-page .kb-left{width:100%}
.nt-page .kb-rules{border:1.5px solid var(--line);border-radius:16px;background:var(--surface)}
.nt-page .kb-rhead{display:flex;align-items:center;gap:10px;width:100%;padding:12px 16px;border:0;background:none;cursor:pointer;color:var(--ink);text-align:left;font:600 15px var(--font-body)}
.nt-page .kb-rhead small{flex:1;min-width:0;font:500 12px var(--font-mono);color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.nt-page .kb-rules.open .kb-rhead .kb-chev{transform:rotate(180deg)}
.nt-page .kb-rbody{display:flex;flex-direction:column;gap:10px;padding:0 16px 16px}
.nt-page .kb-pairs{display:flex;flex-wrap:wrap;gap:6px}
.nt-page .kb-pair{display:inline-flex;align-items:center;gap:6px;padding:4px 4px 4px 10px;border-radius:99px;background:var(--surface2);border:1px solid var(--line);font-size:14px}
.nt-page .kb-pair i{font-style:normal;color:var(--muted)}
.nt-page .kb-rbody .kt-apartadd{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px}
.nt-page .kb-rbody .oc-field .opt-in{width:100%}
.nt-page .kb-gleft .kt-make{width:100%}
.nt-page .kb-groups{display:grid;grid-template-columns:repeat(auto-fill,minmax(178px,1fr));gap:12px}
.nt-page .kb-groups ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.nt-page .kb-person{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:3px 4px 3px 8px;border-radius:8px;font:500 14.5px var(--font-body)}
.nt-page .kb-person:hover{background:var(--surface2)}
.nt-page .kb-person.locked{background:var(--green-tint);font-weight:700}
.nt-page .kb-lock{flex:none;width:26px;height:26px;padding:0;border:0;border-radius:7px;background:none;cursor:pointer;color:var(--muted);opacity:.0;transition:opacity .12s}
.nt-page .kb-person:hover .kb-lock,.nt-page .kb-lock:focus-visible,.nt-page .kb-lock.on{opacity:1}
.nt-page .kb-lock::before{content:"";display:block;width:15px;height:15px;margin:auto;background:currentColor;-webkit-mask:var(--lk) center/contain no-repeat;mask:var(--lk) center/contain no-repeat;
  --lk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 7.6-1.7'/%3E%3C/svg%3E")}
.nt-page .kb-lock.on{color:var(--green-deep)}
.nt-page .kb-lock.on::before{--lk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3' fill='none'/%3E%3C/svg%3E")}
.nt-page .kb-lock:hover{background:var(--surface)}
@media(hover:none){.nt-page .kb-lock{opacity:1}}
@media(max-width:900px){.nt-page .kb-ggrid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.nt-page .kb-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.nt-page .kb-rbody .kt-apartadd{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.nt-page .kb-rbody .kt-apartadd .qa-btn{grid-column:1/-1}}
@media(max-width:360px){.nt-page .kb-groups{grid-template-columns:minmax(0,1fr)}}

/* ---------- #28 tone ---------- */
.nt-page .kb-ctx{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.nt-page .kb-ctx .opt-in{width:100%}
.nt-page .kb-tgrid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px;align-items:start}
.nt-page .kb-tdraft{font-size:16.5px;line-height:1.9}
.nt-page .kb-tdraft .kt-ev{transition:opacity .15s}
.nt-page .kb-tdraft .kt-ev.kb-dim{background:none;border-bottom-color:var(--line);color:inherit}
.nt-page .kb-tside{display:flex;flex-direction:column;gap:14px;min-width:0;padding:16px 18px;border-radius:16px;background:color-mix(in srgb,var(--line) 28%,var(--surface2))}
.nt-page .kb-tside.is-stale{opacity:.55}
.nt-page .kb-tempty b{font:600 18px var(--font-display)}
.nt-page .kb-tempty ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:14.5px}
.nt-page .kb-tempty>span{font-size:13px;color:var(--muted)}
.nt-page .kb-mis{margin:0}
.nt-page .kb-tones{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.nt-page .kb-tonec{display:flex;flex-direction:column;gap:6px;width:100%;padding:12px 14px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);cursor:pointer;text-align:left;color:var(--ink);font:inherit}
.nt-page .kb-tonec:hover{border-color:var(--ink)}
.nt-page .kb-tonec.on{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.nt-page .kb-thead{display:flex;align-items:center;justify-content:space-between;gap:10px}
.nt-page .kb-thead b{font:600 16px var(--font-body)}
.nt-page .kb-texp{font-size:14px;line-height:1.5}
.nt-page .kb-tonec .kt-evid{display:flex;flex-wrap:wrap;gap:6px}
.nt-page .kb-tside .kt-qs ol{margin:6px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:4px;font-size:14.5px}
.nt-page .kb-skel{gap:12px}
.nt-page .kb-sk{display:block;height:14px;width:100%;border-radius:7px;background:linear-gradient(90deg,var(--line) 0%,var(--surface) 50%,var(--line) 100%);background-size:200% 100%;animation:kbsk 1.4s linear infinite}
.nt-page .kb-sk.w60{width:60%}.nt-page .kb-sk.w80{width:80%}
@keyframes kbsk{to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.nt-page .kb-sk{animation:none}}
@media(max-width:900px){.nt-page .kb-tgrid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.nt-page .kb-ctx{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.nt-page .kb-ctx>:last-child{grid-column:1/-1}}

/* ---------- #41 grader ---------- */
.nt-page .kb-grader{gap:18px}
.nt-page .kb-gtop{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,220px) minmax(0,1fr);gap:18px;align-items:stretch;padding:18px;border-radius:16px;background:color-mix(in srgb,var(--line) 28%,var(--surface2))}
.nt-page .kb-gins{display:flex;flex-direction:column;gap:12px}
.nt-page .kb-stepin{display:flex;align-items:center;gap:6px}
.nt-page .kb-stepin .opt-in{flex:1;min-width:0;width:100%;text-align:center;font:600 20px var(--font-body);padding-block:8px}
.nt-page .kb-pm{position:relative;flex:none;width:42px;height:44px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);cursor:pointer;color:var(--ink)}
.nt-page .kb-pm:hover{border-color:var(--ink)}
.nt-page .kb-pm::before,.nt-page .kb-plus::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2.2px;margin:-1.1px 0 0 -7px;border-radius:2px;background:currentColor}
.nt-page .kb-plus::after{transform:rotate(90deg)}
.nt-page .kb-gout{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:16px;border-radius:16px;background:var(--surface);border:1.5px solid var(--line);border-top:6px solid var(--bc,var(--line))}
.nt-page .kb-gpct{font:600 46px/1 var(--font-display);color:var(--bc,var(--muted))}
.nt-page .kb-glet{min-width:44px;padding:2px 12px;border-radius:99px;background:var(--bd);color:var(--bc);font:700 20px var(--font-body);text-align:center}
.nt-page .kb-gout.empty .kb-glet{display:none}
.nt-page .kb-gof{font:500 12.5px var(--font-mono);color:var(--muted)}
.nt-page .kb-gnext{display:flex;flex-direction:column;gap:12px;min-width:0}
.nt-page .kb-gnext>.btn{align-self:flex-start}
.nt-page .kb-stack{display:flex;flex-direction:column;gap:6px;min-width:0}
.nt-page .kb-stack ol{margin:0;padding-left:20px;font:500 13px var(--font-mono);display:flex;flex-direction:column;gap:2px}
.nt-page .kb-stack .lb-clear{align-self:flex-start}
.nt-page .kb-gset{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end}
.nt-page .kb-gset .opt-in{width:100%}
.nt-page .kb-chart{display:flex;flex-direction:column;gap:12px}
.nt-page .kb-view{width:auto}
.nt-page .kb-view .nt-seg{padding:6px 12px}
.nt-page .kb-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:8px}
.nt-page .kb-tile{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:2px 6px;padding:8px 10px;border:1.5px solid transparent;border-left:4px solid var(--bc);border-radius:10px;background:var(--bd);cursor:pointer;text-align:left;color:var(--ink)}
.nt-page .kb-tile:hover{border-color:var(--bc)}
.nt-page .kb-tile.on{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.nt-page .kb-tw{grid-column:1/-1;font:500 11px var(--font-mono);color:var(--muted)}
.nt-page .kb-tile b{font:600 17px var(--font-body)}
.nt-page .kb-tl{font:700 14px var(--font-body);color:var(--bc)}
.nt-page .kb-chart tr{cursor:pointer}
.nt-page .kb-chart tr.kb-on td{box-shadow:inset 0 2px 0 var(--ink),inset 0 -2px 0 var(--ink)}
@media(max-width:900px){.nt-page .kb-gtop{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.nt-page .kb-gnext{grid-column:1/-1}}
@media(max-width:600px){
  .nt-page .kb-gtop{grid-template-columns:minmax(0,1fr);padding:14px}
  .nt-page .kb-gset{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.nt-page .kb-gset>:first-child{grid-column:1/-1}
  .nt-page .kb-gnext>.btn{align-self:stretch}
  .nt-page .kb-tiles{grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}
}

/* ---------- #75 Punnett ---------- */
.nt-page .kb-prow{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.nt-page .kb-prow .nt-level{width:auto}
.nt-page .kb-pushr{margin-left:auto}
.nt-page .kb-parents{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center}
.nt-page .kb-parent{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:16px;background:color-mix(in srgb,var(--line) 28%,var(--surface2))}
.nt-page .kb-gseg{width:100%}
.nt-page .kb-gseg .nt-seg{flex:1;font:600 15px var(--font-mono)}
.nt-page .kb-gtype{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.nt-page .kb-gtype .opt-in{flex:1;min-width:0;width:auto;padding-block:7px}
.nt-page .kb-pres{display:flex;flex-direction:column;gap:16px}
.nt-page .kb-pgrid{display:grid;grid-template-columns:auto minmax(0,1fr);gap:28px;align-items:start}
.nt-page .kb-psq{display:flex;flex-direction:column;gap:8px;min-width:0}
.nt-page .kb-sq td{padding:0}
.nt-page .kb-sq td button{width:100%;height:100%;min-height:inherit;padding:0;border:0;background:none;cursor:pointer;font:inherit;color:inherit}
.nt-page .kb-sq.picking td:not(.kb-hit){opacity:.38}
.nt-page .kb-sq td.kb-hit{border-color:var(--ink);box-shadow:0 0 0 1.5px var(--ink)}
.nt-page .kb-cellinfo{margin:0;font-size:13.5px;color:var(--muted)}
.nt-page .kb-cellinfo.on{color:var(--ink)}
.nt-page .kb-pratios{display:flex;flex-direction:column;gap:10px;min-width:0}
.nt-page .kb-stackbar{display:flex;height:14px;border-radius:99px;overflow:hidden;gap:2px}
.nt-page .kb-stackbar i{flex-basis:0;background:var(--sw)}
.nt-page .kb-glist{list-style:none;margin:0 0 4px;padding:0;display:flex;flex-direction:column;gap:2px}
.nt-page .kb-glist button{display:grid;grid-template-columns:62px minmax(0,1fr) 92px;align-items:center;gap:10px;width:100%;padding:4px 6px;border:0;border-radius:8px;background:none;cursor:pointer;text-align:left;color:var(--ink);font:500 13.5px var(--font-body)}
.nt-page .kb-glist button b{font:600 14px var(--font-mono)}
.nt-page .kb-glist li.on button,.nt-page .kb-glist button:hover{background:var(--surface2)}
.nt-page .kb-gbar{height:6px;border-radius:99px;background:var(--line);overflow:hidden}
.nt-page .kb-gbar i{display:block;height:100%;background:var(--green)}
.nt-page .kb-glist button>span:last-child{font:500 12px var(--font-mono);color:var(--muted);text-align:right}
.nt-page .kb-steps2 summary{cursor:pointer;font:600 14px var(--font-body)}
.nt-page .kb-steps2 .kt-steps{margin-top:8px}
.nt-page .kb-whead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.nt-page .kb-whead .nt-level{width:auto}
@media(max-width:900px){.nt-page .kb-pgrid{grid-template-columns:minmax(0,1fr)}.nt-page .kb-psq .kt-sqwrap{overflow-x:auto}}
@media(max-width:600px){.nt-page .kb-parents{grid-template-columns:minmax(0,1fr)}.nt-page .kb-parents .kt-x{text-align:center}.nt-page .kb-pushr{margin-left:0}}
@media(max-width:420px){.nt-page .kb-make{flex-wrap:wrap}.nt-page .kb-make select.opt-in{flex:1 1 140px}}

/* ===== ITER «#41 Easy Grader · night 09.11» — rollback = delete down to END ===== */
.nt-page .kb9-grader .kb9-bycap{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:22px}
.nt-page .kb9-grader .kb9-by{padding:2px;border-radius:9px;border-width:1px}
.nt-page .kb9-grader .kb9-by .nt-seg{padding:2px 9px;border-radius:7px;font:600 12.5px var(--font-body)}
.nt-page .kb9-grader .kb9-stackact{display:flex;gap:14px;flex-wrap:wrap}
.nt-page .kb9-grader .kb9-stackact .lb-clear{align-self:auto}
.nt-page .kb9-grader .kb9-chead{align-items:flex-end}
.nt-page .kb9-grader .kb9-chead .kb-htx b{font:600 18px/1.3 var(--font-body)}
.nt-page .kb9-grader .kb9-chead .kb-htx span{font:500 12.5px var(--font-body);color:var(--muted)}
.nt-page .kb9-dlw{margin:0}
.nt-page .kb9-dlw .rb-dl{min-height:0;height:38px;padding:0 16px}
.nt-page .kb9-dloff{margin:4px 10px 6px}
.nt-page .rb-dli[data-ic=csv]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%23188A55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 13V6.5A2.5 2.5 0 0 1 9.5 4H17l6 6v3'/%3E%3Cpath d='M17 4v4.5A1.5 1.5 0 0 0 18.5 10H23'/%3E%3C/g%3E%3Ctext x='15' y='25.5' text-anchor='middle' font-family='Helvetica,Arial,sans-serif' font-size='9.5' font-weight='800' fill='%23188A55'%3ECSV%3C/text%3E%3C/svg%3E")}
:root[data-theme="dark"] .nt-page .rb-dli[data-ic=csv]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%2346C08A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 13V6.5A2.5 2.5 0 0 1 9.5 4H17l6 6v3'/%3E%3Cpath d='M17 4v4.5A1.5 1.5 0 0 0 18.5 10H23'/%3E%3C/g%3E%3Ctext x='15' y='25.5' text-anchor='middle' font-family='Helvetica,Arial,sans-serif' font-size='9.5' font-weight='800' fill='%2346C08A'%3ECSV%3C/text%3E%3C/svg%3E")}
.nt-page .kb9-dlw .rb-dli:disabled{opacity:.45;cursor:default;background:none}
@media(max-width:600px){
  .nt-page .kb9-grader .kb9-chead .kb-tools{width:100%;gap:6px;flex-wrap:nowrap}
  .nt-page .kb9-grader .kb9-chead .kb-view .nt-seg{padding:6px 10px}
  .nt-page .kb9-grader .kb9-chead .kb9-dlw{margin-left:auto}
  .nt-page .kb9-grader .kb9-chead .rb-dlmenu{right:0}
}
/* ===== END ===== */

/* ===== ITER «#12 Fraction Calculator · night 09.11» — rollback = delete down to END ===== */
/* icon tabs (the .pb-dtabs pattern of #08/#09 and Resume) with Download ▾ at their right */
.nt-page .kb9-dhead{display:flex;align-items:center;gap:16px;margin:-8px 0 0;box-shadow:inset 0 -1px 0 var(--line)}
.nt-page .kb9-dtabs{flex:1 1 auto;min-width:0;gap:24px;margin:0;border-bottom:0}
.nt-page .kb9-dtabs .oc-tab{display:inline-flex;flex-direction:column;align-items:center;gap:5px;margin:0;padding:4px 0 10px;border-bottom:0;font:600 15px var(--font-body);color:var(--muted)}
.nt-page .kb9-dtabs .oc-tab::before{content:"";width:26px;height:26px;background:currentColor;opacity:.85;-webkit-mask:var(--tk) center/contain no-repeat;mask:var(--tk) center/contain no-repeat}
.nt-page .kb9-dtabs .oc-tab.on{color:var(--ink);box-shadow:inset 0 -2px 0 var(--green)}
.nt-page .kb9-dtabs .oc-tab.on::before{background:var(--green-deep);opacity:1}
.nt-page .kb9-dtabs .oc-tab:hover:not(.on){color:var(--ink)}
.nt-page .kb9-dtabs .tk-calc{--tk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3.5' width='18' height='19' rx='3'/%3E%3Cpath d='M8 8.5h10M8.5 13.5h2M12 13.5h2M15.5 13.5h2M8.5 17.5h2M12 17.5h2M15.5 17.5h2'/%3E%3C/svg%3E")}
.nt-page .kb9-dtabs .tk-conv{--tk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4.5v5M4.5 12h5M7 14.5v7'/%3E%3Cpath d='M15 9.5h7M16.5 6l-3.5 3.5 3.5 3.5'/%3E%3Cpath d='M22 16.5h-7M20.5 13l3.5 3.5-3.5 3.5' transform='translate(-2 0)'/%3E%3C/svg%3E")}
.nt-page .kb9-dtabs .tk-cmp{--tk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4v18M8 22h10'/%3E%3Cpath d='M5 8h16'/%3E%3Cpath d='M5 8 2.5 14a3 3 0 0 0 5 0z'/%3E%3Cpath d='M21 8l-2.5 6a3 3 0 0 0 5 0z'/%3E%3C/svg%3E")}
.nt-page .kb9-dtabs .oc-ts{display:none}
.nt-page .kb9-ddl-top{flex:0 0 auto;align-self:center}
.nt-page .kb9-ddl-ph{display:none}
.nt-page .kb9-frac{gap:18px}
.nt-page .kb9-forms{grid-template-columns:repeat(auto-fit,minmax(128px,1fr))}
/* Try a similar problem (Math B card) */
.nt-page .kb9-simopen{margin-top:4px}
.nt-page .kb9-simq{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:0;font:600 28px var(--font-display);color:var(--ink)}
.nt-page .kb9-simq .kt-op{color:var(--muted);font-weight:500}
.nt-page .kb9-q{color:var(--muted)}
.nt-page .kb9-prac .mb-prac-steps li span{font-size:14.5px;color:var(--ink)}
/* Simplify & convert */
.nt-page .kb9-cvplate{display:flex;flex-direction:column;gap:12px}
.nt-page .kb9-cvplate .kb-try{margin-top:0}
.nt-page .kb9-cvbox.is-no{border-color:#C0574F}
.nt-page .kb9-eqv{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px}
.nt-page .kb9-eqv .kb-cap{margin-right:4px}
.nt-page .kb9-cmpsteps{display:flex;flex-direction:column}
.nt-page .kb9-frac .nt-chip.on{background:var(--green-tint);border-color:var(--green);color:var(--green-deep)}
.nt-page .kb9-cpmenu{width:max-content;min-width:220px;max-width:min(300px,calc(100vw - 32px))}
.nt-page .kb9-cpmenu .kt-lmb small{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root[data-theme="dark"] .nt-page .kb9-cvbox.is-no{border-color:#E8A49E}
@media(max-width:600px){
  .nt-page .kb9-dhead{margin-top:-4px}
  .nt-page .kb9-dtabs{gap:4px;justify-content:space-between}
  .nt-page .kb9-dtabs .oc-tab{flex:1 1 0;font-size:15px}   /* Cos 12.11: phone tabs at desktop size, family-wide */
  .nt-page .kb9-dtabs .oc-tab::before{width:26px;height:26px}   /* Cos 12.11: phone tabs at desktop size, family-wide */
  .nt-page .kb9-dtabs .oc-tl{display:none}
  .nt-page .kb9-dtabs .oc-ts{display:inline}
  .nt-page .kb9-ddl-top{display:none}
  .nt-page .kb9-ddl-ph{display:block}
  .nt-page .kb9-ddl-solo{align-self:flex-start}
  .nt-page .kb9-simq{font-size:24px}
}
/* menus open from the right edge of the head (the copy circle sits left of Download) */
.nt-page .kb9-frac .kb-head .kb-tools{position:relative;margin-left:auto}
.nt-page .kb9-frac .kb9-cpw{position:static}
.nt-page .kb9-dlw .rb-dlmenu{max-width:min(300px,calc(100vw - 48px))}
@media(max-width:400px){
  .nt-page .kb9-frac .kb-fmode{display:flex}
  .nt-page .kb9-frac .kb-fmode .nt-seg{flex:1 1 auto;padding:8px 6px;font-size:13px}
  .nt-page .kb9-dlw .rb-dlmenu{min-width:0;max-width:calc(100vw - 80px)}
  .nt-page .kb9-grader .kb9-chead .kb-tools{flex-wrap:wrap}
}
/* ===== END ===== */

/* ===== ITER «#75 Punnett + #28 Tone · batch 3 · 10.11» — rollback = delete down to END ===== */
/* icon tabs reuse .kb9-dtabs (#12); own icons; Download at the right of the tab row, inside the content on phones */
.nt-page .kb3-dhead .kb9-dtabs{gap:28px}
.nt-page .kb3-dltop{flex:0 0 auto;align-self:center}
.nt-page .kb3-ph{display:none}
.nt-page .kb9-dtabs .tk-pq{--tk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='19' height='19' rx='2.5'/%3E%3Cpath d='M13 3.5v19M3.5 13h19'/%3E%3Cpath d='M6.5 8.5h3.5M16 8.5h3.5M6.5 17.5h3.5M16 17.5h3.5' stroke-width='1.5'/%3E%3C/svg%3E")}
.nt-page .kb9-dtabs .tk-pblank{--tk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='19' height='19' rx='2.5' stroke-dasharray='3 2.6'/%3E%3Cpath d='M13 6.5v13M6.5 13h13'/%3E%3C/svg%3E")}
.nt-page .kb9-dtabs .tk-psheet{--tk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h9l4.5 4.5v14.5h-13.5z'/%3E%3Cpath d='M15.5 3.5V8H20'/%3E%3Cpath d='M9.5 12.5h1.5M13 12.5h4M9.5 16.5h1.5M13 16.5h4'/%3E%3C/svg%3E")}
.nt-page .kb9-dtabs .tk-tcheck{--tk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5A2.5 2.5 0 0 1 6.5 4h13A2.5 2.5 0 0 1 22 6.5v8.5a2.5 2.5 0 0 1-2.5 2.5H11l-5 4.5v-4.5h0A2.5 2.5 0 0 1 4 15z'/%3E%3Cpath d='M8 11c1.2-1.6 2.4-1.6 3.6 0s2.4 1.6 3.6 0 2.4-1.6 3.4 0'/%3E%3C/svg%3E")}
.nt-page .kb9-dtabs .tk-tlist{--tk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 7h11.5M10 13h11.5M10 19h11.5'/%3E%3Ccircle cx='5.5' cy='7' r='1.3'/%3E%3Ccircle cx='5.5' cy='13' r='1.3'/%3E%3Ccircle cx='5.5' cy='19' r='1.3'/%3E%3C/svg%3E")}
/* #75: the sample you are looking at is lit */
.nt-page .kb3-pun .kb-try .nt-chip.on{background:var(--green-tint);border-color:var(--green);color:var(--green-deep)}
/* #75 practice: numbered problems on a sheet card */
.nt-page .kb3-wsheet{display:flex;flex-direction:column;gap:12px;padding:18px 20px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface)}
.nt-page .kb3-wshead{display:flex;align-items:baseline;justify-content:space-between;gap:6px 16px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid var(--line)}
.nt-page .kb3-wshead b{font:600 16px var(--font-body);color:var(--ink)}
.nt-page .kb3-wshead span{font:500 12px var(--font-mono);color:var(--muted);white-space:pre-wrap}
.nt-page .kb3-pun .kb3-wlist{max-height:none;height:auto;min-height:0;flex:none;overflow:visible;margin:0;padding:0 0 0 22px;list-style:decimal;gap:10px;font-size:14.5px;line-height:1.5}
.nt-page .kb3-pun .kb3-wlist li{padding-left:4px}
.nt-page .kb3-pun .kb3-wlist li::marker{color:var(--muted);font-weight:600}
.nt-page .kb3-pun .kb3-wlist .kt-wa{display:block;margin-top:2px;color:var(--green-deep);font-weight:600}
:root[data-theme="dark"] .nt-page .kb3-pun .kb3-wlist .kt-wa{color:var(--green)}
/* #28 list: «Aim for this tone» */
.nt-page .kb3-tone .kb3-want{align-self:flex-start;margin-top:auto;padding-top:6px;font-size:13.5px}
.nt-page .kb3-tone .kb3-want.on,.nt-page .kb3-tone .kb3-want:disabled{color:var(--green-deep);text-decoration:none;cursor:default;opacity:1}
.nt-page .kb3-tone .kb3-lrow{justify-content:flex-end}
.nt-page .kb3-tone .kt-tone{display:flex;flex-direction:column;align-items:flex-start}
:root[data-theme="dark"] .nt-page .kb3-pun .kb-try .nt-chip.on{color:var(--green)}
:root[data-theme="dark"] .nt-page .kb3-tone .kb3-want.on,:root[data-theme="dark"] .nt-page .kb3-tone .kb3-want:disabled{color:var(--green)}
@media(max-width:600px){
  .nt-page .kb3-dhead .kb9-dtabs{gap:4px}
  .nt-page .kb3-dltop{display:none}
  .nt-page .kb3-ph{display:flex}
  .nt-page span.kb3-ph{display:inline-flex}
  .nt-page .kb3-ph .rb-dlmenu{right:0;left:auto}
  .nt-page .kb3-pun .kb-whead .kb3-ph{margin-left:auto}
  .nt-page .kb3-wsheet{padding:14px 14px}
  .nt-page .kb3-tone .kb-tside .kb-head .kb-tools,.nt-page .kb3-pun .kb-pres .kb-head .kb-tools{width:100%}
  .nt-page .kb3-tone .kb-tside .kb-head .kb3-ph,.nt-page .kb3-pun .kb-pres .kb-head .kb3-ph{margin-left:auto}
}
@media(max-width:400px){
  .nt-page .kb3-pun .kb-prow > .nt-level{display:flex;width:100%}
  .nt-page .kb3-pun .kb-prow > .nt-level .nt-seg{flex:1 1 auto;padding-left:6px;padding-right:6px}
  .nt-page .kb3-tone .kb-tside .rb-dlmenu{min-width:0;max-width:calc(100vw - 96px)}
}
/* ===== END ===== */

/* ===== ITER «#22 Parts of Speech + #24 Groups · batch 4 · 10.11» — rollback = delete down to END ===== */
/* #22 icon tabs (b3Tabs → .kb9-dtabs) with own icons: highlighted text · book · pencil on a sheet */
.nt-page .kb9-dtabs .tk-pid{--tk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='9' height='6' rx='1.5'/%3E%3Crect x='14' y='5' width='9' height='6' rx='1.5'/%3E%3Crect x='3' y='15' width='12' height='6' rx='1.5'/%3E%3Cpath d='M18 18h5'/%3E%3C/svg%3E")}
.nt-page .kb9-dtabs .tk-pref{--tk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 7.5c-2.5-2-5.5-2.5-9-2v14c3.5-.5 6.5 0 9 2 2.5-2 5.5-2.5 9-2v-14c-3.5-.5-6.5 0-9 2z'/%3E%3Cpath d='M13 7.5v14'/%3E%3C/svg%3E")}
.nt-page .kb9-dtabs .tk-pprac{--tk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4.5h11v17H5z'/%3E%3Cpath d='M8 9h5M8 13h3'/%3E%3Cpath d='M21.5 9.5 14 17l-1 3.5 3.5-1L24 12z'/%3E%3C/svg%3E")}
.nt-page .b4-pos{display:flex;flex-direction:column;gap:16px}
.nt-page .b4-pos .kb9-dhead{margin-bottom:2px}
.nt-page .b4-pos .kb-tcard .kb-head .kb-tools{display:flex;align-items:center;gap:8px}
.nt-page .b4-phrow{justify-content:flex-end}
/* practice: the legend is a palette, the chosen part is ringed; words are blanks until painted */
.nt-page .b4-prhead{margin-bottom:0}
.nt-page .b4-brushes{display:flex;flex-wrap:wrap;gap:6px}
.nt-page .b4-brushes .kt-lg{border-color:transparent}
.nt-page .b4-brushes .kt-lg.b4-on{border-color:var(--pc);box-shadow:0 0 0 2px var(--pc);color:var(--ink)}
.nt-page .b4-brushes .kt-lg:disabled{opacity:.55;cursor:default}
.nt-page .b4-prlist{counter-reset:b4p;gap:0;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}
.nt-page .b4-prlist li{position:relative;padding:8px 16px 8px 46px;border:0;border-top:1px solid var(--line);border-radius:0;background:none}
.nt-page .b4-prlist li:first-child{border-top:0}
.nt-page .b4-prlist li::before{counter-increment:b4p;content:counter(b4p);position:absolute;left:18px;top:50%;transform:translateY(-50%);font:600 13px var(--font-mono);color:var(--muted)}
.nt-page .b4-prlist .kt-tagp{line-height:2.3}
.nt-page .b4-prlist .kt-pw{line-height:1.35}
.nt-page .b4-pw.b4-blank{background:none;border-bottom:2px dotted color-mix(in srgb,var(--muted) 60%,transparent)}
.nt-page button.b4-pw:hover{outline:1.5px solid var(--line);outline-offset:1px}
.nt-page .b4-pw.b4-ok::after{content:"✓";margin-left:3px;font-size:12px;font-weight:700;color:var(--green-deep)}
.nt-page .b4-pw.b4-no{text-decoration:line-through;text-decoration-color:#C0392B;text-decoration-thickness:2px}
.nt-page .b4-pw.b4-no::after{content:"✗";margin-left:3px;font-size:12px;font-weight:700;color:#C0392B}
.nt-page .b4-prfoot{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap}
.nt-page .b4-score{font:500 14px var(--font-body);color:var(--muted)}
:root[data-theme="dark"] .nt-page .b4-pw.b4-ok::after{color:var(--green)}
:root[data-theme="dark"] .nt-page .b4-pw.b4-no::after{color:#F0938A}
:root[data-theme="dark"] .nt-page .b4-pw.b4-no{text-decoration-color:#F0938A}
/* #24: Download menu in the result head; roles */
.nt-page .b4-grp .b4-gdl{display:inline-flex;margin-left:4px}
.nt-page .b4-grp .kb-gres .kb-head .kb-tools{position:relative}
.nt-page .b4-grp .b4-gdl .rb-dlw{position:relative}
.nt-page .b4-grp .b4-gdl .rb-dlmenu{right:0;left:auto}
.nt-page .b4-roles{display:flex;flex-direction:column;gap:4px;padding-top:4px;border-top:1px solid var(--line)}
.nt-page .b4-roles .kb-switch{align-self:flex-start}
.nt-page .b4-rnote{font-size:12.5px;color:var(--muted)}
.nt-page .b4-grp .kb-person>span{display:flex;flex-direction:column;min-width:0}
.nt-page .b4-role{font:500 11.5px var(--font-mono);font-style:normal;color:var(--muted)}
/* group head: name and «4 people» never break mid-word in the 2-column phone grid */
.nt-page .b4-grp .kt-ghead{flex-wrap:wrap;gap:0 8px}
.nt-page .b4-grp .kt-ghead b,.nt-page .b4-grp .kt-ghead span{white-space:nowrap}
.nt-page .b4-gfoot{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
.nt-page .b4-gfoot .lb-copynote{margin:0}
@media(max-width:600px){
  .nt-page .b4-pos .kb-tcard .kb-head{flex-wrap:wrap}
  .nt-page .b4-pos .kb-tcard .kb-head .kb-tools{width:100%}
  .nt-page .b4-pos .kb-tcard .kb-head .kb3-ph{margin-left:auto}
  .nt-page .b4-prhead .kb3-ph{margin-left:auto}
  .nt-page .b4-prlist li{padding-left:34px}
  .nt-page .b4-prlist li::before{left:12px}
  .nt-page .b4-grp .kb-gres .kb-head{flex-wrap:wrap}
  .nt-page .b4-grp .kb-gres .kb-head .kb-tools{width:100%}
  .nt-page .b4-grp .b4-gdl{margin-left:auto}
}
@media(max-width:400px){
  .nt-page .b4-pos .kb3-ph .rb-dlmenu{min-width:0;max-width:calc(100vw - 96px)}
  .nt-page .b4-grp .kb-lpop{width:calc(100vw - 80px)}
  .nt-page .b4-grp .b4-gdl .rb-dlmenu{min-width:0;max-width:calc(100vw - 80px)}
}
/* ===== END ===== */

/* ===== ITER «#75 Punnett · practice worksheet as real pages · fixes · 10.11» — rollback = delete down to END =====
   The Printable B #10 / #62 sheet (pb-x*) under own kb10- names: grey preview well, mono caption + Letter | A4, a 460px .pr-page
   scaled to its box, the Resume pager under it; problems 3 to a row with an empty square each. Only .kb10-* (the #75 Practice tab). */
.nt-page .kb10-prev{margin-top:2px}
.nt-page .kb10-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;max-width:460px;margin:-4px auto 0;flex-wrap:nowrap}
.nt-page .kb10-cap{min-width:0;font:500 11.5px var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nt-page .kb10-paper{display:inline-flex;flex:none;gap:2px;padding:3px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface)}
.nt-page .kb10-pp{border:0;background:none;padding:4px 8px;border-radius:7px;font:600 12.5px var(--font-body);color:var(--muted);cursor:pointer;white-space:nowrap}
.nt-page .kb10-pp.on{background:var(--green-tint);color:var(--green-deep)}
.nt-page .kb10-box{position:relative;width:100%;max-width:460px;aspect-ratio:8.5/11;margin:0 auto}
.nt-page .kb10-box.a4{aspect-ratio:1/1.414}
.nt-page .kb10-box > .pr-page{position:absolute;top:0;left:0;width:460px;max-width:none;margin:0;transform:scale(var(--s,1));transform-origin:0 0}
.nt-page .kb10-under{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%}
.nt-page .kb10-under .rb-pager{margin-top:2px}
.nt-page .kb10-note{margin:0;font-size:13px;color:var(--muted);text-align:center}
/* the page */
.nt-page .pr-page.kb10-page{display:flex;flex-direction:column;padding:32px 34px;font:400 10.5px/1.4 var(--font-body);color:#191E1A}
.nt-page .kb10-name{display:flex;align-items:flex-end;gap:6px;width:100%;margin:0 0 12px;font:600 9.5px var(--font-body);color:#3A4540}
.nt-page .kb10-name i{flex:1 1 0;border-bottom:1px solid #9AA5A0;height:12px}
.nt-page .kb10-name i.sh{flex:0 0 26%}
.nt-page .kb10-name span + i + span{margin-left:10px}
.nt-page .kb10-title{margin-bottom:4px}
.nt-page .kb10-cont{display:block;margin:0 0 14px;font:500 8.5px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:#7A8B83}
.nt-page .kb10-ins{margin:0 0 14px!important;font:500 9.5px/1.4 var(--font-body);color:#3A4540;text-align:center;white-space:normal}
.nt-page .pr-page.kb10-page{white-space:normal}
.nt-page .kb10-probs{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px;align-items:start}
.nt-page .kb10-probs li{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.nt-page .kb10-q{font:600 10.5px var(--font-body);white-space:nowrap}
.nt-page .kb10-q b{color:#5B6159;font-weight:600}
.nt-page .kb10-sq{border-collapse:collapse;table-layout:fixed}
.nt-page .kb10-sq th,.nt-page .kb10-sq td{padding:0;text-align:center;vertical-align:middle;font:600 9.5px var(--font-body);color:#191E1A}
.nt-page .kb10-sq td{border:1.2px solid #191E1A}
.nt-page .kb10-sq th{border:1px dashed #AEB7B2;font-weight:500;color:#3A4540}
.nt-page .kb10-sq th.kb10-c0{border:0}
.nt-page .kb10-sq.s2 td,.nt-page .kb10-sq.s2 th{width:30px;height:30px}
.nt-page .kb10-sq.s2 tr:first-child th,.nt-page .kb10-sq.s2 th:first-child{width:18px;height:18px}
.nt-page .kb10-sq.s2 tr:first-child th{width:30px}
.nt-page .kb10-sq.s2 tr:not(:first-child) th{height:30px}
.nt-page .kb10-sq.s4 td,.nt-page .kb10-sq.s4 th{width:22px;height:22px;font-size:7.5px}
.nt-page .kb10-sq.s4 tr:first-child th{height:16px}
.nt-page .kb10-sq.s4 th:first-child{width:20px}
.nt-page .kb10-sq td.p0{background:#E3F1E8}
.nt-page .kb10-sq td.p1{background:#E4ECF7}
.nt-page .kb10-sq td.p2{background:#FBEFD9}
.nt-page .kb10-sq td.p3{background:#F3E3EC}
.nt-page .kb10-ln{display:flex;align-items:flex-end;gap:5px;width:100%;font:500 8.5px var(--font-body);color:#3A4540;white-space:nowrap}
.nt-page .kb10-ln i{flex:1 1 0;border-bottom:1px solid #9AA5A0;height:10px}
.nt-page .kb10-ln b{font:700 9px var(--font-body);color:#0A5C3F}
/* phones: Download under the pager (Printable B pattern), the caption drops its detail */
@media(max-width:600px){
  .nt-page .kb10-dlph .rb-dlmenu{left:50%;right:auto;transform:translateX(-50%)}
  .nt-page .kb10-capx{display:none}
}
@media(max-width:400px){
  .nt-page .kb10-prev{padding:12px}
  .nt-page .kb10-pp{padding:4px 6px}
}
/* print: real size pages */
.kb10-print.nt-page{background:#fff}
/* ===== END ===== */

/* ===== ITER «Download in the tab row = vertical centre of the tab icon + label (not of the tab box, which has more room under the label for the line) · Cos 12.11, one rule for every engine» — rollback = delete this block ===== */
.nt-page :is(.kb9-ddl-top,.kb3-dltop){margin-bottom:6px}

/* ITER 12.11 · #41 pass (Cos: «да, делай всё»): settings in one row on top (Questions · Half points · Grading scale · Rounding), then
   «Grade a paper» with its own head, then the chart; the quick field is «Wrong answers» / «Correct answers» (was «Number») */
.nt-page .kb9-grader .kb9-gset4{grid-template-columns:minmax(170px,220px) auto minmax(0,1fr) minmax(0,1fr);align-items:end}
.nt-page .kb9-grader .kb9-gset4 .kb-step{margin:0}
.nt-page .kb9-grader .kb9-gpaper{margin-top:16px}
.nt-page .kb9-grader .kb9-gphead{grid-column:1/-1;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin:-2px 0 -4px}
.nt-page .kb9-grader .kb9-gphead b{font:600 17px var(--font-body);color:var(--ink)}
.nt-page .kb9-grader .kb9-gphead span{font-size:14px;color:var(--muted)}
.nt-page .kb9-grader .kb9-gpaper .kb-gins{justify-content:center}
.nt-page .kb9-grader .kb9-gpaper + .kb-chart,.nt-page .kb9-grader .kb9-gpaper + .kt-err{margin-top:22px}
@media(max-width:900px){ .nt-page .kb9-grader .kb9-gset4{grid-template-columns:minmax(0,1fr) auto} .nt-page .kb9-grader .kb9-gset4 > :nth-child(3),.nt-page .kb9-grader .kb9-gset4 > :nth-child(4){grid-column:auto} .nt-page .kb9-grader .kb9-gset4{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(0,1fr)} }
@media(max-width:760px){ .nt-page .kb9-grader .kb9-gset4{grid-template-columns:minmax(0,1fr) auto} .nt-page .kb9-grader .kb9-gset4 > :nth-child(3),.nt-page .kb9-grader .kb9-gset4 > :nth-child(4){grid-column:span 1} }
@media(max-width:600px){ .nt-page .kb9-grader .kb9-gset4{grid-template-columns:minmax(0,1fr) minmax(0,1fr)} .nt-page .kb9-grader .kb9-gset4 > :first-child{grid-column:1/-1} }
/* the four settings: captions on one line, controls the same 46px height */
.nt-page .kb9-grader .kb9-gset4{align-items:start}
.nt-page .kb9-grader .kb9-gset4 .oc-cap{display:block;min-height:22px;line-height:22px;margin:0 0 6px}
.nt-page .kb9-grader .kb9-gset4 select{height:46px}
.nt-page .kb9-grader .kb9-gset4 .kb-seg,.nt-page .kb9-grader .kb9-gset4 [role=group]{min-height:46px;align-items:stretch}

/* ITER 12.11 · #12 pass: «Copy link» beside Copy in the Answer head; the expression row has no Calculate button now */
.nt-page .kb9-frac .kb9-link{padding:6px 10px;border-radius:8px;color:var(--green-deep);font:600 13.5px var(--font-body);white-space:nowrap}
.nt-page .kb9-frac .kb9-link:hover{background:var(--green-tint)}
:root[data-theme="dark"] .nt-page .kb9-frac .kb9-link{color:var(--green)}
/* phones: Questions full width; Half points | Rounding side by side; Grading scale full width (its names were cut) */
@media(max-width:600px){
  .nt-page .kb9-grader .kb9-gset4 > :nth-child(3){grid-column:1/-1;order:4}
  .nt-page .kb9-grader .kb9-gset4 > :nth-child(4){order:3}
}

/* ITER 12.11 · #41 rework: two tabs (Grading chart · Grade papers) with icons, as #12; Download chart at their right */
.nt-page .kb9-dtabs .tk-gchart{--tk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4.5' width='18' height='17' rx='2.5'/%3E%3Cpath d='M4 10h18M4 15.5h18M11 4.5v17'/%3E%3C/svg%3E")}
.nt-page .kb9-dtabs .tk-gpapers{--tk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6.5V4.8c0-.7.6-1.3 1.3-1.3h10.4c.7 0 1.3.6 1.3 1.3v13.4c0 .7-.6 1.3-1.3 1.3H18'/%3E%3Crect x='5' y='6.5' width='13' height='16' rx='1.4'/%3E%3Cpath d='m8.3 15 2.4 2.4 4.4-4.9'/%3E%3C/svg%3E")}
/* chart tab: questions + quick sizes | scale | half points + rounding */
.nt-page .kb9-grader .kb9-gset{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px 20px;align-items:start;margin-top:4px}
.nt-page .kb9-grader .kb9-gq{grid-row:span 2;display:flex;flex-direction:column;gap:10px}
.nt-page .kb9-grader .kb9-gq .kb-step{margin:0}
.nt-page .kb9-grader .kb9-gsizes{display:flex;flex-wrap:wrap;gap:6px}
.nt-page .kb9-grader .kb9-gsizes .nt-chip{min-width:46px;justify-content:center;padding:5px 12px;font-size:14px}
.nt-page .kb9-grader .kb9-gsizes .nt-chip.on{border-color:var(--green);background:var(--green-tint);color:var(--green-deep)}
:root[data-theme="dark"] .nt-page .kb9-grader .kb9-gsizes .nt-chip.on{color:var(--green)}
.nt-page .kb9-grader .kb9-gset select{height:46px}
.nt-page .kb9-grader .kb9-gmore{display:flex;align-items:center;flex-wrap:wrap;gap:10px 22px;font-size:14.5px;color:var(--ink)}
.nt-page .kb9-grader .kb9-gchk{display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.nt-page .kb9-grader .kb9-gchk input{width:18px;height:18px;accent-color:var(--green-deep);margin:0}
.nt-page .kb9-grader .kb9-ground{display:inline-flex;align-items:center;gap:8px}
.nt-page .kb9-grader .kb9-ground span{color:var(--muted)}
.nt-page .kb9-grader .kb9-ground select{height:36px;width:auto;padding-right:32px}
.nt-page .kb9-grader .kb9-gset + .kb-chart,.nt-page .kb9-grader .kb9-gset + .kt-custom{margin-top:22px}
.nt-page .kb9-grader .kb9-ghint{margin:2px 0 10px;font-size:14.5px;color:var(--ink)}
/* papers tab: the test in one line, then the grading row */
.nt-page .kb9-grader .kb9-gpaper{margin-top:4px}
.nt-page .kb9-grader .kb9-gtest{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;font-size:14px;color:var(--muted)}
.nt-page .kb9-grader .kb9-gtest .lb-clear{padding:2px 6px;color:var(--green-deep);font-weight:600}
:root[data-theme="dark"] .nt-page .kb9-grader .kb9-gtest .lb-clear{color:var(--green)}
@media(max-width:700px){
  .nt-page .kb9-grader .kb9-gset{grid-template-columns:minmax(0,1fr)}
  .nt-page .kb9-grader .kb9-gq{grid-row:auto}
}
@media(max-width:600px){
  .nt-page .kb9-grader .kb9-gsizes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}
  .nt-page .kb9-grader .kb9-gsizes .nt-chip{min-width:0;padding:5px 0}
  .nt-page .kb9-grader .kb9-chead .kb-tools{flex-wrap:wrap}
}
/* phones: the chart-head Download sits at the left, so its menu opens from the left edge (it ran out of the card) */
@media(max-width:600px){ .nt-page .kb9-grader .kb9-chead .kb9-ddl-ph .rb-dlmenu{left:0;right:auto;max-width:calc(100vw - 64px)} }
@media(max-width:600px){ .nt-page .kb9-grader .kb9-chead .kb9-ddl-ph .rb-dlmenu{min-width:0;width:min(300px,calc(100vw - 64px))} }
@media(max-width:600px){ .nt-page .kb9-grader .kb9-chead .kb9-ddl-ph .rb-dlmenu{width:min(300px,calc(100vw - 98px))} }   /* inside the card's padding */

/* ITER 13.11 · #12 result as in A (Cos: «видно и пример и компактно ответы… собраны в группу»): one tinted panel — the problem with its
   answer left (display serif, stacked fractions), the forms as a 2 × 2 group of white cards right; phones: stacked */
.nt-page .kb9-frac .kb9-respanel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 24px;align-items:center;margin-top:8px;padding:18px 18px 18px 22px;border-radius:16px;background:color-mix(in srgb,var(--green) 8%,var(--surface));border:1px solid color-mix(in srgb,var(--green) 26%,var(--line))}
.nt-page .kb9-frac .kb9-respanel .kb9-reseq{font-size:34px;margin:0}
.nt-page .kb9-frac .kb9-respanel .kb9-reseq .kt-exprtxt{font:500 17px var(--font-mono);color:var(--ink)}
.nt-page .kb9-frac .kb9-respanel .kb9-forms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.nt-page .kb9-frac .kb9-respanel .kb-form{background:var(--surface);border-color:transparent;min-width:0}
:root[data-theme="dark"] .nt-page .kb9-frac .kb9-respanel{background:color-mix(in srgb,var(--green) 10%,var(--surface))}
:root[data-theme="dark"] .nt-page .kb9-frac .kb9-respanel .kb-form{background:color-mix(in srgb,var(--ink) 5%,var(--surface))}
@media(max-width:760px){ .nt-page .kb9-frac .kb9-respanel{grid-template-columns:minmax(0,1fr);padding:16px} .nt-page .kb9-frac .kb9-respanel .kb9-reseq{font-size:28px} }
/* three forms (no mixed number): Simplified across the top, Decimal | Percent under it — no hole in the 2 × 2 */
.nt-page .kb9-frac .kb9-respanel .kb9-forms > .kb-form:first-child:nth-last-child(3){grid-column:1/-1}

/* ITER 13.11 · #12 practice = #01 Math practice (Cos: «доведём практику по состояниям, ссылкам, валидациям и успехам»): the link row
   (Show a hint · See the solution · Skip to another one) as in Math — no underline, 4×8 padding, green, a tint on hover / press;
   the card holds the confetti */
.nt-page .kb9-prac{position:relative}
.nt-page .kb9-prac .mb-prac-acts .lb-clear{padding:4px 8px;border-radius:7px;text-decoration:none;color:var(--green-deep);font:600 14px var(--font-body)}
.nt-page .kb9-prac .mb-prac-acts .lb-clear:hover{background:var(--green-tint)}
.nt-page .kb9-prac .mb-prac-acts .lb-clear:active{background:color-mix(in srgb,var(--green) 22%,transparent)}
:root[data-theme="dark"] .nt-page .kb9-prac .mb-prac-acts .lb-clear{color:var(--green)}
/* Cos 13.11: the panel green exactly as A (.kt-answer: --green-tint, 1.5px rgba(14,123,84,.18)), A's column split and padding */
.nt-page .kb9-frac .kb9-respanel{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);padding:18px 20px;background:var(--green-tint);border:1.5px solid rgba(14,123,84,.18)}
:root[data-theme="dark"] .nt-page .kb9-frac .kb9-respanel{background:var(--green-tint);border-color:color-mix(in srgb,var(--green) 30%,transparent)}
@media(max-width:760px){ .nt-page .kb9-frac .kb9-respanel{grid-template-columns:minmax(0,1fr)} }
/* «Mixed number · less than 1»: a quiet card, not a copy button */
.nt-page .kb9-frac .kb9-formna{cursor:default}
.nt-page .kb9-frac .kb9-formna:hover{transform:none;box-shadow:none}
.nt-page .kb9-frac .kb9-na{font-weight:500;color:var(--muted)}

/* ITER 13.11 · #12 one block (Cos: «две плашки подряд избыточны… ответы справа»): the input plate holds the answer forms at its right
   (2 × 2 white cards, Mixed number «less than 1» for a proper fraction); the plate is green-tinted once there is an answer (A's
   green); below it «How to solve it» = steps + bars; phones: forms under the inputs */
.nt-page .kb9-frac .kb9-plate-res{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px 24px;align-items:center;background:var(--green-tint);border:1.5px solid rgba(14,123,84,.18)}
:root[data-theme="dark"] .nt-page .kb9-frac .kb9-plate-res{border-color:color-mix(in srgb,var(--green) 30%,transparent)}
.nt-page .kb9-frac .kb9-plate-l{min-width:0;display:flex;flex-direction:column;gap:12px}
.nt-page .kb9-frac .kb9-plate-r .kb9-forms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.nt-page .kb9-frac .kb9-plate-r .kb-form{background:var(--surface);border-color:transparent;min-width:0}
:root[data-theme="dark"] .nt-page .kb9-frac .kb9-plate-r .kb-form{background:color-mix(in srgb,var(--ink) 5%,var(--surface))}
.nt-page .kb9-frac .kb9-plate-res .kb-try{margin-top:0}
.nt-page .kb9-frac .kb9-plate-l .kb9-reseq{font-size:30px;margin:0}
@media(max-width:900px){ .nt-page .kb9-frac .kb9-plate-res{grid-template-columns:minmax(0,1fr)} }

/* ITER 13.11 · #12 plate (Cos): the example chips under a hairline inside the plate (Math Solver examples bar), no «Try» word; «Reset» at
   the right end of that row (and of the sign keys in Expression): empties the inputs, off while they are empty */
.nt-page .kb9-frac .kb-plate .kb9-trybar{margin:16px -18px -2px;padding:14px 18px 0;border-top:1px solid var(--line);align-items:center}
.nt-page .kb9-frac .kb9-reset{margin-left:auto;padding:6px 10px;border-radius:8px;color:var(--green-deep);font:600 14px var(--font-body);text-decoration:none}
.nt-page .kb9-frac .kb9-reset:hover:not(:disabled){background:var(--green-tint)}
.nt-page .kb9-frac .kb9-reset:active:not(:disabled){background:color-mix(in srgb,var(--green) 22%,transparent)}
.nt-page .kb9-frac .kb9-reset:disabled{color:var(--muted);opacity:.55;cursor:default}
:root[data-theme="dark"] .nt-page .kb9-frac .kb9-reset:not(:disabled){color:var(--green)}
.nt-page .kb9-frac .kb-keys{align-items:center}
.nt-page .kb9-frac .kb-plate .kb9-trybar{margin:18px -20px 0;padding:16px 20px 0}
@media(max-width:600px){ .nt-page .kb9-frac .kb-plate .kb9-trybar{margin:14px -14px 0;padding:12px 14px 0} }
/* Cos 13.11: under «Answer» the whole problem = answer (display serif, stacked fractions), then the forms row */
.nt-page .kb9-frac .kb9-anseq{margin:2px 0 14px;font-size:32px}
@media(max-width:600px){ .nt-page .kb9-frac .kb9-anseq{font-size:26px} }
/* Cos 13.11: «Try» back; the chip row more compact — 12px above and below the chips (was 16 / 20) */
.nt-page .kb9-frac .kb-plate .kb9-trybar{margin-top:16px;padding-top:12px}
.nt-page .kb9-frac .kb-plate:has(> .kb9-trybar){padding-bottom:12px}
@media(max-width:600px){ .nt-page .kb9-frac .kb-plate .kb9-trybar{margin-top:12px;padding-top:10px} .nt-page .kb9-frac .kb-plate:has(> .kb9-trybar){padding-bottom:10px} }

/* 13.11 · #12 Expression sign keys the same way (Cos: «здесь такое же»): + − × ÷ / drawn, ( ) at 20px */
.nt-page .kb-key.k-op{position:relative;font-size:0!important;line-height:0}
.nt-page .kb-key.k-op::before{content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;background:currentColor;-webkit-mask:var(--km) center/contain no-repeat;mask:var(--km) center/contain no-repeat}
.nt-page .kb-key.k-plus{--km:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12%205v14M5%2012h14'/%3E%3C/svg%3E")}
.nt-page .kb-key.k-minus{--km:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5%2012h14'/%3E%3C/svg%3E")}
.nt-page .kb-key.k-times{--km:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6.5%206.5l11%2011M17.5%206.5l-11%2011'/%3E%3C/svg%3E")}
.nt-page .kb-key.k-div{--km:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5%2012h14'/%3E%3Ccircle cx='12' cy='6.3' r='1.7' fill='black' stroke='none'/%3E%3Ccircle cx='12' cy='17.7' r='1.7' fill='black' stroke='none'/%3E%3C/svg%3E")}
.nt-page .kb-key.k-slash{--km:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M15.5%204.5l-7%2015'/%3E%3C/svg%3E")}
.nt-page .kb-key:not(.k-op):not(.kb9-reset){font-size:20px}
/* 13.11 · #12 Compare + Convert plates as Calculate: the note = the small hint style (.oc-count .kt-left), examples last under a line */
.nt-page .kb9-frac .kb-cmp .kb9-cmpnote{margin:12px 0 0;font-size:12.5px}
.nt-page .kb9-frac .kb-plate:has(> .kb9-trybar){padding-bottom:12px}
@media(max-width:600px){ .nt-page .kb9-frac .kb-plate:has(> .kb9-trybar){padding-bottom:10px} }
.nt-page .kb9-frac .kb-cmp .kb9-cmpnote{font-size:11.5px}   /* = the Simplify & convert hint */
/* 13.11 · #12: the example now in the fields lights green in every Try row (Calculate, Compare, as Simplify & convert) */
.nt-page .kb9-frac .kb9-trybar .nt-chip.on{border-color:var(--green);background:var(--green-tint);color:var(--green-deep)}
:root[data-theme="dark"] .nt-page .kb9-frac .kb9-trybar .nt-chip.on{color:var(--green)}
/* 13.11 · #12 Expression: its Try row sits inside .kb-expr — same compact bottom as the other plates */
.nt-page .kb9-frac .kb-plate:has(.kb-expr .kb9-trybar){padding-bottom:12px}
@media(max-width:600px){ .nt-page .kb9-frac .kb-plate:has(.kb-expr .kb9-trybar){padding-bottom:10px} }
/* 13.11 · #12 Expression field = the Simplify & convert field (Cos): 59px tall, radius 14, 16px side padding, 500 20px Hanken (was 43px, mono 18) */
.nt-page .kb9-frac .kt-exprin{height:59px;min-height:59px;padding:0 16px;border-radius:14px;font:500 20px/24px var(--font-body)}
@media(max-width:600px){ .nt-page .kb9-frac .kt-exprin{height:52px;min-height:52px;font-size:18px} }
/* the expression input now sits inside the convert field box (.mb-box.kb9-cvbox): no own frame */
.nt-page .kb9-frac .kb9-exbox{flex:1 1 auto;min-width:0}
.nt-page .kb9-frac .kb9-exbox .kt-exprin{height:56px;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;font:500 20px/24px var(--font-body);flex:1 1 auto;min-width:0}
@media(max-width:600px){ .nt-page .kb9-frac .kb9-exbox .kt-exprin{height:50px;font-size:18px} }

/* ITER 13.11 · #12 answer cards say they copy (Cos: «непонятно, что ответы можно копировать… на мобилах никак»): a small copy icon in the
   top-right corner of every copyable card (muted, ink on hover), a green check while «Copied»; «less than 1» has none */
.nt-page .kb9-frac button.kb-form{position:relative;padding-right:40px}
.nt-page .kb9-frac button.kb-form::after{content:"";position:absolute;top:11px;right:12px;width:16px;height:16px;background:var(--muted);opacity:.75;transition:opacity .15s,background-color .15s;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8.5' y='8.5' width='12' height='12' rx='2.5'/%3E%3Cpath d='M15.5 8.5V6a2.5 2.5 0 0 0-2.5-2.5H6A2.5 2.5 0 0 0 3.5 6v7A2.5 2.5 0 0 0 6 15.5h2.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8.5' y='8.5' width='12' height='12' rx='2.5'/%3E%3Cpath d='M15.5 8.5V6a2.5 2.5 0 0 0-2.5-2.5H6A2.5 2.5 0 0 0 3.5 6v7A2.5 2.5 0 0 0 6 15.5h2.5'/%3E%3C/svg%3E") center/contain no-repeat}
.nt-page .kb9-frac button.kb-form:hover::after{background:var(--ink);opacity:1}
.nt-page .kb9-frac button.kb-form.done::after{background:var(--green-deep);opacity:1;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
:root[data-theme="dark"] .nt-page .kb9-frac button.kb-form.done::after{background:var(--green)}

/* ITER 13.11 · Kit B dark (Cos on #12: «в тёмной теме поля висят в воздухе, шаги 1-2-3 тоже»): the plate and the step rows were 2 points
   off the card (29 vs 27); in dark they take ink 7% over the surface, so the white-on-light logic of the light theme reads the same */
:root[data-theme="dark"] .nt-page .kb-plate{background:color-mix(in srgb,var(--ink) 7%,var(--surface))}
:root[data-theme="dark"] .nt-page .kb-steps li{background:color-mix(in srgb,var(--ink) 7%,var(--surface))}
:root[data-theme="dark"] .nt-page .kb9-frac .kb-plate .kb9-trybar{border-top-color:color-mix(in srgb,var(--ink) 14%,var(--surface))}

/* ITER 13.11 · #12 Try rows on tablets (Cos: «резет некрасиво ломает блок… лейбл сверху, примеры вторым рядом в одну строку… резет
   на ось с ответом»): ≥601 Reset sits at the right end of the answer row (vertical centre of the fractions), the Try-row copy is
   hidden; ≤600 the other way round. When caption + chips do not fit one line (plate under 860px), «Try» takes its own line and the
   chips stay in ONE row that scrolls sideways if it must (as #29) */
.nt-page .kb9-frac .kb-eqrow{width:100%}
.nt-page .kb9-frac .kb9-reset-top{margin-left:auto;align-self:center}
.nt-page .kb9-frac .kb9-trybar .kb9-reset{display:none}
@media(max-width:600px){
  .nt-page .kb9-frac .kb9-reset-top{display:none}
  .nt-page .kb9-frac .kb9-trybar .kb9-reset{display:inline-flex}
}
.nt-page .kb9-frac .kb9-trychips{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.nt-page .kb9-frac .kb-plate{container-type:inline-size;container-name:kbplate}
@container kbplate (max-width:859px){
  .nt-page .kb9-frac .kb9-trybar{flex-direction:column;align-items:stretch;gap:8px}
  .nt-page .kb9-frac .kb9-trychips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -20px;padding:0 20px 2px}
  .nt-page .kb9-frac .kb9-trychips::-webkit-scrollbar{display:none}
  .nt-page .kb9-frac .kb9-trychips > .nt-chip{flex:none;white-space:nowrap}
  .nt-page .kb9-frac .kb9-trybar > .kb9-reset{align-self:flex-end}
}
@container kbplate (max-width:859px){
  .nt-page .kb9-frac .kb-plate .kb9-trybar{flex-direction:column;align-items:stretch}   /* beats the older .kb-plate .kb9-trybar{align-items:center} */
  .nt-page .kb9-frac .kb-plate .kb9-trybar > span:first-child{align-self:flex-start}
  .nt-page .kb9-frac .kb-plate .kb9-trybar > .kb9-reset{align-self:flex-end}
}
@media(max-width:600px){ .nt-page .kb9-frac .kb9-trychips{margin:0 -14px;padding:0 14px 2px} }
@container kbplate (max-width:859px){ .nt-page .kb9-frac .kb-plate .kb9-trybar > .kb9-trychips{box-sizing:border-box;width:calc(100% + 40px);max-width:calc(100% + 40px)} }
@media(max-width:600px){ .nt-page .kb9-frac .kb-plate .kb9-trybar > .kb9-trychips{width:calc(100% + 28px);max-width:calc(100% + 28px)} }

/* ITER 13.11 · #12 input choice inside the plate (Cos: «сегмент тяжёлый… внести выбор в плашку, отделить чертой, пилзы, выбранная чёрная,
   как языковые пары»): Fractions · Mixed numbers · Expression (Compare: Fractions · Mixed numbers) = a row of pills on top of the plate,
   picked = ink fill + surface text, others line border; a hairline under the row across the plate (as above the Try row) */
.nt-page .kb9-frac .kb9-modebar{margin:-4px -20px 18px;padding:0 20px 14px;border-bottom:1px solid var(--line)}
.nt-page .kb9-frac .kb9-modepills{display:flex;flex-wrap:wrap;gap:8px;padding:0;border:0;background:none;box-shadow:none;width:auto}
.nt-page .kb9-frac .kb9-modepills .nt-seg{flex:none;min-height:36px;padding:0 15px;border:1.5px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font:600 14px var(--font-body);box-shadow:none}
.nt-page .kb9-frac .kb9-modepills .nt-seg:hover:not(.on){border-color:color-mix(in srgb,var(--ink) 55%,var(--line))}
.nt-page .kb9-frac .kb9-modepills .nt-seg.on{background:var(--ink);border-color:var(--ink);color:var(--surface)}
:root[data-theme="dark"] .nt-page .kb9-frac .kb9-modepills .nt-seg:not(.on){background:var(--surface);border-color:var(--line);color:var(--ink)}
:root[data-theme="dark"] .nt-page .kb9-frac .kb-plate .kb9-modebar{border-bottom-color:color-mix(in srgb,var(--ink) 14%,var(--surface))}
@media(max-width:600px){ .nt-page .kb9-frac .kb9-modebar{margin:-2px -14px 14px;padding:0 14px 12px} .nt-page .kb9-frac .kb9-modepills .nt-seg{padding:0 12px;font-size:13.5px} }

/* ITER 13.11 · #12 phone result, one look on every tab (Cos: «блок хаотичный… карточки одного размера, цифры на одной линии,
   даунлоад на всю ширину и выше, он говорит Download steps, а шаги внизу»): Download left the answer head and sits right under the
   steps, full width, 52px; the head links line up with the text edge; the answer cards are one size in every row, the label never wraps
   (the copy icon moves to the value line, so the label gets the full width) and the values start on one line */
@media(max-width:600px){
  .nt-page .kb9-frac .kb-fres .kb-head{flex-direction:column;align-items:stretch;gap:8px}
  .nt-page .kb9-frac .kb-fres .kb-head .kb-tools{margin-left:-10px;justify-content:flex-start;flex-wrap:wrap;gap:4px}
  .nt-page .kb9-frac .kb9-forms{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:10px}
  .nt-page .kb9-frac .kb9-forms .kb-form{justify-content:flex-start;gap:6px;padding:12px 14px 14px}
  .nt-page .kb9-frac .kb9-forms button.kb-form{padding-right:14px}
  .nt-page .kb9-frac .kb9-forms .kb-fcap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;letter-spacing:.08em}
  .nt-page .kb9-frac .kb9-forms .kb-form b{padding-right:24px}
  .nt-page .kb9-frac .kb9-forms button.kb-form::after{top:auto;bottom:17px;right:13px}
  .nt-page .kb9-frac .kb9-ddl-solo{align-self:stretch;width:100%;margin-top:14px}
  .nt-page .kb9-frac .kb9-ddl-solo .rb-dlw{display:block;width:100%}
  .nt-page .kb9-frac .kb9-ddl-solo .rb-dl{width:100%;height:52px;justify-content:center;font-size:16px;border-radius:999px}
  .nt-page .kb9-frac .kb9-ddl-solo .rb-dlmenu{left:0;right:0;width:auto;max-width:none}
}
@media(max-width:600px){
  .nt-page .kb9-frac .kb9-forms .kb-form b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .nt-page .kb9-frac .kb9-forms .kb9-formna b{padding-right:0}
  .nt-page .kb9-frac .kb9-forms button.kb-form::after{bottom:auto;top:39px}   /* on the value line, whatever the card height */
}
@media(max-width:360px){   /* 320: «Mixed number» and «less than 1» still whole */
  .nt-page .kb9-frac .kb9-forms .kb-form{padding:12px 11px 14px}
  .nt-page .kb9-frac .kb9-forms .kb-fcap{font-size:10px;letter-spacing:.03em}
  .nt-page .kb9-frac .kb9-forms .kb-form b{font-size:17px;padding-right:20px}
  .nt-page .kb9-frac .kb9-forms .kb9-formna b{padding-right:0}
  .nt-page .kb9-frac .kb9-forms button.kb-form::after{right:10px;top:37px}
}
@media(max-width:360px){ .nt-page .kb9-frac .kb9-forms .kb9-formna b{font-size:15px;line-height:22px;margin-top:1px} }

/* ITER 13.11 · #12 «less than 1» reads as «no answer here» (Cos: «чуть более задизейбленным»): dashed border, no fill, faded caption
   and value, lighter weight; the size and the value line stay the same as the other three cards */
.nt-page .kb9-frac .kb9-forms .kb9-formna{background:transparent;border-style:dashed;border-color:color-mix(in srgb,var(--line) 85%,var(--muted))}
.nt-page .kb9-frac .kb9-forms .kb9-formna .kb-fcap{opacity:.65}
.nt-page .kb9-frac .kb9-forms .kb9-formna .kb9-na{font-weight:400;color:var(--muted);opacity:.7}
:root[data-theme="dark"] .nt-page .kb9-frac .kb9-forms .kb9-formna{background:transparent;border-color:color-mix(in srgb,var(--line) 70%,var(--muted))}

/* ITER 13.11 · #12 phone plate, everywhere (Cos: «очень плохие переносы и позиции, как будто сломалось» → «везде»):
   1) the mode pills stay in ONE row (≤600 «Mixed numbers» reads «Mixed», smaller pills);
   2) the problem row is built, not wrapped: row 1 = first fraction · the four signs as a 2 × 2 block · second fraction,
      row 2 = «= answer» under it (the hidden top Reset holder becomes the line break); Compare keeps its one row;
   3) Try row: «Try» left and Reset right on one line, the chips under them in one scrolling row */
@media(max-width:600px){
  .nt-page .kb9-frac .kb9-modepills{flex-wrap:nowrap;gap:6px}
  .nt-page .kb9-frac .kb9-modepills .nt-seg{min-height:34px;padding:0 13px;font-size:13.5px}
  .nt-page .kb9-frac .kb9-lng{display:none}
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow{flex-wrap:wrap;justify-content:flex-start;align-items:center;column-gap:12px;row-gap:12px}
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow > .kb9-reset-top{display:block;order:1;flex:0 0 100%;height:0;margin:0}
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow > .kb9-reset-top > *{display:none}
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow > .kb-eqs,
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow > .kb-ans{order:2}
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow > .kb-ops{display:grid;grid-template-columns:repeat(2,auto);gap:6px;flex:none}
  .nt-page .kb9-frac .kb-plate .kb9-trybar.kb-try{display:grid;grid-template-columns:1fr auto;align-items:center;row-gap:8px}
  .nt-page .kb9-frac .kb-plate .kb9-trybar.kb-try > span:first-child{grid-column:1;grid-row:1;align-self:center}
  .nt-page .kb9-frac .kb-plate .kb9-trybar.kb-try > .kb9-reset{grid-column:2;grid-row:1;align-self:center;margin:-6px -10px -6px 0}
  .nt-page .kb9-frac .kb-plate .kb9-trybar.kb-try > .kb9-trychips{grid-column:1/-1;grid-row:2}
}
/* 13.11 later: row 1 = first number + the signs (2 × 2), row 2 = second number = answer — written-sum order, fits mixed numbers and 320 */
@media(max-width:600px){
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow > .kb-ops ~ .kb-opnd{order:2}
}
@media(max-width:600px){ .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow > .kb9-reset-top{margin-top:-12px} }   /* the break line adds no second gap */
@media(max-width:600px){ .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow{row-gap:7px} .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow > .kb9-reset-top{margin-top:0} }   /* 2 × 7 = 14px between the rows */
@media(max-width:600px){   /* Expression: the seven keys in ONE even row across the field width (was 5 + 2) */
  .nt-page .kb9-frac .kb-expr .kb-keys{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
  .nt-page .kb9-frac .kb-expr .kb-keys .kb-key{width:auto;min-width:0;padding:0}
}
@media(max-width:600px){ .nt-page .kb9-frac .kb-cmp .kb-eqrow > .kb-sign{width:32px;min-width:0;flex:none} }   /* Compare, mixed numbers: both numbers and the sign stay on one row at 390 */
@media(max-width:600px){   /* «=» and the answer never part: the sign is drawn by the answer itself */
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow > .kb-eqs{display:none}
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow > .kb-ans::before{content:"=";font:500 24px var(--font-display);color:var(--muted);margin-right:12px}
}
@media(max-width:360px){   /* 320: pills, fractions and the answer row still fit */
  .nt-page .kb9-frac .kb9-modepills{gap:5px}
  .nt-page .kb9-frac .kb9-modepills .nt-seg{padding:0 9px;font-size:12.5px;min-height:32px}
  .nt-page .kb9-frac .kb-plate .kb-opnd .kt-w{width:36px}
  .nt-page .kb9-frac .kb-plate .kb-opnd .kt-n,.nt-page .kb9-frac .kb-plate .kb-opnd .kt-d{width:46px}
  .nt-page .kb9-frac .kb-plate .kb-opnd .kt-fbar{width:46px}
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow{column-gap:10px}
}
@media(max-width:360px){
  .nt-page .kb9-frac .kb9-modepills{gap:4px}
  .nt-page .kb9-frac .kb9-modepills .nt-seg{padding:0 7px;font-size:12px}
  .nt-page .kb9-frac .kb-plate .kb-opnd .kt-w{width:40px;padding:0}
  .nt-page .kb9-frac .kb-plate .kb-opnd .kt-n,.nt-page .kb9-frac .kb-plate .kb-opnd .kt-d,.nt-page .kb9-frac .kb-plate .kb-opnd .kt-fbar{width:44px}
}
/* 13.11 sweep: a long decimal keeps its «(first 50 digits)» label on phones (spec: label approximations) — the label takes a line of its own */
@media(max-width:600px){ .nt-page .kb9-frac .kb9-forms .kb-form b small{display:block;margin-top:2px;font-size:10px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} }
@media(max-width:600px){ .nt-page .kb9-frac .kb9-forms .kb-form b small{font:500 10.5px var(--font-body);letter-spacing:0;text-overflow:clip} }   /* the whole «(first 50 digits)» fits */
.nt-page .kb9-frac .kb-steps li{overflow-wrap:anywhere}   /* 13.11 sweep: a 50-digit decimal in a step wraps inside its row */
/* 13.11 · #12 phone answer cards (Cos: «цифры чуть ниже, на один уровень с кнопкой копи, воздуха»): more room under the caption,
   the copy icon centred on the value line */
@media(max-width:600px){ .nt-page .kb9-frac .kb9-forms .kb-form{gap:11px} }
@media(max-width:600px){ .nt-page .kb9-frac .kb9-forms button.kb-form::after{top:43px} }   /* centre of the 25px value line (38 → 63) */
@media(max-width:600px){ .nt-page .kb9-frac .kb9-forms button.kb-form::after{top:41px} }   /* digits sit above the line-box centre (no descenders): optical centre */
@media(max-width:360px){ .nt-page .kb9-frac .kb9-forms button.kb-form::after{top:39px} }

/* ITER 13.11 · #12 phone sum in ONE line (Cos: «есть шанс выстроить в одну линию… как у конкурентов?» — calculator.net and CalculatorSoup
   fold the sign into one dropdown): ≤600 the four sign keys give way to one sign picker (native select: the phone's own list opens),
   ink like the picked key; the row is first · sign · second · «= answer»; the forced break is gone, and only an answer that does not
   fit drops under the row with its «=» */
.nt-page .kb9-frac .kb9-opsel{display:none}
@media(max-width:600px){
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow > .kb-ops{display:none}
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow > .kb9-reset-top{display:none}
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow > .kb-ops ~ .kb-opnd{order:0}
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow{row-gap:12px;column-gap:10px}
  .nt-page .kb9-frac .kb9-opsel{display:block;flex:none;-webkit-appearance:none;appearance:none;width:46px;height:44px;margin:0;padding:0 15px 0 9px;border:0;border-radius:10px;
    background:var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center/9px 6px;
    color:var(--surface);font:500 22px/44px var(--font-body);text-align:center;text-align-last:center;cursor:pointer}
  .nt-page .kb9-frac .kb9-opsel:focus-visible{outline:2px solid var(--green);outline-offset:2px}
  :root[data-theme="dark"] .nt-page .kb9-frac .kb9-opsel{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E")}
  .nt-page .kb9-frac .kb-plate .kb-opnd .kt-w{width:40px}
  .nt-page .kb9-frac .kb-plate .kb-opnd .kt-n,.nt-page .kb9-frac .kb-plate .kb-opnd .kt-d,.nt-page .kb9-frac .kb-plate .kb-opnd .kt-fbar{width:48px}
}
@media(max-width:360px){
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow{column-gap:6px}
  .nt-page .kb9-frac .kb9-opsel{width:38px;padding:0 12px 0 6px;background-position:right 6px center;font-size:20px}
  .nt-page .kb9-frac .kb-plate .kb-opnd .kt-w{width:30px}
  .nt-page .kb9-frac .kb-plate .kb-opnd .kt-n,.nt-page .kb9-frac .kb-plate .kb-opnd .kt-d,.nt-page .kb9-frac .kb-plate .kb-opnd .kt-fbar{width:40px}
}
@media(max-width:600px){ .nt-page .kb9-frac .kb-plate .kb-opnd .kt-w{padding:0 2px} .nt-page .kb9-frac .kb-plate .kb-opnd .kt-w::placeholder{font-size:9.5px;letter-spacing:0} }   /* «whole» fits the narrower field */
@media(max-width:360px){   /* 320: mixed numbers and «= answer» still in one row for short sums */
  .nt-page .kb9-frac .kb-plate .kb-opnd .kt-w{width:28px}
  .nt-page .kb9-frac .kb-plate .kb-opnd .kt-n,.nt-page .kb9-frac .kb-plate .kb-opnd .kt-d,.nt-page .kb9-frac .kb-plate .kb-opnd .kt-fbar{width:36px}
  .nt-page .kb9-frac .kb-plate:not(.kb-cmp) .kb-eqrow > .kb-ans::before{margin-right:6px}
  .nt-page .kb9-frac .kb-plate .kb-opnd .kt-w::placeholder{font-size:8.5px}
}
@media(max-width:360px){ .nt-page .kb9-frac .kb-plate .kb-opnd .kt-w::placeholder{color:transparent} }   /* 320: a 28px box cannot say «whole»; its place before the fraction says it */
/* 13.11 · #12 sign picker balance (Cos: «знак и стрелка несбалансированы, + больше, выровнять по горизонтали»): bigger sign, the caret
   on the sign's optical middle */
@media(max-width:600px){
  .nt-page .kb9-frac .kb9-opsel{width:50px;padding:0 17px 0 8px;font-size:27px;line-height:42px;background-size:10px 6px;background-position:right 8px center}
}
@media(max-width:360px){ .nt-page .kb9-frac .kb9-opsel{width:42px;padding:0 14px 0 5px;font-size:24px;background-position:right 6px center} }
@media(max-width:600px){ .nt-page .kb9-frac .kb9-opsel{padding-bottom:6px;line-height:38px} }   /* the signs sit low in their line box (Hanken: + centre 6.5px above the baseline): lift them 3px onto the caret's line */
@media(max-width:360px){ .nt-page .kb9-frac .kb9-opsel{width:38px;padding:0 12px 5px 4px;font-size:23px;line-height:38px;background-size:9px 6px;background-position:right 5px center} }   /* 320: «1/2 [÷] 1/3 = 3/2» stays one row */
/* 13.11 · #12 whole-number field as tall as the fraction fields (Cos: «поля целых сильно узкие, могут быть такими же по высоте»): my phone
   padding:0 had collapsed it to 24px — back to 8px top/bottom (40px, as top/bottom), only the sides stay narrow */
@media(max-width:600px){ .nt-page .kb9-frac .kb-plate .kb-opnd .kt-w{padding:8px 2px;min-height:40px} }

/* ===== ITER 13.11 · #41 ONE view (Cos: «опять усложнили… спотыкаюсь»): settings → Check a paper → chart (Download in the chart head) ===== */
.nt-page .kb41{display:flex;flex-direction:column;gap:22px}
.nt-page .kb41 > .kb9-gset{margin-top:0}
.nt-page .kb41 .kb41-check{display:flex;flex-direction:column;gap:12px;padding:18px;border-radius:16px;background:color-mix(in srgb,var(--line) 28%,var(--surface2))}
.nt-page .kb41 .kb41-chead{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.nt-page .kb41 .kb41-chead b{font:600 17px var(--font-body);color:var(--ink)}
.nt-page .kb41 .kb41-chead span{font-size:14px;color:var(--muted)}
.nt-page .kb41 .kb41-crow{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:16px;align-items:end}
.nt-page .kb41 .kb41-crow .kb-step{margin:0}
.nt-page .kb41 .kb41-res{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:76px;padding:10px 12px 10px 18px;border-radius:14px;background:var(--surface);border:1.5px solid var(--line);border-left:6px solid var(--bc,var(--line))}
.nt-page .kb41 .kb41-res.empty{border-left-color:var(--line);justify-content:flex-start}
.nt-page .kb41 .kb41-rtx{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;min-width:0}
.nt-page .kb41 .kb41-res .kb-gpct{font:500 34px/1 var(--font-display,Fraunces,serif);color:var(--bc,var(--ink))}
.nt-page .kb41 .kb41-res .kb-gof{font-size:14.5px;color:var(--muted)}
.nt-page .kb41 .kb41-rempty{font-size:15px;color:var(--muted)}
.nt-page .kb41 .kb41-next{flex:none;gap:8px}
.nt-page .kb41 .kb41-stack{display:flex;flex-direction:column;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.nt-page .kb41 .kb41-shead{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 14px;font-size:14px;color:var(--muted)}
.nt-page .kb41 .kb41-shead b{font-weight:600;color:var(--ink)}
.nt-page .kb41 .kb41-slist{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.nt-page .kb41 .kb41-slist li{padding:5px 10px;border-radius:9px;font-size:13.5px;color:var(--ink);background:var(--bd,var(--surface));border:1px solid color-mix(in srgb,var(--bc,var(--line)) 35%,transparent)}
.nt-page .kb41 .kb41-sn{color:var(--muted)}
.nt-page .kb41 .kb41-chead2{align-items:center}
.nt-page .kb41 .kb41-chead2 .kb-tools{align-items:center}
.nt-page .kb41 .kb41-chead2 .kb9-dlw{display:block}
.nt-page .kb41 .kt-bands{margin-top:2px}
@media(max-width:600px){
  .nt-page .kb41 .kb41-check{padding:14px}
  .nt-page .kb41 .kb41-crow{grid-template-columns:minmax(0,1fr)}
  .nt-page .kb41 .kb41-res{flex-wrap:wrap}
  .nt-page .kb41 .kb41-res .kb-gpct{font-size:30px}
  .nt-page .kb41 .kb41-chead2 .kb-tools{width:100%;flex-wrap:nowrap}
  .nt-page .kb41 .kb41-chead2 .kb9-dlw{margin-left:auto}
}
@media(max-width:380px){ .nt-page .kb41 .kb41-next{width:100%;justify-content:center} }
.nt-page .kb41 .kb41-res .kb-gof{font-family:var(--font-body)}
.nt-page .kb41 .kb41-slist li{border:0}
:root[data-theme="dark"] .nt-page .kb41 .kb41-check{background:color-mix(in srgb,var(--ink) 7%,var(--surface))}
@media(max-width:600px){
  .nt-page .kb41 .kb41-chead2 .kb-tools{flex-wrap:wrap}
  .nt-page .kb41 .kb41-chead2 .kb9-dlw{flex:1 1 100%;margin-left:0}
  .nt-page .kb41 .kb41-chead2 .kb9-dlw .rb-dl{width:100%;justify-content:center}
  .nt-page .kb41 .kb41-chead2 .rb-dlmenu{left:0;right:auto}
}
@media(max-width:600px){ .nt-page .kb41 .kb41-chead2 .rb-dlmenu{width:100%;min-width:0;max-width:100%} }
@media(max-width:380px){ .nt-page .kb41 .kt-chart th,.nt-page .kb41 .kt-chart td{padding-left:8px;padding-right:6px} .nt-page .kb41 .kt-chart th{letter-spacing:.02em} }

/* ===== ITER 16.11 · #41 TWO STEPS (Cos: «не понимаю настроек… Check a paper… зачем Tiles»): 1 questions + rules line → 2 the paper → printable chart ===== */
.nt-page .kb41s{gap:20px}
.nt-page .kb41s .kb41-step{display:flex;flex-direction:column;gap:12px}
.nt-page .kb41s .kb41-sh{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.nt-page .kb41s .kb41-sh > b{font:600 18px/1.3 var(--font-body);color:var(--ink)}
.nt-page .kb41s .kb41-no{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--green-tint);color:var(--green-deep);font:700 14px var(--font-body)}
:root[data-theme="dark"] .nt-page .kb41s .kb41-no{color:var(--green)}
.nt-page .kb41s .kb41-sh .kb41-by{margin-left:auto}
.nt-page .kb41s .kb41-qrow{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}
.nt-page .kb41s .kb41-qrow .kb-step{margin:0;width:240px;max-width:100%}
.nt-page .kb41s .kb41-rules{border-radius:12px;border:1px solid var(--line);padding:10px 14px}
.nt-page .kb41s .kb41-rline{display:flex;align-items:baseline;justify-content:space-between;gap:6px 14px;flex-wrap:wrap;font-size:14.5px;color:var(--muted)}
.nt-page .kb41s .kb41-rline b{color:var(--ink);font-weight:600}
.nt-page .kb41s .kb41-rpanel{display:flex;flex-direction:column;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.nt-page .kb41s .kb41-rgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px}
.nt-page .kb41s .kb41-rgrid select{height:46px}
.nt-page .kb41s .kb41-half{display:flex;align-items:flex-start;gap:10px;font-size:15px;color:var(--ink)}
.nt-page .kb41s .kb41-half input{margin-top:3px}
.nt-page .kb41s .kb41-half small{display:block;font-size:13.5px;color:var(--muted);margin-top:2px}
.nt-page .kb41s .kb41-rpanel .kt-custom{margin:0}
.nt-page .kb41s .kb41-check{padding:18px}
.nt-page .kb41s .kb41-crow{grid-template-columns:minmax(0,200px) minmax(0,230px) minmax(0,1fr)}
.nt-page .kb41s .kb41-namef{margin:0}
.nt-page .kb41s .kb41-namef .oc-cap i{font-style:normal;font-weight:400;color:var(--muted)}
.nt-page .kb41s .kb41-namef input{height:46px}
.nt-page .kb41s .kb41-crow .oc-cap{display:block;min-height:22px;line-height:22px;margin:0 0 6px}
.nt-page .kb41s .kb41-hint{margin:0;font-size:14px;color:var(--muted)}
.nt-page .kb41s .kb41-chart .kb-htx{display:flex;flex-direction:column;gap:3px}
.nt-page .kb41s .kb41-chart .kb-htx b{font:600 18px/1.3 var(--font-body);color:var(--ink)}
.nt-page .kb41s .kb41-chart .kb-htx span{font-size:14px;color:var(--muted)}
.nt-page .kb41s .kb41-chead2{align-items:flex-end;gap:10px 16px;flex-wrap:wrap}
.nt-page .kb41s .kb41-print{height:38px;min-height:0;padding:0 16px}
.nt-page .kb41s .kt-chart tbody tr{cursor:pointer}
@media(max-width:900px){
  .nt-page .kb41s .kb41-crow{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .nt-page .kb41s .kb41-crow .kb41-res{grid-column:1/-1}
}
@media(max-width:600px){
  .nt-page .kb41s .kb41-sh .kb41-by{margin-left:40px}
  .nt-page .kb41s .kb41-qrow .kb-step{width:100%}
  .nt-page .kb41s .kb41-rgrid{grid-template-columns:minmax(0,1fr)}
  .nt-page .kb41s .kb41-crow{grid-template-columns:minmax(0,1fr)}
  .nt-page .kb41s .kb41-chead2 .kb-tools{width:100%;flex-wrap:nowrap}
  .nt-page .kb41s .kb41-chead2 .kb9-dlw{flex:1 1 auto}
  .nt-page .kb41s .kb41-print{flex:none}
}
.nt-page .kb41s .kb41-qrow .kb-step{flex:0 0 260px}
.nt-page .kb41s .kb41-chart .kb-htx span{font-family:var(--font-body)}
@media(max-width:600px){ .nt-page .kb41s .kb41-qrow .kb-step{flex:1 1 100%} }
@media(max-width:380px){
  .nt-page .kb41s .kb41-chead2 .kb-tools{flex-wrap:wrap}
  .nt-page .kb41s .kb41-print,.nt-page .kb41s .kb41-chead2 .kb9-dlw{flex:1 1 100%}
  .nt-page .kb41s .kb41-print{width:100%}
}
@media(max-width:600px){
  .nt-page .kb41s .kb41-sh{flex-wrap:nowrap;align-items:flex-start}
  .nt-page .kb41s .kb41-sh > b{flex:1 1 0;min-width:0;font-size:17px}
  .nt-page .kb41s .kb41-check .kb41-sh{flex-wrap:wrap}
  .nt-page .kb41s .kb41-check .kb41-sh > b{flex:1 1 calc(100% - 40px)}
}

/* ===== ITER 16.11 evening · #41 CALCULATOR | CHART (Formswrite / SmartCGPA): left calculator card, right chart with the lit row ===== */
.nt-page .kb41c{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:24px;align-items:start}
.nt-page .kb41c .kb41-calc{display:flex;flex-direction:column;gap:14px;padding:18px;border-radius:16px;background:color-mix(in srgb,var(--line) 28%,var(--surface2));position:sticky;top:16px}
:root[data-theme="dark"] .nt-page .kb41c .kb41-calc{background:color-mix(in srgb,var(--ink) 7%,var(--surface))}
.nt-page .kb41c .kb41-calc .kb-step{margin:0}
.nt-page .kb41c .oc-cap{display:block;margin:0 0 6px}
.nt-page .kb41c .kb41-wr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.nt-page .kb41c .kb41-nf{margin:0}
.nt-page .kb41c .kb41-num{height:46px;text-align:center;font-size:18px;font-weight:600;width:100%}
.nt-page .kb41c .kb41-res{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;min-height:84px;padding:12px 16px;border-radius:14px;background:var(--surface);border:1.5px solid var(--line);border-left:6px solid var(--bc,var(--line))}
.nt-page .kb41c .kb41-res.empty{border-left-color:var(--line)}
.nt-page .kb41c .kb41-res .kb-gpct{font:500 40px/1 var(--font-display,Fraunces,serif);color:var(--bc,var(--ink))}
.nt-page .kb41c .kb41-res .kb-gof{flex-basis:100%;font:14.5px var(--font-body);color:var(--muted)}
.nt-page .kb41c .kb41-rempty{font-size:15px;color:var(--muted)}
.nt-page .kb41c .kb41-rules{font-size:14px}
.nt-page .kb41c .kb41-rline{display:flex;align-items:baseline;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;color:var(--muted)}
.nt-page .kb41c .kb41-rline b{color:var(--ink);font-weight:600}
.nt-page .kb41c .kb41-rpanel{display:flex;flex-direction:column;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.nt-page .kb41c .kb41-rpanel select{height:46px}
.nt-page .kb41c .kb41-half{display:flex;align-items:flex-start;gap:10px;font-size:15px;color:var(--ink)}
.nt-page .kb41c .kb41-half input{margin-top:3px}
.nt-page .kb41c .kb41-half small{display:block;font-size:13.5px;color:var(--muted);margin-top:2px}
.nt-page .kb41c .kb41-rpanel .kt-custom{margin:0}
.nt-page .kb41c .kb41-rpanel .kt-crows{grid-template-columns:repeat(2,minmax(0,1fr))}
.nt-page .kb41c .kb41-tbl{display:flex;flex-direction:column;gap:12px;min-width:0}
.nt-page .kb41c .kb41-thead{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px}
.nt-page .kb41c .kb41-ttl{display:flex;flex-direction:column;gap:2px}
.nt-page .kb41c .kb41-ttl b{font:600 18px/1.3 var(--font-body);color:var(--ink)}
.nt-page .kb41c .kb41-ttl span{font:14px var(--font-body);color:var(--muted)}
.nt-page .kb41c .kb-tools{display:flex;align-items:center;gap:8px}
.nt-page .kb41c .kb41-print{height:38px;min-height:0;padding:0 16px}
.nt-page .kb41c .kt-chartwrap{max-height:560px;overflow:auto;border-radius:12px}
.nt-page .kb41c .kt-chart thead th{position:sticky;top:0;z-index:1;background:var(--surface)}
.nt-page .kb41c .kt-chart tbody tr{cursor:pointer}
.nt-page .kb41c .kt-rule{margin:0;font-size:13px;color:var(--muted)}
@media(max-width:900px){
  .nt-page .kb41c{grid-template-columns:minmax(0,1fr)}
  .nt-page .kb41c .kb41-calc{position:static}
  .nt-page .kb41c .kt-chartwrap{max-height:none;overflow:visible}
}
@media(max-width:600px){
  .nt-page .kb41c .kb41-calc{padding:14px}
  .nt-page .kb41c .kb-tools{width:100%}
  .nt-page .kb41c .kb-tools .kb9-dlw{flex:1 1 auto;margin:0}
  .nt-page .kb41c .kb-tools .rb-dl{width:100%;justify-content:center}
  .nt-page .kb41c .kb41-print{flex:none}
  .nt-page .kb41c .rb-dlmenu{left:auto;right:0;width:100%;min-width:0;max-width:100%}
}
@media(max-width:380px){ .nt-page .kb41c .kt-chart th,.nt-page .kb41c .kt-chart td{padding-left:8px;padding-right:6px} }
.nt-page .kb-grader.kb9-grader.kb41c{display:grid}
@media(max-width:900px){ .nt-page .kb-grader.kb9-grader.kb41c{display:flex;flex-direction:column;gap:20px} }
.nt-page .kb41c .kt-chart tbody tr.kb-on{outline:2px solid var(--bc,var(--ink));outline-offset:-2px}
.nt-page .kb41c .kt-chart tbody tr.kb-on td{font-weight:700;color:var(--ink)}
.nt-page .kb41c .kt-chart tbody tr:not(.kb-on):hover td{box-shadow:inset 0 0 0 999px color-mix(in srgb,var(--ink) 5%,transparent)}
.nt-page .kb41c .kb41-calc,.nt-page .kb41c .kb41-calc > *{min-width:0}
@media(max-width:420px){ .nt-page .kb41c .kb41-rpanel .kt-crows{grid-template-columns:minmax(0,1fr)} }
.nt-page .kb41c .opt-in,.nt-page .kb41c select{min-width:0;max-width:100%}
.nt-page .kb41c .kb41-rpanel .oc-field{min-width:0}
@media(max-width:900px){ .nt-page .kb-grader.kb41c{align-items:stretch} .nt-page .kb41c > .kb41-calc,.nt-page .kb41c > .kb41-tbl{width:100%;align-self:stretch} }
.nt-page .kb41c .kb41-rpanel select{width:100%}

/* ===== ITER 16.11 late · #41 scale settings in a popover (Cos: «настройки ПОД оценкой неудобны»), print = round icon ===== */
.nt-page .kb41c .kb41-rpop{position:absolute;z-index:30;top:0;left:calc(100% + 12px);width:380px;margin:0;padding:16px 18px 18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 18px 44px rgba(20,24,20,.16),0 2px 6px rgba(20,24,20,.08)}
:root[data-theme="dark"] .nt-page .kb41c .kb41-rpop{box-shadow:0 18px 44px rgba(0,0,0,.5)}
.nt-page .kb41c .kb41-phead{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nt-page .kb41c .kb41-phead b{font:600 17px var(--font-body);color:var(--ink)}
.nt-page .kb41c .kb41-done{height:36px;min-height:0;padding:0 16px}
.nt-page .kb41c .kb41-rerr span,.nt-page .kb41c .kb41-rerr b{color:var(--msg-err-ink,#B3261E)}
.nt-page .kb41c .kb-tools .kb-cb{width:38px;height:38px}
.nt-page .kb41c .kb9-dlw .rb-dl{height:38px}
@media(max-width:900px){
  .nt-page .kb41c .kb41-rules{position:relative}
  .nt-page .kb41c .kb41-rpop{top:calc(100% + 8px);left:-8px;right:-8px;width:auto}
}
.nt-page .kb41c .kb41-calc{z-index:5}

/* ===== ITER 16.11 late · #41 scale settings = gear circle in the chart head (Cos: «Change иконкой настроек к кнопке принт») ===== */
.nt-page .kb-i-set{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h2M10 17h10'/%3E%3Ccircle cx='16' cy='7' r='2.2'/%3E%3Ccircle cx='8' cy='17' r='2.2'/%3E%3C/svg%3E")}
.nt-page .kb41c .kb41-setw{position:relative}
.nt-page .kb41c .kb41-setbtn[aria-expanded="true"]{background:var(--surface2);color:var(--ink)}
.nt-page .kb41c .kb41-setdot{position:absolute;top:4px;right:4px;width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 2px var(--surface)}
.nt-page .kb41c .kb41-thead{position:relative;z-index:6}
.nt-page .kb41c .kb41-setw .kb41-rpop{top:calc(100% + 8px);left:auto;right:0;width:380px}
.nt-page .kb41c .kb-tools .kb-cb:disabled{opacity:.45;cursor:default}
.nt-page .kb41c .kb41-rules{position:static}
@media(max-width:900px){
  .nt-page .kb41c .kb41-rules{position:static}
  .nt-page .kb41c .kb41-setw{position:static}
  .nt-page .kb41c .kb41-thead{position:relative}
  .nt-page .kb41c .kb41-setw .kb41-rpop{top:calc(100% + 8px);left:0;right:0;width:auto}
}
.nt-page .kb41c .kb41-setw{position:static}
/* Cos 16.11: settings icon = the #11 wheel one 1:1 (stroke 2.1, knobs r 2.8); in the 38px circles the icons are 19px (wheel: 17 in 34) */
.nt-page .kb-i-set{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round'%3E%3Cpath d='M3.5 7h9M19 7h1.5M3.5 17h1.5M11 17h9.5'/%3E%3Ccircle cx='15.8' cy='7' r='2.8'/%3E%3Ccircle cx='8' cy='17' r='2.8'/%3E%3C/svg%3E")}
.nt-page .kb41c .kb-tools .kb-cb::before{width:19px;height:19px}
/* Cos 16.11: the dot sits where the #11 wheel's does (top-right badge on the rim: -0.5px, 8px) */
.nt-page .kb41c .kb41-setdot{top:-.5px;right:-.5px;width:8px;height:8px}
@media(max-width:600px){ .nt-page .kb41c .kb41-setdot{top:0;right:0} }

/* ===== ITER 16.11 · #41 Questions stepper as ONE control (Cos: «+ − внести в поле как у конкурента», easygrader.net): one frame, − and + inside ===== */
.nt-page .kb41c .kb-stepin{gap:0;height:48px;padding:4px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);transition:border-color .15s}
.nt-page .kb41c .kb-stepin:focus-within{border-color:var(--green)}
.nt-page .kb41c .kb-stepin .opt-in{height:100%;min-height:0;padding:0 6px;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none}
.nt-page .kb41c .kb-pm{width:38px;height:100%;border:0;border-radius:9px;background:color-mix(in srgb,var(--line) 45%,var(--surface));color:var(--ink)}
.nt-page .kb41c .kb-pm:hover{background:color-mix(in srgb,var(--line) 85%,var(--surface))}
.nt-page .kb41c .kb-pm:active{transform:scale(.96)}
.nt-page .kb41c .kb-pm:focus-visible{outline:2px solid var(--green);outline-offset:1px}
:root[data-theme="dark"] .nt-page .kb41c .kb-pm{background:color-mix(in srgb,var(--ink) 10%,var(--surface))}
:root[data-theme="dark"] .nt-page .kb41c .kb-pm:hover{background:color-mix(in srgb,var(--ink) 18%,var(--surface))}
.nt-page .kb41c .kb-stepin{height:46px}
/* Cos 16.11: all three fields the same height (56px); Wrong / Right are where the teacher works, so their numbers are bigger */
.nt-page .kb41c .kb-stepin{height:56px}
.nt-page .kb41c .kb-pm{width:44px}
.nt-page .kb41c input.kb41-num{box-sizing:border-box;height:auto;min-height:56px;padding-block:8px;font:600 26px/1.2 var(--font-body)}
.nt-page .kb41c .kb41-num::placeholder{color:color-mix(in srgb,var(--muted) 70%,transparent)}
.nt-page .kb41c .kb41-wr{align-items:end}
.nt-page .kb41c .kb41-nf{display:flex;flex-direction:column}
.nt-page .kb41c .kb41-nf input.kb41-num{flex:none}

/* ===== ITER 16.11 · #41 tool head (Cos: «верх под наш лейаут: текст слева, кнопки справа, черта; настройки и таблица на одном уровне») ===== */
.nt-page .kb-grader.kb9-grader.kb41c.kb41h{display:flex;flex-direction:column;gap:20px}
.nt-page .kb41h .kb41-head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.nt-page .kb41h .kb41-body{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:24px;align-items:start}
.nt-page .kb41h .kb41-tbl{gap:10px}
@media(max-width:900px){
  .nt-page .kb-grader.kb9-grader.kb41c.kb41h{gap:16px}
  .nt-page .kb41h .kb41-body{display:flex;flex-direction:column;gap:20px}
  .nt-page .kb41h .kb41-body > *{width:100%}
}
@media(max-width:600px){
  .nt-page .kb41h .kb41-head{align-items:stretch}
}
.nt-page .kb-grader.kb9-grader.kb41c.kb41h{align-items:stretch}
.nt-page .kb41h > .kb41-head,.nt-page .kb41h > .kb41-body{width:100%}
.nt-page .kb41h .kb41-head{align-items:center}

/* ===== ITER 16.11 · #41 tablet + phone (Cos: «подсказки обрезаны, углы таблицы обрезаны, кнопки на таблетке справа, компактнее») ===== */
/* table corners: the wrap clips its rounded corners at every width (no inner scroll below 900, only the corners) */
@media(max-width:900px){ .nt-page .kb41c .kt-chartwrap{overflow:hidden} }
/* tablet 601–900: head = text left, buttons right (one row); calculator in two columns: Questions + Wrong | Right left, the grade right */
@media(min-width:601px) and (max-width:900px){
  .nt-page .kb41h .kb41-head{flex-wrap:nowrap}
  .nt-page .kb41h .kb41-head .kb41-ttl{flex:1 1 auto;min-width:0}
  .nt-page .kb41h .kb41-head .kb-tools{flex:none}
  .nt-page .kb41c .kb41-calc{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"q res" "wr res" "rules rules";gap:14px 20px;align-items:start}
  .nt-page .kb41c .kb41-calc > .kb-step{grid-area:q}
  .nt-page .kb41c .kb41-calc > .kb41-wr{grid-area:wr}
  .nt-page .kb41c .kb41-calc > .kb41-res{grid-area:res;align-self:stretch;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px}
  .nt-page .kb41c .kb41-calc > .kb41-rules{grid-area:rules}
  .nt-page .kb41c .kb41-res .kb-gpct{font-size:52px}
}
/* phones: buttons row under the text; the first circle's tooltip opens to the right so it is not cut at the card edge */
@media(max-width:600px){
  .nt-page .kb41h .kb41-head .kb-tools > :first-child .kb-cb[data-tip]::after,.nt-page .kb41h .kb41-head .kb41-setbtn[data-tip]::after{left:0;right:auto;transform:none}
}
@media(min-width:601px) and (max-width:900px){ .nt-page .kb41c .kb41-calc > .kb41-res .kb-gof{flex-basis:auto} }
@media(min-width:601px) and (max-width:900px){
  .nt-page .kb41c .kb41-calc > .kb41-res{flex-direction:row;flex-wrap:wrap;align-items:center;align-content:center;gap:6px 14px;padding:16px 20px}
  .nt-page .kb41c .kb41-calc > .kb41-res .kb-gof{flex-basis:100%}
}
@media(min-width:601px) and (max-width:900px){ .nt-page .kb41c .kb41-calc > .kb41-res{justify-content:flex-start} }
/* Cos 16.11: no Done / head in the scale popover (settings apply at once) — the first field starts at the top */
.nt-page .kb41c .kb41-rpop{padding-top:14px}

/* ===== ITER GO notes 16.11 · #41 + #12 (Cos: «зелёная CTA мелковата по высоте — взять оттуда, где уже сделано»): Download ▾ = 43px,
   the height of every other GO tool's green Download (Resume, Printable, Library, Template: btn-md, 43px, padding 24px); phones too.
   #12's full-width phone button under the steps keeps its 52px (Cos 13.11 «на всю ширину и выше»). Other Kit B tools keep 38px. ===== */
.nt-page .kb41c .kb9-dlw .rb-dl,.nt-page .kb9-frac .kb9-dlw .rb-dl{height:43px;padding:0 24px}
@media(max-width:600px){ .nt-page .kb9-frac .kb9-ddl-solo .rb-dl{height:52px} }
/* empty Download (GO rule 16.11): nothing to download = the button is off with the hint as its title, the C #23 / Resume look */
.nt-page .kb41c .kb9-dlw .rb-dl:disabled,.nt-page .kb9-frac .kb9-dlw .rb-dl:disabled{opacity:.45;cursor:default;box-shadow:none}
/* #41 custom scale editor: column heads over the rows, the wrong field red, the error in the editor, Reset scale beside + Add a grade */
.nt-page .kb41c .kb41-cust .kt-crows{flex-direction:column;align-items:flex-start;gap:8px}
.nt-page .kb41c .kb41-cust .kb41-chd{background:none;padding-top:0;padding-bottom:0;margin-bottom:-4px}
.nt-page .kb41c .kb41-cust .kb41-chd span{width:56px;font:600 12.5px var(--font-body);color:var(--muted);text-align:center}   /* = the 56px fields under them */
.nt-page .kb41c .kb41-cust .opt-in.is-bad{border-color:var(--msg-err-ink,#B3261E);box-shadow:0 0 0 1px var(--msg-err-ink,#B3261E)}
.nt-page .kb41c .kb41-cust .kb41-perr{margin:2px 0 10px;font-size:13.5px}
.nt-page .kb41c .kb41-cact{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
.nt-page .kb41c .kb41-cact .kb41-creset:disabled{opacity:.45;cursor:default;text-decoration:none}
.nt-page .kb41c .kb41-terr .kb41-treset{display:inline;margin:0;padding:0;border:0;background:none;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
/* ===== END GO notes 16.11 ===== */
