/* Demo stage — scoped companion port. Do not apply marketing type styles here. */
.demo-root {
  --caramel: #c47a3a;
  --caramel-deep: #a35f28;
  --mint: #73b894;
  --stage: #1a3a5c;
  --ink-soft: #3d3832;
  --scene-scale: 0.55;
  --panel-bg: rgba(38, 38, 40, 0.78);
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-label: rgba(255, 255, 255, 0.92);
  --panel-secondary: rgba(235, 235, 245, 0.6);
  --panel-tertiary: rgba(235, 235, 245, 0.3);
  --panel-fill: rgba(255, 255, 255, 0.08);
  --panel-fill-strong: rgba(255, 255, 255, 0.14);
  --panel-well: rgba(0, 0, 0, 0.28);
  --panel-caramel: #d98f61;
  --panel-control-bg: rgba(255, 255, 255, 0.1);
  --panel-control-border: rgba(255, 255, 255, 0.14);
  --pet: calc(112px * var(--scene-scale));
  --hover-scale: 1.03;
  --status-h: calc(22px * var(--scene-scale));
  --music-h: calc(52px * var(--scene-scale));
  --pad: calc(8px * var(--scene-scale));
  --ring-logical: 460px;
  --font-display: "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui: "SF Pro Text", "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: var(--font-ui);
  box-sizing: border-box;
}
.demo-root *,
.demo-root *::before,
.demo-root *::after {
  box-sizing: border-box;
}

/* —— Desktop stage (product demo surface) —— */
/* Outer width/frame owned by marketing .demo-frame; keep internals intact. */
.stage-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
}

.stage__caption {
  /* Caption moved outside .stage-wrap in marketing chrome; hide legacy if present */
  display: none;
}

.stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--stage);
  aspect-ratio: 16 / 10;
  min-height: 420px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 18px 40px rgba(23, 58, 88, 0.14);
}

.stage__menubar {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(40, 80, 120, 0.72), rgba(20, 48, 78, 0.78));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(180, 220, 255, 0.18);
  color: rgba(240, 248, 255, 0.92);
  font-size: 12px;
  position: relative;
  z-index: 5;
}

.stage__apple {
  font-size: 13px;
}
.stage__app {
  font-weight: 700;
}
.stage__item {
  opacity: 0.75;
}
.stage__spacer {
  flex: 1;
}
.stage__sims {
  display: flex;
  gap: 4px;
}
.stage__clock {
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
}

