/* ============================================================
   workflow.css · the evidence-flow path builder surface.

   The builder canvas, the review sheet, the inspector, and the result
   handoff are styled here under the wf- prefix. Everything else (rail,
   topbar, scope banner, footer, theme toggle, view toggle) comes from
   halcyon.css + shell.css and repaints with the theme.

   COLOR DISCIPLINE: one accent. Cyan (--accent family) carries links,
   active state, the boundary line, ports, and ready or info. Gold (--gold)
   is reserved for the deliverable: the Result step glyph, the packet CTA,
   the landed result node, and the pending-attention state. Per-step accent
   rides --wf-node-color, which workflow.js only ever sets to a token (cyan
   family, gold, or text-dim), never a raw hex.

   LEGIBILITY: text always sits in its own panel, never over the map grid.
   Mono micro-labels, hairline datum rules. WCAG-AA on the ground in both
   themes.

   OVERFLOW: grid tracks use minmax(0,1fr); content columns set min-width:0;
   the stage scrolls inside itself on narrow viewports; review tables sit in
   a .table-scroll wrapper. No horizontal page scroll at 1280px or 375px.
   ============================================================ */

.halcyon-main { min-width: 0; }

.wf-hero h2,
.wf-builder-card h2,
.wf-result-card h2 { letter-spacing: -0.02em; }

/* ===== Intro hero ===== */
.wf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 22px; align-items: stretch;
  margin-bottom: 18px;
}
.wf-hero-copy { min-width: 0; }
.wf-hero-copy h2 { font-size: 30px; margin: 8px 0 10px; line-height: 1.12; }
.wf-hero-sub { color: var(--text-dim); font-size: 15px; line-height: 1.55; max-width: 56ch; }

.wf-hero-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.wf-hero-actions button[aria-pressed="true"] {
  background: var(--accent-bright); border: 1px solid var(--accent-bright);
  color: #06121a; box-shadow: var(--shadow-teal);
}
.wf-hero-actions button[aria-pressed="false"] {
  background: var(--surface); color: var(--text); box-shadow: none;
}

.wf-hero-plate { display: flex; min-width: 0; }
.wf-datum-card {
  width: 100%; align-self: stretch; margin: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-width: 0;
}
.wf-datum-row { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.wf-datum-row span { color: var(--text-dim); font-family: var(--mono); font-size: 12px; min-width: 0; }
.wf-datum-row strong {
  color: var(--accent-deep); font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; text-align: right; min-width: 0; overflow-wrap: anywhere;
}

/* ===== Builder card ===== */
.wf-builder-card { padding: 0; overflow: hidden; }
.wf-builder-head {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  margin: 0; padding: 20px 22px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.wf-builder-head > div { min-width: 0; }
.wf-panel-title { margin: 0; font-size: 18px; }
.wf-builder-head .muted { margin-top: 4px; font-size: 13px; }
.wf-builder-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }

.wf-workbench {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  min-height: 620px;
  background: var(--surface);
}

.wf-palette, .wf-inspector { background: var(--surface); min-width: 0; }
.wf-palette { padding: 16px; border-right: 1px solid var(--border); }
.wf-inspector { padding: 18px; border-left: 1px solid var(--border); }

.wf-mini-title {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  margin-bottom: 12px;
  color: var(--text-dim); font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}

.wf-mini-title button,
.wf-map-actions button,
.wf-palette-foot button,
.wf-inspector button:not(.wf-packet-link) {
  min-height: 34px; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  cursor: pointer;
}
.wf-mini-title button { min-height: 28px; padding: 4px 8px; }

.wf-mini-title button:hover,
.wf-map-actions button:hover,
.wf-palette-foot button:hover,
.wf-inspector button:not(.wf-packet-link):hover,
.wf-node-type:hover,
.wf-preset:hover {
  border-color: var(--border-accent); background: var(--accent-pale);
}

.wf-node-library, .wf-presets, .wf-palette-foot { display: grid; gap: 9px; }

.wf-node-type {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 9px 10px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--wf-node-color, var(--accent));
  border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); text-align: left; cursor: pointer;
}
.wf-node-icon {
  display: grid; place-items: center; width: 24px; height: 24px;
  border: 1px solid currentColor; border-radius: 6px;
  color: var(--wf-node-color, var(--accent));
  font-family: var(--mono); font-size: 10px; font-weight: 700;
}
.wf-node-copy { display: grid; gap: 1px; min-width: 0; }
.wf-node-copy strong { color: var(--text); font-size: 13px; font-weight: 650; }
.wf-node-copy span { color: var(--text-dim); font-size: 11px; overflow-wrap: anywhere; }

