.app-showcase { margin: clamp(90px, 14vh, 150px) auto 0; }
.showcase-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.showcase-intro .eyebrow { margin-bottom: 10px; }
.showcase-intro h2 { margin: 0 0 12px; font: 400 clamp(27px, 4vw, 38px)/1.12 ui-serif, "New York", Georgia, serif; letter-spacing: -.025em; }
.showcase-intro p:not(.eyebrow) { margin: 0; max-width: 620px; color: var(--muted); }
.showcase-tag { flex: none; padding: 8px 12px; border: 1px solid #584a31; border-radius: 99px; color: #e8ca85; background: #1e1a13; font-size: 11px; white-space: nowrap; }
.showcase-caption { margin: 14px 0 0; color: var(--muted); font-size: 12px; }

.app-preview { overflow: hidden; border: 1px solid #54462d; border-radius: 15px; color: #e9e6df; background: #090a0a; box-shadow: 0 32px 80px #0009, 0 0 80px #af86440d; font: 12px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.app-preview [hidden] { display: none !important; }
.preview-titlebar { height: 28px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-bottom: 1px solid #24231f; color: #a6a096; background: #171715; font-size: 10px; }
.preview-lights { display: flex; gap: 5px; }
.preview-lights i { width: 8px; height: 8px; border-radius: 50%; background: #ff605c; }
.preview-lights i:nth-child(2) { background: #ffbd44; }
.preview-lights i:nth-child(3) { background: #00ca4e; }
.preview-titlebar-note { margin-left: auto; color: #777269; }
.preview-appbar { height: 50px; display: grid; grid-template-columns: 155px minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid #34312b; background: linear-gradient(#111210, #0a0a09); }
.preview-brand { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 13px; border-right: 1px solid #2b2924; font-size: 17px; letter-spacing: -.04em; }
.preview-brand .mark { width: 24px; height: 24px; color: #e8cf8d; }
.preview-appnav { display: flex; align-items: stretch; height: 100%; min-width: 0; gap: 3px; }
.preview-appnav span { display: flex; align-items: center; padding: 0 12px; color: #928d84; white-space: nowrap; }
.preview-appnav .active { color: #f7f1e7; border-bottom: 2px solid #d8af61; background: #27231b; }
.preview-model { max-width: 192px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 10px; padding: 7px 10px; border: 1px solid #39372f; border-radius: 6px; color: #bcb6ac; }
.preview-model span { padding-left: 8px; color: #d8af61; }
.preview-workspace { min-height: 495px; display: grid; grid-template-columns: 155px minmax(0, 1fr) 190px; }
.preview-chat, .preview-inspector { min-width: 0; position: relative; padding: 14px 10px; background: #101110; }
.preview-chat { border-right: 1px solid #302d27; }
.preview-inspector { border-left: 1px solid #302d27; }
.preview-pane-title { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.preview-pane-title span { color: #b9b2a4; font-size: 12px; }
.preview-new-chat { padding: 8px 9px; border: 1px solid #48443c; border-radius: 7px; color: #b7b2a9; }
.preview-section-label { margin: 18px 0 7px; color: #77746e; font-size: 10px; }
.preview-chat-item { padding: 9px 8px; border: 1px solid #806539; border-left: 3px solid #d7af68; border-radius: 6px; background: #292116; }
.preview-chat-item strong, .preview-chat-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-chat-item strong { font-size: 10px; }
.preview-chat-item span { margin-top: 4px; color: #9b8c74; font-size: 9px; }
.preview-composer { position: absolute; right: 10px; bottom: 11px; left: 10px; height: 68px; display: flex; justify-content: space-between; align-items: end; padding: 9px; border: 1px solid #413d35; border-radius: 8px; color: #77726a; font-size: 10px; }
.preview-composer span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; color: #16120b; background: #dbb568; }
.preview-main { min-width: 0; padding: 15px 12px 12px; }
.preview-main-head h3 { margin: 0; font-size: clamp(14px, 1.8vw, 19px); line-height: 1.2; letter-spacing: -.035em; }
.preview-main-head p { overflow: hidden; margin: 6px 0 13px; color: #979189; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }
.preview-controls { display: flex; gap: 5px; align-items: center; margin-bottom: 9px; white-space: nowrap; }
.preview-controls button, .preview-inspector-tabs button { padding: 7px 9px; border: 1px solid #38362f; border-radius: 5px; color: #a8a39a; background: #111210; font: inherit; cursor: pointer; }
.preview-controls button[aria-pressed='true'], .preview-inspector-tabs button[aria-pressed='true'] { border-color: #806438; color: #f0e4ca; background: #332b1d; }
.preview-controls button:hover, .preview-inspector-tabs button:hover { border-color: #c6a15d; }
.preview-controls button:focus-visible, .preview-inspector-tabs button:focus-visible { outline: 2px solid #e8c57b; outline-offset: 2px; }
.preview-control-static { padding: 7px 9px; border: 1px solid #514839; border-radius: 5px; color: #f0e4ca; background: #332b1d; }
.preview-layer { margin-left: auto; color: #a49a8a; font-size: 10px; }
.preview-capture { min-height: 313px; display: grid; grid-template-columns: 84px minmax(0, 1fr) 85px; border: 1px solid #38352f; border-radius: 9px; overflow: hidden; }
.preview-tokens, .preview-next { min-width: 0; padding: 9px 6px; background: #111210; }
.preview-tokens { border-right: 1px solid #302f2b; }
.preview-next { border-left: 1px solid #302f2b; }
.preview-capture-label { display: flex; flex-direction: column; gap: 2px; margin: 0 0 10px; color: #eee9de; font-weight: 650; font-size: 10px; }
.preview-capture-label small { color: #8d877e; font-size: 9px; font-weight: 400; }
.preview-tokens > span { display: block; overflow: hidden; margin: 5px 0; padding: 5px 4px; border: 1px solid #38362f; border-radius: 4px; color: #b9b4aa; white-space: nowrap; text-overflow: ellipsis; font-size: 9px; }
.preview-visual { min-width: 0; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 65%, #1e1d1b 0, #0c0c0a 62%); }
.preview-visual-head { display: flex; justify-content: space-between; gap: 6px; align-items: center; padding: 8px; border-bottom: 1px solid #292b27; }
.preview-visual-head strong { font-size: 10px; }
.preview-visual-head span { color: #8e887d; font-size: 9px; white-space: nowrap; }
.preview-graph { width: 100%; height: 240px; display: block; }
.preview-view-3d .selected { fill: #4a3920; stroke: #dfb35f; stroke-width: 2; }
.preview-legend { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding: 3px 8px 8px; color: #9f9a91; font-size: 9px; }
.preview-legend span { white-space: nowrap; }
.preview-legend i { display: inline-block; width: 11px; height: 2px; margin: 0 3px 3px 0; vertical-align: middle; }
.preview-legend .residual { background: #d9b262; }
.preview-legend .attention { background: #b69ecf; }
.preview-legend .mlp { background: #80c6af; }
.preview-next > div:not(.preview-capture-label) { display: grid; grid-template-columns: 1fr auto; gap: 4px; margin: 5px 0; padding: 6px 4px; border: 1px solid #37352e; border-radius: 4px; color: #bbb4a9; font-size: 9px; }
.preview-bottom { display: flex; align-items: center; gap: 9px; margin-top: 8px; padding: 7px; border: 1px solid #38352f; border-radius: 7px; color: #aaa399; font-size: 9px; white-space: nowrap; }
.preview-bottom > span:first-child { color: #e6c273; }
.preview-progress { flex: 1; height: 4px; border-radius: 4px; background: #38352f; }
.preview-progress i { display: block; width: 72%; height: 100%; border-radius: inherit; background: #d6ac61; }
.preview-bottom > span:nth-last-child(-n+2) { padding: 5px 6px; border: 1px solid #51452f; border-radius: 4px; }
.preview-inspector-tabs { display: flex; gap: 5px; margin-bottom: 10px; }
.preview-inspector-tabs button { padding: 5px 8px; font-size: 10px; }
.preview-inspector-card { padding: 12px 9px; border: 1px solid #35332e; background: #0c0d0d; }
.preview-inspector-card + .preview-inspector-card { border-top: 0; }
.preview-inspector-card strong { font-size: 10px; }
.preview-inspector-card p { margin: 8px 0; color: #8d887f; font-size: 9px; }
.preview-empty { display: block; margin: 22px 0; color: #918c83; text-align: center; font-size: 9px; }

@media (max-width: 860px) {
  .preview-appbar { grid-template-columns: 135px minmax(0, 1fr) auto; }
  .preview-brand { font-size: 15px; }
  .preview-appnav span { padding: 0 8px; }
  .preview-workspace { grid-template-columns: 135px minmax(0, 1fr) 160px; }
  .preview-main { padding: 12px 8px; }
  .preview-capture { grid-template-columns: 63px minmax(0, 1fr) 67px; }
  .preview-controls button, .preview-control-static { padding: 6px; }
  .preview-inspector { padding-inline: 7px; }
}
@media (max-width: 700px) {
  .showcase-intro { display: block; }
  .showcase-tag { display: inline-block; margin-top: 18px; }
  .preview-titlebar-note, .preview-appnav span:not(.active), .preview-model, .preview-chat, .preview-inspector { display: none; }
  .preview-appbar { grid-template-columns: 1fr auto; }
  .preview-appnav { grid-column: 2; }
  .preview-workspace { display: block; min-height: 0; }
  .preview-main { padding: 12px; }
  .preview-main-head h3 { font-size: 15px; }
  .preview-capture { grid-template-columns: 62px minmax(0, 1fr) 66px; }
  .preview-visual-head span { display: none; }
  .preview-bottom > span:nth-last-child(-n+2) { display: none; }
}
@media (max-width: 420px) {
  .preview-layer { display: none; }
  .preview-next { display: none; }
  .preview-capture { grid-template-columns: 58px minmax(0, 1fr); }
  .preview-graph { height: 210px; }
  .preview-legend { gap: 5px; font-size: 8px; }
}
