/*! © 2026 Cengiz Ilerler. All rights reserved. https://cengiz.ilerler.info/ */
.tool-box.kp { width: 100%; max-width: none; padding: 0; overflow: hidden; }
.kp [hidden] { display: none !important; }
.kp-sp { flex: 1; }
.kp-mu { color: var(--mist); }
.kp-lhead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.kp-f { display: flex; align-items: center; gap: 10px; }
.kp-prog { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--mist); font: 400 13px/1 var(--sans); white-space: nowrap; }
.kp-bar2 { width: 140px; height: 6px; border-radius: 3px; background: var(--tide); overflow: hidden; }
.kp-bar2 i { display: block; height: 100%; width: 0; background: var(--seaglass); transition: width .3s; }
.kp-list { list-style: none; margin: 0; padding: 6px 0; }
.kp-list li { border-bottom: 1px solid var(--hair); }
.kp-list li:last-child { border-bottom: 0; }
.kp-list a { display: grid; grid-template-columns: 22px 30px minmax(0, 1fr) 84px minmax(0, 240px); align-items: center; gap: 14px; padding: 13px 22px; color: inherit; text-decoration: none; transition: background .15s; }
.kp-list a:hover, .kp-list a:focus-visible { background: rgba(98, 207, 224, .05); outline: none; }
.kp-list a:hover .kp-name > span { color: var(--sea); }
.kp-st { width: 20px; height: 20px; }
.kp-st svg { width: 20px; height: 20px; fill: none; stroke: #3E5668; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kp-st .kp-st-ok, .kp-st .kp-st-try { display: none; }
.kp-st.is-done svg { stroke: var(--seaglass); } .kp-st.is-done .kp-st-ok { display: inline; }
.kp-st.is-try svg { stroke: var(--amber); } .kp-st.is-try .kp-st-try { display: inline; }
.kp-n { color: var(--mist); font: 500 12.5px/1 var(--mono); }
.kp-name { color: var(--foam); font: 500 15px/1.3 var(--sans); }
.kp-name > span { transition: color .15s; }
.kp-name small { display: block; margin-top: 3px; color: var(--mist); font: 400 13px/1.4 var(--sans); }
.kp-topics { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.kp-topics span { padding: 3px 9px; border-radius: 999px; background: var(--tide); color: var(--mist); font: 500 11.5px/1.3 var(--sans); white-space: nowrap; }
.kp-none { margin: 0; padding: 28px 22px; color: var(--mist); text-align: center; }
.kp-whyrow { margin: 0; padding: 12px 22px 16px; border-top: 1px solid var(--line); text-align: right; }
.kp-why { padding: 4px 0; border: 0; background: none; color: var(--mist); font: 500 13px/1.3 var(--sans); text-decoration: underline; text-decoration-color: var(--hair-3); text-underline-offset: 3px; cursor: pointer; }
.kp-why:hover { color: var(--sea); text-decoration-color: currentColor; }
.kp-lv { white-space: nowrap; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.kp-lv.easy { color: var(--seaglass); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--seaglass) 45%, transparent); }
.kp-lv.med { color: var(--amber); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 45%, transparent); }
.kp-lv.hard { color: var(--coral); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--coral) 45%, transparent); }
.kp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.kp-back { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 10px; border: 1px solid var(--hair-3); border-radius: 999px; color: var(--foam); font: 500 14px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s; }
.kp-back:hover, .kp-back:focus-visible { border-color: var(--sea); color: var(--sea); outline: none; }
.kp-back svg, .kp-reset svg, .kp-step svg, .kp-clock svg, .kp-fmt svg, .kp-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kp-nav { display: inline-flex; align-items: center; gap: 4px; }
.kp-step { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--mist); text-decoration: none; transition: background .15s, color .15s; }
.kp-step:hover, .kp-step:focus-visible { background: var(--tide); color: var(--foam); outline: none; }
.kp-step.is-off { opacity: .3; pointer-events: none; }
.kp-of { color: var(--mist); font: 500 12.5px/1 var(--mono); white-space: nowrap; }
.kp-title { margin: 0 0 0 4px; font: 400 22px/1.2 var(--serif); color: var(--foam); letter-spacing: -.01em; }
.kp-tags { display: inline-flex; gap: 8px; }
.kp-slot { display: contents; }
.kp-brk { display: none; }
.kp-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; margin-left: auto; }
.kp-clock { display: inline-flex; align-items: center; gap: 6px; padding: 0 13px 0 11px; font-variant-numeric: tabular-nums; }
.kp-clock i { display: none; font-style: normal; line-height: 0; }
.kp-clock[data-state="run"] .i-run, .kp-clock:is([data-state="idle"], [data-state="pause"]) .i-pause, .kp-clock[data-state="done"] .i-done { display: inline-flex; }
.kp-clock span { min-width: 5ch; font: 500 13px/1 var(--mono); letter-spacing: .02em; }
.kp-clock[data-state="idle"] svg { stroke: var(--sea); fill: var(--sea); }
.kp-clock[data-state="run"] { border-color: color-mix(in srgb, var(--sea) 60%, transparent); background: color-mix(in srgb, var(--sea) 10%, transparent); color: var(--foam); }
.kp-clock[data-state="run"] svg { stroke: var(--sea); }
.kp-clock[data-state="pause"] { border-color: color-mix(in srgb, var(--amber) 60%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); color: var(--amber); }
.kp-clock[data-state="pause"] svg { fill: currentColor; }
.kp-clock[data-state="done"] { border-color: color-mix(in srgb, var(--seaglass) 60%, transparent); background: color-mix(in srgb, var(--seaglass) 10%, transparent); color: var(--seaglass); cursor: default; }
.kp-clock:is([data-state="run"], [data-state="pause"]):hover { border-color: currentColor; }
.kp-clock[data-state="done"]:hover { border-color: color-mix(in srgb, var(--seaglass) 60%, transparent); color: var(--seaglass); }
.kp-ic { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--mist); cursor: pointer; }
.kp-ic:hover { background: var(--tide); color: var(--foam); }
.kp-langs button { padding: 6px 12px; }
.kp-langs .kp-la { display: none; }
.kp-reset, .kp-fmt { display: inline-flex; align-items: center; gap: 6px; }
.kp-fmt.is-busy { opacity: .5; }
.kp-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); min-height: 660px; }
.kp-left { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.kp-right { display: flex; flex-direction: column; min-width: 0; min-height: 0; container-type: inline-size; }
@container (max-width: 640px) { .kp-saved span, .kp-fmt span { display: none; } }
.kp-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; padding: 0 22px; border-bottom: 1px solid var(--hair); }
.kp-tabs [role="tab"] { position: relative; padding: 14px 0 12px; border: 0; background: none; color: var(--mist); font: 500 14px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.kp-tabs [role="tab"]:hover { color: var(--foam); }
.kp-tabs [role="tab"][aria-selected="true"] { color: var(--foam); }
.kp-tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--foam); }
.kp-tabs .n { margin-left: 6px; color: var(--mist); font: 500 12px/1 var(--mono); }
.kp-tabs .n:empty { display: none; }
.kp-wand { display: inline-flex; align-items: center; gap: 7px; height: 30px; margin: 6px 0; padding: 0 13px 0 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sea) 55%, transparent); background: color-mix(in srgb, var(--sea) 10%, transparent); color: var(--sea); font: 500 13px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.kp-wand:hover { background: color-mix(in srgb, var(--sea) 20%, transparent); }
.kp-wand svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kp-wand[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: var(--abyss); }
.kp-split { display: none; position: relative; background: transparent; touch-action: none; outline: none; }
.kp-split::before { content: ""; position: absolute; background: var(--line); transition: background .15s; }
.kp-split::after { content: ""; position: absolute; border-radius: 3px; background: var(--hair-3); opacity: 0; transition: opacity .15s, background .15s; }
.kp-split:hover::before, .kp-split:focus-visible::before, .kp-split.is-drag::before { background: var(--sea); }
.kp-split:hover::after, .kp-split:focus-visible::after, .kp-split.is-drag::after { opacity: 1; background: var(--sea); }
@media (min-width: 961px) {
  .kp-pv:not([hidden]) { display: flex; flex-direction: column; height: clamp(620px, calc(100vh - var(--nav-h) - 28px), 1080px); }
  .kp-main { flex: 1 1 0; min-height: 0; grid-template-columns: minmax(var(--kp-lmin, 0px), var(--kp-l, 42%)) 9px minmax(0, 1fr); }
  .kp-split { display: block; }
  .kp-split-v { cursor: col-resize; }
  .kp-split-v::before { left: 4px; top: 0; bottom: 0; width: 1px; }
  .kp-split-v::after { left: 3px; top: 50%; width: 3px; height: 36px; margin-top: -18px; }
  .kp-split-h { flex: none; height: 9px; cursor: row-resize; }
  .kp-split-h::before { top: 4px; left: 0; right: 0; height: 1px; }
  .kp-split-h::after { top: 3px; left: 50%; height: 3px; width: 36px; margin-left: -18px; }
  .kp-read { min-height: 0; }
  .kp-right > .kp-ed { flex: 0 0 var(--kp-edh, 50%); min-height: 120px; }
  .kp-right > .kp-ed .cm-editor { height: 100%; }
  .kp-right > .kp-res { flex: 1 1 0; min-height: 0; overflow: auto; }
  .kp-right > .kp-res .kp-out { min-height: 0; }
  .kp-brk { display: block; flex: 0 0 100%; height: 0; }
  .kp-bar .kp-acts { padding: 0; border: 0; background: none; }
  .kp-bar .kp-acts, .kp-bar .kp-ctl { display: contents; }
  .kp-bar .kp-langs { order: 10; } .kp-bar .kp-saved { order: 11; }
  .kp-bar .kp-reset { order: 20; margin-left: auto; } .kp-bar .kp-clock { order: 21; } .kp-bar .kp-fmt { order: 22; }
}
@media (min-width: 961px) and (max-width: 1279px) {
  .kp-bar .kp-saved span, .kp-bar .kp-fmt span { display: none; }
}
@media (min-width: 961px) and (max-width: 1023px) {
  .kp-reset span { display: none; }
}
.kp-read { flex: 1 1 auto; padding: 20px 22px 24px; overflow: auto; font: 400 15px/1.6 var(--sans); color: var(--body); }
.kp-read:focus-visible { outline: 2px solid var(--sea); outline-offset: -2px; }
.kp-nocopy, .kp-nocopy * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.kp-read p { margin: 0 0 14px; }
.kp-read code { padding: 1px 6px; border-radius: 6px; background: var(--tide); font: 500 13px/1.4 var(--mono); color: var(--foam); }
.kp-read strong { color: var(--foam); font-weight: 600; }
.kp-read h3 { margin: 22px 0 10px; font: 600 11px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.kp-read > h3:first-child { margin-top: 0; }
.kp-read ul { margin: 0 0 8px; padding-left: 18px; }
.kp-read li { margin: 0 0 6px; }
.kp-ex { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--trench); overflow: hidden; }
.kp-ex .h { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--hair); font: 500 11.5px/1.3 var(--mono); color: var(--mist); }
.kp-ex pre { margin: 0; padding: 10px 12px; font: 400 12.5px/1.6 var(--mono); color: var(--body); white-space: pre; overflow-x: auto; }
.kp-ex .out { border-top: 1px dashed var(--hair-2); color: var(--seaglass); }
.kp-job { display: flex; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--amber) 9%, transparent); color: var(--foam); font: 400 14px/1.5 var(--sans); }
.kp-job svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kp-hint { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: var(--trench); border: 1px solid var(--line); }
.kp-hint h3 { margin: 0 0 6px; }
.kp-hint p { margin: 0; }
.kp-reveal { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; border: 1px dashed var(--hair-3); border-radius: 12px; }
.kp-reveal p { margin: 0; color: var(--mist); }
.kp-anscode { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--trench); overflow: hidden; }
.kp-anscode .h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--hair); color: var(--mist); font: 600 10.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.kp-anscode pre { margin: 0; padding: 12px 14px; font: 400 13px/1.7 var(--mono); color: var(--body); white-space: pre; overflow-x: auto; }
.kp-read .kp-tries { list-style: none; margin: 0; padding: 0; }
.kp-tries li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.kp-tries .kp-tw { color: var(--mist); }
.kp-tries .kp-tl { color: var(--foam); }
.kp-tries li.ok .kp-tk { color: var(--seaglass); }
.kp-tries li.no .kp-tk { color: var(--coral); }
.kp-ed { position: relative; flex: 1 1 auto; display: flex; min-height: 340px; background: var(--trench); }
.kp-edwait { margin: auto; color: var(--mist); font-size: 14px; }
.kp-ed .cm-editor { flex: 1 1 auto; min-width: 0; height: auto; background: transparent; color: var(--body); font: 400 13.5px/1.75 var(--mono); }
.kp-ed .cm-editor.cm-focused { outline: none; }
.kp-ed .cm-scroller { font-family: var(--mono); line-height: 1.75; }
.kp-ed .cm-content { padding: 14px 0; caret-color: var(--foam); }
.kp-ed .cm-line { padding: 0 16px; }
.kp-ed .cm-gutters { background: transparent; border: 0; color: #3E5668; }
.kp-ed .cm-lineNumbers .cm-gutterElement { padding: 0 10px 0 14px; min-width: 32px; }
.kp-ed .cm-activeLine { background: rgba(238, 244, 246, .035); }
.kp-ed .cm-activeLineGutter { background: transparent; color: var(--mist); }
.kp-ed .cm-cursor { border-left: 2px solid var(--foam); }
.kp-ed .cm-selectionBackground, .kp-ed .cm-focused .cm-selectionBackground, .kp-ed .cm-content ::selection { background: rgba(98, 207, 224, .22) !important; }
.kp-ed .cm-matchingBracket { background: rgba(98, 207, 224, .18); color: var(--foam) !important; outline: 1px solid rgba(98, 207, 224, .4); }
.kp-ed .cm-nonmatchingBracket { color: var(--coral) !important; }
.kp-ed .cm-tooltip { border: 1px solid var(--line); border-radius: 10px; background: var(--deep); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); overflow: hidden; }
.kp-ed .cm-tooltip-autocomplete > ul { font: 400 13px/1 var(--mono); max-height: 260px; }
.kp-ed .cm-tooltip-autocomplete > ul > li { padding: 6px 10px !important; color: var(--body); }
.kp-ed .cm-tooltip-autocomplete > ul > li[aria-selected] { background: rgba(98, 207, 224, .14); color: var(--foam); }
.kp-ed .cm-completionIcon { opacity: .7; }
.kp-ed .cm-completionMatchedText { color: var(--sea); text-decoration: none; }
.kp-ed .cm-completionDetail { margin-left: 10px; color: #6F8797; font-style: normal; }
.kp-ed .cm-tooltip-autocomplete > ul { max-width: min(640px, 90vw); }
.kp-ed .cm-tooltip-autocomplete .cm-completionDetail { overflow: hidden; text-overflow: ellipsis; }
.kp-sq-err, .kp-sq-warn { text-decoration: underline wavy; text-decoration-skip-ink: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.kp-sq-err { text-decoration-color: var(--coral); }
.kp-sq-warn { text-decoration-color: var(--amber); }
.kp-ed .kp-tip { max-width: min(560px, 85vw); padding: 8px 12px; }
.kp-tip p { margin: 0; font: 400 12.5px/1.45 var(--mono); color: var(--body); }
.kp-tip p + p { margin-top: 6px; }
.kp-tip p.error::before, .kp-tip p.warning::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; }
.kp-tip p.error::before { background: var(--coral); }
.kp-tip p.warning::before { background: var(--amber); }
.kp-t-k { color: var(--dusk); } .kp-t-s { color: var(--seaglass); } .kp-t-n { color: var(--amber); } .kp-t-f { color: var(--sea); }
.kp-t-t { color: #E6D67A; } .kp-t-c { color: #6F8797; font-style: italic; } .kp-t-p { color: var(--body); } .kp-t-d { color: var(--foam); }
.kp-t-o { color: var(--mist); } .kp-t-bad { color: var(--coral); }
.kp-acts { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--deep); }
.kp-saved { display: inline-flex; white-space: nowrap; align-items: center; gap: 7px; color: var(--mist); font: 400 13px/1 var(--sans); transition: color .3s; }
.kp-saved svg { width: 15px; height: 15px; fill: none; stroke: var(--seaglass); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kp-saved.is-on { color: var(--foam); }
.kp-res { padding: 0 18px 18px; }
.kp-reshead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; border-bottom: 1px solid var(--hair); background: var(--deep); }
.kp-res .kp-tabs { padding: 0; border-bottom: 0; }
.kp-runs { display: flex; align-items: center; gap: 10px; margin-left: auto; padding: 6px 0; }
.kp-runs .btn { height: 32px; padding: 0 18px; font-size: 13px; }
@media (min-width: 961px) { .kp-right > .kp-res .kp-reshead { position: sticky; top: 0; z-index: 1; } }
.kp-dl { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--sea) 35%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--sea) 7%, transparent); }
.kp-dl > svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--sea); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kp-dl p { flex: 1; margin: 0; color: var(--body); font: 400 14px/1.5 var(--sans); }
.kp-dl .pill-sm { flex: none; }
@media (max-width: 640px) { .kp-dl { flex-wrap: wrap; } .kp-dl p { flex-basis: calc(100% - 32px); } }
.kp-fail.kp-con { border-color: var(--line); }
.kp-fail.kp-con .h { background: var(--tide); }
.kp-fail.kp-con .h b { color: var(--foam); }
.kp-fail.kp-con dl { grid-template-columns: max-content minmax(0, 1fr); }
.kp-tabs .kp-delall { margin: 6px 0; }
.kp-tabs .kp-delall:hover, .kp-tries [data-kp-del]:hover { color: var(--coral); }
.kp-tries [data-kp-try]:hover { color: var(--sea); }
.kp-out { min-height: 120px; }
.kp-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 12px; font: 500 15px/1.3 var(--sans); color: var(--foam); }
.kp-sum .bad { color: var(--coral); }
.kp-sum .meta { margin-left: auto; color: var(--mist); font: 400 12.5px/1.3 var(--mono); }
.kp-pass { color: var(--seaglass); }
.kp-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--hair-3); border-top-color: var(--sea); animation: kp-spin .8s linear infinite; }
@keyframes kp-spin { to { transform: rotate(360deg); } }
.kp-err { margin: 0 0 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--coral) 45%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--coral) 8%, transparent); color: var(--foam); font: 400 12.5px/1.6 var(--mono); white-space: pre-wrap; }
.kp-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.kp-dots button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; font: 500 11px/1 var(--mono); cursor: pointer; }
.kp-dots .ok { background: color-mix(in srgb, var(--seaglass) 16%, transparent); color: var(--seaglass); }
.kp-dots .no { background: var(--coral); color: var(--abyss); }
.kp-dots .skip { background: var(--tide); color: var(--mist); }
.kp-dots .on { box-shadow: 0 0 0 2px var(--abyss), 0 0 0 4px var(--foam); }
.kp-fail { margin-bottom: 12px; border: 1px solid color-mix(in srgb, var(--coral) 45%, transparent); border-radius: 10px; overflow: hidden; }
.kp-fail.ok { border-color: color-mix(in srgb, var(--seaglass) 35%, transparent); }
.kp-fail .h { display: flex; gap: 6px; padding: 9px 12px; background: color-mix(in srgb, var(--coral) 10%, transparent); color: var(--foam); font: 500 13px/1.3 var(--sans); }
.kp-fail.ok .h { background: color-mix(in srgb, var(--seaglass) 8%, transparent); }
.kp-fail .h b { color: var(--coral); font-weight: 600; }
.kp-fail.ok .h b { color: var(--seaglass); }
.kp-okw { margin-left: auto; color: var(--seaglass); }
.kp-fail dl { margin: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); }
.kp-fail dt { padding: 8px 12px; color: var(--mist); font: 600 10.5px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; border-top: 1px solid var(--hair); }
.kp-fail dd { margin: 0; padding: 8px 12px; border-top: 1px solid var(--hair); font: 400 12.5px/1.6 var(--mono); color: var(--body); white-space: pre; overflow-x: auto; }
.kp-fail dd.got { color: var(--coral); white-space: pre-wrap; }
.kp-fail dd.want { color: var(--seaglass); }
.kp-solved { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--seaglass) 12%, transparent); color: var(--foam); }
.kp-solved b { color: var(--seaglass); font: 600 15px/1.2 var(--sans); }
.kp-solved > span { font: 400 14px/1.3 var(--sans); color: var(--body); }
.kp-solved .btn { height: 32px; padding: 0 16px; font-size: 13px; }
@media (max-width: 960px) {
  .kp-main { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .kp-left { border-bottom: 1px solid var(--line); }
  .kp-read { max-height: none; }
  .kp-list a { grid-template-columns: 22px 30px minmax(0, 1fr) auto; }
  .kp-topics { display: none; }
}
@media (max-width: 640px) {
  .kp-lhead { padding: 14px 16px; }
  .kp-prog { margin-left: 0; width: 100%; }
  .kp-bar2 { flex: 1; }
  .kp-list a { padding: 12px 16px; gap: 10px; grid-template-columns: 20px minmax(0, 1fr) auto; }
  .kp-list .kp-n { display: none; }
  .kp-bar { padding: 12px 14px; }
  .kp-title { order: 3; flex: 1 1 100%; margin: 0; font-size: 20px; }
  .kp-tags { order: 4; }
  .kp-ctl { display: contents; }
  .kp-clock { order: 5; }
  .kp-langs { order: 6; }
  .kp-langs button { padding: 6px 10px; }
  .kp-langs .kp-ln { display: none; }
  .kp-langs .kp-la { display: inline; }
  .kp-reset { order: 7; }
  .kp-reset span, .kp-fmt span { display: none; }
  .kp-tabs { gap: 20px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .kp-read { padding: 16px; }
  .kp-ed { min-height: 300px; }
  .kp-acts { padding: 10px 14px; }
  .kp-acts .kp-saved span { display: none; }
  .kp-res { padding: 0 14px 14px; }
  .kp-fail dl, .kp-fail.kp-con dl { grid-template-columns: minmax(0, 1fr); }
  .kp-fail dt { padding-bottom: 0; border-bottom: 0; }
  .kp-fail dd { border-top: 0; padding-top: 4px; }
}
@media (min-width: 961px) {
  html.tool-full .tool-box.kp { display: flex; flex-direction: column; }
  html.tool-full .kp-pv:not([hidden]) { flex: 1 1 auto; height: auto; min-height: 0; }
  html.tool-full .kp-lv-list:not([hidden]) { flex: 1 1 auto; min-height: 0; overflow: auto; }
}
html.kp-ov-on { overflow: hidden; }
.kp-ov { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--abyss); overflow-y: auto; transition: opacity .5s; }
.kp-ov.is-out { opacity: 0; pointer-events: none; }
.kp-ti-skip { position: absolute; top: 22px; right: 28px; padding: 6px 10px; border: 0; background: none; color: var(--mist); font: 500 13px/1 var(--sans); cursor: pointer; }
.kp-ti-skip:hover { color: var(--foam); }
.kp-ti { width: min(760px, 100%); margin: auto 0; font: 400 clamp(13px, 1.2vw, 16px)/1.75 var(--mono); color: var(--body); }
.kp-ti p { margin: 0; min-height: 1.75em; white-space: pre-wrap; }
.kp-ti .pr::before { content: "$ "; color: var(--seaglass); }
.kp-ti .cmd { color: var(--foam); }
.kp-ti .mu { color: var(--mist); }
.kp-ti .ok { color: var(--seaglass); }
.kp-ti .q::before { content: "? "; color: var(--seaglass); font-weight: 600; }
.kp-ti .q b { color: var(--foam); font-weight: 600; }
.kp-ti .q .ans { margin-left: 1ch; color: var(--sea); }
.kp-ti .opt { padding-left: 4ch; color: var(--mist); cursor: pointer; outline: none; }
.kp-ti .opt::before { content: "  "; }
.kp-ti .opt.on { color: var(--sea); }
.kp-ti .opt.on::before { content: "› "; }
.kp-ti .hint { padding-left: 6ch; color: #5E7486; font-size: .85em; }
.kp-ti .msg { padding-left: 2ch; max-width: 66ch; color: var(--body); font-family: var(--sans); font-size: 1.06em; line-height: 1.6; margin-top: .6em; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.kp-ti .msg.in { opacity: 1; transform: none; }
.kp-ti .car { display: inline-block; width: .6ch; height: 1.15em; vertical-align: -3px; background: var(--foam); animation: kp-blink 1s steps(1) infinite; }
@keyframes kp-blink { 50% { opacity: 0; } }
.kp-ti .warn { color: var(--amber); }
.kp-ti .err { color: var(--coral); }
.kp-ti .fail { color: var(--coral); font-weight: 600; }
.kp-ti .thx { color: var(--foam); }
.kp-ti .q2 { margin-top: 1em; }
@media (prefers-reduced-motion: reduce) {
  .kp-ov, .kp-ti .msg { transition: none; }
  .kp-ti .car, .kp-spin { animation: none; }
}
