/* ===========================================================================
   Denote blog-post demos — additions on top of ../denote/demo.css
   The camera, plus the components the post scenes add: the Vision view,
   the Entity panel, the full-screen task-flow canvas, the Intelligence
   browser hosted in the shell, and the two-window desktop scene.
   =========================================================================== */

/* ---- camera ---- */
.pdemo-cam {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  transition: transform 1.35s cubic-bezier(0.55, 0.06, 0.13, 1);
  will-change: transform;
}
.pdemo-cam.cam-slow {
  transition: transform 10s cubic-bezier(0.3, 0, 0.7, 1);
}

/* ===========================================================================
   Vision view
   =========================================================================== */
.ps-vrow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
}
.ps-vrow + .ps-vrow {
  border-top: 1px solid hsl(var(--ad-separator));
}
.ps-vrow-t {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: hsl(var(--ad-gray-2));
  line-height: 1.35;
}
.ps-vrow.is-proposed {
  background: hsl(var(--ad-blue) / 0.06);
}
.ps-vrow.is-proposed .ps-vrow-t {
  color: hsl(var(--ad-gray-1));
}
.ps-vprop {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
}
.ps-vtag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: hsl(var(--ad-blue));
  border: 1px solid hsl(var(--ad-blue) / 0.45);
  border-radius: 999px;
  padding: 2px 7px;
}
.ps-vbtn {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid hsl(var(--ad-border));
  color: hsl(var(--ad-muted-fg));
  background: hsl(var(--ad-card));
}
.ps-vbtn svg {
  width: 11px;
  height: 11px;
}
.ps-vbtn--ok {
  color: hsl(var(--ad-success));
}
.ps-vempty {
  padding: 13px 14px;
  font-size: 11.5px;
  color: hsl(var(--ad-gray-5));
}

/* ===========================================================================
   Panel guided scroll + Entity panel
   =========================================================================== */
