:root { color-scheme: dark; --bg: #070d1f; --card: #0d1630; --line: #1d2a52; --text: #e8eeff; --muted: #93a2c9; --blue: #2563eb; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.vf-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.vf-top h1 { margin: 0; font-size: 20px; }
.vf-back { color: #93c5fd; text-decoration: none; }
.vf-sub { color: var(--muted); font-size: 13px; }
.vf { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; padding: 16px; max-width: 1200px; margin: 0 auto; }
.vf-side { display: grid; gap: 12px; align-content: start; }
.vf-card { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.vf-card h2 { margin: 0 0 10px; font-size: 15px; }
.vf-card label { display: grid; gap: 4px; margin: 0 0 8px; color: var(--muted); font-size: 12.5px; }
.vf-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.vf-row > * { flex: 1; min-width: 0; }
.vf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
input, select, textarea, button { font: inherit; color: var(--text); background: #0a1228; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; min-width: 0; }
textarea { width: 100%; resize: vertical; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
.vf-primary { background: var(--blue); border-color: var(--blue); font-weight: 600; }
.vf-check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px !important; color: var(--text) !important; }
.vf-check input { margin-top: 3px; }
.vf-hint { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.vf-dl { display: inline-block; margin-top: 8px; padding: 10px 14px; border-radius: 10px; background: #16a34a; color: #fff; font-weight: 600; text-decoration: none; }
.vf-stage { display: grid; gap: 12px; justify-items: center; align-content: start; }
#vfCanvas { width: min(100%, 405px); height: auto; aspect-ratio: 9 / 16; border-radius: 18px; border: 1px solid var(--line); background: #050b1d; }
.vf-turns { width: 100%; max-width: 640px; }
.vf-turns summary { cursor: pointer; color: var(--muted); }
#vfTurns { display: grid; gap: 6px; margin-top: 8px; max-height: 340px; overflow-y: auto; }
.vf-turn { display: grid; grid-template-columns: 72px 1fr; gap: 8px; align-items: start; }
.vf-turn b { font-size: 12px; color: var(--muted); padding-top: 6px; }
.vf-turn [contenteditable] { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #0a1228; outline: none; }
.vf-turn [contenteditable]:focus { border-color: #60a5fa; }
@media (max-width: 820px) { .vf { grid-template-columns: minmax(0, 1fr); } .vf-stage { order: -1; } }
.vf-side, .vf-stage, .vf-card { min-width: 0; }
select { width: 100%; max-width: 100%; text-overflow: ellipsis; }
.vf-logo { height: 26px; width: auto; align-self: center; }
.vf-card h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vf-mini { padding: 4px 10px; font-size: 12.5px; border-radius: 8px; }
#vfCanvas.f11 { aspect-ratio: 1 / 1; width: min(100%, 560px); }
#vfCanvas.f169 { aspect-ratio: 16 / 9; width: min(100%, 760px); }
#vfScrub { width: min(100%, 560px); }
.vf-row2 > label { min-width: 0; }
.vf-row2 select, .vf-row2 input { width: 100%; }
