:root {
  --uni-wine: #711610;
  --uni-wine-2: #9f241c;
  --uni-grey: #9A999D;
  --uni-beige: #E6D9AA;
  --paper: #fbfaf6;
  --paper-2: #f3efe3;
  --surface: #ffffff;
  --surface-warm: #fffaf0;
  --ink: #171313;
  --muted: #686468;
  --line: rgba(113, 22, 16, .16);
  --line-strong: rgba(113, 22, 16, .28);
  --shadow: 0 16px 38px rgba(53, 42, 36, .12);
  --danger: #8f1f18;
  --ok: #3f6b2f;
  --scroll-rotate: 0deg;
  --scroll-lift: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(118deg, rgba(113, 22, 16, .13), transparent 34%),
    linear-gradient(244deg, rgba(230, 217, 170, .42), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 48%, #eee5cf 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.space-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  animation: ambientShift 22s ease-in-out infinite alternate;
}

.space-field::before,
.space-field::after {
  content: "";
  position: absolute;
  width: 1120px;
  height: 460px;
  border: 2px solid rgba(113, 22, 16, .20);
  border-left-color: rgba(113, 22, 16, .56);
  border-bottom-color: rgba(230, 217, 170, .82);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.space-field::before {
  left: -180px;
  top: 52px;
}

.space-field::after {
  right: -280px;
  bottom: 70px;
  width: 1240px;
  height: 520px;
  transform: rotate(18deg);
  opacity: .92;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(113, 22, 16, .18);
}

body::before {
  width: 620px;
  height: 260px;
  left: 42%;
  top: 132px;
  border-top-color: rgba(113, 22, 16, .42);
  border-right-color: rgba(230, 217, 170, .80);
  transform: rotate(-22deg);
}

body::after {
  width: 760px;
  height: 320px;
  left: -220px;
  bottom: 40px;
  border-left-color: rgba(113, 22, 16, .38);
  border-bottom-color: rgba(154, 153, 157, .42);
  transform: rotate(20deg);
}

@keyframes ambientShift {
  from { transform: translateY(0); opacity: .9; }
  to { transform: translateY(10px); opacity: .72; }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(18px, 3vw, 34px);
  border-bottom: 3px solid var(--uni-wine);
  background:
    linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,250,240,.82)),
    rgba(255, 255, 255, .78);
  box-shadow: 0 12px 36px rgba(34, 28, 24, .10);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand strong {
  display: block;
  font-size: 15px;
  color: var(--uni-wine);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 2px solid var(--uni-wine);
  border-radius: 50%;
  color: #ffffff;
  background: var(--uni-wine);
  box-shadow: 0 14px 28px rgba(113, 22, 16, .25), inset 0 0 0 5px rgba(230, 217, 170, .28);
  font-weight: 800;
  isolation: isolate;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(113, 22, 16, .22);
  border-top-color: rgba(230, 217, 170, .9);
  border-right-color: rgba(154, 153, 157, .42);
  border-radius: 50%;
  animation: orbit 9s linear infinite;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -17px;
  border: 1px solid rgba(113, 22, 16, .12);
  border-left-color: rgba(113, 22, 16, .36);
  border-radius: 50%;
  animation: orbit 14s linear infinite reverse;
}

.brand-mark.small {
  width: 46px;
  height: 46px;
  font-size: 14px;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.motion-seal {
  position: fixed;
  right: clamp(20px, 4vw, 58px);
  bottom: clamp(18px, 4vw, 42px);
  z-index: 2;
  width: clamp(96px, 9vw, 150px);
  height: clamp(96px, 9vw, 150px);
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: .26;
  transform: translateY(calc(var(--scroll-lift) * -1)) rotate(var(--scroll-rotate));
  transition: opacity .25s ease;
  animation: floatSeal 7s ease-in-out infinite;
}

.motion-seal span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54%;
  height: 54%;
  border-radius: 50%;
  color: #ffffff;
  background: var(--uni-wine);
  box-shadow: 0 16px 34px rgba(113, 22, 16, .22), inset 0 0 0 6px rgba(230, 217, 170, .30);
  font-weight: 900;
}

.motion-seal::before,
.motion-seal::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(113, 22, 16, .38);
  border-top-color: rgba(230, 217, 170, .92);
  border-right-color: rgba(154, 153, 157, .58);
  border-radius: 50%;
  animation: orbit 11s linear infinite;
}

