/* The home page: the pinned window and its steps (build/tour.mjs), the install button beside
   them, the install section. The window is drawn at 1280×800 and scaled by --k (static/tour.js). */

@font-face {
  font-family: "Pixelify Sans";
  src: url("/office/PixelifySans.ttf") format("truetype");
  font-display: swap;
}

main.bare {
  display: block;
  max-width: none;
  padding: 0;
}

/* ── The tour ────────────────────────────────────────────────────────────────────────────── */

.tour {
  --gut: clamp(24px, 3vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(340px, 0.82fr);
  align-items: start;
  gap: clamp(36px, 4.5vw, 88px);
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 var(--gut);
}
/* The window: pinned on the left while the copy scrolls past on the right. */
.tour-stage {
  position: sticky;
  top: calc(var(--top) + 24px);
  height: calc(100svh - var(--top) - 48px);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tour-copy {
  min-width: 0;
  max-width: 600px;
  /* The first step starts near the window, the last can scroll up to the middle. */
  padding: clamp(56px, 9vh, 104px) 0 34svh;
}
.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 74svh;
  scroll-margin-top: calc(var(--top) + 14svh);
  opacity: 0.3;
  transition: opacity 0.35s ease;
}
.step[aria-current] {
  opacity: 1;
}
.step:first-child {
  min-height: 0;
  padding-bottom: 24svh;
}
.step h1,
.step h2 {
  margin: 0;
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.step h2 {
  font-size: clamp(30px, 2.6vw, 42px);
}
.step-body {
  margin: 20px 0 0;
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--text-2);
}
.step-body + .step-body {
  margin-top: 14px;
}
.step-hint {
  display: flex;
  align-items: baseline;
  gap: 10px;
  max-width: 52ch;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-3);
}
.step-hint span {
  flex: none;
  padding: 3px 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 2px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.02em;
  color: var(--accent);
}
.step .more {
  margin-top: 20px;
  align-self: flex-start;
}
.tour-cta {
  margin-top: 30px;
}
.tour-cta .fine {
  margin-top: 10px;
}
.btn-lg {
  height: 46px;
  padding: 0 20px;
  border-radius: var(--r);
  font-size: 15px;
}

.tw-box {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
}

/* The plugins in the window are pointed at, not listed: a pill with the plugin's name and an
   arrow from it to the part (static/tour.js places them, in the window's own 1280×800, scaled). */
.tw-arrows {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 900;
  pointer-events: none;
}
.ann {
  position: absolute;
  display: block;
  padding: 3px 6px 4px;
  border: 1px solid color-mix(in srgb, var(--c-accent) 45%, transparent);
  border-radius: 3px;
  background: color-mix(in srgb, var(--c-tab) 90%, transparent);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.01em;
  color: var(--c-accent);
  white-space: nowrap;
  animation: ann-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
/* The shaft down from the pill, and the head that touches the part. */
.ann::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1.5px;
  height: 15px;
  margin-left: -0.75px;
  background: currentColor;
  opacity: 0.8;
}
.ann::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 15px);
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  border-bottom: 0;
}
@keyframes ann-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
}

.tw {
  --k: 0.6;
  position: relative;
  flex: none;
  width: calc(1280px * var(--k));
  height: calc(800px * var(--k));
}
.tw-k {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 800px;
  transform: scale(var(--k));
  transform-origin: 0 0;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 30px 80px -20px rgba(0, 0, 0, 0.55),
    0 12px 30px -12px rgba(0, 0, 0, 0.45);
}
.tw-k::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  pointer-events: none;
  z-index: 100;
}

/* Without the script: every step at full strength, the window as it starts. */
.tour:not(.is-live) .step {
  opacity: 1;
}

