@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");
:root { --sasha-ground: #eef1f6; --sasha-wash-colours-1: #c7f0fb; --sasha-wash-colours-2: #f6d4ec; --sasha-wash-colours-3: #d4f5e2; --sasha-lively-shape-gradients-1-1: #67e8f9; --sasha-lively-shape-gradients-1-2: #a5b4fc; --sasha-lively-shape-gradients-2-1: #f9a8d4; --sasha-lively-shape-gradients-2-2: #c4b5fd; --sasha-lively-shape-gradients-3-1: #86efac; --sasha-lively-shape-gradients-3-2: #7dd3fc; --sasha-lively-shape-gradients-4-1: #fde68a; --sasha-lively-shape-gradients-4-2: #fdba74; --sasha-lively-shape-gradients-5-1: #a5b4fc; --sasha-lively-shape-gradients-5-2: #67e8f9; --sasha-lively-shape-opacity: 0.85; --sasha-panel-glass: rgba(255, 255, 255, 0.38); --sasha-card-glass: rgba(255, 255, 255, 0.45); --sasha-lively-glass: rgba(255, 255, 255, 0.26); --sasha-glass-over-canvas: rgba(255, 255, 255, 0.92); --sasha-glass-edge: rgba(255, 255, 255, 0.85); --sasha-glass-top-highlight: rgba(255, 255, 255, 0.95); --sasha-glass-bottom-shade: rgba(120, 130, 170, 0.18); --sasha-lift-shadow: 0 12px 32px rgba(80, 90, 140, 0.14); --sasha-scrim: rgba(28, 35, 51, 0.32); --sasha-text: #1c2333; --sasha-text-muted: #3d4659; --sasha-text-subtle: #4b5468; --sasha-accent: #4338ca; --sasha-accent-soft: rgba(67, 56, 202, 0.08); --sasha-selection: #6366f1; --sasha-selection-halo: #ffffff; --sasha-handle-fill: #ffffff; --sasha-ink-button: #1c2333; --sasha-ink-button-hover: #2d3650; --sasha-ink-button-text: #ffffff; --sasha-secondary-button: rgba(28, 35, 51, 0.07); --sasha-secondary-button-hover: rgba(28, 35, 51, 0.12); --sasha-danger-button: #b91c1c; --sasha-danger-button-hover: #991b1b; --sasha-danger-button-text: #ffffff; --sasha-tab-on: rgba(255, 255, 255, 0.95); --sasha-tab-on-shadow: 0 2px 6px rgba(28, 35, 51, 0.12); --sasha-hairline: rgba(28, 35, 51, 0.10); --sasha-success: #065f46; --sasha-warning: #92400e; --sasha-danger: #b91c1c; --sasha-focus-ring: #4338ca; --sasha-peer-colours-1: #4338ca; --sasha-peer-colours-2: #0e7490; --sasha-peer-colours-3: #be185d; --sasha-peer-colours-4: #047857; --sasha-peer-colours-5: #b45309; --sasha-peer-colours-6: #7c3aed; --sasha-peer-label-text: #ffffff; --sasha-font-family: Manrope, Roboto, Arial, sans-serif; --sasha-code-font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --sasha-font-size-caption: 11.5px; --sasha-font-size-small: 12.5px; --sasha-font-size-body: 14px; --sasha-font-size-title: 16px; --sasha-font-size-heading: 20px; --sasha-font-weight-regular: 400; --sasha-font-weight-medium: 500; --sasha-font-weight-semibold: 600; --sasha-font-weight-bold: 700; --sasha-line-height: 1.45; --sasha-space-extra-small: 4px; --sasha-space-small: 8px; --sasha-space-medium: 12px; --sasha-space-large: 16px; --sasha-space-extra-large: 24px; --sasha-radius-panel: 22px; --sasha-radius-card: 18px; --sasha-radius-control: 12px; --sasha-radius-pill: 999px; --sasha-control-height: 32px; --sasha-control-icon-size: 18px; --sasha-control-focus-ring-width: 2px; --sasha-control-handle-size: 9px; --sasha-control-selection-width: 1.5px; --sasha-disabled-opacity: 0.45; --sasha-layer-wash: -1; --sasha-layer-canvas: 1; --sasha-layer-canvas-overlay: 2; --sasha-layer-chrome: 10; --sasha-layer-popover: 20; --sasha-layer-scrim: 30; --sasha-layer-dialog: 31; --sasha-layer-notice: 40; --sasha-layer-presenter: 50; --sasha-lively-backdrop-filter: blur(12px) saturate(170%); --sasha-panel-backdrop-filter: blur(18px) saturate(150%); --sasha-calm-hue-duration: 40s; --sasha-chrome-transition-duration: 160ms; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sasha-ground: #0e1220; --sasha-wash-colours-1: #0e3e52; --sasha-wash-colours-2: #4e1434; --sasha-wash-colours-3: #0a4039; --sasha-lively-shape-gradients-1-1: #0e7490; --sasha-lively-shape-gradients-1-2: #4338ca; --sasha-lively-shape-gradients-2-1: #9d174d; --sasha-lively-shape-gradients-2-2: #5b21b6; --sasha-lively-shape-gradients-3-1: #047857; --sasha-lively-shape-gradients-3-2: #0369a1; --sasha-lively-shape-gradients-4-1: #92400e; --sasha-lively-shape-gradients-4-2: #9d174d; --sasha-lively-shape-gradients-5-1: #4338ca; --sasha-lively-shape-gradients-5-2: #0e7490; --sasha-lively-shape-opacity: 0.45; --sasha-panel-glass: rgba(24, 30, 48, 0.45); --sasha-card-glass: rgba(36, 46, 72, 0.55); --sasha-lively-glass: rgba(30, 38, 60, 0.45); --sasha-glass-over-canvas: rgba(24, 30, 48, 0.94); --sasha-glass-edge: rgba(255, 255, 255, 0.16); --sasha-glass-top-highlight: rgba(255, 255, 255, 0.22); --sasha-glass-bottom-shade: rgba(0, 0, 0, 0.25); --sasha-lift-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); --sasha-scrim: rgba(0, 0, 0, 0.5); --sasha-text: #eef1f8; --sasha-text-muted: #bcc3d4; --sasha-text-subtle: #bcc3d4; --sasha-accent: #a5b4fc; --sasha-accent-soft: rgba(165, 180, 252, 0.14); --sasha-selection: #818cf8; --sasha-selection-halo: #0e1220; --sasha-handle-fill: #0e1220; --sasha-ink-button: #eef1f8; --sasha-ink-button-hover: #d7dcea; --sasha-ink-button-text: #1c2333; --sasha-secondary-button: rgba(255, 255, 255, 0.08); --sasha-secondary-button-hover: rgba(255, 255, 255, 0.14); --sasha-danger-button: #fca5a5; --sasha-danger-button-hover: #fecaca; --sasha-danger-button-text: #1c2333; --sasha-tab-on: rgba(255, 255, 255, 0.16); --sasha-tab-on-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); --sasha-hairline: rgba(255, 255, 255, 0.10); --sasha-success: #34d399; --sasha-warning: #fbbf24; --sasha-danger: #fca5a5; --sasha-focus-ring: #a5b4fc; --sasha-peer-colours-1: #a5b4fc; --sasha-peer-colours-2: #67e8f9; --sasha-peer-colours-3: #f9a8d4; --sasha-peer-colours-4: #6ee7b7; --sasha-peer-colours-5: #fcd34d; --sasha-peer-colours-6: #c4b5fd; --sasha-peer-label-text: #0e1220; --sasha-font-family: Manrope, Roboto, Arial, sans-serif; --sasha-code-font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --sasha-font-size-caption: 11.5px; --sasha-font-size-small: 12.5px; --sasha-font-size-body: 14px; --sasha-font-size-title: 16px; --sasha-font-size-heading: 20px; --sasha-font-weight-regular: 400; --sasha-font-weight-medium: 500; --sasha-font-weight-semibold: 600; --sasha-font-weight-bold: 700; --sasha-line-height: 1.45; --sasha-space-extra-small: 4px; --sasha-space-small: 8px; --sasha-space-medium: 12px; --sasha-space-large: 16px; --sasha-space-extra-large: 24px; --sasha-radius-panel: 22px; --sasha-radius-card: 18px; --sasha-radius-control: 12px; --sasha-radius-pill: 999px; --sasha-control-height: 32px; --sasha-control-icon-size: 18px; --sasha-control-focus-ring-width: 2px; --sasha-control-handle-size: 9px; --sasha-control-selection-width: 1.5px; --sasha-disabled-opacity: 0.45; --sasha-layer-wash: -1; --sasha-layer-canvas: 1; --sasha-layer-canvas-overlay: 2; --sasha-layer-chrome: 10; --sasha-layer-popover: 20; --sasha-layer-scrim: 30; --sasha-layer-dialog: 31; --sasha-layer-notice: 40; --sasha-layer-presenter: 50; --sasha-lively-backdrop-filter: blur(12px) saturate(170%); --sasha-panel-backdrop-filter: blur(18px) saturate(150%); --sasha-calm-hue-duration: 40s; --sasha-chrome-transition-duration: 160ms; } }
:root[data-theme="dark"] { --sasha-ground: #0e1220; --sasha-wash-colours-1: #0e3e52; --sasha-wash-colours-2: #4e1434; --sasha-wash-colours-3: #0a4039; --sasha-lively-shape-gradients-1-1: #0e7490; --sasha-lively-shape-gradients-1-2: #4338ca; --sasha-lively-shape-gradients-2-1: #9d174d; --sasha-lively-shape-gradients-2-2: #5b21b6; --sasha-lively-shape-gradients-3-1: #047857; --sasha-lively-shape-gradients-3-2: #0369a1; --sasha-lively-shape-gradients-4-1: #92400e; --sasha-lively-shape-gradients-4-2: #9d174d; --sasha-lively-shape-gradients-5-1: #4338ca; --sasha-lively-shape-gradients-5-2: #0e7490; --sasha-lively-shape-opacity: 0.45; --sasha-panel-glass: rgba(24, 30, 48, 0.45); --sasha-card-glass: rgba(36, 46, 72, 0.55); --sasha-lively-glass: rgba(30, 38, 60, 0.45); --sasha-glass-over-canvas: rgba(24, 30, 48, 0.94); --sasha-glass-edge: rgba(255, 255, 255, 0.16); --sasha-glass-top-highlight: rgba(255, 255, 255, 0.22); --sasha-glass-bottom-shade: rgba(0, 0, 0, 0.25); --sasha-lift-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); --sasha-scrim: rgba(0, 0, 0, 0.5); --sasha-text: #eef1f8; --sasha-text-muted: #bcc3d4; --sasha-text-subtle: #bcc3d4; --sasha-accent: #a5b4fc; --sasha-accent-soft: rgba(165, 180, 252, 0.14); --sasha-selection: #818cf8; --sasha-selection-halo: #0e1220; --sasha-handle-fill: #0e1220; --sasha-ink-button: #eef1f8; --sasha-ink-button-hover: #d7dcea; --sasha-ink-button-text: #1c2333; --sasha-secondary-button: rgba(255, 255, 255, 0.08); --sasha-secondary-button-hover: rgba(255, 255, 255, 0.14); --sasha-danger-button: #fca5a5; --sasha-danger-button-hover: #fecaca; --sasha-danger-button-text: #1c2333; --sasha-tab-on: rgba(255, 255, 255, 0.16); --sasha-tab-on-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); --sasha-hairline: rgba(255, 255, 255, 0.10); --sasha-success: #34d399; --sasha-warning: #fbbf24; --sasha-danger: #fca5a5; --sasha-focus-ring: #a5b4fc; --sasha-peer-colours-1: #a5b4fc; --sasha-peer-colours-2: #67e8f9; --sasha-peer-colours-3: #f9a8d4; --sasha-peer-colours-4: #6ee7b7; --sasha-peer-colours-5: #fcd34d; --sasha-peer-colours-6: #c4b5fd; --sasha-peer-label-text: #0e1220; --sasha-font-family: Manrope, Roboto, Arial, sans-serif; --sasha-code-font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --sasha-font-size-caption: 11.5px; --sasha-font-size-small: 12.5px; --sasha-font-size-body: 14px; --sasha-font-size-title: 16px; --sasha-font-size-heading: 20px; --sasha-font-weight-regular: 400; --sasha-font-weight-medium: 500; --sasha-font-weight-semibold: 600; --sasha-font-weight-bold: 700; --sasha-line-height: 1.45; --sasha-space-extra-small: 4px; --sasha-space-small: 8px; --sasha-space-medium: 12px; --sasha-space-large: 16px; --sasha-space-extra-large: 24px; --sasha-radius-panel: 22px; --sasha-radius-card: 18px; --sasha-radius-control: 12px; --sasha-radius-pill: 999px; --sasha-control-height: 32px; --sasha-control-icon-size: 18px; --sasha-control-focus-ring-width: 2px; --sasha-control-handle-size: 9px; --sasha-control-selection-width: 1.5px; --sasha-disabled-opacity: 0.45; --sasha-layer-wash: -1; --sasha-layer-canvas: 1; --sasha-layer-canvas-overlay: 2; --sasha-layer-chrome: 10; --sasha-layer-popover: 20; --sasha-layer-scrim: 30; --sasha-layer-dialog: 31; --sasha-layer-notice: 40; --sasha-layer-presenter: 50; --sasha-lively-backdrop-filter: blur(12px) saturate(170%); --sasha-panel-backdrop-filter: blur(18px) saturate(150%); --sasha-calm-hue-duration: 40s; --sasha-chrome-transition-duration: 160ms; }

html, body { background: var(--sasha-ground); }
.sasha-engine { position: relative; isolation: isolate; color: var(--sasha-text); font-family: var(--sasha-font-family); font-size: var(--sasha-font-size-body); line-height: var(--sasha-line-height); }
/* Zero specificity (:where), so every class below -- a pill's text colour, a tab's size, the code font -- beats the reset. */
:where(.sasha-engine) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.sasha-engine .sasha-slide-root { all: initial; }

.sasha-calm-ground::before {
  content: ""; position: absolute; inset: 0; z-index: var(--sasha-layer-wash); pointer-events: none;
  background:
    radial-gradient(60% 70% at 10% 15%, var(--sasha-wash-colours-1) 0%, transparent 70%),
    radial-gradient(55% 65% at 92% 30%, var(--sasha-wash-colours-2) 0%, transparent 70%),
    radial-gradient(70% 60% at 50% 100%, var(--sasha-wash-colours-3) 0%, transparent 70%),
    var(--sasha-ground);
}
@media (prefers-reduced-motion: no-preference) {
  .sasha-calm-ground::before { animation: sasha-calm-hue var(--sasha-calm-hue-duration) steps(120, end) infinite alternate; }
  .sasha-engine[data-gesture="active"] .sasha-calm-ground::before, .sasha-engine[data-gesture="active"].sasha-calm-ground::before { animation-play-state: paused; }
}
@keyframes sasha-calm-hue { 0% { filter: hue-rotate(0deg) saturate(1); } 100% { filter: hue-rotate(70deg) saturate(1.15); } }

.sasha-lively-ground { position: fixed; inset: 0; z-index: var(--sasha-layer-wash); overflow: hidden; pointer-events: none; }
.sasha-lively-ground span { position: absolute; width: 80vw; height: 80vw; border-radius: 50%; filter: blur(26px); opacity: var(--sasha-lively-shape-opacity); }
.sasha-lively-ground span:nth-child(1) { left: -30vw; top: -10vh; background: radial-gradient(circle at 40% 40%, var(--sasha-lively-shape-gradients-1-1), var(--sasha-lively-shape-gradients-1-2) 70%); }
.sasha-lively-ground span:nth-child(2) { right: -35vw; top: 25vh; background: radial-gradient(circle, var(--sasha-lively-shape-gradients-2-1), var(--sasha-lively-shape-gradients-2-2) 70%); }
.sasha-lively-ground span:nth-child(3) { left: -20vw; bottom: -25vh; background: radial-gradient(circle, var(--sasha-lively-shape-gradients-3-1), var(--sasha-lively-shape-gradients-3-2) 70%); }
.sasha-lively-ground span:nth-child(4) { right: -25vw; top: -15vh; width: 60vw; height: 60vw; background: radial-gradient(circle, var(--sasha-lively-shape-gradients-4-1), var(--sasha-lively-shape-gradients-4-2) 70%); }
.sasha-lively-ground span:nth-child(5) { left: 10vw; top: 55vh; width: 55vw; height: 55vw; background: radial-gradient(circle, var(--sasha-lively-shape-gradients-5-1), var(--sasha-lively-shape-gradients-5-2) 70%); }
@media (prefers-reduced-motion: no-preference) {
  .sasha-lively-ground span:nth-child(1) { animation: sasha-lively-drift-a 14s ease-in-out 0s infinite alternate; }
  .sasha-lively-ground span:nth-child(2) { animation: sasha-lively-drift-b 17s ease-in-out -3s infinite alternate; }
  .sasha-lively-ground span:nth-child(3) { animation: sasha-lively-drift-c 20s ease-in-out -6s infinite alternate; }
  .sasha-lively-ground span:nth-child(4) { animation: sasha-lively-drift-c 19s ease-in-out -9s infinite alternate; }
  .sasha-lively-ground span:nth-child(5) { animation: sasha-lively-drift-a 16s ease-in-out -12s infinite alternate; }
}
@keyframes sasha-lively-drift-a { 0% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: translate(0, 0) scale(.85); } 50% { border-radius: 61% 39% 45% 55% / 55% 61% 39% 45%; transform: translate(45vw, 30vh) scale(1.25); } 100% { border-radius: 38% 62% 56% 44% / 63% 37% 63% 37%; transform: translate(15vw, 55vh) scale(.95); } }
@keyframes sasha-lively-drift-b { 0% { border-radius: 55% 45% 38% 62% / 47% 60% 40% 53%; transform: translate(0, 0) scale(1.15); } 50% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; transform: translate(-50vw, -20vh) scale(.8); } 100% { border-radius: 63% 37% 45% 55% / 40% 58% 42% 60%; transform: translate(-25vw, 30vh) scale(1.2); } }
@keyframes sasha-lively-drift-c { 0% { border-radius: 48% 52% 60% 40% / 52% 40% 60% 48%; transform: translate(0, 0) scale(1); } 50% { border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%; transform: translate(40vw, -35vh) scale(1.3); } 100% { border-radius: 40% 60% 55% 45% / 60% 45% 55% 40%; transform: translate(10vw, -60vh) scale(.85); } }

