/* ============ Trading Portal — bold dark theme ("The Ledger") ============ */
:root {
  --bg-0: #0a0a0c;
  --bg-1: #101015;
  --bg-2: #16161d;
  --bg-elev: #1a1a22;
  --bg-3: #20202a;
  --border-1: #24242c;
  --border-2: #303039;
  --border-3: #3a3a47;
  --text-1: #f4f4f5;
  --text-2: #a6a6b0;
  --text-3: #70707c;
  --text-4: #4a4a55;
  --profit: #22c55e;
  --profit-2: #4ade80;
  --profit-soft: rgba(34, 197, 94, 0.13);
  --loss: #ef4444;
  --loss-2: #f87171;
  --loss-soft: rgba(239, 68, 68, 0.13);
  --gold: #e0b352;
  --gold-2: #f0c970;
  --gold-soft: rgba(224, 179, 82, 0.12);
  --accent: #a78bfa;
  --info: #60a5fa;
  --mcx: #eab308;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif; /* system sans => guaranteed plain (un-slashed) zero, offline-safe; tabular-nums keeps columns aligned */
  color-scheme: dark; /* makes native <select> popups & date pickers dark */
}
[data-theme="daylight"] { color-scheme: light; }
/* style the option list itself where the browser allows it */
select.input option, #monthSelect option, #themeSelect option {
  background: var(--bg-elev); color: var(--text-1);
}
/* alternate themes via data-theme on <html> */
[data-theme="carbon"] {
  --bg-0: #000; --bg-1: #0b0b0b; --bg-2: #121212; --bg-elev: #161616; --bg-3: #1d1d1d;
  --border-1: #1f1f1f; --border-2: #2a2a2a; --gold: #f5d06b; --gold-2: #ffe08a;
}
[data-theme="slate"] {
  --bg-0: #0b1220; --bg-1: #111a2e; --bg-2: #16213a; --bg-elev: #1a2742; --bg-3: #22304f;
  --border-1: #233152; --border-2: #2e406b; --gold: #d8b35a;
}
[data-theme="daylight"] {
  --bg-0: #eef0f4; --bg-1: #f6f7fa; --bg-2: #ffffff; --bg-elev: #ffffff; --bg-3: #eef0f4;
  --border-1: #e2e5ec; --border-2: #d4d8e2; --border-3: #c4c9d6;
  --text-1: #15171c; --text-2: #4a4f5c; --text-3: #767c8a; --text-4: #a3a9b6;
  --gold: #b8860b; --gold-2: #cda227;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(224, 179, 82, 0.05), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(34, 197, 94, 0.04), transparent 55%),
    var(--bg-0);
  color: var(--text-1);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  min-height: 100%;
}
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }
.pos { color: var(--profit); }
.neg { color: var(--loss); }
.muted { color: var(--text-3); }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }
a { color: var(--gold); }
.hidden { display: none !important; }

/* ---------- LOGIN ---------- */
#loginView {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px; background: var(--bg-2); border: 1px solid var(--border-1);
  border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow);
}
.login-card .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.login-sub { color: var(--text-3); font-size: 13px; margin-bottom: 24px; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 6px; font-weight: 600;
}
.field input {
  width: 100%; background: var(--bg-0); border: 1px solid var(--border-2); color: var(--text-1);
  padding: 11px 12px; border-radius: 10px; font-size: 14px; outline: none;
}
.field input:focus { border-color: var(--gold); }
.btn-primary {
  width: 100%; background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1305; border: none; padding: 12px; border-radius: 10px; font-weight: 700;
  font-size: 14px; letter-spacing: 0.01em; margin-top: 6px;
}
.btn-primary:hover { filter: brightness(1.06); }
.login-error {
  color: var(--loss-2); font-size: 13px; margin-top: 12px; min-height: 18px; text-align: center;
}
.login-hint {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-1);
  font-size: 11.5px; color: var(--text-3); line-height: 1.7;
}
.login-hint code { color: var(--gold-2); font-family: var(--mono); }

