:root {
  --navy-950: #071d35;
  --navy-900: #0b2b50;
  --navy-800: #123e70;
  --blue: #1556a2;
  --blue-bright: #2372c8;
  --blue-soft: #eaf2fb;
  --red: #c9312b;
  --red-dark: #a62520;
  --red-soft: #fbecea;
  --gold: #f4c322;
  --gold-soft: #fff6cf;
  --green: #247851;
  --green-soft: #e7f5ed;
  --ink: #132238;
  --muted: #667387;
  --line: #dce2e9;
  --surface: #ffffff;
  --canvas: #f5f4f0;
  --canvas-cool: #f3f6f9;
  --shadow: 0 18px 45px rgba(7, 29, 53, 0.09);
  --sidebar-width: 272px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline;
}

.htmx-request button > span:first-child {
  display: none;
}

.brand {
  background: #fff;
  border-radius: 6px;
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  width: 206px;
}

.brand__image {
  display: block;
  height: auto;
  width: 100%;
}

.eyebrow {
  color: var(--gold);
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow--blue,
.eyebrow--purple {
  color: var(--blue);
}

.eyebrow--red {
  color: var(--red);
}

.muted {
  color: var(--muted);
}

/* Login */
.login-page {
  align-items: center;
  background:
    linear-gradient(115deg, rgba(244, 195, 34, 0.07), transparent 36%),
    var(--navy-950);
  display: flex;
  justify-content: center;
  padding: 28px;
}

.login-layout {
  background: var(--surface);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(440px, 1.08fr);
  min-height: calc(100vh - 56px);
  max-width: 1240px;
  overflow: hidden;
  width: 100%;
}

.login-hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--navy-900);
  background-size: 48px 48px, 48px 48px, auto;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px);
  position: relative;
}

.login-hero::before {
  border: 44px solid rgba(244, 195, 34, 0.1);
  border-radius: 50%;
  content: "";
  height: 240px;
  position: absolute;
  right: -145px;
  top: 13%;
  width: 240px;
}

.login-hero::after {
  background: var(--red);
  bottom: 0;
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  width: 42%;
}

.login-hero__brand .brand {
  width: 230px;
}

.login-hero__content {
  max-width: 520px;
  padding: 50px 0;
  position: relative;
  z-index: 1;
}

.login-hero__content h1 {
  font-size: clamp(2.8rem, 4.8vw, 5.25rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 18px 0 24px;
}

.login-hero__content h1 em {
  color: var(--gold);
  display: block;
  font-style: normal;
}

.login-hero__content p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 470px;
}

.login-journey {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 24px;
  position: relative;
  z-index: 1;
}

.login-journey div {
  display: flex;
  flex-direction: column;
}

.login-journey span {
  color: var(--gold);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.login-journey strong {
  font-size: 0.82rem;
  margin-top: 7px;
}

.login-journey small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.65rem;
  line-height: 1.35;
  margin-top: 4px;
}

.login-panel {
  align-items: center;
  background: #fbfaf7;
  display: flex;
  justify-content: center;
  padding: clamp(38px, 6vw, 88px);
}

.login-panel__content {
  max-width: 470px;
  width: 100%;
}

.login-card {
  max-width: 470px;
  width: 100%;
}

.demo-credit {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.015em;
  margin: 20px 0 0;
  text-align: center;
}

.demo-credit a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.demo-credit a:hover {
  text-decoration: underline;
}

.login-card h2 {
  font-size: clamp(2.15rem, 4vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 14px 0 11px;
}

.login-card > p {
  line-height: 1.6;
  margin: 0 0 30px;
}

.login-card__mobile-brand {
  display: none;
  margin-bottom: 42px;
}

.login-card__mobile-brand--visible {
  display: block;
}

.login-card__help {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
  margin: 30px 0 0 !important;
  padding-top: 22px;
  text-align: center;
}

.password-layout {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 56px);
  width: 100%;
}

.password-card {
  background: #fbfaf7;
  border-radius: 22px;
  box-shadow: var(--shadow);
  max-width: 540px;
  padding: clamp(32px, 5vw, 58px);
}

