/* 小红书·黑金：完整红色展项、黑金任务结构、白色工作内容。
   All selectors are mobile/theme scoped. Document and canvas pixels are excluded. */
html[data-ui=mobile][data-theme=redbook]{
  color-scheme:light;
  --m-bg:#f5f5f5;--m-surface:#fff;--m-panel:#f0eff0;--m-ink:#202020;--m-text:var(--m-ink);--m-muted:#666;
  --m-border:#e5e5e5;--m-control-border:#878187;--m-accent:#e51b3e;--m-text-accent:#c91835;--m-on-accent:#fff;--m-accent-text:#fff;
  --m-name-paper:#fff;--m-name-ink:#202020;--m-tone-blue:#f1f0f1;--m-tone-sand:#f6f2e9;--m-tone-lilac:#fff0f3;
  --m-hero-start:#e51b3e;--m-hero-end:#e51b3e;--m-shadow:0 6px 20px #1919190c;--m-radius:12px;
  --m-warning:#805714;--m-danger:#ac152a;--m-success:#25704d;--m-info:#285d8a;
  --m-redbook-red:#ff2442;--m-redbook-selected:#fff0f3;--m-redbook-black:#191919;--m-redbook-gold:#d8b879;
  --m-redbook-gold-ink:#785a26;--m-redbook-on-black:#fffaf1;--m-redbook-muted-on-black:#d1cbc1;--m-redbook-black-border:#61533d;
}

