:root {
  --page: #f5f5f2;
  --paper: #fbfaf8;
  --ink: #08090a;
  --muted: #555652;
  --soft: #888985;
  --line: rgba(10, 11, 12, 0.12);
  --line-strong: rgba(10, 11, 12, 0.22);
  --dark: #080a0d;
  --dark-soft: #10151a;
  --red: #be1622;
  --red-bright: #e12531;
  --live: #1b9e75;
  --left-rail: 88px;
  --right-rail: 68px;
  --radius: 9px;
  --shadow: 0 24px 58px rgba(16, 18, 20, 0.08);
  --font: "Segoe UI Light", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font);
}

body {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
}

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

button,
input,
select,
textarea {
  color: inherit;
}

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

button {
  border: 0;
}

svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin: 0 0 14px;
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

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

.button-dark {
  color: #fff;
  background: var(--dark);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.button-dark:hover,
.button-dark:focus-visible {
  background: #23272b;
}

.button-light {
  color: var(--dark);
  background: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.button-light:hover,
.button-light:focus-visible {
  background: #efefed;
}

.button-outline {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.62);
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: rgba(10, 11, 12, 0.42);
  background: #fff;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #050505;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.23em;
  line-height: 1;
}

.wordmark span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.wordmark--light {
  color: #fff;
}

.wordmark--light span {
  color: rgba(255, 255, 255, 0.56);
}

/* Login */

.login-body {
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(circle at 14% 10%, rgba(219, 24, 38, 0.18), transparent 28rem),
    linear-gradient(118deg, rgba(5, 6, 8, 0.98) 0%, rgba(8, 10, 13, 0.92) 50%, rgba(4, 5, 7, 0.96) 100%),
    url("/assets/plasma-core.png") 16% 70% / min(58vw, 880px) auto no-repeat,
    #050607;
}

.login-body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(255, 255, 255, 0.055) 50%, transparent 50.05%),
    linear-gradient(0deg, transparent 49.95%, rgba(255, 255, 255, 0.035) 50%, transparent 50.05%);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.login-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 clamp(24px, 4vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 8, 10, 0.58);
  backdrop-filter: blur(18px);
}

.login-header nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.login-header nav a {
  transition: color 160ms ease;
}

.login-header nav a:hover,
.login-header nav a:focus-visible {
  color: #fff;
}

.login-header nav span {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.login-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  gap: clamp(48px, 7vw, 116px);
  align-items: center;
  width: min(100% - 48px, 1450px);
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: clamp(46px, 7vh, 92px) 0;
}

.login-story {
  align-self: end;
  max-width: 700px;
  padding-bottom: clamp(30px, 7vh, 96px);
}

.login-story .eyebrow {
  color: #f05a63;
}

.login-story h1 {
  margin: 0;
  font-size: clamp(52px, 6.6vw, 96px);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.login-story > p:not(.eyebrow) {
  max-width: 590px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.5;
}

.login-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.12);
}

.login-stats span {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.56);
  background: rgba(7, 9, 11, 0.84);
  font-size: 12px;
}

.login-stats strong {
  color: #fff;
  font-size: 22px;
  font-weight: 500;
}

