.showcase{background:#f9fbf6;color:#18251e}
.showcase main{max-width:none;padding:12px}
.showcase main>small,.showcase main>h1,.showcase main p:not([role]){display:none}
.showcase .stage,.showcase .source{border-color:#cad7cd}
.showcase .source{background:#eef3ec}
.showcase .toolbar{margin:0 0 10px}
.showcase button{background:#e0eee4;color:#17432f}
.showcase canvas{height:clamp(220px,70vh,530px)}
.showcase .controls{margin-top:9px}
.showcase #failMsg:empty{display:none}

.showcase{background:#f6f7f3;color:#14181a}
.showcase .toolbar{gap:8px}.showcase .toolbar label{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:1px solid #d2dcd1;border-radius:99px}
.showcase button{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:99px;background:#fbfcf8;color:#26372d;border:1px solid #d2dcd1;font:500 14px system-ui,sans-serif}
.showcase #play,.showcase #source-toggle[aria-expanded="true"],.showcase .style-segments button[aria-pressed="true"]{background:#11211a;color:#fff;border-color:#11211a}
.showcase .style-segments{display:flex;max-width:100%;overflow-x:auto;gap:2px;padding:4px;border-radius:99px;background:#f6f7f3;box-shadow:inset 0 0 0 1px #d2dcd1}
.showcase .style-segments button{flex:none;background:transparent;border-color:transparent;padding:0 12px}
.showcase input{accent-color:#1f7a4d}.showcase-hero canvas{height:clamp(210px,60vh,335px)}
.showcase-tile main{padding:0}.showcase-tile .toolbar,.showcase-tile .controls{display:none}.showcase-tile .stage{border:0;border-radius:0}.showcase-tile canvas{height:100vh}

.showcase .toolbar label[hidden]{display:none}

/* MermaidFlow's neutral editor surface, gutter and split layout. */
.showcase-code{background:#faf9f7;color:#16171a}
.showcase-code main{padding:14px}
.showcase-code .viewer-layout:has(.source:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);gap:12px;align-items:start}
.showcase-code .motion-code-panel{padding:0;background:#f6f5f3;border:1px solid #e8e7e5;border-radius:18px;overflow:hidden}
.motion-code-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 14px;background:#fff;border-bottom:1px solid #e8e7e5}
.motion-code-top strong,.motion-code-top span{display:block}
.motion-code-top strong{font-size:14px;font-weight:600}
.motion-code-top span{font:12px/1.5 ui-monospace,SFMono-Regular,monospace;color:#6f6f77}
.showcase-code .motion-code-top button{min-height:36px;border-radius:9px;background:#fff;color:#16171a;border-color:#e8e7e5}
.showcase-code .motion-code-panel pre{height:clamp(290px,65vh,510px);max-height:none;margin:0;padding:10px 0 18px;overflow:auto;overscroll-behavior:contain;white-space:normal}
.motion-code-panel code{color:#16171a;display:block;font:13px/24px ui-monospace,SFMono-Regular,Menlo,monospace}
.motion-code-line{display:grid;grid-template-columns:44px minmax(0,1fr);min-height:24px}
.motion-line-number{position:relative;padding-right:10px;text-align:right;color:#757481;user-select:none}
.motion-line-text{padding:0 12px 0 8px;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:2}
.motion-code-line.is-current{background:#e5ede8;box-shadow:inset 2px 0 #317453}
.showcase-code .motion-beat-jump{display:inline-block;min-height:22px;line-height:22px;padding:0 3px;border:0;border-radius:5px;background:#e9e7e3;color:#49475a;font:inherit}
.showcase-code .motion-beat-jump:hover,.showcase-code .motion-beat-jump:focus-visible{background:#dbe9df;color:#17432f}
.tok-keyword{color:#69409a;font-weight:600}.tok-joint{color:#205b9a}.tok-number{color:#9b421d}.tok-string{color:#286444}.tok-comment{color:#66686e;font-style:italic}.tok-operator{color:#6c6672}.tok-value,.tok-property{color:#7a3165}
.showcase-code canvas{height:clamp(270px,60vh,470px)}
@media(max-width:720px){.showcase-code .viewer-layout:has(.source:not([hidden])){grid-template-columns:minmax(0,1fr)}.showcase-code .motion-code-panel pre{height:230px}.showcase-code canvas{height:300px}}
