/* =====================================================================
   MADEBYEYAD — POSTER look for the home and hub pages (Templates,
   Projects, Settings, Help). Bold editorial type, a framed sheet of paper,
   thin rules, numbered lists. The editors themselves are untouched.
   No blur, no shadows, no infinite animation — cheap to paint on any phone.
   ===================================================================== */
@font-face { font-family: 'Poster AB'; font-display: block; src: url('../fonts/archivo-black-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poster BN'; font-display: block; src: url('../fonts/bebas-neue-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poster MO'; font-display: block; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }

/* ---- colour modes: frame / paper / type (headline + rules) / text (small copy) / on (text on filled buttons) */
:root, [data-poster="signal"] { --po-frame: #f4260f; --po-paper: #ecebe6; --po-type: #cc1c07; --po-text: #cc1c07; --po-on: #ecebe6; }
[data-poster="night"]   { --po-frame: #0b0b0b; --po-paper: #0b0b0b; --po-type: #f4260f; --po-text: #e9e6df; --po-on: #0b0b0b; }
[data-poster="redroom"] { --po-frame: #f4260f; --po-paper: #f4260f; --po-type: #0d0d0d; --po-text: #0d0d0d; --po-on: #f4260f; }
[data-poster="ink"]     { --po-frame: #0d0d0d; --po-paper: #ecebe6; --po-type: #0d0d0d; --po-text: #0d0d0d; --po-on: #ecebe6; }
[data-poster="cobalt"]  { --po-frame: #0d0d0d; --po-paper: #1b3fd6; --po-type: #ffb8a4; --po-text: #f1eee7; --po-on: #0d0d0d; }
[data-poster="sun"]     { --po-frame: #ff7a1a; --po-paper: #ff7a1a; --po-type: #1c1206; --po-text: #1c1206; --po-on: #ff7a1a; }
[data-poster="forest"]  { --po-frame: #1f3a2e; --po-paper: #1f3a2e; --po-type: #f2c230; --po-text: #f2c230; --po-on: #1f3a2e; }
[data-poster="lime"]    { --po-frame: #0d0d0d; --po-paper: #d6ff3f; --po-type: #0d0d0d; --po-text: #0d0d0d; --po-on: #d6ff3f; }
[data-poster="blush"]   { --po-frame: #d0142c; --po-paper: #f4cfd6; --po-type: #b8102a; --po-text: #b8102a; --po-on: #f4cfd6; }
[data-poster="royal"]   { --po-frame: #1b3fd6; --po-paper: #ecebe6; --po-type: #1b3fd6; --po-text: #1b3fd6; --po-on: #ecebe6; }
[data-poster="mono"]    { --po-frame: #ffffff; --po-paper: #ffffff; --po-type: #0d0d0d; --po-text: #0d0d0d; --po-on: #ffffff; }
[data-poster="clay"]    { --po-frame: #8c2f1b; --po-paper: #e9d9c3; --po-type: #8c2f1b; --po-text: #3a1a10; --po-on: #e9d9c3; }

/* ---- hub pages: the framed sheet + flat tokens (replaces the glass on these pages only) */
html.studio-root:has(> body.is-hub) { background: var(--po-frame); }
html.studio-root:has(> body.is-hub)::before { background: var(--po-frame); background-image: none; }
html:root body.studio-app.is-hub.is-hub.is-hub {
  --st-bg: var(--po-paper); --st-text: var(--po-text); --st-dim: color-mix(in srgb, var(--po-text) 74%, transparent); --st-faint: color-mix(in srgb, var(--po-text) 50%, transparent);
  --st-line: color-mix(in srgb, var(--po-text) 22%, transparent); --st-line-2: color-mix(in srgb, var(--po-text) 45%, transparent);
  --st-panel: var(--po-paper); --st-panel-2: transparent; --st-raised: var(--po-paper); --st-hover: color-mix(in srgb, var(--po-text) 10%, transparent);
  --st-accent: var(--po-type); --st-accent-hi: var(--po-type); --st-accent-soft: color-mix(in srgb, var(--po-type) 14%, transparent); --st-accent-text: var(--po-on);
  --sp-glass: transparent; --sp-glass-strong: var(--po-paper); --sp-ring: inset 0 0 0 1.5px color-mix(in srgb, var(--po-type) 60%, transparent); --sp-drop: 0 0 0 transparent;
  --sp-chip: color-mix(in srgb, var(--po-text) 9%, transparent); --sp-chip-h: color-mix(in srgb, var(--po-text) 18%, transparent);
  --sp-solid: var(--po-type); --sp-on-solid: var(--po-on); --sp-bf: none; --sp-bf-strong: none; --sp-bf-bar: none;
  --sp-r-card: 8px; --sp-r-win: 12px; --st-shadow: 0 0 0 1.5px var(--po-type);
  --po-safe-t: var(--sat); --po-safe-b: var(--sab);
  margin: calc(10px + var(--po-safe-t)) calc(10px + var(--sar)) calc(10px + var(--po-safe-b)) calc(10px + var(--sal));
  min-height: calc(100vh - 20px); min-height: calc(var(--app-h, 100dvh) - 20px - var(--po-safe-t) - var(--po-safe-b));
  border-radius: 16px; background: var(--po-paper) !important; color: var(--po-text); overflow-x: clip;
}
:root body.studio-app.is-hub .xp-dock { display: none; }
:root body.studio-app.is-hub.xp-has-dock .studio-hub-main, body.xp-has-dock.is-hub .studio-hub-footer { padding-bottom: 28px; }
.po-mono, :root body.studio-app.is-hub :is(.studio-switcher-item, .xp-bar-btn, .studio-back, .studio-theme-toggle, .studio-hub-footer, .hub-chip, .studio-badge) { font: 400 10.5px/1.45 'Poster MO', ui-monospace, monospace !important; text-transform: uppercase !important; letter-spacing: .05em !important; }
:root body.studio-app.is-hub .po-mono { text-transform: uppercase !important; }
/* header: a flat poster nav */
:root body.studio-app.is-hub .studio-hub-header, :root body.studio-app.is-hub .studio-hub-header.xp-menubar { position: static; width: auto; margin: 0; padding: 14px 20px 10px; border-radius: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1.5px solid var(--po-type); min-height: 0; }
:root body.studio-app.is-hub .studio-brand-mark { display: none; }
:root body.studio-app.is-hub .studio-brand-word { font: 400 15px/1 'Poster AB', sans-serif !important; letter-spacing: -.03em !important; color: var(--po-type); gap: 0; }
:root body.studio-app.is-hub .studio-brand-word .studio-brand-app { font: inherit !important; letter-spacing: inherit !important; color: inherit; }
:root body.studio-app.is-hub .studio-brand-word .studio-brand-app::before { content: '®'; }
:root body.studio-app.is-hub .studio-switcher { background: transparent; padding: 0; gap: 8px; }
:root body.studio-app.is-hub :is(.studio-switcher-item, .xp-bar-btn, .studio-back, .studio-theme-toggle) { border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--st-line-2); color: var(--po-text); }
:root body.studio-app.is-hub .studio-switcher-item.is-active { background: var(--po-type); color: var(--po-on); box-shadow: none; }
:root body.studio-app.is-hub .studio-theme-toggle, :root body.studio-app.is-hub .xp-net { display: none; }
:root body.studio-app.is-hub .studio-hub-header .studio-switcher-item > span { display: inline !important; }
/* content */
:root body.studio-app.is-hub .studio-hub-main { width: min(1320px, 100%); padding-left: 20px; padding-right: 20px; }
:root body.studio-app.is-hub :is(.studio-page-title, .hub-title, .tpl-title) { font: 400 clamp(64px, 13vw, 190px)/.8 'Poster BN', 'Poster AB', sans-serif !important; letter-spacing: -.005em !important; text-transform: uppercase !important; color: var(--po-type); margin: 6px 0 14px; }
:root body.studio-app.is-hub :is(h2, h3, .hub-settings-card h2, .studio-card h2) { font-family: 'Poster BN', sans-serif !important; font-weight: 400; font-size: 30px; letter-spacing: .01em !important; text-transform: uppercase !important; color: var(--po-type); }
:root body.studio-app.is-hub :is(.studio-card, .hub-storage, .hub-settings-card, .hub-card, .hub-app, .tpl-thumb, .tpl-blank, .hub-drop) { background: transparent; box-shadow: none; border: 0; border-top: 1.5px solid var(--po-type); border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root body.studio-app.is-hub :is(.hub-card, .hub-app, .tpl-thumb):hover { transform: translateY(-3px); }
:root body.studio-app.is-hub .hub-thumb, :root body.studio-app.is-hub .tpl-art { border-radius: 4px; margin: 8px 0 0; }
:root body.studio-app.is-hub .studio-btn { border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--po-type); color: var(--po-text); }
:root body.studio-app.is-hub .studio-btn.is-primary { background: var(--po-type); color: var(--po-on); box-shadow: none; }
:root body.studio-app.is-hub :is(.studio-input, select.studio-input, textarea.studio-input) { border-radius: 4px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--st-line-2); color: var(--po-text); }
:root body.studio-app.is-hub :is(.studio-dialog, .studio-sheet, .studio-menu, .studio-toast, .xp-tour-card) { background: var(--po-paper); color: var(--po-text); box-shadow: 0 0 0 1.5px var(--po-type), 0 24px 60px -20px rgba(0, 0, 0, .5); }
:root body.studio-app.is-hub .studio-scrim { background: color-mix(in srgb, var(--po-frame) 55%, rgba(0, 0, 0, .5)); }
:root body.studio-app.is-hub ::selection { background: var(--po-type); color: var(--po-on); }
:root body.studio-app.is-hub .studio-hub-footer { color: var(--st-dim); border-top: 1.5px solid var(--po-type); margin: 0 20px; padding-top: 12px; justify-content: space-between; }
:root body.studio-app.is-hub .hub-switch:checked { background: var(--po-type); }

/* =====================================================================
   HOME
   ===================================================================== */
body.xp-home.is-hub { display: block; height: auto; overflow: visible; -webkit-user-select: none; user-select: none; }
body.xp-home.is-hub > .studio-hub-header, body.xp-home.is-hub > .studio-hub-footer { display: none; }
body.xp-home.is-hub .studio-hub-main { width: 100%; max-width: none; padding: 0 !important; display: block; }
.po { color: var(--po-text); }
.po a { color: inherit; text-decoration: none; }
.po-hero { height: calc(100vh - 20px); height: calc(var(--app-h, 100dvh) - 20px - var(--po-safe-t) - var(--po-safe-b)); min-height: 520px; padding: 16px 22px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border-radius: 16px; }
.po-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; z-index: 6; }
.po-logo { font: 400 15px/1 'Poster AB', sans-serif; letter-spacing: -.03em; color: var(--po-type); }
.po-links { display: flex; flex-wrap: wrap; gap: 6px 22px; min-width: 0; } .po-links a { white-space: nowrap; }
.po-links a:hover, .po-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.po-nav-r, .po-actions { display: flex; gap: 8px; flex-wrap: wrap; } .po-nav-r .po-pill, .po-actions .po-pill { white-space: nowrap; } @media (min-width: 761px) { .po-nav-r { flex: none; justify-content: flex-end; } }
.po-pill { font: 400 10.5px/1 'Poster MO', ui-monospace, monospace; text-transform: uppercase !important; letter-spacing: .05em; height: 30px; padding: 0 14px; border: 1.5px solid var(--po-type); background: transparent; color: var(--po-text); cursor: pointer; display: inline-flex; align-items: center; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s, transform .15s; }
.po-pill:hover, .po-pill.is-fill { background: var(--po-type); color: var(--po-on); }
.po-pill.is-fill:hover { filter: brightness(1.08); } .po-pill:active { transform: scale(.96); }
.po-pill:disabled { opacity: .5; }

.po-stage { position: relative; min-height: 0; }
.po-big { position: absolute; left: -2.2%; right: -2.2%; top: -1%; z-index: 1; text-align: center; white-space: nowrap; color: var(--po-type); font: 400 min(32.5vw, 62vh)/.78 'Poster AB', Impact, sans-serif; letter-spacing: -.075em; text-transform: uppercase !important; animation: po-big .9s cubic-bezier(.2, .8, .2, 1) both; }
.po-big sup { font-size: .092em; letter-spacing: 0; vertical-align: top; position: relative; top: .08em; }
.po-me { position: absolute; bottom: 0; left: 50%; height: 100%; max-width: none; transform: translateX(-50%); z-index: 2; filter: contrast(1.1); pointer-events: none; animation: po-me 1s cubic-bezier(.2, .8, .2, 1) .1s both; }
.po-over { position: absolute; z-index: 3; left: 50%; bottom: 17%; transform: translateX(-12%); margin: 0; color: var(--po-type); font: 400 min(5vw, 9.6vh)/.84 'Poster AB', Impact, sans-serif; letter-spacing: -.06em; text-transform: uppercase !important; animation: po-rise .8s cubic-bezier(.2, .8, .2, 1) .35s both; }
[data-poster="redroom"] .po-over, [data-poster="ink"] .po-over, [data-poster="lime"] .po-over, [data-poster="mono"] .po-over { color: var(--po-paper); }
.po-over i { display: block; font-style: normal; }
.po-num { position: absolute; left: 0; top: 47%; z-index: 3; color: var(--po-type); font: 400 min(3.4vw, 7vh)/1 'Poster AB', sans-serif; letter-spacing: -.05em; }
.po-cap { position: absolute; z-index: 3; max-width: 160px; margin: 0; }
.po-k1 { left: 12%; top: 46%; } .po-k2 { right: 0; top: 46%; text-align: right; } .po-k3 { left: 0; bottom: 12px; max-width: 270px; } .po-k4 { right: 0; bottom: 12px; text-align: right; }
@keyframes po-big { from { opacity: 0; transform: translateY(6%) scale(1.04); } }
@keyframes po-me { from { opacity: 0; transform: translateX(-50%) translateY(5%); } }
@keyframes po-rise { from { opacity: 0; transform: translateX(-12%) translateY(18px); } }

.po-idx { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; z-index: 4; }
.po-app { border-top: 1.5px solid var(--po-type); padding: 7px 0 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--po-type) !important; transition: padding .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.po-app b { font: 400 30px/1 'Poster BN', sans-serif; letter-spacing: .01em; text-transform: uppercase !important; white-space: nowrap; }
.po-app:hover, .po-app:focus-visible { padding-left: 8px; outline: none; }
.po-app.is-dim, .po-size.is-dim, .po-proj.is-dim { opacity: .2; }
.hm-zoom { position: fixed; inset: 0; z-index: 3000; pointer-events: none; background: var(--po-frame, var(--po-type)); clip-path: circle(0 at var(--x) var(--y)); transition: clip-path .32s cubic-bezier(.4, 0, .2, 1); }
.hm-zoom.is-on { clip-path: circle(150% at var(--x) var(--y)); }

.po-below { padding: 26px 22px 20px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 34px 26px; }
.po-tools { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; }
.po-search { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 460px; height: 40px; padding: 0 14px; border: 1.5px solid var(--po-type); color: var(--po-type); }
.po-search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--po-text); font: 400 14px/1 var(--st-ui); -webkit-user-select: text; user-select: text; }
.po-search-input::placeholder { color: var(--st-faint); }
.po-modes { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.po-modes > span { margin-right: 4px; }
.po-mode { width: 26px; height: 26px; padding: 0; border-radius: 50%; cursor: pointer; border: 2px solid var(--po-paper); outline: 1.5px solid color-mix(in srgb, var(--po-text) 45%, transparent); background: linear-gradient(135deg, var(--po-paper) 50%, var(--po-type) 50%); transition: transform .15s; -webkit-tap-highlight-color: transparent; }
.po .po-mode { border-color: transparent; }
.po-mode:hover { transform: scale(1.12); } .po-mode[aria-pressed="true"] { outline: 2.5px solid var(--po-text); outline-offset: 2px; }
.po-sec { position: relative; min-width: 0; }
.po-continue { grid-column: span 5; } .po-new { grid-column: span 4; } .po-device { grid-column: span 3; } .po-worksec { grid-column: 1 / -1; }
.po .po-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1.5px solid var(--po-type); color: var(--po-type); font: 400 40px/.9 'Poster BN', sans-serif !important; letter-spacing: .01em !important; text-transform: uppercase !important; }
.po-more { position: absolute; right: 0; top: 14px; }
.po-recent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.po-proj { display: grid; gap: 3px; min-width: 0; transition: transform .2s, opacity .2s; } .po-proj:hover { transform: translateY(-3px); }
.po-proj-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sp-chip); margin-bottom: 4px; }
.po-proj-media .hub-thumb, .po-proj-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; aspect-ratio: auto; }
.po-proj b { font: 600 13px/1.2 var(--st-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-proj:nth-child(n+4) { display: none; }
.po-empty { grid-column: 1 / -1; font-size: 14px; opacity: 1; margin: 4px 0; }
.po-sizes { display: grid; grid-template-columns: 1fr; }
.po-size { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1.5px solid var(--st-line); transition: padding .2s, opacity .2s; }
.po-size:hover { padding-left: 8px; border-color: var(--po-type); }
.po-size b { font: 600 13.5px/1.2 var(--st-ui); }
.po-size:nth-child(n+8) { display: none; }
.po-stats { display: grid; gap: 0; margin-bottom: 12px; }
.po-stat { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 7px 0; border-bottom: 1.5px solid var(--st-line); }
.po-stat b { font: 400 26px/1 'Poster BN', sans-serif; color: var(--po-type); }
.po-stat span:last-child { grid-column: 1 / -1; opacity: 1; }
.po-work { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.po-work img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; filter: grayscale(1) contrast(1.1); transition: filter .3s, transform .3s; }
.po-work img:hover { filter: none; transform: translateY(-4px); }
.po-foot { grid-column: 1 / -1; border-top: 1.5px solid var(--po-type); padding-top: 12px; margin: 0; opacity: 1; }
body.xp-home .xp-recover { border-radius: 0; background: transparent; border: 1.5px solid var(--po-type); margin-bottom: 10px; }

@media (max-width: 1000px) { .po-continue, .po-new, .po-device { grid-column: 1 / -1; } .po-size:nth-child(n+8) { display: flex; } .po-sizes { grid-template-columns: 1fr 1fr; column-gap: 18px; } .po-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (max-width: 700px) {
  html:root body.studio-app.is-hub.is-hub.is-hub { margin: calc(6px + var(--po-safe-t)) calc(6px + var(--sar)) calc(6px + var(--po-safe-b)) calc(6px + var(--sal)); border-radius: 16px; min-height: calc(var(--app-h, 100dvh) - 12px - var(--po-safe-t) - var(--po-safe-b)); }
  :root body.studio-app.is-hub .studio-hub-header, :root body.studio-app.is-hub .studio-hub-header.xp-menubar { padding: 12px 13px 9px; }
  :root body.studio-app.is-hub .studio-hub-main { padding-left: 13px; padding-right: 13px; }
  :root body.studio-app.is-hub .studio-hub-footer { margin: 0 13px; }
  .po-hero { height: calc(var(--app-h, 100dvh) - 12px - var(--po-safe-t) - var(--po-safe-b)); padding: 12px 13px; border-radius: 16px; min-height: 480px; }
  .po-links, .po-nav .po-pill:not(.is-fill)[hidden] { display: none; }
  .po-big { font-size: min(35vw, 21vh); left: -3%; right: -3%; top: 1%; }
  .po-me { height: 74%; }
  .po-over { font-size: min(11.5vw, 7vh); left: 5%; transform: none; bottom: 5%; animation-name: po-rise-m; }
  @keyframes po-rise-m { from { opacity: 0; transform: translateY(18px); } }
  .po-num { top: 22.5%; font-size: 9vw; } .po-k1, .po-k3, .po-k4 { display: none; } .po-k2 { top: 23%; max-width: 120px; }
  .po-idx { grid-template-columns: 1fr; gap: 0; } .po-app { padding: 4px 0; min-height: 36px; align-items: center; } .po-app b { font-size: 28px; }
  .po-below { padding: 22px 13px 16px; gap: 28px 0; }
  .po-recent { grid-template-columns: 1fr 1fr; } .po-proj:nth-child(n+4) { display: grid; }
  .po-sizes { grid-template-columns: 1fr; } .po-size { min-height: 40px; align-items: center; }
  .po-work { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .po .po-h { font-size: 34px; }
  .po-mode { width: 30px; height: 30px; }
  .po-search-input { font-size: 16px; }
}
/* short and wide (phone landscape, small laptops): keep the hero composed */
@media (max-height: 520px) and (min-width: 701px) {
  .po-hero { min-height: 0; padding: 10px 16px; } .po-big { font-size: min(26vw, 70vh); } .po-over { font-size: min(4.4vw, 11vh); bottom: 10%; }
  .po-k3, .po-k4, .po-k1 { display: none; } .po-app b { font-size: 22px; } .po-app span { display: none; } .po-idx { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .po-big, .po-me, .po-over { animation: none; } }
/* precedence over the suite-wide sentence-case rule and the old home grid */
:root body.studio-app.is-hub :is(.po-mono, .po-pill, .po-big, .po-over, .po-app b, .po-h, .po-stat b) { text-transform: uppercase !important; }
:root body.studio-app.is-hub .po-logo { text-transform: none !important; }
:root body.xp-home .po-below > .po-continue { grid-column: span 5; } :root body.xp-home .po-below > .po-new { grid-column: span 4; } :root body.xp-home .po-below > .po-device { grid-column: span 3; }
@media (max-width: 1000px) { :root body.xp-home .po-below > :is(.po-continue, .po-new, .po-device) { grid-column: 1 / -1; } }
:root body.studio-app.is-hub :is(.po-mono, .po-over, .po-big, .po-app, .po-h, .po-links, .po-pill) * { text-transform: uppercase !important; }
:root body.xp-home.is-hub .studio-hub-main { margin: 0 !important; width: 100% !important; max-width: none !important; }
:is([data-poster="redroom"], [data-poster="ink"], [data-poster="lime"], [data-poster="mono"]) .po-over { font-size: min(3.5vw, 6.6vh); transform: translateX(-36%); color: #f1eee7; }
@media (max-width: 700px) { :is([data-poster="redroom"], [data-poster="ink"], [data-poster="lime"], [data-poster="mono"]) .po-over { font-size: min(8.4vw, 5.4vh); left: 50%; transform: translateX(-52%); animation: none; } }

/* hub navigation on every width: the app switcher stays, scrolling sideways on phones */
:root body.studio-app.is-hub .studio-hub-header { flex-wrap: wrap; row-gap: 8px; }
:root body.studio-app.is-hub .studio-hub-header .studio-switcher { display: flex !important; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
:root body.studio-app.is-hub .studio-hub-header .studio-switcher::-webkit-scrollbar { display: none; }
:root body.studio-app.is-hub .studio-hub-header-left { flex-wrap: wrap; row-gap: 8px; min-width: 0; max-width: 100%; }
:root body.studio-app.is-hub .studio-switcher-item { flex: none; height: 30px; }
@media (max-width: 760px) { :root body.studio-app.is-hub .studio-hub-header-left { order: 2; width: 100%; } :root body.studio-app.is-hub .studio-hub-header-left .studio-brand { display: none; } :root body.studio-app.is-hub .studio-hub-header-right { order: 1; width: 100%; justify-content: flex-end; } :root body.studio-app.is-hub .studio-hub-header-right::before { content: 'MADEBYEYAD®'; margin-right: auto; font: 400 15px/1 'Poster AB', sans-serif; letter-spacing: -.03em; color: var(--po-type); align-self: center; } }
/* ---- home: quick tools row */
:root body.xp-home .po-below > .po-toolsec { grid-column: 1 / -1; }
.po-quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 22px; }
.po-quick .po-size { display: grid; gap: 2px; border-bottom: 0; border-top: 1.5px solid var(--st-line); padding: 9px 0; }
.po-quick .po-size:nth-child(n) { display: grid; }
@media (max-width: 1000px) { .po-quick.po-quick { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .po-quick.po-quick { grid-template-columns: 1fr; } }
/* ---- Quick tools page */
.qt-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.qt-jump .po-pill { text-decoration: none; }
.qt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 30px; margin-top: 26px; }
.qt-tool { min-width: 0; border-top: 1.5px solid var(--po-type); padding-top: 10px; scroll-margin-top: 20px; }
.qt-tool.is-over { outline: 2px dashed var(--po-type); outline-offset: 6px; }
:root body.studio-app.is-hub .qt-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font-size: 44px; line-height: .9; }
.qt-p { margin: 0 0 14px; max-width: 60ch; color: var(--st-dim); font-size: 14px; line-height: 1.5; }
.qt-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 12px; }
.qt-field { display: grid; gap: 4px; min-width: 130px; }
.qt-field textarea { width: 100%; resize: vertical; }
.qt-field input[type="color"] { width: 54px; height: 34px; padding: 0; border: 1.5px solid var(--st-line-2); background: transparent; }
.qt-range { display: flex; align-items: center; gap: 8px; height: 34px; } .qt-range input { width: 150px; accent-color: var(--po-type); }
.qt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }
.qt-list { display: grid; }
.qt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1.5px solid var(--st-line); }
.qt-row b { font: 600 13px/1.2 var(--st-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qt-stage { display: grid; place-items: center; }
.qt-stage.is-checker:not(:empty) { background: repeating-conic-gradient(rgba(128, 128, 128, .28) 0% 25%, transparent 0% 50%) 50% / 22px 22px; padding: 10px; }
.qt-preview { max-width: 100%; max-height: 440px; display: block; }
.qt-swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 12px; }
.qt-swatch { height: 86px; border: 0; cursor: pointer; display: flex; align-items: flex-end; padding: 8px; font: 400 10.5px/1 'Poster MO', ui-monospace, monospace; text-transform: uppercase !important; }
.qt-qrgrid { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 18px; align-items: start; }
.qt-qr { width: 100%; height: auto; image-rendering: pixelated; border: 1.5px solid var(--st-line-2); }
.qt-tool:last-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .qt-grid { grid-template-columns: 1fr; } .qt-tool:last-child { grid-column: auto; } }
@media (max-width: 520px) { .qt-qrgrid { grid-template-columns: 1fr; } .qt-qr { max-width: 240px; } .qt-swatches { grid-template-columns: repeat(3, 1fr); } .qt-row { grid-template-columns: minmax(0, 1fr) auto; } .qt-row span { grid-column: 1 / -1; grid-row: 2; } :root body.studio-app.is-hub .qt-h { font-size: 36px; } }
/* ---- Moodboard */
.mb-bar, .mb-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 10px; }
.mb-selbar { margin-top: 0; padding: 8px 0; border-top: 1.5px solid var(--st-line); border-bottom: 1.5px solid var(--st-line); min-height: 48px; }
.mb-selbar[hidden] { display: flex !important; visibility: hidden; }
.mb-selbar[data-type="image"] :is(.mb-c-color, .mb-c-text), .mb-selbar[data-type="color"] .mb-c-text { display: none; }
.mb-sp { flex: 1; }
.mb-ctl { display: inline-flex; align-items: center; gap: 6px; }
.mb-ctl input[type="color"] { width: 38px; height: 30px; padding: 0; border: 1.5px solid var(--st-line-2); background: transparent; }
.mb-ctl .studio-range { width: 120px; accent-color: var(--po-type); }
.mb-stage { position: relative; margin-bottom: 26px; }
.mb-wrap { position: relative; width: 100%; overflow: hidden; outline: 1.5px solid var(--po-type); }
.mb-board { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
.mb-item { position: absolute; cursor: grab; touch-action: none; }
.mb-item:active { cursor: grabbing; }
.mb-item img { width: 100%; height: 100%; display: block; object-fit: fill; pointer-events: none; }
.mb-item.is-sel { outline: 3px solid #2f7bff; outline-offset: 2px; }
.mb-grip { display: none; position: absolute; right: -16px; bottom: -16px; width: 34px; height: 34px; border-radius: 50%; background: #2f7bff; border: 4px solid #fff; cursor: nwse-resize; }
.mb-item.is-sel .mb-grip { display: block; }
.mb-hex { position: absolute; left: 10px; bottom: 9px; font: 400 13px/1 'Poster MO', ui-monospace, monospace; text-transform: uppercase !important; pointer-events: none; }
.mb-text { line-height: .92; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; min-height: 1em; }
:root body.studio-app.is-hub .mb-text[style*="uppercase"], :root body.studio-app.is-hub .mb-text[style*="uppercase"] * { text-transform: uppercase !important; }
.mb-text[contenteditable="true"] { cursor: text; -webkit-user-select: text; user-select: text; background: rgba(47, 123, 255, .12); }
.mb-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; pointer-events: none; color: #6b6a66; padding: 20px; }
.mb-empty b { font: 400 54px/.9 'Poster BN', sans-serif; text-transform: uppercase; }
@media (pointer: coarse) { .mb-grip { width: 44px; height: 44px; right: -22px; bottom: -22px; } }
.po-quick { grid-template-columns: repeat(6, minmax(0, 1fr)); }
:root body.studio-app.is-hub .mb-bar select.studio-input, :root body.studio-app.is-hub .mb-selbar select.studio-input { width: auto; min-width: 130px; height: 34px; }

/* quick tools — AI upscale (06) */
.qt-tool#upscale:last-child { grid-column: auto; }
.qt-upinfo { margin: 0 0 10px; max-width: 70ch; line-height: 1.5; }
.qt-upstatus { margin: 0 0 10px; min-height: 1.2em; }
.qt-bar { height: 6px; margin: 0 0 10px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--po-type); }
.qt-bar i { display: block; height: 100%; background: var(--po-type); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s linear; }
.qt-compare { position: relative; width: 100%; overflow: hidden; border: 1.5px solid var(--st-line-2); cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; background: repeating-conic-gradient(rgba(128, 128, 128, .28) 0% 25%, transparent 0% 50%) 50% / 22px 22px; }
.qt-compare canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.qt-cmp-knob { position: absolute; top: 0; bottom: 0; width: 44px; margin-left: -22px; display: grid; place-items: center; outline: none; }
.qt-cmp-knob::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }
.qt-cmp-knob span { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--po-type); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, .35); }
.qt-cmp-knob span::before, .qt-cmp-knob span::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px; border: solid var(--po-on); border-width: 2px 0 0 2px; }
.qt-cmp-knob span::before { left: 8px; transform: rotate(-45deg); } .qt-cmp-knob span::after { right: 8px; transform: rotate(135deg); }
.qt-cmp-knob:focus-visible span { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--po-type); }
.qt-cmp-tag { position: absolute; top: 8px; padding: 4px 7px; background: rgba(0, 0, 0, .6); color: #fff; pointer-events: none; }
.qt-cmp-tag.is-l { left: 8px; } .qt-cmp-tag.is-r { right: 8px; }
#upscale [hidden] { display: none !important; }
.po-quick { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 16px; }

/* ---- Attention */
.att-note { color: var(--st-dim); margin: 6px 0 0; max-width: 86ch; }
.att-bar1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.att-file { margin-left: auto; color: var(--st-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.att-ws { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); gap: 24px; align-items: start; margin-bottom: 28px; }
.att-left { min-width: 0; position: -webkit-sticky; position: sticky; top: 10px; }
.att-right { min-width: 0; border-top: 1.5px solid var(--po-type); }
.att-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.att-row.is-off, .att-opac.is-off { opacity: .4; pointer-events: none; }
.att-row2 { margin: 8px 0 10px; justify-content: space-between; gap: 8px 14px; }
.att-page .po-pill { -webkit-user-select: none; user-select: none; touch-action: manipulation; white-space: nowrap; flex: none; }
.att-page .po-pill[aria-pressed="true"] { background: var(--po-type); color: var(--po-on); }
.att-opac { display: inline-flex; align-items: center; gap: 8px; }
.att-opac input { width: 120px; accent-color: var(--po-type); }
.att-stage { position: relative; min-height: 360px; display: grid; place-items: center; outline: 1.5px solid var(--po-type); background: color-mix(in srgb, var(--po-text) 7%, var(--po-paper)); overflow: hidden; }
.att-stage:not(.has-design) .att-frame, .att-stage.has-design .att-empty { display: none; }
.att-stage.is-over { outline: 3px dashed var(--po-type); outline-offset: 4px; }
.att-frame { line-height: 0; }
.att-canvas { display: block; touch-action: manipulation; cursor: crosshair; -webkit-user-select: none; user-select: none; }
.att-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 40px 20px; max-width: 440px; color: var(--po-text); }
.att-empty b { font: 400 72px/.88 'Poster BN', 'Poster AB', sans-serif; color: var(--po-type); }
.att-empty span { font-size: 14px; line-height: 1.5; opacity: 1; }
.att-empty-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.att-readout { position: absolute; left: 8px; bottom: 8px; padding: 5px 8px; background: rgba(0, 0, 0, .72); color: #fff; pointer-events: none; }
.att-prog { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: var(--po-paper); border-top: 1.5px solid var(--po-type); display: grid; gap: 6px; color: var(--po-text); }
.att-prog[hidden] { display: none; }
.att-prog-bar { height: 6px; box-shadow: inset 0 0 0 1.5px var(--po-type); overflow: hidden; }
.att-prog-bar i { display: block; height: 100%; background: var(--po-type); transform-origin: 0 50%; transform: scaleX(0); transition: transform .2s linear; }
.att-tabs { display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1.5px solid var(--st-line); }
.att-tabs::-webkit-scrollbar { display: none; }
.att-tab { flex: 1 0 auto; height: 44px; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--po-text); font: 400 23px/1 'Poster BN', sans-serif; letter-spacing: .02em; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.att-tab:hover { color: var(--po-type); }
.att-tab.is-on { color: var(--po-type); border-bottom-color: var(--po-type); }
.att-body { padding-top: 14px; color: var(--po-text); }
.att-sec { border-top: 1.5px solid var(--st-line); padding: 12px 0 14px; }
:root body.studio-app.is-hub .att-h { display: flex; gap: 8px; align-items: baseline; font-size: 28px; line-height: 1; margin: 0 0 10px; }
.att-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: center; margin-bottom: 4px; }
.att-score { font: 400 136px/.8 'Poster BN', sans-serif; color: var(--po-type); letter-spacing: -.01em; }
.att-grade { display: block; font: 400 42px/1 'Poster BN', sans-serif; color: var(--po-type); margin: 4px 0; }
.att-sum { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.att-dim { color: var(--st-dim); font-size: 13.5px; line-height: 1.5; margin: 0 0 8px; }
.att-warn { color: var(--po-type); font-weight: 700; }
.att-first { list-style: none; margin: 0; padding: 0; display: grid; }
.att-first li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1.5px solid var(--st-line); font-size: 14px; }
.att-first li b { font: 400 30px/1 'Poster BN', sans-serif; color: var(--po-type); }
.att-bars { display: grid; gap: 8px; }
.att-bar { display: grid; grid-template-columns: 112px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 13.5px; }
.att-bar i { display: block; height: 8px; background: var(--st-line); overflow: hidden; }
.att-bar i b { display: block; height: 100%; background: var(--po-type); transform-origin: 0 50%; }
.att-bar em { font: 400 24px/1 'Poster BN', sans-serif; font-style: normal; text-align: right; color: var(--po-type); }
.att-issues { display: grid; }
.att-issue { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 11px 6px 11px 0; border-bottom: 1.5px solid var(--st-line); cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; transition: background .15s; }
.att-issue:hover, .att-issue:focus-visible { background: var(--sp-chip); }
.att-issue.is-sel { background: var(--sp-chip); box-shadow: inset 3px 0 0 var(--po-type); padding-left: 8px; }
.att-issue.is-done .att-issue-title { text-decoration: line-through; opacity: .6; }
.att-issue-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 5px; }
.att-loc { opacity: 1; }
.att-issue:not(.has-box) .att-loc { display: none; }
.att-issue-title { display: block; font: 700 15px/1.3 var(--st-ui); }
.att-fix, .att-why { margin: 5px 0 0; font-size: 13.5px; line-height: 1.45; }
.att-why { color: var(--st-dim); }
.att-tag { display: inline-block; font: 400 10.5px/1 'Poster MO', ui-monospace, monospace; letter-spacing: .04em; padding: 4px 6px; box-shadow: inset 0 0 0 1.5px var(--po-type); color: var(--po-text); }
:root body.studio-app.is-hub .att-tag, :root body.studio-app.is-hub .att-tab, :root body.studio-app.is-hub .att-grade, :root body.studio-app.is-hub .att-empty b { text-transform: uppercase !important; }
.att-tag.is-high { background: var(--po-type); color: var(--po-on); box-shadow: none; }
.att-tag.is-low, .att-tag.is-ok { box-shadow: inset 0 0 0 1.5px var(--st-line-2); }
.att-check { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--po-type); }
.att-good { margin: 0; padding-left: 18px; line-height: 1.6; font-size: 14px; }
.att-disc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.att-dis { border-bottom: 1.5px solid var(--st-line); padding: 8px 0; font-size: 13.5px; min-width: 0; }
.att-dis-h { display: flex; justify-content: space-between; align-items: baseline; }
.att-dis-h em { font: 400 26px/1 'Poster BN', sans-serif; font-style: normal; color: var(--po-type); }
.att-dis p { margin: 4px 0 0; line-height: 1.4; }
.att-answer { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 12.5px/1.55 'Poster MO', ui-monospace, monospace; background: var(--sp-chip); padding: 12px; margin: 10px 0 0; color: var(--po-text); }
.att-nine { display: grid; grid-template-columns: repeat(3, 46px); gap: 3px; margin-bottom: 8px; }
.att-nine div { aspect-ratio: 1; display: grid; place-items: center; font: 400 11px/1 'Poster MO', ui-monospace, monospace; }
.att-pal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.att-pal div { display: grid; gap: 3px; min-width: 0; }
.att-sw { display: inline-block; width: 14px; height: 14px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .25); vertical-align: middle; }
.att-pal .att-sw { width: 100%; height: 44px; }
.att-facts { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; }
.att-facts dt, .att-facts dd { margin: 0; padding: 7px 0; border-bottom: 1.5px solid var(--st-line); font-size: 13.5px; }
.att-facts dd { text-align: right; font-weight: 600; padding-left: 10px; }
.att-texts { display: grid; }
.att-tcard { padding: 10px 0; border-bottom: 1.5px solid var(--st-line); cursor: pointer; outline: none; }
.att-tcard:hover, .att-tcard:focus-visible { background: var(--sp-chip); }
.att-tcard-h { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.att-tcard-h b { font: 400 28px/1 'Poster BN', sans-serif; color: var(--po-type); }
.att-metas { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.att-ink { display: inline-flex; gap: 6px; align-items: center; }
.att-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.att-list { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.att-sec > p { font-size: 14px; line-height: 1.5; }
.att-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-bottom: 10px; }
.att-tpl { display: grid; gap: 4px; justify-items: start; padding: 6px; border: 1.5px solid var(--st-line-2); background: transparent; color: var(--po-text); cursor: pointer; text-align: left; font: 600 12.5px/1.2 var(--st-ui); -webkit-tap-highlight-color: transparent; }
.att-tpl svg { width: 100%; height: 96px; display: block; }
.att-tpl.is-on { border-color: var(--po-type); box-shadow: inset 0 0 0 1.5px var(--po-type); }
.att-form { display: grid; gap: 12px; margin-bottom: 14px; }
.att-field { display: grid; gap: 5px; }
:root body.studio-app.is-hub .att-field .studio-input { width: 100%; min-height: 40px; padding: 8px 10px; font: 400 14px/1.4 var(--st-ui); -webkit-user-select: text; user-select: text; }
.att-field textarea.studio-input { resize: vertical; }
.att-toggle { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.att-copyfix { display: grid; }
.att-cf { padding: 8px 0; border-bottom: 1.5px solid var(--st-line); min-width: 0; }
.att-cf p { margin: 3px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.att-cf del { opacity: .65; }
.att-cf ins { text-decoration: none; font-weight: 700; color: var(--po-type); }
.att-ab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.att-abfig { margin: 0; display: grid; gap: 6px; min-width: 0; align-content: start; }
.att-thumb { width: 100%; height: auto; display: block; outline: 1.5px solid var(--st-line-2); }
.att-abfig figcaption { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.att-abfig figcaption b { font: 400 34px/1 'Poster BN', sans-serif; color: var(--po-type); }
.att-abfig figcaption .po-mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.att-verdict { font: 700 16px/1.4 var(--st-ui); margin: 0 0 10px; }
.att-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 10px; }
.att-table th, .att-table td { text-align: left; padding: 7px 4px; border-bottom: 1.5px solid var(--st-line); font-weight: 400; }
.att-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.att-table thead th { font: 400 10.5px/1 'Poster MO', ui-monospace, monospace; }
.att-table tr.is-a td:nth-child(2), .att-table tr.is-b td:nth-child(3), .att-table td:last-child { color: var(--po-type); font-weight: 700; }
.att-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.att-size { display: grid; gap: 4px; justify-items: start; align-content: start; padding: 8px; border: 1.5px solid var(--st-line-2); background: transparent; color: var(--po-text); cursor: pointer; text-align: left; min-width: 0; -webkit-tap-highlight-color: transparent; }
.att-size:hover, .att-size.is-want { border-color: var(--po-type); }
.att-size-img { width: 100%; height: 96px; display: grid; place-items: center; background: #0c1018; overflow: hidden; }
.att-size-img canvas { width: auto; height: auto; max-width: 100%; max-height: 96px; display: block; }
.att-size b { font: 600 13px/1.2 var(--st-ui); }
.att-size .po-mono { line-height: 1.3; }
.att-none { padding: 18px 0; }
.att-none p { margin: 0 0 10px; font-size: 14px; }
@media (max-width: 1100px) { .att-ws { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: 18px; } .att-disc { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .att-ws { grid-template-columns: 1fr; }
  .att-left { position: static; }
  .att-modes, .att-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -13px; padding-right: 13px; }
  .att-modes::-webkit-scrollbar, .att-chips::-webkit-scrollbar { display: none; }
  .att-row2 { display: grid; grid-template-columns: minmax(0, 1fr); }
  .att-stage { min-height: 260px; }
  .att-file { margin-left: 0; width: 100%; max-width: none; order: 9; }
}
@media (max-width: 700px) {
  :root body.studio-app.is-hub .att-field .studio-input { font-size: 16px; }
  .att-score { font-size: 112px; }
  .att-tab { font-size: 20px; padding: 0 5px; }
  .att-empty b { font-size: 56px; }
  .att-bar1 .studio-btn { flex: 1 1 auto; }
  .att-pal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .att-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .att-first li { grid-template-columns: 26px minmax(0, 1fr); } .att-first li .po-mono { grid-column: 2; }
}
@media (pointer: coarse) { .att-page .po-pill { height: 40px; padding: 0 14px; } .att-tab { height: 46px; } }
@media (max-width: 400px) { .att-tab { font-size: 18px; padding: 0 4px; } }

/* (05) MADE BY EYAD — the store inside the studio */
:root body.xp-home .po-below > .po-shopsec { grid-column: 1 / -1; }
.po-quick.po-shoprooms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.po-recent.po-shop { margin-top: 18px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.po-shop .po-proj:nth-child(n) { display: grid; }
.po-shop .po-proj-media { aspect-ratio: 4 / 5; background: #111; }
@media (max-width: 1000px) { .po-recent.po-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .po-quick.po-shoprooms { grid-template-columns: 1fr; } .po-recent.po-shop { grid-template-columns: 1fr 1fr; } }

/* ---- Settings page (set agent) — keep this block at the END of the file.
   Poster rows: label + hint left, control right; phone first. Colours only from the --po-* / --st-* tokens. */
html:root body.studio-app.is-hub .ps-page { padding-bottom: 36px; }
html:root body.studio-app.is-hub .ps-page .is-filtered, html:root body.studio-app.is-hub .ps-page [hidden] { display: none !important; }
html:root body.studio-app.is-hub .ps-head .studio-page-title { margin-bottom: 6px; }
html:root body.studio-app.is-hub .ps-intro { margin: 0 0 16px; color: var(--st-dim); font: 400 15px/1.45 var(--st-ui); }
html:root body.studio-app.is-hub .ps-search { display: flex; align-items: center; gap: 12px; max-width: 520px; height: 46px; padding: 0 14px; border: 1.5px solid var(--po-type); color: var(--po-type); border-radius: 999px; margin-bottom: 26px; cursor: text; }
html:root body.studio-app.is-hub .ps-search-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--po-text); font: 400 16px/1 var(--st-ui); -webkit-appearance: none; appearance: none; -webkit-user-select: text; user-select: text; }
html:root body.studio-app.is-hub .ps-search-input::placeholder { color: var(--st-faint); }
html:root body.studio-app.is-hub .ps-search:focus-within { box-shadow: 0 0 0 2px var(--po-type); }
html:root body.studio-app.is-hub .ps-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 44px; align-items: start; }
html:root body.studio-app.is-hub .ps-side { position: -webkit-sticky; position: sticky; top: 16px; }
html:root body.studio-app.is-hub .ps-nav { display: grid; border-top: 1.5px solid var(--po-type); }
html:root body.studio-app.is-hub .ps-nav-a { display: flex; align-items: baseline; gap: 10px; padding: 8px 0 6px; border-bottom: 1.5px solid var(--st-line); color: var(--po-text); text-decoration: none; font: 400 26px/1 'Poster BN', sans-serif; text-transform: uppercase !important; transition: padding .15s, color .15s; -webkit-tap-highlight-color: transparent; }
html:root body.studio-app.is-hub .ps-nav-a > span:last-child { text-transform: uppercase !important; }
html:root body.studio-app.is-hub .ps-nav-a:hover, html:root body.studio-app.is-hub .ps-nav-a.is-on { color: var(--po-type); padding-left: 8px; }
html:root body.studio-app.is-hub .ps-main { min-width: 0; max-width: 900px; }
html:root body.studio-app.is-hub .ps-empty { font: 400 40px/1 'Poster BN', sans-serif; color: var(--po-type); text-transform: uppercase !important; margin: 0 0 30px; }
/* sections */
html:root body.studio-app.is-hub .ps-sec { border-top: 1.5px solid var(--po-type); padding-top: 10px; margin: 0 0 48px; scroll-margin-top: 16px; }
html:root body.studio-app.is-hub h2.ps-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; font: 400 clamp(44px, 6vw, 64px)/.9 'Poster BN', sans-serif !important; color: var(--po-type); }
html:root body.studio-app.is-hub h2.ps-h > span { text-transform: uppercase !important; }
html:root body.studio-app.is-hub .ps-n { position: relative; top: -.2em; }
html:root body.studio-app.is-hub .ps-lede { margin: 0 0 10px; max-width: 62ch; color: var(--st-dim); font: 400 14.5px/1.5 var(--st-ui); }
html:root body.studio-app.is-hub h3.ps-sub { margin: 26px 0 0; padding: 0 0 6px; color: var(--po-type); font: 400 11px/1.4 'Poster MO', ui-monospace, monospace !important; letter-spacing: .06em !important; text-transform: uppercase !important; border-bottom: 1.5px solid var(--po-type); }
/* rows */
html:root body.studio-app.is-hub .ps-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 22px; min-height: 58px; padding: 12px 0; border-bottom: 1.5px solid var(--st-line); }
html:root body.studio-app.is-hub .ps-row.ps-free { display: block; }
html:root body.studio-app.is-hub .ps-label { display: block; color: var(--po-text); font: 600 15px/1.3 var(--st-ui); }
html:root body.studio-app.is-hub .ps-hint { margin: 3px 0 0; max-width: 60ch; color: var(--st-dim); font: 400 13px/1.45 var(--st-ui); }
html:root body.studio-app.is-hub .ps-row-ctl { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
html:root body.studio-app.is-hub .ps-saved { position: absolute; right: 0; bottom: -15px; color: var(--po-type); opacity: 0; transition: opacity .2s; pointer-events: none; font-size: 9.5px !important; }
html:root body.studio-app.is-hub .ps-row.is-saved .ps-saved { opacity: 1; }
html:root body.studio-app.is-hub .ps-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
html:root body.studio-app.is-hub .ps-now { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; padding: 10px 0 8px; color: var(--po-text); }
html:root body.studio-app.is-hub .ps-now > :first-child { color: var(--po-type); }
html:root body.studio-app.is-hub .ps-page .po-pill { height: 40px; padding: 0 16px; border-radius: 999px; justify-content: center; text-decoration: none; white-space: nowrap; }
html:root body.studio-app.is-hub .ps-page .po-pill.is-fill { background: var(--po-type); color: var(--po-on); }
html:root body.studio-app.is-hub .ps-page .po-pill.is-danger { border-style: dashed; }
html:root body.studio-app.is-hub .ps-page .po-pill.is-danger:hover { border-style: solid; }
html:root body.studio-app.is-hub .ps-page .po-pill:disabled { cursor: default; }
html:root body.studio-app.is-hub .ps-page .po-pill:disabled:hover { background: transparent; color: var(--po-text); }
html:root body.studio-app.is-hub .ps-page .po-pill.is-fill:disabled:hover { background: var(--po-type); color: var(--po-on); }
/* controls */
html:root body.studio-app.is-hub .ps-switch { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 54px; height: 32px; margin: 0; border: 1.5px solid var(--po-type); border-radius: 999px; background: transparent; cursor: pointer; transition: background .15s; -webkit-tap-highlight-color: transparent; }
html:root body.studio-app.is-hub .ps-switch::after { content: ''; position: absolute; left: 4px; top: 50%; width: 21px; height: 21px; margin-top: -10.5px; border-radius: 50%; background: var(--po-type); transition: transform .18s cubic-bezier(.2, .8, .2, 1), background .15s; }
html:root body.studio-app.is-hub .ps-switch:checked { background: var(--po-type); }
html:root body.studio-app.is-hub .ps-switch:checked::after { background: var(--po-on); transform: translateX(22px); }
html:root body.studio-app.is-hub .ps-switch:focus-visible, html:root body.studio-app.is-hub .ps-seg-btn:focus-visible, html:root body.studio-app.is-hub .ps-mode:focus-visible, html:root body.studio-app.is-hub .ps-accent:focus-visible { outline: 2px solid var(--po-type); outline-offset: 3px; }
html:root body.studio-app.is-hub .ps-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1.5px solid var(--po-type); border-radius: 999px; max-width: 100%; }
html:root body.studio-app.is-hub .ps-seg-btn { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--po-text); font: 600 13px/1 var(--st-ui); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s; }
html:root body.studio-app.is-hub .ps-seg-btn:hover { background: var(--sp-chip); }
html:root body.studio-app.is-hub .ps-seg-btn[aria-checked="true"] { background: var(--po-type); color: var(--po-on); }
html:root body.studio-app.is-hub :is(.ps-select, .ps-num) { height: 40px; border: 1.5px solid var(--st-line-2); border-radius: 8px; background-color: transparent; color: var(--po-text); font: 500 15px/1 var(--st-ui); padding: 0 10px; margin: 0; }
html:root body.studio-app.is-hub .ps-select { -webkit-appearance: none; appearance: none; min-width: 168px; max-width: 100%; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
html:root body.studio-app.is-hub .ps-select option { background: var(--po-paper); color: var(--po-text); }
html:root body.studio-app.is-hub .ps-num { width: 104px; text-align: right; -webkit-user-select: text; user-select: text; }
html:root body.studio-app.is-hub :is(.ps-select, .ps-num):focus { outline: 0; border-color: var(--po-type); box-shadow: 0 0 0 1px var(--po-type); }
html:root body.studio-app.is-hub .ps-numwrap { display: inline-flex; align-items: center; gap: 8px; }
html:root body.studio-app.is-hub .ps-unit { min-width: 18px; color: var(--st-dim); }
html:root body.studio-app.is-hub .ps-accents { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
html:root body.studio-app.is-hub .ps-accent { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .18); }
html:root body.studio-app.is-hub .ps-accent[aria-checked="true"] { outline: 2.5px solid var(--po-text); outline-offset: 2px; }
/* colour modes: each swatch is drawn in its own mode's tokens */
html:root body.studio-app.is-hub .ps-modes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 8px 0 4px; }
html:root body.studio-app.is-hub .ps-mode { display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; box-shadow: 0 0 0 1.5px var(--st-line-2); transition: transform .15s; -webkit-tap-highlight-color: transparent; }
html:root body.studio-app.is-hub .ps-mode:hover { transform: translateY(-2px); }
html:root body.studio-app.is-hub .ps-mode:active { transform: scale(.97); }
html:root body.studio-app.is-hub .ps-mode[aria-checked="true"] { box-shadow: 0 0 0 1.5px var(--po-paper), 0 0 0 4.5px var(--po-type); }
html:root body.studio-app.is-hub .ps-mode-sw { display: grid; grid-template-rows: 1fr auto; min-height: 112px; padding: 10px 11px 9px; border-radius: 8px; background: var(--po-paper); color: var(--po-type); box-shadow: inset 0 0 0 5px var(--po-frame); overflow: hidden; }
html:root body.studio-app.is-hub .ps-mode-aa { font: 400 38px/.9 'Poster AB', Impact, sans-serif; letter-spacing: -.06em; }
html:root body.studio-app.is-hub .ps-mode-name { display: grid; gap: 1px; min-width: 0; }
html:root body.studio-app.is-hub .ps-mode-name b { font: 400 21px/1 'Poster BN', sans-serif; text-transform: uppercase !important; white-space: nowrap; }
html:root body.studio-app.is-hub .ps-mode-name i { font: 400 9.5px/1.3 'Poster MO', ui-monospace, monospace; font-style: normal; text-transform: uppercase !important; letter-spacing: .04em; color: var(--po-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:root body.studio-app.is-hub .ps-mode[aria-checked="true"] .ps-mode-aa::after { content: ' ✓'; font: 400 16px/1 var(--st-ui); vertical-align: top; letter-spacing: 0; }
/* the little app-window preview */
html:root body.studio-app.is-hub .ps-pvwrap { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1.5px solid var(--st-line); }
html:root body.studio-app.is-hub .ps-pv-note { color: var(--st-dim); }
.ps-preview { --pv-bg: var(--po-paper); --pv-canvas: color-mix(in srgb, var(--po-paper) 88%, #000); --pv-line: color-mix(in srgb, var(--po-ink, var(--po-text)) 35%, transparent); --pv-acc: var(--po-type); --pv-art: var(--po-type);
  width: 240px; height: 140px; flex: none; display: grid; grid-template-rows: 20px 1fr; border-radius: 8px; overflow: hidden; background: var(--pv-bg); box-shadow: 0 0 0 1.5px var(--pv-line); }
.ps-preview[data-look="theme"][data-ws="dark"] { --pv-canvas: color-mix(in srgb, var(--po-paper) 80%, #000); }
.ps-preview[data-look="mbe"] { --pv-bg: #0b0b0b; --pv-canvas: #1a1a1a; --pv-line: rgba(236, 233, 226, .2); --pv-acc: #f4260f; --pv-art: #f4260f; }
.ps-preview[data-look="graphite"] { --pv-bg: #2c2c2c; --pv-canvas: #1f1f1f; --pv-line: rgba(217, 217, 217, .2); --pv-acc: #378ef0; --pv-art: #d9d9d9; }
.ps-preview[data-look="studio"] { --pv-bg: #1d1d24; --pv-canvas: #121217; --pv-line: rgba(255, 255, 255, .16); --pv-acc: #d02b2a; --pv-art: #ecebe6; }
.ps-preview[data-look="studio"][data-ws="light"] { --pv-bg: #f4f4f6; --pv-canvas: #e2e2e7; --pv-line: rgba(0, 0, 0, .16); --pv-art: #1d1d24; }
.ps-pv-bar { display: flex; align-items: center; gap: 4px; padding: 0 8px; border-bottom: 1.5px solid var(--pv-line); }
.ps-pv-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--pv-line); }
.ps-pv-bar span { flex: 1; height: 4px; margin-left: 10px; border-radius: 4px; background: var(--pv-line); max-width: 90px; }
.ps-pv-body { display: grid; grid-template-columns: 22px minmax(0, 1fr) 56px; min-height: 0; }
.ps-pv-tools { display: grid; align-content: start; justify-items: center; gap: 5px; padding-top: 7px; border-right: 1.5px solid var(--pv-line); }
.ps-pv-tools i { width: 11px; height: 11px; border-radius: 4px; background: var(--pv-line); }
.ps-pv-tools i.is-on { background: var(--pv-acc); }
.ps-pv-canvas { display: grid; place-items: center; background: var(--pv-canvas); }
.ps-pv-canvas b { width: 46%; aspect-ratio: 4 / 5; background: var(--pv-art); border-radius: 4px; }
.ps-pv-panel { display: grid; align-content: start; gap: 6px; padding: 8px 7px; border-left: 1.5px solid var(--pv-line); }
.ps-pv-panel i { height: 5px; border-radius: 4px; background: var(--pv-line); }
.ps-pv-panel i:first-child { background: var(--pv-acc); width: 60%; }
/* saving, offline, storage, models, about */
html:root body.studio-app.is-hub .ps-wheres { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
html:root body.studio-app.is-hub .ps-where { border-top: 1.5px solid var(--st-line); padding: 9px 0 4px; }
html:root body.studio-app.is-hub .ps-where.is-here { border-top-color: var(--po-type); }
html:root body.studio-app.is-hub .ps-where b { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font: 600 14px/1.3 var(--st-ui); color: var(--po-text); }
html:root body.studio-app.is-hub .ps-where p { margin: 4px 0 0; color: var(--st-dim); font: 400 13px/1.45 var(--st-ui); }
html:root body.studio-app.is-hub .ps-tag { padding: 3px 6px 2px; background: var(--po-type); color: var(--po-on); font-size: 9px !important; }
html:root body.studio-app.is-hub .ps-big-status { margin: 4px 0 10px; color: var(--po-type); font: 400 34px/1 'Poster BN', sans-serif; text-transform: uppercase !important; }
html:root body.studio-app.is-hub .ps-meter { height: 6px; background: var(--sp-chip); overflow: hidden; }
html:root body.studio-app.is-hub .ps-meter i { display: block; width: 0; height: 100%; background: var(--po-type); transition: width .3s; }
html:root body.studio-app.is-hub .ps-meter + .po-mono { display: block; margin-top: 8px; color: var(--st-dim); }
html:root body.studio-app.is-hub .ps-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; }
html:root body.studio-app.is-hub .ps-actions .po-mono { color: var(--st-dim); }
html:root body.studio-app.is-hub .ps-sec > .ps-rows > .ps-hint { margin-top: 10px; }
html:root body.studio-app.is-hub .ps-models-host > .ps-hint { padding: 12px 0; }
html:root body.studio-app.is-hub .ps-mmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 5px; color: var(--st-dim); }
html:root body.studio-app.is-hub .ps-model[data-state="on"] .ps-mstate { color: var(--po-type); }
html:root body.studio-app.is-hub .ps-model[data-state="on"] .ps-mstate::before { content: '● '; }
html:root body.studio-app.is-hub .ps-model[data-state="na"] .ps-label, html:root body.studio-app.is-hub .ps-model[data-state="missing"] .ps-label { opacity: .6; }
html:root body.studio-app.is-hub .ps-mbtn { min-width: 112px; }
html:root body.studio-app.is-hub .ps-about { padding: 14px 0; border-bottom: 1.5px solid var(--st-line); }
html:root body.studio-app.is-hub .ps-about-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
html:root body.studio-app.is-hub .ps-about-v b { font: 400 30px/1 'Poster AB', Impact, sans-serif; letter-spacing: -.04em; color: var(--po-type); }
html:root body.studio-app.is-hub .ps-about p { margin: 10px 0 0; max-width: 62ch; color: var(--po-text); font: 400 15px/1.5 var(--st-ui); }
html:root body.studio-app.is-hub .ps-keys summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
html:root body.studio-app.is-hub .ps-keys summary::-webkit-details-marker { display: none; }
html:root body.studio-app.is-hub .ps-keys summary::after { content: '+'; font: 400 22px/1 var(--st-ui); color: var(--po-type); }
html:root body.studio-app.is-hub .ps-keys[open] summary::after { content: '−'; }
html:root body.studio-app.is-hub .ps-keys > :not(summary) { margin-top: 10px; overflow-x: auto; max-width: 100%; }
/* tablets & small laptops: the index becomes a sticky row of pills */
@media (max-width: 1000px) {
  html:root body.studio-app.is-hub .ps-modes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html:root body.studio-app.is-hub .ps-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  html:root body.studio-app.is-hub .ps-side { top: 0; z-index: 6; margin: 0 -20px 18px; padding: 8px 20px; background: var(--po-paper); border-bottom: 1.5px solid var(--po-type); }
  html:root body.studio-app.is-hub .ps-nav { display: flex; gap: 6px; overflow-x: auto; border: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  html:root body.studio-app.is-hub .ps-nav::-webkit-scrollbar { display: none; }
  html:root body.studio-app.is-hub .ps-nav-a { flex: none; align-items: center; height: 38px; padding: 0 13px; border: 1.5px solid var(--st-line-2); border-radius: 999px; font: 400 10.5px/1 'Poster MO', ui-monospace, monospace; letter-spacing: .05em; gap: 6px; }
  html:root body.studio-app.is-hub .ps-nav-a > .po-mono { opacity: 1; }
  html:root body.studio-app.is-hub .ps-nav-a:hover, html:root body.studio-app.is-hub .ps-nav-a.is-on { padding-left: 13px; }
  html:root body.studio-app.is-hub .ps-nav-a.is-on { background: var(--po-type); border-color: var(--po-type); color: var(--po-on); }
  html:root body.studio-app.is-hub .ps-nav-a.is-on > .po-mono { opacity: 1; }
  html:root body.studio-app.is-hub .ps-sec { scroll-margin-top: 70px; }
}
/* phones */
@media (max-width: 700px) {
  html:root body.studio-app.is-hub .ps-side { margin: 0 -13px 16px; padding: 8px 13px; }
  html:root body.studio-app.is-hub .ps-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html:root body.studio-app.is-hub .ps-mode-sw { min-height: 100px; padding: 9px 9px 8px; }
  html:root body.studio-app.is-hub .ps-mode-aa { font-size: 32px; }
  html:root body.studio-app.is-hub .ps-mode-name b { font-size: 19px; }
  html:root body.studio-app.is-hub .ps-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 0; }
  html:root body.studio-app.is-hub .ps-row.is-inline, html:root body.studio-app.is-hub .ps-row.ps-model { grid-template-columns: minmax(0, 1fr) auto; }
  html:root body.studio-app.is-hub .ps-row-ctl { justify-content: flex-start; }
  html:root body.studio-app.is-hub .ps-row:not(.is-inline):not(.ps-model) .ps-saved { right: auto; left: 0; bottom: -14px; }
  html:root body.studio-app.is-hub .ps-row.ps-model { align-items: start; }
  html:root body.studio-app.is-hub .ps-mbtn { min-width: 0; }
  html:root body.studio-app.is-hub .ps-stack { align-items: flex-start; }
  html:root body.studio-app.is-hub .ps-seg { display: flex; width: 100%; }
  html:root body.studio-app.is-hub .ps-seg-btn { flex: 1 1 0; min-width: 0; height: 40px; padding: 0 8px; font-size: 14px; }
  html:root body.studio-app.is-hub :is(.ps-select, .ps-num) { height: 44px; font-size: 16px; }
  html:root body.studio-app.is-hub .ps-select { width: 100%; }
  html:root body.studio-app.is-hub .ps-num { width: 128px; }
  html:root body.studio-app.is-hub .ps-accents { justify-content: flex-start; }
  html:root body.studio-app.is-hub .ps-accent { width: 36px; height: 36px; }
  html:root body.studio-app.is-hub .ps-page .po-pill { height: 44px; }
  html:root body.studio-app.is-hub .ps-wheres { grid-template-columns: minmax(0, 1fr); }
  html:root body.studio-app.is-hub .ps-preview { width: 100%; max-width: 300px; height: 160px; }
}
@media (pointer: coarse) { html:root body.studio-app.is-hub .ps-seg-btn { height: 40px; } html:root body.studio-app.is-hub .ps-page .po-pill { height: 44px; } }
/* phone landscape: short screens keep the index row slim */
@media (max-height: 520px) and (min-width: 701px) { html:root body.studio-app.is-hub .ps-side { padding-top: 6px; padding-bottom: 6px; } html:root body.studio-app.is-hub .ps-nav-a { height: 36px; } }

/* Attention ▸ Ask: free-text question + AI model settings */
.att-ai { display: grid; gap: 8px; margin-top: 10px; }
.att-ai .att-row { display: flex; gap: 8px; flex-wrap: wrap; } .att-ai .att-row .studio-input { flex: 1 1 220px; min-width: 0; }
.att-ai details > .att-stack { display: grid; gap: 8px; margin-top: 8px; max-width: 420px; }
.att-ai summary { cursor: pointer; opacity: 1; }

/* Attention ▸ Log and AI review */
.att-entries { display: grid; gap: 10px; margin-top: 10px; }
.att-entry { border: 1.5px solid currentColor; border-radius: 12px; padding: 10px 12px; } .att-entry.is-cur { box-shadow: 0 0 0 2px var(--po-type); }
.att-ehead { display: flex; gap: 12px; align-items: center; } .att-ehead > div:nth-child(2) { flex: 1; min-width: 0; }
.att-ethumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; background: rgba(128, 128, 128, .2); }
.att-escore { text-align: right; } .att-escore b { display: block; font: 700 26px/1 var(--st-mono, monospace); } .att-escore em { font: 600 12px var(--st-mono, monospace); font-style: normal; } .att-escore .is-up { color: #1fae5b; } .att-escore .is-down { color: #d92d20; }
.att-resolved { margin: 8px 0 0; color: #1fae5b; font-size: 12px; }
.att-pro { display: grid; gap: 10px; } .att-tag.is-ai { background: #6b46ff; color: #fff; }

/* Attention ▸ Fix / Director / proofread */
.att-fxprev { width: 100%; max-height: 52vh; object-fit: contain; border: 1.5px solid currentColor; border-radius: 12px; background: repeating-conic-gradient(rgba(128,128,128,.18) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.att-fx { display: grid; gap: 10px; } .att-fxgroup { display: grid; gap: 6px; }
.att-sl { display: grid; gap: 4px; font: 500 12px var(--st-ui, system-ui); } .att-sl span { display: flex; justify-content: space-between; } .att-sl input { width: 100%; accent-color: var(--po-type); }
.att-tg { display: flex; gap: 10px; align-items: flex-start; font: 500 13px var(--st-ui, system-ui); } .att-tg em { display: block; font-style: normal; opacity: 1; font-size: 11.5px; }
.att-dir, .att-proof { display: grid; gap: 10px; } .att-dverdict { padding: 12px; border: 1.5px solid currentColor; border-radius: 12px; } .att-dverdict b { font-size: 16px; }
.att-plan { margin: 0; padding-left: 20px; display: grid; gap: 10px; } .att-plan p { margin: 2px 0 6px; }
.att-dim-row { display: grid; gap: 2px; margin-bottom: 8px; } .att-dim-row p { margin: 0; }
.att-pal { display: flex; gap: 10px; flex-wrap: wrap; } .att-pal > div { display: flex; gap: 6px; align-items: center; }

/* Attention: English / Arabic switch and right-to-left layout */
.att-lang { display: inline-flex; margin-inline-start: auto; border: 1.5px solid currentColor; border-radius: 999px; overflow: hidden; }
.att-langbtn { height: 32px; padding: 0 14px; border: 0; background: transparent; color: inherit; font: 600 12px/1 var(--st-ui, system-ui); cursor: pointer; opacity: 1; }
.att-langbtn[aria-pressed="true"] { background: var(--po-type); color: var(--po-on); opacity: 1; }
html.att-ar body.att-page { font-family: 'Studio Cairo', 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, sans-serif; }
html.att-ar body.att-page :is(.att-stage, .att-frame, .att-canvas, .att-readout) { direction: ltr; }
html.att-ar body.att-page .att-bar > i { transform-origin: right; }
html.att-ar body.att-page :is(.att-bars b, .att-bar b) { transform-origin: right; }
html.att-ar body.att-page .po-mono { letter-spacing: 0; }
html.att-ar body.att-page :is(h1, h2, h3, h4, .studio-page-title, .att-score, .att-h, .att-grade, .att-tab) { font-family: 'Studio Cairo', 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
html.att-ar body.att-page .studio-page-title { font-size: clamp(34px, 6vw, 64px); line-height: 1.25; font-weight: 900; }
html.att-ar body.att-page .att-tab { font-size: 15px; font-weight: 700; }
html.att-ar body.att-page { overflow-x: hidden; }
html.att-ar:root body.att-page.studio-app.is-hub :is(.studio-page-title, .hub-title) { font: 900 clamp(34px, 6vw, 64px)/1.25 'Studio Cairo', 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }
html.att-ar .studio-app .studio-skip { left: auto; right: -9999px; } html.att-ar .studio-app .studio-skip:focus { left: auto; right: 8px; }

/* Arabic on Home and Settings: an Arabic-capable face, no letter-spacing or forced capitals */
html.att-ar body { font-family: 'Studio Cairo', 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, sans-serif; }
html.att-ar :is(.po-mono, .ps-label, .ps-hint, .studio-page-title, .ps-nav-a, .po-more) { letter-spacing: 0; text-transform: none; }

/* Settings ▸ About ▸ health check */
.ps-check { margin: 8px 0 18px; padding: 14px 16px; border: 1.5px solid currentColor; border-radius: 16px; }
.ps-check-sum { margin: 0 0 10px; font-weight: 700; }
.ps-check-sum.is-bad { color: #d02b2a; }
.ps-check-h { margin: 12px 0 4px; font: 600 11px/1 var(--st-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; opacity: 1; }
.ps-check-r { display: grid; grid-template-columns: 22px minmax(110px, 190px) 1fr; gap: 8px; padding: 5px 0; font-size: 14px; align-items: baseline; }
.ps-check-r > span:last-child { opacity: 1; }
.ps-check-r.is-ok .ps-check-i { color: #2f9e5b; }
.ps-check-r.is-warn .ps-check-i { color: #c58a14; }
.ps-check-r.is-fail .ps-check-i, .ps-check-r.is-fail b { color: #d02b2a; }
@media (max-width: 640px) { .ps-check-r { grid-template-columns: 22px 1fr; } .ps-check-r > span:last-child { grid-column: 2; } }

/* Phone: the active section pill in Settings is filled with the type colour, so its words must use the "on" colour */
@media (max-width: 1000px) {
  html:root body.studio-app.is-hub .ps-nav-a.is-on, html:root body.studio-app.is-hub .ps-nav-a.is-on > * { color: var(--po-on); }
}

/* Home spacing: room between the top buttons, the Bag badge, the circled (R) and the headline */
.po-nav-r { gap: 10px; align-items: center; }
.po-nav-r .po-pill { height: 34px; padding: 0 16px; }
.mbe-navbag { gap: 9px; }
.mbe-navbag i { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--po-type); color: var(--po-on); font-size: 10px; line-height: 1; letter-spacing: 0; }
.mbe-navbag:hover i { background: var(--po-on); color: var(--po-type); }
.po-big sup { margin-left: .06em; }
@media (min-width: 701px) { .po-big { transform: translateY(8px); } }
.po-big sup { top: .2em; }
@media (max-width: 1180px) {
  .po-app { flex-wrap: wrap; row-gap: 4px; }
  .po-app > .po-mono { flex: 1 1 100%; order: 3; min-width: 0; }
}

/* Pills and chips never touch: 8 px between neighbours (they were 4–6 px) */
:root body.studio-app :is(.studio-switcher, .chips, .cu-chips, .att-modes, .att-tabs, .wd-tabs, .wd-chips) { gap: 8px; }
@media (max-width: 1000px) { html:root body.studio-app.is-hub .ps-nav { gap: 8px; } }
:root body.studio-app :is(.hub-chips, .tpl-chips, .tpl-cats) { gap: 8px; }
html:root body.studio-app.is-hub .ps-seg { gap: 4px; }
:root body.studio-app :is(.att-row, .att-chips) { gap: 8px; }
/* Phone top bar: logo on the first line; Install · Open a file · Bag share the second line evenly (the Bag no longer drops alone to a third line) */
@media (max-width: 700px) {
  .po-nav { flex-wrap: wrap; row-gap: 10px; }
  .po-nav-r { flex: 1 1 100%; flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .po-nav-r > .po-pill { flex: 1 1 auto; justify-content: center; padding: 0 10px; }
}
@media (max-width: 700px) {
  .po-big { top: 8px; }
  .po-num { top: 29%; }
  .po-k2 { top: 29.5%; }
}

/* The app switcher wraps onto several lines on phones; it must not be a scroll box (the browser scrolled it sideways to the active pill and cut the first pills in half) */
:root body.studio-app.is-hub .studio-hub-header .studio-switcher { overflow: visible; flex-wrap: wrap; }
@media (max-width: 700px) { .po-num { top: 33%; } .po-k2 { top: 33.5%; } }

/* Phones: the app switcher is three compact strips (5 + 4 + 4 apps) so the top bar takes about 110 px instead of 240 px of the screen */
@media (max-width: 700px) {
  :root body.studio-app.is-hub .studio-hub-header .studio-switcher { display: flex !important; flex-direction: column; gap: 4px; overflow: visible; flex-wrap: nowrap; width: 100%; }
  :root body.studio-app.is-hub .studio-hub-header .studio-switcher-row { display: flex; gap: 4px; width: 100%; }
  :root body.studio-app.is-hub .studio-hub-header .studio-switcher-item { flex: 1 1 0; min-width: 0; justify-content: center; height: 30px; min-height: 30px; padding: 0 4px; gap: 4px; font-size: 10px; letter-spacing: 0; white-space: nowrap; }
  :root body.studio-app.is-hub .studio-hub-header .studio-switcher-item svg { width: 13px; height: 13px; flex: none; }
}
@media (max-width: 430px) {
  :root body.studio-app.is-hub .studio-hub-header .studio-switcher-item svg { display: none; }   /* names only: they fit three to a strip */
}

/* Apps button (every device): hides / shows the app strips of the top bar */
:root body.studio-app.is-hub .studio-apps-toggle { display: inline-flex !important; align-items: center; gap: 6px; width: auto; padding: 0 12px; min-height: 30px; }
:root body.studio-app.is-hub .studio-hub-header.is-apps-hidden .studio-switcher { display: none !important; }
}

/* Home menu button: hides / shows the top links (all devices); the Bag sits inside the menu */
.po-nav.is-menu-hidden .po-links { display: none !important; }
@media (max-width: 760px) { .po-nav.is-menu-open .po-links { display: flex !important; flex: 1 1 100%; order: 9; padding: 6px 0 2px; gap: 8px 16px; } }
.po-links .mbe-navbag { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 760px) { :root body.studio-app .po-nav .po-links a { min-height: 40px; display: inline-flex; align-items: center; } }

/* Menu / Apps buttons: open or closed is shown by a small arrow, never by a filled colour (a fill looked "stuck" after a tap) */
.po-menu-toggle::after, .studio-apps-toggle::after { content: '▾'; margin-inline-start: 7px; font-size: 9px; transition: transform .2s; }
.po-menu-toggle[aria-expanded="true"]::after, .studio-apps-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
/* On touch screens there is no hover: the hover colour used to stay on after a tap */
@media (hover: none) {
  .po-pill:hover:not(.is-fill) { background: transparent; color: var(--po-text); }
  :root body.studio-app.is-hub :is(.studio-switcher-item, .xp-bar-btn, .studio-back, .studio-theme-toggle):hover:not(.is-active) { background: transparent; color: inherit; }
  .po-pill.is-fill:hover { background: var(--po-type); color: var(--po-on); }
}
.po-menu-toggle:focus:not(:focus-visible), .studio-apps-toggle:focus:not(:focus-visible) { outline: none; }

/* the assistant's answer under a search box (Home, Store, Help) */
.asst-a { border: 1.5px solid var(--po-type, currentColor); border-radius: 16px; padding: 12px 16px; margin: 0 0 18px; max-width: 78ch; }
.asst-a[hidden] { display: none; }
.asst-text { margin: 0 0 8px; font: 500 15px/1.6 var(--st-ui, system-ui); white-space: pre-wrap; }
.asst-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; } .asst-links:empty { display: none; }
.asst-meta { margin: 0; font-size: 10.5px; opacity: 1; }
.asst-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }

.help-ask { display: flex; gap: 8px; margin: 14px 0 12px; max-width: 78ch; } .help-ask input { flex: 1 1 auto; min-width: 0; height: 44px; border-radius: 999px; padding: 0 16px; }
.ps-head .asst-a { margin-top: 12px; }

/* touch screens: every control on the hub pages is at least 40 px tall (chips, filters, language switch, app-list button, segmented choices) */
@media (pointer: coarse), (max-width: 700px) {
  html:root body.studio-app.is-hub :is(button, [role="button"], a.po-pill, summary, .att-langbtn, .hub-toc a, .studio-apps-toggle) { min-height: 40px; }
  html:root body.studio-app.is-hub :is(.po-pill, .att-langbtn, .studio-apps-toggle, .hub-toc a) { display: inline-flex; align-items: center; justify-content: center; }
  html:root body.studio-app.is-hub input[type="range"] { min-height: 28px; }
  html:root body.studio-app.is-hub input[type="color"] { min-height: 40px; min-width: 44px; }
  html:root body.studio-app.is-hub :is(.seg, [role="radiogroup"], .po-seg) > * { min-height: 40px; }
  html:root body.studio-app.is-hub .ps-keys > summary { display: flex; align-items: center; }
}
html:root body.studio-app.is-hub .ps-model[data-state="na"] .ps-label, html:root body.studio-app.is-hub .ps-model[data-state="missing"] .ps-label { opacity: .85; }
@media (pointer: coarse), (max-width: 700px) {
  html:root body.studio-app.is-hub :is(select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"])) { min-height: 40px; }
}
html:root body.studio-app.is-hub .ps-model[data-state="na"] .ps-label, html:root body.studio-app.is-hub .ps-model[data-state="missing"] .ps-label { opacity: 1; font-style: italic; }

/* Arabic mode: the English brand and poster words keep their own left-to-right order (so the ® stays after the word), and numbering stays "(1) Image" */
html.att-ar :is(.po-big, .po-over, .po-logo, .studio-brand, .studio-brand-word, .po-num, .mbe-h-sub, .po-foot) { direction: ltr; unicode-bidi: isolate; }
html.att-ar .po-app b { direction: ltr; unicode-bidi: isolate; display: block; text-align: right; }
html.att-ar .po-logo { text-align: start; }

/* ---- phones: the framed sheet, rounded on all four corners (concentric with the phone's own corners), clear of the notch / island and the home bar.
   The red frame is 6 px on every side, plus the safe areas, so the sheet is fully visible on every iPhone and Android. */
@media (max-width: 700px) {
  html:root body.studio-app.is-hub.is-hub.is-hub {
    margin: calc(6px + var(--po-safe-t)) calc(6px + var(--sar)) calc(6px + var(--po-safe-b)) calc(6px + var(--sal)); padding-top: 0;
    border-radius: 16px;
    min-height: calc(var(--app-h, 100dvh) - 12px - var(--po-safe-t) - var(--po-safe-b));
  }
  /* a short phone: the hero grows instead of squeezing the picture and the big word into the menu's leftovers */
  .po-hero { border-radius: 16px; height: auto; min-height: calc(var(--app-h, 100dvh) - 12px - var(--po-safe-t) - var(--po-safe-b)); }
  .po-stage { min-height: max(300px, 44dvh); }
}

/* ---- narrow phones: the brand word never collapses to its ® when the icon buttons are many; it takes its own line if it must */
@media (max-width: 760px) {
  :root body.studio-app.is-hub .studio-hub-header-right { flex-wrap: wrap; row-gap: 6px; }
  :root body.studio-app.is-hub .studio-hub-header-right::before { flex: 1 0 9em; white-space: nowrap; }
}

/* ---- Attention → Council tab */
.att-council { display: grid; gap: 14px; }
.att-verdict { padding: 14px 16px; border: 2px solid var(--po-type); border-radius: 12px; display: grid; gap: 6px; }
.att-verdict.is-ship { box-shadow: inset 6px 0 0 #2f9e44; } .att-verdict.is-fix { box-shadow: inset 6px 0 0 #f08c00; } .att-verdict.is-rework { box-shadow: inset 6px 0 0 #e03131; }
.att-members { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.att-member { padding: 12px 14px; border: 1.5px solid color-mix(in srgb, var(--po-type) 45%, transparent); border-radius: 12px; display: grid; gap: 6px; align-content: start; }
.att-member.is-block { border-color: #e03131; } .att-member.is-concern { border-color: #f08c00; } .att-member.is-ok { border-color: #2f9e44; }
.att-mhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; } .att-mhead em { flex-basis: 100%; font-style: normal; }
.att-say { margin: 0; font-style: italic; line-height: 1.45; }
.att-points { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: 13px; line-height: 1.4; }
.att-plan ol { margin: 6px 0 0; padding-inline-start: 20px; display: grid; gap: 10px; line-height: 1.45; }

/* ---- one corner scale everywhere: 4 · 8 · 12 · 16 · 24 · 32 px; pills (999) only where a button or tab was already a pill, circles (50%) for round icon buttons. */
:root { --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-4: 16px; --r-5: 24px; --r-6: 32px; }

/* on a computer the menu is always open; the Menu button is for phones */
@media (min-width: 761px) { .po-menu-toggle { display: none !important; } }

/* hub pages on a computer: brand left, the actions right, and the app strip on its own row, centred (it used to wrap and leave the actions on a second row) */
@media (min-width: 761px) {
  :root body.studio-app.is-hub:not(.xp-home) .studio-hub-header.xp-menubar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; row-gap: 12px; flex-wrap: nowrap; }
  :root body.studio-app.is-hub:not(.xp-home) .studio-hub-header-left { display: contents; }
  :root body.studio-app.is-hub:not(.xp-home) .studio-hub-header .studio-brand { grid-column: 1; grid-row: 1; }
  :root body.studio-app.is-hub:not(.xp-home) .studio-hub-header-right { grid-column: 2; grid-row: 1; justify-self: end; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
  :root body.studio-app.is-hub:not(.xp-home) .studio-hub-header .studio-switcher { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; overflow: visible; max-width: none; width: 100%; }
  :root body.studio-app.is-hub:not(.xp-home) .studio-hub-header.is-apps-hidden .studio-switcher { display: none !important; }
}

/* hub pages on a phone: brand and the five small buttons share one row, so the second row is only the app strip */
@media (max-width: 760px) {
  :root body.studio-app.is-hub:not(.xp-home) .studio-hub-header-right { flex-wrap: nowrap; gap: 6px; justify-content: flex-end; }
  :root body.studio-app.is-hub:not(.xp-home) .studio-hub-header-right :is(.xp-bar-btn, .studio-back, .studio-theme-toggle) { min-width: 36px; min-height: 36px; width: auto; padding: 0 8px; }
  :root body.studio-app.is-hub:not(.xp-home) .studio-hub-header-right :is(.xp-clock, .xp-net, .studio-theme-toggle) { display: none; }
  :root body.studio-app.is-hub:not(.xp-home) .studio-hub-header-right .xp-bar-btn > span:not(.studio-sr), :root body.studio-app.is-hub:not(.xp-home) .studio-hub-header-right .studio-back > span { display: none; }
}
@media (max-width: 380px) {
  /* very narrow: the name on its own line, the five buttons spread evenly under it */
  :root body.studio-app.is-hub:not(.xp-home) .studio-hub-header-right { flex-wrap: wrap; row-gap: 8px; justify-content: space-between; }
  :root body.studio-app.is-hub:not(.xp-home) .studio-hub-header-right::before { flex: 0 0 100%; margin-right: 0; }
}

/* the home page: the store and the artists' corner stand out among the apps, and the newest community work is on the first scroll */
.po-app.is-feature { background: var(--po-type); color: var(--po-on) !important; padding: 7px 10px; border-top-color: var(--po-type); }
.po-app.is-feature span { color: var(--po-on); opacity: 1; }
.po-artists-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 190px); gap: 10px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; align-items: start; }
.po-artists-strip::-webkit-scrollbar { display: none; }
.po-artists-strip > p, .po-artists-strip > a.po-pill { align-self: center; }
.po-artwork { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.po-artwork img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-3, 12px); background: color-mix(in srgb, currentColor 10%, transparent); }

/* home: Store and Community fill the second row of the apps (2 + 3 of the 5 columns), bigger, with the arrow */
@media (min-width: 761px) {
  .hm-apps .po-app.is-feature { grid-column: span 2; min-height: 92px; align-items: flex-end; flex-wrap: wrap; }
  .hm-apps .po-app.is-feature:last-child { grid-column: span 3; }
  .hm-apps .po-app.is-feature b { font-size: 44px; }
  .hm-apps .po-app.is-feature span { flex: 1 0 100%; }
}
.po-app.is-feature { position: relative; overflow: hidden; }
.po-app.is-feature::after { content: ''; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--po-on) 22%, transparent); transition: transform .35s; }
.po-app.is-feature:hover::after { transform: scale(2.6); }
:root body.xp-home .po-below > :is(.po-artistsec, .po-protools) { grid-column: 1 / -1; }
.po-protools .po-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; }
@media (max-width: 1000px) { .po-protools .po-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .po-protools .po-quick { grid-template-columns: 1fr; } }
.po-protools .po-size { display: grid; gap: 2px; align-items: start; }
@media (max-width: 480px) { .po-protools .po-sec-h, .po-protools > header { flex-wrap: wrap; row-gap: 4px; } .po-protools h2 { font-size: clamp(26px, 9vw, 36px); } }
/* PAGES: every home section is one whole page (a full screen), flat colour or a full picture, one huge chunky title, a wordmark bottom-left and a dot bottom-right. */
:root body.xp-home .po-below { gap: 8px; }
:root body.xp-home .po-below > .po-sec { --pg-bg: #111; --pg-fg: #ffe27a; --pg-tx: #fff; --pg-ph: none;
  --po-type: var(--pg-fg); --po-text: var(--pg-tx); --po-on: var(--pg-bg); --st-line: color-mix(in srgb, var(--pg-tx) 30%, transparent); --st-line-2: color-mix(in srgb, var(--pg-tx) 60%, transparent); --st-dim: color-mix(in srgb, var(--pg-tx) 85%, transparent); --st-faint: color-mix(in srgb, var(--pg-tx) 62%, transparent);
  position: relative; overflow: hidden; border-radius: 4px; min-height: max(560px, 92svh); padding: 60px 5vw 72px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--pg-tx); background: var(--pg-bg); }
:root body.xp-home .po-below > .po-sec:is(.po-continue, .po-device, .po-worksec) { background: linear-gradient(rgba(10, 4, 2, .38), rgba(10, 4, 2, .5)), var(--pg-ph) center / cover, var(--pg-bg); }
:root body.xp-home .po-below > .po-sec::before { content: ''; position: absolute; right: 22px; bottom: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--pg-fg); }
:root body.xp-home .po-below > .po-sec::after { content: 'MADE BY\A EYAD'; white-space: pre; position: absolute; left: 22px; bottom: 18px; font: 400 12px/.95 'Poster AB', sans-serif; letter-spacing: -.01em; text-align: left; color: var(--pg-tx); }
:root body.xp-home .po-below > .po-sec > .po-h { display: block; font: 400 clamp(64px, 15vw, 230px)/.86 'Poster AB', sans-serif !important; letter-spacing: -.03em !important; text-transform: uppercase !important; color: var(--pg-fg) !important; margin: 0 0 clamp(18px, 3vw, 40px); padding: 0; border: 0; max-width: 16ch; }
:root body.xp-home .po-below > .po-sec > .po-h::before { content: none; }
:root body.xp-home .po-below > .po-sec:not(:is(.po-continue, .po-device, .po-worksec)) > .po-h::after { content: ''; display: inline-block; width: .95em; height: .5em; margin-left: .14em; border-radius: 6px; background: var(--pg-ph) center / cover; vertical-align: .06em; }
:root body.xp-home .po-below > .po-sec > .po-h .po-mono { display: block; font: 500 12px/1 var(--st-mono, monospace) !important; letter-spacing: .08em; margin: 0 0 14px; color: var(--pg-tx) !important; opacity: .85; }
:root body.xp-home .po-below > .po-sec > .po-more { position: absolute; top: 22px; right: 22px; color: var(--pg-tx); }
:root body.xp-home .po-below > .po-sec :is(.po-sizes, .po-quick) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin: 0; width: min(900px, 100%); text-align: left; }
:root body.xp-home .po-below > .po-sec :is(.po-sizes, .po-quick) .po-size { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; min-height: 0; padding: 9px 0; gap: 12px; border: 0; border-top: 1.5px solid var(--st-line-2); border-radius: 0; background: none; box-shadow: none; color: var(--pg-tx); transform: none; }
:root body.xp-home .po-below > .po-sec :is(.po-sizes, .po-quick) .po-size::before, :root body.xp-home .po-below > .po-sec :is(.po-sizes, .po-quick) .po-size::after { content: none; }
:root body.xp-home .po-below > .po-sec :is(.po-sizes, .po-quick) .po-size:nth-child(n) { background: none; color: var(--pg-tx); box-shadow: none; }
:root body.xp-home .po-below > .po-sec :is(.po-sizes, .po-quick) .po-size:hover:nth-child(n) { background: var(--pg-fg); color: var(--pg-bg); padding-left: 10px; padding-right: 10px; }
:root body.xp-home .po-below > .po-sec :is(.po-sizes, .po-quick) .po-size b { font: 700 15px/1.2 var(--st-ui); text-transform: none; text-shadow: none; letter-spacing: 0; }
:root body.xp-home .po-below > .po-sec :is(.po-sizes, .po-quick) .po-size .po-mono { font-size: 10.5px; text-align: right; color: inherit; opacity: .85; }
:root body.xp-home .po-below > .po-sec :is(.po-sizes, .po-quick) .po-size:nth-child(n+9) { display: none; }
:root body.xp-home .po-below > .po-sec.po-continue { --pg-ph: url(../assets/images/35mm/r04.jpg); --pg-bg: #1b0a06; --pg-fg: #ffe27a; --pg-tx: #fff; }
:root body.xp-home .po-below > .po-sec.po-new { --pg-ph: url(../assets/images/35mm/r01.jpg); --pg-bg: #e8431a; --pg-fg: #111; --pg-tx: #111; }
:root body.xp-home .po-below > .po-sec.po-artistsec { --pg-ph: url(../assets/images/35mm/r07.jpg); --pg-bg: #ffe27a; --pg-fg: #111; --pg-tx: #111; }
:root body.xp-home .po-below > .po-sec.po-protools { --pg-ph: url(../assets/images/35mm/r13.jpg); --pg-bg: #111; --pg-fg: #ffe27a; --pg-tx: #f4efe6; }
:root body.xp-home .po-below > .po-sec.po-device { --pg-ph: url(../assets/images/35mm/r16.jpg); --pg-bg: #1b0a06; --pg-fg: #f4efe6; --pg-tx: #fff; }
:root body.xp-home .po-below > .po-sec.po-toolsec { --pg-ph: url(../assets/images/35mm/r19.jpg); --pg-bg: #f4efe6; --pg-fg: #cc1c07; --pg-tx: #1b0a06; }
:root body.xp-home .po-below > .po-sec.po-worksec { --pg-ph: url(../assets/images/35mm/r22.jpg); --pg-bg: #111; --pg-fg: #ffe27a; --pg-tx: #fff; }
:root body.xp-home :is(.po-continue, .po-device) { }
@media (max-width: 640px) { :root body.xp-home .po-below > .po-sec { min-height: 82svh; padding: 56px 18px 70px; } :root body.xp-home .po-below > .po-sec > .po-h { font-size: clamp(52px, 17vw, 96px); } :root body.xp-home .po-below > .po-sec :is(.po-sizes, .po-quick) { grid-template-columns: 1fr; } :root body.xp-home .po-below > .po-sec > .po-more { right: 16px; top: 16px; } }
@media (max-width: 1000px) { :root body.xp-home .po-below > .po-sec { grid-column: 1 / -1; } }
@media (min-width: 1001px) { :root body.xp-home .po-below > .po-sec { grid-column: 1 / -1; } :root body.xp-home .po-below > .po-protools :is(.po-quick) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the same chunky title on every hub page (Templates, Projects, Settings...) */
:root body.studio-app.is-hub :is(.studio-page-title, .hub-title, .tpl-title) { font-family: 'Poster AB', sans-serif !important; font-size: clamp(54px, 11vw, 170px) !important; line-height: .86 !important; letter-spacing: -.03em !important; }
/* colours are read once on the page body, so a page can restyle --po-type without reading itself */
:root body.xp-home { --hm-red: var(--po-type); --hm-paper: var(--po-paper); }
/* PAGES keep the studio colours: only the theme variables (frame red, paper, type red), no extra colours. */
:root body.xp-home .po-below > .po-sec.po-continue { --pg-bg: var(--hm-red); --pg-fg: var(--hm-paper); --pg-tx: var(--hm-paper); }
:root body.xp-home .po-below > .po-sec.po-new { --pg-bg: var(--hm-red); --pg-fg: var(--hm-paper); --pg-tx: var(--hm-paper); }
:root body.xp-home .po-below > .po-sec.po-artistsec { --pg-bg: var(--hm-paper); --pg-fg: var(--hm-red); --pg-tx: var(--hm-red); }
:root body.xp-home .po-below > .po-sec.po-protools { --pg-bg: var(--hm-red); --pg-fg: var(--hm-paper); --pg-tx: var(--hm-paper); }
:root body.xp-home .po-below > .po-sec.po-device { --pg-bg: var(--hm-red); --pg-fg: var(--hm-paper); --pg-tx: var(--hm-paper); }
:root body.xp-home .po-below > .po-sec.po-toolsec { --pg-bg: var(--hm-paper); --pg-fg: var(--hm-red); --pg-tx: var(--hm-red); }
:root body.xp-home .po-below > .po-sec.po-worksec { --pg-bg: var(--hm-red); --pg-fg: var(--hm-paper); --pg-tx: var(--hm-paper); }
:root body.xp-home .po-below > .po-sec:is(.po-continue, .po-device, .po-worksec) { background: linear-gradient(color-mix(in srgb, var(--hm-red) 38%, transparent), color-mix(in srgb, var(--hm-red) 62%, transparent)), var(--pg-ph) center / cover, var(--hm-red); }
:root body.xp-home .po-below > .po-sec.po-artistsec, :root body.xp-home .po-below > .po-sec.po-toolsec { box-shadow: inset 0 0 0 1.5px var(--hm-red); }
:root body.xp-home .po-below > .po-sec :is(.po-sizes, .po-quick) .po-size:hover:nth-child(n) { background: var(--pg-fg); color: var(--pg-bg); }

/* BUTTONS: one rectangular button language for the home (a box, a big title, a small line, fills on hover). */
@media (min-width: 761px) {
}
/* PAGES: a half picture, half colour layout instead of a thrown-in thumbnail */
@media (min-width: 901px) {
  :root body.xp-home .po-below > .po-sec:not(:is(.po-continue, .po-device, .po-worksec)) { align-items: flex-start; text-align: left; padding-right: 50%; padding-left: 5vw; background: var(--pg-bg); }
  :root body.xp-home .po-below > .po-sec:not(:is(.po-continue, .po-device, .po-worksec)):is(.po-artistsec, .po-toolsec) { padding-right: 5vw; padding-left: 50%; background: var(--pg-bg); }
  :root body.xp-home .po-below > .po-sec:not(:is(.po-continue, .po-device, .po-worksec)) > .po-h { font-size: clamp(54px, 6.4vw, 120px); max-width: none; overflow-wrap: anywhere; }
  :root body.xp-home .po-below > .po-sec:not(:is(.po-continue, .po-device, .po-worksec)) > .po-h::after { content: none; }
  :root body.xp-home .po-below > .po-sec:not(:is(.po-continue, .po-device, .po-worksec)) :is(.po-sizes, .po-quick) { width: 100%; grid-template-columns: 1fr; }
  :root body.xp-home .po-below > .po-sec:not(:is(.po-continue, .po-device, .po-worksec)) > .po-more { right: auto; left: 22px; }
}
@media (max-width: 900px) {
  :root body.xp-home .po-below > .po-sec:not(:is(.po-continue, .po-device, .po-worksec)) { padding-top: 250px; justify-content: flex-start; background: var(--pg-bg); }
  :root body.xp-home .po-below > .po-sec:not(:is(.po-continue, .po-device, .po-worksec)) > .po-h::after { content: none; }
  :root body.xp-home .po-below > .po-sec:not(:is(.po-continue, .po-device, .po-worksec)) > .po-more { top: 234px; }
}
@media (min-width: 761px) {
}
@media (min-width: 901px) {
  :root body.xp-home .po-below > .po-sec:not(:is(.po-continue, .po-device, .po-worksec)) > .po-h { font-size: clamp(48px, 5.2vw, 104px) !important; overflow-wrap: normal; }
  :root body.xp-home .po-below > .po-sec:is(.po-artistsec, .po-toolsec)::after { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
  :root body.xp-home .po-below > .po-sec:is(.po-artistsec, .po-toolsec) > .po-more { left: auto; right: 22px; }
}
:root body.studio-app.is-hub :is(.studio-switcher-item, .xp-bar-btn, .studio-back, .studio-theme-toggle, .studio-btn, .po-pill) { border-radius: 4px; }

/* real picture element (no stretching): a half page on desktop, a band on the phone */
.po-ph { display: none; }
:root body.xp-home .po-below > .po-sec:not(:is(.po-continue, .po-device, .po-worksec)) > .po-ph { display: block; position: absolute; top: 0; bottom: 0; right: 0; width: 46%; background: var(--pg-ph) center / cover no-repeat; }
:root body.xp-home .po-below > .po-sec:is(.po-artistsec, .po-toolsec) > .po-ph { right: auto; left: 0; }
@media (max-width: 900px) { :root body.xp-home .po-below > .po-sec:not(:is(.po-continue, .po-device, .po-worksec)) > .po-ph { width: 100%; height: 220px; bottom: auto; left: 0; right: 0; } }
/* BUTTONS v2 */
:root body.xp-home .po-below .po-pill, :root body.xp-home .po-below .po-pill.is-fill { display: inline-flex; align-items: stretch; gap: 0; min-height: 46px; padding: 0 0 0 18px; border: 0; border-radius: 4px; background: var(--hm-red); color: var(--hm-paper); font: 400 12px/1 var(--st-mono, monospace); letter-spacing: .08em; text-transform: uppercase; box-shadow: none; overflow: hidden; align-items: center; }
:root body.xp-home .po-below .po-pill::after { content: '\2197'; display: grid; place-items: center; width: 46px; height: 46px; margin-left: 18px; background: color-mix(in srgb, #000 24%, transparent); font-size: 18px; transition: transform .2s, background .2s; }
:root body.xp-home .po-below .po-pill:hover::after { transform: translate(2px, -2px); background: color-mix(in srgb, #000 38%, transparent); }
:root body.xp-home .po-below > .po-sec:is(.po-continue, .po-new, .po-protools, .po-device, .po-worksec) .po-pill { background: var(--hm-paper); color: var(--hm-red); }
@media (min-width: 761px) {
}

/* APP BUTTONS v3: each button is one whole page of a deck (a full picture or a flat colour, a huge title), not a box with text in it. */
@media (max-width: 760px) {
}
@media (min-width: 761px) {
}

/* =========================================================================
   EDITORIAL colour mode: emerald canvas, hot pink, acid yellow, black and white.
   Sharp edges, wide gutters, a centred collage on a generous green margin.
   ========================================================================= */
[data-poster="editorial"] { --po-frame: #08794f; --po-paper: #ffffff; --po-type: #ff1675; --po-text: #050505; --po-on: #050505; --ed-pink: #ff1675; --ed-yellow: #f5ff00; --ed-black: #050505; --ed-white: #fff; --ed-green: #08794f; }
[data-poster="editorial"] html, html[data-poster="editorial"] { background: #08794f; }
html[data-poster="editorial"] body.studio-app.is-hub.is-hub.is-hub { border-radius: 0; }
@media (min-width: 1100px) { html[data-poster="editorial"] body.studio-app.is-hub.is-hub.is-hub { max-width: 1240px; margin-left: auto; margin-right: auto; margin-top: 34px; margin-bottom: 34px; } }
[data-poster="editorial"] body.xp-home .po-hero { border-radius: 0; background: var(--ed-pink); --po-type: #050505; --po-text: #050505; --po-on: var(--ed-pink); }
[data-poster="editorial"] body.xp-home .po-big { color: #050505; }
[data-poster="editorial"] body.xp-home .po-over { color: var(--ed-yellow); text-shadow: 3px 3px 0 #050505; }
[data-poster="editorial"] body.xp-home .po-below { gap: 12px; }
/* the pages */
:root[data-poster="editorial"] body.xp-home .po-below > .po-sec.po-new { --pg-bg: var(--ed-pink); --pg-fg: #050505; --pg-tx: #050505; box-shadow: none; }
:root[data-poster="editorial"] body.xp-home .po-below > .po-sec.po-artistsec { --pg-bg: var(--ed-yellow); --pg-fg: #050505; --pg-tx: #050505; box-shadow: none; }
:root[data-poster="editorial"] body.xp-home .po-below > .po-sec.po-protools { --pg-bg: #050505; --pg-fg: var(--ed-yellow); --pg-tx: #fff; }
:root[data-poster="editorial"] body.xp-home .po-below > .po-sec.po-toolsec { --pg-bg: #fff; --pg-fg: var(--ed-pink); --pg-tx: #050505; box-shadow: none; }
:root[data-poster="editorial"] body.xp-home .po-below > .po-sec:is(.po-continue, .po-device, .po-worksec) { --pg-bg: #050505; --pg-fg: #fff; --pg-tx: #fff; background: linear-gradient(rgba(5, 5, 5, .25), rgba(5, 5, 5, .55)), linear-gradient(color-mix(in srgb, var(--ed-pink) 34%, transparent), color-mix(in srgb, var(--ed-pink) 34%, transparent)), var(--pg-ph) center / cover, #050505; }
:root[data-poster="editorial"] body.xp-home .po-below > .po-sec::before { background: var(--pg-fg); }
:root[data-poster="editorial"] body.xp-home .po-below > .po-sec:is(.po-artistsec, .po-toolsec)::after { color: #fff; }
/* the app buttons are pages too */
:root[data-poster="editorial"] body.xp-home .po-below .po-pill, :root[data-poster="editorial"] body.xp-home .po-below .po-pill.is-fill { background: var(--ed-pink); color: #050505; }
:root[data-poster="editorial"] body.xp-home .po-below > .po-sec:is(.po-new) .po-pill { background: #050505; color: var(--ed-pink); }
:root[data-poster="editorial"] body.xp-home .po-below > .po-sec:is(.po-continue, .po-protools, .po-device, .po-worksec) .po-pill { background: var(--ed-yellow); color: #050505; }
:root[data-poster="editorial"] body.xp-home .po-below .po-pill::after { background: rgba(0, 0, 0, .18); }
[data-poster="editorial"] body.xp-home .po-search, [data-poster="editorial"] body.xp-home .po-search-input { border-radius: 0; }

/* =========================================================================
   APP PAGES v4: an art-directed collage (one tall, one wide, two stacked, a banner),
   every tile with its own small graphic: outline numeral, REC tag, film edge, cube, sticker, circles.
   ========================================================================= */
@media (min-width: 761px) {
}
/* the number becomes an outline numeral */
/* the small line stands up on the tall tile and the film tile */
/* little graphics, all in the tile colour */
/* 2 vector: a circle, a bar and a triangle, like a logo sketch */
/* 3 video: REC tag and a timeline */
/* 4 3D: two squares make a cube */
/* 5 kamera: film edge */
/* 6 store: a price sticker */
/* 7 community: three overlapping faces (circles) */
@media (max-width: 760px) {
}
@media (min-width: 761px) {
}
@media (min-width: 761px) {
}
@media (min-width: 761px) {
}
@media (max-width: 760px) {
}
@media (max-width: 760px) {
}

/* LOWER PAGES v5: the Start new / Video / Quick tools lists are collage tiles in the same language as the app pages */
:root body.xp-home .po-below > .po-sec.po-new :is(.po-sizes, .po-quick) .po-size:nth-child(1) { --ti: url(../assets/images/35mm/r01.jpg); }
:root body.xp-home .po-below > .po-sec.po-new :is(.po-sizes, .po-quick) .po-size:nth-child(2) { --ti: url(../assets/images/35mm/r03.jpg); }
:root body.xp-home .po-below > .po-sec.po-new :is(.po-sizes, .po-quick) .po-size:nth-child(3) { --ti: url(../assets/images/35mm/r05.jpg); }
:root body.xp-home .po-below > .po-sec.po-new :is(.po-sizes, .po-quick) .po-size:nth-child(4) { --ti: url(../assets/images/35mm/r08.jpg); }
:root body.xp-home .po-below > .po-sec.po-new :is(.po-sizes, .po-quick) .po-size:nth-child(5) { --ti: url(../assets/images/35mm/r09.jpg); }
:root body.xp-home .po-below > .po-sec.po-new :is(.po-sizes, .po-quick) .po-size:nth-child(6) { --ti: url(../assets/images/35mm/r12.jpg); }
:root body.xp-home .po-below > .po-sec.po-new :is(.po-sizes, .po-quick) .po-size:nth-child(7) { --ti: url(../assets/images/35mm/r14.jpg); }
:root body.xp-home .po-below > .po-sec.po-new :is(.po-sizes, .po-quick) .po-size:nth-child(8) { --ti: url(../assets/images/35mm/r15.jpg); }
:root body.xp-home .po-below > .po-sec.po-protools :is(.po-sizes, .po-quick) .po-size:nth-child(1) { --ti: url(../assets/images/35mm/r13.jpg); }
:root body.xp-home .po-below > .po-sec.po-protools :is(.po-sizes, .po-quick) .po-size:nth-child(2) { --ti: url(../assets/images/35mm/r17.jpg); }
:root body.xp-home .po-below > .po-sec.po-protools :is(.po-sizes, .po-quick) .po-size:nth-child(3) { --ti: url(../assets/images/35mm/r20.jpg); }
:root body.xp-home .po-below > .po-sec.po-protools :is(.po-sizes, .po-quick) .po-size:nth-child(4) { --ti: url(../assets/images/35mm/r21.jpg); }
:root body.xp-home .po-below > .po-sec.po-protools :is(.po-sizes, .po-quick) .po-size:nth-child(5) { --ti: url(../assets/images/35mm/r23.jpg); }
:root body.xp-home .po-below > .po-sec.po-protools :is(.po-sizes, .po-quick) .po-size:nth-child(6) { --ti: url(../assets/images/35mm/r24.jpg); }
:root body.xp-home .po-below > .po-sec.po-toolsec :is(.po-sizes, .po-quick) .po-size:nth-child(1) { --ti: url(../assets/images/35mm/r02.jpg); }
:root body.xp-home .po-below > .po-sec.po-toolsec :is(.po-sizes, .po-quick) .po-size:nth-child(2) { --ti: url(../assets/images/35mm/r06.jpg); }
:root body.xp-home .po-below > .po-sec.po-toolsec :is(.po-sizes, .po-quick) .po-size:nth-child(3) { --ti: url(../assets/images/35mm/r10.jpg); }
:root body.xp-home .po-below > .po-sec.po-toolsec :is(.po-sizes, .po-quick) .po-size:nth-child(4) { --ti: url(../assets/images/35mm/r11.jpg); }
:root body.xp-home .po-below > .po-sec.po-toolsec :is(.po-sizes, .po-quick) .po-size:nth-child(5) { --ti: url(../assets/images/35mm/r16.jpg); }
:root body.xp-home .po-below > .po-sec.po-toolsec :is(.po-sizes, .po-quick) .po-size:nth-child(6) { --ti: url(../assets/images/35mm/r18.jpg); }
:root body.xp-home .po-below > .po-sec.po-toolsec :is(.po-sizes, .po-quick) .po-size:nth-child(7) { --ti: url(../assets/images/35mm/r19.jpg); }
:root body.xp-home .po-below > .po-sec.po-toolsec :is(.po-sizes, .po-quick) .po-size:nth-child(8) { --ti: url(../assets/images/35mm/r22.jpg); }

:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) { min-height: 0 !important; align-items: flex-start !important; justify-content: flex-start !important; text-align: left !important; padding: 34px 28px 60px !important; background: var(--pg-bg) !important; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) > .po-ph { display: none !important; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) > .po-h { font-size: clamp(54px, 8vw, 124px) !important; max-width: none !important; margin-bottom: 22px; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) > .po-more { left: auto !important; right: 28px !important; top: 34px; }
:root body.xp-home .po-below > .po-sec.po-new { --pg-bg: var(--hm-paper); --pg-fg: var(--hm-red); --pg-tx: var(--hm-red); box-shadow: inset 0 0 0 1.5px var(--hm-red); }
:root body.xp-home .po-below > .po-sec.po-protools { --pg-bg: var(--hm-red); --pg-fg: var(--hm-paper); --pg-tx: var(--hm-paper); box-shadow: none; }
:root body.xp-home .po-below > .po-sec.po-toolsec { --pg-bg: var(--hm-paper); --pg-fg: var(--hm-red); --pg-tx: var(--hm-red); box-shadow: inset 0 0 0 1.5px var(--hm-red); }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; width: 100% !important; max-width: none !important; counter-reset: sz; margin: 0; }
:root body.xp-home .po-below > .po-sec.po-protools .po-quick { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size { counter-increment: sz; position: relative; display: flex !important; flex-direction: column !important; justify-content: flex-end !important; align-items: flex-start !important; gap: 6px !important; aspect-ratio: 4 / 3; min-height: 0 !important; padding: 12px 14px 14px !important; border: 0 !important; border-radius: 4px; overflow: hidden; text-align: left; color: var(--pg-bg) !important; background: var(--pg-fg) !important; box-shadow: none !important; transition: transform .22s, filter .22s; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size:nth-child(n+9) { display: none !important; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size::before { content: counter(sz, decimal-leading-zero) !important; position: absolute; top: 6px; left: 12px; width: auto; height: auto; background: none; font: 400 clamp(30px, 3.4vw, 54px)/1 'Poster AB', sans-serif; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px currentColor; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size::after { content: '' !important; position: absolute; right: 12px; bottom: 12px; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size b { font: 400 clamp(20px, 2.3vw, 34px)/.92 'Poster AB', sans-serif !important; letter-spacing: -.03em; text-transform: uppercase !important; color: inherit; text-shadow: none; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size .po-mono { font-size: 9.5px; line-height: 1.3; text-align: left; color: inherit; opacity: .92; padding-right: 18px; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size:nth-child(3n+2) { background: transparent !important; color: var(--pg-fg) !important; box-shadow: inset 0 0 0 1.5px var(--pg-fg) !important; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size:nth-child(3n) { color: #fff !important; background: linear-gradient(to top, rgba(20, 5, 2, .6), rgba(20, 5, 2, .1) 70%), linear-gradient(color-mix(in srgb, var(--hm-red) 30%, transparent), color-mix(in srgb, var(--hm-red) 30%, transparent)), var(--ti, none) center / cover no-repeat, #1b0a06 !important; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size:hover:nth-child(n) { transform: translateY(-3px); filter: saturate(1.3); padding: 12px 14px 14px !important; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec)::before, :root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec)::after { display: none; }
:root body.xp-home .po-below > .po-sec.po-continue { --pg-bg: var(--hm-red); --pg-fg: var(--hm-paper); --pg-tx: var(--hm-paper); min-height: 0 !important; align-items: flex-start !important; justify-content: flex-start !important; text-align: left !important; padding: 34px 28px 40px !important; background: var(--hm-red) !important; }
:root body.xp-home .po-below > .po-sec.po-continue > .po-h { font-size: clamp(48px, 6.4vw, 100px) !important; max-width: none !important; margin-bottom: 18px; }
:root body.xp-home .po-below > .po-sec.po-continue > .po-more { right: 28px; top: 34px; }
:root body.xp-home .po-below > .po-sec.po-continue::before, :root body.xp-home .po-below > .po-sec.po-continue::after { display: none; }
@media (max-width: 1000px) { :root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick), :root body.xp-home .po-below > .po-sec.po-protools .po-quick { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { :root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec, .po-continue) { padding: 24px 16px 40px !important; } :root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size { aspect-ratio: 1 / 1; } :root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) > .po-h { font-size: clamp(46px, 15vw, 72px) !important; } :root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec, .po-continue) > .po-more { position: static; margin: -8px 0 14px; } }
:root[data-poster="editorial"] body.xp-home .po-below > .po-sec.po-new { --pg-bg: #fff; --pg-fg: var(--ed-pink); --pg-tx: #050505; }
:root[data-poster="editorial"] body.xp-home .po-below > .po-sec.po-protools { --pg-bg: #050505; --pg-fg: var(--ed-yellow); --pg-tx: #fff; }
:root[data-poster="editorial"] body.xp-home .po-below > .po-sec.po-continue { --pg-bg: var(--ed-pink); --pg-fg: #050505; --pg-tx: #050505; background: var(--ed-pink) !important; }
@media (min-width: 761px) {
}

/* BUTTONS v6: clean rectangles, a mono label, a plain arrow. Outline by default, solid for the main action, inverted on hover. */
:root body.xp-home .po-below { --pg-bg: var(--hm-paper); --pg-tx: var(--hm-red); }
:root body.xp-home .po-below .po-pill, :root body.xp-home .po-below .po-pill.is-fill, :root[data-poster="editorial"] body.xp-home .po-below .po-pill, :root[data-poster="editorial"] body.xp-home .po-below .po-pill.is-fill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1.5px solid var(--pg-tx); border-radius: 4px; background: transparent; color: var(--pg-tx); font: 500 12px/1 var(--st-mono, monospace); letter-spacing: .08em; text-transform: uppercase; box-shadow: none; overflow: visible; transition: background .18s, color .18s, transform .18s; }
:root body.xp-home .po-below .po-pill.is-fill, :root[data-poster="editorial"] body.xp-home .po-below .po-pill.is-fill { background: var(--pg-tx); color: var(--pg-bg); }
:root body.xp-home .po-below .po-pill::after, :root[data-poster="editorial"] body.xp-home .po-below .po-pill::after { content: '\2192'; display: inline; width: auto; height: auto; margin: 0; background: none; font-size: 14px; line-height: 1; transition: transform .18s; }
:root body.xp-home .po-below .po-pill:hover::after { transform: translateX(4px); }
:root body.xp-home .po-below .po-pill:hover, :root[data-poster="editorial"] body.xp-home .po-below .po-pill:hover { background: var(--pg-tx); color: var(--pg-bg); }
:root body.xp-home .po-below .po-pill.is-fill:hover, :root[data-poster="editorial"] body.xp-home .po-below .po-pill.is-fill:hover { background: transparent; color: var(--pg-tx); }
:root body.xp-home .po-below .po-sec:is(.po-continue, .po-protools, .po-device, .po-worksec) .po-pill.is-fill { background: var(--pg-tx); color: var(--pg-bg); }
/* the tagline stays readable where it crosses the big red letters */
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size::before { -webkit-text-stroke: 1.5px var(--tc, var(--pg-bg)); }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size:nth-child(3n+2) { --tc: var(--pg-fg); }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size:nth-child(3n) { --tc: #fff; }
@media (min-width: 641px) and (max-width: 1000px) { :root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick), :root body.xp-home .po-below > .po-sec.po-protools .po-quick { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
/* This device and Selected work: flat strips, no photo pages */
:root body.xp-home .po-below > .po-sec:is(.po-device, .po-worksec) { min-height: 0 !important; align-items: flex-start !important; justify-content: flex-start !important; text-align: left !important; padding: 34px 28px 44px !important; }
:root body.xp-home .po-below > .po-sec.po-device { --pg-bg: var(--hm-red); --pg-fg: var(--hm-paper); --pg-tx: var(--hm-paper); background: var(--hm-red) !important; }
:root body.xp-home .po-below > .po-sec.po-worksec { --pg-bg: var(--hm-paper); --pg-fg: var(--hm-red); --pg-tx: var(--hm-red); background: var(--hm-paper) !important; box-shadow: inset 0 0 0 1.5px var(--hm-red); }
:root body.xp-home .po-below > .po-sec:is(.po-device, .po-worksec) > .po-h { font-size: clamp(48px, 6.4vw, 100px) !important; max-width: none !important; margin-bottom: 18px; }
:root body.xp-home .po-below > .po-sec:is(.po-device, .po-worksec) > .po-ph, :root body.xp-home .po-below > .po-sec:is(.po-device, .po-worksec)::before, :root body.xp-home .po-below > .po-sec:is(.po-device, .po-worksec)::after { display: none !important; }
:root[data-poster="editorial"] body.xp-home .po-below > .po-sec.po-device { --pg-bg: #050505; --pg-fg: var(--ed-yellow); --pg-tx: #fff; background: #050505 !important; }
:root[data-poster="editorial"] body.xp-home .po-below > .po-sec.po-worksec { --pg-bg: #fff; --pg-fg: var(--ed-pink); --pg-tx: #050505; background: #fff !important; }
/* audit fixes: the Video tile's small line never touches its title; header links are comfortable to hit */
@media (max-width: 640px) { :root body.xp-home .po-below > .po-sec > .po-more { position: static !important; align-self: flex-start; margin: 0 0 14px !important; } :root body.xp-home .po-below > .po-sec:is(.po-artistsec) { padding-top: 240px !important; } }
@media (max-width: 640px) {
  :root body.xp-home .po-below > .po-sec .po-stats { grid-template-columns: 1fr !important; gap: 0 !important; width: 100%; }
  :root body.xp-home .po-below > .po-sec .po-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1.5px solid var(--st-line-2); }
  :root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size b { font-size: clamp(16px, 5vw, 21px) !important; overflow-wrap: anywhere; }
  :root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size .po-mono { font-size: 9px; }
}
/* hub titles never wider than the screen */
:root body.studio-app.is-hub :is(.studio-page-title, .hub-title, .tpl-title) { font-size: clamp(32px, 11vw, 170px) !important; overflow-wrap: anywhere; }

/* STABLE HOVER: nothing moves, resizes or reflows under the pointer. A hover only changes colour, an inner label, or draws a ring inside the box. */
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size:nth-child(3n),
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size:nth-child(3n):hover { background: color-mix(in srgb, var(--pg-fg) 16%, var(--pg-bg)) !important; color: var(--pg-fg) !important; box-shadow: none !important; --tc: var(--pg-fg); }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size:hover:nth-child(n) { transform: none !important; filter: none !important; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size:is(:hover, :focus-visible) { outline: 3px solid var(--pg-fg); outline-offset: -7px; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size:nth-child(3n+1):is(:hover, :focus-visible) { outline-color: var(--pg-bg); }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size b { transition: transform .2s; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size:hover b { transform: translateX(6px); }
:root body.studio-app.is-hub :is(.hub-card, .hub-app, .tpl-thumb):hover { transform: none; outline: 2px solid var(--po-type); outline-offset: -2px; }
:root body.xp-home .po-below .po-pill:hover { transform: none; }
/* keyboard and touch: a clear ring, and a pressed state that does not shift anything */
:root body.xp-home :is(a, button, input, select, [tabindex]):focus-visible { outline: 3px solid var(--hm-red); outline-offset: 2px; }
:root body.xp-home .po-below > .po-sec :is(a, button):focus-visible { outline-color: var(--pg-fg); }
@media (prefers-reduced-motion: reduce) { :root body.xp-home * { transition-duration: .01ms !important; } }
/* no moving cards on hover anywhere in the hub: a ring instead */
.po-proj:hover, .po-work img:hover, :root body.studio-app.is-hub :is(.hub-card, .hub-app, .tpl-thumb):hover, html:root body.studio-app.is-hub .ps-mode:hover { transform: none !important; }
.po-proj:hover .po-thumb, .po-proj:hover img { outline: 3px solid var(--po-type, currentColor); outline-offset: -3px; }
.po-mode:hover { transform: none; box-shadow: 0 0 0 2px var(--po-text); }
.po-pill:active { transform: none; opacity: .85; }

/* APP INDEX (back to the plain poster index): a rule on top, a big condensed name, a small mono line; Store and Community are the two filled bars. Nothing moves on hover. */
:root body.xp-home .hm-apps .po-app { border-radius: 0; transform: none; }
:root body.xp-home .hm-apps .po-app:hover, :root body.xp-home .hm-apps .po-app:focus-visible { transform: none; padding-left: 8px; }
:root body.xp-home .hm-apps .po-app.is-feature { background: var(--hm-red); color: var(--hm-paper) !important; border-top-color: var(--hm-red); }
:root body.xp-home .hm-apps .po-app.is-feature:hover { padding-left: 10px; }
:root body.xp-home .hm-apps .po-app.is-feature::after { content: none; }

/* LOWER LISTS (plain index, same language as the top of the home): a rule, a big condensed name, a small mono line. No boxes, numbers or dots. */
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0 28px !important; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size,
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size:nth-child(n),
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size:nth-child(n):hover { aspect-ratio: auto !important; justify-content: flex-start !important; gap: 3px !important; padding: 10px 0 14px !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; outline: 0 !important; border-top: 1.5px solid var(--pg-fg) !important; color: var(--pg-fg) !important; overflow: visible; transform: none !important; filter: none !important; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size::before, :root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size::after { content: none !important; display: none !important; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size b { font: 400 clamp(26px, 2.6vw, 36px)/1 'Poster BN', sans-serif !important; letter-spacing: .01em; text-transform: uppercase !important; color: var(--pg-fg); }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size .po-mono { font-size: 10.5px; color: var(--pg-tx); opacity: .9; padding-right: 0; }
:root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size:hover b { transform: translateX(8px); }
:root body.xp-home .po-below > .po-sec.po-protools .po-quick { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 1000px) { :root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick), :root body.xp-home .po-below > .po-sec.po-protools .po-quick { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { :root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick), :root body.xp-home .po-below > .po-sec.po-protools .po-quick { grid-template-columns: 1fr !important; } :root body.xp-home .po-below > .po-sec:is(.po-new, .po-protools, .po-toolsec) :is(.po-sizes, .po-quick) .po-size b { font-size: 28px !important; } }
@media (max-width: 1150px) { .mbe-slot .po-more.mbe-tools { position: static !important; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; } }
/* the tagline as three label strips: readable over the big letters, the portrait and the page */
:root body.xp-home .po-over { -webkit-text-stroke: 0; paint-order: normal; text-shadow: none; }
:root body.xp-home .po-over i { display: table; margin: 0 0 3px; padding: .03em .13em .07em; background: var(--po-paper); color: var(--po-type); }
:root:is([data-poster="redroom"], [data-poster="ink"], [data-poster="lime"], [data-poster="mono"]) body.xp-home .po-over i { background: var(--po-type); color: var(--po-paper); }
[data-poster="editorial"] body.xp-home .po-over i { background: var(--ed-yellow); color: #050505; text-shadow: none; }
@media (max-width: 700px) { :root body.xp-home .po-over i { margin-bottom: 2px; } }
/* Store and Community: the same plain index entries as the five apps, just wider (two halves of the second row) */
@media (min-width: 761px) {
  :root body.xp-home .hm-apps { grid-template-columns: repeat(10, minmax(0, 1fr)) !important; }
  :root body.xp-home .hm-apps .po-app { grid-column: span 2; }
  :root body.xp-home .hm-apps .po-app.is-feature, :root body.xp-home .hm-apps .po-app.is-feature:last-child { grid-column: span 5; min-height: 0; padding: 7px 0 0; background: none; color: var(--hm-red) !important; border-top: 1.5px solid var(--hm-red); align-items: baseline; flex-wrap: nowrap; }
  :root body.xp-home .hm-apps .po-app.is-feature b { font-size: 30px; }
  :root body.xp-home .hm-apps .po-app.is-feature span { flex: 0 1 auto; color: inherit; }
  :root body.xp-home .hm-apps .po-app.is-feature:hover { padding-left: 8px; }
}
/* nine entries: five apps, Moodboard and Wardrobe, then Store and Community side by side */
@media (min-width: 761px) {
  :root body.xp-home .hm-apps .po-app.is-feature, :root body.xp-home .hm-apps .po-app.is-feature:last-child { grid-column: span 3; }
}
@media (min-width: 761px) {
  :root body.xp-home .hm-apps .po-app:is(:nth-child(6), :nth-child(7)) b { font-size: clamp(20px, 2.4vw, 27px); white-space: nowrap; }
  :root body.xp-home .hm-apps .po-app.is-feature { flex-wrap: wrap !important; row-gap: 4px; }
  :root body.xp-home .hm-apps .po-app.is-feature span { flex: 1 0 100%; }
}
/* nine entries in a plain 3 x 3 grid: all the same size, same type, same order of things */
:root body.xp-home .hm-apps .po-app.is-feature, :root body.xp-home .hm-apps .po-app.is-feature:last-child { grid-column: auto; min-height: 0; padding: 7px 0 0; background: none; color: var(--hm-red) !important; border-top: 1.5px solid var(--hm-red); }
:root body.xp-home .hm-apps .po-app.is-feature:hover { padding-left: 8px; }
@media (min-width: 761px) {
  :root body.xp-home .hm-apps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px 28px !important; }
  :root body.xp-home .hm-apps .po-app, :root body.xp-home .hm-apps .po-app.is-feature, :root body.xp-home .hm-apps .po-app.is-feature:last-child { grid-column: auto !important; flex-direction: column !important; flex-wrap: nowrap !important; align-items: flex-start !important; gap: 4px; padding-bottom: 8px; }
  :root body.xp-home .hm-apps .po-app b, :root body.xp-home .hm-apps .po-app:is(:nth-child(6), :nth-child(7)) b, :root body.xp-home .hm-apps .po-app.is-feature b { font-size: 32px; white-space: nowrap; }
  :root body.xp-home .hm-apps .po-app span, :root body.xp-home .hm-apps .po-app.is-feature span { flex: 0 0 auto; text-align: left; color: inherit; }
}
@media (max-width: 760px) { :root body.xp-home .hm-apps .po-app.is-feature { padding: 4px 0; align-items: center; } }
:root body.xp-home .hm-apps .po-app.is-feature span { color: inherit !important; opacity: 1; }
/* the small hero labels sit on their own strips, so they stay readable where the huge letters pass behind them */
:root body.xp-home :is(.po-num, .po-k1, .po-k2) { z-index: 4; width: max-content; padding: 3px 7px 4px; background: var(--po-paper); color: var(--po-type); }
:root body.xp-home .po-k2 { margin-left: auto; text-align: right; }
:root body.xp-home .po-k1 > *, :root body.xp-home .po-k2 > * { color: inherit; }
[data-poster="editorial"] body.xp-home :is(.po-num, .po-k1, .po-k2) { background: #fff; color: #050505; }
/* the hero grows to hold all nine entries (it used to cut the last row off) */
@media (min-width: 761px) {
  :root body.xp-home .po-hero { height: auto; min-height: calc(var(--app-h, 100dvh) - 20px); overflow: visible; }
  :root body.xp-home .po-stage { min-height: max(400px, 52dvh); }
  :root body.xp-home .hm-apps { gap: 6px 28px !important; margin-top: 6px; }
  :root body.xp-home .hm-apps .po-app, :root body.xp-home .hm-apps .po-app.is-feature { padding-bottom: 4px; }
  :root body.xp-home .hm-apps .po-app b, :root body.xp-home .hm-apps .po-app:is(:nth-child(6), :nth-child(7)) b, :root body.xp-home .hm-apps .po-app.is-feature b { font-size: 28px; }
}
/* Store and Community use the hero's own type colour (in the pink mode the hero type is black, not pink) */
:root body.xp-home .hm-apps .po-app.is-feature, :root body.xp-home .hm-apps .po-app.is-feature:last-child { color: var(--po-type) !important; border-top-color: var(--po-type); background: none; }
:root body.xp-home .hm-apps .po-app.is-feature span { color: inherit !important; }
/* rounded again, as before: pills stay pills, the sheet and the hero keep their soft corners (tiles keep their small radius) */
:root body.studio-app.is-hub :is(.studio-switcher-item, .xp-bar-btn, .studio-back, .studio-theme-toggle, .studio-btn, .po-pill) { border-radius: 999px; }
:root body.xp-home .po-below .po-pill, :root body.xp-home .po-below .po-pill.is-fill, :root[data-poster="editorial"] body.xp-home .po-below .po-pill, :root[data-poster="editorial"] body.xp-home .po-below .po-pill.is-fill { border-radius: 999px !important; }
[data-poster="editorial"] body.xp-home .po-pill, [data-poster="editorial"] body.xp-home .po-below .po-pill { border-radius: 999px !important; }
html[data-poster="editorial"] body.studio-app.is-hub.is-hub.is-hub { border-radius: 16px; }
[data-poster="editorial"] body.xp-home .po-hero { border-radius: 16px; }
[data-poster="editorial"] body.xp-home .po-search, [data-poster="editorial"] body.xp-home .po-search-input { border-radius: 4px; }
:root body.xp-home .po-search { border-radius: 4px; }
/* the top links stay on ONE line on every screen: they shrink a little, and scroll sideways on a phone */
:root body.xp-home .po-links { flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: none; -ms-overflow-style: none; gap: 0 clamp(10px, 1.6vw, 22px); min-width: 0; flex: 1 1 auto; font-size: clamp(9.5px, .95vw, 12px); }
:root body.xp-home .po-links::-webkit-scrollbar { display: none; }
:root body.xp-home .po-links a { flex: 0 0 auto; }
@media (min-width: 761px) { :root body.xp-home .po-nav { flex-wrap: nowrap; } }
@media (max-width: 760px) { :root body.xp-home .po-nav.is-menu-open .po-links { display: flex; flex: 1 1 100%; order: 3; width: 100%; -webkit-overflow-scrolling: touch; padding-bottom: 2px; font-size: 11px; } }
/* wide screens: the big name is sized by the panel, not the window, and never spills onto the green */
@media (min-width: 761px) { :root body.xp-home .po-hero { overflow: hidden; } }
@media (min-width: 1100px) {
  :root body.xp-home .po-hero { container-type: inline-size; }
  :root body.xp-home .po-big { font-size: min(32.5cqw, 62vh); }
  :root body.xp-home .po-over { font-size: min(5cqw, 9.6vh); }
  :root body.xp-home .po-num { font-size: min(3.4cqw, 7vh); }
}
/* the link row may scroll sideways but must never make the page wider than the screen (it did on real iPhones) */
:root body.xp-home .po-hero { grid-template-columns: minmax(0, 1fr); }
:root body.xp-home .po-hero > * { min-width: 0; }
:root body.xp-home .po-nav { min-width: 0; max-width: 100%; }
:root body.xp-home .po-links { contain: inline-size; max-width: 100%; }
:root body.xp-home .po-nav-r { min-width: 0; max-width: 100%; }
:root body.studio-app.is-hub { overflow-x: clip; }
html.studio-root { overflow-x: clip; }

/* =====================================================================
   THE HOME PICTURE: the crew, cut out of its studio backdrop, standing on the page. Nothing frames it and nothing covers it (no boxes, no overlays):
   a very slow push-in, and now and then a short colour-split glitch that only touches the people (js/pages/hero-reel.js).
   ===================================================================== */
.po-reel { position: absolute; z-index: 2; left: 50%; bottom: 0; width: min(100%, 1500px); height: 84%; transform: translateX(-50%); pointer-events: none; animation: po-reel-in .9s cubic-bezier(.2, .8, .2, 1) .1s both; }
.po-reel-pan { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.po-reel-img, .po-reel-slice { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); transform-origin: 50% 80%; }
.po-reel-img { animation: po-reel-push 20s ease-in-out infinite alternate; filter: contrast(1.06) saturate(.95) drop-shadow(0 12px 16px rgba(0, 0, 0, .3)); }
.po-reel-slice { opacity: 0; clip-path: inset(34% 0 52% 0); filter: drop-shadow(5px 0 0 rgba(255, 30, 70, .7)) drop-shadow(-5px 0 0 rgba(0, 210, 255, .65)); }
.po-reel.is-glitch .po-reel-slice { opacity: 1; animation: po-reel-slice .24s steps(2) both; }
.po-reel.is-glitch .po-reel-img { filter: contrast(1.2) saturate(1.15) drop-shadow(4px 0 0 rgba(255, 30, 70, .6)) drop-shadow(-4px 0 0 rgba(0, 210, 255, .55)); }
.po-reel.is-paused * { animation-play-state: paused !important; }
@keyframes po-reel-in { from { opacity: 0; } }
@keyframes po-reel-push { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.045); } }
@keyframes po-reel-slice { 0% { transform: translateX(calc(-50% + var(--sx, 0px) + 12px)); } 50% { transform: translateX(calc(-50% + var(--sx, 0px) - 14px)); } 100% { transform: translateX(calc(-50% + var(--sx, 0px) + 4px)); } }
/* a phone: the stage is taller, the crew sits ABOVE the title (not behind it), the title is a little smaller */
@media (max-width: 700px) {
  :root body.xp-home .po-stage { min-height: 430px; }
  .po-reel { height: 66%; bottom: 29%; width: 100%; }
  :root body.xp-home .po-over { font-size: min(10.4vw, 6.4vh); bottom: 3%; }
}
@media (prefers-reduced-motion: reduce) { .po-reel, .po-reel-img, .po-reel-slice { animation: none !important; } .po-reel-slice { display: none; } }

.po-quick.is-short > :nth-child(n+4) { display: none; }
.po-more-btn { margin-top: 10px; }
.po-more-btn[hidden] { display: none; }

/* =====================================================================
   THE KNOCKOUT: the home stage. The word MADEBYEYAD stands on the page with no block around it, stretched to fill its row (one line on a
   wide stage, MADEBY / EYAD on a tall one); the letters are filled with a short edited film of Eyad's photos printed in the colour mode's
   colours (js/pages/hero-knock.js). The home texts sit in a line above and a line below the word, never on it.
   ===================================================================== */
:root body.xp-home .po-stage.po-knock { container: kn / inline-size; position: relative; min-height: 0; margin: 6px 0 18px; color: var(--po-type);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; }
.po-knock .kn-head, .po-knock .kn-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; min-width: 0; }
.po-knock .kn-head { align-items: flex-start; }
.po-knock .kn-art { position: relative; min-height: 0; }
.po-knock .kn-film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; animation: kn-print .7s steps(4) both; }
@keyframes kn-print { 0% { opacity: 0; } 50% { opacity: 1; filter: blur(2px); } }
/* the texts: plain, in the type colour, no background and no shadow */
:root body.xp-home .po-knock :is(.po-num, .po-k1, .po-k2, .po-k3, .po-k4, .po-over) { display: block; position: static; inset: auto; margin: 0; transform: none; padding: 0; background: none; box-shadow: none; text-shadow: none; color: var(--po-type); }
:root body.xp-home .po-knock :is(.po-num, .po-k1, .po-k2, .po-k4) { width: max-content; }
:root body.xp-home .po-knock :is(.po-k1, .po-k2, .po-k3, .po-k4) > * { color: inherit; }
:root body.xp-home .po-knock .po-num { font: 400 clamp(15px, 2.2cqw, 28px)/1 'Poster AB', Impact, sans-serif; letter-spacing: -.04em; }
.po-knock .kn-top { display: flex; gap: 8px; align-items: flex-start; }
.po-knock .kn-bottom { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
:root body.xp-home .po-knock .po-k2, :root body.xp-home .po-knock .po-k3, :root body.xp-home .po-knock .po-k4 { text-align: right; }
:root body.xp-home .po-knock .po-k3 { max-width: min(320px, 40cqw); }
:root body.xp-home .po-knock .po-over { animation: none; font: 400 clamp(17px, 2.7cqw, 38px)/.84 'Poster AB', Impact, sans-serif; letter-spacing: -.05em; }
:root body.xp-home .po-knock .po-over i { display: block; background: none; padding: 0; margin: 0; box-shadow: none; text-shadow: none; color: var(--po-type); }
/* the texts land one after the other */
.po-knock :is(.kn-top, .po-k2, .po-over i, .kn-bottom > *) { animation: kn-pop .45s cubic-bezier(.2, .9, .2, 1.2) both; }
.po-knock .po-k2 { animation-delay: .5s; } .po-knock .po-over i:nth-child(1) { animation-delay: .62s; } .po-knock .po-over i:nth-child(2) { animation-delay: .7s; }
.po-knock .po-over i:nth-child(3) { animation-delay: .78s; } .po-knock .kn-top { animation-delay: .42s; } .po-knock .kn-bottom > :nth-child(1) { animation-delay: .86s; } .po-knock .kn-bottom > :nth-child(2) { animation-delay: .94s; }
@keyframes kn-pop { from { opacity: 0; transform: translateY(8px) rotate(-2deg); } }
/* a phone: a tall stage (the letters go on two lines), smaller texts */
@media (max-width: 760px) {
  :root body.xp-home .po-stage.po-knock { height: auto; aspect-ratio: auto; max-height: none; grid-template-rows: auto auto auto; }
  .po-knock .kn-art { aspect-ratio: 4 / 4.2; max-height: 64dvh; }
  :root body.xp-home .po-knock .po-over { font-size: clamp(16px, 6cqw, 28px); }
  :root body.xp-home .po-knock .po-k3 { max-width: 52cqw; }
  :root body.xp-home .po-knock :is(.po-k1, .po-k2, .po-k3, .po-k4) { font-size: 9px !important; line-height: 1.3; }
  :root body.xp-home .po-knock .po-num { font-size: clamp(14px, 5cqw, 22px); }
}
@media (prefers-reduced-motion: reduce) { .po-knock :is(.kn-film, .kn-top, .po-k2, .po-over i, .kn-bottom > *) { animation: none; } }
