/* GracianB P10 · abyss petrol, even darker throughout hub and applications. Silver preserved. */
@media screen {
html[data-theme="dark"] {
  --deck-deep:#010407;--deck-bg:#02070b;--deck-low:#050e14;
  --deck-card:#09171e;--deck-raised:#10242d;
  --deck-silver:#c7cdd0;--deck-silver-soft:#aebbc0;
  --deck-petrol:#88a4b0;--deck-petrol-soft:#587582;
  --deck-ivory:#edf2f2;--deck-text:#edf2f2;
  --deck-muted:#b5c2c7;--deck-rule:rgba(199,205,208,.26);
  --deck-rule-strong:rgba(199,205,208,.42);
  color-scheme:dark;
}

/* HUB · suppress the obsolete ochre / brown palette at the source. */
html[data-theme="dark"] {
  --bg:var(--deck-bg);--bg-soft:var(--deck-low);
  --panel:rgba(5,14,20,.98);--panel-strong:var(--deck-card);
  --text:var(--deck-text);--muted:var(--deck-muted);--subtle:var(--deck-silver-soft);
  --line:var(--deck-rule);--line-strong:var(--deck-rule-strong);
  --cv-ink:var(--deck-bg);--cv-paper:var(--deck-ivory);
  --cv-ochre:var(--deck-silver);--cv-forest:var(--deck-card);
  --gold:var(--deck-silver);--cyan:var(--deck-petrol);--coral:#adb9c0;
  --violet:#bac2ce;--sage:#a9c4b7;
  --shadow:0 24px 90px rgba(0,0,0,.46);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at 8% 8%,rgba(127,152,164,.08),transparent 36rem),
    radial-gradient(ellipse at 91% 26%,rgba(95,120,130,.06),transparent 35rem),
    var(--deck-bg);
  color:var(--deck-text);
}
html[data-theme="dark"] ::selection{background:rgba(199,205,208,.28);color:#fff}
html[data-theme="dark"] :focus-visible{outline-color:var(--deck-silver)}
html[data-theme="dark"] .ambient-orb-a{background:#88a4b0}
html[data-theme="dark"] .ambient-orb-b{background:#527580}
html[data-theme="dark"] .scroll-progress i{
  background:linear-gradient(90deg,var(--deck-petrol-soft),var(--deck-silver));
  box-shadow:0 0 9px rgba(199,205,208,.15);
}
html[data-theme="dark"] .topbar{
  background:linear-gradient(180deg,rgba(1,4,7,.99),rgba(2,7,11,.97));
  border-bottom-color:var(--deck-rule);
}
html[data-theme="dark"] .brand-mark{
  border-color:rgba(199,205,208,.52);
  box-shadow:inset 0 0 0 4px rgba(199,205,208,.035);
  color:var(--deck-silver);
}
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .segment,
html[data-theme="dark"] .menu-toggle{border-color:var(--deck-rule)}
html[data-theme="dark"] .hero-name::before{
  background:radial-gradient(circle,rgba(199,205,208,.095),transparent 68%);
}
html[data-theme="dark"] .hero-name-last{
  color:var(--deck-silver);
  text-shadow:0 18px 68px rgba(137,164,175,.15);
}
html[data-theme="dark"] .hero-thesis em{color:var(--deck-silver)}
html[data-theme="dark"] .hero-actions .button-primary{
  background:var(--deck-silver);border-color:var(--deck-silver);
  color:var(--deck-bg);box-shadow:0 10px 26px rgba(9,18,24,.32);
}
html[data-theme="dark"] .hero-actions .button-primary:hover{
  background:#dee3e5;border-color:#dee3e5;color:var(--deck-bg)
}
html[data-theme="dark"] .button-secondary{
  border-color:rgba(199,205,208,.42);
  background:rgba(199,205,208,.065);color:var(--deck-text)
}
html[data-theme="dark"] .button-secondary:hover{background:rgba(199,205,208,.13)}
html[data-theme="dark"] .hero-recruiter-route a,
html[data-theme="dark"] .hero-proof-link{border-color:var(--deck-silver);text-decoration-color:var(--deck-silver)}
html[data-theme="dark"] .hero-recruiter-route a:hover,
html[data-theme="dark"] .hero-proof-link:hover{color:#e1e6e8}
html[data-theme="dark"] .hero-role-wow::before{
  background:linear-gradient(90deg,var(--deck-silver),transparent)
}
html[data-theme="dark"] .hero-proof-wow .live-dot{box-shadow:0 0 0 5px rgba(199,205,208,.1)}
html[data-theme="dark"] .world-selector{
  background:
    radial-gradient(circle at 82% 6%,rgba(136,164,176,.055),transparent 20rem),
    linear-gradient(180deg,rgba(7,17,23,.97),rgba(5,14,20,.98));
  border-color:var(--deck-rule-strong)
}
html[data-theme="dark"] .world-selector-head,
html[data-theme="dark"] .world-card-copy{border-color:var(--deck-rule)}
html[data-theme="dark"] .world-professional{--world-accent:var(--deck-silver)}
html[data-theme="dark"] .door-gold{--accent:var(--deck-silver)}
html[data-theme="dark"] .evidence-card,
html[data-theme="dark"] .document-group,
html[data-theme="dark"] .arc-grid,
html[data-theme="dark"] .contact-panel{
  border-color:var(--deck-rule);
  background-color:var(--deck-card);
}
html[data-theme="dark"] .evidence-gold{--accent:var(--deck-silver)}
html[data-theme="dark"] .evidence-coral{--accent:#b2bdc3}
html[data-theme="dark"] .evidence-card{
  background:
    linear-gradient(180deg,color-mix(in srgb,var(--accent) 5%,transparent),transparent 42%),
    var(--deck-card);
}
html[data-theme="dark"] .contact-panel{
  background:
    radial-gradient(circle at 80% 0%,rgba(199,205,208,.08),transparent 24rem),
    var(--deck-card);
}
html[data-theme="dark"] .document-group-professional{--document-accent:var(--deck-silver)}
html[data-theme="dark"] .document-group-professional .document-visual{
  background:linear-gradient(135deg,var(--deck-card),var(--deck-bg) 84%);
}
html[data-theme="dark"] .document-group-head span,
html[data-theme="dark"] .arc-grid article>span{color:var(--deck-silver)}
html[data-theme="dark"] .command-panel{
  background:var(--deck-card);border-color:var(--deck-rule-strong);
}
html[data-theme="dark"] #command-input{
  background:var(--deck-low);border-color:var(--deck-rule);
  color:var(--deck-text)
}

/* APPLICATIONS · same shell, controls, case studies and recruiter briefs. */
html[data-theme="dark"] {
  --ink:var(--deck-text);--muted:var(--deck-muted);
  --paper:var(--deck-bg);--white:var(--deck-card);
  --line:var(--deck-rule);--accent:var(--deck-silver);
}
html[data-theme="dark"] .canvas{
  background:var(--deck-bg);box-shadow:0 14px 72px rgba(0,0,0,.33)
}
html[data-theme="dark"] .top{border-bottom-color:var(--deck-rule)}
html[data-theme="dark"] .brandmark{border-color:var(--deck-silver);color:var(--deck-silver)}
html[data-theme="dark"] .app-theme-toggle{border-color:var(--deck-rule-strong)}
html[data-theme="dark"] .app-theme-toggle:hover{background:rgba(199,205,208,.11)}
html[data-theme="dark"] .lang button{color:var(--deck-text)}
html[data-theme="dark"] .lang button[aria-pressed="true"]{
  color:var(--deck-bg);background:var(--deck-silver)
}
html[data-theme="dark"] .hero{
  background:radial-gradient(ellipse at 100% 0%,rgba(199,205,208,.095),transparent 60%);
  border-bottom-color:var(--deck-rule)
}
html[data-theme="dark"] .kicker{color:var(--deck-silver)}
html[data-theme="dark"] .hero h1 em{color:var(--deck-silver)}
html[data-theme="dark"] .lead{color:var(--deck-muted)}
html[data-theme="dark"] .hero-meta{border-color:var(--deck-rule)}
html[data-theme="dark"] .hero-meta a{color:var(--deck-silver)}
html[data-theme="dark"] .selector button{border-color:var(--deck-rule-strong);color:var(--deck-text)}
html[data-theme="dark"] .selector button:hover{background:var(--deck-raised)}
html[data-theme="dark"] .selector button[aria-pressed="true"]{
  background:var(--deck-silver);border-color:var(--deck-silver);color:var(--deck-bg)
}
html[data-theme="dark"] .panel{
  background:var(--deck-card);border-color:var(--deck-rule);
  box-shadow:0 15px 30px rgba(0,0,0,.18)
}
html[data-theme="dark"] .panel.ink{
  --track:var(--deck-silver);--track-bg:var(--deck-raised)
}
html[data-theme="dark"] .panel.forest{
  --track:#b5c7bd;--track-bg:#203732
}
html[data-theme="dark"] .panel.navy{
  --track:#b9c9d1;--track-bg:var(--deck-raised)
}
html[data-theme="dark"] .resource-columns a{border-bottom-color:var(--deck-rule)}
html[data-theme="dark"] .resource-columns a:hover{color:#fff}
html[data-theme="dark"] .direct-links a,
html[data-theme="dark"] .b6-application-handoff a{
  background:var(--deck-low);color:var(--deck-text);border-color:var(--deck-rule-strong)
}
html[data-theme="dark"] .direct-links .solid{
  background:var(--deck-silver);border-color:var(--deck-silver);color:var(--deck-bg)
}
html[data-theme="dark"] .share-application,
html[data-theme="dark"] .role-focus,
html[data-theme="dark"] .candidate-brief{
  background:var(--deck-low);border-color:var(--deck-rule-strong);color:var(--deck-text)
}
html[data-theme="dark"] .share-application button,
html[data-theme="dark"] .candidate-brief-print{
  background:var(--deck-card);border-color:var(--deck-rule-strong);color:var(--deck-text)
}
html[data-theme="dark"] .share-application button:hover,
html[data-theme="dark"] .candidate-brief-print:hover{background:var(--deck-raised)}
html[data-theme="dark"] .role-focus{
  background:linear-gradient(155deg,var(--deck-card),var(--deck-low));
}
html[data-theme="dark"] .role-focus-options button{
  background:var(--deck-card);border-color:var(--deck-rule-strong);color:var(--deck-text)
}
html[data-theme="dark"] .role-focus-options button:hover{background:var(--deck-raised)}
html[data-theme="dark"] .role-focus-options button[aria-pressed="true"]{
  background:var(--deck-silver);border-color:var(--deck-silver);color:var(--deck-bg)
}
html[data-theme="dark"] .role-proof{
  background:var(--deck-card);border-color:var(--deck-rule)
}
html[data-theme="dark"] .role-proof h5,
html[data-theme="dark"] .role-focus h4{color:var(--deck-text)}
html[data-theme="dark"] .role-proof p,
html[data-theme="dark"] .role-focus-header p{color:var(--deck-muted)}
html[data-theme="dark"] .role-proof-links a,
html[data-theme="dark"] .candidate-brief-actions a{
  background:var(--deck-raised);border-color:var(--deck-rule-strong);color:var(--deck-text)
}
html[data-theme="dark"] .role-proof-links a:hover,
html[data-theme="dark"] .candidate-brief-actions a:hover{background:#29414d}
html[data-theme="dark"] .candidate-brief-identity,
html[data-theme="dark"] .candidate-brief-footer{border-color:var(--deck-rule)}
html[data-theme="dark"] .candidate-brief-kicker,
html[data-theme="dark"] .candidate-brief-actions b,
html[data-theme="dark"] .candidate-brief-footer a{color:var(--deck-silver)}
html[data-theme="dark"] .candidate-brief-story li::before{background:var(--deck-silver)}
html[data-theme="dark"] .foot{background:var(--deck-deep);color:var(--deck-text)}
/* Final dark pass: silver hierarchy and readable universe controls. */
html[data-theme="dark"] .hero-kicker-row .eyebrow,
html[data-theme="dark"] .hero-role-wow,
html[data-theme="dark"] .hero-edition{color:var(--deck-silver)}
html[data-theme="dark"] .hero-lead-wow{color:#c1cacc}
html[data-theme="dark"] .world-carousel-controls .world-overview-toggle{
  color:var(--deck-text);background:rgba(199,205,208,.07);
  border-color:var(--deck-rule-strong);font-size:.83rem;font-weight:750
}
html[data-theme="dark"] .world-carousel-controls .world-overview-toggle[aria-pressed="true"]{
  background:rgba(199,205,208,.14);border-color:var(--deck-silver)
}
html[data-theme="dark"] :is(.world-selector,.evidence-card,.document-group,.contact-panel,.command-panel,.panel,.role-focus,.role-proof,.candidate-brief){
  border-color:var(--deck-rule-strong)
}
@media(hover:hover) and (pointer:fine){
  html[data-theme="dark"] :is(.world-selector.is-overview .world-card,.evidence-card,.document-group,.role-proof,.contact-panel):hover{
    border-color:rgba(199,205,208,.58);box-shadow:0 20px 48px rgba(0,0,0,.30)
  }
  html[data-theme="dark"] :is(.button-secondary,.world-enter,.candidate-brief-actions a,.role-proof-links a):hover{
    border-color:var(--deck-silver);color:#fff
  }
  html[data-theme="dark"] .world-carousel-controls .world-overview-toggle:hover{
    border-color:var(--deck-silver);background:rgba(199,205,208,.15);color:#fff
  }
}
}
