@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("montserrat-regular.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("montserrat-medium.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("montserrat-semibold.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("montserrat-bold.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("montserrat-extrabold.ttf") format("truetype"); }
:root {
  color-scheme: dark;
  --bg: #101015;
  --line: #ffffff11;
  --text: #ecebf2;
  --muted: #8a8a97;
  --accent: #b8a7f0;
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.workspace {
  display: grid;
  grid-template-columns: clamp(680px, 54vw, 900px) minmax(0, 1fr);
  height: 100dvh;
}
.controls {
  padding: 22px 28px 22px;
  overflow: auto;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 43px;
  flex-shrink: 0;
  margin-bottom: 44px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}
.brand > span {
  color: var(--accent);
  font-size: 25px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #92929f;
  font-size: 12px;
}
nav a {
  text-decoration: none;
}
.language {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
}
.language span {
  margin-left: 11px;
  color: #777784;
}
h1 {
  font-size: 24px;
  letter-spacing: -0.36px;
  margin: 0 0 8px;
  font-weight: 700;
}
.subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 29px;
}
form {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.channel-field {
  display: flex;
  flex-direction: column;
}
.channel-field input {
  font-size: 22px;
  font-weight: 700;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid #30313a;
  border-radius: 0;
  background: transparent;
}
.channel-field small {
  color: #c5ac79;
  margin: 9px 0 14px;
}
input::placeholder {
  color: #7c7c87;
}
.youtube-source {
  font-size: 13px;
  color: #92929f;
  margin: 2px 0 0;
}
.youtube-source summary {
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.youtube-source[open] summary {
  margin-bottom: 14px;
}
.divider {
  display: flex;
  gap: 13px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  margin: 42px 0 20px;
}
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}
.main-grid {
  row-gap: 12px;
}
.inline-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 38px;
  margin-bottom: 12px;
  font-size: 14px;
}
.inline-field select, .inline-field input[type="number"] {
  width: 150px;
  flex-shrink: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  margin: 14px 0;
}
.field input {
  width: 100%;
}
input,
select,
textarea {
  min-width: 0;
  background: #171a22;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--text);
}
.source-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.source-actions button { text-align: left; }
textarea { width: 100%; resize: vertical; font: 12px/1.5 monospace; border: 1px solid var(--line); }
.secondary { background: #25222f; color: var(--text); border: 1px solid #b8a7f04d; border-radius: 8px; padding: 8px 12px; }
.preview-modes { display: inline-flex; border: 1px solid var(--line); padding: 3px; border-radius: 10px; gap: 3px; }
.preview-modes button { border: 1px solid transparent; background: none; }
.preview-modes button[aria-pressed="true"] { background: #1b1c25; border-color: #ffffff22; color: var(--text); }
select {
  font-size: 13px;
  font-weight: 600;
  max-width: 100%;
}
small,
.hint {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.range-field {
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 13px;
  margin: 0 0 16px;
  font-size: 14px;
}
.range-field input {
  grid-column: span 2;
  width: 100%;
  accent-color: var(--accent);
  height: 6px;
  padding: 0;
  margin: 4px 0;
  background: #2a2d36;
}
.range-field output {
  color: var(--accent);
  font-weight: 650;
  text-align: right;
}
.smooth {
  position: relative;
  padding-right: 34px;
  margin-bottom: 14px;
}
.smooth output {
  position: absolute;
  right: 0;
  top: 31px;
}
.range-captions {
  grid-column: span 2;
  display: flex;
  justify-content: space-between;
  margin-top: -5px;
}
.range-captions small {
  font-size: 10px;
}
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  font-size: 14px;
}
.toggle input {
  appearance: none;
  flex-shrink: 0;
  width: 33px;
  height: 20px;
  padding: 0;
  border-radius: 20px;
  background: #303440;
  position: relative;
  cursor: pointer;
}
.toggle input:before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: #b3b8c4;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  transition: transform 0.16s;
}
.toggle input:checked {
  background: var(--accent);
}
.toggle input:checked:before {
  background: #15171d;
  transform: translateX(13px);
}
.more-divider {
  margin-top: 47px;
  margin-bottom: 15px;
}
.more-divider:after {
  display: none;
}
.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
}
.tabs button,
.text-button {
  background: none;
  border: 0;
  padding: 0;
  color: #9696a3;
  font-size: 13px;
}
.tabs button[aria-selected="true"] {
  color: var(--accent);
}
.tab-panel {
  padding-top: 18px;
}
.controls-bottom {
  margin-top: auto;
  padding-top: 65px;
}
.text-button {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.controls-bottom .hint {
  margin-bottom: 0;
  font-size: 10px;
}
.preview-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100dvh;
  background: #0a0a0d;
}
.preview-tools {
  flex-wrap: wrap;
  padding: 18px 28px 12px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-shrink: 0;
}
.preview-tools > span {
  font: 11px monospace;
  color: #8b8c99;
  white-space: nowrap;
}
.swatches {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.swatch {
  width: 19px;
  height: 19px;
  border: 1px solid #454650;
  border-radius: 50%;
  padding: 0;
}
.swatch.active {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}
.swatch.dark {
  background: #18181b;
}
.swatch.light {
  background: #eee;
}
.swatch.checker {
  background: conic-gradient(#777 25%, #ddd 0 50%, #777 0 75%, #ddd 0);
  background-size: 9px 9px;
}
.swatch.gradient {
  background: conic-gradient(#c1d7fa, #b577a6, #ebc773, #76b7c5, #c1d7fa);
}
.swatch.green {
  background: #00ed00;
  border-radius: 1px;
}
.dimensions {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: #7a7c89;
}
.dimensions input {
  width: 57px;
  padding: 4px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font: 11px monospace;
}
.dimensions button {
  font-size: 11px;
}
.preview-stage {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: radial-gradient(#ffffff0d 1px, transparent 1.2px);
  background-size: 22px 22px;
}
.preview-stage.light {
  background-color: #eee;
}
.preview-stage.checker {
  background: conic-gradient(#777 25%, #bbb 0 50%, #777 0 75%, #bbb 0);
  background-size: 24px 24px;
}
.preview-stage.gradient {
  background: linear-gradient(135deg, #92c7eb, #b581be, #dbb779);
}
.preview-stage.green {
  background: #00ed00;
}
#preview-shell {
  position: relative;
  background: #18181b;
  border: 1px solid #292b30;
  flex-shrink: 0;
  overflow: hidden;
}
iframe {
  border: 0;
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  background: transparent;
}
.obs-bar {
  border-top: 1px solid var(--line);
  padding: 16px 28px 18px;
  background: var(--bg);
  flex-shrink: 0;
}
.obs-bar > [role="status"] {
  font-size: 12px;
  color: #c5ac79;
}
.obs-options {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.obs-options button {
  background: #171a22;
  border: 1px solid #333640;
  border-radius: 7px;
  color: #d3d3df;
  padding: 7px 12px;
  font-size: 12px;
}
.obs-options a {
  color: #868796;
  text-decoration: none;
  font-size: 12px;
}
.copy-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.copy-row input {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  font: 11px monospace;
  color: #9395a4;
}
.copy-row button {
  font-size: 11px;
}
.obs-bottom {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}
.obs-bottom small {
  font-size: 12px;
  line-height: 1.5;
}
.primary {
  background: var(--accent);
  color: #15121e;
  border: 0;
  border-radius: 10px;
  padding: 13px 18px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.primary:hover {
  background: #c4b3f2;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  header {
    margin-bottom: 44px;
  }
  .controls {
    padding-right: 28px;
  }
  .preview-tools {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
@media (max-width: 1100px) {
  .preview-tools {
    flex-wrap: wrap;
    gap: 13px;
    padding: 16px;
  }
  .preview-tools > span {
    flex-basis: 100%;
  }
  .swatches {
    margin-left: 0;
  }
  .dimensions {
    margin-left: auto;
  }
  .two {
    column-gap: 18px;
  }
  .inline-field {
    font-size: 12px;
  }
  .inline-field select, .inline-field input[type="number"] {
    width: 120px;
  }
  .controls {
    padding: 18px;
  }
  .tabs {
    gap: 12px;
  }
  .tabs button {
    font-size: 11px;
  }
  .obs-bar {
    padding: 16px;
  }
  .obs-bottom {
    flex-wrap: wrap;
  }
  .obs-bottom small {
    font-size: 10px;
  }
}
@media (max-width: 900px) {
  .workspace {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .controls {
    overflow: visible;
    border: 0;
    padding: 20px;
  }
  .preview-column {
    height: 900px;
    min-height: 700px;
    order: -1;
  }
  .preview-stage {
    min-height: 500px;
  }
  header {
    margin-bottom: 25px;
  }
  .controls-bottom {
    padding-top: 35px;
  }
  .obs-bottom {
    flex-wrap: nowrap;
  }
  .preview-tools > span {
    flex-basis: auto;
  }
  .preview-tools {
    flex-wrap: wrap;
  }
  .preview-column {
    height: 85dvh;
    min-height: 650px;
  }
  .preview-stage {
    min-height: 0;
  }
  .obs-bottom small {
    max-width: 60%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.preview-stage.light #preview-shell,
.preview-stage.checker #preview-shell,
.preview-stage.gradient #preview-shell,
.preview-stage.green #preview-shell {
  background: transparent;
}

/* Keep the toolbar and stage geometry aligned with the reference configurator. */
.preview-stage { margin: 0 28px 24px; border-radius: 10px; }
.brand > span { text-box: trim-both cap alphabetic; }
.controls { scrollbar-width: thin; scrollbar-color: #ffffff1f transparent; }
.subtitle { font-size: 13.5px; }
#preview-shell { border: 0; outline: 1px solid #ffffff1f; }
@media (min-width: 901px) and (max-width: 1179px) {
  .workspace { grid-template-columns: 400px minmax(0, 1fr); }
  .two { grid-template-columns: 1fr; }
}

.widget-access { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0; color: #9498a7; font-size: 12px; }
.widget-access small { flex-basis: 100%; }
.widget-access input { width: 100%; }

.copy-row { align-items: center; }
.copy-row input { min-width: 0; flex: 1; }
.copy-row .reveal-url { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; padding: 4px; flex-shrink: 0; }
.reveal-url .eye-slash { display: none; }
.reveal-url[aria-pressed="true"] .eye-slash { display: block; }

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