.nk-portal .nk-exam {
  --exam-accent: #116758;
  --exam-tint: #e6f6f1;
  --exam-line: #9acfc2;
  --exam-ink: #153e38;
  max-width: 69rem;
  padding-block: clamp(1.6rem, 5vw, 3.5rem);
}
.nk-exam-heading {margin-block-end: 1.4rem;}
.nk-exam-heading .nk-eyebrow {margin: .95rem 0 .4rem;}
.nk-portal .nk-exam-heading h1 {font-size: clamp(1.65rem, 4.25vw, 3.2rem); line-height: 1.12; margin: 0 0 .35rem; overflow-wrap: anywhere;}
.nk-portal .nk-exam-active .nk-exam-heading h1 {font-size: clamp(1.55rem, 3.35vw, 2.55rem);}
.nk-exam-heading > p:last-child {margin: .4rem 0 0; color: var(--muted);}
.nk-exam-attempt-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem;
  padding: .7rem .95rem; margin-block: 0 1rem;
  border: 1px solid var(--line); border-radius: .75rem; background: var(--surface);
}
.nk-exam-attempt-actions > div {margin-inline-end: auto;}
.nk-exam-attempt-actions p {margin: 0; color: var(--muted);}
.nk-exam-attempt-actions > div p {font-size: .8rem;}
.nk-exam-history-group + .nk-exam-history-group {margin-block-start: 1.5rem;}
.nk-exam-history-group h3 {margin: 0 0 .55rem;}
.nk-exam-history-list {display: grid; gap: .55rem; list-style: none; margin: 0; padding: 0;}
.nk-exam-history-list > li {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem;
  margin: 0; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface);
}
.nk-exam-history-list > li > div {display: grid; flex: 1 1 8rem; gap: .15rem;}
.nk-exam-history-list :is(time,span) {color: var(--muted); font-size: .82rem;}
.nk-exam-intro, .nk-exam-result {border: 1px solid var(--line); border-inline-start: 4px solid #208876; border-radius: .75rem; background: var(--surface); padding: clamp(1rem, 3vw, 1.8rem); margin-block: 1rem;}
.nk-exam-intro h2, .nk-exam-result h2 {margin-top: 0;}
.nk-exam-result-tools {margin-block: 1rem;}
.nk-exam-intro > ul {padding-inline-start: 1.15rem; margin-block: 1rem 1.4rem;}
.nk-exam-intro > [role="status"]:empty {display: none;}
.nk-exam-workspace {display: grid; grid-template-columns: minmax(0,1fr) minmax(14rem,17rem); align-items: start; gap: 1rem;}
.nk-exam-workspace > form {grid-area: 1 / 1; min-width: 0; margin: 0;}
.nk-exam-overview {
  grid-area: 1 / 2; position: sticky; top: calc(var(--nk-exam-header, var(--nk-header-height, 92px)) + .65rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; min-width: 0;
}
.nk-exam-toolbar {display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem .6rem; padding: .85rem; border-bottom: 1px solid var(--line);}
.nk-exam-clock {display: grid; line-height: 1.2;}
.nk-exam-clock span {font-size: .73rem; color: var(--muted);}
.nk-exam-clock strong {font-size: 1.65rem; font-variant-numeric: tabular-nums;}
.nk-exam-status {width: 100%; font-size: .72rem; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere;}
.nk-exam-status:empty {display: none;}
.nk-exam-nav {padding: .85rem;}
.nk-exam-nav-head {display: flex; justify-content: space-between; gap: .4rem; font-size: .82rem;}
.nk-exam-nav-head > span {color: var(--muted); font-variant-numeric: tabular-nums;}
.nk-exam-nav progress {width: 100%; height: .4rem; margin: .45rem 0 .65rem; accent-color: var(--exam-accent); display: block;}
.nk-exam-numbers {display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .3rem;}
.nk-portal .nk-exam-numbers a {
  display: grid; place-items: center; min-width: 0; min-height: 44px; border: 1px solid var(--line);
  border-radius: .45rem; font-size: .83rem; font-weight: 700; color: var(--ink); background: var(--bg); text-decoration: none;
}
.nk-portal .nk-exam-numbers a:is(:hover,:focus-visible) {border-color: var(--exam-accent);}
.nk-portal .nk-exam-numbers .is-answered {color: var(--exam-ink); background: var(--exam-tint); border-color: var(--exam-line);}
.nk-portal .nk-exam-numbers a[aria-current="location"] {box-shadow: inset 0 0 0 2px var(--exam-accent);}
.nk-portal .nk-exam .nk-exam-task {
  display: block; min-width: 0; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface);
  margin: 0 0 .9rem; padding: clamp(.85rem,3.25vw,1.5rem); scroll-margin-top: 1rem;
}
.nk-portal .nk-exam .nk-exam-task:target {border-color: #208876;}
.nk-exam-task-head {display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem;}
.nk-portal .nk-exam-task-head h2 {font-size: 1.17rem; line-height: 1.2; margin: 0;}
.nk-exam-task-head > span {background: var(--exam-tint); color: var(--exam-ink); border: 1px solid var(--exam-line); border-radius: .35rem; padding: .1rem .45rem; font-weight: 700; font-size: .73rem;}
.nk-exam-task .nk-exam-copy {white-space: pre-wrap; overflow-wrap: anywhere; margin: .4rem 0 .9rem; line-height: 1.6;}
.nk-exam-task > summary {cursor: pointer; font-weight: 700; padding-block: .2rem;}
.nk-exam-review {margin-block-start: .75rem;}
.nk-exam-review-frame {display: block; width: 100%; min-height: 25rem; border: 0; margin-block-start: .75rem;}
.nk-exam-review-frame[hidden] {display: none;}
.nk-exam-task figure {margin: .65rem 0 1rem;}
.nk-exam-task img {display: block; width: auto; max-width: 100%; height: auto; background: #fff; padding: .35rem; border-radius: .4rem;}
.nk-exam-task figcaption {color: var(--muted); margin-top: .4rem; font-size: .78rem;}
.nk-exam-task label[for] {display: block; font-weight: 700; font-size: .85rem; margin-block-end: .4rem;}
.nk-portal .nk-exam-task textarea {
  display: block; width: 100%; max-width: 100%; padding: .7rem; background: var(--bg);
  color: var(--ink); border: 1px solid var(--line); border-radius: .5rem; resize: vertical; font: inherit;
}
.nk-exam-choices {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem;}
.nk-portal .nk-exam-choice {
  display: flex; align-items: center; gap: .55rem; min-height: 44px; min-width: 0; padding: .5rem .65rem;
  cursor: pointer; border: 1px solid var(--line); border-radius: .5rem; background: var(--bg); color: var(--ink);
}
.nk-exam-choice > input {flex: 0 0 auto; accent-color: var(--exam-accent); margin: 0;}
.nk-exam-choice > span:last-child {overflow-wrap: anywhere;}
.nk-exam-choice-letter {font-size: .73rem; font-weight: 800; color: var(--muted);}
.nk-portal .nk-exam-choice:is(:hover,:focus-within) {border-color: #208876;}
.nk-portal .nk-exam-choice:has(:checked) {background: var(--exam-tint); border-color: #208876; color: var(--exam-ink);}
.nk-exam-choice:has(:checked) .nk-exam-choice-letter {color: var(--exam-ink);}
.nk-exam-clear {border: 0; background: none; color: var(--muted); text-decoration: underline; font: inherit; font-size: .78rem; cursor: pointer; min-height: 44px; padding: 0 .2rem;}
.nk-exam-finish {display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; padding-block: .4rem;}
.nk-exam :is(a,button,input,textarea):focus-visible {outline: 2px solid #208876; outline-offset: 2px;}
@media (max-width: 780px) {
  .nk-exam-workspace {display: block;}
  .nk-exam-overview {display: contents;}
  .nk-exam-toolbar {position: sticky; z-index: 4; top: var(--nk-exam-header,var(--nk-header-height,76px)); background: var(--surface); border: 1px solid var(--line); border-radius: .55rem; margin-bottom: .6rem;}
  .nk-exam-clock {display: flex; align-items: baseline; gap: .5rem;}
  .nk-exam-clock strong {font-size: 1.35rem;}
  .nk-exam-nav {border: 1px solid var(--line); background: var(--surface); border-radius: .65rem; margin-bottom: .8rem;}
  .nk-portal .nk-exam .nk-exam-task {scroll-margin-top: 4.5rem;}
}
@media (max-width: 530px) {
  .nk-exam-choices {grid-template-columns: minmax(0,1fr);}
}

.nk-exam-sketch{margin-top:1rem}
.nk-exam-sketch p{font-size:.84rem;color:var(--muted)}
.nk-exam-sketch-svg{display:block;max-width:100%;height:auto;border:1px solid #9acfc2;border-radius:.5rem;background:#fff}
.nk-exam-sketch [data-exam-sketch-surface]{cursor:crosshair;touch-action:none}
.nk-exam-sketch button+button{margin-inline-start:.7rem}
