:root {
    --bm-bg: #f4f6f8;
    --bm-surface: #ffffff;
    --bm-text: #1a2330;
    --bm-muted: #5c6b7a;
    --bm-border: #d8dee6;
    --bm-accent: #0b5fff;
    --bm-accent-dark: #0846bf;
    --bm-danger: #b42318;
    --bm-radius: 10px;
    --bm-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --bm-font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

/* -------------------------------------------------------------------------- */
/* Sitewide field theme (SimVive-inspired dark EMS UI)                         */
/* -------------------------------------------------------------------------- */

body.bm-theme-field {
    --bm-accent-soft: rgba(56, 189, 248, 0.18);
    --bm-text-muted: #94a3b8;
    --bm-bg: #030712;
    --bm-surface: rgba(15, 23, 42, 0.88);
    --bm-text: #f1f5f9;
    --bm-muted: #94a3b8;
    --bm-border: rgba(56, 189, 248, 0.14);
    --bm-accent: #38bdf8;
    --bm-accent-dark: #0ea5e9;
    --bm-danger: #f87171;
    --bm-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    background: radial-gradient(1000px 520px at 15% 0%, rgba(30, 58, 138, 0.38), transparent 55%),
        radial-gradient(780px 460px at 95% 15%, rgba(6, 78, 59, 0.22), transparent 50%),
        #05080f;
    color: var(--bm-text);
}

body.bm-theme-field .bm-header,
body.bm-theme-field .bm-footer {
    background: rgba(8, 12, 22, 0.92);
    border-color: rgba(56, 189, 248, 0.12);
    backdrop-filter: blur(8px);
}

body.bm-theme-field .bm-brand {
    color: #f1f5f9;
}

body.bm-theme-field .bm-brand:hover,
body.bm-theme-field .bm-brand:focus-visible {
    color: #7dd3fc;
}

body.bm-theme-field .bm-nav a {
    color: #94a3b8;
}

body.bm-theme-field .bm-nav a:hover,
body.bm-theme-field .bm-nav a:focus-visible {
    color: #38bdf8;
}

body.bm-theme-field .bm-main {
    padding: 1.75rem 0 2.5rem;
}

body.bm-theme-field .bm-muted {
    color: #94a3b8;
}

body.bm-theme-field .bm-skip-link:focus {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(56, 189, 248, 0.35);
    color: #e2e8f0;
}

body.bm-theme-field .bm-card {
    background: linear-gradient(165deg, rgba(18, 24, 38, 0.95), rgba(10, 14, 24, 0.98));
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

body.bm-theme-field .bm-btn-secondary {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
}

body.bm-theme-field .bm-btn-secondary:hover,
body.bm-theme-field .bm-btn-secondary:focus-visible {
    border-color: #38bdf8;
    color: #7dd3fc;
}

body.bm-theme-field .bm-btn-danger {
    background: rgba(127, 29, 29, 0.35);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

body.bm-theme-field .bm-btn-danger:hover,
body.bm-theme-field .bm-btn-danger:focus-visible {
    background: rgba(127, 29, 29, 0.5);
}

body.bm-theme-field .bm-input,
body.bm-theme-field .bm-textarea,
body.bm-theme-field select {
    background: rgba(2, 6, 23, 0.55);
    border-color: rgba(56, 189, 248, 0.18);
    color: #f1f5f9;
}

body.bm-theme-field .bm-flash {
    background: rgba(6, 78, 59, 0.35);
    border-color: rgba(52, 211, 153, 0.35);
    color: #d1fae5;
}

body.bm-theme-field .bm-flash-error {
    background: rgba(127, 29, 29, 0.35);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

body.bm-theme-field .bm-card-warn {
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(120, 53, 15, 0.25);
    color: #fef3c7;
}

body.bm-theme-field .bm-card-danger-zone {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca;
}

body.bm-theme-field .bm-pill.is-active {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #e0f2fe;
}

body.bm-theme-field .bm-badge-muted {
    background: rgba(30, 41, 59, 0.85);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.28);
}

body.bm-theme-field .bm-admin-nav-link.is-active {
    background: rgba(56, 189, 248, 0.18);
    color: #fff;
}

body.bm-theme-field .bm-status-pill-draft {
    background: rgba(51, 65, 85, 0.65);
    color: #e2e8f0;
}

body.bm-theme-field .bm-status-pill-review {
    background: rgba(30, 58, 138, 0.45);
    color: #bfdbfe;
}

body.bm-theme-field .bm-status-pill-published {
    background: rgba(6, 78, 59, 0.4);
    color: #bbf7d0;
}

body.bm-theme-field .bm-status-pill-archived {
    background: rgba(71, 85, 105, 0.45);
    color: #e2e8f0;
}

body.bm-theme-field .bm-learner-badge {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.1);
    color: #7dd3fc;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body.bm-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--bm-font);
    color: var(--bm-text);
    background: var(--bm-bg);
    display: flex;
    flex-direction: column;
}

.bm-skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.bm-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;
}

.bm-skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 0.75rem;
    background: var(--bm-surface);
    border: 1px solid var(--bm-border);
    border-radius: 6px;
    z-index: 1000;
}

.bm-container {
    width: min(1100px, 100% - 2rem);
    margin-inline: auto;
}

.bm-header {
    background: var(--bm-surface);
    border-bottom: 1px solid var(--bm-border);
}

.bm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.bm-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--bm-text);
    text-decoration: none;
}

.bm-brand:hover,
.bm-brand:focus-visible {
    color: var(--bm-accent);
}

.bm-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.bm-nav a {
    color: var(--bm-muted);
    text-decoration: none;
    font-weight: 500;
}

.bm-nav a:hover,
.bm-nav a:focus-visible {
    color: var(--bm-accent);
}

.bm-main {
    flex: 1;
    padding: 2rem 0;
}

.bm-footer {
    border-top: 1px solid var(--bm-border);
    background: var(--bm-surface);
    padding: 1.25rem 0;
    margin-top: auto;
}

.bm-muted {
    color: var(--bm-muted);
    margin: 0;
}

.bm-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bm-card {
    background: var(--bm-surface);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    padding: 1.5rem;
}

.bm-hero .bm-h1 {
    margin-top: 0;
}

.bm-h1 {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

.bm-h2 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.bm-lead {
    font-size: 1.05rem;
    color: var(--bm-muted);
    max-width: 65ch;
}

.bm-list {
    padding-left: 1.25rem;
    color: var(--bm-muted);
}

.bm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.bm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.bm-btn-primary {
    background: var(--bm-accent);
    color: #fff;
}

.bm-btn-primary:hover,
.bm-btn-primary:focus-visible {
    background: var(--bm-accent-dark);
}

.bm-btn-secondary {
    background: var(--bm-surface);
    border-color: var(--bm-border);
    color: var(--bm-text);
}

.bm-btn-secondary:hover,
.bm-btn-secondary:focus-visible {
    border-color: var(--bm-accent);
    color: var(--bm-accent);
}

.bm-btn-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--bm-danger);
}

.bm-btn-danger:hover,
.bm-btn-danger:focus-visible {
    background: #fee2e2;
}

/* Admin shell */
.bm-admin-body {
    background: var(--bm-bg);
}

.bm-admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .bm-admin-layout {
        grid-template-columns: 1fr;
    }
}

.bm-admin-sidebar {
    display: flex;
    flex-direction: column;
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1rem 1rem;
    border-right: 1px solid #1e293b;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .bm-admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(280px, 88vw);
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        z-index: 40;
        overflow-y: auto;
    }

    .bm-admin-sidebar.is-open {
        transform: translateX(0);
    }
}

.bm-admin-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bm-admin-sidebar .bm-brand {
    color: #f8fafc;
}

.bm-admin-close {
    display: none;
    color: #e2e8f0;
    border-color: #334155;
}

@media (max-width: 900px) {
    .bm-admin-close {
        display: inline-flex;
    }
}

.bm-admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.bm-admin-nav-heading {
    margin: 0.75rem 0 0.25rem;
    padding: 0 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.bm-admin-nav-heading:first-child {
    margin-top: 0;
}

.bm-admin-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
}

.bm-admin-nav-link:hover,
.bm-admin-nav-link:focus-visible {
    background: rgba(148, 163, 184, 0.12);
    color: #fff;
}

.bm-admin-nav-link.is-active {
    background: rgba(11, 95, 255, 0.2);
    color: #fff;
}

.bm-admin-nav-label {
    min-width: 0;
}

.bm-nav-placeholder {
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.9rem;
}

.bm-admin-surface {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bm-admin-topbar {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bm-surface);
    border-bottom: 1px solid var(--bm-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.bm-menu-btn {
    display: none;
}

@media (max-width: 900px) {
    .bm-menu-btn {
        display: inline-flex;
    }
}

.bm-icon-btn {
    font: inherit;
    border: 1px solid var(--bm-border);
    background: var(--bm-surface);
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
}

.bm-admin-topbar-title {
    flex: 1;
    min-width: 0;
}

.bm-admin-topbar .bm-h1 {
    margin: 0;
    font-size: 1.35rem;
}

.bm-admin-topbar .bm-muted {
    margin-top: 0.15rem;
    font-size: 0.95rem;
}

.bm-link-quiet {
    color: var(--bm-muted);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.bm-link-quiet:hover,
.bm-link-quiet:focus-visible {
    color: var(--bm-accent);
}

.bm-admin-main {
    flex: 1;
    padding: 1.25rem 0 2rem;
}

.bm-admin-content {
    width: min(1100px, 100% - 2rem);
    margin-inline: auto;
}

/* Admin overview dashboard */
.bm-dashboard-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: space-between;
    align-items: flex-start;
}

.bm-dashboard-hero-main {
    flex: 1;
    min-width: min(100%, 18rem);
}

.bm-dashboard-hero-copy {
    margin: 0.35rem 0 0;
    max-width: 52ch;
    line-height: 1.55;
}

.bm-dashboard-orgs,
.bm-dashboard-roles {
    margin: 0.65rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.bm-dashboard-hero-aside {
    max-width: 16rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--bm-radius, 10px);
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(120, 53, 15, 0.15);
}

.bm-dashboard-aside-copy {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
}

.bm-badge-warn {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fde68a;
    background: rgba(120, 53, 15, 0.35);
}

.bm-dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.75rem;
}

.bm-dashboard-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    border-radius: var(--bm-radius, 10px);
    border: 1px solid rgba(51, 65, 85, 0.55);
    background: rgba(2, 6, 23, 0.35);
}

.bm-dashboard-stat-link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.bm-dashboard-stat-link:hover {
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(15, 23, 42, 0.65);
}

.bm-dashboard-stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
    line-height: 1.1;
}

.bm-dashboard-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    line-height: 1.3;
}

.bm-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.bm-dashboard-2col {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .bm-dashboard-2col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.bm-dashboard-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.bm-dashboard-list-compact .bm-dashboard-list-item {
    padding: 0.45rem 0;
}

.bm-dashboard-list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.45);
}

.bm-dashboard-list-item:last-child {
    border-bottom: 0;
}

.bm-dashboard-list-title {
    font-weight: 600;
    color: #e2e8f0;
    text-decoration: none;
}

.bm-dashboard-list-title:hover {
    color: #22d3ee;
}

.bm-dashboard-list-meta {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
}

.bm-dashboard-audit-event code {
    font-size: 0.78rem;
    color: #cbd5e1;
}

.bm-dashboard-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.bm-dashboard-flag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(71, 85, 105, 0.7);
}

.bm-dashboard-flag.is-on {
    border-color: rgba(34, 197, 94, 0.45);
    color: #86efac;
    background: rgba(6, 78, 59, 0.25);
}

.bm-dashboard-flag.is-off {
    color: #94a3b8;
}

.bm-dashboard-dl {
    margin-top: 0.5rem;
}

.bm-template-pack-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.bm-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--bm-border, #d8dee6);
    font-size: 0.85rem;
    color: var(--bm-text-muted, #5c6b7a);
    text-decoration: none;
}

