/* Platform rows (template: copy 120/56/120/40, gap 24 | visual flex 1.1, min-h 640, padding 56/48, left border) */
.pf__row { display: flex; align-items: center; width: 100%; box-shadow: inset 0 1px var(--line); scroll-margin-top: 64px; }
.pf__row:first-child { box-shadow: none; }
.pf__copy { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 120px 56px 120px 40px; }
.pf__eyebrow { color: var(--accent); }
.pf__copy h2, .pf__copy > .t-body { max-width: 460px; }
.pf__feats { display: flex; gap: 24px; width: 100%; max-width: 500px; padding: 12px 0 8px; }
.pf__feat { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pf__feat svg { width: 18px; height: 18px; color: var(--text); }
.pf__visual { flex: 1.1 0 0; min-width: 0; align-self: stretch; min-height: 640px; padding: 56px 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 1px 0 var(--line); overflow: clip; }
@media (max-width: 1199.98px) {
  .pf__row { flex-direction: column; }
  .pf__copy { flex: none; width: 100%; padding: 88px 32px 56px; }
  .pf__visual { flex: none; width: 100%; min-height: 560px; padding: 56px 32px; box-shadow: inset 0 1px var(--line); }
}
@media (max-width: 809.98px) {
  .pf__copy { padding: 72px 16px 40px; }
  .pf__feats { flex-direction: column; gap: 16px; }
  .pf__feat { flex-direction: row; align-items: center; }
  .pf__visual { min-height: 480px; padding: 40px 16px; }
}

/* routing graph (template RoutingFlow, viewBox 560×440) */
.rf { position: relative; width: 100%; max-width: 560px; height: 460px; font-family: var(--f-body); color: var(--text); user-select: none; }
@media (max-width: 1199.98px) { .rf { height: 440px; } }
@media (max-width: 809.98px) { .rf { height: 360px; } }
.rf svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.rf__hole { position: absolute; pointer-events: none; }
.rf__top { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; font: 500 12px var(--f-mono); color: var(--muted); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.rf__top i { width: 6px; height: 6px; border-radius: 6px; background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 31, 0.15); animation: rfPulse 1.6s ease-in-out infinite; }
.rf__foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; font: 400 12px var(--f-mono); color: var(--muted); }
.rf__log { color: var(--text); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.rf__foot span:last-child { white-space: nowrap; }
.rf g.src { cursor: pointer; }
@keyframes rfPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* signature gate (template HumanApproval) */
.ha { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 10px; user-select: none; font-family: var(--f-body); color: var(--text); }
.ha__log { display: flex; flex-direction: column; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%); mask-image: linear-gradient(180deg, transparent 0%, #000 60%); }
.ha__line { display: flex; align-items: center; gap: 10px; height: 34px; font: 400 12px var(--f-mono); color: var(--muted); border-bottom: 1px solid rgba(250, 250, 249, 0.1); overflow: hidden; transition: height 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1); }
.ha__line.is-new { height: 0; opacity: 0; }
.ha__line.is-me { color: var(--text); }
.ha__line svg { width: 14px; height: 14px; flex: none; }
.ha__line span:nth-child(2) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha__gate { display: flex; align-items: center; gap: 10px; font: 500 12px var(--f-mono); color: var(--muted); letter-spacing: 0.06em; }
.ha__gate i { flex: 1; height: 1px; background-image: linear-gradient(90deg, var(--muted) 50%, transparent 50%); background-size: 6px 1px; opacity: 0.5; }
.ha__slot { position: relative; min-height: 318px; }
.ha__card { border: 1px solid rgba(250, 250, 249, 0.16); background: var(--surface); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 14px; transition: border-color 240ms ease, opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.ha__card.is-enter { opacity: 0; transform: translateY(16px); }
.ha__card.is-exit { opacity: 0; transform: translateY(-24px) scale(0.98); }
.ha__card.is-done { border-color: rgba(250, 250, 249, 0.3); }
.ha__who { display: flex; align-items: center; gap: 12px; }
.ha__av { width: 34px; height: 34px; border-radius: 8px; background: var(--raised); border: 1px solid rgba(250, 250, 249, 0.1); display: grid; place-items: center; font: 500 12px var(--f-mono); flex: none; }
.ha__ask { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ha__ask span:first-child { font-size: 12px; color: var(--muted); }
.ha__ask span:last-child { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha__timer { display: flex; align-items: center; gap: 6px; font: 500 12px var(--f-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.ha__timer i { width: 6px; height: 6px; border-radius: 6px; background: var(--live); animation: haPulse 1.4s ease-in-out infinite; }
.ha__timer.is-off { color: var(--muted); }
.ha__diff { background: var(--bg); border: 1px solid rgba(250, 250, 249, 0.1); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font: 400 12px/1.5 var(--f-mono); }
.ha__diff span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(166, 160, 155, 0.5); }
.ha__why { font-size: 13px; line-height: 1.5; color: var(--muted); }
.ha__pol { align-self: flex-start; padding: 4px 8px; border-radius: 4px; border: 1px solid rgba(250, 250, 249, 0.1); font: 500 12px var(--f-mono); color: var(--muted); }
.ha__acts { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ha__hold { position: relative; overflow: hidden; height: 40px; border-radius: 8px; background: var(--btn); color: #1c1917; font: 500 14px var(--f-body); touch-action: none; transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1); }
.ha__hold.is-down { transform: scale(0.985); }
.ha__hold i { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(0); background: var(--live); }
.ha__hold span { position: relative; }
.ha__hold:disabled, .ha__no:disabled { cursor: default; }
.ha__no { height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid rgba(250, 250, 249, 0.12); background: #1c1917; color: var(--text); font: 500 14px var(--f-body); }
@keyframes haPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* stream trace (template TraceReplay) */
.tr { width: 100%; max-width: 460px; user-select: none; font-family: var(--f-body); color: var(--text); }
.tr__card { border: 1px solid rgba(250, 250, 249, 0.14); background: var(--surface); border-radius: 12px; overflow: hidden; }
.tr__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(250, 250, 249, 0.1); }
.tr__title { font: 500 12px var(--f-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr__replay { flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: 7px; border: 1px solid rgba(250, 250, 249, 0.12); background: #1c1917; font: 500 12px var(--f-body); display: flex; align-items: center; gap: 6px; }
.tr__replay svg { width: 12px; height: 12px; }
.tr__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgba(250, 250, 249, 0.1); }
.tr__stat { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.tr__stat + .tr__stat { border-left: 1px solid rgba(250, 250, 249, 0.1); }
.tr__stat span:first-child { font: 500 12px var(--f-mono); color: var(--muted); letter-spacing: 0.04em; }
.tr__stat span:last-child { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr__gantt { position: relative; padding: 14px 14px 8px; display: grid; grid-template-columns: 104px 1fr; column-gap: 12px; row-gap: 7px; }
.tr__cursor { position: absolute; top: 8px; bottom: -16px; width: 1px; background: rgba(250, 250, 249, 0.35); pointer-events: none; }
.tr__name { font: 400 12px var(--f-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 160ms ease; }
.tr__lane { position: relative; height: 14px; align-self: center; }
.tr__lane span { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; box-sizing: border-box; }
.tr__scrub { padding: 4px 14px 12px; display: grid; grid-template-columns: 104px 1fr; column-gap: 12px; }
.tr__scrub > span { font: 400 12px var(--f-mono); color: var(--muted); }
.tr__track { position: relative; height: 24px; cursor: grab; touch-action: none; outline: none; }
.tr__track.is-drag { cursor: grabbing; }
.tr__track i { position: absolute; }
.tr__knob { top: 5px; width: 14px; height: 14px; border-radius: 4px; background: var(--text); transition: box-shadow 160ms ease; }
.tr__track.is-drag .tr__knob { box-shadow: 0 0 0 4px rgba(250, 250, 249, 0.14); }
.tr__foot { border-top: 1px solid rgba(250, 250, 249, 0.1); padding: 12px 14px; display: flex; gap: 12px; align-items: baseline; min-height: 48px; }
.tr__foot span:first-child { font: 500 12px var(--f-mono); white-space: nowrap; }
.tr__foot span:last-child { font-size: 13px; color: var(--muted); line-height: 1.45; }