.motion-seal::after {
  inset: -8px;
  border-color: rgba(113, 22, 16, .18);
  border-left-color: rgba(113, 22, 16, .46);
  animation-duration: 18s;
  animation-direction: reverse;
}

.login-motion {
  right: auto;
  left: clamp(22px, 5vw, 74px);
  bottom: clamp(18px, 5vw, 58px);
  opacity: .16;
}

@keyframes floatSeal {
  0%, 100% { margin-bottom: 0; }
  50% { margin-bottom: 12px; }
}

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tabs a,
.logout-form button,
.export-link,
.filter-actions a,
.filter-actions button,
.login-form button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--uni-wine);
  background: #ffffff;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.tabs a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 12px;
  color: #342b2b;
  font-size: 13px;
  font-weight: 700;
}

.tabs a:hover,
.logout-form button:hover,
.export-link:hover,
.filter-actions a:hover,
.filter-actions button:hover,
.login-form button:hover {
  transform: translateY(-1px);
  border-color: var(--uni-wine);
  background: var(--surface-warm);
  box-shadow: 0 10px 20px rgba(113, 22, 16, .12);
}

.logout-form {
  margin: 0;
}

.logout-form button {
  padding: 0 15px;
  cursor: pointer;
}

.command-layout {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 18px clamp(16px, 3vw, 38px) 42px;
}

.hero-band {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 330px);
  gap: 24px;
  align-items: end;
  min-height: 176px;
  padding: clamp(22px, 4vw, 38px) 0 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--uni-wine);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 12px;
  color: var(--uni-wine);
  font-size: clamp(38px, 5vw, 74px);
  line-height: .94;
  letter-spacing: 0;
}

h2,
h3 {
  color: var(--ink);
}

.subtitle {
  max-width: 790px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 0;
}

.signal-panel,
.kpi-card,
.chart-panel,
.section-band,
.login-panel,
.funnel-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(255, 250, 240, .76)),
    rgba(255, 255, 255, .82);
  box-shadow: 0 18px 46px rgba(53, 42, 36, .13), inset 0 1px 0 rgba(255, 255, 255, .76);
  backdrop-filter: blur(14px);
}

.signal-panel {
  min-height: 122px;
  padding: 20px;
  border-radius: 8px;
  border-top: 5px solid var(--uni-wine);
  background:
    linear-gradient(135deg, rgba(113, 22, 16, .09), rgba(230, 217, 170, .26)),
    rgba(255, 255, 255, .86);
}

.signal-panel span,
.kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.signal-panel strong {
  display: block;
  margin: 8px 0;
  color: var(--uni-wine);
  font-size: 28px;
}

.signal-panel small {
  color: var(--muted);
}

.process-chip {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--uni-wine) !important;
  background: rgba(230, 217, 170, .35);
  font-weight: 800;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card {
  min-height: 130px;
  padding: 15px;
  border-radius: 8px;
  overflow: hidden;
  border-top: 4px solid var(--uni-wine);
  position: relative;
}

.kpi-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -44px;
  width: 106px;
  height: 106px;
  border: 1px solid rgba(113, 22, 16, .10);
  border-radius: 50%;
}

.kpi-card strong {
  display: block;
  margin: 13px 0 8px;
  color: var(--uni-wine);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.kpi-card p {
  margin-bottom: 8px;
  font-weight: 800;
}

.kpi-card small {
  color: var(--muted);
  font-size: 11px;
}

.section-band {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--uni-wine), var(--uni-beige), transparent);
}

.section-band::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -100px;
  width: 300px;
  height: 180px;
  border: 1px solid rgba(113, 22, 16, .08);
  border-radius: 50%;
  transform: rotate(-18deg);
  pointer-events: none;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
}

.export-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0 14px;
  color: var(--uni-wine);
  font-weight: 800;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.active-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.active-filter-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(113, 22, 16, .18);
  border-radius: 999px;
  color: var(--uni-wine);
  background: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 800;
}