.bm-pill:hover {
    border-color: var(--bm-accent, #0b5cab);
    color: var(--bm-accent, #0b5cab);
}

.bm-pill.is-active {
    background: var(--bm-accent-soft, #e8f2ff);
    border-color: var(--bm-accent, #0b5cab);
    color: #0b3d73;
    font-weight: 600;
}

.bm-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.bm-template-card .bm-template-pack {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bm-text-muted, #5c6b7a);
    margin: 0 0 0.35rem;
}

.bm-template-form {
    margin-top: 0.75rem;
}

.bm-table-wrap {
    overflow-x: auto;
}

.bm-table-compact td,
.bm-table-compact th {
    font-size: 0.85rem;
    vertical-align: top;
}

.bm-nowrap {
    white-space: nowrap;
}

.bm-code-inline {
    font-size: 0.78rem;
    word-break: break-all;
}

.bm-actions-cell {
    white-space: nowrap;
}

.bm-actions-cell form {
    margin-left: 0.5rem;
}

.bm-btn-link {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--bm-accent, #0b5cab);
    cursor: pointer;
    text-decoration: underline;
}

.bm-btn-link:hover {
    color: #083f78;
}

.bm-dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
    margin: 0;
}

.bm-dl dt {
    font-weight: 600;
    color: var(--bm-muted);
}

.bm-dl dd {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .bm-dl {
        grid-template-columns: 1fr;
    }
}

.bm-admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bm-inline-form {
    display: inline;
    margin: 0;
}

.bm-flash {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--bm-radius);
    border: 1px solid var(--bm-border);
    background: #ecfdf5;
    color: #065f46;
}

.bm-flash-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.bm-card-warn {
    border-color: #fcd34d;
    background: #fffbeb;
}

.bm-card-danger-zone {
    border-color: #fecaca;
    background: #fffafa;
}

.bm-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.bm-card-header .bm-h2 {
    margin: 0;
}

/* Scenario edit: top save + sticky footer (nested <form> for duplicate used to terminate the PATCH form early in browsers) */
.bm-scenario-edit-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--bm-border, #e2e8f0);
    position: sticky;
    top: 0;
    z-index: 15;
    background: var(--bm-body, #f8fafc);
}

body.bm-theme-field .bm-scenario-edit-toolbar {
    background: rgba(8, 12, 22, 0.94);
    backdrop-filter: blur(8px);
    border-bottom-color: rgba(51, 65, 85, 0.55);
}

.bm-scenario-edit-save {
    margin-top: 0.5rem;
    position: sticky;
    bottom: 0;
    z-index: 15;
    padding-top: 0.5rem;
}

.bm-scenario-edit-save-inner {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1rem;
    border-radius: var(--bm-radius, 10px);
    border: 1px solid var(--bm-border);
    background: var(--bm-surface);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
}

body.bm-theme-field .bm-scenario-edit-save-inner {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(56, 189, 248, 0.22);
    box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.5);
}

.bm-scenario-edit-save-btn {
    min-width: 11rem;
}

.bm-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bm-card-steps .bm-table {
    min-width: 32rem;
}

.bm-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.bm-field-block {
    margin-bottom: 1rem;
}

.bm-textarea {
    min-height: 5rem;
    resize: vertical;
}

.bm-help {
    font-size: 0.9rem;
    color: var(--bm-muted);
    margin: 0.35rem 0 0;
}

.bm-list-tight {
    margin: 0;
    padding-left: 1.25rem;
}

.bm-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.bm-input {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--bm-border);
    font: inherit;
}

.bm-check {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--bm-muted);
}

.bm-error {
    color: var(--bm-danger);
    font-size: 0.9rem;
    margin: 0.35rem 0 0;
}

.bm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
}

.bm-table th,
.bm-table td {
    text-align: left;
    padding: 0.5rem 0.35rem;
    border-bottom: 1px solid var(--bm-border);
}

/* Auth (login) */
.bm-auth-body {
    min-height: 100vh;
}

.bm-auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bm-auth-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bm-border);
    background: var(--bm-surface);
}

.bm-auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.bm-auth-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--bm-border);
    background: var(--bm-surface);
    text-align: center;
}

.bm-auth-footer .bm-muted {
    font-size: 0.9rem;
}

.bm-auth-panel {
    width: min(100%, 26rem);
}

.bm-auth-card .bm-h1 {
    margin-top: 0;
}

.bm-auth-form {
    margin-top: 0.5rem;
}

.bm-btn-block {
    width: 100%;
}

/* Admin shell extensions */
.bm-admin-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 35;
}

.bm-admin-sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #1e293b;
}

.bm-admin-user {
    padding: 0.5rem 0.65rem 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.bm-admin-user-name {
    font-weight: 600;
    color: #f1f5f9;
}

.bm-admin-user-email {
    word-break: break-all;
    margin-top: 0.15rem;
}

.bm-admin-user-role {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.bm-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    line-height: 1.2;
}

.bm-badge-muted {
    margin-top: 0.75rem;
    background: #f1f5f9;
    color: var(--bm-muted);
    border: 1px solid var(--bm-border);
    text-transform: none;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: normal;
}

.bm-badge-nav {
    flex-shrink: 0;
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    text-transform: none;
    font-weight: 600;
    font-size: 0.65rem;
}

/* -------------------------------------------------------------------------- */
/* Learner scenario player                                                    */
/* -------------------------------------------------------------------------- */

body.bm-learner-body {
    min-height: 100vh;
}

.bm-learner-header {
    background: var(--bm-surface);
    border-bottom: 1px solid var(--bm-border);
    box-shadow: var(--bm-shadow);
}

.bm-learner-header-inner {
    width: min(1100px, 100% - 2rem);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

.bm-learner-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bm-accent);
    border: 1px solid rgba(11, 95, 255, 0.25);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(11, 95, 255, 0.06);
}

.bm-learner-main {
    flex: 1;
    padding: 1.5rem 0 2.5rem;
}

.bm-learner-footer {
    margin-top: auto;
    border-top: 1px solid var(--bm-border);
    background: var(--bm-surface);
}

.bm-learner-footer-inner {
    width: min(1100px, 100% - 2rem);
    margin-inline: auto;
    padding: 0.85rem 0;
    text-align: center;
}

.lp-shell {
    width: min(1100px, 100% - 2rem);
    margin-inline: auto;
}

.lp-preview-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.65rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid var(--bm-border, #d8dee6);
    background: linear-gradient(135deg, #fff8e6 0%, #fff3cc 100%);
    color: #3d3319;
    font-size: 0.9rem;
}

.lp-preview-banner-muted {
    color: #5c5340;
    font-weight: 400;
}

.lp-preview-banner-link {
    margin-left: auto;
    font-weight: 600;
    color: var(--bm-accent, #0b5cab);
}

.bm-status-pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.bm-status-pill-draft {
    background: #eef2f7;
    color: #3a4a5c;
}

.bm-status-pill-review {
    background: #e8f2ff;
    color: #0b4a8f;
}

.bm-status-pill-published {
    background: #e6f7ed;
    color: #1a5c33;
}

.bm-status-pill-archived {
    background: #f0eef5;
    color: #5a5266;
}

.lp-layout {
    display: grid;
    grid-template-columns: 1fr min(280px, 32%);
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 860px) {
    .lp-layout {
        grid-template-columns: 1fr;
    }
}

.lp-panel {
    background: var(--bm-surface);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--bm-shadow);
}

.lp-panel-side {
    position: sticky;
    top: 1rem;
}

.lp-scenario-head .bm-h1 {
    margin-bottom: 0.25rem;
}

.lp-node-type {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bm-muted);
    font-weight: 600;
}

.lp-node {
    margin-top: 1rem;
}

.lp-prose {
    line-height: 1.65;
}

.lp-prose-small {
    font-size: 0.95rem;
}

.lp-feedback {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--bm-accent);
    background: rgba(11, 95, 255, 0.06);
}

.lp-feedback p {
    margin: 0.35rem 0 0;
}

.lp-media {
    margin-top: 1rem;
    border-radius: var(--bm-radius);
    overflow: hidden;
    border: 1px solid var(--bm-border);
}

.lp-media-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.lp-media-placeholder {
    padding: 1rem;
    text-align: center;
    background: #f8fafc;
}

.lp-choices {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.lp-choice-form {
    margin: 0;
}

.lp-hotspot-note {
    margin-top: 1rem;
}

.lp-debrief .bm-h1 {
    margin-bottom: 0.35rem;
}

.lp-debrief-section {
    margin-top: 1rem;
}

.lp-path-list {
    margin: 0;
    padding-left: 1.25rem;
}

.lp-path-list li {
    margin: 0.35rem 0;
}

.lp-pill {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    text-transform: capitalize;
}

.lp-score-card .lp-score-line {
    margin: 0.5rem 0 0;
    font-size: 1.15rem;
}

.lp-score-value {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--bm-accent-dark);
}

.lp-score-max {
    color: var(--bm-muted);
    font-weight: 600;
}

.bm-link-quiet {
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--bm-muted);
    font-size: 0.95rem;
}

