:root {
  --canvas: #080f13;
  --surface: #101a20;
  --raised: #15232b;
  --overlay: #1b2c35;
  --control: #0c151a;
  --line: rgba(185, 211, 220, .14);
  --line-soft: rgba(185, 211, 220, .08);
  --line-strong: rgba(40, 203, 210, .52);
  --text: #e7eef2;
  --text-soft: #c0ccd1;
  --muted: #9baab4;
  --faint: #657680;
  --cyan: #28cbd2;
  --green: #72dca2;
  --amber: #e8b85a;
  --red: #ee8585;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 32px;
  --s8: 40px;
  --radius-control: 4px;
  --radius-panel: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--text); font-size: 15px; line-height: 1.45; }
button, input, select { font: inherit; }
button { color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .5; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow, .nav-label, .filter-caption, .table-heading, .section-kicker { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; line-height: 1.25; text-transform: uppercase; }
.mono, .amount, .metric-value, td.amount-cell, .sync-progress, .status-pill { font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace; }

.app-root { min-height: 100vh; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: var(--s6); background: var(--canvas); }
.login-panel { width: min(100%, 420px); padding: clamp(28px, 6vw, 52px); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); }
.brand-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--s6); border: 1px solid var(--line-strong); border-radius: 12px; color: var(--cyan); font-size: 22px; overflow: hidden; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.login-panel h1 { margin: 8px 0 8px; font-size: clamp(28px, 5vw, 38px); letter-spacing: -.04em; line-height: 1.06; }
.login-lead { margin: 0 0 var(--s7); color: var(--muted); }
.stack-form { display: grid; gap: var(--s2); }
.stack-form label { margin-top: var(--s2); color: var(--text-soft); font-size: 14px; font-weight: 600; }
.stack-form input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--control); color: var(--text); }
.stack-form input:hover { border-color: rgba(185, 211, 220, .28); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.password-wrap .icon-button { position: absolute; top: 4px; right: 4px; min-width: 36px; min-height: 36px; }
.form-error { margin: var(--s2) 0 0; padding: 10px 12px; border-left: 2px solid var(--red); background: rgba(238, 133, 133, .08); color: var(--red); font-size: 14px; }
.login-foot { margin: var(--s7) 0 0; color: var(--faint); font-size: 12px; }

.workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; position: sticky; top: 0; flex-direction: column; height: 100vh; height: 100dvh; overflow-y: auto; padding: var(--s6) var(--s4) var(--s4); border-right: 1px solid var(--line); background: var(--surface); }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; padding: 2px 8px; }
.brand-logo { width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 8px; object-fit: cover; flex: none; }
.brand-symbol { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); color: var(--cyan); font-size: 17px; }
.brand-lockup strong { display: block; font-size: 13px; letter-spacing: .02em; line-height: 1; }
.brand-lockup small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.primary-nav { display: flex; flex-direction: column; gap: 3px; margin-top: var(--s8); }
.nav-label { padding: 0 10px 7px; font-size: 10px; }
.nav-label-spaced { margin-top: var(--s6); }
.nav-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; text-align: left; }
.nav-item span { width: 18px; color: var(--faint); font-size: 17px; text-align: center; }
.nav-item:hover { border-color: var(--line); color: var(--text); }
.nav-item.is-active { border-color: var(--line); background: rgba(40, 203, 210, .08); color: var(--text); }
.nav-item.is-active span { color: var(--cyan); }
.sidebar-foot { display: grid; gap: var(--s3); margin-top: auto; padding: var(--s4) var(--s2) 0; border-top: 1px solid var(--line-soft); }
.connection-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.status-dot-muted { background: var(--faint); }
.status-dot-warn { background: var(--amber); }
.logout-button { display: flex; justify-content: space-between; min-height: 36px; padding: 0 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; text-align: left; }
.logout-button:hover { color: var(--red); }

