/* THE TRACK PAGE inside the inbox overlay (2026-09-09). Numbers first, as
   tiles; every explanation behind one disclosure; the actions where the eye
   lands. Tokens come from style.css. */
.ibd { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.ibd-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px 20px; align-items: start; }
.ibd-art { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; }
.ibd-art .ib-art-img, .ibd-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ibd-art .ib-ava { width: 96px; height: 96px; border-radius: 12px; font-size: 24px; }
.ibd-id { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ibd-title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.ibd-sub { margin: 0; font-size: 15px; color: var(--text-2); }
.ibd-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2px; }
.ibd-chip { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.ibd-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; border-top: 1px solid var(--border-soft); margin-top: 4px; padding-top: 14px; }
.ibd-actions .btn { min-height: 38px; padding: 0 16px; }
.ibd-actions .btn.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
/* 190px, not 150. 150 minus 28px of tile padding leaves 122px of text room for
   a 20px headline, and "not measured yet" needs about 165 — so the most common
   value on the panel could not fit in the cell built for it, on any screen. */
.ibd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.ibd-tile { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; background: var(--surface); }
.ibd-k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
/* WRAPS RATHER THAN TRUNCATES. This clipped seven of the eight tiles whenever a
   value was unmeasured, rendering "not measur…" — and nothing carries a title
   here, so the full string was in no attribute either: it was simply gone. A
   measured value ("128 bpm", "5A C minor") is short and still never wraps. */
.ibd-v { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2;
  overflow-wrap: anywhere; }
.ibd-v em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.ibd-v .v-released { color: var(--danger); }
/* The sub-line is where the sentence that DEFINES the number above it lives —
   "above that share of your own records" — and it was cut at "of y…". Also the
   released-record match and the producer's dispute of it. */
.ibd-s { font-size: 12px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.ibd-more { border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; }
.ibd-more summary { cursor: pointer; padding: 12px 0; font-size: 13.5px; color: var(--text-2); list-style: none; }
.ibd-more summary::-webkit-details-marker { display: none; }
.ibd-more summary::before { content: '+'; display: inline-block; width: 18px; color: var(--muted); }
.ibd-more[open] summary::before { content: '−'; }
.ibd-more-body { padding: 4px 0 16px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--border-soft); }
.ibd-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.ibd-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.ibd-card .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.ibd-call { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.ibd-call .ib-note { margin: 0; }
.ib-player:empty { display: none; }
@media (max-width: 640px) {
  .ibd-head { grid-template-columns: 72px minmax(0, 1fr); }
  .ibd-art, .ibd-art .ib-ava { width: 72px; height: 72px; }
  .ibd-title { font-size: 20px; }
  .ibd-call { grid-template-columns: 1fr; }
}
