/* XALO STUDIO V88 – scoped source-level parity pass.
   Source of truth: the homepage's warm charcoal / champagne-gold palette.
   Intentionally excludes creative output, video/canvas, audio timelines, DAW tracks,
   waveform colors, color swatches, user-generated artwork, and game canvases.
   Load AFTER all legacy CSS, including page-specific editor styles. */
:root{
  --x88-bg:#0c0d10;
  --x88-surface:#17191d;
  --x88-surface-hover:#24221f;
  --x88-panel:#1c1d21;
  --x88-border:#665746;
  --x88-border-soft:#4e4740;
  --x88-gold:#d6b68e;
  --x88-gold-hover:#e7c99f;
  --x88-text:#f4ece2;
  --x88-muted:#c3b7a9;
  --x88-focus:#f0d4a8;
}
/* The visible global chrome is identical on standard and special-purpose routes. */
body.x79-site #xalo-global-header .xg-shell{
  color:var(--x88-text)!important;
  border:1px solid var(--x88-border)!important;
  background:rgba(19,20,23,.97)!important;
  box-shadow:0 9px 27px rgba(0,0,0,.25)!important;
  border-radius:9px!important;
}
body.x79-site #xalo-global-header :is(.xg-nav a,.xg-action,.xg-menu a,.xg-lang-menu button){
  text-shadow:none!important;
}
body.x79-site #xalo-global-header :is(.xg-more-btn,.xg-lang-btn,.xg-search-btn):hover,
body.x79-site #xalo-global-header .xg-menu a:hover{
  background:var(--x88-surface-hover)!important;
  border-color:var(--x88-gold)!important;
}
body.x79-site #xalo-v84-footer{background:#111215!important;border-color:var(--x88-border)!important}
body.x79-site #xalo-v84-footer :is(a,.x84-brand):focus-visible,
body.x79-site #xalo-global-header :is(a,button):focus-visible{
  outline:2px solid var(--x88-focus)!important;outline-offset:3px!important;
}
/* Public marketing routes: unify card families not yet covered by V87.
   Avoid global main/div/section rules that could affect the editors. */
