/* Layer offload for dense models: loaded only on its Learn page, after style.css. */
.dlo-rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dlo-rate { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); font: 12px var(--mono); color: var(--quiet); white-space: nowrap; transition: border-color .3s; }
.dlo-rate b { font-weight: 600; color: var(--quiet); transition: color .3s; }
.dlo-rate.dlo-on { border-color: var(--border-strong); }
.dlo-rate.dlo-on b { color: var(--fg); }

.dlo-mid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px 28px; align-items: start; }
.dlo-gpu { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.dlo-host { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.dlo-cell { display: grid; justify-items: center; gap: 1px; padding: 5px 2px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); transition: border-color .3s, box-shadow .3s, background .3s; }
.dlo-cname { font: 600 13px var(--mono); color: var(--fg); transition: color .3s; }
.dlo-csub { font: 10px var(--mono); color: var(--quiet); white-space: nowrap; }
.dlo-cell.dlo-free { border-style: dashed; border-color: var(--border); background: none; }
.dlo-cell.dlo-free .dlo-cname { color: var(--border-strong); }
.dlo-cell.dlo-slot { border-style: dashed; border-color: var(--purple); }
.dlo-cell.dlo-slot .dlo-csub { color: var(--purple); }
.dlo-cell.dlo-slot:not(.dlo-full) .dlo-cname { color: var(--quiet); }
.dlo-hcell .dlo-cname { color: var(--soft); }
.dlo-hcell.dlo-cpu { border-color: var(--soft); background: var(--surface-2); }
.dlo-hcell.dlo-cpu .dlo-cname, .dlo-hcell.dlo-cpu .dlo-csub { color: var(--fg); }
.dlo-hcell.dlo-str { border-style: dashed; border-color: var(--purple); }
.dlo-hcell.dlo-str .dlo-csub { color: var(--purple); }
.dlo-cell.dlo-run { border-color: var(--red); border-style: solid; box-shadow: 0 0 0 3px var(--glow-red); }
.dlo-cell.dlo-run .dlo-cname { color: var(--red); }
.dlo-link { justify-self: center; margin: 8px 0 6px; padding: 1px 10px; border: 1px dashed var(--border-strong); border-radius: 999px; font: 11px var(--mono); color: var(--quiet); }

.dlo-planbox { display: grid; gap: 8px; }
.dlo-plan { display: grid; gap: 5px; padding: 7px 10px 8px; border: 1px solid var(--border); border-left-width: 3px; border-radius: 8px; background: var(--surface); transition: border-color .3s, opacity .4s, box-shadow .3s; }
.dlo-phead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 1.4em; }
.dlo-pname { font: 600 12.5px var(--mono); color: var(--fg); }
.dlo-pdesc { font-size: 12px; color: var(--quiet); }
.dlo-pline { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.dlo-track { position: relative; height: 12px; border-radius: 4px; background: var(--surface-2); }
.dlo-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; transition: width .7s cubic-bezier(.2, .8, .2, 1), background .3s, opacity .3s; }
.dlo-track .dlo-pred { border: 1px dashed var(--soft); opacity: 0; }
.dlo-track .dlo-pred.dlo-on { opacity: 1; }
.dlo-track .dlo-meas { top: 3px; bottom: 3px; background: var(--soft); }
.dlo-pval { min-width: 11.5em; font: 11.5px var(--mono); color: var(--soft); text-align: right; white-space: nowrap; }
.dlo-plan.dlo-timing { border-color: var(--purple); box-shadow: 0 0 0 3px var(--glow); }
.dlo-plan.dlo-pick { border-color: var(--red); box-shadow: 0 0 0 3px var(--glow-red); }
.dlo-plan.dlo-pick .dlo-pname, .dlo-plan.dlo-pick .dlo-pval { color: var(--red); }
.dlo-plan.dlo-pick .dlo-meas { background: var(--red); }
.dlo-plan.dlo-lose { opacity: .55; }

.dlo-gantt { display: grid; gap: 4px; }
.dlo-lane { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); align-items: center; gap: 8px; }
.dlo-lname { font: 11px var(--mono); color: var(--quiet); text-align: right; }
.dlo-ltrack, .dlo-axis { position: relative; height: 20px; }
.dlo-ltrack { border-bottom: 1px solid var(--border); }
.dlo-blk { position: absolute; top: 2px; bottom: 2px; min-width: 3px; border-radius: 4px; overflow: hidden; font: 600 10.5px/16px var(--mono); text-align: center; color: var(--bg); white-space: nowrap; transform: scaleX(0); transform-origin: left; transition: transform .6s ease-out; }
.dlo-blk.dlo-in { transform: none; }
.dlo-blk.dlo-b-gpu { background: var(--red); }
.dlo-blk.dlo-b-cpu { background: var(--red); }
.dlo-blk.dlo-b-up { background: var(--glow); border: 1px solid var(--purple); color: var(--purple); }
.dlo-note { position: absolute; top: 2px; font: 10.5px/16px var(--mono); color: var(--soft); white-space: nowrap; }
.dlo-axis { height: 14px; margin-left: calc(4.2em + 8px); }
.dlo-axis span { position: absolute; top: 0; transform: translateX(-50%); font: 10px var(--mono); color: var(--quiet); }
.dlo-axis span:first-child { transform: none; }

.dlo-ghost { position: absolute; z-index: 2; transform: translate(-50%, -50%); pointer-events: none; transition: transform .75s cubic-bezier(.3, .7, .2, 1); }
.dlo-ghost.dlo-move { border-color: var(--purple); color: var(--purple); background: var(--surface); }

@media (max-width: 600px) {
  .dlo-rates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .dlo-rate { padding: 4px 8px; font-size: 11.5px; }
  .dlo-mid { grid-template-columns: 1fr; }
  .dlo-host { gap: 4px; }
  .dlo-hcell .dlo-csub { display: none; }
  .dlo-cname { font-size: 12px; }
  .dlo-link { margin: 6px 0 4px; }
  .dlo-pval { min-width: 0; }
  .dlo-lane { grid-template-columns: 3.6em minmax(0, 1fr); gap: 6px; }
  .dlo-axis { margin-left: calc(3.6em + 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .dlo-ghost, .dlo-blk { transition: none; }
}
