:root {
  color-scheme: dark;
  --bg: #150b18;
  --surface: #211327;
  --surface-raised: #2c1932;
  --ink: #fbf7f9;
  --muted: rgba(251, 247, 249, 0.7);
  --line: #5a445e;
  --accent: #d8f24e;
  --focus: #d8f24e;
  --danger: #f4a98f;
  --success: #79d8be;
  --font-sans: "Schibsted Grotesk Variable", "Schibsted Grotesk", system-ui, sans-serif;
  --font-display: "Newsreader Variable", "Newsreader", Georgia, serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, monospace;
  --r-sm: 20px 20px 20px 6px;
  --r-md: 34px 34px 34px 10px;
  --r-lg: 48px 48px 48px 14px;
  --r-pill: 999px 999px 999px 8px;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(120% 130% at 84% -10%, #5a2a64, #2e1533 56%, #231428 92%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(closest-side at 88% 4%, rgb(216 242 78 / 16%), transparent 74%),
    radial-gradient(closest-side at 12% 48%, rgb(196 132 214 / 14%), transparent 78%);
}

main {
  position: relative;
  min-height: 100vh;
}

.dashboard-screen {
  display: grid;
  padding: 2rem 1rem;
  place-items: center;
}

.panel {
  width: min(100%, 38rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgb(33 19 39 / 92%);
  box-shadow: 0 2rem 5rem rgb(0 0 0 / 25%);
}

.wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 200;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark img {
  width: 2rem;
  height: 2rem;
}

.auth-screen {
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-right: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-right));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  padding-left: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-left));
}

.auth-frame {
  width: min(100%, 72rem);
  margin-inline: auto;
}

.auth-topbar {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgb(167 186 196 / 18%);
}

.back-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.back-link::before {
  margin-right: 0.45rem;
  content: "←";
}

.back-link:hover {
  color: var(--ink);
}