/* Narrow: the window pinned along the top, the copy scrolling under it. */
@media (max-width: 1080px) {
  .tour {
    --gut: 20px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .tour-stage {
    top: var(--top);
    z-index: 2;
    height: min(calc((100vw - 2 * var(--gut)) * 0.625 + 24px), 50svh);
    padding: 12px 0;
    background: var(--bg);
  }
  .tour-copy {
    max-width: none;
    padding: 20px 0 26svh;
  }
  .step {
    min-height: 52svh;
    scroll-margin-top: calc(var(--top) + 50svh);
  }
  .step:first-child {
    padding-bottom: 10svh;
  }
  .step h1,
  .step h2 {
    font-size: clamp(28px, 6vw, 40px);
  }
  .step-body {
    margin-top: 12px;
    font-size: 15.5px;
  }
  .step-hint {
    margin-top: 18px;
    font-size: 12.5px;
  }
  .tour-cta {
    margin-top: 20px;
  }
}
/* ── The install section ─────────────────────────────────────────────────────────────────── */

.get {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  padding: 88px 32px 80px;
  border-top: 1px solid var(--line);
}
.get h2 {
  font-size: clamp(28px, 2.6vw, 34px);
  letter-spacing: -0.03em;
}
.get .body {
  margin: 12px 0 0;
  max-width: 46ch;
  font-size: 15.5px;
  color: var(--text-2);
}
.get-head .label {
  margin-bottom: 12px;
}
.get-cmds {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.get-cmds .label {
  margin-bottom: 8px;
}
.get-links {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.get-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-2);
  text-decoration: none;
}
.get-links a span {
  color: var(--accent);
  opacity: 0;
  transform: translateX(-3px);
  transition:
    opacity 0.12s,
    transform 0.12s;
}
.get-links a:hover {
  color: var(--text);
}
.get-links a:hover span {
  opacity: 1;
  transform: none;
}
@media (max-width: 860px) {
  .get {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 64px 20px 96px;
  }
}

/* ── The window: both shots, one over the other ─────────────────────────────────────────── */

.pm,
.of {
  position: absolute;
  inset: 0;
}
.lights {
  display: inline-flex;
  gap: 8px;
}
.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25);
}
.lights i:nth-child(2) {
  background: #febc2e;
}
.lights i:nth-child(3) {
  background: #28c840;
}
.tw :where(button, input) {
  font: inherit;
  color: inherit;
}
.tw :where(button) {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.tw :where(input) {
  border: 0;
  outline: 0;
  background: none;
  min-width: 0;
}
.tw :where(:focus-visible) {
  outline: 2px solid #7f8cff;
  outline-offset: -2px;
  border-radius: 3px;
}

/* ── Looks: the window's colours, which the page scrolls through ────────────────────────────
   Shot one is drawn with these; data-look on .tw swaps them for another theme's, data-look on
   <html> swaps the page's around it. Registered so they ease rather than jump. */

@property --c-win { syntax: "<color>"; inherits: true; initial-value: #222325; }
@property --c-side { syntax: "<color>"; inherits: true; initial-value: #28292b; }
@property --c-edge { syntax: "<color>"; inherits: true; initial-value: #1a1b1d; }
@property --c-line { syntax: "<color>"; inherits: true; initial-value: #2d2e30; }
@property --c-dim { syntax: "<color>"; inherits: true; initial-value: #8b8d92; }
@property --c-text { syntax: "<color>"; inherits: true; initial-value: #bcbec3; }
@property --c-bright { syntax: "<color>"; inherits: true; initial-value: #e3e4e8; }
@property --c-sel { syntax: "<color>"; inherits: true; initial-value: #36393b; }
@property --c-hover { syntax: "<color>"; inherits: true; initial-value: #2f3033; }
@property --c-bar { syntax: "<color>"; inherits: true; initial-value: #202123; }
@property --c-tab { syntax: "<color>"; inherits: true; initial-value: #191a1d; }
@property --c-well { syntax: "<color>"; inherits: true; initial-value: #1f2022; }
@property --c-bar2 { syntax: "<color>"; inherits: true; initial-value: #2b2c2f; }
@property --c-term { syntax: "<color>"; inherits: true; initial-value: #c9cbd0; }
@property --c-faint { syntax: "<color>"; inherits: true; initial-value: #7e888e; }
@property --c-box { syntax: "<color>"; inherits: true; initial-value: #5e6066; }
@property --c-box-hi { syntax: "<color>"; inherits: true; initial-value: #9a9ca3; }
@property --c-ph { syntax: "<color>"; inherits: true; initial-value: #5e6468; }
@property --c-working { syntax: "<color>"; inherits: true; initial-value: #7fb6ff; }
@property --c-blocked { syntax: "<color>"; inherits: true; initial-value: #e5a03a; }
@property --c-done { syntax: "<color>"; inherits: true; initial-value: #6cc27d; }
@property --c-accent { syntax: "<color>"; inherits: true; initial-value: #f0b27a; }
@property --c-accent-fg { syntax: "<color>"; inherits: true; initial-value: #1a1209; }
@property --c-paper { syntax: "<color>"; inherits: true; initial-value: #1b1c1f; }
@property --c-ink { syntax: "<color>"; inherits: true; initial-value: #e3e4e8; }
@property --t-ok { syntax: "<color>"; inherits: true; initial-value: #7cc48c; }
@property --t-warn { syntax: "<color>"; inherits: true; initial-value: #d9a441; }
@property --t-err { syntax: "<color>"; inherits: true; initial-value: #e06c75; }
@property --t-code { syntax: "<color>"; inherits: true; initial-value: #a699d8; }
@property --t-add { syntax: "<color>"; inherits: true; initial-value: #a6dbb0; }
@property --t-add-bg { syntax: "<color>"; inherits: true; initial-value: rgba(90, 170, 105, 0.14); }
@property --t-del { syntax: "<color>"; inherits: true; initial-value: #f0a3a3; }
@property --t-del-bg { syntax: "<color>"; inherits: true; initial-value: rgba(210, 90, 90, 0.14); }
@property --pi-user { syntax: "<color>"; inherits: true; initial-value: #1c2d37; }
@property --pi-tool { syntax: "<color>"; inherits: true; initial-value: #203129; }

.tw {
  /* pumi's default theme (runtime/app/app/theme/default.tsx). */
  --c-win: #222325;
  --c-side: #28292b;
  --c-edge: #1a1b1d;
  --c-line: #2d2e30;
  --c-dim: #8b8d92;
  --c-text: #bcbec3;
  --c-bright: #e3e4e8;
  --c-sel: #36393b;
  --c-hover: #2f3033;
  --c-bar: #202123;
  --c-tab: #191a1d;
  --c-well: #1f2022;
  --c-bar2: #2b2c2f;
  --c-term: #c9cbd0;
  --c-faint: #7e888e;
  --c-box: #5e6066;
  --c-box-hi: #9a9ca3;
  --c-ph: #5e6468;
  --c-working: #7fb6ff;
  --c-blocked: #e5a03a;
  --c-done: #6cc27d;
  --c-accent: #f0b27a;
  --c-accent-fg: #1a1209;
  --c-paper: #1b1c1f;
  --c-ink: #e3e4e8;
  --t-ok: #7cc48c;
  --t-warn: #d9a441;
  --t-err: #e06c75;
  --t-code: #a699d8;
  --t-add: #a6dbb0;
  --t-add-bg: rgba(90, 170, 105, 0.14);
  --t-del: #f0a3a3;
  --t-del-bg: rgba(210, 90, 90, 0.14);
  --pi-user: #1c2d37;
  --pi-tool: #203129;
  --ease-look: 0.5s cubic-bezier(0.3, 0, 0.2, 1);
  transition:
    --c-win var(--ease-look), --c-side var(--ease-look), --c-edge var(--ease-look), --c-line var(--ease-look),
    --c-dim var(--ease-look), --c-text var(--ease-look), --c-bright var(--ease-look), --c-sel var(--ease-look),
    --c-hover var(--ease-look), --c-bar var(--ease-look), --c-tab var(--ease-look), --c-well var(--ease-look),
    --c-bar2 var(--ease-look), --c-term var(--ease-look), --c-faint var(--ease-look), --c-box var(--ease-look),
    --c-box-hi var(--ease-look), --c-ph var(--ease-look), --c-working var(--ease-look), --c-blocked var(--ease-look),
    --c-done var(--ease-look), --c-accent var(--ease-look), --c-accent-fg var(--ease-look), --c-paper var(--ease-look),
    --c-ink var(--ease-look), --t-ok var(--ease-look), --t-warn var(--ease-look), --t-err var(--ease-look),
    --t-code var(--ease-look), --t-add var(--ease-look), --t-add-bg var(--ease-look), --t-del var(--ease-look),
    --t-del-bg var(--ease-look), --pi-user var(--ease-look), --pi-tool var(--ease-look);
}
/* P3, dark: graphite. */
.tw[data-look="p3"] {
  --c-win: #1e1f22;
  --c-side: #2a2c30;
  --c-edge: #303136;
  --c-line: #34353a;
  --c-dim: #8e8f95;
  --c-text: #c4c5ca;
  --c-bright: #eeeeee;
  --c-sel: #393a3f;
  --c-hover: #313236;
  --c-bar: #1e1f22;
  --c-tab: #28282d;
  --c-well: #1b1c1f;
  --c-bar2: #26272b;
  --c-term: #d0d1d5;
  --c-faint: #717278;
  --c-box: #44454b;
  --c-box-hi: #a3a4a9;
  --c-ph: #5f6066;
  --c-working: #9db6f2;
  --c-blocked: #e2b56c;
  --c-done: #86cfa0;
  --c-accent: #b5a3bf;
  --c-accent-fg: #1d1a20;
  --c-paper: #232428;
  --c-ink: #eeeeee;
  --t-ok: #86cfa0;
  --t-warn: #e2b56c;
  --t-err: #ef7a7f;
  --t-code: #c3b2cc;
  --t-add: #a8dcb8;
  --t-add-bg: rgba(134, 207, 160, 0.13);
  --t-del: #f4a6a9;
  --t-del-bg: rgba(239, 122, 127, 0.13);
  --pi-user: #222c33;
  --pi-tool: #212b25;
}
/* P-Rex (plugins/p-rex): the terminal's own colours, a little see-through, over a wallpaper. */
.tw[data-look="p-rex"] {
  --c-win: rgba(15, 17, 21, 0.78);
  --c-side: rgba(20, 23, 29, 0.7);
  --c-edge: rgba(255, 255, 255, 0.06);
  --c-line: rgba(255, 255, 255, 0.07);
  --c-dim: #7d8494;
  --c-text: #c5c8ce;
  --c-bright: #f2f3f5;
  --c-sel: rgba(122, 166, 240, 0.16);
  --c-hover: rgba(255, 255, 255, 0.05);
  --c-bar: rgba(12, 14, 18, 0.6);
  --c-tab: rgba(30, 35, 44, 0.75);
  --c-well: rgba(8, 10, 13, 0.55);
  --c-bar2: rgba(26, 30, 38, 0.7);
  --c-term: #d7dae0;
  --c-faint: #6b7180;
  --c-box: #2c323c;
  --c-box-hi: #7aa6f0;
  --c-ph: #4d525c;
  --c-working: #7aa6f0;
  --c-blocked: #e8c170;
  --c-done: #7ccf8a;
  --c-accent: #7aa6f0;
  --c-accent-fg: #0b0d12;
  --c-paper: rgba(10, 12, 16, 0.6);
  --c-ink: #f2f3f5;
  --t-ok: #7ccf8a;
  --t-warn: #e8c170;
  --t-err: #f2777a;
  --t-code: #c89cf0;
  --t-add: #97e0a3;
  --t-add-bg: rgba(124, 207, 138, 0.13);
  --t-del: #ff8f91;
  --t-del-bg: rgba(242, 119, 122, 0.13);
  --pi-user: rgba(122, 166, 240, 0.12);
  --pi-tool: rgba(124, 207, 138, 0.09);
}
/* P-Rex again, its colours from another terminal scheme: Catppuccin Mocha. */
.tw[data-look="p-rex-mocha"] {
  --c-win: rgba(30, 30, 46, 0.84);
  --c-side: rgba(24, 24, 37, 0.8);
  --c-edge: rgba(205, 214, 244, 0.07);
  --c-line: rgba(205, 214, 244, 0.09);
  --c-dim: #9399b2;
  --c-text: #bac2de;
  --c-bright: #cdd6f4;
  --c-sel: rgba(203, 166, 247, 0.16);
  --c-hover: rgba(205, 214, 244, 0.05);
  --c-bar: rgba(17, 17, 27, 0.5);
  --c-tab: rgba(49, 50, 68, 0.8);
  --c-well: rgba(17, 17, 27, 0.55);
  --c-bar2: rgba(49, 50, 68, 0.7);
  --c-term: #cdd6f4;
  --c-faint: #7f849c;
  --c-box: #45475a;
  --c-box-hi: #cba6f7;
  --c-ph: #6c7086;
  --c-working: #89b4fa;
  --c-blocked: #f9e2af;
  --c-done: #a6e3a1;
  --c-accent: #cba6f7;
  --c-accent-fg: #1e1e2e;
  --c-paper: rgba(17, 17, 27, 0.6);
  --c-ink: #cdd6f4;
  --t-ok: #a6e3a1;
  --t-warn: #f9e2af;
  --t-err: #f38ba8;
  --t-code: #f5c2e7;
  --t-add: #a6e3a1;
  --t-add-bg: rgba(166, 227, 161, 0.12);
  --t-del: #f38ba8;
  --t-del-bg: rgba(243, 139, 168, 0.12);
  --pi-user: rgba(137, 180, 250, 0.12);
  --pi-tool: rgba(166, 227, 161, 0.08);
}
.tw-k {
  background: #222325;
  transition: background-color 0.5s;
}
.tw-k::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  background:
    radial-gradient(60% 70% at 18% 20%, #3b5bdb 0%, transparent 60%),
    radial-gradient(50% 60% at 85% 80%, #c2255c 0%, transparent 60%),
    radial-gradient(45% 55% at 70% 10%, #0ca678 0%, transparent 60%),
    #0b0d14;
}
.tw[data-look="p-rex"] .tw-k::before {
  opacity: 1;
}
.tw[data-look^="p-rex"] .pm-side,
.tw[data-look^="p-rex"] .pm-pane,
.tw[data-look^="p-rex"] .pm-queue {
  backdrop-filter: blur(18px) saturate(1.3);
}

/* ── Shot one: the default theme ─────────────────────────────────────────────────────────── */.step[data-shot="office"] h2 {
  font-family: "Pixelify Sans", ui-monospace, monospace;
  font-weight: 600;
  letter-spacing: 0;
}
/* ── Shot one: the default theme ─────────────────────────────────────────────────────────── */

.pm {
  display: flex;
  background: var(--c-win);
  color: var(--c-text);
  font:
    13px/1.45 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
.pm-side {
  flex: none;
  display: flex;
  flex-direction: column;
  width: 300px;
  background: var(--c-side);
  border-right: 1px solid var(--c-edge);
}
.pm-top {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px 0 16px;
  flex: none;
  border-bottom: 1px solid var(--c-line);
}
.pm-top .lights {
  margin-right: 8px;
}
.pm-ic {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--c-dim);
  border-radius: 5px;
  flex: none;
}
.pm-ic.is-on {
  color: var(--c-bright);
  background: var(--c-sel);
}
.pm-sess {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-bright);
}
.pm-sess svg {
  color: var(--c-dim);
}
.pm-add {
  margin-left: auto;
}
.pm-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 16px;
  flex: none;
  color: var(--c-dim);
  border-bottom: 1px solid var(--c-line);
}
.pm-search input {
  flex: 1;
  font-size: 14px;
}
.pm-search input::placeholder {
  color: var(--c-ph);
}
.pm-list {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 2px 0;
}
.pm-gname {
  padding: 11px 16px 5px;
  font-size: 14px;
  color: var(--c-text);
}
.pm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 34px;
  padding: 0 16px;
  font-size: 14px;
  text-align: left;
  color: var(--c-text);
}
.pm-row:hover {
  background: var(--c-hover);
}
.pm-row.is-on {
  background: var(--c-sel);
  color: var(--c-bright);
}
.pm-row[data-status="blocked"] .pm-name {
  color: var(--c-bright);
  font-weight: 600;
}
.pm-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The marks. */
.mk {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--c-dim);
}
.mk svg {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  display: none;
}
.mk[data-status="idle"] .m-ring,
.mk-kind svg {
  display: block;
}
.mk[data-status="working"] {
  color: var(--c-working);
}
.mk[data-status="working"] .m-spin {
  display: block;
  animation: tw-spin 0.9s linear infinite;
}
.mk[data-status="blocked"] {
  color: var(--c-blocked);
}
.mk[data-status="blocked"] .m-alert {
  display: block;
}
.mk[data-status="done"] {
  color: var(--c-done);
}
.mk[data-status="done"] .m-check {
  display: block;
}
@keyframes tw-spin {
  to {
    transform: rotate(1turn);
  }
}

/* The docks: the Files and Git plugins, under the list from step two. */
.pm-docks {
  flex: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.6, 0, 0.2, 1),
    opacity 0.3s;
}
.tw:is([data-dock="code"], [data-dock="mobile"]) .pm-docks {
  max-height: 520px;
  opacity: 1;
}
.dock {
  position: relative;
  border-top: 1px solid var(--c-line);
}
.dock-h {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 16px;
  font-size: 13px;
  color: var(--c-dim);
}
.dock-h svg {
  transform: rotate(90deg);
}
.dock-search {
  height: 32px;
  border: 0;
}
.dock-search input {
  font-size: 13.5px;
}
/* A plugin that has just come in (or, at the X-ray step, every one): an outline. */
.pm-list,
.pm-queue {
  position: relative;
}
.tw:not(.is-office) .is-new::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  border: 1.5px solid color-mix(in srgb, var(--brand) 60%, transparent);
  border-radius: inherit;
  background: color-mix(in srgb, var(--brand) 5%, transparent);
  pointer-events: none;
  animation: tw-glow 1.2s ease 0.15s both;
}
@keyframes tw-glow {
  from {
    border-color: transparent;
    background: transparent;
  }
  30% {
    border-color: var(--brand);
  }
}
/* What an arrow points at, for as long as its step is the one on screen. */
.tw:not(.is-office) .is-ann {
  outline: 1.5px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: -1.5px;
}
.ftree,
.ftree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ftree {
  max-height: 238px;
  overflow: hidden;
  padding-bottom: 6px;
}
.ftree li > button,
.ftree li:not(.f-dir) {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  height: 24px;
  padding-left: calc(14px + var(--d, 0) * 14px);
  font-size: 13.5px;
  color: var(--c-text);
  text-align: left;
}
.ftree li:not(.f-dir) {
  padding-left: calc(31px + var(--d, 0) * 14px);
}
.ftree li > button:hover {
  background: var(--c-hover);
}
.ftree li > button svg {
  color: var(--c-dim);
  transition: transform 0.15s;
}
.ftree .f-dir.is-open > button svg {
  transform: rotate(90deg);
}
.ftree .f-dir > ul {
  display: none;
}
.ftree .f-dir.is-open > ul {
  display: block;
}
.f-folder {
  position: relative;
  width: 15px;
  height: 11px;
  border-radius: 2px;
  background: #5c8fd6;
  flex: none;
}
.f-folder::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 6px;
  height: 3px;
  border-radius: 1px 1px 0 0;
  background: inherit;
}
.f-file {
  width: 10px;
  height: 12px;
  border-radius: 2px;
  border: 1.5px solid var(--c);
  flex: none;
}
.git-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 34px;
}
.git-tabs button {
  font-size: 14px;
  color: var(--c-dim);
  background: var(--c-bar2);
}
.git-tabs button[aria-selected="true"] {
  color: var(--c-bright);
  background: var(--c-well);
}
.git-list {
  margin: 0;
  padding: 6px 0 8px;
  list-style: none;
  background: var(--c-well);
  min-height: 104px;
}
.git-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 24px;
  padding: 0 16px;
  font-size: 13px;
}
.g-file {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g-n {
  color: var(--c-faint);
  font-size: 12px;
}
.g-M {
  color: var(--c-blocked);
  font: 600 12px ui-monospace, Menlo, monospace;
}
.g-A {
  color: var(--c-done);
  font: 600 12px ui-monospace, Menlo, monospace;
}
.g-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--c-dim);
  flex: none;
}
.pm-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  flex: none;
  border-top: 1px solid var(--c-line);
}

/* The panes: the agent, and from step three the browser beside it. */
.pm-main {
  flex: 1;
  min-width: 0;
  display: flex;
}
.pm-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pm-term {
  flex: 1 1 auto;
}
.pm-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding-right: 12px;
  flex: none;
  background: var(--c-bar);
  border-bottom: 1px solid var(--c-edge);
}
.pm-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  min-width: 0;
  max-width: 440px;
  padding: 0 14px 0 16px;
  background: var(--c-tab);
  color: var(--c-dim);
  border-right: 1px solid var(--c-edge);
}
.pm-tab b {
  font-weight: 500;
  font-size: 14px;
  color: var(--c-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-tabmark {
  display: contents;
}
.pm-tabmark[hidden] {
  display: none;
}
.pm-x {
  display: grid;
  place-items: center;
  margin-left: 6px;
  color: var(--c-dim);
}
.pm-fill {
  flex: 1;
}
.tw.s1 .pm-hide-split {
  display: none;
}
.pm-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0 14px 10px;
  font:
    12.5px/1.5 ui-monospace,
    "SF Mono",
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--c-term);
}
.ag {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-top: 10px;
}
.ag.is-short {
  justify-content: flex-start;
}
.ag[hidden] {
  display: none;
}
.ln {
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.5em;
}
.t-dim {
  color: var(--c-faint);
}
.t-ok {
  color: var(--t-ok);
}
.t-warn {
  color: var(--t-warn);
}
.t-err {
  color: var(--t-err);
}
.t-fg {
  color: var(--c-bright);
}
.t-code {
  color: var(--t-code);
}
.t-add {
  color: var(--t-add);
  background: var(--t-add-bg);
}
.t-del {
  color: var(--t-del);
  background: var(--t-del-bg);
}
.caret {
  display: inline-block;
  width: 7.5px;
  height: 15px;
  vertical-align: -3px;
  background: var(--c-term);
  animation: tw-blink 1.1s steps(1) infinite;
}
@keyframes tw-blink {
  50% {
    opacity: 0;
  }
}

/* Claude Code. */
.cc-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--c-box);
  border-radius: 7px;
}
.cc-box input {
  flex: 1;
  font: inherit;
}
.cc-box input::placeholder {
  color: var(--c-ph);
}
.cc-box:focus-within {
  border-color: var(--c-box-hi);
}
[data-more] .ln {
  animation: tw-in 0.3s ease both;
}
@keyframes tw-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* Codex: its question, and what comes of the answer. */
.ag-codex [data-when] {
  display: none;
}
.ag-codex[data-status="blocked"] [data-when="blocked"],
.ag-codex[data-status="working"] [data-when="working"],
.ag-codex[data-status="done"] [data-when="done"],
.ag-codex[data-status="idle"] [data-when="idle"] {
  display: block;
}
.cx-ask {
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--c-box);
  border-radius: 7px;
}
.cx-opt {
  display: block;
  width: 100%;
  white-space: pre;
  text-align: left;
  line-height: 1.6;
  color: var(--c-term);
  border-radius: 4px;
  padding: 0 4px !important;
  margin-left: -4px;
}
.cx-opt[data-codex="yes"] {
  color: #6fc6e0;
}
.cx-opt:hover {
  background: var(--c-hover);
}
.cx-box {
  margin-top: 6px;
  padding: 7px 12px;
  background: var(--c-bar2);
  border-radius: 4px;
}

/* pi, as its own TUI draws it. */
.pi-user {
  margin: 0 -14px 4px;
  padding: 7px 14px;
  background: var(--pi-user);
  color: var(--c-term);
  white-space: pre-wrap;
}
.pi-meta {
  margin: 14px 0 6px;
  text-align: right;
  color: var(--c-faint);
}
.pi-think {
  margin: 6px 0 12px;
  font-style: italic;
  color: var(--c-faint);
}
.pi-tool {
  margin: 0 -14px 10px;
  padding: 9px 14px;
  background: var(--pi-tool);
  color: var(--c-term);
}
.pi-tool b {
  display: block;
  margin-bottom: 4px;
  color: var(--c-bright);
}
.pi-took {
  margin-top: 8px;
  color: var(--c-faint);
}
.pi-say {
  margin: 4px 0 10px;
  color: var(--c-bright);
  white-space: normal;
}
.pi-prompt {
  height: 30px;
  padding-top: 6px;
  border-top: 1px solid #6c5fc7;
  border-bottom: 1px solid #6c5fc7;
}
.pi-status {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--c-faint);
}

/* The shell. */
.ag-zsh {
  justify-content: flex-start;
  padding-top: 12px;
}
.sh {
  display: flex;
  gap: 8px;
}
.sh input {
  flex: 1;
  font: inherit;
}
.sh input::placeholder {
  color: var(--c-ph);
}

/* The browser plugin's pane, and the page in it. */
.pm-web {
  position: relative;
  flex: 0 0 0;
  overflow: hidden;
  border-left: 1px solid var(--c-edge);
}
.tw.s1 .pm-web {
  flex-basis: var(--pv-w, 470px);
}
/* Its views, one over the other: each its own width, pinned to the right edge. */
.pv {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--w);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.2s,
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    visibility 0s 0.2s;
}
.pv.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.28s 0.08s,
    transform 0.36s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s,
    visibility 0s;
}
.pm-web .pm-tab {
  max-width: 230px;
}
.pm-web .pm-tab svg {
  color: var(--c-dim);
}
.pm-url {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 8px;
  flex: none;
  background: var(--c-bar);
}
.pm-addr {
  flex: 1;
  height: 26px;
  margin-left: 4px;
  padding: 0 10px;
  line-height: 26px;
  font-size: 13px;
  color: var(--c-text);
  background: var(--c-tab);
  border-radius: 6px;
}
[data-reload] {
  cursor: pointer;
}
[data-reload].is-busy svg {
  animation: tw-spin 0.6s linear;
}
.pm-page {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #fbfaf7;
}
.pm-statusbar {
  display: flex;
  justify-content: space-between;
  height: 24px;
  padding: 0 10px;
  flex: none;
  font-size: 12px;
  line-height: 24px;
  color: var(--c-faint);
  background: var(--c-bar);
}
.site {
  height: 100%;
  padding: 18px 22px;
  color: #17161c;
  font:
    13px/1.45 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  transition:
    opacity 0.2s,
    background 0.4s;
}
.site.is-loading {
  opacity: 0.35;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: #6a6873;
}
.site-nav b {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
  color: #17161c;
  font-size: 14px;
}
.site-logo {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #6d5df5;
}
.site-cta {
  padding: 3px 10px;
  border: 1px solid #dddbe3;
  border-radius: 6px;
}
.site h3 {
  margin-top: 26px;
  font-size: 22px;
  letter-spacing: -0.025em;
  text-align: center;
}
.site h3 + p {
  margin-top: 4px;
  text-align: center;
  color: #6a6873;
}

/* Bug squash: Orbit's 404 before Claude, the game after (static/tour.js plays it). */
.bs-plain h3 {
  margin-top: 90px;
  font-size: 64px;
  font-weight: 800;
  color: #d6d4dc;
}
.bs-game,
.site.is-game .bs-plain {
  display: none;
}
.site.is-game .bs-game {
  display: block;
  animation: bs-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.3);
}
@keyframes bs-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
}
.bs-hud {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 2px 8px;
  font-size: 12px;
  color: #6a6873;
  font-variant-numeric: tabular-nums;
}
.bs-hud b {
  color: #17161c;
  font-size: 15px;
}
.bs-combo {
  font-weight: 700;
  color: #e0559a;
  opacity: 0;
  scale: 0.6;
  transition:
    opacity 0.2s,
    scale 0.3s cubic-bezier(0.2, 0.8, 0.2, 1.6);
}
.bs-combo.is-on {
  opacity: 1;
  scale: 1;
}
.bs-field {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(#86d474, #5fb257);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}
.bs-field.is-miss {
  animation: bs-shake 0.25s;
}
.bs-field.is-gold {
  animation: bs-flash 0.5s;
}
@keyframes bs-shake {
  25% {
    translate: -4px 0;
  }
  75% {
    translate: 4px 0;
  }
}
@keyframes bs-flash {
  30% {
    box-shadow:
      inset 0 -4px 0 rgba(0, 0, 0, 0.12),
      0 0 0 4px #ffd54a,
      0 0 30px #ffd54a;
  }
}
.tw .bs-hole {
  position: relative;
  height: 74px;
  overflow: hidden;
  border-radius: 50% / 38%;
  background: radial-gradient(ellipse 70% 42% at 50% 70%, #3b2a1e 60%, #5a4130 61%, transparent 75%);
  cursor: crosshair;
}
.bs-bug {
  position: absolute;
  left: 50%;
  bottom: 6px;
  font-size: 34px;
  line-height: 1;
  translate: -50% 110%;
  transition: translate 0.14s cubic-bezier(0.2, 0.8, 0.2, 1.4);
  pointer-events: none;
}
.bs-hole.is-up .bs-bug {
  translate: -50% 0;
  animation: bs-wiggle 0.4s ease-in-out infinite alternate;
}
.bs-hole.is-gold .bs-bug {
  filter: drop-shadow(0 0 6px #ffd54a) saturate(1.6);
}
.bs-hole.is-squashed .bs-bug {
  translate: -50% 0;
  animation: bs-squash 0.26s ease-out forwards;
}
@keyframes bs-wiggle {
  from {
    rotate: -9deg;
  }
  to {
    rotate: 9deg;
  }
}
@keyframes bs-squash {
  from {
    scale: 1.4 0.5;
  }
  to {
    scale: 1.6;
    opacity: 0;
  }
}
.bs-pop {
  position: absolute;
  left: 50%;
  top: 4px;
  translate: -50% 0;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  animation: bs-float 0.7s ease-out forwards;
}
.bs-pop.is-gold {
  font-size: 19px;
  color: #ffd54a;
}
.bs-pop.is-duck {
  color: #bff0ff;
}
@keyframes bs-float {
  to {
    translate: -50% -26px;
    opacity: 0;
  }
}
.bs-over {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  border-radius: 14px;
  background: rgba(23, 22, 28, 0.62);
  backdrop-filter: blur(2px);
  color: #fff;
  text-align: center;
}
.bs-over[hidden] {
  display: none;
}
.bs-over b {
  font-size: 18px;
}
.bs-over small {
  color: #dcdae4;
}
.tw .bs-go {
  margin-top: 6px;
  padding: 7px 22px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: #6d5df5;
  box-shadow: 0 4px 0 #4a3dc4;
  transition: translate 0.1s;
}
.tw .bs-go:hover {
  translate: 0 -1px;
}
.tw .bs-go:active {
  translate: 0 3px;
  box-shadow: 0 1px 0 #4a3dc4;
}
/* "Night mode", from Claude's prompt. */
.site.is-purple {
  color: #f1eefc;
  background: #1b1630;
}
.site.is-purple :is(.site-nav b, .bs-hud b) {
  color: #f1eefc;
}
.site.is-purple .bs-field {
  background: linear-gradient(#3d2f72, #2a2052);
}
.site.is-purple .bs-hole.is-up .bs-bug {
  filter: drop-shadow(0 0 8px #9cf7c8);
}
@media (prefers-reduced-motion: reduce) {
  .bs-hole.is-up .bs-bug,
  .bs-field.is-miss,
  .site.is-game .bs-game {
    animation: none;
  }
}

/* The sketch plugin's pane: a dotted page, the flow drawn in, your canvas over it. */
.sk {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background-color: var(--c-paper);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--c-dim) 38%, transparent) 1px, transparent 1.4px);
  background-size: 18px 18px;
  font-family: "Bradley Hand", "Chalkboard SE", "Segoe Print", "Comic Sans MS", cursive;
}
.sk-art {
  position: absolute;
  left: 0;
  top: 36px;
  overflow: visible;
}
.sk-p {
  fill: none;
  stroke: var(--c-ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.sk-thin {
  stroke-width: 1.2;
}
.sk-red {
  stroke: #e03131;
  stroke-width: 2.4;
  opacity: 0.85;
}
.sk-fill {
  fill: color-mix(in srgb, var(--c-accent) 13%, transparent);
  opacity: 0;
}
.sk-fill.sk-green {
  fill: color-mix(in srgb, var(--c-done) 18%, transparent);
}
.sk-fill.sk-q {
  fill: color-mix(in srgb, #fab005 16%, transparent);
}
.sk-t {
  fill: var(--c-ink);
  font-size: 19px;
  text-anchor: middle;
  opacity: 0;
}
.sk-title {
  font-size: 24px;
  text-anchor: start;
}
.sk-s {
  font-size: 15px;
  fill: var(--c-dim);
}
.sk-red-t {
  fill: #e03131;
  font-size: 18px;
  text-anchor: start;
}
.pv.is-on .sk-p {
  animation: sk-draw 0.5s cubic-bezier(0.5, 0, 0.3, 1) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.045s);
}
.pv.is-on .sk-t,
.pv.is-on .sk-fill {
  animation: sk-fade 0.4s ease forwards;
  animation-delay: calc(0.25s + var(--i) * 0.045s);
}
@keyframes sk-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes sk-fade {
  to {
    opacity: 1;
  }
}
.sk-note {
  position: absolute;
  left: 30px;
  top: 404px;
  width: 168px;
  padding: 12px 14px 14px;
  font-size: 15px;
  line-height: 1.3;
  color: #3b3000;
  background: #ffe066;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.35);
  rotate: -3deg;
  opacity: 0;
  scale: 0.85;
}
.sk-note b {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
.pv.is-on .sk-note {
  animation: sk-pop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1.3) forwards;
  animation-delay: calc(0.3s + var(--i) * 0.045s);
}
@keyframes sk-pop {
  to {
    opacity: 1;
    scale: 1;
  }
}
.sk-ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}
/* Claude's cursor, at work on the note. */
.sk-who {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  color: #d97757;
  pointer-events: none;
  opacity: 0;
  font: 600 11px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.sk-who span {
  margin-top: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  background: #d97757;
}
.pv.is-on .sk-who {
  animation: sk-who 9s ease-in-out 2.4s infinite;
}
@keyframes sk-who {
  0% {
    opacity: 0;
    translate: 420px 120px;
  }
  8% {
    opacity: 1;
    translate: 430px 150px;
  }
  30% {
    translate: 160px 470px;
  }
  45% {
    translate: 190px 482px;
  }
  60% {
    translate: 150px 500px;
  }
  80% {
    opacity: 1;
    translate: 330px 330px;
  }
  100% {
    opacity: 0;
    translate: 380px 280px;
  }
}
.sk-tools {
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 10px;
  background: var(--c-tab);
  box-shadow:
    0 0 0 1px var(--c-line),
    0 6px 18px -8px rgba(0, 0, 0, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  z-index: 2;
}
.sk-b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: var(--c-dim);
}
.sk-b:hover {
  background: var(--c-hover);
  color: var(--c-bright);
}
.sk-b.is-on {
  color: var(--c-accent-fg);
  background: var(--c-accent);
}
.sk-c {
  width: 20px;
  height: 20px;
  margin: 0 3px;
  border-radius: 50%;
  background: var(--sw) !important;
  box-shadow: 0 0 0 1px var(--c-line);
}
.sk-c.is-on {
  box-shadow:
    0 0 0 2px var(--c-tab),
    0 0 0 3.5px var(--c-accent);
}
.sk-sep {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: var(--c-line);
}
.sk-hint {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 5px 10px;
  border-radius: 6px;
  font: 13px/1.2 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--c-dim);
  background: var(--c-tab);
  box-shadow: 0 0 0 1px var(--c-line);
  pointer-events: none;
  transition: opacity 0.3s;
}
.sk-hint.is-gone {
  opacity: 0;
}

/* The simulator plugin's pane: a phone in a well, its screen Orbit's app. */
.sim {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c-accent) 10%, var(--c-well)), var(--c-well));
}
.sim-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: stretch;
  height: 36px;
  padding: 0 10px 0 14px;
  flex: none;
  font-size: 12.5px;
  color: var(--c-dim);
  border-bottom: 1px solid var(--c-line);
}
.sim-bar b {
  font-weight: 600;
  color: var(--c-bright);
}
.iph {
  position: relative;
  width: 300px;
  height: 622px;
  margin: auto;
  padding: 11px;
  border-radius: 52px;
  background: linear-gradient(145deg, #4a4b50, #1c1c1f 40%, #2c2d31);
  box-shadow:
    inset 0 0 0 1.5px #66676c,
    inset 0 0 0 4px #111113,
    0 24px 50px -18px rgba(0, 0, 0, 0.6);
  cursor: none;
}
.iph-scr {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 42px;
  background: #f2f2f7;
  color: #111;
  font:
    13px/1.35 -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    system-ui,
    sans-serif;
}
.ios-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 46px;
  padding: 6px 22px 0 32px;
  font-size: 14px;
  font-weight: 600;
}
.ios-status span {
  display: flex;
  gap: 5px;
  align-items: center;
  fill: currentColor;
}
.iph-island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 25px;
  translate: -50% 0;
  border-radius: 14px;
  background: #000;
}
.iph-home {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 104px;
  height: 4px;
  translate: -50% 0;
  border-radius: 2px;
  background: #111;
  z-index: 5;
}
.iph-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 9;
}
.iph-flash.is-on {
  animation: iph-flash 0.5s ease-out;
}
@keyframes iph-flash {
  from {
    opacity: 1;
  }
}
.iph-touch {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(120, 120, 128, 0.32);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.15s,
    scale 0.12s;
  z-index: 10;
}
.iph:hover .iph-touch {
  opacity: 1;
}
.iph.is-down .iph-touch {
  scale: 0.8;
  background: rgba(120, 120, 128, 0.55);
}
.app {
  padding: 4px 18px 0;
  transition: filter 0.3s;
}
.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  font-size: 13px;
  color: #3c3c43;
}
.app-nav b {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111;
  font-size: 15px;
}
.app h4 {
  margin: 14px 0 2px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.app > p {
  margin: 0;
  color: #6c6c70;
}
.app-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 16px 0 14px;
  padding: 2px;
  border-radius: 9px;
  background: #e3e3e8;
}
.app-seg button {
  height: 28px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #111 !important;
  cursor: none !important;
}
.app-seg button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.app-seg em {
  font-style: normal;
  color: #248a3d;
}
.app-plans {
  display: grid;
  gap: 8px;
}
.app-plan {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px !important;
  border-radius: 14px;
  background: #fff !important;
  text-align: left;
  color: #111 !important;
  box-shadow: 0 0 0 1px #e5e5ea;
  cursor: none !important;
  transition:
    box-shadow 0.25s,
    transform 0.15s;
}
.app-plan:active {
  transform: scale(0.98);
}
.app-plan.is-on {
  box-shadow: 0 0 0 2px #6d5df5;
}
.app-radio {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #c7c7cc;
  transition: box-shadow 0.2s;
}
.app-plan.is-on .app-radio {
  box-shadow: inset 0 0 0 5.5px #6d5df5;
}
.app-pn {
  flex: 1;
  min-width: 0;
}
.app-pn b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
}
.app-pn small,
.app-pp small {
  color: #8e8e93;
  font-size: 11.5px;
}
.app-badge {
  white-space: nowrap;
  padding: 1px 6px;
  border-radius: 6px;
  font: 600 10px/1.5 inherit;
  font-style: normal;
  color: #fff;
  background: #6d5df5;
}
.app-pp b {
  font-size: 18px;
  letter-spacing: -0.02em;
}
.app-cta {
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 600;
  color: #fff !important;
  background: #6d5df5 !important;
  cursor: none !important;
  transition: transform 0.15s;
}
.app-cta:active {
  transform: scale(0.98);
}
.app-fine {
  margin-top: 10px !important;
  text-align: center;
  font-size: 11.5px;
}
.app-sheet {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.25);
  z-index: 4;
  animation: sk-fade-in 0.25s both;
}
.app-sheet[hidden] {
  display: none;
}
@keyframes sk-fade-in {
  from {
    opacity: 0;
  }
}
.app-sheet-in {
  position: relative;
  width: 100%;
  padding: 10px 20px 34px;
  border-radius: 26px 26px 0 0;
  background: #fff;
  animation: app-up 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes app-up {
  from {
    transform: translateY(100%);
  }
}
.app-grab {
  display: block;
  width: 36px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 3px;
  background: #d1d1d6;
}
.app-sheet-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.app-sheet-h .site-logo {
  width: 34px;
  height: 34px;
  border-width: 7px;
}
.app-sheet-h b {
  display: block;
  font-size: 16px;
}
.app-sheet-h small {
  color: #8e8e93;
}
.app-sheet-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #ececf0;
  color: #6c6c70;
}
.app-sheet-row span:last-child {
  color: #111;
}
.app-pay {
  position: relative;
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 600;
  color: #fff !important;
  background: #000 !important;
  cursor: none !important;
}
.app-pay i {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: tw-spin 0.7s linear infinite;
}
.app-sheet.is-paying .app-pay span {
  visibility: hidden;
}
.app-sheet.is-paying .app-pay i {
  display: block;
}
.app-ok {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 0 4px;
}
.app-ok span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 50%;
  font-size: 26px;
  color: #fff;
  background: #34c759;
  animation: sk-pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1.4) both;
  opacity: 0;
  scale: 0.5;
}
.app-ok b {
  font-size: 17px;
}
.app-ok small {
  color: #8e8e93;
}
.app-sheet.is-paid .app-sheet-row,
.app-sheet.is-paid .app-pay {
  display: none;
}
.app-sheet.is-paid .app-ok {
  display: flex;
}

/* The charts plugin's pane: a dashboard, its colours the theme's. */
.ch {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow: hidden;
  background: var(--c-well);
  font-variant-numeric: tabular-nums;
}
.ch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ch-head b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-bright);
}
.ch-head small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--c-dim);
}
.ch-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-done);
  box-shadow: 0 0 0 0 var(--c-done);
  animation: ch-live 2s ease-out infinite;
}
@keyframes ch-live {
  70% {
    box-shadow: 0 0 0 6px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.ch-range {
  display: flex;
  padding: 2px;
  border-radius: 7px;
  background: var(--c-bar2);
}
.ch-range button {
  height: 24px;
  padding: 0 10px !important;
  border-radius: 5px;
  font-size: 12px;
  color: var(--c-dim) !important;
}
.ch-range button[aria-pressed="true"] {
  color: var(--c-bright) !important;
  background: var(--c-tab);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.ch-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ch-kpi,
.ch-card {
  position: relative;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--c-tab);
  box-shadow: 0 0 0 1px var(--c-line);
}
.ch-kpi small {
  display: block;
  font-size: 11.5px;
  color: var(--c-dim);
}
.ch-kpi b {
  display: inline-block;
  margin-top: 3px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--c-bright);
}
.ch-delta {
  margin-left: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--t-ok);
}
.ch-delta.is-down {
  color: var(--t-err);
}
.ch-spark {
  display: block;
  width: 100%;
  height: 26px;
  margin-top: 6px;
  overflow: visible;
}
.ch-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12.5px;
}
.ch-card-h b {
  font-weight: 600;
  color: var(--c-bright);
}
.ch-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--c-dim);
}
.ch-legend i {
  width: 8px;
  height: 8px;
  margin-left: 7px;
  border-radius: 2px;
  background: var(--c);
}
.ch-plot {
  position: relative;
}
.ch-plot svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.ch-grid {
  stroke: var(--c-line);
  stroke-width: 1;
}
.ch-axis {
  fill: var(--c-faint);
  font-size: 10px;
}
.ch-line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: d 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.ch-area {
  transition: d 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.ch-mark {
  stroke: var(--c-accent);
  stroke-dasharray: 3 3;
}
.ch-mark-t {
  fill: var(--c-accent);
  font-size: 10px;
  font-weight: 600;
}
.ch-x {
  stroke: var(--c-dim);
  stroke-width: 1;
  opacity: 0;
}
.ch-dot {
  stroke: var(--c-tab);
  stroke-width: 2;
  opacity: 0;
}
.ch-plot.is-hover .ch-x,
.ch-plot.is-hover .ch-dot {
  opacity: 1;
}
.ch-tip {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 112px;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bar);
  box-shadow:
    0 0 0 1px var(--c-line),
    0 8px 20px -8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.ch-tip b {
  display: block;
  color: var(--c-bright);
}
.ch-tip i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 2px;
  background: var(--c);
}
.ch-tip span {
  float: right;
  margin-left: 14px;
  color: var(--c-bright);
}
.ch-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}
.ch-donut {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ch-donut svg {
  width: 104px;
  height: 104px;
  flex: none;
  rotate: -90deg;
}
.ch-donut circle {
  fill: none;
  stroke-width: 15;
  transition:
    stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-donut-key] {
  display: grid;
  gap: 4px;
  font-size: 11.5px;
  color: var(--c-dim);
}
[data-donut-key] b {
  margin-left: 4px;
  color: var(--c-bright);
}
[data-donut-key] i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 2px;
  background: var(--c);
}
.ch-funnel {
  display: grid;
  gap: 7px;
}
.ch-step {
  display: grid;
  grid-template-columns: 62px 1fr 38px;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--c-dim);
}
.ch-step b {
  text-align: right;
  font-weight: 600;
  color: var(--c-bright);
}
.ch-bar {
  height: 14px;
  border-radius: 4px;
  background: var(--c-bar2);
  overflow: hidden;
}
.ch-bar i {
  display: block;
  height: 100%;
  width: calc(var(--v) * 100%);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 55%, var(--c-done)));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.pv:not(.is-on) .ch-bar i {
  width: 0;
}

