/* Jazz Etude Club — Direction A "Sleeve" (mockup v3, 2026-10-19).
   Every etude is a record sleeve; member screens are the inside of the shop: square geometry,
   3px radii on boxes, 999px on buttons/pills, rules not shadows (except sleeves), heavy Bricolage
   headings, grain on sleeves only. Everything is scoped under .jec / body.jec-page so the active
   theme does not fight it. Light scheme via data-theme="light" or prefers-color-scheme when
   data-theme is absent (setting "Follow device"). */

.jec, body.jec-page {
	--bg: #0a0710; --bg-2: #120c1c; --bg-3: #1a1226; --line: #2b2140; --line-2: #3d2f5c;
	--fg: #f2ecfa; --fg-2: #b7a9d3; --fg-3: #7c6f96;
	--purple: #8B36FA; --purple-2: #a86bff; --lavender: #d9c8ff; --cream: #efe7d6; --ink: #120a1e;
	--accent-soft: rgba(139,54,250,.16); --ok: #3ecf8e; --warn: #f5b73b;
	/* aliases kept from v0.1 so nothing that still says --accent breaks */
	--accent: var(--purple); --accent-2: var(--purple-2); --on-accent: #fff;
	--display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
	--body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
	color-scheme: dark;
}
@media (prefers-color-scheme: light) {
	.jec:not([data-theme="dark"]), body.jec-page:not(.jec-scheme-dark) {
		--bg: #f6f2fb; --bg-2: #ffffff; --bg-3: #efe9fa; --line: #dcd2ef; --line-2: #c9bce6;
		--fg: #140b22; --fg-2: #4d4166; --fg-3: #7c6f96; --purple: #7a22f0; --purple-2: #8B36FA; --accent-soft: rgba(139,54,250,.12);
		color-scheme: light;
	}
}
.jec[data-theme="light"], body.jec-page.jec-scheme-light {
	--bg: #f6f2fb; --bg-2: #ffffff; --bg-3: #efe9fa; --line: #dcd2ef; --line-2: #c9bce6;
	--fg: #140b22; --fg-2: #4d4166; --fg-3: #7c6f96; --purple: #7a22f0; --purple-2: #8B36FA; --accent-soft: rgba(139,54,250,.12);
	color-scheme: light;
}
/* explicit dark beats a light device preference */
.jec[data-theme="dark"], body.jec-page.jec-scheme-dark {
	--bg: #0a0710; --bg-2: #120c1c; --bg-3: #1a1226; --line: #2b2140; --line-2: #3d2f5c;
	--fg: #f2ecfa; --fg-2: #b7a9d3; --fg-3: #7c6f96; --purple: #8B36FA; --purple-2: #a86bff; --accent-soft: rgba(139,54,250,.16);
	color-scheme: dark;
}

