@font-face{font-family:"Chemia MarkPro Bold";src:url("fonts/markpro-bold.otf") format("opentype");font-weight:700;font-display:swap}
#nkchem{--brand:var(--primary,#4d55f7);--action:var(--brand);--action-dark:color-mix(in srgb,var(--primary,#4d55f7) 70%,var(--ink));--chem-action-hover:color-mix(in srgb,var(--brand) 90%,var(--ink));--chem-on-action:var(--on-primary,#fff);--chem-field:var(--field,var(--surface));--lime:#b4ff42;--navy:#151732;--radius:18px;--nk-heading-gap-page:1.5rem;--nk-heading-gap-section:1.25rem;--nk-heading-gap-compact:.75rem;--shadow:0 12px 30px #26204d10,0 2px 6px #26204d08;--ease:180ms ease-in-out;
  font-family:MarkPro,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.55;
}
#nkchem *,#nkchem *::before,#nkchem *::after{box-sizing:border-box}
#nkchem{margin:0;min-width:0}
#nkchem button,#nkchem input,#nkchem textarea,#nkchem select{font:inherit}
#nkchem button,#nkchem a,#nkchem input,#nkchem textarea,#nkchem select{outline-offset:4px}
#nkchem :focus-visible{outline:3px solid #5656ee}
#nkchem button{cursor:pointer}
#nkchem button:disabled{cursor:default}
#nkchem a{color:inherit;text-decoration:none}
#nkchem a:hover:not(.button){color:var(--action-dark)}
#nkchem img{display:block;max-width:100%}
#nkchem svg{display:block;flex:none}
#nkchem p,#nkchem h1,#nkchem h2,#nkchem h3,#nkchem h4,#nkchem h5,#nkchem h6{margin:0}
#nkchem h1,#nkchem h2,#nkchem h3{font-weight:800;line-height:1.15;letter-spacing:-.035em}
#nkchem h4,#nkchem h5,#nkchem h6{font-family:"Chemia MarkPro Bold",MarkPro,Arial,sans-serif;font-weight:700;line-height:1.35}
#nkchem :where(.wrap){max-width:1280px;width:calc(100% - clamp(32px,6vw,96px));margin-inline:auto}
#nkchem .chemistry-content{padding-block-end:clamp(12px,2vw,24px)}
#nkchem .skip{position:fixed;top:8px;left:8px;z-index:10;background:white;padding:10px;transform:translateY(-160%)}
#nkchem .skip:focus{transform:none}
#nkchem .sitehead{background:#fff;border-bottom:1px solid var(--line)}
#nkchem .headrow{height:72px;display:flex;align-items:center;gap:28px}
#nkchem .brand img{width:109px;min-width:92px;height:auto}
#nkchem .headlinks{display:flex;align-self:stretch;align-items:center;gap:5px;margin-left:auto}
#nkchem .headlinks a{position:relative;display:grid;place-items:center;align-self:stretch;padding-inline:14px;font-size:.875rem;font-weight:710;white-space:nowrap;color:#3c405a}
#nkchem .headlinks a[aria-current]{color:var(--action-dark)}
#nkchem .headlinks a[aria-current]::after{content:"";position:absolute;inset:auto 14px 0;height:3px;border-radius:3px 3px 0 0;background:var(--lime)}
#nkchem .lang{display:flex;gap:2px;align-items:center;border:1px solid var(--line);padding:3px;border-radius:10px}
#nkchem .lang :is(a,button){display:grid;place-items:center;min-width:40px;min-height:42px;border:none;background:transparent;border-radius:7px;color:var(--ink);font-size:.8125rem;font-weight:800}
#nkchem .lang :is(a[aria-current=true],button[aria-pressed=true]){background:var(--action);color:white}
#nkchem .button.mobile-menu{display:none}
#nkchem .crumbs{padding-block:18px 8px;color:var(--muted);font-size:max(13px,.722rem);line-height:1.6}
#nkchem .crumbs ol{display:flex;flex-wrap:wrap;gap:4px 10px;list-style:none;padding:0;margin:0}
#nkchem .crumbs li{display:flex;align-items:baseline;gap:10px;min-width:0;overflow-wrap:anywhere}
#nkchem .crumbs li+li::before{content:"›" / "";opacity:.75}
#nkchem .crumbs a{color:var(--action-dark)}
#nkchem .crumbs [aria-current=page]{color:var(--muted);font-weight:700}
@media(max-width:600px){#nkchem .crumbs{padding-block:14px 6px;font-size:max(12px,.667rem)}}
#nkchem .hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;min-height:365px;border-radius:22px;background:#151732;color:#fff;box-shadow:0 16px 32px #17193d23}
#nkchem .hero::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(90deg,#151732 3%,#151732 22%,#151732ed 36%,#15173245 56%,transparent 74%),url("hero.webp");background-size:cover;background-position:center 54%}
#nkchem .hero-copy{padding:44px clamp(28px,4.35vw,62px);max-width:620px}
#nkchem .kicker{display:flex;align-items:center;gap:9px;font-size:.8125rem;font-weight:820;letter-spacing:.11em;text-transform:uppercase}
#nkchem .hero .kicker{color:var(--lime)}
#nkchem .hero h1{margin-top:13px;font-size:clamp(2.5rem,5vw,4rem);line-height:1.08;margin-bottom:var(--nk-heading-gap-page)}
#nkchem .hero p{max-width:410px;color:#e2e5f8;font-size:clamp(1rem,1.55vw,1.19rem);line-height:1.55}
#nkchem .hero .actions{margin-top:24px}
#nkchem .actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
#nkchem .button{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:46px;padding:8px 15px;background:var(--chem-field);color:var(--ink);border:1px solid var(--line);border-radius:9px;font-size:.875rem;font-weight:760;text-align:center;line-height:1.25;transition:background var(--ease),border-color var(--ease),color var(--ease)}
#nkchem .button:hover:not(:disabled){background:var(--soft);border-color:var(--brand);color:var(--action-dark)}
#nkchem .button.primary{background:var(--action);color:var(--chem-on-action);border-color:transparent}
#nkchem .button.primary:hover:not(:disabled){background:var(--chem-action-hover);color:var(--chem-on-action)}
#nkchem .button.lime{background:var(--lime);color:#171b21;border-color:transparent}
#nkchem .button.lime:hover:not(:disabled){background:#d0ff89;color:#171b21}
#nkchem .button.ghost{color:#fff;background:#ffffff0c;border-color:#ffffff6b}
#nkchem .button.ghost:hover:not(:disabled){background:#ffffff22;color:white}
#nkchem .button:disabled{opacity:.57}
#nkchem .button svg{width:18px;height:18px}
#nkchem .section{margin-top:38px}
#nkchem .section-head{display:flex;justify-content:space-between;align-items:end;gap:10px;margin-bottom:var(--nk-heading-gap-section)}
#nkchem .section-head h2{font-size:clamp(1.85rem,3vw,2.65rem)}
#nkchem .section-head p{margin-top:var(--nk-heading-gap-compact);color:var(--muted)}
#nkchem .pill{max-width:max-content;display:inline-flex;align-items:center;gap:6px;background:#e9ebff;color:#3e46c6;border-radius:8px;padding:4px 8px;font-size:.8125rem;font-weight:770;line-height:1.25}
#nkchem .pill.green{background:var(--lime);color:#202723}
#nkchem .pill.gray{background:#e4e6f3;color:#505570}
#nkchem .pill.light{background:#fff2cf;color:#684801}
#nkchem .quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
#nkchem .quick{min-height:106px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;border:1px solid var(--line);padding:16px;background:var(--surface);border-radius:15px;transition:border-color var(--ease),background var(--ease)}
#nkchem .quick:hover{border-color:#a5a9f3;background:#f8f8ff}
#nkchem .quick h3{font-size:1.1rem;letter-spacing:-.025em}
#nkchem .quick p{color:var(--muted);font-size:.875rem;line-height:1.4;margin-top:5px}
#nkchem .iconbox{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#edefee;color:#383fbd}
#nkchem .iconbox svg{width:22px;height:22px}
#nkchem .quick .iconbox,#nkchem .tile .iconbox{background:#edefFF}
#nkchem .quick>svg{color:var(--action)}
#nkchem .page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:26px 0 24px}
#nkchem .page-intro h1{font-size:clamp(2.1rem,calc(4vw * var(--nk-font-scale,1)),3.4rem);margin-top:6px;margin-bottom:var(--nk-heading-gap-page)}
#nkchem .page-intro p{color:var(--muted);max-width:640px}
#nkchem .page-intro .kicker,#nkchem .panel .kicker{color:var(--action-dark)}
#nkchem .module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
#nkchem .tile,#nkchem .panel{padding:clamp(17px,2.45vw,29px);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);min-width:0}
#nkchem .tile{display:flex;flex-direction:column;gap:11px;box-shadow:none}
#nkchem .tile.featured{border-color:#9da3f8;background:#f1f2ff}
#nkchem .tile-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
#nkchem .tile h2{font-size:1.42rem;letter-spacing:-.034em}
#nkchem .tile p{color:var(--muted);font-size:.938rem;line-height:1.5}
#nkchem .tile .button{align-self:flex-start;margin-top:auto}
#nkchem .list{padding:0;list-style:none;margin:0}
#nkchem .list li+li{border-top:1px solid var(--line)}
#nkchem .list-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;padding:15px 0}
#nkchem .list-item span p{color:var(--muted);font-size:.875rem;margin-top:3px}
#nkchem .list-item strong{font-weight:790}
#nkchem .filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding-bottom:18px}
#nkchem .filters label{display:grid;flex:1;min-width:145px;gap:4px;font-weight:680;font-size:.875rem}
#nkchem .filters :is(input,select),#nkchem textarea{width:100%;border:1px solid #aeb3ce;border-radius:8px;background:var(--chem-field);color:var(--ink);min-height:45px;padding:7px 10px}
#nkchem .filters label:first-child{flex:2}
#nkchem .results-count{color:var(--muted);font-size:.875rem}
#nkchem .lesson-title{padding:16px 0 26px}
#nkchem .lesson-title .meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:var(--brand);font-size:.875rem;font-weight:700}
#nkchem .lesson-title h1{overflow-wrap:anywhere;font-size:clamp(1.85rem,calc(3.2vw * var(--nk-font-scale,1)),2.56rem);margin:12px 0 var(--nk-heading-gap-page)}
#nkchem .lesson-title p{color:var(--muted)}
#nkchem .lesson-grid{display:grid;grid-template-columns:minmax(0,1fr) clamp(248px,27%,288px);gap:clamp(18px,2.6vw,32px);align-items:start}
#nkchem .lesson-grid>div{min-width:0;overflow-wrap:anywhere}
#nkchem .lesson-explanation{margin-bottom:16px;overflow-wrap:anywhere}
#nkchem .lesson-explanation h2{font-size:clamp(1.35rem,calc(2.2vw * var(--nk-font-scale,1)),1.8rem);margin-bottom:var(--nk-heading-gap-section)}
#nkchem .lesson-explanation p+p{margin-top:var(--nk-heading-gap-compact)}
#nkchem .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#nkchem .task h2{margin:9px 0 var(--nk-heading-gap-section);font-size:clamp(1.55rem,calc(2.5vw * var(--nk-font-scale,1)),2.2rem)}
#nkchem .task-copy{color:var(--muted);margin-top:var(--nk-heading-gap-compact)}
#nkchem .material{margin-top:17px;border-radius:13px;background:var(--soft);border:1px solid var(--line);padding:20px}
#nkchem .material .formula-title{display:inline-flex;align-items:center;gap:8px;color:var(--ink);font-size:.875rem;font-weight:750}
#nkchem .chem-big{font-size:clamp(2.2rem,5vw,3.4rem);font-weight:800;letter-spacing:-.065em;margin-top:3px}
#nkchem .task-material-text{margin-top:8px;white-space:pre-line;overflow-wrap:anywhere;font-weight:700}
#nkchem .reaction{display:flex;gap:9px;align-items:center;justify-content:center;padding-block:10px;flex-wrap:wrap}
#nkchem .term{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-weight:810;font-size:clamp(1.04rem,3vw,1.65rem);letter-spacing:-.03em}
#nkchem .term > span{min-inline-size:0;white-space:normal;overflow-wrap:anywhere}
#nkchem .term input{font-variant-numeric:tabular-nums;width:47px;min-height:45px;text-align:center;border:1px solid #9da3cc;border-radius:9px;background:var(--chem-field);color:var(--ink);padding:5px 1px}
#nkchem .coeff-error{border-color:#a43147!important}
#nkchem .reaction-sign{font-weight:800;color:var(--action-dark)}
#nkchem .choice-list{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;margin-top:17px}
#nkchem .choice{position:relative;display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:10px;border:1px solid var(--line);min-height:46px;font-weight:640;cursor:pointer}
#nkchem .choice:has(:checked){border-color:var(--action);background:var(--soft)}
#nkchem .choice > span{min-inline-size:0;overflow-wrap:anywhere}
#nkchem .choice input{width:18px;height:18px;flex:none;accent-color:var(--action)}
#nkchem .choice:hover{border-color:#9096e6}
#nkchem .task .actions{margin-top:17px;justify-content:flex-end}
#nkchem .task .source{margin-top:15px;border-top:1px solid var(--line);padding-top:10px;color:var(--muted);font-size:.875rem}
#nkchem .source summary,#nkchem .note summary{cursor:pointer;font-weight:730;min-height:44px;padding-top:8px}
#nkchem .source a{color:var(--action-dark);text-decoration:underline}
#nkchem .feedback:empty{display:none}
#nkchem .feedback:not(:empty){margin-top:15px}
#nkchem .notice{padding:12px 13px;border-radius:10px;border:1px solid #deddf0;background:#f5f5fd}
#nkchem .notice.pass{color:#235737;background:#eaf7ee;border-color:#aed0b3;border-inline-start:4px solid #3a8a59}
#nkchem .notice.fail,#nkchem .notice.nk-validation-message{color:#7e2631;background:#fce8ea;border-color:#c87079;border-inline-start:4px solid #a53945}
#nkchem .notice.try{color:#694725;background:#fff8ec;border-color:#dec5a0}
#nkchem .notice p{margin-top:3px}
#nkchem .notice.nk-validation-message{display:block}
#nkchem .notice.nk-validation-message::before{display:inline-grid;margin-inline-end:.6rem;vertical-align:middle}
#nkchem .note{margin-top:10px;padding:7px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
#nkchem .note textarea{min-height:86px;margin-bottom:6px;resize:vertical}
#nkchem .note .actions{margin-bottom:6px;justify-content:flex-end}
#nkchem .note small{color:var(--muted)}
#nkchem .form-area{margin-top:16px}
#nkchem .form-area label{display:block;font-weight:750;margin-bottom:5px}
#nkchem .form-area textarea{min-height:100px;resize:vertical}
#nkchem .tally{margin-top:10px;border-collapse:collapse;text-align:center;font-size:.875rem}
#nkchem .tally :is(th,td){border:1px solid #babed1;padding:3px 9px}
#nkchem .tally caption{text-align:left;font-weight:750;margin-bottom:3px}
#nkchem .progress-list{margin-top:12px}
#nkchem .lesson-bottom{margin-top:16px;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
#nkchem .chem-task-report{position:fixed;z-index:74;inset-inline-end:max(16px,env(safe-area-inset-right,0px));inset-block-end:calc(16px + env(safe-area-inset-bottom,0px));display:grid;place-items:center;width:52px;height:52px;padding:0;border:1px solid transparent;border-radius:50%;background:#4d55f7;color:#fff;box-shadow:0 8px 24px #18182838;transition:background var(--ease)}
#nkchem .chem-task-report:is(:hover,:active){color:#fff;background:#373dc0}
#nkchem .chem-task-report svg{stroke-width:2.8}
#nkchem .page-intro>.button{margin-inline-start:auto}
#nkchem .list-item>.button{justify-self:end}
#nkchem .footer{margin-top:42px;border-top:1px solid var(--line);background:#fff;padding:20px 0;color:var(--muted);font-size:.875rem}
#nkchem .footer .wrap{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
#nkchem .footer strong{color:var(--ink)}
#nkchem .nk-dialog{width:min(470px,calc(100% - 32px));max-block-size:calc(100dvh - 32px);overflow:auto;padding:23px;border:1px solid var(--line);border-radius:20px;box-shadow:0 15px 70px #14152d55;color:var(--ink);background:var(--surface)}
#nkchem .nk-dialog::backdrop{background:#171a457b;backdrop-filter:blur(5px)}
#nkchem .nk-dialog h2{margin:0 44px var(--nk-heading-gap-section) 0}
#nkchem .nk-dialog p{margin:0 0 18px;color:var(--muted)}
#nkchem .nk-dialog .nk-close{display:grid;place-items:center;position:absolute;inset-block-start:12px;inset-inline-end:12px;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink)}
#nkchem .nk-dialog .nk-close:hover{background:var(--soft)}
#nkchem .nk-dialog .actions{justify-content:flex-end}
#nkchem .nk-dialog .actions button:first-child{margin-inline-end:auto}
#nkchem .chem-report-form label{display:block;margin:0 0 12px;font-weight:700}
#nkchem .chem-report-form :is(select,textarea){display:block;width:100%;min-height:44px;margin:0 0 14px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--chem-field);color:var(--ink)}
#nkchem .chem-report-form textarea{min-height:95px;resize:vertical}
#nkchem .chem-report-form [aria-invalid=true]{border-color:#a53945}
#nkchem .chem-report-form .feedback:not(:empty){margin:0 0 14px}

@media(max-width:900px){
  #nkchem .headrow{gap:12px}
  #nkchem .headlinks a{padding-inline:9px}
  #nkchem .headlinks a[aria-current]::after{inset-inline:9px}
  #nkchem .module-grid{grid-template-columns:repeat(2,1fr)}
  #nkchem .quick-grid{grid-template-columns:repeat(2,1fr)}
  #nkchem .quick{min-height:78px}
}
@media(max-width:690px){
  #nkchem .headrow{height:62px}
  #nkchem .brand{margin-right:auto}
  #nkchem .button.mobile-menu{display:grid;place-items:center;min-width:46px;padding:0}
  #nkchem .headlinks{display:none}
  #nkchem .headlinks.open{display:flex;position:absolute;inset:62px 0 auto;background:white;z-index:4;flex-direction:column;align-items:stretch;border-bottom:1px solid var(--line);box-shadow:var(--shadow);padding:8px 16px}
  #nkchem .headlinks a{min-height:44px;justify-content:start}
  #nkchem .headlinks a[aria-current]::after{width:30px}
  #nkchem .hero{min-height:350px}
  #nkchem .hero::before{background-image:linear-gradient(90deg,#151732 0%,#151732ef 23%,#15173267 100%),linear-gradient(0deg,#151732 0%,transparent 70%),url("hero.webp");background-position:70% 47%}
  #nkchem .hero h1{font-size:clamp(2.1rem,9vw,3.3rem)}
  #nkchem .hero-copy{padding:25px 20px}
  #nkchem .hero p{max-width:275px}
  #nkchem .quick-grid{grid-template-columns:1fr}
  #nkchem .section{margin-top:27px}
  #nkchem .page-intro{align-items:start;flex-direction:column;gap:13px;padding-top:12px}
  #nkchem .section-head{align-items:start}
  #nkchem .list-item{grid-template-columns:auto minmax(0,1fr);gap:8px 10px}
  #nkchem .list-item .button,#nkchem .list-item>.pill,#nkchem .list-item>.actions{grid-column:2;justify-self:end}
}
@media(max-width:440px){
  #nkchem .module-grid{grid-template-columns:1fr}
  #nkchem .task .actions .primary{width:100%}
  #nkchem .material{padding:11px}
  #nkchem .reaction{column-gap:6px}
  #nkchem .term > span{min-inline-size:0;white-space:normal;overflow-wrap:anywhere}
#nkchem .term input{width:36px}
  #nkchem .reaction-sign{font-size:.9rem}
}
@media(prefers-reduced-motion:reduce){#nkchem *,#nkchem *::before,#nkchem *::after{transition:none!important;scroll-behavior:auto!important}}
#nkchem .warmup-question{border:0;padding:0;margin:0;min-width:0}
#nkchem .warmup-question+.warmup-question{border-top:1px solid var(--line);margin-top:16px;padding-top:5px}
#nkchem .warmup-question legend{font-weight:790;font-size:1.1rem;padding:0 4px 0 0}
#nkchem .warmup-question .choice-list{display:flex;flex-wrap:wrap;margin-top:9px}
#nkchem .warmup-question .choice{flex:1 1 140px}

@media(max-width:767px){#nkchem .lesson-grid{grid-template-columns:minmax(0,1fr)}}

/* Offline projection of the active NieKuj Classroom and nkt-room styles, Theme 0.21.13-niekuj.1. */
#nkchem .nk-room-steps{padding:2px 2px 12px;margin:0 0 25px}
#nkchem .nk-room-step-list{display:flex;gap:10px}
#nkchem .nk-room-step{overflow-wrap:anywhere;flex:1 1 0%;display:flex;align-items:center;gap:10px;min-width:0;min-height:65px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:1.125rem;text-align:left;line-height:1.35}
#nkchem .nk-room-step:hover:not(:disabled),#nkchem .nk-room-step[aria-current=step]{border-color:var(--brand)}
#nkchem .nk-room-step:disabled{opacity:.58}
#nkchem .nk-room-step[aria-current=step]{background:var(--soft);font-weight:800}
#nkchem .nk-room-step > span{display:flex;width:30px;height:30px;flex-shrink:0;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;font-size:.82rem}
#nkchem .nk-room-step.is-solved > span{border-color:var(--brand);color:var(--brand)}
#nkchem .nk-room-step[aria-current=step] > span{border-color:var(--brand);background:var(--brand);color:var(--chem-on-action)}
#nkchem .nk-mobile-step-controls,#nkchem .nk-mobile-step-count,#nkchem .nk-mobile-step-track,#nkchem .nk-mobile-coach > summary{display:none}
#nkchem .nk-mobile-coach{min-width:0}
#nkchem .nk-room-mentor{display:grid;gap:14px;min-width:0;overflow:visible}
#nkchem .nkt-role{border:1px solid #ffffff26;border-radius:16px;padding:16px 18px 22px;background:radial-gradient(at 94% 4%,#573c9a,transparent 62%),#23222a;color:#fff;min-width:0;box-shadow:0 10px 28px #1c1a3a12}
#nkchem .nk-room-help.nkt-role{border-radius:14px;padding:16px;background:radial-gradient(at 94% 4%,#4d3a80,transparent 62%),#1e2033}
#nkchem .nkt-role-head{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:10px;margin:0 -2px 16px}
#nkchem .nkt-role-head h3{font-size:1.375rem;color:#fff;font-weight:850;line-height:1.05;letter-spacing:-.55px;margin:0;min-width:0}
#nkchem .nkt-role-head h3 > span{display:block;line-height:1.05}
#nkchem .nkt-role-head .nkt-name{font-size:2.125rem;color:#c6ff53}
#nkchem .nkt-role-head h3 > span:last-child{font-size:1.25rem;margin-top:3px;overflow-wrap:anywhere}
#nkchem .nk-room-help .nkt-role-head{margin:0 0 14px}
#nkchem .nk-room-help .nkt-role-head .nkt-name{color:#baaaff}
#nkchem .nkt-avatar{position:relative;display:block;width:64px;height:64px;flex:0 0 64px}
#nkchem .nkt-avatar img{display:block;width:64px;height:64px}
#nkchem .nkt-avatar > span{position:absolute;left:2px;bottom:6px;display:grid;place-items:center;width:20px;height:20px;background:#252637;border:1px solid #888d9f;border-radius:50%}
#nkchem .nkt-avatar > span::after{content:"";width:7px;height:13px;background:#c6ff53;clip-path:polygon(50% 0%,100% 54%,50% 100%,0% 46%);transform:rotate(38deg)}
#nkchem .nk-room-help .nkt-avatar > span{width:18px;border:0;border-radius:4px;background:#baaaff}
#nkchem .nk-room-help .nkt-avatar > span::before{content:"";position:absolute;top:-3px;width:8px;height:5px;border-radius:2px;background:#baaaff}
#nkchem .nk-room-help .nkt-avatar > span::after{width:8px;height:5px;background:none;clip-path:none;border-left:2px solid #272044;border-bottom:2px solid #272044;transform:rotate(-45deg)}
#nkchem .nkt-task-clues > p,#nkchem .nkt-help-intro,#nkchem .nk-room-rescue p{font-size:.875rem;font-weight:500;line-height:1.4;color:#fff}
#nkchem .nkt-help-intro{margin:0 0 13px}
#nkchem .nk-shared-clue-bar{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:20px 0 15px;padding-bottom:10px;border-bottom:1px solid #ffffff40;color:#f7f6ff;font:500 .625rem/1.75 MarkPro,Arial,sans-serif}
#nkchem .nk-shared-clue-nav{display:flex;align-items:center;gap:8px}
#nkchem .nk-shared-clue-count{min-width:3ch;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
#nkchem .nk-shared-clue-nav button{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:0;background:transparent;border:1px solid currentColor;color:#c6ff53;border-radius:8px;font:400 24px/1 MarkPro,Arial,sans-serif}
#nkchem .nk-shared-clue-nav button:not(:disabled):hover{background:#ffffff12}
#nkchem .nk-shared-clue-nav button:disabled{opacity:.32;cursor:default}
#nkchem .nk-shared-clue-list{padding:10px 12px 10px 29px;margin:0 0 12px;background:#30294b;border-inline-start:3px solid #b9a8ff;border-radius:7px;font-size:.875rem;line-height:1.5}
#nkchem .nk-shared-clue-list li::marker{color:var(--lime)}
#nkchem .nk-shared-clue-reveal,#nkchem #nkRoomRescue{width:100%;min-height:44px;padding:10px 17px;border-radius:9px;font-weight:750;line-height:1.45}
#nkchem .nk-shared-clue-reveal{border-color:#c6ff53;background:#c6ff53;color:#182b17;font-size:.75rem}
#nkchem .nk-shared-clue-reveal:hover:not(:disabled){background:#d7ff85;border-color:#d7ff85;color:#182b17}
#nkchem .nk-room-rescue{border-top:1px solid #ffffff38;padding-top:12px}
#nkchem .nk-room-rescue h4{font-size:1.125rem;line-height:1.4;color:#fff;margin:0 0 8px}
#nkchem .nk-room-rescue p{margin-bottom:16px}
#nkchem #nkRoomRescue{border-color:#4d55f7;background:#4d55f7;color:#fff;font-size:.8125rem}
#nkchem #nkRoomRescue:is(:hover,:focus-visible,:active){border-color:#373dc0;background:#373dc0;color:#fff}
#nkchem .nkt-role :focus-visible{outline:2px solid #d4c1fa;outline-offset:3px}
#nkchem .nkt-wallet{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,41%);grid-template-areas:"balance balance" ". coin" "shop shop";min-block-size:205px;gap:4px 8px;padding:15px;border:1px solid #ecc659;border-radius:16px;background:radial-gradient(ellipse at 12% 0%,#fff7c7 0,transparent 59%),linear-gradient(134deg,#ffe780,#ffdb57);color:#1a2041}
#nkchem .nkt-wallet-content{grid-area:balance;min-width:0}
#nkchem .nkt-wallet strong,#nkchem .nkt-wallet small{display:block}
#nkchem .nkt-wallet-title{font-size:.9375rem;font-weight:800;line-height:1.2}
#nkchem .nkt-wallet-balance{margin-top:4px;font-size:2.75rem;font-weight:900;line-height:1.02;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#nkchem .nkt-wallet :is(img,.nk-currency-coin){grid-area:coin;inline-size:100%;max-inline-size:92px;block-size:auto;aspect-ratio:1;justify-self:end;align-self:center;object-fit:contain;filter:drop-shadow(1px 6px 4px #8c56005c)}
#nkchem .nkt-wallet-shop{grid-area:shop;align-self:end;color:#493715;font-size:.9375rem;font-weight:800}
#nkchem .nkt-wallet-shop a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:.16em}
#nkchem .nkt-wallet-account{font-size:.875rem;text-decoration:underline;text-underline-offset:.16em}
#nkchem .nkt-notebook.button{width:100%;margin:0;border-color:#d8daeb;background:var(--surface);color:var(--ink);text-align:center;justify-content:center}
#nkchem .nkt-notebook.button:focus-visible{outline:2px solid #d4c1fa;box-shadow:0 0 0 3px #36304e}
#nkchem .nkt-notebook.button[aria-pressed=true]{border-color:#9bba6a;background:#eff7df;color:#273d14}
@media(max-width:767px){
  #nkchem .nk-room-steps{padding:2px 0 0;margin-bottom:18px}
  #nkchem .nk-room-step-list{display:none}
  #nkchem .nk-mobile-step-count{display:block;font-size:.6875rem;font-weight:700;letter-spacing:.06em;color:var(--action-dark);margin:0 0 8px}
  #nkchem .nk-mobile-step-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center}
  #nkchem .nk-mobile-step-arrow{display:grid;place-items:center;min-width:44px;min-height:48px;background:var(--surface);color:var(--action-dark);border:1px solid var(--line);border-radius:10px;padding:10px}
  #nkchem .nk-mobile-step-arrow:disabled{opacity:.28}
  #nkchem .nk-mobile-step-select{min-width:0}
  #nkchem .nk-mobile-step-select select{display:block;width:100%;min-width:0;min-height:48px;padding:8px 10px;border:1px solid var(--brand);border-radius:10px;background:var(--chem-field);color:var(--ink);font-size:1rem;line-height:1.3;text-overflow:ellipsis}
  #nkchem .nk-mobile-step-track{display:block;height:4px;background:#e3dff5;border-radius:5px;margin-top:12px;overflow:hidden}
  #nkchem .nk-mobile-step-track > span{display:block;height:100%;background:#6554ff;transition:width .25s ease-in-out}
  #nkchem .nk-mobile-coach > summary{display:flex;align-items:center;gap:10px;min-height:60px;padding:8px 12px;cursor:pointer;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:10px;list-style:none}
  #nkchem .nk-mobile-coach > summary::-webkit-details-marker{display:none}
  #nkchem .nk-mobile-coach > summary > span{display:grid;gap:4px;flex:1;min-width:0}
  #nkchem .nk-mobile-coach > summary strong{font-size:.9375rem;font-weight:800;line-height:1.2}
  #nkchem .nk-mobile-coach > summary small{font-size:.75rem;line-height:1.4;color:var(--muted)}
  #nkchem .nk-mobile-coach > summary img{width:42px;height:42px;flex:none}
  #nkchem .nk-mobile-coach > summary svg{color:#6554ff;transition:transform .25s ease-in-out}
  #nkchem .nk-mobile-coach[open] > summary svg{transform:rotate(180deg)}
  #nkchem .nk-mobile-coach > .nk-room-mentor{margin-top:8px;padding:12px;background:#28243c;color:#f4f1ff;border-radius:10px}
  #nkchem .nk-mobile-coach .nkt-role{border-radius:12px}
  #nkchem .nk-mobile-coach #nkRoomRescue{min-height:46px;border-radius:10px}
}

/* NieKuj Geography list navigation uses nk-polish-reader-nav. */
#nkchem .geo-list-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px;margin-top:18px}
#nkchem .geo-list-pager .geo-btn{min-height:46px;border:1px solid var(--brand);padding:10px 17px;border-radius:9px;color:var(--brand);background:color-mix(in srgb,var(--brand) 8%,var(--surface));font-size:.8125rem}
#nkchem .geo-list-pager .geo-btn:not(:disabled):is(:hover,:focus-visible){color:var(--brand);background:color-mix(in srgb,var(--brand) 18%,var(--surface))}
#nkchem .geo-list-pager .geo-btn:disabled{border-color:#e0e2ef;background:#f7f8fc;color:var(--muted);opacity:1}
#nkchem .geo-page-status{display:grid;justify-items:center;color:#202236;font-size:.9375rem}
#nkchem .geo-page-status small{font-size:.75rem}
@media(max-width:420px){#nkchem .geo-list-pager{gap:8px}#nkchem .geo-list-pager .geo-btn{padding-inline:10px}}

#nkchem .lesson-video{margin-bottom:16px}
#nkchem .lesson-video>summary{display:flex;align-items:center;gap:9px;min-height:44px;color:var(--ink);font-weight:800;cursor:pointer;list-style:none}
#nkchem .lesson-video>summary::-webkit-details-marker{display:none}
#nkchem .lesson-video>summary svg:first-child{color:var(--brand)}
#nkchem .lesson-video>summary svg:last-child{margin-inline-start:auto}
#nkchem .lesson-video[open]>summary svg:last-child{transform:rotate(180deg)}
#nkchem .lesson-video h2{font-size:1.3rem;margin:var(--nk-heading-gap-compact) 0}
#nkchem .lesson-video video{display:block;width:100%;aspect-ratio:16/9;border-radius:10px;background:#141731}
#nkchem .lesson-video video::cue{font-family:MarkPro,Arial,sans-serif;color:#fff;background:#171932}
#nkchem .video-transcript{margin-top:12px}
#nkchem .video-transcript>summary{cursor:pointer;min-height:44px;padding-block:9px;font-weight:700}
#nkchem .video-transcript ol{padding-inline-start:22px;margin:6px 0 0}
#nkchem .video-transcript li+li{margin-top:10px}
#nkchem .video-transcript li p{margin-top:6px;color:var(--muted);font-size:.875rem}

/* Catalogue proportions and visual tokens from the NieKuj Geography subject. */
#nkchem .geo-intro{margin:clamp(18px,3.1vw,42px) 0 clamp(22px,2.5vw,32px)}
#nkchem .geo-intro h1{max-width:1100px;overflow-wrap:anywhere;font-size:clamp(2.15rem,4.75vw,4rem);margin:0 0 var(--nk-heading-gap-page)}
#nkchem .geo-intro p{max-width:850px;color:var(--muted);font-size:1.1rem;line-height:1.58}
#nkchem .geo-home-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(220px,27%,288px);gap:clamp(18px,2.6vw,32px);align-items:start}
#nkchem .geo-main{min-width:0;display:grid;gap:clamp(22px,3vw,32px)}
#nkchem .geo-main>.section{margin-top:0}
#nkchem .geo-home-side{display:grid;gap:14px;min-width:0;overflow:visible}
@media(min-width:768px){
  #nkchem .lesson-grid>#sidebar,#nkchem .geo-home-side{
    position:sticky;inset-block-start:min(var(--chem-rail-top,16px),calc(100dvh - var(--chem-rail-height,0px) - 16px));
    align-self:start;overflow:visible;
  }
}
#nkchem .geo-home-side>.button,#nkchem .warmup-page>.button{width:100%;min-height:44px}
#nkchem .geo-back{color:var(--brand);border-color:var(--line)}

/* The site theme hides its mobile-only coach. In Chemistry this wrapper houses both layouts. */
#nkchem .nk-mobile-coach{display:block;min-width:0}

#nkchem .geo-banner{border-radius:20px;background:linear-gradient(90deg,#18192f 3%,#18192f 24%,#18192fe6 44%,#18192f35 78%),url("hero.webp") 68% 58%/cover;color:#fff;min-height:clamp(225px,22vw,300px);padding:clamp(20px,3.4vw,40px);display:flex;align-items:center}
#nkchem .geo-banner-copy .kicker{font-size:.81rem}
#nkchem .geo-banner h2{font-size:clamp(2.6rem,5.3vw,4.5rem);color:var(--lime);margin:12px 0 var(--nk-heading-gap-section);line-height:1.06}
#nkchem .geo-banner ul{display:flex;gap:8px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
#nkchem .geo-banner li{font-size:.813rem;font-weight:750;border:1px solid #ffffff42;border-radius:8px;padding:7px 10px}
#nkchem .geo-banner .actions{margin-top:18px}
#nkchem .geo-warmup{border:1px solid #51496b;border-radius:16px;padding:16px;background:radial-gradient(ellipse at 95% 0,#45395f 0,transparent 54%),linear-gradient(#202033,#191a2d);color:#fff;min-width:0;box-shadow:var(--shadow)}
#nkchem .geo-warmup-heading{display:flex;align-items:center;gap:12px;margin-bottom:14px}
#nkchem .geo-warmup-heading img{flex:none}
#nkchem .geo-warmup-heading > div{min-inline-size:0}
#nkchem .geo-warmup-heading strong{display:block;color:var(--lime);font-weight:800;line-height:1.15}
#nkchem .geo-warmup-heading h2{overflow-wrap:anywhere;font-size:1.28rem;line-height:1.15;margin:3px 0 0;letter-spacing:-.025em}
#nkchem .geo-warmup-progress{display:flex;justify-content:space-between;align-items:start;gap:9px;font-size:.75rem;color:#e6e2f5;font-weight:700;margin-bottom:10px}
#nkchem .geo-warmup-progress span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}
#nkchem .geo-warmup-material{display:grid;place-items:center;min-height:84px;padding:10px;text-align:center;border:1px solid #655d7d;border-radius:11px;background:linear-gradient(145deg,#3b3657,#26243b);font-size:1.1rem;font-weight:750;margin-bottom:10px}
#nkchem .geo-warmup #warmup-question{font-size:.875rem;line-height:1.45;font-weight:750;margin-bottom:10px}
#nkchem .geo-warmup-options{display:grid;gap:6px}
#nkchem .warm-option{padding:8px 9px;min-height:44px;color:#fff;background:#323149;border:1px solid #625a77;border-radius:8px;font-size:.8125rem;font-weight:750;line-height:1.25}
#nkchem .warm-option:hover:not(:disabled){border-color:var(--lime);background:#413d58}
#nkchem .warm-option.correct{background:#254536;border-color:#8bdb9f}
#nkchem .warm-option.wrong{background:#513446;border-color:#dd93ab}
#nkchem .warm-feedback{margin-top:12px;border-top:1px solid #ffffff39;padding-top:9px;font-size:.8125rem;line-height:1.45}
#nkchem .warm-feedback strong{display:block;margin-bottom:5px}
#nkchem .geo-warmup .warm-next{margin-top:12px;width:100%;border-color:var(--lime);background:var(--lime);color:#182b17}
#nkchem .geo-warmup .warm-next:hover{background:#d1ff88;color:#182b17}
#nkchem .warm-score{margin:12px 0 0}
#nkchem .warm-score strong{display:block;font-size:2rem;color:var(--lime)}
#nkchem .warmup-page{display:grid;max-width:460px;gap:14px}
#nkchem .geo-home-results{padding:clamp(16px,2.5vw,32px);background:#f6f5fd;border:1px solid #deddf0;border-radius:18px;box-shadow:0 12px 30px #26204d13,0 2px 6px #26204d0a}
#nkchem .geo-home-results h2{font-size:clamp(1.75rem,3.1vw,2.375rem);color:var(--brand);margin:0 0 var(--nk-heading-gap-section)}
#nkchem .geo-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
#nkchem .geo-filter-grid label{display:grid;gap:6px;font-size:.875rem;font-weight:650;min-width:0}
#nkchem .geo-filter-search{grid-column:1/-1}
#nkchem .geo-filter-grid :is(input,select){min-height:48px;width:100%;min-width:0;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:1rem}
#nkchem .geo-home-results .results-count{margin:19px 0}
#nkchem .geo-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#nkchem .geo-task-card{padding:clamp(14px,2vw,22px);display:flex;flex-direction:column;min-width:0;gap:12px;background:var(--surface);border:1px solid #deddf0;border-inline-start:4px solid var(--brand);border-radius:14px;transition:opacity var(--ease),transform var(--ease)}
#nkchem .geo-task-card h3{font-size:1.22rem;overflow-wrap:anywhere}
#nkchem .geo-task-card p{color:var(--muted);font-size:.875rem}
#nkchem .geo-task-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;background:#eff0ff;color:#383d5c;border-radius:6px;padding:7px 8px;font-size:.75rem}
#nkchem .geo-task-meta .pill{font-size:.72rem}
#nkchem .geo-task-meta .complete{background:#e7f4eb;color:#245544;margin-inline-start:auto}
#nkchem .geo-task-actions{margin-top:auto;display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px}
#nkchem .geo-task-card .geo-points{font-size:.8125rem;margin:4px 0}
#nkchem .geo-task-card.removing{opacity:0;transform:translateY(4px);pointer-events:none}
#nkchem .geo-task-card .geo-remove{min-width:44px;padding:8px;color:#554ee7}
#nkchem .geo-task-card .geo-remove:hover{color:#6e2839;background:#fcf1f2;border-color:#e4cacd}
#nkchem .geo-empty{padding:18px 0 0;color:var(--muted)}
@media(max-width:960px){
  #nkchem .geo-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
  #nkchem .geo-home-layout{grid-template-columns:minmax(0,1fr)}
  #nkchem .geo-intro p{font-size:1rem}
  #nkchem .geo-banner{min-height:235px;background-position:71% 56%}
}
@media(max-width:550px){
  #nkchem .geo-task-grid{grid-template-columns:minmax(0,1fr)}
  #nkchem .geo-filter-grid{grid-template-columns:minmax(0,1fr)}
  #nkchem .geo-home-results .geo-task-meta .complete{margin-inline-start:0}
}
#nkchem .geo-sources{margin-top:clamp(28px,4vw,52px);padding:clamp(16px,2.5vw,32px);background:var(--surface);border:1px solid var(--line);border-radius:18px}
#nkchem .geo-sources h2{font-size:clamp(1.65rem,3vw,2.375rem);margin-bottom:var(--nk-heading-gap-section)}
#nkchem .geo-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,4vw,40px)}
#nkchem .geo-source-grid h3{font-size:1.18rem;margin-bottom:var(--nk-heading-gap-compact)}
#nkchem .geo-source-grid p{color:var(--muted)}
#nkchem .geo-source-grid ul{padding-inline-start:20px;margin:var(--nk-heading-gap-compact) 0 0}
#nkchem .geo-source-grid li+li{margin-top:8px}
#nkchem .geo-source-grid a{color:var(--action-dark);text-decoration:underline;text-underline-offset:.22em}
@media(max-width:650px){#nkchem .geo-source-grid{grid-template-columns:1fr}}

/* Shared choice-card dimensions and hover values verified against Matematyka / #poziom. */
#nkchem .geo-level-chooser,
#nkchem .grade-program{
  --card-transition:var(--nk-control-motion,220ms) var(--nk-hover-easing,ease-in-out);
}
#nkchem .geo-level-chooser{scroll-margin-top:24px}
#nkchem .geo-level-chooser .choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
#nkchem .geo-level-chooser .choice-card{
  display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:250px;
  gap:16px;padding:28px;border:1px solid var(--brand);border-radius:14px;
  background-color:var(--brand);color:var(--chem-on-action);text-decoration:none;
  transition:background-color var(--card-transition),color var(--card-transition),border-color var(--card-transition);
}
#nkchem .geo-level-chooser .choice-card:is(:hover,:focus-visible){
  background-color:var(--lime);border-color:var(--lime);color:#171717;
}
#nkchem .geo-level-chooser .choice-top{display:flex}
#nkchem .geo-level-chooser .choice-icon,#nkchem .chemistry-exercises .choice-icon{
  display:grid;place-items:center;width:37px;height:37px;flex:none;
  border:1px solid currentColor;border-radius:7px;
}
#nkchem .geo-level-chooser .choice-icon svg{width:17px;height:17px}
#nkchem .geo-level-chooser .choice-card h3{font-size:clamp(1.45rem,2.6vw,1.875rem);color:inherit}
#nkchem .geo-level-chooser .choice-description{font-size:1rem;line-height:1.55;color:inherit}
#nkchem .geo-level-chooser .choice-bottom{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  margin-top:auto;padding-top:4px;color:inherit;font-size:.9375rem;font-weight:700;
}
#nkchem .chemistry-exercises{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;
  padding:clamp(16px,2.5vw,28px);border-radius:14px;border:1px solid var(--brand);
  background-color:var(--brand);color:var(--chem-on-action);text-decoration:none;
  transition:background-color var(--nk-control-motion,220ms) var(--nk-hover-easing,ease-in-out),color var(--nk-control-motion,220ms) var(--nk-hover-easing,ease-in-out),border-color var(--nk-control-motion,220ms) var(--nk-hover-easing,ease-in-out);
}
#nkchem .geo-main>.chemistry-exercises:is(:hover,:focus-visible){background-color:var(--lime);border-color:var(--lime);color:#171717}
#nkchem .chemistry-exercises h2{font-size:clamp(1.25rem,2.5vw,1.65rem);margin-bottom:4px;color:inherit}
#nkchem .chemistry-exercises p{color:inherit}
#nkchem .chemistry-exercises-arrow{font-weight:800}

