@import url("/image-converter/styles.css?v=1");
/* Metronome: the stage (what goes full screen) and the settings tabs. */
.mt-app { --lime: #95d600; --lime-hi: #b4f02a; --purple: #9147ff; --violet: #c39bff; --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: grid; gap: 20px; align-items: start; font-family: var(--sans); }
@media (min-width: 980px) { .mt-app { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } .mt-stage { position: sticky; top: 14px; } }

/* ---------- stage ---------- */
.mt-stage { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 16px 12px; border-radius: 20px;
  border: 1px solid #262833; background: radial-gradient(120% 70% at 50% 0%, #1c1929 0%, #111219 55%, #0b0b0f 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04); color: #e9e9ef; font-family: var(--sans);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.mt-stage > :not(.mt-flash) { position: relative; z-index: 1; }
.mt-flash { position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none; background: var(--lime); }
.mt-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; font-size: 13px; color: #9a9fb0; font-variant-numeric: tabular-nums; }
.mt-where { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-clock { font-weight: 650; color: #c9cbd6; }
.mt-clock.done, .mt-ptime.done { color: var(--lime); }
.mt-songchip { max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid rgba(145, 71, 255, .45); background: rgba(145, 71, 255, .12); color: var(--violet);
  border-radius: 999px; padding: 3px 10px; font: 600 12px var(--sans); cursor: pointer; }

/* beats: one bar per pulse, height = accent level */
.mt-beats { width: 100%; height: 78px; display: flex; justify-content: center; gap: 12px; }
.mt-grp { display: flex; gap: 6px; flex: var(--g) 1 0; max-width: calc(var(--g) * 46px); min-width: 0; }
.mt-beat { flex: 1 1 0; min-width: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 4px; padding: 0; border: 0; background: none; color: #6b7080;
  cursor: pointer; touch-action: manipulation; }
.mt-beat:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 8px; }
.mt-bar { align-self: end; width: 100%; height: var(--hgt, 68%); border-radius: 9px; background: #343746; transition: height .15s ease, background-color .1s, box-shadow .1s; }
.mt-beat[data-l="3"] { --hgt: 100%; } .mt-beat[data-l="3"] .mt-bar { background: #4d6119; }
.mt-beat[data-l="2"] { --hgt: 66%; }
.mt-beat[data-l="1"] { --hgt: 38%; } .mt-beat[data-l="1"] .mt-bar { background: #2b2d39; }
.mt-beat[data-l="0"] { --hgt: 100%; } .mt-beat[data-l="0"] .mt-bar { background: transparent; box-shadow: inset 0 0 0 2px #2b2d39; }
.mt-beat.on .mt-bar { background: #f1f2f6; box-shadow: 0 0 18px rgba(241, 242, 246, .35); }
.mt-beat.on[data-l="3"] .mt-bar { background: var(--lime); box-shadow: 0 0 24px rgba(149, 214, 0, .6); }
.mt-beat.on[data-l="0"] .mt-bar { background: transparent; box-shadow: inset 0 0 0 2px #8b90a0; }
.mt-stage[data-counting="1"] .mt-beat.on .mt-bar { background: var(--purple); box-shadow: 0 0 24px rgba(145, 71, 255, .6); }
.mt-stage[data-silent="1"] .mt-beat.on .mt-bar { background: #50546a; box-shadow: none; }
.mt-stage[data-silent="1"] .mt-beats, .mt-stage[data-silent="2"] .mt-beats { opacity: .5; }
.mt-num { font: 600 10px/1 var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
.mt-beat.on .mt-num { color: #e9e9ef; }
.mt-beats[data-many="1"] .mt-num { display: none; }
.mt-dots { display: flex; justify-content: center; gap: 2px; height: 6px; overflow: hidden; }
.mt-dots:empty { display: none; }
.mt-dots i { flex: 0 1 6px; min-width: 2px; height: 6px; border-radius: 3px; background: #4a4e5e; }
.mt-dots i.off { background: transparent; box-shadow: inset 0 0 0 1px #4a4e5e; }

/* polyrhythm rows under the beats */
.mt-polys { width: 100%; display: grid; gap: 6px; margin-top: -4px; }
.mt-polys:empty { display: none; }
.mt-prow { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 8px; }
.mt-prow.off { opacity: .35; }
.mt-plbl { font: 700 11px var(--sans); color: var(--violet); font-variant-numeric: tabular-nums; }
.mt-ptrack { position: relative; height: 12px; border-radius: 6px; background: rgba(145, 71, 255, .1); }
.mt-ptrack i { position: absolute; top: 2px; left: calc(var(--x) * (100% - 8px)); width: 8px; height: 8px; border-radius: 50%; background: #7550c4; }

/* centre: dial / count / pendulum, with - and + in the free corners */
.mt-center { position: relative; width: min(330px, 100%); aspect-ratio: 1; }
.mt-view { position: absolute; inset: 0; }
.mt-step { position: absolute; bottom: 0; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #2c2f3b; background: #15161d; color: #e9e9ef;
  display: grid; place-items: center; cursor: pointer; touch-action: manipulation; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.mt-step svg { width: 22px; height: 22px; fill: currentColor; }
#minus { left: 0; } #plus { right: 0; }
.mt-step:hover, .mt-round:hover { border-color: #444857; background: #1b1d25; }
.mt-step:active, .mt-round:active { transform: scale(.94); }
.mt-step:focus-visible, .mt-round:focus-visible, .mt-q:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.mt-dial { position: absolute; inset: 0; border-radius: 50%; touch-action: none; cursor: grab; outline: none; }
.mt-dial.drag { cursor: grabbing; }
.mt-dial:focus-visible { box-shadow: 0 0 0 3px var(--purple); }
.mt-ring { display: block; width: 100%; height: 100%; }
.mt-rim { fill: #13141b; stroke: #262833; stroke-width: 1; }
.mt-ticks line { stroke: #353846; stroke-width: 2; stroke-linecap: round; }
.mt-ticks line.maj { stroke: #737889; stroke-width: 2.6; }
.mt-dial.drag .mt-ticks line.maj, .mt-dial:hover .mt-ticks line.maj { stroke: #a9ae9a; }
.mt-dial.drag .mt-ticks line.maj { stroke: var(--lime); }
.mt-glow { fill: none; stroke: var(--lime); stroke-width: 5; opacity: 0; }
.mt-stage[data-counting="1"] .mt-glow { stroke: var(--purple); }
.mt-read { position: absolute; inset: 24% 18%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; pointer-events: none; }
.mt-read > * { pointer-events: auto; }
.mt-bpm { width: 100%; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #f6f7fa; text-align: center; caret-color: var(--lime);
  font: 750 clamp(52px, 17vw, 80px)/1.05 var(--sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.mt-bpm:focus { outline: none; background: rgba(255, 255, 255, .05); }
.mt-unit { display: inline-flex; align-items: center; gap: 5px; color: #8b90a0; font: 650 11px var(--sans); letter-spacing: .12em; }
.mt-unit .nt { width: auto; height: 20px; }
.mt-markwrap { position: relative; display: inline-block; }
.mt-markname { display: block; padding: 3px 10px; border-radius: 8px; color: #c9cbd6; font: 600 13.5px var(--sans); white-space: nowrap; }
.mt-mark { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font: 600 13px var(--sans); }
.mt-markwrap:hover .mt-markname, .mt-mark:focus-visible + .mt-markname, .mt-markwrap:focus-within .mt-markname { color: var(--lime); background: rgba(255, 255, 255, .05); }
.mt-mark option { background: #121319; color: #e9e9ef; }
.mt-count, .mt-pend { display: none; }
.mt-count { position: absolute; place-items: center; color: #f6f7fa; font: 800 clamp(110px, 42vw, 210px)/1 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; pointer-events: none; }
.mt-count.acc { color: var(--lime); }
.mt-stage[data-view="count"] .mt-dial, .mt-stage[data-view="pendulum"] .mt-dial { display: none; }
.mt-stage[data-view="count"] .mt-count { display: grid; inset: 0 0 24% 0; }
.mt-stage[data-view="count"] .mt-read, .mt-stage[data-view="pendulum"] .mt-read { inset: auto 16% 0 16%; height: 24%; flex-direction: row; flex-wrap: wrap; gap: 0 8px; }
.mt-stage[data-view="count"] .mt-bpm, .mt-stage[data-view="pendulum"] .mt-bpm { width: 2.5em; font-size: 40px; text-align: right; }
.mt-stage[data-view="pendulum"] .mt-pend { display: block; position: absolute; inset: 0 12% 24% 12%; width: 76%; height: 76%; }
.mt-stage[data-view="dial"][data-counting="1"] .mt-count { display: grid; inset: 20%; border-radius: 50%; background: radial-gradient(#211836, #0d0e13 70%); color: var(--violet); font-size: clamp(80px, 28vw, 140px); }
.mt-stage[data-view="dial"][data-counting="1"] .mt-read { visibility: hidden; }
.mt-stage[data-view="count"][data-counting="1"] .mt-count { color: var(--violet); }
.mt-stage[data-silent="2"] .mt-count, .mt-stage[data-silent="2"] #arm { opacity: .12; }
.mt-body { fill: #191a22; stroke: #2c2f3b; stroke-width: 1.5; }
.mt-scale { stroke: #3a3e4c; stroke-width: 2; stroke-dasharray: 1 7; stroke-linecap: round; }
.mt-arm { fill: #d6d8e0; }
.mt-weight { fill: var(--lime); }
.mt-pivot { fill: #737889; }

.mt-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: -6px 0 -2px; }
.mt-badges:empty { display: none; }
.mt-badge { padding: 3px 10px; border: 1px solid rgba(145, 71, 255, .4); border-radius: 999px; background: rgba(145, 71, 255, .12); color: var(--violet); font: 600 11.5px var(--sans); cursor: pointer; }

.mt-controls { display: flex; align-items: center; justify-content: center; gap: 24px; }
.mt-play { width: 84px; height: 84px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #10130a; touch-action: manipulation;
  background: radial-gradient(circle at 50% 32%, var(--lime-hi), var(--lime) 55%, #6f9f02); box-shadow: 0 12px 32px rgba(149, 214, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .4); transition: transform .08s, box-shadow .2s; }
.mt-play svg { width: 36px; height: 36px; fill: currentColor; }
.mt-play .i-stop, .mt-play[aria-pressed="true"] .i-play { display: none; }
.mt-play[aria-pressed="true"] .i-stop { display: block; }
.mt-play[aria-pressed="true"] { box-shadow: 0 0 0 6px rgba(149, 214, 0, .14), 0 12px 32px rgba(149, 214, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .4); }
.mt-play:active { transform: scale(.95); }
.mt-play:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.mt-round { width: 58px; height: 58px; border-radius: 50%; border: 1px solid #2c2f3b; background: #15161d; color: #e9e9ef; display: grid; place-items: center; cursor: pointer;
  font: 650 14px var(--sans); touch-action: manipulation; font-variant-numeric: tabular-nums; }
.mt-round svg { width: 22px; height: 22px; }
.mt-round[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); }

.mt-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mt-q { min-height: 38px; padding: 3px 13px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #2c2f3b; border-radius: 999px; background: rgba(255, 255, 255, .03);
  color: #e9e9ef; font: 650 13px var(--sans); cursor: pointer; font-variant-numeric: tabular-nums; }
.mt-q:hover { border-color: #444857; }
.mt-q svg { height: 20px; width: auto; fill: currentColor; }
.mt-q .nt { height: 26px; }
#qFlash[aria-pressed="true"] { color: var(--lime); border-color: rgba(149, 214, 0, .5); }
#qSound .i-off, #qSound[aria-pressed="false"] .i-on { display: none; }
#qSound[aria-pressed="false"] .i-off { display: block; }
#qSound[aria-pressed="false"] { color: #ffb454; border-color: rgba(255, 180, 84, .5); }

.mt-status { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 10px; padding-top: 10px; border-top: 1px solid #1e2029;
  font-size: 11.5px; color: #7d8295; font-variant-numeric: tabular-nums; }
.mt-link { padding: 4px 2px; border: 0; background: none; color: var(--lime); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.mt-link:disabled { color: #7d8295; cursor: wait; }
#tCheck { color: #c9cbd6; }

/* full screen (the Fullscreen API, or a fixed overlay where it is missing) */
.mt-stage:fullscreen, .mt-stage.mt-full { width: 100vw; height: 100vh; max-width: none; justify-content: center; gap: 2.4vh; padding: 3vh 4vw; border: 0; border-radius: 0; }
.mt-stage.mt-full { position: fixed; inset: 0; z-index: 1000; height: 100dvh; }
html.mt-lock, html.mt-lock body { overflow: hidden; }
.mt-stage:fullscreen .mt-center, .mt-stage.mt-full .mt-center { width: min(56vh, 86vw); }
.mt-stage:fullscreen .mt-beats, .mt-stage.mt-full .mt-beats { height: 16vh; max-width: 1400px; gap: 2vw; }
.mt-stage:fullscreen .mt-grp, .mt-stage.mt-full .mt-grp { max-width: calc(var(--g) * 84px); gap: 10px; }
.mt-stage:fullscreen .mt-bar, .mt-stage.mt-full .mt-bar { border-radius: 14px; }
.mt-stage:fullscreen .mt-bpm, .mt-stage.mt-full .mt-bpm { font-size: min(12vh, 18vw); }
.mt-stage:fullscreen .mt-count, .mt-stage.mt-full .mt-count { font-size: min(36vh, 56vw); }
.mt-stage:fullscreen .mt-top, .mt-stage.mt-full .mt-top { font-size: 16px; position: absolute; top: 2vh; left: 4vw; right: 4vw; width: auto; }
.mt-stage:fullscreen .mt-quick, .mt-stage.mt-full .mt-quick, .mt-stage:fullscreen .mt-status, .mt-stage.mt-full .mt-status { display: none; }
.mt-stage:fullscreen .mt-polys, .mt-stage.mt-full .mt-polys { max-width: 1400px; }

/* ---------- settings ---------- */
.mt-panel { min-width: 0; padding: 0 18px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
.mt-tabs { display: flex; gap: 2px; margin: 0 -18px 16px; padding: 0 10px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.mt-tabs::-webkit-scrollbar { display: none; }
.mt-tabs [role="tab"] { flex: none; min-height: 46px; padding: 12px 10px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: #9a9fb0; font: 650 14px var(--sans); cursor: pointer; }
.mt-tabs [role="tab"]:hover { color: #e9e9ef; }
.mt-tabs [role="tab"][aria-selected="true"] { color: var(--lime); border-bottom-color: var(--lime); }
.mt-tabs [role="tab"]:focus-visible { outline: 2px solid var(--purple); outline-offset: -4px; border-radius: 8px; }
.mt-pane[hidden] { display: none; }
.mt-f { margin-bottom: 20px; }
.mt-panel .lbl { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: #9a9fb0; font: 700 11.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.mt-panel .lbl output { color: #e9e9ef; text-transform: none; letter-spacing: 0; font-weight: 650; }
.mt-panel .chip, .mt-panel .seg button { font-family: var(--sans); }
.mt-panel .chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: rgba(149, 214, 0, .07); }
.mt-panel .chip:disabled { opacity: .4; cursor: default; }
.mt-panel .seg { flex-wrap: wrap; }
.mt-panel .seg button { min-height: 38px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.mt-panel .btn { font-family: var(--sans); }
.mt-chips { gap: 6px; }
.mt-ts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.mt-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); overflow: hidden; }
.mt-stepper button { width: 40px; height: 40px; border: 0; background: none; color: #e9e9ef; font: 600 19px var(--sans); cursor: pointer; touch-action: manipulation; }
.mt-stepper button:hover { background: rgba(255, 255, 255, .05); }
.mt-stepper output { min-width: 34px; text-align: center; font: 700 17px var(--sans); font-variant-numeric: tabular-nums; }
.mt-slash { color: #6b7080; font: 300 28px var(--sans); }
.mt-gin { max-width: 220px; margin-top: 8px; }
.mt-gin.bad { border-color: var(--bad); }
.mt-uchip, .mt-schip { display: inline-flex; align-items: center; justify-content: center; padding: 2px 10px; color: #c9cbd6; }
.mt-uchip .nt { height: 28px; width: auto; }
.mt-subs { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-schip { min-width: 52px; min-height: 46px; border-radius: 12px; }
.mt-schip .nt { height: 34px; width: auto; }
.mt-subrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.mt-slots { display: flex; flex-wrap: wrap; gap: 4px; }
.mt-slots button { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); color: #6b7080; font: 650 12px var(--sans); cursor: pointer; }
.mt-slots button[aria-pressed="true"] { border-color: rgba(149, 214, 0, .45); background: rgba(149, 214, 0, .14); color: var(--lime); }
.mt-range { width: 100%; max-width: none; }
.mt-polylist { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.mt-poly { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.mt-ratio { min-width: 52px; color: var(--violet); font: 750 15px var(--sans); font-variant-numeric: tabular-nums; }
.mt-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mt-mini input { width: 84px; }
.mt-poly .x { margin-left: auto; font-size: 20px; }
.mt-kits { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.mt-kit { min-height: 44px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); color: #e9e9ef; font: 600 13px var(--sans); cursor: pointer; }
.mt-kit:hover { border-color: #3a3e4c; }
.mt-kit[aria-pressed="true"] { border-color: var(--lime); background: rgba(149, 214, 0, .08); color: var(--lime); }
.mt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mt-two .lbl { display: grid; gap: 7px; }
.mt-two .sel { text-transform: none; letter-spacing: 0; font: 500 13px var(--sans); color: var(--text); }
.mt-vols { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 14px; font-size: 13px; }
.mt-vols .range { max-width: none; }
.mt-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.mt-a4 { width: 78px !important; }
.mt-box { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.mt-boxhead { font-size: 14px; font-weight: 700; }
.mt-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; margin: 10px 0; font-size: 13px; }
.mt-grid .in.num { width: 86px; }
.mt-grid > .sel { justify-self: start; }
.mt-panel .sel, .mt-panel .in { font-family: var(--sans); font-size: 14px; }
.dim { opacity: .45; }
.mt-panel .check { margin: 6px 0; }
.mt-panel .check.mt-f { margin-bottom: 20px; }
.mt-songs, .mt-secs, .mt-plog { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.mt-song { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.mt-song.on { border-color: rgba(149, 214, 0, .55); box-shadow: inset 3px 0 0 var(--lime); }
.mt-songbtn { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; padding: 7px 6px; border: 0; background: none; color: #e9e9ef; text-align: left; font: inherit; cursor: pointer; }
.mt-songbtn b { font-size: 14px; overflow-wrap: anywhere; }
.mt-songbtn span { font-size: 12px; color: var(--muted); }
.mt-rowbtns { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.mt-rowbtns .btn.sm { min-width: 32px; }
.mt-ar { width: 10px; height: 10px; fill: currentColor; display: block; margin: 0 auto; }
.mt-setbar .sel, .mt-setbar .in { min-width: 140px; }
#shareRow { margin-top: 10px; }
#shareRow .in { flex: 1 1 200px; min-width: 0; }
.mt-save { margin-top: 6px; }
.mt-save .in { flex: 1 1 160px; min-width: 0; }
.mt-edit { margin-top: 14px; padding: 12px; border: 1px solid rgba(145, 71, 255, .45); border-radius: 12px; background: rgba(145, 71, 255, .05); display: grid; gap: 10px; }
.mt-edit > .row .in { flex: 1 1 160px; min-width: 0; }
.mt-sec { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); }
.mt-sec.on { border-color: rgba(149, 214, 0, .55); }
.mt-sec .in:not(.num) { flex: 1 1 140px; min-width: 0; }
.mt-sec .in.num { width: 78px; }
.mt-secrow { justify-content: space-between; }
.mt-secdesc { flex: 1 1 160px; }
.mt-import { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid rgba(149, 214, 0, .4); border-radius: 12px; background: rgba(149, 214, 0, .08); font-size: 13px; }
.mt-import span { flex: 1 1 200px; }
.mt-ptop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.mt-ptime { font: 750 42px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mt-psum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 12px; }
.mt-psum div { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.mt-psum b { font-size: 18px; font-variant-numeric: tabular-nums; }
.mt-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; height: 78px; }
.mt-week span { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 4px; height: 100%; }
.mt-week i { align-self: end; width: 100%; max-width: 28px; height: calc(var(--h) * 100%); min-height: 3px; border-radius: 5px; background: linear-gradient(var(--lime-hi), #5f8a00); }
.mt-week small { font-size: 10.5px; color: var(--muted); }
.mt-week i.z { background: #2b2d39; }
.mt-plog li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 12.5px; }
.mt-plog b { min-width: 48px; font-variant-numeric: tabular-nums; }
.mt-labels { font-size: 12px; }

details.tip { position: relative; display: inline-block; text-transform: none; letter-spacing: 0; font-weight: 400; }
details.tip summary { width: 19px; height: 19px; border: 1px solid #3a3e4c; border-radius: 50%; color: #9a9fb0; font: 700 11px/17px var(--sans); text-align: center; list-style: none; cursor: pointer; }
details.tip summary::-webkit-details-marker { display: none; }
details.tip summary:hover, details.tip[open] summary { color: var(--lime); border-color: var(--lime); }
details.tip > span { position: absolute; z-index: 5; top: 26px; left: -10px; width: min(250px, 70vw); padding: 9px 11px; border: 1px solid #2c2f3b; border-radius: 10px; background: #1b1d26;
  color: #e9e9ef; font: 400 12.5px/1.45 var(--sans); box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }

.mt-keys { margin: 20px 0 4px; color: var(--muted); font: 12px/2.1 var(--sans); text-align: center; }
.mt-keys kbd svg { width: 9px; height: 9px; fill: currentColor; vertical-align: -1px; }
.mt-keys kbd { padding: 1px 6px; border: 1px solid #2c2f3b; border-bottom-width: 2px; border-radius: 5px; background: #15161d; color: #c9cbd6; font: 600 11px var(--sans); }
.mt-more { margin: 4px 0 0; color: var(--muted); font: 13px var(--sans); text-align: center; }
.mt-more a { color: var(--accent); }
.mt-doors { justify-content: center; margin: 14px auto 0; max-width: 760px; font-family: var(--sans); }
.mt-doors a[aria-current="page"] { border-color: var(--accent); }

@media (max-width: 520px) {
  .mt-stage { padding: 12px 10px 10px; gap: 12px; border-radius: 18px; }
  .mt-beats { height: 66px; gap: 8px; }
  .mt-grp { gap: 4px; }
  .mt-step { width: 44px; height: 44px; }
  .mt-play { width: 78px; height: 78px; }
  .mt-round { width: 52px; height: 52px; }
  .mt-controls { gap: 18px; }
  .mt-panel { padding: 0 14px 14px; }
  .mt-tabs { margin: 0 -14px 14px; padding: 0 4px; }
  .mt-tabs [role="tab"] { padding: 12px 8px 10px; font-size: 13.5px; }
  .mt-two { grid-template-columns: minmax(0, 1fr); }
  .mt-ptime { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) { .mt-bar { transition: none; } }
@media (max-width: 430px) {
  .mt-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; }
  .mt-tabs [role="tab"] { min-height: 42px; padding: 10px 4px 8px; }
}
@media (hover: none) and (pointer: coarse) { .mt-keys { display: none; } }
