/* Plugin scope only: the active theme provides --kktru-* palette and the toggle. */
html[data-kktru-theme] .kktu-app{
  --kt-bg:var(--kktru-page,#081526);--kt-bg-deep:var(--kktru-page,#081526);
  --kt-panel:var(--kktru-surface,#0d2033);--kt-panel-strong:var(--kktru-surface,#0d2033);
  --kt-panel-soft:var(--kktru-surface-2,#152a41);--kt-line:var(--kktru-border,#28415c);
  --kt-line-strong:var(--kktru-border,#28415c);--kt-text:var(--kktru-ink,#f1f7fc);
  --kt-muted:var(--kktru-muted,#b0c5d9);--kt-subtle:var(--kktru-muted,#b0c5d9);
  color:var(--kktru-ink,#f1f7fc);background:var(--kktru-page,#081526);border-color:var(--kktru-border,#28415c)
}
html[data-kktru-theme] .kktu-app :is(.kktu-panel,.kktu-card,.kktu-status-card,.kktu-summary-card,.kktu-section-hero,.kktu-exchange-status-card){background:var(--kktru-surface);color:var(--kktru-ink);border-color:var(--kktru-border)}
html[data-kktru-theme] .kktu-app :is(input,textarea,select){background:var(--kktru-surface-2);color:var(--kktru-ink);border-color:var(--kktru-border)}
html[data-kktru-theme] .kktu-app :is(h1,h2,h3,h4){color:var(--kktru-ink)}
html[data-kktru-theme] .kktu-app :is(p,small,.kktu-eyebrow){color:var(--kktru-muted)}
html[data-kktru-theme="light"] .kktu-app :is(.kktu-app-nav-items a.is-active,.kktu-table-wrap,.kktu-exchange-tabs,.kktu-quick-actions,.kktu-unified-nav){background:var(--kktru-surface-2);color:var(--kktru-ink);border-color:var(--kktru-border)}
/* The shortcode must remain usable when the plugin renders outside its own app shell. */
html[data-kktru-theme] .kktru-unified-accounts{background:var(--kktru-surface);color:var(--kktru-ink);border-color:var(--kktru-border)}