#nkchem .grade-intro>.button{margin-inline-start:auto}
#nkchem .grade-back.lesson-bottom{justify-content:flex-end;margin-top:18px}
#nkchem .geo-notebook-subtitle{margin-bottom:1.25rem;color:var(--muted)}
#nkchem .geo-home-notebook :is(h2,h3){scroll-margin-top:24px}

#nkchem .grade-program{
  --program-border:#d8daeb;
  --program-ink:#202236;
  --program-muted:#595f7e;
  border:1px solid var(--program-border);
  border-radius:18px;
  padding:clamp(16px,2.5vw,32px);
  background:var(--surface);
  color:var(--program-ink);
  box-shadow:0 12px 32px #4d55f714;
}
#nkchem .program-head{
  display:flex;justify-content:space-between;align-items:center;gap:1.25rem;
  padding-bottom:1.75rem;border-bottom:1px solid var(--program-border);
}
#nkchem .program-head h2{font-size:clamp(1.75rem,3vw,2.15rem);margin-bottom:var(--nk-heading-gap-compact)}
#nkchem .program-head p{color:var(--program-muted);line-height:1.52}
#nkchem .program-stats{
  display:flex;flex-wrap:wrap;gap:clamp(1.25rem,2.5vw,2rem);
  margin:0;padding:14px 22px;border:1px solid #b1e7a1;border-radius:18px;background:#ebfce9;
}
#nkchem .program-stats div{display:flex;flex-direction:column-reverse;align-items:center;text-align:center;min-width:5ch}
#nkchem .program-stats dt{font-size:.85rem;color:var(--program-muted)}
#nkchem .program-stats dd{margin:0;font-size:1.85rem;font-weight:800;line-height:1.14}
#nkchem .program-tools{
  display:flex;justify-content:space-between;align-items:center;gap:1rem;
  margin:1.75rem 0 1.25rem;
}
#nkchem .program-tools h3{font-size:1.12rem;margin-bottom:6px}
#nkchem .program-tools p{font-size:.85rem;color:var(--program-muted)}
#nkchem .program-search{
  display:flex;align-items:center;gap:9px;width:min(100%,355px);min-width:0;
  padding-inline:14px;background:#f4f5fd;border:1px solid var(--program-border);
  border-radius:8px;color:var(--program-muted);
}
#nkchem .program-search input{width:100%;min-width:0;padding:12px 0;border:0;background:transparent;color:var(--program-ink)}
#nkchem .program-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:clamp(14px,2vw,20px)}
#nkchem .program-module{
  min-width:0;border:1px solid var(--program-border);border-radius:18px;background:var(--surface);
  box-shadow:0 6px 20px #4d55f70d;
  transition:box-shadow var(--card-transition),border-color var(--card-transition);
}
#nkchem .program-module[hidden]{display:none}
#nkchem .program-module:is(:hover,:focus-within,[open]){
  border-color:#b7bbf2;box-shadow:0 8px 22px #4d55f719;
}
#nkchem .program-toggle{
  cursor:pointer;display:grid;grid-template-columns:44px minmax(0,1fr) 40px;align-items:start;gap:16px;
  min-height:160px;padding:22px 24px;border-radius:inherit;list-style:none;
}
#nkchem .program-toggle::-webkit-details-marker{display:none}
#nkchem .program-number{
  display:grid;place-items:center;min-height:44px;background:#a4f58b;
  color:#14173d;border-radius:8px;font-weight:780;font-size:1rem;
}
#nkchem .program-copy{display:grid;gap:6px;min-width:0}
#nkchem .program-meta{font-size:.8rem;color:var(--program-muted)}
#nkchem .program-title{font-size:1.15rem;line-height:1.25;font-weight:800}
#nkchem .program-description{font-size:.9rem;color:var(--program-muted);line-height:1.5}
#nkchem .program-chevron{
  display:grid;place-items:center;justify-self:end;width:34px;height:34px;
  background:#f0f0ff;color:var(--brand);border-radius:50%;
}
#nkchem .program-chevron svg{transition:transform var(--card-transition)}
#nkchem .program-module[open] .program-chevron svg{transform:rotate(180deg)}
#nkchem .program-module-body{margin:0 24px 24px;padding-top:14px;border-top:1px solid var(--program-border)}
#nkchem .program-module-body ol{margin:0;padding-inline-start:1.4rem;color:var(--program-muted)}
#nkchem .program-module-body li+li{margin-top:.45rem}
#nkchem .program-module-body a:not(.button){color:var(--brand);text-decoration:underline}
#nkchem .program-actions{display:flex;justify-content:flex-end;margin-top:15px}
#nkchem #program-empty{color:var(--program-muted)}

@media(max-width:690px){
  #nkchem .program-head,#nkchem .program-tools{align-items:stretch;flex-direction:column}
  #nkchem .program-stats{align-self:flex-start}
  #nkchem .program-grid{grid-template-columns:minmax(0,1fr)}
  #nkchem .program-toggle{grid-template-columns:36px minmax(0,1fr) 34px;gap:10px;min-height:0;padding:15px}
  #nkchem .program-number{min-height:36px}
  #nkchem .program-module-body{margin:0 15px 15px}
}

@media(max-width:690px){
  #nkchem .geo-level-chooser .choice-grid{grid-template-columns:minmax(0,1fr)}
  #nkchem .geo-level-chooser .choice-card{padding:20px;min-height:0}
}
