.vfz-frame{display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}
.vfz-bar{display:flex;align-items:center;gap:6px;height:28px;min-height:28px;padding:0 6px;border-bottom:1px solid var(--line);background:var(--paper);border-radius:8px 8px 0 0;user-select:none}
.vfz-title{flex:1 1 auto;min-width:0;font-size:12px;font-weight:650;overflow-wrap:anywhere;line-height:1.15}
.vfz-actions{display:flex;align-items:center;gap:4px;flex:0 0 auto}
.vfz-actions button{padding:2px 6px;font-size:11px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--ink)}
.vfz-zoom-btn{flex:0 0 auto;display:inline-grid;place-items:center;width:22px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--muted)}
.vfz-zoom-btn:hover{color:var(--ink);background:var(--green-soft)}
.vfz-actions button:focus-visible,.vfz-zoom-btn:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.vfz-body{flex:1 1 auto;min-height:0;overflow:auto;padding:6px}
.vfz-frame.vfz-zoomed{position:fixed;inset:8px;z-index:50;box-shadow:0 8px 32px rgba(41,45,39,.28)}
/* Fenêtres détachables : bouton ⧉, cadre replié dans la fenêtre principale, cadre plein dans la fenêtre détachée. */
.vfz-pop-btn{flex:0 0 auto;display:inline-grid;place-items:center;width:22px;height:22px;padding:0;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--muted);font-size:13px;line-height:1}
.vfz-pop-btn:hover{color:var(--ink);background:var(--green-soft)}
.vfz-frame:not([data-frame]) .vfz-pop-btn{display:none}
html[data-frame-window] .vfz-pop-btn,html[data-frame-window] .vfz-zoom-btn{display:none}
.vfz-frame.vfw-detached > .vfz-body{display:none}
.vfz-frame.vfw-detached{flex:0 0 auto !important;height:auto !important;min-height:0 !important}
.vfz-frame.vfw-detached > .vfz-bar::after{content:"dans une fenêtre séparée";font-size:11px;color:var(--muted);order:2}
.vfw-full{position:fixed !important;inset:0 !important;z-index:200;width:auto !important;height:auto !important;max-height:none !important;margin:0 !important;border-radius:0 !important;background:var(--surface);overflow:auto;display:flex;flex-direction:column}
.vfw-full > .vfz-body{flex:1 1 auto}
.vfz-frame.vfw-detached > .vfz-bar{height:auto;min-height:28px;flex-wrap:wrap;padding:2px 6px}
.vfz-frame.vfw-detached > .vfz-bar .vfz-zoom-btn{display:none}

/* Tuile à taille réglable (tile-size.js) : coin en bas à droite ; agrandie, elle reprend le plein écran. */
.vts-resizable{resize:both;overflow:hidden;max-width:100%}
.vts-resizable.vfz-zoomed{resize:none;width:auto!important;height:auto!important}