.login-card {
  justify-self: end;
  width: min(100%, 510px);
  padding: clamp(36px, 5vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(14, 17, 21, 0.84);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(24px);
}

.login-card .eyebrow {
  color: #f05a63;
}

.login-card h2 {
  margin: 0;
  font-size: clamp(36px, 3.6vw, 51px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.login-card__intro {
  margin: 18px 0 34px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

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

.login-form label {
  display: grid;
  gap: 9px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 600;
}

.login-form input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  font-size: 16px;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  font-weight: 300;
}

.login-form input:focus {
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.login-form .button {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
}

.form-message {
  margin: -4px 0 0;
  padding: 11px 13px;
  border-radius: 4px;
  font-size: 13px;
}

.form-message--error {
  color: #ffced1;
  background: rgba(225, 37, 49, 0.14);
  border: 1px solid rgba(225, 37, 49, 0.32);
}

.login-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

/* Application chrome */

.app-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 8%, rgba(0, 0, 0, 0.035), transparent 25rem),
    radial-gradient(circle at 82% 22%, rgba(180, 180, 176, 0.15), transparent 28rem),
    var(--page);
}

.left-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: var(--left-rail);
  color: #fff;
  background: #090c10;
  box-shadow: 12px 0 34px rgba(7, 9, 12, 0.1);
}

.rail-brand {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 82px;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.rail-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.rail-nav {
  display: grid;
  grid-auto-rows: minmax(55px, auto);
  overflow-y: auto;
  scrollbar-width: none;
}

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

.rail-link,
.rail-more {
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 58px;
  padding: 8px 5px;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  font-size: 9px;
  line-height: 1.08;
  text-align: center;
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.rail-link svg,
.rail-more svg {
  width: 22px;
  height: 22px;
}

.rail-link:hover,
.rail-link:focus-visible,
.rail-link.is-active,
.rail-more:hover,
.rail-more:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
}

.rail-link.is-active::before {
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  content: "";
  background: var(--red-bright);
}

.rail-more {
  margin-top: auto;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-frame {
  width: calc(100% - var(--left-rail) - var(--right-rail));
  min-height: 100vh;
  margin-left: var(--left-rail);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(260px, 640px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 74px;
  padding: 0 clamp(22px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 246, 243, 0.88);
  backdrop-filter: blur(20px);
}

.global-search,
.module-search,
.data-toolbar > label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.global-search svg,
.module-search svg,
.data-toolbar > label svg {
  width: 18px;
  height: 18px;
  color: var(--soft);
}

.global-search input,
.module-search input,
.data-toolbar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.global-search input::placeholder,
.module-search input::placeholder,
.data-toolbar input::placeholder {
  color: var(--soft);
}

.global-search kbd {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--soft);
  background: #fff;
  font-family: inherit;
  font-size: 11px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-self: end;
  font-size: 13px;
  text-align: right;
}

.topbar-user > span {
  display: grid;
}

.topbar-user small {
  color: var(--soft);
  font-size: 10px;
  text-transform: uppercase;
}

.avatar-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(225, 37, 49, 0.85), rgba(26, 5, 7, 0.95)),
    #160307;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.workspace {
  width: min(100% - 44px, 1480px);
  margin: 0 auto;
  padding: 28px 0 70px;
}

.app-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 74px;
  padding: 0 clamp(22px, 3vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 11px;
}

.app-footer span:first-child {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.app-footer a:hover,
.app-footer a:focus-visible {
  color: var(--ink);
}

.action-rail {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--right-rail);
  padding: 91px 0 24px;
  border-left: 1px solid var(--line);
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(18px);
}

.action-rail button {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 52px;
  border-radius: 7px;
  color: #3e4244;
  background: transparent;
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.action-rail button:hover,
.action-rail button:focus-visible {
  color: var(--red);
  background: rgba(0, 0, 0, 0.04);
}

.action-rail button i {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--red-bright);
}

/* Workspace */

.workspace-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 72% 58%, rgba(210, 18, 31, 0.22), transparent 26rem),
    linear-gradient(112deg, #07090c, #10151a 70%, #0b0d10);
  box-shadow: var(--shadow);
}

.workspace-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255, 255, 255, 0.05) 50%, transparent 50.1%),
    linear-gradient(0deg, transparent 49.9%, rgba(255, 255, 255, 0.04) 50%, transparent 50.1%);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, #000, transparent 64%);
}

.workspace-hero__copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(42px, 6vw, 82px);
}

.workspace-hero__copy .eyebrow {
  color: #f2636c;
}

.workspace-hero__copy h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.workspace-hero__copy > p:not(.eyebrow) {
  max-width: 510px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.48;
}

.workspace-hero__visual {
  position: relative;
  min-height: 390px;
}

.workspace-hero__visual::before {
  position: absolute;
  inset: 9% 2% 0 0;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(211, 24, 38, 0.25), transparent 66%);
  filter: blur(20px);
}

.workspace-hero__visual img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90%, 600px);
  max-height: 100%;
  object-fit: contain;
  filter: saturate(0.8) contrast(1.12) drop-shadow(0 28px 46px rgba(0, 0, 0, 0.52));
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: 0.86;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.orbit--one {
  width: 68%;
  aspect-ratio: 1;
}

.orbit--two {
  width: 88%;
  aspect-ratio: 1;
  border-color: rgba(225, 37, 49, 0.24);
  transform: translate(-50%, -50%) rotate(24deg);
}

.hero-node {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 6px rgba(225, 37, 49, 0.12);
}

.hero-node--one { top: 25%; left: 22%; }
.hero-node--two { top: 64%; left: 77%; }
.hero-node--three { top: 80%; left: 37%; }

.workspace-hero__status {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(5, 7, 9, 0.7);
  backdrop-filter: blur(12px);
}

.workspace-hero__status div {
  display: grid;
  gap: 2px;
}