/* Hotspot authoring */
.bm-hotspot-stage {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.bm-hotspot-draw-layer {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.bm-hotspot-overlay-rect {
    position: absolute;
    box-sizing: border-box;
    border: 2px solid rgba(11, 95, 255, 0.55);
    background: rgba(11, 95, 255, 0.12);
    pointer-events: none;
}

.bm-btn-tiny {
    font-size: 0.8rem;
    padding: 0.2rem 0.45rem;
}

.bm-code-tiny {
    font-size: 0.72rem;
    word-break: break-all;
}

/* Hotspot learner */
.lp-hotspot-hit {
    cursor: pointer;
    z-index: 2;
}

.lp-hotspot-hit:hover,
.lp-hotspot-hit:focus-within {
    outline: 2px dashed rgba(11, 95, 255, 0.65);
    outline-offset: -2px;
}

.lp-hotspot-hit-btn {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.lp-hotspot-hit-btn:hover {
    background: rgba(11, 95, 255, 0.12);
}

.lp-hotspot-hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/* Learner tactical simulation shell (call experience — not quiz UI)         */
/* -------------------------------------------------------------------------- */

body.bm-learner-tactical {
    --lp-bg-deep: #05080f;
    --lp-panel: rgba(12, 18, 32, 0.92);
    --lp-panel-border: rgba(56, 189, 248, 0.12);
    --lp-accent: #38bdf8;
    --lp-accent-dim: rgba(56, 189, 248, 0.15);
    --lp-alert: #f59e0b;
    --lp-danger: #f87171;
    --lp-text: #e2e8f0;
    --lp-muted: #94a3b8;
    background: radial-gradient(1200px 600px at 20% 0%, rgba(30, 58, 138, 0.35), transparent 55%),
        radial-gradient(900px 500px at 100% 20%, rgba(6, 78, 59, 0.2), transparent 50%),
        var(--lp-bg-deep);
    color: var(--lp-text);
}

body.bm-learner-tactical .bm-learner-header {
    background: rgba(8, 12, 22, 0.95);
    border-bottom: 1px solid var(--lp-panel-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

body.bm-learner-tactical .bm-brand,
body.bm-learner-tactical .bm-learner-badge {
    color: var(--lp-text);
    border-color: var(--lp-panel-border);
    background: rgba(56, 189, 248, 0.08);
}

body.bm-learner-tactical .bm-learner-footer {
    background: rgba(8, 12, 22, 0.92);
    border-color: var(--lp-panel-border);
}

body.bm-learner-tactical .bm-muted {
    color: var(--lp-muted);
}

body.bm-learner-tactical .bm-h1,
body.bm-learner-tactical .bm-h2,
body.bm-learner-tactical .bm-lead {
    color: #f8fafc;
}

body.bm-learner-tactical .bm-card {
    background: var(--lp-panel);
    border: 1px solid var(--lp-panel-border);
    color: var(--lp-text);
}

.lp-sim-shell {
    width: min(1400px, 100% - 1.25rem);
    margin-inline: auto;
}

/* Tactical learner play: edge-to-edge shell (horizontal inset on main), wider monitor + documentation columns */
body.bm-learner-tactical .bm-learner-main:has(.lp-sim-shell) {
    padding: clamp(0.45rem, 1.2vw, 0.85rem) clamp(0.65rem, 2.2vw, 1.35rem) clamp(0.65rem, 1.8vw, 1.15rem);
}

body.bm-learner-tactical .lp-sim-shell {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

@media (min-width: 901px) {
    body.bm-learner-tactical .lp-sim-grid {
        grid-template-columns: minmax(260px, 1.3fr) minmax(0, 1.75fr) minmax(300px, 1.35fr);
        gap: clamp(0.75rem, 2vw, 1.15rem);
    }
}

/* Command strip (encounter status + soft timer) — layout inspired by modern EMS sim UIs, not a product clone */
.lp-sim-cmdbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(51, 65, 85, 0.85);
    background: rgba(2, 6, 23, 0.65);
    font-size: 0.78rem;
}

.lp-sim-cmdbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    min-width: 0;
}

.lp-sim-cmdbar-k {
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.lp-sim-cmdbar-sep {
    color: rgba(148, 163, 184, 0.45);
    font-weight: 300;
}

.lp-sim-cmdbar-status {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #86efac;
}

.lp-sim-cmdbar-title {
    color: var(--lp-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(52vw, 28rem);
}

.lp-sim-cmdbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lp-sim-cmdbar-time-label {
    text-transform: uppercase;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--lp-muted);
}

.lp-sim-cmdbar-time {
    font-family: ui-monospace, monospace;
    font-weight: 700;
    color: #86efac;
    min-width: 3.25rem;
}

.lp-sim-cmdbar-exit {
    margin-left: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
}

.lp-sim-cmdbar-exit:hover {
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

@media (max-width: 640px) {
    .lp-sim-cmdbar-title {
        max-width: 100%;
        white-space: normal;
    }
}

.lp-sim-vitals-readout-rows {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.lp-sim-vitals-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(30, 41, 59, 0.9);
    font-size: 0.84rem;
    line-height: 1.45;
    color: #e2e8f0;
}

.lp-sim-vitals-row:last-child {
    border-bottom: 0;
}

.lp-sim-vitals-row.is-split {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items: baseline;
}

.lp-sim-vitals-k {
    color: #fde047;
    font-weight: 600;
}

.lp-sim-vitals-v {
    color: #f1f5f9;
}

.lp-sim-vitals-row.is-full {
    color: #cbd5e1;
}

/* Right rail: active call card + tablet notes (EMS sim documentation lane) */
.lp-sim-rail {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.lp-sim-call-card-ref {
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(30, 35, 48, 0.98), rgba(18, 21, 31, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.lp-sim-call-card-ref-accent {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 45%, #991b1b 100%);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.2);
}

.lp-sim-call-card-ref-inner {
    padding: 0.9rem 1rem 1rem;
}

.lp-sim-call-ref-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.lp-sim-call-warn-ico {
    display: flex;
    flex-shrink: 0;
}

.lp-sim-call-active-lbl {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fde047;
}

.lp-sim-call-title-ref {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.25;
    color: #f8fafc;
}

.lp-sim-call-snippet-ref {
    margin: 0 0 0.45rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #94a3b8;
}

.lp-sim-call-loc-ref {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #cbd5e1;
}

.lp-sim-call-footer-ref {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #7dd3fc;
    opacity: 0.9;
}

.lp-sim-notes-tablet {
    position: relative;
    border-radius: 22px;
    padding: 1.15rem 1rem 1rem;
    background: linear-gradient(185deg, rgba(28, 32, 44, 0.98), rgba(14, 16, 24, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lp-sim-notes-tablet-notch {
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 5px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.lp-sim-notes-tablet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    padding-top: 0.5rem;
}

.lp-sim-notes-tablet-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.lp-sim-notes-clip-ico {
    display: flex;
    flex-shrink: 0;
    opacity: 0.95;
}

.lp-sim-notes-tablet-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f1f5f9;
}

.lp-sim-notes-clock-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(100, 116, 139, 0.45);
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    flex-shrink: 0;
}

.lp-sim-notes-clock-svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.lp-sim-notes-tabs-ref {
    gap: 0;
    margin-bottom: 0;
    padding: 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.85);
}

.lp-sim-notes-tabs-ref .lp-sim-notes-tab {
    flex: 1;
    margin: 0;
    cursor: pointer;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    padding: 0.55rem 0.4rem;
    border-bottom: 3px solid transparent;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.lp-sim-notes-tabs-ref .lp-sim-notes-tab:hover {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.03);
}

.lp-sim-notes-tabs-ref .lp-sim-notes-tab[aria-selected='true'] {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: #facc15;
    border-color: transparent;
    margin-bottom: -1px;
    padding-bottom: 0.55rem;
}

.lp-sim-notes-field-lbl {
    margin: 0.5rem 0 0.35rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fde047;
}

.lp-sim-notes-ruled {
    width: 100%;
    margin-top: 0;
    min-height: 11rem;
    line-height: 1.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.84rem;
    color: #e2e8f0;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.55);
    background-color: #070a10;
    background-image: repeating-linear-gradient(
        180deg,
        transparent,
        transparent calc(1.75rem - 1px),
        rgba(51, 65, 85, 0.45) calc(1.75rem - 1px),
        rgba(51, 65, 85, 0.45) 1.75rem
    );
    box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.55);
    padding: 0.45rem 0.75rem 0.65rem;
    resize: vertical;
}

.lp-sim-notes-ruled::placeholder {
    color: #64748b;
    font-style: normal;
}

.lp-sim-notes-ruled:focus {
    outline: none;
    border-color: rgba(250, 204, 21, 0.35);
    box-shadow:
        inset 0 2px 14px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(250, 204, 21, 0.15);
}

.lp-sim-notes-toolbar-ref {
    margin-top: 0.65rem;
    padding-top: 0.35rem;
}

.lp-sim-choice-pill {
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    border-color: rgba(51, 65, 85, 0.95);
    background: rgba(15, 23, 42, 0.88);
}

.lp-sim-choice-pill:hover {
    border-color: rgba(56, 189, 248, 0.4);
}

.lp-sim-notes-tabs {
    display: flex;
    flex-wrap: wrap;
}

.lp-sim-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.95fr) minmax(0, 2.1fr) minmax(220px, 0.95fr);
    gap: 1rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .lp-sim-grid {
        grid-template-columns: 1fr;
    }
}

.lp-sim-panel {
    background: var(--lp-panel);
    border: 1px solid var(--lp-panel-border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.lp-sim-panel h2,
.lp-sim-panel .lp-sim-h2 {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lp-muted);
}

.lp-sim-vitals-readout {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #cbd5e1;
    white-space: pre-wrap;
}

.lp-sim-vitals-readout.is-placeholder {
    color: var(--lp-muted);
    font-style: italic;
    font-family: inherit;
}

.lp-sim-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.lp-sim-action-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.65);
    color: var(--lp-text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.lp-sim-action-btn:hover:not(:disabled) {
    border-color: var(--lp-accent);
    background: var(--lp-accent-dim);
}

.lp-sim-action-btn:disabled {
    cursor: not-allowed;
}

.lp-sim-action-btn:disabled:not(.is-awaiting) {
    opacity: 0.55;
}

.lp-sim-center-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.lp-sim-step-pill {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--lp-panel-border);
    color: var(--lp-accent);
    background: rgba(56, 189, 248, 0.08);
    white-space: nowrap;
}

.lp-sim-node-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lp-muted);
    font-weight: 600;
}

.lp-sim-prompt {
    font-size: 1.15rem;
    font-weight: 650;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    color: #f8fafc;
}

.lp-sim-narrative {
    line-height: 1.65;
    color: #cbd5e1;
}

.lp-sim-choice-grid {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.lp-sim-choice-btn {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.85));
    color: #f1f5f9;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.lp-sim-choice-btn:hover {
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.lp-sim-call-meta {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.lp-sim-call-meta dt {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lp-muted);
    margin-top: 0.65rem;
}

.lp-sim-call-meta dd {
    margin: 0.15rem 0 0;
}

.lp-sim-notes:not(.lp-sim-notes-ruled) {
    width: 100%;
    min-height: 7rem;
    margin-top: 0.35rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.55);
    color: var(--lp-text);
    font-size: 0.88rem;
    resize: vertical;
}

.lp-sim-dispatch {
    max-width: 720px;
    margin-inline: auto;
    padding: 2rem 1.5rem 2.5rem;
}

.lp-sim-dispatch-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-sim-dispatch h1 {
    margin: 1rem 0 0.5rem;
    font-size: 1.75rem;
    line-height: 1.2;
    color: #f8fafc;
}

.lp-sim-dispatch-lead {
    font-size: 1rem;
    color: var(--lp-muted);
    margin-bottom: 1rem;
}

.lp-sim-dispatch-body {
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.lp-sim-dispatch-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    color: #fff;
    box-shadow: 0 8px 28px rgba(14, 165, 233, 0.35);
}

.lp-sim-dispatch-cta:hover {
    filter: brightness(1.05);
}

.lp-sim-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(4px);
}

.lp-sim-modal {
    width: min(520px, 100%);
    max-height: min(86vh, 640px);
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(8, 12, 22, 0.98));
    padding: 1.35rem 1.5rem 1.25rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.lp-sim-modal-tone-positive {
    border-top: 4px solid #34d399;
}

.lp-sim-modal-tone-neutral {
    border-top: 4px solid #94a3b8;
}

.lp-sim-modal-tone-negative {
    border-top: 4px solid #f87171;
}

.lp-sim-modal-status {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lp-accent);
}

.lp-sim-modal h3 {
    margin: 0.35rem 0 0.75rem;
    font-size: 1.15rem;
    color: #f8fafc;
}

.lp-sim-modal-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.lp-sim-modal-dismiss {
    margin-top: 1.1rem;
    width: 100%;
    padding: 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    font-weight: 600;
    cursor: pointer;
}

.lp-sim-modal-dismiss:hover {
    border-color: var(--lp-accent);
}

.lp-sim-modal-tone-caution {
    border-top: 4px solid #f59e0b;
}

.lp-sim-modal-tone-caution .lp-sim-modal-status {
    color: #fcd34d;
}

.lp-sim-modal-tone-positive .lp-sim-modal-status {
    color: #6ee7b7;
}

.lp-sim-modal-tone-negative .lp-sim-modal-status {
    color: #fca5a5;
}

.lp-sim-modal-title {
    margin: 0.35rem 0 0.5rem;
    font-size: 1.12rem;
    color: #f8fafc;
    font-weight: 650;
}

.lp-sim-modal-edu {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--lp-muted);
}

.lp-sim-modal-divider {
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    margin: 1rem 0;
}

.lp-sim-dispatch-hero {
    position: relative;
    overflow: hidden;
}

.lp-sim-dispatch-pulse {
    position: absolute;
    inset: -40% -20% auto auto;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 65%);
    pointer-events: none;
}

.lp-sim-dispatch-cad {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88rem;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.lp-sim-dispatch-meta {
    margin-top: 1rem;
}

.lp-sim-dispatch-tip {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.55);
}

.lp-sim-dispatch-orient {
    margin-top: 1.25rem;
}

.lp-sim-dispatch-actions {
    margin-top: 1.75rem;
}

.lp-sim-vitals-frame {
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.9);
    background: linear-gradient(180deg, #0b1220 0%, #020617 100%);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.08), 0 0 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.lp-sim-vitals-frame.has-live {
    border-color: rgba(34, 197, 94, 0.25);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.12), 0 0 28px rgba(34, 197, 94, 0.08);
}

.lp-sim-vitals-chrome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(51, 65, 85, 0.85);
}

.lp-sim-vitals-led {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: lp-vitals-pulse 2.2s ease-in-out infinite;
}

@keyframes lp-vitals-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.45;
    }
}

.lp-sim-vitals-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lp-muted);
}

.lp-sim-vitals-frame .lp-sim-vitals-readout {
    padding: 0.75rem 0.85rem 0.9rem;
    margin: 0;
    min-height: 5.5rem;
}

.lp-sim-vitals-eta,
.lp-sim-vitals-queue {
    margin-top: 0.55rem;
    font-size: 0.78rem;
    color: #fcd34d;
    line-height: 1.45;
}

.lp-sim-vitals-queue {
    color: var(--lp-muted);
}

.lp-sim-monitor-unit {
    margin-top: 0.15rem;
}

.lp-sim-monitor-shell {
    --lp-monitor-bezel: rgba(15, 23, 42, 0.55);
    --lp-monitor-glass: rgba(148, 163, 184, 0.12);
    position: relative;
    padding: 0.65rem 0.75rem 0.85rem;
    border-radius: 22px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, transparent 42%),
        linear-gradient(180deg, #4a5568 0%, #2f3847 48%, #252d3a 100%);
    border: 2px solid rgba(15, 23, 42, 0.65);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        inset 0 -3px 10px rgba(0, 0, 0, 0.45),
        0 4px 0 rgba(15, 23, 42, 0.35),
        0 22px 48px rgba(2, 6, 23, 0.55);
}

.lp-sim-monitor-shell.is-live {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        inset 0 -3px 10px rgba(0, 0, 0, 0.45),
        0 4px 0 rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(34, 211, 238, 0.22),
        0 22px 48px rgba(2, 6, 23, 0.55);
}

.lp-sim-monitor-bolt {
    position: absolute;
    z-index: 2;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 30% 30%, #5b6575 0%, #1e2530 70%);
    border: 1px solid rgba(0, 0, 0, 0.45);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        inset 0 -2px 3px rgba(0, 0, 0, 0.55),
        0 1px 2px rgba(0, 0, 0, 0.35);
}

.lp-sim-monitor-bolt--tl {
    top: 9px;
    left: 11px;
}

.lp-sim-monitor-bolt--tr {
    top: 9px;
    right: 11px;
}

.lp-sim-monitor-bolt--bl {
    bottom: 11px;
    left: 11px;
}

.lp-sim-monitor-bolt--br {
    bottom: 11px;
    right: 11px;
}

.lp-sim-monitor-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.65rem;
    padding: 0.35rem 0.5rem 0.4rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.08) 100%);
    border: 1px solid rgba(15, 23, 42, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lp-sim-monitor-topbar-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4ade80;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.35);
}

.lp-sim-monitor-trace {
    width: 12px;
    height: 8px;
    border-left: 2px solid #4ade80;
    border-bottom: 2px solid #4ade80;
    transform: skewX(-18deg);
    position: relative;
    filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.4));
}

.lp-sim-monitor-trace::after {
    content: "";
    position: absolute;
    left: 5px;
    top: -4px;
    width: 7px;
    height: 10px;
    border-right: 2px solid #4ade80;
    border-top: 2px solid #4ade80;
    transform: skewX(25deg);
}

