/* =============================================================================
   vizzi570.css — load speed is in the JS; this sheet is the picture on a phone.
   Immersive landscape: the stage owns the visible viewport (visualViewport /
   dvh), edge to edge, no scroll, no letterbox. A compact transport overlay
   fades after a moment. Portrait: tight 16px padding, no 320px overflow.
   ========================================================================== */

[hidden] { display: none !important; }

/* -------------------- portrait / narrow: tight stage, no overflow -------- */
@media (max-width: 760px) {
    /* gutters live on .wrap so the stage lines up with the nav */
    html:not([data-vz-land="1"]) #stage { padding-left: 0; padding-right: 0; }
    .vz-stage {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}
@media (max-width: 760px) and (orientation: portrait) {
    .vz-stage {
        /* fill the width; never taller than the visible screen minus the
           chrome around it, so a 3/4 stage cannot force sideways or
           vertical overflow on a 320-tall-enough phone. */
        max-height: calc(100dvh - 11rem);
        max-height: calc(100svh - 11rem);
    }
}
@supports not (height: 100dvh) {
    @media (max-width: 760px) and (orientation: portrait) {
        .vz-stage { max-height: calc(100vh - 11rem); }
    }
}

/* -------------------- immersive landscape -------------------------------- */
/* CSS fallback before JS writes data-vz-land, for a coarse phone already
   on its side at first paint. JS then pins exact visualViewport numbers. */
@media (orientation: landscape) and (max-height: 500px) {
    html:not([data-vz-land]) .vz-stage {
        aspect-ratio: auto;
        height: 100dvh;
        max-height: 100dvh;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

html[data-vz-land="1"],
html[data-vz-land="1"] body {
    overflow: hidden !important;
    height: var(--vz-land-h, 100dvh);
    max-height: var(--vz-land-h, 100dvh);
    overscroll-behavior: none;
    background: #07090C;
}

html[data-vz-land="1"] .nav,
html[data-vz-land="1"] .menu,
html[data-vz-land="1"] .hero,
html[data-vz-land="1"] #deck,
html[data-vz-land="1"] #modes,
html[data-vz-land="1"] #overview,
html[data-vz-land="1"] #method,
html[data-vz-land="1"] #eq-link,
html[data-vz-land="1"] footer,
html[data-vz-land="1"] .foot,
html[data-vz-land="1"] .la,
html[data-vz-land="1"] .la-dock,
html[data-vz-land="1"] [data-la],
html[data-vz-land="1"] .ask,
html[data-vz-land="1"] #ask {
    display: none !important;
}

html[data-vz-land="1"] #stage {
    position: fixed;
    left: var(--vz-land-x, 0px);
    top: var(--vz-land-y, 0px);
    width: var(--vz-land-w, 100vw);
    height: var(--vz-land-h, 100dvh);
    margin: 0;
    padding: 0;
    z-index: 80;
    background: #07090C;
    overflow: hidden;
    max-width: none;
}
html[data-vz-land="1"] #stage .wrap,
html[data-vz-land="1"] #stage .console,
html[data-vz-land="1"] #stage .console__body,
html[data-vz-land="1"] #stage .vz-desk {
    display: contents;
}

html[data-vz-land="1"] #stage .eyebrow,
html[data-vz-land="1"] #vz-hed,
html[data-vz-land="1"] #vz-sbar,
html[data-vz-land="1"] #vz-status,
html[data-vz-land="1"] #vz-desk-src,
html[data-vz-land="1"] #vz-desk-stage,
html[data-vz-land="1"] #vz-desk-word,
html[data-vz-land="1"] .vz-mfold,
html[data-vz-land="1"] #vz-file,
html[data-vz-land="1"] #vz-shelf,
html[data-vz-land="1"] #vz-meter,
html[data-vz-land="1"] #vz-fxhead,
html[data-vz-land="1"] #vz-fx,
html[data-vz-land="1"] #vz-slotbar,
html[data-vz-land="1"] #vz-modep,
html[data-vz-land="1"] #vz-modek,
html[data-vz-land="1"] #vz-modepg,
html[data-vz-land="1"] #vz-tsel,
html[data-vz-land="1"] #vz-np,
html[data-vz-land="1"] #vz-mid,
html[data-vz-land="1"] #vz-code {
    display: none !important;
}
/* The transport lives inside this wide field; contents lets #vz-row2
   position against the viewport. Other children are hidden above. */
html[data-vz-land="1"] .vz-desk__f--wide {
    display: contents;
}

/* The picture: edge to edge of the visible viewport. Safe-area insets are
   honoured on the overlay, not by shrinking the canvas into a letterbox. */
html[data-vz-land="1"] #vz-stage {
    position: fixed;
    left: var(--vz-land-x, 0px);
    top: var(--vz-land-y, 0px);
    width: var(--vz-land-w, 100vw);
    height: var(--vz-land-h, 100dvh);
    margin: 0;
    padding: 0;
    aspect-ratio: auto;
    border-radius: 0;
    z-index: 81;
    background: #07090C;
    box-sizing: border-box;
}
html[data-vz-land="1"] #vz-stage .vz-cv {
    width: 100%;
    height: 100%;
    display: block;
}

/* Compact overlay: track name at the top, transport at the bottom.
   Fades after a moment (data-vz-land-ui=0). A tap brings it back. */
html[data-vz-land="1"] #vz-live {
    display: flex !important;
    position: fixed;
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    top: max(8px, env(safe-area-inset-top, 0px));
    z-index: 83;
    width: auto;
    margin: 0;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(7, 9, 12, 0.55);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
    transition: opacity .35s ease;
}
html[data-vz-land="1"] #vz-row2,
html[data-vz-land="1"] #vz-tail,
html[data-vz-land="1"] #vz-transport {
    display: flex !important;
}
html[data-vz-land="1"] #vz-row2 {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 83;
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    transition: opacity .35s ease;
}
html[data-vz-land="1"] #vz-transport {
    gap: 4px;
    padding: 6px 8px;
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
    border-radius: 12px;
    background: rgba(7, 9, 12, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
}
html[data-vz-land="1"] #vz-transport .vz-tk {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    color: #fff;
}
html[data-vz-land="1"][data-vz-land-ui="0"] #vz-live,
html[data-vz-land="1"][data-vz-land-ui="0"] #vz-row2 {
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    html[data-vz-land="1"] #vz-live,
    html[data-vz-land="1"] #vz-row2 { transition: none; }
}

/* A 12-tile grid in a short landscape box is 4x3 so each tile stays wide. */
html[data-vz-land="1"] .vz-stage[data-n="12"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

/* Prevent the assistant or a toast from covering the last tile in portrait
   at very short widths — the chat still exists, the stage just keeps a
   little room at the bottom when it is not immersive. */
@media (max-width: 430px) and (orientation: portrait) {
    body { overflow-x: hidden; }
}

/* -------------------- mode panel: even, equal, centered (570) ------------ */
#vz-modek.vz-modek,
.vz-modek {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.7rem, 1fr));
    gap: 8px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}
#vz-modeg.vz-modeg,
.vz-modeg {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: stretch;
}
.vz-gchip,
.console .vz-gchip,
.vz-modek .vz-mkey,
.console .vz-mkey {
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
    border-radius: 10px;
    padding: 4px 8px;
    font-size: .62rem;
    letter-spacing: .03em;
    line-height: 1.15;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.vz-modek .vz-mkey {
    width: 100%;
    min-width: 0;
}
.vz-mkey__t,
.vz-gchip__t {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
    text-align: center;
    max-width: 100%;
}
/* selected state stays the green lamp, with a 10px corner that matches */
.vz-mkey[aria-pressed="true"],
.vz-gchip[aria-selected="true"],
.vz-gchip[aria-pressed="true"] {
    border-radius: 10px;
}
.vz-gchip--shuf[aria-pressed="true"] {
    background: transparent;
    border-color: #15803D;
    color: #15803D;
    box-shadow: inset 0 0 0 1px #15803D;
}
html[data-dark] .vz-gchip--shuf[aria-pressed="true"] {
    border-color: #4ADE80;
    color: #4ADE80;
    box-shadow: inset 0 0 0 1px #4ADE80;
}
@media (pointer: coarse) {
    .vz-gchip, .console .vz-gchip,
    .vz-modek .vz-mkey, .console .vz-mkey {
        height: 44px;
        min-height: 44px;
    }
}
@media (max-width: 390px) {
    #vz-modek.vz-modek, .vz-modek {
        grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
        gap: 6px;
    }
    .vz-gchip, .console .vz-gchip,
    .vz-modek .vz-mkey, .console .vz-mkey {
        font-size: .58rem;
        padding: 3px 5px;
    }
}
@media (min-width: 1100px) {
    #vz-modek.vz-modek, .vz-modek {
        grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr));
        gap: 8px;
    }
}

/* Landscape: compact Modes sheet that does not eat the picture */
.vz-land-modes { display: none; }
html[data-vz-land="1"] .vz-land-modes {
    display: block;
    position: fixed;
    right: max(12px, env(safe-area-inset-right, 0px));
    top: max(8px, env(safe-area-inset-top, 0px));
    z-index: 85;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: rgba(7, 9, 12, 0.62);
    color: #fff;
    font: inherit;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: opacity .35s ease;
}
html[data-vz-land="1"][data-vz-land-ui="0"] .vz-land-modes {
    opacity: 0;
    pointer-events: none;
}
html[data-vz-land="1"] #vz-modep,
html[data-vz-land="1"] #vz-modek,
html[data-vz-land="1"] #vz-modeg,
html[data-vz-land="1"] #vz-modepg {
    display: none;
}
html[data-vz-land="1"][data-vz-modes="1"] #vz-modep {
    display: block !important;
    position: fixed;
    left: max(8px, env(safe-area-inset-left, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
    bottom: max(58px, env(safe-area-inset-bottom, 0px));
    top: auto;
    z-index: 84;
    max-height: 42%;
    overflow: auto;
    margin: 0;
    padding: 10px;
    border-radius: 12px;
    background: rgba(7, 9, 12, 0.88);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
}
html[data-vz-land="1"][data-vz-modes="1"] #vz-modeg,
html[data-vz-land="1"][data-vz-modes="1"] #vz-modek,
html[data-vz-land="1"][data-vz-modes="1"] #vz-modepg {
    display: flex !important;
}
html[data-vz-land="1"][data-vz-modes="1"] #vz-modek,
html[data-vz-land="1"][data-vz-modes="1"] #vz-modek.vz-modek {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(4.8rem, 1fr));
    gap: 6px;
}
html[data-vz-land="1"][data-vz-modes="1"] .vz-mkey,
html[data-vz-land="1"][data-vz-modes="1"] .vz-gchip {
    color: #e8eaee;
    border-color: rgba(255,255,255,.28);
    height: 36px;
    min-height: 36px;
}
html[data-vz-land="1"][data-vz-modes="1"] .vz-mkey[aria-pressed="true"],
html[data-vz-land="1"][data-vz-modes="1"] .vz-gchip[aria-pressed="true"],
html[data-vz-land="1"][data-vz-modes="1"] .vz-gchip[aria-selected="true"] {
    border-color: #4ADE80;
    color: #4ADE80;
}

/* Shuffle mode chip keeps its words in the symbol rail, or it is an empty ring. */
.console[data-keys="sym"] .vz-gchip--shuf .vz-gchip__t {
    display: block !important;
    font-size: .52rem;
    letter-spacing: .05em;
    line-height: 1.05;
    padding: 0 2px;
}
.console[data-keys="sym"] .vz-gchip--shuf {
    width: auto;
    min-width: 2.75rem;
    padding: 0 .35rem;
}

/* Toasts must not cover the immersive landscape picture.
   Cards are painted into the shared #toast-host (dmt-toast.js). */
html[data-vz-land="1"] #toast-host,
html[data-vz-land="1"] .cw-card,
html[data-vz-land="1"] .cw-cards,
html[data-vz-land="1"] [class*="dmt-toast"],
html[data-vz-land="1"] .dmt-layer {
    display: none !important;
}

/* -------------------- live status, in the Yum style (570) ---------------- */
.vz-status.console__title,
p.console__title.vz-status {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--free);
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    margin: 0 auto 0 0;
    gap: .5rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
}
.vz-status__txt {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.vz-status__dot,
.console__dot.vz-status__dot {
    animation: vz-status-pulse 1.8s ease-in-out infinite;
}
@keyframes vz-status-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent);
    }
    50% {
        opacity: .5;
        transform: scale(.86);
        box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 0%, transparent);
    }
}
.vz-status__cur {
    flex: 0 0 auto;
    width: .4em;
    height: .85em;
    background: var(--free);
    opacity: .9;
    align-self: center;
    animation: vz-status-caret 1.05s steps(1) infinite;
}
@keyframes vz-status-caret {
    0%, 49% { opacity: .9; }
    50%, 100% { opacity: 0; }
}

/* The yum line replaces the labelled segments; they stay in the DOM for
   the existing painters, but they are not shown beside the new sentence. */
#vz-sbar[data-vz-live-status="1"] > .vz-sbar__seg,
#vz-sbar[data-vz-live-status="1"] > #vz-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 640px) {
    .vz-status.console__title,
    p.console__title.vz-status {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        display: block;
        line-height: 1.45;
    }
    .vz-status__dot,
    .console__dot.vz-status__dot {
        display: inline-block;
        vertical-align: .15em;
        margin-right: .45rem;
    }
    .vz-status__txt {
        display: inline;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.45;
        overflow-wrap: anywhere;
        word-break: normal;
    }
    .vz-status__cur {
        display: inline-block;
        vertical-align: -0.1em;
        margin-left: .2rem;
    }
}

/* Landscape: the same sentence lives in the fading overlay, compact,
   wrapping, and never spilling past the safe area. */
html[data-vz-land="1"] #vz-land-status {
    display: flex !important;
    align-items: flex-start;
    gap: .45rem;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.35;
    color: #4ADE80;
    pointer-events: none;
}
html[data-vz-land="1"] #vz-land-status .vz-status__txt {
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
    color: #4ADE80;
}
html[data-vz-land="1"] #vz-land-status .vz-status__cur {
    background: #4ADE80;
}
html[data-vz-land="1"] #vz-live .vz-live__m,
html[data-vz-land="1"] #vz-live .vz-live__d,
html[data-vz-land="1"] #vz-live .vz-live__n,
html[data-vz-land="1"] #vz-live .vz-live__src,
html[data-vz-land="1"] #vz-live .vz-live__dot {
    display: none !important;
}
html[data-vz-land="1"] #vz-live {
    align-items: flex-start;
    max-width: calc(var(--vz-land-w, 100vw) - 7.5rem);
}