/* ---- base ---- */
body.jec-page { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.jec-page.admin-bar .rail { top: 32px; height: calc(100vh - 32px); }
.jec { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.5; min-height: 100vh; }
.jec *, .jec *::before, .jec *::after { box-sizing: border-box; }
.jec h1, .jec h2, .jec h3, .jec h4 { font-family: var(--display); margin: 0; line-height: 1; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; color: inherit; }
.jec p { margin: 0; }
.jec a { color: inherit; text-decoration: none; }
.jec img { max-width: 100%; display: block; height: auto; }
.jec button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.jec .wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.jec .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.jec .eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--purple-2); font-weight: 600; }
.jec .btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid var(--fg); color: var(--fg); background: none; transition: transform .15s, background .15s; line-height: 1.2; white-space: nowrap; }
.jec .btn:hover { transform: translateY(-1px); }
.jec .btn.primary, .jec .btn.p { background: var(--purple); border-color: var(--purple); color: #fff; }
.jec .btn.small { padding: 8px 14px; font-size: 14px; }
.jec .btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.jec .btn.primary[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #06270f; }
.jec .btn:focus-visible, .jec .tab:focus-visible, .jec .chip:focus-visible, .jec .card:focus-visible, .jec button:focus-visible, .jec a:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 3px; }
.jec .pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--fg-2); line-height: 1.4; }
.jec .pill.free { background: var(--ok); border-color: var(--ok); color: #06270f; }
.jec .pill.acc { background: var(--accent-soft); border-color: transparent; color: var(--purple-2); }
.jec .pill.lock { background: rgba(0,0,0,.5); border-color: transparent; color: #fff; }
.jec .num { font-variant-numeric: tabular-nums; }
.jec .hint { font-size: 12px; color: var(--fg-3); margin-top: 8px; }
.jec .hint.ok { color: var(--ok); }
.jec .small { font-size: 13px; color: var(--fg-2); }
.jec .ph-note { font-size: 12px; color: var(--warn); border: 1px dashed var(--warn); border-radius: 3px; padding: 8px 12px; display: inline-block; margin-bottom: 12px; }
.jec .logo { height: 54px; width: auto; }
.jec .logo.on-light { display: none; }
.jec[data-theme="light"] .logo.on-dark { display: none; }
.jec[data-theme="light"] .logo.on-light { display: block; }
@media (prefers-color-scheme: light) {
	.jec:not([data-theme="dark"]) .logo.on-dark { display: none; }
	.jec:not([data-theme="dark"]) .logo.on-light { display: block; }
}

/* ---- public nav ---- */
.jec .nav { border-bottom: 1px solid var(--line); background: var(--bg); }
.jec .nav .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.jec .nav .links { display: flex; gap: 26px; margin-left: auto; font-size: 16px; color: var(--fg-2); font-weight: 500; align-items: center; }
.jec .nav .links a:hover { color: var(--fg); }
@media (max-width: 760px) { .jec .nav .links { gap: 14px; } .jec .nav .links a:not(.btn) { display: none; } }
.jec .foot { border-top: 1px solid var(--line); padding-block: 28px; color: var(--fg-3); font-size: 14px; margin-top: 40px; }
.jec .foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.jec .pub-list { padding-block: 40px 70px; }
.jec .locked-wrap { padding-block: 28px 60px; max-width: 1040px; }
.jec .more { text-align: center; margin-top: 26px; color: var(--fg-3); font-size: 14px; }
.jec .empty { color: var(--fg-3); padding: 30px 0; text-align: center; }

/* ---- sleeve (the record) ---- */
.jec .sleeve { aspect-ratio: 1; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; position: relative; border-radius: 3px; overflow: hidden; isolation: isolate; text-align: left; width: 100%; }
.jec .sleeve::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>"); pointer-events: none; mix-blend-mode: overlay; }
.jec .sleeve .n { font-family: var(--display); font-size: 13px; font-weight: 700; opacity: .75; position: relative; }
.jec .sleeve h3 { font-size: 30px; line-height: .98; letter-spacing: -.03em; color: inherit; }
.jec .sleeve .after { font-size: 12px; margin-top: 8px; opacity: .75; }
.jec .sleeve .tx { position: relative; min-width: 0; }
.jec .sleeve.a { background: var(--purple); color: var(--ink); }
.jec .sleeve.b { background: var(--ink); color: var(--lavender); }
.jec .sleeve.c { background: var(--cream); color: var(--ink); }
.jec .sleeve.d { background: var(--lavender); color: var(--ink); }
.jec .sleeve.e { background: #1a1030; color: #fff; }
.jec .sleeve .ph { position: absolute; inset: 0; z-index: -1; object-fit: cover; width: 100%; height: 100%; opacity: .55; filter: grayscale(1) contrast(1.1); max-width: none; }
.jec .sleeve .free { position: absolute; top: 14px; right: 14px; background: var(--ok); color: #06270f; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; z-index: 1; }
.jec .sleeve .lk { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; z-index: 1; }
/* size steps */
.jec .sleeve.sm { padding: 12px; }
.jec .sleeve.sm h3 { font-size: 18px; }
.jec .sleeve.sm .n { font-size: 11px; }
.jec .sleeve.sm .after { font-size: 11px; margin-top: 4px; }

/* ---- rack (home-page marquee, [jec_sleeve_rack]) ---- */
.jec .rack { overflow: hidden; padding-block: 36px 56px; border-bottom: 1px solid var(--line); }
.jec .rack .track { display: flex; gap: 18px; width: max-content; animation: jec-roll 70s linear infinite; }
.jec .rack:hover .track { animation-play-state: paused; }
@keyframes jec-roll { to { transform: translateX(-50%); } }
.jec .rack .sleeve { width: 250px; flex: 0 0 auto; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); }
.jec .rack a { display: block; flex: 0 0 auto; }
.jec .rack a .sleeve { width: 250px; }
@media (prefers-reduced-motion: reduce) { .jec .rack .track { animation: none; flex-wrap: wrap; width: auto; } .jec .rack .track > [data-dup] { display: none; } }
.jec.jec-rack-wrap { min-height: 0; }
.jec.jec-rack-wrap.jec-inline { background: none; }
.jec.jec-rack-wrap.jec-inline .rack { border-bottom: 0; }

/* ---- cards = sleeve + liner line ---- */
.jec .catalog, .jec .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) { .jec .catalog, .jec .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .jec .catalog, .jec .grid { grid-template-columns: 1fr; } }
.jec .card { display: flex; flex-direction: column; min-width: 0; text-align: left; padding: 0; gap: 0; transition: transform .15s; color: inherit; border: 0; background: none; border-radius: 3px; }
.jec .card:hover { transform: translateY(-3px); }
.jec .card .sleeve { box-shadow: 0 18px 36px -22px rgba(0,0,0,.8); }
.jec .card .sleeve h3 { font-size: 26px; }
.jec .card .prog { height: 3px; background: var(--line); margin-top: 10px; }
.jec .card .prog i { display: block; height: 100%; background: var(--purple); transition: width .3s; }
.jec .card .body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.jec .card .body .std { font-size: 13px; color: var(--fg-3); }
.jec .card .row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--fg-3); align-items: center; }
.jec .card .row b { color: var(--fg-2); font-weight: 600; }
.jec .dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.jec .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.jec .dots i.on { background: var(--purple-2); }