.form-stack {
  display: grid;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field > span {
  color: #48566a;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.045em;
}

.field input,
.field select {
  background: #fff;
  border: 1px solid #cbd4de;
  border-radius: 8px;
  color: var(--ink);
  min-height: 49px;
  outline: none;
  padding: 11px 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 86, 162, 0.11);
}

.alert {
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 18px 0;
  padding: 13px 15px;
}

.alert--error {
  background: var(--red-soft);
  border: 1px solid #f0c4c0;
  color: #8c211d;
}

.button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.05em;
  min-height: 49px;
  padding: 12px 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--red);
  box-shadow: 0 10px 22px rgba(201, 49, 43, 0.2);
  color: #fff;
  width: 100%;
}

.button--primary:hover {
  background: var(--red-dark);
}

.button--secondary {
  background: var(--navy-900);
  color: #fff;
}

.button--filter {
  align-self: end;
  background: var(--blue);
  color: #fff;
  min-height: 49px;
  white-space: nowrap;
}

/* Portal shell */
.portal-page {
  background: var(--canvas);
}

.app-shell {
  min-height: 100vh;
}

.portal-sidebar {
  background: var(--navy-950);
  bottom: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  left: 0;
  padding: 30px 22px 22px;
  position: fixed;
  top: 0;
  width: var(--sidebar-width);
  z-index: 30;
}

.portal-sidebar__brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 8px 27px;
}

.portal-sidebar__brand .brand {
  width: 100%;
}

.portal-sidebar__label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 28px 12px 12px;
  text-transform: uppercase;
}

.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.portal-nav__link {
  align-items: center;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.66);
  display: flex;
  font-size: 0.83rem;
  font-weight: 650;
  min-height: 52px;
  padding: 8px 16px;
  position: relative;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.portal-nav__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.portal-nav__link--active {
  background: #fff;
  color: var(--navy-950);
}

.portal-nav__link--active::after {
  background: var(--gold);
  border-radius: 4px;
  content: "";
  height: 22px;
  position: absolute;
  right: -4px;
  width: 4px;
}

.portal-user {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  margin-top: auto;
  padding: 22px 5px 0;
}

.portal-user__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portal-user__text strong {
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-user__text span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.61rem;
  margin-top: 3px;
}

.avatar {
  align-items: center;
  background: var(--gold);
  border-radius: 10px;
  color: var(--navy-950);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 850;
  height: 38px;
  justify-content: center;
  min-width: 38px;
  width: 38px;
}

.logout-form {
  display: inline-flex;
}

.logout-button {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  font-size: 0.68rem;
  padding: 8px 4px;
}

.logout-button:hover {
  color: #fff;
}

.portal-main {
	 display: flex;
	 flex-direction: column;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.portal-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 70px;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 58px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.portal-topbar > div {
  display: flex;
  flex-direction: column;
}

.portal-topbar > div span {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-topbar > div strong {
  font-size: 0.85rem;
  margin-top: 2px;
}

.portal-topbar__status {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.7rem;
  gap: 8px;
}

.portal-topbar__status i {
  background: var(--green);
  border: 4px solid var(--green-soft);
  border-radius: 50%;
  height: 14px;
  width: 14px;
}

.portal-content {
	 flex: 1;
  margin: 0 auto;
  max-width: 1540px;
  padding: 36px clamp(24px, 4vw, 58px) 72px;
	 width: 100%;
}

.portal-footer {
	 border-top: 1px solid var(--line);
	 padding: 14px 24px 16px;
}

.portal-footer .demo-credit {
	 margin: 0;
}

/* Dashboard */
.welcome-band {
  align-items: flex-end;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.04), transparent 55%),
    var(--navy-900);
  border-radius: 20px;
  color: #fff;
  display: flex;
  gap: 34px;
  justify-content: space-between;
  margin-bottom: 20px;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  position: relative;
}

.welcome-band::after {
  border: 34px solid rgba(244, 195, 34, 0.1);
  border-radius: 50%;
  content: "";
  height: 170px;
  position: absolute;
  right: 11%;
  top: -108px;
  width: 170px;
}

.welcome-band__copy {
  position: relative;
  z-index: 1;
}

