/* Native Work row; diagram colors and SVG styles remain local to this panel. */
.scale-work .visual{--sw-bg:#101312;--sw-ink:#f2f3ef;--sw-muted:#b1bcb5;--sw-accent:#88e9c4;--bg:var(--sw-bg);--accent:var(--sw-accent);min-width:0;aspect-ratio:16/9;padding:clamp(12px,1.65vw,32px);border-radius:var(--border-radius,20px);overflow:hidden;background:radial-gradient(circle,rgba(189,213,199,.16) .7px,transparent .95px) center/15px 15px var(--sw-bg);display:flex;flex-direction:column;justify-content:center;color:var(--sw-ink)}
.scale-work #sw-panel{flex:1;display:flex;align-items:center;min-height:0;justify-content:center}
.scale-work .diagram{display:block;width:100%;max-height:100%;overflow:visible}
.scale-work .diagram text{font-family:Inter,sans-serif;fill:var(--sw-ink);font-size:14px}
.scale-work .diagram .stage-label text{font-family:'Space Grotesk',sans-serif;font-size:10px;letter-spacing:1px;fill:#a2b1a8}
.scale-work .diagram .detail{font-size:10.5px;fill:#aebcb4}
.scale-work .diagram .input-name,.scale-work .diagram .review-name{font-size:12px;font-weight:500}
.scale-work .diagram .core-name{font-size:15px;font-weight:500}
.scale-work .diagram .output-name{font-size:14px;font-weight:500}
.scale-work .wire{stroke:#648478;stroke-width:1;fill:none;stroke-linejoin:round;stroke-linecap:round}
.scale-work .controls{flex:none;padding-top:6px}
.scale-work .tabs{display:flex;flex-wrap:wrap;gap:7px}
.scale-work .tabs button{border:1px solid transparent;border-radius:5px;background:#ffffff09;color:#b8c3bd;font:400 12px/1.2 Inter,sans-serif;padding:8px 12px;min-height:32px;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.scale-work .tabs button:hover{background:#ffffff14;color:var(--sw-ink)}
.scale-work .tabs button[aria-selected=true]{background:#88e9c41a;border-color:#88e9c43b;color:var(--sw-accent);font-weight:500}
#delivery .scale-work .tabs button:focus-visible{outline:2px solid var(--sw-accent);outline-offset:3px}
.scale-work .result{border-top:1px solid var(--line);margin-top:28px;padding-top:23px}
.scale-work .assets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:20px}
.scale-work .asset{border:0;border-radius:6px;background:#eaece8;padding:13px;min-width:0;color:#1b1c1b}
.scale-work .asset strong{display:block;font-size:clamp(22px,1.8vw,32px);line-height:1.05;font-weight:500;letter-spacing:-.045em}
.scale-work .asset span{display:block;font:11px/1.25 'Space Grotesk',sans-serif;margin-top:4px;color:#515450;text-transform:uppercase;letter-spacing:.06em}
.scale-work .mobile{display:none}
.scale-work .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.scale-work .paused .packet{visibility:hidden}
@media(max-width:900px){.scale-work .visual{padding:18px}}
@media(max-width:767px){.scale-work .asset{padding:11px 9px}}
@media(prefers-reduced-motion:reduce){.scale-work .tabs button{transition:none}}
@media(max-width:1279px){.scale-work .tabs button{min-height:44px}}

.scale-work .sw-autoplay-toggle { margin-left:auto; padding:8px 10px; font:400 12px/1.5 'Space Grotesk',sans-serif; text-decoration:underline; text-underline-offset:3px; color:inherit; }
.scale-work .sw-autoplay-toggle:hover { color:var(--sw-accent); }
.scale-work .controls { display:flex; align-items:center; gap:12px; }
.scale-work .tabs { flex:1; }
/* One accent travels through the complete workflow without altering panel geometry. */
.scale-work .visual { --sw-accent:#7ff2c6; }
.scale-work .wire { stroke:var(--sw-accent); opacity:.55; transition:stroke 400ms ease; }
.scale-work #sw-crystal :is(polygon,path,circle),.scale-work .review-node { filter:drop-shadow(0 0 2px var(--sw-accent)); transition:filter 400ms ease,stroke 400ms ease,fill 400ms ease; }
.scale-work #sw-crystal polygon { stroke:var(--sw-accent); }
.scale-work #sw-crystal path { stroke:var(--sw-accent); }
.scale-work #sw-crystal circle { fill:var(--sw-accent); }
.scale-work .review-node { stroke:var(--sw-accent); }
.scale-work .diagram .core-name { font-size:21px; letter-spacing:-.025em; }
.scale-work .tabs button[aria-selected=true] { color:var(--sw-accent); border-color:var(--sw-accent); background:color-mix(in srgb,var(--sw-accent) 13%,transparent); }
.scale-work .tabs button { position:relative; }
.scale-work .sw-autoplay-toggle { position:absolute; width:1px; height:1px; padding:0; margin:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.scale-work .sw-autoplay-toggle:focus { position:static; width:auto; height:auto; padding:8px 10px; margin-left:auto; overflow:visible; clip-path:none; white-space:normal; outline:2px solid var(--sw-accent); }
/* The connector geometry remains fixed; only light and opacity move. */
.scale-work .diagram .sw-signal { fill:var(--sw-accent); stroke:color-mix(in srgb,var(--sw-accent) 40%,white); stroke-width:.6; filter:drop-shadow(0 0 2px var(--sw-accent)); pointer-events:none; opacity:0; }
.scale-work .sw-exiting .sw-copy,.scale-work .sw-exiting .wire { opacity:0; transition:opacity 150ms ease; }
.scale-work .sw-entering .sw-copy { animation:sw-copy-enter 300ms cubic-bezier(.16,1,.3,1) both; animation-delay:calc(var(--sw-order,0) * 65ms); }
.scale-work .sw-entering .wire path { stroke-dasharray:1; stroke-dashoffset:0; animation:sw-connector-enter 300ms cubic-bezier(.16,1,.3,1) both; }
.scale-work .sw-entering .wire path:nth-child(2) { animation-delay:35ms; }
.scale-work .sw-entering .wire path:nth-child(3) { animation-delay:70ms; }
.scale-work .sw-entering .wire path:nth-child(4) { animation-delay:130ms; }
.scale-work .sw-entering .wire path:nth-child(5) { animation-delay:190ms; }
.scale-work #sw-crystal.sw-crystal-arrival { transform-origin:320px 140px; animation:sw-crystal-arrival 420ms ease-out; }
.scale-work .review-node.sw-review-arrival { transform-origin:495px 140px; animation:sw-review-arrival 420ms ease-out; }
@keyframes sw-copy-enter { from { opacity:0; } to { opacity:1; } }
@keyframes sw-connector-enter { from { stroke-dashoffset:1; opacity:.2; } to { stroke-dashoffset:0; opacity:.55; } }
@keyframes sw-crystal-arrival { 0% { transform:rotate(-2deg) scale(.985); filter:brightness(1); } 50% { filter:brightness(1.4); } 100% { transform:none; filter:brightness(1); } }
@keyframes sw-review-arrival { 0%,100% { transform:scale(1); filter:drop-shadow(0 0 2px var(--sw-accent)); } 48% { transform:scale(1.7); filter:drop-shadow(0 0 5px var(--sw-accent)); } }
.scale-work .sw-mobile-wires path{fill:none;stroke:var(--sw-accent);stroke-width:1;opacity:.55;vector-effect:non-scaling-stroke;transition:stroke 400ms ease}
.scale-work .sw-mobile-signal{fill:var(--sw-accent);stroke:color-mix(in srgb,var(--sw-accent) 40%,white);stroke-width:.5;opacity:0;pointer-events:none}
@media(max-width:767px){
  .scale-work .visual{aspect-ratio:auto;padding:16px 16px 18px;justify-content:flex-start}
  .scale-work #sw-panel{order:2;flex:none;width:100%}
  .scale-work .diagram{display:none}
  .scale-work .controls{order:1;padding:0;margin:0 0 10px;width:100%}
  .scale-work .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%}
  .scale-work .tabs button{min-height:44px;padding:8px 5px;font-size:11px;text-align:center}
  .scale-work .mobile{display:flex;flex-direction:column;align-items:center;width:100%;font-size:13px;line-height:1.35;text-align:center}
  .scale-work .mobile .stage-label{display:block;font:10px/1.4 'Space Grotesk',sans-serif;letter-spacing:.08em;color:var(--sw-muted)}
  .scale-work .mobile strong{display:block;font-weight:500;color:var(--sw-ink)}
  .scale-work .sw-mobile-inputs{width:100%}
  .scale-work .sw-mobile-input-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:8px;align-items:start}
  .scale-work .sw-mobile-input-grid>div{min-width:0}
  .scale-work .sw-mobile-input-grid strong{font-size:11px;line-height:1.25;min-height:2.5em;overflow-wrap:normal}
  .scale-work .sw-mobile-input-grid span,.scale-work .sw-mobile-process>span:last-child,.scale-work .sw-mobile-review>span:last-child,.scale-work .sw-mobile-output>span:last-child{display:block;font-size:11px;line-height:1.35;color:var(--sw-muted)}
  .scale-work .sw-mobile-input-grid span{margin-top:4px;min-height:2.7em}
  .scale-work .sw-mobile-wires{display:block;overflow:visible}
  .scale-work .sw-mobile-input-wires{width:100%;height:25px;margin:2px 0 0}
  .scale-work .mobile-crystal{display:block;width:120px;height:120px;margin:0 auto 3px;overflow:visible}
  .scale-work .mobile-crystal :is(polygon,path,circle){filter:drop-shadow(0 0 2px var(--sw-accent))}
  .scale-work .mobile-crystal polygon,.scale-work .mobile-crystal path{stroke:var(--sw-accent)}
  .scale-work .mobile-crystal circle{fill:var(--sw-accent)}
  .scale-work .sw-mobile-process,.scale-work .sw-mobile-review,.scale-work .sw-mobile-output{width:100%}
  .scale-work .sw-mobile-process .stage-label,.scale-work .sw-mobile-review .stage-label,.scale-work .sw-mobile-output .stage-label{margin-bottom:4px}
  .scale-work .sw-mobile-process strong,.scale-work .sw-mobile-review strong,.scale-work .sw-mobile-output strong{font-size:14px;line-height:1.3}
  .scale-work .sw-mobile-process>span:last-child,.scale-work .sw-mobile-review>span:last-child,.scale-work .sw-mobile-output>span:last-child{margin-top:3px}
  .scale-work .sw-mobile-down-wire{width:20px;height:16px;margin:2px auto}
  .scale-work .sw-mobile-review-node{display:block;width:5px;height:5px;margin:0 auto 4px;border-radius:50%;background:var(--sw-accent);box-shadow:0 0 4px var(--sw-accent)}
  .scale-work .sw-mobile-output{padding:8px 8px 10px;background:color-mix(in srgb,var(--sw-accent) 7%,transparent);border-radius:5px}
  .scale-work .sw-exiting .mobile :is(strong,span:not(.sw-mobile-review-node),.sw-mobile-wires){opacity:0;transition:opacity 150ms ease}
  .scale-work .sw-entering .mobile :is(strong,span:not(.sw-mobile-review-node)){animation:sw-copy-enter 300ms cubic-bezier(.16,1,.3,1) both}
  .scale-work .sw-entering .sw-mobile-input-grid>div:nth-child(2) :is(strong,span){animation-delay:65ms}
  .scale-work .sw-entering .sw-mobile-input-grid>div:nth-child(3) :is(strong,span){animation-delay:130ms}
  .scale-work .sw-entering .sw-mobile-process :is(strong,span){animation-delay:130ms}
  .scale-work .sw-entering .sw-mobile-review :is(strong,span){animation-delay:195ms}
  .scale-work .sw-entering .sw-mobile-output :is(strong,span){animation-delay:260ms}
  .scale-work .sw-entering .mobile .sw-mobile-wires path{stroke-dasharray:1;stroke-dashoffset:0;animation:sw-connector-enter 300ms cubic-bezier(.16,1,.3,1) both}
  .scale-work .mobile-crystal.sw-crystal-arrival{animation:sw-crystal-arrival 420ms ease-out}
  .scale-work .sw-mobile-review-node.sw-review-arrival{animation:sw-review-arrival 420ms ease-out}
}
@media(min-width:390px) and (max-width:767px){.scale-work .tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce) { .scale-work .wire,.scale-work #sw-crystal :is(polygon,path,circle),.scale-work .review-node,.scale-work .visual { transition:none; } .scale-work .sw-entering *, .scale-work .sw-crystal-arrival,.scale-work .sw-review-arrival { animation:none!important; } }
