:root {
  color-scheme: light;
  --brand1: #2253f4;
  --brand2: #5a78ff;
  --bad: #ff5c7a;
  --good: #18d62b;
  --warn: #ffb020;
  --ink: #1c1f26;
  --ink-soft: #666666;
  --ink-muted: #8a93a4;
  --paper: #ffffff;
  --canvas: #f8f9fb;
  --soft: #f3f5f2;
  --line: rgba(0, 0, 0, 0.1);
  --line-soft: rgba(0, 0, 0, 0.06);
  --panel: rgba(255, 255, 255, 0.94);
  --round: 16px;
  --round-sm: 12px;
  --shadow: 0 24px 80px rgba(34, 83, 244, 0.16);
  --font-ui: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-title: Onest, var(--font-ui);
  --heading-track: -0.025em;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 300 14px var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  background: var(--canvas);
}

.dashboard-shell .carbon-header,
.dashboard-shell .topbar {
  display: none;
}

.dashboard-shell .workspace {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 92, 122, .82) 0, rgba(255, 92, 122, .34) 18%, transparent 38%),
    radial-gradient(circle at 88% 48%, rgba(41, 13, 92, .95) 0, rgba(41, 13, 92, .72) 24%, transparent 52%),
    radial-gradient(circle at 10% 0%, rgba(99, 124, 255, .78) 0, rgba(99, 124, 255, .34) 24%, transparent 46%),
    linear-gradient(142deg, var(--brand1) 0%, #2d5bf6 38%, #231047 100%);
}

.dashboard-shell .view {
  padding-top: 24px;
  background: transparent;
}

.carbon-header {
  min-height: 112px;
  padding: 18px 24px 0;
  background: var(--brand1);
  color: #ffffff;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brandmark {
  width: auto;
  height: 48px;
  max-width: min(420px, 56vw);
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 48px;
}

#openCommand,
#primaryAction {
  display: none;
}

.sync-pill {
  min-height: 34px;
  margin: 0 8px 0 0;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 12px 0 14px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  scrollbar-width: none;
}

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

