/* Score library page — reuses the colour tokens from styles.css */
body.scores-page { min-height: 100vh; }
.sl-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.sl-top .brand { text-decoration: none; }
.sl-tabs { display: inline-flex; gap: 4px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.sl-tabs a { padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; }
.sl-tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

.sl-main { max-width: 1180px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 52px) 80px; }
.sl-head h1 { font: 500 clamp(32px, 5vw, 48px)/1.05 "Fraunces", Georgia, serif; letter-spacing: -.02em; }
.sl-lead { margin-top: 10px; color: var(--muted); max-width: 62ch; }
.sl-lead a, .sl-foot a { color: var(--ink); text-underline-offset: 3px; }

.sl-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; margin: 26px 0 16px; }
.sl-search { flex: 1 1 260px; margin: 0; }
.sl-select { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sl-select select {
  min-width: 150px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 14px;
}
.sl-count { margin-left: auto; font-size: 13px; color: var(--muted); }

.sl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.score-card {
  display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); transition: transform .12s, border-color .15s, box-shadow .15s;
}
.score-card:hover { transform: translateY(-2px); border-color: var(--muted); box-shadow: var(--shadow); }
.sc-title { font: 500 17px/1.3 "Fraunces", Georgia, serif; }
.sc-meta { font-size: 13px; color: var(--muted); }
.sc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.chip.lic-publicdomain { background: color-mix(in srgb, var(--l1) 16%, transparent); color: var(--l1); }
.chip.lic-ccasa, .chip.lic-cca { background: color-mix(in srgb, var(--l2) 18%, transparent); color: var(--l2); }
.sl-more { display: grid; place-items: center; margin-top: 22px; }
.sl-empty { text-align: center; color: var(--muted); margin-top: 30px; }
.sl-foot { margin-top: 36px; font-size: 13px; color: var(--muted); max-width: 70ch; }

/* ---------- viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr auto auto; background: #0e0a1d; color: #f1eefc;
}
.viewer[hidden] { display: none; }
.vw-bar { display: flex; align-items: center; gap: 8px; padding: max(8px, env(safe-area-inset-top)) 12px 8px; }
.vw-bottom { justify-content: center; padding: 8px 12px; gap: 14px; }
.vw-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.vw-title b { font: 500 16px/1.25 "Fraunces", Georgia, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-title span { font-size: 12.5px; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-btn {
  min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 10px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .08); color: inherit; text-decoration: none; touch-action: manipulation;
}
.vw-btn:hover { background: rgba(255, 255, 255, .16); }
.vw-text { font: 600 14px/1 "Inter", sans-serif; }
.vw-page { font-variant-numeric: tabular-nums; font-size: 14px; min-width: 90px; text-align: center; }

.vw-stage { position: relative; overflow: auto; display: grid; place-items: start center; padding: 6px; -webkit-overflow-scrolling: touch; }
.vw-stage.fit-page { place-items: center; overflow: hidden; }
.vw-stage canvas { background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); max-width: none; }
.vw-msg { position: absolute; inset: 0; display: grid; place-items: center; color: #f1eefc; font-size: 15px; padding: 24px; text-align: center; }
.vw-nav { position: absolute; top: 0; bottom: 0; width: 16%; max-width: 100px; border: 0; background: transparent; display: flex; align-items: center; z-index: 3; padding: 0 8px; color: #fff; -webkit-tap-highlight-color: transparent; }
.vw-prev { left: 0; justify-content: flex-start; }
.vw-next { right: 0; justify-content: flex-end; }
.vw-nav span { width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .35); display: grid; place-items: center; transition: opacity .15s; }
.vw-nav:disabled { opacity: 0; pointer-events: none; }
.vw-credit { margin: 0; padding: 6px 14px max(10px, env(safe-area-inset-bottom)); font-size: 11.5px; line-height: 1.4; opacity: .7; text-align: center; }
.vw-credit a { color: inherit; }

@media (max-width: 700px) {
  .sl-tabs a { padding: 6px 10px; font-size: 13px; }
  .sl-select select { min-width: 0; width: 100%; }
  .sl-select { flex: 1 1 140px; }
  .sl-count { margin-left: 0; width: 100%; }
}
@media print { .viewer { display: none !important; } }

.chip-score { background: color-mix(in srgb, var(--l3) 16%, transparent); color: var(--l3); }
.chip-arr { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.score-card.is-arr { border-style: dashed; }

/* ---------- my scores (device-only) ---------- */
.sl-mine { margin-top: 24px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.mine-head h2 { font: 500 20px/1.2 "Fraunces", Georgia, serif; }
.mine-head p { margin-top: 4px; font-size: 13.5px; color: var(--muted); max-width: 70ch; }
.mine-head b { color: var(--ink); }
.mine-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.file-btn { cursor: pointer; }
.mine-note { font-size: 13px; color: var(--accent); }
.mine-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; margin-top: 12px; }
.mine-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px; padding: 6px 8px 6px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.mine-open { text-align: left; display: grid; gap: 2px; padding: 6px 10px; border: 0; background: transparent; border-radius: 9px; min-width: 0; }
.mine-open:hover { background: var(--surface-2); }
.mine-open .sc-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-act { padding: 6px 8px; border: 0; background: transparent; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mine-act:hover { background: var(--surface-2); color: var(--ink); }
.mine-empty { margin-top: 10px; font-size: 13px; color: var(--muted); }
.mine-empty[hidden] { display: none; }

/* ---------- refined library (2nd pass) ---------- */
.sl-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.sl-main { max-width: 1120px; }
.sl-head { padding: clamp(28px, 6vw, 72px) 0 8px; position: relative; }
.sl-head::before { /* faint five-line staff behind the hero */
  content: ""; position: absolute; inset: 14% 0 auto 0; height: 120px; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 24px); mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent);
}
.sl-head > * { position: relative; }
.sl-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.sl-head h1 { margin-top: 14px; font: 400 clamp(40px, 7.4vw, 76px)/1.02 "Fraunces", Georgia, serif; letter-spacing: -.028em; font-variation-settings: "opsz" 144; }
.sl-head h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.sl-lead { margin-top: 18px; font-size: clamp(15px, 1.6vw, 17.5px); max-width: 54ch; }
.sl-search { margin: 30px 0 0; max-width: 680px; }
.sl-search input {
  width: 100%; height: 58px; padding: 0 20px 0 52px; border-radius: 999px; font-size: 17px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.sl-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent), var(--shadow); }