.workspace-hero__status strong {
  font-size: 12px;
}

.workspace-hero__status small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a1a39f;
  box-shadow: 0 0 0 4px rgba(161, 163, 159, 0.12);
}

.status-dot.is-live {
  background: #25c692;
  box-shadow: 0 0 0 4px rgba(37, 198, 146, 0.15);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.metric-strip article {
  display: grid;
  gap: 5px;
  min-height: 115px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.metric-strip article:last-child {
  border-right: 0;
}

.metric-strip span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-strip strong {
  align-self: end;
  font-size: 21px;
  font-weight: 520;
}

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

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin: 62px 0 22px;
}

.section-heading h2,
.fabric-card h2,
.data-panel h2,
.empty-state h2 {
  margin: 0;
  font-size: clamp(31px, 3.2vw, 46px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.module-search {
  width: min(100%, 350px);
}

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

.module-card {
  position: relative;
  min-height: 252px;
  overflow: hidden;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 64px rgba(16, 18, 20, 0.12);
}

.module-card[hidden] {
  display: none;
}

.module-card::before {
  position: absolute;
  inset: auto -55px -70px auto;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  content: "";
}

.module-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 33px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.module-card__icon svg {
  width: 20px;
  height: 20px;
}

.module-card h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 520;
  letter-spacing: -0.035em;
}

.module-card > p:not(.eyebrow) {
  max-width: 260px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.module-card > a {
  position: absolute;
  right: 19px;
  bottom: 19px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 15px;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.module-card > a:hover,
.module-card > a:focus-visible {
  color: #fff;
  background: var(--ink);
  transform: rotate(8deg);
}

.module-card--dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 50%),
    var(--dark);
}

.module-card--dark::before {
  border-color: rgba(255, 255, 255, 0.1);
}

.module-card--dark .module-card__icon {
  border-color: rgba(255, 255, 255, 0.2);
}

.module-card--dark > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.64);
}

.module-card--dark > a:hover,
.module-card--dark > a:focus-visible {
  color: #08090a;
  background: #fff;
}

.module-card--red {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.12), transparent 44%),
    linear-gradient(135deg, #570910, #ad111d 68%, #dd2330);
}

.module-card--red::before {
  border-color: rgba(255, 255, 255, 0.16);
}

.module-card--red .module-card__icon {
  border-color: rgba(255, 255, 255, 0.28);
}

.module-card--red > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.module-card--red > a:hover,
.module-card--red > a:focus-visible {
  color: var(--red);
  background: #fff;
}

.fabric-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
  gap: 48px;
  align-items: center;
  min-height: 350px;
  margin-top: 16px;
  padding: clamp(34px, 5vw, 70px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.fabric-card > div:first-child > p:not(.eyebrow) {
  max-width: 470px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.fabric-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 44px;
  align-items: center;
  min-height: 220px;
}

.fabric-map::before,
.fabric-map::after {
  position: absolute;
  z-index: 0;
  content: "";
  background: var(--line);
}

.fabric-map::before {
  top: 50%;
  left: 10%;
  width: 80%;
  height: 1px;
}

.fabric-map::after {
  top: 12%;
  left: 50%;
  width: 1px;
  height: 76%;
}

.fabric-map span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 11px;
  font-weight: 600;
}

.fabric-map .fabric-hub {
  grid-column: 2;
  grid-row: 2;
  width: 76px;
  min-height: 76px;
  justify-self: center;
  color: #fff;
  background: var(--dark);
  font-size: 15px;
  letter-spacing: 0.12em;
}

/* Section pages */