.nav-item,
.icon-btn {
  position: relative;
  width: 68px;
  min-width: 68px;
  min-height: 58px;
  padding: 8px 8px;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  display: inline-grid;
  grid-template-rows: 24px auto;
  justify-items: center;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav-item:hover,
.nav-item.active,
.icon-btn:hover,
.icon-btn.brand {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-item:active,
.icon-btn:active {
  transform: translateY(1px);
}

.icon-btn.brand {
  background: rgba(255, 255, 255, 0.16);
}

.nav-count {
  position: absolute;
  transform: translate(22px, -22px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bad);
  color: #ffffff;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}

.label,
.nav-item span:nth-child(2) {
  color: currentColor;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.05;
  max-width: 62px;
  overflow-wrap: normal;
  word-break: normal;
}

.icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

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

.icon svg [fill="currentColor"] {
  fill: currentColor;
  stroke: none;
}

.workspace {
  min-width: 0;
}

.topbar {
  min-height: 68px;
  padding: 18px 24px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.topbar h1 {
  margin: 3px 0 0;
  font-family: var(--font-title);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--heading-track);
}

.eyebrow {
  margin: 0;
  color: var(--brand1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.view {
  padding: 22px 24px 28px;
  display: grid;
  gap: 14px;
}

.primary-button,
.secondary-button,
.danger-button,
.quiet-button,
.btn {
  min-height: 34px;
  border-radius: 999px;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.primary-button {
  background: var(--brand1);
  color: #ffffff;
}

.primary-button[aria-busy="true"],
.secondary-button[aria-busy="true"],
.danger-button[aria-busy="true"] {
  cursor: wait;
  opacity: .88;
}

.button-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  display: inline-block;
  animation: carbon-button-spin .7s linear infinite;
}

@keyframes carbon-button-spin {
  to {
    transform: rotate(360deg);
  }
}

.secondary-button,
.quiet-button {
  background: rgba(245, 246, 248, 0.92);
  color: var(--brand1);
  border: 1px solid rgba(34, 83, 244, 0.18);
}

.secondary-button:hover,
.quiet-button:hover {
  background: var(--brand1);
  color: #ffffff;
}

.danger-button {
  background: var(--bad);
  color: #ffffff;
}

.danger-outline {
  background: rgba(255, 92, 122, 0.14);
  border-color: rgba(255, 92, 122, 0.22);
  color: var(--bad);
}

.danger-outline:hover {
  background: var(--bad);
  color: #ffffff;
}

.icon-button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand1);
  display: inline-grid;
  place-items: center;
}

.icon-button:hover {
  background: var(--brand1);
  color: #ffffff;
}

.icon-button.trash-action {
  background: rgba(255, 92, 122, 0.14);
  color: var(--bad);
}

.icon-button.trash-action svg,
.icon-button.trash-action svg path {
  fill: currentColor !important;
  stroke: none !important;
}

.icon-button.trash-action:hover,
.icon-button.trash-action:focus-visible {
  background: var(--bad);
  color: #ffe5eb;
}

.icon-button.trash-action:hover svg,
.icon-button.trash-action:focus-visible svg,
.icon-button.trash-action:hover svg path,
.icon-button.trash-action:focus-visible svg path {
  fill: #ffe5eb !important;
  stroke: none !important;
}

.danger-button.trash-action:hover,
.danger-button.trash-action:focus-visible {
  background: var(--bad);
  color: #ffe5eb;
}

.home-hero {
  min-height: 204px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: end;
}

.home-hero__brand {
  position: relative;
  min-height: 204px;
  color: #ffffff;
  padding: clamp(6px, 1.4vw, 18px) clamp(8px, 2.2vw, 22px);
  display: grid;
  align-content: space-between;
  gap: 24px;
  isolation: isolate;
}

.home-hero__brand::before,
.home-hero__brand::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.home-hero__brand::before {
  display: none;
}

.home-hero__brand::after {
  display: none;
}

.home-hero__mark {
  width: min(268px, 52vw);
  height: auto;
  position: relative;
  z-index: 1;
  opacity: .9;
  filter: none;
}

.home-hero__brand h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 620px;
  font-family: var(--font-title);
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 380;
  line-height: .98;
  letter-spacing: var(--heading-track);
}

.home-hero__brand p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: 15px;
}

.home-hero__summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.signal-tile {
  min-height: 72px;
  border-radius: var(--round);
  border: 1px solid var(--line-soft);
  background: var(--paper);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label value"
    "sub value";
  gap: 4px 14px;
  align-items: center;
}

.signal-tile--compact {
  min-height: 112px;
  align-self: end;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px) saturate(140%);
}

.signal-tile span {
  grid-area: label;
  color: var(--ink-soft);
  font-weight: 650;
}

.signal-tile strong {
  grid-area: value;
  color: var(--brand1);
  font-family: var(--font-title);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--heading-track);
  text-align: right;
  max-width: 190px;
}

.signal-tile small {
  grid-area: sub;
  color: var(--ink-soft);
  font-weight: 450;
  line-height: 1.2;
}

.signal-tile--compact small {
  color: #565a66;
  font-weight: 500;
}

.signal-tile--launch {
  min-height: 246px;
  padding: 16px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "label"
    "value"
    "sub";
  align-content: space-between;
  gap: 14px;
}

.signal-tile--launch span {
  align-self: start;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: var(--heading-track);
}

.signal-tile--launch strong {
  justify-self: start;
  align-self: end;
  max-width: none;
  color: var(--brand1);
  font-size: clamp(42px, 4.4vw, 58px);
  text-align: left;
}

.signal-tile--launch small {
  color: var(--ink-muted);
  font-weight: 650;
}

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

.launch-card {
  position: relative;
  overflow: hidden;
  min-height: 246px;
  border-radius: var(--round);
  border: 1px solid var(--line-soft);
  background: var(--paper);
  color: var(--ink);
  padding: 16px;
  text-decoration: none;
  display: grid;
  align-content: space-between;
  gap: 18px;
  transition: border-color .16s ease, background-color .16s ease;
}

.launch-card:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow: none;
}

.launch-card__glow {
  display: none;
}

.launch-card header,
.launch-card footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.launch-card__appmark {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: var(--heading-track);
}

.launch-card__appmark .icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 13%, #ffffff);
  color: var(--accent);
}

.launch-card__appmark .icon svg {
  width: 22px;
  height: 22px;
}

