:root {
  --bg: #eef2f7;
  --bg-deep: #dfe7f2;
  --paper: rgba(255, 255, 255, 0.82);
  --paper-strong: rgba(255, 255, 255, 0.96);
  --paper-soft: rgba(255, 255, 255, 0.68);
  --glass: rgba(246, 249, 253, 0.68);
  --line: rgba(61, 79, 109, 0.14);
  --line-strong: rgba(61, 79, 109, 0.2);
  --text: #1f2937;
  --muted: rgba(31, 41, 55, 0.68);
  --muted-soft: rgba(31, 41, 55, 0.48);
  --accent: #0a84ff;
  --accent-strong: #0066db;
  --accent-soft: rgba(10, 132, 255, 0.14);
  --orange: #ff9f53;
  --orange-deep: #e9863b;
  --shadow-lg:
    0 28px 64px rgba(93, 109, 136, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
  --shadow-md:
    0 16px 36px rgba(93, 109, 136, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.94) inset;
  --shadow-sm:
    0 8px 18px rgba(93, 109, 136, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.96) inset;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1200px;
}

@font-face {
  font-family: "SplineSans";
  src: url("https://app.spline.design/two-static/_next/static/media/SplineSans_Light-s.p.793197b2.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SplineSans";
  src: url("https://app.spline.design/two-static/_next/static/media/SplineSans_Regular-s.p.4a71dd6c.woff2")
    format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SplineSans";
  src: url("https://app.spline.design/two-static/_next/static/media/SplineSans_Medium-s.p.89499b86.woff2")
    format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family:
    "SF Pro Display",
    "SF Pro Text",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.98), transparent 24%),
    linear-gradient(180deg, #f5f8fc 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

.wallpaper-speckle {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.9) 0.4px, transparent 0.7px),
    radial-gradient(rgba(76, 98, 132, 0.08) 0.4px, transparent 0.7px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  background-size: 24px 24px, 24px 24px, auto;
  background-position: 0 0, 12px 12px, 0 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  margin: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.symbol-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.symbol-icon {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header,
.page,
.notice-card,
.desktop-rail {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  margin: 0;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(244, 247, 252, 0.62)),
    rgba(255, 255, 255, 0.48);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.84) inset,
    0 8px 20px rgba(93, 109, 136, 0.08);
  backdrop-filter: blur(26px) saturate(1.15);
  z-index: 3;
}

.site-header__left,
.site-header__right,
.top-nav,
.hero-actions,
.hero-links,
.toolbar-group {
  display: flex;
  align-items: center;
}

.site-header__left,
.site-header__right {
  gap: 14px;
}

.site-header__right {
  justify-content: flex-end;
  flex: 0 1 auto;
}

.site-search,
.window-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 240, 232, 0.84));
  box-shadow:
    0 14px 22px rgba(118, 98, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.site-search {
  width: min(360px, 34vw);
}

.window-search {
  min-width: 228px;
  padding-inline: 12px 14px;
}

.site-search__icon,
.window-search__icon {
  width: 16px;
  height: 16px;
  color: rgba(100, 80, 55, 0.62);
  stroke: currentColor;
  fill: none;
  flex: 0 0 auto;
}

.generated-ui-icon,
.site-search__icon-img,
.site-search__submit-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.site-search__icon-img {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

.site-search__input,
.window-search__input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(45, 35, 21, 0.92);
  font: inherit;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  outline: none;
}

.site-search__input::placeholder,
.window-search__input::placeholder {
  color: rgba(109, 90, 64, 0.62);
}

.site-search__submit {
  appearance: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(223, 210, 191, 0.88);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 242, 233, 0.88));
  color: rgba(75, 60, 40, 0.82);
  box-shadow:
    0 10px 18px rgba(118, 98, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  cursor: pointer;
}

.site-search__submit-icon {
  width: 24px;
  height: 24px;
}

.site-search__submit-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.top-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.top-logo__mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.top-logo__mark img,
.hero-brand__mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.top-nav {
  gap: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.top-nav__toggle {
  position: relative;
  padding: 7px 10px;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  transition:
    background 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.top-nav__toggle::after {
  display: none;
}

.top-nav__toggle:hover,
.top-nav__toggle.is-active {
  color: var(--text);
  background: rgba(240, 234, 226, 0.96);
}

.top-nav__toggle.is-active::after {
  transform: scaleX(1);
}

.header-panel {
  position: fixed;
  top: 58px;
  left: 0;
  width: 100%;
  z-index: 4;
  padding: 0;
  pointer-events: none;
}

.header-panel[hidden] {
  display: none !important;
}

.header-panel__shell {
  position: absolute;
  top: 0;
  left: var(--header-panel-offset, 210px);
  width: 268px;
  max-width: calc(100vw - 24px);
  margin: 0;
  display: block;
  padding: 6px;
  border: 1px solid rgba(225, 214, 195, 0.96);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 244, 237, 0.96)),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    0 16px 28px rgba(93, 109, 136, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
  backdrop-filter: blur(18px) saturate(1.08);
  pointer-events: auto;
}

.header-panel__eyebrow {
  display: none;
}

.header-panel__list {
  display: grid;
  gap: 0;
}

.header-panel__section {
  display: grid;
  gap: 2px;
}

.header-panel__section + .header-panel__section {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(222, 213, 199, 0.92);
}

.header-panel__section-label {
  margin: 0;
  padding: 2px 8px 6px;
  color: rgba(111, 98, 82, 0.62);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header-panel__row {
  min-height: 46px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-radius: 9px;
  background: transparent;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.header-panel__row:hover,
.header-panel__row:focus-visible {
  transform: translateY(-1px);
  background: rgba(243, 236, 229, 0.95);
}

.header-panel__row-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  color: rgba(138, 105, 52, 0.9);
  border-radius: 6px;
  background: rgba(245, 237, 226, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.header-panel__row-icon svg {
  width: 11px;
  height: 11px;
}

.header-panel__row-icon--orange {
  color: rgba(170, 86, 20, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 229, 195, 0.98), rgba(255, 212, 141, 0.98));
}

.header-panel__row-label {
  display: block;
  color: rgba(36, 34, 31, 0.96);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-panel__row-text {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}

.header-panel__row-description {
  display: block;
  color: rgba(92, 82, 68, 0.68);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-panel__row-arrow {
  flex: 0 0 auto;
  color: rgba(108, 103, 96, 0.68);
}

.header-panel__row-arrow svg {
  width: 12px;
  height: 12px;
}

.header-cta,
.toolbar-cta,
.button--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--orange), var(--orange-deep));
  color: #36271b;
  box-shadow:
    0 12px 26px rgba(255, 159, 83, 0.22),
    0 1px 0 rgba(255, 241, 226, 0.94) inset;
  font-weight: 700;
}

.header-cta {
  min-height: 34px;
  padding-inline: 16px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.header-utilities {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.header-utility {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(31, 41, 55, 0.64);
  transition: background 140ms ease, color 140ms ease;
}

.header-utility .symbol-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.header-utility:hover {
  background: rgba(255, 255, 255, 0.56);
  color: rgba(31, 41, 55, 0.82);
}

.desktop-rail {
  position: fixed;
  top: 70px;
  display: grid;
  gap: 22px;
}

.desktop-rail--left {
  left: 10px;
}

.desktop-rail--right {
  right: 10px;
}

.rail-item {
  width: 104px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--text);
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.15;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9);
}

.desktop-rail--left .rail-item:nth-child(2) {
  margin-left: 10px;
}

.desktop-rail--left .rail-item:nth-child(4) {
  margin-left: -4px;
}

.desktop-rail--right .rail-item:nth-child(2) {
  margin-left: -8px;
}

.desktop-rail--right .rail-item:nth-child(4) {
  margin-left: 6px;
}

.desktop-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.desktop-icon::before,
.desktop-icon::after {
  content: "";
  position: absolute;
}

.desktop-icon__glyph {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
}

.desktop-icon--app {
  width: 50px;
  height: 50px;
  color: rgba(255, 255, 255, 0.96);
}

.desktop-icon--app::before {
  inset: 0;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 54%),
    linear-gradient(180deg, var(--icon-top), var(--icon-bottom));
  box-shadow:
    0 14px 20px rgba(53, 92, 171, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.76) inset,
    0 -7px 14px rgba(0, 0, 0, 0.16) inset;
}

.desktop-icon--app::after {
  inset: 2px 4px 20px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0));
  opacity: 0.86;
}

.desktop-icon--app .desktop-icon__glyph {
  stroke: currentColor;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.14));
}

.desktop-icon--folder {
  width: 54px;
  height: 44px;
  color: rgba(42, 64, 92, 0.8);
}

.desktop-icon--folder::before {
  top: 4px;
  left: 4px;
  width: 24px;
  height: 12px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--folder-tab-top), var(--folder-tab-bottom));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.56) inset;
}

.desktop-icon--folder::after {
  inset: 11px 0 0;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, var(--folder-front-top), var(--folder-front-bottom));
  box-shadow:
    0 12px 18px rgba(87, 121, 178, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.64) inset,
    0 -8px 12px rgba(71, 92, 128, 0.12) inset;
}

.desktop-icon--folder .desktop-icon__glyph {
  width: 17px;
  height: 17px;
  margin-top: 8px;
  stroke: currentColor;
}

.desktop-icon--document {
  width: 42px;
  height: 52px;
  color: var(--doc-accent);
}

.desktop-icon--document::before {
  inset: 0;
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.96));
  box-shadow:
    0 14px 20px rgba(93, 109, 136, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.96) inset;
  border: 1px solid rgba(186, 199, 220, 0.86);
}

.desktop-icon--document::after {
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  border-radius: 0 11px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(228, 236, 247, 0.92));
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  box-shadow: -1px 1px 0 rgba(186, 199, 220, 0.72);
}

.desktop-icon--document .desktop-icon__glyph {
  width: 18px;
  height: 18px;
  margin-top: 6px;
  stroke: currentColor;
}

.desktop-icon--mini.desktop-icon--document {
  width: 22px;
  height: 28px;
}

.desktop-icon--mini.desktop-icon--document::after {
  width: 9px;
  height: 9px;
  border-radius: 0 6px 0 0;
}

.desktop-icon--mini .desktop-icon__glyph {
  width: 10px;
  height: 10px;
  margin-top: 4px;
}

.desktop-icon--cobalt {
  --icon-top: #79b9ff;
  --icon-bottom: #0a67ff;
}

.desktop-icon--mint {
  --icon-top: #6ae7c0;
  --icon-bottom: #1ea775;
}

.desktop-icon--violet {
  --icon-top: #b69aff;
  --icon-bottom: #7c58ee;
}

.desktop-icon--sky-app {
  --icon-top: #9bd3ff;
  --icon-bottom: #4f96ff;
}

.desktop-icon--peach {
  --icon-top: #ffb483;
  --icon-bottom: #ff7d47;
}

.desktop-icon--sky {
  --folder-tab-top: #9fd0ff;
  --folder-tab-bottom: #5fa3ff;
  --folder-front-top: #a8d4ff;
  --folder-front-bottom: #5e9aff;
}

.desktop-icon--warm {
  --doc-accent: #ff7258;
}

.desktop-icon--cool {
  --doc-accent: #3a86ff;
}

.desktop-icon--rose {
  --doc-accent: #ff5e88;
}

.page {
  position: relative;
  min-height: calc(100vh - 90px);
  padding: 20px 24px 128px;
  display: block;
  overflow: clip;
}

.page-stage-media {
  position: fixed;
  top: 68px;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  pointer-events: none;
  z-index: 0;
}

.page-stage-media__frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(180deg, rgba(237, 242, 248, 0.92), rgba(222, 232, 244, 0.96));
  box-shadow: none;
}

.page-stage-media__art {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  overflow: hidden;
  background:
    var(--time-scene-paint),
    linear-gradient(180deg, #d9e6f4, #c7d8e8);
  background-size:
    cover,
    cover;
  background-position:
    center,
    center;
  background-repeat:
    no-repeat,
    no-repeat;
  isolation: isolate;
}

.page-stage-media__sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  z-index: 0;
  display: block;
  background-image: var(--time-scene-image, url("./media/bg-day-full-v4.webp?v=20260507d"));
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: var(--time-scene-filter, saturate(1.02) contrast(1.02));
  pointer-events: none;
}

.page-stage-media__art::before,
.page-stage-media__art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-stage-media__art::before {
  display: none;
}

.page-stage-media__art::after {
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(13, 19, 22, 0.14), transparent 20%, transparent 74%, rgba(10, 15, 18, 0.16)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.28));
  mix-blend-mode: multiply;
  opacity: 0.22;
}

.page-stage-media__walker {
  --walker-width: clamp(112px, 10vw, 150px);
  --walker-edge: clamp(18px, 6vw, 96px);
  position: absolute;
  left: 0;
  bottom: clamp(96px, 15vh, 158px);
  z-index: 2;
  width: var(--walker-width);
  height: calc(var(--walker-width) * 400 / 290);
  aspect-ratio: 290 / 400;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  appearance: none;
  cursor: pointer;
  filter: saturate(0.94);
  opacity: 0.94;
  pointer-events: auto;
  transform: translate3d(var(--walker-edge), 0, 0);
  will-change: transform;
  animation: walker-cross 38s linear infinite;
  animation-delay: -8s;
}

.page-stage-media__walker::before {
  content: "";
  position: absolute;
  left: 13%;
  right: 6%;
  bottom: 2%;
  height: 7%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(4, 10, 13, 0.34), rgba(4, 10, 13, 0) 68%);
  opacity: 0.72;
  transform-origin: center;
  animation: walker-shadow 900ms ease-in-out infinite;
}

.page-stage-media__walker:focus-visible {
  outline: 2px solid rgba(255, 230, 159, 0.9);
  outline-offset: 6px;
}

.page-stage-media__walker-sprite {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background-image: url("./media/bg-walker-pair-v4-sprite.png?v=20260507e");
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: calc(var(--walker-width) * 8) 100%;
  filter: drop-shadow(0 8px 10px rgba(8, 18, 24, 0.34));
  transform-origin: 50% 92%;
  animation:
    walker-steps 900ms steps(8) infinite,
    walker-bob 900ms ease-in-out infinite;
  will-change: background-position, transform;
}

.page-stage-media__walker-alert {
  position: absolute;
  top: -7%;
  left: 56%;
  z-index: 3;
  width: clamp(22px, 2.4vw, 32px);
  height: clamp(22px, 2.4vw, 32px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(124, 74, 20, 0.2);
  border-radius: 999px;
  color: rgba(98, 53, 18, 0.96);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.9), transparent 36%),
    linear-gradient(180deg, rgba(255, 231, 137, 0.98), rgba(255, 161, 55, 0.96));
  box-shadow:
    0 7px 14px rgba(37, 22, 8, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: clamp(14px, 1.7vw, 20px);
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 10px, 0) scale(0.68) rotate(-12deg);
  transform-origin: center bottom;
}

.page-stage-media__walker.is-surprised::before {
  animation: walker-shadow-jump 920ms ease both;
}

.page-stage-media__walker.is-surprised .page-stage-media__walker-sprite {
  background-image: url("./media/bg-walker-pair-v4-surprise-sprite.png?v=20260507a");
  animation:
    walker-steps 620ms steps(8) infinite,
    walker-surprise-jump 920ms cubic-bezier(0.18, 0.9, 0.22, 1) both;
}

.page-stage-media__walker.is-surprised .page-stage-media__walker-alert {
  animation: walker-alert-pop 920ms ease both;
}

@keyframes walker-cross {
  0% {
    transform: translate3d(var(--walker-edge), 0, 0) scaleX(1);
  }

  47% {
    transform: translate3d(calc(100vw - var(--walker-width) - var(--walker-edge)), 0, 0) scaleX(1);
  }

  50% {
    transform: translate3d(calc(100vw - var(--walker-width) - var(--walker-edge)), 0, 0) scaleX(-1);
  }

  97% {
    transform: translate3d(var(--walker-edge), 0, 0) scaleX(-1);
  }

  100% {
    transform: translate3d(var(--walker-edge), 0, 0) scaleX(1);
  }
}

@keyframes walker-steps {
  to {
    background-position-x: calc(var(--walker-width) * -8);
  }
}

@keyframes walker-bob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.4deg);
  }

  25% {
    transform: translate3d(0, -3px, 0) rotate(0.8deg);
  }

  50% {
    transform: translate3d(0, 0, 0) rotate(0.3deg);
  }

  75% {
    transform: translate3d(0, -2px, 0) rotate(-0.7deg);
  }
}

@keyframes walker-shadow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.66;
  }

  50% {
    transform: scaleX(0.86);
    opacity: 0.48;
  }
}

@keyframes walker-surprise-jump {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  18% {
    transform: translate3d(0, 9px, 0) rotate(-1deg) scale(1.04, 0.96);
  }

  42% {
    transform: translate3d(0, -42px, 0) rotate(4deg) scale(0.98, 1.04);
  }

  62% {
    transform: translate3d(0, -25px, 0) rotate(-2deg) scale(1);
  }

  78% {
    transform: translate3d(0, 0, 0) rotate(1deg) scale(1.03, 0.97);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes walker-shadow-jump {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.66;
  }

  20% {
    transform: scaleX(1.16);
    opacity: 0.82;
  }

  48% {
    transform: scaleX(0.48);
    opacity: 0.22;
  }

  78% {
    transform: scaleX(1.12);
    opacity: 0.72;
  }
}

@keyframes walker-alert-pop {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 10px, 0) scale(0.68) rotate(-12deg);
  }

  18% {
    opacity: 1;
    transform: translate3d(-50%, -8px, 0) scale(1.14) rotate(8deg);
  }

  64% {
    opacity: 1;
    transform: translate3d(-50%, -18px, 0) scale(1) rotate(-5deg);
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -26px, 0) scale(0.82) rotate(10deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-stage-media__walker {
    animation: none;
    transform: translate3d(var(--walker-edge), 0, 0);
  }

  .page-stage-media__walker::before,
  .page-stage-media__walker-sprite,
  .page-stage-media__walker.is-surprised::before,
  .page-stage-media__walker.is-surprised .page-stage-media__walker-sprite,
  .page-stage-media__walker.is-surprised .page-stage-media__walker-alert {
    animation: none;
  }

  .page-stage-media__walker.is-surprised .page-stage-media__walker-alert {
    opacity: 1;
    transform: translate3d(-50%, -8px, 0) scale(1);
  }
}

html[data-time-bg="dawn"] {
  --time-scene-image: url("./media/bg-dawn-full-v4.webp?v=20260507d");
  --time-scene-filter: saturate(1.1) contrast(1.03) brightness(1.02);
  --time-scene-sun: rgba(255, 122, 70, 0.62);
  --time-scene-glow: rgba(107, 226, 201, 0.42);
  --time-scene-paint:
    linear-gradient(180deg, #102235 0%, #20495a 42%, #314538 68%, #171d20 100%);
}

html[data-time-bg="day"] {
  --time-scene-image: url("./media/bg-day-full-v4.webp?v=20260507d");
  --time-scene-filter: saturate(1.08) contrast(1.01) brightness(1.02);
  --time-scene-sun: rgba(255, 210, 92, 0.64);
  --time-scene-glow: rgba(81, 197, 180, 0.38);
  --time-scene-paint:
    linear-gradient(180deg, #9bc7d9 0%, #d7e5c9 38%, #92b48f 66%, #40524a 100%);
}

html[data-time-bg="noon"] {
  --time-scene-image: url("./media/bg-noon-full-v4.webp?v=20260507d");
  --time-scene-filter: saturate(1.06) contrast(1.01) brightness(1.02);
  --time-scene-sun: rgba(255, 187, 67, 0.72);
  --time-scene-glow: rgba(42, 183, 218, 0.35);
  --time-scene-paint:
    linear-gradient(180deg, #6ba9c6 0%, #d6cf99 44%, #af9b58 68%, #34433d 100%);
}

html[data-time-bg="evening"] {
  --time-scene-image: url("./media/bg-evening-full-v4.webp?v=20260507d");
  --time-scene-filter: saturate(1.16) contrast(1.04) brightness(1.03);
  --time-scene-sun: rgba(255, 86, 50, 0.72);
  --time-scene-glow: rgba(76, 226, 184, 0.48);
  --time-scene-paint:
    linear-gradient(180deg, #132f3d 0%, #174d46 28%, #964d2c 58%, #11191a 100%);
}

.workspace-window {
  position: fixed;
  top: 118px;
  bottom: 148px;
  left: 50%;
  translate: -50% 0;
  z-index: 1;
  width: min(calc(100vw - 72px), var(--max-width));
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(28px);
  overflow: hidden;
}

.desktop-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(239, 244, 250, 0.52)),
    rgba(255, 255, 255, 0.44);
  box-shadow:
    0 24px 36px rgba(93, 109, 136, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
  backdrop-filter: blur(28px) saturate(1.25);
  transform: translateX(-50%);
}

.dock-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease;
}

.dock-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.46);
  transform: translateX(-50%);
}

.dock-item:hover {
  transform: translateY(-5px) scale(1.06);
}

.desktop-icon--dock {
  width: 56px;
  height: 56px;
}

.desktop-icon--dock .desktop-icon__glyph {
  width: 22px;
  height: 22px;
}

.workspace-window__header,
.workspace-window__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}

.workspace-window__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: linear-gradient(180deg, rgba(253, 254, 255, 0.92), rgba(240, 245, 251, 0.88));
  border-bottom: 1px solid var(--line);
}

.window-controls,
.window-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.window-control {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  touch-action: manipulation;
}

.window-control--close {
  background: #ff5f57;
}

.window-control--minimize {
  background: #febc2e;
}

.window-control--expand {
  background: #28c840;
}

.window-file {
  display: inline-flex;
  align-items: center;
  gap: 0;
  justify-self: center;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.window-header-actions {
  justify-self: end;
  justify-content: flex-end;
  min-width: 120px;
  margin-left: 0;
  color: var(--muted-soft);
}

.window-action {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(31, 41, 55, 0.46);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.94) inset;
}

.window-action .symbol-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.workspace-window__toolbar {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.78), rgba(241, 246, 252, 0.72));
}

.toolbar-group {
  gap: 10px;
}

.toolbar-group--right {
  margin-left: auto;
}

.toolbar-pill,
.toolbar-icon,
.button--secondary {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
}

.toolbar-icon {
  position: relative;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(31, 41, 55, 0.64);
}

.toolbar-icon .symbol-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.toolbar-cta {
  min-height: 40px;
  padding-inline: 16px;
}

.workspace-window__body {
  padding: 18px 22px 124px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 16px;
  overflow: auto;
  overscroll-behavior: contain;
}

.hero-block {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.74fr);
  gap: 18px;
  align-items: center;
}

.hero-brand,
.hero-links {
  display: flex;
  align-items: center;
}

.hero-brand {
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.hero-brand strong {
  letter-spacing: 0.02em;
}

.hero-brand__mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  max-width: 9ch;
  font-size: clamp(2.45rem, 3.95vw, 3.58rem);
  line-height: 0.9;
}

.hero-copy__lede,
.hero-copy__support,
.feature-panel__copy p,
.notice-card p {
  color: var(--muted);
  line-height: 1.58;
}

.hero-copy__lede {
  max-width: 54ch;
  margin: 10px 0 2px;
  font-size: 0.96rem;
}