.section-hero {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  min-height: 270px;
  padding: clamp(34px, 5vw, 66px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.section-hero::after {
  position: absolute;
  right: -80px;
  bottom: -160px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  content: "";
}

.section-hero > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.section-hero h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 520;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.section-hero > div:first-child > p:not(.eyebrow) {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.section-hero__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.section-hero__icon svg {
  width: 50px;
  height: 50px;
}

.section-hero--dark,
.section-hero--red {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--dark);
}

.section-hero--red {
  background:
    radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(135deg, #4d070d, #bb1420);
}

.section-hero--dark::after,
.section-hero--red::after,
.section-hero--dark .section-hero__icon,
.section-hero--red .section-hero__icon {
  border-color: rgba(255, 255, 255, 0.16);
}

.section-hero--dark > div:first-child > p:not(.eyebrow),
.section-hero--red > div:first-child > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.source-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.source-status article {
  display: grid;
  gap: 10px;
  min-height: 104px;
  padding: 21px 23px;
  border-right: 1px solid var(--line);
}

.source-status article:last-child {
  border-right: 0;
}

.source-status span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.source-status strong {
  align-self: end;
  overflow: hidden;
  font-size: 15px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-live {
  color: var(--live);
}

.data-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  margin: 28px 0 14px;
}

.data-toolbar > label {
  border-radius: 6px;
}

.data-toolbar .button {
  border-radius: 6px;
}

.data-panel {
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.data-panel__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.data-panel__head > a {
  color: var(--soft);
  font-size: 12px;
}

.data-panel__head > a:hover,
.data-panel__head > a:focus-visible {
  color: var(--ink);
}

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

.readiness-grid article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  min-height: 112px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.readiness-grid article > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--soft);
  font-size: 11px;
}

.readiness-grid article.is-complete > span {
  color: #fff;
  border-color: var(--live);
  background: var(--live);
}

.readiness-grid article div {
  align-self: center;
}

.readiness-grid strong {
  font-size: 15px;
}

.readiness-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.empty-state {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  align-items: center;
  min-height: 250px;
  margin-top: 14px;
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 20% 80%, rgba(210, 20, 34, 0.18), transparent 24rem),
    var(--dark);
}

.empty-state__visual {
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.empty-state__visual svg {
  width: 64px;
  height: 64px;
  color: #e24a54;
}

.empty-state > div:last-child > p:not(.eyebrow) {
  max-width: 670px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.5;
}

/* Drawers and user panels */

.nav-drawer {
  position: fixed;
  inset: 0 auto 0 var(--left-rail);
  z-index: 55;
  width: min(620px, calc(100vw - var(--left-rail)));
  padding: 36px;
  color: #fff;
  background: rgba(7, 9, 12, 0.98);
  box-shadow: 28px 0 70px rgba(0, 0, 0, 0.34);
  transform: translateX(calc(-100% - var(--left-rail)));
  transition: transform 220ms ease;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-drawer__head h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 420;
}

.nav-drawer .icon-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.nav-drawer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: calc(100vh - 150px);
  padding-top: 24px;
  overflow-y: auto;
}

.drawer-link {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 13px;
  align-items: center;
  min-height: 72px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.025);
}

.drawer-link:hover,
.drawer-link:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.065);
}

.drawer-link__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.drawer-link__icon svg {
  width: 19px;
  height: 19px;
}

.drawer-link > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.drawer-link strong {
  font-size: 13px;
}

.drawer-link small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  text-transform: uppercase;
}

.panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 200ms ease,
    visibility 200ms ease;
}

.panel-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.panel-overlay__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(4, 6, 8, 0.72);
  backdrop-filter: blur(6px);
  cursor: default;
}

.panel {
  position: absolute;
  inset: 0 0 0 auto;
  display: none;
  width: min(590px, calc(100vw - 30px));
  padding: clamp(28px, 4vw, 52px);
  overflow-y: auto;
  background: var(--paper);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.24);
}

.panel.is-active {
  display: block;
  animation: panel-in 220ms ease both;
}