/* ── Shot two: the Office theme ──────────────────────────────────────────────────────────── */
/* Its night look's colours (plugins/office/themes/office/theme.tsx). */

.of {
  --surface: #1f2a6b;
  --rim: #e6e8ff;
  --ring: #3a4aa8;
  --slot: #1a1f45;
  --slot-rim: #0b0d20;
  --slot-ring: #36407e;
  --gold: #ffd34d;
  --gold-ring: #a77e1e;
  --tag: #14152a;
  --drop: rgba(0, 0, 0, 0.4);
  --room-rim: #3b4280;
  --room-ring: #6c8bff;
  --working: #6cb1f0;
  --blocked: #f5b456;
  --done: #22d36a;
  --idle: #8386aa;
  --online: #4ade80;
  display: flex;
  flex-direction: column;
  z-index: 5;
  color: #ecedf7;
  font: 13px/1.3 "Pixelify Sans", ui-monospace, monospace;
  background: #34324a url("/office/floors/wood.svg") 0 0 / 384px 192px repeat;
  image-rendering: pixelated;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition:
    clip-path 0.55s cubic-bezier(0.7, 0, 0.2, 1),
    visibility 0s 0.55s;
}
.tw.is-office .of {
  clip-path: inset(0);
  visibility: visible;
  transition:
    clip-path 0.55s cubic-bezier(0.7, 0, 0.2, 1),
    visibility 0s;
}
.pm {
  transition: filter 0.5s;
}
.tw.is-office .pm {
  filter: brightness(0.5);
}
.of img {
  max-width: none;
  image-rendering: pixelated;
  user-select: none;
  -webkit-user-drag: none;
}
.of-lights {
  position: absolute;
  left: 18px;
  top: 13px;
  z-index: 50;
}
.of-row {
  display: flex;
  height: 744px;
  flex: none;
}
.of-main {
  position: relative;
  flex: 1;
  padding-left: 20px;
}
.spr {
  position: absolute;
  pointer-events: none;
}
.spr.st {
  position: static;
}