.wf-preset-head {
  margin: 17px 0 4px; padding-top: 13px; border-top: 1px solid var(--border-soft);
  color: var(--text-dimmer); font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.wf-preset-note { color: var(--text-dim); font-size: 12px; margin-bottom: 9px; }

.wf-preset {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; min-height: 36px; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); cursor: pointer;
}
.wf-preset span { font-family: var(--mono); font-size: 11px; min-width: 0; overflow-wrap: anywhere; }
.wf-preset i {
  display: grid; place-items: center; width: 19px; height: 19px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 5px;
  color: var(--accent-deep); font-style: normal; font-family: var(--mono); font-size: 11px;
}
.wf-palette-foot { margin-top: 16px; }

/* ===== Map canvas ===== */
.wf-center { min-width: 0; background: var(--paper); }
.wf-map-view { height: 100%; min-height: 620px; display: flex; flex-direction: column; }

.wf-map-toolbar {
  min-height: 58px; display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface);
  flex-wrap: wrap;
}
.wf-map-title { min-width: 0; }
.wf-map-title .eyebrow { color: var(--accent); }
.wf-map-title strong {
  display: block; margin-top: 3px; color: var(--text);
  font-size: 12px; font-weight: 650; letter-spacing: 0.4px; text-transform: uppercase;
  overflow-wrap: anywhere;
}
.wf-map-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.wf-stage {
  position: relative; flex: 1; min-height: 680px; overflow: hidden;
  background:
    linear-gradient(var(--accent-pale) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-pale) 1px, transparent 1px),
    radial-gradient(100% 80% at 24% 12%, var(--accent-pale), transparent 48%),
    var(--surface);
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.wf-edges, .wf-nodes { position: absolute; inset: 0; }
.wf-edges { width: 100%; height: 100%; pointer-events: none; }
.wf-edge { fill: none; stroke: var(--subtle); stroke-width: 2; }
.wf-temp-edge { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 5; }

/* ===== Play the path ===== */
/* the play control: cyan, the active teaching gesture, not the deliverable */
.wf-play-btn[aria-pressed] { border-color: var(--accent); color: var(--accent-deep); }
.wf-play-btn::before {
  content: "\25B6"; margin-right: 6px; font-size: 9px; color: var(--accent-deep);
}
.wf-play-btn[aria-pressed]::before { content: "\25A0"; }

.wf-token-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 5;
}
/* the traveling marker rides cyan, the in-scope signal color */
.wf-play-token {
  fill: var(--accent-bright); stroke: var(--surface); stroke-width: 2;
  filter: drop-shadow(0 0 6px var(--accent));
}

/* a node the marker has passed reads lit in cyan */
.wf-node { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.wf-node.is-traveled { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-pale), var(--shadow); }
/* the node the marker is sitting on right now */
.wf-node.is-here { border-color: var(--accent-bright); box-shadow: 0 0 0 4px var(--accent-pale), var(--shadow); }
/* the result the route lands on reads gold, the deliverable */
.wf-node.is-landed {
  border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-pale), var(--shadow);
}

.wf-play-status {
  min-height: 18px; margin: 0; padding: 8px 16px;
  border-top: 1px solid var(--border); background: var(--surface);
  color: var(--accent-deep); font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2px;
}
.wf-play-status:empty { display: none; }

.wf-boundary-line {
  position: absolute; top: 42px; bottom: 30px; left: 58%; width: 3px;
  background: var(--accent); z-index: 1;
}
.wf-boundary-line span {
  position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
  padding: 0 8px; background: var(--surface);
  color: var(--accent-deep); font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  white-space: nowrap;
}

.wf-map-lane {
  position: absolute; top: 42px; left: 96px; max-width: calc(50% - 120px);
  color: var(--accent-deep); font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; z-index: 1;
}

.wf-lock-lane { position: absolute; top: 40px; right: 18px; width: 196px; z-index: 1; }
.wf-lock-head {
  margin-bottom: 10px; color: var(--text-dimmer); font-family: var(--mono);
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-align: center; text-transform: uppercase;
}
.wf-locked-list { display: grid; gap: 8px; }
.wf-locked-item {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  min-height: 40px; padding: 8px 10px;
  border: 1px dashed var(--subtle); border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text-dim); font-size: 12px;
}
.wf-locked-item strong { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.wf-locked-item span {
  display: grid; place-items: center; width: 19px; height: 19px;
  border: 1px solid var(--border); border-radius: 5px;
  font-family: var(--mono); font-size: 10px; flex-shrink: 0;
}

.wf-node {
  position: absolute; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px; align-items: center;
  width: 178px; min-height: 62px; padding: 9px 10px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--wf-node-color, var(--accent));
  border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow); color: var(--text);
  cursor: grab; user-select: none; z-index: 3;
}
.wf-node.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-pale), var(--shadow);
}
.wf-node-icon-block {
  display: grid; place-items: center; width: 24px; height: 24px;
  border: 1px solid var(--wf-node-color, var(--accent)); border-radius: 6px;
  color: var(--wf-node-color, var(--accent));
  font-family: var(--mono); font-size: 10px; font-weight: 700;
}
.wf-node-main { min-width: 0; }
.wf-node-title { display: block; font-size: 12px; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; }
.wf-node-state {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  color: var(--text-dim); font-family: var(--mono); font-size: 10.5px;
}
.wf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wf-status, var(--text-dimmer)); flex-shrink: 0; }

