/* Shared visual refinement: preserve body, table values and comment typography. */
:root{--line:#dfe5ec;--bg:#f4f6f9;--soft:#edf3fc;--blue:#285dcc;--muted:#627184}
.topbar{padding:12px 24px;gap:12px}
.topbar .company-name{font-size:.9rem;letter-spacing:.035em}
.topbar .ds-logo{max-height:34px;width:auto}
.main{padding:24px 26px}
.main>h1,.page-head h1,.section-title h1{font-size:1.53rem;line-height:1.35;letter-spacing:-.025em}
.card>h2,.panel>h2,.card>.row>h2,.card>header h2{font-size:1.125rem;letter-spacing:-.02em}
.sidebar{padding-top:22px}
.sidebar button,.sidebar .nav-group>button,.sidebar .nav-group>summary{font-size:15px;line-height:24px;min-height:44px;padding:10px 13px;margin:0 0 4px;letter-spacing:normal}
.sidebar button{border-radius:7px}.sidebar .nav-group>summary{font-weight:700}.sidebar .nav-group:last-of-type{margin-top:10px}
.sidebar button.selected{background:#2b4567;box-shadow:inset 3px 0 #8eb4ed}
.sidebar .bottom-note{line-height:1.6;margin-top:20px;padding-top:18px}
.topbar button,.page-head button,.section-title>button,.section-title>.row>button,
.card>.row>button,.card>.row>.row>button,.card>header button,.panel>header button{
 font-size:.9rem;line-height:1.4;padding:8px 12px;border-radius:6px;
}
button{transition:background-color .12s,border-color .12s}
button:not(.primary):not(.selected):not(.vendor-danger-delete):hover{border-color:#b9c8da}
button.primary:hover{background:#204fae;border-color:#204fae}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #477bd2;outline-offset:2px}
.card,.panel{border-color:var(--line);border-radius:9px;box-shadow:0 1px 2px #17283e03}
.page-head,.section-title{margin-bottom:16px;gap:12px}
.table-wrap{border-color:var(--line);border-radius:7px}
.card th,th{background:#f5f7fa;border-bottom-color:#dce3ec}
.card td,td{border-bottom-color:#e8edf3}
tbody tr:hover{background:#f7f9fc}
.row{gap:8px}
.business-summary{margin:16px 0;padding:12px 0;background:#f5f7fa}
.business-summary>div{padding-left:20px;padding-right:20px}
.business-summary strong,.business-summary .business-count-button{font-size:28px}
.business-progress>.row>h2,#business-mine>.row h2{font-size:1.125rem}
#business-overview{background:#eef4fd;border-color:#c9d9ef;color:#255287}
.business-total-row>td,.company-total-row>th,.company-total-row>td{background:#f0f1f3;font-weight:700}
.accounting-ledger-card>.notice{background:#f4f7fb;border-left-color:#bdcce0;color:#586a80;padding:9px 12px}
@media(max-width:900px){.main{padding:18px 16px}.topbar{padding:12px 16px}}
@media(max-width:600px){.main{padding:14px 10px}.page-head{align-items:flex-start}.business-summary>div{padding-left:14px;padding-right:14px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}

/* Keep dashboard financial and production figures at their original size. */
.company-stats .card>h2{font-size:30px;letter-spacing:normal;margin:12px 0}
.company-stats .card>h2 small{font-size:13px;font-weight:400}

/* Restore original accounting headings; financial values were not resized. */
#main:has(.profit-page-head) .card h2{font-size:1.25rem;letter-spacing:normal}
#main .profit-page-head h1{font-size:1.7rem;letter-spacing:-.035em}