.auth-layout {
  display: grid;
  min-height: calc(100vh - 6.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.82fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.auth-context {
  max-width: 34rem;
}

.context-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.context-kicker::before {
  width: 2rem;
  height: 0.65rem;
  background:
    no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 12'%3E%3Cpath d='M1 6c2-5 4-5 6 0s4 5 6 0 4-2 6 0h16' fill='none' stroke='%2355d0ca' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  content: "";
}

.auth-context h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  font-family: var(--font-display);
  font-weight: 200;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.context-copy {
  max-width: 31rem;
  margin: 1.4rem 0 0;
  font-size: 1.05rem;
}

.auth-steps {
  display: grid;
  gap: 0;
  margin: 2.25rem 0 0;
  padding: 0;
}

.auth-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgb(167 186 196 / 18%);
  list-style: none;
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border: 1px solid rgb(216 242 78 / 30%);
  border-radius: 50%;
  color: var(--accent);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-steps li:not(:last-child)::after {
  position: absolute;
  top: 2.55rem;
  bottom: -0.35rem;
  left: 0.8rem;
  width: 1px;
  background: rgb(216 242 78 / 24%);
  content: "";
}

.auth-steps strong,
.auth-steps small {
  display: block;
}

.auth-steps strong {
  font-size: 0.9rem;
  font-weight: 650;
}

.auth-steps small {
  margin-top: 0.12rem;
  color: var(--muted);
  line-height: 1.45;
}

.beta-boundary {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgb(44 25 50 / 78%);
}

.beta-boundary strong,
.beta-boundary span,
.beta-boundary small {
  display: block;
}

.beta-boundary strong {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.beta-boundary span {
  margin-top: 0.35rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.beta-boundary small {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.45;
}

.auth-panel {
  width: 100%;
  padding: clamp(1.5rem, 5vw, 2.6rem);
  border-color: rgb(255 255 255 / 15%);
  background: linear-gradient(158deg, rgb(255 255 255 / 11%), rgb(255 255 255 / 5%));
  box-shadow:
    0 50px 100px -50px rgb(0 0 0 / 80%),
    inset 0 1px 0 rgb(255 255 255 / 20%);
  backdrop-filter: blur(22px);
}

.auth-panel::before {
  display: block;
  width: 4rem;
  height: 2px;
  margin-bottom: 1.35rem;
  background: var(--accent);
  content: "";
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-family: var(--font-display);
  font-weight: 200;
}

.auth-panel h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 3.15rem);
}

.panel > h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1rem;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.auth-intro {
  margin: 0 0 1.35rem;
}

.panel strong,
.panel dt,
.panel dd {
  color: var(--ink);
}

a {
  color: var(--accent);
}

form {
  display: grid;
  gap: 1.1rem;
}

.field-group {
  display: grid;
  gap: 0.35rem;
}

label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.field-hint {
  margin: -0.1rem 0 0;
  color: #91a7b2;
  font-size: 0.76rem;
  line-height: 1.4;
}

input,
textarea,
select {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  background: rgb(15 7 18 / 58%);
  font: inherit;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #42647b;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.password-control {
  position: relative;
}

.password-control input {
  padding-right: 4.6rem;
}

button.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-color: transparent;
  color: var(--muted);
  background: transparent;
  font-size: 0.78rem;
  transform: translateY(-50%);
}

button.password-toggle:hover {
  color: var(--ink);
  background: var(--surface-raised);
}

textarea {
  resize: vertical;
}

button {
  min-height: 3.15rem;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  color: #231428;
  background: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-panel form > button[type="submit"] {
  width: 100%;
  margin-top: 0.45rem;
}

.auth-panel > #google-sign-in {
  width: 100%;
  margin-top: 0;
}

.oauth-choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.oauth-choice::before,
.oauth-choice::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

button.secondary {
  color: var(--ink);
  background: transparent;
}

button.quiet {
  border-color: transparent;
  color: var(--muted);
  background: transparent;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.aside,
.message {
  min-height: 1.5rem;
  font-size: 0.9rem;
}

.aside {
  margin-bottom: 0;
}

.form-disclosure {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-disclosure strong {
  color: var(--ink);
}

.message:not(:empty) {
  margin: 1.15rem 0 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgb(10 20 31 / 65%);
}

.message[data-kind="error"] {
  border-color: rgb(243 163 140 / 38%);
  color: var(--danger);
}

.message[data-kind="success"] {
  border-color: rgb(117 210 173 / 35%);
  color: var(--success);
}

.message[data-kind="info"]:not(:empty) {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.actions button {
  margin-top: 0;
}

.verification-help {
  margin: -0.35rem 0 1.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.loading-state {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.loading-state p {
  margin: 0;
}

.settle-loader {
  position: relative;
  display: block;
  width: 100%;
  height: 0.7rem;
  overflow: hidden;
}

.settle-loader::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--line);
  content: "";
}

.settle-loader::after {
  position: absolute;
  top: calc(50% - 2px);
  left: 0;
  width: 36%;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  animation: settle-progress 1.6s ease-in-out infinite alternate;
}

.noscript-message {
  position: relative;
  max-width: 38rem;
  margin: -5rem auto 2rem;
  padding: 1rem;
  border: 1px solid var(--danger);
  border-radius: 0.5rem;
  color: var(--ink);
  background: var(--surface);
  text-align: center;
}

@keyframes settle-progress {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(178%);
  }
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 1.5rem 0;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgb(15 7 18 / 32%);
}

.facts div {
  min-width: 0;
  padding: 0.8rem;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface-raised);
}

.facts dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts dd {
  overflow: hidden;
  margin: 0.35rem 0 0;
  text-overflow: ellipsis;
}

.readiness {
  display: grid;
  gap: 0.4rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgb(15 7 18 / 32%);
  list-style: none;
}

.readiness-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface-raised);
}

.readiness-item span:first-child {
  display: grid;
  gap: 0.2rem;
}

.readiness-item small {
  color: var(--muted);
  line-height: 1.35;
}