body.x79-public:not(.xi-body) main :is(
  .x42-tile,.x42-hero,.x42-panel,.x42-crumb,.x50-card,.v48-card,
  .x49-preset-panel,.x49-tool-guide,.x49-quicklink,.x52-step,
  .x68-toolitem,.x69-tool,.x594-related,.x594-tool,
  .v57-guide,.v57-related-link,.x83-section,.x83-hero,
  .x74-service-card,.x74-panel,.x74-card
){
  border-color:var(--x88-border-soft)!important;
  border-radius:9px!important;
  box-shadow:none!important;
}
body.x79-public:not(.xi-body) main :is(
  .x42-tile,.x50-card,.v48-card,.x49-preset-panel,.x49-tool-guide,
  .x49-quicklink,.x52-step,.x68-toolitem,.x69-tool,.x594-tool,.v57-related-link
){
  background:var(--x88-panel)!important;
  color:var(--x88-text)!important;
}
body.x79-public:not(.xi-body) main :is(
  .x42-tile,.x50-card,.v48-card,.x49-quicklink,.x52-step,
  .x68-toolitem,.x69-tool,.x594-tool,.v57-related-link
):hover{
  background:var(--x88-surface-hover)!important;
  border-color:var(--x88-gold)!important;
  box-shadow:none!important;
}
body.x79-public:not(.xi-body) main :is(
  .x42-crumb,.x42-kicker,.x42-flag,.x49-overline,.x49-task-icon,
  .x52-step-icon,.v57-kicker,.x594-kicker,.x594-related-head,
  .x83-eyebrow,.x83-kicker
){color:var(--x88-gold)!important}
body.x79-public:not(.xi-body) main :is(
  .x42-tile p,.x42-hero p,.x49-intro p,.x52-flow p,
  .v57-guide-head p,.x594-hint,.x83-hero p,.x83-section p
){color:var(--x88-muted)!important}
/* The public tool chooser and its generated cards previously inherited cyan. */
body.x79-public:not(.xi-body) main :is(.x49-task,.x49-preset,.x49-clear,.x49-chip,.x49-show-pass,
  .x49-recent-link,.x52-open,.x68-btn,.x69-links a,.x594-copy){
  border-color:var(--x88-border)!important;
  box-shadow:none!important;
  color:var(--x88-text)!important;
  background-color:var(--x88-surface)!important;
}
body.x79-public:not(.xi-body) main :is(.x49-task,.x49-preset,.x49-clear,.x49-chip,
  .x49-show-pass,.x49-recent-link,.x52-open,.x68-btn,.x69-links a,.x594-copy):hover{
  background-color:var(--x88-surface-hover)!important;
  border-color:var(--x88-gold)!important;
  color:var(--x88-gold-hover)!important;
}
/* Selected options retain clear state, rather than flattening interaction. */
body.x79-public:not(.xi-body) main :is(.x49-chip[aria-pressed=true],.x49-preset[aria-pressed=true]){
  background:var(--x88-gold)!important;
  color:#191612!important;
  border-color:var(--x88-gold-hover)!important;
}
body.x79-public:not(.xi-body) main :is(.x594-foot a,.x594-related a,.v57-related-link,.x42-crumb a){
  color:var(--x88-gold)!important;
  text-decoration-color:var(--x88-border)!important;
}
/* Outer tool workflow chrome only; files' true colors and editors' data remain untouched. */
body.x79-workspace :is(.x42-crumb,.x42-hero,.x42-panel,.x42-tile,.v57-guide,.x594-related,.x594-tool,.x67-guide){
  border-color:var(--x88-border)!important;
  box-shadow:none!important;
}
body.x79-workspace :is(.x42-crumb,.x42-panel,.x42-tile,.x594-related,.x594-tool,.v57-guide){
  background-color:var(--x88-surface)!important;
  background-image:none!important;
}
body.x79-workspace :is(.x42-kicker,.x42-flag,.x42-crumb a,.x594-kicker,
  .x594-related-head,.x594-foot a,.x42-foot a,.x42-tile span,.v57-kicker){
  color:var(--x88-gold)!important;
}
body.x79-workspace :is(.x42-hero h1,.x42-hero h1 em){
  color:var(--x88-text)!important;
  -webkit-text-fill-color:var(--x88-text)!important;
  background:none!important;
  text-shadow:none!important;
}
body.x79-workspace :is(.x42-hero p,.x42-tile p,.x42-panel p,.x594-hint){color:var(--x88-muted)!important}
body.x79-workspace :is(.x42-btn:not(.ghost),.x594-copy){
  background:var(--x88-gold)!important;
  color:#1b1713!important;
  border:1px solid var(--x88-gold-hover)!important;
  border-radius:7px!important;
  box-shadow:none!important;
}
body.x79-workspace :is(.x42-btn:not(.ghost),.x594-copy):hover{
  background:var(--x88-gold-hover)!important;
  color:#181411!important;
}
body.x79-workspace .x42-btn.ghost{
  background:#252320!important;
  color:var(--x88-text)!important;
  border-color:var(--x88-border)!important;
}
body.x79-workspace :is(.x42-field input,.x42-field textarea,.x42-field select,
  .x42-panel input[type=number],.x42-panel select,.x42-panel textarea,
  .x42-templates button){
  background:#101115!important;
  border-color:var(--x88-border-soft)!important;
  color:var(--x88-text)!important;
  box-shadow:none!important;
}
body.x79-workspace :is(.x42-field input,.x42-field textarea,.x42-field select,
  .x42-panel input[type=number],.x42-panel select,.x42-panel textarea):focus-visible{
  border-color:var(--x88-gold)!important;
  outline:2px solid var(--x88-focus)!important;
  outline-offset:2px!important;
}
body.x79-workspace :is(.x42-field>span,.x42-label,.x42-panel h2,.x42-tile strong){
  color:var(--x88-text)!important;
}
body.x79-workspace :is(.x42-preview,.x42-tilegrid .x42-tile){
  border-color:var(--x88-border-soft)!important;
}
body.x79-workspace .x42-preview{
  background:#101217!important; /* background only, not image/canvas output */
}
body.x79-workspace :is(.x42-range,.x42-check input){accent-color:var(--x88-gold)!important}
body.x79-workspace .x594-tool:hover{
  border-color:var(--x88-gold)!important;background:var(--x88-surface-hover)!important;
}
/* Harmonize section text hierarchy while keeping native editor controls. */
body.x79-public:not(.xi-body) main :is(.x594-related h2,.v57-guide h2,.x42-panel h2){
  color:var(--x88-text)!important;line-height:1.3!important;
}
body.x79-site :is(main .x594-related,main .v57-guide,main .x42-stack,main .x49-discovery,
  main .x52-flow,main .x67-section,main .x69-deepdive){min-inline-size:0;max-inline-size:100%}
