:root {
  --bg: #101114;
  --panel: #17191e;
  --panel-2: #202329;
  --field: #111317;
  --text: #f4f1ea;
  --muted: #9a9da5;
  --line: rgba(255, 255, 255, .08);
  --accent: #ed774f;
  --accent-2: #d9b060;
  --ok: #89d28f;
  --bad: #f14f64;
  --radius: 18px;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Geist, "Avenir Next", "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 28% -12%, rgba(237, 119, 79, .2), transparent 34%),
    linear-gradient(180deg, #14161b 0%, var(--bg) 52%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(237, 119, 79, .8);
  outline-offset: 2px;
}

.title-name-results {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 7px;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111317;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .28);
}

.title-name-results[hidden] {
  display: none;
}

.title-name-result {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.title-name-result:hover,
.title-name-result:focus-visible {
  border-color: rgba(237, 119, 79, .45);
  background: rgba(237, 119, 79, .09);
}

.title-name-result small {
  color: var(--muted);
}

.shell {
  width: min(1480px, calc(100% - 44px));
  margin: 0 auto;
  padding: 24px 0 46px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.brand,
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.synthetic-test-menu {
  position: relative;
}

.synthetic-test-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(153, 210, 255, .38);
  border-radius: 999px;
  background: rgba(93, 169, 232, .12);
  color: #d9efff;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  transition: border-color 150ms var(--ease), background 150ms var(--ease), transform 150ms var(--ease);
}

.synthetic-test-menu summary::-webkit-details-marker {
  display: none;
}

.synthetic-test-menu summary:hover,
.synthetic-test-menu[open] summary {
  border-color: rgba(153, 210, 255, .7);
  background: rgba(93, 169, 232, .22);
  transform: translateY(-1px);
}

.synthetic-test-menu summary:focus-visible {
  outline: 2px solid rgba(153, 210, 255, .85);
  outline-offset: 2px;
}

.synthetic-test-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #1a1c21;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
}

.synthetic-test-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 10px;
  background: #d9efff;
  color: #12161a;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.synthetic-test-panel a:hover {
  background: #f0f9ff;
}

.synthetic-test-panel p {
  margin: 11px 3px 1px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.synthetic-test-panel strong {
  color: #e8eaee;
}

.template-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.template-picker {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 145px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.template-picker span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.template-picker select {
  min-height: 34px;
  padding: 0 9px;
  font-size: 12px;
}

.template-action {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

.template-action:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--text);
  color: #111317;
  font: 700 13px SFMono-Regular, Consolas, monospace;
}

.brand div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand strong {
  font-size: 17px;
  letter-spacing: -.02em;
}

.brand span:last-child,
.hero p,
.section-head p {
  color: var(--muted);
}

.status-pill {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c7c9cf;
  font-size: 12px;
}

.guide-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid #e88d5b;
  border-radius: 999px;
  background: #e88d5b;
  color: #17181c;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(232, 141, 91, .18);
  transition: background 150ms var(--ease), border-color 150ms var(--ease), box-shadow 150ms var(--ease), transform 150ms var(--ease);
}

.guide-link:hover {
  border-color: #f2aa7e;
  background: #f2aa7e;
  box-shadow: 0 7px 22px rgba(232, 141, 91, .3);
  transform: translateY(-1px);
}

.onelink-shell {
  max-width: 1240px;
}

.onelink-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding: 48px 0 34px;
}

.onelink-intro h1 {
  max-width: 760px;
  margin: 10px 0 12px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -.055em;
}

.onelink-intro p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.onelink-defaults {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(23, 25, 30, .78);
  overflow: hidden;
}

.onelink-defaults div {
  padding: 17px 18px;
  border-left: 1px solid var(--line);
}

.onelink-defaults div:first-child {
  border-left: 0;
}

.onelink-defaults dt,
.onelink-output dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.onelink-defaults dd,
.onelink-output dd {
  margin: 6px 0 0;
  font-weight: 700;
}

.onelink-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  gap: 18px;
  align-items: start;
}

.onelink-builder,
.onelink-output {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(23, 25, 30, .9);
}

