/* =====================================================
   app.css — Estilos globais da aplicação
   ===================================================== */

html, body {
    height: 100%;
}

/* Shell do app no mobile: 100% resolve contra o layout viewport, que inclui a
   área atrás da barra de URL retrátil. O container fica mais alto que a área
   visível e a <nav absolute bottom-0> cai abaixo da dobra, sob a barra de
   gestos. 100dvh acompanha a área realmente visível.
   A dupla declaração é proposital: quem não entende dvh fica com 100%. */
@media (max-width: 767px) {
    #appShell {
        height: 100%;
        height: 100dvh;
    }
}

body {
    background-color: #F8FAFF;
    -webkit-touch-callout: none;
}

/* iOS, app instalado na tela inicial: com viewport-fit=cover a página começa
   atrás da barra de status. O padding-top do #appShell não alcança as telas,
   que são absolute/fixed inset-0, e o cabeçalho delas (botão de voltar) ficava
   escondido sob o relógio. As telas passam a começar abaixo da barra de status.
   height:auto é necessário: com h-full a tela manteria a altura cheia e
   passaria do fundo do shell pelo mesmo valor. */
@supports (-webkit-touch-callout: none) {
    @media (display-mode: standalone) {
        #appShell > div[id$="View"] {
            top: env(safe-area-inset-top, 0px);
            height: auto;
        }
    }
}

/* Remove 300ms tap delay on iOS for all interactive elements */
button, [role="button"], a, label, select {
    touch-action: manipulation;
}

