:root {
color-scheme: dark;
--bg: #101114; --surface: #191a1f; --text: #f5f3ed;
--muted: #aaaab3; --line: #303138; --accent: #ffdb59;
}
html[data-theme="light"] {
color-scheme: light;
--bg: #faf7ef; --surface: #fff; --text: #232429;
--muted: #6a6b73; --line: #e5e0d0; --accent: #795600;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; margin: 0 !important; }
body.nbt-demo { height: 100vh; height: 100dvh; margin: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 14px/1.5 "Glegoo", Georgia, serif; }
body.admin-bar { padding-top: 32px; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px; border-bottom: 1px solid var(--line); flex: none; box-shadow: 0 4px 24px #00000012; z-index: 1; }
.demo-identity { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.demo-brand { text-decoration: none; flex: none; }
.demo-brand span { display: grid; place-items: center; width: 44px; height: 44px; background: #ffdb59; color: #232429; border-radius: 13px; font-size: 12px; font-weight: 850; box-shadow: inset 0 1px #ffffff70; }
.demo-title { min-width: 0; }
.demo-title small { color: var(--muted); letter-spacing: 1.8px; font-size: 9px; font-weight: 600; }
.demo-title small i { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: var(--accent); }
.demo-title h1 { font-size: 18px; font-weight: 650; letter-spacing: -.4px; margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-devices { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.demo-devices button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; }
.demo-devices button[aria-pressed="true"] { background: var(--bg); color: var(--accent); box-shadow: 0 1px 5px #00000020; }
.device-icon { display: block; width: 17px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; }
.device-desktop::after { content: ''; position: absolute; width: 7px; height: 3px; border-bottom: 1.5px solid; bottom: -5px; left: 3.5px; }
.device-tablet { width: 12px; height: 16px; }
.device-mobile { width: 9px; height: 15px; }
.demo-actions { display: flex; gap: 8px; flex-shrink: 0; }
.demo-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; font-size: 12px; font-weight: 550; white-space: nowrap; }
.demo-actions a:hover, .demo-tool:hover { border-color: var(--accent); }
.demo-actions svg { width: 16px; height: 16px; }
.demo-actions .demo-original { background: #ffdb59; color: #232429; border-color: #ffdb59; }
.demo-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.demo-utility { display: flex; align-items: center; gap: 16px; min-height: 42px; padding: 6px 24px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.demo-domain { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.demo-domain svg { width: 12px; height: 12px; flex: none; }
.demo-dimensions { padding-left: 16px; border-left: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.demo-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.demo-help { margin-right: 8px; text-decoration: none; }
.demo-help:hover { text-decoration: underline; color: var(--text); }
.demo-tool { display: grid; place-items: center; width: 30px; height: 30px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--surface); }
.demo-tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.demo-stage { flex: 1; min-height: 0; display: flex; justify-content: center; background: radial-gradient(var(--line) 1px, transparent 1px) 0 0 / 16px 16px, var(--bg); }
.demo-viewport { width: 100%; height: 100%; background: #fff; min-height: 0; overflow: hidden; }
.demo-stage[data-device="tablet"], .demo-stage[data-device="mobile"] { padding: 18px 12px; }
.demo-stage[data-device="tablet"] .demo-viewport { width: min(768px, 100%); }
.demo-stage[data-device="mobile"] .demo-viewport { width: min(390px, 100%); }
.demo-stage:not([data-device="desktop"]) .demo-viewport { border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 12px 45px #00000025; }
.demo-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.demo-message { width: min(100%, 640px); margin: auto; padding: 32px; overflow: auto; }
.demo-message h2 { font-size: 26px; }
.demo-message p { color: var(--muted); }
.demo-message input { max-width: 100%; padding: 10px; margin: 6px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 861px) and (max-width: 1200px) {
.demo-toolbar { gap: 14px; padding: 12px 18px; }
.demo-devices button { width: 38px; padding: 8px; }
.demo-devices button span:not(.device-icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.demo-actions a { padding-inline: 11px; font-size: 11px; }
.demo-title h1 { font-size: 16px; }
}
@media (max-width: 860px) {
.demo-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "identity devices" "actions actions"; gap: 14px; padding: 14px 18px; }
.demo-identity { grid-area: identity; }
.demo-toolbar--no-actions { grid-template-areas: "identity devices"; }
.demo-devices { grid-area: devices; margin: 0; }
.demo-actions { grid-area: actions; display: flex; width: 100%; padding-top: 12px; border-top: 1px solid var(--line); }
.demo-actions a { flex: 1; }
.demo-utility { padding-inline: 18px; }
}
@media (max-width: 600px) {
.demo-toolbar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "identity" "devices" "actions"; }
.demo-toolbar--no-actions { grid-template-areas: "identity" "devices"; }
.demo-title h1 { font-size: 17px; }
.demo-actions { width: 100%; padding-top: 0; border-top: 0; }
.demo-actions a { flex: 1; padding: 8px 6px; gap: 5px; font-size: 10px; }
.demo-actions .demo-details svg { display: none; }
.demo-devices { width: 100%; }
.demo-devices button { flex: 1; }
.demo-toolbar { padding: 10px 12px; gap: 9px; }
.demo-utility { gap: 8px; padding: 6px 12px; }
.demo-domain { max-width: 130px; font-size: 10px; }
.demo-dimensions { padding-left: 8px; font-size: 10px; }
.demo-help { display: none; }
}
@media (max-width: 782px) { body.admin-bar { padding-top: 46px; } }