body.ws-body {
  margin: 0;
  min-height: 100vh;
  background: #070b14;
}
.ws-page {
  --ws-ink: #e8eef8;
  --ws-muted: #94a3b8;
  --ws-line: rgba(148, 163, 184, 0.18);
  --ws-panel: rgba(11, 18, 32, 0.88);
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem var(--site-pad, 1.25rem) 3rem;
  color: var(--ws-ink);
}
.ws-hero {
  margin: 0 0 1rem;
}
.ws-hero > .ws-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.ws-kicker span { color: #94a3b8; font-size: 0.65rem; letter-spacing: 0; padding-left: 0.7rem; border-left: 1px solid var(--ws-line); }
.ws-hero h1 {
  margin: 0 0 0.25rem;
  font-family: Outfit, DM Sans, sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.ws-hero h1 em {
  font-style: normal;
  color: #bfdbfe;
}
.ws-hero > p {
  margin: 0;
  color: var(--ws-muted);
  line-height: 1.55;
  font-size: 0.85rem;
}
.ws-toolbar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  padding: 0.4rem;
  border: 1px solid var(--ws-line);
  border-radius: 15px;
  background: linear-gradient(115deg, #111d32, #0c1423 65%);
}
.ws-steps {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.ws-step-toggle, .ws-settings-toggle {
  min-height: 44px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  list-style: none;
  cursor: pointer;
  transition: background 0.18s ease;
}
.ws-disclosure > summary::-webkit-details-marker { display: none; }
.ws-disclosure > summary:hover, .ws-disclosure[open] > summary { background: rgba(96, 165, 250, 0.1); }
.ws-step-count { display: flex; align-items: baseline; gap: 0.2rem; font-size: 1.1rem; font-weight: 800; color: #93c5fd; }
.ws-step-count small { font-size: 0.7rem; font-weight: 500; color: #8193b0; }
.ws-current-step { font-size: 0.85rem; font-weight: 700; }
.ws-chevron { width: 6px; height: 6px; flex: none; border: solid #94a3b8; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: -3px 3px 0 5px; transition: transform 0.2s ease; }
.ws-disclosure[open] > summary .ws-chevron, .ws-tools-toggle[aria-expanded="true"] .ws-chevron { transform: translateY(3px) rotate(225deg); }
.ws-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  width: min(440px, 100%);
  box-sizing: border-box;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 16px;
  background: #0e1829;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  max-height: min(520px, 65svh);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: ws-panel-in 0.18s ease both;
}
.ws-step-menu { left: 0; padding: 1rem; }
.ws-steps-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
}
.ws-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}
.ws-step {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--ws-line);
  background: rgba(15, 23, 42, 0.65);
  color: var(--ws-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.ws-step:hover {
  border-color: rgba(96, 165, 250, 0.45);
  transform: translateY(-1px);
}
.ws-step.is-on {
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(37, 99, 235, 0.28);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}
.ws-step.is-done:not(.is-on) {
  border-color: rgba(74, 222, 128, 0.28);
}
.ws-step-n {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
}
.ws-step.is-on .ws-step-n {
  background: #2563eb;
  color: #fff;
}
.ws-step-l {
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.25;
}
.ws-step-l small { display: block; color: var(--ws-muted); font-size: 0.75rem; font-weight: 400; line-height: 1.5; margin-top: 0.25rem; }
.ws-steps-nav {
  display: flex;
  gap: 0.25rem;
}
.ws-step-arrow { width: 36px; height: 36px; border: 1px solid var(--ws-line); border-radius: 10px; color: #cbd5e1; background: transparent; font-size: 1.05rem; cursor: pointer; }
.ws-step-arrow--next { color: #dbeafe; background: #1e3a65; border-color: #315687; }
.ws-step-arrow:hover { background: #254779; }
.ws-settings { margin-left: auto; }
.ws-settings-toggle { gap: 0.6rem; }
.ws-settings-toggle strong { display: block; font-size: 0.78rem; font-weight: 650; }
.ws-settings-toggle small { display: block; margin-top: 2px; font-size: 0.68rem; color: #99f6e4; }
.ws-settings.is-pending .ws-settings-toggle small { color: #fbbf24; }
.ws-settings-icon { width: 22px; height: 22px; color: #93c5fd; flex: none; }
.ws-settings-icon circle { fill: #111d32; }
.ws-page :is(button, summary, input, select, a):focus-visible { outline: 2px solid #93c5fd; outline-offset: 3px; }
.ws-palette-note {
  margin: 0 0 0.65rem;
  color: var(--ws-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}
.ws-coach {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -42%);
  max-width: 22rem;
  width: calc(100% - 2.5rem);
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(8, 13, 24, 0.88);
  backdrop-filter: blur(12px);
  text-align: center;
  pointer-events: none;
  animation: ws-coach-in 0.45s ease both;
}
.ws-coach-title {
  margin: 0 0 0.35rem;
  font-family: Outfit, DM Sans, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #dbeafe;
}
.ws-coach p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.45;
}
@keyframes ws-coach-in {
  from { opacity: 0; transform: translate(-50%, -36%); }
  to { opacity: 1; transform: translate(-50%, -42%); }
}
.ws-help {
  position: absolute;
  z-index: 3;
  left: 0.8rem;
  bottom: 0.75rem;
  max-width: min(22rem, calc(100% - 4.5rem));
  color: #94a3b8;
  font-size: 0.78rem;
}
.ws-help summary {
  cursor: pointer;
  font-weight: 650;
  color: #cbd5e1;
  list-style: none;
}
.ws-help summary::-webkit-details-marker { display: none; }
.ws-help[open] {
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--ws-line);
  background: rgba(8, 13, 24, 0.82);
}
.ws-help p {
  margin: 0.4rem 0 0;
  line-height: 1.45;
}
.ws-scale {
  position: absolute;
  z-index: 3;
  right: 0.8rem;
  bottom: 0.75rem;
  display: grid;
  gap: 0.2rem;
  max-width: calc(100% - 12rem);
  box-sizing: border-box;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--ws-line);
  border-radius: 10px;
  background: rgba(8, 13, 24, 0.88);
  color: #94a3b8;
  font-size: 0.7rem;
  line-height: 1.4;
  pointer-events: none;
}
.ws-scale strong { color: #dbeafe; font-weight: 650; font-size: 0.74rem; }
.ws-scale > span { display: flex; align-items: center; gap: 0.4rem; }
.ws-scale i { width: 9px; height: 9px; border: 1px solid #93c5fd; background: #24344f; }
.ws-facts-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ws-facts[hidden] {
  display: none !important;
}
.ws-facts.is-open {
  animation: ws-panel-in 0.35s ease both;
}
@keyframes ws-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ws-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0.85rem;
}
.ws-palette-wrap {
  position: relative;
  grid-row: 1;
  grid-column: 1;
  min-width: 0;
}
.ws-tools-toggle { display: none; }
.ws-palette {
  box-sizing: border-box;
  min-height: 100%;
  background: var(--ws-panel);
  border: 1px solid var(--ws-line);
  border-radius: 16px;
  padding: 0.85rem 0.75rem 1rem;
}
.ws-palette h2,
.ws-facts h2,
.ws-brief h2,
.ws-method h2 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
}
.ws-group {
  margin: 0 0 0.75rem;
}
.ws-group p {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}
.ws-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ws-tool {
  appearance: none;
  border: 1px solid var(--ws-line);
  background: rgba(15, 23, 42, 0.7);
  color: var(--ws-ink);
  border-radius: 9px;
  padding: 0.38rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}
.ws-tool:hover,
.ws-tool.is-on {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.28);
}
.ws-floor-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.55rem;
}
.ws-stage-wrap {
  position: relative;
  min-height: clamp(420px, calc(100svh - 240px), 820px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ws-line);
  background:
    radial-gradient(1200px 500px at 50% 120%, rgba(37, 99, 235, 0.18), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #070b14 100%);
}
.ws-hud {
  position: absolute;
  z-index: 3;
  left: 0.8rem;
  right: 0.8rem;
  top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  pointer-events: none;
}
.ws-chip {
  pointer-events: none;
  background: rgba(8, 13, 24, 0.72);
  border: 1px solid var(--ws-line);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 650;
  backdrop-filter: blur(10px);
}
.ws-chip strong {
  color: #93c5fd;
  font-weight: 800;
}
.ws-inspector {
  position: absolute;
  z-index: 5;
  left: 0.8rem;
  top: 3.15rem;
  width: min(228px, calc(100% - 4.8rem));
  padding: 0.72rem 0.78rem 0.8rem;
  border-radius: 14px;
  border: 1px solid var(--ws-line);
  background: rgba(8, 13, 24, 0.88);
  backdrop-filter: blur(12px);
  color: var(--ws-ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.ws-inspector[hidden] {
  display: none;
}
.ws-inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin: 0 0 0.2rem;
}
.ws-inspector-kicker {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
}
.ws-inspector-x {
  appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  font: 700 1.05rem/1 inherit;
  cursor: pointer;
}
.ws-inspector-x:hover {
  background: rgba(148, 163, 184, 0.16);
  color: #fff;
}
.ws-inspector-name {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 750;
}
.ws-inspector-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  color: var(--ws-muted);
}
.ws-inspector-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ws-inspector-step,
.ws-inspector-num {
  height: 2.1rem;
  border-radius: 10px;
  border: 1px solid var(--ws-line);
  background: #0f172a;
  color: var(--ws-ink);
  font: inherit;
}
.ws-inspector-step {
  appearance: none;
  width: 2.1rem;
  font-weight: 800;
  cursor: pointer;
}
.ws-inspector-step:hover {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.28);
}
.ws-inspector-num {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  -moz-appearance: textfield;
}
.ws-inspector-num::-webkit-outer-spin-button,
.ws-inspector-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ws-inspector-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #93c5fd;
}
.ws-inspector-hint {
  margin: 0.28rem 0 0;
  font-size: 0.72rem;
  color: var(--ws-muted);
  line-height: 1.4;
}
.ws-viewport {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  cursor: grab;
  overflow: hidden;
  outline: none;
}
.ws-viewport.is-drag {
  cursor: grabbing;
}
.ws-viewport.is-space {
  cursor: move;
}
.ws-viewport.is-pan {
  cursor: grabbing;
}
.ws-world {
  --ws-px-per-m: 22.666667;
  position: absolute;
  left: 50%;
  top: 56%;
  --ws-world-size: 680px;
  width: calc(var(--ws-world-size) * var(--ws-width-ratio, 1));
  height: calc(var(--ws-world-size) * var(--ws-length-ratio, 1));
  transform-style: preserve-3d;
  transform: translate(calc(-50% + var(--ws-pan-x, 0px)), calc(-50% + var(--ws-pan-y, 0px))) rotateX(62deg) rotateZ(var(--ws-az, -38deg)) scale(var(--ws-zoom, 1.35));
  --ws-cell: 2%;
  --ws-cell-major: 4%;
}
.ws-zoom {
  position: absolute;
  z-index: 4;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
  padding: 0.45rem 0.32rem;
  border-radius: 14px;
  background: rgba(8, 13, 24, 0.78);
  border: 1px solid var(--ws-line);
  backdrop-filter: blur(10px);
}
.ws-zoom button {
  appearance: none;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  border: 1px solid var(--ws-line);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  font: 700 1rem/1 inherit;
  cursor: pointer;
}
.ws-zoom button:hover {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.28);
}
.ws-zoom input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 1.15rem;
  height: 118px;
  accent-color: #60a5fa;
  cursor: pointer;
}
.ws-zoom-lbl {
  font-size: 0.66rem;
  font-weight: 800;
  color: #93c5fd;
  letter-spacing: 0.02em;
}
.ws-slab {
  position: absolute;
  inset: 0;
  overflow: visible;
  transform-style: preserve-3d;
  pointer-events: none;
}
.ws-floor-surface {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(186, 210, 240, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 210, 240, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(186, 210, 240, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 210, 240, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(186, 214, 255, 0.11), rgba(15, 23, 42, 0.14));
  background-size: var(--ws-major-x) var(--ws-major-y), var(--ws-major-x) var(--ws-major-y), var(--ws-cell-x) var(--ws-cell-y), var(--ws-cell-x) var(--ws-cell-y), auto;
  color: rgba(186, 214, 255, 0.5);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
  pointer-events: auto;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.ws-slab:not(.is-live) .ws-item {
  pointer-events: auto;
}
.ws-slab:not(.is-live) .ws-face,
.ws-slab:not(.is-live) .ws-cube > span,
.ws-slab:not(.is-live) .ws-rk-line,
.ws-slab:not(.is-live) .ws-rk-beam,
.ws-slab:not(.is-live) .ws-rk-box > span {
  opacity: 0.38;
}
.ws-slab.is-hot:not(.is-live) > .ws-floor-surface {
  background:
    linear-gradient(rgba(125, 211, 252, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.28) 1px, transparent 1px),
    linear-gradient(rgba(125, 211, 252, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, rgba(56, 189, 248, 0.2), rgba(30, 64, 99, 0.22));
  background-size: var(--ws-major-x) var(--ws-major-y), var(--ws-major-x) var(--ws-major-y), var(--ws-cell-x) var(--ws-cell-y), var(--ws-cell-x) var(--ws-cell-y), auto;
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.25), 0 18px 32px rgba(14, 165, 233, 0.12);
}
.ws-slab.is-live > .ws-floor-surface {
  background:
    linear-gradient(rgba(186, 210, 240, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 210, 240, 0.28) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, #24344f, #152033);
  background-size: var(--ws-major-x) var(--ws-major-y), var(--ws-major-x) var(--ws-major-y), var(--ws-cell-x) var(--ws-cell-y), var(--ws-cell-x) var(--ws-cell-y), auto;
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.28),
    0 36px 48px rgba(0, 0, 0, 0.38);
}
.ws-slab.is-live.is-hot > .ws-floor-surface {
  border-color: rgba(147, 197, 253, 0.85);
  background:
    linear-gradient(rgba(147, 197, 253, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.32) 1px, transparent 1px),
    linear-gradient(rgba(147, 197, 253, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, #2b4468, #1a2c48);
  background-size: var(--ws-major-x) var(--ws-major-y), var(--ws-major-x) var(--ws-major-y), var(--ws-cell-x) var(--ws-cell-y), var(--ws-cell-x) var(--ws-cell-y), auto;
}
.ws-uv {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}
.ws-floor-outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ws-floor-outline polygon { fill: none; stroke: #93c5fd; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ws-uv[data-uv="tl"] { left: 0; top: 0; }
.ws-uv[data-uv="tr"] { left: 100%; top: 0; }
.ws-uv[data-uv="br"] { left: 100%; top: 100%; }
.ws-uv[data-uv="bl"] { left: 0; top: 100%; }
.ws-floor-dimension { position: absolute; color: #bfdbfe; pointer-events: none; font: 700 12px/1.2 "DM Sans", sans-serif; }
.ws-floor-dimension::before, .ws-floor-dimension::after { content: ""; position: absolute; background: #93c5fd; }
.ws-floor-dimension--x { left: 0; width: 100%; top: -20px; border-top: 1px solid #93c5fd; }
.ws-floor-dimension--x::before, .ws-floor-dimension--x::after { width: 1px; height: 9px; top: -5px; }
.ws-floor-dimension--x::before { left: 0; }
.ws-floor-dimension--x::after { right: 0; }
.ws-floor-dimension--y { top: 0; height: 100%; left: -20px; border-left: 1px solid #93c5fd; }
.ws-floor-dimension--y::before, .ws-floor-dimension--y::after { height: 1px; width: 9px; left: -5px; }
.ws-floor-dimension--y::before { top: 0; }
.ws-floor-dimension--y::after { bottom: 0; }
.ws-floor-dimension > span { position: absolute; white-space: nowrap; padding: 3px 7px; border-radius: 4px; background: #0b1729; }
.ws-floor-dimension--x > span { left: 50%; transform: translate(-50%, -50%); }
.ws-floor-dimension--y > span { top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.ws-slab:not(.is-live) .ws-floor-dimension { display: none; }
.ws-slab-tag {
  position: absolute;
  left: -2.55rem;
  top: 42%;
  z-index: 4;
  min-width: 1.7rem;
  padding: 0.22rem 0.38rem;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(8, 13, 24, 0.72);
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  pointer-events: auto;
}
.ws-slab.is-live .ws-slab-tag,
.ws-slab.is-hot .ws-slab-tag {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(37, 99, 235, 0.35);
}
.ws-item {
  pointer-events: auto;
  position: absolute;
  transform-style: preserve-3d;
  width: 36px;
  height: 24px;
  margin: -12px 0 0 -18px;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transform: translateZ(2px) rotateZ(var(--ws-rot, 0deg));
}
.ws-item.is-on > .ws-hit {
  outline: 1px solid rgba(96, 165, 250, 0.85);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.45);
}
.ws-item * {
  cursor: inherit;
}
.ws-hit {
  position: absolute;
  inset: -12px -10px -18px;
  z-index: 3;
}
.ws-item.is-hold {
  cursor: grabbing;
  z-index: 6;
}
.ws-item.is-hold > .ws-hit {
  outline: 1px solid rgba(147, 197, 253, 0.95);
  box-shadow: 0 0 10px rgba(147, 197, 253, 0.5);
}
.ws-viewport.is-hold {
  cursor: grabbing;
}
.ws-mesh {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.ws-face {
  position: absolute;
  left: 0;
  top: 0;
  background: #3b82f6;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.ws-item--inbound .ws-face { background: #166534; }
.ws-item--outbound .ws-face { background: #9a3412; }
.ws-item--packing .ws-face { background: #6d28d9; }
.ws-item--stock .ws-face { background: #a16207; }
.ws-item--jack .ws-face { background: #ca8a04; }
.ws-item--rf .ws-face { background: #2563eb; }
.ws-box .ws-front {
  width: 36px;
  height: 20px;
  transform: rotateX(-90deg) translateY(-10px) translateZ(12px);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.35);
}
.ws-box .ws-top {
  width: 36px;
  height: 24px;
  transform: translateZ(20px);
  opacity: 0.92;
}
.ws-box .ws-side {
  width: 24px;
  height: 20px;
  transform: rotateY(90deg) rotateX(-90deg) translateY(-10px) translateZ(24px);
  filter: brightness(0.78);
}
.ws-item--rackWide,
.ws-item--rackNarrow,
.ws-item--rackRetail {
  width: 12%;
  height: 3%;
  margin: 0;
  --rk-bays: 4;
  --rk-levels: 3;
  --rk-step: calc(var(--ws-px-per-m) * 1.6px);
  --rk-h: calc(var(--rk-levels) * var(--rk-step));
  --rk-box-h: calc(var(--ws-px-per-m) * 1.25px);
  --rk-post: calc(var(--ws-px-per-m) * 0.08px);
  transform: translate(-50%, -50%) translateZ(2px) rotateZ(var(--ws-rot, 0deg));
}
.ws-item--rackNarrow {
  height: 2.5%;
  --rk-levels: 4;
  --rk-step: 27px;
  --rk-box-h: 20px;
}
.ws-item--rackRetail {
  width: 10%;
  height: 2.5%;
  --rk-bays: 4;
  --rk-levels: 5;
  --rk-step: 12px;
  --rk-box-h: 9px;
}
.ws-item--rackWide .ws-hit,
.ws-item--rackNarrow .ws-hit,
.ws-item--rackRetail .ws-hit {
  inset: -4px;
}
.ws-rack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.ws-rk {
  position: absolute;
  box-sizing: border-box;
  transform-style: preserve-3d;
}
.ws-rk-up {
  left: calc(var(--i) * (100% - var(--rk-post)) / var(--rk-mods, 1));
  width: var(--rk-post);
  height: var(--rk-post);
}
.ws-rk-up--f { top: 0; }
.ws-rk-up--bk { top: auto; bottom: 0; }
.ws-rk-line {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--rk-post);
  height: var(--rk-h);
  background: #60a5fa;
  transform-origin: top center;
  transform: rotateX(90deg);
}
.ws-rk-line--side {
  width: var(--rk-h);
  height: var(--rk-post);
  transform-origin: left center;
  transform: rotateY(-90deg);
}
.ws-rk-beam {
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(#fbbf24, #ea580c 55%, #c2410c);
  border: 1px solid #9a3412;
  transform-origin: top center;
  transform: translateZ(calc(var(--lv) * var(--rk-step))) rotateX(-90deg);
}
.ws-rk-beam--f { top: 0; }
.ws-rk-beam--bk { top: auto; bottom: 0; }
.ws-rk-box {
  left: calc(var(--rk-post) + (var(--bay) + 0.5) * (100% - 2 * var(--rk-post)) / var(--rk-bays) - var(--rk-load-w) / 2);
  width: var(--rk-load-w);
  top: calc((100% - var(--rk-load-d)) / 2);
  height: var(--rk-load-d);
  transform: translateZ(calc(var(--lv) * var(--rk-step) + var(--rk-box-h) + 1px));
}
.ws-rk-box-top,
.ws-rk-box-front,
.ws-rk-box-side,
.ws-rk-box-label {
  position: absolute;
  box-sizing: border-box;
}
.ws-rk-box-top {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(120, 113, 108, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, #d6c7a8, #b8a88a);
  background-size: 33% 100%, auto;
  border: 1px solid #8b7355;
}
.ws-rk-box-front {
  left: 0;
  right: 0;
  height: var(--rk-box-h);
  background: linear-gradient(#c4b59a, #9a8464);
  border: 1px solid #7c6a4d;
  transform: rotateX(-90deg);
  transform-origin: top;
}
.ws-rk-box-side {
  top: 0;
  right: 0;
  width: var(--rk-box-h);
  height: 100%;
  background: #a89574;
  border: 1px solid #7c6a4d;
  transform: rotateY(-90deg);
  transform-origin: right;
}
.ws-rk-box-label {
  left: 34%;
  width: 32%;
  height: 5px;
  top: 0;
  background: #f8fafc;
  border: 1px solid #64748b;
  transform: rotateX(-90deg) translateY(calc(var(--rk-box-h) * 0.35));
  transform-origin: top;
}
.ws-item--rf { width: 14px; height: 14px; }
.ws-cube {
  position: absolute;
  left: var(--cx, 0);
  top: var(--cy, 0);
  width: var(--cw, 8px);
  height: var(--cd, 8px);
  transform-style: preserve-3d;
  transform: translateZ(var(--cz, 0px));
  pointer-events: none;
}
.ws-cube-top,
.ws-cube-front,
.ws-cube-back,
.ws-cube-east,
.ws-cube-west {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.32);
}
.ws-cube-top { inset: 0; }
.ws-cube-front {
  left: 0;
  right: 0;
  height: var(--ch, 8px);
  transform-origin: top center;
  transform: rotateX(-90deg);
}
.ws-cube-back {
  left: 0;
  right: 0;
  top: 100%;
  height: var(--ch, 8px);
  transform-origin: top center;
  transform: rotateX(-90deg);
}
.ws-cube-east {
  top: 0;
  right: 0;
  width: var(--ch, 8px);
  height: 100%;
  transform-origin: right center;
  transform: rotateY(-90deg);
}
.ws-cube-west {
  top: 0;
  left: 0;
  width: var(--ch, 8px);
  height: 100%;
  transform-origin: left center;
  transform: rotateY(90deg);
}
.ws-item--forklift {
  margin: 0;
  transform: translate(-50%, -50%) translateZ(2px) rotateZ(var(--ws-rot, 0deg));
}
.ws-item--forklift .ws-hit {
  inset: -4px;
}
.ws-lift {
  width: 84px;
  height: 32px;
  transform-style: preserve-3d;
}
.ws-lift, .ws-figure, .ws-stock, .ws-jack {
  transform-origin: 0 0 0;
  transform: scale3d(calc(var(--ws-px-per-m) * var(--mesh-sx)), calc(var(--ws-px-per-m) * var(--mesh-sy)), calc(var(--ws-px-per-m) * var(--mesh-sz)));
}
.ws-stock { width: 36px; height: 24px; }
.ws-stock-load { --cw: 36px; --cd: 24px; --ch: 20px; --cz: 20px; }
.ws-stock-load .ws-cube-top { background: #c4b59a; }
.ws-stock-load .ws-cube-front,
.ws-stock-load .ws-cube-back,
.ws-stock-load .ws-cube-east,
.ws-stock-load .ws-cube-west {
  background: linear-gradient(#c4b59a 86%, #8b5e34 86%);
}
.ws-lf-wheel {
  --cw: 10px;
  --cd: 7px;
  --ch: 10px;
  --cz: 10px;
}
.ws-lf-wheel .ws-cube-top { background: #334155; }
.ws-lf-wheel .ws-cube-front,
.ws-lf-wheel .ws-cube-back,
.ws-lf-wheel .ws-cube-east,
.ws-lf-wheel .ws-cube-west { background: #0f172a; }
.ws-lf-wheel--rl { --cx: 3px; --cy: 1px; }
.ws-lf-wheel--rr { --cx: 3px; --cy: 24px; }
.ws-lf-wheel--fl { --cx: 30px; --cy: 1px; }
.ws-lf-wheel--fr { --cx: 30px; --cy: 24px; }
.ws-lf-counter {
  --cw: 16px;
  --cd: 26px;
  --ch: 18px;
  --cx: 0px;
  --cy: 3px;
  --cz: 28px;
}
.ws-lf-counter .ws-cube-top { background: #7c2d12; }
.ws-lf-counter .ws-cube-front,
.ws-lf-counter .ws-cube-back { background: #9a3412; }
.ws-lf-counter .ws-cube-east,
.ws-lf-counter .ws-cube-west { background: #431407; }
.ws-lf-body {
  --cw: 28px;
  --cd: 22px;
  --ch: 12px;
  --cx: 14px;
  --cy: 5px;
  --cz: 22px;
}
.ws-lf-body .ws-cube-top { background: #fb923c; }
.ws-lf-body .ws-cube-front,
.ws-lf-body .ws-cube-back { background: #ea580c; }
.ws-lf-body .ws-cube-east,
.ws-lf-body .ws-cube-west { background: #c2410c; }
.ws-lf-hood {
  --cw: 14px;
  --cd: 18px;
  --ch: 8px;
  --cx: 26px;
  --cy: 7px;
  --cz: 30px;
}
.ws-lf-hood .ws-cube-top { background: #fdba74; }
.ws-lf-hood .ws-cube-front,
.ws-lf-hood .ws-cube-back { background: #f97316; }
.ws-lf-hood .ws-cube-east,
.ws-lf-hood .ws-cube-west { background: #ea580c; }
.ws-lf-cabin {
  --cw: 18px;
  --cd: 18px;
  --ch: 22px;
  --cx: 14px;
  --cy: 7px;
  --cz: 44px;
}
.ws-lf-cabin .ws-cube-top { background: #9a3412; }
.ws-lf-cabin .ws-cube-front {
  background:
    linear-gradient(#7dd3fc, #0284c7) 2px 4px / calc(100% - 4px) 12px no-repeat,
    #c2410c;
}
.ws-lf-cabin .ws-cube-back { background: #7c2d12; }
.ws-lf-cabin .ws-cube-east,
.ws-lf-cabin .ws-cube-west {
  background:
    linear-gradient(#38bdf8, #0369a1) 2px 4px / calc(100% - 4px) 12px no-repeat,
    #7c2d12;
}
.ws-lf-roof {
  --cw: 22px;
  --cd: 22px;
  --ch: 4px;
  --cx: 12px;
  --cy: 5px;
  --cz: 48px;
}
.ws-lf-roof .ws-cube-top { background: #1e293b; }
.ws-lf-roof .ws-cube-front,
.ws-lf-roof .ws-cube-back,
.ws-lf-roof .ws-cube-east,
.ws-lf-roof .ws-cube-west { background: #0f172a; }
.ws-lf-post {
  --cw: 4px;
  --cd: 4px;
  --ch: 22px;
  --cy: 7px;
  --cz: 44px;
}
.ws-lf-post--l { --cx: 14px; }
.ws-lf-post--r { --cx: 28px; }
.ws-lf-post .ws-cube-top { background: #64748b; }
.ws-lf-post .ws-cube-front,
.ws-lf-post .ws-cube-back,
.ws-lf-post .ws-cube-east,
.ws-lf-post .ws-cube-west { background: #334155; }
.ws-lf-mast {
  --cw: 10px;
  --cd: 20px;
  --ch: 42px;
  --cx: 44px;
  --cy: 6px;
  --cz: 46px;
}
.ws-lf-mast .ws-cube-top { background: #cbd5e1; }
.ws-lf-mast .ws-cube-front,
.ws-lf-mast .ws-cube-back { background: #64748b; }
.ws-lf-mast .ws-cube-east,
.ws-lf-mast .ws-cube-west { background: #334155; }
.ws-lf-tine {
  --cw: 28px;
  --cd: 7px;
  --ch: 5px;
  --cx: 52px;
  --cz: 12px;
}
.ws-lf-tine--l { --cy: 6px; }
.ws-lf-tine--r { --cy: 19px; }
.ws-lf-tine .ws-cube-top { background: #f8fafc; }
.ws-lf-tine .ws-cube-front,
.ws-lf-tine .ws-cube-back { background: #cbd5e1; }
.ws-lf-tine .ws-cube-east,
.ws-lf-tine .ws-cube-west { background: #94a3b8; }
.ws-item--worker, .ws-item--stock {
  margin: 0;
  transform: translate(-50%, -50%) translateZ(2px) rotateZ(var(--ws-rot, 0deg));
}
.ws-item--worker .ws-hit {
  inset: -4px;
}
.ws-figure {
  width: 22px;
  height: 16px;
  transform-style: preserve-3d;
}
.ws-hm-leg {
  --cw: 7px;
  --cd: 7px;
  --ch: 14px;
  --cy: 4px;
  --cz: 14px;
}
.ws-hm-leg--l { --cx: 2px; }
.ws-hm-leg--r { --cx: 13px; }
.ws-hm-leg .ws-cube-top { background: #1e3a5f; }
.ws-hm-leg .ws-cube-front,
.ws-hm-leg .ws-cube-back { background: #172554; }
.ws-hm-leg .ws-cube-east,
.ws-hm-leg .ws-cube-west { background: #0f172a; }
.ws-hm-torso {
  --cw: 16px;
  --cd: 10px;
  --ch: 16px;
  --cx: 3px;
  --cy: 3px;
  --cz: 30px;
}
.ws-hm-torso .ws-cube-top { background: #ea580c; }
.ws-hm-torso .ws-cube-front {
  background:
    linear-gradient(#fde047, #fde047) 0 7px / 100% 3px no-repeat,
    #ea580c;
}
.ws-hm-torso .ws-cube-back { background: #9a3412; }
.ws-hm-torso .ws-cube-east,
.ws-hm-torso .ws-cube-west { background: #c2410c; }
.ws-hm-arm {
  --cw: 4px;
  --cd: 5px;
  --ch: 14px;
  --cy: 5px;
  --cz: 30px;
}
.ws-hm-arm--l { --cx: 0px; }
.ws-hm-arm--r { --cx: 18px; }
.ws-hm-arm .ws-cube-top { background: #fb923c; }
.ws-hm-arm .ws-cube-front,
.ws-hm-arm .ws-cube-back { background: #ea580c; }
.ws-hm-arm .ws-cube-east,
.ws-hm-arm .ws-cube-west { background: #9a3412; }
.ws-hm-head {
  --cw: 8px;
  --cd: 8px;
  --ch: 8px;
  --cx: 7px;
  --cy: 4px;
  --cz: 38px;
}
.ws-hm-head .ws-cube-top { background: #e8b89a; }
.ws-hm-head .ws-cube-front { background: #f0c4a8; }
.ws-hm-head .ws-cube-back { background: #8b5a42; }
.ws-hm-head .ws-cube-east,
.ws-hm-head .ws-cube-west { background: #c9896e; }
.ws-hm-hat {
  --cw: 10px;
  --cd: 9px;
  --ch: 6px;
  --cx: 6px;
  --cy: 3.5px;
  --cz: 44px;
}
.ws-hm-hat .ws-cube-top { background: #facc15; }
.ws-hm-hat .ws-cube-front { background: #eab308; }
.ws-hm-hat .ws-cube-back { background: #a16207; }
.ws-hm-hat .ws-cube-east,
.ws-hm-hat .ws-cube-west { background: #ca8a04; }

/* Small devices are labelled map pins, not oversized warehouse equipment. */
.ws-item--rf, .ws-item--ap, .ws-item--jack,
.ws-item--inbound, .ws-item--outbound, .ws-item--packing {
  margin: 0;
  transform: translate(-50%, -50%) translateZ(2px) rotateZ(var(--ws-rot, 0deg));
}
.ws-device-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  border: 1px solid #60a5fa;
  border-radius: 9px 9px 9px 0;
  background: #0f172a;
  color: #dbeafe;
  transform-origin: 0 0;
  transform: rotateZ(calc(-1 * (var(--ws-az, -38deg) + var(--ws-rot, 0deg)))) rotateX(-62deg) scale(calc(1 / var(--ws-zoom, 1.35))) translate(-50%, -100%);
  white-space: nowrap;
  font: 700 10px/1.1 "DM Sans", sans-serif;
}
.ws-device-pin svg { display: block; width: 26px; height: 26px; flex: none; }
.ws-device-pin--ap { border-color: #2dd4bf; color: #99f6e4; }
.ws-item.is-on > .ws-device-pin, .ws-item.is-hold > .ws-device-pin { outline: 2px solid #fbbf24; outline-offset: 2px; }
.ws-slab:not(.is-live) .ws-device-pin { opacity: 0.5; }
.ws-device-legend { margin: 0.7rem 0 0; font-size: 0.73rem; color: #94a3b8; line-height: 1.5; }
.ws-item--jack .ws-hit { inset: -4px; }
.ws-jack { width: 62px; height: 22px; }
.ws-jack .ws-cube-top { background: #fbbf24; }
.ws-jack .ws-cube-front, .ws-jack .ws-cube-back { background: #ca8a04; }
.ws-jack .ws-cube-east, .ws-jack .ws-cube-west { background: #a16207; }
.ws-jk-fork { --cx: 12px; --cw: 50px; --cd: 6px; --ch: 3px; --cz: 5px; }
.ws-jk-fork--l { --cy: 1px; }
.ws-jk-fork--r { --cy: 15px; }
.ws-jk-pump { --cx: 3px; --cy: 6px; --cw: 13px; --cd: 10px; --ch: 10px; --cz: 14px; }
.ws-jk-wheel { --cx: 1px; --cy: 5px; --cw: 5px; --cd: 12px; --ch: 8px; --cz: 8px; }
.ws-jk-roller { --cx: 52px; --cw: 6px; --cd: 5px; --ch: 3px; --cz: 3px; }
.ws-jk-roller--l { --cy: 1.5px; }
.ws-jk-roller--r { --cy: 15.5px; }
.ws-jk-stem { --cx: 5px; --cy: 9px; --cw: 3px; --cd: 4px; --ch: 28px; --cz: 40px; }
.ws-jk-grip { --cx: 5px; --cw: 3px; --cd: 3px; --ch: 11px; --cz: 48px; }
.ws-jk-grip--l { --cy: 3px; }
.ws-jk-grip--r { --cy: 16px; }
.ws-jk-grip-top { --cx: 5px; --cy: 3px; --cw: 3px; --cd: 16px; --ch: 3px; --cz: 48px; }
.ws-jk-wheel > span, .ws-jk-roller > span { background: #334155 !important; }
.ws-jk-stem > span, .ws-jk-grip > span, .ws-jk-grip-top > span { background: #94a3b8 !important; }
.ws-item--inbound .ws-hit, .ws-item--outbound .ws-hit, .ws-item--packing .ws-hit { inset: 0; }
.ws-zone-mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed currentColor;
  color: #86efac;
  background: rgba(22, 101, 52, 0.3);
  font-size: clamp(6px, calc(var(--ws-px-per-m) * 0.3px), 12px);
  font-weight: 800;
  text-align: center;
  pointer-events: none;
}
.ws-zone-icon { font-size: 2em; line-height: 1; }
.ws-item--outbound .ws-zone-mark { color: #fdba74; background: rgba(154, 52, 18, 0.3); }
.ws-item--packing .ws-zone-mark { color: #d8b4fe; background: rgba(109, 40, 217, 0.3); }
.ws-slab:not(.is-live) .ws-zone-mark { opacity: 0.4; }
.ws-layout {
  right: 0;
  margin: 0;
  padding: 1rem;
}
.ws-dropdown-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 1rem; }
.ws-layout h2 { font-size: 1rem; margin: 0; }
.ws-panel-close { width: 32px; height: 32px; border: 1px solid var(--ws-line); border-radius: 9px; color: #cbd5e1; font-size: 1.3rem; background: transparent; cursor: pointer; }
.ws-panel-close:hover { background: #1e293b; }
.ws-layout-fields { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 0.8rem; }
.ws-layout-fields .ws-btn { grid-column: 1 / -1; gap: 0.75rem; }
.ws-layout label { display: grid; gap: 0.4rem; color: #cbd5e1; font-size: 0.8rem; min-width: 0; }
.ws-layout input { box-sizing: border-box; width: 100%; min-width: 0; padding: 0.6rem; border: 1px solid var(--ws-line); border-radius: 9px; background: #0f172a; color: #f1f5f9; font: inherit; }
.ws-layout select { box-sizing: border-box; width: 100%; min-width: 0; padding: 0.6rem; border: 1px solid var(--ws-line); border-radius: 9px; background: #0f172a; color: #f1f5f9; font: inherit; }
.ws-layout-wide { grid-column: 1 / -1; }
.ws-wing-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin: 0; padding: 0.8rem; border: 1px solid #315687; border-radius: 10px; min-width: 0; }
.ws-wing-fields[hidden], #ws-inferred-note[hidden] { display: none; }
.ws-wing-fields legend { font-size: 0.73rem; color: #93c5fd; padding: 0 0.3rem; }
.ws-footprint-preview { display: flex; align-items: center; gap: 0.8rem; border-radius: 10px; background: #081321; padding: 0.65rem; color: #94a3b8; font-size: 0.75rem; }
.ws-footprint-preview svg { width: 110px; height: 90px; flex: none; }
.ws-preview-section { fill: #1e3a65; stroke: #60a5fa; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ws-preview-section--1 { fill: #0d514e; stroke: #5eead4; }
.ws-footprint-preview text { fill: #e2e8f0; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.ws-footprint-preview strong { display: block; color: #99f6e4; font-size: 0.78rem; margin-bottom: 0.35rem; }
.ws-footprint-preview span { line-height: 1.5; }
.ws-layout p { margin: 0.6rem 0 0; font-size: 0.78rem; color: #94a3b8; line-height: 1.5; }
.ws-layout #ws-ap-summary { color: #99f6e4; font-weight: 650; }
.ws-layout #ws-layout-status { color: #fbbf24; }
.ws-layout #ws-layout-status:empty { display: none; }
.ws-layout a { color: #93c5fd; }
.ws-layout-help { margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid var(--ws-line); }
.ws-layout-help > summary { font-size: 0.75rem; color: #94a3b8; cursor: pointer; }
.ws-actions a[aria-disabled="true"] { opacity: 0.65; }

.ws-structure-tools { margin: 0.6rem 0 0.8rem; }
.ws-tool-status { color: #fbbf24; font-size: 0.75rem; line-height: 1.4; }
.ws-tool-status:empty { display: none; }
#ws-mezz-use { box-sizing: border-box; width: 100%; padding: 0.5rem; background: #0f172a; color: #f1f5f9; border: 1px solid var(--ws-line); border-radius: 8px; font: inherit; font-size: 0.8rem; }
.ws-item--rackMezzanine, .ws-item--mezzanineFloor {
  margin: 0;
  transform: translate(-50%, -50%) translateZ(2px) rotateZ(var(--ws-rot, 0deg));
}
.ws-item--dock { margin: 0; transform: translate(-50%, -50%) translateZ(2px) rotateZ(var(--ws-rot, 0deg)); }
.ws-dock-deck > span { background: #475569; }
.ws-dock-deck .ws-cube-top { background: repeating-linear-gradient(45deg, #facc15 0 5px, #1e293b 5px 10px) bottom / 100% 12% no-repeat, #64748b; }
.ws-dock-shutter > span { background: repeating-linear-gradient(#3b82f6 0 4px, #1e40af 4px 5px); }
.ws-dock-frame > span { background: #facc15; }
.ws-dock-bumper > span { background: #111827; }
.ws-dock-caption { position: absolute; left: 5%; top: 52%; width: 90%; text-align: center; font-size: calc(var(--ws-px-per-m) * 0.25px); font-weight: 800; color: white; pointer-events: none; }
.ws-item--rackMezzanine .ws-hit, .ws-item--mezzanineFloor .ws-hit { inset: -3px; }
.ws-mezz { pointer-events: none; }
.ws-mezz .ws-mz-part { pointer-events: auto; }
.ws-mz-part > span { border-width: 0.5px; border-color: rgba(15, 23, 42, 0.3); }
.ws-mz-upright > span { background: #3b82f6; }
.ws-mz-upright .ws-cube-top { background: #93c5fd; }
.ws-mz-deck > span { background: #475569; }
.ws-mz-deck .ws-cube-top {
  background: repeating-linear-gradient(90deg, #8190a3 0, #8190a3 3px, #64748b 3px, #64748b 4px);
}
.ws-mz-rail > span { background: #fbbf24; border: 0; }
.ws-mz-step > span, .ws-mz-shelf > span { background: #cbd5e1; }
.ws-mz-step .ws-cube-top { background: #e2e8f0; }
.ws-mz-bin > span { background: #2b6d8e; }
.ws-mz-bin .ws-cube-top { background: #13384c; border: 1px solid #67a4bc; }
.ws-mz-bin .ws-cube-front, .ws-mz-bin .ws-cube-back {
  background: linear-gradient(#e2e8f0, #e2e8f0) center 60% / 45% 22% no-repeat, #3b7997;
}
.ws-mz-office-wall > span { background: #7ea3bb; }
.ws-mz-office-wall .ws-cube-front, .ws-mz-office-wall .ws-cube-back {
  background: repeating-linear-gradient(90deg, transparent 0, transparent 18px, #475569 18px, #475569 20px), linear-gradient(#93c5dd 0%, #b5d9ea 72%, #64748b 72%);
}
.ws-mz-desk > span { background: #a88457; }
.ws-mz-desk .ws-cube-top { background: #d7ba86; }
.ws-mz-screen > span { background: #0e7490; border-color: #0f172a; }
.ws-mz-seat > span { background: #334155; }
.ws-mz-carton > span { background: #b99668; }
.ws-mz-carton .ws-cube-top { background: linear-gradient(90deg, #c9ad80 43%, #e8d5ac 43%, #e8d5ac 56%, #c9ad80 56%); }
.ws-mz-caption { position: absolute; padding: 2px 4px; color: #f8fafc; background: #334155; white-space: nowrap; font-size: clamp(5px, calc(var(--ws-px-per-m) * 0.24px), 12px); font-weight: 700; pointer-events: none; }
.ws-facts {
  grid-column: 1 / -1;
  min-width: 0;
  background: var(--ws-panel);
  border: 1px solid var(--ws-line);
  border-radius: 16px;
  padding: 0.95rem 1rem 1.1rem;
}
.ws-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}
.ws-field { min-width: 0; }
.ws-field--wide { grid-column: 1 / -1; }
.ws-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 0.28rem;
}
.ws-field .ws-note {
  margin: 0.28rem 0 0;
  font-size: 0.75rem;
  color: var(--ws-muted);
  line-height: 1.45;
}
.ws-field select,
.ws-field textarea {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--ws-line);
  background: #0f172a;
  color: var(--ws-ink);
  padding: 0.45rem 0.55rem;
  font: inherit;
}
.ws-field textarea {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.45;
}
@media (min-width: 1100px) {
  .ws-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ws-field:not(.ws-field--wide) label { min-height: 2.8em; line-height: 1.4; }
}
@media (max-width: 640px) {
  .ws-fields { grid-template-columns: 1fr; }
}
.ws-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.ws-brief {
  grid-column: 1 / -1;
  background: var(--ws-panel);
  border: 1px solid var(--ws-line);
  border-radius: 16px;
  padding: 1rem 1.1rem 1.15rem;
}
.ws-cards {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 800px) {
  .ws-cards { grid-template-columns: 1fr 1fr; }
}
.ws-card {
  border: 1px solid var(--ws-line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: rgba(15, 23, 42, 0.55);
}
.ws-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.ws-card p {
  margin: 0;
  color: var(--ws-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.ws-card--wms {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(37, 99, 235, 0.12);
}
.ws-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  padding: 0.62rem 1rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
}
.ws-btn--ghost {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid var(--ws-line);
}
.ws-method {
  grid-column: 1 / -1;
  margin-top: 0.2rem;
  color: var(--ws-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.ws-method a { color: #93c5fd; }
@media (max-width: 900px) {
  .ws-shell {
    grid-template-columns: 1fr;
  }
  .ws-palette-wrap { grid-row: auto; z-index: 8; }
  .ws-tools-toggle { box-sizing: border-box; display: flex; width: 100%; min-height: 42px; align-items: center; gap: 0.5rem; padding: 0.5rem 0.8rem; border: 1px solid var(--ws-line); border-radius: 12px; background: #111d32; color: #dbeafe; font: 650 0.8rem "DM Sans", sans-serif; text-align: left; cursor: pointer; }
  .ws-tools-toggle .ws-chevron { margin-left: auto; }
  .ws-palette { display: none; position: absolute; top: calc(100% + 7px); left: 0; width: min(400px, 100%); min-height: 0; max-height: min(420px, 60svh); overflow-y: auto; overscroll-behavior: contain; background: #0e1829; box-shadow: 0 20px 40px #0009; }
  .ws-palette-wrap.is-open .ws-palette { display: block; animation: ws-panel-in 0.18s ease both; }
  .ws-stage-wrap { min-height: clamp(350px, calc(100svh - 290px), 620px); }
  .ws-help { bottom: 4.6rem; }
  .ws-scale { left: 0.8rem; max-width: none; }
  .ws-hud { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; pointer-events: auto; touch-action: pan-x; mask-image: linear-gradient(to right, #000 90%, transparent); }
  .ws-hud::-webkit-scrollbar { display: none; }
  .ws-chip { flex: none; white-space: nowrap; }
  .ws-world { --ws-world-size: 520px; }
}
@media (max-width: 560px) {
  .ws-page { padding-top: 0.8rem; }
  .ws-hero { margin-bottom: 0.75rem; }
  .ws-hero > p:not(.ws-kicker) { font-size: 0.78rem; max-width: 30rem; }
  .ws-toolbar { gap: 0.2rem; padding: 0.25rem; }
  .ws-steps { flex: 1; gap: 0.1rem; }
  .ws-step-picker { flex: 1; min-width: 0; }
  .ws-step-toggle { gap: 0.4rem; padding: 0.3rem 0.4rem; }
  .ws-current-step { max-width: 6.8rem; font-size: 0.72rem; line-height: 1.25; }
  .ws-step-count { flex-direction: column; align-items: center; gap: 0; font-size: 0.95rem; line-height: 1.1; }
  .ws-step-count small { font-size: 0.6rem; }
  .ws-step-arrow { width: 28px; height: 38px; border-radius: 8px; }
  .ws-step-arrow[data-act="step-back"] { display: none; }
  .ws-settings-toggle { padding: 0.3rem 0.45rem; gap: 0.3rem; }
  .ws-settings-icon { display: none; }
  .ws-settings-toggle strong { font-size: 0.72rem; }
  .ws-settings-toggle small { font-size: 0.62rem; max-width: 7rem; }
  .ws-settings-toggle .ws-chevron { margin-left: 2px; }
  .ws-layout-fields { grid-template-columns: 1fr; }
  .ws-dropdown { max-height: 60svh; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-dropdown, .ws-palette-wrap.is-open .ws-palette { animation: none; }
  .ws-chevron, .ws-step, .ws-step-toggle, .ws-settings-toggle { transition: none; }
}

/* KVKK — serbest metin kutusunun altındaki şeffaflık notu. */
.ws-pains-note {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.8;
}
.ws-pains-note a { color: inherit; }

/* 3D motor künyesi: sahnenin hemen altında, sessiz bir imza. Üzerine gelince belirginleşir.
   Teknoloji ortaklığı bildirimidir; dizin sıralamasını etkilemez (bkz. yayın ilkeleri). */
.ws-engine {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.3rem 0.15rem;
  border-radius: 10px;
  text-decoration: none;
  color: #94a3b8;
  opacity: 0.55;
  transition: opacity 0.18s ease, color 0.18s ease;
}
.ws-engine:hover,
.ws-engine:focus-visible { opacity: 1; color: #e2e8f0; }
.ws-engine:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }
.ws-engine__mark {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(140deg, #60a5fa, #1d4ed8);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.28);
}
.ws-engine__text { display: flex; align-items: baseline; gap: 0.42rem; }
.ws-engine__label {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.ws-engine__brand { font-size: 0.8rem; font-weight: 650; }
@media (max-width: 560px) {
  .ws-engine__label { display: none; }
  .ws-engine__brand { font-size: 0.74rem; }
}
}

/* Yöntem şeridi: uzun açıklamalar (i) ipuçlarının arkasında durur. */
.ws-method__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.4rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--ws-muted, #64748b);
}

.ws-method__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ws-pains-note .ui-tip { margin-left: 0.15rem; }

/* Rack direction: placement default + inspector rotate */
.ws-dir-note { margin: 0.35rem 0 0; font-size: 0.7rem; line-height: 1.35; color: var(--ws-muted); }
.ws-inspector-rot { margin-bottom: 0.6rem; }
.ws-inspector-hint + .ws-inspector-label { margin-top: 0.6rem; }
.ws-group .ws-dir-note { font-weight: 400; text-transform: none; letter-spacing: 0; }
.ws-rot-value { display: flex; align-items: center; justify-content: center; }

/* Dark, thin scrollbars for side panel and dropdowns (no stray horizontal bar) */
.ws-palette { overflow-x: hidden; }
.ws-palette, .ws-dropdown, .wp-dialog {
  scrollbar-width: thin;
  scrollbar-color: #334a6b transparent;
}
.ws-palette::-webkit-scrollbar, .ws-dropdown::-webkit-scrollbar, .wp-dialog::-webkit-scrollbar { width: 8px; height: 8px; }
.ws-palette::-webkit-scrollbar-track, .ws-dropdown::-webkit-scrollbar-track, .wp-dialog::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
.ws-palette::-webkit-scrollbar-thumb, .ws-dropdown::-webkit-scrollbar-thumb, .wp-dialog::-webkit-scrollbar-thumb {
  background: #334a6b; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box;
}
.ws-palette::-webkit-scrollbar-thumb:hover, .ws-dropdown::-webkit-scrollbar-thumb:hover, .wp-dialog::-webkit-scrollbar-thumb:hover { background-color: #4b6a96; }
.ws-palette::-webkit-scrollbar-corner, .ws-dropdown::-webkit-scrollbar-corner { background: transparent; }
.ws-palette .wp-tools select, .ws-palette .wp-tools input { max-width: 100%; box-sizing: border-box; }

/* Rack bays (columns) */
.ws-grow { gap: 0.35rem; margin-bottom: 0.2rem; }
.ws-grow-btn { flex: 1; height: 2rem; border-radius: 9px; border: 1px solid var(--ws-line); background: #0f172a; color: var(--ws-ink); font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.ws-grow-btn:hover, .ws-grow-btn.is-on { border-color: rgba(96, 165, 250, 0.55); background: rgba(37, 99, 235, 0.28); }
.ws-inspector .ws-grow-label { margin-top: 0.55rem; }
.ws-modules-hint.is-error { color: #fca5a5; }
#ws-inspector { max-height: calc(100% - 4.5rem); overflow-y: auto; }

/* Hero: where the plan can be used (click a chip for details) */
.ws-uses { margin-top: 0.85rem; }
.ws-uses-lead { margin: 0 0 0.45rem; font-size: 0.74rem; font-weight: 700; color: #cbd5e1; }
.ws-uses-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ws-use { position: relative; }
.ws-use > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
  padding: 0.38rem 0.7rem; border-radius: 999px; border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(30, 58, 138, 0.28); color: #e2e8f0; font-size: 0.76rem; font-weight: 650; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.ws-use > summary::-webkit-details-marker { display: none; }
.ws-use > summary::after { content: "i"; display: inline-grid; place-items: center; width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid rgba(147, 197, 253, 0.6); color: #93c5fd; font-size: 0.62rem; font-style: italic; font-family: Georgia, serif; }
.ws-use > summary:hover, .ws-use[open] > summary { border-color: #60a5fa; background: rgba(37, 99, 235, 0.42); }
.ws-use > summary:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.ws-use-pop {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: min(330px, 86vw);
  padding: 0.85rem 0.95rem; border-radius: 12px; border: 1px solid #3b5b8a; background: #0f1d33;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6); color: #cbd5e1; animation: ws-panel-in 0.16s ease both;
}
.ws-use-pop::before { content: ""; position: absolute; top: -6px; left: 1.2rem; width: 10px; height: 10px; background: #0f1d33; border-left: 1px solid #3b5b8a; border-top: 1px solid #3b5b8a; transform: rotate(45deg); }
.ws-use-pop strong { display: block; margin-bottom: 0.3rem; color: #f8fafc; font-size: 0.85rem; }
.ws-use-pop p { margin: 0; font-size: 0.78rem; line-height: 1.55; }
.ws-use:nth-last-child(-n+2) .ws-use-pop { left: auto; right: 0; }
.ws-use:nth-last-child(-n+2) .ws-use-pop::before { left: auto; right: 1.2rem; }
.ws-uses-foot { margin: 0.55rem 0 0; font-size: 0.7rem; color: #94a3b8; }
@media (max-width: 720px) {
  .ws-uses-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: none; }
  .ws-uses-row::-webkit-scrollbar { display: none; }
  .ws-use { position: static; }
  .ws-uses { position: relative; }
  .ws-use-pop, .ws-use:nth-last-child(-n+2) .ws-use-pop { left: 0; right: 0; width: auto; top: calc(100% - 1.4rem); }
  .ws-use-pop::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ws-use-pop { animation: none; } }

/* Floor visibility toggles */
.ws-floor-pick { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .35rem .15rem .15rem; border: 1px solid var(--ws-line); border-radius: 11px; }
.ws-floor-pick.is-hidden .ws-tool { opacity: .5; text-decoration: line-through; }
.ws-floor-eye { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; color: var(--ws-muted); cursor: pointer; }
.ws-floor-eye input { width: 15px; height: 15px; margin: 0; accent-color: #3b82f6; cursor: pointer; }
.ws-floor-eye input:disabled { cursor: not-allowed; }
.ws-floor-eye input:disabled + span { opacity: .6; }

/* Slim selection bar for small objects (dock, AP, RF, pallet jack) */
.ws-inspector.is-mini { width: auto; max-width: calc(100% - 5rem); padding: .3rem .35rem .3rem .7rem; border-radius: 999px; }
.ws-mini-row { display: flex; align-items: center; gap: .45rem; }
.ws-inspector.is-mini .ws-inspector-name { margin: 0; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-mini-del { display: inline-flex; align-items: center; gap: .3rem; height: 1.9rem; padding: 0 .65rem; border-radius: 999px; border: 1px solid rgba(248, 113, 113, .45); background: transparent; color: #fca5a5; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.ws-mini-del:hover { background: rgba(239, 68, 68, .16); color: #fecaca; }
.ws-inspector.is-mini .ws-inspector-x { flex: none; }
.ws-inspector.is-mini .ws-inspector-hint { margin: .35rem .3rem .2rem 0; font-size: .74rem; white-space: normal; max-width: 18rem; }

/* Newly placed object: brief glow so it is obvious the placement worked */
.ws-item.is-new { animation: ws-new-glow 1.6s ease-out 1; }
@keyframes ws-new-glow { 0%, 40% { filter: drop-shadow(0 0 10px #60a5fa) drop-shadow(0 0 4px #93c5fd); } 100% { filter: none; } }
@media (prefers-reduced-motion: reduce) { .ws-item.is-new { animation: none; filter: drop-shadow(0 0 6px #60a5fa); } }

/* Full screen */
.ws-fullscreen { position: absolute; z-index: 6; top: .65rem; right: .65rem; display: inline-flex; align-items: center; gap: .4rem; height: 2.1rem; padding: 0 .7rem; border-radius: 10px; border: 1px solid var(--ws-line); background: rgba(8, 13, 24, .82); color: var(--ws-ink); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; backdrop-filter: blur(8px); }
.ws-fullscreen:hover { border-color: rgba(96, 165, 250, .6); }
.ws-fullscreen:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.ws-fullscreen .ws-fs-out { display: none; }
.ws-page.is-full .ws-fullscreen .ws-fs-in { display: none; }
.ws-page.is-full .ws-fullscreen .ws-fs-out { display: inline; }
@media (max-width: 640px) { .ws-fullscreen span { display: none; } .ws-fullscreen { padding: 0 .5rem; } }
.ws-page.is-full { max-width: none !important; width: 100%; margin: 0; padding: .7rem .9rem; box-sizing: border-box; overflow: auto; background: #070b14; }
.ws-page.is-pseudo-full { position: fixed; inset: 0; z-index: 1000; height: 100dvh; }
html.ws-no-scroll, html.ws-no-scroll body { overflow: hidden; }
.ws-page.is-full > :not(.ws-toolbar):not(.wp-toolbar):not(.ws-shell) { display: none !important; }
.ws-page.is-full .ws-shell > :not(.ws-palette-wrap):not(.ws-stage-wrap) { display: none !important; }
.ws-page.is-full .ws-toolbar, .ws-page.is-full .wp-toolbar { margin-top: 0; margin-bottom: .55rem; }
.ws-page.is-full .ws-stage-wrap { min-height: 0; height: calc(100vh - 9.5rem); height: calc(100dvh - 9.5rem); }
.ws-page.is-full .ws-palette { max-height: calc(100dvh - 9.5rem); }