.lp-sim-monitor-led {
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #3f4f63;
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.lp-sim-monitor-led.is-live {
    background: #22c55e;
    border-color: rgba(21, 128, 61, 0.8);
    box-shadow:
        0 0 10px rgba(34, 197, 94, 0.85),
        0 0 20px rgba(34, 197, 94, 0.35),
        inset 0 -1px 2px rgba(0, 0, 0, 0.25);
}

.lp-sim-monitor-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 0.65rem;
    align-items: stretch;
}

.lp-sim-monitor-screen {
    position: relative;
    min-height: 232px;
    border-radius: 16px;
    padding: 5px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(0, 0, 0, 0.55);
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.65),
        inset 0 0 0 1px var(--lp-monitor-glass),
        0 10px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.lp-sim-monitor-screen-inner {
    position: relative;
    min-height: 218px;
    height: 100%;
    border-radius: 12px;
    padding: 0.65rem 0.75rem 0.85rem;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(34, 197, 94, 0.04) 0%, transparent 55%),
        #020617;
    border: 1px solid var(--lp-monitor-bezel);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.85),
        inset 0 18px 40px rgba(0, 0, 0, 0.35);
}

.lp-sim-monitor-screen-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    min-height: 1.35rem;
    margin-bottom: 0.45rem;
}

.lp-sim-monitor-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lp-sim-monitor-pill--live {
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.22);
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.lp-sim-monitor-pill--stby {
    color: #94a3b8;
    background: rgba(51, 65, 85, 0.5);
}

.lp-sim-monitor-pill--sim {
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.65);
}

.lp-sim-monitor-live {
    min-height: 7.5rem;
}

.lp-sim-monitor-empty-channels {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    text-align: center;
    color: #64748b;
}

.lp-sim-monitor-wave-stack {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.lp-sim-monitor-wave-panel {
    position: relative;
}

.lp-sim-monitor-wave-label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

.lp-sim-monitor-wave-panel--ecg .lp-sim-monitor-wave-label {
    color: rgba(52, 211, 153, 0.65);
}

.lp-sim-monitor-wave-panel--capno .lp-sim-monitor-wave-label {
    color: rgba(250, 204, 21, 0.6);
}

.lp-sim-monitor-wave-clip {
    position: relative;
    overflow: hidden;
    height: 42px;
    border-radius: 5px;
    border: 1px solid rgba(34, 197, 94, 0.14);
    background-color: rgba(0, 0, 0, 0.32);
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 13px,
            rgba(34, 197, 94, 0.035) 13px,
            rgba(34, 197, 94, 0.035) 14px
        ),
        linear-gradient(180deg, transparent 49%, rgba(34, 197, 94, 0.05) 49%, rgba(34, 197, 94, 0.05) 51%, transparent 51%);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.45);
}

.lp-sim-monitor-wave-panel--capno .lp-sim-monitor-wave-clip {
    border-color: rgba(234, 179, 8, 0.16);
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 13px,
            rgba(234, 179, 8, 0.04) 13px,
            rgba(234, 179, 8, 0.04) 14px
        ),
        linear-gradient(180deg, transparent 49%, rgba(234, 179, 8, 0.05) 49%, rgba(234, 179, 8, 0.05) 51%, transparent 51%);
}

.lp-sim-monitor-wave-panel--capno.is-placeholder .lp-sim-monitor-wave-clip {
    border-style: dashed;
    opacity: 0.72;
}

.lp-sim-monitor-wave-sweep {
    display: flex;
    width: 200%;
    height: 100%;
    will-change: transform;
    animation: lp-monitor-wave-drift linear infinite;
}

.lp-sim-monitor-wave-sweep--ecg {
    animation-duration: var(--lp-ecg-ms, 950ms);
}

.lp-sim-monitor-wave-sweep--capno {
    animation-duration: var(--lp-capno-ms, 3200ms);
}

.lp-sim-monitor-wave-panel--capno.is-placeholder .lp-sim-monitor-wave-sweep--capno {
    animation-duration: calc(var(--lp-capno-ms, 3200ms) * 1.35);
    opacity: 0.55;
}

@keyframes lp-monitor-wave-drift {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.lp-sim-monitor-wave-svg {
    display: block;
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    min-height: 42px;
}

.lp-sim-monitor-wave-trace--ecg {
    stroke: #4ade80;
    filter: drop-shadow(0 0 3px rgba(74, 222, 128, 0.45));
}

.lp-sim-monitor-wave-trace--capno {
    stroke: #facc15;
    filter: drop-shadow(0 0 2px rgba(250, 204, 21, 0.35));
}

.lp-sim-monitor-wave-panel--capno.is-placeholder .lp-sim-monitor-wave-trace--capno {
    stroke: rgba(250, 204, 21, 0.35);
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .lp-sim-monitor-wave-sweep {
        animation-duration: 80s !important;
    }
}

.lp-sim-monitor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem 0.5rem;
}

.lp-sim-monitor-metric {
    min-height: 76px;
    padding: 0.15rem 0.05rem 0;
}

.lp-sim-monitor-metric-head {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.15rem;
}

.lp-sim-monitor-metric-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
}

.lp-sim-monitor-metric-value {
    font-size: clamp(1.45rem, 2.4vw, 1.95rem);
    line-height: 1.05;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.lp-sim-monitor-metric-unit {
    margin-top: 0.12rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(100, 116, 139, 0.95);
}

.lp-sim-monitor-metric.tone-neutral .lp-sim-monitor-metric-value {
    color: #cbd5e1;
}

.lp-sim-monitor-metric.tone-neutral .lp-sim-monitor-metric-label {
    color: #94a3b8;
}

.lp-sim-monitor-metric.tone-danger .lp-sim-monitor-metric-value {
    color: #fde047;
}

.lp-sim-monitor-metric.tone-danger .lp-sim-monitor-metric-label {
    color: rgba(253, 224, 71, 0.55);
}

.lp-sim-monitor-metric.tone-cyan .lp-sim-monitor-metric-value {
    color: #22d3ee;
}

.lp-sim-monitor-metric.tone-cyan .lp-sim-monitor-metric-label {
    color: rgba(34, 211, 238, 0.55);
}

.lp-sim-monitor-metric.tone-warn .lp-sim-monitor-metric-value {
    color: #fcd34d;
}

.lp-sim-monitor-metric.tone-warn .lp-sim-monitor-metric-label {
    color: rgba(252, 211, 77, 0.55);
}

.lp-sim-monitor-metric.tone-cyan-soft .lp-sim-monitor-metric-value {
    color: #7dd3fc;
}

.lp-sim-monitor-metric.tone-cyan-soft .lp-sim-monitor-metric-label {
    color: rgba(125, 211, 252, 0.55);
}

.lp-sim-monitor-metric.tone-warn-soft .lp-sim-monitor-metric-value {
    color: #facc15;
}

.lp-sim-monitor-metric.tone-warn-soft .lp-sim-monitor-metric-label {
    color: rgba(250, 204, 21, 0.55);
}

.lp-sim-monitor-off {
    position: relative;
    min-height: 11rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
    color: #64748b;
}

.lp-sim-monitor-off::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.02) 2px,
        rgba(255, 255, 255, 0.02) 3px
    );
    pointer-events: none;
}

.lp-sim-monitor-off-icon {
    position: relative;
    font-size: 1.65rem;
    line-height: 1;
    color: #475569;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.lp-sim-monitor-off-text {
    position: relative;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #526077;
}

.lp-sim-monitor-legacy {
    min-height: 10rem;
    padding: 0.15rem 0;
    color: #86efac;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.12);
}

.lp-sim-monitor-legacy.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 11rem;
    color: #64748b;
    text-shadow: none;
}

.lp-sim-monitor-legacy-placeholder {
    margin: 0;
    max-width: 30ch;
    font-size: 0.88rem;
    line-height: 1.55;
}

.lp-sim-monitor-legacy-rows {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
}

.lp-sim-monitor-legacy-row {
    font-size: 0.84rem;
    line-height: 1.45;
    padding: 0.1rem 0;
    border-bottom: 1px solid rgba(34, 197, 94, 0.08);
}

.lp-sim-monitor-legacy-row:last-child {
    border-bottom: none;
}

.lp-sim-monitor-rail {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding-top: 0.15rem;
}

.lp-sim-monitor-rail form {
    margin: 0;
}

.lp-sim-monitor-rail-btn {
    position: relative;
    width: 100%;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.12),
        inset 0 -3px 0 rgba(0, 0, 0, 0.35),
        0 4px 0 rgba(15, 23, 42, 0.55),
        0 8px 14px rgba(0, 0, 0, 0.28);
    transition:
        transform 0.08s ease,
        box-shadow 0.08s ease,
        filter 0.15s ease;
}

.lp-sim-monitor-rail-btn:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
}

.lp-sim-monitor-rail-btn:focus:not(:focus-visible) {
    outline: none;
}

.lp-sim-monitor-rail-btn:disabled {
    opacity: 0.52;
    cursor: not-allowed;
    filter: grayscale(0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25),
        0 2px 0 rgba(15, 23, 42, 0.35);
    transform: none;
}

.lp-sim-monitor-rail-btn:not(:disabled):active {
    transform: translateY(2px);
    box-shadow:
        inset 0 3px 6px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(15, 23, 42, 0.45);
}

.lp-sim-monitor-rail-btn-power {
    min-height: 56px;
    color: #fecaca;
    background: linear-gradient(180deg, #5c2b2b 0%, #3f1818 45%, #2a1010 100%);
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.lp-sim-monitor-rail-btn-power.is-on {
    color: #fff;
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 48%, #7f1d1d 100%);
    border-color: rgba(127, 29, 29, 0.8);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.18),
        inset 0 -3px 0 rgba(0, 0, 0, 0.35),
        0 4px 0 rgba(69, 10, 10, 0.65),
        0 0 14px rgba(248, 113, 113, 0.35);
}

.lp-sim-monitor-rail-ico {
    font-size: 1.4rem;
    line-height: 1;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.4));
}

.lp-sim-monitor-rail-btn-action {
    min-height: 80px;
    padding: 0.65rem 0.45rem;
    color: #e2e8f0;
    border: 1px solid rgba(0, 0, 0, 0.45);
    background: linear-gradient(180deg, #4b5568 0%, #353f4f 45%, #28303d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    text-align: center;
}

.lp-sim-monitor-rail-btn-action.is-bp {
    color: #1c1917;
    background: linear-gradient(180deg, #fde68a 0%, #eab308 42%, #a16207 100%);
    border-color: rgba(120, 53, 15, 0.55);
}

.lp-sim-monitor-rail-btn-action.is-capno {
    color: #eff6ff;
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 45%, #1e3a8a 100%);
    border-color: rgba(30, 58, 138, 0.75);
}

.lp-sim-monitor-rail-btn-action.is-neutral {
    color: #e2e8f0;
    background: linear-gradient(180deg, #525f71 0%, #3d4654 45%, #2a313c 100%);
    border-color: rgba(15, 23, 42, 0.65);
}

.lp-sim-monitor-rail-label {
    font-size: 0.68rem;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lp-sim-monitor-rail-badge {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.92;
}

.lp-sim-monitor-rail-badge.is-done {
    opacity: 0.78;
}

.lp-sim-monitor-error {
    margin-top: 0.5rem;
    color: #fca5a5;
}

.lp-sim-actions-noscript {
    margin-top: 0.85rem;
}

@media (max-width: 720px) {
    .lp-sim-monitor-main {
        grid-template-columns: 1fr;
    }

    .lp-sim-monitor-rail {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    }

    .lp-sim-monitor-rail-btn-action,
    .lp-sim-monitor-rail-btn-power {
        min-height: 64px;
    }

    .lp-sim-monitor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .lp-sim-monitor-grid {
        grid-template-columns: 1fr;
    }
}

.lp-sim-subcard {
    margin-top: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.35);
}

.lp-sim-subcard-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.lp-sim-patient-body {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: #cbd5e1;
}

.lp-sim-patient-empty {
    margin: 0;
    font-size: 0.82rem;
    color: var(--lp-muted);
    font-style: italic;
}

.lp-sim-h2-spaced {
    margin-top: 1.35rem !important;
}

.lp-sim-panel-hint {
    margin: -0.25rem 0 0.65rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--lp-muted);
}

.lp-sim-panel-empty {
    margin: 0;
    font-size: 0.82rem;
    color: var(--lp-muted);
}

.lp-sim-action-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lp-sim-action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: left;
}

.lp-sim-action-btn.is-awaiting {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.08);
}

.lp-sim-action-btn.is-done:not(.is-awaiting) {
    opacity: 0.55;
}

.lp-sim-action-label {
    flex: 1;
}

.lp-sim-action-badge {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
}

.lp-sim-action-badge.is-muted {
    background: rgba(148, 163, 184, 0.12);
    color: var(--lp-muted);
}

.lp-sim-action-hint {
    margin: 0 0 0.15rem 0.35rem;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #fcd34d;
}

.lp-sim-callline {
    margin: 0.15rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
}

.lp-sim-choice-head {
    margin-top: 1.15rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.65);
}