.hero-copy__support {
  max-width: 54ch;
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.hero-actions {
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.hero-links {
  gap: 14px;
  margin-top: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.96rem;
  flex-wrap: wrap;
}

.hero-links a {
  position: relative;
}

.hero-links a + a::before {
  content: "•";
  position: absolute;
  left: -10px;
  color: var(--muted-soft);
}

.hero-figure {
  min-height: 216px;
  display: grid;
  place-items: center;
}

.hero-illustration {
  width: min(100%, 304px);
  height: auto;
  filter: drop-shadow(0 20px 28px rgba(93, 109, 136, 0.14));
}

.orbit-ring {
  fill: rgba(255, 255, 255, 0.62);
  stroke: rgba(31, 41, 55, 0.8);
  stroke-width: 4;
}

.orbit-ring--small {
  stroke-width: 3.6;
}

.orbit-dot {
  fill: #ffb163;
  stroke: rgba(31, 41, 55, 0.82);
  stroke-width: 3;
}

.desk-shape {
  fill: rgba(255, 244, 231, 0.94);
  stroke: rgba(31, 41, 55, 0.82);
  stroke-width: 4;
}

.desk-leg {
  fill: rgba(31, 41, 55, 0.9);
}

.mug-body {
  fill: rgba(255, 255, 255, 0.92);
  stroke: rgba(31, 41, 55, 0.84);
  stroke-width: 4;
}

.mug-handle {
  fill: none;
  stroke: rgba(31, 41, 55, 0.84);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notebook {
  fill: rgba(31, 41, 55, 0.92);
  stroke: rgba(31, 41, 55, 0.84);
  stroke-width: 4;
}

.monitor-body {
  fill: rgba(255, 204, 161, 0.96);
  stroke: rgba(31, 41, 55, 0.84);
  stroke-width: 4;
}

.monitor-screen {
  fill: url(#monitorGradient);
  stroke: rgba(31, 41, 55, 0.22);
  stroke-width: 1.4;
}

.hero-illustration defs {
  display: block;
}

.monitor-stand {
  fill: rgba(31, 41, 55, 0.84);
}

.mascot-head,
.mascot-ear,
.paper-cube {
  fill: rgba(255, 255, 255, 0.96);
  stroke: rgba(31, 41, 55, 0.82);
  stroke-width: 4;
}

.mascot-body {
  fill: rgba(255, 170, 104, 0.96);
  stroke: rgba(31, 41, 55, 0.84);
  stroke-width: 4;
}

.mascot-eye {
  fill: rgba(31, 41, 55, 0.92);
}

.mascot-mouth {
  fill: none;
  stroke: rgba(31, 41, 55, 0.82);
  stroke-width: 3.4;
  stroke-linecap: round;
}

.mascot-arm {
  fill: none;
  stroke: rgba(31, 41, 55, 0.82);
  stroke-width: 8;
  stroke-linecap: round;
}

.paper-cube {
  fill: rgba(255, 255, 255, 0.9);
}

.spline-lab {
  margin-top: 2px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(67, 125, 253, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 250, 255, 0.58));
  box-shadow: var(--shadow-md);
}

.spline-lab__copy {
  display: grid;
  align-content: center;
  gap: 10px;
}

.spline-lab__eyebrow {
  margin: 0;
  color: rgba(67, 125, 253, 0.9);
  font-family: "SplineSans", "SF Pro Display", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spline-lab__copy h2 {
  max-width: 12ch;
  font-family: "SplineSans", "SF Pro Display", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.spline-lab__copy p {
  max-width: 44ch;
  margin: 0;
  color: rgba(31, 41, 55, 0.68);
  line-height: 1.58;
}

.spline-card {
  padding: 18px;
  display: grid;
  gap: 14px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.64);
  box-shadow:
    0 30px 44px rgba(67, 125, 253, 0.1),
    0 18px 32px rgba(93, 109, 136, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.94) inset;
  backdrop-filter: blur(28px);
  font-family: "SplineSans", "SF Pro Display", sans-serif;
}

.spline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.spline-pill,
.spline-chip,
.spline-stepper,
.spline-dropzone,
.spline-switch,
.spline-toolbar {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 252, 0.86));
  box-shadow:
    0 14px 26px rgba(93, 109, 136, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.96) inset;
}

.spline-pill,
.spline-chip,
.spline-dropzone {
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(26, 32, 44, 0.92);
  font-size: 0.95rem;
  font-weight: 500;
}

.spline-pill--meter {
  justify-content: flex-start;
}

.spline-meter-ring {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 54%, transparent 56%),
    conic-gradient(#4ad295 0 71%, rgba(74, 210, 149, 0.18) 71% 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.96) inset;
}

.spline-pill--split {
  padding-right: 10px;
  justify-content: space-between;
}

.spline-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(31, 41, 55, 0.08);
}

.spline-caret {
  font-size: 0.95rem;
  color: rgba(31, 41, 55, 0.68);
}

.spline-toolbar {
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spline-mini {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  color: rgba(31, 41, 55, 0.76);
  font-family: "SplineSans", "SF Pro Display", sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
}

.spline-mini.is-active {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 16px rgba(93, 109, 136, 0.12);
  color: rgba(26, 32, 44, 0.92);
}

.spline-mini--italic {
  font-style: italic;
}

.spline-chip--success {
  background:
    linear-gradient(180deg, rgba(198, 246, 213, 0.96), rgba(173, 238, 192, 0.9));
  color: #1c6038;
}

.spline-check {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
}

.spline-pill--text {
  justify-content: space-between;
}

.spline-chip--accent {
  background:
    linear-gradient(180deg, #5b86ff 0%, #437dfd 48%, #2f66f2 100%);
  color: #ffffff;
  box-shadow:
    0 18px 28px rgba(67, 125, 253, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.24) inset;
}

.spline-spark {
  font-size: 0.9rem;
}

.spline-chip--color {
  justify-content: flex-start;
}

.spline-swatch {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(180deg, #296cff, #0dafe8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.spline-close {
  margin-left: auto;
  color: rgba(31, 41, 55, 0.46);
}

.spline-stepper {
  padding: 8px;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  text-align: center;
  color: rgba(26, 32, 44, 0.92);
  font-weight: 500;
}

.spline-stepper button {
  width: 36px;
  height: 32px;
  border-radius: 8px;
  color: rgba(31, 41, 55, 0.72);
}

.spline-dropzone {
  justify-content: center;
  border-style: dashed;
  border-color: rgba(31, 41, 55, 0.18);
  color: rgba(31, 41, 55, 0.68);
}

.spline-dropzone__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.spline-row--bottom {
  align-items: center;
}

.spline-switch {
  width: 110px;
  padding: 4px;
  justify-self: end;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #2fd181 0%, #1cc468 100%);
  box-shadow:
    0 18px 28px rgba(47, 209, 129, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.spline-switch span {
  width: 40px;
  height: 40px;
  display: block;
  margin-left: auto;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 246, 251, 0.92));
  box-shadow:
    0 10px 20px rgba(31, 41, 55, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.94) inset;
}

.feature-tabs {
  margin-top: 4px;
}

.feature-tablist {
  display: flex;
  gap: 10px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.feature-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.feature-tab:hover {
  transform: translateY(-1px);
}

.feature-tab.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow:
    0 16px 26px rgba(10, 132, 255, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.feature-panel {
  margin-top: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-md);
}

.feature-panel__copy h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 0.94;
}

.feature-panel__copy p {
  max-width: 56ch;
  margin-top: 12px;
  font-size: 0.98rem;
}

.feature-panel__grid {
  display: grid;
  gap: 14px;
}

.feature-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.feature-card__label {
  margin: 0 0 10px;
  color: var(--muted-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card h3 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.notice-card {
  position: fixed;
  right: 18px;
  bottom: 112px;
  z-index: 2;
  width: min(340px, calc(100vw - 30px));
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(24px);
}

.notice-card__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.96) inset;
  color: var(--muted);
  line-height: 1;
  font-size: 1rem;
}

.notice-card strong {
  display: block;
  max-width: 15ch;
  padding-right: 28px;
  font-size: 1rem;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.notice-card p {
  margin: 10px 0 0;
  max-width: 24ch;
  font-size: 0.92rem;
}

@media (max-width: 1240px) {
  .workspace-window {
    width: min(calc(100vw - 48px), var(--max-width));
  }
}

@media (max-width: 920px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 12px 14px;
  }

  .site-header__left,
  .site-header__right,
  .top-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page {
    min-height: auto;
    display: block;
    padding-top: 14px;
  }

  .workspace-window {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    translate: none;
    width: calc(100% - 20px);
    min-height: auto;
    margin: 0 auto;
    display: block;
  }

  .workspace-window--expanded {
    top: auto;
    bottom: auto;
    width: calc(100% - 20px);
  }

  .hero-block,
  .spline-lab,
  .feature-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-figure {
    min-height: 240px;
  }

  .spline-card {
    max-width: 520px;
  }

  .notice-card {
    position: static;
    width: calc(100% - 20px);
    margin: 16px auto 0;
  }

  .desktop-dock {
    position: fixed;
    left: 50%;
    bottom: 18px;
    width: fit-content;
    max-width: calc(100% - 20px);
    margin: 0;
    transform: translateX(-50%);
  }
}

@media (max-width: 700px) {
  .header-panel {
    top: 94px;
    padding: 0 12px 8px;
  }

  .header-panel__shell {
    position: relative;
    left: auto;
    width: 100%;
    max-width: none;
    padding: 6px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 12px;
  }

  .top-nav {
    gap: 14px;
    font-size: 0.9rem;
  }

  .header-cta {
    width: 100%;
  }

  .desktop-dock {
    position: fixed;
    display: inline-flex;
    left: 12px;
    right: 12px;
    bottom: 10px;
    max-width: none;
    width: auto;
    transform: none;
    overflow-x: auto;
  }

  .workspace-window__header,
  .workspace-window__toolbar,
  .workspace-window__body {
    padding-inline: 14px;
  }

  .workspace-window__header {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 10px;
  }

  .window-controls,
  .window-header-actions {
    order: initial;
  }

  .window-file {
    width: 100%;
    justify-content: center;
  }

  .workspace-window__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-group--right {
    margin-left: 0;
    justify-content: stretch;
  }

  .toolbar-cta {
    flex: 1;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button--primary,
  .button--secondary {
    width: 100%;
  }

  .hero-links {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .spline-lab {
    padding: 18px;
  }

  .spline-row {
    grid-template-columns: 1fr;
  }

  .spline-switch {
    justify-self: start;
  }

  .feature-tablist {
    display: grid;
    grid-template-columns: 1fr;
  }

  .feature-tab {
    width: 100%;
  }

  .feature-panel__copy h2 {
    max-width: none;
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }
}

body.apple-liquid-page {
  background:
    radial-gradient(circle at 18% 16%, rgba(106, 171, 255, 0.24), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(255, 176, 209, 0.18), transparent 24%),
    radial-gradient(circle at 50% 96%, rgba(161, 255, 206, 0.15), transparent 28%),
    linear-gradient(180deg, #0d1120 0%, #0a0e18 44%, #07090f 100%);
}

body.apple-liquid-page::before,
body.apple-liquid-page::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: 0;
  width: 38vw;
  height: 38vw;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(80px);
}

body.apple-liquid-page::before {
  top: 10vh;
  left: 8vw;
  background: rgba(88, 142, 255, 0.16);
}

body.apple-liquid-page::after {
  right: 12vw;
  bottom: 18vh;
  background: rgba(255, 171, 214, 0.14);
}

.apple-liquid-page .wallpaper-speckle {
  opacity: 0.08;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.6) 0.5px, transparent 0.8px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  background-size: 26px 26px, auto;
}

.apple-liquid-page .desktop-rail,
.apple-liquid-page .notice-card,
.apple-liquid-page .workspace-window__header,
.apple-liquid-page .workspace-window__toolbar {
  display: none;
}

.apple-liquid-page .site-header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  padding: 0 24px;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

.apple-liquid-page .site-header__left,
.apple-liquid-page .site-header__right {
  width: fit-content;
  padding: 10px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08)),
    rgba(246, 249, 255, 0.1);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.26),
    0 6px 20px rgba(109, 147, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -12px 24px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(30px) saturate(1.55);
  pointer-events: auto;
}

.apple-liquid-page .site-header__right {
  margin-left: auto;
}

.apple-liquid-page .top-logo {
  color: rgba(255, 255, 255, 0.98);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.apple-liquid-page .top-logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.apple-liquid-page .header-view-toggle,
.apple-liquid-page .header-icon-button,
.apple-liquid-page .header-select,
.apple-liquid-page .header-share,
.apple-liquid-page .header-avatar {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -10px 20px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px) saturate(1.4);
}

.apple-liquid-page .header-view-toggle,
.apple-liquid-page .header-icon-button {
  width: 46px;
  color: rgba(255, 255, 255, 0.92);
}

.apple-liquid-page .header-view-toggle .symbol-icon,
.apple-liquid-page .header-icon-button .symbol-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.apple-liquid-page .control-island {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.apple-liquid-page .header-avatar {
  width: 46px;
  padding: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(215, 228, 255, 0.9), rgba(156, 174, 226, 0.64)),
    rgba(255, 255, 255, 0.18);
}

.apple-liquid-page .header-avatar__face {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 999px 999px 10px 10px;
  background:
    radial-gradient(circle at 50% 34%, #0d1117 0 26%, transparent 27%),
    radial-gradient(circle at 50% 100%, #0d1117 0 40%, transparent 41%);
}

.apple-liquid-page .header-select {
  min-width: 110px;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.98);
  font-size: 1.05rem;
  font-weight: 560;
}

.apple-liquid-page .header-share {
  padding: 0 22px;
  color: rgba(255, 255, 255, 0.98);
  font-weight: 600;
}

.apple-liquid-page .page {
  min-height: 100vh;
  padding: 120px 0 144px;
}

.apple-liquid-page .workspace-window {
  width: min(calc(100% - 64px), 1040px);
  min-height: 760px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 40px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.38) 28%, rgba(255, 255, 255, 0.1) 66%),
    linear-gradient(180deg, rgba(246, 250, 255, 0.5), rgba(228, 237, 255, 0.18));
  box-shadow:
    0 56px 120px rgba(0, 0, 0, 0.36),
    0 16px 48px rgba(106, 148, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -24px 36px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(42px) saturate(1.6);
}

.apple-liquid-page .workspace-window__body {
  padding: 40px 42px 36px;
  gap: 28px;
}

.apple-liquid-page .hero-block {
  gap: 28px;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.78fr);
}

.apple-liquid-page .hero-brand {
  margin-bottom: 14px;
}

.apple-liquid-page .hero-brand strong {
  color: rgba(15, 23, 42, 0.88);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.apple-liquid-page .hero-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.14)),
    linear-gradient(180deg, rgba(90, 146, 255, 0.82), rgba(41, 112, 255, 0.94));
  box-shadow:
    0 18px 26px rgba(59, 110, 228, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.apple-liquid-page .hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(3.6rem, 6vw, 5.4rem);
  line-height: 0.9;
  color: rgba(12, 18, 32, 0.96);
  letter-spacing: -0.07em;
}

.apple-liquid-page .hero-copy__lede,
.apple-liquid-page .hero-copy__support,
.apple-liquid-page .feature-panel__copy p,
.apple-liquid-page .feature-list {
  color: rgba(31, 41, 55, 0.68);
}

.apple-liquid-page .hero-actions {
  gap: 14px;
}

.apple-liquid-page .button--primary,
.apple-liquid-page .toolbar-cta {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(103, 162, 255, 0.98), rgba(55, 121, 255, 0.96)),
    rgba(62, 124, 255, 0.86);
  color: #ffffff;
  box-shadow:
    0 24px 36px rgba(62, 124, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.apple-liquid-page .button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.22);
  color: rgba(17, 24, 39, 0.86);
  box-shadow:
    0 20px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(18px);
}

.apple-liquid-page .hero-links {
  color: rgba(31, 41, 55, 0.62);
}

.apple-liquid-page .hero-figure {
  position: relative;
  min-height: 360px;
}

.apple-liquid-page .hero-figure::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.08) 55%),
    linear-gradient(180deg, rgba(112, 175, 255, 0.16), rgba(255, 192, 224, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 28px 50px rgba(77, 111, 184, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(28px);
}

.apple-liquid-page .hero-illustration {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  filter: drop-shadow(0 40px 54px rgba(83, 117, 186, 0.16));
}

.apple-liquid-page .orbit-ring {
  fill: rgba(255, 255, 255, 0.34);
  stroke: rgba(88, 104, 135, 0.42);
}

.apple-liquid-page .orbit-dot {
  fill: rgba(145, 197, 255, 0.96);
  stroke: rgba(88, 104, 135, 0.28);
}

.apple-liquid-page .desk-shape,
.apple-liquid-page .mascot-head,
.apple-liquid-page .mascot-ear,
.apple-liquid-page .paper-cube,
.apple-liquid-page .mug-body {
  fill: rgba(255, 255, 255, 0.56);
  stroke: rgba(90, 112, 148, 0.26);
}

.apple-liquid-page .mug-handle,
.apple-liquid-page .mascot-mouth,
.apple-liquid-page .mascot-arm {
  stroke: rgba(90, 112, 148, 0.3);
}

.apple-liquid-page .desk-leg,
.apple-liquid-page .notebook,
.apple-liquid-page .monitor-stand,
.apple-liquid-page .mascot-eye {
  fill: rgba(72, 95, 138, 0.58);
}

.apple-liquid-page .monitor-body {
  fill: rgba(255, 255, 255, 0.36);
  stroke: rgba(90, 112, 148, 0.24);
}

.apple-liquid-page .monitor-screen {
  stroke: rgba(255, 255, 255, 0.18);
}

.apple-liquid-page .mascot-body {
  fill: rgba(122, 202, 255, 0.3);
  stroke: rgba(90, 112, 148, 0.24);
}

.apple-liquid-page .feature-tablist {
  padding: 8px;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(22px);
}

.apple-liquid-page .feature-tab {
  flex: 1;
  min-height: 50px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(15, 23, 42, 0.52);
  font-weight: 650;
}

.apple-liquid-page .feature-tab.is-active {
  color: rgba(15, 23, 42, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(238, 244, 255, 0.64)),
    rgba(255, 255, 255, 0.48);
  box-shadow:
    0 16px 26px rgba(108, 135, 184, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.apple-liquid-page .feature-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    0 28px 44px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(24px);
}

.apple-liquid-page .feature-card {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.26)),
    rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.apple-liquid-page .feature-card__label {
  color: rgba(31, 41, 55, 0.46);
}

.apple-liquid-page .desktop-dock {
  bottom: 26px;
  padding: 10px 14px;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 36px 68px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(34px) saturate(1.45);
}

.apple-liquid-page .dock-item {
  transform-origin: center bottom;
}

.apple-liquid-page .dock-item::after {
  display: none;
}

.apple-liquid-page .desktop-dock .desktop-icon--app {
  width: 52px;
  height: 52px;
  color: rgba(23, 34, 56, 0.84);
}

.apple-liquid-page .desktop-dock .desktop-icon--app::before {
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(222, 232, 250, 0.44)),
    rgba(255, 255, 255, 0.26);
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.apple-liquid-page .desktop-dock .desktop-icon--app::after {
  inset: 3px 5px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
}

.apple-liquid-page .dock-item.is-active .desktop-icon--app {
  color: #ffffff;
}

.apple-liquid-page .dock-item.is-active .desktop-icon--app::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, #69a9ff 0%, #2c7cff 100%);
  box-shadow:
    0 24px 36px rgba(50, 118, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.apple-liquid-page .dock-item.is-active {
  transform: translateY(-8px) scale(1.06);
}

.apple-liquid-page .dock-item:hover {
  transform: translateY(-5px) scale(1.04);
}

@media (max-width: 920px) {
  .apple-liquid-page .site-header {
    top: 14px;
    padding-inline: 14px;
    flex-direction: row;
  }

  .apple-liquid-page .site-header__left,
  .apple-liquid-page .site-header__right {
    padding: 9px 12px;
  }

  .apple-liquid-page .page {
    padding-top: 96px;
  }

  .apple-liquid-page .workspace-window {
    width: calc(100% - 20px);
    min-height: auto;
  }

  .apple-liquid-page .workspace-window__body {
    padding: 24px 20px 22px;
  }

  .apple-liquid-page .hero-block,
  .apple-liquid-page .feature-panel {
    grid-template-columns: 1fr;
  }

  .apple-liquid-page .hero-copy h1 {
    max-width: none;
    font-size: clamp(3rem, 10vw, 4.6rem);
  }

  .apple-liquid-page .feature-tablist {
    display: grid;
    grid-template-columns: 1fr;
  }

  .apple-liquid-page .desktop-dock {
    position: static;
    width: fit-content;
    max-width: calc(100% - 20px);
    margin: 18px auto 0;
    transform: none;
  }
}

@media (max-width: 640px) {
  .apple-liquid-page .site-header {
    gap: 10px;
    padding-inline: 10px;
  }

  .apple-liquid-page .site-header__left,
  .apple-liquid-page .site-header__right {
    width: 100%;
    justify-content: space-between;
  }

  .apple-liquid-page .control-island {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .apple-liquid-page .header-select {
    min-width: 84px;
    padding-inline: 14px;
  }

  .apple-liquid-page .header-share {
    padding-inline: 14px;
    font-size: 0.92rem;
  }

  .apple-liquid-page .page {
    padding-top: 118px;
    padding-bottom: 24px;
  }

  .apple-liquid-page .workspace-window {
    border-radius: 30px;
  }

  .apple-liquid-page .workspace-window__body {
    padding: 20px 16px 18px;
  }

  .apple-liquid-page .hero-figure {
    min-height: 280px;
  }

  .apple-liquid-page .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .apple-liquid-page .button--primary,
  .apple-liquid-page .button--secondary {
    width: 100%;
  }

  .apple-liquid-page .desktop-dock {
    display: none;
  }
}

body.apple-template-skin {
  background:
    radial-gradient(circle at 14% 18%, rgba(111, 169, 255, 0.24), transparent 22%),
    radial-gradient(circle at 82% 16%, rgba(255, 173, 222, 0.18), transparent 20%),
    radial-gradient(circle at 50% 92%, rgba(130, 255, 204, 0.14), transparent 24%),
    linear-gradient(180deg, #101522 0%, #0c111c 48%, #090d14 100%);
}

.apple-template-skin .wallpaper-speckle {
  opacity: 0.09;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.62) 0.5px, transparent 0.8px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  background-size: 28px 28px, auto;
}

.apple-template-skin .site-header {
  width: min(calc(100% - 24px), 1320px);
  margin: 14px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 26px 46px rgba(0, 0, 0, 0.24),
    0 10px 24px rgba(98, 137, 227, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    inset 0 -14px 22px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(30px) saturate(1.5);
}

.apple-template-skin .site-header__left,
.apple-template-skin .site-header__right {
  gap: 14px;
}

.apple-template-skin .top-logo {
  color: rgba(255, 255, 255, 0.96);
}

.apple-template-skin .top-logo__mark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(97, 151, 255, 0.96), rgba(46, 116, 255, 0.96));
  box-shadow:
    0 18px 28px rgba(49, 100, 212, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.apple-template-skin .top-nav {
  color: rgba(255, 255, 255, 0.74);
}

.apple-template-skin .top-nav a:hover {
  color: rgba(255, 255, 255, 0.98);
}

.apple-template-skin .header-cta {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(104, 162, 255, 0.98), rgba(53, 121, 255, 0.94)),
    rgba(62, 124, 255, 0.82);
  color: #ffffff;
  box-shadow:
    0 22px 34px rgba(56, 122, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.apple-template-skin .header-utilities {
  gap: 10px;
}

.apple-template-skin .header-utility {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(1.4);
}

.apple-template-skin .rail-item {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.apple-template-skin .workspace-window {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.34) 28%, rgba(255, 255, 255, 0.08) 64%),
    linear-gradient(180deg, rgba(245, 249, 255, 0.48), rgba(230, 238, 252, 0.16));
  box-shadow:
    0 56px 120px rgba(0, 0, 0, 0.34),
    0 16px 42px rgba(105, 148, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -24px 36px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(38px) saturate(1.55);
}

.apple-template-skin .workspace-window__header,
.apple-template-skin .workspace-window__toolbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.08);
}

.apple-template-skin .window-file,
.apple-template-skin .window-header-actions,
.apple-template-skin .toolbar-icon,
.apple-template-skin .toolbar-pill {
  color: rgba(28, 36, 52, 0.82);
}

.apple-template-skin .window-action,
.apple-template-skin .toolbar-icon,
.apple-template-skin .toolbar-pill,
.apple-template-skin .button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    0 16px 26px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
}

.apple-template-skin .toolbar-cta,
.apple-template-skin .button--primary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(104, 162, 255, 0.98), rgba(53, 121, 255, 0.94)),
    rgba(62, 124, 255, 0.82);
  color: #ffffff;
  box-shadow:
    0 24px 36px rgba(56, 122, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.apple-template-skin .workspace-window__body {
  padding: 24px 26px 24px;
  gap: 20px;
}

.apple-template-skin .hero-brand strong,
.apple-template-skin .hero-copy h1,
.apple-template-skin .feature-panel__copy h2,
.apple-template-skin .feature-card h3 {
  color: rgba(14, 20, 33, 0.95);
}

.apple-template-skin .hero-brand__mark {
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, rgba(97, 151, 255, 0.88), rgba(46, 116, 255, 0.94));
  box-shadow:
    0 16px 24px rgba(49, 100, 212, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.apple-template-skin .hero-figure::before {
  content: "";
  position: absolute;
  inset: 6% 8%;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.08) 55%),
    linear-gradient(180deg, rgba(112, 175, 255, 0.16), rgba(255, 192, 224, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 26px 48px rgba(82, 116, 184, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(24px);
}

.apple-template-skin .hero-figure {
  position: relative;
}

.apple-template-skin .hero-illustration {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 34px 46px rgba(84, 118, 184, 0.16));
}

.apple-template-skin .desk-shape,
.apple-template-skin .mascot-head,
.apple-template-skin .mascot-ear,
.apple-template-skin .paper-cube,
.apple-template-skin .mug-body {
  fill: rgba(255, 255, 255, 0.6);
  stroke: rgba(92, 114, 148, 0.22);
}

.apple-template-skin .mug-handle,
.apple-template-skin .mascot-mouth,
.apple-template-skin .mascot-arm {
  stroke: rgba(92, 114, 148, 0.28);
}

.apple-template-skin .desk-leg,
.apple-template-skin .notebook,
.apple-template-skin .monitor-stand,
.apple-template-skin .mascot-eye {
  fill: rgba(74, 94, 136, 0.56);
}

.apple-template-skin .monitor-body {
  fill: rgba(255, 255, 255, 0.34);
  stroke: rgba(92, 114, 148, 0.22);
}

.apple-template-skin .mascot-body {
  fill: rgba(122, 202, 255, 0.32);
  stroke: rgba(92, 114, 148, 0.22);
}

.apple-template-skin .spline-lab,
.apple-template-skin .feature-panel,
.apple-template-skin .notice-card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.1);
  box-shadow:
    0 28px 44px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(26px) saturate(1.35);
}

.apple-template-skin .feature-tablist {
  padding: 8px;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.14)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(20px);
}

.apple-template-skin .feature-tab {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(18, 24, 38, 0.52);
}

.apple-template-skin .feature-tab.is-active {
  color: rgba(18, 24, 38, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 244, 255, 0.58)),
    rgba(255, 255, 255, 0.36);
  box-shadow:
    0 14px 24px rgba(107, 136, 184, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.apple-template-skin .feature-card {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.apple-template-skin .desktop-dock {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 34px 64px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(34px) saturate(1.45);
}

.apple-template-skin .desktop-dock .desktop-icon--app {
  color: rgba(22, 33, 56, 0.84);
}

.apple-template-skin .desktop-dock .desktop-icon--app::before {
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(222, 232, 250, 0.44)),
    rgba(255, 255, 255, 0.26);
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.apple-template-skin .dock-item:first-child .desktop-icon--app {
  color: #ffffff;
}

.apple-template-skin .dock-item:first-child .desktop-icon--app::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, #69a9ff 0%, #2c7cff 100%);
  box-shadow:
    0 24px 36px rgba(50, 118, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

@media (max-width: 920px) {
  .apple-template-skin .site-header {
    width: calc(100% - 20px);
    padding: 12px 14px;
  }

  .apple-template-skin .site-header__left,
  .apple-template-skin .site-header__right,
  .apple-template-skin .top-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .apple-template-skin .site-header {
    margin-top: 10px;
  }

  .apple-template-skin .header-utilities {
    width: 100%;
    justify-content: center;
  }

  .apple-template-skin .header-utility {
    width: 34px;
    height: 34px;
  }
}

:root {
  --liquid-border: rgba(255, 255, 255, 0.56);
  --liquid-border-soft: rgba(130, 148, 181, 0.24);
  --liquid-panel:
    radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.94), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(243, 248, 255, 0.54) 58%, rgba(230, 238, 250, 0.34));
  --liquid-panel-soft:
    radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.9), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(244, 248, 255, 0.44) 60%, rgba(233, 240, 251, 0.28));
  --liquid-shadow:
    0 26px 46px rgba(94, 111, 142, 0.16),
    0 8px 18px rgba(94, 111, 142, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -18px 24px rgba(220, 229, 242, 0.18);
  --liquid-shadow-sm:
    0 16px 28px rgba(94, 111, 142, 0.12),
    0 4px 10px rgba(94, 111, 142, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -10px 16px rgba(220, 229, 242, 0.16);
  --liquid-primary:
    radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.36), transparent 56%),
    linear-gradient(180deg, rgba(125, 187, 255, 0.96), rgba(61, 139, 255, 0.96) 54%, rgba(28, 106, 251, 0.92));
  --liquid-primary-shadow:
    0 22px 38px rgba(52, 118, 255, 0.24),
    0 6px 14px rgba(52, 118, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -10px 18px rgba(8, 73, 207, 0.18);
}

.workspace-window {
  border-color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.52) 28%, rgba(238, 244, 253, 0.24) 100%),
    rgba(255, 255, 255, 0.52);
  box-shadow:
    0 42px 84px rgba(89, 107, 138, 0.16),
    0 14px 26px rgba(89, 107, 138, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(30px) saturate(1.35);
}

