:root {
  color-scheme: dark;
  --bg: #070810;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f7f2eb;
  --muted: rgba(247, 242, 235, 0.66);
  --soft: rgba(247, 242, 235, 0.42);
  --gold: #e7b461;
  --orange: #ff7a31;
  --violet: #7d5cff;
  --cyan: #64d7d2;
  --green: #64d98a;
  --danger: #ff6b6b;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 122, 49, 0.24), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(125, 92, 255, 0.2), transparent 35%),
    linear-gradient(140deg, #070810 0%, #111023 50%, #090813 100%);
  color: var(--text);
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: rgba(7, 8, 16, 0.72);
  backdrop-filter: blur(24px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(231, 180, 97, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 122, 49, 0.95), rgba(125, 92, 255, 0.74));
  box-shadow: 0 18px 44px rgba(255, 122, 49, 0.22);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item,
.icon-button,
.primary-action,
.hero-button,
.ghost-button,
.attention-item button,
.category-pill {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.nav-item svg {
  width: 18px;
}

.nav-item:hover,
.nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.access-panel {
  margin-top: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.access-panel p,
.access-panel strong,
.access-panel small {
  display: block;
  margin: 0;
}

.access-panel p {
  color: var(--muted);
  font-size: 12px;
}

.access-panel strong {
  margin-top: 8px;
}

.access-panel small {
  margin-top: 6px;
  color: var(--soft);
}

.pulse {
  display: block;
  width: 8px;
  height: 8px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(100, 217, 138, 0.13);
}

.main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -24px -24px 24px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 8, 16, 0.68);
  backdrop-filter: blur(22px);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.search svg {
  width: 18px;
  color: var(--muted);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.top-actions,
.hero-actions,
.panel-head,
.module-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.primary-action,
.hero-button,
.ghost-button,
.danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
}

.icon-button {
  width: 42px;
  padding: 0;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.primary-action,
.hero-button {
  border-color: rgba(231, 180, 97, 0.42);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #160d05;
  font-weight: 800;
}

.ghost-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.danger-action {
  min-height: 42px;
  border: 1px solid rgba(255, 107, 107, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 107, 107, 0.13);
  color: #ffd1d1;
  font-weight: 800;
}

.button-row,
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.row-actions {
  justify-content: flex-end;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.view {
  display: none;
  animation: rise 380ms ease both;
}

.view.is-active {
  display: block;
}

.hero {
  position: relative;
  min-height: min(650px, calc(100vh - 116px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #080913;
  box-shadow: var(--shadow);
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 8, 16, 0.95) 0%, rgba(7, 8, 16, 0.82) 35%, rgba(7, 8, 16, 0.12) 74%),
    linear-gradient(180deg, rgba(7, 8, 16, 0.1), rgba(7, 8, 16, 0.7));
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(620px, 100%);
  min-height: inherit;
  padding: clamp(28px, 7vw, 84px);
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero h1,
.section-title h1 {
  max-width: 850px;
  margin-bottom: 20px;
  color: #fff9ef;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.hero h1 {
  text-shadow: 0 12px 42px rgba(255, 244, 226, 0.18);
}

.hero p {
  max-width: 560px;
  margin-bottom: 30px;
  color: rgba(255, 249, 239, 0.88);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
}

.metric-row,
.workspace-grid,
.module-grid,
.content-board,
.security-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.metric-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric,
.panel,
.module-card,
.journey-step,
.content-tile,
.security-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.18);
}

.metric {
  padding: 20px;
}

.metric > span,
.metric small {
  display: block;
  color: var(--muted);
}

.metric strong {
  display: block;
  margin: 12px 0 4px;
  font-size: clamp(28px, 3vw, 42px);
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
}

.panel {
  padding: 20px;
}

.panel.wide {
  min-width: 0;
}

.panel-head {
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel h2,
.module-card h2,
.journey-step h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.attention-list,
.category-stack {
  display: grid;
  gap: 10px;
}

.attention-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.attention-item--empty {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.attention-item.high {
  border-color: rgba(255, 107, 107, 0.36);
}

.avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 107, 107, 0.18);
  color: #ffd1d1;
  font-weight: 800;
}

.avatar.gold {
  background: rgba(231, 180, 97, 0.18);
  color: #ffe0a5;
}

.avatar.blue {
  background: rgba(100, 215, 210, 0.16);
  color: #b8fffb;
}

.attention-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

.attention-item button {
  padding: 0 14px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.category-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
}

.category-select {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.category-select strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.category-action {
  display: grid;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.category-action svg {
  width: 16px;
  height: 16px;
}

.category-pill.is-selected {
  border-color: rgba(231, 180, 97, 0.38);
  background: rgba(231, 180, 97, 0.12);
}

.category-pill span {
  color: var(--muted);
}

.section-title {
  padding: 26px 0 12px;
}

.section-title--actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-title.compact h1 {
  max-width: 720px;
  font-size: clamp(34px, 4.6vw, 62px);
}

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

.module-card {
  min-height: 246px;
  padding: 22px;
  cursor: pointer;
}

.module-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.module-action {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.module-action svg {
  width: 16px;
  height: 16px;
}

.module-card.premium {
  background:
    linear-gradient(145deg, rgba(231, 180, 97, 0.18), rgba(125, 92, 255, 0.12)),
    rgba(255, 255, 255, 0.07);
}

.module-card.is-selected {
  border-color: rgba(255, 122, 47, 0.36);
  background:
    linear-gradient(145deg, rgba(255, 122, 47, 0.16), rgba(111, 85, 245, 0.1)),
    rgba(255, 255, 255, 0.08);
}

.module-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

.module-card p {
  color: var(--muted);
  line-height: 1.55;
}

.module-meta {
  justify-content: space-between;
  margin-top: 26px;
  color: var(--soft);
  font-size: 13px;
}

.table-head,
.client-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr 0.8fr auto;
  gap: 14px;
  align-items: center;
  min-height: 56px;
}

.table-head {
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
}

.client-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.client-row strong {
  color: var(--text);
}

.client-action {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.client-action svg {
  width: 16px;
  height: 16px;
}

.status {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.status.active {
  background: rgba(100, 217, 138, 0.13);
  color: #b9f6cb;
}

.status.pending {
  background: rgba(231, 180, 97, 0.15);
  color: #ffe0a5;
}

.status.paused {
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.status.invited {
  background: rgba(231, 180, 97, 0.15);
  color: #ffe0a5;
}

.status.expired {
  background: rgba(255, 107, 107, 0.13);
  color: #ffd1d1;
}

.status.scheduled {
  background: rgba(231, 180, 97, 0.15);
  color: #ffe0a5;
}

.status.live {
  background: rgba(100, 217, 138, 0.16);
  color: #b9f6cb;
}

.status.completed {
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.status.cancelled {
  background: rgba(255, 107, 107, 0.13);
  color: #ffd1d1;
}

.status.normal {
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.status.high {
  background: rgba(231, 180, 97, 0.15);
  color: #ffe0a5;
}

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

.journey-step {
  position: relative;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
}

.journey-step::before {
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  content: "";
}

.journey-step.complete,
.journey-step.active {
  border-color: rgba(231, 180, 97, 0.32);
}

.journey-step span {
  display: block;
  margin-bottom: 78px;
  color: var(--gold);
  font-weight: 800;
}

.journey-step p,
.security-item span,
.content-tile span {
  color: var(--muted);
  line-height: 1.5;
}

.content-board,
.security-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-tile,
.security-item {
  display: grid;
  gap: 12px;
  min-height: 170px;
  padding: 22px;
}

.content-tile svg,
.security-item svg {
  color: var(--cyan);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .shell {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .brand span:last-child,
  .nav-item span,
  .access-panel p,
  .access-panel strong,
  .access-panel small {
    display: none;
  }

  .sidebar {
    align-items: center;
  }

  .nav-item {
    justify-content: center;
    width: 52px;
    padding: 0;
  }

  .metric-row,
  .module-grid,
  .journey-line,
  .content-board,
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .shell {
    display: block;
  }

  .sidebar {
    position: static;
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 12px;
    overflow-x: auto;
  }

  .brand {
    min-width: 48px;
  }

  .nav-list {
    display: flex;
  }

  .access-panel {
    display: none;
  }

  .main {
    padding: 14px;
  }

  .topbar {
    margin: 0 -14px 14px;
    padding: 12px 14px;
  }

  .top-actions .primary-action {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .hero {
    min-height: 560px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(7, 8, 16, 0.78), rgba(7, 8, 16, 0.92));
  }

  .hero-copy {
    justify-content: flex-end;
    padding: 24px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .metric-row,
  .module-grid,
  .journey-line,
  .content-board,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .attention-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .attention-item button {
    grid-column: 1 / -1;
  }

  .table-head {
    display: none;
  }

  .client-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 16px 0;
  }

  .client-action {
    width: 100%;
  }

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

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 122, 47, 0.2), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(111, 85, 245, 0.18), transparent 32%),
    #050507;
}

.login-card {
  display: grid;
  gap: 14px;
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.055));
  color: var(--text);
}

.login-card .brand-mark {
  margin-bottom: 10px;
}

.login-card h1 {
  margin: 0;
  font-size: 34px;
}

.login-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.login-card label,
.app-dialog label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.category-checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.category-checks legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

#module-category-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.category-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.category-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
}

.category-check span {
  color: var(--text);
}

.category-check small {
  grid-column: 2;
  color: var(--soft);
}

.empty-state {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.empty-state--wide {
  grid-column: 1 / -1;
}

.empty-state strong {
  color: var(--text);
}

.empty-state span {
  color: rgba(248, 243, 236, 0.58);
  line-height: 1.45;
}

.login-card input,
.app-dialog input,
.app-dialog select,
.app-dialog textarea {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
}

.app-dialog textarea {
  min-height: 108px;
  padding-top: 12px;
  resize: vertical;
}

.login-card small {
  min-height: 18px;
  color: #ffb4b9;
}

.app-dialog {
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111017;
  color: var(--text);
  box-shadow: var(--shadow);
}

.app-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.app-dialog form {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px;
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.dialog-head h2 {
  margin: 4px 0 0;
}

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

/* Grounded premium product direction */
:root {
  --bg: #0b0b0f;
  --surface: #15151b;
  --surface-strong: #1b1b22;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.68);
  --soft: rgba(244, 241, 234, 0.46);
  --gold: #d5a14f;
  --orange: #ff8a3d;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 138, 61, 0.055), transparent 280px),
    #0b0b0f;
}

.sidebar,
.topbar {
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(18px);
}

.brand-mark {
  background: #f4f1ea;
  box-shadow: none;
  color: #111116;
}

.nav-item:hover,
.nav-item.is-active,
.search,
.icon-button {
  background: #191920;
}

.primary-action {
  background: #f0a24a;
  border-color: #f0a24a;
  color: #17100a;
}

.view {
  animation: none;
}

.product-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.title-block,
.program-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.title-block {
  min-height: 238px;
  padding: clamp(28px, 4vw, 46px);
  background:
    linear-gradient(120deg, rgba(213, 161, 79, 0.14), transparent 42%),
    var(--surface);
}

.title-block h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  color: var(--text);
  font-size: clamp(42px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.title-block p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.program-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 238px;
  padding: 24px;
}

.program-card__top,
.program-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.program-label {
  color: var(--soft);
  font-size: 13px;
}

.live-dot {
  padding: 6px 9px;
  border: 1px solid rgba(100, 217, 138, 0.28);
  border-radius: 999px;
  background: rgba(100, 217, 138, 0.08);
  color: #a9eebd;
  font-size: 12px;
  font-weight: 700;
}

.program-card strong {
  display: block;
  margin: 28px 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.12;
}

.program-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.program-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

.program-stats {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.metric,
.panel,
.module-card,
.journey-step,
.content-tile,
.security-item {
  background: var(--surface);
  backdrop-filter: none;
  box-shadow: none;
}

.metric {
  min-height: 124px;
  padding: 18px;
}

.metric strong {
  margin: 10px 0 4px;
  font-size: 36px;
}

.operations-grid {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr) 320px;
  gap: 16px;
  margin-top: 16px;
}

.operations-grid .wide {
  grid-column: span 2;
}

.access-builder {
  grid-row: span 2;
}

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

.access-form label {
  display: grid;
  gap: 7px;
  min-height: 78px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101016;
  color: var(--soft);
  font-size: 12px;
}

.access-form span {
  align-self: end;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.module-switcher {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.module-switcher button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101016;
  color: var(--muted);
  text-align: left;
}

.module-switcher button.is-on {
  border-color: rgba(213, 161, 79, 0.36);
  background: rgba(213, 161, 79, 0.1);
  color: var(--text);
}

.attention-item,
.category-pill {
  background: #101016;
}

.attention-item button {
  background: #191920;
  color: var(--text);
}

.timeline-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  gap: 5px;
  padding: 0 0 14px 18px;
  border-left: 1px solid rgba(213, 161, 79, 0.28);
}

.timeline-list li:last-child {
  padding-bottom: 0;
}

.timeline-list span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.timeline-list strong {
  color: var(--text);
  font-size: 14px;
}

.hero {
  display: none;
}

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

  .operations-grid .wide,
  .access-builder {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 980px) {
  .product-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .title-block {
    min-height: auto;
    padding: 24px;
  }

  .title-block h1 {
    font-size: 38px;
  }

  .program-card {
    min-height: 220px;
  }

  .access-form {
    grid-template-columns: 1fr;
  }
}

/* Apple-clean premium direction with Damian-inspired accents */
:root {
  color-scheme: light;
  --bg: #f6f3ee;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --line: rgba(26, 21, 38, 0.1);
  --text: #19151f;
  --muted: rgba(25, 21, 31, 0.62);
  --soft: rgba(25, 21, 31, 0.42);
  --gold: #c98b36;
  --orange: #f0762f;
  --violet: #5a46d8;
  --cyan: #0c6667;
  --green: #128447;
  --danger: #c03643;
  --shadow: 0 28px 80px rgba(43, 31, 22, 0.12);
}

html {
  background: var(--bg);
}

body {
  background:
    radial-gradient(circle at 16% -10%, rgba(240, 118, 47, 0.18), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(90, 70, 216, 0.13), transparent 32%),
    linear-gradient(180deg, #fffaf4 0%, #f6f3ee 36%, #f1eee9 100%);
  color: var(--text);
}

.shell {
  grid-template-columns: 258px minmax(0, 1fr);
}

.sidebar {
  padding: 22px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(240, 118, 47, 0.14), transparent 34%),
    linear-gradient(145deg, #15101e, #09080d);
  color: #fff8ef;
}

.brand,
.nav-item,
.access-panel strong,
.access-panel p {
  color: #fff8ef;
}

.brand small,
.nav-item {
  color: rgba(255, 248, 239, 0.62);
}

.brand-mark {
  border-color: rgba(255, 255, 255, 0.38);
  background: linear-gradient(145deg, #fff8ef, #f7dfbf);
  color: #15101e;
}

.nav-item:hover,
.nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  color: #fff8ef;
}

.access-panel {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.09);
}

.access-panel small {
  color: rgba(255, 248, 239, 0.56);
}

.main {
  padding: 28px;
}

.topbar {
  margin: -28px -28px 28px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(26, 21, 38, 0.08);
  background: rgba(255, 250, 244, 0.78);
  backdrop-filter: blur(22px);
}

.search,
.icon-button {
  border-color: rgba(26, 21, 38, 0.09);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  box-shadow: 0 12px 34px rgba(43, 31, 22, 0.05);
}

.search input {
  color: var(--text);
}

.primary-action {
  border-color: #19151f;
  background: #19151f;
  color: #fff8ef;
  box-shadow: 0 16px 36px rgba(25, 21, 31, 0.18);
}

.product-header {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 18px;
}

.title-block,
.program-card,
.metric,
.panel,
.module-card,
.journey-step,
.content-tile,
.security-item {
  border-color: rgba(26, 21, 38, 0.09);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.title-block {
  min-height: 304px;
  padding: clamp(34px, 5.2vw, 68px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 0% 0%, rgba(240, 118, 47, 0.22), transparent 36%),
    radial-gradient(circle at 100% 15%, rgba(90, 70, 216, 0.14), transparent 36%);
}

.title-block h1 {
  max-width: 760px;
  font-size: clamp(52px, 6vw, 86px);
  line-height: 0.96;
}

.title-block p {
  max-width: 650px;
  color: var(--muted);
  font-size: 20px;
}

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

.program-card {
  min-height: 304px;
  background:
    linear-gradient(180deg, #20162d, #120f19);
  color: #fff8ef;
}

.program-label,
.program-stats,
.member-preview__copy {
  color: rgba(255, 248, 239, 0.66);
}

.program-card strong {
  color: #fff8ef;
  font-size: 38px;
}

.member-preview__copy {
  margin: -14px 0 26px;
  line-height: 1.45;
}

.program-progress {
  background: rgba(255, 255, 255, 0.12);
}

.hub-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.hub-strip span {
  display: grid;
  gap: 8px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 248, 239, 0.86);
  font-size: 12px;
  font-weight: 700;
}

.hub-strip svg {
  color: #f6b268;
}

.metric {
  min-height: 118px;
}

.metric strong {
  color: var(--text);
}

.operations-grid {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.2fr) minmax(270px, 0.65fr);
}

.panel {
  background: rgba(255, 255, 255, 0.78);
}

.access-form label,
.module-switcher button,
.attention-item,
.category-pill {
  border-color: rgba(26, 21, 38, 0.09);
  background: rgba(248, 245, 239, 0.82);
}

.access-form label {
  color: var(--soft);
}

.access-form span,
.module-switcher button.is-on,
.attention-item strong,
.timeline-list strong,
.panel h2,
.module-card h2 {
  color: var(--text);
}

.module-switcher button {
  color: var(--muted);
}

.module-switcher button.is-on {
  border-color: rgba(240, 118, 47, 0.24);
  background: rgba(240, 118, 47, 0.08);
}

.attention-item.high {
  border-color: rgba(192, 54, 67, 0.22);
  background: rgba(192, 54, 67, 0.045);
}

.attention-item p,
.category-pill span {
  color: var(--muted);
}

.attention-item button {
  border-color: rgba(26, 21, 38, 0.1);
  background: #19151f;
  color: #fff8ef;
}

.avatar {
  background: rgba(192, 54, 67, 0.09);
  color: #9b2430;
}

.avatar.gold {
  background: rgba(201, 139, 54, 0.14);
  color: #8a5a16;
}

.avatar.blue {
  background: rgba(90, 70, 216, 0.1);
  color: #4c36bd;
}

.status.active,
.live-dot {
  background: rgba(18, 132, 71, 0.08);
  color: #0f693b;
}

.category-pill.is-selected {
  border-color: rgba(240, 118, 47, 0.24);
  background: rgba(240, 118, 47, 0.09);
}

.timeline-list li {
  border-left-color: rgba(240, 118, 47, 0.24);
}

.timeline-list span {
  color: var(--orange);
}

.module-card.premium {
  background:
    linear-gradient(145deg, rgba(240, 118, 47, 0.1), rgba(90, 70, 216, 0.06)),
    rgba(255, 255, 255, 0.82);
}

.module-icon {
  background: rgba(240, 118, 47, 0.09);
  color: var(--orange);
}

@media (max-width: 1120px) {
  .sidebar {
    background:
      linear-gradient(145deg, #15101e, #09080d);
  }
}

@media (max-width: 980px) {
  .product-header,
  .operations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sidebar {
    background:
      linear-gradient(90deg, #15101e, #09080d);
  }

  .main {
    padding: 14px;
  }

  .topbar {
    margin: 0 -14px 14px;
    padding: 12px 14px;
  }

  .title-block {
    min-height: auto;
    padding: 28px 24px;
  }

  .title-block h1 {
    font-size: 44px;
  }

  .title-block p {
    font-size: 17px;
  }

  .program-card {
    min-height: 286px;
  }

  .hub-strip {
    grid-template-columns: 1fr;
  }
}

/* Dark luxury revision: closer to the stronger first direction, but cleaner and less AI-coded */
:root {
  color-scheme: dark;
  --bg: #050507;
  --surface: rgba(255, 255, 255, 0.065);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.115);
  --text: #f8f3ec;
  --muted: rgba(248, 243, 236, 0.66);
  --soft: rgba(248, 243, 236, 0.42);
  --gold: #d69a45;
  --orange: #ff7a2f;
  --violet: #6f55f5;
  --green: #49c778;
  --danger: #ff5d66;
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.48);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, system-ui, sans-serif;
}

body {
  background:
    radial-gradient(circle at 24% -12%, rgba(255, 122, 47, 0.2), transparent 34%),
    radial-gradient(circle at 86% 0%, rgba(111, 85, 245, 0.17), transparent 30%),
    linear-gradient(180deg, #0b070d 0%, #050507 42%, #050507 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  padding: 24px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 122, 47, 0.13), transparent 30%),
    linear-gradient(145deg, rgba(20, 14, 27, 0.98), rgba(5, 5, 7, 0.98));
  color: var(--text);
}

.brand,
.brand small,
.nav-item,
.access-panel p,
.access-panel strong {
  color: var(--text);
}

.brand small,
.nav-item,
.access-panel small {
  color: rgba(248, 243, 236, 0.58);
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, #fff7ec, #e4a256);
  box-shadow: 0 18px 45px rgba(255, 122, 47, 0.14);
  color: #15100b;
}

.nav-item {
  min-height: 44px;
  font-size: 15px;
  font-weight: 560;
}

.nav-section {
  margin: 12px 10px 2px;
  color: rgba(248, 243, 236, 0.38);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-item:hover,
.nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.access-panel {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.main {
  padding: 28px;
}

.topbar {
  margin: -28px -28px 28px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(24px);
}

.search,
.icon-button {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: none;
  color: var(--text);
}

.search input {
  color: var(--text);
}

.primary-action {
  border-color: transparent;
  background: linear-gradient(135deg, #f5bc66, #ff7a2f);
  box-shadow: 0 20px 45px rgba(255, 122, 47, 0.18);
  color: #130b05;
  font-weight: 760;
}

.product-header {
  grid-template-columns: minmax(0, 1.3fr) minmax(350px, 0.7fr);
  gap: 18px;
  margin-bottom: 18px;
}

.title-block,
.program-card,
.metric,
.panel,
.module-card,
.journey-step,
.content-tile,
.security-item {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.052));
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.title-block {
  position: relative;
  min-height: 386px;
  overflow: hidden;
  padding: clamp(42px, 6vw, 82px);
  background:
    radial-gradient(circle at 86% 18%, rgba(111, 85, 245, 0.21), transparent 34%),
    radial-gradient(circle at 0% 0%, rgba(255, 122, 47, 0.22), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
}

.title-block::after {
  position: absolute;
  right: -18%;
  bottom: -36%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 122, 47, 0.12), transparent 62%);
  content: "";
}

.title-block h1 {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 12px 0 22px;
  color: var(--text);
  font-size: clamp(76px, 8.4vw, 126px);
  font-weight: 780;
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: normal;
}

.title-block p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  color: rgba(248, 243, 236, 0.72);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.45;
}

.eyebrow {
  color: #f5a14d;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.14em;
}

.program-card {
  min-height: 386px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(27, 19, 38, 0.98), rgba(11, 9, 17, 0.98));
  color: var(--text);
}

.program-label,
.member-preview__copy {
  color: rgba(248, 243, 236, 0.65);
}

.program-card strong {
  margin: 38px 0 28px;
  color: var(--text);
  font-size: clamp(38px, 3.7vw, 58px);
  font-weight: 780;
  line-height: 0.98;
}

.member-preview__copy {
  margin: -16px 0 34px;
  font-size: 17px;
  line-height: 1.5;
}

.live-dot {
  border-color: rgba(73, 199, 120, 0.26);
  background: rgba(73, 199, 120, 0.1);
  color: #7ee69d;
}

.program-progress {
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
}

.hub-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.hub-strip span {
  display: grid;
  gap: 10px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(248, 243, 236, 0.88);
  font-size: 12px;
  font-weight: 720;
}

.hub-strip svg {
  color: #f0a24a;
}

.metric-row {
  gap: 14px;
}

.metric {
  min-height: 128px;
  padding: 20px;
}

.metric > span,
.metric small {
  color: rgba(248, 243, 236, 0.58);
}

.metric strong {
  color: var(--text);
  font-size: 42px;
  font-weight: 760;
}

.operations-grid {
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
  gap: 14px;
}

.operations-grid .wide {
  grid-column: auto;
}

.timeline-panel {
  grid-column: 1 / -1;
}

@media (min-width: 1500px) {
  .operations-grid {
    grid-template-columns: minmax(390px, 0.9fr) minmax(0, 1.2fr) minmax(290px, 0.65fr);
  }

  .operations-grid .wide {
    grid-column: span 2;
  }

  .timeline-panel {
    grid-column: auto;
  }
}

.panel {
  padding: 22px;
}

.panel h2,
.module-card h2 {
  color: var(--text);
  font-weight: 730;
}

.access-form label,
.module-switcher button,
.attention-item,
.category-pill {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.052);
  color: rgba(248, 243, 236, 0.52);
}

.access-form span,
.attention-item strong,
.module-switcher button.is-on,
.timeline-list strong {
  color: var(--text);
}

.timeline-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.timeline-summary article {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.052);
}

.timeline-summary strong,
.timeline-summary span,
.timeline-event small {
  display: block;
}

.timeline-summary strong {
  color: var(--text);
  font-size: 20px;
}

.timeline-summary span,
.timeline-event small {
  color: rgba(248, 243, 236, 0.58);
  font-size: 12px;
}

.timeline-event {
  position: relative;
  padding-left: 18px;
}

.timeline-event::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(231, 180, 97, 0.12);
  content: "";
}

.timeline-event.privacy::before,
.timeline-event.critical::before,
.timeline-event.blocked::before {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.12);
}

.timeline-event.submitted::before,
.timeline-event.reviewed::before,
.timeline-event.sent::before,
.timeline-event.info::before {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(100, 217, 138, 0.12);
}

.module-switcher button.is-on,
.category-pill.is-selected {
  border-color: rgba(255, 122, 47, 0.28);
  background: rgba(255, 122, 47, 0.095);
}

.module-switcher button {
  justify-content: flex-start;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

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

.module-switcher button:not(.is-on) {
  color: rgba(248, 243, 236, 0.42);
}

.attention-item.high {
  border-color: rgba(255, 93, 102, 0.24);
  background: rgba(255, 93, 102, 0.055);
}

.attention-item p,
.category-pill span,
.timeline-list li {
  color: rgba(248, 243, 236, 0.62);
}

.attention-item button {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 680;
}

.avatar {
  background: rgba(255, 93, 102, 0.13);
  color: #ffc7cb;
}

.avatar.gold {
  background: rgba(245, 161, 77, 0.14);
  color: #ffd69f;
}

.avatar.blue {
  background: rgba(111, 85, 245, 0.14);
  color: #d2caff;
}

.timeline-list li {
  border-left-color: rgba(255, 122, 47, 0.28);
}

.timeline-list span {
  color: #f5a14d;
}

.module-card.premium {
  background:
    linear-gradient(145deg, rgba(255, 122, 47, 0.14), rgba(111, 85, 245, 0.1)),
    rgba(255, 255, 255, 0.06);
}

.module-icon {
  background: rgba(255, 122, 47, 0.105);
  color: #f5a14d;
}

.audit-panel {
  margin-top: 16px;
}

.module-detail {
  margin-top: 16px;
}

.content-list {
  display: grid;
  gap: 10px;
}

.content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.052);
}

.content-row strong,
.content-row span {
  display: block;
}

.content-row strong {
  color: var(--text);
}

.content-row span,
.content-row em {
  color: rgba(248, 243, 236, 0.58);
  font-size: 13px;
  font-style: normal;
}

.content-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.content-actions button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.content-actions svg {
  width: 15px;
  height: 15px;
}

.asset-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 8px;
  color: #f5a14d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.asset-link svg {
  width: 14px;
  height: 14px;
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.75fr);
  gap: 16px;
}

.portal-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: end;
  min-height: 260px;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 122, 47, 0.18), transparent 38%),
    radial-gradient(circle at 90% 10%, rgba(111, 85, 245, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.052));
}