.sasha-panel, .sasha-card, .sasha-lively-card, .sasha-popover, .sasha-dialog {
  border: 1px solid var(--sasha-glass-edge);
  box-shadow: inset 0 1px 0 var(--sasha-glass-top-highlight), inset 0 -1px 0 var(--sasha-glass-bottom-shade), var(--sasha-lift-shadow);
}
.sasha-panel { background: var(--sasha-panel-glass); border-radius: var(--sasha-radius-panel); z-index: var(--sasha-layer-chrome); }
.sasha-engine:not([data-gesture="active"]) .sasha-panel { -webkit-backdrop-filter: var(--sasha-panel-backdrop-filter); backdrop-filter: var(--sasha-panel-backdrop-filter); }
.sasha-card { background: var(--sasha-card-glass); border-radius: var(--sasha-radius-card); padding: var(--sasha-space-medium); }
.sasha-lively-card { background: var(--sasha-lively-glass); border-radius: var(--sasha-radius-panel); padding: var(--sasha-space-large); -webkit-backdrop-filter: var(--sasha-lively-backdrop-filter); backdrop-filter: var(--sasha-lively-backdrop-filter); }
.sasha-popover { background: var(--sasha-glass-over-canvas); border-radius: var(--sasha-radius-card); padding: var(--sasha-space-extra-small); z-index: var(--sasha-layer-popover); }
.sasha-scrim { position: fixed; inset: 0; background: var(--sasha-scrim); z-index: var(--sasha-layer-scrim); }
.sasha-dialog { background: var(--sasha-glass-over-canvas); border-radius: var(--sasha-radius-panel); padding: var(--sasha-space-extra-large); z-index: var(--sasha-layer-dialog); }