.status {
  flex: none;
  padding: 0.25rem 0.45rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.status.ready {
  color: var(--success);
  background: rgb(117 210 173 / 10%);
}

.status.pending {
  color: #e7c77b;
  background: rgb(231 199 123 / 10%);
}

.dashboard-panel {
  width: min(100%, 58rem);
}

.preview-cta {
  margin-top: 0.5rem;
}

.activity-list {
  display: grid;
  gap: 0.4rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgb(15 7 18 / 32%);
  list-style: none;
}

.activity-item,
.lead-item {
  padding: 0.85rem;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface-raised);
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lead-item {
  display: grid;
  gap: 0.35rem;
}

.lead-item p,
.lead-item label {
  margin: 0;
}

button.compact {
  min-height: 2.75rem;
  margin: 0;
  padding: 0.35rem 0.55rem;
}

@media (max-width: 36rem) {
  .facts {
    grid-template-columns: 1fr;
  }

  .readiness-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-screen {
    padding-right: max(0.75rem, env(safe-area-inset-right));
    padding-left: max(0.75rem, env(safe-area-inset-left));
  }

  .auth-topbar {
    min-height: 4rem;
  }

  .auth-panel {
    padding: 1.35rem;
  }

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

  .actions button {
    width: 100%;
  }
}

@media (max-width: 52rem) {
  .auth-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2.5rem 4rem;
  }

  .auth-panel {
    order: -1;
  }

  .auth-context {
    max-width: 38rem;
  }

  .auth-context h2 {
    max-width: 16ch;
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .context-copy {
    font-size: 0.96rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .settle-loader::after {
    width: 100%;
    animation: none;
  }
}

/* Founder workspace: one dark frame around a calm, continuous work surface. */
.dashboard-screen {
  display: block;
  min-height: 100vh;
  padding: 0;
}

.dashboard-panel {
  width: 100%;
}

.dashboard-panel > .skip {
  position: fixed;
  z-index: 50;
  top: max(0.75rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: var(--r-pill);
  color: #231428;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}

.dashboard-panel > .skip:focus {
  transform: none;
}

.dashboard-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: min(17.5rem, 24vw) minmax(0, 1fr);
  background: var(--bg);
}

.dashboard-rail {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-width: 0;
  min-height: 100vh;
  max-height: 100vh;
  flex-direction: column;
  padding-top: max(1.6rem, env(safe-area-inset-top));
  padding-right: 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  padding-left: max(1.25rem, env(safe-area-inset-left));
  overflow-y: auto;
  border-right: 1px solid rgb(251 247 249 / 12%);
  background:
    radial-gradient(circle at 15% 6%, rgb(216 242 78 / 12%), transparent 17rem),
    linear-gradient(160deg, #231428, #150b18 74%);
}

.rail-company {
  display: grid;
  gap: 0.2rem;
  margin-top: 2.5rem;
  padding: 1rem 0.2rem 1.25rem;
  border-bottom: 1px solid rgb(251 247 249 / 12%);
}

.rail-company strong {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.1;
  text-overflow: ellipsis;
}

.rail-company > span:last-child,
.rail-label {
  color: var(--muted);
  font-size: 0.72rem;
}

.rail-label {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workspace-nav {
  display: grid;
  gap: 0.2rem;
  margin-top: 1.25rem;
}

.workspace-nav a {
  display: grid;
  min-height: 2.75rem;
  grid-template-columns: 2rem 1fr;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: var(--r-sm);
  color: var(--muted);
  text-decoration: none;
}

.workspace-nav a:hover,
.workspace-nav a:focus-visible,
.workspace-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgb(251 247 249 / 8%);
}

.workspace-nav a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--accent);
}

.workspace-nav span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

button.rail-sign-out {
  min-height: 2.75rem;
  margin-top: auto;
  border-color: rgb(251 247 249 / 18%);
  color: var(--ink);
  background: transparent;
}

.dashboard-content {
  min-width: 0;
}

.dashboard-hero {
  padding-top: clamp(3rem, 6vw, 6.5rem);
  padding-right: max(clamp(1.5rem, 5vw, 5.5rem), env(safe-area-inset-right));
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  padding-left: max(clamp(1.5rem, 5vw, 5.5rem), env(safe-area-inset-left));
  background:
    radial-gradient(circle at 86% 6%, rgb(216 242 78 / 17%), transparent 23rem),
    radial-gradient(circle at 6% 88%, rgb(196 132 214 / 12%), transparent 22rem),
    linear-gradient(148deg, #3a1b41, #231428 58%, #150b18);
}

.hero-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.dashboard-hero h1 {
  max-width: 13ch;
  margin-bottom: 0.9rem;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  line-height: 0.92;
}

.dashboard-hero .lede {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-action {
  display: inline-flex;
  min-height: 3rem;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: var(--r-pill);
  color: #231428;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.provisioning-summary {
  max-width: 58rem;
  margin: 2.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgb(251 247 249 / 16%);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.55;
}

.dashboard-hero .facts {
  max-width: 58rem;
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-hero .facts div {
  padding: 0.8rem 1rem;
  border-left: 1px solid rgb(251 247 249 / 15%);
  border-radius: 0;
  background: transparent;
}

.dashboard-hero .facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.dashboard-hero .facts dd,
.dashboard-hero .facts dt {
  color: var(--ink);
}

.dashboard-hero .facts dd {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

.dashboard-hero .facts dt {
  color: var(--muted);
}

.workspace {
  --focus: #7a3e86;
  --workspace-ink: #231428;
  --workspace-muted: #6e5c6f;
  --workspace-line: #ded4db;
  color: var(--workspace-ink);
  background: #f4eff2;
}

.workspace p,
.workspace label {
  color: var(--workspace-muted);
}

.workspace strong,
.workspace h2,
.workspace h3,
.workspace summary {
  color: var(--workspace-ink);
}

.workspace a {
  color: #6f287b;
}

.workspace-section {
  width: min(100%, 92rem);
  margin-inline: auto;
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-right: max(clamp(1.5rem, 5vw, 5.5rem), env(safe-area-inset-right));
  padding-bottom: clamp(4rem, 7vw, 7rem);
  padding-left: max(clamp(1.5rem, 5vw, 5.5rem), env(safe-area-inset-left));
  scroll-margin-top: 1rem;
}

.workspace-section + .workspace-section {
  border-top: 1px solid var(--workspace-line);
}

.section-heading {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.section-heading h2 {
  max-width: 17ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 200;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.section-heading > p {
  margin: 0;
}

.workspace .section-index {
  margin: 0 0 0.75rem;
  color: #7a3e86;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.readiness-columns,
.activity-columns,
.handback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
}

.readiness-group h3,
.activity-columns h3,
.access-lists h3,
.release-history h3,
.inventory-block h3,
.danger-zone h3 {
  margin: 0 0 0.8rem;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workspace .readiness,
.workspace .activity-list {
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.workspace .readiness-item,
.workspace .activity-item,
.workspace .lead-item,
.workspace .activity-list > li {
  border-bottom: 1px solid var(--workspace-line);
  border-radius: 0;
  background: transparent;
}

.workspace .readiness-item {
  min-height: 5rem;
  padding: 0.9rem 0;
}

.workspace .readiness-item small {
  max-width: 42rem;
  color: var(--workspace-muted);
}

.workspace .readiness-item > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.workspace .status {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-weight: 700;
}

.workspace .status::before {
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid currentcolor;
  border-radius: 50%;
  content: "";
}

.workspace .status.ready {
  color: #1f6655;
  background: rgb(39 112 95 / 10%);
}

.workspace .status.ready::before {
  background: currentcolor;
}

.workspace .status.pending {
  color: #8b4b18;
  background: rgb(156 66 34 / 9%);
}

.workspace .readiness-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.25rem;
  border-top: 1px solid var(--workspace-line);
}

.readiness-inline .readiness-item {
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 1.25rem;
  border-right: 1px solid var(--workspace-line);
}

.readiness-inline .readiness-item:last-child {
  border-right: 0;
}

.site-path-note {
  margin: 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid #7a3e86;
  background: #ebe2e8;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.site-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: 3.25rem;
}

.workspace-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0 0 2rem;
  border: 0;
}

.workspace-form fieldset + fieldset {
  padding-top: 2rem;
  border-top: 1px solid var(--workspace-line);
}

.workspace-form legend {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0;
  color: var(--workspace-ink);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
}

.workspace-form .field-wide {
  grid-column: 1 / -1;
}

.workspace input,
.workspace textarea,
.workspace select {
  border-color: #cfc2cb;
  color: var(--workspace-ink);
  background: #fff;
}

.workspace input:hover,
.workspace textarea:hover,
.workspace select:hover {
  border-color: #7a3e86;
}

.workspace button {
  border-color: #231428;
  color: #fbf7f9;
  background: #231428;
}

.workspace button:hover {
  background: #3a2141;
}

.workspace button.quiet {
  color: var(--workspace-ink);
  background: transparent;
}

.workspace button.compact {
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
}

.preview-column {
  position: sticky;
  top: 2rem;
}

.site-preview {
  min-height: 22rem;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: 0 2rem 4rem -3rem rgb(35 20 40 / 55%);
}

.site-preview small {
  display: block;
  margin-bottom: 3.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-preview h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
}

.site-preview h4 {
  margin-bottom: 0.4rem;
}

.publish-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--workspace-line);
}

.publish-block p,
.publish-block strong,
.publish-block span {
  display: block;
  margin: 0;
}

.publish-block span {
  margin-top: 0.25rem;
  color: var(--workspace-muted);
  font-size: 0.8rem;
}

.publish-block button {
  min-width: 9rem;
  margin: 0;
}

.release-history {
  margin-top: 1.5rem;
}

.insight-strip {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--workspace-line);
}

.insight-strip span {
  color: #7a3e86;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-strip strong {
  font-weight: 600;
}

.activity-columns > div,
.access-lists > div {
  min-width: 0;
}

.workspace .activity-list > li {
  min-height: 3.25rem;
  padding: 0.85rem 0;
  overflow-wrap: anywhere;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.invite-form {
  padding: 1.5rem;
  border-radius: var(--r-md);
  background: #ebe2e8;
}

.invite-form button {
  margin-top: 0.25rem;
}

.access-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2rem;
}

.entitlements,
.support-diagnostics {
  margin-top: 2.5rem;
  border-top: 1px solid var(--workspace-line);
}

.entitlements summary,
.support-diagnostics summary {
  min-height: 3.25rem;
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 700;
}

.entitlements p {
  margin-top: 0;
}

.inventory-block,
.danger-zone {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--r-md);
}

.inventory-block {
  background: #ebe2e8;
}

.danger-zone {
  border: 1px solid rgb(156 66 34 / 34%);
  background: rgb(244 169 143 / 12%);
}

.inventory-block p,
.danger-zone p {
  margin-bottom: 1.5rem;
}

.inventory-block button,
.danger-zone button {
  margin-top: 0;
}

.danger-zone button.danger {
  border-color: #9c4222;
  color: #fff;
  background: #9c4222;
}

.danger-zone button.danger:hover {
  background: #7f3219;
}

.support-diagnostics pre {
  max-height: 24rem;
  padding: 1rem;
  overflow: auto;
  border-radius: var(--r-sm);
  color: #fbf7f9;
  background: #231428;
  font: 0.75rem / 1.55 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dashboard-message:not(:empty) {
  position: fixed;
  z-index: 30;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  width: min(28rem, calc(100% - 2.5rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgb(251 247 249 / 18%);
  border-radius: var(--r-md);
  color: var(--ink);
  background: #231428;
  box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 35%);
}

@media (max-width: 68rem) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-rail {
    position: relative;
    display: grid;
    min-height: auto;
    max-height: none;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem 2rem;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-right: max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-right));
    padding-bottom: 1rem;
    padding-left: max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-left));
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgb(251 247 249 / 12%);
  }

  .rail-company {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .rail-company strong {
    font-size: 1.05rem;
  }

  .workspace-nav {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
  }

  button.rail-sign-out {
    margin: 0;
  }

  .preview-column {
    position: static;
  }
}

@media (max-width: 56rem) {
  .section-heading,
  .site-editor,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    gap: 1rem;
  }

  .section-heading > p {
    max-width: 40rem;
  }

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

  .readiness-inline .readiness-item {
    border-right: 0;
  }
}

@media (max-width: 42rem) {
  .dashboard-rail {
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
  }

  .rail-company {
    display: none;
  }

  .workspace-nav {
    display: flex;
    gap: 0.3rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .workspace-nav a {
    min-width: max-content;
    padding-inline: 0.75rem;
  }

  .workspace-nav a[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--accent);
  }

  .dashboard-hero {
    padding-top: 3.5rem;
  }

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

  .dashboard-hero h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .hero-action {
    width: 100%;
  }

  .dashboard-hero .facts,
  .readiness-columns,
  .activity-columns,
  .handback-grid,
  .access-lists,
  .workspace-form fieldset {
    grid-template-columns: 1fr;
  }

  .dashboard-hero .facts div,
  .dashboard-hero .facts div:first-child {
    padding: 0.8rem 0;
    border-top: 1px solid rgb(251 247 249 / 15%);
    border-left: 0;
  }

  .dashboard-hero .facts div:first-child {
    border-top: 0;
  }

  .workspace-form .field-wide {
    grid-column: auto;
  }

  .publish-block,
  .workspace .activity-item {
    align-items: stretch;
    flex-direction: column;
  }

  .publish-block button,
  .workspace button,
  .inventory-block button,
  .danger-zone button {
    width: 100%;
  }

  .insight-strip {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