.launch-card__count {
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
  color: var(--accent);
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: var(--heading-track);
}

.launch-card__body {
  position: relative;
  z-index: 1;
}

.launch-card__body p,
.launch-card footer {
  margin: 0;
  color: var(--ink-muted);
  font-weight: 650;
}

.launch-card__body h2 {
  margin: 8px 0 0;
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--heading-track);
}

.open-chip {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--brand1);
  color: #ffffff;
}

.flow-strip {
  min-height: 98px;
  border: 1px solid var(--line-soft);
  border-radius: var(--round);
  background: var(--paper);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 34px;
  align-items: center;
  position: relative;
}

.flow-step {
  position: relative;
  min-height: 68px;
  border-radius: var(--round-sm);
  background: var(--soft);
  color: var(--ink);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  padding: 12px;
  text-decoration: none;
}

.flow-step .icon {
  grid-row: 1 / 3;
  color: var(--brand1);
}

.flow-step strong {
  font-family: var(--font-title);
  font-size: 16px;
}

.flow-step small {
  color: var(--ink-muted);
  font-weight: 650;
}

.flow-arrow {
  position: relative;
  display: none;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -28px;
  width: 22px;
  height: 1px;
  background: rgba(34, 83, 244, .36);
}

.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  right: -28px;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(34, 83, 244, .5);
  border-right: 1px solid rgba(34, 83, 244, .5);
  transform: rotate(45deg);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 12px;
}

.home-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

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

.visual-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--round);
  background: var(--paper);
  overflow: hidden;
}

.visual-panel > header {
  min-height: 60px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.visual-panel h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 19px;
}

.visual-panel > header p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.visual-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.systm-panel--collapsed > header {
  border-bottom-color: transparent;
}

.systm-panel__toggle {
  min-width: 0;
  flex: 1 1 auto;
  padding: 0;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.systm-panel__toggle:hover h2 {
  color: var(--brand1);
}

.systm-panel__chevron {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand1);
  display: grid;
  place-items: center;
  transition: transform .16s ease, background .16s ease;
}

.systm-panel__chevron .icon,
.systm-panel__chevron .icon svg {
  width: 18px;
  height: 18px;
}

.systm-panel__chevron[aria-expanded="true"] {
  transform: rotate(180deg);
}

.systm-panel__chevron:hover {
  background: rgba(34, 83, 244, 0.1);
}

.systm-panel__actions {
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end;
}

.activity-dot--title {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: grid;
  place-items: center;
}

.activity-dot--title .icon,
.activity-dot--title .icon svg {
  width: 21px;
  height: 21px;
}

.activity-dot--small {
  width: 34px;
  height: 34px;
}

.activity-dot--small .icon {
  width: 17px;
  height: 17px;
}

.ready-list {
  padding: 8px;
  display: grid;
  gap: 6px;
}

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

.health-list {
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px;
}

.health-item {
  min-height: 62px;
  border-radius: var(--round-sm);
  background: var(--soft);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.health-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--brand1);
}

.health-item--ok .health-dot,
.health-tag--ok {
  background: rgba(24, 214, 43, 0.12);
  color: #12841f;
}

.health-item--ok .health-dot {
  background: #18d62b;
}

.health-item--warn .health-dot,
.health-tag--warn {
  background: rgba(255, 176, 32, 0.16);
  color: #956200;
}

.health-item--warn .health-dot {
  background: #ffb020;
}

.health-item--bad .health-dot,
.health-tag--bad {
  background: rgba(255, 92, 122, 0.14);
  color: var(--bad);
}

.health-item--bad .health-dot {
  background: var(--bad);
}

.health-item strong {
  display: block;
  margin: 0 0 3px;
  font-weight: 700;
}

.health-item small {
  display: block;
  color: var(--ink-soft);
  line-height: 1.25;
}

.health-detail {
  margin-top: 8px;
}

.health-detail summary {
  cursor: pointer;
  color: var(--brand1);
  font-size: 12px;
  font-weight: 700;
}