.wf-node-port {
  position: absolute; display: grid; place-items: center;
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--accent); background: var(--surface);
  cursor: crosshair; z-index: 4;
}
.wf-node-port.in { left: -7px; top: 50%; transform: translateY(-50%); }
.wf-node-port.out { right: -7px; top: 50%; transform: translateY(-50%); }
.wf-node-port.is-armed { background: var(--accent); }
.wf-node-port.is-target { box-shadow: 0 0 0 4px var(--accent-pale); }

.wf-node-del {
  width: 22px; height: 22px;
  border: 1px solid var(--border); border-radius: 5px;
  background: var(--surface); color: var(--text-dim); flex-shrink: 0; cursor: pointer;
}

.wf-status-legend {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  min-height: 38px; padding: 8px 16px;
  border-top: 1px solid var(--border); background: var(--surface);
  color: var(--text-dim); font-family: var(--mono); font-size: 11px; letter-spacing: 0.2px;
}
.wf-status-legend span { display: inline-flex; gap: 7px; align-items: center; }
.wf-leg { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dimmer); }
.wf-leg.is-active, .wf-leg.is-ok { background: var(--ok); }
.wf-leg.is-ready { background: var(--accent); }
.wf-leg.is-pending { background: var(--gold); }
.wf-leg.is-locked { background: var(--text-dimmer); }

/* ===== Review view ===== */
.wf-review-view { min-height: 620px; padding: 14px; background: var(--surface); }
.wf-review-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.wf-review-card {
  min-height: 220px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--paper); overflow: hidden; min-width: 0;
}
.wf-review-h {
  margin: 0; padding: 11px 13px; border-bottom: 1px solid var(--border);
  color: var(--text); font-family: var(--mono);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.wf-ledger-h {
  margin: 0; padding: 9px 11px; border-bottom: 1px solid var(--border-soft);
  color: var(--accent-deep); font-family: var(--mono);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}

.wf-review-table, .wf-ledger-list, .wf-validation-list {
  display: grid; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.wf-review-row, .wf-ledger-row, .wf-validation-row, .wf-output-row {
  display: grid; border-bottom: 1px solid var(--border-soft);
}
.wf-review-row { grid-template-columns: 32px minmax(110px, 1fr) 92px 96px 108px; min-width: 460px; }
.wf-output-row { grid-template-columns: minmax(92px, 0.85fr) minmax(150px, 1.3fr) minmax(120px, 0.9fr) 76px; min-width: 460px; }

.wf-review-row span,
.wf-ledger-row span,
.wf-validation-row span,
.wf-output-row span {
  min-width: 0; padding: 8px 9px; border-right: 1px solid var(--border-soft);
  color: var(--text-dim); font-size: 12px; overflow-wrap: anywhere;
}
.wf-review-row span:last-child,
.wf-ledger-row span:last-child,
.wf-validation-row span:last-child,
.wf-output-row span:last-child { border-right: 0; }

.wf-review-row.is-head, .wf-output-row.is-head {
  background: var(--surface-2); color: var(--text-dim);
  font-family: var(--mono); text-transform: uppercase;
}

.wf-ledger-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 170px; }
.wf-ledger-pair > div { min-width: 0; }
.wf-ledger-pair > div + div { border-left: 1px solid var(--border); }
.wf-ledger-row { grid-template-columns: 30px minmax(0, 1fr); }
.wf-ledger-list.is-locked .wf-ledger-row span:last-child::after {
  content: " locked"; color: var(--text-dimmer);
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
}
.wf-validation-row { grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1.15fr); min-width: 460px; }

.wf-status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--text);
}
.wf-status-chip::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--wf-status, var(--text-dimmer)); flex-shrink: 0;
}

/* ===== Inspector ===== */
.wf-inspector-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px;
}
.wf-inspector-head h2 { margin: 0; font-size: 18px; line-height: 1.12; overflow-wrap: anywhere; }
.wf-inspector-head > div { min-width: 0; }
.wf-inspector-head span {
  display: block; margin-bottom: 3px; color: var(--text-dim);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
}
.wf-inspector-type {
  display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid var(--wf-node-color, var(--border-accent)); border-radius: 8px;
  color: var(--wf-node-color, var(--accent-deep));
  font-family: var(--mono); font-size: 11px; font-weight: 700;
}