/* ---------- LOGO ---------- */
.logo {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(160deg, var(--gold-2), var(--gold));
  display: grid; place-items: center; color: #1a1305; font-weight: 800; font-size: 20px;
  box-shadow: 0 6px 16px rgba(224, 179, 82, 0.25);
}
.title-h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.title-sub { font-size: 12.5px; color: var(--text-3); }

/* ---------- APP SHELL ---------- */
#appView { max-width: 1760px; margin: 0 auto; padding: 22px 26px 64px; }
header.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }

.bar {
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: var(--shadow);
}
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1 1 auto; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--bg-elev);
  border: 1px solid var(--border-2); border-radius: 999px; padding: 7px 12px; font-size: 13px;
}
.role-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 6px;
}
.role-admin { background: rgba(167,139,250,.16); color: var(--accent); }
.role-editor { background: var(--profit-soft); color: var(--profit-2); }
.role-viewer { background: var(--bg-3); color: var(--text-3); }

.metabox {
  background: var(--bg-elev); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 7px 12px; min-width: 120px;
}
.metabox .k { font-size: 9.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.metabox .v { font-size: 15px; font-weight: 700; font-family: var(--mono); margin-top: 2px; }
.metabox input, .metabox select {
  background: transparent; border: none; color: var(--text-1); font-size: 15px; font-weight: 700;
  font-family: var(--mono); width: 100%; outline: none; padding: 0; margin-top: 1px;
}
.metabox.editable { border-color: var(--border-2); }
.metabox input:focus { color: var(--gold-2); }

.btn {
  background: var(--bg-elev); border: 1px solid var(--border-2); color: var(--text-1);
  padding: 8px 12px; border-radius: 9px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { border-color: var(--border-3); background: var(--bg-3); }
.btn.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1305; border: none; }
.btn.gold:hover { filter: brightness(1.06); }
.btn.sm { padding: 6px 9px; font-size: 12px; }
.btn.danger:hover { border-color: var(--loss); color: var(--loss-2); }

select.input, input.input {
  background: var(--bg-0); border: 1px solid var(--border-2); color: var(--text-1);
  padding: 9px 11px; border-radius: 9px; font-size: 13.5px; outline: none;
}
select.input:focus, input.input:focus { border-color: var(--gold); }
.lbl { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }

/* ---------- KPI CARDS ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.kpi {
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--dot, var(--gold)); opacity: .8; }
.kpi .head { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.kpi .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--gold)); }
.kpi .big { font-size: 30px; font-weight: 800; font-family: var(--mono); margin: 8px 0 4px; letter-spacing: -0.01em; }
.kpi .sub { font-size: 12px; color: var(--text-3); font-family: var(--mono); }

/* ---------- PANELS ---------- */
.panel {
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border-1);
}
.panel-head h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.panel-head .accent { color: var(--gold-2); }
.panel-body { padding: 16px 18px; }

/* entry form */
.entry-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr auto; gap: 12px; align-items: end; }
.entry-grid .fld label { display:block; font-size: 11px; color: var(--text-3); margin-bottom: 6px; font-weight:600; }
.entry-grid input { width: 100%; background: var(--bg-0); border: 1px solid var(--border-2); color: var(--text-1);
  padding: 10px 11px; border-radius: 9px; font-size: 13.5px; outline: none; font-family: var(--mono); }
.entry-grid input[type="text"] { font-family: var(--sans); }
.entry-grid input:focus { border-color: var(--gold); }