/* The framed boxes. */
.o-panel,
.o-board,
.o-plate,
.o-mini,
.o-card,
.o-bar,
.o-clock,
.o-monitor,
.o-emote {
  background: var(--surface);
  border: 2px solid var(--rim);
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--ring);
}
.o-slot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  color: #fff;
  font-size: 17px;
  background: var(--slot);
  border: 2px solid var(--slot-rim);
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--slot-ring);
}
button.o-slot:hover {
  border-color: var(--gold);
}
button.o-slot:active,
.o-slot.is-hit {
  background: var(--slot-ring);
}
.o-slot.is-on {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px var(--gold-ring);
  color: var(--gold);
}
.o-slot small {
  position: absolute;
  top: 0;
  left: 4px;
  font-size: 9px;
  color: #8f95c9;
}
.o-wide {
  display: inline-flex;
  gap: 6px;
  width: auto;
  padding: 0 12px !important;
  font-size: 14px;
  color: #c4c8ec !important;
}
.o-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 7px 0 5px;
  border-radius: 6px;
  background: var(--tag);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}
.o-tag.dim {
  padding-left: 7px;
  background: rgba(20, 21, 42, 0.65);
  color: rgba(255, 255, 255, 0.75);
}
.o-tag i,
.o-room i,
.o-plate i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  flex: none;
  background: var(--online);
}
[data-status="working"] {
  --st: var(--working);
}
[data-status="blocked"] {
  --st: var(--blocked);
}
[data-status="done"] {
  --st: var(--done);
}
[data-status="idle"] {
  --st: var(--idle);
}
.o-tag i[data-status],
.o-room i[data-status] {
  background: var(--st);
}
.o-room {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 11px;
  border-radius: 12px;
  background: #2b3156;
  border: 1px solid #4a5390;
  font-size: 14px;
  color: #e6e8ff;
  white-space: nowrap;
}
.o-room.is-on {
  border: 2px solid var(--room-ring);
}
.o-room small {
  font-size: 12px;
  color: #8386aa;
}
.o-room i {
  width: 7px;
  height: 7px;
  border-radius: 4px;
}

