/* Process wall. Layout and one-product pieces; tokens live in design.css. */

.playbook {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
}

.playbook .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--frost-header);
}

.playbook .brand {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}

.playbook .who {
  font-size: var(--fs-smallcaps);
  color: var(--ink-quiet);
  letter-spacing: 0.02em;
}

.playbook .who a { color: var(--accent); }

.playbook #app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.wall-tabs, .wall-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 24px 0;
  align-items: center;
}

.wall-tools { padding-top: 8px; padding-bottom: 8px; }

.wall-lede {
  margin: 0;
  padding: 0 24px 12px;
  color: var(--ink-quiet);
  font-size: var(--fs-body);
}

.pill {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}

.pill.is-on {
  background: var(--ink);
  color: var(--bg);
  box-shadow: none;
}

.pill-ink {
  background: var(--ink);
  color: var(--bg);
  box-shadow: none;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-quiet);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dot-live { background: var(--good-ink); }
.dot-hands { background: var(--warn-label); }
.dot-blocked { background: var(--bad-ink); }
.dot-off { background: var(--ink-muted); }
.dot-planned { background: var(--gold); }

.sync {
  font-size: 12px;
  color: var(--ink-quiet);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.sync.is-err { color: var(--bad-ink); }
.hint { font-size: 12px; color: var(--ink-quiet); }
.hint-gold { color: var(--gold); }

.wall-body {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 16px;
  padding: 0 24px 24px;
}

.viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 480px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-sink);
  box-shadow: 0 0 0 1px var(--line);
  touch-action: none;
  cursor: grab;
}

.viewport.is-placing { cursor: crosshair; }
.viewport.is-panning { cursor: grabbing; }

.board {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}

.lane {
  position: absolute;
  left: 0;
  right: 0;
  height: 152px;
  pointer-events: none;
}

.lane span {
  position: absolute;
  left: 12px;
  top: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.wires {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.wires path {
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 1.5;
  pointer-events: stroke;
  cursor: pointer;
}

.wires path.is-on { stroke: var(--ink); stroke-width: 2.5; }

.node {
  position: absolute;
  width: 224px;
  min-height: 100px;
  padding: 10px 12px 12px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  cursor: grab;
}

.node.is-on { box-shadow: 0 0 0 2px var(--ink); }
.node.is-dirty { box-shadow: 0 0 0 2px var(--gold); }

.node h3 {
  margin: 6px 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.node p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-quiet);
}

.node .open {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--gold);
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
}

.st-live { background: var(--good-bg); color: var(--good-ink); }
.st-hands { background: var(--warn-bg); color: var(--warn-label); }
.st-blocked { background: var(--bad-bg); color: var(--bad-ink); }
.st-off { background: var(--disabled-bg); color: var(--ink-soft); }
.st-planned { background: var(--surface-soft); color: var(--gold); }

.zoombar {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
}

.zoombar button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
}

.panel {
  width: 320px;
  flex-shrink: 0;
  overflow: auto;
  background: var(--surface);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 0 0 1px var(--line);
  max-height: 70dvh;
}

.panel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
}

.panel label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
}

.panel label span {
  display: block;
  color: var(--ink-quiet);
  margin-bottom: 4px;
}

.panel input, .panel select, .panel textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

.panel textarea { min-height: 80px; padding: 10px 12px; resize: vertical; }

.panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.look {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
}

.look p { margin: 6px 0 0; font-size: 14px; }

.danger {
  margin-top: 16px;
  background: none;
  border: 0;
  color: var(--bad-ink);
  cursor: pointer;
  font: inherit;
  min-height: 44px;
}

.md pre {
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg);
  padding: 12px;
  border-radius: 12px;
  overflow: auto;
  max-height: 50dvh;
}

.empty {
  padding: 48px 24px;
  color: var(--ink-quiet);
}

@media (max-width: 900px) {
  .wall-body { flex-direction: column; }
  .panel { width: 100%; max-height: none; }
  .playbook .site-header, .wall-tabs, .wall-tools, .wall-lede, .wall-body {
    padding-left: 16px;
    padding-right: 16px;
  }
}
