/* WEAVER v9.7.3 — Operating System, convergence finish.
   Calmer panel: no inner box, no graticule, no duplicate ◆, no SYSTEM PANEL pill.
   Seven threads → one WEAVER point (the golden core rests here) → one output into IN FOCUS. */

/* ---- calmer field ---------------------------------------------------------------------------- */
.weave-visual::before,.weave-visual::after{display:none}
.weave-visual{--cx:60%;--cy:50%;
  background:
    radial-gradient(circle at var(--cx) var(--cy),rgba(250,228,166,.34) 0,rgba(246,224,166,.16) 34px,rgba(240,232,196,.06) 120px,rgba(236,244,238,0) 230px),
    radial-gradient(ellipse 62% 54% at 12% 50%,rgba(255,255,255,.62),rgba(255,255,255,0) 72%),
    linear-gradient(180deg,rgba(247,250,246,.9),rgba(239,245,240,.9))}
.weave-visual-label{justify-content:flex-start}
.weave-signature,.weave-diamond,.weave-frame-label{display:none}

/* ---- the WEAVER point ------------------------------------------------------------------------ */
.weave-core-orb{left:var(--cx);top:var(--cy);width:0;height:0;transition:none}
.weave-core-ring,.weave-core-ring--outer{display:none}
.weave-core-dot{width:11px;height:11px;border-radius:2.5px;transform:rotate(45deg);
  background:linear-gradient(135deg,#ffe07a,#f2bb22);box-shadow:0 0 0 6px rgba(226,186,76,.12),0 0 22px rgba(236,196,96,.55)}
.weave-node-label{position:absolute;left:var(--cx);top:calc(var(--cy) + 46px);transform:translateX(-50%);z-index:4;text-align:center;pointer-events:none;white-space:nowrap}
.weave-node-label b{display:block;font:700 11px/1 'DM Sans',var(--font);letter-spacing:.44em;padding-left:.44em;color:#1b5a43}
.weave-node-label span{display:block;margin-top:7px;font:600 7.5px/1 'DM Sans',var(--font);letter-spacing:.22em;padding-left:.22em;color:#9ab3a2}

/* ---- threads (overlay spanning list → field → IN FOCUS) ---------------------------------------- */
.weave-content{position:relative}
.weave-flow{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:3}
.weave-flow .wf-line{fill:none;stroke:#b4cbbb;stroke-width:1;stroke-linecap:round;transition:stroke .6s ease,stroke-width .6s ease}
.weave-flow .wf-glow{fill:none;stroke:#e8c76e;stroke-width:6;stroke-linecap:round;opacity:0;filter:blur(3px);transition:opacity .6s ease}
.weave-flow .wf-particle{fill:#8fb39e;opacity:.6}
.weave-flow .wf-thread.is-active .wf-line{stroke:#1d6b51;stroke-width:1.6}
.weave-flow .wf-thread.is-active .wf-glow{opacity:.22}
.weave-flow .wf-thread.is-active .wf-particle{fill:#e0b84f;opacity:1;filter:drop-shadow(0 0 3px rgba(236,196,96,.8))}
.weave-flow .wf-start{fill:#f6f9f6;stroke:#a5c0ab;stroke-width:1}
.weave-flow .wf-thread.is-active .wf-start{fill:#1d6b51;stroke:#1d6b51}
.weave-flow .wf-idx{font:600 7.5px 'DM Sans',sans-serif;letter-spacing:.08em;fill:#9ab3a2}
.weave-flow .wf-thread.is-active .wf-idx{fill:#1d6b51}
.weave-flow .wf-ring{fill:none;stroke:rgba(40,110,80,.18);stroke-width:1}
/* radar: soft waves keep spreading from the WEAVER point — nothing jumps, nothing snaps */
.weave-flow .wf-wave{fill:none;stroke:rgba(206,170,82,.55);stroke-width:1;vector-effect:non-scaling-stroke;transform-box:fill-box;transform-origin:center;opacity:0;
  animation:wfWave 3.9s cubic-bezier(.22,.6,.3,1) infinite}
.weave-flow .wf-radar .wf-wave:nth-child(2){animation-delay:1.3s}
.weave-flow .wf-radar .wf-wave:nth-child(3){animation-delay:2.6s}
@keyframes wfWave{0%{transform:scale(.16);opacity:0}14%{opacity:.7}100%{transform:scale(1);opacity:0}}
.weave-flow .wf-wave--hit{stroke:rgba(232,192,92,.95);stroke-width:1.4;animation:none}
.weave-flow .wf-wave--hit.is-on{animation:wfWaveHit 1.25s cubic-bezier(.2,.65,.25,1) both}
@keyframes wfWaveHit{0%{transform:scale(.2);opacity:.95}100%{transform:scale(1.15);opacity:0}}
/* the WEAVER point itself — lit when the golden core arrives (it takes over the core's light) */
.weave-flow .wf-core{--orb-lit:0}
.weave-flow .wf-core-halo{fill:url(#wfHalo);opacity:calc(.34 + .66*var(--orb-lit));transition:opacity .35s ease}
.weave-flow .wf-core-gem{fill:url(#wfGem);transform-box:fill-box;transform-origin:center;transform:rotate(45deg) scale(calc(.8 + .2*var(--orb-lit)));
  filter:drop-shadow(0 0 calc(2px + 6px*var(--orb-lit)) rgba(255,205,54,calc(.35 + .5*var(--orb-lit))))}
.weave-shell:not(.is-paused) .weave-flow .wf-core-halo{animation:wfGlow 3.9s ease-in-out infinite}
@keyframes wfGlow{0%,100%{fill-opacity:1}50%{fill-opacity:.72}}
.weave-core-orb{opacity:0;pointer-events:none}
.weave-flow .wf-out-base{fill:none;stroke:rgba(201,162,74,.22);stroke-width:1}
.weave-flow .wf-out{fill:none;stroke:url(#wfOut);stroke-width:1.6;stroke-linecap:round}
.weave-flow .wf-out-particle{fill:#e0b84f;filter:drop-shadow(0 0 3px rgba(236,196,96,.8))}
.weave-flow .wf-out-label{font:700 7.5px 'DM Sans',sans-serif;letter-spacing:.24em;fill:#b8994a}
.weave-flow .wf-port{fill:#e2bd5c;transform-box:fill-box;transform-origin:center}
.weave-flow .wf-port.is-hit{animation:wfPort .9s cubic-bezier(.2,.7,.2,1)}
@keyframes wfPort{0%{filter:drop-shadow(0 0 0 rgba(240,206,120,0))}30%{filter:drop-shadow(0 0 7px rgba(240,206,120,.95))}100%{filter:drop-shadow(0 0 0 rgba(240,206,120,0))}}
.weave-flow .wf-comet{fill:#f6d983;opacity:0;filter:drop-shadow(0 0 4px rgba(244,208,110,.95)) drop-shadow(0 0 10px rgba(244,208,110,.6))}
.weave-flow .wf-comet.is-on{opacity:1}

/* the indicator dot of each row is the origin of its thread */
.weave-dimension-indicator{width:7px;height:7px;box-sizing:border-box;background:#f6f9f6;border-color:#a9c3b0;position:relative;z-index:4}
.weave-dimension.is-active .weave-dimension-indicator{background:#1d6b51;border-color:#1d6b51;box-shadow:0 0 0 5px rgba(29,107,81,.10)}

/* IN FOCUS receives the output */
.weave-insight{position:relative}
.weave-insight::before{content:"";position:absolute;left:-1px;top:var(--port-y,50%);width:2px;height:72px;margin-top:-36px;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,rgba(226,189,92,0),rgba(226,189,92,.75),rgba(226,189,92,0));opacity:.45}
.weave-shell[data-flow-out="edge"] .weave-insight::before{display:none}
.weave-shell[data-flow-out="down"] .weave-insight::before{left:var(--port-x,50%);top:-1px;width:72px;height:2px;margin:0 0 0 -36px;
  background:linear-gradient(90deg,rgba(226,189,92,0),rgba(226,189,92,.75),rgba(226,189,92,0))}
.weave-insight.is-received::before{animation:wfReceive 1s ease-out}
@keyframes wfReceive{0%{opacity:.45}25%{opacity:1;box-shadow:0 0 14px rgba(236,196,96,.7)}100%{opacity:.45}}

/* ---- calm states ------------------------------------------------------------------------------ */
.weave-flow.is-calm .wf-particle,.weave-flow.is-calm .wf-out-particle,.weave-flow.is-calm .wf-comet,.weave-flow.is-calm .wf-wave{display:none}
.weave-shell.is-paused .weave-flow .wf-comet{opacity:0}
.weave-shell.is-paused .weave-flow .wf-wave,.weave-shell.is-paused .weave-flow .wf-core-halo{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.weave-flow .wf-wave,.weave-flow .wf-core-halo,.weave-flow .wf-port.is-hit,.weave-insight.is-received::before{animation:none}}

/* ---- small screens ---------------------------------------------------------------------------- */
@media(max-width:700px){
  .weave-node-label{top:calc(var(--cy) + 36px)}
  .weave-node-label b{font-size:10px}
  .weave-visual{min-height:300px}
}
/* stacked tablet: the output drops into IN FOCUS — the active name is right there, so the field label steps aside */
.weave-shell[data-flow-out="down"] .weave-visual-metrics span:last-child{visibility:hidden}

/* ---- mobile: compact — field → one swipeable row of disciplines → only what comes out ---------- */
@media(max-width:700px){
  #weaveShell .weave-topline{padding:12px 14px;min-height:46px}
  #weaveShell .weave-content{min-height:0}
  #weaveShell .weave-bottomline{display:none}
  #weaveShell .weave-visual{min-height:0;max-height:none;height:226px;padding:0}
  #weaveShell .weave-visual-label{inset:14px 14px auto 14px}
  #weaveShell .weave-visual-metrics{display:none}
  #weaveShell .weave-node-label{top:calc(var(--cy) + 30px)}
  #weaveShell .weave-node-label span{display:none}
  /* disciplines become chips in one row */
  #weaveShell .weave-list{order:2;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:6px;padding:12px 14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;border-right:0;border-bottom:1px solid rgba(40,94,62,.08);box-shadow:none;
    -webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
  #weaveShell .weave-list::-webkit-scrollbar{display:none}
  #weaveShell .weave-list .weave-section-label,#weaveShell .weave-list-foot{display:none}
  #weaveShell .weave-dimension{flex:0 0 auto;width:auto;min-height:0;display:inline-flex;align-items:center;gap:7px;padding:8px 13px 8px 11px;
    border:1px solid rgba(40,94,62,.15);border-radius:999px;background:rgba(255,255,255,.66);scroll-snap-align:start;transition:background .35s,border-color .35s,color .35s}
  #weaveShell .weave-dimension::before{display:none}
  #weaveShell .weave-index{font-size:9px;line-height:1}
  #weaveShell .weave-dimension-name{font-size:10.5px;line-height:1;letter-spacing:.04em;white-space:nowrap}
  #weaveShell .weave-dimension-name small{display:none}
  #weaveShell .weave-dimension.is-active{background:#1d6b51;border-color:#1d6b51}
  #weaveShell .weave-dimension.is-active .weave-index{color:#cfe3d6}
  #weaveShell .weave-dimension.is-active .weave-dimension-name{color:#fff}
  /* IN FOCUS keeps the essentials: what it is, and what WEAVER delivers */
  #weaveShell .weave-insight{padding:16px 16px 18px;gap:10px}
  #weaveShell .weave-insight>.weave-section-label,#weaveShell .weave-insight-tags,#weaveShell .weave-insight-footer{display:none}
  #weaveShell .weave-insight-main h3{font-size:22px;margin:6px 0}
  #weaveShell .weave-insight-main p{font-size:12.5px;line-height:1.7}
  #weaveShell .weave-insight-grid .weave-card:nth-child(-n+2){display:none}
  #weaveShell .weave-insight-grid .weave-card:last-child{padding:12px 14px;border-left:2px solid #e2bd5c;background:linear-gradient(90deg,rgba(242,212,140,.14),rgba(255,255,255,.5) 60%)}
  #weaveShell .weave-insight-grid .weave-card:last-child .weave-card-label{color:#b08833}
}
