/* Demo-only additions to the real dashboard pages: the top-bar badge and the guide panel. */
.demo-top { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.demo-badge { background: #e3f4f2; color: #0b6e69; border-radius: 999px; padding: 4px 10px; font-weight: 600; }
.demo-exit { color: #0b6e69; text-decoration: none; font-weight: 600; }
.demo-exit:hover { text-decoration: underline; }

.wbd-panel { position: fixed; right: 16px; bottom: 16px; width: 360px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); z-index: 1000;
  display: flex; flex-direction: column; background: #fff; color: #1f2937; border: 1px solid #cfd8e3; border-radius: 12px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .18); font: 14px/1.45 "Segoe UI", Arial, sans-serif; }
.wbd-tab { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #0b6e69; color: #fff;
  border-radius: 11px 11px 0 0; font-weight: 600; font-size: 13px; }
.wbd-tab::after { content: "–"; font-size: 18px; line-height: 1; }
.wbd-tab:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.wbd-closed .wbd-tab { border-radius: 11px; }
.wbd-closed .wbd-tab::after { content: "+"; }
.wbd-closed .wbd-body { display: none; }
.wbd-closed { width: auto; }
.wbd-body { padding: 12px 14px 14px; overflow: auto; }
.wbd-body h3 { margin: 2px 0 8px; font-size: 16px; }
.wbd-body p { margin: 0 0 10px; }
.wbd-step { color: #0b6e69; font-size: 12px; font-weight: 600; }
.wbd-note { color: #6b7280; font-size: 13px; }
.wbd-hint { color: #6b7280; font-size: 13px; }
.wbd-ok { background: #ecfdf5; border-left: 3px solid #10b981; padding: 6px 8px; border-radius: 4px; }
.wbd-warn { background: #fffbeb; border-left: 3px solid #f59e0b; padding: 6px 8px; border-radius: 4px; }
.wbd-empty { color: #92400e; font-weight: 600; }
.wbd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.wbd-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e5e7eb; }
.wbd-btn { display: inline-block; border: 0; border-radius: 8px; background: #0b6e69; color: #fff; padding: 8px 12px; font: 600 13px "Segoe UI", Arial, sans-serif; cursor: pointer; text-decoration: none; }
.wbd-btn:hover { background: #095a56; }
.wbd-btn.wbd-sm { padding: 5px 9px; }
.wbd-link { border: 0; background: none; color: #0b6e69; font: 600 13px "Segoe UI", Arial, sans-serif; cursor: pointer; padding: 6px 4px; }
.wbd-link:hover { text-decoration: underline; }
.wbd-kv, .wbd-answer { border-collapse: collapse; width: 100%; margin: 0 0 10px; font-size: 13px; }
.wbd-kv td, .wbd-answer td, .wbd-answer th { padding: 4px 6px; border-bottom: 1px solid #eef1f5; text-align: left; }
.wbd-kv td:first-child, .wbd-answer th { color: #6b7280; font-weight: 500; }
.wbd-kv td:last-child { font-family: Consolas, "DejaVu Sans Mono", monospace; }
.wbd-hl7 { background: #0f1c22; color: #e7eef0; border-radius: 8px; padding: 8px 10px; font: 11px/1.5 Consolas, "DejaVu Sans Mono", monospace; white-space: pre-wrap; word-break: break-all; margin: 0 0 10px; }
.wbd-hl7 mark { background: #ffd75e; color: #12171b; border-radius: 2px; padding: 0 2px; }
.wbd-sim label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.wbd-sim select { font: 13px "Segoe UI", Arial, sans-serif; padding: 4px 6px; border: 1px solid #cfd8e3; border-radius: 6px; max-width: 100%; color: #1f2937; }
.wbd-flash { outline: 3px solid #0b9e93 !important; outline-offset: 3px; box-shadow: 0 0 0 7px rgba(11, 158, 147, .22) !important; transition: outline-color .3s; }
@media (max-width: 700px) {
  .wbd-panel { right: 8px; left: 8px; bottom: 8px; width: auto; max-height: 55vh; }
  .demo-top { flex-wrap: wrap; justify-content: flex-end; }
}
