.mse-orbiflow {
    --orb-accent: #644af5;
    --orb-primary: #5438db;
    --orb-ink: #191826;
    --orb-muted: #575568;
    --orb-canvas: #fbfcfe;
    --orb-line: #e4e2ee;
    --orb-lilac: #f5f3ff;
    --orb-mint: #e5fcec;
    --orb-blue: #eef5ff;
    --orb-rose: #fee8ea;
    --bs-body-color: var(--orb-ink);
    --bs-body-bg: var(--orb-canvas);
    color: var(--orb-ink);
    background: var(--orb-canvas);
    font-family: Inter, system-ui, sans-serif;
}
.mse-orbiflow:not(.mse-settings-preview) {
    --navy: var(--orb-ink);
    --teal: var(--orb-primary);
    --teal-dark: #422ab7;
    --teal-light: var(--orb-lilac);
}
.mse-orbiflow > nav.navbar > .container,
.mse-orbiflow > main > .container,
.mse-orbiflow .mse-home .container {
    width: 100%;
    max-width: none;
    padding-inline: clamp(1rem, 3vw, 3rem);
}
.mse-orbiflow .btn-primary,
.mse-orbiflow .btn-teal,
.mse-orbiflow .btn-navy {
    --bs-btn-color: white;
    --bs-btn-bg: var(--orb-primary);
    --bs-btn-border-color: var(--orb-primary);
    --bs-btn-hover-bg: #422ab7;
    --bs-btn-hover-border-color: #422ab7;
    --bs-btn-hover-color: white;
    --bs-btn-active-bg: #422ab7;
    --bs-btn-active-border-color: #422ab7;
}
.mse-orbiflow .btn-teal, .mse-orbiflow .btn-navy { background: var(--orb-primary); color: white; }
.mse-orbiflow .btn-teal:hover, .mse-orbiflow .btn-navy:hover { background: #422ab7; color: white; }
.mse-orbiflow .btn-outline-primary {
    --bs-btn-color: var(--orb-primary);
    --bs-btn-border-color: var(--orb-primary);
    --bs-btn-hover-bg: var(--orb-primary);
    --bs-btn-hover-border-color: var(--orb-primary);
    --bs-btn-active-bg: #422ab7;
    --bs-btn-active-border-color: #422ab7;
}
.mse-orbiflow :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--orb-accent);
    outline-offset: 3px;
}
.mse-orbiflow .workspace-shell {
    --ink: var(--orb-ink);
    --muted: var(--orb-muted);
    --line: var(--orb-line);
    background: var(--orb-canvas);
    grid-template-columns: 224px minmax(0, 1fr);
}
.mse-orbiflow .workspace-sidebar { background: white; color: var(--orb-ink); border-right: 1px solid var(--orb-line); }
.mse-orbiflow .workspace-brand, .mse-orbiflow .sidebar-link { color: var(--orb-ink); }
.mse-orbiflow .workspace-brand small, .mse-orbiflow .sidebar-caption { color: var(--orb-muted); }
.mse-orbiflow .sidebar-link i { color: var(--orb-primary); }
.mse-orbiflow .sidebar-link:hover, .mse-orbiflow .sidebar-link.is-current { background: var(--orb-lilac); color: #422ab7; }
.mse-orbiflow .brand-mark, .mse-orbiflow .user-avatar { background: var(--orb-primary); color: white; }
.mse-orbiflow .workspace-content { width: 100%; max-width: none; }
.mse-orbiflow .workspace-topbar { background: white; border-color: var(--orb-line); }
.mse-orbiflow .welcome-panel { min-height: auto; padding: clamp(1rem, 2.7vw, 2rem); background: var(--orb-lilac); border: 1px solid var(--orb-line); }
.mse-orbiflow .welcome-art { display: none; }
.mse-orbiflow .welcome-panel h1, .mse-orbiflow .section-heading h2, .mse-orbiflow .metric-card strong { color: var(--orb-ink); }
.mse-orbiflow .welcome-panel p, .mse-orbiflow .section-heading p, .mse-orbiflow .metric-card small { color: var(--orb-muted); font-size: .875rem; }
.mse-orbiflow .workspace-shell .eyebrow { color: var(--orb-primary); }
.mse-orbiflow .metric-card, .mse-orbiflow .content-panel, .mse-orbiflow .area-card, .mse-orbiflow .staff-area-card { background: white; border: 1px solid var(--orb-line); border-radius: 14px; }
.mse-orbiflow .metric-card { border-inline-start: 3px solid var(--orb-accent); }
.mse-orbiflow .metric-mint .metric-icon { background: var(--orb-mint); color: #176344; }
.mse-orbiflow .metric-blue .metric-icon { background: var(--orb-blue); color: #255a98; }
.mse-orbiflow .metric-peach .metric-icon { background: var(--orb-rose); color: #9e2332; }
.mse-orbiflow .quick-action, .mse-orbiflow .staff-shortcut-card, .mse-orbiflow .staff-module-links a { min-height: 44px; }
.mse-orbiflow .quick-action:hover, .mse-orbiflow .staff-shortcut-card:hover { background: var(--orb-lilac); border-color: var(--orb-accent); }
.mse-orbiflow .customer-b2c { grid-template-columns: minmax(0, 1fr); }
.mse-orbiflow .customer-b2c .workspace-sidebar { position: static; height: auto; display: block; border-right: 0; border-bottom: 1px solid var(--orb-line); }
.mse-orbiflow .customer-b2c .sidebar-links { display: flex; flex-wrap: wrap; }
.mse-orbiflow .mse-home .mh-hero { background: var(--orb-lilac); }
.mse-orbiflow .mse-home .mh-title { color: var(--orb-ink); }
.mse-orbiflow .mse-home .mh-eyebrow { color: var(--orb-primary); }
.mse-orbiflow .mse-home .mh-product { border-color: var(--orb-line); border-radius: 14px; }
.mse-catalogue-search, .mse-workspace-tools { display: flex; gap: .5rem; flex-wrap: wrap; margin-block: .5rem 1rem; }
.mse-catalogue-search .form-control { flex: 1 1 9rem; width: auto; }
.mse-workspace-tools .btn, .mse-catalogue-search .btn { min-height: 44px; }
.mse-search-dialog {
    width: min(calc(100% - 2rem), 40rem);
    max-height: min(80vh, 42rem);
    border: 1px solid var(--orb-line);
    border-radius: 14px;
    padding: 1rem;
    color: var(--orb-ink);
    background: white;
}
.mse-search-dialog::backdrop { background: #19182688; }
.mse-search-dialog > form { text-align: end; }
.mse-search-dialog h2 { font-size: 1.3rem; }
.mse-search-results { list-style: none; padding: 0; }
.mse-search-results a { display: block; padding: .65rem; border-bottom: 1px solid var(--orb-line); color: var(--orb-primary); }
@media (max-width: 991.98px) {
    .mse-orbiflow .workspace-shell { grid-template-columns: minmax(0, 1fr); }
    .mse-orbiflow .workspace-sidebar { position: static; height: auto; max-height: none; overflow: visible; }
    .mse-orbiflow .sidebar-links, .mse-orbiflow .sidebar-bottom { display: flex; flex-wrap: wrap; gap: .25rem; }
    .mse-orbiflow .workspace-sidebar .sidebar-caption { display: none; }
    .mse-orbiflow .sidebar-link { max-width: 100%; }
    .mse-orbiflow .sidebar-link span { white-space: normal; }
}
@media (max-width: 575.98px) {
    .mse-orbiflow .mse-home .mh-product .btn { min-height: 44px; display: grid; place-items: center; }
    .mse-orbiflow .workspace-topbar { height: auto; min-height: 56px; flex-wrap: wrap; padding-block: .5rem; }
}