.active-filter-bar.muted .filter-chip {
  color: var(--muted);
  background: rgba(255, 255, 255, .45);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(154, 153, 157, .52);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--uni-wine);
  box-shadow: 0 0 0 3px rgba(230, 217, 170, .62);
}

select option {
  color: #111;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

.filter-actions button,
.filter-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 14px;
}

.filter-actions button,
.login-form button {
  cursor: pointer;
  color: #ffffff;
  background: var(--uni-wine);
  border-color: var(--uni-wine);
  font-weight: 800;
}

.dynamic-filter-form {
  display: grid;
  gap: 16px;
}

.filter-builder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.filter-source {
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .62);
}

.filter-source-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.filter-source-head h3 {
  margin: 0;
  font-size: 16px;
}

.add-filter-btn,
.remove-filter-btn {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--uni-wine);
  background: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.add-filter-btn {
  padding: 0 12px;
}

.filter-rows {
  display: grid;
  gap: 10px;
}

.dynamic-filter-row {
  display: grid;
  grid-template-columns: minmax(140px, .9fr) minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.dynamic-filter-row select,
.dynamic-filter-row input {
  min-height: 38px;
}

.remove-filter-btn {
  padding: 0 10px;
}

.dynamic-actions {
  justify-self: end;
  width: min(360px, 100%);
}

.chart-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.chart-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chart-grid.executive {
  grid-template-columns: 1.25fr .75fr;
}

.chart-panel {
  height: 320px;
  min-height: 0;
  padding: 18px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 250, 240, .82)),
    linear-gradient(90deg, rgba(113, 22, 16, .035) 0 1px, transparent 1px 36px);
}

.chart-panel.wide {
  grid-column: span 2;
  height: 360px;
}

.chart-panel.hero-chart {
  height: 340px;
}

.chart-panel.compact-chart,
.chart-panel.rank-chart {
  height: 300px;
}

.chart-panel h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 15px;
}

.chart-panel canvas {
  width: 100% !important;
  height: 260px !important;
  max-height: 260px;
  display: block;
}

.chart-panel.wide canvas {
  height: 300px !important;
  max-height: 300px;
}

.chart-panel.hero-chart canvas {
  height: 280px !important;
  max-height: 280px;
}

.chart-panel.compact-chart canvas,
.chart-panel.rank-chart canvas {
  height: 240px !important;
  max-height: 240px;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) 1fr;
  gap: 16px;
  align-items: start;
}

.funnel-panel {
  min-height: 300px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.90), rgba(230,217,170,.24)),
    rgba(255,255,255,.80);
}

.funnel-panel h3,
.funnel-step p {
  margin-bottom: 14px;
}

.funnel-step {
  display: grid;
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid rgba(113, 22, 16, .12);
}

.funnel-copy {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.funnel-copy span,
.funnel-step small {
  color: var(--muted);
}

.funnel-copy strong {
  color: var(--uni-wine);
  font-size: 24px;
}

.funnel-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(113, 22, 16, .16);
  border-radius: 999px;
  background: var(--paper-2);
}

.funnel-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--uni-wine), var(--uni-wine-2));
  transition: width .7s ease;
}

.mini-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.mini-kpis article {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(230,217,170,.22)),
    var(--surface-warm);
}

.mini-kpis span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.mini-kpis strong {
  display: block;
  margin-top: 10px;
  color: var(--uni-wine);
  font-size: 28px;
}

.profile-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin: 0;
}

.profile-list div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(230,217,170,.22)),
    var(--surface-warm);
}

.profile-list dt {
  color: var(--muted);
  font-size: 12px;
}

.profile-list dd {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: var(--uni-wine);
  font-weight: 800;
}

.login-body {
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 64px);
  overflow: hidden;
}

.login-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 1.25fr) minmax(320px, 420px);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
  width: min(1120px, 100%);
  min-height: min(680px, calc(100vh - 80px));
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 10% 20% 8% -8%;
  border: 2px solid rgba(113, 22, 16, .18);
  border-top-color: rgba(113, 22, 16, .42);
  border-right-color: rgba(230, 217, 170, .78);
  border-radius: 50%;
  transform: rotate(-14deg);
  pointer-events: none;
}

.login-identity {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 52px);
}