@media (prefers-reduced-motion: reduce) {
    .vz-status__dot,
    .vz-status__cur { animation: none; }
    .vz-status__cur { opacity: .55; }
}

/* ========== 570b: even panel rows, landscape sheet, overlay grid ========== */

/* One vertical stack, one gap, shared left/right edges. */
#vz-modep, .vz-modep {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--vz-mgap, 8px);
    width: 100%;
    box-sizing: border-box;
    --vz-mgap: 8px;
}
#vz-modep > .vz-moderail,
.vz-modep > .vz-moderail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--vz-mgap, 8px);
    width: 100%;
    min-width: 0;
}
#vz-modep .vz-moderail > .vz-modeg,
#vz-modep .vz-moderail > .vz-code,
#vz-modep > .vz-modeg,
#vz-modep > .vz-code,
#vz-modep > .vz-modek,
#vz-modep > .vz-modepg {
    width: 100%;
    margin: 0;
    flex: 0 0 auto;
    box-sizing: border-box;
}

/* Category chips: equal cells, never ragged pills. */
#vz-modeg.vz-modeg,
.vz-modeg,
.console #vz-modeg,
.console:not([data-keys="sym"]) .vz-moderail > .vz-modeg {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--vz-mgap, 8px) !important;
    justify-content: stretch;
    align-items: stretch;
    width: 100%;
    flex-wrap: unset;
}
#vz-modeg .vz-gchip,
.console #vz-modeg .vz-gchip,
.console:not([data-keys="sym"]) .vz-modeg .vz-gchip {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 40px;
    min-height: 40px;
    margin: 0 !important;
    border-radius: 10px !important;
    padding: 4px 6px;
    box-sizing: border-box;
}
#vz-modeg .vz-gchip--shuf,
.console #vz-modeg .vz-gchip--shuf {
    grid-column: 1 / -1;
    width: 100% !important;
}

/* Icon row: 6 equal columns, same gap and edges as the tiles. */
#vz-modep .vz-code,
.console #vz-modep .vz-code,
.console:not([data-keys="sym"]) .vz-moderail > .vz-code,
#vz-code.vz-code {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: var(--vz-mgap, 8px) !important;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
}
#vz-modep .vz-code__sq,
.console #vz-modep .vz-code__sq {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: 40px !important;
    height: 40px !important;
    max-height: 40px !important;
    gap: var(--vz-mgap, 8px) !important;
    width: 100%;
    flex: 0 0 auto !important;
}
#vz-modep .vz-sqb,
.console #vz-modep .vz-sqb {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    border-radius: 10px !important;
    box-sizing: border-box;
}

/* Code + O/S/HR: one row, same height, readable 7-character input. */
#vz-modep .vz-code__stack,
.console #vz-modep .vz-code__stack {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(2.5rem, 0.55fr));
    gap: var(--vz-mgap, 8px);
    width: 100%;
    height: auto !important;
    flex-direction: unset !important;
    align-items: stretch !important;
}
#vz-modep .vz-recopts,
.console #vz-modep .vz-recopts {
    display: contents;
}
#vz-modep .vz-codebox,
.console #vz-modep .vz-codebox {
    min-width: 0;
    width: 100%;
    height: 40px;
}
#vz-modep .vz-codebox__i,
.console #vz-modep .vz-codebox__i {
    width: 100% !important;
    max-width: none !important;
    height: 40px !important;
    box-sizing: border-box;
    padding: 0 4.6rem 0 .5rem !important;
    font-size: .72rem !important;
    letter-spacing: .04em !important;
    border-radius: 10px !important;
}
#vz-modep .vz-recopt,
.console #vz-modep .vz-recopt {
    height: 40px !important;
    min-height: 40px;
    min-width: 0 !important;
    margin: 0;
    padding: 0;
    border-radius: 10px !important;
    justify-content: center !important;
    font-size: .62rem !important;
    line-height: 1 !important;
    letter-spacing: .04em;
}

/* Mode tiles stay a strict equal grid, same gap. */
#vz-modek.vz-modek,
.vz-modek,
.console #vz-modek {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--vz-mgap, 8px);
    width: 100%;
}

@media (pointer: coarse) {
    #vz-modeg .vz-gchip,
    .console #vz-modeg .vz-gchip,
    #vz-modep .vz-code__sq,
    .console #vz-modep .vz-code__sq { grid-template-rows: 44px !important; height: 44px !important; max-height: 44px !important; }
    #vz-modep .vz-codebox,
    .console #vz-modep .vz-codebox,
    #vz-modep .vz-codebox__i,
    .console #vz-modep .vz-codebox__i,
    #vz-modep .vz-recopt,
    .console #vz-modep .vz-recopt {
        height: 44px !important;
        min-height: 44px;
    }
}

/* 390 and below: 4 equal columns so names stay whole words. */
@media (max-width: 430px) {
    #vz-modep, .vz-modep { --vz-mgap: 6px; }
    #vz-modeg.vz-modeg,
    .vz-modeg,
    .console #vz-modeg,
    #vz-modek.vz-modek,
    .vz-modek,
    .console #vz-modek {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--vz-mgap, 6px);
    }
    #vz-modeg .vz-gchip__t,
    #vz-modek .vz-mkey__t {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
        letter-spacing: 0.02em;
    }
}

/* 320: 4 equal columns so labels still fit. */
@media (max-width: 340px) {
    #vz-modep, .vz-modep { --vz-mgap: 6px; }
    #vz-modeg.vz-modeg,
    .vz-modeg,
    .console #vz-modeg,
    #vz-modek.vz-modek,
    .vz-modek,
    .console #vz-modek {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    #vz-modep .vz-code__stack,
    .console #vz-modep .vz-code__stack {
        grid-template-columns: minmax(0, 1fr) repeat(3, minmax(2.15rem, 0.5fr));
    }
    #vz-modep .vz-codebox__i,
    .console #vz-modep .vz-codebox__i {
        font-size: .64rem !important;
        letter-spacing: 0 !important;
        padding: 0 3.4rem 0 .3rem !important;
    }
    #vz-modep .vz-codebox__x { right: 2.15rem !important; }
    #vz-modep .vz-codebox__r { right: 1.15rem !important; }
    #vz-modep .vz-codebox__go { right: .2rem !important; }
    #vz-modep .vz-codebox__b { font-size: .7rem !important; }
}

@media (min-width: 700px) and (max-width: 1099px) {
    #vz-modeg.vz-modeg, .vz-modeg, .console #vz-modeg,
    #vz-modek.vz-modek, .vz-modek, .console #vz-modek {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    /* 9 families + shuffle fill two even rows of 5. */
    #vz-modeg .vz-gchip--shuf,
    .console #vz-modeg .vz-gchip--shuf { grid-column: auto; }
}
@media (min-width: 1100px) {
    #vz-modeg.vz-modeg, .vz-modeg, .console #vz-modeg {
        grid-template-columns: repeat(10, minmax(0, 1fr));
    }
    #vz-modeg .vz-gchip--shuf,
    .console #vz-modeg .vz-gchip--shuf { grid-column: auto; }
    #vz-modek.vz-modek, .vz-modek, .console #vz-modek {
        grid-template-columns: repeat(10, minmax(0, 1fr));
    }
}

/* ---- Landscape overlay: mode | description | count | MODES ---- */
html[data-vz-land="1"] #vz-live {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 10px;
    width: auto;
    max-width: none;
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    padding: 6px 12px !important;
    overflow: hidden;
    pointer-events: none;
}
html[data-vz-land="1"] #vz-live .vz-live__m {
    display: block !important;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
}
html[data-vz-land="1"] #vz-live .vz-live__d {
    display: block !important;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255,255,255,.82);
}
html[data-vz-land="1"] #vz-live .vz-live__n {
    display: block !important;
    white-space: nowrap;
    color: rgba(255,255,255,.82);
}
html[data-vz-land="1"] #vz-live .vz-live__src,
html[data-vz-land="1"] #vz-live .vz-live__dot,
html[data-vz-land="1"] #vz-land-status,
html[data-vz-land="1"] .vz-tile__n {
    /* Tile captions sat at 5,5 and poked a letter (S/N/C) out past the overlay. */
    display: none !important;
}
html[data-vz-land="1"] .vz-land-modes {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 28px;
    margin: 0;
    pointer-events: auto;
    opacity: 1;
    top: auto;
    right: auto;
}
html[data-vz-land="1"][data-vz-land-ui="0"] .vz-land-modes {
    opacity: 1; /* visibility follows the strip, which already fades */
}

/* Hide desk leftovers that display:contents would otherwise leak
   (the Symbols key in #vz-tail was painting a stray glyph). */
html[data-vz-land="1"] #vz-tail > :not(#vz-transport),
html[data-vz-land="1"] .vz-symk,
html[data-vz-land="1"] .vz-plat,
html[data-vz-land="1"] .vz-eq,
html[data-vz-land="1"] .vz-mid,
html[data-vz-land="1"] .vz-tip,
html[data-vz-land="1"] .vz-hint,
html[data-vz-land="1"] #vz-curtain,
html[data-vz-land="1"] .vz-desk__l:not(.vz-desk__l--head) {
    display: none !important;
}
/* The transport lives inside this heading. contents lets #vz-row2
   position against the viewport; the heading's other words stay hidden. */
html[data-vz-land="1"] .vz-desk__l--head {
    display: contents !important;
}
html[data-vz-land="1"] .vz-desk__l--head > :not(#vz-row2) {
    display: none !important;
}

/* Modes sheet sits above the dock; hide transport while the sheet is open. */
html[data-vz-land="1"][data-vz-modes="1"] #vz-row2,
html[data-vz-land="1"][data-vz-modes="1"] #vz-transport {
    display: none !important;
}
html[data-vz-land="1"][data-vz-modes="1"] #vz-modep {
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    max-height: 62%;
}
html[data-vz-land="1"][data-vz-modes="1"] #vz-modeg,
html[data-vz-land="1"][data-vz-modes="1"] #vz-modeg.vz-modeg {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}
html[data-vz-land="1"][data-vz-modes="1"] #vz-modek,
html[data-vz-land="1"][data-vz-modes="1"] #vz-modek.vz-modek {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}
html[data-vz-land="1"][data-vz-modes="1"] #vz-modeg .vz-gchip--shuf {
    grid-column: 1 / -1;
}
html[data-vz-land="1"][data-vz-modes="1"] .vz-mkey,
html[data-vz-land="1"][data-vz-modes="1"] .vz-gchip {
    letter-spacing: 0;
    font-size: .55rem;
    height: 34px;
    min-height: 34px;
}
html[data-vz-land="1"][data-vz-modes="1"] .vz-mkey__t,
html[data-vz-land="1"][data-vz-modes="1"] .vz-gchip__t {
    word-break: normal !important;
    overflow-wrap: break-word;
    hyphens: none !important;
    letter-spacing: 0;
}
html[data-vz-land="1"][data-vz-modes="1"] .vz-mkey__t[data-short] {
    font-size: 0 !important;
    line-height: 0;
}
html[data-vz-land="1"][data-vz-modes="1"] .vz-mkey__t[data-short]::after {
    content: attr(data-short);
    font-size: .55rem;
    letter-spacing: 0;
    line-height: 1.15;
    word-break: normal;
    hyphens: none;
}
html[data-vz-land="1"][data-vz-modes="1"] .vz-code,
html[data-vz-land="1"][data-vz-modes="1"] .vz-moderail > .vz-symk,
html[data-vz-land="1"][data-vz-modes="1"] .vz-moderail > .vz-foldk,
html[data-vz-land="1"][data-vz-modes="1"] .vz-moderail > .vz-modekr,
html[data-vz-land="1"][data-vz-modes="1"] .vz-moderail > .vz-mdiv {
    display: none !important;
}


/* Beat the portrait #vz-code.vz-code { display:flex !important } when the sheet is open. */
html[data-vz-land="1"][data-vz-modes="1"] #vz-code,
html[data-vz-land="1"][data-vz-modes="1"] #vz-code.vz-code,
html[data-vz-land="1"][data-vz-modes="1"] .vz-moderail > #vz-code,
html[data-vz-land="1"][data-vz-modes="1"] .vz-code__sq,
html[data-vz-land="1"][data-vz-modes="1"] .vz-code__stack {
    display: none !important;
}
/* Keep the dock visible whenever the sheet is closed and the overlay is up. */
html[data-vz-land="1"]:not([data-vz-modes="1"])[data-vz-land-ui="1"] #vz-row2,
html[data-vz-land="1"]:not([data-vz-modes="1"])[data-vz-land-ui="1"] #vz-tail,
html[data-vz-land="1"]:not([data-vz-modes="1"])[data-vz-land-ui="1"] #vz-transport {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* Readable 7-character codes on a phone: less reserved padding, no letter-spacing. */
@media (max-width: 430px) {
    #vz-modep .vz-codebox__i,
    .console #vz-modep .vz-codebox__i,
    #vz-code .vz-codebox__i {
        letter-spacing: 0 !important;
        font-size: .7rem !important;
        padding: 0 3rem 0 .4rem !important;
    }
    #vz-modep .vz-codebox__x { right: 2.05rem !important; }
    #vz-modep .vz-codebox__r { right: 1.1rem !important; }
    #vz-modep .vz-codebox__go { right: .18rem !important; }
}
@media (max-width: 340px) {
    #vz-modeg .vz-gchip,
    #vz-modek .vz-mkey,
    .console #vz-modeg .vz-gchip,
    .console #vz-modek .vz-mkey {
        font-size: .52rem !important;
        letter-spacing: 0 !important;
        padding: 3px 3px !important;
    }
}


/* ---- 570c: no-orphan category grid, full-width icon cells, sheet bounds ---- */

/* Portrait phones: 9 family chips in a 3x3, Shuffle full-width underneath. */
@media (max-width: 480px) {
    #vz-modeg.vz-modeg,
    .vz-modeg,
    .console #vz-modeg,
    .console:not([data-keys="sym"]) .vz-moderail > .vz-modeg {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    #vz-modeg .vz-gchip--shuf,
    .console #vz-modeg .vz-gchip--shuf {
        grid-column: 1 / -1 !important;
    }
}