.sl-search svg { left: 20px; width: 20px; height: 20px; }
.sl-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: all .15s; }
.pill:hover { color: var(--ink); border-color: var(--muted); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sl-stats { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.sl-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.sl-stats dd { margin: 0; font: 400 30px/1 "Fraunces", Georgia, serif; letter-spacing: -.02em; }
.sl-stats dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.sl-filters { margin: 30px 0 14px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.sl-select select { background: transparent; border-radius: 999px; padding: 8px 14px; }
.sl-count { font-weight: 600; color: var(--ink); }

.score-card { position: relative; gap: 5px; padding: 18px 20px 16px; border-radius: 18px; overflow: hidden; }
.score-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line); transition: background .15s; }
.score-card:hover::before { background: var(--accent); }
.score-card.is-arr::before { background: var(--accent); }
.sc-by { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sc-title { font: 500 19px/1.25 "Fraunces", Georgia, serif; letter-spacing: -.01em; }
.sc-tags { margin-top: 8px; }
.chip { font-weight: 500; }
.chip.lic-ccasa, .chip.lic-cca { background: color-mix(in srgb, var(--l2) 18%, transparent); color: var(--l2); }
.sl-list { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.sl-mine { margin: 44px 0 0; padding: 0; border-style: solid; border-radius: 18px; }
.sl-mine summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding: 16px 20px; }
.sl-mine summary::-webkit-details-marker { display: none; }
.sl-mine summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); }
.sl-mine[open] summary::after { content: "–"; }
.mine-title { font: 500 18px/1.2 "Fraunces", Georgia, serif; }
.mine-sub { font-size: 13px; color: var(--muted); }
.sl-mine > :not(summary) { margin-left: 20px; margin-right: 20px; }
.sl-mine > :last-child { margin-bottom: 18px; }
.sl-foot { margin-top: 28px; }

@media (max-width: 700px) {
  .sl-search input { height: 52px; font-size: 16px; }
  .sl-pills { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none; }
  .sl-pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; }
  .sl-stats { gap: 8px 26px; }
  .sl-stats dd { font-size: 24px; }
  .sl-list { grid-template-columns: 1fr; }
}
.sl-mine { margin-bottom: 30px; }
.score-card { align-content: start; }
.sc-tags { align-items: center; align-content: flex-start; }
.sc-tags .chip { line-height: 1.5; }
@media (max-width: 700px) {
  .sl-stats { flex-wrap: nowrap; gap: 8px 22px; }
  .sl-stats dt { font-size: 10.5px; letter-spacing: .04em; }
}