/* ---- member shell ---- */
.jec .app { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.jec .rail { border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; background: var(--bg-2); position: sticky; top: 0; align-self: start; height: 100vh; }
.jec .rail .brand { padding: 6px 8px 18px; }
.jec .rail .brand .logo { height: 46px; }
.jec .rail a { padding: 10px 10px; border-radius: 3px; font-size: 15px; color: var(--fg-2); display: flex; gap: 10px; align-items: center; }
.jec .rail a.on { background: var(--accent-soft); color: var(--fg); font-weight: 600; box-shadow: inset 3px 0 0 var(--purple); }
.jec .rail a .soon { margin-left: auto; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; }
.jec .rail .me { margin-top: auto; padding: 12px 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }
.jec .rail .me b { display: block; color: var(--fg); font-weight: 600; }
.jec .main { padding: 28px max(16px, env(safe-area-inset-right, 0px)) 60px max(16px, env(safe-area-inset-left, 0px)); min-width: 0; }
.jec .main .in { max-width: 1040px; margin: 0 auto; }
@media (max-width: 860px) {
	.jec .app { grid-template-columns: 1fr; }
	.jec .rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; align-items: center; height: auto; position: static; scrollbar-width: none; }
	.jec .rail .brand { padding: 0 8px 0 0; flex: 0 0 auto; }
	.jec .rail .brand .logo { height: 34px; width: auto; max-width: none; flex: 0 0 auto; }
	.jec .rail .me, .jec .rail .out { display: none; }
	.jec .rail a { white-space: nowrap; padding: 8px 10px; font-size: 14px; }
	.jec .rail a.on { box-shadow: inset 0 -3px 0 var(--purple); }
	body.jec-page.admin-bar .rail { top: auto; height: auto; }
}