.portal-hero h2 {
  max-width: 740px;
  margin: 10px 0 16px;
  color: var(--text);
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.96;
}

.portal-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.portal-progress {
  display: grid;
  gap: 10px;
}

.portal-progress strong {
  color: var(--text);
  font-size: 54px;
  line-height: 1;
}

.portal-progress > span {
  color: var(--muted);
}

.portal-module-list,
.portal-assignment-list {
  display: grid;
  gap: 10px;
}

.portal-module,
.portal-content,
.portal-assignment,
.portal-event {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.052);
}

.portal-module,
.portal-assignment,
.portal-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 14px;
}

.assignment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.assignment-actions button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.assignment-actions svg {
  width: 16px;
  height: 16px;
}

.portal-module strong,
.portal-module span,
.portal-assignment strong,
.portal-assignment span,
.portal-event strong,
.portal-event span,
.portal-event small,
.portal-content span,
.portal-content strong {
  display: block;
}

.portal-module strong,
.portal-assignment strong,
.portal-event strong,
.portal-content strong {
  color: var(--text);
}

.portal-module span,
.portal-module em,
.portal-assignment span,
.portal-event span,
.portal-event small,
.portal-content span {
  color: rgba(248, 243, 236, 0.58);
  font-size: 13px;
  font-style: normal;
}

