.workbench-launch {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 18px;
  margin: 20px 0;
  text-align: left;
  border: 1px solid var(--primary-line);
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
}
.workbench-launch .eyebrow {
  font-size: 8px;
  color: var(--primary);
}
.workbench-launch strong {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
}
.workbench-launch small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}
.followup-action-summary {
  margin: 16px 0;
  padding: 14px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  font-size: 11px;
  line-height: 1.9;
}
.followup-action-summary p {
  margin: 6px 0 10px;
  color: var(--muted);
}

#workbench {
  inset: 0;
  margin: 0;
  padding: 28px 36px 20px;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: auto;
  --wb-duration: 360ms;
}
#workbench::backdrop {
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  backdrop-filter: none;
}
#workbench .eyebrow {
  letter-spacing: 1.6px;
  font-size: 9px;
  color: var(--muted);
}
.wb-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.wb-header h1 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 2px;
  margin: 8px 0;
}
.wb-header p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.wb-header-end {
  display: flex;
  align-items: center;
  gap: 28px;
}
.wb-header-end > span {
  font-size: 10px;
  color: var(--muted);
}
.wb-header-end b {
  font: 11px var(--number);
  margin-left: 12px;
  color: var(--text);
}
.wb-header .icon-button {
  background: var(--surface);
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
}
.wb-status {
  display: inline-block;
  margin: 16px 0 22px;
  padding: 9px 14px;
  font-size: 12px;
  line-height: 1.7;
  background: var(--surface);
  border-left: 3px solid var(--primary);
  box-shadow: 0 3px 12px #00000009;
}
.wb-status[data-blocked="true"] {
  border-left-color: var(--at-risk);
}
.wb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 30px;
}
.wb-desk {
  min-width: 0;
}
.wb-document-space {
  perspective: 1100px;
  padding: 4px 20px 0;
}
.wb-sheet {
  position: relative;
  max-width: 590px;
  margin: 0 auto;
  padding: 25px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  transform: rotateX(7deg);
  transform-origin: center bottom;
  box-shadow:
    0 18px 30px #00000012,
    0 4px 0 var(--surface-raised),
    0 5px 0 var(--line);
  cursor: pointer;
  animation: wb-sheet-in var(--wb-duration) var(--wb-ease, var(--ease)) both;
}
.wb-sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.wb-sheet-top > span:last-child {
  font-size: 10px;
  color: var(--accent);
}
.wb-sheet h2 {
  font-size: clamp(18px, 1.8vw, 27px);
  line-height: 1.5;
  font-weight: 500;
  margin: 22px 0 9px;
}
.wb-sheet > p {
  font-size: 11px;
  color: var(--muted);
}
.wb-sheet-value {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 22px 0;
}
.wb-sheet-value small {
  font-size: 10px;
  color: var(--muted);
}
.wb-sheet-value strong {
  font: 26px var(--number);
  letter-spacing: -1px;
}
.wb-sheet-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
}
.wb-sheet-dates b {
  font: 10px var(--number);
  margin-left: 6px;
}
.wb-sheet-corner {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0 auto;
  padding: 0;
  color: var(--primary);
  font-size: 10px;
}
.wb-connector {
  height: 64px;
  width: 100%;
  pointer-events: none;
}
.wb-connector svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.wb-connector path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  animation: wb-path-in var(--wb-duration) var(--wb-ease, var(--ease)) both;
}
.wb-timeline {
  padding: 18px 18px 0;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
}
.wb-timeline-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  padding: 0 2px 20px;
}
.wb-timeline-heading h2 {
  font-size: 14px;
  font-weight: 500;
}
.wb-timeline-heading small {
  margin-left: 12px;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.wb-timeline-heading p {
  font-size: 9px;
  color: var(--muted);
}
.wb-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 3px 4px 20px;
  scrollbar-color: var(--primary-line) transparent;
}
.wb-nodes {
  display: grid;
  grid-template-columns: repeat(8, minmax(205px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: start;
}
.wb-node {
  position: relative;
  min-width: 0;
  padding: 0 12px 12px;
  transform-style: preserve-3d;
  transition:
    opacity var(--wb-duration) var(--wb-ease, var(--ease)),
    transform var(--wb-duration) var(--wb-ease, var(--ease));
  --node-color: var(--normal);
}
.wb-node[data-status="completed"] {
  --node-color: var(--completed);
}
.wb-node[data-status="delayed"],
.wb-node[data-status="due"] {
  --node-color: var(--delayed);
}
.wb-node[data-status="blocked"] {
  --node-color: var(--at-risk);
}
.wb-node::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 17px;
  height: 1px;
  background: var(--line);
}
.wb-node:first-child::before {
  left: 24px;
}
.wb-node:last-child::before {
  right: calc(100% - 24px);
}
.wb-node-button {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 0 0 14px;
}
.wb-node-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--node-color);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font: 12px var(--number);
  box-shadow: 0 0 0 5px var(--surface);
}
.wb-node[data-status="blocked"] .wb-node-symbol {
  background: var(--surface);
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}
.wb-node-button > small {
  font: 9px var(--number);
  color: var(--muted);
}
.wb-node-button > strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.wb-node-state {
  font-size: 10px;
  color: var(--muted);
  border-left: 2px solid var(--node-color);
  padding-left: 7px;
}
.wb-evidence-toggle {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 10px;
  border-top: 1px solid var(--line);
  color: var(--primary);
}
.wb-evidence-toggle > span {
  font-size: 15px;
}
.wb-evidence-layer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-6px) translateZ(-12px) scale(0.96);
  transition:
    grid-template-rows var(--wb-duration) var(--wb-ease, var(--ease)),
    opacity var(--wb-duration) var(--wb-ease, var(--ease)),
    transform var(--wb-duration) var(--wb-ease, var(--ease));
}
.wb-layer-inner {
  overflow: hidden;
  min-height: 0;
}
.wb-node.expanded .wb-evidence-layer {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0) translateZ(0) scale(1);
}
.wb-evidence-stack {
  padding: 7px 2px 4px;
}
.wb-explanation {
  padding: 12px;
  margin-bottom: 14px;
  font-size: 11px;
  line-height: 1.95;
  background: var(--surface-raised);
  border-left: 2px solid var(--node-color);
}
.wb-evidence {
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow:
    0 3px 0 var(--surface-raised),
    0 4px 0 var(--line-soft);
  transform: translateZ(-2px);
}
.wb-evidence > span,
.wb-evidence button > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
}
.wb-evidence b {
  font-size: 9px;
  font-weight: 400;
  color: var(--accent);
}
.wb-evidence strong {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 500;
  margin: 8px 0;
}
.wb-evidence small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}
.wb-evidence.missing {
  padding: 0;
  border-style: dashed;
  box-shadow: none;
  background: var(--ghost-fill);
}
.wb-evidence.required {
  border-color: var(--at-risk);
}
.wb-evidence button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
}
.wb-evidence button:hover {
  background: var(--primary-soft);
}
.wb-node.focused .wb-node-button > strong {
  color: var(--primary);
}
.wb-node.focused .wb-node-symbol {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
#workbench.has-focus .wb-node:not(.focused) {
  opacity: 0.5;
  transform: scale(0.96) translateZ(-12px);
}
#workbench.has-focus .wb-node:not(.focused):focus-within,
#workbench.has-focus .wb-node:not(.focused):hover {
  opacity: 0.9;
}
.wb-rail {
  position: sticky;
  top: 20px;
  align-self: start;
  border-top: 2px solid var(--accent);
  padding: 22px 20px;
  background: var(--surface);
}
.wb-rail h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 12px 0 24px;
}
.wb-people-empty,
.wb-rail-note p {
  color: var(--muted);
  font-size: 11px;
  line-height: 2;
}
.wb-people-node {
  font-size: 11px;
  margin-bottom: 15px;
  color: var(--primary);
}
.wb-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}
.wb-person > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}
.wb-person strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.wb-person small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.wb-rail-note {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.wb-rail-note p {
  margin-top: 12px;
}
.wb-action-form {
  padding: 13px;
  border: 1px solid var(--primary-line);
  background: var(--surface-raised);
  margin: 16px 0;
}
.wb-action-form h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 10px 0 18px;
}
.wb-action-form label {
  display: block;
  font-size: 10px;
  margin: 12px 0;
}
.wb-action-form input,
.wb-action-form select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 9px 6px;
  margin-top: 7px;
  font-size: 11px;
  background: var(--surface);
}
.wb-action-form p {
  font-size: 9px;
  line-height: 1.9;
  color: var(--muted);
}
.wb-form-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 15px;
}
.wb-form-buttons button {
  font-size: 10px;
  padding: 8px 6px;
}
.wb-action-result {
  font-size: 10px;
  color: var(--accent);
  line-height: 1.9;
  margin-top: 12px;
}
.wb-action-result:empty,
[data-form-error]:empty {
  display: none;
}
.wb-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  gap: 20px;
  font-size: 9px;
  color: var(--muted);
}
@keyframes wb-sheet-in {
  from {
    opacity: 0;
    transform: rotateX(12deg) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: rotateX(7deg) translateY(0);
  }
}
@keyframes wb-path-in {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@media (max-width: 1020px) {
  #workbench {
    padding: 20px 16px;
  }
  .wb-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .wb-header h1 {
    font-size: 20px;
  }
  .wb-header-end {
    gap: 12px;
  }
  .wb-header-end > span {
    display: none;
  }
  .wb-sheet {
    padding: 22px;
  }
  .wb-sheet-value strong {
    font-size: 22px;
  }
  .wb-document-space {
    padding: 0 6px;
  }
  .wb-sheet-dates {
    gap: 10px;
  }
  .wb-timeline {
    padding: 18px 12px 0;
  }
  .wb-timeline-heading {
    display: block;
  }
  .wb-timeline-heading p {
    margin-top: 9px;
  }
  .wb-nodes {
    display: block;
  }
  .wb-scroll {
    overflow: visible;
  }
  .wb-node {
    padding: 0 2px 24px 42px;
  }
  .wb-node::before {
    left: 14px !important;
    top: 0;
    bottom: 0;
    right: auto !important;
    height: auto;
    width: 1px;
  }
  .wb-node:last-child::before {
    bottom: calc(100% - 30px);
  }
  .wb-node-symbol {
    position: absolute;
    left: -42px;
    top: 0;
    width: 29px;
    height: 29px;
  }
  .wb-node-button {
    padding-top: 3px;
  }
  .wb-connector {
    height: 44px;
  }
  .wb-rail {
    padding: 22px;
    position: static;
  }
  .wb-footer {
    flex-wrap: wrap;
    line-height: 1.8;
  }
}
@media (prefers-reduced-motion: reduce) {
  #workbench *,
  #workbench *::before {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep the maquette visible without duplicating the surrounding dashboard chrome. */
body:has(#workbench[open])
  :is(
    .masthead,
    .command-bar,
    .left-panel,
    .right-panel,
    .city-heading,
    .headline-kpis,
    .city-caption,
    .view-tools,
    .timeline,
    .status-bar,
    .mobile-panel-button,
    .coachmark,
    .city-tooltip
  ) {
  visibility: hidden;
}

/* A single working surface: the path stays in view while its evidence unfolds. */
@media (min-width: 1021px) {
  #workbench {
    padding: 24px 40px;
  }
  .wb-header {
    padding-bottom: 12px;
  }
  .wb-header h1 {
    font-size: 24px;
  }
  .wb-header p {
    font-size: 12px;
  }
  .wb-status {
    margin: 16px 0 18px;
    font-size: 13px;
  }
  .wb-layout {
    grid-template-columns: minmax(0, 1fr) 224px;
    gap: 24px;
  }
  .wb-document-space {
    padding: 0 60px;
  }
  .wb-sheet {
    max-width: 720px;
    padding: 20px 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
  }
  .wb-sheet-top {
    grid-column: 1/-1;
  }
  .wb-sheet h2 {
    font-size: 23px;
    margin: 18px 0 8px;
  }
  .wb-sheet > p {
    grid-column: 1;
    font-size: 12px;
  }
  .wb-sheet-value {
    grid-column: 2;
    grid-row: 2/4;
    display: grid;
    gap: 7px;
    margin: 22px 0 0;
    align-content: start;
    text-align: right;
  }
  .wb-sheet-value strong {
    font-size: 23px;
  }
  .wb-sheet-dates {
    grid-column: 1;
    margin-top: 20px;
    font-size: 10px;
  }
  .wb-sheet-corner {
    grid-column: 2;
    align-self: end;
  }
  .wb-connector {
    height: 72px;
  }
  .wb-rail {
    margin-top: 265px;
    padding: 20px 18px;
  }
  .wb-scroll {
    overflow: visible;
    padding: 3px 0 0;
  }
  .wb-nodes {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    position: relative;
  }
  .wb-node {
    display: contents;
  }
  .wb-node::before {
    display: none;
  }
  .wb-node-head {
    grid-column: var(--node-column);
    grid-row: 1;
    min-width: 0;
    padding: 0 8px 12px;
    position: relative;
    transition:
      opacity var(--wb-duration) var(--wb-ease),
      transform var(--wb-duration) var(--wb-ease);
  }
  .wb-node-head::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 17px;
    border-top: 1px solid var(--line);
  }
  .wb-node-button > small {
    font-size: 9px;
    line-height: 1.8;
  }
  .wb-node-button > strong {
    font-size: 13px;
    line-height: 1.65;
    min-height: 43px;
  }
  .wb-node-state {
    font-size: 10px;
    line-height: 1.8;
    min-height: 36px;
  }
  .wb-evidence-layer {
    grid-column: 1/-1;
    grid-row: var(--evidence-row);
  }
  .wb-node.expanded .wb-evidence-layer {
    border-top: 2px solid var(--node-color);
  }
  .wb-evidence-stack {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 20px 6px;
  }
  .wb-evidence-heading,
  .wb-explanation,
  [data-form-mount],
  .wb-action-result {
    grid-column: 1/-1;
  }
  .wb-explanation {
    margin: 0;
    font-size: 13px;
    padding: 14px 18px;
  }
  .wb-evidence {
    margin: 0;
    min-width: 0;
  }
  .wb-evidence strong {
    font-size: 12px;
  }
  .wb-evidence small,
  .wb-evidence > span,
  .wb-evidence button > span {
    font-size: 10px;
  }
  .wb-evidence button {
    min-height: 106px;
  }
  #workbench.has-focus .wb-node:not(.focused) {
    opacity: 1;
    transform: none;
  }
  #workbench.has-focus .wb-node:not(.focused) .wb-node-head,
  #workbench.has-focus .wb-node:not(.focused) .wb-evidence-layer {
    opacity: 0.45;
    transform: scale(0.97);
  }
  #workbench.has-focus .wb-node:not(.focused):focus-within .wb-node-head,
  #workbench.has-focus .wb-node:not(.focused):hover .wb-node-head {
    opacity: 0.85;
  }
  .wb-action-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px 20px;
    padding: 20px;
    margin: 0;
  }
  .wb-action-form > .eyebrow,
  .wb-action-form h3,
  .wb-action-form > p,
  .wb-form-buttons {
    grid-column: 1/-1;
  }
  .wb-action-form h3,
  .wb-action-form label {
    margin: 0;
  }
  .wb-action-form h3 {
    font-size: 16px;
  }
  .wb-action-form label,
  .wb-action-form input,
  .wb-action-form select {
    font-size: 12px;
  }
  .wb-form-buttons {
    justify-content: flex-end;
    margin: 0;
  }
  .wb-form-buttons button {
    font-size: 12px;
    padding: 10px 16px;
  }
}
.wb-evidence-heading h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 7px 0 0;
}
.wb-evidence-heading h3 small {
  margin-left: 12px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.wb-evidence-heading {
  margin-bottom: 4px;
}
body:has(#workbench[open]) .scene-labels {
  visibility: hidden;
}
body:has(#workbench[open]) .scene-container {
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 72%);
}
@media (max-width: 1020px) {
  .wb-evidence-heading {
    padding: 12px 0;
  }
  .wb-action-form input,
  .wb-action-form select {
    font-size: 16px;
  }
}
.wb-header {
  position: sticky;
  top: -24px;
  z-index: 5;
  background: var(--bg);
  padding-top: 8px;
}
.wb-timeline,
.wb-node-button {
  scroll-margin-top: 125px;
}
@media (min-width: 1021px) {
  .wb-node-button > strong {
    min-height: 23px;
  }
  .wb-node-state {
    min-height: 20px;
  }
  .wb-node-button {
    gap: 8px;
  }
  .wb-rail {
    top: 115px;
  }
}
@media (max-width: 1020px) {
  .wb-header {
    top: -20px;
  }
}
body:has(#workbench[open]) .toast {
  visibility: hidden;
}

