/* What @my_decorator does (lesson 2.8). Colours: gray = names and their arrows (control),
   amber = the function objects (functions are objects, like any data), rose = printed output. Active parts glow. */
.dw-stage {
  border: 1px solid var(--line); border-radius: 12px;
  background-color: var(--soft); background-image: radial-gradient(#dfe3e8 1px, transparent 1px); background-size: 16px 16px;
}
.dw-stage svg { display: block; width: 100%; height: auto; }
.dw-stage [data-el] { transition: opacity 320ms var(--ease); }
.dw-stage .is-hidden { opacity: 0; }

.dw-name rect { fill: #fff; stroke: var(--line-strong); stroke-width: 1.25; }
.dw-name text { font: 600 12.5px var(--font-mono); fill: var(--ink-2); }

.dw-arrow { fill: none; stroke: #9ca3af; stroke-width: 1.5; transition: stroke var(--dur) var(--ease), opacity 320ms var(--ease); }
.dw-arrow.is-active { stroke: var(--ink-2); stroke-width: 2; }

.dw-fn .box { fill: #fff; stroke: var(--data-line); stroke-width: 1.5; transition: stroke var(--dur) var(--ease); }
.dw-fn .ring { fill: none; stroke: var(--data-tint); stroke-width: 6; opacity: 0; transition: opacity var(--dur) var(--ease); }
.dw-fn.is-active .box { stroke: var(--data); }
.dw-fn.is-active .ring { opacity: 1; }
.dw-fn text { font: 500 12px var(--font-mono); fill: var(--data-ink); }
.dw-fn .dw-title { font-weight: 600; font-size: 12.5px; }
.dw-fn .dw-small { font: 500 11px var(--font-sans); fill: var(--muted); }
.dw-row rect { fill: transparent; transition: fill var(--dur) var(--ease); }
.dw-row.is-active rect { fill: var(--hl); }
.dw-slot { fill: var(--ink-2); }

.dw-out {
  min-height: 74px; margin: 12px 0 0; padding: 10px 14px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font: 12.5px/1.6 var(--font-mono); font-variant-ligatures: none; color: var(--ink-2);
}
.dw-out-line { display: block; }
.dw-out-line.is-new { color: var(--out-ink); font-weight: 600; }
.dw-out-empty { color: var(--faint); font-family: var(--font-sans); }

.dw .readouts .label.dw-mono { text-transform: none; letter-spacing: 0; font-family: var(--font-mono); }

@media (max-width: 760px) {
  .dw .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .dw-stage [data-el], .dw-arrow, .dw-fn .box, .dw-fn .ring, .dw-row rect { transition: none; }
}