.portal-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-left: 20px;
  padding: 10px 12px;
}

.portal-content span {
  color: #f5a14d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-block {
  display: grid;
  gap: 10px;
  width: min(100%, 520px);
  margin-top: 12px;
}

.quiz-block small {
  color: rgba(248, 243, 236, 0.6);
  font-size: 12px;
}

.quiz-question {
  display: grid;
  gap: 7px;
}

.quiz-question span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.quiz-question select {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
}

.audit-list {
  display: grid;
  gap: 10px;
}

.audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.052);
}

.audit-row strong,
.audit-row span {
  display: block;
}

.audit-row strong {
  color: var(--text);
}

.audit-row span,
.audit-row time {
  color: rgba(248, 243, 236, 0.58);
  font-size: 13px;
}

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

.admin-form,
.admin-list {
  display: grid;
  gap: 12px;
}

.admin-form input,
.admin-form textarea {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
}

.admin-form textarea {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

.switch-line,
.admin-row {
  display: flex;
  align-items: center;
}

.switch-line {
  gap: 10px;
}

.admin-row {
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.052);
}

.admin-row strong,
.admin-row span {
  display: block;
}

.admin-row strong {
  color: var(--text);
}

.admin-row span {
  color: rgba(248, 243, 236, 0.58);
  font-size: 13px;
}