.lp-sim-choice-head-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lp-muted);
}

.lp-sim-choice-btn {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    line-height: 1.45;
    border-color: rgba(51, 65, 85, 0.85);
    background: rgba(15, 23, 42, 0.75);
}

.lp-sim-choice-btn:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.lp-sim-choice-index {
    flex-shrink: 0;
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--lp-accent);
    opacity: 0.85;
    margin-top: 0.12rem;
}

.lp-sim-choice-text {
    flex: 1;
}

.lp-sim-media-img {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.18);
}

.lp-sim-media-placeholder {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.3);
}

.lp-sim-hotspot-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin-top: 1rem;
}

.lp-sim-inline-alert {
    margin-top: 1rem;
}

.lp-sim-complete-form {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(51, 65, 85, 0.65);
}

.lp-sim-complete-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.25);
    color: #fecaca;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.lp-sim-complete-btn:hover {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(127, 29, 29, 0.38);
}

.lp-sim-loading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1rem;
    color: var(--lp-muted);
    font-size: 0.9rem;
}

.lp-sim-loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lp-accent);
    animation: lp-dot-blink 1s ease-in-out infinite;
}

@keyframes lp-dot-blink {
    0%,
    100% {
        opacity: 0.25;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.lp-sim-call-title {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #f8fafc;
}

.lp-sim-call-snippet {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.lp-sim-call-meta-tight dt:first-child {
    margin-top: 0;
}

.lp-sim-notes-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.45rem;
}

.lp-sim-notes-status {
    font-size: 0.72rem;
    color: var(--lp-muted);
}

.lp-sim-notes-status.is-warn {
    color: #fcd34d;
    font-weight: 600;
}

.lp-sim-notes-save {
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(14, 165, 233, 0.15);
    color: #e0f2fe;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.lp-sim-notes-save:hover {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(14, 165, 233, 0.28);
}

.lp-sim-notes:not(.lp-sim-notes-ruled):focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}

@media (max-width: 900px) {
    .lp-sim-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .lp-sim-panel--center {
        order: 1;
    }

    .lp-sim-panel--monitor {
        order: 2;
    }

    .lp-sim-panel--call {
        order: 3;
    }
}

@media (min-width: 901px) {
    .lp-sim-panel {
        padding: 1.1rem 1.2rem;
    }
}

body.bm-learner-tactical .lp-preview-banner {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fde68a;
}

body.bm-learner-tactical .lp-preview-banner-muted {
    color: #fcd34d;
}

body.bm-learner-tactical .lp-preview-banner-link {
    color: #7dd3fc;
}

body.bm-learner-tactical .lp-hotspot-bg {
    border-color: rgba(56, 189, 248, 0.22) !important;
}

body.bm-learner-tactical .lp-hotspot-hint {
    color: var(--lp-muted);
}

body.bm-learner-tactical .bm-flash {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--lp-text);
}

body.bm-learner-tactical .bm-flash-error {
    border-color: rgba(248, 113, 113, 0.45);
}

/*
 * Debrief page: define --lp-* and debrief chrome vars on the page root so cards + dashboard
 * stay coherent when the learner layout drops body.bm-learner-tactical (or for print/embed).
 */
.lp-debrief {
    --lp-bg-deep: #05080f;
    --lp-panel: rgba(12, 18, 32, 0.92);
    --lp-panel-border: rgba(56, 189, 248, 0.12);
    --lp-accent: #38bdf8;
    --lp-accent-dim: rgba(56, 189, 248, 0.15);
    --lp-alert: #f59e0b;
    --lp-danger: #f87171;
    --lp-text: #e2e8f0;
    --lp-muted: #94a3b8;
    --lp-debrief-chrome-border: rgba(51, 65, 85, 0.55);
    --lp-debrief-dash-divider: rgba(51, 65, 85, 0.4);
    --lp-debrief-meter-track: rgba(30, 41, 59, 0.9);
    --lp-debrief-bar-track-bg: rgba(30, 41, 59, 0.95);
    --lp-debrief-table-head-bg: rgba(0, 0, 0, 0.35);
    --lp-debrief-table-row-alt: rgba(2, 6, 23, 0.35);
    --lp-debrief-table-border: rgba(51, 65, 85, 0.65);
    --lp-debrief-section-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Light-field debrief when learner shell is not tactical (future / alternate layouts). */
body.bm-learner-body:not(.bm-learner-tactical) .lp-debrief {
    --lp-panel: #ffffff;
    --lp-panel-border: rgba(15, 23, 42, 0.12);
    --lp-text: #0f172a;
    --lp-muted: #64748b;
    --lp-accent: #0284c7;
    --lp-debrief-chrome-border: rgba(15, 23, 42, 0.1);
    --lp-debrief-dash-divider: rgba(15, 23, 42, 0.08);
    --lp-debrief-meter-track: #e2e8f0;
    --lp-debrief-bar-track-bg: #e2e8f0;
    --lp-debrief-table-head-bg: #f1f5f9;
    --lp-debrief-table-row-alt: #f8fafc;
    --lp-debrief-table-border: rgba(15, 23, 42, 0.12);
    --lp-debrief-section-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.lp-sim-debrief-shell {
    width: min(960px, 100% - 1.25rem);
    margin-inline: auto;
}

.lp-debrief .lp-debrief-section {
    background: var(--lp-panel);
    border: 1px solid var(--lp-panel-border);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--lp-debrief-section-shadow);
}

.lp-debrief .bm-h1,
.lp-debrief .bm-h2,
.lp-debrief .bm-h3 {
    color: var(--lp-text);
}

.lp-debrief .bm-muted {
    color: var(--lp-muted);
}

body.bm-learner-body:not(.bm-learner-tactical) .lp-debrief .lp-debrief-score-ring-inner {
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.06);
}

/* Debrief — dashboard (marketing-aligned) */
.lp-debrief-dashboard {
    padding: 1rem 1.15rem 1.15rem;
}

.lp-debrief-dashboard-chrome {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--lp-debrief-chrome-border);
}

.lp-debrief-dashboard-hero {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    flex: 1;
}

.lp-debrief-score-ring {
    --bm-ring-pct: 0.75;
    width: 4.25rem;
    height: 4.25rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: conic-gradient(
        from -90deg,
        rgba(16, 185, 129, 0.92) calc(var(--bm-ring-pct) * 360deg),
        rgba(51, 65, 85, 0.75) 0
    );
    display: grid;
    place-items: center;
}

.lp-debrief-score-ring--empty {
    background: rgba(51, 65, 85, 0.55);
}

.lp-debrief-score-ring-inner {
    width: 3.05rem;
    height: 3.05rem;
    border-radius: 50%;
    background: var(--lp-panel);
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lp-debrief-score-ring-val {
    font-weight: 800;
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
    color: var(--lp-text);
}

.lp-debrief-dashboard-h1 {
    margin: 0 0 0.2rem;
    font-size: 1.35rem;
    color: var(--lp-text);
}

.lp-debrief-dashboard-sub {
    margin: 0;
    font-size: 0.88rem;
}

.lp-debrief-dashboard-meter {
    margin-top: 0.55rem;
    max-width: 14rem;
    height: 0.35rem;
    border-radius: 999px;
    background: var(--lp-debrief-meter-track);
    overflow: hidden;
}

.lp-debrief-dashboard-meter-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.85), rgba(52, 211, 153, 0.65));
}

.lp-debrief-dashboard-chip {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(251, 191, 36, 0.95);
}

.lp-debrief-dashboard-band {
    text-align: right;
    flex-shrink: 0;
}

.lp-debrief-dashboard-band-k {
    margin: 0;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lp-muted);
}

.lp-debrief-dashboard-band-v {
    margin: 0.15rem 0 0;
    font-size: 1rem;
    font-weight: 800;
}

.lp-debrief-dashboard[data-band='proficient'] .lp-debrief-dashboard-band-v {
    color: rgba(52, 211, 153, 0.95);
}

.lp-debrief-dashboard[data-band='developing'] .lp-debrief-dashboard-band-v {
    color: rgba(56, 189, 248, 0.95);
}

.lp-debrief-dashboard[data-band='review'] .lp-debrief-dashboard-band-v {
    color: rgba(251, 113, 133, 0.95);
}

.lp-debrief-dash-block {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--lp-debrief-dash-divider);
}

.lp-debrief-dash-block:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.lp-debrief-dash-k {
    margin: 0 0 0.65rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lp-muted);
}

.lp-debrief-dash-k--focus {
    color: rgba(56, 189, 248, 0.95);
}

.lp-debrief-dash-hint {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
}

.lp-debrief-bar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.lp-debrief-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.lp-debrief-bar-lbl {
    color: var(--lp-text);
    font-weight: 600;
}

.lp-debrief-bar-pct {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--lp-text);
}

.lp-debrief-bar-track {
    margin-top: 0.35rem;
    height: 0.28rem;
    border-radius: 999px;
    background: var(--lp-debrief-bar-track-bg);
    overflow: hidden;
}

.lp-debrief-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.lp-debrief-bar-fill--emerald {
    background: rgba(16, 185, 129, 0.72);
}

.lp-debrief-bar-fill--cyan {
    background: rgba(34, 211, 238, 0.65);
}

.lp-debrief-bar-fill--amber {
    background: rgba(251, 191, 36, 0.68);
}

.lp-debrief-bar-fill--rose {
    background: rgba(251, 113, 133, 0.7);
}

.lp-debrief-bar-fill--slate {
    background: rgba(148, 163, 184, 0.55);
}

.lp-debrief-med-table-wrap {
    overflow: auto;
    border-radius: 10px;
    border: 1px solid var(--lp-debrief-table-border);
}

.lp-debrief-med-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.lp-debrief-med-table thead {
    background: var(--lp-debrief-table-head-bg);
    color: var(--lp-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.65rem;
}

.lp-debrief-med-table th,
.lp-debrief-med-table td {
    padding: 0.55rem 0.75rem;
    text-align: left;
}

.lp-debrief-med-qa {
    text-align: right;
    font-weight: 800;
}

.lp-debrief-med-dose {
    font-variant-numeric: tabular-nums;
    color: var(--lp-muted);
}

.lp-debrief-med-table tbody tr:nth-child(odd) {
    background: var(--lp-debrief-table-row-alt);
}

.lp-debrief-qa--emerald {
    color: rgba(52, 211, 153, 0.95);
}

.lp-debrief-qa--amber {
    color: rgba(251, 191, 36, 0.95);
}

.lp-debrief-qa--slate {
    color: rgba(148, 163, 184, 0.95);
}

.lp-debrief-axis-dl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.35rem 1rem;
    margin: 0.85rem 0 0;
    font-size: 0.78rem;
}

.lp-debrief-axis-dl dt {
    margin: 0;
    color: var(--lp-muted);
}

.lp-debrief-axis-dl dd {
    margin: 0;
    font-weight: 600;
    color: var(--lp-text);
}

.lp-debrief-focus-body {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--lp-text);
}

.bm-instructor-console-lead {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
}

.bm-instructor-console-sub {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 700;
}

/* Guided play — call progress meter */
.lp-sim-call-progress-wrap {
    margin: 0.65rem 0 0.85rem;
}

.lp-sim-call-progress {
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.85);
    overflow: hidden;
}

.lp-sim-call-progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.85), rgba(34, 211, 238, 0.55));
}

.lp-sim-call-progress-cap {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
}

/* Free-action workspace column labels */
.lp-sim-col-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lp-muted, #94a3b8);
}

.lp-fa-illus-progress {
    margin-top: 1.25rem;
}

.lp-fa-illus-progress-bar {
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.85);
    overflow: hidden;
}

.lp-fa-illus-progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.8), rgba(45, 212, 191, 0.55));
}

.lp-fa-illus-progress-cap {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
}

/* -------------------------------------------------------------------------- */
/* Public home — marketing + mission library                                  */
/* -------------------------------------------------------------------------- */

.bm-home-stack {
    gap: 1.75rem;
}

.bm-home-hero {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 360px);
    gap: 1.75rem 2rem;
    align-items: center;
}

@media (max-width: 900px) {
    .bm-home-hero {
        grid-template-columns: 1fr;
    }
}

.bm-home-hero-copy {
    min-width: 0;
}

.bm-home-hero .bm-h1 {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.bm-home-vitals-demo {
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: linear-gradient(160deg, rgba(12, 18, 32, 0.98), rgba(4, 8, 16, 0.99));
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(56, 189, 248, 0.08);
    padding: 0.7rem 0.85rem 0.95rem;
}

.bm-home-vitals-brand {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #64748b;
    text-align: center;
    margin: 0 0 0.55rem;
}

.bm-home-vitals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.85rem;
}

