.brand{min-width:300px;font-weight:700;letter-spacing:.02em}.brand-logo{width:68px;height:42px;background:#fff;border:1px solid #e5e7eb;border-radius:9px;padding:5px;display:grid;place-items:center;box-shadow:0 1px 3px rgba(0,0,0,.08)}.brand-logo img{width:100%;height:100%;object-fit:contain}.theme-btn{display:grid;place-items:center}.theme-icon{width:18px;height:18px;border:2px solid currentColor;border-radius:50%;position:relative;display:block}.theme-icon:after{content:"";position:absolute;inset:-5px;border:2px dotted currentColor;border-radius:50%}[data-theme="dark"] .theme-icon{background:#f8d568;border-color:#f8d568;color:#f8d568}[data-theme="light"] .theme-icon{box-shadow:inset -5px -4px 0 #fff;background:#5f6368;border-color:#5f6368}
[data-theme="dark"]{color-scheme:dark;--ink:#e8eaed;--muted:#bdc1c6;--line:#3c4043;--surface:#202124;--soft:#171717;--shadow:0 2px 12px rgba(0,0,0,.5)}
[data-theme="dark"] body,[data-theme="dark"] .topbar,[data-theme="dark"] .sidebar,[data-theme="dark"] .calendar-card,[data-theme="dark"] .metric,[data-theme="dark"] .view-menu,[data-theme="dark"] .modal,[data-theme="dark"] .event-popover{background:#202124;color:#e8eaed}
[data-theme="dark"] .topbar,[data-theme="dark"] .sidebar,[data-theme="dark"] .calendar-card,[data-theme="dark"] .month-head,[data-theme="dark"] .day-cell,[data-theme="dark"] .week-day,[data-theme="dark"] .week-corner,[data-theme="dark"] .agenda-day,[data-theme="dark"] .recurring-table th,[data-theme="dark"] .recurring-table td{border-color:#3c4043}
[data-theme="dark"] .main-content{background:#171717}[data-theme="dark"] .today-btn,[data-theme="dark"] .view-btn,[data-theme="dark"] .create-btn,[data-theme="dark"] .secondary{background:#292a2d;color:#e8eaed;border-color:#5f6368}[data-theme="dark"] .today-btn:hover,[data-theme="dark"] .view-btn:hover,[data-theme="dark"] .icon-btn:hover,[data-theme="dark"] .view-menu button:hover,[data-theme="dark"] .mini-grid button:hover{background:#3c4043}
[data-theme="dark"] .topbar h1,[data-theme="dark"] .brand,[data-theme="dark"] .icon-btn,[data-theme="dark"] .mini-head button,[data-theme="dark"] .view-menu button{color:#e8eaed}[data-theme="dark"] .metric{border-color:#3c4043}[data-theme="dark"] .metric .metric-icon{background:#26364f;color:#8ab4f8}[data-theme="dark"] .metric small,[data-theme="dark"] .search-label,[data-theme="dark"] .month-head div,[data-theme="dark"] .week-day strong,[data-theme="dark"] .agenda-date span,[data-theme="dark"] .modal p,[data-theme="dark"] .event-popover dt,[data-theme="dark"] .recurring-view>p,[data-theme="dark"] .recurring-table th{color:#bdc1c6}
[data-theme="dark"] .search-box,[data-theme="dark"] .required-fields,[data-theme="dark"] .recurring-empty{background:#303134}[data-theme="dark"] .search-box input,[data-theme="dark"] .modal input{color:#e8eaed}[data-theme="dark"] .modal input{background:#292a2d;border-color:#5f6368}[data-theme="dark"] .day-cell.outside{background:#262626;color:#80868b}[data-theme="dark"] .week-day,[data-theme="dark"] .week-corner{background:#202124}[data-theme="dark"] .time-col,[data-theme="dark"] .week-col{background:repeating-linear-gradient(to bottom,#202124 0,#202124 44px,#3c4043 45px)}
[data-theme="dark"] .event.status-pendente{background:#253a5a;color:#aecbfa}[data-theme="dark"] .event.status-realizada{background:#244b38;color:#81c995}[data-theme="dark"] .event.status-parcial{background:#5f4b14;color:#fdd663}[data-theme="dark"] .event.status-atrasada,[data-theme="dark"] .event.unplanned{background:#5b2525!important;color:#f6aea9!important}[data-theme="dark"] .recurring-table tr.unplanned-row{background:#4a2020}[data-theme="dark"] .day-pill{background:#26364f;color:#8ab4f8}[data-theme="dark"] .recurring-help{background:#594b1a;color:#fdd663}[data-theme="dark"] .required-fields span{background:#26364f;color:#aecbfa}

/* Tema escuro inspirado no Google Planilhas */
[data-theme="dark"]{--blue:#34a853;--blue2:#81c995;--green:#34a853;--ink:#e8eaed;--muted:#9aa0a6;--line:#3c4043;--surface:#202124;--soft:#171717;--shadow:0 4px 18px rgba(0,0,0,.45)}
[data-theme="dark"] body{background:#171717}
[data-theme="dark"] .topbar{background:#292a2d;border-bottom-color:#3c4043;box-shadow:0 1px 0 #111}
[data-theme="dark"] .sidebar{background:#202124;border-right-color:#3c4043}
[data-theme="dark"] .main-content{background:#171717}
[data-theme="dark"] .calendar-card,[data-theme="dark"] .metric{background:#202124;border-color:#3c4043;border-radius:8px}
[data-theme="dark"] .metric .metric-icon{background:#1f4f36;color:#81c995}
[data-theme="dark"] .primary,[data-theme="dark"] .primary-create{background:#34a853;color:#fff}
[data-theme="dark"] .primary:hover,[data-theme="dark"] .primary-create:hover{background:#2d9348}
[data-theme="dark"] .plus{color:#fff}
[data-theme="dark"] .today-btn,[data-theme="dark"] .view-btn,[data-theme="dark"] .secondary{background:#292a2d;color:#e8eaed;border-color:#5f6368}
[data-theme="dark"] .today-btn:hover,[data-theme="dark"] .view-btn:hover,[data-theme="dark"] .icon-btn:hover,[data-theme="dark"] .user-chip:hover{background:#3c4043}
[data-theme="dark"] .search-box{background:#303134;border:1px solid #3c4043}
[data-theme="dark"] .search-box:focus-within{border-color:#81c995;box-shadow:0 0 0 1px #81c995}
[data-theme="dark"] .section-title button,[data-theme="dark"] .demo-access,[data-theme="dark"] .auth-tabs button.active{color:#81c995}
[data-theme="dark"] .contract-filters input{accent-color:#34a853}
[data-theme="dark"] .mini-grid .today,[data-theme="dark"] .day-cell.today .day-number,[data-theme="dark"] .week-day.today span{background:#34a853;color:#fff}
[data-theme="dark"] .mini-grid .selected:not(.today),[data-theme="dark"] .day-cell.selected .day-number{background:#1f4f36;color:#b7e1cd}
[data-theme="dark"] .month-head{background:#292a2d}
[data-theme="dark"] .month-head div{color:#bdc1c6}
[data-theme="dark"] .day-cell{background:#202124;border-color:#3c4043}
[data-theme="dark"] .day-cell:hover{background:#242528}
[data-theme="dark"] .day-cell.outside{background:#1b1b1b;color:#6f7479}
[data-theme="dark"] .view-menu,[data-theme="dark"] .modal,[data-theme="dark"] .event-popover{background:#292a2d;border:1px solid #4a4d51}
[data-theme="dark"] .view-menu button:hover{background:#3c4043}
[data-theme="dark"] .activity-modal input,[data-theme="dark"] .activity-modal select,[data-theme="dark"] .activity-modal textarea,[data-theme="dark"] .auth-form input,[data-theme="dark"] .modal input{background:#202124;color:#e8eaed;border-color:#5f6368}
[data-theme="dark"] .activity-modal input:focus,[data-theme="dark"] .activity-modal select:focus,[data-theme="dark"] .activity-modal textarea:focus,[data-theme="dark"] .auth-form input:focus,[data-theme="dark"] .modal input:focus{border-color:#81c995;box-shadow:0 0 0 1px #81c995}
[data-theme="dark"] .auth-tabs button.active{border-bottom-color:#34a853}
[data-theme="dark"] .history-avatar{background:#1f4f36;color:#b7e1cd}
[data-theme="dark"] .loading{background:rgba(23,23,23,.78)}
[data-theme="dark"] .loading span{border-color:#3c4043;border-top-color:#34a853}
[data-theme="dark"] .event.status-realizada{background:#1f4f36;color:#b7e1cd;border-left-color:#34a853}
[data-theme="dark"] .event.status-realizada .event-dot{background:#34a853}
[data-theme="dark"] .brand-logo{border-color:#5f6368;box-shadow:none}
@media(max-width:900px){.brand{min-width:auto}.brand-logo{width:55px;height:38px}.brand span:last-child{display:none}}