.admin-row small {
  display: block;
  margin-top: 5px;
  color: rgba(248, 243, 236, 0.52);
  font-size: 12px;
  line-height: 1.45;
}

.import-result {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(100, 217, 138, 0.28);
  border-radius: var(--radius);
  background: rgba(100, 217, 138, 0.1);
  color: var(--text);
  font-size: 13px;
}

.integration-health {
  margin-top: 14px;
}

.health-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.health-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.health-card strong {
  font-size: 14px;
}

.health-card span,
.health-card small,
.health-card code {
  color: var(--muted);
  font-size: 12px;
}

.health-card code {
  overflow-wrap: anywhere;
}

.health-card.ok {
  border-color: rgba(100, 217, 138, 0.35);
}

.health-card.failed,
.health-card.blocked {
  border-color: rgba(255, 107, 107, 0.3);
}

.status.blocked,
.status.locked,
.status.security,
.status.critical {
  background: rgba(255, 107, 107, 0.15);
  color: #ffd1d1;
}

.status.queued,
.status.warning,
.status.privacy,
.status.open,
.status.acknowledged {
  background: rgba(231, 180, 97, 0.15);
  color: #ffe0a5;
}

.status.sent,
.status.info,
.status.resolved {
  background: rgba(100, 217, 138, 0.13);
  color: #b9f6cb;
}

