.has-3d #office{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none}.has-3d .stage-top{z-index:4;background:linear-gradient(#111c24ed,#111c2400)}.has-3d .scene-label{top:91px;left:14px;z-index:3}.has-3d .scene-label h2{font-size:12px;color:#c7d3d9;font-weight:500}.has-3d .legend{z-index:4;background:#111d26e8}.has-3d #scene-notice{z-index:4}.has-3d .zoom{z-index:4;bottom:83px}.camera-toolbar{position:absolute;z-index:5;top:43px;left:12px;right:12px;display:flex;gap:5px;align-items:center;flex-wrap:wrap;pointer-events:auto}.camera-toolbar select{width:auto;font-size:11px;padding:6px;background:#15212be8;max-width:150px}.camera-toolbar button{font-size:11px;padding:6px 9px;background:#15212be8}.camera-toolbar button[aria-pressed=true]{background:#c4d678;color:#192321}.camera-toolbar #graphics-quality{margin-left:auto}.has-3d #render-stats{position:absolute;z-index:3;right:14px;top:90px;font-size:9px;letter-spacing:.4px;color:#98aab5;pointer-events:none}.has-3d #agent-label-3d{position:absolute;z-index:3;transform:translate(-50%,-100%);pointer-events:none;padding:5px 8px;background:#10202bcc;border:1px solid #81975466;border-radius:5px;font-size:11px;color:#e6edd9;white-space:nowrap;max-width:90%;overflow:hidden;text-overflow:ellipsis}.character-actions{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px}.character-actions button{font-size:11px;padding:7px 9px}.portrait img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.message-avatar img{width:18px;height:18px;border-radius:4px}
#character-editor{width:min(940px,95vw);height:min(780px,92dvh);max-height:92dvh;padding:0;overflow:hidden;border:1px solid #56665f;background:#14202a;border-radius:12px}#character-form{height:100%;display:flex;flex-direction:column}.character-heading{display:flex;justify-content:space-between;align-items:center;flex:none;padding:14px 18px;height:auto;background:#17252e;border-bottom:1px solid var(--line)}.character-heading small{font-size:9px;letter-spacing:2px;color:var(--lime)}.character-heading h2{font-size:18px;margin:4px 0 0}.character-heading button{border:0;background:none;font-size:25px;padding:0 4px}.character-body{display:grid;grid-template-columns:1fr 1fr;min-height:0;flex:1}.character-preview{position:relative;min-height:0;background:#1c2932;border-right:1px solid var(--line)}#character-preview-canvas{width:100%;height:100%;display:block;touch-action:none}.preview-caption{position:absolute;top:13px;left:15px;right:15px;pointer-events:none}.preview-caption b{display:block;font-size:15px;font-weight:500}.preview-caption small{display:block;margin-top:5px;font-size:10px;color:#a4b6c1}.preview-controls{position:absolute;bottom:12px;left:10px;right:10px;display:flex;justify-content:center;gap:4px}.preview-controls button{font-size:11px;padding:6px 9px;background:#14212bd9}.character-fields{padding:18px;overflow:auto;min-height:0}.character-fields label{display:block;font-size:11px;color:#b6c5ce}.character-fields input,.character-fields select{margin-top:5px;font-size:12px;padding:7px}.character-fields input[type=color]{height:34px;padding:3px}.appearance-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px}.identity-note{font-size:10px!important;line-height:1.6!important;margin:10px 0 15px!important;color:#8fa5b3}.character-footer{display:flex;flex:none;align-items:center;justify-content:space-between;padding:12px 15px;background:#17252e;border-top:1px solid var(--line);gap:10px}.character-footer>div{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.character-footer button{font-size:11px;padding:8px 10px;white-space:nowrap}#character-error{font-size:10px;line-height:1.5;max-width:36%;color:#b6c7b1}
@media(max-width:800px){.camera-toolbar{gap:4px;left:7px;right:7px}.camera-toolbar select{font-size:10px;max-width:125px;padding:5px}.camera-toolbar button{font-size:10px;padding:5px}.camera-toolbar #graphics-quality{margin-left:0}.has-3d .scene-label{top:112px}.has-3d #render-stats{top:auto;bottom:104px;right:12px}.character-heading h2{font-size:15px}.character-fields{padding:12px}.appearance-fields{gap:10px}}
@media(max-width:560px){#character-editor{height:94dvh;max-height:94dvh}.character-body{grid-template-columns:1fr;grid-template-rows:minmax(190px,40%) minmax(0,1fr)}.character-preview{border-right:0;border-bottom:1px solid var(--line)}.character-footer{display:block;padding:8px}#character-error{display:block;max-width:100%;margin-bottom:6px}.character-footer>div{justify-content:space-between}.character-heading{padding:10px 12px}.preview-caption small{font-size:9px}.preview-controls{bottom:6px}.camera-toolbar{top:43px}.has-3d .scene-label{display:none}.has-3d .zoom{bottom:110px}.has-3d #render-stats{bottom:169px}}

.pilot-options{padding:12px;border:1px solid #627153;border-radius:8px;margin-bottom:14px;background:#1e2e30}.pilot-options p{margin:5px 0 10px;font-size:12px}.pilot-options small{display:block;font-size:11px;line-height:1.5;color:#b9c8cc}.pilot-variants,.pilot-views{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0}.pilot-options button{font-size:11px;padding:7px}.pilot-options label{display:grid;gap:5px}
.room-labels-3d{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}.room-label-3d{position:absolute;transform:translate(-50%,-50%);max-width:160px;padding:5px 9px;border:1px solid #7d986b85;border-radius:5px;background:#111e26e8;color:#e1efce;text-align:center;font:600 14px/1.2 Arial,sans-serif;box-shadow:0 2px 7px #0006;visibility:hidden}.portrait{width:62px!important;height:62px!important;flex-shrink:0}.portrait img{object-fit:cover}
@media(max-width:700px){.room-label-3d{font-size:12px;max-width:130px;padding:4px 6px}}