.sasha-pill-primary, .sasha-pill-secondary, .sasha-pill-danger {
  min-height: var(--sasha-control-height); padding: 0 var(--sasha-space-large); border: 0; border-radius: var(--sasha-radius-pill);
  font-weight: var(--sasha-font-weight-semibold); cursor: pointer;
}
.sasha-pill-primary { background: var(--sasha-ink-button); color: var(--sasha-ink-button-text); }
.sasha-pill-primary:hover { background: var(--sasha-ink-button-hover); }
.sasha-pill-secondary { background: var(--sasha-secondary-button); color: var(--sasha-text); }
.sasha-pill-secondary:hover { background: var(--sasha-secondary-button-hover); }
.sasha-pill-danger { background: var(--sasha-danger-button); color: var(--sasha-danger-button-text); }
.sasha-pill-danger:hover { background: var(--sasha-danger-button-hover); }
.sasha-icon-button { inline-size: var(--sasha-control-height); block-size: var(--sasha-control-height); display: inline-grid; place-items: center; border: 0; border-radius: var(--sasha-radius-pill); background: transparent; color: var(--sasha-text); cursor: pointer; }
.sasha-icon-button:hover, .sasha-icon-button[aria-pressed="true"] { background: var(--sasha-secondary-button-hover); }
.sasha-icon-button svg { inline-size: var(--sasha-control-icon-size); block-size: var(--sasha-control-icon-size); }

.sasha-tabs { display: flex; gap: var(--sasha-space-extra-small); flex-wrap: wrap; }
.sasha-tab { min-height: calc(var(--sasha-control-height) - 6px); padding: 0 var(--sasha-space-medium); border: 0; border-radius: var(--sasha-radius-pill); background: var(--sasha-secondary-button); color: var(--sasha-text-subtle); font-size: var(--sasha-font-size-small); cursor: pointer; }
.sasha-tab[aria-selected="true"] { background: var(--sasha-tab-on); color: var(--sasha-text); font-weight: var(--sasha-font-weight-bold); box-shadow: var(--sasha-tab-on-shadow); }