/* The lobby. */
.o-lobby {
  width: 270px;
  flex: none;
  padding: 36px 0 6px 10px;
}
.o-lobby-in {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #2b2f45 url("/office/floors/tile.svg") 0 0 / 128px 128px repeat;
  border: 2px solid var(--room-rim);
  border-radius: 3px;
  box-shadow: 0 3px 0 var(--drop);
}
.o-lobby-h {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 34px;
  flex: none;
}
.o-sec {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.o-sign {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: center;
  height: 18px;
  margin: 7px 0;
  padding: 0 8px !important;
  font-size: 11px;
  color: #e6e8ff !important;
  background: #2b3156 !important;
  border: 1px solid #0b0d20 !important;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px #4a5390;
}
.o-sign:hover {
  background: #363d6b !important;
}
.o-sign svg {
  width: 9px;
  transform: rotate(90deg);
}
.o-sec.is-folded .o-sign svg {
  transform: none;
}
.o-sec.is-folded .o-sec-b {
  display: none;
}
.o-players {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 12px 6px;
}
.o-player {
  display: flex;
  align-items: center;
  gap: 10px;
}
.o-player > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}
.o-player small {
  font-size: 11px;
  color: #c4c8ec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}
.o-board {
  margin: 0 8px 4px;
  padding: 4px;
}
.o-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 8px;
  color: #8386aa;
  font-size: 12px;
  border-bottom: 1px solid #333a64;
}
.o-tree li > button,
.o-tree li:not(.f-dir) {
  height: 22px;
  font-size: 12px;
  color: #ecedf7;
}
.o-tree li > button:hover {
  background: #2a3683;
}
.o-tree .f-folder {
  background: #ffd34d;
}
.o-gtabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  font-size: 12px;
  line-height: 24px;
}
.o-gtabs b {
  font-weight: 400;
  background: #191c33;
}
.o-gtabs span {
  color: #b4b6d3;
  background: #2a3683;
}
.o-glist {
  margin: 0;
  padding: 4px 6px;
  list-style: none;
  font-size: 12px;
  background: #191c33;
}
.o-glist li {
  display: flex;
  gap: 7px;
  line-height: 20px;
}
.o-glist .g-M,
.o-glist .g-A {
  font: inherit;
}
.o-lobby-f {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin-top: auto;
  height: 60px;
  padding-bottom: 4px;
  flex: none;
}