.workspace-window__header,
.workspace-window__toolbar {
  border-bottom-color: rgba(129, 149, 184, 0.16);
  background:
    radial-gradient(circle at 50% -22%, rgba(255, 255, 255, 0.94), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(243, 248, 255, 0.46));
}

.header-cta,
.toolbar-cta,
.button--primary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: var(--liquid-primary);
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(18, 60, 158, 0.2);
  box-shadow: var(--liquid-primary-shadow);
  backdrop-filter: blur(22px) saturate(1.45);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.header-cta,
.toolbar-cta,
.button--primary,
.button--secondary {
  border-radius: 999px;
}

.header-cta:hover,
.toolbar-cta:hover,
.button--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 28px 44px rgba(52, 118, 255, 0.28),
    0 8px 18px rgba(52, 118, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -12px 20px rgba(8, 73, 207, 0.2);
}

.header-utility,
.window-action,
.toolbar-pill,
.toolbar-icon,
.button--secondary,
.notice-card__close {
  border: 1px solid var(--liquid-border);
  background: var(--liquid-panel);
  color: rgba(24, 34, 54, 0.82);
  box-shadow: var(--liquid-shadow-sm);
  backdrop-filter: blur(24px) saturate(1.35);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.header-utility {
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

.header-utility:hover,
.window-action:hover,
.toolbar-pill:hover,
.toolbar-icon:hover,
.button--secondary:hover,
.notice-card__close:hover {
  transform: translateY(-1px);
  background: var(--liquid-panel-soft);
  color: rgba(18, 28, 46, 0.92);
  box-shadow:
    0 20px 34px rgba(94, 111, 142, 0.14),
    0 5px 12px rgba(94, 111, 142, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -12px 18px rgba(220, 229, 242, 0.18);
}

.window-action,
.toolbar-icon {
  border-radius: 14px;
}

.toolbar-pill {
  border-radius: 999px;
  padding-inline: 16px;
  color: rgba(22, 32, 50, 0.74);
}

.button--secondary {
  color: rgba(22, 32, 50, 0.86);
}

.desktop-dock {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.94), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(241, 246, 254, 0.34)),
    rgba(255, 255, 255, 0.28);
  box-shadow:
    0 30px 58px rgba(91, 108, 139, 0.16),
    0 10px 24px rgba(91, 108, 139, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px) saturate(1.4);
}

.dock-item::after {
  background: rgba(37, 47, 66, 0.28);
}

.desktop-dock .desktop-icon--app {
  width: 62px;
  height: 62px;
  color: rgba(17, 31, 56, 0.92);
}

.desktop-dock .desktop-icon--app::before {
  inset: 0;
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.42), transparent 42%),
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--icon-top) 88%, white 12%) 0%, var(--icon-top) 26%, var(--icon-bottom) 100%);
  box-shadow:
    0 22px 32px color-mix(in srgb, var(--icon-bottom) 28%, transparent),
    0 8px 18px rgba(57, 76, 112, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    inset 0 -10px 18px rgba(0, 0, 0, 0.16);
}

.desktop-dock .desktop-icon--app::after {
  inset: 3px 5px 28px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.12));
  opacity: 0.94;
}

.desktop-dock .desktop-icon--app .desktop-icon__glyph--dock-macos {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.18))
    drop-shadow(0 5px 8px rgba(18, 31, 63, 0.12));
}

.desktop-dock .desktop-icon--dock-finder {
  color: rgba(22, 38, 68, 0.9);
}

.desktop-dock .desktop-icon--dock-finder::before {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.44), transparent 42%),
    linear-gradient(90deg, #9fe2ff 0 49.5%, #4eb9ff 49.5% 52%, #0e86ff 52% 100%);
}

.desktop-dock .desktop-icon--dock-docs {
  color: rgba(99, 68, 28, 0.88);
}

.desktop-dock .desktop-icon--dock-docs::before {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.44), transparent 42%),
    linear-gradient(180deg, #ffe7a4 0%, #ffd56f 42%, #ffb93c 100%);
}

.desktop-dock .desktop-icon--dock-preview {
  color: rgba(24, 52, 78, 0.88);
}

.desktop-dock .desktop-icon--dock-preview::before {
  background:
    radial-gradient(circle at 72% 16%, rgba(255, 250, 183, 0.9), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, #94dcff 0%, #71c2ff 32%, #67dbaa 100%);
}

.desktop-dock .desktop-icon--dock-messages {
  color: #ffffff;
}

.desktop-dock .desktop-icon--dock-messages::before {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.44), transparent 42%),
    linear-gradient(180deg, #64eb83 0%, #33d960 48%, #13c24a 100%);
}

.desktop-dock .desktop-icon--dock-launch {
  color: rgba(255, 255, 255, 0.98);
}

.desktop-dock .desktop-icon--dock-launch::before {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.44), transparent 42%),
    linear-gradient(180deg, #c39dff 0%, #9b72ff 42%, #6b4df0 100%);
}

.desktop-dock .desktop-icon--dock-messages .desktop-icon__glyph--dock-macos,
.desktop-dock .desktop-icon--dock-launch .desktop-icon__glyph--dock-macos {
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.12))
    drop-shadow(0 5px 8px rgba(0, 0, 0, 0.16));
}

.desktop-dock .desktop-icon--dock-finder .desktop-icon__glyph--dock-macos {
  width: 34px;
  height: 34px;
}

.desktop-dock .desktop-icon--dock-docs .desktop-icon__glyph--dock-macos {
  width: 28px;
  height: 28px;
}

.desktop-dock .desktop-icon--dock-preview .desktop-icon__glyph--dock-macos {
  width: 33px;
  height: 33px;
}

.desktop-dock .desktop-icon--dock-messages .desktop-icon__glyph--dock-macos {
  width: 31px;
  height: 31px;
}

.desktop-dock .desktop-icon--dock-launch .desktop-icon__glyph--dock-macos {
  width: 30px;
  height: 30px;
}

.dock-item:hover .desktop-icon--app::before {
  box-shadow:
    0 28px 40px color-mix(in srgb, var(--icon-bottom) 32%, transparent),
    0 10px 22px rgba(57, 76, 112, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -10px 18px rgba(0, 0, 0, 0.18);
}

.feature-tablist {
  padding: 6px;
  gap: 6px;
  border: 1px solid var(--liquid-border);
  border-radius: 999px;
  background: var(--liquid-panel-soft);
  box-shadow: var(--liquid-shadow-sm);
  backdrop-filter: blur(24px) saturate(1.35);
}

.feature-tab {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: rgba(23, 33, 52, 0.56);
  font-weight: 600;
}

.feature-tab:hover {
  transform: none;
  color: rgba(23, 33, 52, 0.82);
}

.feature-tab.is-active {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.96), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 247, 255, 0.58));
  color: rgba(18, 28, 45, 0.92);
  box-shadow:
    0 14px 24px rgba(100, 119, 151, 0.14),
    0 4px 10px rgba(100, 119, 151, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.feature-panel,
.feature-card,
.notice-card {
  border: 1px solid var(--liquid-border);
  background:
    radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.96), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(243, 248, 255, 0.46) 58%, rgba(230, 238, 250, 0.28));
  box-shadow: var(--liquid-shadow);
  backdrop-filter: blur(28px) saturate(1.32);
}

.feature-panel {
  border-radius: 28px;
}

.feature-card {
  border-color: rgba(255, 255, 255, 0.64);
  border-radius: 22px;
}

.feature-card__label {
  color: rgba(68, 84, 114, 0.58);
  letter-spacing: 0.16em;
}

.notice-card {
  border-radius: 26px;
}

.notice-card__close {
  border-radius: 999px;
}

/* Theme compare overrides */
html[data-theme] body {
  background: var(--theme-body-bg);
}

html[data-theme] .wallpaper-speckle {
  opacity: var(--theme-speckle-opacity, 0.26);
  background-image: var(--theme-speckle-image);
  background-size: var(--theme-speckle-size, 22px 22px, 22px 22px, auto);
  background-position: var(--theme-speckle-position, 0 0, 11px 11px, 0 0);
}

html[data-theme] .site-header {
  border-bottom: 1px solid var(--theme-edge);
  background: var(--theme-header-bg);
  box-shadow: var(--theme-header-shadow);
  backdrop-filter: blur(var(--theme-header-blur, 26px)) saturate(var(--theme-header-saturation, 1.18));
}

html[data-theme] .top-nav,
html[data-theme] .hero-links,
html[data-theme] .hero-copy__support,
html[data-theme] .hero-copy__lede,
html[data-theme] .feature-card__label,
html[data-theme] .notice-card p {
  color: var(--theme-muted);
}

html[data-theme] .top-logo__mark,
html[data-theme] .hero-brand__mark {
  color: var(--theme-brand-ink, #ffffff);
  background: none;
  box-shadow: none;
}

html[data-theme] .workspace-window {
  border: 1px solid var(--theme-edge-strong);
  background: var(--theme-window-bg);
  box-shadow: var(--theme-window-shadow);
  backdrop-filter: blur(var(--theme-window-blur, 28px)) saturate(var(--theme-window-saturation, 1.28));
}

html[data-theme] .workspace-window__header,
html[data-theme] .workspace-window__toolbar {
  border-bottom: 1px solid var(--theme-edge);
  background: var(--theme-toolbar-bg);
}

html[data-theme] .header-cta,
html[data-theme] .toolbar-cta,
html[data-theme] .button--primary {
  border: 1px solid var(--theme-primary-border);
  background: var(--theme-primary-bg);
  color: var(--theme-primary-text);
  text-shadow: var(--theme-primary-text-shadow, none);
  box-shadow: var(--theme-primary-shadow);
}

html[data-theme] .header-cta:hover,
html[data-theme] .toolbar-cta:hover,
html[data-theme] .button--primary:hover {
  box-shadow: var(--theme-primary-shadow-hover);
}

html[data-theme] .header-utility,
html[data-theme] .window-action,
html[data-theme] .toolbar-pill,
html[data-theme] .toolbar-icon,
html[data-theme] .button--secondary,
html[data-theme] .notice-card__close {
  border: 1px solid var(--theme-control-border);
  background: var(--theme-control-bg);
  color: var(--theme-control-text);
  box-shadow: var(--theme-control-shadow);
  backdrop-filter: blur(var(--theme-control-blur, 24px)) saturate(var(--theme-control-saturation, 1.3));
}

html[data-theme] .window-control {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74) inset,
    0 0 0 0.5px rgba(0, 0, 0, 0.08);
}

html[data-theme] .feature-tablist {
  border: 1px solid var(--theme-tab-border);
  background: var(--theme-tablist-bg);
  box-shadow: var(--theme-tablist-shadow);
  backdrop-filter: blur(var(--theme-tab-blur, 24px)) saturate(var(--theme-tab-saturation, 1.25));
}

html[data-theme] .feature-tab {
  color: var(--theme-tab-text);
}

html[data-theme] .feature-tab:hover {
  color: var(--theme-tab-text-hover);
}

html[data-theme] .feature-tab.is-active {
  border: 1px solid var(--theme-tab-active-border);
  background: var(--theme-tab-active-bg);
  color: var(--theme-tab-active-text);
  box-shadow: var(--theme-tab-active-shadow);
}

html[data-theme] .feature-panel,
html[data-theme] .feature-card,
html[data-theme] .notice-card {
  border: 1px solid var(--theme-panel-border);
  background: var(--theme-panel-bg);
  box-shadow: var(--theme-panel-shadow);
  backdrop-filter: blur(var(--theme-panel-blur, 28px)) saturate(var(--theme-panel-saturation, 1.25));
}

html[data-theme] .desktop-dock {
  border: 1px solid var(--theme-dock-border);
  background: var(--theme-dock-bg);
  box-shadow: var(--theme-dock-shadow);
  backdrop-filter: blur(var(--theme-dock-blur, 28px)) saturate(var(--theme-dock-saturation, 1.3));
}

html[data-theme] .dock-item::after {
  background: var(--theme-dock-dot);
}

html[data-theme] .desktop-dock .desktop-icon--app {
  color: var(--theme-dock-glyph, rgba(23, 34, 58, 0.92));
}

html[data-theme] .desktop-dock .desktop-icon--app::before {
  border-radius: var(--theme-dock-radius, 18px);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.52), transparent 34%),
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.26), transparent 30%),
    linear-gradient(180deg, var(--icon-top) 0%, color-mix(in srgb, var(--icon-top) 64%, var(--icon-bottom) 36%) 40%, var(--icon-bottom) 100%);
  box-shadow: var(--theme-dock-icon-shadow);
}

html[data-theme] .desktop-dock .desktop-icon--app::after {
  inset: var(--theme-dock-after-inset, 3px 5px 27px);
  border-radius: var(--theme-dock-after-radius, 15px);
  background: var(--theme-dock-after-bg);
  opacity: var(--theme-dock-after-opacity, 0.9);
}

html[data-theme] .desktop-dock .desktop-icon__glyph--dock-macos {
  filter: var(--theme-dock-glyph-shadow);
}

html[data-theme="apple-resources"] {
  --theme-body-bg:
    radial-gradient(circle at 12% 0%, rgba(130, 184, 255, 0.34), transparent 24%),
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.88), transparent 23%),
    linear-gradient(180deg, #eef4f8 0%, #e3eaf3 52%, #d8e1ec 100%);
  --theme-speckle-image:
    radial-gradient(rgba(255, 255, 255, 0.74) 0.45px, transparent 0.8px),
    radial-gradient(rgba(98, 120, 156, 0.08) 0.45px, transparent 0.8px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  --theme-edge: rgba(173, 187, 207, 0.42);
  --theme-edge-strong: rgba(255, 255, 255, 0.78);
  --theme-muted: rgba(48, 60, 82, 0.7);
  --theme-header-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 246, 252, 0.66)),
    rgba(255, 255, 255, 0.5);
  --theme-header-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 10px 24px rgba(88, 106, 139, 0.08);
  --theme-brand-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 54%),
    linear-gradient(180deg, #8fc8ff 0%, #0a84ff 64%, #0066db 100%);
  --theme-brand-shadow:
    0 16px 24px rgba(52, 118, 255, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 -9px 16px rgba(0, 80, 214, 0.18) inset;
  --theme-window-bg:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.48) 28%, rgba(233, 241, 251, 0.22) 100%),
    rgba(255, 255, 255, 0.56);
  --theme-window-shadow:
    0 44px 84px rgba(83, 101, 132, 0.16),
    0 12px 28px rgba(83, 101, 132, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  --theme-toolbar-bg:
    radial-gradient(circle at 50% -22%, rgba(255, 255, 255, 0.96), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(241, 247, 255, 0.5));
  --theme-primary-bg: linear-gradient(180deg, #63b2ff 0%, #0a84ff 58%, #0060d9 100%);
  --theme-primary-border: rgba(255, 255, 255, 0.44);
  --theme-primary-text: #ffffff;
  --theme-primary-text-shadow: 0 1px 0 rgba(11, 60, 158, 0.24);
  --theme-primary-shadow:
    0 24px 36px rgba(52, 118, 255, 0.24),
    0 8px 18px rgba(52, 118, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -11px 18px rgba(0, 89, 217, 0.18);
  --theme-primary-shadow-hover:
    0 28px 42px rgba(52, 118, 255, 0.28),
    0 12px 20px rgba(52, 118, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -12px 20px rgba(0, 89, 217, 0.2);
  --theme-control-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 247, 255, 0.7));
  --theme-control-border: rgba(255, 255, 255, 0.8);
  --theme-control-text: rgba(25, 35, 52, 0.82);
  --theme-control-shadow:
    0 18px 30px rgba(94, 111, 142, 0.12),
    0 4px 10px rgba(94, 111, 142, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  --theme-tablist-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(241, 246, 254, 0.54));
  --theme-tab-border: rgba(255, 255, 255, 0.76);
  --theme-tablist-shadow:
    0 14px 24px rgba(100, 119, 151, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  --theme-tab-text: rgba(31, 44, 66, 0.58);
  --theme-tab-text-hover: rgba(31, 44, 66, 0.82);
  --theme-tab-active-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.78));
  --theme-tab-active-border: rgba(255, 255, 255, 0.84);
  --theme-tab-active-text: rgba(18, 30, 50, 0.92);
  --theme-tab-active-shadow:
    0 14px 24px rgba(100, 119, 151, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  --theme-panel-bg:
    radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.96), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(243, 248, 255, 0.5), rgba(230, 238, 250, 0.28));
  --theme-panel-border: rgba(255, 255, 255, 0.74);
  --theme-panel-shadow:
    0 24px 42px rgba(94, 111, 142, 0.14),
    0 6px 16px rgba(94, 111, 142, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  --theme-dock-bg:
    radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.98), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(241, 246, 254, 0.42)),
    rgba(255, 255, 255, 0.32);
  --theme-dock-border: rgba(255, 255, 255, 0.74);
  --theme-dock-shadow:
    0 34px 58px rgba(89, 105, 136, 0.16),
    0 10px 22px rgba(89, 105, 136, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  --theme-dock-dot: rgba(37, 47, 66, 0.28);
  --theme-dock-icon-shadow:
    0 22px 34px rgba(60, 79, 112, 0.18),
    0 10px 18px rgba(60, 79, 112, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    inset 0 -10px 18px rgba(0, 0, 0, 0.14);
  --theme-dock-glyph-shadow:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.18))
    drop-shadow(0 5px 8px rgba(18, 31, 63, 0.12));
  --icon-top: #7db9ff;
  --icon-bottom: #0a84ff;
}

html[data-theme="apple-resources"] .desktop-dock .desktop-icon--dock-finder {
  --icon-top: #a2e1ff;
  --icon-bottom: #0a84ff;
  color: rgba(18, 44, 78, 0.92);
}

html[data-theme="apple-resources"] .desktop-dock .desktop-icon--dock-docs {
  --icon-top: #ffe39a;
  --icon-bottom: #ffb33e;
  color: rgba(112, 73, 22, 0.9);
}

html[data-theme="apple-resources"] .desktop-dock .desktop-icon--dock-preview {
  --icon-top: #9be1ff;
  --icon-bottom: #59d9a8;
  color: rgba(22, 53, 82, 0.9);
}

html[data-theme="apple-resources"] .desktop-dock .desktop-icon--dock-messages {
  --icon-top: #6cf28d;
  --icon-bottom: #19c54a;
  color: #ffffff;
}

html[data-theme="apple-resources"] .desktop-dock .desktop-icon--dock-launch {
  --icon-top: #c8a8ff;
  --icon-bottom: #6b4df0;
  color: #ffffff;
}

html[data-theme="spectrum-2"] {
  --theme-body-bg:
    radial-gradient(circle at 16% 0%, rgba(255, 189, 113, 0.32), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(84, 191, 255, 0.2), transparent 22%),
    linear-gradient(180deg, #fbf4ea 0%, #f3eadf 54%, #ecdfd2 100%);
  --theme-speckle-opacity: 0.18;
  --theme-speckle-image:
    radial-gradient(rgba(255, 255, 255, 0.78) 0.48px, transparent 0.8px),
    radial-gradient(rgba(152, 119, 79, 0.08) 0.48px, transparent 0.8px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  --theme-edge: rgba(193, 169, 140, 0.34);
  --theme-edge-strong: rgba(255, 247, 236, 0.88);
  --theme-muted: rgba(86, 67, 48, 0.72);
  --theme-header-bg:
    linear-gradient(180deg, rgba(255, 249, 241, 0.88), rgba(247, 238, 226, 0.72)),
    rgba(255, 249, 241, 0.52);
  --theme-header-shadow:
    0 1px 0 rgba(255, 255, 255, 0.84) inset,
    0 12px 22px rgba(138, 111, 78, 0.08);
  --theme-brand-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, #6eb5ff 0%, #1473e6 58%, #0d56b5 100%);
  --theme-brand-shadow:
    0 14px 24px rgba(20, 115, 230, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 -8px 14px rgba(13, 86, 181, 0.18) inset;
  --theme-window-bg:
    radial-gradient(circle at 50% -12%, rgba(255, 252, 247, 0.98), transparent 66%),
    linear-gradient(180deg, rgba(255, 249, 241, 0.88), rgba(245, 236, 223, 0.76));
  --theme-window-shadow:
    0 42px 80px rgba(128, 103, 72, 0.14),
    0 12px 24px rgba(128, 103, 72, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --theme-toolbar-bg:
    radial-gradient(circle at 50% -22%, rgba(255, 255, 255, 0.86), transparent 72%),
    linear-gradient(180deg, rgba(255, 249, 241, 0.88), rgba(243, 233, 220, 0.68));
  --theme-primary-bg: linear-gradient(180deg, #54a8ff 0%, #1473e6 54%, #0d56b5 100%);
  --theme-primary-border: rgba(255, 255, 255, 0.34);
  --theme-primary-text: #ffffff;
  --theme-primary-text-shadow: 0 1px 0 rgba(8, 58, 126, 0.24);
  --theme-primary-shadow:
    0 22px 34px rgba(20, 115, 230, 0.22),
    0 8px 16px rgba(20, 115, 230, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -10px 16px rgba(10, 79, 164, 0.14);
  --theme-primary-shadow-hover:
    0 26px 38px rgba(20, 115, 230, 0.24),
    0 10px 18px rgba(20, 115, 230, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -10px 18px rgba(10, 79, 164, 0.16);
  --theme-control-bg:
    linear-gradient(180deg, rgba(255, 251, 245, 0.94), rgba(247, 239, 229, 0.8));
  --theme-control-border: rgba(255, 243, 228, 0.92);
  --theme-control-text: rgba(83, 63, 44, 0.86);
  --theme-control-shadow:
    0 18px 28px rgba(131, 106, 76, 0.1),
    0 4px 8px rgba(131, 106, 76, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --theme-tablist-bg:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(245, 236, 224, 0.82));
  --theme-tab-border: rgba(255, 243, 228, 0.94);
  --theme-tablist-shadow:
    0 16px 28px rgba(126, 102, 72, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  --theme-tab-text: rgba(96, 73, 51, 0.56);
  --theme-tab-text-hover: rgba(96, 73, 51, 0.82);
  --theme-tab-active-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 233, 0.88));
  --theme-tab-active-border: rgba(255, 247, 236, 0.98);
  --theme-tab-active-text: rgba(66, 49, 31, 0.92);
  --theme-tab-active-shadow:
    0 14px 20px rgba(126, 102, 72, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  --theme-panel-bg:
    radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.98), transparent 70%),
    linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(245, 236, 224, 0.72));
  --theme-panel-border: rgba(255, 243, 228, 0.94);
  --theme-panel-shadow:
    0 22px 38px rgba(126, 102, 72, 0.1),
    0 6px 12px rgba(126, 102, 72, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  --theme-dock-bg:
    linear-gradient(180deg, rgba(255, 251, 244, 0.88), rgba(245, 236, 224, 0.62)),
    rgba(255, 249, 241, 0.54);
  --theme-dock-border: rgba(255, 243, 228, 0.94);
  --theme-dock-shadow:
    0 28px 46px rgba(126, 102, 72, 0.14),
    0 8px 18px rgba(126, 102, 72, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  --theme-dock-dot: rgba(83, 63, 44, 0.24);
  --theme-dock-radius: 17px;
  --theme-dock-icon-shadow:
    0 18px 30px rgba(87, 69, 47, 0.16),
    0 8px 16px rgba(87, 69, 47, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -9px 16px rgba(37, 25, 12, 0.12);
  --theme-dock-glyph: #ffffff;
  --theme-dock-glyph-shadow:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.08))
    drop-shadow(0 5px 8px rgba(50, 38, 18, 0.18));
}

html[data-theme="spectrum-2"] .desktop-dock .desktop-icon--dock-finder {
  --icon-top: #6eb5ff;
  --icon-bottom: #1473e6;
}

html[data-theme="spectrum-2"] .desktop-dock .desktop-icon--dock-docs {
  --icon-top: #ffbf66;
  --icon-bottom: #f77f00;
}

html[data-theme="spectrum-2"] .desktop-dock .desktop-icon--dock-preview {
  --icon-top: #6ed6ff;
  --icon-bottom: #00a2ff;
}

html[data-theme="spectrum-2"] .desktop-dock .desktop-icon--dock-messages {
  --icon-top: #71e3a1;
  --icon-bottom: #26b86f;
}

html[data-theme="spectrum-2"] .desktop-dock .desktop-icon--dock-launch {
  --icon-top: #d68fff;
  --icon-bottom: #9a4dff;
}

html[data-theme="glassmorphism"] {
  --theme-body-bg:
    radial-gradient(circle at 14% 0%, rgba(153, 205, 255, 0.4), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(255, 190, 228, 0.28), transparent 24%),
    linear-gradient(180deg, #edf6ff 0%, #e6eefb 48%, #dce7f7 100%);
  --theme-speckle-opacity: 0.12;
  --theme-speckle-image:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
    linear-gradient(rgba(125, 152, 190, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 152, 190, 0.08) 1px, transparent 1px);
  --theme-speckle-size: auto, 28px 28px, 28px 28px;
  --theme-speckle-position: 0 0, 0 0, 0 0;
  --theme-edge: rgba(255, 255, 255, 0.42);
  --theme-edge-strong: rgba(255, 255, 255, 0.64);
  --theme-muted: rgba(46, 60, 86, 0.72);
  --theme-header-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.12);
  --theme-header-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 16px 28px rgba(104, 125, 163, 0.08);
  --theme-header-blur: 30px;
  --theme-header-saturation: 1.45;
  --theme-brand-bg:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.88), transparent 22%),
    linear-gradient(135deg, rgba(140, 215, 255, 0.94), rgba(167, 138, 255, 0.86) 50%, rgba(255, 143, 209, 0.88));
  --theme-brand-shadow:
    0 18px 34px rgba(111, 124, 184, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
  --theme-window-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.12);
  --theme-window-shadow:
    0 40px 74px rgba(108, 126, 164, 0.16),
    0 12px 22px rgba(108, 126, 164, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  --theme-window-blur: 34px;
  --theme-window-saturation: 1.5;
  --theme-toolbar-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.12);
  --theme-primary-bg:
    linear-gradient(135deg, rgba(88, 186, 255, 0.94), rgba(84, 124, 255, 0.9) 52%, rgba(142, 106, 255, 0.88));
  --theme-primary-border: rgba(255, 255, 255, 0.48);
  --theme-primary-text: #ffffff;
  --theme-primary-text-shadow: 0 1px 0 rgba(57, 82, 140, 0.24);
  --theme-primary-shadow:
    0 28px 44px rgba(90, 123, 214, 0.22),
    0 8px 16px rgba(90, 123, 214, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  --theme-primary-shadow-hover:
    0 30px 48px rgba(90, 123, 214, 0.24),
    0 10px 18px rgba(90, 123, 214, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  --theme-control-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.14)),
    rgba(255, 255, 255, 0.12);
  --theme-control-border: rgba(255, 255, 255, 0.54);
  --theme-control-text: rgba(27, 38, 58, 0.82);
  --theme-control-shadow:
    0 18px 30px rgba(98, 116, 152, 0.12),
    0 6px 12px rgba(98, 116, 152, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --theme-control-blur: 26px;
  --theme-control-saturation: 1.46;
  --theme-tablist-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.14)),
    rgba(255, 255, 255, 0.12);
  --theme-tab-border: rgba(255, 255, 255, 0.58);
  --theme-tablist-shadow:
    0 18px 28px rgba(98, 116, 152, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --theme-tab-blur: 28px;
  --theme-tab-saturation: 1.48;
  --theme-tab-text: rgba(35, 48, 76, 0.56);
  --theme-tab-text-hover: rgba(35, 48, 76, 0.82);
  --theme-tab-active-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.18);
  --theme-tab-active-border: rgba(255, 255, 255, 0.76);
  --theme-tab-active-text: rgba(28, 42, 68, 0.92);
  --theme-tab-active-shadow:
    0 16px 24px rgba(98, 116, 152, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  --theme-panel-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.14);
  --theme-panel-border: rgba(255, 255, 255, 0.56);
  --theme-panel-shadow:
    0 28px 42px rgba(98, 116, 152, 0.12),
    0 8px 18px rgba(98, 116, 152, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  --theme-panel-blur: 34px;
  --theme-panel-saturation: 1.52;
  --theme-dock-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.14);
  --theme-dock-border: rgba(255, 255, 255, 0.58);
  --theme-dock-shadow:
    0 32px 52px rgba(98, 116, 152, 0.14),
    0 10px 18px rgba(98, 116, 152, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --theme-dock-blur: 34px;
  --theme-dock-saturation: 1.55;
  --theme-dock-dot: rgba(67, 83, 116, 0.2);
  --theme-dock-glyph: rgba(255, 255, 255, 0.94);
  --theme-dock-radius: 19px;
  --theme-dock-icon-shadow:
    0 24px 40px rgba(104, 122, 166, 0.18),
    0 8px 20px rgba(104, 122, 166, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -14px 20px rgba(126, 152, 198, 0.12);
  --theme-dock-after-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.14));
  --theme-dock-after-opacity: 0.8;
  --theme-dock-glyph-shadow:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.06))
    drop-shadow(0 8px 10px rgba(92, 111, 160, 0.18));
}