/* credits page */
.credits h1 { font: 400 clamp(34px, 5vw, 52px)/1.05 "Fraunces", Georgia, serif; letter-spacing: -.02em; margin-top: 24px; }
.credits h2 { font: 500 24px/1.2 "Fraunces", Georgia, serif; margin: 38px 0 12px; }
.credits .sl-search { margin: 12px 0 0; }
.cr-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cr-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cr-table th, .cr-table td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cr-table th { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cr-table tr:last-child td { border-bottom: 0; }
.cr-arr { padding-left: 18px; font-size: 13.5px; color: var(--muted); } .cr-arr li { margin: 6px 0; } .cr-arr b { color: var(--ink); }
.credits a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- covers, discover rails, tiles ---------- */
.cover { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 6px 16px -8px rgba(15, 27, 45, .5), 0 1px 0 rgba(255, 255, 255, .15) inset; }
.score-card { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 18px 14px 14px; }
.score-card::before { display: none; }
.score-card .cover { width: 62px; }
.sc-body { display: grid; gap: 4px; min-width: 0; align-content: start; }
.score-card.is-arr { border-style: solid; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

#discover[hidden] { display: none; }
.ds { margin-top: 44px; }
.ds-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 16px; }
.ds-head h2, .ds-title { font: 500 clamp(22px, 3vw, 28px)/1.15 "Fraunces", Georgia, serif; letter-spacing: -.015em; }
.ds-head p { font-size: 14px; color: var(--muted); }
.ds-title { margin: 8px 0 16px; }

.rail { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 18px; margin: 0 calc(-1 * clamp(16px, 4vw, 52px)); padding-inline: clamp(16px, 4vw, 52px); scroll-snap-type: x proximity; scrollbar-width: thin; }
.rail-card { flex: none; width: 150px; display: grid; gap: 4px; text-align: left; border: 0; background: transparent; padding: 0; scroll-snap-align: start; }
.rail-card .cover.big { width: 150px; border-radius: 10px; transition: transform .2s, box-shadow .2s; }
.rail-card:hover .cover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 18px 28px -14px rgba(15, 27, 45, .6); }
.rc-title { margin-top: 8px; font: 500 16px/1.25 "Fraunces", Georgia, serif; }
.rc-sub { font-size: 12.5px; color: var(--muted); }

.inst-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.inst-tile { display: grid; gap: 2px; text-align: left; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: transform .15s, border-color .15s, background .15s; }
.inst-tile svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 14px; }
.inst-tile b { font: 500 17px/1.2 "Fraunces", Georgia, serif; }
.inst-tile span { font-size: 12.5px; color: var(--muted); }
.inst-tile:hover { transform: translateY(-3px); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }

.comp-rail { gap: 22px; }
.comp-card { flex: none; width: 104px; display: grid; justify-items: center; gap: 3px; text-align: center; border: 0; background: transparent; padding: 0; scroll-snap-align: start; }
.mono { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 500 36px/1 "Fraunces", Georgia, serif; box-shadow: 0 10px 20px -10px rgba(15, 27, 45, .55), 0 0 0 3px var(--bg), 0 0 0 4px var(--line); transition: transform .2s; }
.comp-card:hover .mono { transform: scale(1.06); }
.comp-card b { margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.comp-card span:last-child { font-size: 12px; color: var(--muted); }

@media (max-width: 700px) {
  .ds { margin-top: 34px; }
  .rail-card, .rail-card .cover.big { width: 128px; }
  .inst-tiles { grid-template-columns: repeat(2, 1fr); }
  .inst-tile { padding: 14px; }
  .score-card { grid-template-columns: 54px minmax(0, 1fr); gap: 14px; }
  .score-card .cover { width: 54px; }
}

.period-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.period-tile { position: relative; overflow: hidden; display: grid; gap: 2px; align-content: end; min-height: 112px; padding: 16px; border: 0; border-radius: 18px; color: #fff; text-align: left; transition: transform .15s; }
.period-tile::before { content: ""; position: absolute; inset: 0; opacity: .5; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .16) 0 1px, transparent 1px 12px); mask-image: linear-gradient(135deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%); }
.period-tile:hover { transform: translateY(-3px); }
.period-tile b { position: relative; font: 500 21px/1.1 "Fraunces", Georgia, serif; }
.period-tile span { position: relative; font-size: 12.5px; opacity: .85; }
.form-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form-chips .pill i { font-style: normal; opacity: .55; margin-left: 4px; font-size: 12px; }

/* hero headline typeface: clean capitals */
.sl-head h1 { font-family: "Inter", system-ui, sans-serif; font-weight: 600; text-transform: uppercase; font-size: clamp(24px, 4.2vw, 42px); line-height: 1.15; letter-spacing: .04em; font-variation-settings: normal; }
.sl-head h1 em { font-style: normal; font-weight: 600; }

