/* My Finance Records · V15.1.0 · Black Canvas UI */
/* Final palette layer. Geometry, finance content, and interaction behavior remain unchanged. */
:root {
  --bg:#efefef;
  --focus-ring:#356FD1;
}
html[data-theme="light"] {
  color-scheme:light;
  --bg:#efefef;
  --focus-ring:#356FD1;
  --muted:#526071;
  --action-text:#275bb9;
}
html[data-theme="dark"] {
  color-scheme:dark;
  --bg:#000000;
  --surface:#080b10;
  --surface-soft:#0e131b;
  --text:#f4f7fb;
  --muted:#bbc5d4;
  --action-text:#9dbdff;
  --line:#202938;
  --nav:#080B10;
  --primary:#356FD1;
  --primary-dark:#2457AD;
  --primary-contrast:#ffffff;
  --focus-ring:#7DAAFF;
  --field-label:#dbe3ef;
  --nav-active-bg:var(--primary);
  --nav-active-text:var(--primary-contrast);
  --green:#2F8F46;
  --green-text:#78D695;
  --green-soft:#10271a;
  --red:#D64535;
  --red-soft:#2a1412;
  --orange:#E68A1F;
  --orange-text:#E68A1F;
  --orange-soft:#2b1d0d;
  --blue:#7DAAFF;
  --blue-soft:#111d33;
  --danger:#FF8A7F;
  --shadow:0 10px 30px rgba(0,0,0,.42);
}
html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] .app,
html[data-theme="light"] .main { background:#efefef; }
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] .app,
html[data-theme="dark"] .main { background:#000000; }
body { color:var(--text); }
.topbar { border-bottom-color:var(--line); }
html body button:focus-visible,
html body input:focus-visible,
html body select:focus-visible,
html body textarea:focus-visible,
html body .workspace-switcher-button:focus-visible {
  outline-style:solid !important;
  outline-width:3px !important;
  outline-color:var(--focus-ring) !important;
  outline-offset:2px !important;
}
.button-primary { background:var(--primary); color:var(--primary-contrast); }
.button-primary:hover { background:var(--primary-dark); }
input[type="checkbox"], input[type="radio"], progress { accent-color:var(--primary); }

/* V15.1.0 Mark Paid primary-action hotfix. */
.button-paid {
  background:var(--primary) !important;
  color:var(--primary-contrast) !important;
  border-color:var(--primary) !important;
}
.button-paid:hover {
  background:var(--primary-dark) !important;
  border-color:var(--primary-dark) !important;
}

/* V15.1.0 Available money Spend contrast by theme. */
html[data-theme="light"] #availableMoneySection .account-spend-button {
  background:var(--surface) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
}
html[data-theme="light"] #availableMoneySection .account-spend-button span {
  color:var(--text) !important;
}
html[data-theme="light"] #availableMoneySection .account-spend-button:hover {
  background:var(--surface-soft) !important;
}
html[data-theme="dark"] #availableMoneySection .account-spend-button span {
  color:var(--primary-contrast) !important;
}

/* V15.2.18 Available money light-mode account-name contrast hotfix. */
html[data-theme="light"] body #money #availableMoneySection .account-card .account-card-main .account-card-label span {
  color:var(--text) !important;
}

/* V15.1.0 Available money account-border softening. */
html[data-theme="dark"] #availableMoneySection .account-card {
  border-color:var(--line) !important;
}
html[data-theme="light"] #availableMoneySection .account-card {
  border-color:var(--line) !important;
}

/* Geometry is owned by the Finance component styles.  This palette layer must
   not clip or reshape period cards and their internal rows. */