/* Mid portrait (tablets in between 3-col and 5+5): stay 3x3, no leftover row of 4. */
@media (min-width: 481px) and (max-width: 699px) {
    #vz-modeg.vz-modeg,
    .vz-modeg,
    .console #vz-modeg,
    .console:not([data-keys="sym"]) .vz-moderail > .vz-modeg {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    #vz-modeg .vz-gchip--shuf,
    .console #vz-modeg .vz-gchip--shuf {
        grid-column: 1 / -1 !important;
    }
}

/* Phone landscape: 9 equal columns when the sheet is wide enough; 3x3 under 800px
   so ALL MODES / REACTORS never truncate. Shuffle stays a full-width toggle. */
html[data-vz-land="1"][data-vz-modes="1"] #vz-modeg,
html[data-vz-land="1"][data-vz-modes="1"] #vz-modeg.vz-modeg {
    display: grid !important;
    grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
}
html[data-vz-land="1"][data-vz-modes="1"] #vz-modeg .vz-gchip,
html[data-vz-land="1"][data-vz-modes="1"] #vz-modeg .vz-gchip__t {
    min-width: 0 !important;
    letter-spacing: 0 !important;
    padding: 2px 2px !important;
    font-size: .5rem !important;
}
html[data-vz-land="1"][data-vz-modes="1"] #vz-modeg .vz-gchip--shuf {
    grid-column: 1 / -1 !important;
    font-size: .55rem !important;
    padding: 4px 6px !important;
}
@media (max-height: 700px) and (max-width: 799px) {
    html[data-vz-land="1"][data-vz-modes="1"] #vz-modeg,
    html[data-vz-land="1"][data-vz-modes="1"] #vz-modeg.vz-modeg {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    html[data-vz-land="1"][data-vz-modes="1"] #vz-modeg .vz-gchip,
    html[data-vz-land="1"][data-vz-modes="1"] #vz-modeg .vz-gchip__t {
        font-size: .55rem !important;
        padding: 3px 4px !important;
    }
}

/* Icon row: cells fill the same left/right edges and gap as the tile grid.
   site.css paints a 20–28px ::before square in the middle of a 32px button;
   stretch the chrome to the cell so they are no longer inset. */
#vz-modep .vz-code__sq,
.console #vz-modep .vz-code__sq {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-template-rows: 40px !important;
    height: 40px !important;
    max-height: 40px !important;
    gap: var(--vz-mgap, 8px) !important;
    width: 100% !important;
    margin: 0 !important;
    justify-content: stretch !important;
}
#vz-modep .vz-sqb,
.console #vz-modep .vz-sqb {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    max-height: 40px !important;
    border-radius: 10px !important;
    margin: 0 !important;
    justify-self: stretch;
}
#vz-modep .vz-sqb::before,
.console #vz-modep .vz-sqb::before {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    border-radius: 10px !important;
}
@media (pointer: coarse) {
    #vz-modep .vz-code__sq,
    .console #vz-modep .vz-code__sq {
        grid-template-rows: 44px !important;
        height: 44px !important;
        max-height: 44px !important;
    }
    #vz-modep .vz-sqb,
    .console #vz-modep .vz-sqb {
        height: 44px !important;
        max-height: 44px !important;
    }
}

/* Landscape modes sheet: stay inside the visual viewport, scroll internally. */
html[data-vz-land="1"][data-vz-modes="1"] #vz-modep {
    display: block !important;
    position: fixed !important;
    left: max(14px, env(safe-area-inset-left, 0px)) !important;
    right: max(14px, env(safe-area-inset-right, 0px)) !important;
    width: auto !important;
    max-width: calc(var(--vz-land-w, 100vw) - 28px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    top: auto !important;
    bottom: max(14px, env(safe-area-inset-bottom, 0px)) !important;
    /* visual viewport minus the top overlay strip (~8+44) minus 14px gaps */
    max-height: calc(var(--vz-land-h, 100dvh) - var(--vz-land-y, 0px) - 8px - 44px - 14px - max(14px, env(safe-area-inset-bottom, 0px))) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 10px !important;
}
html[data-vz-land="1"][data-vz-modes="1"] #vz-modek,
html[data-vz-land="1"][data-vz-modes="1"] #vz-modek.vz-modek,
html[data-vz-land="1"][data-vz-modes="1"] #vz-modeg,
html[data-vz-land="1"][data-vz-modes="1"] #vz-modepg {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}


/* ---- 570d: Labs-style status bar, compact stage spacing ---- */

/* The yum sentence (green monospace, caret) is retired. Neutralise leftovers. */
.vz-status__cur { display: none !important; }
.vz-status__txt { display: none !important; }

/* Pull the status out of the console's white header so it reads as a slim
   bar of its own, and the desk keeps the card. */
#stage .console:has(> #vz-sbar[data-vz-live-status="1"]) {
    background: transparent;
    border: 0;
    overflow: visible;
    border-radius: 0;
}
#stage .console:has(> #vz-sbar[data-vz-live-status="1"]) > .console__body {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--sur-1, rgba(30, 38, 43, .025));
    overflow: hidden;
}

#vz-sbar[data-vz-live-status="1"] {
    display: grid !important;
    grid-template-columns: auto minmax(0, auto) minmax(0, 1fr) auto;
    grid-template-areas: "dot lead chips tools";
    align-items: center;
    column-gap: 8px !important;
    row-gap: 4px !important;
    box-sizing: border-box;
    width: 100%;
    height: auto !important;
    min-height: 36px;
    max-width: 100%;
    margin: 0 0 10px;
    padding: 5px 6px 5px 10px !important;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    overflow: hidden;
    flex: 0 0 auto;
    gap: 4px 8px !important;
}

/* The old console heading is emptied and hidden; its word is restyled
   as .vz-status__brand on the chip row. */
#vz-sbar[data-vz-live-status="1"] > .console__title,
#vz-sbar[data-vz-live-status="1"] > p.console__title.vz-status,
#vz-sbar[data-vz-live-status="1"] > p.console__title {
    display: none !important;
}

/* State dot: accent while something is sounding, grey when it is not.
   A soft pulse only while live — never a second grey ghost beside it. */
#vz-sbar[data-vz-live-status="1"] .vz-status__dot,
#vz-sbar[data-vz-live-status="1"] #vz-dot.console__dot,
#vz-sbar[data-vz-live-status="1"] .console__dot.vz-status__dot {
    display: block;
    flex: 0 0 auto;
    width: 6px !important;
    height: 6px !important;
    margin: 0 !important;
    border-radius: 50%;
    background: var(--muted) !important;
    box-shadow: none !important;
    animation: none !important;
    transform: none !important;
}
#vz-sbar[data-vz-live-status="1"][data-vz-playing="1"] .vz-status__dot,
#vz-sbar[data-vz-live-status="1"] .vz-status__dot[data-live],
#vz-sbar[data-vz-live-status="1"] #vz-dot[data-live] {
    background: var(--accent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent) !important;
    animation: vz-status-live 1.8s ease-in-out infinite !important;
}
@keyframes vz-status-live {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
    #vz-sbar[data-vz-live-status="1"] .vz-status__dot,
    #vz-sbar[data-vz-live-status="1"] #vz-dot[data-live] {
        animation: none !important;
        opacity: 1 !important;
    }
}

#vz-sbar[data-vz-live-status="1"] .vz-status__dot,
#vz-sbar[data-vz-live-status="1"] #vz-dot {
    grid-area: dot;
    align-self: center;
}
.vz-status__lead {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    grid-area: lead;
    justify-self: start;
}
.vz-status__state {
    flex: 0 0 auto;
    font-weight: 650;
    font-size: .8rem;
    color: var(--ink);
    letter-spacing: 0;
    text-transform: none;
}
.vz-status__track {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    font-size: .8rem;
    color: var(--ink);
}

/* Chip row: small "Vizzi" label, then a scrollable chip track with a
   fade on the trailing edge so a long chip is never hard-clipped. */
.vz-status__row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    grid-area: chips;
}
.vz-status__brand {
    flex: 0 0 auto;
    font-family: inherit;
    font-size: .62rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
    line-height: 1;
}
.vz-status__chips {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding: 1px 18px 1px 0;
}
.vz-status__chips::-webkit-scrollbar { display: none; }
.vz-status__chips.is-overflow {
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
}
.vz-status__chip {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 22px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Cards toggle and the minimise key sit together at the right. */
.vz-status__tools {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    margin: 0;
    grid-area: tools;
}
#vz-sbar[data-vz-live-status="1"] > .vz-status__tools > #vz-cards,
#vz-sbar[data-vz-live-status="1"] #vz-cards.vz-cards {
    margin: 0 !important;
    width: 26px;
    height: 26px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
}
#vz-sbar[data-vz-live-status="1"] #vz-cards.vz-cards[aria-pressed="true"] {
    color: var(--accent);
    border-color: var(--line);
}
.vz-status__fold {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 26px;
    height: 26px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--ink-55, var(--muted));
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.vz-status__fold:hover {
    color: var(--ink);
    border-color: var(--line);
}
.vz-status__fold:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.vz-status__fold svg { display: block; }

/* Minimised: just the dot, the state and the track, one short line. */
#vz-sbar[data-vz-status-min="1"] {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "dot lead tools";
}
#vz-sbar[data-vz-status-min="1"] .vz-status__row,
#vz-sbar[data-vz-status-min="1"] .vz-status__brand,
#vz-sbar[data-vz-status-min="1"] .vz-status__chips {
    display: none !important;
}
#vz-sbar[data-vz-status-min="1"] .vz-status__lead {
    max-width: none;
}

/* Phone: at most two tidy lines — lead + tools on the first, a scrollable
   chip row with a fade on the second. No wrapping mid-word. */
@media (max-width: 700px) {
    #vz-sbar[data-vz-live-status="1"] {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "dot lead tools"
            "chips chips chips";
        padding: 6px 6px 6px 10px !important;
    }
    #vz-sbar[data-vz-status-min="1"] {
        grid-template-areas: "dot lead tools";
        grid-template-rows: auto;
        row-gap: 0;
    }
}

/* Tight headline-to-bar gap. The stage wrap keeps the same max-width
   and gutters as the header nav (.wrap / .nav__in: --measure, --gutter)
   so the heading, status bar, panel and canvas line up with the logo
   and menu. Landscape immersive stays full-bleed. */
#stage .vz-hed { margin: 0 0 .7rem; }
#stage .eyebrow { margin: 0 0 .85rem; }
html:not([data-vz-land="1"]) #stage {
    padding-left: 0;
    padding-right: 0;
}
html:not([data-vz-land="1"]) #stage .wrap {
    max-width: var(--measure);
    margin-left: auto;
    margin-right: auto;
    padding-inline: 16px;
}
@media (min-width: 761px) {
    /* Same gutter token as .nav__in, so at a desk the heading, bar,
       panel and canvas share the nav's left and right edges (~36–56px). */
    html:not([data-vz-land="1"]) #stage .wrap {
        padding-inline: var(--gutter);
    }
}
@media (max-width: 760px) {
    #stage .console:has(> #vz-sbar[data-vz-live-status="1"]) > .console__body {
        --cb-pad: 16px;
        padding: 16px;
    }
}
@media (min-width: 761px) {
    #stage .console:has(> #vz-sbar[data-vz-live-status="1"]) > .console__body {
        --cb-pad: 1.1rem;
    }
}

/* Immersive landscape: the console status bar stays hidden; do not resurrect
   the old overlay sentence. */
html[data-vz-land="1"] #vz-sbar,
html[data-vz-land="1"] #vz-status,
html[data-vz-land="1"] #vz-land-status,
html[data-vz-land="1"] .vz-status__tools,
html[data-vz-land="1"] .vz-status__fold {
    display: none !important;
}

/* Dark edition: tokens already flip; keep the slim bar on paper and chips muted. */
html[data-dark] #vz-sbar[data-vz-live-status="1"] {
    background: var(--paper);
    border-color: var(--line);
}
html[data-dark] .vz-status__chip {
    color: var(--muted);
    border-color: var(--line);
}
html[data-dark] .vz-status__state,
html[data-dark] .vz-status__track {
    color: var(--ink);
}
html[data-dark] .vz-status__brand {
    color: var(--muted);
}

@media (max-width: 360px) {
    .vz-status__chip { padding: 0 6px; font-size: .64rem; }
    .vz-status__brand { font-size: .58rem; }
}


/* ========== 570e: compact mode panel, pinned tools, nav-aligned stage =====
   Symbols: 34px square keys, 4px gap, auto-fill, packed with no leftover
   stretch. Words: compact auto-width chips. Category chips are auto-width
   too. Source icons + the word field share one toolbar. Collapse, view
   toggle and the pager sit in a pinned tools cluster at the right of the
   first row, so they do not jump when the view changes. Split-key ticks
   (the stray underlines) are off. Landscape immersive is left alone.
   ======================================================================== */

html:not([data-vz-land="1"]) #vz-modep,
html:not([data-vz-land="1"]) .vz-modep {
    --vz-mgap: 4px;
    --vz-key: 34px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto;
    gap: 6px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}
html:not([data-vz-land="1"]) #vz-modep > .vz-moderail,
html:not([data-vz-land="1"]) .vz-modep > .vz-moderail {
    display: contents !important;
}

/* Row 1: family chips on the left, tools pinned on the right. */
html:not([data-vz-land="1"]) #vz-modeg,
html:not([data-vz-land="1"]) .console #vz-modeg,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) .vz-moderail > .vz-modeg,
html:not([data-vz-land="1"]) .console[data-keys="sym"] .vz-modeg {
    display: flex !important;
    flex-wrap: wrap;
    gap: var(--vz-mgap, 4px) !important;
    justify-content: flex-start;
    align-items: center;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    justify-self: stretch;
    box-sizing: border-box;
    grid-column: 1;
    grid-row: 1;
}
html:not([data-vz-land="1"]) #vz-modeg .vz-gchip,
html:not([data-vz-land="1"]) .console #vz-modeg .vz-gchip,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) .vz-modeg .vz-gchip,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modeg .vz-gchip {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 34px;
    min-height: 34px;
    margin: 0 !important;
    padding: 0 10px;
    border-radius: 10px !important;
    box-sizing: border-box;
    font-size: .62rem;
    letter-spacing: .03em;
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modeg .vz-gchip {
    width: var(--vz-key, 34px) !important;
    min-width: var(--vz-key, 34px) !important;
    padding: 0;
    justify-content: center;
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modeg .vz-gchip--shuf {
    width: auto !important;
    min-width: var(--vz-key, 34px) !important;
    padding: 0 8px;
    grid-column: auto;
}
html:not([data-vz-land="1"]) #vz-modeg .vz-gchip--shuf,
html:not([data-vz-land="1"]) .console #vz-modeg .vz-gchip--shuf {
    grid-column: auto;
    width: auto !important;
}