.main-area { min-width: 0; }
/* Desktop: o topo não existe — cada tela tem o próprio cabeçalho. O topline é só mobile. */
.topbar { display: none; }
@media (max-width: 900px) {
  .topbar { display: block; min-height: 0; padding: var(--s3) var(--s4) var(--s4); border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .mobile-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
}
.mobile-topline { display: none; }
.page-heading h2 { margin: 6px 0 0; font-size: clamp(22px, 3vw, 30px); font-weight: 680; letter-spacing: -.035em; line-height: 1; }
.topbar-tools { display: flex; align-items: center; gap: var(--s2); }
.user-badge { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--text-soft); font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--raised); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 650; white-space: nowrap; transition: background-color .14s ease, border-color .14s ease, color .14s ease, transform .06s ease; }
.button:hover { border-color: var(--line-strong); background: var(--overlay); }
.button:active { transform: translateY(1px) scale(.99); }
@media (prefers-reduced-motion: reduce) { .button, .preset-button, .filter-apply { transition: none; } .preset-button:active, .button:active { transform: none; } }
.button-primary { border-color: rgba(40, 203, 210, .64); background: var(--cyan); color: #071316; }
.button-primary:hover { border-color: var(--cyan); background: #67dce1; }
.button-quiet { background: transparent; color: var(--muted); }
.button-danger { border-color: rgba(238, 133, 133, .4); color: var(--red); }
.button-wide { width: 100%; margin-top: var(--s4); }
.icon-button { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; color: var(--muted); cursor: pointer; }
.icon-button:hover { border-color: var(--line); color: var(--text); }

.filterbar { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s3); padding: var(--s4) clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--line-soft); background: rgba(16, 26, 32, .66); }
.filter-group { display: grid; gap: 7px; }
.date-range { display: flex; align-items: center; gap: 7px; }
.date-range input, .filter-select select { min-height: 36px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--control); color: var(--text); font-size: 13px; }
.date-range input { width: 137px; padding: 0 8px; }
.filter-select { display: grid; gap: 7px; }
.filter-select select { min-width: 144px; padding: 0 9px; }
.date-arrow { color: var(--faint); }
.preset-group { display: flex; gap: 2px; align-items: center; min-height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--control); }
.preset-button { min-height: 30px; padding: 0 8px; border: 0; border-radius: 2px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; transition: background-color .12s ease, color .12s ease, transform .06s ease; }
.preset-button:hover, .preset-button.is-selected { background: var(--raised); color: var(--text); }
.preset-button.is-selected { color: var(--cyan); }
.preset-button:active { transform: scale(.94); }
.filter-apply { min-height: 36px; margin-left: auto; transition: opacity .14s ease, transform .06s ease; }
.filter-apply.is-busy { opacity: .6; cursor: progress; }
.global-message { margin: var(--s4) clamp(20px, 4vw, 48px) 0; padding: 11px 14px; border-left: 2px solid var(--amber); background: rgba(232, 184, 90, .08); color: var(--amber); font-size: 13px; }
.global-message.error { border-color: var(--red); background: rgba(238, 133, 133, .08); color: var(--red); }