.bm-home-vitals-metric {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.bm-home-vitals-metric.is-span {
    grid-column: 1 / -1;
}

.bm-home-vitals-label {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.bm-home-vitals-value {
    font-size: 1.65rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
    line-height: 1.05;
}

.bm-home-vitals-metric.is-warn .bm-home-vitals-value {
    color: #f87171;
}

.bm-home-vitals-metric.is-dim .bm-home-vitals-value {
    color: #475569;
    font-size: 1.15rem;
    font-weight: 700;
}

.bm-home-vitals-unit {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
}

.bm-home-vitals-crit {
    margin-top: 0.65rem;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.22);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: #fecaca;
}

.bm-home-sub {
    margin: 2rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(56, 189, 248, 0.12);
}

.bm-home-sub-lead {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    color: #94a3b8;
    max-width: 52rem;
}

.bm-home-why {
    margin-top: 0.25rem;
}

.bm-home-section-title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f8fafc;
}

.bm-home-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 800px) {
    .bm-home-why-grid {
        grid-template-columns: 1fr;
    }
}

.bm-home-why-card {
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.14);
    background: linear-gradient(165deg, rgba(18, 24, 38, 0.92), rgba(10, 14, 24, 0.96));
    padding: 1rem 1.1rem 1.05rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.bm-home-why-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}

.bm-home-why-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #94a3b8;
}

.bm-home-flow {
    margin-top: 0.25rem;
}

.bm-home-flow-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.bm-home-flow-step {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.12);
    background: rgba(15, 23, 42, 0.45);
}

.bm-home-flow-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1.2;
    opacity: 0.9;
}

.bm-home-flow-step h3 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
}

.bm-home-flow-step p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #94a3b8;
}

.bm-home-brief {
    padding: 1.35rem 1.5rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.14);
    background: linear-gradient(165deg, rgba(18, 24, 38, 0.95), rgba(10, 14, 24, 0.98));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.bm-home-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.bm-home-title {
    color: #f8fafc;
}

.bm-home-lead {
    color: #94a3b8;
    max-width: 62ch;
}

.bm-home-list {
    color: #cbd5e1;
}

.bm-home-actions {
    margin-top: 1.15rem;
}

.bm-home-btn-primary {
    border: none;
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    box-shadow: 0 6px 22px rgba(14, 165, 233, 0.28);
    font-weight: 700;
}

.bm-home-btn-primary:hover,
.bm-home-btn-primary:focus-visible {
    filter: brightness(1.06);
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.bm-home-btn-secondary {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}

.bm-home-btn-secondary:hover,
.bm-home-btn-secondary:focus-visible {
    border-color: rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    background: rgba(30, 41, 59, 0.9);
}

.bm-home-missions-head {
    margin-bottom: 1.1rem;
}

.bm-home-missions-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f8fafc;
}

.bm-home-missions-lead {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #94a3b8;
    max-width: 58rem;
}

.bm-home-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.bm-home-mission-card {
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(56, 189, 248, 0.14);
    background: linear-gradient(165deg, rgba(20, 26, 40, 0.96), rgba(10, 13, 22, 0.98));
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
    transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.bm-home-mission-card:hover {
    border-color: rgba(56, 189, 248, 0.42);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
}

.bm-home-mission-accent {
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 50%, #0e7490 100%);
    opacity: 0.88;
}

.bm-home-mission-body {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem 1.05rem;
    gap: 0.35rem;
    min-width: 0;
}

.bm-home-mission-kicker {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.bm-home-mission-name {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    color: #f8fafc;
}

.bm-home-mission-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.bm-home-mission-pill {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.1);
}

.bm-home-mission-pill.is-muted {
    border-color: rgba(148, 163, 184, 0.35);
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.08);
}

.bm-home-mission-org {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.bm-home-mission-cta {
    margin-top: auto;
    padding-top: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #38bdf8;
}

/* Legacy home library classes (unused by current home; kept for compatibility) */
.bm-call-library {
    --lib-bg: #05080f;
    --lib-panel: rgba(12, 18, 32, 0.94);
    --lib-border: rgba(56, 189, 248, 0.14);
    --lib-accent: #38bdf8;
    --lib-text: #e2e8f0;
    --lib-muted: #94a3b8;
    background: radial-gradient(900px 480px at 10% 0%, rgba(30, 58, 138, 0.35), transparent 55%),
        radial-gradient(700px 400px at 100% 10%, rgba(6, 78, 59, 0.18), transparent 50%),
        var(--lib-bg);
    color: var(--lib-text);
    padding: 2.25rem 0 2.5rem;
    margin-top: 2rem;
    border-radius: 14px;
    border: 1px solid var(--lib-border);
}

.bm-call-library-inner {
    width: min(1100px, 100% - 2rem);
    margin-inline: auto;
}

.bm-call-library h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: #f8fafc;
}

.bm-call-library-lead {
    color: var(--lib-muted);
    margin-bottom: 1.5rem;
    max-width: 52rem;
}

.bm-lib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.bm-lib-card {
    display: flex;
    flex-direction: column;
    background: var(--lib-panel);
    border: 1px solid var(--lib-border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

a.bm-lib-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.bm-lib-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
    color: #f8fafc;
}

.bm-lib-card-meta {
    font-size: 0.8rem;
    color: var(--lib-muted);
    margin-bottom: 0.75rem;
}

.bm-lib-card-cta {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--lib-accent);
}

.bm-lib-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.bm-lib-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.1);
}

.bm-lib-pill.is-muted {
    border-color: rgba(148, 163, 184, 0.35);
    color: var(--lib-muted);
    background: rgba(148, 163, 184, 0.08);
}

/* Media library */
.bm-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.bm-grow {
    flex: 1;
    min-width: 12rem;
}

.bm-actions-end {
    align-self: flex-end;
}

.bm-table-wrap {
    overflow-x: auto;
}

.bm-media-thumb {
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--bm-border);
    display: block;
}

.bm-media-audio-preview {
    width: 200px;
    max-width: 100%;
    vertical-align: middle;
}

.bm-media-video-preview {
    border-radius: 6px;
    border: 1px solid var(--bm-border);
    vertical-align: middle;
    background: #0f172a;
}

.bm-media-edit-preview .bm-media-thumb {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 280px;
}

.bm-pagination {
    margin-top: 1rem;
}

.bm-pagination nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.bm-pagination a,
.bm-pagination span {
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--bm-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--bm-text);
    font-size: 0.9rem;
}

.bm-pagination span[aria-current="page"] {
    background: var(--bm-accent);
    color: #fff;
    border-color: var(--bm-accent);
}

/* Learner — Drug box (parity with resources/views/components/marketing/mockup-drug-box.blade.php) */
.lp-drugbox-mock-frame,
.lp-drugbox-modal.lp-drugbox-mock-frame {
    --dbx-rose-900: rgba(136, 19, 55, 0.45);
    --dbx-rose-800: rgba(190, 24, 93, 0.35);
    --dbx-rose-600: rgba(225, 29, 72, 0.9);
    --dbx-rose-glow: rgba(244, 63, 94, 0.12);
    --dbx-cyan-ring: rgba(6, 182, 212, 0.5);
    --dbx-cyan-fill: rgba(6, 182, 212, 0.15);
    --dbx-cyan-text: #a5f3fc;
    --dbx-cyan-vol: #a5f3fc;
    --dbx-slate-900: #0f172a;
    --dbx-slate-label: #64748b;
    --dbx-slate-muted: #94a3b8;
    --dbx-route: #ffe4e6;
    --dbx-verified: rgba(52, 211, 153, 0.88);
    --dbx-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.lp-drugbox-trigger {
    margin-right: 0.75rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(244, 63, 94, 0.35);
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.12), rgba(15, 23, 42, 0.85));
    color: #fecdd3;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.lp-drugbox-trigger:hover {
    border-color: rgba(244, 63, 94, 0.55);
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.2), rgba(15, 23, 42, 0.9));
}

.lp-drugbox-layer,
.lp-drugbox-modal-layer {
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
}

.lp-drugbox-layer > *,
.lp-drugbox-modal-layer > * {
    pointer-events: auto;
}

.lp-drugbox-backdrop,
.lp-drugbox-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(4px);
}

.lp-drugbox-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(29rem, 94vw);
    height: 100%;
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.99), rgba(2, 6, 23, 0.99));
    border-left: 1px solid var(--dbx-rose-900, rgba(136, 19, 55, 0.45));
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
}

.lp-drugbox-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.65rem;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.55);
    background: linear-gradient(180deg, rgba(76, 5, 25, 0.25), transparent);
}

.lp-drugbox-drawer-head-main {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.lp-drugbox-drawer-rx {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #fecdd3;
    border: 1px solid rgba(244, 63, 94, 0.35);
    background: rgba(76, 5, 25, 0.45);
}

.lp-drugbox-drawer-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f1f5f9;
}

.lp-drugbox-drawer-kicker {
    margin: 0.15rem 0 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.lp-drugbox-icon-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: 8px;
}

.lp-drugbox-icon-btn:hover {
    color: #f8fafc;
    background: rgba(248, 250, 252, 0.06);
}

.lp-drugbox-search {
    margin: 0.85rem 1rem 0;
    width: calc(100% - 2rem);
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(71, 85, 105, 0.85);
    background: rgba(2, 6, 23, 0.75);
    color: #f1f5f9;
    font-size: 0.9rem;
}

.lp-drugbox-cat-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
}

.lp-drugbox-chip {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(71, 85, 105, 0.75);
    background: rgba(15, 23, 42, 0.65);
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
}

.lp-drugbox-chip.is-on {
    border-color: rgba(6, 182, 212, 0.55);
    color: #ecfeff;
    background: rgba(6, 182, 212, 0.14);
}

.lp-drugbox-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1rem 1.35rem;
}

.lp-drugbox-cat-block {
    margin-bottom: 1.35rem;
}

.lp-drugbox-cat-title {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.lp-drugbox-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.75rem, 1fr));
    gap: 0.55rem;
}

.lp-drugbox-vial {
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 12px;
    padding: 0.5rem;
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.75), rgba(2, 6, 23, 0.85));
    cursor: pointer;
    text-align: left;
    color: #e2e8f0;
    transition: border-color 0.18s ease, transform 0.14s ease;
}

.lp-drugbox-vial:hover {
    border-color: rgba(244, 63, 94, 0.45);
    transform: translateY(-2px);
}

.lp-drugbox-vial-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4.75rem;
    border-radius: 10px;
    background: radial-gradient(circle at 28% 18%, rgba(244, 63, 94, 0.1), transparent 50%),
        rgba(2, 6, 23, 0.72);
    margin-bottom: 0.4rem;
    border: 1px solid rgba(51, 65, 85, 0.45);
}

.lp-drugbox-vial-img {
    max-height: 4.1rem;
    max-width: 100%;
    object-fit: contain;
}

.lp-drugbox-vial-fallback {
    width: 2.35rem;
    height: 3.35rem;
    border-radius: 8px;
    border: 2px solid rgba(148, 163, 184, 0.4);
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.18), rgba(15, 23, 42, 0.25));
    display: block;
}

.lp-drugbox-vial-name {
    font-size: 0.8rem;
    line-height: 1.3;
    font-weight: 600;
    display: block;
}

.lp-drugbox-empty {
    margin: 1rem 0 0;
}

/* Modal shell — marketing mockup frame */
.lp-drugbox-modal {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(26rem, 94vw);
    max-height: min(92vh, 52rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.45);
    background: #020617;
    box-shadow: 0 28px 72px -26px rgba(0, 0, 0, 0.82), inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(244, 63, 94, 0.12);
}

.lp-drugbox-modal--workflow {
    width: min(48rem, 96vw);
    max-height: min(92vh, 46rem);
}

.lp-drugbox-modal--simple {
    width: min(26rem, 94vw);
}

.lp-drugbox-modal-inner,
.lp-drugbox-mock-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.lp-drugbox-mock-chrome {
    flex-shrink: 0;
    border-bottom: 1px solid rgba(136, 19, 55, 0.35);
    background: linear-gradient(180deg, rgba(76, 5, 25, 0.4), #020617);
}

.lp-drugbox-mock-chrome-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 1rem;
}

.lp-drugbox-mock-chrome-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.lp-drugbox-mock-rx {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(244, 63, 94, 0.35);
    background: rgba(76, 5, 25, 0.5);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #ffe4e6;
}

.lp-drugbox-mock-chrome-text {
    min-width: 0;
}

.lp-drugbox-mock-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

@media (min-width: 640px) {
    .lp-drugbox-mock-title {
        font-size: 0.875rem;
    }
}

.lp-drugbox-mock-sub {
    margin: 0.1rem 0 0;
    font-size: 0.62rem;
    line-height: 1.35;
    color: rgba(254, 205, 211, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 16rem;
}

@media (min-width: 640px) {
    .lp-drugbox-mock-sub {
        max-width: 22rem;
    }
}

.lp-drugbox-mock-chrome-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.lp-drugbox-mock-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(244, 63, 94, 0.3);
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffe4e6;
}

.lp-drugbox-mock-close {
    font-size: 1.35rem;
    line-height: 1;
    color: #cbd5e1;
}

.lp-drugbox-mock-close:hover {
    color: #fff;
}

.lp-drugbox-mock-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.85rem 0;
}

