/* Exact desktop / Island styles extracted from the user-selected 2026-10-09 snapshot.
   Unused marketing selectors removed; all remaining rules scoped to .cx-legacy-demo. */
.cx-legacy-demo {
  color-scheme: light;
  --paper: #f4f3ee;
  --paper-raised: #fffefa;
  --ink: #111719;
  --ink-soft: #344046;
  --muted: #677177;
  --line: rgba(17, 23, 25, 0.16);
  --line-strong: rgba(17, 23, 25, 0.28);
  --cobalt: #225cff;
  --cobalt-dark: #1746cc;
  --pool: #79c8ff;
  --pool-soft: #cbeaff;
  --amber: #ffb344;
  --amber-soft: #ffe2a8;
  --mint: #79ddbd;
  --coral: #ff795e;
  --night: #111719;
  --night-raised: #192124;
  --night-copy: #e8ecea;
  --night-muted: #a9b3b3;
  --content: min(1220px, calc(100vw - 48px));
  --content-wide: min(1380px, calc(100vw - 48px));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 28px 80px rgba(18, 27, 32, 0.13), 0 8px 28px rgba(18, 27, 32, 0.08);
  --shadow-float: 0 32px 70px rgba(18, 27, 32, 0.2), 0 10px 24px rgba(18, 27, 32, 0.09);
}

.cx-legacy-demo * {
  box-sizing: border-box;
}

.cx-legacy-demo {
  scroll-behavior: smooth;
  background: var(--paper);
}

