/* Minecraft Structure Viewer (Claude Main, 10 Oct 2026): built on the Image Studio skeleton (/assets/media-engine/engine.css):
   top bar, tool rail, stage and sidebar. This file only adds the 3D stage, the materials panel and the block list. Scoped to .sv-mx. */
.sv-mx { --side: 380px; --acc: 167, 139, 250; }
.sv-mx h1.mx-title { margin: 0; font-family: inherit; line-height: 1.3; }
.sv-mx .mx-pill span { display: inline; }

/* Rail: a second divider inside the tools, and the example / library shortcuts */
.sv-mx .mx-tools { display: flex; flex-direction: column; gap: 4px; }
.sv-mx .sv-rail-hr { width: 100%; margin: 6px 0; border: 0; border-top: 1px solid var(--line); }
.sv-mx a.mx-tool { text-decoration: none; }

/* Top-bar layer slider */
.sv-mx .sv-layer input { width: 160px; }
.sv-mx .sv-layer b { min-width: 34px; text-align: right; }

/* Build mode */
.sv-layerctl { display: flex; align-items: center; gap: 4px; }
.sv-step:disabled { opacity: .3; }
.sv-build[aria-pressed="true"] { border-color: rgba(var(--acc), .6); background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(167,139,250,.22)); color: #fff; box-shadow: 0 8px 22px -12px rgba(139,92,246,.8); }
.sv-build[aria-pressed="true"] svg { color: #c4b5fd; }
.sv-bchip { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 14px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: rgba(8,8,12,.78); color: #a1a1aa; font: 600 12px Inter, system-ui, sans-serif; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: svIn .3s ease both; }
.sv-bchip b { color: #fff; font: 800 13px Inter, system-ui, sans-serif; }
.sv-bchip span { display: inline-flex; align-items: center; gap: 6px; }
.sv-bchip i { width: 10px; height: 10px; border-radius: 3px; }
.sv-bchip i.cur { background: #e9d8a6; box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.sv-bchip i.below { background: #14141c; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.sv-lhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.sv-lhead small { display: block; margin-bottom: 3px; color: #a78bfa; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sv-lhead b { color: #fff; font: 800 19px Outfit, Inter, system-ui, sans-serif; }
.sv-lhead span { color: #8a8d9b; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sv-mx.building .sv-sum { display: none; }


/* Stage: a soft lit backdrop instead of the checkerboard */
.sv-mx .sv-stage { padding: 0; place-items: stretch; background: radial-gradient(120% 90% at 50% 0%, #161a26 0%, #0a0b10 55%, #06060a 100%); overflow: hidden; }
.sv-empty { display: grid; place-items: center; height: 100%; padding: 24px; }
.sv-mx .mx-empty { cursor: pointer; }
.sv-mx .mx-empty > svg { width: 52px; height: 52px; }
.sv-mx .mx-empty p { max-width: 430px; text-align: center; line-height: 1.55; }
.sv-mx .sv-stage.drag .mx-empty { transform: scale(1.01); }
.sv-view { position: absolute; inset: 0; }
.sv-view canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.sv-view canvas:active { cursor: grabbing; }
.sv-busy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; background: rgba(6,6,10,.62); color: #e4e4e7; font: 700 14px Inter, system-ui, sans-serif; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .35s ease; }
.sv-busy.off { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }   /* fully off once faded: no blur over the 3D view */
.sv-busy .mx-loader { width: 92px; height: 92px; }
.sv-busy .mx-loader img { width: 52px; height: 52px; }
.sv-chip { position: absolute; top: 14px; left: 50%; max-width: calc(100% - 28px); padding: 8px 14px; border: 1px solid rgba(250,204,21,.3); border-radius: 999px; background: rgba(18,15,6,.86); color: #fde68a; font: 600 12.5px/1.4 Inter, system-ui, sans-serif; text-align: center; transform: translateX(-50%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sv-help { position: absolute; left: 50%; bottom: 14px; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(8,8,12,.6); color: #8a8d9b; font-size: 11.5px; white-space: nowrap; transform: translateX(-50%); pointer-events: none; transition: opacity .6s; }
.sv-help.gone { opacity: 0; }

/* Sidebar */
.sv-mx .sv-tabs { grid-template-columns: repeat(2, 1fr); }
.sv-pane { display: flex; flex-direction: column; min-height: 0; }
.sv-pane[data-pane="mats"] { flex: 1; }
.sv-sum { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 8px 16px; border-bottom: 1px solid var(--line); }
.sv-sum div { display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 0 6px; }
.sv-sum div + div { border-left: 1px solid var(--line); }
.sv-sum b { max-width: 100%; overflow: hidden; color: #fff; font: 800 17px Outfit, Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }
.sv-sum small { color: #71717a; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sv-prog { padding: 14px 18px 0; }
.sv-prog-top { display: flex; justify-content: space-between; margin-bottom: 8px; color: #8a8d9b; font-size: 12px; font-weight: 700; }
.sv-prog-top b { color: #e4e4e7; font-variant-numeric: tabular-nums; }
.sv-prog i { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.sv-prog em { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22d3ee, #a78bfa); transition: width .45s cubic-bezier(.22,1,.36,1); }
.sv-ltools { position: sticky; top: 63px; z-index: 2; display: flex; gap: 8px; padding: 14px 14px 10px; background: #08080c; }
.sv-find { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: rgba(255,255,255,.03); color: #71717a; transition: border-color .2s, background .2s; }
.sv-find:focus-within { border-color: rgba(var(--acc), .6); background: rgba(255,255,255,.05); }
.sv-find svg { width: 15px; height: 15px; }
.sv-find input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: 500 13.5px Inter, system-ui, sans-serif; outline: none; }
.sv-find input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.sv-seg { display: flex; flex: none; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(255,255,255,.04); }
.sv-seg button { height: 32px; padding: 0 11px; border: 0; border-radius: 8px; background: none; color: #8a8d9b; font: 700 12px Inter, system-ui, sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.sv-seg button:hover { color: #fff; }
.sv-seg button[aria-pressed="true"] { background: rgba(var(--acc), .16); color: #ddd6fe; }

/* The block list: clean rows, no boxes */
.sv-list { margin: 0; padding: 2px 8px 16px; list-style: none; }
.sv-row { position: relative; display: grid; grid-template-columns: 26px 38px minmax(0, 1fr) auto; align-items: center; column-gap: 11px; padding: 9px 10px 11px; border-radius: 12px; cursor: pointer; animation: svIn .38s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i, 0) * 12ms); transition: background .18s, opacity .25s; }
.sv-row + .sv-row::after { content: ""; position: absolute; left: 85px; right: 10px; top: 0; border-top: 1px solid rgba(255,255,255,.045); }
.sv-row:hover { background: rgba(255,255,255,.04); }
.sv-row:hover::after, .sv-row:hover + .sv-row::after, .sv-row.on::after, .sv-row.on + .sv-row::after { opacity: 0; }
.sv-row.on { background: rgba(var(--acc), .1); }
.sv-row.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: #a78bfa; }
.sv-tick { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 1.5px solid rgba(255,255,255,.22); border-radius: 50%; background: none; color: transparent; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.sv-tick:hover { border-color: rgba(255,255,255,.5); }
.sv-tick:active { transform: scale(.88); }
.sv-tick svg { width: 12px; height: 12px; stroke-width: 3.2; }
.sv-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.08), rgba(255,255,255,.02)); }
.sv-ic img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
.sv-nm { display: grid; gap: 2px; min-width: 0; }
.sv-nm b { overflow: hidden; color: #f4f4f5; font: 650 13.5px Inter, system-ui, sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.sv-nm small { overflow: hidden; color: #71717a; font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.sv-qty { display: grid; justify-items: end; gap: 1px; color: #fff; font: 800 15px Outfit, Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.sv-qty small { color: #52525b; font: 700 10px Inter, system-ui, sans-serif; letter-spacing: .06em; }
.sv-row.done { opacity: .42; }
.sv-row.done .sv-nm b { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }
.sv-row.done .sv-tick { border-color: #22c55e; background: #22c55e; color: #052e16; }
.sv-none { padding: 36px 16px; color: #71717a; font-size: 13px; line-height: 1.5; text-align: center; }

/* Details pane */
.sv-how { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sv-how li { position: relative; padding-left: 16px; color: #a1a1aa; font-size: 13px; line-height: 1.55; }
.sv-how li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #a78bfa; }
.sv-how b { color: #f4f4f5; }
.sv-formats { display: grid; gap: 8px; }
.sv-formats span { display: flex; align-items: center; gap: 10px; color: #a1a1aa; font-size: 12.5px; }
.sv-formats em { min-width: 98px; padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.05); color: #e4e4e7; font: 700 12px ui-monospace, Consolas, monospace; font-style: normal; }

.sv-h { margin: 0; color: #8a8d9b; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sv-faq { display: grid; gap: 2px; }
.sv-faq details { border-radius: 10px; transition: background .2s; }
.sv-faq details[open] { background: rgba(255,255,255,.03); }
.sv-faq summary { position: relative; padding: 10px 30px 10px 10px; color: #e4e4e7; font-size: 13px; font-weight: 650; line-height: 1.4; list-style: none; cursor: pointer; }
.sv-faq summary::-webkit-details-marker { display: none; }
.sv-faq summary::after { content: ""; position: absolute; right: 12px; top: 15px; width: 7px; height: 7px; border-right: 2px solid #71717a; border-bottom: 2px solid #71717a; transform: rotate(45deg); transition: transform .2s; }
.sv-faq details[open] summary::after { transform: rotate(-135deg); top: 18px; }
.sv-faq p { margin: 0; padding: 0 12px 12px 10px; color: #a1a1aa; font-size: 12.5px; line-height: 1.6; }

@keyframes svIn { from { opacity: 0; transform: translateY(4px); } }

/* Not loaded yet: the panel waits quietly */
.sv-mx:not(.has-pic) .sv-ltools, .sv-mx:not(.has-pic) .sv-sum { opacity: .4; pointer-events: none; }
.sv-mx:not(.has-pic) .sv-tools [data-t]:not([data-t="example"]) { opacity: .35; pointer-events: none; }

@media (max-width: 1280px) { .sv-mx { --side: 340px; } .sv-mx .sv-layer input { width: 120px; } }
@media (max-width: 1020px) { .sv-mx .mx-pill span { display: none; } .sv-mx .mx-pill { padding: 0 10px; } }
@media (max-width: 760px) {
  .sv-mx .sv-tabs { grid-template-columns: repeat(2, 1fr) 40px; }
  .sv-mx .mx-acts .mx-primary span { display: none; }
  .sv-mx .mx-acts .mx-primary { height: 34px; padding: 0 11px; }
  .sv-mx .sv-layer input { width: auto; flex: 1; }
  .sv-mx .sv-layerctl { flex: 1 1 auto; min-width: 0; }
  .sv-mx .sv-layer { flex: 1 1 auto; min-width: 0; }
  .sv-mx .sv-build span { display: none; }
  .sv-mx .sv-build { padding: 0 10px; }
  .sv-bchip { top: 8px; left: 8px; gap: 10px; padding: 6px 11px; font-size: 11px; }
  .sv-bchip span:last-child { display: none; }
  .sv-mx .mx-ctx { overflow: visible; }
  .sv-mx .mx-tools { flex-direction: row; }
  .sv-mx .mx-id { gap: 8px; }
  .sv-mx .mx-logo-ic { display: block !important; width: 20px !important; height: 20px !important; }
  .sv-mx .mx-title { display: block; max-width: 44vw; font-size: 14px; }
  .sv-mx .mx-tool, .sv-mx .mx-rail:not(.open) .mx-tool { width: auto; min-width: 62px; padding: 6px 8px; }
  .sv-mx .sv-rail-hr { display: none; }
  .sv-mx .mx-empty { padding: 26px 16px; }
  .sv-mx .mx-empty > svg { width: 40px; height: 40px; }
  .sv-help { display: none; }
  .sv-ltools { top: 76px; }

  .sv-mx .mx-side { overflow: hidden auto; }
}
@media (prefers-reduced-motion: reduce) { .sv-mx * { animation: none !important; transition: none !important; } }

/* Block swap + Add to Hammer (Claude Main, 10 Oct 2026) */
.sv-row { grid-template-columns: 26px 38px minmax(0, 1fr) auto 30px; }
.sv-rowswap { display: grid; place-items: center; width: 30px; height: 30px; margin-right: -8px; padding: 0; border: 0; border-radius: 9px; background: none; color: #8a8d9b; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s, color .2s; }
.sv-row:hover .sv-rowswap { opacity: 1; }
.sv-rowswap:hover { background: rgba(167,139,250,.16); color: #ddd6fe; }
.sv-rowswap svg { width: 15px; height: 15px; }
@media (hover: none) { .sv-row { grid-template-columns: 26px 38px minmax(0, 1fr) auto 30px; } .sv-rowswap { opacity: 1; } }
.sv-mx .mx-tool.sw-has { color: #ddd6fe; }
#svHammer.off { opacity: .45; }
.sw-scrim { position: fixed; inset: 0; z-index: 2147482000; display: grid; place-items: center; padding: 16px; background: rgba(3,3,6,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.sw-scrim[hidden] { display: none; }   /* closed pop-ups must not sit invisibly over the page (it ate every click) */
.sw-scrim.on { opacity: 1; }
.sw-dlg { width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; background: #0d0d13; box-shadow: 0 30px 80px rgba(0,0,0,.6); color: #e4e4e7; font-family: Inter, system-ui, sans-serif; transform: translateY(10px) scale(.98); transition: transform .25s cubic-bezier(.22,1,.36,1); }
.sw-scrim.on .sw-dlg { transform: none; }
.sw-dlg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sw-dlg header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sw-dlg h2 { margin: 0; color: #fff; font: 800 20px Outfit, Inter, sans-serif; }
.sw-dlg header p { margin: 4px 0 0; color: #8a8d9b; font-size: 13px; }
.sw-x { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.05); color: #a1a1aa; cursor: pointer; }
.sw-x:hover { background: rgba(255,255,255,.1); color: #fff; }
.sw-l { display: block; margin: 0 0 7px 2px; color: #8a8d9b; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sw-box { position: relative; }
.sw-box input, .sw-in { width: 100%; height: 48px; padding: 0 14px 0 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.04); color: #fff; font: 600 14.5px Inter, sans-serif; outline: none; transition: border-color .2s, background .2s; box-sizing: border-box; }
.sw-box.chosen input { padding-left: 52px; }
.sw-box input:focus, .sw-in:focus { border-color: rgba(167,139,250,.6); background: rgba(255,255,255,.06); }
.sw-pic { position: absolute; left: 10px; top: 9px; width: 30px; height: 30px; image-rendering: pixelated; display: none; }
.sw-box.chosen .sw-pic { display: block; }
.sw-box ul { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; max-height: 280px; margin: 0; padding: 6px; overflow: auto; list-style: none; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #121219; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.sw-box li { display: flex; align-items: center; gap: 11px; padding: 7px 9px; border-radius: 10px; color: #e4e4e7; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.sw-box li img { width: 28px; height: 28px; image-rendering: pixelated; }
.sw-box li span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sw-box li em { color: #71717a; font-size: 12px; font-style: normal; font-variant-numeric: tabular-nums; }
.sw-box li.hi, .sw-box li:hover { background: rgba(167,139,250,.14); }
.sw-box li.none { color: #71717a; cursor: default; background: none; }
.sw-arrow { display: grid; place-items: center; height: 30px; color: #52525b; }
.sw-note { min-height: 18px; margin: 14px 2px; color: #a1a1aa; font-size: 13px; line-height: 1.5; }
.sw-go { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 48px; border: 0; border-radius: 13px; background: #fff; color: #0b0b10; font: 800 14.5px Inter, sans-serif; text-decoration: none; cursor: pointer; transition: opacity .2s, transform .15s; }
.sw-go:disabled { opacity: .35; cursor: default; }
.sw-go:not(:disabled):active { transform: scale(.98); }
.sw-done { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.sw-doneh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sw-doneh span { color: #8a8d9b; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sw-doneh button { padding: 6px 10px; border: 0; border-radius: 9px; background: rgba(255,255,255,.06); color: #e4e4e7; font: 700 12.5px Inter, sans-serif; cursor: pointer; }
.sw-doneh button:hover { background: rgba(255,255,255,.11); }
#swList { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
#swList li { display: flex; align-items: center; gap: 8px; color: #a1a1aa; font-size: 13px; }
#swList li svg { width: 14px; height: 14px; color: #a78bfa; }
#swList li b { color: #fff; }
.sw-in { margin-bottom: 14px; }
select.sw-in { appearance: none; background: rgba(255,255,255,.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center/14px no-repeat; cursor: pointer; }
select.sw-in option { background: #121219; }
.hm-ok { display: grid; justify-items: center; gap: 12px; padding: 8px 0 2px; text-align: center; }
.hm-okic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(34,197,94,.15); color: #4ade80; }
.hm-okic svg { width: 26px; height: 26px; stroke-width: 2.6; }
.hm-ok p { margin: 0; color: #e4e4e7; font-size: 14.5px; }
@media (max-width: 1100px) { #svHammer span { display: none; } #svHammer { padding: 0 10px; } }

/* Block Swap (12 Oct 2026, Parky: a feature, not hidden away): top bar button and the polished window */
.sv-swapbtn { position: relative; border-color: rgba(167,139,250,.45) !important; background: linear-gradient(135deg, rgba(34,211,238,.14), rgba(167,139,250,.24)) !important; color: #fff !important; }
.sv-swapbtn:hover { box-shadow: 0 8px 24px -12px rgba(139,92,246,.9); }
.sv-swapn { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #a78bfa; color: #0b0b10; font: 800 11px/18px Inter, sans-serif; font-style: normal; text-align: center; box-sizing: border-box; }
/* Sidebar (12 Oct 2026, Parky): Size and Blocks always on top, then Materials | Block Swap, a clear list (no ticks) */
.mx-side > .sv-sum { grid-template-columns: repeat(2, 1fr); padding: 16px 8px 14px; }
.sv-mx .sv-row { grid-template-columns: 38px minmax(0, 1fr) auto auto; padding: 10px; }
.sv-mx .sv-row + .sv-row::after { left: 59px; }
.sv-mx .sv-qty { font-size: 16px; }
.sv-go { display: none; width: 26px; height: 26px; place-items: center; border-radius: 8px; background: rgba(167,139,250,.14); color: #c4b5fd; }
.sv-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.swapmode .sv-go { display: grid; }
.swapmode .sv-row:hover { background: rgba(167,139,250,.1); }
.sv-swaphint { margin: 10px 18px 2px; padding: 10px 12px; border: 1px solid rgba(167,139,250,.25); border-radius: 12px; background: rgba(167,139,250,.08); color: #ddd6fe; font: 600 12.5px/1.45 Inter, system-ui, sans-serif; }
/* the Ask Nexus bubble stays on the homepage; here it covered the bottom bar on phones */
.nxa { display: none !important; }

/* Block Swap window (12 Oct 2026, Parky: professional, sleek, minimal) */
.sw-dlg.bs { width: min(420px, 100%); padding: 22px; }
.sw-dlg.bs header { margin-bottom: 20px; }
.sw-dlg.bs .sw-arrow { height: 34px; color: #3f3f46; }
.sw-dlg.bs .sw-arrow svg { width: 16px; height: 16px; }
.sw-dlg.bs .sw-note { min-height: 0; margin: 16px 2px; }
.sw-dlg.bs .sw-note:empty { margin: 10px 0; }

/* Drop screen (12 Oct 2026, Parky: no plain black): the build view's grid floor in 3D, slowly drifting, behind a see-through drop box */
.sv-empty { position: relative; isolation: isolate; overflow: hidden; perspective: 700px; background: radial-gradient(90% 70% at 50% 30%, #151a29 0%, #0b0c12 72%); }
.sv-empty::before { content: ""; position: absolute; z-index: -1; left: -120%; right: -120%; top: -400%; bottom: -20%;
  background-image:
    linear-gradient(rgba(199,219,255,.42) 2px, transparent 2px), linear-gradient(90deg, rgba(199,219,255,.42) 2px, transparent 2px),
    linear-gradient(rgba(199,219,255,.14) 2px, transparent 2px), linear-gradient(90deg, rgba(199,219,255,.14) 2px, transparent 2px);
  background-size: 256px 256px, 256px 256px, 32px 32px, 32px 32px; background-position: 50% 0;
  transform: rotateX(74deg); transform-origin: 50% 100%; backface-visibility: hidden; will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, transparent 62%, #000 92%); mask-image: linear-gradient(to bottom, transparent 62%, #000 92%); }
.sv-empty::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(45% 35% at 50% 45%, rgba(139,92,246,.12), transparent 70%); }
.sv-mx .mx-empty { background: linear-gradient(180deg, rgba(22,23,32,.86), rgba(6,6,10,.9)); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 80px -20px rgba(0,0,0,.8); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.sv-mx .sv-stage.drag .mx-empty { border-color: rgba(167,139,250,.6); background: rgba(139,92,246,.1); }

/* Loading card (12 Oct 2026, Parky): a sleek card that ticks through the steps, then the build grows in */
.sv-load { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.sv-load.on { opacity: 1; }
.sv-loadc { width: min(340px, 100%); padding: 20px 20px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: linear-gradient(180deg, rgba(22,23,32,.9), rgba(6,6,10,.94)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 80px -20px rgba(0,0,0,.85); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); color: #e4e4e7; font-family: Inter, system-ui, sans-serif; transform: translateY(8px) scale(.98); transition: transform .45s cubic-bezier(.22,1,.36,1); }
.sv-load.on .sv-loadc { transform: none; }
.sv-loadh { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; min-width: 0; }
.sv-loadh > div { min-width: 0; }
.sv-loadh b { display: block; overflow: hidden; color: #fff; font: 800 15px Outfit, Inter, sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.sv-loadh small { display: block; margin-top: 2px; color: #8a8d9b; font-size: 12px; font-variant-numeric: tabular-nums; }
.sv-loadic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(167,139,250,.12); color: #c4b5fd; }
.sv-loadic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: svCube 2.4s ease-in-out infinite; }
@keyframes svCube { 50% { transform: translateY(-2px) rotate(-6deg); } }
.sv-loadl { display: grid; gap: 9px; margin: 0 0 16px; padding: 0; list-style: none; }
.sv-loadl li { display: flex; align-items: center; gap: 10px; color: #52525b; font-size: 13px; font-weight: 600; transition: color .3s; }
.sv-loadl li i { position: relative; display: grid; place-items: center; flex: none; width: 18px; height: 18px; border: 1.5px solid #3f3f46; border-radius: 50%; transition: border-color .3s, background .3s; }
.sv-loadl li i svg { width: 11px; height: 11px; fill: none; stroke: #0b0b10; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: opacity .25s, transform .3s cubic-bezier(.22,1,.36,1); }
.sv-loadl li.now { color: #e4e4e7; }
.sv-loadl li.now i { border-color: rgba(167,139,250,.35); border-top-color: #a78bfa; animation: svSpin .7s linear infinite; }
.sv-loadl li.ok { color: #a1a1aa; }
.sv-loadl li.ok i { border-color: #a78bfa; background: #a78bfa; }
.sv-loadl li.ok i svg { opacity: 1; transform: none; }
@keyframes svSpin { to { transform: rotate(360deg); } }
.sv-loadbar { height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.06); }
.sv-loadbar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22d3ee, #a78bfa); transition: width .4s cubic-bezier(.22,1,.36,1); }

/* Export menu (12 Oct 2026, Parky: choose the file type) */
.sv-exp { position: fixed; z-index: 2147481000; width: 290px; max-width: calc(100vw - 16px); padding: 6px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: #0f0f15; box-shadow: 0 24px 60px rgba(0,0,0,.6); font-family: Inter, system-ui, sans-serif; box-sizing: border-box; animation: svIn .2s ease both; }
.sv-exp[hidden] { display: none; }
.sv-exph { margin: 6px 10px; color: #71717a; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sv-exp button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 11px; background: none; color: #e4e4e7; text-align: left; cursor: pointer; transition: background .15s; }
.sv-exp button:hover, .sv-exp button:focus-visible { background: rgba(167,139,250,.12); outline: none; }
.sv-exp svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #c4b5fd; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sv-exp span { display: grid; gap: 2px; min-width: 0; }
.sv-exp b { color: #fff; font-size: 13.5px; font-weight: 700; }
.sv-exp small { color: #8a8d9b; font-size: 11.5px; }

/* Phones (12 Oct 2026, Parky: search bar and the panel's expand button were broken).
   The panel is a column: Size/Blocks, tabs, search, then only the list scrolls. Collapsing keeps the tabs and the expand button. */
@media (max-width: 760px) {
  .sv-mx .mx-side { display: flex; flex-direction: column; overflow: hidden; }
  .sv-mx .mx-side > .sv-sum { flex: none; padding: 8px 8px 7px; }
  .sv-mx .mx-side > .sv-sum b { font-size: 15px; }
  .sv-mx .mx-side > .sv-sum small { font-size: 9.5px; }
  .sv-mx .sv-tabs { flex: none; padding: 6px 8px; }
  .sv-mx .sv-tabs button { flex-direction: row; min-height: 40px; gap: 7px; padding: 6px 4px; font-size: 12.5px; }
  .sv-mx .sv-tabs button svg { width: 17px; height: 17px; }
  .sv-mx .sv-tabs button span { font-size: 12.5px; }
  .sv-mx .sv-pane[data-pane="mats"]:not([hidden]) { display: flex; flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .sv-mx .sv-lhead, .sv-mx .sv-swaphint { flex: none; }
  .sv-mx .sv-lhead { padding: 10px 14px 8px; }
  .sv-ltools { position: static; flex: none; padding: 8px 12px; }
  .sv-find input { font-size: 16px; }   /* 16px stops iPhones zooming in on the search box */
  .sv-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .sv-mx.side-min { grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
  .sv-mx.side-min .mx-side > .sv-sum { display: none; }
  .sv-mx.side-min .sv-pane { display: none !important; }
}

/* Loading (13 Oct 2026, Parky): the view stays dim and soft behind the card, then eases in as the build grows */
.sv-view canvas { transition: opacity 1.2s ease, filter 1.2s ease; }
.sv-view.sv-loading canvas { opacity: .25; filter: blur(6px) saturate(.7); transition: none; }
.sv-load { background: radial-gradient(70% 55% at 50% 45%, rgba(6,6,10,.35), rgba(6,6,10,.7)); transition: opacity .7s ease; }

/* ===== Phones (13 Oct 2026, Parky): full overhaul =====
   Top: name, size, blocks and layer buttons. Middle: only the 3D view. Bottom: view tools + a drawer for everything else
   (list or grid, like My Nexus and Settings). Materials and Block Swap open as a sheet. */
.sv-mtop, .sv-mtools, .sv-mbar, .sv-mdrawer, .sv-mscrim { display: none; }
@media (max-width: 760px) {
  .sv-mx { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto auto minmax(0, 1fr) !important; grid-template-areas: "mtop" "mtools" "stage" !important;
    height: calc(100dvh - 64px - var(--nxb-h, 0px) - 66px - env(safe-area-inset-bottom)); transition: none; }
  .sv-mx .mx-top, .sv-mx .mx-rail { display: none !important; }
  .sv-mx .mx-stage { grid-area: stage; padding: 0; }

  .sv-mtop { grid-area: mtop; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); background: #08080c; font-family: Inter, system-ui, sans-serif; }
  .sv-mt1 { display: grid; flex: 1; gap: 2px; min-width: 0; }
  .sv-mt1 b { overflow: hidden; color: #fff; font: 800 15.5px Outfit, Inter, sans-serif; white-space: nowrap; text-overflow: ellipsis; }
  .sv-mt1 span { overflow: hidden; color: #8a8d9b; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }
  /* Layer stepper: no box, two round buttons either side of the number (13 Oct 2026, Parky) */
  .sv-mlay { display: flex; align-items: center; gap: 10px; flex: none; }
  .sv-mlay button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: none; color: #f4f4f5; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: border-color .15s, background .15s, opacity .2s, transform .1s; }
  .sv-mlay button:active { transform: scale(.9); border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
  .sv-mlay button:disabled { opacity: .25; cursor: default; }
  .sv-mlay button svg { width: 15px; height: 15px; stroke-width: 2.4; }
  .sv-mlayt { display: grid; justify-items: center; min-width: 50px; gap: 1px; line-height: 1.1; }
  .sv-mlayt small { color: #71717a; font-size: 10px; font-weight: 600; }
  .sv-mlayt b { color: #fff; font: 700 16px Outfit, Inter, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

  /* Bottom bar: same look as the My Nexus / Settings phone bar */
  .sv-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 952; display: grid; grid-template-columns: repeat(6, 1fr); padding: 6px 6px max(8px, env(safe-area-inset-bottom));
    background: rgba(7,8,12,.92); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 -1px 0 rgba(255,255,255,.07); }
  .sv-mbar > button { position: relative; display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 8px 2px 4px; border: 0; background: none; color: #8a8d9b; font: 600 10.5px Inter, system-ui, sans-serif; cursor: pointer; transition: color .2s; -webkit-tap-highlight-color: transparent; }
  .sv-mbar > button span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .sv-mbar svg, .sv-mdrawer svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .sv-mbar svg { width: 21px; height: 21px; transition: transform .3s cubic-bezier(.22,1,.36,1); }
  .sv-mbar > button:active { color: #fff; }
  .sv-mbar > button[aria-pressed="true"] { color: #fff; }
  .sv-mbar > button[aria-pressed="true"] svg { color: #c4b5fd; }
  .sv-mbar > button[aria-pressed="true"]::before, .sv-mbar > button.on::before { content: ""; position: absolute; top: 0; width: 18px; height: 3px; border-radius: 3px; background: #a78bfa; box-shadow: 0 0 10px #a78bfa; }
  .sv-mbar > button.on { color: #fff; }
  .sv-mbar > button.on svg { transform: rotate(180deg); color: #c4b5fd; }

  .sv-mscrim { position: fixed; inset: 0; z-index: 950; display: block; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .sv-mscrim.on { opacity: 1; pointer-events: auto; }
  .sv-mdrawer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 951; display: block; max-height: 72vh; overflow: auto; padding: 8px 14px calc(84px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0;
    background: #0c0d12; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 -30px 60px -20px rgba(0,0,0,.8); font-family: Inter, system-ui, sans-serif;
    transform: translateY(100%); visibility: hidden; transition: transform .38s cubic-bezier(.22,1,.36,1), visibility 0s linear .38s; overscroll-behavior: contain; }
  .sv-mdrawer.on { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.22,1,.36,1), visibility 0s; }
  .sv-mgrip { display: block; width: 40px; height: 4px; margin: 2px auto 10px; border-radius: 4px; background: rgba(255,255,255,.18); }
  .sv-mdh { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
  .sv-mdh b { color: #fff; font: 800 15px Inter, system-ui, sans-serif; }
  .sv-msw { display: flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.05); }
  .sv-msw button { display: grid; place-items: center; width: 34px; height: 28px; border: 0; border-radius: 8px; background: none; color: #71717a; cursor: pointer; }
  .sv-msw button[aria-pressed="true"] { background: rgba(255,255,255,.1); color: #fff; }
  .sv-msw svg { width: 16px; height: 16px; }
  .sv-mitems { display: grid; gap: 4px; }
  .sv-mitems button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 14px; border: 0; border-radius: 14px; background: none; color: #e4e4e7; font: 600 14.5px Inter, system-ui, sans-serif; text-align: left; cursor: pointer; transition: background .2s; -webkit-tap-highlight-color: transparent; }
  .sv-mitems button:active { background: rgba(255,255,255,.05); }
  .sv-mitems button svg { width: 20px; height: 20px; flex: none; color: #a1a1aa; }
  .sv-mitems button::after { content: ""; width: 7px; height: 7px; margin-left: auto; border: solid #52525b; border-width: 2px 2px 0 0; transform: rotate(45deg); }
  .sv-mitems button[aria-pressed="true"] { background: rgba(167,139,250,.1); color: #fff; }
  .sv-mitems button[aria-pressed="true"] svg { color: #c4b5fd; }
  .sv-mitems button[aria-pressed="true"]::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #a78bfa; transform: none; box-shadow: 0 0 8px #a78bfa; }
  .sv-mitems.grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sv-mitems.grid button { flex-direction: column; justify-content: center; gap: 8px; min-height: 84px; padding: 12px 6px; border-radius: 16px; background: rgba(255,255,255,.04); font-size: 12px; text-align: center; line-height: 1.25; }
  .sv-mitems.grid button::after { display: none; }
  .sv-mitems.grid button svg { width: 22px; height: 22px; }
  .sv-mitems.grid button[aria-pressed="true"] { background: rgba(167,139,250,.14); box-shadow: inset 0 0 0 1px rgba(167,139,250,.4); }

  /* Materials / Block Swap: a sheet that slides up over the view */
  .sv-mx .mx-side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 951; height: min(80dvh, 680px); border: 0; border-radius: 24px 24px 0 0; background: #0c0d12;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 -30px 60px -20px rgba(0,0,0,.8); transform: translateY(102%); visibility: hidden;
    transition: transform .38s cubic-bezier(.22,1,.36,1), visibility 0s linear .38s; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .sv-mx.sv-sheet .mx-side { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.22,1,.36,1), visibility 0s; }
  .sv-mx .mx-side > .sv-sum { padding-top: 12px; }
  .sv-mx.side-min .mx-side > .sv-sum { display: grid; }
  .sv-mx.side-min .sv-pane[data-pane="mats"] { display: flex !important; }
  .sv-mx #mx-side-min svg { transform: none; }

  /* Pop-ups that sat at the bottom move above the bar */
  .sv-mx ~ .mx-toast, .mx-toast { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
  .sv-exp { left: 8px !important; right: 8px; top: auto !important; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; max-width: none; z-index: 2147481000; }
  .sv-bchip { top: 10px; left: 10px; }
}
/* Loading card v2 (13 Oct 2026, Parky: match the My Skyblock download cards). Centred: a ring spinning round the cube,
   the name, then one step line at a time sliding on to the next; at the end the ring becomes a tick and it says Ready. */
.sv-loadc { width: min(340px, 100%); padding: 30px 26px 24px; border: 1px solid rgba(255,255,255,.09); border-radius: 24px; background: linear-gradient(180deg, rgba(18,18,26,.96), rgba(8,8,12,.97)); text-align: center; }
.sv-loadh { display: grid; justify-items: center; gap: 14px; margin-bottom: 18px; }
.sv-loadh > div { display: grid; gap: 4px; min-width: 0; max-width: 100%; }
.sv-loadh b { display: -webkit-box; overflow: hidden; color: #fff; font: 800 19px/1.25 Outfit, Inter, sans-serif; white-space: normal; overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sv-loadh small { margin: 0; color: #8a8d9b; font-size: 12.5px; }
.sv-loadic { position: relative; display: block; width: 64px; height: 64px; border-radius: 50%; background: rgba(167,139,250,.08); box-shadow: inset 0 0 0 1px rgba(167,139,250,.22); color: #c4b5fd; transition: background .4s, box-shadow .4s; }
.sv-loadic .sv-ring { position: absolute; inset: -1px; border: 2.5px solid transparent; border-top-color: #a78bfa; border-right-color: rgba(167,139,250,.35); border-radius: 50%; animation: svSpin 1s linear infinite; transition: opacity .4s; }
.sv-loadic svg { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: opacity .35s, transform .45s cubic-bezier(.22,1,.36,1); }
.sv-loadic .sv-cube { animation: svCube 2.4s ease-in-out infinite; }
.sv-loadic .sv-tick { opacity: 0; transform: scale(.4); stroke-width: 2.6; animation: none; }
.sv-loadc.done .sv-loadic { background: rgba(34,197,94,.12); box-shadow: inset 0 0 0 1px rgba(34,197,94,.45), 0 0 30px -6px rgba(34,197,94,.5); }
.sv-loadc.done .sv-ring { opacity: 0; }
.sv-loadc.done .sv-cube { opacity: 0; transform: scale(.6); animation: none; }
.sv-loadc.done .sv-tick { opacity: 1; transform: none; stroke: #22c55e; filter: drop-shadow(0 0 8px rgba(34,197,94,.5)); }   /* explicit colour: it inherited a transparent stroke and showed an empty circle */
/* Steps (13 Oct 2026, Parky): all four in a neat column; a faint dot, a spinner while working, a green Lucide circle-check when done */
.sv-loadl { display: grid; gap: 11px; width: fit-content; margin: 0 auto 18px; padding: 0; list-style: none; text-align: left; }
.sv-loadl li { position: static; display: flex; align-items: center; gap: 10px; color: #52525b; font: 600 13.5px Inter, system-ui, sans-serif; opacity: 1; transform: none; transition: color .35s; }
.sv-loadl li i.st { position: relative; display: grid; place-items: center; flex: none; width: 18px; height: 18px; border: 0; border-radius: 50%; background: none; }
.sv-loadl li i.st::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #3f3f46; transition: opacity .25s; }
.sv-loadl li i.st svg { width: 18px; height: 18px; fill: none; stroke: #22c55e; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .45s cubic-bezier(.34,1.56,.64,1); }
.sv-loadl li.now { color: #e4e4e7; }
.sv-loadl li.now i.st::before { inset: 1px; border: 2px solid rgba(167,139,250,.25); border-top-color: #a78bfa; background: none; animation: svSpin .7s linear infinite; }
.sv-loadl li.ok { color: #d4d4d8; }
.sv-loadl li.ok i.st::before { opacity: 0; }
.sv-loadl li.ok i.st svg { opacity: 1; transform: none; filter: drop-shadow(0 0 6px rgba(34,197,94,.45)); }
.sv-loadbar { width: 70%; margin: 0 auto; }
/* Minimal (13 Oct 2026, Parky): just the name, no size / blocks / types; a soft glow pulse and a light shimmer on the bar */
#svLoadMeta { display: none; }
.sv-loadh b { animation: svIn .5s .1s ease both; }
.sv-loadic { animation: svGlow 2.4s ease-in-out infinite; }
.sv-loadc.done .sv-loadic { animation: none; }
@keyframes svGlow { 50% { box-shadow: inset 0 0 0 1px rgba(167,139,250,.35), 0 0 28px -4px rgba(167,139,250,.45); } }
.sv-loadbar i { position: relative; overflow: hidden; }
.sv-loadbar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: svShine 1.6s ease-in-out infinite; }
@keyframes svShine { to { transform: translateX(100%); } }

/* Phones (13 Oct 2026, Parky): a second bar under the name and layers, styled like the bottom bar:
   Grid view, Build mode, Materials, Picture, Export */
@media (max-width: 760px) {
  .sv-mtools { grid-area: mtools; display: grid; grid-template-columns: repeat(6, 1fr); padding: 4px 6px 6px; border-bottom: 1px solid var(--line); background: #08080c; }
  .sv-mtools > button { position: relative; display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 7px 2px 3px; border: 0; background: none; color: #8a8d9b; font: 600 10.5px Inter, system-ui, sans-serif; cursor: pointer; transition: color .2s; -webkit-tap-highlight-color: transparent; }
  .sv-mtools > button span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .sv-mtools svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.22,1,.36,1); }
  .sv-mtools > button:active { color: #fff; }
  .sv-mtools > button:active svg { transform: scale(.9); }
  .sv-mtools > button[aria-pressed="true"] { color: #fff; }
  .sv-mtools > button[aria-pressed="true"] svg { color: #c4b5fd; }
  .sv-mtools > button[aria-pressed="true"]::after { content: ""; position: absolute; bottom: 0; width: 18px; height: 3px; border-radius: 3px; background: #a78bfa; box-shadow: 0 0 10px #a78bfa; }
}

/* Grid thickness picker (phones): a small segmented pill at the top of the view */
.sv-gpick { position: absolute; top: 10px; left: 50%; z-index: 6; display: flex; gap: 2px; padding: 4px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(10,10,15,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0,0,0,.5); transform: translateX(-50%); animation: svIn .25s ease both; }
.sv-gpick[hidden] { display: none; }
.sv-gpick button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: #a1a1aa; font: 700 13px Inter, system-ui, sans-serif; cursor: pointer; transition: background .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.sv-gpick button[aria-pressed="true"] { background: #fff; color: #0b0b10; }

/* Export card: the same centred card and pill buttons as the My Skyblock download windows */
.sw-dlg.ex { width: min(400px, 100%); }
.sw-dlg.ex header { margin-bottom: 6px; }
.ex-top { display: grid; justify-items: center; gap: 8px; text-align: center; }
.ex-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(167,139,250,.1); box-shadow: inset 0 0 0 1px rgba(167,139,250,.3); color: #c4b5fd; }
.ex-ic svg { width: 24px; height: 24px; stroke-width: 2.2; }
.ex-top b { max-width: 100%; overflow: hidden; color: #fff; font: 800 19px/1.25 Outfit, Inter, sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.ex-top p { margin: 0; color: #a1a1aa; font-size: 14px; }
.ex-pick { display: grid; gap: 10px; margin-top: 20px; text-align: center; }
.ex-pick button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.04); color: #fff; font: 700 15px Inter, system-ui, sans-serif; cursor: pointer; transition: background .2s, border-color .2s, transform .15s, opacity .2s; }
.ex-pick button:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); }
.ex-pick button:active { transform: scale(.98); }
.ex-pick button.go { border-color: #fff; background: #fff; color: #0b0b10; }
.ex-pick button:disabled { opacity: .35; cursor: default; transform: none; }
.ex-pick svg { width: 19px; height: 19px; stroke-width: 2.2; }
.ex-pick small { min-height: 0; color: #8a8d9b; font-size: 12.5px; line-height: 1.45; }
.ex-pick small:empty { display: none; }

/* Block Swap on phones (13 Oct 2026, Parky): a sheet from the bottom with pill boxes; the block list sits inside it
   (no floating mini card) and only appears once you start typing */
@media (max-width: 760px) {
  #svSwap { place-items: end center; padding: 0; }
  #svSwap .sw-dlg.bs { box-sizing: border-box; width: 100%; max-height: 90dvh; padding: 12px 18px calc(22px + env(safe-area-inset-bottom)); border: 0; border-radius: 24px 24px 0 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 -30px 60px -20px rgba(0,0,0,.8); transform: translateY(40px); }
  #svSwap.on .sw-dlg.bs { transform: none; }
  #svSwap .sw-dlg.bs::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 4px; background: rgba(255,255,255,.18); }
  #svSwap .sw-dlg.bs header { margin-bottom: 18px; }
  #svSwap .sw-box input { height: 52px; padding: 0 18px; border-radius: 999px; font-size: 16px; }
  #svSwap .sw-box.chosen input { padding-left: 54px; }
  #svSwap .sw-pic { left: 14px; top: 11px; }
  #svSwap .sw-box ul { position: static; max-height: min(38dvh, 300px); margin-top: 8px; border-radius: 16px; background: rgba(255,255,255,.03); box-shadow: none; }
  #svSwap .sw-go { height: 52px; border-radius: 999px; }
}
@media (prefers-reduced-motion: reduce) { .sv-mdrawer, .sv-mdrawer.on, .sv-mscrim, .sv-mx .mx-side { transition: none !important; } }

/* Walk mode (Claude Main, 13 Oct 2026; My Skyblock > 3D Render): the view fills the screen, walk.js draws the controls */
/* Computers keep the site header (the view starts under it); phones get the whole screen. */
body.sv-walking { overflow: hidden; }
body.sv-walking .sv-view, body.sv-walking .sv-view[hidden] { display: block; position: fixed; inset: var(--svw-top, 0px) 0 0 0; z-index: 999; background: #06060a; }
body.sv-walking .sv-view:fullscreen { inset: 0; }
body.sv-walking .sv-view > :not(canvas):not(.sv-walk):not(.sv-load) { display: none !important; }
body.sv-walking .mx-toast { z-index: 2147483001; }
body.svw-touch.sv-walking .sv-view { z-index: 2147483000; }
/* 3D Render opening: the page stays dark behind the loading card, then the world fades in out of the blur */
html.sv-walk-boot #studio { visibility: hidden; }
html.sv-walk-boot .sv-view { visibility: visible; }
html.sv-walk-boot body::after { content: ""; position: fixed; inset: 0; z-index: 998; background: #06060a; }
@media (max-width: 760px) { html.sv-walk-boot body::after { z-index: 2147482999; } }
body.sv-walking .sv-view.sv-loading canvas { opacity: 0; filter: blur(14px); }
body.sv-walking .sv-view canvas { transition: opacity 1.4s ease, filter 1.6s ease; }
.sv-walk:not([hidden]) > :not(.svw-side) { animation: svwIn .8s .7s ease both; }   /* the tools drawer is solid from the start */
@keyframes svwIn { from { opacity: 0; } }

.sv-walk { position: absolute; inset: 0; z-index: 5; color: #fff; font-family: Inter, system-ui, sans-serif; -webkit-user-select: none; user-select: none; }
.sv-walk[hidden] { display: none; }
.svw-pad { position: absolute; inset: 0; touch-action: none; cursor: pointer; }
.sv-walk.playing .svw-pad { cursor: none; }
.svw-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); pointer-events: none; }
.svw-top > * { pointer-events: auto; }
.svw-exit, .svw-ic { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(8,8,14,.55); color: #fff; font: 700 14px Inter, system-ui, sans-serif; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.svw-ic { width: 40px; padding: 0; }
.sv-walk svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.svw-tag { padding: 7px 12px; border-radius: 999px; background: rgba(8,8,14,.55); font-size: 12.5px; font-weight: 700; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); white-space: nowrap; }
.svw-tag em { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(251,191,36,.18); color: #fcd34d; font-style: normal; font-size: 11px; }
.svw-cross { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.svw-cross::before, .svw-cross::after { content: ""; position: absolute; background: rgba(255,255,255,.85); box-shadow: 0 0 2px rgba(0,0,0,.6); }
.svw-cross::before { left: 8px; top: 0; width: 2px; height: 18px; }
.svw-cross::after { left: 0; top: 8px; width: 18px; height: 2px; }
.sv-walk.playing .svw-cross { opacity: 1; }
.svw-start { position: absolute; left: 50%; top: 50%; width: min(340px, calc(100% - 32px)); padding: 22px 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: rgba(8,8,14,.72); text-align: center; transform: translate(-50%, -50%); pointer-events: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.svw-start[hidden] { display: none; }
.svw-start b { display: block; font-size: 18px; }
.svw-start p { margin: 8px 0 0; color: #b4b7c4; font-size: 13px; line-height: 1.8; }
.svw-go { margin-top: 14px; min-width: 140px; height: 46px; border: 0; border-radius: 999px; background: #fff; color: #0b0b10; font: 700 15px Inter, system-ui, sans-serif; pointer-events: auto; cursor: pointer; }
.svw-btns { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); display: none; align-items: flex-end; gap: 12px; }
.svw-b { display: grid; place-items: center; gap: 2px; width: 60px; height: 60px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(8,8,14,.5); color: #fff; font: 700 10.5px Inter, system-ui, sans-serif; touch-action: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.svw-b[hidden] { display: none; }
.svw-b.big { width: 76px; height: 76px; }
.svw-b.on, .svw-b[aria-pressed="true"] { border-color: #fff; background: rgba(255,255,255,.28); }
body.svw-touch .svw-btns { display: flex; }
.sv-mx .sv-walkbtn { border-color: rgba(34,211,238,.45); color: #a5f3fc; }
.sv-mx .sv-walkbtn:hover { border-color: rgba(34,211,238,.8); background: rgba(34,211,238,.08); }

/* 3D Render tools (13 Oct 2026, Parky): compact keys top left, a tools panel on the right (a sheet on phones) */
.sv-walk kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid rgba(255,255,255,.25); border-bottom-width: 2px; border-radius: 6px; color: #fff; font: 700 11.5px Inter, system-ui, sans-serif; text-align: center; }

.sv-walk.photo .svw-top, .sv-walk.photo .svw-side, .sv-walk.photo .svw-cross, .sv-walk.photo .svw-info, .sv-walk.photo .svw-btns { display: none !important; }
.svw-topr { display: flex; gap: 8px; }
/* the panel */
/* computers: a solid drawer flush to the right edge, always open (Image Studio's side panel); the 3D view sits beside it */
body.sv-walking .sv-view { right: 300px; }
body.sv-walking .sv-view:fullscreen, body.sv-walking.svw-photo .sv-view { right: 0; }   /* photo mode: the whole width */
.svw-side { position: absolute; top: 0; bottom: 0; right: -300px; width: 300px; z-index: 3; border-left: 1px solid rgba(255,255,255,.07); background: #08080c; }
.sv-view:fullscreen .svw-side { right: 0; }
.svw-sidein { height: 100%; overflow: auto; padding: 18px 14px 20px; box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #27272a transparent; }
.svw-side h3 { margin: 16px 4px 8px; color: #71717a; font: 800 10.5px Inter, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.svw-tool { display: flex; align-items: center; gap: 11px; width: 100%; margin-bottom: 6px; padding: 10px 11px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.03); color: #e4e4e7; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.svw-tool:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.svw-tool > svg { flex: none; width: 19px; height: 19px; color: #a1a1aa; }
.svw-tool span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.svw-tool b { font: 700 13.5px Inter, system-ui, sans-serif; }
.svw-tool small { color: #8a8d9b; font-size: 11.5px; line-height: 1.3; }
.svw-tool kbd { flex: none; min-width: 18px; padding: 0 4px; font-size: 10px; opacity: .55; }
.svw-tool[aria-pressed="true"] { border-color: rgba(34,211,238,.5); background: rgba(34,211,238,.08); }
.svw-tool[aria-pressed="true"] > svg { color: #67e8f9; }
.svw-sw { position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px; background: rgba(255,255,255,.14); transition: background .2s; }
.svw-sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.22,1,.36,1); }
.svw-tool[aria-pressed="true"] .svw-sw { background: #22d3ee; }
.svw-tool[aria-pressed="true"] .svw-sw::after { transform: translateX(12px); }
.svw-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.03); }
.svw-seg button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; border: 0; border-radius: 10px; background: none; color: #a1a1aa; font: 700 13px Inter, system-ui, sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.svw-seg button svg { width: 16px; height: 16px; }
.svw-seg button[aria-pressed="true"] { background: rgba(255,255,255,.1); color: #fff; }
/* looking at a block */
.svw-info { position: absolute; left: 50%; top: calc(50% + 26px); display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(8,8,14,.62); transform: translateX(-50%); pointer-events: none; white-space: nowrap; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.svw-info[hidden] { display: none; }
.svw-info img { width: 30px; height: 30px; image-rendering: pixelated; }
.svw-info span { display: grid; gap: 1px; }
.svw-info b { font-size: 13.5px; }
.svw-info small { color: #a1a1aa; font-size: 11.5px; }
/* photo mode */
.svw-photo { position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 4; display: grid; grid-template-columns: auto auto; align-items: center; justify-items: center; gap: 8px 14px; transform: translateX(-50%); }
.svw-photo[hidden] { display: none; }
.svw-photo small { grid-column: 1 / -1; padding: 5px 11px; border-radius: 999px; background: rgba(8,8,14,.55); color: #d4d4d8; font-size: 11.5px; white-space: nowrap; }
.svw-snap { display: grid; place-items: center; width: 66px; height: 66px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: rgba(0,0,0,.2); cursor: pointer; }
.svw-snap i { width: 50px; height: 50px; border-radius: 50%; background: #fff; transition: transform .15s; }
.svw-snap:active i { transform: scale(.88); }
.svw-pdone { height: 40px; padding: 0 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(8,8,14,.6); color: #fff; font: 700 14px Inter, system-ui, sans-serif; cursor: pointer; }
.svw-flash { position: absolute; inset: 0; z-index: 6; background: #fff; opacity: 0; pointer-events: none; }
.svw-flash.go { animation: svwFlash .5s ease-out; }
@keyframes svwFlash { 0% { opacity: .85; } 100% { opacity: 0; } }


/* Controls list in the drawer (computers): the action on the left, its keys on the right */
.svw-keys { display: grid; margin: 0; padding: 4px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.025); }
.svw-keys div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; border-bottom: 1px solid rgba(255,255,255,.05); }
.svw-keys div:last-child { border-bottom: 0; }
.svw-keys dt { color: #c7cad6; font: 600 12.5px Inter, system-ui, sans-serif; }
.svw-keys dd { display: flex; gap: 3px; margin: 0; }
.svw-keys kbd { min-width: 22px; height: 22px; padding: 0 6px; border: 0; border-radius: 6px; background: rgba(255,255,255,.08); box-shadow: inset 0 -1px 0 rgba(255,255,255,.08); color: #e4e4e7; font: 700 10.5px "JetBrains Mono", ui-monospace, monospace; line-height: 22px; }
.svw-keys .esc dt { color: #fff; font-weight: 700; }
.svw-keys .esc kbd { background: rgba(34,211,238,.16); color: #a5f3fc; }

/* Touch screens (13 Oct 2026, Parky): the whole screen, a tools bar like the Structure Viewer's phone bar, a D-pad,
   drag anywhere to look. Upright: one solid bar across the top. Sideways: the tools become a rail down the right. */
.svw-mbar, .svw-dpad { display: none; }
body.svw-touch.sv-walking .sv-view { right: 0; }
body.svw-touch .svw-side, body.svw-touch .svw-keys { display: none; }
body.svw-touch .svw-mbar { position: absolute; z-index: 3; display: grid; grid-template-columns: repeat(5, 1fr); background: #08080c; }
.svw-mbar > button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 0; padding: 7px 2px 6px; border: 0; background: none; color: #8a8d9b; font: 600 10.5px Inter, system-ui, sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.svw-mbar svg { width: 20px; height: 20px; stroke-width: 2; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.svw-mbar > button:active svg { transform: scale(.9); }
.svw-mbar > button[aria-pressed="true"] { color: #fff; }
.svw-mbar > button[aria-pressed="true"] svg { color: #67e8f9; }
.svw-mbar > button[aria-pressed="true"]::after { content: ""; position: absolute; bottom: 0; width: 18px; height: 3px; border-radius: 3px; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; }
/* upright: name row + tools row make one solid top bar */
body.svw-touch .svw-top { padding: max(8px, env(safe-area-inset-top)) 10px 6px; gap: 6px; background: #08080c; }
body.svw-touch .svw-mbar { left: 0; right: 0; top: calc(max(8px, env(safe-area-inset-top)) + 44px); border-bottom: 1px solid rgba(255,255,255,.07); }
body.svw-touch .svw-exit { height: 36px; padding: 0 12px 0 8px; font-size: 13px; background: rgba(255,255,255,.05); }
body.svw-touch .svw-ic { width: 36px; height: 36px; background: rgba(255,255,255,.05); }
body.svw-touch .svw-tag { padding: 6px 9px; font-size: 11px; background: none; }
body.svw-touch .svw-tag em { margin-left: 4px; padding: 2px 6px; font-size: 10px; }
body.svw-touch .svw-exit, body.svw-touch .svw-ic, body.svw-touch .svw-tag { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* D-pad bottom left, Bedrock style */
body.svw-touch .svw-dpad { position: absolute; left: max(16px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 54px); grid-template-rows: repeat(3, 54px); gap: 4px; }
.svw-dpad button { display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(8,8,14,.42); color: #fff; touch-action: none; -webkit-tap-highlight-color: transparent; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.svw-dpad button svg { width: 24px; height: 24px; stroke-width: 2.6; }
.svw-dpad button.on { border-color: #fff; background: rgba(255,255,255,.3); }
.svw-dpad [data-d="f"] { grid-area: 1 / 2; }
.svw-dpad [data-d="l"] { grid-area: 2 / 1; }
.svw-dpad [data-d="r"] { grid-area: 2 / 3; }
.svw-dpad [data-d="b"] { grid-area: 3 / 2; }
body.svw-touch .svw-info { top: calc(50% + 22px); }
.sv-walk.photo .svw-mbar, .sv-walk.photo .svw-dpad { display: none !important; }
/* sideways: tools down the right, the top row floats */
@media (orientation: landscape) {
  body.svw-touch .svw-top { right: 72px; background: none; }
  body.svw-touch .svw-exit, body.svw-touch .svw-ic { background: rgba(8,8,14,.55); }
  body.svw-touch .svw-tag { background: rgba(8,8,14,.55); }
  body.svw-touch .svw-mbar { top: 0; bottom: 0; left: auto; right: 0; width: 72px; padding: max(6px, env(safe-area-inset-top)) max(0px, env(safe-area-inset-right)) 6px 0; grid-template-columns: 1fr; grid-template-rows: repeat(5, 1fr); border-bottom: 0; border-left: 1px solid rgba(255,255,255,.07); }
  body.svw-touch .svw-mbar > button[aria-pressed="true"]::after { bottom: auto; left: 0; top: 50%; width: 3px; height: 18px; margin-top: -9px; }
  body.svw-touch .svw-btns { right: 88px; }
  body.svw-touch .svw-dpad { grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 48px); }
}
.svw-rot { display: block; margin-top: 8px; color: #67e8f9; font-weight: 700; }

/* Walk warm-up card (13 Oct 2026) */
.svw-curtain { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: grid; place-items: center; background: #06060a; opacity: 0; transition: opacity .42s ease; }
.svw-curtain.full { z-index: 2147483002; }
.svw-curtain[hidden] { display: none; }
.svw-curtain.on { opacity: 1; }
.svw-warm { display: grid; justify-items: center; gap: 6px; padding: 28px 30px 24px; border: 1px solid rgba(255,255,255,.09); border-radius: 24px; background: linear-gradient(180deg, rgba(18,18,26,.96), rgba(8,8,12,.97)); color: #fff; font-family: Inter, system-ui, sans-serif; text-align: center; transform: translateY(8px) scale(.98); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.svw-curtain.on .svw-warm { transform: none; }
.svw-warm b { margin-top: 8px; font: 800 17px Outfit, Inter, sans-serif; }
.svw-warm small { color: #8a8d9b; font-size: 12.5px; }
.svw-load { position: relative; display: grid; place-items: center; width: 84px; height: 84px; }
.svw-load::before, .svw-load::after { content: ""; position: absolute; inset: 0; border: 3px solid transparent; border-radius: 50%; }
.svw-load::before { border-top-color: #22d3ee; border-right-color: rgba(34,211,238,.25); animation: svwSpin 1.1s linear infinite; box-shadow: 0 0 24px rgba(34,211,238,.18); }
.svw-load::after { inset: 10px; border-bottom-color: #a78bfa; border-left-color: rgba(167,139,250,.25); animation: svwSpin 1.7s linear infinite reverse; }
.svw-load img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(139,92,246,.6)); }
@keyframes svwSpin { to { transform: rotate(360deg); } }

/* Phone Materials / Block swap sheet: a plain title row instead of the size and the tabs; Swap buttons; the swap drawer */
.sv-shead { display: none; }
.sv-go em { display: none; }
@media (max-width: 760px) {
  .sv-mx .mx-side > .sv-sum, .sv-mx .mx-side > .sv-tabs { display: none !important; }
  .sv-shead { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 6px 20px; }
  .sv-shead b { color: #fff; font: 800 18px Outfit, Inter, sans-serif; }
  .sv-shx { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.06); color: #a1a1aa; }
  .sv-shx svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .swapmode .sv-go { width: auto; height: 30px; padding: 0 13px; border-radius: 999px; background: rgba(34,211,238,.12); color: #67e8f9; }
  .swapmode .sv-go svg { display: none; }
  .swapmode .sv-go em { display: inline; font: 700 12.5px Inter, system-ui, sans-serif; font-style: normal; }
}

/* the swap drawer: phones, and touch screens in the 3D Render (above the walk view) */
.sv-pk { position: fixed; inset: 0; z-index: 960; display: flex; align-items: flex-end; background: rgba(3,3,6,.5); opacity: 0; transition: opacity .3s; }
.sv-pk[hidden] { display: none; }
.sv-pk.on { opacity: 1; }
.sv-pk-in { display: flex; flex-direction: column; width: 100%; height: min(78dvh, 640px); padding-bottom: env(safe-area-inset-bottom); border-radius: 24px 24px 0 0; background: #0c0d12; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 -30px 60px -20px rgba(0,0,0,.8); transform: translateY(100%); transition: transform .36s cubic-bezier(.22,1,.36,1); font-family: Inter, system-ui, sans-serif; }
.sv-pk.on .sv-pk-in { transform: none; }
.sv-pk header { display: flex; align-items: center; gap: 11px; padding: 14px 16px 10px; }
.sv-pk-x { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.06); color: #d4d4d8; }
.sv-pk-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sv-pk header img { image-rendering: pixelated; }
.sv-pk header div { display: grid; flex: 1; min-width: 0; }
.sv-pk header small { color: #71717a; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sv-pk header b { overflow: hidden; color: #fff; font: 800 16px Outfit, Inter, sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.sv-pk header em { color: #a1a1aa; font: 700 13px Inter, sans-serif; font-style: normal; }
.sv-pk .sv-find { margin: 0 16px 6px; }
.sv-pk-h { margin: 10px 20px 4px; color: #71717a; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sv-pk-list { flex: 1; margin: 0; padding: 2px 10px 14px; overflow: auto; list-style: none; }
.sv-pk-list li { display: flex; align-items: center; gap: 12px; padding: 8px 8px; border-radius: 12px; }
.sv-pk-list li img { width: 30px; height: 30px; image-rendering: pixelated; }
.sv-pk-list li span { flex: 1; min-width: 0; overflow: hidden; color: #f4f4f5; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.sv-pk-list button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: #0b0b10; font: 700 12.5px Inter, sans-serif; transition: background .2s, color .2s; }
.sv-pk-list button.done { background: #22c55e; color: #fff; }
body.sv-walking .sv-pk { z-index: 2147483100; }
/* touch buttons: bigger icons (13 Oct 2026, Parky) */
.svw-b svg { width: 26px; height: 26px; stroke-width: 2.4; }
.svw-b.big svg { width: 32px; height: 32px; }
.svw-b { width: 64px; height: 64px; }
.svw-b.big { width: 78px; height: 78px; }
.sv-pk .sv-find { flex: none; height: 44px; margin: 0 16px 6px; --acc: 34,211,238; }
.sv-pk .sv-find svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
