/* Video Maker (video-maker): stili della pagina. Usa i colori della categoria (--accent, --tint) con valori di riserva. */
.vm-app [hidden], .vm-panel [hidden] { display: none !important; }
.vm-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
    background: var(--tint, #eef2ff); color: #1e1b4b; font-size: 14px; margin: 0 0 16px; }
.vm-note svg { flex: none; color: var(--accent, #4f46e5); }

.vm-app { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 900px) {
    .vm-app { grid-template-columns: minmax(280px, 400px) 1fr; }
    .vm-stage { position: sticky; top: 12px; }
}
.vm-stage { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vm-screen { position: relative; background: #0b0b0f; border-radius: 16px; display: flex; align-items: center;
    justify-content: center; min-height: 200px; overflow: hidden; }
.vm-screen canvas { display: block; max-width: 100%; max-height: 62vh; width: auto; height: auto; }
.vm-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0;
    color: #d4d4d8; padding: 16px; text-align: center; font-size: 15px; }
.vm-transport { display: flex; align-items: center; gap: 10px; }
.vm-transport input[type=range] { flex: 1; min-width: 0; }
.vm-time { font-size: 13px; color: #52525b; font-variant-numeric: tabular-nums; white-space: nowrap; }

.vm-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vm-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 18px;
    display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vm-panel h2, .vm-info h2 { margin: 0; font-size: 18px; }
.vm-panel h3 { margin: 0; font-size: 16px; }
.vm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vm-btn { position: relative; display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1.5px solid #d4d4d8; background: #fff;
    color: #18181b; font: inherit; font-weight: 600; cursor: pointer; user-select: none; text-decoration: none; }
.vm-btn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.vm-btn.vm-primary { background: var(--accent, #4f46e5); border-color: var(--accent, #4f46e5); color: #fff; }
.vm-btn.vm-big { min-height: 52px; font-size: 16px; }
.vm-btn:focus-within, .vm-btn:focus-visible { outline: 3px solid var(--accent, #4f46e5); outline-offset: 2px; }
.vm-btn:disabled { opacity: .5; cursor: not-allowed; }

.vm-error { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid #b45309; background: #fffbeb; font-size: 14px; }
.vm-hint { margin: 0; font-size: 13px; color: #52525b; }

.vm-clips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vm-clip { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px; min-width: 0; }
.vm-thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #e5e7eb; flex: none; }
.vm-clip-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vm-clip-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-clip-info { font-size: 12px; color: #52525b; }
.vm-trim { display: flex; flex-direction: column; gap: 2px; }
.vm-clip-tools { display: flex; flex-direction: column; gap: 6px; }
.vm-icon { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid #d4d4d8; background: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.vm-icon:focus-visible { outline: 3px solid var(--accent, #4f46e5); outline-offset: 2px; }

.vm-text { display: flex; flex-direction: column; gap: 10px; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px; }
.vm-text textarea, .vm-field input[type=number], .vm-field select { font: inherit; padding: 8px 10px; border: 1.5px solid #d4d4d8;
    border-radius: 10px; background: #fff; min-width: 0; width: 100%; box-sizing: border-box; }
.vm-text > .vm-icon { align-self: flex-end; }
.vm-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #52525b; min-width: 0; }
.vm-field.vm-inline { flex-direction: row; align-items: center; gap: 10px; }
.vm-field.vm-inline input { width: 90px; }
.vm-field input[type=color] { width: 100%; height: 40px; padding: 2px; border: 1.5px solid #d4d4d8; border-radius: 10px; background: #fff; }
.vm-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #3f3f46; }
.vm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }

.vm-status { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.vm-bar { height: 8px; border-radius: 4px; background: #e5e7eb; overflow: hidden; }
.vm-bar i { display: block; height: 100%; width: 0; background: var(--accent, #4f46e5); transition: width .3s linear; }
.vm-result { display: flex; flex-direction: column; gap: 10px; }
.vm-result video { width: 100%; max-height: 60vh; border-radius: 12px; background: #000; }

.vm-info { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.vm-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; max-width: 62ch; }
.vm-steps li strong { display: block; }
.vm-steps li span { color: #52525b; font-size: 14px; }
.vm-faq details { border-top: 1px solid #e5e7eb; padding: 12px 0; }
.vm-faq summary { cursor: pointer; font-weight: 600; }
.vm-faq p { margin: 8px 0 0; color: #52525b; max-width: 66ch; }