/* The floor. */
.o-floor {
  position: relative;
  background: #474b8c url("/office/floors/rug.svg") 0 0 / 128px 128px repeat;
  width: 990px;
  height: 744px;
  overflow: hidden;
  outline: none;
  cursor: pointer;
}
.o-floor:focus-visible {
  outline: none;
}
.o-wall {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 56px;
  z-index: 1;
  background: url("/office/wall.svg") 0 0 / 64px 56px repeat-x;
}
.o-wall::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 56px;
  height: 4px;
  background: var(--drop);
}
.o-pod {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.o-carpet {
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  bottom: 0;
  background: #3a4459 url("/office/floors/carpet.svg") 0 0 / 128px 128px repeat;
  border: 2px solid var(--room-rim);
  border-radius: 3px;
  box-shadow: 0 3px 0 var(--drop);
}
.o-pod[data-pod="orbit"] .o-carpet {
  border-color: var(--room-ring);
}
.o-pod .o-room {
  position: absolute;
  left: 12px;
  top: 18px;
}
.o-desk {
  position: absolute;
  width: 176px;
  height: 156px;
  pointer-events: none;
  transition: transform 0.1s ease-out;
}
.o-desk:has(.o-hit:hover),
.o-desk.is-lit {
  transform: translateY(-2px);
  z-index: 31000 !important;
}
.o-desk.is-lit::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 8px;
  width: 104px;
  height: 68px;
  border: 2px solid var(--gold);
  border-radius: 3px;
}
.o-free {
  opacity: 0.6;
}
.o-free:has(.o-hit:hover) {
  opacity: 1;
}
.o-screen {
  position: absolute;
  left: 68px;
  top: 16px;
  width: 40px;
  height: 22px;
  overflow: hidden;
  background:
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(200, 210, 255, 0.28) 3px 4px) 4px 3px / 26px 16px no-repeat,
    #111424;
  border: 1px solid transparent;
}
.o-desk[data-status="blocked"] .o-screen {
  border-color: #ef476f;
}
.o-desk[data-status="done"] .o-screen {
  border-color: #03c345;
}
.o-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
}
.o-desk[data-status="working"] .o-screen::after {
  background: #8fa7ff;
  animation: o-flicker 1.6s ease-in-out infinite;
}
.o-desk[data-status="blocked"] .o-screen::after {
  background: #ef476f;
  animation: o-flash 0.9s ease-in-out infinite;
}
@keyframes o-flicker {
  0%,
  100% {
    opacity: 0;
  }
  25% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.05;
  }
  75% {
    opacity: 0.25;
  }
}
@keyframes o-flash {
  50% {
    opacity: 0.45;
  }
}
.o-desk[data-status="working"] .o-sit {
  animation: o-type 0.6s steps(1) infinite;
}
.o-desk[data-status="blocked"] .o-sit,
.o-desk[data-status="blocked"] .o-bubble {
  animation: o-fidget 0.9s steps(1) infinite;
}
@keyframes o-type {
  50% {
    transform: translateY(1px);
  }
}
@keyframes o-fidget {
  50% {
    transform: translate(1px, -2px);
  }
}
.o-label {
  position: absolute;
  left: 0;
  top: 100px;
  width: 176px;
  display: flex;
  justify-content: center;
}
.o-hit {
  position: absolute;
  left: 30px;
  top: 0;
  width: 116px;
  height: 124px;
  pointer-events: auto;
  z-index: 5;
}
.o-you {
  position: absolute;
  width: 80px;
  height: 58px;
  margin: -58px 0 0 -40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.o-you .o-tag i {
  background: var(--online);
}
.o-shadow {
  position: absolute;
  top: 53px;
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: var(--drop);
}
.spr-in {
  position: relative;
  margin-top: 3px;
}
.o-emote {
  position: absolute;
  top: -34px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 28px;
  font-size: 14px;
  box-shadow:
    inset 0 0 0 2px var(--ring),
    4px 4px 0 var(--drop);
  animation: o-pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.o-emote[hidden] {
  display: none;
}
@keyframes o-pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.o-prompt {
  position: absolute;
  z-index: 32000;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px 0 3px;
  border-radius: 6px;
  background: var(--tag);
  font-size: 12px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  white-space: nowrap;
}
.o-prompt[hidden] {
  display: none;
}
.o-prompt kbd,
.o-monitor kbd {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 3px;
  font: inherit;
  font-size: 11px;
  color: #14152a;
  background: #e6e8ff;
  box-shadow: inset 0 -2px 0 #8f95c9;
}
.o-hint {
  position: absolute;
  left: 50%;
  bottom: 70px;
  z-index: 32000;
  translate: -50% 0;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--tag);
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s;
  animation: o-hint 2.2s ease-in-out infinite;
}
.o-hint.is-gone {
  opacity: 0;
  animation: none;
}
@keyframes o-hint {
  50% {
    transform: translateY(-3px);
  }
}
.o-plate {
  position: absolute;
  left: 30px;
  top: 12px;
  z-index: 45;
  display: flex !important;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px !important;
  font-size: 15px;
  background: var(--surface) !important;
  border: 2px solid var(--rim) !important;
}
.o-plate i {
  width: 7px;
  height: 7px;
  border-radius: 4px;
}
.o-plate svg {
  color: #b4b6d3;
}
.o-mini {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 45;
  padding: 4px;
}
.o-mini-in {
  position: relative;
  width: 140px;
  overflow: hidden;
  background: #34324a;
  border: 1px solid var(--room-rim);
}
.o-mini-in i {
  position: absolute;
}
.o-mini-wall {
  left: 0;
  top: 0;
  width: 100%;
  background: var(--slot);
}
.o-mini-pod {
  background: #3a4459;
}
.o-mini-desk {
  background: #232945;
}
.o-mini-desk[data-status] {
  background: var(--st);
}
.o-mini-you {
  width: 5px;
  height: 5px;
  background: var(--done);
  animation: tw-blink 0.9s steps(1) infinite;
}

/* The monitor: the desk you sat at, its agent on the screen. */
.o-monitor {
  position: absolute;
  left: 70px;
  top: 64px;
  z-index: 40000;
  display: flex;
  flex-direction: column;
  width: 880px;
  height: 610px;
  padding: 4px;
  box-shadow:
    inset 0 0 0 2px var(--ring),
    6px 6px 0 var(--drop);
  animation: o-pop 0.25s ease-out both;
}
.o-monitor[hidden] {
  display: none;
}
.o-mon-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 8px 0 10px;
  font-size: 15px;
}
.o-mon-h button {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 4px 0 10px !important;
  font-size: 13px;
  background: var(--slot) !important;
  border: 2px solid var(--slot-rim) !important;
  border-radius: 3px;
}
.o-mon-h button:hover {
  border-color: var(--gold) !important;
}
.o-mon-b {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0 14px 10px;
  background: #191c33;
  border: 2px solid #0b0d20;
  font:
    12.5px/1.5 ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
  color: #e3e4f2;
  image-rendering: auto;
}

