/* Map the existing app tokens to the supplied palette. Color only: fonts,
   sizes, spacing and exported document styles remain owned by the app. */
body[data-theme]{
 --dd-bg:var(--bg-page);--dd-surface:var(--bg-card);
 --dd-line:var(--border-card);--dd-line-soft:var(--line-row);
 --dd-ink:var(--text-body);--dd-muted:var(--text-sub);
 --dd-brand:var(--theme-primary);--dd-brand-2:var(--theme-primary-hover);
 --dd-primary:var(--theme-primary);--dd-primary-strong:var(--theme-primary-hover);
 --dd-primary-soft:var(--theme-tint-bg);--dd-info-soft:var(--theme-tint-bg);
 --dd-success:var(--status-done);--dd-success-soft:var(--status-done-bg);
 --dd-warn:var(--status-warn);--dd-warn-soft:var(--status-warn-bg);
 --dd-danger:var(--status-error);--dd-danger-soft:var(--status-error-bg);
 --bg:var(--bg-page)!important;--card:var(--bg-card)!important;
 --line:var(--border-card)!important;--ink:var(--text-body)!important;--muted:var(--text-sub)!important;
 --blue:var(--theme-primary)!important;--bluebg:var(--theme-tint-bg)!important;
 --green:var(--status-done)!important;--greenbg:var(--status-done-bg)!important;
 --warn:var(--status-warn)!important;--warnbg:var(--status-warn-bg)!important;
 --red:var(--status-error)!important;--redbg:var(--status-error-bg)!important;
 --purple:var(--theme-primary)!important;--purplebg:var(--theme-tint-bg)!important;
 --greenSoft:var(--theme-tint-bg);--teal:var(--theme-primary);--teal2:var(--theme-primary-hover);
 --sub:var(--text-sub);--light:var(--theme-tint-bg);
 --tr-primary:var(--theme-primary);--tr-primary-hover:var(--theme-primary-hover);
 --tr-soft:var(--theme-tint-bg);--tr-line:var(--border-card);--tr-ink:var(--text-title);--tr-muted:var(--text-sub);
}
body[data-tone] .card,body[data-tone] .records-side-card,body[data-tone] .module,
body[data-tone] .intro,body[data-tone] .hero,body[data-tone] .box,body[data-tone] .vol{
 border-color:var(--border-card)!important;border-width:var(--line-width)!important;
}
body[data-tone] input,body[data-tone] select,body[data-tone] textarea{
 color:var(--text-body)!important;border-color:var(--border-input)!important;border-width:var(--line-width)!important;
}
body[data-tone] th{color:var(--text-title)!important;background:var(--bg-head)!important;border-bottom-color:var(--line-head)!important;border-bottom-width:var(--line-width)!important}
body[data-tone] td{color:var(--text-body)!important;border-bottom-color:var(--line-row)!important}
body[data-theme] .btn.primary,body[data-theme] .btn.green,body[data-theme] button.primary,
body[data-theme] .button,body[data-theme] .step.on,body[data-theme] .mode-tab.active{
 background:var(--theme-primary)!important;color:var(--theme-on-primary)!important;border-color:var(--theme-primary)!important;
}
body[data-theme] .btn.primary:hover,body[data-theme] .btn.green:hover,body[data-theme] button.primary:hover,body[data-theme] .button:hover{
 background:var(--theme-primary-hover)!important;border-color:var(--theme-primary-hover)!important;
}
body[data-theme] .management-upload-card,body[data-theme] .records-file-row{
 background:var(--theme-tint-bg)!important;border-color:var(--theme-tint-border)!important;
}
body[data-theme] .management-upload-card:hover,body[data-theme] .records-file-row:hover,
body[data-theme] .management-upload-card:focus-visible{border-color:var(--theme-primary)!important}
body[data-theme] .management-upload-eyebrow,body[data-theme] .kicker,body[data-theme] .step,
body[data-theme] .records-upload-description strong{color:var(--theme-tint-text)}
body[data-theme] .hero h1 em{color:var(--theme-primary)}
body[data-theme] .app-edition{color:var(--theme-primary)}
body[data-tone] .module .desc{color:var(--text-body)}
body[data-tone] .lead,body[data-tone] .note,body[data-tone] .module .footnote,
body[data-tone] .records-upload-description small{color:var(--text-sub)!important}
body[data-theme] .badge.ok,body[data-theme] .ok{background:var(--status-done-bg)!important;color:var(--status-done)!important}
body[data-theme] .badge.warn,body[data-theme] .warn{background:var(--status-warn-bg)!important;color:var(--status-warn)!important}
body[data-theme] .badge.bad,body[data-theme] .bad,body[data-theme] .badge.red{background:var(--status-error-bg)!important;color:var(--status-error)!important}
