:root {
  color-scheme: light;
  --bg: #fff; --panel: #fff; --panel2: #f6faff; --line: #dce6f6; --text: #111d36;
  --muted: #506078; --cyan: #184ac6; --blue: #1856dc; --green: #2453a6;
  --orange: #a7641b; --red: #943433; --r: 12px;
}
body { background: #fff; font-family: "Aptos","Segoe UI",system-ui,sans-serif; }
.app { display: block; min-height: 0; max-width: 1300px; }
.sidebar { position: static; display: block; padding: 8px clamp(8px,2vw,19px); border: 0; border-bottom: 1px solid var(--line); background: #f6f9ff; }
.sidebar .brand, .navlabel, .sidefoot, .mobilelogo { display: none; }
nav { display: flex; column-gap: 5px; overflow-x: auto; scrollbar-width: thin; }
.nav { flex-shrink: 0; padding: 7px 9px; white-space: nowrap; }
.nav.active { background: #e6efff; border-color: #d5e5fb; color: #1743ad; }
main { padding: 16px clamp(8px,2vw,19px); }
.topbar { margin-bottom: 12px; }
h1 { font-weight: 750; }
button, input, select, textarea { background: #fff; color: var(--text); border-color: #ccd9ee; }
button:hover { background: #edf4ff; }
button.primary { background: #1653da; color: #fff; }
button.primary:hover { background: #143fb1; }
input::placeholder, textarea::placeholder { color: #5e6f8b; }
.status { color: #23499b; border-color: #d4e1f6; background: #edf4ff; }
.hero { padding: 16px; margin-bottom: 14px; background: #edf5ff; border-color: #d9e8fc; }
.hero:after { border-color: #c7ddff; box-shadow: none; }
.hero p, .quickhint { color: var(--muted); }
.stats { margin-bottom: 14px; }
.stat { background: #f9fbff; }
.day { background: #fff; border-color: #e1e9f8; }
.day:hover { background: #edf4ff; border-color: #9abaf0; }
.day.today .num { color: #fff; }
.day.selected { box-shadow: inset 0 0 0 1px #bdd4fc; background: #f4f8ff; }
.pill { color: #19478f; border-color: #3e71dd; background: #e4efff; }
.pill[data-cat="Salute"] { color: #21564a; border-color: #42967e; background: #e6f4f2; }
.pill[data-cat="Finanze"] { color: #784b14; border-color: #c1833c; background: #fff1da; }
.pill[data-cat="Lavoro"] { color: #30479b; border-color: #627cdc; background: #e9edff; }
.pill[data-cat="Famiglia"] { color: #694782; border-color: #b380c7; background: #f4eefa; }
.progress { background: #e3ecf9; }
.lifegrid i { background: #e2ebfb; }
.lifegrid i.past { background: #2863da; }
.toast { color: #163f86; border-color: #bcd4f9; background: #edf5ff; box-shadow: 0 8px 26px #1e3c7029; }
dialog { background: #fff; border-color: #cfddf5; }
dialog::backdrop { background: #13264694; backdrop-filter: none; }
.tag { border-color: #bfd2f3; }
.sponsors { display: none; }
@media (max-width: 660px) {
  .sidebar { position: static; }
  .topbar .actions { justify-content: flex-end; }
  .topbar h1 { font-size: 1.28rem; }
}