.notification-button {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff7a2f;
  color: #120905;
  font-size: 11px;
  font-weight: 800;
}

.notification-row.is-unread {
  border-color: rgba(255, 122, 47, 0.28);
  background: rgba(255, 122, 47, 0.08);
}

.notification-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.incident-timeline {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.incident-timeline p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.incident-timeline b {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.incident-timeline span {
  color: var(--muted);
  font-size: 12px;
}

.compact-filter {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.compact-filter select {
  max-width: 220px;
}

.notification-row.acknowledged {
  border-color: rgba(231, 180, 97, 0.24);
  background: rgba(231, 180, 97, 0.06);
}

.notification-row.resolved {
  opacity: 0.72;
}

.report-row > div {
  width: 100%;
}

.mini-bar {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7a2f, #f2c46d);
}

.setup-guide {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.042)),
    rgba(12, 12, 17, 0.72);
  box-shadow: none;
}

.setup-guide__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.setup-guide__intro h2 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 24px;
}

.setup-guide__intro p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.quick-actions-grid,
.role-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-card {
  display: grid;
  gap: 10px;
  min-height: 138px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.quick-card:hover {
  border-color: rgba(255, 122, 47, 0.36);
  background: rgba(255, 122, 47, 0.1);
  transform: translateY(-1px);
}

.quick-card svg {
  width: 22px;
  height: 22px;
  color: var(--orange);
}

.quick-card strong {
  font-size: 15px;
}

.quick-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.role-summary {
  margin: 4px 0 18px;
}

.role-summary article {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.role-summary span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.role-summary strong {
  color: var(--text);
  font-size: 32px;
  line-height: 1;
}

.empty-state--action {
  align-items: start;
}

.empty-state--action .primary-action {
  width: fit-content;
  margin-top: 6px;
}

.form-hint {
  display: block;
  margin-top: 7px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
}

.app-dialog label.is-muted {
  opacity: 0.56;
}

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

  .quick-actions-grid,
  .role-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .product-header,
  .operations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sidebar {
    background: linear-gradient(90deg, #15101e, #09080d);
  }

  .main {
    padding: 14px;
  }

  .topbar {
    margin: 0 -14px 14px;
    padding: 12px 14px;
    background: rgba(5, 5, 7, 0.78);
  }

  .title-block {
    min-height: auto;
    padding: 32px 24px;
  }

  .setup-guide__intro {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-actions-grid,
  .role-summary {
    grid-template-columns: 1fr;
  }

  .title-block h1 {
    font-size: 64px;
  }

  .title-block p {
    font-size: 17px;
  }

  .program-card {
    min-height: auto;
  }

  .program-card strong {
    font-size: 42px;
  }

  .hub-strip {
    grid-template-columns: 1fr;
  }

  .portal-layout,
  .portal-hero {
    grid-template-columns: 1fr;
  }

  .portal-hero h2 {
    font-size: 42px;
  }

  .section-title--actions {
    align-items: stretch;
    flex-direction: column;
  }

  #module-category-checks {
    grid-template-columns: 1fr;
  }
}

.member-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 122, 47, 0.13), transparent 34%),
    #08080b;
}

