/* The Emporium: the door on Home and the front (build 221). The design is work/emporium-door/HANDOFF.md, settled
   with Nikhil on November 19, 2026. A printed music catalog: paper, ink, large plain type, fine rules. Color comes
   from the six string colors, as one small disc beside an aisle's name, on the cat's stripes and on the sheet's edge.
   The three quiet moments come in a later build. */

/* ---------- The room ---------- */
.empty.in-emporium #fullList, .empty.in-emporium #startLogo, .empty.in-emporium #emptyHow, .empty.in-emporium .home-support,
.empty.in-emporium > h1, .empty.in-emporium .home-open, .empty.in-emporium > .fine, .empty.in-emporium #homeFind,
.empty.in-emporium .find-results, .empty.in-emporium .home-note, .empty.in-emporium .add-icon, .empty.in-emporium .empty-error,
.empty.in-emporium .song-shelves { display: none; }
.empty.in-emporium { display: block; width: 100%; max-width: none; height: 100%; margin: 0; padding: 0; background: var(--tg-paper); text-align: left; }
.emporium-page { display: block; box-sizing: border-box; width: 100%; max-width: 1240px; margin: 0 auto; padding: 12px 48px 24px; color: var(--ink); font-feature-settings: "tnum" 1; }
.emporium-page[hidden] { display: none; }
.emporium-page ::selection { background: var(--tg-selection); }
.emporium-page button, .e-door button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.emporium-page :focus-visible, .e-door :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.emporium-page h2, .emporium-page h3, .emporium-page p, .e-door h2, .e-door h3, .e-door p { margin: 0; }
.emporium-page input { caret-color: var(--accent); }