@keyframes panel-in {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.panel__head h2 {
  margin: 0;
  font-size: 39px;
  font-weight: 430;
  letter-spacing: -0.04em;
}

.panel-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.panel-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.panel-list strong {
  font-size: 14px;
}

.panel-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.panel-list time {
  color: var(--soft);
  font-size: 10px;
}

.panel-empty {
  display: grid;
  place-items: center;
  min-height: 420px;
  text-align: center;
}

.panel-empty svg {
  width: 48px;
  height: 48px;
  color: var(--soft);
}

.panel-empty h3 {
  margin: 22px 0 0;
  font-size: 27px;
  font-weight: 430;
}

.panel-empty p {
  max-width: 350px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.request-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.request-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  background: #fff;
  font-size: 14px;
  resize: vertical;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.draft-list,
.bookmark-list {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.draft-list article,
.bookmark-list article {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.draft-list strong,
.bookmark-list strong {
  font-size: 13px;
}

.draft-list p,
.bookmark-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.bookmark-list a:hover,
.bookmark-list a:focus-visible {
  color: var(--red);
}

.profile-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 22px;
  align-items: center;
  margin: 32px 0 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.profile-card__avatar {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #4b070d, var(--red-bright));
  font-size: 24px;
  font-weight: 650;
}

.profile-card span {
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-card h3 {
  margin: 5px 0;
  font-size: 26px;
  font-weight: 450;
}

.profile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.panel > .button-dark:last-child {
  width: 100%;
}

.panel > .button-dark svg {
  width: 18px;
  height: 18px;
}

/* Responsive */

@media (max-width: 1200px) {
  .module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar {
    grid-template-columns: auto minmax(220px, 440px) auto;
    gap: 18px;
  }

  .fabric-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  :root {
    --left-rail: 72px;
    --right-rail: 58px;
  }

  .rail-link span,
  .rail-more span,
  .rail-brand span,
  .topbar-user > span {
    display: none;
  }

  .rail-link,
  .rail-more {
    min-height: 56px;
  }

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

  .workspace-hero__visual {
    position: absolute;
    inset: 0 0 0 45%;
    opacity: 0.55;
  }

  .workspace-hero__copy {
    max-width: 650px;
  }

  .metric-strip,
  .source-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip article:nth-child(2),
  .source-status article:nth-child(2) {
    border-right: 0;
  }

  .metric-strip article:nth-child(-n+2),
  .source-status article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

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

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

  .login-story {
    align-self: auto;
    padding-bottom: 0;
  }

  .login-card {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 760px) {
  :root {
    --left-rail: 0px;
    --right-rail: 0px;
  }

  .login-header nav a,
  .login-header nav span:first-of-type {
    display: none;
  }

  .login-layout {
    width: min(100% - 30px, 600px);
  }

  .login-story h1 {
    font-size: clamp(46px, 15vw, 70px);
  }

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

  .left-rail {
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    height: 64px;
  }

  .rail-brand,
  .rail-link:nth-of-type(n+5),
  .rail-more {
    display: none;
  }

  .rail-nav {
    display: contents;
  }

  .rail-link {
    min-height: 64px;
  }

  .rail-link span {
    display: block;
    font-size: 8px;
  }

  .app-frame {
    width: 100%;
    margin-left: 0;
    padding-bottom: 64px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 66px;
    padding: 0 16px;
  }

  .global-search {
    display: none;
  }

  .action-rail {
    position: fixed;
    inset: auto 12px 78px auto;
    display: grid;
    grid-template-columns: repeat(5, 42px);
    width: auto;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  }

  .action-rail button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }

  .workspace {
    width: min(100% - 24px, 680px);
    padding-top: 14px;
  }

  .workspace-hero__copy {
    padding: 35px 25px 100px;
  }

  .workspace-hero__visual {
    inset: 22% -28% 0 25%;
  }

  .workspace-hero__status {
    right: auto;
    left: 25px;
  }

  .metric-strip,
  .source-status,
  .module-grid,
  .readiness-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip article,
  .source-status article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip article:last-child,
  .source-status article:last-child {
    border-bottom: 0;
  }

  .section-heading {
    display: grid;
    margin-top: 44px;
  }

  .module-search {
    width: 100%;
  }

  .fabric-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 20px;
  }

  .fabric-map {
    gap: 16px 9px;
  }

  .section-hero {
    min-height: 250px;
    padding: 30px 22px;
  }

  .section-hero h1 {
    font-size: clamp(45px, 14vw, 72px);
  }

  .section-hero__icon {
    position: absolute;
    right: -18px;
    bottom: -18px;
    opacity: 0.26;
  }

  .data-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .data-toolbar > label {
    grid-column: 1 / -1;
  }

  .empty-state {
    grid-template-columns: 1fr;
  }

  .empty-state__visual {
    width: 110px;
    height: 110px;
  }

  .nav-drawer {
    inset: 0;
    width: 100%;
    padding: 24px 18px 90px;
  }

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

  .app-footer {
    grid-template-columns: 1fr auto;
    margin-bottom: 0;
  }

  .app-footer span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 520px) {
  .login-header {
    padding-inline: 18px;
  }

  .login-header nav {
    display: none;
  }

  .login-card {
    padding: 31px 22px;
  }

  .login-stats {
    margin-top: 34px;
  }

  .workspace-hero__copy h1 {
    font-size: 43px;
  }

  .workspace-hero__visual {
    inset: 30% -60% 0 15%;
  }

  .section-heading h2,
  .fabric-card h2,
  .data-panel h2,
  .empty-state h2 {
    font-size: 32px;
  }

  .module-card {
    min-height: 224px;
  }

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

  .fabric-map .fabric-hub {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .fabric-map::before,
  .fabric-map::after {
    display: none;
  }

  .data-toolbar {
    grid-template-columns: 1fr;
  }

  .data-toolbar > label {
    grid-column: auto;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