body.x79-site :is(.x594-related,.x42-panel,.x49-preset-panel,.x69-tile,.x67-card){overflow-wrap:anywhere}
body.x79-site :is(.x42-tile,.x594-tool) :is(svg){color:var(--x88-gold)}
body.x79-site :is(.x42-tile,.x594-tool,.x49-quicklink,.x69-tile) :is(a,button):focus-visible{
  outline:2px solid var(--x88-focus)!important;outline-offset:3px!important;
}
/* Direction is chosen by the site language; don't force editors' visual tracks to RTL. */
html[dir="rtl"] body.x79-public main :is(.x42-crumb,.x49-discovery,.x52-flow,.x67-section,.x69-deepdive),
html[dir="rtl"] body.x79-workspace :is(.x42-crumb,.x42-hero,.x594-related,.v57-guide){
  text-align:start;direction:rtl;
}
@media(max-width:720px){
  body.x79-site :is(.x42-stack,.x42-tilegrid,.x594-tools){grid-template-columns:minmax(0,1fr)!important}
  body.x79-site :is(.x42-panel,.x594-related,.v57-guide){padding-inline:clamp(12px,3.5vw,22px)!important}
  body.x79-site :is(.x42-wrap,.x594-related,.x42-stack,.x49-discovery){min-width:0;max-width:100%}
  body.x79-site #xalo-v84-footer .x84-footer-inner>*{min-width:0}
}
@media(prefers-reduced-motion:reduce){
  body.x79-site :is(.x42-btn,.x594-tool,.x49-quicklink,.x52-step,.x68-toolitem){
    transition:none!important;transform:none!important;
  }
}
/* Keep functional choice indicators distinguishable. */
body.x79-workspace .x42-templates button:is([aria-pressed="true"],.active,.selected,.is-active),
body.x79-workspace :is(.x42-btn,.x594-copy)[aria-pressed="true"]{
  background:var(--x88-gold)!important;
  color:#1b1713!important;
  border-color:var(--x88-gold-hover)!important;
}
body.x79-workspace :is(.x42-btn,.x594-copy):disabled{
  cursor:not-allowed!important;opacity:.5!important;
}
/* Do not use brand gold for error, recording, export progress, or audio meter state. */
/* Historical tool footers should not restore icy-blue body text. */
body.x79-workspace :is(.x594-related,.x594-related h2,.x594-tools,.x594-foot,.x42-hero,.x42-panel,.x42-tile),
body.x79-public:not(.xi-body) main :is(.x594-related,.x594-tools){
  color:var(--x88-text)!important;
}
body.x79-workspace :is(.x594-related .x594-hint,.x594-related p,.x42-panel>p,.x42-foot){
  color:var(--x88-muted)!important;
}
/* Shared V48/V50 tool card systems – legacy blue chrome, NOT creative output. */
body.x79-workspace main :is(.v48-card,.x50-card){
  background:#1a1b1f!important;
  background-image:none!important;
  border:1px solid var(--x88-border-soft)!important;
  color:var(--x88-text)!important;
  border-radius:9px!important;
  box-shadow:none!important;
}
body.x79-workspace main :is(.v48-card,.x50-card) :is(h2,h3){color:var(--x88-text)!important}
body.x79-workspace main :is(.v48-card,.x50-card) :is(p,small,.x50-help,.v48-muted,.x50-helper){
  color:var(--x88-muted)!important;
}
body.x79-workspace main :is(.v48-field span,.x50-field,.v48-meter,.x50-meter,.v48-meta){
  color:var(--x88-text)!important;
}
body.x79-workspace main :is(.v48-field input:not([type=range]):not([type=color]):not([type=checkbox]),
  .v48-field select,.v48-field textarea,.x50-field input:not([type=range]):not([type=color]):not([type=checkbox]),
  .x50-field select,.x50-field textarea,.v48-code){
  background:#101115!important;
  border-color:var(--x88-border-soft)!important;
  color:var(--x88-text)!important;
  box-shadow:none!important;
}
body.x79-workspace main :is(.v48-action:not(.secondary),.x50-action:not(.secondary)){
  background:var(--x88-gold)!important;
  color:#17130f!important;
  border:1px solid var(--x88-gold-hover)!important;
  border-radius:7px!important;
  box-shadow:none!important;
}
body.x79-workspace main :is(.v48-action.secondary,.x50-action.secondary){
  background:#29241f!important;
  border-color:var(--x88-border)!important;
  color:var(--x88-text)!important;
}
body.x79-workspace main :is(.v48-action,.x50-action):hover:not(:disabled){
  border-color:var(--x88-gold)!important;
  filter:brightness(1.08);
}
body.x79-workspace main :is(.v48-pill,.x50-tag,.x50-template,.x50-shortcut,.x50-controls-note,
  .v48-drop,.x50-drop,.v48-status:not([data-error="true"]),.x50-audio-stat,.x50-mock){
  border-color:var(--x88-border-soft)!important;
  background-color:#1a1b1f!important;
  background-image:none!important;
  color:var(--x88-text)!important;
}
body.x79-workspace main :is(.x50-template[aria-pressed="true"],.v48-pill[aria-pressed="true"]){
  border-color:var(--x88-gold)!important;
  background:#332a21!important;
  color:var(--x88-gold-hover)!important;
}
body.x79-workspace main :is(.v48-value,.v48-meta,.v48-hero-note,.x50-link,.x50-foot a,
  .v48-foot a,.x50-shortcut a,.x50-meter output){color:var(--x88-gold)!important}