.onelink-builder {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.onelink-builder > label,
.manual-uuid label,
.onelink-fields label {
  display: grid;
  gap: 8px;
}

.onelink-builder label > span,
.manual-uuid label > span,
.onelink-fields label > span {
  color: #c6c8ce;
  font-size: 12px;
  letter-spacing: .04em;
}

.onelink-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.onelink-step:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.onelink-step > span {
  color: var(--accent-2);
  font: 700 11px SFMono-Regular, Consolas, monospace;
}

.onelink-step > div {
  display: grid;
  gap: 3px;
}

.onelink-step strong {
  font-size: 18px;
}

.onelink-step small,
.manual-uuid small {
  color: var(--muted);
  line-height: 1.5;
}

.input-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.input-action button,
.final-link button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(217, 176, 96, .45);
  border-radius: 12px;
  background: rgba(217, 176, 96, .12);
  color: #f0d38d;
  font-weight: 700;
}

.title-results {
  display: grid;
  gap: 8px;
}

.title-result {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 66px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  color: var(--text);
  text-align: left;
}

.title-result:hover,
.title-result[aria-pressed="true"] {
  border-color: rgba(237, 119, 79, .7);
  background: rgba(237, 119, 79, .08);
}

.title-result img,
.title-poster-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.title-poster-placeholder {
  display: grid;
  place-items: center;
  background: var(--panel-2);
  color: var(--muted);
  font: 700 11px SFMono-Regular, Consolas, monospace;
}

.title-result > span:nth-child(2) {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.title-result strong,
.title-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-result small {
  color: var(--muted);
}

.title-result em {
  color: var(--accent-2);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.onelink-output [hidden] {
  display: none !important;
}

.onelink-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.onelink-check {
  grid-column: 1 / -1;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
}

.onelink-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

.onelink-actions button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.primary-action {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #14161b;
  font-weight: 800;
}

.onelink-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

.onelink-status.error {
  color: #ff9aaa;
}

.onelink-status.success {
  color: var(--ok);
}

.onelink-output {
  position: sticky;
  top: 24px;
  min-height: 390px;
  padding: 28px;
}

.onelink-output h2 {
  margin: 14px 0 8px;
  font-size: 26px;
  letter-spacing: -.035em;
}

.onelink-output > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.onelink-output dl {
  display: grid;
  gap: 10px;
  margin: 26px 0;
}

.onelink-parameters > div {
  display: grid;
  gap: 7px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.onelink-mini-flow {
  display: grid;
  gap: 8px;
  margin: 22px 0 8px;
  padding: 0;
  counter-reset: onelink-flow;
  list-style: none;
}

.onelink-mini-flow li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: start;
  color: #c6c8ce;
  font-size: 12px;
  line-height: 1.5;
  counter-increment: onelink-flow;
}

.onelink-mini-flow li::before {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(217, 176, 96, .34);
  border-radius: 999px;
  color: #f0d38d;
  content: counter(onelink-flow);
  font: 700 10px SFMono-Regular, Consolas, monospace;
}

.onelink-parameters dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.onelink-parameters dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.onelink-parameters code {
  overflow-wrap: anywhere;
  color: var(--text);
  font: 600 12px/1.5 SFMono-Regular, Consolas, monospace;
}

.onelink-parameters button,
.onelink-transfer-actions > button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  color: #f0d38d;
  font-weight: 700;
}

.onelink-transfer-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.onelink-transfer-actions .primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #14161b;
  text-decoration: none;
  white-space: nowrap;
}

