:root {
  color-scheme: light;
  --bg: #eef2f1;
  --panel: #ffffff;
  --panel-soft: #f7faf9;
  --ink: #111b22;
  --muted: #61717a;
  --line: #d9e2df;
  --line-strong: #bfccc8;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --accent-soft: #d9f3ef;
  --gold: #c8942e;
  --shadow: 0 18px 50px rgba(17, 34, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.15), transparent 34rem),
    linear-gradient(180deg, #f8faf9 0%, var(--bg) 58%, #e8eeec 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 32px;
}

.workspace {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(17, 34, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-topbar {
  min-height: 210px;
  align-items: center;
}

.brand-lockup,
.title-row,
.block-actions,
.channel-panel {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 16px;
}

.brand-mark {
  display: grid;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 8px;
  background: #10242a;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  box-shadow: inset 0 -4px 0 rgba(200, 148, 46, 0.55);
}

.eyebrow,
.step,
.panel-kicker,
.preview-box span {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
.subtitle,
.panel-copy {
  margin: 0;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ghost-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.ghost-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

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

.hub-card {
  display: grid;
  min-height: 260px;
  align-content: space-between;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.hub-card-active:hover {
  border-color: var(--accent);
  box-shadow: 0 22px 58px rgba(17, 34, 42, 0.16);
  transform: translateY(-2px);
}

.hub-card h2 {
  max-width: 520px;
  font-size: clamp(26px, 4vw, 38px);
}

.hub-card p {
  max-width: 540px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.card-kicker {
  margin: 0 0 8px !important;
  color: var(--accent-dark) !important;
  font-size: 12px !important;
  font-weight: 900;
  text-transform: uppercase;
}

.card-status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card-status.ready {
  border: 1px solid #b8ded8;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.card-status.production {
  border: 1px solid #ead6ad;
  background: #fff7e7;
  color: #7b5511;
}

.hub-card-disabled {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(247, 250, 249, 0.9)),
    var(--panel);
}

h1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1;
}

h2 {
  font-size: 22px;
  line-height: 1.15;
}

.subtitle,
.panel-copy {
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.channel-panel,
.block,
.complete-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.channel-panel {
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  margin-bottom: 18px;
}

.channel-panel label {
  width: min(360px, 100%);
}

.generator {
  display: grid;
  gap: 16px;
}

.block {
  padding: 20px;
}

.block-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.title-row {
  gap: 12px;
}

.step-badge {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--accent-dark);
  font-weight: 950;
}

.block-actions {
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #ead6ad;
  border-radius: 999px;
  background: #fff7e7;
  color: #7b5511;
  font-size: 12px;
  font-weight: 900;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

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

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

label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

input,
select {
  width: 100%;
  min-height: 45px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdfc;
  color: var(--ink);
  outline: none;
}

input[readonly] {
  background: #edf5f3;
  color: var(--accent-dark);
  font-weight: 950;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

button {
  min-height: 42px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.primary-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: #10242a;
  color: white;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.ghost-button,
.copy-button {
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  background: white;
  color: var(--ink);
}

.ghost-button:hover,
.copy-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.copy-button.copied,
.primary-button.copied {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.preview-box {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 249, 0.94)),
    var(--panel-soft);
}

.preview {
  display: block;
  min-height: 74px;
  padding: 15px;
  border: 1px solid #c8d6d2;
  border-radius: 6px;
  background: #ffffff;
  color: #0d272d;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace, monospace;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.4;
  overflow-wrap: anywhere;
  box-shadow: inset 4px 0 0 var(--accent);
}

.complete-panel {
  padding: 14px;
}

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

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

@media (max-width: 760px) {
  .app-shell {
    padding: 20px;
  }

  .topbar,
  .channel-panel,
  .topbar-actions {
    display: grid;
  }

  .channel-panel label {
    width: 100%;
  }

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

@media (max-width: 560px) {
  .app-shell {
    padding: 14px;
  }

  .topbar,
  .block-header,
  .block-actions {
    display: grid;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .ghost-button,
  .ghost-link,
  .copy-button {
    width: 100%;
    justify-content: center;
  }
}