.welcome-band h1 {
  font-size: clamp(2rem, 4vw, 3.65rem);
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 10px 0 12px;
}

.welcome-band p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
  margin: 0;
  max-width: 660px;
}

.sync-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  padding: 11px 14px;
  position: relative;
  z-index: 1;
}

.sync-badge__dot {
  background: var(--gold);
  border: 4px solid rgba(244, 195, 34, 0.18);
  border-radius: 50%;
  height: 16px;
  width: 16px;
}

.sync-badge div {
  display: flex;
  flex-direction: column;
}

.sync-badge strong {
  font-size: 0.68rem;
}

.sync-badge span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.64rem;
  margin-top: 2px;
}

.summary-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(290px, 0.82fr) minmax(560px, 1.55fr);
  margin-bottom: 18px;
}

.summary-feature {
  background: var(--blue);
  border-radius: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 292px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.summary-feature::after {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
  height: 210px;
  position: absolute;
  right: -105px;
  top: -85px;
  width: 210px;
}

.summary-feature__label {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-feature > div > strong {
  display: block;
  font-size: clamp(2.7rem, 4vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 18px 0 12px;
}

.summary-feature p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0;
  max-width: 310px;
}

.summary-feature__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 18px;
  grid-template-columns: 0.7fr 1.3fr;
  padding-top: 18px;
}

.summary-feature__footer span {
  display: flex;
  flex-direction: column;
}

.summary-feature__footer small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.61rem;
  margin-bottom: 4px;
}

.summary-feature__footer strong {
  font-size: 0.78rem;
}

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

.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 138px;
  padding: 19px 20px;
}

.metric-card__label {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
}

.metric-card > strong {
  align-self: end;
  color: var(--navy-900);
  font-size: clamp(1.65rem, 2.5vw, 2.55rem);
  grid-column: 1 / -1;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 15px 0 9px;
}

.metric-card a {
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 750;
  grid-column: 1 / -1;
  text-decoration: none;
}

.metric-card--incentive {
  background: var(--gold-soft);
  border-color: #f2dfa1;
}

.metric-card--pending {
  background: var(--red-soft);
  border-color: #efcbc8;
}

.metric-card--pending a,
.metric-card--pending > strong {
  color: var(--red);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.8fr);
}

.chart-panel,
.recent-panel {
  min-height: 360px;
  padding: 25px;
}

.panel__heading {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.panel__heading h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 6px 0 5px;
}

.panel__heading p {
  color: var(--muted);
  font-size: 0.7rem;
  margin: 0;
}

.panel__heading a,
.panel__meta {
  color: var(--muted);
  font-size: 0.68rem;
  text-decoration: none;
  white-space: nowrap;
}

.panel__heading a {
  color: var(--blue);
  font-weight: 750;
}

.bar-chart {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: clamp(10px, 2vw, 24px);
  height: 245px;
  justify-content: space-around;
  margin-top: 24px;
  padding: 35px 12px 0;
}

.bar-chart__item {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
  min-width: 40px;
}

.bar-chart__value {
  color: var(--muted);
  font-size: 0.61rem;
  margin-bottom: 7px;
}

.bar-chart__track {
  align-items: end;
  display: flex;
  flex: 1;
  max-height: 165px;
  width: 100%;
}

.bar-chart__bar {
  background: var(--blue);
  border-radius: 7px 7px 0 0;
  display: block;
  min-height: 5px;
  width: 100%;
}

.bar-chart__bar--10 { height: 10%; }
.bar-chart__bar--20 { height: 20%; }
.bar-chart__bar--30 { height: 30%; }
.bar-chart__bar--40 { height: 40%; }
.bar-chart__bar--50 { height: 50%; }
.bar-chart__bar--60 { height: 60%; }
.bar-chart__bar--70 { height: 70%; }
.bar-chart__bar--80 { height: 80%; }
.bar-chart__bar--90 { height: 90%; }
.bar-chart__bar--100 { height: 100%; }

.bar-chart__item:last-child .bar-chart__bar {
  background: var(--red);
}

.bar-chart__label {
  color: var(--muted);
  font-size: 0.68rem;
  padding: 10px 0 12px;
}

