/* Variáveis semânticas de tema e cor. Estados de erro, sucesso e aluguel preservados. */
:root {
 --mf-primary:#087d6c;--mf-primary-hover:#066857;--mf-focus:#109b8844;--mf-soft:#e1f7f2;
 --mf-bg:#f5f7fb;--mf-panel:#fff;--mf-inset:#f7f9fc;--mf-input:#fff;
 --mf-text:#22314b;--mf-title:#142640;--mf-muted:#6c8097;--mf-border:#e4ebf3;
 --mf-side:#10213e;--mf-hover:#edf8f5;
}
:root[data-accent=blue]{--mf-primary:#215bb0;--mf-primary-hover:#174783;--mf-focus:#2563b844;--mf-soft:#e6efff;--mf-hover:#edf3ff}
:root[data-accent=red]{--mf-primary:#b02940;--mf-primary-hover:#8e2035;--mf-focus:#b62f4344;--mf-soft:#fce8ec;--mf-hover:#fff0f2}
:root[data-theme=dark]{--mf-bg:#101725;--mf-panel:#19263a;--mf-inset:#243248;--mf-input:#18283d;--mf-text:#e6eef9;--mf-title:#fff;--mf-muted:#aec0d4;--mf-border:#34465f;--mf-side:#0d1929;--mf-hover:#243c44;--mf-primary:#41d0b5;--mf-primary-hover:#66e4cc;--mf-focus:#41d0b544;--mf-soft:#204a45}
:root[data-theme=dark][data-accent=blue]{--mf-primary:#8eb7ff;--mf-primary-hover:#b0ceff;--mf-focus:#8eb7ff44;--mf-soft:#243d66;--mf-hover:#233c63}
:root[data-theme=dark][data-accent=red]{--mf-primary:#ff94a4;--mf-primary-hover:#ffc0ca;--mf-focus:#ff94a444;--mf-soft:#533443;--mf-hover:#482e3b}
html,html body{background:var(--mf-bg);color:var(--mf-text)}
.sidebar{background:var(--mf-side)}
.brand-mark,.day.today .day-header b{background:var(--mf-primary);color:#072332}
.nav-item.active{box-shadow:inset 3px 0 var(--mf-primary)}
.user-bubble{color:var(--mf-primary)}
.topbar h1,.panel-title,.stat .value,.date-span,.vehicle-card h3,.mf-config-card h2,.mf-config-card h3{color:var(--mf-title)}
.local-chip{background:var(--mf-soft);color:var(--mf-primary)}
.pulse{background:var(--mf-primary)}
.btn-primary{background:var(--mf-primary);border-color:var(--mf-primary);color:#fff;box-shadow:0 5px 12px var(--mf-focus)}
[data-theme=dark] .btn-primary{color:#092034}
.btn-primary:hover{background:var(--mf-primary-hover);border-color:var(--mf-primary-hover)}
.btn:not(.btn-primary):not(.btn-danger):not(.btn-dark):not(.btn-tutorial){background:var(--mf-panel);color:var(--mf-title);border-color:var(--mf-border)}
.btn-ghost{background:var(--mf-inset)!important}
.panel,.stat,.vehicle-card,.intro,.event,.day,.modal,.search,.mobile-nav,.mf-config-card{background:var(--mf-panel);border-color:var(--mf-border);color:var(--mf-text)}
.stat-top,.stat .hint,.event-info small,.info-box small,.vehicle-card p,.intro p,.summary-note,.eyebrow,.field .help,.workspace-footer,.empty,.empty p,.mf-helptext{color:var(--mf-muted)}
.stat .value,.event-info b,.event-time,.info-box b,.modal-head h2,.section-row h2,.toolbar h2,.vehicle-data b,.modal-section,.empty b{color:var(--mf-title)}
.stat-icon:not(.blue):not(.orange):not(.red),.empty-icon,.vehicle-symbol{background:var(--mf-soft);color:var(--mf-primary)}
.table th{background:var(--mf-inset);color:var(--mf-muted)}
.table td,.day-header,.modal-head{border-color:var(--mf-border)}
.table tbody tr:hover,.event:hover{background:var(--mf-hover)}
.field label{color:var(--mf-text)}
.field input,.field select,.field textarea,.select,.search,.search input,.settings-btn{background:var(--mf-input);border-color:var(--mf-border);color:var(--mf-text)}
.field input:focus,.field select:focus,.field textarea:focus,.search:focus-within,.select:focus{border-color:var(--mf-primary);box-shadow:0 0 0 3px var(--mf-focus)}
.field input::placeholder,.search input::placeholder{color:var(--mf-muted)}
.info-box{background:var(--mf-inset);border-color:var(--mf-border)}
.mobile-item.active{color:var(--mf-primary)}
.settings-btn:hover{background:var(--mf-hover)}
.event-line{background:var(--mf-primary)}
.day.today{border-color:var(--mf-primary);background:var(--mf-hover)}
.day-header b{color:var(--mf-title)}
.week-event:not(.return):not(.late){border-left-color:var(--mf-primary)}
.whatsapp-link{color:#108874} /* marca do WhatsApp não muda por preferência */
[data-theme=dark] .whatsapp-link{color:#7ae0b7}
[data-theme=dark] .pill.available{color:#96e8d0;background:#154239}
[data-theme=dark] .pill.active{color:#acd4ff;background:#1f3b5b}
[data-theme=dark] .pill.reserved{color:#ffdc9f;background:#4e3824}
[data-theme=dark] .pill.done,[data-theme=dark] .pill.canceled{color:#cfdaeb;background:#334056}
[data-theme=dark] .pill.late{color:#ffb8c0;background:#632d39}
[data-theme=dark] .pill.maintenance{color:#decaff;background:#413453}
[data-theme=dark] .week-event:not(.return):not(.late){color:#c8e8ff;background:#25415a}
[data-theme=dark] .week-event.return{color:#ffdaa8;background:#493928}
[data-theme=dark] .week-event.late{color:#ffc0c9;background:#512d3a}
[data-theme=dark] .notice{color:#ffdda6;background:#4b3a25;border-color:#685331}
[data-theme=dark] .tips{color:#c3e2e1;background:#1d3943;border-color:#375969}
[data-theme=dark] .btn-danger{color:#ffb9c3;background:#4a2b35;border-color:#7b4350}
[data-theme=dark] .toast{color:#fff;background:#263f5d}
[data-theme=dark] .toast.bad{background:#a4434b}
[data-theme=dark] .mf-window,[data-theme=dark] .mf-tip,[data-theme=dark] .mf-resume{background:var(--mf-panel);color:var(--mf-title);border-color:var(--mf-border)}
[data-theme=dark] .mf-window h2,[data-theme=dark] .mf-tip-title,[data-theme=dark] .mf-counts b{color:var(--mf-title)}
[data-theme=dark] .mf-window p,[data-theme=dark] .mf-tip p,[data-theme=dark] .mf-guides p{color:var(--mf-muted)}
[data-theme=dark] .mf-checklist div{color:var(--mf-text)}
[data-theme=dark] .mf-checklist b,[data-theme=dark] .mf-counts div{background:var(--mf-inset);color:var(--mf-primary)}
[data-theme=dark] .mf-booking-summary{background:var(--mf-inset);color:var(--mf-text)}
[data-theme=dark] .mf-form-coach{background:#203c40;color:#d1f1ea;border-color:#355e61}
[data-theme=dark] .mf-form-coach p{color:#d1f1ea}
.mf-kicker,.mf-step-counter,.mf-form-coach .mf-coach-dynamic,.mf-booking-summary strong{color:var(--mf-primary)}
.mf-progress span.filled{background:var(--mf-primary)}
.mf-highlight{outline-color:var(--mf-primary)!important;box-shadow:0 0 0 8px var(--mf-focus)}
.mf-focus-frame{border-color:var(--mf-primary)}
.mf-guides p{border-left-color:var(--mf-primary)}
/* Configurações */
.mf-config-grid{display:grid;gap:18px;max-width:1050px;margin:auto}
.mf-config-card{border:1px solid var(--mf-border);background:var(--mf-panel);border-radius:17px;overflow:hidden;box-shadow:0 6px 26px #0e20300a}
.mf-config-header{padding:20px 24px;display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--mf-border)}
.mf-config-header h2{font:800 17px Manrope,system-ui;margin:0 0 5px}
.mf-config-header p,.mf-helptext{font-size:12px;line-height:1.65;color:var(--mf-muted);margin:0}
.mf-config-icon{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:12px;background:var(--mf-soft);color:var(--mf-primary);font-size:22px;font-weight:900}
.mf-config-body{padding:21px 24px 23px}
.mf-config-body h3{font-size:13px;margin:0 0 12px;font-weight:800}
.mf-config-body h3:not(:first-child){margin-top:22px}
.mf-config-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.mf-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mf-choice,.mf-color-choice{border:1.5px solid var(--mf-border);border-radius:13px;background:var(--mf-inset);color:var(--mf-text);cursor:pointer;text-align:left;padding:11px;display:flex;gap:10px;align-items:center;min-width:0}
.mf-choice{flex-direction:column;align-items:stretch}
.mf-choice.selected,.mf-color-choice.selected{border-color:var(--mf-primary);box-shadow:0 0 0 2px var(--mf-focus)}
.mf-choice:focus-visible,.mf-color-choice:focus-visible,.mf-config-actions .btn:focus-visible{outline:3px solid var(--mf-primary);outline-offset:2px}
.mf-theme-preview{height:45px;border:1px solid #bfcedc;border-radius:8px;background:#f5f7fb;display:flex;align-items:flex-end;padding:7px;gap:5px}
.mf-theme-preview i{width:27%;height:60%;border-radius:4px;background:#b9cde2;display:block}
.mf-theme-preview i:nth-child(2){height:92%}.mf-theme-preview i:nth-child(3){height:43%}
.mf-theme-preview.dark{background:#172338;border-color:#4b6080}.mf-theme-preview.dark i{background:#3c5275}
.mf-theme-preview.auto{background:linear-gradient(90deg,#f5f7fb 50%,#172338 50%)}
.mf-theme-preview.auto i:nth-child(2),.mf-theme-preview.auto i:nth-child(3){background:#3c5275}
.mf-choice-copy{display:grid;gap:4px}.mf-choice-copy b{font-size:12px;color:var(--mf-title)}.mf-choice-copy small{font-size:10px;color:var(--mf-muted)}
.mf-check{display:none;align-self:flex-end;color:var(--mf-primary);font-size:15px;font-weight:900}.selected>.mf-check{display:block}
.mf-color-options{display:flex;gap:10px;flex-wrap:wrap}
.mf-color-choice{flex:1 1 120px;min-height:49px;justify-content:space-between;font-size:12px;font-weight:800}
.mf-swatch{width:24px;height:24px;flex:none;border:3px solid #fff;box-shadow:0 0 0 1px #64748b55;border-radius:50%}
.mf-swatch.green{background:#087d6c}.mf-swatch.blue{background:#215bb0}.mf-swatch.red{background:#b02940}
.mf-danger{border-color:#eebfc6}.mf-danger .mf-config-icon{background:#fff0f1;color:#b12b3e}
[data-theme=dark] .mf-danger{border-color:#764453}
.mf-about-info{display:grid;gap:9px;font-size:12px;color:var(--mf-muted)}.mf-about-info b{color:var(--mf-title)}
.mf-reset-list{line-height:1.65;font-size:12px;color:var(--mf-text)}
.mf-reset-list ul{padding-left:22px;line-height:1.8}
.mf-reset-list label{display:block;margin-top:15px;font-weight:800}
.mf-reset-list input{width:100%;padding:12px;margin-top:8px;border:1px solid var(--mf-border);background:var(--mf-input);color:var(--mf-text);border-radius:10px}
.mf-reset-list input:focus{border-color:var(--mf-primary);outline:3px solid var(--mf-focus)}
@media(max-width:700px){.mf-config-header{padding:17px 16px}.mf-config-body{padding:16px}.mf-theme-options{grid-template-columns:1fr}.mf-choice{flex-direction:row;align-items:center}.mf-theme-preview{flex:none;width:68px}.mf-choice-copy{flex:1}.mf-choice .mf-check{align-self:center}.mf-config-actions .btn{min-height:44px}}
@media(prefers-reduced-motion:reduce){.mf-config-card,.mf-choice,.mf-color-choice{transition:none}}