.health-detail pre {
  max-height: 220px;
  overflow: auto;
  margin: 8px 0 0;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  padding: 10px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.health-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

.health-dismiss-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.dismiss-preview {
  border-radius: var(--round-sm);
  background: var(--soft);
  border: 1px solid var(--line-soft);
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.dismiss-preview strong {
  color: var(--ink);
  font-size: 16px;
}

.dismiss-preview span {
  color: var(--ink-soft);
  line-height: 1.35;
}

.health-dot--ok {
  background: #18d62b;
}

.health-dot--bad {
  background: var(--bad);
}

.ops-list {
  padding: 8px;
  display: grid;
  gap: 6px;
}

.ops-list--compact {
  gap: 4px;
}

.ops-row {
  min-height: 62px;
  border-radius: var(--round-sm);
  background: var(--soft);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.ops-row--compact {
  grid-template-columns: 42px minmax(0, 1fr);
}

.ops-row strong,
.ops-row small {
  display: block;
}

.ops-row small {
  margin-top: 3px;
  color: var(--ink-soft);
  line-height: 1.25;
}

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

.ready-item {
  min-height: 58px;
  border-radius: var(--round-sm);
  border: 1px solid transparent;
  color: var(--ink);
  text-decoration: none;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.ready-item:hover {
  background: var(--soft);
}

.ready-item--empty {
  background: var(--soft);
  pointer-events: none;
}

.ready-item--bad {
  border-color: color-mix(in srgb, var(--bad) 34%, transparent);
  background: color-mix(in srgb, var(--bad) 6%, #ffffff);
}

.ready-item--bad .activity-dot {
  background: color-mix(in srgb, var(--bad) 14%, #ffffff);
  color: var(--bad);
}

.ready-item--warn,
.ready-item--review {
  border-color: rgba(255, 176, 32, .28);
  background: rgba(255, 176, 32, .06);
}

.ready-item--warn .activity-dot,
.ready-item--review .activity-dot {
  background: rgba(255, 176, 32, .14);
  color: #956200;
}

.ready-item--money {
  border-color: color-mix(in srgb, var(--brand1) 22%, transparent);
  background: color-mix(in srgb, var(--brand1) 5%, #ffffff);
}

.ready-item--waiting .activity-dot {
  background: color-mix(in srgb, #6d28d9 12%, #ffffff);
  color: #6d28d9;
}

.ready-item--work .activity-dot {
  background: rgba(34, 83, 244, .1);
  color: var(--brand1);
}

.ready-item span:last-child {
  display: grid;
  gap: 3px;
}

.ready-item small {
  color: var(--ink-muted);
}

.metric {
  min-height: 112px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--round);
  padding: 16px;
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.metric strong {
  color: var(--brand1);
  font-family: var(--font-title);
  font-size: 34px;
  line-height: 1;
}

.metric span {
  color: var(--ink-soft);
  font-size: 13px;
}

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

.module-card {
  min-height: 150px;
  border-radius: var(--round);
  border: 1px solid var(--line-soft);
  background: var(--paper);
  padding: 16px;
  color: var(--ink);
  display: grid;
  align-content: space-between;
  gap: 18px;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.module-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(34, 83, 244, 0.1);
}

.module-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.module-card .icon {
  color: var(--brand1);
}

.module-card h2,
.panel h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}

.module-card p,
.panel p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--round);
  overflow: hidden;
}

.panel-head {
  min-height: 62px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--round-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  padding: 0 12px;
  outline: none;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand1);
  box-shadow: 0 0 0 3px rgba(34, 83, 244, 0.1);
}

.textarea {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.status,
.tag {
  min-height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status {
  background: rgba(34, 83, 244, 0.1);
  color: var(--brand1);
}

.status.active {
  background: rgba(24, 214, 43, 0.12);
  color: #12841f;
}

.status.paused {
  background: rgba(255, 176, 32, 0.14);
  color: #956200;
}

.status.archived {
  background: rgba(255, 92, 122, 0.12);
  color: #c4254c;
}

.tag {
  background: var(--soft);
  color: var(--brand1);
}

.tag.work {
  background: rgba(34, 83, 244, 0.1);
  color: var(--brand1);
}

.tag.money {
  background: rgba(255, 92, 122, 0.12);
  color: #c4254c;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 12px;
}

.directory-panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(140%);
}

.directory-alert {
  margin: 14px 16px 0;
  padding: 10px 12px;
  border-radius: var(--round-sm);
  background: rgba(255, 92, 122, 0.12);
  color: #9f1738;
  font-weight: 650;
}

.directory-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.directory-card {
  min-height: 270px;
  border: 1px solid var(--line-soft);
  border-radius: var(--round);
  background: var(--paper);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: start;
  gap: 0;
}

.directory-card > header,
.directory-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.directory-card__bar {
  min-height: 76px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #171529 0%, #251a45 100%);
  color: #ffffff;
}

.directory-card__bar .status {
  background: var(--brand1);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(34, 83, 244, 0.28);
}

.directory-card__bar .status.paused {
  background: #ffb020;
  color: #181100;
}

.directory-card__bar .status.archived {
  background: var(--bad);
  color: #ffffff;
}

.directory-card__body h2 {
  margin: 8px 0 0;
  font-family: var(--font-title);
  font-size: 27px;
  font-weight: 390;
  line-height: 1;
  letter-spacing: var(--heading-track);
}

.directory-card__body {
  padding: 18px 16px 0;
  align-self: start;
  display: grid;
  align-content: start;
  gap: 0;
}

.directory-card__body p:not(.eyebrow) {
  min-height: 42px;
}

.directory-contact-line {
  color: var(--ink-soft);
  line-height: 1.45;
}

.directory-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 83, 244, .25);
}

.directory-link:hover,
.directory-link:focus-visible {
  color: var(--brand1);
  border-bottom-color: currentColor;
}

.directory-users {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 10px;
}

.directory-users__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.directory-users__head strong {
  display: block;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: var(--heading-track);
}

.directory-users__head small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.2;
}

.directory-users__controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.directory-users__toggle {
  min-width: 68px;
  justify-content: center;
}

.directory-users__drawer[hidden] {
  display: none;
}

.directory-users ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.directory-users li {
  min-height: 72px;
  border-radius: var(--round-sm);
  background: var(--soft);
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: start;
  gap: 12px;
}

.directory-users li > span:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
  overflow: hidden;
}

.directory-users li > span:first-child strong,
.directory-users li > span:first-child small {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.directory-users small,
.directory-users__empty {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.28;
}

.directory-users__empty {
  margin: 0;
}

.directory-user-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  align-self: start;
}

.directory-user-actions .icon-button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.access-option {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--round-sm);
  background: var(--paper);
  color: var(--ink);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
}