html:not([data-vz-land="1"]) .vz-modep__tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: var(--vz-mgap, 4px);
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    min-width: 0;
}
html:not([data-vz-land="1"]) .vz-modep__tools .vz-symk--rail,
html:not([data-vz-land="1"]) .vz-modep__tools .vz-foldk {
    margin: 0 !important;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex: 0 0 auto;
}
html:not([data-vz-land="1"]) .vz-modep__tools #vz-modepg,
html:not([data-vz-land="1"]) .vz-modep__tools .vz-modepg {
    display: flex;
    gap: 3px;
    margin: 0;
}
html:not([data-vz-land="1"]) .vz-modep__tools .vz-modepg[hidden],
html:not([data-vz-land="1"]) .vz-modep__tools #vz-modepg[hidden] {
    display: none !important;
}

/* Row 2: one toolbar — source squares, flexing word field, S/HR/glyph. */
html:not([data-vz-land="1"]) #vz-modep .vz-code,
html:not([data-vz-land="1"]) .console #vz-modep .vz-code,
html:not([data-vz-land="1"]) #vz-code.vz-code {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: var(--vz-mgap, 4px) !important;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    grid-column: 1 / -1;
    grid-row: 2;
}
html:not([data-vz-land="1"]) #vz-modep .vz-code__sq,
html:not([data-vz-land="1"]) .console #vz-modep .vz-code__sq {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--vz-mgap, 4px) !important;
    width: auto !important;
    max-width: max-content !important;
    height: var(--vz-key, 34px) !important;
    max-height: var(--vz-key, 34px) !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
}
html:not([data-vz-land="1"]) #vz-modep .vz-sqb,
html:not([data-vz-land="1"]) .console #vz-modep .vz-sqb {
    width: var(--vz-key, 34px) !important;
    min-width: var(--vz-key, 34px) !important;
    height: var(--vz-key, 34px) !important;
    border-radius: 10px !important;
    box-sizing: border-box;
}
html:not([data-vz-land="1"]) #vz-modep .vz-code__stack,
html:not([data-vz-land="1"]) .console #vz-modep .vz-code__stack {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center !important;
    gap: var(--vz-mgap, 4px);
    width: auto !important;
    min-width: 7rem !important;
    height: auto !important;
    grid-template-columns: none !important;
}
html:not([data-vz-land="1"]) #vz-modep .vz-recopts,
html:not([data-vz-land="1"]) .console #vz-modep .vz-recopts {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--vz-mgap, 4px);
}
html:not([data-vz-land="1"]) #vz-modep .vz-codebox,
html:not([data-vz-land="1"]) .console #vz-modep .vz-codebox {
    flex: 1 1 auto;
    min-width: 7rem;
    width: auto;
    height: var(--vz-key, 34px);
}
html:not([data-vz-land="1"]) #vz-modep .vz-codebox__i,
html:not([data-vz-land="1"]) .console #vz-modep .vz-codebox__i {
    width: 100% !important;
    max-width: none !important;
    height: var(--vz-key, 34px) !important;
    box-sizing: border-box;
    padding: 0 4.6rem 0 .5rem !important;
    font-size: .72rem !important;
    letter-spacing: .04em !important;
    border-radius: 10px !important;
}
html:not([data-vz-land="1"]) #vz-modep .vz-recopt,
html:not([data-vz-land="1"]) .console #vz-modep .vz-recopt {
    width: var(--vz-key, 34px);
    height: var(--vz-key, 34px) !important;
    min-height: var(--vz-key, 34px);
    min-width: var(--vz-key, 34px) !important;
    margin: 0;
    padding: 0;
    border-radius: 10px !important;
    justify-content: center !important;
    font-size: .62rem !important;
    line-height: 1 !important;
}

/* Rail leftovers stay out of the way: keys live in #vz-modek only. */
html:not([data-vz-land="1"]) #vz-modep .vz-mdiv,
html:not([data-vz-land="1"]) #vz-modep .vz-modekr,
html:not([data-vz-land="1"]) #vz-modekr {
    display: none !important;
}

/* Row 3: the mode keys. */
html:not([data-vz-land="1"]) #vz-modek.vz-modek,
html:not([data-vz-land="1"]) #vz-modek,
html:not([data-vz-land="1"]) .console #vz-modek {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Symbols: tight 34px squares, auto-fill, no stretched blank tiles. */
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modek,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modek.vz-modek {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, var(--vz-key, 34px)) !important;
    gap: var(--vz-mgap, 4px) !important;
    justify-content: start;
    width: 100% !important;
    max-width: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible;
    min-height: 0 !important;
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modek .vz-mkey,
html:not([data-vz-land="1"]) .console[data-keys="sym"] .vz-msplit > .vz-mkey,
html:not([data-vz-land="1"]) .console[data-keys="sym"] .vz-msplit > .vz-mkey + .vz-mkey {
    width: var(--vz-key, 34px) !important;
    min-width: var(--vz-key, 34px) !important;
    height: var(--vz-key, 34px) !important;
    min-height: var(--vz-key, 34px) !important;
    padding: 0 !important;
    margin: 0;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    background: none !important;
    position: relative;
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modek .vz-mkey__g {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modek .vz-mkey[aria-pressed="true"] {
    color: #15803D;
    border-color: #15803D !important;
    box-shadow: inset 0 0 0 1px #15803D !important;
    background: none !important;
    z-index: 1;
}
html[data-dark]:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modek .vz-mkey[aria-pressed="true"] {
    color: #4ADE80;
    border-color: #4ADE80 !important;
    box-shadow: inset 0 0 0 1px #4ADE80 !important;
}
/* stray split underlines off */
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modek .vz-mkey[data-split]::after,
html:not([data-vz-land="1"]) .console[data-keys="sym"] .vz-mkey[data-split]::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* Words: compact auto-width chips, wrap to a few tight rows. */
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modek,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modek.vz-modek {
    display: flex !important;
    flex-wrap: wrap;
    gap: var(--vz-mgap, 4px) !important;
    justify-content: flex-start;
    align-items: stretch;
    grid-template-columns: none !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modek .vz-mkey {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto;
    height: 34px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px !important;
    font-size: .62rem;
    letter-spacing: .03em;
    box-sizing: border-box;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modek .vz-mkey[aria-pressed="true"] {
    border-color: #15803D;
    color: #15803D;
    box-shadow: inset 0 0 0 1px #15803D;
}
html[data-dark]:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modek .vz-mkey[aria-pressed="true"] {
    border-color: #4ADE80;
    color: #4ADE80;
    box-shadow: inset 0 0 0 1px #4ADE80;
}

/* A 10px corner on every selected chip, including families. */
html:not([data-vz-land="1"]) #vz-modeg .vz-gchip[aria-selected="true"],
html:not([data-vz-land="1"]) #vz-modeg .vz-gchip[aria-pressed="true"],
html:not([data-vz-land="1"]) #vz-modek .vz-mkey[aria-pressed="true"] {
    border-radius: 10px !important;
}

/* Folded: hide the keys, not the tools cluster. */
@media (min-width: 701px) {
    html:not([data-vz-land="1"]) .console[data-fold-modes="closed"] #vz-modek {
        display: none !important;
    }
}

/* Phone: keep the 34px squares, more rows, no overflow. The phone uses
   the heading symbols key (.vz-symk--head) and the desk fold, so the
   rail tools hide as they always have. */
@media (max-width: 700px) {
    html:not([data-vz-land="1"]) #vz-modep,
    html:not([data-vz-land="1"]) .vz-modep {
        --vz-mgap: 4px;
        --vz-key: 34px;
        grid-template-columns: minmax(0, 1fr) !important;
    }
    /* Pager sits under the chips, not in a second column that
       squeezes them to a single min-content track. */
    html:not([data-vz-land="1"]) #vz-modeg { grid-column: 1; grid-row: 1; }
    html:not([data-vz-land="1"]) .vz-modep__tools {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
        width: auto;
        max-width: 100%;
    }
    html:not([data-vz-land="1"]) .vz-modep__tools:not(:has(#vz-modepg:not([hidden]))) {
        display: none;
    }
    html:not([data-vz-land="1"]) #vz-modep .vz-code,
    html:not([data-vz-land="1"]) .console #vz-modep .vz-code,
    html:not([data-vz-land="1"]) #vz-code.vz-code {
        grid-row: 3 !important;
        grid-column: 1 / -1;
    }
    html:not([data-vz-land="1"]) #vz-modek,
    html:not([data-vz-land="1"]) #vz-modek.vz-modek,
    html:not([data-vz-land="1"]) .console #vz-modek {
        grid-row: 4 !important;
        grid-column: 1 / -1;
    }
    html:not([data-vz-land="1"]) .vz-modep__tools .vz-pg {
        width: 28px;
        height: 28px;
        padding: 0;
        border-radius: 10px;
        box-sizing: border-box;
    }
    html:not([data-vz-land="1"]) #vz-modep .vz-code,
    html:not([data-vz-land="1"]) .console #vz-modep .vz-code {
        flex-wrap: wrap !important;
    }
    html:not([data-vz-land="1"]) #vz-modep .vz-code__stack,
    html:not([data-vz-land="1"]) .console #vz-modep .vz-code__stack {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    html:not([data-vz-land="1"]) #vz-modep .vz-codebox,
    html:not([data-vz-land="1"]) .console #vz-modep .vz-codebox {
        min-width: 0;
    }
}
@media (max-width: 360px) {
    html:not([data-vz-land="1"]) #vz-modep,
    html:not([data-vz-land="1"]) .vz-modep { --vz-key: 32px; }
    html:not([data-vz-land="1"]) #vz-modep .vz-codebox__i,
    html:not([data-vz-land="1"]) .console #vz-modep .vz-codebox__i {
        padding: 0 3.4rem 0 .3rem !important;
        font-size: .64rem !important;
        letter-spacing: 0 !important;
    }
}

/* Touch: keep the 34px pack; 44px squares would blow the 2-row budget. */
@media (pointer: coarse) {
    html:not([data-vz-land="1"]) #vz-modeg .vz-gchip,
    html:not([data-vz-land="1"]) .console #vz-modeg .vz-gchip,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modek .vz-mkey,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modek .vz-mkey,
    html:not([data-vz-land="1"]) #vz-modep .vz-codebox,
    html:not([data-vz-land="1"]) #vz-modep .vz-codebox__i,
    html:not([data-vz-land="1"]) #vz-modep .vz-recopt {
        height: var(--vz-key, 34px) !important;
        min-height: var(--vz-key, 34px) !important;
    }
    html:not([data-vz-land="1"]) #vz-modep .vz-code__sq {
        height: var(--vz-key, 34px) !important;
        max-height: var(--vz-key, 34px) !important;
    }
}

/* ==========================================================================
   570f — one continuous symbols flow (family + keys + compact code + tools
   on row 1, remaining keys flush on row 2); compact word fields in both
   views; Composer Play accent on the header Play and the transport Play.
   ========================================================================== */

html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep,
html:not([data-vz-land="1"]) .console[data-keys="sym"] .vz-modep {
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--vz-gap, 4px);
    --vz-gap: 4px;
    --vz-key: 28px;
    grid-template-columns: none;
    grid-template-rows: none;
}

/* Row 1: one continuous rail. display:contents from 570e is undone so
   the reserved middle (#vz-modekr, flex:1) can pin the tools at the right. */
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep > .vz-moderail {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--vz-gap, 4px);
    width: 100%;
    min-width: 0;
}

html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modeg {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--vz-gap, 4px);
    flex: 0 0 auto;
    width: auto !important;
    max-width: none;
}

/* Family + shuffle: icon-only squares at the shared tile size. */
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modeg .vz-gchip,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modeg .vz-gchip--shuf {
    width: var(--vz-key, 28px) !important;
    height: var(--vz-key, 28px) !important;
    min-width: var(--vz-key, 28px) !important;
    min-height: var(--vz-key, 28px) !important;
    max-width: var(--vz-key, 28px) !important;
    max-height: var(--vz-key, 28px) !important;
    padding: 0 !important;
    flex: 0 0 var(--vz-key, 28px) !important;
    border-radius: 4px !important;
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modeg .vz-gchip__t {
    display: none !important;
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modeg .vz-gchip__g {
    display: block !important;
    width: 16px;
    height: 16px;
}

/* Reserved middle: hoisted keys, left-aligned, same pitch. Grows so the
   code desk and the tools stay pinned at the right of the rail. */
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modekr {
    display: flex !important;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: var(--vz-gap, 4px);
    min-width: 0;
    width: calc(var(--rail-n, 0) * (var(--vz-key, 28px) + var(--vz-gap, 4px)) - var(--vz-gap, 4px));
    max-width: calc(var(--rail-n, 0) * (var(--vz-key, 28px) + var(--vz-gap, 4px)) - var(--vz-gap, 4px));
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modekr .vz-mkey {
    width: var(--vz-key, 28px) !important;
    height: var(--vz-key, 28px) !important;
    min-width: var(--vz-key, 28px) !important;
    min-height: var(--vz-key, 28px) !important;
    max-width: var(--vz-key, 28px) !important;
    flex: 0 0 var(--vz-key, 28px) !important;
    border-radius: 4px !important;
}

/* Compact code desk: six source squares + a 116px field, O/S/HR underneath.
   Never flex-stretches. */
html:not([data-vz-land="1"]) #vz-modep #vz-code {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: var(--vz-gap, 4px);
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
}
html:not([data-vz-land="1"]) #vz-modep .vz-code__sq {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--vz-gap, 4px);
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
}
html:not([data-vz-land="1"]) #vz-modep .vz-sqb,
html:not([data-vz-land="1"]) #vz-modep .vz-recopt {
    width: var(--vz-key, 28px) !important;
    height: var(--vz-key, 28px) !important;
    min-width: var(--vz-key, 28px) !important;
    min-height: var(--vz-key, 28px) !important;
    max-width: var(--vz-key, 28px) !important;
    flex: 0 0 var(--vz-key, 28px) !important;
    padding: 0 !important;
}
html:not([data-vz-land="1"]) #vz-modep .vz-code__stack {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    flex: 0 0 116px !important;
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
}
html:not([data-vz-land="1"]) #vz-modep .vz-codebox__i,
html:not([data-vz-land="1"]) .console #vz-modep .vz-codebox__i {
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    height: var(--vz-key, 28px) !important;
    min-height: var(--vz-key, 28px) !important;
    flex: 0 0 116px !important;
    padding: 0 .3rem !important;
    font-size: .68rem !important;
}
html:not([data-vz-land="1"]) #vz-modep .vz-recopts,
html:not([data-vz-land="1"]) .console #vz-modep .vz-recopts,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-recopts,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep .vz-recopts {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
    width: 116px !important;
    max-width: 116px !important;
    height: 11px !important;
    flex: 0 0 auto !important;
}
html:not([data-vz-land="1"]) #vz-modep .vz-recopt,
html:not([data-vz-land="1"]) .console #vz-modep .vz-recopt,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-recopt {
    width: auto !important;
    height: 11px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    font-size: .44rem !important;
    line-height: 9px !important;
    flex: 0 0 auto !important;
}
html:not([data-vz-land="1"]) #vz-modep .vz-codebox,
html:not([data-vz-land="1"]) .console #vz-modep .vz-codebox {
    position: relative !important;
    display: block !important;
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    flex: 0 0 116px !important;
    height: var(--vz-key, 28px) !important;
}

