.logo3d-wrap { max-width: 1440px; }
.l3-editor { display: grid; grid-template-columns: 310px minmax(0,1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.l3-sidebar { border-right: 1px solid var(--line); min-width: 0; }
.l3-tabs { display: flex; padding: 12px 10px; gap: 4px; border-bottom: 1px solid var(--line); }
.l3-tabs button { flex: 1; min-width: 0; padding: 9px 5px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--dim); font: 500 12px 'Inter',sans-serif; cursor: pointer; }
.l3-tabs button[aria-selected="true"] { background: var(--lg-fill); border-color: var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); color: var(--white); }
.l3-controls { margin: 0; padding: 20px; border: 0; min-width: 0; height: 600px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.l3-controls [hidden], .l3-stage-col [hidden] { display: none !important; }
.l3-field { display: block; color: var(--white); font-size: 13px; font-weight: 500; margin-bottom: 19px; }
.l3-field output { float: right; font-family: 'JetBrains Mono',monospace; font-size: 11px; color: var(--dim); }
.l3-field select, .l3-field textarea, .l3-field input[type="file"] { display: block; width: 100%; margin-top: 9px; background: var(--black-2); border: 1px solid var(--line-strong); border-radius: 7px; padding: 10px; color: var(--white); font: 13px 'Inter',sans-serif; }
.l3-field textarea { resize: vertical; min-height: 70px; }
.l3-field input[type="range"] { display: block; width: 100%; margin-top: 14px; accent-color: var(--white); cursor: pointer; }
.l3-color { display: flex; align-items: center; justify-content: space-between; }
.l3-color input, .l3-background input { width: 34px; height: 28px; padding: 2px; border: 1px solid var(--line-strong); background: transparent; border-radius: 5px; cursor: pointer; }
.l3-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.l3-controls .l3-actions { margin-bottom: 20px; }
.l3-file { position: relative; overflow: hidden; cursor: pointer; }
.l3-file input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.l3-drop { display: flex; flex-direction: column; gap: 8px; text-align: center; border: 1px dashed var(--line-strong); padding: 24px 12px; border-radius: 8px; font-size: 14px; }
.l3-drop span { font-size: 11px; color: var(--dim); }
.l3-drop input { width: 100%; font-size: 11px; margin-top: 8px; }
.l3-drop.is-over { border-color: var(--accent); }
.l3-help { color: var(--dim); font-size: 12px; line-height: 1.6; margin: 10px 0 18px; overflow-wrap: anywhere; }
.l3-advanced { border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; }
.l3-advanced summary { cursor: pointer; }
.l3-check { display: flex; align-items: center; gap: 9px; font-size: 13px; margin: 15px 0; }
.l3-check input { accent-color: var(--white); }
.l3-download { width: 100%; margin-top: 18px; }
.l3-material-samples { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.l3-material-samples button { width: 30px; height: 30px; border: 2px solid var(--line-strong); border-radius: 50%; cursor: pointer; box-shadow: none; }
.l3-material-samples button[aria-pressed="true"] { outline: 2px solid var(--white); outline-offset: 3px; }
.l3-stage-col { min-width: 0; display: flex; flex-direction: column; }
.l3-stage { position: relative; min-height: 490px; flex: 1; background: #17171b; overflow: hidden; touch-action: none; }
.l3-stage canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.l3-stage:fullscreen { width: 100vw; height: 100vh; }
.l3-loading { position: absolute; inset: 0; display: grid; place-content: center; padding: 30px; color: var(--dim); font-size: 14px; text-align: center; z-index: 1; pointer-events: none; }
.l3-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.l3-background { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.l3-status-row { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 18px; border-top: 1px solid var(--line); }
.l3-status-row p { font-size: 12px; color: var(--dim); line-height: 1.6; }
.l3-status-row p.is-error { color: var(--bad); }
#l3Progress { width: calc(100% - 36px); height: 4px; margin: 0 18px 14px; accent-color: var(--white); }
.l3-privacy { margin: 18px 0; color: var(--dim); font-size: 12px; line-height: 1.6; }
.l3-editor :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.l3-editor button:disabled { opacity: .5; cursor: wait; }
@media (max-width: 900px) { .l3-editor { grid-template-columns: 270px minmax(0,1fr); } .l3-controls { padding: 16px; } .l3-stage { min-height: 430px; } }
@media (max-width: 680px) { .l3-editor { display: flex; flex-direction: column; } .l3-stage-col { order: -1; } .l3-stage { height: 350px; min-height: 350px; flex: none; } .l3-sidebar { border-right: 0; border-top: 1px solid var(--line); } .l3-controls { height: auto; max-height: none; } .l3-toolbar { padding: 12px; } .l3-background { margin-left: auto; } .l3-tabs { position: sticky; top: 0; z-index: 2; background: var(--card); } }
@media (prefers-reduced-transparency: reduce) { .l3-tabs button[aria-selected="true"] { background: var(--card-2); backdrop-filter: none; } }