.view { padding: var(--s6) clamp(20px, 4vw, 48px) 64px; }
.view-header { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.view-header h3 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.02em; }
.view-header p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.view-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--s4); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; background: var(--surface); }
.metric-strip.metric-strip-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-item { min-width: 0; padding: var(--s4) var(--s5); border-right: 1px solid var(--line-soft); }
.metric-item:last-child { border-right: 0; }
.metric-label { display: block; color: var(--muted); font-size: 12px; }
.metric-value { display: block; margin-top: 9px; color: var(--text); font-size: clamp(19px, 2.5vw, 27px); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; }
.metric-value.cyan { color: var(--cyan); }
.metric-value.green { color: var(--green); }
.metric-value.amber { color: var(--amber); }
/* Visão geral: 3 cartões (Resumo do período com KPIs, Detalhamento financeiro, Outros indicadores) */
.coverage-band { display: grid; gap: var(--s4); margin-bottom: var(--s5); }
.summary-card { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.summary-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-width: 0; }
.summary-card-head > :first-child { min-width: 0; }
.summary-card-head:has(.view-actions) { flex-wrap: wrap; }
.summary-card-head .view-actions { margin-left: auto; }
.summary-card-title { margin: 0; color: var(--text); font-size: 19px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.summary-card-sub { margin: 4px 0 0; color: var(--text-soft); font-size: 14px; font-variant-numeric: tabular-nums; }
.summary-card-head .view-actions { flex-wrap: nowrap; gap: 6px; }
.summary-card-head .view-actions .button { flex: 0 0 auto; min-height: 34px; min-width: 34px; padding: 0 10px; font-size: 12px; gap: 5px; }
.button.period-button { flex: 0 0 auto; gap: 10px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.button.period-button svg { color: var(--text-soft); }
.summary-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@media (min-width: 1100px) { .summary-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.metric-item.summary-tile { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--control); }
.summary-tile-copy { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; min-width: 0; container-type: inline-size; }
.summary-tile .metric-label { color: var(--text-soft); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-tile .metric-value { margin: 0; color: var(--text); font-family: inherit; font-size: min(28px, 14cqi); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-tile .metric-value.white { color: var(--text); }
.summary-tile .metric-value.is-unknown { font-size: 16px; }
.summary-tile-icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); color: var(--text); }
.summary-tile-icon.amber, .summary-tile-icon.green { color: var(--green); background: rgba(114, 220, 162, .08); border-color: rgba(114, 220, 162, .16); }
.summary-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; }
@media (min-width: 1180px) { .summary-details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.coverage-detail { display: flex; flex-direction: column; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.coverage-detail-item { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-width: 0; padding: 13px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.coverage-detail-label { min-width: 0; color: var(--text-soft); line-height: 1.45; }
.coverage-detail-value { flex: 0 0 auto; color: var(--text-soft); white-space: nowrap; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace; }
.coverage-detail-value.is-white { color: var(--text); }
.coverage-detail-value.is-green { color: var(--green); }
.coverage-detail-value.is-amber { color: var(--amber); }
.coverage-detail-value.is-red { color: var(--red); }
.profit-under { display: block; margin-top: 2px; color: var(--green); font-size: 12px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.profit-under.is-pending { color: var(--faint); font-weight: 400; }
.coverage-cost-alert { display: flex; align-items: center; gap: 16px; margin: 6px 0 0; padding: 16px 20px; border-left: 4px solid var(--amber); border-radius: 8px; background: rgba(232, 184, 90, .07); color: var(--amber); line-height: 1.5; }
.coverage-cost-alert-icon { flex: 0 0 auto; }
.coverage-cost-alert p { margin: 0; font-size: 15px; }
.coverage-cost-alert strong { display: block; font-weight: 700; }
.coverage-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--text-soft); font-size: 12px; }
.coverage-chip.is-missing { border-color: rgba(232, 184, 90, .42); color: var(--amber); }
.coverage-chip.is-ok { border-color: rgba(114, 220, 162, .35); color: var(--green); }
.coverage-chip .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .85fr); gap: var(--s4); }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line-soft); }
.panel-heading h4 { margin: 0; font-size: 14px; font-weight: 650; }
.panel-heading .button { min-height: 30px; padding: 0 10px; font-size: 12px; font-weight: 600; }
.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.panel-body { padding: var(--s5); }
.chart-wrap { min-height: 224px; }
.chart-wrap svg { display: block; width: 100%; height: 220px; overflow: visible; }
.chart-axis { fill: var(--faint); font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace; font-size: 10px; }
.chart-grid { stroke: rgba(185, 211, 220, .1); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--cyan); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.chart-line.expenses { stroke: var(--amber); stroke-dasharray: 4 3; }
.chart-dot { fill: var(--surface); stroke: var(--cyan); stroke-width: 2; }
.chart-dot.expenses { stroke: var(--amber); }
.chart-legend { display: flex; gap: var(--s4); margin-top: var(--s2); color: var(--muted); font-size: 12px; }
.legend-key { display: inline-flex; align-items: center; gap: 6px; }
/* Gráfico diário: barras empilhadas (lucro + taxas + despesas = bruto) */
.chart-bar-profit { fill: var(--green); }
.chart-bar-loss { fill: var(--red); }
.chart-bar-fees { fill: var(--amber); }
.chart-bar-expenses { fill: rgba(238, 133, 133, .5); }
.chart-bar-bruto { fill: none; stroke: var(--cyan); stroke-width: 1.4; }
.chart-bar-bruto-fill { fill: rgba(40, 203, 210, .25); stroke: var(--cyan); stroke-width: 1.4; }
.chart-bar-value { fill: var(--text-soft); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-grid.chart-zero { stroke: rgba(185, 211, 220, .35); }
.legend-swatch { width: 18px; height: 2px; background: var(--cyan); }
.legend-swatch.chart-bar-profit { background: var(--green); }
.legend-swatch.chart-bar-loss { background: var(--red); }
.legend-swatch.chart-bar-fees { background: var(--amber); }
.legend-swatch.chart-bar-expenses { background: rgba(238, 133, 133, .5); height: 8px; }
.legend-swatch.chart-bar-bruto { background: transparent; height: 8px; border: 1.4px solid var(--cyan); }
.legend-swatch.expenses { background: var(--amber); }
.method-list { display: grid; gap: 14px; }
.method-chart { display: grid; justify-items: center; gap: var(--s3); }
.method-donut { width: min(100%, 230px); }
.donut-label { fill: var(--muted); font-size: 10px; }
.donut-total { fill: var(--text); font-size: 13px; font-weight: 700; }
.method-legend { display: grid; gap: 6px; width: 100%; }
.method-legend-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.method-legend-name { flex: 1 1 0; min-width: 0; color: var(--text-soft); }
.method-legend-value { margin-left: auto; white-space: nowrap; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.method-legend-count { flex-basis: 100%; text-align: right; color: var(--faint); font-size: 10.5px; }
.legend-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
/* Cores da legenda por classe: a CSP (style-src 'self') bloqueia style inline. Mesma ordem da paleta de createMethods. */
.legend-tone-0 { background: #28cbd2; }
.legend-tone-1 { background: #72dca2; }
.legend-tone-2 { background: #e8b85a; }
.legend-tone-3 { background: #ee8585; }
.legend-tone-4 { background: #b698dd; }
.legend-tone-5 { background: #8fb0ff; }
.legend-tone-6 { background: #9baab4; }
.method-row { display: grid; gap: 6px; }
.method-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.method-head span:first-child { color: var(--text-soft); }
.method-head span:last-child { color: var(--text); font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace; font-size: 12px; }
.method-bar { height: 5px; overflow: hidden; border-radius: 99px; background: var(--control); }
.method-bar-svg { display: block; width: 100%; height: 5px; overflow: visible; }
.method-track { fill: var(--control); }
.method-fill { fill: var(--cyan); }
.panel-heading-inset { margin: -20px -20px 20px; }
.method-bar span { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--cyan); }
.sync-panel { margin-top: var(--s4); }
.sync-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.sync-copy { display: grid; gap: 4px; }
.sync-copy strong { font-size: 14px; }
.sync-copy span { color: var(--muted); font-size: 12px; }
.sync-progress { margin-top: var(--s4); color: var(--cyan); font-size: 13px; }
.progress-track { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: var(--control); }
.progress-track span { display: block; width: 0; height: 100%; background: var(--cyan); transition: width .25s ease; }

.state-panel { display: grid; place-items: center; min-height: 170px; padding: var(--s7); border: 1px dashed var(--line); border-radius: var(--radius-panel); color: var(--muted); text-align: center; }
.state-panel strong { display: block; margin-bottom: 5px; color: var(--text-soft); font-size: 14px; }
.state-panel p { max-width: 480px; margin: 0; font-size: 13px; }
.state-panel.is-error { border-color: rgba(238, 133, 133, .35); }
.state-panel.is-error strong { color: var(--red); }
.state-panel.is-loading { border-style: solid; }
.loading-pulse { display: inline-flex; gap: 4px; margin-bottom: 8px; }
.loading-pulse span { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); animation: pulse 1s infinite ease-in-out; }
.loading-pulse span:nth-child(2) { animation-delay: .12s; }.loading-pulse span:nth-child(3) { animation-delay: .24s; }
@keyframes pulse { 0%, 80%, 100% { opacity: .3; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 11px var(--s4); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px var(--s4); border-bottom: 1px solid var(--line-soft); color: var(--text-soft); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(40, 203, 210, .035); }
.data-table .right { text-align: right; }
.data-table .strong { color: var(--text); font-weight: 650; }
.data-table .muted { color: var(--faint); }
.data-table .amount-cell { color: var(--text); text-align: right; white-space: nowrap; }
.table-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-button { min-height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius-control); background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.mini-button:hover { border-color: var(--line-strong); color: var(--text); }
.mini-button.is-danger:hover { border-color: rgba(238, 133, 133, .5); color: var(--red); }
.status-pill { display: inline-flex; min-height: 24px; align-items: center; padding: 0 7px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.status-pill.is-good { border-color: rgba(114, 220, 162, .38); color: var(--green); }
.status-pill.is-warn { border-color: rgba(232, 184, 90, .4); color: var(--amber); }
.status-pill.is-bad { border-color: rgba(238, 133, 133, .4); color: var(--red); }
.table-footer { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; }
.pagination { display: flex; gap: 6px; }
.pagination .mini-button { min-width: 32px; }
.pagination .is-current { border-color: var(--line-strong); color: var(--cyan); }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: var(--s4); }
.form-panel { padding: var(--s5); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--text-soft); font-size: 12px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--control); color: var(--text); }
.form-field input[readonly] { border-color: var(--line-soft); background: var(--raised); color: var(--text-soft); cursor: default; caret-color: transparent; user-select: text; }
.form-field output.field-static { display: block; min-height: 28px; padding: 6px 0; color: var(--text); font-size: 15px; font-weight: 600; }
.form-field output.field-static:empty::before { content: '—'; color: var(--muted); font-weight: 400; }
.form-field textarea { min-height: 82px; resize: vertical; }
.form-help { margin: 0; color: var(--muted); font-size: 12px; }
.form-actions { display: flex; justify-content: end; gap: var(--s2); margin-top: var(--s4); }
.summary-list { display: grid; gap: 0; margin: 0; }
.summary-list > div { display: flex; justify-content: space-between; gap: var(--s3); padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.summary-list > div:last-child { border-bottom: 0; }
.summary-list dt { color: var(--muted); font-size: 13px; }.summary-list dd { margin: 0; color: var(--text); font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace; font-size: 13px; }
.diary-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.diary-date { min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--control); color: var(--text); }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: var(--s5); background: rgba(3, 8, 11, .8); }
.modal { width: min(100%, 560px); max-height: min(90vh, 720px); max-height: min(90dvh, 720px); overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--raised); }
.modal-header { display: flex; align-items: start; justify-content: space-between; gap: var(--s3); padding: var(--s5); border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 0; font-size: 18px; }.modal-header p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.modal-body { padding: var(--s5); }
.modal-footer { display: flex; justify-content: end; gap: var(--s2); padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.mobile-nav { display: none; }

@media (max-width: 1060px) {
  .workspace { grid-template-columns: 196px minmax(0, 1fr); }
  .metric-item { padding: var(--s4); }
  .dashboard-grid, .split-grid { grid-template-columns: 1fr; }
  .filterbar { align-items: stretch; }
  .filter-apply { margin-left: 0; }
}

@media (max-width: 700px) {
  .workspace { display: block; }
  .sidebar { display: none; }
  .topbar { display: block; min-height: 0; padding: var(--s1) var(--s4); }
  .mobile-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0; }
  .mobile-topline .brand-lockup { padding: 0; gap: 8px; }
  .mobile-topline .brand-logo { width: 28px; height: 28px; }
  .mobile-topline .brand-lockup strong { font-size: 12px; }
  .mobile-topline .brand-lockup small { font-size: 9px; margin-top: 2px; }
  .topline-actions { display: flex; align-items: center; gap: 12px; }
  .woo-status { flex: none; width: 13px; height: 13px; padding: 0; border: 0; border-radius: 50%; background: var(--faint); cursor: help; }
  .woo-status.is-ok { background: var(--green); }
  .woo-status.is-warn { background: var(--amber); }
  .woo-status.is-bad { background: var(--red); }
  /* No celular o painel de sincronização vira a bolinha de status */
  .sync-panel { display: none; }
  .topbar-tools { justify-content: space-between; margin-top: var(--s4); }
  .topbar-tools .user-badge { margin-right: auto; }
  .page-heading h2 { font-size: 24px; }
  .mobile-nav { display: block; padding: var(--s2) var(--s4) var(--s4); border-bottom: 1px solid var(--line); background: var(--surface); }
  /* Gaveta: um item por linha, largura inteira, Sair separado no fim */
  .mobile-nav .nav-item { display: flex; width: 100%; margin: 2px 0; }
  .mobile-nav .nav-item.is-logout { margin-top: var(--s3); padding-top: var(--s3); border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; color: var(--red); }
  .mobile-nav .nav-item.is-logout:hover { background: rgba(238, 133, 133, .06); color: var(--red); }
  .mobile-nav .nav-item.is-logout.is-active { background: transparent; color: var(--red); }
  .filterbar { display: grid; grid-template-columns: 1fr 1fr; padding: var(--s4); }
  .period-group, .preset-group, .filter-apply { grid-column: 1 / -1; }
  .filter-group, .filter-select, .date-range, .date-range label, .date-range input { min-width: 0; }
  .date-range input { width: 100%; min-height: 44px; }.date-range label { flex: 1 1 0; }
  .preset-group { justify-content: space-between; overflow-x: auto; }
  .preset-button { flex: 1 0 auto; min-height: 44px; }
  .filter-select select { min-width: 0; width: 100%; min-height: 44px; }
  .filter-apply { width: 100%; min-height: 44px; }
  .view { padding: var(--s5) var(--s4) 48px; }
  /* Painéis empilhados não grudam */
  .view > .panel { margin-bottom: 12px; }
  .view > .panel:last-child { margin-bottom: 0; }
  /* Cabeçalho em 1 linha: título à esquerda, botões à direita */
  .view-header { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 8px var(--s3); }
  .view-header > div:first-child { flex: 1 1 0; min-width: 0; }
  .view-header > .view-tools { flex: 1 1 100%; }
  #view-overview > .view-header > div:first-child { flex: 0 0 100%; width: 100%; }
  #view-overview > .view-header h3 { white-space: nowrap; }
  #view-overview > .view-header > .view-actions { flex: 0 0 100%; width: 100%; }
  /* Mês/data + ação principal na mesma linha, preenchendo a largura */
  .view-tools { flex-wrap: nowrap; }
  .view-tools .diary-date { flex: 1 1 auto; width: auto; min-height: 44px; }
  .view-tools .view-actions { flex: 0 0 auto; }
  .view-header > .diary-date { width: 100%; min-height: 44px; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-strip.metric-strip-trio { grid-template-columns: 1fr 1fr; }
  .metric-strip-trio .metric-item:nth-child(3) { border-right: 0; border-bottom: 0; grid-column: 1 / -1; }
  .metric-item:nth-child(2) { border-right: 0; }.metric-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .panel-heading, .panel-body { padding: var(--s4); }
  .form-grid { grid-template-columns: 1fr; }.form-field.full { grid-column: auto; }
  .table-footer { align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
  .table-footer .pagination { gap: 6px; }
  .table-footer .mini-button { min-height: 40px; min-width: 56px; }
  /* Tabela vira cartão compacto: pares rótulo·valor em grade de 2 colunas */
  .data-table { min-width: 0; }
  .table-scroll { overflow-x: visible; }
  .data-table thead, .data-table caption { display: none; }
  .data-table, .data-table tbody { display: block; width: 100%; }
  .data-table tbody { display: grid; gap: 8px; padding: var(--s3) var(--s4) var(--s4); }
  .data-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--raised); }
  /* Datas nunca quebram em duas linhas dentro do card */
  .data-table td[data-label="Criação"], .data-table td[data-label="Conclusão"], .data-table td[data-label="Data"] { white-space: nowrap; }
  /* Card com fonte única: sem mono misturado */
  .data-table tbody tr :is(td, .status-pill, .mini-button, .mono, .amount-cell) { font-family: inherit; }
  /* Fundo do card segue a cor do status */
  .data-table tbody tr:has(.status-pill.is-good) { background: rgba(114, 220, 162, .07); border-color: rgba(114, 220, 162, .25); }
  .data-table tbody tr:has(.status-pill.is-warn) { background: rgba(232, 184, 90, .07); border-color: rgba(232, 184, 90, .25); }
  .data-table tbody tr:has(.status-pill.is-bad) { background: rgba(238, 133, 133, .07); border-color: rgba(238, 133, 133, .25); }
  .data-table tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .data-table tbody tr:hover { background: transparent; }
  .data-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; min-height: 24px; padding: 1px 0; border-bottom: 0; font-size: 12.5px; text-align: right; }
  .data-table td::before { content: attr(data-label); flex: none; max-width: 52%; color: var(--faint); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; }
  .data-table td:empty { display: none; }
  .data-table .status-pill { min-height: 20px; max-width: 100%; padding: 0 8px; font-size: 9px; white-space: nowrap; text-align: center; justify-content: center; }
  /* Status ganha linha inteira no card: pílula nunca quebra nem corta */
  .data-table tbody tr td[data-label="Status" i], .data-table tbody tr td[data-label="Estado" i], .data-table tbody tr td[data-label="Classe" i], .data-table tbody tr td[data-label="Prazo" i] { grid-column: 1 / -1; justify-content: flex-end; }
  /* Botões de ação: linha inteira à direita, sem rótulo */
  .data-table tbody tr td[data-label="Ação" i], .data-table tbody tr td[data-label="Ações" i] { grid-column: 1 / -1; justify-content: flex-end; }
  .data-table tbody tr td[data-label="Ação" i]::before, .data-table tbody tr td[data-label="Ações" i]::before { content: none; }
  .data-table .table-actions { justify-content: flex-end; gap: 4px; }
  .data-table .mini-button { min-height: 34px; padding-inline: 9px; }
  /* Catálogo (card grande): grade fixa 2 colunas — nome no topo esquerdo com o preço grande
     alinhado no topo direito; foto quadrada à esquerda; custo/estoque como pares rótulo·valor
     à direita; ações no pé direito; SKU sob a foto. Células localizadas por data-label
     (labelTable em app.js copia o thead) porque funcionário não tem Custo e pode não ter Ações. */
  .commerce-catalog-table tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; padding: 16px; align-content: space-between; }
  .commerce-catalog-table tbody tr > td[data-label="Produto"] { display: contents; }
  .commerce-catalog-table tbody tr > td[data-label="Produto"]::before { content: none; }
  .commerce-catalog-table tbody tr > td[data-label="Produto"] > .product-name { grid-row: 1; grid-column: 1; align-self: start; min-width: 0; text-align: left; overflow-wrap: anywhere; font-size: clamp(18px, 5.2vw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
  .commerce-catalog-table tbody tr > td[data-label="Preço"] { grid-row: 1; grid-column: 2; justify-content: flex-end; align-items: flex-start; font-size: clamp(18px, 5.2vw, 24px); font-weight: 700; white-space: nowrap; }
  .commerce-catalog-table tbody tr > td[data-label="Preço"]::before { content: none; }
  .commerce-catalog-table tbody tr > td[data-label="Produto"] > .catalog-thumb { grid-row: 2 / span 3; grid-column: 1; justify-self: start; align-self: start; width: 100%; height: auto; margin-right: 0; aspect-ratio: 1 / 1; padding: 8px; object-fit: contain; border: 1px solid var(--line); border-radius: 14px; background: var(--control); }
  .commerce-catalog-table tbody tr > td[data-label="Produto"] > .cell-sub { grid-row: 5; grid-column: 1; margin-top: 0; text-align: left; overflow-wrap: anywhere; font-size: 12px; }
  .commerce-catalog-table tbody tr > td[data-label="Custo"] { grid-row: 2; grid-column: 2; font-size: 16px; font-weight: 650; }
  .commerce-catalog-table tbody tr > td[data-label="Estoque"] { grid-row: 3; grid-column: 2; justify-content: space-between; font-size: 16px; font-weight: 650; }
  .commerce-catalog-table tbody tr > td[data-label="Custo"]::before, .commerce-catalog-table tbody tr > td[data-label="Estoque"]::before { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
  .commerce-catalog-table tbody tr > td[data-label="Estoque"] .cell-sub { font-weight: 400; }
  .commerce-catalog-table tbody tr > td[data-label="Ações"] { grid-row: 4; grid-column: 2; align-self: end; justify-content: flex-end; padding-top: 10px; }
  .commerce-catalog-table tbody tr > td[data-label="Ações"]::before { content: none; }
  .commerce-catalog-table .table-actions { gap: 10px; }
  .commerce-catalog-table .mini-icon { width: 48px; height: 48px; border-radius: 12px; }
  .commerce-catalog-table .mini-icon svg { width: 22px; height: 22px; }
  /* Sem Custo (funcionário) ou sem Ações (sem permissão de gestão): sobe os pares, encurta a foto e sobe o SKU para não sobrar linha vazia. */
  .commerce-catalog-table tbody tr:not(:has(> td[data-label="Custo"])) > td[data-label="Estoque"] { grid-row: 2; }
  .commerce-catalog-table tbody tr:not(:has(> td[data-label="Custo"])) > td[data-label="Ações"] { grid-row: 3; }
  .commerce-catalog-table tbody tr:not(:has(> td[data-label="Custo"])) > td[data-label="Produto"] > .catalog-thumb { grid-row: 2 / span 2; }
  .commerce-catalog-table tbody tr:not(:has(> td[data-label="Custo"])) > td[data-label="Produto"] > .cell-sub { grid-row: 4; }
  .commerce-catalog-table tbody tr:not(:has(> td[data-label="Ações"])) > td[data-label="Produto"] > .catalog-thumb { grid-row: 2 / span 2; }
  .commerce-catalog-table tbody tr:not(:has(> td[data-label="Ações"])) > td[data-label="Produto"] > .cell-sub { grid-row: 4; }
  /* Vendas: pedido/data no topo; item ocupa o cartão; quant./valor e vendedor/status abaixo. */
  .commerce-sales-table tbody tr td[data-label="Pedido"] { grid-column: 1; grid-row: 1; justify-content: flex-start; font-size: 14px; font-weight: 700; }
  .commerce-sales-table tbody tr td[data-label="Data"] { grid-column: 2; grid-row: 1; justify-content: flex-end; color: var(--muted); font-size: 12px; }
  .commerce-sales-table tbody tr td[data-label="Item"] { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; align-items: center; overflow: visible; min-width: 0; text-align: left; }
  .commerce-sales-table .sale-item-content { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; overflow: visible; }
  .commerce-sales-table .sale-item-label { min-width: 0; overflow-wrap: anywhere; text-align: left; }
  .commerce-sales-table .sale-photo { flex: 0 0 56px; overflow: hidden; }
  .commerce-sales-table tbody tr td[data-label="Quantidade"] { grid-column: 1; grid-row: 3; justify-content: flex-start; }
  .commerce-sales-table tbody tr td[data-label="Valor da linha"] { grid-column: 2; grid-row: 3; justify-content: flex-end; }
  .commerce-sales-table tbody tr td[data-label="Vendedor"] { grid-column: 1; grid-row: 4; justify-content: flex-start; font-weight: 650; }
  .commerce-sales-table tbody tr td[data-label="Status"] { grid-column: 2; grid-row: 4; justify-content: flex-end; margin-top: 4px; }
  .commerce-sales-table.is-employee tbody tr td[data-label="Status"] { grid-column: 1; justify-content: flex-start; }
  .commerce-sales-table tbody tr td[data-label="Comissão"] { grid-column: 2; grid-row: 4; justify-content: flex-end; margin-top: 4px; }
  .commerce-sales-table tbody tr td::before { content: none; }
  .commerce-sales-table tbody tr td[data-label="Ação"] { grid-column: 1 / -1; grid-row: 5; justify-content: flex-end; }
  .commerce-sales-table tbody tr td[data-label="Ação"]::before { content: none; }
  .commerce-sales-table tbody tr td[data-label="Ação"] .table-actions { width: 100%; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  /* Dados da venda: identificação forte e pares com rótulos visíveis. */
  .commerce-sales-table tbody tr { gap: 10px 14px; padding: 14px; }
  .commerce-sales-table tbody tr td[data-label="Pedido"] { color: var(--text); font-size: 16px; font-weight: 750; }
  .commerce-sales-table tbody tr td[data-label="Pedido"]::before { content: '#'; display: inline; color: var(--muted); font-size: 14px; }
  .commerce-sales-table .sale-item-label { color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.4; }
  .commerce-sales-table tbody tr td:is([data-label="Quantidade"], [data-label="Valor da linha"], [data-label="Vendedor"], [data-label="Comissão"]) { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; font-weight: 650; }
  .commerce-sales-table tbody tr td:is([data-label="Valor da linha"], [data-label="Comissão"]) { align-items: flex-end; color: var(--text); font-size: 17px; font-weight: 750; }
  .commerce-sales-table tbody tr td:is([data-label="Quantidade"], [data-label="Valor da linha"], [data-label="Vendedor"], [data-label="Comissão"])::before { display: block; content: attr(data-label); max-width: none; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .05em; line-height: 1.3; }
  .commerce-sales-table tbody tr td[data-label="Valor da linha"]::before { content: 'Valor'; }
  .commerce-sales-table tbody tr td[data-label="Status"] { align-self: center; }
  /* Insights (ABC e parados): rótulo em cima, valor embaixo à direita — valores longos não se sobrepõem */
  .commerce-insight-table tbody tr { display: block; gap: 0; }
  .commerce-insight-table td { display: block; min-height: 0; }
  .commerce-insight-table td::before { display: block; max-width: none; margin-bottom: 1px; }
  .rows-cards-table tbody tr { display: block; gap: 0; }
  .rows-cards-table td { display: block; min-height: 0; margin-bottom: 7px; }
  .rows-cards-table td:last-child { margin-bottom: 0; }
  .rows-cards-table td::before { display: block; max-width: none; margin-bottom: 1px; }
  /* Acessos: pares alinhados na mesma coluna, sem rótulo do papel */
  .pairs-table td:last-child { grid-column: auto; }
  .pairs-table td:last-child::before { content: none; }
  .mini-button { min-height: 44px; padding-inline: 10px; }
  .modal-backdrop { padding: var(--s3); }
  .modal { max-height: min(90vh, 720px); max-height: min(90dvh, 720px); }
  .modal .icon-button, .modal .button, .modal input, .modal select, .modal textarea { min-height: 44px; }
  .modal-footer { display: grid; grid-template-columns: 1fr; }
  .login-screen { padding: var(--s4); }.login-panel { padding: var(--s6) var(--s5); }
  /* Barra de ações compacta: uma única linha, botões pequenos, rola se faltar espaço */
  .view-note { display: none; }
  .view-actions { flex-wrap: nowrap; overflow-x: auto; gap: 5px; scrollbar-width: none; }
  .view-actions::-webkit-scrollbar { display: none; }
  .view-actions .button { flex: 0 0 auto; min-height: 36px; padding: 0 9px; font-size: 12px; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.view-header.has-context { flex-wrap: wrap; } .view-header.has-context > .form-help { flex-basis: 100%; }
.button.sync-button { min-width: 34px; padding: 0 9px; font-size: 15px; line-height: 1; }
.button.print-button { min-width: 34px; padding: 0 9px; }
.view-tools { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.closure-panel > .form-help { margin: var(--s3) var(--s5); } .closure-panel form { padding: 0 var(--s5) var(--s5); }
@media (max-width: 700px) { .button, .icon-button { min-height: 44px; } .icon-button { min-width: 44px; } }

@media (max-width: 760px) { .data-table td::before { white-space: normal; overflow-wrap: anywhere; } }

#view-diary > .closure-panel { margin-top: var(--s4); }
.closure-panel form { padding-top: var(--s4); }
@media (max-width: 700px) {
  .coverage-band { gap: 12px; }
  .summary-card { gap: 14px; padding: 16px 14px; }
  .summary-card--kpis { padding: 16px 12px 14px; }
  .summary-card-head { gap: 8px; }
  .summary-card-title { font-size: 17px; }
  .summary-card-sub { font-size: 12.5px; }
  .button.period-button { min-height: 36px; padding: 0 8px; gap: 6px; font-size: 11px; }
  .button.period-button svg { width: 14px; height: 14px; }
  .summary-card-head .view-actions { gap: 4px; }
  .summary-card-head .view-actions .button { min-height: 32px; min-width: 32px; padding: 0 8px; }
  .summary-card-head .view-actions .button .button-label { display: none; }
  .summary-tiles { gap: 10px; }
  .metric-item.summary-tile { gap: 8px; padding: 12px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .summary-tile-icon { width: 34px; height: 34px; border-radius: 8px; }
  .summary-tile-icon svg { width: 18px; height: 18px; }
  .summary-tile .metric-label { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .coverage-detail-item { padding: 11px 6px; font-size: 13.5px; }
  .coverage-detail-value { font-size: 13.5px; }
  .coverage-cost-alert { gap: 12px; padding: 12px 14px; }
  .coverage-cost-alert p { font-size: 13.5px; }
}
@media (max-width: 380px) { .summary-card-head:has(.period-button) { flex-wrap: wrap; } .summary-tile .metric-label { font-size: 11px; } .summary-tile-icon { width: 30px; height: 30px; } .summary-tile-icon svg { width: 16px; height: 16px; } }