/* Tools pinned at the far right of row 1. */
html:not([data-vz-land="1"]) .console[data-keys="sym"] .vz-modep__tools,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) .vz-modep__tools {
    display: flex !important;
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    gap: var(--vz-gap, 4px);
    align-items: center;
}
html:not([data-vz-land="1"]) .console .vz-modep__tools .vz-symk--rail,
html:not([data-vz-land="1"]) .console[data-keys="sym"] .vz-modep__tools .vz-symk--rail,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) .vz-modep__tools .vz-symk--rail,
html:not([data-vz-land="1"]) .console .vz-modep__tools #vz-fold-modes,
html:not([data-vz-land="1"]) .console[data-keys="sym"] .vz-modep__tools #vz-fold-modes,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) .vz-modep__tools #vz-fold-modes {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    flex: 0 0 34px !important;
}
html:not([data-vz-land="1"]) .console .vz-modep__tools {
    margin-left: auto !important;
}

/* Row 2: remaining mode keys, even columns, flush (1fr + aspect-ratio). */
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modek,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modek.vz-modek,
html:not([data-vz-land="1"]) .console[data-keys="sym"] .console #vz-modek {
    display: grid !important;
    grid-template-columns: repeat(var(--sym-cols, 27), minmax(0, 1fr)) !important;
    grid-auto-rows: auto;
    gap: var(--vz-gap, 4px) !important;
    width: 100% !important;
    max-width: none;
    grid-column: auto;
    grid-row: auto;
    flex: 0 0 auto;
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modek .vz-mkey {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1;
    flex: none !important;
    border-radius: 4px !important;
}

/* Divider stays hidden: the flow is continuous, not a labelled split. */
html:not([data-vz-land="1"]) .console[data-keys="sym"] .vz-mdiv { display: none !important; }

/* Phones: family wraps at the same even column count; tools stay off
   (the 570e mobile hide still applies). Code desk stays compact. */
@media (max-width: 700px) {
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep > .vz-moderail {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modeg,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] .vz-moderail > .vz-modeg {
        display: grid !important;
        grid-template-columns: repeat(5, var(--vz-key, 28px));
        justify-content: start;
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100%;
    }
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modekr {
        display: none !important;
    }
    html:not([data-vz-land="1"]) #vz-modep #vz-code {
        flex-wrap: wrap;
    }
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modek,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modek.vz-modek {
        grid-template-columns: repeat(var(--sym-cols, 9), minmax(0, 1fr)) !important;
    }
}

/* Words: 9 even columns on a desk (54 = 6×9), so the last row is flush.
   Phones keep compact auto-width chips and the existing pager. */
@media (min-width: 701px) {
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modek,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modek.vz-modek,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) .console #vz-modek {
        display: grid !important;
        grid-template-columns: repeat(var(--word-cols, 9), minmax(0, 1fr)) !important;
        gap: 6px 8px !important;
        width: 100% !important;
        flex-wrap: nowrap;
    }
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modek .vz-mkey,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modek.vz-modek .vz-mkey {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 34px !important;
        flex: none !important;
    }
}
@media (max-width: 700px) {
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modek .vz-mkey {
        flex: 1 1 auto !important;
        min-width: 5.2rem;
        max-width: none;
    }
}

/* Top YOUR WORD field — cap at 220px, both views. Do not let the 24-col
   desk stretch it across the remaining columns. */
html:not([data-vz-land="1"]) #vz-desk-word {
    justify-items: start;
}
html:not([data-vz-land="1"]) #vz-desk-word #vz-text,
html:not([data-vz-land="1"]) #vz-text.cwd__i {
    width: 220px !important;
    max-width: 220px !important;
    min-width: 0 !important;
    flex: 0 0 220px !important;
}
@media (max-width: 700px) {
    html:not([data-vz-land="1"]) #vz-desk-word #vz-text,
    html:not([data-vz-land="1"]) #vz-text.cwd__i {
        width: min(220px, 100%) !important;
        max-width: 220px !important;
        flex: 0 1 220px !important;
    }
}

/* --------------------------------------------------------------------------
   Composer Play accent. labs.llc/composer push3 (composer570c.css):
   playing / aria-pressed fill #C2410C, white glyph; :active #9A3209.
   Scoped to vizzi's header Play (nav, dice + label) and the transport
   Play in the panel (#dk-play). Contrast: white on #C2410C is 5.3:1
   (AA for large/UI); white on #9A3209 is 8.3:1. Same tokens in dark.
   -------------------------------------------------------------------------- */
html .nav a.btn.vz-play,
html .nav .btn.vz-play {
    background: #C2410C !important;
    border-color: #C2410C !important;
    color: #fff !important;
    filter: none;
    box-shadow: none;
}
html .nav a.btn.vz-play:hover,
html .nav .btn.vz-play:hover {
    background: #D14A10 !important;
    border-color: #D14A10 !important;
    color: #fff !important;
    transform: none;
}
html .nav a.btn.vz-play:active,
html .nav .btn.vz-play:active,
html .nav a.btn.vz-play[data-vz-state="play"],
html .nav .btn.vz-play[data-vz-state="play"] {
    background: #9A3209 !important;
    border-color: #9A3209 !important;
    color: #fff !important;
}
html .nav a.btn.vz-play svg,
html .nav a.btn.vz-play .vz-play__die,
html .nav a.btn.vz-play .vz-play__pip {
    color: #fff;
    fill: currentColor;
    stroke: currentColor;
}

html #stage #dk-play.dk-play,
html #stage #dk-play,
html .dk-tx #dk-play.vz-tk.dk-play {
    background: #C2410C !important;
    border-color: #C2410C !important;
    color: #fff !important;
    filter: none;
}
html #stage #dk-play:hover,
html .dk-tx #dk-play.vz-tk.dk-play:hover {
    background: #D14A10 !important;
    border-color: #D14A10 !important;
    color: #fff !important;
}
html #stage #dk-play:active,
html #stage #dk-play[aria-pressed="true"],
html .dk-tx #dk-play.vz-tk.dk-play:active {
    background: #9A3209 !important;
    border-color: #9A3209 !important;
    color: #fff !important;
}
html #stage #dk-play svg,
html #stage #dk-play svg path {
    fill: currentColor;
    color: #fff;
}

html[data-dark] .nav a.btn.vz-play,
html[data-dark] .nav .btn.vz-play,
html[data-dark] #stage #dk-play,
html[data-dark] #stage #dk-play.dk-play {
    background: #C2410C !important;
    border-color: #C2410C !important;
    color: #fff !important;
}
html[data-dark] .nav a.btn.vz-play:hover,
html[data-dark] #stage #dk-play:hover {
    background: #D14A10 !important;
    border-color: #D14A10 !important;
    color: #fff !important;
}
html[data-dark] .nav a.btn.vz-play:active,
html[data-dark] .nav a.btn.vz-play[data-vz-state="play"],
html[data-dark] #stage #dk-play:active,
html[data-dark] #stage #dk-play[aria-pressed="true"] {
    background: #9A3209 !important;
    border-color: #9A3209 !important;
    color: #fff !important;
}

@media (max-width: 700px) {
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modeg,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-moderail > #vz-modeg {
        display: grid !important;
        grid-template-columns: repeat(5, var(--vz-key, 28px)) !important;
        grid-auto-rows: var(--vz-key, 28px);
        justify-content: start;
        gap: var(--vz-gap, 4px) !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* 570f tighten: keep O/S/HR inside the 116px stack (under the field), and
   keep the shuffle tile in the phone family grid so it is not a lone third row. */
html:not([data-vz-land="1"]) #vz-modep #vz-code .vz-code__stack,
html:not([data-vz-land="1"]) .console #vz-modep #vz-code .vz-code__stack {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    flex: 0 0 116px !important;
    height: auto !important;
}
html:not([data-vz-land="1"]) #vz-modep #vz-code .vz-recopts,
html:not([data-vz-land="1"]) .console #vz-modep #vz-code .vz-recopts {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    width: 116px !important;
    max-width: 116px !important;
    height: 11px !important;
    flex: 0 0 auto !important;
}
@media (max-width: 700px) {
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modeg .vz-gchip,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modeg .vz-gchip--shuf {
        width: var(--vz-key, 28px) !important;
        height: var(--vz-key, 28px) !important;
        min-width: var(--vz-key, 28px) !important;
        max-width: var(--vz-key, 28px) !important;
        flex: 0 0 var(--vz-key, 28px) !important;
        grid-column: auto !important;
    }
}

