:root {
  --bg: #0a0a0e; --bg2: #0e0e14; --surface: #14141c; --surface2: #1b1b26; --surface3: #232331;
  --border: #262634; --border2: #333346;
  --text: #ececf3; --muted: #9494aa; --faint: #62627a;
  --accent: #ff5a36; --accent2: #ff2d6f; --accent-soft: rgba(255, 90, 54, .14);
  --green: #35d07f; --green-soft: rgba(53, 208, 127, .14); --amber: #ffb43b; --blue: #5aa9ff;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --grad: linear-gradient(135deg, #ff5a36, #ff2d6f);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 Inter, system-ui, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
svg.i { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.125em; }
svg.i.fill { fill: currentColor; stroke: none; }

.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg2); border-right: 1px solid var(--border); padding: 22px 14px; display: flex; flex-direction: column; gap: 6px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 10px 18px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand .logo { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 20px rgba(255, 70, 70, .35); }
.wordmark { font-family: 'Barlow Condensed', Inter, sans-serif; font-weight: 700; font-size: 26px; letter-spacing: .01em; line-height: 1; color: #fff; }
.wordmark b { font-weight: 700; color: #a99fae; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; transition: .15s; }
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 35%, white); }
.nav-item .i { font-size: 18px; }
.nav-course { display: block; padding: 9px 12px; border-radius: 10px; color: var(--muted); }
.nav-course:hover { background: var(--surface); color: var(--text); }
.nav-course.active { background: var(--surface2); color: var(--text); }
.nav-course .t { font-weight: 600; font-size: 13px; line-height: 1.3; display: flex; justify-content: space-between; gap: 8px; }
.nav-course .t span:last-child { color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.nav-course .sub { font-size: 11.5px; color: var(--faint); margin-bottom: 6px; }
.mini-bar { height: 4px; border-radius: 4px; background: var(--surface3); overflow: hidden; }
.mini-bar > i { display: block; height: 100%; background: var(--grad); border-radius: 4px; transition: width .4s; }
.mini-bar.green > i { background: var(--green); }
.side-foot { margin-top: auto; padding-top: 14px; }
.side-foot button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; color: var(--faint); font-size: 12.5px; }
.side-foot button:hover { background: var(--surface); color: var(--text); }