.onelink-register {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.onelink-register label > span {
  color: #c6c8ce;
  font-size: 12px;
  letter-spacing: .04em;
}

.onelink-output a {
  display: block;
  overflow-wrap: anywhere;
  color: #f0d38d;
}

.final-link {
  display: grid;
  gap: 9px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.final-link label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.final-link textarea {
  min-height: 120px;
  resize: vertical;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .onelink-intro,
  .onelink-workspace {
    grid-template-columns: 1fr;
  }

  .onelink-defaults {
    width: 100%;
  }

  .onelink-output {
    position: static;
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .onelink-intro {
    padding-top: 22px;
  }

  .onelink-intro h1 {
    font-size: 44px;
  }

  .onelink-defaults,
  .onelink-fields,
  .input-action {
    grid-template-columns: 1fr;
  }

  .onelink-defaults div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .onelink-defaults div:first-child {
    border-top: 0;
  }

  .onelink-builder,
  .onelink-output {
    padding: 20px;
  }

  .title-result {
    grid-template-columns: 42px 1fr;
  }

  .title-result img,
  .title-poster-placeholder {
    width: 42px;
    height: 42px;
  }

  .title-result em {
    grid-column: 2;
  }

  .onelink-transfer-actions {
    flex-direction: column;
  }
}

.onelink-guide {
  margin: 0 0 16px;
  border: 1px solid rgba(217, 176, 96, .38);
  border-radius: var(--radius);
  background: linear-gradient(115deg, rgba(217, 176, 96, .12), rgba(32, 35, 41, .7) 58%);
  overflow: hidden;
}

.onelink-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding: 21px 24px;
  list-style: none;
  cursor: pointer;
  transition: background 150ms var(--ease);
}

.onelink-guide summary::-webkit-details-marker {
  display: none;
}

.onelink-guide summary:hover,
.onelink-guide[open] summary {
  background: rgba(217, 176, 96, .06);
}

.onelink-guide summary:focus-visible {
  outline: 2px solid rgba(217, 176, 96, .82);
  outline-offset: -3px;
}

.onelink-guide-heading {
  display: grid;
  gap: 5px;
}

.onelink-guide-label {
  color: var(--accent-2);
  font: 700 11px SFMono-Regular, Consolas, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.onelink-guide-heading strong {
  color: var(--text);
  font-size: 20px;
  letter-spacing: -.025em;
}

.onelink-guide-heading > span:last-child {
  color: #b8bac1;
  font-size: 13px;
  line-height: 1.45;
}

.onelink-guide-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 132px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(217, 176, 96, .44);
  border-radius: 11px;
  color: #f0d79f;
  font-size: 13px;
  font-weight: 700;
}

.onelink-guide-action span {
  transition: transform 150ms var(--ease);
}

.onelink-guide[open] .onelink-guide-action span {
  transform: rotate(180deg);
}

.onelink-guide-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  border-top: 1px solid rgba(217, 176, 96, .2);
}

.onelink-guide-install,
.onelink-guide-notes {
  min-width: 0;
  padding: 24px;
}

.onelink-guide-notes {
  border-left: 1px solid rgba(217, 176, 96, .2);
  background: rgba(11, 12, 15, .18);
}

.onelink-guide h2 {
  margin: 0 0 14px;
  font-size: 15px;
  letter-spacing: -.01em;
}

.onelink-guide ol,
.onelink-guide ul {
  margin: 0 0 17px;
  padding-left: 20px;
  color: #c8cad0;
  font-size: 13px;
  line-height: 1.55;
}

.onelink-guide li + li {
  margin-top: 7px;
}

.onelink-guide-install > code {
  display: block;
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0f12;
  color: #e8e2d5;
  font: 12px/1.55 SFMono-Regular, Consolas, monospace;
  overflow-x: auto;
  white-space: nowrap;
}

.onelink-guide-notes code {
  color: #f0d79f;
  font-family: SFMono-Regular, Consolas, monospace;
}

.onelink-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid var(--accent-2);
  border-radius: 11px;
  background: var(--accent-2);
  color: #17181c;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: background 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
}

.onelink-download:hover {
  border-color: #e8cb8d;
  background: #e8cb8d;
  transform: translateY(-1px);
}

.skill-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid #e88d5b;
  border-radius: 12px;
  background: #e88d5b;
  color: #17181c;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(232, 141, 91, .22);
  transition: background 150ms var(--ease), border-color 150ms var(--ease), box-shadow 150ms var(--ease), transform 150ms var(--ease);
}

.skill-download:hover {
  border-color: #f2aa7e;
  background: #f2aa7e;
  box-shadow: 0 10px 28px rgba(232, 141, 91, .34);
  transform: translateY(-1px);
}

.skill-download-large {
  min-height: 56px;
  padding: 0 24px;
  font-size: 15px;
}

.guide-hero {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.guide-hero h1 {
  margin: 8px 0 12px;
}

.guide-hero p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.65;
}

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

.skill-install {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 26px;
  align-items: stretch;
  margin: 0 auto 18px;
  padding: 28px;
  border: 1px solid rgba(232, 141, 91, .42);
  border-radius: 20px;
  background: linear-gradient(115deg, rgba(232, 141, 91, .12), rgba(255, 255, 255, .025));
}