.login-identity h1 {
  max-width: 620px;
  font-size: clamp(48px, 7vw, 96px);
}

.login-identity .subtitle {
  max-width: 560px;
}

.login-constellation {
  position: relative;
  width: 270px;
  height: 210px;
  margin-bottom: 18px;
}

.brand-mark.login-logo {
  position: absolute;
  left: 66px;
  top: 42px;
  width: 112px;
  height: 112px;
  font-size: 30px;
}

.orbit-line {
  position: absolute;
  inset: 48px 12px;
  border: 2px solid rgba(113, 22, 16, .34);
  border-top-color: rgba(230, 217, 170, .85);
  border-radius: 50%;
  transform: rotate(-18deg);
  animation: orbit 18s linear infinite;
}

.orbit-line.two {
  inset: 24px 0;
  border-color: rgba(154, 153, 157, .44);
  border-left-color: rgba(113, 22, 16, .56);
  transform: rotate(24deg);
  animation-duration: 28s;
  animation-direction: reverse;
}

.orbit-line.three {
  inset: 78px 26px;
  border-color: rgba(230, 217, 170, .78);
  border-right-color: rgba(113, 22, 16, .62);
  transform: rotate(8deg);
  animation-duration: 12s;
}

.login-panel {
  width: 100%;
  padding: clamp(26px, 6vw, 46px);
  border-radius: 8px;
  border-top: 6px solid var(--uni-wine);
  position: relative;
  overflow: hidden;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 14px 14px auto auto;
  width: 94px;
  height: 54px;
  border: 1px solid rgba(113, 22, 16, .12);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.login-panel .brand-mark {
  margin-bottom: 28px;
}

.login-panel h1,
.login-panel h2 {
  margin-bottom: 24px;
  color: var(--uni-wine);
  font-size: clamp(30px, 5vw, 42px);
  line-height: .98;
}

.login-form {
  display: grid;
  gap: 14px;
}

.form-alert,
.form-ok {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.form-alert {
  color: var(--danger);
  background: rgba(113, 22, 16, .10);
}

.form-ok {
  color: var(--ok);
  background: rgba(63, 107, 47, .12);
}

.admin-hero {
  min-height: 150px;
}

.role-picker {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.66);
}

.role-picker > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.role-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  text-transform: none;
}

.role-picker input {
  width: auto;
  min-height: auto;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(113, 22, 16, .10);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--uni-wine);
  background: rgba(230, 217, 170, .24);
  font-size: 12px;
  text-transform: uppercase;
}

.data-table tr:hover td {
  background: rgba(230, 217, 170, .14);
}

.truncate {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .tabs {
    grid-column: 1 / -1;
    order: 3;
  }

  .kpi-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .chart-grid.executive,
  .payment-layout,
  .filter-builder {
    grid-template-columns: 1fr;
  }

  .profile-list {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
  }

  .login-identity {
    min-height: 360px;
    padding-bottom: 0;
  }

  .login-panel {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .topbar {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero-band {
    grid-template-columns: 1fr;
    min-height: 210px;
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(34px, 13vw, 52px);
  }

  .kpi-grid,
  .filter-grid,
  .chart-grid.two,
  .profile-list {
    grid-template-columns: 1fr;
  }

  .dynamic-filter-row {
    grid-template-columns: 1fr;
  }

  .dynamic-actions {
    justify-self: stretch;
    width: 100%;
  }

  .chart-panel.wide {
    grid-column: auto;
  }

  .chart-panel,
  .chart-panel.wide {
    height: 300px;
  }

  .chart-panel canvas,
  .chart-panel.wide canvas {
    height: 240px !important;
    max-height: 240px;
  }

  .mini-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabs a {
    min-height: 38px;
  }

  .login-body {
    padding: 18px;
  }

  .login-identity {
    min-height: 300px;
    padding: 12px;
  }

  .login-identity h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .login-constellation {
    width: 210px;
    height: 160px;
  }

  .brand-mark.login-logo {
    left: 52px;
    top: 34px;
    width: 84px;
    height: 84px;
    font-size: 22px;
  }

  .motion-seal {
    width: 86px;
    height: 86px;
    opacity: .16;
  }
}