.member-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 11, 0.82);
  backdrop-filter: blur(18px);
}

.member-main {
  display: grid;
  gap: 22px;
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.member-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: end;
  min-height: 310px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 122, 47, 0.18), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
}

.member-hero h1 {
  max-width: 760px;
  margin: 10px 0;
  color: var(--text);
  font-size: clamp(38px, 7vw, 86px);
  line-height: 0.95;
}

.member-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(248, 243, 236, 0.66);
  font-size: 18px;
  line-height: 1.55;
}

.member-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 16px;
}

@media (max-width: 860px) {
  .member-hero,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .member-hero h1 {
    font-size: 46px;
  }
}

/* Premium product skin */
:root {
  --bg: #050506;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.095);
  --line: rgba(255, 255, 255, 0.105);
  --text: #fbf7ef;
  --muted: rgba(251, 247, 239, 0.62);
  --soft: rgba(251, 247, 239, 0.38);
  --gold: #d9a75c;
  --orange: #f57b2f;
  --violet: #b7a6ff;
  --cyan: #9edcd7;
  --green: #7dd49b;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
}

body {
  background:
    linear-gradient(180deg, #050506 0%, #0b0a0a 46%, #050506 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.shell {
  grid-template-columns: 254px minmax(0, 1fr);
}

.sidebar {
  gap: 22px;
  padding: 24px 14px;
  border-right-color: rgba(255, 255, 255, 0.075);
  background: rgba(5, 5, 6, 0.88);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.035);
}

.brand {
  padding: 0 8px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-color: rgba(245, 123, 47, 0.34);
  background: #f57b2f;
  box-shadow: none;
  color: #140b05;
  font-weight: 850;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0;
}

.brand small,
.nav-section,
.access-panel small {
  color: rgba(251, 247, 239, 0.42);
}

.nav-list {
  gap: 4px;
}

