/* Alternância de tema claro/escuro — referência: tema escuro do Gestão La Serrana */
.theme-toggle{display:inline-flex;align-items:center;gap:8px;border:1px solid #bed1c3;background:#fff;color:#205b40;border-radius:10px;padding:8px 12px;font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.theme-toggle:hover{filter:brightness(.95)}
.theme-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.header-right{display:flex;align-items:center;gap:14px}
@media(max-width:520px){.theme-toggle span{display:none}}
@media screen{
:root[data-theme="dark"]{color-scheme:dark;color:#e6efe9;background:#0d1914}
[data-theme="dark"] body{background:#0d1914;color:#e6efe9}
[data-theme="dark"] .property-brand img{border-radius:12px;box-shadow:0 0 0 1px #2a3f35}
[data-theme="dark"] header{background:#101f19;color:#e6efe9;border-bottom:1px solid #2a3f35}
[data-theme="dark"] .property-brand strong{color:#c98f6e}
[data-theme="dark"] .property-brand small,[data-theme="dark"] .season,[data-theme="dark"] .cloud-status{color:#9bb5a8}
[data-theme="dark"] .cloud-status[data-state="ok"]{color:#4fc08d}
[data-theme="dark"] .cloud-status[data-state="error"]{color:#ee8a82}
[data-theme="dark"] .theme-toggle{background:#16271f;border-color:#2a3f35;color:#e6efe9}
[data-theme="dark"] .eyebrow{color:#d49a78}
[data-theme="dark"] .muted,[data-theme="dark"] .hint,[data-theme="dark"] .stat label,[data-theme="dark"] .stat small,[data-theme="dark"] .item small,[data-theme="dark"] .substats,[data-theme="dark"] .empty,[data-theme="dark"] .history-entry time,[data-theme="dark"] .history-entry small{color:#9bb5a8}
[data-theme="dark"] .substats strong,[data-theme="dark"] .history-summary strong{color:#e6efe9}
[data-theme="dark"] .card{background:#14241d;border-color:#2a3f35;box-shadow:0 5px 22px #0006}
[data-theme="dark"] .plot{background:#192b23;border-color:#2a3f35}
[data-theme="dark"] .plot-meta,[data-theme="dark"] .item,[data-theme="dark"] .history-entry{border-color:#2a3f35}
[data-theme="dark"] .plot[data-open-plot-id]:hover,[data-theme="dark"] .plot[data-open-plot-id]:focus-visible{border-color:#2f8f6b;box-shadow:0 0 0 3px #2f8f6b44}
[data-theme="dark"] .empty{border-color:#35503f}
[data-theme="dark"] .btn{background:#2a8a64;color:#fff}
[data-theme="dark"] .btn.secondary{background:#16271f;color:#9fe0c0;border:1px solid #2a3f35}
[data-theme="dark"] .print-btn,[data-theme="dark"] .report-toolbar .btn.secondary{background:#2a8a64;color:#fff;border-color:#2a8a64}
[data-theme="dark"] input,[data-theme="dark"] select{background:#0f1c16;color:#e6efe9;border-color:#35503f}
[data-theme="dark"] input:disabled{background:#16271f;color:#9bb5a8}
[data-theme="dark"] .tag.green{background:#173a2b;color:#6fd3a0}
[data-theme="dark"] .tag.yellow{background:#3d3214;color:#e8bd5b}
[data-theme="dark"] .tag.red{background:#431f1d;color:#f0908a}
[data-theme="dark"] .tag.gray{background:#223229;color:#9bb5a8}
[data-theme="dark"] .danger,[data-theme="dark"] .row-actions .remove{color:#ee8a82}
[data-theme="dark"] .row-actions .edit{color:#6fd3a0}
[data-theme="dark"] dialog{background:#14241d;color:#e6efe9;border:1px solid #2a3f35}
[data-theme="dark"] dialog::backdrop{background:#030a07cc}
[data-theme="dark"] .close{background:#223229;color:#e6efe9}
[data-theme="dark"] .history-summary div{background:#192b23;color:#9bb5a8}
[data-theme="dark"] .history-type{background:#173a2b;color:#6fd3a0}
[data-theme="dark"] .toast{background:#2a8a64}
}