/* ---- library ---- */
.jec .lib-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.jec .lib-head h1 { font-size: 40px; }
.jec .lib-head p { color: var(--fg-2); }
.jec .lib-head p a { color: var(--purple-2); }
.jec .lib-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.jec .toolbar { display: flex; gap: 10px 18px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.jec .toolbar .grp { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.jec .toolbar .lab { font-size: 12px; color: var(--fg-3); margin-right: 2px; }
.jec .chip { padding: 7px 13px; border-radius: 3px; border: 1px solid var(--line-2); font-size: 13px; color: var(--fg-2); font-weight: 500; }
.jec .chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.jec .toolbar select { font: inherit; font-size: 13px; color: var(--fg); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 3px; padding: 7px 12px; }
.jec .toolbar .search { margin-left: auto; font: inherit; font-size: 13px; color: var(--fg); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 3px; padding: 7px 14px; min-width: 0; width: 220px; max-width: 100%; }
@media (max-width: 560px) { .jec .toolbar .search { margin-left: 0; width: 100%; } }

/* ---- etude page ---- */
.jec .crumbs { font-size: 13px; color: var(--fg-3); margin-bottom: 12px; }
.jec .et-head { display: grid; grid-template-columns: 150px 1fr auto; gap: 22px; align-items: end; margin-bottom: 22px; }
.jec .et-head .sleeve { width: 150px; box-shadow: 0 18px 36px -22px rgba(0,0,0,.8); }
.jec .et-head .sleeve h3 { font-size: 18px; }
.jec .et-head .sleeve .n { font-size: 11px; }
.jec .et-head .sleeve .after { font-size: 11px; margin-top: 4px; }
.jec .et-head .tt { min-width: 0; }
.jec .et-head h1 { font-size: clamp(30px, 4vw, 48px); }
.jec .et-head .meta { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; color: var(--fg-3); align-items: center; }
.jec .et-head .meta b { color: var(--fg-2); font-weight: 500; }
.jec .et-head .by { display: inline-flex; align-items: center; gap: 8px; }
.jec .av { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line-2); display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--fg-2); flex: 0 0 auto; overflow: hidden; }
.jec .et-head .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.jec .et-head.no-acts { grid-template-columns: 150px 1fr; }
@media (max-width: 760px) { .jec .et-head, .jec .et-head.no-acts { grid-template-columns: 1fr; } .jec .et-head .sleeve { width: 120px; } .jec .et-head .sleeve h3 { font-size: 15px; } .jec .et-head .sleeve .after { display: none; } }
.jec .tabs { display: flex; gap: 0; border-bottom: 1.5px solid var(--fg); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.jec .tab { padding: 12px 16px 12px 0; margin-right: 16px; font-size: 15px; font-weight: 600; color: var(--fg-3); border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1.5px; display: inline-flex; gap: 6px; align-items: center; font-family: var(--display); border-radius: 0; }
.jec .tab[aria-selected="true"] { color: var(--fg); border-color: var(--purple); }
.jec .tab .lk { font-size: 11px; opacity: .8; }
.jec .panel[hidden] { display: none; }
.jec .sub { font-size: 18px; margin: 22px 0 10px; }
.jec .notes { margin-top: 20px; color: var(--fg-2); font-size: 15px; max-width: 64ch; }
.jec .notes p { margin: 0 0 1em; }
.jec .et-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
@media (max-width: 960px) { .jec .et-layout { grid-template-columns: 1fr; } }
.jec .side { display: flex; flex-direction: column; gap: 14px; }
.jec .box { border: 1px solid var(--line); border-radius: 3px; padding: 16px; background: var(--bg-2); }
.jec .box h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); font-family: var(--body); font-weight: 600; margin-bottom: 10px; }
.jec .dl { display: flex; flex-direction: column; gap: 8px; }
.jec .dl a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 3px; background: var(--bg-3); font-size: 13px; border: 1px solid var(--line); }
.jec .dl a.cur { border-color: var(--purple); }
.jec .dl a small { color: var(--fg-3); white-space: nowrap; }
.jec .keypick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.jec .keypick button { padding: 9px 0; border-radius: 3px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--fg-2); }
.jec .keypick button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }

