/* P0099 · UNIT Workspace Home · Cinematic (L3 Light default, 02C.2 Dark).
   Every class is prefixed `uws-ch-`. Colours come only from theme.css tokens, except the hero scrims (image-specific
   gradients, below) and the cards (white type on Space hues/art in both themes, as approved).
   Breakpoints: phone < 760 px · tablet 760–1099 px · desktop ≥ 1100 px, as container queries on the Workspace root
   (`#root{container-type:inline-size;container-name:uws}`, app.css), like the rest of Workspace.
   Page content max width 1400 px (1480 with padding). */

.uws-ch {
  --uws-ch-bar-h: 64px;
  --uws-ch-pad-x: 40px;
  --uws-hero-h: clamp(660px, 52vw, 780px);
  --uws-overlap: 96px;               /* how far the Spaces rise into the hero */
  --uws-copy-bottom: calc(var(--uws-overlap) + 40px);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--uws-bg);
  color: var(--uws-text);
  font-family: 'Geist', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:root[data-theme="dark"] .uws-ch {
  --uws-hero-h: clamp(580px, 48vw, 720px);
  --uws-overlap: 110px;
  --uws-copy-bottom: calc(var(--uws-overlap) + 56px);
}
.uws-ch *, .uws-ch *::before, .uws-ch *::after { box-sizing: border-box; }
.uws-ch a { color: inherit; text-decoration: none; }
.uws-ch button, .uws-ch input { font: inherit; color: inherit; }
.uws-ch :focus-visible { outline: 2px solid var(--uws-focus); outline-offset: 2px; }
.uws-ch-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.uws-ch-top { position: absolute; top: 0; left: 0; width: 1px; height: 40px; pointer-events: none; }