/* The bar along the foot. */
.o-hud {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 10px;
  flex: none;
}
.o-card {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 12px 0 4px;
}
.o-face {
  overflow: hidden;
  width: 36px;
  height: 36px;
}
.o-face img {
  margin-top: 6px;
}
.o-card span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.o-card b {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
  font-size: 15px;
}
.o-card b i {
  width: 6px;
  height: 6px;
  background: var(--online);
}
.o-card small {
  font-size: 12px;
  color: #8386aa;
}
.o-bar-w {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.o-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
}
.o-sep {
  width: 2px;
  height: 30px;
  margin: 0 2px;
  background: var(--slot-ring);
}
.o-tray {
  display: flex;
  align-items: center;
  gap: 6px;
}
[data-tray] {
  display: flex;
  gap: 6px;
}
.o-clock {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .tw *,
  .tw *::before,
  .tw *::after,
  .step {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Every theme its own layout ──────────────────────────────────────────────────────────────
   The default theme: a side bar, the panes edge to edge. P3: threads, a breadcrumb, the side
   panels moved right as surfaces. P-Rex: rounded cards over a wallpaper, the panes swapped, the
   views as tiles; with the side bar hidden, the views ride a track along the top. static/tour.js
   eases every box from where it was to where the new theme puts it. */

.pm-center {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pm-main {
  min-height: 0;
}
.pm-side {
  transition:
    transform 0.45s cubic-bezier(0.3, 0, 0.2, 1),
    opacity 0.3s,
    border-radius 0.4s;
}
.pm-pane,
.dock {
  transition: border-radius 0.4s;
}
.pm-crumb,
.pm-queue,
.pm-surf,
.pm-perf,
.pm-tile,
.pm-sub,
.cr-p3,
.cr-track {
  display: none;
}
.pm-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  text-align: left;
}
.tw-wall {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  background:
    radial-gradient(55% 65% at 82% 12%, rgba(203, 166, 247, 0.75) 0%, transparent 62%),
    radial-gradient(50% 60% at 8% 92%, rgba(245, 194, 231, 0.6) 0%, transparent 60%),
    radial-gradient(40% 50% at 45% 55%, rgba(137, 180, 250, 0.35) 0%, transparent 60%),
    #11111b;
}
.tw[data-look="p-rex-mocha"] .tw-wall {
  opacity: 1;
}

/* The sets of side panels: one in, the last out. */
.pm-docks {
  display: grid;
}
.dset {
  grid-area: 1 / 1;
  align-self: end;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-28px);
  transition:
    opacity 0.18s,
    transform 0.25s,
    visibility 0s 0.18s;
}
/* Surfaces is a flex column: stretch across it (start would shrink the set to its content). */
.pm-surf .dset {
  align-self: stretch;
  transform: translateX(28px);
}
.tw[data-dock="code"] .dset[data-set="code"],
.tw[data-dock="mobile"] .dset[data-set="mobile"],
.tw[data-dock="plan"] .dset[data-set="plan"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.28s 0.1s,
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s,
    visibility 0s;
}

/* The kanban plugin. */
.kb {
  display: grid;
  gap: 10px;
  padding: 4px 12px 12px;
}
.kb-lh {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-faint);
}
.kb-lh i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-faint);
}
.kb-lh i[data-status="working"] {
  background: var(--c-working);
}
.kb-lh i[data-status="blocked"] {
  background: var(--c-blocked);
}
.kb-lh i[data-status="done"] {
  background: var(--c-done);
}
.kb-lh small {
  margin-left: auto;
  font-weight: 500;
}
.kb-cards {
  display: grid;
  gap: 6px;
  min-height: 8px;
}
.kb-card {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--c-tab);
  box-shadow:
    0 0 0 1px var(--c-line),
    0 2px 6px -3px rgba(0, 0, 0, 0.4);
  animation: kb-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.2);
}
.kb-card b {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-bright);
}
.kb-card small {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--c-dim);
}
.kb-card .mk,
.kb-card .mk svg {
  width: 13px;
  height: 13px;
}
.kb-card[data-status="blocked"] {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--c-blocked) 60%, transparent),
    0 2px 6px -3px rgba(0, 0, 0, 0.4);
}
.kb-drag {
  color: var(--c-faint);
  letter-spacing: -1px;
}
@keyframes kb-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
}

/* The usage plugin. */
.us {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 4px 12px 14px;
  list-style: none;
}
.us li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 8px;
  align-items: end;
}
.us b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-bright);
}
.us small {
  font-size: 11.5px;
  color: var(--c-faint);
}
.us em {
  font: 600 12px ui-monospace, Menlo, monospace;
  font-style: normal;
  color: var(--c-text);
}
.us-bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 3px;
  background: var(--c-bar2);
  overflow: hidden;
}
.us-bar i {
  display: block;
  height: 100%;
  width: calc(var(--v) * 100%);
  border-radius: inherit;
  background: var(--c-accent);
  transform-origin: 0 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s;
}
.tw:not([data-dock="plan"]) .us-bar i {
  transform: scaleX(0);
}

/* The simulator plugin's devices. */
.dv {
  display: grid;
  padding: 0 6px 8px;
}
.dv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 5px 10px !important;
  border-radius: 8px;
  text-align: left;
}
.dv-row:hover {
  background: var(--c-hover);
}
.dv-row.is-on {
  background: var(--c-sel);
}
.dv-ic {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--c-dim);
  background: var(--c-bar2);
}
.dv-n {
  flex: 1;
  min-width: 0;
}
.dv-n b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-bright);
}
.dv-n small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--c-faint);
}
.dv-row em {
  font: 500 11px ui-monospace, Menlo, monospace;
  font-style: normal;
  color: var(--c-faint);
}
.dv-row em[data-dv-state="booted"] {
  color: var(--c-done);
}
.dv-row em[data-dv-state="booting"] {
  color: var(--c-blocked);
}

/* The scripts plugin. */
.sc {
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
}
.sc li {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 28px;
  padding: 0 10px 0 16px;
  font-size: 13px;
}
.sc li:hover {
  background: var(--c-hover);
}
.sc b {
  font: 500 12.5px ui-monospace, Menlo, monospace;
  color: var(--c-bright);
}
.sc small {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 11.5px ui-monospace, Menlo, monospace;
  color: var(--c-faint);
}
.sc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--c-faint);
  flex: none;
}
.sc li[data-state="running"] .sc-dot {
  border-color: var(--c-done);
  background: var(--c-done);
  animation: ch-live 2s ease-out infinite;
  box-shadow: 0 0 0 0 var(--c-done);
}
.sc li[data-state="busy"] .sc-dot {
  border-color: var(--c-working);
  border-top-color: transparent;
  animation: tw-spin 0.7s linear infinite;
}
.sc li[data-state="ok"] .sc-dot {
  border-color: var(--c-done);
}
.sc li[data-state="ok"] small {
  color: var(--t-ok);
}
.sc-run {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--c-dim);
  opacity: 0.55;
}
.sc li:hover .sc-run {
  opacity: 1;
  color: var(--c-done);
  background: var(--c-bar2);
}

/* pumi-dog: an egg, not a plugin on show. No card, no outline, no arrow; it just walks by. */
.dock-dog {
  height: 46px;
  overflow: hidden;
}
.tw[data-look] .pm-docks .dock.dock-dog {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.dog-track {
  position: absolute;
  inset: 0;
}
.dog {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 44px;
  height: 30px;
  animation: dog-walk 14s linear infinite;
}
.dog-walk {
  display: block;
  width: 44px;
  height: 30px;
  animation: dog-turn 14s steps(1) infinite;
}
.dog-f {
  position: absolute;
  inset: 0;
}
.dog-b {
  animation: dog-step 0.32s steps(1) infinite;
}
.dog-bark {
  position: absolute;
  left: 30px;
  top: -14px;
  padding: 1px 6px;
  border-radius: 6px;
  font: 700 10px/14px ui-monospace, Menlo, monospace;
  color: var(--c-accent-fg);
  background: var(--c-accent);
  opacity: 0;
  pointer-events: none;
}
.dog.is-barking .dog-bark {
  animation: dog-bark 0.9s ease;
}
.dog.is-barking,
.dog.is-barking .dog-walk,
.dog.is-barking .dog-b {
  animation-play-state: paused;
}
@keyframes dog-walk {
  0%,
  6% {
    translate: 6px 0;
  }
  44%,
  56% {
    translate: 206px 0;
  }
  94%,
  100% {
    translate: 6px 0;
  }
}
@keyframes dog-turn {
  0% {
    scale: 1 1;
  }
  50% {
    scale: -1 1;
  }
}
@keyframes dog-step {
  50% {
    opacity: 0;
  }
}
@keyframes dog-bark {
  15%,
  70% {
    opacity: 1;
    translate: 0 -3px;
  }
}

/* Over the panes, and under them. */
.cr-p3,
.cr-track {
  align-items: center;
  gap: 8px;
}
.cr-tag {
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--c-accent);
  background: color-mix(in srgb, var(--c-accent) 14%, transparent);
}
.cr-sep {
  color: var(--c-faint);
}
.cr-p3 b {
  font-weight: 500;
  color: var(--c-bright);
}
.cr-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 13px 0 10px !important;
  border-radius: 999px;
  font-size: 13px;
  color: var(--c-text) !important;
  background: var(--c-win) !important;
  box-shadow: 0 0 0 1px var(--c-line);
  backdrop-filter: blur(18px);
}
.cr-pill.is-on {
  color: var(--c-accent-fg) !important;
  background: var(--c-accent) !important;
}
.cr-pill.is-on .mk {
  color: inherit;
}
.pm-queue {
  align-items: center;
  gap: 8px;
  height: 42px;
  flex: none;
  padding: 0 10px 0 14px;
  font-size: 12.5px;
}
.q-h {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  font-weight: 600;
  color: var(--c-bright);
}
.q-item {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font: 12px ui-monospace, Menlo, monospace;
  color: var(--c-text);
  background: var(--c-bar2);
  white-space: nowrap;
}
.q-item small {
  color: var(--c-faint);
  font: inherit;
}
.q-item.is-done {
  color: var(--c-dim);
}
.q-item.is-run {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-accent) 55%, transparent);
}
.q-add {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--c-dim);
}
.pm-perf {
  position: absolute;
  top: 56px;
  right: 14px;
  z-index: 8;
  width: 236px;
  padding: 10px 12px 8px;
  border-radius: 14px;
  font-size: 12px;
  color: var(--c-text);
  background: color-mix(in srgb, var(--c-tab) 80%, transparent);
  box-shadow:
    0 0 0 1px var(--c-line),
    0 18px 40px -16px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  font-variant-numeric: tabular-nums;
}
.pf-h {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.pf-h b {
  font: 600 12px ui-monospace, Menlo, monospace;
  color: var(--c-accent);
}
.pf-row {
  display: grid;
  grid-template-columns: 58px 1fr 62px;
  align-items: center;
  gap: 8px;
  height: 22px;
}
.pf-row span {
  color: var(--c-faint);
}
.pf-row b {
  font: 500 12px ui-monospace, Menlo, monospace;
  text-align: right;
  color: var(--c-bright);
}
.pf-row svg {
  width: 100%;
  height: 16px;
}
.pf-dim {
  grid-template-columns: 58px 1fr;
}
.surf-h {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 10px 0 16px;
  flex: none;
  border-bottom: 1px solid var(--c-line);
}
.surf-h b {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-bright);
}
.pm-surf .dock:first-child {
  border-top: 0;
}