/* ---------- Shared small parts ---------- */
.disc { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--aisle); }
/* The Teachers aisle's mark (build 321): a hollow ink ring where the other aisles wear a filled dot (Nikhil, November 24). */
.disc.ring { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.icon.fwd { transform: scaleX(-1); } /* the back arrow, turned: an arrow opens a tab or a screen */
.emporium-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: -4px; padding: 0 8px 0 4px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.emporium-page .emporium-back { color: var(--muted); }
.emporium-back .icon { width: 16px; height: 16px; }
.e-find { box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 380px; min-height: 48px; padding: 0 14px; border: 1px solid var(--tg-edge); border-radius: 8px; background: var(--tg-paper); color: var(--muted); cursor: text; }
.e-find .icon { flex: none; width: 16px; height: 16px; }
.e-find input { flex: 1 1 auto; min-width: 0; height: 42px; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; }
.e-find input::placeholder { color: var(--muted); }
.e-find:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
/* The box draws the one focus ring, so the input inside it draws none (build 282; Nikhil saw two rings). */
.emporium-page .e-find input:focus-visible { outline: none; }
/* Search results, one group for each aisle (build 282). */
.e-group + .e-group { margin-top: 28px; }
.e-grouphead { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.e-groupn { margin-left: 4px; color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.e-find input::-webkit-search-cancel-button { -webkit-appearance: none; width: 14px; height: 14px; cursor: pointer; background: currentColor; opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat; }
.e-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; letter-spacing: 0.01em; }
.e-h span { color: var(--muted); font-weight: 500; }
.e-count { padding: 12px 0; color: var(--muted); font-size: 14px; }
.e-sign { font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; white-space: nowrap; } /* the app's own font (Nikhil, November 19) */

/* One tab as a line of type */
.e-line { display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: baseline; gap: 12px; width: 100%; min-height: 48px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.e-line .disc { transform: translateY(-1px); }
.e-line .w { display: grid; gap: 2px; min-width: 0; }
.e-line strong { font-size: 16px; font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.e-line small { color: var(--muted); font-size: 13px; line-height: 1.35; }

/* A row in Find's results */
.e-rows { display: grid; border-top: 1px solid var(--ink); }
.e-rowwrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; border-bottom: 1px solid var(--line); }
.emporium-page .e-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 96px; align-items: baseline; column-gap: 14px; min-height: 60px; padding: 14px 0; }
/* About shares the row's first line of text with the tab's name and level (build 270; Nikhil saw it sit lower). */
.emporium-page .e-rowabout { align-self: baseline; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.e-row .ti { display: grid; gap: 3px; min-width: 0; }
.e-row strong { font-size: 17px; font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.e-row small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.35; }
.e-row small.mine { color: var(--ink); }
.e-row .lv { font-size: 14px; text-align: right; }
.e-results[hidden] { display: none; }
.emporium-page .e-row.no-dot { grid-template-columns: minmax(0, 1fr) 96px; }

/* ---------- One aisle ---------- */
.e-aisle { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 80px; align-items: start; }
.e-side { position: sticky; top: 0; display: grid; gap: 12px; justify-items: start; }
.e-name { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 52px; font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
.e-name .disc { width: 14px; height: 14px; }
.e-lede { color: var(--muted); font-size: 17px; line-height: 1.45; }
.e-nav { display: grid; width: 100%; margin-top: 24px; border-top: 1px solid var(--ink); }
.emporium-page .e-nav button { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.e-nav small { color: var(--muted); font-size: 13px; }
.emporium-page .e-nav [aria-current] { font-weight: 700; }
.e-nav [aria-current] small { color: var(--ink); }
.emporium-page .e-nav button:disabled { color: var(--muted); cursor: default; }
.e-main { min-width: 0; padding-top: 4px; }
.e-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 14px; }
.e-tools .e-find { width: 280px; }
.e-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.emporium-page .e-seg button { min-height: 36px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.e-seg small { font-size: 12px; font-weight: 500; }
.emporium-page .e-seg [aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); }
.emporium-page .e-seg button:disabled { opacity: 0.45; cursor: default; }
.e-group { margin: 36px 0 0; padding-bottom: 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.e-list > .e-group:first-child { margin-top: 18px; }

/* ---------- A tab's About page ---------- */
.e-about { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); column-gap: 72px; row-gap: 36px; align-items: start; }
.e-words { display: grid; gap: 14px; justify-items: start; }
.e-title { margin-top: 8px; font-size: 42px; font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.e-facts { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.emporium-page .e-goal { max-width: 32em; margin: 6px 0; font-size: 18px; font-weight: 450; line-height: 1.45; letter-spacing: -0.01em; text-wrap: pretty; }
.e-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.emporium-page .e-go { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 22px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700; }
.e-go .icon { width: 16px; height: 16px; }
.emporium-page .e-hear { display: inline-flex; align-items: center; gap: 8px; min-width: 148px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 22px; box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 14px; font-weight: 600; }
.e-hear .icon { width: 16px; height: 16px; }
.emporium-page .e-hear[aria-pressed="true"] { background: var(--ink); color: var(--tg-paper); }
.e-hear[hidden], .e-strip[hidden], .e-neck[hidden] { display: none; }
.e-folds { justify-self: stretch; margin-top: 22px; border-top: 1px solid var(--ink); }
.e-fold { border-bottom: 1px solid var(--line); }
.e-fold summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.e-fold summary::-webkit-details-marker { display: none; }
.e-fold summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.e-fold[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.e-ledger { display: grid; grid-template-columns: 168px minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.e-ledger dt, .e-ledger dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.e-ledger dt:last-of-type, .e-ledger dd:last-child { border-bottom: 0; }
.e-ledger dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.e-ledger dd { font-size: 15px; text-wrap: pretty; }
.e-plate { position: sticky; top: 0; display: grid; gap: 14px; min-width: 0; margin-top: 52px; padding-top: 12px; border-top: 1px solid var(--ink); }
.e-neck { overflow-x: auto; padding: 6px 0 2px; }
.neck { display: block; width: 100%; min-width: 330px; height: auto; }
.neck .str { stroke: var(--tg-edge); }
.neck .fret { stroke: var(--line); stroke-width: 1; }
.neck .nut { stroke: var(--ink); stroke-width: 3; }
.neck .fn { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.neck .hit { fill: transparent; }
.neck .dot { fill: var(--ink); transition: transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1); transform-box: fill-box; transform-origin: center; }
.neck .dot.home { fill: var(--tg-home-note); }
.neck .dl { fill: var(--tg-paper); font-size: 10.5px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.neck .note { cursor: pointer; outline: 0; }
.neck .note:focus-visible .dot, .neck .note.sounding .dot { transform: scale(1.22); }
.neck .note:focus-visible .hit { stroke: var(--accent); stroke-width: 2; }
.neck .note.sounding .dot { fill: var(--tg-play); }
.tabstrip { display: block; width: 100%; height: auto; }
.tabstrip .str { stroke: var(--tg-score-staff); stroke-width: 1; }
.tabstrip rect { fill: var(--tg-paper); }
.tabstrip text { fill: var(--ink); font-size: 12px; font-weight: 600; text-anchor: middle; }
.tabstrip .sounding rect { fill: var(--tg-play); }
.tabstrip .sounding text { fill: var(--tg-paper); }
.e-last { min-height: 22px; font-size: 15px; font-weight: 600; }
.e-tip { display: grid; gap: 6px; max-width: 40em; color: var(--muted); font-size: 15px; line-height: 1.5; }
.e-tip p:first-child { color: var(--ink); }
.emporium-page .m-about { min-height: 44px; padding: 0 4px; color: var(--on); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--on-line); text-underline-offset: 4px; }

/* The logo's cat: the ears in ink, each stripe in one aisle's color. The stripes light low string to high, like one
   strum, when the front opens, and the stripe for the aisle under the pointer stays lit. */
.cat { flex: none; width: 60px; height: auto; }
.cat .ear { fill: var(--ink); }
.cat .st { fill: var(--aisle); transition: opacity 180ms ease-out; }
.cat .tail { fill: none; stroke: var(--aisle); stroke-width: 32; stroke-linecap: round; stroke-linejoin: round; }
@keyframes e-strum { from { opacity: 0.18; } to { opacity: 1; } }
.m-front .cat .st { animation: e-strum 380ms cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i) * 60ms + 180ms); }
.m-front[data-hot="0"] .st:not([data-s="0"]), .m-front[data-hot="1"] .st:not([data-s="1"]), .m-front[data-hot="2"] .st:not([data-s="2"]),
.m-front[data-hot="3"] .st:not([data-s="3"]), .m-front[data-hot="4"] .st:not([data-s="4"]), .m-front[data-hot="5"] .st:not([data-s="5"]), .m-front[data-hot="6"] .st, .m-front[data-hot="7"] .st { opacity: 0.16; }

/* ---------- The sheet ---------- */
/* A colored block with a folded corner and the cat's six stripes as its printed edge. The words on a sheet stay light
   in both looks. */
.m-sheet { --deep: #245c53; --on: #fdfcf8; --on-soft: rgba(253, 252, 248, 0.84); --on-line: rgba(253, 252, 248, 0.34);
  --sheet-ink: color-mix(in oklab, var(--deep), black 38%);
  position: relative; background: var(--deep); color: var(--on);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  /* The clip path only hides what spills past the sheet's edge; the spill still widens the page. Clipping the overflow
     too keeps the once-a-day wash and anything else inside the sheet from pushing the page sideways on a phone
     (build 287: the wash ended its sweep 280 pixels past a 440-pixel iPhone screen). */
  overflow: hidden; overflow: clip; }
.m-sheet::before { content: ""; position: absolute; top: 0; right: 0; width: 28px; height: 28px; background: rgba(253, 252, 248, 0.3); clip-path: polygon(0 0, 0 100%, 100% 100%); }
.m-sheet::after { content: ""; position: absolute; right: 0; bottom: 0; width: 96px; height: 6px;
  background: linear-gradient(90deg, var(--tg-string-6) 0 16.6%, var(--tg-string-5) 0 33.3%, var(--tg-string-4) 0 50%, var(--tg-string-3) 0 66.6%, var(--tg-string-2) 0 83.3%, var(--tg-string-1) 0); }
.m-sheet :focus-visible { outline-color: var(--on); }

/* The sheet's color says what the sheet holds (Nikhil, November 19). The hue names the type: today's pick wears a deep
   shade of its aisle's string color, so the dot beside an aisle's name and that aisle's sheet belong to one family.
   The shade names the ease, in four small steps from Simple (the lightest) to Complex (the deepest). The door on Home
   carries no type and keeps TabbyGato's green. White words reach 5 to 1 contrast or better on the lightest corner of
   every sheet, the softer line included (Claude's calculation from the color values, build 225). */
.m-sheet { --lift: 3%; --sink: 9%;
  background: linear-gradient(152deg, color-mix(in oklab, var(--deep), white var(--lift)) 0%, var(--deep) 52%, color-mix(in oklab, var(--deep), black var(--sink)) 100%); }
.m-sheet[data-type="warm"] { --deep: #4d2e7c; }
.m-sheet[data-type="tech"] { --deep: #0e4f66; }
.m-sheet[data-type="rhythm"] { --deep: #1f5236; }
.m-sheet[data-type="scales"] { --deep: #68500a; }
.m-sheet[data-type="chords"] { --deep: #763510; }
.m-sheet[data-type="riffs"] { --deep: #7b2049; }
.m-sheet[data-type="songs"] { --deep: #262b2d; }
.m-sheet[data-ease="Simple"] { --lift: 7%; --sink: 0%; }
.m-sheet[data-ease="Intermediate"] { --lift: 3%; --sink: 9%; }
.m-sheet[data-ease="Advanced"] {
  background: linear-gradient(152deg, color-mix(in oklab, var(--deep), black 7%) 0%, color-mix(in oklab, var(--deep), black 14%) 52%, color-mix(in oklab, var(--deep), black 24%) 100%); }
.m-sheet[data-ease="Complex"] {
  background: linear-gradient(152deg, color-mix(in oklab, var(--deep), black 16%) 0%, color-mix(in oklab, var(--deep), black 26%) 52%, color-mix(in oklab, var(--deep), black 38%) 100%); }

/* ---------- The front ---------- */
.m-front { display: grid; }
.m-front > .emporium-back { justify-self: start; }
.m-signrow { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 14px; }
.m-signbox { display: flex; align-items: center; gap: 18px; min-width: 0; }
.m-signwords { display: flex; align-items: center; gap: 16px; min-width: 0; }
.m-front .e-sign { font-size: 40px; }

.m-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 56px; align-items: stretch; }
.m-top .m-sheet { display: grid; align-content: space-between; row-gap: 14px; padding: 14px 44px 28px; }
.m-sheettop { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--on-line); font-size: 13px; }
.m-sheettop .m-speed { color: var(--on-soft); font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.m-levels { display: flex; gap: 2px; margin-left: -12px; }
.emporium-page .m-levels button { min-height: 36px; padding: 0 12px; border-radius: 8px; color: var(--on-soft); font-size: 13px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.emporium-page .m-levels [aria-pressed="true"] { background: rgba(253, 252, 248, 0.18); color: var(--on); font-weight: 700; }
.emporium-page .m-levels button:disabled { opacity: 0.45; cursor: default; }
/* The name: a part before a colon sits small, and the rest sits large. A longer name steps down a size. */
.m-tune { display: grid; align-content: end; gap: 2px; min-height: 130px; margin: 0; font-weight: 700; }
.m-tune small { font-size: 25px; font-weight: 450; letter-spacing: -0.02em; line-height: 1.15; }
.m-tune span { font-size: 86px; line-height: 0.96; letter-spacing: -0.04em; margin-left: -4px; text-wrap: balance; }
.m-tune span[data-fit="b"] { font-size: 66px; }
.m-tune span[data-fit="c"] { font-size: 56px; }
.m-tune span[data-fit="d"] { font-size: 50px; line-height: 1; letter-spacing: -0.035em; margin-left: -2px; }
.emporium-page .m-sheetline { min-height: 1.4em; color: var(--on-soft); font-size: 17px; line-height: 1.4; }
.m-sheetacts { display: flex; align-items: center; gap: 22px; }
.emporium-page .m-open { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px 0 22px; border-radius: 8px; background: var(--on); color: var(--sheet-ink); font-size: 15px; font-weight: 700; transition: transform 120ms ease-out; }
.m-open .icon { width: 16px; height: 16px; }

.m-side { display: grid; align-content: space-between; row-gap: 18px; min-width: 0; }
.emporium-page .m-go { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; width: 100%; padding: 14px 0 4px; }
.m-go .w { display: grid; gap: 4px; min-width: 0; }
.m-go strong { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.m-go small { color: var(--muted); font-size: 14px; }
.m-arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); transition: transform 120ms ease-out; }
.m-arrow .icon { width: 20px; height: 20px; }
.m-today .e-line:last-child { border-bottom: 0; }

.m-aisles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 20px; margin-top: 24px; }
/* The front holds eight aisles in one row above 1,100 pixels (build 321); at 1,100 and under the grid keeps its 4 columns. */
@media (min-width: 1101px) { .m-aisles.eight { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
/* The count sits at the foot of each column, so a description that wraps to a third line never pushes its number
   below its neighbors' (build 275; Nikhil saw Technique's 8 sit low). */
.emporium-page .aisle-line { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-content: stretch; row-gap: 4px; padding: 12px 0 0; border-top: 1px solid var(--ink); }
.aisle-line .nm { display: flex; align-items: center; gap: 8px; font-size: 23px; font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; white-space: nowrap; }
.aisle-line .what { min-height: 2.7em; color: var(--muted); font-size: 13px; line-height: 1.35; }
.aisle-line .n { align-self: start; color: var(--muted); font-size: 32px; font-weight: 300; line-height: 1; letter-spacing: -0.03em; transition: color 120ms ease-out; }
.aisle-line .n.soon { font-size: 15px; font-weight: 500; line-height: 32px; letter-spacing: 0; }
.emporium-page .aisle-line:disabled { cursor: default; }
.m-front.finding > :not(.emporium-back):not(.m-signrow):not(.e-results) { display: none; }

/* The instrument menu: guitar today, four instruments to come. */
.m-inst-pick { position: relative; }
.emporium-page .m-instrument { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 14px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--tg-edge); color: var(--ink); font-size: 14px; font-weight: 600; }
.m-instrument .icon { width: 14px; height: 14px; color: var(--muted); transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1); }
.m-instrument[aria-expanded="true"] .icon { transform: rotate(180deg); }
.m-instrument-menu { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; width: 232px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--tg-paper); box-shadow: 0 10px 28px -12px rgba(20, 30, 26, 0.38), 0 2px 6px -2px rgba(20, 30, 26, 0.16); }
.m-instrument-menu[hidden] { display: none; }
.m-instrument-menu ul { margin: 0; padding: 0; list-style: none; }
.m-instrument-menu li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 10px; border-radius: 8px; color: var(--muted); font-size: 15px; }
.m-instrument-menu li.here { background: var(--off); color: var(--ink); font-weight: 600; }
.m-instrument-menu li.here .icon { width: 16px; height: 16px; color: var(--accent); }
.m-instrument-menu small { color: var(--muted); font-size: 13px; }

/* ---------- The door on Home ---------- */
/* A square sheet among Home's round cards (Nikhil, November 19), in TabbyGato's green for every student. */
.song-shelf.e-door { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 56px; padding: 22px 44px 24px 32px; border: 0; border-radius: 0; box-shadow: none; color: var(--on); text-align: left;
  background: linear-gradient(152deg, color-mix(in oklab, var(--deep), white var(--lift)) 0%, var(--deep) 52%, color-mix(in oklab, var(--deep), black var(--sink)) 100%); }
.e-door .e-sign { font-size: 32px; line-height: 1.1; }
.e-door .d-offer { max-width: 420px; }
.e-door .e-h { padding-bottom: 4px; border-bottom-color: var(--on-line); }
.e-door .e-line { min-height: 44px; padding: 8px 0 0; border-bottom: 0; }
.e-door .e-line strong { color: var(--on); }
.e-door .e-line small { color: var(--on-soft); }
.e-door .e-line .disc { box-shadow: 0 0 0 1.5px var(--deep), 0 0 0 2.5px var(--on-line); }
.e-door .door-in { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 8px; background: var(--on); color: var(--sheet-ink); font-size: 15px; font-weight: 700; white-space: nowrap; }
.e-door .door-in .icon { width: 16px; height: 16px; }

@media (pointer: coarse) {
  .emporium-page .m-levels button, .emporium-page .m-instrument, .emporium-page .e-seg button { min-height: 44px; }
  .emporium-page .m-instrument { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat .st, .m-instrument .icon, .emporium-page .m-open, .m-arrow, .aisle-line .n { transition: none; }
  .m-front .cat .st { animation: none; }
  .neck .dot { transition: none; }
  .neck .note:focus-visible .dot, .neck .note.sounding .dot, .neck .note:hover .dot { transform: none; }
}

/* ---------- The Teachers aisle (build 321, work/lesson-library/PLAN.md) ---------- */
/* The aisle's rule line, under the aisle's one line. */
.e-rule { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; text-wrap: pretty; }
/* A teacher's heading: the ring, the name, the count, and the channel link at the right end. */
.e-teacher + .e-teacher { margin-top: 32px; }
.e-teacher .e-grouphead { align-items: baseline; }
.e-teacher .e-grouphead .disc { align-self: center; }
.e-channel { margin-left: auto; color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: 0; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.e-channel:hover { text-decoration-color: var(--ink); }
/* The aisle's last line, for teachers. */
.emporium-page .e-ask { margin: 28px 0 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.e-ask a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 3px; }
.e-ask a:hover { text-decoration-color: var(--ink); }

/* ---------- Narrower windows ---------- */
@media (max-width: 1100px) {
  .m-top { column-gap: 32px; }
  .m-tune span { font-size: 72px; }
  .m-tune span[data-fit="b"] { font-size: 56px; } .m-tune span[data-fit="c"] { font-size: 48px; } .m-tune span[data-fit="d"] { font-size: 42px; }
  .m-aisles { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 20px; }
  .e-aisle { column-gap: 48px; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
  .e-about { column-gap: 40px; }
  .song-shelf.e-door { column-gap: 28px; }
}
/* On a phone, Carry on sits above the sheet, and the aisles become seven full-width rows. */
@media (max-width: 760px) {
  .emporium-page { padding: 12px 20px 40px; }
  .m-front, .m-signrow { grid-template-columns: minmax(0, 1fr); }
  .m-signrow { display: grid; gap: 12px; }
  .m-signwords { display: grid; justify-items: start; gap: 8px; }
  .m-signbox .cat { order: 2; width: 50px; margin-left: auto; }
  .m-front .e-sign { font-size: 34px; }
  .e-find { width: 100%; }
  .m-top { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .m-side { display: contents; }
  .m-carry { order: -1; }
  .m-go strong { font-size: 21px; }
  .emporium-page .m-go { padding: 10px 0 0; }
  .m-arrow { width: 44px; height: 44px; }
  .m-top .m-sheet { padding: 16px 22px 26px; row-gap: 12px; }
  .m-sheettop { flex-wrap: wrap; gap: 0 8px; }
  .m-sheettop .m-speed { flex-basis: 100%; padding: 2px 0 4px; }
  .emporium-page .m-levels button { padding: 0 8px; }
  .m-levels { flex-wrap: wrap; } /* the four levels need about 300 pixels; below a 400-pixel screen, the last level starts a second line inside the sheet */
  .m-tune { min-height: 96px; }
  .m-tune small { font-size: 19px; }
  .m-tune span { font-size: 50px; margin-left: -2px; }
  .m-tune span[data-fit="b"] { font-size: 40px; } .m-tune span[data-fit="c"] { font-size: 34px; } .m-tune span[data-fit="d"] { font-size: 34px; }
  .emporium-page .m-sheetline { min-height: 2.8em; font-size: 15px; }
  .m-aisles { grid-template-columns: minmax(0, 1fr); margin-top: 26px; border-bottom: 1px solid var(--ink); }
  .emporium-page .aisle-line { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: none; align-items: center; column-gap: 16px; min-height: 64px; padding: 10px 0; }
  .aisle-line .nm { font-size: 22px; }
  .aisle-line .what { min-height: 0; }
  .aisle-line .n { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 28px; }
  .emporium-page .e-row { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .emporium-page .e-row.no-dot { grid-template-columns: minmax(0, 1fr) auto; }
  .e-aisle, .e-about { grid-template-columns: minmax(0, 1fr); }
  .e-about { row-gap: 14px; }
  .e-words { display: contents; }
  .e-words > * { order: 1; justify-self: start; }
  .e-plate { order: 2; position: static; margin-top: 0; }
  .e-words > .e-folds { order: 3; justify-self: stretch; margin-top: 0; }
  .e-title { font-size: 30px; }
  .emporium-page .e-goal { font-size: 16px; margin: 6px 0 4px; }
  .e-ledger { grid-template-columns: minmax(0, 1fr); }
  .e-ledger dt { padding: 12px 0 0; border-bottom: 0; font-size: 13px; }
  .e-ledger dd { padding: 2px 0 12px; font-size: 15px; }
  .emporium-page .e-rowabout { padding: 0 6px; }
  .e-side { position: static; }
  .e-name { font-size: 40px; }
  .e-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; margin-top: 12px; }
  .e-main { margin-top: 28px; }
  .e-tools .e-find { width: 100%; }
  .e-seg { gap: 0; flex-wrap: wrap; margin-left: -7px; } /* one line when it fits; on a 320-pixel screen the levels or parts wrap rather than push the page sideways (build 287) */
  .emporium-page .e-seg button { padding: 0 7px; font-size: 13px; }
  .e-seg small { font-size: 11px; }
  /* Two columns of aisles: each count sits under its aisle's name, so a long name never meets "Coming soon". */
  .emporium-page .e-nav button { grid-template-columns: 10px minmax(0, 1fr); row-gap: 0; min-height: 52px; padding: 6px 0; }
  .e-nav button small { grid-column: 2; }
  .song-shelf.e-door { grid-template-columns: minmax(0, 1fr); row-gap: 14px; padding: 20px 20px 24px; }
  .e-door .e-sign { font-size: 28px; }
  .e-door .door-in { justify-self: start; }
}

/* Hover looks belong to a mouse. A phone keeps a tapped control in its hover look, so a touch screen skips them. */
@media (hover: hover) {
  .emporium-page .emporium-back:hover { color: var(--ink); }
  .e-line:hover strong, .e-row:hover strong { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
  .e-nav button:hover:not(:disabled) span { text-decoration: underline; text-underline-offset: 3px; }
  .emporium-page .e-seg button:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
  .emporium-page .m-levels button:hover:not(:disabled) { background: rgba(253, 252, 248, 0.1); color: var(--on); }
  .m-go:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
  .aisle-line:hover:not(:disabled) .n { color: var(--ink); }
  .aisle-line:hover:not(:disabled) .nm { text-decoration: underline; text-decoration-color: var(--aisle); text-decoration-thickness: 3px; text-underline-offset: 5px; }
  .emporium-page .m-instrument:hover { background: var(--hover); box-shadow: inset 0 0 0 1px var(--ink); }
  .e-door .door-in:hover { background: #fff; }
  .emporium-page .e-rowabout:hover, .emporium-page .e-hear:not([aria-pressed="true"]):hover { background: var(--hover); color: var(--ink); }
  .e-fold summary:hover { text-decoration: underline; text-underline-offset: 3px; }
  .emporium-page .m-about:hover { text-decoration-color: var(--on); }
}
.aisle-line:focus-visible .n { color: var(--ink); }
.emporium-page .m-instrument[aria-expanded="true"] { background: var(--hover); box-shadow: inset 0 0 0 1px var(--ink); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .m-open:hover { transform: translateY(-1px); }
  .m-go:hover .m-arrow { transform: scale(1.06); }
  .neck .note:hover .dot { transform: scale(1.22); }
}

/* ---------- The chord grids under the song map (build 241) ----------
   One small grid for each of the tab's chords, with the finger number in each dot. The row sits on the desk,
   like the song map above it, and hides whenever the song map hides (a recording, Home). The grid for the
   chord at the playing line lights up with the accent; nothing moves when it does. */
.chord-row { flex: 0 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gutter) 8px; background: var(--chrome); scrollbar-width: thin; }
.chord-row[hidden], .song-map[hidden] + .chord-row, body.no-song .chord-row { display: none; }
.chord-box { flex: 0 0 auto; display: grid; justify-items: center; gap: 1px; padding: 4px 8px 2px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); }
.chord-box.on { border-color: var(--accent); background: color-mix(in oklab, var(--accent), transparent 88%); color: var(--ink); }
.chord-name { font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.chord-grid { width: 74px; height: auto; overflow: visible; }
.chord-grid line { stroke: var(--muted); stroke-width: 0.8; }
.chord-grid line.nut { stroke: var(--ink); stroke-width: 2.4; }
.chord-grid .dot, .chord-grid .barre { fill: var(--ink); }
.chord-grid .fg { fill: var(--chrome); font-size: 6.6px; font-weight: 700; text-anchor: middle; }
.chord-grid .fr { fill: var(--muted); font-size: 6.5px; text-anchor: middle; }
.chord-grid .mark { fill: var(--muted); font-size: 8px; text-anchor: middle; }
.chord-grid .open { fill: none; stroke: var(--ink); stroke-width: 0.9; }
@media (max-width: 760px) {
  .chord-row { padding: 0 8px 6px; gap: 4px; }
  .chord-box { padding: 3px 5px 1px; }
  .chord-name { font-size: 11px; }
  .chord-grid { width: 60px; }
}

/* ---------- Three quiet moments (step 6, build 244; Nikhil, November 19: subtle, no games) ----------
   From the mockup, work/emporium-door/door/merged.css. A device that asks for less motion gets none of them. */
/* 1. The day's first look at today's pick: one soft band of the six string colors crosses the sheet once, under
   the words, then is gone. The sheet's own clip keeps the band inside its edges. */
.m-sheet > :not(.m-wash, .m-shine) { position: relative; z-index: 1; }
.m-sheet > .m-wash { position: absolute; left: 0; top: 0; width: 70%; height: 100%; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(104deg, transparent 0%, var(--tg-string-6) 20%, var(--tg-string-5) 32%, var(--tg-string-4) 44%, var(--tg-string-3) 56%, var(--tg-string-2) 68%, var(--tg-string-1) 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%, #000 68%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 32%, #000 68%, transparent 100%);
  animation: e-wash 1700ms cubic-bezier(0.45, 0, 0.3, 1) 420ms 1 backwards; } /* backwards: the band waits at the left, and once gone it rests unseen inside the sheet, not past its right edge */
@keyframes e-wash { 0% { transform: translateX(-105%); opacity: 0; } 20% { opacity: 0.2; } 80% { opacity: 0.2; } 100% { transform: translateX(150%); opacity: 0; } }
/* 2. Opening a tab: the whole page fades into the music in 320 milliseconds. Nothing slides. */
.vt-fade::view-transition-old(root), .vt-fade::view-transition-new(root) { animation-duration: 320ms; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
/* 3. The level switch: only the sheet fades, old pick into new, in 300 milliseconds. The rest of the page holds still. */
.vt-quick .emporium-page .m-sheet.e-pick { view-transition-name: emporium-pick; } /* named only during the level switch */
.vt-quick::view-transition-group(emporium-pick) { animation-duration: 300ms; }
.vt-quick::view-transition-old(emporium-pick), .vt-quick::view-transition-new(emporium-pick) { animation-duration: 300ms; }
.vt-quick::view-transition-old(root), .vt-quick::view-transition-new(root) { animation: none; }
@media (prefers-reduced-motion: reduce) { .m-sheet > .m-wash { display: none; } }

/* ---------- Two answers to a resting pointer (builds 249, 252 and 254; Nikhil, November 20: "a very mild
   shimmer-like spotlight", "subtle is the key") ----------
   A mouse resting on today's pick lights a faint pool of white under the pointer, under the words. The pool fades
   in over 300 milliseconds, follows the pointer, and fades out over 600 milliseconds when the pointer leaves. A mouse
   resting on the cat pets the cat once: the stripes shuffle side to side and the ears dip. A finger gets the same answers by pressing and
   holding for 280 milliseconds (the .held class from answerHold in emporium-view.mjs). A device that asks for less
   motion gets neither. */
.m-sheet > .m-shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 600ms ease-out;
  background: radial-gradient(circle 300px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.05) 38%, transparent 72%); }
/* Inside the pool, the six string colors drift slowly, low string to high, like the once-a-day wash but held to
   the pool under the pointer (Nikhil, November 20: "the multi-color shimmer effect within the spotlight"). The
   colors show at 22 percent and only where the pool's mask lets them through, so the sheet's own color still
   leads. The drift runs only while the pool shows. */
.m-sheet > .m-shine::after { content: ""; position: absolute; inset: 0; opacity: 0.22; mix-blend-mode: screen;
  background: linear-gradient(110deg, var(--tg-string-6), var(--tg-string-5), var(--tg-string-4), var(--tg-string-3), var(--tg-string-2), var(--tg-string-1), var(--tg-string-6)) 0 0 / 300% 100%;
  -webkit-mask-image: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 75%);
  mask-image: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 75%);
  animation: e-drift 4s linear infinite; animation-play-state: paused; }
@keyframes e-drift { from { background-position: 0% 0; } to { background-position: 150% 0; } }
/* Petting the cat: the same shuffle as the cat on tabbygato.com (website/css/site.css, stripe-pet). Each stripe
   slides side to side, from the ears down, and the ears dip. Distances are in the drawing's own units: 16 units
   is about 2.6 pixels on the 60-pixel cat. */
@keyframes e-pet { 0%, 100% { transform: none; } 30% { transform: translateX(var(--pet)); } 62% { transform: translateX(calc(var(--pet) * -0.45)); } 84% { transform: translateX(calc(var(--pet) * 0.15)); } }
@keyframes e-ears { 0%, 100% { transform: none; } 35% { transform: translateY(12px) scaleY(0.82); } 70% { transform: translateY(-4px) scaleY(1.04); } }
.cat .st, .cat .ear { transform-box: fill-box; }
.cat .ear { transform-origin: 50% 100%; }
.cat .st[data-s="0"] { --pet: 16px; } .cat .st[data-s="1"] { --pet: -14px; } .cat .st[data-s="2"] { --pet: 18px; }
.cat .st[data-s="3"] { --pet: -16px; } .cat .st[data-s="4"] { --pet: 14px; } .cat .st[data-s="5"] { --pet: -11px; }
/* A held finger would otherwise start Safari's text selection, which cancels the hold, so the pick and the cat
   offer no selection and no callout menu. */
.m-sheet.e-pick, .cat { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
@media (prefers-reduced-motion: no-preference) {
  .m-sheet.held > .m-shine { opacity: 1; transition-duration: 300ms; }
  .m-sheet.held > .m-shine::after { animation-play-state: running; }
  .cat.held .st { animation: e-strum 380ms cubic-bezier(0.16, 1, 0.3, 1) both, e-pet 560ms cubic-bezier(0.4, 0, 0.2, 1) both; animation-delay: calc(var(--i) * 60ms + 180ms), calc(var(--i) * 40ms); }
  .cat.held .ear { animation: e-ears 500ms cubic-bezier(0.4, 0, 0.2, 1) both; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .m-sheet.e-pick:hover > .m-shine { opacity: 1; transition-duration: 300ms; }
  .m-sheet.e-pick:hover > .m-shine::after { animation-play-state: running; }
  .cat:hover .st { animation: e-strum 380ms cubic-bezier(0.16, 1, 0.3, 1) both, e-pet 560ms cubic-bezier(0.4, 0, 0.2, 1) both; animation-delay: calc(var(--i) * 60ms + 180ms), calc(var(--i) * 40ms); }
  .cat:hover .ear { animation: e-ears 500ms cubic-bezier(0.4, 0, 0.2, 1) both; }
}

/* ---------- The scale lookup (build 266) ----------
   The Scales aisle: the scale's name, one bar that stays at the top with the note and the scale, the whole neck
   from fret 0 to 15, the part's music and tab, then the scale lessons. Settled with Nikhil on November 20, 2026
   (work/scale-lookup/PLAN.md). The neck uses the About page's ink dots and the practice screen's amber home notes;
   the string colors stay off the neck. */
.e-scales .l-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.e-scales .l-aisle { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.e-scales .l-head { margin: 10px 0 22px; }
.e-scales .l-name { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.e-scales .l-also { margin-top: 8px; color: var(--muted); font-size: 14px; }
.emporium-page .l-respell { min-height: 28px; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.emporium-page .l-respell:hover { color: var(--ink); text-decoration-color: currentColor; }

/* The bar that stays at the top while the student scrolls to the music. */
.e-scales .l-pick { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 20px; margin: 0 -48px; padding: 10px 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--tg-paper) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.l-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.emporium-page .l-seg button { min-height: 36px; padding: 0 11px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; text-align: center; transition: background-color 120ms, color 120ms; }
.emporium-page .l-seg [aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); }
.emporium-page .l-seg button:disabled { opacity: 0.4; cursor: default; }
.l-notes { flex: 1 1 auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.emporium-page .l-notes button { padding: 0; font-size: 15px; }
.l-menu { position: relative; flex: none; display: block; }
.l-menu select { box-sizing: border-box; appearance: none; -webkit-appearance: none; width: 100%; min-height: 40px; padding: 0 38px 0 14px; border: 1px solid var(--tg-edge); border-radius: 8px; background: var(--tg-paper); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.l-menu select:hover { border-color: var(--ink); }
.l-menu select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.l-menu .icon { position: absolute; top: 50%; right: 12px; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.l-type { width: 220px; }
.l-tuning { width: 196px; }
.l-capo { width: 128px; }
/* From 761 to 1,199 pixels wide the note buttons need the whole first row, so the tuning and the capo sit in a second
   row under the scale menu (build 333). */
@media (min-width: 761px) and (max-width: 1199px) {
  .e-scales .l-pick { flex-wrap: wrap; row-gap: 10px; }
  .l-notes { flex: 1 1 calc(100% - 240px); }
  .l-tuning { margin-left: auto; }
}
.l-root { display: none; }

/* The neck. */
.e-scales .l-neck { margin-top: 26px; }
.e-scales .l-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-bottom: 10px; }
.l-board svg { display: block; width: 100%; height: auto; overflow: visible; }
.l-board .str { stroke: var(--tg-edge); }
.l-board .fret { stroke: var(--line); stroke-width: 1.2; }
.l-board .nut { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
/* A capo (build 333): a wider bar than the nut, named above it. */
.l-board .nut.capo { stroke-width: 9; }
.l-board .capo-name { font-size: 11px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.l-board .fn { fill: var(--muted); font-size: 12px; font-weight: 600; text-anchor: middle; }
.l-board .inlay { fill: var(--line); }
.l-board .band { fill: var(--accent-soft); opacity: 0.55; }
.l-board .note { cursor: pointer; outline: 0; }
.l-board .hit { fill: transparent; }
.l-board .dot { fill: var(--ink); transition: opacity 200ms, transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1); transform-box: fill-box; transform-origin: center; }
.l-board .dot.home { fill: var(--tg-home-note); }
.l-board .dl { fill: var(--tg-paper); font-size: 12px; font-weight: 700; text-anchor: middle; pointer-events: none; transition: opacity 200ms; }
/* Two-character labels (C♯, ♭3, A𝄫) draw at the one-letter size: the widest fills 56% of the dot (lookup-labels/measurements-long-labels.txt). */
.l-board .dl.long { letter-spacing: -0.02em; }
.l-board .out .dot { opacity: 0.16; }
.l-board .out .dl { opacity: 0; }
.l-board .note:focus-visible .dot, .l-board .note.sounding .dot { transform: scale(1.18); }
.l-board .note:focus-visible .hit { stroke: var(--accent); stroke-width: 2; }
.l-board .note.sounding .dot { fill: var(--tg-play); opacity: 1; }
/* The one moment that moves: after a change of note or scale, each note new to the neck wears a ring that fades. */
.l-board .ring { fill: none; stroke: var(--accent); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.l-board .fresh .ring { animation: l-fresh 1400ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes l-fresh { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.75); } }
.l-board.upright { display: none; }
/* The sideways neck never draws smaller than 1,050 pixels, so its labels stay at 11 pixels and more. A narrower window
   (761 to about 1,100 wide, such as an iPad held upright) scrolls the neck inside its box, and a soft shade marks the
   side where more neck waits. The paper-colored covers scroll with the neck and hide each shade at its end. */
.l-board.sideways {
  overflow-x: auto; overscroll-behavior-x: contain;
  background:
    linear-gradient(to right, var(--bg) 40%, transparent) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--bg) 40%, transparent) right / 32px 100% no-repeat local,
    linear-gradient(to right, var(--line), transparent) left / 14px 100% no-repeat scroll,
    linear-gradient(to left, var(--line), transparent) right / 14px 100% no-repeat scroll;
}
.l-board.sideways svg { min-width: 1050px; }

/* The part's music and tab, and the lessons. */
.e-scales .l-music { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--ink); }
.e-scales .l-music h3, .e-scales .l-lessons h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.e-scales .l-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.e-scales .l-score { margin: 4px -20px 0; min-height: 120px; }
.e-scales .l-more { margin-top: 4px; color: var(--muted); font-size: 13px; }
.e-scales .l-lessons { margin-top: 48px; }
.e-scales .l-lessons h3 { margin-bottom: 10px; }

@media (hover: hover) {
  .emporium-page .l-seg button:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--hover); color: var(--ink); }
  .l-board .note:hover .dot { transform: scale(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .l-board .fresh .ring { animation: none; }
  .l-board .dot, .l-board .dl, .emporium-page .l-seg button { transition: none; }
}
@media (max-width: 760px) {
  .e-scales .l-name { font-size: 40px; }
  .e-scales .l-pick { gap: 10px; margin: 0 -20px; padding: 8px 20px; }
  .l-notes { display: none; }
  .l-root { display: block; width: 104px; }
  .e-scales .l-pick { flex-wrap: wrap; }
  .l-type { flex: 1 1 calc(100% - 114px); width: auto; }
  .l-tuning, .l-capo { flex: 1 1 calc(50% - 5px); width: auto; }
  .l-menu select { min-height: 44px; font-size: 16px; }
  .emporium-page .l-seg button { min-height: 44px; }
  .e-scales .l-bar { flex-direction: column; align-items: stretch; }
  .l-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .emporium-page .l-parts button { padding: 0 4px; }
  .l-board.sideways { display: none; }
  .l-board.upright { display: block; max-width: 300px; margin: 0 auto; }
  .e-scales .l-score { margin: 4px -20px 0; }
}
/* One lit button names the screen that shows: while the Emporium shows, the Emporium button lights and Home rests,
   though the Emporium sits on Home and Home's button still goes back to the song. */
body:has(#emporiumBtn[aria-pressed="true"]) .topbar #homeBtn.cell[aria-pressed="true"]:not(:hover) { background: transparent; color: var(--ink); }

/* The backup page (November 23, 2026): Save a backup and Restore a backup each open a page over Home, in the
   Emporium's page look (this file: the Back link, the sign, the fine ink rules, the find box, the quiet choices). */
.empty.in-backup #fullList, .empty.in-backup #startLogo, .empty.in-backup #emptyHow, .empty.in-backup .home-support,
.empty.in-backup > h1, .empty.in-backup .home-open, .empty.in-backup > .fine, .empty.in-backup #homeFind,
.empty.in-backup .find-results, .empty.in-backup .home-note, .empty.in-backup .add-icon, .empty.in-backup .empty-error,
.empty.in-backup .song-shelves, .empty.in-backup #emporiumPage { display: none; }
.empty.in-backup { display: block; width: 100%; max-width: none; height: 100%; margin: 0; padding: 0; background: var(--tg-paper); text-align: left; }
.emporium-page.backup-page { padding-bottom: 0; }
.backup-page .bk-head { display: grid; justify-items: start; gap: 6px; padding: 4px 0 20px; }
.backup-page .bk-head .e-sign { margin-top: 6px; font-size: 40px; white-space: normal; }
.backup-page .bk-file { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.backup-page .bk-lead { max-width: 40em; font-size: 16px; line-height: 1.45; }
.backup-page .bk-skip { display: flex; gap: 6px; max-width: 48em; color: var(--warn); font-size: 14px; font-weight: 600; }
.backup-page .bk-skip .icon { flex: none; margin-top: 2px; }
.backup-page .bk-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 48px; align-items: start; }
.backup-page .bk-list { display: grid; gap: 28px; padding-bottom: 32px; }
.backup-page .bk-aside { position: sticky; top: 12px; display: grid; gap: 20px; padding-bottom: 24px; }
.backup-page .e-find { width: 100%; }
/* A group's head: one tick for the group, its name, and how many songs are chosen, over the fine ink rule. */
.backup-page .bk-ghead { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; min-height: 44px; border-bottom: 1px solid var(--ink); }
.backup-page .bk-ghead.plain { grid-template-columns: minmax(0, 1fr) auto; }
.backup-page .bk-ghead h3, .backup-page .bk-fold h3 { font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }
.backup-page .bk-n { color: var(--muted); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.backup-page .bk-tick { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -12px; cursor: pointer; }
.backup-page .bk-tick input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.backup-page .bk-tick input:disabled { cursor: default; }
/* One song: the tick, then the song's name and line, which open the song's details. */
.backup-page .bk-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.backup-page .bk-row[hidden] { display: none; }
.backup-page .bk-row.plain { grid-template-columns: minmax(0, 1fr); }
.backup-page .bk-row .bk-tick { height: 60px; }
.backup-page .bk-open { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; column-gap: 10px; width: 100%; min-height: 60px; padding: 9px 0; border-radius: 6px; }
.backup-page .bk-open .w { display: grid; gap: 3px; min-width: 0; }
.backup-page .bk-open strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.backup-page .bk-open small { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.backup-page .bk-open small span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.backup-page .bk-open small .icon { flex: none; width: 14px; height: 14px; }
.backup-page .bk-open > .icon, .backup-page .bk-fold > .icon { width: 18px; height: 18px; color: var(--muted); transition: transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.backup-page [aria-expanded="true"] > .icon { transform: rotate(180deg); }
.backup-page .bk-row.out .bk-open strong { color: var(--muted); font-weight: 500; }
.backup-page .bk-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; }
/* The tag keeps its place while empty, so the arrow beside it stays put when Added or Left out appears. */
.backup-page .bk-tag .icon { width: 14px; height: 14px; }
.backup-page .bk-tag.in { color: var(--done); }
.backup-page .bk-tag.out { color: var(--muted); font-weight: 500; }
/* The details: the song's pieces by name, under the song's name. */
.backup-page .bk-more { grid-column: 2; display: grid; gap: 10px; padding: 0 0 14px; }
.backup-page .bk-row.plain .bk-more { grid-column: 1; }
.backup-page .bk-more[hidden] { display: none; }
.backup-page .bk-more h4 { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.backup-page .bk-more ul { max-width: 440px; margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 14px; }
.backup-page .bk-more li { display: flex; justify-content: space-between; gap: 12px; }
.backup-page .bk-more li span:first-child { overflow-wrap: anywhere; }
.backup-page .bk-more li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.backup-page .bk-none { color: var(--muted); font-size: 14px; }
.backup-page .bk-fold { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; column-gap: 10px; width: 100%; min-height: 44px; border-bottom: 1px solid var(--ink); }
.backup-page .bk-rows[hidden] { display: none; }
/* Music settings and the files line sit in the side column on a wide screen. */
.backup-page .bk-music { display: grid; gap: 8px; }
.backup-page .bk-music .e-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.backup-page .bk-music p { color: var(--muted); font-size: 13px; }
.backup-page .bk-files { font-size: 14px; }
.backup-page .bk-files[hidden] { display: none; }
/* The bar: what the press will do, the press, and then the answer, all in one place. */
.backup-page .bk-actions { display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: var(--tg-card); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 240ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 240ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.backup-page .bk-sum { display: flex; gap: 8px; font-size: 15px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.backup-page .bk-sum .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.backup-page .bk-sum.warn { color: var(--warn); }
.backup-page .bk-buttons { display: flex; gap: 8px; align-items: center; }
.backup-page .bk-buttons .e-go { flex: 1 1 auto; justify-content: center; }
.backup-page .bk-buttons .e-go:disabled { opacity: 0.4; cursor: default; }
.backup-page .bk-cancel { min-height: 48px; padding: 0 16px; border-radius: 8px; color: var(--ink); font-size: 15px; font-weight: 600; }
/* While a save or a restore writes, Back and Cancel wait, and look it. */
.backup-page .bk-cancel:disabled, .backup-page .emporium-back:disabled { opacity: 0.4; cursor: default; }
.backup-page .bk-actions.done { background: var(--done-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--done) 35%, transparent); }
.backup-page .bk-actions.done .bk-sum { color: var(--done); }
@media (prefers-reduced-motion: reduce) { .backup-page .bk-actions, .backup-page .bk-open > .icon, .backup-page .bk-fold > .icon { transition: none; } }
@media (max-width: 760px) {
  .emporium-page.backup-page { padding: 4px 16px 0; }
  .backup-page .bk-head { padding-bottom: 16px; }
  .backup-page .bk-head .e-sign { font-size: 30px; }
  .backup-page .bk-body { grid-template-columns: minmax(0, 1fr); }
  .backup-page .bk-aside { display: contents; }
  .backup-page .bk-list { padding-bottom: 24px; }
  .backup-page .bk-music { padding-bottom: 20px; }
  .backup-page .bk-files { padding-bottom: 20px; }
  /* On a phone the bar stays at the bottom of the screen while the songs scroll under it. */
  .backup-page .bk-actions { position: sticky; bottom: 0; z-index: 2; margin: 0 -16px; padding: 12px 16px 14px; border-radius: 0; background: var(--tg-paper); box-shadow: 0 -1px 0 var(--line); }
  .backup-page .bk-actions.done { background: var(--done-soft); box-shadow: 0 -1px 0 color-mix(in srgb, var(--done) 35%, transparent); }
}
