/* ============================================================ FREE TOOLS — LAYOUT ============================================================ */
.tm-ft-page { position: relative; --tm-ft-line: rgba(247, 242, 232, 0.12); }
.tm-ft-page button, .tm-ft-page input { font-family: inherit; }
.tm-ft-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg); }
.tm-ft-bg::before { content: ''; position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(rgba(247, 242, 232, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 242, 232, 0.05) 1px, transparent 1px); background-size: 56px 56px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 25%, transparent 80%); }
.tm-ft-grid { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 30%, transparent 85%); }
@media (prefers-reduced-motion: reduce) { .tm-ft-grid { display: none; } }
.tm-ft-fog { position: absolute; inset: -15%; opacity: 0.34; will-change: transform; background: radial-gradient(55vmax 55vmax at 10% 18%, var(--primary), transparent 60%), radial-gradient(60vmax 60vmax at 92% 82%, var(--secondary), transparent 60%); animation: tm-ft-fog 26s ease-in-out infinite alternate; }
@keyframes tm-ft-fog { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 3%, 0) scale(1.08); } }

.tm-ft-col { position: relative; z-index: 1; max-width: 1300px; margin: 0 auto; padding: calc(160px + var(--tm-top-offset, 0px)) 7vw 140px; transition: padding-top 340ms cubic-bezier(.2,.7,.2,1); }
.tm-ft-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 40px; }
.tm-ft-hero > .tm-ft-install { flex: none; margin: 0 0 4px; }

/* ---- rack: tool list + module ---- */
.tm-ft-rack { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.tm-ft-rack > * { min-width: 0; }
.tm-ft-rail { position: sticky; top: calc(132px + var(--tm-top-offset, 0px)); display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 22px; background: rgba(16, 16, 20, 0.86); }
.tm-ft-rail-cat { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 6px 0 2px; padding: 10px 12px 6px; border: none; background: none; font: inherit; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247, 242, 232, 0.38); cursor: pointer; transition: color 0.2s ease; }
.tm-ft-rail-cat:hover { color: #fff; }
.tm-ft-rail-cat span { flex: 1; text-align: left; }
.tm-ft-rail-cat em { margin-right: 10px; padding: 2px 7px; border-radius: 999px; background: rgba(247, 242, 232, 0.07); font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0; color: rgba(247, 242, 232, 0.6); }
.tm-ft-rail-sec:not(.tm-closed) .tm-ft-rail-cat { color: rgba(247, 242, 232, 0.7); }
.tm-ft-rail-cat i { font-size: 9px; transition: transform 0.3s ease; }
.tm-ft-rail-sec.tm-closed .tm-ft-rail-cat i { transform: rotate(-90deg); }
.tm-ft-rail-group { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.35s cubic-bezier(.2,.8,.2,1); }
.tm-ft-rail-group > div { display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow: hidden; }
.tm-ft-rail-sec.tm-closed .tm-ft-rail-group { grid-template-rows: 0fr; }
.tm-ft-rail-sec + .tm-ft-rail-sec { border-top: 1px solid rgba(247, 242, 232, 0.05); }
.tm-ft-rail-list > div > .tm-ft-rail-cat:first-child { margin-top: 6px; }
.tm-ft-rail-title { margin: 8px 12px 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247, 242, 232, 0.4); }
.tm-ft-rail-item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 3px 8px; align-items: baseline; padding: 12px 12px; border: none; border-radius: 12px; background: none; color: rgba(247, 242, 232, 0.6); text-align: left; cursor: pointer; transition: background 0.25s ease, color 0.25s ease; }
.tm-ft-rail-item::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--primary); box-shadow: 0 0 10px var(--primary); transform: scaleY(0); transition: transform 0.35s cubic-bezier(.2,.8,.2,1); }
.tm-ft-rail-item:hover { color: #fff; }
.tm-ft-rail-item.tm-active { background: rgba(247, 242, 232, 0.05); color: #fff; }
.tm-ft-rail-item.tm-active::before { transform: scaleY(1); }
.tm-ft-rail-idx { grid-row: span 2; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: rgba(247, 242, 232, 0.3); transition: color 0.25s ease; }
.tm-ft-rail-item.tm-active .tm-ft-rail-idx { color: var(--primary); }
.tm-ft-rail-name { font-size: 15px; font-weight: 600; }
.tm-ft-rail-desc { grid-column: 2; font-size: 12px; color: rgba(247, 242, 232, 0.4); }
.tm-ft-rail-soon { margin: 10px 12px 8px 48px; font-size: 12px; color: rgba(247, 242, 232, 0.3); }

.tm-ft-deck { --tm-ft-pad: clamp(20px, 3.4vw, 44px); align-self: stretch; position: relative; border-radius: 22px; background: rgba(16, 16, 20, 0.86); padding: var(--tm-ft-pad); }
.tm-ft-module-head { display: flex; align-items: center; gap: 12px; margin: calc(-1 * var(--tm-ft-pad)) calc(-1 * var(--tm-ft-pad)) 18px; padding: 18px var(--tm-ft-pad) 0; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(247, 242, 232, 0.6); }
.tm-ft-module-head b { color: #fff; font-weight: 600; }
.tm-ft-module-hint { margin-left: auto; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: rgba(247, 242, 232, 0.4); }
.tm-ft-led { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); opacity: 0.45; transition: opacity 0.1s ease, box-shadow 0.1s ease; }
.tm-ft-led.tm-flash { opacity: 1; box-shadow: 0 0 12px var(--primary); }
.tm-ft-led.tm-busy { animation: tm-ft-led 0.5s steps(2, end) infinite; box-shadow: 0 0 12px var(--primary); }
@keyframes tm-ft-led { 0% { opacity: 1; } 100% { opacity: 0.25; } }

/* ---- LCD-style readouts ---- */
.tm-ft-lcd { position: relative; overflow: hidden; border-radius: 16px; background: #060608; box-shadow: inset 0 2px 18px rgba(0, 0, 0, 0.85); }
.tm-ft-lcd::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px); }
.tm-ft-lcd-label { position: absolute; top: 12px; left: 20px; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247, 242, 232, 0.4); }
.tm-ft-tool { animation: tm-ft-tool-in 0.5s cubic-bezier(.2,.7,.2,1); }
@keyframes tm-ft-tool-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tm-ft-fine { font-size: 13px; color: rgba(247, 242, 232, 0.45); margin: 22px 0 0; }
.tm-ft-fine i { margin-right: 8px; color: var(--primary); }