/* The sketch, a little smaller so it fits a narrower pane. */
.sk-board {
  position: absolute;
  inset: 0 auto auto 0;
  width: 540px;
  height: 700px;
  transform: scale(0.86);
  transform-origin: 0 0;
  pointer-events: none;
}

/* ── P3: threads on the left, a breadcrumb over flat panes, surfaces on the right ── */

.tw[data-look="p3"] .pm-side {
  width: 236px;
}
.tw[data-look="p3"] .pm-search {
  margin: 8px 10px 4px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
}
.tw[data-look="p3"] .pm-gname {
  padding: 14px 18px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-faint);
}
.tw[data-look="p3"] .pm-row {
  height: 48px;
  margin: 1px 8px;
  width: calc(100% - 16px);
  padding: 0 10px;
  border-radius: 8px;
}
.tw[data-look="p3"] .pm-row .mk {
  order: 2;
  margin-left: auto;
}
.tw[data-look="p3"] .pm-name {
  font-size: 13px;
}
.tw[data-look="p3"] .pm-sub {
  display: block;
  font-size: 11.5px;
  color: var(--c-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tw[data-look="p3"] .pm-crumb {
  display: flex;
  height: 40px;
  flex: none;
  background: var(--c-bar);
  border-bottom: 1px solid var(--c-edge);
}
.tw[data-look="p3"] .cr-p3 {
  display: flex;
  flex: 1;
  padding: 0 12px;
}
.tw[data-look="p3"] .pm-tabs {
  height: 34px;
  background: var(--c-win);
}
.tw[data-look="p3"] .pm-tab {
  background: none;
  border-right: 0;
  box-shadow: inset 0 -2px var(--c-accent);
}
.tw[data-look="p3"] .pm-tab b {
  font-size: 13px;
}
.tw[data-look="p3"] .pm-surf {
  display: flex;
  flex-direction: column;
  width: 236px;
  flex: none;
  background: var(--c-side);
  border-left: 1px solid var(--c-edge);
}

/* ── P-Rex: rounded cards over the wallpaper, the views as tiles ── */

.tw[data-look^="p-rex"] .pm {
  gap: 10px;
  padding: 10px;
  background: transparent;
}
.tw[data-look^="p-rex"] .pm-center,
.tw[data-look^="p-rex"] .pm-main {
  gap: 10px;
}
.tw[data-look^="p-rex"] .pm-side {
  width: 262px;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--c-line);
}
.tw[data-look^="p-rex"] .pm-pane {
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--c-win);
  box-shadow:
    0 0 0 1px var(--c-line),
    0 20px 50px -24px rgba(0, 0, 0, 0.7);
}
.tw[data-look^="p-rex"] .pm-web {
  order: -1;
}
.tw[data-look^="p-rex"] .pm-top {
  border: 0;
}
.tw[data-look^="p-rex"] .pm-search {
  margin: 0 10px 4px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: var(--c-well);
}
.tw[data-look^="p-rex"] .pm-gname {
  padding: 12px 18px 6px;
  font-size: 12px;
  color: var(--c-faint);
}
.tw[data-look^="p-rex"] .pm-row {
  height: 44px;
  margin: 2px 8px;
  width: calc(100% - 16px);
  padding: 0 12px 0 7px;
  border-radius: 12px;
}
.tw[data-look^="p-rex"] .pm-row.is-on {
  border-radius: 999px;
}
.tw[data-look^="p-rex"] .pm-row .mk {
  order: 2;
  margin-left: auto;
}
.tw[data-look^="p-rex"] .pm-tile {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  font: 700 13px/1 ui-monospace, Menlo, monospace;
  color: #a4532a;
  background: #f3e6d3;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.tw[data-look^="p-rex"] .pm-row.is-on .pm-tile {
  border-radius: 50%;
}
.tw[data-look^="p-rex"] .pm-tile-zsh {
  color: #7ccf8a;
  background: #2b3440;
}
.tw[data-look^="p-rex"] .pm-tile-codex {
  color: #2d2d2d;
}
.tw[data-look^="p-rex"] .pm-tile-pi {
  color: #6c5fc7;
}
.tw[data-look^="p-rex"] .pm-tabs {
  height: 46px;
  padding: 0 10px 0 8px;
  background: transparent;
  border: 0;
}
.tw[data-look^="p-rex"] .pm-tab {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--c-sel);
}
.tw[data-look^="p-rex"] .pm-tab b {
  font-size: 13px;
}
.tw[data-look^="p-rex"] .pm-url {
  margin: 0 10px 8px;
  border-radius: 12px;
}
.tw[data-look^="p-rex"] .pm-statusbar {
  background: transparent;
}
.tw[data-look^="p-rex"] .pm-docks .dock {
  margin: 8px 10px 0;
  border: 0;
  border-radius: 14px;
  background: var(--c-well);
  box-shadow: 0 0 0 1px var(--c-line);
  overflow: hidden;
}
.tw[data-look^="p-rex"] .pm-foot {
  border: 0;
}
.tw[data-look^="p-rex"] .sim,
.tw[data-look^="p-rex"] .ch {
  background: transparent;
}
.tw[data-look^="p-rex"] .sim-bar {
  border: 0;
}
.tw[data-look^="p-rex"] .ch-kpi,
.tw[data-look^="p-rex"] .ch-card {
  border-radius: 14px;
}

/* With the side bar hidden: the views across the top, a queue under the panes, perf in a corner. */
.tw[data-look="p-rex-mocha"] .pm-side {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  transform: translateX(calc(-100% - 20px));
  opacity: 0;
}
.tw[data-look="p-rex-mocha"] .pm-crumb {
  display: flex;
  height: 34px;
  flex: none;
}
.tw[data-look="p-rex-mocha"] .cr-track {
  display: flex;
  padding-left: 8px;
}
.tw[data-look="p-rex-mocha"] .cr-track .lights {
  margin-right: 6px;
}
.tw[data-look="p-rex-mocha"] .pm-queue {
  display: flex;
  border-radius: 16px;
  background: var(--c-win);
  box-shadow: 0 0 0 1px var(--c-line);
  animation: tw-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.tw[data-look="p-rex-mocha"] .pm-perf {
  display: block;
  animation: tw-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}
.tw[data-look="p-rex-mocha"] .pm-pane {
  border-radius: 24px;
}
.tw[data-look="p-rex-mocha"] .ch {
  gap: 8px;
  padding: 4px 12px 10px;
}
/* Minimal: no side bar, no wallpaper, no glass. A quiet bar with the agents along the top and
   the agent you are on, centred, in plain monochrome. */
.tw[data-look="minimal"] {
  --c-win: #0c0c0d;
  --c-side: #0c0c0d;
  --c-edge: #1b1b1d;
  --c-line: #1b1b1d;
  --c-dim: #6f6f75;
  --c-text: #b4b4ba;
  --c-bright: #ededef;
  --c-sel: #18181a;
  --c-hover: #141416;
  --c-bar: #0c0c0d;
  --c-tab: #0c0c0d;
  --c-well: #0c0c0d;
  --c-bar2: #141416;
  --c-term: #c8c8cd;
  --c-faint: #55555b;
  --c-box: #2a2a2e;
  --c-box-hi: #8a8a90;
  --c-ph: #4a4a50;
  --c-working: #a8a8ae;
  --c-blocked: #d6d6da;
  --c-done: #8a8a90;
  --c-accent: #ededef;
  --c-accent-fg: #0c0c0d;
  --c-paper: #111113;
  --c-ink: #ededef;
  --t-ok: #a8a8ae;
  --t-warn: #d6d6da;
  --t-err: #d6d6da;
  --t-code: #ededef;
  --t-add: #c8c8cd;
  --t-add-bg: rgba(255, 255, 255, 0.05);
  --t-del: #7a7a80;
  --t-del-bg: transparent;
  --pi-user: #141416;
  --pi-tool: #111113;
}
.tw[data-look="minimal"] .tw-k {
  background: #0c0c0d;
}
.tw[data-look="minimal"] .pm-side {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  opacity: 0;
}
.tw[data-look="minimal"] .pm-crumb {
  display: flex;
  justify-content: center;
  height: 44px;
  flex: none;
}
.tw[data-look="minimal"] .cr-track {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 2px;
  padding: 0 16px;
}
.tw[data-look="minimal"] .cr-track .lights {
  position: absolute;
  left: 16px;
}
.tw[data-look="minimal"] .cr-track .lights i {
  background: #2a2a2e;
}
.tw[data-look="minimal"] .cr-track .pm-ic {
  display: none;
}
.tw[data-look="minimal"] .cr-pill {
  height: 26px;
  padding: 0 10px !important;
  font-size: 12.5px;
  color: var(--c-dim) !important;
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
}
.tw[data-look="minimal"] .cr-pill .mk {
  display: none;
}
.tw[data-look="minimal"] .cr-pill.is-on {
  color: var(--c-bright) !important;
  background: var(--c-sel) !important;
}
.tw[data-look="minimal"] .pm-tabs,
.tw[data-look="minimal"] .pm-web,
.tw[data-look="minimal"] .pm-perf,
.tw[data-look="minimal"] .pm-queue {
  display: none;
}
.tw[data-look="minimal"] .pm-body {
  padding: 28px 190px 28px;
}
@keyframes tw-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}
.tw[data-look="p3"] .pm-surf {
  animation: tw-from-right 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.tw[data-look="p3"] .pm-crumb {
  animation: tw-drop 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes tw-from-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
}
@keyframes tw-drop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dog,
  .dog-walk,
  .dog-b {
    animation: none;
  }
}