.sim {
  border: 1px solid rgba(180, 220, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font: inherit;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.sim[aria-pressed="true"] {
  background: color-mix(in srgb, var(--caramel) 75%, #000);
  border-color: transparent;
}

.desktop {
  position: absolute;
  inset: 28px 0 0;
  overflow: hidden;
}

.wallpaper {
  position: absolute;
  inset: 0;
  /* Deep Aero sky — dark enough for the light glass radial ring */
  background:
    radial-gradient(ellipse 48% 36% at 22% 18%, rgba(180, 230, 255, 0.28), transparent 65%),
    radial-gradient(ellipse 42% 32% at 78% 24%, rgba(120, 200, 230, 0.2), transparent 60%),
    radial-gradient(ellipse 55% 40% at 70% 88%, rgba(80, 160, 120, 0.18), transparent 55%),
    linear-gradient(165deg, #2a5f8f 0%, #1c456e 42%, #143552 72%, #0f2a42 100%);
}

.desktop__hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(8, 24, 42, 0.55);
  border: 1px solid rgba(180, 220, 255, 0.2);
  color: rgba(240, 248, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.desktop__hint.is-gone {
  opacity: 0;
}

.stage__caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* —— Companion (DesignConstants 1×) —— */
.companion {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.companion:active {
  cursor: grabbing;
}
/* Hover scale only on pet body — never when over music / panels */
.pet-wrap.is-hovered .panda-gif {
  transform: scale(var(--hover-scale));
}
.companion[data-presentation="radialMenu"] .panda-gif,
.companion[data-presentation="pressed"] .panda-gif,
.companion[data-presentation="dragging"] .panda-gif {
  transform: none;
}

.companion__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--pad);
  overflow: visible;
}

.status-rail {
  height: var(--status-h);
  margin-bottom: calc(4px * var(--scene-scale));
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-rail__text {
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(0, 0, 0, 0.88);
  padding: 2px 6px;
  border-radius: 5px;
  max-width: calc(112px * 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: scale(var(--scene-scale));
  transform-origin: center center;
}
.status-rail__text[hidden] {
  display: none !important;
}

.pet-wrap {
  position: relative;
  width: var(--pet);
  height: var(--pet);
  overflow: visible;
}

.panda-gif {
  width: var(--pet);
  height: var(--pet);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  transition: transform 0.1s ease-out;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.music-rail {
  position: relative;
  height: var(--music-h);
  margin-top: calc(4px * var(--scene-scale));
  width: var(--pet);
  flex-shrink: 0;
  /* Slot always reserved; pill overlays so expand never reflows the pet */
}

.music-pill {
  display: none;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) scale(var(--scene-scale));
  transform-origin: top center;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 999px;
  color: #fff;
  overflow: hidden;
  z-index: 6;
  pointer-events: auto;
}
.music-rail.is-visible .music-pill {
  display: block;
}
.music-pill__compact {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
}
.music-rail.is-expanded .music-pill__compact {
  display: none;
}
.music-pill__expanded {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 6px 10px;
  min-width: 148px;
}
.music-rail.is-expanded .music-pill__expanded {
  display: flex;
}
.music-rail.is-expanded .music-pill {
  border-radius: 12px;
}
.music-pill__cover {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}
.music-pill__wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.music-pill__wave i {
  width: 3px;
  height: 40%;
  background: #fff;
  border-radius: 1px;
  opacity: 0.88;
  animation: wave 0.8s ease-in-out infinite;
}
.music-pill.is-playing .music-pill__wave i:nth-child(2) {
  animation-delay: 0.1s;
  height: 70%;
}
.music-pill.is-playing .music-pill__wave i:nth-child(3) {
  animation-delay: 0.2s;
  height: 100%;
}
.music-pill.is-playing .music-pill__wave i:nth-child(4) {
  animation-delay: 0.15s;
  height: 55%;
}
@keyframes wave {
  50% {
    transform: scaleY(0.45);
  }
}
.music-pill__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  font-size: 10px;
  line-height: 1.2;
}
.music-pill__meta span:last-child {
  opacity: 0.65;
}
.music-pill__transport {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.music-pill__transport button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  width: 24px;
  height: 24px;
  font-size: 10px;
}

/* Radial — logical 460 panel, scene-scaled, centered on pet */
.radial-host {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--ring-logical) * var(--scene-scale));
  height: calc(var(--ring-logical) * var(--scene-scale));
  transform: translate(-50%, -50%);
  z-index: 20;
  pointer-events: none;
}

.radial-panel {
  width: var(--ring-logical);
  height: var(--ring-logical);
  position: relative;
  opacity: 0;
  transform-origin: 0 0;
  transform: scale(calc(var(--scene-scale) * 0.92));
  transition:
    opacity 0.12s ease-out,
    transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.radial-host.is-open .radial-panel {
  opacity: 1;
  transform: scale(var(--scene-scale));
}

.radial-wedges {
  display: none;
}

.radial-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  overflow: visible;
}

.wedge-fill {
  fill: rgba(255, 255, 255, 0.18);
  stroke: none;
  pointer-events: auto;
  cursor: pointer;
  transition: fill 0.11s ease-out;
}

.wedge-fill.is-hover {
  fill: rgba(255, 255, 255, 0.3);
}

.wedge-fill.is-pressed {
  fill: rgba(255, 255, 255, 0.38);
}

.wedge-fill.dial-track {
  fill: rgba(255, 255, 255, 0.2);
  cursor: grab;
}
.wedge-fill.dial-track:active {
  cursor: grabbing;
}

.wedge-stroke {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
  pointer-events: none;
}

.wedge-stroke.is-active {
  stroke: color-mix(in srgb, var(--caramel) 90%, transparent);
  stroke-width: 2;
}

.ring-hole {
  fill: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.radial-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wedge-label {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  pointer-events: none;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 72px;
}

.wedge-label__glyph {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.95);
}

.wedge-label__glyph svg {
  display: block;
}

.wedge-label__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 72px;
}

.wedge-label__appicon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--tint, rgba(255, 255, 255, 0.18));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.wedge-label__appicon svg {
  display: block;
}

.wedge-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 14px);
  gap: 2px;
  width: 30px;
  height: 30px;
  place-content: center;
}
.wedge-mosaic__tile {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--tint, rgba(255, 255, 255, 0.2));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.wedge-mosaic__tile svg {
  display: block;
}

