/* Shared diagram defaults use Actureva's charcoal, warm grey and sand palette. */
:root {
  --map-surface:#ffffff; --map-ink:#171717; --map-root:#202020; --map-root-active:#514438; --map-root-ink:#f6f3ef;
  --map-branch:#ddd5c9; --map-branch-active:#cbb89e; --map-branch-ink:#171717;
  --map-leaf:#e9e4dc; --map-leaf-active:#d8c2a7; --map-line:#80705e; --map-border:#9a8872; --map-band-ink:#5d5044;
}
/* Remove the rectangular white panel; the actual card or page remains visible beneath the SVG. */
.workspace-map { background:transparent; border-color:transparent; border-radius:0; box-shadow:none; color:var(--map-ink); scrollbar-color:var(--map-line) transparent; }
.workspace-map svg { background:transparent; }
.workspace-map .map-node rect { fill:var(--map-leaf); stroke:var(--map-border); }
.workspace-map .map-node text { fill:var(--map-ink); }
.workspace-map .map-node--root rect { fill:var(--map-root); stroke:var(--map-border); }
.workspace-map .map-node--root text { fill:var(--map-root-ink); }
.workspace-map .map-node--branch rect { fill:var(--map-branch); stroke:var(--map-border); }
.workspace-map .map-node--branch text { fill:var(--map-branch-ink); }
.workspace-map .map-edge { stroke:var(--map-line); }
/* Match the text halo to its real surface instead of leaving a white outline on dark cards. */
.workspace-map .map-band { fill:var(--map-band-ink); stroke:var(--map-surface); }
/* Preserve the existing timing and emphasis sequence while removing green from every animation frame. */
@keyframes map-emphasis { 0%,18%,75%,100% { fill:var(--map-leaf); } 35%,45% { fill:var(--map-leaf-active); } }
@keyframes map-root-emphasis { 0%,18%,75%,100% { fill:var(--map-root); } 35%,45% { fill:var(--map-root-active); } }
@keyframes map-branch-emphasis { 0%,18%,75%,100% { fill:var(--map-branch); } 35%,45% { fill:var(--map-branch-active); } }

/* The hub keeps the approved two-column geometry and restores neutral surrounding surfaces. */
.hub-page { --control-focus:#766049; }
.hub-page .app-main { background:#f7f7f6; }
.hub-page .studio-choice {
  --card-surface:#f1efeb; --card-ink:#171717; --card-border:#c8c1b7;
  --entry-surface:#202020; --entry-hover:#3c352d; --entry-ink:#f6f3ef; --map-surface:#f1efeb;
  background:var(--card-surface)!important; color:var(--card-ink)!important; border-color:var(--card-border)!important;
  box-shadow:0 6px 24px #00000007;
}
/* Dark cards use light labels and warm highlights, including the illuminated animation states. */
.hub-page .sam-choice,.hub-page .zicarp-choice {
  --card-surface:#111111; --card-ink:#f6f3ef; --card-border:#41403d; --map-surface:#111111;
  --entry-surface:#e8ddce; --entry-hover:#d6b894; --entry-ink:#171717;
  --map-ink:#f6f3ef; --map-root:#e8ddce; --map-root-active:#d6b894; --map-root-ink:#171717;
  --map-branch:#37332e; --map-branch-active:#6b5741; --map-branch-ink:#f6f3ef;
  --map-leaf:#242424; --map-leaf-active:#4b4033; --map-line:#b7a791; --map-border:#8f7a62; --map-band-ink:#d8c9b6;
}
.hub-page .studio-choice:hover { box-shadow:0 12px 32px #00000012; }
.hub-page .studio-choice .choice-tags span { background:transparent; color:inherit; border-color:var(--card-border); }
.hub-page .studio-choice .workspace-entry { background:var(--entry-surface); color:var(--entry-ink); border-color:var(--entry-surface); }
.hub-page .studio-choice .workspace-entry:hover { background:var(--entry-hover); color:var(--entry-ink); border-color:var(--entry-hover); }
.hub-page .studio-choice :is(a,[tabindex]):focus-visible { outline-color:var(--map-line); }
/* Carry the same neutral accents through the existing Reserving Studio animation. */
.hub-page .reserving-graphic .reserve-cells rect { fill:#b4ada3; stroke:#85786a; animation-name:hub-reserve-cell; }
.hub-page .reserving-graphic .coverage-track rect { fill:#ded8ce; }
.hub-page .reserving-graphic .coverage-track .coverage-fill { fill:#b79b78; }
.hub-page .reserving-graphic .coverage-track .second { fill:#746554; }
.hub-page .reserving-graphic .reserve-flow { stroke:#766049; }
.hub-page .reserving-graphic .reserve-axis { stroke:#a99e90; }
.hub-page .reserving-graphic .reserve-pulse { fill:#9c7a50; }
@keyframes hub-reserve-cell { 50% { fill:#8b7254; } }
/* Match the hub's existing navigation controls to the cards without changing calculation forms. */
.hub-page .app-header .button { background:#202020; border-color:#202020; color:#f6f3ef; }
.hub-page .app-header .button.secondary { background:#f1efeb; border-color:#c8c1b7; color:#171717; }
.hub-page .app-header .button.secondary:hover { background:#e8e4df; }
.hub-page .hub-company summary { background:#f1efeb; color:#171717; border-color:#c8c1b7; }
.hub-page .hub-company summary:hover { background:#e8e4df; }
.hub-page .hub-footnote .text-link { color:#171717; }
