:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #17191d;
  background: #f3f4f6;
  font-synthesis: none;
  --muted: #7c8089;
  --line: #e2e4e8;
  --accent: #202228;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled,
input:disabled {
  cursor: default;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #222;
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
button,
input {
  -webkit-tap-highlight-color: transparent;
}
.app-header {
  height: 112px;
  padding: 24px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}
.brand-icon {
  display: block;
  width: 43px;
  height: 47px;
  border-radius: 60% 40% 60% 40%;
  transform: rotate(-23deg);
  background: linear-gradient(
    130deg,
    #fff 8%,
    #f3f6fa 24%,
    #9ba8b8 42%,
    #fff 55%,
    #bbc8d9 70%,
    #6b7786
  );
  box-shadow:
    inset 1px 1px 2px white,
    inset -1px -1px 3px #5f6e8180,
    0 7px 12px #242f3e20;
}
.eyebrow {
  font:
    10px/1.4 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.085em;
  color: var(--muted);
}
h1 {
  font-size: 29px;
  letter-spacing: -1.2px;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.version {
  color: #91959d;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  border-left: 1px solid #cdd0d5;
  padding-left: 14px;
}
.app-header nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}
.app-header nav > button {
  padding: 11px 14px;
}
.app-header nav > button:first-child {
  color: #727781;
}
.primary {
  border-radius: 8px;
  background: #202228;
  color: #fff;
  padding: 12px 18px;
  font-size: 12px;
  transition: background 0.15s;
}
.primary:hover {
  background: #393c43;
}
.primary span {
  margin-left: 14px;
}
.subtle,
.wide-button {
  border: 1px solid #d5d8df;
  background: #ffffff90;
  border-radius: 8px;
  padding: 11px 14px;
}
.workspace {
  height: calc(100dvh - 112px);
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  gap: 28px;
  padding: 24px 28px 24px 34px;
  max-width: 2000px;
  margin: auto;
}
.preview-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.segmented {
  display: flex;
  border: 1px solid #dce0e6;
  background: #e9ebef;
  border-radius: 9px;
  padding: 3px;
  gap: 3px;
}
.segmented button {
  padding: 9px 16px;
  font-size: 11px;
  color: #7d828b;
  border-radius: 6px;
  white-space: nowrap;
}
.segmented [aria-pressed="true"] {
  background: white;
  color: #242830;
  box-shadow: 0 1px 4px #26334912;
}
.quiet {
  color: #747a85;
  font-size: 11px;
  padding: 8px;
}
.stage {
  flex: 1;
  min-height: 330px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #1945c2, #fe809d, #fc603c);
  isolation: isolate;
  box-shadow: 0 2px 5px #161a2410;
}
.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.stage-meta {
  position: absolute;
  top: 22px;
  left: 23px;
  right: 23px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font:
    9px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 0.08em;
  pointer-events: none;
}
.stage-meta > span:last-child {
  margin-left: auto;
  opacity: 0.65;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 5px #fff8;
}
.object-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.liquid-glass {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  max-width: calc(100% - 40px);
  color: white;
  pointer-events: auto;
  background: transparent;
  border: 0;
  isolation: isolate;
}
.liquid-glass span {
  pointer-events: none;
}
.stage-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font:
    9px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 0.03em;
  color: #fff9;
  pointer-events: none;
}
.preset-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 0 2px;
}
.preset-bar > .eyebrow {
  font-size: 9px;
  white-space: nowrap;
}
.preset-options {
  display: flex;
  gap: 8px;
  flex: 1;
}
.preset-options button {
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid #dce0e5;
  border-radius: 30px;
  padding: 7px 12px 7px 7px;
  font-size: 10px;
  background: #ffffff70;
  transition: border-color 0.2s;
}
.preset-options button:hover {
  border-color: #9ca4af;
}
.preset-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow:
    inset 0 1px 2px #fff,
    inset 0 -1px 3px #7d8da0a0,
    0 2px 5px #30394b15;
  background: linear-gradient(140deg, #fafcffb0, #b5c7df80, #fff);
}
.orb-1 {
  background: linear-gradient(140deg, #ffffff, #dce4ec, #eef1f7);
}
.orb-2 {
  background: conic-gradient(
    from 45deg,
    #e4efff,
    #a1cdff,
    #d9bcfd,
    #ffd5e5,
    #e4efff
  );
}
.orb-3 {
  background: linear-gradient(140deg, #a9b4c5, #3d485e, #77879e);
}
.preview-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 2px 0;
  max-width: 660px;
  color: #8b909a;
  font-size: 11px;
  line-height: 1.6;
  min-height: 35px;
}
.note-mark {
  font-size: 17px;
  line-height: 1;
}
.editor {
  background: #ffffffa8;
  border: 1px solid #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  box-shadow: 0 3px 16px #404c6010;
}
.editor-heading {
  padding: 23px 23px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.editor-heading h2 {
  font-size: 23px;
  letter-spacing: -0.8px;
  font-weight: 500;
  margin-top: 6px;
}
.editor-heading .eyebrow {
  font-size: 9px;
}
.editor-index {
  font:
    9px ui-monospace,
    SFMono-Regular,
    monospace;
  color: #9ba1ab;
  align-self: start;
  margin-top: 3px;
}
.editor-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
  flex: none;
}
.editor-tabs button {
  padding: 13px 2px;
  font-size: 11px;
  position: relative;
  color: #8b9098;
}
.editor-tabs [aria-selected="true"] {
  color: #16191d;
}
.editor-tabs [aria-selected="true"]:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 15px;
  right: 15px;
  background: #242830;
  height: 2px;
}
.control-panel {
  padding: 0 23px 23px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #d3d7df transparent;
  overscroll-behavior: contain;
}
.section-label {
  font:
    9px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 0.06em;
  color: #8b9099;
  margin: 25px 0 18px;
  font-weight: 400;
}
.color-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 23px;
}
.color-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.color-row small {
  display: block;
  font:
    9px ui-monospace,
    SFMono-Regular,
    monospace;
  color: #90959e;
  margin-top: 5px;
}
.color-row input[type="color"] {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #dce0e6;
  padding: 3px;
  background: #fff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
}
.color-row input::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-row input::-webkit-color-swatch {
  border: 0;
  border-radius: 50%;
}
.range-field {
  display: block;
  margin: 18px 0 22px;
}
.range-field > span {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  align-items: baseline;
}
.range-field output {
  font:
    11px ui-monospace,
    SFMono-Regular,
    monospace;
  color: #555e6b;
}
.range-field small {
  font-size: 9px;
  color: #9da3ac;
  margin-left: 3px;
}
.range-field input {
  display: block;
  width: 100%;
  height: 3px;
  appearance: none;
  background: #e0e3e8;
  margin: 15px 0 0;
  border-radius: 5px;
  accent-color: #343940;
  cursor: pointer;
}
.range-field input::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  background: #4e5560;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px #c1c7d0,
    0 1px 3px #0002;
}
.range-field input::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  background: #4e5560;
  border-radius: 50%;
}
.range-field.disabled {
  opacity: 0.4;
}
.field-note {
  font-size: 11px;
  color: #858c98;
  line-height: 1.65;
  margin: 10px 0 17px;
}
.editor-footer {
  border-top: 1px solid var(--line);
  padding: 13px 20px;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 9px;
  color: #989eaa;
  flex: none;
}
.status-dot {
  width: 4px;
  height: 4px;
  background: #83a897;
  border-radius: 50%;
}
.shape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.shape-grid button {
  border: 1px solid #e0e3e9;
  border-radius: 8px;
  padding: 15px 3px 10px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  font-size: 10px;
  color: #858c98;
}
.shape-grid [aria-pressed="true"],
.scene-grid [aria-pressed="true"] {
  border-color: #7b838e;
  background: #f0f2f5;
  color: #222;
}
.shape-icon {
  display: block;
  width: 26px;
  height: 20px;
  border: 1px solid #9fa7b4;
  border-radius: 5px;
  background: linear-gradient(130deg, #fff, #c8d0da60);
}
.shape-button {
  height: 11px;
  margin: 5px 0 4px;
  border-radius: 4px;
}
.shape-pill {
  height: 12px;
  margin: 4px 0;
  border-radius: 10px;
}
.shape-circle {
  border-radius: 50%;
  width: 21px;
}
.shape-square {
  width: 21px;
}
.text-field {
  display: block;
  font-size: 11px;
  margin-top: 24px;
}
.text-field input {
  width: 100%;
  margin-top: 10px;
  border: 1px solid #dfe3e9;
  background: #fff;
  border-radius: 7px;
  padding: 10px;
  font-size: 12px;
}
.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.scene-grid button {
  padding: 6px 6px 10px;
  border: 1px solid #e0e3e9;
  border-radius: 9px;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.scene-swatch {
  display: block;
  width: 100%;
  aspect-ratio: 1.7;
  border-radius: 5px;
}
.scene-ribbon {
  background: linear-gradient(135deg, #3469dc, #fa8fba, #ff5a40);
}
.scene-aurora {
  background: linear-gradient(135deg, #073e4a, #31a89a, #c0dd6c);
}
.scene-mono {
  background: radial-gradient(ellipse at 18% 30%, #efefef, transparent 62%), radial-gradient(ellipse at 80% 78%, #aaa, transparent 65%), linear-gradient(135deg, #171717, #686868 48%, #151515);
}
.scene-sunset {
  background: linear-gradient(150deg, #661c46, #fa6d46, #ffc77e);
}
.saved-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.wide-button {
  display: block;
  text-align: center;
  width: 100%;
  font-size: 11px;
  margin-top: 10px;
}
.wide-button.primary {
  background: #202228;
  border-color: #202228;
}
.import-label {
  cursor: pointer;
}
.import-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.import-label:focus-within {
  outline: 2px solid #222;
  outline-offset: 3px;
}
.export-intro {
  margin: 27px 0 22px;
}
.export-intro h3 {
  font-weight: 500;
  font-size: 25px;
  letter-spacing: -0.7px;
  line-height: 1.15;
}
.export-intro p {
  font-size: 11px;
  color: #8b919b;
  margin-top: 10px;
}
.export-tabs {
  display: flex;
  gap: 3px;
  border-bottom: 1px solid var(--line);
}
.export-tabs button {
  padding: 9px 7px;
  font-size: 10px;
  color: #8d939d;
}
.export-tabs [aria-pressed="true"] {
  color: #1d2229;
  border-bottom: 1px solid #1d2229;
}
.export-description {
  min-height: 56px;
  margin-top: 14px;
}
#code-output {
  display: block;
  width: 100%;
  height: 230px;
  background: #edf0f4;
  color: #535d6b;
  border: 1px solid #e0e4eb;
  border-radius: 8px;
  padding: 12px;
  font:
    9px/1.7 ui-monospace,
    SFMono-Regular,
    monospace;
  resize: vertical;
  white-space: pre;
  tab-size: 2;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 10px);
  background: #202228;
  color: white;
  padding: 12px 20px;
  box-shadow: 0 4px 20px #0002;
  border-radius: 30px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 10;
  max-width: 90vw;
  text-align: center;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid #e4e7ed;
  background: #fafbfd;
  color: #252a31;
  border-radius: 20px;
  padding: 42px;
  max-width: 540px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 100px #0003;
}
dialog::backdrop {
  background: #161d2c70;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 36px;
  letter-spacing: -1.3px;
  font-weight: 500;
  line-height: 1.1;
  margin: 22px 0;
}
dialog p {
  font-size: 12px;
  line-height: 1.8;
  color: #737c8a;
  margin-top: 15px;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 11px;
  font-size: 26px;
  color: #89919f;
  padding: 4px 8px;
}
@media (min-width: 1550px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
  }
  .app-header {
    padding: 24px 40px;
  }
  .workspace {
    padding-left: 40px;
  }
  .stage {
    min-height: 500px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    gap: 18px;
    padding: 20px;
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .app-header {
    padding: 20px;
  }
  .version {
    display: none;
  }
  .preset-bar {
    gap: 8px;
    flex-wrap: wrap;
  }
  .preset-bar > .eyebrow {
    width: 100%;
  }
  .preset-options {
    gap: 5px;
  }
  .preset-options button {
    padding-right: 9px;
  }
  .preview-note {
    font-size: 10px;
  }
}
@media (max-width: 760px) {
  .app-header {
    height: 88px;
    padding: 16px;
    gap: 6px;
  }
  .brand {
    gap: 10px;
  }
  .brand-icon {
    width: 30px;
    height: 35px;
  }
  h1 {
    font-size: 23px;
    letter-spacing: -0.9px;
  }
  .brand .eyebrow {
    font-size: 8px;
  }
  .app-header nav {
    gap: 2px;
  }
  .app-header nav > button {
    padding: 10px;
    font-size: 10px;
  }
  .app-header nav > button:first-child {
    display: none;
  }
  .app-header #save {
    display: none;
  }
  .workspace {
    height: calc(100dvh - 88px);
    min-height: 640px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(260px, 0.9fr) minmax(310px, 1fr);
    gap: 15px;
    padding: 12px;
  }
  .preview-panel {
    min-height: 0;
  }
  .preview-toolbar {
    margin-bottom: 9px;
  }
  .segmented button {
    font-size: 10px;
    padding: 7px 12px;
  }
  .stage {
    min-height: 150px;
    border-radius: 12px;
  }
  .stage-meta {
    top: 12px;
    left: 14px;
    right: 14px;
    font-size: 7px;
  }
  .stage-caption {
    bottom: 12px;
    left: 14px;
    right: 14px;
    font-size: 7px;
  }
  .stage-caption > span:last-child {
    display: none;
  }
  .preset-bar {
    margin-top: 9px;
    gap: 3px;
    flex-wrap: nowrap;
  }
  .preset-bar > .eyebrow {
    display: none;
  }
  .preset-options {
    gap: 5px;
  }
  .preset-options button {
    font-size: 9px;
    padding: 4px 8px 4px 4px;
    gap: 5px;
  }
  .preset-orb {
    width: 18px;
    height: 18px;
  }
  .quiet {
    font-size: 10px;
    padding: 6px;
  }
  .preview-note {
    display: none;
  }
  .editor {
    border-radius: 12px;
    min-height: 0;
  }
  .editor-heading {
    display: none;
  }
  .editor-tabs {
    padding: 0 10px;
  }
  .editor-tabs button {
    padding: 13px 0;
  }
  .control-panel {
    padding: 0 18px 18px;
  }
  .section-label {
    margin-top: 20px;
  }
  .editor-footer {
    padding: 10px 18px;
  }
  .range-field {
    margin: 15px 0 22px;
  }
  dialog {
    padding: 30px;
  }
  dialog h2 {
    font-size: 30px;
  }
  .export-intro {
    margin: 20px 0 15px;
  }
  .export-intro h3 {
    font-size: 22px;
  }
  .export-intro h3 br {
    display: none;
  }
  .export-description {
    min-height: 0;
  }
  #code-output {
    height: 160px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
/* Keep the workspace bounded while the editor scrolls independently. */
.workspace {
  min-height: 0;
}
.stage {
  min-height: 220px;
}
.eyebrow,
.field-note,
.preview-note,
.quiet,
.editor-tabs button,
.color-row small {
  color: #6c7480;
}
.editor-tabs [aria-selected="true"] {
  color: #17191d;
}
.editor-footer {
  color: #737c89;
}
@media (max-width: 760px) {
  .workspace {
    min-height: 0;
    grid-template-rows: minmax(220px, 0.9fr) minmax(240px, 1fr);
  }
  .stage {
    min-height: 130px;
  }
}
@media (max-width: 360px) {
  .preset-options button {
    padding-right: 5px;
    gap: 3px;
  }
  .preset-orb {
    width: 14px;
    height: 14px;
  }
  .preset-bar .quiet {
    font-size: 9px;
    padding: 3px;
  }
  .app-header .primary {
    font-size: 9px;
    padding: 10px 8px;
  }
  .primary span {
    margin-left: 4px;
  }
}
.stage[data-scene="aurora"] {
  background: linear-gradient(135deg, #073e4a, #31a89a, #c0dd6c);
}
.stage[data-scene="mono"] {
  background: radial-gradient(ellipse at 18% 30%, #efefef, transparent 62%), radial-gradient(ellipse at 80% 78%, #aaa, transparent 65%), linear-gradient(135deg, #171717, #686868 48%, #151515);
}
.stage[data-scene="sunset"] {
  background: linear-gradient(150deg, #661c46, #fa6d46, #ffc77e);
}
/* Expanded optical model and element configurations. */
.finish-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.finish-options button {
  border: 1px solid #d8dde4;
  border-radius: 7px;
  padding: 11px 4px;
  font-size: 11px;
  color: #727b88;
}
.finish-options [aria-pressed="true"] {
  border-color: #4d5662;
  color: #20252c;
  background: #edf0f3;
}
.control-group {
  border-top: 1px solid #e2e5ea;
  margin: 16px 0 0;
}
.control-group summary {
  padding: 17px 0 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.control-group summary:after {
  content: "+";
  font-size: 13px;
  color: #7e8895;
}
.control-group[open] summary:after {
  content: "−";
}
.control-group summary::-webkit-details-marker {
  display: none;
}
.control-group .color-row {
  margin-top: 18px;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  margin: 20px 0;
}
.check-field input {
  accent-color: #303841;
}
.preset-options {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.preset-options::-webkit-scrollbar {
  display: none;
}
.preset-options button {
  flex: none;
}
.orb-4 {
  background: conic-gradient(#e7f9ff, #ff6c42, #f7e7ff, #143ea8, #e7f9ff);
}
.orb-5 {
  background: conic-gradient(#fff, #17232e, #fff, #a3b5c0, #252f39, #fff);
}
.stage[data-scene="studio"] {
  background: #ddd;
}
@media (max-width: 760px) {
  .preset-options {
    gap: 5px;
  }
  .preset-bar {
    min-width: 0;
  }
  .preset-bar > .quiet {
    flex: none;
  }
}
.media-upload {
  position: relative;
  cursor: pointer;
  background: #eef0f4;
  border-style: dashed;
  padding: 18px 10px;
}
.media-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.media-upload:focus-within {
  outline: 2px solid #222;
  outline-offset: 3px;
}
.media-summary {
  background: #edf0f4;
  border: 1px solid #dce1e8;
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.media-summary strong {
  display: block;
  font-weight: 500;
}
.media-summary span {
  display: block;
  color: #6c7581;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 7px;
}
.media-actions {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}
.media-actions button {
  border: 1px solid #dce1e8;
  border-radius: 6px;
  padding: 9px 7px;
  font-size: 10px;
  flex: 1;
}
.media-actions [aria-pressed="true"] {
  background: #e6eaf0;
  border-color: #8993a1;
}
.scene-swatch.scene-studio {
  background: linear-gradient(135deg, #ddd, #f4f4f4, #c9c9c9);
}
.background-media[hidden] {
  display: none;
}
.stage[data-scene="media"] {
  background: #1c2530;
}
.stage.drop-active::after {
  content: "Drop photo or video";
  position: absolute;
  inset: 12px;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #121c2bba;
  backdrop-filter: blur(5px);
  border: 2px dashed #ffffffc0;
  border-radius: 12px;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.5px;
  pointer-events: none;
}
.media-upload.drop-active {
  background: #dce4ee;
  border-color: #46576d;
  outline: 2px solid #46576d;
  outline-offset: 3px;
}
/* Keep hidden file inputs inside the scrolling editor rather than the page. */
.control-panel,
.import-label {
  position: relative;
}
.scene-ducati {
  background-image: url("../assets/ducati-panigale-thumb.jpg");
  background-size: cover;
  background-position: center;
}
.editor-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.editor-tabs button {
  min-width: 0;
  font-size: 10px;
}
.text-field select,
.text-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 9px;
  border: 1px solid #dfe3e9;
  background: #fff;
  border-radius: 7px;
  padding: 10px;
  font:
    12px/1.4 Arial,
    Helvetica,
    sans-serif;
  color: #20252c;
}
.text-field textarea {
  resize: vertical;
  min-height: 65px;
}
.text-effects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.text-effects button {
  border: 1px solid #dce1e8;
  border-radius: 7px;
  background: #ffffff80;
  padding: 12px 5px;
  font-size: 11px;
  color: #687380;
}
.text-effects [aria-pressed="true"] {
  background: #e9eef3;
  border-color: #626f7d;
  color: #1b2633;
}

.asset-upload {
  position: relative;
  cursor: pointer;
  border-style: dashed;
  padding: 18px 10px;
  margin-top: 14px;
}
.asset-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.asset-upload:focus-within,
.asset-upload.drop-active {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.shape-asset {
  border-radius: 40% 60% 55% 45%;
  transform: rotate(-12deg);
}

.stage[data-scene="signal"]{background:linear-gradient(-18deg,#ff4d0b calc(50% - 58px),#fff5df calc(50% - 58px) calc(50% - 8px),#1b1714 calc(50% - 8px) calc(50% + 8px),#fff5df calc(50% + 8px) calc(50% + 58px),#ff4d0b calc(50% + 58px));}
.scene-signal{background:linear-gradient(-18deg,#ff4d0b 35%,#fff5df 35% 47%,#1b1714 47% 53%,#fff5df 53% 65%,#ff4d0b 65%);}
.scene-redwood { background:url('../assets/redwood-forest-thumb.jpg') center/cover; }

.scene-ski { background:url('../assets/ski-mountains-thumb.jpg') center/cover; }

.scene-wave { background:url('../assets/ocean-wave-thumb.jpg') center/cover; }

.shape-icon.shape-text{background:none;border:0;border-radius:0;font:600 24px/20px Georgia,serif}
.shape-icon.shape-text::before{content:"T"}