.ps-pbscroll {
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.ps-pbscroll > * {
  flex: none;
}
.ps-attr {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
}
.ps-attr + .ps-attr {
  border-top: 1px solid hsl(var(--ad-separator));
}
.ps-attr-n {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: hsl(var(--ad-gray-2));
}
.ps-attr-t {
  flex: none;
  font-size: 10px;
  font-weight: 500;
  color: hsl(var(--ad-gray-4));
  background: hsl(var(--ad-strong));
  border-radius: 999px;
  padding: 2px 8px;
}
.ps-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.ps-st {
  font-size: 10.5px;
  font-weight: 500;
  color: hsl(var(--ad-gray-2));
  background: hsl(var(--ad-strong));
  border-radius: 999px;
  padding: 3px 9px;
}
.ps-st-arrow {
  font-size: 10px;
  color: hsl(var(--ad-gray-5));
}
.ps-cue {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 14px;
  font-size: 11.5px;
  line-height: 1.35;
}
.ps-cue + .ps-cue {
  border-top: 1px solid hsl(var(--ad-separator));
}
.ps-cue-sig {
  flex: none;
  font-weight: 600;
  color: hsl(var(--ad-gray-1));
}
.ps-cue-arr {
  flex: none;
  color: hsl(var(--ad-gray-5));
}
.ps-cue-t {
  color: hsl(var(--ad-gray-2));
}

/* ===========================================================================
   Task-flow canvas (full-screen view)
   =========================================================================== */
.ps-flowview {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 0 0;
}
.ps-flowview-head {
  flex: none;
  padding: 0 28px;
}
.fn-canvas {
  position: relative;
  flex: 1;
  margin: 18px 28px 24px;
  border: 1px solid hsl(var(--ad-border));
  border-radius: 14px;
  background: hsl(var(--ad-wire));
  overflow: hidden;
}
.fn-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fn-edge {
  fill: none;
  stroke: hsl(var(--ad-muted-fg) / 0.55);
  stroke-width: 1.3;
}
.fn-edge--branch {
  stroke-dasharray: 4 3;
}
.fn-ah path {
  fill: hsl(var(--ad-muted-fg) / 0.7);
}
.fn-elabel text {
  font-size: 9.5px;
  fill: hsl(var(--ad-gray-4));
}
.fn {
  position: absolute;
  width: 150px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 12px;
  background: hsl(var(--ad-card));
  border: 1px solid hsl(var(--ad-border));
  border-radius: 10px;
}
.fn-num {
  width: 19px;
  height: 19px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: hsl(var(--ad-strong));
  font-size: 10.5px;
  font-weight: 600;
  color: hsl(var(--ad-gray-2));
}
.fn-t {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: hsl(var(--ad-gray-1));
}
.fn-touch {
  font-size: 10px;
  color: hsl(var(--ad-gray-5));
}

/* ===========================================================================
   Chips populate one by one (Screens scene)
   =========================================================================== */
.ps-compose .cchip {
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ps-compose.is-building .cchip {
  opacity: 0;
  transform: scale(0.7);
}
.ps-compose.is-building .cchip.is-pop {
  opacity: 1;
  transform: none;
}

/* ===========================================================================
   Intelligence browser hosted inside the shell
   =========================================================================== */
.ps-intel {
  position: absolute;
  inset: 0;
  padding: 16px 20px 20px;
  box-sizing: border-box;
}
.ps-intel .kv {
  position: relative;
  inset: auto;
  height: 100%;
  box-sizing: border-box;
}

/* ===========================================================================
   Desktop scene — menu bar, wallpaper, two windows
   =========================================================================== */
.dt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-sans);
}
.dt-menubar {
  flex: none;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 0 16px;
  font-size: 11px;
  color: hsl(var(--ad-gray-2));
  background: hsl(0 0% 100% / 0.65);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid hsl(var(--ad-border) / 0.5);
}
.dark .dt-menubar {
  background: hsl(224 10% 14% / 0.75);
}
.dt-mb-app {
  font-weight: 700;
  color: hsl(var(--ad-gray-1));
}
.dt-mb-right {
  margin-left: auto;
  color: hsl(var(--ad-gray-4));
}
.dt-desk {
  position: relative;
  flex: 1;
  background:
    radial-gradient(120% 90% at 20% 0%, hsl(219 45% 93%), transparent 60%),
    linear-gradient(150deg, hsl(220 30% 90%), hsl(222 24% 82%));
}
.dark .dt-desk {
  background:
    radial-gradient(120% 90% at 20% 0%, hsl(222 30% 16%), transparent 60%),
    linear-gradient(150deg, hsl(224 20% 11%), hsl(226 26% 6%));
}
.dt-win {
  position: absolute;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: hsl(var(--ad-surface-raised));
  border: 1px solid hsl(var(--ad-border) / 0.8);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 22px 48px -18px rgb(0 0 0 / 0.35);
}
.dark .dt-win {
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 26px 56px -18px rgb(0 0 0 / 0.75);
}
.dt-tbar {
  flex: none;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: hsl(var(--ad-surface));
  border-bottom: 1px solid hsl(var(--ad-separator));
}
.dt-lights {
  display: inline-flex;
  gap: 6px;
}
.dt-lights i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff5f57;
}
.dt-lights i:nth-child(2) {
  background: #febc2e;
}
.dt-lights i:nth-child(3) {
  background: #28c840;
}
.dt-tname {
  font-size: 11px;
  font-weight: 500;
  color: hsl(var(--ad-gray-4));
}
.dt-win--denote {
  left: 42px;
  top: 40px;
  width: 680px;
  height: 403px;
}
.dt-appwrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.dt-scale {
  position: absolute;
  left: 0;
  top: 0;
  width: 1180px;
  height: 640px;
  transform: scale(0.576);
  transform-origin: 0 0;
}
.dt-win--finder {
  left: 758px;
  top: 200px;
  width: 382px;
  height: 296px;
}
.dt-fbody {
  flex: 1;
  min-height: 0;
  display: flex;
}
.dt-fside {
  flex: none;
  width: 108px;
  padding: 9px 7px;
  background: hsl(var(--ad-surface));
  border-right: 1px solid hsl(var(--ad-separator));
}
.dt-fside-h {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--ad-gray-5));
  padding: 0 7px 5px;
}
.dt-fside-it {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  color: hsl(var(--ad-gray-2));
}
.dt-fside-it svg {
  width: 11px;
  height: 11px;
  color: hsl(217 70% 58%);
}
.dt-fside-it.is-sel {
  background: hsl(var(--ad-muted));
  font-weight: 500;
}
.dt-flist {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 5px 0;
}
.dt-fhead {
  display: flex;
  align-items: center;
  padding: 3px 12px 6px;
  border-bottom: 1px solid hsl(var(--ad-separator));
  font-size: 9.5px;
  color: hsl(var(--ad-gray-5));
}
.dt-fhead .dt-fname {
  font-size: 9.5px;
  color: hsl(var(--ad-gray-5));
}
.dt-fhead .dt-fdate {
  font-size: 9.5px;
  color: hsl(var(--ad-gray-5));
}
.dt-frow {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.dt-frow:nth-child(odd) {
  background: hsl(var(--ad-muted) / 0.5);
}
.dt-fic {
  flex: none;
  display: inline-flex;
}
.dt-fic svg {
  width: 12px;
  height: 12px;
}
.dt-fic--folder {
  color: hsl(217 70% 58%);
}
.dt-fic--doc {
  color: hsl(var(--ad-gray-4));
}
.dt-fname {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: hsl(var(--ad-gray-1));
  white-space: nowrap;
  overflow: hidden;
}
.dt-fdate {
  flex: none;
  width: 108px;
  font-size: 10.5px;
  color: hsl(var(--ad-gray-4));
}
.dt-frow.is-hidden {
  display: none;
}
.dt-frow.is-new {
  animation: dt-arrive 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    dt-pulse 2s ease-out;
}
.dt-frow.is-new .dt-fdate {
  color: hsl(var(--ad-blue));
  font-weight: 500;
}
@keyframes dt-arrive {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}
@keyframes dt-pulse {
  0% {
    background: hsl(var(--ad-blue) / 0.22);
  }
  100% {
    background: transparent;
  }
}
