/* Static, account-free examples modeled on the native OKO workspace. */
body.oko-next.next-public .np-visual:has(.nd-app) {
  display: block;
  container-type: inline-size;
  height: clamp(410px, 31vw, 480px);
  min-height: 410px;
  background: #0b1116;
  color: #e4ebee;
  border-color: #34434d;
  text-align: left;
}
.nd-app {
  --nd-bg: #0b1116;
  --nd-panel: #10191f;
  --nd-raised: #1a252d;
  --nd-line: #2a3942;
  --nd-muted: #8fa3af;
  --nd-accent: var(--accent, #b8f33a);
  display: grid;
  grid-template-rows: 36px 32px minmax(0, 1fr) 23px;
  height: 100%;
  min-height: 0;
  width: 100%;
  font-family: var(--font, sans-serif);
  font-size: 10px;
  line-height: 1.45;
  isolation: isolate;
}
.nd-app *, .nd-app *::before, .nd-app *::after { box-sizing: border-box; }
.nd-app :is(strong, b) { font-weight: 600; }
.nd-app :is(p, h2, h3, h4) { margin: 0; }
.nd-app :is(small, time, em) { font-size: 9px; font-style: normal; }
.nd-app .nd-icon { display: block; width: 15px; height: 15px; min-width: 15px; flex: none; }
.nd-app .nd-tool { display: inline-grid; place-items: center; width: 25px; height: 24px; flex: none; border: 1px solid var(--nd-line); border-radius: 5px; color: var(--nd-muted); background: var(--nd-panel); }
.nd-titlebar { display: flex; align-items: center; gap: 14px; padding: 0 13px; border-bottom: 1px solid var(--nd-line); background: #0c1217; white-space: nowrap; }
.nd-brand { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.nd-brand img { display: block; width: 18px; height: 18px; margin-right: 2px; }
.nd-brand b { color: var(--nd-accent); }
.nd-app-name { color: var(--nd-muted); font-size: 9px; border-left: 1px solid var(--nd-line); padding-left: 14px; }
.nd-demo-badge { margin-left: auto; border: 1px solid #577244; border-radius: 4px; padding: 2px 5px; color: #b6cd9c; font-size: 8px; }
.nd-window-glyphs { letter-spacing: 7px; color: var(--nd-muted); font-size: 11px; margin-left: 5px; }
.nd-app-tabs { display: flex; gap: 5px; align-items: center; min-width: 0; padding: 0 11px; border-bottom: 1px solid var(--nd-line); background: var(--nd-bg); }
.nd-app-tabs > span { display: flex; align-items: center; gap: 6px; padding: 5px 10px; color: var(--nd-muted); border-radius: 4px; white-space: nowrap; font-size: 9px; }
.nd-app-tabs > span.nd-selected { background: var(--nd-raised); color: var(--nd-accent); }
.nd-app-tabs .nd-icon { width: 12px; height: 12px; min-width: 12px; }
.nd-demo { min-height: 0; min-width: 0; overflow: hidden; }
.nd-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 11px; border-top: 1px solid var(--nd-line); color: var(--nd-muted); background: var(--nd-bg); font-size: 8px; }
.nd-status > span { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.nd-status i, .nd-monitor-head i { width: 4px; height: 4px; flex: none; background: var(--nd-accent); border-radius: 50%; }
.nd-muted { color: var(--nd-muted); }

.nd-radio { display: grid; grid-template-rows: 31px minmax(0, 1.35fr) minmax(0, 1fr); height: 100%; gap: 8px; padding: 0 10px 9px; }
.nd-monitor-head { display: flex; align-items: center; gap: 13px; min-width: 0; }
.nd-monitor-head > strong { font-size: 16px; letter-spacing: -.03em; }
.nd-monitor-head > span { display: flex; align-items: center; gap: 5px; font-size: 8px; color: var(--nd-muted); }
.nd-monitor-head .nd-scan-time { margin-left: auto; }
.nd-radio-upper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(155px, .49fr); gap: 8px; min-height: 0; }
.nd-video-panel, .nd-signal-panel, .nd-spectrum { border: 1px solid var(--nd-line); border-radius: 6px; background: var(--nd-panel); min-width: 0; min-height: 0; overflow: hidden; }
.nd-video-panel { display: grid; grid-template-rows: 30px minmax(0, 1fr); }
.nd-app :is(.nd-video-panel, .nd-signal-panel, .nd-spectrum) > header { display: flex; align-items: center; justify-content: space-between; min-width: 0; height: 30px; padding: 0 9px; gap: 6px; }
.nd-app header strong { font-size: 10px; min-width: 0; }
.nd-app header strong > small { margin-left: 5px; padding: 1px 4px; border-radius: 3px; background: var(--nd-raised); color: var(--nd-accent); font-size: 8px; }
.nd-app header > span { display: flex; gap: 4px; }
.nd-app header .nd-tool { width: 22px; height: 21px; border: 0; background: transparent; }
.nd-app header .nd-icon { width: 12px; height: 12px; min-width: 12px; }
.nd-video-wall { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 5px; padding: 0 5px 5px; min-height: 0; }
.nd-video-tile { display: grid; grid-template-rows: 21px minmax(0, 1fr); border: 1px solid var(--nd-line); border-radius: 4px; min-width: 0; overflow: hidden; }
.nd-tile-caption { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 0 6px; background: #111b22; }
.nd-tile-caption strong { font-size: 10px; font-variant-numeric: tabular-nums; }
.nd-tile-caption small { color: var(--nd-muted); font-size: 7px; }
.nd-tile-caption > span { font-size: 7px; color: var(--nd-accent); }
.nd-tile-picture { position: relative; min-height: 0; overflow: hidden; background: #1c3239; }
.nd-scene { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.nd-secondary-tile .nd-scene { transform: scaleX(-1); }
.nd-scene-note { position: absolute; bottom: 4px; left: 5px; right: 5px; text-align: center; font-size: 7px; background: #071218bb; border-radius: 2px; color: #bacacb; }
.nd-signal-tabs { display: flex; justify-content: space-between; gap: 3px; padding: 3px; margin: 0 6px 4px; border: 1px solid var(--nd-line); border-radius: 4px; font-size: 7px; color: var(--nd-muted); }
.nd-signal-tabs > * { padding: 3px; }
.nd-signal-tabs > b { color: #e9f0f2; background: var(--nd-raised); border-radius: 3px; }
.nd-signal-row { display: flex; align-items: center; gap: 6px; padding: 2px 7px; margin: 2px 5px; border-radius: 3px; }
.nd-signal-row > i { width: 3px; height: 3px; border-radius: 50%; background: var(--nd-accent); }
.nd-signal-row > span { display: grid; gap: 1px; }
.nd-signal-row strong { font-size: 8px; }
.nd-signal-row small { font-size: 8px; color: var(--nd-muted); }
.nd-signal-row em { font-size: 8px; margin-left: auto; color: var(--nd-muted); }
.nd-app .nd-is-current { background: color-mix(in srgb, var(--nd-accent) 12%, var(--nd-bg)); }
.nd-spectrum { display: grid; grid-template-rows: 28px minmax(0, 1fr); }
.nd-spectrum-modes { display: flex; gap: 3px; align-items: center; margin-left: auto; color: var(--nd-muted); font-size: 7px; }
.nd-spectrum-modes > * { border-radius: 3px; padding: 4px 6px; }
.nd-spectrum-modes > b { color: var(--nd-accent); background: color-mix(in srgb, var(--nd-accent) 10%, transparent); }
.nd-spectrum-plot { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) 27px 17px; padding: 0 8px 0 28px; min-height: 0; background: #071016; }
.nd-spectrum-plot > svg { display: block; width: 100%; height: 100%; min-height: 0; }
.nd-axis-y { position: absolute; top: 4px; bottom: 40px; left: 4px; color: var(--nd-muted); font-size: 7px; line-height: 2.5; }
.nd-gridlines { fill: none; stroke: #283b48; stroke-width: .7; }
.nd-spectrum-plot .np-plot-trace { fill: none; stroke: var(--nd-accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.nd-app .nd-waterfall { position: relative; height: 27px; opacity: 1; overflow: hidden; border-top: 1px solid #2d404c; background: repeating-linear-gradient(0deg, transparent 0 3px, #00aaff14 3px 4px), repeating-linear-gradient(90deg, #0c254e 0 4px, #061b36 4px 7px, #133663 7px 9px), #071226; }
.nd-waterfall::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 18%, #00b5ec99 20.2%, #006ac9aa 21.4%, transparent 23%, transparent 49%, #82e1c0bb 50.5%, #00a1eccc 51.3%, transparent 53%); }
.nd-frequency-axis { display: flex; justify-content: space-between; align-items: center; color: var(--nd-muted); font-size: 7px; }
.nd-frequency-axis small { font-size: 7px; }

.nd-map { position: relative; width: 100%; height: 100%; overflow: hidden; background: #223b35; }
.nd-map-canvas { display: block; width: 100%; height: 100%; }
.nd-map .np-map-path { color: var(--nd-accent); stroke: none; }
.nd-map .np-map-path circle { fill: #172c24; stroke: var(--nd-accent); stroke-width: 2px; }
.nd-map .np-map-marker { color: #c6e3d9; fill: #12323399; }
.nd-map-coordinates { position: absolute; left: 11px; top: 10px; padding: 9px 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 17px; border: 1px solid #45605e; border-radius: 7px; background: #0e1b1eea; box-shadow: 0 6px 20px #0003; }
.nd-map-coordinates b { grid-column: 1 / -1; color: var(--nd-accent); font-size: 8px; }
.nd-map-coordinates > span { font-size: 10px; font-variant-numeric: tabular-nums; }
.nd-map-coordinates small { color: var(--nd-muted); font-size: 8px; }
.nd-map-coordinates em { grid-column: 1 / -1; border-top: 1px solid #304847; margin-top: 3px; padding-top: 3px; font-size: 8px; color: var(--nd-muted); }
.nd-map-side-tools { position: absolute; bottom: 48px; right: 12px; display: grid; gap: 7px; }
.nd-map-side-tools .nd-tool { width: 29px; height: 29px; background: #0c1a1eee; border-color: #425650; }
.nd-map-bottom-tools { display: flex; position: absolute; bottom: 10px; left: 11px; gap: 3px; padding: 4px; border: 1px solid #425650; border-radius: 7px; background: #0c1a1eee; }
.nd-map-bottom-tools .nd-tool { border: 0; background: transparent; }
.nd-map-layers { position: absolute; top: 10px; right: 12px; display: grid; min-width: 125px; gap: 9px; padding: 10px; background: #0c1a1eee; border: 1px solid #425650; border-radius: 7px; font-size: 9px; }
.nd-map-layers strong { display: flex; gap: 7px; align-items: center; border-bottom: 1px solid #304847; padding-bottom: 7px; }
.nd-map-layers span { display: flex; gap: 6px; align-items: center; }
.nd-map-layers i { width: 7px; height: 7px; border-radius: 2px; border: 1px solid var(--nd-accent); background: color-mix(in srgb, var(--nd-accent) 20%, transparent); }
.nd-map-scale { position: absolute; bottom: 12px; right: 17px; font-size: 8px; text-align: center; text-shadow: 0 1px 2px #000; }
.nd-map-scale > i { display: block; width: 82px; height: 4px; border: 1px solid #d0d8cf; border-top: 0; }

.nd-messenger { display: grid; grid-template-columns: minmax(145px, .57fr) minmax(0, 1.43fr); height: 100%; }
.nd-chat-index { border-right: 1px solid var(--nd-line); background: #0e171e; padding: 10px 7px; min-width: 0; }
.nd-search { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--nd-line); border-radius: 5px; color: var(--nd-muted); font-size: 9px; }
.nd-search .nd-icon { width: 12px; height: 12px; min-width: 12px; }
.nd-dialog-row { display: flex; gap: 7px; align-items: center; min-width: 0; padding: 10px 5px; margin-top: 3px; border-radius: 5px; }
.nd-avatar { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border: 1px solid var(--nd-line); border-radius: 9px; background: var(--nd-raised); color: var(--nd-accent); font-size: 11px; line-height: 1; text-align: center; text-indent: 0; letter-spacing: 0; }
.nd-app header > .nd-avatar { display: grid; place-items: center; gap: 0; }
.nd-dialog-row > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.nd-dialog-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.nd-dialog-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nd-muted); font-size: 8px; }
.nd-dialog-row time { margin-left: auto; align-self: start; color: var(--nd-muted); font-size: 7px; }
.nd-conversation { display: grid; grid-template-rows: 47px minmax(0, 1fr) 42px; min-width: 0; min-height: 0; background: var(--nd-panel); }
.nd-conversation > header { display: flex; gap: 8px; align-items: center; padding: 0 11px; border-bottom: 1px solid var(--nd-line); }
.nd-conversation > header > span:nth-child(2) { display: grid; flex: 1; gap: 2px; min-width: 0; }
.nd-conversation > header small { color: var(--nd-muted); font-size: 8px; }
.nd-conversation > header .nd-tool { border: 0; background: none; }
.nd-messages { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 10px 13px; overflow: hidden; }
.nd-date { align-self: center; color: var(--nd-muted); font-size: 8px; }
.nd-app .nd-bubble { display: grid; gap: 3px; margin: 0; padding: 9px 11px; font-size: 10px; line-height: 1.5; max-width: 87%; border: 1px solid var(--nd-line); background: var(--nd-raised); border-radius: 2px 8px 8px; }
.nd-app .nd-bubble > small { color: var(--nd-accent); font-size: 8px; }
.nd-app .nd-bubble time { color: var(--nd-muted); justify-self: end; font-size: 7px; }
.nd-app .nd-bubble.is-own { align-self: end; background: color-mix(in srgb, var(--nd-accent) 12%, var(--nd-panel)); border-color: color-mix(in srgb, var(--nd-accent) 25%, var(--nd-line)); border-radius: 8px 2px 8px 8px; }
.nd-app .nd-bubble time b { color: var(--nd-accent); margin-left: 4px; }
.nd-app .nd-attachment { display: flex; align-items: center; gap: 9px; border: 1px solid var(--nd-line); border-radius: 7px; padding: 8px 9px; background: #15202b; min-width: 0; color: var(--nd-accent); font-size: 9px; }
.nd-attachment > span { display: grid; gap: 3px; min-width: 0; }
.nd-attachment strong { color: #dbe5ea; font-size: 9px; }
.nd-attachment small { font-size: 7px; color: var(--nd-muted); }
.nd-message-compose { display: flex; align-items: center; gap: 8px; margin: 0 9px 8px; border: 1px solid var(--nd-line); border-radius: 6px; padding: 3px; color: var(--nd-muted); font-size: 9px; background: #0c151b; }
.nd-message-compose > span:nth-child(2) { flex: 1; }
.nd-message-compose > .nd-tool { border: 0; background: none; }
.nd-message-compose > .nd-tool:last-child { color: var(--nd-accent); }

.nd-broadcast { display: grid; grid-template-columns: minmax(150px, .6fr) minmax(0, 1.4fr); height: 100%; padding: 10px; gap: 11px; }
.nd-stream-index { display: grid; align-content: start; gap: 9px; min-width: 0; }
.nd-stream-index > strong { font-size: 16px; letter-spacing: -.025em; }
.nd-direction-name { margin-top: 4px; padding: 7px 5px; border-bottom: 1px solid var(--nd-line); font-size: 8px; color: var(--nd-muted); }
.nd-stream-row { display: flex; gap: 8px; align-items: center; padding: 9px 7px; border: 1px solid var(--nd-line); border-radius: 6px; min-width: 0; }
.nd-stream-row > .nd-icon { color: var(--nd-accent); }
.nd-stream-row > span { display: grid; min-width: 0; gap: 3px; }
.nd-stream-row strong { font-size: 9px; }
.nd-stream-row small { font-size: 7px; color: var(--nd-muted); }
.nd-stream-player { display: grid; grid-template-rows: 45px minmax(0, 1fr) 37px; min-height: 0; min-width: 0; border: 1px solid var(--nd-line); border-radius: 7px; overflow: hidden; }
.nd-stream-player > header { display: flex; align-items: center; gap: 7px; padding: 0 9px; background: var(--nd-panel); }
.nd-stream-player > header > div { display: grid; gap: 2px; min-width: 0; }
.nd-stream-player > header strong { font-size: 10px; }
.nd-stream-player > header small { font-size: 8px; color: var(--nd-muted); }
.nd-stream-player > header em { margin-left: auto; color: var(--nd-accent); font-size: 6px; }
body.oko-next.next-public .np-visual .nd-player-picture { position: relative; display: block; width: 100%; height: 100%; min-height: 0; padding: 0; background: #182d35; aspect-ratio: auto; }
.nd-player-picture > .nd-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.nd-player-picture > .nd-icon { position: absolute; right: 9px; top: 9px; color: #e4eae9; opacity: .6; }
.nd-player-source { position: absolute; left: 8px; right: 8px; bottom: 10px; background: #071116b8; text-align: center; padding: 3px 4px; color: #c2d2d4; font-size: 7px; }
.nd-picture-frame { position: absolute; top: 9px; left: 9px; color: #d3e0d7; opacity: .5; }
.nd-stream-player > footer { display: flex; align-items: center; gap: 6px; padding: 0 8px; background: var(--nd-panel); }
.nd-stream-player > footer > span:first-child { display: flex; align-items: center; gap: 8px; margin-right: auto; color: var(--nd-muted); }
.nd-quality { border: 1px solid var(--nd-line); border-radius: 4px; padding: 3px 5px; font-size: 8px; }
.nd-quality i { font-style: normal; margin-left: 5px; }
.nd-stream-player > footer .nd-tool { border: 0; background: transparent; }

@container (max-width: 520px) {
  .nd-titlebar { gap: 8px; padding-inline: 9px; }
  .nd-app-name { font-size: 8px; padding-left: 8px; }
  .nd-window-glyphs { display: none; }
  .nd-app-tabs { gap: 1px; padding-inline: 6px; }
  .nd-app-tabs > span { padding: 5px 7px; font-size: 8px; }
  .nd-radio-upper { grid-template-columns: minmax(0, 1fr) 137px; }
  .nd-video-wall { grid-template-columns: 1fr; }
  .nd-secondary-tile { display: none; }
  .nd-signal-tabs { font-size: 6px; gap: 1px; }
  .nd-map-layers { min-width: 107px; font-size: 8px; }
  .nd-messenger { grid-template-columns: 128px minmax(0, 1fr); }
  .nd-dialog-row { gap: 5px; padding-inline: 2px; }
  .nd-dialog-row time { display: none; }
  .nd-avatar { width: 25px; height: 25px; border-radius: 7px; }
  .nd-conversation > header .nd-tool { display: none; }
  .nd-broadcast { grid-template-columns: 125px minmax(0, 1fr); gap: 7px; padding: 7px; }
  .nd-stream-player > header em { display: none; }
  .nd-stream-index > strong { font-size: 13px; }
}
@container (max-width: 360px) {
  .nd-app-name { display: none; }
  .nd-demo-badge { font-size: 7px; }
  .nd-app-tabs > span { font-size: 7px; padding: 5px 6px; }
  .nd-app-tabs > span:last-child { display: none; }
  .nd-monitor-head > strong { font-size: 14px; }
  .nd-monitor-head > span:not(.nd-scan-time) { display: none; }
  .nd-radio { padding-inline: 6px; gap: 6px; grid-template-rows: 29px minmax(0, 1fr) minmax(0, 1fr); }
  .nd-radio-upper { grid-template-columns: minmax(0, 1fr) 103px; gap: 5px; }
  .nd-video-panel > header > span > .nd-tool:first-child { display: none; }
  .nd-app header strong { font-size: 9px; }
  .nd-signal-panel header { padding-inline: 5px; }
  .nd-signal-panel header .nd-tool { width: 15px; }
  .nd-signal-tabs > span { display: none; }
  .nd-signal-tabs { justify-content: start; font-size: 7px; }
  .nd-signal-row { gap: 4px; padding-inline: 3px; }
  .nd-signal-row em { display: none; }
  .nd-signal-row:last-child { display: none; }
  .nd-spectrum-modes > span { display: none; }
  .nd-status > span:last-child { display: none; }
  .nd-map-coordinates { left: 7px; top: 8px; padding: 7px; gap: 3px 9px; }
  .nd-map-layers { top: auto; bottom: 54px; left: 7px; right: auto; min-width: 92px; padding: 8px; }
  .nd-map-layers > .nd-muted { display: none; }
  .nd-map-side-tools { right: 8px; }
  .nd-messenger { grid-template-columns: 45px minmax(0, 1fr); }
  .nd-chat-index { padding: 9px 4px; }
  .nd-chat-index .nd-search { padding: 7px 5px; justify-content: center; }
  .nd-chat-index .nd-search > span { display: none; }
  .nd-dialog-row { justify-content: center; padding: 8px 2px; }
  .nd-dialog-row > span:nth-child(2) { display: none; }
  .nd-avatar { width: 27px; height: 27px; }
  .nd-messages { padding-inline: 9px; gap: 8px; }
  .nd-app .nd-bubble { max-width: 95%; font-size: 9px; padding: 8px; }
  .nd-app .nd-attachment { padding: 7px; gap: 5px; }
  .nd-attachment > .nd-icon:last-child { display: none; }
  .nd-attachment strong { font-size: 8px; }
  .nd-broadcast { grid-template-columns: minmax(0, 1fr); grid-template-rows: 63px minmax(0, 1fr); padding: 7px; gap: 7px; }
  .nd-stream-index { display: grid; grid-template-columns: 1fr; gap: 0; }
  .nd-stream-index > strong { display: none; }
  .nd-stream-index > .nd-search { display: none; }
  .nd-direction-name { margin: 0; padding: 0 1px 5px; border: 0; }
  .nd-stream-row { padding: 7px; }
  .nd-stream-row:not(.nd-is-current) { display: none; }
  .nd-stream-row > span { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; }
  .nd-stream-row small { font-size: 6px; }
  .nd-stream-player { grid-template-rows: 40px minmax(0, 1fr) 33px; }
  .nd-stream-player > header strong { font-size: 9px; }
}
