:root {
    color-scheme: dark;
    --bg: #18191b;
    --paper: #212326;
    --ink: #eeeff2;
    --muted: #a5a7ad;
    --green: #50545c;
    --border: #35383d;
}

a:focus-visible, button:focus-visible, input:focus-visible {
    outline-color: #a6abb4;
}

.primary { background: #51565f; color: #fff; }
.primary:hover { background: #656b75; }
.secondary, .avatar, .count-icon, .category-tag {
    background: #303338;
    border-color: #454950;
    color: #daddE3;
}
.secondary:hover { background: #3c4047; }
.brand-icon {
    background: #363a40;
    font-family: inherit;
    font-size: 15px;
    letter-spacing: -1px;
    padding: 0;
}
.green { color: #c1c5cc; }
.brand-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
input, .month-filter input {
    background: #24262a;
    color: var(--ink);
    border-color: #41454c;
}
input::placeholder { color: #858992; }
.overview-card, .login-card, .create-card { box-shadow: none; }
.total-panel { background: #25282d; }
.month-badge {
    border-color: #484d55;
    color: #c3c7cf;
}
.total-panel h2, .total-amount > span, .entry-count div > span,
.detail-link, .back-link, .password-field button {
    color: #b7bdc6;
}
.detail-link, .chart-footnote { border-color: #3b3f46; }
.chart-title > span, .legend b, .legend li div > span,
.overview-bottom, .table-footer, .page-footer, td time,
.save-note, .create-card small { color: #a5aab3; }
.pie-empty {
    background: repeating-linear-gradient(135deg, #353940 0 1px, #2a2d32 1px 9px) !important;
    color: #b9bec7;
}
thead { background: #2b2e33; color: #b9bec7; }
td { border-color: #35383d; }
.category-option input:checked + span {
    background: #3b4048;
    border-color: #a0a7b2;
    color: #fff;
    box-shadow: 0 0 0 1px #a0a7b2;
}
.category-option input:focus-visible + span { outline-color: #a6abb4; }
.mobile-add { background: #555b65; box-shadow: 0 6px 18px #0004; }
.mobile-add:hover { background: #656c78; }
.notice, .success { background: #30353c; color: #d3d7de; }
.validation { color: #f0b2ac; }
.empty-state > span { color: #b9bec7; }

@media (max-width: 760px) {
    .brand { font-size: 18px; }
    td:nth-child(3) { color: #a5aab3; }
}
