:root {
  --navy-950: #05233f;
  --navy-900: #082d51;
  --navy-800: #0b3a65;
  --navy-700: #144d7c;
  --emerald-700: #007b62;
  --emerald-600: #008f72;
  --teal-500: #14b8b2;
  --teal-200: #9be3df;
  --gold-500: #eba91f;
  --orange-500: #e67c3f;
  --red-500: #c85757;
  --ink: #16324a;
  --muted: #668096;
  --line: #dce6ea;
  --surface: #ffffff;
  --canvas: #f2f6f7;
  --soft: #eaf3f3;
  --shadow: 0 18px 48px rgba(10, 46, 75, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
button, input, select { font: inherit; }
a { color: inherit; }

.loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  background: var(--navy-950);
  color: #fff;
  transition: opacity .35s ease, visibility .35s ease;
}
.loading.hidden { opacity: 0; visibility: hidden; }
.loading p { margin: 0; color: #c9dce8; letter-spacing: .02em; }
.loading-mark { display: flex; justify-content: center; gap: 8px; }
.loading-mark span { width: 11px; height: 32px; background: var(--teal-500); border-radius: 8px; animation: load 1s ease-in-out infinite; }
.loading-mark span:nth-child(2) { animation-delay: .12s; background: #5ad2cb; }
.loading-mark span:nth-child(3) { animation-delay: .24s; background: var(--emerald-600); }
@keyframes load { 0%, 100% { transform: scaleY(.45); opacity: .55; } 50% { transform: scaleY(1); opacity: 1; } }

.topbar {
  height: 84px;
  padding: 0 max(28px, calc((100vw - 1440px) / 2));
  display: flex;
  align-items: center;
  gap: 34px;
  background: #fff;
  border-bottom: 1px solid #e2eaee;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand-lockup { display: flex; align-items: center; min-width: 360px; }
.brand-logo { width: 176px; height: 54px; object-fit: contain; object-position: left center; }
.brand-divider { width: 1px; height: 38px; background: var(--line); margin: 0 18px; }
.brand-lockup h1 { margin: 1px 0 0; font-size: 19px; color: var(--navy-900); line-height: 1.1; }
.eyebrow { margin: 0; color: var(--emerald-600); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.main-nav { align-self: stretch; display: flex; align-items: stretch; gap: 4px; margin-left: auto; }
.main-nav a { display: flex; align-items: center; padding: 0 13px; text-decoration: none; color: #536f85; font-weight: 650; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--navy-900); border-color: var(--emerald-600); }
.source-state { display: flex; gap: 10px; align-items: center; min-width: 188px; padding-left: 18px; border-left: 1px solid var(--line); }
.source-state strong, .source-state small { display: block; }
.source-state strong { font-size: 13px; }
.source-state small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.pulse-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--emerald-600); box-shadow: 0 0 0 5px rgba(0, 143, 114, .12); }
.pulse-dot::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(0, 143, 114, .5); border-radius: inherit; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.65); opacity: 0; } }

main { max-width: 1440px; margin: 0 auto; padding: 28px 28px 56px; }
.hero {
  min-height: 374px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: center;
  padding: 50px 66px;
  color: #fff;
  background: var(--navy-900);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(7, 42, 73, .16);
}
.hero::before { content: ""; position: absolute; inset: auto -110px -180px auto; width: 540px; height: 540px; border-radius: 50%; background: rgba(20, 184, 178, .12); }
.hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56%; height: 7px; background: var(--emerald-600); }
.hero-copy, .progress-hero { position: relative; z-index: 2; }
.hero-kicker { display: flex; gap: 14px; align-items: center; color: #bcd1df; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; }
.hero-kicker span:first-child { color: #75ded7; }
.hero-kicker span:first-child::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 14px; background: rgba(255,255,255,.35); vertical-align: middle; }
.hero h2 { margin: 20px 0 18px; max-width: 780px; font-size: clamp(38px, 4.2vw, 62px); line-height: 1.02; letter-spacing: -.045em; }
.hero h2 em { color: #69d6cf; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-copy > p { max-width: 760px; margin: 0; color: #d8e6ee; font-size: 18px; }
.hero-meta { display: flex; gap: 48px; margin-top: 36px; }
.hero-meta small, .hero-meta strong { display: block; }
.hero-meta small { color: #8eacc0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.hero-meta strong { margin-top: 5px; font-size: 14px; }
.progress-hero { width: 270px; justify-self: end; text-align: center; }
.progress-ring { width: 214px; transform: rotate(-90deg); overflow: visible; }
.ring-track, .ring-value { fill: none; stroke-width: 13; }
.ring-track { stroke: rgba(255,255,255,.11); }
.ring-value { stroke: var(--teal-500); stroke-linecap: round; stroke-dasharray: 452.39; stroke-dashoffset: 452.39; transition: stroke-dashoffset .7s ease; filter: drop-shadow(0 0 8px rgba(20,184,178,.28)); }
.progress-center { position: absolute; inset: 67px 0 auto; }
.progress-center strong { display: block; font-size: 51px; letter-spacing: -.05em; }
.progress-center span { display: block; margin-top: -6px; color: #a9c5d5; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.progress-caption { width: 236px; margin: 9px auto 0; color: #bcd1df; font-size: 12px; }
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.orbit-one { right: 55px; top: 28px; width: 330px; height: 330px; }
.orbit-two { right: 6px; top: -24px; width: 436px; height: 436px; }

.filters-shell {
  min-height: 82px;
  display: grid;
  grid-template-columns: 220px 1fr 1.35fr 1fr 1.5fr auto auto;
  gap: 12px;
  align-items: end;
  margin: 20px 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 10px 24px rgba(10,46,75,.04);
}
.filters-heading { display: flex; gap: 11px; align-items: center; align-self: center; }
.filter-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--navy-900); font-size: 22px; }
.filters-heading strong, .filters-heading small { display: block; }
.filters-heading strong { font-size: 13px; }
.filters-heading small { color: var(--muted); font-size: 10px; }
.filters-shell label { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.filters-shell select, .filters-shell input { width: 100%; height: 39px; margin-top: 5px; padding: 0 11px; border: 1px solid #d7e3e8; border-radius: 9px; outline: none; color: var(--ink); background: #f9fbfc; font-size: 12px; text-transform: none; letter-spacing: 0; }
.filters-shell select:focus, .filters-shell input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(20,184,178,.1); }
.btn-quiet, .btn-refresh { height: 39px; padding: 0 14px; border-radius: 9px; border: 1px solid #d6e2e7; cursor: pointer; font-size: 12px; font-weight: 750; white-space: nowrap; }
.btn-quiet { background: #fff; color: var(--navy-700); }
.btn-refresh { color: #fff; background: var(--emerald-600); border-color: var(--emerald-600); }
.btn-refresh span { display: inline-block; margin-right: 4px; font-size: 16px; transition: transform .35s; }
.btn-refresh.spinning span { transform: rotate(270deg); }

.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 18px 0; }
.kpi-card { min-height: 142px; position: relative; overflow: hidden; padding: 20px 21px; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 10px 28px rgba(10,46,75,.04); }
.kpi-card::after { content: ""; position: absolute; left: 0; bottom: 0; width: var(--accent-width, 36%); height: 4px; background: var(--accent, var(--emerald-600)); }
.kpi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.kpi-label { color: var(--muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; font-weight: 800; }
.kpi-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--accent, var(--emerald-600)); background: color-mix(in srgb, var(--accent, var(--emerald-600)) 10%, white); font-size: 14px; font-weight: 900; }
.kpi-value { display: block; margin-top: 9px; font-size: 34px; line-height: 1; letter-spacing: -.035em; color: var(--navy-900); }
.kpi-caption { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; }

.executive-read { display: grid; grid-template-columns: 148px 1fr auto; gap: 28px; align-items: center; margin: 20px 0 18px; padding: 27px 30px; background: #e4f3f1; border-left: 5px solid var(--emerald-600); border-radius: 0 17px 17px 0; }
.section-label { color: var(--emerald-700); font-weight: 850; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.executive-read h3 { margin: 0; font-size: 21px; color: var(--navy-900); }
.executive-read p { margin: 5px 0 0; color: #4e6c7f; }
.decision-chip { padding: 9px 13px; background: #fff; border: 1px solid #cde3df; border-radius: 99px; color: var(--navy-800); font-size: 11px; font-weight: 800; }
.decision-chip span { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--emerald-600); }
.decision-chip.attention span { background: var(--gold-500); }
.decision-chip.risk span { background: var(--red-500); }

.dashboard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.panel { min-height: 360px; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.panel h3 { margin: 3px 0 0; font-size: 22px; color: var(--navy-900); }
.panel-note { color: var(--muted); font-size: 11px; }

.stage-list { display: grid; gap: 13px; }
.stage-row { display: grid; grid-template-columns: 50px 1fr 74px; gap: 14px; align-items: center; padding: 15px; background: #f8fafb; border: 1px solid #e5ecef; border-radius: 14px; }
.stage-number { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: var(--stage-color); border-radius: 13px; font-weight: 900; font-size: 18px; }
.stage-main { min-width: 0; }
.stage-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.stage-title strong { color: var(--navy-900); }
.stage-title span { color: var(--muted); font-size: 11px; }
.stage-track { height: 9px; overflow: hidden; background: #e5edf0; border-radius: 99px; }
.stage-track span { display: block; height: 100%; border-radius: inherit; background: var(--stage-color); }
.stage-metric { text-align: right; }
.stage-metric strong { display: block; color: var(--stage-color); font-size: 23px; }
.stage-metric small { color: var(--muted); font-size: 10px; }

.status-visual { height: calc(100% - 70px); display: flex; flex-direction: column; justify-content: center; gap: 25px; }
.status-bar { display: flex; height: 31px; overflow: hidden; border-radius: 9px; background: #edf2f4; }
.status-segment { min-width: 0; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 850; transition: width .35s ease; }
.status-segment.complete { background: var(--emerald-600); }
.status-segment.active { background: var(--navy-700); }
.status-segment.pending { background: #9bacb7; }
.status-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.status-card { padding: 14px; background: #f7f9fa; border-radius: 13px; }
.status-card i { display: block; width: 9px; height: 9px; margin-bottom: 12px; border-radius: 3px; }
.status-card strong { display: block; font-size: 22px; color: var(--navy-900); }
.status-card span { color: var(--muted); font-size: 10px; text-transform: uppercase; font-weight: 800; }
.status-context { display: flex; justify-content: space-between; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.status-context strong { color: var(--navy-900); }

.area-chart { display: grid; gap: 15px; }
.area-row { display: grid; grid-template-columns: 210px 1fr 54px 54px; gap: 12px; align-items: center; }
.area-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #34546c; font-size: 12px; font-weight: 700; }
.area-track { position: relative; height: 14px; background: #edf2f4; border-radius: 99px; overflow: hidden; }
.area-track > span { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--emerald-600); }
.area-track > i { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(8,45,81,.2); }
.area-value { text-align: right; color: var(--navy-900); font-size: 12px; font-weight: 850; }
.area-count { text-align: right; color: var(--muted); font-size: 10px; }

.priority-panel { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.priority-panel .eyebrow { color: #63d8d1; }
.priority-panel h3 { color: #fff; }
.priority-panel .panel-note { color: #99b3c3; }
.priority-list { display: grid; gap: 9px; }
.priority-item { display: grid; grid-template-columns: 10px 1fr auto; gap: 11px; align-items: start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.priority-item:last-child { border-bottom: 0; }
.priority-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--priority-color); }
.priority-item strong { display: block; color: #f5fbfe; font-size: 12px; line-height: 1.35; }
.priority-item small { display: block; margin-top: 4px; color: #91adbe; font-size: 10px; }
.priority-days { color: #d4e5ed; font-size: 10px; white-space: nowrap; }
.empty-state { padding: 28px 16px; text-align: center; color: var(--muted); }
.priority-panel .empty-state { color: #9cb7c7; }

.timeline-section, .activities-section { margin-top: 30px; }
.section-heading-wide { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin: 0 4px 17px; }
.section-heading-wide h2 { margin: 4px 0 2px; color: var(--navy-900); font-size: 29px; letter-spacing: -.025em; }
.section-heading-wide > div > p:last-child { margin: 0; color: var(--muted); }
.timeline-legend { display: flex; gap: 17px; color: var(--muted); font-size: 10px; font-weight: 750; }
.timeline-legend span { display: flex; align-items: center; gap: 6px; }
.legend-stage { width: 12px; height: 8px; border-radius: 3px; }
.stage-1 { background: var(--emerald-600); }
.stage-2 { background: var(--navy-700); }
.stage-3 { background: var(--gold-500); }
.today-line-sample { display: inline-block; width: 2px; height: 13px; background: var(--red-500); }
.gantt-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.gantt-scroll { overflow: auto; max-height: 660px; }
.gantt { min-width: 1120px; }
.gantt-head, .gantt-row { display: grid; grid-template-columns: 330px 1fr; }
.gantt-head { position: sticky; top: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--line); }
.gantt-label-head { padding: 16px 20px; color: var(--muted); font-size: 10px; text-transform: uppercase; font-weight: 850; letter-spacing: .08em; border-right: 1px solid var(--line); }
.gantt-months { position: relative; height: 50px; background: #f8fafb; }
.gantt-month { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding-left: 10px; color: var(--navy-700); font-size: 10px; font-weight: 850; text-transform: uppercase; border-left: 1px solid #dfe8ec; }
.gantt-row { min-height: 57px; border-bottom: 1px solid #edf2f4; }
.gantt-row:last-child { border-bottom: 0; }
.gantt-task { padding: 10px 16px 10px 20px; border-right: 1px solid var(--line); }
.gantt-task strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #23445e; font-size: 11px; }
.gantt-task small { color: var(--muted); font-size: 9px; }
.gantt-lane { position: relative; background-image: linear-gradient(to right, rgba(8,45,81,.06) 1px, transparent 1px); background-size: 4% 100%; }
.gantt-bar { position: absolute; top: 17px; height: 23px; min-width: 5px; overflow: hidden; border-radius: 6px; background: color-mix(in srgb, var(--bar-color) 25%, white); border: 1px solid color-mix(in srgb, var(--bar-color) 65%, white); }
.gantt-bar span { display: block; height: 100%; background: var(--bar-color); opacity: .88; }
.gantt-bar em { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 7px; color: var(--navy-950); font-style: normal; font-size: 9px; font-weight: 850; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.gantt-today { position: absolute; top: 0; bottom: 0; z-index: 3; width: 2px; background: var(--red-500); opacity: .82; }
.gantt-foot { display: flex; justify-content: space-between; gap: 20px; padding: 13px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

.record-count { padding: 8px 13px; color: var(--navy-800); background: #e7f2f1; border-radius: 99px; font-size: 11px; font-weight: 800; }
.table-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1080px; }
th { padding: 14px 16px; text-align: left; color: #6e8597; background: #f6f9fa; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
td { padding: 15px 16px; border-bottom: 1px solid #edf2f4; vertical-align: top; font-size: 11px; }
tbody tr:hover { background: #fafcfc; }
.activity-name { max-width: 390px; }
.activity-name strong { display: block; color: var(--navy-900); font-size: 12px; }
.activity-name small { display: block; margin-top: 4px; color: var(--muted); }
.cell-stack strong, .cell-stack small { display: block; }
.cell-stack small { margin-top: 3px; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 99px; white-space: nowrap; font-size: 9px; font-weight: 850; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.finalizado { color: #007b62; background: #e1f3ee; }
.status-pill.en-progreso { color: #174f7b; background: #e4edf6; }
.status-pill.no-iniciado { color: #6d7e88; background: #edf1f3; }
.progress-cell { min-width: 125px; }
.mini-track { width: 90px; height: 7px; margin-top: 7px; overflow: hidden; background: #e8eef1; border-radius: 99px; }
.mini-track span { display: block; height: 100%; background: var(--emerald-600); }
.table-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: var(--muted); background: #fafcfc; font-size: 10px; }

.data-trust { display: flex; justify-content: space-between; align-items: center; gap: 34px; margin-top: 26px; padding: 23px 26px; color: #d9e7ef; background: var(--navy-950); border-radius: 18px; }
.trust-title { display: flex; gap: 13px; align-items: center; }
.trust-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy-950); background: #65d7d0; border-radius: 50%; font-weight: 900; }
.trust-title strong { color: #fff; }
.trust-title p { margin: 3px 0 0; color: #9db5c5; font-size: 11px; }
.trust-metrics { display: flex; gap: 38px; }
.trust-metrics small, .trust-metrics strong { display: block; }
.trust-metrics small { color: #819eaf; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.trust-metrics strong { margin-top: 4px; color: #fff; font-size: 12px; }
footer { max-width: 1440px; margin: 0 auto; padding: 0 28px 28px; display: flex; justify-content: space-between; color: #748997; font-size: 10px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 360px; padding: 13px 17px; color: #fff; background: var(--navy-950); border-radius: 11px; box-shadow: 0 12px 34px rgba(4,31,54,.25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .topbar { gap: 18px; }
  .brand-lockup { min-width: 300px; }
  .brand-logo { width: 150px; }
  .main-nav { display: none; }
  .filters-shell { grid-template-columns: repeat(4, 1fr) auto auto; }
  .filters-heading { grid-column: 1 / -1; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .span-7, .span-5, .span-8, .span-4 { grid-column: span 12; }
  .priority-panel { min-height: auto; }
}

@media (max-width: 760px) {
  .topbar { height: 72px; padding: 0 16px; }
  .brand-lockup { min-width: 0; }
  .brand-logo { width: 122px; }
  .brand-divider, .brand-lockup > div:last-child, .source-state { display: none; }
  main { padding: 16px 12px 38px; }
  .hero { grid-template-columns: 1fr; padding: 36px 24px; border-radius: 20px; }
  .hero h2 { font-size: 39px; }
  .hero-copy > p { font-size: 15px; }
  .hero-meta { gap: 24px; flex-wrap: wrap; }
  .progress-hero { justify-self: center; margin-top: 30px; }
  .filters-shell { grid-template-columns: 1fr 1fr; align-items: end; }
  .filters-heading, .search-label { grid-column: 1 / -1; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-card { min-height: 130px; }
  .executive-read { grid-template-columns: 1fr; gap: 8px; }
  .decision-chip { justify-self: start; }
  .panel { padding: 20px; }
  .stage-row { grid-template-columns: 45px 1fr; }
  .stage-metric { grid-column: 2; text-align: left; display: flex; gap: 6px; align-items: baseline; }
  .area-row { grid-template-columns: 120px 1fr 45px; }
  .area-count { display: none; }
  .section-heading-wide { align-items: flex-start; flex-direction: column; }
  .timeline-legend { flex-wrap: wrap; }
  .data-trust { align-items: flex-start; flex-direction: column; }
  .trust-metrics { gap: 20px; flex-wrap: wrap; }
  footer { flex-direction: column; gap: 5px; padding: 0 16px 20px; }
}

@media (max-width: 470px) {
  .filters-shell, .kpi-grid { grid-template-columns: 1fr; }
  .filters-shell label, .search-label { grid-column: 1; }
  .hero-meta { display: block; }
  .hero-meta > div + div { margin-top: 14px; }
  .status-cards { grid-template-columns: 1fr; }
}

.heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.btn-export { height: 39px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px; color: #fff; background: linear-gradient(135deg, var(--emerald-600), var(--teal-500)); border: 0; border-radius: 10px; box-shadow: 0 8px 18px rgba(0,143,114,.18); cursor: pointer; font-size: 11px; font-weight: 850; letter-spacing: .01em; transition: transform .18s ease, box-shadow .18s ease; }
.btn-export:hover { transform: translateY(-1px); box-shadow: 0 11px 22px rgba(0,143,114,.24); }
.btn-export:focus-visible { outline: 3px solid rgba(20,184,178,.24); outline-offset: 2px; }
.btn-export:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-export span { font-size: 17px; line-height: 1; }
@media (max-width: 720px) {
  .heading-actions { width: 100%; justify-content: space-between; }
}