.nav-section {
  margin: 12px 10px 4px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.nav-item {
  min-height: 38px;
  padding: 0 10px;
  border-color: transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(251, 247, 239, 0.56);
  font-size: 13px;
}

.nav-item svg {
  width: 16px;
  height: 16px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: rgba(251, 247, 239, 0.86);
}

.nav-item.is-active {
  border-color: rgba(245, 123, 47, 0.26);
  background: rgba(245, 123, 47, 0.13);
  color: #fff7ec;
}

.access-panel {
  margin: auto 6px 0;
  padding: 14px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.access-panel .pulse {
  background: #f57b2f;
  box-shadow: 0 0 0 4px rgba(245, 123, 47, 0.12);
}

.main {
  padding: 26px clamp(22px, 3.2vw, 52px) 56px;
}

.topbar {
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.search {
  max-width: 440px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.search input {
  color: var(--text);
}

.icon-button,
.primary-action,
.ghost-button,
.hero-button,
.client-action,
.attention-item button {
  border-radius: 7px;
}

.primary-action {
  border-color: rgba(245, 123, 47, 0.88);
  background: #f57b2f;
  box-shadow: none;
  color: #130a05;
  font-weight: 760;
}

.primary-action:hover {
  background: #ff8b42;
}

.icon-button,
.client-action {
  border-color: rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(251, 247, 239, 0.82);
}

.topbar .icon-button {
  width: auto;
  min-width: 42px;
  padding: 0 12px;
}

.topbar .icon-fallback {
  font-size: 12px;
  font-weight: 650;
}

.topbar .icon-button svg + .icon-fallback {
  margin-left: -2px;
}

.product-header {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 14px;
  margin-bottom: 14px;
}

.title-block {
  min-height: 360px;
  padding: clamp(42px, 6vw, 76px);
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04)),
    #101010;
  box-shadow: none;
}

.title-block::after {
  display: none;
}

.title-block h1 {
  max-width: 680px;
  margin: 12px 0 18px;
  color: #fff9f0;
  font-size: clamp(58px, 7.2vw, 112px);
  font-weight: 780;
  line-height: 0.92;
}

.title-block p {
  max-width: 620px;
  color: rgba(251, 247, 239, 0.66);
  font-size: 19px;
}

.eyebrow {
  color: #f57b2f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.program-card,
.metric,
.panel,
.module-card,
.journey-step,
.content-tile,
.security-item,
.setup-guide,
.role-summary article,
.app-dialog form {
  border-color: rgba(255, 255, 255, 0.085);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.program-card {
  min-height: 360px;
  padding: 22px;
}

.program-card strong {
  color: #fff9f0;
  font-size: 23px;
}

.hub-strip {
  gap: 6px;
}

.hub-strip span,
.live-dot,
.status {
  border-radius: 999px;
}

.setup-guide {
  gap: 20px;
  margin-bottom: 14px;
  padding: 18px;
}

.setup-guide__intro h2 {
  font-size: 22px;
  font-weight: 720;
}

.setup-guide__intro p {
  color: rgba(251, 247, 239, 0.52);
  font-size: 14px;
}

.quick-card {
  min-height: 126px;
  padding: 15px;
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(5, 5, 6, 0.35);
}

.quick-card:hover {
  border-color: rgba(245, 123, 47, 0.32);
  background: rgba(245, 123, 47, 0.09);
  transform: translateY(-2px);
}

.quick-card svg {
  color: #f57b2f;
}

.quick-card strong {
  color: #fff9f0;
}

.quick-card span {
  color: rgba(251, 247, 239, 0.52);
}

.metric-row {
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  min-height: 112px;
  padding: 16px;
}

.metric > span,
.metric small {
  color: rgba(251, 247, 239, 0.46);
}

.metric strong {
  color: #fff9f0;
  font-size: 33px;
  font-weight: 760;
}

.operations-grid,
.admin-grid {
  gap: 12px;
}

.panel {
  padding: 18px;
}

.panel h2 {
  color: #fff9f0;
  font-size: 19px;
  font-weight: 720;
}

.panel-head {
  margin-bottom: 16px;
}

.admin-row,
.attention-item,
.client-row,
.timeline-item,
.category-pill {
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(5, 5, 6, 0.27);
}

.admin-row:hover,
.client-row:hover,
.attention-item:hover {
  border-color: rgba(245, 123, 47, 0.2);
  background: rgba(255, 255, 255, 0.055);
}

.section-title.compact h1 {
  max-width: 760px;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 760;
  line-height: 0.98;
}

.role-summary article {
  min-height: 86px;
}

.role-summary strong {
  font-weight: 760;
}

.login-screen {
  background: #050506;
}

.login-card {
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    #0d0d0e;
  box-shadow: none;
}

.member-shell {
  background: #050506;
}

.member-hero {
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    #101010;
}

@media (max-width: 980px) {
  .product-header {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 240px;
  }
}

/* Damian Richter CI pass */
:root {
  --bg: #151317;
  --surface: rgba(52, 49, 55, 0.78);
  --surface-strong: rgba(255, 252, 255, 0.1);
  --line: rgba(255, 252, 255, 0.13);
  --text: #fffcff;
  --muted: rgba(255, 252, 255, 0.76);
  --soft: rgba(255, 252, 255, 0.54);
  --orange: #f08233;
  --violet: #5b46e3;
  --cyan: #0c66ae;
  --gold: #cc7722;
  --radius: 24px;
  font-family: "aktiv-grotesk", "Arial", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: #151317;
  color: var(--text);
}

.shell {
  display: block;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, auto);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  height: 82px;
  padding: 0 14px;
  border-right: 0;
  border-bottom: 1px solid rgba(255, 252, 255, 0.08);
  background: rgba(21, 19, 23, 0.96);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 176px;
  padding: 0;
}

.brand-mark {
  display: none;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #fffcff;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.brand-wordmark span {
  font-weight: 100;
}

.brand-wordmark strong {
  font-weight: 900;
}

.brand > span:not(.brand-wordmark) {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-section,
.access-panel,
.nav-list .nav-item:not(.nav-primary) {
  display: none;
}

.nav-item {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: #fffcff;
  font-size: 15px;
  font-weight: 400;
}

.nav-item svg {
  display: none;
}

.nav-item:hover {
  background: rgba(255, 252, 255, 0.08);
  color: #fffcff;
}

.nav-item.is-active {
  border: 0;
  background: #fffcff;
  color: #343137;
  font-weight: 800;
}

.main {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 22px 0 70px;
}

.topbar {
  display: grid;
  grid-template-columns: 210px minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.area-switcher {
  display: block;
}

.area-switcher span {
  display: none;
}

.area-switcher select {
  min-height: 44px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(255, 252, 255, 0.1);
  border-radius: 100px;
  outline: none;
  background: #343137;
  color: #fffcff;
  font-weight: 750;
}

.search {
  min-height: 44px;
  max-width: none;
  border: 1px solid rgba(255, 252, 255, 0.1);
  border-radius: 100px;
  background: rgba(255, 252, 255, 0.06);
}

.search input {
  color: #fffcff;
  font-size: 15px;
}

.top-actions {
  gap: 10px;
}

.topbar .icon-button,
.primary-action,
.ghost-button,
.hero-button {
  min-height: 44px;
  border-radius: 100px;
}

.primary-action {
  min-width: 132px;
  border: 0;
  background: #fffcff;
  color: #343137;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.primary-action:hover {
  background: #ffffff;
  color: #343137;
}

.topbar .icon-button,
.icon-button,
.client-action {
  border-color: rgba(255, 252, 255, 0.12);
  background: rgba(255, 252, 255, 0.06);
  color: #fffcff;
}

.product-header {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 14px;
  margin-bottom: 14px;
}

.workspace-hub {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.workspace-hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(21, 19, 23, 0.98) 0%, rgba(21, 19, 23, 0.76) 48%, rgba(21, 19, 23, 0.22) 100%),
    url("./assets/damian-hero.webp") 74% 42% / cover no-repeat,
    #343137;
}

.workspace-hero-copy span,
.workspace-kicker {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 252, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-hero-copy h1 {
  max-width: 720px;
  margin: 0 0 14px;
  color: #fffcff;
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 100;
  line-height: 1.05;
  text-transform: uppercase;
}

.workspace-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 252, 255, 0.82);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.35;
}

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

.workspace-card {
  display: grid;
  gap: 18px;
  min-height: 188px;
  padding: 24px;
  border: 1px solid rgba(255, 252, 255, 0.12);
  border-radius: 24px;
  background: #343137;
  color: #fffcff;
  text-align: left;
}

.workspace-card:hover {
  border-color: rgba(255, 252, 255, 0.26);
  background: rgba(52, 49, 55, 0.86);
}

.workspace-card strong {
  max-width: 500px;
  color: #fffcff;
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 100;
  line-height: 1.1;
  text-transform: uppercase;
}

.workspace-card em {
  max-width: 520px;
  color: rgba(255, 252, 255, 0.74);
  font-size: 16px;
  font-style: normal;
  line-height: 1.45;
}

.workspace-actions {
  align-self: end;
  width: fit-content;
  padding: 12px 18px;
  border-radius: 100px;
  background: #fffcff;
  color: #343137;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.title-block {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: clamp(46px, 7vw, 92px) clamp(34px, 5vw, 62px);
  border: 0;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(21, 19, 23, 0.95) 0%, rgba(21, 19, 23, 0.72) 48%, rgba(21, 19, 23, 0.22) 100%),
    #343137;
  box-shadow: none;
}

.title-block > * {
  position: relative;
  z-index: 3;
}

.title-block::before {
  position: relative;
  z-index: 3;
  content: "DAMIAN RICHTER PLATFORM";
  display: block;
  margin-bottom: 18px;
  color: #fffcff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.title-block::after {
  display: none;
}

.hero-ci-image {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.68;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 16%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 16%, #000 42%);
}

.title-block h1 {
  position: relative;
  z-index: 3;
  max-width: 880px;
  margin: 0 0 16px;
  color: #fffcff;
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 100;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}

.title-block h1::first-line {
  font-weight: 100;
}

.title-block p {
  position: relative;
  z-index: 3;
  max-width: 650px;
  color: rgba(255, 252, 255, 0.9);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.38;
}

.title-block .eyebrow {
  display: none;
}

.program-card.member-preview {
  display: flex;
  gap: 16px;
  min-height: 330px;
  margin-top: 0;
  padding: 22px;
  border: 0;
  border-radius: 24px;
  background: #343137;
  box-shadow: none;
}

.program-card__top {
  grid-column: 1 / -1;
}

.program-card strong {
  color: #fffcff;
  font-size: 28px;
  font-weight: 850;
}

.member-preview__copy {
  max-width: 620px;
  color: rgba(255, 252, 255, 0.78);
  font-size: 18px;
  line-height: 1.45;
}

.live-dot,
.hub-strip span,
.status {
  border: 0;
  border-radius: 100px;
}

.live-dot {
  background: #fffcff;
  color: #343137;
  font-weight: 850;
  text-transform: uppercase;
}

.program-progress {
  background: rgba(255, 252, 255, 0.15);
}

.program-progress span {
  background: #f08233;
}

.hub-strip {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
}

.hub-strip span {
  min-height: 54px;
  padding: 0 20px;
  background: rgba(255, 252, 255, 0.08);
  color: #fffcff;
}

.setup-guide,
.metric,
.panel,
.module-card,
.journey-step,
.content-tile,
.security-item,
.role-summary article,
.app-dialog form {
  border: 0;
  border-radius: 24px;
  background: #343137;
  box-shadow: none;
}

.setup-guide {
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  align-items: start;
  padding: 22px;
}

.setup-guide__intro {
  display: grid;
  align-items: start;
}

.eyebrow,
.setup-guide__intro .eyebrow {
  color: #f08233;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.setup-guide__intro h2 {
  max-width: 420px;
  color: #fffcff;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.setup-guide__intro p {
  color: rgba(255, 252, 255, 0.72);
  font-size: 16px;
}

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

.quick-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(255, 252, 255, 0.1);
  border-radius: 24px;
  background: rgba(21, 19, 23, 0.5);
}

.quick-card:hover {
  border-color: rgba(240, 130, 51, 0.64);
  background: rgba(240, 130, 51, 0.18);
  transform: translateY(-2px);
}

.quick-card svg {
  color: #f08233;
}

.quick-card strong {
  color: #fffcff;
  font-size: 16px;
  font-weight: 850;
  text-transform: uppercase;
}

.quick-card span {
  color: rgba(255, 252, 255, 0.74);
  font-size: 15px;
}

.metric-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.metric {
  min-height: 108px;
  padding: 18px;
}

.metric > span,
.metric small {
  color: rgba(255, 252, 255, 0.68);
  font-size: 14px;
}

.metric strong {
  color: #fffcff;
  font-size: 34px;
  font-weight: 100;
}

.operations-grid,
.admin-grid {
  gap: 18px;
}

.panel {
  padding: 26px;
}

.panel h2,
.section-title.compact h1 {
  color: #fffcff;
  font-weight: 100;
  text-transform: uppercase;
}

.panel h2 {
  font-size: 32px;
  line-height: 1.1;
}

.admin-row,
.attention-item,
.client-row,
.timeline-item,
.category-pill {
  border: 1px solid rgba(255, 252, 255, 0.1);
  border-radius: 18px;
  background: rgba(21, 19, 23, 0.42);
}

.section-title.compact h1 {
  max-width: 950px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.08;
}

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

  .brand {
    justify-content: center;
  }

  .nav-list {
    justify-content: start;
  }

  .main {
    width: min(100% - 28px, 1200px);
  }

  .topbar,
  .setup-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .title-block {
    min-height: 520px;
    border-radius: 20px 20px 0 0;
  }

  .program-card.member-preview,
  .metric-row,
  .quick-actions-grid,
  .role-summary {
    grid-template-columns: 1fr;
  }
}