/* ---- dropdown ---- */
.tm-ft-dd { position: relative; }
.tm-ft-dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-width: 150px; padding: 10px 14px 10px 16px; border-radius: 14px; border: none; background: rgba(247, 242, 232, 0.06); color: #fff; text-align: left; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.tm-ft-dd-btn:hover, .tm-ft-dd.tm-open .tm-ft-dd-btn { background: rgba(247, 242, 232, 0.11); }
.tm-ft-dd-btn:focus-visible { outline: 1px solid var(--primary); outline-offset: 2px; }
.tm-ft-dd-text small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 242, 232, 0.45); margin-bottom: 2px; }
.tm-ft-dd-text span { font-size: 14px; font-weight: 600; white-space: nowrap; }
.tm-ft-dd-btn > i { font-size: 10px; opacity: 0.6; transition: transform 0.25s ease; }
.tm-ft-dd.tm-open .tm-ft-dd-btn > i { transform: rotate(180deg); }
.tm-ft-dd-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 100%; max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 14px; background: #141418; border: none; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7); display: none; transform-origin: top left; animation: tm-ft-dd-in 0.18s ease; }
@keyframes tm-ft-dd-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
.tm-ft-dd.tm-up .tm-ft-dd-menu { top: auto; bottom: calc(100% + 6px); transform-origin: bottom left; }
.tm-ft-dd.tm-open .tm-ft-dd-menu { display: block; }
.tm-ft-dd.tm-right .tm-ft-dd-menu { left: auto; right: 0; transform-origin: top right; }
.tm-ft-dd-opt { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 22px; width: 100%; padding: 10px 12px 10px 28px; border: none; border-radius: 9px; background: none; color: rgba(247, 242, 232, 0.7); font-size: 14px; font-weight: 600; text-align: left; white-space: nowrap; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.tm-ft-dd-opt small { font-size: 12px; font-weight: 400; color: rgba(247, 242, 232, 0.4); }
.tm-ft-dd-opt:hover, .tm-ft-dd-opt:focus-visible { background: rgba(247, 242, 232, 0.07); color: #fff; outline: none; }
.tm-ft-dd-opt[aria-selected="true"] { color: #fff; }
.tm-ft-dd-opt[aria-selected="true"]::before { content: ''; position: absolute; left: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--primary); }
.tm-ft-dd-opt:disabled { opacity: 0.3; pointer-events: none; }
.tm-ft-dd--lg .tm-ft-dd-btn { padding: 12px 16px 12px 18px; border-radius: 16px; }
.tm-ft-dd--lg .tm-ft-dd-text { min-width: 0; }
.tm-ft-dd--lg .tm-ft-dd-text span { display: block; font-size: clamp(1.25rem, 2.2vw, 1.7rem); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; }
.tm-ft-dd--lg .tm-ft-dd-text span em { font-style: normal; color: var(--primary); margin-left: 10px; }
.tm-ft-dd--lg .tm-ft-dd-menu { width: 100%; }
.tm-ft-dd--inline .tm-ft-dd-btn { min-width: 0; width: auto; gap: 8px; padding: 4px 8px; border-radius: 8px; background: rgba(247, 242, 232, 0.08); }
.tm-ft-dd--inline .tm-ft-dd-text small { display: none; }
.tm-ft-dd--inline .tm-ft-dd-text span { font-size: 12px; }

/* ---- small shared controls ---- */
.tm-ft-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(247, 242, 232, 0.75); cursor: pointer; }
.tm-ft-switch input { position: absolute; opacity: 0; pointer-events: none; }
.tm-ft-switch i { position: relative; flex: none; width: 36px; height: 20px; border-radius: 999px; background: rgba(247, 242, 232, 0.18); transition: background 0.25s ease; }
.tm-ft-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.25s cubic-bezier(.2,.8,.2,1); }
.tm-ft-switch input:checked + i { background: var(--primary); }
.tm-ft-switch input:checked + i::after { transform: translateX(16px); }
.tm-ft-switch input:focus-visible + i { outline: 1px solid #fff; outline-offset: 2px; }
.tm-ft-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; border: 1px solid rgba(247, 242, 232, 0.28); background: none; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 14px 22px; cursor: pointer; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease; }
.tm-ft-btn:hover { border-color: #fff; }
.tm-ft-btn--solid { background: var(--ink); border-color: var(--ink); color: var(--bg); padding: 14px 32px; }
.tm-ft-btn--solid:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.tm-ft-btn--ghost { border-color: transparent; color: rgba(247, 242, 232, 0.55); padding: 14px; }
.tm-ft-btn--ghost:hover { border-color: transparent; color: #fff; }
.tm-ft-btn:disabled { opacity: 0.3; pointer-events: none; }

/* ============================================================ CONVERTER ============================================================ */
.tm-ft-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 240px; padding: 30px 20px; overflow: hidden; text-align: center; border: 1px solid rgba(247, 242, 232, 0.07); border-radius: 16px; background: #060608 radial-gradient(rgba(247, 242, 232, 0.07) 1px, transparent 1.5px) 0 0 / 18px 18px; box-shadow: inset 0 2px 18px rgba(0, 0, 0, 0.85); border-color: transparent; cursor: pointer; transition: border-color 0.25s ease, background 0.25s ease, min-height 0.45s cubic-bezier(.2,.7,.2,1); }
.tm-ft-drop:hover, .tm-ft-drop:focus-within { border-color: rgba(247, 242, 232, 0.14); }
.tm-ft-drop.tm-over { border-color: var(--primary); border-style: solid; background: rgba(247, 242, 232, 0.03); }
.tm-ft-drop-icon { position: relative; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 10px; border-radius: 50%; border: 1px solid rgba(247, 242, 232, 0.3); color: #fff; font-size: 18px; transition: transform 0.45s cubic-bezier(.2,.8,.2,1), background 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.tm-ft-drop-icon::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(247, 242, 232, 0.1); transition: transform 0.45s cubic-bezier(.2,.8,.2,1), border-color 0.25s ease; }
.tm-ft-drop:hover .tm-ft-drop-icon { transform: rotate(90deg); border-color: #fff; }
.tm-ft-drop.tm-over .tm-ft-drop-icon { transform: scale(1.12) rotate(90deg); background: var(--primary); border-color: var(--primary); }
.tm-ft-drop.tm-over .tm-ft-drop-icon::after { transform: scale(1.25); border-color: var(--primary-dim); animation: tm-ft-drop-pulse 1s ease-out infinite; }
@keyframes tm-ft-drop-pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.tm-ft-drop-title { font-weight: 600; font-size: clamp(1.3rem, 3vw, 2rem); letter-spacing: -0.015em; }
.tm-ft-drop-sub { font-size: 14px; color: rgba(247, 242, 232, 0.6); }
.tm-ft-drop-sub u { color: #fff; text-underline-offset: 4px; }
.tm-ft-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tm-ft-conv.tm-has-files .tm-ft-drop { min-height: 84px; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
.tm-ft-conv.tm-has-files .tm-ft-drop-title { font-size: 1rem; }
.tm-ft-conv.tm-has-files .tm-ft-drop-icon { width: 38px; height: 38px; margin: 0 6px 0 0; font-size: 13px; }
.tm-ft-conv.tm-has-files .tm-ft-drop-icon::after { display: none; }

.tm-ft-files { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tm-ft-file { position: relative; padding: 14px 16px 12px; border-radius: 14px; background: rgba(247, 242, 232, 0.04); animation: tm-ft-tool-in 0.4s cubic-bezier(.2,.7,.2,1); }
.tm-ft-file-top { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: 2px 14px; }
.tm-ft-file-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ft-file-meta { grid-column: 1 / 2; font-size: 12px; color: rgba(247, 242, 232, 0.5); }
.tm-ft-file-meta.tm-err { color: var(--red); }
.tm-ft-file-result { margin-left: 6px; font-weight: 600; color: var(--primary); white-space: nowrap; }
.tm-ft-file-action { grid-row: 1 / 3; grid-column: 2 / 3; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: rgba(247, 242, 232, 0.55); white-space: nowrap; }
.tm-ft-file-action a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); animation: tm-ft-tool-in 0.35s cubic-bezier(.2,.7,.2,1); transition: background 0.2s ease, color 0.2s ease; }
.tm-ft-file-action a:hover { background: var(--primary); color: #fff; }
.tm-ft-file-done { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); animation: tm-ft-tool-in 0.35s cubic-bezier(.2,.7,.2,1); }
.tm-ft-btn--go, .tm-ft-btn--solid.tm-ft-btn--go { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 24px var(--primary-dim); }
.tm-ft-btn--go:hover, .tm-ft-btn--solid.tm-ft-btn--go:hover { background: #fff; border-color: #fff; color: var(--bg); }
.tm-ft-file-remove { grid-row: 1 / 3; grid-column: 3 / 4; width: 28px; height: 28px; background: none; border: none; color: rgba(247, 242, 232, 0.4); font-size: 20px; line-height: 1; cursor: pointer; transition: color 0.2s ease; }
.tm-ft-file-remove:hover { color: #fff; }
.tm-ft-file-wave { display: block; width: 100%; height: 38px; margin-top: 10px; }

.tm-ft-out { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 22px; }
.tm-ft-out-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tm-ft-conv-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* ============================================================ TEMPO ============================================================ */
.tm-ft-tempo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; }
.tm-ft-pad-wrap { position: relative; display: flex; align-items: center; justify-content: center; padding: 58px 0; }
.tm-ft-pad { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: min(260px, 56vw); aspect-ratio: 1 / 1; border-radius: 50%; border: 1px solid rgba(247, 242, 232, 0.28); background: radial-gradient(circle at 50% 28%, rgba(247, 242, 232, 0.12), rgba(247, 242, 232, 0.015) 70%); color: #fff; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform 0.12s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.tm-ft-pad:hover { border-color: #fff; box-shadow: 0 0 60px rgba(247, 242, 232, 0.06); }
.tm-ft-pad.tm-hit { transform: scale(0.96); }
.tm-ft-pad-label { font-size: 1.8rem; font-weight: 600; letter-spacing: 0.3em; margin-right: -0.3em; text-transform: uppercase; }
.tm-ft-pad-sub { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.tm-ft-pad-ripple { position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid #fff; pointer-events: none; animation: tm-ft-ripple 0.75s cubic-bezier(.2,.7,.2,1) both; }
.tm-ft-pad-ripple.tm-strong { border: 2px solid var(--primary); }
@keyframes tm-ft-ripple { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.42); opacity: 0; } }
.tm-ft-beats { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.tm-ft-beats i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: rgba(247, 242, 232, 0.16); transition: background 0.1s ease, box-shadow 0.1s ease, transform 0.15s ease; }
.tm-ft-beats i.tm-on { background: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, 0.6); }
.tm-ft-beats i:first-child.tm-on { background: var(--primary); box-shadow: 0 0 16px var(--primary); }

.tm-ft-bpm-lcd { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 30px 20px 18px 20px; }
.tm-ft-lcd-keys { position: absolute; z-index: 1; top: 8px; right: 12px; display: flex; gap: 2px; }
.tm-ft-lcd-keys button { border: none; background: none; border-radius: 6px; padding: 3px 7px; color: rgba(247, 242, 232, 0.45); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; cursor: pointer; transition: color 0.2s ease, background 0.2s ease; }
.tm-ft-lcd-keys button:hover { color: #fff; background: rgba(247, 242, 232, 0.08); }
.tm-ft-bpm { display: flex; align-items: flex-end; gap: 12px; min-width: 0; }
.tm-ft-knob { position: relative; z-index: 1; flex: none; width: 92px; height: 92px; border-radius: 50%; cursor: ns-resize; touch-action: none; outline: none; }
.tm-ft-knob:focus-visible { box-shadow: 0 0 0 2px var(--primary); }
.tm-ft-knob svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tm-ft-knob-track, .tm-ft-knob-val { fill: none; stroke-width: 5; stroke-linecap: round; }
.tm-ft-knob-track { stroke: rgba(247, 242, 232, 0.1); stroke-dasharray: 197.92 263.89; }
.tm-ft-knob-val { stroke: var(--primary); filter: drop-shadow(0 0 5px var(--primary)); }
.tm-ft-knob-cap { transform-origin: 50px 50px; }
.tm-ft-knob-cap circle { fill: #19191e; stroke: rgba(247, 242, 232, 0.14); stroke-width: 1; }
.tm-ft-knob-cap line { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.tm-ft-knob:hover .tm-ft-knob-cap circle { stroke: rgba(247, 242, 232, 0.4); }
.tm-ft-bpm-input { width: 3.2ch; min-width: 0; box-sizing: content-box; background: none; border: none; border-bottom: 1px solid transparent; border-radius: 0; color: #fff; font-weight: 600; font-size: clamp(3.4rem, 7vw, 5.6rem); line-height: 0.9; text-shadow: 0 0 22px var(--primary-dim); letter-spacing: -0.04em; padding: 0 0 6px; appearance: textfield; -moz-appearance: textfield; transition: border-color 0.2s ease, text-shadow 0.12s ease; }
.tm-ft-bpm-input::-webkit-outer-spin-button, .tm-ft-bpm-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tm-ft-bpm-input:hover { border-bottom-color: rgba(247, 242, 232, 0.3); }
.tm-ft-bpm-input:focus { outline: none; border-bottom-color: var(--primary); }
.tm-ft-bpm.tm-pulse .tm-ft-bpm-input { text-shadow: 0 0 30px var(--primary), 0 0 8px rgba(255, 255, 255, 0.6); }
.tm-ft-bpm-unit { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; color: var(--primary); padding-bottom: 16px; }
.tm-ft-metro { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; }
.tm-ft-play { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; border: none; background: #fff; padding: 0; cursor: pointer; transition: background 0.25s ease, transform 0.25s cubic-bezier(.2,.8,.2,1); }
.tm-ft-play:hover { background: var(--primary); transform: scale(1.06); }
.tm-ft-play svg { width: 15px; height: 15px; fill: var(--bg); transition: fill 0.25s ease; }
.tm-ft-play:hover svg { fill: #fff; }
.tm-ft-play svg:first-child { margin-left: 3px; }
.tm-ft-play svg:last-child, .tm-ft-play.tm-on svg:first-child { display: none; }
.tm-ft-play.tm-on svg:last-child { display: block; }
.tm-ft-metro .tm-ft-dd-btn { min-width: 130px; }

.tm-ft-delay { padding: 34px 8px 14px; overflow: visible; }
.tm-ft-dd--inline .tm-ft-dd-menu { min-width: 180px; }
.tm-ft-delay-head { position: absolute; top: 9px; left: 20px; right: 14px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tm-ft-delay-head .tm-ft-lcd-label { position: static; }
.tm-ft-delay-vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tm-ft-val { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; border: none; border-radius: 10px; background: none; color: #fff; text-align: left; cursor: copy; transition: background 0.2s ease; }
.tm-ft-val + .tm-ft-val { box-shadow: -1px 0 0 rgba(247, 242, 232, 0.07); }
.tm-ft-val:hover { background: rgba(247, 242, 232, 0.05); }
.tm-ft-val.tm-copied strong { color: var(--primary); }
.tm-ft-val small { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247, 242, 232, 0.45); }
.tm-ft-delay-vals > .tm-ft-val { min-width: 0; container-type: inline-size; }
.tm-ft-val strong { font-size: clamp(1rem, 13cqi, 1.6rem); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-ft-val strong em { font-style: normal; font-size: 12px; color: rgba(247, 242, 232, 0.5); margin-left: 3px; }
.tm-ft-val span { font-size: 12px; color: rgba(247, 242, 232, 0.45); font-variant-numeric: tabular-nums; }

/* ============================================================ CAMELOT ============================================================ */
.tm-ft-camelot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 360px); gap: clamp(24px, 4vw, 56px); align-items: center; }
.tm-ft-camelot .tm-ft-wheel { max-width: 440px; margin: 0 auto; }
.tm-ft-wheel { display: block; width: 100%; height: auto; overflow: visible; --tm-ft-rot: 0deg; }
.tm-ft-wheel-rot { transform: rotate(var(--tm-ft-rot)); transform-origin: 200px 200px; transition: transform 0.9s cubic-bezier(.2,.8,.2,1); }
.tm-ft-wheel-seg { cursor: pointer; outline: none; }
.tm-ft-wheel-seg path { fill: rgba(247, 242, 232, 0.06); stroke: #0c0c0f; stroke-width: 3; transition: fill 0.25s ease; }
.tm-ft-wheel-seg text { fill: rgba(247, 242, 232, 0.5); font-family: var(--font-display); font-weight: 500; text-anchor: middle; dominant-baseline: middle; pointer-events: none; transition: fill 0.25s ease; }
.tm-ft-wheel-seg:hover path, .tm-ft-wheel-seg:focus-visible path, .tm-ft-wheel-seg.tm-is-hover path { fill: rgba(247, 242, 232, 0.2); }
.tm-ft-wheel-seg.tm-is-boost path { fill: var(--primary); fill-opacity: 0.28; }
.tm-ft-wheel-seg.tm-is-match path { fill: var(--primary); fill-opacity: 1; }
.tm-ft-wheel-seg.tm-is-sel path { fill: #fff; fill-opacity: 1; }
.tm-ft-wheel-seg.tm-is-boost text, .tm-ft-wheel-seg.tm-is-match text { fill: #fff; }
.tm-ft-wheel-seg.tm-is-sel text { fill: #050506; }
.tm-ft-wheel-seg.tm-is-hover path { stroke: #fff; }
.tm-ft-wheel-pin { fill: #fff; }
.tm-ft-wheel-center text { fill: #fff; font-family: var(--font-display); font-weight: 500; text-anchor: middle; pointer-events: none; }
.tm-ft-mix-sub { font-size: 14px; color: rgba(247, 242, 232, 0.55); margin: 18px 0 14px; }
.tm-ft-mix-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tm-ft-mix-list button { display: grid; grid-template-columns: 10px 48px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; border: none; background: rgba(247, 242, 232, 0.04); color: #fff; font-size: 15px; text-align: left; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s cubic-bezier(.2,.8,.2,1); }
.tm-ft-mix-list button:hover { background: rgba(247, 242, 232, 0.09); transform: translateX(4px); }
.tm-ft-mix-list li { animation: tm-ft-tool-in 0.4s cubic-bezier(.2,.7,.2,1) both; }
.tm-ft-mix-list li:nth-child(2) { animation-delay: 0.04s; }
.tm-ft-mix-list li:nth-child(3) { animation-delay: 0.08s; }
.tm-ft-mix-list li:nth-child(4) { animation-delay: 0.12s; }
.tm-ft-mix-list li:nth-child(5) { animation-delay: 0.16s; }
.tm-ft-mix-list li:nth-child(6) { animation-delay: 0.2s; }
.tm-ft-mix-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.tm-ft-mix-dot--sel { background: #fff; }
.tm-ft-mix-dot--boost { opacity: 0.35; }
.tm-ft-mix-code { font-weight: 600; }
.tm-ft-mix-why { display: block; font-size: 12px; color: rgba(247, 242, 232, 0.45); }

/* ============================================================ ANALYZER ============================================================ */
.tm-ft-an { --an-gap: 20px; }
.tm-ft-an-splbtn { display: none; }
.tm-ft-an.tm-an-mic .tm-ft-an-splbtn { display: inline-block; }
.tm-ft-an-cal { width: 52px; margin: 0 2px; padding: 2px 6px; border: none; border-radius: 6px; background: rgba(247, 242, 232, 0.1); color: #fff; font: inherit; font-weight: 600; text-align: center; -moz-appearance: textfield; }
.tm-ft-an-cal::-webkit-inner-spin-button { -webkit-appearance: none; }
.tm-ft-an-cal:focus { outline: 1px solid var(--primary); }
.tm-ft-an-grid.tm-solo .tm-ft-an-bars { min-height: min(52vh, 460px); }
.tm-ft-an.tm-full .tm-ft-an-bars { min-height: 0; }
.tm-ft-an-grid.tm-solo .tm-ft-an-bars { gap: 0 clamp(18px, 4vw, 56px); grid-template-columns: 34px repeat(var(--n, 5), minmax(0, 1fr)); }
.tm-ft-an-grid.tm-solo .tm-ft-an-btrack { max-width: min(140px, 100%); }
.tm-ft-an-grid.tm-solo .tm-ft-an-bval { height: 30px; font-size: 16px; }
.tm-ft-an-grid.tm-solo .tm-ft-an-bname { font-size: 11px; }
.tm-ft-an-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--an-gap); }
.tm-ft-an-bar .tm-ft-btn { padding: 12px 18px; }
.tm-ft-an-bar .tm-ft-btn.tm-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.tm-ft-an-bar .tm-ft-btn.tm-on i { animation: tm-ft-led 0.8s steps(2, end) infinite; }
.tm-ft-an-bar input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tm-ft-an-bar-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.tm-ft-src { display: contents; }
.tm-ft-src.tm-mic-first .tm-ft-src-mic { order: -1; }
.tm-ft-an-bar-end:empty, .tm-ft-an-bar-end:has(> .tm-ft-an-status:only-child:empty) { display: none; }
.tm-ft-an-status { font-size: 12px; color: rgba(247, 242, 232, 0.45); }
.tm-ft-an-status.tm-err { color: var(--red); }
.tm-ft-an-status:empty { display: none; }
.tm-ft-an.tm-full .tm-ft-fine { display: none; }
.tm-ft-an-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: none; border-radius: 12px; background: rgba(247, 242, 232, 0.06); color: #fff; font-size: 14px; cursor: pointer; transition: background 0.2s ease; }
.tm-ft-an-icon:hover { background: rgba(247, 242, 232, 0.14); }

.tm-ft-an-transport { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: var(--an-gap); padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(247, 242, 232, 0.04); }
.tm-ft-an-transport .tm-ft-play { width: 40px; height: 40px; }
.tm-ft-an-transport .tm-ft-play svg { width: 11px; height: 11px; }
.tm-ft-an-track { min-width: 0; }
.tm-ft-an-name { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.tm-ft-an-scrub { display: block; width: 100%; height: 26px; cursor: pointer; }
.tm-ft-an-time { font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(247, 242, 232, 0.55); }

.tm-ft-an-grid { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--an-gap); }
.tm-ft-an-card { display: flex; flex-direction: column; min-width: 0; padding: 20px 24px 24px; }
.tm-ft-an-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; margin-bottom: 14px; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247, 242, 232, 0.42); }
.tm-ft-an-read { font-size: 11px; letter-spacing: 0.04em; text-transform: none; color: rgba(247, 242, 232, 0.75); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ft-an-view { position: relative; flex: 1; min-height: 140px; }
.tm-ft-an-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tm-ft-an-spec { grid-column: span 4; }
.tm-ft-an-spec .tm-ft-an-view { min-height: 190px; cursor: crosshair; }
.tm-ft-an-level { grid-column: span 2; }
.tm-ft-an-scope, .tm-ft-an-stereo { grid-column: span 3; }
.tm-ft-an-scope .tm-ft-an-view, .tm-ft-an-stereo .tm-ft-an-view { min-height: 180px; }
.tm-ft-an-hist { grid-column: span 6; }
.tm-ft-an-hist .tm-ft-an-view { min-height: 130px; }

.tm-ft-an-tools { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tm-ft-an-tools::-webkit-scrollbar { display: none; }
.tm-ft-an-tools > * { flex: none; }
.tm-ft-an-head { flex-wrap: nowrap; }
.tm-ft-an-head > span:first-child { flex: none; }
.tm-ft-an-card { container-type: inline-size; }
.tm-ft-an-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(247, 242, 232, 0.06); }
.tm-ft-an-foot .tm-ft-an-seg { padding: 3px; border-radius: 10px; }
.tm-ft-an-foot .tm-ft-an-seg button { min-height: 30px; padding: 5px 11px; border-radius: 8px; font-size: 11px; }
.tm-ft-an-foot .tm-ft-an-seg em { padding: 0 8px 0 6px; font-size: 9px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
@media (pointer: coarse) {
  @container (max-width: 520px) {
    .tm-ft-an-foot { gap: 8px; }
    .tm-ft-an-foot .tm-ft-an-seg { flex: 1 1 100%; }
    .tm-ft-an-foot .tm-ft-an-seg button { flex: 1; }
  }
}
.tm-ft-an-seg { display: inline-flex; align-items: center; gap: 1px; padding: 2px; border-radius: 8px; background: rgba(247, 242, 232, 0.05); }
.tm-ft-an-seg em { font-style: normal; padding: 0 5px 0 4px; font-size: 9px; letter-spacing: 0.14em; color: rgba(247, 242, 232, 0.35); }
.tm-ft-an-reset { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: none; border-radius: 7px; background: rgba(247, 242, 232, 0.05); color: rgba(247, 242, 232, 0.55); font-size: 10px; cursor: pointer; }
.tm-ft-an-reset:hover { color: #fff; background: rgba(247, 242, 232, 0.14); }
.tm-ft-an-solo { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: none; border-radius: 7px; background: rgba(247, 242, 232, 0.05); color: rgba(247, 242, 232, 0.55); font-size: 10px; cursor: pointer; transition: color 0.2s ease, background 0.2s ease; }
.tm-ft-an-solo:hover { color: #fff; background: rgba(247, 242, 232, 0.14); }
.tm-ft-an-hover { position: absolute; z-index: 1; top: 6px; left: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(5, 5, 6, 0.75); font-size: 11px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; pointer-events: none; opacity: 0; transition: opacity 0.15s ease; }
.tm-ft-an-hover.tm-on { opacity: 1; }
.tm-ft-an-stats small b { margin-left: 6px; letter-spacing: 0.04em; color: #fff; }
.tm-ft-an-grid.tm-solo > .tm-ft-an-card:not(.tm-solo-card) { display: none; }
.tm-ft-an-grid.tm-solo > .tm-solo-card { grid-column: 1 / -1; grid-row: auto; }
.tm-ft-an-grid.tm-solo > .tm-solo-card .tm-ft-an-view { min-height: min(62vh, 560px); }
.tm-ft-an-grid.tm-solo > .tm-ft-an-level .tm-ft-an-big strong { font-size: clamp(3.6rem, 9vw, 7rem); }
.tm-ft-an.tm-full .tm-ft-an-grid.tm-solo { grid-template-rows: minmax(0, 1fr); }
.tm-ft-an.tm-full .tm-ft-an-grid.tm-solo > .tm-solo-card .tm-ft-an-view { min-height: 0; }
.tm-ft-an-seg button { border: none; background: none; border-radius: 6px; padding: 3px 7px; color: rgba(247, 242, 232, 0.45); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; transition: color 0.2s ease, background 0.2s ease; }
.tm-ft-an-seg button:hover { color: #fff; }
.tm-ft-an-seg button.tm-active { color: var(--bg); background: var(--ink); }
.tm-ft-an-legend { display: inline-flex; gap: 14px; letter-spacing: 0.08em; }
.tm-ft-an-legend i { display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; border-radius: 1px; }

/* level */
.tm-ft-an-big { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 2px; }
.tm-ft-an-big strong { font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; text-shadow: 0 0 22px var(--primary-dim); }
.tm-ft-an-big span { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--primary); }
.tm-ft-an-sub { margin: 0 0 12px; font-size: 12px; color: rgba(247, 242, 232, 0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ft-an-bars { flex: 1; display: grid; grid-template-columns: 26px repeat(var(--n, 5), minmax(0, 1fr)); gap: 0 10px; min-height: 170px; margin-top: 4px; }
.tm-ft-an-bscale { position: relative; margin: 22px 0 22px; font-size: 9px; color: rgba(247, 242, 232, 0.35); font-variant-numeric: tabular-nums; }
.tm-ft-an-bscale span { position: absolute; right: 0; transform: translateY(50%); }
.tm-ft-an-bcol { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.tm-ft-an-bval { height: 22px; font-size: 12px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-ft-an-btrack { position: relative; flex: 1; min-height: 100px; width: 100%; max-width: 34px; border-radius: 4px; background: repeating-linear-gradient(0deg, rgba(247, 242, 232, 0.06) 0 2px, transparent 2px 4px); overflow: hidden; }
.tm-ft-an-btrack i { position: absolute; inset: 0; background: linear-gradient(0deg, var(--primary) 0%, var(--primary) 55%, var(--secondary) 100%); -webkit-clip-path: inset(100% 0 0 0); clip-path: inset(100% 0 0 0); -webkit-mask: repeating-linear-gradient(0deg, #000 0 2px, transparent 2px 4px); mask: repeating-linear-gradient(0deg, #000 0 2px, transparent 2px 4px); }
.tm-ft-an-btrack b { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #fff; opacity: 0; box-shadow: 0 0 6px rgba(255, 255, 255, 0.6); }
.tm-ft-an.tm-live .tm-ft-an-btrack b { opacity: 0.9; }
.tm-ft-an-bname { height: 22px; padding-top: 8px; font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 242, 232, 0.45); white-space: nowrap; }
.tm-ft-an-bname em { font-style: normal; color: rgba(247, 242, 232, 0.25); }
.tm-ft-an-meter { position: relative; height: 6px; border-radius: 3px; background: rgba(247, 242, 232, 0.08); }
.tm-ft-an-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--secondary), var(--primary)); box-shadow: 0 0 10px var(--primary-dim); }
.tm-ft-an-meter b { position: absolute; top: -3px; bottom: -3px; left: 0; width: 2px; margin-left: -1px; background: #fff; border-radius: 1px; opacity: 0; transition: opacity 0.2s ease; }
.tm-ft-an.tm-live .tm-ft-an-meter b { opacity: 0.85; }
.tm-ft-an-scale { position: relative; height: 16px; margin: 3px 0 16px; font-size: 9px; color: rgba(247, 242, 232, 0.35); font-variant-numeric: tabular-nums; }
.tm-ft-an-scale span { position: absolute; transform: translateX(-50%); }
.tm-ft-an-scale span:first-child { transform: none; }
.tm-ft-an-scale span:last-child { transform: translateX(-100%); }
.tm-ft-an-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(247, 242, 232, 0.06); }
.tm-ft-an-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-ft-an-stats small { font-size: 9px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(247, 242, 232, 0.4); }
.tm-ft-an-stats strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-ft-an-stats strong em { font-style: normal; font-size: 10px; margin-left: 4px; color: rgba(247, 242, 232, 0.45); }

/* stereo */
.tm-ft-an-stereo-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 16px; align-items: stretch; }
.tm-ft-an-stereo-side { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.tm-ft-an-stereo-side .tm-ft-an-stats { grid-template-columns: 1fr; margin: 0; padding: 0; border: none; }
.tm-ft-an-corr { position: relative; height: 6px; margin: 6px 0 4px; border-radius: 3px; background: linear-gradient(90deg, rgba(196, 76, 103, 0.7), rgba(247, 242, 232, 0.1) 50%, rgba(77, 114, 255, 0.7)); }
.tm-ft-an-corr::before { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: rgba(247, 242, 232, 0.35); }
.tm-ft-an-corr i { position: absolute; top: -4px; left: 50%; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); }
.tm-ft-an-corr-axis { display: flex; justify-content: space-between; font-size: 9px; color: rgba(247, 242, 232, 0.35); font-variant-numeric: tabular-nums; }

.tm-ft-an-empty { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; border-radius: 16px; background: rgba(8, 8, 10, 0.74); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); text-align: center; pointer-events: none; transition: opacity 0.4s ease; }
.tm-ft-an-empty strong { font-size: 1.2rem; }
.tm-ft-an-empty span { font-size: 13px; color: rgba(247, 242, 232, 0.55); }
.tm-ft-an.tm-live .tm-ft-an-empty { opacity: 0; }
.tm-ft-an:not(.tm-live):not(.tm-full) .tm-ft-an-grid, .tm-ft-kb:not(.tm-live) .tm-ft-kb-grid { max-height: 240px; overflow: hidden; }
.tm-ft-an:not(.tm-live) .tm-ft-an-empty, .tm-ft-kb:not(.tm-live) .tm-ft-kb-empty { background: linear-gradient(180deg, rgba(8, 8, 10, 0.72), rgba(8, 8, 10, 0.92)); }

/* full screen */
.tm-ft-an.tm-full { position: fixed; inset: 0; z-index: 690; display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); background-color: #050506; background-image: linear-gradient(rgba(247, 242, 232, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 242, 232, 0.045) 1px, transparent 1px), radial-gradient(55vmax 55vmax at 10% 18%, var(--primary-dim), transparent 60%), radial-gradient(60vmax 60vmax at 92% 82%, rgba(247, 242, 232, 0.06), transparent 60%); background-size: 56px 56px, 56px 56px, auto, auto; background-attachment: fixed; overflow-y: auto; animation: none; }
.tm-ft-an.tm-full .tm-ft-an-grid { flex: 1; grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.7fr); }
.tm-ft-an.tm-full .tm-ft-an-view { min-height: 0; }
.tm-ft-an.tm-full .tm-ft-an-spec .tm-ft-an-view, .tm-ft-an.tm-full .tm-ft-an-scope .tm-ft-an-view, .tm-ft-an.tm-full .tm-ft-an-stereo .tm-ft-an-view, .tm-ft-an.tm-full .tm-ft-an-hist .tm-ft-an-view { min-height: 0; }
html.tm-an-full-lock, html.tm-an-full-lock body { overflow: hidden; }

/* ============================================================ TAG EDITOR ============================================================ */
.tm-ft-tg-drop { min-height: 200px; }
.tm-ft-tg.tm-has .tm-ft-tg-drop { min-height: 84px; padding: 14px; }
.tm-ft-tg.tm-has .tm-ft-drop-icon { width: 36px; height: 36px; margin-bottom: 2px; font-size: 13px; }
.tm-ft-tg.tm-has .tm-ft-drop-title { font-size: 1rem; }
.tm-ft-tg-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; margin-top: 18px; }
.tm-ft-tg-card { position: sticky; top: calc(140px + var(--tm-top-offset, 0px)); align-self: start; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 20px; background: linear-gradient(180deg, rgba(247, 242, 232, 0.06), rgba(247, 242, 232, 0.02)); }
.tm-ft-tg-art { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: repeating-linear-gradient(45deg, rgba(247, 242, 232, 0.03) 0 10px, transparent 10px 20px), #0d0d10; box-shadow: none; cursor: pointer; transition: box-shadow 0.2s ease, transform 0.3s cubic-bezier(.2,.8,.2,1); }
.tm-ft-tg-art.tm-has-art { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
.tm-ft-tg-art:hover, .tm-ft-tg-art.tm-over { box-shadow: inset 0 0 0 2px var(--primary), 0 20px 40px rgba(0, 0, 0, 0.5); }
.tm-ft-tg-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-ft-tg-art > span { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(247, 242, 232, 0.6); }
.tm-ft-tg-art > span i { font-size: 30px; margin-bottom: 4px; }
.tm-ft-tg-art > span small { font-size: 11px; font-weight: 400; color: rgba(247, 242, 232, 0.4); }
.tm-ft-tg-art input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tm-ft-tg-artswap { position: absolute; left: 50%; bottom: 12px; display: none; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(5, 5, 6, 0.75); backdrop-filter: blur(6px); font-style: normal; font-size: 12px; font-weight: 600; color: #fff; transform: translate(-50%, 8px); opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease; }
.tm-ft-tg-art.tm-has-art .tm-ft-tg-artswap { display: inline-flex; }
.tm-ft-tg-art:hover .tm-ft-tg-artswap { opacity: 1; transform: translate(-50%, 0); }
.tm-ft-tg-preview { display: flex; flex-direction: column; gap: 4px; padding: 4px 4px 0; min-width: 0; }
.tm-ft-tg-preview strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.tm-ft-tg-preview > span { font-size: 13px; color: rgba(247, 242, 232, 0.6); }
.tm-ft-tg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tm-ft-tg-chips:empty { display: none; }
.tm-ft-tg-chips span { padding: 4px 9px; border-radius: 999px; background: rgba(247, 242, 232, 0.07); font-family: var(--font-mono); font-size: 11px; color: rgba(247, 242, 232, 0.75); }
.tm-ft-tg-chips span:first-child { background: var(--primary); color: #fff; }
.tm-ft-tg-artinfo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 4px 0; border-top: 1px solid rgba(247, 242, 232, 0.06); font-family: var(--font-mono); font-size: 11px; color: rgba(247, 242, 232, 0.5); }
.tm-ft-tg-artinfo button { border: none; border-radius: 8px; padding: 5px 9px; background: rgba(247, 242, 232, 0.07); color: #fff; font: inherit; cursor: pointer; }
.tm-ft-tg-card .tm-ft-switch { padding: 0 4px; font-size: 12px; }
.tm-ft-tg-form { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.tm-ft-tg-form h3 { margin: 0 0 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247, 242, 232, 0.45); }
.tm-ft-tg-sechead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tm-ft-tg-sechead h3 { margin: 0; }
.tm-ft-tg-sechead .tm-ft-an-seg button { min-height: 28px; padding: 4px 10px; font-size: 11px; }
.tm-ft-tg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tm-ft-tg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tm-ft-tg-grid--dj { grid-template-columns: 1fr 1fr 1.2fr; }
.tm-ft-tg-grid label { display: flex; flex-direction: column; gap: 6px; padding: 11px 14px; border-radius: 12px; background: rgba(247, 242, 232, 0.045); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.2s ease, background 0.2s ease; }
.tm-ft-tg-grid label:hover { background: rgba(247, 242, 232, 0.06); }
.tm-ft-tg-grid label:focus-within { background: rgba(247, 242, 232, 0.07); box-shadow: inset 0 0 0 1px var(--primary); }
.tm-ft-tg-grid small { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 242, 232, 0.45); }
.tm-ft-tg-grid input { width: 100%; min-width: 0; border: none; background: none; color: #fff; font: inherit; font-size: 15px; outline: none; }
.tm-ft-tg-grid input::placeholder { color: rgba(247, 242, 232, 0.25); }
.tm-ft-tg-wide { grid-column: 1 / -1; }
.tm-ft-tg-span2 { grid-column: span 2; }
.tm-ft-tg-grid .tm-ft-tg-wide:first-child input { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.tm-ft-tg-big input { font-family: var(--font-display); font-size: 1.6rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.tm-ft-tg-detect { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: none; border-radius: 12px; background: linear-gradient(135deg, var(--primary-dim), rgba(247, 242, 232, 0.05)); color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tm-ft-tg-detect i { font-size: 18px; }
.tm-ft-tg-detect:hover { transform: translateY(-1px); box-shadow: 0 0 24px var(--primary-dim); }
.tm-ft-tg-detect:disabled { opacity: 0.6; pointer-events: none; }
.tm-ft-tg-actions { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 16px; padding-top: 16px; border-top: 1px solid rgba(247, 242, 232, 0.06); }
.tm-ft-tg-note { margin-right: auto; font-family: var(--font-mono); font-size: 11px; color: rgba(247, 242, 232, 0.5); }
@media (max-width: 900px) {
  .tm-ft-tg-body { grid-template-columns: 1fr; }
  .tm-ft-tg-card { position: static; display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: start; }
  .tm-ft-tg-art { grid-row: span 3; }
  .tm-ft-tg-actions { grid-column: 1; }
}
@media (max-width: 560px) {
  .tm-ft-tg-grid, .tm-ft-tg-grid--3, .tm-ft-tg-grid--dj { grid-template-columns: 1fr 1fr; }
  .tm-ft-tg-span2 { grid-column: 1 / -1; }
  .tm-ft-tg-detect { grid-column: 1 / -1; flex-direction: row; }
  .tm-ft-tg-grid--3 > :nth-child(3) { order: -1; }
  .tm-ft-tg-grid--3 > :nth-child(1) { order: -2; }
}

@media (max-width: 1100px) {
  .tm-ft-an-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-ft-an-spec, .tm-ft-an-level, .tm-ft-an-scope, .tm-ft-an-stereo, .tm-ft-an-hist { grid-column: span 2; }
  .tm-ft-an.tm-full .tm-ft-an-grid { grid-template-rows: none; }
  .tm-ft-an.tm-full .tm-ft-an-spec .tm-ft-an-view { min-height: 38vh; }
  .tm-ft-an.tm-full .tm-ft-an-scope .tm-ft-an-view, .tm-ft-an.tm-full .tm-ft-an-stereo .tm-ft-an-view { min-height: 26vh; }
  .tm-ft-an.tm-full .tm-ft-an-hist .tm-ft-an-view { min-height: 18vh; }
}
@media (max-width: 560px) {
  .tm-ft-an-bar .tm-ft-btn { flex: 1; padding: 12px 10px; }
  .tm-ft-an-bar-end { width: 100%; justify-content: space-between; margin-left: 0; }
  .tm-ft-an-spec .tm-ft-an-view { min-height: 200px; }
  .tm-ft-an-stereo-body { grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .tm-ft-an-scope, .tm-ft-an-stereo { grid-column: span 1; }
}


/* ============================================================ KEY & BPM ============================================================ */
.tm-ft-kb, .tm-ft-tu { --an-gap: 20px; }
.tm-ft-kb-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--an-gap); }
.tm-ft-kb-card { min-height: 360px; }
.tm-ft-kb-card .tm-ft-an-foot { margin-top: auto; }
.tm-ft-kb-alts { margin-bottom: 18px; }
.tm-ft-kb-big { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 4px; }
.tm-ft-kb-big strong { white-space: nowrap; font-size: clamp(3.4rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; text-shadow: 0 0 26px var(--primary-dim); }
.tm-ft-kb-big strong.tm-ft-kb-keyname { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
.tm-ft-kb-big span { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: var(--primary); }
.tm-ft-kb-sub { min-height: 1.4em; margin: 0 0 16px; font-size: 13px; color: rgba(247, 242, 232, 0.55); }
.tm-ft-kb-conf { position: relative; height: 4px; margin-bottom: 18px; border-radius: 2px; background: rgba(247, 242, 232, 0.08); overflow: hidden; }
.tm-ft-kb-conf i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--secondary), var(--primary)); transition: width 0.5s cubic-bezier(.2,.8,.2,1); }
.tm-ft-kb-alts { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-ft-kb-alts button { border: none; border-radius: 10px; padding: 8px 12px; background: rgba(247, 242, 232, 0.05); color: rgba(247, 242, 232, 0.7); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.tm-ft-kb-alts button small { margin-left: 6px; font-size: 10px; font-weight: 400; color: rgba(247, 242, 232, 0.4); }
.tm-ft-kb-alts button:hover { background: rgba(247, 242, 232, 0.12); color: #fff; }
.tm-ft-kb-alts button.tm-active { background: var(--ink); color: var(--bg); }
.tm-ft-kb-alts button.tm-active small { color: rgba(5, 5, 6, 0.55); }
.tm-ft-kb-beat { width: 12px; height: 12px; border-radius: 50%; background: rgba(247, 242, 232, 0.12); transition: background 0.08s ease, box-shadow 0.08s ease; }
.tm-ft-kb-beat.tm-on { background: var(--primary); box-shadow: 0 0 14px var(--primary); }
.tm-ft-kb-beat.tm-on.tm-down { background: #fff; box-shadow: 0 0 14px #fff; }
.tm-ft-kb-chroma { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 4px; min-height: 90px; }
.tm-ft-kb-chroma div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.tm-ft-kb-chroma i { display: block; width: 100%; height: 2%; border-radius: 3px 3px 1px 1px; background: rgba(247, 242, 232, 0.16); transition: height 0.4s cubic-bezier(.2,.8,.2,1), background 0.3s ease; }
.tm-ft-kb-chroma i.tm-in { background: var(--primary); }
.tm-ft-kb-chroma i.tm-root { background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
.tm-ft-kb-chroma span { font-size: 10px; font-weight: 600; color: rgba(247, 242, 232, 0.45); }
.tm-ft-kb-send { display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 10px; padding: 10px 14px; background: rgba(247, 242, 232, 0.06); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.tm-ft-kb-send:hover { background: var(--primary); }
.tm-ft-kb-send:disabled { opacity: 0.3; pointer-events: none; }
.tm-ft-kb-empty { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; border-radius: 16px; background: rgba(8, 8, 10, 0.78); text-align: center; transition: opacity 0.4s ease; }
.tm-ft-kb-empty strong { font-size: 1.2rem; }
.tm-ft-kb-empty span { font-size: 13px; color: rgba(247, 242, 232, 0.55); }
.tm-ft-kb.tm-live .tm-ft-kb-empty { opacity: 0; pointer-events: none; }
.tm-ft-kb-progress { position: relative; display: block; width: min(260px, 70%); height: 4px; margin-top: 10px; border-radius: 2px; background: rgba(247, 242, 232, 0.1); overflow: hidden; }
.tm-ft-kb-progress b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--primary); transition: width 0.2s linear; }

/* ============================================================ TUNER ============================================================ */
.tm-ft-tu-main { margin-bottom: var(--an-gap); }
.tm-ft-tu-note { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 4px 0 10px; }
.tm-ft-tu-note strong { font-size: clamp(5rem, 13vw, 8.5rem); line-height: 0.95; letter-spacing: -0.04em; transition: color 0.2s ease, text-shadow 0.2s ease; }
.tm-ft-tu-note sub { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; color: rgba(247, 242, 232, 0.5); }
.tm-ft-tu-main.tm-ok .tm-ft-tu-note strong { color: var(--primary); text-shadow: 0 0 34px var(--primary); }
.tm-ft-tu-meter { max-width: 640px; margin: 0 auto; width: 100%; }
.tm-ft-tu-scale { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 10px; color: rgba(247, 242, 232, 0.35); font-variant-numeric: tabular-nums; }
.tm-ft-tu-track { position: relative; height: 30px; border-radius: 8px; background: repeating-linear-gradient(90deg, rgba(247, 242, 232, 0.14) 0 1px, transparent 1px calc(10% - 0.1px)), rgba(247, 242, 232, 0.04); }
.tm-ft-tu-zone { position: absolute; left: 45%; width: 10%; top: 0; bottom: 0; background: var(--primary); opacity: 0.18; }
.tm-ft-tu-track b { position: absolute; top: -4px; bottom: -4px; left: 50%; width: 4px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.6); opacity: 0.25; transition: opacity 0.3s ease; }
.tm-ft-tu-main.tm-has .tm-ft-tu-track b { opacity: 1; }
.tm-ft-tu-main.tm-ok .tm-ft-tu-track b { background: var(--primary); box-shadow: 0 0 16px var(--primary); }
.tm-ft-tu-cents { margin: 12px 0 16px; text-align: center; font-size: 14px; font-weight: 600; color: rgba(247, 242, 232, 0.65); font-variant-numeric: tabular-nums; }
.tm-ft-tu-trace { min-height: 110px; }
.tm-ft-tu-conv { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 16px; }
.tm-ft-tu-field { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 12px; background: rgba(247, 242, 232, 0.06); }
.tm-ft-tu-field small { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; color: rgba(247, 242, 232, 0.45); }
.tm-ft-tu-field input { width: 120px; border: none; border-radius: 8px; padding: 8px 10px; background: rgba(5, 5, 6, 0.6); color: #fff; font: inherit; font-size: 16px; font-weight: 600; -moz-appearance: textfield; }
.tm-ft-tu-field input::-webkit-inner-spin-button, .tm-ft-tu-field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tm-ft-tu-field input:focus { outline: 1px solid var(--primary); }
.tm-ft-tu-out { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-size: 13px; color: rgba(247, 242, 232, 0.55); }
.tm-ft-tu-out strong { font-size: 1.6rem; color: #fff; }
.tm-ft-tu-out b { color: #fff; font-variant-numeric: tabular-nums; }
.tm-ft-tu-lock { border: none; border-radius: 8px; padding: 5px 10px; background: rgba(247, 242, 232, 0.06); color: rgba(247, 242, 232, 0.6); font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: none; cursor: pointer; }
.tm-ft-tu-lock:disabled { background: none; cursor: default; }
.tm-ft-tu-lock:not(:disabled) { background: var(--primary); color: #fff; }
.tm-ft-tu-lock:not(:disabled):hover { background: #fff; color: var(--bg); }
.tm-ft-tu-you { min-height: 1.4em; margin: -4px 0 18px; text-align: center; font-size: 14px; color: rgba(247, 242, 232, 0.6); font-variant-numeric: tabular-nums; }
.tm-ft-tu-you b { color: #fff; }
.tm-ft-tu-neigh { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 600; color: rgba(247, 242, 232, 0.4); }
.tm-ft-tu-piano { position: relative; display: flex; height: 168px; margin-top: 4px; user-select: none; -webkit-user-select: none; }
.tm-ft-tu-piano button { font: inherit; cursor: pointer; border: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; padding: 0 0 12px; transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease; }
.tm-ft-tu-piano button b { font-size: 14px; }
.tm-ft-tu-piano button small { font-size: 10px; font-variant-numeric: tabular-nums; opacity: 0.6; }
.tm-ft-tu-white { flex: 1; margin: 0 2px; border-radius: 0 0 10px 10px; background: rgba(247, 242, 232, 0.9); color: var(--bg); }
.tm-ft-tu-white:hover { background: #fff; }
.tm-ft-tu-black { position: absolute; top: 0; z-index: 1; width: calc(100% / 7 * 0.62); height: 60%; border-radius: 0 0 8px 8px; background: #1c1c22; color: rgba(247, 242, 232, 0.85); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5); transform: translateX(-50%); padding-bottom: 8px !important; }
.tm-ft-tu-black:hover { background: #2a2a32; }
.tm-ft-tu-black b { font-size: 11px !important; }
.tm-ft-tu-piano button.tm-live { box-shadow: inset 0 -4px 0 var(--primary), 0 0 18px var(--primary-dim); }
.tm-ft-tu-piano button.tm-goal { box-shadow: inset 0 0 0 2px var(--primary); }
.tm-ft-tu-piano button.tm-playing { background: var(--primary); color: #fff; }
.tm-ft-tu-piano button.tm-playing small { opacity: 0.85; }
.tm-ft-tu-black.tm-playing { transform: translateX(-50%) translateY(2px); }
@media (max-width: 760px) {
  .tm-ft-kb-grid { grid-template-columns: 1fr; }
  .tm-ft-kb-card { min-height: 0; }
  .tm-ft-kb-chroma { min-height: 80px; }
}
@media (pointer: coarse) {
  .tm-ft-kb-alts button, .tm-ft-kb-send { min-height: 40px; }
  .tm-ft-tu-piano { height: 190px; }
}

/* ---- tool picker (small screens) ---- */
.tm-ft-pick { display: none; }
.tm-ft-rail-list > div { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 1100px) {
  .tm-ft-rail { position: relative; top: 0; z-index: 5; display: block; padding: 6px; }
  .tm-ft-rail-title { display: none; }
  .tm-ft-pick { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; width: 100%; padding: 14px 8px 14px 16px; border: none; border-radius: 16px; background: rgba(247, 242, 232, 0.05); color: #fff; text-align: left; cursor: pointer; }
  .tm-ft-pick-idx { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--primary); }
  .tm-ft-pick-name { display: block; font-size: 17px; font-weight: 600; }
  .tm-ft-pick-desc { display: block; margin-top: 2px; font-size: 12px; color: rgba(247, 242, 232, 0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tm-ft-pick-count { justify-self: end; display: flex; align-items: center; gap: 8px; padding-right: 6px; font-size: 11px; white-space: nowrap; color: rgba(247, 242, 232, 0.4); }
  .tm-ft-pick-count i { font-size: 12px; color: #fff; transition: transform 0.3s ease; }
  .tm-ft-rail.tm-open .tm-ft-pick-count i { transform: rotate(180deg); }
  .tm-ft-rail-list { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(.2,.8,.2,1); }
  .tm-ft-rail.tm-open .tm-ft-rail-list { grid-template-rows: 1fr; }
  .tm-ft-rail-list > div { overflow: hidden; }
  .tm-ft-rail-list .tm-ft-rail-item { width: 100%; grid-template-columns: 44px minmax(0, 1fr); padding: 12px 12px 12px 16px; }
  .tm-ft-rail-list > div > :first-child { margin-top: 6px; }
  .tm-ft-rail-item.tm-active::before { top: 14px; bottom: 14px; }
  .tm-ft-rail-soon { margin: 6px 12px 10px 60px; }
}

/* ---- analyzer: touch + landscape ---- */
@media (pointer: coarse) {
  .tm-ft-an-head { font-size: 11px; min-height: 36px; }
  .tm-ft-an-seg { padding: 3px; border-radius: 10px; }
  .tm-ft-an-seg button { min-width: 36px; min-height: 34px; padding: 6px 10px; border-radius: 8px; font-size: 13px; }
  .tm-ft-an-foot .tm-ft-an-seg button { min-height: 40px; font-size: 13px; }
  .tm-ft-an-solo, .tm-ft-an-reset { width: 38px; height: 38px; border-radius: 10px; font-size: 13px; }
  .tm-ft-an-tools { gap: 8px; }
  .tm-ft-an-scrub { height: 36px; }
  .tm-ft-an-transport .tm-ft-play { width: 46px; height: 46px; }
  .tm-ft-an-icon { width: 46px; height: 46px; }
  .tm-ft-an-cal { width: 64px; padding: 6px 8px; font-size: 14px; }
  .tm-ft-an-bval { font-size: 13px; }
  .tm-ft-an-bname, .tm-ft-an-stats small { font-size: 10px; }
  .tm-ft-an-stats strong { font-size: 1.3rem; }
  .tm-ft-an-hover { font-size: 12px; }
}
@media (max-width: 560px) {
  .tm-ft-col { padding-left: 4vw; padding-right: 4vw; }
  .tm-ft-deck { --tm-ft-pad: 12px; }
}
@media (max-width: 900px) {
  .tm-ft-an { --an-gap: 12px; }
  .tm-ft-an-card { padding: 16px 16px 18px; }
}
@media (max-width: 900px) and (orientation: landscape) {
  .tm-ft-col { padding-left: 3vw; padding-right: 3vw; }
  .tm-ft-deck { --tm-ft-pad: 16px; }
}
.tm-ft-an.tm-full .tm-ft-an-grid.tm-solo { grid-template-rows: minmax(0, 1fr) !important; }
.tm-ft-an.tm-full .tm-ft-an-grid.tm-solo > .tm-solo-card { height: 100%; }
.tm-ft-an.tm-full .tm-ft-an-grid.tm-solo > .tm-solo-card .tm-ft-an-view { min-height: 0 !important; }
.tm-ft-an.tm-full .tm-ft-an-grid.tm-solo .tm-ft-an-bars { min-height: 0; }
@media (max-height: 520px) {
  .tm-ft-an.tm-full { --an-gap: 8px; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .tm-ft-an.tm-full .tm-ft-an-bar { flex-wrap: nowrap; margin-bottom: 8px; }
  .tm-ft-an.tm-full .tm-ft-an-bar .tm-ft-btn { flex: none; padding: 8px 14px; font-size: 11px; }
  .tm-ft-an.tm-full .tm-ft-an-bar-end { width: auto; margin-left: auto; }
  .tm-ft-an.tm-full .tm-ft-an-status { display: none; }
  .tm-ft-an.tm-full .tm-ft-an-icon { width: 38px; height: 38px; }
  .tm-ft-an.tm-full .tm-ft-an-transport { padding: 4px 10px 4px 4px; margin-bottom: 8px; }
  .tm-ft-an.tm-full .tm-ft-an-transport .tm-ft-play { width: 34px; height: 34px; }
  .tm-ft-an.tm-full .tm-ft-an-name { display: none; }
  .tm-ft-an.tm-full .tm-ft-an-scrub { height: 26px; }
  .tm-ft-an.tm-full .tm-ft-an-card { padding: 10px 14px 12px; }
  .tm-ft-an.tm-full .tm-ft-an-head { margin-bottom: 8px; }
  .tm-ft-an.tm-full .tm-ft-an-big strong { font-size: 2.4rem !important; }
  .tm-ft-an.tm-full .tm-ft-an-sub { margin-bottom: 6px; }
  .tm-ft-an.tm-full .tm-ft-an-bval { height: 18px; }
  .tm-ft-an.tm-full .tm-ft-an-grid:not(.tm-solo) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .tm-ft-an.tm-full .tm-ft-an-grid:not(.tm-solo) > * { grid-column: span 1; }
  .tm-ft-an.tm-full .tm-ft-an-grid:not(.tm-solo) .tm-ft-an-view { min-height: calc(100dvh - 190px) !important; }
  .tm-ft-an.tm-full .tm-ft-an-grid:not(.tm-solo) > .tm-ft-an-hist { grid-column: span 2; }
  .tm-ft-an.tm-full .tm-ft-an-grid:not(.tm-solo) > .tm-ft-an-hist .tm-ft-an-view { min-height: 36vh !important; }
  .tm-ft-an.tm-full .tm-ft-an-grid:not(.tm-solo) > .tm-ft-an-empty { grid-column: auto; }
}

@media (max-width: 1100px) {
  .tm-ft-rack { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .tm-ft-tempo, .tm-ft-camelot { grid-template-columns: 1fr; }
  .tm-ft-wheel { max-width: 420px; margin: 0 auto; }
  .tm-ft-conv-actions { margin-left: 0; width: 100%; }
  .tm-ft-conv-actions .tm-ft-btn--solid { flex: 1; }
}
@media (max-width: 760px) {
  .tm-ft-col { padding: calc(118px + var(--tm-top-offset, 0px)) 6vw 100px; }
  .tm-ft-hero > div { width: 100%; }
}
@media (max-width: 560px) {
  .tm-ft-deck { border-radius: 16px; }
  .tm-ft-module-hint { display: none; }
  .tm-ft-knob { width: 76px; height: 76px; }
  .tm-ft-out-opts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tm-ft-dd-btn { min-width: 0; }
  .tm-ft-pad-wrap { padding: 44px 0; }
  .tm-ft-pad { width: min(210px, 56vw); }
  .tm-ft-metro { display: grid; grid-template-columns: 56px 1fr 1fr; }
  .tm-ft-metro .tm-ft-dd-btn { min-width: 0; }
  .tm-ft-val { padding: 10px 8px; }
  .tm-ft-val strong { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-ft-fog, .tm-ft-tool, .tm-ft-file, .tm-ft-mix-list li, .tm-ft-led.tm-busy { animation: none; }
  .tm-ft-wheel-rot, .tm-ft-wheel-seg text { transition: none; }
}

/* ============================================================ REFERENCE A/B ============================================================ */
.tm-ft-ab { --an-gap: 20px; }
.tm-ft-ab-decks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.tm-ft-ab-deck { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 16px; background: rgba(247, 242, 232, 0.025); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.25s ease, background 0.25s ease; }
.tm-ft-ab-deck.tm-listen { background: rgba(247, 242, 232, 0.05); box-shadow: inset 0 0 0 1px rgba(247, 242, 232, 0.12); }
.tm-ft-ab-deck.tm-over { box-shadow: inset 0 0 0 1px var(--primary); }
.tm-ft-ab-wave { position: relative; height: 74px; }
.tm-ft-ab-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.tm-ft-ab-region { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; padding: 0 4px; font-family: var(--font-mono); font-size: 11px; color: rgba(247, 242, 232, 0.55); }
.tm-ft-ab-region button { border: none; border-radius: 8px; padding: 5px 9px; background: rgba(247, 242, 232, 0.07); color: #fff; font: inherit; font-size: 11px; cursor: pointer; }
.tm-ft-ab-region button:hover { background: var(--primary); }
.tm-ft-ab-transport { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: var(--an-gap); padding: 8px 16px 8px 8px; border-radius: 14px; background: rgba(247, 242, 232, 0.04); }
.tm-ft-ab-transport .tm-ft-play { width: 44px; height: 44px; }
.tm-ft-ab-transport .tm-ft-play svg { width: 12px; height: 12px; }
.tm-ft-ab-hint { margin-left: auto; font-size: 12px; color: rgba(247, 242, 232, 0.45); }
.tm-ft-ab-slot { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 4px 8px 4px 4px; border-radius: 12px; background: none; cursor: pointer; transition: background 0.2s ease, box-shadow 0.2s ease; }
.tm-ft-ab-slot:hover, .tm-ft-ab-slot.tm-over { background: rgba(247, 242, 232, 0.08); }
.tm-ft-ab-slot.tm-over { box-shadow: inset 0 0 0 1px var(--primary); }
.tm-ft-ab-slot input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tm-ft-ab-slot b { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(247, 242, 232, 0.08); font-family: var(--font-mono); font-size: 18px; }
#tm-ft-ab-slot-a.tm-loaded b { background: var(--primary); color: #fff; }
#tm-ft-ab-slot-b.tm-loaded b { background: var(--ink); color: var(--bg); }
.tm-ft-ab-slot span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-ft-ab-slot small { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(247, 242, 232, 0.45); }
.tm-ft-ab-slot strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ft-ab-slot > i { color: rgba(247, 242, 232, 0.45); }
.tm-ft-ab-slot.tm-busy strong { color: rgba(247, 242, 232, 0.55); }
.tm-ft-ab-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(247, 242, 232, 0.06); }
.tm-ft-ab-switch button { border: none; background: none; border-radius: 8px; padding: 6px 12px; color: rgba(247, 242, 232, 0.55); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.tm-ft-ab-switch button:hover { color: #fff; }
.tm-ft-ab-switch button.tm-active { background: var(--primary); color: #fff; }
.tm-ft-ab.tm-on-b .tm-ft-ab-switch button.tm-active { background: var(--ink); color: var(--bg); }
.tm-ft-ab-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--an-gap); }
.tm-ft-ab-spec .tm-ft-an-view { min-height: 240px; }
.tm-ft-ab-bands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.tm-ft-ab-bands span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(247, 242, 232, 0.04); }
.tm-ft-ab-bands small { font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 242, 232, 0.45); }
.tm-ft-ab-bands b { font-family: var(--font-mono); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tm-ft-ab-bands .tm-ok b { color: #7fd8a0; }
.tm-ft-ab-bands .tm-warn b { color: #f0b44c; }
.tm-ft-ab-bands .tm-off b { color: #ff5d73; }
.tm-ft-ab-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tm-ft-ab-table th { padding: 0 0 10px 14px; font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-align: right; color: rgba(247, 242, 232, 0.4); }
.tm-ft-ab-table td { padding: 11px 0 11px 14px; border-top: 1px solid rgba(247, 242, 232, 0.06); font-family: var(--font-mono); font-size: 13px; text-align: right; }
.tm-ft-ab-table td:first-child { font-family: var(--font-text); font-size: 13px; text-align: left; color: rgba(247, 242, 232, 0.7); }
.tm-ft-ab-table td em { display: block; font-style: normal; font-size: 10px; color: rgba(247, 242, 232, 0.35); }
.tm-ft-ab-table td.tm-off { color: #f0b44c; }

@media (max-width: 900px) {
  .tm-ft-ab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .tm-ft-ab-decks { grid-template-columns: 1fr; }
  .tm-ft-ab-hint { margin-left: 0; width: 100%; }
  .tm-ft-ab-bands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tm-ft-ab.tm-ready .tm-ft-kb-empty { opacity: 0; pointer-events: none; }

/* ============================================================ FULL SCREEN (every tool) ============================================================ */
.tm-ft-full-btn { display: flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; margin-left: auto; border: none; border-radius: 10px; background: rgba(247, 242, 232, 0.06); color: #fff; font-size: 13px; cursor: pointer; transition: background 0.2s ease; }
.tm-ft-full-btn:hover { background: rgba(247, 242, 232, 0.14); }
.tm-ft-module-hint + .tm-ft-full-btn { margin-left: 12px; }
.tm-ft-tool.tm-ft-full { position: fixed; inset: 0; z-index: 690; display: flex; flex-direction: column; justify-content: center; padding: max(56px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); background-color: #050506; background-image: linear-gradient(rgba(247, 242, 232, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 242, 232, 0.045) 1px, transparent 1px), radial-gradient(55vmax 55vmax at 10% 18%, var(--primary-dim), transparent 60%), radial-gradient(60vmax 60vmax at 92% 82%, rgba(247, 242, 232, 0.06), transparent 60%); background-size: 56px 56px, 56px 56px, auto, auto; background-attachment: fixed; overflow-y: auto; animation: none; --an-gap: 16px; }
.tm-ft-tool.tm-ft-full > *:not(.tm-ft-full-close) { width: 100%; max-width: 1500px; margin-left: auto; margin-right: auto; }
.tm-ft-tool.tm-ft-full .tm-ft-fine { display: none; }
.tm-ft-ab.tm-ft-full { justify-content: flex-start; }
.tm-ft-ab.tm-ft-full .tm-ft-ab-grid { flex: 1; min-height: 0; }
.tm-ft-ab.tm-ft-full .tm-ft-ab-spec .tm-ft-an-view { min-height: 0; }
.tm-ft-full-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); z-index: 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: none; border-radius: 12px; background: rgba(247, 242, 232, 0.08); color: #fff; font-size: 14px; cursor: pointer; }
.tm-ft-full-close:hover { background: rgba(247, 242, 232, 0.16); }
.tm-ft-camelot.tm-ft-full { display: grid; align-content: center; justify-content: center; grid-template-columns: minmax(0, min(78vh, 620px)) minmax(290px, 380px); }
.tm-ft-camelot.tm-ft-full > *:not(.tm-ft-full-close) { max-width: none; }
.tm-ft-camelot.tm-ft-full .tm-ft-wheel { max-width: min(78vh, 620px); }
@media (max-width: 760px) {
  .tm-ft-camelot.tm-ft-full { grid-template-columns: 1fr; align-content: start; }
  .tm-ft-camelot.tm-ft-full .tm-ft-wheel { max-width: min(90vw, 60vh); }
}

/* ============================================================ LISTENING TEST ============================================================ */
.tm-ft-progress { --p: 0; list-style: none; position: relative; display: flex; justify-content: space-between; margin: 6px 0 30px; padding: 0; }
.tm-ft-progress::before, .tm-ft-progress::after { content: ''; position: absolute; top: 19px; left: 20px; height: 2px; border-radius: 2px; }
.tm-ft-progress::before { right: 20px; background: rgba(247, 242, 232, 0.08); }
.tm-ft-progress::after { width: calc((100% - 40px) * var(--p)); background: linear-gradient(90deg, rgba(247, 242, 232, 0.3), var(--primary)); box-shadow: 0 0 10px var(--primary-dim); transition: width 0.6s cubic-bezier(.2,.8,.2,1); }
.tm-ft-progress li { position: relative; z-index: 1; flex: 0 0 40px; width: 40px; }
.tm-ft-progress button { position: relative; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; width: max-content; max-width: 170px; padding: 0 0 6px; border: none; background: none; color: rgba(247, 242, 232, 0.45); font: inherit; text-align: center; cursor: pointer; transition: color 0.25s ease; }
.tm-ft-progress li:first-child button { left: 0; transform: none; align-items: flex-start; text-align: left; }
.tm-ft-progress li:last-child button { left: 0; transform: translateX(calc(-100% + var(--dot, 40px))); align-items: flex-end; text-align: right; }
.tm-ft-progress button:hover:not(:disabled) { color: #fff; }
.tm-ft-progress button:disabled { cursor: default; opacity: 0.4; }
.tm-ft-progress i { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #121216; box-shadow: inset 0 0 0 1px rgba(247, 242, 232, 0.14); font-style: normal; font-family: var(--font-mono); font-size: 13px; font-weight: 600; transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease; }
.tm-ft-progress button:hover:not(:disabled) i { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(247, 242, 232, 0.4); }
.tm-ft-progress button.tm-active { color: #fff; }
.tm-ft-progress button.tm-active i { background: var(--primary); color: #fff; box-shadow: 0 0 0 6px var(--primary-dim), 0 0 24px var(--primary); }
.tm-ft-progress button.tm-active i::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 1px var(--primary); animation: tm-ft-step-pulse 1.8s ease-out infinite; }
@keyframes tm-ft-step-pulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.5); opacity: 0; } }
.tm-ft-progress button.tm-ok i { background: #12201a; color: #7fd8a0; box-shadow: inset 0 0 0 1px rgba(127, 216, 160, 0.5); }
.tm-ft-progress button.tm-warn i { background: #241d10; color: #f0b44c; box-shadow: inset 0 0 0 1px rgba(240, 180, 76, 0.5); }
.tm-ft-progress button.tm-bad i { background: #261216; color: #ff5d73; box-shadow: inset 0 0 0 1px rgba(255, 93, 115, 0.5); }
.tm-ft-progress button.tm-active.tm-done i { color: #fff; }
.tm-ft-progress b { font-size: 13px; font-weight: 600; line-height: 1.25; }
.tm-ft-progress small { margin-top: -8px; max-width: 150px; font-size: 11px; line-height: 1.35; color: rgba(247, 242, 232, 0.45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ft-progress small:empty { display: none; }
.tm-ft-progress button.tm-ok small { color: #7fd8a0; }
.tm-ft-progress button.tm-warn small { color: #f0b44c; }
.tm-ft-progress button.tm-bad small { color: #ff5d73; }
@media (prefers-reduced-motion: reduce) { .tm-ft-progress button.tm-active i::after { animation: none; } }
.tm-ft-lt-stage { display: flex; flex-direction: column; min-width: 0; padding: 24px 26px 22px; }
.tm-ft-lt-head { position: relative; z-index: 1; }
.tm-ft-lt-controls { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; }
.tm-ft-lt-head strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -0.01em; }
.tm-ft-lt-head p { margin: 8px 0 0; max-width: 62ch; font-size: 13px; line-height: 1.55; color: rgba(247, 242, 232, 0.55); }
.tm-ft-lt-vol { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(247, 242, 232, 0.05); color: rgba(247, 242, 232, 0.55); }
.tm-ft-lt-vol b { min-width: 46px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.tm-ft-lt-vol input { -webkit-appearance: none; appearance: none; width: 96px; height: 4px; border-radius: 2px; background: rgba(247, 242, 232, 0.14); outline: none; cursor: pointer; }
.tm-ft-lt-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--primary-dim); }
.tm-ft-lt-vol input::-moz-range-thumb { width: 14px; height: 14px; border: none; border-radius: 50%; background: #fff; }
.tm-ft-lt-view { position: relative; height: clamp(280px, 42vh, 420px); margin: 16px 0 8px; }
.tm-ft-lt-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.tm-ft-lt-read { margin-left: auto; font-family: var(--font-mono); font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; }
.tm-ft-lt-ask { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 38px; }
.tm-ft-lt-ask button { border: none; border-radius: 999px; padding: 10px 16px; background: rgba(247, 242, 232, 0.06); color: rgba(247, 242, 232, 0.8); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.tm-ft-lt-ask button:hover { background: rgba(247, 242, 232, 0.14); color: #fff; }
.tm-ft-lt-ask button.tm-on { background: var(--primary); color: #fff; }
.tm-ft-lt-ask:empty { min-height: 0; }
.tm-ft-lt-notes { margin-top: 12px; padding: 18px 20px; }
.tm-ft-lt-notes > * { position: relative; z-index: 1; }
.tm-ft-lt-res-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tm-ft-lt-res-head b { font-size: 14px; }
.tm-ft-lt-res-head span { font-family: var(--font-mono); font-size: 11px; color: rgba(247, 242, 232, 0.5); }
.tm-ft-lt-empty { margin: 0; font-size: 13px; color: rgba(247, 242, 232, 0.5); }
.tm-ft-lt-marks { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-ft-lt-marks > span { display: inline-flex; border-radius: 999px; background: rgba(240, 180, 76, 0.12); overflow: hidden; }
.tm-ft-lt-marks button { border: none; background: none; padding: 8px 12px; color: #fff; font: inherit; font-family: var(--font-mono); font-size: 12px; cursor: pointer; }
.tm-ft-lt-marks button em { font-style: normal; color: #f0b44c; }
.tm-ft-lt-marks button:hover { background: rgba(240, 180, 76, 0.25); }
.tm-ft-lt-marks button + button { padding: 8px 12px 8px 4px; color: rgba(247, 242, 232, 0.5); }
.tm-ft-lt-notes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.tm-ft-lt-notes li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border-radius: 10px; background: rgba(247, 242, 232, 0.04); box-shadow: inset 2px 0 0 #f0b44c; }
.tm-ft-lt-notes li.tm-bad { box-shadow: inset 2px 0 0 #ff5d73; }
.tm-ft-lt-notes b { font-family: var(--font-mono); font-size: 13px; }
.tm-ft-lt-notes span { font-size: 12px; color: rgba(247, 242, 232, 0.7); }
.tm-ft-lt-notes em { grid-column: 1 / -1; font-style: normal; font-size: 11px; color: rgba(247, 242, 232, 0.5); }
.tm-ft-lt-notes p.tm-ok { margin: 0; font-size: 13px; color: #7fd8a0; }
.tm-ft-lt-bar { display: flex; justify-content: center; margin-top: 18px; }
.tm-ft-lt-nav { display: inline-flex; align-items: center; gap: 10px; justify-self: start; border: none; background: none; padding: 10px 4px; color: rgba(247, 242, 232, 0.6); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: color 0.2s ease; }
.tm-ft-lt-nav:hover { color: #fff; }
.tm-ft-lt-nav:disabled { opacity: 0.25; pointer-events: none; }
#tm-ft-lt-next { justify-self: end; }
.tm-ft-lt-go { display: inline-flex; align-items: center; gap: 12px; padding: 6px 22px 6px 6px; border: none; border-radius: 999px; background: #fff; color: var(--bg); font: inherit; cursor: pointer; transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; }
.tm-ft-lt-go:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.tm-ft-lt-go b { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.tm-ft-lt-go-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); }
.tm-ft-lt-go-icon svg { width: 12px; height: 12px; fill: #fff; }
.tm-ft-lt-go-icon svg + svg, .tm-ft-lt-go.tm-on .tm-ft-lt-go-icon svg:first-child { display: none; }
.tm-ft-lt-go.tm-on .tm-ft-lt-go-icon svg + svg { display: block; }
.tm-ft-lt-go.tm-on { background: var(--primary); color: #fff; box-shadow: 0 0 30px var(--primary-dim); }

/* ============================================================ SET TIMER ============================================================ */
.tm-ft-st-pane { animation: tm-ft-tool-in 0.45s cubic-bezier(.2,.7,.2,1); }
.tm-ft-st-drop { min-height: 220px; }
.tm-ft-st-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tm-ft-st-how { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tm-cue { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin: 0 2px; padding: 0 5px; border-radius: 5px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; line-height: 1; vertical-align: 1px; color: #050506; }
.tm-cue--a { background: #3fd07d; }
.tm-cue--b { background: #f0b44c; }
.tm-ft-st-how li { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(247, 242, 232, 0.03); font-size: 13px; line-height: 1.55; color: rgba(247, 242, 232, 0.65); }
.tm-ft-st-how li > b:first-child { flex: none; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(247, 242, 232, 0.08); font-family: var(--font-mono); font-size: 11px; color: #fff; }
.tm-ft-st-how li span b { color: #fff; }
.tm-ft-st-how li > span { min-width: 0; }
.tm-ft-st-pane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tm-ft-st-pane-head strong { font-size: 15px; }
.tm-ft-st-pane-head span { font-family: var(--font-mono); font-size: 12px; color: rgba(247, 242, 232, 0.5); }
.tm-ft-st-pls { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.tm-ft-st-pls button { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px; border: none; border-radius: 14px; background: rgba(247, 242, 232, 0.04); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.tm-ft-st-pls button:hover { background: rgba(247, 242, 232, 0.09); transform: translateY(-1px); }
.tm-ft-st-pls button > i:first-child { color: var(--primary); }
.tm-ft-st-pls button > i:last-child { font-size: 12px; color: rgba(247, 242, 232, 0.3); transition: transform 0.2s ease, color 0.2s ease; }
.tm-ft-st-pls button:hover > i:last-child { color: #fff; transform: translateX(3px); }
.tm-ft-st-pls span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tm-ft-st-pls b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ft-st-pls small { font-size: 12px; color: rgba(247, 242, 232, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ft-st-sum { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 18px 28px; padding: 22px 26px 24px; margin-bottom: 14px; }
.tm-ft-st-sum > * { position: relative; z-index: 1; }
.tm-ft-st-total small, .tm-ft-st-stats small { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(247, 242, 232, 0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ft-st-total strong { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 0.95; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tm-ft-st-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tm-ft-st-stats b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-variant-numeric: tabular-nums; }
#tm-ft-st-delta.tm-ok { color: #7fd8a0; }
#tm-ft-st-delta.tm-over { color: #f0b44c; }
#tm-ft-st-delta.tm-under { color: rgba(247, 242, 232, 0.7); }
.tm-ft-st-bar { grid-column: 1 / -1; position: relative; display: flex; gap: 2px; height: 10px; }
.tm-ft-st-bar i { height: 100%; border-radius: 2px; background: var(--primary); opacity: 0.85; }
.tm-ft-st-bar i:nth-child(even) { opacity: 0.45; }
.tm-ft-st-bar b { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: #fff; }
.tm-ft-st-bar b em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 2px; font-style: normal; font-family: var(--font-mono); font-size: 10px; white-space: nowrap; }
.tm-ft-st-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }
.tm-ft-st-field { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: rgba(247, 242, 232, 0.06); }
.tm-ft-st-field small { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 242, 232, 0.5); }
.tm-ft-st-field input { width: 74px; border: none; background: none; color: #fff; font: inherit; font-size: 15px; font-weight: 600; -moz-appearance: textfield; outline: none; }
.tm-ft-st-field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tm-ft-st-field input::placeholder { color: rgba(247, 242, 232, 0.35); font-weight: 400; }
.tm-ft-st-field span { font-size: 12px; color: rgba(247, 242, 232, 0.5); }
.tm-ft-st-tablewrap { max-height: 460px; overflow: auto; border-radius: 14px; background: rgba(247, 242, 232, 0.02); }
.tm-ft-st-table { width: 100%; min-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tm-ft-st-table th { position: sticky; top: 0; z-index: 1; padding: 12px 10px; background: #0c0c0f; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-align: left; color: rgba(247, 242, 232, 0.45); white-space: nowrap; }
.tm-ft-st-table td { padding: 8px 10px; border-top: 1px solid rgba(247, 242, 232, 0.06); font-size: 13px; white-space: nowrap; }
.tm-ft-st-table td.tm-idx { font-family: var(--font-mono); font-size: 12px; color: rgba(247, 242, 232, 0.4); }
.tm-ft-st-table td.tm-name { white-space: normal; min-width: 200px; }
.tm-ft-st-table td.tm-name b { display: block; font-weight: 600; }
.tm-ft-st-table td.tm-name small { font-size: 12px; color: rgba(247, 242, 232, 0.5); }
.tm-ft-st-table td input { width: 74px; border: none; border-radius: 8px; padding: 6px 8px; background: rgba(247, 242, 232, 0.06); color: #fff; font-family: var(--font-mono); font-size: 12px; outline: none; }
.tm-ft-st-table td input:focus { box-shadow: 0 0 0 1px var(--primary); }
.tm-ft-st-table td.tm-missing input { background: rgba(240, 180, 76, 0.16); color: #f0b44c; }
.tm-ft-st-table td.tm-end input { color: rgba(247, 242, 232, 0.5); }
.tm-ft-st-table td.tm-pitch { font-family: var(--font-mono); font-size: 12px; color: rgba(247, 242, 232, 0.7); }
.tm-ft-st-table td.tm-pitch.tm-far { color: #f0b44c; }
.tm-ft-st-table td.tm-play { font-family: var(--font-mono); font-weight: 600; color: #fff; }
.tm-ft-st-table td.tm-at { font-family: var(--font-mono); color: var(--primary); }
.tm-ft-st-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.tm-ft-st-actions .tm-ft-btn { padding: 12px 18px; }
.tm-ft-st-note { font-size: 12px; color: rgba(247, 242, 232, 0.5); }

@media (max-width: 760px) {
  .tm-ft-lt-steps b, .tm-ft-progress small { display: none; }
  .tm-ft-lt-steps button.tm-active b { display: block; position: absolute; top: 46px; white-space: nowrap; }
  .tm-ft-progress::before, .tm-ft-progress::after { top: 16px; left: 17px; }
  .tm-ft-progress::before { right: 17px; }
  .tm-ft-progress::after { width: calc((100% - 34px) * var(--p)); }
  .tm-ft-progress li { flex-basis: 34px; width: 34px; }
  .tm-ft-progress { --dot: 34px; }
  .tm-ft-lt-steps { margin-bottom: 40px; }
  .tm-ft-progress i { width: 34px; height: 34px; }
}
@media (max-width: 760px) {
  .tm-ft-lt-stage { padding: 18px; }
  .tm-ft-lt-view { height: 260px; }
  .tm-ft-lt-vol { width: 100%; }
  .tm-ft-lt-go { padding-right: 18px; }
  .tm-ft-lt-nav span { display: none; }
  .tm-ft-st-sum { grid-template-columns: 1fr; }
  .tm-ft-st-how { grid-template-columns: 1fr; }
  }

.tm-ft-an:not(.tm-full) #tm-ft-an-full { display: none; }

/* listening toolbox tiles */
.tm-ft-lt-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.tm-ft-lt-tabs button { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border: none; border-radius: 16px; background: rgba(247, 242, 232, 0.035); color: rgba(247, 242, 232, 0.6); font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: background 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease; }
.tm-ft-lt-tabs button:hover { background: rgba(247, 242, 232, 0.06); color: #fff; transform: translateY(-2px); }
.tm-ft-lt-tabs button.tm-active { background: rgba(247, 242, 232, 0.08); color: #fff; box-shadow: inset 0 0 0 1px var(--primary-dim), 0 10px 30px rgba(0, 0, 0, 0.3); }
.tm-ft-lt-tabs i { grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(247, 242, 232, 0.07); font-size: 15px; transition: background 0.25s ease, color 0.25s ease; }
.tm-ft-lt-tabs button.tm-active i { background: var(--primary); color: #fff; box-shadow: 0 0 20px var(--primary-dim); }
.tm-ft-lt-tabs b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ft-lt-tabs small { font-size: 12px; color: rgba(247, 242, 232, 0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ft-lt-tabs button.tm-ok small { color: #7fd8a0; }
.tm-ft-lt-tabs button.tm-warn small { color: #f0b44c; }
.tm-ft-lt-tabs button.tm-bad small { color: #ff5d73; }
.tm-ft-lt-ask { align-items: center; }
.tm-ft-lt-ask .tm-ft-an-seg button { min-height: 32px; padding: 6px 12px; font-size: 12px; }
.tm-ft-lt-ask .tm-ft-lt-act { border: none; border-radius: 999px; padding: 9px 14px; background: none; color: rgba(247, 242, 232, 0.55); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.tm-ft-lt-ask .tm-ft-lt-act:hover { color: #fff; background: rgba(247, 242, 232, 0.06); }
.tm-ft-lt-ask .tm-ft-lt-act.tm-accent { order: -1; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; background: rgba(247, 242, 232, 0.04); box-shadow: inset 0 0 0 1px var(--primary-dim); color: #fff; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.2s ease, box-shadow 0.2s ease; }
.tm-ft-lt-ask .tm-ft-lt-act.tm-accent i { color: var(--primary); transition: color 0.2s ease; }
.tm-ft-lt-ask .tm-ft-lt-act.tm-accent:hover { background: var(--primary); box-shadow: 0 0 22px var(--primary-dim); color: #fff; }
.tm-ft-lt-ask .tm-ft-lt-act.tm-accent:hover i { color: #fff; }
@media (max-width: 1000px) { .tm-ft-lt-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================ MOBILE PASS ============================================================ */
.tm-ft-tool.tm-ft-full { height: 100vh; height: 100dvh; justify-content: safe center; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.tm-ft-tool.tm-ft-full > * { flex-shrink: 0; }
.tm-ft-an.tm-full { height: 100vh; height: 100dvh; }
@media (max-width: 760px) {
  .tm-ft-tool.tm-ft-full { justify-content: flex-start; padding: max(60px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom)); }
  .tm-ft-ab.tm-ft-full .tm-ft-ab-grid { flex: none; }
  .tm-ft-ab.tm-ft-full .tm-ft-ab-spec .tm-ft-an-view { min-height: 240px; }
  /* listening toolbox */
  .tm-ft-lt-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 14px; padding: 0 14px; }
  .tm-ft-lt-tabs::-webkit-scrollbar { display: none; }
  .tm-ft-lt-tabs button { flex: none; grid-template-columns: 30px auto; column-gap: 8px; padding: 9px 14px 9px 9px; border-radius: 999px; }
  .tm-ft-lt-tabs button:hover { transform: none; }
  .tm-ft-lt-tabs i { width: 30px; height: 30px; border-radius: 50%; font-size: 12px; }
  .tm-ft-lt-tabs b { font-size: 13px; overflow: visible; }
  .tm-ft-lt-tabs small { display: none; }
  .tm-ft-lt-stage { padding: 18px 14px; border-radius: 14px; }
  .tm-ft-lt-head strong { font-size: 1.25rem; }
  .tm-ft-lt-head p { font-size: 12.5px; }
  .tm-ft-lt-controls { gap: 10px; }
  .tm-ft-lt-vol { flex: 1; min-width: 0; }
  .tm-ft-lt-vol input { flex: 1; width: auto; min-width: 60px; }
  .tm-ft-lt-read { width: 100%; margin-left: 0; font-size: 15px; }
  .tm-ft-lt-view { height: 300px; }
  .tm-ft-lt-ask { gap: 6px; }
  .tm-ft-lt-ask .tm-ft-an-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tm-ft-lt-ask .tm-ft-an-seg button { padding: 6px 10px; }
  .tm-ft-lt-notes { padding: 14px; }
  .tm-ft-lt-notes ul { grid-template-columns: 1fr; }
  /* tuner keyboard */
  .tm-ft-tu-black small { display: none; }
  .tm-ft-tu-white small { font-size: 9px; }
  .tm-ft-tu-white { margin: 0 1px; }
  .tm-ft-tu-piano button b { font-size: 12px; }
  /* analyzer level bars */
  .tm-ft-an-bval { font-size: 11px; }
  .tm-ft-an-bname { letter-spacing: 0.06em; }
}

/* ---- phone priorities ---- */
.tm-ft-desk-note { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(247, 242, 232, 0.05); font-size: 12px; color: rgba(247, 242, 232, 0.65); }
.tm-ft-desk-note i { color: var(--primary); }
@media (max-width: 760px) {
  .tm-ft-an-level { order: 1; }
  .tm-ft-an-spec { order: 2; }
  .tm-ft-an-scope { order: 3; }
  .tm-ft-an-stereo { order: 4; }
  .tm-ft-an-hist { order: 5; }
  .tm-ft-an-empty { order: 0; }
}

.tm-ft-rail-item.tm-desk .tm-ft-rail-name i { margin-left: 8px; font-size: 11px; color: rgba(247, 242, 232, 0.35); }
.tm-ft-rail-item.tm-desk:not(.tm-active) { opacity: 0.7; }
@media (max-width: 760px) {
  .tm-ft-full-btn { margin-left: auto; }
  .tm-ft-module-hint + .tm-ft-full-btn { margin-left: auto; }
}

.tm-ft-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.tm-ft-quick button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px 10px; border: none; border-radius: 14px; background: rgba(247, 242, 232, 0.05); color: rgba(247, 242, 232, 0.7); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.tm-ft-quick button i { font-size: 17px; }
.tm-ft-quick button.tm-active { background: var(--primary); color: #fff; box-shadow: 0 0 18px var(--primary-dim); }
.tm-ft-rail-legend { display: flex; align-items: center; gap: 8px; margin: 8px 12px 6px; padding-top: 10px; border-top: 1px solid rgba(247, 242, 232, 0.06); font-size: 11px; color: rgba(247, 242, 232, 0.45); }
.tm-ft-rail-legend i { font-size: 11px; }

.tm-ft-rail-head { margin: 6px 12px 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247, 242, 232, 0.4); }
.tm-ft-quick + .tm-ft-rail-head { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(247, 242, 232, 0.06); }
@media (min-width: 761px) {
  .tm-ft-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 2px; }
  .tm-ft-quick button { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 11px 12px; font-size: 12px; }
  .tm-ft-quick button i { width: 16px; font-size: 14px; text-align: center; }
}

/* desk hints only in phone layout (toggled live on resize) */
.tm-ft-page:not(.tm-phone) .tm-ft-desk-note, .tm-ft-page:not(.tm-phone) .tm-ft-rail-legend, .tm-ft-page:not(.tm-phone) .tm-ft-rail-item.tm-desk .tm-ft-rail-name i { display: none; }
.tm-ft-page:not(.tm-phone) .tm-ft-rail-item.tm-desk:not(.tm-active) { opacity: 1; }

.tm-ft-rail-head { display: flex; align-items: center; gap: 8px; color: var(--primary); }
.tm-ft-rail-head::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.tm-ft-quick button span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 761px) {
  .tm-ft-quick button { text-align: left; }
  .tm-ft-quick button span { flex: 1; text-align: left; }
}

.tm-ft-an:not(.tm-live):not(.tm-full) .tm-ft-an-grid, .tm-ft-kb:not(.tm-live) .tm-ft-kb-grid { border-radius: 16px; }

/* ============================================================ QUALITY CHECK ============================================================ */
.tm-ft-qc-drop { min-height: 200px; }
.tm-ft-qc.tm-has .tm-ft-qc-drop { min-height: 84px; padding: 14px; }
.tm-ft-qc.tm-has .tm-ft-drop-icon { width: 36px; height: 36px; margin-bottom: 2px; font-size: 13px; }
.tm-ft-qc.tm-has .tm-ft-drop-title { font-size: 1rem; }
.tm-ft-qc-body { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.tm-ft-qc-verdict { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border-radius: 16px; background: rgba(247, 242, 232, 0.04); box-shadow: inset 3px 0 0 #7fd8a0; }
.tm-ft-qc-verdict i { font-size: 26px; color: #7fd8a0; }
.tm-ft-qc-verdict.tm-warn { box-shadow: inset 3px 0 0 #f0b44c; } .tm-ft-qc-verdict.tm-warn i { color: #f0b44c; }
.tm-ft-qc-verdict.tm-bad { box-shadow: inset 3px 0 0 #ff5d73; } .tm-ft-qc-verdict.tm-bad i { color: #ff5d73; }
.tm-ft-qc-verdict strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }
.tm-ft-qc-verdict p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: rgba(247, 242, 232, 0.7); }
.tm-ft-qc-spec .tm-ft-an-view { min-height: 300px; }
.tm-ft-qc-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tm-ft-qc-facts div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: rgba(247, 242, 232, 0.04); }
.tm-ft-qc-facts small { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 242, 232, 0.45); }
.tm-ft-qc-facts b { font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.tm-ft-qc-facts .tm-warn b { color: #f0b44c; } .tm-ft-qc-facts .tm-bad b { color: #ff5d73; }
.tm-ft-qc-drop .tm-ft-kb-progress { position: relative; }

/* ============================================================ SET CLOCK ============================================================ */
.tm-ft-ck-face { display: flex; flex-direction: column; gap: 18px; padding: 24px 28px 28px; transition: box-shadow 0.4s ease; }
.tm-ft-ck-face > * { position: relative; z-index: 1; }
.tm-ft-ck-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; color: rgba(247, 242, 232, 0.55); }
.tm-ft-ck-top span:last-child { text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; font-weight: 600; }
.tm-ft-ck-main { display: flex; flex-direction: column; align-items: center; }
.tm-ft-ck-main small { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247, 242, 232, 0.5); }
.tm-ft-ck-main strong { font-family: var(--font-display); font-weight: 300; font-size: clamp(5rem, 18vw, 12rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; transition: color 0.3s ease; }
.tm-ft-ck-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(247, 242, 232, 0.08); }
.tm-ft-ck-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--primary); box-shadow: 0 0 14px var(--primary-dim); transition: width 0.25s linear, background 0.3s ease; }
.tm-ft-ck-bar span { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--secondary); }
.tm-ft-ck-row { display: flex; justify-content: space-between; font-size: 13px; color: rgba(247, 242, 232, 0.55); }
.tm-ft-ck-row b { margin-left: 6px; font-family: var(--font-mono); color: #fff; font-weight: 500; }
.tm-ft-ck-track { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tm-ft-ck-track div { padding: 12px 14px; border-radius: 12px; background: rgba(247, 242, 232, 0.05); min-width: 0; }
.tm-ft-ck-track small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 242, 232, 0.45); }
.tm-ft-ck-track b { display: block; margin-top: 4px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ft-ck-face.tm-live .tm-ft-ck-top span:last-child { color: var(--primary); }
.tm-ft-ck-face.tm-warn, .tm-ft-ck-face.tm-last, .tm-ft-ck-face.tm-over { box-shadow: inset 0 0 0 2px var(--secondary-dim); }
.tm-ft-ck-face.tm-warn .tm-ft-ck-main strong, .tm-ft-ck-face.tm-last .tm-ft-ck-main strong, .tm-ft-ck-face.tm-over .tm-ft-ck-main strong, .tm-ft-ck-face:is(.tm-warn, .tm-last, .tm-over) .tm-ft-ck-top span:last-child { color: var(--secondary); }
.tm-ft-ck-face:is(.tm-warn, .tm-last, .tm-over) .tm-ft-ck-bar i { background: var(--secondary); box-shadow: 0 0 14px var(--secondary-dim); }
.tm-ft-ck-face.tm-last, .tm-ft-ck-face.tm-over { box-shadow: inset 0 0 0 2px var(--secondary), 0 0 40px var(--secondary-dim); animation: tm-ft-ck-pulse 1s ease-in-out infinite; }
@keyframes tm-ft-ck-pulse { 50% { box-shadow: inset 0 0 0 2px var(--secondary-dim), 0 0 10px transparent; } }
.tm-ft-ck-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.tm-ft-ck-controls > * { min-width: 0; min-height: 52px; }
.tm-ft-ck-controls .tm-ft-st-field { padding: 0 16px; }
.tm-ft-ck-controls .tm-ft-st-field input { flex: 1; min-width: 0; width: auto; font-size: 17px; }
.tm-ft-ck-controls input[type="time"] { color-scheme: dark; }
.tm-ft-ck-controls .tm-ft-an-seg { display: flex; align-items: stretch; padding: 4px; border-radius: 12px; }
.tm-ft-ck-controls .tm-ft-an-seg em { align-self: center; padding: 0 8px 0 10px; }
.tm-ft-ck-controls .tm-ft-an-seg button { flex: 1; min-height: 0; padding: 0 6px; border-radius: 9px; font-size: 12px; white-space: nowrap; }
.tm-ft-ck-controls #tm-ft-ck-go { grid-column: 1 / -1; order: 10; justify-content: center; gap: 12px; min-height: 52px; padding: 0 20px; border-radius: 12px; background: rgba(247, 242, 232, 0.06); color: #fff; box-shadow: inset 0 0 0 1px rgba(247, 242, 232, 0.1); }
.tm-ft-ck-controls #tm-ft-ck-go:hover { background: rgba(247, 242, 232, 0.1); box-shadow: inset 0 0 0 1px var(--primary); }
.tm-ft-ck-controls #tm-ft-ck-go .tm-ft-lt-go-icon { width: auto; height: auto; background: none; box-shadow: none; }
.tm-ft-ck-controls #tm-ft-ck-go .tm-ft-lt-go-icon svg { width: 12px; height: 12px; fill: var(--primary); }
.tm-ft-ck-controls #tm-ft-ck-go b { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; }
.tm-ft-ck-controls #tm-ft-ck-go.tm-on { background: var(--primary); box-shadow: 0 0 24px var(--primary-dim); }
.tm-ft-ck-controls #tm-ft-ck-go.tm-on .tm-ft-lt-go-icon svg { fill: #fff; }
@media (max-width: 760px) {
  .tm-ft-ck-controls { grid-template-columns: 1fr 1fr; }
  .tm-ft-ck-controls .tm-ft-an-seg { grid-column: 1 / -1; }
  .tm-ft-ck-controls .tm-ft-st-field { padding: 0 12px; }
  .tm-ft-ck-controls .tm-ft-st-field small { letter-spacing: 0.08em; }
}
.tm-ft-ck-hint { margin: 12px 0 0; font-size: 12px; color: rgba(247, 242, 232, 0.5); }
.tm-ft-ck.tm-ft-full .tm-ft-ck-main strong { font-size: clamp(6rem, 24vw, 18rem); }
@media (prefers-reduced-motion: reduce) { .tm-ft-ck-face.tm-last, .tm-ft-ck-face.tm-over { animation: none; } }
.tm-ft-src .tm-ft-btn { white-space: nowrap; }
#tm-ft-page.tm-phone .tm-ft-src .tm-ft-btn { padding: 12px 8px; letter-spacing: 0.06em; }
#tm-ft-page.tm-phone #tm-ft-tu-octave { display: flex; width: 100%; }
#tm-ft-page.tm-phone #tm-ft-tu-octave button { flex: 1; min-width: 0; padding: 6px 2px; }
/* shared source dock (analyzer, key & bpm, tuner) */
.tm-ft-dock { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 450; display: flex; align-items: center; gap: 6px; width: min(400px, calc(100vw - 32px)); padding: 7px 8px 7px 7px; border-radius: 999px; overflow: hidden; background: rgba(14, 14, 18, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(247, 242, 232, 0.1); animation: tm-ft-dock-in 0.35s cubic-bezier(.2, .7, .2, 1); }
@keyframes tm-ft-dock-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
.tm-ft-dock-main { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: none; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; box-shadow: 0 0 22px var(--primary-dim); }
.tm-ft-dock-main svg { width: 13px; height: 13px; fill: #fff; }
.tm-ft-dock-main .tm-ft-dock-pause, .tm-ft-dock-main .tm-ft-dock-mic, .tm-ft-dock.tm-playing .tm-ft-dock-play, .tm-ft-dock.tm-mic .tm-ft-dock-play, .tm-ft-dock.tm-mic .tm-ft-dock-pause { display: none; }
.tm-ft-dock.tm-playing:not(.tm-mic) .tm-ft-dock-pause, .tm-ft-dock.tm-mic .tm-ft-dock-mic { display: block; }
.tm-ft-dock-mic { font-size: 16px; }
#tm-ft-page.tm-has-dock { padding-bottom: 90px; }
.tm-ft-dock.tm-mic .tm-ft-dock-main::before, .tm-ft-dock.tm-mic .tm-ft-dock-main::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); animation: tm-ft-dock-ring 1.8s ease-out infinite; pointer-events: none; }
.tm-ft-dock.tm-mic .tm-ft-dock-main::after { animation-delay: 0.9s; }
@keyframes tm-ft-dock-ring { from { transform: scale(0.85); opacity: 0.9; } to { transform: scale(1.12); opacity: 0; } }
.tm-ft-dock.tm-playing:not(.tm-mic) .tm-ft-dock-main { animation: tm-ft-dock-beat 1.6s ease-in-out infinite; }
@keyframes tm-ft-dock-beat { 50% { box-shadow: 0 0 34px var(--primary); } }
.tm-ft-dock-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-left: 6px; }
.tm-ft-dock-tools { display: flex; gap: 2px; }
.tm-ft-dock-tools button { padding: 0 6px 0 0; border: none; background: none; font: inherit; font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; color: rgba(247, 242, 232, 0.35); cursor: pointer; transition: color 0.2s ease; }
.tm-ft-dock-tools button + button::before { content: '·'; margin-right: 6px; color: rgba(247, 242, 232, 0.25); }
.tm-ft-dock-tools button:hover { color: #fff; }
.tm-ft-dock-tools button.tm-active { color: var(--primary); }
.tm-ft-dock-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ft-dock-icon { position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: none; border-radius: 50%; background: none; color: rgba(247, 242, 232, 0.6); font-size: 14px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.tm-ft-dock-icon:hover { background: rgba(247, 242, 232, 0.08); color: #fff; }
.tm-ft-dock-icon input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tm-ft-dock-progress { position: absolute; left: 60px; right: 24px; bottom: 0; height: 3px; background: rgba(247, 242, 232, 0.08); cursor: pointer; touch-action: none; transition: height 0.15s ease; }
.tm-ft-dock-progress::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; }
.tm-ft-dock-progress:hover { height: 5px; }
.tm-ft-dock-progress b { display: block; height: 100%; width: 0; background: var(--primary); }
.tm-ft-dock.tm-mic .tm-ft-dock-progress { cursor: default; pointer-events: none; }
.tm-ft-dock.tm-mic .tm-ft-dock-progress b { background: linear-gradient(90deg, var(--secondary), var(--primary)); transition: width 0.06s linear; }
@media (max-width: 760px) {
  .tm-ft-dock, .tm-ft-dock.tm-idle { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: auto; }
  .tm-ft-dock.tm-idle .tm-ft-btn { flex: 1; padding: 12px 8px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .tm-ft-dock, .tm-ft-dock-main, .tm-ft-dock-main::before, .tm-ft-dock-main::after { animation: none !important; } }
#tm-ft-page.tm-src-on .tm-ft-an .tm-ft-an-empty, #tm-ft-page.tm-src-on .tm-ft-kb .tm-ft-kb-empty:not(:has(> .tm-ft-kb-progress:not([hidden]))) { opacity: 0; transition: none; pointer-events: none; }
.tm-ft-dock-doc { display: none; font-size: 17px; }
.tm-ft-dock.tm-idle { width: auto; padding: 6px; gap: 6px; }
.tm-ft-dock.tm-idle > :not(.tm-ft-src) { display: none !important; }
.tm-ft-dock .tm-ft-btn { padding: 12px 18px; }
.tm-ft-dock .tm-ft-btn--solid { padding: 12px 18px; }
.tm-ft-dock .tm-ft-btn.tm-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.tm-ft-dock .tm-ft-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tm-ft-kb > .tm-ft-an-bar:not(:has(.tm-ft-an-status:not(:empty))), .tm-ft-tu > .tm-ft-an-bar:not(:has(.tm-ft-an-status:not(:empty))) { display: none; }
.tm-ft-dock.tm-mic .tm-ft-dock-micbtn, .tm-ft-dock.tm-link .tm-ft-dock-micbtn { display: none; }
.tm-ft-dock.tm-files .tm-ft-src-mic { display: none; }

.tm-ft-an:not(.tm-full) #tm-ft-an-full { display: none; }
.tm-ft-an:not(.tm-full) > .tm-ft-an-bar:not(:has(.tm-ft-an-status:not(:empty))) { display: none; }
/* full screen: rail + tool as one interface */
.tm-ft-rack.tm-ft-rack--full { position: fixed; inset: 0; z-index: 400; transform: none; height: 100vh; height: 100dvh; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: stretch; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background-color: #050506; background-image: linear-gradient(rgba(247, 242, 232, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 242, 232, 0.045) 1px, transparent 1px), radial-gradient(55vmax 55vmax at 10% 18%, var(--primary-dim), transparent 60%), radial-gradient(60vmax 60vmax at 92% 82%, rgba(247, 242, 232, 0.06), transparent 60%); background-size: 56px 56px, 56px 56px, auto, auto; animation: none; overscroll-behavior: contain; }
.tm-ft-rack--full > .tm-ft-rail, .tm-ft-rack--full > .tm-ft-deck { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.tm-ft-rack--full > .tm-ft-rail { position: relative; top: 0; }
.tm-ft-rack--full > .tm-ft-deck { padding-bottom: calc(var(--tm-ft-pad) + 80px); }
.tm-ft-rack--full .tm-ft-ck-main strong { font-size: clamp(6rem, 16vw, 16rem); }
@media (max-width: 1100px) {
  .tm-ft-rack.tm-ft-rack--full { display: block; overflow-y: auto; padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  .tm-ft-rack--full > .tm-ft-deck { overflow: visible; }
  .tm-ft-rack--full > .tm-ft-rail { position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: minmax(0, 1fr) 52px; align-items: stretch; gap: 0 6px; overflow: visible; margin: 0 0 10px; padding: 6px; border-radius: 20px; background: rgba(16, 16, 20, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
  .tm-ft-rack--full .tm-ft-rail-head, .tm-ft-rack--full .tm-ft-pick-desc { display: none; }
  .tm-ft-rack--full > .tm-ft-rail > .tm-ft-pick { grid-column: 1; grid-row: 1; min-height: 52px; padding: 0 10px 0 14px; border-radius: 14px; }
  .tm-ft-rack--full > .tm-ft-rail > .tm-ft-rail-full { grid-row: 1; width: 52px; height: 52px; }
  .tm-ft-rack--full .tm-ft-quick { display: none; grid-column: 1 / -1; grid-row: 2; margin: 6px 0 0; padding: 0; }
  .tm-ft-rack--full .tm-ft-rail.tm-open .tm-ft-quick { display: grid; }
  .tm-ft-rack--full .tm-ft-quick button { border-radius: 14px; }
  .tm-ft-rack--full .tm-ft-rail-list { grid-column: 1 / -1; grid-row: 3; }
  .tm-ft-rack--full .tm-ft-rail.tm-open .tm-ft-rail-list > div { max-height: 56vh; max-height: 56dvh; overflow-y: auto; overscroll-behavior: contain; }
  .tm-ft-rack--full .tm-ft-module-head { margin-bottom: 14px; }
}
html.tm-ft-full-on #tm-header, html.tm-ft-full-on #tm-scroll-progress, html.tm-ft-full-on .tm-admin-switcher { visibility: hidden; }
html.tm-ft-full-on .tm-ft-col { z-index: 440; }

.tm-ft-rail-full { display: none; }
@media (max-width: 1100px) {
  .tm-ft-rail { display: grid; grid-template-columns: minmax(0, 1fr) 60px; column-gap: 6px; align-items: center; }
  .tm-ft-rail > .tm-ft-pick { min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  .tm-ft-pick > span:nth-child(2) { min-width: 0; }
  .tm-ft-pick-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tm-ft-rail > * { grid-column: 1 / -1; }
  .tm-ft-rail > .tm-ft-pick { grid-column: 1; }
  .tm-ft-rail > .tm-ft-rail-full { display: flex; grid-column: 2; align-items: center; justify-content: center; align-self: center; width: 60px; height: 60px; border: none; border-radius: 14px; background: rgba(247, 242, 232, 0.05); color: #fff; font-size: 15px; cursor: pointer; transition: background 0.2s ease; }
  .tm-ft-rail > .tm-ft-rail-full:active { background: rgba(247, 242, 232, 0.12); }
  .tm-ft-full-btn { display: none; }
}
/* install the app */
.tm-ft-install { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 16px 10px 14px; border: 1px solid rgba(247, 242, 232, 0.16); border-radius: 999px; background: rgba(247, 242, 232, 0.04); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.tm-ft-install i { color: var(--primary); }
.tm-ft-install small { font-size: 11px; font-weight: 500; color: rgba(247, 242, 232, 0.45); }
.tm-ft-install:hover { background: rgba(247, 242, 232, 0.08); border-color: var(--primary); }
.tm-ft-install-tip { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: flex; flex-direction: column; gap: 4px; max-width: 360px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(247, 242, 232, 0.06); font-size: 13px; color: rgba(247, 242, 232, 0.7); }
.tm-ft-install-tip b { color: #fff; }
.tm-ft-install-tip em { font-style: normal; color: #fff; }
/* drop anywhere */
.tm-ft-dropfx { position: fixed; inset: 0; z-index: 470; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(60vmax 60vmax at 50% 50%, rgba(5, 5, 6, 0.55), rgba(5, 5, 6, 0.92)); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); animation: tm-ft-drop-in 0.25s ease; }
.tm-ft-dropfx * { pointer-events: none; }
@keyframes tm-ft-drop-in { from { opacity: 0; } }
.tm-ft-dropfx-one { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: tm-ft-drop-pop 0.45s cubic-bezier(.2, 1.3, .3, 1); }
@keyframes tm-ft-drop-pop { from { opacity: 0; transform: scale(0.86) translateY(10px); } }
.tm-ft-drop-orb { position: relative; display: grid; place-items: center; width: 168px; height: 168px; margin-bottom: 18px; }
.tm-ft-drop-orb > i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--primary); opacity: 0; animation: tm-ft-drop-ring 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.tm-ft-drop-orb > i:nth-child(2) { animation-delay: 0.8s; }
.tm-ft-drop-orb > i:nth-child(3) { animation-delay: 1.6s; }
@keyframes tm-ft-drop-ring { 0% { transform: scale(0.45); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }
.tm-ft-drop-orb > span { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 26px; box-shadow: 0 0 50px var(--primary-dim), 0 0 0 10px rgba(247, 242, 232, 0.04); animation: tm-ft-drop-breathe 1.6s ease-in-out infinite; }
.tm-ft-drop-orb > span i { animation: tm-ft-drop-bob 1.2s ease-in-out infinite; }
@keyframes tm-ft-drop-breathe { 50% { transform: scale(1.06); box-shadow: 0 0 80px var(--primary), 0 0 0 16px rgba(247, 242, 232, 0.03); } }
@keyframes tm-ft-drop-bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
.tm-ft-drop-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 300; letter-spacing: -0.02em; }
.tm-ft-drop-sub { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(247, 242, 232, 0.5); }
.tm-ft-dropfx-ab { display: none; gap: 18px; width: min(940px, 100%); height: min(62vh, 440px); }
.tm-ft-dropfx.tm-ab .tm-ft-dropfx-one { display: none; }
.tm-ft-dropfx.tm-ab .tm-ft-dropfx-ab { display: grid; grid-template-columns: 1fr 1fr; animation: tm-ft-drop-pop 0.45s cubic-bezier(.2, 1.3, .3, 1); }
.tm-ft-dropfx-ab > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 28px; background: rgba(247, 242, 232, 0.03); box-shadow: inset 0 0 0 1px rgba(247, 242, 232, 0.08); transition: background 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease; opacity: 0.55; }
.tm-ft-dropfx-ab > div .tm-ft-drop-orb { transform: scale(0.8); transition: transform 0.3s cubic-bezier(.2, 1.3, .3, 1); }
.tm-ft-dropfx-ab > div:not(.tm-over) .tm-ft-drop-orb > i { animation-play-state: paused; opacity: 0; }
.tm-ft-dropfx-ab > div:not(.tm-over) .tm-ft-drop-orb > span { background: rgba(247, 242, 232, 0.1); box-shadow: none; animation: none; }
.tm-ft-dropfx-ab > div .tm-ft-drop-title { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.tm-ft-dropfx-ab > div.tm-over { opacity: 1; background: rgba(247, 242, 232, 0.05); box-shadow: inset 0 0 0 1.5px var(--primary), 0 0 60px var(--primary-dim); }
.tm-ft-dropfx-ab > div.tm-over .tm-ft-drop-orb { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .tm-ft-dropfx *, .tm-ft-dropfx { animation: none !important; } .tm-ft-drop-orb > i { opacity: 0.3; } }
/* swipe between tools (touch) */
.tm-ft-dots { display: none; }
@media (max-width: 1100px) and (pointer: coarse) {
  .tm-ft-dots { display: flex; justify-content: center; gap: 4px; padding: 8px 0 2px; }
  .tm-ft-dots i { width: 4px; height: 4px; border-radius: 2px; background: rgba(247, 242, 232, 0.18); transition: width 0.25s ease, background 0.25s ease; }
  .tm-ft-dots i.tm-on { width: 14px; background: var(--primary); }
  .tm-ft-rack--full .tm-ft-dots { grid-column: 1 / -1; grid-row: 2; padding: 6px 0 0; }
  .tm-ft-rack--full .tm-ft-quick { grid-row: 3; }
  .tm-ft-rack--full .tm-ft-rail-list { grid-row: 4; }
}
.tm-ft-tool.tm-swipe-l { animation: tm-ft-swipe-l 0.32s cubic-bezier(.2, .8, .2, 1); }
.tm-ft-tool.tm-swipe-r { animation: tm-ft-swipe-r 0.32s cubic-bezier(.2, .8, .2, 1); }
@keyframes tm-ft-swipe-l { from { opacity: 0; transform: translateX(36px); } }
@keyframes tm-ft-swipe-r { from { opacity: 0; transform: translateX(-36px); } }
/* phone landscape, full screen: analyzer spreads across */
@media (orientation: landscape) and (max-height: 560px) {
  .tm-ft-rack--full > .tm-ft-rail { padding: 4px; }
  .tm-ft-rack--full > .tm-ft-rail > .tm-ft-pick { min-height: 44px; }
  .tm-ft-rack--full > .tm-ft-rail > .tm-ft-rail-full { width: 44px; height: 44px; }
  .tm-ft-rack--full .tm-ft-dots { display: none; }
  .tm-ft-rack--full .tm-ft-module-head { display: none; }
  .tm-ft-rack--full .tm-ft-an-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .tm-ft-rack--full .tm-ft-an-spec { grid-column: 1; grid-row: 1; order: 0; }
  .tm-ft-rack--full .tm-ft-an-level { grid-column: 2; grid-row: 1; order: 0; }
  .tm-ft-rack--full .tm-ft-an-scope, .tm-ft-rack--full .tm-ft-an-stereo { grid-column: span 1; }
  .tm-ft-rack--full .tm-ft-an-hist { grid-column: 1 / -1; }
  .tm-ft-rack--full .tm-ft-an-spec .tm-ft-an-view { min-height: calc(100dvh - 190px); }
  .tm-ft-dock { left: auto; right: 12px; width: min(380px, 50vw); bottom: calc(10px + env(safe-area-inset-bottom)); }
}
/* search + shortcuts */
.tm-ft-layer { position: fixed; inset: 0; z-index: 480; display: flex; align-items: flex-start; justify-content: center; padding: min(14vh, 120px) 16px 16px; background: rgba(5, 5, 6, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: tm-ft-layer-in 0.18s ease; }
@keyframes tm-ft-layer-in { from { opacity: 0; } }
.tm-ft-pal, .tm-ft-help { width: min(560px, 100%); max-height: min(70vh, 620px); display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: rgba(18, 18, 22, 0.98); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(247, 242, 232, 0.08); animation: tm-ft-pal-in 0.22s cubic-bezier(.2, .8, .2, 1); }
@keyframes tm-ft-pal-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.tm-ft-pal-search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(247, 242, 232, 0.07); color: rgba(247, 242, 232, 0.45); }
.tm-ft-pal-search input { flex: 1; min-width: 0; border: none; background: none; color: #fff; font: inherit; font-size: 16px; outline: none; }
.tm-ft-layer kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: rgba(247, 242, 232, 0.08); box-shadow: inset 0 -1px 0 rgba(247, 242, 232, 0.08); font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: rgba(247, 242, 232, 0.7); }
.tm-ft-pal-list { overflow-y: auto; padding: 8px; }
.tm-ft-pal-list button { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: none; border-radius: 12px; background: none; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.tm-ft-pal-list button.tm-sel, .tm-ft-pal-list button:hover { background: rgba(247, 242, 232, 0.07); }
.tm-ft-pal-list button.tm-sel { box-shadow: inset 2px 0 0 var(--primary); }
.tm-ft-pal-idx { font-size: 11px; font-weight: 600; color: var(--primary); }
.tm-ft-pal-txt { display: flex; flex-direction: column; min-width: 0; }
.tm-ft-pal-txt b { font-size: 14px; font-weight: 600; }
.tm-ft-pal-txt small { font-size: 12px; color: rgba(247, 242, 232, 0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ft-pal-list em { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247, 242, 232, 0.3); white-space: nowrap; }
.tm-ft-pal-list button.tm-current .tm-ft-pal-txt b::after { content: '·  open'; margin-left: 8px; font-size: 11px; font-weight: 500; color: var(--primary); }
.tm-ft-pal-empty { margin: 0; padding: 24px; text-align: center; font-size: 13px; color: rgba(247, 242, 232, 0.45); }
.tm-ft-help-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid rgba(247, 242, 232, 0.07); }
.tm-ft-help-head button { width: 32px; height: 32px; border: none; border-radius: 10px; background: rgba(247, 242, 232, 0.06); color: #fff; cursor: pointer; }
.tm-ft-help dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; margin: 0; padding: 18px; overflow-y: auto; font-size: 13px; }
.tm-ft-help dt { display: flex; gap: 4px; align-items: center; color: rgba(247, 242, 232, 0.5); }
.tm-ft-help dd { margin: 0; color: rgba(247, 242, 232, 0.8); align-self: center; }
.tm-ft-keys { display: flex; gap: 6px; margin-top: 10px; padding: 10px 4px 2px; border-top: 1px solid rgba(247, 242, 232, 0.06); }
.tm-ft-keys button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; border: none; border-radius: 8px; background: none; color: rgba(247, 242, 232, 0.45); font: inherit; font-size: 11px; cursor: pointer; transition: color 0.2s ease, background 0.2s ease; }
.tm-ft-keys button:hover { color: #fff; background: rgba(247, 242, 232, 0.06); }
.tm-ft-keys kbd { padding: 1px 5px; border-radius: 5px; background: rgba(247, 242, 232, 0.08); font-family: var(--font-mono); font-size: 10px; color: rgba(247, 242, 232, 0.7); }
@media (max-width: 1100px), (pointer: coarse) { .tm-ft-keys { display: none; } }
@media (max-width: 560px) { .tm-ft-pal-list em, .tm-ft-pal-list kbd { display: none; } }
/* share a result */
.tm-ft-share-row { display: flex; justify-content: flex-end; margin-top: 14px; }
.tm-ft-share { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border: 1px solid rgba(247, 242, 232, 0.16); border-radius: 999px; background: none; color: #fff; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease; }
.tm-ft-share i { color: var(--primary); }
.tm-ft-share:hover { border-color: var(--primary); background: rgba(247, 242, 232, 0.05); }
.tm-ft-share:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
@media (max-width: 560px) { .tm-ft-share-row { justify-content: stretch; } .tm-ft-share { flex: 1; justify-content: center; padding: 13px 16px; } }
/* status line sits under the tool title, on the left */
.tm-ft-an-bar-end { margin-left: 0; }
.tm-ft-an-bar:has(.tm-ft-an-status:not(:empty)) { margin-top: -6px; }
.tm-ft-an-status { font-size: 12px; color: rgba(247, 242, 232, 0.5); }
@media (max-width: 760px) { .tm-ft-hero { flex-direction: column; align-items: flex-start; } .tm-ft-hero > .tm-ft-install { margin: 0; } .tm-ft-install-tip { position: static; margin-top: 0; } }
.tm-ft-dock { transition: opacity 0.25s ease, visibility 0.25s ease; }
body:has(#tm-menu-overlay.tm-open) .tm-ft-dock { opacity: 0; visibility: hidden; pointer-events: none; }
