/* Expense Structure on IQ Books ledgers: who you pay (expenseNative.js). House tokens only. */
.esn { display: flex; flex-direction: column; gap: 18px; }
.esn-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.esn-kpi { background: #fff; border: 1px solid var(--liq-border, #dfe6e2); border-left: 4px solid #1f5c4d; border-radius: 10px; padding: 14px 16px; }
.esn-kpi.warn { border-left-color: #c5891f; }
.esn-kpi-label { font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--liq-text-muted, #6b7a74); }
.esn-kpi-value { font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); font-size: 22px; font-weight: 600; color: var(--liq-text, #1a2420); margin: 6px 0 4px; }
.esn-kpi-meta { font-size: 12px; color: var(--liq-text-secondary, #4b5854); line-height: 1.4; }
.esn-card { background: #fff; border: 1px solid var(--liq-border, #dfe6e2); border-radius: 12px; padding: 18px 20px; }
.esn-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.esn-card-title { font-family: var(--liq-font-display, 'Fraunces', serif); font-size: 18px; color: var(--liq-text, #1a2420); }
.esn-card-sub { font-size: 12.5px; color: var(--liq-text-secondary, #4b5854); margin-top: 4px; max-width: 760px; line-height: 1.5; }
.esn-badge { font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(31, 92, 77, 0.08); color: #1f5c4d; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.esn-dumbbell-host { overflow-x: auto; }
.esn-dumbbell { width: 100%; min-width: 640px; height: auto; display: block; font-family: var(--liq-font-body, 'DM Sans', sans-serif); }
.esn-dumbbell .esn-row-bg { fill: var(--liq-bg, #f6f8f7); }
.esn-dumbbell .esn-grid { stroke: var(--liq-border, #dfe6e2); stroke-dasharray: 3 4; }
.esn-dumbbell .esn-tick { font-size: 11px; fill: var(--liq-text-muted, #6b7a74); font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); }
.esn-dumbbell .esn-name { font-size: 12.5px; font-weight: 600; fill: var(--liq-text, #1a2420); }
.esn-dumbbell .esn-link { stroke-width: 3; stroke-linecap: round; }
.esn-dumbbell .esn-link.up { stroke: rgba(182, 91, 81, 0.45); }
.esn-dumbbell .esn-link.down { stroke: rgba(14, 122, 90, 0.45); }
.esn-dumbbell .esn-dot.prior { fill: #fff; stroke: #6b7a74; stroke-width: 2; }
.esn-dumbbell .esn-dot.now.up { fill: #b65b51; }
.esn-dumbbell .esn-dot.now.down { fill: #0e7a5a; }
.esn-dumbbell .esn-delta { font-size: 12px; font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); }
.esn-dumbbell .esn-delta.up { fill: #8e3f37; }
.esn-dumbbell .esn-delta.down { fill: #0e6a4f; }
.esn-dumbbell .esn-delta.new { fill: #3f4f86; }
.esn-dumbbell .esn-delta.stopped { fill: #6b7a74; }
.esn-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 4px 0; font-size: 12px; color: var(--liq-text-secondary, #4b5854); }
.esn-legend span { display: inline-flex; align-items: center; gap: 6px; }
.esn-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.esn-legend i.prior { background: #fff; border: 2px solid #6b7a74; }
.esn-legend i.now.up { background: #b65b51; }
.esn-legend i.now.down { background: #0e7a5a; }
.esn-table-wrap { overflow-x: auto; }
.esn-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.esn-table th { text-align: left; font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--liq-text-muted, #6b7a74); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--liq-border, #dfe6e2); white-space: nowrap; }
.esn-table td { padding: 9px 10px; border-bottom: 1px solid var(--liq-border, #dfe6e2); vertical-align: top; }
.esn-num { text-align: right; font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); font-variant-numeric: tabular-nums; white-space: nowrap; }
.esn-muted { color: var(--liq-text-muted, #6b7a74); font-size: 11.5px; font-family: var(--liq-font-body, 'DM Sans', sans-serif); }
.esn-neg { color: #8e3f37; }
.esn-pos { color: #0e6a4f; }
.esn-table .esn-more { display: none; }
.esn-all .esn-table .esn-more { display: table-row; }
.esn-show-all { margin-top: 12px; }
.esn-loading, .esn-empty { padding: 36px 18px; text-align: center; color: var(--liq-text-secondary, #4b5854); font-size: 14px; }
.esn-spinner { display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border: 2px solid var(--liq-border, #dfe6e2); border-top-color: var(--liq-accent, #4a9080); border-radius: 50%; animation: esn-spin 0.8s linear infinite; }
@keyframes esn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .esn-spinner { animation: none; } }
@media (max-width: 900px) { .esn-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
