.mtp-bf-drop { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 30px 18px; border: 2px dashed var(--mtp-brass); background: var(--mtp-night); cursor: pointer; color: var(--mtp-paper); font-size: 16px; }
.mtp-bf-drop:hover, .mtp-bf-drop.is-over, .mtp-bf-drop:focus-within { background: var(--mtp-raised-2); border-style: solid; }
.mtp-bf-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.mtp-bf-drop-title { font-size: 20px; font-weight: 600; color: var(--mtp-brass-bright); }
.mtp-bf-drop-sub { color: var(--mtp-muted); font-size: 14px; max-width: 60ch; }
.mtp-bf-opts { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; margin: 18px 0 6px; }
.mtp-bf-field { display: flex; flex-direction: column; gap: 4px; }
.mtp-bf-field input { width: 150px; }
.mtp-bf-check { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; }
.mtp-bf-check input { width: 18px; height: 18px; }
.mtp-bf-status { min-height: 1.5em; margin: 12px 0; color: var(--mtp-muted); }
.mtp-bf-file-name { margin: 0 0 8px; color: var(--mtp-muted); font-size: 14px; overflow-wrap: anywhere; }
.mtp-bf-main { display: flex; flex-wrap: wrap; gap: 16px 36px; align-items: center; }
.mtp-bf-readout { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.mtp-bf-bpm { font-size: clamp(72px, 15vw, 132px); line-height: 1; font-weight: 600; color: var(--mtp-brass-bright); font-variant-numeric: tabular-nums; font-family: "Cormorant Garamond", "Source Sans 3", serif; }
.mtp-bf-unit { color: var(--mtp-muted); letter-spacing: .12em; font-size: 14px; }
.mtp-bf-conf { font-size: 14px; color: var(--mtp-paper); }
.mtp-bf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0; flex: 1 1 340px; }
.mtp-bf-stats > div { padding: 10px 12px; border: 1px solid var(--mtp-line); background: var(--mtp-night); min-width: 0; }
.mtp-bf-stats dt { color: var(--mtp-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.mtp-bf-stats dd { margin: 4px 0 0; font-size: 18px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mtp-bf-curve { display: block; width: 100%; max-width: 640px; height: auto; margin-top: 18px; background: var(--mtp-night); border: 1px solid var(--mtp-line); }
.mtp-bf-note { margin: 6px 0 0; color: var(--mtp-muted); font-size: 13px; max-width: 70ch; }
.mtp-bf-keybox { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--mtp-line); }
.mtp-bf-keybox h3 { margin: 0 0 6px; font-size: 16px; }
.mtp-bf-key { margin: 0; font-size: clamp(22px, 4vw, 30px); font-weight: 700; color: var(--mtp-brass-bright); }
.mtp-bf-runners { margin: 6px 0 0; padding-left: 1.2em; color: var(--mtp-paper); }
.mtp-bf-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 22px; }
.mtp-bf-actions .mtp-button { display: inline-block; padding: 9px 16px; min-height: 40px; box-sizing: border-box; text-decoration: none; }
.mtp-bf [hidden] { display: none !important; }
@media (max-width: 640px) { .mtp-bf-drop { padding: 22px 12px; } .mtp-bf-field input { width: 120px; } }
@media print {
  body:has(.mtp-bf) { background: #fff !important; color: #000 !important; }
  body:has(.mtp-bf) .mtp-topnav, body:has(.mtp-bf) nav, body:has(.mtp-bf) footer, body:has(.mtp-bf) .mtp-footer { display: none !important; }
  body:has(.mtp-bf) .mtp-bf, body:has(.mtp-bf) .mtp-bf * { background: #fff !important; color: #000 !important; border-color: #888 !important; }
  .mtp-bf-drop, .mtp-bf-opts, .mtp-bf-actions, .mtp-bf-curve { display: none !important; }
}
