/* Interface municipal: superfícies claras, verde institucional e controles de toque. */
:root {
    --ci-primary: #0F766E; --ci-primary-dark: #095c56; --ci-primary-light: #e8f6f4;
    --ci-ink: #0B2D4A; --ci-ink-soft: #64748b; --ci-border: #E7EDF3;
    --ci-bg: #f4f7fa; --ci-surface: #fff; --ci-danger: #bf4040;
    --ci-radius: 16px; --ci-radius-sm: 9px; --ci-shadow: 0 3px 15px #203c3610;
    --bs-primary: #0F766E; --bs-primary-rgb: 15,118,110; --bs-link-color: #0F766E;
    --bs-link-hover-color: #095c56; --bs-body-color: #0B2D4A; --bs-body-bg: #f4f7fa;
    --bs-border-color: #E7EDF3;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body { margin: 0; font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif; background: var(--ci-bg); color: var(--ci-ink); font-size: 15px; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6 { color: var(--ci-ink); font-weight: 700; letter-spacing: -.035em; }
a { text-decoration: none; }
button,a,input,select,textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #64b9a2; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 2000; background: white; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.bi { line-height: 1; flex-shrink: 0; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; padding: 11px 18px; font-size: 14px; font-weight: 600; transition: background .15s,box-shadow .15s; white-space: normal; }
.btn-primary { --bs-btn-bg: var(--ci-primary); --bs-btn-border-color: var(--ci-primary); --bs-btn-hover-bg: var(--ci-primary-dark); --bs-btn-hover-border-color: var(--ci-primary-dark); --bs-btn-active-bg: var(--ci-primary-dark); --bs-btn-active-border-color: var(--ci-primary-dark); --bs-btn-disabled-bg: #699c8e; --bs-btn-disabled-border-color: #699c8e; box-shadow: 0 3px 8px #0F766E18; }
.btn-outline-primary { --bs-btn-color: var(--ci-primary); --bs-btn-border-color: #c6ded5; --bs-btn-hover-bg: var(--ci-primary-light); --bs-btn-hover-color: var(--ci-primary-dark); --bs-btn-hover-border-color: #9ac8b6; --bs-btn-active-bg: var(--ci-primary-dark); background: white; }
.btn-outline-secondary { --bs-btn-color: #586b63; --bs-btn-border-color: #dbe3de; --bs-btn-hover-bg: #edf2ee; --bs-btn-hover-color: #0B2D4A; --bs-btn-hover-border-color: #c4d1c9; background: white; }
.btn-sm { min-height: 44px; padding: 8px 12px; font-size: 13px; }
.icon-button { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--ci-border); border-radius: 10px; color: var(--ci-ink); background: white; font-size: 23px; }
.form-control,.form-select { min-height: 48px; border-radius: 9px; border-color: #dce4de; background-color: white; color: var(--ci-ink); font-size: 16px; padding: 11px 13px; }
.form-control::placeholder { color: #89968f; font-size: 14px; }
.form-control:focus,.form-select:focus { border-color: #64ac94; box-shadow: 0 0 0 3px #0F766E17; }
.form-control:disabled { background: #f3f6f3; color: #7a8981; }
.form-label { font-size: 13px; font-weight: 600; color: #41584e; margin-bottom: 8px; }
.form-text,.legenda-obrigatorio { font-size: 12px; color: var(--ci-ink-soft); line-height: 1.6; }
.obrigatorio { color: #bb4545; }
.input-validation-error,.is-invalid { border-color: #d35959 !important; }
.field-validation-error { display: block; margin-top: 6px; }
.validation-summary-valid { display: none; }
.alert { border-radius: 12px; font-size: 14px; }
.alert ul { margin: 0; padding-left: 20px; }
.app-alert-success { background: #e9f5ee; border-color: #c7e3d0; color: #226c45; }
/* Navegação */
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; padding: 30px 18px 18px; background: #fff; border-right: 1px solid var(--ci-border); z-index: 1100; display: flex; flex-direction: column; overflow-y: auto; }
.app-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; color: var(--ci-ink); }
.app-brand:hover { color: var(--ci-primary); }
.app-brand-icon { width: 43px; height: 46px; background: var(--ci-primary); color: white; display: grid; place-items: center; border-radius: 12px; font-size: 24px; }
.app-brand-text strong { display: block; font-size: 18px; line-height: 1.1; letter-spacing: -.5px; }
.app-brand-text strong span { display: block; }
.app-brand-text small { display: block; font-size: 8px; letter-spacing: 2px; color: #7f8d85; margin-top: 7px; font-weight: 700; }
.sidebar-section-label { color: #8b978f; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; margin: 22px 14px 10px; }
.sidebar-nav { display: grid; gap: 4px; }
.sidebar-nav a { display: flex; align-items: center; min-height: 44px; padding: 11px 14px; border-radius: 9px; color: #61736a; font-size: 13px; font-weight: 500; gap: 12px; }
.sidebar-nav a > .bi { font-size: 17px; }
.sidebar-nav a:hover { background: #f4f7f4; color: var(--ci-primary); }
.sidebar-nav a.active { background: var(--ci-primary-light); color: var(--ci-primary); font-weight: 700; }
.nav-chevron { margin-left: auto; font-size: 10px !important; opacity: 0; }
.active .nav-chevron { opacity: 1; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.local-storage-note { display: flex; gap: 10px; align-items: center; background: #f7f9f6; border: 1px solid #eaf0e8; border-radius: 11px; padding: 13px 12px; }
.local-storage-note > i { font-size: 21px; color: #6d9980; }
.local-storage-note strong { display: block; font-size: 11px; font-weight: 600; }
.local-storage-note small { display: block; font-size: 10px; color: #7e8b82; margin-top: 3px; }
.sidebar-signout { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; border: 0; background: transparent; color: #7b8a81; font-size: 12px; margin-top: 10px; padding: 12px; }
.sidebar-signout:hover { color: var(--ci-danger); }
.app-topbar { height: 84px; margin-left: 248px; background: #ffffffed; border-bottom: 1px solid var(--ci-border); display: flex; align-items: center; justify-content: space-between; padding: 0 38px; gap: 16px; }
.topbar-location { display: flex; align-items: center; gap: 11px; min-width: 0; }
.location-icon { width: 36px; height: 36px; background: #f1f5f0; border-radius: 10px; display: grid; place-items: center; color: #68866d; font-size: 18px; }
.topbar-location small { display: block; color: #859187; letter-spacing: 1.5px; font-size: 8px; font-weight: 700; }
.topbar-location strong { display: block; font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-context { display: flex; align-items: center; gap: 7px; color: #7f8d83; font-size: 11px; margin-right: 18px; }
.status-dot { display: inline-block; height: 6px; width: 6px; border-radius: 50%; background: #72a17c; }
.user-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #eaf1e7; color: #627d58; font-size: 19px; }
.user-details strong { font-size: 12px; display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.user-details small { display: block; font-size: 10px; color: #829084; margin-top: 3px; }
.mobile-menu-toggle,.menu-close,.mobile-bottom-nav { display: none; }
.app-content { margin-left: 248px; }
.app-main { width: 100%; max-width: 1520px; padding: 34px 38px; margin: 0 auto; min-height: calc(100dvh - 150px); }
.app-main:focus { outline: none; }
.app-footer { display: flex; justify-content: space-between; gap: 16px; padding: 12px 38px 24px; color: #94a097; font-size: 10px; }
.app-offline-banner { background: #fff4df; color: #87621b; padding: 12px 24px; font-size: 13px; }
/* Cabeçalhos e visão geral */
.breadcrumb-line { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #96a198; margin-bottom: 25px; }
.breadcrumb-line a { color: #7c8d81; }
.breadcrumb-line .bi { font-size: 10px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.7px; color: #789078; margin-bottom: 8px; }
.page-heading h1 { font-size: clamp(27px,3vw,34px); line-height: 1.2; margin-bottom: 8px; }
.page-heading p { font-size: 13px; color: #7d8b81; margin: 0; line-height: 1.6; }
h1.h4 { font-size: 27px; border: 0; padding: 0; }
.overview-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 28px; }
.overview-card { border: 1px solid var(--ci-border); border-radius: 14px; background: white; padding: 20px; position: relative; }
.overview-card .stat-icon { position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f0f5ef; color: #7a9270; font-size: 16px; }
.overview-card .stat-label { font-size: 11px; font-weight: 500; color: #7d8d80; display: block; padding-right: 30px; }
.overview-card strong { display: block; font-size: 30px; letter-spacing: -1px; margin: 9px 0 5px; line-height: 1.2; }
.overview-card small { font-size: 10px; color: #8b978d; display: block; }
.overview-card.featured { background: #edf5ee; border-color: #dce9dc; }
.overview-card.featured .stat-icon { background: #dcecdc; color: #4f7e50; }
.overview-card.featured strong { color: #397146; }
.quick-tip { display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px; border-radius: 12px; background: #eef3e8; border: 1px solid #e2e9d8; margin-bottom: 24px; color: #697b52; font-size: 12px; line-height: 1.6; }
.quick-tip > .bi { margin-top: 3px; font-size: 18px; }
.quick-tip strong { color: #516440; }
.quick-tip a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: #516440; }
/* Filtros e listagem de imóveis */
.registry-panel { background: white; border: 1px solid var(--ci-border); border-radius: 16px; overflow: hidden; }
.registry-heading { padding: 23px 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.registry-heading h2 { font-size: 16px; margin: 0; letter-spacing: -.3px; }
.registry-heading p { font-size: 11px; color: #8a978d; margin: 5px 0 0; }
.count-pill { font-size: 11px; color: #78926b; background: #f0f4e9; border-radius: 6px; padding: 5px 9px; white-space: nowrap; }
.registry-filters { padding: 20px 24px; display: grid; grid-template-columns: minmax(160px,1.6fr) minmax(140px,1fr) minmax(110px,.7fr) auto; gap: 12px; align-items: end; border-bottom: 1px solid #edf0ec; }
.registry-filters .form-label { font-size: 10px; color: #859185; margin-bottom: 7px; }
.registry-filters .form-control,.registry-filters .form-select { min-height: 44px; font-size: 12px; padding: 10px 12px; }
.registry-filters .form-control::placeholder { font-size: 12px; }
.search-input { position: relative; }
.search-input > .bi { position: absolute; left: 13px; top: 15px; color: #9aa79b; font-size: 14px; }
.search-input .form-control { padding-left: 36px; }
.filters-active { padding: 12px 24px; color: #76866e; font-size: 12px; background: #fafcf8; border-bottom: 1px solid #edf0ec; display: flex; justify-content: space-between; gap: 12px; }
.filters-active a { font-weight: 600; white-space: nowrap; }
.table { --bs-table-bg: #fff; --bs-table-striped-bg: #fcfdfb; margin-bottom: 0; font-size: 12px; }
.table thead th { background: #fafbf9; color: #8b988b; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; padding: 16px 20px; border-bottom: 1px solid #e9eee6; white-space: nowrap; }
.table tbody td { padding: 17px 20px; vertical-align: middle; border-color: #edf0e9; color: #6e8071; overflow-wrap: anywhere; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td strong { font-weight: 600; color: #405b47; display: block; font-size: 12px; }
.table td small { display: block; color: #93a08e; font-size: 10px; margin-top: 5px; }
.property-cell { display: flex; gap: 12px; align-items: center; }
.property-symbol { width: 38px; height: 38px; background: #f2f5ee; border: 1px solid #e8ede3; border-radius: 10px; color: #829872; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.property-code { font-size: 10px; color: #8e9c86; font-weight: 500; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; color: #59824e; background: #edf5e7; border: 1px solid #e2edd9; border-radius: 5px; padding: 5px 8px; font-size: 10px; white-space: nowrap; }
.status-badge.inactive { color: #8e9188; background: #f0f1ed; border-color: #e7e9e2; }
.status-badge .status-dot { background: currentColor; height: 4px; width: 4px; }
.table-action { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; color: #8c9d80; border: 1px solid #e3eadd; border-radius: 8px; }
.table-action:hover { background: #edf5e7; color: #0F766E; }
.table-action.danger:hover { background: #fff1ee; color: #bf4040; }
.row-actions { display: flex; align-items: center; gap: 6px; }
.registry-footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 24px; border-top: 1px solid #edf0e9; font-size: 11px; color: #8b9987; }
.pagination { margin: 0; gap: 5px; flex-wrap: wrap; }
.pagination .page-link { min-width: 36px; min-height: 44px; display: grid; place-items: center; padding: 7px 11px; border: 1px solid #e4ebde; border-radius: 7px !important; color: #819176; font-size: 12px; }
.pagination .active .page-link { background: var(--ci-primary); border-color: var(--ci-primary); color: white; }
.empty-state { text-align: center; padding: 55px 24px; }
.empty-state > i { width: 64px; height: 64px; display: inline-grid; place-items: center; background: #f0f5ec; color: #86a276; font-size: 28px; border-radius: 18px; margin-bottom: 18px; }
.empty-state h3 { font-size: 19px; }
.empty-state p { color: #83917b; font-size: 13px; max-width: 360px; margin: 10px auto 20px; line-height: 1.7; }
.cartoes-mobile { display: none; }
.cartao-registro { border-radius: 13px; border: 1px solid var(--ci-border); box-shadow: none; }
.card-body { padding: 18px; }
.property-card { display: block; background: white; padding: 18px; color: inherit; border: 1px solid var(--ci-border); border-radius: 13px; margin: 12px 16px; }
.property-card:hover { border-color: #8fbaa0; color: inherit; }
.property-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.property-card h3 { font-size: 15px; letter-spacing: -.2px; margin: 0 0 5px; }
.property-card p { color: #85927d; font-size: 12px; margin: 0 0 12px; }
.property-card-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #eef1ea; font-size: 11px; color: #7e8f75; gap: 12px; }
.property-card-bottom span { overflow-wrap: anywhere; }
.property-card-footer { display: flex; align-items: center; justify-content: space-between; font-size: 11px; margin-top: 12px; color: #8d9b85; }
.property-card-footer strong { font-size: 11px; color: #0F766E; }
/* Cadastro guiado: o formulário completo continua disponível sem JavaScript. */
.form-page-heading { margin-bottom: 24px; }
.form-page-heading .back-link { color: #839078; font-size: 12px; display: inline-flex; gap: 8px; align-items: center; margin-bottom: 20px; min-height: 32px; }
.form-page-heading h1 { font-size: 29px; margin: 0 0 8px; }
.form-page-heading p { color: #84907e; font-size: 13px; margin: 0; }
.wizard-nav { display: none; }
.wizard-ready .wizard-nav { display: flex; gap: 5px; padding: 16px; border: 1px solid var(--ci-border); background: white; border-radius: 14px; margin-bottom: 20px; }
.wizard-step { display: flex; align-items: center; justify-content: center; gap: 9px; flex: 1; border: 0; border-radius: 8px; padding: 10px 7px; min-height: 44px; font-size: 12px; color: #8a9683; background: transparent; }
.wizard-step-number { width: 25px; height: 25px; border-radius: 50%; background: #f0f3ec; color: #8c9883; display: grid; place-items: center; font-size: 10px; flex-shrink: 0; }
.wizard-step.active { color: var(--ci-primary); background: #edf6ef; font-weight: 700; }
.wizard-step.active .wizard-step-number { background: var(--ci-primary); color: white; }
.wizard-step.done .wizard-step-number { background: #dfeedd; color: #508846; }
.wizard-progress-text { display: none; }
.wizard-ready .wizard-progress-text { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: #899680; margin: 0 3px 13px; }
.etapa-imovel { background: white; border: 1px solid var(--ci-border); border-radius: 15px; padding: 26px 28px 15px; margin-bottom: 18px; }
.etapa-imovel h2 { font-size: 18px; letter-spacing: -.4px; margin: 0 0 8px; }
.step-description { color: #8a9682; font-size: 12px; line-height: 1.7; margin: 0 0 24px; }
.etapa-imovel .row { --bs-gutter-x: 22px; }
.etapa-imovel .mb-3 { margin-bottom: 22px !important; }
.form-section-note { background: #f5f8f1; color: #7b8e6d; padding: 11px 14px; border-radius: 8px; font-size: 12px; margin-bottom: 22px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #ffffffed; border: 1px solid var(--ci-border); border-radius: 13px; padding: 16px 22px; position: sticky; bottom: 16px; z-index: 10; backdrop-filter: blur(10px); }
.form-actions-right { display: flex; gap: 10px; }
.wizard-back,.wizard-next { display: none; }
.wizard-ready .wizard-back,.wizard-ready .wizard-next { display: inline-flex; }
.wizard-error { color: #a73e3e; background: #fff3f0; border: 1px solid #f1d6cc; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 13px; }
.review-panel { background: #f4f8f0; border: 1px solid #e1ebd8; border-radius: 11px; padding: 18px; margin-bottom: 22px; }
.review-panel h3 { font-size: 14px; margin: 0 0 14px; }
.review-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.review-grid dt { color: #8b9980; font-size: 10px; font-weight: 500; margin-bottom: 4px; }
.review-grid dd { font-size: 12px; margin: 0; color: #506b43; overflow-wrap: anywhere; }
[data-seletor-pesquisa] { position: relative; }
[data-seletor-pesquisa]:has(.lista-pesquisa:not(.d-none)) { z-index: 30; }
.lista-pesquisa { max-height: 250px; overflow-y: auto; background: white; border: 1px solid #dce5d6; box-shadow: 0 12px 26px #0B2D4A20; border-radius: 10px; z-index: 31; margin-top: 4px; }
.lista-pesquisa .list-group-item { min-height: 48px; padding: 12px 15px; font-size: 14px; border-color: #eef1e9; text-align: left; }
.lista-pesquisa .list-group-item:focus { background: #e8f6f4; }
/* Demais cadastros seguem a mesma linguagem. */
.app-main > form:not(.registry-filters):not(.imovel-form):not(.row) { background: white; border: 1px solid var(--ci-border); border-radius: 15px; padding: 25px; }
.app-main > form > h2.h6 { margin: 22px 0 18px; padding-bottom: 12px; border-bottom: 1px solid #e8eee2; font-size: 16px; }
.app-main > .d-flex:first-child { gap: 14px; margin-bottom: 24px !important; }
/* Acesso */
body.sem-navbar { background: #f4f7fa; }
.sem-navbar .app-content { margin: 0; }
.sem-navbar .app-main { padding: 0; min-height: 100dvh; }
.app-login-shell { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.login-story { background: #0B2D4A; color: white; padding: clamp(32px,6vw,90px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.login-story::before,.login-story::after { content: ""; position: absolute; width: 500px; height: 500px; border: 1px solid #ffffff0c; transform: rotate(35deg); right: -240px; bottom: -200px; border-radius: 50px; pointer-events: none; }
.login-story::after { right: -170px; bottom: -270px; }
.login-story .app-brand { color: white; position: absolute; top: 48px; left: clamp(32px,6vw,90px); }
.login-story .app-brand-icon { background: #ffffff15; }
.login-story .app-brand-text small { color: #98b5a2; }
.login-story h2 { font-size: clamp(30px,4vw,52px); line-height: 1.18; color: white; max-width: 430px; margin-bottom: 24px; letter-spacing: -1.9px; }
.login-story h2 span { color: #22D3C5; }
.login-story p { max-width: 350px; color: #adc1b2; font-size: 14px; line-height: 1.9; }
.login-features { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 32px; color: #aac2a8; font-size: 11px; }
.login-features span { display: flex; gap: 8px; align-items: center; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 36px; }
.app-login-card { width: 100%; max-width: 360px; }
.app-login-logo { color: #0F766E; background: #e4efdf; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 28px; }
.app-login-title { font-size: 28px; margin-bottom: 10px; }
.app-login-subtitle { font-size: 13px; line-height: 1.7; color: #85917b; margin-bottom: 30px; }
.login-footer { color: #96a08d; font-size: 11px; margin-top: 24px; text-align: center; }
.login-password-toggle { background: white; color: #85917b; border: 1px solid #dce4de; border-left: 0; border-radius: 0 9px 9px 0; min-width: 48px; }
/* Tablet e celular */
@media (max-width: 1199.98px) {
    .app-sidebar { width: 220px; padding-left: 12px; padding-right: 12px; }
    .app-topbar,.app-content { margin-left: 220px; }
    .app-topbar { padding: 0 24px; }
    .app-main { padding: 28px 24px; }
    .app-footer { padding-left: 24px; padding-right: 24px; }
    .topbar-context { display: none; }
    .table thead th,.table tbody td { padding-left: 14px; padding-right: 14px; }
    .overview-card { padding: 18px 15px; }
    .overview-card .stat-icon { right: 12px; }
    .registry-filters { grid-template-columns: 1fr 1fr; }
    .wizard-step { flex-direction: column; gap: 6px; font-size: 10px; }
}
@media (max-width: 991.98px) {
    html { scroll-padding-top: 80px; }
    .app-sidebar { visibility: hidden; transform: translateX(-100%); transition: transform .2s ease; width: 280px; padding-top: 28px; z-index: 1200; }
    body.menu-open .app-sidebar { visibility: visible; transform: translateX(0); }
    body.menu-open { overflow: hidden; }
    .menu-backdrop { position: fixed; inset: 0; background: #152b2460; backdrop-filter: blur(3px); z-index: 1150; }
    .menu-close { display: inline-grid; position: absolute; top: 27px; right: 15px; width: 34px; height: 40px; border: 0; font-size: 18px; }
    .app-topbar { margin-left: 0; height: 74px; padding: 0 24px; position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); }
    .app-content { margin-left: 0; }
    .mobile-menu-toggle { display: inline-grid; }
    .user-details { display: none; }
    .app-main { padding: 26px 24px; min-height: calc(100dvh - 210px); }
    .app-footer { padding-bottom: 100px; }
    .mobile-bottom-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 60; display: flex; align-items: center; justify-content: space-around; background: #fffffffa; border-top: 1px solid var(--ci-border); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); backdrop-filter: blur(14px); }
    .mobile-bottom-nav a,.mobile-bottom-nav button { min-width: 54px; min-height: 52px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: #9aa48e; font-size: 9px; border: 0; background: transparent; padding: 5px 4px; }
    .mobile-bottom-nav .bi { font-size: 21px; }
    .mobile-bottom-nav .active { color: var(--ci-primary); font-weight: 700; }
    .mobile-bottom-nav .mobile-new .bi { width: 37px; height: 29px; background: var(--ci-primary); color: white; display: grid; place-items: center; border-radius: 9px; font-size: 20px; }
    .mobile-bottom-nav .mobile-new { color: var(--ci-primary); }
    .form-actions { bottom: calc(82px + env(safe-area-inset-bottom)); }
    .app-login-shell { grid-template-columns: .9fr 1fr; }
    .login-story { padding: 32px; }
    .login-story .app-brand { left: 32px; }
}
@media (max-width: 767.98px) {
    body { font-size: 14px; }
    .app-topbar { padding: 0 18px; height: 68px; }
    .topbar-location strong { font-size: 12px; }
    .topbar-location small { font-size: 7px; }
    .topbar-right { gap: 9px; }
    .user-avatar { display: none; }
    .app-main { padding: 22px 16px; }
    .breadcrumb-line { margin-bottom: 20px; font-size: 10px; }
    .page-heading { align-items: flex-start; margin-bottom: 22px; flex-wrap: wrap; gap: 16px; }
    .page-heading h1 { font-size: 28px; }
    .page-heading p { font-size: 12px; max-width: 290px; }
    .page-heading > .btn { width: 100%; }
    .overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
    .overview-card { padding: 16px; border-radius: 12px; }
    .overview-card .stat-icon { width: 27px; height: 27px; font-size: 14px; right: 13px; top: 13px; }
    .overview-card .stat-label { font-size: 10px; }
    .overview-card strong { font-size: 27px; margin-top: 12px; }
    .overview-card small { font-size: 9px; }
    .quick-tip { padding: 13px; font-size: 11px; margin-bottom: 20px; gap: 10px; }
    .registry-heading { padding: 20px 16px 0; }
    .registry-heading h2 { font-size: 15px; }
    .registry-heading p { font-size: 10px; }
    .registry-filters { padding: 18px 16px; gap: 12px 9px; grid-template-columns: 1fr 1fr; }
    .registry-filters > .filter-search { grid-column: 1 / -1; }
    .registry-filters > .btn { grid-column: 1 / -1; width: 100%; }
    .registry-filters .form-control,.registry-filters .form-select { font-size: 16px; min-height: 48px; }
    .registry-filters .form-label { font-size: 11px; }
    .registry-filters .search-input > .bi { top: 17px; }
    .filters-active { padding: 12px 16px; font-size: 11px; }
    .cartoes-mobile { display: block; }
    .tabela-desktop { display: none; }
    .registry-footer { align-items: flex-start; flex-direction: column; padding: 16px; }
    .app-footer { flex-direction: column; align-items: center; padding: 6px 16px 108px; gap: 6px; font-size: 9px; }
    h1.h4 { font-size: 24px; }
    .etapa-imovel { padding: 22px 17px 6px; border-radius: 13px; }
    .etapa-imovel h2 { font-size: 18px; }
    .etapa-imovel .row { --bs-gutter-x: 14px; }
    .etapa-imovel .mb-3 { margin-bottom: 20px !important; }
    .form-label { font-size: 12px; }
    .form-text { font-size: 11px; }
    .form-page-heading h1 { font-size: 26px; }
    .form-page-heading .back-link { margin-bottom: 12px; }
    .form-page-heading p { font-size: 12px; }
    .wizard-ready .wizard-nav { padding: 10px 5px; gap: 0; margin-bottom: 17px; }
    .wizard-step { font-size: 9px; padding: 5px 2px; line-height: 1.3; }
    .wizard-step-number { width: 25px; height: 25px; }
    .wizard-step-label { max-width: 60px; }
    .form-actions { padding: 12px; bottom: calc(77px + env(safe-area-inset-bottom)); gap: 8px; border-radius: 11px; }
    .form-actions .btn { padding: 10px 12px; font-size: 12px; }
    .form-actions .cancel-label { display: none; }
    .form-actions-right { gap: 7px; }
    .review-grid { grid-template-columns: 1fr 1fr; }
    .app-main > form:not(.registry-filters):not(.imovel-form):not(.row) { padding: 20px 16px; }
    .app-login-shell { display: block; }
    .login-story { padding: 28px 24px; min-height: 0; }
    .login-story .app-brand { position: static; padding: 0; }
    .login-story h2,.login-story p,.login-features { display: none; }
    .login-form-side { padding: 36px 24px; }
    .app-login-logo { display: none; }
    .app-login-title { font-size: 26px; }
}
@media (max-width: 374.98px) {
    .app-main { padding-inline: 12px; }
    .overview-card { padding: 14px 12px; }
    .overview-card .stat-icon { display: none; }
    .overview-card .stat-label { padding: 0; }
    .wizard-step { font-size: 8px; }
    .form-actions .btn { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }
@media print { .app-sidebar,.app-topbar,.mobile-bottom-nav,.app-footer,.form-actions { display: none !important; } .app-content { margin: 0; } .app-main { padding: 0; } .etapa-imovel[hidden] { display: block !important; } }

.mobile-inactivate { margin: -4px 16px 16px; text-align: right; }
@media (min-width: 768px) { .mobile-inactivate { display: none; } }

/* Leitura em telas pequenas e largura disponível para nomes longos. */
@media (max-width: 767.98px) {
    .overview-card .stat-label { font-size: 12px; }
    .overview-card small { font-size: 11px; line-height: 1.5; }
    .quick-tip,.registry-heading p,.registry-footer,.form-text { font-size: 12px; }
    .mobile-bottom-nav a,.mobile-bottom-nav button { font-size: 10px; }
    .property-card-footer { gap: 12px; }
    .property-card-footer > span { min-width: 0; overflow-wrap: anywhere; }
    .property-card-footer > strong { flex-shrink: 0; }
}

/* Identidade oficial Info Public. Logos fornecidos em SVG, sem reconstrução. */
@font-face { font-family: Inter; src: url('../brand/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('../brand/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url('../brand/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url('../brand/fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
body { font-family: Inter, 'Segoe UI', sans-serif; }
.app-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.brand-logo { display: block; width: 165px; height: auto; }
.brand-product { color: #718397; letter-spacing: 1.6px; font-size: 8px; font-weight: 600; }
.login-story .brand-product { color: #9bb6c8; }
.login-story .brand-logo { width: 205px; }
.login-company-logo { display: block; width: 150px; height: auto; margin-bottom: 30px; }
.login-help { color: #64748b; font-size: 11px; line-height: 1.8; margin: 20px 0 0; }
.municipio-note { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid #E7EDF3; border-radius: 10px; font-size: 11px; }
.municipio-note strong { display: block; overflow-wrap: anywhere; }
.municipio-note small { display: block; color: #64748b; margin-top: 5px; }
.municipality-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 16px; }
.registry-filters { grid-template-columns: minmax(160px,1.8fr) minmax(150px,1fr) auto; }
@media(max-width:767.98px) {
    .registry-filters { grid-template-columns: 1fr; }
    .registry-filters > div { grid-column: 1 / -1; }
    .login-company-logo { display: none; }
    .login-story .brand-logo { width: 155px; }
    .login-story .app-brand { gap: 7px; }
    .login-story { padding: 22px 24px; }
}
