/* ==========================================================================
   WEHATESKIDS // SKID TERMINAL — full-screen synthetic training workstation
   Dedicated .whk-* class system. Enters via #atkEnterPc → whkPc.enter().
   Palette: near-black, crimson/dark red, off-white, muted gray. No purple.
   100% browser-state fiction. No network I/O of any kind.
   Structurally: fixed overlay → boot → desktop wallpaper + icons + windows
   + absolute bottom taskbar (always on screen) + start menu + disconnect.
   ========================================================================== */

.whk-pc {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: #050506;
  color: #d9d9de;
  font-family: var(--font, "Inter", system-ui, sans-serif);
  overflow: hidden;
  user-select: none;
}
body.whk-locked {
  overflow: hidden;
}

/* ---------- boot sequence ---------- */
.whk-boot {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #040405;
  transition: opacity 380ms ease;
}
.whk-boot.gone { opacity: 0; pointer-events: none; }
.whk-boot-in {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: clamp(12px, 1.8vw, 16px);
  letter-spacing: 0.18em;
  color: #a9a9b2;
}
.whk-boot-in span { opacity: 0; color: #a9a9b2; }
.whk-boot-in span.on { opacity: 1; transition: opacity 140ms linear; }
.whk-boot-in span.what { color: #d9d9de; }
.whk-boot-in .ok { color: #54d17a; }
.whk-boot-watermark {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: #41414a;
}

/* ---------- desktop ---------- */
.whk-desktop {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 46px;
  overflow: hidden;
  background:
    radial-gradient(1500px 760px at 72% -10%, rgba(193, 18, 31, 0.16), transparent 60%),
    radial-gradient(1000px 600px at 6% 92%, rgba(193, 18, 31, 0.09), transparent 55%),
    #050506;
}
.whk-wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.whk-wall-img {
  width: 78%;
  max-width: 1200px;
  height: 76%;
  max-height: 760px;
  object-fit: contain;
  opacity: 0.055;
  filter: grayscale(0.35) drop-shadow(0 0 60px rgba(193, 18, 31, 0.25));
  pointer-events: none;
}
.whk-wall-meta {
  position: absolute;
  right: 18px;
  bottom: 12px;
  text-align: right;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  line-height: 1.9;
  color: #4a4a54;
}
.whk-wall-meta::before {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin: 0 0 8px auto;
  background: linear-gradient(90deg, transparent, #6e1520);
}
.whk-watermark {
  position: absolute;
  right: 16px;
  top: 12px;
  z-index: 1;
  text-align: right;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  color: #41414a;
  line-height: 1.9;
  pointer-events: none;
}
.whk-watermark b { color: #5a1320; }

/* ---------- desktop icons ---------- */
.whk-desk-icons {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
}
.whk-desk-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 84px;
  height: 88px;
  padding: 9px 4px 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #c8c8cf;
  cursor: pointer;
}
.whk-desk-icon:hover { background: rgba(255, 255, 255, 0.045); }
.whk-desk-icon.is-selected {
  background: rgba(148, 32, 42, 0.18);
  box-shadow: inset 0 0 0 1px rgba(229, 56, 59, 0.35);
}
.whk-desk-icon:focus-visible { outline: none; box-shadow: inset 0 0 0 1px #e5383b; }
.whk-desk-ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #e9e9ef;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}
.whk-desk-ico svg { width: 42px; height: 42px; }
.whk-desk-icon.ic-skid .whk-desk-ico svg { filter: drop-shadow(0 0 7px rgba(229, 56, 59, 0.55)); }
.whk-desk-icon.ic-pc .whk-desk-ico svg { stroke-width: 1.5; }
.whk-desk-label {
  max-width: 82px;
  font-size: 0.67rem;
  letter-spacing: 0.035em;
  line-height: 1.3;
  text-align: center;
  color: #d4d4db;
  text-shadow: 0 1px 3px #000, 0 0 6px rgba(0, 0, 0, 0.8);
}

/* ---------- window manager ---------- */
.whk-wins {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}
.whk-win {
  position: absolute;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 220px;
  background: linear-gradient(180deg, #101014, #0a0a0e);
  border: 1px solid #2e2e38;
  border-radius: 7px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.55);
  transition: opacity 140ms linear;
}
.whk-win.is-focus { border-color: #52525f; box-shadow: 0 26px 76px rgba(0, 0, 0, 0.85), 0 2px 10px rgba(0, 0, 0, 0.6); }
.whk-win.is-max { top: 0 !important; left: 0 !important; width: 100% !important; height: calc(100% - 46px) !important; border-radius: 0; }
.whk-win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 6px 0 10px;
  background: linear-gradient(180deg, #1d1d25, #14141a);
  border-bottom: 1px solid #2a2a33;
  border-radius: 7px 7px 0 0;
  user-select: none;
  touch-action: none;
  cursor: default;
}
.whk-win.is-focus .whk-win-bar { background: linear-gradient(180deg, #23232d, #191920); }
@media (min-width: 821px) {
  .whk-win-bar { cursor: grab; }
}
.whk-win-bar.dragging { cursor: grabbing; }
.whk-win-appico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #e9e9ef;
  opacity: 0.95;
}
.whk-win-appico svg { width: 17px; height: 17px; }
.whk-win-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #9a9aa5;
  font-weight: 400;
}
.whk-win.is-focus .whk-win-title { color: #e3e3ea; font-weight: 500; }
.whk-win-ctrls { display: flex; gap: 4px; flex: 0 0 auto; }
.whk-win-ctrls button {
  width: 30px;
  height: 25px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: #9a9aa5;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 3px;
}
.whk-win-ctrls button:hover { background: rgba(229, 56, 59, 0.16); border-color: #7c1f29; color: #e5383b; }
.whk-win-ctrls button:focus-visible { outline: none; border-color: #e5383b; }
.whk-win-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px;
  background: linear-gradient(180deg, #0e0e13, #0a0a0e);
}
.whk-win-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  border: 0;
  background: transparent;
  cursor: nwse-resize;
  z-index: 3;
}
.whk-win-resize::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #5c5c68;
  border-bottom: 2px solid #5c5c68;
  border-radius: 0 0 2px 0;
  opacity: 0.6;
}
.whk-win.is-focus .whk-win-resize::after { border-color: #b06e74; opacity: 1; }

.whk-btn-back { display: none !important; }
.whk-back-word { display: none; }

/* ---------- start menu ---------- */
.whk-start {
  position: absolute;
  left: 6px;
  bottom: 52px;
  z-index: 70;
  width: 300px;
  max-width: calc(100vw - 12px);
  background: linear-gradient(180deg, #141419, #0c0c11);
  border: 1px solid #30303a;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
  display: none;
  flex-direction: column;
  padding: 8px;
}
.whk-start.open { display: flex; }
.whk-start-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 8px 12px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: #e3e3ea;
  font-weight: 600;
}
.whk-start-brand b { color: #e5383b; }
.whk-start-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #c8c8d0;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
}
.whk-start-item:hover { background: rgba(193, 18, 31, 0.14); border-color: #4a1c21; color: #f0f0f5; }
.whk-start-item:focus-visible { outline: none; border-color: #e5383b; }
.whk-start-item .whk-sico {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #e9e9ef;
}
.whk-start-item .whk-sico svg { width: 19px; height: 19px; }
.whk-start-sep { border-top: 1px solid #23232c; margin: 6px 6px; }
.whk-start-item.danger { color: #ef8b94; }
.whk-start-item.danger:hover { background: rgba(193, 18, 31, 0.2); border-color: #7c1f29; color: #ffb4ba; }

/* ---------- taskbar (absolute, always on screen) ---------- */
.whk-taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  background: linear-gradient(180deg, #121218, #0b0b10);
  border-top: 1px solid #26262e;
}
.whk-start-btn {
  height: 32px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #d9d9de;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.whk-start-btn:hover { background: rgba(255, 255, 255, 0.05); }
.whk-start-btn.open { background: rgba(193, 18, 31, 0.18); }
.whk-start-btn .whk-sq {
  width: 13px;
  height: 13px;
  display: inline-block;
  background: #c1121f;
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 7px rgba(229, 56, 59, 0.4);
}
.whk-start-word { letter-spacing: 0.14em; }

.whk-task-running {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.whk-task-btn {
  position: relative;
  height: 30px;
  max-width: 148px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #a8a8b2;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whk-task-btn:hover { background: rgba(255, 255, 255, 0.05); color: #d9d9de; }
.whk-task-btn.is-active { color: #ececef; background: rgba(193, 18, 31, 0.2); }
.whk-task-btn.is-active::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 1px;
  height: 2px;
  background: #e5383b;
  border-radius: 2px;
}
.whk-task-btn.is-min { opacity: 0.6; }

.whk-task-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.whk-task-act {
  height: 26px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid #26262e;
  border-radius: 4px;
  color: #a8a8b2;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.whk-task-act:hover { border-color: #55555f; color: #d9d9de; }
.whk-task-act.danger { color: #df7a83; border-color: #3a1a1e; }
.whk-task-act.danger:hover { background: rgba(193, 18, 31, 0.2); border-color: #7c1f29; color: #ffb4ba; }

.whk-task-tray {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid #23232b;
  flex: 0 0 auto;
}
.whk-tray-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #9a9aa5;
  border-radius: 4px;
  cursor: default;
}
.whk-tray-ico:hover { background: rgba(255, 255, 255, 0.05); }
.whk-tray-ico svg { width: 15px; height: 15px; }
.whk-task-clock {
  margin-left: 4px;
  padding: 0 6px;
  text-align: right;
  font-size: 0.64rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: #a5a5ae;
  font-variant-numeric: tabular-nums;
}
.whk-task-clock b { display: block; color: #d0d0d6; font-weight: 600; }

/* ---------- shared labels / panels ---------- */
.whk-k { font-size: 0.6rem; letter-spacing: 0.2em; color: #e5383b; margin: 0; }
.whk-dim { color: #8a8a93; }
.whk-mono { font-family: var(--mono, "JetBrains Mono", monospace); }
.whk-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.whk-field > span { font-size: 0.6rem; letter-spacing: 0.16em; color: #83838d; }
.whk-field > input, .whk-field > select {
  height: 30px;
  padding: 0 8px;
  background: #101016;
  border: 1px solid #30303a;
  border-radius: 4px;
  color: #e2e2e7;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.72rem;
}
.whk-field > input:focus, .whk-field > select:focus { outline: none; border-color: #e5383b; }
.whk-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .whk-grid2 { grid-template-columns: 1fr; } }
.whk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 0 16px;
  background: #16161d;
  border: 1px solid #2c2c34;
  border-radius: 4px;
  color: #d9d9de;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.whk-btn:hover { border-color: #b3121f; color: #ececef; }
.whk-btn:focus-visible { outline: none; border-color: #e5383b; }
.whk-btn.primary { background: #a61421; border-color: #7a0f19; color: #fff1f1; font-weight: 600; }
.whk-btn.primary:hover { background: #c1121f; border-color: #e5383b; }
.whk-btn.small { height: 26px; padding: 0 10px; font-size: 0.62rem; }
.whk-note { font-size: 0.64rem; line-height: 1.6; color: #777781; margin: 0; }

/* ---------- SKID launcher (local node info) ---------- */
.whk-skid { display: flex; flex-direction: column; gap: 10px; }
.whk-skid-h { margin: 0; font-size: 0.62rem; letter-spacing: 0.18em; color: #e5383b; }
.whk-skid-note { margin: 0; font-size: 0.66rem; color: #777781; line-height: 1.6; }
.whk-skid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #1f1f26;
  background: #0d0d13;
  border-radius: 4px;
}
.whk-skid-k { font-size: 0.62rem; letter-spacing: 0.16em; color: #83838d; }
.whk-skid-row b { font-size: 0.7rem; letter-spacing: 0.08em; color: #ececef; font-family: var(--mono, "JetBrains Mono", monospace); }
.whk-sm {
  height: 30px;
  padding: 0 14px;
  background: #16161d;
  border: 1px solid #30303a;
  border-radius: 4px;
  color: #d9d9de;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.whk-sm:hover { border-color: #b3121f; color: #ececef; }
.whk-skid-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- PuTTY window ---------- */
.whk-putty-cfg {
  display: flex;
  height: 100%;
  min-height: 0;
}
.whk-putty-rail {
  flex: 0 0 160px;
  background: #0d0d12;
  border-right: 1px solid #23232b;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.whk-putty-rail b {
  padding: 7px 10px;
  border-radius: 3px;
  background: rgba(193, 18, 31, 0.16);
  color: #ececef;
  border-left: 2px solid #e5383b;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.whk-putty-rail span {
  padding: 6px 10px;
  color: #70707a;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}
.whk-putty-cfgform {
  flex: 1;
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.whk-putty-title { margin: 0 0 4px; font-size: 0.74rem; letter-spacing: 0.14em; color: #ececef; font-weight: 600; }
.whk-putty-ctrls { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.whk-radio { display: flex; gap: 14px; align-items: center; font-size: 0.68rem; color: #b6b6bf; }
.whk-radio label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.whk-radio input { accent-color: #e5383b; }
.whk-putty-note { font-size: 0.62rem; color: #6d6d77; line-height: 1.6; max-width: 340px; margin: 0; }

/* ---------- terminal ---------- */
.whk-term {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #040405;
}
.whk-term-out {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 13px;
  line-height: 1.3;
  color: #d5d5db;
  scrollbar-width: thin;
  scrollbar-color: #3a3a42 #050507;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}
.whk-term-out::-webkit-scrollbar { width: 6px; }
.whk-term-out::-webkit-scrollbar-thumb { background: #3a3a42; }
.whk-term-line { margin: 0; min-height: 1.3em; }
.whk-term-line.red { color: #e5383b; }
.whk-term-line.acc { color: #54d17a; }
.whk-term-line.dim { color: #8a8a93; }
.whk-term-line.warn { color: #f0b24b; }
.whk-term-line.err { color: #ff6b6b; }
.whk-term-art {
  margin: 0;
  font-size: 13px;
  line-height: 1.28;
  color: #e8e8ee;
  letter-spacing: 0;
  white-space: pre;
  text-shadow: 0 0 16px rgba(193, 18, 31, 0.4);
}
.whk-term-form {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 6px 12px 8px;
  background: #040405;
}
.whk-term-p {
  flex: 0 0 auto;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 13px;
  line-height: 1.3;
  color: #e5383b;
  white-space: pre;
}
.whk-term-iptwrap {
  position: relative;
  flex: 1;
  min-width: 0;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 13px;
  line-height: 1.3;
}
.whk-term-in {
  position: absolute;
  inset: 0;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: transparent;
  caret-color: transparent;
  font: inherit;
}
.whk-term-echo { color: #e8e8ee; white-space: pre; }
.whk-term-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin: 2px 0 0 1px;
  background: #d9d9de;
  vertical-align: text-bottom;
  animation: whk-blink 1.06s steps(1) infinite;
}
@keyframes whk-blink { 50% { opacity: 0; } }

/* ---------- DSTAT window ---------- */
.whk-dstat-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
@media (max-width: 420px) { .whk-dstat-metrics { grid-template-columns: repeat(2, 1fr); } }
.whk-dstat-metric {
  border: 1px solid #23232c;
  background: #0d0d13;
  border-radius: 4px;
  padding: 8px 10px;
}
.whk-dstat-metric span { display: block; font-size: 0.58rem; letter-spacing: 0.16em; color: #83838d; }
.whk-dstat-metric b { display: block; margin-top: 3px; font-size: 0.92rem; color: #ececef; font-variant-numeric: tabular-nums; }
.whk-dstat-label { font-size: 0.58rem; letter-spacing: 0.2em; color: #54d17a; margin: 0 0 8px; }
.whk-dstat-label b { color: #e8e8ee; }
.whk-telemetry {
  border: 1px solid #23232c;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.whk-telemetry-head, .whk-telemetry-row {
  display: grid;
  grid-template-columns: 74px 1fr 1fr 1fr 0.9fr 0.9fr;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.62rem;
}
.whk-telemetry-head { color: #8a8a93; background: #0f0f16; border-bottom: 1px solid #23232c; letter-spacing: 0.08em; }
.whk-telemetry-row { color: #c4c4cb; border-bottom: 1px solid #16161c; }
.whk-telemetry-row:last-child { border-bottom: none; }
.whk-telemetry-scroll { max-height: 180px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a3a42 #0a0a0e; }
.whk-verdict {
  margin: 0;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.64rem;
  line-height: 1.6;
  color: #f0b24b;
  border: 1px solid #3a2a12;
  background: #161006;
  padding: 8px 10px;
  border-radius: 4px;
}

/* ---------- booter window ---------- */
.whk-booter-log {
  height: 130px;
  overflow-y: auto;
  margin: 12px 0;
  background: #07070a;
  border: 1px solid #23232c;
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.66rem;
  line-height: 1.7;
  color: #b8b8c0;
  scrollbar-width: thin;
  user-select: text;
}
.whk-booter-log .hit { color: #e5383b; }
.whk-booter-log .ok { color: #54d17a; }
.whk-booter-log .dim { color: #6d6d77; }
.whk-booter-status { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 4px; }
.whk-booter-status span { font-size: 0.62rem; letter-spacing: 0.16em; color: #83838d; }
.whk-booter-status b { font-size: 0.72rem; letter-spacing: 0.14em; color: #ececef; }
.whk-booter-status b.running { color: #e5383b; }
.whk-booter-status b.done { color: #54d17a; }
.whk-claim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.whk-claim-cell { border: 1px solid #23232c; border-radius: 4px; padding: 8px 10px; background: #0d0d13; }
.whk-claim-cell span { display: block; font-size: 0.58rem; letter-spacing: 0.16em; color: #83838d; }
.whk-claim-cell em { font-style: normal; display: block; margin-top: 3px; font-size: 0.8rem; font-family: var(--mono, "JetBrains Mono", monospace); color: #ececef; font-variant-numeric: tabular-nums; }
.whk-claim-cell.observed em { color: #54d17a; }
.whk-claim-notice {
  margin: 10px 0 0;
  font-size: 0.62rem;
  line-height: 1.65;
  color: #f0b24b;
  font-family: var(--mono, "JetBrains Mono", monospace);
}

/* ---------- notes / thispc / recycle ---------- */
.whk-notes-doc {
  background: #0f0f14;
  border: 1px solid #23232c;
  border-radius: 4px;
  padding: 14px;
}
.whk-notes-doc .whk-k { margin-bottom: 10px; }
.whk-notes-doc ul { margin: 0; padding-left: 16px; }
.whk-notes-doc li { font-size: 0.72rem; line-height: 1.8; color: #c0c0c8; }
.whk-filelist { list-style: none; margin: 0; padding: 0; border: 1px solid #23232c; border-radius: 4px; }
.whk-filelist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #16161c;
  font-size: 0.72rem;
  color: #c8c8d0;
}
.whk-filelist li:last-child { border-bottom: none; }
.whk-fileico { font-size: 0.6rem; font-weight: 800; color: #d9a8ab; width: 22px; text-align: center; }
.whk-empty { text-align: center; padding: 30px 10px; color: #6d6d77; font-size: 0.7rem; line-height: 1.8; }

/* ---------- disconnect overlay ---------- */
.whk-bye {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050506;
  opacity: 0;
  transition: opacity 260ms linear;
  pointer-events: none;
}
.whk-bye.show { opacity: 1; pointer-events: auto; }
.whk-bye p {
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: clamp(12px, 2vw, 16px);
  letter-spacing: 0.2em;
  color: #d9d9de;
}

/* ---------- responsive: mobile ---------- */
@media (max-width: 820px) {
  .whk-desktop { bottom: 46px; }
  .whk-desk-icons { left: 6px; top: 8px; gap: 2px; flex-direction: row; flex-wrap: wrap; padding: 4px; max-width: 100%; }
  .whk-desk-icon { width: 74px; height: 82px; padding: 8px 3px 5px; }
  .whk-desk-ico svg { width: 36px; height: 36px; }
  .whk-desk-ico { width: 40px; height: 40px; }
  .whk-desk-label { font-size: 0.62rem; max-width: 72px; }
  .whk-win {
    position: fixed !important;
    left: 4px !important;
    right: 4px !important;
    top: 4px !important;
    bottom: 50px !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 6px;
  }
  .whk-win.is-max { top: 2px !important; left: 4px !important; right: 4px !important; bottom: 50px !important; width: auto !important; height: auto !important; border-radius: 6px; }
  .whk-win-bar { cursor: default; }
  .whk-btn-back { display: inline-grid !important; }
  .whk-back-word { display: inline; }
  .whk-win-resize { display: none; }
  .whk-start { left: 4px; right: 4px; bottom: 52px; width: auto; max-width: none; }
  .whk-term-out, .whk-term-p, .whk-term-iptwrap { font-size: 12px; }
  .whk-putty-rail { flex-basis: 108px; }
  .whk-taskbar { padding: 0 6px; gap: 4px; }
  .whk-start-word { display: none; }
  .whk-task-actions .whk-task-act { display: none; }
}
/* ---------- booter training lab ---------- */
.whk-booter { display: flex; flex-direction: column; gap: 8px; }
.whk-booter-sub {
  margin: 0;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: #d7d7dd;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.whk-env-badge {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: #ff6b6e;
  border: 1px solid #e5383b;
  border-radius: 3px;
  padding: 2px 7px;
  background: rgba(229, 56, 59, 0.08);
  white-space: nowrap;
}
.whk-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.whk-stat-cell {
  border: 1px solid #23232c;
  border-radius: 4px;
  padding: 6px 8px;
  background: #0d0d13;
  min-width: 0;
}
.whk-stat-cell span { display: block; font-size: 0.56rem; letter-spacing: 0.14em; color: #a9a9b3; }
.whk-stat-cell b {
  display: block;
  margin-top: 2px;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  font-family: var(--mono, "JetBrains Mono", monospace);
  color: #ececef;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.whk-stat-cell b.running { color: #e5383b; }
.whk-stat-cell b.done { color: #54d17a; }
.whk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.whk-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.whk-booter .whk-field > span { color: #b0b0b9; }
.whk-cap { margin: 0; font-family: var(--mono, "JetBrains Mono", monospace); font-size: 0.58rem; letter-spacing: 0.1em; line-height: 1.6; color: #9a9aa3; }
.whk-run { width: 100%; height: 36px; margin-top: 2px; }
.whk-booter .whk-booter-log { height: auto; max-height: 100px; margin: 0; }
.whk-booter .whk-booter-log .dim { color: #8f8f99; }
.whk-ev3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.whk-ev-cell { border: 1px solid #23232c; border-radius: 4px; padding: 8px 10px; background: #0d0d13; min-width: 0; }
.whk-ev-cell span { display: block; font-size: 0.56rem; letter-spacing: 0.14em; color: #a9a9b3; }
.whk-ev-cell em { font-style: normal; display: block; margin-top: 3px; font-size: 0.68rem; line-height: 1.55; color: #d7d7dd; }
.whk-ev-cell:nth-child(3) { border-color: #5a2b2e; }
.whk-ev-cell:nth-child(3) em { color: #f0b24b; }
.whk-sim {
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  color: #ff6b6e;
  border: 1px solid #e5383b;
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: 1px;
}
.whk-skid-note { color: #9a9aa3; }
.whk-skid-k { color: #a9a9b3; }
@media (max-width: 560px) {
  .whk-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .whk-cols { grid-template-columns: 1fr; }
  .whk-ev3 { grid-template-columns: 1fr; }
}

/* ---------- evidence quad ---------- */
.whk-ev4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.whk-ev4 .whk-ev-cell em ul { margin: 4px 0 0; padding-left: 16px; }
.whk-ev4 .whk-ev-cell em li { font-size: 0.64rem; margin-bottom: 2px; }
/* ---------- quiz phase ---------- */
.whk-q { display: flex; flex-direction: column; gap: 8px; }
.whk-q-count { margin: 0; font-family: var(--mono, "JetBrains Mono", monospace); font-size: 0.6rem; letter-spacing: 0.16em; color: #e5383b; }
.whk-q-h { margin: 0; font-size: 0.78rem; line-height: 1.55; color: #ececef; }
.whk-opts { display: flex; flex-direction: column; gap: 6px; }
.whk-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: #101016;
  border: 1px solid #30303a;
  border-radius: 4px;
  color: #d7d7dd;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.68rem;
  line-height: 1.5;
  padding: 8px 10px;
  min-height: 40px;
  cursor: pointer;
}
.whk-opt span { color: #e5383b; margin-right: 6px; }
.whk-opt:hover:not(:disabled) { border-color: #e5383b; color: #ececef; }
.whk-opt:disabled { cursor: default; opacity: 0.85; }
.whk-opt.right { border-color: #54d17a; color: #7bd88f; }
.whk-opt.wrong { border-color: #e5383b; color: #ff6b6e; }
.whk-qfb { display: flex; flex-direction: column; gap: 6px; }
.whk-q-verdict { margin: 0; font-family: var(--mono, "JetBrains Mono", monospace); font-size: 0.66rem; letter-spacing: 0.14em; }
.whk-q-verdict.right { color: #54d17a; }
.whk-q-verdict.wrong { color: #e5383b; }
.whk-q-why { margin: 0; font-size: 0.68rem; line-height: 1.65; color: #c8c8d0; }
/* ---------- result phase ---------- */
.whk-result { display: flex; flex-direction: column; gap: 8px; }
.whk-res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.whk-res-h { margin: 2px 0 0; font-size: 0.6rem; letter-spacing: 0.18em; color: #e5383b; }
.whk-res-list { margin: 0; padding-left: 18px; }
.whk-res-list li { font-size: 0.68rem; line-height: 1.7; color: #c8c8d0; }
.whk-res-row { display: flex; gap: 8px; flex-wrap: wrap; }
.whk-res-row .whk-btn { text-decoration: none; }
a.whk-btn { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 560px) {
  .whk-ev4 { grid-template-columns: 1fr; }
  .whk-res-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================= VISUAL POLISH — brand consistency =================
   Aligns the training desktop with the WEHATESKIDS site / Academy /
   Rescue / Shredder / Pinger language: same red, same thin borders,
   same kicker typography, 6px card radius, taller touch targets. */

/* ---------- desktop backdrop: grid + watermark (subtle, readable) ---------- */
.whk-desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 56px);
}
.whk-desktop::after {
  content: "WE HATE SKIDS";
  position: absolute;
  left: 24px;
  bottom: 34px;
  z-index: 0;
  pointer-events: none;
  font-weight: 900;
  font-size: clamp(48px, 7vw, 110px);
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(229, 56, 59, 0.10);
  text-stroke: 1px rgba(229, 56, 59, 0.10);
}

/* ---------- window safety + SIM identity ---------- */
.whk-win { max-height: calc(100% - 16px); }
.whk-win-booter.is-focus { border-color: #7c2530; }
.whk-win-booter .whk-win-ctrls::before {
  content: "SIM";
  align-self: center;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: #ff6b6e;
  border: 1px solid #e5383b;
  border-radius: 3px;
  padding: 2px 6px;
  margin-right: 4px;
  background: rgba(229, 56, 59, 0.08);
}
@media (max-width: 1500px) {
  .whk-win-booter { left: calc(50% - 360px) !important; }
}
@media (max-width: 760px) {
  .whk-win-booter { left: 4px !important; right: 4px !important; width: auto !important; }
}
@media (max-height: 800px) {
  .whk-win-booter { top: 8px !important; }
}

/* ---------- radius alignment (site language: softer cards) ---------- */
.whk-stat-cell, .whk-ev-cell, .whk-dstat-metric, .whk-telemetry,
.whk-skid-row, .whk-claim-cell, .whk-notes-doc, .whk-filelist,
.whk-field > input, .whk-field > select, .whk-btn, .whk-sm,
.whk-opt, .whk-booter-log, .whk-verdict, .acase { border-radius: 6px; }

/* ---------- button heights (closer to site 44px touch language) ---------- */
.whk-sm { height: 34px; padding: 0 16px; font-size: 0.66rem; }
.whk-skid-acts .whk-sm { flex: 1 1 0; }
.whk-run { height: 40px; font-size: 0.72rem; }
.whk-opt { min-height: 44px; }
.whk-opt:focus-visible { outline: none; border-color: #e5383b; }

/* ---------- contrast pass (key labels only) ---------- */
.whk-win-title { color: #b9b9c2; }
.whk-dstat-metric span { color: #a9a9b3; }
.whk-telemetry-head { color: #a2a2ab; }
.whk-term-line.dim { color: #9a9aa3; }

/* ---------- launcher polish ---------- */
.whk-skid { gap: 12px; }
.whk-skid-row { padding: 10px 12px; }
.whk-skid-foot {
  margin: 0;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  line-height: 1.7;
  color: #54d17a;
  border-top: 1px solid #1f1f26;
  padding-top: 10px;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .whk-term-cursor { animation: none; }
  .whk-win, .whk-boot, .whk-bye { transition: none; }
}
