body[hidden],.live-panel,#scene-live{display:none!important}
#live-dialog{width:min(660px,calc(100% - 24px));max-height:87dvh;overflow:auto;background:linear-gradient(145deg,#17263b,#0d1626 70%);color:#f5f2ee;border:1px solid #d5bd9466;border-radius:22px;padding:22px;box-shadow:0 24px 80px #000b}
#live-dialog::backdrop{background:#010710b9;backdrop-filter:blur(5px)}
.m04-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.m04-head h2{margin:0;color:#ead6b7}
.m04-head button{font-size:23px}
#m04-status{color:#ecd3ac}
#live-contents{display:grid;gap:12px}
#live-contents label{display:grid;gap:7px}
#live-contents select,#live-contents textarea{padding:10px;border:1px solid #7e9bc16e;border-radius:10px;background:#0b1528;color:#fff;min-width:0;font:inherit}
#live-contents textarea{resize:vertical}
.m04-actions{display:flex;flex-wrap:wrap;gap:7px}
.m04-job{padding:14px;border:1px solid #8199b840;border-radius:12px;background:#132136;overflow-wrap:anywhere}
.m04-job h3{margin:0;font-size:15px}.m04-job time{color:#becde3;font-size:11px}.m04-job button{margin:4px 5px 0 0}
.m04-result,.m04-plan{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:680px){#live-dialog{width:100%;height:100dvh;max-height:none;max-width:none;margin:0;border-radius:0;padding:16px}}
.m04-thread{display:grid;gap:7px;max-height:42dvh;overflow:auto}
#live-contents input{min-width:0;width:100%;padding:11px;border:1px solid #87a2c17c;border-radius:10px;background:#0b1528;color:#fff;font:inherit}
#chat-files{min-width:0;max-height:34vh;overflow:auto}
.m04-file-status{color:#ead6b7;font-size:13px;margin:6px 0;white-space:pre-wrap}
.m04-file-status:empty{display:none}
.m04-file-preview,.m04-file-row{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:5px 0;padding:8px;border:1px solid #8199b840;border-radius:10px;background:#132136;overflow-wrap:anywhere}
.m04-file-preview[hidden]{display:none}
.m04-file-preview img{max-width:100%;max-height:140px;border-radius:7px}
.m04-file-preview pre{white-space:pre-wrap;width:100%;max-height:90px;overflow:auto;margin:0}
.m04-file-row small,.m04-file-preview small{color:#c6d0e0}
#chat-form #chat-add-file{min-width:40px;font-size:20px;align-self:stretch}
.m04-tools{display:grid;gap:12px}
.m04-tools input,.m04-tools select{display:block;width:100%;margin:7px 0}
