:root {
  color-scheme: light;
  --navy-950: #061326;
  --navy-900: #081c35;
  --navy-850: #0b2442;
  --navy-800: #103253;
  --navy-700: #17476f;
  --gold-500: #d8a928;
  --gold-400: #e6bd4f;
  --gold-200: #f4e2a6;
  --gold-100: #fbf3da;
  --ink-950: #101828;
  --ink-800: #27364a;
  --ink-600: #526176;
  --ink-500: #6e7b8e;
  --ink-400: #8792a2;
  --line: #dce3ea;
  --line-strong: #cbd4df;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --surface-blue: #eef4f8;
  --success: #147a57;
  --success-soft: #eaf8f1;
  --warning: #b7791f;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --sidebar-width: 276px;
  --topbar-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-md: 0 12px 28px rgba(15, 35, 58, .09);
  --shadow-lg: 0 24px 60px rgba(4, 18, 36, .2);
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: "Albert Sans", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--surface-soft); }
body { margin: 0; min-height: 100vh; color: var(--ink-950); background: var(--surface-soft); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid rgba(216, 169, 40, .5); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 12px 16px; color: var(--navy-950); background: var(--gold-400); border-radius: var(--radius-sm); font-weight: 800; transition: top 160ms ease; }
.skip-link:focus { top: 16px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: var(--sidebar-width); color: #eaf0f6; background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%); border-right: 1px solid rgba(255,255,255,.08); }
.sidebar::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, #000, transparent 42%); }
.sidebar__brand { position: relative; display: flex; align-items: center; min-height: 86px; padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; min-width: 0; min-height: 44px; }
.brand__logo { display: block; width: 190px; max-width: 100%; height: auto; object-fit: contain; }
.sidebar__close { display: none; margin-left: auto; color: #fff; }
.sidebar__nav { position: relative; flex: 1; overflow: auto; padding: 15px 12px 24px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.nav-group { margin-top: 19px; }
.nav-group p { margin: 0 12px 7px; color: #70849c; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 12px; margin: 2px 0; border-radius: 10px; color: #bbcad9; font-size: 13px; font-weight: 620; transition: color 160ms ease, background 160ms ease, transform 160ms ease; }
.nav-item svg { flex: 0 0 auto; width: 18px; height: 18px; color: #7890a8; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.is-active { color: #fff; background: rgba(216,169,40,.16); box-shadow: inset 0 0 0 1px rgba(230,189,79,.15); }
.nav-item.is-active::before { content: ""; position: absolute; left: -12px; width: 3px; height: 24px; border-radius: 0 4px 4px 0; background: var(--gold-400); }
.nav-item.is-active svg { color: var(--gold-400); }
.sidebar__support { position: relative; display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 9px; margin: 0 14px 12px; padding: 12px; border: 1px solid rgba(230,189,79,.16); background: rgba(230,189,79,.06); border-radius: var(--radius-md); }
.sidebar__support-icon { display: grid; place-items: center; width: 34px; height: 34px; color: var(--gold-400); background: rgba(230,189,79,.12); border-radius: 9px; }
.sidebar__support strong, .sidebar__profile strong { display: block; color: #f5f8fb; font-size: 12px; }
.sidebar__support small, .sidebar__profile small { display: block; color: #8094aa; font-size: 10px; }
.sidebar__support > a { display: grid; place-items: center; min-width: 28px; min-height: 44px; color: var(--gold-400); }
.sidebar__support > a svg { width: 16px; }
.sidebar__profile { position: relative; display: grid; grid-template-columns: 38px 1fr 36px; align-items: center; gap: 10px; min-height: 70px; padding: 12px 15px; border-top: 1px solid rgba(255,255,255,.08); }
.avatar, .topbar__avatar { display: grid; place-items: center; color: var(--navy-950); background: linear-gradient(145deg, var(--gold-200), var(--gold-500)); font-weight: 850; }
.avatar { width: 38px; height: 38px; border-radius: 11px; font-size: 11px; }
.sidebar__profile .icon-button { color: #8194a9; }

.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--ink-600); background: transparent; border: 0; border-radius: 11px; transition: color 160ms ease, background 160ms ease; }
.icon-button:hover { color: var(--ink-950); background: rgba(16, 50, 83, .07); }
.app-content { min-width: 0; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; height: var(--topbar-height); padding: 0 clamp(18px, 3vw, 38px); background: rgba(255,255,255,.91); border-bottom: 1px solid rgba(220,227,234,.9); backdrop-filter: blur(16px); }
.topbar__menu { display: none; }
.global-search { position: relative; width: min(460px, 48vw); }
.global-search > svg { position: absolute; left: 14px; top: 50%; width: 18px; transform: translateY(-50%); color: var(--ink-500); pointer-events: none; }
.global-search input { width: 100%; height: 44px; padding: 0 60px 0 43px; color: var(--ink-950); background: var(--surface-soft); border: 1px solid transparent; border-radius: 12px; outline: 0; }
.global-search input:focus { background: #fff; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(216,169,40,.14); }
.global-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 3px 7px; color: var(--ink-500); background: #fff; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 10px; box-shadow: 0 1px 0 var(--line); }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.search-results a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 9px 11px; border-radius: 9px; }
.search-results a:hover { background: var(--surface-soft); }
.search-results small { color: var(--ink-500); }
.topbar__actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--success); background: var(--success-soft); border: 1px solid #ccebdd; border-radius: 999px; font-size: 11px; font-weight: 750; }
.status-pill i { width: 7px; height: 7px; background: #1ea672; border-radius: 50%; box-shadow: 0 0 0 3px rgba(30,166,114,.12); }
.has-notification { position: relative; }
.has-notification::after { content: ""; position: absolute; right: 10px; top: 9px; width: 7px; height: 7px; background: var(--gold-500); border: 2px solid #fff; border-radius: 50%; }
.topbar__avatar { width: 38px; height: 38px; border-radius: 12px; font-size: 11px; }

#main-content { min-height: calc(100vh - var(--topbar-height)); padding: clamp(24px, 3vw, 42px); outline: none; }
.page { width: min(1480px, 100%); margin: 0 auto; animation: page-in 280ms var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-heading__copy { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--navy-700); font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 17px; height: 2px; background: var(--gold-500); }
.page-heading h1 { margin: 0 0 7px; color: var(--navy-950); font-size: clamp(27px, 3vw, 40px); line-height: 1.08; letter-spacing: -.035em; }
.page-heading p { max-width: 720px; margin-bottom: 0; color: var(--ink-600); }
.page-heading__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 11px; font-weight: 760; font-size: 13px; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border 160ms ease; }
.button svg { width: 17px; height: 17px; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button--primary { color: #fff; background: var(--navy-800); box-shadow: 0 7px 16px rgba(16,50,83,.18); }
.button--primary:hover { background: var(--navy-700); box-shadow: 0 9px 20px rgba(16,50,83,.24); }
.button--gold { color: var(--navy-950); background: var(--gold-400); box-shadow: 0 7px 16px rgba(216,169,40,.2); }
.button--gold:hover { background: #edc65c; }
.button--secondary { color: var(--navy-800); background: #fff; border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.button--secondary:hover { border-color: var(--navy-700); }
.button--ghost { color: var(--ink-600); background: transparent; }
.button--ghost:hover { color: var(--navy-800); background: var(--surface-blue); }
.button--danger { color: var(--danger); background: var(--danger-soft); }
.button[disabled] { cursor: not-allowed; opacity: .55; transform: none; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel__header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.panel__header h2 { margin: 0; font-size: 16px; letter-spacing: -.015em; }
.panel__header p { margin: 3px 0 0; color: var(--ink-500); font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--navy-700); font-size: 12px; font-weight: 750; }
.text-link svg { width: 15px; height: 15px; }

.hero-strip { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr); gap: 24px; overflow: hidden; margin-bottom: 22px; padding: clamp(24px, 4vw, 38px); color: #fff; background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); border-radius: var(--radius-xl); box-shadow: 0 18px 38px rgba(7,29,54,.2); }
.hero-strip::after { content: ""; position: absolute; width: 330px; height: 330px; right: -90px; top: -160px; border: 1px solid rgba(230,189,79,.2); border-radius: 50%; box-shadow: 0 0 0 38px rgba(230,189,79,.04), 0 0 0 76px rgba(230,189,79,.025); }
.hero-strip__copy { position: relative; z-index: 1; }
.hero-strip .eyebrow { color: var(--gold-200); }
.hero-strip h1 { max-width: 700px; margin-bottom: 12px; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -.04em; }
.hero-strip p { max-width: 620px; margin-bottom: 22px; color: #b8c8d8; }
.hero-strip__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-strip__aside { position: relative; z-index: 1; align-self: stretch; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hero-mini-stat { display: flex; flex-direction: column; justify-content: space-between; min-height: 100px; padding: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 15px; backdrop-filter: blur(8px); }
.hero-mini-stat:first-child { grid-column: span 2; }
.hero-mini-stat span { color: #9fb3c6; font-size: 11px; }
.hero-mini-stat strong { margin-top: 12px; color: #fff; font-size: 22px; line-height: 1; }
.hero-mini-stat small { color: var(--gold-200); font-size: 10px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.stat-card { position: relative; min-height: 140px; padding: 19px; overflow: hidden; }
.stat-card__top { display: flex; align-items: center; justify-content: space-between; }
.stat-card__icon { display: grid; place-items: center; width: 39px; height: 39px; color: var(--navy-700); background: var(--surface-blue); border-radius: 11px; }
.stat-card__icon.is-gold { color: #8a6411; background: var(--gold-100); }
.stat-card__trend { color: var(--success); font-size: 11px; font-weight: 800; }
.stat-card__label { display: block; margin-top: 18px; color: var(--ink-500); font-size: 12px; }
.stat-card__value { display: block; margin-top: 3px; color: var(--navy-950); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; letter-spacing: -.035em; }
.stat-card__meta { display: block; margin-top: 7px; color: var(--ink-400); font-size: 10px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); gap: 20px; margin-bottom: 22px; }
.chart-panel { min-height: 360px; }
.chart-toolbar { display: flex; align-items: center; gap: 8px; }
.segmented { display: inline-flex; padding: 3px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; }
.segmented button { min-height: 35px; padding: 6px 10px; color: var(--ink-500); background: transparent; border: 0; border-radius: 7px; font-size: 11px; font-weight: 700; }
.segmented button.is-active { color: var(--navy-900); background: #fff; box-shadow: var(--shadow-sm); }
.chart-wrap { padding: 25px 22px 19px; }
.chart-legend { display: flex; gap: 18px; margin-bottom: 24px; color: var(--ink-500); font-size: 11px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--navy-700); }
.chart-legend span:last-child i { background: var(--gold-400); }
.bar-chart { display: grid; grid-template-columns: repeat(8, 1fr); align-items: end; gap: clamp(8px, 1.5vw, 19px); height: 225px; padding-top: 10px; border-bottom: 1px solid var(--line); background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% 25%; }
.bar-chart__group { display: flex; align-items: end; justify-content: center; gap: 4px; height: 100%; }
.bar-chart__bar { width: min(20px, 38%); height: var(--height); background: var(--navy-700); border-radius: 5px 5px 0 0; transform-origin: bottom; animation: grow 600ms var(--ease) both; }
.bar-chart__bar:last-child { background: var(--gold-400); animation-delay: 80ms; }
@keyframes grow { from { transform: scaleY(.05); opacity: .2; } }
.chart-labels { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 9px; color: var(--ink-400); font-size: 10px; text-align: center; }

.activity-list { padding: 4px 20px 10px; }
.activity-item { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; min-height: 72px; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-item__icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--navy-700); background: var(--surface-blue); border-radius: 11px; }
.activity-item strong { display: block; font-size: 12px; }
.activity-item small { display: block; color: var(--ink-500); font-size: 10px; }
.activity-item time { color: var(--ink-400); font-size: 10px; white-space: nowrap; }

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.quick-card { display: flex; align-items: center; gap: 13px; min-height: 88px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); transition: border 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.quick-card:hover { transform: translateY(-2px); border-color: var(--gold-400); box-shadow: var(--shadow-md); }
.quick-card__icon { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; color: var(--gold-500); background: var(--gold-100); border-radius: 12px; }
.quick-card strong { display: block; color: var(--navy-950); font-size: 12px; }
.quick-card small { display: block; margin-top: 2px; color: var(--ink-500); font-size: 10px; }
.quick-card > svg { margin-left: auto; width: 15px; color: var(--ink-400); }

/* Módulos e listagem */
.module-header-card { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 18px; background: linear-gradient(135deg, #fff, #f8fafc); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.module-header-card__icon { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; color: var(--navy-700); background: var(--gold-100); border-radius: 14px; }
.module-header-card__icon svg { width: 23px; height: 23px; }
.module-header-card strong { display: block; font-size: 14px; }
.module-header-card p { margin: 2px 0 0; color: var(--ink-500); font-size: 11px; }
.module-header-card__law { margin-left: auto; max-width: 390px; padding-left: 18px; color: var(--ink-500); border-left: 1px solid var(--line); font-size: 10px; text-align: right; }
.view-tabs { display: inline-flex; padding: 4px; margin-bottom: 18px; background: #e9eef3; border-radius: 12px; }
.view-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 16px; color: var(--ink-500); border-radius: 9px; font-size: 12px; font-weight: 760; }
.view-tabs a.is-active { color: var(--navy-900); background: #fff; box-shadow: var(--shadow-sm); }
.view-tabs svg { width: 16px; }

.filter-bar { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(150px, .65fr)) minmax(150px, .6fr) auto; align-items: end; gap: 12px; padding: 17px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { color: var(--ink-600); font-size: 11px; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink-950); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aeb9c6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(216,169,40,.13); }
.field input::placeholder, .field textarea::placeholder { color: #9aa5b2; }
.field__hint { color: var(--ink-400); font-size: 10px; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 12px; bottom: 12px; width: 17px; color: var(--ink-400); pointer-events: none; }
.search-field input { padding-left: 38px; }
.filters-action { align-self: end; }

.table-panel { overflow: hidden; }
.table-panel__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; padding: 10px 17px; border-bottom: 1px solid var(--line); }
.table-panel__toolbar strong { font-size: 13px; }
.table-panel__toolbar span { color: var(--ink-500); font-size: 11px; }
.table-panel__actions { display: flex; align-items: center; gap: 5px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 840px; border-collapse: collapse; }
.data-table th { height: 46px; padding: 8px 16px; color: var(--ink-500); background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { height: 64px; padding: 10px 16px; color: var(--ink-800); border-bottom: 1px solid #edf1f4; font-size: 12px; vertical-align: middle; }
.data-table tbody tr { transition: background 140ms ease; }
.data-table tbody tr:hover { background: #fafbfd; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.client-cell { display: flex; align-items: center; gap: 10px; }
.client-cell__mark { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; color: var(--navy-700); background: var(--surface-blue); border-radius: 9px; font-size: 10px; font-weight: 850; }
.client-cell strong { display: block; color: var(--navy-950); font-size: 12px; }
.client-cell small { display: block; color: var(--ink-400); font-size: 9px; }
.money { font-variant-numeric: tabular-nums; font-weight: 730; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 4px 8px; color: var(--navy-700); background: var(--surface-blue); border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; opacity: .7; }
.badge--success { color: var(--success); background: var(--success-soft); }
.badge--warning { color: #91620d; background: var(--gold-100); }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; }
.row-actions .icon-button { width: 36px; height: 36px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 10px 17px; background: #fbfcfd; border-top: 1px solid var(--line); }
.table-footer p { margin: 0; color: var(--ink-500); font-size: 10px; }
.pagination { display: flex; gap: 5px; }
.pagination button { min-width: 36px; min-height: 36px; padding: 7px; color: var(--ink-600); background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; }
.pagination button.is-active { color: #fff; background: var(--navy-800); border-color: var(--navy-800); }

.state-box { display: grid; place-items: center; min-height: 330px; padding: 40px 24px; text-align: center; }
.state-box__icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 16px; color: var(--navy-700); background: var(--surface-blue); border-radius: 18px; }
.state-box__icon svg { width: 26px; height: 26px; }
.state-box h2 { margin-bottom: 6px; font-size: 17px; }
.state-box p { max-width: 430px; margin-bottom: 18px; color: var(--ink-500); font-size: 12px; }
.skeleton-table { padding: 18px; }
.skeleton-row { display: grid; grid-template-columns: 1.2fr .7fr .8fr .8fr .5fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.skeleton-row span { height: 13px; background: linear-gradient(90deg, #edf1f4 25%, #f7f9fb 50%, #edf1f4 75%); background-size: 200% 100%; border-radius: 5px; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Formulário */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 20px; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 14px 18px; margin-bottom: 16px; }
.step { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink-400); font-size: 10px; font-weight: 750; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 38px; right: 12px; bottom: 4px; height: 2px; background: var(--line); }
.step__number { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; color: var(--ink-500); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 50%; }
.step.is-active { color: var(--navy-800); }
.step.is-active .step__number { color: var(--navy-950); background: var(--gold-400); border-color: var(--gold-400); }
.step.is-complete { color: var(--success); }
.step.is-complete .step__number { color: #fff; background: var(--success); border-color: var(--success); }
.step.is-complete::after { background: var(--success); }
.form-section { margin-bottom: 16px; overflow: hidden; }
.form-section__heading { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.form-section__number { display: grid; flex: 0 0 auto; place-items: center; width: 29px; height: 29px; color: var(--navy-700); background: var(--gold-100); border-radius: 9px; font-size: 10px; font-weight: 850; }
.form-section__heading h2 { margin: 0; font-size: 15px; }
.form-section__heading p { margin: 3px 0 0; color: var(--ink-500); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; padding: 20px; }
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.choice-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice-card { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 11px; color: var(--ink-600); background: #fff; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.choice-card:hover { border-color: var(--gold-400); }
.choice-card:has(input:checked) { color: var(--navy-900); background: var(--gold-100); border-color: var(--gold-500); box-shadow: 0 0 0 2px rgba(216,169,40,.1); }
.choice-card input { width: 17px; height: 17px; accent-color: var(--navy-800); }
.choice-card strong { display: block; font-size: 11px; }
.choice-card small { display: block; color: var(--ink-400); font-size: 9px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); }
.form-actions p { margin: 0; color: var(--ink-400); font-size: 10px; }
.form-actions__buttons { display: flex; gap: 9px; }
.form-summary { position: sticky; top: calc(var(--topbar-height) + 20px); overflow: hidden; }
.form-summary__hero { padding: 22px; color: #fff; background: linear-gradient(145deg, var(--navy-950), var(--navy-800)); }
.form-summary__hero span { color: var(--gold-200); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.form-summary__hero h2 { margin: 8px 0 5px; font-size: 19px; }
.form-summary__hero p { margin: 0; color: #a9bbcd; font-size: 10px; }
.summary-list { padding: 9px 19px; }
.summary-list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 49px; border-bottom: 1px solid var(--line); }
.summary-list div:last-child { border-bottom: 0; }
.summary-list span { color: var(--ink-500); font-size: 10px; }
.summary-list strong { font-size: 11px; text-align: right; }
.summary-note { margin: 0 16px 16px; padding: 12px; color: #805d16; background: var(--gold-100); border-radius: 10px; font-size: 9px; }

/* Resultado */
.success-banner { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 15px 18px; color: #0d6144; background: var(--success-soft); border: 1px solid #ccebdd; border-radius: var(--radius-md); }
.success-banner__icon { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--success); border-radius: 10px; }
.success-banner strong { display: block; font-size: 12px; }
.success-banner small { display: block; color: #3e7e68; font-size: 10px; }
.success-banner .button { margin-left: auto; }
.result-hero { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); overflow: hidden; margin-bottom: 18px; }
.result-hero__total { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 260px; padding: clamp(24px, 4vw, 40px); color: #fff; background: linear-gradient(145deg, var(--navy-950), var(--navy-800)); }
.result-hero__total::after { content: ""; position: absolute; right: -55px; bottom: -60px; width: 180px; height: 180px; border: 1px solid rgba(230,189,79,.18); border-radius: 50%; }
.result-hero__total > span { color: var(--gold-200); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.result-hero__total strong { margin: 12px 0 5px; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.result-hero__total small { color: #9fb3c6; font-size: 10px; }
.result-hero__comparison { padding: 27px; }
.result-hero__comparison h2 { margin-bottom: 5px; font-size: 15px; }
.result-hero__comparison > p { color: var(--ink-500); font-size: 10px; }
.compare-row { display: grid; grid-template-columns: 116px 1fr 90px; align-items: center; gap: 12px; min-height: 54px; }
.compare-row span { color: var(--ink-500); font-size: 10px; }
.compare-row strong { font-size: 11px; text-align: right; }
.compare-track { height: 10px; overflow: hidden; background: #edf1f4; border-radius: 999px; }
.compare-track i { display: block; width: var(--width); height: 100%; background: var(--navy-700); border-radius: inherit; animation: width-in 600ms var(--ease) both; }
.compare-row.is-gold .compare-track i { background: var(--gold-400); }
@keyframes width-in { from { width: 0; } }
.result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.result-card { padding: 18px; }
.result-card span { color: var(--ink-500); font-size: 10px; }
.result-card strong { display: block; margin-top: 7px; font-size: 18px; letter-spacing: -.02em; }
.result-card small { display: block; margin-top: 4px; color: var(--ink-400); font-size: 9px; }
.result-bottom { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 18px; }
.breakdown { padding: 20px; }
.breakdown-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.breakdown-row:last-child { border-bottom: 0; }
.breakdown-row span { color: var(--ink-600); font-size: 11px; }
.breakdown-row strong { font-size: 11px; }
.next-actions { padding: 18px; }
.next-actions h2 { margin-bottom: 5px; font-size: 15px; }
.next-actions > p { color: var(--ink-500); font-size: 10px; }
.next-action { display: flex; align-items: center; gap: 11px; min-height: 60px; padding: 9px; border-top: 1px solid var(--line); }
.next-action__icon { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; color: var(--navy-700); background: var(--surface-blue); border-radius: 10px; }
.next-action strong { display: block; font-size: 11px; }
.next-action small { display: block; color: var(--ink-400); font-size: 9px; }
.next-action > svg { margin-left: auto; width: 15px; color: var(--ink-400); }

/* Dialog e feedback */
.pdf-dialog { width: min(920px, calc(100vw - 28px)); max-height: min(880px, calc(100vh - 28px)); padding: 0; overflow: hidden; color: var(--ink-950); background: #fff; border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); }
.pdf-dialog::backdrop { background: rgba(3,13,25,.7); backdrop-filter: blur(5px); }
.pdf-dialog[open] { animation: dialog-in 220ms var(--ease) both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.pdf-dialog__header, .pdf-dialog__footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; }
.pdf-dialog__header { border-bottom: 1px solid var(--line); }
.pdf-dialog__header .eyebrow { margin-bottom: 2px; font-size: 9px; }
.pdf-dialog__header h2 { margin: 0; font-size: 17px; }
.pdf-dialog__body { max-height: 640px; overflow: auto; padding: 28px; background: #e9edf1; }
.pdf-page { width: min(560px, 100%); min-height: 650px; margin: 0 auto; padding: clamp(28px, 6vw, 56px); background: #fff; box-shadow: 0 8px 28px rgba(20,31,45,.15); }
.pdf-page__brand { display: flex; align-items: center; gap: 12px; color: var(--navy-900); }
.pdf-page__brand-logo { display: block; width: 220px; max-width: 68%; height: auto; object-fit: contain; }
.pdf-page__meta { margin: 38px 0 5px; color: var(--ink-500); font-size: 8px; letter-spacing: .13em; }
.pdf-page h3 { margin: 0; color: var(--navy-950); font-family: Georgia, serif; font-size: 27px; }
.pdf-page__divider { width: 70px; height: 3px; margin: 18px 0 28px; background: var(--gold-500); }
.pdf-page__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 10px; }
.pdf-page__grid span { color: var(--ink-500); }
.pdf-page__grid strong { text-align: right; }
.pdf-page__highlight { margin-top: 28px; padding: 21px; color: #fff; background: var(--navy-900); }
.pdf-page__highlight span, .pdf-page__highlight small { display: block; color: #aebed0; font-size: 9px; }
.pdf-page__highlight strong { display: block; margin: 9px 0; color: var(--gold-400); font-size: 27px; }
.pdf-dialog__footer { border-top: 1px solid var(--line); }
.pdf-dialog__footer p { margin: 0; color: var(--ink-500); font-size: 10px; }
.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(360px, calc(100vw - 40px)); }
.toast { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 11px; padding: 13px; color: #fff; background: var(--navy-900); border: 1px solid rgba(255,255,255,.1); border-radius: 13px; box-shadow: var(--shadow-lg); animation: toast-in 260ms var(--ease) both; }
.toast__icon { display: grid; place-items: center; width: 34px; height: 34px; color: var(--navy-950); background: var(--gold-400); border-radius: 10px; }
.toast strong { display: block; font-size: 11px; }
.toast small { display: block; color: #b6c4d2; font-size: 9px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* QHD/2K: canvas maior e densidade recalibrada sem afetar notebooks. */
@media (min-width: 2000px) {
  :root {
    --sidebar-width: 320px;
    --topbar-height: 84px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
  }

  body { font-size: 17px; }
  svg { width: 22px; height: 22px; }
  .sidebar__brand { min-height: 100px; padding: 22px 24px; }
  .brand__logo { width: 220px; }
  .sidebar__nav { padding: 18px 16px 28px; }
  .nav-group { margin-top: 22px; }
  .nav-group p { margin: 0 14px 8px; font-size: 11px; }
  .nav-item { gap: 13px; min-height: 50px; padding: 12px 14px; font-size: 15px; }
  .nav-item svg { width: 20px; height: 20px; }
  .nav-item.is-active::before { left: -16px; height: 28px; }
  .sidebar__support { grid-template-columns: 40px 1fr 32px; margin: 0 16px 14px; padding: 14px; }
  .sidebar__support-icon { width: 40px; height: 40px; }
  .sidebar__support strong, .sidebar__profile strong { font-size: 14px; }
  .sidebar__support small, .sidebar__profile small { font-size: 12px; }
  .sidebar__profile { grid-template-columns: 44px 1fr 40px; min-height: 82px; padding: 14px 18px; }
  .avatar { width: 44px; height: 44px; font-size: 13px; }

  .topbar { gap: 22px; padding: 0 52px; }
  .global-search { width: min(560px, 48vw); }
  .global-search input { height: 50px; padding-left: 48px; font-size: 15px; border-radius: 14px; }
  .global-search > svg { left: 16px; width: 20px; }
  .global-search kbd { font-size: 12px; }
  .status-pill { padding: 9px 13px; font-size: 13px; }
  .topbar__avatar { width: 44px; height: 44px; font-size: 13px; }
  .icon-button { width: 48px; height: 48px; }

  #main-content { padding: 48px 52px 60px; }
  .page { width: min(1840px, 100%); }
  .page-heading { gap: 30px; margin-bottom: 32px; }
  .page-heading h1 { font-size: clamp(40px, 2.4vw, 52px); }
  .page-heading p { max-width: 820px; font-size: 17px; }
  .eyebrow { gap: 9px; margin-bottom: 9px; font-size: 13px; }
  .button { min-height: 48px; padding: 12px 19px; font-size: 15px; }
  .button svg { width: 19px; height: 19px; }

  .hero-strip { grid-template-columns: minmax(0, 1.5fr) minmax(340px, .5fr); gap: 32px; margin-bottom: 26px; padding: 48px; }
  .hero-strip h1 { max-width: 840px; margin-bottom: 15px; font-size: clamp(46px, 2.6vw, 56px); }
  .hero-strip p { max-width: 760px; margin-bottom: 26px; font-size: 17px; }
  .hero-strip__aside { gap: 13px; }
  .hero-mini-stat { min-height: 120px; padding: 20px; }
  .hero-mini-stat span { font-size: 13px; }
  .hero-mini-stat strong { font-size: 26px; }
  .hero-mini-stat small { font-size: 12px; }

  .stats-grid { gap: 18px; margin-bottom: 26px; }
  .stat-card { min-height: 160px; padding: 23px; }
  .stat-card__icon { width: 46px; height: 46px; }
  .stat-card__trend { font-size: 13px; }
  .stat-card__label { margin-top: 21px; font-size: 14px; }
  .stat-card__value { font-size: clamp(30px, 1.7vw, 36px); }
  .stat-card__meta { font-size: 12px; }

  .panel__header { padding: 23px 25px; }
  .panel__header h2 { font-size: 18px; }
  .panel__header p, .text-link { font-size: 13px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.65fr) minmax(360px, .65fr); gap: 24px; margin-bottom: 26px; }
  .segmented button { min-height: 39px; padding: 8px 13px; font-size: 13px; }
  .chart-wrap { padding: 30px 26px 23px; }
  .chart-legend { margin-bottom: 28px; font-size: 13px; }
  .bar-chart { height: 280px; }
  .chart-labels { font-size: 12px; }
  .activity-list { padding-inline: 24px; }
  .activity-item { grid-template-columns: 44px 1fr auto; min-height: 82px; }
  .activity-item__icon { width: 44px; height: 44px; }
  .activity-item strong { font-size: 14px; }
  .activity-item small, .activity-item time { font-size: 12px; }

  .quick-grid { gap: 18px; }
  .quick-card { gap: 15px; min-height: 104px; padding: 19px; }
  .quick-card__icon { width: 46px; height: 46px; }
  .quick-card strong { font-size: 14px; }
  .quick-card small { font-size: 12px; }

  .module-header-card { gap: 20px; padding: 22px; }
  .module-header-card strong { font-size: 16px; }
  .module-header-card p { font-size: 13px; }
  .module-header-card__law { max-width: 480px; font-size: 12px; }
  .view-tabs a { min-height: 48px; padding: 11px 19px; font-size: 14px; }
  .filter-bar { grid-template-columns: minmax(280px, 1.4fr) repeat(2, minmax(180px, .65fr)) minmax(180px, .6fr) auto; gap: 15px; padding: 21px; }
  .field { gap: 8px; }
  .field label { font-size: 13px; }
  .field input, .field select, .field textarea { min-height: 48px; padding: 12px 14px; }
  .field__hint { font-size: 12px; }

  .table-panel__toolbar { min-height: 72px; padding: 12px 21px; }
  .table-panel__toolbar strong { font-size: 15px; }
  .table-panel__toolbar span { font-size: 13px; }
  .data-table { min-width: 980px; }
  .data-table th { height: 52px; padding-inline: 19px; font-size: 12px; }
  .data-table td { height: 72px; padding-inline: 19px; font-size: 14px; }
  .client-cell__mark { width: 39px; height: 39px; font-size: 12px; }
  .client-cell strong { font-size: 14px; }
  .client-cell small, .badge { font-size: 11px; }
  .table-footer { min-height: 70px; padding: 12px 21px; }
  .table-footer p, .pagination button { font-size: 12px; }

  .form-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
  .stepper { padding: 17px 22px; }
  .step { min-height: 48px; font-size: 12px; }
  .form-section__heading { padding: 22px 24px; }
  .form-section__heading h2 { font-size: 17px; }
  .form-section__heading p { font-size: 12px; }
  .form-grid { gap: 19px; padding: 24px; }
  .choice-card { min-height: 62px; padding: 14px; }
  .choice-card strong { font-size: 13px; }
  .choice-card small { font-size: 11px; }
  .form-actions { padding: 19px 24px; }
  .form-actions p { font-size: 12px; }
  .form-summary__hero { padding: 26px; }
  .form-summary__hero span, .form-summary__hero p { font-size: 12px; }
  .form-summary__hero h2 { font-size: 22px; }
  .summary-list span { font-size: 12px; }
  .summary-list strong { font-size: 13px; }
  .summary-note { font-size: 11px; }

  .success-banner strong { font-size: 14px; }
  .success-banner small { font-size: 12px; }
  .result-hero__total { min-height: 300px; }
  .result-hero__total > span, .result-hero__total small { font-size: 12px; }
  .result-hero__total strong { font-size: clamp(48px, 3vw, 62px); }
  .result-hero__comparison { padding: 32px; }
  .result-hero__comparison h2 { font-size: 17px; }
  .result-hero__comparison > p, .compare-row span { font-size: 12px; }
  .compare-row strong { font-size: 13px; }
  .result-card { padding: 22px; }
  .result-card span { font-size: 12px; }
  .result-card strong { font-size: 21px; }
  .result-card small { font-size: 11px; }
  .breakdown-row span, .breakdown-row strong { font-size: 13px; }
  .next-actions h2 { font-size: 17px; }
  .next-actions > p { font-size: 12px; }
  .next-action { min-height: 68px; }
  .next-action strong { font-size: 13px; }
  .next-action small { font-size: 11px; }
}

@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
  .filter-bar .search-field { grid-column: span 2; }
  .form-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --sidebar-width: 280px; }
  .sidebar { transform: translateX(-102%); transition: transform 240ms var(--ease); box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar__close, .topbar__menu { display: inline-grid; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; visibility: hidden; opacity: 0; background: rgba(3,13,25,.55); transition: opacity 200ms ease, visibility 200ms ease; }
  .sidebar-scrim.is-open { visibility: visible; opacity: 1; }
  .app-content { margin-left: 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .activity-panel { min-height: auto; }
  .form-layout { grid-template-columns: 1fr; }
  .form-summary { position: static; }
  .result-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --topbar-height: 64px; }
  .sidebar__brand { min-height: 80px; padding: 18px; }
  .brand__logo { width: 180px; }
  .topbar { gap: 6px; padding: 0 12px; }
  .global-search { width: auto; min-width: 0; flex: 1; }
  .global-search kbd, .status-pill, .topbar__avatar { display: none; }
  .global-search input { min-width: 0; padding-right: 12px; text-overflow: ellipsis; }
  #main-content { padding: 20px 14px 32px; }
  .page { min-width: 0; overflow-x: clip; }
  .page-heading { flex-direction: column; margin-bottom: 20px; }
  .page-heading__actions { width: 100%; justify-content: stretch; }
  .page-heading__actions .button { flex: 1; }
  .hero-strip { grid-template-columns: 1fr; padding: 24px 20px; }
  .hero-strip__aside { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
  .hero-mini-stat:first-child { grid-column: auto; }
  .stats-grid, .quick-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 125px; }
  .panel__header { align-items: flex-start; padding: 16px; }
  .chart-toolbar { display: none; }
  .bar-chart { gap: 7px; }
  .module-header-card { align-items: flex-start; }
  .module-header-card__law { display: none; }
  .view-tabs { width: 100%; }
  .view-tabs a { flex: 1; padding-inline: 9px; }
  .filter-bar { grid-template-columns: 1fr; padding: 14px; }
  .filter-bar .search-field { grid-column: auto; }
  .filters-action .button { width: 100%; }
  .table-panel__toolbar { align-items: flex-start; }
  .table-panel, .table-wrap { min-width: 0; max-width: 100%; }
  .table-wrap { overscroll-behavior-inline: contain; }
  .table-panel__actions .button span { display: none; }
  .table-footer { align-items: flex-start; }
  .stepper { grid-template-columns: 1fr; gap: 6px; }
  .step:not(:last-child)::after { display: none; }
  .step { min-height: 36px; }
  .form-grid { grid-template-columns: 1fr; padding: 16px; }
  .col-12, .col-8, .col-6, .col-4, .col-3 { grid-column: 1; }
  .choice-group { grid-template-columns: 1fr; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .form-actions__buttons { width: 100%; }
  .form-actions__buttons .button { flex: 1; }
  .success-banner { align-items: flex-start; flex-wrap: wrap; }
  .success-banner .button { width: 100%; margin: 4px 0 0; }
  .result-hero { grid-template-columns: 1fr; }
  .result-hero__total { min-height: 210px; }
  .result-hero__comparison { padding: 20px 16px; }
  .compare-row { grid-template-columns: 90px 1fr 72px; }
  .result-grid { grid-template-columns: 1fr; }
  .pdf-dialog__body { padding: 12px; }
  .pdf-page { min-height: 560px; padding: 28px 22px; }
  .pdf-dialog__footer { align-items: stretch; flex-direction: column; }
}

@media (min-width: 521px) and (max-width: 720px) {
  .stats-grid, .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .hero-strip__aside { grid-template-columns: 1fr; }
  .hero-mini-stat:first-child { grid-column: auto; }
  .hero-mini-stat { min-height: 78px; }
  .page-heading__actions { flex-direction: column; }
  .view-tabs { flex-direction: column; }
  .view-tabs a { width: 100%; }
  .compare-row { grid-template-columns: 1fr auto; gap: 5px; padding: 8px 0; }
  .compare-track { grid-column: span 2; }
}

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