.skill-install-lead h2 {
  margin: 12px 0 8px;
  font-size: 26px;
}

.skill-install-lead p {
  max-width: 520px;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.skill-install-steps {
  display: grid;
  gap: 10px;
  align-content: center;
}

.install-step {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 17, 20, .45);
}

.install-step strong {
  font-size: 13px;
}

.install-step code,
.install-step span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.guide-card {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .025);
}

.guide-number {
  color: #f0b18d;
  font: 700 12px SFMono-Regular, Consolas, monospace;
  letter-spacing: .12em;
}

.guide-card h2 {
  margin: 20px 0 8px;
  font-size: 18px;
}

.guide-card p,
.guide-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.guide-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(232, 141, 91, .35);
  border-radius: 18px;
  background: rgba(232, 141, 91, .06);
}

.guide-callout > div {
  flex: 1;
}

.guide-callout strong {
  display: block;
  margin-bottom: 5px;
}

.guide-callout code {
  color: #f0b18d;
}

.ghost-button,
.primary-button,
.ghost-link {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  transition: transform 150ms var(--ease), background 150ms var(--ease);
}

.ghost-button {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  text-decoration: none;
}

.ghost-button:hover,
.ghost-link:hover {
  background: rgba(255, 255, 255, .11);
}

.primary-button {
  background: var(--text);
  color: #111317;
  font-weight: 700;
}

.primary-button:hover {
  transform: translateY(-1px);
}

.hero {
  margin-bottom: 16px;
}

.hero > div,
.builder {
  border-radius: 24px;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.hero > div {
  padding: 34px;
}

.eyebrow {
  display: block;
  color: var(--accent-2);
  font: 11px SFMono-Regular, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-top: 12px;
  font-size: clamp(38px, 4.8vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 650;
}

.hero p {
  max-width: 760px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.55;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
}

.builder,
.upload-panel {
  padding: 24px;
  background: var(--panel);
}

.upload-panel {
  position: sticky;
  top: 18px;
  align-self: start;
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head.compact {
  align-items: flex-start;
}

.section-head h2 {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 600;
}

.section-head p {
  max-width: 640px;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
}

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

.form-layout-active .field-grid {
  display: block;
}

.form-block {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .018);
}

.form-block-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 2px 2px;
}

.form-block-title strong {
  color: var(--text);
  font-size: 15px;
}

.form-block-title span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.field-section-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 2px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.field-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.field-section-title strong {
  font-size: 15px;
}

.field-section-title span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

label,
.title-mode,
.countries-field,
.social-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .026);
}

label span,
legend {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

label span b,
legend b {
  color: var(--accent);
  font: inherit;
}

label > small,
fieldset > small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

label > small {
  min-height: 2.8em;
}

.submitter-identity-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 24px;
  color: var(--muted);
  font-size: 13px;
}

.submitter-identity-status a,
.identity-refresh {
  color: var(--accent);
  font: inherit;
}

.identity-refresh {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
}

.identity-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8ee6be;
}

.identity-verified::before {
  content: "✓";
}

legend,
.countries-field > legend,
.social-field > legend {
  padding: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  padding: 0 12px;
  font-size: 14px;
}

textarea {
  min-height: 88px;
  padding-top: 11px;
  padding-bottom: 11px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #6f737c;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
fieldset:has([aria-invalid="true"]) {
  outline: 1px solid var(--bad);
  outline-offset: 1px;
}

.field-error {
  color: #ffb4bf;
  font-size: 11px;
  line-height: 1.4;
}

select[multiple] {
  min-height: 162px;
  padding: 8px;
  background-image: none;
}

select[multiple] option {
  padding: 7px 8px;
  border-radius: 8px;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #777c85 50%),
    linear-gradient(135deg, #777c85 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 13px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field-notice {
  display: block;
  padding: 9px 10px;
  border: 1px solid rgba(217, 176, 96, .18);
  border-radius: 10px;
  background: rgba(217, 176, 96, .07);
  color: #c7bfae;
  font-size: 12px;
  line-height: 1.45;
}

.wide {
  grid-column: span 2;
}

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

.stream-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.stream-details[hidden] {
  display: none;
}

.stream-slot {
  display: grid;
  gap: 12px;
}

.title-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.title-mode legend {
  grid-column: 1 / -1;
}

.radio-row {
  flex-direction: row;
  align-items: center;
  padding: 0 10px;
  min-height: 42px;
  border-radius: 12px;
  background: var(--field);
}

.radio-row input {
  width: auto;
  min-height: 0;
  accent-color: var(--accent);
}

.radio-row span,
.check-row span {
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

.social-field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
}

.countries-field {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-content: start;
}

.countries-field > span,
.countries-field > legend,
.social-field > legend,
.countries-field > small,
.social-field > small {
  grid-column: 1 / -1;
}

.check-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: var(--field);
}

.check-row input {
  width: auto;
  min-height: 0;
  accent-color: var(--accent);
}

.texts-field {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .026);
}

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

