/* The project showcase is isolated from the rest of Sakura Studio. */
#projects {
  position: relative;
  isolation: isolate;
  --showcase-ink: #23282b;
  --showcase-muted: #50565a;
  --showcase-line: #dfdbe2;
  --showcase-paper: #fff;
  --showcase-soft: #f8f7f9;
  --showcase-pink: #d82d60;
  --showcase-blush: #fceaf1;
  --showcase-green: #087a5c;
  --showcase-mint: #e8f7ef;
  color: var(--showcase-ink);
  letter-spacing: 0;
}
html[data-theme="starfield"] #projects {
  --showcase-ink: #edf3f5;
  --showcase-muted: #aebac5;
  --showcase-line: #3c4955;
  --showcase-paper: #151d25;
  --showcase-soft: #1d2832;
  --showcase-pink: #f29abb;
  --showcase-blush: #382432;
  --showcase-green: #79d9b5;
  --showcase-mint: #173a32;
}
#projects .showcase-toolbar { display: flex; justify-content: flex-end; margin-bottom: 24px; }
#projects .project-filters { margin: 0; gap: 0; border-bottom: 1px solid var(--showcase-line); }
#projects .project-filters button { min-height: 36px; min-width: 64px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 5px 16px; background: transparent; color: var(--showcase-muted); }
#projects .project-filters button[aria-pressed="true"] { border-color: var(--showcase-pink); color: var(--showcase-pink); }
#projects .showcase-list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 42px; max-width: 1040px; margin-inline: auto; }
#projects .showcase-project { min-width: 0; position: relative; scroll-margin-top: 110px; }
#projects .showcase-project.is-filter-entering { animation: resultIn 200ms ease both; }
#projects .showcase-project.is-proof-target { outline: 2px solid var(--showcase-pink); outline-offset: 8px; }
#projects .showcase-rule { display: flex; align-items: center; gap: 22px; color: var(--showcase-pink); font-size: 17px; font-weight: 600; line-height: 1.4; margin: 0 0 28px; }
#projects .showcase-rule::after { content: ""; height: 1px; flex: 1; background: var(--showcase-pink); opacity: .65; }
#projects .showcase-rule i { order: 1; width: 13px; height: 8px; background: #ed8eae; border-radius: 85% 0 85% 0; transform: rotate(-18deg); }
#projects .protocol-heading { position: relative; padding: 0 0 26px; }
#projects h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 50px; line-height: 1.12; margin: 0 0 16px; letter-spacing: 0; overflow-wrap: anywhere; }
#projects .protocol-heading h3 { font-size: 68px; margin-bottom: 4px; }
#projects [data-project="ethereum"] h3 { font-size: 46px; }
#projects .project-title { color: inherit; font: inherit; }
#projects .project-title:hover { color: var(--showcase-pink); }
#projects .protocol-subtitle { font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1.3; max-width: 75%; margin: 0 0 16px; }
#projects .project-teaser { font-size: 18px; line-height: 1.65; font-weight: 500; margin: 0 0 28px; color: var(--showcase-ink); }
#projects .protocol-heading .project-teaser { margin-bottom: 0; max-width: 78%; }
#projects .showcase-floral { display: block; position: absolute; height: auto; object-fit: contain; pointer-events: none; user-select: none; }
#projects .showcase-garden { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; user-select: none; }
#projects .garden-rail { position: absolute; top: 0; bottom: 0; width: clamp(0px, calc((100% - 1080px) / 2), 270px); overflow: hidden; }
#projects .garden-rail-left { left: 0; }
#projects .garden-rail-right { right: 0; }
#projects .garden-branch { width: 280px; opacity: .28; }
#projects .garden-bloom { width: 120px; opacity: .22; }
#projects .garden-rail-left .garden-branch { left: -112px; top: 23%; transform: scaleX(-1) rotate(-24deg); }
#projects .garden-rail-left .garden-bloom { left: 22px; top: 74%; transform: rotate(-32deg); }
#projects .garden-rail-right .garden-branch { right: -108px; top: 54%; transform: rotate(-28deg); }
#projects .garden-rail-right .garden-bloom { right: 18px; top: 13%; transform: rotate(26deg); }
#projects .showcase-blossom { top: -30px; right: -8px; width: 270px; opacity: .94; }
#projects .showcase-petals { position: absolute; inset: 0; pointer-events: none; user-select: none; }
#projects .showcase-petals i { position: absolute; display: block; width: 14px; height: 9px; border-radius: 90% 10% 80% 20%; background: #f5b2c9; border-bottom: 1px solid #df7c9f; opacity: .68; rotate: -23deg; animation: showcasePetalSway 9s ease-in-out infinite alternate; }
#projects .showcase-petals i:nth-child(2) { width: 10px; height: 6px; rotate: 27deg; opacity: .42; animation-delay: -4s; animation-duration: 11s; }
#projects .showcase-petals i:nth-child(3) { width: 12px; height: 7px; rotate: -42deg; opacity: .54; animation-delay: -7s; animation-duration: 13s; }
#projects .showcase-petals i:nth-child(4) { left: 42%; top: 10%; width: 10px; height: 6px; rotate: 18deg; opacity: .48; animation-delay: -3s; }
#projects .showcase-petals i:nth-child(5) { left: 74%; top: 45%; width: 16px; height: 10px; background: #ffe4ee; rotate: -8deg; opacity: .75; animation-delay: -6s; animation-duration: 12s; }
#projects .showcase-petals i:nth-child(6) { left: 25%; top: 65%; width: 8px; height: 5px; rotate: 38deg; opacity: .4; animation-delay: -8s; }
#projects .showcase-petals i:nth-child(7) { right: 17%; top: 70%; width: 9px; height: 6px; background: #fff0f5; rotate: -48deg; opacity: .85; animation-delay: -1s; animation-duration: 14s; }
#projects .heading-petals i:nth-child(1) { top: 56%; left: 72%; }
#projects .heading-petals i:nth-child(2) { top: 30%; left: 60%; }
#projects .heading-petals i:nth-child(3) { top: 78%; right: 1%; }
#projects .heading-petals i:nth-child(4) { top: 88%; left: 80%; }
#projects .heading-petals i:nth-child(5) { top: 6%; left: 76%; }
#projects .heading-petals i:nth-child(6) { top: 20%; left: 65%; }
#projects .heading-petals i:nth-child(7) { top: 96%; right: 5%; }
#projects .showcase-floral-gap { position: relative; height: 34px; margin-top: 10px; pointer-events: none; user-select: none; }
#projects .gap-bloom { width: 78px; opacity: .82; }
#projects .showcase-floral-gap .showcase-petals i:nth-child(1) { left: 17%; top: 35%; }
#projects .showcase-floral-gap .showcase-petals i:nth-child(2) { left: 53%; top: 70%; }
#projects .showcase-floral-gap .showcase-petals i:nth-child(3) { right: 4%; top: 18%; }
#projects .protocol-floral-gap { height: 16px; margin-top: 4px; }
#projects .protocol-floral-gap .showcase-petals i:nth-child(1) { left: 8%; top: 0; }
#projects .protocol-floral-gap .showcase-petals i:nth-child(2) { left: 30%; top: 75%; }
#projects .protocol-floral-gap .showcase-petals i:nth-child(3) { right: 3%; top: 0; }
#projects .protocol-floral-gap .gap-bloom { right: 9%; top: -25px; transform: rotate(24deg); }
#projects .credit-floral-gap { height: 42px; margin-top: 22px; }
#projects .credit-floral-gap .showcase-sprig { width: 150px; left: -12px; top: -18px; transform: scaleX(-1) rotate(10deg); opacity: .85; }
#projects .credit-floral-gap .gap-bloom { left: 58%; top: 4px; width: 64px; transform: rotate(-34deg); opacity: .68; }
#projects .book-floral-gap { height: 24px; margin-top: 0; }
#projects .book-floral-gap .gap-bloom { left: 12%; top: -9px; width: 70px; transform: rotate(-16deg); }
#projects .book-floral-gap .showcase-petals i:nth-child(1) { left: 28%; }
#projects .book-floral-gap .showcase-petals i:nth-child(2) { left: 4%; }
#projects .book-floral-gap .showcase-petals i:nth-child(3) { right: 20%; }
#projects .showcase-ending { height: 56px; margin-top: 10px; }
#projects .showcase-ending::before { content: ""; position: absolute; left: 0; right: 130px; bottom: 9px; height: 1px; background: #df87a7; }
#projects .showcase-ending .showcase-sprig { width: 125px; right: -8px; bottom: -7px; opacity: .88; }
#projects .showcase-ending .gap-bloom { left: 42%; top: 8px; width: 58px; transform: rotate(38deg); opacity: .65; }
html[data-theme="starfield"] #projects :is(.showcase-garden, .showcase-floral, .showcase-petals, .showcase-floral-gap) { display: none; }
@keyframes showcasePetalSway {
  from { transform: translate3d(0, -3px, 0) rotate(-6deg); }
  to { transform: translate3d(7px, 3px, 0) rotate(12deg); }
}
#projects .showcase-badges { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
#projects .status-badge, #projects .demo-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; color: var(--showcase-green); background: var(--showcase-mint); border-radius: 4px; font-size: 12px; line-height: 1.5; font-weight: 600; }
#projects .status-badge.neutral { background: var(--showcase-soft); color: var(--showcase-muted); }
#projects .status-badge .icon { width: 15px; height: 15px; color: inherit; }
#projects .showcase-split { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 2fr); gap: 28px; align-items: start; }
#projects .showcase-copy { min-width: 0; }
#projects .project-description:not(.sr-only) { display: block; margin: 22px 0 24px; font-size: 17px; line-height: 1.8; color: var(--showcase-ink); }
#projects .showcase-resource-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px 24px; margin-top: 20px; }
#projects .protocol-spotlight > .showcase-resource-links { position: relative; align-items: center; justify-content: flex-start; padding-left: 220px; gap: 20px 42px; margin-top: 0; min-height: 156px; }
#projects #showcaseMiniDock { position: absolute; left: 0; top: -65px; width: 208px; height: 250px; pointer-events: none; }
.companion.is-showcase-docked { width: 208px; }
.companion.is-showcase-docked .companion-character { width: 208px; height: 250px; overflow: visible; }
.companion.is-showcase-docked .mini-sprite { position: static; width: 100%; height: 100%; }
.companion.is-showcase-docked .mini-sprite[data-pose="0"] { background: url("assets/sakura-v3/mini-xiaohai-heart.png") center / contain no-repeat; }
#projects [data-project="credinet"] .showcase-resource-links > a,
#projects [data-project="ethereum"] .card-topline,
#projects [data-project="deai"] .card-topline,
.studio-ready #projects .book-details { display: none; }
#projects .protocol-spotlight > .showcase-resource-links .project-link { position: relative; }
#projects .protocol-spotlight > .showcase-resource-links .project-link::before { content: "/"; position: absolute; left: -24px; font-weight: 400; opacity: .7; }
#projects .project-link, #projects .showcase-details summary { display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 0 0 3px; background: none; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; color: var(--showcase-pink); font-size: 15px; font-weight: 600; line-height: 1.7; cursor: pointer; }
#projects .project-link:hover, #projects summary:hover { color: var(--showcase-ink); }
#projects .showcase-details { margin: 0; padding: 0; border: 0; }
#projects summary::before { display: none; }
#projects summary::marker { content: ""; }
#projects summary::-webkit-details-marker { display: none; }
#projects .showcase-details ul { margin: 18px 0 0; padding-left: 20px; color: var(--showcase-muted); font-size: 14px; }
#projects .showcase-details[open] { flex-basis: 100%; }
#projects .book-details { flex-basis: 100%; }
#projects .book-details summary { font-size: 12px; color: var(--showcase-muted); border: 0; }
#projects .showcase-workbench { border: 1px solid var(--showcase-line); border-radius: 7px; overflow: hidden; background: var(--showcase-paper); min-width: 0; }
#projects .workbench-bar { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 16px; background: var(--showcase-soft); font-size: 12px; font-weight: 500; line-height: 1.5; }
#projects .workbench-bar > .icon { color: var(--showcase-green); width: 17px; height: 17px; }
#projects .workbench-bar strong { font-size: 15px; }
#projects .workbench-caption, #projects .workbench-bar .demo-badge { margin-left: auto; font-size: 10px; }
#projects .workbench-caption { color: var(--showcase-muted); }
#projects .showcase-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--showcase-line); border-radius: 6px; overflow: hidden; margin-bottom: 28px; }
#projects .showcase-tabs button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 10px; border: 0; border-right: 1px solid var(--showcase-line); background: var(--showcase-paper); color: var(--showcase-ink); font-size: 14px; font-weight: 600; }
#projects .showcase-tabs button { position: relative; }
#projects .showcase-tabs button:last-child { border-right: 0; }
#projects .showcase-tabs button[aria-selected="true"] { z-index: 1; color: var(--showcase-pink); background: var(--showcase-blush); box-shadow: inset 0 0 0 1px #ecabc2; }
#projects .showcase-tabs button[aria-selected="true"]:not(:last-child)::after { content: ""; position: absolute; top: 0; bottom: 0; right: -10px; width: 11px; background: var(--showcase-blush); clip-path: polygon(0 0, 100% 50%, 0 100%); pointer-events: none; }
#projects .showcase-tabs .icon { width: 20px; height: 20px; }
#projects .protocol-flow { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr); padding: 24px 24px 12px; gap: 10px; align-items: stretch; }
#projects .protocol-column { min-width: 0; }
#projects .authorized-transition, #projects .registry-state { padding-left: 14px; border-left: 1px solid var(--showcase-line); }
#projects h4 { font-size: 14px; line-height: 1.5; font-weight: 650; margin: 0; }
#projects .protocol-column h4 { display: flex; gap: 9px; align-items: center; font-size: 16px; }
#projects .protocol-column h4 .icon { color: var(--showcase-green); width: 20px; height: 20px; }
#projects .column-label { font-size: 13px; color: var(--showcase-ink); margin: 2px 0 18px 29px; }
#projects .memory-payload { display: flex; flex-direction: column; gap: 8px; padding: 12px; min-height: 130px; border: 1px solid var(--showcase-line); border-radius: 4px; background: var(--showcase-soft); font-size: 15px; }
#projects .memory-payload > span { font-size: 11px; color: var(--showcase-muted); }
#projects .memory-payload q { font-weight: 600; }
#projects .column-footnote { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; color: var(--showcase-muted); }
#projects .column-footnote .icon { width: 14px; height: 14px; }
#projects .flow-arrow { margin-top: 95px; width: 24px; height: 24px; }
#projects .transition-facts { display: grid; gap: 5px; font-size: 13px; margin: 0; }
#projects .transition-facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, auto); align-items: center; gap: 8px; padding: 5px 7px; background: var(--showcase-soft); border-radius: 3px; }
#projects .transition-facts dt { font-family: inherit; font-size: 13px; }
#projects .transition-facts dd { margin: 0; font-weight: 600; text-align: right; }
#projects .positive { color: var(--showcase-green); }
#projects .registry-history { display: flex; flex-direction: column; gap: 28px; padding: 0; margin: 0; list-style: none; }
#projects .registry-history li + li { position: relative; }
#projects .registry-history li + li::before { content: ""; position: absolute; height: 17px; width: 1px; background: var(--showcase-line); left: 50%; top: -23px; }
#projects .registry-history li { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 4px; background: var(--showcase-soft); font-size: 12px; min-height: 38px; }
#projects #registryNext { transition: background-color 240ms ease, color 240ms ease; }
#projects .registry-history i { width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 50%; flex-shrink: 0; }
#projects .registry-history span { margin-left: auto; font-size: 10px; color: var(--showcase-muted); }
#projects #registryNext[data-committed="true"] { color: var(--showcase-green); background: var(--showcase-mint); }
#projects #registryNext[data-committed="true"] i { background: currentColor; }
#projects .registry-status { font-size: 12px; font-weight: 600; color: var(--showcase-green); margin: 12px auto 0; width: fit-content; min-height: 32px; padding: 5px 10px; background: var(--showcase-mint); border-radius: 4px; }
#projects .registry-status[data-error="true"], #projects .transition-facts [data-error="true"] { color: var(--showcase-pink); }
#projects .protocol-context { margin: 0; padding: 0 24px 12px; font-size: 10px; line-height: 1.6; color: var(--showcase-muted); }
#projects .validation-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0 24px 16px; font-size: 12px; }
#projects .validation-controls select { flex: 1; max-width: 320px; min-width: 0; border: 1px solid var(--showcase-line); border-radius: 4px; background: var(--showcase-paper); color: var(--showcase-ink); padding: 8px; font: inherit; }
#projects .protocol-actions { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 48px; border-top: 1px solid var(--showcase-line); padding: 16px 58px 16px 220px; }
#projects .showcase-control { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 36px; padding: 7px 14px; border: 1px solid var(--showcase-line); border-radius: 5px; background: var(--showcase-paper); color: var(--showcase-ink); font-size: 13px; font-weight: 600; line-height: 1.4; }
#projects .showcase-control:hover:not(:disabled) { border-color: var(--showcase-pink); color: var(--showcase-pink); }
#projects .showcase-control.primary { color: #fff; background: #c63668; border-color: #c63668; }
#projects .showcase-control.primary:hover:not(:disabled) { background: #ab2b58; color: #fff; }
#projects .showcase-control:disabled { cursor: default; opacity: .4; }
#projects .showcase-control.icon-only { width: 42px; padding: 7px; }
#projects .protocol-actions .icon-only { justify-self: center; }
#projects .protocol-fields { border-top: 1px solid var(--showcase-line); padding: 18px 24px; background: var(--showcase-soft); }
#projects .protocol-fields pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; line-height: 1.7; margin: 0 0 8px; }
#projects .protocol-fields a { color: var(--showcase-pink); font-size: 12px; }
#projects [data-stage="memory"] .private-memory, #projects [data-stage="validation"] .authorized-transition { outline: 1px solid var(--showcase-pink); outline-offset: 9px; border-radius: 3px; }
#projects .credit-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; padding: 14px 16px 4px; }
#projects .credit-chart { padding-right: 12px; border-right: 1px solid var(--showcase-line); min-width: 0; }
#projects #creditRadar { width: 100%; max-width: 300px; margin: 24px auto 0; aspect-ratio: 280 / 220; display: block; overflow: visible; }
#projects #radarGrid { fill: none; stroke: var(--showcase-line); stroke-width: 1; }
#projects #radarShape { fill: #4bc7aa55; stroke: #149b79; stroke-width: 1.5; transition: all 300ms ease; }
#projects #radarDots { fill: #149b79; }
#projects .radar-labels { fill: var(--showcase-muted); font-size: 11px; }
#projects .sbt-heading { display: flex; flex-direction: column; align-items: center; gap: 0; margin-bottom: 10px; }
#projects .sbt-heading h4 { align-self: flex-start; }
#projects .sbt-heading > strong { font-size: 11px; margin-top: -3px; }
#projects .sbt-emblem { display: block; width: 88px; height: 88px; object-fit: contain; }
#projects .sbt-heading small { font-size: 9px; color: var(--showcase-muted); }
#projects .credit-values { width: 100%; border-collapse: collapse; text-align: left; font-size: 10px; }
#projects .credit-values thead { background: var(--showcase-soft); font-size: 10px; }
#projects .credit-values th { font-weight: 500; padding: 4px 6px; }
#projects .credit-values td { padding: 4px; color: var(--showcase-ink); line-height: 1.5; }
#projects .credit-values th:first-child { white-space: nowrap; }
#projects .credit-values td.credit-grade { color: var(--showcase-green); font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
#projects .credit-values th:last-child { text-align: right; }
#projects .demo-footnote { padding: 8px 18px 12px; margin: 0; font-size: 10px; color: var(--showcase-muted); }
#projects .profile-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
#projects .profile-switch [aria-pressed="true"] { color: var(--showcase-green); border-color: #359b7b; background: var(--showcase-mint); }
#projects .book-workbench { display: grid; grid-template-columns: .94fr .9fr 1.2fr; min-height: 294px; align-items: stretch; padding: 16px 0; background: var(--showcase-soft); }
#projects .book-jacket { display: flex; align-items: stretch; justify-content: center; padding: 0 10px; }
#projects .book-cover { position: relative; width: 100%; min-height: 255px; border-left: 5px solid #ef9aba; border-radius: 2px; box-shadow: 3px 3px 4px #24242b25; overflow: hidden; }
#projects .book-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#projects .book-cover-title { position: absolute; left: 14%; right: 5%; top: 25%; display: grid; gap: 14px; color: #8d123d; }
#projects .book-cover-title strong { font: italic 700 27px/1.1 Georgia, "Times New Roman", serif; display: block; }
#projects .book-cover-title > span { font-size: 12px; color: #61273a; }
html[data-theme="starfield"] #projects .book-jacket .art { mix-blend-mode: normal; }
#projects .book-contents { padding: 8px 10px 6px; border-left: 1px solid var(--showcase-line); }
#projects .book-contents h4 { padding-left: 7px; margin-bottom: 10px; }
#projects .book-contents ol { padding: 0; margin: 0; list-style: none; }
#projects .book-contents button { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 31px; border: 0; background: transparent; color: var(--showcase-ink); padding: 6px 7px; font-size: 11px; text-align: left; line-height: 1.6; border-radius: 2px; }
#projects .book-contents button > span:first-child { font-size: 10px; font-weight: 650; }
#projects .book-contents [aria-pressed="true"] { color: var(--showcase-pink); background: var(--showcase-blush); font-weight: 650; }
#projects .book-page { border-left: 1px solid var(--showcase-line); padding: 8px 16px; background: var(--showcase-paper); display: flex; flex-direction: column; }
#projects .book-page > small { font-size: 10px; color: var(--showcase-muted); margin-bottom: 9px; }
#projects .book-page h4 { display: flex; gap: 9px; align-items: baseline; font-size: 15px; }
#projects #chapterNumber { color: var(--showcase-pink); font-size: 18px; }
#projects .book-page p { font-size: 12px; line-height: 1.9; margin: 12px 0; color: var(--showcase-muted); }
#projects .chapter-concepts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; font-size: 10px; }
#projects .chapter-concepts span { position: relative; background: var(--showcase-paper); border: 1px solid var(--showcase-line); color: var(--showcase-ink); padding: 7px 2px; border-radius: 4px; text-align: center; overflow-wrap: anywhere; }
#projects .chapter-concepts span:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 6px; }
#projects .chapter-concepts span:last-child { background: var(--showcase-mint); border-color: #b7ddc5; }
#projects .chapter-connectors { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; height: 22px; line-height: 22px; }
#projects .book-page .chapter-takeaway { margin: 0; padding: 7px 3px; text-align: center; background: var(--showcase-mint); border: 1px solid #b7ddc5; border-radius: 4px; font-size: 10px; color: var(--showcase-green); }
#projects .book-page a { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--showcase-pink); margin-top: auto; padding-top: 14px; }
#projects .book-pagination { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 10px; }
#projects .book-pagination .showcase-control { border-color: transparent; }
#projects #bookCounter { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 50px; text-align: center; }
#projects .deai-tabs { margin-bottom: 10px; }
#projects .deai-tabs button { font-size: 12px; min-height: 38px; padding: 8px; gap: 8px; }
#projects .deai-tabs button[aria-selected="true"] { background: var(--showcase-mint); color: var(--showcase-green); box-shadow: inset 0 -2px var(--showcase-green); }
#projects .deai-tabs button[aria-selected="true"]:not(:last-child)::after { background: var(--showcase-mint); }
#projects .project-cube { display: inline-block; flex-shrink: 0; width: 22px; height: 24px; clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%); background: conic-gradient(from 30deg at 50% 50%, #088567 0deg 120deg, #65d8b4 120deg 240deg, #b6f0df 240deg); }
#projects .deai-layout { display: grid; grid-template-columns: 100px minmax(0, 1fr) 100px; min-height: 226px; }
#projects .deai-brand { display: flex; align-items: center; gap: 4px; font-size: 11px; white-space: nowrap; padding: 0 3px 9px; }
#projects .deai-brand .project-cube { width: 16px; height: 18px; }
#projects .deai-sidebar { padding: 12px 5px; background: var(--showcase-soft); display: flex; flex-direction: column; gap: 5px; }
#projects .deai-sidebar > span { display: flex; align-items: center; gap: 6px; font-size: 10px; padding: 7px 5px; border-radius: 3px; }
#projects .deai-sidebar .active { color: var(--showcase-green); background: var(--showcase-mint); font-weight: 600; }
#projects .deai-sidebar .icon { width: 13px; height: 13px; }
#projects .deai-content { padding: 12px; min-width: 0; }
#projects .deai-content h4 { font-size: 12px; margin-bottom: 10px; }
#projects .deai-content-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
#projects .deai-content-heading h4 { margin: 0; }
#projects .deai-content-heading .demo-badge { font-size: 9px; padding: 2px 4px; }
#projects .deai-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; text-align: left; }
#projects .deai-table th { background: var(--showcase-soft); padding: 7px 5px; font-size: 9px; font-weight: 600; color: var(--showcase-muted); }
#projects .deai-table th:first-child { width: 45%; }
#projects .deai-table th:nth-child(2) { width: 14%; }
#projects .deai-table th:nth-child(3) { width: 25%; }
#projects .deai-table th:nth-child(4) { width: 16%; }
#projects .deai-table time { white-space: nowrap; font-size: 9px; font-variant-numeric: tabular-nums; }
#projects .deai-table .icon { width: 11px; height: 11px; margin-right: 4px; vertical-align: -1px; }
#projects .deai-table td { padding: 10px 5px; border-bottom: 1px solid var(--showcase-line); line-height: 1.5; overflow-wrap: anywhere; }
#projects .deai-table tr:last-child td { border: 0; }
#projects .table-status { color: var(--showcase-green); background: var(--showcase-mint); border-radius: 3px; padding: 3px 4px; font-size: 9px; display: inline-block; }
#projects .table-status.neutral { color: var(--showcase-muted); background: var(--showcase-soft); }
#projects .approval-column { border-left: 1px solid var(--showcase-line); padding-top: 12px; }
#projects .approval-column > h4 { font-size: 12px; padding-left: 13px; }
#projects .approval-timeline { margin: 0; list-style: none; padding: 16px 10px 14px 27px; font-size: 11px; }
#projects .approval-timeline li { position: relative; min-height: 48px; font-weight: 600; }
#projects .approval-timeline li::before { content: ""; position: absolute; width: 8px; height: 8px; border: 1px solid var(--showcase-line); border-radius: 50%; left: -15px; top: 5px; background: var(--showcase-paper); }
#projects .approval-timeline li:not(:last-child)::after { content: ""; position: absolute; height: calc(100% - 10px); width: 1px; background: var(--showcase-line); left: -11px; top: 14px; }
#projects .approval-timeline li[data-state="done"]::before { background: var(--showcase-green); border-color: var(--showcase-green); }
#projects .approval-timeline li[data-state="current"]::before { border-color: var(--showcase-green); }
#projects .approval-timeline small { display: block; font-size: 9px; color: var(--showcase-muted); font-weight: 400; margin-top: 2px; }
#projects .editor-meta { font-size: 10px; color: var(--showcase-green); margin: 0 0 10px; }
#projects .deai-editor { padding: 12px; border-left: 2px solid var(--showcase-green); background: var(--showcase-soft); font-size: 11px; }
#projects .deai-editor p { font-size: 11px; line-height: 1.9; margin: 10px 0; color: var(--showcase-muted); }
#projects .deai-editor > span { font-size: 9px; color: var(--showcase-green); }
#projects .approval-message { padding: 16px 6px; }
#projects .approval-message .icon { color: var(--showcase-green); display: block; margin-bottom: 8px; }
#projects .approval-message strong { font-size: 13px; }
#projects .approval-message p { font-size: 11px; color: var(--showcase-muted); margin: 6px 0; }
#projects .delivery-channels { display: flex; flex-wrap: wrap; gap: 10px; font-size: 10px; color: var(--showcase-muted); }
#projects .deai-flow-label { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--showcase-line); padding: 10px 14px; font-size: 10px; color: var(--showcase-muted); }
#projects .deai-flow-label .icon { color: var(--showcase-green); width: 15px; height: 15px; }
#projects .deai-project { padding-bottom: 12px; }
#projects .icon-search { --icon: url("data:image/svg+xml,%3C!--%20%40license%20lucide-static%20v0.468.0%20-%20ISC%20--%3E%0A%3Csvg%0A%20%20class%3D%22lucide%20lucide-search%22%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22m21%2021-4.3-4.3%22%20%2F%3E%0A%3C%2Fsvg%3E"); }
#projects button:focus-visible, #projects a:focus-visible, #projects summary:focus-visible, #projects select:focus-visible, #projects [role="tabpanel"]:focus-visible { outline: 2px solid var(--showcase-pink); outline-offset: 4px; }
#projects .private-memory h4 .icon, #projects .column-footnote .icon { --icon: url("assets/icons/showcase-lock.svg"); }
#projects .authorized-transition h4 .icon { --icon: url("assets/icons/showcase-zap.svg"); }
#projects .registry-state h4 .icon { --icon: url("assets/icons/showcase-database.svg"); }
#projects #validationTab .icon, #projects #approvalTab .icon { --icon: url("assets/icons/showcase-shield.svg"); }
#projects .protocol-workbench > .workbench-bar .icon { --icon: url("assets/icons/showcase-terminal.svg"); padding: 3px; background-color: currentColor; }
#projects #toggleProtocolFields > .icon:first-child { --icon: url("assets/icons/showcase-list.svg"); }
#projects .profile-switch .icon { --icon: url("assets/icons/showcase-user.svg"); }
#projects .transition-facts dt { display: flex; align-items: center; gap: 6px; }
#projects .transition-facts dt::before { content: ""; width: 15px; height: 15px; flex-shrink: 0; mask: url("assets/icons/layers.svg") center / contain no-repeat; background: currentColor; }
#projects .transition-facts div:nth-child(2) dt::before { mask-image: url("assets/icons/showcase-link.svg"); }
#projects .transition-facts div:nth-child(n+3) dt::before { mask-image: url("assets/icons/showcase-shield.svg"); }
@media (max-width: 1200px) {
  #projects .showcase-garden { display: none; }
}
@media (max-width: 1100px) {
  #projects .showcase-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.65fr); gap: 24px; }
  #projects h3 { font-size: 34px; }
  #projects [data-project="ethereum"] h3 { font-size: 31px; }
  #projects .project-description:not(.sr-only) { font-size: 14px; }
  #projects .project-teaser { font-size: 15px; }
  #projects .showcase-rule { font-size: 14px; }
  #projects .protocol-flow { padding-inline: 16px; gap: 8px; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr); }
  #projects .protocol-column h4 { font-size: 14px; gap: 6px; }
  #projects .registry-history li { gap: 5px; padding: 8px 5px; font-size: 11px; }
  #projects .registry-history span { display: none; }
  #projects .book-workbench { grid-template-columns: .65fr 1fr 1.15fr; }
  #projects .deai-layout { grid-template-columns: minmax(0, 1fr) 88px; }
  #projects .deai-sidebar { display: none; }
  #projects .credit-body { gap: 10px; padding-inline: 12px; }
  #projects .credit-chart h4, #projects .sbt-heading h4 { font-size: 12px; }
  #projects .sbt-emblem { width: 70px; height: 70px; }
  #projects .credit-values { font-size: 9px; }
  #projects .book-cover-title strong { font-size: 19px; }
  #projects .book-cover-title > span { font-size: 10px; }
  #projects .book-page { padding-inline: 10px; }
  #projects .chapter-concepts { font-size: 8px; gap: 12px; }
  #projects .chapter-concepts span:not(:last-child)::after { right: -11px; }
  #projects .protocol-actions { padding-left: 135px; padding-right: 24px; gap: 24px; }
  #projects .protocol-spotlight > .showcase-resource-links { padding-left: 132px; gap: 16px 30px; min-height: 132px; }
  #projects #showcaseMiniDock { width: 114px; height: 150px; top: -30px; }
  .companion.is-showcase-docked { width: 114px; }
  .companion.is-showcase-docked .companion-character { width: 114px; height: 150px; }
}
@media (max-width: 800px) {
  #projects .showcase-split { grid-template-columns: 1fr; gap: 24px; }
  #projects .showcase-list { gap: 40px; }
  #projects .showcase-copy { max-width: none; }
  #projects .showcase-copy .project-teaser { margin-bottom: 10px; }
  #projects .project-description:not(.sr-only) { margin: 12px 0; font-size: 14px; }
  #projects .showcase-copy .showcase-resource-links { margin-top: 12px; }
  #projects .book-details { flex-basis: auto; }
  #projects .protocol-heading h3 { font-size: 48px; }
  #projects .protocol-subtitle { font-size: 21px; }
  #projects .showcase-blossom { width: 195px; right: 0; top: -22px; opacity: .82; }
  #projects .heading-petals i:nth-child(1) { left: auto; right: 24%; top: 70%; }
  #projects .heading-petals i:nth-child(2) { display: none; }
  #projects .protocol-tabs button { font-size: 12px; gap: 6px; padding: 9px 4px; }
  #projects .protocol-tabs .icon { width: 17px; height: 17px; }
  #projects .protocol-flow { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  #projects .protocol-column { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  #projects .authorized-transition, #projects .registry-state { padding-left: 0; border-left: 0; }
  #projects .protocol-column h4 { align-self: end; font-size: 15px; }
  #projects .column-label { grid-column: 1; margin: 5px 0 12px 26px; }
  #projects .memory-payload, #projects .transition-facts, #projects .registry-history { grid-column: 2; grid-row: 1 / 4; }
  #projects .column-footnote, #projects .registry-status { grid-column: 1; margin-top: 0; }
  #projects .flow-arrow { margin: 0 0 0 55%; transform: rotate(90deg); width: 16px; height: 16px; }
  #projects .protocol-context { padding: 8px 20px 16px; }
  #projects .protocol-actions { padding: 12px 16px; gap: 12px; grid-template-columns: 42px 1fr 1fr; }
  #projects .protocol-spotlight > .showcase-resource-links { justify-content: flex-start; gap: 16px 26px; }
  #projects .protocol-spotlight > .showcase-resource-links .project-link::before { display: none; }
  #projects .credit-floral-gap .showcase-sprig { width: 100px; top: -4px; left: 0; opacity: .65; }
  #projects .showcase-floral-gap .showcase-petals i:nth-child(1) { left: 37%; }
  #projects .credit-body { padding: 18px; }
  #projects .deai-layout { grid-template-columns: 95px minmax(0, 1fr) 90px; }
  #projects .deai-sidebar { display: flex; }
  #projects .book-workbench { grid-template-columns: .8fr 1fr 1.2fr; }
  #projects [data-project="ethereum"] h3 { font-size: 35px; }
  #projects .book-cover-title strong { font-size: 25px; }
  #projects .credit-values { font-size: 11px; }
  #projects .credit-values thead { font-size: 10px; }
  #projects .sbt-emblem { width: 88px; height: 88px; }
  #projects #creditRadar { margin-top: 18px; }
}
@media (max-width: 480px) {
  #projects .showcase-toolbar { margin-bottom: 24px; justify-content: stretch; }
  #projects .project-filters { width: 100%; }
  #projects .project-filters button { flex: 1; min-width: 0; font-size: 12px; padding-inline: 8px; }
  #projects .showcase-rule { font-size: 11px; gap: 12px; margin-bottom: 20px; }
  #projects h3 { font-size: 35px; }
  #projects .protocol-heading h3 { font-size: 45px; }
  #projects .protocol-subtitle { font-size: 19px; max-width: 100%; }
  #projects .showcase-blossom { width: 92px; top: -49px; right: 0; opacity: .7; }
  #projects .heading-petals i:nth-child(1) { display: none; }
  #projects .heading-petals i:nth-child(3) { width: 8px; height: 5px; top: 60%; }
  #projects .showcase-petals i { width: 10px; height: 6px; }
  #projects .heading-petals i:nth-child(n+4), #projects .showcase-floral-gap .showcase-petals i:nth-child(n+6) { display: none; }
  #projects .protocol-floral-gap .gap-bloom { width: 44px; top: -7px; right: 10%; }
  #projects .credit-floral-gap .gap-bloom { width: 46px; left: 65%; top: 0; }
  #projects .book-floral-gap .gap-bloom { width: 40px; left: 0; top: 9px; }
  #projects .showcase-ending .gap-bloom { width: 38px; left: 34%; top: 13px; }
  #projects .showcase-floral-gap .showcase-petals i:nth-child(2) { display: none; }
  #projects .showcase-ending .showcase-sprig { width: 94px; right: 0; bottom: -2px; }
  #projects .showcase-ending::before { right: 100px; }
  #projects .protocol-heading .project-teaser { max-width: 100%; }
  #projects .project-teaser { font-size: 15px; }
  #projects .showcase-tabs button { font-size: 11px; gap: 5px; padding: 10px 3px; }
  #projects .showcase-tabs .icon { width: 15px; height: 15px; }
  #projects .workbench-bar { padding-inline: 10px; font-size: 10px; flex-wrap: wrap; }
  #projects .workbench-caption { display: none; }
  #projects .protocol-flow { padding: 18px 12px; gap: 12px; }
  #projects .protocol-column { display: block; }
  #projects .column-label { margin-bottom: 9px; }
  #projects .memory-payload { min-height: 90px; }
  #projects .column-footnote, #projects .registry-status { margin-top: 8px; min-height: 0; }
  #projects .flow-arrow { justify-self: center; margin: 0; }
  #projects .registry-history { flex-direction: row; gap: 6px; }
  #projects .registry-history li { flex: 1; min-width: 0; }
  #projects .registry-history li + li::before { display: none; }
  #projects .protocol-context { padding-inline: 12px; }
  #projects .protocol-actions { gap: 8px; padding: 10px; grid-template-columns: 44px 1fr 1fr; }
  #projects #resetProtocol > span:last-child { display: none; }
  #projects .showcase-control { padding: 7px 8px; min-height: 38px; font-size: 11px; gap: 5px; }
  #projects .showcase-control.icon-only { width: 36px; }
  #projects #toggleProtocolFields > .icon:last-child { display: none; }
  #projects .showcase-resource-links, #projects .protocol-spotlight > .showcase-resource-links { gap: 14px 22px; }
  #projects .protocol-spotlight > .showcase-resource-links { padding-left: 88px; min-height: 132px; padding-block: 18px; align-content: center; }
  #projects #showcaseMiniDock { width: 82px; height: 108px; top: 3px; }
  .companion.is-showcase-docked { width: 82px; }
  .companion.is-showcase-docked .companion-character { width: 82px; height: 108px; }
  #projects .project-link, #projects .showcase-details summary { font-size: 13px; }
  #projects .credit-body { grid-template-columns: .85fr 1.15fr; gap: 8px; padding: 14px 10px 4px; }
  #projects .credit-chart { padding-right: 5px; }
  #projects .credit-chart h4 { font-size: 10px; }
  #projects .credit-chart svg { margin-top: 24px; }
  #projects .sbt-heading { gap: 5px; }
  #projects .sbt-heading h4 { font-size: 10px; }
  #projects .sbt-heading small { font-size: 8px; }
  #projects .sbt-emblem { width: 64px; height: 64px; }
  #projects .sbt-emblem .icon { width: 20px; height: 20px; }
  #projects .credit-values { font-size: 9px; }
  #projects .credit-values thead { font-size: 8px; }
  #projects .credit-values td.credit-grade { white-space: normal; }
  #projects .credit-values th, #projects .credit-values td { padding-inline: 3px; }
  #projects .demo-footnote { font-size: 9px; padding-inline: 10px; }
  #projects .book-workbench { grid-template-columns: .8fr 1.2fr; padding-top: 8px; padding-bottom: 0; }
  #projects .book-jacket { padding: 0 8px 10px; }
  #projects .book-cover { min-height: 214px; }
  #projects .book-cover-title strong { font-size: 17px; }
  #projects .book-cover-title > span { font-size: 9px; }
  #projects .book-contents { padding: 6px 10px; }
  #projects .book-page { grid-column: 1 / -1; min-height: 210px; border-left: 0; border-top: 1px solid var(--showcase-line); padding: 14px 16px; }
  #projects .book-pagination { margin-top: 4px; }
  #projects .deai-layout { grid-template-columns: minmax(0, 1fr) 67px; }
  #projects .deai-sidebar { display: none; }
  #projects .deai-content { padding: 12px 8px; }
  #projects .deai-table th:first-child { width: 44%; }
  #projects .deai-table th:nth-child(2) { width: 18%; }
  #projects .deai-table th:nth-child(3) { display: none; }
  #projects .deai-table th:nth-child(4) { width: 38%; }
  #projects .deai-table td:nth-child(3) { display: none; }
  #projects .deai-table .icon { display: none; }
  #projects .deai-content-heading { flex-direction: column; gap: 4px; }
  #projects .approval-column > h4 { font-size: 10px; padding-left: 6px; }
  #projects .deai-table td, #projects .deai-table th { padding-inline: 3px; }
  #projects .approval-timeline { padding-left: 20px; padding-right: 5px; font-size: 9px; }
  #projects .deai-flow-label { font-size: 9px; padding-inline: 10px; gap: 5px; }
  #projects .deai-project { padding-bottom: 24px; }
}
@media (max-width: 360px) {
  #projects .book-cover-title strong { font-size: 14px; }
  #projects .book-cover-title > span { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #projects #radarShape, #projects #registryNext { transition: none; }
  #projects .showcase-project.is-filter-entering, #projects .showcase-petals i { animation: none; }
}
.is-motion-paused #projects #radarShape, .is-motion-paused #projects #registryNext { transition: none; }
.is-motion-paused #projects .showcase-project.is-filter-entering { animation: none; }
.is-motion-paused #projects .showcase-petals i,
.is-background #projects .showcase-petals i,
html[data-petals-motion="off"] #projects .showcase-petals i { animation-play-state: paused; }
