.editing main { max-width: 1600px; }
#editor-view { --editor-line: #6e7588; --editor-muted: #b7bac8; }
#editor-view h3 { margin: 0 0 12px; font-size: 1rem; overflow-wrap: anywhere; }
#editor-view p { line-height: 1.7; }
#editor-view .section-heading p { margin: 8px 0 0; }
.editor-muted, .editor-field small, #editor-view small { color: var(--editor-muted); font-size: .8rem; line-height: 1.6; }
.editor-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.editor-inline > * { min-width: 0; max-width: 100%; }
.editor-import-help { margin-bottom: 16px; color: var(--editor-muted); font-size: .8rem; }
.editor-project-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid #444c60; }
.editor-project-row > button:first-child { text-align: left; flex: 1 1 220px; }
.editor-project-row time { color: var(--editor-muted); font-size: .75rem; }
.editor-project-row > button:last-child { font-size: .8rem; }
.editor-empty { padding: 16px 0; margin: 0; color: var(--editor-muted); font-size: .9rem; }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 16px; }
.editor-toolbar > div { min-width: 0; max-width: 100%; }
.editor-toolbar h3 { margin-bottom: 5px !important; }
#editor-save-status { color: var(--editor-muted); font-size: .8rem; }
#editor-view[aria-busy="true"] #editor-save-status::after { content: ' · 처리 중…'; }
.editor-toolbar button { font-size: .8rem; }
#editor-view .editor-primary { color: #171927; background: #ffd281; border-color: #ffd281; font-weight: 600; }
.editor-validation { margin: 0 0 16px; font-size: .8rem; color: #8ee0bd; }
.editor-validation[data-valid="false"], .editor-warning { color: #ffb6a5; }
.editor-workbench { display: grid; grid-template-columns: 170px minmax(0, 1fr) 320px; border: 1px solid var(--editor-line); align-items: start; background: #171927; }
#editor-outline { padding: 16px 10px; min-width: 0; }
#editor-outline > button { display: block; width: 100%; text-align: left; border-color: transparent; background: transparent; font-size: .85rem; padding: 10px; }
#editor-outline button:hover { background: #36374c; }
#editor-outline button[aria-pressed="true"] { background: #ffd281; color: #171927; }
#editor-outline h3 { padding-left: 10px; color: #b7bac8; font-size: .8rem; }
.editor-outline-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 24px; }
.editor-outline-heading h3 { margin: 0 !important; flex: 1; }
.editor-outline-heading button { padding: 6px; font-size: .75rem; }
#editor-outline .editor-scene-button { margin-top: 8px; border-top: 1px solid #444c60; }
.editor-scene-children { display: grid; padding-left: 12px; }
.editor-scene-children button { min-height: 44px; text-align: left; padding: 8px; border-color: transparent; background: transparent; color: #b7bac8; font-size: .75rem; }
.editor-center { min-width: 0; padding: 16px; border-left: 1px solid var(--editor-line); }
.editor-stage-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .8rem; }
.editor-stage-heading label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--editor-muted); }
.editor-stage-scroll { overflow: auto; background: #10141d; border: 1px solid var(--editor-line); }
.editor-stage { position: relative; width: 100%; }
#editor-canvas { width: 100%; height: auto; touch-action: none; }
#editor-canvas:focus-visible { outline-offset: -4px; }
.editor-draw-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; font-size: .8rem; }
.editor-draw-tools span { flex-basis: 100%; }
.editor-draw-tools button { font-size: .75rem; }
#editor-stage-help { margin: 12px 0; }
.editor-collection-list { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-collection-list button { max-width: 100%; overflow-wrap: anywhere; text-align: left; font-size: .8rem; }
.editor-inspector { min-width: 0; border-left: 1px solid var(--editor-line); padding: 16px; max-height: min(900px, 90vh); overflow: auto; }
.editor-inspector > h3 { margin-bottom: 20px !important; }
.editor-field { margin-bottom: 14px; min-width: 0; }
.editor-field label { display: block; margin-bottom: 7px; font-size: .8rem; color: #eee5d0; overflow-wrap: anywhere; }
#editor-view input:not([type="checkbox"]), #editor-view textarea, #editor-view select { min-width: 0; max-width: 100%; width: 100%; min-height: 44px; background: #10141d; color: #eee5d0; border: 1px solid #858598; border-radius: 2px; padding: 10px; font: inherit; font-size: .85rem; }
#editor-view input[readonly] { color: #b7bac8; }
#editor-view textarea { display: block; min-height: 90px; resize: vertical; line-height: 1.7; }
#editor-view input[type="checkbox"] { width: 44px; height: 44px; margin: 0; accent-color: #ffd281; }
#editor-view input[aria-invalid="true"] { border-color: #ffb6a5; }
#editor-view small { display: block; margin: 6px 0; overflow-wrap: anywhere; }
#editor-view fieldset { min-width: 0; padding: 12px; border: 1px solid #6e7588; margin: 16px 0; }
#editor-view fieldset fieldset { padding: 10px; }
#editor-view legend { max-width: 100%; padding: 0 5px; font-size: .8rem; color: #ffd281; overflow-wrap: anywhere; }
#editor-view fieldset button { font-size: .75rem; padding: 8px; max-width: 100%; }
.editor-vector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.editor-vector .editor-field { margin: 0; }
.editor-point { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: end; margin: 8px 0; }
.editor-point .editor-field { margin: 0; }
.editor-point label { font-size: .75rem; }
.editor-line { margin: 12px 0 18px; border-bottom: 1px solid #444c60; padding-bottom: 12px; }
.editor-line > strong { display: block; font-size: .75rem; color: var(--editor-muted); margin-bottom: 10px; }
.editor-asset-preview { width: 100%; max-height: 240px; object-fit: contain; background: #10141d; border: 1px solid var(--editor-line); }
#editor-view .editor-danger { color: #ffb6a5; margin-top: 20px; }
#editor-preview-view { padding-top: 8px; }
#editor-preview-view > .editor-inline { margin-bottom: 16px; }
#editor-preview-view p { font-size: .85rem; color: var(--editor-muted); }
#editor-view button:disabled { cursor: default; }
@media (max-width: 980px) {
  .editor-workbench { grid-template-columns: 145px minmax(0, 1fr); }
  .editor-inspector { grid-column: 1 / -1; max-height: none; border-left: 0; border-top: 1px solid var(--editor-line); }
  .editor-inspector > .editor-field, .editor-inspector > fieldset { max-width: 700px; }
}
@media (max-width: 600px) {
  .editor-workbench { grid-template-columns: minmax(0, 1fr); }
  #editor-outline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 12px; }
  #editor-outline > h3 { flex-basis: 100%; margin: 4px 0; }
  #editor-outline > button { width: auto; font-size: .75rem; }
  .editor-outline-heading { flex-basis: 100%; margin-top: 8px; }
  .editor-scene-children { display: flex; flex-wrap: wrap; flex-basis: 100%; padding-left: 0; }
  .editor-center { border-left: 0; border-top: 1px solid var(--editor-line); padding: 12px; }
  .editor-inspector { padding: 12px; }
  .editor-toolbar .editor-inline { gap: 6px; }
  .editor-toolbar button { flex: 1 1 auto; }
  .editor-project-row time { flex-basis: 100%; }
}
