.vc-dialog{box-sizing:border-box;width:min(565px,calc(100% - 32px));max-width:none;max-height:calc(100vh - 48px);max-height:min(calc(100dvh - 40px),calc(var(--vc-visual-height,100dvh) - 18px));padding:0;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:var(--surface);overflow:hidden;box-shadow:0 20px 80px #0005}
.vc-dialog::backdrop{background:#14221bd4}
.vc-frame{height:auto;max-height:calc(100vh - 50px);max-height:calc(var(--vc-visual-height,100vh) - 50px);display:flex;flex-direction:column}
.vc-header,.vc-actions{flex:0 0 auto;background:var(--surface);padding:17px 22px}
.vc-header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}
.vc-header small{font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.vc-header h2{font-size:1.45rem;line-height:1.14;margin:4px 0}
.vc-close{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:var(--paper);color:inherit;font-size:26px;line-height:1;cursor:pointer}
.vc-body{flex:1 1 auto;min-height:0;padding:20px 22px;overflow-y:auto;overscroll-behavior:contain}
.vc-context{display:flex;gap:6px 12px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:var(--soft);border-radius:10px;padding:14px 15px}
.vc-context small{width:100%;color:var(--muted)}
.vc-signal{color:var(--green);font-size:.83rem;font-weight:700}.vc-signal[data-signal=red]{color:var(--red)}.vc-signal[data-signal=yellow]{color:var(--yellow)}
.vc-info{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0;padding-bottom:14px;border-bottom:1px solid var(--line)}
.vc-info dt,.vc-file small,.vc-fields small,.vc-media small,.vc-log small{color:var(--muted);font-size:.82rem}.vc-info dd{margin:.35rem 0;font-weight:650}
.vc-fields{min-width:0;display:grid;gap:10px;padding:0;margin:0;border:none}
.vc-fields label,.vc-file{display:grid;gap:6px;font-weight:600}
.vc-fields input:not([type=file]),.vc-fields textarea{width:100%;box-sizing:border-box;min-height:42px;color:var(--ink);background:var(--field);border:1px solid var(--line);border-radius:7px;padding:9px;font:inherit}
.vc-fields input[type=range]{margin:0;padding:0;accent-color:var(--accent);min-height:30px}
.vc-fields textarea{resize:vertical}
.vc-actions{position:relative;border-top:1px solid var(--line);padding-bottom:max(15px,env(safe-area-inset-bottom))}
.vc-buttons,.vc-file-options,.vc-related{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.vc-related:not(:empty){margin-top:15px}.vc-file{margin-top:.7rem}.vc-file small{font-weight:400}
.vc-file-options label,.vc-light,.vc-primary{display:inline-flex;align-items:center;justify-content:center;min-height:41px;box-sizing:border-box;padding:8px 12px;border-radius:8px;font:inherit;font-weight:650;border:1px solid var(--line);color:var(--ink);background:var(--surface);cursor:pointer}
.vc-light[hidden],.vc-primary[hidden]{display:none}.vc-primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent);flex:1}
.vc-file-options label{position:relative;overflow:hidden}.vc-file-options input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.vc-file-options label:focus-within{outline:2px solid var(--accent)}
.vc-file-name{overflow-wrap:anywhere;font-size:.9em}.vc-status{font-size:.87rem;line-height:1.35;overflow-wrap:anywhere;color:var(--muted);margin-bottom:8px}
.vc-status:empty{display:none}.vc-status[data-tone=error]{color:var(--red)}.vc-status[data-tone=pending]{color:var(--yellow)}.vc-status[data-tone=ok]{color:var(--green);font-weight:650}
.vc-log{list-style:none;padding:0}.vc-log li,.vc-media{padding:12px 0;border-bottom:1px solid var(--line)}.vc-log p{white-space:pre-wrap;margin:.3rem 0;overflow-wrap:anywhere}
.vc-media-grid{display:grid;gap:8px;margin-top:15px}.vc-media{display:grid;gap:5px;justify-items:start;overflow-wrap:anywhere}.vc-media img{width:auto;max-width:100%;height:auto;max-height:170px;border-radius:6px}.vc-media a{color:var(--accent);font-weight:650}
@media(max-width:650px){
 .vc-dialog{position:fixed;inset:0 auto auto 0;margin:0;width:100%;height:var(--vc-visual-height,100dvh);max-height:var(--vc-visual-height,100dvh);border-radius:0;border:none}
 .vc-frame{height:100%;max-height:none}.vc-body,.vc-header,.vc-actions{padding-left:16px;padding-right:16px}.vc-header{padding-top:max(12px,env(safe-area-inset-top));padding-bottom:12px}
 .vc-fields input,.vc-fields textarea{font-size:16px!important}.vc-actions{padding-top:11px}.vc-primary{min-height:46px}.vc-buttons .vc-light{font-size:.84rem}
}
.vc-file-options .vc-camera-action{display:inline-flex;gap:6px;align-items:center;justify-content:center;min-height:44px;font-weight:700;color:var(--accent);border-color:var(--accent);background:var(--surface)}
.vc-selected{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.vc-selected button{min-height:38px;color:var(--accent)}.vc-file-options label:has(input:disabled){opacity:.6;cursor:default}