/* ==========================================================================
   570g — symbols is ONE continuous grid of equal tiles. Wrappers vanish
   (display: contents). The code field is a single tile-height item that
   spans --code-span columns; x/undo/enter live INSIDE that wrapper.
   O/S/HR are three ordinary tiles in the same flow. Row gap = tile gap.
   ========================================================================== */
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep.vz-modep,
html:not([data-vz-land="1"]) .console[data-keys="sym"] .vz-modep {
    display: grid !important;
    grid-template-columns: repeat(var(--sym-cols, 27), minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: auto !important;
    gap: var(--vz-gap, 4px) !important;
    row-gap: var(--vz-gap, 4px) !important;
    column-gap: var(--vz-gap, 4px) !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    width: 100% !important;
}

/* Every grouping wrapper drops out of the box tree so chips, squares,
   the field, O/S/HR, tools and mode keys all sit on the same grid. */
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep > .vz-moderail,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modeg,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-modeg,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modekr,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modek,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modek.vz-modek,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-code,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-code.vz-code,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-code__sq,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-code__stack,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-recopts,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-modep__tools {
    display: contents !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    gap: 0 !important;
    flex: none !important;
}

/* Hidden leftovers must stay out of the grid. */
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep [hidden],
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-mdiv,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-code-file {
    display: none !important;
}

/* Equal tiles: family, source, O/S/HR, tools, mode keys. */
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-gchip,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-gchip--shuf,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-sqb,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-recopt,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-mkey,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-symk--rail,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-fold-modes {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1 !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    align-self: stretch !important;
    justify-self: stretch !important;
}

html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-gchip__t {
    display: none !important;
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-gchip__g {
    display: block !important;
}

/* O/S/HR: ordinary square tiles, not a 11px chip row of their own. */
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-recopt {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    font-size: .5rem !important;
    line-height: 1 !important;
}

/* The code field is one tile-tall, N-column item in the same grid.
   x / undo / enter are absolutely positioned INSIDE this wrapper. */
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-codebox,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-codebox {
    grid-column: span var(--code-span, 4) !important;
    grid-row: auto !important;
    position: relative !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-codebox__i,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-code-in {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
    padding: 0 3.15rem 0 .3rem !important;
    font-size: clamp(.5rem, 1.6vw, .68rem) !important;
    letter-spacing: .04em !important;
    margin: 0 !important;
    border-radius: 4px !important;
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-codebox__b,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-codebox .vz-codebox__b {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 2;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 1.1rem !important;
    padding: 0 .08rem !important;
    margin: 0 !important;
    background: none !important;
    border: 0 !important;
    line-height: 1 !important;
    font-size: .62rem !important;
    aspect-ratio: auto !important;
    grid-column: auto !important;
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-codebox__x { right: 2.05rem !important; left: auto !important; }
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-codebox__r { right: 1.1rem !important; left: auto !important; }
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-codebox__go { right: .18rem !important; left: auto !important; }

/* Phones: same single grid. Beat the 570e 1-col / 4-row and tools-hide rules. */
@media (max-width: 700px) {
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep.vz-modep,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] .vz-modep {
        display: grid !important;
        grid-template-columns: repeat(var(--sym-cols, 9), minmax(0, 1fr)) !important;
        grid-template-rows: none !important;
        gap: var(--vz-gap, 4px) !important;
    }
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-modep__tools,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-modep__tools:not(:has(#vz-modepg:not([hidden]))) {
        display: contents !important;
    }
    /* Beat site.css .vz-symk--rail {display:none} and vizzi-panel.css
       .vz-foldk {display:none!important} (phone uses the heading pair
       in other views; in symbols they are ordinary tiles so row 2
       fills after the source squares). */
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-symk--rail,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-fold-modes,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-foldk {
        display: inline-flex !important;
    }
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-code,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modek,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modeg {
        grid-row: auto !important;
        grid-column: auto !important;
    }
}

/* Words: the in-panel field stays compact, one tile-tall, icons inside.
   Do not use the symbols display:contents grid. */
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep .vz-codebox {
    position: relative !important;
    overflow: hidden !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep .vz-codebox__b {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* 570g nuclear: beat every earlier 116px / 11px rule so the field
   fills its span and O/S/HR are real tiles. */
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-code #vz-codebox,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-code #vz-codebox.vz-codebox,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-code .vz-codebox {
    grid-column: span var(--code-span, 4) / span var(--code-span, 4) !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    flex: none !important;
    aspect-ratio: auto !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    align-self: stretch !important;
    justify-self: stretch !important;
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-code #vz-code-in,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-code .vz-codebox__i {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding: 0 3.15rem 0 .3rem !important;
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-code .vz-recopt,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-code .vz-recopts .vz-recopt {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
    font-size: .55rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

/* 570g words restore: compact family + tools on row 1, source + 116px
   field (icons inside) + O/S/HR on one toolbar row, 9-col chips below.
   This undoes unscoped 570f field-stack rules that leaked into words. */
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep.vz-modep,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) .vz-modep {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto auto auto !important;
    gap: 6px !important;
    row-gap: 6px !important;
    column-gap: 6px !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep > .vz-moderail {
    display: contents !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modeg,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep .vz-modeg {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep .vz-modep__tools {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin-left: 0 !important;
    width: auto !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code.vz-code {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-code__sq {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    width: auto !important;
    flex: 0 0 auto !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-code__stack {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    height: auto !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code #vz-codebox,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-codebox {
    position: relative !important;
    display: block !important;
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    overflow: hidden !important;
    flex: 0 0 116px !important;
    aspect-ratio: auto !important;
    grid-column: auto !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-codebox__i,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code #vz-code-in {
    width: 116px !important;
    height: 34px !important;
    min-height: 0 !important;
    max-width: 116px !important;
    padding: 0 3.15rem 0 .3rem !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-codebox__b {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    height: auto !important;
    width: auto !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-recopts {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 3px !important;
    width: auto !important;
    height: 34px !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-recopt {
    width: auto !important;
    height: 22px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    font-size: .5rem !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modek,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modek.vz-modek {
    display: grid !important;
    grid-template-columns: repeat(var(--word-cols, 9), minmax(0, 1fr)) !important;
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    gap: 6px 8px !important;
    width: 100% !important;
}
@media (min-width: 701px) {
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modek .vz-mkey {
        width: auto !important;
        max-width: none !important;
        height: 34px !important;
        flex: none !important;
    }
}

/* Field input is absolutely filled so it cannot grow the grid item. */
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-code #vz-codebox .vz-codebox__i,
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-code #vz-code-in {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    max-height: none !important;
}
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-recopt {
    background: var(--paper, #fff) !important;
}
html[data-dark]:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-recopt {
    background: var(--paper, #111) !important;
}

/* ==========================================================================
   570h — words view: flush family, packed pager, even word chips.
   Desk: family is an even 5- or 10-col grid in the left track, tools pinned
   at the right, 9-col mode chips (54 = 6×9). Phone: stacked sections, 5-col
   family, pager in a full-width tools row, 6-col toolbar (field spans 3,
   icons inside, O/S/HR as full tiles), 3-col readable word chips.
   ========================================================================== */

html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modeg,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep .vz-modeg {
    display: grid !important;
    grid-template-columns: repeat(var(--fam-cols, 5), minmax(0, 1fr)) !important;
    gap: 4px !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modeg .vz-gchip,
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modeg .vz-gchip--shuf {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    flex: none !important;
    grid-column: auto !important;
    padding: 0 6px !important;
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modeg .vz-gchip__t {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: .58rem !important;
    line-height: 1.15 !important;
}
@media (max-width: 700px) {
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modeg .vz-gchip__t {
        white-space: normal !important;
        text-overflow: clip !important;
        font-size: .5rem !important;
        letter-spacing: 0 !important;
        text-align: center !important;
        max-height: 32px !important;
    }
}
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modeg .vz-gchip--shuf .vz-gchip__g {
    display: none !important;
}

@media (max-width: 700px) {
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep.vz-modep,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) .vz-modep {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto auto !important;
        gap: 4px !important;
        row-gap: 4px !important;
        column-gap: 4px !important;
    }
    /* Pager lives in the tools cluster as a full-width first row, packed,
       not a second column beside two family chips. */
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep .vz-modep__tools,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep .vz-modep__tools:not(:has(#vz-modepg:not([hidden]))) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep .vz-modep__tools:not(:has(#vz-modepg:not([hidden]))) {
        display: none !important;
    }
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep .vz-modep__tools #vz-modepg,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep .vz-modep__tools .vz-modepg {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 4px !important;
        width: auto !important;
        margin: 0 !important;
    }
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep .vz-modep__tools .vz-pg {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        height: 34px !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modeg,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep .vz-modeg {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
    }

    /* Toolbar: one 6-col grid, field spans 3, O/S/HR are square tiles. */
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code.vz-code {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        grid-auto-rows: auto !important;
        gap: 4px !important;
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        width: 100% !important;
        max-width: none !important;
        flex-wrap: unset !important;
        height: auto !important;
    }
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-code__sq,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-code__stack,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-recopts {
        display: contents !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        flex: none !important;
    }
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-sqb,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-recopt {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 1 !important;
        flex: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
        justify-self: stretch !important;
        align-self: stretch !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: .5rem !important;
    }
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code #vz-codebox,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-codebox {
        grid-column: span 3 !important;
        grid-row: auto !important;
        position: relative !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        overflow: hidden !important;
        flex: none !important;
        align-self: stretch !important;
        justify-self: stretch !important;
        box-sizing: border-box !important;
    }
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code #vz-code-in,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-codebox__i {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 3.15rem 0 .3rem !important;
        box-sizing: border-box !important;
        font-size: .64rem !important;
    }
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-codebox__b {
        position: absolute !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: 2;
        width: auto !important;
        height: auto !important;
        max-width: 1.1rem !important;
        padding: 0 .08rem !important;
        margin: 0 !important;
        background: none !important;
        border: 0 !important;
        aspect-ratio: auto !important;
    }
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-codebox__x { right: 2.05rem !important; left: auto !important; }
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-codebox__r { right: 1.1rem !important; left: auto !important; }
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-code .vz-codebox__go { right: .18rem !important; left: auto !important; }

    /* Mode keys: 3 columns of full names, even rows, no square squeeze. */
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modek,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modek.vz-modek {
        display: grid !important;
        grid-template-columns: repeat(var(--word-cols, 3), minmax(0, 1fr)) !important;
        grid-column: 1 / -1 !important;
        grid-row: 4 !important;
        gap: 4px !important;
        width: 100% !important;
    }
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modek .vz-mkey {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        aspect-ratio: auto !important;
        flex: none !important;
        padding: 0 8px !important;
        border-radius: 10px !important;
        font-size: .62rem !important;
        letter-spacing: 0 !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
    }
    /* Glyphs stay off in words view — the chip is the full name. */
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modek .vz-mkey svg,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modek .vz-mkey .vz-mkey__g {
        display: none !important;
    }
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modek .vz-mkey .vz-mkey__t,
    html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modek .vz-mkey > span:not(.vh) {
        display: inline !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Hidden keys and a folded panel must actually disappear: later
   display:contents / inline-flex !important rules had been beating
   [hidden] and [data-fold-modes=closed]. */
html:not([data-vz-land="1"]) #vz-modep [hidden],
html:not([data-vz-land="1"]) .console #vz-modep [hidden],
html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modek .vz-mkey[hidden],
html:not([data-vz-land="1"]) .console:not([data-keys="sym"]) #vz-modep #vz-modek .vz-mkey[hidden],
html:not([data-vz-land="1"]) .console #vz-modep #vz-modek .vz-mkey[hidden] {
    display: none !important;
}
html:not([data-vz-land="1"]) .console[data-fold-modes="closed"] #vz-modep #vz-modek,
html:not([data-vz-land="1"]) .console[data-fold-modes="closed"][data-keys="sym"] #vz-modep #vz-modek,
html:not([data-vz-land="1"]) .console[data-fold-modes="closed"]:not([data-keys="sym"]) #vz-modep #vz-modek,
html:not([data-vz-land="1"]) .console[data-fold-modes="closed"] #vz-modep #vz-modek.vz-modek {
    display: none !important;
}
html:not([data-vz-land="1"]) .console[data-fold-modes="closed"] #vz-modep #vz-modek .vz-mkey {
    display: none !important;
}


/* ========== 570i: light polish (push6) =================================
   Small spacing, radius, contrast and typography tidy-ups. No new
   behaviour, no observer loops, no shared-asset edits.
   ======================================================================= */

/* Headings and ledes: even breaks, no orphan last words. */
html:not([data-vz-land="1"]) #vz-hero-h,
html:not([data-vz-land="1"]) #vz-hed,
html:not([data-vz-land="1"]) .hero .d1,
html:not([data-vz-land="1"]) #deck .d2,
html:not([data-vz-land="1"]) #modes .d2,
html:not([data-vz-land="1"]) #overview .d2,
html:not([data-vz-land="1"]) #method .d2,
html:not([data-vz-land="1"]) #stage .d2 {
    text-wrap: balance;
}
html:not([data-vz-land="1"]) .hero .lede,
html:not([data-vz-land="1"]) #overview > .wrap > .lede,
html:not([data-vz-land="1"]) #deck .lede,
html:not([data-vz-land="1"]) #modes .lede {
    text-wrap: pretty;
}

/* Mobile gutters: hero, deck, modes, method and footer match the stage
   (16px). Desktop stays on the shared --gutter token so edges still
   line up with the nav. */
@media (max-width: 760px) {
    html:not([data-vz-land="1"]) .hero .wrap,
    html:not([data-vz-land="1"]) .hero .hero__in,
    html:not([data-vz-land="1"]) #deck .wrap,
    html:not([data-vz-land="1"]) #modes .wrap,
    html:not([data-vz-land="1"]) #overview .wrap,
    html:not([data-vz-land="1"]) #method .wrap,
    html:not([data-vz-land="1"]) footer.foot .wrap {
        padding-inline: 16px;
    }
}

/* Status chips: always fade the trailing edge so a long chip is never
   hard-clipped by the bar's overflow:hidden radius, even before JS
   stamps .is-overflow. */
@media (max-width: 700px) {
    #vz-sbar[data-vz-live-status="1"] {
        padding-right: 10px !important;
    }
    #vz-sbar[data-vz-live-status="1"] .vz-status__chips {
        mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent calc(100% - 4px));
        -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent calc(100% - 4px));
        padding-right: 28px;
    }
}
#vz-sbar[data-vz-live-status="1"] .vz-status__fold,
#vz-sbar[data-vz-live-status="1"] #vz-cards.vz-cards {
    border-radius: 10px;
}

/* Save 1–10 + Store/Clear: 10px radius, even 6-col grid on phones so
   the two action keys sit in the same cells as 5 and 6, with the same
   hairline (no double-border join). */
html:not([data-vz-land="1"]) #vz-slotbar .vz-slot,
html:not([data-vz-land="1"]) #vz-slotbar .vz-slot__k,
html:not([data-vz-land="1"]) #vz-fx .vz-fx__b {
    border-radius: 10px;
}
html:not([data-vz-land="1"]) #vz-slotbar .vz-slot__k {
    border: 1px solid var(--line);
    box-shadow: none;
    background: transparent;
    color: var(--muted);
    height: var(--cwd-h, 2.125rem);
    min-height: 0;
    box-sizing: border-box;
    padding: 0;
    min-width: 0;
    justify-content: center;
}
/* House .cwd__b::before is a 1px join-hairline for segmented keys.
   On the save row it sat in the 6px gap after 10 and looked like a stray rule. */
html:not([data-vz-land="1"]) #vz-slotbar .vz-slot__k::before {
    content: none;
    display: none;
}

@media (min-width: 621px) {
    html:not([data-vz-land="1"]) #vz-slotbar .vz-slot__k {
        width: var(--cwd-h, 2.125rem);
        flex: 0 0 auto;
    }
}
@media (pointer: coarse) {
    html:not([data-vz-land="1"]) #vz-slotbar .vz-slot__k {
        height: 2.75rem;
    }
}
@media (max-width: 620px) {
    html:not([data-vz-land="1"]) #vz-slotbar {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 6px;
        align-items: stretch;
    }
    html:not([data-vz-land="1"]) #vz-slotbar .vz-fxl--in {
        grid-column: 1 / -1;
        order: 0;
    }
    html:not([data-vz-land="1"]) #vz-slotbar #vz-slots {
        display: contents;
    }
    html:not([data-vz-land="1"]) #vz-slotbar .vz-slot,
    html:not([data-vz-land="1"]) #vz-slotbar .vz-slot__k {
        order: 0;
        width: auto;
        flex: none;
        height: 2.75rem;
    }
    html:not([data-vz-land="1"]) #vz-slotbar .vz-slot__w {
        grid-column: 1 / -1;
        order: 0;
        flex-basis: auto;
    }
}

/* Tempo / pitch feet: Reset, 1–3 / 4–6 and the die share one 5-col
   grid so both Reset buttons are the same width and every key is a
   matching 10px tile. Tempo leaves the last cell empty, where pitch
   keeps the die. */
html:not([data-vz-land="1"]) #dk-tp {
    --tp-key: var(--cwd-h, 2.125rem);
}
@media (pointer: coarse) {
    html:not([data-vz-land="1"]) #dk-tp { --tp-key: 2.75rem; }
}
html:not([data-vz-land="1"]) #dk-tp .dk-tp__foot {
    display: grid;
    grid-template-columns: minmax(4.5rem, 1fr) repeat(4, var(--tp-key));
    gap: 6px;
    align-items: center;
}
html:not([data-vz-land="1"]) #dk-tp .dk-tp__reset {
    width: auto;
    min-width: 0;
    height: var(--tp-key);
    border-radius: 10px;
    flex: none;
}
html:not([data-vz-land="1"]) #dk-tp .dk-pre {
    display: contents;
}
html:not([data-vz-land="1"]) #dk-tp .dk-pre__k {
    width: var(--tp-key);
    height: var(--tp-key);
    flex: none;
    border-radius: 10px;
}
html:not([data-vz-land="1"]) #dk-fx .dk-fx__k,
html:not([data-vz-land="1"]) #dk-reset,
html:not([data-vz-land="1"]) #dk-space-reset,
html:not([data-vz-land="1"]) .dk-h__k {
    border-radius: 10px;
}
html:not([data-vz-land="1"]) #dk-tp .dk-tp__p {
    border-radius: 10px;
}

/* Landscape transport: the pressed Repeat key used var(--ink)/#fff, so
   in the dark edition it became a white square with a white glyph.
   The bar is always a dark glass, so the fill stays ink-dark. */
html[data-vz-land="1"] #vz-transport .vz-tk {
    border-radius: 10px;
    overflow: hidden;
}
html[data-vz-land="1"] #vz-transport .vz-tk[aria-pressed="true"] {
    background: #1e262b;
    border-color: #1e262b;
    color: #fff;
}

/* Footer copyright: non-breaking spaces in the markup keep ©, the year
   and VIZZI apart when .foot__legal is inline-flex (which otherwise
   eats ordinary spaces). */