html[data-theme="glassmorphism"] .desktop-dock .desktop-icon--dock-finder {
  --icon-top: rgba(143, 226, 255, 0.92);
  --icon-bottom: rgba(73, 138, 255, 0.88);
}

html[data-theme="glassmorphism"] .desktop-dock .desktop-icon--dock-docs {
  --icon-top: rgba(255, 221, 142, 0.92);
  --icon-bottom: rgba(255, 161, 104, 0.9);
}

html[data-theme="glassmorphism"] .desktop-dock .desktop-icon--dock-preview {
  --icon-top: rgba(133, 255, 225, 0.9);
  --icon-bottom: rgba(100, 179, 255, 0.88);
}

html[data-theme="glassmorphism"] .desktop-dock .desktop-icon--dock-messages {
  --icon-top: rgba(157, 255, 181, 0.92);
  --icon-bottom: rgba(85, 216, 121, 0.88);
}

html[data-theme="glassmorphism"] .desktop-dock .desktop-icon--dock-launch {
  --icon-top: rgba(207, 164, 255, 0.92);
  --icon-bottom: rgba(135, 110, 255, 0.88);
}

/* Spectrum Two exact component layer */
.spectrum-root {
  display: block;
  min-height: 100vh;
}

.spectrum-root .site-header,
.spectrum-root .workspace-window__header,
.spectrum-root .workspace-window__toolbar,
.spectrum-root .desktop-dock {
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.94), rgba(246, 238, 227, 0.88));
}

.spectrum-root .workspace-window {
  border-color: rgba(215, 198, 175, 0.48);
  background:
    linear-gradient(180deg, rgba(253, 249, 241, 0.96), rgba(247, 241, 232, 0.92));
  box-shadow:
    0 42px 84px rgba(112, 93, 68, 0.12),
    0 14px 26px rgba(112, 93, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.spectrum-header-actions,
.spectrum-toolbar-group,
.spectrum-dock-group {
  display: inline-flex;
  align-items: center;
}

.spectrum-primary-button,
.spectrum-secondary-button {
  flex: 0 0 auto;
}

.spectrum-icon-button,
.spectrum-window-action,
.spectrum-toolbar-button,
.notice-card__close {
  flex: 0 0 auto;
}

.spectrum-icon-button svg,
.spectrum-window-action svg,
.spectrum-toolbar-button svg,
.spectrum-dock-button svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spectrum-icon-button img,
.spectrum-window-action img,
.spectrum-toolbar-button img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.spectrum-window-action img,
.spectrum-toolbar-button img {
  width: 20px;
  height: 20px;
}

.spectrum-dock-button svg {
  width: 26px;
  height: 26px;
}

.spectrum-toolbar-group {
  gap: 8px;
}

.hero-actions {
  gap: 12px;
}

.spectrum-feature-tabs {
  width: 100%;
  margin-bottom: 16px;
}

.spectrum-content-card {
  border-color: rgba(255, 240, 221, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(246, 238, 227, 0.78));
  box-shadow:
    0 20px 34px rgba(122, 102, 71, 0.12),
    0 6px 14px rgba(122, 102, 71, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

sp-card.spectrum-card {
  display: block;
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.feature-panel__grid sp-card.spectrum-card {
  min-height: 100%;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(67, 56, 40, 0.84);
}

.feature-card__label {
  text-transform: uppercase;
}

.spectrum-dock {
  padding: 10px 14px;
}

.spectrum-dock-group {
  gap: 8px;
}

.spectrum-dock-button::part(button) {
  min-width: 58px;
  min-height: 58px;
  border-radius: 18px;
}

.notice-card {
  max-width: 320px;
}

.notice-card__close {
  line-height: 1;
}

/* Spectrum Two refined surfaces */
.spectrum-root .page {
  padding-bottom: 196px;
}

.spectrum-root .workspace-window {
  min-height: calc(100vh - 176px);
}

.spectrum-root .workspace-window__header,
.spectrum-root .workspace-window__toolbar {
  border-bottom-color: rgba(214, 202, 183, 0.72);
}

.spectrum-root .workspace-window__body {
  gap: 20px;
}

.spectrum-root .window-file {
  color: rgba(48, 38, 24, 0.9);
}

.spectrum-root .window-header-actions {
  color: rgba(92, 78, 59, 0.62);
}

.spectrum-root .site-search,
.spectrum-root .window-search {
  border-color: rgba(220, 208, 188, 0.92);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), transparent 70%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(246, 239, 229, 0.9));
  box-shadow:
    0 16px 26px rgba(122, 102, 71, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.spectrum-root .site-search {
  width: min(390px, 36vw);
  min-height: 46px;
}

.spectrum-root .window-search {
  min-width: 248px;
  min-height: 42px;
}

.spectrum-root .site-search__submit {
  width: 34px;
  height: 34px;
}

.spectrum-root .site-search__submit-arrow {
  font-size: 1.08rem;
}

.spectrum-root .spectrum-icon-button::part(button),
.spectrum-root .spectrum-window-action::part(button) {
  min-width: 42px;
  min-height: 42px;
  border-radius: 14px;
}

.spectrum-root .spectrum-toolbar-button::part(button) {
  min-height: 42px;
  padding-inline: 14px;
  border-radius: 14px;
}

.spectrum-root .hero-links a {
  color: rgba(92, 76, 54, 0.86);
}

.spectrum-root .feature-tabs {
  margin-top: 6px;
}

.spectrum-root .spectrum-feature-tabs {
  margin-bottom: 12px;
}

.spectrum-root .feature-tab-panel {
  padding-top: 6px;
}

.spectrum-root .spectrum-panel-shell {
  margin-top: 0;
  padding: 22px 24px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 18px 22px;
  border: 1px solid rgba(224, 212, 192, 0.82);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.62) 28%, rgba(255, 255, 255, 0.34) 64%),
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(245, 237, 226, 0.9));
  box-shadow:
    0 28px 44px rgba(122, 102, 71, 0.14),
    0 10px 18px rgba(122, 102, 71, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.spectrum-root .spectrum-panel-shell sp-divider {
  grid-column: 1 / -1;
  opacity: 0.72;
}

.spectrum-root .feature-panel__copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.spectrum-root .feature-panel__copy sp-status-light {
  margin-bottom: 2px;
}

.spectrum-root .feature-panel__copy h2 {
  max-width: 13ch;
}

.spectrum-root .feature-panel__copy p {
  max-width: 54ch;
  margin: 0;
  color: rgba(84, 67, 46, 0.86);
}

.spectrum-root .feature-panel__grid {
  align-content: start;
  gap: 14px;
}

.spectrum-root .spectrum-feature-card {
  display: block;
  width: 100%;
  min-height: 176px;
}

.spectrum-root .spectrum-feature-card::part(content),
.spectrum-root .spectrum-notice-card::part(content) {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 240, 230, 0.84));
}

.spectrum-root .feature-card [slot="heading"],
.spectrum-root .notice-card [slot="heading"] {
  color: rgba(43, 34, 22, 0.94);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.spectrum-root .feature-card [slot="description"],
.spectrum-root .notice-card [slot="description"] {
  color: rgba(88, 71, 49, 0.82);
  font-size: 0.95rem;
  line-height: 1.58;
}

.spectrum-root .feature-card [slot="footer"],
.spectrum-root .notice-card [slot="footer"] {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.spectrum-root .feature-card__footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(80, 65, 47, 0.82);
  font-size: 0.88rem;
  line-height: 1.4;
}

.spectrum-root .feature-card__footer span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #1473e6;
  box-shadow: 0 0 0 4px rgba(20, 115, 230, 0.14);
}

.spectrum-root .spectrum-dock {
  padding: 10px 12px 8px;
  border: 1px solid rgba(221, 208, 188, 0.84);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.96), rgba(244, 235, 223, 0.92));
  box-shadow:
    0 28px 46px rgba(110, 91, 66, 0.16),
    0 10px 22px rgba(110, 91, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.spectrum-root .spectrum-dock-group {
  gap: 10px;
}

.dock-button {
  --dock-accent-top: #9fe2ff;
  --dock-accent-bottom: #0e86ff;
  --dock-accent-shadow: rgba(14, 134, 255, 0.3);
  --dock-accent-text: rgba(22, 38, 68, 0.94);
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dock-accent-text);
  font: inherit;
  cursor: pointer;
}

.dock-button[data-page="docs"] {
  --dock-accent-top: #ffe7a4;
  --dock-accent-bottom: #ffb93c;
  --dock-accent-shadow: rgba(255, 185, 60, 0.32);
  --dock-accent-text: rgba(99, 68, 28, 0.94);
}

.dock-button[data-page="proof"] {
  --dock-accent-top: #94dcff;
  --dock-accent-bottom: #67dbaa;
  --dock-accent-shadow: rgba(71, 184, 170, 0.3);
  --dock-accent-text: rgba(24, 52, 78, 0.94);
}

.dock-button[data-page="talk"] {
  --dock-accent-top: #64eb83;
  --dock-accent-bottom: #13c24a;
  --dock-accent-shadow: rgba(19, 194, 74, 0.32);
  --dock-accent-text: #ffffff;
}

.dock-button[data-page="launch"] {
  --dock-accent-top: #c39dff;
  --dock-accent-bottom: #6b4df0;
  --dock-accent-shadow: rgba(107, 77, 240, 0.32);
  --dock-accent-text: #ffffff;
}

.dock-button--header-extra {
  min-width: 72px;
  animation: dock-extra-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dock-button--header-extra[data-extra-index="0"] {
  margin-left: 6px;
}

.dock-button--header-extra .dock-button__icon {
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.96), transparent 36%),
    linear-gradient(180deg, rgba(255, 248, 236, 0.98), rgba(241, 232, 217, 0.94));
}

.dock-button--minimized-window {
  min-width: 72px;
  margin-left: 10px;
  animation: dock-extra-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dock-button--minimized-window::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 9px;
  width: 1px;
  height: 48px;
  border-radius: 999px;
  background: rgba(63, 49, 34, 0.16);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.dock-button__icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(17, 34, 50, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(249, 243, 232, 0.92));
  box-shadow:
    0 18px 28px rgba(50, 37, 21, 0.1),
    0 8px 14px rgba(110, 91, 66, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: visible;
}

.dock-button__icon img {
  width: 106%;
  height: 106%;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 12px rgba(16, 35, 48, 0.14))
    drop-shadow(0 2px 3px rgba(22, 16, 8, 0.12));
  transform: translateY(-1px);
}

.dock-button svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.dock-button__label {
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgba(63, 49, 34, 0.88);
}

.workspace-sheet[hidden] {
  display: none;
}

body.workspace-sheet-open {
  overflow: hidden;
}

.spectrum-root .workspace-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.spectrum-root .workspace-sheet__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.24), transparent 32%),
    rgba(48, 38, 24, 0.28);
  backdrop-filter: blur(10px);
}

.spectrum-root .workspace-sheet__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 36px));
  padding: 22px 22px 20px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(220, 208, 190, 0.92);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76) 32%, rgba(255, 255, 255, 0.48) 68%),
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(245, 236, 223, 0.94));
  box-shadow:
    0 38px 70px rgba(86, 70, 47, 0.22),
    0 18px 32px rgba(86, 70, 47, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transform: translate(-50%, -50%);
}

.spectrum-root .workspace-sheet__header,
.spectrum-root .workspace-sheet__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spectrum-root .workspace-sheet__eyebrow {
  color: rgba(91, 73, 48, 0.66);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spectrum-root .workspace-sheet__close::part(button) {
  min-width: 32px;
  min-height: 32px;
  border-radius: 12px;
}

.spectrum-root .workspace-sheet__body {
  display: grid;
  gap: 12px;
}

.spectrum-root .workspace-sheet__body h2 {
  max-width: 13ch;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.94;
}

.spectrum-root .workspace-sheet__body p {
  max-width: 60ch;
  margin: 0;
  color: rgba(83, 67, 46, 0.84);
  line-height: 1.6;
}

.spectrum-root .workspace-sheet__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 14px;
  margin-top: 6px;
}

.spectrum-root .workspace-sheet__card {
  padding: 18px;
  border: 1px solid rgba(224, 212, 192, 0.84);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(247, 240, 229, 0.9));
  box-shadow:
    0 20px 30px rgba(118, 98, 70, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.spectrum-root .workspace-sheet__card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.spectrum-root .workspace-sheet__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: rgba(83, 67, 46, 0.84);
  line-height: 1.5;
}

.spectrum-root .workspace-sheet__footer {
  justify-content: flex-start;
}

.spectrum-root .workspace-sheet__primary,
.spectrum-root .workspace-sheet__secondary {
  flex: 0 0 auto;
}

@media (max-width: 920px) {
  .spectrum-root .spectrum-panel-shell {
    grid-template-columns: 1fr;
  }

  .spectrum-root .spectrum-dock-group {
    justify-content: center;
    flex-wrap: wrap;
  }

  .spectrum-root .workspace-sheet__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .spectrum-root .spectrum-dock {
    display: inline-flex;
    left: 12px;
    right: 12px;
    bottom: 10px;
    width: auto;
    max-width: none;
    transform: none;
    overflow-x: auto;
  }

  .spectrum-root .workspace-sheet__panel {
    width: calc(100vw - 20px);
    padding: 18px;
  }

.spectrum-root .workspace-sheet__footer {
  flex-direction: column;
  align-items: stretch;
  }
}

/* Multi-page window behavior */
.workspace-window[hidden] {
  display: none !important;
}

.workspace-window {
  transition:
    transform 280ms cubic-bezier(0.2, 0.82, 0.16, 1),
    opacity 220ms ease,
    filter 220ms ease,
    border-radius 220ms ease;
  transform-origin: center center;
}

.workspace-window--closing {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(72px) scale(0.96);
}

.workspace-window--minimizing {
  opacity: 0;
  filter: blur(1px) saturate(0.9);
  border-radius: 18px;
  transform:
    translate3d(var(--window-minimize-x, 0px), var(--window-minimize-y, 120px), 0)
    scale(0.12);
}

.workspace-window--expanded {
  top: 96px;
  bottom: 20px;
  width: min(calc(100vw - 16px), 1500px);
}

.window-control {
  padding: 0;
  border: 0;
  appearance: none;
  cursor: pointer;
}

.workspace-page[hidden] {
  display: none !important;
}

.workspace-page--home {
  display: grid;
  gap: 16px;
}