/* ---------- TABLE ---------- */
.tbl-wrap { overflow-x: auto; }
table.stmt { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.stmt th {
  text-align: right; padding: 12px 14px; font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700; border-bottom: 1px solid var(--border-2); white-space: nowrap;
}
table.stmt th:nth-child(1), table.stmt th:nth-child(2), table.stmt th:nth-child(3) { text-align: left; }
table.stmt td { padding: 13px 14px; border-bottom: 1px solid var(--border-1); text-align: right; white-space: nowrap; }
table.stmt td:nth-child(1) { color: var(--text-3); }
table.stmt td:nth-child(1), table.stmt td:nth-child(2), table.stmt td:nth-child(3) { text-align: left; }
table.stmt tr:hover td { background: rgba(255,255,255,0.015); }
.num { font-family: var(--mono); font-feature-settings: "tnum" 1, "zero" 0; }
.num, .mono, .big, .sc-v, .vh-v, .metrics td, .cap-sum td, .summary-row .val, .curve-meta, .vshare .vnet-v, .vshare .vcard .v, .cal-stat .v { font-variant-numeric: tabular-nums; }
.big, .sc-v, .vh-v, .metrics td.b, .curve-meta, .stmt .num, .utable .num { font-feature-settings: "tnum" 1, "zero" 0; }
.chip {
  display: inline-block; font-family: var(--mono); font-weight: 700; padding: 3px 9px; border-radius: 7px; font-size: 12.5px;
}
.chip.pos { background: var(--profit-soft); color: var(--profit-2); }
.chip.neg { background: var(--loss-soft); color: var(--loss-2); }
.strat-tag {
  display: inline-block; background: var(--bg-3); border: 1px solid var(--border-2); color: var(--text-2);
  font-size: 11.5px; padding: 2px 8px; border-radius: 6px; font-weight: 600;
}
tr.total-row td { border-top: 2px solid var(--border-2); border-bottom: none; font-weight: 800; padding-top: 15px; }
tr.total-row td:first-child { color: var(--text-1); }
tr.netcredit td { color: var(--text-2); font-weight: 700; padding: 14px; }
tr.netcredit .val { color: var(--profit-2); font-family: var(--mono); font-size: 15px; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--bg-elev);
  color: var(--text-2); display: inline-grid; place-items: center; font-size: 13px;
}
.icon-btn:hover { border-color: var(--border-3); color: var(--text-1); }
.icon-btn.del:hover { color: var(--loss-2); border-color: var(--loss); }

/* ---------- bottom grid ---------- */
.bottom { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
#equityCanvas { width: 100%; height: 260px; display: block; }
.panel-body canvas { width: 100%; display: block; }

/* ---- tabs ---- */
.tabs { display: flex; gap: 4px; margin: 22px 0 2px; border-bottom: 1px solid var(--border-1); }
.tab { background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--text-3);
  font-family: inherit; font-weight: 700; font-size: 14px; padding: 10px 16px; cursor: pointer;
  transition: color .15s, border-color .15s; margin-bottom: -1px; }
.tab:hover { color: var(--text-1); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- analytics stat grid ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat-cell { background: var(--bg-elev); border: 1px solid var(--border-1); border-radius: 10px; padding: 12px 14px; }
.sc-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 700; }
.sc-v { font-family: var(--mono); font-weight: 800; font-size: 18px; color: var(--text-1); margin-top: 6px; }
.sc-v.pos { color: var(--profit-2); }
.sc-v.neg { color: var(--loss); }

/* ---- insights ---- */
.insight { padding: 9px 2px; border-bottom: 1px solid var(--border-1); color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.insight:last-child { border-bottom: none; }
.insight b { color: var(--text-1); font-weight: 700; }

/* ---- selbar separator ---- */
.vsep { width: 1px; align-self: stretch; min-height: 22px; background: var(--border-2); margin: 0 4px; display: inline-block; }

/* ---- per-account metrics table (bold numbers) ---- */
.metrics { width: 100%; }
.metrics th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-3); white-space: nowrap; padding: 9px 12px; }
.metrics td { padding: 9px 12px; white-space: nowrap; font-size: 13.5px; }
.metrics td.b, .metrics td.num.b { font-weight: 800; font-family: var(--mono); }
.metrics tbody tr { border-bottom: 1px solid var(--border-1); }
.metrics tr.ana-consol { border-top: 2px solid var(--border-2); background: color-mix(in srgb, var(--profit) 9%, transparent); }
.metrics tr.ana-consol td { font-weight: 800; }

