:root { color-scheme: dark; --bg: #131110; --panel: #1c1a18; --panel2: #262321; --line: #34302c; --line2: #4a443d; --text: #f4f1ec; --dim: #c9c3ba; --accent: #f97316; --on-accent: #1a1209; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn { display: inline-block; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; background: transparent; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.crumbs { font-size: 14px; color: var(--dim); margin: 2px 0 10px; }
.crumbs a { color: var(--dim); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center; }
.filters[hidden] { display: none; }
.filters .sep { flex-basis: 100%; height: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: var(--panel); color: var(--dim); border-radius: 999px; padding: 4px 12px 4px 6px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip.mv { padding-left: 12px; }
.chip img { width: 22px; height: 22px; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.menu { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.frame { position: relative; background: var(--panel); border: 2px solid var(--line2); border-radius: 12px; box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--line), 0 14px 40px rgba(0, 0, 0, 0.4); }
.frame > h2.title { margin: 0; padding: 12px 18px 8px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: flex; justify-content: space-between; gap: 8px; }
.title .count { color: var(--dim); letter-spacing: 0.04em; text-transform: none; font-weight: 600; }
#inv { position: sticky; top: 12px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; padding: 6px 14px 16px; max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--dim); text-decoration: none; font-size: 12px; line-height: 1.2; text-align: center; min-height: 92px; }
.slot:hover { border-color: var(--line2); color: var(--text); }
.slot[aria-current="page"] { border-color: var(--accent); background: #2b2118; color: var(--text); box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgba(249, 115, 22, 0.35); }
.slot[hidden] { display: none; }
.slot i { display: block; width: 52px; height: 52px; background-image: url(/exercises/icons.png); background-repeat: no-repeat; flex: none; }
.slot span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.none { padding: 0 18px 18px; color: var(--dim); margin: 0; }
#sheet { padding: 0 20px 22px; min-width: 0; }
#sheet h1 { margin: 16px 0 6px; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.01em; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 16px; align-items: start; margin-bottom: 4px; }
.head p { margin: 0 0 10px; color: var(--dim); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.tags li { border: 1px solid var(--line2); border-radius: 6px; padding: 1px 9px; font-size: 13px; color: var(--dim); background: var(--panel2); }
.sprite { margin-top: 16px; width: 120px; height: 120px; border: 1px solid var(--line2); border-radius: 10px; background-color: var(--panel2); background-repeat: no-repeat; }
.block { margin-top: 22px; }
.block h2 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.worked { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.poster { display: flex; gap: 6px; }
.poster span { position: relative; display: block; }
.poster img { display: block; }
.poster img + img { position: absolute; left: 0; top: 0; }
.worked ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.worked li { color: var(--dim); }
.worked li.main { color: var(--text); font-weight: 700; }
.worked li img { width: 22px; height: 22px; vertical-align: -6px; margin-right: 6px; }
ol.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding-left: 38px; min-height: 28px; display: flex; align-items: center; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.avoid { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--panel2); border-radius: 0 8px 8px 0; color: var(--dim); }
.avoid b { color: var(--text); }
.alts { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.alts a { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--text); text-decoration: none; font-weight: 600; }
.alts i { display: block; width: 40px; height: 40px; flex: none; background-image: url(/exercises/icons.png); background-repeat: no-repeat; }
.alts a:hover { border-color: var(--accent); }
.actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.pitch { margin-top: 22px; padding: 14px 16px; border: 1px dashed var(--line2); border-radius: 10px; color: var(--dim); }
.pitch b { color: var(--text); }
.groups h2 { margin: 18px 0 6px; font-size: 15px; letter-spacing: normal; text-transform: none; color: var(--text); }
.groups ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.groups a { color: var(--dim); }
footer { padding: 28px 0 44px; color: var(--dim); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 28px; }
footer a { color: var(--dim); }
@media (max-width: 860px) {
  .menu { grid-template-columns: 1fr; }
  #inv { position: static; }
  .slots { max-height: 260px; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .filters .sep { display: none; }
  .chip { flex: none; }
}
@media (max-width: 480px) { .nav .btn.signin { display: none; } .head { grid-template-columns: minmax(0, 1fr) 96px; } .sprite { width: 96px; height: 96px; } #sheet { padding: 0 14px 18px; } }
