.dds-backdrop{z-index:290}.dds-modal{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;display:flex;flex-direction:column;overflow:hidden;font:inherit}.dds-modal>header{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #e2eaf2}.dds-modal h2{font-size:17px;margin:0}.dds-modal>header>button{border:0;background:#f3f7fa;border-radius:8px;padding:7px;color:#62798f}.dds-modal-body{padding:18px 20px;overflow:auto;font-size:13px;line-height:1.6}.dds-modal-body>p{margin:0 0 12px}.dds-modal-body>small{display:block;color:#7a8da2;font-size:11px;margin:8px 0;overflow-wrap:anywhere}.dds-part{padding:14px 0;border-bottom:1px solid #e6edf4;display:grid;gap:8px;font-size:12px}.dds-part p{font-size:12px;color:#6c8295;margin:0;line-height:1.5}.dds-modal-body .dds-warning{margin:12px 0}
/* Scope all typography and table layout to DDS; financial logic is unchanged. */
.dds-panel.panel { padding:0; margin-top:18px; min-width:0; overflow:hidden; font-family:inherit; }
.dds-panel *, .dds-backdrop * { box-sizing:border-box; }
.dds-panel :is(button,input,select) { font-family:inherit; }
.dds-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:22px 22px 16px; }
.dds-heading>div { min-width:0; }
.dds-panel .dds-heading h2 { margin:0 0 6px; font-size:18px; line-height:1.4; font-weight:700; }
.dds-heading p,.dds-debts-head p { margin:0; color:#718399; font-size:12px; line-height:1.6; }
.dds-heading button { display:flex; align-items:center; gap:7px; flex-shrink:0; font-size:12px; }
.dds-tabs { display:flex; flex-wrap:wrap; width:fit-content; gap:4px; margin:0 22px 20px; padding:4px; border:1px solid #dce6f0; border-radius:10px; }
.dds-tabs button,.dds-shortcuts button { font-size:12px; line-height:1.4; border:0; background:transparent; color:#526f88; padding:9px 12px; border-radius:7px; cursor:pointer; white-space:nowrap; }
.dds-tabs button.active,.dds-shortcuts button.active { background:#e7f2ff; color:#086ac7; font-weight:600; }
.dds-controls { margin:0 22px 20px; padding:15px; background:#f8fafc; border:1px solid #e6edf4; border-radius:12px; }
.dds-period { display:flex; flex-wrap:wrap; align-items:center; gap:14px 20px; }
.dds-shortcuts { display:flex; flex-wrap:wrap; gap:3px; padding:3px; background:#edf2f7; border-radius:9px; }
.dds-shortcuts button.active { background:#fff; box-shadow:0 1px 3px #27496212; }
.dds-date-fields { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; }
.dds-date-fields label { display:flex; gap:7px; align-items:center; font-size:12px; color:#718399; }
.dds-date-fields input { font:inherit; width:148px; min-width:0; height:38px; padding:7px 9px; background:#fff; border:1px solid #dce6f0; border-radius:8px; color:#324f66; }
.dds-date-fields button { width:32px; height:36px; padding:0; border:1px solid #e2eaf2; background:#fff; border-radius:8px; color:#526f88; display:grid; place-items:center; flex-shrink:0; cursor:pointer; }
.dds-filters { display:grid; grid-template-columns:minmax(180px,1fr) minmax(160px,200px) minmax(160px,200px); gap:14px; margin-top:15px; }
.dds-filters label { display:grid; gap:6px; min-width:0; }
.dds-filters label>span { font-size:11px; color:#708297; font-weight:500; }
.dds-filters label:only-child { grid-column:1/-1; }
.dds-filters :is(input,select) { width:100%; min-width:0; height:40px; margin:0; padding:9px 11px; border:1px solid #dce6f0; border-radius:8px; font-size:12px; line-height:1.4; background:#fff; color:#324f66; }
.dds-panel :is(input,select,button):focus-visible { outline:2px solid #6aa9e5; outline-offset:2px; }
.dds-panel button:disabled { cursor:default; opacity:.55; }
.dds-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:0 22px; margin-bottom:16px; }
.dds-metrics article { min-width:0; display:flex; flex-direction:column; gap:8px; border:1px solid #dce6f0; border-top:3px solid #7b98b1; border-radius:12px; background:#fff; padding:17px 18px; }
.dds-metrics article.dds-metric-income { border-top-color:#42a58d; }
.dds-metrics article.dds-metric-expense { border-top-color:#7391b5; }
.dds-metrics article.dds-metric-net { border-top-color:#1877d0; background:#f5f9fe; }
.dds-metrics span { color:#718399; font-size:12px; line-height:1.4; }
.dds-metrics strong { color:#294c60; font-size:22px; line-height:1.35; font-weight:700; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.dds-metrics small { color:#8897a8; font-size:11px; line-height:1.4; }
.dds-debt-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.dds-transfer-strip { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 22px; margin:0 22px 20px; padding:12px 15px; background:#f6f9fc; border:1px solid #e7eef5; border-radius:9px; font-size:11px; line-height:1.6; color:#718399; }
.dds-transfer-strip>span:first-child { color:#526f88; font-weight:600; }
.dds-transfer-strip strong { color:#526f88; font-weight:600; display:inline-block; font-variant-numeric:tabular-nums; }
.dds-journal-heading { display:flex; flex-wrap:wrap; gap:12px 24px; align-items:flex-start; justify-content:space-between; padding:0 22px 14px; }
.dds-journal-heading h3,.dds-panel .dds-debts-head h3 { margin:0; font-size:14px; line-height:1.5; font-weight:650; color:#36536a; }
.dds-journal-heading>div>span { display:block; margin-top:4px; font-size:11px; color:#8494a7; }
.dds-help { max-width:480px; color:#718399; font-size:12px; line-height:1.6; }
.dds-help summary { color:#526f88; cursor:pointer; padding:2px 0; }
.dds-help p { margin:8px 0 0; font-size:12px; line-height:1.6; }
.dds-table-wrap { width:100%; overflow-x:auto; overscroll-behavior-x:contain; }
.dds-panel .dds-table { width:100%; border-collapse:collapse; font:inherit; font-size:12px; color:#445e75; }
.dds-money-table { table-layout:fixed; min-width:1050px; }
.dds-col-date { width:10%; }.dds-col-account { width:14%; }.dds-col-purpose { width:29%; }.dds-col-amount { width:15%; }.dds-col-effect { width:17%; }
.dds-panel .dds-table :is(th,td) { padding:13px 16px; border-bottom:1px solid #e6edf4; text-align:left; vertical-align:top; font-size:12px; line-height:1.55; white-space:normal; overflow-wrap:anywhere; }
.dds-panel .dds-table th { font-size:10px; font-weight:650; color:#7a8da2; background:#f6f9fc; text-transform:uppercase; vertical-align:middle; }
.dds-panel .dds-table .dds-number-heading,.dds-panel .dds-table :is(.dds-in,.dds-out) { text-align:right; }
.dds-cell-stack { display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-width:0; }
.dds-panel .dds-table small { display:block; margin:0; font-size:11px; font-weight:400; color:#7b8b9e; line-height:1.5; overflow-wrap:anywhere; }
.dds-panel .dds-table .dds-day td { padding:10px 16px; background:#edf4fb; }
.dds-day-content { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 20px; }
.dds-day-content>strong { color:#365875; font-size:12px; }
.dds-day-content>div { display:flex; flex-wrap:wrap; gap:5px 20px; font-size:11px; color:#72869a; }
.dds-day-content b { font-weight:600; color:#526f88; white-space:nowrap; }
.dds-amount { display:inline-flex; justify-content:flex-end; align-items:center; gap:5px; width:100%; font-variant-numeric:tabular-nums; white-space:nowrap; }
.dds-amount svg { flex-shrink:0; }.dds-amount>span { white-space:nowrap; }
.dds-in { color:#23816e; }.dds-out { color:#a26350; }.dds-dash { color:#9ba9b6; }
.dds-link { display:block; max-width:100%; min-width:0; border:0; background:none; padding:0; font:inherit; color:#365e7b; text-align:left; line-height:1.55; white-space:normal; overflow-wrap:anywhere; cursor:pointer; text-decoration:underline; text-decoration-color:#c8d6e2; text-underline-offset:3px; }
.dds-purpose>.dds-link { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.dds-badge { display:inline-block; flex-shrink:0; max-width:100%; width:fit-content; border:0; border-radius:6px; padding:4px 7px; font:inherit; font-size:11px; font-weight:500; line-height:1.45; white-space:normal; overflow-wrap:anywhere; color:#62798f; background:#eef3f8; }
.dds-badge.expense { background:#fff1e8;color:#996749; }.dds-badge.income { background:#e9f6f0;color:#337e68; }.dds-badge.none { background:#eef3f8;color:#62798f; }.dds-badge.review { background:#fff7df;color:#967326; }.dds-badge.mixed { background:#edf1fc;color:#6577a7; }
.dds-note { font-size:12px; line-height:1.6; color:#718399; margin:0; padding:12px 22px; }
.dds-footnote { font-size:11px; padding:16px 22px; }
.dds-warning,.dds-error { margin:12px 22px; padding:12px 14px; border:1px solid #ecd7ad; background:#fff9ef; border-radius:9px; font-size:12px; line-height:1.6; color:#886126; }
.dds-controls .dds-error { margin:12px 0 0; }.dds-error { color:#a14d48; background:#fff3f2; border-color:#ebccca; }
.dds-empty { font-size:12px; padding:30px 22px; margin:0; color:#7a8da2; text-align:center; }
.dds-more { display:block; margin:16px auto; font-size:12px; }
.dds-debts-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; padding:16px 22px; }
.dds-debts-head h3 { margin-bottom:6px!important; }.dds-debts-head button { font-size:12px; }
.dds-debt-table { min-width:650px; table-layout:fixed; }.dds-debt-table th:first-child { width:42%; }
.dds-events { padding:0 22px; }
.dds-events>article { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding:16px 0; border-bottom:1px solid #e6edf4; font-size:12px; line-height:1.6; }
.dds-events>article>div { min-width:0; overflow-wrap:anywhere; }.dds-events>article>strong { flex-shrink:0; white-space:nowrap; }
.dds-events small { display:block; color:#7a8da2; font-size:11px; margin:5px 0; }
.dds-events p { font-size:12px; line-height:1.6; margin:8px 0; color:#647b90; }.dds-events .dds-link { margin-top:8px; }
.dds-modal header h2 { line-height:1.4; overflow-wrap:anywhere; }.dds-modal header>button { flex-shrink:0; }.dds-modal-body { overflow-wrap:anywhere; }.dds-modal-body .dds-warning { margin:12px 0; }
@media(max-width:1100px) { .dds-filters { grid-template-columns:1fr 1fr; }.dds-search { grid-column:1/-1; }.dds-metrics strong { font-size:20px; } }
@media(max-width:700px) {
 .dds-heading { padding:18px 16px 14px; align-items:flex-start; flex-wrap:wrap; }.dds-panel .dds-heading h2 { font-size:17px; }.dds-tabs { margin:0 16px 16px; }
 .dds-controls { margin:0 16px 16px; padding:12px; }.dds-period { gap:12px; }.dds-date-fields { display:grid; grid-template-columns:28px minmax(0,1fr) 28px; width:100%; gap:7px; }.dds-date-fields label { min-width:0; justify-content:space-between; grid-column:2; }.dds-date-fields input { width:calc(100% - 26px); }.dds-date-fields button:first-child { grid-column:1; grid-row:1/3; }.dds-date-fields button:last-child { grid-column:3; grid-row:1/3; }.dds-date-fields button { width:28px; }
 .dds-shortcuts { gap:0; }.dds-shortcuts button { padding:8px; font-size:11px; }.dds-filters { grid-template-columns:1fr; gap:12px; }
 .dds-metrics,.dds-debt-metrics { grid-template-columns:1fr; padding:0 16px; gap:10px; }.dds-metrics article { padding:14px 16px; }.dds-metrics strong { font-size:21px; }
 .dds-transfer-strip { margin:0 16px 16px; gap:6px 15px; }.dds-transfer-strip>span:first-child { width:100%; }.dds-journal-heading { padding:0 16px 12px; }.dds-help { max-width:100%; }
 .dds-debts-head { padding:16px; }.dds-events { padding:0 16px; }.dds-events>article { flex-direction:column; gap:8px; }.dds-note { padding:12px 16px; }.dds-warning,.dds-error { margin:12px 16px; }
}

.dds-purpose>small { display:-webkit-box!important; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; max-width:100%; }
@media(max-width:700px) { .dds-panel,.dds-table-wrap { scroll-margin-top:76px; } }
/*$vite$:1*/