.cx-legacy-demo {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.cx-legacy-demo::selection,
.cx-legacy-demo *::selection {
  background: var(--amber);
  color: var(--ink);
}

.cx-legacy-demo ::-webkit-scrollbar {
  width: 11px;
}

.cx-legacy-demo ::-webkit-scrollbar-track {
  background: var(--paper);
}

.cx-legacy-demo ::-webkit-scrollbar-thumb {
  border: 3px solid var(--paper);
  border-radius: 999px;
  background: var(--ink-soft);
}

.cx-legacy-demo img,
.cx-legacy-demo svg {
  display: block;
  max-width: 100%;
}

.cx-legacy-demo a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.cx-legacy-demo button,
.cx-legacy-demo a {
  -webkit-tap-highlight-color: transparent;
}

.cx-legacy-demo button,
.cx-legacy-demo input,
.cx-legacy-demo select,
.cx-legacy-demo textarea {
  font: inherit;
}

.cx-legacy-demo button {
  color: inherit;
}

.cx-legacy-demo :focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.cx-legacy-demo h1,
.cx-legacy-demo h2,
.cx-legacy-demo h3,
.cx-legacy-demo p {
  margin-top: 0;
}

.cx-legacy-demo h1,
.cx-legacy-demo h2,
.cx-legacy-demo h3 {
  line-height: 0.96;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.cx-legacy-demo h1 {
  font-size: clamp(3.4rem, 8vw, 6rem);
}

.cx-legacy-demo h2 {
  font-size: clamp(2.55rem, 5.6vw, 5.4rem);
}

.cx-legacy-demo h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.cx-legacy-demo p {
  max-width: 70ch;
}

.cx-legacy-demo .hero__artifact {
  margin-top: clamp(38px, 4vw, 52px);
  scroll-margin-top: 88px;
}

.cx-legacy-demo .context-stage {
  position: relative;
  width: min(1120px, 100%);
  height: 710px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(17, 23, 25, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(231, 239, 255, 0.54)),
    var(--paper-raised);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.cx-legacy-demo .context-stage::before,
.cx-legacy-demo .context-stage::after {
  position: absolute;
  z-index: -2;
  content: "";
  border-radius: 50%;
}

.cx-legacy-demo .context-stage::before {
  top: -220px;
  left: -120px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(34, 92, 255, 0.18);
  box-shadow: 0 0 0 80px rgba(34, 92, 255, 0.025), 0 0 0 160px rgba(34, 92, 255, 0.018);
}

.cx-legacy-demo .context-stage::after {
  right: -160px;
  bottom: -250px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 179, 68, 0.18);
  box-shadow: 0 0 0 90px rgba(255, 179, 68, 0.035);
}

.cx-legacy-demo .hero__artifact {
  min-width: 0;
}

.cx-legacy-demo .context-stage {
  width: min(1120px, 100%);
  height: 650px;
  border-color: rgba(17, 23, 25, 0.14);
  border-radius: 18px;
  background: #dfe5e9;
  box-shadow: 0 38px 90px rgba(17, 23, 25, 0.16), 0 10px 30px rgba(17, 23, 25, 0.08);
}

.cx-legacy-demo .context-stage::before,
.cx-legacy-demo .context-stage::after {
  content: none;
}

.cx-legacy-demo .window-controls {
  display: flex;
  gap: 7px;
}

.cx-legacy-demo .window-controls i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: inset 0 0 0 0.5px rgba(17, 23, 25, 0.16);
}

.cx-legacy-demo .window-controls i:nth-child(2) { background: var(--amber); }

.cx-legacy-demo .window-controls i:nth-child(3) { background: var(--mint); }

.cx-legacy-demo .demo-cursor {
  position: absolute;
  z-index: 115;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

.cx-legacy-demo .demo-cursor__arrow {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 1.851852cqw;
  height: 2.645503cqw;
  max-width: none;
  transform: translate(-0.330688cqw, -0.330688cqw);
  user-select: none;
}

.cx-legacy-demo .demo-cursor i {
  position: absolute;
  top: -1.240079cqw;
  left: -1.240079cqw;
  width: 2.480159cqw;
  height: 2.480159cqw;
  transform: scale(0);
  border: 0.066138cqw solid rgba(34, 92, 255, 0.72);
  border-radius: 50%;
}

.cx-legacy-demo .demo-cursor.is-clicking i {
  animation: cxl-cursor-click 440ms var(--ease-out);
}

@media (max-width: 1050px) {
.cx-legacy-demo {
    --content: min(100% - 40px, 920px);
    --content-wide: min(100% - 40px, 980px);
  }
}

@media (max-width: 760px) {
.cx-legacy-demo {
    --content: calc(100% - 32px);
    --content-wide: calc(100% - 32px);
  }

.cx-legacy-demo .context-stage {
    height: 850px;
    overflow: hidden;
  }
}

@media (max-width: 1050px) {
.cx-legacy-demo .context-stage {
    height: 650px;
  }
}

@media (max-width: 760px) {
.cx-legacy-demo .context-stage {
    height: 720px;
  }

.cx-legacy-demo .context-island,
.cx-legacy-demo .context-stage[data-phase="request"] .context-island,
.cx-legacy-demo .context-stage[data-phase="granted"] .context-island,
.cx-legacy-demo .context-stage[data-phase="denied"] .context-island,
.cx-legacy-demo .context-stage[data-phase="revoked"] .context-island {
    width: calc(100% - 20px);
  }

.cx-legacy-demo .island-request {
    padding-right: 14px;
    padding-left: 14px;
  }

.cx-legacy-demo .demo-cursor {
    display: none;
  }
}

@media (max-width: 430px) {
.cx-legacy-demo .context-stage {
    height: 745px;
  }

.cx-legacy-demo .duration-control {
    grid-template-columns: 1fr repeat(3, auto);
  }

.cx-legacy-demo .duration-control button {
    padding: 0 6px;
  }
}

.cx-legacy-demo .hero__artifact {
  width: min(1240px, 100%);
  margin-inline: auto;
}

.cx-legacy-demo .context-stage {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1512 / 982;
  overflow: hidden;
  border: 1px solid rgba(28, 35, 39, 0.22);
  border-radius: 20px;
  background: #cad6dc;
  box-shadow: 0 42px 100px rgba(28, 35, 39, 0.2), 0 12px 34px rgba(28, 35, 39, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(10px, 0.82vw, 13px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  -webkit-font-smoothing: auto;
  font-optical-sizing: auto;
  isolation: isolate;
}

.cx-legacy-demo .context-stage::before,
.cx-legacy-demo .context-stage::after {
  content: none;
}

.cx-legacy-demo .context-stage button,
.cx-legacy-demo .context-stage input,
.cx-legacy-demo .context-stage select {
  font: inherit;
  letter-spacing: 0;
}

.cx-legacy-demo .context-stage button:focus-visible,
.cx-legacy-demo .context-stage [role="button"]:focus-visible {
  outline: 2px solid rgba(34, 92, 255, 0.62);
  outline-offset: 1px;
}

.cx-legacy-demo .mac-desktop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #cbd8df;
  
  background-image: url("../img/context-legacy/personos-desktop-wallpaper-v2.webp");
  background-position: center;
  background-size: cover;
}

.cx-legacy-demo .mac-desktop::after {
  position: absolute;
  z-index: 120;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.cx-legacy-demo .mac-menubar {
  position: absolute;
  z-index: 70;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 27px;
  min-height: 27px;
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 247, 248, 0.56);
  color: rgba(15, 18, 21, 0.9);
  box-shadow: inset 0 -0.5px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  font-size: 11px;
  font-weight: 510;
  white-space: nowrap;
}

.cx-legacy-demo .mac-menubar__left,
.cx-legacy-demo .mac-menubar__right {
  display: flex;
  align-items: center;
}

.cx-legacy-demo .mac-menubar__left { gap: 14px; }

.cx-legacy-demo .mac-menubar__right { gap: 9px; }

.cx-legacy-demo .mac-menubar strong { font-weight: 640; }

.cx-legacy-demo .menubar-mark {
  display: grid;
  width: 13px;
  height: 13px;
  margin-right: -4px;
  place-items: center;
}

.cx-legacy-demo .menubar-mark img { width: 13px; height: 13px; object-fit: contain; }

.cx-legacy-demo .menu-symbol {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.9;
}

.cx-legacy-demo .menu-symbol--battery { width: 19px; height: 13px; }

.cx-legacy-demo .menu-symbol--control { width: 14px; height: 14px; }

.cx-legacy-demo .mac-menubar svg {
  width: 15px;
  height: 15px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.cx-legacy-demo .mac-menubar time {
  min-width: 124px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cx-legacy-demo .native-window {
  position: absolute;
  z-index: 10;
  top: 48px;
  right: 50px;
  bottom: 78px;
  left: 50px;
  overflow: hidden;
  border: 1px solid rgba(23, 28, 31, 0.28);
  border-radius: 18px;
  background: rgba(249, 249, 249, 0.97);
  background-clip: padding-box;
  box-shadow: 0 36px 90px rgba(14, 22, 27, 0.26), 0 8px 24px rgba(14, 22, 27, 0.18), 0 1px 3px rgba(14, 22, 27, 0.2), inset 0 1px rgba(255, 255, 255, 0.82);
  isolation: isolate;
}

.cx-legacy-demo .native-window::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  border: 0.5px solid rgba(255, 255, 255, 0.52);
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  content: "";
  pointer-events: none;
}

.cx-legacy-demo .native-toolbar {
  position: relative;
  z-index: 5;
  display: grid;
  height: 46px;
  padding: 0 13px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.17);
  border-radius: 17px 17px 0 0;
  background: rgba(238, 239, 240, 0.92);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}

.cx-legacy-demo .window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cx-legacy-demo .window-controls i {
  width: 12px;
  height: 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0.5px rgba(255, 255, 255, 0.45);
}

.cx-legacy-demo .window-controls i:nth-child(1) { background: #ff5f57; }

.cx-legacy-demo .window-controls i:nth-child(2) { background: #febc2e; }

.cx-legacy-demo .window-controls i:nth-child(3) { background: #28c840; }

.cx-legacy-demo .native-toolbar button {
  display: inline-grid;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  color: #34383d;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), inset 0 0.5px rgba(255, 255, 255, 0.88);
  cursor: pointer;
  place-items: center;
}

.cx-legacy-demo .native-toolbar button:disabled { cursor: default; opacity: 0.35; }

.cx-legacy-demo .native-toolbar svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.cx-legacy-demo .native-window__body {
  display: grid;
  height: calc(100% - 46px);
  overflow: hidden;
  border-radius: 0 0 17px 17px;
  grid-template-columns: 20% 80%;
}

.cx-legacy-demo .mac-dock {
  position: absolute;
  z-index: 40;
  bottom: 8px;
  left: 50%;
  display: flex;
  height: 58px;
  padding: 7px 8px;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
  border: 0.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(234, 239, 241, 0.52);
  box-shadow: 0 13px 30px rgba(19, 31, 38, 0.24), inset 0 1px rgba(255,255,255,.72);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  pointer-events: none;
}

.cx-legacy-demo .dock-icon {
  position: relative;
  display: grid;
  width: 43px;
  height: 43px;
  overflow: hidden;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(13, 24, 30, 0.16), inset 0 1px rgba(255,255,255,.6);
  place-items: center;
  transition: transform 180ms var(--ease-out);
}

.cx-legacy-demo .dock-icon:hover { transform: none; }

.cx-legacy-demo .dock-divider { width: 0.5px; height: 36px; margin: 0 1px; background: rgba(0,0,0,.2); }

@media (max-width: 1050px) {
.cx-legacy-demo .native-toolbar { grid-template-columns: 140px 1fr 220px; }
}

@media (max-width: 760px) {
.cx-legacy-demo .context-stage { height: 600px; aspect-ratio: auto; }

.cx-legacy-demo .mac-desktop { right: auto; left: 50%; width: 920px; transform: translateX(-50%); }

.cx-legacy-demo .mac-menubar { font-size: 11px; }

.cx-legacy-demo .native-window { top: 52px; right: 34px; bottom: 78px; left: 34px; }

.cx-legacy-demo .context-stage[data-phase="request"] .context-island { width: min(392px, calc(100vw - 34px)); }

.cx-legacy-demo .context-stage[data-phase="granted"] .context-island { width: min(310px, calc(100vw - 34px)); }

.cx-legacy-demo .context-stage[data-phase="denied"] .context-island,
.cx-legacy-demo .context-stage[data-phase="revoked"] .context-island { width: min(300px, calc(100vw - 34px)); }

.cx-legacy-demo .demo-cursor { display: none; }
}

@media (max-width: 430px) {
.cx-legacy-demo .context-stage { height: 570px; }

.cx-legacy-demo .mac-desktop { width: 860px; }

.cx-legacy-demo .context-stage[data-phase="request"] .context-island { max-height: 342px; }

.cx-legacy-demo .island-request { padding-right: 12px; padding-left: 12px; }

.cx-legacy-demo .duration-control { height: 29px; }

.cx-legacy-demo .island-actions { height: 31px; }
}

@media (prefers-reduced-transparency: reduce) {
.cx-legacy-demo .mac-menubar,
.cx-legacy-demo .native-toolbar,
.cx-legacy-demo .mac-dock { backdrop-filter: none; -webkit-backdrop-filter: none; }

.cx-legacy-demo .mac-menubar { background: rgba(244,247,248,.94); }

.cx-legacy-demo .native-toolbar { background: rgba(238,239,240,.98); }

.cx-legacy-demo .mac-dock { background: rgba(234,239,241,.94); }
}

@media (prefers-reduced-motion: reduce) {
.cx-legacy-demo { scroll-behavior: auto; }

.cx-legacy-demo *,
.cx-legacy-demo *::before,
.cx-legacy-demo *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media print {
.cx-legacy-demo .hero__artifact {
    display: none !important;
  }

.cx-legacy-demo {
    background: #fff !important;
    color: #000 !important;
  }

.cx-legacy-demo section {
    break-inside: avoid;
  }
}

.cx-legacy-demo .mac-desktop {
  container-type: inline-size;
  
  --mac-menubar-height: 2.1164cqw; 
  --mac-notch-width: 12.2354cqw; 
  --mac-menubar-font-size: 0.8598cqw; 
  --mac-menu-extra-personos: 2.1164cqw; 
  --mac-menu-extra-wifi: 2.1825cqw; 
  --mac-menu-extra-battery: 2.5132cqw; 
  --mac-menu-extra-control: 2.1164cqw; 
  --mac-menu-time-allocation: 11.3095cqw; 
}

.cx-legacy-demo .mac-menubar {
  height: var(--mac-menubar-height);
  min-height: var(--mac-menubar-height);
  padding: 0 0 0 1.3889cqw;
  background: rgba(246, 247, 250, 0.72);
  font-size: var(--mac-menubar-font-size);
  font-weight: 500;
  text-rendering: auto;
  -webkit-font-smoothing: auto;
}

.cx-legacy-demo .mac-menubar__left { gap: 1.455cqw; }

.cx-legacy-demo .mac-menubar__right { height: 100%; gap: 0; }

.cx-legacy-demo .mac-menubar strong { font-weight: 650; }

.cx-legacy-demo .menubar-mark { width: 0.7937cqw; height: 0.9921cqw; margin-right: 0; }

.cx-legacy-demo .menubar-mark img { width: 0.7937cqw; height: 0.9921cqw; }

.cx-legacy-demo .menu-symbol {
  height: 2.1164cqw;
  box-sizing: border-box;
  opacity: 0.92;
}

.cx-legacy-demo .menu-symbol--personos {
  width: var(--mac-menu-extra-personos);
  height: var(--mac-menubar-height);
  padding: 0.463cqw;
  object-fit: contain;
}

.cx-legacy-demo .menu-symbol--wifi {
  width: var(--mac-menu-extra-wifi);
  height: var(--mac-menubar-height);
  padding: 0.6283cqw 0.5291cqw;
}

.cx-legacy-demo .menu-symbol--battery {
  width: var(--mac-menu-extra-battery);
  height: var(--mac-menubar-height);
  padding: 0.5952cqw 0.5291cqw;
}

.cx-legacy-demo .menu-symbol--control {
  width: var(--mac-menu-extra-control);
  height: var(--mac-menubar-height);
  padding: 0.5952cqw 0.5291cqw;
}

.cx-legacy-demo .mac-menubar time {
  display: flex;
  width: var(--mac-menu-time-allocation);
  min-width: var(--mac-menu-time-allocation);
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5291cqw;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.cx-legacy-demo .mac-notch {
  position: absolute;
  z-index: 78;
  top: 0;
  left: 50%;
  width: var(--mac-notch-width);
  height: var(--mac-menubar-height);
  transform: translateX(-50%);
  border-radius: 0 0 0.9259cqw 0.9259cqw;
  background: #000;
  pointer-events: none;
}

.cx-legacy-demo .native-window {
  top: 5.5556cqw;
  right: 6.2169cqw;
  bottom: 6.4815cqw;
  left: 15.0132cqw;
  display: grid;
  overflow: hidden;
  border: 0.0661cqw solid rgba(18, 20, 23, 0.28);
  border-radius: 0.9259cqw;
  grid-template-rows: 3.0423cqw minmax(0, 1fr);
  background: #fff;
  box-shadow: 0 2.5132cqw 5.9524cqw rgba(14, 18, 23, 0.20), 0 0.5291cqw 1.7196cqw rgba(14, 18, 23, 0.14), 0 1px 2px rgba(14, 18, 23, 0.18);
}

.cx-legacy-demo .native-window::after {
  border: 0.5px solid rgba(255, 255, 255, 0.58);
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}

.cx-legacy-demo .native-toolbar {
  height: 3.0423cqw;
  padding: 0;
  grid-row: 1;
  grid-template-columns: 18.3201cqw minmax(0, 1fr) auto;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.14);
  border-radius: 0.9259cqw 0.9259cqw 0 0;
  background: rgba(250, 250, 251, 0.94);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
}

.cx-legacy-demo .native-toolbar::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18.3201cqw;
  width: 0.5px;
  background: rgba(0, 0, 0, 0.14);
  content: "";
  pointer-events: none;
}

.cx-legacy-demo .window-controls {
  padding-left: 1.1574cqw;
  gap: 0.5952cqw;
}

.cx-legacy-demo .window-controls i {
  width: 0.9259cqw;
  height: 0.9259cqw;
  border: 0.5px solid rgba(0, 0, 0, 0.11);
  box-shadow: inset 0 0.5px rgba(255, 255, 255, 0.36);
}

.cx-legacy-demo .window-controls i:nth-child(1) { background: #ec6765; }

.cx-legacy-demo .window-controls i:nth-child(2) { background: #f2ca44; }

.cx-legacy-demo .window-controls i:nth-child(3) { background: #65c466; }

.cx-legacy-demo .native-window__body {
  height: auto;
  min-height: 0;
  grid-row: 2;
  grid-template-columns: 18.3201cqw minmax(0, 1fr);
  border-radius: 0 0 0.9259cqw 0.9259cqw;
}

.cx-legacy-demo .mac-dock {
  bottom: 0.3307cqw;
  height: 4.6296cqw;
}

.cx-legacy-demo .context-island {
  
  --island-open-spring: linear(0, .1297 5.556%, .3742 11.111%, .608 16.667%, .7855 22.222%, .9016 27.778%, .9682 33.333%, 1.0009 38.889%, 1.0132 44.444%, 1.015 50%, 1.0105 58.333%, 1.0052 66.667%, 1.0012 77.778%, .9999 88.889%, 1);
  --island-close-spring: linear(0, .1084 5.556%, .3072 11.111%, .4991 16.667%, .6536 22.222%, .7676 27.778%, .8475 33.333%, .9016 38.889%, .9373 44.444%, .9605 50%, .9805 58.333%, .9905 66.667%, .9965 77.778%, .9987 88.889%, 1);
  --island-open-settle: 720ms;
  --island-close-settle: 720ms;
  position: absolute;
  z-index: 100;
  top: 0;
  left: 50%;
  width: var(--mac-notch-width);
  height: var(--mac-menubar-height);
  min-height: 0;
  overflow: hidden;
  transform: translateX(-50%);
  transform-origin: 50% 0;
  scale: 1;
  border: 0;
  border-radius: 0 0 0.9259cqw 0.9259cqw;
  background: #000;
  color: rgba(255, 255, 255, 0.95);
  box-shadow: none;
  isolation: isolate;
  transition: width var(--island-close-settle) var(--island-close-spring), height var(--island-close-settle) var(--island-close-spring), border-radius 300ms ease-out, background-color 90ms linear 620ms, scale 180ms ease-out;
}

.cx-legacy-demo .context-stage[data-island-hover="prehover"] .context-island { scale: 1.004; }

.cx-legacy-demo .context-stage[data-phase="event"] .context-island {
  width: 14.6164cqw;
  height: 8.7302cqw;
  border-radius: 0 0 1.5873cqw 1.5873cqw;
  background: #000;
  transition-duration: var(--island-open-settle), var(--island-open-settle), 300ms, 90ms, 180ms;
  transition-timing-function: var(--island-open-spring), var(--island-open-spring), ease-out, linear, ease-out;
  transition-delay: 0s, 0s, 0s, 0s, 0s;
}

.cx-legacy-demo .context-stage[data-phase="expanded"] .context-island {
  width: 31.0847cqw;
  height: 31.6138cqw;
  border-radius: 0 0 1.5873cqw 1.5873cqw;
  background: #000;
  transition-duration: var(--island-open-settle), var(--island-open-settle), 300ms, 90ms, 180ms;
  transition-timing-function: var(--island-open-spring), var(--island-open-spring), ease-out, linear, ease-out;
  transition-delay: 0s, 0s, 0s, 0s, 0s;
}

.cx-legacy-demo .context-stage[data-phase="decision"] .context-island {
  width: 14.6164cqw;
  height: 8.7302cqw;
  border-radius: 0 0 1.5873cqw 1.5873cqw;
  background: #000;
  transition-duration: var(--island-close-settle), var(--island-close-settle), 300ms, 90ms, 180ms;
  transition-timing-function: var(--island-close-spring), var(--island-close-spring), ease-out, linear, ease-out;
  transition-delay: 0s, 0s, 0s, 0s, 0s;
}

.cx-legacy-demo .context-island::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: transparent;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.cx-legacy-demo .context-stage[data-phase="decision"][data-decision="allowed"] .context-island::after {
  background: #5cd685;
  animation: cxl-island-wash-allow 620ms ease-out 280ms both;
}

.cx-legacy-demo .context-stage[data-phase="decision"][data-decision="denied"] .context-island::after {
  background: #e03d4d;
  animation: cxl-island-wash-deny 540ms ease-out 280ms both;
}

.cx-legacy-demo .island-peek {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 2.1164cqw;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.cx-legacy-demo .island-peek:disabled { cursor: default; }

.cx-legacy-demo .context-stage[data-phase="event"] .island-peek { height: 8.7302cqw; }

.cx-legacy-demo .context-stage[data-phase="decision"] .island-peek { height: 2.1164cqw; pointer-events: none; }

.cx-legacy-demo .island-peek__notice {
  position: absolute;
  top: 2.1164cqw;
  right: 0;
  left: 0;
  display: flex;
  height: 5.291cqw;
  align-items: center;
  justify-content: center;
  gap: 0.3307cqw;
  color: #b8d1f0;
  font-size: 0.9259cqw;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.8);
  transform-origin: 50% 0;
  transition: opacity var(--island-close-settle) var(--island-close-spring), transform var(--island-close-settle) var(--island-close-spring);
}

.cx-legacy-demo .context-stage[data-phase="event"] .island-peek__notice {
  opacity: 1;
  transform: scale(1);
  transition: opacity var(--island-open-settle) var(--island-open-spring), transform var(--island-open-settle) var(--island-open-spring);
}

.cx-legacy-demo .island-symbol-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.cx-legacy-demo .island-agent-symbol {
  display: block;
  width: 1.1243cqw;
  height: 1.1243cqw;
  flex: 0 0 auto;
  overflow: visible;
  fill: url(#island-agent-gradient);
}

.cx-legacy-demo .island-peek__notice .island-agent-symbol { width: 0.7937cqw; height: 0.7937cqw; }

.cx-legacy-demo .island-request {
  position: absolute;
  z-index: 3;
  top: 2.1164cqw;
  right: 0;
  left: 0;
  display: block;
  padding: 0 1.1905cqw 1.3228cqw;
  border: 0;
  opacity: 0;
  transform: scale(0.8);
  transform-origin: 50% 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--island-close-settle) var(--island-close-spring), transform var(--island-close-settle) var(--island-close-spring), visibility 0s linear var(--island-close-settle);
}

.cx-legacy-demo .context-stage[data-phase="expanded"] .island-request {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--island-open-settle) var(--island-open-spring), transform var(--island-open-settle) var(--island-open-spring), visibility 0s linear 0s;
}

.cx-legacy-demo .context-stage[data-island-revealing="true"] .island-peek__notice {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 90ms ease-out, transform 120ms ease-out;
}

.cx-legacy-demo .context-stage[data-phase="expanded"][data-island-revealing="true"] .island-request {
  opacity: 0;
  transform: scale(0.8);
  visibility: visible;
  pointer-events: none;
  transition: none;
}

.cx-legacy-demo .context-stage[data-phase="decision"] .island-request {
  transform: scale(1);
  transition: opacity 150ms ease-out, visibility 0s linear 150ms;
}

.cx-legacy-demo .island-content-rule {
  width: 100%;
  height: 1px;
  margin: 0 0 0.7937cqw;
  background: rgba(255, 255, 255, 0.10);
}

.cx-legacy-demo .island-consent-card {
  padding: 0.7937cqw 0.9921cqw;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

.cx-legacy-demo .island-requester {
  display: flex;
  padding-bottom: 1.1905cqw;
  flex-direction: column;
  align-items: center;
  gap: 0.2646cqw;
  text-align: center;
}

.cx-legacy-demo .island-requester .island-agent-symbol { margin-bottom: 0.0661cqw; }

.cx-legacy-demo .island-requester strong {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9259cqw;
  font-weight: 600;
  line-height: 1.23;
}

.cx-legacy-demo .island-requester small {
  color: rgba(255, 255, 255, 0.60);
  font-size: 0.7606cqw;
  line-height: 1.25;
}

.cx-legacy-demo .consent-zone {
  --tier: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.20);
}

.cx-legacy-demo .consent-zone--open { --tier: #5cd685; }

.cx-legacy-demo .consent-zone--approval { --tier: #ffcc4d; }

.cx-legacy-demo .consent-zone--sealed { --tier: #ff6b6b; }

.cx-legacy-demo .consent-zone__heading {
  display: flex;
  padding-top: 0.5952cqw;
  padding-bottom: 0.2646cqw;
  align-items: center;
  justify-content: space-between;
}

.cx-legacy-demo .consent-zone__heading > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3968cqw;
}

.cx-legacy-demo .consent-zone__heading i {
  width: 0.3307cqw;
  height: 0.3307cqw;
  border-radius: 50%;
  background: var(--tier);
}

.cx-legacy-demo .consent-zone__heading strong {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.6944cqw;
  font-weight: 500;
  line-height: 1.2;
}

.cx-legacy-demo .consent-row {
  display: grid;
  width: 100%;
  min-height: 2.1164cqw;
  padding: 0.3307cqw;
  grid-template-columns: 0.1984cqw 1.1243cqw minmax(0, 1fr) 0.9921cqw;
  align-items: center;
  gap: 0.6614cqw;
  border: 0;
  border-radius: 0.3307cqw;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  cursor: default;
  font-size: 0.8267cqw;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
}

.cx-legacy-demo button.consent-row {
  cursor: pointer;
  font-size: 0.8267cqw;
  font-weight: 400;
  line-height: 1.2;
}

.cx-legacy-demo .consent-row:hover { background: transparent; }

.cx-legacy-demo .consent-row.is-selected { background: color-mix(in srgb, var(--tier) 7%, transparent); color: rgba(255, 255, 255, 0.95); }

.cx-legacy-demo .consent-row:active { transform: none; }

.cx-legacy-demo .consent-rail {
  display: block;
  width: 0.1984cqw;
  height: 1.455cqw;
  border-radius: 0.0992cqw;
  background: color-mix(in srgb, var(--tier) 28%, transparent);
}

.cx-legacy-demo .consent-row.is-selected .consent-rail { background: color-mix(in srgb, var(--tier) 95%, transparent); }

.cx-legacy-demo .consent-row.is-locked .consent-rail {
  display: flex;
  height: 1.455cqw;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}

.cx-legacy-demo .consent-row.is-locked .consent-rail i {
  width: 0.1984cqw;
  height: 0.1984cqw;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tier) 65%, transparent);
}

.cx-legacy-demo .consent-row__icon {
  width: 1.1243cqw;
  height: 1.1243cqw;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.55;
}

.cx-legacy-demo .consent-row.is-selected .consent-row__icon { opacity: 0.75; }

.cx-legacy-demo .consent-row__state {
  width: 0.8598cqw;
  height: 0.8598cqw;
  justify-self: end;
  object-fit: contain;
  opacity: 0.9;
}

.cx-legacy-demo .consent-zone--open .consent-row__state { filter: invert(78%) sepia(44%) saturate(654%) hue-rotate(84deg) brightness(97%); }

.cx-legacy-demo .consent-zone--approval .consent-row__state { filter: invert(87%) sepia(81%) saturate(919%) hue-rotate(326deg) brightness(104%); }

.cx-legacy-demo .consent-zone--sealed .consent-row__state { width: 0.9921cqw; height: 0.9921cqw; filter: invert(55%) sepia(78%) saturate(1209%) hue-rotate(319deg) brightness(105%); }

.cx-legacy-demo .consent-row:not(.is-selected):not(.is-locked) .consent-row__state { filter: invert(1); opacity: 0.3; }

.cx-legacy-demo .consent-row.is-authenticating { opacity: 0.42; }

.cx-legacy-demo button.consent-row.is-locked { cursor: pointer; }

.cx-legacy-demo button.consent-row.is-locked:hover { background: rgba(255, 107, 107, 0.07); }

.cx-legacy-demo button.consent-row.is-authenticated { cursor: pointer; }

.cx-legacy-demo button.consent-row.is-authenticated:hover { background: color-mix(in srgb, var(--tier) 9%, transparent); }

.cx-legacy-demo .duration-control {
  display: grid;
  width: 100%;
  height: auto;
  padding: 0.1323cqw 0 0.6614cqw;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cx-legacy-demo .duration-control button {
  min-width: 0;
  min-height: 1.2566cqw;
  padding: 0 0 0.2646cqw;
  border: 0;
  border-bottom: 1.5px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  cursor: pointer;
  font-size: 0.7275cqw;
  font-weight: 400;
}

.cx-legacy-demo .duration-control button[aria-pressed="true"] {
  border-bottom-color: rgba(255, 255, 255, 0.9);
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  box-shadow: none;
  font-weight: 600;
}

.cx-legacy-demo .duration-control button:disabled { color: rgba(255, 255, 255, 0.28); cursor: default; }

.cx-legacy-demo .island-actions {
  display: grid;
  margin-top: 0;
  padding-top: 0.7275cqw;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5291cqw;
  border-top: 1px solid rgba(255, 255, 255, 0.20);
}

.cx-legacy-demo .context-island button.island-button {
  min-height: 1.9841cqw;
  padding: 0.463cqw;
  border: 0;
  border-radius: 0.5952cqw;
  box-shadow: none;
  cursor: pointer;
  font-size: 0.7937cqw;
  line-height: normal;
}

.cx-legacy-demo .context-island button.island-button--quiet { background: rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.88); font-weight: 500; }

.cx-legacy-demo .context-island button.island-button--grant { background: #fff; color: rgba(0, 0, 0, 0.90); font-weight: 600; }

.cx-legacy-demo .island-button--quiet:hover { background: rgba(255, 255, 255, 0.14); }

.cx-legacy-demo .island-button--grant:hover { background: rgba(255, 255, 255, 0.9); }

.cx-legacy-demo .island-button:active { transform: scale(0.985); }

.cx-legacy-demo .island-button:disabled { cursor: not-allowed; opacity: 0.35; }

.cx-legacy-demo .context-island button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.62);
  outline-offset: -1px;
}

.cx-legacy-demo .island-decision {
  position: absolute;
  z-index: 3;
  top: 2.1164cqw;
  right: 0;
  left: 0;
  display: grid;
  height: 6.6138cqw;
  padding-bottom: 1.3228cqw;
  opacity: 0;
  transform: scale(0.92);
  transform-origin: 50% 0;
  visibility: hidden;
  pointer-events: none;
  place-items: center;
  transition: opacity 150ms ease-in, transform 350ms cubic-bezier(.4, 0, .6, 1), visibility 0s linear 350ms;
}

.cx-legacy-demo .context-stage[data-phase="decision"] .island-decision {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  transition: opacity 160ms ease-out, transform 350ms cubic-bezier(.2, .8, .2, 1), visibility 0s linear 0s;
}

.cx-legacy-demo .island-decision .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.cx-legacy-demo .decision-stamp {
  width: 4.6296cqw;
  height: 4.6296cqw;
  overflow: visible;
  color: #5cd685;
  opacity: 0;
  transform: scale(0.88);
  animation: none;
}

.cx-legacy-demo .context-stage[data-decision="denied"] .decision-stamp { color: #ff6b6b; }

.cx-legacy-demo .decision-stamp circle,
.cx-legacy-demo .decision-stamp path { vector-effect: non-scaling-stroke; }

.cx-legacy-demo .decision-stamp__glow { fill: currentColor; opacity: 0; }

.cx-legacy-demo .decision-stamp__ripple { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: 0; transform-origin: 35px 35px; }

.cx-legacy-demo .decision-stamp__ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-dasharray: 163.363;
  stroke-dashoffset: 130.69;
  transform-origin: 35px 35px;
  transform: rotate(-90deg);
}

.cx-legacy-demo .decision-stamp__check,
.cx-legacy-demo .decision-stamp__cross {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform-origin: 35px 35px;
}

.cx-legacy-demo .decision-stamp__check { stroke-width: 3.2; stroke-dasharray: 31.8; stroke-dashoffset: 31.8; }

.cx-legacy-demo .decision-stamp__cross { stroke-width: 3.4; stroke-dasharray: 28.284; stroke-dashoffset: 28.284; }

.cx-legacy-demo .context-stage[data-decision="allowed"] .decision-stamp { animation: cxl-island-stamp-appear 160ms ease-out forwards, cxl-island-stamp-hide 240ms ease-out 1080ms forwards; }

.cx-legacy-demo .context-stage[data-decision="denied"] .decision-stamp { animation: cxl-island-stamp-appear 140ms ease-out forwards, cxl-island-stamp-hide 240ms ease-out 840ms forwards; }

.cx-legacy-demo .context-stage[data-decision="allowed"] .decision-stamp__ring { animation: cxl-island-ring-allow-draw 400ms ease-out both, cxl-island-ring-allow-spin 400ms linear both; }

.cx-legacy-demo .context-stage[data-decision="denied"] .decision-stamp__ring { animation: cxl-island-ring-deny-draw 280ms ease-out both; }

.cx-legacy-demo .context-stage[data-decision="allowed"] .decision-stamp__check { animation: cxl-island-check-draw 260ms ease-out 280ms both, cxl-island-check-land 320ms cubic-bezier(.2,.85,.35,1.28) 280ms both; }

.cx-legacy-demo .context-stage[data-decision="allowed"] .decision-stamp__glow { animation: cxl-island-glow 520ms ease-out 280ms both; }

.cx-legacy-demo .context-stage[data-decision="allowed"] .decision-stamp__ripple { animation: cxl-island-ripple 460ms ease-out 280ms both; }

.cx-legacy-demo .context-stage[data-decision="allowed"] .decision-stamp__cross { display: none; }

.cx-legacy-demo .context-stage[data-decision="denied"] .decision-stamp__cross--first { animation: cxl-island-cross-draw 180ms ease-out 280ms both; }

.cx-legacy-demo .context-stage[data-decision="denied"] .decision-stamp__cross--second { animation: cxl-island-cross-draw 160ms ease-out 380ms both; }

.cx-legacy-demo .context-stage[data-decision="denied"] .decision-stamp__check,
.cx-legacy-demo .context-stage[data-decision="denied"] .decision-stamp__glow,
.cx-legacy-demo .context-stage[data-decision="denied"] .decision-stamp__ripple { display: none; }

@media (prefers-reduced-motion: reduce) {
.cx-legacy-demo .context-stage[data-phase="decision"] .decision-stamp,
.cx-legacy-demo .context-stage[data-phase="decision"] .decision-stamp__ring,
.cx-legacy-demo .context-stage[data-phase="decision"] .decision-stamp__check,
.cx-legacy-demo .context-stage[data-phase="decision"] .decision-stamp__cross,
.cx-legacy-demo .context-stage[data-phase="decision"] .decision-stamp__glow,
.cx-legacy-demo .context-stage[data-phase="decision"] .decision-stamp__ripple,
.cx-legacy-demo .context-stage[data-phase="decision"] .context-island::after {
    animation: none !important;
  }

.cx-legacy-demo .context-stage[data-phase="decision"] .decision-stamp { opacity: 1; transform: none; }

.cx-legacy-demo .context-stage[data-phase="decision"] .decision-stamp__check,
.cx-legacy-demo .context-stage[data-phase="decision"] .decision-stamp__cross { opacity: 1; }

.cx-legacy-demo .context-stage[data-decision="allowed"] .decision-stamp__glow { opacity: 0.2; }
}

@media (min-width: 761px) {
.cx-legacy-demo .hero__artifact { margin-top: 30px; }
}

@media (min-width: 761px) and (max-height: 950px) {
.cx-legacy-demo .hero__artifact { margin-top: 20px; }
}

.cx-legacy-demo .personos-toolbar {
  grid-template-columns: 15.0132cqw minmax(0, 1fr) auto;
}

.cx-legacy-demo .personos-toolbar::after { left: 15.0132cqw; }

.cx-legacy-demo .personos-toolbar__identity {
  display: flex;
  min-width: 0;
  grid-column: 2;
  justify-self: center;
  align-items: center;
  gap: 0.5291cqw;
  color: #252629;
}

.cx-legacy-demo .personos-toolbar__identity > img { width: 1.455cqw; height: 1.455cqw; }

.cx-legacy-demo .personos-toolbar__identity > span { display: grid; line-height: 1.05; }

.cx-legacy-demo .personos-toolbar__identity strong { font-size: 0.8267cqw; font-weight: 650; }

.cx-legacy-demo .personos-toolbar__identity small { color: #8b8d91; font-size: 0.5291cqw; font-weight: 450; }

.cx-legacy-demo .personos-toolbar__actions {
  display: flex;
  padding-right: 0.8598cqw;
  grid-column: 3;
  justify-self: end;
  align-items: center;
  gap: 0.6614cqw;
}

.cx-legacy-demo .prototype-connection {
  display: inline-flex;
  align-items: center;
  gap: 0.3307cqw;
  color: #777a7e;
  font-size: 0.5952cqw;
  white-space: nowrap;
}

.cx-legacy-demo .prototype-connection i { width: 0.3968cqw; height: 0.3968cqw; border-radius: 50%; background: #3cba82; box-shadow: 0 0 0 0.1984cqw rgba(60, 186, 130, 0.12); }

.cx-legacy-demo .personos-toolbar__actions button,
.cx-legacy-demo .prototype-secondary {
  display: inline-flex;
  min-height: 1.8519cqw;
  padding: 0 0.7275cqw;
  align-items: center;
  justify-content: center;
  gap: 0.3307cqw;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.5291cqw;
  background: rgba(255, 255, 255, 0.78);
  color: #35373a;
  box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.06), inset 0 0.5px rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font: 550 0.6614cqw/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.cx-legacy-demo .personos-toolbar__actions button:hover,
.cx-legacy-demo .prototype-secondary:hover { background: #fff; }

.cx-legacy-demo .personos-toolbar__actions button:active,
.cx-legacy-demo .prototype-secondary:active { transform: scale(0.98); }

.cx-legacy-demo .personos-toolbar__actions button img { width: 0.7937cqw; height: 0.7937cqw; opacity: 0.75; }

.cx-legacy-demo .native-window__body.personos-app {
  grid-template-columns: 15.0132cqw minmax(0, 1fr);
  background: #fbfbfc;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

.cx-legacy-demo .personos-sidebar {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 1.3228cqw 0.7275cqw 0.9259cqw;
  flex-direction: column;
  border-right: 0.5px solid rgba(0, 0, 0, 0.14);
  background: rgba(241, 241, 243, 0.96);
  color: #34363a;
}

.cx-legacy-demo .personos-sidebar__owner {
  display: flex;
  padding: 0 0.5952cqw 1.0582cqw;
  align-items: center;
  gap: 0.5952cqw;
}

.cx-legacy-demo .owner-avatar {
  display: grid;
  width: 2.0503cqw;
  height: 2.0503cqw;
  flex: 0 0 auto;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background: #fff;
  color: #225cff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-size: 0.7937cqw;
  font-weight: 650;
  place-items: center;
}

.cx-legacy-demo .owner-avatar img { width: 1.1243cqw; height: 1.1243cqw; object-fit: contain; }

.cx-legacy-demo .personos-sidebar__owner > span:last-child { display: grid; min-width: 0; }

.cx-legacy-demo .personos-sidebar__owner strong { font-size: 0.7937cqw; font-weight: 630; }

.cx-legacy-demo .personos-sidebar__owner small { margin-top: 0.1323cqw; color: #8a8d92; font-size: 0.5622cqw; }

.cx-legacy-demo .personos-tabs { display: grid; gap: 0.1984cqw; }

.cx-legacy-demo .personos-tabs button {
  display: grid;
  width: 100%;
  min-height: 2.5132cqw;
  padding: 0 0.6614cqw;
  grid-template-columns: 1.1905cqw minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5952cqw;
  border: 0;
  border-radius: 0.5291cqw;
  background: transparent;
  color: #55585d;
  cursor: pointer;
  font: 520 0.7937cqw/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  text-align: left;
}

.cx-legacy-demo .personos-tabs button:hover { background: rgba(255, 255, 255, 0.55); }

.cx-legacy-demo .personos-tabs button[aria-selected="true"] { background: rgba(0, 0, 0, 0.075); color: #202226; font-weight: 610; }

.cx-legacy-demo .personos-tabs button:focus-visible { outline: 1.5px solid rgba(34, 92, 255, 0.78); outline-offset: -1px; }

.cx-legacy-demo .personos-tabs b { min-width: 1.1905cqw; padding: 0.1323cqw 0.2646cqw; border-radius: 999px; background: rgba(0, 0, 0, 0.08); color: #73767a; font-size: 0.5622cqw; font-weight: 580; text-align: center; }

.cx-legacy-demo .tab-symbol { position: relative; display: block; width: 1.1243cqw; height: 1.1243cqw; color: #6e7277; }

.cx-legacy-demo .tab-symbol::before,
.cx-legacy-demo .tab-symbol::after { position: absolute; box-sizing: border-box; content: ""; }

.cx-legacy-demo .tab-symbol--access::before { inset: 0.1323cqw; border: 0.0992cqw solid currentColor; border-radius: 50%; }

.cx-legacy-demo .tab-symbol--access::after { top: 0.463cqw; left: 0.463cqw; width: 0.1984cqw; height: 0.1984cqw; border-radius: 50%; background: currentColor; box-shadow: 0 0.3307cqw currentColor; }

.cx-legacy-demo .tab-symbol--ledger::before { inset: 0.0992cqw 0.1984cqw; border: 0.0992cqw solid currentColor; border-radius: 0.1984cqw; }

.cx-legacy-demo .tab-symbol--ledger::after { top: 0.3638cqw; left: 0.3638cqw; width: 0.3968cqw; height: 0.0992cqw; background: currentColor; box-shadow: 0 0.2646cqw currentColor, 0 0.5291cqw currentColor; }

.cx-legacy-demo .tab-symbol--context::before { inset: 0.1323cqw; border: 0.0992cqw solid currentColor; border-radius: 0.1984cqw; }

.cx-legacy-demo .tab-symbol--context::after { top: 0.3307cqw; left: 0.3307cqw; width: 0.463cqw; height: 0.463cqw; border: 0.0992cqw solid currentColor; border-radius: 50%; }

.cx-legacy-demo .personos-workspace { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #fbfbfc; }

.cx-legacy-demo .prototype-panel { height: 100%; box-sizing: border-box; padding: 1.6534cqw 1.7857cqw 1.3228cqw; overflow: auto; color: #24262a; }

.cx-legacy-demo .prototype-panel[hidden] { display: none; }

.cx-legacy-demo .prototype-page-header { display: flex; min-height: 3.5053cqw; align-items: flex-start; justify-content: space-between; gap: 1.3228cqw; }

.cx-legacy-demo .prototype-page-header > span { display: grid; }

.cx-legacy-demo .prototype-page-header h2 { margin: 0; font-size: 1.3228cqw; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }

.cx-legacy-demo .prototype-page-header p { margin: 0.3307cqw 0 0; color: #777b80; font-size: 0.6944cqw; line-height: 1.35; }

.cx-legacy-demo .access-overview {
  display: grid;
  min-height: 3.9683cqw;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.7937cqw;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035);
}

.cx-legacy-demo .access-overview > span { display: grid; padding: 0.7275cqw 1.0582cqw; align-content: center; border-right: 0.5px solid rgba(0, 0, 0, 0.09); }

.cx-legacy-demo .access-overview > span:last-child { border-right: 0; }

.cx-legacy-demo .access-overview strong { font-size: 1.1243cqw; font-weight: 670; line-height: 1; }

.cx-legacy-demo .access-overview small { margin-top: 0.3307cqw; color: #7f8388; font-size: 0.5952cqw; }

.cx-legacy-demo .prototype-section-heading { display: flex; padding: 1.2566cqw 0 0.5291cqw; align-items: baseline; justify-content: space-between; }

.cx-legacy-demo .prototype-section-heading strong { font-size: 0.7275cqw; font-weight: 650; }

.cx-legacy-demo .prototype-section-heading span { color: #8a8e93; font-size: 0.5622cqw; }

.cx-legacy-demo .grant-list { display: grid; gap: 0.5291cqw; }

.cx-legacy-demo .grant-group { overflow: hidden; border: 0.5px solid rgba(0, 0, 0, 0.12); border-radius: 0.7275cqw; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035); }

.cx-legacy-demo .grant-group.is-revoked { background: rgba(247, 247, 248, 0.78); opacity: 0.72; }

.cx-legacy-demo .grant-row { display: grid; width: 100%; min-height: 4.1667cqw; padding: 0.6614cqw 0.7937cqw; grid-template-columns: 2.1164cqw minmax(8.2672cqw, 1fr) minmax(12.5661cqw, 1.5fr) 7.6058cqw 0.6614cqw; align-items: center; gap: 0.6614cqw; border: 0; background: transparent; color: #2d2f33; cursor: pointer; font-family: inherit; text-align: left; }

.cx-legacy-demo .grant-row:hover { background: rgba(0, 0, 0, 0.025); }

.cx-legacy-demo .caller-icon { display: grid; width: 1.8519cqw; height: 1.8519cqw; flex: 0 0 auto; border-radius: 0.463cqw; color: #fff; font-size: 0.7275cqw; font-weight: 700; place-items: center; }

.cx-legacy-demo .caller-icon--codex { background: #22282b; }

.cx-legacy-demo .caller-icon--claude { background: #d9784b; }

.cx-legacy-demo .caller-icon--planner { background: #5b67cb; }

.cx-legacy-demo .grant-row__caller,
.cx-legacy-demo .grant-row__scope,
.cx-legacy-demo .grant-row__use { display: grid; min-width: 0; gap: 0.1984cqw; }

.cx-legacy-demo .grant-row strong { overflow: hidden; font-size: 0.6944cqw; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }

.cx-legacy-demo .grant-row small { overflow: hidden; color: #85898f; font-size: 0.5622cqw; text-overflow: ellipsis; white-space: nowrap; }

.cx-legacy-demo .grant-row__use { text-align: right; }

.cx-legacy-demo .grant-row__use--unused small { color: #b06f18; }

.cx-legacy-demo .disclosure { width: 0.3968cqw; height: 0.3968cqw; border-right: 0.0992cqw solid #8c9095; border-bottom: 0.0992cqw solid #8c9095; transform: rotate(45deg) translateY(-0.1323cqw); transition: transform 180ms ease-out; }

.cx-legacy-demo .grant-row[aria-expanded="true"] .disclosure { transform: rotate(225deg) translate(-0.0661cqw, -0.0661cqw); }

.cx-legacy-demo .grant-details { padding: 0.7937cqw 0.9259cqw 0.9259cqw 3.5714cqw; border-top: 0.5px solid rgba(0, 0, 0, 0.08); background: #fbfbfc; }

.cx-legacy-demo .grant-details[hidden] { display: none; }

.cx-legacy-demo .grant-scope { display: flex; flex-wrap: wrap; gap: 0.3307cqw; }

.cx-legacy-demo .grant-scope span { padding: 0.3307cqw 0.5291cqw; border: 0.5px solid rgba(0, 0, 0, 0.1); border-radius: 999px; background: #fff; color: #55595e; font-size: 0.5622cqw; }

.cx-legacy-demo .grant-details > p { margin: 0.6614cqw 0; color: #7b7f84; font-size: 0.5291cqw; line-height: 1.35; }

.cx-legacy-demo .grant-controls { display: flex; align-items: center; gap: 0.463cqw; }

.cx-legacy-demo .grant-controls > span { margin-right: 0.1323cqw; color: #777b80; font-size: 0.5622cqw; }

.cx-legacy-demo .grant-controls > div { display: flex; overflow: hidden; border: 0.5px solid rgba(0, 0, 0, 0.12); border-radius: 0.3968cqw; }

.cx-legacy-demo .grant-controls button { min-height: 1.5212cqw; padding: 0 0.5291cqw; border: 0; border-right: 0.5px solid rgba(0, 0, 0, 0.1); background: #fff; color: #5f6368; cursor: pointer; font: 540 0.5291cqw/1 -apple-system, BlinkMacSystemFont, sans-serif; }

.cx-legacy-demo .grant-controls button:last-child { border-right: 0; }

.cx-legacy-demo .grant-controls button.is-selected { background: #e9eaec; color: #202226; font-weight: 620; }

.cx-legacy-demo .grant-controls > button:nth-last-child(2) { margin-left: auto; border: 0.5px solid rgba(0, 0, 0, 0.12); border-radius: 0.3968cqw; }

.cx-legacy-demo .grant-controls .prototype-danger { border: 0.5px solid rgba(184, 45, 48, 0.22); border-radius: 0.3968cqw; color: #b83235; }

.cx-legacy-demo .ledger-filters,
.cx-legacy-demo .context-domain-filters { display: flex; margin-bottom: 0.7937cqw; gap: 0.3307cqw; }

.cx-legacy-demo .ledger-filters button,
.cx-legacy-demo .context-domain-filters button { min-height: 1.7196cqw; padding: 0 0.6614cqw; border: 0.5px solid rgba(0, 0, 0, 0.1); border-radius: 999px; background: #fff; color: #74787d; cursor: pointer; font: 540 0.6614cqw/1 -apple-system, BlinkMacSystemFont, sans-serif; }

.cx-legacy-demo .ledger-filters button.is-selected,
.cx-legacy-demo .context-domain-filters button.is-selected { border-color: #292c2f; background: #292c2f; color: #fff; }

.cx-legacy-demo .ledger-layout { display: grid; height: calc(100% - 5.6217cqw); min-height: 0; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr); overflow: hidden; border: 0.5px solid rgba(0, 0, 0, 0.12); border-radius: 0.7937cqw; background: #fff; }

.cx-legacy-demo .ledger-list { min-width: 0; overflow: auto; border-right: 0.5px solid rgba(0, 0, 0, 0.11); background: #fafafb; }

.cx-legacy-demo .ledger-item { display: grid; width: 100%; min-height: 4.2328cqw; padding: 0.6614cqw 0.7275cqw; grid-template-columns: 3.0423cqw 1.8519cqw minmax(0, 1fr) auto; align-items: center; gap: 0.5952cqw; border: 0; border-bottom: 0.5px solid rgba(0, 0, 0, 0.08); background: transparent; color: #33363a; cursor: pointer; font-family: inherit; text-align: left; }

.cx-legacy-demo .ledger-item:hover { background: rgba(0, 0, 0, 0.025); }

.cx-legacy-demo .ledger-item.is-selected { background: #e8e8ea; }

.cx-legacy-demo .ledger-item time { color: #60676c; font-size: 0.5952cqw; font-variant-numeric: tabular-nums; }

.cx-legacy-demo .ledger-item > span:nth-child(3) { display: grid; min-width: 0; gap: 0.1984cqw; }

.cx-legacy-demo .ledger-item strong { overflow: hidden; font-size: 0.7937cqw; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }

.cx-legacy-demo .ledger-item small { overflow: hidden; color: #60676c; font-size: 0.6283cqw; text-overflow: ellipsis; white-space: nowrap; }

.cx-legacy-demo .ledger-item b { color: #60676c; font-size: 0.5952cqw; font-weight: 560; white-space: nowrap; }

.cx-legacy-demo .ledger-item b.is-denied { color: #b5474b; }

.cx-legacy-demo .ledger-empty,
.cx-legacy-demo .claim-empty { margin: 1.3228cqw; color: #8a8e93; font-size: 0.6614cqw; text-align: center; }

.cx-legacy-demo .ledger-detail { min-width: 0; overflow: auto; padding: 1.1905cqw; }

.cx-legacy-demo .ledger-receipt[hidden] { display: none; }

.cx-legacy-demo .ledger-receipt > header { display: flex; align-items: center; justify-content: space-between; gap: 0.6614cqw; }

.cx-legacy-demo .ledger-receipt > header > span { display: grid; }

.cx-legacy-demo .ledger-receipt > header strong { font-size: 0.8598cqw; font-weight: 650; }

.cx-legacy-demo .ledger-receipt > header small { margin-top: 0.1984cqw; color: #60676c; font-size: 0.6283cqw; }

.cx-legacy-demo .ledger-receipt > header button,
.cx-legacy-demo .evidence-chain > header button,
.cx-legacy-demo .claim-row > button { min-height: 1.5212cqw; padding: 0 0.5291cqw; border: 0.5px solid rgba(0, 0, 0, 0.12); border-radius: 0.3968cqw; background: #fff; color: #55595e; cursor: pointer; font: 540 0.5952cqw/1 -apple-system, BlinkMacSystemFont, sans-serif; }

.cx-legacy-demo .ledger-receipt pre { margin: 1.0582cqw 0; padding: 0.9259cqw; overflow: auto; border-radius: 0.5952cqw; background: #171c1e; color: #dfe6e4; font: 0.6614cqw/1.5 "SFMono-Regular", ui-monospace, monospace; white-space: pre-wrap; }

.cx-legacy-demo .ledger-receipt dl { margin: 0; border-top: 0.5px solid rgba(0, 0, 0, 0.1); }

.cx-legacy-demo .ledger-receipt dl div { display: flex; min-height: 2.2487cqw; align-items: center; justify-content: space-between; border-bottom: 0.5px solid rgba(0, 0, 0, 0.08); }

.cx-legacy-demo .ledger-receipt dt { color: #60676c; font-size: 0.6283cqw; }

.cx-legacy-demo .ledger-receipt dd { margin: 0; color: #474b50; font-size: 0.6283cqw; font-weight: 540; }

.cx-legacy-demo .context-browser { display: grid; height: calc(100% - 5.6217cqw); min-height: 0; grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr); overflow: hidden; border: 0.5px solid rgba(0, 0, 0, 0.12); border-radius: 0.7937cqw; background: #fff; }

.cx-legacy-demo .claim-list { min-width: 0; overflow: auto; border-right: 0.5px solid rgba(0, 0, 0, 0.11); background: #fafafb; }

.cx-legacy-demo .claim-row { display: grid; min-height: 4.6296cqw; padding: 0.7275cqw; grid-template-columns: 4.2328cqw minmax(0, 1fr) auto; align-items: center; gap: 0.6614cqw; border-bottom: 0.5px solid rgba(0, 0, 0, 0.08); color: #33363a; cursor: pointer; outline: none; }

.cx-legacy-demo .claim-row:hover { background: rgba(0, 0, 0, 0.025); }

.cx-legacy-demo .claim-row.is-selected { background: #e8e8ea; }

.cx-legacy-demo .claim-row:focus-visible { box-shadow: inset 0 0 0 1.5px rgba(34, 92, 255, 0.72); }

.cx-legacy-demo .claim-row > span:nth-child(2) { display: grid; min-width: 0; gap: 0.2646cqw; }

.cx-legacy-demo .claim-row strong { font-size: 0.6283cqw; font-weight: 610; line-height: 1.28; }

.cx-legacy-demo .claim-row small { color: #85898e; font-size: 0.496cqw; }

.cx-legacy-demo .claim-state { justify-self: start; padding: 0.1984cqw 0.3968cqw; border-radius: 999px; background: #eceeef; color: #666a70; font-size: 0.463cqw; font-weight: 620; }

.cx-legacy-demo .claim-state--active { background: #dff3e9; color: #277a58; }

.cx-legacy-demo .claim-state--proposed { background: #fff0d8; color: #9a641c; }

.cx-legacy-demo .claim-state--verified { background: #e1ebff; color: #2d5aa9; }

.cx-legacy-demo .claim-state--superseded { background: #ececef; color: #777a80; }

.cx-legacy-demo .evidence-inspector { min-width: 0; overflow: auto; padding: 1.1905cqw; }

.cx-legacy-demo .evidence-chain[hidden] { display: none; }

.cx-legacy-demo .evidence-chain > header { display: flex; padding-bottom: 0.7937cqw; align-items: center; justify-content: space-between; gap: 0.6614cqw; border-bottom: 0.5px solid rgba(0, 0, 0, 0.1); }

.cx-legacy-demo .evidence-chain > header > span { display: grid; }

.cx-legacy-demo .evidence-chain > header strong { font-size: 0.7937cqw; font-weight: 650; }

.cx-legacy-demo .evidence-chain > header small { margin-top: 0.1984cqw; color: #888c91; font-size: 0.5291cqw; }

.cx-legacy-demo .timeline-entry { position: relative; display: grid; min-height: 4.2328cqw; padding: 0.9259cqw 0 0.5291cqw; grid-template-columns: 0.9259cqw minmax(0, 1fr); gap: 0.6614cqw; }

.cx-legacy-demo .timeline-entry::before { position: absolute; top: 0; bottom: 0; left: 0.4299cqw; width: 0.5px; background: rgba(0, 0, 0, 0.13); content: ""; }

.cx-legacy-demo .timeline-entry:first-of-type::before { top: 1.1243cqw; }

.cx-legacy-demo .timeline-entry:last-child::before { bottom: calc(100% - 1.1243cqw); }

.cx-legacy-demo .timeline-entry > i { z-index: 1; width: 0.5952cqw; height: 0.5952cqw; margin: 0.1984cqw auto 0; border: 0.1323cqw solid #fff; border-radius: 50%; background: #9aa0a5; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18); }

.cx-legacy-demo .timeline-entry--claim > i { background: #225cff; }

.cx-legacy-demo .timeline-entry > span { display: grid; align-content: start; }

.cx-legacy-demo .timeline-entry strong,
.cx-legacy-demo .timeline-entry time { color: #55595e; font-size: 0.5291cqw; font-weight: 610; }

.cx-legacy-demo .timeline-entry p { margin: 0.2646cqw 0; color: #303338; font-size: 0.6283cqw; line-height: 1.35; }

.cx-legacy-demo .timeline-entry small { color: #898d92; font-size: 0.496cqw; }

.cx-legacy-demo .prototype-toast { position: absolute; z-index: 10; right: 1.0582cqw; bottom: 1.0582cqw; display: flex; min-height: 2.2487cqw; padding: 0 0.7937cqw; align-items: center; gap: 0.7937cqw; border-radius: 0.5952cqw; background: rgba(31, 35, 38, 0.94); color: #fff; box-shadow: 0 0.6614cqw 1.5873cqw rgba(0, 0, 0, 0.18); font-size: 0.5952cqw; }

.cx-legacy-demo .prototype-toast[hidden] { display: none; }

.cx-legacy-demo .prototype-toast button { padding: 0; border: 0; background: transparent; color: #9fc2ff; cursor: pointer; font: 650 0.5952cqw/1 -apple-system, BlinkMacSystemFont, sans-serif; }

.cx-legacy-demo .touch-id-overlay {
  position: absolute;
  z-index: 140;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 7, 9, 0.18);
  backdrop-filter: blur(0.1323cqw);
  -webkit-backdrop-filter: blur(0.1323cqw);
}

.cx-legacy-demo .touch-id-overlay[hidden] { display: none !important; }

.cx-legacy-demo .touch-id-dialog {
  display: grid;
  width: 23.8095cqw;
  padding: 1.455cqw 1.3228cqw 1.1905cqw;
  border: 0.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 1.3228cqw;
  background: rgba(203, 202, 198, 0.98);
  color: #202124;
  box-shadow: 0 1.8519cqw 4.2328cqw rgba(0, 0, 0, 0.30), inset 0 0.5px rgba(255, 255, 255, 0.58);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  transform-origin: 50% 54%;
  animation: cxl-touch-id-dialog-in 260ms cubic-bezier(.16, 1, .3, 1) both;
}

.cx-legacy-demo .touch-id-dialog__icon {
  position: relative;
  width: 3.5053cqw;
  height: 3.5053cqw;
  margin-bottom: 0.7937cqw;
  border-radius: 0.8598cqw;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 235, 232, 0.96));
  box-shadow: 0 0.2646cqw 0.6614cqw rgba(0, 0, 0, 0.16), inset 0 0.5px rgba(255, 255, 255, 0.92);
}

.cx-legacy-demo .touch-id-dialog__icon > i {
  position: absolute;
  inset: 0.5952cqw;
  background: #ee2b82;
  content: "";
  -webkit-mask: url("../img/context-legacy/macos-native/menu/touch-id.png") center / contain no-repeat;
  mask: url("../img/context-legacy/macos-native/menu/touch-id.png") center / contain no-repeat;
}

.cx-legacy-demo .touch-id-dialog__icon > img {
  position: absolute;
  right: -0.1984cqw;
  bottom: -0.1984cqw;
  width: 1.455cqw;
  height: 1.455cqw;
  padding: 0.1984cqw;
  border: 0.1323cqw solid rgba(203, 202, 198, 0.98);
  border-radius: 0.3968cqw;
  background: #252729;
  object-fit: contain;
}

.cx-legacy-demo .touch-id-dialog > strong { margin-bottom: 0.7275cqw; font-size: 1.1905cqw; font-weight: 650; letter-spacing: -0.015em; }

.cx-legacy-demo .touch-id-dialog > p { margin: 0 0 0.6614cqw; color: #353638; font-size: 0.9259cqw; line-height: 1.38; }

.cx-legacy-demo .touch-id-dialog > p b { font-weight: 650; }

.cx-legacy-demo .touch-id-dialog > small { min-height: 1.3228cqw; margin-top: 0.1323cqw; color: #646568; font-size: 0.7606cqw; line-height: 1.35; }

.cx-legacy-demo .touch-id-dialog__actions { display: grid; margin-top: 0.7937cqw; grid-template-columns: 1fr 1.14fr; gap: 0.5291cqw; }

.cx-legacy-demo .touch-id-dialog__actions button {
  min-height: 2.2487cqw;
  padding: 0 0.7275cqw;
  border: 0;
  border-radius: 999px;
  background: rgba(181, 180, 177, 0.92);
  color: #252628;
  cursor: pointer;
  font: 600 0.8598cqw/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  box-shadow: inset 0 0.5px rgba(255, 255, 255, 0.35);
}

.cx-legacy-demo .touch-id-dialog__actions button:last-child { background: #087cff; color: #fff; }

.cx-legacy-demo .touch-id-dialog__actions button:focus-visible { outline: 0.1323cqw solid rgba(255, 255, 255, 0.95); outline-offset: 0.1323cqw; box-shadow: 0 0 0 0.2646cqw rgba(0, 122, 255, 0.55); }

.cx-legacy-demo .touch-id-dialog__actions button:disabled { cursor: default; opacity: 0.58; }

.cx-legacy-demo .touch-id-dialog.is-authenticating .touch-id-dialog__icon > i { animation: cxl-touch-id-reading 760ms ease-in-out infinite alternate; }

.cx-legacy-demo .touch-id-dialog.is-authenticated .touch-id-dialog__icon > i { background: #2aa65a; }

.cx-legacy-demo .mac-dock.mac-dock--modules {
  bottom: 0.3968cqw;
  height: 3.1746cqw;
  padding: 0.3968cqw;
  gap: 0.3307cqw;
  border: 0.5px solid rgba(255, 255, 255, 0.76);
  border-radius: 0.9259cqw;
  background: rgba(237, 240, 239, 0.61);
  box-shadow: 0 0.6614cqw 1.8519cqw rgba(17, 24, 26, 0.17), inset 0 0.5px rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(1.1905cqw) saturate(112%);
  -webkit-backdrop-filter: blur(1.1905cqw) saturate(112%);
}

.cx-legacy-demo .mac-dock--modules .dock-icon {
  width: 2.381cqw;
  height: 2.381cqw;
  border: 0;
  border-radius: 0.6448cqw;
  background: var(--tile);
  box-shadow: inset 0 0.5px rgba(255, 255, 255, 0.52), 0 0.0661cqw 0.1984cqw rgba(15, 20, 22, 0.08);
  color: var(--ink);
}

.cx-legacy-demo .mac-dock--modules .dock-divider { width: 0.5px; height: 1.5873cqw; margin: 0 0.0661cqw; background: rgba(35, 40, 45, 0.10); }

.cx-legacy-demo .dock-module i { position: absolute; display: block; box-sizing: border-box; border-radius: 0.124cqw; background: currentColor; content: ""; }

.cx-legacy-demo .dock-module--1 { --tile: #d9e4e2; --ink: #667b78; }

.cx-legacy-demo .dock-module--2 { --tile: #dee5d8; --ink: #708069; }

.cx-legacy-demo .dock-module--3 { --tile: #e9e1d4; --ink: #887b67; }

.cx-legacy-demo .dock-module--4 { --tile: #e4dde8; --ink: #817586; }

.cx-legacy-demo .dock-module--5 { --tile: #6e8582; --ink: #f5f2e9; }

.cx-legacy-demo .dock-module--6 { --tile: #d9e3ea; --ink: #6b7d89; }

.cx-legacy-demo .dock-module--7 { --tile: #e7dcd8; --ink: #8e746c; }

.cx-legacy-demo .mac-dock--modules .dock-module--5.is-active { transform: translateY(-0.0661cqw); box-shadow: inset 0 0.5px rgba(255, 255, 255, 0.17), 0 0.2646cqw 0.5952cqw rgba(21, 32, 34, 0.18); }

.cx-legacy-demo .dock-module--1 i:nth-child(1) { top: 27.083%; left: 25%; width: 50%; height: 10.417%; }

.cx-legacy-demo .dock-module--1 i:nth-child(2) { top: 45.833%; left: 25%; width: 14.583%; height: 27.083%; }

.cx-legacy-demo .dock-module--1 i:nth-child(3) { top: 45.833%; right: 25%; width: 27.083%; height: 10.417%; }

.cx-legacy-demo .dock-module--2 i:nth-child(1) { top: 25%; left: 25%; width: 12.5%; height: 50%; }

.cx-legacy-demo .dock-module--2 i:nth-child(2) { top: 25%; left: 45.833%; width: 29.167%; height: 12.5%; }

.cx-legacy-demo .dock-module--2 i:nth-child(3) { bottom: 25%; left: 45.833%; width: 20.833%; height: 12.5%; }

.cx-legacy-demo .dock-module--3 i:nth-child(1) { top: 25%; left: 25%; width: 14.583%; height: 50%; }

.cx-legacy-demo .dock-module--3 i:nth-child(2) { top: 25%; right: 25%; width: 14.583%; height: 31.25%; }

.cx-legacy-demo .dock-module--3 i:nth-child(3) { bottom: 25%; left: 47.917%; width: 27.083%; height: 12.5%; }

.cx-legacy-demo .dock-module--4 i:nth-child(1) { top: 25%; left: 25%; width: 50%; height: 10.417%; }

.cx-legacy-demo .dock-module--4 i:nth-child(2) { top: 43.75%; left: 35.417%; width: 39.583%; height: 10.417%; }

.cx-legacy-demo .dock-module--4 i:nth-child(3) { top: 62.5%; left: 25%; width: 31.25%; height: 10.417%; }

.cx-legacy-demo .dock-module--5 i:nth-child(1) { top: 22.917%; left: 22.917%; width: 18.75%; height: 54.167%; }

.cx-legacy-demo .dock-module--5 i:nth-child(2) { top: 22.917%; left: 50%; width: 27.083%; height: 14.583%; }

.cx-legacy-demo .dock-module--5 i:nth-child(3) { bottom: 22.917%; left: 50%; width: 27.083%; height: 27.083%; }

.cx-legacy-demo .dock-module--6 i:nth-child(1) { top: 25%; left: 25%; width: 12.5%; height: 50%; }

.cx-legacy-demo .dock-module--6 i:nth-child(2) { bottom: 25%; left: 25%; width: 50%; height: 12.5%; }

.cx-legacy-demo .dock-module--6 i:nth-child(3) { top: 25%; right: 25%; width: 20.833%; height: 20.833%; }

.cx-legacy-demo .dock-module--7 i:nth-child(1) { top: 25%; left: 25%; width: 20.833%; height: 20.833%; }

.cx-legacy-demo .dock-module--7 i:nth-child(2) { top: 25%; right: 25%; width: 20.833%; height: 50%; }

.cx-legacy-demo .dock-module--7 i:nth-child(3) { bottom: 25%; left: 25%; width: 20.833%; height: 20.833%; }

.cx-legacy-demo .personos-app [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
.cx-legacy-demo .disclosure,
.cx-legacy-demo .prototype-secondary,
.cx-legacy-demo .personos-toolbar__actions button { transition: none !important; }

.cx-legacy-demo .touch-id-dialog,
.cx-legacy-demo .touch-id-dialog.is-authenticating .touch-id-dialog__icon > i { animation: none !important; }
}

.cx-legacy-demo .claude-terminal-window {
  --terminal-title-size: 1.0582cqw;
  --terminal-body-size: 0.9921cqw;
  --terminal-meta-size: 0.7937cqw;
  --terminal-startup-meta-size: 0.9921cqw;
  --terminal-line-tight: 1.3;
  --terminal-line-body: 1.5;
  position: absolute;
  z-index: 30;
  top: 5.1587cqw;
  right: 5.291cqw;
  bottom: 5.8201cqw;
  left: 5.291cqw;
  display: grid;
  overflow: hidden;
  border: 0.0661cqw solid rgba(0, 0, 0, 0.68);
  border-radius: 0.9259cqw;
  grid-template-rows: 3.0423cqw minmax(0, 1fr) 4.2989cqw;
  background: #181817;
  color: #eceae4;
  box-shadow: 0 2.5132cqw 5.9524cqw rgba(8, 12, 13, 0.38), 0 0.5291cqw 1.7196cqw rgba(8, 12, 13, 0.24), inset 0 1px rgba(255, 255, 255, 0.06);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  transform-origin: 50% 50%;
  transition: transform 480ms cubic-bezier(.16, 1, .3, 1), opacity 300ms ease-out, box-shadow 480ms ease-out;
  isolation: isolate;
}

.cx-legacy-demo .claude-terminal-window::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.cx-legacy-demo .claude-terminal-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 0;
  padding: 0 0.8598cqw;
  grid-template-columns: 10.582cqw minmax(0, 1fr) 10.582cqw;
  align-items: center;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.5);
  background: #3b3b38;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: var(--terminal-meta-size);
  line-height: var(--terminal-line-tight);
}

.cx-legacy-demo .claude-terminal-toolbar .window-controls { padding: 0; gap: 0.5952cqw; }

.cx-legacy-demo .claude-terminal-toolbar .window-controls i { width: 0.7937cqw; height: 0.7937cqw; }

.cx-legacy-demo .claude-terminal-title {
  display: flex;
  min-width: 0;
  grid-column: 2;
  justify-self: center;
  align-items: center;
  line-height: var(--terminal-line-tight);
}

.cx-legacy-demo .claude-terminal-title img { width: 1.1905cqw; height: 1.1905cqw; }

.cx-legacy-demo .claude-terminal-title strong { color: #e7e6e1; font-size: inherit; font-weight: 600; }

.cx-legacy-demo .claude-terminal-title small { color: #818987; font-size: inherit; white-space: nowrap; }

.cx-legacy-demo .claude-terminal-body {
  min-height: 0;
  padding: 1.5212cqw 2.1164cqw 1.3228cqw;
  overflow: auto;
  background: #181817;
  color: #d8d6d0;
  font-size: var(--terminal-body-size);
  line-height: var(--terminal-line-body);
  scrollbar-color: #444440 #181817;
  scrollbar-width: thin;
  transition: opacity 110ms linear;
}

.cx-legacy-demo .claude-terminal-body.is-clearing { opacity: 0; }

.cx-legacy-demo .claude-terminal-body::-webkit-scrollbar { width: 0.5291cqw; }

.cx-legacy-demo .claude-terminal-body::-webkit-scrollbar-track { background: #181817; }

.cx-legacy-demo .claude-terminal-body::-webkit-scrollbar-thumb { border: 0.1323cqw solid #181817; border-radius: 999px; background: #444440; }

.cx-legacy-demo .claude-terminal-body ::selection { background: #575752; color: #fff; }

.cx-legacy-demo .terminal-startup {
  display: flex;
  min-height: 4.7619cqw;
  margin-bottom: 1.5212cqw;
  padding-bottom: 1.2566cqw;
  align-items: center;
  gap: 1.3228cqw;
  border-bottom: 0.0661cqw solid #454541;
}

.cx-legacy-demo .terminal-pixel-mark {
  display: block;
  width: 3.7037cqw;
  height: 2.0503cqw;
  flex: 0 0 auto;
  overflow: visible;
  color: #d77757;
}

.cx-legacy-demo .terminal-pixel-mark__body { fill: currentColor; }

.cx-legacy-demo .terminal-pixel-mark__eyes { fill: #181817; }

.cx-legacy-demo .terminal-startup__copy { display: grid; min-width: 0; line-height: var(--terminal-line-tight); }

.cx-legacy-demo .terminal-startup__copy strong { color: #d77757; font-size: var(--terminal-title-size); font-weight: 600; }

.cx-legacy-demo .terminal-startup__copy strong b { margin-left: 0.3307cqw; color: #8f8f89; font-weight: 400; }

.cx-legacy-demo .terminal-startup__copy small { color: #898983; font-size: var(--terminal-startup-meta-size); line-height: 1.25; }

.cx-legacy-demo .terminal-block {
  display: none;
  margin: 1.0582cqw 0 0;
  grid-template-columns: 1.1243cqw minmax(0, 1fr);
  gap: 0.5952cqw;
}

.cx-legacy-demo .terminal-block--prompt {
  display: grid;
  margin-top: 0;
}

.cx-legacy-demo .terminal-block--prompt p,
.cx-legacy-demo .terminal-block--request p,
.cx-legacy-demo .terminal-block--result p,
.cx-legacy-demo .terminal-block--answer p { max-width: none; margin: 0; }

.cx-legacy-demo .terminal-glyph { color: #9b9b95; font-weight: 600; }

.cx-legacy-demo .terminal-block--prompt p { width: 100%; min-height: 1.8519cqw; box-sizing: border-box; padding: 0.1984cqw 0.3968cqw; background: #393937; color: #efede7; font-weight: 500; line-height: 1.5; }

.cx-legacy-demo .terminal-input-caret { display: none; width: 0.0992cqw; height: 1.05em; margin-left: 0.1323cqw; background: #f5f3ed; box-shadow: 0 0 0.2646cqw rgba(245, 243, 237, 0.2); opacity: 0.96; vertical-align: -0.1653cqw; will-change: opacity; }

.cx-legacy-demo .context-stage[data-demo-step="prompt"] .terminal-input-caret { display: inline-block; animation: cxl-terminal-caret-idle 1.08s steps(1, end) infinite; }

.cx-legacy-demo .terminal-prompt-line.is-typing .terminal-input-caret { display: inline-block; animation: cxl-terminal-caret-typing 620ms steps(1, end) infinite; box-shadow: 0 0 0.3307cqw rgba(245, 243, 237, 0.28); }

.cx-legacy-demo .terminal-tool-dot,
.cx-legacy-demo .terminal-answer-mark {
  width: auto;
  height: auto;
  margin: 0;
  color: #f0eee8;
  background: none;
  font-size: var(--terminal-body-size);
  line-height: var(--terminal-line-body);
}

.cx-legacy-demo .terminal-block--request > div,
.cx-legacy-demo .terminal-block--result > div,
.cx-legacy-demo .terminal-block--answer > div { min-width: 0; }

.cx-legacy-demo .terminal-block--request strong { color: #efede7; font-weight: 600; }

.cx-legacy-demo .terminal-block--request strong em { margin-left: 0.3968cqw; color: #7f8986; font-size: var(--terminal-meta-size); font-style: normal; font-weight: 400; }

.cx-legacy-demo .terminal-thought { margin-bottom: 0.5952cqw !important; color: #999992; }

.cx-legacy-demo .terminal-thought span { color: #989892; }

.cx-legacy-demo .terminal-reasoning { color: #aaa9a3; }

.cx-legacy-demo .terminal-reasoning strong { display: block; color: #e9e7e1; }

.cx-legacy-demo .terminal-reasoning p { padding-left: 1.0582cqw; color: #92928c; }

.cx-legacy-demo .terminal-tool-call {
  position: relative;
  display: flex;
  margin-top: 0.8598cqw;
  padding-left: 1.3228cqw;
  align-items: baseline;
  gap: 0.5291cqw;
}

.cx-legacy-demo .terminal-tool-call::before { position: absolute; top: 0.2976cqw; left: 0; color: #27cc78; content: "●"; font-size: var(--terminal-body-size); }

.cx-legacy-demo .terminal-tool-call strong { color: #dcdad4; }

.cx-legacy-demo .terminal-tool-call small { color: #989892; font-size: var(--terminal-meta-size); }

.cx-legacy-demo .terminal-tool-output { padding-left: 1.3228cqw; color: #8d8d87; }

.cx-legacy-demo .terminal-tool-output small { color: #989892; }

.cx-legacy-demo .terminal-wait {
  display: flex;
  margin-top: 0.7275cqw !important;
  align-items: center;
  gap: 0.5291cqw;
  color: #e87956;
}

.cx-legacy-demo .terminal-wait i {
  display: inline-block;
  width: 1ch;
  height: auto;
  color: #e87956;
  font-style: normal;
  line-height: 1;
  text-align: center;
}

.cx-legacy-demo .terminal-wait small { color: #989892; font-size: var(--terminal-meta-size); }

.cx-legacy-demo .terminal-wait span,
.cx-legacy-demo .terminal-wait small { white-space: nowrap; }

.cx-legacy-demo .terminal-result-mark {
  width: auto;
  height: auto;
  margin: 0;
  color: #27cc78;
  font-size: var(--terminal-body-size);
  line-height: var(--terminal-line-body);
}

.cx-legacy-demo .terminal-block--result strong { color: #dcdad4; font-weight: 600; }

.cx-legacy-demo .terminal-block--result strong span { color: #989892; font-weight: 400; }

.cx-legacy-demo .terminal-block--result p { display: grid; grid-template-columns: 6.2831cqw minmax(0, 1fr); }

.cx-legacy-demo .terminal-block--result p b { color: #989892; font-weight: 400; }

.cx-legacy-demo .terminal-block--result p span { overflow-wrap: anywhere; color: #a8a7a1; }

.cx-legacy-demo .terminal-block--result .terminal-result-summary { display: block; padding-left: 1.0582cqw; color: #92928c; }

.cx-legacy-demo .terminal-answer-mark { color: #f0eee8; }

.cx-legacy-demo .terminal-block--answer strong { color: #efede7; font-weight: 600; }

.cx-legacy-demo .terminal-block--answer p { width: 100%; margin-top: 0.463cqw; color: #eef1ef; line-height: var(--terminal-line-body); }

.cx-legacy-demo .terminal-answer-chunk { display: block; }

.cx-legacy-demo .terminal-answer-chunk + .terminal-answer-chunk { margin-top: 0.5952cqw; }

.cx-legacy-demo .terminal-block--answer small { display: block; width: 100%; margin-top: 0.6614cqw; color: #8f9a97; font-size: var(--terminal-meta-size); line-height: var(--terminal-line-body); }

.cx-legacy-demo .js [data-terminal-beat][hidden] { display: none !important; }

.cx-legacy-demo [data-terminal-beat].is-streamed { animation: cxl-terminal-beat-in 150ms cubic-bezier(.16, 1, .3, 1) both; }

.cx-legacy-demo .context-stage:is([data-demo-step="request"], [data-demo-step="consent"], [data-demo-step="result"], [data-demo-step="answer"], [data-demo-step="clear-command"], [data-demo-step="audit"], [data-demo-step="denied"]) .terminal-block--request,
.cx-legacy-demo .context-stage:is([data-demo-step="result"], [data-demo-step="answer"], [data-demo-step="clear-command"], [data-demo-step="audit"]) .terminal-block--result,
.cx-legacy-demo .context-stage:is([data-demo-step="answer"], [data-demo-step="clear-command"], [data-demo-step="audit"]) .terminal-block--answer {
  display: grid;
}

.cx-legacy-demo .context-stage[data-demo-step="result"] .terminal-wait,
.cx-legacy-demo .context-stage[data-demo-step="answer"] .terminal-wait,
.cx-legacy-demo .context-stage[data-demo-step="clear-command"] .terminal-wait,
.cx-legacy-demo .context-stage[data-demo-step="audit"] .terminal-wait { display: none; }

.cx-legacy-demo .context-stage[data-demo-step="result"] .terminal-wait i,
.cx-legacy-demo .context-stage[data-demo-step="answer"] .terminal-wait i,
.cx-legacy-demo .context-stage[data-demo-step="clear-command"] .terminal-wait i,
.cx-legacy-demo .context-stage[data-demo-step="audit"] .terminal-wait i { color: #6b6b66; }

.cx-legacy-demo .context-stage[data-demo-step="denied"] .terminal-wait { color: #ff6b7b; }

.cx-legacy-demo .claude-terminal-composer {
  display: grid;
  min-height: 0;
  padding: 0 0.9921cqw;
  grid-template-rows: 2.4471cqw 1.8519cqw;
  background: #181817;
  color: #777772;
  font-size: var(--terminal-meta-size);
  line-height: var(--terminal-line-tight);
}

.cx-legacy-demo .claude-terminal-composer > div { display: flex; align-items: center; gap: 0.6614cqw; border-top: 0.0661cqw solid #64645f; border-bottom: 0.0661cqw solid #4b4b47; color: #969690; font-size: var(--terminal-body-size); }

.cx-legacy-demo .terminal-composer-entry { display: inline-flex; min-width: 0; align-items: center; gap: 0.1323cqw; color: #eceae4; }

.cx-legacy-demo .terminal-composer-entry > span { white-space: pre; }

.cx-legacy-demo [data-terminal-clear-caret] { width: 0.6614cqw; height: 1.1905cqw; flex: 0 0 auto; background: #b9bbb6; box-shadow: 0 0 0.2646cqw rgba(185, 187, 182, 0.16); animation: cxl-terminal-caret-idle 1.08s steps(1, end) infinite; will-change: opacity; }

.cx-legacy-demo [data-terminal-clear-line].is-typing [data-terminal-clear-caret] { animation: cxl-terminal-caret-typing 620ms steps(1, end) infinite; }

.cx-legacy-demo [data-terminal-clear-line].is-submitting [data-terminal-clear-caret] { opacity: 0; animation: none; }

.cx-legacy-demo .claude-terminal-composer p { display: flex; margin: 0; align-items: center; gap: 0.5291cqw; }

.cx-legacy-demo .claude-terminal-composer p span { color: #8b8b85; }

.cx-legacy-demo .claude-terminal-composer p b { color: #d15c66; font-weight: 500; }

.cx-legacy-demo .claude-terminal-composer p small { margin-left: auto; color: #6f6f6a; font-size: inherit; }

.cx-legacy-demo .context-stage[data-last-decision="denied"] .terminal-result-mark { color: #e56b73; }

.cx-legacy-demo .context-stage[data-phase="expanded"] .context-island { height: 31.6138cqw; }

.cx-legacy-demo .context-stage[data-phase="expanded"] .terminal-tool-output { overflow-wrap: anywhere; }

.cx-legacy-demo .demo-flow {
  display: grid;
  margin-top: 20px;
  padding: 18px 0 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cx-legacy-demo .demo-flow ol {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.cx-legacy-demo .demo-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 0 22px 0 18px;
  align-content: start;
  gap: 2px;
  color: var(--muted);
  transition: color 180ms ease-out;
}

.cx-legacy-demo .demo-flow li::before {
  position: absolute;
  top: 5px;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  content: "";
  transition: border-color 180ms ease-out, background-color 180ms ease-out, transform 180ms ease-out;
}

.cx-legacy-demo .demo-flow li::after {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 1px;
  background: var(--line);
  content: "";
}

.cx-legacy-demo .demo-flow li:last-child::after { display: none; }

.cx-legacy-demo .demo-flow li strong { color: inherit; font-size: 0.78rem; font-weight: 700; }

.cx-legacy-demo .demo-flow li span { overflow: hidden; font-size: 0.72rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

.cx-legacy-demo .demo-flow li.is-current { color: var(--ink); }

.cx-legacy-demo .demo-flow li.is-current::before { border-color: var(--cobalt); background: var(--cobalt); transform: scale(1.18); }

.cx-legacy-demo .demo-flow li.is-complete::before { border-color: #48a985; background: var(--mint); }

.cx-legacy-demo .demo-flow__actions { display: flex; align-items: center; gap: 8px; }

.cx-legacy-demo .demo-flow__actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out, transform 120ms ease-out;
}

.cx-legacy-demo .demo-flow__actions button:hover { border-color: var(--line-strong); background: var(--paper-raised); color: var(--ink); }

.cx-legacy-demo .demo-flow__actions button:active { transform: scale(0.98); }

.cx-legacy-demo .demo-flow__actions button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.cx-legacy-demo .js .hero__artifact .native-window { visibility: hidden; }

.cx-legacy-demo .audit-showcase {
  width: min(1240px, calc(100% - 48px));
  margin: clamp(110px, 13vw, 190px) auto 0;
  scroll-margin-top: 96px;
}

.cx-legacy-demo .audit-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1512 / 982;
  border: 1px solid rgba(17, 23, 25, 0.22);
  border-radius: 24px;
  container-type: inline-size;
  background-color: #cbd8df;
  background-image: url("../img/context-legacy/personos-desktop-wallpaper-v2.webp");
  background-position: center;
  background-size: cover;
  box-shadow: 0 38px 90px rgba(28, 37, 43, 0.17), 0 8px 24px rgba(28, 37, 43, 0.10);
}

.cx-legacy-demo .audit-screen::after { position: absolute; z-index: 50; inset: 0; border: 1px solid rgba(255, 255, 255, 0.58); border-radius: inherit; content: ""; pointer-events: none; }

.cx-legacy-demo .audit-screen__menubar {
  position: absolute;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 2.1164cqw;
  padding: 0 1.3889cqw;
  align-items: center;
  justify-content: space-between;
  background: rgba(246, 247, 250, 0.74);
  color: #191d20;
  box-shadow: inset 0 -0.5px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  font-size: 0.8598cqw;
}

.cx-legacy-demo .audit-screen__menubar span { display: flex; height: 100%; align-items: center; gap: 1.3228cqw; }

.cx-legacy-demo .audit-screen__menubar img { width: 0.9259cqw; height: 0.9259cqw; object-fit: contain; }

.cx-legacy-demo .audit-screen__menubar span:last-child { gap: 0.7937cqw; }

.cx-legacy-demo .audit-screen__menubar span:last-child img:nth-child(2) { width: 1.1243cqw; }

.cx-legacy-demo .audit-screen__menubar span:last-child img:nth-child(3) { width: 1.455cqw; }

.cx-legacy-demo .audit-screen__menubar b { font-weight: 500; }

.cx-legacy-demo .audit-screen__menubar strong { font-weight: 680; }

.cx-legacy-demo .audit-screen__menubar time { margin-left: 0.3968cqw; font-variant-numeric: tabular-nums; }

.cx-legacy-demo .audit-screen__stage { position: absolute; inset: 0; container-type: inline-size; }

.cx-legacy-demo .audit-screen .audit-window {
  position: absolute;
  z-index: 10;
  top: 4.828cqw;
  right: 4.7619cqw;
  bottom: 4.4312cqw;
  left: 4.7619cqw;
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.cx-legacy-demo .audit-screen button { font-family: inherit; letter-spacing: 0; }

@media (max-width: 760px) {
.cx-legacy-demo .context-stage { height: 660px; aspect-ratio: auto; border-radius: 16px; scroll-margin-top: 82px; }

.cx-legacy-demo .mac-desktop { right: 0; left: 0; width: 100%; transform: none; }

.cx-legacy-demo .mac-menubar { height: 28px; min-height: 28px; padding: 0 10px; font-size: 9px; }

.cx-legacy-demo .mac-menubar__left { gap: 8px; }

.cx-legacy-demo .mac-menubar__left span:nth-last-child(-n + 3) { display: none; }

.cx-legacy-demo .mac-menubar__right .menu-symbol--personos,
.cx-legacy-demo .mac-menubar__right .menu-symbol--control { display: none; }

.cx-legacy-demo .mac-menubar time { width: auto; min-width: 0; margin-left: 6px; font-size: 8px; }

.cx-legacy-demo .mac-menubar time span:first-child { display: none; }

.cx-legacy-demo .mac-notch { width: 82px; height: 28px; border-radius: 0 0 12px 12px; }

.cx-legacy-demo .claude-terminal-window,
.cx-legacy-demo .native-window {
    top: 42px;
    right: 12px;
    bottom: 52px;
    left: 12px;
    border-radius: 13px;
    transform: none;
  }

.cx-legacy-demo .claude-terminal-window { grid-template-rows: 42px minmax(0, 1fr) 30px; }

.cx-legacy-demo .claude-terminal-toolbar { padding: 0 12px; grid-template-columns: 72px minmax(0, 1fr) 72px; }

.cx-legacy-demo .claude-terminal-toolbar .window-controls { gap: 6px; }

.cx-legacy-demo .claude-terminal-toolbar .window-controls i { width: 10px; height: 10px; }

.cx-legacy-demo .claude-terminal-title { gap: 7px; }

.cx-legacy-demo .claude-terminal-title img { width: 18px; height: 18px; }

.cx-legacy-demo .claude-terminal-title strong { font-size: 10px; }

.cx-legacy-demo .claude-terminal-title small { font-size: 7px; }

.cx-legacy-demo .claude-terminal-body { padding: 18px 16px 16px; font-size: 11px; line-height: 1.55; }

.cx-legacy-demo .terminal-block { grid-template-columns: 14px minmax(0, 1fr); gap: 7px; }

.cx-legacy-demo .terminal-tool-dot,
.cx-legacy-demo .terminal-answer-mark { width: 7px; height: 7px; margin-top: 5px; }

.cx-legacy-demo .terminal-block--request strong em { margin-left: 5px; font-size: 8px; }

.cx-legacy-demo .terminal-block--request dl { width: 100%; margin-top: 7px; }

.cx-legacy-demo .terminal-block--request dl div,
.cx-legacy-demo .terminal-block--result p { grid-template-columns: 74px minmax(0, 1fr); }

.cx-legacy-demo .terminal-wait { margin-top: 8px !important; gap: 6px; }

.cx-legacy-demo .terminal-result-mark { width: 10px; height: 10px; margin-top: 3px; border-width: 1px; }

.cx-legacy-demo .terminal-result-mark::after { top: 1px; left: 3px; width: 2px; height: 4px; border-width: 0 1px 1px 0; }

.cx-legacy-demo .terminal-block--answer p { margin-top: 6px; }

.cx-legacy-demo .terminal-block--answer small { margin-top: 8px; font-size: 9px; }

.cx-legacy-demo .context-stage:is([data-demo-step="request"], [data-demo-step="consent"], [data-demo-step="result"], [data-demo-step="answer"], [data-demo-step="audit"], [data-demo-step="denied"]) .terminal-block--request,
.cx-legacy-demo .context-stage:is([data-demo-step="result"], [data-demo-step="answer"], [data-demo-step="audit"]) .terminal-block--result,
.cx-legacy-demo .context-stage:is([data-demo-step="answer"], [data-demo-step="audit"]) .terminal-block--answer { margin-top: 13px; }

.cx-legacy-demo .native-window { grid-template-rows: 42px minmax(0, 1fr); }

.cx-legacy-demo .personos-toolbar { height: 42px; padding: 0 12px; grid-template-columns: 78px minmax(0, 1fr) 78px; border-radius: 12px 12px 0 0; }

.cx-legacy-demo .personos-toolbar::after { display: none; }

.cx-legacy-demo .personos-toolbar .window-controls { padding: 0; gap: 6px; }

.cx-legacy-demo .personos-toolbar .window-controls i { width: 10px; height: 10px; }

.cx-legacy-demo .personos-toolbar__identity { grid-column: 2; gap: 6px; }

.cx-legacy-demo .personos-toolbar__identity > img { width: 20px; height: 20px; }

.cx-legacy-demo .personos-toolbar__identity strong { font-size: 10px; }

.cx-legacy-demo .personos-toolbar__identity small { font-size: 7px; }

.cx-legacy-demo .personos-toolbar__actions { display: none; }

.cx-legacy-demo .native-window__body.personos-app { grid-template-columns: minmax(0, 1fr); }

.cx-legacy-demo .personos-sidebar { display: none; }

.cx-legacy-demo .personos-workspace { min-width: 0; }

.cx-legacy-demo .prototype-panel { padding: 18px 14px 14px; }

.cx-legacy-demo .prototype-page-header { min-height: 48px; }

.cx-legacy-demo .prototype-page-header h2 { font-size: 21px; }

.cx-legacy-demo .prototype-page-header p { margin-top: 5px; font-size: 10px; }

.cx-legacy-demo .prototype-secondary { min-height: 30px; padding: 0 10px; border-radius: 7px; font-size: 9px; }

.cx-legacy-demo .ledger-filters { display: none; }

.cx-legacy-demo .ledger-layout { height: calc(100% - 54px); grid-template-columns: minmax(0, 1fr); border-radius: 10px; }

.cx-legacy-demo .ledger-list { display: none; }

.cx-legacy-demo .ledger-detail { padding: 14px; }

.cx-legacy-demo .ledger-receipt > header strong { font-size: 12px; }

.cx-legacy-demo .ledger-receipt > header small { margin-top: 3px; font-size: 8px; }

.cx-legacy-demo .ledger-receipt > header button { min-height: 28px; padding: 0 9px; border-radius: 6px; font-size: 8px; }

.cx-legacy-demo .ledger-receipt pre,
.cx-legacy-demo .ledger-receipt pre[data-demo-receipt] { margin: 14px 0; padding: 12px; border-radius: 8px; font-size: 9px; line-height: 1.48; }

.cx-legacy-demo .ledger-receipt dl div { min-height: 38px; }

.cx-legacy-demo .ledger-receipt dt,
.cx-legacy-demo .ledger-receipt dd { font-size: 9px; }

.cx-legacy-demo .context-island { width: 82px; height: 28px; border-radius: 0 0 12px 12px; }

.cx-legacy-demo .context-stage[data-phase="event"] .context-island { width: 154px; height: 94px; border-radius: 0 0 15px 15px; }

.cx-legacy-demo .context-stage[data-phase="expanded"] .context-island { width: calc(100% - 24px); height: 428px; border-radius: 0 0 18px 18px; }

.cx-legacy-demo .context-stage[data-phase="decision"] .context-island { width: 154px; height: 94px; border-radius: 0 0 15px 15px; }

.cx-legacy-demo .island-peek { height: 28px; }

.cx-legacy-demo .context-stage[data-phase="event"] .island-peek { height: 94px; }

.cx-legacy-demo .context-stage[data-phase="decision"] .island-peek { height: 28px; }

.cx-legacy-demo .island-peek__notice { top: 28px; height: 66px; gap: 5px; font-size: 11px; }

.cx-legacy-demo .island-peek__notice .island-agent-symbol { width: 11px; height: 11px; }

.cx-legacy-demo .island-request { top: 28px; padding: 0 12px 16px; }

.cx-legacy-demo .island-content-rule { margin-bottom: 8px; }

.cx-legacy-demo .island-consent-card { padding: 8px 10px; }

.cx-legacy-demo .island-requester { padding-bottom: 10px; gap: 4px; }

.cx-legacy-demo .island-requester .island-agent-symbol { width: 17px; height: 17px; }

.cx-legacy-demo .island-requester strong { font-size: 12px; line-height: 1.25; }

.cx-legacy-demo .island-requester small { font-size: 10px; }

.cx-legacy-demo .consent-zone__heading { padding-top: 8px; padding-bottom: 4px; }

.cx-legacy-demo .consent-zone__heading > span { gap: 6px; }

.cx-legacy-demo .consent-zone__heading i { width: 5px; height: 5px; }

.cx-legacy-demo .consent-zone__heading strong { font-size: 10px; }

.cx-legacy-demo .consent-row { min-height: 44px; padding: 6px 5px; grid-template-columns: 3px 22px minmax(0, 1fr) 20px; gap: 8px; border-radius: 6px; font-size: 12px; }

.cx-legacy-demo .consent-rail { width: 3px; height: 28px; }

.cx-legacy-demo .consent-row__icon { width: 20px; height: 20px; }

.cx-legacy-demo .consent-row__state { width: 16px; height: 16px; }

.cx-legacy-demo .duration-control { padding: 3px 0 9px; }

.cx-legacy-demo .duration-control button { min-height: 37px; padding: 0 0 4px; font-size: 10px; }

.cx-legacy-demo .island-actions { padding-top: 10px; gap: 8px; }

.cx-legacy-demo .island-button { min-height: 42px; padding: 9px; border-radius: 8px; font-size: 11px; }

.cx-legacy-demo .island-decision { top: 28px; height: 66px; padding-bottom: 14px; }

.cx-legacy-demo .decision-stamp { width: 48px; height: 48px; }

.cx-legacy-demo .mac-dock { display: none; }

.cx-legacy-demo .demo-cursor { display: none; }

.cx-legacy-demo .demo-flow { grid-template-columns: minmax(0, 1fr); gap: 16px; }

.cx-legacy-demo .demo-flow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }

.cx-legacy-demo .demo-flow li { padding-right: 10px; }

.cx-legacy-demo .demo-flow li:nth-child(2)::after,
.cx-legacy-demo .demo-flow li:last-child::after { display: none; }

.cx-legacy-demo .demo-flow li span { white-space: normal; }

.cx-legacy-demo .demo-flow__actions { display: grid; grid-template-columns: 1fr 1fr; }

.cx-legacy-demo .demo-flow__actions button { min-height: 44px; }
}

@media (max-width: 430px) {
.cx-legacy-demo .context-stage { height: 640px; }

.cx-legacy-demo .claude-terminal-body { padding-right: 13px; padding-left: 13px; font-size: 10px; }

.cx-legacy-demo .terminal-block--request dl div,
.cx-legacy-demo .terminal-block--result p { grid-template-columns: 64px minmax(0, 1fr); }

.cx-legacy-demo .context-stage:is([data-demo-step="request"], [data-demo-step="consent"], [data-demo-step="result"], [data-demo-step="answer"], [data-demo-step="audit"], [data-demo-step="denied"]) .terminal-block--request,
.cx-legacy-demo .context-stage:is([data-demo-step="result"], [data-demo-step="answer"], [data-demo-step="audit"]) .terminal-block--result,
.cx-legacy-demo .context-stage:is([data-demo-step="answer"], [data-demo-step="audit"]) .terminal-block--answer { margin-top: 11px; }

.cx-legacy-demo .context-stage[data-phase="expanded"] .context-island { height: 418px; }
}

@media (prefers-reduced-motion: reduce) {
.cx-legacy-demo .terminal-input-caret { animation: none !important; }

.cx-legacy-demo .claude-terminal-body { transition: none !important; }

.cx-legacy-demo [data-terminal-clear-caret] { animation: none !important; }

.cx-legacy-demo .claude-terminal-window { transition: opacity 120ms linear !important; }

.cx-legacy-demo .terminal-block { animation: none !important; }

.cx-legacy-demo [data-terminal-beat] { animation: none !important; }

.cx-legacy-demo .demo-flow li::before { transition: none !important; }
}

.cx-legacy-demo .audit-showcase {width:calc(100% - var(--lab-gutter)*2);max-width:var(--lab-content);margin:0 auto 64px;padding:0;border-top:1px solid var(--lab-rule)}

.cx-legacy-demo .receipt-summary {display:flex;align-items:center;justify-content:space-between;gap:30px;padding:26px 0;cursor:pointer;list-style:none}

.cx-legacy-demo .receipt-summary::-webkit-details-marker {display:none}

.cx-legacy-demo .receipt-summary h2 {font:400 30px/1.2 var(--lab-sans);letter-spacing:-.025em;margin:0}

.cx-legacy-demo .receipt-summary>svg {width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.3;transition:transform .2s}

.cx-legacy-demo .audit-showcase[open] .receipt-summary>svg {transform:rotate(180deg)}

.cx-legacy-demo .receipt-caption {margin:0 0 30px;color:var(--lab-muted);font-size:15px}

.cx-legacy-demo .audit-screen {margin-top:0}

.cx-legacy-demo .audit-showcase[open] {padding-bottom:16px}

@keyframes cxl-cursor-click {
  from { transform: scale(0.2); opacity: 1; }
  to { transform: scale(1); opacity: 0; }
}

@keyframes cxl-island-stamp-appear {
  to { opacity: 1; transform: scale(1); }
}

@keyframes cxl-island-stamp-hide { from { opacity: 1; } to { opacity: 0; } }

@keyframes cxl-island-ring-allow-draw { to { stroke-dashoffset: 0; } }

@keyframes cxl-island-ring-allow-spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }

@keyframes cxl-island-ring-deny-draw { to { stroke-dashoffset: 0; } }

@keyframes cxl-island-check-draw {
  from { opacity: 1; stroke-dashoffset: 31.8; }
  to { opacity: 1; stroke-dashoffset: 0; }
}

@keyframes cxl-island-cross-draw {
  from { opacity: 1; stroke-dashoffset: 28.284; }
  to { opacity: 1; stroke-dashoffset: 0; }
}

@keyframes cxl-island-check-land {
  0% { transform: scale(0.72) rotate(-16deg); }
  72% { transform: scale(1.07) rotate(1deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes cxl-island-glow {
  0% { opacity: 0; }
  32% { opacity: 0.2; }
  100% { opacity: 0.08; }
}

@keyframes cxl-island-ripple {
  from { opacity: 0.42; transform: scale(0.72); }
  to { opacity: 0; transform: scale(1.42); }
}

@keyframes cxl-island-wash-allow {
  0% { opacity: 0; }
  16% { opacity: 0.12; }
  100% { opacity: 0; }
}

@keyframes cxl-island-wash-deny {
  0% { opacity: 0; }
  30% { opacity: 0.09; }
  100% { opacity: 0; }
}

@keyframes cxl-touch-id-dialog-in { from { opacity: 0; transform: scale(0.94) translateY(0.3968cqw); } to { opacity: 1; transform: scale(1) translateY(0); } }

@keyframes cxl-touch-id-reading { from { opacity: 0.42; transform: scale(0.94); } to { opacity: 1; transform: scale(1.03); } }

@keyframes cxl-terminal-beat-in { from { opacity: 0; transform: translateY(0.1323cqw); } to { opacity: 1; transform: translateY(0); } }

@keyframes cxl-terminal-caret-idle { 0%, 44% { opacity: 0.96; } 45%, 91% { opacity: 0; } 92%, 100% { opacity: 0.96; } }

@keyframes cxl-terminal-caret-typing { 0%, 68% { opacity: 1; } 69%, 86% { opacity: 0; } 87%, 100% { opacity: 1; } }

/* Integration only: inherit the current page width; retain the original desktop. */
.cx-legacy-demo { background:transparent; overflow:visible; }
.cx-legacy-demo .hero__artifact { width:100%; max-width:1240px; margin:40px auto 0; }
.cx-legacy-demo .audit-showcase { width:100%; max-width:none; margin:32px 0 0; }
.cx-legacy-demo .receipt-summary h2 { font-family:var(--lab-sans); font-size:24px; line-height:1.3; }
.cx-legacy-demo [hidden] { display:none!important; }

/* The host page already reserves the fixed navigation height. */
.cx-legacy-demo .hero__artifact,
.cx-legacy-demo .context-stage,
.cx-legacy-demo .audit-showcase { scroll-margin-top:0; }
