/* Howling Press studios: the shell's look (WEB-0074, docs/STUDIOS-BUILD.md; the approved design is docs/designs/studios/).
   Light shop, dark studio (Chris, 2026-11-05): the door and How many on white, the dark stage (#111113, tiles #1C1C1E) from the
   first making step to Add to cart. Satoshi throughout (the theme's variable font, 300 to 900); the lockup's words at 300.
   One easing, cubic-bezier(0.2, 0.7, 0.2, 1); 160 ms feedback, 260 ms interface, 640 ms arrival; less motion asked: quick fades. */

body.hp-studios-page { background: #111113; }
body.hp-studios-page.hps-light, html.hps-light-first body.hp-studios-page { background: #fff; }
body.hp-studios-page.hps-ground { transition: background-color .35s cubic-bezier(.2, .7, .2, 1); }
.hp-studios__soon { color: #fff; text-align: center; padding: 48px 16px; margin: 0; font: 400 17px/1.5 Satoshi, system-ui, sans-serif; }
html.hps-light-first .hp-studios__soon, body.hps-light .hp-studios__soon { color: #1D1D1F; }

.hps-studios {
  --e: cubic-bezier(.2, .7, .2, 1);
  --ink: #1D1D1F; --violet: #725BE8;
  --bg: #111113; --tile: #1C1C1E; --tile2: #2A2A2E; --panel: #161618; --fg: #fff; --body: #B8B8BE; --quiet: #B8B8BE;
  --line: rgba(255, 255, 255, .14); --line2: rgba(255, 255, 255, .26); --link: #BDB2FF; --good: #6FD39B; --bad: #FF8A9B; --amber: #F5C46B;
  --btn: #fff; --btnfg: #1D1D1F;
  position: relative; min-height: 100vh; min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px)); display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg); font: 400 16px/1.45 Satoshi, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -.005em; -webkit-font-smoothing: antialiased; color-scheme: dark; touch-action: manipulation;
}
.hps-studios.islight {
  --bg: #fff; --tile: #F5F5F7; --tile2: #E8E8ED; --panel: #fff; --fg: #1D1D1F; --body: #3A3A3E; --quiet: #6E6E73;
  --line: #E8E8ED; --line2: #D2D2D7; --link: #5B46C7; --good: #2F7D4F; --bad: #C54E60; --amber: #B7791F; --btn: #1D1D1F; --btnfg: #fff; color-scheme: light;
}
.hps-studios.hps-ground, .hps-studios.hps-ground .hps-bar { transition: background-color .35s var(--e), color .35s var(--e); }
.hps-studios.hps-ground.hps-reduced, .hps-studios.hps-ground.hps-reduced .hps-bar { transition-duration: .16s; transition-timing-function: linear; }
.hps-studios * { box-sizing: border-box; }
.hps-studios :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; letter-spacing: inherit; text-transform: none; box-shadow: none; }
.hps-studios :where(h1, h2, h3) { color: var(--fg); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.hps-studios p { margin: 0; text-wrap: pretty; }
.hps-studios button:focus-visible, .hps-studios a:focus-visible, .hps-studios input:focus-visible, .hps-studios label:has(> input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.hps-studios [hidden] { display: none !important; }
.hps-quiet { color: var(--quiet); }
.hps-small { font-size: 14px; }
.hps-tiny { font-size: 12.5px; color: var(--quiet); }
.hps-c { text-align: center; }
.hps-bad { color: var(--bad); }
.hps-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hps-fig, .hps-each, .hps-total, .hps-codebox, .hps-code span { font-variant-numeric: tabular-nums; }

/* ---- Buttons, links, chips ---- */
.hps-studios .hps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 18px; border-radius: 999px; background: var(--btn); color: var(--btnfg); font-weight: 500; font-size: 15px; white-space: nowrap; cursor: pointer; position: relative; transition: transform .16s var(--e), background-color .16s var(--e); }
.hps-studios .hps-btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2); }
.hps-studios .hps-btn:active, .hps-studios .hps-pill:active, .hps-studios .hps-next:active { transform: scale(.97); }
.hps-studios .hps-link { color: var(--link); font-weight: 500; font-size: 14.5px; cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; position: relative; }
.hps-studios .hps-link--ink { color: var(--fg); }
.hps-studios .hps-pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 999px; background: var(--btn); color: var(--btnfg); font-weight: 600; font-size: 16px; cursor: pointer; position: relative; transition: transform .16s var(--e), opacity .16s var(--e); }
.hps-studios .hps-pill svg { width: 22px; height: 22px; }
.hps-studios .hps-pill--grey { background: var(--tile); color: var(--fg); }
.hps-studios .hps-off { opacity: .38; cursor: default; }
.hps-wide { width: 100%; }
.hps-filein { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; font-size: 0; }
.hps-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 500; background: var(--tile2); color: var(--fg); white-space: nowrap; }
.hps-chip svg { width: 16px; height: 16px; }
.hps-chip.on { background: var(--fg); color: var(--bg); }
.hps-chip--amber { box-shadow: inset 0 0 0 1px var(--amber); color: var(--amber); }
.hps-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tile2); gap: 2px; }
.hps-seg button { padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--body); transition: background-color .16s var(--e), color .16s var(--e); }
.hps-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }

/* ---- The bar: back and the step at the left, the lockup centered, the code and Next at the right ---- */
.hps-bar { flex: none; position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 6; background: var(--bg); padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
@media (max-width: 600px) { .admin-bar .hps-bar { top: 0; } }
.hps-segs { display: flex; gap: 4px; height: 3px; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); }
.hps-segs i { flex: 1; position: relative; overflow: hidden; background: var(--line2); border-radius: 2px; }
.hps-segs i b { position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; transition: transform .26s var(--e); }
.hps-segs i.on b { transform: none; }
.hps-reduced .hps-segs i b { transition: transform .16s linear; }
.hps-barrow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; min-height: 52px; }
.hps-barl, .hps-barr { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hps-barr { justify-content: flex-end; gap: 14px; }
.hps-back { width: 32px; height: 44px; display: flex; align-items: center; justify-content: flex-start; flex: none; color: var(--fg); }
.hps-back svg { width: 22px; height: 22px; }
.hps-word { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.hps-lockup { display: flex; align-items: center; gap: 10px; color: var(--fg); font-size: 18px; font-weight: 300; line-height: 1; letter-spacing: normal; white-space: nowrap; text-decoration: none; min-height: 32px; padding: 0 4px; border-radius: 10px; }
.hps-lockup:hover { text-decoration: none; }
@media (hover: hover) { .hps-lockup:hover { opacity: .8; } }
.hps-lockmark { display: block; height: 26px; width: 26px; flex: none; object-fit: cover; object-position: left center; }
.hps-mini { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13.5px; font-weight: 500; color: var(--fg); white-space: nowrap; }
.hps-mini svg { width: 18px; height: 18px; flex: none; }
.hps-code span { letter-spacing: .06em; font-weight: 600; }
.hps-studios .hps-next { min-height: 36px; padding: 7px 18px; border-radius: 999px; background: var(--btn); color: var(--btnfg); font-weight: 500; font-size: 14px; white-space: nowrap; flex: none; transition: transform .16s var(--e), opacity .16s var(--e); }

/* ---- The body and its steps ---- */
.hps-body { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; }
.hps-step { flex: 1 0 auto; display: flex; flex-direction: column; }
.hps-step.hps-leaving { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 1; }
.hps-page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px max(16px, env(safe-area-inset-left, 0px)) 48px; }
.hps-head { text-align: center; }
.hps-head h1 { font-size: clamp(30px, 1.4rem + 1.6vw, 40px); }
.hps-head p { margin-top: 8px; font-size: 17px; color: var(--quiet); }
.hps-say { margin-top: 14px; text-align: center; font-size: 14.5px; }

/* ---- The door: three doors of one size, their file, their Canva design, their phone (docs/designs/studios/canva.html, screen 1;
   Chris, 2026-11-19: "From your phone should be an equal sized option. All are important."); two when Canva is not shown ---- */
.hps-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 26px auto 0; max-width: 1140px; }
.hps-doors--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
.hps-doors--1 { grid-template-columns: minmax(0, 1fr); max-width: 600px; }
.hps-door { display: flex; min-width: 0; background: #fff; border-radius: 26px; box-shadow: inset 0 0 0 2px var(--ink); padding: 14px; }
.hps-door--soft { box-shadow: inset 0 0 0 1px var(--line2); } /* the hidden link: Canva's door leads, the others stay */
.hps-door > .hps-zone, .hps-doorin { flex: 1; min-width: 0; min-height: 330px; margin: 0; }
.hps-doorin { border-radius: 18px; background: var(--tile); padding: 26px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.hps-doorin h2 { font-size: 22px; margin-top: 12px; }
.hps-doorin p { font-size: 14.5px; max-width: 330px; }
.hps-doorin .hps-btn { margin-top: 12px; }
.hps-doorin .hps-tiny { margin-top: 4px; }
.hps-cvstack { position: relative; width: 190px; height: 132px; flex: none; }
.hps-cvstack i { position: absolute; top: 8px; width: 88px; height: 118px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.hps-cvstack i:nth-child(1) { left: 6px; transform: rotate(-9deg); background: #E8D9C4; }
.hps-cvstack i:nth-child(2) { left: 96px; transform: rotate(8deg); background: #2F3B52; }
.hps-cvstack i:nth-child(3) { left: 51px; top: 0; z-index: 1; background: linear-gradient(180deg, #8FA7B8 0 58%, #6E1E2A 58%); }
.hps-forcv { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 16px; color: var(--quiet); }
.hps-zone { margin: 14px; border-radius: 18px; border: 2px dashed var(--line2); background: var(--tile); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px; transition: border-color .16s var(--e), background-color .16s var(--e); }
.hps-zone.is-over { border-color: var(--violet); background: #EDE9FC; }
.hps-zone h2 { font-size: 22px; margin-top: 6px; overflow-wrap: anywhere; }
.hps-zone p { font-size: 14.5px; margin-top: 4px; }
.hps-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.hps-dropart { position: relative; display: grid; place-items: center; height: 120px; margin-bottom: 8px; }
.hps-ghost { display: grid; place-items: center; border-radius: 6px; border: 2px dashed var(--line2); background: #fff; transform: rotate(-4deg); }
.hps-ghost--has { border-style: solid; border-color: var(--ink); transform: none; color: var(--ink); gap: 4px; padding: 8px; box-shadow: 0 10px 22px rgba(0, 0, 0, .12); }
.hps-ghost--has svg { width: 26px; height: 26px; }
.hps-ghost--has i { font-style: normal; font-size: 11.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hps-ghostplus { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.hps-ghostplus svg { width: 20px; height: 20px; }
.hps-qr { width: 140px; height: 140px; color: var(--ink); background: #fff; padding: 9px; border-radius: 16px; box-sizing: content-box; }
.hps-qr svg { width: 100%; height: 100%; display: block; }
.hps-qr svg rect[fill="#ffffff"], .hps-qr svg path[fill="#ffffff"] { fill: #fff; }
.hps-phonecode { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 6px; }
.hps-phonecode .hps-quiet { font-size: 13px; }
.hps-door--phone .hps-codebox { background: #fff; font-size: 20px; letter-spacing: .14em; }
.hps-codebox { padding: 0 12px; height: 34px; border-radius: 8px; background: var(--tile); color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: .08em; display: inline-grid; place-items: center; white-space: nowrap; }
/* door.slots: one file for each side, a small tile each under the big drop */
.hps-slots { margin-top: 18px; width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hps-slots > p { font-size: 13.5px; }
.hps-slotrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; width: 100%; }
.hps-slot { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line2); text-align: left; cursor: pointer; transition: box-shadow .16s var(--e), background-color .16s var(--e); }
.hps-slot b { font-size: 14px; color: var(--fg); }
.hps-slot span { font-size: 12.5px; color: var(--link); font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hps-slot.is-has { box-shadow: inset 0 0 0 1.5px var(--ink); }
.hps-slot.is-has span { color: var(--body); }
.hps-slot.is-over { box-shadow: inset 0 0 0 2px var(--violet); background: #EDE9FC; }
.hps-slot:has(> input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
/* door.link: a link in place of a file */
.hps-linkf { margin-top: 16px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--fg); }
.hps-linkf input { height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: #fff; color: var(--ink); padding: 0 13px; font: 400 14.5px/1 inherit; font-family: inherit; min-width: 0; }
.hps-linkf input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(114, 91, 232, .25); }
.hps-linkok { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--good); font-weight: 600; }
.hps-linkok svg { width: 14px; height: 14px; }
/* the product's own parts of the door: a switch under the title, a line under the tiles */
.hps-under { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hps-doorfoot { margin-top: 18px; text-align: center; font-size: 14.5px; }
/* No design yet?: one row under the doors, the second path's link and Start it in Canva side by side */
.hps-others { display: flex; align-items: center; gap: 16px; max-width: 1140px; margin: 14px auto 0; border-radius: 20px; background: var(--tile); padding: 12px 24px 12px 12px; }
.hps-doors--2 + .hps-others { max-width: 900px; }
.hps-otherart { flex: none; width: 74px; height: 54px; border-radius: 12px; background: linear-gradient(180deg, #EEEBE6, #E1DDD6); display: grid; place-items: center; overflow: hidden; }
.hps-otherart > * { max-width: 34px !important; max-height: 46px !important; width: auto !important; height: auto !important; }
.hps-otherart:empty { display: none; }
.hps-otherw { display: flex; flex-direction: column; min-width: 0; }
.hps-otherw b { font-size: 17px; color: var(--fg); }
.hps-otherw .hps-quiet { font-size: 14px; }
.hps-otherlinks { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.hps-otherlinks .hps-link { font-size: 15px; }
.hps-countrow { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1088px; margin: 26px auto 0; padding-top: 22px; border-top: 1px solid var(--line); }
.hps-countrow h2 { font-size: 19px; }
.hps-countrow p { font-size: 14px; margin-top: 2px; }
.hps-countf { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 190px; height: 46px; border-radius: 12px; border: 1px solid var(--line2); background: #fff; padding: 0 13px; flex: none; transition: border-color .16s var(--e), box-shadow .16s var(--e); }
.hps-countf:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(114, 91, 232, .25); }
.hps-countf input { border: 0; outline: 0; background: transparent; font: 500 18px/1 inherit; font-family: inherit; color: var(--ink); width: 100%; min-width: 0; padding: 0; font-variant-numeric: tabular-nums; }
.hps-countf span { color: var(--quiet); font-size: 14px; }
.hps-pricebox--right { text-align: right; min-width: 240px; }
.hps-each { font-size: 20px; font-weight: 700; color: var(--fg); letter-spacing: -.01em; }
.hps-each small { font-size: .6em; font-weight: 500; color: var(--quiet); letter-spacing: 0; }
.hps-each--big { font-size: 42px; line-height: 1; letter-spacing: -.02em; }
.hps-each--big small { font-size: 17px; }
.hps-each--note { font-size: 17px; }
.hps-from { font-weight: 500; color: var(--quiet); font-size: .8em; }
.hps-total { font-size: 14px; color: var(--quiet); margin-top: 2px; }
.hps-break { font-size: 14px; margin-top: 2px; color: var(--body); }
.hps-break .hps-link { min-height: 0; font-size: inherit; }
.hps-codeline { text-align: center; margin-top: 22px; }
.hps-codeform { display: inline-flex; gap: 8px; margin-left: 10px; vertical-align: middle; }
.hps-codein { height: 40px; width: 130px; border-radius: 12px; border: 1px solid var(--line2); padding: 0 12px; font: 600 16px/1 inherit; font-family: inherit; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); background: var(--bg); }

/* ---- How many ---- */
.hps-many { text-align: center; padding-top: 56px; max-width: 640px; }
.hps-many h1 { font-size: clamp(32px, 1.5rem + 2vw, 44px); }
.hps-many > p { font-size: 18px; margin-top: 10px; }
.hps-countf--big { width: 260px; height: 76px; margin: 26px auto 0; border-radius: 18px; padding: 0 20px; }
.hps-countf--big input { font-size: 40px; font-weight: 700; text-align: left; }
.hps-countf--big span { font-size: 17px; }
.hps-picks { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.hps-studios.islight .hps-picks .hps-chip { background: var(--tile); }
.hps-studios.islight .hps-picks .hps-chip.on { background: var(--ink); color: #fff; }
.hps-picks .hps-chip { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.hps-pricecard { margin: 26px auto 0; padding: 20px 24px; border-radius: 20px; background: var(--tile); text-align: center; min-height: 96px; display: grid; place-items: center; }
.hps-pricecard:has([data-state="none"]) { display: none; }
.hps-pricecard .hps-each--big { font-size: 34px; }
.hps-many .hps-small { margin-top: 12px; }

/* ---- The stage: the piece, its tools and the price under it; the side panel ---- */
.hps-ed { flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: calc(100vh - var(--hps-bar, 56px) - var(--wp-admin--admin-bar--height, 0px)); }
.hps-ed--wide { grid-template-columns: minmax(0, 1fr); }
.hps-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 22px 40px 26px; min-width: 0; }
.hps-stagehead { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hps-stagehead h1 { font-size: 22px; }
.hps-stagehead p { font-size: 13px; margin-top: 2px; }
.hps-pieceat { display: flex; justify-content: center; align-items: center; width: 100%; min-width: 0; min-height: 220px; }
.hps-ghost--dark { width: min(520px, 80vw); border-color: var(--line2); background: var(--tile); color: var(--quiet); transform: none; border-radius: 4px; font-size: 14px; }
.hps-fileerr { max-width: 420px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--bad); }
.hps-fallview canvas { display: block; box-shadow: 0 1.2em 3em rgba(0, 0, 0, .4); }
.hps-legend { display: flex; gap: 22px; align-items: center; font-size: 12.5px; color: var(--body); flex-wrap: wrap; justify-content: center; }
.hps-legend span { display: inline-flex; align-items: center; gap: 8px; }
.hps-legend i { display: inline-block; width: 26px; }
.hps-lg-cut { border-top: 1.5px solid #fff; }
.hps-lg-safe { border-top: 1.5px dashed var(--link); }
.hps-lg-bleed { height: 12px; border-radius: 2px; background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(255, 255, 255, .35) 3px 5px); box-shadow: inset 0 0 0 1px var(--line2); }
.hps-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; background: var(--tile); border-radius: 18px; padding: 8px 18px; font-size: 13.5px; }
.hps-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 500; }
.hps-tool svg { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--tile2); }
.hps-sep { width: 1px; height: 30px; background: var(--line2); }
.hps-studios .hps-priceline { font-size: 12.5px; color: var(--body); text-align: center; padding: 6px 10px; border-radius: 10px; line-height: 1.5; transition: background-color .16s var(--e); }
.hps-priceline b { color: var(--fg); font-weight: 500; }
@media (hover: hover) { .hps-studios .hps-priceline:hover { background: var(--tile); } }
.hps-side { border-left: 1px solid var(--line); background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hps-sidehead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hps-sidehead h2 { font-size: 15px; }
.hps-sidehead .hps-quiet { font-size: 11.5px; }
.hps-sidehead + .hps-sidehead, .hps-proof + .hps-sidehead { margin-top: 6px; }
.hps-proof { position: relative; height: 206px; border-radius: 16px; background: radial-gradient(80% 70% at 50% 45%, #2A2A2E, #161618); display: grid; place-items: center; overflow: hidden; }
.hps-okpill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--good); white-space: nowrap; }
.hps-okpill svg { width: 14px; height: 14px; }
.hps-okpill--bad { color: var(--bad); }
.hps-finds { list-style: none; margin: 0; padding: 0; }
.hps-find { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hps-find:last-child { border-bottom: 0; }
.hps-find b { color: var(--fg); font-size: 13.5px; font-weight: 600; }
.hps-find p { font-size: 12.5px; color: var(--body); margin-top: 2px; }
.hps-find .hps-fix { color: var(--quiet); }
.hps-findacts { display: flex; gap: 16px; margin-top: 4px; font-size: 13px; }
.hps-findacts .hps-link { font-size: 13px; }
.hps-asis { color: var(--quiet); font-size: 13px; display: inline-flex; align-items: center; }
.hps-pin { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-style: normal; color: #1D1D1F; line-height: 1; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.hps-pin--amber { background: #F5C46B; }
.hps-pin--info { background: #BDB2FF; }
.hps-pin--crit { background: #FF8A9B; }
.hps-side .hps-tiny:first-of-type { margin-top: auto; }

/* ---- The flat proof (no 3D view): the piece turned a little, a tap turns it over ---- */
.hps-flat { position: relative; display: grid; place-items: center; width: 100%; height: 100%; perspective: 1400px; container-type: size; }
.hps-flatin { position: relative; display: block; width: 72%; width: min(72cqw, 78cqh * var(--hps-ar, 1.75)); transform: rotateY(-22deg) rotateX(8deg); transform-style: preserve-3d; transition: transform .64s var(--e); }
.hps-face { display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 30px 40px 60px rgba(0, 0, 0, .45); border-radius: 3px; overflow: hidden; line-height: 0; }
.hps-face canvas { display: block; width: 100%; height: auto; }
.hps-face--back { position: absolute; inset: 0; transform: rotateY(180deg); }
.hps-flat.is-back .hps-flatin { transform: rotateY(158deg) rotateX(8deg); }
.hps-reduced .hps-flatin { transition: transform .16s linear; }
.hps-flat--hero .hps-flatin { width: min(560px, 70%); width: min(560px, 70cqw, 80cqh * var(--hps-ar, 1.75)); transform: rotateY(-18deg) rotateX(10deg) rotateZ(-3deg); }
.hps-flat--hero.is-back .hps-flatin { transform: rotateY(162deg) rotateX(10deg) rotateZ(3deg); }
.hps-flat--pair .hps-flatin { position: absolute; width: min(430px, 50%); width: min(430px, 50cqw, 50cqh * var(--hps-ar, 1.75)); transition: transform .64s var(--e), z-index 0s .2s; }
.hps-flat--pair .hps-flatin--b { left: 42%; top: 40%; z-index: 1; transform: rotateY(-18deg) rotateX(10deg) rotateZ(4deg); }
.hps-flat--pair .hps-flatin--a { left: 8%; top: 10%; z-index: 2; transform: rotateY(-22deg) rotateX(10deg) rotateZ(-6deg); }
.hps-flat--pair.is-back .hps-flatin--b { z-index: 2; transform: translate(-6%, -8%) rotateY(-18deg) rotateX(10deg) rotateZ(2deg); }
.hps-flat--pair.is-back .hps-flatin--a { z-index: 1; transform: translate(4%, 6%) rotateY(-22deg) rotateX(10deg) rotateZ(-8deg); }
.hps-flat--pair .hps-face--back { position: static; transform: none; }
.hps-flatnone { width: 60%; aspect-ratio: 7 / 4; border-radius: 4px; background: var(--tile2); }

/* Your file with a link in place of a file */
.hps-linkcard { width: min(520px, 100%); padding: 26px; border-radius: 18px; background: var(--tile); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hps-linkat { color: var(--fg); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }

/* ---- Buy: the proof the hero, the price of one large, rows with Change, one tick, Add to cart ---- */
.hps-buy { flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 470px; min-height: calc(100vh - var(--hps-bar, 56px) - var(--wp-admin--admin-bar--height, 0px)); }
.hps-hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; background: radial-gradient(60% 55% at 50% 46%, #26262A 0%, var(--bg) 100%); min-width: 0; }
.hps-proof--hero { width: 100%; max-width: 760px; height: min(56vh, 480px); background: none; }
.hps-panel { border-left: 1px solid var(--line); background: var(--panel); padding: 22px 30px; display: flex; flex-direction: column; min-width: 0; }
.hps-buyhead .hps-pricebox [data-state="ok"] { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: end; }
.hps-buyhead .hps-pricebox .hps-total { grid-column: 1; margin-top: 6px; font-size: 15px; }
.hps-buyhead .hps-pricebox .hps-break { grid-column: 2; grid-row: 1 / span 2; text-align: right; align-self: end; font-size: 13.5px; }
.hps-rows { margin-top: 14px; }
.hps-brow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hps-k { color: var(--body); width: 78px; flex: none; }
.hps-v { color: var(--fg); font-weight: 500; flex: 1; min-width: 0; }
.hps-v small { display: block; color: var(--body); font-weight: 400; font-size: 12px; }
.hps-v--quiet { color: var(--body); font-weight: 400; }
.hps-brow .hps-link { font-size: 13.5px; }
.hps-opts { padding-left: 16px; border-left: 2px solid var(--line); }
.hps-extra:not(:empty) { margin-top: 16px; }
.hps-buyfoot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.hps-approve { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--fg); cursor: pointer; position: relative; padding: 4px 0; }
.hps-approve input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.hps-tick { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line2); display: grid; place-items: center; flex: none; margin-top: 1px; color: transparent; transition: background-color .16s var(--e), box-shadow .16s var(--e); }
.hps-tick svg { width: 13px; height: 13px; }
.hps-approve input:checked + .hps-tick { background: var(--btn); box-shadow: none; color: var(--btnfg); }
.hps-approve input:focus-visible + .hps-tick { outline: 2px solid var(--link); outline-offset: 2px; }
.hps-why { font-size: 13.5px; color: var(--body); }
.hps-add { width: 100%; }

/* ---- The quote ending ---- */
.hps-quote h1 { font-size: 28px; }
.hps-quote > p { font-size: 14px; margin-top: 6px; }
.hps-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 14px 0 16px; }
.hps-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--fg); }
.hps-field input { height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: var(--tile); color: var(--fg); padding: 0 13px; font: 400 14.5px/1 inherit; font-family: inherit; }
.hps-field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(114, 91, 232, .25); }
.hps-quote .hps-tiny { margin-top: 10px; }
.hps-quote--sent p { margin-top: 10px; font-size: 15px; color: var(--body); }

/* ---- The phone's page ---- */
.hps-phonepage .hps-page { max-width: 480px; padding-top: 22px; }
.hps-phonetop { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 300; color: var(--fg); }
.hps-linked { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; background: #E8F5EC; color: #2F7D4F; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; }
.hps-linked i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hps-phonepage h1 { font-size: 28px; margin-top: 18px; }
.hps-phonepage .hps-page > .hps-quiet { margin-top: 4px; font-size: 15px; }
.hps-phonebtns { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 14px; }
.hps-sent { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 8px; }
.hps-sent li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--tile); font-size: 14px; }
.hps-sent li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hps-sent li.is-sent span { color: var(--good); font-weight: 600; }

/* ---- Narrower screens: the side panel under the stage, then a phone ---- */
@media (max-width: 1100px) {
  .hps-buy { grid-template-columns: minmax(0, 1fr) 400px; }
}
@media (max-width: 1000px) {
  .hps-doors, .hps-doors--2 { grid-template-columns: minmax(0, 1fr); max-width: 640px; } /* the doors stack, each as wide as the others */
  .hps-door > .hps-zone, .hps-doorin { min-height: 0; }
  .hps-doorin { padding: 22px 18px; }
  .hps-others, .hps-doors--2 + .hps-others { max-width: 640px; flex-wrap: wrap; }
  .hps-otherlinks { margin-left: 0; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .hps-ed, .hps-buy { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hps-side, .hps-panel { border-left: 0; border-top: 1px solid var(--line); }
  .hps-stage { padding: 18px 16px 22px; }
  .hps-proof--hero { height: 46vh; min-height: 260px; }
  .hps-panel { padding: 20px 16px 28px; }
}
@media (max-width: 760px) {
  .hps-door--phone { display: none; } /* on a phone already: its own picker is the way */
  .hps-cvstack { transform: scale(.8); margin: -12px 0; }
  .hps-countrow { flex-direction: column; align-items: stretch; text-align: left; gap: 12px; }
  .hps-countf { width: 100%; }
  .hps-pricebox--right { text-align: left; min-width: 0; }
}
@media (max-width: 640px) {
  .hps-barrow { gap: 8px; min-height: 48px; }
  .hps-lockup { font-size: 16px; gap: 7px; padding: 0; }
  .hps-lockmark { width: 22px; height: 22px; }
  .hps-word { font-size: 13px; }
  .hps-barr { gap: 8px; }
  .hps-code { display: none; } /* the lockup needs the room; the code is said again where it matters (the quote, Share on a computer) */
  .hps-barl { gap: 4px; }
  .hps-back { width: 28px; }
  .hps-studios .hps-next { padding: 7px 14px; }
  .hps-page { padding-top: 22px; }
  .hps-head h1 { font-size: 28px; }
  .hps-head p { font-size: 15.5px; }
  .hps-zone { margin: 0; padding: 20px 14px; }
  .hps-door { padding: 10px; border-radius: 22px; }
  .hps-others { padding: 12px 16px; }
  .hps-slots, .hps-linkf { max-width: none; }
  .hps-many { padding-top: 32px; }
  .hps-countf--big { width: 100%; }
  .hps-stagehead h1 { font-size: 20px; }
  .hps-tools { gap: 10px; padding: 6px 12px; }
  .hps-sep { display: none; }
  .hps-each--big { font-size: 34px; }
  .hps-fields { grid-template-columns: 1fr; }
  .hps-buyhead .hps-pricebox [data-state="ok"] { grid-template-columns: 1fr; }
  .hps-buyhead .hps-pricebox .hps-break { grid-column: 1; grid-row: auto; text-align: left; margin-top: 6px; }
}
@media (max-width: 359px) {
  .hps-lockup span { display: none; } /* the words drop and the mark stays, as Card Studio's bar */
}
@media (pointer: coarse) {
  .hps-studios .hps-link, .hps-tool, .hps-mini, .hps-studios .hps-next, .hps-studios .hps-btn { min-height: 44px; }
  .hps-seg button { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hps-studios *, .hps-studios *::before, .hps-studios *::after { transition-duration: .16s !important; transition-timing-function: linear !important; }
}
@media (forced-colors: active) {
  .hps-chip.on, .hps-seg button.on { outline: 2px solid CanvasText; }
}

/* ---- file.js's own view (A2): it brings its heading, legend and controls, and fills the stage ---- */
.hps-stage--full { justify-content: flex-start; align-items: stretch; }
.hps-pieceat.is-full { flex: 1 1 auto; align-items: stretch; min-height: 460px; }
.hps-pieceat.is-full > .hpsf { flex: 1 1 auto; }
.hps-stage--full .hps-priceline { align-self: center; }
.hps-checkat { min-width: 0; }
@media (max-width: 900px) { .hps-pieceat.is-full { min-height: 0; } }