.main { min-width: 0; padding: 34px 40px 80px; max-width: 1500px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 14px; font-weight: 700; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-weight: 600; background: var(--surface2); border: 1px solid var(--border2); transition: .15s; white-space: nowrap; }
.btn:hover { background: var(--surface3); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 22px rgba(255, 70, 80, .28); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.sm { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface2); color: var(--text); }
.btn.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: color-mix(in srgb, var(--accent) 45%, white); }
.btn.danger:hover { background: rgba(255, 70, 70, .18); color: #ff9a9a; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface2); color: var(--muted); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.accent { background: var(--accent-soft); color: #ff9c82; }

/* dashboard */
.hero { position: relative; display: grid; grid-template-columns: 340px 1fr; gap: 0; overflow: hidden; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 220px at 100% 0, rgba(255, 70, 80, .16), transparent 70%); pointer-events: none; }
.hero .thumb { position: relative; min-height: 190px; background: #000 center/cover; }
.hero .thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, var(--surface)); }
.hero .body { position: relative; padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.hero h2 { font-size: 24px; letter-spacing: -.02em; }
.hero .bar { margin: 10px 0 4px; max-width: 440px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 18px; }
.tile { padding: 18px 20px; }
.tile .k { color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.tile .v { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .s { color: var(--faint); font-size: 12px; margin-top: 2px; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.course-card { display: flex; gap: 18px; align-items: center; padding: 20px; transition: .18s; cursor: pointer; }
.course-card:hover { border-color: var(--border2); transform: translateY(-2px); background: var(--surface2); }
.course-card .meta { min-width: 0; flex: 1; }
.course-card h3 { font-size: 15px; line-height: 1.3; }
.course-card .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.course-card .row { display: flex; gap: 12px; color: var(--faint); font-size: 12px; flex-wrap: wrap; }
.ring { position: relative; flex: none; display: grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring .lbl { position: absolute; text-align: center; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring .lbl small { display: block; font-size: 9.5px; font-weight: 600; color: var(--faint); letter-spacing: .04em; margin-top: 3px; }
.panel-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.panel { padding: 20px 22px; }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.heat i { width: 13px; height: 13px; border-radius: 3px; background: var(--surface3); display: block; }
.heat i.l1 { background: #5a2a22; } .heat i.l2 { background: #94361f; } .heat i.l3 { background: #d4491f; } .heat i.l4 { background: #ff6a3d; }
.heat i.future { opacity: 0; }
.legend { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--faint); margin-top: 10px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: block; background: var(--surface3); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 130px; }
.bars .b { flex: 1; display: grid; grid-template-rows: 16px minmax(0, 1fr) 16px; justify-items: center; align-items: end; row-gap: 4px; height: 100%; min-width: 0; }
.bars .b i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: var(--grad); min-height: 3px; transition: height .4s; }
.bars .b i.zero { background: var(--surface3); }
.bars .b span { font-size: 10.5px; color: var(--faint); }
.bars .b em { font-style: normal; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.goal { display: flex; align-items: center; gap: 18px; }

/* course page */
.course-head { display: flex; gap: 28px; align-items: center; padding: 26px 30px; margin-bottom: 22px; position: relative; overflow: hidden; }
.course-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(560px 220px at 0 0, rgba(var(--c1rgb, 255, 70, 80), .2), transparent 70%); pointer-events: none; }
.course-head > * { position: relative; }
.course-head .info { flex: 1; min-width: 0; }
.course-head .stats { display: flex; gap: 22px; margin: 12px 0 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.course-head .stats b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.module { margin-bottom: 14px; overflow: hidden; }
.module-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; user-select: none; }
.module-head:hover { background: var(--surface2); }
.module-head .t { flex: 1; min-width: 0; }
.module-head .t b { font-weight: 700; }
.module-head .t small { display: block; color: var(--faint); font-size: 12px; }
.module-head .mini-bar { width: 120px; }
.module-head .chev { transition: .2s; color: var(--faint); }
.module.collapsed .chev { transform: rotate(-90deg); }
.module.collapsed .lessons { display: none; }
.lesson-row { display: flex; align-items: center; gap: 14px; padding: 10px 20px; border-top: 1px solid var(--border); cursor: pointer; transition: background .12s; }
.lesson-row:hover { background: var(--surface2); }
.lesson-row.current { background: var(--accent-soft); }
.lesson-row.novideo { opacity: .5; }
.check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border2); display: grid; place-items: center; flex: none; color: transparent; transition: .15s; font-size: 13px; background: none; }
.check:hover { border-color: var(--green); }
.check.done { background: var(--green); border-color: var(--green); color: #07140d; }
.check.part { border-color: var(--accent); background: conic-gradient(var(--accent) var(--p, 0%), transparent 0); }
.lesson-row .lt { flex: 1; min-width: 0; }
.lesson-row .lt .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-row .lt .m { color: var(--faint); font-size: 12px; display: flex; gap: 10px; align-items: center; margin-top: 1px; }
.lesson-row .dur { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.conf { display: inline-flex; gap: 3px; }
.conf i { width: 6px; height: 6px; border-radius: 50%; background: var(--surface3); display: block; }
.conf i.on { background: var(--amber); }

/* lesson page */
.lesson-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.lesson-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 18px 0 4px; flex-wrap: wrap; }
.playlist { position: sticky; top: 20px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; }
.playlist .ph { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.playlist .pl { overflow-y: auto; flex: 1; }
.playlist .sh { padding: 10px 18px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); background: var(--bg2); position: sticky; top: 0; z-index: 1; }
.playlist .lesson-row { padding: 9px 14px; gap: 11px; }
.playlist .lthumb { width: 64px; height: 36px; }
.playlist .lesson-row .lt .n { font-size: 13px; white-space: normal; line-height: 1.3; }

/* player */
.player { background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); outline: none; }
.stage { position: relative; background: #000; aspect-ratio: 16/9; cursor: pointer; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage video.mirror { transform: scaleX(-1); }
.stage .big-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: .2s; }
.stage.paused .big-play { opacity: 1; }
.big-play span { width: 76px; height: 76px; border-radius: 50%; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); display: grid; place-items: center; font-size: 30px; border: 1px solid rgba(255, 255, 255, .2); }
.stage .osd { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(10, 10, 14, .82); backdrop-filter: blur(8px); padding: 7px 14px; border-radius: 99px; font-weight: 600; font-size: 13px; opacity: 0; transition: opacity .25s; pointer-events: none; border: 1px solid var(--border2); white-space: nowrap; }
.stage .osd.show { opacity: 1; }
.stage .badge { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; pointer-events: none; }
.stage .badge span { background: rgba(10, 10, 14, .78); backdrop-filter: blur(8px); padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; border: 1px solid var(--border2); }
.stage .badge .loopb { color: color-mix(in srgb, var(--accent) 45%, white); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.stage .novideo { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); }
.ctrl { background: var(--surface); padding: 12px 16px 14px; }
.timeline { position: relative; padding: 11px 0 9px; touch-action: none; cursor: pointer; user-select: none; }
.track { position: relative; height: 8px; border-radius: 8px; background: var(--surface3); }
.timeline:hover .track { height: 10px; margin: -1px 0; }
.track .buf, .track .prog, .track .region { position: absolute; top: 0; bottom: 0; border-radius: 8px; }
.track .buf { background: rgba(255, 255, 255, .1); }
.track .prog { background: var(--grad); }
.track .region { background: rgba(53, 208, 127, .35); border: 1px solid rgba(53, 208, 127, .85); border-radius: 4px; top: -3px; bottom: -3px; display: none; pointer-events: none; }
.track .region.on { display: block; }
.track .region.off { background: rgba(150, 150, 170, .22); border-color: rgba(150, 150, 170, .6); }
.handle { position: absolute; top: -9px; width: 14px; height: 26px; margin-left: -7px; border-radius: 5px; background: var(--green); color: #05150c; font-size: 10px; font-weight: 800; display: none; place-items: center; cursor: ew-resize; z-index: 3; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.handle.show { display: grid; }
.handle.off { background: #8f8fa6; }
.knob { position: absolute; top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .6); z-index: 2; pointer-events: none; }
.mk { position: absolute; top: -5px; width: 3px; height: 18px; margin-left: -1.5px; background: var(--amber); border-radius: 2px; z-index: 1; opacity: .9; }
.hover-time { position: absolute; bottom: 24px; transform: translateX(-50%); background: #000d; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; pointer-events: none; display: none; font-variant-numeric: tabular-nums; }
.crow { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ibtn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; color: var(--text); transition: .12s; position: relative; }
.ibtn:hover { background: var(--surface3); }
.ibtn.on { color: var(--accent); background: var(--accent-soft); }
.ibtn.play { background: var(--grad); width: 44px; height: 44px; border-radius: 50%; margin-right: 6px; }
.ibtn small { position: absolute; bottom: 3px; font-size: 8.5px; font-weight: 800; }
.time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; margin-left: 8px; }
.time b { color: var(--text); font-weight: 600; }
.sp { flex: 1; }
.crow .vol { width: 84px; accent-color: var(--accent); }
.practice { display: grid; grid-template-columns: 1.1fr 1.25fr 1fr; gap: 12px; padding: 14px; background: var(--bg2); border-top: 1px solid var(--border); }
.pbox { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.pbox .ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.pbox .ph h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.speedval { font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.speedrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.presets { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.presets button { padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }
.presets button:hover { color: var(--text); background: var(--surface3); }
.presets button.on { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 45%, white); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
input[type=range] { width: 100%; accent-color: var(--accent); }
.loopbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.abrow { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.abrow b { color: var(--text); font-variant-numeric: tabular-nums; min-width: 44px; display: inline-block; text-align: center; }
.abrow .nudge { padding: 2px 7px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--border); font-size: 12px; }
.abrow .nudge:hover { background: var(--surface3); color: var(--text); }
.opt { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 9px; flex-wrap: wrap; }
.opt input[type=number], .opt select { width: 56px; background: var(--surface2); border: 1px solid var(--border2); border-radius: 7px; padding: 3px 6px; color: var(--text); }
.opt select { width: auto; }
.switch { position: relative; width: 36px; height: 20px; border-radius: 20px; background: var(--surface3); border: 1px solid var(--border2); transition: .15s; flex: none; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #aaa; transition: .15s; }
.switch.on { background: var(--accent); border-color: var(--accent); }
.switch.on::after { left: 18px; background: #fff; }
.player:fullscreen { display: flex; flex-direction: column; border-radius: 0; border: 0; }
.player:fullscreen .stage { flex: 1; aspect-ratio: auto; }
.player:fullscreen .practice { display: none; }

/* tabs under player */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 22px 0 18px; overflow-x: auto; }
.tab { padding: 10px 16px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-color: var(--accent); }
.tab .cnt { background: var(--surface3); border-radius: 99px; padding: 0 7px; font-size: 11px; color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; }
.item:hover { border-color: var(--border2); }
.item .nm { flex: 1; min-width: 0; }
.item .nm input { width: 100%; background: transparent; border: 0; outline: 0; font-weight: 600; padding: 2px 0; }
.item .nm input:focus { border-bottom: 1px solid var(--accent); }
.item .tm { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.empty { padding: 28px; text-align: center; color: var(--faint); border: 1px dashed var(--border2); border-radius: 12px; }
textarea.notes { width: 100%; min-height: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; resize: vertical; line-height: 1.6; outline: none; }
textarea.notes:focus { border-color: var(--accent); }
.conf-btns { display: flex; gap: 6px; }
.conf-btns button { padding: 6px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; background: var(--surface2); border: 1px solid var(--border2); color: var(--muted); }
.conf-btns button.on { color: #1b1200; background: var(--amber); border-color: var(--amber); }
.res-group { margin-bottom: 22px; }
.res-group h3 { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.track-row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; }
.track-row.playing { border-color: var(--accent); background: var(--accent-soft); }
.track-row .nm { flex: 1; font-weight: 600; min-width: 0; }
.track-row .btn { padding: 5px 11px; font-size: 12.5px; }
.audiobar { position: sticky; bottom: 14px; margin-top: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; background: var(--surface2); border: 1px solid var(--border2); border-radius: 14px; box-shadow: var(--shadow); z-index: 5; flex-wrap: wrap; }
.audiobar .seek { flex: 1; min-width: 160px; }
.audiobar .nowp { font-weight: 600; font-size: 13px; min-width: 120px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdfframe { width: 100%; height: 760px; border: 1px solid var(--border); border-radius: 12px; background: #fff; margin-top: 12px; }

.toasts { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast { background: var(--surface3); border: 1px solid var(--border2); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; animation: pop .25s; display: flex; gap: 10px; align-items: center; }
.toast.good { border-color: var(--green); }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 90; padding: 20px; }
.modal { background: var(--surface); border: 1px solid var(--border2); border-radius: 18px; padding: 26px 30px; max-width: 560px; width: 100%; box-shadow: var(--shadow); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin-top: 16px; align-items: center; }
kbd { background: var(--surface3); border: 1px solid var(--border2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 8px; font: 600 12px Inter, sans-serif; display: inline-block; min-width: 24px; text-align: center; }

@media (max-width: 1100px) { .lesson-grid { grid-template-columns: minmax(0, 1fr); } .playlist { position: static; max-height: 520px; } .panel-row { grid-template-columns: 1fr; } .practice { grid-template-columns: 1fr; } }
.side-menu { display: none; }
@media (max-width: 800px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { z-index: 50; }
  .sidebar:not(.open) > :not(.brand):not(.side-menu) { display: none !important; }
  .side-menu { display: flex; align-items: center; gap: 7px; margin-left: auto; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border2); color: var(--text); font-weight: 600; position: relative; }
  .side-menu.live::after { content: ''; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
  .sidebar.open > .nav-item, .sidebar.open > .sess-wrap, .sidebar.open > .nav-colwrap, .sidebar.open > .side-foot { flex: 1 1 100%; }
  .sidebar.open .side-foot { display: block !important; margin-top: 8px; border-top: 1px solid var(--border); }
  .sidebar.open .nav-course { display: block !important; flex: 1; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--border); padding: 12px; }
  .sidebar .nav-label, .sidebar .nav-course, .side-foot { display: none; }
  .brand { padding: 0 8px 0 0; }
  .main { padding: 20px 16px 60px; }
  .hero { grid-template-columns: 1fr; }
  .hero .thumb::after { background: linear-gradient(180deg, transparent 50%, var(--surface)); }
  .course-head { flex-direction: column; align-items: flex-start; }
  .module-head .mini-bar { display: none; }
}

.grp { padding: 8px 20px; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--bg2); border-top: 1px solid var(--border); letter-spacing: .02em; }
.playlist .grp { padding: 7px 18px; }

/* ===== polish: thumbnails ===== */
.lthumb { position: relative; width: 104px; height: 58px; border-radius: 9px; overflow: hidden; flex: none; border: 1px solid var(--border); background: var(--surface2); }
.lthumb::before, .skel { background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shim 1.4s linear infinite; }
.lthumb::before { content: ""; position: absolute; inset: 0; }
.lthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s, filter .25s, transform .4s; }
.lthumb img.in { opacity: 1; }
.lthumb .sv { position: absolute; inset: 0; background-size: 600% 100%; opacity: 0; transition: opacity .15s; }
.lthumb.scrub .sv { opacity: 1; }
.lesson-row:hover .lthumb img.in { transform: scale(1.06); }
.lthumb .pb { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--grad); z-index: 3; }
.lthumb .dtag { position: absolute; right: 4px; bottom: 5px; z-index: 3; background: rgba(0, 0, 0, .78); border-radius: 4px; padding: 0 5px; font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 16px; }
.lthumb .wm { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; z-index: 3; border-radius: 50%; background: var(--green); color: #07140d; display: grid; place-items: center; font-size: 15px; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.lthumb.done img { filter: brightness(.45) saturate(.7); }
.lthumb.done .dtag { display: none; }
.lthumb.done::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(135deg, rgba(53, 208, 127, .22), transparent); }
.playlist .lthumb { width: 72px; height: 41px; }
.playlist .lthumb .dtag { font-size: 9.5px; line-height: 14px; right: 3px; bottom: 4px; }
.playlist .lthumb .wm { width: 20px; height: 20px; margin: -10px 0 0 -10px; font-size: 12px; }

/* ===== polish: course cover cards ===== */
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cover-card { overflow: hidden; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; }
.cover-card:hover { transform: translateY(-5px); border-color: rgba(var(--c1rgb), .55); box-shadow: 0 20px 50px rgba(var(--c1rgb), .2); }
.cover { position: relative; height: 138px; overflow: hidden; background: #0b0b10; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; opacity: 0; transition: opacity .5s, transform .6s; filter: grayscale(.4) contrast(1.05); }
.cover img.in { opacity: 1; }
.cover-card:hover .cover img { transform: scale(1.07); }
.cover::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(var(--c1rgb), .82), rgba(var(--c2rgb), .6)); mix-blend-mode: multiply; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 40%, var(--surface) 100%); }
.cover .lvl, .lvlchip { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; }
.cover .lvl { position: absolute; z-index: 3; left: 14px; top: 14px; background: rgba(8, 8, 12, .6); backdrop-filter: blur(8px); padding: 5px 11px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .14); }
.cover .lvl i, .lvlchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); display: block; box-shadow: 0 0 8px var(--c1); }
.lvlchip { color: var(--c1); margin-bottom: 8px; }
.cring { position: absolute; z-index: 4; right: 14px; top: 104px; background: var(--surface); border-radius: 50%; padding: 5px; }
.cover-card:hover .cring { box-shadow: 0 0 0 2px rgba(var(--c1rgb), .4); }
.cb { padding: 14px 20px 20px; position: relative; z-index: 3; }
.cb h3 { font-size: 16px; line-height: 1.25; padding-right: 76px; }
.cb .sub { color: var(--muted); font-size: 12.5px; margin: 2px 0 10px; }
.cb .row { display: flex; gap: 14px; color: var(--faint); font-size: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.cbtn { margin-top: 14px; background: var(--grad) !important; border-color: transparent !important; color: #fff; }
.cbtn:hover { filter: brightness(1.12); }
.nav-course.active { box-shadow: inset 3px 0 0 var(--c1); }
.nav-course:hover .t span:first-child { color: var(--c1); }

/* ===== polish: motion ===== */
@keyframes shim { to { background-position: -200% 0; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.main.page-in { animation: pageIn .38s cubic-bezier(.2, .7, .2, 1); }
.main.page-in .cover-card, .main.page-in .tile, .main.page-in .module, .main.page-in .course-head, .main.page-in .hero, .main.page-in .panel, .main.page-in .item { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.main.page-in .cover-card:nth-child(2), .main.page-in .tile:nth-child(2), .main.page-in .module:nth-child(3) { animation-delay: .06s; }
.main.page-in .cover-card:nth-child(3), .main.page-in .tile:nth-child(3), .main.page-in .module:nth-child(4) { animation-delay: .12s; }
.main.page-in .cover-card:nth-child(4), .main.page-in .tile:nth-child(4), .main.page-in .module:nth-child(5) { animation-delay: .18s; }
.main.page-in .cover-card:nth-child(5), .main.page-in .tile:nth-child(5), .main.page-in .module:nth-child(6) { animation-delay: .24s; }
.ring .arc { transition: stroke-dashoffset 1.1s cubic-bezier(.3, .8, .2, 1); }
.mini-bar > i { transition: width .9s cubic-bezier(.3, .8, .2, 1); }
.lesson-row, .btn, .nav-item, .nav-course, .tab { transition: background .15s, color .15s, border-color .15s, transform .15s, filter .15s; }
.btn:active { transform: scale(.97); }
.stage.loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0b10 25%, #17171f 50%, #0b0b10 75%); background-size: 200% 100%; animation: shim 1.4s linear infinite; z-index: 1; pointer-events: none; }
.skel { border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }

/* ===== sessions ===== */
.navcnt { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--surface3); color: var(--muted); border-radius: 99px; padding: 0 8px; line-height: 18px; }
.sess-wrap { margin: 10px 0 4px; }
.sess-start { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; text-align: left; background: var(--surface); border: 1px dashed var(--border2); transition: .2s; }
.sess-start:hover { border-color: #ff5a36; background: rgba(255, 90, 54, .08); transform: translateY(-1px); }
.sess-start .sicon { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #ff5a36, #ff2d6f); display: grid; place-items: center; font-size: 18px; flex: none; }
.sess-start b { display: block; font-size: 13px; }
.sess-start small { display: block; color: var(--faint); font-size: 11.5px; }
.sess-card { padding: 14px 16px; border-radius: 14px; background: linear-gradient(160deg, rgba(255, 90, 54, .16), rgba(255, 45, 111, .08)); border: 1px solid rgba(255, 90, 54, .4); }
.sess-card.paused { background: var(--surface); border-color: var(--border2); }
.sess-top { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ff9c82; }
.sess-card.paused .sess-top { color: var(--faint); }
.sess-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3d4f; animation: pulse 1.4s infinite; }
.sess-card.paused .sess-dot { animation: none; background: var(--faint); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 79, .6); } 100% { box-shadow: 0 0 0 9px rgba(255, 61, 79, 0); } }
.sess-time { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 4px 0 2px; line-height: 1.1; }
.sess-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.sess-btns { display: flex; gap: 8px; }
.sess-btns .btn { flex: 1; }
.modal.wide { max-width: 620px; }
.recap .eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.recap h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 18px; }
.rstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rstat { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 8px; text-align: center; }
.rstat .v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rstat .k { font-size: 11px; color: var(--faint); margin-top: 2px; }
.rlist { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.ritem { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface2); border-radius: 10px; font-size: 13px; }
.ritem i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }
.ritem .n { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ritem .c { color: var(--faint); font-size: 11.5px; white-space: nowrap; }
.ritem b { font-variant-numeric: tabular-nums; color: var(--muted); }
.rfoot { display: flex; gap: 20px; margin-top: 16px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.rbadges { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.rbadges .brow { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* ===== badges ===== */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.badge-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 14px 16px; text-align: center; position: relative; transition: transform .2s, border-color .2s, box-shadow .2s; }
.badge-card.earned:hover { transform: translateY(-3px); border-color: var(--b1); box-shadow: 0 14px 34px color-mix(in srgb, var(--b1) 22%, transparent); }
.bmedal { width: 66px; height: 66px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; position: relative; background: linear-gradient(145deg, var(--b1), var(--b2)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 6px rgba(0, 0, 0, .25), 0 6px 18px color-mix(in srgb, var(--b1) 35%, transparent); }
.bmedal::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .45); }
.badge-card.locked .bmedal { background: var(--surface3); box-shadow: none; filter: grayscale(1); opacity: .55; }
.badge-card.locked .bmedal::after { border-color: rgba(255, 255, 255, .15); }
.badge-card.locked .glyph { opacity: .5; }
.bmedal .lock { position: absolute; right: -4px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--border2); display: grid; place-items: center; font-size: 12px; color: var(--muted); z-index: 2; filter: none; }
.bt { font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.bd { color: var(--muted); font-size: 12px; margin-top: 3px; min-height: 30px; }
.bdate { color: var(--faint); font-size: 11.5px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.badge-card.earned .bdate { color: var(--b1); }
.bprog { margin-top: 10px; }
.badge-card.earned::before { content: ""; position: absolute; inset: 0; border-radius: 16px; background: radial-gradient(120px 80px at 50% 0, color-mix(in srgb, var(--b1) 14%, transparent), transparent 70%); pointer-events: none; }
.badge-card.compact { padding: 12px 10px; width: 112px; flex: none; }
.badge-card.compact .bmedal { width: 50px; height: 50px; font-size: 23px; margin-bottom: 7px; }
.badge-card.compact .bt { font-size: 11.5px; }
.badge-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; }
@media (max-width: 700px) { .rstats { grid-template-columns: repeat(2, 1fr); } }

/* ===== theatre mode ===== */
.main:has(.lesson-grid.theatre) { max-width: 1900px; }
.lesson-grid.theatre { grid-template-columns: minmax(0, 1fr); }
.lesson-grid.theatre .stage { aspect-ratio: 16 / 9; max-height: calc(100vh - 270px); min-height: 340px; width: 100%; }
.lesson-grid.theatre .playlist { position: static; max-height: 460px; }
.lesson-grid.theatre .playlist .pl { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.lesson-grid.theatre .playlist .sh, .lesson-grid.theatre .playlist .grp { grid-column: 1 / -1; }
.lesson-grid.theatre .practice { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1250px) { .lesson-grid.theatre .practice { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== waveform timeline ===== */
.timeline.wave .track { height: 58px; border-radius: 10px; background: var(--surface2); }
.timeline.wave:hover .track { height: 58px; margin: 0; }
.timeline.wave { padding: 12px 0 8px; }
.timeline.wave-loading .track { background: linear-gradient(90deg, var(--surface3) 25%, var(--surface2) 50%, var(--surface3) 75%); background-size: 200% 100%; animation: shim 1.4s linear infinite; }
.wfbase, .wfcol { position: absolute; left: 0; top: 0; height: 58px; display: none; border-radius: 10px; }
.timeline.wave .wfbase { display: block; width: 100%; }
.timeline.wave .wfcol { display: block; }
.timeline.wave .prog { background: none; overflow: hidden; border-radius: 10px 0 0 10px; border-right: 2px solid #fff; box-shadow: 8px 0 18px -8px rgba(255, 255, 255, .5); }
.timeline.wave .buf { display: none; }
.timeline.wave .knob { width: 0; height: 0; }
.timeline.wave .region { top: 0; bottom: 0; border-radius: 6px; background: rgba(53, 208, 127, .18); border: 1px solid rgba(53, 208, 127, .9); }
.timeline.wave .region.off { background: rgba(150, 150, 170, .12); }
.timeline.wave .handle { top: -4px; height: 66px; width: 10px; margin-left: -5px; border-radius: 4px; }
.timeline.wave .mk { top: 0; height: 58px; opacity: .75; width: 2px; }
.timeline.wave .hover-time { bottom: 70px; }

/* loop fine-tune zoom */
.zoom { padding: 4px 0 12px; }
.zhead { display: flex; align-items: center; gap: 12px; font-size: 12px; margin-bottom: 8px; }
.zhead .snap { display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; font-size: 12px; }
.ztrack { position: relative; height: 66px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--border); touch-action: none; cursor: crosshair; user-select: none; }
.ztrack canvas { display: block; width: 100%; height: 64px; border-radius: 10px; }
.zreg { position: absolute; top: 0; bottom: 0; background: rgba(53, 208, 127, .16); border-left: 2px solid var(--green); border-right: 2px solid var(--green); pointer-events: none; }
.zreg.off { background: rgba(150, 150, 170, .1); border-color: #8f8fa6; }
.zh { position: absolute; top: -2px; bottom: -2px; width: 12px; margin-left: -6px; cursor: ew-resize; z-index: 3; display: grid; place-items: start center; background: var(--green); color: #04140a; font-size: 9.5px; font-weight: 800; border-radius: 4px; padding-top: 2px; }
.zknob { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; z-index: 2; box-shadow: 0 0 8px rgba(255, 255, 255, .6); }

/* metronome */
.practice { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.bpmrow { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.bpmrow .bpm { width: 74px; background: var(--surface2); border: 1px solid var(--border2); border-radius: 9px; padding: 3px 6px; font-size: 24px; font-weight: 800; text-align: center; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bpmrow .ibtn { width: 32px; height: 32px; font-size: 17px; }
.bpm::-webkit-inner-spin-button { display: none; }
.mdots { display: flex; gap: 8px; margin: 2px 0 6px; min-height: 16px; }
.mdot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface3); display: block; transition: background .06s, transform .06s; }
.mdot.acc { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.mdot.hit { background: var(--accent); transform: scale(1.35); }
.mdot.acc.hit { background: #fff; }
.metro .opt label { display: flex; align-items: center; gap: 6px; }
.countin { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(90px, 18vw, 220px); font-weight: 800; color: #fff; text-shadow: 0 6px 40px rgba(0, 0, 0, .8), 0 0 60px color-mix(in srgb, var(--accent) 70%, transparent); background: rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; z-index: 4; transition: opacity .12s; }
.countin.show { opacity: 1; }
.countin.pop { animation: cipop .5s ease-out; }
@keyframes cipop { from { transform: scale(1.5); } to { transform: scale(1); } }

/* ===== course documents + docked PDF viewer ===== */
.docs-card { padding: 16px 20px; margin-bottom: 14px; }
.dc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.dc-h > span:first-child { color: var(--c1, var(--accent)); font-size: 18px; }
.dc-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.doc-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; transition: border-color .15s; }
.doc-tile:hover { border-color: rgba(var(--c1rgb, 255, 90, 54), .5); }
.dt-icon { width: 42px; height: 52px; border-radius: 8px; background: linear-gradient(160deg, rgba(var(--c1rgb, 255, 90, 54), .35), rgba(var(--c2rgb, 255, 45, 111), .2)); border: 1px solid rgba(var(--c1rgb, 255, 90, 54), .4); display: grid; place-items: center; font-size: 20px; flex: none; }
.dt-t { flex: 1; min-width: 0; }
.dt-t b { display: block; font-size: 13.5px; line-height: 1.25; }
.dt-t small { color: var(--faint); font-size: 12px; }
.docbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.docbar .btn .faint { font-weight: 500; margin-left: 4px; }
.lesson-grid.docked { grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr); }
.lesson-grid.docked .playlist { grid-column: 1 / -1; position: static; max-height: 440px; }
.dock { position: sticky; top: 20px; height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; align-self: start; }
.dock .dh { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.dock .dsel { background: var(--surface2); border: 1px solid var(--border2); border-radius: 8px; padding: 5px 8px; color: var(--text); max-width: 60%; font-weight: 600; font-size: 13px; }
.dock .dj { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; align-items: center; font-size: 12px; }
.dock .dj .chip { cursor: pointer; border: 1px solid transparent; }
.dock .dj .chip.cur { border-color: var(--accent); }
.dock iframe { flex: 1; width: 100%; border: 0; background: #fff; }
@media (max-width: 1100px) { .lesson-grid.docked { grid-template-columns: minmax(0, 1fr); } .dock { position: static; height: 75vh; } }

/* ===== sidebar: collapsible courses with module sub-headers ===== */
.nav-group { margin-bottom: 2px; }
.nav-course-row { display: flex; align-items: stretch; gap: 2px; }
.nav-course-row .nav-course { flex: 1; min-width: 0; }
.nav-chev { width: 30px; flex: none; border-radius: 10px; color: var(--faint); display: grid; place-items: center; font-size: 15px; transition: background .15s, color .15s; }
.nav-chev:hover { background: var(--surface2); color: var(--text); }
.nav-chev svg { transition: transform .25s; transform: rotate(-90deg); }
.nav-group.open .nav-chev svg { transform: rotate(0); }
.nav-secs { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.nav-group.open .nav-secs { grid-template-rows: 1fr; }
.nav-secs-in { overflow: hidden; min-height: 0; margin-left: 14px; border-left: 1px solid var(--border); }
.nav-group.open .nav-secs-in { padding: 4px 0 8px; }
.nav-sec { display: flex; align-items: center; gap: 9px; padding: 5px 8px 5px 12px; margin: 1px 0; border-radius: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.3; transition: background .12s, color .12s; }
.nav-sec:hover { background: var(--surface); color: var(--text); }
.nav-sec.on { background: rgba(var(--c1rgb), .14); color: var(--text); font-weight: 600; }
.nav-sec .ns-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-sec .ns-n { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.nav-sec .ns-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border2); flex: none; display: grid; place-items: center; font-size: 9px; color: #07140d; }
.nav-sec.on .ns-dot { border-color: var(--c1); }
.nav-sec.done .ns-dot { background: var(--green); border-color: var(--green); }
.module.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 2px var(--c1, var(--accent)); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 800px) { .nav-secs, .nav-chev { display: none; } }

/* ===== sidebar: collapsible collections ===== */
.nav-colhead { width: 100%; display: flex; align-items: center; gap: 8px; padding: 14px 10px 6px 12px; text-align: left; border-radius: 8px; }
.nav-colhead .nch-t { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); transition: color .15s; }
.nav-colhead:hover .nch-t { color: var(--text); }
.nav-colhead .nch-n { margin-left: auto; font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.nav-colhead .nch-c { color: var(--faint); font-size: 14px; display: grid; }
.nav-colhead .nch-c svg { transition: transform .25s; transform: rotate(-90deg); }
.nav-colwrap.open .nch-c svg { transform: rotate(0); }
.nav-colbody { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.nav-colwrap.open .nav-colbody { grid-template-rows: 1fr; }
.nav-colin { overflow: hidden; min-height: 0; }
.sidebar > * { flex-shrink: 0; }
.nav-colhead .nch-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nav-colhead .nch-n { white-space: nowrap; }

/* ===== drag to reorder (sidebar) ===== */
.nav-colhead[draggable=true], .nav-course-row[draggable=true] { cursor: grab; }
.nav-colhead:active, .nav-course-row:active { cursor: grabbing; }
.nav-colwrap.dragging, .nav-group.dragging { opacity: .35; }
.nav-colwrap.drop-above, .nav-group.drop-above { box-shadow: 0 -3px 0 0 var(--accent, #ff5a36); border-radius: 2px; }
.nav-colwrap.drop-below, .nav-group.drop-below { box-shadow: 0 3px 0 0 var(--accent, #ff5a36); border-radius: 2px; }
.nav-group.drop-above, .nav-group.drop-below { --accent: #ff5a36; }

/* ===== lesson notes under the video ===== */
.lesson-text { margin-top: 16px; overflow: hidden; }
.lt-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 18px; text-align: left; font-size: 14px; }
.lt-head:hover { background: var(--surface2); }
.lt-head > span:first-child { color: var(--accent); font-size: 18px; display: grid; }
.lt-meta { font-size: 12px; margin-left: 4px; }
.lt-chev { margin-left: auto; color: var(--faint); font-size: 16px; display: grid; transition: transform .25s; }
.lesson-text.closed .lt-chev { transform: rotate(-90deg); }
.lt-body { padding: 4px 24px 24px; border-top: 1px solid var(--border); max-height: 4000px; }
.lesson-text.closed .lt-body { display: none; }
.ltext { max-width: 76ch; margin: 16px auto 0 0; font-size: 15px; line-height: 1.75; color: #d6d6e2; }
.ltext p { margin: 0 0 14px; }
.ltext h4 { font-size: 15.5px; font-weight: 700; color: var(--text); margin: 26px 0 8px; letter-spacing: -.01em; padding-left: 12px; border-left: 3px solid var(--accent); }
.ltext h4:first-child { margin-top: 4px; }
.ltext ul { margin: 0 0 16px; padding-left: 4px; list-style: none; }
.ltext li { position: relative; padding: 6px 0 6px 24px; }
.ltext li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.ltext strong { color: var(--text); font-weight: 650; }

/* ===== backup card ===== */
.backup-card { padding: 20px 24px; }
.bk-top { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.bk-top code { background: var(--surface3); padding: 1px 7px; border-radius: 6px; font-size: 12px; color: var(--text); word-break: break-all; }
.bk-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.bk-row { display: flex; align-items: center; gap: 14px; padding: 8px 4px; border-top: 1px solid var(--border); font-size: 13px; flex-wrap: wrap; }

/* ===== Music Tab Search ===== */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 18px; }
.segbtn { padding: 8px 18px; border-radius: 9px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; transition: .15s; }
.segbtn:hover { color: var(--text); }
.segbtn.on { background: var(--grad); color: #fff; }
.segbtn .cnt { background: rgba(255, 255, 255, .15); border-radius: 99px; padding: 0 8px; font-size: 11.5px; }
.tsform { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border2); border-radius: 16px; padding: 8px 8px 8px 16px; transition: border-color .15s, box-shadow .15s; }
.tsform:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tsicon { font-size: 20px; color: var(--accent); display: grid; }
.tsearch { flex: 1; background: transparent; border: 0; outline: 0; font-size: 17px; padding: 8px 4px; min-width: 0; }
.tsearch::-webkit-search-cancel-button { filter: invert(.7); }
.recent, .extlinks { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; }
.recent .chip { cursor: pointer; border: 0; }
.recent .chip:hover { color: var(--text); background: var(--surface3); }
.chip.link { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip.link:hover { color: var(--text); background: var(--surface3); }
.tresults { margin-top: 20px; }
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 8px; }
.tip { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; color: var(--muted); font-size: 13.5px; }
.tip b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.tcard { display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin-bottom: 12px; flex-wrap: wrap; transition: border-color .15s, transform .15s; }
.tcard:hover { border-color: var(--border2); }
.tcover { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: rgba(255, 255, 255, .92); flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.tcover.sm { width: 48px; height: 48px; font-size: 21px; border-radius: 12px; }
.tmain, .fmain { flex: 1; min-width: 220px; }
.tt { font-weight: 700; font-size: 16px; letter-spacing: -.01em; line-height: 1.25; }
.ta { color: var(--muted); font-size: 13.5px; }
.tchips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.tact { display: flex; align-items: center; gap: 10px; }
.star { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; color: var(--faint); border: 1px solid var(--border2); transition: .15s; }
.star:hover { color: var(--amber); border-color: var(--amber); }
.star.on { color: #1b1200; background: var(--amber); border-color: var(--amber); }
.tmore { width: 100%; text-align: left; color: var(--faint); font-size: 12.5px; padding: 6px 2px 0; }
.tmore:hover { color: var(--text); }
.ttracks { width: 100%; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.trow { display: flex; align-items: center; gap: 12px; padding: 7px 10px; background: var(--surface2); border-radius: 9px; font-size: 13px; }
.trow .tk { width: 52px; font-weight: 700; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.trow .tn { flex: 1; min-width: 0; }
.trow .tn small { color: var(--faint); }
.favbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.favbar .favq { flex: 1; min-width: 220px; background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; padding: 9px 14px; outline: 0; }
.favbar .favq:focus { border-color: var(--accent); }
.favbar select, .tsel { background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; padding: 8px 10px; color: var(--text); font-size: 13px; }
.tsel { padding: 5px 8px; border-radius: 8px; max-width: 170px; }
.favrow { display: flex; gap: 16px; padding: 16px 18px; margin-bottom: 12px; align-items: flex-start; flex-wrap: wrap; }
.stat-btns { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.sb { padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }
.sb:hover { color: var(--text); }
.sb.on.want { background: rgba(90, 169, 255, .16); color: #8ec4ff; border-color: rgba(90, 169, 255, .5); }
.sb.on.learning { background: rgba(255, 180, 59, .16); color: var(--amber); border-color: rgba(255, 180, 59, .5); }
.sb.on.nailed { background: var(--green-soft); color: var(--green); border-color: rgba(53, 208, 127, .5); }
.fnotes { width: 100%; margin-top: 12px; min-height: 70px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; resize: vertical; outline: 0; }
.fnotes:focus { border-color: var(--accent); }
.fact { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 150px; }
.fact .btn.on { background: var(--accent-soft); border-color: var(--accent); }
.setgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.setcard { padding: 16px 18px; }
.sethead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.setname { background: transparent; border: 0; border-bottom: 1px dashed transparent; font-size: 17px; font-weight: 700; outline: 0; flex: 1; min-width: 120px; letter-spacing: -.01em; }
.setname:hover, .setname:focus { border-bottom-color: var(--border2); }
.setrow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--border); }
.setrow .sm { flex: 1; min-width: 0; }
.setrow .tt { font-size: 14px; }
.addsong { margin-top: 12px; max-width: 100%; width: 100%; }
[hidden] { display: none !important; }

/* ===== in-app tab videos ===== */
.ytdock-host:not(:empty) { margin-bottom: 20px; }
.ytdock { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr); gap: 0; overflow: hidden; border-color: var(--border2); }
.ytleft { padding: 0; background: #000; min-width: 0; }
.ytframe { position: relative; aspect-ratio: 16 / 9; background: #000; }
.ytframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ytempty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; color: var(--muted); padding: 20px; }
.ytempty b { color: var(--text); }
.ytmsg { background: rgba(255, 90, 54, .12); border-top: 1px solid rgba(255, 90, 54, .4); padding: 10px 16px; font-size: 13px; }
.ytmsg a { text-decoration: underline; color: var(--accent); }
.ytctrl { background: var(--surface); padding: 12px 16px 14px; }
.ytctrl .crow { align-items: center; }
.ytchip { padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--surface2); color: var(--muted); border: 1px solid var(--border); margin-left: 3px; }
.ytchip:hover { color: var(--text); }
.ytchip.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.ytrate { min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.ytright { padding: 16px 18px; background: var(--surface); border-left: 1px solid var(--border); min-width: 0; max-height: 640px; overflow-y: auto; }
.ythead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ytlabel { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 14px 0 8px; }
.ytvids { display: flex; flex-direction: column; gap: 6px; }
.ytvid { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); cursor: pointer; transition: border-color .15s; }
.ytvid:hover { border-color: var(--border2); }
.ytvid.on { border-color: var(--accent); background: var(--accent-soft); }
.ytvid img { width: 78px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; background: #000; }
.ytvid .vt { flex: 1; min-width: 0; line-height: 1.3; }
.ytvid .vt b { display: block; font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ytvid .vt small { color: var(--faint); font-size: 11.5px; }
.ytvids.res { margin-top: 10px; }
.yturl-row { display: flex; gap: 8px; }
.yturl { flex: 1; min-width: 0; background: var(--surface2); border: 1px solid var(--border2); border-radius: 9px; padding: 8px 12px; outline: 0; font-size: 13px; }
.yturl:focus { border-color: var(--accent); }
.ythint { font-size: 12px; margin-top: 10px; line-height: 1.55; }
@media (max-width: 1000px) { .ytdock { grid-template-columns: 1fr; } .ytright { border-left: 0; border-top: 1px solid var(--border); max-height: none; } }
.ytleft { background: var(--surface); }

/* ===== sidebar sub link ===== */
.nav-sub { display: block; margin: -2px 0 2px 42px; padding: 5px 12px; border-radius: 8px; font-size: 12.5px; color: var(--faint); }
.nav-sub:hover { color: var(--text); background: var(--surface); }
.nav-sub.active { color: var(--text); background: var(--accent-soft); }

/* ===== How to read tab ===== */
.guide { max-width: 1280px; }
.ghero { position: relative; padding: 30px 34px; border-radius: 20px; background: radial-gradient(640px 240px at 100% 0, rgba(255, 90, 54, .2), transparent 70%), var(--surface); border: 1px solid var(--border); margin-bottom: 26px; overflow: hidden; }
.ghero .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.ghero h1 { font-size: 36px; }
.glead { max-width: 70ch; color: #cfcfdc; font-size: 16px; line-height: 1.65; margin: 12px 0 16px; }
.gchips { display: flex; gap: 8px; flex-wrap: wrap; }
.gchips .chip { font-size: 13px; padding: 5px 14px; }
.gtools { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.glayout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 36px; align-items: start; }
.gtoc { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 6px; }
.gtoc-h { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.gtoc-a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-size: 13.5px; border-left: 2px solid var(--border); border-radius: 0 8px 8px 0; transition: .15s; }
.gtoc-a.sub { margin-left: 12px; font-size: 12.5px; padding: 4px 12px; }
.gtoc-a:hover { color: var(--text); background: var(--surface); }
.gtoc-a.on { color: var(--text); border-left-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.gsec { margin-bottom: 52px; scroll-margin-top: 20px; }
.gsec > h2 { font-size: 26px; letter-spacing: -.02em; }
.gsub { color: var(--muted); margin: 4px 0 20px; }
.gp { max-width: 74ch; line-height: 1.75; color: #d2d2de; margin: 14px 0; font-size: 15px; }
.gp strong, .gtext strong { color: var(--text); }
.gp code, .gcap code { background: var(--surface3); padding: 1px 7px; border-radius: 6px; font-size: 12.5px; }
.ggroup { margin: 34px 0 14px; font-size: 17px; padding-left: 12px; border-left: 3px solid var(--accent); scroll-margin-top: 20px; }
.gsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.gstep { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.gstep b { font-size: 16px; }
.gstep span { color: var(--muted); font-size: 14px; line-height: 1.6; }
.gnum { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.gfig { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin: 14px 0; overflow: hidden; }
.gscroll { overflow-x: auto; padding: 8px 10px 0; background: #0f0f15; }
.gbar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.gcap { color: var(--muted); font-size: 13px; line-height: 1.55; flex: 1; min-width: 200px; }
.gplay { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12.5px; border: 1px solid transparent; transition: .15s; }
.gplay:hover { border-color: var(--accent); }
.gplay.on { background: var(--accent); color: #fff; }
.tabsvg { display: block; max-width: none; }
.tabsvg .ln { stroke: #4b4b63; stroke-width: 1.1; }
.tabsvg .bar { stroke: #8a8aa3; stroke-width: 1.3; }
.tabsvg .bar.thick { stroke-width: 3.4; stroke: #c4c4d6; }
.tabsvg .rdot { fill: #c4c4d6; }
.tabsvg .sn { fill: #8f8fa8; font: 600 12px Inter, sans-serif; }
.tabsvg .nb { fill: #0f0f15; }
.tabsvg .fret { fill: #f4f4fa; font: 700 14px 'Cascadia Mono', Consolas, 'Courier New', monospace; }
.tabsvg .fxs { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; }
.tabsvg .fxs.dash { stroke-dasharray: 4 3; }
.tabsvg .fxf { fill: var(--accent); }
.tabsvg .fxl { fill: var(--accent); font: 700 11.5px Inter, sans-serif; }
.tabsvg .fxl.big { font-size: 14px; }
.tabsvg .cnt { fill: #9a9ab3; font: 600 12px Inter, sans-serif; }
.tabsvg .ts { fill: #e8e8f2; font: 800 18px Inter, sans-serif; }
.tabsvg .stem, .tabsvg .beam { stroke: #d6d6e4; stroke-width: 1.7; }
.tabsvg .beam { stroke-width: 3.2; stroke-linecap: butt; }
.tabsvg .rst { fill: none; stroke: #d6d6e4; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabsvg .rstf { fill: #d6d6e4; }
.tabsvg .playhead { stroke: #35d07f; stroke-width: 2; }
.tabsvg .nh { fill: #e8e8f2; stroke: #e8e8f2; stroke-width: 1.5; }
.tabsvg .nh.o { fill: none; }
.tabsvg .lad-n { fill: #e8e8f2; font: 700 13px Inter, sans-serif; }
.tabsvg .lad-b { fill: #9a9ab3; font: 500 12px Inter, sans-serif; }
.fbsvg .fb-s { stroke: #8a8aa3; }
.fbsvg .fb-f { stroke: #3c3c52; stroke-width: 1.5; }
.fbsvg .fb-nut { fill: #c4c4d6; }
.fbsvg .fb-n { fill: #8f8fa8; font: 600 11px Inter, sans-serif; }
.fbsvg .fb-dot { fill: #4a4a63; }
.fbsvg .fb-mk { fill: #2a2a3a; stroke: #6b6b86; stroke-width: 1.2; }
.fbsvg .fb-mk.hl { fill: var(--accent); stroke: var(--accent); }
.fbsvg .fb-t { fill: #fff; font: 700 10.5px Inter, sans-serif; }
.gcall { padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.6; margin: 14px 0; max-width: 78ch; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--blue); color: #cfcfdc; }
.gcall.tip { border-left-color: var(--green); }
.gcall.warn { border-left-color: var(--amber); }
.gcall b { color: var(--text); margin-right: 6px; text-transform: uppercase; font-size: 11.5px; letter-spacing: .06em; }
.gtable { margin: 12px 0 18px; overflow-x: auto; }
.gtable table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 14px; }
.gtable th { text-align: left; padding: 10px 16px; background: var(--surface2); color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.gtable td { padding: 10px 16px; border-top: 1px solid var(--border); color: #d2d2de; }
.gtable .mono { font-family: 'Cascadia Mono', Consolas, monospace; color: var(--text); }
.gtable .big { font-size: 17px; white-space: nowrap; }
.gtech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 16px; }
.gtech { padding: 16px 18px 18px; scroll-margin-top: 20px; }
.gtech h4 { font-size: 16.5px; margin-bottom: 4px; }
.gtech .gfig { margin: 10px 0; }
.gtext { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.6; color: #cfcfdc; }
.gtext b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.gtext p { margin: 0; }
.gtipline { background: var(--green-soft); border-radius: 10px; padding: 9px 12px; color: #bdeed3; font-size: 13.5px; }
.gtipline b { display: inline; color: var(--green); margin-right: 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.gsongs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 12.5px; }
.grhythm { margin-bottom: 34px; }
.grhythm h3 { font-size: 18px; margin-bottom: 6px; }
.gtips { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.gtip { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.gtip b { font-size: 15px; }
.gtip span { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.gcta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 20px 24px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 90, 54, .16), rgba(255, 45, 111, .08)); border: 1px solid rgba(255, 90, 54, .4); }
.gcheat { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gsym { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s; }
.gsym:hover { border-color: var(--accent); }
.gsym .sy { font: 700 22px 'Cascadia Mono', Consolas, monospace; color: var(--accent); min-height: 32px; }
.gsym b { font-size: 13.5px; }
.gsym span { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.gfoot { color: var(--faint); font-size: 12.5px; border-top: 1px solid var(--border); padding-top: 16px; max-width: 80ch; }
@media (max-width: 1050px) { .glayout { grid-template-columns: minmax(0, 1fr); } .gtoc { display: none; } .gtech-grid { grid-template-columns: minmax(0, 1fr); } .gtech { min-width: 0; } }
@media print {
  .sidebar, .seg, .gtoc, .gtools, .gplay, .gsongs, .gcta, .toasts { display: none !important; }
  .app { display: block; } .main { padding: 0; max-width: none; } body { background: #fff; color: #111; }
  .ghero, .gfig, .gtech, .gstep, .gtip, .gsym, .gcall, .gtable table { background: #fff !important; border-color: #ccc !important; }
  .gscroll { background: #fff; } .tabsvg .ln { stroke: #777; } .tabsvg .fret, .tabsvg .ts, .tabsvg .sn, .tabsvg .lad-n { fill: #000; } .tabsvg .nb { fill: #fff; }
  .tabsvg .stem, .tabsvg .beam, .tabsvg .rst, .tabsvg .rstf, .tabsvg .nh { stroke: #000; } .tabsvg .rstf { fill: #000; } .tabsvg .bar { stroke: #444; }
  h1, h2, h3, h4, b, .gp, .gtext, .gcap, .glead { color: #111 !important; } .gsec { page-break-inside: avoid; } .gtech { page-break-inside: avoid; }
}

.tfilters{display:grid;gap:8px;margin:12px 0 4px}
.tfilters .frow{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tfilters .flab{width:48px;font-size:12px}
.tfilters .fchip{cursor:pointer}
.tfilters .fchip.on{background:var(--accent,#ff7a1a);color:#fff;border-color:transparent}

.tbands{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:12px 0 2px}
.tbands .flab{width:62px;font-size:12px}
.fband{display:inline-flex;align-items:center;gap:2px;padding:0 4px 0 0}
.fband .bname,.fband .bx{background:none;border:0;color:inherit;font:inherit;cursor:pointer;padding:4px 6px}
.fband .bx{opacity:.6}.fband .bx:hover{opacity:1}
.tbadd{display:inline-flex;gap:6px}
.tbadd input{width:130px;padding:5px 9px;border-radius:999px;border:1px solid var(--line,#333);background:transparent;color:inherit;font:inherit;font-size:12.5px}
.bandstar{margin-left:8px;background:none;border:1px solid var(--line,#444);color:inherit;border-radius:999px;font-size:11px;padding:1px 8px;cursor:pointer;opacity:.7}
.bandstar.on{opacity:1;color:#ffc94d;border-color:#ffc94d}

.fgroup{margin:0 0 14px}
.fghead{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;border-bottom:1px solid var(--line,#333);color:inherit;font:inherit;padding:8px 2px;margin-bottom:10px;cursor:pointer;text-align:left}
.fghead b{font-size:15px}.fghead .car{width:14px;opacity:.7}.fghead .faint{margin-left:auto;font-size:12px}
.fgbody[hidden]{display:none}
.tcover.hasart{color:transparent;background-color:#222}

.maint .maintsec{padding:18px 20px;margin-bottom:16px}
.maintHead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.maintHead h2{margin:0;font-size:18px}
.maintright{display:flex;align-items:center;gap:10px}
.maintwhen{font-size:12px}
.maintblurb{margin:6px 0 14px;font-size:13.5px;line-height:1.6}
.maintvids{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.mvid{display:block;text-decoration:none;color:inherit;border:1px solid var(--line,#333);border-radius:12px;overflow:hidden}
.mvid:hover{border-color:var(--accent)}
.mvid img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#222}
.mvid span{display:block;padding:8px 10px;font-size:12.5px;line-height:1.4}

.maintnew{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line,#333)}
.maintnew[hidden]{display:none}
.maintnewhead{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.maintnewact{display:flex;gap:8px;flex-wrap:wrap}
.mnew{display:flex;flex-direction:column;gap:6px}
.mnew .mchan{font-size:11.5px}
.mnew .btn{align-self:flex-start}
.maintright{flex-wrap:wrap}

/* accounts */
.side-foot .side-admin { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 13px; }
.side-foot .side-admin.on, .side-foot .side-admin:hover { background: var(--surface2); color: var(--text); }
.navcnt.hot { background: var(--accent); color: #fff; }
.side-me { display: flex; align-items: center; gap: 6px; padding: 8px 10px 2px; border-top: 1px solid var(--border); margin-top: 6px; font-size: 12.5px; }
.side-me .me-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.side-me .me-b { color: var(--muted); font-size: 12px; padding: 2px 4px; }
.side-me .me-b:hover { color: var(--accent); }
.acc-in { width: 100%; background: var(--surface2); border: 1px solid var(--border2); border-radius: 9px; padding: 9px 11px; font-size: 13.5px; margin-bottom: 8px; color: var(--text); }
.adm { max-width: 980px; }
.adm-sec { padding: 18px 20px; margin-bottom: 16px; }
.adm-sec h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.adm-sec h3 { font-size: 14px; margin: 16px 0 4px; }
.adm-p { font-size: 12.5px; line-height: 1.55; margin: 2px 0 8px; }
.adm-user { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.adm-user.pending { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: rgba(255, 90, 54, .04); }
.adm-user.off { opacity: .65; }
.adm-uh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.adm-uh .faint { font-size: 12.5px; margin-top: 2px; }
.adm-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.adm-tag { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; margin-left: 8px; background: var(--surface3); color: var(--muted); vertical-align: 2px; }
.adm-tag.admin { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 45%, white); }
.adm-tag.off { background: rgba(255, 180, 59, .15); color: var(--amber); }
.adm-note { margin: 8px 0 0; font-size: 13px; color: #d6d6e0; font-style: italic; }
.adm-pick { margin-top: 10px; }
.adm-courses { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.adm-courses label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.adm-courses input { accent-color: var(--accent); }
.adm-col { padding-left: 4px; display: flex; flex-direction: column; gap: 4px; }
.adm-colh { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; margin-top: 6px; }
.adm-msg { font-size: 12.5px; margin-top: 6px; min-height: 16px; }
.adm-msg.ok { color: var(--green); } .adm-msg.err { color: #ff9a8a; }
.adm-temp { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface2); font-size: 13px; }
.adm-temp code { font: 700 15px ui-monospace, Consolas, monospace; color: var(--amber); }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 14px; }
.adm-f span { display: block; font-size: 12px; color: var(--muted); margin: 6px 0 4px; }

/* community */
.side-row { display: flex; gap: 2px; }
.side-row .side-admin { flex: 1; font-size: 12.5px; padding: 7px 8px; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.fb-types { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cm-page { max-width: none; }
.fb-card { padding: 14px 16px; margin-bottom: 12px; }
.fb-card.done { opacity: .7; }
.fb-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.fb-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--surface3); }
.fb-type.bug { background: rgba(255, 90, 54, .18); color: #ff9a8a; } .fb-type.idea { background: rgba(255, 180, 59, .15); color: var(--amber); }
.fb-st { margin-left: auto; font-size: 12px; color: var(--muted); } .fb-st.done { color: var(--green); } .fb-st.new { color: var(--accent); }
.fb-msg { font-size: 14px; line-height: 1.6; }
.fb-reply { margin: 8px 0 0 14px; padding: 8px 12px; border-left: 3px solid var(--border2); font-size: 13.5px; }
.fb-reply.admin { border-left-color: var(--accent); background: rgba(255, 90, 54, .05); }
.fb-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.fb-card textarea { margin-top: 10px; }
.cm-notes { padding: 6px; }
.cm-note { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 13.5px; }
.cm-note:hover { background: var(--surface2); } .cm-note.new { font-weight: 600; } .cm-note.new::before { content: '2'; color: var(--accent); margin-right: 6px; }
.cm-box { padding: 16px 18px; margin-top: 16px; }
.cm-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .cm-h h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; }
.cm { padding: 10px 0; border-top: 1px solid var(--border); }
.cm.reply { margin-left: 28px; border-top: 1px dashed var(--border); }
.cm.pending, .cm.hidden { opacity: .7; }
.cm.hl { background: rgba(255, 180, 59, .08); border-radius: 8px; padding-left: 8px; }
.cm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.cm-meta .adm-tag { margin-left: 0; }
.cm-at { font: 600 12px ui-monospace, Consolas, monospace; color: var(--accent); display: inline-flex; gap: 4px; align-items: center; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); }
.cm-text { font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-text a { color: var(--blue); }
.cm-yt { position: relative; display: block; margin-top: 8px; width: 240px; max-width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--border2); }
.cm-yt img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cm-yt span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.cm-ytf { display: block; margin-top: 8px; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.cm-acts { display: flex; gap: 12px; margin-top: 4px; }
.cm-acts button { font-size: 12.5px; color: var(--muted); } .cm-acts button:hover { color: var(--accent); } .cm-acts button.ok { color: var(--green); }
.cm-comp { margin-top: 10px; } .cm-comp.main { border-top: 1px solid var(--border); padding-top: 12px; }
.cm-comp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-ta { resize: vertical; min-height: 44px; }
.cm-empty { padding: 8px 0 4px; font-size: 13px; }
.cm-sub { font-size: 16px; margin: 18px 0 8px; }
.cm-mod { padding: 12px 14px; margin-bottom: 10px; }
.cm-reports { margin-top: 8px; font-size: 12.5px; color: var(--amber); }

/* forum + profiles */
.cm-name { font-weight: 700; color: var(--text); } .cm-name:hover { color: var(--accent); }
.side-me a.me-n:hover { color: var(--accent); }
.fm-search { margin: 0 0 12px; }
.fm-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fm-cat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; color: var(--text); transition: .15s; }
.fm-cat:hover { border-color: var(--accent); }
.fm-cat-t { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.fm-cat-d { font-size: 13px; } .fm-cat-n { font-size: 12px; margin-top: 4px; }
.fm-cat-l { font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.fm-cated { margin-top: 16px; padding: 12px 14px; } .fm-cated summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.fm-catrow { display: grid; grid-template-columns: 1fr 2fr auto auto; gap: 6px; align-items: start; margin-top: 8px; }
.fm-catrow .acc-in { margin: 0; }
.fm-list { padding: 4px; }
.fm-row { display: block; padding: 11px 12px; border-radius: 9px; color: var(--text); }
.fm-row + .fm-row { border-top: 1px solid var(--border); }
.fm-row:hover { background: var(--surface2); }
.fm-row.pending, .fm-row.hidden { opacity: .7; }
.fm-row-t { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 14.5px; } .fm-row-m { font-size: 12.5px; margin-top: 3px; }
.fm-new, .fm-reply { padding: 14px 16px; margin: 0 0 14px; } .fm-new h3 { font-size: 15px; margin-bottom: 8px; }
.fm-admin { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 12px; }
.fm-posts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.fm-post { padding: 14px 16px; } .fm-post.pending, .fm-post.hidden { opacity: .7; }
.fm-post-h { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.fm-av { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; flex: none; }
.fm-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.fm-mem { display: flex; gap: 10px; align-items: center; padding: 10px 12px; color: var(--text); } .fm-mem:hover { border-color: var(--accent); }
.fm-mem .adm-tag, .fm-prof h1 .adm-tag { margin-left: 8px; }
.fm-prof { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; margin-bottom: 12px; }
.fm-prof h1 { font-size: 24px; display: flex; align-items: center; }
.fm-bio { margin-top: 8px; font-size: 14px; }
.fm-edit { padding: 12px 14px; margin-bottom: 12px; } .fm-edit summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.fm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.fm-tile { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; } .fm-tile b { font-size: 20px; } .fm-tile span { font-size: 12px; color: var(--muted); }
.fm-courses, .fm-act { padding: 14px 16px; margin-bottom: 12px; } .fm-courses h3, .fm-act h3 { font-size: 15px; margin-bottom: 8px; }
.fm-course { margin: 8px 0; } .fm-course-t { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 4px; }
.fm-bar { height: 6px; border-radius: 6px; background: var(--surface3); overflow: hidden; } .fm-bar i { display: block; height: 100%; background: var(--grad); }
.fm-act-r { display: block; padding: 8px 6px; border-radius: 8px; color: var(--text); font-size: 13.5px; } .fm-act-r:hover { background: var(--surface2); }
.fm-act-r + .fm-act-r { border-top: 1px solid var(--border); }
.fm-snip { font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .fm-catrow { grid-template-columns: 1fr; } .fm-prof { flex-direction: column; } }

.fm-img { object-fit: cover; background: var(--surface3); }
.fm-picrow { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.fm-picacts { display: flex; gap: 14px; margin: -4px 0 10px 4px; }
.cm-link { font-size: 12.5px; color: var(--muted); } .cm-link:hover { color: var(--accent); }
.fm-picmod { display: flex; gap: 14px; align-items: flex-start; }
.side-me .fm-av { flex: none; }

.fm-acct { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; }
.side-me a.me-b:hover { color: var(--accent); }
.side-foot .side-me .me-b { flex: none; width: auto; margin: 0; padding: 3px 6px; border-radius: 6px; display: inline-flex; justify-content: center; background: none; }
.side-foot .side-me .me-b:last-child { margin-left: 2px; }
.side-foot .side-me .me-n { flex: 1 1 auto; min-width: 0; padding: 0 2px; }
.side-foot .side-me .me-b:hover { background: var(--surface2); }

/* forum v2 */
.fm2 { max-width: 1180px; }
.fm-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 14px;
  background: radial-gradient(600px 160px at 0% 0%, rgba(255, 90, 54, .16), transparent 70%), var(--surface); }
.fm-hero h1 { font-size: 26px; }
.fm-ttl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 22px !important; }
.fm-stats { display: flex; gap: 22px; }
.fm-stats div { display: flex; flex-direction: column; align-items: center; } .fm-stats b { font-size: 22px; } .fm-stats span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.fm-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.fm-searchwrap { flex: 1; min-width: 220px; position: relative; display: flex; align-items: center; color: var(--faint); }
.fm-searchwrap svg { position: absolute; left: 12px; }
.fm-search { width: 100%; background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; padding: 10px 12px 10px 36px; font-size: 14px; color: var(--text); }
.fm-search:focus { outline: none; border-color: var(--accent); }
.fm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .fm-layout { grid-template-columns: 1fr; } }
.fm-table { padding: 0; overflow: hidden; margin-bottom: 14px; }
.fm-th { padding: 10px 16px; background: var(--surface2); border-bottom: 1px solid var(--border); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fm-cols { display: grid; grid-template-columns: minmax(0, 1fr) 70px 70px 240px; gap: 12px; align-items: center; }
.fm-tcols { display: grid; grid-template-columns: minmax(0, 1fr) 70px 70px 170px; gap: 12px; align-items: center; }
.fm-c { text-align: center; }
.fm-catrow2, .fm-trow { padding: 14px 16px; color: var(--text); border-bottom: 1px solid var(--border); transition: background .12s; }
.fm-catrow2:last-child, .fm-trow:last-child { border-bottom: 0; }
.fm-catrow2:hover, .fm-trow:hover { background: rgba(255, 255, 255, .025); }
.fm-cat-main { display: flex; gap: 14px; align-items: center; min-width: 0; }
.fm-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: none; background: var(--surface2); border: 1px solid var(--border2); position: relative; }
.fm-icon.big { width: 58px; height: 58px; font-size: 28px; }
.fm-icon.new::after { content: ''; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.fm-cat-name { font-size: 15.5px; } .fm-cat-desc { font-size: 12.5px; margin-top: 2px; }
.fm-n { font-size: 15px; font-weight: 700; }
.fm-last { display: flex; gap: 8px; align-items: center; min-width: 0; font-size: 12.5px; }
.fm-last-i { min-width: 0; } .fm-last-i > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-last-t { display: block; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-last-t:hover { color: var(--accent); }
.fm-none { padding: 18px 16px; font-size: 13px; }
.fm-t-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.fm-t-i { min-width: 0; } .fm-t-i .faint { font-size: 12px; margin-top: 2px; }
.fm-t-title { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; font-size: 14.5px; }
.fm-trow.pinned { background: rgba(255, 180, 59, .04); }
.fm-trow.pending, .fm-trow.hidden { opacity: .7; }
.fm-pill { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--surface3); color: var(--muted); }
.fm-pill.pin { background: rgba(255, 180, 59, .16); color: var(--amber); }
.fm-side { display: flex; flex-direction: column; gap: 14px; }
.fm-box { padding: 14px 16px; } .fm-box h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.fm-mini { display: flex; gap: 9px; align-items: center; padding: 6px 4px; border-radius: 8px; color: var(--text); font-size: 13px; }
.fm-mini:hover { background: var(--surface2); } .fm-mini > div { min-width: 0; } .fm-mini .faint { font-size: 11.5px; }
.fm-mini-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-postgrid { display: grid; grid-template-columns: 150px minmax(0, 1fr); padding: 0; overflow: hidden; }
.fm-author { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 10px; background: var(--surface2); border-right: 1px solid var(--border); }
.fm-author .adm-tag { margin-left: 0; } .fm-author-m { font-size: 11.5px; }
.fm-body { padding: 14px 18px; display: flex; flex-direction: column; min-width: 0; }
.fm-post-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.fm-num { margin-left: auto; font-size: 12px; }
.fm-post.first { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.fm-text { font-size: 14.5px; line-height: 1.65; flex: 1; }
.fm-quote { margin: 6px 0 10px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--surface2); border-radius: 0 8px 8px 0; color: var(--muted); font-size: 13.5px; }
.fm-acts { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--border); align-items: center; }
.fm-like { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border2); font-size: 12.5px; color: var(--muted); }
.fm-like.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.fm-like.static { display: inline-block; }
.fm-reply.fm-postgrid .fm-body textarea { margin-bottom: 8px; }
.fm-new { padding: 16px 18px; margin-bottom: 14px; }
@media (max-width: 760px) {
  .fm-cols, .fm-tcols { grid-template-columns: minmax(0, 1fr) 54px; }
  .fm-cols > :nth-child(3), .fm-cols > :nth-child(4), .fm-tcols > :nth-child(3), .fm-tcols > :nth-child(4) { display: none; }
  .fm-postgrid { grid-template-columns: 1fr; } .fm-author { flex-direction: row; justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--border); padding: 10px 14px; }
  .fm-stats { gap: 14px; }
}
.fm-catrow { grid-template-columns: 56px 1fr 2fr auto auto; }
.fm-catrow .fm-ic { text-align: center; font-size: 18px; padding: 6px; }
@media (max-width: 640px) { .fm-catrow { grid-template-columns: 56px 1fr; } }
/* Community pages use the full content width like the rest of the app */
.fm2, .cm-page.fm, .cm-page.adm { max-width: none; }
.fm-layout { grid-template-columns: minmax(0, 1fr) 300px; }
@media (min-width: 1700px) { .fm-layout { grid-template-columns: minmax(0, 1fr) 340px; } .fm-cols { grid-template-columns: minmax(0, 1fr) 90px 90px 300px; } .fm-tcols { grid-template-columns: minmax(0, 1fr) 90px 90px 220px; } }

/* admin menu in the sidebar footer */
.side-admbox { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.side-admbox summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; color: var(--muted); font-size: 13px; border-radius: 10px; }
.side-admbox summary::-webkit-details-marker { display: none; }
.side-admbox summary:hover { background: var(--surface2); color: var(--text); }
.side-admbox summary .adm-chev { margin-left: auto; transition: transform .15s; }
.side-admbox[open] summary .adm-chev { transform: rotate(180deg); }
.side-admbox .adm-in { padding: 0 4px 6px; }

.bars .b em, .bars .b span { white-space: nowrap; line-height: 16px; }
/* each part keeps its own row, so hiding the values (30-day chart) can't push a bar up into the label row */
.bars .b em { grid-row: 1; } .bars .b i { grid-row: 2; } .bars .b span { grid-row: 3; }
@media (max-width: 600px) { .bars.many { gap: 3px; } .bars.many .b:nth-child(even) span { visibility: hidden; } } /* 30 day numbers don't fit side by side on a phone */
.bars.many .b em { display: none; } /* 30 bars are too narrow for values: hover a bar to see it */
.bars .b.today span { color: var(--text); font-weight: 700; }
.bars .b.future i { opacity: .35; }

/* guests */
.guest-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 18px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); font-size: 13px; line-height: 1.5; }
.guest-bar > span { color: var(--accent); display: grid; place-items: center; }
.guest-bar > div { flex: 1; }
.guest-bar .btn { white-space: nowrap; }
.side-guest { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; border: 1px solid var(--border); font-size: 12.5px; }
.side-guest .btn { justify-content: center; }
.side-guest .me-b { background: none; color: var(--faint); font-size: 12px; padding: 4px; }
@media (max-width: 640px) { .guest-bar { flex-direction: column; align-items: stretch; text-align: center; } }

/* welcome tour */
.tour-shade { position: fixed; inset: 0; z-index: 300; background: transparent; }
.tour-shade.on { background: rgba(0, 0, 0, .66); backdrop-filter: blur(2px); }
.tour-spot { position: fixed; z-index: 301; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .66), 0 0 0 2px var(--accent), 0 0 24px rgba(255, 90, 54, .45); pointer-events: none; transition: all .25s ease; }
.tour-card { position: fixed; z-index: 302; width: 340px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--border2); border-radius: 16px; padding: 18px 20px 16px; box-shadow: var(--shadow); transition: top .25s ease, left .25s ease; }
.tour-card.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: 420px; }
.tour-ic { font-size: 34px; line-height: 1; margin-bottom: 6px; }
.tour-step { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.tour-card h3 { font-size: 18px; margin: 4px 0 6px; }
.tour-card p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.tour-hint { margin-top: 8px; font-size: 12.5px !important; color: var(--faint) !important; }
.tour-dots { display: flex; gap: 5px; margin: 14px 0 12px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--surface3); }
.tour-dots i.done { background: color-mix(in srgb, var(--accent) 45%, var(--surface3)); }
.tour-dots i.on { background: var(--accent); width: 18px; border-radius: 9px; }
.tour-btns { display: flex; gap: 8px; align-items: center; }
.side-foot .side-tour { color: var(--faint); font-size: 12.5px; }

/* admin area tabs */
.adm-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-tabs .seg { margin: 0; }
.adm-tabs .segbtn .i { width: 15px; height: 15px; }
.side-foot .side-admin-main { margin-bottom: 6px; }

/* profile socials */
.fm-socials { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.fm-social { --sc: var(--muted); display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--border); font-size: 12.5px; max-width: 100%; }
.fm-social::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sc); flex: none; }
.fm-social b { font-weight: 700; }
.fm-social span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.fm-social:hover { border-color: var(--sc); }
.fm-socbox { margin-top: 14px; }
.fm-socedit { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 12px; }
.fm-socedit label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }

.guest-only { max-width: 560px; margin: 30px auto; padding: 30px; text-align: center; }
.guest-only .gi { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 24px; }
.guest-only h1 { font-size: 22px; margin-bottom: 8px; }
.guest-only p { line-height: 1.6; margin-bottom: 18px; }
.guest-only .gb { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* installed app + offline */
.fw-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
body.is-offline .sidebar .brand::after { content: 'offline'; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); border: 1px solid var(--amber); border-radius: 6px; padding: 1px 5px; margin-left: 4px; }
@media (display-mode: standalone) { body { padding-top: env(safe-area-inset-top); } }

/* your data / delete account */
.fm-data { flex-wrap: wrap; }
.fm-data a:not(.btn) { color: var(--accent); }
.fm-del .acc-in { width: 100%; margin-bottom: 8px; }
.btn.danger-solid { background: #d93636; color: #fff; border-color: transparent; }
.btn.danger-solid:hover { filter: brightness(1.1); }
.side-foot .side-priv { display: block; text-align: center; font-size: 11.5px; color: var(--faint); padding: 4px; }
.side-foot .side-priv:hover { color: var(--muted); }
.adm-tag.reset { background: rgba(255, 180, 59, .15); color: var(--amber); }
.guest-bar .gb { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.side-guest .btn + .btn { margin-top: 2px; }

/* community: guests, feedback ideas, start a thread */
.fm-guestnote { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); font-size: 13.5px; line-height: 1.55; }
.fm-guestnote .gi { font-size: 26px; }
.fm-guestnote > div { flex: 1; }
.fm-guestnote a:not(.btn) { color: var(--accent); font-weight: 600; }
.fm-guestnote.slim { padding: 10px 14px; font-size: 13px; }
.adm-tag.guest { background: rgba(90, 169, 255, .14); color: var(--blue); }
.cm-name.guest { color: var(--text); }
.fm-pickl { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; }
.fm-pickc { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--border); }
.fm-pickc:hover { border-color: var(--accent); }
.fm-pickc .faint { font-size: 12px; }
.fm-pill.tag { background: var(--surface3); color: var(--muted); }
.fm-pill.t-planned { background: rgba(90, 169, 255, .16); color: var(--blue); }
.fm-pill.t-in-progress { background: rgba(255, 180, 59, .16); color: var(--amber); }
.fm-pill.t-done { background: var(--green-soft); color: var(--green); }
.fm-pill.t-under-review { background: rgba(139, 123, 255, .16); color: #a99bff; }
.fm-pill.t-not-planned { background: var(--surface3); color: var(--faint); }
.fm-votes { margin-left: 8px; font-weight: 700; color: var(--accent); }
.fm-fbbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12.5px; }
.fm-fbbar .seg { margin: 0; }
.fm-fbhead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 12px; flex-wrap: wrap; }
.fm-vote { font-weight: 800; }
.fm-vote.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }

/* shared hover box (tipOn in app.js): stats bars, consistency squares */
.fw-tip { position: fixed; z-index: 400; box-sizing: border-box; width: max-content; min-width: 180px; max-width: min(300px, calc(100vw - 16px)); overflow: hidden; overflow-wrap: anywhere; padding: 10px 12px 11px; border-radius: 12px; pointer-events: none;
  background: color-mix(in srgb, var(--surface2) 94%, transparent); border: 1px solid var(--border2); box-shadow: var(--shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12.5px; line-height: 1.45; animation: fwTipIn .12s ease-out; }
.fw-tip::after { content: ''; position: absolute; left: var(--ax, 50%); bottom: -6px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg);
  background: inherit; border: 1px solid var(--border2); border-top: 0; border-left: 0; }
.fw-tip.below::after { bottom: auto; top: -6px; transform: rotate(225deg); }
.fw-tip-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); }
.fw-tip-head b { color: var(--text); font-weight: 600; min-width: 0; }
.fw-tip-tag { flex: none; }
.fw-tip-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.fw-tip-big { font-size: 20px; font-weight: 800; margin: 3px 0 2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fw-tip-big.none { font-size: 14px; font-weight: 600; background: none; color: var(--faint); }
.fw-tip-list { margin-top: 6px; padding-top: 7px; border-top: 1px solid var(--border); display: grid; gap: 3px; }
.fw-tip-list div { display: flex; justify-content: space-between; gap: 12px; min-width: 0; }
.fw-tip-list span { flex: 1 1 auto; min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-tip-list em { flex: none; font-style: normal; font-variant-numeric: tabular-nums; color: var(--text); }
@keyframes fwTipIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.bars .b, .heat i { cursor: default; }
.bars .b:hover i:not(.zero) { filter: brightness(1.18); }
.heat i:hover { outline: 2px solid var(--text); outline-offset: 1px; }
