#cu-runtime-updates, .cu-panel, .cu-balance-strip, .cu-modal { box-sizing: border-box; }
.cu-updates-grid { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:16px; margin:16px 0; }
.cu-panel { background:linear-gradient(180deg,rgba(12,27,43,.98),rgba(7,18,31,.98)); border:1px solid rgba(105,164,224,.18); border-radius:18px; padding:18px; box-shadow:0 14px 35px rgba(0,0,0,.18); }
.cu-panel-head { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; margin-bottom:14px; }
.cu-panel h2 { margin:2px 0 0; font-size:18px; line-height:1.25; color:#f6f9fc; }
.cu-kicker { font-size:11px; letter-spacing:.12em; color:#67b6ff; font-weight:800; }
.cu-muted { color:#8fa6bb; line-height:1.45; }
.cu-status { font-size:12px; font-weight:800; border-radius:999px; padding:6px 10px; border:1px solid rgba(255,255,255,.12); color:#aebdcb; white-space:nowrap; }
.cu-status.running { color:#66e3a4; border-color:rgba(102,227,164,.35); background:rgba(31,162,103,.09); }
.cu-status.paused { color:#ffd46d; border-color:rgba(255,212,109,.35); background:rgba(200,148,23,.08); }
.cu-status.finished { color:#85bfff; border-color:rgba(133,191,255,.3); background:rgba(68,137,214,.08); }
.cu-timer-time { font-variant-numeric:tabular-nums; font-size:clamp(36px,5vw,56px); line-height:1; font-weight:900; letter-spacing:.02em; color:#fff; margin:16px 0 8px; }
.cu-timer-meta { color:#a6bbce; margin-bottom:16px; }
.cu-timer-actions { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0; }
.cu-btn { min-height:42px; border-radius:11px; padding:0 14px; border:1px solid transparent; font-weight:800; cursor:pointer; transition:.15s ease; }
.cu-btn:hover { transform:translateY(-1px); }
.cu-btn:disabled, .cu-busy .cu-btn { opacity:.55; cursor:wait; transform:none; }
.cu-btn.primary { color:#fff; background:#1976d2; border-color:#2c8be5; }
.cu-btn.secondary { color:#dbe9f6; background:#0c2135; border-color:#29465f; }
.cu-btn.danger { color:#ffd8de; background:#35131a; border-color:#7f2b3b; }
.cu-cash-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.cu-stat { background:rgba(3,11,19,.55); border:1px solid rgba(127,164,196,.13); border-radius:14px; padding:13px; min-width:0; }
.cu-stat span { display:block; color:#94aabc; font-size:12px; line-height:1.25; min-height:31px; }
.cu-stat strong { display:block; margin-top:7px; font-size:19px; color:#f8fbff; overflow-wrap:anywhere; }
.cu-stat.good strong { color:#68e3a6; }
.cu-stat.danger strong { color:#ff7f91; }
.cu-cash-note { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; color:#7f97aa; font-size:11px; margin-top:12px; }
.cu-balance-strip { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:center; gap:12px; padding:16px; margin-top:16px; background:rgba(8,22,35,.92); border:1px solid rgba(99,154,204,.16); border-radius:16px; }
.cu-balance-strip div { min-width:0; }
.cu-balance-strip span { display:block; font-size:12px; color:#8fa6bb; }
.cu-balance-strip strong { display:block; margin-top:3px; font-size:18px; color:#f5f9fc; }
.cu-balance-strip b { color:#5c7890; }
.cu-balance-strip .cu-good strong { color:#68e3a6; }
.cu-balance-strip .cu-bad strong { color:#ff7f91; }
.cu-loading { color:#8fa6bb; }
.cu-modal { position:fixed; inset:0; z-index:99999; display:none; place-items:center; padding:18px; background:rgba(0,0,0,.68); backdrop-filter:blur(5px); }
.cu-modal.open { display:grid; }
.cu-modal-card { width:min(100%,470px); position:relative; background:#081725; border:1px solid #27445d; border-radius:18px; padding:22px; box-shadow:0 24px 70px rgba(0,0,0,.48); }
.cu-modal-card h2 { margin:3px 0 6px; color:#fff; font-size:23px; }
.cu-modal-close { position:absolute; right:12px; top:10px; width:36px; height:36px; border-radius:50%; border:1px solid #2a465d; background:#0c2135; color:#fff; font-size:24px; cursor:pointer; }
.cu-label { display:block; margin-top:14px; color:#a9bdd0; font-size:13px; font-weight:700; }
.cu-input { width:100%; min-height:46px; margin-top:6px; padding:0 12px; border-radius:10px; border:1px solid #294760; background:#06111d; color:#fff; outline:none; }
.cu-input:focus { border-color:#318ee6; box-shadow:0 0 0 3px rgba(49,142,230,.14); }
.cu-modal-card .cu-btn { width:100%; margin-top:18px; }
.cu-toast { position:fixed; left:50%; bottom:90px; z-index:100000; transform:translate(-50%,18px); max-width:min(92vw,520px); padding:12px 16px; border-radius:12px; background:#10263a; color:#fff; border:1px solid #31526c; opacity:0; pointer-events:none; transition:.2s ease; box-shadow:0 14px 40px rgba(0,0,0,.3); text-align:center; font-weight:700; }
.cu-toast.show { opacity:1; transform:translate(-50%,0); }
.cu-toast.ok { border-color:#2d805b; }
.cu-toast.err { border-color:#a23d50; }
@media (max-width: 900px) {
  .cu-updates-grid { grid-template-columns:1fr; }
  .cu-cash-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .cu-updates-grid { gap:12px; margin:12px 0; }
  .cu-panel { padding:15px; border-radius:15px; }
  .cu-panel-head { align-items:center; }
  .cu-panel-head h2 { font-size:16px; }
  .cu-cash-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .cu-stat { padding:11px; }
  .cu-stat span { min-height:30px; font-size:11px; }
  .cu-stat strong { font-size:16px; }
  .cu-timer-time { font-size:43px; }
  .cu-timer-actions .cu-btn { flex:1 1 120px; }
  .cu-balance-strip { grid-template-columns:1fr; gap:8px; }
  .cu-balance-strip > b { display:none; }
  .cu-balance-strip div { display:flex; justify-content:space-between; align-items:center; gap:12px; }
  .cu-balance-strip strong { margin-top:0; font-size:16px; }
  .cu-toast { bottom:82px; }
}

/* v3: resumo mensal do caixa */
.cu-balance-strip { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.cu-balance-strip > div:not(.cu-strip-note) { background:rgba(3,11,19,.38); border:1px solid rgba(127,164,196,.10); border-radius:12px; padding:11px 12px; }
.cu-balance-strip .cu-strip-note { grid-column:1 / -1; padding-top:2px; }
.cu-balance-strip .cu-strip-note span { color:#7f97aa; font-size:11px; }
@media (max-width: 900px) {
  .cu-balance-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .cu-balance-strip { grid-template-columns:1fr; }
  .cu-balance-strip > div:not(.cu-strip-note) { display:flex; justify-content:space-between; align-items:center; gap:12px; }
  .cu-balance-strip .cu-strip-note { display:block; }
}

/* V5 — caixa consolidado, reservas, empréstimos e ações reversíveis */
.cu-mini-action { display:inline-block; margin-top:8px; padding:6px 9px; border:1px solid #2f5b7b; border-radius:8px; background:#0b263b; color:#9fd1ff; font-size:11px; font-weight:800; cursor:pointer; }
.cu-auto-reserve { margin-top:10px; border:1px solid rgba(84,160,224,.18); border-radius:14px; background:rgba(4,14,24,.48); padding:14px; }
.cu-auto-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:10px; border-bottom:1px solid rgba(120,160,195,.13); }
.cu-auto-head span { color:#a9bdd0; font-size:12px; }
.cu-auto-head strong { color:#fff; font-size:22px; }
.cu-auto-lines { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:10px 0; }
.cu-auto-lines > div { padding:10px; border-radius:10px; background:rgba(10,32,50,.65); }
.cu-auto-lines span, .cu-auto-free span { display:block; color:#89a2b7; font-size:11px; }
.cu-auto-lines strong { display:block; margin-top:4px; color:#eef7ff; font-size:16px; }
.cu-auto-free { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; background:rgba(20,111,73,.13); border:1px solid rgba(63,190,126,.18); }
.cu-auto-free strong { color:#67e3a5; }
.cu-auto-reserve small { display:block; margin-top:10px; color:#7891a7; line-height:1.4; }
.cu-table-btn { min-height:34px !important; padding:0 10px !important; font-size:11px !important; margin:2px 4px 2px 0; }
.cu-pay-source { display:block; margin-top:4px; color:#8fa6bb; font-size:10px; }
.cu-extra-panel { margin-top:16px; }
.cu-loan-row { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr auto; gap:10px; align-items:center; padding:12px 0; border-top:1px solid rgba(127,164,196,.14); }
.cu-loan-row:first-of-type { border-top:0; }
.cu-loan-row > div { min-width:0; }
.cu-loan-row span,.cu-loan-row small { display:block; color:#88a0b5; font-size:11px; }
.cu-loan-row strong { display:block; color:#f3f8fc; margin-top:2px; }
.cu-rental-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:8px; }
.cu-rental-summary > div { padding:12px; border-radius:12px; background:rgba(4,14,24,.48); border:1px solid rgba(127,164,196,.12); }
.cu-rental-summary span { display:block; color:#8fa6bb; font-size:11px; }
.cu-rental-summary strong { display:block; margin-top:5px; color:#f4f9fd; }
@media (max-width: 800px) {
  .cu-auto-lines { grid-template-columns:1fr; }
  .cu-loan-row { grid-template-columns:1fr 1fr; }
  .cu-loan-row button { grid-column:1 / -1; }
  .cu-rental-summary { grid-template-columns:1fr; }
}

/* V8 — Contas em cards: leitura confortável no notebook e celular */
.cu-accounts-cards { margin:16px 0 0; }
.cu-accounts-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.cu-accounts-summary > div { background:rgba(3,11,19,.48); border:1px solid rgba(127,164,196,.13); border-radius:14px; padding:13px; min-width:0; }
.cu-accounts-summary span { display:block; color:#8fa6bb; font-size:11px; line-height:1.25; }
.cu-accounts-summary strong { display:block; margin-top:5px; font-size:18px; color:#f7fbff; }
.cu-accounts-summary .good strong { color:#68e3a6; }
.cu-accounts-summary .bad strong { color:#ff7f91; }
.cu-bills-section-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:18px 0 10px; }
.cu-bills-section-title h3 { margin:0; color:#f6f9fc; font-size:15px; }
.cu-bills-section-title span { color:#8fa6bb; font-size:11px; }
.cu-bills-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.cu-bill-card { background:linear-gradient(180deg,rgba(9,24,39,.96),rgba(5,16,28,.96)); border:1px solid rgba(117,163,201,.15); border-radius:15px; padding:14px; min-width:0; }
.cu-bill-card.paid { border-color:rgba(71,190,128,.24); background:linear-gradient(180deg,rgba(9,38,31,.72),rgba(5,20,21,.92)); }
.cu-bill-top { display:flex; gap:12px; align-items:flex-start; justify-content:space-between; }
.cu-bill-date { flex:0 0 50px; width:50px; min-height:48px; border-radius:12px; display:grid; place-items:center; align-content:center; background:#0b2539; border:1px solid #244963; color:#d9ebfa; font-weight:900; line-height:1; }
.cu-bill-date strong { font-size:18px; }
.cu-bill-date span { margin-top:3px; font-size:9px; color:#8fa9be; font-weight:800; }
.cu-bill-main { flex:1; min-width:0; }
.cu-bill-main h4 { margin:0; color:#f7fbff; font-size:14px; line-height:1.25; overflow-wrap:anywhere; }
.cu-bill-meta { margin-top:4px; color:#8199ad; font-size:10px; }
.cu-bill-amount { flex:0 0 auto; color:#fff; font-size:17px; font-weight:900; white-space:nowrap; }
.cu-bill-cover { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px; }
.cu-bill-cover > div { padding:9px 10px; border-radius:10px; background:rgba(3,11,19,.48); }
.cu-bill-cover span { display:block; color:#8199ad; font-size:10px; }
.cu-bill-cover strong { display:block; margin-top:3px; font-size:13px; color:#eaf4fc; }
.cu-bill-cover .covered strong { color:#68e3a6; }
.cu-bill-cover .gap strong { color:#ff9aab; }
.cu-bill-actions { display:flex; gap:8px; margin-top:12px; }
.cu-bill-actions .cu-btn { width:100%; min-height:40px; }
.cu-paid-line { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-top:10px; padding-top:10px; border-top:1px solid rgba(95,180,135,.16); }
.cu-paid-line span { color:#70dca4; font-size:11px; font-weight:800; }
.cu-paid-line small { color:#7f98ab; font-size:10px; }
.cu-paid-details { margin-top:14px; border:1px solid rgba(127,164,196,.12); border-radius:13px; overflow:hidden; }
.cu-paid-details > summary { cursor:pointer; list-style:none; padding:12px 14px; color:#a9bdd0; font-weight:800; font-size:12px; background:rgba(5,16,27,.72); }
.cu-paid-details > summary::-webkit-details-marker { display:none; }
.cu-paid-details[open] > summary { border-bottom:1px solid rgba(127,164,196,.12); }
.cu-paid-details .cu-bills-grid { padding:10px; }
.cu-confirm-values { display:grid; grid-template-columns:1fr auto 1fr; gap:10px; align-items:center; margin:16px 0 4px; }
.cu-confirm-values > div { padding:12px; border-radius:12px; background:#06111d; border:1px solid #243e54; }
.cu-confirm-values span { display:block; color:#8fa6bb; font-size:10px; }
.cu-confirm-values strong { display:block; margin-top:4px; color:#fff; font-size:18px; }
.cu-confirm-values b { color:#607c92; }
.cu-confirm-note { margin:10px 0 0; color:#8fa6bb; font-size:11px; line-height:1.45; }
.cu-confirm-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px; }
.cu-confirm-actions .cu-btn { margin-top:0; width:100%; }
.cu-old-accounts-hidden { display:none !important; }
@media (max-width: 950px) {
  .cu-accounts-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cu-bills-grid { grid-template-columns:1fr; }
}
@media (max-width: 560px) {
  .cu-accounts-summary { grid-template-columns:1fr 1fr; gap:8px; }
  .cu-accounts-summary > div { padding:10px; }
  .cu-accounts-summary strong { font-size:15px; }
  .cu-bill-card { padding:12px; }
  .cu-bill-top { gap:9px; }
  .cu-bill-date { flex-basis:44px; width:44px; min-height:44px; }
  .cu-bill-date strong { font-size:16px; }
  .cu-bill-amount { font-size:15px; }
  .cu-bill-cover { grid-template-columns:1fr; gap:6px; }
  .cu-confirm-values { grid-template-columns:1fr; }
  .cu-confirm-values > b { display:none; }
}

/* Ajuste desktop — contas em uma única coluna, preservando tablet/celular */
@media (min-width: 951px) {
  .cu-bills-grid { grid-template-columns: 1fr; }
}

/* V10 — edição segura de contas */
.cu-bill-actions { display:grid; grid-template-columns:minmax(120px,.7fr) minmax(180px,1.3fr); }
.cu-bill-edit-card { max-width:620px; }
.cu-edit-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cu-textarea { resize:vertical; min-height:82px; font-family:inherit; }
.cu-edit-impact { margin-top:14px; padding:11px 12px; border-radius:11px; border:1px solid rgba(127,164,196,.18); background:rgba(5,16,27,.72); color:#a9bdd0; font-size:12px; line-height:1.45; }
.cu-edit-impact.good { color:#79e6ad; border-color:rgba(71,190,128,.28); background:rgba(13,94,58,.14); }
.cu-edit-impact.warn { color:#ffb4c0; border-color:rgba(218,87,108,.28); background:rgba(116,29,47,.16); }
.cu-edit-impact.info { color:#a8c9e6; border-color:rgba(84,160,224,.24); background:rgba(25,78,120,.14); }
@media (max-width:560px) {
  .cu-edit-grid { grid-template-columns:1fr; gap:0; }
  .cu-bill-actions { grid-template-columns:1fr; }
}

/* V12 — caixa negativo + Radar de Eventos */
.cu-deficit-line strong { color:#ff9aab !important; }
.cu-summary-note { display:block; margin-top:4px; color:#ff9aab; font-size:9px; font-weight:700; }

body.cu-radar-active main.content > :not(#cu-radar-page),
body.cu-radar-active .content > :not(#cu-radar-page) { display:none !important; }
#cu-radar-page { display:none; min-width:0; }
body.cu-radar-active #cu-radar-page { display:block; }
body.cu-radar-active .desktop-sidebar button[data-active="true"]:not(#cu-radar-nav-btn) { background:transparent !important; color:inherit !important; }
#cu-radar-nav-btn { width:100%; }
body.cu-radar-active #cu-radar-nav-btn { background:rgba(25,118,210,.16) !important; color:#8dc8ff !important; }

.cu-radar-page-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:16px; }
.cu-radar-page-head h1 { margin:3px 0 5px; color:#f7fbff; font-size:clamp(24px,3vw,34px); }
.cu-radar-page-head p { margin:0; color:#8fa6bb; }
.cu-radar-location-card { display:flex; justify-content:space-between; gap:18px; align-items:center; padding:16px; border-radius:16px; border:1px solid rgba(96,163,222,.2); background:linear-gradient(180deg,rgba(10,31,49,.96),rgba(6,20,34,.96)); }
.cu-radar-location-card > div:first-child { min-width:0; }
.cu-radar-location-card span { display:block; color:#67b6ff; font-size:10px; font-weight:900; letter-spacing:.1em; }
.cu-radar-location-card strong { display:block; margin-top:4px; color:#fff; font-size:20px; }
.cu-radar-location-card small { display:block; margin-top:4px; color:#7f97aa; }
.cu-radar-location-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.cu-radar-location-actions .cu-btn { min-height:40px; }

.cu-radar-provider { display:grid; grid-template-columns:auto auto auto 1fr; gap:10px; align-items:center; margin-top:12px; padding:11px 13px; border-radius:12px; background:rgba(3,11,19,.44); border:1px solid rgba(127,164,196,.12); }
.cu-radar-provider > span { color:#8098ad; font-size:11px; }
.cu-radar-provider > strong { color:#eaf4fc; font-size:12px; }
.cu-radar-provider > b { justify-self:start; padding:4px 8px; border-radius:999px; font-size:10px; }
.cu-radar-provider > b.ok { color:#68e3a6; background:rgba(40,155,101,.12); border:1px solid rgba(73,196,133,.2); }
.cu-radar-provider > b.warn { color:#ffd67b; background:rgba(177,126,24,.1); border:1px solid rgba(255,197,83,.2); }
.cu-radar-provider > small { color:#71899e; text-align:right; }

.cu-radar-filters { display:flex; gap:8px; overflow:auto; padding:14px 0 8px; scrollbar-width:none; }
.cu-radar-filters::-webkit-scrollbar { display:none; }
.cu-radar-filters button { flex:0 0 auto; min-height:38px; padding:0 13px; border-radius:999px; border:1px solid #29465f; background:#0a1d2f; color:#9db2c5; font-weight:800; cursor:pointer; }
.cu-radar-filters button.active { background:#1976d2; border-color:#2c8be5; color:#fff; }

.cu-radar-state { margin:10px 0; padding:14px; border-radius:12px; border:1px solid rgba(127,164,196,.14); background:rgba(4,14,24,.52); color:#91a8ba; }
.cu-radar-state.warn { color:#ffd28a; border-color:rgba(217,159,61,.25); background:rgba(94,64,17,.12); }
.cu-radar-events { display:grid; gap:12px; margin-top:8px; }
.cu-radar-event { padding:16px; border-radius:16px; border:1px solid rgba(113,165,207,.15); background:linear-gradient(180deg,rgba(9,25,40,.97),rgba(5,16,28,.97)); }
.cu-radar-event-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.cu-radar-event-head > div:first-child { min-width:0; }
.cu-radar-type { color:#67b6ff; font-size:10px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.cu-radar-event h3 { margin:4px 0 3px; color:#f8fbff; font-size:17px; line-height:1.25; }
.cu-radar-event p { margin:0; color:#8199ad; font-size:12px; }
.cu-radar-date { flex:0 0 auto; padding:7px 9px; border-radius:9px; background:#0b2539; border:1px solid #244963; color:#cfe6f9; font-size:11px; font-weight:800; white-space:nowrap; }
.cu-radar-event-meta { display:flex; gap:12px; flex-wrap:wrap; margin-top:10px; color:#7e97ab; font-size:10px; }
.cu-radar-windows { display:grid; grid-template-columns:1fr 1fr .8fr; gap:8px; margin-top:12px; }
.cu-radar-windows > div { padding:10px 11px; border-radius:11px; background:rgba(3,11,19,.5); border:1px solid rgba(127,164,196,.1); }
.cu-radar-windows span { display:block; color:#8199ad; font-size:10px; }
.cu-radar-windows strong { display:block; margin-top:4px; color:#eef7ff; font-size:13px; }
.cu-radar-windows .impact.unknown strong { color:#aebfcd; }
.cu-radar-estimate-note { display:block; margin-top:10px; color:#6f879b; line-height:1.4; }
.cu-radar-actions { display:flex; gap:8px; margin-top:12px; }
.cu-radar-actions .cu-btn { display:inline-flex; align-items:center; justify-content:center; min-height:38px; margin:0; text-decoration:none; font-size:11px; }

.cu-city-calendar { margin-top:20px; }
.cu-calendar-empty { padding:15px; border-radius:14px; border:1px dashed rgba(127,164,196,.2); background:rgba(4,14,24,.38); }
.cu-calendar-empty strong { color:#c9d9e7; font-size:12px; }
.cu-calendar-empty p { margin:6px 0 0; color:#7991a5; font-size:11px; line-height:1.45; }
.cu-radar-attribution { margin:14px 0 4px; color:#647d92; font-size:10px; }
.cu-radar-key-help { display:block; margin-top:7px; }

@media (max-width: 900px) {
  .cu-radar-location-card { align-items:flex-start; flex-direction:column; }
  .cu-radar-location-actions { justify-content:flex-start; width:100%; }
  .cu-radar-provider { grid-template-columns:1fr auto; }
  .cu-radar-provider > small { grid-column:1 / -1; text-align:left; }
  .cu-radar-windows { grid-template-columns:1fr 1fr; }
  .cu-radar-windows .impact { grid-column:1 / -1; }
}
@media (max-width: 640px) {
  .cu-radar-page-head { align-items:stretch; flex-direction:column; }
  .cu-radar-page-head .cu-btn { width:100%; }
  .cu-radar-location-actions { display:grid; grid-template-columns:1fr; }
  .cu-radar-location-actions .cu-btn { width:100%; }
  .cu-radar-provider { grid-template-columns:1fr; gap:5px; }
  .cu-radar-provider > b { justify-self:start; }
  .cu-radar-event-head { flex-direction:column; gap:9px; }
  .cu-radar-date { white-space:normal; }
  .cu-radar-windows { grid-template-columns:1fr; }
  .cu-radar-windows .impact { grid-column:auto; }
  .cu-radar-actions { display:grid; grid-template-columns:1fr 1fr; }
  .cu-radar-actions .cu-btn { width:100%; }
}
/* V12 mobile overflow hardening */
.cu-btn { box-sizing:border-box; }
#cu-radar-page { max-width:100%; overflow-x:hidden; }
.cu-radar-filters { max-width:100%; }
@media (max-width:640px) {
  .cu-radar-actions { grid-template-columns:1fr; }
}
.cu-radar-dev-link { display:inline-block; margin-top:9px; color:#78bdff; font-size:11px; font-weight:800; text-decoration:none; }
.cu-radar-dev-link:hover { text-decoration:underline; }

/* V12.2 — Radar por fontes públicas, sem API Key */
.cu-radar-public-note { display:grid; gap:4px; margin-top:12px; padding:12px; border-radius:12px; border:1px solid rgba(93,161,219,.18); background:rgba(10,38,60,.35); }
.cu-radar-public-note strong { color:#d8ebfb; font-size:12px; }
.cu-radar-public-note span { color:#829caf; font-size:11px; line-height:1.45; }
.cu-radar-public-provider { grid-template-columns:minmax(180px,.8fr) minmax(240px,1.2fr) minmax(260px,1fr); }
.cu-radar-public-provider > div:first-child span { display:block; color:#8098ad; font-size:10px; }
.cu-radar-public-provider > div:first-child strong { display:block; margin-top:2px; color:#eaf4fc; font-size:12px; }
.cu-radar-source-pills { display:flex; gap:6px; flex-wrap:wrap; min-width:0; }
.cu-radar-source-pill { display:inline-flex; align-items:center; min-height:25px; padding:4px 8px; border-radius:999px; font-size:10px; font-weight:800; border:1px solid rgba(127,164,196,.18); background:rgba(10,27,43,.72); color:#9cb1c3; }
.cu-radar-source-pill.ok { color:#70e2a7; border-color:rgba(73,196,133,.23); background:rgba(29,113,75,.12); }
.cu-radar-source-pill.warn { color:#ffd27d; border-color:rgba(229,171,59,.25); background:rgba(109,76,17,.14); }
.cu-radar-source-pill.neutral { color:#a8bed0; }
.cu-radar-public-provider > small { text-align:right; color:#71899e; }
.cu-radar-warnings { margin-top:10px; padding:10px 12px; border:1px solid rgba(196,151,60,.18); border-radius:11px; background:rgba(76,51,12,.1); color:#9eb0bf; font-size:10px; }
.cu-radar-warnings summary { cursor:pointer; color:#c8a75f; font-weight:800; }
.cu-radar-warnings p { margin:7px 0 0; line-height:1.4; }
.cu-calendar-list { display:grid; gap:8px; }
.cu-calendar-item { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:12px 13px; border-radius:12px; border:1px solid rgba(127,164,196,.12); background:rgba(5,16,27,.58); }
.cu-calendar-item > div { min-width:0; }
.cu-calendar-item span { display:block; color:#6aaee8; font-size:9px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.cu-calendar-item strong { display:block; margin-top:3px; color:#eef7ff; font-size:13px; }
.cu-calendar-item small { display:block; margin-top:3px; color:#8098ad; font-size:10px; }
.cu-calendar-item a { flex:0 0 auto; color:#86c7ff; font-size:10px; text-decoration:none; font-weight:800; }
@media (max-width:760px) {
  .cu-radar-public-provider { grid-template-columns:1fr; }
  .cu-radar-public-provider > small { text-align:left; }
  .cu-calendar-item { align-items:flex-start; }
}
/* V12.3 — revisão geral de legibilidade
   Objetivo: melhorar leitura sem aumentar excessivamente a interface. */

/* Base do sistema */
.topbar > span,
.eyebrow,
.desktop-sidebar .brand { font-size:13px !important; color:#a9bfd5 !important; }
.metric small { font-size:13px !important; color:#a8bdd1 !important; line-height:1.45; }
.badge { font-size:13px !important; }
.bar-col { font-size:13px !important; color:#abc0d4 !important; }
[data-slot=table-head] { font-size:13px !important; color:#a9bfd5 !important; }
.balance-strip span { font-size:13px !important; color:#aec2d6 !important; }

/* Blocos financeiros adicionados nas versões anteriores */
.cu-kicker { font-size:12px !important; color:#7fc4ff !important; }
.cu-muted,
.cu-loading { color:#a9bfd1 !important; font-size:14px; }
.cu-status { font-size:13px !important; }
.cu-stat span { font-size:13px !important; color:#a8bccd !important; min-height:auto; }
.cu-cash-note { font-size:13px !important; color:#9fb4c7 !important; line-height:1.45; }
.cu-balance-strip span { font-size:13px !important; color:#a8bccf !important; }
.cu-balance-strip .cu-strip-note span { font-size:13px !important; color:#9db3c6 !important; line-height:1.45; }
.cu-mini-action { font-size:12px !important; }
.cu-auto-head span { font-size:13px !important; color:#b0c3d4 !important; }
.cu-auto-lines span,
.cu-auto-free span { font-size:12px !important; color:#9fb5c7 !important; }
.cu-auto-reserve small { font-size:12px !important; color:#96adbf !important; line-height:1.5; }
.cu-table-btn { font-size:12px !important; }
.cu-pay-source { font-size:12px !important; color:#9fb4c7 !important; }
.cu-loan-row span,
.cu-loan-row small { font-size:13px !important; color:#9eb4c7 !important; }
.cu-rental-summary span { font-size:13px !important; color:#a7bbcd !important; }

/* Contas */
.cu-accounts-summary span { font-size:13px !important; color:#a7bbce !important; }
.cu-bills-section-title span { font-size:13px !important; color:#a7bbce !important; }
.cu-bill-date span { font-size:11px !important; color:#a5bbce !important; }
.cu-bill-main h4 { font-size:15px !important; }
.cu-bill-meta { font-size:12px !important; color:#9fb4c7 !important; line-height:1.4; }
.cu-bill-cover span { font-size:12px !important; color:#9eb3c6 !important; }
.cu-paid-line span { font-size:12px !important; }
.cu-paid-line small { font-size:12px !important; color:#9db3c6 !important; }
.cu-paid-details > summary { font-size:13px !important; color:#b7c9d9 !important; }
.cu-confirm-values span { font-size:12px !important; color:#aabed0 !important; }
.cu-confirm-note { font-size:13px !important; color:#a8bdcf !important; }
.cu-edit-impact { font-size:13px !important; }
.cu-summary-note { font-size:12px !important; line-height:1.4; }

/* Radar — reforço principal de leitura */
.cu-radar-page-head p { color:#abc0d3 !important; font-size:14px !important; line-height:1.5; }
.cu-radar-location-card span { font-size:12px !important; color:#82c6ff !important; }
.cu-radar-location-card strong { font-size:21px !important; }
.cu-radar-location-card small { font-size:13px !important; color:#9fb5c7 !important; line-height:1.45; }

.cu-radar-provider > span,
.cu-radar-public-provider > div:first-child span { font-size:12px !important; color:#a1b7ca !important; }
.cu-radar-provider > strong,
.cu-radar-public-provider > div:first-child strong { font-size:13px !important; color:#f0f7fd !important; }
.cu-radar-provider > b { font-size:12px !important; }
.cu-radar-provider > small,
.cu-radar-public-provider > small { font-size:13px !important; color:#9db3c6 !important; line-height:1.45; }
.cu-radar-source-pill { min-height:28px; font-size:12px !important; padding:5px 9px; }

.cu-radar-filters button { font-size:14px !important; color:#b7c9d9 !important; }
.cu-radar-filters button.active { color:#fff !important; }
.cu-radar-state { font-size:14px !important; color:#afc2d3 !important; line-height:1.5; }

.cu-radar-type { font-size:12px !important; color:#82c6ff !important; }
.cu-radar-event h3 { font-size:18px !important; }
.cu-radar-event p { font-size:14px !important; color:#a5bacb !important; line-height:1.45; }
.cu-radar-date { font-size:13px !important; color:#dcedfb !important; }
.cu-radar-event-meta { font-size:13px !important; color:#9fb5c8 !important; line-height:1.45; }
.cu-radar-windows span { font-size:12px !important; color:#9fb4c7 !important; }
.cu-radar-windows strong { font-size:14px !important; }
.cu-radar-estimate-note { font-size:13px !important; color:#98afc1 !important; line-height:1.5; }
.cu-radar-actions .cu-btn { font-size:13px !important; }
.cu-radar-attribution { font-size:12px !important; color:#8fa8bc !important; line-height:1.45; }
.cu-radar-dev-link { font-size:12px !important; }

.cu-radar-public-note strong { font-size:13px !important; }
.cu-radar-public-note span { font-size:13px !important; color:#9fb5c7 !important; line-height:1.5; }
.cu-radar-warnings { font-size:12px !important; color:#a9bac9 !important; line-height:1.45; }
.cu-radar-warnings summary { font-size:13px !important; }

/* Calendário da cidade */
.cu-calendar-empty strong { font-size:14px !important; }
.cu-calendar-empty p { font-size:13px !important; color:#9eb4c7 !important; line-height:1.5; }
.cu-calendar-item span { font-size:11px !important; color:#82c6ff !important; }
.cu-calendar-item strong { font-size:14px !important; }
.cu-calendar-item small { font-size:12px !important; color:#9fb5c7 !important; line-height:1.45; }
.cu-calendar-item a { font-size:12px !important; }

/* Mobile: preservar densidade, sem voltar a texto minúsculo */
@media (max-width:767px) {
  .topbar > span { font-size:12px !important; }
  .bottom-nav button { font-size:12px !important; }
  .metric small { font-size:12px !important; }
  .cu-stat span,
  .cu-accounts-summary span,
  .cu-rental-summary span,
  .cu-loan-row span,
  .cu-loan-row small { font-size:12px !important; }
  .cu-radar-page-head p,
  .cu-radar-event p,
  .cu-radar-state { font-size:13px !important; }
  .cu-radar-provider > small,
  .cu-radar-public-provider > small,
  .cu-radar-location-card small,
  .cu-radar-event-meta,
  .cu-radar-estimate-note,
  .cu-radar-public-note span { font-size:12px !important; }
}

/* ===== V13 CONSOLIDAÇÃO ===== */
body.cu-cash-page-active main.content > :not(#cu-cash-page),
body.cu-cash-page-active .content > :not(#cu-cash-page) { display:none !important; }
#cu-cash-page { display:none; min-width:0; max-width:100%; overflow-x:hidden; }
body.cu-cash-page-active #cu-cash-page { display:block; }
body.cu-cash-page-active .desktop-sidebar button[data-active="true"]:not(#cu-cash-nav-btn) { background:transparent !important; color:inherit !important; }
body.cu-cash-page-active #cu-cash-nav-btn { background:rgba(25,118,210,.16) !important; color:#8dc8ff !important; }
body.cu-radar-active #cu-cash-nav-btn { background:transparent !important; color:inherit !important; }
body.cu-cash-page-active #cu-radar-nav-btn { background:transparent !important; color:inherit !important; }

.cu-page-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.cu-cash-page-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 16px; }
.cu-cash-page-metrics .cu-stat small { display:block; margin-top:4px; color:#9db3c7; font-size:12px; }
.cu-cash-next-list, .cu-ledger-list { display:grid; gap:8px; }
.cu-cash-next-list > div, .cu-ledger-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; border:1px solid rgba(130,170,205,.14); background:rgba(2,13,23,.36); border-radius:12px; }
.cu-cash-next-list span, .cu-ledger-row > div { min-width:0; display:grid; gap:2px; }
.cu-cash-next-list small, .cu-ledger-row small { color:#9cb3c7; font-size:12px; }
.cu-ledger-row span { color:#aebfd0; font-size:13px; overflow-wrap:anywhere; }
.cu-ledger-row > strong { white-space:nowrap; font-size:15px; }
.cu-ledger-row > strong.positive { color:#39e29d; }
.cu-ledger-row > strong.negative { color:#ff7e91; }

.cu-performance-panel { grid-column:1/-1; }
.cu-performance-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:10px; }
.cu-performance-grid > div { padding:12px; border:1px solid rgba(130,170,205,.14); background:rgba(2,13,23,.32); border-radius:12px; }
.cu-performance-grid span { display:block; color:#a9bfd3; font-size:12px; margin-bottom:4px; }
.cu-performance-grid strong { font-size:18px; color:#f7fbff; }

.cu-loan-block { border:1px solid rgba(130,170,205,.14); border-radius:13px; padding:8px; margin:10px 0; background:rgba(2,13,23,.25); }
.cu-loan-buttons { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.cu-loan-payments { display:grid; gap:6px; padding:6px 8px 2px; }
.cu-loan-payments > div { display:flex; align-items:center; justify-content:space-between; gap:10px; color:#aebfd0; font-size:12px; padding-top:6px; border-top:1px solid rgba(130,170,205,.1); }
.cu-check-row { display:flex; align-items:center; gap:9px; margin:8px 0 14px; color:#c6d6e4; font-size:13px; }
.cu-check-row input { width:18px; height:18px; }

.cu-tools-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:10px 0 12px; }
.cu-tools-grid > div { padding:12px; border:1px solid rgba(130,170,205,.14); border-radius:12px; background:rgba(2,13,23,.28); }
.cu-tools-grid span { display:block; color:#a9bfd3; font-size:12px; }
.cu-tools-grid strong { display:block; color:#f7fbff; font-size:16px; margin-top:3px; }
.cu-tools-actions { display:flex; gap:9px; flex-wrap:wrap; }

.cu-history-mobile { display:none; }

.cu-radar-source-pill.bad { border-color:rgba(255,108,127,.35) !important; color:#ff9bac !important; background:rgba(255,80,105,.08) !important; }
.cu-radar-source-pill.neutral { color:#bfd0df !important; border-color:rgba(150,180,205,.24) !important; background:rgba(130,160,185,.06) !important; }

.cu-forgot { width:100%; margin-top:8px; text-align:center; }

@media (max-width: 980px) {
  .cu-cash-page-metrics, .cu-performance-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .cu-page-actions { width:100%; }
  .cu-page-actions .cu-btn { flex:1 1 0; }
  .cu-cash-page-metrics, .cu-performance-grid, .cu-tools-grid { grid-template-columns:1fr 1fr; }
  .cu-cash-next-list > div, .cu-ledger-row { align-items:flex-start; }
  .cu-ledger-row > strong { font-size:14px; }
  .cu-loan-row { grid-template-columns:1fr 1fr !important; }
  .cu-loan-row > div:first-child, .cu-loan-buttons { grid-column:1/-1; }
  .cu-loan-buttons { justify-content:stretch; }
  .cu-loan-buttons .cu-table-btn { flex:1; }
  .cu-history-mobile { display:grid; gap:10px; margin-top:12px; }
  .cu-history-mobile article { border:1px solid rgba(130,170,205,.15); background:rgba(2,13,23,.33); border-radius:14px; padding:13px; }
  .cu-history-day { display:flex; justify-content:space-between; gap:10px; padding-bottom:9px; margin-bottom:9px; border-bottom:1px solid rgba(130,170,205,.12); }
  .cu-history-day strong { color:#f7fbff; }
  .cu-history-day span { color:#66e5ab; font-weight:700; }
  .cu-history-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .cu-history-grid > div { padding:8px 9px; border-radius:10px; background:rgba(7,26,42,.55); }
  .cu-history-grid span { display:block; color:#9fb5c8; font-size:12px; }
  .cu-history-grid strong { display:block; color:#eef7ff; font-size:14px; margin-top:2px; }
  body:has(#cu-history-mobile) main.content table,
  body:has(#cu-history-mobile) .content table { display:none !important; }
}

@media (max-width: 430px) {
  .cu-cash-page-metrics, .cu-performance-grid, .cu-tools-grid { grid-template-columns:1fr; }
}


/* V13.1 — cobertura da próxima conta pelo caixa real */
.cu-next-cover-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 4px!important;padding:10px 12px;border:1px solid rgba(73,222,168,.22);border-radius:10px;background:rgba(18,116,84,.10);font-size:13px}
.cu-next-cover-line span{color:#b7cadb}
.cu-next-cover-line strong{color:#49dea8;font-size:15px}
.cu-next-cover-detail{display:flex;flex-wrap:wrap;gap:8px 16px;margin:4px 0 8px;font-size:12px;color:#9db3c5}
.cu-next-cover-detail strong{color:#eaf4fb}
.cu-next-covered{color:#49dea8;font-weight:700}
.cu-next-missing{color:#ff6b81;font-weight:700}
@media(max-width:700px){.cu-next-cover-line{font-size:12px}.cu-next-cover-line strong{font-size:14px}.cu-next-cover-detail{font-size:12px;flex-direction:column;gap:4px}}

/* V13.2 — fechamento diário simplificado + meta semanal */
.goal.cu-week-goal {
  display:grid !important;
  grid-template-columns:minmax(210px,1.2fr) minmax(150px,.8fr) minmax(150px,.8fr) minmax(180px,1fr) !important;
  align-items:center;
  gap:18px 24px !important;
}
.goal.cu-week-goal > div { min-width:0; }
.cu-week-primary small,
.goal.cu-week-goal > div > small { display:block; margin-top:5px; color:#8fa9c2; font-size:12px; line-height:1.35; }
.cu-week-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.cu-week-edit { color:#87bfff; background:#102238; border:1px solid #315274; border-radius:8px; padding:8px 10px; font-size:12px; white-space:nowrap; cursor:pointer; }
.cu-week-edit:hover { background:#17314d; }
.cu-week-progress { height:9px; background:#19334f; border-radius:999px; overflow:hidden; }
.cu-week-progress i { display:block; height:100%; border-radius:inherit; background:#2adc9f; transition:width .2s ease; }
.cu-week-insights { grid-column:1 / -1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.cu-week-insights > div { background:#081827; border:1px solid #1d3853; border-radius:11px; padding:13px 14px; }
.cu-week-insights span { font-size:12px !important; color:#9db4ca !important; }
.cu-week-insights strong { font-size:18px !important; margin-top:5px !important; color:#f2f7ff; }
.cu-week-days { grid-column:1 / -1; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; }
.cu-week-day { background:#071522; border:1px solid #1a334b; border-radius:9px; padding:10px 8px; text-align:center; }
.cu-week-day span { font-size:11px !important; color:#8fa8c0 !important; }
.cu-week-day strong { font-size:13px !important; margin-top:4px !important; white-space:nowrap; }
.cu-week-day.done { border-color:#215947; background:#09261f; }
.cu-week-day.today { border-color:#3f86ca; box-shadow:inset 0 0 0 1px rgba(72,153,230,.18); }

#lancar-dia .cu-daily-hidden-field { display:none !important; }
#lancar-dia .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
#lancar-dia .cu-daily-help { margin:-4px 0 16px; color:#a7bbcd; font-size:13px; line-height:1.5; }
#lancar-dia .cu-daily-visible span { color:#d5e6f8; font-weight:650; }
#lancar-dia .day-summary { margin-top:18px; }
.cu-weekly-settings-card .cu-mini-action { margin-top:9px; }

@media (max-width:1100px) {
  .goal.cu-week-goal { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .goal.cu-week-goal .cu-week-insights,
  .goal.cu-week-goal .cu-week-days { grid-column:1 / -1; }
  .cu-week-days { grid-template-columns:repeat(4,minmax(0,1fr)); }
}

@media (max-width:767px) {
  .goal.cu-week-goal { grid-template-columns:1fr 1fr !important; gap:14px !important; padding:18px !important; }
  .cu-week-primary { grid-column:1 / -1; }
  .goal.cu-week-goal .goal-progress { grid-column:1 / -1; }
  .cu-week-insights { grid-template-columns:1fr; }
  .cu-week-days { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cu-week-title-row { align-items:center; }
  .cu-week-edit { min-height:40px; }
  #lancar-dia .form-grid { grid-template-columns:1fr; }
  #lancar-dia .cu-daily-help { font-size:13px; }
}


/* ===== V13.3 — QA MOBILE E ACABAMENTO ===== */
.cu-bill-cover .gap.good strong { color:#68e3a6 !important; }
.cu-bill-cover .gap.good span { color:#9eb3c6 !important; }

@media (max-width:767px) {
  /* Área segura adicional para a navegação fixa inferior. */
  main.content, .content {
    padding-bottom:calc(140px + env(safe-area-inset-bottom)) !important;
  }
  html { scroll-padding-bottom:calc(92px + env(safe-area-inset-bottom)); }
  .panel, .cu-bill-card, .cu-history-mobile article, #cu-cash-page section {
    scroll-margin-bottom:calc(92px + env(safe-area-inset-bottom));
  }

  /* O seletor de período não deve cortar “setembro de 2026”. */
  .page-head .field {
    min-width:160px;
    max-width:170px !important;
  }
  .page-head .field input[type="month"] {
    width:100%;
    min-width:0;
    font-size:14px;
  }

  /* Valores grandes das configurações não quebram no meio. */
  .metrics.three .metric strong {
    font-size:20px;
    white-space:nowrap;
    letter-spacing:-.02em;
  }

  /* No Radar, os filtros aparecem por inteiro em vez de ficarem cortados. */
  .cu-radar-filters {
    flex-wrap:wrap;
    overflow:visible;
    padding-right:0;
  }
  .cu-radar-filters button {
    flex:0 0 auto;
  }
}

@media (max-width:380px) {
  .page-head .field { min-width:150px; max-width:155px !important; }
  .metrics.three .metric strong { font-size:18px; }
}


/* V13.5 — excluir contas + modal desktop sem precisar reduzir zoom */
.cu-delete-account-btn {
  width:100%; min-height:40px; margin-top:10px; border-radius:10px;
  border:1px solid rgba(255,111,130,.45); background:rgba(125,27,45,.12);
  color:#ff9aaa; font:inherit; font-weight:800; cursor:pointer;
}
.cu-delete-account-btn:hover { background:rgba(160,35,57,.2); border-color:rgba(255,111,130,.7); }
.cu-btn.danger { background:#b8324a; border-color:#cf465f; color:#fff; }
.cu-btn.danger:hover { background:#c93b55; }
.cu-delete-warning { margin-top:14px; padding:11px 12px; border-radius:11px; border:1px solid rgba(218,87,108,.28); background:rgba(116,29,47,.15); color:#ffb4c0; font-size:12px; line-height:1.45; }
.cu-delete-modal-card { max-width:520px; }

/* O modal de edição sempre cabe no viewport em zoom 100%. */
#cu-bill-edit-modal { overflow-y:auto; place-items:start center; }
#cu-bill-edit-modal .cu-bill-edit-card {
  max-height:calc(100dvh - 36px); overflow-y:auto; overscroll-behavior:contain;
  scrollbar-gutter:stable; margin:18px 0;
}
@supports not (height: 100dvh) {
  #cu-bill-edit-modal .cu-bill-edit-card { max-height:calc(100vh - 36px); }
}
@media (min-width:768px) and (max-height:820px) {
  #cu-bill-edit-modal { padding:10px 18px; }
  #cu-bill-edit-modal .cu-bill-edit-card { margin:0; padding:15px 18px; max-height:calc(100dvh - 20px); }
  #cu-bill-edit-modal .cu-modal-card h2 { font-size:20px; margin:1px 0 3px; }
  #cu-bill-edit-modal .cu-muted { font-size:12px; line-height:1.35; }
  #cu-bill-edit-modal .cu-label { margin-top:9px; font-size:12px; }
  #cu-bill-edit-modal .cu-input { min-height:39px; margin-top:4px; }
  #cu-bill-edit-modal .cu-textarea { min-height:58px; height:58px; }
  #cu-bill-edit-modal .cu-confirm-actions { margin-top:11px; }
  #cu-bill-edit-modal .cu-delete-account-btn { min-height:36px; margin-top:7px; }
  #cu-bill-edit-modal .cu-modal-close { width:32px; height:32px; font-size:21px; }
}
@media (max-width:560px) {
  #cu-bill-edit-modal { padding:10px; }
  #cu-bill-edit-modal .cu-bill-edit-card { margin:0; max-height:calc(100dvh - 20px); }
}

/* V14.8 — edição direta do aluguel mensal */
.cu-rental-monthly-edit{margin-top:12px;width:auto!important;min-height:34px!important;padding:7px 11px!important;font-size:12px!important}
@media(max-width:700px){.cu-rental-monthly-edit{width:100%!important}}

/* V15.0 - fechamento do dia, cofres e locação editável */
.cu-v15-separation-lines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.cu-v15-separation-lines>div{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid rgba(127,164,196,.16);border-radius:12px;background:rgba(4,14,24,.44)}
.cu-v15-separation-lines span{font-size:12px;color:#a7bbcd}.cu-v15-separation-lines strong{font-size:18px;color:#f4f9fd}.cu-v15-separation-lines small{font-size:11px;color:#8198ad;line-height:1.35}
.cu-v15-shortfall{margin-top:10px;padding:10px 12px;border-radius:10px;background:rgba(245,158,11,.08);border:1px solid rgba(245,158,11,.22);font-size:12px;color:#e8c98d}
.cu-v15-saved{margin-top:10px;padding:9px 11px;border-radius:10px;background:rgba(34,197,94,.06);border:1px solid rgba(34,197,94,.18);font-size:12px;color:#b8d8c1}
.cu-v15-separate-now{width:100%;margin-top:12px;min-height:44px}.cu-v15-separate-now:disabled{opacity:.48;cursor:not-allowed}
.cu-v15-vault-panel{margin-top:14px}.cu-v15-vault-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.cu-v15-vault-grid>div{padding:14px;border-radius:13px;background:rgba(4,14,24,.48);border:1px solid rgba(127,164,196,.14)}
.cu-v15-vault-grid span,.cu-v15-vault-grid small{display:block;color:#9eb2c5}.cu-v15-vault-grid span{font-size:12px}.cu-v15-vault-grid strong{display:block;margin:5px 0 3px;font-size:21px;color:#f4f9fd}.cu-v15-vault-grid small{font-size:11px}
.cu-v15-due-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 14px}.cu-v15-due-summary>div{padding:11px 12px;border-radius:11px;background:rgba(4,14,24,.44);border:1px solid rgba(127,164,196,.13)}
.cu-v15-due-summary span{display:block;font-size:11px;color:#9eb2c5}.cu-v15-due-summary strong{display:block;margin-top:4px;color:#f4f9fd}.cu-v15-due-summary .danger strong{color:#ffb0b0}.cu-v15-due-summary .good strong{color:#a9e8bc}
.cu-cash-next-list>div{align-items:center;gap:10px}.cu-cash-next-list em{font-size:10px;font-style:normal;color:#ffb0b0;white-space:nowrap}.cu-cash-next-list em.good{color:#a9e8bc}
#cu-rental-modal .cu-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:700px){.cu-v15-separation-lines,.cu-v15-vault-grid,.cu-v15-due-summary,#cu-rental-modal .cu-edit-grid{grid-template-columns:1fr}.cu-v15-vault-grid strong{font-size:19px}}