/* Frame: black/gold identity; white navigation with a solid red current area. */
html[data-ui=mobile][data-theme=redbook] :is(.m-header,.m-layer-header){background:#191919;color:#fffaf1;border-bottom:1px solid #61533d;box-shadow:none;min-height:56px;padding-block:5px 6px}
html[data-ui=mobile][data-theme=redbook] :is(.m-header,.m-layer-header) :is(h1,h2){color:#fffaf1}
html[data-ui=mobile][data-theme=redbook] :is(.m-header,.m-layer-header) .m-button{background:transparent;color:#d8b879;border-color:#61533d}
html[data-ui=mobile][data-theme=redbook] :is(.m-header,.m-layer-header) .m-header-actions .m-button{background:#302b23;color:#d8b879;border:1px solid #61533d;border-radius:8px}
html[data-ui=mobile][data-theme=redbook] .m-header .m-brand{background:transparent;color:#d8b879;border-color:#d8b879}
html[data-ui=mobile][data-theme=redbook] .m-tabbar{background:#fff;color:#202020;border-top:1px solid #e5e5e5;box-shadow:0 -4px 20px #19191905}
html[data-ui=mobile][data-theme=redbook] .m-tabbar .m-tab.is-active{background:#e51b3e;color:#fff;border-radius:12px;box-shadow:0 3px 8px #e51b3e21}
html[data-ui=mobile][data-theme=redbook] .m-taskbar{background:#191919;color:#fffaf1;border-top:1px solid #61533d;box-shadow:none}
html[data-ui=mobile][data-theme=redbook] .m-taskbar :is(.m-muted,.m-label){color:#d1cbc1}
html[data-ui=mobile][data-theme=redbook] .m-taskbar :is(.m-button--text,.m-button--secondary){background:#272727;color:#d8b879;border-color:#61533d}
html[data-ui=mobile][data-theme=redbook] .m-main{padding-top:12px}

html[data-ui=mobile][data-theme=redbook] [data-ui-region=task] .is-warning{color:#f0c77d}

/* Region tokens are deliberately local; input and artwork do not inherit a
   dark color scheme. Existing keyed nodes and object interactions stay intact. */
html[data-ui=mobile][data-theme=redbook] :is([data-ui-region=task],:where(.m-th-features>.m-control:first-child)>.m-th-feature,.m-creation-work-card,:where(.m-management-accounts) .is-account){
  --m-ink:#fffaf1;--m-text:#fffaf1;--m-muted:#d1cbc1;--m-border:#61533d;--m-panel:#302b23;
  background:#191919;color:#fffaf1;border-color:#61533d;
}
html[data-ui=mobile][data-theme=redbook] :is([data-ui-region=task],:where(.m-th-features>.m-control:first-child)>.m-th-feature,.m-creation-work-card,:where(.m-management-accounts) .is-account) :is(.m-button--text,.m-link,.m-button--secondary,.mcw-stage-action,.mcw-combo-link){color:#d8b879;background:transparent;border-color:#61533d}
html[data-ui=mobile][data-theme=redbook] :is([data-ui-region=task],:where(.m-th-features>.m-control:first-child)>.m-th-feature,.m-creation-work-card,:where(.m-management-accounts) .is-account) :is(h2,h3,strong){color:#fffaf1}
html[data-ui=mobile][data-theme=redbook] :is([data-ui-region=task],.m-creation-work-card,:where(.m-management-accounts) .is-account) :focus-visible{outline-color:#d8b879}
html[data-ui=mobile][data-theme=redbook] :is(.m-list-context,.m-result-summary,.m-smart-style-bar,.m-seasonal-context){padding:8px 12px;border-radius:12px;min-height:44px}
html[data-ui=mobile][data-theme=redbook] .m-context-bar{border-color:#61533d}
html[data-ui=mobile][data-theme=redbook] :is(.m-context-bar,.m-list-context,.m-smart-style-bar) .m-button{min-height:44px}

/* Home exhibits: red is the complete lead, supported by a black-gold module. */
html[data-ui=mobile][data-theme=redbook] [data-ui-region=feature]{
  --m-ink:#fff;--m-text:#fff;--m-muted:#fff;--m-border:#ffffff60;--m-control-border:#ffffffa6;--m-panel:#a50f2a;
  background:#e51b3e;color:#fff;border:1px solid #e51b3e;border-radius:18px;box-shadow:0 7px 20px #e51b3e1c;
}
html[data-ui=mobile][data-theme=redbook] [data-ui-region=feature] :is(h1,h2,h3,strong,.m-muted,.m-th-eyebrow,.mcw-conditions,.m-account-seal,.m-showcase-copy small,.m-showcase-copy b){color:#fff}
html[data-ui=mobile][data-theme=redbook] [data-ui-region=feature] :is(.m-button--text,.m-button--secondary,.m-link){color:#fff;border-color:#ffffff70}
html[data-ui=mobile][data-theme=redbook] .m-tools-home .m-th-hero{min-height:160px;padding:18px;grid-template-columns:minmax(0,1fr) 102px}
html[data-ui=mobile][data-theme=redbook] .m-tools-home .m-th-hero .m-th-copy strong{color:#fff;font-size:1.75rem}
html[data-ui=mobile][data-theme=redbook] .m-tools-home .m-th-hero .m-th-eyebrow{color:#fff}
html[data-ui=mobile][data-theme=redbook] .m-tools-home .m-th-hero .m-th-invitation{background:#191919;color:#d8b879;border:1px solid #61533d;margin-top:4px}
html[data-ui=mobile][data-theme=redbook] .m-tools-home .m-th-hero .m-th-art{color:#fff}
html[data-ui=mobile][data-theme=redbook] .m-tools-home .m-th-hero .m-th-art--dictionary i+i{background:#fffaf1;color:#202020;border-color:#d8b879;box-shadow:7px 9px 0 #a90e2d}
html[data-ui=mobile][data-theme=redbook] .m-tools-home .m-th-hero .m-th-art--dictionary small{background:#191919;color:#d8b879;border-color:#d8b879}
html[data-ui=mobile][data-theme=redbook] .m-tools-home .m-th-features{gap:10px}
html[data-ui=mobile][data-theme=redbook] .m-tools-home .m-th-feature{background:#fff;border:1px solid #e5e5e5;box-shadow:none;min-height:174px;border-radius:12px;padding:14px}
html[data-ui=mobile][data-theme=redbook] .m-tools-home :where(.m-th-features>.m-control:first-child)>.m-th-feature{background:#191919;border-color:#61533d}
html[data-ui=mobile][data-theme=redbook] .m-tools-home .m-th-features>.m-control:first-child .m-th-art{color:#d8b879}
html[data-ui=mobile][data-theme=redbook] .m-tools-home .m-th-features>.m-control:first-child .m-th-art :is(i,em){border-color:#d8b879}
html[data-ui=mobile][data-theme=redbook] .m-tools-home .m-th-features>.m-control:first-child .m-th-art--poetry i{background:#d8b879;opacity:.7}
html[data-ui=mobile][data-theme=redbook] .m-tools-home .m-th-features>.m-control:first-child .m-th-art--poetry em{border-color:#d8b879;opacity:.65}
html[data-ui=mobile][data-theme=redbook] :is(.m-th-group h2,.m-showcase>.m-section>.m-section-heading,.m-management-showcase>.m-section>.m-section-heading){border-left:3px solid #e51b3e;padding-left:10px}
html[data-ui=mobile][data-theme=redbook] :is(.m-th-icon,.m-feature-icon,.mcw-tool-icon,.m-flow-number){background:#fff0f3;color:#c91835}
html[data-ui=mobile][data-theme=redbook] .m-tools-home .m-th-shortcuts{border-radius:12px}
html[data-ui=mobile][data-theme=redbook] .mcw-hero .mcw-paper-mark{color:#fff;border-color:#fff;opacity:.14}
html[data-ui=mobile][data-theme=redbook] .mcw-hero .mcw-continue{background:#191919;color:#d8b879;border-color:#61533d}
html[data-ui=mobile][data-theme=redbook] .m-client-workbench .mcw-stage{background:#fff;border-color:#e5e5e5;box-shadow:none}
html[data-ui=mobile][data-theme=redbook] .m-client-workbench .mcw-stage--combined{background:#191919;border-color:#61533d}
html[data-ui=mobile][data-theme=redbook] .m-client-workbench .mcw-stage--combined :is(.mcw-stage-heading,.mcw-stage-action,.mcw-combo-link){color:#d8b879}
html[data-ui=mobile][data-theme=redbook] .m-client-workbench .mcw-tool--creation{background:#fff0f3}
html[data-ui=mobile][data-theme=redbook] .m-account-avatar{background:#191919;color:#d8b879;border:1px solid #d8b879}
html[data-ui=mobile][data-theme=redbook] .m-account-seal{border-color:#fff}
html[data-ui=mobile][data-theme=redbook] .m-admin-seal{background:#191919;color:#d8b879;border-color:#d8b879;outline-color:#61533d}
html[data-ui=mobile][data-theme=redbook] .m-admin-dashboard .m-metrics{background:#191919;border:1px solid #61533d;border-radius:12px;padding:12px;color:#d8b879}
html[data-ui=mobile][data-theme=redbook] .m-admin-dashboard .m-metrics :is(dt,dd){color:#d8b879}
html[data-ui=mobile][data-theme=redbook] .m-creation-reply-card .m-conversation-art{--m-ink:#202020;--m-muted:#666;--m-border:#e5e5e5;color:#202020}
html[data-ui=mobile][data-theme=redbook] .m-creation-work-card :is(.m-creation-pair small,.m-creation-art){color:#d8b879}
html[data-ui=mobile][data-theme=redbook] :is(.m-creation-memo-card,.m-button--object.m-memo-sheet){background:#fff;border:1px solid #e5e5e5;box-shadow:none}
html[data-ui=mobile][data-theme=redbook] :where(.m-management-accounts) .is-account :is(.m-feature-art,.m-feature-icon){background:#302b23;color:#d8b879;border:1px solid #61533d}
html[data-ui=mobile][data-theme=redbook] .m-management-content .is-library{background:#e51b3e;color:#fff;--m-muted:#fff;--m-ink:#fff}
html[data-ui=mobile][data-theme=redbook] .m-management-content .is-library :is(.m-feature-art,.m-feature-icon){color:#fff;background:#a50f2a}
html[data-ui=mobile][data-theme=redbook] .mw-project-row.is-current .mw-project-monogram{background:#302b23;color:#d8b879;border-color:#61533d}

/* Result identity + method band use area contrast, leaving the results quiet. */
html[data-ui=mobile][data-theme=redbook] [data-visual-family=results] .m-stack{gap:8px}
html[data-ui=mobile][data-theme=redbook] [data-visual-family=results] .m-section-heading{margin-bottom:8px}
html[data-ui=mobile][data-theme=redbook] .m-tabs{margin:0;background:#191919;border:1px solid #61533d;border-radius:12px;padding:4px;gap:4px;box-shadow:none}
html[data-ui=mobile][data-theme=redbook] .m-tabs .m-button--tab{background:transparent;color:#d8b879;box-shadow:none;border-radius:8px}
html[data-ui=mobile][data-theme=redbook] .m-tabs .m-button--tab.is-active{background:#e51b3e;color:#fff;box-shadow:none}
html[data-ui=mobile][data-theme=redbook] .m-name-toolbar{background:#e51b3e;border:1px solid #e51b3e;border-radius:12px;padding:4px;gap:4px}
html[data-ui=mobile][data-theme=redbook] .m-name-toolbar>.m-control>.m-button{background:transparent;color:#fff;border:1px solid #ffffff5c;border-radius:8px;min-height:48px}
html[data-ui=mobile][data-theme=redbook] .m-name-toolbar>.m-control:first-child>.m-button{background:#191919;color:#d8b879;border-color:#61533d}
html[data-ui=mobile][data-theme=redbook] .m-list-context+.m-name-toolbar{margin-top:-8px;border-top-left-radius:0;border-top-right-radius:0}
html[data-ui=mobile][data-theme=redbook] .m-list-context:has(+.m-name-toolbar){border-bottom-left-radius:0;border-bottom-right-radius:0}
html[data-ui=mobile][data-theme=redbook] .m-smart-steps{background:#191919;border:1px solid #61533d;border-radius:12px;padding:4px;gap:4px}
html[data-ui=mobile][data-theme=redbook] .m-smart-steps .m-button{background:transparent;color:#d8b879;min-height:48px}
html[data-ui=mobile][data-theme=redbook] .m-smart-steps .m-button[aria-current=step]{background:#e51b3e;color:#fff;border-radius:8px}
html[data-ui=mobile][data-theme=redbook] .m-smart-step-number{background:#302b23;color:#d8b879;border-color:#61533d}
html[data-ui=mobile][data-theme=redbook] .m-smart-steps [aria-current=step] .m-smart-step-number{background:#fff;color:#c91835;border-color:#fff}
html[data-ui=mobile][data-theme=redbook] .m-smart-step-number.is-complete{background:#eaf6ee;color:#25704d;border-color:#25704d}
html[data-ui=mobile][data-theme=redbook] [data-m-collection]>button,
html[data-ui=mobile][data-theme=redbook] [data-m-collection]>.m-control>button{background:#fff;color:#202020;border-color:#e5e5e5;border-radius:7px;box-shadow:none}
html[data-ui=mobile][data-theme=redbook] [data-m-collection] button[aria-pressed=true],
html[data-ui=mobile][data-theme=redbook] [data-m-collection] button[aria-selected=true],
html[data-ui=mobile][data-theme=redbook] [data-m-collection] .is-selected>button{background:#fff0f3;border-color:#e51b3e;color:#c91835;box-shadow:inset 0 0 0 1px #e51b3e}
html[data-ui=mobile][data-theme=redbook] :is(.m-tool-frequency-grid .m-button,.m-name-text,.m-similar-name){color:#202020}
html[data-ui=mobile][data-theme=redbook] :is(.mw-pool-choice.is-selected,.mw-ai-char.is-selected,.mw-theme-options .is-selected){background:#fff0f3;border-color:#e51b3e}

/* Compact completed-work headers keep the same actions in explicit panels. */
html[data-ui=mobile][data-theme=redbook] [data-visual-family=results] .m-main{padding-top:8px}
html[data-ui=mobile][data-theme=redbook] [data-visual-family=results] :is(.m-review-results,.m-rb-smart-completed){gap:4px}
html[data-ui=mobile][data-theme=redbook] .m-rb-review-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;padding:6px 12px;font-size:.875rem;line-height:1.5;border-radius:0}
html[data-ui=mobile][data-theme=redbook] .m-review-results>.m-tabs:has(+.m-rb-review-summary){border-bottom-left-radius:0;border-bottom-right-radius:0}
html[data-ui=mobile][data-theme=redbook] .m-rb-review-summary{margin-top:-4px}
html[data-ui=mobile][data-theme=redbook] .m-rb-review-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#e51b3e;border:1px solid #e51b3e;border-radius:0 0 12px 12px;padding:3px;gap:3px;margin-top:-4px;margin-bottom:4px}
html[data-ui=mobile][data-theme=redbook] .m-rb-review-actions .m-button{min-height:48px;font-size:.875rem;color:#fff;background:transparent;border:1px solid #ffffff55;padding:6px 2px;border-radius:7px}
html[data-ui=mobile][data-theme=redbook] .m-rb-smart-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 8px 0 12px;min-height:44px;border:1px solid #61533d;border-radius:12px 12px 0 0;font-size:.875rem}
html[data-ui=mobile][data-theme=redbook] .m-rb-smart-summary .m-button{color:#d8b879;min-height:44px;background:transparent;padding:4px;font-size:.875rem}
html[data-ui=mobile][data-theme=redbook] .m-rb-smart-completed .m-smart-steps{margin-top:-4px;border-top:0;border-bottom:0;border-radius:0;padding:0 4px 4px}
html[data-ui=mobile][data-theme=redbook] .m-rb-smart-completed .m-smart-steps .m-button{flex-direction:row;gap:3px;min-height:48px;line-height:1.2;border-bottom:0}
html[data-ui=mobile][data-theme=redbook] .m-rb-smart-completed .m-smart-step-number{width:20px;height:20px;min-width:20px;font-size:.75rem}
html[data-ui=mobile][data-theme=redbook] .m-rb-smart-completed .m-smart-results{gap:4px}
html[data-ui=mobile][data-theme=redbook] .m-rb-smart-completed .m-result-tools{margin-top:-4px;padding:0 8px;border:1px solid #e51b3e;border-radius:0 0 12px 12px;min-height:48px;background:#e51b3e;--m-muted:#fff;color:#fff;gap:4px}
html[data-ui=mobile][data-theme=redbook] .m-rb-smart-completed .m-result-tools :is(h2,.m-button){color:#fff;font-size:.875rem}
html[data-ui=mobile][data-theme=redbook] .m-rb-smart-completed .m-result-tools .m-button{border-color:#ffffff55;padding:4px;min-height:44px}
html[data-ui=mobile][data-theme=redbook] .m-rb-smart-completed .m-result-tools h2{font-size:1rem}
html[data-ui=mobile][data-theme=redbook] .m-saved-tools{padding:0 8px;min-height:48px}
html[data-ui=mobile][data-theme=redbook] .m-rb-history-scope{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:0 8px 0 12px;min-height:48px;background:#e51b3e;border:1px solid #e51b3e;color:#fff;border-radius:0 0 12px 12px;margin-top:-8px}
html[data-ui=mobile][data-theme=redbook] .m-rb-history-scope p{margin:0;font-size:.875rem;line-height:1.5}
html[data-ui=mobile][data-theme=redbook] .m-rb-history-scope .m-button{color:#fff;background:transparent;border-color:#ffffff66;min-height:44px;padding:4px 8px;font-size:.875rem;white-space:normal}
html[data-ui=mobile][data-theme=redbook] .m-rb-history-scope>.m-control{flex:0 0 auto;margin-left:auto}
html[data-ui=mobile][data-theme=redbook] .m-tabs:has(+.m-rb-history-scope){border-bottom-left-radius:0;border-bottom-right-radius:0}
html[data-ui=mobile][data-theme=redbook] .m-rb-checkbar{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:4px 8px;font-size:.875rem;padding:0 8px;border:1px solid #e51b3e;background:#e51b3e;color:#fff;border-radius:10px;min-height:44px}
html[data-ui=mobile][data-theme=redbook] .m-rb-checkbar .m-button{color:#fff;min-height:44px;padding:4px;font-size:.875rem;background:transparent}
html[data-ui=mobile][data-theme=redbook] [data-mobile-view=saved]>.m-main>.m-stack{gap:4px}
html[data-ui=mobile][data-theme=redbook] [data-mobile-view=saved] .m-rb-checkbar{margin-top:-4px;margin-bottom:0;border-radius:0 0 12px 12px}
html[data-ui=mobile][data-theme=redbook] [data-mobile-view=saved] .m-tabs{border-radius:12px 12px 0 0}
html[data-ui=mobile][data-theme=redbook] [data-mobile-view=saved] .m-saved-tools{margin-top:-4px;border-radius:0}
html[data-ui=mobile][data-theme=redbook] [data-m-tools-page=seasonal]:has(.m-rb-seasonal-summary){gap:8px}
html[data-ui=mobile][data-theme=redbook] [data-m-tools-page=seasonal] .m-rb-seasonal-summary{gap:6px;padding:8px 10px}
html[data-ui=mobile][data-theme=redbook] .m-rb-seasonal-summary h2{font-size:1rem;line-height:1.4;margin:3px 0 0}
html[data-ui=mobile][data-theme=redbook] .m-rb-seasonal-summary .m-label{font-size:.8125rem;color:#d1cbc1}
html[data-ui=mobile][data-theme=redbook] .m-rb-seasonal-summary .m-button{padding:4px;min-width:44px;font-size:.875rem}
html[data-ui=mobile][data-theme=redbook] .m-rb-seasonal-summary+.m-tabs{background:#e51b3e;border-color:#e51b3e}
html[data-ui=mobile][data-theme=redbook] .m-rb-seasonal-summary+.m-tabs .m-button{padding:6px 2px;font-size:.875rem;color:#fff;background:transparent}
html[data-ui=mobile][data-theme=redbook] .m-rb-seasonal-summary+.m-tabs .m-button.is-active{background:#191919;color:#d8b879}
html[data-ui=mobile][data-theme=redbook] [data-m-collection=names]>.m-control>button{letter-spacing:0}
html[data-ui=mobile][data-theme=redbook].m-large-type .m-rb-smart-completed .m-smart-steps .m-button{flex-direction:column;gap:4px}
html[data-ui=mobile][data-theme=redbook].m-large-type .m-rb-seasonal-summary{flex-wrap:wrap}
html[data-ui=mobile][data-theme=redbook].m-large-type .m-rb-seasonal-summary>div{flex-basis:100%}

html[data-ui=mobile][data-theme=redbook] .mw-project-home>.m-field{background:#e51b3e;border-radius:12px 12px 0 0;padding:10px 12px 0;gap:6px;margin:0}
html[data-ui=mobile][data-theme=redbook] .mw-project-home>.m-field label{color:#fff}
html[data-ui=mobile][data-theme=redbook] .mw-project-home>.mw-list-caption{background:#e51b3e;color:#fff;border-radius:0 0 12px 12px;padding:0 12px;margin-top:-6px}
html[data-ui=mobile][data-theme=redbook] .mw-project-home>.mw-list-caption .m-button{color:#fff}
html[data-ui=mobile][data-theme=redbook] .m-studio-document{border-radius:12px;padding:8px 12px;border:1px solid #61533d}
html[data-ui=mobile][data-theme=redbook] .m-studio-task-tools{background:#e51b3e;border:1px solid #e51b3e;border-radius:12px;padding:4px}
html[data-ui=mobile][data-theme=redbook] .m-studio-task-tools .m-button{background:transparent;color:#fff;border-color:#ffffff70}
html[data-ui=mobile][data-theme=redbook] .m-library-heading{padding:8px 12px;border-radius:12px;gap:8px}
html[data-ui=mobile][data-theme=redbook] .m-library-heading .m-button{color:#d8b879;background:transparent}
html[data-ui=mobile][data-theme=redbook] [data-mobile-view=xhsReply] .m-actions{background:#e51b3e;border:1px solid #e51b3e;border-radius:12px;padding:4px 8px;gap:6px}
html[data-ui=mobile][data-theme=redbook] [data-mobile-view=xhsReply] .m-actions :is(.m-button,.m-reply-selected){color:#fff;background:transparent}
html[data-ui=mobile][data-theme=redbook] [data-mobile-view=xhsReply] .m-actions .m-button{border-color:#ffffff65}

/* Secondary controls and native forms remain readable on their own surfaces. */
html[data-ui=mobile][data-theme=redbook] :is(.m-button--text,.m-link,.m-result-mark,.mcw-stage-action,.mcw-combo-link){color:#c91835}
html[data-ui=mobile][data-theme=redbook] :is(.m-details>summary,.m-pagination .m-button,.m-work-state.is-locked,.m-user-state.is-active,.mw-project-note:not(.is-warning),.mw-fortune-steps .is-done){color:#c91835}
html[data-ui=mobile][data-theme=redbook] :is(.m-button--secondary,.m-button--object){color:#202020}
html[data-ui=mobile][data-theme=redbook] .m-button--danger{color:#ac152a;background:#fff4f5;border-color:#ac152a}
html[data-ui=mobile][data-theme=redbook] .m-field :is(input,textarea,select){background:#fff;color:#202020;border-color:#878187}
html[data-ui=mobile][data-theme=redbook] .m-field :is(input,textarea)::placeholder{color:#746d75}
html[data-ui=mobile][data-theme=redbook] .m-field :is(input,textarea,select):disabled{background:#eeecef;color:#716a73;opacity:1}
html[data-ui=mobile][data-theme=redbook] .m-app :focus-visible{outline:2px solid #e51b3e;outline-offset:3px}
html[data-ui=mobile][data-theme=redbook] :is(.m-header,.m-layer-header,[data-ui-region=feature],[data-ui-region=task],.m-taskbar) :focus-visible{outline-color:#d8b879}

/* Reading and editing: section identity remains visible beyond the first screen. */
html[data-ui=mobile][data-theme=redbook] :is([data-visual-family=reader],[data-visual-family=editor],[data-visual-family=form],[data-visual-family=management],.m-layer) .m-section-heading{background:#191919;color:#fffaf1;border:1px solid #61533d;border-radius:10px;padding:10px 12px}
html[data-ui=mobile][data-theme=redbook] :is([data-visual-family=reader],[data-visual-family=editor],[data-visual-family=form],[data-visual-family=management],.m-layer) .m-section-heading :is(h2,h3){color:#fffaf1}
html[data-ui=mobile][data-theme=redbook] :is([data-visual-family=reader],[data-visual-family=editor],[data-visual-family=form],[data-visual-family=management],.m-layer) .m-section-heading .m-button{color:#d8b879;background:transparent;border-color:#61533d}
html[data-ui=mobile][data-theme=redbook] .m-layer{background:#f5f5f5;color:#202020}
html[data-ui=mobile][data-theme=redbook] .m-layer:not(.m-layer--sheet)>.m-layer-body>.m-status+.m-section{margin-top:16px}
html[data-ui=mobile][data-theme=redbook] .m-layer--sheet{border:1px solid #61533d;box-shadow:0 -20px 0 100vmax #0008}
html[data-ui=mobile][data-theme=redbook] .xhs-dialog{background:#fff;color:#202020;border:1px solid #e5e5e5;box-shadow:0 16px 48px #19191926}
html[data-ui=mobile][data-theme=redbook] .xhs-dialog :is(button,input,select,textarea){background:#fff;color:#202020;border-color:#878187}
html[data-ui=mobile][data-theme=redbook] .xhs-dialog [aria-pressed=true]{background:#fff0f3;border-color:#e51b3e;color:#c91835}
html[data-ui=mobile][data-theme=redbook] .xhs-reference-change-backdrop [data-reference-choice-status]{color:#c91835!important}
html[data-ui=mobile][data-theme=redbook] :is(.m-canvas-scroll,.m-studio-workspace.is-canvas .m-canvas-scroll){background:#eae8e7;border-color:#b8b3b7}

html[data-ui=mobile][data-theme=redbook] .m-layer-body .m-actions{background:#e51b3e;border:1px solid #e51b3e;border-radius:12px;padding:6px;gap:6px}
html[data-ui=mobile][data-theme=redbook] .m-layer-body .m-actions .m-button{background:transparent;color:#fff;border:1px solid #ffffff65}
html[data-ui=mobile][data-theme=redbook] .m-layer-body .m-actions .m-button--danger{background:#fff;color:#ac152a;border-color:#fff}
html[data-ui=mobile][data-theme=redbook] .m-showcase .m-section--group>.m-section-heading{background:#191919;border:1px solid #61533d;border-radius:10px;padding:10px 12px;color:#d8b879}
html[data-ui=mobile][data-theme=redbook] .m-showcase .m-section--group>.m-section-heading h2{color:#d8b879}
html[data-ui=mobile][data-theme=redbook] .mw-client-identity{background:#e51b3e;color:#fff;border-radius:18px;padding:24px 18px;min-height:144px;display:flex;flex-direction:column;justify-content:center}
html[data-ui=mobile][data-theme=redbook] .mw-client-identity :is(h2,.m-muted){color:#fff}
html[data-ui=mobile][data-theme=redbook] [data-mobile-view=projectsHome] .mw-client-identity+.mw-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:0}
html[data-ui=mobile][data-theme=redbook] [data-mobile-view=projectsHome] .mw-client-identity+.mw-directory>.m-control{border:0}
html[data-ui=mobile][data-theme=redbook] [data-mobile-view=projectsHome] .mw-client-identity+.mw-directory .mw-entry{background:#fff;border:1px solid #e5e5e5;padding:16px;min-height:128px;align-items:flex-start;border-radius:12px}
html[data-ui=mobile][data-theme=redbook] [data-mobile-view=projectsHome] .mw-client-identity+.mw-directory>.m-control:first-child .mw-entry{background:#191919;color:#d8b879;--m-muted:#d1cbc1;--m-ink:#d8b879;border-color:#61533d}
html[data-ui=mobile][data-theme=redbook] [data-mobile-view=projectsHome] .mw-client-identity+.mw-directory .mw-entry-chevron{display:none}
html[data-ui=mobile][data-theme=redbook].m-large-type [data-mobile-view=projectsHome] .mw-client-identity+.mw-directory{grid-template-columns:1fr}

html[data-ui=mobile][data-theme=redbook] .m-section-heading .m-smart-state{color:#a8e1bf}
html[data-ui=mobile][data-theme=redbook] .mw-fortune>.m-section-heading>.m-muted{color:#d1cbc1}
html[data-ui=mobile][data-theme=redbook] .m-layer-body .m-name-filter-group{background:#fff;border:1px solid #e5e5e5;border-radius:12px;padding:12px;gap:12px}
html[data-ui=mobile][data-theme=redbook] .m-layer-body .m-name-filter-group>h3{background:#191919;color:#d8b879;border:1px solid #61533d;border-radius:11px 11px 0 0;margin:-13px -13px 0;padding:10px 12px;font-size:1rem}
html[data-ui=mobile][data-theme=redbook] .mcw-stages>.m-control:first-child>.mcw-stage{background:#191919;color:#fffaf1;border-color:#61533d;--m-ink:#fffaf1;--m-muted:#d1cbc1}
html[data-ui=mobile][data-theme=redbook] .mcw-stages>.m-control:first-child>.mcw-stage :is(.mcw-stage-heading,.mcw-stage-action){color:#d8b879}

/* Semantic states retain independent meaning; color alone is never the label. */
html[data-ui=mobile][data-theme=redbook] .m-status{background:#fff;border-color:#e5e5e5;color:#202020}
html[data-ui=mobile][data-theme=redbook] .m-status--success{border-left-color:#25704d;background:#f1f8f4}
html[data-ui=mobile][data-theme=redbook] .m-status--warning{border-left-color:#805714;background:#fff7e8}
html[data-ui=mobile][data-theme=redbook] :is(.m-status--error,.m-creation-error){background:#fff3f4;border-color:#ac152a;color:#ac152a}
html[data-ui=mobile][data-theme=redbook] .m-toast{background:#fff;border-color:#e5e5e5;color:#202020;box-shadow:0 6px 20px #19191918}
html[data-ui=mobile][data-theme=redbook] .m-toast--error{border-color:#ac152a;color:#ac152a}
html[data-ui=mobile][data-theme=redbook] .m-empty{background:#fff;color:#666;border:1px dashed #e5e5e5}
html[data-ui=mobile][data-theme=redbook] :is(.m-tool-result-mark,.m-tool-warning-key){color:#805714}
html[data-ui=mobile][data-theme=redbook] .m-tool-result-mark{background:#fff1d6}
html[data-ui=mobile][data-theme=redbook] .m-task-state.is-error{background:#fff0f3;color:#ac152a}

/* Preferences and login are UI, not document color/font presets. */
html[data-ui=mobile][data-theme=redbook] .m-theme-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-ui=mobile][data-theme=redbook] .m-button--theme-choice.is-active{color:#c91835}
html[data-ui=mobile][data-theme=redbook] .m-theme-swatch[data-theme-preview=redbook]{background:#191919}
html[data-ui=mobile][data-theme=redbook] .m-theme-swatch[data-theme-preview=redbook] i{background:#fffaf1;opacity:1}
html[data-ui=mobile][data-theme=redbook] .m-theme-swatch[data-theme-preview=redbook] i:nth-child(2){background:#d8b879}
html[data-ui=mobile][data-theme=redbook] .m-theme-swatch[data-theme-preview=redbook] i:last-child{background:#ff2442}
html[data-ui=mobile][data-theme=redbook].m-large-type .m-theme-choices{grid-template-columns:1fr}
html[data-ui=mobile][data-theme=redbook] .m-login{background:#fff;border-radius:18px;padding:24px 18px;border-top:8px solid #e51b3e}
html[data-ui=mobile][data-theme=redbook] .m-login .m-brand-mark{background:#191919;color:#d8b879;border:1px solid #61533d}
html[data-ui=mobile][data-theme=redbook] .boot-shell,
html[data-ui=mobile][data-theme=redbook] .boot-shell *{font-family:var(--m-ui-font)!important;font-weight:400!important;font-synthesis:none!important}
@media(prefers-reduced-motion:reduce){html[data-ui=mobile][data-theme=redbook] .m-app *{scroll-behavior:auto;transition:none!important;animation:none!important}}