.recent-list {
  margin-top: 20px;
}

.recent-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  padding: 14px 0;
}

.recent-row:last-child {
  border-bottom: 0;
}

.recent-row__mark {
  background: var(--gold);
  border-radius: 4px;
  height: 28px;
  width: 4px;
}

.recent-row div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.recent-row div strong {
  font-size: 0.79rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-row div span {
  color: var(--muted);
  font-size: 0.64rem;
  margin-top: 4px;
}

.recent-row > strong {
  color: var(--navy-900);
  font-size: 0.74rem;
  white-space: nowrap;
}

/* List pages */
.page-heading {
  align-items: flex-end;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin: 10px 0 27px;
}

.page-heading h1 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 9px 0 10px;
}

.page-heading p {
  color: var(--muted);
  margin: 0;
}

.heading-stat {
  align-items: baseline;
  border-left: 4px solid var(--blue);
  color: var(--navy-900);
  display: flex;
  gap: 8px;
  padding: 7px 18px;
}

.heading-stat strong {
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}

.heading-stat span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  text-transform: uppercase;
}

.heading-stat--red {
  border-color: var(--red);
}

.data-panel {
  padding: 22px;
}

.filters {
  align-items: end;
  background: var(--canvas-cool);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(210px, 1.4fr) repeat(3, minmax(145px, 0.8fr)) auto;
  margin-bottom: 22px;
  padding: 17px;
}

.filters--compact {
  grid-template-columns: repeat(3, minmax(165px, 1fr)) auto;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 950px;
  width: 100%;
}

thead {
  background: #edf2f6;
  color: var(--navy-900);
}

th {
  border-bottom: 1px solid #ced8e2;
  font-size: 0.65rem;
  letter-spacing: 0.055em;
  padding: 14px 13px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  border-bottom: 1px solid var(--line);
  color: #455266;
  font-size: 0.77rem;
  padding: 14px 13px;
  vertical-align: middle;
}

tbody tr:hover {
  background: #fafbfd;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td strong {
  color: var(--ink);
}

.cell-meta {
  color: var(--muted);
  display: block;
  font-size: 0.63rem;
  margin-top: 4px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.69rem;
}

.money {
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}

.money--purple {
  color: var(--blue);
}

.status {
  border-radius: 5px;
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 750;
  padding: 5px 8px;
  white-space: nowrap;
}

.status--success {
  background: var(--green-soft);
  color: var(--green);
}

.status--danger {
  background: var(--red-soft);
  color: var(--red-dark);
}

.status--neutral {
  background: #e9edf2;
  color: #556276;
}

.pagination {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 0.73rem;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 18px;
}

.pagination div:last-child {
  text-align: right;
}

.pagination a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.pagination__disabled {
  opacity: 0.4;
}

.mini-empty {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 40px 10px;
  text-align: center;
}

.mini-empty--large {
  border: 1px dashed #c7d0da;
  border-radius: 9px;
  margin-top: 18px;
}

.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 8vh auto;
  max-width: 620px;
  padding: 55px 45px;
  text-align: center;
}

.empty-state__icon {
  align-items: center;
  background: var(--red-soft);
  border-radius: 12px;
  color: var(--red);
  display: inline-flex;
  font-size: 1.7rem;
  font-weight: 850;
  height: 56px;
  justify-content: center;
  margin-bottom: 18px;
  width: 56px;
}

.empty-state h1 {
  font-size: 2rem;
  letter-spacing: -0.035em;
  margin: 12px 0;
}

.empty-state p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 auto 26px;
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 238px;
  }

  .portal-sidebar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .summary-layout {
    grid-template-columns: 1fr;
  }

  .summary-feature {
    min-height: 230px;
  }

  .metric-card {
    min-height: 130px;
  }

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

