/* R68: customer-only visual correction after R61B fixes.
   No modifications to forms, statuses, JS, auth, customer actions or backend.
   Scoped to prevent bleed into admin and OAuth views. */
body.sls-editorial-ui .announcement-card.is-unread {
  background:#f7f4ea;color:#181818;border-top-color:#bcb9b1;
  border-right-color:#bcb9b1;border-bottom-color:#bcb9b1;
}
body.sls-editorial-ui .announcement-card.is-unread :where(h2,h3,h4,strong,a:not(.btn)) {
  color:#181818;
}
body.sls-editorial-ui .announcement-card.is-unread :where(p,small,time,.muted,.hint) {
  color:#464646;
}
body.sls-editorial-ui .announcement-card:not(.is-unread) {
  background:#fff;color:#181818;
}
body.sls-editorial-ui .profile-headline {
  color:#464646;
}
body.sls-editorial-ui .pinned-note>span {
  color:#444;
}
body.sls-editorial-ui .reception-pill {
  background:#f5f5f3;color:#181818;border:1px solid #aaa;
}
body.sls-editorial-ui .intake-progress button:not(.active),
body.sls-editorial-ui .step-heading p,
body.sls-editorial-ui .request-mode-switch p {
  color:#414141;
}
body.sls-editorial-ui .segmented-control {
  background:#f5f5f3;color:#181818;border-color:#aaa;
}
body.sls-editorial-ui .segment {color:#181818;}
body.sls-editorial-ui .segment.active {
  background:#fff;color:#181818;box-shadow:none;outline:1px solid #777;
}
body.sls-editorial-ui .segment strong,
body.sls-editorial-ui .segment.active strong {color:#181818;}
body.sls-editorial-ui .segment small {color:#505050;}
body.sls-editorial-ui .deadline-result {
  background:#f3f3f1;color:#181818;border-color:#aaa;
}
body.sls-editorial-ui .deadline-result strong {color:#181818;}
body.sls-editorial-ui .deadline-result span {color:#464646;}
body.sls-editorial-ui .intake-glossary {
  background:#fff;color:#181818;border-color:#c5c5c0;
}
body.sls-editorial-ui .intake-glossary summary {color:#181818;}
/* A legitimate dark informational panel stays dark, but its text becomes legible. */
body.sls-editorial-ui .intake-auth-secondary {
  background:#1d2440;color:#fff;border-color:#67708a;
}
body.sls-editorial-ui .intake-auth-secondary :where(h2,h3,p,small,strong,span:not(.badge)) {
  color:#fff;
}
/* Preserve operational warning/success/critical severity colors and disabled controls. */
@media (prefers-reduced-motion:reduce) {
  body.sls-editorial-ui *,body.sls-editorial-ui *::before,body.sls-editorial-ui *::after {
    scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;
  }
}


/* R69 customer | Off-white page + steel-blue controls, retaining status colors. */
body.sls-editorial-ui {
 --bg:#F4F6F9;--surface:#FFFFFF;--surface-2:#E9EEF5;
 --panel:#FFFFFF;--panel-soft:#EAF1F9;--card:#FFFFFF;
 --ink:#192335;--text:#192335;--muted:#52627A;
 --line:#DCE3ED;--border:#DCE3ED;
 --primary:#2B5D94;--primary2:#1D456F;--accent:#2B5D94;
 --primary-soft:#EAF1F9;
 background:#F4F6F9;color:#192335;
}
body.sls-editorial-ui .topbar {background:#FFFFFF;border-bottom-color:#DCE3ED;}
body.sls-editorial-ui .sls-mfcp-primary-nav a:is(:hover,:focus-visible) {color:#2B5D94;}
body.sls-editorial-ui .eyebrow,
body.sls-editorial-ui .step-heading > span {color:#2B5D94;}
body.sls-editorial-ui :where(.card,.song-card,.participant-card,.material-card,.estimate-panel,.table-card) {border-color:#DCE3ED;background:#FFFFFF;}
body.sls-editorial-ui .dashboard-section>.section-head {border-bottom:1px solid #DCE3ED;padding-bottom:12px;}
body.sls-editorial-ui .announcement-card.is-unread.severity-normal {background:#EAF1F9;border-color:#B8CBE0;}
body.sls-editorial-ui .announcement-card.is-unread.severity-normal :where(h2,h3,p,small,time) {color:#192335;}
body.sls-editorial-ui .btn.primary,
body.sls-editorial-ui .mix-desk .btn.primary {background:#2B5D94;color:#FFFFFF;border-color:#2B5D94;}
body.sls-editorial-ui .btn.primary:is(:hover,:focus-visible):not(:disabled),
body.sls-editorial-ui .mix-desk .btn.primary:is(:hover,:focus-visible):not(:disabled) {background:#1D456F;color:#FFFFFF;border-color:#1D456F;}
body.sls-editorial-ui .btn:not(.primary):is(:hover,:focus-visible):not(:disabled) {background:#EAF1F9;color:#1D456F;border-color:#2B5D94;}
body.sls-editorial-ui .intake-progress button.active span {background:#2B5D94;color:#FFFFFF;}
body.sls-editorial-ui .intake-progress button.active {border-color:#2B5D94;color:#1D456F;}
body.sls-editorial-ui :where(input,select,textarea,button,a,summary):focus-visible {outline-color:#2B5D94;}
body.sls-editorial-ui :where(input:not([type=checkbox]):not([type=radio]),select,textarea):focus {border-color:#2B5D94;}
body.sls-editorial-ui .deadline-result,
body.sls-editorial-ui .intake-glossary {background:#EAF1F9;color:#192335;border-color:#B8CBE0;}
body.sls-editorial-ui .segment.active {background:#FFFFFF;outline-color:#2B5D94;}
body.sls-editorial-ui .mix-desk {background:linear-gradient(90deg,#FFFFFF 0%,#FFFFFF 67%,#1D456F 67%,#2B5D94 100%);border-color:#DCE3ED;}
body.sls-editorial-ui .mix-desk .eyebrow {color:#2B5D94;}
body.sls-editorial-ui .mix-desk .profile-headline {color:#445771;}
body.sls-editorial-ui .mix-desk .live-desk {background:rgba(255,255,255,.12);color:#FFFFFF;border-color:rgba(255,255,255,.28);}
body.sls-editorial-ui .mix-desk .live-desk :where(strong,dd) {color:#FFFFFF;}
body.sls-editorial-ui .mix-desk .live-desk :where(small,dt,p) {color:#E3EBF7;}
body.sls-editorial-ui .mix-desk .live-dot {background:#9CC7F1;box-shadow:0 0 0 5px rgba(156,199,241,.16);}
body.sls-editorial-ui .mix-desk .pinned-note {background:#EAF1F9;border-color:#B8CBE0;}
body.sls-editorial-ui .mix-desk .pinned-note > span {color:#1D456F;}
body.sls-editorial-ui .intake-auth-secondary {background:#192335;border-color:#6F829C;color:#FFFFFF;}
body.sls-editorial-ui .intake-auth-secondary :where(h2,h3,p,small,strong,span:not(.badge)) {color:#FFFFFF;}
/* Semantic paid/overdue/cancelled/warning/error badges are deliberately untouched. */
@media(max-width:800px){body.sls-editorial-ui .mix-desk {background:#FFFFFF;}body.sls-editorial-ui .mix-desk .live-desk {background:#1D456F;}}


/* R70 | Customer side: stronger visual hierarchy, same state semantics. */
body.sls-editorial-ui {
 --bg:#EBF0F6;--surface-2:#DFE8F2;--panel-soft:#E5EDF6;
 --line:#C9D5E3;--border:#C9D5E3;
 background:#EBF0F6;
}
body.sls-editorial-ui .topbar.sls-mfcp-site-header {background:#FAFBFD;border-bottom-color:#C4D2E1;}
body.sls-editorial-ui .page-head {
 padding:16px 20px;background:#DCE7F2;border:1px solid #C5D4E5;
 border-left:4px solid #2B5D94;
}
body.sls-editorial-ui .page-head p {color:#4D5E73;}
body.sls-editorial-ui .dashboard-section>.section-head {
 background:#DEE8F3;padding:15px 18px;
 border:1px solid #C7D4E4;
}
body.sls-editorial-ui :is(.card,.song-card,.participant-card,.material-card,.table-card) {
 background:#FFFFFF;border-color:#C6D3E2;
}
body.sls-editorial-ui .intake-head {
 background:linear-gradient(120deg,#172A44,#254B76);color:#FFFFFF;
}
body.sls-editorial-ui .intake-head :is(h1,h2,h3,p,small,span:not(.badge)) {color:#ECF4FF;}
/* When the OS uses dark scheme, legacy app.css paints these intake cards nearly black. */
body.sls-editorial-ui .request-mode-switch {background:#E5EDF6;border-color:#C6D3E2;color:#192335;}
body.sls-editorial-ui .request-mode-switch :is(h2,h3,p,strong) {color:#253B57;}
body.sls-editorial-ui .segmented-control {background:#D5E1EF;border-color:#ACBFD4;}
body.sls-editorial-ui .segment.active {background:#FFFFFF;}
body.sls-editorial-ui .segment:not(.active) {background:transparent;}
body.sls-editorial-ui .deadline-result {background:#E4EEF8;border-color:#AAC0D9;}
/* The already dark quote/estimate rail is a deliberate contrast region. */
body.sls-editorial-ui .estimate-panel {background:#182C46;color:#FFFFFF;border-color:#37516F;}
body.sls-editorial-ui .estimate-panel>span,
body.sls-editorial-ui .estimate-panel>p,
body.sls-editorial-ui .estimate-panel [data-estimate-lines] p {color:#D2DFF1;}
body.sls-editorial-ui .hero {background:linear-gradient(125deg,#14263F,#244A75 70%,#2B5D94);color:#FFFFFF;}
body.sls-editorial-ui .hero :is(h1,h2) {color:#FFFFFF;}
body.sls-editorial-ui .hero .profile-headline {color:#DDE8F7;}
body.sls-editorial-ui .hero .eyebrow {color:#A8D3FF;}
body.sls-editorial-ui .hero .pinned-note {background:rgba(255,255,255,.10);border-color:#597A9D;}
body.sls-editorial-ui .hero .pinned-note :is(p,span) {color:#EEF5FE;}
body.sls-editorial-ui .mix-desk {border-color:#BFCFE0;}
@media(max-width:800px){body.sls-editorial-ui .page-head {padding:14px 15px;}}
/* Payment, urgency, refund, error and progress statuses intentionally unmodified. */


/* R71 | Same-day request: light amber caution card in light AND dark OS modes.
   Fixes legacy app.css @media(dark) charcoal/amber background combined with
   .same-day-title { color:var(--ink)!important }, which becomes illegible.
   Scope: customer intake only. Do not change enable/disable/hidden rules,
   form semantics, deadline calculations, or any state-specific CSS. */
body.sls-editorial-ui .same-day-request {
  background:#FFF2D8;
  color:#47310E;
  border:1px solid #CAA05B;
  color-scheme:light;
}
body.sls-editorial-ui .same-day-request .same-day-title {
  color:#32240D !important;
}
body.sls-editorial-ui .same-day-request .same-day-title :is(span,strong,small) {
  color:#32240D;
}
body.sls-editorial-ui .same-day-request :is(p,small,.hint,.muted) {
  color:#644617;
}
body.sls-editorial-ui .same-day-request input[type="checkbox"] {
  accent-color:#2B5D94;
}
body.sls-editorial-ui .same-day-request :is(input[type="checkbox"],a):focus-visible {
  outline:2px solid #2B5D94;
  outline-offset:3px;
}


/* R72 | Customer dashboard announcement list contrast.
   Keep existing importance, urgency, and unread status semantics. */
body.sls-editorial-ui .announcement-list .announcement-list-row {
  background:#FFFFFF;
  color:#192335;
}
body.sls-editorial-ui .announcement-list .announcement-list-row.is-unread {
  background:#EAF1F9;
  color:#192335;
}
body.sls-editorial-ui .announcement-list .announcement-list-row:not(.is-unread):is(:hover,:focus-visible) {
  background:#F4F7FB;
}
body.sls-editorial-ui .announcement-list .announcement-list-row.is-unread:is(:hover,:focus-visible) {
  background:#DFEAF7;
}
body.sls-editorial-ui .announcement-list .announcement-list-row:focus-visible {
  outline:2px solid #2B5D94;
  outline-offset:-2px;
}
body.sls-editorial-ui .announcement-list .announcement-list-row :is(strong,h3,h4) {
  color:#192335;
}
body.sls-editorial-ui .announcement-list .announcement-list-row :is(p,small,time) {
  color:#46566C;
}
body.sls-editorial-ui .announcement-list .announcement-list-row .announcement-severity {
  color:#2B5D94;
}
body.sls-editorial-ui .announcement-list .announcement-list-row.severity-important .announcement-severity {
  color:#885000;
}
body.sls-editorial-ui .announcement-list .announcement-list-row.severity-urgent .announcement-severity {
  color:#B42318;
}

/* BEGIN SLS-MFCP-COLOR-R86 */
/* SLS MFCP Palette R85 / customer MY PAGE / app.css + R61B/R68/R71 の後に読み込む
   レイアウト・文言・機能・HTML構造は変更しない。管理画面には適用しない。 */
:root {
  --navy-900: #060E1F;
  --navy-800: #0B1A33;
  --bg-tint: #EEF2F8;
  --white: #FFFFFF;
  --line: #CBD3E1;
  --text: #0B1A33;
  --text-sub: #5A6578;
  --link: #2F5C99;
  --cta: #FF5A36;
}

body.sls-editorial-ui {
  --bg: var(--bg-tint);
  --surface: var(--white);
  --surface-2: var(--white);
  --panel: var(--white);
  --panel-soft: var(--white);
  --card: var(--white);
  --ink: var(--text);
  --muted: var(--text-sub);
  --border: var(--line);
  --primary: var(--navy-800);
  --primary2: var(--navy-800);
  --primary-soft: var(--bg-tint);
  --accent: var(--navy-800);
  background: var(--bg-tint) !important;
  color: var(--text);
  color-scheme: light;
}
/* 既存の --text / --line は body 側に上書きがあるため root と一致させる */
body.sls-editorial-ui { --text: #0B1A33; --line: #CBD3E1; }

/* ヘッダーは白面。黒い塊を追加しない */
body.sls-editorial-ui .topbar.sls-mfcp-site-header,
body.sls-editorial-ui .sync-primary-nav.sls-mfcp-primary-nav {
  background: var(--white) !important;
  background-image: none !important;
  color: var(--text) !important;
  border-bottom-color: var(--line);
}
body.sls-editorial-ui .sls-mfcp-site-header :is(.sync-brand,.sync-brand-name),
body.sls-editorial-ui .sls-mfcp-primary-nav a:not([href*="r=order/new"]) {
  color: var(--text) !important;
}

/* MY PAGE の見出しカードだけを濃紺に。:has はダッシュボードの識別に使用 */
body.sls-editorial-ui:has(.dashboard-section) .container > .page-head,
body.sls-editorial-ui:has(.dashboard-section) .customer-dashboard-head .page-head {
  background: var(--navy-800) !important;
  background-image: none !important;
  color: var(--white) !important;
  border: 1px solid var(--navy-800) !important;
  border-left: 4px solid var(--cta) !important;
}
body.sls-editorial-ui:has(.dashboard-section) .page-head :is(h1,h2,h3,p,.eyebrow,.muted,small) {
  color: var(--white) !important;
}

/* 2px紺色アンダーライン。見出し帯を解消 */
body.sls-editorial-ui .dashboard-section > .section-head,
body.sls-editorial-ui .dashboard-section .table-card > .section-head,
body.sls-editorial-ui .dashboard-attention > .section-head {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 2px solid var(--navy-800) !important;
  color: var(--text) !important;
}
body.sls-editorial-ui .dashboard-section > .section-head :is(h2,h3,p,small),
body.sls-editorial-ui .dashboard-attention > .section-head :is(h2,h3,p,small) {
  color: var(--text) !important;
}

/* 白カード + 細罫線。グラデーションを排除 */
body.sls-editorial-ui:has(.dashboard-section) :is(
  .card,.table-card,.song-card,.participant-card,.material-card,
  .dashboard-order-card,.dashboard-empty,.announcement-card,.benefit-card,
  .point-member-card,.dashboard-attention,.attention-item
) {
  background: var(--white) !important;
  background-image: none !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
}
body.sls-editorial-ui:has(.dashboard-section) :is(
  .point-member-card,.dashboard-attention,.attention-item
) :is(h2,h3,strong,dd,dt,p,small,span:not(.badge)) {
  color: var(--text) !important;
}
body.sls-editorial-ui :is(.card,.table-card,.dashboard-empty) :is(.muted,.hint,small,time,.profile-headline),
body.sls-editorial-ui .page-head p {
  color: var(--text-sub);
}
body.sls-editorial-ui .dashboard-empty { border-color: var(--line); }
body.sls-editorial-ui .dashboard-empty p { color: var(--text); }

/* CTA: ナビの「Mixを依頼」とコンテンツの .btn.primary のみ */
body.sls-editorial-ui .sls-mfcp-primary-nav a[href*="r=order/new"],
body.sls-editorial-ui .btn.primary,
body.sls-editorial-ui .mix-desk .btn.primary,
body.sls-editorial-ui .dashboard-empty .btn.primary {
  background: var(--cta) !important;
  background-image: none !important;
  color: var(--navy-800) !important;
  border: 1px solid var(--navy-800) !important;
  box-shadow: none;
  text-decoration: none !important;
}
body.sls-editorial-ui .sls-mfcp-primary-nav a[href*="r=order/new"]:is(:hover,:focus-visible),
body.sls-editorial-ui .btn.primary:is(:hover,:focus-visible):not(:disabled),
body.sls-editorial-ui .mix-desk .btn.primary:is(:hover,:focus-visible):not(:disabled) {
  background: var(--cta) !important;
  color: var(--navy-800) !important;
  filter: brightness(.97);
}
/* 二次ボタンは輪郭のみ。ラベルや余白は既存のまま */
body.sls-editorial-ui .btn:not(.primary):not(.link),
body.sls-editorial-ui .dashboard-section .section-head > a.btn:not(.primary) {
  background: var(--white) !important;
  background-image: none !important;
  color: var(--navy-800) !important;
  border: 1px solid var(--navy-800) !important;
  box-shadow: none;
}
body.sls-editorial-ui .btn:not(.primary):not(.link):is(:hover,:focus-visible) {
  background: var(--bg-tint) !important;
  color: var(--navy-800) !important;
}
body.sls-editorial-ui :is(.btn,.sls-mfcp-primary-nav a):disabled { opacity: .65; }

/* 白地の通常リンク。既存JSが生成するリンクも下線で識別 */
body.sls-editorial-ui .container a:not(.btn):not(.dashboard-order-card):not(.announcement-list-row):not(.customer-order-row):not(.song-review-link),
body.sls-editorial-ui .stat-link,
body.sls-editorial-ui .btn.link,
body.sls-editorial-ui .dashboard-more a,
body.sls-editorial-ui .dashboard-card-link {
  color: var(--link) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
body.sls-editorial-ui .sls-mfcp-primary-nav a:not([href*="r=order/new"]) { text-decoration: none; }

/* 本文・補助テキストの薄さを制限（状態・CTA・暗色カードは除外） */
body.sls-editorial-ui .dashboard-section :is(p,li,dt,dd,td,th) { color: var(--text); }
body.sls-editorial-ui .dashboard-section :is(.muted,.hint,small,time) { color: var(--text-sub); }
body.sls-editorial-ui :is(input,select,textarea) {
  background-color: var(--white);
  color: var(--text);
  border-color: var(--line);
}
body.sls-editorial-ui :is(input,select,textarea)::placeholder { color: var(--text-sub); }
body.sls-editorial-ui :is(a,button,input,select,textarea,summary):focus-visible {
  outline: 2px solid var(--navy-800);
  outline-offset: 3px;
}

/* ステータス別。ボタン・操作上の警告メッセージには適用しない */
body.sls-editorial-ui :is(.badge,.status,.case-status-badge,.payment-status-badge) {
  font-size: max(14px, 1em);
}
body.sls-editorial-ui :is(
  .case-status-badge.status-received,
  .case-status-badge.status-material_review,
  .case-status-badge.status-scheduling,
  .case-status-badge.status-queued,
  .case-status-badge.status-editing,
  .case-status-badge.status-mixing,
  .case-status-badge.status-revision_work,
  .case-status-badge.status-delivery_preparing,
  .status.in-progress,.status.ongoing
) {
  background: #E1ECFB !important;
  color: #1F4E9C !important;
  border-color: #E1ECFB !important;
}
body.sls-editorial-ui :is(
  .case-status-badge.status-delivered,
  .case-status-badge.status-completed,
  .case-status-badge.status-posting_waiting,
  .payment-status-badge.payment-paid,
  .status.completed,.status.done
) {
  background: #E3F4EA !important;
  color: #1E6B3C !important;
  border-color: #E3F4EA !important;
}
body.sls-editorial-ui :is(
  .case-status-badge.status-cancelled,
  .payment-status-badge.payment-refunded,
  .status.cancelled,.status.canceled
) {
  background: #EEF0F3 !important;
  color: #5A6578 !important;
  border-color: #CBD3E1 !important;
}
body.sls-editorial-ui :is(
  .case-status-badge.status-estimate_waiting,
  .case-status-badge.status-payment_waiting,
  .case-status-badge.status-customer_review,
  .case-status-badge.status-revision_review,
  .case-status-badge.status-on_hold,
  .payment-status-badge.payment-unpaid,
  .payment-status-badge.payment-reported,
  .payment-status-badge.payment-refund_pending,
  .status.action-required,.status.needs-action
) {
  background: #FFF1D6 !important;
  color: #8A5A00 !important;
  border-color: #FFF1D6 !important;
}

/* 375px: 幅・列組みなどのレイアウトは既存CSSをそのまま使う。
   本パッチはサイズ・表示・グリッドを変えない。 */
@media (prefers-color-scheme: dark) {
  body.sls-editorial-ui { color-scheme: light; }
}
/* END SLS-MFCP-COLOR-R86 */

/* BEGIN SLS-MFCP-R90-INTAKE-READABILITY */
/* MFCP Intake Readability R90
   Source contract: order_intake_routes.php (2026-11-18 R73 snapshot)
   Load AFTER app.css, customer R86, and admin R88/R89 CSS.
   No DOM/layout/wording/business changes. Applies only if intake form is present.
*/
:root {
  --intake-secondary: #4A5568;
  --intake-info-bg: #E1ECFB;
  --intake-info-text: #1F4E9C;
  --intake-danger-bg: #FDE8E6;
  --intake-danger-text: #A32619;
}

/* Normalize only the Mix intake route, including legacy fixed-dark app.css. */
body:has(form[data-mfcp-intake]) .intake-head {
  background: var(--bg-tint, #EEF2F8) !important;
  background-image: none !important;
  border-color: var(--line, #CBD3E1) !important;
  color: var(--text, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .intake-head :is(h1, p, .eyebrow) {
  color: var(--text, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .intake-head > .badge {
  background: var(--intake-info-bg) !important;
  background-image: none !important;
  color: var(--intake-info-text) !important;
  border: 1px solid #2F5C99 !important;
  font-size: max(12px, .75rem) !important;
}

/* Request mode and its segmented radio control. */
body:has(form[data-mfcp-intake]) .intake-form .request-mode-switch {
  background: var(--white, #FFFFFF) !important;
  background-image: none !important;
  border: 1px solid var(--line, #CBD3E1) !important;
  color: var(--text, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .request-mode-switch :is(h3, strong, .eyebrow) {
  color: var(--text, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .request-mode-switch :is(p, small) {
  color: var(--intake-secondary) !important;
  font-size: max(12px, .75rem) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .segmented-control {
  background: var(--bg-tint, #EEF2F8) !important;
  background-image: none !important;
  border-color: var(--line, #CBD3E1) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .segment:not(.active) {
  background: var(--white, #FFFFFF) !important;
  background-image: none !important;
  border: 1px solid var(--line, #CBD3E1) !important;
  color: var(--text, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .segment:not(.active) :is(strong, span) {
  color: var(--text, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .segment:not(.active) small {
  color: var(--intake-secondary) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .segment.active {
  background: var(--navy-800, #0B1A33) !important;
  background-image: none !important;
  border: 1px solid var(--navy-800, #0B1A33) !important;
  color: var(--white, #FFFFFF) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .segment.active :is(span, strong, small) {
  color: var(--white, #FFFFFF) !important;
  font-size: max(12px, .75rem);
}
body:has(form[data-mfcp-intake]) .intake-form .segment:focus-within {
  outline: 2px solid var(--navy-800, #0B1A33);
  outline-offset: 2px;
}

/* Stepper: dark active circle / outlined not-yet-reached circle. */
body:has(form[data-mfcp-intake]) .intake-form .intake-progress {
  background: var(--bg-tint, #EEF2F8) !important;
  background-image: none !important;
  border-color: var(--line, #CBD3E1) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .intake-progress button {
  color: var(--text-sub, #5A6578) !important;
  font-size: max(12px, .75rem) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .intake-progress button:not(.active):not(.complete) span {
  background: var(--white, #FFFFFF) !important;
  color: var(--text-sub, #5A6578) !important;
  border: 1px solid var(--line, #CBD3E1) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .intake-progress button.active {
  background: var(--white, #FFFFFF) !important;
  color: var(--text, #0B1A33) !important;
  font-weight: 800 !important;
}
body:has(form[data-mfcp-intake]) .intake-form .intake-progress button.active span,
body:has(form[data-mfcp-intake]) .intake-form .intake-progress button.complete span {
  background: var(--navy-800, #0B1A33) !important;
  color: var(--white, #FFFFFF) !important;
  border: 1px solid var(--navy-800, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .intake-progress button.complete {
  color: var(--text, #0B1A33) !important;
}

/* Login-not-required instruction, without changing its HTML. */
body:has(form[data-mfcp-intake]) .intake-form .flash.info {
  background: var(--intake-info-bg) !important;
  background-image: none !important;
  border: 1px solid var(--line, #CBD3E1) !important;
  border-left: 4px solid #2F5C99 !important;
  color: var(--text, #0B1A33) !important;
  font-size: max(12px, .75rem) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .flash.info strong {
  color: var(--intake-info-text) !important;
}

/* Song/participant/material white surfaces and readable field labels. */
body:has(form[data-mfcp-intake]) .intake-form :is(
  .song-card, .participant-card, .material-card,
  .choice-card, .option-section, .radio-stack,
  .archive-count, .deadline-result, .account-intake-summary,
  .material-group-preview, .current-material-group,
  .mix-adjustments, .split-preview, .confirm-summary,
  .guest-intake-contact, .material-upload, .upload
) {
  background: var(--white, #FFFFFF) !important;
  background-image: none !important;
  border-color: var(--line, #CBD3E1) !important;
  color: var(--text, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .intake-form :is(
  .song-card, .participant-card, .material-card
) > :is(.form-grid, .song-estimate) {
  color: var(--text, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .song-card :is(
  h3, h4, .song-number, label, legend, dt, strong
):not(.song-estimate strong) {
  color: var(--text, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .intake-form :is(
  .song-card, .participant-card, .material-card
) .form-grid label {
  color: var(--text, #0B1A33) !important;
  font-weight: 700 !important;
  font-size: max(12px, .75rem) !important;
}
body:has(form[data-mfcp-intake]) .intake-form :is(
  .song-card, .participant-card, .material-card,
  .request-mode-switch, .deadline-result, .account-intake-summary,
  .material-group-preview, .mix-adjustments
) :is(.hint, .muted, .help, .field-help, small, p, dt):not(.badge) {
  color: var(--intake-secondary) !important;
  font-size: max(12px, .75rem) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .song-card .form-grid > label > span:not(.date-input-shell),
body:has(form[data-mfcp-intake]) .intake-form .form-grid > label > span:not(.date-input-shell) {
  background: var(--intake-danger-bg) !important;
  color: var(--intake-danger-text) !important;
  border-color: var(--intake-danger-bg) !important;
  font-size: max(12px, .75rem) !important;
  font-weight: 700;
}
body:has(form[data-mfcp-intake]) .intake-form :is(
  .song-card, .participant-card, .material-card
) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  background: var(--white, #FFFFFF) !important;
  color: var(--text, #0B1A33) !important;
  border-color: var(--line, #CBD3E1) !important;
  color-scheme: light;
}
body:has(form[data-mfcp-intake]) .intake-form :is(input, textarea)::placeholder {
  color: var(--text-sub, #5A6578) !important;
  opacity: 1;
}

/* Song's running estimate bar: light tint and dark amount. */
body:has(form[data-mfcp-intake]) .intake-form .song-estimate {
  background: var(--bg-tint, #EEF2F8) !important;
  background-image: none !important;
  border: 1px solid var(--line, #CBD3E1) !important;
  color: var(--text, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .song-estimate span {
  color: var(--intake-secondary) !important;
  font-size: max(12px, .75rem) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .song-estimate strong {
  color: var(--text, #0B1A33) !important;
  font-weight: 800 !important;
}

/* Current estimate, right rail: remove the fixed navy gradient. */
body:has(form[data-mfcp-intake]) .intake-layout > .estimate-panel {
  background: var(--white, #FFFFFF) !important;
  background-image: none !important;
  border: 1px solid var(--line, #CBD3E1) !important;
  border-top: 2px solid var(--navy-800, #0B1A33) !important;
  color: var(--text, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .estimate-panel :is(
  span, p, [data-estimate-lines], [data-estimate-lines] p,
  [data-estimate-detail] p
) {
  color: var(--intake-secondary) !important;
  font-size: max(12px, .75rem) !important;
}
body:has(form[data-mfcp-intake]) .estimate-panel > span,
body:has(form[data-mfcp-intake]) .estimate-panel .estimate-total > span {
  color: var(--text, #0B1A33) !important;
  font-weight: 700 !important;
}
body:has(form[data-mfcp-intake]) .estimate-panel .estimate-total strong,
body:has(form[data-mfcp-intake]) .estimate-panel [data-estimate-total] {
  color: var(--text, #0B1A33) !important;
  font-weight: 800 !important;
  font-size: clamp(24px, 2.5vw, 32px) !important;
}

/* Additional dark content surfaces found in archived app.css. */
body:has(form[data-mfcp-intake]) .intake-form :is(
  .intake-draft-bar, .selected-materials,
  .bundle-dropzone, .terms-dialog,
  .help-chip, .mix-adjustment-card input[readonly]
) {
  background: var(--white, #FFFFFF) !important;
  background-image: none !important;
  border-color: var(--line, #CBD3E1) !important;
  color: var(--text, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .intake-form :is(
  .intake-draft-bar [data-draft-status], .selected-materials small,
  .bundle-dropzone small, .bundle-dropzone > span:not(.bundle-icon),
  .mix-adjustments small
) {
  color: var(--intake-secondary) !important;
  font-size: max(12px, .75rem) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .important-terms {
  background: var(--warn-bg, #FFF1D6) !important;
  background-image: none !important;
  border-color: var(--warn-line, #D9A441) !important;
  color: var(--text, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .important-terms :is(h3, .eyebrow) {
  color: var(--warn-text, #8A5A00) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .important-terms li,
body:has(form[data-mfcp-intake]) .intake-form .confirm-consent :is(strong,small) {
  color: var(--text, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .confirm-consent {
  background: var(--white, #FFFFFF) !important;
  background-image: none !important;
  color: var(--text, #0B1A33) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .choice-card:has(input:checked) {
  background: var(--intake-info-bg) !important;
  background-image: none !important;
  border-color: #2F5C99 !important;
  color: var(--text, #0B1A33) !important;
}

/* Bottom strip (including the text to the left of Next). */
body:has(form[data-mfcp-intake]) .intake-form .step-actions {
  background: var(--bg-tint, #EEF2F8) !important;
  background-image: none !important;
  color: var(--intake-secondary) !important;
}
body:has(form[data-mfcp-intake]) .intake-form .step-actions :is(
  span, small, p, .hint, .muted, .step-actions-note
) {
  color: var(--intake-secondary) !important;
  font-size: max(12px, .75rem) !important;
}

/* Customer request: orange; admin request: navy. Same existing next button. */
body:not(.sls-admin-editorial-ui):has(form[data-mfcp-intake])
.intake-form [data-step="request"] .step-actions > .btn.primary[data-next],
body:not(.sls-admin-editorial-ui):has(form[data-mfcp-intake])
.intake-form [data-step="request"] .step-actions > .btn.primary[data-next]:is(:hover,:focus-visible) {
  background: var(--cta, #FF5A36) !important;
  background-image: none !important;
  color: var(--navy-800, #0B1A33) !important;
  border: 1px solid var(--navy-800, #0B1A33) !important;
}
body.sls-admin-editorial-ui:has(form[data-mfcp-intake])
.intake-form [data-step="request"] .step-actions > .btn.primary[data-next],
body.sls-admin-editorial-ui:has(form[data-mfcp-intake])
.intake-form [data-step="request"] .step-actions > .btn.primary[data-next]:is(:hover,:focus-visible) {
  background: var(--navy-800, #0B1A33) !important;
  background-image: none !important;
  color: var(--white, #FFFFFF) !important;
  border: 1px solid var(--navy-800, #0B1A33) !important;
}

/* Explicit light mode on the intake only. Dark site header remains unchanged. */
body:has(form[data-mfcp-intake]) .intake-layout :is(input, select, textarea) {
  color-scheme: light;
}

/* Cross-screen surface fixes from the archived app.css dark override inventory.
   Deliberately exclude global dark nav/hero, waveform canvases and CTA buttons.
   These only replace content panels, never operational state or layout. */
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) :is(
  .upload,
  .asset-delivery-card,
  .audio-review-card,
  .mail-live-preview,
  .mail-live-preview > span,
  .template-variable-help,
  .mail-variable-toolbar,
  .variable-option,
  .variable-chip,
  .variable-picker-toggle,
  .variable-picker-panel,
  .locked-setting,
  .intake-auth-secondary,
  .profile-link-editor > .form-grid
) {
  background: var(--white, #FFFFFF) !important;
  background-image: none !important;
  border-color: var(--line, #CBD3E1) !important;
  color: var(--text, #0B1A33) !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) :is(
  .upload, .asset-delivery-card, .audio-review-card,
  .mail-live-preview, .template-variable-help,
  .profile-link-editor > .form-grid
) :is(.muted, .hint, small, dt, label) {
  color: #4A5568 !important;
  font-size: max(12px, .75rem) !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) .upload input[type="file"] {
  background: var(--white, #FFFFFF) !important;
  color: var(--text, #0B1A33) !important;
  border-color: var(--line, #CBD3E1) !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) .upload input[type="file"]::file-selector-button {
  background: var(--bg-tint, #EEF2F8) !important;
  color: var(--text, #0B1A33) !important;
  border: 1px solid var(--line, #CBD3E1) !important;
}

/* Semantic dark strips elsewhere: corresponding accessible light pairs. */
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) :is(
  .workflow-event.sent .workflow-email-state,
  .song-review-state.confirmed,
  .qc-passed,
  .review-comment.resolved .review-state,
  .status-pill.sent,
  .mail-health.ok,
  .mail-all-clear,
  .audio-review-approve
) {
  background: #E3F4EA !important;
  background-image: none !important;
  border-color: #2E8B57 !important;
  color: #1E6B3C !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) :is(
  .workflow-event.failed .workflow-email-state,
  .song-review-state.rejected,
  .qc-failed,
  .status-pill.failed,
  .mail-health.danger,
  .mail-error,
  .material-reject
) {
  background: #FDE8E6 !important;
  background-image: none !important;
  border-color: #C8372D !important;
  color: #A32619 !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) :is(
  .workflow-event.queued .workflow-email-state,
  .qc-warning,
  .review-state,
  .status-pill.queued,
  .status-pill.sending,
  .material-warning,
  .material-empty-confirm,
  .customer-tier-badge.tier-caution,
  .same-day-request
) {
  background: #FFF1D6 !important;
  background-image: none !important;
  border-color: #D9A441 !important;
  color: #8A5A00 !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) :is(
  .song-review-state:not(.confirmed):not(.rejected),
  .conversation-source
) {
  background: #E1ECFB !important;
  background-image: none !important;
  color: #1F4E9C !important;
  border-color: #2F5C99 !important;
}

/* Cascade guard: specific active-choice copy must beat later generic hint rules.
   This prevents dark-on-dark subtitles inside the selected Solo/Collab chip. */
body:has(form[data-mfcp-intake]) .intake-form
.request-mode-switch .segmented-control .segment.active :is(span,strong,small) {
  color: var(--white, #FFFFFF) !important;
}

/* Additional non-form content panels from legacy fixed-dark app.css.
   Keep media canvases, site chrome and intentionally selected controls dark. */
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) :is(
  .point-member-card, .help-chip, .admin-customer-preview-bar,
  .attention-item, .dashboard-order-card:is(:hover,:focus-visible),
  .announcement-list-row:is(:hover,:focus-visible),
  .benefit-meta span, .customer-change-item,
  .customer-change-item-body, .customer-change-item > summary:hover,
  .conversation-internal-toggle
) {
  background: var(--white, #FFFFFF) !important;
  background-image: none !important;
  color: var(--text, #0B1A33) !important;
  border-color: var(--line, #CBD3E1) !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) :is(
  .dashboard-attention, .attention-chip, .attention-badge,
  .customer-change-caution, .customer-change-pending,
  .conversation-message-row.is-internal .conversation-bubble,
  .conversation-internal-badge,
  .conversation-message-row.is-internal .conversation-avatar
) {
  background: #FFF1D6 !important;
  background-image: none !important;
  color: #8A5A00 !important;
  border-color: #D9A441 !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) :is(
  .announcement-card.is-unread,
  .announcement-list-row.is-unread,
  .workflow-email-state
) {
  background: #E1ECFB !important;
  background-image: none !important;
  color: #1F4E9C !important;
  border-color: #2F5C99 !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) :is(
  .asset-publish-head, .success-icon,
  .flash:not(.info):not(.warning):not(.error)
) {
  background: #E3F4EA !important;
  background-image: none !important;
  color: #1E6B3C !important;
  border-color: #2E8B57 !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) .asset-publish-head p {
  color: #1E6B3C !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) .flash.info {
  background: #E1ECFB !important;
  color: #0B1A33 !important;
  border-color: #2F5C99 !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) .flash.info strong {
  color: #1F4E9C !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) .flash.warning {
  background: #FFF1D6 !important;
  color: #0B1A33 !important;
  border-color: #D9A441 !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) .flash.error {
  background: #FDE8E6 !important;
  color: #0B1A33 !important;
  border-color: #C8372D !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) :is(
  .danger-zone, .danger-zone code,
  .customer-tier-badge.tier-blocked
) {
  background: #FDE8E6 !important;
  color: #A32619 !important;
  border-color: #C8372D !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) :is(
  .customer-tier-badge.tier-standard,
  .customer-tier-badge.tier-regular
) {
  background: #EEF2F8 !important;
  color: #0B1A33 !important;
  border-color: #CBD3E1 !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) .customer-tier-badge.tier-priority {
  background: #E1ECFB !important;
  color: #1F4E9C !important;
  border-color: #2F5C99 !important;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) :is(
  .customer-tier-badge.tier-subscription,
  .customer-tier-badge.tier-business
) {
  background: #E3F4EA !important;
  color: #1E6B3C !important;
  border-color: #2E8B57 !important;
}
/* Other forms: replace inherited fixed-dark text-field fills, not action buttons. */
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) :is(
  input:not([type]), input[type="text"], input[type="email"],
  input[type="url"], input[type="number"], input[type="tel"],
  input[type="password"], input[type="search"], input[type="date"],
  input[type="datetime-local"], input[type="time"],
  select, textarea
) {
  background: var(--white, #FFFFFF) !important;
  color: var(--text, #0B1A33) !important;
  border-color: var(--line, #CBD3E1) !important;
  color-scheme: light;
}
body:is(.sls-editorial-ui, .sls-admin-editorial-ui) :is(
  input:not([type="checkbox"]):not([type="radio"]):disabled,
  select:disabled, textarea:disabled,
  input:not([type="checkbox"]):not([type="radio"])[readonly]
) {
  background: #EEF2F8 !important;
  color: #4A5568 !important;
  border-color: #CBD3E1 !important;
}
/* END SLS-MFCP-R90-INTAKE-READABILITY */