.access-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand1);
}

.field-note {
  display: block;
  margin: -4px 0 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.directory-brand-preview {
  min-height: 48px;
  max-width: 260px;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  padding: 0;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  gap: 10px;
}

.directory-brand-preview img {
  width: auto;
  height: 32px;
  max-width: 104px;
  object-fit: contain;
}

.directory-brand-preview span {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-title);
  font-weight: 500;
}

.directory-brand-preview strong {
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-grid;
  place-items: center;
  font-family: var(--font-title);
  font-weight: 500;
}

.directory-card > footer {
  padding: 14px 16px 16px;
}

.brand-upload {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.brand-upload__preview {
  aspect-ratio: 1.7;
  border: 1px solid var(--line);
  border-radius: var(--round-sm);
  background: var(--soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-upload__preview img {
  max-width: 88%;
  max-height: 72%;
  object-fit: contain;
}

.brand-upload__preview span {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--brand1);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 500;
}

.brand-upload small {
  display: block;
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.35;
}

.module-handoff {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 180px;
  border-radius: var(--round);
  background: var(--brand1);
  color: #ffffff;
  border: 1px solid var(--line-soft);
  padding: 24px;
}

.module-handoff > .icon {
  width: 64px;
  height: 64px;
}

.module-handoff > .icon svg {
  width: 64px;
  height: 64px;
}

.module-handoff h2 {
  margin: 4px 0 0;
  font-family: var(--font-title);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

.module-handoff p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.module-handoff .primary-button {
  background: #ffffff;
  color: var(--brand1);
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.activity-list li:last-child {
  border-bottom: 0;
}

.activity-dot {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(34, 83, 244, 0.1);
  color: var(--brand1);
  display: grid;
  place-items: center;
}

.activity-list p {
  margin: 0;
}

.activity-list time {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.check {
  width: 18px;
  height: 18px;
  accent-color: var(--brand1);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(248, 249, 251, 0.82);
  backdrop-filter: blur(18px) saturate(145%);
  z-index: 12000;
}

.modal-backdrop.show {
  display: grid;
}

.modal {
  width: min(840px, calc(100vw - 40px));
  max-height: min(88vh, 860px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid rgba(30, 38, 54, 0.1);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(18, 28, 45, 0.18);
}

.modal-head {
  min-height: 76px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(249, 250, 252, 0.74);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h2 {
  margin: 3px 0 0;
  color: var(--brand1);
  font-family: var(--font-title);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 380;
  line-height: 1.08;
  letter-spacing: var(--heading-track);
}

.modal-body {
  padding: 22px 28px 28px;
}

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

.form-field {
  display: grid;
  gap: 7px;
}

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

.form-field label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.carbon-auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(135deg, rgba(248, 249, 251, 0.96), rgba(233, 238, 255, 0.96));
}

.carbon-auth-backdrop[hidden] {
  display: none;
}

.carbon-auth-card {
  width: min(430px, calc(100vw - 36px));
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: var(--round);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.carbon-auth-card img {
  width: 136px;
  height: auto;
}

.carbon-auth-card h2 {
  margin: 0 0 6px;
  color: var(--brand1);
  font: 700 26px var(--font-title);
}

.carbon-auth-card label:not(.remember-row) {
  color: var(--brand1);
  font-weight: 700;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
}

.remember-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand1);
}

.auth-error {
  min-height: 20px;
  margin: 0;
  color: var(--bad);
  font-weight: 700;
}

.toast-stack {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: calc(var(--carbon-rail-size, 0px) + ((100vw - var(--carbon-rail-size, 0px)) / 2));
  transform: translateX(-50%);
  display: grid;
  gap: 7px;
  z-index: 13000;
  pointer-events: none;
}

.toast {
  width: max-content;
  min-width: min(280px, calc(100vw - var(--carbon-rail-size, 0px) - 32px));
  max-width: min(460px, calc(100vw - var(--carbon-rail-size, 0px) - 32px));
  min-height: 44px;
  border: 1px solid rgba(30, 38, 54, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  box-shadow: 0 14px 34px rgba(18, 28, 45, 0.14);
  backdrop-filter: blur(18px) saturate(150%);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-wrap: balance;
}

.toast .icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 8px;
  background: rgba(34, 83, 244, 0.1);
  color: var(--brand1);
}

.toast .icon svg {
  width: 18px;
  height: 18px;
}

.toast[data-kind="bad"] {
  border-color: rgba(255, 92, 122, 0.28);
}

.toast[data-kind="bad"] .icon {
  background: rgba(255, 92, 122, 0.12);
  color: var(--bad);
}

.empty {
  padding: 28px 16px;
  color: var(--ink-soft);
}

.money {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

@media (max-width: 1100px) {
  .module-grid,
  .launch-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

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

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

  .module-handoff {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .flow-strip {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 10px;
  }

  .flow-step::before,
  .flow-step::after {
    display: none;
  }

}

@media (max-width: 760px) {
  .carbon-header {
    min-height: 112px;
    padding: 16px 14px 0;
  }

  .header-brand {
    align-items: center;
  }

  .brandmark {
    height: 44px;
    max-width: 44vw;
  }

  .sync-pill {
    display: none;
  }

  .header-actions {
    gap: 4px;
  }

  .icon-btn {
    width: 58px;
    min-width: 58px;
    min-height: 54px;
  }

  .nav-item {
    width: 68px;
    min-width: 68px;
    min-height: 54px;
  }

  .nav-list {
    gap: 8px;
    padding-bottom: 12px;
  }

  .topbar {
    padding: 18px 14px 12px;
  }

  .view {
    padding: 14px;
  }

  .module-grid,
  .launch-grid,
  .home-hero,
  .home-grid,
  .flow-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .home-hero__brand {
    min-height: 220px;
  }

  .home-hero__mark {
    width: min(238px, 72vw);
  }

  .home-hero__brand h2 {
    font-size: clamp(32px, 12vw, 48px);
  }

  .launch-card {
    min-height: 206px;
  }

  .launch-card__appmark {
    font-size: 16px;
  }

  .launch-card__appmark .icon {
    width: 38px;
    height: 38px;
  }

  .modal {
    width: calc(100vw - 24px);
  }

  .modal-actions > * {
    width: 100%;
  }
}
