.fx-tape { display: grid; gap: 12px; --fx-peel: 0px; }
.fx-tape .fx-note ol { list-style: none; margin: 0; padding: 0; }
.fx-tape .fx-note li + li { margin-top: 6px; }
.fx-tape .fx-goal, .fx-tape .fx-watch { margin: 0; color: var(--fx-ink); }
.fx-tape .fx-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-tape .fx-controls legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.fx-tape .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-tape .fx-btn { min-height: 36px; min-width: 24px; box-sizing: border-box; color: var(--fx-ink); }
.fx-tape .fx-btn:has(input:checked) { background: var(--fx-mint-pale); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-tape .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-tape:has(#fx-tape-p1:checked) { --fx-peel: 10px; }
.fx-tape:has(#fx-tape-p2:checked) { --fx-peel: 20px; }
.fx-tape:has(#fx-tape-p3:checked) { --fx-peel: 30px; }
.fx-tape:has(#fx-tape-p4:checked) { --fx-peel: 90px; }
.fx-tape .fx-drawer { height: 282px; box-sizing: border-box; padding: 10px 4px; color: var(--fx-ink); overflow: hidden; display: grid; grid-template-rows: 24px 152px 24px 32px 1fr; gap: 2px; }
.fx-tape .fx-caption { margin: 0; text-align: center; font-size: 12px; line-height: 16px; }
.fx-tape .fx-tracks { display: grid; min-width: 0; }
.fx-tape .fx-track { grid-area: 1 / 1; position: relative; visibility: hidden; --fx-sort: 0; border-bottom: 4px solid var(--fx-ink); }
.fx-tape:has(#fx-tape-d1:checked) .fx-d1, .fx-tape:has(#fx-tape-d2:checked) .fx-d2, .fx-tape:has(#fx-tape-d3:checked) .fx-d3 { visibility: visible; }
.fx-tape .fx-file { position: absolute; top: 6px; bottom: 0; left: calc(var(--fx-slot) * 25%); width: 25%; box-sizing: border-box; border: 2px solid var(--fx-ink); border-radius: 8px 8px 0 0; background: var(--fx-sun-pale); transform: translateX(calc((var(--fx-rank) - var(--fx-slot)) * var(--fx-sort) * 100%)); transition: transform 0.6s; }
.fx-tape .fx-tab { position: absolute; width: 90px; height: 26px; top: 57px; left: 50%; transform: translateX(-50%) rotate(-90deg); display: flex; align-items: center; overflow: hidden; background: var(--fx-paper); outline: 1px solid var(--fx-ink); font-size: 14px; line-height: 24px; white-space: nowrap; }
.fx-tape .fx-a, .fx-tape .fx-b, .fx-tape .fx-c { flex: 0 0 10px; text-align: center; height: 24px; }
.fx-tape .fx-tail { letter-spacing: 1px; }
.fx-tape .fx-tape-strip { position: absolute; inset: 0; background: var(--fx-sun); border-left: 1px solid var(--fx-ink); transform: translateX(var(--fx-peel)); transition: transform 0.5s; }
.fx-tape .fx-direction { text-align: center; font-size: 14px; }
.fx-tape .fx-key { display: flex; justify-content: center; gap: 12px; margin: 0; align-items: center; font-size: 12px; }
.fx-tape .fx-tab-key, .fx-tape .fx-cover-key { padding: 2px 8px; border: 1px solid var(--fx-ink); background: var(--fx-paper); }
.fx-tape .fx-cover-key { background: var(--fx-sun); }
.fx-tape:has(#fx-tape-p1:checked) .fx-d1, .fx-tape:has(#fx-tape-p2:checked) .fx-d1, .fx-tape:has(#fx-tape-p3:checked) .fx-d1, .fx-tape:has(#fx-tape-p4:checked) .fx-d1, .fx-tape:has(#fx-tape-p2:checked) .fx-d2, .fx-tape:has(#fx-tape-p3:checked) .fx-d2, .fx-tape:has(#fx-tape-p4:checked) .fx-d2, .fx-tape:has(#fx-tape-p3:checked) .fx-d3, .fx-tape:has(#fx-tape-p4:checked) .fx-d3 { --fx-sort: 1; }
.fx-tape .fx-d1 .fx-a, .fx-tape .fx-d2 .fx-b, .fx-tape .fx-d3 .fx-c { background: var(--fx-mint); font-weight: 800; }
.fx-tape:has(#fx-tape-p1:checked) .fx-d2 .fx-a, .fx-tape:has(#fx-tape-p1:checked) .fx-d3 .fx-a, .fx-tape:has(#fx-tape-p2:checked) .fx-d3 .fx-a, .fx-tape:has(#fx-tape-p2:checked) .fx-d3 .fx-b { background: var(--fx-coral); }
.fx-tape .fx-messages, .fx-tape .fx-feedback { display: grid; grid-template-columns: minmax(0, 1fr); }
.fx-tape .fx-messages p, .fx-tape .fx-feedback p { grid-area: 1 / 1; visibility: hidden; margin: 0; align-self: stretch; }
.fx-tape:has(#fx-tape-d1:checked):has(#fx-tape-p0:checked) .fx-s10, .fx-tape:has(#fx-tape-d1:checked):has(#fx-tape-p1:checked) .fx-s11, .fx-tape:has(#fx-tape-d1:checked):has(#fx-tape-p2:checked) .fx-s12, .fx-tape:has(#fx-tape-d1:checked):has(#fx-tape-p3:checked) .fx-s13, .fx-tape:has(#fx-tape-d1:checked):has(#fx-tape-p4:checked) .fx-s14, .fx-tape:has(#fx-tape-d2:checked):has(#fx-tape-p0:checked) .fx-s20, .fx-tape:has(#fx-tape-d2:checked):has(#fx-tape-p1:checked) .fx-s21, .fx-tape:has(#fx-tape-d2:checked):has(#fx-tape-p2:checked) .fx-s22, .fx-tape:has(#fx-tape-d2:checked):has(#fx-tape-p3:checked) .fx-s23, .fx-tape:has(#fx-tape-d2:checked):has(#fx-tape-p4:checked) .fx-s24, .fx-tape:has(#fx-tape-d3:checked):has(#fx-tape-p0:checked) .fx-s30, .fx-tape:has(#fx-tape-d3:checked):has(#fx-tape-p1:checked) .fx-s31, .fx-tape:has(#fx-tape-d3:checked):has(#fx-tape-p2:checked) .fx-s32, .fx-tape:has(#fx-tape-d3:checked):has(#fx-tape-p3:checked) .fx-s33, .fx-tape:has(#fx-tape-d3:checked):has(#fx-tape-p4:checked) .fx-s34 { visibility: visible; }
.fx-tape:has(#fx-tape-d1:checked):has(#fx-tape-p1:checked) .fx-f11, .fx-tape:has(#fx-tape-d2:checked):has(#fx-tape-p1:checked) .fx-f21, .fx-tape:has(#fx-tape-d2:checked):has(#fx-tape-p2:checked) .fx-f22, .fx-tape:has(#fx-tape-d3:checked):has(#fx-tape-p1:checked) .fx-f31, .fx-tape:has(#fx-tape-d3:checked):has(#fx-tape-p2:checked) .fx-f32, .fx-tape:has(#fx-tape-d3:checked):has(#fx-tape-p3:checked) .fx-f33, .fx-tape:has(#fx-tape-p4:checked) .fx-full { visibility: visible; }
@container (max-width: 480px) { .fx-tape .fx-controls .fx-row { display: grid; grid-template-columns: minmax(0, 1fr); } .fx-tape .fx-btn { min-height: 36px; } }
@media (prefers-reduced-motion: reduce) { .fx-tape .fx-file, .fx-tape .fx-tape-strip { transition: none; } }