body.editor { display:flex; flex-direction:column; min-height:100dvh; height:100dvh; overflow:hidden; }
.editor .studio-bar { flex-shrink:0; padding-inline:22px; gap:12px; }
.editor-bar-actions,.toolbar { display:flex; align-items:center; gap:9px; }
#status,.hint,.theme-panel p { color:var(--studio-muted); font-size:13px; }
.gallery { overflow:auto; padding:20px clamp(15px,4vw,58px) 55px; }
.gallery-header { display:flex; justify-content:space-between; align-items:center; margin:0 0 15px; }
.gallery-header h1 { margin:0; font-size:44px; line-height:1; letter-spacing:-.07em; }
.gallery-header h1 span { color:var(--studio-accent); font-size:20px; vertical-align:middle; margin-left:7px; letter-spacing:0; }
.thumbnails { display:grid; grid-template-columns:repeat(auto-fill,minmax(182px,1fr)); gap:12px; }
.editor .thumb { overflow:hidden; min-width:0; display:block; padding:0; text-decoration:none; background:var(--studio-paper); border:1px solid var(--studio-rule); border-radius:9px; }
.editor .thumb:hover { border-color:#ae8244; box-shadow:0 8px 24px -16px #61411690; }
.thumb-window { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; pointer-events:none; background:#e4dacb; }
.thumb-scene { position:absolute; width:1920px; height:1080px; overflow:hidden; transform:scale(var(--thumb-scale, .1)); transform-origin:left top; }
.thumb-scene .route-view :is(.route-detail,.route-overview-heading,.route-waypoint,.route-map-label) { transition:none; }
.thumb-label { display:flex; align-items:center; gap:8px; padding:8px 10px; font:13px/1.25 "Segoe UI",sans-serif; }
.thumb-label strong { color:var(--studio-accent); font-variant-numeric:tabular-nums; }
.thumb-label span { white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.theme-panel { padding:20px; background:var(--studio-paper); border:1px solid var(--studio-rule); border-radius:12px; margin-top:24px; }
.theme-panel h2 { margin:0; font-size:26px; letter-spacing:-.05em; }
.theme-panel p { margin:5px 0 16px; }
#global-properties { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; align-items:start; }
.theme-block { min-width:0; border:1px solid var(--studio-rule); border-radius:8px; padding:11px; }
.theme-block h3 { margin:0 0 10px; font-size:15px; }
.workspace { display:grid; grid-template-columns:minmax(0,1fr) 320px; flex:1; min-height:0; }
.work-area { min-width:0; min-height:0; display:grid; grid-template-rows:auto minmax(0,1fr) auto; padding:12px 16px; }
.toolbar { flex-wrap:wrap; }
#current-slide { font-weight:700; margin-right:auto; }
#viewport { position:relative; overflow:hidden; margin-top:12px; background:#e7e0d2; border-radius:9px; }
.editor #stage { box-shadow:0 8px 45px #2c251d38; user-select:none; }
#canvas,.edit-frame { position:absolute; inset:0; }
[data-edit-item]{cursor:pointer;}
.deck-edit-layer[data-edit-item]{cursor:move;touch-action:none;}
[data-edit-item].selected{outline:4px solid #1764a3;outline-offset:5px;z-index:5;}
.hint{margin:8px 0 0;}
.inspector { min-height:0; overflow:auto; padding:14px 12px 22px; border-left:1px solid var(--studio-rule); background:var(--studio-paper); }
.editor :is(.theme-panel,.inspector) label { display:grid; gap:3px; color:var(--studio-muted); min-width:0; font-size:13px; }
.editor :is(.theme-panel,.inspector) :is(input:not([type=range]),select,textarea) { width:100%; min-width:0; border:1px solid var(--studio-rule); border-radius:7px; padding:6px 7px; background:#fffefa; color:var(--studio-ink); }
.editor :is(.theme-panel,.inspector) input[type=color] { min-height:32px; padding:0 2px; }
.editor input[type=range] { width:100%; margin:4px 0; accent-color:#885e1b; }
.editor :is(.theme-panel,.inspector) .fields { display:grid; gap:9px; margin-block:9px; }
.editor :is(.theme-panel,.inspector) .pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
.inspector textarea { min-height:80px; resize:vertical; }
.inspector h2 { margin:14px 0 5px; font-size:14px; }
.inspector .empty { color:var(--studio-muted); }
.slide-theme { margin:0 0 12px; padding:8px; border:1px solid var(--studio-rule); border-radius:8px; }
.slide-theme summary{cursor:pointer;font-weight:650;}
.slide-theme .theme-block { border:0; padding:8px 0; }
.shadow-value { color:var(--studio-muted); font-size:12px; font-variant-numeric:tabular-nums; }
.shadow-actions { display:flex; flex-wrap:wrap; gap:6px; margin:9px 0; }
.shadow-actions button { font-size:12px; padding:6px 8px; }
@media(max-width:1000px){#global-properties{grid-template-columns:repeat(2,minmax(0,1fr));}.workspace{grid-template-columns:minmax(0,1fr) 280px;}}
@media(max-width:650px){.workspace{display:block;overflow:auto;}.work-area{height:55vh;}.inspector{border:0;}.thumbnails{grid-template-columns:repeat(2,minmax(0,1fr));}.editor .studio-bar{padding-inline:10px;}.editor-bar-actions{font-size:12px;}.studio-brand{font-size:13px;}}