.sasha-field { min-height: var(--sasha-control-height); padding: 0 var(--sasha-space-small); border: 1px solid var(--sasha-hairline); border-radius: var(--sasha-radius-control); background: var(--sasha-card-glass); }
.sasha-field::placeholder { color: var(--sasha-text-subtle); }
.sasha-menu-item { display: flex; align-items: center; gap: var(--sasha-space-small); min-height: var(--sasha-control-height); padding: 0 var(--sasha-space-medium); border-radius: var(--sasha-radius-control); cursor: pointer; }
.sasha-menu-item:hover, .sasha-menu-item[data-active="true"] { background: var(--sasha-accent-soft); color: var(--sasha-accent); }
.sasha-muted { color: var(--sasha-text-muted); }
.sasha-subtle { color: var(--sasha-text-subtle); font-size: var(--sasha-font-size-caption); }
.sasha-code { font-family: var(--sasha-code-font-family); font-size: var(--sasha-font-size-small); }
.sasha-notice { background: var(--sasha-glass-over-canvas); border-radius: var(--sasha-radius-card); padding: var(--sasha-space-small) var(--sasha-space-medium); z-index: var(--sasha-layer-notice); }
.sasha-notice[data-tone="warning"] { color: var(--sasha-warning); }
.sasha-notice[data-tone="error"] { color: var(--sasha-danger); }
.sasha-engine a { color: var(--sasha-accent); }
.sasha-engine a.sasha-pill-primary, .sasha-engine a.sasha-pill-secondary, .sasha-engine a.sasha-pill-danger { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.sasha-engine a.sasha-pill-primary { color: var(--sasha-ink-button-text); }
.sasha-engine a.sasha-pill-secondary { color: var(--sasha-text); }
.sasha-engine a.sasha-pill-danger { color: var(--sasha-danger-button-text); }

.sasha-engine :focus-visible { outline: var(--sasha-control-focus-ring-width) solid var(--sasha-focus-ring); outline-offset: 2px; }
.sasha-engine [disabled], .sasha-engine [aria-disabled="true"] { opacity: var(--sasha-disabled-opacity); cursor: not-allowed; }
@media (prefers-reduced-motion: no-preference) {
  .sasha-pill-primary, .sasha-pill-secondary, .sasha-pill-danger, .sasha-icon-button, .sasha-tab, .sasha-menu-item { transition: background-color var(--sasha-chrome-transition-duration) ease, box-shadow var(--sasha-chrome-transition-duration) ease; }
}


html, body { margin: 0; block-size: 100%; }
#sasha-root { block-size: 100%; }
.sasha-view-editor { container: sasha-editor / inline-size; position: relative; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: var(--sasha-space-small); height: 100%; min-height: 0; padding: var(--sasha-space-small); box-sizing: border-box; overflow: hidden; }
.sasha-view-editor[data-banner="true"] { grid-template-rows: auto auto auto minmax(0, 1fr); }
.sasha-view-editor *, .sasha-view-editor *::before, .sasha-view-editor *::after { box-sizing: border-box; }
.sasha-engine { color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sasha-engine { color-scheme: dark; } }
:root[data-theme="dark"] .sasha-engine { color-scheme: dark; }
.sasha-view-editor * { scrollbar-width: thin; scrollbar-color: var(--sasha-secondary-button-hover) transparent; }
.sasha-view-icon { inline-size: var(--sasha-control-icon-size); block-size: var(--sasha-control-icon-size); flex: none; vertical-align: middle; }
.sasha-view-editor .sasha-pill-primary, .sasha-view-editor .sasha-pill-secondary, .sasha-view-editor .sasha-pill-danger { display: inline-flex; align-items: center; justify-content: center; gap: var(--sasha-space-extra-small); }

.sasha-view-top-bar { display: flex; align-items: center; gap: var(--sasha-space-medium); min-height: 52px; padding: var(--sasha-space-extra-small) var(--sasha-space-medium); }
.sasha-view-brand { display: flex; align-items: center; gap: var(--sasha-space-small); min-width: 0; }
/* The brand mark is a dark squircle; a hairline glass ring keeps it legible on the dark scheme's glass. */
.sasha-view-logo-link { flex: none; display: inline-grid; place-items: center; inline-size: 34px; block-size: 34px; border-radius: var(--sasha-radius-control); box-shadow: 0 0 0 1px var(--sasha-glass-edge); }
.sasha-view-logo, .sasha-view-logo > svg { display: block; inline-size: 34px; block-size: 34px; }
.sasha-view-brand-text { display: flex; flex-direction: column; min-width: 0; }
.sasha-view-status-line { display: flex; align-items: center; gap: var(--sasha-space-small); flex-wrap: wrap; }
.sasha-view-connection { display: inline-flex; align-items: center; gap: var(--sasha-space-extra-small); font-size: var(--sasha-font-size-caption); color: var(--sasha-text-muted); }
.sasha-view-connection[data-tone="warning"] { color: var(--sasha-warning); font-weight: var(--sasha-font-weight-semibold); }
.sasha-view-inline-action { border: 0; padding: 0 var(--sasha-space-extra-small); background: transparent; color: var(--sasha-accent); font-size: inherit; font-weight: var(--sasha-font-weight-bold); text-decoration: underline; cursor: pointer; }
.sasha-view-role-badge { padding: 2px var(--sasha-space-small); border-radius: var(--sasha-radius-pill); background: var(--sasha-accent-soft); color: var(--sasha-accent); font-size: var(--sasha-font-size-caption); font-weight: var(--sasha-font-weight-semibold); white-space: nowrap; }
.sasha-view-host-accessory { display: flex; align-items: center; gap: var(--sasha-space-small); }
.sasha-view-avatar-stack { display: flex; align-items: center; padding: 2px 4px 2px 10px; border: 0; border-radius: var(--sasha-radius-pill); background: transparent; cursor: pointer; }
.sasha-view-avatar-stack:hover, .sasha-view-avatar-stack[aria-expanded="true"] { background: var(--sasha-secondary-button); }
.sasha-view-avatar-more { margin-inline-start: var(--sasha-space-extra-small); font-size: var(--sasha-font-size-caption); color: var(--sasha-text-muted); }
.sasha-view-peer-popover { position: fixed; min-inline-size: 240px; }
.sasha-view-peer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.sasha-view-peer-list .sasha-menu-item { inline-size: 100%; border: 0; background: transparent; color: var(--sasha-text); text-align: start; }
.sasha-view-peer-list .sasha-menu-item:hover:not([disabled]) { background: var(--sasha-accent-soft); color: var(--sasha-accent); }
.sasha-view-read-only-banner { display: flex; align-items: center; gap: var(--sasha-space-small); padding: var(--sasha-space-small) var(--sasha-space-medium); border-radius: var(--sasha-radius-card); background: var(--sasha-glass-over-canvas); border: 1px solid var(--sasha-glass-edge); color: var(--sasha-text); font-weight: var(--sasha-font-weight-semibold); }
.sasha-view-read-only-banner > strong { color: var(--sasha-warning); }
.sasha-view-deck-title { margin: 0; font-size: var(--sasha-font-size-title); font-weight: var(--sasha-font-weight-bold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-inline-size: 280px; }
.sasha-view-menu-bar { display: flex; gap: 2px; flex-wrap: wrap; }
.sasha-view-menu-button { min-height: 28px; padding: 0 var(--sasha-space-small); border: 0; border-radius: var(--sasha-radius-pill); background: transparent; color: var(--sasha-text-muted); cursor: pointer; }
.sasha-view-menu-button:hover, .sasha-view-menu-button[aria-expanded="true"] { background: var(--sasha-secondary-button); color: var(--sasha-text); }
.sasha-view-top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: var(--sasha-space-small); }
.sasha-view-avatars { display: flex; align-items: center; }
.sasha-view-avatar { inline-size: 28px; block-size: 28px; margin-inline-start: -6px; border-radius: 50%; display: grid; place-items: center; font-size: var(--sasha-font-size-caption); font-weight: var(--sasha-font-weight-bold); color: var(--sasha-peer-label-text); border: 2px solid var(--sasha-glass-edge); }
.sasha-view-avatar[data-away="true"] { opacity: var(--sasha-disabled-opacity); }

.sasha-view-toolbar { display: flex; align-items: center; gap: var(--sasha-space-extra-small); flex-wrap: wrap; padding: var(--sasha-space-extra-small) var(--sasha-space-small); }
.sasha-view-toolbar-group { display: flex; align-items: center; gap: 2px; }
.sasha-view-toolbar-divider { inline-size: 1px; block-size: 22px; margin: 0 var(--sasha-space-extra-small); background: var(--sasha-hairline); }

.sasha-view-workspace { display: grid; grid-template-columns: 200px minmax(0, 1fr) 300px; gap: var(--sasha-space-small); min-height: 0; }
.sasha-view-workspace[data-filmstrip="closed"] { grid-template-columns: minmax(0, 1fr) 300px; }
.sasha-view-workspace[data-side="closed"] { grid-template-columns: 200px minmax(0, 1fr); }
.sasha-view-workspace[data-filmstrip="closed"][data-side="closed"] { grid-template-columns: minmax(0, 1fr); }
@container sasha-editor (max-width: 1100px) {
  .sasha-view-workspace { grid-template-columns: 150px minmax(0, 1fr) 250px; }
  .sasha-view-workspace[data-filmstrip="closed"] { grid-template-columns: minmax(0, 1fr) 250px; }
  .sasha-view-workspace[data-side="closed"] { grid-template-columns: 150px minmax(0, 1fr); }
  .sasha-view-menu-bar { display: none; }
  .sasha-view-notices { inline-size: min(250px, 100% - 2 * var(--sasha-space-small)); }
}
@media (max-width: 1023px) {
  .sasha-view-workspace, .sasha-view-workspace[data-filmstrip="closed"], .sasha-view-workspace[data-side="closed"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .sasha-view-side-panel { max-block-size: 40vh; }
}

.sasha-view-filmstrip { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.sasha-view-filmstrip-scroller { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; padding: var(--sasha-space-small); }
.sasha-view-thumbnail { position: absolute; inset-inline: var(--sasha-space-small); display: grid; grid-template-columns: 18px 1fr; gap: var(--sasha-space-extra-small); align-items: start; cursor: pointer; border: 0; background: transparent; padding: 0; color: inherit; text-align: start; }
.sasha-view-thumbnail-number { padding-block-start: 2px; font-size: var(--sasha-font-size-caption); color: var(--sasha-text-muted); text-align: end; }
.sasha-view-thumbnail-frame { position: relative; border-radius: var(--sasha-radius-control); overflow: hidden; outline: 2px solid transparent; outline-offset: 1px; box-shadow: var(--sasha-tab-on-shadow); }
.sasha-view-thumbnail[aria-selected="true"] .sasha-view-thumbnail-frame { outline-color: var(--sasha-selection); }
.sasha-view-thumbnail[data-current="true"] .sasha-view-thumbnail-number { color: var(--sasha-accent); font-weight: var(--sasha-font-weight-bold); }
.sasha-view-thumbnail[data-skipped="true"] .sasha-view-thumbnail-frame { opacity: var(--sasha-disabled-opacity); }
.sasha-view-thumbnail-badges { position: absolute; inset-inline-end: 4px; inset-block-end: 4px; display: flex; gap: 3px; }
.sasha-view-thumbnail-badges > span { min-inline-size: 18px; block-size: 18px; padding: 0 4px; border-radius: var(--sasha-radius-pill); display: inline-grid; place-items: center; background: var(--sasha-glass-over-canvas); color: var(--sasha-text); font-size: var(--sasha-font-size-caption); }
.sasha-view-thumbnail-badges svg { inline-size: 12px; block-size: 12px; }
.sasha-view-thumbnail-avatar { color: var(--sasha-peer-label-text); font-weight: var(--sasha-font-weight-bold); }
.sasha-view-drop-indicator { position: absolute; inset-inline: var(--sasha-space-small); block-size: 3px; border-radius: var(--sasha-radius-pill); background: var(--sasha-accent); }

.sasha-view-centre { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--sasha-space-small); min-height: 0; min-width: 0; }
.sasha-view-canvas-area { position: relative; overflow: auto; min-height: 0; outline: none; border-radius: var(--sasha-radius-panel); }
.sasha-view-canvas-area:focus-visible { outline: var(--sasha-control-focus-ring-width) solid var(--sasha-focus-ring); outline-offset: -2px; }
.sasha-view-canvas-area[data-tool="insert"] { cursor: crosshair; }
.sasha-view-canvas-stage { position: relative; }
.sasha-view-slide-frame { position: absolute; z-index: var(--sasha-layer-canvas); box-shadow: var(--sasha-lift-shadow); border-radius: 2px; }
.sasha-view-empty-state { position: absolute; inset: 0; display: grid; place-items: center; }

.sasha-view-overlay { position: absolute; inset: 0; z-index: var(--sasha-layer-canvas-overlay); pointer-events: none; }
.sasha-view-overlay-drawing { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; pointer-events: none; }
.sasha-view-selection-box { position: absolute; transform-origin: 50% 50%; outline: var(--sasha-control-selection-width) solid var(--sasha-selection); box-shadow: 0 0 0 calc(var(--sasha-control-selection-width) + 1px) var(--sasha-selection-halo); pointer-events: none; }
.sasha-view-selection-box[data-subtle="true"] { outline-style: dashed; box-shadow: none; }
.sasha-view-selection-line { stroke: var(--sasha-selection); stroke-width: 1.5; stroke-dasharray: 4 3; }
.sasha-view-handle { position: absolute; inline-size: var(--sasha-control-handle-size); block-size: var(--sasha-control-handle-size); transform: translate(-50%, -50%); background: var(--sasha-handle-fill); border: 1.5px solid var(--sasha-selection); border-radius: 2px; pointer-events: auto; cursor: pointer; }
.sasha-view-handle[data-handle-name="topLeft"], .sasha-view-handle[data-handle-name="bottomRight"] { cursor: nwse-resize; }
.sasha-view-handle[data-handle-name="topRight"], .sasha-view-handle[data-handle-name="bottomLeft"] { cursor: nesw-resize; }
.sasha-view-handle[data-handle-name="top"], .sasha-view-handle[data-handle-name="bottom"] { cursor: ns-resize; }
.sasha-view-handle[data-handle-name="left"], .sasha-view-handle[data-handle-name="right"] { cursor: ew-resize; }
.sasha-view-handle[data-handle-name="start"], .sasha-view-handle[data-handle-name="end"] { border-radius: 50%; cursor: move; }
.sasha-view-rotation-stem { position: absolute; inset-inline-start: 50%; inset-block-start: -22px; inline-size: 1px; block-size: 22px; background: var(--sasha-selection); }
.sasha-view-rotation-handle { position: absolute; inset-inline-start: 50%; inset-block-start: -26px; inline-size: 12px; block-size: 12px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--sasha-handle-fill); border: 1.5px solid var(--sasha-selection); pointer-events: auto; cursor: grab; }
.sasha-view-table-boundary { position: absolute; pointer-events: auto; }
.sasha-view-table-boundary[data-axis="column"] { inset-block: 0; inline-size: 8px; margin-inline-start: -4px; cursor: col-resize; }
.sasha-view-table-boundary[data-axis="row"] { inset-inline: 0; block-size: 8px; margin-block-start: -4px; cursor: row-resize; }
.sasha-view-guide { position: absolute; background: var(--sasha-accent); }
.sasha-view-guide[data-axis="vertical"] { inline-size: 1px; }
.sasha-view-guide[data-axis="horizontal"] { block-size: 1px; }
.sasha-view-marquee { position: absolute; border: 1px dashed var(--sasha-selection); background: var(--sasha-accent-soft); }
.sasha-view-creation-box { position: absolute; border: 1.5px solid var(--sasha-selection); background: var(--sasha-accent-soft); }
.sasha-view-peer-selection { position: absolute; transform-origin: 50% 50%; outline: 2px solid currentColor; outline-offset: 2px; }
.sasha-view-peer-cursor { position: absolute; inline-size: 16px; block-size: 20px; pointer-events: none; }
.sasha-view-peer-cursor > svg { display: block; inline-size: 16px; block-size: 20px; }
.sasha-view-peer-label { position: absolute; inset-inline-start: 14px; inset-block-start: 16px; padding: 1px var(--sasha-space-small); border-radius: var(--sasha-radius-pill); color: var(--sasha-peer-label-text); font-size: var(--sasha-font-size-caption); font-weight: var(--sasha-font-weight-semibold); white-space: nowrap; }
.sasha-view-peer-cursor[data-activity="idle"] { opacity: var(--sasha-disabled-opacity); }
.sasha-view-comment-pin { position: absolute; inline-size: 26px; block-size: 26px; transform: translate(-30%, -70%); border-radius: 50% 50% 50% 4px; border: 1px solid var(--sasha-glass-edge); background: var(--sasha-glass-over-canvas); color: var(--sasha-accent); font-weight: var(--sasha-font-weight-bold); font-size: var(--sasha-font-size-caption); box-shadow: var(--sasha-lift-shadow); pointer-events: auto; cursor: pointer; }
.sasha-view-comment-pin[data-resolved="true"] { color: var(--sasha-text-muted); }

.sasha-view-notes { display: flex; flex-direction: column; min-height: 0; max-block-size: 160px; padding: var(--sasha-space-small) var(--sasha-space-medium); }
.sasha-view-notes-body { overflow: auto; min-block-size: 48px; color: var(--sasha-text); }
.sasha-view-notes-reader { min-block-size: 48px; cursor: text; border-radius: var(--sasha-radius-control); }
.sasha-view-notes-reader:hover { background: var(--sasha-secondary-button); }

.sasha-view-side-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.sasha-view-panel-header { padding: var(--sasha-space-medium) var(--sasha-space-medium) var(--sasha-space-small); }
.sasha-view-panel-body { flex: 1; overflow-y: auto; padding: 0 var(--sasha-space-medium) var(--sasha-space-medium); display: flex; flex-direction: column; gap: var(--sasha-space-small); }
.sasha-view-panel-fieldset { display: flex; flex-direction: column; gap: var(--sasha-space-small); min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.sasha-engine .sasha-view-panel-fieldset[disabled] { opacity: 1; cursor: auto; }
.sasha-view-section { display: flex; flex-direction: column; gap: var(--sasha-space-small); }
.sasha-view-section-title { margin: 0; font-size: var(--sasha-font-size-small); font-weight: var(--sasha-font-weight-bold); color: var(--sasha-text-muted); }
.sasha-view-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sasha-space-small); }
.sasha-view-field-row { display: flex; align-items: center; gap: var(--sasha-space-small); flex-wrap: wrap; }
.sasha-view-field-label { display: flex; flex-direction: column; gap: 2px; font-size: var(--sasha-font-size-caption); color: var(--sasha-text-muted); min-inline-size: 0; }
.sasha-view-number-input { inline-size: 100%; min-inline-size: 0; color: var(--sasha-text); }
.sasha-view-toolbar .sasha-view-select { min-inline-size: 150px; }
.sasha-view-select { min-height: var(--sasha-control-height); padding: 0 var(--sasha-space-small); border: 1px solid var(--sasha-hairline); border-radius: var(--sasha-radius-control); background: var(--sasha-card-glass); color: var(--sasha-text); min-inline-size: 0; }
.sasha-view-segmented { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--sasha-radius-pill); background: var(--sasha-secondary-button); }
.sasha-view-glyph-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sasha-space-extra-small); }
.sasha-view-glyph-choice { min-block-size: var(--sasha-control-height); padding: 0; border: 1px solid var(--sasha-hairline); border-radius: var(--sasha-radius-control); background: var(--sasha-card-glass); color: var(--sasha-text); cursor: pointer; }
.sasha-view-glyph-choice[aria-checked="true"] { outline: var(--sasha-control-focus-ring-width) solid var(--sasha-focus-ring); outline-offset: 1px; }
.sasha-view-gradient-preview { block-size: 18px; border-radius: var(--sasha-radius-pill); border: 1px solid var(--sasha-hairline); }
.sasha-view-gradient-stops { display: flex; flex-direction: column; gap: var(--sasha-space-small); }
.sasha-view-gradient-stop-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px auto; gap: var(--sasha-space-small); align-items: end; }
.sasha-view-explanation { margin: 0; font-size: var(--sasha-font-size-caption); color: var(--sasha-text-subtle); }
.sasha-view-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sasha-space-extra-small); }
/* A swatch shows a SLIDE colour, which may match the panel exactly (Dark 1 on the dark scheme), so its ring is the chrome's ink at a third. */
.sasha-view-swatch { inline-size: 100%; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--sasha-text) 35%, transparent); cursor: pointer; padding: 0; }
.sasha-view-swatch[aria-pressed="true"] { outline: 2px solid var(--sasha-focus-ring); outline-offset: 1px; }
.sasha-view-colour-button { display: inline-flex; align-items: center; gap: var(--sasha-space-small); min-height: var(--sasha-control-height); padding: 0 var(--sasha-space-small); border: 1px solid var(--sasha-hairline); border-radius: var(--sasha-radius-pill); background: var(--sasha-card-glass); color: var(--sasha-text); cursor: pointer; }
.sasha-view-colour-button > span:first-child { inline-size: 18px; block-size: 18px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--sasha-text) 35%, transparent); }
.sasha-view-popover-anchor { position: relative; }

