.metronome-view{max-width:1300px;margin:auto}
.metronome-shell{margin-top:28px;padding:clamp(22px,4vw,42px);border:1px solid #293b55;border-radius:22px;background:linear-gradient(145deg,#101a2b,#080c14)}
.metronome-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px}
.metronome-heading h1{margin:7px 0;font-size:clamp(2.2rem,6vw,4.8rem);letter-spacing:-.055em}
.metronome-heading p{margin:0;color:var(--muted);line-height:1.55}
.metro-live{text-align:right}
.metro-live strong{display:block;color:var(--cyan);font-size:clamp(4rem,9vw,7.5rem);line-height:.8}
.metro-live span{color:#90a0b7;font-size:.72rem;font-weight:900;letter-spacing:.2em}
.metro-controls{display:grid;grid-template-columns:1.35fr 1fr 1.4fr .75fr .8fr;gap:10px;margin:30px 0 16px;padding:16px;border:1px solid #293a54;border-radius:15px;background:#080e18}
.metro-controls label{display:grid;gap:8px;color:#9cacc1;font-size:.8rem;font-weight:850}
.metro-controls select{min-height:43px;border:1px solid #34455e;border-radius:9px;background:#151e2d;color:#fff;padding:9px}
.metro-controls input{accent-color:var(--cyan)}
.metro-bpm-control{display:grid;grid-template-columns:42px 1fr 42px;gap:8px;align-items:center}
.metro-bpm-control button{height:42px;border:1px solid #34455e;border-radius:9px;background:#151e2d;color:#fff;font-size:1.3rem;cursor:pointer}
.metro-stage{padding:clamp(22px,4vw,38px);border:1px solid #2c405d;border-radius:18px;background:radial-gradient(circle at 50% 0,#173452,#080e18 60%);text-align:center}
.metro-beats{display:flex;justify-content:center;align-items:center;gap:10px;min-height:26px;flex-wrap:wrap}
.metro-beats i{width:18px;height:18px;border:2px solid #596b85;border-radius:50%;background:#111927;transition:.08s}
.metro-beats i.group-start{margin-left:14px}
.metro-beats i.first{border-color:#56eeb5}
.metro-beats i.active{background:var(--cyan);border-color:#baf9ff;box-shadow:0 0 22px #39e7ff}
.metro-beats i.first.active{background:var(--green);border-color:#d6ffed;box-shadow:0 0 24px #5cffaa}
.metro-count{display:grid;place-items:center;margin:20px 0}
.metro-count span{color:#8495ad;font-size:.7rem;font-weight:900;letter-spacing:.18em}
.metro-count strong{font-size:clamp(5rem,12vw,9rem);line-height:1;color:#fff}
.metro-count small{color:var(--cyan);font-weight:850}
.metro-actions{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap}
.metro-actions button{min-width:145px}
.metro-actions label{display:flex;align-items:center;gap:7px;color:#aab7c9}
.metro-actions input{width:18px;height:18px;accent-color:var(--green)}
.metro-study-timer{display:flex;align-items:center;gap:22px;margin-top:18px;padding:18px 22px;border:1px solid #315646;border-radius:15px;background:#0b1e1a}
.metro-study-timer>div:first-child{flex:1;min-width:0}
.metro-study-timer span{color:var(--green);font-size:.75rem;font-weight:900;letter-spacing:.12em}
.metro-study-timer h2{margin:5px 0;font-size:1.25rem}
.metro-study-timer p{margin:0;color:#b5cfc3;line-height:1.45}
.metro-study-timer>strong{min-width:86px;color:#67edac;font-size:2.3rem;font-variant-numeric:tabular-nums;text-align:center}
.metro-study-timer-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.metro-study-timer-actions button{min-height:42px;white-space:nowrap}
.metro-presets{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:18px 0}
.metro-presets>span{margin-right:6px;color:#8292aa;font-size:.68rem;font-weight:900;letter-spacing:.14em}
.metro-presets button{min-width:58px;padding:8px;border:1px solid #30415d;border-radius:999px;background:#0c1421;color:#dce7f6;cursor:pointer}
.metro-presets button:hover{border-color:var(--cyan);color:var(--cyan)}
.metro-concepts{display:grid;grid-template-columns:1.05fr 1fr 1fr;gap:12px;margin:22px 0;padding:18px;border:1px solid #30435f;border-radius:16px;background:#0a1220}
.metro-concepts-head span{color:var(--cyan);font-size:.7rem;font-weight:900;letter-spacing:.14em}
.metro-concepts-head h2{margin:7px 0 0;font-size:1.35rem}
.metro-concepts article{padding:14px;border:1px solid #2e405a;border-radius:12px;background:#0d1726}
.metro-concepts article strong{color:#fff}
.metro-concepts article p{margin:6px 0 0;color:#a9b8cb;line-height:1.5}
.metro-concepts-tip{grid-column:1/-1;margin:0;color:#9eb1c8;line-height:1.5}
.metro-concepts-tip b{color:var(--green)}
.metro-study{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:22px;padding:18px;border:1px solid #315646;border-radius:15px;background:#0b1e1a}
.metro-study span,.metro-study strong{display:block}
.metro-study span{color:var(--green);font-size:.68rem;font-weight:900;letter-spacing:.14em}
.metro-study strong{margin-top:5px}
.metro-study p{margin:6px 0 0;color:#9fb3ae;line-height:1.5}
.metro-study a{white-space:nowrap;text-decoration:none}
@media(max-width:800px){.metro-controls{grid-template-columns:1fr 1fr}
.metro-concepts{grid-template-columns:1fr 1fr}
.metro-concepts-head{grid-column:1/-1}
.metro-study{align-items:flex-start;flex-direction:column}
}
@media(max-width:520px){.metronome-heading{align-items:flex-start}
.metro-live{display:none}
.metro-controls{grid-template-columns:1fr}
.metro-stage{padding:22px 12px}
.metro-actions{display:grid}
.metro-actions label{justify-content:center}
.metro-concepts{grid-template-columns:1fr}
.metro-concepts-head{grid-column:auto}
.metro-study a{white-space:normal;width:100%;text-align:center}
.metro-study-timer{flex-wrap:wrap;padding:16px}
.metro-study-timer>div:first-child{flex-basis:100%}
.metro-study-timer-actions{flex:1}
.metro-study-timer-actions button{flex:1}
}
