/* The bar of the public demo, above the editor. */
:root { color-scheme: light; --bar: #16151f; --bar-text: #e9e7ff; --accent: #7c5cff; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; overflow: hidden; background: #f4f3fa; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html[data-theme="dark"] body { background: #121124; }
.demo-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: none;
    min-height: 52px;
    padding: 6px 14px;
    background: var(--bar);
    color: var(--bar-text);
}
.demo-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; white-space: nowrap; }
.demo-brand img { display: block; filter: drop-shadow(0 0 6px rgba(124, 92, 255, .6)); }
.demo-brand span { font-weight: 700; letter-spacing: .32em; font-size: 15px; color: #a996ff; text-shadow: 0 0 12px rgba(124, 92, 255, .7); }
.demo-brand small { padding: 2px 8px; border-radius: 20px; background: rgba(124, 92, 255, .22); color: #cfc6ff; font-size: 11px; letter-spacing: .04em; }
.demo-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.demo-btn, .demo-select select {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: var(--bar-text);
    font: inherit;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}
.demo-select select option { color: #1e1b3a; }
.demo-btn:hover, .demo-select select:hover { border-color: var(--accent); background: rgba(124, 92, 255, .18); }
.demo-buy { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 600; }
.demo-buy:hover { background: #6847ff; }
.demo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#editor { flex: 1; min-height: 0; padding: 10px; }
#editor .pf-app { --pf-height: 100%; height: 100%; }
@media (max-width: 760px) {
    .demo-hide-small { display: none; }
    .demo-brand small { display: none; }
    .demo-bar { padding: 6px 8px; }
    #editor { padding: 0; }
    #editor .pf-app { border-radius: 0; border-left: 0; border-right: 0; }
}
@media (max-width: 520px) {
    .demo-brand span, #theme { display: none; }
    .demo-tools { flex-wrap: nowrap; }
    .demo-btn, .demo-select select { height: 30px; padding: 0 8px; font-size: 13px; }
}
