/* Project desk — namespaced, dependency-free, with readable static fallbacks. */
.workbench {
  --wb-ink: #242336;
  --wb-muted: #716f81;
  --wb-line: #d9d6e5;
  --wb-blue: #5046db;
  --wb-x: 10px;
  --wb-y: 10px;
  color: var(--wb-ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  width: 100%;
  min-width: 0;
  border: 1px solid #d9d5e7;
  border-radius: 22px;
  background: #eeebf8;
  box-shadow: 0 20px 65px #39345e10;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
}
.workbench *,
.workbench *::before,
.workbench *::after {
  box-sizing: border-box;
}
.workbench h2,
.workbench h3,
.workbench p,
.workbench figure {
  margin: 0;
}
.workbench button,
.workbench a {
  -webkit-tap-highlight-color: transparent;
}
.workbench button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.workbench a {
  color: inherit;
  text-decoration: none;
}
.workbench button:focus-visible,
.workbench a:focus-visible {
  outline: 3px solid var(--wb-blue);
  outline-offset: 3px;
}
.workbench [hidden] {
  display: none !important;
}
.workbench .wb-heading {
  min-height: 56px;
  padding: 17px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #d9d5e7;
  background: #f7f5fd;
}
.workbench .wb-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.workbench .wb-heading h2 {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.1px;
  color: var(--wb-ink);
}
.workbench .wb-heading-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b77d0;
  box-shadow: 0 0 0 4px #e8e2f8;
}
.workbench .wb-desk-label {
  color: #847c9e;
  font:
    9px/1.5 ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 0.7px;
  white-space: nowrap;
}
.workbench .wb-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 0;
}
.workbench .wb-picker {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
}
.workbench .wb-picker button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  background: #e5e0f1;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 600;
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
.workbench .wb-picker button:hover {
  background: #fff;
}
.workbench .wb-picker button[aria-pressed="true"] {
  background: #fff;
  border-color: #d4cde5;
  box-shadow: 0 2px 4px #48406b08;
}
.workbench .wb-picker button > span {
  color: #7761bd;
  font-size: 11px;
}
.workbench .wb-actions {
  display: flex;
  gap: 3px;
  flex: none;
}
.workbench .wb-actions button {
  display: grid;
  place-items: center;
  height: 30px;
  width: 30px;
  padding: 0;
  border: 1px solid #d6d0e4;
  border-radius: 7px;
  background: #f5f2fc;
  font-size: 18px;
  line-height: 1;
}
.workbench .wb-actions button:hover {
  background: #fff;
  color: var(--wb-blue);
}
.workbench .wb-instructions {
  padding: 10px 20px 0;
  color: #847c9e;
  font-size: 9px;
  line-height: 1.6;
}
.workbench .wb-stage {
  padding: 20px;
  display: grid;
  gap: 18px;
  min-width: 0;
}
.workbench .wb-stage-note {
  display: none;
}
.workbench .wb-window {
  min-width: 0;
  width: 100%;
  border: 1px solid #353244;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    3px 4px 0 #3f365820,
    0 10px 25px #423d5b10;
  overflow: hidden;
}
.workbench .wb-titlebar {
  width: 100%;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid #353244;
  border-radius: 0;
  background: #f9f8fc;
  font:
    10px/1.3 ui-monospace,
    SFMono-Regular,
    monospace;
  color: #615c74;
  text-align: left;
  cursor: default;
}
.workbench .wb-titlebar:disabled {
  opacity: 1;
}
.workbench .wb-titlebar > span:nth-child(2) {
  flex: 1;
  text-align: center;
}
.workbench .wb-window-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.workbench .wb-window-dots i {
  width: 5px;
  height: 5px;
  border: 1px solid #9691a6;
  border-radius: 50%;
  display: block;
}
.workbench .wb-window-grip {
  font-size: 14px;
  color: #9b94b0;
}
.workbench .wb-window-body {
  min-width: 0;
}
.workbench .wb-project-label {
  font-size: 7px;
  line-height: 1.7;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: #66606d;
}
.workbench .wb-window h3 {
  font-family: inherit;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.85px;
  font-weight: 800;
  margin-top: 8px;
  color: var(--wb-ink);
}
.workbench .wb-project-link {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 5px 0;
  font-size: 10px;
  line-height: 1.5;
  border-bottom: 1px solid #a7a1b5;
  font-weight: 600;
}
.workbench .wb-project-link:hover {
  color: var(--wb-blue);
  border-color: var(--wb-blue);
}
.workbench .wb-project-link > span {
  font-size: 14px;
}
.workbench .wb-cherry-body {
  background: #dceb98;
  padding: 22px 17px 21px;
  position: relative;
  min-height: 273px;
  overflow: hidden;
}
.workbench .wb-cherry-copy {
  position: relative;
  z-index: 1;
  width: 66%;
}
.workbench .wb-cherry-copy h3 {
  max-width: 130px;
  font-size: 24px;
}
.workbench .wb-big-number {
  font-weight: 800;
  font-size: 37px;
  letter-spacing: -2px;
  line-height: 1;
  margin-top: 21px;
}
.workbench .wb-big-number span {
  font-size: 25px;
  letter-spacing: -0.9px;
}
.workbench .wb-number-caption {
  font-size: 8px;
  color: #4a563a;
  margin-top: 5px;
}
.workbench .wb-project-stack {
  font-size: 8px;
  color: #4e593c;
  margin-top: 21px;
  max-width: 120px;
  line-height: 1.7;
}
.workbench .wb-cherry .wb-project-link {
  margin-top: 8px;
  font-size: 9px;
  gap: 10px;
}
.workbench .wb-phone {
  position: absolute;
  width: 92px;
  right: -5px;
  top: 72px;
  border: 3px solid #242336;
  border-radius: 14px;
  transform: rotate(9deg);
  overflow: hidden;
  background: #15131e;
  box-shadow: 0 6px 20px #25301b28;
}
.workbench .wb-phone img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}
.workbench .wb-sotto-body {
  background: #e9f0fa;
  padding: 19px 21px 16px;
  min-height: 202px;
}
.workbench .wb-sotto h3 {
  margin-top: 5px;
  font-size: 23px;
}
.workbench .wb-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
}
.workbench .wb-flow > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  line-height: 1.4;
  color: #6d7291;
}
.workbench .wb-flow i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #bbc9e0;
  background: #f7faff;
  font-style: normal;
  color: #4d64ad;
  font-size: 20px;
}
.workbench .wb-flow > span:nth-of-type(2) i {
  color: #f7faff;
  background: #617bc6;
  border-color: #617bc6;
}
.workbench .wb-flow b {
  font-weight: 400;
  font-size: 18px;
  color: #9cadca;
  margin-top: -15px;
}
.workbench .wb-window-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.workbench .wb-window-bottom > span {
  font-size: 7px;
  color: #73788b;
  max-width: 105px;
  line-height: 1.7;
}
.workbench .wb-window-bottom .wb-project-link {
  font-size: 9px;
  gap: 7px;
  white-space: nowrap;
}
.workbench .wb-books-body {
  background: #f8dfd8;
  display: grid;
  grid-template-columns: 1fr 94px;
  padding: 20px 18px;
  gap: 13px;
  min-height: 182px;
  align-items: center;
}
.workbench .wb-books h3 {
  font-size: 20px;
  letter-spacing: -0.65px;
}
.workbench .wb-book-links {
  margin-top: 11px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1px;
}
.workbench .wb-book-links .wb-project-link {
  padding: 2px 0;
  font-size: 9px;
  gap: 10px;
}
.workbench .wb-book-art {
  position: relative;
  background: #4d3dd7;
  color: #fff9ef;
  height: 132px;
  border-radius: 2px 6px 6px 2px;
  padding: 14px 11px;
  transform: perspective(700px) rotateY(-17deg) rotateZ(8deg);
  box-shadow:
    6px 5px 0 #ece6e1,
    7px 6px 0 #6e5d7a,
    10px 10px 17px #573f7933;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.workbench .wb-book-art::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 3px;
  width: 4px;
  background: #8b7af455;
}
.workbench .wb-book-art > span {
  font-size: 9px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.1px;
  position: relative;
  z-index: 1;
}
.workbench .wb-book-art > i {
  width: 90px;
  height: 90px;
  position: absolute;
  right: -50px;
  bottom: 15px;
  border: 1px solid #aca2ff;
  border-radius: 50%;
}
.workbench .wb-book-art > i::after {
  content: "";
  width: 60px;
  height: 60px;
  border: 1px solid #aca2ff;
  border-radius: 50%;
  position: absolute;
  right: 14px;
  top: 14px;
}
.workbench .wb-book-art > small {
  font:
    6px/1.4 ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 0.5px;
}
.workbench .wb-footer {
  min-height: 39px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f5fd;
  border-top: 1px solid #d9d5e7;
  color: #817b94;
}
.workbench .wb-footer p {
  font-size: 8px;
  line-height: 1.5;
  min-width: 0;
}
.workbench .wb-current-dot {
  width: 5px;
  height: 5px;
  background: #8375b1;
  border-radius: 50%;
  flex: none;
}
.workbench .wb-key-hint {
  margin-left: auto;
  font:
    10px/1 ui-monospace,
    SFMono-Regular,
    monospace;
  color: #9187ab;
  white-space: nowrap;
}
.workbench.workbench-ready:not(.is-mobile) .wb-stage {
  height: 440px;
  position: relative;
  padding: 0;
  display: block;
  overflow: hidden;
}
.workbench.workbench-ready:not(.is-mobile) .wb-window {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(var(--wb-x), var(--wb-y))
    rotate(var(--wb-rotation, 0deg));
  transform-origin: center center;
  width: 242px;
  will-change: auto;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.workbench.workbench-ready:not(.is-mobile) .wb-sotto {
  width: 300px;
}
.workbench.workbench-ready:not(.is-mobile) .wb-books {
  width: 305px;
}
.workbench.workbench-ready:not(.is-mobile) .wb-titlebar {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.workbench.workbench-ready:not(.is-mobile) .wb-stage-note {
  display: block;
  position: absolute;
  right: 23px;
  top: 115px;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  color: #b3a9c8;
  transform: rotate(9deg);
  text-align: center;
  pointer-events: none;
}
.workbench .wb-stage-note > span {
  display: block;
  font-size: 24px;
  margin-top: 7px;
}
.workbench.workbench-ready .wb-window.is-active {
  border-color: #5149b3;
  box-shadow:
    4px 6px 0 #9f91cd2b,
    0 16px 24px #423d5b1c;
}
.workbench.workbench-ready .wb-window.is-dragging {
  box-shadow:
    6px 11px 0 #9f91cd24,
    0 22px 35px #423d5b24;
}
.workbench.workbench-ready .wb-window.is-dragging .wb-titlebar {
  cursor: grabbing;
}
.workbench.is-moving {
  user-select: none;
}
.workbench.workbench-ready.is-mobile .wb-stage {
  display: block;
  padding: 14px 16px 19px;
  min-height: 335px;
}
.workbench.workbench-ready.is-mobile .wb-window {
  transform: none;
  position: relative;
  width: 100%;
}
.workbench.workbench-ready.is-mobile .wb-titlebar {
  cursor: default;
}
.workbench.workbench-ready.is-mobile .wb-window-grip {
  visibility: hidden;
}
.workbench.workbench-ready.is-mobile .wb-cherry-body {
  min-height: 273px;
}
.workbench.workbench-ready.is-mobile .wb-phone {
  width: 110px;
  right: 19px;
  top: 51px;
}
.workbench.workbench-ready.is-mobile .wb-cherry-copy {
  width: 61%;
}
.workbench.workbench-ready.is-mobile .wb-sotto-body {
  padding: 23px;
  min-height: 273px;
}
.workbench.workbench-ready.is-mobile .wb-sotto h3 {
  font-size: 28px;
}
.workbench.workbench-ready.is-mobile .wb-flow {
  margin-top: 25px;
}
.workbench.workbench-ready.is-mobile .wb-flow i {
  width: 45px;
  height: 45px;
  font-size: 24px;
}
.workbench.workbench-ready.is-mobile .wb-window-bottom {
  margin-top: 29px;
}
.workbench.workbench-ready.is-mobile .wb-books-body {
  min-height: 273px;
  grid-template-columns: 1fr 94px;
  padding-inline: 22px;
  gap: 12px;
}
.workbench.workbench-ready.is-mobile .wb-books h3 {
  font-size: 22px;
}
@media (max-width: 380px) {
  .workbench .wb-heading {
    padding-inline: 16px;
  }
  .workbench .wb-desk-label {
    font-size: 8px;
  }
  .workbench .wb-tools {
    padding-inline: 13px;
  }
  .workbench .wb-picker {
    gap: 4px;
  }
  .workbench .wb-picker button {
    padding: 7px 8px;
    font-size: 9px;
    gap: 5px;
  }
  .workbench.workbench-ready.is-mobile .wb-phone {
    width: 87px;
    right: 0;
    top: 71px;
  }
  .workbench.workbench-ready.is-mobile .wb-cherry-body {
    padding-left: 15px;
  }
  .workbench.workbench-ready.is-mobile .wb-books-body {
    grid-template-columns: 1fr 77px;
    padding-inline: 16px;
  }
  .workbench.workbench-ready.is-mobile .wb-books h3 {
    font-size: 19px;
  }
  .workbench .wb-book-art {
    height: 122px;
    padding-inline: 9px;
  }
  .workbench .wb-book-art > span {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .workbench *,
  .workbench *::before,
  .workbench *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Real previews give the recent projects their own visual identity. */
.workbench .wb-real-preview {
  background: #f7f5fb;
}
.workbench .wb-shot-heading {
  padding: 12px 15px 9px;
}
.workbench .wb-shot-heading h3 {
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0;
  line-height: 1.4;
}
.workbench .project-gallery-compact {
  padding: 0 12px;
}
.workbench .project-gallery-compact .preview-tabs {
  gap: 3px;
  margin-bottom: 7px;
  padding: 3px;
}
.workbench .project-gallery-compact .preview-tabs button {
  font-size: 9px;
  min-height: 25px;
  padding: 4px 6px;
  border: 0;
  flex: 1 1 auto;
}
.workbench .project-gallery-compact .preview-tabs button[aria-pressed="true"] {
  color: #5046db;
  background: white;
}
.workbench .project-gallery-compact .preview-open {
  aspect-ratio: 1.8;
  border-color: #b9b1ca;
  border-radius: 4px;
}
.workbench .project-gallery-compact .preview-open img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: contain;
}
.workbench .project-gallery-compact .preview-zoom {
  font-size: 7px;
  right: 5px;
  bottom: 5px;
  padding: 3px 6px;
  color: white;
  line-height: 1.5;
}
.workbench .project-gallery-compact .preview-caption {
  font-size: 8px;
  gap: 8px;
  margin-top: 7px;
  min-height: 26px;
  line-height: 1.6;
}
.workbench .project-gallery-compact .preview-caption a {
  font-size: 9px;
}
.workbench .project-gallery-compact .preview-caption p {
  max-width: 78%;
}
.workbench .project-gallery-compact .preview-status {
  font-size: 8px;
}
.workbench .wb-shot-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 14px;
  padding: 5px 0 10px;
  border-top: 1px solid #dfdae8;
}
.workbench .wb-shot-links .wb-project-link {
  font-size: 9px;
  min-height: 25px;
  padding: 3px 0;
}
.workbench.workbench-ready:not(.is-mobile) .wb-stage {
  height: 485px;
}
.workbench.workbench-ready:not(.is-mobile) .wb-sotto {
  width: 340px;
}
.workbench.workbench-ready:not(.is-mobile) .wb-books {
  width: 350px;
}
.workbench.workbench-ready:not(.is-mobile) .wb-stage-note {
  top: 86px;
  right: 25px;
}
.workbench.workbench-ready.is-mobile .wb-real-preview {
  min-height: 0;
  padding-bottom: 2px;
}
.workbench.workbench-ready.is-mobile .wb-shot-heading {
  padding: 15px 15px 10px;
}
.workbench.workbench-ready.is-mobile .wb-shot-heading h3 {
  font-size: 19px !important;
}
.workbench.workbench-ready.is-mobile
  .project-gallery-compact
  .preview-tabs
  button {
  font-size: 10px;
  min-height: 30px;
}
.workbench.workbench-ready.is-mobile .project-gallery-compact .preview-caption {
  font-size: 9px;
  min-height: 33px;
}
.workbench.workbench-ready.is-mobile .wb-shot-links .wb-project-link {
  font-size: 10px;
  min-height: 28px;
}
/* Project names live in the title bars; the captures get the available space. */
.workbench .wb-shot-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.workbench .wb-sotto .wb-titlebar > span:nth-child(2),
.workbench .wb-books .wb-titlebar > span:nth-child(2) {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #383049;
  letter-spacing: -0.2px;
}
.workbench .wb-real-preview {
  padding-top: 10px;
}
.workbench .project-gallery-compact .preview-open {
  aspect-ratio: 2.05;
}
.workbench.workbench-ready.is-mobile .wb-shot-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.workbench.workbench-ready.is-mobile .project-gallery-compact .preview-open {
  aspect-ratio: 1.6;
}
