.mv-panel, .mv-gift { scroll-margin-top: 1.5rem; }
.mv-player { display: block; width: 100%; max-height: min(65vh, 36rem); object-fit: contain; background: #181819; border-radius: 12px; }
.mv-portrait { aspect-ratio: 9 / 16; width: auto; max-width: 100%; margin-inline: auto; }
.mv-landscape { aspect-ratio: 16 / 9; }
.mv-panel .btnrow, .mv-gift .btnrow { margin-top: .75rem; }
.mv-form { display: grid; gap: .85rem; }
.mv-form > .btn { justify-self: start; }
.mv-slot { margin: 0; min-width: 0; border: 1px solid #d9dfda; border-radius: 12px; padding: .6rem .85rem .75rem; }
.mv-slot legend { padding: 0 .3rem; font-size: .9rem; font-weight: 650; }
.mv-slot-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(5.8rem, auto); align-items: end; gap: .75rem; }
.mv-slot .field { margin: 0; }
.mv-slot .check { margin-bottom: 0; }
.mv-slot input[type=file] { max-width: 100%; font-size: .82rem; }
.mv-slot .mv-filename { margin: 0 0 .35rem; overflow-wrap: anywhere; }
.mv-status { display: grid; gap: .6rem; margin: 1rem 0; }
.mv-status progress { width: 100%; accent-color: #346e5a; }
.mv-gift { margin: 2rem 0; }
@media (max-width: 450px) {
  .mv-slot-fields { grid-template-columns: minmax(0, 1fr); }
  .mv-slot-fields select { width: auto; }
}

.mv-tabs { display: flex; margin: 1.2rem 0 0; border-bottom: 1px solid #d8c7b9; gap: .25rem; }
.mv-tabs button, .mv-demo, .mv-pick, .mv-print-controls button { font: inherit; color: #2c201a; cursor: pointer; }
.mv-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: .6rem 1rem; }
.mv-tabs button[aria-selected=true] { border-color: #922d36; color: #922d36; font-weight: 700; }
.mv-photo-editor { background: #fffaf0; color: #2c201a; border: 1px solid #d8c7b9; border-top: 0; padding: clamp(.8rem, 2.2vw, 1.4rem); }
.mv-instructions { margin: 0 0 1rem; }
.mv-photo-toolbar, .mv-photo-submit, .mv-sequence-label { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.mv-pick, .mv-demo { display: inline-flex; position: relative; align-items: center; justify-content: center; border: 1px solid #a87c75; border-radius: 3px; padding: .55rem .8rem; background: #fffdf7; }
.mv-pick { font-weight: 700; gap: .4rem; }
.mv-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.mv-pick:focus-within, .mv-tabs button:focus-visible, .mv-print-controls button:focus-visible { outline: 2px solid #922d36; outline-offset: 2px; }
.mv-format, .mv-sequence-label output { color: #735e53; font-size: .83rem; }
.mv-sequence-label { margin: 1.1rem 0 .55rem; justify-content: space-between; }
.mv-photos { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(8.2rem,43%),1fr)); gap: .6rem; list-style: none; padding: 0; margin: 0; }
.mv-photos:empty { display: none; }
.mv-photos li { min-width: 0; padding: .35rem .35rem .3rem; border: 1px solid #d6c9b9; background: #fffdf6; box-shadow: 0 2px 4px #4b272312; }
.mv-photos img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eee5d7; }
.mv-print-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: .35rem .12rem .15rem; font-size: .78rem; }
.mv-print-controls { display: flex; gap: .2rem; justify-content: flex-end; }
.mv-print-controls button { border: 1px solid #d8c7b9; background: #fffdf6; border-radius: 2px; padding: .15rem .38rem; min-width: 1.7rem; min-height: 1.7rem; line-height: 1; }
.mv-print-controls button:disabled { opacity: .32; cursor: default; }
.mv-photo-submit { justify-content: space-between; border-top: 1px solid #d8c7b9; margin-top: 1.05rem; padding-top: .8rem; align-items: end; }
.mv-photo-submit .field { margin: 0; }
.mv-photo-submit .btn { background: #922d36; border-color: #922d36; color: #fff8e9; border-radius: 3px; }
.mv-photo-status { color: #842b32; font-size: .86rem; }
.mv-photo-status:empty { display:none; }
.mv-photo-editor [hidden], .mv-panel [role=tabpanel][hidden] { display: none; }
