/* Local ribbon artwork and fine grain, selected by appearance. */
:root{
 --ambient-base:#f1ecd7;
 --ambient-art:url('./ambient-light.svg');
 --ambient-panel:#fffefb;
 --ambient-label-surface:rgba(255,254,251,.94);
}
:root[data-theme=dark]{
 --ambient-base:#0c100d;
 --ambient-art:url('./ambient-dark.svg');
 --ambient-panel:#151a18;
 --ambient-label-surface:rgba(21,26,24,.98);
}
body{background-color:var(--ambient-base);background-image:url('./ambient-grain.svg'),var(--ambient-art);background-size:160px 160px,cover;background-repeat:repeat,no-repeat;background-attachment:fixed}
.text-button{color:var(--link)}
.page-heading>div:first-child,.page-footer,.undo-history{background:var(--ambient-label-surface);border-radius:14px;padding:12px 16px}
.view-tabs{background:var(--ambient-label-surface);border-radius:14px;padding-inline:12px}
.mobile-home-header{background:linear-gradient(120deg,#3a4a40,var(--hero-surface) 65%)}
@media(max-width:599px){
 #app[data-route=home] .main-layout>.ledger{background:var(--ambient-panel);border:1px solid var(--border);border-radius:20px;margin-inline:12px;min-width:0}
 #app[data-route=home] .main-layout>.ledger .section-heading{padding-inline:14px}
 #app[data-route=home] .main-layout>.ledger .transaction{padding-inline:12px}
 #app[data-route=home] .view-tabs{background:var(--hero-surface);border-radius:0}
 .mobile-category-chips{background:transparent}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active){
 body{background-image:none;background-color:var(--bg)}
 .page-heading>div:first-child,.page-footer,.undo-history,.view-tabs{background:var(--surface)}
}
@media(forced-colors:active){body{background-color:Canvas}.page-heading>div:first-child,.page-footer,.undo-history,.view-tabs,#app[data-route=home] .main-layout>.ledger{background:Canvas;border-color:CanvasText}.text-button{color:LinkText}}