.sasha-view-menu { position: fixed; min-inline-size: 220px; max-block-size: 70vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.sasha-view-menu .sasha-menu-item { border: 0; text-align: start; inline-size: 100%; }
.sasha-view-menu .sasha-menu-item:not(:hover):not([data-active="true"]) { background: transparent; color: var(--sasha-text); }
.sasha-view-menu-separator { block-size: 1px; margin: var(--sasha-space-extra-small) var(--sasha-space-small); background: var(--sasha-hairline); }
.sasha-view-menu-shortcut { margin-inline-start: auto; color: var(--sasha-text-subtle); font-size: var(--sasha-font-size-caption); }
.sasha-view-menu-hint { padding: 0 var(--sasha-space-medium) var(--sasha-space-extra-small); color: var(--sasha-text-subtle); font-size: var(--sasha-font-size-caption); }
.sasha-view-context-menu { position: fixed; }

.sasha-view-dialog-layer { position: fixed; inset: 0; z-index: var(--sasha-layer-dialog); display: grid; place-items: center; padding: var(--sasha-space-large); pointer-events: none; }
.sasha-view-dialog-layer > .sasha-dialog { pointer-events: auto; inline-size: min(520px, 100%); max-block-size: 90vh; display: flex; flex-direction: column; gap: var(--sasha-space-medium); overflow: hidden; }
.sasha-view-dialog-layer > .sasha-view-script-dialog { inline-size: min(1040px, 100%); }
.sasha-view-dialog-header { display: flex; align-items: center; gap: var(--sasha-space-small); }
.sasha-view-dialog-title { margin: 0; font-size: var(--sasha-font-size-heading); font-weight: var(--sasha-font-weight-bold); }
.sasha-view-dialog-body { display: flex; flex-direction: column; gap: var(--sasha-space-medium); overflow: auto; min-block-size: 0; }
.sasha-view-dialog-actions { display: flex; justify-content: flex-end; gap: var(--sasha-space-small); flex-wrap: wrap; }
.sasha-view-script-editor { inline-size: 100%; min-block-size: 320px; resize: vertical; padding: var(--sasha-space-medium); border: 1px solid var(--sasha-hairline); border-radius: var(--sasha-radius-control); background: var(--sasha-card-glass); color: var(--sasha-text); line-height: 1.5; tab-size: 2; white-space: pre; }
.sasha-view-script-reference { margin: 0; padding: var(--sasha-space-medium); border-radius: var(--sasha-radius-control); background: var(--sasha-secondary-button); white-space: pre-wrap; max-block-size: 360px; overflow: auto; }
.sasha-view-conflict { padding: var(--sasha-space-small) var(--sasha-space-medium); border-radius: var(--sasha-radius-control); background: var(--sasha-accent-soft); color: var(--sasha-warning); }
.sasha-view-shortcut-table { inline-size: 100%; border-collapse: collapse; }
.sasha-view-shortcut-table td { padding: var(--sasha-space-extra-small) var(--sasha-space-small); border-block-end: 1px solid var(--sasha-hairline); }
.sasha-view-shortcut-table kbd { font-family: var(--sasha-code-font-family); font-size: var(--sasha-font-size-small); padding: 1px var(--sasha-space-extra-small); border-radius: var(--sasha-space-extra-small); background: var(--sasha-secondary-button); }
.sasha-view-layout-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sasha-space-small); }