@media (max-width: 920px) {
  .login-layout {
    grid-template-columns: minmax(330px, 0.85fr) minmax(390px, 1fr);
  }

  .login-hero {
    padding: 36px;
  }

  .login-journey {
    grid-template-columns: 1fr;
  }

  .login-journey div:nth-child(2),
  .login-journey div:nth-child(3) {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .recent-panel {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .login-page {
    padding: 18px;
  }

  .login-layout {
    display: block;
    min-height: calc(100vh - 36px);
  }

  .login-hero {
    display: none;
  }

  .login-panel {
    min-height: calc(100vh - 36px);
    padding: 38px 28px;
  }

  .login-card__mobile-brand {
    display: block;
  }

  .portal-sidebar {
    align-items: center;
    bottom: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    height: 68px;
    padding: 0 16px;
    position: sticky;
    width: 100%;
  }

  .portal-sidebar__brand {
    border: 0;
    padding: 0;
  }

  .portal-sidebar__brand .brand {
    width: 146px;
  }

  .portal-sidebar__label {
    display: none;
  }

  .portal-nav {
    background: var(--navy-950);
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(7, 29, 53, 0.18);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 70px;
    left: 0;
    padding: 6px 8px;
    position: fixed;
    right: 0;
    z-index: 50;
  }

  .portal-nav__link {
    display: flex;
    font-size: 0.65rem;
    justify-content: center;
    min-height: 56px;
    padding: 8px 4px;
    text-align: center;
  }

  .portal-nav__link--active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .portal-nav__link--active::after {
    background: var(--gold);
    height: 3px;
    left: 20%;
    right: 20%;
    top: -6px;
    width: auto;
  }

  .portal-user {
    border: 0;
    grid-template-columns: 34px auto;
    margin: 0;
    padding: 0;
  }

  .portal-user__text {
    display: none;
  }

  .portal-user .avatar {
    border-radius: 8px;
    height: 34px;
    min-width: 34px;
    width: 34px;
  }

  .logout-button {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0;
    height: 34px;
    padding: 0;
    width: 30px;
  }

  .logout-button::after {
    content: "↗";
    font-size: 1rem;
  }

  .portal-main {
    margin-left: 0;
  }

  .portal-topbar {
    display: none;
  }

  .portal-content {
    padding: 24px 18px 100px;
  }

  .welcome-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-feature {
    min-height: 250px;
  }

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

@media (max-width: 580px) {
  .login-page {
    padding: 0;
  }

  .login-layout {
    border-radius: 0;
    min-height: 100vh;
  }

  .login-panel {
    min-height: 100vh;
    padding: 32px 22px;
  }

  .password-layout {
    min-height: 100vh;
  }

  .password-card {
    border-radius: 0;
    min-height: 100vh;
    padding: 32px 22px;
  }

  .portal-content {
    padding-left: 13px;
    padding-right: 13px;
  }

  .welcome-band {
    border-radius: 14px;
    padding: 24px 20px;
  }

  .welcome-band h1 {
    font-size: 2.25rem;
  }

  .sync-badge {
    width: 100%;
  }

  .summary-layout {
    gap: 12px;
  }

  .summary-feature {
    border-radius: 13px;
    min-height: 235px;
    padding: 22px;
  }

  .summary-feature > div > strong {
    font-size: 2.8rem;
  }

  .metric-grid {
    gap: 10px;
  }

  .metric-card {
    min-height: 132px;
    padding: 15px;
  }

  .metric-card__label {
    font-size: 0.6rem;
  }

  .metric-card > strong {
    font-size: 1.55rem;
  }

  .metric-card a {
    display: none;
  }

  .chart-panel,
  .recent-panel,
  .data-panel {
    padding: 17px;
  }

  .panel__heading {
    gap: 10px;
  }

  .bar-chart {
    gap: 7px;
    height: 215px;
    padding-left: 0;
    padding-right: 0;
  }

  .bar-chart__value {
    font-size: 0;
  }

  .page-heading {
    align-items: flex-start;
  }

  .page-heading h1 {
    font-size: 2.4rem;
  }

  .heading-stat {
    display: none;
  }

  .filters,
  .filters--compact {
    grid-template-columns: 1fr;
  }

  .pagination {
    grid-template-columns: 1fr 1fr;
  }

  .pagination > span {
    display: none;
  }

  .empty-state {
    margin: 4vh auto;
    padding: 40px 24px;
  }
}

@media (max-width: 420px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 122px;
  }

  .portal-nav__link {
    font-size: 0.59rem;
  }
}
