@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-variable.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-500.woff2) format("woff2"); }

:root {
  --font-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-ui: 12.5px;
  --fs-control: 12px;
  --fs-note: 11.5px;
  --fs-mono: 11px;
  --fs-field: 12px;
  --fs-caps: 10.5px;
  --tracking-caps: 0.08em;
  --engrave: 0 1px 0 rgba(255, 255, 255, 0.8);
  --ink: #1b222d;
  --ink-2: #3f4754;
  --muted: #4f5866;
  --muted-2: #5a6370;
  --faint: #6c7582;
  --disabled: #99a1ac;
  --bg: #c9ced6;
  --paper: #ffffff;
  --header: linear-gradient(#f8f9fa, #e4e7eb 52%, #d5d9df);
  --tree: #e2e7ed;
  --toolbar: linear-gradient(90deg, #e9ecef, #dcdfe4);
  --status: linear-gradient(#e9ecef, #d2d6dc);
  --chrome-line: #949ca8;
  --etch-dark: #a9b0ba;
  --hair: #dde2e9;
  --view: linear-gradient(180deg, #d5dae1 0%, #e8ebef 45%, #f6f7f9 100%);
  --grid-minor: rgba(27, 34, 45, 0.055);
  --grid-major: rgba(27, 34, 45, 0.105);
  --grid: var(--grid-minor);
  --axis: #8d96a3;
  --axis-label: #525b68;
  --panel: linear-gradient(#fafbfc, #eef0f3);
  --panel-line: #8a93a0;
  --panel-radius: 7px;
  --panel-shadow: 0 18px 36px -12px rgba(16, 20, 28, 0.45), 0 2px 6px rgba(16, 20, 28, 0.16), inset 0 1px 0 #ffffff;
  --panel-title: linear-gradient(#f8f9fa, #e2e5e9 52%, #d6dae0);
  --panel-title-line: #a3aab4;
  --panel-footer: linear-gradient(#eceef1, #e2e5e9);
  --panel-footer-line: #c3c9d1;
  --fieldset-line: #c3c9d1;
  --modal-scrim: rgba(20, 24, 32, 0.3);
  --menu-shadow: 0 16px 32px -10px rgba(16, 20, 28, 0.42), 0 2px 6px rgba(16, 20, 28, 0.16), inset 0 1px 0 #ffffff;
  --btn: linear-gradient(#ffffff, #e5e8ec);
  --btn-line: #8f98a4;
  --btn-shadow: inset 0 1px 0 #ffffff;
  --btn-hover: linear-gradient(#ffffff, #e4e7eb);
  --btn-hover-line: #a1a9b4;
  --btn-hover-shadow: inset 0 1px 0 #ffffff, 0 1px 1px rgba(20, 26, 36, 0.14);
  --btn-pressed: linear-gradient(#c5cbd3, #d8dce1);
  --btn-pressed-line: #8a93a0;
  --btn-pressed-shadow: inset 0 1px 3px rgba(20, 26, 36, 0.32), 0 1px 0 rgba(255, 255, 255, 0.8);
  --seg-divider: #b1b8c2;
  --well: linear-gradient(#c2c8d0, #d3d8de);
  --well-shadow: inset 0 1px 2px rgba(20, 26, 36, 0.3), 0 1px 0 rgba(255, 255, 255, 0.85);
  --field: #ffffff;
  --field-line: #9aa2ad;
  --field-shadow: inset 0 1px 2px rgba(20, 26, 36, 0.15);
  --field-empty-line: #b3bac4;
  --focus-line: #ac399c;
  --focus-ring: 0 0 0 3px rgba(204, 102, 190, 0.35);
  --checkbox: #cc66be;
  --badge: #8e97a4;
  --accent: #cc66be;
  --accent-gradient: linear-gradient(#d47fc8, #cc66be);
  --accent-line: #994d8f;
  --accent-fg: #1b222d;
  --accent-text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  --accent-ink: #ac399c;
  --locked-ring: inset 0 0 0 2px #cc66be;
  --tree-selected: linear-gradient(#c3c9d1, #d3d8de);
  --tree-selected-line: #a0a8b3;
  --tree-selected-shadow: inset 0 1px 2px rgba(20, 26, 36, 0.18);
  --warn: #c4741c;
  --warn-row: rgba(196, 116, 28, 0.16);
  --icon-emboss: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8));
  --full: #2f8046;
  --geometry: #1b222d;
  --over: #cc66be;
  --over-text: #ac399c;
  --impossible: #c92a2a;
  --impossible-text: #b42318;
  --select: #0f7ea8;
  --select-edge: #0b5f80;
  --select-wash: rgba(15, 126, 168, 0.16);
  --hover-halo: rgba(15, 126, 168, 0.3);
  --dim: #536379;
  --glyph: #536379;
  --chip-line: #b4bfcc;
  --label-bg: #ffffff;
  --point: #ffffff;
  --projection: #b8870f;
  --other-results: #a3abb6;
  --box-lr: #0f7ea8;
  --box-rl: #0f7ea8;
  --result-line: #1b222d;
  --result-selected-fill: #be7b52;
  --result-selected-line: #000000;
  --pick: #a65a36;
  --input-ghost: #7d8692;
  --code-gutter: #f2f4f7;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg);
  color: var(--ink);
  font: var(--fs-ui)/1.4 var(--font-ui);
}

button, input, select, textarea { font-family: inherit; }

.sk-app {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
}

.sk-bar, .sk-status, .sk-main { min-width: 0; }

.sk-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 14px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--header);
  border-bottom: 1px solid var(--chrome-line);
  box-shadow: inset 0 1px 0 #ffffff;
}

.sk-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sk-brand { display: flex; flex: none; align-items: center; gap: 8px; }
.sk-mark { width: 22px; height: 22px; display: block; }
.sk-wordmark { height: 17px; width: auto; display: block; }
.sk-product { font-size: 13px; color: var(--muted); text-shadow: var(--engrave); align-self: flex-end; line-height: 1; margin-bottom: 5px; }
.sk-flag { font-size: 11.5px; font-style: italic; color: var(--muted); align-self: flex-end; line-height: 1; margin: 0 0 5px -3px; }

.sk-benches {
  display: inline-flex;
  flex: none;
  padding: 2px;
  gap: 2px;
  border-radius: 6px;
  background: var(--well);
  box-shadow: var(--well-shadow);
}

.sk-benches button {
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font-size: var(--fs-control);
  font-weight: 500;
  color: var(--ink-2);
  text-shadow: var(--engrave);
  cursor: pointer;
}

.sk-benches button.on {
  border-color: var(--btn-pressed-line);
  background: linear-gradient(#ffffff, #e7eaee);
  box-shadow: 0 1px 1px rgba(20, 26, 36, 0.18), inset 0 1px 0 #ffffff;
  font-weight: 600;
  color: var(--ink);
}

.sk-sketch-state {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fs-control);
  color: var(--muted);
  text-shadow: var(--engrave);
}

.sk-sketch-state.full { color: var(--full); }
.sk-sketch-state.redundant { color: var(--over-text); font-weight: 600; }
.sk-sketch-state.over { color: var(--impossible-text); font-weight: 600; }

.sk-sketch-state.redundant::before, .sk-sketch-state.over::before {
  content: "";
  display: inline-block;
  vertical-align: -1px;
  margin-right: 6px;
  width: 13px;
  height: 11px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.sk-spacer { flex: 1; }
.sk-tools { display: flex; flex: none; align-items: center; gap: 8px; }

.sk-text-button, .sk-button {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid var(--btn-line);
  border-radius: 5px;
  background: var(--btn);
  box-shadow: var(--btn-shadow), 0 1px 0 rgba(255, 255, 255, 0.75);
  font-size: var(--fs-control);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.sk-text-button:hover:not(:disabled), .sk-button:hover:not(:disabled) {
  background: var(--btn-hover);
  border-color: var(--btn-hover-line);
  box-shadow: var(--btn-hover-shadow);
}

.sk-text-button:active:not(:disabled), .sk-button:active:not(:disabled), .sk-text-button[aria-expanded="true"] {
  background: var(--btn-pressed);
  border-color: var(--btn-pressed-line);
  box-shadow: var(--btn-pressed-shadow);
}

.sk-text-button:disabled, .sk-button:disabled { opacity: 0.45; cursor: default; }

.sk-text-button:focus-visible, .sk-button:focus-visible, .sk-strip button:focus-visible {
  outline: none;
  border-color: var(--focus-line);
  box-shadow: var(--focus-ring);
}

.sk-bicon { display: inline-grid; place-items: center; width: 16px; height: 16px; }
.sk-bicon svg { width: 16px; height: 16px; display: block; filter: var(--icon-emboss); }

.sk-menu-button::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 0 0 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.sk-seg {
  display: inline-flex;
  border: 1px solid var(--btn-line);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.sk-seg .sk-text-button {
  height: 24px;
  padding: 0 9px;
  border: 0;
  border-radius: 0;
  box-shadow: var(--btn-shadow);
}

.sk-seg .sk-text-button + .sk-text-button { border-left: 1px solid var(--seg-divider); }
.sk-seg .sk-text-button:hover:not(:disabled) { box-shadow: var(--btn-shadow); }

.sk-icon-button { padding: 0 6px; }
.sk-text-button.sk-iconic, .sk-seg .sk-text-button.sk-iconic { padding: 0 7px; }
.sk-icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sk-main {
  display: grid;
  grid-template-columns: var(--tree-w, 256px) 7px minmax(0, 1fr) 7px var(--strip-w, 54px);
  min-height: 0;
}

.sk-split { cursor: col-resize; touch-action: none; }
.sk-split[data-split="tree"] { background: linear-gradient(90deg, var(--tree) 0 6px, var(--chrome-line) 6px 7px); }
.sk-split[data-split="strip"] { background: linear-gradient(90deg, var(--chrome-line) 0 1px, #e9ecef 1px 7px); }
.sk-split[data-split="tree"]:hover, .sk-split[data-split="tree"].on { background: linear-gradient(90deg, rgba(204, 102, 190, 0.22) 0 6px, var(--accent) 6px 7px), var(--tree); }
.sk-split[data-split="strip"]:hover, .sk-split[data-split="strip"].on { background: linear-gradient(90deg, var(--accent) 0 1px, rgba(204, 102, 190, 0.22) 1px 7px), #e9ecef; }

.sk-canvas {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--view);
  touch-action: none;
}

.sk-loading { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 300px; box-sizing: border-box; padding: 18px 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: linear-gradient(#fafbfc, #eef0f3); border: 1px solid #8a93a0; border-radius: 8px; box-shadow: 0 18px 36px -12px rgba(16, 20, 28, 0.4), inset 0 1px 0 #ffffff; color: var(--ink); }
.sk-loading[hidden] { display: none; }
.sk-loading img { width: 44px; height: 44px; display: block; }
.sk-loading b { font-size: 13.5px; font-weight: 600; }
.sk-loading-bar { position: relative; width: 100%; height: 6px; box-sizing: border-box; overflow: hidden; border: 1px solid #a3aab4; border-radius: 3px; background: linear-gradient(#d3d8de, #e4e7eb); box-shadow: inset 0 1px 2px rgba(20, 26, 36, 0.2); }
.sk-loading-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 40%; border-radius: 3px; background: linear-gradient(#d885cc, #cc66be); animation: sk-load 1.6s ease-in-out infinite; }
@keyframes sk-load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .sk-loading-bar span { animation: none; } }
.sk-loading.failed .sk-loading-bar { display: none; }
.sk-loading-warn { width: 100%; box-sizing: border-box; margin: 0; padding: 6px 9px; border-left: 3px solid var(--warn); border-radius: 3px; background: var(--warn-row); color: #8e520c; font-size: 11.5px; }
.sk-loading ol { width: 100%; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: #6c7582; }
.sk-loading li { display: flex; align-items: center; gap: 7px; }
.sk-loading li::before { content: ""; flex: none; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='2.5' fill='none' stroke='%2399a1ac' stroke-width='1.2'/%3E%3C/svg%3E") center / 12px no-repeat; }
.sk-loading li.now { color: var(--ink); font-weight: 600; }
.sk-loading li.now::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='3' fill='%23cc66be'/%3E%3C/svg%3E"); }
.sk-loading li.done { color: #3f4754; }
.sk-loading li.done::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 L4.8 9.2 L10 3' fill='none' stroke='%232f8046' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sk-loading small { font-size: 11px; color: #4f5866; }

.sk-canvas svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.sk-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, 38px);
  justify-content: center;
  align-content: start;
  gap: 2px;
  padding: 8px 4px;
  overflow-y: auto;
  background: var(--toolbar);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.85);
}

.sk-strip button {
  position: relative;
  width: 38px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

#sk-strip button { height: 34px; }

.sk-strip button svg { width: 24px; height: 24px; display: block; filter: var(--icon-emboss); }

.sk-strip button:hover {
  border-color: var(--btn-hover-line);
  background: var(--btn-hover);
  box-shadow: var(--btn-hover-shadow);
}

.sk-strip button.on {
  border-color: var(--btn-pressed-line);
  background: var(--btn-pressed);
  box-shadow: var(--btn-pressed-shadow);
}

.sk-strip button.locked { box-shadow: var(--btn-pressed-shadow), var(--locked-ring); }
.sk-strip button:disabled { cursor: default; }
.sk-strip button:disabled svg { opacity: 0.38; filter: grayscale(1); }

.sk-gap {
  grid-column: 1 / -1;
  justify-self: center;
  width: 32px;
  height: 0;
  margin: 5px 0;
  border-top: 1px solid var(--etch-dark);
  border-bottom: 1px solid #ffffff;
}

.sk-strip[hidden] { display: none; }

.sk-strip svg:not([xmlns]), .sk-flyout svg:not([xmlns]), .sk-node-icon svg:not([xmlns]) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sk-more {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-bottom: 5px solid var(--ink-2);
  opacity: 0.75;
}

.sk-status {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 24px;
  padding: 0 12px;
  background: var(--status);
  border-top: 1px solid var(--chrome-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  font-size: var(--fs-note);
  color: #3a424e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

#sk-hint { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sk-timing { white-space: nowrap; font-family: var(--font-mono); font-size: var(--fs-mono); }

.sk-tree {
  min-height: 0;
  overflow-y: auto;
  padding: 0 0 10px;
  background: var(--tree);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.6);
  font-size: var(--fs-ui);
}

.sk-tree-head {
  padding: 12px 12px 5px;
  font-size: var(--fs-caps);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--muted-2);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.sk-tree-gap { margin-top: 4px; }

.sk-node {
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px 0 8px;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.sk-node:hover { background: rgba(27, 34, 45, 0.06); }

.sk-node.sel, .sk-node.active {
  background: var(--tree-selected);
  border-color: var(--tree-selected-line);
  box-shadow: var(--tree-selected-shadow);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sk-node.sel .sk-node-name, .sk-node.active .sk-node-name { font-weight: 600; }
.sk-node.off .sk-node-name, .sk-node.off .sk-node-note { color: var(--faint); }
.sk-node.off .sk-node-icon { opacity: 0.55; }
.sk-node.bad .sk-node-name { color: var(--impossible-text); }
.sk-node.extra .sk-node-name { color: var(--over-text); }
.sk-badge { flex: none; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--badge); color: #fff; font-size: var(--fs-caps); font-weight: 600; line-height: 15px; text-align: center; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.18); }
.sk-node.extra .sk-badge { background: var(--over); color: var(--ink); }
.sk-node.bad .sk-badge { background: var(--impossible); }
.sk-node.warn { background: var(--warn-row); }
.sk-node.warn .sk-node-name { color: #8e520c; }

.sk-node-icon { flex: none; display: grid; place-items: center; width: 18px; height: 18px; }
.sk-node-icon svg { width: 16px; height: 16px; display: block; }
.sk-eye { flex: none; display: grid; place-items: center; width: 16px; height: 16px; padding: 0; background: none; border: 0; color: var(--muted); cursor: pointer; }
.sk-eye svg { width: 16px; height: 16px; display: block; }
.sk-eye:hover { opacity: 0.7; }
.sk-node-name { white-space: nowrap; }
.sk-node-note { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-node-err { color: var(--impossible); font-weight: 700; }
.sk-node-warn { color: var(--warn); font-weight: 700; }
.sk-param .sk-node-name, .sk-param .sk-node-note { font-family: var(--font-mono); font-size: 11.5px; }
.sk-con { min-height: 20px; }
.sk-con .sk-node-name, .sk-prop .sk-node-name { font-size: 12px; }
.sk-con.sel { background: var(--select-wash); border-color: transparent; box-shadow: none; }
.sk-con-x { flex: none; padding: 0 4px; background: none; border: 0; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; visibility: hidden; }
.sk-con:hover .sk-con-x, .sk-prop:hover .sk-con-x { visibility: visible; }
.sk-con-x:hover { color: var(--impossible); }
.sk-prop-col { flex: none; width: 11px; height: 11px; border-radius: 2px; border: 1px solid rgba(0, 0, 0, 0.3); }
.sk-prop-col.none { visibility: hidden; }
.sk-colrow { display: inline-flex; align-items: center; gap: 6px; }
.sk-toggle { flex: none; display: inline-grid; place-items: center; width: 16px; height: 18px; padding: 0; background: none; border: 0; border-radius: 3px; color: #5d6673; cursor: pointer; }
.sk-toggle svg { width: 12px; height: 12px; display: block; fill: currentColor; }
.sk-toggle svg.open { fill: var(--ink); }
button.sk-toggle:hover { background: rgba(27, 34, 45, 0.1); color: var(--ink); }
.sk-rename { width: 12ch; height: 20px; padding: 0 4px; font: 12px var(--font-mono); border: 1px solid var(--focus-line); border-radius: 3px; box-shadow: var(--focus-ring); }
.sk-tree-note { margin: 4px 12px; font-size: var(--fs-note); color: var(--muted); }
.sk-mini { height: 20px; font-size: 11px; padding: 0 6px; margin-left: 4px; }

.sk-popup, .sk-dimdlg, .sk-nav, .sk-flyout, .sk-toolopts {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--panel-radius);
  box-shadow: var(--panel-shadow);
}

.sk-popup {
  position: absolute;
  right: 8px;
  top: 8px;
  min-width: 210px;
  z-index: 4;
  overflow: hidden;
}

.sk-window-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 0 8px 0 10px;
  background: var(--panel-title);
  border-bottom: 1px solid var(--panel-title-line);
  font-size: var(--fs-ui);
}

.sk-window-title b { flex: 1; font-weight: 600; }
.sk-close { background: none; border: 0; font-size: 17px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
.sk-close:hover { color: var(--ink); }
.sk-popup fieldset { border: 0; margin: 0; padding: 6px 10px; }
.sk-popup legend { font-size: var(--fs-caps); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--muted-2); padding: 0; }
.sk-popup label { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.sk-popup .sk-note { color: var(--muted); font-size: var(--fs-note); margin: 0; }
.sk-popup .sk-symline { margin-top: 6px; }
.sk-dialog-buttons { display: flex; justify-content: flex-end; gap: 6px; padding: 8px 10px; background: var(--panel-footer); border-top: 1px solid var(--panel-footer-line); }

.sk-dimdlg {
  position: absolute;
  z-index: 6;
  width: 250px;
  padding: 0 12px 10px;
  font-size: var(--fs-ui);
}

.sk-dimdlg[hidden] { display: none; }

.sk-dimdlg-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 27px;
  margin: 0 -12px 8px;
  padding: 0 10px;
  background: var(--panel-title);
  border-bottom: 1px solid var(--panel-title-line);
  border-radius: var(--panel-radius) var(--panel-radius) 0 0;
  font-weight: 600;
}

.sk-dimdlg-title span { color: var(--muted); font: 400 var(--fs-mono) var(--font-mono); }
.sk-dimdlg-refs { margin: 0 0 8px; color: var(--muted); font: var(--fs-mono) var(--font-mono); }
.sk-dimdlg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.sk-dimdlg .sk-value { position: static; width: 120px; }
.sk-dimdlg-opt { display: flex; align-items: center; gap: 6px; padding: 2px 0; }

.sk-dimdlg-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin: 10px -12px -10px;
  padding: 8px 10px;
  background: var(--panel-footer);
  border-top: 1px solid var(--panel-footer-line);
  border-radius: 0 0 var(--panel-radius) var(--panel-radius);
}

.sk-dimdlg-buttons .sk-text-button, .sk-dialog-buttons .sk-text-button { height: 24px; }

.sk-primary {
  background: var(--accent-gradient) !important;
  border-color: var(--accent-line) !important;
  color: var(--accent-fg) !important;
  font-weight: 600;
  text-shadow: var(--accent-text-shadow);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 1px rgba(20, 26, 36, 0.18) !important;
}

.sk-primary:disabled { opacity: 0.45; box-shadow: none !important; }

.sk-value, .sk-dimdlg input[type="text"], .sk-dimdlg input[type="number"], .sk-toolopts input[type="text"], .sk-table input {
  height: 24px;
  padding: 0 6px;
  font: var(--fs-field) var(--font-mono);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 3px;
  box-shadow: var(--field-shadow);
}

.sk-value { position: absolute; width: 96px; z-index: 3; }

.sk-value:focus, .sk-dimdlg input:focus, .sk-toolopts input:focus, .sk-table input:focus, .sk-dimdlg select:focus, .sk-toolopts select:focus {
  outline: none;
  border-color: var(--focus-line);
  box-shadow: var(--field-shadow), var(--focus-ring);
}

.sk-dimdlg select, .sk-toolopts select {
  height: 24px;
  padding: 0 6px;
  font-size: var(--fs-control);
  font-weight: 500;
  color: var(--ink);
  background: var(--btn);
  border: 1px solid var(--btn-line);
  border-radius: 5px;
  box-shadow: var(--btn-shadow);
}

input[type="checkbox"] { accent-color: var(--checkbox); width: 14px; height: 14px; margin: 0; }
::placeholder { color: #8a929d; font-style: italic; }

.sk-modal {
  position: fixed;
  inset: 0;
  background: var(--modal-scrim);
  display: grid;
  place-items: center;
  z-index: 10;
  padding: 16px;
}

.sk-modal[hidden], .sk-popup[hidden], .sk-value[hidden] { display: none; }

.sk-dialog {
  width: min(760px, 100%);
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--panel-radius);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
}

.sk-dialog-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 8px 4px 12px;
  background: var(--panel-title);
  border-bottom: 1px solid var(--panel-title-line);
  font-size: 13px;
}

.sk-dialog-head b { font-weight: 600; }
.sk-dialog-head .sk-text-button { height: 24px; }

.sk-dialog pre {
  margin: 10px;
  padding: 10px 12px;
  overflow: auto;
  font: 12px/20px var(--font-mono);
  white-space: pre;
  background: var(--paper);
  border: 1px solid var(--panel-footer-line);
  border-radius: 4px;
}

.sk-dialog.sk-ask { width: min(440px, 100%); }
.sk-dialog.sk-report { width: min(460px, 100%); }
.sk-dialog.sk-simreport { width: min(560px, 100%); }
.sk-simreport-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.sk-simreport tr[data-simreport] { cursor: pointer; }
.sk-simreport th:first-child, .sk-simreport td:first-child { width: 1%; padding-right: 2px; }
.sk-simreport tr.bad { cursor: default; color: var(--muted); }
.sk-simreport td svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.sk-simreport-note { margin: 0; line-height: 1.45; color: var(--muted); }
.sk-report-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.sk-report-check { display: flex; align-items: center; gap: 6px; }
.sk-report-label { margin-top: 6px; }
.sk-report-size { color: var(--muted); }
.sk-report-count { align-self: flex-end; font: 11px/1 var(--font-mono); color: var(--muted); }
.sk-report-warn { margin: 0; padding: 7px 9px; line-height: 1.45; color: var(--impossible-text); background: rgba(201, 42, 42, 0.07); border: 1px solid rgba(201, 42, 42, 0.35); border-radius: 3px; }
.sk-report-warn[hidden] { display: none; }
.sk-report textarea {
  width: 100%;
  min-height: 110px;
  padding: 6px 8px;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 3px;
  box-shadow: var(--field-shadow);
}
.sk-report textarea:focus { outline: none; border-color: var(--focus-line); box-shadow: var(--field-shadow), var(--focus-ring); }
.sk-ask p { margin: 0; padding: 14px 16px 0; line-height: 1.5; }
.sk-ask .sk-dialog-buttons { margin-top: 14px; }

.sk-nav {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 4px;
  box-shadow: var(--menu-shadow);
}

.sk-nav[hidden] { display: none; }

.sk-nav button {
  min-height: 26px;
  font: var(--fs-mono) var(--font-mono);
  text-align: left;
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 0 8px;
  color: var(--ink);
  cursor: pointer;
}

.sk-nav button.on, .sk-nav button:hover, .sk-flyout button:hover {
  background: var(--accent-gradient);
  color: var(--accent-fg);
  text-shadow: var(--accent-text-shadow);
}

.sk-flyout {
  position: fixed;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px;
  box-shadow: var(--menu-shadow);
}

.sk-flyout[hidden] { display: none; }

.sk-flyout button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px 0 6px;
  background: none;
  border: 0;
  border-radius: 4px;
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.sk-flyout svg { width: 24px; height: 24px; display: block; }
.sk-flyout button:disabled { color: var(--muted); opacity: 0.55; cursor: default; background: none; text-shadow: none; }
.sk-toolfly { flex-direction: row; gap: 2px; padding: 3px; }
.sk-toolfly button { width: 38px; min-height: 0; height: 36px; padding: 0; justify-content: center; border: 1px solid transparent; border-radius: 5px; }
.sk-toolfly button svg { filter: var(--icon-emboss); }
.sk-toolfly button:hover { background: var(--btn-hover); border-color: var(--btn-hover-line); box-shadow: var(--btn-hover-shadow); color: var(--ink); text-shadow: none; }
.sk-toolfly button.on { background: var(--btn-pressed); border-color: var(--btn-pressed-line); box-shadow: var(--btn-pressed-shadow); }
.sk-menu-icon { display: grid; place-items: center; width: 24px; height: 24px; }

.sk-menu-note {
  max-width: 250px;
  margin: 4px 8px 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--panel-footer-line);
  font-size: var(--fs-note);
  line-height: 1.4;
  color: var(--muted);
}

.sk-savemenu { width: 132px; box-sizing: border-box; }
.sk-menu-rule { display: block; height: 0; margin: 4px 6px; border-top: 1px solid #c3c9d1; border-bottom: 1px solid #ffffff; }
.sk-menu-new { margin-left: auto; padding-left: 14px; font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); }

.sk-toolopts {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  max-width: calc(100% - 16px);
  min-height: 36px;
  padding: 5px 12px;
  font-size: var(--fs-ui);
  box-shadow: 0 6px 18px -8px rgba(16, 20, 28, 0.35), inset 0 1px 0 #ffffff;
}

.sk-toolopts[hidden] { display: none; }
.sk-toolopts label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sk-toolopts input[type="text"] { width: 8ch; }
.sk-toolopts input.int { width: 5ch; }
.sk-toolopts input.wide { width: 13ch; }
.sk-toolopts label.off { color: var(--muted); opacity: 0.6; }

.sk-edit { width: auto; max-width: calc(100% - 16px); }
.sk-edit .sk-note { color: var(--muted); font-size: var(--fs-note); margin: 6px 0 0; max-width: 360px; }
.sk-feature { left: 8px; top: 8px; width: auto; min-width: 260px; max-width: min(430px, calc(100% - 16px)); }
.sk-feature .sk-value { width: 13ch; }
.sk-feature .sk-table input.wide { width: 16ch; }

.sk-table { border-collapse: collapse; font-size: 12px; }
.sk-table th { color: var(--muted-2); font-size: var(--fs-caps); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; text-align: left; padding: 0 4px 4px 0; white-space: nowrap; }
.sk-table td { padding: 2px 4px 2px 0; }
.sk-table input { width: 7ch; }
.sk-table input:disabled { color: var(--muted); background: transparent; border: 1px dashed var(--field-empty-line); box-shadow: none; }
.sk-spline-table input { width: 64px; }

.sk-pval { color: var(--muted); font: var(--fs-mono) var(--font-mono); white-space: nowrap; }
.sk-pval.bad { color: var(--impossible-text); font-weight: 600; }
.sk-rowacts { white-space: nowrap; }
.sk-rowacts button { width: 22px; height: 22px; padding: 0; margin-left: 2px; border: 1px solid var(--btn-line); border-radius: 4px; background: var(--btn); box-shadow: var(--btn-shadow); color: var(--ink); cursor: pointer; }
.sk-rowacts button:hover:not(:disabled) { background: var(--btn-hover); border-color: var(--btn-hover-line); }
.sk-rowacts button:disabled { opacity: 0.35; cursor: default; }

.sk-measure { width: 290px; }
.sk-measure-table { width: 100%; background: var(--paper); border: 1px solid var(--panel-footer-line); border-radius: 3px; }
.sk-measure-table tr:nth-child(even) td { background: #f3f5f7; }
.sk-measure-table td { padding: 3px 6px; }
.sk-measure-table td:last-child { text-align: right; font: var(--fs-mono) var(--font-mono); }

.sk-page { position: absolute; pointer-events: none; background: #fff; box-shadow: 0 2px 14px rgba(20, 30, 45, 0.18); }
.sk-canvas.drawing { background: #e7ebf0; }

.sk-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 7px var(--sims-h, 42%);
  min-height: 0;
  user-select: none;
  -webkit-user-select: none;
  background: var(--tree);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.6);
}
.sk-side .sk-tree { box-shadow: none; }
.sk-hsplit { cursor: row-resize; touch-action: none; background: linear-gradient(180deg, var(--tree) 0 3px, var(--chrome-line) 3px 4px, var(--tree) 4px 7px); }
.sk-hsplit:hover, .sk-hsplit.on { background: linear-gradient(180deg, rgba(204, 102, 190, 0.22) 0 3px, var(--accent) 3px 4px, rgba(204, 102, 190, 0.22) 4px 7px), var(--tree); }
.sk-sims { min-height: 0; overflow-y: auto; padding: 0 0 10px; font-size: var(--fs-ui); }
.sk-sims .sk-tree-head { padding-top: 6px; }
.sk-sim { cursor: pointer; }

.sk-simplot { position: absolute; inset: 0; z-index: 4; background: var(--view); }
.sk-simplot[hidden] { display: none; }
.sk-simitem { cursor: pointer; }
.sk-simpop { min-width: 300px; max-width: min(760px, calc(100% - 16px)); max-height: calc(100% - 60px); overflow: auto; box-sizing: border-box; }
.sk-sim-of { margin: 8px 0 4px; color: var(--muted); }
.sk-sim-of b { color: var(--ink); font-weight: 600; }
.sk-sim-status { margin: 6px 0; font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); }
.sk-sim-status.warn { color: #8e520c; }
.sk-sim-fields { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 5px 6px; margin: 8px 0 4px; }
.sk-sim-label { color: var(--muted); }
.sk-sim-unit { color: var(--muted); font-family: var(--font-mono); font-size: var(--fs-mono); }
.sk-sim-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }
.sk-simpop input[type="text"], .sk-simpop select {
  min-width: 0;
  height: 24px;
  box-sizing: border-box;
  padding: 0 6px;
  font: var(--fs-field) var(--font-mono);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 3px;
  box-shadow: var(--field-shadow);
}
.sk-simpop select { font-family: var(--font-ui); font-size: var(--fs-control); background: var(--btn); border-color: var(--btn-line); border-radius: 5px; box-shadow: var(--btn-shadow); }
.sk-simpop input:focus, .sk-simpop select:focus { outline: none; border-color: var(--focus-line); box-shadow: var(--field-shadow), var(--focus-ring); }
.sk-simpop input:disabled, .sk-simpop select:disabled { opacity: 0.5; }
.sk-simpop .is-wrong { border-color: var(--impossible); }
.sk-simpop input[type="checkbox"] { accent-color: var(--checkbox); margin: 0; }
.sk-sim-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 6px;
  margin: 8px 0 0;
  padding: 6px 26px 6px 7px;
  border: 1px solid var(--fieldset-line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.sk-sim-row.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(204, 102, 190, 0.28); background: rgba(255, 255, 255, 0.75); }
.sk-sim-row.lost { border-color: var(--impossible); }
.sk-sim-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); cursor: default; }
.sk-sim-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sk-sim-cell span { font-size: var(--fs-caps); color: var(--muted); }
.sk-sim-x { position: absolute; right: 3px; top: 3px; padding: 0 4px; background: none; border: 0; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.sk-sim-x:hover { color: var(--impossible); }
.sk-sim-show { display: flex; align-items: center; gap: 8px; margin: 8px 0 6px; color: var(--muted); }
.sk-sim-show select { flex: 1; }
.sk-sim-results { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; margin: 6px 0 4px; }
.sk-sim-results:empty { display: none; }
.sk-sim-results dt { color: var(--muted); }
.sk-sim-results dt.is-sub { padding-left: 10px; }
.sk-sim-results dd { margin: 0; font-family: var(--font-mono); font-size: var(--fs-mono); text-align: right; }
.sk-sim-notes { margin: 6px 0 0; font-size: var(--fs-note); color: #8e520c; max-width: 360px; }

.sk-simpop { top: 44px; }
.sk-simpaint { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sk-simpaint[hidden] { display: none; }
.sk-simlayer { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.sk-simlayer[hidden], .sk-simbar[hidden] { display: none; }
.sk-chip { position: absolute; height: 20px; display: flex; align-items: center; gap: 5px; padding: 0 6px 0 3px; box-sizing: border-box; background: #ffffff; border: 1px solid #b4bfcc; border-radius: 3px; font-size: 11.5px; color: var(--ink); white-space: nowrap; pointer-events: auto; }
.sk-chip[data-simdrag], .sk-probe[data-simdrag] { cursor: grab; touch-action: none; }
.sk-chip.dragging, .sk-probe.dragging { cursor: grabbing; box-shadow: 0 6px 16px -6px rgba(16, 20, 28, 0.45); z-index: 2; }
.sk-chip svg { width: 16px; height: 16px; display: block; flex: none; }
.sk-chip[data-on] { border-color: var(--select); box-shadow: 0 0 0 1px var(--select); }
.sk-chip-name { font-family: var(--font-mono); font-size: 11px; }
.sk-chip-text { color: #4f5866; }
.sk-probe { position: absolute; padding: 5px 9px 6px; display: flex; flex-direction: column; gap: 1px; background: linear-gradient(#fafbfc, #eef0f3); border: 1px solid #8a93a0; border-radius: 5px; box-shadow: 0 6px 14px -6px rgba(16, 20, 28, 0.35), inset 0 1px 0 #ffffff; pointer-events: auto; }
.sk-probe[data-on] { border-color: var(--select); box-shadow: 0 0 0 1px var(--select), 0 6px 14px -6px rgba(16, 20, 28, 0.35); }
.sk-probe-head { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #4f5866; white-space: nowrap; }
.sk-probe-head svg { width: 16px; height: 16px; display: block; }
.sk-probe-value { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink); }
.sk-scale { position: absolute; right: 14px; top: 48px; width: 132px; padding: 9px 10px 10px; box-sizing: border-box; background: linear-gradient(#fafbfc, #eef0f3); border: 1px solid #8a93a0; border-radius: 6px; box-shadow: 0 10px 22px -10px rgba(16, 20, 28, 0.35), inset 0 1px 0 #ffffff; pointer-events: auto; }
.sk-scale-title { font-size: 12px; font-weight: 600; line-height: 1.25; }
.sk-scale-sub { font-size: 11px; color: #4f5866; margin-bottom: 8px; }
.sk-scale svg { display: block; overflow: visible; }
.sk-scale svg text { font: 400 10.5px var(--font-mono); fill: #3f4754; }
.sk-scale-ends { margin-top: 8px; padding-top: 7px; border-top: 1px solid #c3c9d1; box-shadow: inset 0 1px 0 #ffffff; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-family: var(--font-mono); font-size: 10.5px; color: #3f4754; }
.sk-scale-ends span:nth-child(even) { text-align: right; }
.sk-simbar { position: absolute; left: 0; right: 0; top: 0; z-index: 5; min-height: 34px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 4px 12px; background: linear-gradient(#fbfbfc, #eceef1); border-bottom: 1px solid #a3aab4; box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px -2px rgba(16, 20, 28, 0.25); font-size: var(--fs-ui); color: var(--ink); }
.sk-simbar-name { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.sk-simbar-name svg { width: 16px; height: 16px; display: block; }
.sk-simbar-rule { width: 0; height: 18px; border-left: 1px solid #b3bac4; border-right: 1px solid #ffffff; }
.sk-simbar-item { display: flex; align-items: center; gap: 6px; }
.sk-simbar-item.off { opacity: 0.5; }
.sk-simbar select { width: 160px; height: 22px; padding: 0 6px; border: 1px solid #8f98a4; border-radius: 4px; background: linear-gradient(#ffffff, #e5e8ec); box-shadow: inset 0 1px 0 #ffffff; font-family: inherit; font-size: 12px; color: var(--ink); }
.sk-simbar input[type="text"] { width: 52px; height: 22px; box-sizing: border-box; padding: 0 6px; border: 1px solid #9aa2ad; border-radius: 3px; background: #ffffff; box-shadow: inset 0 1px 2px rgba(20, 26, 36, 0.15); font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.sk-simbar input[type="number"] { width: 58px; height: 22px; box-sizing: border-box; margin-left: 2px; padding: 0 2px 0 6px; border: 1px solid #9aa2ad; border-radius: 3px; background: #ffffff; box-shadow: inset 0 1px 2px rgba(20, 26, 36, 0.15); font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.sk-simbar input[type="checkbox"] { width: 14px; height: 14px; margin: 0; accent-color: var(--checkbox); }
.sk-simbar-x { font-family: var(--font-mono); font-size: 11px; color: #4f5866; }
.sk-defbar input[type="range"] { width: 120px; }
.sk-simbar input[type="range"] { -webkit-appearance: none; appearance: none; height: 14px; margin: 0; background: none; cursor: pointer; }
.sk-simbar input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: #a3aab4; }
.sk-simbar input[type="range"]::-moz-range-track { height: 2px; border-radius: 1px; background: #a3aab4; }
.sk-simbar input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; border: 1.5px solid #4f5866; background: #ffffff; }
.sk-simbar input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #4f5866; background: #ffffff; }
.sk-simbar input[type="range"]:hover::-webkit-slider-thumb, .sk-simbar input[type="range"]:focus-visible::-webkit-slider-thumb { border-color: var(--accent); }
.sk-simbar input[type="range"]:hover::-moz-range-thumb, .sk-simbar input[type="range"]:focus-visible::-moz-range-thumb { border-color: var(--accent); }
.sk-simbar input[type="range"]:focus { outline: none; }
.sk-simbar input[type="range"]:disabled { opacity: 0.4; cursor: default; }
.sk-deflog { gap: 6px; }
.sk-defhelp { color: var(--muted); }
.sk-deflegend { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #4f5866; }
.sk-deflegend i { width: 14px; height: 3px; border-radius: 2px; display: block; }
.sk-simbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sk-simbar-right .sk-text-button { height: 24px; }
.sk-simbar-state { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #3f4754; }
.sk-simbar-state svg { width: 12px; height: 12px; display: block; flex: none; }
.sk-tick { fill: none; stroke: #2f8046; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sk-ring { fill: none; stroke: #8a929d; stroke-width: 1.25; }
.sk-stale { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #8e520c; }
.sk-stale svg { width: 14px; height: 14px; display: block; flex: none; }
.sk-simbar-bar { position: relative; width: 120px; height: 6px; overflow: hidden; margin-left: 8px; border: 1px solid #a3aab4; border-radius: 3px; background: linear-gradient(#d3d8de, #e4e7eb); box-shadow: inset 0 1px 2px rgba(20, 26, 36, 0.2); }
.sk-simbar-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 40%; background: linear-gradient(#d885cc, #cc66be); animation: sk-load 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .sk-simbar-bar span { animation: none; } }
.sk-dot { position: absolute; right: 2px; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: #c4741c; box-shadow: 0 0 0 1px #8e520c, 0 0 0 2px #ffffff; }
.sk-simmark { display: grid; place-items: center; flex: none; }
.sk-simmark svg { width: 14px; height: 14px; display: block; }
.sk-simopen { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ink); }
.sk-sim .sk-node-note { flex: 1; }
.sk-simfolder .sk-badge { margin-left: auto; }
.sk-simres, .sk-simleaf { min-height: 20px; cursor: pointer; }
.sk-simres .sk-node-name, .sk-simleaf .sk-node-name { font-size: 12px; }
.sk-simres.on .sk-node-name { font-weight: 600; }
.sk-simres.off .sk-node-name, .sk-simres.off .sk-node-note { color: var(--faint); }
.sk-simleaf .sk-node-note { font-size: 10.5px; }
.sk-simval { margin-left: auto; padding-left: 6px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink); white-space: nowrap; }
.sk-simval.stale { color: var(--faint); }
.sk-sim-list { display: flex; flex-direction: column; gap: 3px; margin: 8px 0 4px; }
.sk-sim-pick { display: flex; align-items: baseline; gap: 8px; padding: 4px 7px; border: 1px solid var(--fieldset-line); border-radius: 5px; background: rgba(255, 255, 255, 0.5); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.sk-sim-pick span { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); }
.sk-sim-pick.on, .sk-sim-pick:hover { border-color: var(--accent); }
.sk-sim-what { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.sk-simfly { display: flex; flex-direction: column; padding: 4px; }
.sk-simfly button { display: flex; align-items: center; gap: 8px; }
.sk-simfly button.on { background: var(--btn-pressed); }

.sk-sim-table { margin: 8px 0 2px; }
.sk-sim-table td { vertical-align: middle; white-space: nowrap; }
.sk-sim-table th { padding-right: 8px; }
.sk-sim-table input[type="text"] { width: 64px; }
.sk-sim-colors { margin-bottom: 8px; }
.sk-sim-range { display: flex; align-items: center; gap: 6px; }
.sk-sim-table input.sk-sim-limit { width: 72px; }
.sk-sim-to, .sk-sim-unit { color: var(--muted); }
.sk-th-unit { text-transform: none; letter-spacing: 0; font-weight: 400; }
.sk-heatchart { display: block; width: 100%; max-width: 400px; height: auto; margin: 4px 0 2px; }
.sk-beampanel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: grid; grid-template-columns: 1fr 1fr; pointer-events: none; }
.sk-beampanel[hidden] { display: none; }
.sk-beamcol { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.sk-beamleft { display: grid; grid-template-rows: minmax(0, 2fr) minmax(0, 1fr); }
.sk-beamleft .sk-beamcell { flex: 1 1 0; padding: 10px 16px 12px; background: var(--paper); border-top: 1px solid #c3c9d1; pointer-events: auto; }
.sk-beamright { gap: 8px; padding: 10px 16px 12px; background: var(--paper); border-left: 1px solid #c3c9d1; pointer-events: auto; }
.sk-beamright .sk-beamcell { flex: 1 1 0; }
.sk-beamcell { display: flex; flex-direction: column; min-width: 0; min-height: 0; box-sizing: border-box; }
.sk-beamcell header { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ink); margin-bottom: 2px; }
.sk-beamcell header span { font-size: 11px; color: #5a6370; }
.sk-beambody { flex: 1 1 auto; min-height: 0; position: relative; }
.sk-beambody svg { position: absolute; inset: 0; display: block; }
.sk-beamplot .grid { stroke: #eef1f4; }
.sk-beamplot .zero { stroke: #8a93a0; }
.sk-beamplot .area { fill: #e6ebf2; stroke: none; }
.sk-beamplot .curve { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.sk-beamplot .tick { font: 10px var(--font-mono); fill: #4f5866; }
.sk-beamplot .ext { fill: var(--ink); }
.sk-beamplot .exttext { font: 600 10.5px var(--font-ui); fill: var(--ink); }
.sk-beamplot .hover[hidden] { display: none; }
.sk-beamplot .hline { stroke: var(--select); stroke-width: 1; }
.sk-beamplot .hdot { fill: var(--select); }
.sk-beamplot .hbox { fill: #ffffff; stroke: #8a93a0; }
.sk-beamplot .htext { font: 11px var(--font-mono); fill: var(--ink); }
.sk-beamsketch .beam { fill: #e6ebf2; stroke: var(--ink); stroke-width: 1; }
.sk-beamsketch .support { fill: #ffffff; stroke: var(--ink); stroke-width: 1.1; }
.sk-beamsketch .load { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.sk-beamsketch .name { font: 10.5px var(--font-mono); fill: var(--ink); }
.sk-beamsketch .dim { fill: none; stroke: #8a93a0; }
.sk-beamsketch .dimtext { font: 11px var(--font-ui); fill: #4f5866; paint-order: stroke; stroke: #ffffff; stroke-width: 4px; }
.sk-heatchart line, .sk-heatchart path { fill: none; vector-effect: non-scaling-stroke; }
.sk-heatchart .axis { stroke: #8a93a0; }
.sk-heatchart .steady { stroke: #8a93a0; stroke-dasharray: 4 3; }
.sk-heatchart .mark { stroke: var(--accent); stroke-dasharray: 3 2; }
.sk-heatchart .now { stroke: var(--select); stroke-width: 1.5; }
.sk-heatchart .curve { stroke: #c9522e; stroke-width: 1.6; }
.sk-heatchart .point { stroke: #4f5866; opacity: 0.7; }
.sk-heatchart .target { stroke: #2f8046; stroke-dasharray: 5 3; }
.sk-heatchart .hit { fill: #2f8046; }
.sk-heatchart text { font: 10px var(--font-mono); fill: var(--muted); }
.sk-heatchart path.beam-v { fill: rgba(15, 126, 168, 0.16); stroke: var(--select); stroke-width: 1.4; }
.sk-heatchart path.beam-m { fill: rgba(204, 102, 190, 0.16); stroke: var(--accent); stroke-width: 1.4; }
.sk-heatchart path.beam-w { fill: rgba(44, 51, 61, 0.1); stroke: #2c333d; stroke-width: 1.4; }
.sk-simbar-time input[type="range"] { width: 140px; margin: 0 6px; }
.sk-simbar-t { min-width: 76px; font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); }
.sk-sim-swatch { display: inline-flex; height: 12px; border: 1px solid #3c4656; vertical-align: middle; }
.sk-sim-swatch i { width: 10px; height: 100%; }
.sk-sim-table input[type="checkbox"], .sk-sim-table input[type="radio"] { width: 14px; height: 14px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; accent-color: var(--checkbox); }
.sk-sim-table .sk-sim-check { display: flex; align-items: center; gap: 7px; padding: 2px 0; }
.sk-sim-table select { width: auto; min-width: 96px; max-width: 160px; }
.sk-sim-table tr.on td { background: var(--select-wash); }
.sk-sim-table td.sk-sim-l { padding-right: 10px; color: var(--muted); white-space: nowrap; }
.sk-sim-table td.sk-sim-u { color: var(--muted); font-family: var(--font-mono); font-size: var(--fs-mono); }
.sk-sim-table td.sk-sim-name { font-family: var(--font-mono); font-size: var(--fs-mono); white-space: nowrap; padding-right: 8px; }
.sk-sim-table td.sk-sim-v { white-space: nowrap; }
.sk-sim-table td.sk-sim-v span { margin-left: 4px; color: var(--muted); font-family: var(--font-mono); font-size: var(--fs-mono); }
.sk-sim-table td.sk-sim-out { font-family: var(--font-mono); font-size: var(--fs-mono); text-align: right; padding-left: 6px; white-space: nowrap; }
.sk-atpick { min-width: 52px; height: 24px; padding: 0 8px; border: 1px solid var(--field-line); border-radius: 3px; background: var(--field); box-shadow: var(--field-shadow); font: var(--fs-field) var(--font-mono); color: var(--ink); text-align: left; cursor: crosshair; }
.sk-atpick.bad { border-color: var(--impossible); color: var(--impossible); }
.sk-atpick.on { border-color: var(--focus-line); box-shadow: var(--field-shadow), var(--focus-ring); }
.sk-sim-new { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.sk-simpop .sk-sim-results { min-width: 280px; }
.sk-sim-sub { margin: 10px 0 0; font-size: var(--fs-caps); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--muted-2); }

@media (max-width: 760px) {
  .sk-main { grid-template-columns: minmax(0, 1fr) 54px; }
  .sk-side, .sk-tree, .sk-split { display: none; }
  .sk-wordmark, .sk-product, .sk-flag, #sk-timing { display: none; }
  .sk-bar, .sk-tools { flex-wrap: wrap; }
}

.sk-benches .sk-menu-button { gap: 5px; }
.sk-dtable { display: flex; flex-direction: column; gap: 3px; max-height: 260px; overflow: auto; margin: 4px 0; }
.sk-dtable-cells { display: flex; gap: 3px; }
.sk-dtable-cells input { width: 84px; min-width: 0; }
.sk-dtable-cells input:first-child { width: 124px; }
.sk-dtable-tools { display: flex; gap: 6px; margin: 2px 0 4px; }
.sk-benches button svg { width: 14px; height: 14px; margin: 0 6px 0 -2px; flex: none; }
.sk-dimdlg-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; }
.sk-dimdlg.sk-dpop-panel { width: 372px; min-width: 0; max-width: calc(100% - 16px); box-sizing: border-box; }
.sk-dpop { display: grid; grid-template-columns: 58px auto minmax(0, 1fr); align-items: center; gap: 8px 10px; margin: 4px 0 0; }
.sk-dpop-label { color: #4f5866; }
.sk-dpop-group { justify-self: start; display: flex; border: 1px solid var(--btn-line); border-radius: 5px; overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75); }
.sk-dpop-group button { width: 36px; height: 32px; padding: 0; display: grid; place-items: center; border: 0; background: linear-gradient(#ffffff, #e5e8ec); box-shadow: inset 0 1px 0 #ffffff; }
.sk-dpop-group button + button { border-left: 1px solid var(--seg-divider); }
.sk-dpop-group button:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--btn-hover); }
.sk-dpop-group button[aria-pressed="true"] { background: linear-gradient(#c6ccd4, #d9dde2); box-shadow: inset 0 1px 3px rgba(20, 26, 36, 0.3); }
.sk-dpop-group button span { display: grid; place-items: center; }
.sk-dpop-group button:disabled span { opacity: 0.35; }
.sk-dpop-group svg, .sk-dpop-ico svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8)); }
.sk-dpop-name { font-size: 11.5px; line-height: 1.3; color: #3f4754; }
.sk-dpop-ico { width: 36px; height: 32px; display: grid; place-items: center; }
.sk-dimdlg .sk-dpop input[type="text"] { grid-column: span 2; width: 100%; min-width: 0; height: 26px; box-sizing: border-box; padding: 0 8px; font: 12px var(--font-mono); }
.sk-dpop-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; padding: 2px 0; }
.sk-dpop-check input { width: 14px; height: 14px; margin: 0; accent-color: #cc66be; }
.sk-dpop-kind { position: relative; display: inline-block; width: 16px; height: 16px; }
.sk-dpop-kind svg { position: absolute; inset: 0; width: 16px; height: 16px; }
.sk-dimdlg .sk-dpop-help { margin: 10px 0 0; font-size: 11.5px; line-height: 1.45; }
.sk-dimdlg-icon svg { width: 16px; height: 16px; }
.sk-dimdlg-sub { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--muted); margin-left: 7px; white-space: nowrap; }
.sk-dimdlg-x { width: 20px; height: 20px; padding: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--ink-2); font-size: 15px; line-height: 1; cursor: pointer; flex: none; }
.sk-dimdlg-x:hover { border-color: #a1a9b4; background: rgba(255, 255, 255, 0.7); }
.sk-dview-body { display: flex; flex-direction: column; gap: 6px; }
.sk-dlabel { color: var(--muted); margin-top: 2px; }
.sk-dcaps { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #5a6370; margin-top: 2px; }
.sk-dseg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.sk-dseg button { height: 26px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 4px; border: 1px solid #a1a9b4; border-radius: 4px;
  background: linear-gradient(#ffffff, #e5e8ec); box-shadow: inset 0 1px 0 #ffffff; font: inherit; font-size: 12px; font-weight: 500; color: #1b222d; white-space: nowrap; cursor: pointer; }
.sk-dseg button.wide { grid-column: span 2; }
.sk-dseg button svg { width: 14px; height: 14px; }
.sk-dseg button[aria-pressed="true"] { border-color: #8a93a0; background: linear-gradient(#c6ccd4, #d9dde2); box-shadow: inset 0 1px 3px rgba(20, 26, 36, 0.3); font-weight: 600; }
.sk-dseg button:disabled { opacity: 0.45; cursor: default; }
.sk-note.sk-indent { margin: -4px 0 0 21px; }
.sk-dcorner { margin: 0 0 8px; color: var(--muted); }
.sk-dcorner code { font-family: "IBM Plex Mono", ui-monospace, monospace; color: var(--ink); margin-left: 6px; }
.sk-dtable-cells { align-items: center; }
.sk-dtable-cells input { width: 64px; }
.sk-dtable-cells input:first-child { width: 64px; }
.sk-dtable-cells.head input { background: linear-gradient(#fbeee2, #f4dcc6); border-color: #c99a78; font-weight: 600; }
.sk-dbadge { margin-left: auto; padding-left: 6px; font-size: 11px; font-weight: 600; color: var(--ink); }
.sk-node .sk-dbadge + .sk-con-x { margin-left: 4px; }
.sk-node.placing .sk-node-name, .sk-node.placing .sk-node-note, .sk-node.placing .sk-dbadge { color: #a65a36; }
.sk-node.editing { background: #cc66be; }
.sk-node.editing .sk-node-name, .sk-node.editing .sk-node-note, .sk-node.editing .sk-dbadge { color: #ffffff; }
.sk-dgroup .sk-badge { margin-left: auto; }
.sk-dmodal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(27, 34, 45, 0.18); }
.sk-dmodal[hidden] { display: none; }
.sk-dmodal-box { width: 392px; max-width: calc(100vw - 32px); background: linear-gradient(#fafbfc, #eef0f3); border: 1px solid #8a93a0; border-radius: 7px;
  box-shadow: 0 18px 36px -12px rgba(16, 20, 28, 0.45), 0 2px 6px rgba(16, 20, 28, 0.16), inset 0 1px 0 #ffffff; overflow: hidden; }
.sk-dmodal-body { display: flex; gap: 14px; padding: 16px 16px 14px; }
.sk-dmodal-icon { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #a1a9b4; border-radius: 6px; background: linear-gradient(#ffffff, #e5e8ec); }
.sk-dmodal-icon svg { width: 34px; height: 34px; }
.sk-dmodal h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.sk-dmodal p { margin: 0 0 8px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.sk-dmodal ul { margin: 0; padding: 0; list-style: none; font-size: 12px; }
.sk-dmodal li { position: relative; padding-left: 20px; margin: 5px 0; }
.sk-dmodal li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #cc66be; }
.sk-dmodal li.ok::before { content: "✓"; background: none; color: #2f9e44; width: auto; height: auto; top: -1px; left: 4px; font-weight: 700; }
.sk-dmodal code { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.sk-dmodal p.sk-dmodal-warn { margin: 12px 0 0; padding: 6px 9px; border-left: 3px solid var(--warn); border-radius: 3px; background: var(--warn-row); color: #8e520c; }
.sk-dmodal .sk-dimdlg-title { margin: 0; }
.sk-dmodal .sk-dimdlg-buttons { margin: 0; }
.sk-dimdlg-title .sk-dimdlg-icon + b { margin-left: -1px; }
#sk-coords { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--muted); margin-right: 14px; white-space: nowrap; }
#sk-coords:empty { display: none; }
.sk-dtemplate { margin: 2px 0 4px; font-size: 12px; color: var(--ink); }
.sk-side.drafting { grid-template-rows: minmax(0, 1fr) !important; }
.sk-side.drafting .sk-sims, .sk-side.drafting .sk-hsplit { display: none !important; }
.sk-dpage-body { max-height: calc(100vh - 230px); overflow-y: auto; margin: 0 -12px; padding: 0 12px; }
.sk-feature .sk-dpage-body .sk-value { width: 24ch; }
.sk-dname { display: flex; align-items: center; gap: 6px; }
.sk-feature .sk-dname .sk-value { width: 18ch; }
.sk-feature .sk-dview-body .sk-dimdlg-row > .sk-value { width: 18ch; }
.sk-dletters { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--ink-2); }
.sk-dimdlg-row.sk-later { color: var(--disabled); }
