:root { --theme-bg:#f5f1e8; --theme-panel:#fff; --theme-text:#202622; --theme-muted:#5e665f; --theme-line:#d9d5cd; }
:root[data-theme="dark"] { color-scheme:dark; --theme-bg:#121514; --theme-panel:#202622; --theme-text:#f2efe8; --theme-muted:#c0c5bf; --theme-line:#4a514b; --color-surface:18 21 20; --color-dark-text:242 239 232; --hex-surface:#121514; --hex-dark-text:#f2efe8; }
#leilancer-theme-toggle { position:fixed; left:max(12px,env(safe-area-inset-left)); bottom:max(12px,env(safe-area-inset-bottom)); z-index:1100; padding:10px 14px; border:1px solid #C49A50; border-radius:24px; background:var(--theme-panel); color:var(--theme-text); font:600 13px/1.4 system-ui,sans-serif; box-shadow:0 3px 15px #0003; cursor:pointer; min-height:44px; }
.lc-topbar #leilancer-theme-toggle { position:static; flex-shrink:0; white-space:nowrap; box-shadow:none; margin-left:auto; }
.lc-topbar > .flex-1 { min-width:0; }
@media (max-width:480px) { .lc-topbar #leilancer-theme-toggle { padding:8px; font-size:11px; } }
#leilancer-theme-toggle:focus-visible { outline:3px solid #C49A50; outline-offset:3px; }
html[data-theme="dark"] body { background-color:var(--theme-bg); color:var(--theme-text); }
html[data-theme="dark"] :is(.bg-white,.bg-gray-50,.bg-gray-100,.bg-zinc-50,.bg-zinc-100,.bg-surface,.card,.leilao-card,.calculadora-container,.calculadora-form,.resultado-container,.modal-content,.filter-sidebar,.filtros-container) { background-color:var(--theme-panel)!important; color:var(--theme-text); }
html[data-theme="dark"] :is([style*="background-color: rgb(255, 255, 255)"],[style*="background: rgb(255, 255, 255)"],[style*="background: #fff"],[style*="background-color: #fff"]) { background-color:var(--theme-panel)!important; color:var(--theme-text)!important; }
html[data-theme="dark"] :is(.text-dark-text,.text-gray-900,.text-gray-800,.text-gray-700,.text-zinc-900,.text-zinc-800,.text-zinc-700,.text-dark) { color:var(--theme-text)!important; }
html[data-theme="dark"] :is(.text-gray-600,.text-gray-500,.text-zinc-600,.text-zinc-500) { color:var(--theme-muted)!important; }
html[data-theme="dark"] :is(.border-gray-200,.border-gray-300,.border-zinc-200,.border-zinc-300) { border-color:var(--theme-line)!important; }
html[data-theme="dark"] :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),select,textarea) { background-color:var(--theme-panel)!important; color:var(--theme-text)!important; border-color:var(--theme-line)!important; }
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder { color:var(--theme-muted); }
html[data-theme="dark"] [class*="text-[#8A642C]"] { color:#dfba78!important; }
/* Fotos, vídeos, tiles, gráficos e capas preservam suas cores. */
html[data-theme="dark"] .leaflet-popup-content-wrapper,html[data-theme="dark"] .leaflet-popup-tip { background:var(--theme-panel); color:var(--theme-text); }
@media print { #leilancer-theme-toggle { display:none!important; } }

/* Superfícies e textos dos componentes existentes. */
html[data-theme="dark"] .breadcrumb{color:var(--theme-text)!important;background-color:var(--theme-panel)!important}
html[data-theme="dark"] .breadcrumb--compact{color:var(--theme-text)!important}
html[data-theme="dark"] .encerrar-leilao-btn{color:var(--theme-text)!important}
html[data-theme="dark"] .encerrar-leilao-btn:hover{color:var(--theme-text)!important}
html[data-theme="dark"] .encerrar-leilao-status{color:var(--theme-text)!important}
html[data-theme="dark"] .lg-gatilho{color:var(--theme-text)!important;background-color:var(--theme-panel)!important}
html[data-theme="dark"] .lg-dialog{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .lg-header p,html[data-theme="dark"] .lg-title p{color:var(--theme-text)!important}
html[data-theme="dark"] .lg-dialog button{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .lg-dialog a{color:var(--theme-text)!important}
html[data-theme="dark"] .lg-dialog label{color:var(--theme-text)!important}
html[data-theme="dark"] .lg-dialog input,html[data-theme="dark"] .lg-dialog textarea,html[data-theme="dark"] .lg-dialog select{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .lg-dialog small{color:var(--theme-text)!important}
html[data-theme="dark"] .lg-badge{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .lg-note{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .lg-alert{color:var(--theme-text)!important}
html[data-theme="dark"] .lg-footer{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .lg-overlay{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .leilao-card{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .titulo{color:var(--theme-text)!important}
html[data-theme="dark"] .endereco{color:var(--theme-text)!important}
html[data-theme="dark"] .avaliacao{color:var(--theme-text)!important}
html[data-theme="dark"] .avaliacao strong{color:var(--theme-text)!important}
html[data-theme="dark"] .favorito-btn:hover{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .icon-favorito{color:var(--theme-text)!important}
html[data-theme="dark"] .leilao-card-lista{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .preco{color:var(--theme-text)!important}
html[data-theme="dark"] .btn-fav{color:var(--theme-text)!important;background-color:var(--theme-panel)!important}
html[data-theme="dark"] .data{color:var(--theme-text)!important;background-color:var(--theme-panel)!important}
html[data-theme="dark"] .btn-trash{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .btn-trash:hover{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .lc-shell{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .lc-sidebar .bg-primary{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-topbar{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .lc-topbar input{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .lc-topbar svg{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-workspace{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .lc-workspace h1{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-workspace [class~="text-white"],html[data-theme="dark"] .lc-workspace [class~="text-white/80"]{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-workspace [class~="text-white/60"],html[data-theme="dark"] .lc-workspace [class~="text-white/70"],html[data-theme="dark"] .lc-workspace [class~="text-white/50"],html[data-theme="dark"] .lc-workspace [class~="text-white/40"]{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-workspace [class~="bg-dark"],html[data-theme="dark"] .lc-workspace [class~="bg-dark-deeper"]{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .lc-workspace .bg-primary,html[data-theme="dark"] .lc-workspace .bg-primary-hover{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-workspace .text-primary{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-primary{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-outline{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .lc-search input{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .lc-view-switch,html[data-theme="dark"] .lc-detail-tabs{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .lc-view-switch button,html[data-theme="dark"] .lc-detail-tabs button{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-view-switch button[aria-pressed=true],html[data-theme="dark"] .lc-detail-tabs button[aria-pressed=true]{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .lc-manager-filters{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .lc-filter-intro span,html[data-theme="dark"] .lc-filter-help{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-filter-range label{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-filter-grid input,html[data-theme="dark"] .lc-filter-grid select{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .lc-active-filters button{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .lc-manager-stats>div{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .lc-manager-stats span{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-selection-list,html[data-theme="dark"] .lc-detail{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .lc-list-caption{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-selection-table th{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .lc-row-active{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .lc-property-row:hover{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .lc-image-placeholder{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .lc-property-ref{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-property small{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-status-note{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-eyebrow{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-preliminary{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-muted{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-detail-values dt{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-estimate-note{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .lc-source-link{color:var(--theme-text)!important}
html[data-theme="dark"] .lc-empty{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .cad-shell{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .cad-form-panel{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .cad-step{color:var(--theme-text)!important}
html[data-theme="dark"] .cad-step b{color:var(--theme-text)!important;background-color:var(--theme-panel)!important}
html[data-theme="dark"] .cad-notice{color:var(--theme-text)!important}
html[data-theme="dark"] .cad-notice-icon{color:var(--theme-text)!important}
html[data-theme="dark"] .cad-field input{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .cad-primary{color:var(--theme-text)!important}
html[data-theme="dark"] .cad-secondary{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .cad-secondary:hover:not(:disabled){background-color:var(--theme-panel)!important}
html[data-theme="dark"] .cad-msg-ok{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .cad-page{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .calculadora-container{color:var(--theme-text)!important}
html[data-theme="dark"] .dropdown-item:hover{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .topo-box{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .bloco h4{color:var(--theme-text)!important}
html[data-theme="dark"] .bloco p{color:var(--theme-text)!important}
html[data-theme="dark"] .detalhamento{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .detalhamento h3{color:var(--theme-text)!important}
html[data-theme="dark"] .detalhamento li{color:var(--theme-text)!important}
html[data-theme="dark"] .favoritos-content-box{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .favoritos-header h1{color:var(--theme-text)!important}
html[data-theme="dark"] .tabela-favoritos th,html[data-theme="dark"] .tabela-favoritos td{color:var(--theme-text)!important}
html[data-theme="dark"] .tabela-favoritos th{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .tabela-favoritos tbody tr{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .tabela-favoritos tbody tr:hover{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .favoritos-vazio{color:var(--theme-text)!important}
html[data-theme="dark"] .tabela-favoritos tbody tr:nth-child(even){background-color:var(--theme-panel)!important}
html[data-theme="dark"] .tabela-favoritos tbody tr:nth-child(odd){background-color:var(--theme-panel)!important}
html[data-theme="dark"] .remover-favorito{color:var(--theme-text)!important}
html[data-theme="dark"] .btn-limpar-filtros{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .contador-resultados{color:var(--theme-text)!important}
html[data-theme="dark"] .leilao-detalhe-container{color:var(--theme-text)!important}
html[data-theme="dark"] .caixa-principal{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .linha-valor h2{color:var(--theme-text)!important}
html[data-theme="dark"] .linha-subinfo .label{color:var(--theme-text)!important}
html[data-theme="dark"] .linha-subinfo .valor{color:var(--theme-text)!important}
html[data-theme="dark"] .legal-section{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .legal-section p{color:var(--theme-text)!important}
html[data-theme="dark"] .linha-informativa .label{color:var(--theme-text)!important}
html[data-theme="dark"] .linha-informativa .valor{color:var(--theme-text)!important}
html[data-theme="dark"] .documentos-links a{color:var(--theme-text)!important}
html[data-theme="dark"] .modal-contato{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .modal-contato p{color:var(--theme-text)!important}
html[data-theme="dark"] .radio-group span,html[data-theme="dark"] .checkbox-group span{color:var(--theme-text)!important}
html[data-theme="dark"] .leiloes-container{color:var(--theme-text)!important}
html[data-theme="dark"] .recent-section h2{color:var(--theme-text)!important}
html[data-theme="dark"] .filtro-popup{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .btn-outline{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .loader{color:var(--theme-text)!important}
html[data-theme="dark"] .paginacao-modernizada button{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .sobre-section{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .sobre-section h2{color:var(--theme-text)!important}
html[data-theme="dark"] .sobre-section p{color:var(--theme-text)!important}
html[data-theme="dark"] .blog-section{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .blog-section h2{color:var(--theme-text)!important}
html[data-theme="dark"] .blog-post{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .blog-post p{color:var(--theme-text)!important}
html[data-theme="dark"] .blog-post a{color:var(--theme-text)!important}
html[data-theme="dark"] .btn.outlined{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .ordenar-dropdown{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .ordenar-item{color:var(--theme-text)!important}
html[data-theme="dark"] .modal-conteudo{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .modal-titulo{color:var(--theme-text)!important}
html[data-theme="dark"] .intro-text{color:var(--theme-text)!important}
html[data-theme="dark"] .intro-text h2{color:var(--theme-text)!important}
html[data-theme="dark"] .intro-text p{color:var(--theme-text)!important}
html[data-theme="dark"] .titulo-secao{color:var(--theme-text)!important}
html[data-theme="dark"] .login-container{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .login-box{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .login-form h2{color:var(--theme-text)!important}
html[data-theme="dark"] .google-btn{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .google-btn:hover{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .separator{color:var(--theme-text)!important}
html[data-theme="dark"] .leilancer-map-toggle{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .leilancer-map-toggle small{color:var(--theme-text)!important}
html[data-theme="dark"] .leilancer-map-legend{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .relatorios-table{background-color:var(--theme-panel)!important;color:var(--theme-text)!important}
html[data-theme="dark"] .sidebar-filtros{background-color:var(--theme-panel)!important}
html[data-theme="dark"] .sidebar-filtros h2{color:var(--theme-text)!important}
html[data-theme="dark"] .filtro-secao label{color:var(--theme-text)!important}
html[data-theme="dark"] :is([style*="color: rgb(37, 43, 40)"],[style*="color: rgb(102, 102, 102)"],[style*="color: rgb(101, 113, 105)"]){color:var(--theme-muted)!important}

/* Contraste da calculadora: fundos e textos tratados em conjunto. */
html[data-theme="dark"] .lc-calculator { --calc-raised:#2b332e; }
html[data-theme="dark"] .lc-calculator :is(.text-neutral-900,.text-neutral-800,.text-neutral-700,[class~="text-[#4b4f43]"]) { color:var(--theme-text)!important; }
html[data-theme="dark"] .lc-calculator :is(.text-neutral-600,.text-neutral-500,.text-neutral-400) { color:var(--theme-muted)!important; }
html[data-theme="dark"] .lc-calculator :is(.border-neutral-200,.border-neutral-300) { border-color:var(--theme-line)!important; }
html[data-theme="dark"] .lc-calculator :is(.bg-neutral-50,.bg-neutral-100,[class~="bg-white/70"]) { background-color:var(--calc-raised)!important; color:var(--theme-text)!important; }
html[data-theme="dark"] .lc-calculator .bg-blue-50 { background-color:#1d3040!important; color:#c7e0f4!important; }
html[data-theme="dark"] .lc-calculator .bg-indigo-50 { background-color:#2a2b43!important; color:#d4d5fa!important; }
html[data-theme="dark"] .lc-calculator .bg-green-50 { background-color:#203a2b!important; color:#b8e5c5!important; }
html[data-theme="dark"] .lc-calculator .bg-amber-50 { background-color:#3b3020!important; color:#f0d49d!important; }
html[data-theme="dark"] .lc-calculator .bg-red-50 { background-color:#40282b!important; color:#f4c1c6!important; }
html[data-theme="dark"] .lc-calculator :is(.text-blue-900,.text-blue-700,.text-blue-600) { color:#c7e0f4!important; }
html[data-theme="dark"] .lc-calculator :is(.text-indigo-900,.text-indigo-700,.text-indigo-600) { color:#d4d5fa!important; }
html[data-theme="dark"] .lc-calculator :is(.text-green-900,.text-green-700,.text-green-600) { color:#b8e5c5!important; }
html[data-theme="dark"] .lc-calculator :is(.text-amber-900,.text-amber-700,.text-amber-600) { color:#f0d49d!important; }
html[data-theme="dark"] .lc-calculator :is(.text-red-900,.text-red-700,.text-red-600) { color:#f4c1c6!important; }
html[data-theme="dark"] .lc-calculator input[type="range"] { accent-color:#C49A50; }
/* Ação de limpar filtros, sem alterar a cor de outros links. */
html[data-theme="dark"] .lc-clear-filters { color:#dfba78!important; text-decoration:underline; text-underline-offset:3px; }
html[data-theme="dark"] .lc-clear-filters:hover { color:#f2d9a8!important; }
html[data-theme="dark"] .lc-clear-filters:focus-visible { outline:2px solid #dfba78; outline-offset:3px; }

/* Ações sobre as fotos: base opaca para manter contraste em qualquer imagem. */
html[data-theme="dark"] .leilao-card .favorito-btn { background-color:#202622!important; border-color:#a6b0a8; box-shadow:0 2px 8px #0006; }
html[data-theme="dark"] .leilao-card .favorito-btn .icon-favorito { color:#f2efe8!important; }
html[data-theme="dark"] .leilao-card .favorito-btn[aria-pressed="true"] { border-color:#dfba78; }
html[data-theme="dark"] .leilao-card .favorito-btn[aria-pressed="true"] .icon-favorito { color:#dfba78!important; }
html[data-theme="dark"] .leilao-card .favorito-btn:hover { background-color:#354139!important; }
html[data-theme="dark"] .leilao-card .favorito-btn:focus-visible { outline:3px solid #dfba78; outline-offset:3px; }

/* Economia real: evita o gradiente claro sob textos do tema escuro. */
html[data-theme="dark"] .lc-calculator .bg-gradient-to-r.from-green-50.to-emerald-50 { background-image:none!important; background-color:#20382c!important; border-color:#587c63!important; }
html[data-theme="dark"] .lc-calculator .bg-gradient-to-r.from-green-50.to-emerald-50 :is(.text-green-700,.text-green-600) { color:#c4dfc8!important; }
html[data-theme="dark"] .lc-calculator .bg-gradient-to-r.from-green-50.to-emerald-50 .text-neutral-700 { color:#f2efe8!important; }
html[data-theme="dark"] .lc-calculator .bg-gradient-to-r.from-green-50.to-emerald-50 :is(.text-neutral-500,.text-neutral-600) { color:#c3ccc5!important; }

/* Avisos da investigação precisam permanecer legíveis no modo escuro. */
html[data-theme="dark"] .lg-alert { background-color:#402d20!important; border-color:#b28b60!important; color:#f4dfc7!important; }
html[data-theme="dark"] .lg-colar-print:focus-visible { outline:3px solid #dfba78; outline-offset:3px; }


/* Superfícies sólidas e hierarquia do tema escuro. */
html[data-theme="dark"] .leilao-card { background:#2b302e!important; border:1px solid #505b54!important; }
html[data-theme="dark"] .leilao-card .card-conteudo { background:#2b302e!important; }
html[data-theme="dark"] .leilao-card .btn-ver-analise { background:#202522!important; color:#f2efe8!important; }
html[data-theme="dark"] .leilao-card .btn-ver-analise:hover { background:#39443c!important; }
.leilao-card .favorito-btn { box-sizing:border-box!important; width:36px!important; height:36px!important; min-width:36px!important; min-height:36px!important; padding:0!important; flex:0 0 36px!important; border-radius:50%!important; display:flex; align-items:center; justify-content:center; }
.lc-data-encerramento { font-size:14px; font-weight:700; }
html[data-theme="dark"] .lc-calculator :is(.bg-white,.bg-surface,[class~="bg-white/70"],.rounded-lg.shadow,.rounded-xl.shadow) { background-color:#2b302e!important; border-color:#505b54!important; }
html[data-theme="dark"] .lc-calculator .lc-economia { background:#26342c!important; background-image:none!important; border-color:#68806f!important; }
html[data-theme="dark"] .lc-calculator .lc-economia :is(p,span,strong,small) { color:#f2efe8!important; }
html[data-theme="dark"] .lc-calculator .lc-economia :is(.text-xs,.text-sm) { color:#d5ddd7!important; }
.lg-colar-print.lg-arrastando { background:#f4e5c7!important; color:#30291d!important; border:2px dashed #C49A50!important; }
.lc-tools { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:12px 0; }
.lc-tools button,.lc-tools select,.lc-tools input { padding:8px 12px; border:1px solid #8a977f; border-radius:8px; }
.lc-comparacao { overflow-x:auto; margin:12px 0; }
.lc-comparacao table { width:100%; border-collapse:collapse; }
.lc-comparacao th,.lc-comparacao td { padding:10px; min-width:170px; border:1px solid #8a977f; text-align:left; vertical-align:top; }
.lc-status-card { padding:8px 12px; border:1px solid #8a977f; border-radius:8px; margin-bottom:6px; background:#f4f4ee; font-size:13px; }
html[data-theme="dark"] .lc-status-card { background:#2b302e; color:#f2efe8; }
html[data-theme="dark"] .lg-card { background:#2b302e!important; border-color:#505b54!important; }
.lc-card-grupo { display:flex; flex-direction:column; min-width:0; }
.lc-card-grupo > .leilao-card { height:auto; flex:1; }
.lc-card-grupo > small { color:var(--theme-muted,#5d635f); font-size:12px; line-height:1.4; }
.lc-tools button:disabled { opacity:.6; cursor:default; }
.lc-tools button:focus-visible,.lc-tools select:focus-visible,.lc-tools input:focus-visible { outline:3px solid #C49A50; outline-offset:2px; }

/* Controles secundários da escala de preço */
.lc-price-scale { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin:4px 0; color:#626961; font-size:11px; }
.lc-price-scale button { padding:3px 7px; border:1px solid #b9bdb6; border-radius:5px; background:#f0f1ee; color:#555d53; font-size:11px; line-height:1.5; }
.lc-price-scale small { font-size:10px; }
.lc-price-scale button:focus-visible { outline:2px solid #C49A50; outline-offset:2px; }
[data-theme="dark"] .lc-price-scale { color:#b5bcb6; }
[data-theme="dark"] .lc-price-scale button { background:#303632; border-color:#535d55; color:#c2c9c3; }

/* Contraste dos itens do menu de ordenação */
.lc-sort-option { color:#303630; border-radius:6px; }
.lc-sort-option-selected { background:#f0f1ee; }
.lc-sort-option:hover,.lc-sort-option:focus-within { background:#e8e2d5; color:#302b23; }
html[data-theme="dark"] .lc-sort-option { color:#f2efe8; }
html[data-theme="dark"] .lc-sort-option-selected { background:#2b332e; }
html[data-theme="dark"] .lc-sort-option:hover,html[data-theme="dark"] .lc-sort-option:focus-within { background:#3b443d; color:#f7f2e8; }

.lc-repeat-search { color:#596359; }
.lc-delete-search { color:#b42323; }
html[data-theme="dark"] .lc-repeat-search { color:#b6beb7; }
html[data-theme="dark"] .lc-delete-search { color:#ff9696; }
.lc-repeat-search:hover,.lc-delete-search:hover { text-decoration:underline; }

/* Login: superfícies distintas e contraste nos dois lados do card */
html[data-theme="dark"] .login-container { background-color:#121514!important; }
html[data-theme="dark"] .login-box { background-color:#2b302e!important; border:1px solid #59615b; box-shadow:0 12px 36px #0005; }
html[data-theme="dark"] .login-form { background-color:#2b302e; color:#f2efe8; }
html[data-theme="dark"] .login-side { background-color:#202522; color:#f2efe8; }
html[data-theme="dark"] .login-form input { background-color:#1b201d!important; border-color:#7d897f!important; color:#f2efe8!important; }
html[data-theme="dark"] .login-form input::placeholder { color:#c0c8c1; opacity:1; }
html[data-theme="dark"] .login-form input:focus { outline:2px solid #dfba78; outline-offset:2px; }
html[data-theme="dark"] .login-form .separator { color:#d2d8d2; }
html[data-theme="dark"] .login-form .forgot-link { color:#dfba78; font-size:14px; }
html[data-theme="dark"] .login-form .erro-texto { color:#ffaaaa; }
html[data-theme="dark"] .login-form .google-btn { background:#353d37; color:#f2efe8; border-color:#879389; }
html[data-theme="dark"] .login-form .google-btn:hover { background:#424c44; }
html[data-theme="dark"] .login-form .login-submit { background:#C49A50; color:#202522; }
html[data-theme="dark"] .login-form .login-submit:hover { background:#dfba78; }
html[data-theme="dark"] .login-side .cadastro-btn { border-color:#dfba78; color:#dfba78; }
html[data-theme="dark"] .login-side .cadastro-btn:hover { background:#C49A50; color:#202522; }
.login-side { background-color:#202522!important; }

/* Sugestão de busca da Leila: ações separadas e responsivas. */
.lc-save-prompt { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:18px 20px;margin:12px 0;border:1px solid #c7b898;border-radius:12px;background:#f5f1e8;color:#302b23; }
.lc-save-prompt-text strong {display:block;font-size:13px;color:#806127;margin-bottom:5px;}
.lc-save-prompt-text p {margin:0;font-size:15px;line-height:1.5;}
.lc-save-prompt-actions {display:flex;flex-wrap:wrap;gap:10px;}
.lc-save-prompt-actions button {min-height:42px;padding:10px 18px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;}
.lc-save-prompt-primary {background:#C49A50!important;color:#202522!important;border:1px solid #C49A50!important;}
.lc-save-prompt-primary:hover {background:#dfba78!important;}
.lc-save-prompt-secondary {background:transparent!important;color:#514c43!important;border:1px solid #928b7e!important;}
.lc-save-prompt-secondary:hover {background:#e8e2d5!important;}
.lc-save-prompt-actions button:focus-visible {outline:2px solid #C49A50;outline-offset:3px;}
html[data-theme="dark"] .lc-save-prompt {background:#2b302e;color:#f2efe8;border-color:#59615b;}
html[data-theme="dark"] .lc-save-prompt-text strong {color:#dfba78;}
html[data-theme="dark"] .lc-save-prompt-secondary {color:#e0e5df!important;border-color:#879389!important;}
html[data-theme="dark"] .lc-save-prompt-secondary:hover {background:#3b443d!important;}
@media(max-width:600px) {.lc-save-prompt {padding:16px;}.lc-save-prompt-actions {width:100%;}.lc-save-prompt-actions button {flex:1;}}

.lc-clear-filters.lc-clear-filters-subtle { background:transparent!important; border:0; padding:4px 0 4px 8px; color:var(--theme-muted)!important; font-size:12px; font-weight:400; text-decoration:none; white-space:nowrap; }
.lc-clear-filters.lc-clear-filters-subtle:hover { color:var(--theme-text)!important; text-decoration:underline; text-underline-offset:3px; }
.lc-clear-filters-subtle:focus-visible { outline:2px solid #C49A50; outline-offset:3px; border-radius:3px; }

/* Mostrar imóveis ocultos: contraste ao lado do aviso de novos imóveis. */
.lc-hidden-results-toggle { color:#806127!important; background:transparent; }
.lc-hidden-results-toggle:hover { color:#604619!important; text-decoration:underline; text-underline-offset:3px; }
html[data-theme="dark"] .lc-hidden-results-toggle { color:#dfba78!important; }
html[data-theme="dark"] .lc-hidden-results-toggle:hover { color:#f2d9a8!important; }
.lc-hidden-results-toggle:focus-visible { outline:2px solid #C49A50; outline-offset:3px; border-radius:3px; }

/* Progressão do investimento: bronze, dourado e verde na venda. */
.lc-investment-timeline { border-color:#b99a62; }
.lc-timeline-step-1 { --timeline-tone:#805b2b; }
.lc-timeline-step-2 { --timeline-tone:#84682d; }
.lc-timeline-step-3 { --timeline-tone:#737334; }
.lc-timeline-step-4 { --timeline-tone:#527440; }
.lc-timeline-step-5 { --timeline-tone:#286c50; }
html[data-theme="dark"] .lc-timeline-step-1 { --timeline-tone:#dfba78; }
html[data-theme="dark"] .lc-timeline-step-2 { --timeline-tone:#d5c27f; }
html[data-theme="dark"] .lc-timeline-step-3 { --timeline-tone:#bfca89; }
html[data-theme="dark"] .lc-timeline-step-4 { --timeline-tone:#a1cc9a; }
html[data-theme="dark"] .lc-timeline-step-5 { --timeline-tone:#85cdb0; }
.lc-investment-timeline .lc-timeline-title { color:var(--timeline-tone)!important; }
.lc-investment-timeline .lc-timeline-dot { background-color:var(--timeline-tone)!important; }

.lc-cost-distribution { --cost-tooltip-bg:#fff; --cost-tooltip-text:#292d29; --cost-tooltip-border:#d4d8d3; }
.lc-cost-track { background:#e8ebe6; }
html[data-theme="dark"] .lc-cost-distribution { --cost-tooltip-bg:#333b35; --cost-tooltip-text:#f2efe8; --cost-tooltip-border:#647166; }
html[data-theme="dark"] .lc-cost-track { background:#465048; }
