/* One flat proof sheet, printed from the sample project’s original cell data. */
.pb-project, .pb-case {
  --pb-paper: #f5f4ed;
  --pb-ink: #18191b;
  --pb-blue: #2931d0;
  --pb-lemon: #f7e225;
  --pb-line: #b7b8b2;
}
.project-spread.pb-project {
  position: relative;
  color: var(--pb-ink);
  background: var(--pb-paper);
  border-radius: 0;
  border-block: 1px solid var(--pb-ink);
}
.pb-edition, .pb-console, .pb-upstage { display: block; }
.pb-upstage { position: relative; isolation: isolate; }
.pb-project .pb-title {
  position: absolute;
  z-index: 2;
  top: 13%;
  left: 3.6%;
  max-width: 30%;
  pointer-events: none;
}
.pb-project .pb-title h3 {
  font: inherit;
  font-size: clamp(70px, 9.7vw, 156px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.10em;
  margin: 0 0 .16em -.045em;
}
.pb-title p { margin: 0; font-size: clamp(16px, 1.75vw, 26px); font-weight: 570; letter-spacing: -.035em; }
.pb-imprint {
  position: absolute;
  display: grid;
  gap: .32em;
  bottom: 8%;
  left: 3.6%;
  z-index: 2;
  color: #373839;
  pointer-events: none;
}
.pb-imprint::before { content: ""; display: block; width: 39px; height: 3px; margin-bottom: 4px; background: var(--pb-ink); }
.pb-imprint strong { font-size: clamp(16px, 1.8vw, 27px); font-weight: 580; }
.pb-imprint span, .pb-case-assay figcaption span { font-family: ui-monospace, monospace; font-size: 15px; font-variant-numeric: tabular-nums; }
.pb-artboard { position: relative; overflow: hidden; aspect-ratio: 1640 / 755; }
.pb-artboard figure, .pb-artboard picture { position: absolute; inset: 0; display: block; margin: 0; }
.pb-artboard figure[hidden] { display: none; }
.pb-composite img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pb-step {
  isolation: isolate;
  background-color: var(--pb-paper);
  background-image: linear-gradient(to right, transparent 41%, #74759a66 41%, transparent calc(41% + 1px)),
                    linear-gradient(transparent 75%, #74759a66 75%, transparent calc(75% + 1px));
}
.pb-step::before {
  content: "";
  position: absolute;
  top: -5%;
  left: 51%;
  height: 111%;
  aspect-ratio: 1;
  border: 1px solid var(--pb-blue);
  border-radius: 50%;
}
.pb-step img {
  position: absolute;
  height: 89%;
  width: 60%;
  right: 5%;
  top: 5%;
  object-fit: contain;
}
.pb-source img { image-rendering: pixelated; }
.pb-mapped::before { border-radius: 0; background: #e3e4dc; border-color: #cbcec3; }
.pb-beads::before { border: 0; background: #dedecf; }
.pb-console { display: flex; align-items: stretch; justify-content: space-between; border-top: 1px solid var(--pb-ink); }
.pb-choices { display: flex; flex-wrap: wrap; gap: clamp(0px, 1vw, 16px); align-items: stretch; padding-left: 2.8%; }
.pb-choices button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 51px;
  padding: 5px clamp(9px, 1.25vw, 20px);
  font-size: 16px;
  color: #464547;
}
.pb-choices button[aria-pressed=true] { color: var(--pb-blue); font-weight: 700; box-shadow: inset 0 -3px var(--pb-blue); }
.pb-enter {
  display: inline-grid;
  place-items: center;
  min-height: 51px;
  padding: 8px clamp(20px, 3.4vw, 56px);
  text-decoration: none;
  background: var(--pb-blue);
  color: #fff;
  font-weight: 620;
  white-space: nowrap;
}
.pb-enter:hover { background: #161e9b; }
.pb-project .bead-archive { border-top: 1px solid var(--pb-line); }
.pb-project .bead-archive summary { min-height: 46px; padding-inline: 3.6%; color: var(--pb-ink); }
.pb-project .bead-archive chapter-sample { padding-inline: 3.6%; }
.pb-project .bead-archive .project-gallery { background: #e7e8df; border-color: var(--pb-line); border-radius: 0; }
.pb-project .bead-archive .gallery-choices { background: var(--pb-paper); border-top: 1px solid var(--pb-line); }
.pb-project .bead-archive .gallery-choices button { color: var(--pb-ink); }
.pb-project .bead-archive .gallery-choices button[aria-pressed=true] { color: var(--pb-blue); }
.pb-project :is(a,button,summary):focus-visible { outline: 2px solid var(--pb-blue); outline-offset: -4px; }
.pb-project .pb-enter:focus-visible { outline-color: var(--pb-lemon); }

#panel:has(.pb-case) { border-radius: 0; background: #f5f4ed; }
#panel:has(.pb-case) .reader-index { border-color: #26262c; background: #f5f4edfa; }
#panel:has(.pb-case) .reader-index button[aria-current=location] { color: #2931d0; }
#panel:has(.pb-case) .reader-index button[aria-current=location]::after { height: 3px; border-radius: 0; }
.bd-case.pb-case {
  --bd-ink: var(--pb-ink);
  --bd-muted: #53534f;
  --bd-line: #b7b8b2;
  --bd-wash: #e9e9df;
  --bd-accent: var(--pb-blue);
  max-width: none;
}
.pb-case .pb-case-intro { padding: 0; }
.pb-case-mast {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--pb-ink);
}
.bd-case.pb-case .pb-case-mast h2 { margin: 0 0 0 -.045em; font-size: clamp(62px, 9vw, 108px); line-height: 1.05; letter-spacing: -.11em; font-weight: 810; }
.bd-case.pb-case .pb-case-mast .bd-lead { color: var(--pb-ink); font-size: clamp(18px, 2.1vw, 29px); letter-spacing: -.04em; }
.pb-case-assay { position: relative; isolation: isolate; }
.pb-case-assay picture, .pb-case-assay img { display: block; width: 100%; }
.pb-case-assay img { height: auto; aspect-ratio: 1400 / 567; object-fit: cover; }
.pb-assay-keys {
  position: absolute;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-items: center;
  inset: 0 0 0 5.8%;
  height: calc(100% - 42px);
  pointer-events: none;
}
.pb-assay-keys span { width: fit-content; padding: 2px 6px; font-size: clamp(16px, 1.7vw, 22px); font-weight: 630; color: var(--pb-ink); background: var(--pb-paper); }
.pb-assay-keys span:nth-child(2) { color: #fff; background: #242428; }
.pb-case-assay figcaption { display: flex; gap: 12px; justify-content: space-between; align-items: center; min-height: 42px; border-bottom: 1px solid var(--pb-ink); }
.pb-case-assay figcaption strong { font-size: 18px; }
.pb-case .bd-heading h3 { font-size: clamp(32px, 4.4vw, 57px); font-weight: 760; letter-spacing: -.075em; }
.pb-case .bd-heading { border-bottom: 2px solid var(--pb-ink); padding-bottom: 12px; margin-bottom: 0; }
.pb-case .bd-chapter { margin-top: clamp(44px, 6vw, 72px); }
.pb-case .bd-lab, .pb-case .bd-boards, .pb-case .bd-native-layout { border: 0; border-bottom: 1px solid var(--pb-ink); border-radius: 0; background: transparent; }
.pb-case .bd-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(208px, .88fr);
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "head head" "sheet views" "sheet tools" "read read" "hint hint" "status status";
  gap: 0;
  padding: 0;
}
.pb-case .bd-lab-top { grid-area: head; padding-block: 12px; border-bottom: 1px solid var(--pb-line); }
.pb-case .bd-viewbar { grid-area: views; align-content: start; align-items: flex-start; display: grid; justify-content: stretch; gap: 8px; padding: 17px 0 10px 18px; margin: 0; }
.pb-case .bd-sheet, .pb-case .bd-board-view {
  border-radius: 0;
  background-color: #e7e7dd;
  background-image: linear-gradient(#2931d013 1px, transparent 1px), linear-gradient(90deg, #2931d013 1px, transparent 1px);
  background-size: 18px 18px;
}
.pb-case .bd-sheet { grid-area: sheet; height: clamp(330px, 43vw, 435px); padding: 17px; border-right: 1px solid var(--pb-line); }
.pb-case .bd-readouts { grid-area: read; margin: 0; border-top: 1px solid var(--pb-line); padding: 8px 0; }
.pb-case .bd-controls { grid-area: tools; align-self: start; align-items: start; display: grid; gap: 14px; padding: 6px 0 17px 18px; }
.pb-case .bd-operation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 7px; }
.pb-case .bd-operation label { color: var(--pb-ink); }
.pb-case .bd-operation select { width: 100%; min-width: 0; border: 1px solid var(--pb-line); border-radius: 0; padding-inline: 5px; background: #fffcf3; }
.pb-case .bd-hint { grid-area: hint; margin: 0; padding: 5px 0 8px; }
.pb-case .bd-live { grid-area: status; margin: 0; padding: 4px 0 10px; }
.pb-case .bd-boards { padding: 15px 0; }
.pb-case .bd-board-grid { grid-template-columns: minmax(0, 1.16fr) minmax(205px, .84fr); gap: 22px; }
.pb-case .bd-board-view { border-block: 1px solid var(--pb-line); }
.pb-case .bd-viewbar .bd-tabs, .pb-case .bd-board-list { border: 0; padding: 0; gap: 0; border-radius: 0; background: transparent; }
.pb-case button { min-height: 44px; color: var(--pb-ink); background: transparent; border: 1px solid #a5a7a1; border-radius: 0; padding: 6px 12px; }
.pb-case :is(.bd-viewbar,.bd-board-list) button { min-height: 44px; border: 1px solid var(--pb-line); color: var(--pb-ink); box-shadow: none; border-radius: 0; }
.pb-case :is(.bd-tabs,.bd-board-list) button + button { margin-left: -1px; }
.pb-case .bd-tabs button[aria-pressed=true], .pb-case .bd-board-list button[aria-pressed=true], .pb-case .bd-viewbar>button[aria-pressed=true] { color: #fff; background: var(--pb-blue); border-color: var(--pb-blue); box-shadow: none; }
.pb-case .bd-viewbar>button { width: fit-content; min-height: 44px; }
.pb-case .bd-actions { gap: 5px; }
.pb-case .bd-actions button { padding-inline: 10px; }
.pb-case button.bd-primary { color: var(--pb-ink); background: var(--pb-lemon); border-color: var(--pb-ink); }
.pb-case .bd-inventory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.pb-case .bd-inventory button {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid var(--pb-line);
  border-radius: 0;
  background: transparent;
  color: var(--pb-ink);
  font-variant-numeric: tabular-nums;
}
.pb-case .bd-inventory button::before { border-radius: 0; width: 13px; height: 13px; box-shadow: inset 0 0 0 1px #34343a44; }
.pb-case .bd-inventory button[aria-pressed=true] { color: var(--pb-blue); box-shadow: inset 0 -2px var(--pb-blue); }
.pb-case .bd-exports { border-color: var(--pb-line); }
.pb-case .bd-exports button { color: var(--pb-blue); border-color: var(--pb-blue); }
.pb-case .pb-board-reference { margin: 14px 0; }
.pb-case .pb-board-reference summary { cursor: pointer; min-height: 44px; display: list-item; align-content: center; font-weight: 550; }
.pb-board-reference img { display: block; width: min(100%, 690px); height: auto; margin-inline: auto; }
.pb-case .bd-native-layout { padding: 0; gap: 0; align-items: stretch; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.pb-case .bd-native-layout figure { background: linear-gradient(150deg, transparent 65%, #f7e225 65.1%, #f7e225 66.7%, transparent 66.8%), radial-gradient(circle closest-side at 49% 51%, #2931d0 98%, transparent), #dedfd6; padding: 20px; }
.pb-case .bd-native-layout figure img { border-radius: 0; box-shadow: 6px 7px 0 #18191b; }
.pb-case .bd-native-layout figcaption { color: var(--pb-ink); }
.pb-case .bd-native-files { align-self: center; padding: 20px clamp(15px, 2.8vw, 38px); }
.pb-case .bead-project-file, .pb-case .rc-work a { color: var(--pb-blue); }
.pb-case :is(button, select, canvas, summary, a):focus-visible { outline: 3px solid var(--pb-blue); outline-offset: 2px; }
@media (hover:hover) {
  .pb-case button:not(:disabled):hover { color: var(--pb-ink); border-color: var(--pb-ink); background: #e1e1d9; }
  .pb-case button.bd-primary:not(:disabled):hover { background: #ffec51; color: var(--pb-ink); }
}
@media (max-width: 700px) {
  .pb-project .pb-title { top: 7%; left: 4%; max-width: 48%; }
  .pb-project .pb-title h3 { font-size: clamp(60px, 14vw, 96px); }
  .pb-title p { font-size: clamp(15px, 3.5vw, 19px); width: fit-content; background: var(--pb-paper); }
  .pb-artboard { aspect-ratio: 760 / 744; }
  .pb-imprint { position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 11px; padding: 7px 4%; border-top: 1px solid var(--pb-line); }
  .pb-imprint::before { display: none; }
  .pb-imprint strong { font-size: 16px; }
  .pb-imprint span { font-size: 14px; }
  .pb-step img { width: 78%; height: 74%; right: 8%; top: 23%; }
  .pb-step::before { height: 74%; left: 32%; top: 19%; }
  .pb-choices { gap: 0; padding-left: 2%; }
  .pb-choices button { min-height: 47px; font-size: 15px; padding-inline: clamp(6px, 2vw, 12px); }
  .pb-enter { min-height: 47px; font-size: 15px; padding-inline: clamp(11px, 3vw, 20px); }
  .pb-case-assay img { aspect-ratio: 1; }
  .pb-case .bd-lab {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "head" "views" "sheet" "read" "tools" "hint" "status";
  }
  .pb-case .bd-lab-top { padding-block: 9px; }
  .pb-case .bd-viewbar { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; }
  .pb-case .bd-sheet { height: clamp(218px, 65vw, 356px); padding: 10px; border-inline: 0; }
  .pb-case .bd-controls { padding: 0 0 13px; grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .pb-case .bd-operation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pb-case .bd-board-grid { grid-template-columns: 1fr; gap: 12px; }
  .pb-case .bd-board-list button { padding-inline: 5px; white-space: nowrap; }
  .pb-case .bd-sheet, .pb-case .bd-board-view { border-radius: 0; }
}
@media (max-width: 430px) {
  .pb-case .bd-native-layout { grid-template-columns: 1fr; }
  .pb-case .bd-native-files { padding-inline: 0; }
  .pb-case .bd-files button { padding-inline: 9px; }
  .pb-case .pb-case-mast { row-gap: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .pb-artboard figure[data-enter] { animation: pb-reveal .26s ease-out both; }
  @keyframes pb-reveal { from { opacity: .65; clip-path: inset(0 0 4%); } }
}
.pb-case .pb-dye {
  display: grid;
  grid-template-columns: minmax(50px, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-block: 1px solid var(--pb-line);
  padding-block: 7px;
  color: var(--pb-ink);
  line-height: 1;
}
.pb-case .pb-dye i {
  display: block;
  height: 26px;
  background: linear-gradient(to right, var(--pb-pigment) 67%, transparent 67%),
              radial-gradient(circle at calc(100% - 14px) 50%, transparent 4px, var(--pb-pigment) 4.5px 12px, transparent 12.5px);
}
.pb-case .pb-dye code { font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .pb-case .pb-dye { align-self: start; padding-block: 4px; }
  .pb-case .pb-dye i { height: 18px; }
}
