/* Approved W2-2 orbit. Tokens stay on .w2-live so they do not replace site --brand. */

.w2-live {
  --neon: #0ca6a8;
  --neon-glow: rgba(12, 166, 168, 0.28);
  --gold: #d97706;
  --line: rgba(5, 104, 107, 0.15);
  --line-strong: rgba(5, 104, 107, 0.34);
  --node-bg: #ffffff;
  --node-sat-bg: #f3fbfb;
  --node-border: #05686b;
  --node-shadow: 0 10px 26px rgba(5, 104, 107, 0.14);
  --hub-bg: radial-gradient(circle at 50% 50%, #065f63 0%, #044346 65%, #022c2e 100%);
  --grid-dot: rgba(5, 104, 107, 0.08);
  --surface: #ffffff;
  --surface-2: #eaf5f5;
  --surface-3: #d8ecec;
  --ink: #07292c;
  --ink-2: #22494d;
  --muted: #4b6b6e;
  --brand: #05686b;
  --brand-2: #0d9488;
  margin: 8px 0 22px;
  letter-spacing: 0;
}
.w2-live, .w2-live * { letter-spacing: 0; }

[data-theme="dark"] .w2-live {
  --neon: #00f5d4;
  --neon-glow: rgba(0, 245, 212, 0.35);
  --gold: #fbbf24;
  --line: rgba(45, 212, 191, 0.18);
  --line-strong: rgba(45, 212, 191, 0.42);
  --node-bg: #0d2b31;
  --node-sat-bg: #11363d;
  --node-border: #2dd4bf;
  --node-shadow: 0 0 24px rgba(0, 245, 212, 0.22);
  --hub-bg: radial-gradient(circle at 35% 30%, #14b8a6 0%, #0f766e 55%, #042f2e 100%);
  --grid-dot: rgba(45, 212, 191, 0.08);
  --surface: #0a2227;
  --surface-2: #0f2f35;
  --surface-3: #153e46;
  --ink: #ecfeff;
  --ink-2: #bfe5e8;
  --muted: #84b2b6;
  --brand: #2dd4bf;
  --brand-2: #14b8a6;
}

[data-theme="noir"] .w2-live {
  --neon: #c4b5fd;
  --neon-glow: rgba(167, 139, 250, 0.35);
  --gold: #fbbf24;
  --line: rgba(167, 139, 250, 0.22);
  --line-strong: rgba(196, 181, 253, 0.48);
  --node-bg: #1a1030;
  --node-sat-bg: #24143d;
  --node-border: #a78bfa;
  --node-shadow: 0 0 24px rgba(167, 139, 250, 0.28);
  --hub-bg: radial-gradient(circle at 35% 30%, #7c3aed 0%, #5b21b6 55%, #2e1065 100%);
  --grid-dot: rgba(167, 139, 250, 0.12);
  --surface: #140b24;
  --surface-2: #1c1033;
  --surface-3: #2a1848;
  --ink: #f5f3ff;
  --ink-2: #ddd6fe;
  --muted: #c4b5fd;
  --brand: #a78bfa;
  --brand-2: #c4b5fd;
}

/* Physical right = orbit, physical left = detail, in every language. */
.w2-live .w2-grid {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 640px;
  gap: 26px;
  align-items: center;
}
.w2-live .w2-stage-fit { grid-column: 2; grid-row: 1; min-width: 0; }
.w2-live .w2-detail-panel { grid-column: 1; grid-row: 1; direction: rtl; min-width: 0; }
html[dir="ltr"] .w2-live .w2-detail-panel { direction: ltr; }

.w2-live { max-width: 100%; overflow-x: clip; }
.w2-live .w2-stage-fit {
  width: min(640px, 100%);
  max-width: 100%;
  overflow: hidden;
  margin-inline: auto;
  container-type: inline-size;
}
.w2-live .orb-stage--w2 {
  position: relative;
  width: 640px;
  height: 610px;
  overflow: hidden;
  margin: 0 auto;
  user-select: none;
  border-radius: 24px;
  background:
    radial-gradient(circle at 48% 50%, var(--neon-glow) 0%, transparent 62%),
    radial-gradient(var(--grid-dot) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 22px 22px;
  border: 1px solid var(--line);
  zoom: min(1, 100cqi / 640px);
}
.w2-live .orb-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 1;
}

.w2-live .hub-halo-ring {
  fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: 0.45;
}
.w2-live .orbit-guide {
  fill: none; stroke: var(--brand); stroke-width: 1.2; opacity: 0.26;
}
.w2-live .orbit-guide.orbit-med { opacity: 0.34; stroke-width: 1.4; }
.w2-live .orbit-guide.orbit-long { opacity: 0.22; }
.w2-live .grow-arc {
  fill: none; stroke: var(--neon); stroke-width: 2.6; stroke-linecap: round;
  opacity: 0.72;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.w2-live .orb-stage.is-animated .grow-arc {
  animation: w2DrawArc 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards, w2SwayArc 5.5s ease-in-out infinite alternate;
  animation-delay: calc(0.55s + var(--ai, 0) * 0.12s), calc(1.7s + var(--ai, 0) * 0.2s);
}
.w2-live .arc-tip-dot {
  fill: var(--neon); opacity: 0;
  transform-box: fill-box; transform-origin: center;
}
.w2-live .orb-stage.is-animated .arc-tip-dot {
  animation: w2BloomDot 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, w2PulseTip 2.6s ease-in-out infinite;
  animation-delay: calc(1.1s + var(--ai, 0) * 0.12s), calc(1.7s + var(--ai, 0) * 0.18s);
}
.w2-live .stem-base {
  fill: none; stroke: var(--brand); stroke-width: 2.8; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.85;
}
.w2-live .stem-short .stem-base { stroke-width: 3.4; }
.w2-live .stem-long .stem-base { stroke-width: 2.6; }
.w2-live .stem-glow {
  fill: none; stroke: var(--neon); stroke-width: 5.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.38;
}
.w2-live .stem-group.is-active .stem-base { stroke: var(--neon); stroke-width: 3.8; opacity: 1; }
.w2-live .stem-group.is-active .stem-glow { opacity: 0.85; stroke-width: 8; }
.w2-live .orb-stage.is-animated .stem-base,
.w2-live .orb-stage.is-animated .stem-glow {
  animation: w2DrawStem 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.12s + var(--i, 0) * 0.09s);
}
.w2-live .stem-pulse {
  fill: none; stroke: #ffffff; stroke-width: 3.6; stroke-linecap: round;
  stroke-dasharray: 0.18 1.2; stroke-dashoffset: 0.2; opacity: 0;
}
[data-theme="light"] .w2-live .stem-pulse { stroke: var(--neon); stroke-width: 4.2; }
.w2-live .orb-stage.is-animated .stem-pulse {
  animation: w2TravelPulse 2.8s linear infinite;
  animation-delay: calc(0.95s + var(--i, 0) * 0.28s);
}
.w2-live .stem-root-dot { fill: var(--brand); opacity: 0.9; }
.w2-live .stem-tip-dot {
  fill: var(--neon); opacity: 0;
  transform-box: fill-box; transform-origin: center;
}
.w2-live .orb-stage.is-animated .stem-tip-dot {
  animation: w2BloomDot 0.45s ease-out forwards, w2PulseTip 2.2s ease-in-out infinite;
  animation-delay: calc(0.62s + var(--i, 0) * 0.09s), calc(1.2s + var(--i, 0) * 0.15s);
}

.w2-live .orb-hub {
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--hub-bg);
  border: 3.5px solid #ffffff;
  color: #ffffff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  text-align: center;
  box-shadow: 0 0 0 7px var(--surface-2), 0 14px 34px rgba(4, 47, 46, 0.28);
  z-index: 4;
  padding: 10px;
  box-sizing: border-box;
}
[data-theme="dark"] .w2-live .orb-hub,
[data-theme="noir"] .w2-live .orb-hub {
  border-color: var(--neon);
  box-shadow: 0 0 0 6px var(--neon-glow), 0 0 32px var(--neon-glow);
}
.w2-live .orb-hub-pulse {
  position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid var(--neon); opacity: 0; pointer-events: none;
  animation: w2HubHalo 3.2s ease-out infinite;
}
.w2-live .orb-hub-q2 {
  width: 50px; height: 50px;
  color: #ffffff;
  filter: drop-shadow(0 2px 5px rgba(2, 20, 22, 0.45));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  flex-shrink: 0;
}
.w2-live .orb-hub-q2 svg { width: 100%; height: 100%; display: block; overflow: visible; }
.w2-live .orb-hub-title {
  font-family: "Kalameh", Tahoma, sans-serif;
  font-weight: 700; font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: #ffffff;
  max-width: 116px;
  text-shadow: 0 1px 4px rgba(2, 20, 22, 0.45);
}
.w2-live .w2-stem-pill { display: none !important; }
.w2-live[data-w2="home"] .orb-hub-title { font-size: 16px; margin: 0; }
.w2-live .orb-hub-sub { font-size: 10px; color: #ccfbf1; margin-top: 2px; font-weight: 700; line-height: 1.15; max-width: 112px; }
html[lang="en"] .w2-live .orb-hub-title { font-size: 13.5px; font-family: "KalamehLatinDigits", "Kalameh", Tahoma, sans-serif; }
html[lang="en"] .w2-live .orb-hub-sub { font-size: 9px; }

.w2-live .orb-node {
  position: absolute;
  border-radius: 50%;
  background: var(--node-bg);
  border: 2.6px solid var(--node-border);
  box-shadow: var(--node-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  z-index: 4;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  opacity: 0;
  transform: scale(0.45);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}
.w2-live .orb-stage.is-animated .orb-node {
  animation:
    w2BloomNode 0.58s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    w2FloatNode 4.2s ease-in-out infinite alternate;
  animation-delay:
    calc(0.48s + var(--i, 0) * 0.09s),
    calc(1.15s + var(--i, 0) * 0.22s);
}
.w2-live .orb-node.is-satellite {
  background: var(--node-sat-bg);
  border-width: 2.4px;
  padding: 7px;
}
.w2-live .orb-node-halo {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--neon); opacity: 0; pointer-events: none;
}
.w2-live .orb-node:hover,
.w2-live .orb-node.is-active {
  border-width: 3.2px;
  border-color: var(--neon);
  box-shadow: 0 0 0 5px var(--neon-glow), var(--node-shadow);
  z-index: 6;
}
.w2-live .orb-node.is-active .orb-node-halo {
  opacity: 0.9;
  animation: w2ActiveNodePulse 2s ease-in-out infinite;
}
.w2-live .orb-node-inner {
  width: 92px;
  max-width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  pointer-events: none;
}
.w2-live .orb-node.is-satellite .orb-node-inner { width: 78px; max-width: 78px; }
.w2-live .orb-node-num {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  color: #ffffff;
  background: var(--brand);
  padding: 0 6px;
  border-radius: 999px;
  line-height: 1.25;
}
[data-theme="dark"] .w2-live .orb-node-num,
[data-theme="noir"] .w2-live .orb-node-num { color: #042f2e; }
[data-theme="noir"] .w2-live .orb-node-num { color: #1e1033; }
.w2-live .orb-node.is-active .orb-node-num { background: var(--neon); color: #042f2e; }
[data-theme="noir"] .w2-live .orb-node.is-active .orb-node-num { color: #1e1033; }
.w2-live .orb-node-title {
  font-size: 10.6px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.w2-live .orb-node.is-satellite .orb-node-title { font-size: 9.6px; line-height: 1.12; }
html[lang="en"] .w2-live .orb-node-title { font-size: 9.7px; }
html[lang="en"] .w2-live .orb-node.is-satellite .orb-node-title { font-size: 9px; }
.w2-live .orb-node-stat {
  font-size: 8.6px;
  font-weight: 700;
  color: var(--brand-2);
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.w2-live .orb-node.is-satellite .orb-node-stat { font-size: 8px; }

.w2-live .w2-detail-panel {
  background: var(--surface-2);
  border: 1.5px solid var(--line-strong);
  border-radius: 22px;
  padding: 22px 22px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.25s ease;
}
.w2-live .w2-detail-panel.is-rippling {
  box-shadow: 0 0 0 4px var(--neon-glow), 0 16px 36px rgba(0, 0, 0, 0.12);
}
.w2-live .w2-panel-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.w2-live .w2-active-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(20, 184, 166, 0.16); color: var(--brand);
  border: 1px solid var(--line-strong); padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
}
[data-theme="noir"] .w2-live .w2-active-tag { background: rgba(167, 139, 250, 0.16); }
.w2-live .w2-stem-pill {
  font-size: 11px; font-weight: 800; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px;
}
.w2-live .w2-detail-panel h3 {
  font-size: 1.15rem; font-weight: 900; color: var(--ink); margin: 0 0 8px; line-height: 1.45;
}
.w2-live .w2-detail-panel p {
  font-size: 0.92rem; color: var(--ink-2); margin: 0 0 16px; line-height: 1.75;
}
.w2-live .w2-kpi-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px;
}
.w2-live .w2-kpi {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 10px 8px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.w2-live .w2-kpi--single {
  min-height: 54px;
}
.w2-live .w2-kpi--single b {
  font-size: 0.88rem; line-height: 1.35;
}
.w2-live .w2-kpi b { display: block; font-size: 0.95rem; font-weight: 900; color: var(--brand); line-height: 1.25; }
.w2-live .w2-kpi span { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 3px; font-weight: 600; line-height: 1.35; }
.w2-live .w2-compare {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; margin-bottom: 14px;
}
.w2-live .w2-bar-row { margin-bottom: 10px; font-size: 12px; }
.w2-live .w2-bar-row:last-child { margin-bottom: 0; }
.w2-live .w2-bar-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 5px; }
.w2-live .w2-bar-head b,
.w2-live .w2-bar-head span[data-role="bar-b-label"] { font-weight: 700; line-height: 1.4; }
.w2-live .w2-bar-val { font-weight: 900; color: var(--brand); flex: none; }
.w2-live .w2-bar-val.muted { color: var(--muted); font-weight: 700; }
.w2-live .w2-bar-track { height: 8.5px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.w2-live .w2-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--brand), var(--neon));
  border-radius: 99px; transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.w2-live .w2-bar-fill.secondary { background: #94a3b8; }
.w2-live .w2-node-Strip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding-top: 12px; border-top: 1px dashed var(--line-strong);
}
.w2-live .strip-hint { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.w2-live .strip-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.w2-live .strip-pill {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2); font-family: inherit;
  font-size: 11px; font-weight: 800; cursor: pointer; padding: 0;
}
.w2-live .strip-pill.is-active,
.w2-live .strip-pill:hover {
  background: var(--brand); color: #ffffff; border-color: var(--neon);
}
[data-theme="dark"] .w2-live .strip-pill.is-active,
[data-theme="dark"] .w2-live .strip-pill:hover { color: #042f2e; }
[data-theme="noir"] .w2-live .strip-pill.is-active,
[data-theme="noir"] .w2-live .strip-pill:hover { color: #1e1033; }
.w2-live .replay-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--neon);
  background: var(--surface); color: var(--brand);
  font-family: inherit; font-size: 16px; font-weight: 800; line-height: 1;
  cursor: pointer; padding: 0;
}
.w2-live .replay-btn:hover { background: var(--neon); color: #042f2e; }
[data-theme="noir"] .w2-live .replay-btn:hover { color: #1e1033; }

@keyframes w2DrawStem { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes w2DrawArc {
  from { stroke-dashoffset: 1; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 0.72; }
}
@keyframes w2SwayArc { from { opacity: 0.52; } to { opacity: 0.88; } }
@keyframes w2TravelPulse {
  0% { stroke-dashoffset: 0.22; opacity: 0; }
  15% { opacity: 0.95; }
  80% { opacity: 0.95; }
  100% { stroke-dashoffset: -1.05; opacity: 0; }
}
@keyframes w2BloomDot {
  from { opacity: 0; transform: scale(0.2); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes w2PulseTip {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.45); opacity: 1; }
}
@keyframes w2BloomNode {
  from { opacity: 0; transform: scale(0.42); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes w2FloatNode {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}
@keyframes w2HubHalo {
  from { transform: scale(0.92); opacity: 0.75; }
  to { transform: scale(1.22); opacity: 0; }
}
@keyframes w2ActiveNodePulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 0.35; }
}

@media (max-width: 1180px) {
  .w2-live .w2-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .w2-live .w2-stage-fit { grid-column: 1; grid-row: 1; width: min(640px, 100%); }
  .w2-live .w2-detail-panel { grid-column: 1; grid-row: 2; width: 100%; }
}
@media (max-width: 720px) {
  .w2-live .w2-kpi-grid { grid-template-columns: 1fr 1fr; }
  .w2-live .w2-detail-panel { padding: 16px 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .w2-live .orb-node { opacity: 1; transform: none; }
  .w2-live .stem-base,
  .w2-live .stem-glow,
  .w2-live .grow-arc { stroke-dashoffset: 0; }
  .w2-live .stem-tip-dot,
  .w2-live .arc-tip-dot { opacity: 1; }
  .w2-live .orb-stage.is-animated .stem-base,
  .w2-live .orb-stage.is-animated .stem-glow,
  .w2-live .orb-stage.is-animated .grow-arc,
  .w2-live .orb-stage.is-animated .stem-pulse,
  .w2-live .orb-stage.is-animated .orb-node,
  .w2-live .orb-stage.is-animated .stem-tip-dot,
  .w2-live .orb-stage.is-animated .arc-tip-dot,
  .w2-live .orb-hub-pulse,
  .w2-live .orb-node.is-active .orb-node-halo { animation: none !important; }
}

/* Hide stem-pill and strip-hint across all sections per boss order ([t270u]) */
.w2-live .w2-stem-pill,
.w2-live .strip-hint {
  display: none !important;
}
.w2-live .w2-node-Strip {
  justify-content: center !important;
}

/* Support 5 and 6 KPI cards cleanly ([t267u], [t269u]) */
.w2-live .w2-kpi-grid[data-kpi-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.w2-live .w2-kpi-grid[data-kpi-count="5"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.w2-live .w2-kpi-grid .w2-kpi:nth-child(5):last-child {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .w2-live .w2-kpi-grid[data-kpi-count="6"],
  .w2-live .w2-kpi-grid[data-kpi-count="5"] {
    grid-template-columns: 1fr 1fr;
  }
}

/* Ensure multi-word orbital circle subtitles fit comfortably inside 118px circles ([t268u]) */
.w2-live .orb-node-inner {
  padding: 6px 8px;
}
.w2-live .orb-node-stat {
  font-size: 9.5px;
  line-height: 1.25;
  max-width: 98px;
  text-align: center;
}
