:root {
  --bg: #f4f5f1;
  --surface: #ffffff;
  --surface-subtle: #f7f8f5;
  --surface-muted: #edf1f0;
  --text: #1d2327;
  --muted: #64717a;
  --line: #d8dedb;
  --line-strong: #c2cbc7;
  --brand: #ff4100;
  --brand-soft: #fff0eb;
  --brand-dark: #351307;
  --accent: #ff4100;
  --accent-soft: #fff0eb;
  --danger: #b3261e;
  --shadow: 0 12px 30px rgba(27, 35, 39, 0.06);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 65, 0, 0.18), transparent 30%),
    linear-gradient(135deg, #e9ece8 0%, #f7f8f5 55%, #eef2ef 100%);
}

.login-shell {
  width: min(980px, 100%);
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  overflow: hidden;
  border: 1px solid rgba(31, 37, 41, 0.12);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(28, 36, 39, 0.16);
}

.login-brand-panel {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 48px;
  padding: 48px;
  overflow: hidden;
  background: var(--brand);
  color: #fff;
  border-bottom: 6px solid #d93600;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -115px;
  width: 310px;
  height: 310px;
  border: 72px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.login-brand-mark {
  position: relative;
  z-index: 1;
  width: fit-content;
  height: auto;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.login-brand-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  margin-block: auto;
}

.login-brand-copy h1 {
  max-width: 420px;
  font-size: clamp(34px, 5vw, 54px);
}

.login-brand-copy > p:last-child {
  max-width: 400px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
}

.login-eyebrow {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-form-panel {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 48px clamp(30px, 6vw, 72px);
}

.login-card {
  width: min(390px, 100%);
}

.login-card h2 {
  margin-top: 7px;
  font-size: clamp(30px, 4vw, 40px);
}

.login-intro {
  margin-top: 10px;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 19px;
  margin-top: 30px;
}

.login-form input {
  min-height: 50px;
  font-size: 16px;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 74px;
}

.password-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 38px;
  padding: 7px 10px;
  border-color: transparent;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
}

.password-toggle:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.login-error {
  padding: 11px 12px;
  border-left: 4px solid var(--danger);
  background: #ffeceb;
  color: var(--danger);
  font-size: 13px;
  font-weight: 750;
}

.login-submit {
  width: 100%;
  min-height: 50px;
  border-color: var(--accent);
  background: var(--accent);
}

.login-submit:hover {
  background: #d93600;
  color: #fff;
}

.login-footnote {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 17px;
  line-height: 1.25;
}

.topbar {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px max(20px, calc((100vw - 1240px) / 2));
  background: #1f2529;
  color: #fff;
  border-bottom: 4px solid var(--brand);
}

.topbar-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 4px;
}

.topbar-subtitle {
  margin-top: 5px;
  color: #cbd3d0;
  font-size: 13px;
}

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

.header-button,
button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #171b1e;
  border-radius: 7px;
  padding: 9px 15px;
  background: #1f2529;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.header-button {
  border-color: #626d71;
}

.header-button:hover,
button:hover {
  background: var(--brand);
  color: var(--brand-dark);
}

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

.status-pill,
.summary-pill,
.testing-tag,
#asset-count {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill {
  background: #e8ecea;
}

.status-pill.ready {
  background: var(--brand-soft);
  color: #b52e00;
}

.status-pill.error {
  background: #ffe4e1;
  color: var(--danger);
}