/* Demo skeleton macOS windows launched from Apps ring */
.fake-apps {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.fake-app {
  pointer-events: auto;
  position: absolute;
  width: min(320px, 46%);
  height: min(220px, 52%);
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(42, 44, 48, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.88);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  transform-origin: top left;
  transition:
    transform 0.18s ease,
    opacity 0.16s ease,
    box-shadow 0.15s ease;
}
.fake-app.is-enter,
.fake-app.is-leave {
  opacity: 0;
  transform: scale(0.92);
}
.fake-app.is-pop {
  transform: scale(1.02);
}
.fake-app.is-front {
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.fake-app__titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.fake-app__traffic {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.fake-app__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  display: block;
}
.fake-app__dot--close {
  background: #ff5f57;
  cursor: pointer;
}
.fake-app__dot--min {
  background: #febc2e;
}
.fake-app__dot--zoom {
  background: #28c840;
}
.fake-app__title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.fake-app__badge {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--app-tint, #888);
  color: #fff;
  display: grid;
  place-items: center;
}
.fake-app__badge svg {
  display: block;
}
.fake-app__demo {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 4px;
}
.fake-app__body {
  flex: 1;
  min-height: 0;
  display: flex;
  padding: 10px;
  gap: 10px;
}
.fake-app__sidebar {
  width: 56px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}
.fake-app__sidebar i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}
.fake-app__sidebar i:first-child {
  height: 18px;
  width: 18px;
  border-radius: 5px;
  background: var(--app-tint, #888);
  opacity: 0.85;
}
.fake-app__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.fake-app__hero-line {
  height: 14px;
  width: 55%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 4px;
}
.fake-app__line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}
.fake-app__line--short {
  width: 42%;
}
.fake-app__line--med {
  width: 68%;
}
.fake-app__cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.fake-app__col {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fake-app__col b {
  display: block;
  height: 8px;
  width: 50%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 2px;
}
.fake-app__col i {
  display: block;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Feature panels — FeaturePanelView + .regularMaterial (dark) 1:1 with Mac app */
.feature-sheet[hidden] {
  display: none !important;
}
.feature-sheet {
  position: absolute;
  /* Prefer left of companion (AnchoredPanelPlacement) */
  right: calc(100% + calc(14px * var(--scene-scale)));
  top: 50%;
  transform: translateY(-50%) scale(var(--scene-scale));
  transform-origin: right center;
  width: 380px;
  height: 310px;
  display: flex;
  flex-direction: column;
  color-scheme: dark;
  background: var(--panel-bg);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.28);
  z-index: 30;
  overflow: hidden;
  color: var(--panel-label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.feature-sheet.is-notes,
.feature-sheet.is-clipboard {
  width: 380px;
  height: 310px;
}
.feature-sheet.is-tasks {
  width: 380px;
  height: 340px;
}
.feature-sheet.is-music {
  width: 390px;
  height: 235px;
}
.feature-sheet.is-quickQR {
  width: 390px;
  height: 480px;
}

/* FeaturePanelHeader — padding 16/16/8, icon caramel, title 14 rounded semibold */
.fp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 8px;
  flex-shrink: 0;
}
.fp-header__icon {
  color: var(--panel-caramel);
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.fp-header__icon svg {
  display: block;
  overflow: visible;
}
.fp-header__titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fp-header__title {
  font-size: 14px;
  font-weight: 600;
  font-family: "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--panel-label);
}
.fp-header__sub {
  font-size: 11px;
  font-weight: 500;
  font-family: "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--panel-secondary);
}
.fp-header__dash,
.fp-header__close {
  border: 0;
  background: transparent;
  color: var(--panel-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}
.fp-header__dash {
  width: 22px;
  height: 22px;
}
.fp-header__dash:hover,
.fp-header__close:hover {
  color: var(--panel-label);
}
.fp-header__close {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.fp-divider {
  height: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.fp-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.fp-caption {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--panel-secondary);
}
.fp-field {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--panel-control-border);
  background: var(--panel-well);
  color: var(--panel-label);
  font: inherit;
  font-size: 13px;
  padding: 5px 8px;
  outline: none;
}
.fp-field::placeholder {
  color: var(--panel-tertiary);
}
.fp-field:focus {
  border-color: color-mix(in srgb, var(--panel-caramel) 70%, #888);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--panel-caramel) 28%, transparent);
}
/* Small bordered controls — Swift .controlSize(.small) on dark */
.fp-control {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: var(--panel-label);
  font: 500 12px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  padding: 3px 9px;
  min-height: 22px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.fp-control:hover {
  background: rgba(255, 255, 255, 0.14);
}
.fp-control:disabled {
  opacity: 0.35;
  cursor: default;
}
.fp-control--quiet {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--panel-secondary);
}
.fp-control--mini {
  font-size: 11px;
  padding: 2px 6px;
  min-height: 18px;
}
.fp-btn-primary {
  border: 0;
  background: var(--panel-caramel);
  color: #1a120c;
  font: 600 12px -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.fp-icon-btn {
  border: 0;
  background: transparent;
  color: var(--panel-secondary);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
}
.fp-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--panel-label);
}
.fp-empty {
  list-style: none;
  text-align: center;
  color: var(--panel-secondary);
  font-size: 13px;
  padding: 28px 8px;
}
.fp-empty--sm {
  font-size: 11px;
  padding: 8px;
}

/* Notes — NotesPanelView exact structure */
.fp-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
  flex: 1;
}
.fp-notes__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.fp-notes__actions {
  margin-left: auto;
  display: flex;
  gap: 0;
  align-items: center;
}
.fp-notes__editor-wrap {
  flex: 1;
  min-height: 0;
  padding: 4px;
  border-radius: 10px;
  background: var(--panel-well);
  display: flex;
}
.fp-notes__editor {
  flex: 1;
  min-height: 0;
  width: 100%;
  resize: none;
  border: 0;
  background: transparent;
  color: var(--panel-label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: -0.01em;
  padding: 4px;
  outline: none;
  -webkit-font-smoothing: antialiased;
}
.fp-notes__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.fp-notes__count {
  margin-left: auto;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--panel-secondary);
}

/* Music */
.fp-music {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fp-music__row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.fp-music__art {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #29242e;
  display: grid;
  place-items: center;
  color: #ebe0cc;
  flex-shrink: 0;
}
.fp-music__meta {
  min-width: 0;
  flex: 1;
}
.fp-music__title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-music__artist {
  font-size: 13px;
  color: var(--panel-secondary);
  margin-top: 4px;
}
.fp-music__transport {
  display: flex;
  align-items: center;
  gap: 28px;
}
.fp-music__transport button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
}
.fp-music__progress {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.fp-music__progress i {
  display: block;
  height: 100%;
  background: var(--panel-caramel);
  border-radius: 2px;
}

/* Tasks — TasksPanelView */
.fp-tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}
.fp-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.fp-seg__btn {
  border: 0;
  background: transparent;
  color: var(--panel-secondary);
  font: 500 12px -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.fp-seg__btn.is-on {
  background: rgba(255, 255, 255, 0.16);
  color: var(--panel-label);
  box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.35);
}
.fp-tasks__add {
  display: flex;
  gap: 8px;
  align-items: center;
}
.fp-tasks__add--reminder .fp-field--time {
  width: 88px;
  flex: 0 0 88px;
}
.fp-tasks__at {
  font-size: 15px;
  font-weight: 600;
  color: var(--panel-secondary);
}
.fp-task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.fp-task-list--done {
  flex: none;
  max-height: 88px;
}
.fp-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.fp-task__check {
  border: 0;
  background: transparent;
  color: var(--panel-caramel);
  cursor: pointer;
  padding: 0;
  display: grid;
  flex-shrink: 0;
}
.fp-task__check.is-mint,
.fp-task .is-mint {
  color: var(--mint);
}
.fp-task__title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-task.is-done .fp-task__title {
  text-decoration: line-through;
  opacity: 0.5;
}
.fp-task__time {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--panel-secondary);
  min-width: 64px;
  text-align: right;
}
.fp-task__more {
  border: 0;
  background: transparent;
  color: var(--panel-tertiary);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.fp-disclosure {
  font-size: 13px;
  font-weight: 600;
  color: var(--panel-label);
}
.fp-disclosure summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fp-disclosure summary::-webkit-details-marker {
  display: none;
}
.fp-disclosure summary::before {
  content: "›";
  display: inline-block;
  transition: transform 0.12s ease;
  color: var(--panel-secondary);
}
.fp-disclosure[open] summary::before {
  transform: rotate(90deg);
}
.fp-disclosure .fp-task-list {
  margin-top: 6px;
}
.fp-tasks__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

/* Clipboard */
.fp-clip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}
.fp-clip__h {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.fp-clip__p {
  margin: 0;
  font-size: 13px;
  color: var(--panel-secondary);
  line-height: 1.4;
}
.fp-clip__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--panel-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fp-clip__bullets li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fp-clip__optin {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fp-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.fp-chip {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--panel-label);
  font: 500 11px -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.fp-chip.is-on {
  background: color-mix(in srgb, var(--panel-caramel) 70%, #000);
  color: #fff;
}
.fp-clip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow: auto;
}
.fp-clip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  margin: 0 -6px;
  border-radius: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.fp-clip-row:hover,
.fp-clip-row:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.fp-clip-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-caramel) 22%, transparent);
  color: var(--panel-caramel);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.fp-clip-row__text {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-clip__foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* Quick QR */
.fp-qr {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.fp-qr__well {
  width: 220px;
  height: 220px;
  margin: 4px auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}
.fp-qr__code {
  width: 200px;
  height: 200px;
  border-radius: 4px;
  background: repeating-conic-gradient(#fff 0% 25%, #111 0% 50%) 0 0 / 10px 10px;
}
.fp-qr__adv {
  font-size: 12px;
  opacity: 0.75;
}
.fp-qr__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Focus dial chrome */
.dial-fill {
  fill: rgba(196, 122, 58, 0.7);
  pointer-events: none;
}
.dial-fill.is-idle {
  fill: rgba(196, 122, 58, 0.55);
}
.dial-tick {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.dial-thumb {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--caramel);
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.dial-thumb:active {
  cursor: grabbing;
}
.dial-readout {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-display);
}
.dial-readout__title {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}
.dial-readout__value {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--caramel);
  letter-spacing: -0.02em;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 24, 0.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.1);
}


@media (prefers-reduced-motion: reduce) {
  .demo-root .music-pill__wave i {
    animation: none;
  }
  .demo-root .pet-wrap.is-hovered .panda-gif {
    transform: none;
  }
  .demo-root .radial-panel {
    transition: none;
  }
  .demo-root .stage-wrap {
    animation: none;
  }
}

@media (max-width: 720px) {
  .demo-root .stage {
    aspect-ratio: 3 / 4;
    min-height: 480px;
  }
  .demo-root .stage__item {
    display: none;
  }
}