/* Strict Damian Richter CI: no interpreted accent palette */
:root {
  --bg: #151317;
  --surface: #343137;
  --surface-strong: #343137;
  --line: rgba(255, 252, 255, 0.12);
  --text: #fffcff;
  --muted: rgba(255, 252, 255, 0.74);
  --soft: rgba(255, 252, 255, 0.5);
  --gold: #fffcff;
  --orange: #fffcff;
  --violet: #343137;
  --cyan: #096eb0;
  --green: #00b67a;
  --danger: #fffcff;
  --radius: 24px;
  font-family: "aktiv-grotesk", Arial, "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, sans-serif;
}

html,
body,
.shell,
.member-shell,
.login-screen {
  background: #151317;
  color: #fffcff;
}

.sidebar,
.member-topbar {
  background: #151317;
  border-color: rgba(255, 252, 255, 0.08);
}

.brand-wordmark,
.nav-item,
.title-block h1,
.title-block p,
.panel h2,
.section-title.compact h1,
.setup-guide__intro h2,
.quick-card strong,
.metric strong,
.program-card strong,
.admin-row strong,
.client-row strong,
.attention-item strong {
  color: #fffcff;
}

.nav-item.is-active,
.primary-action,
.live-dot,
.topbar .primary-action,
.hero-button {
  background: #fffcff;
  color: #343137;
  border-color: #fffcff;
  box-shadow: none;
}

.nav-item:hover,
.topbar .icon-button,
.icon-button,
.client-action,
.ghost-button,
.search,
.area-switcher select,
.hub-strip span {
  background: rgba(255, 252, 255, 0.06);
  border-color: rgba(255, 252, 255, 0.12);
  color: #fffcff;
  box-shadow: none;
}

.title-block,
.workspace-hero-copy,
.workspace-card,
.program-card.member-preview,
.setup-guide,
.metric,
.panel,
.module-card,
.journey-step,
.content-tile,
.security-item,
.role-summary article,
.app-dialog form,
.login-card,
.member-hero {
  background: #343137;
  border-color: rgba(255, 252, 255, 0.1);
  box-shadow: none;
}

.title-block {
  background: linear-gradient(90deg, rgba(52, 49, 55, 0.98) 0%, rgba(52, 49, 55, 0.74) 52%, rgba(52, 49, 55, 0.2) 100%), #343137;
}

.hero-ci-image {
  opacity: 0.62;
}

.eyebrow,
.setup-guide__intro .eyebrow,
.title-block::before,
.program-label,
.metric > span,
.metric small,
.quick-card span,
.setup-guide__intro p,
.member-preview__copy,
.admin-row span,
.client-row span,
.attention-item p {
  color: rgba(255, 252, 255, 0.72);
}

.quick-card,
.admin-row,
.attention-item,
.client-row,
.timeline-item,
.category-pill,
.empty-state {
  background: rgba(21, 19, 23, 0.42);
  border-color: rgba(255, 252, 255, 0.1);
}

.quick-card:hover,
.workspace-card:hover,
.admin-row:hover,
.client-row:hover,
.attention-item:hover,
.category-pill.is-selected {
  background: rgba(255, 252, 255, 0.08);
  border-color: rgba(255, 252, 255, 0.22);
}

.workspace-actions {
  background: #fffcff;
  color: #343137;
}

.quick-card svg,
.content-tile svg,
.security-item svg,
.hub-strip svg,
.topbar svg {
  color: #fffcff;
  background: transparent;
}

.program-progress span,
.mini-bar span {
  background: #fffcff;
}

.program-progress span,
.mini-bar span {
  display: block;
}

.status,
.live-dot {
  color: #343137;
  background: #fffcff;
}

a {
  color: #096eb0;
}