/* ========================================================================
   570g: the black duplicate track name in the mid bar is gone. The share-
   code field takes that seat, to the right of the now-playing plate and
   before the tempo/pitch steppers, wide enough for a 12–16 character code
   plus its × ↻ ↵ keys. 10px corners, tokens only (dark edition included).
   In landscape the mid bar is already hidden with the rest of the head,
   and the field hides with it, as the rail field did.
   ======================================================================== */
#vz-mid-track,
.vz-mid__t { display: none !important; }

#vz-mid #vz-codebox,
#vz-codebox.vz-codebox {
    position: relative;
    display: block;
    flex: 0 0 auto;
    font: 600 .68rem/1 'Orbitron', ui-monospace, Menlo, monospace;
    letter-spacing: .04em;
    width: calc(9ch + 4.8rem);
    min-width: calc(8ch + 4.6rem);
    max-width: calc(9ch + 4.8rem);
    height: var(--cwd-h, 2.125rem);
    min-height: var(--cwd-h, 2.125rem);
    max-height: var(--cwd-h, 2.125rem);
    box-sizing: border-box;
    overflow: hidden;
    align-self: center;
    margin: 0;
}

#vz-mid #vz-code-in,
#vz-mid .vz-codebox__i,
#vz-codebox #vz-code-in {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0 4.6rem 0 .55rem !important;
    font: 600 .68rem/1 'Orbitron', ui-monospace, Menlo, monospace !important;
    letter-spacing: .04em !important;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    background: var(--paper);
    border: 1px solid var(--accent);
    border-radius: 10px !important;
}

#vz-mid #vz-code-in:focus,
#vz-mid .vz-codebox__i:focus {
    cursor: text;
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}

#vz-mid .vz-codebox__b,
#vz-codebox .vz-codebox__b {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: .78rem;
    line-height: 1;
    padding: 0 .12rem;
}

#vz-mid .vz-codebox__x,  #vz-codebox .vz-codebox__x  { right: 3.05rem !important; left: auto !important; font-size: .9rem; }
#vz-mid .vz-codebox__r,  #vz-codebox .vz-codebox__r  { right: 1.6rem !important;  left: auto !important; }
#vz-mid .vz-codebox__go, #vz-codebox .vz-codebox__go { right: .28rem !important;  left: auto !important; }

/* The stack now holds only O/S/HR; let them flow with the square keys
   so the symbols grid stays even, with no reserved hole for the field. */
#vz-modep .vz-code__stack,
.console #vz-modep .vz-code__stack {
    display: contents;
}

/* At a mid-width desk the plate, steppers and transport already share
   a tight line; the field still gets a full 12-character run, and can
   shrink a little rather than open the row. */
@media (min-width: 701px) and (max-width: 1100px) {
    #vz-mid #vz-codebox,
    #vz-codebox.vz-codebox {
        flex: 0 0 auto;
        width: calc(9ch + 4.8rem);
        min-width: calc(8ch + 4.6rem);
        max-width: calc(9ch + 4.8rem);
    }
}
/* The plate takes the run the field gave up, so a long name can show. */
@media (min-width: 701px) {
    #vz-np {
        flex: 1 1 0;
        min-width: 10rem;
    }
}

/* On a phone the plate already takes a full line; the field takes the
   line under it, before the transport, so it can show the whole code.
   O/S/HR sit in their own even 3-col row under the field, so the
   symbols grid above/below has no short last row. */
@media (max-width: 700px) {
    #vz-mid {
        display: flex !important;
        flex: 1 1 100%;
        flex-basis: 100%;
        min-width: 0 !important;
        width: 100%;
        margin: 0;
        justify-content: stretch;
        flex-wrap: wrap;
        gap: 6px;
        align-items: stretch;
    }
    #vz-mid .vz-recopts,
    #vz-mid .vz-recopts.vz-recopts {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        flex: 1 1 100%;
        width: 100%;
        height: 2.75rem;
        min-height: 2.75rem;
        max-height: 2.75rem;
        gap: 6px;
        margin: 0;
        justify-content: stretch;
        align-items: stretch;
    }
    #vz-mid .vz-recopt,
    #vz-mid .vz-recopts .vz-recopt {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: 2.75rem;
        min-height: 2.75rem;
        min-width: 0;
        margin: 0;
        padding: 0;
        border-radius: 10px !important;
        font-size: .7rem;
        line-height: 1;
        letter-spacing: .04em;
        box-sizing: border-box;
    }
    #vz-mid #vz-codebox,
    #vz-codebox.vz-codebox {
        flex: 0 1 auto;
        width: calc(9ch + 4.8rem);
        min-width: 0;
        max-width: 100%;
        height: 2.75rem;
        min-height: 2.75rem;
        max-height: 2.75rem;
    }
    #vz-mid #vz-code-in,
    #vz-mid .vz-codebox__i {
        font-size: .72rem !important;
        letter-spacing: .03em !important;
        padding: 0 4.8rem 0 .55rem !important;
    }
}

@media (max-width: 340px) {
    #vz-mid #vz-code-in,
    #vz-mid .vz-codebox__i {
        font-size: .66rem !important;
        letter-spacing: 0 !important;
        padding: 0 4.4rem 0 .4rem !important;
    }
    #vz-mid .vz-codebox__x  { right: 2.85rem !important; }
    #vz-mid .vz-codebox__r  { right: 1.5rem !important; }
    #vz-mid .vz-codebox__go { right: .22rem !important; }
}

/* Landscape keeps the stage-first overlay: mid, plate and rail all hide. */
html[data-vz-land="1"] #vz-mid #vz-codebox,
html[data-vz-land="1"] #vz-codebox,
html[data-vz-land="1"] #vz-codebox.vz-codebox {
    display: none !important;
}


/* ========================================================================
   570h: compact share-code field; now-playing plate takes the slack;
   BRK/TAPE/T2/T3 sit in the empty run of Your word; Library and Queue
   share one scrolling window (10 desk / 7 phone rows at S, scaled for
   M/L, capped at 60vh). 10px corners, tokens only.
   ======================================================================== */

/* —— Your word + hold effects ——————————————————————————————————— */
html:not([data-vz-land="1"]) #vz-desk-word {
    justify-items: stretch;
    min-width: 0;
}
html:not([data-vz-land="1"]) #vz-wordrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
}
html:not([data-vz-land="1"]) #vz-desk-word #vz-text,
html:not([data-vz-land="1"]) #vz-text.cwd__i {
    width: 220px !important;
    max-width: 220px !important;
    min-width: 0 !important;
    flex: 0 0 220px !important;
    height: var(--cwd-h, 2.125rem);
    box-sizing: border-box;
}
html:not([data-vz-land="1"]) #vz-wordrow #dk-fx,
html:not([data-vz-land="1"]) #vz-desk-word #dk-fx {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    height: var(--cwd-h, 2.125rem);
}
html:not([data-vz-land="1"]) #vz-wordrow #dk-fx .dk-fx__k,
html:not([data-vz-land="1"]) #vz-desk-word #dk-fx .dk-fx__k {
    flex: 1 1 0;
    min-width: 0;
    height: var(--cwd-h, 2.125rem);
    min-height: var(--cwd-h, 2.125rem);
    box-sizing: border-box;
    border-radius: 10px !important;
    padding: 0 .35rem;
}
@media (max-width: 700px) {
    html:not([data-vz-land="1"]) #vz-desk-word #vz-text,
    html:not([data-vz-land="1"]) #vz-text.cwd__i {
        width: min(220px, 100%) !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        height: 2.75rem;
    }
    html:not([data-vz-land="1"]) #vz-wordrow #dk-fx,
    html:not([data-vz-land="1"]) #vz-desk-word #dk-fx {
        flex: 1 1 100%;
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        height: auto;
        min-height: 2.75rem;
        gap: 6px;
    }
    html:not([data-vz-land="1"]) #vz-wordrow #dk-fx .dk-fx__k,
    html:not([data-vz-land="1"]) #vz-desk-word #dk-fx .dk-fx__k {
        width: 100%;
        height: 2.75rem;
        min-height: 2.75rem;
        min-width: 0;
        border-radius: 10px !important;
    }
}
html[data-vz-land="1"] #vz-wordrow,
html[data-vz-land="1"] #vz-desk-word #dk-fx {
    display: none !important;
}

/* —— Library + Queue: one scrolling window ————————————————————— */
html:not([data-vz-land="1"]) .dk-lib__list,
html:not([data-vz-land="1"]) .dk-qlist {
    --dk-lib-n: 10;
    --dk-q-n: 10;
    --dk-lib-rh: 2.125rem;
    --dk-q-rh: 2.125rem;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    border: 1px solid var(--line);
    border-radius: 10px;
    scrollbar-gutter: stable;
}
html:not([data-vz-land="1"]) .dk-lib__list {
    height: min(calc(var(--dk-lib-rh) * var(--dk-lib-n) + 2px), 60vh);
    max-height: 60vh;
}
@media (min-width: 701px) {
    html:not([data-vz-land="1"]) .dk-lib__list,
    html:not([data-vz-land="1"]) .dk-lib__list[data-sz="s"] { --dk-lib-n: 10; }
    html:not([data-vz-land="1"]) .dk-lib__list[data-sz="m"] { --dk-lib-n: 20; }
    html:not([data-vz-land="1"]) .dk-lib__list[data-sz="l"] { --dk-lib-n: 40; }
    html:not([data-vz-land="1"]) .dk-qlist,
    html:not([data-vz-land="1"]) .dk-qlist[data-sz="s"] { --dk-q-n: 10; }
    html:not([data-vz-land="1"]) .dk-qlist[data-sz="m"] { --dk-q-n: 20; }
    html:not([data-vz-land="1"]) .dk-qlist[data-sz="l"] { --dk-q-n: 40; }
}

html:not([data-vz-land="1"]) .dk-qlist {
    display: block;
    list-style: none;
    margin: .5rem 0 0;
    padding: 0;
    gap: 0;
    align-content: start;
    height: min(calc(var(--dk-q-rh) * var(--dk-q-n) + 2px), 60vh);
    max-height: 60vh;
}

html:not([data-vz-land="1"]) .dk-qitem {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    box-sizing: border-box;
    min-height: var(--dk-q-rh, 2.125rem);
    height: auto;
    padding: 0 .3rem 0 .55rem;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    background: none;
}
html:not([data-vz-land="1"]) .dk-qitem:last-child { border-bottom: 0; }
html:not([data-vz-land="1"]) .dk-qitem:hover {
    background: color-mix(in srgb, var(--ink) 4%, transparent);
}
html:not([data-vz-land="1"]) .dk-qitem__b,
html:not([data-vz-land="1"]) .dk-qitem__b--g,
html:not([data-vz-land="1"]) .dk-qitem__b--x {
    width: 1.75rem;
    height: 1.5rem;
    min-width: 1.75rem;
    min-height: 1.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-sizing: border-box;
}
html:not([data-vz-land="1"]) .dk-lr__b {
    border-radius: 10px;
}
html:not([data-vz-land="1"]) .dk-qitem__o {
    border-radius: 10px;
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .1em;
}
/* skipped / loading keep their marks; no per-row card border */
html:not([data-vz-land="1"]) .dk-qitem--skip,
html:not([data-vz-land="1"]) .dk-qitem--load,
html:not([data-vz-land="1"]) .dk-qitem--more {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--line-soft);
}
html:not([data-vz-land="1"]) .dk-qitem--load {
    position: relative;
    overflow: hidden;
    border-bottom-style: dashed;
}
html:not([data-vz-land="1"]) .dk-qitem--skip .dk-qitem__n {
    color: var(--muted);
    text-decoration: line-through;
}

@media (max-width: 700px) {
    html:not([data-vz-land="1"]) .dk-lib__list,
    html:not([data-vz-land="1"]) .dk-lib__list[data-sz="s"] { --dk-lib-n: 7 !important; }
    html:not([data-vz-land="1"]) .dk-lib__list[data-sz="m"] { --dk-lib-n: 14 !important; }
    html:not([data-vz-land="1"]) .dk-lib__list[data-sz="l"] { --dk-lib-n: 28 !important; }
    html:not([data-vz-land="1"]) .dk-qlist,
    html:not([data-vz-land="1"]) .dk-qlist[data-sz="s"] { --dk-q-n: 7 !important; }
    html:not([data-vz-land="1"]) .dk-qlist[data-sz="m"] { --dk-q-n: 14 !important; }
    html:not([data-vz-land="1"]) .dk-qlist[data-sz="l"] { --dk-q-n: 28 !important; }
}
@media (pointer: coarse) {
    html:not([data-vz-land="1"]) .dk-lib__list { --dk-lib-rh: 3rem !important; }
    html:not([data-vz-land="1"]) .dk-qlist { --dk-q-rh: 3rem !important; }
    html:not([data-vz-land="1"]) .dk-qitem {
        min-height: var(--dk-q-rh, 3rem);
    }
    html:not([data-vz-land="1"]) .dk-qitem__b,
    html:not([data-vz-land="1"]) .dk-qitem__b--g,
    html:not([data-vz-land="1"]) .dk-qitem__b--x,
    html:not([data-vz-land="1"]) .dk-lr__b {
        width: 2.75rem;
        height: 2.75rem;
        min-width: 2.75rem;
        min-height: 2.75rem;
    }
}

/* ========================================================================
   570j — mobile paddle (push5, 2026-11-22)
   Phones only: max-width 700px, matching the existing fold gate, so a
   desk at 701px and above is untouched. Immersive landscape
   (html[data-vz-land="1"]) is excluded. No shared-asset edits.
   ======================================================================== */