/* ---- per-account curve cards ---- */
.acct-curves { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.acct-curve { flex: 1 1 300px; min-width: 280px; margin: 0 !important; }
.acct-curve canvas { height: 150px; }

/* ---- verified P&L hero ---- */
.verified-hero { border: 1px solid var(--border-2); background: var(--bg-elev); border-radius: 12px; padding: 18px 20px; }
.verified-hero .vh-k { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.verified-hero .vh-v { font-family: var(--mono); font-weight: 800; font-size: 34px; letter-spacing: -0.01em; margin: 6px 0 4px; }
.curve-meta { font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }
.curve-meta b { color: var(--profit-2); }
.summary-list { display: flex; flex-direction: column; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border-1); font-size: 13.5px; }
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--text-2); }
.summary-row .val { font-family: var(--mono); font-weight: 700; }

/* ---------- MODAL ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: grid; place-items: center; z-index: 50; padding: 20px;
}
.modal {
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 16px; width: 100%; max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5); max-height: 88vh; overflow: auto;
}
.modal .panel-head { position: sticky; top: 0; background: var(--bg-2); }
.modal-close { margin-left: auto; }
.utable { width: 100%; border-collapse: collapse; font-size: 13px; }
.utable th, .utable td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border-1); }
.utable th { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .fld.full { grid-column: 1 / -1; }
.fld label { font-size: 11px; color: var(--text-3); font-weight: 600; display:block; margin-bottom: 5px; }
.fld input, .fld select {
  width: 100%; background: var(--bg-0); border: 1px solid var(--border-2); color: var(--text-1);
  padding: 9px 10px; border-radius: 9px; font-size: 13.5px; outline: none;
}
.fld input:focus, .fld select:focus { border-color: var(--gold); }
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--bg-elev); border: 1px solid var(--border-3); color: var(--text-1);
  padding: 11px 18px; border-radius: 10px; font-size: 13.5px; z-index: 80; box-shadow: var(--shadow);
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.err { border-color: var(--loss); color: var(--loss-2); }

.footer-note { text-align: center; color: var(--text-4); font-size: 12px; margin-top: 26px; }

/* ---------- PRINT (PDF export) ---------- */
@media print {
  body { background: #fff !important; color: #111 !important; }
  .bar, .kpi, .panel, .login-card { box-shadow: none !important; }
  #equityCanvas { max-height: 220px; }
  .row .btn, .row select, .metabox select, #logoutBtn, .editor-only, .admin-only,
  #themeSelect, .footer-note, .icon-btn, #entryPanel { display: none !important; }
  .bar:first-of-type, header.app-head { border: none; }
  table.stmt th, table.stmt td { color: #111 !important; }
  .chip.pos, .pos { color: #137a3a !important; }
  .chip.neg, .neg { color: #b91c1c !important; }
  .panel, .bar, .kpi { border-color: #ccc !important; background: #fff !important; }
  #appView { max-width: 100%; }
}

@media (max-width: 920px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .bottom { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: 1fr; }
}

/* ===== alignment: headers sit directly above content ===== */
.stmt th, .stmt td, .metrics th, .metrics td { text-align: center !important; }
.stmt th:nth-child(2), .stmt td:nth-child(2),
.stmt th:nth-child(3), .stmt td:nth-child(3) { text-align: center !important; }
.metrics td .strat-tag, .stmt td .strat-tag, .stmt td .chip { margin: 0 auto; }

/* ===== eye button on Total Capital ===== */
.eye-btn { background: transparent; border: none; cursor: pointer; font-size: 13px; opacity: .7; padding: 0 2px; margin-left: 4px; }
.eye-btn:hover { opacity: 1; }
.cap-sum { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cap-sum th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--border-1); }
.cap-sum td { padding: 9px 10px; border-bottom: 1px solid var(--border-1); font-family: var(--mono); }
.cap-sum tr:last-child td { border-bottom: none; }
.cap-sum .run { color: var(--text-3); }

/* ===== chart hover tooltip ===== */
.chart-tip { position: fixed; z-index: 9999; pointer-events: none; display: none; background: var(--bg-elev); border: 1px solid var(--border-2);
  border-radius: 8px; padding: 7px 10px; font-size: 12px; font-family: var(--mono); color: var(--text-1); box-shadow: 0 8px 24px rgba(0,0,0,.4); white-space: nowrap; }
.chart-tip .d { color: var(--text-3); font-size: 11px; }
.chart-tip .v { font-weight: 800; }
canvas { cursor: crosshair; }

/* ===== calendar heatmap (dark, in-app) ===== */
.cal-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-bottom: 18px; }
.cal-stat .k { font-size: 12px; color: var(--text-3); }
.cal-stat .sub { font-size: 11px; color: var(--text-3); }
.cal-stat .v { font-size: 19px; font-weight: 800; font-family: var(--mono); margin-top: 2px; }
.hm-months { display: flex; flex-wrap: wrap; gap: 18px; }
.hm-month { }
.hm-grid { display: grid; grid-template-rows: repeat(7, 14px); grid-auto-flow: column; gap: 3px; }
.hm-cell { width: 14px; height: 14px; border-radius: 3px; background: var(--border-1); }
.hm-label { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; text-align: center; }
.hm-legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); margin-top: 14px; }
.hm-legend .sw { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }

/* ===== verified shareable overlay (light) ===== */
.vshare-back { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.55); overflow: auto; padding: 28px 16px; }
.vshare { max-width: 1080px; margin: 0 auto; background: #fff; color: #111827; border-radius: 16px; padding: 34px 40px 26px;
  font-family: var(--sans); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.vshare .vtop { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e7eb; padding-bottom: 18px; }
.vshare .vbrand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; font-size: 18px; }
.vshare .vbadge { color: #16a34a; font-weight: 700; font-size: 13px; letter-spacing: .03em; }
.vshare .vhead { display: flex; justify-content: space-between; align-items: flex-start; margin: 26px 0 8px; gap: 20px; }
.vshare .vavatar { width: 60px; height: 60px; border-radius: 50%; background: #ddd6fe; color: #6d28d9; font-weight: 800; font-size: 26px; display: flex; align-items: center; justify-content: center; }
.vshare .vname { font-size: 26px; font-weight: 800; }
.vshare .vsub { color: #6b7280; font-size: 14px; margin-top: 2px; }
.vshare .vnet-k { color: #6b7280; font-size: 13px; text-align: right; }
.vshare .vnet-v { font-size: 34px; font-weight: 800; font-family: var(--mono); text-align: right; }
.vshare .pos { color: #16a34a; } .vshare .neg { color: #dc2626; }
.vshare .vstats { display: flex; gap: 56px; margin: 26px 0; flex-wrap: wrap; }
.vshare .vstat .k { color: #6b7280; font-size: 13px; }
.vshare .vstat .sub { color: #9ca3af; font-size: 12px; }
.vshare .vstat .v { font-size: 19px; font-weight: 800; margin-top: 4px; }
.vshare .hm-cell { background: #ebedf0; }
.vshare .hm-label, .vshare .cal-stat .k { color: #6b7280; }
.vshare .vcards { display: flex; gap: 16px; margin-top: 22px; }
.vshare .vcard { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 20px; min-width: 200px; }
.vshare .vcard .k { color: #6b7280; font-size: 13px; }
.vshare .vcard .v { font-size: 22px; font-weight: 800; font-family: var(--mono); margin-top: 6px; }
.vshare .vfoot { text-align: center; color: #9ca3af; font-size: 12px; margin-top: 26px; border-top: 1px solid #e5e7eb; padding-top: 16px; }
.vshare .vclose { position: sticky; top: 0; float: right; background: #111827; color: #fff; border: none; border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: 13px; }
.vshare .hm-months { display: flex; flex-wrap: wrap; gap: 16px; }

/* ===== combined "All Accounts" view: hide per-account-only controls ===== */
body.all-mode #editAccountBtn,
body.all-mode #delAccountBtn,
body.all-mode #capitalBtn,
body.all-mode #capEyeBtn,
body.all-mode #entryPanel { display: none !important; }
