/* v5.12.0 — Optional visual themes. No selector affects stored financial data.
   iOS Minimal uses original styles.css exactly; themes below are additive. */
.theme-settings{margin-bottom:16px}
.theme-settings>.panel-head{margin-bottom:15px}
.theme-settings .theme-subtitle{font-size:12px;color:var(--muted);line-height:1.5;margin:7px 0 0}
.theme-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.theme-option{position:relative;display:flex;flex-direction:column;gap:9px;border:2px solid var(--line);border-radius:15px;background:var(--surface);padding:9px 9px 12px;cursor:pointer;min-width:0;transition:border-color .16s,box-shadow .16s,transform .16s}
.theme-option:focus-within{outline:3px solid #90ddc7;outline-offset:2px}
.theme-option input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.theme-option.is-selected{border-color:var(--green);box-shadow:0 0 0 2px color-mix(in srgb,var(--green) 20%,transparent)}
.theme-option:active{transform:scale(.99)}
.theme-preview{position:relative;display:block;height:89px;border-radius:10px;overflow:hidden;padding:10px}
.theme-preview:before{content:'';display:block;height:12px;width:45%;border-radius:7px;background:var(--preview-hero);margin-bottom:12px}
.theme-preview:after{content:'';display:block;position:absolute;left:10px;right:10px;bottom:10px;height:32px;border-radius:7px;background:var(--preview-card);box-shadow:0 3px 10px #00000012}
.theme-preview .theme-preview-bar{position:absolute;bottom:19px;left:20px;height:7px;width:26%;border-radius:8px;background:var(--preview-accent);z-index:1}
.theme-preview .theme-preview-dot{position:absolute;bottom:19px;right:21px;height:7px;width:23%;border-radius:8px;background:var(--preview-dot);z-index:1}
.theme-preview.minimal{background:linear-gradient(150deg,#eff8f5,#fafdfb);--preview-hero:#158d79;--preview-card:white;--preview-accent:#16a085;--preview-dot:#e8b36a}
.theme-preview.luxury{background:linear-gradient(135deg,#120f0d,#3a2920);--preview-hero:#d5ae6b;--preview-card:#3b3029;--preview-accent:#f3d49a;--preview-dot:#b8884c}
.theme-preview.energy{background:linear-gradient(145deg,#00a5c3,#ddfaff 70%,#fff1dc);--preview-hero:#fff;--preview-card:#fff;--preview-accent:#ff792f;--preview-dot:#00adbf}
.theme-preview.cinema{background:linear-gradient(135deg,#1c0d13,#5b1c29 50%,#0c554b);--preview-hero:#f1ce9b;--preview-card:#352321;--preview-accent:#cf5350;--preview-dot:#24b8a8}
.theme-option-copy{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:0 3px}
.theme-option-copy strong{font-size:14px;color:var(--ink)}
.theme-option-copy small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.theme-check{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border:1px solid var(--line);border-radius:50%;color:transparent;font-size:15px;font-weight:800}
.theme-option.is-selected .theme-check{background:var(--green);border-color:var(--green);color:white}
@media(min-width:850px){.theme-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.theme-preview{height:103px}}
@media(max-width:359px){.theme-gallery{gap:8px}.theme-option{padding:7px}.theme-preview{height:74px}.theme-option-copy strong{font-size:12px}.theme-option-copy small{font-size:10px}}
/* ========================= Cyan · Orange / NĂNG ĐỘNG ======================== */
html[data-theme="energy"]{
 --bg:#e9f8fb;--surface:#fff;--ink:#132a39;--muted:#667e8e;--line:#d9eef3;
 --green:#009fb1;--green-dark:#007e99;--green-pale:#d8f5f9;--red:#ff743b;--red-pale:#fff1e7;
 --shadow:0 10px 30px #137e9612;
}
html[data-theme="energy"] body{background:linear-gradient(180deg,#d8f7fb 0,#effafd 50%,#f7fcff 100%);background-attachment:fixed}
html[data-theme="energy"] .balance-card{background:linear-gradient(128deg,#00a4ba,#0064a1 78%)}
html[data-theme="energy"] .primary-btn{background:linear-gradient(120deg,#ff943f,#ff5b20);box-shadow:0 5px 16px #e766292b;color:white}
html[data-theme="energy"] .primary-btn:hover{background:linear-gradient(120deg,#f58930,#df4e11)}
html[data-theme="energy"] .quick-submit{background:linear-gradient(125deg,#00aabe,#087ea3)}
html[data-theme="energy"] .quick-actions .voice-btn,html[data-theme="energy"] #quick-voice-btn{background:#fff1e7;color:#c75220;border-color:#ffd6be}
html[data-theme="energy"] .mobile-nav-btn.is-active,html[data-theme="energy"] .nav-btn.is-active{background:#d5f7fa;color:#007f97}
html[data-theme="energy"] .bottom-nav{background:#fff;border-top:1px solid #cde8ef}
html[data-theme="energy"] .sidebar{background:#fff}
html[data-theme="energy"] .transaction-value.expense{color:#e65b35}
html[data-theme="energy"] .fx-result{background:linear-gradient(110deg,#04b6c9,#0878ac)}
html[data-theme="energy"] .tools-switch button.is-active,html[data-theme="energy"] .quick-type button.is-selected:not(.expense-quick){color:#007d97;background:#d8f6fa}
html[data-theme="energy"] .quick-type button.is-selected.expense-quick{background:#fff0e8;color:#e45a31}
html[data-theme="energy"] .quick-chip.is-selected{background:#e0faff;color:#067c91;border-color:#0bbac9}
html[data-theme="energy"] .gold-highlight>div:first-child,html[data-theme="energy"] .market-compact-card{background:#e9fbff}
html[data-theme="energy"] .market-compact-card:nth-child(2),html[data-theme="energy"] .gold-highlight>div:nth-child(2){background:#fff3e6}
/* ========================= Shared dark theme foundations ================== */
:is(html[data-theme="luxury"],html[data-theme="cinema"]){
 --bg:#17120f;--surface:#29211b;--ink:#f6eddd;--muted:#c6b5a2;--line:#4b3c32;
 --green:#d4a85f;--green-dark:#ecd098;--green-pale:#403024;
 --red:#f78b76;--red-pale:#513029;
 --shadow:0 11px 29px #07040242;
 color-scheme:dark;
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) body{background:radial-gradient(ellipse at 85% -15%,#4a2c1c 0,transparent 47%),var(--bg);color:var(--ink)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .panel,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .total-card,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .debt-item,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .transaction-dialog,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .sidebar{
 background:var(--surface);color:var(--ink);border-color:var(--line);
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .privacy-panel,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .tip-card,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .sidebar-bottom,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-market-panel,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .linked-debt-section,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .rate-form-section,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .debt-item-data>div,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .debt-home-grid>div,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-rates-grid>div,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-input-card,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-rate-card,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-extra-categories,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-status,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .market-compact-card,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .market-compact-card:nth-child(2),
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-highlight>div,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-highlight>div:nth-child(2){
 background:color-mix(in srgb,var(--surface) 77%,var(--bg));color:var(--ink);border-color:var(--line);
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .bottom-nav{background:#1b1613;border-top:1px solid var(--line);box-shadow:0 -8px 25px #08040350}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .mobile-nav-btn{color:#bba895}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .mobile-nav-btn.is-active{color:var(--green-dark);background:var(--green-pale)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .nav-btn{color:var(--muted)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .nav-btn.is-active{background:var(--green-pale);color:var(--green-dark)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .settings-shortcut,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .icon-btn,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .today-btn,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .outline-btn,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .small-action,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .close-btn,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-chip,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-bottom-fields input,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-amount-box,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-date-control,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-extra-categories select,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .form-field>input,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .form-field>select,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .note-editor-surface,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .note-dialog textarea,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .notes-toolbar input,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .notes-toolbar select,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-used-row input,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-market-switch button,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-amount-switch button,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .unit-top-row input,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .unit-top-row select,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .unit-selector-row select,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .search-field input {
 background:#372b24;color:var(--ink);border-color:var(--line);
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) input::placeholder,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) textarea::placeholder{color:#a48e7c;opacity:1}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) input,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) select,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) textarea{accent-color:var(--green);color:var(--ink)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-amount-box input{background:transparent;color:var(--ink)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-date-control strong,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-amount-label,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-section-head>span,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-bottom-fields label,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-rates-grid strong,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-converter-title,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-source-label,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-market-head strong,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-quote-heading h3,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-section h3,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .market-compact-card h3,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .note-content-field>label,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-input-card .form-field>span,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-rate-card>label,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .setting-field label {color:var(--ink)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .metric-title,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .metric-meta,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .transaction-meta,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .note-reminder-info,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .market-card-caption,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .market-compact-unit,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-rates-grid small,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-highlight small,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-time,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-quote-time,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .unit-result small,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .unit-result span{color:var(--muted)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-type,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .type-toggle,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-direction-switch,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .tools-switch{background:#3a2b23}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-type button,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-direction-switch button,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .tools-switch button{color:#d4c0ac}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .tools-switch button.is-active,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-type button.is-selected:not(.expense-quick),
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-chip.is-selected{background:var(--green-pale);color:var(--green-dark);border-color:var(--green)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-type button.is-selected.expense-quick{background:#563025;color:#ffb79c}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .market-compact-price,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-highlight strong,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .unit-result strong{color:var(--green-dark)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .market-compact-card:nth-child(2) .market-compact-price{color:#f9b676}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .donut-hole{background:var(--surface);color:var(--ink)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .donut{background:#3f3329}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .unit-result,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .debt-form-total{background:#453525;color:var(--ink)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .debt-form-total strong{color:var(--green-dark)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-result{background:linear-gradient(120deg,#6a4c2b,#9c6a36);color:#fff5e6}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .settings-report-link button{color:var(--green-dark)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-voice-status{color:var(--ink)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .note-card{color:#29392f} /* user-chosen pastel note colors remain legible */
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .note-card-head h3{color:#254438}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .note-card-text{color:#385a49}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .note-checklist-row{color:#345648}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .note-card:not([class*="color-"]){background:#f4ead8}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .note-editor-text{background:transparent;color:var(--ink)}
/* ========================= VÀNG – ĐEN / SANG TRỌNG ======================== */
html[data-theme="luxury"]{--bg:#15110e;--surface:#2a211b;--line:#514031;--green:#d8b371;--green-dark:#ffdda1;--green-pale:#493522}
html[data-theme="luxury"] body{background:radial-gradient(circle at 85% 5%,#3e2b19,transparent 40%),#17120f}
html[data-theme="luxury"] .balance-card{background:linear-gradient(125deg,#534029,#1b1511 85%);border:1px solid #aa8854;color:#ffe9be}
html[data-theme="luxury"] .primary-btn{background:linear-gradient(125deg,#f5daa2,#c99d56);color:#25180c;box-shadow:0 6px 15px #0003}
html[data-theme="luxury"] .primary-btn:hover{background:linear-gradient(125deg,#ffe9bb,#d8ae67)}
html[data-theme="luxury"] .brand-icon{background:#c09b5d;color:#24180e}
html[data-theme="luxury"] .nav-btn.is-active{background:#493522;color:#ffdc9b}
html[data-theme="luxury"] .transaction-value.income{color:#e8cc93}
/* ========================= CINEMATIC / ĐIỆN ẢNH =========================== */
html[data-theme="cinema"]{--bg:#180f11;--surface:#2b1c20;--ink:#fff0de;--muted:#dcc6b7;--line:#594143;--green:#25afa3;--green-dark:#62ddd1;--green-pale:#153d3a;--red:#f27c69;--red-pale:#532b2a}
html[data-theme="cinema"] body{background:radial-gradient(ellipse at 6% 1%,#5d1828 0,transparent 37%),radial-gradient(ellipse at 100% 18%,#0f5551 0,transparent 32%),#1e1115}
html[data-theme="cinema"] .panel{background:linear-gradient(145deg,#301d22,#1b1c1c)}
html[data-theme="cinema"] .balance-card{background:linear-gradient(125deg,#5d1727,#292123 52%,#0b625d);border:1px solid #a76952;color:#ffead3}
html[data-theme="cinema"] .primary-btn{background:linear-gradient(120deg,#d09c64,#f2c58a);color:#261319;box-shadow:0 4px 18px #bb634a2b}
html[data-theme="cinema"] .quick-actions .voice-btn,html[data-theme="cinema"] #quick-voice-btn{background:linear-gradient(120deg,#722b39,#9b4244);color:#fff0e6;border-color:#d26565}
html[data-theme="cinema"] .fx-result{background:linear-gradient(135deg,#1f7a71,#632f3a);color:#fff4e9}
html[data-theme="cinema"] .brand-icon{background:#973e4f}
html[data-theme="cinema"] .nav-btn.is-active{background:#174e47;color:#a3efe2}
html[data-theme="cinema"] .transaction-value.income{color:#68dbbe}
html[data-theme="cinema"] .transaction-value.expense{color:#ff8f78}
/* Keep status bar contrast predictable in iOS Safari (standalone display may use OS styling). */
@media(prefers-reduced-motion:reduce){.theme-option{transition:none}}
/* Final cross-theme touches for the daily-entry and converter controls. */
html[data-theme="energy"] .voice-start{background:#fff1e7;color:#c75220;border-color:#ffbd96}
html[data-theme="energy"] .voice-transcript-card{background:#e2fbff;border-color:#9de8ef}
html[data-theme="energy"] .fx-input-card,html[data-theme="energy"] .fx-rate-card{background:#f3fdff;border-color:#cdeef3}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .voice-start{background:var(--green-pale);border-color:var(--green);color:var(--green-dark)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .voice-transcript-card{background:color-mix(in srgb,var(--green) 17%,var(--surface));border-color:var(--line);color:var(--ink)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .voice-transcript-head{color:var(--green-dark)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-input-card,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-rate-card{background:#382b25;border-color:var(--line)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-rate-card input,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-input-card input{color:var(--ink)}
html[data-theme="cinema"] .voice-start{background:linear-gradient(110deg,#6a2636,#8f3a3c);color:#ffe7d6;border-color:#b75b58}
/* v5.12.3: keep colorful notes legible on all four skins, including dark modes. */
:is(html[data-theme="luxury"],html[data-theme="cinema"]) #view-notes .note-create-panel{background:transparent;border:0}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) #view-notes .sticky-note{color:#252820}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) #view-notes .sticky-note h3{color:#252820}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) #view-notes .sticky-note .sticky-preview{color:#363b34}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .note-dialog .note-editor-surface,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .note-dialog .note-line-text{color:#243a30!important}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .note-dialog .note-line-toolbar button{color:#456c59}


/* v5.12.3 — stronger separation on dark themes and balanced control styling */
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .panel,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .total-card,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .transaction-dialog,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .sidebar{
 box-shadow:0 14px 32px #00000033,inset 0 1px 0 #ffffff0a;
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .tools-switch{
 background:color-mix(in srgb,var(--surface) 88%,var(--bg));
 border:1px solid var(--line);
 box-shadow:0 8px 24px #00000020,inset 0 1px 0 #ffffff0a;
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .tools-switch button{
 background:#2a211c;
 border:1px solid #544138;
 box-shadow:inset 0 1px 0 #ffffff08;
 color:#dbc7b2;
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .tools-switch button.is-active{
 background:color-mix(in srgb,var(--green-pale) 86%,var(--surface));
 border-color:color-mix(in srgb,var(--green) 45%,var(--line));
 box-shadow:0 10px 22px #00000026,inset 0 1px 0 #ffffff10;
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-quote-section,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-input-card,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-rate-card,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .market-compact-card,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .market-compact-card:nth-child(2),
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-highlight>div,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-highlight>div:nth-child(2){
 box-shadow:0 8px 20px #0000001b,inset 0 1px 0 #ffffff08;
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .notes-toolbar .search-field{
 background:#251c18;
 border:1px solid var(--line);
 box-shadow:inset 0 1px 0 #ffffff08;
 padding:0 0 0 12px;
 overflow:hidden;
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .notes-toolbar .search-field input{
 color:var(--ink);
 height:44px;
 padding:0 12px 0 0;
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .notes-toolbar #notes-filter{
 background:#251c18;
 border:1px solid var(--line);
 box-shadow:inset 0 1px 0 #ffffff08;
 color:var(--ink);
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-input-card,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-rate-card{
 background:#332721;
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-rate-card input,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-input-card .amount-field{
 background:#231a16;
 border-color:#5a473b;
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-input-card .amount-field input,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-rate-card input{
 color:var(--ink);
}
html[data-theme="luxury"] .fx-quote-section,
html[data-theme="luxury"] .market-compact-card,
html[data-theme="luxury"] .market-compact-card:nth-child(2){
 background:linear-gradient(180deg,#2f241e,#261d18);
}
html[data-theme="cinema"] .fx-quote-section,
html[data-theme="cinema"] .market-compact-card,
html[data-theme="cinema"] .market-compact-card:nth-child(2){
 background:linear-gradient(180deg,#311d22,#24191d);
}


/* v5.12.3: individual dark-card contrast and readable bilingual input */
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-type{background:color-mix(in srgb,var(--surface) 68%,var(--bg))!important;border-color:var(--line)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-type button{background:#382b29!important;color:#e6d6c7!important;border:1px solid #725954!important;box-shadow:0 7px 16px #00000040,inset 0 1px 0 #ffffff14}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-type button.is-selected.expense-quick{background:#59352e!important;color:#ffd5b9!important;border-color:#b97961!important;box-shadow:0 6px 18px #00000055}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .quick-type button.is-selected:not(.expense-quick){background:#244c46!important;color:#88e9d5!important;border-color:#3fae9b!important;box-shadow:0 6px 18px #00000055}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-highlight>div,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-highlight>div:nth-child(2),
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-quote-cards>div{
 background:#46332e!important;border:1.5px solid #89695e!important;box-shadow:0 7px 19px #00000053,inset 0 1px 0 #ffffff16;
}
html[data-theme="luxury"] .gold-highlight>div,html[data-theme="luxury"] .fx-quote-cards>div{background:#433127!important;border-color:#876a45!important}
html[data-theme="luxury"] .gold-highlight>div:nth-child(2){background:#483023!important;border-color:#a07843!important}
html[data-theme="cinema"] .gold-highlight>div,html[data-theme="cinema"] .fx-quote-cards>div{background:#462830!important;border-color:#8b5661!important}
html[data-theme="cinema"] .gold-highlight>div:nth-child(2){background:#352d2d!important;border-color:#497f75!important}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-highlight strong{color:#ffe2ae}
html[data-theme="cinema"] .gold-highlight strong{color:#70dfd4}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-section h3,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-quote-heading h3,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-unit-caption{color:var(--ink)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .translate-input-wrap #translate-input{
 background:#382a29!important;border:1px solid #8a6e61!important;color:#fff2df!important;caret-color:var(--green-dark);
 box-shadow:inset 0 1px 0 #ffffff15;
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .translate-input-wrap #translate-input::placeholder{color:#d9c3b4!important;opacity:.86}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .translate-microphone{background:#4b3431;border-color:#92705f;color:#ffe2b0}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .translate-result-section{background:#332524;border-color:#74524d;color:var(--ink)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .translate-result-head>strong,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .translate-result{color:#fff0df!important}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .translate-small-btn{background:#43312a;color:#ffe3b4;border-color:#846252}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .translate-direction button:not(.is-active),
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .translate-speed button:not(.is-active){background:#3a2926;color:#f4dcca;border:1px solid #76574e}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-input-rate-grid .fx-input-card .amount-field,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-input-rate-grid .fx-rate-card input{background:#281c1b!important;border-color:#78574b!important;color:#fff0dc!important}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-input-rate-grid .fx-input-card .amount-field input{background:transparent!important;color:#fff0dc!important}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-input-rate-grid .fx-input-card .amount-field input::placeholder{color:#d0b1a0!important}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .gold-updated-single{color:#d8bca4}

/* v5.13.1 active selector uses a filled surface for instant orientation */
html[data-theme="energy"] .tools-switch button.is-active{background:#ff7834!important;border-color:#ff7834!important;color:#fff!important;box-shadow:0 8px 18px #b84e2742!important}
html[data-theme="luxury"] .tools-switch button.is-active{background:#d6ac68!important;border-color:#e3c18d!important;color:#20150e!important;box-shadow:0 8px 18px #0007!important}
html[data-theme="cinema"] .tools-switch button.is-active{background:#217d75!important;border-color:#7bc5b4!important;color:#f8ffee!important;box-shadow:0 8px 19px #0007!important}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .translate-mode-field select,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .translate-voices select{background:#241c1a;border-color:#65514b;color:#f9efdf;color-scheme:dark}

/* v5.13.1: FX source + conversion direction use the selected theme palette. */
html{--fx-active-bg:var(--green);--fx-active-ink:#fff;--fx-track-bg:#edf5f1;--fx-idle-bg:#fff;--fx-idle-ink:#47685f}
html[data-theme="energy"]{--fx-active-bg:#ff7834;--fx-active-ink:#fff;--fx-track-bg:#ddf7fa;--fx-idle-bg:#f5feff;--fx-idle-ink:#175c70}
html[data-theme="luxury"]{--fx-active-bg:#d6ac68;--fx-active-ink:#21170e;--fx-track-bg:#241b16;--fx-idle-bg:#342720;--fx-idle-ink:#f4e1c6}
html[data-theme="cinema"]{--fx-active-bg:#238f83;--fx-active-ink:#fffaf1;--fx-track-bg:#241c20;--fx-idle-bg:#3b2930;--fx-idle-ink:#ffe9d4}
.fx-market-switch,.fx-direction-switch{
 background:var(--fx-track-bg)!important;
 border:1px solid var(--line)!important;
 padding:6px!important;gap:8px!important;border-radius:15px!important;
}
.fx-market-switch button,.fx-direction-switch button{
 border:1px solid color-mix(in srgb,var(--line) 75%,var(--green) 25%)!important;
 border-radius:11px!important;background:var(--fx-idle-bg)!important;color:var(--fx-idle-ink)!important;
 box-shadow:inset 0 1px 0 #ffffff12!important;min-height:46px;
}
.fx-market-switch button.is-active,.fx-direction-switch button.is-active{
 border:2px solid color-mix(in srgb,var(--fx-active-bg) 72%,white)!important;
 background:var(--fx-active-bg)!important;color:var(--fx-active-ink)!important;
 box-shadow:0 7px 18px color-mix(in srgb,var(--fx-active-bg) 35%,transparent),inset 0 1px 0 #ffffff2e!important;
 font-weight:850!important;
}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-market-switch,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .fx-direction-switch{box-shadow:inset 0 1px 3px #0007!important}

/* v5.13.1 — compact debt and recurring charges honor chosen color theme */
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .debt-item-compact,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .recurring-card,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .upcoming-day-group{background:color-mix(in srgb,var(--surface) 89%,var(--bg));border-color:var(--line);color:var(--ink);box-shadow:0 7px 18px #0003}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .debt-compact-facts>div{background:color-mix(in srgb,var(--surface) 64%,var(--bg));border-color:var(--line)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .recurring-dialog{background:var(--surface);color:var(--ink)}
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .recurring-dialog input,
:is(html[data-theme="luxury"],html[data-theme="cinema"]) .recurring-dialog select{color:var(--ink);background:color-mix(in srgb,var(--surface) 72%,var(--bg));border-color:var(--line)}