@media (max-width: 700px) {

    /* ---- 1. Horizontal overflow: nothing may widen the page ------------ */
    html:not([data-vz-land="1"]),
    html:not([data-vz-land="1"]) body {
        overflow-x: hidden;
        max-width: 100%;
    }
    html:not([data-vz-land="1"]) #stage,
    html:not([data-vz-land="1"]) #stage .wrap,
    html:not([data-vz-land="1"]) #stage .console,
    html:not([data-vz-land="1"]) #stage .console__head,
    html:not([data-vz-land="1"]) #stage .console__body,
    html:not([data-vz-land="1"]) #stage .vz-desk,
    html:not([data-vz-land="1"]) #vz-sbar,
    html:not([data-vz-land="1"]) #vz-sbar[data-vz-live-status="1"],
    html:not([data-vz-land="1"]) .vz-status__row,
    html:not([data-vz-land="1"]) .vz-mfold,
    html:not([data-vz-land="1"]) #vz-mid,
    html:not([data-vz-land="1"]) #vz-modep,
    html:not([data-vz-land="1"]) #vz-live,
    html:not([data-vz-land="1"]) #vz-stage,
    html:not([data-vz-land="1"]) #vz-meter {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* 16px gutters: the wrap already has 16px; drop the body's extra pad
       so the paddle lines up with the status bar. */
    html:not([data-vz-land="1"]) #stage .console:has(> #vz-sbar[data-vz-live-status="1"]) > .console__body,
    html:not([data-vz-land="1"]) #stage .console > .console__body {
        --cb-pad: 0px;
        padding: 12px 0 16px;
    }

    /* Chips scroll inside the row, never the page. */
    html:not([data-vz-land="1"]) #vz-sbar[data-vz-live-status="1"] {
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    html:not([data-vz-land="1"]) .vz-status__row {
        overflow: hidden;
        min-width: 0;
        max-width: 100%;
    }
    html:not([data-vz-land="1"]) .vz-status__chips,
    html:not([data-vz-land="1"]) #vz-sbar[data-vz-live-status="1"] .vz-status__chips {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        flex: 1 1 auto;
        min-width: 0 !important;
        max-width: 100%;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    html:not([data-vz-land="1"]) .vz-mfold[data-mfold="desk"] {
        overflow: hidden;
        width: 100%;
    }
    html:not([data-vz-land="1"]) .vz-mfold__l {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    html:not([data-vz-land="1"]) .vz-mfold__b {
        margin-right: 0;
        margin-left: 0;
    }

    /* Share-code field takes the full paddle width (the now-playing
       plate already has its own line when a track is loaded). */
    html:not([data-vz-land="1"]) #vz-mid #vz-codebox,
    html:not([data-vz-land="1"]) #vz-codebox.vz-codebox {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* ---- 2. BRK / TAPE / T2 / T3 stay in the minimised paddle ---------
       site.css hides #vz-desk-word when the desk fold is shut; that also
       hid the hold-effect keys. Re-open only that field, hide the word
       input, and paint the four keys as a 4-cell rail. */
    html:not([data-vz-land="1"]) .console[data-fold-desk="closed"] #vz-desk-word.vz-desk__f--word,
    html:not([data-vz-land="1"]) .console[data-fold-desk="closed"] .vz-desk__f--word#vz-desk-word {
        display: grid !important;
        grid-column: 1 / -1 !important;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        gap: 6px;
        justify-items: stretch;
    }
    html:not([data-vz-land="1"]) .console[data-fold-desk="closed"] #vz-desk-word > .vz-desk__l,
    html:not([data-vz-land="1"]) .console[data-fold-desk="closed"] #vz-desk-word .vz-chk,
    html:not([data-vz-land="1"]) .console[data-fold-desk="closed"] #vz-desk-word #vz-text,
    html:not([data-vz-land="1"]) .console[data-fold-desk="closed"] #vz-desk-word #vz-text.cwd__i {
        display: none !important;
    }
    html:not([data-vz-land="1"]) .console[data-fold-desk="closed"] #vz-wordrow {
        display: block !important;
        width: 100%;
        min-width: 0;
    }
    html:not([data-vz-land="1"]) #vz-wordrow #dk-fx,
    html:not([data-vz-land="1"]) #vz-desk-word #dk-fx {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        height: auto;
        min-height: 2.75rem;
        margin: 0;
        flex: none;
    }
    html:not([data-vz-land="1"]) #vz-wordrow #dk-fx .dk-fx__k,
    html:not([data-vz-land="1"]) #vz-desk-word #dk-fx .dk-fx__k {
        width: 100%;
        min-width: 0;
        height: 2.75rem;
        min-height: 2.75rem;
        border-radius: 10px !important;
        box-sizing: border-box;
        padding: 0 .3rem;
    }

    /* ---- 3. Empty stage: collapse the blank white tile ---------------- */
    html:not([data-vz-land="1"]) .console:has(#vz-np[data-state="none"]) #vz-stage {
        aspect-ratio: auto !important;
        height: 3.6rem !important;
        min-height: 3.6rem !important;
        max-height: 3.6rem !important;
        position: relative;
        overflow: hidden;
        border: 1px dashed var(--line);
        border-radius: 10px;
        background: color-mix(in srgb, var(--paper) 92%, var(--line));
    }
    html:not([data-vz-land="1"]) .console:has(#vz-np[data-state="none"]) #vz-stage::before {
        content: "Drop a track, or press Play";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        pointer-events: none;
        font-size: .72rem;
        font-weight: 600;
        letter-spacing: 0;
        color: var(--muted);
        text-align: center;
        padding: 0 12px;
    }
    html:not([data-vz-land="1"]) .console:has(#vz-np[data-state="none"]) #vz-stage .vz-tile,
    html:not([data-vz-land="1"]) .console:has(#vz-np[data-state="none"]) #vz-stage canvas,
    html:not([data-vz-land="1"]) .console:has(#vz-np[data-state="none"]) #vz-stage .vz-tile__n {
        opacity: 0;
        pointer-events: none;
    }

    /* Idle meter: keep the six readings, lose the empty height. */
    html:not([data-vz-land="1"]) .console:has(#vz-np[data-state="none"]) #vz-meter {
        margin-top: 8px;
        padding-top: 8px;
        gap: 6px;
    }
    html:not([data-vz-land="1"]) .console:has(#vz-np[data-state="none"]) #vz-meter .vz-mcell {
        padding: .3rem .4rem;
    }
    html:not([data-vz-land="1"]) .console:has(#vz-np[data-state="none"]) #vz-meter .vz-mcell__n {
        font-size: 1rem;
    }

    /* ---- 4. Icon grid: even 10px cells, accent when on ---------------- */
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep.vz-modep,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] .vz-modep {
        display: grid !important;
        grid-template-columns: repeat(var(--sym-cols, 9), minmax(0, 1fr)) !important;
        gap: 6px !important;
        row-gap: 6px !important;
        column-gap: 6px !important;
        width: 100% !important;
        min-width: 0;
    }
    /* Mode keys leave the 9-col flow and sit in their own even row(s). */
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modek,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modek.vz-modek {
        display: grid !important;
        grid-column: 1 / -1 !important;
        grid-template-columns: repeat(var(--mk-cols, 6), minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        margin: 0;
        padding: 0;
    }
    html:not([data-vz-land="1"]) .console[data-fold-modes="closed"][data-keys="sym"] #vz-modep #vz-modek,
    html:not([data-vz-land="1"]) .console[data-fold-modes="closed"][data-keys="sym"] #vz-modep #vz-modek.vz-modek,
    html:not([data-vz-land="1"]) .console[data-fold-modes="closed"] #vz-modep #vz-modek,
    html:not([data-vz-land="1"]) .console[data-fold-modes="closed"] #vz-modep #vz-modek.vz-modek {
        display: none !important;
    }
    /* The mode panel stays in the minimised paddle (family + tools). */
    html:not([data-vz-land="1"]) .console[data-fold-desk="closed"] #vz-modep,
    html:not([data-vz-land="1"]) .console[data-fold-desk="closed"][data-keys="sym"] #vz-modep,
    html:not([data-vz-land="1"]) .console[data-fold-desk="closed"][data-keys="sym"] .vz-modep {
        display: grid !important;
        width: 100%;
    }

    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-gchip,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-gchip--shuf,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-sqb,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-mkey,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-symk,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-symk--rail,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-fold-modes,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-foldk {
        border-radius: 10px !important;
        border-color: var(--line) !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    /* Pressed / selected / on uses the accent, consistently.
       Green is not used as a second "on" colour. */
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-gchip[aria-pressed="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-gchip[aria-selected="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-sqb[aria-pressed="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-mkey[aria-pressed="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-mkey[aria-selected="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-symk[aria-pressed="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-foldk[aria-expanded="true"] {
        background: #C2410C !important;
        border-color: #C2410C !important;
        color: #fff !important;
    }

    /* Steppers: matching 10px segmented rails; the EQ tile matches them. */
    html:not([data-vz-land="1"]) .vz-tail > .vz-plat .vz-plat__c,
    html:not([data-vz-land="1"]) #vz-plat .vz-plat__c {
        border-radius: 10px;
        overflow: hidden;
        height: 2.75rem;
        box-sizing: border-box;
    }
    html:not([data-vz-land="1"]) #vz-eq,
    html:not([data-vz-land="1"]) .vz-tail #vz-eq,
    html:not([data-vz-land="1"]) .vz-eq {
        border-radius: 10px !important;
        width: 2.75rem;
        height: 2.75rem;
        min-width: 2.75rem;
        min-height: 2.75rem;
        box-sizing: border-box;
        border-color: var(--line) !important;
        overflow: hidden;
    }

    /* O / S / HR already a 3-col row; keep 10px corners and 6px gap. */
    html:not([data-vz-land="1"]) #vz-mid .vz-recopts {
        gap: 6px;
    }
    html:not([data-vz-land="1"]) #vz-mid .vz-recopt {
        border-radius: 10px !important;
    }
}

@media (max-width: 340px) {
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] .vz-modep {
        grid-template-columns: repeat(var(--sym-cols, 9), minmax(0, 1fr)) !important;
        gap: 4px !important;
        row-gap: 4px !important;
        column-gap: 4px !important;
    }
}


/* 570k — mode keys share the 9-col icon grid (push6, 2026-11-22)
   Mobile only (max-width: 700px). Desktop 701px+ is unchanged.

   Erik rejected both the giant --mk-cols squares and the wide 36px
   bars. Mode keys must be the same size and shape as the small icon
   keys in the 9-col tool grid above (same width, height, 10px radius
   and gap), sitting in that same 9-column track, never stretched to
   fill a short row. A family of 3 is three icon cells, left-aligned
   to the grid edges; 9+ wrap in 9-col rows.

   Pressed / on keys, including the shuffle chip, drop the leftover
   green inset box-shadow (#15803D / #4ADE80) so the only on-state is
   the #C2410C accent 570j already promised. */
@media (max-width: 700px) {
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modek,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modek.vz-modek {
        display: grid !important;
        grid-column: 1 / -1 !important;
        grid-template-columns: repeat(var(--sym-cols, 9), minmax(0, 1fr)) !important;
        grid-auto-rows: auto;
        justify-content: start;
        justify-items: stretch;
        align-items: start;
        row-gap: 6px !important;
        column-gap: 6px !important;
        gap: 6px !important;
        width: 100% !important;
    }
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modek .vz-mkey,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modek.vz-modek .vz-mkey {
        aspect-ratio: 1 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        min-width: 0 !important;
        max-width: none !important;
        border-radius: 10px !important;
        align-self: start !important;
        justify-self: stretch !important;
        box-sizing: border-box !important;
    }
    /* Beat the earlier #vz-modek .vz-mkey[aria-pressed="true"] green
       inset (background:none + box-shadow #15803D !important) and the
       same outline on the shuffle chip and family chips. */
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modek .vz-mkey[aria-pressed="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modek .vz-mkey[aria-selected="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modeshuf[aria-pressed="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-gchip--shuf[aria-pressed="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modeg .vz-gchip[aria-pressed="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modeg .vz-gchip[aria-selected="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-gchip[aria-pressed="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-gchip[aria-selected="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-sqb[aria-pressed="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-symk[aria-pressed="true"],
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-foldk[aria-expanded="true"] {
        background: #C2410C !important;
        border-color: #C2410C !important;
        color: #fff !important;
        box-shadow: none !important;
    }
    html[data-dark]:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modek .vz-mkey[aria-pressed="true"],
    html[data-dark]:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modeshuf[aria-pressed="true"],
    html[data-dark]:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep .vz-gchip--shuf[aria-pressed="true"],
    html[data-dark]:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modeg .vz-gchip[aria-pressed="true"],
    html[data-dark]:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modeg .vz-gchip[aria-selected="true"] {
        background: #C2410C !important;
        border-color: #C2410C !important;
        color: #fff !important;
        box-shadow: none !important;
    }
}
@media (max-width: 340px) {
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modek,
    html:not([data-vz-land="1"]) .console[data-keys="sym"] #vz-modep #vz-modek.vz-modek {
        gap: 4px !important;
        row-gap: 4px !important;
        column-gap: 4px !important;
    }
}


/* ALL IN THE E1–E4 ROW (24 Nov). Lives here, not in site.css or dark.css.
   Desktop keys stay 2.75rem; on a phone the sixth key would overflow a
   320px panel, so the slimming is phone-only and leaves landscape/desktop
   alone. */
@media (max-width: 480px) {
    html:not([data-vz-land="1"]) .dk-lib__sets .cwd__b {
        min-width: 2.15rem;
        padding-left: .4rem;
        padding-right: .4rem;
    }
}
@media (max-width: 340px) {
    html:not([data-vz-land="1"]) .dk-lib__sets .cwd__b {
        min-width: 0;
        padding-left: .32rem;
        padding-right: .32rem;
        letter-spacing: .06em;
    }
    html:not([data-vz-land="1"]) .dk-lib__sets { gap: .2rem; }
}

/* WHICH LIST, on an All row: the same 6px dots as the E-keys, in the same
   colours. They sit on the existing row and must not change --dk-lib-rh.
   Light hues match site.css's --vzp-1..4; dark hues match dark.css. */
.dk-lr__s {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px;
    --vzp-1: #C2410C; --vzp-2: #A16207; --vzp-3: #0F766E; --vzp-4: #7C3AED;
}
.dk-lr__s[hidden] { display: none; }
.dk-lr__dot {
    width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
    background: var(--vzp-1); box-shadow: 0 0 0 1.5px var(--paper);
}
.dk-lr__dot--e2 { background: var(--vzp-2); }
.dk-lr__dot--e3 { background: var(--vzp-3); }
.dk-lr__dot--e4 { background: var(--vzp-4); }

/* ALL is not a fifth list colour: its swatch is the four, in order.
   --vzp-* on the key already come from site.css / dark.css. */
.dk-lib__sets [data-set="all"]::before {
    background: conic-gradient(var(--vzp-1) 0 25%, var(--vzp-2) 0 50%, var(--vzp-3) 0 75%, var(--vzp-4) 0);
}

html[data-dark] .dk-lr__s {
    --vzp-1: #FB923C; --vzp-2: #FACC15; --vzp-3: #2DD4BF; --vzp-4: #A78BFA;
}
