/* הלוח של מודול המעברים, לפי ההדמיה (אייל, 26/09/2026). כל הצבעים מהטוקנים של המחולל, עם הערכים של
   ההדמיה (העור הכהה) כברירת מחדל. כל המחלקות מתחילות ב-trx-, כדי לא לפגוש מחלקה קיימת במחולל. */
.trx {
  --trx-surf: var(--surf, #2B2B2B);
  --trx-ctl: var(--raise, #3F3F3F);
  --trx-line: var(--raise, #3A3A3A);
  --trx-track: var(--band, #454545);
  --trx-ink: var(--ink, #FFFFFF);
  --trx-acc: var(--acc, #7027CC);
  --trx-onacc: var(--onacc, #FFFFFF);
  --trx-dim: color-mix(in oklab, var(--trx-ink) 65%, transparent);
  --trx-tabdim: color-mix(in oklab, var(--trx-ink) 52%, transparent);
  --trx-tiledim: color-mix(in oklab, var(--trx-ink) 77%, transparent);
  --trx-stage: var(--stage, #141414);
  --trx-onstage: var(--on-stage, #FFFFFF);
  --trx-stagetrack: var(--stage-track, #2A2A2A);
  --trx-teal: var(--stage-teal, #3FE3D0);
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--trx-surf);
  color: var(--trx-ink);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
  direction: rtl;
}
.trx *, .trx *::before, .trx *::after { box-sizing: border-box; }
/* האיפוס בלי משקל (:where), כדי שכל מחלקה של כפתור תגבר עליו */
:where(.trx button) { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; margin: 0; }
.trx button:focus-visible, .trx input:focus-visible { outline: 2px solid var(--focus, #B794F6); outline-offset: 2px; }
.trx button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.trx-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 22px 12px; display: flex; flex-direction: column; gap: 12px; }

.trx-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--trx-line); }
.trx-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
.trx-help { width: 24px; height: 24px; border-radius: 50%; background: var(--trx-line); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; flex: none; line-height: 1; }

.trx-scope { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.trx-seg { display: flex; background: var(--trx-ctl); border-radius: 999px; padding: 3px; gap: 2px; flex: none; }
.trx-seg button { height: 30px; padding: 0 14px; border-radius: 999px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.trx-seg button.on { background: var(--trx-acc); color: var(--trx-onacc); }
.trx-seg.sm button { height: 28px; padding: 0 12px; font-size: 13px; }
.trx-where { margin-inline-start: auto; font-size: 13px; color: var(--trx-dim); white-space: nowrap; }

.trx-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--trx-line); }
.trx-tabs button { height: 34px; font-weight: 600; color: var(--trx-tabdim); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.trx-tabs button.on { color: var(--trx-ink); border-bottom-color: var(--trx-acc); }

.trx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; }
.trx-tile { display: flex; flex-direction: column; gap: 5px; text-align: center; min-width: 0; }
.trx-frame { position: relative; display: block; border-radius: 9px; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; background: var(--trx-ctl); aspect-ratio: 16 / 9; }
.trx-tile.on .trx-frame { outline-color: var(--trx-acc); }
.trx-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.trx-spk { position: absolute; bottom: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.trx-name { font-size: 13px; color: var(--trx-tiledim); overflow-wrap: anywhere; }
.trx-tile.on .trx-name { font-weight: 700; color: var(--trx-ink); }
.trx-tile:hover:not(.on) .trx-frame { outline-color: color-mix(in oklab, var(--trx-ink) 30%, transparent); }

.trx-ctl { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--trx-line); padding-top: 10px; margin-top: auto; }
.trx-row { display: flex; align-items: center; gap: 12px; height: 38px; }
.trx-label { width: 70px; flex-shrink: 0; }
.trx-dur.idle .trx-range, .trx-dur.idle .trx-num { opacity: .5; }
.trx-range { flex-grow: 1; direction: ltr; display: flex; align-items: center; min-width: 0; }
.trx-rng { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer; }
.trx-rng::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--trx-track); }
.trx-rng::-moz-range-track { height: 4px; border-radius: 2px; background: var(--trx-track); }
.trx-rng::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--trx-acc); border: 2px solid #FFFFFF; box-sizing: border-box; }
.trx-rng::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--trx-acc); border: 2px solid #FFFFFF; box-sizing: border-box; }
.trx-num { width: 64px; height: 34px; border-radius: 10px; background: var(--trx-ctl); display: flex; align-items: center; justify-content: center; gap: 3px; flex-shrink: 0; }
/* ריצה לילית 2: הכלל הכללי input[type=text] (min-width:160px, רקע וריווח) גבר על .trx-numin, והשדה יצא 160 פיקסלים בתוך תיבה של 64:
   הוא כיסה חלק מהמחוון, ו"שנ׳" נדחק אל מחוץ ללוח. אותו עיצוב, בבורר שגובר */
.trx-num input.trx-numin { width: 2.3em; min-width: 0; flex: none; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-align: center; padding: 0; direction: ltr; }
.trx-numin:focus { outline: none; }
.trx-num:focus-within { box-shadow: 0 0 0 2px var(--focus, #B794F6); }
.trx-play { width: 30px; height: 30px; border-radius: 50%; background: var(--trx-ctl); display: flex; align-items: center; justify-content: center; margin-inline-start: auto; flex: none; }
.trx-preview { height: 38px; border-radius: 999px; background: var(--trx-ctl); font-weight: 600; text-align: center; }
.trx-preview:hover, .trx-play:hover, .trx-seg button:not(.on):hover { background-color: color-mix(in oklab, var(--trx-ink) 12%, var(--trx-ctl)); }

.trx-foot { height: 56px; flex-shrink: 0; background: var(--trx-stage); color: var(--trx-onstage); display: flex; align-items: center; gap: 14px; padding: 0 22px; }
.trx-count { font-size: 13.5px; white-space: nowrap; }
.trx-bar { flex-grow: 1; height: 4px; border-radius: 2px; background: var(--trx-stagetrack); position: relative; overflow: hidden; }
.trx-fill { position: absolute; inset-block: 0; right: 0; background: var(--trx-teal); }
.trx-ok { height: 36px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--trx-onstage); font-weight: 600; white-space: nowrap; }
.trx-ok.on { background: var(--trx-teal); border-color: var(--trx-teal); color: var(--trx-stage); }

.trx-helpbox { position: absolute; top: 58px; inset-inline: 16px; z-index: 5; background: var(--trx-surf); color: var(--trx-ink); border-radius: 12px; padding: 14px 16px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 22px rgba(0,0,0,.45); font-size: 13.5px; line-height: 1.5; border: 1px solid var(--trx-line); }
.trx-helpbox p, .trx-helpbox ol { margin: 4px 0 10px; }
.trx-helpbox ol { padding-inline-start: 18px; }
/* "הבנתי" בפינה הימנית התחתונה, כמו בחלונית ההסבר של המחולל */
.trx-helpok { display: block; height: 30px; padding: 0 16px; border-radius: 999px; background: var(--trx-acc); color: var(--trx-onacc); font-weight: 600; }
