
:root {
  --bg: #080d10;
  --bg-deep: #05080a;
  --panel: #11171c;
  --panel-2: #151d22;
  --panel-3: #0c1216;
  --line: #2c373e;
  --line-soft: rgba(155, 173, 184, .17);
  --text: #f5f2e8;
  --muted: #9ca7ad;
  --muted-2: #65727a;
  --lime: #c8ff25;
  --lime-2: #9fcc1a;
  --violet: #9b4dff;
  --violet-2: #6f2fd0;
  --orange: #ff7043;
  --red: #ff4e3a;
  --blue: #4aa8ff;
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow: 0 22px 90px rgba(0, 0, 0, .42);
  --header-height: 70px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
body { margin: 0; min-width: 320px; color: var(--text); background:
  radial-gradient(circle at 14% -8%, rgba(139,69,255,.11), transparent 31rem),
  radial-gradient(circle at 91% 13%, rgba(200,255,37,.055), transparent 28rem),
  var(--bg-deep); font-family: var(--font-body); line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .24; background-image:
  linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent 86%); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
::selection { color: #071006; background: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; padding: 10px 14px; border-radius: 5px; color: #071006; background: var(--lime); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.ambient { position: fixed; width: 34rem; height: 34rem; border-radius: 50%; pointer-events: none; filter: blur(140px); opacity: .09; z-index: 0; }
.ambient-violet { left: -18rem; top: 25vh; background: var(--violet); }
.ambient-lime { right: -20rem; top: 38vh; background: var(--lime); }
.app-frame { position: relative; z-index: 1; width: min(1510px, calc(100% - 24px)); margin: 12px auto 40px; border: 1px solid rgba(167,184,194,.22); background: rgba(6,10,13,.62); box-shadow: var(--shadow); }
.site-header { position: sticky; top: 0; z-index: 80; min-height: var(--header-height); display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(6,10,13,.92); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand-text { font-size: 28px; font-weight: 760; letter-spacing: -.8px; }
.brand-text b { color: var(--lime); }
.brand-wave { display: inline-flex; align-items: center; gap: 2px; height: 24px; }
.brand-wave i { width: 2px; height: 7px; background: var(--violet); border-radius: 8px; box-shadow: 0 0 10px var(--violet); }
.brand-wave i:nth-child(2), .brand-wave i:nth-child(6) { height: 14px; }
.brand-wave i:nth-child(3) { height: 22px; }
.brand-wave i:nth-child(4) { height: 11px; }
.brand-wave i:nth-child(5) { height: 18px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.desktop-nav { display: flex; justify-content: center; gap: clamp(18px, 2.4vw, 36px); }
.desktop-nav a { position: relative; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--lime); transition: right .2s ease; }
.desktop-nav a:hover { color: var(--text); }
.desktop-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.button, .icon-button, .profile-chip, .round-play, .master-play, .icon-text-button, .follow-button { border: 0; cursor: pointer; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border-radius: 5px; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 850; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #091005; background: linear-gradient(180deg, #d7ff32, var(--lime)); box-shadow: 0 0 0 1px rgba(200,255,37,.34), 0 8px 25px rgba(200,255,37,.13); }
.button-primary:hover { box-shadow: 0 0 0 1px rgba(200,255,37,.65), 0 10px 32px rgba(200,255,37,.22); }
.button-secondary { border: 1px solid #52616a; background: rgba(8,13,16,.7); color: var(--text); }
.button-secondary:hover { border-color: var(--lime); }
.button-outline { border: 1px solid var(--lime-2); color: var(--lime); background: transparent; }
.button-violet { border: 1px solid var(--violet); color: #c69cff; background: rgba(111,47,208,.08); }
.button-violet:hover { background: rgba(139,69,255,.16); box-shadow: 0 0 24px rgba(139,69,255,.15); }
.button-danger { border: 1px solid var(--red); color: #ff8778; background: rgba(255,78,58,.08); }
.button-quiet { border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.025); }
.button-large { min-height: 48px; padding-inline: 23px; }
.button-small { min-height: 35px; padding-inline: 14px; }
.button-full { width: 100%; }
.icon-button, .profile-chip { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.025); }
.icon-button:hover, .profile-chip:hover { color: var(--text); border-color: var(--lime-2); }
.profile-chip { width: 42px; height: 42px; }
.avatar { width: 29px; height: 29px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: #081006; font-size: 11px; font-weight: 900; background: linear-gradient(145deg, #e8f1e7, #708b7b); }
.avatar-jeremy { color: #e6ffd8; background: radial-gradient(circle at 35% 25%, #6d834f, #253928 46%, #121814 47%); }
.avatar-green { background: linear-gradient(145deg, #a5ff73, #2c8246); }
.avatar-orange { background: linear-gradient(145deg, #ffbd6b, #a64d20); }
.avatar-blue { color: #e7f4ff; background: linear-gradient(145deg, #5fbeff, #235492); }
.avatar-violet { color: #fff; background: linear-gradient(145deg, #c06cff, #56247d); }
.avatar-lime { background: linear-gradient(145deg, #d7ff5a, #769817); }
.avatar-red { color: #fff; background: linear-gradient(145deg, #ff8171, #8f241b); }
.status-led, .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.mobile-menu-button, .mobile-menu, .mobile-bottom-nav, .mobile-only, .chain-mobile-link { display: none; }
main { overflow: hidden; }
.hero { min-height: 560px; display: grid; grid-template-columns: minmax(420px, .9fr) minmax(560px, 1.3fr); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(8,13,16,.96), rgba(8,13,16,.78) 43%, rgba(8,13,16,.1)); }
.hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 58px clamp(36px, 5vw, 78px); }
.eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 820; }
.eyebrow .icon { color: var(--lime); }
.hero h1, .riff-heading h1 { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-weight: 900; letter-spacing: .02em; line-height: .94; }
.hero h1 span, .hero h1 strong { display: block; }
.hero h1 span { color: var(--text); font-size: clamp(52px, 5.2vw, 78px); }
.hero h1 strong { color: var(--lime); font-size: clamp(62px, 6.3vw, 96px); text-shadow: 0 0 25px rgba(200,255,37,.09); }
.hero-intro { max-width: 500px; margin: 25px 0; color: #ccd3d6; font-size: clamp(15px, 1.35vw, 18px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 9px; margin-top: 32px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }
.mouse { width: 13px; height: 20px; border: 1px solid #68747b; border-radius: 10px; position: relative; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 4px; border-radius: 2px; background: var(--lime); transform: translateX(-50%); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 8px); } }
.hero-art { position: relative; overflow: hidden; min-height: 560px; background: #070b0e; }
.hero-art::before { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, #080d10 0, rgba(8,13,16,.86) 7%, transparent 37%), linear-gradient(0deg, #080d10 0, transparent 28%); }
.hero-art::after { content: ""; position: absolute; z-index: 2; inset: 0; box-shadow: inset 0 0 120px rgba(0,0,0,.85); pointer-events: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; filter: contrast(1.04) saturate(.92); }
.hero-wave { position: absolute; z-index: 4; left: 4%; right: 3%; height: 78px; opacity: .88; filter: drop-shadow(0 0 8px var(--violet)); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 100'%3E%3Cpath d='M0 50h32l8-7 8 13 7-30 8 54 8-43 9 21 8-8 10 0 8-15 8 36 8-55 8 71 8-42 8 7 12-2 8-12 7 29 8-46 8 61 8-38 8 11 12 5 8-20 8 31 8-45 8 60 8-35 10 4 14 5 8-18 8 36 8-57 8 76 8-49 8 13 12-1 8-8 8 23 8-32 8 41 8-24 8 5h28' fill='none' stroke='%239b4dff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.hero-wave-one { top: 48%; }
.hero-wave-two { top: 64%; transform: scaleX(-1); opacity: .42; }
.hero-signal { position: absolute; z-index: 5; right: 22px; bottom: 18px; display: flex; gap: 8px; color: var(--muted); font: 10px var(--font-mono); }
.hero-signal b { color: var(--lime); }
.panel { position: relative; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(17,23,28,.93), rgba(9,14,17,.94)); box-shadow: inset 0 1px 0 rgba(255,255,255,.018); }
.tab-studio-showcase { display: grid; grid-template-columns: minmax(360px,.8fr) minmax(520px,1.2fr); gap: clamp(28px,5vw,80px); align-items: center; padding: clamp(42px,6vw,82px); border-bottom: 1px solid var(--line); background: radial-gradient(circle at 82% 50%, rgba(155,77,255,.15), transparent 35%), #090e12; }
.tab-studio-copy h2 { max-width: 620px; margin: 0; color: var(--lime); font: 900 clamp(38px,4.2vw,66px)/.94 var(--font-display); letter-spacing: .025em; text-transform: uppercase; }
.tab-studio-copy > p:not(.eyebrow) { max-width: 620px; margin: 22px 0; color: #c8d0d4; }
.tab-studio-steps { display: grid; gap: 0; margin: 0 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.tab-studio-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.tab-studio-steps b { color: var(--violet); font: 700 11px var(--font-mono); }
.tab-studio-steps strong, .tab-studio-steps span { display: block; }
.tab-studio-steps strong { color: var(--text); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.tab-studio-steps span { color: var(--muted); font-size: 12px; }
.tab-studio-preview { position: relative; min-height: 330px; display: block; overflow: hidden; border: 1px solid #41505a; border-radius: 10px; background: #080d10; color: #f5f2e8; box-shadow: 0 28px 80px rgba(0,0,0,.45), 0 0 50px rgba(155,77,255,.1); transform: rotate(1deg); transition: transform .2s, border-color .2s; }
.tab-studio-preview:hover { transform: rotate(0) translateY(-4px); border-color: var(--lime); }
.tab-studio-preview::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(to right, transparent 76%, rgba(8,13,16,.42)), linear-gradient(to bottom, transparent 70%, rgba(8,13,16,.78)); }
.tab-studio-preview > img { display: block; width: 100%; height: auto; min-height: 0; object-fit: initial; object-position: left top; }
.preview-bar { min-height: 58px; display: grid; grid-template-columns: 22px auto 1fr; align-items: center; gap: 9px; padding: 0 18px; color: #f5f2e8; background: #090e12; font: 800 11px var(--font-mono); }
.preview-bar i { width: 18px; height: 2px; background: var(--violet); box-shadow: 5px -6px var(--lime), 10px 5px var(--violet); }
.preview-bar em { justify-self: end; color: var(--muted); font-style: normal; font-size: 9px; }
.preview-score { position: relative; flex: 1; display: grid; grid-template-columns: 30px 1fr; align-items: center; margin: 28px; font: 12px/25px var(--font-mono); }
.preview-labels { color: #7a756e; }
.preview-lines { height: 126px; background: repeating-linear-gradient(to bottom, transparent 0 23px, #918d85 24px 25px); }
.preview-notes { position: absolute; right: 5%; left: 10%; top: 70px; display: flex; align-items: center; justify-content: space-around; color: #f2efe8; line-height: 18px; }
.preview-notes i { min-width: 17px; height: 18px; display: inline-grid; place-items: center; padding: 0 3px; background: #111; font-style: normal; line-height: 1; }
.preview-action { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; padding: 13px 18px; border-top: 1px solid #344149; color: var(--text); background: rgba(8,13,16,.94); font: 800 10px var(--font-mono); backdrop-filter: blur(8px); }
.chain-section { border-left: 0; border-right: 0; padding: 27px 30px 31px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 19px; }
.section-heading.compact { align-items: center; }
.section-heading h2, .card-heading h2, .challenge-copy h2, .simple-tab-panel h2 { margin: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .035em; font-size: 26px; line-height: 1; }
.text-link { color: #b889ff; font-size: 11px; font-weight: 750; }
.text-link:hover { color: var(--lime); }
.chain-canvas { position: relative; width: 100%; height: 260px; overflow: hidden; }
.chain-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.wire { fill: none; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 6px currentColor); }
.wire-main { stroke: url(#wireA); }
.wire-lime { stroke: var(--lime); }
.wire-violet { stroke: var(--violet); }
.chain-node { position: absolute; width: 150px; min-height: 86px; display: flex; flex-direction: column; justify-content: space-between; padding: 11px; border: 1px solid #53616a; border-radius: 7px; background: linear-gradient(145deg, #141b20, #0a0f12); box-shadow: 0 9px 30px rgba(0,0,0,.22); transition: transform .18s ease, border-color .18s ease; }
.chain-node:hover { transform: translateY(-3px); border-color: var(--lime); }
.node-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.node-top strong, .node-top small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.node-top strong { font-size: 11px; }
.node-top small { color: var(--muted); font-size: 9px; }
.node-meta { display: flex; justify-content: space-between; color: var(--muted); font: 9px var(--font-mono); }
.chain-node-root { left: 1%; top: 84px; width: 165px; min-height: 105px; border-color: var(--violet); }
.chain-node-drums { left: 25%; top: 27px; }
.chain-node-acoustic { left: 25%; bottom: 18px; }
.chain-node-bass { left: 46%; top: 27px; }
.chain-node-doom { left: 46%; bottom: 18px; }
.chain-node-lead { left: 67%; top: 27px; }
.chain-node-vocals { left: 86%; bottom: 18px; }
.mini-player { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 6px; margin-top: 9px; }
.mini-player button, .round-play { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; border: 1px solid #728089; color: var(--text); background: #0b1013; }
.mini-player time { color: var(--muted); font: 8px var(--font-mono); }
.mini-wave, .row-wave, .idea-wave, .master-wave { min-width: 0; height: 28px; display: flex; align-items: center; gap: 1px; overflow: hidden; }
.wave-bar { width: 2px; min-width: 1px; height: var(--h); border-radius: 2px; background: #89949a; opacity: .7; transition: background .08s ease, opacity .08s ease; }
.wave-bar.played { background: var(--violet); opacity: 1; box-shadow: 0 0 6px rgba(155,77,255,.45); }
.home-grid { display: grid; grid-template-columns: 1.15fr .85fr; }
.trending-panel, .challenge-panel { border-top: 0; min-height: 340px; }
.trending-panel { border-left: 0; padding: 27px 30px; }
.challenge-panel { border-right: 0; overflow: hidden; }
.riff-list { display: grid; }
.riff-row { min-height: 73px; display: grid; grid-template-columns: 36px minmax(160px, 1.1fr) minmax(100px, 1.3fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.riff-row:hover .riff-info strong { color: var(--lime); }
.riff-info { min-width: 0; }
.riff-info strong, .riff-info small { display: block; }
.riff-info strong { font-size: 13px; }
.riff-info small { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-wave { height: 32px; }
.row-stat { color: var(--muted); font-size: 10px; }
.challenge-panel > img { position: absolute; inset: 0 0 0 auto; width: 54%; height: 100%; object-fit: cover; object-position: center; opacity: .62; mask-image: linear-gradient(90deg, transparent, #000 40%); }
.challenge-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #0c1216 28%, transparent 76%); }
.challenge-copy { position: relative; z-index: 2; width: 68%; padding: 28px 32px 30px; }
.challenge-copy h2 { font-size: 36px; color: var(--text); }
.challenge-copy > p:not(.eyebrow) { color: #c1c9cd; font-size: 14px; }
.challenge-rules { margin: 18px 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; }
.challenge-rules li { margin: 7px 0; }
.challenge-rules li::before { content: "›"; margin-right: 9px; color: var(--lime); }
.badge { display: inline-block; padding: 2px 5px; border-radius: 3px; font-size: 8px; line-height: 1.3; }
.badge-violet { color: #d8b9ff; border: 1px solid #7c3bb6; background: #3e1d58; }
.stats-panel { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 0; border-right: 0; border-top: 0; }
.community-hub { padding: clamp(34px,5vw,66px) clamp(24px,4vw,54px); border-top: 1px solid var(--line); background: radial-gradient(circle at 8% 90%, rgba(200,255,37,.07), transparent 28%), #080d10; }
.community-hub .section-heading h2 { font-size: clamp(30px,3.2vw,48px); color: var(--text); }
.community-paths { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.community-card { min-height: 285px; display: flex; flex-direction: column; align-items: flex-start; padding: 25px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(17,23,28,.96), rgba(8,13,16,.96)); }
.community-card-primary { border-color: rgba(200,255,37,.5); box-shadow: inset 0 3px 0 var(--lime); }
.community-number { color: var(--violet); font: 700 9px var(--font-mono); letter-spacing: .12em; }
.community-card h3 { margin: 30px 0 8px; font: 900 25px/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.community-card p { flex: 1; margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.community-privacy { margin: 18px 0 0; color: var(--muted); font-size: 11px; }
.community-privacy strong { color: var(--lime); }
.product-page { min-height: 70vh; padding: clamp(28px,5vw,70px); }
.product-intro { max-width: 850px; margin-bottom: 32px; }
.product-intro h1, .profile-hero h1 { margin: 0; color: var(--lime); font: 900 clamp(42px,6vw,82px)/.94 var(--font-display); text-transform: uppercase; }
.product-intro > p:last-child { max-width: 700px; color: var(--muted); }
.product-section { padding: 24px; margin-top: 18px; }
.product-section h2 { margin: 0 0 18px; font: 900 27px var(--font-display); text-transform: uppercase; }
.product-form { display: grid; gap: 14px; }
.product-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.product-form input, .product-form textarea, .product-form select { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); background: #090e12; }
.product-form textarea { min-height: 92px; resize: vertical; }
.product-list { display: grid; }
.product-row { width: 100%; min-height: 62px; display: grid; grid-template-columns: minmax(140px,1fr) minmax(120px,2fr) auto; align-items: center; gap: 14px; padding: 12px 4px; border: 0; border-top: 1px solid var(--line); color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.product-row span { color: var(--muted); font-size: 11px; }
.profile-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px; }
.profile-avatar { width: 88px; height: 88px; font-size: 30px; }
.profile-counts { color: var(--muted); font-size: 12px; }
.learning-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.challenge-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.assignment-form { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.assignment-box { border-top: 1px solid var(--line); }
.assignment-box .product-row { border-top: 0; }
.submission-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 8px 4px 14px; color: var(--muted); font-size: 11px; }
.submission-row a { color: var(--lime); }
.submission-actions { display: flex; gap: 6px; }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 20px; }
.admin-stat { padding: 18px; }
.admin-stat strong, .admin-stat span { display: block; }
.admin-stat strong { color: var(--lime); font: 900 32px var(--font-display); }
.admin-stat span { color: var(--muted); text-transform: uppercase; font-size: 9px; letter-spacing: .1em; }
.admin-tabs { display: flex; gap: 5px; overflow-x: auto; }
.admin-tabs button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); color: var(--muted); background: #090e12; cursor: pointer; }
.admin-tabs button.on { color: var(--lime); border-color: var(--lime); }
.admin-table { display: grid; }
.admin-row { min-height: 62px; display: grid; grid-template-columns: minmax(220px,2fr) minmax(100px,1fr) minmax(100px,1fr); align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.admin-user-row { grid-template-columns: minmax(210px,2fr) repeat(4,minmax(105px,1fr)); }
.admin-row strong, .admin-row small { display: block; }
.admin-row small { color: var(--muted); }
.admin-row select, .admin-term-form input, .admin-term-form select { padding: 9px; border: 1px solid var(--line); color: var(--text); background: #090e12; }
.admin-term-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; margin-bottom: 20px; }
.admin-role-lab { margin: 18px 0 30px; padding: 20px; border: 1px solid rgba(184,255,53,.3); background: linear-gradient(135deg,rgba(184,255,53,.055),rgba(155,77,255,.07)); }
.admin-role-lab-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.admin-role-lab h3 { margin: 0 0 7px; font-size: 20px; }
.admin-role-lab p { margin: 0; color: var(--muted); line-height: 1.5; }
.admin-role-state { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.admin-role-state span { padding: 6px 9px; border: 1px solid var(--line); color: var(--text); background: #090e12; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.admin-role-presets { display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)); gap: 9px; margin-top: 18px; }
.admin-role-preset { min-height: 72px; padding: 11px 13px; border: 1px solid var(--line); color: var(--text); background: #0a1014; text-align: left; cursor: pointer; }
.admin-role-preset:hover, .admin-role-preset.is-current { border-color: var(--lime); }
.admin-role-preset.is-current { box-shadow: inset 3px 0 var(--lime); }
.admin-role-preset strong, .admin-role-preset small { display: block; }
.admin-role-preset strong { color: var(--lime); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.admin-role-preset small { margin-top: 5px; color: var(--muted); line-height: 1.35; }
.admin-role-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.admin-role-note { margin-top: 12px !important; font-size: 11px; }
.audit-row code { grid-column: span 2; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-denied { max-width: 620px; padding: 20px; }
@media (max-width: 900px) {
  .admin-user-row { grid-template-columns: minmax(180px,1.5fr) repeat(2,minmax(100px,1fr)); }
  .admin-role-presets { grid-template-columns: repeat(2,minmax(140px,1fr)); }
}
@media (max-width: 600px) {
  .admin-role-lab-head { display: block; }
  .admin-role-state { justify-content: flex-start; margin-top: 12px; }
  .admin-role-presets { grid-template-columns: 1fr; }
  .admin-user-row { grid-template-columns: 1fr; padding: 14px 0; }
}
.stats-panel > div { min-height: 104px; display: grid; grid-template-columns: 38px auto; grid-template-rows: auto auto; align-content: center; padding: 20px 32px; border-right: 1px solid var(--line); }
.stats-panel > div:last-child { border-right: 0; }
.stats-panel .icon { grid-row: 1 / 3; align-self: center; width: 25px; height: 25px; color: var(--lime); }
.stats-panel strong { font-size: 22px; }
.stats-panel span { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 9px; }
.site-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; min-height: 91px; padding: 20px 30px; color: var(--muted); font-size: 11px; }
.site-footer p { text-align: center; text-transform: uppercase; letter-spacing: .12em; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--lime); }
.brand-footer .brand-text { font-size: 24px; }

/* Audio-to-JTAB beta lives inside the existing recorder modal. */
.audio-to-jtab { margin-top: 18px; padding: 18px; border: 1px solid rgba(184,255,53,.26); border-radius: 14px; background: linear-gradient(135deg, rgba(184,255,53,.06), rgba(155,77,255,.07)); }
.audio-to-jtab-head, .audio-to-jtab-source, .audio-to-jtab-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.audio-to-jtab-head h3 { margin: 2px 0 0; font-size: 1.2rem; }
.audio-to-jtab-head .eyebrow { color: var(--lime); }
.audio-to-jtab-local { color: var(--muted); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.audio-to-jtab-copy { margin: 10px 0 14px; color: var(--muted); line-height: 1.5; }
.audio-to-jtab-source { justify-content: flex-start; }
.audio-to-jtab-source span { min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-to-jtab-fields { display: grid; grid-template-columns: minmax(150px, 1.5fr) minmax(150px, 1fr) 90px; gap: 10px; margin: 14px 0; }
.audio-to-jtab-fields label { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.audio-to-jtab-fields input, .audio-to-jtab-fields select { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: #0d1418; color: var(--text); font: inherit; color-scheme: dark; }
.audio-to-jtab-fields input:focus, .audio-to-jtab-fields select:focus { border-color: var(--lime); outline: 1px solid var(--lime); }
.audio-to-jtab-actions { justify-content: flex-start; }
.audio-to-jtab-progress { height: 5px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.09); }
.audio-to-jtab-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--violet), var(--lime)); transition: width .18s ease; }
.audio-to-jtab-status { min-height: 1.4em; margin: 12px 0 0; color: var(--muted); line-height: 1.45; }
.audio-to-jtab-credit { display: inline-block; margin-top: 7px; color: var(--muted); font-size: .72rem; }
@media (max-width: 640px) { .audio-to-jtab-fields { grid-template-columns: 1fr; } }

/* Riff detail */
.riff-main { padding: 22px 25px 34px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; margin: 2px 0 20px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }
.breadcrumbs strong { color: var(--text); }
.riff-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 20px; }
.riff-heading h1 { font-size: clamp(48px, 5vw, 72px); }
.riff-heading p { margin: 9px 0; color: var(--muted); font-size: 12px; }
.riff-heading p a { color: var(--text); }
.follow-button { margin-left: 10px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: transparent; text-transform: uppercase; letter-spacing: .08em; font-size: 8px; }
.follow-button.is-following { color: #081006; border-color: var(--lime); background: var(--lime); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 4px; color: #d4dade; background: rgba(255,255,255,.018); font-size: 10px; }
.riff-actions { display: flex; align-items: center; gap: 8px; padding-top: 15px; }
.icon-text-button { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); background: transparent; }
.icon-text-button.is-liked { color: var(--orange); }
.master-player { min-height: 89px; display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 18px; padding: 15px 18px; }
.master-play { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #8b989f; color: var(--text); background: #0a0f12; }
.master-play .icon { width: 25px; height: 25px; }
.master-wave-wrap { min-width: 0; }
.master-wave { height: 43px; }
.time-row { display: flex; justify-content: space-between; color: var(--muted); font: 9px var(--font-mono); }
.riff-tabs { min-height: 64px; display: flex; align-items: end; gap: 34px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.riff-tabs button { min-width: max-content; height: 64px; padding: 0 5px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; cursor: pointer; }
.riff-tabs button[aria-selected="true"] { color: var(--text); border-color: var(--lime); }
.riff-tabs span { margin-left: 5px; padding: 2px 5px; border-radius: 10px; color: #dbe1e3; background: #252d32; }
.tab-panel { margin-top: 18px; }
.riff-content-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(260px, .82fr) minmax(270px, .9fr); gap: 14px; }
.tab-card, .insights-card, .ideas-card { min-height: 405px; padding: 20px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.card-heading h2 { font-size: 19px; }
.card-heading h2 small { color: var(--muted); font-family: var(--font-body); font-size: 10px; text-transform: none; letter-spacing: 0; }
.jtab-player { --amber: var(--lime); --amber-dim: #a9cf37; --amber-faint: #52652a; --bg: #0a0f12; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #0a0f12; }
.jtab-player-status { min-height: 34px; padding: 10px 13px; border-bottom: 1px solid var(--line-soft); color: #d9e0e2; font: 9px/1.45 var(--font-mono); letter-spacing: .02em; }
.jtab-score-scroll { position: relative; max-height: 560px; overflow: auto; overscroll-behavior: contain; background: radial-gradient(circle at 16% 0, rgba(200,255,37,.035), transparent 34%), #0a0f12; scrollbar-color: #58646a #10171b; }
[data-jtab-compact] .jtab-score-scroll { height: 250px; max-height: 250px; }
.jtab-score-stage { position: relative; min-width: 100%; min-height: 100%; }
.jtab-score { position: absolute; inset: 0; display: block; }
.jtab-score-playhead { position: absolute; z-index: 2; inset: 0; display: block; pointer-events: none; }
.jtab-transport { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 11px; border-top: 1px solid var(--line-soft); background: #0c1215; }
.jtab-transport .button { min-height: 33px; padding: 8px 11px; white-space: nowrap; }
.jtab-transport .button.is-active { border-color: var(--lime); color: #071005; background: var(--lime); }
.jtab-play { min-width: 64px; }
.jtab-timeline { min-width: 110px; flex: 1 1 150px; height: 20px; accent-color: var(--lime); cursor: pointer; }
.jtab-timeline:disabled { cursor: wait; opacity: .45; }
.jtab-clock { min-width: 76px; color: #c9d1d4; font: 9px var(--font-mono); white-space: nowrap; }
.jtab-studio-link { margin-left: auto; white-space: nowrap; }
[data-jtab-compact] .jtab-studio-link { width: 100%; margin: 2px 0 0; }
.jtab-player.is-unavailable .jtab-transport > :not(.jtab-studio-link) { display: none; }
.jtab-player.is-unavailable .jtab-studio-link { margin-left: 0; }
.full-jtab-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.simple-tab-panel .jtab-player { margin-top: 20px; }
.insight-list { display: grid; gap: 13px; margin: 0 0 18px; }
.insight-list div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; }
.insight-list dt { color: var(--lime); font-size: 10px; }
.insight-list dd { margin: 0; color: #d5dcdf; font-size: 11px; }
.confidence { display: inline-block; width: 75px; height: 5px; margin-right: 8px; overflow: hidden; border-radius: 4px; background: #2b353a; vertical-align: middle; }
.confidence i { display: block; height: 100%; background: var(--lime); }
.ai-answer { margin-top: 13px; padding: 13px; border-left: 2px solid var(--violet); color: #cdd4d8; background: rgba(139,69,255,.07); font-size: 11px; }
.idea-list { display: grid; gap: 5px; margin-bottom: 18px; }
.idea-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 9px; min-height: 70px; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--line-soft); color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.idea-row > span { min-width: 0; }
.idea-row strong { display: block; font-size: 11px; }
.idea-row small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.45; }
.idea-row time { color: var(--muted); font: 9px var(--font-mono); }
.idea-wave { display: flex; height: 20px; }
.chain-strip-panel { margin-top: 14px; padding: 20px; }
.chain-strip { display: flex; align-items: center; gap: 0; padding-bottom: 4px; overflow-x: auto; }
.strip-node, .more-node { flex: 0 0 104px; min-height: 102px; display: grid; grid-template-columns: 31px 1fr; grid-template-rows: auto auto auto; align-content: center; gap: 0 7px; padding: 9px; border: 1px solid #53616a; border-radius: 6px; color: var(--text); background: #0b1114; text-align: left; cursor: pointer; }
.strip-node .avatar { grid-row: 1 / 3; }
.strip-node strong, .strip-node small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-node strong { font-size: 10px; }
.strip-node small { color: var(--muted); font-size: 8px; }
.strip-node time { grid-column: 1 / 3; margin-top: 10px; color: var(--muted); font: 8px var(--font-mono); }
.strip-node.active, .strip-node.lime { border-color: var(--lime); box-shadow: 0 0 18px rgba(200,255,37,.07); }
.strip-node.blue { border-color: #478ccc; }
.strip-node.violet { border-color: var(--violet); }
.strip-node.warm { border-color: #9c7c43; }
.strip-node.red { border-color: var(--orange); }
.strip-wire { width: 24px; height: 3px; flex: 0 0 24px; background: linear-gradient(90deg, var(--lime), var(--violet)); box-shadow: 0 0 7px rgba(155,77,255,.4); }
.more-node { display: grid; place-items: center; margin-left: 13px; min-height: 62px; color: var(--muted); }
.simple-tab-panel { min-height: 360px; padding: 28px; }
.simple-tab-panel p { max-width: 850px; color: #c8d0d4; }

/* Dialogs and utility UI */
.modal { width: min(610px, calc(100% - 28px)); padding: 0; border: 1px solid #46545d; border-radius: 12px; color: var(--text); background: rgba(10,15,18,.98); box-shadow: 0 40px 130px #000; }
.modal::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(6px); }
.modal-shell { position: relative; padding: 32px; }
.modal-shell-small { text-align: center; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal h2 { margin: 0 0 12px; font: 48px/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.modal-intro, .modal-shell-small p { color: #b9c2c6; }
.recorder-display { margin: 24px 0; padding: 25px; border: 1px solid var(--line); border-radius: 8px; background: #080c0f; text-align: center; }
.recorder-time { color: var(--lime); font: 35px var(--font-mono); }
.record-meter { height: 9px; margin: 18px 0; overflow: hidden; border-radius: 8px; background: #202a2f; }
.record-meter span { display: block; width: 4%; height: 100%; background: linear-gradient(90deg, var(--lime), var(--orange)); transition: width .08s linear; }
.modal-actions { display: flex; gap: 10px; }
.recording-preview { width: 100%; margin-top: 18px; }
.download-recording { margin-top: 13px; }
.microcopy { color: var(--muted-2); font-size: 10px; }
.install-icon { width: 96px; margin: 0 auto 16px; border-radius: 22px; }
.toast { position: fixed; z-index: 999; right: 18px; bottom: 18px; max-width: 370px; padding: 13px 16px; border: 1px solid var(--lime-2); border-radius: 6px; color: var(--text); background: #10171b; box-shadow: 0 16px 50px #000; opacity: 0; transform: translateY(20px); pointer-events: none; transition: .22s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.pro-account-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pro-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.pro-card { margin-top: 0; }
.pro-card.is-featured { border-color: var(--lime-2); box-shadow: 0 0 0 1px rgba(200,255,37,.18), 0 18px 70px rgba(0,0,0,.32); }
.pro-price { display: block; margin: 8px 0 12px; color: var(--lime); font: 900 44px/1 var(--font-display); text-transform: uppercase; }
.feature-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--text); }
.feature-list li { padding-left: 18px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--lime); }

@media (max-width: 1180px) {
  .desktop-nav { gap: 18px; }
  .desktop-nav a { font-size: 10px; }
  .hero { grid-template-columns: .9fr 1.1fr; }
  .chain-node { width: 135px; }
  .chain-node-root { width: 150px; }
  .chain-node-vocals { left: 84%; }
  .riff-content-grid { grid-template-columns: 1.25fr .75fr; }
  .ideas-card { grid-column: 1 / -1; min-height: auto; }
  .idea-list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .idea-row { border: 1px solid var(--line); border-radius: 5px; padding: 10px; }
}

@media (max-width: 900px) {
  .admin-stats { grid-template-columns: repeat(2,1fr); }
  .admin-row { grid-template-columns: 1fr; padding: 12px 0; }
  .admin-term-form { grid-template-columns: 1fr; }
  .learning-actions, .challenge-grid { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: auto 1fr; }
  .profile-hero > .button { grid-column: 1 / -1; }
  .community-paths { grid-template-columns: 1fr; }
  .community-card { min-height: 220px; }
  .tab-studio-showcase { grid-template-columns: 1fr; padding: 38px 24px; }
  .tab-studio-preview { min-height: 280px; transform: none; }
  .tab-studio-preview > img { min-height: 0; }
  :root { --header-height: 62px; }
  body { padding-bottom: 77px; }
  .app-frame { width: 100%; margin: 0; border-left: 0; border-right: 0; }
  .site-header { grid-template-columns: auto auto; justify-content: space-between; padding: 0 15px; }
  .brand-wave, .desktop-nav, .header-actions > .install-app, .header-actions > .button-primary { display: none; }
  .brand-text { font-size: 23px; }
  .mobile-menu-button { display: inline-grid; }
  .mobile-menu { position: absolute; top: 100%; left: 0; right: 0; display: grid; padding: 14px; border-bottom: 1px solid var(--line); background: rgba(7,11,14,.98); transform: scaleY(0); transform-origin: top; opacity: 0; pointer-events: none; transition: .18s ease; }
  .mobile-menu.is-open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .mobile-menu a, .mobile-menu button { padding: 13px 11px; border: 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); background: transparent; text-align: left; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
  .mobile-bottom-nav { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; min-height: 70px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 8px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(5,9,11,.96); backdrop-filter: blur(18px); }
  .mobile-bottom-nav a, .mobile-bottom-nav > button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 8px; }
  .mobile-bottom-nav .icon { width: 19px; height: 19px; }
  .mobile-drop { width: 43px; height: 43px; display: grid; place-items: center; margin-top: -22px; border-radius: 10px; color: #071006; background: var(--lime); box-shadow: 0 0 25px rgba(200,255,37,.24); }
  .mobile-bottom-nav a[aria-current="page"] { color: var(--text); }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 495px; padding: 53px 24px 34px; background: linear-gradient(90deg, rgba(8,13,16,.98), rgba(8,13,16,.74) 77%, transparent); }
  .hero h1 span { font-size: 53px; }
  .hero h1 strong { font-size: 62px; }
  .hero-intro { width: 80%; font-size: 14px; }
  .hero-art { position: absolute; inset: var(--header-height) 0 auto 0; height: 495px; min-height: 0; opacity: .78; }
  .hero-art::before { background: linear-gradient(90deg, #080d10 0, rgba(8,13,16,.85) 37%, rgba(8,13,16,.1)), linear-gradient(0deg, #080d10 0, transparent 35%); }
  .hero-art img { object-position: 66% center; }
  .scroll-cue { display: none; }
  .chain-section { padding: 25px 18px; }
  .chain-canvas { height: auto; display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 14px; scroll-snap-type: x proximity; }
  .chain-wires { display: none; }
  .chain-node, .chain-node-root, .chain-node-drums, .chain-node-acoustic, .chain-node-bass, .chain-node-doom, .chain-node-lead, .chain-node-vocals { position: static; flex: 0 0 145px; width: 145px; min-height: 100px; scroll-snap-align: start; }
  .chain-node::after { content: "→"; position: absolute; right: -9px; top: 50%; color: var(--lime); }
  .chain-mobile-link { display: inline-flex; }
  .section-heading .text-link { display: none; }
  .home-grid { grid-template-columns: 1fr; }
  .trending-panel, .challenge-panel { min-height: auto; border-left: 0; border-right: 0; }
  .challenge-panel { min-height: 390px; }
  .stats-panel { grid-template-columns: 1fr 1fr; }
  .stats-panel > div:nth-child(2) { border-right: 0; }
  .stats-panel > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .site-footer { grid-template-columns: 1fr; text-align: center; padding-bottom: 27px; }
  .site-footer .brand { justify-content: center; }
  .footer-links { justify-content: center; }
  .riff-main { padding: 18px 14px 30px; }
  .riff-heading { display: block; }
  .riff-heading h1 { font-size: 52px; }
  .riff-actions { flex-wrap: wrap; }
  .master-player { grid-template-columns: 50px 1fr; }
  .riff-tabs { gap: 25px; }
  .riff-content-grid { grid-template-columns: 1fr; }
  .ideas-card { grid-column: auto; }
  .idea-list { grid-template-columns: 1fr; }
  .chain-strip-panel { padding-inline: 14px; }
}

@media (max-width: 600px) {
  .preview-bar em { display: none; }
  .preview-score { margin: 18px; }
  .header-actions { gap: 7px; }
  .profile-chip { width: 36px; height: 36px; }
  .hero-copy { min-height: 530px; padding-top: 46px; }
  .hero h1 span { font-size: 45px; }
  .hero h1 strong { font-size: 54px; }
  .hero-intro { width: 92%; }
  .hero-actions { width: 100%; }
  .hero-actions .button { width: 100%; }
  .pro-account-panel { align-items: flex-start; flex-direction: column; }
  .pro-grid { grid-template-columns: 1fr; }
  .hero-art { height: 530px; }
  .hero-wave { left: 24%; top: 46%; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 23px; }
  .trending-panel { padding: 24px 17px; }
  .riff-row { grid-template-columns: 34px 1fr auto; gap: 9px; }
  .riff-row .row-wave, .riff-row .row-stat:last-child { display: none; }
  .mobile-only { display: inline-flex; margin-top: 16px; }
  .challenge-copy { width: 83%; padding-inline: 20px; }
  .challenge-copy h2 { font-size: 33px; }
  .challenge-panel > img { width: 62%; }
  .stats-panel > div { padding: 17px; }
  .stats-panel strong { font-size: 19px; }
  .stats-panel > div { grid-template-columns: 30px auto; }
  .riff-heading h1 { font-size: 45px; }
  .riff-actions .button-violet { order: 5; width: 100%; margin-top: 4px; }
  .master-player { padding: 12px; gap: 10px; }
  .master-play { width: 43px; height: 43px; }
  .riff-tabs { margin-inline: -14px; padding-inline: 14px; }
  .tab-card, .insights-card, .ideas-card { min-height: auto; padding: 15px; }
  [data-jtab-compact] .jtab-score-scroll { height: 225px; max-height: 225px; }
  .jtab-transport .button { flex: 1 0 auto; }
  .jtab-timeline { order: 2; flex-basis: calc(100% - 94px); }
  .jtab-clock { order: 3; }
  .jtab-studio-link { width: 100%; margin: 3px 0 0; }
  .insight-list div { grid-template-columns: 1fr 1.1fr; }
  .card-heading h2 { font-size: 17px; }
  .modal-shell { padding: 25px 19px; }
  .modal h2 { font-size: 40px; }
  .modal-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
