.editor-workspace {
  --rail-width: 256px;
  --settings-width: 512px;
  --preview-fade: #1f1f1f;
  font: 400 14px/20px 'Cal Sans', Inter, sans-serif;
  background:#101010;
}
.editor-workspace [hidden] {display:none!important}
.editor-workspace :is(button,input,select,textarea){font:inherit}
.editor-workspace .link-rail{background:#101010;padding:8px;overflow:hidden}
.editor-rail-tools{display:flex;align-items:center;justify-content:space-between;padding:8px 4px;height:48px;flex:none}
.editor-rail-tools .editor-back{display:inline-flex;align-items:center;gap:8px;min-height:32px;margin:0;padding:0 8px}
.editor-glyph{width:16px;height:16px;display:inline-block;flex:none}
.editor-rail-tools .sq,.format-tools button,[data-copy-address]{background:transparent;border:0;box-shadow:none}
.link-rail #editor-navigation > div{border-color:#292929;padding:8px 4px;gap:4px;margin-bottom:8px}
.link-rail #editor-navigation small{display:block;height:24px;color:#a3a3a3;font-size:14px;line-height:20px;padding:4px 8px 0}
.link-rail #editor-navigation button{border:0;border-radius:10px;box-shadow:none;display:flex;align-items:center;gap:8px;padding:6px 8px;height:32px;background:transparent;color:#d4d4d4;font-weight:400}
.link-rail #editor-navigation button:is(:hover,[aria-current=true]){background:#1c1c1c;color:#fafafa}
.editor-search-results{display:grid;gap:4px;margin-top:12px}
.editor-search-results button{justify-content:flex-start}
.editor-workspace .editor-box{background:#141414;border:1px solid #292929;border-radius:16px;min-width:0}
.editor-workspace .editor-box > header{flex:0 0 57px;min-height:57px;padding:0 16px;background:#0f0f0f;border-bottom:1px solid #242424}
.editor-box #editor-title{font:400 18px/28px 'Cal Sans',sans-serif;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.editor-box [data-link-actions]{flex:none;display:flex;align-items:center;gap:12px}
.editor-box [data-link-actions] .segmented{display:flex;align-items:center;overflow:hidden;border:1px solid #303030;border-radius:10px;background:#191919}
.editor-box [data-link-actions] .sq{width:32px;height:30px;display:grid;place-items:center;border:0;border-radius:0;background:transparent;box-shadow:none}
.editor-box [data-link-actions] .sq + .sq{border-left:1px solid #303030}
.editor-box [data-link-actions] .sq:hover:enabled{background:#292929}
.editor-box [data-link-actions] > .btn{min-height:32px;height:32px;padding:0 12px;border-radius:10px}
.publication-settings .question-rows { margin: 0 0 12px; }
.publication-settings > p { margin-bottom: 0; }
.editor-workspace .form-section{padding:20px;border-color:#262626}
.editor-workspace .form-section>.field+.field{margin-top:20px}
.editor-workspace .field{gap:4px;font-size:14px;font-weight:400;line-height:16px}
.editor-workspace .field :is(input:not([type=checkbox],[type=file]),select),.editor-workspace .input-prefix,.editor-workspace .inline-setting{
  min-height:32px;height:32px;border:1px solid #363636;border-radius:10px;padding:0 11px;background:#1c1c1c;color:#f5f5f5;box-shadow:0 1px 2px #0002
}
.editor-workspace .field .input-prefix{display:flex;align-items:center;gap:0;color:#a3a3a3}
.editor-workspace .field .input-prefix input[name=slug]:not([type=checkbox]){flex:1;min-width:0;border:0;box-shadow:none;background:transparent;padding:0}
.editor-workspace [data-copy-address]{display:grid;place-items:center;padding:0;width:24px;height:24px}
.editor-workspace .description-control{border-radius:10px;border:1px solid #303030;background:#1c1c1c}
.editor-workspace .format-tools{height:44px;gap:4px;padding:0 8px;background:#202020}
.editor-workspace .format-tools button{padding:0;width:28px;height:28px;display:grid;place-items:center}
.editor-workspace .field .description-control .format-tools select[data-paragraph]{flex:none;min-width:72px;border:0;box-shadow:none;width:auto;height:28px;background:transparent;padding:0 3px;color:#d4d4d4}
.editor-workspace .field .description-control textarea[name=description]{box-shadow:none;border:0;border-radius:0;background:transparent;height:80px;min-height:80px;padding:12px;line-height:20px}
.editor-workspace .field :is(input,textarea,select):focus-visible,
.editor-workspace .field :is(.input-prefix,.description-control):focus-within{border-color:#61616b}
.editor-workspace .inline-setting{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left}
.inline-setting span{color:#a3a3a3}
.equipment-spots-panel .editor-layout{display:grid;gap:0;min-height:100%;align-items:stretch}
.editor-workspace .equipment-spots-panel{padding:0}
.equipment-spots-panel .editor-controls{background:#141414;border:0;border-radius:0;padding:20px;min-width:0}
.editor-controls h2{font:400 16px/24px 'Cal Sans',sans-serif;margin:0 0 12px}
.spot-canvas {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
}
.spot-canvas > .model-stage {
  position: absolute;
  inset: 0;
  min-height: 0;
}
.spot-viewer-actions {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}
@media(min-width:761px){
  .editor-workspace{display:grid;grid-template-columns:var(--rail-width) minmax(0,1fr);height:100dvh;padding:0 8px 40px 0}
  .editor-workspace .editor-box{margin:8px 0 0}
  .editor-workspace :is(.editor-inner,.equipment-spots-panel .editor-layout){grid-template-columns:minmax(295px,min(46%,var(--settings-width))) minmax(0,1fr)}
  .editor-workspace .equipment-spots-panel { overflow: hidden; }
  .equipment-spots-panel > div, .equipment-spots-panel .editor-layout { height: 100%; }
  .equipment-spots-panel .editor-controls { min-height: 0; overflow: auto; }
  .editor-workspace .link-form-panel{padding-right:0;scrollbar-gutter:stable;border-right:1px solid #202020}

}
@media(min-width:761px) and (max-width:1180px){.editor-workspace{--rail-width:200px}}
@media(max-width:760px){
  .editor-workspace .link-rail{overflow:visible}
  .editor-workspace .editor-rail-tools{padding:0;height:32px;gap:8px}
  .editor-workspace .editor-box{margin-top:0;border-radius:12px}
  .editor-workspace .editor-box>header{padding:0 10px}
  .editor-box [data-link-actions]{gap:6px}
  .editor-box [data-link-actions] .sq{width:26px}
  .editor-box [data-link-actions] > .btn{padding:0 8px}
  .equipment-spots-panel .editor-layout{grid-template-columns:minmax(0,1fr)}
  .spot-canvas { min-height: clamp(300px, 54svh, 520px); }
}


.editor-workspace .editor-back .editor-glyph { filter: invert(1); }
.editor-workspace .field { gap: 7px; line-height: 20px; }
.package-settings, .equipment-photos-form, .link-profile-person > div:last-child { display: grid; gap: 14px; }
.equipment-photos-form { border-bottom: 0; }
.package-settings > .btn { justify-self: start; }
.editor-workspace.full-sponsor-preview { grid-template-columns: minmax(0,1fr); padding: 0; }
.full-sponsor-preview .link-rail, .full-sponsor-preview .editor-box > header { display:none; }
.editor-workspace.full-sponsor-preview .editor-box { margin:0; border:0; border-radius:0; }
.editor-workspace.full-sponsor-preview .live-preview { grid-template-rows: auto minmax(0,1fr); }
.setup-next {
  padding: 0 20px 20px;
}
.public-empty.with-equipment {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  place-items: stretch;
  padding: 0;
}
.public-empty.with-equipment > div {
  min-width: 0;
  max-width: none;
}
.public-empty.with-equipment > div:first-child {
  padding: 20px;
  overflow-wrap: anywhere;
}
.public-empty .empty-equipment-stage {
  display: grid;
  background: #202020;
}
.empty-equipment-stage .gear-gallery {
  min-width: 0;
}
.editor-workspace .live-preview:not(.preview-expanded) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  min-height: 0;
  padding: clamp(10px, 2vw, 28px);
  background: var(--preview-fade);
}
.editor-workspace .live-preview:not(.preview-expanded) .preview-frame {
  width: 100%;
  height: min(86%, 600px);
  min-height: 0;
  margin: 0;
  border: 1px solid #343434;
  border-radius: 12px;
  overflow: hidden;
}
.editor-workspace .live-preview:not(.preview-expanded) iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  transform: none;
}
.editor-workspace .live-preview[data-focus='form'] .preview-frame {
  border: 0;
}
.live-preview[data-focus='form'] iframe,
:root:has(.side-sponsor-preview[data-preview-section='form']),
.side-sponsor-preview[data-preview-section='form'] .preview-questions {
  background: transparent;
}
.editor-workspace .live-preview:not(.preview-expanded)::after { content: none; }
.preview-edges { display: none; }
.side-sponsor-preview .gallery-placeholder {
  margin: 0;
  color: var(--muted);
}
@media (min-width: 1024px) {
  .editor-workspace .live-preview:not(.preview-expanded) {
    --preview-shift: clamp(26px, 3.4vw, 58px);
  }
  .editor-workspace .live-preview[data-focus]:not(.preview-expanded) .preview-frame {
    transition: transform 440ms cubic-bezier(.2,.7,.25,1);
  }
  .editor-workspace .live-preview:is([data-focus=details], [data-focus=equipment]) .preview-frame {
    width: calc(100% - var(--preview-shift));
  }
  .editor-workspace .live-preview[data-focus=details] .preview-frame {
    transform: translateX(var(--preview-shift));
  }
  .live-preview:not(.preview-expanded) > .preview-edges {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    pointer-events: none;
  }
  .preview-edges::before,
  .preview-edges::after {
    content: '';
    position: absolute;
    inset-block: 0;
    width: clamp(90px, 34%, 242px);
    opacity: 0;
    transition: opacity 440ms ease;
  }
  .preview-edges::before {
    left: 0;
    background: linear-gradient(to right, #141414, #141414e0 32%, transparent);
  }
  .preview-edges::after {
    right: 0;
    background: linear-gradient(to left, #141414, #141414e0 32%, transparent);
  }
  .live-preview[data-focus=equipment] > .preview-edges::before,
  .live-preview[data-focus=details] > .preview-edges::after {
    opacity: 1;
  }
}
@media (min-width: 520px) {
  .side-sponsor-preview {
    --preview-details: 38%;
  }
  .side-sponsor-preview[data-preview-section='photos'] {
    --preview-details: 26%;
  }
  .side-sponsor-preview :is(.public-empty.with-equipment, .public-shell:not(.text-offer) .sponsor-grid) {
    display: grid;
    grid-template-columns: minmax(0, var(--preview-details)) minmax(0, 1fr);
    transition: grid-template-columns 440ms cubic-bezier(.2,.7,.25,1);
  }
  .side-sponsor-preview .public-shell:not(.text-offer) .equipment-stage {
    position: sticky;
    top: 0;
    order: 0;
    height: 100dvh;
    min-height: 0;
  }
}
@media (max-width: 519px) {
  .side-sponsor-preview:not([data-preview-section='photos']) .public-shell:not(.text-offer) .equipment-stage {
    order: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-preview .preview-frame,
  .preview-edges::before,
  .preview-edges::after,
  .side-sponsor-preview :is(.public-empty.with-equipment, .sponsor-grid) {
    transition: none !important;
  }
}
.side-sponsor-preview .preview-questions {
  padding: clamp(12px, 3vw, 26px);
}
.side-sponsor-preview .preview-questions > section {
  min-width: 0;
}
.side-sponsor-preview .spot-detail { padding: clamp(12px, 3vw, 22px); }

@media (max-width: 519px) {
  .public-empty.with-equipment { grid-template-columns: minmax(0, 1fr); }
  .side-sponsor-preview[data-preview-section='photos'] .empty-equipment-stage { grid-row: 1; }
}
@media (max-width: 760px) {
  .editor-workspace .live-preview:not(.preview-expanded) { height: 500px; flex: none; }
  .editor-workspace .live-preview:not(.preview-expanded) .preview-frame { height: 100%; }
  .full-sponsor-preview .live-preview.preview-expanded .preview-frame { height: calc(100dvh - 70px); }
}

.intro-video-settings {
  display: grid;
  gap: 16px;
}
.intro-video-settings :is(h2, p) {
  margin: 0 0 8px;
}
.intro-video-settings .intro-status { margin: 0; overflow-wrap: anywhere; }
.intro-video-settings .intro-status:empty { display: none; }
.intro-video-settings .intro-choose-file {
  min-height: 132px;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px dashed #505050;
  border-radius: 12px;
  background: var(--panel);
  white-space: normal;
}
.intro-choose-file:is(.btn:hover, .btn:focus-visible) {
  border-color: #74747c;
  background: #252525;
}
.intro-choose-file small { color: var(--muted); }
.intro-video-settings video {
  display: block;
  width: 100%;
  max-height: 320px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101010;
  object-fit: contain;
}