.texts-option { min-width: 0; }
.texts-option .texts-input { margin-top: 8px; }
.texts-option .texts-input[hidden] { display: none; }

@media (max-width: 760px) {
  .texts-options { grid-template-columns: 1fr; }
}

.upload-zone {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 15px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .028);
}

.upload-zone span {
  color: var(--accent-2);
  font: 11px SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.upload-zone strong {
  font-size: 15px;
}

.source-input-label {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.source-mode-field,
.external-metadata,
#mixVariantField {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

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

.external-metadata > strong,
.external-metadata > small,
#mixVariantField > span,
#mixVariantField > small {
  grid-column: 1 / -1;
}

.result-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

.status-rail {
  display: grid;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.status-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.status-rail-head strong { font-size: 12px; }
.status-rail-head span { color: var(--muted); font-size: 10px; }

.status-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.status-step {
  position: relative;
  padding-top: 8px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.status-step::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
}

.status-step.is-active { color: var(--text); }
.status-step.is-active::before { background: var(--accent); }

.field-hint {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: var(--muted);
  font: 700 10px/1 Georgia, serif;
  cursor: help;
}

.error-summary {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(241, 79, 100, .35);
  border-radius: 12px;
  background: rgba(241, 79, 100, .1);
}

.error-summary[hidden] { display: none; }
.error-summary strong { color: #ffd4da; font-size: 12px; }
.error-summary > span { color: #f5bfc7; font-size: 11px; line-height: 1.45; }
.error-summary ul { display: grid; gap: 4px; margin: 3px 0 0; padding-left: 16px; color: #ffd4da; font-size: 11px; }

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.result-head span {
  color: var(--accent-2);
  font: 11px SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.result-head strong {
  color: var(--text);
  font-size: 13px;
  text-align: right;
}

.preview-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.enhancement-card,
.enhancement-details {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.enhancement-card {
  padding: 11px;
}

.enhancement-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.enhancement-title strong {
  font-size: 12px;
}

.enhancement-title span,
.enhancement-details p,
.enhancement-details li span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

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

.preflight-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border-radius: 9px;
  background: var(--field);
}

.preflight-item span {
  color: var(--muted);
  font-size: 10px;
}

.preflight-item strong {
  overflow-wrap: anywhere;
  font-size: 11px;
}

.preflight-ok { color: var(--ok); }
.preflight-warn { color: var(--accent-2); }
.preflight-bad { color: var(--bad); }
.preflight-neutral { color: var(--text); }

.enhancement-details {
  overflow: hidden;
}

.enhancement-details summary {
  cursor: pointer;
  padding: 10px 11px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.enhancement-details pre,
.enhancement-details > p,
.enhancement-details > ul {
  margin: 0;
  padding: 0 11px 11px;
}

.enhancement-details pre {
  overflow: auto;
  color: #d7dbe3;
  font: 10px/1.45 SFMono-Regular, Consolas, monospace;
  white-space: pre;
}

.enhancement-details ul {
  display: grid;
  gap: 7px;
  list-style: none;
}

.enhancement-details li {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 8px;
  background: var(--field);
  font-size: 11px;
}

.filename-list,
.download-list,
.error-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filename-list li,
.download-list li,
.error-list li {
  overflow-wrap: anywhere;
  border-radius: 12px;
  padding: 10px;
  background: var(--field);
  font-size: 12px;
  line-height: 1.45;
}

.filename-list li {
  color: #e9ebef;
  font-family: SFMono-Regular, Consolas, monospace;
}

.download-list li {
  background: rgba(137, 210, 143, .11);
}

.download-list a {
  color: #bff1c3;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

.download-list a:hover {
  text-decoration: underline;
}

.download-list {
  max-height: 260px;
  overflow: auto;
}

.error-list li {
  color: #ffd4da;
  background: rgba(241, 79, 100, .12);
}

.payload-details {
  border-radius: 12px;
  background: var(--field);
  color: var(--muted);
}

.payload-details summary {
  cursor: pointer;
  padding: 10px;
  font-size: 12px;
}

.payload-details pre {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 0 10px 10px;
  color: #d7dbe3;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.submit-row {
  margin-top: 14px;
}

.submit-row .primary-button {
  width: 100%;
}

.primary-button:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: .48;
}

.conditional-field[hidden] {
  display: none !important;
}

.public-service-info {
  max-width: 800px;
  margin: 32px auto;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.public-service-info h2 { margin-top: 28px; }
.public-service-info a, .selector-hero a { color: var(--accent, #e88d5b); text-decoration: underline; }
.product-selector-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.selector-hero {
  max-width: 920px;
  padding: 8vh 0 42px;
}

.selector-hero h1 {
  margin-top: 16px;
}

.selector-hero p {
  max-width: 600px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.product-card {
  min-height: 250px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 22px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .22);
}

.product-card-play {
  background: radial-gradient(circle at 15% 10%, rgba(237, 119, 79, .3), transparent 48%), var(--panel);
}

.product-card-yasmina {
  background: radial-gradient(circle at 15% 10%, rgba(217, 176, 96, .3), transparent 48%), var(--panel);
}

.product-code {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: var(--text);
  color: var(--field);
  font: 700 14px SFMono-Regular, Consolas, monospace;
}

.product-card-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.product-card-copy strong {
  font-size: 26px;
  letter-spacing: -.03em;
}

.product-card-copy span,
.product-arrow {
  color: var(--muted);
}

.product-arrow {
  font-size: 25px;
}

.ab-test-links {
  margin-top: 12px;
}

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

  .upload-panel {
    position: static;
  }
}

@media (max-width: 840px) {
  body {
    padding-bottom: 88px;
  }

  .shell {
    width: calc(100% - 24px);
    padding-top: 16px;
  }

  .topbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .skill-install {
    grid-template-columns: 1fr;
    padding: 22px;
  }

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

  .onelink-guide-body {
    grid-template-columns: 1fr;
  }

  .onelink-guide-notes {
    border-top: 1px solid rgba(217, 176, 96, .2);
    border-left: 0;
  }

  .template-tools {
    width: 100%;
    justify-content: flex-end;
  }

  .template-picker {
    flex: 1;
    min-width: 0;
  }

  .hero > div,
  .builder,
  .upload-panel {
    padding: 18px;
    border-radius: 18px;
  }

  h1 {
    font-size: 38px;
  }

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

  .form-block {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .form-block-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .field-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

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

  .selector-hero {
    padding-top: 5vh;
  }

  .wide {
    grid-column: auto;
  }

  .full {
    grid-column: auto;
  }

  .stream-details {
    grid-template-columns: 1fr;
  }

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

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

  .submit-row {
    position: fixed;
    z-index: 20;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(16, 17, 20, .94);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .34);
    backdrop-filter: blur(16px);
  }

}

@media (max-width: 560px) {
  .onelink-guide summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 19px;
  }

  .onelink-guide-action,
  .onelink-download {
    width: 100%;
  }

  .onelink-guide-install,
  .onelink-guide-notes {
    padding: 19px;
  }

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

  .top-actions > * {
    min-width: 0;
    width: 100%;
  }

  .top-actions .synthetic-test-menu {
    grid-column: 1 / -1;
  }

  .top-actions .synthetic-test-menu summary {
    width: 100%;
  }

  .top-actions .ghost-link,
  .top-actions .guide-link,
  .top-actions .status-pill,
  .top-actions .synthetic-test-menu summary {
    justify-content: center;
    text-align: center;
  }

  .top-actions .status-pill {
    display: inline-flex;
    align-items: center;
  }

  .onelink-shell .top-actions .guide-link {
    grid-column: 1 / -1;
    white-space: nowrap;
  }
}

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