/* Accepted materials on the new management surfaces. Paint stays inside existing boxes. */
#prep-skills-grid .prep-skill-cell[hidden] { display: none; }
body.hero-white-wolf #prep-skills-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] :is(#mobile-control-editor, #serpent-cabin-overlay) {
  --editor-bg: #101418;
  --editor-text: #f1e5c9;
  --editor-muted: #c6c1b2;
  --editor-edge: #a3864e;
  --editor-accent: #80d7ff;
  color: #f1e5c9;
  scrollbar-color: #a3864e #101418;
}
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] :is(#control-manager, #control-editor-properties, .control-editor-toolbar, #serpent-cabin-dialog) {
  border-radius: 0;
  border-image: var(--shop-art-frame) 40 / 16px / 0 stretch;
  background: var(--shop-art-stone) repeat #101418;
  box-shadow: none;
}
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] :is(.control-manager-header, .control-schemes-footer) {
  background: var(--shop-art-stone) repeat #101418;
}
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] :is(#control-manager, #control-editor-properties, .control-editor-toolbar, #serpent-cabin-dialog) :is(h2, h3, h4) {
  font-family: 'RD Shop Serif', 'Microsoft YaHei', serif;
  color: #efd18a;
}
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] #mobile-control-editor :is(button:not(.control-layout-handle), select, input[type='text'], input:not([type])),
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] :is(#serpent-cabin-dialog button, #serpent-cabin-open-pc) {
  border-radius: 0;
  border-image: var(--shop-art-neutral) 12 / 8px / 0 stretch;
  background: #0b1116c9;
  color: #f1e5c9;
  box-shadow: none;
}
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] #mobile-control-editor .control-primary {
  border-image-source: var(--shop-art-primary);
  color: #fff0ca;
  background-color: #17231a;
}
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] #mobile-control-editor :is(input,select) { caret-color: #80d7ff; accent-color: #efd18a; }
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] #mobile-control-editor button[aria-pressed='true'],
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] #serpent-cabin-dialog button.selected {
  background-color: #42371d;
  color: #ffe8a0;
  outline: 1px solid #edca7c;
  outline-offset: -3px;
}
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] :is(#mobile-control-editor, #serpent-cabin-dialog) button:is(:active, [data-theme-pressed='true']):not(:disabled) {
  filter: brightness(.82);
}
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] :is(#mobile-control-editor, #serpent-cabin-dialog) button:disabled { filter: saturate(.35); }
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] #serpent-cabin-dialog header { border-bottom: 1px solid #79613b; }
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] #serpent-cabin-dialog h2 { font-weight: 600; }
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] #serpent-cabin-dialog :is(header p, footer, small, h3 span, #serpent-toy-description) { color: #c6c1b2; }
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] #serpent-toy-list button { border-image-source: var(--shop-art-card); padding: 8px; min-height: 50px; }
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] #serpent-toy-list .serpent-toy-trait { display: none; }
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] #serpent-toy-list button.selected { border-image-source: var(--shop-art-card-selected); }
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] #serpent-toy-slots button { border-image: var(--shop-art-slot) 16 / 7px / 0 stretch; }
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] :is(#serpent-toy-list, #serpent-toy-detail, #control-manager, #control-editor-properties) { scrollbar-color: #a3864e #101418; }
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] #serpent-toy-detail { border-top: 1px solid #79613b; padding-top: 5px; }
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] :is(#serpent-cabin-status, #serpent-toy-effect) { color: #efd18a; }
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] :is(#mobile-control-editor, #serpent-cabin-overlay) ::selection { color: #101418; background: #efd18a; }
:root[data-ui-theme='black-gold'][data-shop-art-assets='ready'] #serpent-toy-toast { border: 1px solid #a3864e; background: var(--shop-art-stone) repeat #101418; color: #f1e5c9; }

/* Optional texture failures keep a single usable dark surface, with a retry action. */
#ui-art-status { position: fixed; z-index: 5000; right: max(8px,var(--rd-safe-area-right,0px)); bottom: max(8px,var(--rd-safe-area-bottom,0px)); max-width: min(400px,85vw); padding: 8px 12px; background: #101418; border: 1px solid #a3864e; color: #f1e5c9; font: 12px/1.5 'Microsoft YaHei',sans-serif; }
#ui-art-status[hidden] { display: none; }
:root[data-default-ui-materials='failed'] :is(#game-entry-overlay, #hero-selection-modal, #prep-dashboard, #mobile-drawer, #progression-dialog, #attribute-panel-dialog, #talent-modal, #skill-modal, #shop-modal, #serpent-cabin-dialog, #control-manager) {
  background: #101418 !important; border-image: none !important; color: #f1e5c9 !important;
}
:root[data-default-ui-materials='failed'] :is(#game-entry-overlay, #hero-selection-modal, #prep-dashboard, #mobile-drawer, #progression-dialog, #attribute-panel-dialog, #talent-modal, #skill-modal, #shop-modal, #serpent-cabin-dialog, #control-manager) :is(button,section,header,footer,div) {
  background-image: none !important; border-image: none !important;
}