/* notch and home indicator when wrapped as an app */
.sl-top { padding-top: max(18px, calc(env(safe-area-inset-top) + 8px)); padding-left: max(clamp(16px, 4vw, 52px), env(safe-area-inset-left)); padding-right: max(clamp(16px, 4vw, 52px), env(safe-area-inset-right)); }
.sl-main { padding-bottom: max(80px, calc(env(safe-area-inset-bottom) + 40px)); }

/* wish list, collections */
.browse-tabs { display: inline-flex; gap: 4px; padding: 3px; margin-top: 36px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.browse-tabs button { padding: 8px 16px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 14px; color: var(--muted); }
.browse-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.browse-tabs i { font-style: normal; margin-left: 4px; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.ds-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.heart { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.heart svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.heart:hover { background: var(--surface-2); color: var(--ink); }
.heart[aria-pressed="true"] { color: var(--accent); } .heart[aria-pressed="true"] svg { fill: currentColor; }
.heart:active { transform: scale(.88); }
.score-card .sc-body { padding-right: 30px; }
#vwHeart[aria-pressed="true"] { color: #ff8fb0; } #vwHeart[aria-pressed="true"] svg { fill: currentColor; }
.coll-rail { gap: 14px; }
.coll-card { flex: none; width: 220px; min-height: 130px; display: grid; align-content: end; gap: 3px; padding: 18px; border: 0; border-radius: 20px; color: #fff; text-align: left; position: relative; overflow: hidden; scroll-snap-align: start; transition: transform .15s; }
.coll-card::before { content: ""; position: absolute; inset: 0; opacity: .45; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .16) 0 1px, transparent 1px 13px); mask-image: linear-gradient(135deg, #000, transparent 65%); -webkit-mask-image: linear-gradient(135deg, #000, transparent 65%); }
.coll-card:hover { transform: translateY(-3px); }
.coll-card > * { position: relative; }
.coll-card b { font: 600 20px/1.15 "Fraunces", Georgia, serif; }
.coll-card span { font-size: 13px; opacity: .88; }
.coll-card i { font-style: normal; font-size: 12px; opacity: .7; margin-top: 4px; }
@media (max-width: 700px) { .browse-tabs { margin-top: 26px; } .coll-card { width: 190px; } }

/* ---------- ink layer and toolbar ---------- */
.pg { position: relative; display: block; line-height: 0; }
.vw-stage canvas#ink { position: absolute; left: 0; top: 0; background: transparent; box-shadow: none; pointer-events: none; touch-action: none; }
.viewer.inking .vw-stage canvas#ink { pointer-events: auto; cursor: crosshair; }
.viewer.inking .vw-nav { display: none; }
#vwInk[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.vw-ink { background: rgba(26, 18, 52, .96); border-top: 1px solid rgba(255, 255, 255, .1); padding: 8px 10px; }
.vw-ink[hidden] { display: none; }
.ink-row { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ink-row::-webkit-scrollbar { display: none; }
.ink-row > * { flex: none; }
.ink-row button { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #f1eefc; padding: 0 8px; }
.ink-row button svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ink-row button[aria-pressed="true"]:not(.ink-dot) { background: rgba(255, 255, 255, .16); }
.ink-row button:disabled { opacity: .3; }
.ink-text { font: 600 16px/1 "Inter", sans-serif; }
.ink-done { background: var(--accent) !important; color: var(--accent-ink) !important; font-weight: 600; margin-left: auto; padding: 0 16px !important; }
.ink-sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .18); margin: 0 4px; }
.ink-colors { display: inline-flex; gap: 4px; }
.ink-colors[hidden] { display: none; }
.ink-row button.ink-dot { min-width: 30px; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: var(--c); border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.ink-row button.ink-dot[aria-pressed="true"] { border-color: #fff; }
.ink-stamps { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .1); }
.ink-stamps[hidden] { display: none; }
.ink-stamps button { min-width: 44px; height: 44px; padding: 0 !important; }
.ink-stamps canvas { width: 36px; height: 36px; }
.viewer { grid-template-rows: auto 1fr auto auto auto; }
.viewer { grid-template-columns: minmax(0, 1fr); }
.viewer > * { min-width: 0; }
@media (max-width: 480px) { .vw-bar { gap: 4px; padding-left: 8px; padding-right: 8px; } .vw-btn { min-width: 38px; height: 38px; padding: 0 6px; } }

/* setlists, layers */
.set-pane { margin-top: 26px; }
.set-actions { display: inline-flex; gap: 8px; }
.set-body { display: grid; gap: 10px; margin-top: 16px; }
.set-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.set-open { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border: 0; background: transparent; border-radius: 10px; }
.set-open b { font: 500 18px/1.25 "Fraunces", Georgia, serif; } .set-open span { font-size: 13px; color: var(--muted); }
.set-open:hover { background: var(--surface-2); }
.set-play { justify-self: start; background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.set-items { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: it; }
.set-items li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); counter-increment: it; }
.set-item { display: grid; gap: 2px; text-align: left; padding: 8px 12px 8px 44px; border: 0; background: transparent; border-radius: 10px; position: relative; }
.set-item::before { content: counter(it); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.set-item b { font: 500 16px/1.25 "Fraunces", Georgia, serif; } .set-item span { font-size: 12.5px; color: var(--muted); }
.set-ctl { display: inline-flex; gap: 2px; } .set-ctl button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 16px; }
.set-ctl button:hover { background: var(--surface-2); color: var(--ink); }
.set-menu { position: absolute; z-index: 70; right: 12px; top: calc(max(8px, env(safe-area-inset-top)) + 52px); width: min(300px, calc(100vw - 24px)); padding: 8px; border-radius: 14px; background: #241c47; color: #f1eefc; box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .6); display: grid; gap: 2px; }
.set-menu[hidden] { display: none; }
.set-menu b { padding: 6px 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.set-menu button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: inherit; font-size: 14.5px; }
.set-menu button:hover { background: rgba(255, 255, 255, .1); }
.set-menu button i { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid rgba(255, 255, 255, .5); flex: none; }
.set-menu button[aria-pressed="true"] i { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px #241c47; }
.set-menu .set-new { color: #c9bcff; }
#inkLayer { font-size: 13px; letter-spacing: .02em; }

.legal ul { padding-left: 20px; } .legal p, .legal li { max-width: 68ch; line-height: 1.65; color: var(--muted); } .legal li { margin: 6px 0; }

.learn-card { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 18px; width: 100%; padding: 14px 20px 14px 14px; text-align: left; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); transition: transform .15s, border-color .15s; }
.learn-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.lc-art { display: block; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #4b2fc9, #1d1260); } .lc-art svg { display: block; width: 100%; height: auto; }
.lc-body { display: grid; gap: 4px; } .lc-body b { font: 600 18px/1.2 "Inter", sans-serif; letter-spacing: -.01em; } .lc-body span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.lc-go { font-size: 28px; color: var(--muted); }
@media (max-width: 700px) { .learn-card { grid-template-columns: 84px 1fr; } .lc-go { display: none; } }

@media (max-width: 480px) { .sl-top { gap: 8px; } .sl-top .brand-name { font-size: 22px; } .sl-tabs { gap: 2px; } .sl-tabs a { padding: 6px 9px; font-size: 12.5px; } }

.hum-home { display: grid; grid-template-columns: 124px 1fr auto; align-items: center; gap: 18px; margin-top: 30px; padding: 16px 22px 16px 16px; border-radius: 24px; color: #fff; text-decoration: none; background: linear-gradient(120deg, #7a4cff, #2a1a8a); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .15s; }
.hum-home:hover { transform: translateY(-2px); }
.hh-art { display: block; border-radius: 16px; background: rgba(255, 255, 255, .12); } .hh-art svg { display: block; width: 100%; height: auto; }
.hh-body { display: grid; gap: 3px; } .hh-body i { justify-self: start; padding: 2px 9px; border-radius: 999px; background: #ffd400; color: #2a1a8a; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hh-body b { font: 700 22px/1.15 "Inter", sans-serif; letter-spacing: -.02em; } .hh-body span { font-size: 13.5px; opacity: .88; line-height: 1.4; }
.hh-go { font-size: 30px; opacity: .8; }
@media (max-width: 700px) { .hum-home { grid-template-columns: 88px 1fr; gap: 14px; padding: 14px; } .hh-go { display: none; } .hh-body b { font-size: 19px; } }

.view-toggle { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.view-toggle button { padding: 5px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.view-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.sl-list.as-list { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.as-list .score-card { grid-template-columns: 1fr; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 11px 44px 11px 16px; box-shadow: none; transform: none; }
.as-list .score-card .cover, .as-list .sc-tags, .as-list .sc-meta { display: none; }
.as-list .sc-body { grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: baseline; padding-right: 0; }
.as-list .sc-by { grid-column: 2; grid-row: 1; text-align: right; }
.as-list .sc-title { grid-column: 1; grid-row: 1; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-list .heart { top: 50%; transform: translateY(-50%); right: 6px; }
.as-list .score-card:hover { background: var(--surface-2); }
