/* トラック棚（config.trackWalls のツアーだけ）。色はツアーの config.css で --tr-accent を上書きする */
.tracks { --tr-accent: #f08300; position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.tracks button { pointer-events: auto; }
.tr-chips { position: absolute; inset: 0; overflow: hidden; }
.tr-chips button { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--tr-accent); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 1px 5px rgba(0,0,0,.5); }
.tr-chips button.on, .tr-grid button.on { background: #fff; color: #111; outline: 3px solid var(--tr-accent); outline-offset: 2px; }
.tr-chips button.heard { background: rgba(40,40,40,.85); color: #bbb; }
.tr-panel { position: absolute; right: 0; top: 0; max-height: calc(100% - 96px); width: 300px; padding: 20px; overflow-y: auto; background: rgba(18,18,19,.94); pointer-events: auto; }
.tr-close { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; font-size: 22px; }
.tr-eyebrow { margin: 0 0 4px; font-size: 10px; letter-spacing: .24em; color: var(--tr-accent); }
.tr-panel h2 { margin: 0 32px 16px 0; font-size: 14px; font-weight: 500; line-height: 1.5; }
.tr-no { margin: 0; font-size: 10px; letter-spacing: .2em; color: var(--tr-accent); }
.tr-date { margin: 8px 0 0; font-size: 11px; color: #aaa; }
.tr-now h3 { margin: 4px 0 10px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.tr-text { margin: 0; font-size: 12px; font-weight: 300; line-height: 1.85; color: #ddd; white-space: pre-line; }
.tr-missing { margin: 12px 0 0; font-size: 12px; color: #aaa; }
.tr-player { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.tr-play { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--tr-accent); position: relative; }
.tr-play::before { content: ""; position: absolute; left: 17px; top: 14px; border: solid transparent; border-width: 8px 0 8px 13px; border-left-color: #fff; }
.tracks.playing .tr-play::before { left: 15px; top: 14px; width: 4px; height: 16px; border: solid #fff; border-width: 0 5px; }
.tr-bar { flex: 1; height: 20px; cursor: pointer; background: linear-gradient(#555, #555) center / 100% 2px no-repeat; position: relative; }
.tr-bar span { position: absolute; left: 0; top: 9px; height: 2px; background: #fff; }
.tr-player time { flex: none; min-width: 34px; font-size: 11px; color: #bbb; font-variant-numeric: tabular-nums; text-align: right; }
.tr-nav { display: flex; justify-content: space-between; margin: 12px 0 4px; }
.tr-nav button { padding: 6px 0; font-size: 12px; color: #ccc; }
.tr-hint { margin: 0; font-size: 12px; font-weight: 500; }
.tr-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #333; }
.tr-hint + .tr-grid { border-top: 0; padding-top: 0; }
.tr-grid button { aspect-ratio: 1; border-radius: 50%; background: #2c2c2e; font-size: 13px; font-weight: 600; }
.tr-grid button.heard { color: #777; }
/* 縦長の画面は画面の下端からのシートにする（箱が小さいので一覧が主）。開いている間だけMatterportのロゴに重なる（柴山判断 11/15） */
@media (max-width: 700px) {
  .tr-chips button { width: 22px; height: 22px; font-size: 10px; }
  .tr-panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 56dvh; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
  .tr-panel h2 { margin-bottom: 10px; font-size: 13px; }
  .tr-grid { grid-template-columns: repeat(8, 1fr); gap: 6px; }
  .tr-text { max-height: 7.4em; overflow-y: auto; }
}