@media (min-width: 640px) {
    .lp-drugbox-mock-body {
        padding: 1rem 1rem 0;
    }
}

.lp-drugbox-stepper-mock-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.85rem;
}

.lp-drugbox-stepper.lp-drugbox-stepper-mock {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.lp-drugbox-stepper-mock .lp-drugbox-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    min-width: 2.5rem;
}

.lp-drugbox-stepper-mock .lp-drugbox-step-node {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(51, 65, 85, 0.95);
    background: #0f172a;
}

.lp-drugbox-stepper-mock .lp-drugbox-step-num {
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
}

.lp-drugbox-stepper-mock .lp-drugbox-step-lbl {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #475569;
}

.lp-drugbox-stepper-mock .lp-drugbox-step.is-current .lp-drugbox-step-node {
    border-color: var(--dbx-cyan-ring);
    background: var(--dbx-cyan-fill);
}

.lp-drugbox-stepper-mock .lp-drugbox-step.is-current .lp-drugbox-step-num {
    color: var(--dbx-cyan-text);
}

.lp-drugbox-stepper-mock .lp-drugbox-step.is-current .lp-drugbox-step-lbl {
    color: #22d3ee;
}

.lp-drugbox-stepper-mock .lp-drugbox-step.is-done .lp-drugbox-step-node {
    border-color: rgba(51, 65, 85, 0.8);
    background: #0f172a;
}

.lp-drugbox-stepper-mock .lp-drugbox-step.is-done .lp-drugbox-step-num {
    color: #64748b;
}

.lp-drugbox-stepper-mock .lp-drugbox-step.is-done .lp-drugbox-step-lbl {
    color: #64748b;
}

.lp-drugbox-stepper-mock .lp-drugbox-step.is-todo .lp-drugbox-step-node {
    opacity: 0.85;
}

.lp-drugbox-stepper-mock .lp-drugbox-step.is-todo .lp-drugbox-step-num,
.lp-drugbox-stepper-mock .lp-drugbox-step.is-todo .lp-drugbox-step-lbl {
    color: #475569;
}

.lp-drugbox-step-arrow {
    list-style: none;
    margin: 0;
    padding: 0 0.05rem;
    align-self: flex-start;
    padding-top: 0.35rem;
    color: #475569;
    font-size: 0.65rem;
    font-weight: 600;
}

.lp-drugbox-stepper-caps {
    display: none;
    margin-left: 0.35rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

@media (min-width: 640px) {
    .lp-drugbox-stepper-caps {
        display: inline;
    }
}

.lp-drugbox-modal-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.85rem 0.75rem;
}

@media (min-width: 640px) {
    .lp-drugbox-modal-scroll {
        padding: 0 1rem 0.85rem;
    }
}

.lp-drugbox-mock-inset {
    border-radius: 0.75rem;
    border: 1px solid rgba(136, 19, 55, 0.25);
    background: rgba(2, 6, 23, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
}

@media (min-width: 640px) {
    .lp-drugbox-mock-inset {
        padding: 1rem;
    }
}

.lp-drugbox-mock-inset-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lp-drugbox-mock-drug-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

.lp-drugbox-mock-drug-name {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

@media (min-width: 640px) {
    .lp-drugbox-mock-drug-name {
        font-size: 0.875rem;
    }
}

.lp-drugbox-mock-drug-pres {
    margin: 0.15rem 0 0;
    font-family: var(--dbx-mono);
    font-size: 0.65rem;
    color: #64748b;
}

.lp-drugbox-mock-drug-generic {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
}

.lp-drugbox-mock-drug-route {
    text-align: right;
}

.lp-drugbox-mock-route-label {
    margin: 0;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.lp-drugbox-mock-route-val {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dbx-route);
}

.lp-drugbox-mock-readout-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .lp-drugbox-mock-readout-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.lp-drugbox-mock-readout-label {
    margin: 0;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.lp-drugbox-mock-readout-val {
    margin: 0.25rem 0 0;
    font-family: var(--dbx-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
}

.lp-drugbox-mock-readout-val--vol {
    color: var(--dbx-cyan-vol);
}

.lp-drugbox-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lp-drugbox-field--mock {
    gap: 0.35rem;
}

.lp-drugbox-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.lp-drugbox-input--mock {
    padding: 0.5rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.65);
    color: #f8fafc;
    font-size: 0.9rem;
}

.lp-drugbox-input--mock:focus {
    outline: none;
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.15);
}

.lp-drugbox-input-vol {
    font-family: var(--dbx-mono);
    font-weight: 700;
    color: var(--dbx-cyan-vol) !important;
}

.lp-drugbox-input-vol-plain {
    font-family: var(--dbx-mono);
    font-weight: 700;
    color: var(--dbx-cyan-vol);
}

.lp-drugbox-label-hint {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #64748b;
}

.lp-drugbox-mock-prep-block,
.lp-drugbox-mock-admin-block {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.lp-drugbox-waste-panel--mock {
    margin-top: 0.15rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(244, 63, 94, 0.25);
    background: rgba(76, 5, 25, 0.2);
}

.lp-drugbox-waste-title {
    margin: 0;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(254, 205, 211, 0.9);
}

.lp-drugbox-waste-desc {
    margin: 0.35rem 0 0.5rem;
    font-size: 0.7rem;
    line-height: 1.45;
    color: rgba(255, 228, 230, 0.85);
}

.lp-drugbox-check {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    font-size: 0.8rem;
    color: #e2e8f0;
}

.lp-drugbox-check--waste {
    margin: 0;
}

.lp-drugbox-check--contra {
    margin-top: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(69, 26, 3, 0.2);
}

.lp-drugbox-mock-cta-primary {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(244, 63, 94, 0.4);
    background: linear-gradient(180deg, rgba(225, 29, 72, 0.9), rgba(159, 18, 57, 0.9));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(76, 5, 25, 0.4);
}

@media (min-width: 640px) {
    .lp-drugbox-mock-cta-primary {
        font-size: 0.875rem;
    }
}

.lp-drugbox-mock-cta-primary:hover:not(:disabled) {
    filter: brightness(1.06);
}

.lp-drugbox-mock-cta-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lp-drugbox-mock-cta-admin {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(6, 182, 212, 0.45);
    background: linear-gradient(180deg, rgba(8, 145, 178, 0.92), rgba(14, 116, 144, 0.95));
    color: #ecfeff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(8, 51, 68, 0.4);
}

.lp-drugbox-mock-cta-admin:hover:not(:disabled) {
    filter: brightness(1.05);
}

.lp-drugbox-mock-cta-admin:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lp-drugbox-mock-admin-title {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.lp-drugbox-admin-lead {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.lp-drugbox-admin-dl--tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.5rem;
    margin: 0;
}

.lp-drugbox-admin-tile {
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(51, 65, 85, 0.65);
    background: rgba(2, 6, 23, 0.45);
}

.lp-drugbox-admin-tile dt {
    margin: 0;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.lp-drugbox-admin-tile dd {
    margin: 0.25rem 0 0;
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.85rem;
}

.lp-drugbox-banner {
    margin: 0 0 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.375rem;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fef3c7;
    font-size: 0.85rem;
}

.lp-drugbox-footer-strip {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-top: 1px solid rgba(30, 41, 59, 0.9);
    background: rgba(0, 0, 0, 0.35);
    font-family: var(--dbx-mono);
    font-size: 0.58rem;
    color: #64748b;
}

@media (min-width: 640px) {
    .lp-drugbox-footer-strip {
        padding: 0.5rem 1rem;
    }
}

.lp-drugbox-footer-strip__left {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.lp-drugbox-footer-strip__verified {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--dbx-verified);
}

.lp-drugbox-modal-foot.lp-drugbox-modal-foot--mock {
    display: flex;
    justify-content: center;
    padding: 0.65rem 1rem 0.85rem;
    margin: 0;
    border-top: 1px solid rgba(30, 41, 59, 0.55);
    background: rgba(2, 6, 23, 0.5);
}

.lp-drugbox-ghost {
    padding: 0.35rem 0.75rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.lp-drugbox-ghost:hover:not(:disabled) {
    color: #e2e8f0;
}

.lp-drugbox-ghost:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lp-drugbox-medlog {
    max-height: 14rem;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.lp-drugbox-medlog-empty {
    margin: 0.25rem 0 0;
}

.lp-drugbox-medlog-card {
    border: 1px solid rgba(51, 65, 85, 0.65);
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    margin-bottom: 0.45rem;
    background: rgba(2, 6, 23, 0.35);
}

.lp-drugbox-medlog-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.lp-drugbox-medlog-dl {
    margin: 0;
    display: grid;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: #cbd5e1;
}

.lp-drugbox-medlog-dl dt {
    display: inline;
    color: #64748b;
    margin: 0;
}

.lp-drugbox-medlog-dl dd {
    display: inline;
    margin: 0 0 0 0.25rem;
}

.lp-drugbox-medlog-dl > div {
    margin: 0;
}

.lp-drugbox-debrief-axes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.lp-drugbox-debrief-axis {
    border: 1px solid var(--bm-border);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    background: rgba(15, 23, 42, 0.35);
}

.lp-drugbox-debrief-axis-lbl {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bm-muted);
}

.lp-drugbox-debrief-axis-val {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bm-text);
}

/* -------------------------------------------------------------------------- */
/* Account workspace shell                                                    */
/* -------------------------------------------------------------------------- */

.bm-workspace-body {
    margin: 0;
    min-height: 100vh;
}

.bm-workspace-layout {
    display: flex;
    min-height: 100vh;
}

.bm-workspace-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(2, 6, 23, 0.55);
}

.bm-workspace-sidebar {
    width: min(17.5rem, 88vw);
    flex-shrink: 0;
    border-right: 1px solid rgba(56, 189, 248, 0.12);
    background: rgba(8, 12, 22, 0.98);
    display: flex;
    flex-direction: column;
    z-index: 50;
    transform: translateX(-102%);
    transition: transform 0.2s ease;
}

.bm-workspace-sidebar.is-open {
    transform: translateX(0);
}

@media (min-width: 960px) {
    .bm-workspace-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        transform: none;
    }

    .bm-workspace-backdrop,
    .bm-menu-btn,
    .bm-workspace-close {
        display: none !important;
    }
}

.bm-workspace-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

/* Sidebar primary nav (was missing — links defaulted to inline and ran together) */
.bm-workspace-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.35rem 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bm-workspace-nav-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    color: #e2e8f0;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.bm-workspace-nav-link:hover {
    background: rgba(30, 41, 59, 0.65);
    border-color: rgba(56, 189, 248, 0.15);
}

.bm-workspace-nav-link:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.55);
    outline-offset: 2px;
}

.bm-workspace-nav-link.is-active {
    background: rgba(14, 116, 144, 0.22);
    border-color: rgba(34, 211, 238, 0.35);
}

.bm-workspace-nav-label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #f1f5f9;
}

.bm-workspace-nav-desc {
    font-size: 0.72rem;
    line-height: 1.35;
    color: #94a3b8;
}

.bm-workspace-sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    font-size: 0.8rem;
}

.bm-workspace-user-name {
    font-weight: 600;
    color: #f1f5f9;
}

.bm-workspace-user-email {
    color: #94a3b8;
    word-break: break-all;
}

.bm-workspace-user-roles {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.bm-badge-soft {
    background: rgba(30, 41, 59, 0.85);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.bm-workspace-surface {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.bm-workspace-topbar {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    background: rgba(8, 12, 22, 0.55);
    backdrop-filter: blur(8px);
}

.bm-workspace-topbar-title .bm-h1 {
    margin: 0;
    font-size: 1.35rem;
}

.bm-workspace-topbar-actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.85rem;
}

.bm-workspace-main {
    flex: 1;
    padding-bottom: 2rem;
}

.bm-workspace-content {
    padding-top: 1rem;
}

.bm-stack-lg {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bm-workspace-card {
    padding: 1.15rem 1.25rem;
}

.bm-card-muted {
    border-color: rgba(100, 116, 139, 0.45);
    background: rgba(15, 23, 42, 0.55);
}

.bm-workspace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.bm-workspace-grid-2 {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 720px) {
    .bm-workspace-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Account hub tiles (grid children — needs block/card styling) */
.bm-tile-link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: var(--bm-radius, 10px);
    text-decoration: none;
    color: #e2e8f0;
    border: 1px solid rgba(51, 65, 85, 0.65);
    background: rgba(2, 6, 23, 0.45);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.bm-tile-link:hover {
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(15, 23, 42, 0.75);
}

.bm-tile-link:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.55);
    outline-offset: 2px;
}

.bm-tile-title {
    font-weight: 700;
    font-size: 1rem;
    color: #f8fafc;
}

.bm-tile-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #94a3b8;
}

/* Plan / entitlement key-value list */
.bm-kv-list {
    margin: 0.5rem 0 0;
    padding-left: 1.15rem;
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.55;
}

.bm-kv-list li {
    margin-bottom: 0.35rem;
}

.bm-kv-list code {
    font-size: 0.82em;
    color: #e2e8f0;
}

.bm-upgrade-card {
    border: 1px solid rgba(51, 65, 85, 0.65);
    border-radius: var(--bm-radius);
    padding: 1rem 1.1rem;
    background: rgba(2, 6, 23, 0.35);
}

.bm-h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
}