/* video */
.jec .player { position: relative; border-radius: 3px; overflow: hidden; border: 1px solid var(--line-2); background: #000; }
.jec .player.video { aspect-ratio: 16 / 9; }
.jec .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jec .player .tag { position: absolute; left: 14px; top: 14px; }
.jec .video-empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--fg-2); background: linear-gradient(135deg, var(--bg-3), #000); }
.jec .video-empty .play { width: 72px; height: 72px; border-radius: 50%; background: var(--purple); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); opacity: .6; }
.jec .chapters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.jec .chapters button { font-size: 12px; padding: 6px 10px; border-radius: 3px; border: 1px solid var(--line); color: var(--fg-2); background: var(--bg-2); }
.jec .chapters button b { color: var(--fg); font-variant-numeric: tabular-nums; margin-right: 6px; }
.jec .navrow { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.jec .navrow a { font-size: 13px; color: var(--fg-2); padding: 10px 14px; border: 1px solid var(--line); border-radius: 3px; }
.jec .navrow a.r { text-align: right; margin-left: auto; }
.jec .navrow a b { display: block; color: var(--fg); font-weight: 700; font-family: var(--display); }

/* backing tracks */
.jec .tempos { display: flex; gap: 8px; flex-wrap: wrap; }
.jec .bt-line { display: grid; grid-template-columns: 128px 1fr; gap: 12px; align-items: center; margin-bottom: 14px; }
.jec .bt-line .lab { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.jec .bt-line .lab em { display: block; font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 12px; margin-top: 2px; }
.jec .bt-line .hint { margin: 0; }
.jec .bt-line + .aplayer { margin-top: 6px; }
@media (max-width: 560px) { .jec .bt-line { grid-template-columns: 1fr; gap: 6px; } }
.jec .tempos button { min-width: 66px; padding: 12px 10px; border-radius: 3px; border: 1px solid var(--line-2); font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--fg-2); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.2; }
.jec .tempos button small { font-size: 10px; font-family: var(--body); font-weight: 600; letter-spacing: .1em; color: var(--fg-3); }
.jec .tempos button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.jec .tempos button[aria-pressed="true"] small { color: rgba(255,255,255,.75); }
.jec .aplayer { border: 1px solid var(--line-2); border-radius: 3px; padding: 22px; background: var(--bg-2); }
.jec .aplayer .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.jec .aplayer .top b { font-weight: 700; font-family: var(--display); font-size: 18px; }
.jec .aplayer .top span.meta-label { font-size: 13px; color: var(--fg-3); }
.jec .aplayer audio { display: none; }
.jec .wave { height: 96px; display: flex; align-items: center; border-radius: 1px; padding: 0 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 2px, transparent 2px 6px); background-size: 100% 60%; background-position: 0 50%; background-repeat: no-repeat; }
.jec .wave .seek { position: relative; width: 100%; height: 100%; cursor: pointer; }
.jec .wave .seek .pos { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent-soft); border-right: 2px solid var(--purple); }
.jec .wave .loop-win { position: absolute; top: 0; bottom: 0; background: rgba(62,207,142,.12); border-inline: 1px dashed var(--ok); pointer-events: none; }
.jec .controls { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.jec .controls .big { width: 52px; height: 52px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.jec .controls .big svg { grid-area: 1 / 1; }
.jec .controls .big.counting { background: var(--warn); }
.jec .controls .big .ic-pause { display: none; }
.jec .controls .big.playing .ic-pause { display: block; }
.jec .controls .big.playing .ic-play { display: none; }
.jec .qn { display: inline-block; vertical-align: -1px; margin-right: 1px; }
.jec .controls .t { font-size: 13px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.jec .controls .opt { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.jec .controls .opt label { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--fg-2); padding: 6px 10px; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.jec .controls .opt input { accent-color: var(--purple); margin: 0; }
.jec .mixes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 16px; }
.jec .mixes button { padding: 10px 12px; border-radius: 3px; border: 1px solid var(--line); background: var(--bg-3); text-align: left; font-size: 13px; color: var(--fg-2); }
.jec .mixes button b { display: block; color: var(--fg); font-weight: 600; }
.jec .mixes button[aria-pressed="true"] { border-color: var(--purple); }

/* sheet music placeholder */
.jec .score { border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; background: var(--bg-2); }
.jec .score .bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--fg-2); flex-wrap: wrap; }
.jec .score .bar .ph-note { margin: 0; }
.jec .sheet-empty { min-height: 320px; display: grid; place-items: center; padding: 30px; color: var(--fg-3); font-size: 14px; text-align: center; background: var(--bg-2); }
.jec .sheet-empty p { max-width: 36em; }

/* locked state */
.jec .locked-panel { border: 1px dashed var(--line-2); border-radius: 3px; padding: 40px 24px; text-align: center; background: var(--bg-2); display: grid; gap: 10px; justify-items: center; }
.jec .locked-panel .lk { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--purple-2); display: grid; place-items: center; font-size: 20px; }
.jec .locked-panel b { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; }
.jec .locked-panel p { color: var(--fg-2); font-size: 14px; max-width: 34em; }
.jec .lockbar { border: 1px solid var(--line-2); border-radius: 3px; padding: 16px 20px; background: var(--bg-3); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.jec .lockbar .tx { flex: 1; min-width: 220px; }
.jec .lockbar b { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; }
.jec .lockbar p { color: var(--fg-2); font-size: 14px; }

/* discussion placeholder */
.jec .com { display: grid; grid-template-columns: 1fr 280px; gap: 22px; align-items: start; }
@media (max-width: 960px) { .jec .com { grid-template-columns: 1fr; } }
.jec .composer { border: 1px solid var(--line-2); border-radius: 3px; padding: 14px 16px; background: var(--bg-2); display: flex; gap: 12px; align-items: center; margin-bottom: 16px; color: var(--fg-3); font-size: 14px; }
.jec .composer .av { width: 36px; height: 36px; font-size: 13px; }

/* account shortcode (inline in a theme page) */
.jec.jec-inline { min-height: 0; background: none; display: grid; gap: 14px; max-width: 520px; }
.jec.jec-inline .box { background: var(--bg-2); color: var(--fg); }
.jec .jec-account-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.jec .jec-account-form select { font: inherit; font-size: 14px; color: var(--fg); background: var(--bg); border: 1px solid var(--line-2); border-radius: 3px; padding: 9px 12px; flex: 1; min-width: 0; }
.jec.jec-rack-wrap.jec-inline { display: block; max-width: none; }

@media (prefers-reduced-motion: reduce) { .jec * { transition: none !important; animation: none !important; } }