body.x79-workspace main :is(.v48-preview,.x50-preview,.x50-stage,.v48-media){
  border-color:var(--x88-border-soft)!important;
  /* No background or filter overrides: preserve actual artwork and video previews. */
}
body.x79-workspace main :is(.v48-field input[type="range"],.x50-field input[type="range"],
  .x50-checkbox input,.v48-check input){accent-color:var(--x88-gold)!important}
body.x79-workspace main :is(.x50-card,.v48-card) :is(a,button,input,select,textarea):focus-visible{
  outline:2px solid var(--x88-focus)!important;
  outline-offset:3px!important;
}
@media(max-width:720px){
  body.x79-workspace main :is(.v48-workspace,.x50-work,.v48-grid,.x50-grid){
    grid-template-columns:minmax(0,1fr)!important;
  }
}


/* V89 / Page-by-page follow-up: residual public UI accents only.
   Intentionally leaves photos, canvas pixels, color swatches, audio waveforms,
   musical tracks, preview split handles, recording/error meters, and file output alone. */
:root{--x89-surface:#1b1b1f;--x89-surface-alt:#24221f;--x89-deep:#111216;--x89-border:#6d5946;--x89-border-soft:#54483d;--x89-accent:#d6b68e;--x89-text:#f4ebe0;--x89-subtext:#c8baaa}
/* Shared project/product/book discovery - legacy V59.3 blue widgets. */
body.x79-public :is(.x593-box,.x593-quick-card){background:#1b1b1f!important;background-image:none!important;color:var(--x89-text)!important;border-color:var(--x89-border-soft)!important;box-shadow:none!important}
body.x79-public .x593-box :is(.x593-ghost,.x593-button,.x593-filter input,.x593-filter select){background:#211f1e!important;background-image:none!important;color:var(--x89-text)!important;border-color:var(--x89-border)!important}
body.x79-public .x593-box :is(.x593-ghost,.x593-button):hover{background:#30281f!important;color:#f1d3ab!important;border-color:#cfaa7b!important}
body.x79-public .x593-box :is(.x593-ghost,.x593-button)[aria-pressed=true],body.x79-public .x593-box .x593-card-actions [aria-pressed=true]{background:var(--x89-accent)!important;color:#1a1511!important;border-color:#e7c99f!important}
body.x79-public .x593-box :is(a,.x593-pill,.x593-count){color:var(--x89-accent)!important}
body.x79-public .x593-box :is(.x593-muted,.x593-inline-note,.x593-quick-card p,.x593-filter span){color:var(--x89-subtext)!important}
body.x79-public .xscroll-kicker{color:var(--x89-accent)!important}
body.x79-public main :is(.x593-box a,.xscroll-card a):focus-visible{outline:2px solid var(--x89-accent)!important;outline-offset:3px}
/* Audio workspace: warm controls. Preserve waveform, recorder indicators and editor outputs. */
body.x89-audio main :is(button,.btn,input:not([type=color]),select,textarea,.upload-label){border-color:var(--x89-border-soft)!important}
body.x89-audio main button:not(.active):not([aria-pressed=true]):not([aria-selected=true]){background-color:var(--x89-surface)!important;background-image:none!important;color:var(--x89-text)!important}
body.x89-audio main button:is(.active,[aria-pressed=true],[aria-selected=true]){background:#51402e!important;color:#fff3db!important;border-color:var(--x89-accent)!important}
body.x89-audio main :is(.xs30-info,.upload-label){border-color:var(--x89-border)!important;background-color:#29241e!important;color:var(--x89-subtext)!important}
body.x89-audio main a{color:var(--x89-accent)}
/* Documents toolbar and file utilities only: not the editable paper and document output. */
body.x89-documents main :is(.btn,.tool-btn,.x598-md-btn,.xs32-docx-import,.v656-backup-export){background:#1d1c1c!important;background-image:none!important;color:var(--x89-text)!important;border-color:var(--x89-border-soft)!important}
body.x89-documents main :is(.btn,.tool-btn,.x598-md-btn,.xs32-docx-import):hover{background:#31281e!important;border-color:var(--x89-accent)!important}
body.x89-documents main :is(.btn,.tool-btn,[aria-selected=true],[aria-pressed=true]).active{background:#51402e!important;border-color:var(--x89-accent)!important}
body.x89-documents main :is(input:not([type=color]),select,textarea){border-color:var(--x89-border-soft)!important}
body.x89-documents main :is(.xs32-docx-note,.xs30-info){background:#252320!important;color:var(--x89-subtext)!important;border-color:var(--x89-border)!important}
/* Film frame extraction controls from legacy V59.8. */
body.x89-frame main :is(.x598-crop-presets button,.x598-inline button,.x598-md-btn){background:#24221f!important;color:var(--x89-text)!important;border-color:var(--x89-border)!important}
body.x89-frame main :is(.x598-crop-presets button,.x598-inline button,.x598-md-btn):hover{background:#342a1f!important;border-color:var(--x89-accent)!important}
/* LUT/filter workstation chrome: do not recolor preview canvas or its active split marker. */
body.xff-app main :is(.xff-panel,.xff-hero,.xff-import-meta,.xff-note){background:#1b1b1f!important;background-image:none!important;border-color:var(--x89-border-soft)!important;color:var(--x89-text)!important}
body.xff-app main :is(.xff-quiet,.xff-upload,.xff-input,.xff-segment button,.xff-bottom a){background:#24221f!important;background-image:none!important;border-color:var(--x89-border)!important;color:var(--x89-text)!important}
body.xff-app main :is(.xff-quiet,.xff-upload,.xff-segment button,.xff-bottom a):hover{background:#362b20!important;border-color:var(--x89-accent)!important}
body.xff-app main .xff-segment button.active{background:#57432e!important;color:#fff4df!important;border-color:var(--x89-accent)!important}
body.xff-app main :is(.xff-eyebrow,.xff-control output,.xff-status:not(.error)){color:var(--x89-accent)!important}
body.xff-app main :is(.xff-tags span,.xff-filetag,.xff-panel-heading small){color:var(--x89-accent)!important;border-color:var(--x89-border)!important}
body.xff-app main .xff-hero h1 span{background:none!important;color:var(--x89-accent)!important;-webkit-text-fill-color:var(--x89-accent)!important}
body.xff-app main :is(.xff-primary){background:var(--x89-accent)!important;color:#1b1510!important}
/* DAW controls are chrome; track colors, VU meters, waveform and audio filters are NOT altered. */
body.x89-music main :is(.x58-tempo-chip,.x58-transport-toggle,.v46-import-project,.x58-fx-enable,.x58-fx-reset){color:var(--x89-text)!important;background:#25221f!important;background-image:none!important;border-color:var(--x89-border)!important}
body.x89-music main :is(.x58-fx-enable,.v46-import-project):hover{background:#372a1d!important;border-color:var(--x89-accent)!important}
body.x89-music main :is(.x58-fx-enable,.x58-transport-toggle)[aria-pressed=true]{background:#5a422a!important;color:#fff2dc!important;border-color:var(--x89-accent)!important}
body.x89-music main :is(.x58-fx-workspace,.x58-fx-panel){border-color:var(--x89-border-soft)!important;background-color:#1b1b1f!important;background-image:none!important}
body.x89-music main :is(.x58-fx-workspace,.x58-fx-panel) :is(h2,h3,label,button){color:var(--x89-text)}
/* Photo-editing chrome, excluding its color canvas, histogram and image display. */
body.x89-photo-editor :is(.xp13-tool-search,.sub-btn.smart-btn,.tool-btn.active,.xff-photo-link){border-color:var(--x89-border)!important}
body.x89-photo-editor :is(.xp13-tool-search,.sub-btn.smart-btn){background:#25221f!important;color:var(--x89-text)!important}
body.x89-photo-editor .tool-btn.active{background:#58432c!important;color:#fff0d6!important;border-color:var(--x89-accent)!important}
body.x89-photo-editor .xp13-tool-search:focus-visible{outline:2px solid var(--x89-accent)!important}
/* Other lightweight public tools and transitional app route. */
body.x79-inactive a{color:var(--x89-accent)!important}
body.x79-site main :is(.x598-inline button,.x598-md-btn,.x598-crop-presets button){border-color:var(--x89-border)!important}
/* A consistent focus treatment across all active pages, keyboard only. */
body.x79-site :is(#xalo-global-header,#xalo-v84-footer,main) :is(a,button,input,select,textarea):focus-visible{outline:2px solid #f0d4a8!important;outline-offset:2px!important}
@media(prefers-reduced-motion:reduce){body.x79-site :is(.x593-quick-card,.xff-quiet,.xp13-tool-search){transition:none!important}}

/* V89 finishing: the 4 UI offenders that were still blue in computed-style audit. */
body.x89-documents main .side-nav button.active{background:#51402e!important;color:#fff2db!important;border-color:#d6b68e!important}
body.x89-documents main a:not(.x84-brand):not(.brand):not(.xg-brand):not([class]){color:#d6b68e!important}
body.x89-music main #v655-project-state button{background:#35291f!important;color:#f4ebe0!important;border-color:#d6b68e!important}
body.x89-music main .x58-fx-controls h4{color:#d6b68e!important}
body.x79-site main :is(input,select,textarea):not([type=color]):focus-visible{border-color:#d6b68e!important}
body.x79-workspace main :is(.x42-field input,.x42-field select,.x42-panel input):not([type=color]){border-color:#665544!important}
body.x79-workspace main .x612-actions button{background:#24211e!important;border-color:#80694d!important;color:#f4ebe0!important}
/* Two remaining upload metadata field borders in public editors. */
body[data-x49-tool="xalo-music-release-kit"] main input:not([type=color]):not([type=range]),
body[data-x49-tool="xalo-thumbnail-lab"] main input:not([type=color]):not([type=range]){border-color:#665544!important}