.bm-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.bm-steps {
    margin: 0;
    padding-left: 1.2rem;
    color: #cbd5e1;
    line-height: 1.55;
}

.bm-steps li {
    margin-bottom: 0.35rem;
}

.bm-pre {
    margin: 0.75rem 0 0;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(51, 65, 85, 0.8);
    background: rgba(2, 6, 23, 0.75);
    color: #e2e8f0;
    font-size: 0.75rem;
    overflow: auto;
    max-height: 18rem;
}

.bm-inline-form {
    display: inline;
    margin: 0;
}

.bm-link-quiet {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.bm-link-quiet:hover,
.bm-link-quiet:focus-visible {
    color: #38bdf8;
}

.bm-icon-btn {
    border: 1px solid rgba(71, 85, 105, 0.8);
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.bm-flash-warn {
    background: rgba(120, 53, 15, 0.35);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fef3c7;
}

.bm-dl-grid {
    display: grid;
    gap: 0.65rem 1.25rem;
}

.bm-dl-grid dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin: 0;
}

.bm-dl-grid dd {
    margin: 0.15rem 0 0;
    color: #e2e8f0;
}

/* Public pricing page (Tailwind marketing + shared cards) */
.bm-pricing-page {
    padding: 2rem 0 3rem;
}

.bm-pricing-hero .bm-h1 {
    margin: 0.35rem 0 0;
}

.bm-pricing-cards {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .bm-pricing-cards {
        grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    }
}

.bm-pricing-card {
    border: 1px solid rgba(51, 65, 85, 0.65);
    border-radius: var(--bm-radius);
    padding: 1rem 1.1rem;
    background: rgba(2, 6, 23, 0.35);
}

.bm-pricing-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
}

.bm-pricing-card-meta {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.bm-pricing-card-actions {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bm-pricing-matrix-wrap {
    margin-top: 0.75rem;
}

.bm-pricing-matrix th,
.bm-pricing-matrix td {
    font-size: 0.82rem;
    vertical-align: top;
}

/* Learner play — free tier banner */
.lp-free-tier-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: rgba(8, 47, 73, 0.45);
    color: #e0f2fe;
    font-size: 0.85rem;
}

.lp-free-tier-banner-muted {
    color: #bae6fd;
}

.lp-free-tier-banner-link {
    margin-left: auto;
    color: #38bdf8;
    font-weight: 600;
    text-decoration: none;
}

.lp-free-tier-banner-link:hover,
.lp-free-tier-banner-link:focus-visible {
    text-decoration: underline;
}

/* Admin — LMS implementation guides (long-form) */
.bm-lms-guide {
    max-width: 52rem;
}

.bm-lms-guide-header .bm-h1 {
    margin-bottom: 0.35rem;
}

.bm-lms-guide-lead {
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 48rem;
}

.bm-lms-guide-breadcrumbs {
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
}

.bm-lms-guide-breadcrumbs a {
    color: var(--bm-accent, #0b5cab);
    text-decoration: none;
    font-weight: 600;
}

.bm-lms-guide-breadcrumbs a:hover,
.bm-lms-guide-breadcrumbs a:focus-visible {
    text-decoration: underline;
}

.bm-lms-guide-bc-sep {
    margin: 0 0.35rem;
    color: var(--bm-muted, #5c6b7a);
}

.bm-lms-guide-bc-current {
    color: var(--bm-text, #1a2b3c);
    font-weight: 600;
}

.bm-lms-guide-toc {
    border: 1px solid var(--bm-border, #d8dee6);
    border-radius: var(--bm-radius, 10px);
    padding: 1rem 1.15rem;
    background: var(--bm-surface-alt, #f6f8fb);
}

.bm-lms-guide-toc-title {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.bm-lms-guide-toc ol {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.7;
    font-size: 0.92rem;
}

.bm-lms-guide-toc a {
    color: var(--bm-accent, #0b5cab);
    text-decoration: none;
}

.bm-lms-guide-toc a:hover,
.bm-lms-guide-toc a:focus-visible {
    text-decoration: underline;
}

.bm-lms-guide-section {
    margin-top: 2rem;
    padding-top: 0.25rem;
    scroll-margin-top: 5rem;
}

.bm-lms-guide-section .bm-h2 {
    margin-top: 0;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--bm-border, #d8dee6);
}

.bm-lms-guide-section .bm-h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.05rem;
}

.bm-lms-guide-section p,
.bm-lms-guide-section li {
    line-height: 1.65;
    color: var(--bm-text, #1a2b3c);
}

.bm-lms-guide-list {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.bm-lms-guide-list li + li {
    margin-top: 0.35rem;
}

.bm-lms-guide-ol {
    list-style: decimal;
}

.bm-lms-guide-table th,
.bm-lms-guide-table td {
    vertical-align: top;
}

.bm-lms-guide-dl dt {
    font-weight: 700;
    margin-top: 0.65rem;
}

.bm-lms-guide-dl dd {
    margin: 0.15rem 0 0;
}

.bm-lms-guide-callout {
    border-color: rgba(11, 92, 171, 0.22);
    background: rgba(11, 92, 171, 0.04);
}

.bm-lms-guide-figure {
    margin: 1rem 0 0;
}

.bm-lms-guide-figure-frame {
    min-height: 8rem;
    border: 2px dashed rgba(100, 116, 139, 0.55);
    border-radius: var(--bm-radius, 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    text-align: center;
    background: repeating-linear-gradient(
        -12deg,
        rgba(148, 163, 184, 0.06),
        rgba(148, 163, 184, 0.06) 12px,
        transparent 12px,
        transparent 24px
    );
}

.bm-lms-guide-figure-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bm-text, #1a2b3c);
}

.bm-lms-guide-figure-hint {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--bm-muted, #5c6b7a);
    max-width: 36rem;
}

.bm-lms-guide-figcaption {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: var(--bm-muted, #5c6b7a);
}

.bm-lms-guide-footer {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bm-border, #d8dee6);
}

.bm-lms-guide-card {
    position: relative;
}

.bm-lms-guide-card-cta {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bm-accent, #0b5cab);
}

/* Account + admin — help center index */
.bm-help-page {
    max-width: 52rem;
}

.bm-help-shell-switch {
    margin-bottom: 0.25rem;
}

.bm-help-intro {
    line-height: 1.55;
    margin: 0 0 1rem;
}

.bm-help-section {
    margin-top: 1.75rem;
}

.bm-help-section .bm-h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--bm-border, #d8dee6);
    padding-bottom: 0.35rem;
}

.bm-help-section-desc {
    margin: 0 0 0.65rem;
    line-height: 1.5;
}

.bm-help-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bm-help-link-list li {
    margin: 0;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.bm-help-link-list li:last-child {
    border-bottom: none;
}

.bm-help-link {
    font-weight: 600;
}

.bm-help-link-desc,
.bm-help-doc-desc {
    font-size: 0.88rem;
    line-height: 1.45;
}

.bm-help-doc-label code {
    font-size: 0.82rem;
    word-break: break-all;
}

/* -------------------------------------------------------------------------- */
/* Learner dashboard (catalog hero + scenario grid)                           */
/* -------------------------------------------------------------------------- */

.bm-ld {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.bm-ld-hero {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding: 1.5rem 1.35rem;
    border-radius: var(--bm-radius, 10px);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.35));
    border: 1px solid var(--bm-border, rgba(56, 189, 248, 0.14));
    box-shadow: var(--bm-shadow);
}

@media (min-width: 840px) {
    .bm-ld-hero {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 1.5rem;
    }
}

.bm-ld-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bm-muted, #94a3b8);
}

.bm-ld-title {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--bm-text, #f1f5f9);
}

.bm-ld-subtitle {
    margin: 0.4rem 0 0;
    color: var(--bm-muted, #94a3b8);
    font-size: 0.95rem;
}

.bm-ld-plan-note {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--bm-muted, #94a3b8);
}

.bm-ld-plan-note a {
    color: var(--bm-accent, #38bdf8);
    font-weight: 600;
}

.bm-ld-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.bm-ld-stat {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 8.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.bm-ld-stat-icon {
    font-size: 1.15rem;
    line-height: 1;
    opacity: 0.9;
}

.bm-ld-stat-value {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--bm-text, #f1f5f9);
}

.bm-ld-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--bm-muted, #94a3b8);
}

.bm-ld-catalog {
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.15rem 1.5rem;
}

.bm-ld-catalog-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .bm-ld-catalog-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.bm-ld-section-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.bm-ld-section-sub {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    color: var(--bm-muted, #94a3b8);
}

.bm-ld-tabs {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.2rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.bm-ld-tab {
    border: none;
    cursor: pointer;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--bm-muted, #94a3b8);
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.bm-ld-tab:hover,
.bm-ld-tab:focus-visible {
    color: var(--bm-text, #f1f5f9);
    outline: none;
}

.bm-ld-tab.is-active {
    background: rgba(56, 189, 248, 0.22);
    color: #e0f2fe;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.bm-ld-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: 1rem;
}

.bm-ld-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--bm-muted, #94a3b8);
    font-size: 0.95rem;
}

.bm-ld-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(165deg, rgba(22, 30, 46, 0.95), rgba(10, 14, 24, 0.98));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    min-height: 100%;
}

.bm-ld-card-hero {
    position: relative;
    height: 6.5rem;
    background: linear-gradient(125deg, #1e3a5f, #312e81, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-ld-card-hero-letter {
    font-size: 2.25rem;
    font-weight: 800;
    color: rgba(241, 245, 249, 0.35);
    user-select: none;
}

.bm-ld-card-body {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.45rem;
}

.bm-ld-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.bm-ld-tag {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(56, 189, 248, 0.2);
    color: #bae6fd;
}

.bm-ld-tag.is-bls {
    background: rgba(59, 130, 246, 0.25);
    color: #bfdbfe;
}

.bm-ld-tag.is-als {
    background: rgba(167, 139, 250, 0.28);
    color: #ddd6fe;
}

.bm-ld-tag.is-muted {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    text-transform: none;
    font-weight: 600;
    font-size: 0.72rem;
}

.bm-ld-tag.is-scope {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    text-transform: none;
    font-size: 0.68rem;
}

.bm-ld-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bm-text, #f1f5f9);
}

.bm-ld-card-desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--bm-muted, #94a3b8);
    flex: 1;
}

.bm-ld-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.bm-ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.bm-ld-btn:hover,
.bm-ld-btn:focus-visible {
    filter: brightness(1.06);
    outline: none;
}

.bm-ld-btn-primary {
    background: var(--bm-accent, #0b5fff);
    color: #fff;
}

body.bm-theme-field .bm-ld-btn-primary {
    background: linear-gradient(180deg, #38bdf8, #0ea5e9);
    color: #0f172a;
}

.bm-ld-btn-continue {
    background: linear-gradient(180deg, #c2410c, #9a3412);
    color: #fff7ed;
}

.bm-ld-btn-restart {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.95), rgba(109, 40, 217, 0.98));
    color: #f5f3ff;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.bm-ld-btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1;
}

.bm-ld-btn-disabled {
    background: rgba(148, 163, 184, 0.12);
    color: var(--bm-muted, #94a3b8);
    cursor: not-allowed;
}

.bm-ld-card-footer-link {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--bm-accent, #38bdf8);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bm-ld-card-footer-link:hover,
.bm-ld-card-footer-link:focus-visible {
    color: #7dd3fc;
}

.bm-ld-secondary {
    margin-top: 0.5rem;
}

.bm-ld-join-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.bm-ld-join-form .bm-input {
    flex: 1 1 10rem;
    min-width: 0;
}

.bm-ld-mt {
    margin-top: 0.65rem;
}

/* Free-action simulation player */
.lp-sim-command-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(51, 65, 85, 0.85);
    background: rgba(2, 6, 23, 0.55);
    font-size: 0.85rem;
}

.lp-sim-command-strip--fa .lp-sim-command-strip-exit {
    margin-left: auto;
}

.lp-sim-grid-freeaction {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 900px) {
    .lp-sim-grid-freeaction {
        grid-template-columns: minmax(12rem, 1fr) minmax(0, 1.4fr) minmax(12rem, 1fr);
    }
}

.lp-fa-cat {
    margin-bottom: 0.5rem;
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
}

.lp-fa-cat-summary {
    cursor: pointer;
    font-weight: 600;
}

.lp-fa-cat-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.lp-fa-action-form .bm-btn-block {
    width: 100%;
    text-align: left;
}

.lp-fa-state-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 0.75rem;
    font-size: 0.88rem;
}

.lp-fa-state-dl dt {
    color: var(--lp-muted, #94a3b8);
    text-transform: capitalize;
}

.lp-sim-footer-actions {
    margin-top: 1.25rem;
}