@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink: #15211e;
  --muted: #71807b;
  --line: #e2e9e6;
  --soft: #f4f7f5;
  --cream: #f7f5ef;
  --white: #fff;
  --green: #08233a;
  --green-2: #0c3355;
  --mint: #e3eef7;
  --lime: #68c4ff;
  --gold: #cda865;
  --danger: #b5413b;
  --warning: #bd7a25;
  --shadow: 0 12px 35px rgba(21, 42, 36, .08);
  --radius: 18px;
  --sidebar: 258px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--soft); font: 14px/1.5 'DM Sans', system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { font-family: 'Manrope', 'DM Sans', sans-serif; }
code { border-radius: 5px; background: #edf1ef; padding: 2px 5px; font-size: 12px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; width: var(--sidebar); flex-direction: column; overflow-y: auto; color: #dce8e3; background: var(--green); }
.sidebar-brand { display: flex; height: 79px; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.08); padding: 0 24px; letter-spacing: 1.8px; }
.sidebar-brand strong { color: white; font-size: 14px; }
.sidebar-brand button { display: none; margin-left: auto; border: 0; color: white; background: none; font-size: 24px; }
.brand-mark { display: inline-grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(104,196,255,.65); border-radius: 11px 4px 11px 4px; color: var(--lime); font: 800 18px/1 'Manrope'; transform: rotate(-3deg); }
.condo-switcher { position: relative; margin: 18px 14px 10px; }
.condo-switcher summary { display: grid; grid-template-columns: 37px 1fr 12px; align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.055); cursor: pointer; list-style: none; }
.condo-switcher summary::-webkit-details-marker { display: none; }
.condo-switcher summary span:not(.condo-avatar) { min-width: 0; }
.condo-switcher summary small, .condo-switcher summary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.condo-switcher summary small { margin-bottom: 2px; color: #8eaaa1; font-size: 8px; letter-spacing: 1.3px; }
.condo-switcher summary strong { color: white; font-size: 11px; }
.condo-avatar { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 10px; color: var(--green); background: var(--lime); font: 800 10px 'Manrope'; }
.condo-switcher > div { position: absolute; top: calc(100% + 7px); z-index: 3; width: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: var(--green-2); box-shadow: var(--shadow); }
.condo-switcher > div a { display: block; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.condo-switcher > div strong, .condo-switcher > div small { display: block; }
.condo-switcher > div strong { color: white; font-size: 11px; }
.condo-switcher > div small { color: #9eb4ad; font-size: 9px; }
.sidebar nav { display: flex; flex-direction: column; gap: 3px; padding: 8px 14px; }
.sidebar nav a { position: relative; display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 10px; color: #9cb4ad; font-size: 12px; font-weight: 600; transition: .18s ease; }
.sidebar nav a:hover { color: white; background: rgba(255,255,255,.05); }
.sidebar nav a.active { color: var(--green); background: var(--lime); }
.sidebar nav i { width: 18px; text-align: center; font-style: normal; font-size: 15px; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; margin: auto 16px 16px; padding: 12px; border: 1px solid rgba(104,196,255,.15); border-radius: 12px; background: rgba(104,196,255,.06); }
.sidebar-foot > span { color: var(--lime); }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { color: white; font-size: 10px; }
.sidebar-foot small { color: #90aba2; font-size: 9px; }

.main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; height: 79px; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding: 0 clamp(20px,3vw,44px); background: rgba(255,255,255,.93); backdrop-filter: blur(13px); }
.menu-toggle { display: none; border: 0; background: none; font-size: 20px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.breadcrumb b { color: #bac5c1; }
.breadcrumb strong { color: var(--ink); font-size: 11px; }
.user-menu { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.user-menu > span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; color: white; background: var(--green-2); font: 700 12px 'Manrope'; }
.user-menu p { min-width: 105px; }
.user-menu strong, .user-menu small { display: block; }
.user-menu strong { font-size: 10px; }
.user-menu small { color: var(--muted); font-size: 9px; }
.user-menu > a { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.content { width: min(1540px,100%); margin: 0 auto; padding: 32px clamp(20px,3vw,44px) 55px; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 25px; }
.page-heading h1 { margin-top: 3px; font-size: clamp(25px,3vw,37px); line-height: 1.15; letter-spacing: -1.3px; }
.page-heading p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.eyebrow { color: #789087; font: 700 8px/1.2 'Manrope'; letter-spacing: 1.8px; }
.eyebrow.light { color: #a9b8c4; }
.heading-actions { display: flex; gap: 8px; }
.btn { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 11px; border: 1px solid transparent; border-radius: 10px; padding: 0 17px; cursor: pointer; font-weight: 700; font-size: 10px; transition: transform .15s, opacity .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: wait; opacity: .7; transform: none; }
.btn.primary { color: white; background: var(--green); }
.btn.secondary { border-color: var(--line); color: var(--ink); background: white; }
.btn.light { color: var(--green); background: var(--lime); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 9px; }

.flash { display: grid; grid-template-columns: 27px 1fr 27px; align-items: center; gap: 9px; margin-bottom: 20px; border: 1px solid #cfe5db; border-radius: 12px; padding: 10px 12px; color: #245142; background: #eaf7f1; }
.flash > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: white; background: #318067; }
.flash button { border: 0; color: inherit; background: none; cursor: pointer; font-size: 19px; }
.flash.danger { border-color: #efd5d2; color: #76322e; background: #fcf0ef; }
.flash.danger > span { background: var(--danger); }

.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 13px; }
.metric { min-height: 150px; border: 1px solid var(--line); border-radius: var(--radius); padding: 21px; background: white; box-shadow: 0 4px 15px rgba(21,42,36,.025); }
.metric .metric-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .6px; }
.metric .metric-top i { font-style: normal; }
.metric .metric-top i.green { color: #43a77f; }
.metric .metric-top i.amber { color: #d5a64a; }
.metric > strong { display: block; margin-top: 18px; font-size: clamp(20px,2vw,27px); letter-spacing: -.8px; }
.metric > small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.metric > small em { color: var(--danger); font-style: normal; font-weight: 700; }
.metric > a { display: inline-flex; align-items: center; gap: 8px; margin-top: 15px; color: #94b847; font-size: 9px; font-weight: 700; }
.metric.hero-metric { color: white; border-color: var(--green); background: var(--green); }
.metric.hero-metric .metric-top, .metric.hero-metric > small { color: #a7beb6; }
.compact-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.compact-metrics .metric { min-height: 120px; }
.compact-metrics .metric > span { color: var(--muted); font-size: 10px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(320px,.8fr); gap: 13px; margin-bottom: 13px; }
.quick-grid { display: grid; grid-template-columns: minmax(260px,.6fr) minmax(0,1.4fr); gap: 13px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 4px 15px rgba(21,42,36,.02); }
.panel > header { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #edf1ef; padding: 18px 21px; }
.panel > header h2 { margin-top: 5px; font-size: 14px; letter-spacing: -.25px; }
.panel > header > a, .panel > header > span { color: var(--muted); font-size: 9px; }
.cash-panel { min-height: 360px; }
.cash-chart { display: flex; height: 285px; align-items: flex-end; justify-content: space-around; gap: 10px; padding: 42px 24px 20px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 24%, #eef2f0 25%); }
.chart-column { display: flex; height: 100%; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; }
.chart-column > span { color: var(--muted); font-size: 8px; opacity: 0; transition: .15s; }
.chart-column:hover > span { opacity: 1; }
.chart-bar { width: min(35px,65%); min-height: 9px; border-radius: 5px 5px 2px 2px; background: var(--green-2); }
.chart-bar.negative { background: #d5ab5d; }
.chart-column small { color: var(--muted); font-size: 8px; }
.live-dot { border: 1px solid #d7e7df; border-radius: 20px; padding: 4px 8px; color: #49826d !important; }
.attention-list > a { display: flex; align-items: center; gap: 11px; min-height: 60px; border-bottom: 1px solid #edf1ef; padding: 10px 19px; transition: background .15s; }
.attention-list > a:hover { background: #f8faf9; }
.attention-list > a > i { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #a27731; background: #faf1dd; font-style: normal; font-weight: 800; }
.attention-list > a > i.ocorrencia { color: #a6463e; background: #fae9e7; }
.attention-list > a > i.assembleia { color: #39745f; background: #e0f0e9; }
.attention-list p { min-width: 0; }
.attention-list strong, .attention-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention-list strong { font-size: 10px; }
.attention-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.attention-list > a > b { margin-left: auto; color: #a9b5b1; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; padding: 22px; gap: 10px; }
.mini-stats a { border-radius: 14px; padding: 18px; background: var(--soft); }
.mini-stats strong, .mini-stats span { display: block; }
.mini-stats strong { font-size: 28px; }
.mini-stats span { margin-top: 4px; color: var(--muted); font-size: 9px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 16px; color: #87958f; background: #f8faf9; font-size: 8px; font-weight: 700; letter-spacing: .5px; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { border-top: 1px solid #edf1ef; padding: 12px 16px; color: #4e5d58; font-size: 10px; vertical-align: middle; }
td strong, td small { display: block; }
td strong { color: var(--ink); font-size: 10px; }
td small { margin-top: 2px; color: var(--muted); font-size: 8px; }
td.money { font-family: 'Manrope'; font-weight: 700; text-align: right; white-space: nowrap; }
td.money.positive { color: #398164; }
.pill { display: inline-flex; align-items: center; border: 1px solid #dfe7e3; border-radius: 20px; padding: 4px 8px; color: #66756f; background: #f4f7f5; font-size: 7px; font-style: normal; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; }
.pill.ativo, .pill.ativa, .pill.aprovado, .pill.aprovada, .pill.pago, .pill.enviado, .pill.conectado, .pill.resolvida, .pill.simulado, .pill.documentos_recebidos, .pill.documentos_em_analise { border-color: #cce4d8; color: #39755d; background: #eaf6f0; }
.pill.pendente, .pill.solicitada, .pill.agendado, .pill.aguardando_aprovacao, .pill.convites_enviados, .pill.documentos_pendentes { border-color: #e8dbba; color: #9a6b24; background: #fcf5e5; }
.pill.vencido, .pill.aberta, .pill.rejeitada, .pill.erro { border-color: #efd0cd; color: #a4433c; background: #fceceb; }
.text-button { border: 0; padding: 0; color: #317058; background: none; cursor: pointer; font-size: 9px; font-weight: 700; }
.inline-form { display: inline; }
.muted { color: var(--muted); }
.empty-state { display: flex; min-height: 130px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 25px; color: var(--muted); text-align: center; }
.empty-state b { color: var(--ink); font-size: 11px; }
.empty-state span { font-size: 9px; }
.empty-state.compact { min-height: 80px; }

.bank-strip { display: flex; align-items: stretch; gap: 12px; margin-bottom: 13px; }
.bank-strip > article { display: flex; min-width: 280px; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 15px; padding: 15px; background: white; }
.bank-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: var(--lime); background: var(--green); font: 800 16px 'Manrope'; }
.bank-strip article p { flex: 1; }
.bank-strip article small, .bank-strip article strong { display: block; }
.bank-strip article small { color: var(--muted); font-size: 8px; }
.bank-strip article strong { margin-top: 2px; font-size: 15px; }
.integration-note { display: flex; flex: 1; flex-direction: column; justify-content: center; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; padding: 12px 17px; color: #766243; background: #f8f2e7; }
.integration-note b { font-size: 9px; }
.integration-note span { margin-top: 3px; font-size: 8px; }
.tab-panels { display: grid; grid-template-columns: 1fr; gap: 13px; }

.form-drawer { margin-bottom: 16px; overflow: hidden; border: 1px solid #cbded6; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.form-drawer[hidden] { display: none; }
.form-drawer > header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 18px 22px; }
.form-drawer > header h2 { margin-top: 4px; font-size: 16px; }
.form-drawer > header button, .form-drawer > header > a { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 22px; line-height: 1; text-decoration: none; }
.view-error-panel { max-width: 760px; margin: 20px auto; padding: 34px; }
.view-error-panel h1 { margin: 10px 0; font-size: 28px; }
.view-error-panel p { max-width: 620px; color: var(--muted); line-height: 1.6; }
.view-error-panel code { display: block; overflow-wrap: anywhere; margin: 18px 0; padding: 14px; border-radius: 10px; background: #f7f3ea; color: #6c3b31; }
.view-error-panel .btn { display: inline-flex; margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; padding: 22px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; color: #586761; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 1px solid #dce5e1; border-radius: 9px; outline: 0; padding: 10px 11px; color: var(--ink); background: #fbfcfb; font-size: 11px; text-transform: none; transition: border .15s, box-shadow .15s; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #7fa99b; box-shadow: 0 0 0 3px rgba(60,125,103,.1); }
.form-grid textarea { resize: vertical; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 8px; margin-top: 3px; }

.people-grid, .communication-grid, .settings-grid, .report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.unit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 18px; }
.unit-card { border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: #fbfcfb; }
.unit-card span, .unit-card strong, .unit-card small { display: block; }
.unit-card span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.unit-card strong { margin-top: 5px; font-size: 17px; }
.unit-card small { margin-top: 3px; color: #6d7d77; font-size: 8px; }
.contact-list > article, .incident-list > article, .email-list > article { display: flex; min-height: 60px; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); padding: 10px 18px; }
.contact-list > article > span, .mail-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; background: var(--green-2); font: 700 10px 'Manrope'; }
.contact-list p, .incident-list p, .email-list p { min-width: 0; flex: 1; }
.contact-list strong, .contact-list small, .incident-list strong, .incident-list small, .email-list strong, .email-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-list strong, .incident-list strong, .email-list strong { font-size: 10px; }
.contact-list small, .incident-list small, .email-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.priority { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #936823; background: #faf0d9; font-style: normal; font-weight: 800; }
.priority.alta, .priority.urgente { color: #a4433c; background: #fbe9e7; }

.integration-banner { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; border: 1px solid #dbe3f0; border-radius: 15px; padding: 14px 17px; background: #f8faff; }
.integration-logo { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--green); background: white; font: 800 15px 'Manrope'; }
.integration-banner p { min-width: 0; flex: 1; }
.integration-banner strong, .integration-banner span { display: block; }
.integration-banner strong { font-size: 11px; }
.integration-banner p span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.assembly-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.assembly-card { display: flex; min-height: 300px; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: white; box-shadow: 0 4px 15px rgba(21,42,36,.025); }
.assembly-card > header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.date-box { display: grid; width: 45px; height: 50px; place-items: center; border-radius: 10px; color: white; background: var(--green); }
.date-box b { align-self: end; font-size: 19px; line-height: 1; }
.date-box small { align-self: start; color: var(--lime); font-size: 7px; }
.assembly-card h2 { margin-top: 7px; font-size: 17px; }
.assembly-card > p { display: -webkit-box; overflow: hidden; margin-top: 8px; color: var(--muted); font-size: 9px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.assembly-card > div { display: flex; gap: 13px; margin-top: 17px; color: #566861; font-size: 8px; }
.assembly-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; border-top: 1px solid var(--line); padding-top: 15px; }
.assembly-card footer a { color: #3c775f; font-size: 8px; font-weight: 700; }

.notice-feed > article { display: flex; gap: 15px; border-bottom: 1px solid var(--line); padding: 20px; }
.notice-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--green); background: var(--lime); }
.notice-feed h3 { margin-top: 5px; font-size: 14px; }
.notice-feed p { margin-top: 7px; color: #5f6e68; font-size: 9px; white-space: normal; }
.notice-feed small { display: block; margin-top: 10px; color: #96a29d; font-size: 8px; }
.mail-icon { border-radius: 9px; color: var(--green); background: var(--mint); }
.panel-note { border-top: 1px solid var(--line); padding: 12px 17px; color: #7a8883; background: #f8faf9; font-size: 8px; }

.credit-hero { display: grid; grid-template-columns: 1.4fr .6fr; gap: 45px; margin-bottom: 15px; overflow: hidden; border-radius: 23px; padding: clamp(28px,5vw,55px); color: white; background: linear-gradient(125deg,#0a2338 0%,#0e3658 70%,#135086 100%); box-shadow: 0 20px 50px rgba(10,35,56,.17); }
.credit-hero h2 { max-width: 650px; margin-top: 12px; font-size: clamp(25px,4vw,42px); line-height: 1.08; letter-spacing: -1.5px; }
.credit-hero > div > p { max-width: 630px; margin: 14px 0 24px; color: #b9cec7; font-size: 11px; }
.credit-hero aside { display: grid; grid-template-columns: 35px 1fr; align-content: center; gap: 18px 11px; }
.credit-hero aside > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(104,196,255,.3); border-radius: 50%; color: var(--lime); font-size: 8px; }
.credit-hero aside strong, .credit-hero aside small { display: block; }
.credit-hero aside strong { font-size: 10px; }
.credit-hero aside small { color: #9eb8af; font-size: 8px; }
.cashme-simulator, .cashme-results, .credit-documents, .credit-history { margin-bottom: 15px; }
.simulator-empty { min-height: 240px; gap: 10px; }
.cashme-form { padding-top: 25px; }
.cashme-terms { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 15px; }
.cashme-terms legend { padding: 0 6px; color: #586761; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.cashme-terms > p { margin-bottom: 11px; color: var(--muted); font-size: 9px; }
.cashme-terms > p.field-error { color: var(--danger); }
.cashme-terms > div { display: flex; flex-wrap: wrap; gap: 8px; }
.cashme-terms label { position: relative; display: block; cursor: pointer; }
.cashme-terms input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cashme-terms label span { display: block; border: 1px solid var(--line); border-radius: 20px; padding: 7px 11px; color: #61716b; background: #f8faf9; font-size: 9px; font-weight: 700; transition: .15s; }
.cashme-terms input:checked + span { border-color: var(--green); color: white; background: var(--green); }
.condition-preview { border-left: 3px solid #7fa99b; border-radius: 0 8px 8px 0; padding: 10px 13px; color: #60746d; background: #f5f9f7; font-size: 9px; }
.simulation-id { min-width: 0; text-align: right; }
.simulation-id small, .simulation-id code { display: block; }
.simulation-id small { margin-bottom: 3px; color: var(--muted); font-size: 8px; }
.simulation-id code { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.simulation-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid var(--line); background: #f8faf9; }
.simulation-summary > div { border-right: 1px solid var(--line); padding: 17px 20px; }
.simulation-summary > div:last-child { border-right: 0; }
.simulation-summary small, .simulation-summary strong { display: block; }
.simulation-summary small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.simulation-summary strong { margin-top: 4px; font-size: 13px; }
.offer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 20px; }
.offer-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; padding: 17px; background: #fff; transition: border-color .15s, transform .15s, box-shadow .15s; }
.offer-card:hover { border-color: #b9cec6; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(21,42,36,.07); }
.offer-card.selected { border: 2px solid var(--green-2); background: #f7fbf9; }
.offer-card > header { display: flex; align-items: center; justify-content: space-between; }
.offer-card > header > span { color: var(--green); font: 800 22px 'Manrope'; }
.offer-card > header > b { border-radius: 20px; padding: 4px 8px; color: #39755d; background: var(--mint); font-size: 7px; text-transform: uppercase; }
.offer-payment { margin: 15px 0; }
.offer-payment small, .offer-payment strong { display: block; }
.offer-payment small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.offer-payment strong { margin-top: 3px; font-size: 17px; }
.offer-payment em { display: block; color: #557168; font-size: 10px; font-style: normal; }
.offer-card dl { margin: 0 0 17px; }
.offer-card dl > div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 8px 0; font-size: 8px; }
.offer-card dt { color: var(--muted); }
.offer-card dd { margin: 0; text-align: right; font-weight: 700; }
.offer-card form { margin-top: auto; }
.offer-card .btn { width: 100%; }
.document-stage-grid { display: grid; grid-template-columns: 1fr 1fr; }
.document-upload-box { border-right: 1px solid var(--line); padding: 22px; }
.document-upload-box > h3, .credit-document-list > header h3, .analysis-state h3 { font-size: 13px; }
.document-upload-box > p { margin-top: 5px; color: var(--muted); font-size: 9px; }
.document-credit-form { padding: 18px 0 0; }
.file-drop input { border-style: dashed; padding: 18px; background: #f8faf9; }
.credit-document-list { min-width: 0; padding: 22px; }
.credit-document-list > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.credit-document-list > header > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: var(--green); background: var(--mint); font-size: 8px; font-weight: 700; }
.credit-document-item { display: flex; align-items: center; gap: 11px; border-top: 1px solid var(--line); padding: 11px 0; }
.credit-document-item > span { display: grid; width: 36px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 7px; color: var(--green); background: var(--mint); font: 800 7px 'Manrope'; }
.credit-document-item p { min-width: 0; flex: 1; }
.credit-document-item strong, .credit-document-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credit-document-item strong { font-size: 9px; }
.credit-document-item small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.credit-document-item > b { color: #7c9189; }
.submit-analysis { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; border-top: 1px solid var(--line); padding-top: 15px; }
.submit-analysis small { color: var(--muted); font-size: 8px; text-align: right; }
.analysis-state { display: flex; min-height: 240px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.analysis-state > span { display: grid; width: 44px; height: 44px; margin-bottom: 12px; place-items: center; border-radius: 50%; color: var(--green); background: var(--lime); font-weight: 800; }
.analysis-state p { max-width: 430px; margin-top: 6px; color: var(--muted); font-size: 9px; }
.legal-note, .configuration-warning { display: flex; gap: 12px; margin-top: 13px; border: 1px solid #e6deca; border-radius: 12px; padding: 14px 17px; color: #746344; background: #f9f4e9; font-size: 9px; }
.legal-note strong, .configuration-warning b { flex: 0 0 auto; color: #5e4c2e; }

.report-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 13px; }
.report-cards article { display: grid; grid-template-columns: 36px 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: white; }
.report-cards article > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: var(--green); background: var(--mint); }
.report-cards strong, .report-cards small { display: block; }
.report-cards strong { font-size: 10px; }
.report-cards small { color: var(--muted); font-size: 8px; }
.report-cards b { grid-column: 2; color: #5d756c; font-size: 8px; }
.ranking-list { padding: 13px 20px 20px; }
.ranking-list > div { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; }
.ranking-list > div > b { color: #9ba8a3; font-size: 9px; }
.ranking-list p strong { display: block; font-size: 9px; }
.ranking-list p span { display: block; height: 4px; margin-top: 5px; border-radius: 10px; background: #edf1ef; }
.ranking-list p i { display: block; height: 100%; border-radius: inherit; background: var(--green-2); }
.ranking-list em { color: var(--ink); font: 700 9px 'Manrope'; font-style: normal; }
.security-badge { border: 1px solid #cce2d8; border-radius: 20px; padding: 7px 11px; color: #42715e; background: #eaf5f0; font-size: 8px; font-weight: 700; text-transform: uppercase; }

.settings-grid { margin-bottom: 13px; }
.brand-preview { display: flex; align-items: center; gap: 13px; margin: 20px; border-radius: 14px; padding: 20px; color: white; background: var(--tenant-color); }
.brand-preview .brand-mark { color: var(--lime); }
.brand-preview strong, .brand-preview small { display: block; }
.brand-preview small { color: rgba(255,255,255,.65); font-size: 8px; }
.settings-grid dl { margin: 0; border-top: 1px solid var(--line); padding: 8px 20px 18px; }
.settings-grid dl > div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 9px; }
.settings-grid dt { color: var(--muted); }
.settings-grid dd { margin: 0; font-weight: 700; }
.check-list { margin: 0; padding: 10px 20px 20px; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--line); padding: 11px 0; }
.check-list li > span { display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #36775e; background: var(--mint); font-size: 9px; }
.check-list strong, .check-list small { display: block; }
.check-list strong { font-size: 9px; }
.check-list small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.integration-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 20px; }
.integration-list article { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; padding: 13px; }
.integration-list p { min-width: 0; flex: 1; }
.integration-list strong, .integration-list small { display: block; }
.integration-list strong { font-size: 10px; }
.integration-list small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.document-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.document-card { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 15px; padding: 17px; background: white; }
.document-type { display: grid; width: 48px; height: 56px; flex: 0 0 auto; place-items: center; border-radius: 7px 7px 12px 7px; color: var(--green); background: var(--mint); font: 800 9px 'Manrope'; }
.document-card > div { min-width: 0; flex: 1; }
.document-card h2 { margin-top: 4px; font-size: 13px; }
.document-card p { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.document-card small, .document-card code { display: block; margin-top: 5px; color: #87958f; font-size: 7px; }
.document-card code { width: max-content; }
.resident-hero { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 13px; border-radius: 21px; padding: 32px; color: white; background: linear-gradient(130deg,var(--green),#12456e); }
.resident-hero h2 { margin-top: 8px; font-size: clamp(23px,3vw,34px); }
.resident-hero p { max-width: 650px; margin-top: 7px; color: #b2cac1; font-size: 10px; }
.resident-unit { display: flex; width: 130px; height: 100px; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(104,196,255,.25); border-radius: 16px; color: var(--lime); background: rgba(255,255,255,.05); font: 800 25px 'Manrope'; }
.resident-unit small { margin-top: 4px; color: #abc2ba; font: 500 7px 'DM Sans'; }
.resident-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 13px; }
.resident-actions a { display: grid; grid-template-columns: 36px 1fr; gap: 3px 10px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: white; }
.resident-actions a > span { display: grid; grid-row: 1 / 3; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: var(--green); background: var(--mint); }
.resident-actions strong { align-self: end; font-size: 9px; }
.resident-actions small { color: var(--muted); font-size: 8px; }
.portal-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 13px; margin-bottom: 13px; }
.portal-list article { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 13px 18px; }
.portal-list article > span { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--green); background: var(--mint); font: 800 9px 'Manrope'; }
.portal-list strong, .portal-list small { display: block; }
.portal-list strong { font-size: 9px; }
.portal-list small { color: var(--muted); font-size: 8px; }
.portal-notices > div > article { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 14px 20px; }
.portal-notices > div > article > span { color: #8bab3b; }
.portal-notices p { min-width: 0; flex: 1; }
.portal-notices strong, .portal-notices small { display: block; }
.portal-notices strong { font-size: 9px; }
.portal-notices small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.portal-notices time { color: var(--muted); font-size: 8px; }

.portfolio-panel, .teams-panel, .permission-panel { margin-top: 14px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 18px; }
.portfolio-card { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: var(--ink); background: linear-gradient(145deg,#fff,#f8fbf9); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.portfolio-card:hover { transform: translateY(-2px); border-color: #a7c9bc; box-shadow: 0 13px 28px rgba(12,55,45,.08); }
.portfolio-card > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.portfolio-card h3 { font-size: 16px; }
.portfolio-card > p, .portfolio-card > small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }
.portfolio-card > small { color: #52766a; font-weight: 700; }
.portfolio-card dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 16px 0; }
.portfolio-card dl div { border-radius: 9px; padding: 9px; background: var(--mint); }
.portfolio-card dt, .portfolio-card dd { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-card dt { color: var(--muted); font-size: 7px; }
.portfolio-card dd { margin-top: 3px; font-size: 9px; font-weight: 800; }
.portfolio-card > b { color: var(--green); font-size: 8px; }
.team-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 18px; }
.team-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; }
.team-card > header { display: grid; grid-template-columns: 9px 1fr auto; gap: 11px; align-items: center; padding: 17px; }
.team-card > header > span { width: 9px; height: 38px; border-radius: 9px; background: var(--team-color); }
.team-card h3 { font-size: 13px; }
.team-card p, .team-card > small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.team-card > small { padding: 0 17px 15px; }
.team-summary { display: flex; gap: 20px; border-block: 1px solid var(--line); padding: 12px 17px; color: var(--muted); font-size: 8px; }
.team-summary strong { margin-right: 3px; color: var(--ink); font-size: 13px; }
.team-portfolio-form { border-top: 1px solid var(--line); padding: 14px 17px 17px; background: #fafcfb; }
.team-portfolio-form fieldset, .access-assignment { grid-column: span 2; border: 0; padding: 0; }
.team-portfolio-form legend, .access-assignment legend { margin-bottom: 9px; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.team-portfolio-form fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-bottom: 12px; }
.team-portfolio-form label, .check-card-grid label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 9px; background: white; cursor: pointer; }
.team-portfolio-form label span, .team-portfolio-form label strong, .team-portfolio-form label small { display: block; }
.team-portfolio-form label strong { font-size: 8px; }
.team-portfolio-form label small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.scope-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: white; }
.scope-flow article { display: flex; align-items: center; gap: 10px; }
.scope-flow article > span { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--green); background: var(--lime); font-size: 8px; font-weight: 800; }
.scope-flow strong, .scope-flow small { display: block; }
.scope-flow strong { font-size: 9px; }
.scope-flow small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.scope-flow > b { color: #9aaba5; }
.access-assignment > p { margin: -4px 0 9px; color: var(--muted); font-size: 8px; }
.check-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.check-card-grid label span, .check-card-grid label small { display: block; }
.check-card-grid label span { font-size: 8px; font-weight: 700; }
.check-card-grid label small { margin-top: 2px; color: var(--muted); font-size: 7px; font-weight: 400; }
.access-users-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.access-user-list > article { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 11px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 17px; }
.access-user-list > article > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 9px; font-weight: 800; }
.access-user-list strong, .access-user-list small, .access-user-list em { display: block; }
.access-user-list strong { font-size: 9px; }
.access-user-list small, .access-user-list em { margin-top: 2px; color: var(--muted); font-size: 7px; font-style: normal; }
.access-user-list em { color: #54776c; }
.access-user-list article > div { text-align: right; }
.access-user-list article > div b { display: block; margin-bottom: 5px; font-size: 7px; }
.profile-permission-card { border-bottom: 1px solid var(--line); }
.profile-permission-card > summary { display: grid; grid-template-columns: 85px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 15px 19px; cursor: pointer; list-style: none; }
.profile-permission-card > summary::-webkit-details-marker { display: none; }
.profile-permission-card > summary strong, .profile-permission-card > summary small { display: block; }
.profile-permission-card > summary strong { font-size: 10px; }
.profile-permission-card > summary small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.profile-permission-card > summary > b { color: var(--muted); font-size: 8px; }
.profile-scope { width: max-content; border-radius: 30px; padding: 5px 8px; color: #336e5d; background: #e2f2eb; font-size: 7px; font-weight: 800; letter-spacing: .5px; }
.profile-scope.condominio { color: #78652e; background: #f4edd7; }
.profile-permission-card form { border-top: 1px solid var(--line); background: #fafcfb; }
.permission-modules { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 16px 19px; }
.permission-modules fieldset { border: 1px solid var(--line); border-radius: 11px; padding: 11px; background: white; }
.permission-modules legend { padding: 0 5px; color: #668078; font-size: 7px; font-weight: 800; letter-spacing: .7px; }
.permission-item { display: flex; gap: 8px; align-items: flex-start; padding: 7px 3px; cursor: pointer; }
.permission-item strong, .permission-item small { display: block; }
.permission-item strong { font-size: 8px; }
.permission-item small { margin-top: 2px; color: var(--muted); font: 6px monospace; }
.profile-permission-card footer { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding: 12px 19px; }
.communication-grid.single-column { grid-template-columns: 1fr; }
.bank-ready { display: flex; flex-direction: column; color: #246e58; font-size: 8px; font-weight: 800; }
.bank-ready small { margin-top: 2px; color: var(--muted); font-size: 7px; font-weight: 400; }

.login-page { min-height: 100vh; color: white; background: #0b1e2c; }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(0,1.25fr) minmax(400px,.75fr); }
.login-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(35px,6vw,80px); background: radial-gradient(circle at 85% 15%,rgba(104,196,255,.17),transparent 30%),linear-gradient(140deg,#091f32,#0d3251); }
.login-brand:after { position: absolute; right: -110px; bottom: -140px; width: 420px; height: 420px; border: 1px solid rgba(104,196,255,.13); border-radius: 50%; content: ''; box-shadow: 0 0 0 70px rgba(104,196,255,.025),0 0 0 140px rgba(104,196,255,.018); }
.brand { display: flex; align-items: center; gap: 12px; letter-spacing: 2px; }
.login-brand h1 { max-width: 760px; margin-top: 17px; font-size: clamp(42px,6vw,78px); line-height: .98; letter-spacing: -3px; }
.login-brand p { max-width: 560px; margin-top: 22px; color: #bfc9d1; font-size: 14px; }
.login-brand > small { color: #879aa9; font-size: 9px; letter-spacing: .9px; }
.login-card { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(35px,6vw,80px); color: var(--ink); background: var(--cream); }
.login-card h2 { margin-top: 9px; font-size: 28px; letter-spacing: -1px; }
.login-card > div > p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.login-card form { display: flex; flex-direction: column; gap: 15px; }
.login-card label { color: #5b6864; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.login-card input { width: 100%; margin-top: 6px; border: 1px solid #d6dedb; border-radius: 10px; outline: 0; padding: 12px; background: white; font-size: 11px; }
.login-card .btn { width: 100%; min-height: 45px; margin-top: 4px; }
.demo-access { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--gold); padding: 9px 12px; color: #766547; background: #f2eadb; font-size: 9px; }
.notice { display: flex; flex-direction: column; gap: 4px; border: 1px solid #efd0cd; border-radius: 10px; padding: 12px; color: #843c36; background: #fae9e7; font-size: 9px; }
.scrim { display: none; }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid, .quick-grid, .people-grid, .communication-grid, .settings-grid, .report-grid { grid-template-columns: 1fr; }
  .assembly-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .integration-list { grid-template-columns: 1fr 1fr; }
  .resident-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portal-grid { grid-template-columns: 1fr; }
  .bank-strip { flex-wrap: wrap; }
  .offer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .document-stage-grid { grid-template-columns: 1fr; }
  .portfolio-grid, .permission-modules { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .document-upload-box { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  :root { --sidebar: 274px; }
  .sidebar { transform: translateX(-105%); transition: transform .23s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 15px 0 40px rgba(0,0,0,.18); }
  .sidebar-brand button, .menu-toggle { display: block; }
  .main { margin-left: 0; }
  .topbar { height: 65px; padding: 0 16px; }
  .breadcrumb span, .breadcrumb b { display: none; }
  .user-menu p { display: none; }
  .content { padding: 23px 14px 45px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .heading-actions, .page-heading > .btn { width: 100%; }
  .heading-actions .btn, .page-heading > .btn { flex: 1; }
  .metric-grid, .compact-metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 135px; padding: 17px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .cash-chart { overflow-x: auto; justify-content: flex-start; }
  .chart-column { min-width: 55px; }
  .form-grid { grid-template-columns: 1fr; padding: 17px; }
  .form-grid .span-2, .form-actions { grid-column: 1; }
  .unit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .assembly-grid, .report-cards, .integration-list { grid-template-columns: 1fr; }
  .document-grid { grid-template-columns: 1fr; }
  .resident-hero { align-items: flex-start; flex-direction: column; }
  .credit-hero { grid-template-columns: 1fr; padding: 30px 23px; }
  .credit-hero aside { display: none; }
  .simulation-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .simulation-summary > div:nth-child(2) { border-right: 0; }
  .simulation-summary > div { border-bottom: 1px solid var(--line); }
  .offer-grid { grid-template-columns: 1fr; padding: 14px; }
  .simulation-id { max-width: 45%; }
  .document-upload-box, .credit-document-list { padding: 17px; }
  .integration-banner { align-items: flex-start; flex-wrap: wrap; }
  .integration-banner .pill { margin-left: 50px; }
  .bank-strip > article { min-width: 100%; }
  .integration-note { min-width: 100%; }
  .portfolio-grid, .team-grid, .access-users-grid, .permission-modules { grid-template-columns: 1fr; }
  .scope-flow { grid-template-columns: 1fr; }
  .scope-flow > b { display: none; }
  .check-card-grid, .team-portfolio-form fieldset { grid-template-columns: 1fr; }
  .access-assignment { grid-column: 1; }
  .profile-permission-card > summary { grid-template-columns: 75px minmax(0,1fr); }
  .profile-permission-card > summary > b { display: none; }
  .legal-note, .configuration-warning { flex-direction: column; }
  .scrim { position: fixed; inset: 0; z-index: 40; background: rgba(7,24,20,.5); }
  body.menu-open .scrim { display: block; }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 38vh; padding: 30px 24px; }
  .login-brand h1 { margin-top: 30px; font-size: 42px; }
  .login-brand p { display: none; }
  .login-card { min-height: 62vh; padding: 36px 24px; }
}

@media (max-width: 440px) {
  .metric-grid, .compact-metrics { grid-template-columns: 1fr; }
  .metric { min-height: 120px; }
  .unit-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr; }
}

@media print {
  .sidebar, .topbar, .heading-actions, .menu-toggle, .flash { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; }
  body { background: white; }
  .panel, .metric, .report-cards article { break-inside: avoid; box-shadow: none; }
}
