:root {
  --bg: #efe7d9;
  --bg-soft: rgba(255, 250, 242, 0.8);
  --surface: rgba(255, 250, 242, 0.78);
  --surface-strong: #fff8ef;
  --surface-dark: #16283f;
  --surface-dark-soft: rgba(22, 40, 63, 0.88);
  --ink: #14243a;
  --ink-soft: #516073;
  --ink-inverse: #fef6ee;
  --accent: #bf5a32;
  --accent-deep: #8e3d23;
  --accent-soft: rgba(191, 90, 50, 0.14);
  --teal: #1f7a69;
  --line: rgba(20, 36, 58, 0.1);
  --shadow: 0 26px 70px rgba(30, 40, 54, 0.12);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(191, 90, 50, 0.18), transparent 25%),
    radial-gradient(circle at 84% 10%, rgba(24, 69, 108, 0.14), transparent 22%),
    linear-gradient(180deg, #f8f2e8 0%, #f0e7d8 52%, #e9dfd0 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.58;
}

body::before {
  width: 18rem;
  height: 18rem;
  top: 5rem;
  right: -4rem;
  background: rgba(191, 90, 50, 0.16);
}

body::after {
  width: 15rem;
  height: 15rem;
  left: -3rem;
  bottom: 6rem;
  background: rgba(24, 69, 108, 0.12);
}

.gateway-page {
  background:
    radial-gradient(circle at top left, rgba(191, 90, 50, 0.2), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(31, 122, 105, 0.16), transparent 18%),
    linear-gradient(180deg, #fbf5eb 0%, #f1e8d9 48%, #eadfcf 100%);
}

.gateway-page-premium {
  background:
    radial-gradient(circle at 12% 8%, rgba(109, 120, 255, 0.12), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(216, 176, 95, 0.12), transparent 24%),
    linear-gradient(180deg, #0b0c10 0%, #111318 54%, #15181d 100%);
}

.workspace-page-admin {
  background:
    radial-gradient(circle at top left, rgba(20, 36, 58, 0.22), transparent 20%),
    radial-gradient(circle at 85% 12%, rgba(191, 90, 50, 0.16), transparent 22%),
    linear-gradient(180deg, #f6efe2 0%, #eee3d2 52%, #e6d9c8 100%);
}

.workspace-page-user {
  background:
    radial-gradient(circle at top left, rgba(31, 122, 105, 0.16), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(191, 90, 50, 0.14), transparent 18%),
    linear-gradient(180deg, #f5f0e4 0%, #ece3d3 52%, #e6dbc9 100%);
}

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

.site-shell {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.95rem 1.1rem;
  background: rgba(255, 249, 240, 0.72);
  border: 1px solid rgba(20, 36, 58, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 32px rgba(30, 42, 61, 0.08);
}

.topbar-minimal {
  margin-bottom: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-plain {
  font-size: 1.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
  color: #fff6ed;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 12px 26px rgba(142, 57, 32, 0.24);
}

.button-secondary,
.button-ghost {
  color: var(--ink);
  background: rgba(255, 251, 245, 0.74);
  border: 1px solid rgba(20, 36, 58, 0.1);
}

.gateway-main,
.workspace-main {
  padding-bottom: 2rem;
}

.gateway-shell-simple {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gateway-shell-premium {
  width: min(1380px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.gateway-main-centered {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gateway-main-premium {
  min-height: calc(100vh - 11rem);
}

.gateway-hero,
.workspace-hero,
.surface-card,
.panel-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gateway-hero,
.workspace-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
  gap: 1rem;
  align-items: stretch;
}

.gateway-copy,
.workspace-copy {
  padding: 3rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, rgba(255, 251, 244, 0.94) 0%, rgba(249, 238, 223, 0.9) 100%);
}

.gateway-copy {
  position: relative;
  overflow: hidden;
}

.gateway-copy::after {
  content: "";
  position: absolute;
  width: 14rem;
  height: 14rem;
  right: -3rem;
  bottom: -4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 90, 50, 0.2) 0%, rgba(191, 90, 50, 0) 70%);
}

.gateway-panel {
  display: grid;
  gap: 1rem;
}

.login-stage {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 1.15rem;
  align-items: stretch;
}

.login-stage-premium {
  width: min(1160px, 100%);
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
}

.login-stage-copy {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 34rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2.2rem, 5vw, 4.5rem);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255, 251, 244, 0.96) 0%, rgba(246, 235, 220, 0.92) 100%);
  box-shadow: var(--shadow);
}

.login-stage-copy::before {
  content: "";
  position: absolute;
  inset: auto auto -5rem -4rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 122, 105, 0.18) 0%, rgba(31, 122, 105, 0) 72%);
}

.login-stage-copy::after {
  content: "";
  position: absolute;
  top: -4rem;
  right: -3rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 90, 50, 0.2) 0%, rgba(191, 90, 50, 0) 70%);
}

