/* V4.10.36 — tema chiaro/scuro globale */
html[data-theme="dark"]{color-scheme:only light}
html[data-theme="light"]{color-scheme:only light}
html[data-theme="light"],body[data-theme="light"]{
 --bg:#f4f6f9;
 --panel:#ffffff;
 --panel2:#edf1f6;
 --line:#d3dbe5;
 --red:#d60c27;
 --rhover:#af0b22;
 --white:#11161d;
 --mute:#54606e;
 --danger:#c6243b;
 --text:#11161d;
 --muted:#5a6675;
 --shade:#e8edf3;
 background:var(--bg);
 color:var(--white);
}
body[data-theme="light"]{background:var(--bg);color:var(--white)}
body[data-theme="light"] a{color:#b20d24}
body[data-theme="light"] .brandbar,
body[data-theme="light"] .top,
body[data-theme="light"] .rosa-section-nav{background:#ffffff;border-color:var(--line)}
body[data-theme="light"] .brand h1 span,
body[data-theme="light"] .brand-title span{color:var(--red)}
body[data-theme="light"] .brand p,
body[data-theme="light"] .brand-subtitle,
body[data-theme="light"] .account .who,
body[data-theme="light"] .muted,
body[data-theme="light"] .small,
body[data-theme="light"] .tiny,
body[data-theme="light"] small{color:var(--mute)}
body[data-theme="light"] .surface,
body[data-theme="light"] .card,
body[data-theme="light"] .desktop-dashboard,
body[data-theme="light"] .panel,
body[data-theme="light"] .modal,
body[data-theme="light"] .login-panel,
body[data-theme="light"] .warning,
body[data-theme="light"] .status,
body[data-theme="light"] .navchildren,
body[data-theme="light"] .inline-organizer,
body[data-theme="light"] .notice,
body[data-theme="light"] .home-expanded-group,
body[data-theme="light"] .group-manage-panel,
body[data-theme="light"] .import-picker,
body[data-theme="light"] .import-workspace,
body[data-theme="light"] .calendar,
body[data-theme="light"] .filebox,
body[data-theme="light"] .login-box,
body[data-theme="light"] .empty,
body[data-theme="light"] .editcard,
body[data-theme="light"] .editor-step,
body[data-theme="light"] .tree-box,
body[data-theme="light"] dialog,
body[data-theme="light"] .guide-text,
body[data-theme="light"] .birthday-entry,
body[data-theme="light"] .suggestion-entry,
body[data-theme="light"] .anniversary-form,
body[data-theme="light"] .suggestion-form{background:var(--panel)!important;border-color:var(--line)!important;color:var(--white)}
body[data-theme="light"] input,
body[data-theme="light"] textarea,
body[data-theme="light"] select,
body[data-theme="light"] .search-field,
body[data-theme="light"] .scope-search .scope-input{background:var(--panel2)!important;border-color:#bcc7d4!important;color:var(--white)!important}
body[data-theme="light"] input::placeholder,
body[data-theme="light"] textarea::placeholder{color:#738093}
body[data-theme="light"] label{color:#1e2630}
body[data-theme="light"] .secondary,
body[data-theme="light"] .quiet,
body[data-theme="light"] .button.secondary,
body[data-theme="light"] .button.subtle,
body[data-theme="light"] .navitem,
body[data-theme="light"] .editline,
body[data-theme="light"] .miniasset,
body[data-theme="light"] .choice,
body[data-theme="light"] .question,
body[data-theme="light"] .member,
body[data-theme="light"] .shift-code,
body[data-theme="light"] .import-item,
body[data-theme="light"] .attachment,
body[data-theme="light"] .contact-send-options,
body[data-theme="light"] .group-procedure-row,
body[data-theme="light"] .group-icon-choice,
body[data-theme="light"] .import-stats>div,
body[data-theme="light"] .cal-day,
body[data-theme="light"] .shift{background:var(--panel2)!important;border-color:#c6d0dc!important;color:var(--white)!important}
body[data-theme="light"] .primary,
body[data-theme="light"] .button.primary{background:var(--red)!important;border-color:var(--red)!important;color:#fff!important}
body[data-theme="light"] .secondary:hover,
body[data-theme="light"] .quiet:hover,
body[data-theme="light"] .button.secondary:hover,
body[data-theme="light"] .button.subtle:hover,
body[data-theme="light"] .navitem:hover,
body[data-theme="light"] .home-tile-action:hover{background:#e7edf5!important}
body[data-theme="light"] .navitem.active{background:#fdecef!important;border-left-color:var(--red)!important}
body[data-theme="light"] .search-list{background:#fff;border-color:var(--line)}
body[data-theme="light"] .search-entry{color:var(--white);border-bottom-color:var(--line)}
body[data-theme="light"] .search-entry:hover,
body[data-theme="light"] .search-entry:focus{background:#f9e8eb}
body[data-theme="light"] .home-tile{background:linear-gradient(145deg,#ffffff,#edf1f6)!important;border-color:#c9d2dd!important}
body[data-theme="light"] .home-function-icon{stroke:#1e2630}
body[data-theme="light"] .home-function-icon .accent{stroke:var(--red)}
body[data-theme="light"] .home-accent-planner{background:radial-gradient(circle at 50% 34%,rgba(219,172,58,.20),rgba(219,172,58,.08) 28%,rgba(255,255,255,.98) 70%),linear-gradient(145deg,#fffdf7,#edf1f6)!important}
body[data-theme="light"] .home-accent-calendar{background:radial-gradient(circle at 50% 34%,rgba(56,190,240,.22),rgba(56,190,240,.08) 28%,rgba(255,255,255,.98) 70%),linear-gradient(145deg,#f7fdff,#edf1f6)!important}
body[data-theme="light"] .tag{background:#fdecef;border-color:#efb1ba;color:#912233}
body[data-theme="light"] .savebar{background:rgba(255,255,255,.96);border-top-color:var(--line)}
body[data-theme="light"] .version-tag,
body[data-theme="light"] .brand-version-chip{background:#fff;border-color:#cfd7e2;color:#223040}
body[data-theme="light"] .desktop-home-stage{background:linear-gradient(180deg,#ffffff,#f0f4f8)}

/* V4.10.40 — Evidenziazione più visibile delle card speciali in tema chiaro.
   SOLO colore: geometria, spaziature, testo, comportamento e icone invariati. */
body[data-theme="light"] .home-item.home-tile.home-accent-planner{
  border:2px solid #ce9412!important;
  background:
    radial-gradient(ellipse 130% 88% at 50% -23%,rgba(246,175,18,.50),rgba(250,195,64,.24) 42%,transparent 78%),
    radial-gradient(ellipse 126% 84% at 50% 126%,rgba(248,173,20,.45),rgba(249,201,72,.20) 39%,transparent 81%),
    linear-gradient(90deg,rgba(244,184,35,.33),rgba(255,255,255,.97) 22%,rgba(255,255,255,.97) 78%,rgba(244,184,35,.29)),
    #ffffff!important;
  box-shadow:0 0 0 1px rgba(173,113,0,.20),0 0 25px rgba(221,152,9,.42),
             inset 0 0 0 2px rgba(246,179,37,.21),inset 0 0 28px rgba(244,180,32,.15)!important;
}
body[data-theme="light"] .home-item.home-tile.home-accent-calendar{
  border:2px solid #069dcf!important;
  background:
    radial-gradient(ellipse 130% 88% at 50% -23%,rgba(10,184,236,.47),rgba(89,204,248,.22) 42%,transparent 78%),
    radial-gradient(ellipse 126% 84% at 50% 126%,rgba(12,175,236,.44),rgba(89,209,251,.18) 39%,transparent 81%),
    linear-gradient(90deg,rgba(12,170,228,.30),rgba(255,255,255,.97) 22%,rgba(255,255,255,.97) 78%,rgba(12,170,228,.25)),
    #ffffff!important;
  box-shadow:0 0 0 1px rgba(0,105,168,.20),0 0 25px rgba(0,167,221,.39),
             inset 0 0 0 2px rgba(15,173,227,.18),inset 0 0 28px rgba(16,190,241,.13)!important;
}
body[data-theme="light"] .home-item.home-tile:is(.home-accent-planner,.home-accent-calendar) .home-tile-label{
 color:#18202a!important;
}
body[data-theme="light"] .home-item.home-tile.home-accent-planner:hover{
 border-color:#bd8000!important;
 box-shadow:0 0 0 1px rgba(173,113,0,.25),0 0 33px rgba(224,158,5,.50),inset 0 0 29px rgba(245,181,36,.18)!important;
}
body[data-theme="light"] .home-item.home-tile.home-accent-calendar:hover{
 border-color:#087da9!important;
 box-shadow:0 0 0 1px rgba(0,105,168,.25),0 0 33px rgba(4,173,224,.48),inset 0 0 29px rgba(21,175,242,.15)!important;
}