/* The contract becomes a raised drafting sheet beside its actual city geometry. */
#workbench::backdrop {
  background: color-mix(in srgb, var(--bg) 18%, transparent);
}
.wb-city-anchor {
  position: relative;
  min-height: 140px;
  pointer-events: none;
}
.wb-city-anchor > .eyebrow {
  position: absolute;
  top: 4px;
  left: 24px;
}
.wb-city-caption {
  position: absolute;
  bottom: 0;
  right: 24px;
  font-size: 13px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border-left: 2px solid var(--primary);
  padding: 10px 16px;
}
.wb-city-caption small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
@media (min-width: 1021px) {
  body:has(#workbench[open]) .scene-container {
    position: fixed;
    top: 155px;
    left: 44%;
    right: 3%;
    bottom: auto;
    height: 405px;
    mask-image: radial-gradient(ellipse, #000 48%, transparent 76%);
  }
  .wb-document-space {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    align-items: center;
    min-height: 290px;
    padding: 0 8px 0 28px;
    perspective: 1200px;
  }
  .wb-city-anchor {
    height: 270px;
  }
  .wb-sheet {
    width: 100%;
    max-width: none;
    z-index: 1;
    padding: 24px 26px;
    transform: rotateX(24deg) rotateY(-9deg) rotateZ(-2deg);
    transform-style: preserve-3d;
    animation-name: wb-spatial-sheet;
    box-shadow:
      0 1px 0 var(--line),
      1px 5px 0 var(--surface-raised),
      2px 6px 0 var(--line),
      3px 11px 0 var(--surface-raised),
      4px 12px 0 var(--line),
      12px 32px 32px #00000024,
      30px 60px 70px #00000013;
    transition:
      transform var(--wb-duration) var(--wb-ease),
      box-shadow var(--wb-duration) var(--wb-ease);
  }
  .wb-sheet:hover {
    transform: translateY(-7px) rotateX(18deg) rotateY(-5deg) rotateZ(-1deg);
  }
  .wb-sheet h2 {
    font-size: 22px;
    line-height: 1.55;
  }
  .wb-sheet-value strong {
    font-size: 22px;
  }
  .wb-connector {
    height: 38px;
  }
  .wb-connector svg {
    width: 65%;
  }
  .wb-rail {
    margin-top: 332px;
  }
  .wb-timeline {
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border-top: 2px solid var(--primary-line);
    box-shadow:
      0 6px 0 var(--surface-raised),
      0 7px 0 var(--line),
      0 24px 45px #0000000f;
  }
  .wb-node-symbol {
    border-radius: 7px;
    transform: perspective(160px) rotateX(18deg) rotateZ(-4deg);
    box-shadow:
      0 4px 0 var(--surface-raised),
      0 5px 0 var(--node-color),
      0 8px 12px #00000012;
  }
  .wb-node.focused .wb-node-symbol {
    transform: translateY(-4px) perspective(160px) rotateX(12deg);
  }
  .wb-evidence-stack {
    perspective: 1100px;
    gap: 18px 14px;
  }
  .wb-evidence {
    transform: rotateX(8deg) translateZ(3px);
    transform-origin: center bottom;
    box-shadow:
      1px 4px 0 var(--surface-raised),
      1px 5px 0 var(--line),
      4px 12px 18px #0000000e;
    transition:
      transform var(--wb-duration) var(--wb-ease),
      box-shadow var(--wb-duration) var(--wb-ease);
  }
  .wb-evidence.missing {
    background: var(--surface-raised);
    box-shadow:
      0 3px 0 var(--surface),
      0 4px 0 var(--line-soft);
  }
  .wb-evidence:hover,
  .wb-evidence:focus-within {
    transform: translateY(-7px) rotateX(0) translateZ(14px);
    box-shadow:
      0 7px 0 var(--surface-raised),
      0 8px 0 var(--primary-line),
      0 18px 28px #00000016;
  }
  .wb-evidence.required {
    border-color: var(--at-risk);
  }
}
@keyframes wb-spatial-sheet {
  from {
    opacity: 0;
    transform: translateY(-26px) rotateX(40deg) rotateY(-13deg) rotateZ(-3deg);
  }
  to {
    opacity: 1;
    transform: rotateX(24deg) rotateY(-9deg) rotateZ(-2deg);
  }
}
@media (max-width: 1020px) {
  .wb-city-anchor {
    height: 160px;
    margin-top: 16px;
  }
  body:has(#workbench[open]) .scene-container {
    position: fixed;
    top: 330px;
    left: 0;
    right: 0;
    height: 370px;
    bottom: auto;
  }
  .wb-sheet {
    transform: rotateX(12deg);
    box-shadow:
      0 5px 0 var(--surface-raised),
      0 6px 0 var(--line),
      0 12px 0 var(--surface-raised),
      0 24px 34px #00000020;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wb-sheet:hover,
  .wb-evidence:hover,
  .wb-evidence:focus-within {
    transform: none;
  }
}
body:has(#workbench[open]) .scene-bottom {
  visibility: hidden;
}
@media (min-width: 1021px) {
  #workbench.has-focus .wb-status {
    display: none;
  }
  #workbench.has-focus .wb-layout {
    margin-top: 14px;
  }
  #workbench.has-focus .wb-document-space {
    min-height: 135px;
  }
  #workbench.has-focus .wb-city-anchor {
    height: 130px;
  }
  #workbench.has-focus .wb-sheet {
    padding: 14px 22px;
  }
  #workbench.has-focus .wb-sheet h2 {
    font-size: 19px;
    margin: 12px 0 0;
  }
  #workbench.has-focus .wb-sheet > p,
  #workbench.has-focus .wb-sheet-dates {
    display: none;
  }
  #workbench.has-focus .wb-sheet-value {
    margin-top: 14px;
  }
  #workbench.has-focus .wb-sheet-value strong {
    font-size: 19px;
  }
  #workbench.has-focus .wb-sheet-corner {
    margin-top: 8px;
  }
  #workbench.has-focus .wb-connector {
    height: 24px;
  }
  #workbench.has-focus .wb-rail {
    margin-top: 165px;
  }
  #workbench.has-focus .wb-evidence-stack {
    gap: 12px 14px;
    padding: 14px 6px;
  }
  #workbench.has-focus .wb-evidence button {
    min-height: 96px;
  }
}
/* Release the entrance animation so pointer-driven elevation can take over. */
.wb-sheet { animation-fill-mode: backwards; }