.sasha-view-comment-rail { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.sasha-view-thread { display: flex; flex-direction: column; gap: var(--sasha-space-small); cursor: pointer; }
.sasha-view-thread[data-focused="true"] { outline: var(--sasha-control-focus-ring-width) solid var(--sasha-focus-ring); outline-offset: 0; }
.sasha-view-thread[data-resolved="true"] { opacity: 0.8; }
.sasha-view-thread-header { display: flex; align-items: center; gap: var(--sasha-space-small); }
.sasha-view-thread-message { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sasha-view-thread-actions { display: flex; gap: var(--sasha-space-extra-small); flex-wrap: wrap; }
.sasha-view-composer { display: flex; flex-direction: column; gap: var(--sasha-space-small); }
.sasha-view-rail-section { margin: var(--sasha-space-small) 0 0; font-size: var(--sasha-font-size-small); font-weight: var(--sasha-font-weight-bold); color: var(--sasha-text-muted); }
.sasha-view-mention { padding: 0 2px; border-radius: var(--sasha-space-extra-small); background: var(--sasha-accent-soft); color: var(--sasha-accent); font-weight: var(--sasha-font-weight-semibold); }
.sasha-view-mention-picker { display: flex; flex-direction: column; gap: 1px; padding: var(--sasha-space-extra-small); border-radius: var(--sasha-radius-card); background: var(--sasha-glass-over-canvas); border: 1px solid var(--sasha-glass-edge); box-shadow: var(--sasha-lift-shadow); }
.sasha-view-mention-picker .sasha-menu-item { inline-size: 100%; border: 0; background: transparent; color: var(--sasha-text); text-align: start; }
.sasha-view-mention-picker .sasha-menu-item[aria-selected="true"] { background: var(--sasha-accent-soft); color: var(--sasha-accent); }
.sasha-view-agent-label { margin-inline-start: var(--sasha-space-extra-small); padding: 0 6px; border-radius: var(--sasha-radius-pill); background: var(--sasha-ink-button); color: var(--sasha-ink-button-text); font-size: var(--sasha-font-size-caption); font-weight: var(--sasha-font-weight-bold); }
.sasha-view-message-meta { display: flex; align-items: center; gap: var(--sasha-space-extra-small); }
.sasha-view-message-actions { margin-inline-start: auto; display: flex; gap: 2px; font-size: var(--sasha-font-size-caption); }
.sasha-view-text-area { inline-size: 100%; min-block-size: 72px; padding: var(--sasha-space-small); border: 1px solid var(--sasha-hairline); border-radius: var(--sasha-radius-control); background: var(--sasha-card-glass); color: var(--sasha-text); resize: vertical; }

.sasha-view-notices { position: absolute; inset-inline-end: var(--sasha-space-small); inset-block-end: var(--sasha-space-small); z-index: var(--sasha-layer-notice); display: flex; flex-direction: column-reverse; gap: var(--sasha-space-small); inline-size: min(300px, 100% - 2 * var(--sasha-space-small)); max-block-size: min(50%, 420px); overflow-y: auto; overscroll-behavior: contain; }
.sasha-view-notice-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sasha-space-small); }
/* The message keeps a readable width and the actions wrap below it; measured 2026-10-15, a nowrap
   row squeezed "Claude edited the deck: Added a hello slide" to one word per line beside its button. */
