/* Workstation redesign (Nov 2026): silver hardware look shared with the Forge.
   Loaded after workstation-stowaway.css. */

/* ---------- Step sequencer: all 16 pads on one bar ---------- */
.heritage-ui #root#root .anvil-sequencer-deck .anvil-bar-stack { display: none; }
.anvil-pad-matrix { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 13px; border: 1px solid #58645f; background-color: #a7afa9; background-image: radial-gradient(140% 60% at 20% -10%, rgba(255,255,255,.38), transparent 55%), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px), linear-gradient(180deg, #c3c9c3 0%, #a9b1ab 42%, #8f9993 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -4px 8px rgba(20,32,30,.38), 0 14px 26px -6px rgba(0,0,0,.5); font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.anvil-pad-matrix__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.anvil-pad-matrix__title { display: flex; flex-direction: column; gap: 3px; }
.anvil-pad-matrix__title strong { font-size: 13px; letter-spacing: .1em; color: #1a2624; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.anvil-pad-matrix__title span { font-size: 11px; font-weight: 700; color: #33504a; }
.anvil-pad-matrix__bars { display: flex; flex-wrap: wrap; gap: 6px; }
.anvil-pad-matrix__bars button { min-height: 34px; padding: 0 12px; border-radius: 7px; cursor: pointer; font: 800 11px 'JetBrains Mono', monospace; letter-spacing: .06em; border: 1px solid #9aa59f; border-top: 3px solid var(--tab, #8e9a94); background: linear-gradient(180deg, #fbfcfa, #d3d9d4); color: #3b4a46; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #8e9a94; }
.anvil-pad-matrix__bars button[aria-pressed="true"] { background: linear-gradient(180deg, #ffd699, #e9a85c); border-color: #ffe2b4; border-top-color: var(--tab, #ffb547); color: #2a1c08; box-shadow: 0 0 14px rgba(240,166,64,.5), 0 2px 0 #9a5f26; }
.anvil-pad-matrix__bars .anvil-pad-matrix__follow { border-top-color: #4f9c83; }
.anvil-pad-matrix__scroll { overflow-x: auto; padding: 12px; border-radius: 11px; background: radial-gradient(120% 80% at 50% 0%, #5f6d69 0%, #4e5b57 55%, #44504c 100%); border: 1px solid #2c3532; box-shadow: inset 0 4px 12px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.05), 0 1px 0 rgba(255,255,255,.55); }
.anvil-pad-matrix__grid { min-width: 860px; display: flex; flex-direction: column; gap: 4px; }
.anvil-pad-matrix__row { display: grid; grid-template-columns: 200px repeat(var(--steps, 16), minmax(0, 1fr)) 48px; column-gap: 3px; align-items: center; padding: 2px; border-radius: 7px; }
.anvil-pad-matrix__row[data-selected="true"] { background: rgba(255,190,100,.22); box-shadow: inset 0 0 0 1px rgba(196,106,37,.6); }
.anvil-pad-matrix__ruler { height: 26px; align-items: end; }
.anvil-pad-matrix__corner { font-size: 11px; font-weight: 900; letter-spacing: .12em; color: #bff3e1; }
.anvil-pad-matrix__corner--end { text-align: right; }
.anvil-pad-matrix__tick { padding-left: 4px; font: 800 11px 'JetBrains Mono', monospace; color: #c9d4cf; }
.anvil-pad-matrix__tick[data-beat="true"] { font-size: 15px; font-weight: 900; color: #ffd27f; text-shadow: 0 0 8px rgba(255,190,90,.7); border-left: 2px solid var(--matrix-bar); }
.anvil-pad-matrix__tick[data-gap="true"], .anvil-pad-matrix__cell[data-gap="true"] { margin-left: 6px; }
.anvil-pad-matrix__pad { display: flex; align-items: center; gap: 8px; min-width: 0; height: 32px; padding: 0 8px 0 3px; border-radius: 6px; cursor: pointer; text-align: left; font: 800 12.5px 'JetBrains Mono', monospace; letter-spacing: .04em; border: 1px solid #9aa59f; border-left: 4px solid var(--matrix-bar); background: linear-gradient(180deg, #fbfcfa, #dfe4df); color: #123f6b; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #8e9a94; }
.anvil-pad-matrix__pad[aria-pressed="true"] { border-color: #ffe2b4; border-left-color: var(--matrix-bar); background: linear-gradient(180deg, #ffd699, #e9a85c); color: #2a1c08; box-shadow: 0 0 12px rgba(240,166,64,.45), 0 2px 0 #9a5f26; }
.anvil-pad-matrix__row[data-muted="true"] .anvil-pad-matrix__pad { color: #8a6f6f; border-left-color: #b0545a; }
.anvil-pad-matrix__key { min-width: 20px; height: 18px; display: grid; place-items: center; border-radius: 4px; font-size: 10px; background: #24312e; color: #f2dfc0; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.anvil-pad-matrix__row[data-muted="true"] .anvil-pad-matrix__key { background: #5b2020; color: #ffd6d6; }
.anvil-pad-matrix__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anvil-pad-matrix__cell { height: 32px; min-width: 0; padding: 0; border-radius: 5px; cursor: pointer; font: 800 10px 'JetBrains Mono', monospace; color: #1a1206; border: 1px solid #9aa59f; background: linear-gradient(180deg, #f1f4f0, #dbe1dc); box-shadow: inset 0 1px 0 #fff, 0 2px 0 #8e9a94; transition: transform .06s ease, filter .12s ease; }
.anvil-pad-matrix__cell[data-beat="true"] { background: linear-gradient(180deg, #e3e8e3, #cbd2cd); }
.anvil-pad-matrix__row[data-selected="true"] .anvil-pad-matrix__cell { background: linear-gradient(180deg, #fbf3e2, #efe2c8); }
.anvil-pad-matrix__cell:hover { filter: brightness(1.06); }
.anvil-pad-matrix__cell:active { transform: translateY(1px); }
.anvil-pad-matrix__cell[data-active="true"], .anvil-pad-matrix__row[data-selected="true"] .anvil-pad-matrix__cell[data-active="true"] { border-color: var(--matrix-bar); background: linear-gradient(180deg, color-mix(in srgb, var(--matrix-bar) 82%, white), var(--matrix-bar)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 0 color-mix(in srgb, var(--matrix-bar) 60%, black), 0 0 8px color-mix(in srgb, var(--matrix-bar) 55%, transparent); }
.anvil-pad-matrix__row[data-muted="true"] .anvil-pad-matrix__cell[data-active="true"] { opacity: .5; }
.anvil-pad-matrix__cell[data-playhead="true"] { box-shadow: inset 0 0 0 2px #2c6e62, 0 2px 0 #7f8b85; }
.anvil-pad-matrix__cell[data-playhead="true"][data-active="true"] { box-shadow: 0 0 0 2px var(--matrix-bar), 0 0 14px var(--matrix-bar); }
.anvil-pad-matrix__cell[data-selected="true"] { outline: 2px solid #fff; outline-offset: 1px; }
.anvil-pad-matrix__count { justify-self: end; min-width: 32px; padding: 4px 6px; border-radius: 6px; background: #0b1413; box-shadow: inset 0 1px 3px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.15); font: 900 13px 'JetBrains Mono', monospace; color: #7fe3c8; text-align: center; text-shadow: 0 0 6px rgba(127,227,200,.5); }
.anvil-pad-matrix button:focus-visible { outline: 2px solid #ffd9a0; outline-offset: 2px; }
@media (max-width: 760px) { .anvil-pad-matrix { padding: 10px; } .anvil-pad-matrix__grid { min-width: 720px; } .anvil-pad-matrix__row { grid-template-columns: 150px repeat(var(--steps, 16), minmax(0, 1fr)) 40px; } .anvil-pad-matrix__pad { font-size: 11px; } }

/* ---------- One pinned transport ---------- */
.heritage-ui #root#root .anvil-pad-transport__buttons,
.heritage-ui #root#root .anvil-pad-transport__quick-history,
.heritage-ui #root#root .anvil-console-sequencer .anvil-transport-play-stop,
.heritage-ui #root#root .anvil-console-sequencer__record,
.heritage-ui #root#root .anvil-step-mini-transport,
.heritage-ui #root#root .anvil-sequencer-deck button[title="Play"],
.heritage-ui #root#root .anvil-sequencer-deck button[title="Stop"],
.heritage-ui #root#root .anvil-sequencer-deck button[title="Record (Play+Rec)"],
.heritage-ui #root#root .anvil-sequencer-deck button[title="Overdub Record Toggle"] { display: none !important; }
.ws-transport { position: sticky; top: 0; z-index: 60; margin: 0 0 14px; padding: 10px 14px; border: 1px solid #5f6b66; border-top: 0; border-radius: 0 0 16px 16px; background-color: #a7afa9; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 3px), linear-gradient(180deg, #bec5bf 0%, #a5aea8 45%, #929c96 100%); box-shadow: 0 0 22px rgba(255,255,255,.22), 0 0 6px rgba(255,255,255,.25), 0 8px 18px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.5); font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.ws-transport__plate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 11px; border: 1px solid #4a5551; background: linear-gradient(180deg, #7c8680, #929c96 30%, #8b958f); box-shadow: inset 0 4px 10px rgba(15,25,23,.55), inset 0 -1px 0 rgba(255,255,255,.18), 0 1px 0 rgba(255,255,255,.55); }
.ws-transport__group { display: flex; align-items: center; gap: 6px; }
.ws-transport__deck { padding: 5px; border-radius: 10px; background: linear-gradient(180deg, #24403d, #1a302e); border: 1px solid #11201f; box-shadow: inset 0 3px 7px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.4); }
.ws-transport__key { position: relative; min-width: 40px; height: 40px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 7px; cursor: pointer; font: 800 12px 'JetBrains Mono', monospace; letter-spacing: .06em; color: #2c3a37; border: 1px solid #a3ada7; background: linear-gradient(180deg, #fbfcfa 0%, #e6eae6 45%, #cdd4cf 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(60,75,70,.18), 0 3px 0 #7f8b85, 0 5px 8px rgba(0,0,0,.28); transition: transform .08s ease, filter .15s ease; }
.ws-transport__key:active { transform: translateY(2px); }
.ws-transport__key:disabled { opacity: .5; cursor: default; }
.ws-transport__key:focus-visible { outline: 2px solid #ffd9a0; outline-offset: 2px; }
.ws-transport__play { min-width: 96px; border-color: #f5ddb2; background: linear-gradient(180deg, #ffd699, #f0b264 45%, #d48e45); color: #2a1c08; }
.ws-transport__play[aria-pressed="true"] { border-color: #bff3e1; background: linear-gradient(180deg, #a6e6d0, #6fbfa6); color: #0c1d1a; box-shadow: 0 0 14px rgba(127,227,200,.55), 0 3px 0 #2f6f5e; }
.ws-transport__stop { min-width: 84px; border-color: #c9b9b9; background: linear-gradient(180deg, #e9e0e0, #c4b6b6); color: #5b4848; }
.ws-transport__rec { min-width: 84px; border-color: #e2a6a6; background: linear-gradient(180deg, #eab1b1, #d48d8d); color: #5b2020; }
.ws-transport__rec[aria-pressed="true"] { border-color: #ff8a8e; background: linear-gradient(180deg, #ef5b60, #c9363c); color: #fff; box-shadow: 0 0 16px rgba(229,72,77,.65), 0 3px 0 #7a1d21; }
.ws-transport__lcd { display: flex; align-items: center; gap: 14px; padding: 5px 14px; border-radius: 9px; background: linear-gradient(180deg, #0f1d20, #050909 55%); border: 1px solid #050909; box-shadow: 0 1px 0 rgba(255,255,255,.4), inset 0 2px 8px rgba(0,0,0,.9); }
.ws-transport__lcd span { display: flex; flex-direction: column; gap: 1px; }
.ws-transport__lcd small { font-size: 9px; letter-spacing: .14em; color: #8a9d99; }
.ws-transport__lcd b { font-size: 20px; font-weight: 800; color: #f2dfc0; }
.ws-transport[data-bar="0"] [data-out="bar"] { color: #ffb547; text-shadow: 0 0 8px rgba(255,181,71,.6); }
.ws-transport[data-bar="1"] [data-out="bar"] { color: #5fe0b4; text-shadow: 0 0 8px rgba(95,224,180,.6); }
.ws-transport[data-bar="2"] [data-out="bar"] { color: #c08bff; text-shadow: 0 0 8px rgba(192,139,255,.6); }
.ws-transport[data-bar="3"] [data-out="bar"] { color: #ff6f61; text-shadow: 0 0 8px rgba(255,111,97,.6); }
.ws-transport__tempo { padding: 4px 6px; border-radius: 9px; background: #8d9791; border: 1px solid #66716c; box-shadow: inset 0 2px 5px rgba(20,32,30,.5); }
.ws-transport__tempo small { padding: 0 4px; font-size: 10px; font-weight: 800; color: #1a2624; }
.ws-transport__nudge { min-width: 30px; height: 32px; padding: 0; font-size: 14px; }
.ws-transport__readout { min-width: 36px; padding: 6px 8px; border-radius: 6px; background: #050909; color: #bff3e1; font-size: 13px; font-weight: 800; text-align: center; }
.ws-transport__modes { flex-wrap: wrap; gap: 4px; }
.ws-transport__mode { min-width: 0; height: 34px; font-size: 11px; }
.ws-transport__mode[aria-pressed="true"] { border-color: #ffe2b4; background: linear-gradient(180deg, #ffd699, #f0b264 45%, #d48e45); color: #2a1c08; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 0 #9a5f26, 0 0 16px rgba(240,166,64,.55); }
.ws-transport__meter { flex: 1 1 110px; max-width: 220px; display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border-radius: 8px; background: #050909; box-shadow: inset 0 2px 6px rgba(0,0,0,.9); }
.ws-transport__meter i { display: block; height: 5px; width: 2%; border-radius: 3px; background: linear-gradient(90deg, #5fe0b4, #ffcf86 70%, #ff6f61); box-shadow: 0 0 6px rgba(95,224,180,.5); transition: width .08s linear; }
@media (max-width: 760px) { .ws-transport { padding: 8px; } .ws-transport__plate { justify-content: center; padding: 6px; } .ws-transport__key { height: 38px; } .ws-transport__play { min-width: 80px; } .ws-transport__stop, .ws-transport__rec { min-width: 70px; } .ws-transport__meter { display: none; } }

/* ---------- Shared silver hardware pieces ---------- */
.heritage-ui:not(.anvil-forge-view) #root#root {
  --ws-silver: linear-gradient(180deg, #c3c9c3 0%, #a9b1ab 42%, #8f9993 100%);
  --ws-brush: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px);
  --ws-key: linear-gradient(180deg, #fbfcfa 0%, #e6eae6 45%, #cdd4cf 100%);
  --ws-key-on: linear-gradient(180deg, #ffd699 0%, #f0b264 45%, #d48e45 100%);
  --ws-key-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(60,75,70,.18), 0 3px 0 #7f8b85, 0 5px 8px rgba(0,0,0,.28);
  --ws-key-on-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 3px rgba(120,60,10,.25), 0 2px 0 #9a5f26, 0 0 16px rgba(240,166,64,.55);
  --ws-plate: linear-gradient(180deg, #7c8680, #929c96 30%, #8b958f);
  --ws-plate-shadow: inset 0 4px 10px rgba(15,25,23,.55), inset 0 -1px 0 rgba(255,255,255,.18), 0 1px 0 rgba(255,255,255,.55);
  --ws-dark-plate: radial-gradient(120% 90% at 50% 0%, #4f5b58 0%, #3c4744 55%, #323b39 100%);
}

/* ---------- App tabs: silver keys with colored tops ---------- */
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-main-tabs { padding: 10px 12px !important; border-radius: 14px; border: 1px solid #5f6b66; background-color: #a7afa9; background-image: var(--ws-brush), var(--ws-silver); box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 10px 20px rgba(0,0,0,.35); }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-main-tabs > button { min-height: 44px; border-radius: 9px !important; border: 1px solid #8e9a94 !important; border-top: 4px solid var(--anvil-tab-accent, #8e9a94) !important; background: linear-gradient(180deg, #eef1ed, #ccd3ce) !important; color: #24312e !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 0 #8e9a94 !important; font-family: Inter, system-ui, sans-serif; letter-spacing: .04em; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-main-tabs > button[data-anvil-selected="true"] { border-color: #f5ddb2 !important; background: linear-gradient(180deg, #f2c27d, #d99a4e) !important; color: #2a1c08 !important; box-shadow: 0 0 14px rgba(240,166,64,.6), inset 0 1px 0 rgba(255,255,255,.6) !important; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-main-tabs > button:nth-of-type(12n+1) { --anvil-tab-accent: #c57e67; } .heritage-ui:not(.anvil-forge-view) #root#root .anvil-main-tabs > button:nth-of-type(12n+2) { --anvil-tab-accent: #e7b36d; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-main-tabs > button:nth-of-type(12n+3) { --anvil-tab-accent: #d69965; } .heritage-ui:not(.anvil-forge-view) #root#root .anvil-main-tabs > button:nth-of-type(12n+4) { --anvil-tab-accent: #df965b; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-main-tabs > button:nth-of-type(12n+5) { --anvil-tab-accent: #d77d71; } .heritage-ui:not(.anvil-forge-view) #root#root .anvil-main-tabs > button:nth-of-type(12n+6) { --anvil-tab-accent: #89b9c9; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-main-tabs > button:nth-of-type(12n+7) { --anvil-tab-accent: #cfad71; } .heritage-ui:not(.anvil-forge-view) #root#root .anvil-main-tabs > button:nth-of-type(12n+8) { --anvil-tab-accent: #9cc779; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-main-tabs > button:nth-of-type(12n+9) { --anvil-tab-accent: #b7a4dc; } .heritage-ui:not(.anvil-forge-view) #root#root .anvil-main-tabs > button:nth-of-type(12n+10) { --anvil-tab-accent: #c8c7b4; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-main-tabs > button:nth-of-type(12n+11) { --anvil-tab-accent: #c67985; } .heritage-ui:not(.anvil-forge-view) #root#root .anvil-main-tabs > button:nth-of-type(12n+12) { --anvil-tab-accent: #8bc9b8; }

/* ---------- Plan cards ---------- */
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-plan-button { border-radius: 12px !important; border: 1px solid #8e9a94 !important; border-top: 5px solid var(--plan, #ffb547) !important; background: linear-gradient(180deg, #e6ebe6, #c8d0c9) !important; color: #1c2826 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 0 #8e9a94, 0 6px 12px rgba(0,0,0,.25) !important; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-plan-button * { color: #1c2826 !important; text-shadow: none !important; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-plan-button:nth-child(1) { --plan: #5fe0b4; } .heritage-ui:not(.anvil-forge-view) #root#root .anvil-plan-button:nth-child(2) { --plan: #ffb547; } .heritage-ui:not(.anvil-forge-view) #root#root .anvil-plan-button:nth-child(3) { --plan: #c08bff; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-plan-button:hover { box-shadow: 0 0 0 2px var(--plan), 0 0 22px color-mix(in srgb, var(--plan) 55%, transparent) !important; }

/* ---------- Support the Creator ---------- */
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-support-bar { border-radius: 13px !important; border: 1px solid #58645f !important; background-color: #a7afa9 !important; background-image: radial-gradient(140% 60% at 20% -10%, rgba(255,255,255,.38), transparent 55%), var(--ws-brush), var(--ws-silver) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -4px 8px rgba(20,32,30,.38), 0 0 22px rgba(255,255,255,.22), 0 0 6px rgba(255,255,255,.25), 0 14px 26px -6px rgba(0,0,0,.5) !important; color: #1a2624 !important; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-support-bar__message, .heritage-ui:not(.anvil-forge-view) #root#root .anvil-support-bar__message * { color: #1a2624 !important; text-shadow: 0 1px 0 rgba(255,255,255,.5) !important; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-support-bar__actions > *:not(.anvil-support-bar__amounts) { color: #33504a !important; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-support-bar__amounts button { min-height: 32px; border-radius: 7px !important; border: 1px solid #a3ada7 !important; background: var(--ws-key) !important; color: #3b4a46 !important; box-shadow: var(--ws-key-shadow) !important; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-support-bar__amounts button[aria-pressed="true"] { border-color: #ffe2b4 !important; background: var(--ws-key-on) !important; color: #2a1c08 !important; box-shadow: var(--ws-key-on-shadow) !important; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-support-bar__donate { border-radius: 9px !important; border: 1px solid #f5ddb2 !important; background: linear-gradient(90deg, #f2c27d, #9fd8c6) !important; color: #1c1206 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 0 #8a6a3c, 0 6px 12px rgba(0,0,0,.3) !important; }

/* ---------- Machine: vintage modes as glowing ovals ---------- */
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-vintage-strip { border-radius: 13px !important; background: var(--ws-dark-plate) !important; border: 1px solid #232b29 !important; box-shadow: inset 0 4px 12px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.35) !important; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-vintage-strip button:not(.anvil-vintage-locked-tune) { --glow: #ffb547; min-height: 38px; border-radius: 999px !important; border: 1px solid color-mix(in srgb, var(--glow) 75%, #a3ada7) !important; background: var(--ws-key) !important; color: #2c3a37 !important; font-size: 10.5px !important; letter-spacing: .06em; box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(60,75,70,.18), inset 0 -3px 0 color-mix(in srgb, var(--glow) 55%, transparent), 0 3px 0 #2a3331, 0 0 14px color-mix(in srgb, var(--glow) 38%, transparent) !important; opacity: 1 !important; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-vintage-strip button[aria-pressed="true"] { border-color: #ffe2b4 !important; background: var(--ws-key-on) !important; color: #2a1c08 !important; box-shadow: var(--ws-key-on-shadow) !important; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-vintage-strip button:disabled { cursor: not-allowed; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-vintage-strip button:nth-of-type(11n+2) { --glow: #ff7b6b; } .heritage-ui:not(.anvil-forge-view) #root#root .anvil-vintage-strip button:nth-of-type(11n+3) { --glow: #5fe0b4; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-vintage-strip button:nth-of-type(11n+4) { --glow: #ff6f61; } .heritage-ui:not(.anvil-forge-view) #root#root .anvil-vintage-strip button:nth-of-type(11n+5) { --glow: #8fb8ff; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-vintage-strip button:nth-of-type(11n+6) { --glow: #c08bff; } .heritage-ui:not(.anvil-forge-view) #root#root .anvil-vintage-strip button:nth-of-type(11n+7) { --glow: #4fd0e0; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-vintage-strip button:nth-of-type(11n+8) { --glow: #e0a060; } .heritage-ui:not(.anvil-forge-view) #root#root .anvil-vintage-strip button:nth-of-type(11n+9) { --glow: #d6c27a; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-vintage-strip button:nth-of-type(11n+10) { --glow: #ff8fc0; } .heritage-ui:not(.anvil-forge-view) #root#root .anvil-vintage-strip button:nth-of-type(11n+11) { --glow: #9fe07a; }

/* Reinstall H kit: red key, white text */
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-workstation-bank-rack button[title^="Reload all 16 Bank H"] { border-radius: 7px !important; border: 1px solid #e0767c !important; background: linear-gradient(180deg, #c9434a, #8e2227) !important; color: #fff !important; text-shadow: 0 1px 1px rgba(0,0,0,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 0 #5a1418, 0 0 12px rgba(220,70,70,.4) !important; }

/* ---------- Disk Load Station sits on a recessed plate ---------- */
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-disk-drive { border-radius: 14px !important; background: var(--ws-plate) !important; border: 1px solid #4a5551 !important; box-shadow: var(--ws-plate-shadow) !important; }
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-disk-chop-controls button:not([aria-pressed="true"]):not(.is-selected) { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 0 rgba(0,0,0,.35), 0 0 14px rgba(192,139,255,.35); }

/* ---------- Panels: silver bezel around a dark recessed plate ---------- */
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-studio-board-shell--workstation :is(.anvil-master-console, .anvil-master-out-rack, .anvil-groove-controls, .anvil-workstation-left-rail, .anvil-workstation-pad-column, .anvil-workstation-right-rail, .anvil-bank-mix-panel, .anvil-sequencer-deck, div:has(> .anvil-waveform-header)) {
  position: relative;
  border: 6px solid transparent !important;
  border-radius: 16px !important;
  background: radial-gradient(130% 70% at 50% 0%, #2f3a38 0%, #222a29 55%, #1a2120 100%) padding-box, linear-gradient(180deg, #dfe3df 0%, #b3bbb5 40%, #8a948e 100%) border-box !important;
  box-shadow: inset 0 4px 14px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.04), 0 1px 0 rgba(255,255,255,.4), 0 14px 26px -6px rgba(0,0,0,.55) !important;
}
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-studio-board-shell--workstation :is(.anvil-master-console, .anvil-master-out-rack, .anvil-workstation-pad-column, .anvil-bank-mix-panel, .anvil-sequencer-deck, div:has(> .anvil-waveform-header))::before {
  content: ""; position: absolute; top: 5px; left: 6px; right: 6px; height: 7px; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at 3.5px 3.5px, #f1f3ef 0 2px, #6c7873 2.6px, #3c4542 3.4px, transparent 3.6px) left / 7px 7px no-repeat, radial-gradient(circle at 3.5px 3.5px, #f1f3ef 0 2px, #6c7873 2.6px, #3c4542 3.4px, transparent 3.6px) right / 7px 7px no-repeat;
}
/* the new sequencer grid already carries its own silver panel */
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-sequencer-deck .anvil-pad-matrix { margin: 0 -2px; }

/* ---------- Mix Desk artwork panels ---------- */
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-workstation-left-rail .anvil-workstation-illustration--producer,
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-workstation-right-rail .anvil-workstation-illustration--record-store { display: none !important; }
.ws-art-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin: 18px 0 14px; }
.ws-art { --hx: 50%; --hy: 50%; position: relative; margin: 0; height: 380px; overflow: hidden; border-radius: 15px; border: 3px solid #566d66; background: #203633; box-shadow: inset 0 0 0 4px #b2c5b6, 0 8px 18px rgba(0,0,0,.42); }
.ws-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform-origin: 50% 55%; }
.ws-art__light { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: 0; background: radial-gradient(ellipse 67% 48% at var(--hx) var(--hy), rgba(var(--hit), .82), rgba(var(--hit), .28) 45%, transparent 85%), linear-gradient(135deg, transparent 14%, rgba(var(--hit), .12) 52%, transparent 88%); }
.ws-art__frame { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 20px rgba(8,33,30,.58); }
.ws-art figcaption { position: absolute; left: 12px; bottom: 10px; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 7px; background: rgba(5,9,9,.78); border: 1px solid #3b4a48; font: 800 10px 'JetBrains Mono', monospace; letter-spacing: .1em; color: #f2dfc0; }
.ws-art figcaption i { width: 8px; height: 8px; border-radius: 4px; background: #3a2a1c; }
.ws-art.is-beat img { animation: ws-art-groove .5s ease-out 1 both; }
.ws-art.is-beat .ws-art__frame { animation: ws-art-glow .5s ease-out 1 both; }
.ws-art.is-beat figcaption i, .ws-art.is-hit figcaption i { background: rgb(var(--hit)); box-shadow: 0 0 8px rgb(var(--hit)); }
.ws-art.is-hit img { animation: ws-art-hit .38s ease-out 1 both; }
.ws-art.is-hit .ws-art__light { animation: ws-art-light .38s ease-out 1 both; }
@keyframes ws-art-groove { 0%, 100% { transform: scale(1) translateY(0); filter: brightness(1); } 22% { transform: scale(1.018) translateY(-3px); filter: brightness(1.09); } }
@keyframes ws-art-glow { 0%, 100% { box-shadow: inset 0 0 20px rgba(8,33,30,.58); } 22% { box-shadow: inset 0 0 34px rgba(89,194,170,.48), inset 0 0 0 3px rgba(89,194,170,.3); } }
@keyframes ws-art-hit { 0%, 100% { transform: scale(1); filter: brightness(1); } 18% { transform: scale(1.027) translateY(-4px); filter: brightness(1.14); } 48% { transform: scale(1.012) translateY(1px); filter: brightness(1.05); } }
@keyframes ws-art-light { 0%, 100% { opacity: 0; } 13% { opacity: 1; } 40% { opacity: .62; } }
@media (max-width: 760px) { .ws-art { height: 240px; } }
@media (prefers-reduced-motion: reduce) { .ws-art img, .ws-art__frame, .ws-art__light { animation: none !important; } }

/* Rails hug their content now that the tall art moved to the Mix Desk row. */
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-workstation-control-grid { align-items: start; }

/* ---------- Quick Start Guide (folded by default) ---------- */
.heritage-ui:not(.anvil-forge-view) #root#root .anvil-quick-guide { display: none; }
body.ws-field-notes-open .heritage-ui:not(.anvil-forge-view) #root#root .anvil-quick-guide, .heritage-ui.ws-field-notes-open:not(.anvil-forge-view) #root#root .anvil-quick-guide, body.ws-field-notes-open #root#root .anvil-quick-guide { display: block; }
.ws-quick-start { margin: 18px 0 14px; padding: 14px; border-radius: 13px; border: 1px solid #58645f; background-color: #a7afa9; background-image: radial-gradient(140% 60% at 20% -10%, rgba(255,255,255,.38), transparent 55%), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px), linear-gradient(180deg, #c3c9c3 0%, #a9b1ab 42%, #8f9993 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -4px 8px rgba(20,32,30,.38), 0 14px 26px -6px rgba(0,0,0,.5); font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.ws-quick-start__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ws-quick-start__head strong { font-size: 12px; letter-spacing: .12em; color: #14201e; text-shadow: 0 1px 0 rgba(255,255,255,.65); }
.ws-quick-start__buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-quick-start__body { display: none; margin-top: 12px; flex-direction: column; gap: 10px; }
.ws-quick-start.is-open .ws-quick-start__body { display: flex; }
.ws-quick-start__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; padding: 12px; border-radius: 11px; border: 1px solid #4a5551; background: linear-gradient(180deg, #7c8680, #929c96 30%, #8b958f); box-shadow: inset 0 4px 10px rgba(15,25,23,.55), 0 1px 0 rgba(255,255,255,.55); }
.ws-quick-start__cards article { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; border: 1px solid #9aa59f; border-top: 4px solid var(--c); background: linear-gradient(180deg, #f6f8f5, #dfe4df); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #8e9a94, 0 6px 12px rgba(0,0,0,.2), 0 0 14px color-mix(in srgb, var(--c) 18%, transparent); }
.ws-quick-start__cards article div { display: flex; align-items: center; gap: 8px; }
.ws-quick-start__cards b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; font-size: 12px; color: #fff8ec; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 55%, transparent), inset 0 1px 0 rgba(255,255,255,.4); }
.ws-quick-start__cards strong { font-size: 12px; letter-spacing: .06em; color: #1a2624; }
.ws-quick-start__cards small { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--c); }
.ws-quick-start__cards p { margin: 0; font: 600 12px/1.45 Inter, system-ui, sans-serif; color: #24312e; }
.ws-quick-start__keys { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 14px; border-radius: 10px; background: linear-gradient(180deg, #11232a 0%, #0a1416 38%, #060c0d 100%); box-shadow: 0 0 0 1px #4f5b56, inset 0 3px 10px rgba(0,0,0,.85); font-size: 11px; font-weight: 700; color: #bff3e1; }
.ws-quick-start__keys em { font-style: normal; color: #ffcf86; }

/* Transport: one row on laptop widths */
@media (min-width: 900px) {
  .ws-transport { padding: 8px 10px; }
  /* Nov 20 2026: one row when it fits; on a 1280-1536 px laptop at 100% zoom it wraps instead of running off the window. */
  .ws-transport__plate { flex-wrap: wrap; gap: 6px 8px; padding: 6px 8px; }
  .ws-transport__group { gap: 4px; flex-shrink: 0; }
  .ws-transport__deck { padding: 4px; }
  .ws-transport__key { min-width: 34px; height: 36px; padding: 0 8px; font-size: 11px; }
  .ws-transport__play { min-width: 80px; }
  .ws-transport__stop, .ws-transport__rec { min-width: 66px; }
  .ws-transport__lcd { gap: 10px; padding: 4px 10px; flex-shrink: 0; }
  .ws-transport__lcd b { font-size: 18px; }
  .ws-transport__nudge { min-width: 26px; height: 30px; }
  .ws-transport__readout { min-width: 30px; padding: 5px 6px; font-size: 12px; }
  .ws-transport__modes { flex-wrap: nowrap; }
  .ws-transport__mode { height: 32px; padding: 0 7px; font-size: 10px; }
  .ws-transport__meter { flex: 1 1 40px; min-width: 40px; }
}

/* Transport on phones and iPad portrait: compact rows, never wider than the screen */
@media (max-width: 899px) {
  .ws-transport__meter { display: none; }
  .ws-transport { box-sizing: border-box; width: 100%; max-width: 100%; margin-bottom: 10px; padding: 6px; border-radius: 0 0 12px 12px; }
  .ws-transport__plate { display: grid; grid-template-columns: auto 1fr; gap: 6px; padding: 6px; }
  .ws-transport__deck { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 2fr 2fr 2fr 1fr; gap: 4px; padding: 4px; }
  .ws-transport__key { min-width: 0 !important; height: 36px; padding: 0 4px; font-size: 10px; letter-spacing: .02em; }
  .ws-transport__lcd { gap: 8px; padding: 3px 8px; }
  .ws-transport__lcd b { font-size: 16px; }
  .ws-transport__lcd small { font-size: 8px; }
  .ws-transport__tempo { justify-self: end; padding: 3px 4px; gap: 3px; }
  .ws-transport__tempo [data-out="sig"], .ws-transport__tempo [data-out="bars"] { display: none; }
  .ws-transport__nudge { width: 28px; height: 30px; }
  .ws-transport__modes { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ws-transport__modes::-webkit-scrollbar { display: none; }
  .ws-transport__mode { flex: 1 0 auto; height: 30px; padding: 0 8px; }
}

/* Sequencer on phones: slim name column that stays put while steps scroll */
.anvil-pad-matrix__pad { position: sticky; left: 0; z-index: 2; }
.anvil-pad-matrix__corner:first-child { position: sticky; left: 0; z-index: 2; }
@media (max-width: 760px) {
  .anvil-pad-matrix__scroll { padding: 8px; }
  .anvil-pad-matrix__grid { min-width: 600px; }
  .anvil-pad-matrix__row { grid-template-columns: 96px repeat(var(--steps, 16), minmax(26px, 1fr)) 34px; column-gap: 2px; }
  .anvil-pad-matrix__pad { gap: 5px; padding: 0 4px 0 2px; font-size: 10px; height: 34px; }
  .anvil-pad-matrix__key { min-width: 18px; }
  .anvil-pad-matrix__cell { height: 34px; }
  .anvil-pad-matrix__tick[data-gap="true"], .anvil-pad-matrix__cell[data-gap="true"] { margin-left: 4px; }
  .anvil-pad-matrix__count { min-width: 0; padding: 4px 2px; font-size: 11px; }
}

/* Transport: full width of the Workstation, sitting on a dark band that
   fades out toward the screen edges so it always reads as "pinned". */
.heritage-ui #root#root .ws-transport { margin-left: 0 !important; margin-right: 0 !important; width: 100%; box-sizing: border-box; isolation: isolate; background: transparent; box-shadow: none; border-color: transparent; }
.heritage-ui #root#root .ws-transport::after { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid #5f6b66; border-top: 0; border-radius: inherit; background-color: #a7afa9; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 3px), linear-gradient(180deg, #bec5bf 0%, #a5aea8 45%, #929c96 100%); box-shadow: 0 0 22px rgba(255,255,255,.18), 0 10px 22px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.5); }
.heritage-ui #root#root .ws-transport::before { content: ""; position: absolute; z-index: -2; top: -10px; bottom: -22px; left: calc(50% - 50vw); width: 100vw; pointer-events: none; background: linear-gradient(90deg, rgba(6,9,10,0) 0%, rgba(6,9,10,.9) 14%, rgba(10,14,15,.96) 50%, rgba(6,9,10,.9) 86%, rgba(6,9,10,0) 100%); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%); }
@media (max-width: 899px) { .heritage-ui #root#root .ws-transport::before { background: linear-gradient(90deg, rgba(6,9,10,.55) 0%, rgba(10,14,15,.96) 18%, rgba(10,14,15,.96) 82%, rgba(6,9,10,.55) 100%); } }
/* The band meets the session header exactly and is solid in the middle, so
   the page slides out of sight behind the transport. */
.heritage-ui #root#root .ws-transport::before { top: -1px; bottom: -26px; background: linear-gradient(90deg, rgba(6,9,10,0) 0%, rgba(8,11,12,.94) 10%, #0a0e0f 22%, #0a0e0f 78%, rgba(8,11,12,.94) 90%, rgba(6,9,10,0) 100%); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 80%, transparent 100%); }
@media (max-width: 899px) { .heritage-ui #root#root .ws-transport::before { background: linear-gradient(90deg, rgba(8,11,12,.75) 0%, #0a0e0f 14%, #0a0e0f 86%, rgba(8,11,12,.75) 100%); } }

/* ---------- Redesign layout grid (placed by workstation-layout.js) ---------- */
.heritage-ui #root#root .ws-layout { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 1px; column-gap: 14px; row-gap: 0; align-items: start; }
.heritage-ui #root#root .ws-layout .ws-flat { display: contents !important; }
.heritage-ui #root#root .ws-layout .ws-item { margin: 0 !important; min-width: 0; align-self: start; max-width: none !important; width: auto !important; }
.heritage-ui #root#root .ws-layout .ws-art-row { margin: 0 !important; }
.ws-band-title { display: flex; align-items: center; gap: 10px; align-self: end; font: 900 12px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .16em; color: #f2dfc0; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.ws-band-title::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: linear-gradient(135deg, #ffcf86, #c9793a); box-shadow: 0 0 10px rgba(255,178,92,.6); }
.ws-band-title::after { content: ""; flex: 1; height: 2px; border-radius: 1px; background: linear-gradient(90deg, rgba(242,223,192,.45), transparent); }
/* Pad Flex column: the wave editor and trigger mode read as one stack */
.heritage-ui #root#root .ws-layout .anvil-workstation-left-rail > .anvil-fold-toggle { display: none; }
.heritage-ui #root#root .ws-layout .anvil-console-rail__title { display: none; }
/* Session column: Forge Heat sits between Master Output and Export Kit */
.heritage-ui #root#root .anvil-workstation-right-rail > .anvil-console-heat { min-height: 300px; }
/* Panels take their natural height on the layout grid (no fill-to-parent). */
.heritage-ui #root#root .ws-layout .ws-item { height: auto !important; min-height: 0 !important; }
.heritage-ui #root#root .ws-layout .anvil-workstation-right-rail > .anvil-console-heat { height: 340px !important; min-height: 0 !important; flex: none !important; }
.heritage-ui #root#root .ws-layout .ws-item { align-self: start !important; justify-self: stretch !important; }
.heritage-ui #root#root .ws-layout { row-gap: 0 !important; column-gap: 14px !important; grid-auto-rows: 1px !important; grid-template-rows: none !important; }

/* LIVE art moves with the sound (art-live.js sets --art-live 0-1 and --art-bass 0-1):
   it swells and brightens with the level, the low end lifts it, and a warm glow follows. */
.ws-art img { will-change: transform, filter; transform: translateY(calc(var(--art-bass, 0) * -4px)) scale(calc(1 + var(--art-live, 0) * .035 + var(--art-bass, 0) * .025)); filter: brightness(calc(1 + var(--art-live, 0) * .22)) saturate(calc(1 + var(--art-live, 0) * .3)); }
.ws-art.is-beat img, .ws-art.is-hit img { animation: none; }
.ws-art::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; will-change: opacity; opacity: calc(var(--art-live, 0) * .55 + var(--art-bass, 0) * .35); background: radial-gradient(ellipse 75% 60% at 50% 62%, rgba(var(--hit), .55), rgba(var(--hit), .14) 55%, transparent 85%); }
.ws-art figcaption i { box-shadow: 0 0 calc(2px + var(--art-live, 0) * 12px) rgb(var(--hit)); background: rgba(var(--hit), calc(.25 + var(--art-live, 0) * .75)); }
@media (prefers-reduced-motion: reduce) { .ws-art img { transform: none !important; filter: none !important; } .ws-art::after { opacity: 0 !important; } }

/* BARS is a drop-down: pick 1, 2, 3 or 4 bars (up to 32 with Studio) to record and loop. */
.ws-transport select.ws-transport__bars {
  -webkit-appearance: none; appearance: none; cursor: pointer; font: inherit; line-height: inherit;
  padding-right: 22px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffcf86' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 7px center !important; background-size: 10px 7px !important;
}
.ws-transport select.ws-transport__bars:disabled { opacity: .6; cursor: not-allowed; }
.ws-transport select.ws-transport__bars option { color: #111; background: #fff; }

/* Phones: size the step grid to the screen (Nov 2026).
   Upright  -> beats 1-2 (8 steps) fill the view, swipe sideways for 3-4.
   Sideways -> the whole bar (beats 1-4, 16 steps) fits with no scrolling.
   Cell width is worked out from the scroll box width (container units), so every phone size fits. */
html.ws-phone .anvil-pad-matrix__scroll { container-type: inline-size; }
html.ws-phone .anvil-pad-matrix__grid {
  --mx-cell: calc((100cqw - 98px) / 8 - 2px);
  min-width: 0;
  width: calc(130px + var(--steps, 16) * var(--mx-cell) + (var(--steps, 16) + 1) * 2px);
}
@media (orientation: landscape) {
  html.ws-phone .anvil-pad-matrix__grid { --mx-cell: calc((100cqw - 164px) / 16); }
}
html.ws-phone .anvil-pad-matrix__row { grid-template-columns: 96px repeat(var(--steps, 16), var(--mx-cell)) 34px; column-gap: 2px; }

/* Metronome CLICK VOLUME pop-up (0 to +24 dB) */
.ws-transport__clickvol { font-variant-numeric: tabular-nums; }
.ws-click-pop { position: fixed; z-index: 9999; width: 220px; padding: 10px 12px 8px; border: 1px solid #e2aa61; border-radius: 8px; background: linear-gradient(#2b2520, #1b1814); box-shadow: 0 10px 28px rgba(0,0,0,.55); color: #f3e3c8; font: 800 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
.ws-click-pop label { display: flex; flex-direction: column; gap: 8px; }
.ws-click-pop label span { display: flex; justify-content: space-between; }
.ws-click-pop output { color: #ffc56e; }
.ws-click-pop input[type=range] { width: 100%; min-height: 28px; margin: 0; accent-color: #f0a640; }
.ws-click-pop__scale { display: flex; justify-content: space-between; color: #a8977d; font-size: 9px; }
.ws-click-pop__scale i { font-style: normal; }

/* PASS 1 / PASS 2 key on the transport (Nov 2026): "PASS" over the number; lit on PASS 2. */
.ws-transport__pass { display: inline-flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1; min-width: 46px; }
.ws-transport__pass small { font-size: 8px; letter-spacing: 0.12em; opacity: 0.8; }
.ws-transport__pass b { font-size: 15px; }
.ws-transport__pass[aria-pressed="true"] { border-color: #ffe2b4; background: linear-gradient(180deg, #ffd699, #f0b264 45%, #d48e45); color: #2a1c08; }
html.ws-phone .ws-transport__deck { grid-template-columns: 1fr 1fr 2fr 2fr 2fr 1fr 1.15fr !important; }
@media (max-width: 760px) { .ws-transport__deck { grid-template-columns: 1fr 1fr 2fr 2fr 2fr 1fr 1.15fr; } }
@media (max-width: 559px) {
  html.ws-phone .ws-transport__deck { grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, .8fr) minmax(0, 1fr) !important; gap: 3px !important; }
  html.ws-phone .ws-transport__pass small { font-size: 7px; letter-spacing: 0.02em; }
  html.ws-phone .ws-transport__pass { min-width: 0; padding: 0 !important; }
}

/* PASS menu (Nov 2026): PASS 1 / PASS 2 and COPY PASS 1 -> PASS 2 with bank picks. */
.ws-pass-pop { position: fixed; z-index: 9999; width: 260px; max-width: calc(100vw - 16px); box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid #e2aa61; border-radius: 8px; background: linear-gradient(#2b2520, #1b1814); box-shadow: 0 10px 28px rgba(0,0,0,.55); color: #f3e3c8; font: 800 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
.ws-pass-pop button { min-height: 36px; border-radius: 6px; border: 1px solid #6d5a40; background: linear-gradient(#3a322a, #26211c); color: #f3e3c8; font: inherit; font-size: 12px; cursor: pointer; touch-action: manipulation; }
.ws-pass-pop button[aria-pressed="true"] { border-color: #ffe2b4; background: linear-gradient(180deg, #ffd699, #f0b264 45%, #d48e45); color: #2a1c08; }
.ws-pass-pop__row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
/* PASS 1–4 and FROM / TO copy (Nov 19 2026) */
.ws-pass-pop { width: 288px; }
.ws-pass-pop__row--4 { grid-template-columns: repeat(4, 1fr); }
.ws-pass-pop__row button.has-notes:not([aria-pressed="true"]) { border-color: #c98b45; }
.ws-pass-pop__fromto { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 8px; font-size: 10px; color: #c9b89c; }
.ws-pass-pop__fromto > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.ws-pass-pop__fromto button { min-height: 30px; }
.ws-pass-pop__fromto button:disabled { opacity: .35; cursor: default; }
.ws-pass-pop__title { color: #ffc56e; margin-top: 2px; }
.ws-pass-pop__banks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.ws-pass-pop__banks button.has-notes:not([aria-pressed="true"]) { border-color: #c98b45; }
.ws-pass-pop__copy { background: linear-gradient(#4b7a6c, #2c4d44) !important; border-color: #8fd3bd !important; color: #e8fff6 !important; }
.ws-pass-pop__copy:disabled { opacity: .5; cursor: default; }
.ws-pass-pop small { font-weight: 600; font-size: 10px; line-height: 1.35; color: #c9b89c; letter-spacing: 0; }

/* Nov 18 2026: the dark backdrop behind the pinned transport stays inside the bar's own
   width on desktop (it used to run the full screen width, past the board's edges). */
html:not(.ws-phone) .heritage-ui #root#root .ws-transport::before { left: 0 !important; right: 0 !important; width: auto !important; border-radius: 0 0 12px 12px; background: #0a0e0f !important; }