.wf-field { display: grid; gap: 6px; margin-bottom: 12px; min-width: 0; }
.wf-field label {
  color: var(--text-dim); font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
}
.wf-field input, .wf-field select {
  width: 100%; max-width: 100%; min-height: 36px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); font-family: var(--sans); font-size: 14px;
}
.wf-field input:focus, .wf-field select:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-pale);
}
.wf-field input:disabled { color: var(--text-dim); cursor: not-allowed; }

.wf-inspector-section { margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.wf-inspector-section-title {
  color: var(--text-dim); font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
}
.wf-check-list, .wf-action-list { display: grid; gap: 8px; margin-top: 8px; }
.wf-check-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 12px; }
.wf-check-item strong { font-weight: 600; min-width: 0; }
.wf-check-item span:last-child { color: var(--accent-deep); font-family: var(--mono); flex-shrink: 0; }

.wf-warning {
  margin: 14px 0; padding: 10px 12px;
  border: 1px solid var(--gold); border-radius: var(--radius-sm);
  background: var(--gold-pale); color: var(--gold-deep); font-size: 12px;
}
.wf-primary {
  background: var(--accent-bright) !important; border-color: var(--accent-bright) !important;
  color: #06121a !important; box-shadow: var(--shadow-teal);
}
.wf-empty { padding: 16px; color: var(--text-dim); font-size: 13px; }

/* the inspector shortcut to the result surface (gold: it leads to the packet) */
.wf-packet-link {
  display: block; margin-top: 14px; text-align: center;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--gold); color: #1a1206;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  border: 1px solid var(--gold); text-decoration: none;
  box-shadow: var(--shadow-gold);
}
.wf-packet-link:hover { filter: brightness(1.04); }

/* ===== Result handoff ===== */
.wf-result-card { padding: 24px; }
.wf-result-head {
  display: flex; justify-content: space-between; gap: 14px; align-items: flex-start;
  flex-wrap: wrap; margin-bottom: 16px;
}
.wf-result-head > div { min-width: 0; }

.wf-next-action {
  border: 1px solid var(--border-accent); border-radius: var(--radius-sm);
  background: var(--accent-pale); padding: 16px; margin-bottom: 18px;
}
.wf-next-label {
  color: var(--accent-deep); font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.wf-next-body { margin-top: 6px; color: var(--text); font-size: 14px; line-height: 1.5; }
.wf-next-meta { margin-top: 8px; color: var(--text-dim); font-family: var(--mono); font-size: 12px; }
.wf-next-meta strong { color: var(--accent-deep); }

.wf-result-links {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px;
}
.wf-link-card {
  display: block; min-width: 0; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.wf-link-card:hover { border-color: var(--border-accent); transform: translateY(-1px); }
.wf-link-title { color: var(--accent); font-size: 15px; font-weight: 650; }
.wf-link-tag {
  margin: 3px 0 8px; color: var(--text-dimmer); font-family: var(--mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
}
.wf-link-card .muted { font-size: 13px; line-height: 1.5; }

.wf-result-cta { display: flex; justify-content: flex-start; }

[hidden] { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .wf-hero { grid-template-columns: minmax(0, 1fr); }
  .wf-workbench { grid-template-columns: minmax(0, 1fr); }
  .wf-palette, .wf-inspector { border-left: 0; border-right: 0; }
  .wf-center { order: 1; }
  .wf-palette { order: 2; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .wf-inspector { order: 3; border-top: 1px solid var(--border); }
  .wf-node-library, .wf-presets { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
  .wf-stage { overflow-x: auto; }
  .wf-edges, .wf-nodes { min-width: 940px; }
  .wf-lock-lane { right: auto; left: 740px; width: 176px; }
  .wf-boundary-line { left: 525px; }
}

@media (max-width: 980px) {
  .wf-result-links { grid-template-columns: minmax(0, 1fr); }
  .wf-review-grid, .wf-ledger-pair { grid-template-columns: minmax(0, 1fr); }
  .wf-ledger-pair > div + div { border-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 720px) {
  .wf-hero-copy h2 { font-size: 24px; }
  .wf-hero-actions, .wf-map-actions, .wf-builder-meta { align-items: stretch; flex-direction: column; }
  .wf-hero-actions button, .wf-map-actions button { width: 100%; text-align: center; }
  .wf-builder-head, .wf-result-card { padding: 18px; }
  .wf-result-cta .packet-cta { width: 100%; text-align: center; }
}

@media print {
  .ti-shell-nav, .ti-theme-toggle, .ti-ask, .view-toggle,
  .wf-palette, .wf-inspector, .wf-hero-actions, .wf-map-actions { display: none !important; }
  .halcyon-shell, .wf-workbench, .wf-result-links { display: block; }
  .halcyon-main { max-width: none; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wf-node, .wf-link-card { transition: none; }
  .wf-link-card:hover { transform: none; }
}