.sasha-view-notice-row > p { margin: 0; flex: 1 1 170px; min-inline-size: 0; }
.sasha-view-notice-row > button { white-space: nowrap; }

.sasha-view-floating-layer { position: fixed; inset: 0; z-index: var(--sasha-layer-popover); pointer-events: none; }
.sasha-view-floating-layer:empty { display: none; }
.sasha-view-floating-layer > * { pointer-events: auto; }
.sasha-view-presentation-host { position: fixed; inset: 0; z-index: var(--sasha-layer-presenter); display: none; }
.sasha-view-presentation-host[data-active="true"] { display: block; }
.sasha-view-preview-box { border-radius: var(--sasha-radius-control); overflow: hidden; box-shadow: var(--sasha-tab-on-shadow); }
.sasha-view-animation-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sasha-view-animation-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--sasha-space-small); align-items: start; padding: var(--sasha-space-extra-small) var(--sasha-space-small); border-radius: var(--sasha-radius-control); color: var(--sasha-text); cursor: grab; }
.sasha-view-animation-row:hover { background: var(--sasha-secondary-button); }
.sasha-view-animation-row[aria-selected="true"] { background: var(--sasha-accent-soft); }
.sasha-view-animation-row[aria-selected="true"] .sasha-view-animation-number { background: var(--sasha-ink-button); color: var(--sasha-ink-button-text); }
.sasha-view-animation-row:focus-visible { outline: var(--sasha-control-focus-ring-width) solid var(--sasha-focus-ring); outline-offset: 0; }
.sasha-view-animation-row[data-status="elementRemoved"] .sasha-view-animation-detail, .sasha-view-animation-row[data-status="newerVersion"] .sasha-view-animation-detail { opacity: var(--sasha-disabled-opacity); }
.sasha-view-animation-row[data-dragging="true"] { opacity: var(--sasha-disabled-opacity); cursor: grabbing; }
.sasha-view-animation-number { inline-size: 22px; block-size: 22px; border-radius: var(--sasha-radius-pill); display: inline-grid; place-items: center; background: var(--sasha-glass-over-canvas); box-shadow: 0 0 0 1px var(--sasha-glass-edge); font-size: var(--sasha-font-size-caption); font-weight: var(--sasha-font-weight-bold); }
.sasha-view-animation-detail { display: flex; flex-direction: column; min-width: 0; font-size: var(--sasha-font-size-small); }
.sasha-view-animation-detail > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sasha-view-animation-detail > span { color: var(--sasha-text-muted); }
.sasha-view-animation-badge { position: absolute; min-inline-size: 22px; block-size: 22px; padding: 0 6px; transform: translate(-40%, -40%); display: inline-grid; place-items: center; border-radius: var(--sasha-radius-pill); border: 1px solid var(--sasha-glass-edge); background: var(--sasha-glass-over-canvas); color: var(--sasha-accent); font-size: var(--sasha-font-size-caption); font-weight: var(--sasha-font-weight-bold); white-space: nowrap; box-shadow: var(--sasha-lift-shadow); pointer-events: none; }
.sasha-view-build-preview-layer { position: absolute; inset: 0; z-index: var(--sasha-layer-canvas-overlay); overflow: hidden; }

.sasha-view-side-by-side { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sasha-space-small); block-size: 100vh; padding: var(--sasha-space-small); box-sizing: border-box; }
.sasha-view-demo-pane { position: relative; min-inline-size: 0; min-block-size: 0; display: flex; flex-direction: column; }
.sasha-view-demo-pane > .sasha-view-editor { flex: 1; padding: 0; }
.sasha-view-demo-label { font-family: var(--sasha-font-family); margin: 0 0 var(--sasha-space-extra-small); font-size: var(--sasha-font-size-small); color: var(--sasha-text-muted); }
.sasha-view-visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .sasha-view-menu, .sasha-view-context-menu { animation: sasha-view-pop var(--sasha-chrome-transition-duration) ease-out; }
  .sasha-view-thumbnail-frame { transition: outline-color var(--sasha-chrome-transition-duration) ease; }
  .sasha-view-peer-cursor { transition: left 80ms linear, top 80ms linear; }
}
@keyframes sasha-view-pop { 0% { opacity: 0; transform: translateY(-4px); } 100% { opacity: 1; transform: none; } }


.sasha-presentation { position: fixed; inset: 0; z-index: var(--sasha-layer-presenter); overflow: hidden; user-select: none; }
.sasha-presentation[data-controls-visible="false"] { cursor: none; }
.sasha-presentation-viewport { position: absolute; inset: 0; overflow: hidden; }
.sasha-placed-slide { position: absolute; overflow: hidden; }
.sasha-placed-slide .sasha-slide-root { pointer-events: none; }
.sasha-transition-stage { position: absolute; left: 0; top: 0; overflow: hidden; transform-origin: 0 0; }
.sasha-transition-layer { position: absolute; left: 0; top: 0; }
.sasha-runner-layer { position: absolute; pointer-events: none; }
.sasha-runner-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; color-scheme: normal; }
.sasha-runner-frame[data-shown="true"] { opacity: 1; }
.sasha-blank-screen { position: absolute; inset: 0; }

.sasha-end-screen { position: absolute; inset: 0; isolation: isolate; display: grid; place-items: center; background: var(--sasha-ground); }
.sasha-end-card { display: grid; gap: var(--sasha-space-small); justify-items: center; text-align: center; max-width: min(520px, calc(100% - 2 * var(--sasha-space-extra-large))); }
.sasha-end-card h1 { margin: 0; font-size: var(--sasha-font-size-heading); font-weight: var(--sasha-font-weight-bold); color: var(--sasha-text); }
.sasha-end-card p { margin: 0; }

