/* Decorative color themes. Functional controls keep the tablet comfort sizing. */
:root{
  --sidebar-card:#2d3c27;--sidebar-line:#53624e;--nav-active:#42553a;
  --brand-surface:#dce6d5;--focus:#88a375;--sidebar-text:#c6d1c1;--sidebar-muted:#aab8a5;
}
:root[data-theme="harvest"]{
  --olive:#704129;--olive-dark:#432b20;--olive-light:#89583a;
  --sage:#a27758;--sage-wash:#f4e9d9;--stone:#fbf4e9;
  --surface:#fffdf8;--surface-deep:#f3e6d5;--line:#e6d5bf;
  --ink:#35291f;--muted:#715c4c;--clay:#aa4b37;--gold:#ba853c;
  --sidebar-card:#5b3928;--sidebar-line:#8a624b;--nav-active:#81533b;
  --brand-surface:#f5dfbd;--focus:#ad774e;--sidebar-text:#f0ddc8;--sidebar-muted:#d9b69b;
}
:root[data-theme="coast"]{
  --olive:#27515a;--olive-dark:#1a3943;--olive-light:#386b73;
  --sage:#6b9292;--sage-wash:#e2efed;--stone:#f1f7f6;
  --surface:#fcfefd;--surface-deep:#e7f0ee;--line:#cedfdd;
  --ink:#20383b;--muted:#587074;--clay:#bc7052;--gold:#c19a5f;
  --sidebar-card:#254a54;--sidebar-line:#4f7479;--nav-active:#37656d;
  --brand-surface:#d8eae6;--focus:#5e9291;--sidebar-text:#d2e7e4;--sidebar-muted:#a9cfca;
}
:focus-visible{outline-color:var(--focus)}
body{background:var(--stone)}
.sidebar{background:var(--olive-dark)}
.estate-card{background:var(--sidebar-card);border-color:var(--sidebar-line)}
.estate-symbol{background:var(--olive-light)}
.sidebar .brand small,.sidebar .estate-card small,.sidebar .nav-label,.sidebar .side-footer small{color:var(--sidebar-muted)}
.sidebar .side-nav a,.sidebar .side-nav a span,.sidebar .side-footer{color:var(--sidebar-text)}
.sidebar .side-footer{border-color:var(--sidebar-line)}
.profile-badge{background:var(--sage-wash)}
.side-nav a:hover,.side-nav a.active{background:var(--nav-active)}
.brand-icon{background:var(--brand-surface)}
.topbar{background:var(--stone)}
.month-bar{background:linear-gradient(180deg,var(--sage),var(--olive))}
.scan-hero .scan-symbol{background:var(--olive-light)}
@media(max-width:900px){.mobile-nav{background:var(--surface)}}
/* The switcher is visible on desktop, landscape tablet, and phone. */
.theme-menu{position:relative;flex:none}
.theme-menu summary{list-style:none;display:grid;place-items:center;width:56px;height:56px;border:1px solid var(--line);border-radius:11px;background:var(--surface);cursor:pointer}
.theme-menu summary::-webkit-details-marker{display:none}
.theme-menu summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.theme-swatch{display:block;width:27px;height:27px;border:2px solid var(--surface);border-radius:50%;background:linear-gradient(135deg,var(--olive) 0 50%,var(--sage) 50%);box-shadow:0 0 0 1px var(--line)}
.theme-options{position:absolute;top:calc(100% + 9px);right:0;z-index:65;width:215px;padding:8px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}
.theme-options button{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:9px 12px;border:0;border-radius:9px;background:transparent;color:var(--ink);text-align:left;font-size:16px;font-weight:700}
.theme-options button:hover,.theme-options button[aria-pressed="true"]{background:var(--sage-wash)}
.theme-dot{width:24px;height:24px;flex:none;border-radius:50%;box-shadow:0 0 0 1px var(--line)}
.theme-dot.olive{background:linear-gradient(135deg,#2c3a24 50%,#7d9276 50%)}
.theme-dot.harvest{background:linear-gradient(135deg,#704129 50%,#ba853c 50%)}
.theme-dot.coast{background:linear-gradient(135deg,#27515a 50%,#6b9292 50%)}
/* Botanical artwork stays decorative and never covers controls. */
.page-heading.with-art{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,190px);align-items:center;gap:16px 26px}
.page-heading.with-art>div:first-child{min-width:0}
.page-heading.with-art .heading-art{grid-column:2;grid-row:1;width:100%;max-height:150px;object-fit:contain;justify-self:end}
.page-heading.with-art>.quick-actions{grid-column:1/-1;grid-row:2;margin-top:0}
.empty-state>span{width:96px;height:96px;margin:0 auto 12px;background:url('/illustrations/olive-branch.svg') center/contain no-repeat;font-size:0!important}
@media(max-width:700px){
  .top-controls .icon-button{display:none}
  .theme-menu summary{width:44px;height:44px}
  .language-wrap select{min-width:56px}
  .year-wrap select{max-width:88px}
  .page-heading.with-art{grid-template-columns:minmax(0,1fr) 90px;gap:12px}
  .page-heading.with-art .heading-art{max-height:100px}
}
@media(max-width:430px){.mobile-brand strong{display:none}.theme-options{right:-70px}}
