/* Checked tensor loading: loaded only on its Learn page, after style.css. */
.al-file { display: grid; gap: 6px; }
.al-file .label, .al-man .label, .al-copy .label { margin: 0; }
.al-strip { position: relative; height: 36px; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--surface) 0 calc(100% / 42 - 1px), var(--border) calc(100% / 42 - 1px) calc(100% / 42)); }
.al-hdr { position: absolute; top: 4px; bottom: 4px; border-radius: 4px; background: var(--border-strong); }
.al-seg { position: absolute; top: 4px; bottom: 4px; display: flex; align-items: center; padding: 0 6px; overflow: hidden; border: 1px solid var(--soft); border-radius: 5px; background: var(--surface-2); opacity: 0;
  transition: opacity .4s, left .6s cubic-bezier(.2, .8, .2, 1), width .6s cubic-bezier(.2, .8, .2, 1), border-color .3s, background .3s; }
.al-seg.on { opacity: 1; }
.al-seg-n { font: 600 11px var(--mono); color: var(--soft); white-space: nowrap; transition: color .3s; }
.al-seg.bad { z-index: 1; border-style: dashed; border-color: var(--fg); background: transparent; }
.al-seg.read { border-color: var(--purple); background: var(--glow); }
.al-seg.read .al-seg-n { color: var(--purple); }
.al-seg.done { border-color: var(--red); background: var(--glow-red); }
.al-seg.done .al-seg-n { color: var(--red); }
.al-seg.changed { border-style: dashed; border-color: var(--fg); background: repeating-linear-gradient(135deg, var(--border-strong) 0 3px, transparent 3px 8px); }
.al-seg.changed .al-seg-n { color: var(--fg); }
.al-overlap { position: absolute; top: 0; bottom: 0; z-index: 2; background: repeating-linear-gradient(135deg, var(--fg) 0 2px, transparent 2px 7px); opacity: 0; transition: opacity .4s; pointer-events: none; }
.al-overlap.on { opacity: .45; }
.al-chunk { position: absolute; top: 4px; bottom: 4px; z-index: 1; border-left: 1px solid var(--border-strong); opacity: 0; transition: opacity .3s, background .4s, box-shadow .3s; }
.al-chunk.on { opacity: 1; }
.al-chunk.reading { background: var(--glow); box-shadow: inset 0 0 0 1.5px var(--purple); }
.al-chunk.used { background: linear-gradient(var(--purple), var(--purple)) bottom / 100% 4px no-repeat, var(--glow); }
.al-ticks { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--quiet); }

.al-main { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.al-man { display: grid; gap: 6px; }
.al-man .label { margin-bottom: 2px; }
.al-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .65fr) minmax(0, 1.75fr) minmax(0, .65fr) 70px; gap: 8px; align-items: center; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font: 12px var(--mono); color: var(--soft); transition: border-color .3s, background .3s; }
.al-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-row.al-th { padding-top: 0; padding-bottom: 0; border-color: transparent; background: none; font: 500 10.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.al-name { font-weight: 600; color: var(--fg); }
.al-sha { color: var(--quiet); }
.al-st { justify-self: end; padding: 1px 6px; border: 1px solid var(--border); border-radius: 5px; font-size: 11px; color: var(--quiet); transition: color .3s, border-color .3s; }
.al-row.ok .al-st { color: var(--soft); border-color: var(--border-strong); }
.al-row.bad, .al-row.refused { border-style: dashed; border-color: var(--fg); }
.al-row.bad .al-ext { text-decoration: line-through; color: var(--fg); }
.al-row.bad .al-st, .al-row.refused .al-st { border-style: dashed; border-color: var(--fg); color: var(--fg); }
.al-row.refused .al-sha { text-decoration: line-through; }
.al-row.live { border-color: var(--purple); background: var(--glow); }
.al-row.live .al-st { border-color: var(--purple); color: var(--purple); }
.al-row.done .al-st { border-color: var(--red); color: var(--red); }

.al-copy { display: grid; gap: 12px; padding: 12px; border: 1px dashed var(--border-strong); border-radius: 10px; transition: border-color .3s; }
.al-copy.live { border-color: var(--purple); }
.al-ends { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: 6px; margin-top: 6px; }
.al-end { position: relative; display: grid; gap: 6px; padding: 9px 10px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); transition: border-color .3s, background .3s, box-shadow .3s; }
.al-end-t { font: 500 10.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.al-end-v { font: 600 12.5px var(--mono); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.al-bar i { display: block; width: 0; height: 100%; background: var(--purple); transition: width .6s ease, background .3s; }
.al-end.dst .al-bar i { transition: width 1.1s linear, background .3s; }
.al-end.alloc { border-style: dashed; border-color: var(--purple); }
.al-end.held { border-style: solid; border-color: var(--purple); box-shadow: 0 0 0 3px var(--glow); }
.al-end.done { border-color: var(--red); }
.al-end.done .al-bar i { background: var(--red); }
.al-hold { position: absolute; top: -9px; right: 8px; padding: 0 5px; border-radius: 4px; background: var(--bg); font: 10.5px var(--mono); color: var(--purple); opacity: 0; transition: opacity .3s; }
.al-end.held .al-hold { opacity: 1; }
.al-arrow { display: grid; justify-items: center; gap: 4px; font: 10.5px var(--mono); color: var(--quiet); transition: color .3s; }
.al-line { position: relative; width: 100%; height: 2px; background: var(--border-strong); transition: background .3s; }
.al-line::after { content: ''; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-right: 0; border-left-color: var(--border-strong); transition: border-color .3s; }
.al-arrow.on { color: var(--purple); }
.al-arrow.on .al-line { background: var(--purple); }
.al-arrow.on .al-line::after { border-left-color: var(--purple); }
.al-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 12px var(--mono); color: var(--quiet); }
.al-meta b { font-weight: 600; color: var(--fg); }
.al-pub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 28px; }
.al-pub-t { font: 500 10.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.al-pub-list { display: flex; flex-wrap: wrap; gap: 6px; }
.al-none { font: 12px var(--mono); color: var(--quiet); }
.chip.al-pub-chip { border-color: var(--red); color: var(--red); opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s; }
.chip.al-pub-chip.in { opacity: 1; transform: none; }
.chip.al-ghost { position: absolute; z-index: 3; border-color: var(--purple); color: var(--purple); font-size: 12px; transition: transform .7s cubic-bezier(.3, .7, .2, 1); pointer-events: none; }

@media (max-width: 600px) {
  .al-main { grid-template-columns: 1fr; gap: 18px; }
  .al-man { gap: 5px; }
  .al-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: 'name ext st' 'shape shape sha'; row-gap: 2px; column-gap: 10px; padding: 5px 8px; font-size: 11.5px; }
  .al-row.al-th { display: none; }
  .al-name { grid-area: name; }
  .al-ext { grid-area: ext; }
  .al-shape { grid-area: shape; color: var(--quiet); }
  .al-sha { grid-area: sha; justify-self: end; }
  .al-st { grid-area: st; }
  .al-copy { gap: 10px; }
  .al-ends { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); }
  .al-end-v { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .al-seg, .al-chunk, .al-overlap, .al-bar i, .al-end.dst .al-bar i, .chip.al-ghost, .chip.al-pub-chip { transition: none; }
}
