:root{--rail-width:195px}body[data-view=chat] .shell{grid-template-columns:var(--rail-width) minmax(0,1fr)}body[data-view=chat] .inspector{display:none}body.inspector-expanded[data-view=chat] .inspector{display:block;position:absolute;right:0;top:71px;bottom:0;width:330px;z-index:35;box-shadow:-8px 0 25px #15202b40}body[data-view=chat] .content{padding:0;overflow:hidden}body[data-view=chat] #composer-area{display:none}body[data-view=chat] .topbar{background:#18212d;color:#f4f3ed;min-height:62px;padding-block:12px;border:0}body[data-view=chat] .topbar small{color:#afc5d0}body[data-view=chat] .topbar button{background:#354957;color:#eef4f3}body[data-view=chat] .topbar button[data-wallpaper]{background:#e8edef;color:#18212d}.vn-stage{height:100%;min-height:420px;position:relative;overflow:hidden;background:#2c2630;isolation:isolate}.vn-backdrop{position:absolute;inset:0;background:#51413b url('assets/dialogue/manor-salon.png') center/cover no-repeat;z-index:-2}.vn-backdrop:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#171c2b48 0%,transparent 28%,transparent 65%,#15192340 100%)}.vn-scene-title{position:absolute;top:26px;left:35px;display:flex;align-items:center;gap:12px;color:#fffdf5;text-shadow:0 2px 7px #14203090}.vn-scene-title>svg{width:23px;height:23px}.vn-scene-title h1{font-size:29px;letter-spacing:.025em}.vn-tools{position:absolute;right:30px;top:24px;display:flex;gap:6px;z-index:4}.vn-tools button{min-height:36px;display:flex;gap:9px;align-items:center;background:#192430;color:#f5f4ed;font-size:12px;padding:9px 14px;clip-path:polygon(0 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%);box-shadow:inset 0 1px #ffffff30,inset 0 -2px #02070d70}.vn-tools button:hover{background:#375c6c}.vn-tools svg{width:15px;height:15px}.vn-portrait{position:absolute;left:clamp(20px,8%,145px);bottom:155px;height:calc(100% - 205px);width:42%;max-width:580px;pointer-events:none;z-index:1;display:flex;align-items:flex-end;justify-content:center}.vn-portrait img{display:block;max-height:100%;max-width:100%;width:auto;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 9px 12px #231d3740)}.vn-stage[data-role=puck] .vn-portrait{left:15%;bottom:290px;height:min(43%,420px);width:30%;max-width:400px}.vn-role-select{position:absolute;right:30px;top:86px;width:205px;display:flex;flex-direction:column;gap:7px;z-index:3}.vn-role-select>button{display:flex;align-items:center;gap:12px;text-align:left;background:#f8f6ed;color:#273340;min-height:68px;padding:5px 12px 5px 6px;clip-path:polygon(0 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%);box-shadow:inset 0 -2px #14233024}.vn-role-select>button:hover{background:#d3edf0}.vn-role-select>button[aria-pressed=true]{background:#243340;color:#fffdf5;box-shadow:inset 0 1px #fff4,inset 0 -3px #4ba7b3}.vn-role-select>button[data-vn-role=ram][aria-pressed=true]{box-shadow:inset 0 1px #fff4,inset 0 -3px #df80a3}.vn-role-art{width:53px;height:55px;display:block;flex-shrink:0;background-repeat:no-repeat;background-size:115px auto;background-position:center 0}.vn-role-select [data-vn-role=puck] .vn-role-art{background-size:55px auto;background-position:center}.vn-role-select strong{font:23px Smiley,sans-serif;display:block;font-weight:400}.vn-role-select small{font-size:11px;display:block;color:#5c6974;margin-top:4px}.vn-role-select [aria-pressed=true] small{color:#b9cdd5}.vn-role-select svg{width:14px;height:14px;margin-left:auto}.vn-dialogue{position:absolute;bottom:26px;left:35px;right:35px;background:#f8f6ec;color:#24313f;z-index:5;padding:27px 28px 21px;box-shadow:0 12px 35px #1a1a2938;clip-path:polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,0 100%)}.vn-nameplate{display:flex;gap:16px;align-items:center;padding:10px 21px;background:#1d2937;color:#fffdf5;margin:-27px -28px 16px;min-height:59px;max-width:500px;clip-path:polygon(0 0,100% 0,calc(100% - 22px) 100%,0 100%)}.vn-nameplate>strong{font:29px Smiley,sans-serif;white-space:nowrap;font-weight:400}.vn-nameplate>span{font-size:11px;color:#b8ccd6}.vn-nameplate>time{font-size:11px;margin-left:auto;margin-right:20px;color:#b8ccd6;font-variant-numeric:tabular-nums}.vn-stage[data-role=ram] .vn-nameplate>strong{color:#f2b8d0}.vn-stage[data-role=rem] .vn-nameplate>strong{color:#a8e9f2}.vn-response{font-size:17px;line-height:1.85;max-height:150px;min-height:59px;overflow:auto;margin-bottom:17px;padding-right:12px}.vn-response p{white-space:pre-wrap;overflow-wrap:anywhere;max-width:75ch;font-size:17px;line-height:1.85}.vn-bottom{display:grid;grid-template-columns:minmax(220px,.39fr) minmax(330px,1fr);gap:24px;align-items:start;border-top:1px solid #c6cdd0;padding-top:16px}.vn-choices{display:flex;flex-direction:column;gap:5px}.vn-choices>button{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;min-height:31px;padding:6px 10px;background:#e1e8e9;color:#384c5b;font-size:12px;box-shadow:none}.vn-choices>button:hover{background:#bfe7ed;color:#193947}.vn-choices svg{width:13px;height:13px}.vn-composer{min-width:0}.vn-composer>label{display:block;font-size:11px;font-weight:600;color:#586874;margin-bottom:6px}.vn-composer>textarea{width:100%;min-height:56px;height:58px;max-height:120px;resize:vertical;background:#fffdf7;color:#253743;border:1px solid #aebfc8;font-size:14px;line-height:1.65;padding:9px 12px}.vn-composer>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px}.vn-composer>footer small{font-size:11px;color:#576974}.vn-composer button{font:19px Smiley,sans-serif;display:flex;align-items:center;justify-content:center;gap:15px;min-width:104px;min-height:35px;padding:8px 14px}.vn-composer button svg{width:16px;height:16px}.vn-stage[data-role=puck] .vn-bottom{display:block}.vn-stage[data-role=puck] .vn-choices{display:flex;flex-direction:row;gap:8px}.vn-stage[data-role=puck] .vn-choices>button{flex:1;max-width:300px;font-size:13px;min-height:41px}.vn-job{display:flex;align-items:center;gap:12px;background:#dfe9ec;color:#314b59;padding:10px 12px;margin:0 0 14px;font-size:12px;line-height:1.6}.vn-job>strong{white-space:nowrap}.vn-job>span{flex:1;max-height:70px;overflow:auto;overflow-wrap:anywhere}.vn-job>button{font-size:11px;min-height:29px;padding:6px 10px;background:#c3d5dd;box-shadow:none;white-space:nowrap}.vn-job[data-state=failed]{background:#f0dcce;color:#7d442d}.vn-error{background:#f1dcbd;color:#734719;padding:10px 13px;margin-bottom:12px;font-size:12px;line-height:1.7}.vn-history{position:absolute;top:77px;right:30px;bottom:310px;width:min(460px,46%);background:#1e2b39;color:#f6f4ec;z-index:12;box-shadow:0 8px 35px #101b2b55;display:flex;flex-direction:column}.vn-history>header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #526170}.vn-history h2{font-size:24px}.vn-history header>button{background:#344957;color:white;box-shadow:none;padding:7px;min-height:30px}.vn-history header svg{width:17px;height:17px}.vn-history-content,#vn-history-content{overflow:auto;padding:0 20px 20px;flex:1;min-height:0}.vn-record{padding:19px 0;border-bottom:1px solid #415465}.vn-record>header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:8px}.vn-record b{font:20px Smiley,sans-serif;color:#b9e9ed;font-weight:400}.vn-record.user b{color:#e6bfd0}.vn-record time{font-size:11px;color:#adbfcc;font-variant-numeric:tabular-nums}.vn-record p{font-size:13px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.vn-history-empty{font-size:13px;line-height:1.9;color:#c2d0d9;margin-top:22px}.vn-history .execution{color:#c0d2dc}.vn-history .execution summary{color:#b2e4ec}.vn-history .step time{color:#c0d2dc}.vn-history .step svg{color:#91c6ba}
@media(min-width:1600px){:root{--rail-width:220px}.vn-dialogue{left:48px;right:48px;bottom:35px;padding:29px 34px 23px}.vn-nameplate{margin:-29px -34px 20px;padding-left:27px}.vn-bottom{grid-template-columns:minmax(260px,.36fr) minmax(450px,1fr);gap:36px}.vn-response{min-height:63px;max-height:180px;margin-bottom:20px}.vn-role-select{right:48px;top:99px;width:230px}.vn-role-select>button{min-height:74px}.vn-tools{right:48px;top:30px}.vn-scene-title{top:31px;left:48px}.vn-portrait{bottom:180px;height:calc(100% - 240px)}.vn-stage[data-role=puck] .vn-portrait{bottom:330px}.vn-history{right:48px;bottom:350px}}
@media(max-width:1200px){:root{--rail-width:175px}.vn-dialogue{left:24px;right:24px;padding:21px 23px 17px;bottom:22px}.vn-nameplate{margin:-21px -23px 13px;min-height:52px}.vn-nameplate>strong{font-size:26px}.vn-response,.vn-response p{font-size:16px;line-height:1.8}.vn-response{min-height:55px;max-height:110px;margin-bottom:13px}.vn-bottom{gap:18px;grid-template-columns:minmax(180px,.4fr) minmax(300px,1fr);padding-top:13px}.vn-role-select{width:184px;right:24px;top:76px}.vn-role-select>button{min-height:60px;gap:7px}.vn-role-art{width:45px;height:48px;background-size:101px auto}.vn-role-select strong{font-size:21px}.vn-role-select small{font-size:11px}.vn-tools{right:24px;top:21px}.vn-scene-title{left:24px;top:22px}.vn-scene-title h1{font-size:25px}.vn-portrait{left:6%;bottom:150px;height:calc(100% - 195px);width:43%}.vn-stage[data-role=puck] .vn-portrait{bottom:255px}.vn-history{right:24px;top:70px;bottom:300px;width:44%}}
@media(max-height:800px){.vn-dialogue{padding-top:17px;padding-bottom:15px;bottom:18px}.vn-nameplate{margin-top:-17px;margin-bottom:11px;min-height:48px;padding-block:8px}.vn-nameplate>strong{font-size:25px}.vn-response{min-height:48px;max-height:85px;margin-bottom:12px}.vn-response p{font-size:16px;line-height:1.7}.vn-bottom{padding-top:12px;gap:20px}.vn-choices>button{min-height:28px;font-size:11px}.vn-composer>textarea{height:49px;min-height:49px}.vn-composer>footer{margin-top:5px}.vn-composer button{font-size:18px;min-height:30px;padding:6px 12px}.vn-portrait{height:calc(100% - 195px);bottom:145px}.vn-role-select{width:181px;top:71px}.vn-role-select>button{min-height:53px;padding-block:3px}.vn-role-art{height:44px}.vn-role-select strong{font-size:20px}.vn-tools{top:18px}.vn-tools button{font-size:11px;min-height:32px;padding:7px 10px}.vn-scene-title{top:20px}.vn-scene-title h1{font-size:25px}.vn-stage[data-role=puck] .vn-portrait{bottom:215px;height:43%}.vn-history{top:64px;bottom:290px}.vn-job{padding-block:7px;margin-bottom:10px}}
@media(max-width:1000px){:root{--rail-width:168px}.vn-dialogue{left:18px;right:18px;padding-inline:20px}.vn-nameplate{margin-inline:-20px}.vn-bottom{grid-template-columns:1fr;gap:10px}.vn-choices{flex-direction:row;flex-wrap:wrap;gap:5px}.vn-choices>button{flex:1;font-size:11px;padding-inline:7px;min-height:30px}.vn-choices svg{display:none}.vn-composer>label{display:none}.vn-role-select{width:154px;right:18px;gap:4px}.vn-role-art{width:37px;background-size:85px auto}.vn-role-select>button{gap:7px;padding-right:8px}.vn-role-select strong{font-size:19px}.vn-role-select small{font-size:11px}.vn-role-select svg{display:none}.vn-portrait{left:1%;width:50%;bottom:195px;height:calc(100% - 240px)}.vn-stage[data-role=puck] .vn-portrait{left:9%;bottom:240px;width:40%;height:35%}.vn-scene-title{left:18px}.vn-tools{right:18px}.vn-tools button:last-child{display:none}.vn-nameplate{max-width:340px}.vn-history{left:18px;right:18px;width:auto;bottom:315px}.vn-stage[data-role=puck] .vn-choices{flex-direction:column}.vn-stage[data-role=puck] .vn-choices>button{max-width:none;min-height:32px}}
@media(max-width:700px){:root{--rail-width:68px}body[data-view=chat] .topbar{min-height:58px;padding:10px 14px}.vn-stage{min-height:500px}.vn-scene-title{top:18px;left:14px}.vn-scene-title>svg{display:none}.vn-scene-title h1{font-size:22px}.vn-tools{top:17px;right:14px}.vn-tools button{font-size:11px;padding:7px 9px}.vn-role-select{right:14px;top:63px;width:123px}.vn-role-select>button{gap:4px;min-height:47px;padding:3px 6px}.vn-role-art{width:31px;height:38px;background-size:76px auto}.vn-role-select strong{font-size:18px}.vn-role-select small{font-size:11px;margin-top:2px}.vn-portrait{left:-2%;width:63%;height:calc(100% - 260px);bottom:220px}.vn-stage[data-role=puck] .vn-portrait{left:5%;height:30%;width:48%;bottom:260px}.vn-dialogue{left:12px;right:12px;padding:16px 15px 12px;bottom:13px}.vn-nameplate{margin:-16px -15px 11px;gap:10px;padding-inline:15px;max-width:none;clip-path:none}.vn-nameplate>time{margin-right:0}.vn-nameplate>span{font-size:11px}.vn-response{max-height:95px;min-height:51px;padding-right:3px}.vn-response p{font-size:15px;line-height:1.7}.vn-composer>footer small{max-width:65%;font-size:11px}.vn-composer button{min-width:73px}.vn-history{top:60px;left:12px;right:12px;bottom:305px}.vn-choices>button{font-size:11px;white-space:nowrap}.vn-bottom{gap:9px}.vn-stage[data-role=puck] .vn-choices>button{font-size:12px}.vn-job{display:block;font-size:11px}.vn-job>strong{margin-right:7px}.vn-job>button{margin-top:5px}.vn-error{font-size:11px}}
@media(prefers-reduced-motion:reduce){.vn-portrait{animation:none!important}.vn-stage *{scroll-behavior:auto!important}}
.vn-portrait canvas{display:block;max-height:100%;max-width:100%;width:auto;height:100%;object-fit:contain;filter:drop-shadow(0 9px 12px #231d3740)}.vn-nameplate #vn-expression-label{color:#d6c4c9;font-size:11px}.vn-pose-library{position:absolute;top:79px;right:286px;bottom:350px;width:min(510px,48%);z-index:13;display:flex;flex-direction:column;background:#f8f6ed;color:#23313e;box-shadow:0 8px 35px #101b2b55}.vn-pose-library>header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;background:#23323f;color:#fffdf5}.vn-pose-library h2{font-size:23px}.vn-pose-library header>button{padding:5px 7px;min-height:29px;background:#405869;color:white;box-shadow:none}.vn-pose-library header svg{width:16px;height:16px}.vn-pose-library>p{padding:10px 17px;font-size:11px;line-height:1.6;color:#506170}.vn-pose-grid{display:grid;grid-auto-rows:max-content;align-content:start;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;overflow:auto;padding:3px 14px 16px;min-height:0;flex:1}.vn-pose-grid>button{padding:5px;background:#e3e9e9;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;box-shadow:none}.vn-pose-grid>button:hover,.vn-pose-grid>button[aria-pressed=true]{background:#badfe5}.vn-pose-grid>button>span{display:block;width:100%;aspect-ratio:2/3;flex-shrink:0;background-repeat:no-repeat}.vn-pose-grid small{font-size:11px;line-height:1.5;color:#374d5c}.vn-pose-library>footer{padding:10px 16px;border-top:1px solid #c4d0d5}.vn-pose-library>footer button{font-size:12px;min-height:29px;padding:6px 11px;background:#d3e1e5}
@media(max-width:1200px){.vn-pose-library{right:226px;bottom:310px;width:45%}.vn-pose-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.vn-nameplate #vn-expression-label{display:none}}
@media(max-width:1000px){.vn-pose-library{right:18px;left:18px;width:auto;bottom:315px;top:68px}.vn-pose-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.vn-pose-library{left:12px;right:12px;top:60px;bottom:300px}.vn-pose-library h2{font-size:19px}.vn-pose-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}}
.vn-response-tools{position:absolute;top:12px;right:24px;display:flex;justify-content:flex-end;margin:0}.vn-response-tools button,.vn-edit-tools button{min-height:26px;padding:4px 8px;font-size:11px;background:#e0e7e8;color:#435b69;box-shadow:none;display:inline-flex;gap:6px;align-items:center}.vn-response-tools svg{width:12px;height:12px}.vn-edit-tools{display:flex;align-items:center;gap:6px;margin-top:5px}.vn-edit-tools span{margin-left:auto;font-size:11px;color:#586b77;font-variant-numeric:tabular-nums}.vn-record header>button{font-size:11px;padding:3px 7px;min-height:25px;background:#38505f;color:#e3eff2;box-shadow:none}.vn-record header>time{margin-left:auto}.vn-edit-tools button:disabled{opacity:.5}.vn-response-tools button:hover,.vn-edit-tools button:hover{background:#b9e7ed}
@media(max-height:800px){.vn-response-tools{top:10px;margin:0}.vn-composer>footer small{max-width:75%;line-height:1.5}.vn-edit-tools{margin-top:4px}.vn-portrait{bottom:175px}}

/* Compact dialogue: keep the portrait visible above a shallow input rail. */
.vn-dialogue{padding:0 24px 10px;bottom:18px;max-height:58%;overflow:auto;scrollbar-gutter:stable}
.vn-nameplate{min-height:40px;max-width:480px;padding:5px 20px;margin:0 -24px 6px}
.vn-nameplate>strong{font-size:25px}
.vn-response{min-height:0;max-height:80px;margin:0 0 6px;padding-right:8px}
.vn-response,.vn-response p{font-size:16px;line-height:1.7}
.vn-response-tools{top:8px;right:24px;margin:0}
.vn-bottom{display:flex;flex-direction:column;gap:6px;padding-top:6px}
.vn-choices,.vn-stage[data-role=puck] .vn-choices{display:flex;flex-direction:row;gap:6px;flex-wrap:wrap;width:100%}
.vn-choices>button,.vn-stage[data-role=puck] .vn-choices>button{flex:0 1 auto;max-width:none;min-height:28px;padding:5px 10px;font-size:12px;gap:18px}
.vn-composer{display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:4px 8px;width:100%}
.vn-composer>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.vn-composer>textarea{grid-column:1;grid-row:1;height:40px;min-height:40px;max-height:96px;padding:7px 10px;font-size:14px;line-height:1.6;resize:vertical}
.vn-composer>#vn-send{grid-column:2;grid-row:1;align-self:stretch;min-height:40px;min-width:0;padding:8px 14px;font-size:19px}
.vn-composer>footer{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:26px;margin:0}
.vn-composer>footer small{max-width:none;line-height:1.5;font-size:11px}
.vn-composer #vn-character-count{margin-left:auto;white-space:nowrap;font-size:11px;color:#586b77;font-variant-numeric:tabular-nums}
.vn-edit-tools{margin:0;flex-shrink:0}
.vn-edit-tools button{padding:4px 8px;min-height:26px;font-size:11px}
.vn-job{margin:0 0 8px;padding:7px 10px}
.vn-error{margin:0 0 8px;padding:7px 10px;max-height:60px;overflow:auto}
.vn-portrait{bottom:100px;height:calc(100% - 135px)}
.vn-stage[data-role=puck] .vn-portrait{bottom:190px;height:43%}
.vn-history{bottom:240px}.vn-pose-library{bottom:240px}
@media(min-width:1600px){.vn-dialogue{left:48px;right:48px;bottom:28px;padding-inline:28px}.vn-nameplate{margin-inline:-28px;min-height:46px;padding-left:24px}.vn-portrait{bottom:125px;height:calc(100% - 175px)}.vn-response{max-height:104px}.vn-response,.vn-response p{font-size:17px;line-height:1.75}.vn-stage[data-role=puck] .vn-portrait{bottom:240px}.vn-history,.vn-pose-library{bottom:265px}}
@media(max-width:1000px){.vn-dialogue{padding-inline:18px;bottom:16px;max-height:60%}.vn-nameplate{margin-inline:-18px}.vn-choices>button{flex:1;gap:8px;font-size:11px;padding-inline:7px}.vn-portrait{left:1%;width:50%;bottom:125px;height:calc(100% - 170px)}.vn-stage[data-role=puck] .vn-portrait{bottom:210px;height:35%}.vn-composer>footer{gap:8px;flex-wrap:wrap}.vn-composer>footer small{max-width:calc(100% - 165px)}.vn-history,.vn-pose-library{bottom:260px}}
@media(max-width:700px){.vn-dialogue{padding-inline:14px;bottom:12px;max-height:62%}.vn-nameplate{margin-inline:-14px;padding-inline:14px;min-height:40px;max-width:calc(100% - 80px);clip-path:none}.vn-nameplate>strong{font-size:23px}.vn-response-tools{right:14px;top:7px}.vn-response,.vn-response p{font-size:15px}.vn-composer{grid-template-columns:minmax(0,1fr) 65px}.vn-composer>#vn-send{font-size:18px;padding-inline:8px}.vn-composer>footer small{max-width:none;order:3;width:100%}.vn-portrait{bottom:170px;height:calc(100% - 215px);width:63%;left:-2%}.vn-stage[data-role=puck] .vn-portrait{bottom:230px}.vn-history,.vn-pose-library{bottom:280px}}

.vn-composer>#vn-send[aria-busy=true]{font-size:14px;padding-inline:4px;white-space:nowrap}