.shell {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.app-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.app-tabs button {
  flex: 1;
  border-color: transparent;
  background: transparent;
  color: var(--text);
}

.app-tabs button.active {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(27, 35, 39, 0.08);
}

.workspace,
.results-section,
.connector-builder,
.advanced-tools {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.connector-builder {
  margin-top: 18px;
  padding: 22px;
}

.builder-wizard {
  max-width: 1120px;
  margin: 0 auto;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 auto 22px;
  padding: 0;
  list-style: none;
}

.wizard-progress button {
  width: 100%;
  min-height: 48px;
  gap: 8px;
  border-color: var(--line);
  background: var(--surface-subtle);
  color: var(--muted);
}

.wizard-progress button span {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--line);
  color: var(--text);
}

.wizard-progress button.current,
.wizard-progress button.complete {
  color: var(--text);
}

.wizard-progress button.current {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.wizard-progress button.current span,
.wizard-progress button.complete span {
  background: var(--accent);
  color: #fff;
}

.wizard-step {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.wizard-heading {
  display: grid;
  gap: 4px;
}

.wizard-heading > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wizard-heading p {
  color: var(--muted);
}

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

.wizard-actions button:first-child:not(:last-child) {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--text);
}

.auto-generate-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.builder-sources,
.builder-settings,
.builder-output {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.builder-settings,
.builder-output {
  display: grid;
  gap: 14px;
}

.builder-library-tree {
  max-height: 360px;
  margin-top: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
}

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

.builder-brand-heading,
.builder-library-heading,
.builder-collection-children label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: var(--text);
}

.builder-brand-heading {
  background: var(--surface-muted);
}

.builder-brand-heading input,
.builder-library-heading input,
.builder-collection-children input {
  width: auto;
}

.builder-library-children {
  padding-left: 20px;
}

.builder-library + .builder-library,
.builder-collection-children label + label {
  border-top: 1px solid var(--line);
}

.builder-library-heading {
  background: #fff;
}

.builder-collection-children {
  margin-left: 22px;
  border-left: 2px solid var(--line);
}

.builder-collection-children label {
  padding-block: 8px;
  font-weight: 650;
}

.builder-help {
  color: var(--muted);
  font-size: 13px;
}

.builder-help code {
  color: var(--text);
}

.scope-choice {
  margin: 0;
}

.delivery-choice.asset-family-choice {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.asset-family-choice label {
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.asset-tag-entry {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.asset-tag-entry textarea {
  min-height: 112px;
}

.asset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 56px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.asset-tags .empty-branch {
  width: 100%;
  margin: 0;
}

.asset-tag {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  padding: 6px 7px 6px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
}

.asset-tag code {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
}

.asset-tag button {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  line-height: 1;
}

.builder-delivery-mode {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.builder-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fff;
}

.builder-category-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}

.builder-category-list label:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.builder-category-list input {
  width: auto;
}

.builder-category-list .empty-branch {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
}

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

.delivery-choice legend {
  margin-bottom: 8px;
  font-weight: 800;
}

.delivery-choice label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
}

.delivery-choice label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.delivery-choice input {
  width: auto;
  margin-top: 4px;
}

.delivery-choice span {
  display: grid;
  gap: 2px;
}

.delivery-choice small,
.conversion-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.conversion-summary {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

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

.wizard-review div {
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.wizard-review dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.wizard-review dd {
  margin: 4px 0 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.builder-error {
  color: var(--danger);
  font-weight: 750;
}

.builder-output {
  margin-top: 18px;
}

.builder-output label > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.builder-output button {
  min-height: 42px;
}

.workspace {
  padding: 24px;
}

.section-heading,
.panel-head,
.pane-head,
.step-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-kicker {
  margin-bottom: 5px;
  color: #b52e00;
}

.section-description {
  max-width: 660px;
  margin-top: 7px;
  color: var(--muted);
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.workflow-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.step-heading {
  align-items: flex-start;
  justify-content: flex-start;
}

.step-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.step-number {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-dark);
  font-weight: 900;
}

.form-stack,
.form-row {
  display: grid;
  gap: 12px;
}

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

label,
fieldset {
  min-width: 0;
}

label {
  display: grid;
  gap: 6px;
  color: #53616a;
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
}

select {
  min-height: 44px;
}

textarea {
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus,
summary:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(18, 107, 105, 0.22);
  outline-offset: 1px;
  border-color: var(--accent);
}

.search-field input {
  min-height: 48px;
  font-size: 15px;
}

.inline-options {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.inline-options summary,
.advanced-tools > summary {
  cursor: pointer;
  font-weight: 800;
}

.inline-options summary {
  color: #526069;
  font-size: 13px;
}

.inline-options[open] summary {
  margin-bottom: 12px;
}

.primary-button {
  width: 100%;
  min-height: 48px;
  background: var(--accent);
  border-color: var(--accent);
}

.primary-button:hover {
  background: #d93600;
  color: #fff;
}

.secondary-button {
  align-self: flex-start;
  background: #fff;
  color: var(--text);
  border-color: var(--line-strong);
}

.secondary-button:hover {
  border-color: var(--brand-dark);
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented legend {
  width: 100%;
  margin-bottom: 2px;
  color: #53616a;
  font-size: 12px;
  font-weight: 800;
}

.segmented label,
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.segmented label {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
}

.segmented input,
.toggle input {
  width: auto;
}

.library-field {
  display: grid;
  gap: 8px;
}

.field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #53616a;
  font-size: 12px;
  font-weight: 800;
}

.field-heading small {
  color: var(--muted);
  font-weight: 650;
}

input[readonly] {
  background: var(--surface-muted);
  color: var(--muted);
}

.library-list {
  min-width: 0;
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.brand-branch {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.brand-node {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-left: 5px solid var(--brand);
  background: #282d31;
  color: #fff;
}

.brand-node strong,
.brand-node span {
  overflow-wrap: anywhere;
}

.brand-node span {
  color: #dce2e0;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.library-children {
  min-width: 0;
  display: grid;
  gap: 7px;
  margin-left: 16px;
  padding-left: 13px;
  border-left: 2px solid var(--line);
}

.library-item {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.library-item:hover {
  background: var(--brand-soft);
  color: var(--text);
  border-color: var(--brand);
}

.library-item.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.library-item input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.library-name {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.library-name strong,
.library-name span {
  overflow-wrap: anywhere;
}

.library-name span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.empty-branch {
  padding: 11px 12px;
  color: var(--muted);
  background: var(--surface-muted);
}

.results-section {
  min-width: 0;
  margin-top: 18px;
  padding: 24px;
}

.empty-results {
  min-height: 180px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-subtle);
  color: var(--muted);
  text-align: center;
}

.empty-results strong {
  color: var(--text);
  font-size: 17px;
}

.asset-grid {
  display: grid;
  gap: 22px;
}

.asset-group {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.asset-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.asset-group-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.asset-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.variant-links {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.variant-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.variant-card.error {
  border-color: #efbab6;
  background: #fff2f0;
}

.variant-card h3 {
  overflow-wrap: anywhere;
}

.variant-downloads,
.asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-downloads a,
.asset-actions a,
.asset-actions button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.variant-downloads a:hover,
.asset-actions a:hover,
.asset-actions button:hover {
  background: var(--accent);
  color: #fff;
}

.asset-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.asset-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #e7eceb;
}

.asset-media img,
.asset-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.asset-media .fallback {
  padding: 14px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.asset-body {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.asset-title {
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.asset-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.advanced-tools {
  margin-top: 18px;
}

.advanced-tools > summary {
  padding: 18px 20px;
  list-style-position: inside;
}

.advanced-tools > summary > span {
  display: inline-grid;
  gap: 2px;
  margin-left: 5px;
  vertical-align: middle;
}

.advanced-tools > summary small {
  color: var(--muted);
  font-weight: 600;
}

.advanced-tools[open] > summary {
  border-bottom: 1px solid var(--line);
}

.advanced-body {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: var(--surface-subtle);
}

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

.panel,
.response-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.panel-head,
.pane-head {
  align-items: flex-start;
}

.pane-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.pane-head button {
  min-height: 34px;
  padding: 6px 10px;
  background: #fff;
  color: var(--text);
  border-color: var(--line-strong);
}

#response-output {
  min-height: 280px;
  max-height: 620px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid #293034;
  background: #111719;
  color: #ffe0d6;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

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

  .login-brand-panel {
    min-height: 300px;
    padding: 34px;
  }

  .workflow-grid,
  .advanced-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .login-body {
    display: block;
    padding: 0;
    background: var(--surface);
  }

  .login-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-brand-panel {
    min-height: 245px;
    gap: 30px;
    padding: 28px 24px;
  }

  .login-brand-mark {
    width: fit-content;
    height: auto;
    font-size: 24px;
  }

  .login-brand-copy h1 {
    font-size: 34px;
  }

  .login-brand-copy > p:last-child {
    display: none;
  }

  .login-form-panel {
    padding: 34px 24px 48px;
  }

  .wizard-progress button {
    min-height: 42px;
    padding-inline: 6px;
    font-size: 0;
  }

  .wizard-progress button span {
    font-size: 12px;
  }

  .delivery-choice,
  .wizard-review {
    grid-template-columns: 1fr;
  }

  .delivery-choice.asset-family-choice {
    grid-template-columns: 1fr;
  }

  .wizard-step {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-block: 18px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .shell {
    padding: 16px 12px 32px;
  }

  .workspace,
  .results-section,
  .connector-builder {
    padding: 16px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .workflow-card {
    padding: 15px;
  }

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

  .secondary-button {
    width: 100%;
  }

  .library-children {
    margin-left: 8px;
    padding-left: 9px;
  }

  .asset-group-grid {
    grid-template-columns: 1fr;
  }

  .builder-category-list {
    grid-template-columns: 1fr;
  }

  .builder-category-list label:nth-child(odd) {
    border-right: 0;
  }

  .advanced-tools > summary {
    padding: 16px;
  }

  .advanced-tools > summary small {
    display: none;
  }

  .advanced-body {
    padding: 12px;
  }

  .pane-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