/* Previne menu nativo do Android/iOS em elementos com long-press */
[ontouchstart] {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

/* Prevent iOS auto-zoom on input focus (requires >= 16px) */
input, textarea, select {
    font-size: 16px !important;
}

/* Lock background scroll when modal is open */
.modal-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Prevent scroll chaining on modal/sheet content */
.modal-scroll-contain,
[class*="backdrop-blur"] > [class*="overflow-y-auto"] {
    overscroll-behavior: contain;
}

/* Use dvh for modal max-height so keyboard is accounted for */
@supports (max-height: 90dvh) {
    [class*="backdrop-blur"] > [class*="max-h-"] {
        max-height: 90dvh;
    }
}

/* Safe area padding for notch / Dynamic Island */
.safe-top {
    padding-top: env(safe-area-inset-top, 0px);
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Custom Color Picker Styling */
input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    width: 200%;
    height: 200%;
    cursor: pointer;
    padding: 0;
    background: transparent;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out forwards;
}

.fade-out {
    animation: fadeOut 0.2s ease-in-out forwards;
}

.slide-up {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-in-right {
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Entrada suave de telas e modais (core/ui.js, _uiEntradaSuave) */
.ui-entra { animation: uiEntra .22s ease-out; }
.ui-entra-folha { animation: uiEntraFolha .28s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes uiEntra { from { opacity: 0; } to { opacity: 1; } }
@keyframes uiEntraFolha { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Leitura: textos de 8 a 10 px sobem 1 px dentro do app (o tailwind.css é
   pré-compilado). Só no #appShell, para não alterar o que vai para o PDF. */
#appShell .text-\[10px\] { font-size: 11px; }
#appShell .text-\[9px\]  { font-size: 10px; }
#appShell .text-\[8px\]  { font-size: 9px; }

/* Rótulo de botão de cabeçalho que some em celular estreito (fica só o ícone) */
@media (max-width: 399px) { .rotulo-largo { display: none; } }

/* Menu "Reescrever com IA" da seção de texto (diarios.js) */
.ia-reesc > summary { list-style: none; }
.ia-reesc > summary::-webkit-details-marker { display: none; }
.ia-reesc-menu {
    position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 30; display: flex; gap: 6px; padding: 6px;
    background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; box-shadow: 0 8px 24px rgba(15,23,42,.12);
}

/* Desktop: telas de trabalho com mais largura (core/ui.js, _uiShellLargo) */
@media (min-width: 1024px) {
    #appShell.shell-largo { max-width: 1080px; }
    #appShell.shell-largo [id^="fotosGrid_"].grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #appShell.shell-largo .dc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; align-items: start; }
}
#appShell { transition: max-width .25s ease; }

/* Área de toque mínima no celular (core/ui.js, _uiAlvosToque) */
.alvo-toque { position: relative; }
.alvo-toque::after, .alvo-toque-pos::after {
    content: ''; position: absolute; top: calc(-1 * var(--alvo-y, 0px)); bottom: calc(-1 * var(--alvo-y, 0px));
    left: calc(-1 * var(--alvo-x, 0px)); right: calc(-1 * var(--alvo-x, 0px));
}

/* FAB recolhido durante a rolagem para baixo (core/ui.js, _uiFabRolagem) */
.fab-oculto { opacity: 0 !important; transform: translateY(24px) scale(.85) !important; pointer-events: none; }
button.w-14.h-14.rounded-full[class*="bottom-32"] { transition: opacity .2s ease, transform .2s ease; }

.fab-shadow {
    box-shadow: 0 8px 24px rgba(3, 105, 161, 0.35);
}

.input-shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #E0F2FE;
    border-top: 3px solid #0369A1;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    animation: slideDown 0.3s ease-out;
}

.toast-success {
    background: #10B981;
    color: white;
}

.toast-error {
    background: #EF4444;
    color: white;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Visual polish — stagger entrance for dashboard cards */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }

/* Subtle scale-in for metric cards */
.scale-in {
    animation: scaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gradient shimmer for loading states */
.shimmer {
    background: linear-gradient(90deg, #f0f9ff 25%, #e0f2fe 50%, #f0f9ff 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Glow effect for primary action buttons */
.glow-sky {
    box-shadow: 0 0 20px rgba(3, 105, 161, 0.2), 0 4px 12px rgba(3, 105, 161, 0.15);
}

/* Subtle breathing animation for status dots */
@keyframes breathe {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.breathe {
    animation: breathe 2s ease-in-out infinite;
}

/* =====================================================
   Editor de fotos do diário (screens/diario/editor-foto.js)
   Interface clara; só o palco é escuro, como num visualizador de foto,
   para a marcação aparecer com o contraste que vai ter no relatório.
   ===================================================== */
body.edf-aberto { overflow: hidden; }
.edf {
    --edf-brand: #0369A1; --edf-ink: #0F172A; --edf-muted: #64748B; --edf-line: #E2E8F0;
    --edf-line-forte: #CBD5E1; --edf-sup: #FFFFFF; --edf-sup-2: #F1F5F9;
    position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column;
    background: var(--edf-sup); color: var(--edf-ink); font-family: Inter, Arial, sans-serif;
}
.edf-topo {
    display: flex; align-items: center; gap: 6px; padding: 8px 12px;
    padding-top: max(8px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--edf-line); min-height: 54px;
}
.edf-titulo { display: flex; flex-direction: column; min-width: 0; margin-right: 6px; }
.edf-titulo b { font-size: 14px; }
.edf-titulo span { font-size: 12px; color: var(--edf-muted); white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 32vw; }
.edf-espaco { flex: 1; }
.edf-icone { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent;
    color: var(--edf-ink); display: grid; place-items: center; cursor: pointer; }
.edf-icone:hover { background: var(--edf-sup-2); }
.edf-icone:disabled { opacity: .35; pointer-events: none; }
.edf-btn {
    height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--edf-line-forte);
    background: var(--edf-sup); color: var(--edf-ink); font: inherit; font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
}
.edf-btn:hover { background: var(--edf-sup-2); }
.edf-btn:disabled { opacity: .5; pointer-events: none; }
.edf-btn.edf-pri { background: var(--edf-brand); border-color: var(--edf-brand); color: #fff; }
.edf-btn.edf-pri:hover { background: #075985; }
.edf-btn.edf-perigo { color: #DC2626; border-color: #FECACA; }
.edf-btn.edf-perigo:hover { background: #FEF2F2; }
.edf-meio { flex: 1; display: flex; min-height: 0; }
.edf-ferr {
    display: flex; flex-direction: column; gap: 4px; padding: 10px 8px;
    border-right: 1px solid var(--edf-line); background: var(--edf-sup); overflow-y: auto;
}
.edf-ferr button {
    width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 10px;
    background: transparent; color: var(--edf-muted); cursor: pointer; flex: none;
}
.edf-ferr button:hover { background: var(--edf-sup-2); color: var(--edf-ink); }
.edf-ferr button.ligado { background: var(--edf-brand); color: #fff; }
.edf-sep { display: block; height: 1px; background: var(--edf-line); margin: 4px 6px; flex: none; }
.edf-palco { flex: 1; position: relative; min-width: 0; background: #1C2127; overflow: hidden; }
.edf-palco canvas { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
.edf-zoom {
    position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 2px;
    background: rgba(255,255,255,.94); border-radius: 10px; padding: 3px; box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.edf-zoom button { width: 32px; height: 32px; border: 0; background: transparent; border-radius: 8px;
    display: grid; place-items: center; color: var(--edf-ink); cursor: pointer; }
.edf-zoom button:hover { background: var(--edf-sup-2); }
.edf-zoom-n { font-size: 11.5px; font-weight: 700; min-width: 40px; text-align: center; color: var(--edf-muted); }
.edf-props {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 56px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--edf-line); overflow-x: auto; flex-wrap: nowrap;
}
.edf-props > * { flex: none; }
.edf-cores { display: flex; gap: 6px; }
.edf-cores button {
    width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--edf-line-forte);
    background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 2px #fff;
}
.edf-cores button.ligado { border-color: var(--edf-brand); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px rgba(3,105,161,.25); }
.edf-seg { display: inline-flex; background: var(--edf-sup-2); border-radius: 10px; padding: 3px; gap: 2px; }
.edf-seg button {
    min-width: 36px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
    font: inherit; font-size: 12.5px; font-weight: 600; color: var(--edf-muted); cursor: pointer;
}
.edf-seg button.ligado { background: var(--edf-sup); color: var(--edf-brand); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.edf-rot, .edf-faixa span { font-size: 12px; font-weight: 600; color: var(--edf-muted); }
.edf-txt { height: 34px; width: 230px; border-radius: 8px; border: 1px solid var(--edf-line-forte);
    padding: 0 10px; font: inherit; font-size: 13px; }
.edf-txt:focus { outline: 0; border-color: var(--edf-brand); box-shadow: 0 0 0 3px rgba(3,105,161,.15); }
.edf-faixa { display: flex; align-items: center; gap: 8px; }
.edf-faixa input { width: 160px; accent-color: var(--edf-brand); }
.edf-faixa b { font-size: 12px; min-width: 28px; font-variant-numeric: tabular-nums; }
.edf-larg input { width: 130px; }
.edf-dica {
    position: absolute; left: 50%; top: 12px; transform: translate(-50%, -6px); max-width: calc(100% - 24px);
    padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.95); color: var(--edf-ink);
    font-size: 12.5px; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,.18); pointer-events: none;
    opacity: 0; transition: opacity .2s, transform .2s; text-align: center;
}
.edf-dica.visivel { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .edf-dica { transition: none; } }

/* Celular: nada escondido atrás de rolagem lateral. Ferramentas e barra de
   propriedades quebram em fileiras. */
@media (max-width: 700px) {
    .edf-topo { flex-wrap: wrap; row-gap: 4px; }
    .edf-titulo span { max-width: 50vw; }
    .edf-meio { flex-direction: column-reverse; }
    .edf-ferr { flex-direction: row; flex-wrap: wrap; justify-content: center; border-right: 0;
        border-top: 1px solid var(--edf-line); overflow: visible; gap: 2px; padding: 6px; }
    .edf-sep { display: none; }
    .edf-props { flex-wrap: wrap; overflow: visible; row-gap: 8px; padding: 8px 10px; }
    .edf-props .edf-espaco { display: none; }
    .edf-txt { width: 180px; }
    .edf-faixa input { width: 120px; }
    .edf-larg { flex: 1 1 auto; }
    .edf-larg input { flex: 1; min-width: 80px; width: auto; }
}
/* Celular deitado: ferramentas em duas colunas, topo e rodapé mais finos. */
@media (max-height: 500px) and (orientation: landscape) {
    .edf-topo { min-height: 46px; padding: 4px 12px; }
    .edf-ferr { display: grid; grid-template-columns: repeat(2, 40px); grid-auto-rows: min-content;
        align-content: start; gap: 3px; padding: 6px; overflow-y: auto; }
    .edf-ferr button { width: 40px; height: 40px; }
    .edf-sep { grid-column: span 2; height: 1px; width: auto; margin: 1px 4px; }
    .edf-props { min-height: 48px; padding: 4px 12px; }
}
@media (pointer: coarse) {
    .edf-cores button { width: 36px; height: 36px; }
    .edf-zoom button { width: 38px; height: 38px; }
    .edf-btn { height: 40px; }
    .edf-icone { width: 40px; height: 40px; }
}

/* Botão "Editar" e selo "Editada" sobre a miniatura (edBotaoEditarFoto / edSeloEditada).
   Fundo sólido: precisa aparecer em foto clara, que é a maioria (parede, fachada, piso). */
.edf-foto-btn {
    position: absolute; right: 8px; bottom: 8px; z-index: 10;
    display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px 0 9px;
    border: 0; border-radius: 9px; background: rgba(15,23,42,.82); color: #fff;
    font: 700 12px/1 Inter, Arial, sans-serif; cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: background .15s;
}
.edf-foto-btn i { font-size: 14px; }
.edf-foto-btn:hover, .edf-foto-btn.editada { background: #0369A1; }
.edf-foto-btn.editada:hover { background: #075985; }
.edf-foto-selo {
    display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 6px;
    background: #0369A1; color: #fff; font: 700 10px/1 Inter, Arial, sans-serif;
    letter-spacing: .02em; box-shadow: 0 1px 4px rgba(0,0,0,.25); pointer-events: none;
}
.edf-foto-selo i { font-size: 10px; }
@media (pointer: coarse) { .edf-foto-btn { height: 34px; } }

/* Ler fotos com IA: "Sugerir título e legenda" no card e "Ler fotos com IA" no bloco */
.ia-bloco-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px;
    border: 1px solid #0369A1; background: #0369A1; color: #fff;
    font: 700 10px/1.2 Inter, Arial, sans-serif; cursor: pointer; transition: background .15s;
}
.ia-bloco-btn:hover { background: #075985; }
@media (pointer: coarse) { .ia-bloco-btn { padding: 8px 14px; } }

/* Título e legenda da foto (textarea que cresce com o texto, ver _campoFotoAltura) */
.foto-campo-auto { display: block; overflow: hidden; line-height: 1.4; min-height: 0; }
.foto-campo-auto.cortado { -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); cursor: text; }
.foto-campo-mais {
    display: block; margin: 2px 0 4px; padding: 2px 0; border: 0; background: none;
    color: #0369A1; font: 700 11px/1.3 Inter, Arial, sans-serif; cursor: pointer;
}
.foto-campo-mais[hidden] { display: none; }
.foto-campo-mais:hover { text-decoration: underline; }

/* Assistente IA do bloco de atividade (fotos) */
.ia-painel {
    margin-top: 4px; padding: 12px; border-radius: 16px;
    background: #F0F9FF; border: 1px solid #E0F2FE;
}
.ia-painel-cab {
    display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
    font: 700 10.5px/1 Inter, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #0369A1;
}
.ia-painel-acao { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ia-painel-acao .ia-bloco-btn { font-size: 12px; padding: 9px 14px; }
.ia-painel-acao .ia-bloco-btn.sem-fotos { background: #94A3B8; border-color: #94A3B8; cursor: not-allowed; opacity: 1; }
@media (max-width: 480px) { .ia-painel-rot { flex-basis: 100%; margin-bottom: 2px; } }
.ia-painel-dica { flex: 1 1 200px; margin: 0; font: 500 11.5px/1.4 Inter, Arial, sans-serif; color: #64748B; }
.ia-painel-linha {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    margin-top: 10px; padding-top: 10px; border-top: 1px solid #E0F2FE;
}
.ia-painel-rot { font: 700 11px/1 Inter, Arial, sans-serif; color: #64748B; margin-right: 2px; }
.ia-tom-btn {
    padding: 6px 12px; border-radius: 10px; border: 1px solid #BAE6FD; background: #fff; color: #0369A1;
    font: 700 11px/1.2 Inter, Arial, sans-serif; cursor: pointer; transition: background .15s;
}
.ia-tom-btn:hover { background: #E0F2FE; }
.ia-tom-btn:disabled { cursor: progress; }
@media (pointer: coarse) { .ia-tom-btn { padding: 9px 14px; } .ia-painel-acao .ia-bloco-btn { padding: 11px 16px; } }

/* IA no campo da foto: botão ✦ ao lado do título e da legenda (iaLegendarFoto / ocorrIaLegenda) */
.foto-campo-linha { display: flex; align-items: flex-start; gap: 6px; }
.foto-campo-linha > textarea { flex: 1 1 auto; min-width: 0; }
.ia-campo-btn {
    flex: none; width: 26px; height: 26px; margin-top: 1px; display: grid; place-items: center;
    border: 1px solid #BAE6FD; border-radius: 8px; background: #F0F9FF; color: #0369A1; cursor: pointer;
    transition: background .15s, border-color .15s, transform .1s;
}
.ia-campo-btn i { font-size: 14px; }
.ia-campo-btn:hover { background: #E0F2FE; border-color: #7DD3FC; }
.ia-campo-btn:active { transform: scale(.94); }
.ia-campo-btn.ocupado { background: #0369A1; border-color: #0369A1; color: #fff; cursor: progress; }
@media (pointer: coarse) { .ia-campo-btn { width: 34px; height: 34px; border-radius: 10px; } .ia-campo-btn i { font-size: 16px; } }

/* Títulos e legendas de várias fotos (iaLegendarVarias) */
.ia-leg { align-items: center; row-gap: 8px; }
.ia-seg { display: inline-flex; border: 1px solid #BAE6FD; border-radius: 10px; overflow: hidden; background: #fff; }
.ia-seg button {
    padding: 6px 10px; border: 0; background: #fff; color: #0369A1; cursor: pointer;
    font: 700 11px/1.2 Inter, Arial, sans-serif; transition: background .15s;
}
.ia-seg button + button { border-left: 1px solid #BAE6FD; }
.ia-seg button.ligado { background: #0369A1; color: #fff; }
.ia-chk { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1.2 Inter, Arial, sans-serif; color: #475569; cursor: pointer; }
.ia-chk input { width: 15px; height: 15px; accent-color: #0369A1; }
.ia-leg-acoes { flex-basis: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ia-sec-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px;
    border: 1px solid #BAE6FD; background: #fff; color: #0369A1; cursor: pointer;
    font: 700 10px/1.2 Inter, Arial, sans-serif; transition: background .15s;
}
.ia-sec-btn:hover { background: #E0F2FE; }
.ia-sec-btn i { font-size: 13px; }
/* Camada de seleção sobre a foto */
.foto-sel {
    position: absolute; inset: 0; z-index: 25; border: 3px solid transparent; border-radius: 12px;
    background: rgba(255,255,255,.18); cursor: pointer; padding: 0;
}
.foto-sel-check {
    position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; border: 2px solid #fff; background: rgba(15,23,42,.45); color: transparent;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.foto-sel.marcada { border-color: #0369A1; background: rgba(3,105,161,.18); }
.foto-sel.marcada .foto-sel-check { background: #0369A1; color: #fff; }
/* Replicar título/legenda (sem IA): foto de origem, botão discreto no rodapé do card e barra sobre a grade */
.foto-sel.origem { border-color: #F59E0B; background: rgba(245,158,11,.12); cursor: default; display: block; }
.foto-sel-rot { position: absolute; top: 8px; right: 8px; padding: 4px 8px; border-radius: 999px; background: #F59E0B; color: #fff; font: 700 10px/1 Inter, Arial, sans-serif; }
.foto-replicar {
    position: absolute; bottom: 16px; right: 52px; max-width: calc(100% - 68px); display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 8px; border-radius: 8px; border: 0; background: transparent; color: #64748B; cursor: pointer;
    font: 600 10.5px/1 Inter, Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background .15s, color .15s;
}
.foto-replicar i { font-size: 13px; flex: 0 0 auto; }
.foto-replicar:hover { background: #F1F5F9; color: #0369A1; }
@media (pointer: coarse) { .foto-replicar { padding: 8px 10px; } }
.rep-barra {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px;
    border-radius: 14px; background: #F8FAFC; border: 1px solid #E2E8F0;
    position: sticky; top: 105px; z-index: 40; box-shadow: 0 6px 18px rgba(15,23,42,.10);
}
.rep-barra .ia-painel-rot { display: inline-flex; align-items: center; gap: 5px; color: #334155; }
/* Botão "Assistente IA" na barra do bloco e painel compacto */
.ia-toggle:hover, .ia-toggle.aberto { background: #F0F9FF; border-color: #BAE6FD; color: #0369A1; }
.ia-painel-texto { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ia-painel-texto .ia-bloco-btn.sem-fotos { background: #94A3B8; border-color: #94A3B8; cursor: not-allowed; opacity: 1; }
.ia-painel-rot-sep { margin-left: 8px; }
@media (max-width: 480px) { .ia-painel-rot-sep { margin-left: 0; } }
@media (pointer: coarse) { .ia-seg button { padding: 9px 12px; } .ia-sec-btn { padding: 9px 14px; } .foto-sel-check { width: 30px; height: 30px; } }

/* Barra inferior em largura pequena (iPhone SE/mini, Zoom de Tela "Ampliado" e
   zoom de página do Safari acima de 100%, que reduzem a largura em CSS para
   300 a 320px). Em largura normal nada muda: os botões continuam do tamanho do
   conteúdo com px-4. Abaixo de 360px o padding lateral cai e o rótulo não quebra
   linha, para os 5 botões caberem lado a lado. */
nav .nav-btn { min-width: 0; flex-shrink: 1; }
nav .nav-btn > span { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 359px) {
    nav .nav-btn { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 319px) {
    nav .nav-btn { padding-left: 5px; padding-right: 5px; }
    nav .nav-btn > span { letter-spacing: 0; }
}

/* =====================================================
   Aviso de app sem conexão (components/offline.js), prefixo off-
   Cena em SVG: o plugue avança até quase encostar na tomada, treme e volta.
   Um ciclo de 3,2 s rege plugue, faíscas e a boca da tomada; os olhos piscam
   em ciclo próprio.
   ===================================================== */
.off-cena { display: block; flex: none; overflow: hidden; }
.off-plugue { animation: off-tenta 3.2s cubic-bezier(.45, 0, .3, 1) infinite; }
.off-faisca { opacity: 0; animation: off-faisca 3.2s linear infinite; }
.off-olhos { transform-box: fill-box; transform-origin: center; animation: off-pisca 4.1s ease-in-out infinite; }
.off-boca-triste { animation: off-boca-triste 3.2s linear infinite; }
.off-boca-oh { opacity: 0; animation: off-boca-oh 3.2s linear infinite; }

@keyframes off-tenta {
    0%, 10%  { transform: translateX(0); }
    38%      { transform: translateX(27px); }
    44%      { transform: translateX(29px); }
    48%      { transform: translateX(26px); }
    52%      { transform: translateX(29px); }
    56%      { transform: translateX(26px); }
    60%      { transform: translateX(29px); }
    72%      { transform: translateX(-5px); }
    80%      { transform: translateX(2px); }
    88%, 100% { transform: translateX(0); }
}
@keyframes off-faisca {
    0%, 42%  { opacity: 0; }
    44%      { opacity: 1; }
    48%      { opacity: .2; }
    52%      { opacity: 1; }
    56%      { opacity: .2; }
    60%      { opacity: 1; }
    64%, 100% { opacity: 0; }
}
@keyframes off-pisca {
    0%, 90%, 100% { transform: scaleY(1); }
    95%           { transform: scaleY(.1); }
}
@keyframes off-boca-triste {
    0%, 34%   { opacity: 1; }
    38%, 62%  { opacity: 0; }
    66%, 100% { opacity: 1; }
}
@keyframes off-boca-oh {
    0%, 34%   { opacity: 0; }
    38%, 62%  { opacity: 1; }
    66%, 100% { opacity: 0; }
}

.off-aviso {
    position: absolute; left: 12px; right: 12px;
    bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 95; display: flex; align-items: center; gap: 12px;
    padding: 12px 12px 12px 14px; background: #fff;
    border: 1px solid #E2E8F0; border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
    animation: off-sobe .28s cubic-bezier(0.16, 1, 0.3, 1);
}
.off-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.off-txt b { font-size: 13px; font-weight: 700; color: #0F172A; }
.off-txt span { font-size: 11.5px; line-height: 1.35; color: #64748B; }
.off-fechar {
    flex: none; align-self: flex-start; width: 32px; height: 32px; border: 0;
    border-radius: 10px; background: transparent; color: #64748B;
    display: grid; place-items: center; cursor: pointer;
}
.off-fechar:hover { background: #F1F5F9; color: #0F172A; }
@keyframes off-sobe {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.off-pilula {
    position: absolute; left: 50%; transform: translateX(-50%);
    top: calc(env(safe-area-inset-top, 0px) + 6px);
    z-index: 95; display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px; white-space: nowrap;
    font-size: 11px; font-weight: 700; pointer-events: none;
    border: 1px solid transparent;
}
.off-pilula-fora  { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.off-pilula-volta { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }

@media (prefers-reduced-motion: reduce) {
    .off-plugue, .off-faisca, .off-olhos, .off-boca-triste, .off-boca-oh, .off-aviso { animation: none; }
}

/* ===== Agenda: visões Mês / Ano / Semana / Dia (agenda-calendario.js) ===== */
.agenda-grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.agenda-cel { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; height: 46px; padding-top: 3px; border-radius: 14px; transition: background-color .15s; }
.agenda-cel:hover { background: #F1F5F9; }
.agenda-num { width: 30px; height: 30px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.agenda-hoje { box-shadow: inset 0 0 0 1.5px #0369A1; }
.agenda-dots { display: flex; align-items: center; justify-content: center; gap: 3px; height: 7px; }
.agenda-dot { width: 7px; height: 7px; border-radius: 9999px; display: inline-block; flex-shrink: 0; }
.agenda-dot-reg { width: 6.5px; height: 6.5px; border-radius: 1.5px; }
.agenda-mais { font-size: 9px; font-weight: 800; color: #475569; line-height: 1; }
.agenda-card-barra { width: 4px; flex-shrink: 0; }
.agenda-card-btn { padding: 12px 8px 12px 12px; }
.agenda-card-hora { width: 44px; font-variant-numeric: tabular-nums; }
.agenda-ano { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 1024px) { .agenda-ano { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } }
.agenda-ano-grid { row-gap: 1px; }
.agenda-ano-dia { font-size: 9px; font-weight: 700; color: #475569; height: 16px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-variant-numeric: tabular-nums; }
.agenda-ano-hoje { outline: 1.5px solid #0369A1; outline-offset: 1px; color: #0369A1; font-weight: 800; }
.agenda-ano-atraso { box-shadow: inset 0 -2px 0 #DC2626; }
.agenda-semana-dia { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 64px; border-radius: 9999px; transition: background-color .15s; min-width: 0; }
.agenda-grade { position: relative; margin-left: 4px; }
.agenda-hora { position: absolute; left: 0; right: 0; display: block; border-top: 1px solid #E2E8F0; text-align: left; }
.agenda-hora::after { content: ''; position: absolute; left: 50px; right: 0; top: 50%; border-top: 1px dashed #E2E8F0; pointer-events: none; }
.agenda-hora:hover { background: #F8FAFF; }
.agenda-hora-rot { position: absolute; left: 6px; top: -8px; width: 38px; font-size: 11px; font-weight: 700; color: #64748B; background: #fff; font-variant-numeric: tabular-nums; }
.agenda-blocos { position: absolute; top: 0; bottom: 0; left: 50px; right: 0; pointer-events: none; }
.agenda-bloco { position: absolute; pointer-events: auto; text-align: left; border-left: 3px solid; border-radius: 10px; padding: 4px 8px; overflow: hidden; transition: filter .15s; }
.agenda-bloco:hover { filter: brightness(.97); }
.agenda-bloco-atraso { box-shadow: inset 0 0 0 1px #FECACA; }
.agenda-agora { position: absolute; left: 44px; right: 0; height: 2px; background: #EF4444; pointer-events: none; z-index: 5; }
.agenda-agora span { position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 9999px; background: #EF4444; }
/* cor de membro que substitui o violeta */
/* Título da lista: título e resumo na mesma linha de base (items-baseline não está no tailwind.css pré-compilado) */
.agenda-title { align-items: baseline; }
/* Área de toque mínima de 40px nos controles da agenda */
.agenda-toque { min-height: 40px; }
/* Espaço final para o último cartão sair de baixo do botão flutuante */
.agenda-lista-fim { padding-bottom: 112px; }
.agenda-grade-card { padding-bottom: 96px; }
.agenda-semana-lista > * + * { margin-top: 12px; }
.agenda-semana-lista > .agenda-semana-sec + .agenda-semana-sec { margin-top: 20px; }
.agenda-semana-vazio { border-radius: 12px; }
.agenda-semana-vazio:hover { background: #F1F5F9; }
.agenda-legenda { column-gap: 14px; row-gap: 4px; }
.agenda-legenda-solta .agenda-legenda { border-top: 0; margin-top: 10px; padding-top: 0; }
/* Membro em marrom (substitui o teal, que confundia com a cor de Vistoria) */
.agenda-br-bg { background-color: #B45309; }
.agenda-br-light { background-color: #FEF3C7; }
.agenda-br-border { border-color: #FCD34D; }
.agenda-br-text { color: #92400E; }
.agenda-br-ring { --tw-ring-color: #F59E0B; }
.agenda-cy-bg { background-color: #0891B2; }
.agenda-cy-light { background-color: #ECFEFF; }
.agenda-cy-border { border-color: #67E8F9; }
.agenda-cy-text { color: #0E7490; }
.agenda-cy-ring { --tw-ring-color: #22D3EE; }


/* =====================================================
   Tela inicial (index.php #mainView, screens/obras/home.js)
   Mesma linguagem do app: Inter, fundo appBg, cards brancos rounded-3xl com
   sombra leve, azul da marca #0369A1. Cor de alerta só uma: vermelho para o que
   está atrasado; o resto é neutro. Prefixo home-.
   ===================================================== */
:root {
    --home-txt: #0F172A; --home-sub: #64748B; --home-apagado: #94A3B8;
    --home-azul: #0369A1; --home-azul-claro: #E0F2FE; --home-borda: #EEF1F6;
    --home-verm: #B91C1C; --home-verm-fundo: #FEF2F2;
    --home-sombra: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
    --home-sombra-alta: 0 2px 4px rgba(15, 23, 42, .04), 0 12px 28px rgba(15, 23, 42, .09);
}

/* Cabeçalho */
.home-cab { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 0; }
.home-marca { display: flex; align-items: center; gap: 8px; }
.home-logo { height: 28px; width: auto; object-fit: contain; border-radius: 7px; }
.home-marca-nome { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--home-azul); }
#notifBadge.home-notif { top: 3px; right: 2px; }
.home-cab-acoes { display: flex; align-items: center; gap: 2px; }
.home-cab-btn { width: 40px; height: 40px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: var(--home-sub); font-size: 22px; transition: background-color .15s, color .15s; }
.home-cab-btn:hover { background: #fff; color: var(--home-azul); }
.home-cab-btn:disabled { opacity: .6; }
/* Avatar igual ao do cabeçalho da Agenda: anel da marca, 40 px */
.home-avatar { width: 40px; height: 40px; margin-left: 8px; padding: 2px; border-radius: 9999px; border: 2px solid var(--home-azul); flex-shrink: 0; transition: transform .1s; }
.home-avatar:active { transform: scale(.95); }
.home-avatar img { width: 100%; height: 100%; border-radius: 9999px; object-fit: cover; display: block; }

.home-pagina { padding: 0 24px 24px; }

/* Saudação + resumo */
.home-saudacao { padding: 14px 0 16px; }
.home-data { font-size: 13px; font-weight: 600; color: var(--home-sub); margin-bottom: 2px; }
.home-ola { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; color: var(--home-txt); }
.home-resumo { margin-top: 4px; font-size: 14px; color: var(--home-sub); }
.home-resumo:empty { display: none; }
.home-resumo b { font-weight: 600; color: var(--home-txt); }
.home-resumo-sep { margin: 0 7px; color: #CBD5E1; }

/* Blocos do topo */
.home-topo { display: flex; flex-direction: column; gap: 20px; margin-bottom: 22px; }
.home-topo .home-sec-fina + .home-sec { margin-top: -8px; }
.home-topo:has(> #homeAtencao:empty) { gap: 0; }
.home-sec-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; min-height: 28px; }
.home-sec-tit { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--home-txt); }
.home-sec-n { font-size: 14px; font-weight: 500; color: var(--home-sub); letter-spacing: 0; }
.home-pill { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 9999px; background: #E8EDF3; color: #475569; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.home-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--home-azul); padding: 6px 0 6px 8px; }
.home-link i { font-size: 12px; }
.home-link:hover { text-decoration: underline; }

.home-card { display: block; width: 100%; background: #fff; border: 1px solid var(--home-borda); border-radius: 24px; box-shadow: var(--home-sombra); text-align: left; }
.home-chev { color: #CBD5E1; font-size: 16px; flex-shrink: 0; }

/* Ícone com tom: vermelho = atrasado, ardósia = a vencer */
.home-ic { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.home-ic-atraso  { background: var(--home-verm-fundo); color: #DC2626; }
.home-ic-proximo { background: #F1F5F9; color: #475569; }

/* Hoje: linha fina (agenda livre) */
.home-fina { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; padding: 0 6px 0 14px; background: #fff; border: 1px solid var(--home-borda); border-radius: 14px; box-shadow: var(--home-sombra); }
.home-fina-txt { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 14px; color: var(--home-sub); }
.home-fina-txt i { font-size: 18px; color: var(--home-azul); flex-shrink: 0; }
.home-fina-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-fina-txt:hover span { color: var(--home-txt); }
.home-fina-acao { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; height: 34px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--home-azul); transition: background-color .15s; }
.home-fina-acao i { font-size: 13px; }
.home-fina-acao:hover { background: var(--home-azul-claro); }

/* Hoje: compromissos */
.home-hoje { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px 14px 20px; text-align: left; transition: background-color .12s; }
.home-hoje + .home-hoje::before { content: ''; position: absolute; top: 0; left: 20px; right: 0; border-top: 1px solid var(--home-borda); }
.home-hoje:hover { background: #F8FAFC; }
.home-hoje-hora { display: flex; flex-direction: column; align-items: flex-start; min-width: 56px; padding-right: 14px; border-right: 1px solid var(--home-borda); align-self: stretch; justify-content: center; }
.home-hoje-h { font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--home-azul); font-variant-numeric: tabular-nums; line-height: 1.1; }
.home-hoje-ate { font-size: 11.5px; color: var(--home-sub); margin-top: 3px; font-variant-numeric: tabular-nums; }
.home-hoje-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.home-hoje-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.home-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--home-azul); background: var(--home-azul-claro); padding: 2px 8px 2px 6px; border-radius: 9999px; }
.home-tag i { font-size: 13px; }
.home-hoje-quando { font-size: 12px; font-weight: 600; color: var(--home-sub); }
.home-agora { color: var(--home-azul); }
.home-hoje-tit { font-size: 15px; font-weight: 600; color: var(--home-txt); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-hoje-sub { font-size: 13px; color: var(--home-sub); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-txt-atraso { color: var(--home-verm); }

/* Precisa de atenção */
.home-lista { padding: 4px 0; overflow: hidden; }
.home-linha { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px 10px 16px; text-align: left; transition: background-color .12s; }
.home-linha + .home-linha::before { content: ''; position: absolute; top: 0; left: 66px; right: 0; border-top: 1px solid var(--home-borda); }
.home-linha:hover { background: #F8FAFC; }
.home-linha:active { background: #F1F5F9; }
.home-linha-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.home-linha-tit { font-size: 14.5px; font-weight: 600; color: var(--home-txt); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-linha-sub { font-size: 13px; color: var(--home-sub); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-dtag { flex-shrink: 0; min-width: 44px; height: 26px; padding: 0 9px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-dtag-atraso  { background: var(--home-verm-fundo); color: var(--home-verm); }
.home-dtag-proximo { background: #F1F5F9; color: #475569; }
.home-vermais { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; padding: 12px 20px 8px; font-size: 14px; font-weight: 600; color: var(--home-azul); border-top: 1px solid var(--home-borda); }
.home-vermais i { font-size: 12px; }
.home-vermais:hover { text-decoration: underline; }
.home-emdia { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; background: #fff; border: 1px solid var(--home-borda); border-radius: 14px; box-shadow: var(--home-sombra); font-size: 14px; font-weight: 600; color: var(--home-txt); }
.home-emdia i { font-size: 18px; color: #10B981; }

/* Suas obras: cabeçalho, busca e filtros */
.home-novo { display: none; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 12px; background: var(--home-azul); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px rgba(3, 105, 161, .25); transition: background-color .15s, transform .1s; }
.home-novo i { font-size: 15px; }
.home-novo:hover { background: #075985; }
.home-novo:active { transform: scale(.98); }
.home-ferramentas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.home-busca { position: relative; display: block; }
.home-busca i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--home-apagado); pointer-events: none; }
.home-busca input { width: 100%; height: 44px; padding: 0 14px 0 42px; background: #fff; border: 1px solid var(--home-borda); border-radius: 14px; font-size: 15px; color: var(--home-txt); box-shadow: var(--home-sombra); outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.home-busca input::placeholder { color: var(--home-apagado); }
.home-busca input:focus { border-color: rgba(3, 105, 161, .45); box-shadow: 0 0 0 3px rgba(3, 105, 161, .12); }
.home-chips { display: flex; gap: 8px; overflow-x: auto; }
.home-chips:empty { display: none; }
/* Igual ao chip "Todos" da Agenda: rounded-xl, 40 px, 14 px/700, selecionado em azul da marca */
.home-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--home-sub); background: #fff; border: 1px solid var(--home-borda); transition: background-color .15s, color .15s, border-color .15s; }
.home-chip span { font-size: 13px; font-weight: 600; color: var(--home-apagado); font-variant-numeric: tabular-nums; }
.home-chip:hover:not(:disabled) { color: var(--home-txt); }
.home-chip:disabled { opacity: .55; cursor: default; }
.home-chip[aria-pressed="true"], .home-chip[aria-pressed="true"]:hover { background: var(--home-azul); border-color: var(--home-azul); color: #fff; }
.home-chip[aria-pressed="true"] span { color: rgba(255, 255, 255, .7); }

/* Suas obras: cards com faixa de capa */
.home-obras { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.home-obra { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--home-borda); border-radius: 24px; box-shadow: var(--home-sombra); overflow: hidden; cursor: pointer; transition: box-shadow .18s, transform .1s; }
.home-obra:hover { box-shadow: var(--home-sombra-alta); }
.home-obra:active { transform: scale(.99); }

/* Capa: foto recortada; sem foto, o mesmo degradê da marca do topo do detalhe (obras.js) */
.home-capa { position: relative; height: 140px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0369A1 0%, #0C4A6E 100%); }
.home-capa-ic { font-size: 52px; color: rgba(255, 255, 255, .4); }
.home-capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-capa-veu { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 23, 42, .55) 0%, rgba(15, 23, 42, 0) 55%), linear-gradient(to bottom, rgba(15, 23, 42, .28) 0%, rgba(15, 23, 42, 0) 40%); pointer-events: none; }
.home-status { position: absolute; top: 14px; left: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 9999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .94); color: var(--home-txt); box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.home-dot { width: 7px; height: 7px; border-radius: 9999px; background: currentColor; }
.home-status-atraso { color: var(--home-verm); }
.home-status-ok .home-dot { background: #10B981; }
.home-obra-menu { position: absolute; top: 10px; right: 10px; z-index: 1; width: 36px; height: 36px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; background: rgba(15, 23, 42, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .15s; }
.home-obra-menu:hover { background: rgba(15, 23, 42, .45); }

.home-obra-corpo { flex: 1; display: flex; flex-direction: column; padding: 16px 20px 18px; }
.home-obra-nome { font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; color: var(--home-txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-obra-sub { font-size: 13.5px; color: var(--home-sub); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-obra-local { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; color: var(--home-sub); min-width: 0; }
.home-obra-local i { font-size: 14px; color: var(--home-apagado); flex-shrink: 0; }
.home-obra-local span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.home-avanco { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.home-avanco-barra { flex: 1; height: 6px; border-radius: 9999px; background: #EEF2F7; overflow: hidden; }
.home-avanco-barra span { display: block; height: 100%; border-radius: inherit; background: var(--home-azul); }
.home-avanco-n { font-size: 13px; font-weight: 700; color: var(--home-txt); font-variant-numeric: tabular-nums; }
.home-avanco-vazio { font-weight: 500; color: var(--home-apagado); }

.home-fatos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--home-borda); }
.home-fato { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.home-fato-r { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--home-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-fato-v { font-size: 15px; font-weight: 700; color: var(--home-txt); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-fato-v small { font-size: 13px; font-weight: 500; color: var(--home-sub); margin-left: 6px; }
.home-nada { padding: 28px 8px; text-align: center; font-size: 14px; color: var(--home-sub); }

@media (min-width: 1024px) {
    #appShell.shell-largo .home-cab { padding: 28px 40px 0; }
    #appShell.shell-largo .home-pagina { padding: 0 40px 48px; }
    #appShell.shell-largo .home-saudacao { padding: 24px 0 24px; }
    #appShell.shell-largo .home-ola { font-size: 30px; }
    #appShell.shell-largo .home-topo { margin-bottom: 36px; }
    /* Hoje com 2+ compromissos: duas colunas lado a lado, mesma altura */
    #appShell.shell-largo .home-topo.home-topo-duas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
    #appShell.shell-largo .home-topo.home-topo-duas > .home-sec { display: flex; flex-direction: column; }
    #appShell.shell-largo .home-topo.home-topo-duas > .home-sec > .home-card { flex: 1; }
    /* Agenda livre: atenção ocupa a largura toda em duas colunas de linhas */
    #appShell.shell-largo .home-topo:not(.home-topo-duas) .home-lista-atencao { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
    #appShell.shell-largo .home-topo:not(.home-topo-duas) .home-lista-atencao .home-linha::before { content: ''; position: absolute; top: 0; left: 66px; right: 0; border-top: 1px solid var(--home-borda); }
    #appShell.shell-largo .home-topo:not(.home-topo-duas) .home-lista-atencao .home-linha:nth-child(-n+2)::before { display: none; }
    #appShell.shell-largo .home-topo:not(.home-topo-duas) .home-lista-atencao .home-linha:nth-child(even) { border-left: 1px solid var(--home-borda); }
    #appShell.shell-largo .home-ferramentas { flex-direction: row; align-items: center; justify-content: space-between; }
    #appShell.shell-largo .home-busca { flex: 0 1 360px; order: 2; }
    #appShell.shell-largo .home-obras { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    #appShell.shell-largo .home-capa { height: 160px; }
    /* Desktop: "Nova obra" no cabeçalho da seção; o FAB sairia em cima dos cards */
    #appShell.shell-largo .home-novo { display: inline-flex; }
    #appShell.shell-largo .home-fab { display: none; }
}

/* logo vetorial novo */
.home-logo { height: 26px !important; width: 26px !important; border-radius: 0 !important; }
.splash-marca { box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 18px 40px -12px rgba(0,0,0,.45); }

/* ── Botão voltar: um desenho só no app inteiro ─────────────────────── */
button:has(> i.ph-arrow-left:only-child):not(.voltar-sobre-foto),
button:has(> i.ph-caret-left:only-child)[onclick*="voltar"],
button:has(> i.ph-caret-left:only-child)[onclick*="fechar"] {
    width: 40px !important; height: 40px !important; min-width: 40px;
    padding: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06) !important;
    color: #0F172A !important;
    display: inline-flex !important; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
    -webkit-tap-highlight-color: transparent;
}
button:has(> i.ph-arrow-left:only-child):not(.voltar-sobre-foto) > i { font-size: 19px !important; }
button:has(> i.ph-arrow-left:only-child):not(.voltar-sobre-foto):hover { border-color: #CBD5E1 !important; background: #F8FAFC !important; }
button:has(> i.ph-arrow-left:only-child):active { transform: scale(.92); }
/* área de toque de 44px sem crescer o desenho */
button:has(> i.ph-arrow-left:only-child) { position: relative; }
button:has(> i.ph-arrow-left:only-child)::after { content: ''; position: absolute; inset: -4px; }
/* sobre a capa da obra: vidro claro */
.voltar-sobre-foto {
    width: 40px; height: 40px; border-radius: 999px;
    background: rgba(255,255,255,.92) !important; color: #0F172A !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    display: inline-flex; align-items: center; justify-content: center;
}
.voltar-sobre-foto:active { transform: scale(.92); }

/* ===== Agenda: cabeçalho, seletor de visão, mês e próximas (redesenho) ===== */
.agenda-topo { background: rgba(247,249,252,.92); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.agenda-icone-btn { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #0369A1; background: #E0F2FE; font-size: 19px; transition: transform .15s ease, background-color .15s; }
.agenda-icone-btn:active { transform: scale(.92); }
.agenda-periodo { font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #0F172A; }
.agenda-periodo-ano { font-weight: 600; color: #94A3B8; }
.agenda-passo { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.agenda-passo > button { height: 34px; min-width: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #334155; font-size: 13px; transition: background-color .15s, color .15s, transform .15s; }
.agenda-passo > button:hover { background: #F1F5F9; }
.agenda-passo > button:active { transform: scale(.94); }
.agenda-passo-hoje { padding: 0 12px; font-size: 13px !important; font-weight: 700; color: #0369A1 !important; }
.agenda-passo-hoje.is-aqui { color: #94A3B8 !important; }
.agenda-seg { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 3px; border-radius: 12px; background: #E2E8F0; }
.agenda-seg-btn { position: relative; z-index: 1; height: 34px; font-size: 13px; font-weight: 600; color: #475569; border-radius: 9px; transition: color .2s; }
.agenda-seg-btn[aria-pressed="true"] { color: #0F172A; font-weight: 700; }
.agenda-seg-pilula { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 4); border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.12), 0 0 0 .5px rgba(16,24,40,.04); transition: transform .32s cubic-bezier(.3,.9,.3,1); }
@media (prefers-reduced-motion: reduce) { .agenda-seg-pilula { transition: none; } }

.agenda-mes-card { background: #fff; border-radius: 24px; padding: 12px 8px 8px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.04); }
.agenda-cab-dia { text-align: center; font-size: 11px; font-weight: 700; color: #64748B; padding-bottom: 6px; }
.agenda-cab-dia.is-fds { color: #94A3B8; }
.agenda-cel { height: 52px; gap: 4px; padding-top: 4px; border-radius: 16px; }
.agenda-num { width: 34px; height: 34px; font-size: 15px !important; font-weight: 600 !important; transition: background-color .2s, color .2s, transform .2s; }
.agenda-cel:active .agenda-num { transform: scale(.9); }
.agenda-num.bg-brandPrimary { font-weight: 800 !important; box-shadow: 0 4px 10px rgba(3,105,161,.28); }
.agenda-hoje { box-shadow: none; background: #E0F2FE; font-weight: 800 !important; }
.agenda-legenda { font-size: 11px; color: #94A3B8; }

.agenda-title { padding-left: 20px; padding-right: 20px; align-items: flex-end; }
.agenda-title > span:first-child { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: #0F172A; }
.agenda-title-sub { display: block; font-size: 12px; font-weight: 600; color: #64748B; letter-spacing: 0; margin-top: 2px; }

.agenda-card { border-radius: 18px; border-color: transparent !important; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 2px 10px rgba(16,24,40,.04) !important; }
.agenda-card.border-red-200 { box-shadow: inset 0 0 0 1px #FECACA, 0 1px 2px rgba(16,24,40,.05) !important; }
.agenda-card-barra { width: 4px; margin: 10px 0 10px 10px; border-radius: 4px; }

.agenda-vazio { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.agenda-vazio-ic { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #F1F5F9; color: #64748B; font-size: 20px; }
.agenda-vazio-btn { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #0369A1; background: #E0F2FE; transition: transform .15s, background-color .15s; }
.agenda-vazio-btn:hover { background: #BAE6FD; }
.agenda-vazio-btn:active { transform: scale(.95); }

.agenda-prox { margin-top: 24px; }
.agenda-prox-tit { font-size: 13px; font-weight: 700; color: #64748B; padding: 0 8px; margin-bottom: 8px; }
.agenda-prox-lista { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.agenda-prox-linha { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; text-align: left; transition: background-color .15s; }
.agenda-prox-linha + .agenda-prox-linha { border-top: 1px solid #F1F5F9; }
.agenda-prox-linha:hover { background: #F8FAFC; }
.agenda-prox-data { width: 40px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.agenda-prox-data span { font-size: 10px; font-weight: 700; color: #64748B; text-transform: capitalize; }
.agenda-prox-data b { font-size: 18px; font-weight: 800; color: #0F172A; font-variant-numeric: tabular-nums; }
.agenda-prox-cor { width: 3px; align-self: stretch; border-radius: 3px; flex-shrink: 0; }

.agenda-semana-dia { border-radius: 18px; height: 68px; }

/* Desktop: calendário à esquerda, dia e próximas à direita */
@media (min-width: 1024px) {
    .shell-largo #agendaView .agenda-topo, .shell-largo #agendaView #agendaFiltroMembros { padding-left: 32px; padding-right: 32px; }
    .shell-largo #agendaView .agenda-seg { max-width: 420px; }
    .shell-largo #agendaView .agenda-corpo { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8px; align-items: start; padding: 0 16px; }
    .shell-largo #agendaView .agenda-corpo #calendarioContainer { position: sticky; top: 196px; }
    .shell-largo #agendaView .agenda-cel { height: 72px; }
}
.agenda-corpo[data-vista="ano"] { display: block !important; }
.agenda-icone-btn-cheio { background: #0369A1; color: #fff; box-shadow: 0 4px 12px rgba(3,105,161,.3); }
.agenda-periodo { font-size: 24px; white-space: nowrap; }
@media (min-width: 1024px) { .agenda-periodo { font-size: 28px; } }
.agenda-lista-fim { padding-bottom: 120px; }
.agenda-bloco { display: flex; flex-direction: column; justify-content: flex-start; }
#mesAtualLabel { overflow: hidden; text-overflow: ellipsis; }

/* ===== Celular estreito (até 400 px): tudo cabe na tela ===== */
@media (max-width: 400px) {
    #appShell .px-6 { padding-left: 16px; padding-right: 16px; }
    #appShell .px-5 { padding-left: 14px; padding-right: 14px; }
    /* cabeçalhos: título encolhe e corta com reticências em vez de empurrar os botões */
    #appShell .sticky.top-0 h1 { font-size: 18px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #appShell .sticky.top-0 > .flex, #appShell .sticky.top-0 > div > .flex:first-child { min-width: 0; }
    #appShell .sticky.top-0 button.px-4 { padding-left: 10px; padding-right: 10px; }
    #appShell .tracking-wider, #appShell .tracking-widest { letter-spacing: .02em; }
    #appShell .uppercase.text-\[10px\], #appShell .uppercase.text-\[9px\] { font-size: 9px; letter-spacing: 0; }
    #appShell .sticky.top-0 button { white-space: nowrap; flex-shrink: 0; }
    .agenda-periodo { font-size: clamp(19px, 6vw, 24px); }
    .agenda-passo > button { min-width: 32px; height: 32px; }
    .agenda-passo-hoje { padding: 0 8px; }
    .agenda-cel { height: 46px; }
    .agenda-num { width: 32px; height: 32px; font-size: 14px !important; }
}
@media (max-width: 340px) {
    #appShell .sticky.top-0 .rotulo-largo { display: none; }
    .agenda-periodo { font-size: 18px; }
}

/* ===== Tela inicial: gráficos e rolagem de obras ===== */
.dash-faixa { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.14); }
.dash-faixa > span { display: block; min-width: 6px; border-radius: 2px; }
.dash-faixa > span:first-child { border-radius: 999px 2px 2px 999px; }
.dash-faixa > span:last-child { border-radius: 2px 999px 999px 2px; }
.dash-faixa > span:only-child { border-radius: 999px; }
.dash-faixa-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.92); }
.dash-faixa-leg span, .dash-mini-leg span { display: inline-flex; align-items: center; gap: 5px; }
.dash-faixa-leg i, .dash-mini-leg i { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.dash-faixa-leg b { font-weight: 800; color: #fff; }
.dash-faixa-clara { height: 6px; background: #F1F5F9; margin-top: 8px; }
.dash-mini-leg { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 6px 0 0; font-size: 10px; font-weight: 600; color: #64748B; }
.dash-barras { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: 8px; border-bottom: 1px solid #E2E8F0; }
.dash-barras > span { flex: 1; background: #BAE6FD; border-radius: 3px 3px 0 0; min-height: 2px; }
.dash-barras > span.atual { background: #0369A1; }

#ativosContainer.home-rolagem { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
#ativosContainer.home-rolagem::-webkit-scrollbar { display: none; }
#ativosContainer.home-rolagem > * { flex: 0 0 82%; max-width: 320px; scroll-snap-align: start; margin-bottom: 0 !important; }
#ativosContainer.home-rolagem > :only-child { flex-basis: 100%; max-width: none; }
#ativosContainer.home-rolagem::after { content: ''; flex: 0 0 12px; }
@media (max-width: 400px) { #ativosContainer.home-rolagem { scroll-padding-left: 16px; } }
.dash-alerta { margin: 2px 0 0; font-size: 11px; font-weight: 700; color: #DC2626; }

/* ===== Cartão de obra (tela inicial) ===== */
.obra-card { background: #fff; border-radius: 24px; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 6px 20px rgba(16,24,40,.06); transition: transform .15s ease, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.obra-card:active { transform: scale(.985); }
.obra-card-capa { position: relative; height: 128px; background: linear-gradient(135deg, #0EA5E9 0%, #0369A1 55%, #0B3B5C 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.obra-card-capa::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 45%); pointer-events: none; }
.obra-card-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.obra-card-sem-foto { font-size: 44px; color: rgba(255,255,255,.35); }
.obra-card-tipo { position: absolute; z-index: 1; top: 12px; left: 12px; max-width: calc(100% - 64px); display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.94); color: #0F172A; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.obra-card-tipo i { color: #0369A1; font-size: 13px; flex-shrink: 0; }
.obra-card-menu { position: absolute; z-index: 1; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.obra-card-menu::before { content: ''; position: absolute; inset: 6px; border-radius: 999px; background: rgba(15,23,42,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: -1; }
.obra-card-corpo { padding: 14px 16px 16px; }
.obra-card-nome { margin: 0; font-size: 15px; font-weight: 800; color: #0F172A; line-height: 1.25; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obra-card-sub { margin: 2px 0 0; font-size: 12px; color: #64748B; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obra-card-ind { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.obra-card-ind span { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 8px; background: #F1F5F9; color: #475569; font-size: 11px; font-weight: 700; white-space: nowrap; }
.obra-card-ind span i { font-size: 13px; }
.obra-card-ind .is-ruim { background: #FEF2F2; color: #DC2626; }
.obra-card-ind .is-alerta { background: #FFFBEB; color: #B45309; }
.obra-card-ind .is-ok { background: #ECFDF5; color: #047857; }
.obra-card-avanco { margin-top: 14px; }
.obra-card-barra { height: 6px; border-radius: 999px; background: #F1F5F9; overflow: hidden; }
.obra-card-barra span { display: block; height: 100%; min-width: 6px; border-radius: 999px; background: #0369A1; }
.obra-card-rod { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: #64748B; font-weight: 500; }
.obra-card-rod b { color: #0F172A; font-weight: 800; }
.obra-card-sub i { margin-right: 3px; color: #94A3B8; }
.dash-hoje { display: flex; gap: 8px; overflow-x: auto; margin: 12px -20px 0; padding: 0 20px 2px; scrollbar-width: none; }
.dash-hoje::-webkit-scrollbar { display: none; }
.dash-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid #E2E8F0; color: #334155; font-size: 12px; font-weight: 700; white-space: nowrap; transition: transform .15s; }
.dash-chip:active { transform: scale(.96); }
.dash-chip i { font-size: 15px; color: #64748B; }
.dash-chip.is-azul { background: #E0F2FE; border-color: #BAE6FD; color: #075985; } .dash-chip.is-azul i { color: #0369A1; }
.dash-chip.is-vermelho { background: #FEF2F2; border-color: #FECACA; color: #DC2626; } .dash-chip.is-vermelho i { color: #DC2626; }
.dash-chip.is-laranja { background: #FFEDD5; border-color: #FFEDD5; color: #B45309; } .dash-chip.is-laranja i { color: #E97316; }

/* ===== Blocos da tela inicial: envio de relatórios e notificações ===== */
.home-bloco { background: #fff; border: 1px solid #F1F5F9; border-radius: 28px; padding: 16px 16px 8px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.home-bloco-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.home-bloco-ic { width: 40px; height: 40px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; background: #F1F5F9; color: #475569; }
.home-bloco-ic.is-ruim { background: #FEF2F2; color: #DC2626; } .home-bloco-ic.is-alerta { background: #FFFBEB; color: #F59E0B; } .home-bloco-ic.is-azul { background: #E0F2FE; color: #0369A1; }
.home-bloco-tit { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: #0F172A; }
.home-bloco-cont { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #DC2626; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.home-bloco-sub { display: block; font-size: 12px; color: #64748B; margin-top: 1px; }
.home-bloco-sub .t-ruim { color: #DC2626; font-weight: 700; }
.home-bloco-link { flex-shrink: 0; height: 36px; padding: 0 4px; font-size: 12px; font-weight: 700; color: #0369A1; }
.home-bloco-mais { width: 100%; height: 40px; font-size: 12px; font-weight: 700; color: #0369A1; border-top: 1px solid #F1F5F9; margin-top: 2px; }

.envio-linha { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 0; text-align: left; }
.envio-linha + .envio-linha { border-top: 1px solid #F8FAFC; }
.envio-nome { display: block; font-size: 13px; font-weight: 700; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.envio-sub { display: block; font-size: 11px; color: #64748B; margin-top: 1px; }
.envio-ciclo { display: block; height: 4px; border-radius: 999px; background: #F1F5F9; margin-top: 8px; overflow: hidden; }
.envio-ciclo > span { display: block; height: 100%; border-radius: 999px; background: #94A3B8; }
.envio-ciclo.is-alerta > span { background: #F59E0B; } .envio-ciclo.is-ruim > span { background: #DC2626; }
.envio-tag { flex-shrink: 0; height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; background: #F1F5F9; color: #475569; }
.envio-tag.is-alerta { background: #FFFBEB; color: #B45309; } .envio-tag.is-ruim { background: #FEF2F2; color: #DC2626; }

.notif-linha { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 0; text-align: left; }
.notif-linha + .notif-linha { border-top: 1px solid #F8FAFC; }
.notif-av { position: relative; width: 38px; height: 38px; border-radius: 999px; flex-shrink: 0; background: #E0F2FE; color: #075985; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.notif-av > i:not(.notif-av-ic) { font-size: 18px; }
.notif-av-ic { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; color: #0369A1; font-size: 11px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.notif-tit { display: block; font-size: 13px; font-weight: 700; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-sub { display: block; font-size: 12px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.notif-quando { flex-shrink: 0; font-size: 11px; font-weight: 600; color: #94A3B8; align-self: flex-start; margin-top: 2px; }

/* Agenda: número de itens por dia no lugar dos pontos */
.agenda-dots { height: 18px; }
.agenda-qtd { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.agenda-qtd.is-relatorio, .agenda-leg-cor.is-relatorio { background: #E0F2FE; color: #075985; }
.agenda-qtd.is-vistoria, .agenda-leg-cor.is-vistoria { background: #CCFBF1; color: #0F766E; }
.agenda-qtd.is-evento, .agenda-leg-cor.is-evento { background: #E2E8F0; color: #334155; }
.agenda-qtd.is-atraso, .agenda-leg-cor.is-atraso { background: #FEE2E2; color: #DC2626; }
.agenda-qtd.is-branco { background: rgba(255,255,255,.25); color: #fff; }
.agenda-leg-cor { width: 14px; height: 10px; border-radius: 999px; display: inline-block; }
.agenda-cel { height: 56px; }
@media (max-width: 400px) { .agenda-cel { height: 52px; } }
.home-bloco-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-hoje { display: block; overflow: visible; margin: 6px 0 0; padding: 0; font-size: 13px; line-height: 1.5; color: #475569; font-weight: 500; }
.dash-hoje button { display: inline; font: inherit; color: inherit; padding: 0; }
.dash-hoje button b { font-weight: 700; color: #0F172A; }
.dash-hoje button.t-ruim { color: #DC2626; font-weight: 600; }
.dash-hoje button:active { opacity: .6; }
.dash-sep { margin: 0 6px; color: #CBD5E1; }
.dash-hoje > button, .dash-hoje > span { display: block; max-width: 100%; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cartão de obra: a foto ocupa o cartão inteiro, informação sobre ela */
.obra-card { position: relative; height: 300px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(150deg, #0EA5E9 0%, #0369A1 50%, #0B3B5C 100%); isolation: isolate; }
.obra-card > .obra-card-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.obra-card > .obra-card-sem-foto { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); font-size: 64px; color: rgba(255,255,255,.28); z-index: -2; }
.obra-card::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(2,6,23,.35) 0%, rgba(2,6,23,0) 26%, rgba(2,6,23,0) 42%, rgba(2,6,23,.55) 68%, rgba(2,6,23,.86) 100%); }
.obra-card-info { padding: 16px; color: #fff; }
.obra-card .obra-card-nome { color: #fff; font-size: 18px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.obra-card .obra-card-sub { color: rgba(255,255,255,.85); }
.obra-card .obra-card-sub i { color: rgba(255,255,255,.8); }
.obra-card .obra-card-ind { margin-top: 10px; }
.obra-card .obra-card-ind span { background: rgba(255,255,255,.18); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.obra-card .obra-card-ind .is-ok { background: rgba(16,185,129,.9); color: #fff; }
.obra-card .obra-card-ind .is-alerta { background: rgba(245,158,11,.95); color: #78350F; }
.obra-card .obra-card-ind .is-ruim { background: rgba(220,38,38,.92); color: #fff; }
.obra-card .obra-card-avanco { margin-top: 12px; }
.obra-card .obra-card-barra { background: rgba(255,255,255,.25); }
.obra-card .obra-card-barra span { background: #fff; }
.obra-card .obra-card-rod { color: rgba(255,255,255,.85); }
.obra-card .obra-card-rod b { color: #fff; }
.obra-card .obra-card-tipo { top: 12px; left: 12px; }
#ativosContainer.home-rolagem > .obra-card { flex-basis: 84%; max-width: 330px; }
.obra-card { height: 320px; }
.obra-card .obra-card-ind { flex-wrap: wrap; max-height: 56px; overflow: hidden; gap: 5px; }
.obra-card .obra-card-ind span { height: 22px; padding: 0 7px; font-size: 11px; border-radius: 7px; }
.obra-card .obra-card-ind span:not(.is-ok):not(.is-alerta):not(.is-ruim) { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 4px; color: rgba(255,255,255,.88); }
.obra-card > .obra-card-info > .obra-card-rod { margin-top: 8px; }

/* Notificações: faixa de uma linha (lista completa no sino) */
.notif-faixa { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 22px; text-align: left; background: #fff; border: 1px solid #E0F2FE; box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: transform .15s; }
.notif-faixa:active { transform: scale(.985); }
.notif-faixa-ic { position: relative; width: 40px; height: 40px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #0369A1; color: #fff; font-size: 19px; }
.notif-faixa-qtd { position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #E97316; color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.notif-faixa-tit { display: block; font-size: 14px; font-weight: 800; color: #0F172A; }
.notif-faixa-sub { display: block; font-size: 12px; color: #64748B; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-faixa-seta { color: #94A3B8; font-size: 14px; flex-shrink: 0; }

/* Envio de relatórios: cores da marca */
.home-bloco-ic.is-alerta, .home-bloco-ic.is-azul { background: #E0F2FE; color: #0369A1; }
.envio-ciclo > span { background: linear-gradient(90deg, #7DD3FC, #0369A1); }
.envio-ciclo.is-alerta > span { background: linear-gradient(90deg, #FCD34D, #E97316); }
.envio-ciclo.is-ruim > span { background: #DC2626; }
.envio-tag { background: #E0F2FE; color: #075985; }
.envio-tag.is-alerta { background: #FFEDD5; color: #B45309; }

/* ===== Cores fortes: envio, notificações, obras ===== */
.home-bloco-ic { color: #fff !important; }
.home-bloco-ic.is-azul { background: #0369A1 !important; }
.home-bloco-ic.is-alerta { background: #E97316 !important; }
.home-bloco-ic.is-ruim { background: #DC2626 !important; }
.home-bloco-cont { background: #E97316; }
.envio-ciclo { height: 6px; background: #E2E8F0; }
.envio-ciclo > span { background: #0369A1 !important; }
.envio-ciclo.is-alerta > span { background: #E97316 !important; }
.envio-ciclo.is-ruim > span { background: #DC2626 !important; }
.envio-tag { background: #0369A1 !important; color: #fff !important; }
.envio-tag.is-alerta { background: #E97316 !important; }
.envio-tag.is-ruim { background: #DC2626 !important; }
.notif-av { color: #fff !important; }
.notif-av > i:not(.notif-av-ic) { color: #fff; }

#dashObrasCount { display: inline-flex; align-items: center; gap: 14px; }
.obras-link { font-size: 12px; font-weight: 700; color: #0369A1; height: 32px; }
.obras-link-sec { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #64748B; height: 32px; }
.obra-card-todas { flex: 0 0 150px !important; max-width: 150px !important; height: 320px; border-radius: 24px; border: 2px dashed #CBD5E1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px; color: #0369A1; scroll-snap-align: start; }
.obra-card-todas i { font-size: 28px; }
.obra-card-todas b { font-size: 14px; color: #0F172A; }
.obra-card-todas span { font-size: 11px; color: #64748B; }

/* Envio = amarelo, Notificações = vermelho (tons do app: amber-400/500, red-500) */
.home-bloco-ic.is-amarelo { background: #FBBF24 !important; color: #78350F !important; }
.home-bloco-ic.is-vermelho { background: #EF4444 !important; color: #fff !important; }
.home-bloco-cont { background: #EF4444; }
.envio-ciclo > span { background: #F59E0B !important; }
.envio-ciclo.is-alerta > span { background: #F59E0B !important; }
.envio-ciclo.is-ruim > span { background: #EF4444 !important; }
.envio-tag { background: #FBBF24 !important; color: #78350F !important; }
.envio-tag.is-alerta { background: #F59E0B !important; color: #78350F !important; }
.envio-tag.is-ruim { background: #EF4444 !important; color: #fff !important; }
.home-bloco-sub .t-ruim { color: #DC2626; }


/* ===== Paleta única do app =====
   Marca #0369A1 (claro #E0F2FE, escuro #075985) · quente #E97316 · sucesso #10B981
   aviso #F59E0B (texto #B45309, sobre amarelo #78350F) · perigo #EF4444 (texto #DC2626, fundo #FEF2F2)
   texto #0F172A · secundário #64748B · neutros slate. Barras de progresso com degradê. */
.envio-ciclo > span { background: linear-gradient(90deg, #FDE68A 0%, #F59E0B 100%) !important; }
.envio-ciclo.is-alerta > span { background: linear-gradient(90deg, #FCD34D 0%, #E97316 100%) !important; }
.envio-ciclo.is-ruim > span { background: linear-gradient(90deg, #FCA5A5 0%, #EF4444 100%) !important; }
.dash-barras > span.atual { background: linear-gradient(180deg, #38BDF8 0%, #0369A1 100%); }
.dash-barras > span { background: #BAE6FD; }
.obra-card-barra span { background: linear-gradient(90deg, #7DD3FC 0%, #0369A1 100%); }
.obra-card .obra-card-barra span { background: linear-gradient(90deg, rgba(255,255,255,.7) 0%, #fff 100%); }
.dash-faixa-clara > span { opacity: .95; }
.home-bloco-cont, .notif-faixa-qtd { background: #EF4444; }
.dash-alerta, .home-bloco-sub .t-ruim, .dash-hoje button.t-ruim { color: #DC2626; }
.agenda-qtd.is-atraso, .agenda-leg-cor.is-atraso { background: #FEF2F2; color: #DC2626; }
.obra-card-ind .is-ok { background: #ECFDF5; color: #047857; }
.obra-card .obra-card-ind .is-ok { background: rgba(16,185,129,.92); color: #fff; }
.obra-card .obra-card-ind .is-ruim { background: rgba(239,68,68,.94); color: #fff; }
.obra-card .obra-card-ind .is-alerta { background: rgba(245,158,11,.95); color: #78350F; }#dashObrasCount button { line-height: 1; }

/* Agenda no Google */
.agenda-google-btn { width: 100%; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; border: 1px solid #E2E8F0; background: #fff; color: #0369A1; font-size: 13px; font-weight: 700; }
.agenda-google-btn i { font-size: 16px; }
.agenda-google-btn:active { transform: scale(.98); }
.ag-google-passos { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #334155; line-height: 1.45; list-style: decimal; }
.ag-google-passos b { color: #0F172A; }
.ag-google-acao { height: 44px; border-radius: 12px; border: 1px solid #E2E8F0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; color: #0369A1; text-decoration: none; }

/* ===== Tons constantes no app inteiro =====
   Ícones em quadrado: colorido, mas cada cor com UM tom só no app inteiro
   (fundo claro + ícone na cor cheia). Vale para quadrados de tamanho fixo sem
   texto; selos, botões com texto e círculos de status ficam como estão. */
/* azul */
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-sky"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-sky"],
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-blue"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-blue"],
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-indigo"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-indigo"],
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-violet"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-violet"],
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-purple"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-purple"],
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-brandPrimary"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-brandPrimary"] { background-color: #E0F2FE !important; background-image: none !important; color: #0369A1 !important; box-shadow: none !important; }
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-sky"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-sky"] > i,
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-blue"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-blue"] > i,
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-indigo"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-indigo"] > i,
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-violet"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-violet"] > i,
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-purple"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-purple"] > i,
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-brandPrimary"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-brandPrimary"] > i { color: #0369A1 !important; }
/* vermelho */
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-red"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-red"],
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-rose"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-rose"],
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-pink"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-pink"] { background-color: #FEE2E2 !important; background-image: none !important; color: #EF4444 !important; box-shadow: none !important; }
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-red"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-red"] > i,
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-rose"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-rose"] > i,
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-pink"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-pink"] > i { color: #EF4444 !important; }
/* laranja */
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-orange"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-orange"],
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-brandWarm"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-brandWarm"] { background-color: #FFEDD5 !important; background-image: none !important; color: #E97316 !important; box-shadow: none !important; }
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-orange"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-orange"] > i,
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-brandWarm"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-brandWarm"] > i { color: #E97316 !important; }
/* amarelo */
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-amber"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-amber"],
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-yellow"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-yellow"] { background-color: #FEF3C7 !important; background-image: none !important; color: #D97706 !important; box-shadow: none !important; }
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-amber"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-amber"] > i,
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-yellow"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-yellow"] > i { color: #D97706 !important; }
/* verde */
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-green"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-green"],
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-emerald"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-emerald"],
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-lime"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-lime"],
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-brandGreen"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-brandGreen"] { background-color: #D1FAE5 !important; background-image: none !important; color: #059669 !important; box-shadow: none !important; }
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-green"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-green"] > i,
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-emerald"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-emerald"] > i,
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-lime"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-lime"] > i,
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-brandGreen"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-brandGreen"] > i { color: #059669 !important; }
/* turquesa */
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-teal"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-teal"],
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-cyan"], #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-cyan"] { background-color: #CCFBF1 !important; background-image: none !important; color: #0D9488 !important; box-shadow: none !important; }
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-teal"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-teal"] > i,
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-cyan"] > i, #appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="bg-cyan"] > i { color: #0D9488 !important; }
#appShell :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child):not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo)[class*="text-"]:not([class*="bg-"]) { background-color: #E0F2FE; color: #0369A1; }
/* 2) Azuis do Tailwind (blue/indigo) puxados para o azul da marca */
.bg-blue-50 { background-color: #F0F9FF !important; }
.bg-blue-100 { background-color: #E0F2FE !important; }
.bg-blue-400 { background-color: #38BDF8 !important; }
.bg-blue-500, .bg-blue-600 { background-color: #0369A1 !important; }
.text-blue-400, .text-blue-500 { color: #0284C7 !important; }
.text-blue-600, .text-blue-700 { color: #0369A1 !important; }
.text-blue-800 { color: #075985 !important; }
.border-blue-100 { border-color: #E0F2FE !important; }
.border-blue-200 { border-color: #BAE6FD !important; }
.border-blue-300 { border-color: #7DD3FC !important; }
/* 3) Cartão azul da tela inicial: o mesmo degradê da marca usado nos cartões de obra */
#mainView .from-sky-600.to-cyan-800 { background-image: linear-gradient(135deg, #0284C7 0%, #0369A1 50%, #075985 100%) !important; box-shadow: 0 16px 32px rgba(3,105,161,.22) !important; }
.obra-card { background: linear-gradient(150deg, #0284C7 0%, #0369A1 50%, #075985 100%); }
/* Mesmo desenho nos quadrados de ícone: só na tela inicial (nas outras telas, o tamanho original) */
#mainView :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child)[class*="bg-"]:not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo):is([class*="w-10"], [class*="w-11"], [class*="w-12"]) { border-radius: 14px !important; }
#mainView :is(div, span, button)[class*="w-"][class*="h-"]:has(> i[class*="ph-"]:only-child)[class*="bg-"]:not([class*="rounded-full"]):not([class*="px-"]):not([class*="py-"]):not([class*="flex-1"]):not(.home-bloco-ic):not(.notif-av):not(.agenda-qtd):not(.obra-card-tipo):is([class*="w-10"], [class*="w-11"], [class*="w-12"]) > i { font-size: 21px !important; }

/* Marca Luma Obras no topo da tela inicial */
h1.marca-luma { margin: 0; font-family: Fredoka, Inter, sans-serif; font-size: 25px; font-weight: 600; letter-spacing: -0.03em; color: #075985; line-height: 1; }
h1.marca-luma span { font-weight: 500; color: #0369A1; }
h1.marca-luma.marca-luma-clara { color: #fff; font-size: 26px; }
h1.marca-luma.marca-luma-clara span { color: #BAE6FD; }
.marca-luma-img { height: 30px; width: auto; display: block; }

/* ===== Abertura: o logo Luma Obras aparecendo ===== */
.splash-luma { background: #F8FAFF; --u: min(76px, 17vw); }
.splash-logo { display: flex; align-items: flex-start; }
.splash-simbolo { position: relative; width: var(--u); height: var(--u); flex-shrink: 0;
    opacity: 0; }
.splash-play .splash-simbolo { animation: splash-simbolo .7s cubic-bezier(.34, 1.45, .5, 1) both; }
.splash-simbolo img { width: 100%; height: 100%; display: block; }
.splash-luz { position: absolute; left: 53%; top: 56%; width: 60%; height: 60%; border-radius: 50%; transform: translate(-50%, -50%) scale(.2); opacity: 0;
    background: radial-gradient(circle, rgba(249,115,22,.65) 0%, rgba(249,115,22,.25) 40%, rgba(249,115,22,0) 70%);
    pointer-events: none; }
.splash-play .splash-luz { animation: splash-luz .9s ease-out .45s both; }
.splash-texto { height: calc(var(--u) * .623); margin-top: calc(var(--u) * .248); margin-left: calc(var(--u) * .02);
    opacity: 0; }
.splash-play .splash-texto { animation: splash-texto .65s cubic-bezier(.2, .8, .2, 1) .32s both; }
.splash-texto img { height: 100%; width: auto; display: block; }
.splash-rodape { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; }
.splash-play .splash-rodape { animation: splash-fade .4s ease-out .75s both; }
.splash-trilho { width: 180px; height: 4px; border-radius: 999px; background: #E0F2FE; overflow: hidden; }
#loadingBar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #38BDF8, #0369A1); }
#loadingText { margin: 0; font-size: 11px; font-weight: 600; color: #94A3B8; letter-spacing: .02em; }
@keyframes splash-simbolo { 0% { opacity: 0; transform: translateY(10px) scale(.55) rotate(-6deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes splash-luz { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); } }
@keyframes splash-texto { 0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-10px); } 100% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
@keyframes splash-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .splash-simbolo, .splash-texto, .splash-rodape, .splash-play .splash-simbolo, .splash-play .splash-texto, .splash-play .splash-rodape { animation: none; opacity: 1; } .splash-luz { display: none; } }

/* ===== Tela inicial: diagramação e proporção =====
   Grade: margem lateral única de 20 px (16 px em telas estreitas), 12 px entre
   cartões do mesmo grupo, 32 px entre seções, cantos de 24 px em tudo. */
#mainView > .px-5, #mainView > .px-6, #mainView > .home-rolagem { padding-left: 20px !important; padding-right: 20px !important; }
#mainView > header { padding-left: 20px; padding-right: 20px; }
#mainView .rounded-\[2rem\] { border-radius: 24px !important; }
#mainView .home-bloco { border-radius: 24px; }
.home-secao { display: flex; align-items: center; justify-content: space-between; padding: 32px 20px 12px; }
.home-secao h3 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #64748B; line-height: 1; }
#homeSecAcomp:has(+ #dashEnviosRelatorio.hidden):has(~ #dashNotificacoes.hidden) { display: none; }
#dashEnviosRelatorio, #dashNotificacoes { padding-bottom: 12px !important; }
.home-metricas { gap: 12px !important; }
/* cartões Demandas e Relatórios: gráfico sempre colado embaixo, mesma altura */
.home-metricas .grid > button { padding: 18px !important; gap: 6px !important; }
#dashDemandasViz, #dashRelatoriosViz { margin-top: auto; }
/* busca mais leve */
#searchInput { height: 44px; padding-top: 0 !important; padding-bottom: 0 !important; border-radius: 14px !important; }
#mainView > div:has(> .relative > #searchInput) { padding-bottom: 12px !important; }
/* obras: cartão menos alto para a foto não dominar a tela */
.obra-card { height: 300px !important; }
.obra-card-todas { height: 300px !important; }
#ativosContainer.home-rolagem { padding-bottom: 4px !important; }
@media (max-width: 400px) {
    #mainView > .px-5, #mainView > .px-6, #mainView > .home-rolagem, #mainView > header { padding-left: 16px !important; padding-right: 16px !important; }
    .home-secao { padding-left: 16px; padding-right: 16px; }
}
/* logo do topo maior: legível em celular pequeno */
.marca-luma-img { height: 38px !important; }
#mainView > header { padding-top: 24px !important; }
@media (max-width: 400px) { .marca-luma-img { height: 36px !important; } #mainView > header .gap-4 { gap: 10px; } }
@media (max-width: 340px) { .marca-luma-img { height: 32px !important; } }
/* topo: ícones e logo no mesmo eixo vertical */
#mainView > header { align-items: center !important; }
#mainView > header > div:last-child { display: flex; align-items: center; gap: 6px !important; }
#mainView > header > div:last-child > button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
#mainView > header > div:last-child > button > i { display: block; line-height: 1; }
#mainView > header h1 { display: flex; align-items: center; }
/* o nome ocupa a parte de baixo da imagem (a casa é mais alta): sobe 2 px para o texto ficar no eixo dos ícones */
.marca-luma-img { transform: translateY(-2px); }

/* ===== Proporção áurea e escala tipográfica (tela inicial) =====
   Espaços 12 · 20 · 32 (cada passo ~1,6×). Texto na escala 1,25:
   12 · 15 · 19 · 24 · 30 · 46. Cartão de obra em retângulo áureo
   (largura = 1,618 × altura). Resumo: cartão azul : cartões de baixo = 1 : 1,618. */
#dashData { font-size: 12px !important; margin-bottom: 4px !important; }
#mainView h2:has(> #dashSaudacao) { font-size: 30px !important; line-height: 1.15 !important; letter-spacing: -0.025em !important; }
.dash-hoje { font-size: 15px !important; margin-top: 8px !important; }
#dashTotalObrasBig { font-size: 46px !important; line-height: 1 !important; }
#dashPendenciasCont, #dashResolvedCont { font-size: 30px !important; line-height: 1.1 !important; }
.home-bloco-tit, .notif-tit, .envio-nome { font-size: 15px !important; }
.home-bloco-sub, .notif-sub, .envio-sub { font-size: 12px !important; }
.home-secao h3 { font-size: 12px; }
/* espaços: 20 por dentro dos cartões */
.home-bloco { padding: 20px 20px 8px !important; }
.home-metricas .grid > button { padding: 20px !important; }
.home-metricas > button:first-child { padding: 20px !important; }
/* cartão azul : cartões de resumo = 1 : 1,618 */
.home-metricas > button:first-child { min-height: 148px; display: flex; flex-direction: column; justify-content: center; }
.home-metricas .grid > button { min-height: 240px; }
/* cartão de obra: volta ao tamanho anterior (264 px, informação completa) */
.obra-card .obra-card-nome { font-size: 19px !important; }


#ativosContainer.home-rolagem > .obra-card { flex-basis: 86% !important; max-width: 340px !important; }