/* ---------- Header ---------- */
.uws-ch-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--uws-ch-bar-h); margin-bottom: calc(-1 * var(--uws-ch-bar-h));
  display: flex; align-items: center; gap: 6px; padding: 0 20px 0 24px;
  transition: background-color .35s ease, border-color .35s ease, color .35s ease;
  border-bottom: 1px solid transparent;
}
.uws-ch-header.is-over { color: #FFFFFF; background: transparent; }
.uws-ch-header.is-solid {
  color: var(--uws-text); background: var(--uws-header-bg); border-bottom-color: var(--uws-line);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
}
.uws-ch-brand { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; flex: none; }
.uws-ch-brand img { display: block; height: 24px; width: auto; }
.uws-ch-header__rule { width: 1px; height: 22px; margin: 0 6px 0 4px; flex: none; background: currentColor; opacity: .22; }
.uws-ch-header__fill { flex: 1; }

.uws-ch-signin, .uws-ch-search, .uws-ch-settings, .uws-ch-theme, .uws-ch-account {
  display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer;
  border-radius: 999px; border: 1px solid; font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: background-color .2s, border-color .2s, box-shadow .3s;
}
.is-over :is(.uws-ch-signin, .uws-ch-search, .uws-ch-settings, .uws-ch-theme) { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .36); color: #FFFFFF; }
.is-over :is(.uws-ch-signin, .uws-ch-search, .uws-ch-settings, .uws-ch-theme):hover { background: rgba(255, 255, 255, .24); }
.is-solid :is(.uws-ch-signin, .uws-ch-search, .uws-ch-settings, .uws-ch-theme) { background: var(--uws-control-bg); border-color: var(--uws-control-border); color: var(--uws-text); }
.is-solid :is(.uws-ch-signin, .uws-ch-search, .uws-ch-settings, .uws-ch-theme):hover { background: var(--uws-control-hover); }
.uws-ch-signin { gap: 8px; height: 38px; padding: 0 15px 0 5px; }
.uws-ch-signin__disc { width: 28px; height: 28px; border-radius: 999px; background: #F1EFFC; color: #5A46DE; display: flex; align-items: center; justify-content: center; }
.uws-ch-signin__short { display: none; }
.uws-ch-signin.is-highlight { box-shadow: 0 0 0 3px var(--uws-bg), 0 0 0 5px var(--uws-accent); }
.is-over .uws-ch-signin.is-highlight { box-shadow: 0 0 0 3px rgba(11, 11, 15, .45), 0 0 0 5px #FFFFFF; }
.uws-ch-account { width: 44px; height: 44px; border: 0; background: transparent; }
.uws-ch-account span { width: 34px; height: 34px; border-radius: 999px; background: #F1EFFC; color: #5A46DE; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.uws-ch-search { gap: 10px; height: 38px; width: 210px; padding: 0 8px 0 14px; justify-content: flex-start; }
.uws-ch-search__label { flex: 1; text-align: left; opacity: .8; }
.uws-ch-search kbd { font: 500 11px/1 'Geist Mono', ui-monospace, monospace; padding: 4px 7px; border-radius: 5px; background: rgba(127, 127, 140, .16); }
.uws-ch-theme { width: 38px; height: 38px; margin-left: 4px; }
.uws-ch-settings { gap: 8px; height: 38px; padding: 0 16px 0 12px; margin-left: 4px; }

/* ---------- Hero ---------- */
.uws-ch-hero { position: relative; height: var(--uws-hero-h); isolation: isolate; color: var(--uws-hero-text); background: var(--uws-bg); }
.uws-ch-hero__media { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: #0B0B0F; }
:root:not([data-theme="dark"]) .uws-ch-hero__media { background: #DCDCE4; }
.uws-ch-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.uws-ch-hero__slide.is-on { opacity: 1; }
.uws-ch-hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform-origin: 60% 50%; }
.uws-ch-hero__slide.can-move.is-on img { animation: uws-ch-push 9s linear both; }
@keyframes uws-ch-push { from { transform: scale(1); } to { transform: scale(1.07); } }

/* Light (L3): dark wash under the header, then the image dissolves into white; a soft white halo sits behind the copy.
   --uws-scrim-light (0–1, per image) strengthens the halo and starts the fade earlier. */
.uws-ch-hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 58% at 0% 80%, rgba(255, 255, 255, calc(.62 + var(--uws-scrim-light, 0) * .35)) 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg,
      rgba(11, 11, 15, .42) 0%, rgba(11, 11, 15, 0) 18%,
      rgba(255, 255, 255, 0) calc(30% - var(--uws-scrim-light, 0) * 8%),
      rgba(255, 255, 255, .72) calc(46% - var(--uws-scrim-light, 0) * 8%),
      rgba(255, 255, 255, .93) calc(60% - var(--uws-scrim-light, 0) * 6%),
      #FFFFFF 78%);
}
/* Dark (02C.2): white copy over a left and bottom scrim that ends in night. */
:root[data-theme="dark"] .uws-ch-hero__scrim {
  background:
    linear-gradient(180deg, rgba(11, 11, 15, .55) 0%, rgba(11, 11, 15, 0) 22%, rgba(11, 11, 15, 0) 42%, rgba(11, 11, 15, .78) 80%, #0B0B0F 100%),
    linear-gradient(90deg, rgba(11, 11, 15, calc(.74 + var(--uws-scrim-dark, 0) * .22)) 0%, rgba(11, 11, 15, calc(var(--uws-scrim-dark, 0) * .35)) 52%, rgba(11, 11, 15, 0) 64%);
}

.uws-ch-hero__inner {
  position: absolute; inset: 0; z-index: 2; width: 100%; max-width: 1480px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 22px;
  padding: 0 var(--uws-ch-pad-x) var(--uws-copy-bottom);
}
.uws-ch-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 820px; animation: uws-ch-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes uws-ch-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.uws-ch-hero__eyebrow { font: 500 11.5px/1.2 'Geist Mono', ui-monospace, monospace; letter-spacing: .1em; color: var(--uws-hero-eyebrow); }
.uws-ch-hero__title { margin: 0; font-size: clamp(44px, 5vw, 74px); line-height: .98; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; color: var(--uws-hero-text); }
.uws-ch-hero__text { margin: 0; max-width: 540px; font-size: 19px; line-height: 1.45; color: var(--uws-hero-text-2); text-wrap: pretty; }
.uws-ch-hero__cta {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--uws-hero-cta-bg); color: var(--uws-hero-cta-text) !important; font-size: 15px; font-weight: 600; transition: transform .2s, opacity .2s;
}
.uws-ch-hero__cta:hover { opacity: .9; }
.uws-ch-hero__nav { display: flex; align-items: center; gap: 12px; }
.uws-ch-hero__pager { display: flex; gap: 18px; min-width: 0; }
.uws-ch-hero__dot { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 0; border: 0; background: transparent; color: var(--uws-hero-text); cursor: pointer; opacity: .62; transition: opacity .3s; min-width: 0; }
.uws-ch-hero__dot.is-on, .uws-ch-hero__dot:hover { opacity: 1; }
.uws-ch-hero__bar { display: block; width: 48px; height: 3px; border-radius: 3px; background: var(--uws-hero-track); overflow: hidden; }
.uws-ch-hero__fill { display: block; height: 100%; width: 0; background: var(--uws-hero-fill); }
.uws-ch-hero__fill.is-running { animation: uws-ch-fill var(--uws-cycle, 7000ms) linear forwards; }
.uws-ch-hero__fill.is-paused { animation: uws-ch-fill var(--uws-cycle, 7000ms) linear forwards; animation-play-state: paused; }
.uws-ch-hero__fill.is-static { width: 100%; }
@keyframes uws-ch-fill { from { width: 0; } to { width: 100%; } }
.uws-ch-hero__dot-label { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.uws-ch-hero__step, .uws-ch-hero__play {
  flex: none; display: flex; align-items: center; justify-content: center; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--uws-hero-step-border); background: var(--uws-hero-step-bg); color: var(--uws-hero-text);
}
.uws-ch-hero__step { width: 40px; height: 40px; }
.uws-ch-hero__play { width: 32px; height: 32px; margin-left: 6px; }
.uws-ch-hero__glow {
  position: absolute; left: 0; right: 0; top: 100%; height: 900px; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 22% 0%, rgb(var(--uws-glow) / var(--uws-glow-alpha)) 0%, rgb(var(--uws-glow) / 0) 70%);
}
.uws-ch-hero__end { position: absolute; bottom: 0; left: 0; width: 1px; height: 1px; }

/* ---------- Main ---------- */
.uws-ch-main {
  position: relative; z-index: 3; width: 100%; max-width: 1480px; margin: calc(-1 * var(--uws-overlap)) auto 0;
  padding: 0 var(--uws-ch-pad-x) 96px; display: flex; flex-direction: column; gap: 64px;
}

/* Spaces bar: stays below the header while scrolling. */
.uws-ch-spaces { display: flex; flex-direction: column; gap: 14px; }
.uws-ch-spaces__bar {
  position: sticky; top: var(--uws-ch-bar-h); z-index: 20; margin: 0 -12px; padding: 10px 12px; border-radius: 18px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;
  background: transparent; transition: background-color .25s;
}
.uws-ch-spaces__bar.is-stuck { background: var(--uws-toolbar-bg); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); }
.uws-ch-spaces__sentinel { display: block; height: 0; margin-bottom: -14px; }
.uws-ch-spaces__head { display: flex; align-items: baseline; gap: 10px; }
.uws-ch-spaces__head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.uws-ch-spaces__count { font: 500 11.5px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .06em; color: var(--uws-text-3); }
.uws-ch-spaces__tools { display: flex; align-items: center; gap: 8px; }
.uws-ch-spaces__hint { margin: -4px 0 0; font-size: 13px; color: var(--uws-text-3); }
.uws-ch-find { position: relative; display: flex; align-items: center; color: var(--uws-text-3); }
.uws-ch-find > .uws-ch-glyph { position: absolute; left: 13px; pointer-events: none; }
.uws-ch-find input {
  width: 220px; height: 40px; padding: 0 36px 0 38px; border-radius: 999px; outline-offset: 2px;
  border: 1px solid var(--uws-control-border); background: var(--uws-control-bg); color: var(--uws-text); font-size: 14px;
  -webkit-appearance: none; appearance: none;
}
.uws-ch-find input::placeholder { color: var(--uws-text-3); opacity: 1; }
.uws-ch-find input::-webkit-search-cancel-button { display: none; }
.uws-ch-find__clear { position: absolute; right: 4px; width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--uws-text-3); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.uws-ch-tool {
  flex: none; height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--uws-control-border); background: var(--uws-control-bg); color: var(--uws-text);
  display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s;
}
.uws-ch-tool:hover { background: var(--uws-control-hover); }
.uws-ch-tool:disabled { opacity: .45; cursor: default; }
.uws-ch-tool--icon { width: 40px; padding: 0; }
.uws-ch-tool.is-on { background: var(--uws-inverse-bg); color: var(--uws-inverse-text); border-color: var(--uws-inverse-bg); }

/* Compact grid: columns from width alone. 1360 px content → 6 × ~212 px; 1200 → 5 × ~226; tablets 4 / 3; phones 2. */
.uws-ch-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.uws-ch-grid__item { position: relative; aspect-ratio: 3 / 4; min-width: 0; transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.uws-ch-grid__item:has(.uws-ch-card:hover), .uws-ch-grid__item:has(.uws-ch-card:focus-visible) { transform: translateY(-3px); }
.uws-ch-grid__item.is-dragging { opacity: .5; transform: scale(.96); }
.is-arranging .uws-ch-grid__item { cursor: grab; }

/* ---------- Card ---------- */
.uws-ch-card {
  position: absolute; inset: 0; display: block; overflow: hidden; isolation: isolate; border-radius: 18px;
  background: var(--hue); color: #FFFFFF !important; transition: box-shadow .2s;
}
.uws-ch-card:hover, .uws-ch-card:focus-visible { box-shadow: 0 0 0 2px var(--uws-ring-gap), 0 0 0 4px var(--hue); outline: none; }
.uws-ch-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.uws-ch-card:hover .uws-ch-card__img, .uws-ch-card:focus-visible .uws-ch-card__img { transform: scale(1.05); }
.uws-ch-card--photo::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 28%, color-mix(in srgb, var(--hue) 20%, transparent) 52%, color-mix(in srgb, var(--hue) 92%, transparent) 100%);
}
.uws-ch-card__coins { position: absolute; inset: 16% 6% 34%; z-index: -1; display: flex; align-items: center; justify-content: center; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.uws-ch-card:hover .uws-ch-card__coins { transform: scale(1.05); }
.uws-ch-card__coin { width: 34%; height: auto; flex: none; margin: 0 -5%; position: relative; z-index: 0; }
.uws-ch-card__coin.is-main { width: 54%; z-index: 1; }
.uws-ch-card--plain { background: linear-gradient(165deg, color-mix(in srgb, var(--hue) 62%, #FFFFFF) 0%, var(--hue) 72%); }
.uws-ch-card__mark { position: absolute; right: -16%; top: 20%; width: 80%; opacity: .22; z-index: -1; color: #FFFFFF; }
.uws-ch-card__mark .uws-ch-glyph { width: 100%; height: auto; }
.uws-ch-card__icon { position: absolute; top: 15px; left: 15px; width: 36px; height: 36px; border-radius: 999px; background: #FFFFFF; color: var(--hue); display: flex; align-items: center; justify-content: center; }
.uws-ch-card__chip {
  position: absolute; top: 15px; right: 15px; height: 24px; padding: 0 9px; border-radius: 999px; display: flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, .92); color: #3A2BB0; font: 500 10px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase;
}
.uws-ch-card__chip--lock { color: #0D0D12; font: 600 11.5px/1 'Geist', system-ui, sans-serif; letter-spacing: 0; text-transform: none; padding: 0 10px 0 8px; }
.uws-ch-card__foot { position: absolute; left: 15px; right: 15px; bottom: 15px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.uws-ch-card__name { flex: 1; min-width: 0; font-size: 20px; line-height: 1.1; font-weight: 600; letter-spacing: -.018em; text-wrap: balance; text-shadow: 0 1px 12px rgba(0, 0, 0, .18); }
.uws-ch-card__go { flex: none; width: 32px; height: 32px; border-radius: 999px; background: rgba(255, 255, 255, .22); color: #FFFFFF; display: flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s; }
.uws-ch-card:hover .uws-ch-card__go, .uws-ch-card:focus-visible .uws-ch-card__go { background: #FFFFFF; color: var(--hue); }

/* Arrange overlay */
.uws-ch-arrange {
  position: absolute; inset: 0; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(13, 13, 18, .28); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .95);
}
.uws-ch-arrange__pos { font: 500 12px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .08em; color: #FFFFFF; background: rgba(13, 13, 18, .6); padding: 5px 9px; border-radius: 999px; }
.uws-ch-arrange__btns { display: flex; gap: 10px; }
.uws-ch-arrange__btns button { width: 44px; height: 44px; border-radius: 999px; border: 0; background: #FFFFFF; color: #0D0D12; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.uws-ch-arrange__btns button:disabled { opacity: .35; cursor: default; }

.uws-ch-empty { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 24px 28px; border-radius: 20px; border: 1px solid var(--uws-line); background: var(--uws-surface); }
.uws-ch-empty p { margin: 0; font-size: 15px; color: var(--uws-text-2); }

.uws-ch-visitor { margin: 0 auto; max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; font-weight: 600; letter-spacing: -.02em; color: var(--uws-text); text-wrap: balance; }
.uws-ch-visitor img { display: block; }

/* ---------- Footer ---------- */
.uws-ch-footer { margin-top: auto; border-top: 1px solid var(--uws-line); position: relative; z-index: 3; }
.uws-ch-footer__inner { max-width: 1480px; margin: 0 auto; padding: 28px var(--uws-ch-pad-x) 36px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 40px; }
.uws-ch-footer__brand { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--uws-text-3); }
.uws-ch-footer__brand strong { font-size: 14px; color: var(--uws-text); }
.uws-ch-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.uws-ch-footer nav a { font-size: 13.5px; color: var(--uws-text-2); min-height: 24px; display: inline-flex; align-items: center; }
.uws-ch-footer nav a:hover { color: var(--uws-text); }
.uws-ch-footer__legal { font: 500 11px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .08em; color: var(--uws-text-3); }

/* ---------- Tablet ---------- */
@container uws (max-width: 1099px) {
  .uws-ch { --uws-ch-pad-x: 28px; --uws-hero-h: 680px; }
  :root[data-theme="dark"] .uws-ch { --uws-hero-h: 620px; }
  .uws-ch-grid { gap: 16px; }
  .uws-ch-hero__step { display: none; }
}

/* ---------- Phone: cards are not reduced (2 per row, full width) ---------- */
@container uws (max-width: 759px) {
  .uws-ch { --uws-ch-bar-h: 56px; --uws-ch-pad-x: 16px; --uws-hero-h: 640px; --uws-overlap: 64px; --uws-copy-bottom: calc(var(--uws-overlap) + 28px); }
  :root[data-theme="dark"] .uws-ch { --uws-hero-h: 620px; --uws-overlap: 64px; --uws-copy-bottom: calc(var(--uws-overlap) + 36px); }
  .uws-ch-header { padding: 0 6px 0 10px; gap: 2px; }
  .uws-ch-signin { height: 36px; padding: 0 12px 0 4px; }
  .uws-ch-signin__long, .uws-ch-search__label, .uws-ch-search kbd, .uws-ch-settings__label { display: none; }
  .uws-ch-signin__short { display: inline; }
  .uws-ch-search, .uws-ch-settings, .uws-ch-theme { width: 44px; height: 44px; padding: 0; margin: 0; border-color: transparent !important; background: transparent !important; }

  .uws-ch-hero__slide img { object-position: var(--pos-m, var(--pos, 50% 50%)); }
  .uws-ch-hero__scrim {
    background:
      radial-gradient(ellipse 90% 46% at 0% 82%, rgba(255, 255, 255, calc(.6 + var(--uws-scrim-light, 0) * .35)) 0%, rgba(255, 255, 255, 0) 74%),
      linear-gradient(180deg, rgba(11, 11, 15, .45) 0%, rgba(11, 11, 15, 0) 16%,
        rgba(255, 255, 255, 0) calc(30% - var(--uws-scrim-light, 0) * 6%), rgba(255, 255, 255, .74) calc(46% - var(--uws-scrim-light, 0) * 6%),
        rgba(255, 255, 255, .94) 58%, #FFFFFF 72%);
  }
  :root[data-theme="dark"] .uws-ch-hero__scrim {
    background:
      linear-gradient(180deg, rgba(11, 11, 15, .62) 0%, rgba(11, 11, 15, 0) 20%, rgba(11, 11, 15, 0) 32%, rgba(11, 11, 15, .74) 58%, #0B0B0F 100%),
      linear-gradient(0deg, rgba(11, 11, 15, calc(var(--uws-scrim-dark, 0) * .4)), rgba(11, 11, 15, calc(var(--uws-scrim-dark, 0) * .4)));
  }
  .uws-ch-hero__inner { gap: 14px; }
  .uws-ch-hero__title { font-size: 42px; }
  .uws-ch-hero__text { font-size: 16px; }
  .uws-ch-hero__nav { width: 100%; }
  /* One row: products share the width; a column is never narrower than its full product name (Unit Raise), and what
     does not fit scrolls sideways inside the pager (never the page). */
  .uws-ch-hero__pager { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .uws-ch-hero__pager::-webkit-scrollbar { display: none; }
  .uws-ch-hero__bar { width: 100%; }
  .uws-ch-hero__play { width: 44px; height: 44px; margin-left: 4px; }

  .uws-ch-main { padding-bottom: 64px; gap: 44px; }
  .uws-ch-spaces__bar { margin: 0 -8px; padding: 8px; }
  .uws-ch-spaces__tools { flex: 1 1 100%; }
  .uws-ch-find { flex: 1; }
  .uws-ch-find input { width: 100%; height: 44px; }
  .uws-ch-tool { height: 44px; }
  .uws-ch-tool--icon { width: 44px; }
  .uws-ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .uws-ch-card__icon { top: 13px; left: 13px; width: 34px; height: 34px; }
  .uws-ch-card__chip { top: 13px; right: 13px; }
  .uws-ch-card__foot { left: 13px; right: 13px; bottom: 13px; }
  .uws-ch-card__name { font-size: clamp(16px, 4.6vw, 20px); }
  .uws-ch-card__go { width: 30px; height: 30px; }
  .uws-ch-footer__inner { flex-direction: column; align-items: flex-start; padding: 24px 16px 36px; }
}

/* ---------- Reduced motion: no push-in, no slide-in copy, no card lift; transitions become instant ---------- */
@media (prefers-reduced-motion: reduce) {
  .uws-ch-hero__slide { transition: none; }
  .uws-ch-hero__slide img, .uws-ch-hero__slide.can-move.is-on img { animation: none; transform: none; }
  .uws-ch-hero__copy { animation: none; }
  .uws-ch-card__img, .uws-ch-card__coins, .uws-ch-grid__item { transition: none; }
  .uws-ch-card:hover .uws-ch-card__img, .uws-ch-card:hover .uws-ch-card__coins { transform: none; }
  .uws-ch-grid__item:has(.uws-ch-card:hover), .uws-ch-grid__item:has(.uws-ch-card:focus-visible) { transform: none; }
  .uws-ch-header { transition: none; }
}

/* ---------- Workspace host (P0099 integration, 3 Dec 2026) ----------
   The existing account menu (Shell.tsx › AccountMenu) as the header's account control; the existing contextual sign-in
   popover (features/public) anchored under the top-left Sign in button; the theme switch in the Settings top bar. */
.uws-ch-header .uws-account { margin-left: 2px; }
.uws-ch-header .uws-account .uws-menu__trigger { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 999px; justify-content: center; background: #F1EFFC; color: #5A46DE; font-size: 13px; font-weight: 600; }
.uws-ch-header .uws-account .uws-menu__trigger:hover { background: #E2DDFA; }
.uws-ch-header .uws-account .uws-menu__pop { left: 0; right: auto; }
.uws-ch-signin-layer { position: fixed; z-index: 45; top: 58px; left: 24px; margin: 0; display: block; }
.uws-ch-signin-layer .uws-signin-pop { top: 0; left: 0; right: auto; align-items: flex-start; }
.uws-topbar .uws-ch-theme { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--ws-control-border); background: var(--white); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; }
.uws-topbar .uws-ch-theme:hover { background: var(--ws-row-hover); }
.uws-topbar .uws-ch-theme:focus-visible { outline: 2px solid var(--violet-600); outline-offset: 2px; }
@container uws (max-width: 759px) {
  /* Phone header: the brand and Sign in pill keep their 36 px look; their hit areas extend to 44 px. */
  .uws-ch-brand, .uws-ch-signin { position: relative; }
  .uws-ch-brand::after, .uws-ch-signin::after { content: ''; position: absolute; inset: -5px -1px; }
  .uws-ch-signin-layer { top: 50px; left: 10px; }
  .uws-topbar .uws-ch-theme { width: 44px; height: 44px; border: 0; background: transparent; }
}