.hero-video-band {
  display: none;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(22, 19, 14, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 22px 56px rgba(50, 37, 21, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.hero-video-band__copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.hero-video-band__eyebrow {
  margin: 0;
  color: rgba(72, 62, 51, 0.52);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-video-band__copy h2 {
  margin: 0;
  max-width: 12ch;
  font-family:
    "Instrument Sans",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.hero-video-band__copy p:last-child {
  margin: 0;
  max-width: 52ch;
  color: rgba(21, 18, 15, 0.62);
  line-height: 1.58;
}

.hero-video-band__frame {
  border: 1px solid rgba(22, 19, 14, 0.08);
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(246, 241, 233, 0.96), rgba(234, 227, 217, 0.92));
}

.workspace-page--app {
  display: grid;
  gap: 18px;
}

.app-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.74fr);
  gap: 18px;
  align-items: start;
}

.app-page__copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.app-page__eyebrow {
  margin: 0;
  color: rgba(94, 77, 52, 0.66);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-page__copy h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.45rem, 4vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.app-page__copy p {
  max-width: 60ch;
  margin: 0;
  color: rgba(82, 66, 44, 0.84);
  line-height: 1.6;
}

.app-page__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.app-page__summary,
.app-page__card {
  padding: 20px;
  border: 1px solid rgba(224, 212, 192, 0.84);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(247, 240, 229, 0.9));
  box-shadow:
    0 22px 32px rgba(118, 98, 70, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.app-page__summary {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 100%;
}

.app-page__summary-label {
  margin: 0;
  color: rgba(107, 87, 61, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-page__summary strong {
  font-size: 1.5rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.app-page__summary p {
  margin: 0;
  color: rgba(82, 66, 44, 0.8);
  line-height: 1.55;
}

.app-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 16px;
}

.app-page__card {
  display: grid;
  gap: 12px;
}

.app-page__card--accent {
  background:
    radial-gradient(circle at top left, rgba(20, 115, 230, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(247, 240, 229, 0.9));
}

.app-page__card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.app-page__card p {
  margin: 0;
  color: rgba(82, 66, 44, 0.82);
  line-height: 1.58;
}

.app-page__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: rgba(82, 66, 44, 0.84);
  line-height: 1.5;
}

.app-page__rail {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.app-page__rail-item {
  padding: 10px 12px;
  border: 1px solid rgba(210, 198, 179, 0.84);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(72, 58, 40, 0.9);
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 920px) {
  .app-page__hero,
  .app-page__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .workspace-window--expanded {
    width: calc(100% - 20px);
  }
}

/* Readymag-inspired clean editorial refresh */
:root {
  --bg: #f7f3ec;
  --bg-deep: #efeae1;
  --paper: rgba(255, 255, 255, 0.94);
  --paper-strong: #ffffff;
  --paper-soft: rgba(255, 255, 255, 0.78);
  --glass: rgba(255, 255, 255, 0.74);
  --line: rgba(22, 19, 14, 0.1);
  --line-strong: rgba(22, 19, 14, 0.16);
  --text: #15120f;
  --muted: rgba(21, 18, 15, 0.62);
  --muted-soft: rgba(21, 18, 15, 0.46);
  --accent: #ff6a13;
  --accent-strong: #e95b0f;
  --accent-soft: rgba(255, 106, 19, 0.12);
  --orange: #ff7a1a;
  --orange-deep: #e95b0f;
  --shadow-lg:
    0 32px 84px rgba(50, 37, 21, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  --shadow-md:
    0 20px 48px rgba(50, 37, 21, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
  --shadow-sm:
    0 10px 24px rgba(50, 37, 21, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.94) inset;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.96), transparent 22%),
    linear-gradient(180deg, #fbfaf7 0%, #f6f1ea 52%, #efe8de 100%);
}

.wallpaper-speckle {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(35, 30, 24, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 30, 24, 0.028) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.8) 0.45px, transparent 0.75px);
  background-size: 28px 28px, 28px 28px, 18px 18px;
  background-position: 0 0, 0 0, 9px 10px;
}

h1,
h2,
h3,
.top-logo,
.window-file,
.hero-brand strong,
.hero-copy h1,
.feature-panel__copy h2,
.app-page__copy h2 {
  font-family:
    "Instrument Sans",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.site-header {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(249, 245, 238, 0.86)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 10px 28px rgba(50, 37, 21, 0.04);
  backdrop-filter: blur(16px) saturate(1.02);
}

.top-logo {
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.top-logo__mark,
.hero-brand__mark {
  border: 0;
  box-shadow: none;
  background: none;
}

.top-logo__mark {
  color: inherit;
}

.top-nav {
  gap: 12px;
  font-size: 0.9rem;
}

.top-nav__toggle {
  padding: 6px 10px;
  font-weight: 500;
}

.top-nav__toggle:hover,
.top-nav__toggle.is-active {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(22, 19, 14, 0.08) inset;
}

.site-search,
.window-search {
  border: 1px solid rgba(22, 19, 14, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.site-search__icon,
.window-search__icon,
.site-search__input::placeholder,
.window-search__input::placeholder,
.site-search__submit-arrow {
  color: rgba(76, 64, 49, 0.58);
}

.site-search__submit {
  border: 0;
  background: rgba(241, 237, 231, 0.96);
  box-shadow: none;
}

.workspace-window {
  border: 1px solid rgba(22, 19, 14, 0.09);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 36px 96px rgba(50, 37, 21, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.94) inset;
  backdrop-filter: none;
}

.workspace-window__header,
.workspace-window__toolbar {
  border-bottom: 1px solid rgba(22, 19, 14, 0.07);
  background:
    linear-gradient(180deg, rgba(251, 248, 243, 0.94), rgba(246, 241, 233, 0.88));
}

.workspace-window__header {
  padding: 16px 20px;
}

.workspace-window__toolbar {
  padding: 14px 20px;
}

.window-file {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.window-action,
.toolbar-pill,
.toolbar-icon,
.button--secondary,
.spectrum-root .spectrum-icon-button::part(button),
.spectrum-root .spectrum-window-action::part(button),
.spectrum-root .spectrum-toolbar-button::part(button) {
  border: 1px solid rgba(22, 19, 14, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

.toolbar-pill,
.toolbar-icon,
.button--secondary {
  color: rgba(43, 36, 29, 0.78);
}

.toolbar-icon:hover,
.toolbar-pill:hover,
.button--secondary:hover,
.spectrum-root .spectrum-icon-button::part(button):hover,
.spectrum-root .spectrum-toolbar-button::part(button):hover {
  background: rgba(244, 239, 232, 0.96);
}

.button,
.toolbar-cta,
.button--primary {
  min-height: 46px;
  padding-inline: 22px;
  border-radius: 999px;
  border: 1px solid rgba(22, 19, 14, 0.06);
  box-shadow: none;
}

.toolbar-cta,
.button--primary {
  background: linear-gradient(180deg, #ff7d1f, #ff6210);
  color: #14110d;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.96);
}

.workspace-window__body {
  padding: 24px 24px 132px;
  gap: 22px;
}

.hero-block {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  align-content: start;
}

.hero-brand {
  margin-bottom: 12px;
}

.hero-brand__mark {
  color: inherit;
}

.hero-copy h1 {
  max-width: 8.4ch;
  font-size: clamp(3.25rem, 5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.hero-copy__lede,
.hero-copy__support,
.feature-panel__copy p,
.notice-card p,
.app-page__copy p,
.app-page__summary p,
.app-page__card p,
.app-page__list {
  color: rgba(21, 18, 15, 0.62);
}

.hero-copy__lede {
  margin-top: 14px;
  font-size: 1rem;
}

.hero-copy__support {
  margin-bottom: 18px;
  font-size: 0.98rem;
}

.hero-links {
  margin-top: 14px;
  color: rgba(45, 37, 30, 0.72);
  font-size: 0.94rem;
}

.hero-links a + a::before {
  color: rgba(45, 37, 30, 0.28);
}

.hero-figure {
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(22, 19, 14, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(249, 246, 240, 0.94), rgba(241, 236, 228, 0.88));
}

.hero-figure--video {
  display: grid;
  align-items: stretch;
}

.hero-video-frame {
  position: relative;
  width: 100%;
  min-height: 310px;
  border: 1px solid rgba(22, 19, 14, 0.08);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(246, 241, 233, 0.96), rgba(234, 227, 217, 0.92));
}

.hero-video {
  width: 100%;
  height: 100%;
  min-height: 310px;
  display: block;
  object-fit: cover;
  background: #ece5db;
}

.hero-video--band {
  min-height: 420px;
}

.hero-illustration {
  width: min(100%, 318px);
  filter: none;
}

.orbit-ring {
  fill: rgba(255, 255, 255, 0.98);
  stroke: rgba(37, 33, 28, 0.8);
}

.orbit-dot,
.mascot-body {
  fill: #ff7a1a;
}

.desk-shape {
  fill: rgba(255, 240, 221, 0.94);
}

.monitor-body {
  fill: rgba(244, 244, 238, 0.98);
}

.paper-cube,
.mascot-head,
.mascot-ear,
.mug-body {
  fill: rgba(255, 255, 255, 0.98);
}

.feature-tabs {
  margin-top: 8px;
}

.spectrum-root .spectrum-feature-tabs {
  margin-bottom: 8px;
}

.spectrum-root sp-tab.spectrum-tab::part(tab),
.spectrum-root sp-tab::part(tab) {
  border-radius: 999px;
}

.spectrum-root .spectrum-panel-shell,
.feature-panel,
.app-page__summary,
.app-page__card,
.app-page__sidebar-block,
.workspace-sheet__card,
.workspace-sheet__panel {
  border: 1px solid rgba(22, 19, 14, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 22px 56px rgba(50, 37, 21, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.spectrum-root .spectrum-panel-shell {
  gap: 20px 24px;
}

.feature-panel__copy {
  gap: 12px;
}

.feature-panel__copy h2 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.spectrum-root .feature-card [slot="heading"],
.spectrum-root .notice-card [slot="heading"],
.app-page__summary strong,
.app-page__card h3 {
  color: rgba(20, 17, 13, 0.94);
}

.spectrum-root .feature-card [slot="description"],
.spectrum-root .notice-card [slot="description"],
.feature-card__footer span,
.app-page__rail-item,
.app-page__sidebar-item span,
.app-page__sidebar-chip {
  color: rgba(48, 40, 31, 0.68);
}

.spectrum-root .spectrum-feature-card::part(content),
.spectrum-root .spectrum-notice-card::part(content) {
  border: 1px solid rgba(22, 19, 14, 0.06);
  background: linear-gradient(180deg, rgba(248, 245, 239, 0.98), rgba(243, 238, 231, 0.92));
}

.feature-card__footer span::before {
  background: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(255, 106, 19, 0.1) !important;
}

.app-page__eyebrow,
.app-page__summary-label,
.app-page__sidebar-kicker,
.app-page__sidebar-label,
.workspace-sheet__eyebrow,
.header-panel__section-label {
  color: rgba(72, 62, 51, 0.52);
}

.app-page__sidebar-item,
.app-page__rail-item {
  border: 1px solid rgba(22, 19, 14, 0.07);
  background: rgba(247, 244, 238, 0.96);
  box-shadow: none;
}

.app-page__sidebar-item:hover,
.app-page__sidebar-item.is-open {
  border-color: rgba(255, 106, 19, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 106, 19, 0.08);
  background: rgba(255, 247, 240, 0.98);
}

.spectrum-root .spectrum-dock {
  padding: 10px 12px 8px;
  border: 1px solid rgba(22, 19, 14, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 241, 233, 0.9));
  box-shadow:
    0 24px 54px rgba(50, 37, 21, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(18px);
}

.dock-button {
  min-width: 72px;
}

.dock-button__icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  border-color: rgba(17, 34, 50, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(249, 243, 232, 0.92));
  box-shadow:
    0 20px 30px rgba(50, 37, 21, 0.1),
    0 8px 16px rgba(50, 37, 21, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: visible;
}

.dock-button__label {
  font-size: 0.71rem;
  letter-spacing: 0;
}

.spectrum-root .spectrum-dock-button::after {
  background: rgba(255, 106, 19, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.52);
}

.header-panel__shell {
  border: 1px solid rgba(22, 19, 14, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 24px 60px rgba(50, 37, 21, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.94) inset;
  backdrop-filter: blur(14px);
}

.header-panel__section + .header-panel__section {
  border-top-color: rgba(22, 19, 14, 0.08);
}

.header-panel__row:hover,
.header-panel__row:focus-visible {
  background: rgba(248, 243, 236, 0.98);
}

.header-panel__row-icon {
  border: 1px solid rgba(22, 19, 14, 0.04);
  background: rgba(247, 243, 235, 0.98);
  color: rgba(92, 74, 52, 0.82);
}

.header-panel__row-icon--orange {
  background: linear-gradient(180deg, rgba(255, 224, 197, 0.98), rgba(255, 198, 145, 0.98));
  color: rgba(149, 77, 16, 0.94);
}

@media (max-width: 920px) {
  .hero-block,
  .spectrum-root .spectrum-panel-shell,
  .workspace-page--app {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .feature-panel__copy h2,
  .app-page__copy h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 12px;
  }

  .page {
    padding: 14px 12px 118px;
  }

  .page-stage-media {
    top: 68px;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .page-stage-media__walker {
    --walker-width: clamp(96px, 28vw, 112px);
    --walker-edge: 18px;
    bottom: 198px;
  }

  .workspace-window__body {
    padding: 18px 16px 132px;
  }

  .hero-figure {
    min-height: 220px;
  }

  .hero-video-frame,
  .hero-video {
    min-height: 240px;
  }

  .hero-video-band,
  html[data-layout="video-section"] .hero-video-band {
    grid-template-columns: 1fr;
  }

  .hero-video--band {
    min-height: 260px;
  }
}

.spectrum-primary-button::part(button),
.app-page__primary::part(button) {
  min-height: 46px;
  padding-inline: 22px;
  border-radius: 999px;
  border: 1px solid rgba(22, 19, 14, 0.06) !important;
  background: linear-gradient(180deg, #ff7d1f, #ff6210) !important;
  background-color: #ff6a13 !important;
  color: #14110d !important;
  box-shadow: none !important;
  font-weight: 700;
}

.spectrum-secondary-button::part(button),
.app-page__secondary::part(button) {
  min-height: 46px;
  padding-inline: 22px;
  border-radius: 999px;
  border: 1px solid rgba(22, 19, 14, 0.08) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  color: rgba(26, 22, 18, 0.86) !important;
  box-shadow: none !important;
  font-weight: 600;
}

.spectrum-root sp-status-light::part(text) {
  color: rgba(58, 48, 38, 0.72);
  font-size: 0.75rem;
  letter-spacing: -0.01em;
}

.spectrum-root .spectrum-feature-tabs::part(tablist) {
  gap: 6px;
}

.spectrum-root .spectrum-feature-tabs sp-tab::part(tab) {
  min-height: 34px;
  padding-inline: 12px;
  border-radius: 999px;
  color: rgba(60, 50, 41, 0.72);
  font-size: 0.86rem;
  font-weight: 600;
}

.spectrum-root .spectrum-feature-tabs sp-tab[selected]::part(tab) {
  background: rgba(244, 239, 232, 0.96);
  color: rgba(22, 19, 14, 0.9);
  box-shadow: 0 0 0 1px rgba(22, 19, 14, 0.06) inset;
}

html[data-variant="readymag-minimal"] .workspace-window {
  width: min(calc(100vw - 92px), 1140px);
  border-radius: 30px;
  box-shadow:
    0 26px 72px rgba(50, 37, 21, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.96) inset;
}

html[data-variant="readymag-minimal"] .workspace-window__body {
  padding: 30px 30px 144px;
  gap: 28px;
}

html[data-variant="readymag-minimal"] .site-header,
html[data-variant="readymag-minimal"] .workspace-window__header,
html[data-variant="readymag-minimal"] .workspace-window__toolbar,
html[data-variant="readymag-minimal"] .hero-figure,
html[data-variant="readymag-minimal"] .spectrum-root .spectrum-panel-shell,
html[data-variant="readymag-minimal"] .app-page__summary,
html[data-variant="readymag-minimal"] .app-page__card,
html[data-variant="readymag-minimal"] .app-page__sidebar-block,
html[data-variant="readymag-minimal"] .header-panel__shell,
html[data-variant="readymag-minimal"] .spectrum-root .spectrum-dock {
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 18px 48px rgba(50, 37, 21, 0.045),
    0 1px 0 rgba(255, 255, 255, 0.96) inset;
}

html[data-variant="readymag-minimal"] .hero-block {
  gap: 28px;
}

html[data-variant="readymag-minimal"] .hero-copy h1 {
  max-width: 7.8ch;
  font-size: clamp(3.7rem, 5.5vw, 5.7rem);
  line-height: 0.88;
}

html[data-variant="readymag-minimal"] .hero-copy__lede,
html[data-variant="readymag-minimal"] .hero-copy__support {
  max-width: 52ch;
}

html[data-variant="readymag-minimal"] .hero-figure {
  padding: 26px;
}

html[data-variant="readymag-minimal"] .hero-video-frame {
  min-height: 360px;
}

html[data-variant="readymag-minimal"] .hero-video-band {
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 18px 48px rgba(50, 37, 21, 0.045),
    0 1px 0 rgba(255, 255, 255, 0.96) inset;
}

html[data-variant="readymag-minimal"] .hero-links {
  gap: 16px;
  color: rgba(45, 37, 30, 0.6);
}

html[data-variant="readymag-minimal"] .spectrum-primary-button::part(button),
html[data-variant="readymag-minimal"] .app-page__primary::part(button) {
  min-height: 44px;
  background: #15120f !important;
  background-color: #15120f !important;
  color: #fff8ef !important;
}

html[data-variant="readymag-minimal"] .spectrum-secondary-button::part(button),
html[data-variant="readymag-minimal"] .app-page__secondary::part(button) {
  background: rgba(255, 255, 255, 0.98) !important;
}

html[data-variant="readymag-minimal"] .spectrum-root .spectrum-feature-tabs sp-tab[selected]::part(tab) {
  background: rgba(22, 19, 14, 0.06);
}

html[data-variant="readymag-minimal"] .spectrum-root .spectrum-panel-shell {
  gap: 24px 26px;
}

html[data-variant="readymag-minimal"] .feature-panel__copy h2 {
  font-size: clamp(2.8rem, 4.2vw, 4.6rem);
}

html[data-variant="readymag-minimal"] .spectrum-root .spectrum-feature-card::part(content),
html[data-variant="readymag-minimal"] .spectrum-root .spectrum-notice-card::part(content) {
  background: rgba(252, 251, 248, 0.98);
}

html[data-variant="readymag-minimal"] .dock-button__icon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 243, 232, 0.92));
  box-shadow:
    0 20px 30px rgba(50, 37, 21, 0.1),
    0 8px 16px rgba(50, 37, 21, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

html[data-variant="readymag-blocks"] .wallpaper-speckle {
  opacity: 0.16;
}

html[data-variant="readymag-blocks"] .workspace-window {
  border-radius: 32px;
}

html[data-variant="readymag-blocks"] .hero-block {
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.8fr);
  gap: 26px;
}

html[data-variant="readymag-blocks"] .hero-figure {
  border-color: rgba(22, 19, 14, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 196, 74, 0.26), rgba(255, 239, 214, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 240, 232, 0.9));
}

html[data-variant="readymag-blocks"] .hero-video-frame {
  background:
    linear-gradient(180deg, rgba(255, 225, 176, 0.68), rgba(248, 236, 214, 0.92));
}

html[data-variant="readymag-blocks"] .hero-video-band {
  background:
    linear-gradient(180deg, rgba(255, 194, 78, 0.18), rgba(255, 255, 255, 0.96));
}

html[data-variant="readymag-blocks"] .hero-brand__mark,
html[data-variant="readymag-blocks"] .top-logo__mark {
  background: none;
  color: inherit;
}

html[data-variant="readymag-blocks"] .spectrum-primary-button::part(button),
html[data-variant="readymag-blocks"] .app-page__primary::part(button) {
  background: linear-gradient(180deg, #ff8a24, #ff6410) !important;
  background-color: #ff6a13 !important;
  color: #15120f !important;
}

html[data-variant="readymag-blocks"] .spectrum-secondary-button::part(button),
html[data-variant="readymag-blocks"] .app-page__secondary::part(button) {
  border-color: rgba(22, 19, 14, 0.12) !important;
}

html[data-variant="readymag-blocks"] .feature-panel__copy h2 {
  max-width: 11ch;
}

html[data-variant="readymag-blocks"] .feature-tab-panel[value="understand"] .spectrum-panel-shell {
  background:
    linear-gradient(90deg, rgba(255, 162, 0, 0.22) 0 34%, rgba(255, 255, 255, 0.96) 34% 100%);
}

html[data-variant="readymag-blocks"] .feature-tab-panel[value="knowledge"] .spectrum-panel-shell {
  background:
    linear-gradient(90deg, rgba(239, 239, 234, 0.98) 0 34%, rgba(255, 255, 255, 0.96) 34% 100%);
}

html[data-variant="readymag-blocks"] .feature-tab-panel[value="evaluate"] .spectrum-panel-shell {
  background:
    linear-gradient(90deg, rgba(255, 142, 58, 0.18) 0 34%, rgba(255, 255, 255, 0.96) 34% 100%);
}

html[data-variant="readymag-blocks"] .feature-tab-panel[value="launch"] .spectrum-panel-shell {
  background:
    linear-gradient(90deg, rgba(248, 244, 238, 0.98) 0 34%, rgba(255, 255, 255, 0.96) 34% 100%);
}

html[data-variant="readymag-blocks"] .spectrum-root .spectrum-feature-card:nth-child(1)::part(content) {
  background:
    linear-gradient(180deg, rgba(255, 168, 0, 0.14), rgba(255, 255, 255, 0.96));
}

html[data-variant="readymag-blocks"] .spectrum-root .spectrum-feature-card:nth-child(2)::part(content) {
  background:
    linear-gradient(180deg, rgba(243, 239, 232, 0.98), rgba(255, 255, 255, 0.96));
}

html[data-variant="readymag-blocks"] .app-page__summary,
html[data-variant="readymag-blocks"] .workspace-sheet__card:first-child {
  background:
    linear-gradient(180deg, rgba(255, 177, 57, 0.22), rgba(255, 255, 255, 0.96));
}

html[data-variant="readymag-blocks"] .app-page__card--accent,
html[data-variant="readymag-blocks"] .app-page__sidebar-item.is-open {
  background:
    linear-gradient(180deg, rgba(255, 236, 210, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 0 0 3px rgba(255, 106, 19, 0.08);
}

html[data-variant="readymag-blocks"] .spectrum-root .spectrum-feature-tabs sp-tab[selected]::part(tab) {
  background: rgba(255, 106, 19, 0.14);
  color: rgba(22, 19, 14, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 106, 19, 0.14) inset;
}

html[data-variant="readymag-blocks"] .dock-button[data-page="docs"] .dock-button__icon {
  background:
    linear-gradient(180deg, #ffd159, #ffb42e);
}

html[data-variant="readymag-blocks"] .dock-button[data-page="proof"] .dock-button__icon {
  background:
    linear-gradient(180deg, #c9f1ea, #78ddd1);
}

html[data-variant="readymag-blocks"] .dock-button[data-page="talk"] .dock-button__icon {
  background:
    linear-gradient(180deg, #d8f7ae, #85e066);
}

html[data-variant="readymag-blocks"] .dock-button[data-page="launch"] .dock-button__icon {
  background:
    linear-gradient(180deg, #e4d1ff, #ad87ff);
}

html[data-layout="video-banner"] .workspace-page--home {
  gap: 22px;
}

html[data-layout="video-banner"] .hero-video-band {
  display: grid;
  order: -1;
  padding: 18px;
}

html[data-layout="video-banner"] .hero-video-band__copy {
  display: none;
}

html[data-layout="video-banner"] .hero-video--band {
  min-height: 460px;
}

html[data-layout="video-banner"] .hero-block {
  grid-template-columns: 1fr;
}

html[data-layout="video-banner"] .hero-figure--video {
  display: none;
}

html[data-layout="video-section"] .workspace-page--home {
  gap: 22px;
}

html[data-layout="video-section"] .hero-block {
  grid-template-columns: 1fr;
}

html[data-layout="video-section"] .hero-figure--video {
  display: none;
}

html[data-layout="video-section"] .hero-video-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  align-items: stretch;
}

html[data-layout="video-section"] .hero-video--band {
  min-height: 420px;
}

/* Spectrum compare variants */
html[data-variant="dock-nav"] .spectrum-root .page {
  padding-bottom: 156px;
}

html[data-variant="dock-nav"] .spectrum-root .spectrum-dock {
  padding: 10px 12px;
  border-radius: 18px;
  border-color: rgba(209, 196, 176, 0.92);
  background:
    linear-gradient(180deg, rgba(251, 245, 235, 0.98), rgba(243, 234, 221, 0.94));
  box-shadow:
    0 22px 34px rgba(110, 91, 66, 0.14),
    0 8px 18px rgba(110, 91, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html[data-variant="dock-nav"] .spectrum-root .spectrum-dock-group {
  gap: 6px;
}

html[data-variant="dock-nav"] .spectrum-root .spectrum-dock-button {
  color: rgba(71, 57, 39, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
}

html[data-variant="dock-nav"] .spectrum-root .spectrum-dock-button::part(button) {
  min-width: 102px;
  min-height: 56px;
  padding-inline: 12px;
  border-radius: 14px;
}

html[data-variant="dock-nav"] .spectrum-root .spectrum-dock-button svg {
  width: 18px;
  height: 18px;
}

html[data-variant="dock-nav"] .spectrum-root .spectrum-dock-button::part(label) {
  font-weight: 700;
}

html[data-variant="card-default"] .spectrum-root .spectrum-panel-shell {
  padding: 20px 22px;
  gap: 16px 18px;
  border-color: rgba(220, 209, 192, 0.76);
  background: rgba(250, 245, 238, 0.82);
  box-shadow:
    0 14px 28px rgba(122, 102, 71, 0.08),
    0 4px 10px rgba(122, 102, 71, 0.05);
}

html[data-variant="card-default"] .spectrum-root .spectrum-feature-card::part(content),
html[data-variant="card-default"] .spectrum-root .spectrum-notice-card::part(content) {
  background: rgba(255, 255, 255, 0.98);
}

html[data-variant="card-default"] .spectrum-root .spectrum-feature-card {
  min-height: 164px;
}

html[data-variant="card-default"] .spectrum-root .feature-card [slot="heading"],
html[data-variant="card-default"] .spectrum-root .notice-card [slot="heading"] {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

html[data-variant="card-default"] .spectrum-root .feature-card [slot="description"],
html[data-variant="card-default"] .spectrum-root .notice-card [slot="description"] {
  color: rgba(89, 74, 55, 0.76);
  font-size: 0.92rem;
}

html[data-variant="card-default"] .spectrum-root .feature-card__footer span::before {
  background: rgba(20, 115, 230, 0.92);
  box-shadow: none;
}

html[data-variant="card-default"] .spectrum-root .spectrum-notice-card {
  bottom: 102px;
}

/* Multi-window workspace refinement */
.workspace-page--app {
  grid-template-columns: minmax(220px, 248px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.app-page__content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.app-page__sidebar {
  position: sticky;
  top: 0;
  display: grid;
  gap: 14px;
}

.app-page__sidebar-block {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(224, 212, 192, 0.84);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.62) 34%, rgba(255, 255, 255, 0.28)),
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(247, 240, 229, 0.92));
  box-shadow:
    0 18px 32px rgba(118, 98, 70, 0.08),
    0 6px 12px rgba(118, 98, 70, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.app-page__sidebar-kicker,
.app-page__sidebar-label {
  margin: 0;
  color: rgba(101, 83, 58, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-page__sidebar-owner {
  display: grid;
  gap: 4px;
}

.app-page__sidebar-owner span {
  color: rgba(109, 90, 64, 0.66);
  font-size: 0.86rem;
}

.app-page__sidebar-owner strong {
  color: rgba(48, 38, 24, 0.94);
  font-size: 1.12rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.app-page__sidebar-list {
  display: grid;
  gap: 10px;
}

.app-page__sidebar-item {
  appearance: none;
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(219, 206, 186, 0.9);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 242, 233, 0.86));
  color: rgba(51, 40, 25, 0.92);
  text-align: left;
  box-shadow:
    0 14px 24px rgba(118, 98, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.app-page__sidebar-item strong {
  font-size: 0.98rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.app-page__sidebar-item span {
  color: rgba(98, 80, 56, 0.74);
  font-size: 0.84rem;
}

.app-page__sidebar-item:hover {
  transform: translateY(-1px);
  border-color: rgba(172, 203, 255, 0.82);
  box-shadow:
    0 18px 30px rgba(118, 98, 70, 0.1),
    0 0 0 4px rgba(20, 115, 230, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.app-page__sidebar-item.is-open {
  border-color: rgba(20, 115, 230, 0.34);
  background:
    radial-gradient(circle at top, rgba(120, 183, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.9));
  box-shadow:
    0 18px 30px rgba(96, 135, 204, 0.14),
    0 0 0 4px rgba(20, 115, 230, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.app-page__sidebar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-page__sidebar-chip {
  padding: 7px 10px;
  border: 1px solid rgba(214, 201, 180, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: rgba(85, 68, 46, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.spectrum-root .spectrum-dock {
  overflow: visible;
}

.spectrum-root .spectrum-dock-group {
  align-items: flex-end;
}

.spectrum-root .spectrum-dock-button {
  --dock-scale: 1;
  --dock-lift: 0px;
  position: relative;
  transform: translateY(calc(var(--dock-lift) * -1)) scale(var(--dock-scale));
  transform-origin: center bottom;
  transition:
    transform 150ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 150ms ease;
  will-change: transform;
}

.dock-button__icon,
.dock-button__label {
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    opacity 150ms ease;
}

.spectrum-root .spectrum-dock-button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(45, 58, 84, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.46);
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.spectrum-root .spectrum-dock-button.is-selected::after,
.spectrum-root .dock-button--minimized-window.is-window-open::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.spectrum-root .spectrum-dock-button:hover .dock-button__icon,
.spectrum-root .spectrum-dock-button.is-selected .dock-button__icon {
  border-color: rgba(20, 115, 230, 0.14);
  box-shadow:
    0 24px 34px rgba(50, 37, 21, 0.12),
    0 10px 18px rgba(20, 115, 230, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.spectrum-root .spectrum-dock-button.is-selected .dock-button__icon,
.spectrum-root .dock-button--minimized-window.is-window-open .dock-button__icon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 249, 239, 0.96));
}

.spectrum-root .spectrum-dock-button:hover .dock-button__label,
.spectrum-root .spectrum-dock-button.is-selected .dock-button__label,
.spectrum-root .dock-button--minimized-window.is-window-open .dock-button__label {
  color: var(--dock-accent-text);
}

.spectrum-root .spectrum-dock-button.is-bouncing {
  animation: dock-bounce 560ms cubic-bezier(0.24, 1.24, 0.32, 1);
}

@keyframes dock-extra-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.78);
  }

  to {
    opacity: 1;
    transform: translateY(calc(var(--dock-lift) * -1)) scale(var(--dock-scale));
  }
}

@keyframes dock-bounce {
  0% {
    transform: translateY(calc(var(--dock-lift) * -1)) scale(var(--dock-scale));
  }

  28% {
    transform: translateY(calc(var(--dock-lift) * -1 - 18px)) scale(calc(var(--dock-scale) + 0.08));
  }

  52% {
    transform: translateY(calc(var(--dock-lift) * -1 + 6px)) scale(calc(var(--dock-scale) - 0.02));
  }

  100% {
    transform: translateY(calc(var(--dock-lift) * -1)) scale(var(--dock-scale));
  }
}

.site-header .top-logo__mark {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px;
}

.site-header .top-logo__mark img {
  width: 34px;
  height: 34px;
}

.window-stack {
  position: fixed;
  top: 118px;
  right: max(28px, env(safe-area-inset-right));
  width: min(780px, calc(100vw - 44px));
  height: calc(100vh - 240px);
  z-index: 14;
  pointer-events: none;
}

.window-stack:empty {
  display: none;
}

.floating-window {
  --window-x: calc(var(--window-column, 0) * 34px);
  --window-y: calc(var(--window-row, 0) * 34px);
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, calc(100vw - 56px));
  border: 1px solid rgba(223, 210, 191, 0.9);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.66) 32%, rgba(255, 255, 255, 0.3)),
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(246, 239, 228, 0.94));
  box-shadow:
    0 34px 54px rgba(105, 88, 64, 0.18),
    0 12px 24px rgba(105, 88, 64, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(22px) saturate(1.22);
  opacity: 0;
  pointer-events: auto;
  transform: translate3d(calc(var(--window-x) * -1), var(--window-y), 0) scale(0.96);
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease,
    width 220ms ease;
}

.floating-window--visible {
  opacity: 1;
  transform: translate3d(calc(var(--window-x) * -1), var(--window-y), 0) scale(1);
}

.floating-window--closing {
  opacity: 0;
  transform: translate3d(calc(var(--window-x) * -1 + 12px), calc(var(--window-y) + 28px), 0) scale(0.92);
}

.floating-window--minimizing {
  opacity: 0;
  transform: translate3d(calc(var(--window-x) * -1 + 28px), calc(var(--window-y) + 84px), 0) scale(0.76);
}

.floating-window--expanded {
  width: min(520px, calc(100vw - 36px));
}

.floating-window__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(214, 202, 183, 0.72);
  background:
    radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.96), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(243, 248, 255, 0.48));
}

.floating-window__file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: rgba(48, 38, 24, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
}

.floating-window__file span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-window__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.floating-window__eyebrow {
  margin: 0;
  color: rgba(103, 84, 58, 0.68);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.floating-window__title {
  margin: 0;
  color: rgba(41, 31, 20, 0.96);
  font-size: 1.32rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.floating-window__description {
  margin: 0;
  color: rgba(88, 71, 49, 0.82);
  line-height: 1.58;
}

.floating-window__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.floating-window__chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(215, 203, 183, 0.82);
  color: rgba(84, 67, 46, 0.82);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}

.floating-window__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(82, 66, 44, 0.88);
  line-height: 1.48;
}

.floating-window__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.floating-window__action {
  appearance: none;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(219, 206, 186, 0.9);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.floating-window__action--primary {
  border-color: rgba(255, 255, 255, 0.44);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.28), transparent 58%),
    linear-gradient(180deg, rgba(125, 187, 255, 0.98), rgba(43, 124, 246, 0.96));
  color: #ffffff;
  box-shadow:
    0 18px 28px rgba(52, 118, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.floating-window__action--secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 242, 233, 0.9));
  color: rgba(52, 40, 24, 0.88);
  box-shadow:
    0 14px 22px rgba(118, 98, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.floating-window__action:hover {
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .window-stack {
    top: auto;
    bottom: 118px;
    right: 18px;
    height: 430px;
    width: min(720px, calc(100vw - 28px));
  }

  .floating-window {
    width: min(340px, calc(100vw - 42px));
  }
}

@media (max-width: 920px) {
  .site-search {
    width: min(320px, 46vw);
  }

  .window-search {
    min-width: 0;
    width: min(220px, 34vw);
  }

  .workspace-page--app {
    grid-template-columns: 1fr;
  }

  .app-page__sidebar {
    position: static;
    order: 2;
  }

  .app-page__content {
    order: 1;
  }

  .window-stack {
    position: static;
    width: calc(100% - 20px);
    height: auto;
    margin: 12px auto 0;
    display: grid;
    gap: 12px;
    pointer-events: auto;
  }

  .floating-window,
  .floating-window--visible,
  .floating-window--closing {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    opacity: 1;
    transform: none;
  }

  .floating-window--expanded {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header__right {
    width: 100%;
    justify-content: stretch;
  }

  .site-search {
    width: 100%;
  }

  .window-header-actions {
    gap: 8px;
  }

  .window-search {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .app-page__sidebar-block,
  .floating-window__body {
    padding: 16px;
  }

  .floating-window__header {
    padding: 13px 14px;
  }

  .floating-window__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .spectrum-root .spectrum-dock {
    padding: 10px;
  }

  .spectrum-root .spectrum-dock-group {
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .spectrum-root .spectrum-dock-button {
    transform: none;
  }

  .spectrum-root .spectrum-dock-button::after {
    bottom: -6px;
  }

  .spectrum-root .spectrum-dock-button::part(button) {
    min-width: 94px;
    min-height: 58px;
  }
}

/* Compact workspace chrome and keep the dock outside the page surface. */
.workspace-window {
  top: 96px;
  bottom: 126px;
  z-index: 3;
  width: min(calc(100vw - 72px), var(--max-width));
}

.workspace-window--expanded {
  top: 78px;
  bottom: 126px;
}

.spectrum-root .workspace-window {
  min-height: 0;
}

.workspace-window__header {
  min-height: 42px;
  padding: 8px 14px;
}

.workspace-window__toolbar {
  display: none !important;
}

.window-controls,
.window-header-actions {
  gap: 8px;
}

.window-control {
  width: 12px;
  height: 12px;
}

.window-file {
  font-size: 0.92rem;
  letter-spacing: 0;
}

.window-header-actions {
  min-width: auto;
}

.spectrum-root .spectrum-window-action::part(button) {
  min-width: 30px;
  min-height: 30px;
  border-radius: 10px;
}

.spectrum-window-action img {
  width: 17px;
  height: 17px;
}

.workspace-window__body {
  padding-top: 18px;
  padding-bottom: 28px;
}

.desktop-dock {
  z-index: 2;
}

@media (max-width: 920px) {
  .workspace-window {
    width: calc(100% - 20px) !important;
    margin-bottom: 150px;
  }
}

@media (max-width: 640px) {
  .workspace-window__header {
    grid-template-columns: auto 1fr;
    padding: 8px 12px;
  }

  .workspace-window {
    background: rgb(250, 245, 236);
  }

  .window-header-actions {
    display: none;
  }

  .window-file {
    justify-self: end;
    font-size: 0.86rem;
  }

  .workspace-window__body {
    background: rgb(250, 245, 236);
    padding-top: 16px;
    padding-bottom: 26px;
  }
}

/* Top-right utility screens: search, settings, and profile now use the dock visual system. */
.workspace-page--app.app-page--dock-utility {
  grid-template-columns: minmax(190px, 228px) minmax(0, 1fr);
  --utility-accent: #2f78ff;
  --utility-accent-strong: #135fe0;
  --utility-soft: rgba(47, 120, 255, 0.12);
  --utility-glow: rgba(47, 120, 255, 0.18);
  --utility-ink: #15181f;
}

.workspace-page--app.app-page--dock-utility[data-surface="controls"] {
  --utility-accent: #18a36c;
  --utility-accent-strong: #0b7552;
  --utility-soft: rgba(24, 163, 108, 0.13);
  --utility-glow: rgba(24, 163, 108, 0.18);
}

.workspace-page--app.app-page--dock-utility[data-surface="profile"] {
  --utility-accent: #f2743d;
  --utility-accent-strong: #c94c1e;
  --utility-soft: rgba(242, 116, 61, 0.14);
  --utility-glow: rgba(242, 116, 61, 0.2);
}

.app-page--dock-utility .app-page__content {
  gap: 14px;
}

.app-page--dock-utility .app-page__hero,
.app-page--dock-utility .app-page__grid {
  grid-template-columns: minmax(0, 1fr) minmax(248px, 0.52fr);
  gap: 14px;
}

.app-page--dock-utility .app-page__copy,
.app-page--dock-utility .app-page__summary,
.app-page--dock-utility .app-page__card,
.app-page--dock-utility .app-page__sidebar-block {
  border: 1px solid rgba(21, 24, 31, 0.09);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18px 18px, var(--utility-soft), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.93));
  box-shadow:
    0 18px 38px rgba(26, 28, 36, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.app-page--dock-utility .app-page__copy {
  padding: 20px;
}

.app-page--dock-utility .app-page__summary,
.app-page--dock-utility .app-page__card {
  padding: 18px;
}

.app-page--dock-utility .app-page__eyebrow,
.app-page--dock-utility .app-page__summary-label,
.app-page--dock-utility .app-page__sidebar-kicker,
.app-page--dock-utility .app-page__sidebar-label {
  color: rgba(21, 24, 31, 0.52);
  letter-spacing: 0;
}

.app-page--dock-utility .app-page__copy h2 {
  max-width: 17ch;
  color: var(--utility-ink);
  font-size: 2.48rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.app-page--dock-utility .app-page__copy p,
.app-page--dock-utility .app-page__summary p,
.app-page--dock-utility .app-page__card p {
  color: rgba(21, 24, 31, 0.66);
}

.app-page--dock-utility .app-page__summary {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.app-page--dock-utility .app-page__summary::before {
  content: "";
  width: 58px;
  height: 58px;
  margin-bottom: 8px;
  border: 1px solid rgba(21, 24, 31, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5)),
    var(--utility-icon) center / 42px 42px no-repeat,
    linear-gradient(135deg, var(--utility-soft), rgba(255, 255, 255, 0.94));
  box-shadow:
    0 16px 26px var(--utility-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.app-page--dock-utility[data-surface="search"] .app-page__summary {
  --utility-icon: url("./media/ui-icon-search-v4.png?v=20260507d");
}

.app-page--dock-utility[data-surface="controls"] .app-page__summary {
  --utility-icon: url("./media/ui-icon-controls-v4.png?v=20260507d");
}

.app-page--dock-utility[data-surface="profile"] .app-page__summary {
  --utility-icon: url("./media/ui-icon-profile-v4.png?v=20260507d");
}

.app-page--dock-utility .app-page__summary strong {
  color: var(--utility-ink);
  font-size: 1.46rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.app-page--dock-utility .app-page__list--utility {
  padding: 0;
  list-style: none;
}

.app-page--dock-utility .app-page__list-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(21, 24, 31, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.app-page--dock-utility .app-page__list-icon,
.app-page--dock-utility .app-page__rail-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(21, 24, 31, 0.07);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(145deg, var(--utility-soft), rgba(255, 255, 255, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.app-page--dock-utility .app-page__list-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--utility-accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.app-page--dock-utility .app-page__list-icon img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.app-page--dock-utility .app-page__list-content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.app-page--dock-utility .app-page__list-content strong {
  color: var(--utility-ink);
  font-size: 0.98rem;
  line-height: 1.18;
}

.app-page--dock-utility .app-page__list-content span {
  color: rgba(21, 24, 31, 0.62);
  font-size: 0.86rem;
  line-height: 1.3;
}

.app-page--dock-utility .app-page__list-content small {
  color: var(--utility-accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-page--dock-utility .app-page__card--accent {
  background:
    radial-gradient(circle at top left, var(--utility-soft), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.92));
}

.app-page--dock-utility .app-page__rail--utility {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-page--dock-utility .app-page__rail-item--rich {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px;
  border-color: rgba(21, 24, 31, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.app-page--dock-utility .app-page__rail-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.app-page--dock-utility .app-page__rail-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.app-page--dock-utility .app-page__rail-content {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.app-page--dock-utility .app-page__rail-content strong {
  overflow: hidden;
  color: var(--utility-ink);
  font-size: 0.86rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page--dock-utility .app-page__rail-content span {
  overflow: hidden;
  color: rgba(21, 24, 31, 0.58);
  font-size: 0.74rem;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page--dock-utility .app-page__sidebar {
  gap: 10px;
}

.app-page--dock-utility .app-page__sidebar-block {
  gap: 10px;
  padding: 14px;
}

.app-page--dock-utility .app-page__sidebar-block:first-child::before {
  content: "";
  width: 44px;
  height: 44px;
  border: 1px solid rgba(21, 24, 31, 0.08);
  border-radius: 14px;
  background:
    var(--utility-icon) center / 32px 32px no-repeat,
    linear-gradient(135deg, var(--utility-soft), rgba(255, 255, 255, 0.92));
  box-shadow: 0 10px 18px var(--utility-glow);
}

.app-page--dock-utility[data-surface="search"] .app-page__sidebar-block:first-child {
  --utility-icon: url("./media/ui-icon-search-v4.png?v=20260507d");
}

.app-page--dock-utility[data-surface="controls"] .app-page__sidebar-block:first-child {
  --utility-icon: url("./media/ui-icon-controls-v4.png?v=20260507d");
}

.app-page--dock-utility[data-surface="profile"] .app-page__sidebar-block:first-child {
  --utility-icon: url("./media/ui-icon-profile-v4.png?v=20260507d");
}

.app-page--dock-utility .app-page__sidebar-owner strong {
  color: var(--utility-ink);
  letter-spacing: 0;
}

.app-page--dock-utility .app-page__sidebar-item {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
}

.app-page--dock-utility .app-page__sidebar-item:hover,
.app-page--dock-utility .app-page__sidebar-item.is-open {
  border-color: color-mix(in srgb, var(--utility-accent) 36%, white);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 14px 26px var(--utility-glow),
    0 0 0 3px var(--utility-soft);
}

.app-page--dock-utility .app-page__sidebar-chip {
  border-color: rgba(21, 24, 31, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: var(--utility-accent-strong);
}

.spectrum-root .app-page--dock-utility .app-page__primary::part(button) {
  border-color: color-mix(in srgb, var(--utility-accent) 64%, black);
  background: linear-gradient(180deg, color-mix(in srgb, var(--utility-accent) 86%, white), var(--utility-accent-strong));
}

.spectrum-root .app-page--dock-utility .app-page__secondary::part(button) {
  border-color: rgba(21, 24, 31, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--utility-ink);
}

@media (max-width: 920px) {
  .workspace-page--app.app-page--dock-utility,
  .app-page--dock-utility .app-page__hero,
  .app-page--dock-utility .app-page__grid {
    grid-template-columns: 1fr;
  }

  .app-page--dock-utility .app-page__sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .app-page--dock-utility .app-page__copy {
    padding: 18px;
  }

  .app-page--dock-utility .app-page__copy h2 {
    font-size: 2.15rem;
  }

  .app-page--dock-utility .app-page__rail--utility,
  .app-page--dock-utility .app-page__sidebar {
    grid-template-columns: 1fr;
  }

  .desktop-dock,
  .spectrum-root .spectrum-dock {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(calc(100% - 24px), 340px);
    margin: 18px auto 28px;
    transform: none;
  }
}

/* Header menu icons now share the same generated dock-icon language. */
.header-panel {
  --header-panel-accent: #1473e6;
  --header-panel-soft: rgba(20, 115, 230, 0.12);
}

.header-panel[data-panel="library"] {
  --header-panel-accent: #159a63;
  --header-panel-soft: rgba(21, 154, 99, 0.13);
}

.header-panel[data-panel="infra"] {
  --header-panel-accent: #0c8fb5;
  --header-panel-soft: rgba(12, 143, 181, 0.13);
}

.header-panel[data-panel="docs"] {
  --header-panel-accent: #4567d8;
  --header-panel-soft: rgba(69, 103, 216, 0.13);
}

.header-panel[data-panel="company"] {
  --header-panel-accent: #d95f28;
  --header-panel-soft: rgba(217, 95, 40, 0.14);
}

.header-panel__shell {
  width: 334px;
  border-radius: 20px;
}

.header-panel__section {
  gap: 6px;
}

.header-panel__section-label {
  padding: 4px 9px 2px;
  letter-spacing: 0;
}

.header-panel__row {
  min-height: 58px;
  padding: 8px 10px;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
}

.header-panel__row:hover,
.header-panel__row:focus-visible {
  border-color: color-mix(in srgb, var(--header-panel-accent) 22%, white);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--header-panel-soft) 72%, white));
  box-shadow: 0 10px 18px rgba(33, 38, 48, 0.06);
}

.header-panel__row-icon,
.header-panel__row-icon--orange {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(21, 24, 31, 0.07);
  border-radius: 13px;
  color: var(--header-panel-accent);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), transparent 44%),
    linear-gradient(145deg, var(--header-panel-soft), rgba(255, 255, 255, 0.92));
  box-shadow:
    0 8px 16px rgba(35, 40, 48, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.header-panel__row-icon svg {
  width: 22px;
  height: 22px;
}

.header-panel__row-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.header-panel__row-label {
  font-size: 0.9rem;
  line-height: 1.15;
}

.header-panel__row-description {
  max-width: 25ch;
  font-size: 0.78rem;
  line-height: 1.3;
}

.header-panel__row-arrow {
  color: color-mix(in srgb, var(--header-panel-accent) 70%, #2c2c2c);
}

/* PostHog-inspired document table surfaces, adapted to the KEIAILAB dock UI. */
:root {
  --posthog-paper: rgba(245, 245, 239, 0.96);
  --posthog-paper-strong: rgba(255, 255, 251, 0.98);
  --posthog-ink: rgba(21, 23, 28, 0.94);
  --posthog-muted: rgba(75, 78, 82, 0.7);
  --posthog-line: rgba(92, 91, 82, 0.24);
  --posthog-line-soft: rgba(92, 91, 82, 0.14);
  --posthog-warm: #f7a51e;
}

.workspace-window,
.floating-window,
.header-panel__shell,
.app-page__summary,
.app-page__card,
.app-page__sidebar-block,
.spectrum-root .spectrum-dock {
  border-color: var(--posthog-line);
  background:
    linear-gradient(180deg, var(--posthog-paper-strong), var(--posthog-paper));
  box-shadow:
    0 18px 38px rgba(21, 23, 28, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.workspace-window__header,
.floating-window__header {
  border-bottom: 1px solid var(--posthog-line);
  background:
    linear-gradient(180deg, rgba(236, 236, 226, 0.94), rgba(221, 221, 209, 0.9));
}

.workspace-window__body {
  background:
    linear-gradient(180deg, rgba(252, 251, 245, 0.74), rgba(238, 236, 226, 0.72));
}

.header-panel__shell {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.header-panel__section-label {
  padding: 8px 14px 6px;
  border-bottom: 1px solid var(--posthog-line-soft);
  background: rgba(232, 232, 220, 0.74);
  color: rgba(69, 70, 65, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: none;
}

.header-panel__row {
  min-height: 56px;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.header-panel__row + .header-panel__row,
.app-page__list-item + .app-page__list-item,
.floating-window__list li + li {
  border-top: 1px solid var(--posthog-line-soft);
}

.header-panel__row:hover,
.header-panel__row:focus-visible {
  transform: none;
  border-color: transparent;
  background: rgba(255, 255, 251, 0.86);
  box-shadow: inset 3px 0 0 var(--posthog-warm);
}

.header-panel__row-label,
.app-page__list-content strong,
.app-page__sidebar-item strong,
.floating-window__title {
  color: var(--posthog-ink);
}

.header-panel__row-description,
.app-page__list-content span,
.app-page__card p,
.floating-window__description,
.floating-window__list li {
  color: var(--posthog-muted);
}

.header-panel__row-icon,
.header-panel__row-icon--orange,
.app-page--dock-utility .app-page__list-icon,
.app-page--dock-utility .app-page__rail-icon,
.dock-button__icon {
  border-color: var(--posthog-line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(238, 238, 228, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.app-page__summary,
.app-page__card,
.app-page__sidebar-block,
.floating-window {
  border-radius: 12px;
}

.app-page__card h3,
.app-page__summary-label,
.app-page__sidebar-kicker,
.app-page__sidebar-label,
.floating-window__eyebrow {
  color: rgba(69, 70, 65, 0.68);
  letter-spacing: 0;
}

.app-page--dock-utility .app-page__list-item,
.app-page__sidebar-item,
.floating-window__list li {
  border-color: transparent;
  border-radius: 0;
  background: rgba(255, 255, 251, 0.58);
  box-shadow: none;
}

.app-page--dock-utility .app-page__list--utility {
  overflow: hidden;
  border: 1px solid var(--posthog-line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 251, 0.66);
}

.app-page--dock-utility .app-page__rail-item--rich,
.app-page__sidebar-chip,
.floating-window__chip {
  border-color: var(--posthog-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 251, 0.7);
}

.spectrum-root .app-page__primary::part(button),
.floating-window__action--primary {
  border-color: rgba(139, 83, 0, 0.7);
  background: linear-gradient(180deg, #f7b53c, #e69513);
  color: rgba(19, 18, 14, 0.96);
}

.spectrum-root .app-page__secondary::part(button),
.floating-window__action--secondary {
  border-color: var(--posthog-line);
  background: rgba(255, 255, 251, 0.72);
  color: var(--posthog-ink);
}

.app-page--dock-utility .app-page__copy,
.app-page--dock-utility .app-page__summary,
.app-page--dock-utility .app-page__card,
.app-page--dock-utility .app-page__sidebar-block {
  border-color: var(--posthog-line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, var(--posthog-paper-strong), var(--posthog-paper));
  box-shadow:
    0 18px 38px rgba(21, 23, 28, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.app-page--dock-utility .app-page__list-item {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.app-page--dock-utility .app-page__list-item + .app-page__list-item {
  border-top: 1px solid var(--posthog-line-soft);
}

.app-page--dock-utility .app-page__rail-item--rich {
  border-color: var(--posthog-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 251, 0.7);
}

.app-page--dock-utility .app-page__sidebar-item {
  border: 0;
  border-top: 1px solid var(--posthog-line-soft);
  border-radius: 0;
  background: transparent;
}

.app-page--dock-utility .app-page__sidebar-item:first-child {
  border-top: 0;
}

/* PostHog-style information architecture: utility bar, left launcher, dense document surface. */
:root {
  --architecture-rail: 112px;
  --architecture-top: 62px;
  --architecture-page: rgba(249, 248, 240, 0.97);
  --architecture-side: rgba(236, 236, 225, 0.94);
  --architecture-line: rgba(88, 87, 78, 0.22);
  --architecture-line-soft: rgba(88, 87, 78, 0.13);
}

.site-header {
  position: fixed !important;
  inset: 0 0 auto 0;
  min-height: var(--architecture-top);
  padding: 7px 16px;
  border-bottom: 1px solid var(--architecture-line);
  background:
    linear-gradient(180deg, rgba(250, 250, 244, 0.98), rgba(236, 236, 225, 0.95));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
  backdrop-filter: blur(12px) saturate(1.02);
  z-index: 22;
}

.site-header__left {
  min-width: 0;
}

.site-header__right {
  gap: 10px;
}

.top-logo {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
}

.site-header .top-logo__mark {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
}

.site-header .top-logo__mark img {
  width: 44px;
  height: 44px;
}

.site-search {
  width: min(320px, 30vw);
  min-height: 36px;
  border-color: var(--architecture-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 250, 0.78);
}

.site-search__input {
  font-size: 0.86rem;
}

.site-search__submit {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.top-nav {
  position: fixed !important;
  top: calc(var(--architecture-top) + 18px);
  left: 14px;
  z-index: 16;
  width: 84px;
  display: grid;
  align-items: start;
  justify-items: stretch;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--architecture-line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(250, 250, 244, 0.93), rgba(229, 230, 219, 0.88));
  box-shadow:
    0 16px 32px rgba(21, 23, 28, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.top-nav__toggle {
  appearance: none;
  width: 100%;
  min-height: 68px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  padding: 7px 4px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(38, 40, 40, 0.76);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.top-nav__toggle:hover,
.top-nav__toggle.is-active {
  color: rgba(18, 19, 20, 0.96);
  border-color: var(--architecture-line-soft);
  background: rgba(255, 255, 250, 0.82);
  box-shadow: inset 3px 0 0 var(--posthog-warm);
}

.top-nav__toggle:active {
  transform: translateY(1px);
}

.top-nav__icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--architecture-line-soft);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.96), rgba(239, 239, 228, 0.94));
}

.top-nav__icon img {
  width: 31px;
  height: 31px;
  display: block;
  object-fit: contain;
  filter: none;
}

.top-nav__label {
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-panel {
  top: var(--architecture-top);
  z-index: 18;
}

.header-panel__shell {
  left: calc(var(--architecture-rail) + 14px) !important;
  top: 16px;
  width: min(388px, calc(100vw - var(--architecture-rail) - 36px));
  border-radius: 8px;
}

.header-panel__row {
  min-height: 50px;
}

.workspace-window {
  top: calc(var(--architecture-top) + 12px);
  right: 22px;
  bottom: 106px;
  left: calc(var(--architecture-rail) + 16px);
  width: auto;
  max-width: none;
  margin: 0;
  translate: none;
  border-radius: 10px;
  background: var(--architecture-page);
  backdrop-filter: none;
  box-shadow:
    0 22px 42px rgba(21, 23, 28, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  z-index: 5;
}

.workspace-window--expanded {
  top: calc(var(--architecture-top) + 6px);
  right: 16px;
  bottom: 96px;
  left: calc(var(--architecture-rail) + 8px);
}

.workspace-window__header {
  min-height: 34px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--architecture-line);
}

.window-control {
  width: 10px;
  height: 10px;
}

.window-file {
  color: rgba(39, 40, 37, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.window-header-actions {
  display: none !important;
}

.workspace-window__body {
  gap: 0;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(252, 251, 245, 0.86), rgba(240, 239, 230, 0.8));
}

.hero-block {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.54fr);
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--architecture-line-soft);
}

.hero-copy {
  padding: 22px 24px;
  border-right: 1px solid var(--architecture-line-soft);
}

.hero-copy h1 {
  max-width: 18ch;
  font-size: clamp(1.92rem, 2.7vw, 2.72rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy__lede,
.hero-copy__support,
.app-page__copy p,
.app-page__summary p,
.app-page__card p {
  font-size: 0.91rem;
  line-height: 1.55;
}

.workspace-page--app {
  grid-template-columns: 212px minmax(0, 1fr);
  gap: 0;
  min-height: 100%;
}

.app-page__sidebar {
  position: sticky;
  top: 0;
  align-self: stretch;
  gap: 0;
  border-right: 1px solid var(--architecture-line);
  background: var(--architecture-side);
}

.app-page__sidebar-block {
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid var(--architecture-line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-page__sidebar-kicker,
.app-page__sidebar-label,
.app-page__eyebrow,
.app-page__summary-label {
  color: rgba(70, 71, 65, 0.7);
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: none;
}

.app-page__sidebar-owner strong {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.app-page__sidebar-item {
  padding: 9px 0;
  border: 0;
  border-top: 1px solid var(--architecture-line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-page__sidebar-item:first-child {
  border-top: 0;
}

.app-page__sidebar-item:hover,
.app-page__sidebar-item.is-open {
  transform: none;
  background: rgba(255, 255, 250, 0.54);
  box-shadow: inset 3px 0 0 var(--posthog-warm);
}

.app-page__content {
  gap: 0;
  min-width: 0;
}

.app-page__hero {
  grid-template-columns: minmax(0, 1.42fr) minmax(218px, 0.58fr);
  gap: 0;
  border-bottom: 1px solid var(--architecture-line);
}

.app-page__copy {
  padding: 20px 22px;
  border-right: 1px solid var(--architecture-line-soft);
}

.app-page__copy h2,
.app-page--dock-utility .app-page__copy h2 {
  max-width: 21ch;
  color: var(--posthog-ink);
  font-size: clamp(1.54rem, 2vw, 2.12rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.app-page__summary,
.app-page__card,
.app-page--dock-utility .app-page__copy,
.app-page--dock-utility .app-page__summary,
.app-page--dock-utility .app-page__card,
.app-page--dock-utility .app-page__sidebar-block {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-page__summary,
.app-page__card {
  padding: 16px 20px;
}

.app-page__summary strong {
  font-size: 1.15rem;
  letter-spacing: 0;
}

.app-page__grid,
.app-page--dock-utility .app-page__grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.app-page__card {
  border-bottom: 1px solid var(--architecture-line-soft);
}

.app-page__card h3 {
  font-size: 0.96rem;
  letter-spacing: 0;
}

.app-page--dock-utility .app-page__list--utility {
  border-radius: 6px;
}

.window-stack,
.floating-window {
  display: none !important;
}

.desktop-dock,
.spectrum-root .spectrum-dock {
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 18px;
  z-index: 6;
}

.spectrum-root .spectrum-dock-group {
  gap: 6px;
}

.dock-button {
  min-width: 58px;
}

.spectrum-root .spectrum-dock-button::part(button) {
  min-width: 52px;
  min-height: 54px;
  padding: 5px 6px;
  border-radius: 14px;
}

.dock-button__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.dock-button__icon img {
  width: 34px;
  height: 34px;
  filter: none;
  transform: none;
}

.dock-button__label {
  max-width: 62px;
  overflow: hidden;
  font-size: 0.62rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 920px) {
  :root {
    --architecture-rail: 0px;
  }

  .site-header {
    position: sticky !important;
    min-height: 58px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .site-header__left,
  .site-header__right {
    width: 100%;
  }

  .site-search {
    width: 100%;
  }

  .top-nav {
    position: static !important;
    width: 100%;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px;
  }

  .top-nav__toggle {
    min-width: 72px;
    min-height: 48px;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    padding: 5px 8px;
  }

  .top-nav__icon {
    width: 28px;
    height: 28px;
  }

  .top-nav__icon img {
    width: 23px;
    height: 23px;
  }

  .header-panel {
    top: 118px;
  }

  .header-panel__shell {
    left: 10px !important;
    width: calc(100vw - 20px);
  }

  .workspace-window,
  .workspace-window--expanded {
    top: 136px;
    right: 10px;
    bottom: 128px;
    left: 10px;
    width: auto !important;
    margin: 0;
  }

  .workspace-page--app,
  .workspace-page--app.app-page--dock-utility,
  .app-page__hero,
  .app-page--dock-utility .app-page__hero {
    grid-template-columns: 1fr;
  }

  .app-page__sidebar {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--architecture-line);
  }

  .app-page__copy,
  .hero-copy {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .site-header .top-logo__mark,
  .site-header .top-logo__mark img {
    width: 38px !important;
    height: 38px !important;
  }

  .hero-copy {
    padding: 18px;
  }

  .hero-copy h1,
  .app-page__copy h2,
  .app-page--dock-utility .app-page__copy h2 {
    font-size: clamp(1.46rem, 8vw, 1.92rem);
  }

  .workspace-window,
  .workspace-window--expanded {
    top: 150px;
    bottom: 122px;
  }

  .desktop-dock,
  .spectrum-root .spectrum-dock {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 10px;
    width: min(calc(100vw - 20px), 330px);
    margin: 0;
    transform: translateX(-50%);
  }
}

html[data-variant] .hero-block,
.spectrum-root .hero-block {
  grid-template-columns: 1fr !important;
}

html[data-variant] .workspace-window__body,
.spectrum-root .workspace-window__body {
  gap: 0 !important;
  padding: 0 !important;
}

.workspace-page--home,
.hero-block,
.hero-copy,
.workspace-page--app,
.app-page__content {
  min-width: 0;
  max-width: 100%;
}

html[data-variant] .workspace-page--home,
.spectrum-root .workspace-page--home,
html[data-variant] .hero-block,
.spectrum-root .hero-block,
html[data-variant] .hero-copy,
.spectrum-root .hero-copy {
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

html[data-variant] .hero-copy,
.spectrum-root .hero-copy {
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 24px 18px;
  border-right: 0;
  border-bottom: 1px solid var(--architecture-line-soft);
}

html[data-variant] .hero-copy h1,
.spectrum-root .hero-copy h1,
.workspace-page--home .hero-copy h1 {
  max-width: 24ch !important;
  font-size: clamp(1.82rem, 2.2vw, 2.42rem) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

html[data-variant] .feature-panel,
.spectrum-root .feature-panel,
html[data-variant] .spectrum-root .spectrum-panel-shell {
  margin-top: 0;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr) !important;
  gap: 16px !important;
  padding: 18px 24px;
  border-radius: 0;
  border-inline: 0;
  box-shadow: none;
}

html[data-variant] .feature-panel__copy h2,
.spectrum-root .feature-panel__copy h2 {
  max-width: 28ch !important;
  font-size: clamp(1.28rem, 1.7vw, 1.82rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

html[data-variant] .feature-panel__copy p,
.spectrum-root .feature-panel__copy p {
  max-width: 58ch;
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .site-header {
    align-items: stretch;
  }

  .site-header__left {
    display: grid;
    justify-items: center;
    gap: 8px;
  }

  .top-nav {
    max-height: 58px;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }

  .top-nav__toggle {
    width: auto !important;
    min-width: 76px;
  }

  .workspace-window,
  .workspace-window--expanded {
    position: fixed !important;
    top: 174px;
    right: 10px;
    bottom: 116px;
    left: 10px;
    width: auto !important;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 8px 10px;
  }

  .top-nav {
    max-height: 54px;
  }

  .top-nav__toggle {
    min-height: 44px;
    min-width: 72px;
  }

  .top-nav__label {
    font-size: 0.64rem;
  }

  html[data-variant] .hero-copy,
  .spectrum-root .hero-copy {
    padding: 16px;
  }

  html[data-variant] .hero-copy h1,
  .spectrum-root .hero-copy h1,
  .workspace-page--home .hero-copy h1 {
    max-width: 100% !important;
    font-size: clamp(1.42rem, 6.8vw, 1.82rem) !important;
  }

  html[data-variant] .feature-panel,
  .spectrum-root .feature-panel,
  html[data-variant] .spectrum-root .spectrum-panel-shell {
    grid-template-columns: 1fr !important;
    padding: 14px 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions sp-button {
    width: 100%;
  }

  .workspace-window,
  .workspace-window--expanded {
    top: 168px;
    bottom: 112px;
  }

  .desktop-dock,
  .spectrum-root .spectrum-dock {
    width: calc(100vw - 20px);
    max-width: 380px;
  }

  .spectrum-root .spectrum-dock-group {
    justify-content: center;
  }
}

/* Keep the primary header in its original top-bar architecture. */
.site-header {
  position: sticky !important;
  top: 0;
  min-height: 62px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--architecture-line);
  background:
    linear-gradient(180deg, rgba(250, 250, 244, 0.98), rgba(236, 236, 225, 0.95));
  z-index: 22;
}

.site-header__left,
.site-header__right {
  width: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header__left {
  min-width: 0;
}

.site-header__right {
  margin-left: auto;
  justify-content: flex-end;
}

.top-nav {
  position: static !important;
  width: auto;
  max-height: none;
  display: flex;
  align-items: center;
  justify-items: initial;
  gap: 8px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.top-nav__toggle {
  width: auto !important;
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 999px;
}

.top-nav__toggle:hover,
.top-nav__toggle.is-active {
  box-shadow: none;
}

.top-nav__icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.top-nav__icon img {
  width: 22px;
  height: 22px;
}

.top-nav__label {
  font-size: 0.78rem;
  line-height: 1;
}

.header-panel {
  top: 62px;
}

.header-panel__shell {
  left: var(--header-panel-offset, 210px) !important;
  top: 0;
  width: min(388px, calc(100vw - 24px));
}

.workspace-window {
  top: 78px;
  right: auto;
  left: 50%;
  width: min(calc(100vw - 72px), var(--max-width));
  translate: -50% 0;
}

.workspace-window--expanded {
  top: 70px;
  right: auto;
  left: 50%;
  width: min(calc(100vw - 44px), 1280px);
  translate: -50% 0;
}

@media (max-width: 920px) {
  .site-header {
    position: sticky !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-header__left,
  .site-header__right {
    width: 100%;
  }

  .site-header__left {
    justify-content: space-between;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start !important;
  }

  .workspace-window,
  .workspace-window--expanded {
    position: fixed !important;
    top: 150px;
    right: 10px;
    bottom: 116px;
    left: 10px;
    width: auto !important;
    translate: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 8px 10px;
  }

  .top-nav__toggle {
    min-height: 38px;
    min-width: auto;
    padding-inline: 8px;
  }

  .top-nav__icon {
    width: 24px;
    height: 24px;
  }

  .top-nav__icon img {
    width: 20px;
    height: 20px;
  }

  .top-nav__label {
    font-size: 0.68rem;
  }

  .workspace-window,
  .workspace-window--expanded {
    top: 146px;
    bottom: 112px;
  }
}

/* Header mega menu depth, inspired by PostHog's categorized nav panels. */
.header-panel__shell {
  width: min(720px, calc(100vw - 32px));
  padding: 8px;
  border-radius: 10px;
}

.header-panel[data-panel="product"] .header-panel__shell,
.header-panel[data-panel="library"] .header-panel__shell {
  width: min(760px, calc(100vw - 32px));
}

.header-panel__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.header-panel[data-panel="product"] .header-panel__list,
.header-panel[data-panel="library"] .header-panel__list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.header-panel__section {
  min-width: 0;
  gap: 0;
  padding: 10px;
  border: 1px solid var(--posthog-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 251, 0.58);
}

.header-panel__section + .header-panel__section {
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid var(--posthog-line-soft);
}

.header-panel__section-label {
  padding: 0;
  color: rgba(28, 31, 34, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
}

.header-panel__section-description {
  margin: 4px 0 10px;
  color: rgba(72, 75, 78, 0.66);
  font-size: 0.7rem;
  line-height: 1.28;
}

.header-panel__row {
  min-height: 54px;
  padding: 8px 6px;
  border-radius: 7px;
  gap: 10px;
}

.header-panel__row + .header-panel__row {
  border-top: 1px solid var(--posthog-line-soft);
}

.header-panel__row-icon,
.header-panel__row-icon--orange {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 8px;
}

.header-panel__row-icon img {
  width: 27px;
  height: 27px;
}

.header-panel__row-text {
  min-width: 0;
}

.header-panel__row-label {
  font-size: 0.84rem;
}

.header-panel__row-description {
  max-width: 28ch;
  font-size: 0.72rem;
  line-height: 1.28;
}

.header-panel__row-arrow {
  display: none;
}

@media (max-width: 780px) {
  .header-panel__shell,
  .header-panel[data-panel="product"] .header-panel__shell,
  .header-panel[data-panel="library"] .header-panel__shell {
    left: 10px !important;
    width: calc(100vw - 20px);
  }

  .header-panel__list,
  .header-panel[data-panel="product"] .header-panel__list,
  .header-panel[data-panel="library"] .header-panel__list {
    grid-template-columns: 1fr;
  }
}

/* Last cascade guard: prevent uneven category panels from stretching or clipping on narrow screens. */
@media (max-width: 780px) {
  .header-panel__shell,
  .header-panel[data-panel="product"] .header-panel__shell,
  .header-panel[data-panel="library"] .header-panel__shell {
    left: 0 !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  .header-panel__list,
  .header-panel[data-panel="product"] .header-panel__list,
  .header-panel[data-panel="library"] .header-panel__list {
    grid-template-columns: 1fr !important;
  }

  .header-panel[data-panel="library"] .header-panel__section,
  .header-panel[data-panel="product"] .header-panel__section {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* Workspace-only Concept B refinement: compact command-window structure. */
.workspace-window,
.workspace-window--expanded {
  top: 82px;
  right: auto;
  bottom: 108px;
  left: 50%;
  width: min(calc(100vw - 88px), 1120px);
  max-width: 1120px;
  translate: -50% 0;
  border: 1px solid rgba(52, 48, 39, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 250, 0.96), rgba(244, 242, 232, 0.94));
  box-shadow:
    0 24px 54px rgba(7, 11, 15, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.workspace-window--expanded {
  top: 72px;
  bottom: 92px;
  width: min(calc(100vw - 52px), 1240px);
  max-width: 1240px;
}

.workspace-window__header {
  min-height: 32px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(55, 52, 43, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(237, 235, 224, 0.9));
}

.window-file {
  min-width: 0;
  max-width: min(48vw, 420px);
  color: rgba(38, 36, 31, 0.82);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-window__tabs {
  min-height: 42px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(55, 52, 43, 0.12);
  background:
    linear-gradient(180deg, rgba(250, 249, 241, 0.96), rgba(234, 232, 221, 0.88));
}

.workspace-tab {
  min-width: 126px;
  max-width: 188px;
  min-height: 30px;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  border-color: rgba(49, 48, 42, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.88), rgba(239, 237, 226, 0.74));
}

.workspace-tab.is-active {
  border-color: rgba(240, 160, 33, 0.52);
  box-shadow:
    0 8px 18px rgba(31, 30, 25, 0.08),
    inset 0 -2px 0 rgba(244, 161, 29, 0.92);
}

.workspace-tab__label {
  font-size: 0.7rem;
}

.workspace-tab__file {
  display: none;
}

.workspace-tab__close {
  opacity: 0.62;
}

.workspace-tab:hover .workspace-tab__close,
.workspace-tab.is-active .workspace-tab__close {
  opacity: 1;
}

.workspace-window__body {
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(253, 252, 246, 0.96), rgba(240, 238, 228, 0.92));
}

.workspace-page--home,
.workspace-page--app {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.workspace-page--home {
  display: grid;
  grid-template-rows: 1fr;
}

.workspace-page--home .feature-tabs,
.workspace-page--home .hero-links {
  display: none !important;
}

.workspace-page--home .hero-block {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-bottom: 0;
}

.workspace-page--home .hero-copy {
  min-height: 100%;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(28px, 5vw, 54px);
  border: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(250, 174, 54, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 251, 0.96), rgba(241, 238, 225, 0.86));
}

.workspace-page--home .hero-brand {
  margin-bottom: 4px;
}

.workspace-page--home .hero-copy h1 {
  max-width: 18ch !important;
  color: rgba(30, 31, 33, 0.96);
  font-size: clamp(2rem, 4.1vw, 4.2rem) !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
}

.workspace-page--home .hero-copy__lede,
.workspace-page--home .hero-copy__support {
  max-width: 60ch;
  margin: 0;
  color: rgba(66, 67, 62, 0.74);
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.55;
}

.workspace-page--home .hero-actions {
  margin-top: 8px;
}

.workspace-page--app {
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 0;
}

.app-page__sidebar {
  display: block;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  border-right: 1px solid rgba(55, 52, 43, 0.13);
  background:
    linear-gradient(180deg, rgba(244, 242, 232, 0.92), rgba(232, 229, 216, 0.72));
}

.app-page__sidebar-block {
  display: block;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(55, 52, 43, 0.1);
}

.app-page__sidebar-block:first-child,
.app-page__sidebar-block:nth-child(3) {
  display: none;
}

.app-page__sidebar-kicker,
.app-page__sidebar-label,
.app-page__eyebrow,
.app-page__summary-label {
  color: rgba(70, 69, 62, 0.68);
  font-size: 0.66rem;
  font-weight: 850;
}

.app-page__sidebar-owner {
  gap: 4px;
}

.app-page__sidebar-owner strong {
  font-size: 0.88rem;
}

.app-page__sidebar-list {
  display: grid;
  grid-auto-rows: auto;
  grid-template-rows: none;
  gap: 0;
}

.app-page__sidebar-item {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  padding: 9px 6px;
}

.app-page__sidebar-item strong,
.app-page__sidebar-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page__content {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(180deg, rgba(255, 255, 250, 0.88), rgba(246, 244, 234, 0.82));
}

.app-page__hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 0;
  border-bottom: 1px solid rgba(55, 52, 43, 0.12);
}

.app-page__copy {
  min-width: 0;
  gap: 10px;
  padding: 22px 24px;
  border-right: 1px solid rgba(55, 52, 43, 0.1);
}

.app-page__copy h2,
.app-page--dock-utility .app-page__copy h2 {
  max-width: 100%;
  color: rgba(30, 31, 33, 0.96);
  font-size: clamp(1.42rem, 2.1vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.app-page__copy p {
  max-width: 66ch;
  color: rgba(65, 66, 61, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.app-page__actions {
  flex-wrap: wrap;
  gap: 8px;
}

.app-page__summary {
  min-width: 0;
  padding: 22px 20px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(248, 246, 236, 0.9), rgba(235, 232, 219, 0.72));
  box-shadow: none;
}

.app-page__summary strong,
.app-page__summary p {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-page__summary strong {
  color: rgba(35, 36, 35, 0.94);
  font-size: 1.02rem;
  line-height: 1.2;
}

.app-page__summary p {
  color: rgba(69, 68, 62, 0.7);
  font-size: 0.84rem;
  line-height: 1.42;
}

.app-page__grid,
.app-page--dock-utility .app-page__grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(240px, 0.78fr);
  gap: 0;
}

.app-page__card,
.app-page--dock-utility .app-page__card {
  min-width: 0;
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid rgba(55, 52, 43, 0.09);
  border-bottom: 1px solid rgba(55, 52, 43, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-page__card:last-child {
  border-right: 0;
}

.app-page__card h3 {
  color: rgba(44, 44, 40, 0.84);
  font-size: 0.92rem;
  letter-spacing: 0;
}

.app-page__card p {
  color: rgba(69, 68, 62, 0.7);
  font-size: 0.88rem;
  line-height: 1.48;
}

.app-page__list {
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.app-page__list > li,
.app-page__list-item,
.app-page__rail-item,
.app-page--dock-utility .app-page__list-item,
.app-page--dock-utility .app-page__rail-item--rich {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(55, 52, 43, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 250, 0.54);
  color: rgba(55, 54, 49, 0.78);
  overflow-wrap: anywhere;
}

.app-page__list-content,
.app-page__rail-content {
  min-width: 0;
}

.app-page__list-content strong,
.app-page__rail-content strong {
  color: rgba(36, 37, 36, 0.92);
}

.app-page__list-content span,
.app-page__rail-content span,
.app-page__list > li {
  font-size: 0.84rem;
  line-height: 1.38;
}

.app-page__rail {
  gap: 7px;
}

@media (max-width: 920px) {
  .workspace-window,
  .workspace-window--expanded {
    top: 150px;
    right: 10px;
    bottom: 112px;
    left: 10px;
    width: auto !important;
    max-width: none;
    translate: none;
  }

  .workspace-page--app {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .app-page__sidebar {
    height: auto;
    max-height: 150px;
    border-right: 0;
    border-bottom: 1px solid rgba(55, 52, 43, 0.13);
  }

  .app-page__content {
    height: auto;
    overflow: visible;
  }

  .app-page__hero,
  .app-page__grid,
  .app-page--dock-utility .app-page__grid {
    grid-template-columns: 1fr;
  }

  .app-page__copy,
  .app-page__summary,
  .app-page__card {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .workspace-window,
  .workspace-window--expanded {
    top: 146px;
    bottom: 108px;
    border-radius: 18px;
  }

  .workspace-tab {
    min-width: 116px;
    max-width: 152px;
  }

  .workspace-page--home .hero-copy {
    padding: 24px 18px;
    align-content: start;
  }

  .workspace-page--home .hero-copy h1 {
    max-width: 100% !important;
    font-size: clamp(1.68rem, 8vw, 2.28rem) !important;
  }

  .app-page__copy {
    padding: 18px;
  }

  .app-page__copy h2,
  .app-page--dock-utility .app-page__copy h2 {
    font-size: clamp(1.28rem, 6.2vw, 1.7rem);
  }
}

/* Concept B: opened spaces stay as workspace tabs, while the Dock remains a launcher. */
.workspace-window__tabs-shell {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border-bottom: 1px solid var(--architecture-line-soft);
  background:
    linear-gradient(180deg, rgba(250, 250, 244, 0.94), rgba(235, 235, 224, 0.82));
}

.workspace-window__tabs-shell[hidden] {
  display: none !important;
}

.workspace-tabs-shell--overflow {
  grid-template-columns: 28px minmax(0, 1fr) 28px;
}

.workspace-window__tabs {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 0;
  background: transparent;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.workspace-window__tabs[hidden] {
  display: none !important;
}

.workspace-window__tabs::-webkit-scrollbar {
  display: none;
}

.workspace-tabs-nav {
  appearance: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(82, 82, 73, 0.13);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.92), rgba(240, 239, 230, 0.78));
  box-shadow:
    0 6px 12px rgba(21, 23, 28, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  color: rgba(32, 34, 35, 0.72);
  cursor: pointer;
}

.workspace-tabs-nav[hidden] {
  display: none !important;
}

.workspace-tabs-nav::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.workspace-tabs-nav--prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.workspace-tabs-nav--next::before {
  transform: translateX(-2px) rotate(45deg);
}

.workspace-tabs-nav:hover:not(:disabled) {
  border-color: rgba(21, 24, 31, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 253, 0.98), rgba(248, 248, 240, 0.92));
  color: rgba(18, 19, 20, 0.94);
}

.workspace-tabs-nav:disabled {
  opacity: 0.38;
  cursor: default;
}

.workspace-tab {
  appearance: none;
  min-width: 132px;
  max-width: 218px;
  min-height: 30px;
  display: inline-grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(82, 82, 73, 0.12);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.78), rgba(241, 240, 231, 0.58));
  color: rgba(32, 34, 35, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.workspace-tab:hover,
.workspace-tab.is-active {
  border-color: rgba(21, 24, 31, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 255, 253, 0.98), rgba(248, 248, 240, 0.92));
  color: rgba(18, 19, 20, 0.96);
  box-shadow:
    0 8px 18px rgba(21, 23, 28, 0.06),
    inset 0 -2px 0 rgba(247, 165, 30, 0.85);
}

.workspace-tab__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(21, 24, 31, 0.08);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(239, 239, 228, 0.94));
}

.workspace-tab__icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: saturate(0.96) contrast(0.98) brightness(1.02);
}

.workspace-tab__text {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}

.workspace-tab__label,
.workspace-tab__file {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-tab__label {
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.04;
}

.workspace-tab__file {
  color: rgba(72, 75, 78, 0.52);
  font-size: 0.58rem;
  font-weight: 750;
  line-height: 1;
}

.workspace-tab__close {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: rgba(76, 77, 72, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.workspace-tab__close:hover {
  background: rgba(21, 24, 31, 0.08);
  color: rgba(21, 24, 31, 0.86);
}

@media (max-width: 640px) {
  .workspace-window__tabs-shell {
    min-height: 40px;
    padding: 0 8px;
  }

  .workspace-tabs-shell--overflow {
    grid-template-columns: 26px minmax(0, 1fr) 26px;
  }

  .workspace-window__tabs {
    min-height: 40px;
    padding: 5px 0;
  }

  .workspace-tabs-nav {
    width: 26px;
    height: 26px;
  }

  .workspace-tab {
    min-width: 112px;
    max-width: 168px;
  }

  .workspace-tab__file {
    display: none;
  }
}

@media (max-width: 920px) {
  .workspace-window:not(.workspace-window--expanded) {
    top: max(150px, calc(var(--live-header-bottom, 150px) + 12px));
  }

  .desktop-dock,
  .spectrum-root .spectrum-dock {
    width: min(calc(100vw - 20px), 430px);
  }

  .spectrum-root .spectrum-dock-group {
    flex-wrap: nowrap;
  }

  .dock-button {
    min-width: 52px;
  }

  .dock-button--minimized-window {
    margin-left: 4px;
  }

  .dock-button--minimized-window::before {
    left: -5px;
    height: 40px;
  }
}

@media (max-width: 640px) {
  .workspace-window:not(.workspace-window--expanded) {
    top: max(146px, calc(var(--live-header-bottom, 146px) + 10px));
  }

  .spectrum-root .spectrum-dock-group {
    gap: 4px;
  }

  .dock-button {
    min-width: 45px;
  }

  .spectrum-root .spectrum-dock-button::part(button) {
    min-width: 45px;
    padding-inline: 4px;
  }
}

/* Expanded windows should behave like a focused full-screen workspace. */
body.workspace-window-expanded .page {
  z-index: 70;
  overflow: visible;
}

body.workspace-window-expanded .site-header,
body.workspace-window-expanded .desktop-dock {
  pointer-events: none;
}

.workspace-window--expanded {
  inset: 8px;
  width: auto !important;
  max-width: none;
  translate: none;
  border-radius: 16px;
  z-index: 90;
}

@media (max-width: 640px) {
  .workspace-window--expanded {
    inset: 6px;
    border-radius: 14px;
  }
}

/* Spotlight-style site search. */
.spotlight-search {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: clamp(84px, 12vh, 128px) 18px 32px;
}

.spotlight-search[hidden] {
  display: none !important;
}

.spotlight-search__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.26), transparent 30%),
    rgba(9, 13, 17, 0.32);
  backdrop-filter: blur(14px) saturate(1.05);
  cursor: default;
}

.spotlight-search__panel {
  position: relative;
  width: min(680px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 132px));
  overflow: hidden;
  border: 1px solid rgba(235, 226, 211, 0.92);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 253, 0.98), rgba(245, 243, 235, 0.96));
  box-shadow:
    0 34px 88px rgba(7, 10, 16, 0.28),
    0 16px 32px rgba(38, 34, 26, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.spotlight-search__form {
  min-height: 70px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 18px;
  border-bottom: 1px solid rgba(92, 91, 82, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(241, 240, 231, 0.82));
}

.spotlight-search__icon {
  width: 30px;
  height: 30px;
}

.spotlight-search__input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(23, 25, 29, 0.94);
  font: inherit;
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: 0;
}

.spotlight-search__input::placeholder {
  color: rgba(78, 77, 70, 0.42);
}

.spotlight-search__input::-webkit-search-cancel-button {
  appearance: none;
}

.spotlight-search__close {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(90, 89, 80, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 251, 0.72);
  cursor: pointer;
}

.spotlight-search__close img {
  display: none;
}

.spotlight-search__close::before,
.spotlight-search__close::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgba(35, 98, 160, 0.82);
}

.spotlight-search__close::before {
  transform: rotate(45deg);
}

.spotlight-search__close::after {
  transform: rotate(-45deg);
}

.spotlight-search__status {
  padding: 9px 18px 7px;
  border-bottom: 1px solid rgba(92, 91, 82, 0.1);
  color: rgba(70, 70, 64, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
}

.spotlight-search__results {
  max-height: min(510px, calc(100vh - 226px));
  overflow-y: auto;
  padding: 8px;
}

.spotlight-search__result {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.spotlight-search__result + .spotlight-search__result {
  margin-top: 2px;
}

.spotlight-search__result:hover,
.spotlight-search__result.is-active {
  border-color: rgba(73, 143, 222, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 244, 252, 0.9));
  box-shadow: inset 3px 0 0 rgba(247, 165, 30, 0.9);
}

.spotlight-search__result-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(21, 24, 31, 0.1);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(239, 239, 228, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.spotlight-search__result-icon img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  filter: saturate(0.96) contrast(0.98) brightness(1.02);
}

.spotlight-search__result-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.spotlight-search__result-title {
  overflow: hidden;
  color: rgba(26, 27, 30, 0.94);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-search__result-description {
  overflow: hidden;
  color: rgba(76, 75, 69, 0.66);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-search__result-category {
  max-width: 136px;
  overflow: hidden;
  padding: 5px 7px;
  border: 1px solid rgba(92, 91, 82, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 251, 0.72);
  color: rgba(77, 74, 65, 0.64);
  font-size: 0.66rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-search__empty {
  padding: 34px 18px 38px;
  color: rgba(76, 75, 69, 0.64);
  font-size: 0.86rem;
  font-weight: 750;
  text-align: center;
}

@media (max-width: 640px) {
  .spotlight-search {
    padding-top: 76px;
  }

  .spotlight-search__panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 108px);
    border-radius: 14px;
  }

  .spotlight-search__form {
    min-height: 60px;
    grid-template-columns: 30px minmax(0, 1fr) 34px;
    gap: 9px;
    padding-inline: 12px;
  }

  .spotlight-search__input {
    font-size: 1.06rem;
  }

  .spotlight-search__result {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .spotlight-search__result-category {
    display: none;
  }
}

/* Final responsive guard for dense mega-menu categories. */
@media (max-width: 780px) {
  .header-panel__shell,
  .header-panel[data-panel="product"] .header-panel__shell,
  .header-panel[data-panel="library"] .header-panel__shell {
    left: 10px !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }

  .header-panel__list,
  .header-panel[data-panel="product"] .header-panel__list,
  .header-panel[data-panel="library"] .header-panel__list {
    grid-template-columns: 1fr !important;
  }

  .header-panel[data-panel="library"] .header-panel__section,
  .header-panel[data-panel="product"] .header-panel__section {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

.header-panel[data-panel="product"] .header-panel__shell,
.header-panel[data-panel="library"] .header-panel__shell {
  width: min(760px, calc(100vw - 32px));
}

.header-panel[data-panel="product"] .header-panel__list,
.header-panel[data-panel="library"] .header-panel__list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 780px) {
  .header-panel[data-panel="product"] .header-panel__shell,
  .header-panel[data-panel="library"] .header-panel__shell {
    left: 10px !important;
    width: calc(100vw - 20px);
  }

  .header-panel[data-panel="product"] .header-panel__list,
  .header-panel[data-panel="library"] .header-panel__list {
    grid-template-columns: 1fr;
  }
}

/* Keep header menus compact when categories have uneven item counts. */
.header-panel__shell {
  width: min(440px, calc(100vw - 32px));
}

.header-panel__list {
  grid-template-columns: 1fr;
  align-items: start;
}

.header-panel[data-panel="product"] .header-panel__shell,
.header-panel[data-panel="library"] .header-panel__shell {
  width: min(760px, calc(100vw - 32px));
}

.header-panel[data-panel="library"] .header-panel__shell {
  width: min(680px, calc(100vw - 32px));
}

.header-panel[data-panel="product"] .header-panel__list,
.header-panel[data-panel="library"] .header-panel__list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.header-panel[data-panel="library"] .header-panel__list {
  grid-template-columns: minmax(280px, 1.12fr) minmax(250px, 0.88fr);
}

.header-panel[data-panel="library"] .header-panel__section:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.header-panel[data-panel="library"] .header-panel__section:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.header-panel[data-panel="library"] .header-panel__section:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.header-panel__section {
  align-self: start;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 0;
}

.header-panel__section-description {
  min-height: 0;
  margin-bottom: 8px;
}

.header-panel__row {
  min-height: 48px;
  align-items: center;
}

.top-nav__icon,
.header-panel__row-icon,
.header-panel__row-icon--orange {
  border-color: rgba(21, 24, 31, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(239, 239, 228, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.header-panel__row-icon,
.header-panel__row-icon--orange {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
}

.top-nav__icon img,
.header-panel__row-icon img {
  filter: saturate(0.94) contrast(0.98) brightness(1.02);
  opacity: 0.98;
}

.header-panel__row-icon img {
  width: 24px;
  height: 24px;
}

.header-panel__row-label {
  color: rgba(28, 31, 34, 0.9);
}

.header-panel__row-description {
  color: rgba(72, 75, 78, 0.64);
}

.header-panel {
  top: var(--header-panel-top, 62px);
}

@media (max-width: 780px) {
  .header-panel__shell,
  .header-panel[data-panel="product"] .header-panel__shell,
  .header-panel[data-panel="library"] .header-panel__shell {
    left: 0 !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  .header-panel__list,
  .header-panel[data-panel="product"] .header-panel__list,
  .header-panel[data-panel="library"] .header-panel__list {
    grid-template-columns: 1fr !important;
  }

  .header-panel[data-panel="library"] .header-panel__section,
  .header-panel[data-panel="product"] .header-panel__section {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* Final workspace guard: keep the mobile command window compact. */
@media (max-width: 640px) {
  .workspace-window .app-page__copy h2,
  .workspace-window .app-page--dock-utility .app-page__copy h2 {
    font-size: 1.42rem !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
  }

  .workspace-window .app-page__copy p,
  .workspace-window .app-page__summary p,
  .workspace-window .app-page__card p,
  .workspace-window .app-page__list > li,
  .workspace-window .app-page__list-content span,
  .workspace-window .app-page__rail-content span {
    font-size: 0.86rem !important;
    line-height: 1.42 !important;
  }

  .workspace-window .app-page__copy,
  .workspace-window .app-page__summary,
  .workspace-window .app-page__card {
    padding: 16px 18px !important;
  }

  .workspace-window .app-page__sidebar {
    max-height: 132px;
  }

  .workspace-window .app-page__sidebar-item {
    padding-block: 7px;
  }

  .workspace-window .app-page__hero {
    grid-template-columns: 1fr !important;
  }
}

/* Workspace simplification: pages focus on product/library explanation and sources. */
.workspace-window .app-page__sidebar {
  display: none !important;
}

.workspace-window .workspace-page--app,
.workspace-window .workspace-page--app.app-page--dock-utility {
  grid-template-columns: minmax(0, 1fr) !important;
}

.workspace-window .app-page__content {
  width: 100%;
}

.workspace-window .app-page__hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 360px);
}

.workspace-window .app-page__eyebrow,
.workspace-window sp-status-light {
  display: none !important;
}

.workspace-window .app-page__copy h2,
.workspace-window .app-page--dock-utility .app-page__copy h2 {
  max-width: 18ch;
  font-size: clamp(1.76rem, 2.7vw, 2.64rem);
}

.workspace-window .app-page__summary {
  display: grid;
  align-content: start;
  gap: 12px;
}

.workspace-window .app-page__summary-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.workspace-window .app-page__summary-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(55, 52, 43, 0.12);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(237, 235, 224, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.workspace-window .app-page__summary-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.workspace-window .app-page__summary-heading {
  min-width: 0;
}

.workspace-window .app-page__source-links {
  display: grid;
  gap: 7px;
}

.workspace-window .app-page__source-links[hidden] {
  display: none !important;
}

.workspace-window .app-page__source-link {
  min-width: 0;
  display: inline-grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 8px;
  border: 1px solid rgba(22, 119, 201, 0.18);
  border-radius: 11px;
  background: rgba(232, 246, 255, 0.62);
  color: rgba(18, 88, 132, 0.94);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
}

.workspace-window .app-page__source-link[hidden] {
  display: none !important;
}

.workspace-window .app-page__source-link img {
  width: 18px;
  height: 18px;
}

.workspace-window .app-page__source-link span {
  min-width: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

.workspace-window .app-page__grid[hidden],
.workspace-window .app-page__card[hidden],
.workspace-window sp-status-light[hidden] {
  display: none !important;
}

.workspace-window .app-page__grid {
  display: none !important;
}

.workspace-window .app-page__rail {
  display: none !important;
}

.workspace-window .app-page__button {
  min-height: 36px;
  display: inline-grid;
  grid-template-columns: 18px auto;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.workspace-window .app-page__button::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.96), rgba(234, 232, 220, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.workspace-window .app-page__button:hover {
  transform: translateY(-1px);
}

.workspace-window .app-page__button--primary {
  border: 1px solid rgba(31, 31, 28, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 253, 0.96), rgba(235, 232, 219, 0.86));
  color: rgba(26, 28, 29, 0.94);
  box-shadow:
    0 9px 18px rgba(23, 22, 18, 0.08),
    inset 0 -2px 0 rgba(244, 161, 29, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.workspace-window .app-page__button--primary:hover {
  border-color: rgba(244, 161, 29, 0.52);
}

.workspace-window .app-page__button--primary::before {
  background:
    url("./media/ui-icon-submit-v4.png?v=20260507d") center / 15px 15px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 251, 0.96), rgba(234, 232, 220, 0.84));
}

.workspace-window .app-page__button--secondary {
  border: 1px solid rgba(55, 52, 43, 0.14);
  background: rgba(255, 255, 251, 0.56);
  color: rgba(67, 66, 60, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.workspace-window .app-page__button--secondary:hover {
  border-color: rgba(55, 52, 43, 0.22);
  color: rgba(31, 31, 29, 0.92);
}

.workspace-window .app-page__button--secondary::before {
  background:
    url("./media/dock-product-os-bright-v3.png?v=20260507c") center / 16px 16px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 251, 0.96), rgba(234, 232, 220, 0.84));
}

@media (max-width: 640px) {
  .workspace-window .app-page__hero,
  .workspace-window .app-page__grid {
    grid-template-columns: 1fr !important;
  }

  .workspace-window .app-page__copy h2,
  .workspace-window .app-page--dock-utility .app-page__copy h2 {
    max-width: 100%;
    font-size: 1.42rem !important;
  }

  .workspace-window .app-page__summary-head {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .workspace-window .app-page__summary-icon {
    width: 36px;
    height: 36px;
  }

  .workspace-window .app-page__summary-icon img {
    width: 28px;
    height: 28px;
  }
}

/* Unified workspace reading surface: keep product/library pages in one flow. */
.workspace-window .app-page__content,
.workspace-window .app-page--dock-utility .app-page__content {
  max-width: min(940px, 100%);
  margin-inline: auto;
  padding: 24px 26px;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(54, 50, 40, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(246, 241, 231, 0.9));
  box-shadow:
    0 18px 32px rgba(25, 24, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.workspace-window .app-page__hero,
.workspace-window .app-page--dock-utility .app-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px;
}

.workspace-window .app-page__copy,
.workspace-window .app-page__summary,
.workspace-window .app-page__card,
.workspace-window .app-page--dock-utility .app-page__copy,
.workspace-window .app-page--dock-utility .app-page__summary,
.workspace-window .app-page--dock-utility .app-page__card {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.workspace-window .app-page__copy,
.workspace-window .app-page--dock-utility .app-page__copy {
  gap: 10px;
}

.workspace-window .app-page__copy h2,
.workspace-window .app-page--dock-utility .app-page__copy h2 {
  max-width: 100%;
  font-size: clamp(1.72rem, 2.45vw, 2.34rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.workspace-window .app-page__copy p,
.workspace-window .app-page__summary p,
.workspace-window .app-page__card p,
.workspace-window .app-page--dock-utility .app-page__copy p,
.workspace-window .app-page--dock-utility .app-page__summary p,
.workspace-window .app-page--dock-utility .app-page__card p {
  max-width: 82ch;
  font-size: 0.93rem;
  line-height: 1.56;
}

.workspace-window .app-page__actions {
  margin-top: 6px;
}

.workspace-window .app-page__summary,
.workspace-window .app-page--dock-utility .app-page__summary {
  padding-top: 13px !important;
  border-top: 1px solid rgba(54, 50, 40, 0.1) !important;
  display: grid;
  gap: 9px;
}

.workspace-window .app-page__summary-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.workspace-window .app-page__summary-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
}

.workspace-window .app-page__summary-icon img {
  width: 22px;
  height: 22px;
}

.workspace-window .app-page__summary-label {
  display: none !important;
}

.workspace-window .app-page__summary strong {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(38, 120, 183, 0.14);
  border-radius: 999px;
  background: rgba(232, 246, 255, 0.52);
  color: rgba(28, 83, 119, 0.94);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0;
}

.workspace-window .app-page__source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-window .app-page__source-link {
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.workspace-window .app-page__grid,
.workspace-window .app-page--dock-utility .app-page__grid {
  padding-top: 12px;
  border-top: 1px solid rgba(54, 50, 40, 0.1);
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px;
}

.workspace-window .app-page__grid[hidden],
.workspace-window .app-page__card[hidden] {
  display: none !important;
}

.workspace-window .app-page__card h3 {
  display: none;
}

.workspace-window .app-page__list {
  padding-left: 18px;
  gap: 8px;
  max-width: 86ch;
}

.workspace-window .app-page__list > li,
.workspace-window .app-page__list-content span,
.workspace-window .app-page__rail-content span {
  font-size: 0.9rem;
  line-height: 1.48;
}

.workspace-window .app-page__rail {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 0;
}

.workspace-window .app-page__rail-item {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .workspace-window .app-page__content,
  .workspace-window .app-page--dock-utility .app-page__content {
    padding: 18px;
    border-radius: 17px;
  }

  .workspace-window .app-page__copy h2,
  .workspace-window .app-page--dock-utility .app-page__copy h2 {
    font-size: 1.48rem !important;
  }
}

/* PostHog-inspired product prose: dense sections, icon rows, and README-like links. */
.workspace-window .app-page__content,
.workspace-window .app-page--dock-utility .app-page__content {
  max-width: min(990px, 100%);
  padding: 30px 32px 34px;
  gap: 22px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.96), rgba(250, 247, 238, 0.94));
  box-shadow: none;
}

.workspace-window .app-page__hero,
.workspace-window .app-page--dock-utility .app-page__hero {
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(62, 57, 45, 0.13);
}

.workspace-window .app-page__copy,
.workspace-window .app-page--dock-utility .app-page__copy {
  gap: 12px;
}

.workspace-window .app-page__copy h2,
.workspace-window .app-page--dock-utility .app-page__copy h2 {
  max-width: 22ch;
  color: rgba(35, 34, 29, 0.96);
  font-size: clamp(2rem, 3.05vw, 3.05rem);
  line-height: 1.03;
}

.workspace-window .app-page__copy p,
.workspace-window .app-page__summary p,
.workspace-window .app-page__card p,
.workspace-window .app-page__list-content span,
.workspace-window .app-page__rail-content span,
.workspace-window .app-page--dock-utility .app-page__copy p,
.workspace-window .app-page--dock-utility .app-page__summary p,
.workspace-window .app-page--dock-utility .app-page__card p {
  color: rgba(65, 61, 50, 0.74);
  font-size: 0.95rem;
  line-height: 1.6;
}

.workspace-window .app-page__summary,
.workspace-window .app-page--dock-utility .app-page__summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 16px 18px !important;
  border: 1px solid rgba(78, 69, 52, 0.14) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(255, 250, 236, 0.9), rgba(249, 243, 229, 0.78)) !important;
}

.workspace-window .app-page__summary::before,
.workspace-window .app-page--dock-utility .app-page__summary::before {
  content: "README";
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(56, 51, 40, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 250, 0.76);
  color: rgba(81, 72, 54, 0.72);
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1;
}

.workspace-window .app-page__summary-head {
  gap: 11px;
}

.workspace-window .app-page__summary-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.96), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 250, 0.96), rgba(237, 235, 224, 0.9));
}

.workspace-window .app-page__summary-icon img {
  width: 30px;
  height: 30px;
}

.workspace-window .app-page__summary strong {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(38, 36, 31, 0.94);
  font-size: 1.02rem;
  font-weight: 850;
}

.workspace-window .app-page__source-link {
  min-height: 32px;
  padding: 7px 10px;
  border-color: rgba(58, 132, 172, 0.22);
  border-radius: 7px;
  background: rgba(236, 248, 255, 0.68);
}

.workspace-window .app-page__grid,
.workspace-window .app-page--dock-utility .app-page__grid {
  padding-top: 0;
  border-top: 0;
  gap: 20px;
}

.workspace-window .app-page__card,
.workspace-window .app-page--dock-utility .app-page__card {
  display: grid;
  gap: 13px;
  padding-top: 20px !important;
  border-top: 1px solid rgba(62, 57, 45, 0.13) !important;
}

.workspace-window .app-page__card h3 {
  display: block;
  margin: 0;
  color: rgba(35, 34, 29, 0.94);
  font-size: clamp(1.15rem, 1.55vw, 1.42rem);
  font-weight: 850;
  line-height: 1.16;
}

.workspace-window .app-page__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  max-width: none;
  padding: 0;
  margin: 0;
  list-style: none;
}

.workspace-window .app-page__list-item,
.workspace-window .app-page--dock-utility .app-page__list-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(62, 57, 45, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 250, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.workspace-window .app-page__list-icon,
.workspace-window .app-page--dock-utility .app-page__list-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(21, 78, 94, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(233, 251, 255, 0.96), rgba(204, 239, 247, 0.82));
  color: rgba(18, 78, 94, 0.92);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}

.workspace-window .app-page__list-icon img,
.workspace-window .app-page--dock-utility .app-page__list-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.workspace-window .app-page__list-content,
.workspace-window .app-page__rail-content {
  gap: 4px;
}

.workspace-window .app-page__list-content strong,
.workspace-window .app-page__rail-content strong {
  color: rgba(35, 34, 29, 0.94);
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.28;
}

.workspace-window .app-page__list-content small {
  width: fit-content;
  margin-top: 2px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 211, 64, 0.18);
  color: rgba(93, 71, 30, 0.82);
  font-size: 0.68rem;
  font-weight: 850;
}

.workspace-window .app-page__rail {
  gap: 8px;
}

.workspace-window .app-page__rail-item,
.workspace-window .app-page--dock-utility .app-page__rail-item--rich {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(62, 57, 45, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 250, 0.72);
  color: rgba(56, 52, 43, 0.84);
}

.workspace-window .app-page__rail-item::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f7c93f;
  box-shadow: 0 0 0 3px rgba(247, 201, 63, 0.16);
}

.workspace-window .app-page__rail-item--rich::before {
  display: none;
}

@media (max-width: 760px) {
  .workspace-window .app-page__content,
  .workspace-window .app-page--dock-utility .app-page__content {
    padding: 22px 20px 28px;
  }

  .workspace-window .app-page__copy h2,
  .workspace-window .app-page--dock-utility .app-page__copy h2 {
    max-width: 100%;
    font-size: 1.72rem !important;
  }

  .workspace-window .app-page__list {
    grid-template-columns: 1fr;
  }
}

/* Product prose v2: make app pages read like a compact product index. */
.workspace-window .workspace-page--app,
.workspace-window .workspace-page--app.app-page--dock-utility {
  padding: 0 32px 34px;
}

.workspace-window .app-page__content,
.workspace-window .app-page--dock-utility .app-page__content {
  max-width: min(1080px, 100%);
  padding: 24px 26px 28px;
  gap: 18px;
  border: 1px solid rgba(60, 54, 40, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 254, 248, 0.98), rgba(249, 245, 234, 0.94));
}

.workspace-window .app-page__hero,
.workspace-window .app-page--dock-utility .app-page__hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr) !important;
  gap: 22px;
  padding-bottom: 14px;
}

.workspace-window .app-page__copy,
.workspace-window .app-page--dock-utility .app-page__copy {
  align-content: center;
  padding-top: 3px !important;
}

.workspace-window .app-page__copy h2,
.workspace-window .app-page--dock-utility .app-page__copy h2 {
  max-width: 18ch;
  font-size: 2.32rem;
  line-height: 1.02;
}

.workspace-window .app-page__copy p,
.workspace-window .app-page__summary p,
.workspace-window .app-page__card p,
.workspace-window .app-page__list-content span,
.workspace-window .app-page__rail-content span,
.workspace-window .app-page--dock-utility .app-page__copy p,
.workspace-window .app-page--dock-utility .app-page__summary p,
.workspace-window .app-page--dock-utility .app-page__card p {
  font-size: 0.91rem;
  line-height: 1.5;
}

.workspace-window .app-page__actions {
  margin-top: 4px;
}

.workspace-window .app-page__button {
  min-height: 34px;
  border-radius: 8px;
}

.workspace-window .app-page__summary,
.workspace-window .app-page--dock-utility .app-page__summary {
  gap: 9px;
  padding: 13px !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at top right, rgba(113, 184, 199, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(255, 251, 239, 0.98), rgba(248, 241, 224, 0.92)) !important;
}

.workspace-window .app-page__summary p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.workspace-window .app-page__summary-head {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}

.workspace-window .app-page__summary-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 8px;
}

.workspace-window .app-page__summary-icon img {
  width: 26px;
  height: 26px;
}

.workspace-window .app-page__summary::before,
.workspace-window .app-page--dock-utility .app-page__summary::before {
  content: "README";
  padding: 3px 7px;
}

.workspace-window .app-page__source-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.workspace-window .app-page__source-link {
  min-height: 30px;
  border-radius: 8px;
  width: 100%;
  font-size: 0.7rem;
}

.workspace-window .app-page__grid,
.workspace-window .app-page--dock-utility .app-page__grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr) !important;
  gap: 14px;
}

.workspace-window .app-page__card,
.workspace-window .app-page--dock-utility .app-page__card {
  gap: 12px;
  padding: 15px !important;
  border: 1px solid rgba(62, 57, 45, 0.12) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 250, 0.62) !important;
}

.workspace-window .app-page__card--accent,
.workspace-window .app-page--dock-utility .app-page__card--accent {
  background:
    radial-gradient(circle at top right, rgba(247, 201, 63, 0.16), transparent 44%),
    rgba(255, 255, 250, 0.66) !important;
}

.workspace-window .app-page__card h3 {
  display: block;
  font-size: 1.02rem;
  line-height: 1.18;
}

.workspace-window .app-page__list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 9px;
}

.workspace-window .app-page__list-item,
.workspace-window .app-page--dock-utility .app-page__list-item {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.workspace-window .app-page__list-icon,
.workspace-window .app-page--dock-utility .app-page__list-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.workspace-window .app-page__list-icon img,
.workspace-window .app-page--dock-utility .app-page__list-icon img {
  width: 27px;
  height: 27px;
}

.workspace-window .app-page__list-content strong,
.workspace-window .app-page__rail-content strong {
  font-size: 0.91rem;
}

.workspace-window .app-page__list-content small {
  padding: 3px 6px;
}

.workspace-window .app-page__rail {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px;
}

.workspace-window .app-page__rail-item {
  min-height: 29px;
  padding: 6px 9px;
  border-radius: 999px;
}

@media (max-width: 980px) {
  .workspace-window .app-page__hero,
  .workspace-window .app-page--dock-utility .app-page__hero,
  .workspace-window .app-page__grid,
  .workspace-window .app-page--dock-utility .app-page__grid {
    grid-template-columns: 1fr !important;
  }

  .workspace-window .app-page__source-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .workspace-window .workspace-page--app,
  .workspace-window .workspace-page--app.app-page--dock-utility {
    padding: 0 18px 26px;
  }

  .workspace-window .app-page__content,
  .workspace-window .app-page--dock-utility .app-page__content {
    padding: 20px 18px 24px;
  }

  .workspace-window .app-page__copy h2,
  .workspace-window .app-page--dock-utility .app-page__copy h2 {
    font-size: 1.72rem !important;
  }
}