.login-stage-copy > * {
  position: relative;
  z-index: 1;
}

.login-stage-copy h1 {
  max-width: none;
  font-size: clamp(4.2rem, 11vw, 7.5rem);
}

.login-stage-copy .hero-text {
  max-width: 30rem;
  margin-top: 1rem;
}

.login-stage-panel {
  display: flex;
  min-height: 34rem;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.8rem, 4vw, 2.5rem);
}

.login-stage-panel h2 {
  max-width: 11ch;
}

.login-stage-panel p {
  max-width: 22rem;
}

.gateway-topbar {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  background: rgba(15, 16, 21, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.gateway-topbar .brand-plain {
  color: #fff8ef;
}

.eyebrow-light,
.section-label-light {
  color: rgba(255, 255, 255, 0.48);
}

.button-secondary-dark {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.gateway-page-premium .button-secondary {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.gateway-page-premium .button-secondary:hover,
.gateway-page-premium .button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.09);
}

.gateway-page-premium .login-stage-copy {
  min-height: 38rem;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(18, 19, 24, 0.98) 0%, rgba(14, 15, 20, 0.96) 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.gateway-page-premium .login-stage-copy::before {
  width: 22rem;
  height: 22rem;
  inset: auto auto -8rem -5rem;
  background: radial-gradient(circle, rgba(109, 120, 255, 0.24) 0%, rgba(109, 120, 255, 0) 74%);
}

.gateway-page-premium .login-stage-copy::after {
  width: 24rem;
  height: 24rem;
  top: -8rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(216, 176, 95, 0.2) 0%, rgba(216, 176, 95, 0) 72%);
}

.gateway-page-premium .login-stage-copy h1 {
  color: #fff8ef;
  font-size: clamp(4.6rem, 12vw, 8rem);
}

.gateway-page-premium .hero-text {
  color: rgba(255, 255, 255, 0.68);
}

.gateway-page-premium .role-band span,
.gateway-page-premium .locked-note {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.gateway-page-premium .locked-note {
  color: #fff8ef;
}

.login-stage-panel-premium {
  min-height: 38rem;
  justify-content: space-between;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(18, 19, 24, 0.98) 0%, rgba(12, 13, 18, 0.98) 100%);
}

.login-stage-panel-premium h2 {
  max-width: 12ch;
}

.login-route-stack {
  display: grid;
  gap: 0.95rem;
  width: 100%;
  margin-top: 1.2rem;
}

.login-route-card {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

.login-route-label {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-route-card strong {
  display: block;
  color: #fff8ef;
  line-height: 1.2;
}

.login-route-card p {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.62;
}

.access-strip {
  padding-top: 1rem;
}

.panel-card,
.surface-card,
.workspace-panel {
  padding: 1.65rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.panel-card-dark,
.workspace-panel-dark {
  color: var(--ink-inverse);
  background: linear-gradient(180deg, #193150 0%, #10263d 100%);
}

.panel-card-dark p,
.workspace-panel-dark p,
.workspace-panel-dark .section-label {
  color: rgba(255, 248, 240, 0.8);
}

.workspace-panel-soft {
  background: linear-gradient(180deg, rgba(31, 122, 105, 0.14) 0%, rgba(255, 250, 242, 0.84) 100%);
}

.eyebrow,
.section-label,
.metric-kicker {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

h1,
h2,
h3,
strong {
  margin: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.5rem, 8vw, 6.4rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(1.4rem, 2.7vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.accent-script {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-deep);
}

.hero-text,
.surface-card p,
.panel-card p,
.workspace-panel p,
.footer {
  color: var(--ink-soft);
}

.hero-text {
  max-width: 60ch;
  margin: 1.4rem 0 0;
  font-size: 1.06rem;
  line-height: 1.75;
}

.panel-card-dark h2 {
  max-width: 9ch;
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.panel-card-dark p {
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-actions-centered {
  justify-content: center;
}

.role-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.role-band-centered {
  justify-content: center;
  max-width: 40rem;
}

.role-band-compact {
  margin-top: 1.45rem;
}

.role-band span,
.locked-note {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(20, 36, 58, 0.05);
  color: var(--ink);
  font-size: 0.9rem;
}

.locked-note {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 700;
}

.section-label {
  margin-bottom: 0.8rem;
}

.hero-metric {
  display: block;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.access-grid,
.workspace-grid,
.metric-grid {
  display: grid;
  gap: 1rem;
}

.access-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 1.5rem;
}

.surface-card-wide {
  grid-column: span 3;
}

.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.access-grid .surface-card {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.access-grid .surface-card h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.access-grid .surface-card p {
  margin: 0;
  max-width: 22ch;
  font-size: 1.03rem;
  line-height: 1.65;
}

.metric-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(20, 36, 58, 0.05);
}

.metric-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.2rem;
}

.list-clean {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

.gateway-footer {
  padding-top: 1rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.8rem 0 0;
  font-size: 0.95rem;
}

.workspace-dashboard {
  color: #f7f1ea;
}

.workspace-dashboard::before {
  width: 26rem;
  height: 26rem;
  top: -4rem;
  right: -6rem;
  opacity: 0.34;
  filter: blur(34px);
}

.workspace-dashboard::after {
  width: 22rem;
  height: 22rem;
  left: -5rem;
  bottom: -4rem;
  opacity: 0.3;
  filter: blur(34px);
}

.workspace-dashboard.workspace-page-admin {
  --workspace-accent: #d8b05f;
  --workspace-accent-soft: rgba(216, 176, 95, 0.16);
  --workspace-secondary: #6d78ff;
  background:
    radial-gradient(circle at 12% 8%, rgba(109, 120, 255, 0.12), transparent 22%),
    radial-gradient(circle at 85% 12%, rgba(216, 176, 95, 0.1), transparent 24%),
    linear-gradient(180deg, #0c0d11 0%, #121318 54%, #16171c 100%);
}

.workspace-dashboard.workspace-page-user {
  --workspace-accent: #78b3a1;
  --workspace-accent-soft: rgba(120, 179, 161, 0.16);
  --workspace-secondary: #8093ff;
  background:
    radial-gradient(circle at 10% 8%, rgba(120, 179, 161, 0.12), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(128, 147, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #0c0f12 0%, #12161a 54%, #15181d 100%);
}

.workspace-dashboard.workspace-page-access {
  --workspace-accent: #d8b05f;
  --workspace-accent-soft: rgba(216, 176, 95, 0.18);
  --workspace-secondary: #8093ff;
  background:
    radial-gradient(circle at 12% 8%, rgba(109, 120, 255, 0.14), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(216, 176, 95, 0.12), transparent 24%),
    linear-gradient(180deg, #090b10 0%, #101219 54%, #14171c 100%);
}

.dashboard-shell {
  width: min(1440px, calc(100% - 1.5rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: 1rem 0 1.5rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.dashboard-shell-access {
  align-items: stretch;
}

.dashboard-sidebar,
.dashboard-panel,
.dashboard-stat-card,
.dashboard-hero-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.dashboard-sidebar {
  position: sticky;
  top: 1rem;
  display: flex;
  min-height: calc(100vh - 2rem);
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(17, 18, 22, 0.98) 0%, rgba(14, 15, 20, 0.96) 100%);
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff8ef;
}

.dashboard-profile-card,
.dashboard-command-box,
.dashboard-side-note {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-profile-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dashboard-avatar {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--workspace-accent) 0%, rgba(255, 255, 255, 0.14) 100%);
  color: #0e1014;
  font-size: 1.2rem;
  font-weight: 800;
}

.dashboard-profile-copy strong,
.dashboard-side-note h3,
.dashboard-command-box strong {
  display: block;
  color: #fff8f0;
}

.dashboard-profile-copy strong {
  font-size: 1rem;
}

.dashboard-profile-copy p,
.dashboard-side-note p,
.dashboard-command-box p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
}

.dashboard-sidebar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-chip-accent {
  color: #fff8ef;
  background: var(--workspace-accent-soft);
  border-color: rgba(255, 255, 255, 0.06);
}

.dashboard-command-label,
.dashboard-kicker,
.dashboard-breadcrumb {
  margin: 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-command-box strong {
  margin-top: 0.55rem;
  line-height: 1.45;
}

.dashboard-nav {
  display: grid;
  gap: 0.55rem;
}

.dashboard-nav-link,
.dashboard-toolbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.dashboard-nav-link:hover,
.dashboard-nav-link:focus-visible,
.dashboard-toolbar-link:hover,
.dashboard-toolbar-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  color: #fff8ef;
}

.dashboard-nav-link.is-active {
  color: #fff8ef;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.dashboard-side-note {
  margin-top: auto;
}

.dashboard-side-note h3 {
  margin: 0.7rem 0 0;
  font-size: 1.35rem;
  line-height: 1.05;
}

.dashboard-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.25rem 0 1rem;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.15rem;
}

.dashboard-title {
  max-width: 13ch;
  margin-top: 0.35rem;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: #fff8ef;
}

.dashboard-title-access {
  max-width: none;
  font-size: clamp(4rem, 10vw, 7rem);
}

.dashboard-subtitle {
  max-width: 54rem;
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.72;
}

.dashboard-subtitle-access {
  max-width: 44rem;
}

.dashboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.dashboard-hero-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(18, 19, 24, 0.98) 0%, rgba(14, 15, 19, 0.96) 100%);
}

.dashboard-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.7px, transparent 0.7px);
  background-size: 14px 14px;
  opacity: 0.18;
  mask: linear-gradient(180deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.24) 100%);
}

.dashboard-hero-card::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -6rem;
  top: -6rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--workspace-accent-soft) 0%, rgba(255, 255, 255, 0) 72%);
}

.dashboard-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.78fr);
  gap: 1rem;
  align-items: end;
}

.dashboard-hero-grid-access {
  align-items: stretch;
}

.dashboard-hero-title {
  max-width: 13ch;
  color: #fff9f1;
  font-size: clamp(1.9rem, 4vw, 3.45rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.dashboard-hero-title-access {
  max-width: 12ch;
}

.dashboard-hero-copy {
  max-width: 40rem;
  margin: 0.95rem 0 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.75;
}

.dashboard-hero-aside {
  padding: 1.2rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-hero-aside strong {
  display: block;
  margin-top: 0.9rem;
  color: #fff8ef;
  font-size: 1.35rem;
  line-height: 1.08;
}

.dashboard-hero-aside p {
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.dashboard-access-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-access-hero {
  min-height: 34rem;
}

.dashboard-hero-aside-access {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-route-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.dashboard-route-card {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-route-label {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-route-card strong {
  display: block;
  color: #fff8ef;
  line-height: 1.24;
}

.dashboard-route-card p {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.62;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-stat-card {
  display: flex;
  min-height: 7.9rem;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem 1.2rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 19, 24, 0.98) 0%, rgba(15, 16, 20, 0.96) 100%);
}

.dashboard-stat-card p {
  margin: 0 0 0.6rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.9rem;
}

.dashboard-stat-card strong {
  color: #fff8ef;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.dashboard-stat-card span {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.dashboard-content-grid-bottom {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
}

.dashboard-stack {
  display: grid;
  gap: 1rem;
}

.dashboard-panel {
  padding: 1.35rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 19, 24, 0.98) 0%, rgba(15, 16, 20, 0.96) 100%);
}

.dashboard-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-panel h2 {
  color: #fff8ef;
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  line-height: 1.02;
}

.dashboard-panel-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.72;
}

.dashboard-chart-surface {
  position: relative;
  height: 17rem;
  margin-top: 0.8rem;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.dashboard-chart-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 0.8px, transparent 0.8px);
  background-size: 10px 10px;
  mask: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 18%, rgba(0, 0, 0, 0.9) 75%, transparent 100%);
  opacity: 0.36;
}

.dashboard-chart-surface::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.025) 100%);
}

.dashboard-line-chart {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.dashboard-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.82rem;
}

.dashboard-task-list,
.dashboard-control-list {
  display: grid;
  gap: 0.8rem;
}

.dashboard-task-item,
.dashboard-control-item,
.dashboard-message-card {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-task-item strong,
.dashboard-control-item strong,
.dashboard-message-card strong {
  display: block;
  color: #fff8ef;
}

.dashboard-task-item span,
.dashboard-control-item span,
.dashboard-message-card p {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.58;
}

.dashboard-progress {
  height: 8px;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--workspace-accent) 0%, var(--workspace-secondary) 100%);
}