.sasha-presenter-controls {
  position: absolute; left: 50%; bottom: var(--sasha-space-extra-large); transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--sasha-space-extra-small);
  padding: var(--sasha-space-extra-small); border-radius: var(--sasha-radius-pill);
  background: var(--sasha-glass-over-canvas); z-index: var(--sasha-layer-chrome);
}
.sasha-presenter-controls[data-visible="false"] { opacity: 0; pointer-events: none; }
.sasha-presenter-controls .sasha-pill-secondary, .sasha-presenter-controls .sasha-pill-primary { min-height: calc(var(--sasha-control-height) - 2px); padding: 0 var(--sasha-space-medium); }
.sasha-slide-counter { min-width: 5.5em; text-align: center; font-variant-numeric: tabular-nums; color: var(--sasha-text-muted); font-weight: var(--sasha-font-weight-semibold); }
.sasha-build-counter { padding-right: var(--sasha-space-small); font-variant-numeric: tabular-nums; font-size: var(--sasha-font-size-small); white-space: nowrap; }

.sasha-speaker-view { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; gap: var(--sasha-space-medium); padding: var(--sasha-space-medium); box-sizing: border-box; }
.sasha-speaker-view .sasha-panel { padding: var(--sasha-space-medium); min-height: 0; }
.sasha-speaker-header { display: flex; align-items: center; justify-content: space-between; gap: var(--sasha-space-medium); padding: var(--sasha-space-small) var(--sasha-space-large); }
.sasha-speaker-header strong { font-size: var(--sasha-font-size-title); }
.sasha-speaker-timers { display: flex; gap: var(--sasha-space-large); align-items: baseline; }
.sasha-speaker-timer { font-variant-numeric: tabular-nums; font-size: var(--sasha-font-size-title); font-weight: var(--sasha-font-weight-bold); }
.sasha-speaker-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--sasha-space-medium); min-height: 0; }
.sasha-speaker-current, .sasha-speaker-side > * { display: grid; grid-template-rows: auto 1fr; gap: var(--sasha-space-small); min-height: 0; }
.sasha-speaker-side { display: grid; grid-template-rows: minmax(0, 2fr) minmax(0, 3fr); gap: var(--sasha-space-medium); min-height: 0; }
.sasha-speaker-heading { margin: 0; font-size: var(--sasha-font-size-small); font-weight: var(--sasha-font-weight-semibold); color: var(--sasha-text-subtle); text-transform: uppercase; letter-spacing: 0.06em; }
.sasha-speaker-slide-box { position: relative; min-height: 0; border-radius: var(--sasha-radius-control); overflow: hidden; }
.sasha-speaker-notes { overflow: auto; white-space: pre-wrap; font-size: var(--sasha-font-size-title); line-height: var(--sasha-line-height); color: var(--sasha-text); }
.sasha-speaker-view .sasha-presenter-controls { position: static; transform: none; justify-self: center; }
@media (max-width: 760px) { .sasha-speaker-grid { grid-template-columns: minmax(0, 1fr); } }

.sasha-transition-preview { position: relative; overflow: hidden; border-radius: var(--sasha-radius-control); box-shadow: var(--sasha-lift-shadow); }

@media (prefers-reduced-motion: no-preference) {
  .sasha-presenter-controls { transition: opacity var(--sasha-chrome-transition-duration) ease; }
}


.sasha-web-list-page { min-block-size: 100vh; display: flex; flex-direction: column; }
.sasha-web-header { position: sticky; inset-block-start: 0; z-index: var(--sasha-layer-chrome); display: flex; align-items: center; justify-content: space-between; gap: var(--sasha-space-medium); margin: var(--sasha-space-medium); padding: var(--sasha-space-small) var(--sasha-space-large); }
.sasha-engine .sasha-web-brand { display: inline-flex; align-items: center; gap: var(--sasha-space-small); font-weight: var(--sasha-font-weight-bold); font-size: var(--sasha-font-size-title); color: var(--sasha-text); text-decoration: none; }
.sasha-web-logo { display: inline-flex; inline-size: 32px; block-size: 32px; }
.sasha-web-logo svg { inline-size: 100%; block-size: 100%; }
.sasha-web-account { display: inline-flex; align-items: center; gap: var(--sasha-space-medium); font-size: var(--sasha-font-size-small); }
.sasha-web-main { flex: 1; inline-size: min(1120px, 100% - 2 * var(--sasha-space-large)); margin-inline: auto; padding-block: var(--sasha-space-large) var(--sasha-space-extra-large); }
.sasha-web-page-title { margin: 0; font-size: var(--sasha-font-size-heading); font-weight: var(--sasha-font-weight-bold); }
.sasha-web-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sasha-space-medium); margin-block-end: var(--sasha-space-large); }
.sasha-web-actions > div { display: flex; flex-wrap: wrap; gap: var(--sasha-space-small); }
.sasha-web-deck-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sasha-space-large); }
.sasha-web-deck-card { display: flex; flex-direction: column; gap: var(--sasha-space-small); min-block-size: 150px; cursor: pointer; }
.sasha-web-deck-title { margin: 0; font-size: var(--sasha-font-size-title); font-weight: var(--sasha-font-weight-bold); overflow-wrap: anywhere; }
.sasha-web-deck-facts { margin: 0; display: grid; gap: var(--sasha-space-extra-small); }
.sasha-web-card-actions { margin-block-start: auto; display: flex; gap: var(--sasha-space-small); }
.sasha-web-empty-card { display: grid; gap: var(--sasha-space-medium); justify-items: start; max-inline-size: 520px; }
.sasha-web-dialog-layer { position: fixed; inset: 0; z-index: var(--sasha-layer-dialog); display: grid; place-items: center; padding: var(--sasha-space-medium); }
.sasha-web-dialog-layer > .sasha-dialog { position: relative; inline-size: min(560px, 100%); max-block-size: calc(100vh - 2 * var(--sasha-space-large)); overflow: auto; display: grid; gap: var(--sasha-space-medium); }
.sasha-web-dialog-title { margin: 0; font-size: var(--sasha-font-size-title); font-weight: var(--sasha-font-weight-bold); }
.sasha-web-form { display: grid; gap: var(--sasha-space-small); }
.sasha-web-form-row { display: flex; flex-wrap: wrap; gap: var(--sasha-space-small); align-items: center; }
.sasha-web-form-row > .sasha-field { flex: 1 1 200px; }
.sasha-web-people { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sasha-space-extra-small); }
.sasha-web-person { display: flex; align-items: center; justify-content: space-between; gap: var(--sasha-space-small); min-block-size: var(--sasha-control-height); padding: 0 var(--sasha-space-small); border-radius: var(--sasha-radius-control); background: var(--sasha-card-glass); }
.sasha-web-person-name { display: grid; }
.sasha-web-person-controls { flex: none; display: inline-flex; align-items: center; gap: var(--sasha-space-small); }
fieldset.sasha-web-form { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.sasha-web-section-title { margin: 0; font-size: var(--sasha-font-size-small); font-weight: var(--sasha-font-weight-semibold); color: var(--sasha-text-muted); }
.sasha-web-problem { margin: 0; color: var(--sasha-danger); }
.sasha-web-deck-page { position: relative; block-size: 100vh; overflow: hidden; }
.sasha-web-opening { position: relative; block-size: 100vh; display: grid; place-items: center; }
.sasha-web-opening-card { position: relative; z-index: var(--sasha-layer-chrome); display: grid; gap: var(--sasha-space-small); justify-items: center; min-inline-size: 260px; text-align: center; }
.sasha-web-toast-layer { position: fixed; inset-inline: 0; inset-block-end: var(--sasha-space-large); z-index: var(--sasha-layer-notice); display: grid; justify-items: center; gap: var(--sasha-space-small); pointer-events: none; }
.sasha-web-toast-layer > * { pointer-events: auto; max-inline-size: min(560px, 100% - 2 * var(--sasha-space-medium)); display: flex; gap: var(--sasha-space-medium); align-items: center; }
.sasha-web-top-bar-accessory { display: inline-flex; align-items: center; gap: var(--sasha-space-small); }