.dashboard-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.dashboard-action-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 0.98rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f7f1ea;
  font-size: 0.9rem;
  font-weight: 700;
}

.dashboard-shell-message {
  align-items: center;
}

.dashboard-message-hero {
  min-height: 26rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-title-message {
  max-width: 12ch;
}

.dashboard-action-row-message {
  margin-top: 1.5rem;
}

.workspace-page-access .hero-actions {
  margin-top: 1.7rem;
}

.workspace-page-access .role-band-dashboard {
  margin-top: 1.6rem;
}

.workspace-page-access .role-band span,
.workspace-page-access .locked-note-dashboard {
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.workspace-page-access .locked-note-dashboard {
  display: inline-flex;
  width: fit-content;
  margin-top: 1rem;
  color: #fff8ef;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 120ms;
}

.reveal-delay-2 {
  transition-delay: 220ms;
}

@media (max-width: 1024px) {
  .gateway-hero,
  .workspace-hero,
  .login-stage,
  .access-grid,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-shell,
  .dashboard-content-grid,
  .dashboard-content-grid-bottom,
  .dashboard-hero-grid,
  .dashboard-shell-message,
  .login-stage-premium {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    width: min(100% - 1rem, 1440px);
  }

  .dashboard-sidebar {
    position: static;
    min-height: auto;
  }

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

  .dashboard-title,
  .dashboard-hero-title {
    max-width: none;
  }

  .gateway-shell-premium {
    width: min(100% - 1rem, 1380px);
  }

  .surface-card-wide {
    grid-column: auto;
  }

  .gateway-copy,
  .workspace-copy,
  .login-stage-copy,
  .login-stage-panel {
    padding: 2rem;
  }

  .login-stage-copy,
  .login-stage-panel {
    min-height: auto;
  }

  .dashboard-toolbar,
  .dashboard-header {
    justify-content: flex-start;
  }

  .dashboard-header {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 1rem, 1320px);
  }

  .topbar {
    top: 0.5rem;
    padding: 0.8rem;
    border-radius: 24px;
  }

  .button-ghost {
    display: none;
  }

  .gateway-copy,
  .workspace-copy,
  .login-stage-copy,
  .surface-card,
  .panel-card,
  .workspace-panel {
    padding: 1.35rem;
  }

  .login-stage-panel {
    padding: 1.35rem;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.5rem);
  }

  .login-stage-copy h1 {
    font-size: clamp(3.2rem, 18vw, 4.8rem);
  }

  h2 {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }

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

  .access-grid .surface-card {
    min-height: auto;
  }

  .access-grid .surface-card p {
    max-width: none;
  }

  .footer {
    flex-direction: column;
  }

  .dashboard-shell {
    width: min(100% - 0.85rem, 1440px);
    gap: 0.85rem;
  }

  .gateway-shell-premium {
    width: min(100% - 0.85rem, 1380px);
  }

  .dashboard-sidebar,
  .dashboard-panel,
  .dashboard-hero-card,
  .dashboard-stat-card {
    border-radius: 24px;
  }

  .dashboard-sidebar,
  .dashboard-panel,
  .dashboard-hero-card {
    padding: 1rem;
  }

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

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

  .dashboard-toolbar {
    width: 100%;
  }

  .dashboard-toolbar-link {
    flex: 1 1 12rem;
  }

  .dashboard-title {
    font-size: clamp(2.3rem, 13vw, 3.5rem);
  }

  .dashboard-hero-title {
    font-size: clamp(1.7rem, 9vw, 2.5rem);
  }

  .dashboard-chart-surface {
    height: 14rem;
  }

  .gateway-page-premium .login-stage-copy,
  .login-stage-panel-premium {
    min-height: auto;
  }

  .login-stage-panel-premium {
    padding: 1.2rem;
  }
}
