
:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-muted: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --muted: #64748b;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --gold: #f59e0b;
    --gold-strong: #d97706;
    --orange: #f97316;
    --green: #10b981;
    --green-bg: #e6fbf3;
    --amber: #d97706;
    --amber-bg: #fffbeb;
    --red: #ef4444;
    --red-bg: #fef2f2;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.02);
    --radius: 10px;
}

.mf-view-evidence-pixel {
    height: 1px;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 1px;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
    overflow: visible;
}

.sidebar {
    background: #0f203a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 28px;
    height: 100vh;
    overflow-y: auto;
    padding: 22px 18px;
    position: sticky;
    top: 0;
}

.brand {
    align-items: center;
    display: flex;
    gap: 12px;
    min-height: 42px;
}

.brand-logo {
    background: #ffffff;
    border-radius: 6px;
    height: 42px;
    object-fit: contain;
    padding: 4px;
    width: 48px;
}

.brand strong,
.brand span {
    display: block;
}

.brand strong {
    font-size: 15px;
    line-height: 1.2;
}

.brand span {
    color: #afbdd0;
    font-size: 12px;
    margin-top: 2px;
}

.nav-list {
    display: grid;
    gap: 6px;
}

.nav-group-label {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 8px 10px 2px;
    text-transform: uppercase;
}

.nav-item {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #dce6f5;
    cursor: pointer;
    display: flex;
    gap: 10px;
    height: 38px;
    padding: 0 10px;
    text-align: left;
}

.nav-item[hidden],
.nav-group-label[hidden],
.topbar-actions [hidden],
[hidden] {
    display: none !important;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.icon {
    align-items: center;
    color: #9fb2ca;
    display: inline-flex;
    font-size: 15px;
    justify-content: center;
    width: 18px;
}

.sidebar-note {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #dce6f5;
    display: flex;
    font-size: 13px;
    gap: 8px;
    margin-top: auto;
    padding: 12px;
}

.auth-note {
    margin-top: -18px;
}

.status-dot {
    background: #45d483;
    border-radius: 6px;
    height: 8px;
    width: 8px;
}

.auth-dot {
    background: var(--gold);
}

.workspace {
    display: grid;
    gap: 18px;
    grid-template-rows: auto auto;
    min-height: 100vh;
    overflow: visible;
    padding: 22px;
}

.workspace-banner {
    background: #fff7dc;
    border: 1px solid #f1d373;
    border-radius: 8px;
    color: #29364a;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
}

.workspace-banner.customer {
    background: #e8f3ff;
    border-color: #a9c9ef;
}

.workspace-banner.owner {
    background: #132642;
    border-color: #2f4970;
    color: #ffffff;
}

.customer-shell .topbar h1::after {
    color: var(--muted);
    content: " customer portal";
    font-size: 0.48em;
    font-weight: 700;
}

.owner-shell .topbar h1::after {
    color: var(--gold);
    content: " internal admin";
    font-size: 0.48em;
    font-weight: 700;
}

.crm-suggestion-panel,
.stored-result-note,
.support-details {
    background: #f3f7fb;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.crm-suggestion-panel {
    display: grid;
    gap: 4px;
    margin: 12px 0;
    padding: 12px 14px;
}

.crm-suggestion-panel strong {
    color: var(--accent);
}

.crm-suggestion-panel span,
.stored-result-note {
    color: var(--muted);
    font-size: 13px;
}

.stored-result-note {
    margin-top: 8px;
    padding: 8px 10px;
}

.support-details {
    margin-top: 14px;
    padding: 12px;
}

.support-details summary {
    cursor: pointer;
    font-weight: 700;
}

.mode-summary-block {
    margin-top: 18px;
}

.mode-summary-block h3 {
    margin-bottom: 4px;
}

.mode-summary-block p {
    color: var(--muted);
    margin-top: 0;
}

.mode-summary-list {
    display: grid;
    gap: 8px;
}

.mode-summary-list article {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
}

.mode-summary-list article.active {
    background: #fff8de;
    border-color: rgba(213, 176, 56, 0.75);
}

.mode-summary-list span {
    color: var(--muted);
    font-size: 13px;
}

.owner-switch {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.owner-switch span {
    color: #42526b;
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-top: 3px;
}

.topbar {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.topbar h1 {
    font-size: 28px;
    line-height: 1.15;
    margin: 0;
}

.topbar p,
.panel-heading p {
    color: var(--muted);
    font-size: 14px;
    margin: 5px 0 0;
}

.topbar-actions {
    display: flex;
    gap: 10px;
}

.button,
.icon-button {
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 650;
    gap: 8px;
    height: 38px;
    justify-content: center;
    padding: 0 14px;
    text-decoration: none;
}

.button.primary {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #ffffff;
}

.button.primary:hover {
    background: var(--accent-dark);
}

.button.secondary,
.icon-button {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}

.button.secondary:hover,
.icon-button:hover {
    border-color: var(--border-strong);
}

.button.danger {
    background: #9f1f1f;
    border: 1px solid #9f1f1f;
    color: #ffffff;
}

.button.danger:hover {
    background: #7f1717;
}

.button:disabled {
    cursor: progress;
    opacity: 0.72;
}

.icon-button {
    font-size: 12px;
    padding: 0;
    width: 54px;
}

.view-section {
    display: none;
    min-height: 0;
    overflow: visible;
}

.view-section.active-view {
    display: grid;
    gap: 18px;
}

.sales-page {
    display: grid;
    gap: 18px;
    min-height: 0;
    overflow: visible;
    padding-bottom: 20px;
}

.sales-hero {
    align-items: end;
    background:
        linear-gradient(90deg, rgba(12, 23, 41, 0.46), rgba(12, 23, 41, 0.03)),
        url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=90") center/cover;
    border-radius: var(--radius);
    color: #ffffff;
    display: flex;
    min-height: 360px;
    overflow: hidden;
    padding: 38px;
}

.sales-hero-copy {
    max-width: 760px;
    text-shadow: 0 2px 14px rgba(5, 11, 22, 0.38);
}

.hero-strapline {
    color: var(--gold-strong);
    display: block;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.3;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.sales-hero h2 {
    font-size: 44px;
    line-height: 1.08;
    margin: 10px 0 14px;
}

.sales-hero p {
    color: #e4edf8;
    font-size: 17px;
    line-height: 1.55;
    margin: 0 0 22px;
    max-width: 680px;
}

.sales-hero p.hero-pain-line {
    color: #ffffff;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.45;
    margin-bottom: 20px;
}

.sales-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.sales-hero-points span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #e4edf8;
    font-size: 13px;
    line-height: 1.2;
    padding: 8px 10px;
}

.sales-hero-points strong {
    color: #ffffff;
}

.process-chain {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 12px;
}

.process-chain span {
    align-items: center;
    background: #f7fbff;
    border: 1px solid #d6e4f5;
    border-radius: 8px;
    color: var(--accent);
    display: flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 8px;
    position: relative;
    text-align: center;
}

.process-chain span:not(:last-child)::after {
    color: var(--gold);
    content: ">";
    font-size: 16px;
    font-weight: 900;
    position: absolute;
    right: -10px;
    z-index: 1;
}

.trust-strip,
.capture-grid,
.meeting-type-grid,
.integration-grid,
.security-grid,
.use-case-grid {
    display: grid;
    gap: 14px;
}

.trust-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-strip div,
.capture-grid article,
.meeting-type-grid article,
.integration-grid article,
.security-grid article,
.use-case-grid article,
.sample-output-panel,
.billing-flow div {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 0;
    padding: 16px;
}

.trust-strip strong,
.trust-strip span,
.capture-grid strong,
.capture-grid span,
.meeting-type-grid strong,
.meeting-type-grid span,
.integration-grid strong,
.integration-grid span,
.security-grid strong,
.security-grid span,
.use-case-grid strong,
.use-case-grid span,
.billing-flow strong,
.billing-flow span {
    display: block;
}

.trust-strip strong,
.capture-grid strong,
.meeting-type-grid strong,
.integration-grid strong,
.security-grid strong,
.use-case-grid strong,
.billing-flow strong {
    color: var(--accent);
    font-size: 15px;
    line-height: 1.25;
}

.trust-strip span,
.capture-grid span,
.meeting-type-grid span,
.integration-grid span,
.security-grid span,
.use-case-grid span,
.billing-flow span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.42;
    margin-top: 6px;
}

.capture-grid,
.meeting-type-grid,
.integration-grid,
.security-grid,
.use-case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-intro {
    align-content: center;
    background:
        linear-gradient(120deg, rgba(13, 34, 70, 0.92), rgba(13, 34, 70, 0.72)),
        url("https://images.unsplash.com/photo-1551836022-4c4c79ecde51?auto=format&fit=crop&w=900&q=90") center/cover !important;
    color: #ffffff;
    grid-row: span 2;
}

.section-intro h3 {
    color: #ffffff;
    font-size: 26px;
    line-height: 1.15;
    margin: 0 0 10px;
}

.section-intro p {
    color: #edf4ff;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.sample-output-panel {
    align-items: stretch;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
}

.sample-output-panel h3 {
    font-size: 28px;
    margin: 4px 0 8px;
}

.sample-output-panel p {
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 14px;
}

.sample-task-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sample-task-list li {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #d6e4f5;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 10px 12px;
}

.sample-task-list span {
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 13px;
}

.sample-destinations {
    background:
        linear-gradient(145deg, rgba(13, 34, 70, 0.92), rgba(22, 74, 118, 0.78)),
        url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=900&q=90") center/cover;
    border-radius: 8px;
    color: #ffffff;
    display: grid;
    gap: 10px;
    padding: 18px;
}

.sample-destinations strong {
    color: var(--gold-strong);
}

.sample-destinations span {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 8px 10px;
}

.output-split-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pain-panel {
    background:
        linear-gradient(145deg, rgba(13, 34, 70, 0.95), rgba(22, 74, 118, 0.74)),
        url("https://images.unsplash.com/photo-1551836022-4c4c79ecde51?auto=format&fit=crop&w=900&q=90") center/cover;
    color: #ffffff;
}

.pain-panel h3 {
    color: #ffffff;
}

.pain-panel .plain-list {
    color: #ecf4ff;
}

.control-note,
.setup-reassurance {
    background: #fff8de;
    border: 1px solid rgba(213, 176, 56, 0.55);
    border-radius: var(--radius);
    color: var(--accent);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
    margin: -6px 0 0;
    padding: 12px 14px;
}

.setup-reassurance {
    margin-top: 14px;
}

.section-hero {
    align-items: end;
    border-radius: var(--radius);
    color: #ffffff;
    display: grid;
    min-height: 280px;
    overflow: hidden;
    padding: 34px;
}

.section-hero h2 {
    color: #ffffff;
    font-size: 38px;
    line-height: 1.1;
    margin: 0 0 12px;
    max-width: 760px;
}

.section-hero p {
    color: #eef4fc;
    font-size: 17px;
    line-height: 1.5;
    margin: 0;
    max-width: 760px;
}

.use-case-hero {
    background:
        linear-gradient(100deg, rgba(13, 34, 70, 0.86), rgba(13, 34, 70, 0.2)),
        url("https://images.unsplash.com/photo-1542744173-8e7e53415bb0?auto=format&fit=crop&w=1600&q=90") center/cover;
}

.integrations-hero {
    background:
        linear-gradient(100deg, rgba(13, 34, 70, 0.84), rgba(13, 34, 70, 0.18)),
        url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1600&q=90") center/cover;
}

.security-hero {
    background:
        linear-gradient(100deg, rgba(13, 34, 70, 0.86), rgba(13, 34, 70, 0.18)),
        url("https://images.unsplash.com/photo-1563986768609-322da13575f3?auto=format&fit=crop&w=1600&q=90") center/cover;
}

.plan-feature-list {
    color: var(--muted);
    display: grid;
    font-size: 13px;
    gap: 5px;
    line-height: 1.4;
    margin: 0;
    padding-left: 18px;
}

.billing-flow {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-tile {
    align-content: end;
    background: #0f203a;
    border-radius: var(--radius);
    color: #ffffff;
    display: grid;
    min-height: 220px;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.media-tile::before {
    background: linear-gradient(180deg, rgba(5, 11, 22, 0), rgba(5, 11, 22, 0.34));
    content: "";
    inset: 0;
    position: absolute;
}

.media-tile strong,
.media-tile span {
    position: relative;
    z-index: 1;
}

.media-tile strong {
    font-size: 20px;
}

.media-tile span {
    color: #e8edf5;
    margin-top: 6px;
}

.media-tile-one {
    background: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1000&q=90") center/cover;
}

.media-tile-two {
    background: url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=1000&q=90") center/cover;
}

.media-tile-three {
    background: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1000&q=90") center/cover;
}

.portal-dashboard {
    display: grid;
    gap: 16px;
}

.portal-hero-panel {
    align-items: end;
    background:
        linear-gradient(110deg, rgba(15, 32, 58, 0.52), rgba(15, 32, 58, 0.08)),
        url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1600&q=90") center/cover;
    border-radius: var(--radius);
    color: #ffffff;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 210px;
    padding: 26px;
    text-shadow: 0 2px 12px rgba(5, 11, 22, 0.35);
}

.portal-hero-panel h2 {
    font-size: 34px;
    line-height: 1.12;
    margin: 0 0 8px;
}

.portal-hero-panel p {
    color: #e7edf7;
    font-size: 16px;
    line-height: 1.45;
    margin: 0;
    max-width: 680px;
}

.portal-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: end;
}

.first-run-panel {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd7e7;
    border-left: 5px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    padding: 18px;
}

.first-run-panel span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.first-run-panel h3 {
    font-size: 22px;
    margin: 4px 0 8px;
}

.first-run-panel p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

.first-run-steps {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.first-run-steps li {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 3px;
    min-height: 76px;
    padding: 10px 10px 34px;
    position: relative;
}

.first-run-steps strong {
    color: var(--text);
    font-size: 14px;
}

.first-run-steps span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
}

.first-run-steps li::after,
.journey-step::after,
.trial-flow div::after {
    border-radius: 999px;
    content: attr(data-step-state);
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    padding: 5px 8px;
    width: max-content;
}

.first-run-steps li::after {
    bottom: 8px;
    position: absolute;
    right: 8px;
}

.journey-step::after {
    align-self: end;
}

.trial-flow div::after {
    grid-column: 2;
    justify-self: start;
}

.first-run-steps li.completed,
.journey-step.completed,
.trial-flow div.completed {
    background: #ecfdf3;
    border-color: #97d9bb;
}

.first-run-steps li.current,
.journey-step.current,
.trial-flow div.current {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.first-run-steps li.upcoming,
.journey-step.upcoming,
.trial-flow div.upcoming {
    opacity: 0.82;
}

.first-run-steps li.completed::after,
.journey-step.completed::after,
.trial-flow div.completed::after {
    background: #dff8ea;
    color: #0f7b55;
}

.first-run-steps li.current::after,
.journey-step.current::after,
.trial-flow div.current::after {
    background: #fff4d9;
    color: #8a5b00;
}

.first-run-steps li.upcoming::after,
.journey-step.upcoming::after,
.trial-flow div.upcoming::after {
    background: #e8edf5;
    color: var(--muted);
}

.portal-stat-grid,
.portal-insight-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-insight-grid {
    grid-template-columns: 1.15fr 0.9fr 0.95fr;
}

.portal-stat-card,
.portal-insight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 0;
    padding: 16px;
}

.portal-stat-card {
    display: grid;
    gap: 6px;
}

.portal-stat-card span,
.portal-insight-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.portal-stat-card strong {
    color: var(--accent);
    font-size: 30px;
    line-height: 1;
    overflow-wrap: anywhere;
}

.portal-stat-card small,
.portal-insight-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.portal-insight-card {
    display: grid;
    gap: 14px;
}

.portal-insight-card strong {
    color: var(--text);
    display: block;
    font-size: 19px;
    line-height: 1.2;
    margin-top: 4px;
}

.insight-meetings {
    grid-template-columns: minmax(0, 1fr) 150px;
}

.mini-chart {
    align-items: end;
    background: linear-gradient(180deg, #f7fbff, #edf4fb);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, 1fr);
    min-height: 132px;
    padding: 12px;
}

.mini-chart span {
    background: linear-gradient(180deg, var(--gold-strong), var(--orange));
    border-radius: 999px 999px 4px 4px;
    min-height: 22px;
}

.calendar-capture-panel {
    display: grid;
    gap: 14px;
}

.calendar-toolbar {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
}

.calendar-toolbar label {
    margin: 0;
}

.calendar-meeting-list {
    display: grid;
    gap: 10px;
}

.calendar-meeting-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(240px, 1.2fr) minmax(190px, 0.8fr) minmax(190px, 0.7fr) auto;
    padding: 12px;
}

.calendar-meeting-card.selected {
    background: #edf5ff;
    border-color: #9fc6f2;
}

.calendar-meeting-card.empty {
    align-items: start;
    grid-template-columns: 1fr;
}

.calendar-meeting-card p {
    color: var(--muted);
    font-size: 12px;
    grid-column: 1 / -1;
    margin: 0;
}

.calendar-meeting-select {
    align-items: center;
    display: flex;
    gap: 10px;
    margin: 0;
    min-width: 0;
}

.calendar-meeting-select strong,
.calendar-meeting-select small {
    display: block;
    overflow-wrap: anywhere;
}

.calendar-meeting-select small,
.calendar-meeting-meta span {
    color: var(--muted);
    font-size: 12px;
}

.calendar-meeting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.calendar-mode-select {
    margin: 0;
}

.calendar-card-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: end;
}

.transcript-preview {
    background: #f8fbff;
    border: 1px solid #d5e4f5;
    border-radius: 8px;
    color: var(--muted);
    display: grid;
    gap: 4px;
    grid-column: 1 / -1;
    line-height: 1.35;
    padding: 10px;
}

.transcript-preview summary {
    color: var(--accent);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.transcript-preview p {
    font-size: 13px;
    margin: 0;
    overflow-wrap: anywhere;
}

.mini-link {
    color: var(--accent);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.destination-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.destination-grid strong {
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--accent);
    font-size: 13px;
    margin: 0;
    padding: 10px;
}

.insight-image {
    align-content: end;
    background:
        linear-gradient(180deg, rgba(15, 32, 58, 0), rgba(15, 32, 58, 0.36)),
        url("https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=900&q=90") center/cover;
    color: #ffffff;
    min-height: 190px;
}

.insight-image span,
.insight-image p {
    color: #e7edf7;
}

.insight-image strong {
    color: #ffffff;
}

.customer-control-room {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(320px, 1.35fr) repeat(5, minmax(170px, 0.65fr));
}

.customer-chart-card,
.customer-value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 0;
    padding: 17px;
}

.customer-chart-card {
    background:
        linear-gradient(135deg, rgba(15, 32, 58, 0.54), rgba(21, 67, 109, 0.32)),
        url("https://images.unsplash.com/photo-1556761175-129418cb2dfe?auto=format&fit=crop&w=1200&q=90") center/cover;
    color: #ffffff;
    display: grid;
    gap: 16px;
}

.customer-tooltip-target {
    position: relative;
}

.customer-tooltip-target::after {
    background: #ffffff;
    border: 1px solid rgba(15, 32, 58, 0.12);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(15, 32, 58, 0.18);
    color: var(--text);
    content: attr(data-tooltip);
    font-size: 12px;
    font-weight: 600;
    left: 18px;
    line-height: 1.45;
    max-width: min(360px, calc(100vw - 48px));
    opacity: 0;
    padding: 11px 12px;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 10px);
    transform: translateY(-4px);
    transition: opacity 140ms ease, transform 140ms ease;
    white-space: normal;
    width: max-content;
    z-index: 20;
}

.customer-tooltip-target:hover::after,
.customer-tooltip-target:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.customer-tooltip-target:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.36);
    outline-offset: 3px;
}

.control-room-heading {
    align-items: start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.control-room-heading span,
.customer-value-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.control-room-heading span {
    color: #f3ca4f;
    text-transform: uppercase;
}

.control-room-heading h3 {
    color: #ffffff;
    font-size: 24px;
    line-height: 1.14;
    margin: 4px 0 0;
}

.control-room-heading strong {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    color: #ffffff;
    flex: 0 0 auto;
    font-size: 22px;
    padding: 8px 13px;
}

.customer-bar-chart {
    align-items: end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(18px, 1fr));
    min-height: 132px;
    padding: 8px 2px 0;
}

.customer-bar-chart span {
    background: linear-gradient(180deg, #f3ca4f, #d96d1f);
    border-radius: 999px 999px 4px 4px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    min-height: 18px;
    transition: height 180ms ease;
}

.chart-caption {
    color: #dfe7f4;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
}

.customer-value-card {
    display: grid;
    gap: 10px;
}

.customer-value-card strong {
    color: var(--accent);
    font-size: 30px;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.customer-latest-card strong {
    font-size: 21px;
    line-height: 1.2;
}

.customer-value-card small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.42;
}

.progress-track {
    background: #e8eef6;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.progress-track span {
    background: linear-gradient(90deg, var(--accent), var(--gold-strong));
    display: block;
    height: 100%;
    transition: width 180ms ease;
    width: 0;
}

.compact-action {
    justify-self: start;
    min-height: 36px;
    padding: 8px 12px;
}

.light-action {
    align-self: start;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.72);
    color: var(--accent);
    justify-self: start;
}

.billing-account-panel {
    border-top: 1px solid var(--border);
    margin-top: 16px;
    padding-top: 16px;
}

.billing-account-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-account-grid article {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 5px;
    padding: 12px;
}

.billing-account-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.billing-account-grid strong {
    color: var(--accent);
    font-size: 18px;
}

.billing-account-grid small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.billing-page-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.billing-hero-panel,
.billing-contact-panel {
    grid-column: 1 / -1;
}

.billing-summary-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.billing-summary-card {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 13px;
}

.billing-summary-card span,
.billing-form-grid label,
.billing-payment-grid label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.billing-summary-card strong {
    color: var(--accent);
    font-size: 23px;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.billing-summary-card small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.billing-payment-grid {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

.billing-payment-grid select {
    display: block;
    margin-top: 6px;
    padding: 10px;
    width: 100%;
}

.billing-sandbox-notice {
    background: #fff7d8;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    color: #453602;
    display: grid;
    gap: 4px;
    margin: 12px 0;
    padding: 12px;
}

.billing-sandbox-notice strong {
    font-size: 13px;
    text-transform: uppercase;
}

.billing-sandbox-notice span {
    font-size: 13px;
    line-height: 1.45;
}

.square-card-container {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 12px 0;
    min-height: 86px;
    padding: 13px;
}

.square-card-placeholder {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 14px;
    min-height: 58px;
}

.billing-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.billing-form-grid input {
    display: block;
    margin-top: 6px;
    padding: 10px;
    width: 100%;
}

.customer-story {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    overflow: hidden;
}

.customer-story article {
    align-content: center;
    display: grid;
    gap: 12px;
    padding: 26px;
}

.customer-story h3 {
    font-size: 28px;
    line-height: 1.12;
    margin: 0;
}

.customer-story p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

.story-kicker {
    color: var(--green);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.story-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.story-points span {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 7px 9px;
}

.homepage-use-cases {
    background: #f7fbff;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
}

.homepage-use-cases article {
    background: #ffffff;
    border: 1px solid #d6e4f5;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 14px;
}

.homepage-use-cases strong {
    color: var(--accent);
    font-size: 15px;
    line-height: 1.25;
}

.homepage-use-cases span,
.homepage-use-cases small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.42;
}

.story-image {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        url("https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1400&q=90") center/cover;
    min-height: 260px;
}

.eyebrow {
    color: #9ee6c2;
    display: inline-block;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sales-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visual-callout {
    align-content: end;
    border-radius: var(--radius);
    color: #ffffff;
    display: grid;
    min-height: 280px;
    overflow: hidden;
    padding: 24px;
    text-shadow: 0 2px 12px rgba(5, 11, 22, 0.36);
}

.visual-callout h2 {
    font-size: 28px;
    line-height: 1.12;
    margin: 0 0 8px;
}

.visual-callout p {
    color: #e7edf7;
    font-size: 15px;
    line-height: 1.45;
    margin: 0;
    max-width: 480px;
}

.how-visual {
    background:
        linear-gradient(180deg, rgba(15, 32, 58, 0), rgba(15, 32, 58, 0.34)),
        url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1200&q=90") center/cover;
}

.pricing-visual {
    background:
        linear-gradient(180deg, rgba(15, 32, 58, 0), rgba(15, 32, 58, 0.26)),
        url("https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?auto=format&fit=crop&w=1200&q=90") center/cover;
}

.sales-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.sales-panel h3 {
    font-size: 22px;
    margin: 0 0 12px;
}

.sales-panel.pain-panel {
    background:
        linear-gradient(145deg, rgba(13, 34, 70, 0.95), rgba(22, 74, 118, 0.74)),
        url("https://images.unsplash.com/photo-1551836022-4c4c79ecde51?auto=format&fit=crop&w=900&q=90") center/cover;
    color: #ffffff;
}

.sales-panel.pain-panel h3 {
    color: #ffffff;
}

.sales-panel.pain-panel .plain-list {
    color: #ecf4ff;
}

.workflow-diagram {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 1.1fr) repeat(5, minmax(0, 1fr));
}

.workflow-diagram div {
    background: #eef6ff;
    border: 1px solid #c9def5;
    border-radius: var(--radius);
    min-height: 108px;
    padding: 16px;
    position: relative;
}

.workflow-diagram .workflow-heading {
    background: #ffffff;
    border-color: var(--border);
}

.workflow-diagram .workflow-heading strong {
    color: var(--text);
    font-size: 20px;
}

.workflow-diagram .workflow-heading span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.workflow-diagram div:not(:last-child)::after {
    color: var(--accent);
    content: ">";
    font-weight: 800;
    position: absolute;
    right: -9px;
    top: 40px;
    z-index: 1;
}

.workflow-diagram strong {
    color: var(--accent);
    display: block;
    font-size: 24px;
}

.workflow-diagram span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 8px;
}

.workflow-diagram span b {
    color: var(--text);
    display: block;
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: 5px;
}

.next-step-panel {
    align-items: center;
    background:
        linear-gradient(120deg, rgba(15, 32, 58, 0.95), rgba(15, 32, 58, 0.76)),
        url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1400&q=90") center/cover;
    border-radius: var(--radius);
    color: #ffffff;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 24px;
}

.next-step-panel h3 {
    color: #ffffff;
    font-size: 26px;
    margin: 0 0 6px;
}

.next-step-panel p {
    color: #e7edf7;
    line-height: 1.45;
    margin: 0;
}

.next-step-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: end;
}

.summary-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric,
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 0;
}

.metric {
    min-height: 82px;
    padding: 16px;
}

.metric-label {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.metric strong {
    font-size: 25px;
    line-height: 1;
}

.workgrid {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.12fr) minmax(280px, 0.93fr);
    min-height: 0;
    overflow: visible;
}

.extraction-panel {
    order: -1;
}

@media (min-width: 1181px) {
    .extraction-panel {
        grid-column: 1 / span 2;
        grid-row: 1;
    }

    .transcript-panel {
        grid-column: 1 / span 2;
        grid-row: 2;
    }

    .review-panel {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

.panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
    padding: 16px;
}

.panel-heading {
    align-items: start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.panel-heading h2 {
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
}

.chip {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 750;
    min-height: 26px;
    padding: 4px 9px;
    white-space: nowrap;
}

.chip.neutral {
    background: var(--surface-muted);
    color: var(--muted);
}

.chip.pending {
    background: var(--amber-bg);
    color: var(--amber);
}

.chip.approved {
    background: var(--green-bg);
    color: var(--green);
}

.chip.rejected {
    background: var(--red-bg);
    color: var(--red);
}

.chip.ready,
.chip.draft,
.chip.captured {
    background: #eaf2ff;
    color: var(--accent-dark);
}

textarea,
input,
select {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    outline: none;
}

textarea:focus,
input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.12);
}

#transcriptInput {
    line-height: 1.5;
    min-height: 320px;
    padding: 12px;
    resize: vertical;
}

.field-grid,
.meeting-meta-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.field-grid {
    grid-template-columns: 1fr;
}

.meeting-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
}

.instruction-field {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.suggestion-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.suggestion-chip {
    background: #eef5ff;
    border: 1px solid #c7ddf7;
    border-radius: 999px;
    color: var(--accent-dark);
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    min-height: 30px;
    padding: 0 10px;
}

.automation-settings {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.connection-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}

.write-targets {
    border: 1px solid var(--border);
    border-radius: 6px;
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
    padding: 10px 12px 12px;
}

.write-targets legend {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    padding: 0 6px;
    text-transform: uppercase;
}

.write-targets label {
    align-items: start;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 9px;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 62px;
    padding: 10px;
}

.write-targets input {
    height: 16px;
    margin-top: 2px;
    width: 16px;
}

.write-targets strong {
    color: var(--text);
    display: block;
    font-size: 13px;
}

.write-targets small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    line-height: 1.35;
}

label {
    color: var(--muted);
    display: grid;
    font-size: 12px;
    font-weight: 750;
    gap: 6px;
    text-transform: uppercase;
}

.field-help {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-transform: none;
}

.check-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px;
    text-transform: none;
}

.check-card input {
    accent-color: var(--accent);
    flex: 0 0 auto;
    height: 18px;
    margin: 0;
    padding: 0;
    width: 18px;
}

.check-card strong {
    color: var(--text);
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.check-card small {
    color: var(--muted);
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 2px;
}

.business-account-toggle {
    border-color: var(--border-strong);
}

input,
select {
    height: 38px;
    padding: 0 10px;
    text-transform: none;
}

select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    padding-right: 30px;
}

.output-stack {
    display: grid;
    gap: 12px;
    min-height: 0;
    overflow: visible;
    padding-right: 2px;
}

.output-block {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px;
}

.output-details summary {
    color: var(--accent);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.output-details[open] summary {
    margin-bottom: 10px;
}

.details-helper {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 12px;
}

.advanced-meeting-options {
    margin-top: 12px;
    width: 100%;
}

.advanced-meeting-options textarea,
.advanced-meeting-options input,
.advanced-meeting-options select {
    display: block;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.advanced-meeting-options > textarea {
    margin-bottom: 12px;
    max-width: none;
    width: 100%;
}

.transcript-panel #transcriptInput {
    width: 100%;
}

.output-block h3,
.audit-block h3 {
    font-size: 14px;
    margin: 0 0 10px;
}

.block-title-row {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.block-title-row h3 {
    margin: 0;
}

.mini-button {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    height: 28px;
    padding: 0 10px;
}

.mini-button:disabled {
    color: #8b97aa;
    cursor: not-allowed;
    opacity: 0.65;
}

.processing-mode-panel {
    align-items: end;
    background: #edf5ff;
    border: 1px solid #bfd6f3;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(180px, 0.7fr) auto minmax(220px, 1fr);
    margin-top: 12px;
    padding: 12px;
}

.processing-mode-panel label {
    margin: 0;
}

.processing-mode-panel .inline-status {
    margin: 0;
}

.integration-status-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.status-pill {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    padding: 6px 8px;
}

.status-pill.live-sandbox {
    background: var(--green-bg);
    color: var(--green);
}

.status-pill.live-demo {
    background: var(--green-bg);
    color: var(--green);
}

.status-pill.saved-result {
    background: #eaf2ff;
    color: var(--accent-dark);
}

.status-pill.scripted {
    background: #eaf2ff;
    color: var(--accent-dark);
}

.status-pill.needs-target {
    background: var(--amber-bg);
    color: var(--amber);
}

.status-pill.waiting-for-review,
.status-pill.will-update {
    background: var(--amber-bg);
    color: var(--amber);
}

.status-pill.applied {
    background: var(--green-bg);
    color: var(--green);
}

.status-pill.demo-now,
.status-pill.ready,
.status-pill.live-join-proof,
.status-pill.live-proof,
.status-pill.script-ready,
.status-pill.dry-run-ready {
    background: var(--green-bg);
    color: var(--green);
}

.status-pill.build-required,
.status-pill.next-build,
.status-pill.product-build,
.status-pill.future-build {
    background: var(--amber-bg);
    color: var(--amber);
}

.link-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.link-strip a {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    padding: 8px 10px;
    text-decoration: none;
}

.link-strip a:hover {
    border-color: var(--border-strong);
    color: var(--accent);
}

.integration-command {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
}

.integration-command span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.integration-command code {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    display: block;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    padding: 8px;
}

.data-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.data-list li {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.35;
    padding: 9px 10px;
}

#crmNoteOutput {
    min-height: 150px;
    padding: 10px;
    resize: vertical;
    width: 100%;
}

.review-queue {
    display: grid;
    flex: 1;
    gap: 10px;
    min-height: 0;
    overflow: visible;
    padding-right: 2px;
}

.queue-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.queue-card-group {
    background: #f8fbff;
    border-color: #c8dbf2;
}

.queue-card header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.queue-card strong {
    font-size: 14px;
}

.queue-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.queue-card details {
    color: var(--muted);
    font-size: 13px;
}

.queue-card summary {
    color: var(--text);
    cursor: pointer;
    font-weight: 750;
    margin-bottom: 6px;
}

.queue-detail-list {
    display: grid;
    gap: 6px;
    margin: 8px 0 0;
    padding-left: 18px;
}

.queue-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
}

.queue-actions button {
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    height: 34px;
}

.approve {
    background: var(--green-bg);
    color: var(--green);
}

.edit {
    background: var(--surface-muted);
    color: var(--text);
}

.reject {
    background: var(--red-bg);
    color: var(--red);
}

.audit-block {
    border-top: 1px solid var(--border);
    margin-top: 14px;
    padding-top: 14px;
}

.audit-block ol {
    display: grid;
    font-size: 13px;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.audit-block li {
    color: var(--muted);
    line-height: 1.4;
}

.audit-block li strong {
    color: var(--ink);
    display: block;
    font-size: 12px;
}

.audit-block li span {
    display: block;
}

.recent-meetings,
.people-list,
.clear-down-list {
    display: grid;
    gap: 10px;
}

.recent-meetings p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.recent-meeting,
.person-row,
.clear-down-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 10px;
}

.recent-meeting {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}

.clear-down-item {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
}

.clear-down-item strong,
.clear-down-item span,
.clear-down-item small {
    overflow-wrap: anywhere;
}

.clear-down-item span,
.clear-down-item small {
    color: var(--muted);
}

.clear-down-item ul {
    color: var(--muted);
    margin: 8px 0 0;
    padding-left: 18px;
}

.recent-meeting-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.person-row {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}

.recent-meeting span,
.person-row span {
    color: var(--muted);
    font-size: 13px;
}

.meeting-version-picker {
    color: var(--muted);
    display: grid;
    font-size: 12px;
    font-weight: 800;
    gap: 5px;
    margin-top: 8px;
    max-width: 520px;
    text-transform: uppercase;
}

.meeting-version-picker select {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    min-height: 38px;
    padding: 8px 10px;
    text-transform: none;
    width: 100%;
}

.admin-grid {
    display: grid;
    align-items: start;
    gap: 18px;
    grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
    min-height: 0;
    overflow: visible;
}

.config-panel {
    overflow: visible;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.form-grid.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide-field {
    grid-column: 1 / -1;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.card-list {
    display: grid;
    gap: 12px;
    min-height: 0;
    overflow: visible;
    padding-right: 2px;
}

.owner-card,
.connector-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 13px;
}

.owner-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.1);
}

.owner-card.excluded,
.person-row.excluded {
    opacity: 0.62;
}

.owner-card div:first-child,
.connector-card header {
    align-items: start;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.owner-card strong,
.connector-card strong {
    font-size: 15px;
}

.connector-card header .chip {
    justify-content: center;
    line-height: 1.2;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    white-space: normal;
}

.owner-card span {
    color: var(--muted);
    font-size: 13px;
}

.owner-card p,
.connector-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.owner-card dl,
.destination-detail-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.destination-detail-list {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
}

.destination-detail-list div {
    display: grid;
    gap: 2px;
}

.destination-detail-list dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.destination-detail-list dd {
    color: var(--ink);
    font-size: 13px;
    margin: 0;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.owner-card dl div {
    align-items: start;
    display: grid;
    gap: 8px;
    grid-template-columns: 72px minmax(0, 1fr);
}

.owner-card dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.owner-card dd {
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
    overflow-wrap: anywhere;
}

.connector-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    overflow: visible;
    padding-right: 2px;
}

.setup-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(430px, 1.08fr) minmax(340px, 0.92fr);
    min-height: 0;
    overflow: visible;
}

.wizard-live-panel {
    gap: 14px;
}

.setup-progress {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.setup-step {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    min-height: 34px;
    padding: 8px 6px;
}

.setup-step.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.setup-step.completed {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.setup-step::after {
    content: attr(data-step-state);
    display: block;
    font-size: 10px;
    font-weight: 700;
    margin-top: 3px;
    opacity: 0.78;
    text-transform: none;
}

.wizard-page {
    display: none;
}

.wizard-page.active-wizard-page {
    display: grid;
    gap: 12px;
}

.wizard-page h3 {
    font-size: 18px;
    margin: 0;
}

.wizard-copy {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.readiness-list {
    display: grid;
    gap: 10px;
}

.readiness-list div {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 11px;
}

.readiness-list span {
    color: var(--muted);
    font-size: 13px;
}

.tenant-help-card {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 12px;
}

.tenant-help-card > div:first-child {
    display: grid;
    gap: 4px;
}

.tenant-help-card span,
.detected-id-grid dd {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.detected-id-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.detected-id-grid div {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 9px;
}

.detected-id-grid dt {
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.detected-id-grid dd {
    margin: 4px 0 0;
}

.inline-add-row {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.directory-toolbar {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 1fr) auto auto;
}

.inline-status {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    padding: 10px;
}

.directory-list {
    border: 1px solid var(--border);
    border-radius: 8px;
    max-height: 360px;
    overflow: auto;
}

.directory-table,
.comparison-table {
    border-collapse: collapse;
    font-size: 13px;
    min-width: 100%;
    width: 100%;
}

.directory-table th,
.directory-table td,
.comparison-table th,
.comparison-table td {
    border-bottom: 1px solid var(--border);
    line-height: 1.35;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.directory-table th,
.comparison-table th {
    background: var(--surface-muted);
    color: var(--text);
    font-weight: 800;
}

.directory-table tr.included td {
    background: var(--green-bg);
}

.directory-table input[type="checkbox"] {
    height: 18px;
    width: 18px;
}

.manual-fallback {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
}

.manual-fallback summary {
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.manual-fallback .inline-add-row {
    margin-top: 10px;
}

.wrap-row {
    flex-wrap: wrap;
}

.meeting-status-card {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 5px;
    padding: 12px;
}

.meeting-status-card span {
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.summary-dl {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 12px 0 0;
}

.summary-dl div {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px;
}

.summary-dl dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.summary-dl dd {
    font-size: 13px;
    margin: 3px 0 0;
}

.compact-textarea {
    line-height: 1.45;
    min-height: 220px;
    padding: 12px;
    resize: vertical;
}

.command-list {
    display: grid;
    gap: 10px;
}

.command-list code {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    display: block;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    padding: 10px;
}

/* Customer-facing sales and onboarding screens used by the demo shell. */
.sales-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide-panel {
    grid-column: 1 / -1;
}

.journey-grid,
.pricing-grid,
.plan-limit-grid,
.support-tier-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-step,
.price-card,
.plan-limit-grid article,
.support-tier-grid article,
.wizard-step {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px;
}

.journey-step {
    display: grid;
    gap: 8px;
}

.journey-step strong,
.price-card strong,
.wizard-step strong {
    font-size: 15px;
}

.journey-step p,
.price-card p,
.plan-limit-grid p,
.support-tier-grid p,
.wizard-step p,
.plain-list,
.comparison-list span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.plain-list {
    display: grid;
    gap: 9px;
    padding-left: 18px;
}

.wizard-list {
    display: grid;
    gap: 12px;
}

.wizard-step {
    align-items: start;
    display: grid;
    gap: 12px;
    grid-template-columns: 34px minmax(0, 1fr);
}

.wizard-step span {
    align-items: center;
    background: var(--accent);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.price-card {
    display: grid;
    gap: 8px;
}

.price-card .button {
    align-self: end;
    margin-top: auto;
}

.price-card span,
.plan-limit-grid span,
.support-tier-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.price-card strong,
.plan-limit-grid strong,
.support-tier-grid strong {
    color: var(--accent-dark);
    font-size: 24px;
}

.plan-limit-grid,
.support-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-limit-grid article,
.support-tier-grid article {
    display: grid;
    gap: 8px;
}

.plan-limit-grid strong,
.support-tier-grid strong {
    font-size: 18px;
}

.plan-limit-grid span,
.support-tier-grid span {
    color: var(--green);
    font-size: 16px;
}

.comparison-list {
    display: grid;
    gap: 10px;
}

.comparison-table-wrap {
    overflow: visible;
}

.comparison-table {
    font-size: 12px;
    min-width: 0;
    table-layout: fixed;
}

.comparison-table td {
    color: var(--muted);
}

.comparison-table tbody th:first-child {
    background: #ffffff;
}

.comparison-table th,
.comparison-table td {
    overflow-wrap: anywhere;
    padding: 8px 7px;
}

.comparison-table th:nth-child(1) {
    width: 13%;
}

.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3) {
    width: 12%;
}

.comparison-table th:nth-child(4),
.comparison-table th:nth-child(10) {
    width: 11%;
}

.comparison-table th:nth-child(5),
.comparison-table th:nth-child(6),
.comparison-table th:nth-child(7),
.comparison-table th:nth-child(8),
.comparison-table th:nth-child(9) {
    width: 8%;
}

.comparison-table .mark-cell {
    text-align: center;
    vertical-align: middle;
}

.feature-mark {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    min-height: 26px;
    justify-content: center;
    min-width: 38px;
    padding: 5px 7px;
}

.feature-mark.yes {
    background: var(--green-bg);
    color: var(--green);
}

.feature-mark.partial {
    background: #fff3d7;
    color: #8a5b00;
}

.feature-mark.no {
    background: var(--red-bg);
    color: var(--red);
}

.comparison-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 12px 0 0;
}

.setup-cost-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setup-cost-grid article {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 7px;
    padding: 13px;
}

.setup-cost-grid span {
    color: var(--accent-dark);
    font-size: 20px;
    font-weight: 800;
}

.setup-cost-grid p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.signup-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(420px, 1.05fr) minmax(340px, 0.95fr);
    min-height: 0;
    overflow: visible;
}

.lookup-action-row {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
}

.lookup-action-row span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    padding-bottom: 7px;
}

.lookup-results {
    display: grid;
    gap: 8px;
}

.lookup-result-button {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: grid;
    gap: 4px;
    padding: 11px;
    text-align: left;
}

.lookup-result-button:hover,
.lookup-result-button:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.1);
}

.lookup-result-button span,
.lookup-result-button small {
    color: var(--muted);
    line-height: 1.35;
}

.trial-flow {
    display: grid;
    gap: 10px;
}

.trial-flow div {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 56px;
    padding: 10px;
}

.trial-flow strong {
    align-items: center;
    background: var(--accent);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 14px;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.trial-flow span,
.signup-proof p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.signup-proof {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 13px;
}

.access-context-card {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #b7d7ff;
    border-radius: 8px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: 0 0 16px;
    padding: 14px;
}

.access-context-card div:first-child {
    display: grid;
    gap: 4px;
}

.access-context-card span {
    color: var(--muted);
}

.signup-proof h3 {
    font-size: 15px;
    margin: 0;
}

.signup-proof p {
    margin: 0;
}

.admin-console {
    display: grid;
    gap: 18px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 20px;
}

.admin-console .panel {
    overflow: visible;
}

.admin-hero-panel {
    background:
        linear-gradient(120deg, rgba(15, 32, 58, 0.52), rgba(15, 32, 58, 0.26)),
        url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1600&q=90") center/cover;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(5, 11, 22, 0.34);
}

.admin-hero-panel .panel-heading p,
.admin-hero-panel label {
    color: #e8edf5;
}

.admin-filter-bar {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: 1.2fr 1fr 0.8fr 1fr auto;
}

.compact-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.checkbox-card {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    padding: 12px;
}

.admin-kpi-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 18px;
}

.metric-card span,
.metric-card small {
    color: var(--muted);
}

.metric-card strong {
    color: var(--accent);
    font-size: 28px;
    line-height: 1.08;
    max-width: 100%;
    overflow-wrap: anywhere;
}

#adminEnvironmentLatestEventMetric {
    font-size: clamp(20px, 2vw, 28px);
}

.table-wrap {
    overflow: auto;
    max-width: 100%;
}

.admin-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--border);
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.admin-table tfoot td {
    background: #edf5ff;
    border-bottom: 0;
    border-top: 2px solid #b7d3f1;
    color: var(--ink);
    font-weight: 800;
}

.control-stack,
.tier-list,
.cost-component-list,
.compact-event-list {
    display: grid;
    gap: 12px;
}

.persona-admin-layout {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(240px, 0.7fr) minmax(320px, 1.3fr);
}

.persona-admin-list {
    display: grid;
    gap: 8px;
}

.persona-admin-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    display: grid;
    gap: 3px;
    padding: 12px;
    text-align: left;
}

.persona-admin-item.active {
    background: #edf5ff;
    border-color: #8bbce9;
}

.persona-admin-item.disabled {
    opacity: 0.58;
}

.persona-admin-item span {
    color: var(--muted);
    font-size: 12px;
}

.persona-editor {
    display: grid;
    gap: 12px;
}

.command-card,
.tier-card,
.cost-component-card,
.event-item {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
}

.command-card code {
    display: block;
    margin-top: 8px;
    white-space: pre-wrap;
}

.tier-card {
    display: grid;
    gap: 4px;
    grid-template-columns: 1fr auto;
}

.tier-card small,
.cost-component-card span,
.event-item span,
.event-item small {
    color: var(--muted);
}

.event-item {
    display: grid;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.comparison-list div {
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 4px;
    padding-bottom: 10px;
}

.comparison-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .workspace {
        padding: 18px;
    }

    .workgrid {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .admin-grid {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .setup-layout {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .signup-layout {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .customer-story {
        grid-template-columns: 1fr;
    }

    .setup-progress {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .directory-toolbar,
    .detected-id-grid,
    .setup-cost-grid,
    .processing-mode-panel {
        grid-template-columns: 1fr;
    }

    .owner-switch,
    .recent-meeting {
        align-items: stretch;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .owner-switch .button-row,
    .recent-meeting-actions {
        justify-content: start;
    }

    .sales-grid,
    .journey-grid,
    .pricing-grid,
    .plan-limit-grid,
    .support-tier-grid,
    .trust-strip,
    .process-chain,
    .capture-grid,
    .meeting-type-grid,
    .integration-grid,
    .security-grid,
    .use-case-grid,
    .sample-output-panel,
    .billing-flow,
    .media-grid,
    .homepage-use-cases,
    .next-step-panel,
    .portal-stat-grid,
    .portal-insight-grid,
    .first-run-panel,
    .calendar-toolbar,
    .calendar-meeting-card,
    .persona-admin-layout,
    .customer-control-room,
    .billing-account-grid,
    .billing-page-grid,
    .billing-form-grid,
    .admin-filter-bar,
    .admin-kpi-grid {
        grid-template-columns: 1fr;
    }

    .portal-hero-panel,
    .insight-meetings {
        grid-template-columns: 1fr;
    }

    .first-run-steps,
    .write-targets {
        grid-template-columns: 1fr;
    }

    .portal-hero-actions {
        justify-content: start;
    }

    .calendar-card-actions {
        justify-content: start;
    }

    .workflow-diagram {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-intro {
        grid-row: auto;
    }

    .workflow-diagram div:not(:last-child)::after {
        content: "";
    }

    .process-chain span:not(:last-child)::after {
        content: "";
    }

    .next-step-grid {
        justify-content: start;
    }

    #transcriptInput {
        min-height: 260px;
    }
}

@media (max-width: 980px) {
    .topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .app-shell,
    .workspace {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .workspace {
        padding: 14px;
    }

    .summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sales-hero {
        min-height: 420px;
        padding: 24px;
    }

    .sales-hero h2 {
        font-size: 32px;
    }

    .section-hero {
        min-height: 260px;
        padding: 24px;
    }

    .section-hero h2 {
        font-size: 30px;
    }

    .workflow-diagram {
        grid-template-columns: 1fr;
    }

    .sample-task-list li {
        align-items: start;
        flex-direction: column;
    }

    .access-context-card {
        align-items: stretch;
        flex-direction: column;
    }

    .view-section,
    .panel,
    .output-stack,
    .review-queue,
    .admin-grid,
    .admin-console,
    .sales-grid,
    .card-list,
    .connector-grid {
        overflow: visible;
    }

    .view-section.active-view {
        display: block;
    }

    .view-section.active-view > * + * {
        margin-top: 18px;
    }

    .form-grid.two-column,
    .meeting-meta-grid,
    .summary-dl,
    .inline-add-row,
    .connector-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table-wrap {
        overflow: auto;
    }

    .comparison-table {
        min-width: 1120px;
    }
}

/* Final Crown Datalytics shell overrides sit last so legacy app rules cannot
   reintroduce the old left-rail layout. */
:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-muted: #f1f5f9;
    --surface-soft: #f8fafc;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --ink: #0f172a;
    --muted: #64748b;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --gold: #f59e0b;
    --gold-strong: #d97706;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.02);
    --mf-navy: #0a0f1d;
    --mf-navy-2: #0f172a;
    --mf-blue: #2563eb;
    --mf-blue-soft: #eaf2ff;
    --mf-slate: #334155;
    --mf-muted: #64748b;
    --mf-border: #e2e8f0;
    --mf-bg: #f8fafc;
    --mf-card: #ffffff;
    --mf-success: #10b981;
    --mf-warning: #f59e0b;
    --mf-danger: #ef4444;
    --mf-radius: 12px;
    --mf-shadow: 0 10px 30px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.02);
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.app-shell {
    display: grid;
    grid-template-columns: 1fr;
}

.sidebar {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 32, 58, 0.08);
    box-shadow: 0 8px 24px rgba(15, 32, 58, 0.06);
    color: #111111;
    display: grid;
    gap: 0;
    height: auto;
    overflow: visible;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 30;
}

.brand {
    margin: 0 auto;
    max-width: 1280px;
    min-height: 58px;
    padding: 8px 18px;
    width: 100%;
}

.brand-logo {
    border-radius: 4px;
    height: 44px;
    padding: 0;
    width: 58px;
}

.brand strong {
    color: #111111;
    font-size: 16px;
    letter-spacing: 0.02em;
}

.brand span {
    color: #4b5563;
    font-size: 13px;
}

.nav-list {
    background: var(--accent);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 10px 12px;
}

.nav-group-label,
.nav-group-label[hidden] {
    display: none !important;
}

.nav-item {
    border: 0;
    border-radius: 999px;
    color: #f5f7fa;
    font-size: 14px;
    height: auto;
    padding: 8px 14px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-item.active {
    background: var(--gold);
    color: #111111;
}

.nav-item.customer-public-nav {
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.customer-public-nav.active {
    background: var(--gold);
    color: #111111;
}

.nav-item .icon,
.sidebar-note {
    display: none;
}

.workspace {
    margin: 0 auto;
    max-width: 1280px;
    padding: 28px 18px 52px;
    width: 100%;
}

.topbar {
    background: transparent;
    border-bottom: 0;
}

.topbar-actions {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-more {
    position: relative;
}

.topbar-more summary {
    list-style: none;
}

.topbar-more summary::-webkit-details-marker {
    display: none;
}

.topbar-more-menu {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 8px;
    min-width: 190px;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
}

.topbar-more-menu .button {
    justify-content: center;
    width: 100%;
}

.topbar-more-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    padding: 4px 6px 0;
    text-transform: uppercase;
}

.top-auth-status {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    min-height: 38px;
    padding: 0 14px;
}

.top-auth-status.customer {
    background: #edf7ff;
    border-color: #a9c9ef;
    color: #0d4f86;
}

.top-auth-status.owner {
    background: #fff7d8;
    border-color: rgba(212, 175, 55, 0.58);
    color: #6d5100;
}

.top-auth-status.signed-in {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.prompt-admin-layout {
    grid-template-columns: minmax(260px, 0.65fr) minmax(420px, 1.35fr);
}

.prompt-template-textarea {
    min-height: 260px;
    white-space: pre-wrap;
}

.prompt-checkbox-card {
    align-self: end;
}

.chip-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.workstream-list {
    display: grid;
    gap: 12px;
}

.workstream-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
}

.workstream-card strong {
    color: var(--accent);
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.workstream-card p {
    margin: 0 0 10px;
}

.workstream-card ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
}

.workstream-card li span {
    color: var(--muted);
    display: block;
    font-size: 13px;
}

.meeting-summary-card .eyebrow {
    color: var(--gold);
    font-size: 11px;
    margin-bottom: 4px;
}

.meeting-summary-card h3 {
    font-size: 18px;
    line-height: 1.25;
}

.summary-bullets {
    color: var(--muted);
    display: grid;
    font-size: 14px;
    gap: 6px;
    margin: -2px 0 12px;
    padding-left: 20px;
}

.open-points {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 12px 0;
    padding: 11px 12px;
}

.open-points strong {
    color: var(--accent);
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.open-points ul {
    color: var(--muted);
    display: grid;
    font-size: 13px;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
}

.match-panel {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    margin: 12px 0;
    padding: 12px;
}

.match-panel > strong {
    color: var(--accent);
    font-size: 13px;
}

.match-panel p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.match-panel ul {
    color: var(--muted);
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
}

.match-panel li span,
.corrections-panel li span {
    display: block;
    font-size: 12px;
}

.summary-dl.compact {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin: 0;
}

.approval-blockers {
    background: #fff7d8;
    border-color: rgba(212, 175, 55, 0.45);
}

.quality-note {
    background: #fff7d8;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    color: #4a3a05;
    padding: 10px 12px;
}

.quality-note summary {
    cursor: pointer;
    font-weight: 800;
}

.quality-note p {
    line-height: 1.45;
    margin: 8px 0 0;
}

.quality-note p + p {
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    padding-top: 8px;
}

.ai-runtime-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 16px;
}

.ai-runtime-card {
    align-items: start;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.6fr);
    padding: 14px;
}

.ai-runtime-card strong,
.ai-runtime-card span,
.ai-runtime-card small {
    display: block;
}

.ai-runtime-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    margin-top: 4px;
}

.ai-runtime-card small {
    color: #64748b;
    font-size: 11px;
    margin-top: 6px;
    word-break: break-word;
}

.ai-runtime-card input,
.ai-runtime-card select {
    min-width: 0;
    width: 100%;
}

.meeting-note-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
}

.next-arrangements,
.ai-suggestions {
    margin-top: 16px;
}

.ai-suggestions li {
    display: grid;
    gap: 4px;
}

.ai-suggestions span,
.ai-suggestions em,
.section-conclusion {
    color: #52627a;
    font-style: normal;
}

.quality-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 1180px) {
    .sidebar {
        display: grid;
    }

    .nav-list {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding: 10px 14px;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
        width: 100%;
    }

    .nav-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .workspace {
        padding: 22px 16px 42px;
    }
}

@media (max-width: 760px) {
    .sidebar {
        display: grid;
        position: sticky;
    }

    .brand {
        min-height: 52px;
        padding: 8px 14px;
    }

    .topbar-actions {
        grid-template-columns: 1fr;
    }

    .nav-list {
        gap: 6px;
        padding: 8px 10px;
    }

    .nav-item {
        font-size: 13px;
        padding: 8px 12px;
    }

    .top-auth-status,
    .topbar-actions .button {
        width: 100%;
    }

    .prompt-admin-layout {
        grid-template-columns: 1fr;
    }

    .ai-runtime-card {
        grid-template-columns: 1fr;
    }
}

.mf-public {
    --mf-navy: #ffffff;
    --mf-navy-2: #0f172a;
    --mf-blue: #3b82f6;
    --mf-blue-soft: rgba(59, 130, 246, 0.15);
    --mf-slate: #cbd5e1;
    --mf-muted: #94a3b8;
    --mf-border: rgba(75, 108, 201, 0.25);
    --mf-bg: #070e17;
    --mf-card: rgba(13, 27, 48, 0.45);
    --mf-success: #10b981;
    --mf-warning: #f59e0b;
    --mf-danger: #ef4444;
    --mf-radius: 16px;
    --mf-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1);
    background: radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(75, 108, 201, 0.1) 0%, transparent 50%),
                linear-gradient(135deg, #050b14 0%, #0c1a30 50%, #03070d 100%);
    color: var(--mf-slate);
    font-size: 16px;
    min-height: 100vh;
}

/* Accessible and Premium Button Overrides for Public Landing Pages */
.mf-public .mf-button-primary {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
    transition: all 0.2s ease !important;
}

.mf-public .mf-button-primary:hover {
    background: #2563eb !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.45) !important;
}

.mf-public .mf-button-secondary {
    background: rgba(13, 27, 48, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
}

.mf-public .mf-button-secondary:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.2) !important;
}

.mf-site-header {
    align-items: center;
    background: rgba(5, 11, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    left: 0;
    padding: 1rem clamp(1rem, 4vw, 4rem);
    position: sticky;
    top: 0;
    z-index: 20;
}

.mf-brand {
    align-items: center;
    display: inline-flex;
    gap: 0.8rem;
    text-decoration: none;
}

.mf-brand img {
    height: 42px;
    object-fit: contain;
    width: 42px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.mf-brand strong {
    color: #ffffff;
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.mf-brand small {
    color: var(--mf-muted);
    display: block;
    font-size: 0.75rem;
}

.mf-public-nav {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.mf-public-nav a,
.mf-link-button {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mf-public-nav a:hover,
.mf-link-button:hover {
    color: #ffffff;
}

.mf-header-actions,
.mf-hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mf-center-actions {
    justify-content: center;
}

.mf-button {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1.1rem;
    text-decoration: none;
}

.mf-button-primary {
    background: var(--mf-navy);
    color: #ffffff;
}

.mf-button-secondary {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    color: var(--mf-navy);
}

.mf-link-button {
    background: transparent;
    border: 1px solid var(--mf-border);
    color: var(--mf-navy);
    transition: all 0.25s ease;
}

.mf-link-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
}

.mf-theme-light .mf-link-button:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(15, 23, 42, 0.2);
}

.mf-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    min-height: auto;
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 6vw, 5rem);
}

.mf-hero-copy {
    width: 100%;
    max-width: 1000px;
    align-self: flex-start;
    text-align: left;
}

.mf-eyebrow {
    color: var(--mf-blue);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 0.9rem;
    text-transform: uppercase;
}

.mf-hero h1,
.mf-section h2,
.mf-final-cta h2 {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    color: var(--mf-navy);
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
}

.mf-hero h1 {
    font-size: clamp(2.6rem, 6vw, 5.8rem);
    max-width: 900px;
}

.mf-hero-subheading,
.mf-section > p,
.mf-section > div > p,
.mf-final-cta p {
    color: var(--mf-muted);
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 760px;
}

.mf-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.mf-hero-trust-strip {
    grid-column: 1 / -1;
    margin-top: 0;
}

.mf-trust-strip span,
.mf-output-top span,
.mf-destination-preview span {
    background: var(--mf-blue-soft);
    border: 1px solid #c8dcff;
    border-radius: 999px;
    color: var(--mf-navy);
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0.45rem 0.7rem;
}

.mf-hero-panel,
.mf-output-card,
.mf-card-grid article,
.mf-step-grid article,
.mf-pricing-grid article,
.mf-faq details {
    background: var(--mf-card);
    border: 1px solid var(--mf-border);
    border-radius: var(--mf-radius);
    box-shadow: var(--mf-shadow);
}

.mf-hero-panel {
    display: grid;
    gap: 0.9rem;
    padding: 1.25rem;
}

/* Public hero product proof: compact enough to appear early on mobile. */
.mf-hero-product-mockup {
    align-self: center;
    gap: 0.75rem;
    max-width: 560px;
}

.mf-hero-product-mockup h2 {
    color: var(--mf-navy);
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0.45rem 0 0;
}

.mf-hero-product-mockup .mf-output-metadata {
    margin: 0.35rem 0;
}

.mf-hero-result-summary {
    color: var(--mf-slate);
    line-height: 1.55;
    margin: 0;
}

.mf-hero-action-list {
    color: var(--mf-muted);
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding-left: 1.2rem;
}

.mf-flow-row {
    border: 1px solid var(--mf-border);
    border-radius: 14px;
    display: grid;
    gap: 0.25rem 0.8rem;
    grid-template-columns: auto 1fr;
    padding: 1rem;
}

.mf-flow-row span,
.mf-step-grid span {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.mf-flow-row span {
    background: var(--mf-navy);
    color: #ffffff;
}

.mf-flow-row small {
    color: var(--mf-muted);
    grid-column: 2;
}

.mf-section,
.mf-final-cta {
    padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 6vw, 5rem);
}

.mf-section-soft {
    background: rgba(15, 23, 42, 0.25);
}

.mf-section h2,
.mf-final-cta h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    max-width: 900px;
}

.mf-card-grid,
.mf-step-grid,
.mf-pricing-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.5rem;
}

.mf-card-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mf-card-grid article,
.mf-step-grid article,
.mf-pricing-grid article {
    padding: 1.25rem;
}

.mf-card-grid h3,
.mf-step-grid h3,
.mf-pricing-grid h3,
.mf-output-card h3,
.mf-output-card h4 {
    color: var(--mf-navy);
    letter-spacing: 0;
    margin: 0 0 0.45rem;
}

.mf-card-grid p,
.mf-step-grid p,
.mf-pricing-grid p,
.mf-output-card p,
.mf-output-card li,
.mf-faq p {
    color: var(--mf-muted);
    line-height: 1.6;
}

.mf-step-grid span {
    background: var(--mf-blue-soft);
    color: var(--mf-blue);
    margin-bottom: 0.8rem;
}

.mf-sample {
    background: rgba(8, 17, 32, 0.35);
}

.mf-output-card {
    margin-top: 1.5rem;
    max-width: 920px;
    padding: 1.4rem;
}

.mf-output-top {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.mf-output-metadata {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1rem 0;
}

.mf-output-metadata div {
    background: var(--mf-bg);
    border-radius: 12px;
    padding: 0.8rem;
}

.mf-output-metadata dt {
    color: var(--mf-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mf-output-metadata dd {
    color: var(--mf-navy);
    font-weight: 900;
    margin: 0.2rem 0 0;
}

.mf-destination-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.mf-pricing-grid strong {
    color: var(--mf-navy);
    display: block;
    font-size: 2rem;
    margin: 0.5rem 0;
}

.mf-plan-list {
    display: grid;
    gap: 0.55rem;
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.mf-plan-list li {
    color: var(--mf-muted);
    line-height: 1.45;
}

.mf-plan-list b {
    color: var(--mf-navy);
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.mf-plan-note {
    background: var(--mf-blue-soft);
    border: 1px solid #c8dcff;
    border-radius: 12px;
    color: var(--mf-navy);
    font-weight: 800;
    padding: 0.7rem 0.85rem;
}

.mf-comparison-wrap {
    background: var(--mf-card);
    border: 1px solid var(--mf-border);
    border-radius: var(--mf-radius);
    box-shadow: var(--mf-shadow);
    margin-top: 1.5rem;
    overflow-x: auto;
}

.mf-comparison-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.mf-comparison-table th,
.mf-comparison-table td {
    border-bottom: 1px solid var(--mf-border);
    line-height: 1.55;
    padding: 1rem;
    text-align: left;
    vertical-align: top;
}

.mf-comparison-table th {
    background: var(--mf-blue-soft);
    color: var(--mf-navy);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.mf-comparison-table tr:last-child td {
    border-bottom: 0;
}

.mf-faq details {
    margin-top: 0.8rem;
    max-width: 920px;
    padding: 1rem 1.2rem;
}

.mf-faq summary {
    color: var(--mf-navy);
    cursor: pointer;
    font-weight: 900;
}

.mf-final-cta {
    background: linear-gradient(135deg, #0a0f1d 0%, #0f172a 100%);
    color: #ffffff;
    text-align: center;
}

.mf-final-cta h2,
.mf-final-cta p {
    color: #ffffff;
    margin-left: auto;
    margin-right: auto;
}

.mf-final-cta .mf-button-primary {
    background: #ffffff;
    color: #0f172a;
}

.mf-placeholder-page {
    align-items: flex-start;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 20px 20px, #050b14;
    display: flex;
    min-height: calc(100vh - 96px);
    padding: 3rem 2rem 4rem;
}

.mf-placeholder-card {
    background: var(--mf-card);
    border: 1px solid var(--mf-border);
    border-radius: var(--mf-radius);
    box-shadow: var(--mf-shadow);
    margin: 0 auto;
    max-width: 560px;
    padding: 2rem;
}

.mf-placeholder-card img {
    display: block;
    height: 44px;
    margin-bottom: 1.5rem;
    width: auto;
}

.mf-placeholder-card h1 {
    color: var(--mf-navy);
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: 0;
    margin: 0 0 .85rem;
}

.mf-placeholder-card p:not(.mf-eyebrow) {
    color: var(--mf-slate);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.mf-placeholder-card .mf-placeholder-warning {
    background: var(--mf-blue-soft);
    border: 1px solid var(--mf-border);
    border-radius: 12px;
    color: var(--mf-navy);
    font-weight: 800;
    padding: .85rem 1rem;
}

.mf-login-return-card {
    background: var(--mf-blue-soft);
    border: 1px solid var(--mf-border);
    border-radius: 14px;
    margin: 1.5rem 0;
    padding: 1rem;
}

.mf-login-return-card h2 {
    color: var(--mf-navy);
    font-size: 1rem;
    letter-spacing: 0;
    margin: 0 0 .4rem;
}

.mf-login-return-card p {
    margin-bottom: .85rem !important;
}

.mf-admin-proof-copy {
    color: var(--mf-muted);
    font-size: .94rem;
    line-height: 1.5;
    margin: .75rem 0 .6rem !important;
}

.mf-login-proof-card {
    background: var(--mf-blue-soft);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 14px;
    margin: 1.35rem 0;
    padding: 1rem;
}

.mf-login-proof-card h2 {
    margin-top: 0;
}

@media (max-width: 980px) {
    .mf-site-header,
    .mf-hero {
        grid-template-columns: 1fr;
    }

    .mf-hero {
        min-height: auto;
        padding-bottom: 2.5rem;
        padding-top: 2.5rem;
    }

    .mf-public-nav {
        justify-content: flex-start;
        order: 3;
    }

    .mf-card-grid,
    .mf-card-grid.four,
    .mf-step-grid,
    .mf-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .mf-site-header,
    .mf-section,
    .mf-final-cta,
    .mf-hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mf-site-header {
        gap: 0.65rem;
        padding-bottom: 0.75rem;
        padding-top: 0.75rem;
    }

    .mf-brand img {
        height: 34px;
        width: 34px;
    }

    .mf-brand small {
        font-size: 0.72rem;
    }

    .mf-public-nav {
        font-size: 0.92rem;
        gap: 0.85rem;
        grid-column: 1 / -1;
        order: 2;
    }

    .mf-header-actions {
        align-items: center;
        flex-direction: row;
        grid-column: 1 / -1;
        order: 3;
    }

    .mf-header-actions .mf-button,
    .mf-header-actions .mf-link-button {
        min-height: 36px;
        padding: 0.5rem 0.75rem;
        width: auto;
    }

    .mf-hero {
        gap: 1.2rem;
        padding-bottom: 2rem;
        padding-top: 1.6rem;
    }

    .mf-hero h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .mf-hero-subheading {
        font-size: 1rem;
        line-height: 1.55;
    }

    .mf-trust-strip {
        gap: 0.45rem;
        margin-top: 1rem;
    }

    .mf-hero-product-mockup {
        padding: 1rem;
    }

    .mf-card-grid,
    .mf-card-grid.four,
    .mf-step-grid,
    .mf-pricing-grid,
    .mf-output-metadata {
        grid-template-columns: 1fr;
    }

    .mf-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mf-hero-actions .mf-button,
    .mf-hero-actions .mf-link-button {
        width: 100%;
    }
}

.mf-protected-admin {
    --mf-bg: #0b0f19;
    --mf-card: #111827;
    --mf-border: rgba(255, 255, 255, 0.08);
    --mf-slate: #f3f4f6;
    --mf-muted: #9ca3af;
    --mf-navy: #ffffff;
    --mf-navy-2: #e5e7eb;
    --mf-sidebar-bg: #0b0f19;
    --mf-blue-soft: rgba(37, 99, 235, 0.15);
    --mf-field-bg: #0f172a;
    --mf-field-text: #f8fafc;
    --mf-field-placeholder: #94a3b8;
    --mf-field-border: rgba(148, 163, 184, 0.28);
    --mf-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: var(--mf-bg);
    color: var(--mf-slate);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

.mf-admin-app {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.mf-admin-sidebar {
    background: var(--mf-sidebar-bg, var(--mf-navy));
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100vh;
    overflow-y: auto;
    padding: 1.25rem;
    position: sticky;
    top: 0;
}

.mf-admin-brand {
    align-items: center;
    color: #ffffff;
    display: flex;
    font-weight: 800;
    gap: .75rem;
    text-decoration: none;
}

.mf-admin-brand img {
    background: #ffffff;
    border-radius: 8px;
    height: 34px;
    object-fit: contain;
    padding: 4px;
    width: 34px;
}

.mf-admin-sidebar nav {
    display: grid;
    gap: 1rem;
}

.mf-admin-nav-section {
    display: grid;
    gap: .35rem;
}

.mf-admin-nav-section > span {
    color: rgba(255, 255, 255, .58);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    padding: 0 .8rem;
    text-transform: uppercase;
}

.mf-admin-sidebar nav a {
    border-radius: 8px;
    color: rgba(255, 255, 255, .78);
    padding: .72rem .8rem;
    text-decoration: none;
}

.mf-admin-sidebar nav a.active,
.mf-admin-sidebar nav a:hover {
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
}

.mf-admin-main {
    align-content: start;
    display: grid;
    gap: 1.25rem;
    min-width: 0;
    padding: 1.5rem;
}

.mf-admin-topbar,
.mf-admin-header,
.mf-admin-panel,
.mf-control-card {
    background: var(--mf-card);
    border: 1px solid var(--mf-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    max-width: 100%;
    min-width: 0;
}

.mf-admin-topbar,
.mf-admin-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.35rem;
}

.mf-admin-topbar h1,
.mf-admin-header h1,
.mf-admin-panel h2 {
    color: var(--mf-navy);
    letter-spacing: 0;
    margin: 0;
}

.mf-admin-topbar p,
.mf-admin-header p,
.mf-admin-panel p {
    color: var(--mf-muted);
    margin: .35rem 0 0;
    overflow-wrap: anywhere;
}

.mf-admin-kicker {
    color: var(--mf-blue);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mf-admin-topbar-actions,
.mf-admin-header-actions,
.mf-admin-panel-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    max-width: 100%;
    min-width: 0;
}

.mf-control-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mf-control-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mf-control-card {
    display: grid;
    gap: .35rem;
    min-width: 0;
    padding: 1rem;
}

.mf-admin-panel > *,
.mf-admin-subsection {
    max-width: 100%;
    min-width: 0;
}

.mf-admin-panel pre {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.mf-control-card span,
.mf-control-card small {
    color: var(--mf-muted);
}

.mf-control-card strong {
    color: var(--mf-navy);
    font-size: 1.55rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.mf-control-card.small strong {
    font-size: 1.25rem;
}

.mf-environment-snapshot {
    gap: .85rem;
}

.mf-environment-snapshot .mf-control-card {
    background: #f8fafc;
    box-shadow: none;
    padding: .75rem;
}

.mf-environment-snapshot .mf-control-card strong {
    font-size: 1.05rem;
}

.mf-environment-snapshot .mf-control-card small {
    font-size: .78rem;
    line-height: 1.25;
}

.mf-admin-section-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.mf-admin-panel {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.mf-admin-panel[id],
.mf-customer-panel[id],
.mf-portal-detail[id],
.mf-customer-two-column[id] {
    scroll-margin-top: 7rem;
}

.mf-action-grid {
    display: grid;
    gap: .7rem;
    grid-template-columns: minmax(0, 1fr);
}

.mf-action-group {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    display: grid;
    gap: .75rem;
    padding: .85rem;
}

.mf-action-group summary {
    cursor: pointer;
    display: grid;
    gap: .2rem;
    list-style-position: inside;
}

.mf-action-group summary span {
    color: var(--mf-navy);
    font-weight: 850;
}

.mf-action-group summary small {
    color: var(--mf-muted);
}

.mf-action-group-buttons {
    display: grid;
    gap: .6rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mf-runtime-status-grid .mf-control-card {
    background: #f8fafc;
    box-shadow: none;
}

.mf-admin-view-grid,
.mf-test-context-grid,
.mf-view-switcher {
    display: grid;
    gap: .75rem;
}

.mf-admin-view-grid,
.mf-test-context-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mf-drilldown-map {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mf-drilldown-map.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mf-dashboard-primary-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mf-dashboard-area-drawer {
    background: #f8fafc;
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    padding: .85rem;
}

.mf-dashboard-area-drawer summary {
    color: var(--mf-navy);
    cursor: pointer;
    font-weight: 850;
}

.mf-dashboard-area-drawer > p {
    color: var(--mf-muted);
    margin: .55rem 0 .85rem;
}

.mf-dashboard-area-drawer .mf-page-key {
    background: #ffffff;
}

.mf-secondary-workareas {
    background: #f8fafc;
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    margin-top: .85rem;
    padding: .85rem;
}

.mf-secondary-workareas summary {
    color: var(--mf-navy);
    cursor: pointer;
    font-weight: 900;
}

.mf-secondary-workareas > p {
    color: var(--mf-muted);
    margin: .55rem 0 .85rem;
}

.mf-section-index {
    grid-column: 1 / -1;
}

.mf-drilldown-card,
.mf-view-card {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-slate);
    display: grid;
    gap: .45rem;
    min-width: 0;
    padding: .9rem;
    text-decoration: none;
}

.mf-drilldown-card:hover,
.mf-drilldown-card:focus-visible,
.mf-view-card:hover,
.mf-view-card:focus-visible {
    border-color: var(--mf-blue);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .12);
    outline: none;
    text-decoration: none;
}

.mf-drilldown-card strong,
.mf-view-card strong {
    color: var(--mf-navy);
}

.mf-drilldown-card p,
.mf-view-card p {
    color: var(--mf-muted);
    font-size: .88rem;
    line-height: 1.45;
    margin: 0;
}

.mf-page-key {
    align-items: start;
    background: #f8fafc;
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    color: var(--mf-slate);
    display: grid;
    gap: .55rem;
    grid-template-columns: 1fr repeat(4, minmax(0, 1.15fr));
    margin-top: .9rem;
    padding: .8rem;
}

.mf-page-key strong {
    color: var(--mf-navy);
    font-size: .82rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.mf-page-key span {
    font-size: .84rem;
    line-height: 1.35;
}

.mf-page-key b {
    color: var(--mf-navy);
}

.mf-signed-proof-panel {
    align-items: center;
    border-left: 5px solid var(--mf-blue);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.mf-signed-proof-panel h2 {
    color: var(--mf-navy);
    letter-spacing: 0;
    margin: .15rem 0 .35rem;
}

.mf-signed-proof-panel p {
    color: var(--mf-slate);
    margin: 0;
    max-width: 66rem;
}

.mf-proof-label {
    color: var(--mf-muted);
    display: inline-block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mf-proof-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: flex-end;
}

.mf-info-label {
    color: var(--mf-blue);
    display: inline-flex;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1;
    padding: .1rem 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.mf-info-label-review {
    color: var(--mf-warning);
}

.mf-form-guidance {
    color: var(--mf-muted);
    display: block;
    font-size: .86rem;
    font-weight: 650;
    line-height: 1.45;
    margin: 0;
}

.mf-form-guidance-warning {
    color: var(--mf-warning);
}

.mf-manual-transcript-form textarea {
    min-height: 18rem;
}

.mf-guidance-label {
    color: var(--mf-muted);
    display: block;
    font-size: .86rem;
    font-weight: 650;
    line-height: 1.45;
    margin: 0;
    max-width: min(34rem, 100%);
}

.mf-guidance-ready {
    color: var(--mf-success);
}

.mf-guidance-review {
    color: var(--mf-warning);
}

.mf-admin-sidebar nav::-webkit-scrollbar,
.mf-customer-sidebar nav::-webkit-scrollbar {
    display: none;
}

.mf-portal-detail[hidden],
.mf-portal-overview[hidden],
.mf-admin-drilldown[hidden],
.mf-admin-overview[hidden],
.mf-admin-section-grid[hidden],
.mf-customer-admin-evidence[hidden],
.mf-crown-test-only[hidden],
.mf-test-console-detail[hidden],
.mf-test-console-overview[hidden],
.mf-setup-detail[hidden],
.mf-setup-overview[hidden] {
    display: none !important;
}

.mf-form-section {
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    display: grid;
    gap: .7rem;
    grid-column: 1 / -1;
    margin: 0;
    padding: .9rem;
}

.mf-form-section legend {
    color: var(--mf-navy);
    font-weight: 900;
    padding: 0 .35rem;
}

.mf-checkbox-grid {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mf-checkbox-pill {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    color: var(--mf-slate);
    display: flex;
    gap: .55rem;
    min-height: 3.1rem;
    padding: .65rem;
}

.mf-checkbox-pill input {
    flex: 0 0 auto;
    margin-top: .18rem;
    width: auto;
}

.mf-checkbox-pill span {
    display: grid;
    gap: .15rem;
}

.mf-checkbox-pill small {
    color: var(--mf-muted);
    font-weight: 650;
    line-height: 1.35;
}

.mf-checkbox-pill .mf-plan-note {
    color: var(--mf-blue);
    font-weight: 800;
}

.mf-plan-upgrade-link {
    color: var(--mf-blue);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mf-checkbox-pill.plan-locked {
    background: #f8fafc;
    color: var(--mf-muted);
    opacity: .72;
}

.mf-checkbox-pill.plan-locked::after {
    background: var(--mf-blue-soft);
    border-radius: 999px;
    color: var(--mf-blue);
    content: "Upgrade";
    font-size: .7rem;
    font-weight: 900;
    margin-left: auto;
    padding: .25rem .45rem;
}

.mf-view-switcher {
    align-items: center;
    grid-template-columns: repeat(4, auto);
}

.mf-test-context-actions {
    grid-column: 1 / -1;
}

.mf-view-switcher a,
.mf-view-card {
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-navy);
    font-size: .85rem;
    font-weight: 800;
    text-decoration: none;
}

.mf-view-switcher a {
    background: #ffffff;
    padding: .55rem .7rem;
}

.mf-view-switcher a:hover,
.mf-view-card.allowed:hover {
    border-color: var(--mf-blue);
    color: var(--mf-blue);
}

.mf-view-switcher a.disabled {
    color: var(--mf-muted);
    cursor: not-allowed;
    opacity: .58;
}

.mf-protected-view-menu {
    position: relative;
}

.mf-protected-view-menu summary {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 999px;
    color: var(--mf-navy);
    cursor: pointer;
    font-size: .85rem;
    font-weight: 900;
    list-style: none;
    padding: .55rem .8rem;
}

.mf-protected-view-menu summary::-webkit-details-marker {
    display: none;
}

.mf-protected-view-menu summary::after {
    color: var(--mf-muted);
    content: "v";
    margin-left: .45rem;
}

.mf-protected-view-menu[open] summary::after {
    content: "^";
}

.mf-protected-view-menu .mf-view-switcher {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .14);
    min-width: 18rem;
    padding: .65rem;
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    z-index: 40;
}

.mf-view-card {
    background: #ffffff;
    display: grid;
    gap: .45rem;
    padding: .85rem;
}

.mf-view-card.blocked {
    background: #fff7ed;
    border-color: rgba(180, 83, 9, .25);
}

.mf-admin-override-form {
    display: grid;
    gap: .9rem;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    max-width: 100%;
    min-width: 0;
}

.mf-admin-override-form label {
    color: var(--mf-slate);
    display: grid;
    font-size: .88rem;
    font-weight: 800;
    gap: .45rem;
    min-width: 0;
}

.mf-admin-override-form .wide {
    grid-column: 1 / -1;
}

.mf-admin-override-form .mf-checkbox-line {
    align-items: center;
    display: flex;
    gap: .55rem;
}

.mf-admin-override-form .mf-checkbox-line input {
    width: auto;
}

.mf-admin-override-form input,
.mf-admin-override-form select,
.mf-admin-override-form textarea {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-navy);
    font: inherit;
    padding: .7rem .8rem;
    width: 100%;
}

.mf-admin-override-form input:focus,
.mf-admin-override-form select:focus,
.mf-admin-override-form textarea:focus,
.mf-customer-settings-form input:focus,
.mf-customer-settings-form select:focus,
.mf-customer-settings-form textarea:focus,
.mf-form-grid input:focus,
.mf-form-grid select:focus,
.mf-form-grid textarea:focus {
    border-color: var(--mf-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
    outline: none;
}

.mf-admin-override-form textarea {
    min-height: 108px;
    resize: vertical;
}

.mf-action-button {
    background: var(--mf-blue-soft);
    border: 1px solid rgba(37, 99, 235, .24);
    border-radius: 10px;
    color: var(--mf-navy);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: .8rem 1rem;
    text-align: left;
    transition: all 0.2s ease, transform 0.1s ease;
}

.mf-action-button:hover {
    border-color: var(--mf-blue);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .12);
    transform: translateY(-1px);
}

.mf-action-button:active {
    transform: scale(0.98);
}

.mf-action-button::before {
    color: var(--mf-blue);
    content: "Action";
    display: block;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .06em;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.mf-action-button.risk-medium {
    border-color: rgba(217, 119, 6, 0.25);
    background: #fffbeb;
}
.mf-action-button.risk-medium::before {
    color: #d97706;
}
.mf-action-button.risk-medium:hover {
    border-color: #d97706;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.12);
}

.mf-action-button.risk-high,
.mf-action-button.risk-destructive {
    background: #fef2f2;
    border-color: rgba(220, 38, 38, 0.25);
    color: #991b1b;
}

.mf-action-button.risk-high:hover,
.mf-action-button.risk-destructive:hover {
    border-color: var(--mf-danger);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.12);
}

.mf-action-button.risk-high::before,
.mf-action-button.risk-destructive::before {
    color: var(--mf-danger);
    content: "Dangerous Action";
}

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

.mf-command-preview {
    display: grid;
    gap: .55rem;
}

.mf-command-preview input {
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    font: inherit;
    padding: .75rem;
}

.mf-command-preview pre {
    background: #0f172a;
    border-radius: 8px;
    color: #e2e8f0;
    margin: 0;
    overflow: auto;
    padding: 1rem;
    white-space: pre-wrap;
}

.mf-table-wrap {
    max-width: 100%;
    min-width: 0;
    overflow: auto;
    width: 100%;
}

.mf-admin-data-table {
    border-collapse: collapse;
    min-width: 620px;
    width: 100%;
}

.mf-admin-data-table th,
.mf-admin-data-table td {
    border-bottom: 1px solid var(--mf-border);
    padding: .75rem .5rem;
    text-align: left;
    vertical-align: top;
}

.mf-admin-data-table th {
    color: var(--mf-muted);
    font-size: .75rem;
    text-transform: uppercase;
}

.mf-admin-data-table .mf-setup-command {
    background: #f8fafc;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-navy);
    display: block;
    font-size: .78rem;
    line-height: 1.45;
    margin-top: .45rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: .55rem .65rem;
    white-space: pre-wrap;
}

.mf-provider-detail {
    color: var(--mf-slate);
    font-size: .84rem;
    line-height: 1.5;
    margin: .35rem 0 0;
}

.mf-admin-action-cell {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.mf-inline-link {
    border: 1px solid var(--mf-border);
    border-radius: 999px;
    color: var(--mf-navy);
    font-size: .78rem;
    font-weight: 800;
    padding: .45rem .7rem;
    text-decoration: none;
    white-space: nowrap;
}

.mf-audit-list {
    color: var(--mf-slate);
    display: grid;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mf-status-chip {
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: default;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    pointer-events: none;
    padding: .35rem .65rem;
}

.mf-status-ready {
    background: rgba(21, 128, 61, .12);
    border-color: rgba(21, 128, 61, .18);
    color: var(--mf-success);
}

.mf-status-review {
    background: rgba(180, 83, 9, .12);
    border-color: rgba(180, 83, 9, .2);
    color: var(--mf-warning);
}

.mf-status-draft {
    background: rgba(37, 99, 235, .12);
    border-color: rgba(37, 99, 235, .18);
    color: var(--mf-blue);
}

.mf-status-failed {
    background: rgba(185, 28, 28, .12);
    border-color: rgba(185, 28, 28, .2);
    color: var(--mf-danger);
}

.mf-state-label {
    background: transparent;
    border: 0;
    color: var(--mf-slate);
    display: inline-grid;
    gap: .12rem;
    line-height: 1.15;
    min-width: 0;
}

.mf-state-label span {
    color: var(--mf-muted);
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mf-state-label strong {
    color: var(--mf-navy);
    font-size: .84rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.mf-protected-app {
    --mf-bg: #0b0f19;
    --mf-card: #111827;
    --mf-border: rgba(255, 255, 255, 0.08);
    --mf-slate: #f3f4f6;
    --mf-muted: #9ca3af;
    --mf-navy: #ffffff;
    --mf-navy-2: #e5e7eb;
    --mf-sidebar-bg: #0b0f19;
    --mf-blue-soft: rgba(37, 99, 235, 0.15);
    --mf-field-bg: #0f172a;
    --mf-field-text: #f8fafc;
    --mf-field-placeholder: #94a3b8;
    --mf-field-border: rgba(148, 163, 184, 0.28);
    --mf-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: var(--mf-bg);
    color: var(--mf-slate);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

.mf-customer-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.mf-customer-sidebar {
    background: var(--mf-sidebar-bg, #ffffff);
    border-right: 1px solid var(--mf-border);
    display: grid;
    gap: 1.25rem;
    grid-template-rows: auto 1fr;
    height: 100vh;
    overflow-y: auto;
    padding: 1.25rem;
    position: sticky;
    top: 0;
}

.mf-customer-brand {
    align-items: center;
    color: var(--mf-navy);
    display: inline-flex;
    font-weight: 900;
    gap: .7rem;
    text-decoration: none;
}

.mf-customer-brand img {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    height: 36px;
    object-fit: contain;
    padding: 4px;
    width: 36px;
}

.mf-customer-sidebar nav {
    display: grid;
    gap: 1rem;
}

.mf-nav-section {
    display: grid;
    gap: .25rem;
}

.mf-nav-section > span {
    color: var(--mf-muted);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    padding: 0 .8rem;
    text-transform: uppercase;
}

.mf-customer-sidebar nav a {
    border-radius: 8px;
    color: var(--mf-slate);
    font-weight: 700;
    padding: .72rem .8rem;
    text-decoration: none;
}

.mf-customer-sidebar nav a.active,
.mf-customer-sidebar nav a:hover {
    background: var(--mf-blue-soft);
    color: var(--mf-blue);
}

.mf-customer-main {
    align-content: start;
    display: grid;
    gap: 1.25rem;
    min-width: 0;
    padding: 1.5rem;
}

.mf-customer-topbar,
.mf-customer-panel,
.mf-metric-card,
.mf-destination-card,
.mf-approval-item {
    background: var(--mf-card);
    border: 1px solid var(--mf-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
    max-width: 100%;
    min-width: 0;
}

.mf-customer-topbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.35rem;
}

.mf-customer-topbar h1,
.mf-customer-panel h2,
.mf-latest-meeting h3 {
    color: var(--mf-navy);
    letter-spacing: 0;
    margin: 0;
}

.mf-customer-topbar p,
.mf-customer-panel p,
.mf-latest-meeting p,
.mf-destination-card p,
.mf-approval-item p {
    color: var(--mf-muted);
    margin: .35rem 0 0;
    overflow-wrap: anywhere;
}

.mf-approval-item small {
    color: var(--mf-muted);
    display: block;
    font-weight: 700;
    margin-top: .65rem;
}

.mf-approval-summary-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.mf-approval-main {
    display: grid;
    gap: .35rem;
}

.mf-approval-main > span {
    color: var(--mf-muted);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.mf-approval-main strong {
    color: var(--mf-navy);
    font-size: 1.02rem;
    letter-spacing: 0;
}

.mf-approval-main b {
    color: var(--mf-navy);
}

.mf-approval-feedback {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534 !important;
    font-weight: 750;
    padding: .6rem .7rem;
}

.mf-approval-decision-panel {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    display: grid;
    gap: .7rem;
    padding: .85rem;
}

.mf-approval-decision-panel select,
.mf-approval-decision-panel textarea {
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-slate);
    font: inherit;
    min-width: 0;
    padding: .65rem .75rem;
    width: 100%;
}

.mf-approval-edit {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    display: grid;
    gap: .65rem;
    padding: .75rem;
}

.mf-approval-edit:not([open]) > :not(summary) {
    display: none !important;
}

.mf-approval-edit summary {
    color: var(--mf-navy);
    cursor: pointer;
    font-weight: 850;
}

.mf-approval-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .85rem;
}

.mf-small-action {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-navy);
    cursor: pointer;
    font: inherit;
    font-size: .85rem;
    font-weight: 800;
    padding: .5rem .65rem;
}

.mf-small-action[disabled] {
    background: #f1f5f9;
    color: var(--mf-muted);
    cursor: not-allowed;
    opacity: .68;
}

.mf-approval-save {
    justify-self: start;
}

.mf-small-action:hover,
.mf-small-action:focus-visible {
    border-color: var(--mf-blue);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .12);
    outline: none;
}

.mf-small-action.danger {
    border-color: rgba(185, 28, 28, .28);
    color: var(--mf-danger);
}

.mf-small-action.danger:hover,
.mf-small-action.danger:focus-visible {
    border-color: var(--mf-danger);
    box-shadow: 0 8px 20px rgba(185, 28, 28, .12);
}

.mf-small-action:disabled {
    background: #f8fafc;
    border-color: var(--mf-border);
    color: var(--mf-muted);
    cursor: not-allowed;
    opacity: .72;
}

.mf-small-action.secondary {
    background: var(--mf-bg);
    color: var(--mf-slate);
}

.mf-static-indicator {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--mf-muted);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    min-height: auto;
    padding: .1rem 0;
}

.mf-static-indicator-locked {
    background: transparent;
    color: var(--mf-muted);
}

.mf-static-note {
    color: var(--mf-muted);
    font-size: .82rem;
    font-weight: 800;
}

.mf-customer-kicker {
    color: var(--mf-blue);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mf-customer-topbar-actions,
.mf-panel-heading,
.mf-filter-row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.mf-inline-field {
    align-items: flex-start;
    display: grid;
    gap: .25rem;
    min-width: 180px;
}

.mf-inline-field span {
    color: var(--mf-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mf-inline-field select,
.mf-inline-field input {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    color: var(--mf-navy);
    font: inherit;
    min-height: 2.4rem;
    padding: .45rem .7rem;
}

.mf-test-context-panel {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 12px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
    padding: 1.1rem;
}

.mf-test-context-panel h2 {
    color: var(--mf-navy);
    letter-spacing: 0;
    margin: 0;
}

.mf-test-context-panel p {
    color: var(--mf-muted);
    margin: .35rem 0 0;
}

.mf-customer-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mf-metric-card {
    display: grid;
    gap: .35rem;
    padding: 1rem;
}

.mf-metric-card span,
.mf-metric-card small {
    color: var(--mf-muted);
}

.mf-metric-card strong {
    color: var(--mf-navy);
    font-size: 1.7rem;
    line-height: 1.1;
}

.mf-setup-readiness-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mf-setup-readiness-card {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    gap: .45rem;
}

.mf-setup-readiness-card strong {
    font-size: 1.05rem;
    line-height: 1.2;
}

.mf-setup-status-text {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1.2;
    padding: 0;
    text-transform: uppercase;
}

.mf-setup-status-text.mf-status-ready {
    color: var(--mf-success);
}

.mf-setup-status-text.mf-status-review,
.mf-setup-status-text.mf-status-draft {
    color: var(--mf-warning);
}

.mf-setup-status-text.mf-status-failed {
    color: var(--mf-danger);
}

.mf-customer-two-column {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.mf-customer-panel {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.mf-setup-list,
.mf-approval-list,
.mf-activity-list {
    display: grid;
    gap: .8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mf-setup-list li,
.mf-approval-item,
.mf-activity-item,
.mf-destination-card,
.mf-latest-meeting,
.mf-result-preview {
    display: grid;
    gap: .45rem;
}

.mf-setup-list li {
    border-bottom: 1px solid var(--mf-border);
    padding-bottom: .75rem;
}

.mf-setup-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mf-latest-meeting,
.mf-result-preview {
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    padding: 1rem;
}

.mf-result-preview {
    background: var(--mf-blue-soft);
    border-color: rgba(37, 99, 235, .2);
}

.mf-filter-row select {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    color: var(--mf-slate);
    font: inherit;
    padding: .5rem .75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mf-filter-row select:focus {
    border-color: var(--mf-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.mf-customer-settings-form {
    display: grid;
    gap: .9rem;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.mf-customer-settings-form label {
    color: var(--mf-slate);
    display: grid;
    font-size: .88rem;
    font-weight: 800;
    gap: .45rem;
}

.mf-customer-settings-form .wide {
    grid-column: 1 / -1;
}

.mf-customer-settings-form input,
.mf-customer-settings-form select,
.mf-customer-settings-form textarea {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-navy);
    font: inherit;
    padding: .7rem .8rem;
    width: 100%;
}

.mf-customer-settings-form textarea {
    resize: vertical;
}

.mf-form-grid {
    display: grid;
    gap: .9rem;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.mf-form-grid label {
    color: var(--mf-slate);
    display: grid;
    font-size: .88rem;
    font-weight: 800;
    gap: .45rem;
}

.mf-form-grid .wide,
.mf-action-row.wide {
    grid-column: 1 / -1;
}

.mf-form-grid input,
.mf-form-grid select,
.mf-form-grid textarea {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-navy);
    font: inherit;
    padding: .7rem .8rem;
    width: 100%;
}

.mf-checkbox-row {
    align-items: center;
    display: flex !important;
    flex-direction: row;
    font-weight: 700;
}

.mf-checkbox-row input {
    flex: 0 0 auto;
    width: auto;
}

.mf-action-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.mf-action-row p {
    color: var(--mf-muted);
    margin: 0;
}

.mf-billing-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mf-billing-item {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    display: grid;
    gap: .25rem;
    padding: .85rem;
}

.mf-billing-item span {
    color: var(--mf-muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mf-billing-item strong {
    color: var(--mf-navy);
}

.mf-customer-data-table {
    border-collapse: collapse;
    min-width: 940px;
    width: 100%;
}

.mf-customer-data-table th,
.mf-customer-data-table td {
    border-bottom: 1px solid var(--mf-border);
    padding: .78rem .55rem;
    text-align: left;
    vertical-align: top;
}

.mf-customer-data-table th {
    color: var(--mf-muted);
    font-size: .75rem;
    text-transform: uppercase;
}

.mf-customer-data-table td small {
    color: var(--mf-muted);
    display: block;
    margin-top: .18rem;
}

.mf-destination-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mf-destination-summary-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    margin-bottom: 1rem;
}

.mf-destination-summary-grid article {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    padding: .75rem;
}

.mf-destination-summary-grid span {
    color: var(--mf-muted);
    display: block;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mf-destination-summary-grid strong {
    color: var(--mf-navy);
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
    margin: .22rem 0;
}

.mf-destination-summary-grid small,
.mf-destination-summary-grid a {
    color: var(--mf-slate);
}

.mf-destination-card,
.mf-approval-item,
.mf-activity-item,
.mf-lens-card {
    box-shadow: none;
    padding: .85rem;
}

.mf-activity-item {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 10px;
}

.mf-activity-item p,
.mf-activity-item small {
    color: var(--mf-muted);
    margin: 0;
    overflow-wrap: anywhere;
}

.mf-meeting-action-status {
    background: #ffffff;
    border-color: rgba(100, 116, 139, .22);
    border-left: 5px solid #94a3b8;
    border-radius: 10px;
    color: var(--mf-slate);
    font-weight: 760;
    margin: 0 0 1rem;
    padding: .78rem .9rem;
}

.mf-meeting-action-status::before {
    color: var(--mf-blue);
    content: "Current status";
    display: block;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .04em;
    margin-bottom: .2rem;
    text-transform: uppercase;
}

.mf-meeting-command-panel {
    align-items: center;
    background: var(--mf-blue-soft);
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 12px;
    display: grid;
    gap: .85rem;
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto) auto;
    margin: 0 0 1rem;
    padding: .95rem;
}

.mf-secondary-meeting-action.mf-meeting-command-panel {
    background: #ffffff;
    display: block;
    margin: 1rem 0;
    padding: 0;
}

.mf-secondary-meeting-action summary {
    align-items: center;
    color: var(--mf-navy);
    cursor: pointer;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: .85rem .95rem;
}

.mf-secondary-meeting-action summary span {
    font-weight: 900;
}

.mf-secondary-meeting-action summary small {
    color: var(--mf-muted);
    font-size: .84rem;
    font-weight: 700;
    text-align: right;
}

.mf-meeting-command-body {
    align-items: end;
    border-top: 1px solid var(--mf-border);
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(180px, 1fr) auto;
    padding: .95rem;
}

.mf-meeting-command-panel strong,
.mf-meeting-selection-bar strong {
    color: var(--mf-navy);
    display: block;
}

.mf-meeting-command-panel p,
.mf-meeting-selection-bar p {
    color: var(--mf-muted);
    margin: .18rem 0 0;
}

.mf-meeting-selection-bar {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 0 0 1rem;
    padding: .85rem;
}

.mf-meeting-selection-bar p {
    color: var(--mf-muted);
    flex: 1 1 320px;
    font-size: .9rem;
    margin: 0;
}

.mf-meeting-select {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    color: var(--mf-navy);
    cursor: pointer;
    display: inline-flex;
    font-size: .86rem;
    font-weight: 850;
    gap: .45rem;
    min-height: 2.05rem;
    padding: .42rem .62rem;
    user-select: none;
}

.mf-meeting-select input {
    accent-color: var(--mf-blue);
    cursor: pointer;
    height: 1rem;
    margin: 0;
    width: 1rem;
}

.mf-meeting-select.is-selected,
.mf-meeting-select:has(input:checked) {
    background: var(--mf-blue-soft);
    border-color: rgba(37, 99, 235, .35);
}

.mf-meeting-select-all {
    background: var(--mf-bg);
}

.mf-meeting-card-list {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    margin-bottom: .65rem;
    max-height: 7rem;
    overflow: auto;
    padding-right: .15rem;
}

.mf-meeting-review-layout {
    align-items: start;
    display: grid;
    gap: .85rem;
    grid-template-columns: minmax(0, 1fr);
}

.mf-meeting-selection-bar {
    align-items: center;
}

.mf-meeting-selection-bar .mf-inline-help {
    flex: 1 1 100%;
}

.mf-meeting-list-tools {
    background: var(--mf-bg);
    border-radius: 10px;
    display: block;
    gap: 0;
    margin: .85rem 0;
    padding: 0;
}

.mf-meeting-list-tools-heading {
    align-items: center;
    color: var(--mf-navy);
    display: flex;
    font-weight: 900;
    gap: .65rem;
    justify-content: space-between;
    padding: .65rem;
}

.mf-meeting-list-tool-body {
    align-items: center;
    border-top: 1px solid var(--mf-border);
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding: .65rem;
}

.mf-meeting-list-tool-body > p {
    flex: 1 1 100%;
}

.mf-meeting-list-tool-body p {
    font-size: .82rem;
}

.mf-bulk-action-field {
    min-width: 11rem;
}

.mf-meeting-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: center;
    padding-top: .15rem;
}

.mf-meeting-pagination .mf-static-indicator {
    color: var(--mf-muted);
    font-size: .82rem;
    min-width: 10rem;
    text-align: center;
}

.mf-meeting-list-pane,
.mf-selected-meeting-pane {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
    min-width: 0;
    padding: 1rem;
}

.mf-meeting-list-pane {
    display: grid;
    gap: .8rem;
    padding: .8rem;
}

.mf-selected-meeting-pane {
    border-color: var(--mf-border);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
    overflow: hidden;
    position: relative;
}

.mf-selected-meeting-pane::before {
    content: none;
}

.mf-meeting-list-heading,
.mf-selected-meeting-header {
    align-items: flex-start;
    display: flex;
    gap: .85rem;
    justify-content: space-between;
}

.mf-meeting-list-heading strong,
.mf-selected-meeting-header h3 {
    color: var(--mf-navy);
}

.mf-meeting-list-heading p,
.mf-selected-meeting-header p {
    color: var(--mf-muted);
    margin: .2rem 0 0;
}

.mf-meeting-card {
    background: var(--mf-card);
    border: 1px solid var(--mf-border);
    border-radius: 12px;
    display: grid;
    gap: .65rem;
    padding: .8rem;
}

.mf-meeting-card-select-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: space-between;
}

.mf-meeting-card-current {
    color: var(--mf-muted);
    font-size: .76rem;
    font-weight: 900;
}

.mf-meeting-card-active,
.mf-meeting-row-active,
.mf-meeting-card-selected {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 12px 30px rgba(37, 99, 235, .1);
}

.mf-meeting-row-active td,
.mf-meeting-row-selected td {
    background: var(--mf-blue-soft);
}

.mf-meeting-card-main span {
    color: var(--mf-muted);
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mf-meeting-card-body,
.mf-meeting-list-item {
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: inherit;
    display: grid;
    gap: .55rem;
    padding: .55rem;
    text-align: left;
    width: 100%;
}

.mf-meeting-card-body {
    padding: .2rem .1rem .45rem;
}

.mf-meeting-list-item {
    cursor: pointer;
}

.mf-meeting-list-item:hover,
.mf-meeting-list-item:focus-visible {
    background: var(--mf-bg);
    outline: 2px solid rgba(37, 99, 235, .18);
    outline-offset: 2px;
}

.mf-meeting-card h3 {
    color: var(--mf-navy);
    font-size: 1rem;
    margin: .2rem 0;
}

.mf-meeting-card p,
.mf-meeting-card dd {
    color: var(--mf-muted);
    margin: 0;
}

.mf-meeting-card-meta {
    align-items: center;
    color: var(--mf-slate);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .85rem;
    margin-top: .55rem;
}

.mf-meeting-meta-item {
    align-items: baseline;
    display: inline-flex;
    gap: .28rem;
    line-height: 1.25;
}

.mf-meeting-meta-item > span {
    color: var(--mf-muted);
    font-size: .72rem;
    font-weight: 850;
}

.mf-meeting-meta-item > strong {
    color: var(--mf-slate);
    font-size: .78rem;
    font-weight: 850;
}

.mf-meeting-processing-line,
.mf-row-processing-line {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-left: 4px solid var(--mf-muted);
    border-radius: 8px;
    color: var(--mf-slate);
    display: grid;
    gap: .16rem;
    line-height: 1.25;
    padding: .52rem .62rem;
}

.mf-meeting-processing-line span,
.mf-meeting-processing-line small,
.mf-row-processing-line small {
    color: var(--mf-muted);
    font-size: .72rem;
    font-weight: 800;
}

.mf-meeting-processing-line span {
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mf-meeting-processing-line strong,
.mf-row-processing-line strong {
    color: var(--mf-navy);
    font-size: .86rem;
    font-weight: 900;
}

.mf-row-processing-line {
    margin-top: .45rem;
    max-width: 15rem;
    padding: .42rem .5rem;
}

.mf-meeting-processing-line-ready,
.mf-row-processing-line-ready {
    border-left-color: var(--mf-success);
}

.mf-meeting-processing-line-review,
.mf-row-processing-line-review {
    border-left-color: var(--mf-warning);
}

.mf-meeting-processing-line-failed,
.mf-row-processing-line-failed {
    border-left-color: var(--mf-danger);
}

.mf-meeting-processing-line-draft,
.mf-row-processing-line-draft {
    border-left-color: var(--mf-blue);
}

.mf-meeting-card-status,
.mf-meeting-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.mf-meeting-card-status {
    align-items: center;
    background: transparent;
    border: 0;
    column-gap: 1rem;
    padding: 0;
    row-gap: .55rem;
}

.mf-meeting-card-status-label {
    color: var(--mf-slate);
    flex: 1 0 100%;
    font-size: .78rem;
    font-weight: 900;
}

.mf-meeting-card-actions {
    align-items: center;
    border-top: 1px solid var(--mf-border);
    padding-top: .75rem;
}

.mf-meeting-card-actions small {
    color: var(--mf-muted);
    font-size: .78rem;
    line-height: 1.35;
}

.mf-meeting-card-actions-label {
    color: var(--mf-slate);
    flex: 1 0 100%;
    font-size: .78rem;
    font-weight: 900;
}

.mf-selected-mode {
    color: var(--mf-blue);
    display: block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mf-current-selection-label {
    color: var(--mf-muted);
    display: block;
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .08em;
    margin-bottom: .22rem;
    text-transform: uppercase;
}

.mf-selected-brief-line {
    align-items: center;
    color: var(--mf-muted);
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .75rem;
}

.mf-selected-brief-line span {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
    padding: .32rem .65rem;
}

.mf-selected-stat-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mf-selected-stat-grid article {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    display: grid;
    gap: .2rem;
    min-width: 0;
    padding: .7rem;
}

.mf-selected-stat-grid span {
    color: var(--mf-muted);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.mf-selected-stat-grid strong {
    color: var(--mf-navy);
}

.mf-selected-stat-grid small {
    color: var(--mf-muted);
    line-height: 1.35;
}

.mf-selected-plain-status {
    color: var(--mf-slate);
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .85rem;
    margin-top: .7rem;
}

.mf-selected-plain-status span {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
    padding: .32rem .62rem;
}

.mf-inline-result {
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    display: grid;
    gap: .35rem;
    margin-top: .85rem;
    padding: .78rem;
}

.mf-inline-result strong {
    color: var(--mf-navy);
}

.mf-inline-result p,
.mf-inline-result small {
    margin: 0;
}

.mf-persistence-notice {
    margin-top: .7rem;
}

.mf-inline-result-review {
    background: #fff7ed;
    border-color: rgba(180, 83, 9, .22);
}

.mf-inline-result-ready {
    background: #f0fdf4;
    border-color: rgba(21, 128, 61, .22);
}

.mf-inline-result-failed {
    background: #fef2f2;
    border-color: rgba(185, 28, 28, .22);
}

.mf-save-truth {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-left: 5px solid #94a3b8;
    border-radius: 12px;
    display: grid;
    gap: .75rem;
    margin-top: .85rem;
    padding: .9rem;
}

.mf-save-truth div {
    display: grid;
    gap: .25rem;
}

.mf-save-truth div span {
    color: var(--mf-blue);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mf-save-truth div strong {
    color: var(--mf-navy);
    font-size: 1rem;
}

.mf-save-truth div p {
    color: var(--mf-slate);
    line-height: 1.45;
    margin: 0;
}

.mf-save-truth ul {
    display: grid;
    gap: .42rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.mf-save-truth li {
    background: #f8fafc;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    display: grid;
    gap: .18rem;
    padding: .55rem .65rem;
}

.mf-save-truth li span {
    color: var(--mf-muted);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mf-save-truth li strong {
    color: var(--mf-navy);
    font-size: .84rem;
}

.mf-save-truth-ready {
    border-left-color: var(--mf-success);
    box-shadow: 0 12px 28px rgba(21, 128, 61, .07);
}

.mf-save-truth-review {
    border-left-color: var(--mf-warning);
    box-shadow: 0 12px 28px rgba(180, 83, 9, .07);
}

.mf-save-truth-failed {
    border-left-color: var(--mf-danger);
    box-shadow: 0 12px 28px rgba(185, 28, 28, .07);
}

.mf-meeting-state-summary {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-left: 5px solid #94a3b8;
    border-radius: 12px;
    display: grid;
    gap: .7rem;
    margin-top: .95rem;
    padding: .9rem;
}

.mf-meeting-state-summary-compact {
    align-items: start;
    background: #f8fafc;
    border-radius: 10px;
    gap: .55rem;
    margin-top: .75rem;
    padding: .68rem .78rem;
}

.mf-meeting-state-header {
    align-items: center;
    display: flex;
    gap: .6rem;
    justify-content: space-between;
}

.mf-meeting-state-header span {
    color: var(--mf-blue);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mf-meeting-state-header b {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 999px;
    color: var(--mf-navy);
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 900;
    max-width: 45%;
    overflow: hidden;
    padding: .28rem .52rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mf-meeting-state-summary-ready .mf-meeting-state-header b {
    background: #dcfce7;
    border-color: rgba(21, 128, 61, .22);
    color: var(--mf-success);
}

.mf-meeting-state-summary-review .mf-meeting-state-header b {
    background: #fff7ed;
    border-color: rgba(180, 83, 9, .22);
    color: var(--mf-warning);
}

.mf-meeting-state-summary-failed .mf-meeting-state-header b {
    background: #fef2f2;
    border-color: rgba(185, 28, 28, .22);
    color: var(--mf-danger);
}

.mf-meeting-state-main {
    display: grid;
    gap: .25rem;
}

.mf-meeting-state-main span {
    color: var(--mf-blue);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mf-meeting-state-main strong {
    color: var(--mf-navy);
    font-size: 1rem;
}

.mf-meeting-state-summary-compact .mf-meeting-state-main strong {
    font-size: .95rem;
}

.mf-meeting-state-main p {
    color: var(--mf-slate);
    line-height: 1.45;
    margin: 0;
}

.mf-meeting-state-summary-compact .mf-meeting-state-main p {
    font-size: .86rem;
    line-height: 1.35;
}

.mf-meeting-status-receipt {
    display: grid;
    gap: .42rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mf-meeting-status-receipt article {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    display: grid;
    gap: .14rem;
    min-width: 0;
    padding: .48rem .56rem;
}

.mf-meeting-status-receipt span {
    color: var(--mf-muted);
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mf-meeting-status-receipt strong {
    color: var(--mf-navy);
    font-size: .8rem;
    overflow-wrap: anywhere;
}

.mf-meeting-status-receipt small {
    color: var(--mf-muted);
    font-size: .68rem;
    font-weight: 760;
    line-height: 1.2;
}

.mf-state-receipt {
    background: #f8fafc;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-slate);
    font-size: .82rem;
    font-weight: 760;
    line-height: 1.4;
    margin: 0;
    padding: .62rem .72rem;
}

.mf-meeting-state-summary-compact .mf-state-receipt {
    background: #ffffff;
    font-size: .76rem;
    padding: .46rem .56rem;
}

.mf-state-receipt-visible {
    margin-top: .65rem;
}

.mf-state-receipt span {
    color: var(--mf-blue);
    display: block;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .04em;
    margin-bottom: .18rem;
    text-transform: uppercase;
}

.mf-selected-state-facts {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: .75rem;
}

.mf-selected-state-facts article {
    border-top: 1px solid var(--mf-border);
    display: grid;
    gap: .16rem;
    padding-top: .5rem;
}

.mf-selected-state-facts span {
    color: var(--mf-muted);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mf-selected-state-facts strong {
    color: var(--mf-navy);
    font-size: .84rem;
}

.mf-selected-state-facts small {
    color: var(--mf-muted);
    font-size: .72rem;
    line-height: 1.25;
}

.mf-meeting-state-summary ul {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.mf-meeting-state-summary li {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--mf-border);
    border-radius: 0;
    display: grid;
    gap: .18rem;
    line-height: 1.25;
    padding: .58rem 0 0;
}

.mf-meeting-state-summary li span {
    color: var(--mf-muted);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mf-meeting-state-summary li strong {
    color: var(--mf-navy);
    font-size: .84rem;
}

.mf-meeting-state-summary li small {
    color: var(--mf-muted);
    font-size: .72rem;
    line-height: 1.25;
}

.mf-meeting-state-summary-ready {
    border-left-color: var(--mf-success);
    box-shadow: 0 12px 28px rgba(21, 128, 61, .07);
}

.mf-meeting-state-summary-review {
    border-left-color: var(--mf-warning);
    box-shadow: 0 12px 28px rgba(180, 83, 9, .07);
}

.mf-meeting-state-summary-failed {
    border-left-color: var(--mf-danger);
    box-shadow: 0 12px 28px rgba(185, 28, 28, .07);
}

.mf-save-proof-strip {
    background: #f8fafc;
    border: 1px solid var(--mf-border);
    border-radius: 12px;
    display: grid;
    gap: .75rem;
    margin-top: .9rem;
    padding: .85rem;
}

.mf-save-proof-heading {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .7rem;
    justify-content: space-between;
}

.mf-save-proof-heading strong {
    color: var(--mf-navy);
}

.mf-save-proof-heading small {
    color: var(--mf-muted);
    font-weight: 750;
}

.mf-save-proof-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mf-save-proof-card {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-left-width: 4px;
    border-radius: 10px;
    display: grid;
    gap: .45rem;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    padding: .7rem;
}

.mf-save-proof-card strong {
    color: var(--mf-navy);
    display: block;
    font-size: .9rem;
}

.mf-save-proof-card p {
    color: var(--mf-muted);
    font-size: .82rem;
    line-height: 1.38;
    margin: .15rem 0 0;
}

.mf-save-proof-card small {
    color: var(--mf-slate);
    display: block;
    font-size: .74rem;
    font-weight: 850;
    line-height: 1.35;
    margin-top: .25rem;
}

.mf-save-proof-card span {
    color: var(--mf-slate);
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mf-save-proof-ready {
    border-left-color: var(--mf-success);
}

.mf-save-proof-review {
    border-left-color: var(--mf-warning);
}

.mf-save-proof-failed {
    border-left-color: var(--mf-danger);
}

.mf-save-proof-idle {
    border-left-color: #94a3b8;
}

.mf-latest-meeting-update {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    display: flex;
    gap: .85rem;
    justify-content: space-between;
    margin-top: .95rem;
    padding: .85rem;
}

.mf-latest-meeting-update div {
    display: grid;
    gap: .25rem;
}

.mf-latest-meeting-update span {
    color: var(--mf-blue);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mf-latest-meeting-update strong {
    color: var(--mf-navy);
}

.mf-latest-meeting-update p,
.mf-latest-meeting-update small {
    color: var(--mf-slate);
    margin: 0;
}

.mf-latest-meeting-update b {
    border-radius: 999px;
    color: var(--mf-slate);
    flex: 0 0 auto;
    font-size: .76rem;
    padding: .34rem .65rem;
}

.mf-latest-meeting-update-ready {
    border-color: rgba(21, 128, 61, .22);
    box-shadow: 0 10px 24px rgba(21, 128, 61, .08);
}

.mf-latest-meeting-update-ready b {
    background: #dcfce7;
    color: var(--mf-success);
}

.mf-latest-meeting-update-review {
    border-color: rgba(180, 83, 9, .24);
    box-shadow: 0 10px 24px rgba(180, 83, 9, .08);
}

.mf-latest-meeting-update-review b {
    background: #fff7ed;
    color: var(--mf-warning);
}

.mf-latest-meeting-update-failed {
    border-color: rgba(185, 28, 28, .24);
    box-shadow: 0 10px 24px rgba(185, 28, 28, .08);
}

.mf-latest-meeting-update-failed b {
    background: #fee2e2;
    color: var(--mf-danger);
}

.mf-latest-meeting-update-idle b {
    background: var(--mf-bg);
}

.mf-save-proof-detail .mf-save-proof-heading {
    margin-top: .75rem;
}

.mf-selected-action-trail {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    display: grid;
    gap: .55rem;
    margin-top: .75rem;
    padding: .75rem;
}

.mf-selected-action-trail > strong {
    color: var(--mf-navy);
    font-size: .88rem;
}

.mf-selected-action-trail ol {
    display: grid;
    gap: .45rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mf-selected-action-trail li {
    border-left: 3px solid #94a3b8;
    display: grid;
    gap: .12rem;
    padding-left: .55rem;
}

.mf-selected-action-trail span {
    color: var(--mf-navy);
    font-size: .8rem;
    font-weight: 900;
}

.mf-selected-action-trail p,
.mf-selected-action-trail small {
    color: var(--mf-muted);
    font-size: .78rem;
    line-height: 1.35;
    margin: 0;
}

.mf-action-trail-ready {
    border-left-color: var(--mf-success);
}

.mf-action-trail-review {
    border-left-color: var(--mf-warning);
}

.mf-action-trail-failed {
    border-left-color: var(--mf-danger);
}

.mf-review-callout {
    background: #fff7ed;
    border: 1px solid rgba(180, 83, 9, .22);
    border-radius: 10px;
    display: grid;
    gap: .45rem;
    margin-top: .9rem;
    padding: .85rem;
}

.mf-review-callout strong {
    color: var(--mf-navy);
}

.mf-review-callout p {
    color: var(--mf-slate);
    margin: 0;
}

.mf-selected-note,
.mf-selected-detail {
    border-top: 1px solid var(--mf-border);
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
    padding-top: 1rem;
}

.mf-selected-note > span {
    color: var(--mf-blue);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mf-selected-note-topic,
.mf-selected-task {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    display: grid;
    gap: .6rem;
    border-radius: 8px;
    padding: .75rem;
}

.mf-selected-task.needs-edit {
    background: #fffaf2;
    border-color: rgba(180, 83, 9, .28);
    box-shadow: 0 10px 24px rgba(180, 83, 9, .08);
}

.mf-selected-note-topic strong,
.mf-selected-task strong {
    color: var(--mf-navy);
}

.mf-selected-note-topic p,
.mf-selected-task p {
    color: var(--mf-muted);
    margin: .25rem 0 0;
}

.mf-selected-task-list {
    display: grid;
    gap: .55rem;
}

.mf-selected-review-item {
    background: #fff7ed;
    border: 1px solid rgba(180, 83, 9, .2);
    border-radius: 8px;
    display: grid;
    gap: .35rem;
    padding: .72rem;
}

.mf-selected-review-item strong {
    color: var(--mf-navy);
}

.mf-selected-review-item p {
    color: var(--mf-slate);
    margin: 0;
}

.mf-selected-review-item span {
    color: var(--mf-warning);
    font-size: .8rem;
    font-weight: 900;
}

.mf-task-quick-edit {
    align-items: end;
    background: #ffffff;
    border: 1px solid rgba(180, 83, 9, .16);
    border-radius: 8px;
    display: grid;
    gap: .55rem;
    grid-template-columns: minmax(130px, 1fr) minmax(128px, .8fr) auto;
    padding: .65rem;
}

.mf-task-quick-edit label {
    color: var(--mf-slate);
    display: grid;
    font-size: .78rem;
    font-weight: 850;
    gap: .25rem;
}

.mf-task-quick-edit select,
.mf-task-quick-edit input {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-navy);
    min-height: 2.35rem;
    padding: .45rem .55rem;
    width: 100%;
}

.mf-task-save-proof {
    color: var(--mf-success);
    font-size: .76rem;
    font-weight: 850;
    grid-column: 1 / -1;
}

.mf-task-save-scope {
    color: var(--mf-muted);
    font-size: .76rem;
    font-weight: 800;
    grid-column: 1 / -1;
}

.mf-task-save-proof.pending {
    color: var(--mf-muted);
}

.mf-task-save-outcome {
    border-left: 4px solid var(--mf-border);
    border-radius: 8px;
    display: grid;
    gap: .2rem;
    grid-column: 1 / -1;
    padding: .55rem .65rem;
}

.mf-task-save-outcome strong {
    color: var(--mf-navy);
    font-size: .82rem;
}

.mf-task-save-outcome span {
    color: var(--mf-slate);
    font-size: .78rem;
    font-weight: 760;
}

.mf-task-save-outcome-ready {
    background: #f0fdf4;
    border-color: rgba(21, 128, 61, .35);
}

.mf-task-save-outcome-review {
    background: #fff7ed;
    border-color: rgba(180, 83, 9, .34);
}

.mf-task-save-outcome-idle {
    background: var(--mf-bg);
}

.mf-selected-detail summary {
    color: var(--mf-navy);
    cursor: pointer;
    font-weight: 900;
}

.mf-selected-actions {
    border-top: 1px solid var(--mf-border);
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
    padding-top: 1rem;
}

.mf-reprocess-allowance {
    color: var(--mf-muted);
    flex: 1 0 100%;
    font-size: .88rem;
    margin: 0;
}

.mf-selected-action-note {
    align-self: center;
    color: var(--mf-muted);
    font-size: .78rem;
    font-weight: 800;
    max-width: 30rem;
}

.mf-selected-action-receipt {
    color: var(--mf-slate);
    flex: 1 0 100%;
    font-size: .78rem;
    font-weight: 850;
}

.mf-selected-action-outcome {
    margin-top: .7rem;
}

.mf-selected-action-outcome > span {
    color: var(--mf-muted);
    display: block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    margin-bottom: .2rem;
    text-transform: uppercase;
}

.mf-selected-load-state {
    background: var(--mf-blue-soft);
    border: 1px solid rgba(37, 99, 235, .2);
    border-radius: 8px;
    color: var(--mf-blue);
    font-weight: 800;
    margin: .9rem 0 0;
    padding: .65rem;
}

.mf-selected-load-error {
    background: #fff7ed;
    border-color: rgba(180, 83, 9, .22);
    color: var(--mf-warning);
}

.mf-transcript-preview {
    background: #0f172a;
    border-radius: 10px;
    color: #e2e8f0;
    font: .86rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    margin: .65rem 0 0;
    max-height: 22rem;
    overflow: auto;
    padding: .85rem;
    white-space: pre-wrap;
}

.mf-transcript-edit-detail {
    gap: .85rem;
}

.mf-transcript-fact-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mf-transcript-fact-grid article {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    display: grid;
    gap: .28rem;
    padding: .72rem;
}

.mf-transcript-fact-grid span {
    color: var(--mf-muted);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mf-transcript-fact-grid strong {
    color: var(--mf-navy);
    font-size: .95rem;
}

.mf-transcript-fact-grid small {
    color: var(--mf-slate);
    font-size: .78rem;
    line-height: 1.35;
}

.mf-transcript-edit-field {
    color: var(--mf-navy);
    display: grid;
    font-size: .86rem;
    font-weight: 850;
    gap: .45rem;
}

.mf-transcript-edit-field textarea {
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-slate);
    font: .88rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    min-height: 16rem;
    padding: .85rem;
    resize: vertical;
}

.mf-transcript-edit-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.mf-transcript-edit-actions small,
.mf-transcript-edit-meter {
    color: var(--mf-muted);
    font-size: .78rem;
    font-weight: 800;
}

.mf-transcript-edit-status {
    border-left: 4px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-slate);
    font-size: .84rem;
    font-weight: 800;
    margin: 0;
    padding: .62rem .72rem;
}

.mf-transcript-edit-status-ready {
    background: #f0fdf4;
    border-color: rgba(21, 128, 61, .4);
    color: var(--mf-success);
}

.mf-transcript-edit-status-review {
    background: #fff7ed;
    border-color: rgba(180, 83, 9, .35);
    color: var(--mf-warning);
}

.mf-transcript-edit-status-failed {
    background: #fef2f2;
    border-color: rgba(185, 28, 28, .35);
    color: var(--mf-danger);
}

.mf-source-transcript-detail {
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    padding: .65rem;
}

.mf-source-transcript-detail summary {
    color: var(--mf-slate);
    font-size: .84rem;
}

/* Protected dark-mode contrast pass for selected meeting and workbench cards. */
.mf-protected-app:not(.mf-theme-light) .mf-meeting-list-pane,
.mf-protected-app:not(.mf-theme-light) .mf-selected-meeting-pane,
.mf-protected-app:not(.mf-theme-light) .mf-meeting-status-receipt article,
.mf-protected-app:not(.mf-theme-light) .mf-state-receipt,
.mf-protected-app:not(.mf-theme-light) .mf-meeting-state-summary-compact .mf-state-receipt,
.mf-protected-app:not(.mf-theme-light) .mf-save-proof-strip,
.mf-protected-app:not(.mf-theme-light) .mf-save-proof-card,
.mf-protected-app:not(.mf-theme-light) .mf-latest-meeting-update,
.mf-protected-app:not(.mf-theme-light) .mf-selected-action-trail,
.mf-protected-app:not(.mf-theme-light) .mf-task-quick-edit,
.mf-protected-app:not(.mf-theme-light) .mf-transcript-fact-grid article,
.mf-protected-app:not(.mf-theme-light) .mf-source-transcript-detail,
.mf-protected-app:not(.mf-theme-light) .mf-source-transcript-detail-compact,
.mf-protected-admin:not(.mf-theme-light) .mf-meeting-list-pane,
.mf-protected-admin:not(.mf-theme-light) .mf-selected-meeting-pane,
.mf-protected-admin:not(.mf-theme-light) .mf-meeting-status-receipt article,
.mf-protected-admin:not(.mf-theme-light) .mf-state-receipt,
.mf-protected-admin:not(.mf-theme-light) .mf-save-proof-strip,
.mf-protected-admin:not(.mf-theme-light) .mf-save-proof-card,
.mf-protected-admin:not(.mf-theme-light) .mf-latest-meeting-update,
.mf-protected-admin:not(.mf-theme-light) .mf-selected-action-trail,
.mf-protected-admin:not(.mf-theme-light) .mf-task-quick-edit {
    background: #0f172a;
    border-color: var(--mf-field-border);
    color: var(--mf-slate);
}

.mf-protected-app:not(.mf-theme-light) .mf-task-quick-edit select,
.mf-protected-app:not(.mf-theme-light) .mf-task-quick-edit input,
.mf-protected-admin:not(.mf-theme-light) .mf-task-quick-edit select,
.mf-protected-admin:not(.mf-theme-light) .mf-task-quick-edit input {
    background: var(--mf-field-bg);
    border-color: var(--mf-field-border);
    color: var(--mf-field-text);
}

.mf-protected-app:not(.mf-theme-light) .mf-review-callout,
.mf-protected-app:not(.mf-theme-light) .mf-selected-task.needs-edit,
.mf-protected-app:not(.mf-theme-light) .mf-selected-review-item,
.mf-protected-app:not(.mf-theme-light) .mf-task-save-outcome-review,
.mf-protected-app:not(.mf-theme-light) .mf-selected-load-error,
.mf-protected-app:not(.mf-theme-light) .mf-transcript-edit-status-review,
.mf-protected-admin:not(.mf-theme-light) .mf-review-callout,
.mf-protected-admin:not(.mf-theme-light) .mf-selected-task.needs-edit,
.mf-protected-admin:not(.mf-theme-light) .mf-selected-review-item,
.mf-protected-admin:not(.mf-theme-light) .mf-task-save-outcome-review,
.mf-protected-admin:not(.mf-theme-light) .mf-selected-load-error {
    background: rgba(180, 83, 9, 0.14);
    border-color: rgba(245, 158, 11, 0.38);
    color: var(--mf-slate);
}

.mf-protected-app:not(.mf-theme-light) .mf-task-save-outcome-ready,
.mf-protected-app:not(.mf-theme-light) .mf-transcript-edit-status-ready,
.mf-protected-admin:not(.mf-theme-light) .mf-task-save-outcome-ready {
    background: rgba(21, 128, 61, 0.14);
    border-color: rgba(34, 197, 94, 0.34);
}

.mf-protected-app:not(.mf-theme-light) .mf-transcript-edit-status-failed,
.mf-protected-admin:not(.mf-theme-light) .mf-transcript-edit-status-failed {
    background: rgba(185, 28, 28, 0.14);
    border-color: rgba(248, 113, 113, 0.34);
}

.mf-meeting-card dl {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.mf-meeting-card dt {
    color: var(--mf-slate);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mf-full-table-disclosure {
    margin-top: 1rem;
}

.mf-meeting-action-status-ready {
    background: #f0fdf4;
    border-left-color: var(--mf-success);
    border-color: rgba(21, 128, 61, .25);
    color: var(--mf-success);
}

.mf-meeting-action-status-review {
    background: #fff7ed;
    border-color: rgba(180, 83, 9, .25);
    border-left-color: var(--mf-warning);
    color: var(--mf-warning);
}

.mf-meeting-action-status-failed,
.mf-activity-warning {
    background: #fef2f2;
    border-left-color: var(--mf-danger);
    border-color: rgba(185, 28, 28, .22);
    color: var(--mf-danger);
}

.mf-activity-warning,
.mf-activity-next-step {
    background: #fff;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    padding: .65rem;
}

.mf-activity-next-step {
    color: var(--mf-slate);
}

.mf-destination-card small {
    color: var(--mf-muted);
    display: block;
    font-size: .78rem;
    overflow-wrap: anywhere;
}

.mf-destination-route-note {
    border-left: 3px solid var(--mf-border);
    padding-left: .6rem;
}

.mf-destination-evidence {
    border-top: 1px solid var(--mf-border);
    margin-top: .75rem;
    padding-top: .65rem;
}

.mf-destination-evidence summary {
    color: var(--mf-slate);
    cursor: pointer;
    font-weight: 800;
}

.mf-activity-evidence {
    border-top: 1px solid var(--mf-border);
    margin-top: .75rem;
    padding-top: .65rem;
}

.mf-activity-evidence summary {
    color: var(--mf-slate);
    cursor: pointer;
    font-weight: 800;
}

.mf-activity-evidence ul {
    color: var(--mf-muted);
    font-size: .82rem;
    margin: .6rem 0 0;
    padding-left: 1rem;
}

.mf-activity-item small {
    font-size: .78rem;
}

.mf-customer-data-table.compact {
    min-width: 620px;
}

.mf-customer-data-table.compact.mf-connector-preflight-table {
    min-width: 0;
}

.mf-lens-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mf-lens-card {
    background: var(--mf-card);
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    display: grid;
    gap: .4rem;
}

.mf-lens-card p {
    color: var(--mf-muted);
    margin: 0;
}

.mf-result-header-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr;
}

.mf-result-brief-card {
    align-items: center;
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    display: grid;
    gap: .9rem;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .95fr);
    padding: .85rem;
}

.mf-result-brief-copy {
    display: grid;
    gap: .25rem;
    min-width: 0;
}

.mf-result-brief-copy span,
.mf-result-brief-chip small {
    color: var(--mf-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mf-result-brief-copy strong {
    color: var(--mf-navy);
    font-size: clamp(1rem, 2vw, 1.25rem);
    overflow-wrap: anywhere;
}

.mf-result-brief-copy p {
    color: var(--mf-muted);
    margin: 0;
}

.mf-result-brief-chips {
    display: grid;
    gap: .45rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mf-result-brief-chip {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    display: grid;
    gap: .15rem;
    min-width: 0;
    padding: .5rem .6rem;
}

.mf-result-brief-chip strong {
    color: var(--mf-navy);
    font-size: .86rem;
    overflow-wrap: anywhere;
}

.mf-result-meta {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    display: grid;
    gap: .2rem;
    padding: .75rem;
}

.mf-result-meta span,
.mf-result-section span {
    color: var(--mf-muted);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mf-result-meta strong {
    color: var(--mf-navy);
    overflow-wrap: anywhere;
}

.mf-result-meta-details {
    grid-column: 1 / -1;
}

.mf-result-meta-details summary {
    color: var(--mf-navy);
    cursor: pointer;
    font-weight: 800;
}

.mf-result-header-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: .8rem;
}

.mf-result-roadmap {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mf-result-roadmap article {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    display: grid;
    gap: .3rem;
    min-width: 0;
    padding: .75rem;
}

.mf-result-roadmap span,
.mf-result-count-label {
    color: var(--mf-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mf-result-roadmap strong {
    color: var(--mf-navy);
    overflow-wrap: anywhere;
}

.mf-result-roadmap p {
    color: var(--mf-muted);
    margin: 0;
}

.mf-result-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

.mf-result-section {
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    display: grid;
    gap: .75rem;
    padding: 1rem;
}

.mf-result-section summary {
    align-items: center;
    color: var(--mf-navy);
    cursor: pointer;
    display: flex;
    gap: .65rem;
    justify-content: space-between;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: 0;
    list-style-position: inside;
}

.mf-result-section summary strong {
    background: var(--mf-blue-soft);
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 999px;
    color: var(--mf-blue);
    font-size: .74rem;
    padding: .25rem .55rem;
    white-space: nowrap;
}

.mf-setup-details {
    background: #f8fafc;
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    margin-top: .85rem;
    padding: .85rem;
}

.mf-setup-details summary {
    color: var(--mf-navy);
    cursor: pointer;
    font-weight: 850;
}

.mf-setup-details[open] summary {
    margin-bottom: .75rem;
}

.mf-setup-details .mf-customer-settings-form {
    margin-top: 0;
}

.mf-form-cluster {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mf-result-section.wide {
    grid-column: 1 / -1;
}

.mf-result-section h3,
.mf-meeting-topic h4 {
    color: var(--mf-navy);
    letter-spacing: 0;
    margin: 0;
}

.mf-mode-outline {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    display: grid;
    gap: .7rem;
    padding: .85rem;
}

.mf-mode-outline strong {
    color: var(--mf-navy);
}

.mf-mode-outline p {
    color: var(--mf-muted);
    margin: .2rem 0 0;
}

.mf-mode-outline-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.mf-outline-token {
    color: var(--mf-slate);
    display: inline-flex;
    font-size: .8rem;
    font-weight: 750;
}

.mf-outline-token::before {
    color: var(--mf-blue);
    content: "•";
    font-weight: 900;
    margin-right: .35rem;
}

.mf-result-section ul,
.mf-meeting-topic ul {
    color: var(--mf-slate);
    margin: 0;
    padding-left: 1.2rem;
}

.mf-topic-heading {
    align-items: center;
    display: flex;
    gap: .6rem;
}

.mf-section-number,
.mf-section-type {
    align-items: center;
    background: var(--mf-blue-soft);
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: var(--mf-blue);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 850;
    justify-content: center;
    min-height: 1.7rem;
    min-width: 1.7rem;
    padding: .2rem .55rem;
}

.mf-section-number {
    border-radius: 50%;
    padding: .2rem;
}

.mf-meeting-topic,
.mf-result-action,
.mf-candidate-card {
    border-top: 1px solid var(--mf-border);
    display: grid;
    gap: .4rem;
    padding-top: .8rem;
}

.mf-meeting-topic:first-child {
    border-top: 0;
    padding-top: 0;
}

.mf-result-action {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    padding: .85rem;
}

.mf-result-action-heading {
    align-items: start;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.mf-action-status-text {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .74rem;
    font-weight: 850;
    padding: 0;
    text-transform: uppercase;
}

.mf-result-action p span {
    color: var(--mf-slate);
    font-weight: 750;
    margin-left: .35rem;
}

.mf-result-action p,
.mf-candidate-card p,
.mf-cost-summary p {
    color: var(--mf-muted);
    margin: 0;
}

.mf-candidate-list {
    display: grid;
    gap: .75rem;
}

.mf-candidate-card {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    padding: .85rem;
}

.mf-candidate-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.mf-candidate-heading strong {
    color: var(--mf-navy);
}

.mf-helper-text {
    color: var(--mf-muted);
    margin: 0;
}

.mf-json-preview {
    background: #0f172a;
    border-radius: 8px;
    color: #e2e8f0;
    margin: 0;
    overflow: auto;
    padding: 1rem;
    white-space: pre-wrap;
}

.mf-destination-grid.compact {
    grid-template-columns: 1fr;
}

.mf-trial-flow {
    display: grid;
    gap: 1.25rem;
    margin: 0 auto;
    max-width: 1180px;
    padding: 1.5rem;
}

.mf-trial-hero {
    align-items: flex-start;
    background: var(--mf-card);
    border: 1px solid var(--mf-border);
    border-radius: 14px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.5rem;
}

.mf-trial-hero h1 {
    color: var(--mf-navy);
    letter-spacing: 0;
    margin: 1rem 0 .5rem;
}

.mf-trial-hero p {
    color: var(--mf-muted);
    margin: 0;
    max-width: 720px;
}

.mf-trial-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.mf-trial-focus-grid {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
}

.mf-trial-result-layout {
    display: grid;
    gap: 1rem;
}

.mf-trial-primary-result {
    border-left: 5px solid var(--mf-blue);
}

.mf-trial-detail-panel {
    padding: 0;
}

.mf-trial-detail-panel summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    list-style: none;
    padding: 1rem 1.1rem;
}

.mf-trial-detail-panel summary::-webkit-details-marker {
    display: none;
}

.mf-trial-detail-panel summary span {
    color: var(--mf-navy);
    font-weight: 900;
}

.mf-trial-detail-panel summary strong,
.mf-trial-status-text {
    color: var(--mf-muted);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mf-trial-status-text.ready {
    color: var(--mf-success);
}

.mf-trial-status-text.review {
    color: var(--mf-warning);
}

.mf-trial-status-text.failed {
    color: var(--mf-danger);
}

.mf-processing-state-text {
    background: transparent;
    border: 0;
    color: var(--mf-muted);
    display: inline;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .04em;
    padding: 0;
    text-transform: uppercase;
}

.mf-processing-state-text.mf-status-ready {
    color: var(--mf-success);
}

.mf-processing-state-text.mf-status-review {
    color: var(--mf-warning);
}

.mf-processing-state-text.mf-status-failed {
    color: var(--mf-danger);
}

.mf-processing-state-text.mf-status-draft {
    color: var(--mf-muted);
}

.mf-trial-detail-body {
    border-top: 1px solid var(--mf-border);
    display: grid;
    gap: 1rem;
    padding: 1rem 1.1rem 1.1rem;
}

.mf-trial-run-receipt {
    margin-top: .85rem;
}

.mf-trial-run-receipt-ready {
    border-color: rgba(21, 128, 61, .24);
}

.mf-trial-run-receipt-review {
    border-color: rgba(180, 83, 9, .24);
}

.mf-trial-run-receipt-failed {
    border-color: rgba(185, 28, 28, .24);
}

.mf-trial-steps {
    display: grid;
    gap: .8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mf-trial-steps li {
    border-bottom: 1px solid var(--mf-border);
    display: grid;
    gap: .35rem;
    padding-bottom: .75rem;
}

.mf-trial-steps li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mf-trial-step-status {
    background: transparent;
    border: 0;
    color: var(--mf-muted);
    display: inline;
    font-size: .7rem;
    font-weight: 900;
    justify-self: start;
    letter-spacing: .04em;
    padding: 0;
    text-transform: uppercase;
}

.mf-trial-step-status.mf-status-review {
    color: var(--mf-warning);
}

.mf-trial-step-status.mf-status-ready {
    color: var(--mf-success);
}

.mf-trial-step-status.mf-status-draft {
    color: var(--mf-muted);
}

.mf-choice-grid,
.mf-next-step-grid,
.mf-rating-row {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mf-choice-card,
.mf-rating-button {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-navy);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: .8rem;
    text-align: left;
    text-decoration: none;
}

.mf-choice-card strong,
.mf-choice-card span {
    display: block;
}

.mf-choice-card span {
    color: var(--mf-muted);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.45;
    margin-top: .28rem;
}

.mf-choice-card.active,
.mf-rating-button.active,
.mf-choice-card:hover,
.mf-rating-button:hover {
    background: var(--mf-blue-soft);
    border-color: rgba(37, 99, 235, .38);
    color: var(--mf-blue);
}

.mf-rating-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mf-rating-button {
    text-align: center;
}

.mf-processing-timeline {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mf-processing-step {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    display: grid;
    gap: .45rem;
    min-width: 0;
    padding: .9rem;
}

.mf-processing-step strong {
    color: var(--mf-navy);
    font-size: .95rem;
    line-height: 1.25;
}

.mf-processing-step p {
    color: var(--mf-muted);
    font-size: .86rem;
    line-height: 1.45;
    margin: 0;
}

#sampleTranscriptBox {
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-slate);
    font: inherit;
    padding: .75rem;
    resize: vertical;
}

#sampleTranscriptBox[hidden] {
    display: none;
}

.mf-benchmark-row {
    cursor: pointer;
}

.mf-benchmark-row.selected {
    background: var(--mf-blue-soft);
}

.mf-benchmark-row small {
    color: var(--mf-muted);
    display: block;
    margin-top: .25rem;
}

.mf-benchmark-lanes {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mf-benchmark-lane {
    background: var(--mf-card);
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    display: grid;
    gap: .75rem;
    min-width: 0;
    padding: 1rem;
}

.mf-benchmark-lane h3 {
    color: var(--mf-navy);
    font-size: 1rem;
    margin: 0;
}

.mf-benchmark-lane dl {
    display: grid;
    gap: .4rem;
    grid-template-columns: auto minmax(0, 1fr);
    margin: 0;
}

.mf-benchmark-lane dt {
    color: var(--mf-muted);
    font-size: .78rem;
    font-weight: 700;
}

.mf-benchmark-lane dd {
    color: var(--mf-slate);
    font-size: .82rem;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.mf-benchmark-lane pre {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-slate);
    font-size: .75rem;
    line-height: 1.45;
    max-height: 14rem;
    overflow: auto;
    padding: .75rem;
    white-space: pre-wrap;
}

.mf-benchmark-lane ul {
    color: var(--mf-slate);
    margin: 0;
    padding-left: 1.2rem;
}

.mf-benchmark-reference {
    border-top: 1px solid var(--mf-border);
    display: grid;
    gap: .45rem;
    padding-top: .75rem;
}

.mf-benchmark-reference small {
    color: var(--mf-muted);
}

@media (max-width: 1100px) {
    .mf-admin-app,
    .mf-admin-section-grid,
    .mf-benchmark-lanes,
    .mf-customer-shell,
    .mf-customer-two-column,
    .mf-processing-timeline,
    .mf-trial-focus-grid,
    .mf-trial-grid {
        grid-template-columns: 1fr;
    }

    .mf-admin-sidebar,
    .mf-customer-sidebar {
        align-items: center;
        display: flex;
        gap: .75rem;
        grid-template-rows: none;
        height: auto;
        min-height: auto;
        overflow: hidden;
        padding: .75rem 1rem;
        position: sticky;
        top: 0;
        z-index: 30;
    }

    .mf-customer-sidebar {
        border-bottom: 1px solid var(--mf-border);
        border-right: 0;
    }

    .mf-admin-brand,
    .mf-customer-brand {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .mf-admin-sidebar nav,
    .mf-customer-sidebar nav {
        display: flex;
        flex: 1 1 auto;
        flex-wrap: wrap;
        gap: .35rem;
        grid-template-columns: none;
        overflow-x: visible;
        padding-bottom: 0;
        scrollbar-width: none;
    }

    .mf-nav-section {
        display: contents;
    }

    .mf-admin-nav-section {
        display: contents;
    }

    .mf-nav-section > span,
    .mf-admin-nav-section > span {
        display: none;
    }

    .mf-admin-sidebar nav a,
    .mf-customer-sidebar nav a {
        flex: 1 1 auto;
        min-width: max-content;
        white-space: nowrap;
    }

    .mf-control-grid,
    .mf-control-grid.compact,
    .mf-admin-override-form,
    .mf-page-key,
    .mf-admin-view-grid,
    .mf-test-context-grid,
    .mf-test-context-panel,
    .mf-customer-grid,
    .mf-meeting-review-layout,
    .mf-save-truth ul,
    .mf-meeting-status-receipt,
    .mf-meeting-state-summary ul,
    .mf-save-proof-grid,
    .mf-selected-status-grid,
    .mf-selected-stat-grid,
    .mf-result-brief-card,
    .mf-result-header-grid,
    .mf-result-roadmap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mf-result-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .mf-admin-app {
        display: block;
        min-height: 100vh;
    }

    .mf-admin-main,
    .mf-customer-main,
    .mf-customer-sidebar {
        padding: 1rem;
    }

    .mf-admin-main {
        gap: 1rem;
        padding: .85rem;
    }

    .mf-admin-sidebar,
    .mf-customer-sidebar {
        align-items: center;
        display: grid;
        gap: .65rem;
        grid-template-columns: 1fr;
        max-height: none;
        min-height: auto;
        overflow: visible;
        padding: .55rem .65rem;
        position: sticky;
        top: 0;
        z-index: 30;
    }

    .mf-admin-sidebar {
        background: var(--mf-navy);
    }

    .mf-customer-sidebar {
        background: var(--mf-card);
        border-bottom: 1px solid var(--mf-border);
    }

    .mf-admin-brand,
    .mf-customer-brand {
        flex: 0 0 auto;
        font-size: .9rem;
        justify-content: center;
    }

    .mf-admin-brand img,
    .mf-customer-brand img {
        height: 28px;
        width: 28px;
    }

    .mf-admin-sidebar nav,
    .mf-customer-sidebar nav {
        display: flex;
        flex: 1 1 auto;
        flex-wrap: wrap;
        gap: .35rem;
        grid-template-columns: none;
        justify-content: flex-start;
        max-width: 100%;
        min-width: 0;
        overflow-x: visible;
        overflow-y: visible;
        padding-bottom: 0;
        scrollbar-width: none;
        width: 100%;
    }

    .mf-nav-section {
        display: contents;
    }

    .mf-admin-nav-section {
        display: contents;
    }

    .mf-nav-section > span,
    .mf-admin-nav-section > span {
        display: none;
    }

    .mf-admin-sidebar nav a,
    .mf-customer-sidebar nav a {
        flex: 1 1 auto;
        font-size: .82rem;
        min-width: max-content;
        padding: .48rem .58rem;
        white-space: nowrap;
    }

    .mf-admin-topbar,
    .mf-admin-header,
    .mf-admin-panel-heading,
    .mf-customer-topbar,
    .mf-panel-heading,
    .mf-admin-topbar-actions,
    .mf-admin-header-actions,
    .mf-filter-row,
    .mf-trial-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .mf-control-grid,
    .mf-control-grid.compact,
    .mf-drilldown-map,
    .mf-meeting-command-panel,
    .mf-meeting-command-body,
    .mf-page-key,
    .mf-signed-proof-panel,
    .mf-action-grid,
    .mf-admin-override-form,
    .mf-customer-settings-form,
    .mf-form-cluster,
    /* Customer signup forms collapse to one column on mobile. */
    .mf-form-grid,
    .mf-checkbox-grid,
    .mf-meeting-review-layout,
    .mf-save-truth ul,
    .mf-meeting-status-receipt,
    .mf-meeting-state-summary ul,
    .mf-save-proof-grid,
    .mf-selected-status-grid,
    .mf-selected-stat-grid,
    .mf-task-quick-edit,
    .mf-admin-view-grid,
    .mf-test-context-grid,
    .mf-admin-sidebar nav,
    .mf-customer-sidebar nav,
    .mf-customer-grid,
    .mf-destination-grid,
    .mf-lens-grid,
    .mf-choice-grid,
    .mf-next-step-grid,
    .mf-result-brief-card,
    .mf-result-header-grid,
    .mf-result-roadmap,
    .mf-result-layout,
    .mf-billing-grid,
    .mf-meeting-card dl {
        grid-template-columns: 1fr;
    }

    .mf-proof-actions {
        justify-content: flex-start;
    }

    .mf-result-action-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .mf-secondary-meeting-action summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .mf-secondary-meeting-action summary small {
        text-align: left;
    }

    .mf-admin-hq-grid,
    .mf-customer-grid,
    .mf-drilldown-map,
    .mf-admin-view-grid,
    .mf-test-context-grid,
    .mf-control-grid.compact {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .mf-drilldown-map,
    .mf-admin-view-grid,
    .mf-test-context-grid {
        grid-template-columns: 1fr;
    }

    .mf-admin-topbar,
    .mf-admin-header,
    .mf-customer-topbar {
        padding: 1rem;
    }

    .mf-admin-topbar h1,
    .mf-admin-header h1,
    .mf-customer-topbar h1 {
        font-size: clamp(1.65rem, 8vw, 2.15rem);
        line-height: 1.05;
    }

    .mf-customer-topbar-actions {
        display: grid;
        gap: .65rem;
        grid-template-columns: minmax(0, 1fr) minmax(0, auto);
        width: 100%;
    }

    .mf-customer-topbar-actions .mf-inline-field {
        min-width: 0;
    }

    .mf-customer-topbar-actions .mf-button,
    .mf-admin-topbar-actions .mf-button,
    .mf-admin-header-actions .mf-button {
        min-height: 2.35rem;
    }

    .mf-view-switcher {
        display: flex;
        gap: .45rem;
        grid-template-columns: none;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: .1rem;
        scrollbar-width: thin;
    }

    .mf-view-switcher a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .mf-latest-meeting-update {
        align-items: flex-start;
        flex-direction: column;
    }

    .mf-protected-view-menu {
        justify-self: start;
    }

    .mf-protected-view-menu .mf-view-switcher {
        left: 0;
        min-width: min(20rem, calc(100vw - 2rem));
        right: auto;
    }

    .mf-connector-preflight-table,
    .mf-connector-preflight-table tbody,
    .mf-connector-preflight-table tr,
    .mf-connector-preflight-table td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .mf-connector-preflight-table thead {
        display: none;
    }

    .mf-connector-preflight-table tr {
        background: var(--mf-card);
        border: 1px solid var(--mf-border);
        border-radius: 10px;
        margin-bottom: .8rem;
        padding: .75rem;
    }

    .mf-connector-preflight-table td {
        border-bottom: 0;
        display: grid;
        gap: .25rem;
        padding: .35rem 0;
    }

    .mf-connector-preflight-table td::before {
        color: var(--mf-muted);
        content: attr(data-label);
        font-size: .72rem;
        font-weight: 850;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    .mf-provider-readiness-table,
    .mf-provider-readiness-table tbody,
    .mf-provider-readiness-table tr,
    .mf-provider-readiness-table td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .mf-provider-readiness-table thead {
        display: none;
    }

    .mf-provider-readiness-table tr {
        background: var(--mf-card);
        border: 1px solid var(--mf-border);
        border-radius: 10px;
        margin-bottom: .8rem;
        padding: .8rem;
    }

    .mf-provider-readiness-table td {
        border-bottom: 0;
        padding: .3rem 0;
    }

    .mf-provider-readiness-table td:nth-child(1)::before {
        content: "Gate";
    }

    .mf-provider-readiness-table td:nth-child(2)::before {
        content: "Status";
    }

    .mf-provider-readiness-table td:nth-child(3)::before {
        content: "Evidence";
    }

    .mf-provider-readiness-table td::before {
        color: var(--mf-muted);
        display: block;
        font-size: .72rem;
        font-weight: 850;
        letter-spacing: .05em;
        margin-bottom: .2rem;
        text-transform: uppercase;
    }

    .mf-provider-readiness-table .mf-setup-command {
        font-size: .72rem;
    }
}

/* Custom Meeting Tabs and Buttons (Plaud-like UI redesign) */
.mf-selected-meeting-tabs {
    align-items: center;
    border-bottom: 2px solid var(--mf-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 1rem;
    padding-bottom: 2px;
}

.mf-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--mf-muted);
    cursor: pointer;
    font-family: sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: -2px;
    padding: 0.6rem 1rem;
    position: relative;
    transition: all 0.2s ease;
}

.mf-tab-btn:hover {
    color: var(--mf-navy);
}

.mf-tab-btn.active {
    border-bottom-color: var(--mf-blue);
    color: var(--mf-blue);
}

.mf-tab-badge {
    background: var(--mf-blue-soft);
    border-radius: 999px;
    color: var(--mf-blue);
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.15rem 0.4rem;
    margin-left: 0.25rem;
}

.mf-tab-badge.warning {
    background: #fef3c7;
    color: #d97706;
}

.mf-tab-content-panel {
    display: block;
}

/* Margin Utility Classes */
.mf-margin-bottom {
    margin-bottom: 1rem;
}

.mf-margin-top {
    margin-top: 1rem;
}

/* Visual Flow Diagram Styles */
.visual-flow-container {
    position: relative;
    width: 900px;
    height: 380px;
    background: none;
    border: none;
    box-shadow: none;
    overflow: visible;
    margin: 2rem auto;
    z-index: 5;
}

/* Glassmorphic card container enclosing the Hub, Branches, and Destinations */
.visual-flow-container::after {
    content: "";
    position: absolute;
    left: 300px;
    top: 15px;
    right: 15px;
    bottom: 20px;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 60%),
                rgba(8, 17, 32, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 1;
    pointer-events: none;
}

/* Teams Mock Call Window (positioned to the left of the glass card) */
.teams-mock-window {
    position: absolute;
    left: 20px;
    top: 110px;
    width: 220px;
    height: 160px;
    background: #111214;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.teams-mock-window:hover {
    transform: scale(1.03);
    border-color: rgba(59, 130, 246, 0.4);
}

.teams-mock-header {
    background: #18191b;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.teams-mock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.teams-mock-dot.red { background: #ff5f56; }
.teams-mock-dot.yellow { background: #ffbd2e; }
.teams-mock-dot.green { background: #27c93f; }

.teams-mock-title {
    font-size: 0.55rem;
    color: #94a3b8;
    margin-left: 6px;
    font-weight: 500;
}

.teams-mock-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.teams-mock-sidebar {
    width: 20px;
    background: #18191b;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
}

.teams-sidebar-icon {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.teams-sidebar-icon.active {
    background: #5c5fc8;
}

.teams-mock-content {
    flex: 1;
    background: #1f2023;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.teams-video-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.teams-brand-logo {
    background: radial-gradient(circle, rgba(92, 95, 200, 0.2) 0%, rgba(92, 95, 200, 0) 70%);
    border: 2px solid rgba(92, 95, 200, 0.4);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(92, 95, 200, 0.3);
    animation: teams-pulse 2s infinite alternate;
}
@keyframes teams-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(92, 95, 200, 0.3);
        border-color: rgba(92, 95, 200, 0.4);
    }
    100% {
        transform: scale(1.08);
        box-shadow: 0 0 25px rgba(92, 95, 200, 0.6);
        border-color: rgba(92, 95, 200, 0.8);
    }
}

.teams-logo-person {
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    background: #5c5fc8;
    border-radius: 50%;
    z-index: 1;
}

.teams-logo-person::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 2px;
    width: 16px;
    height: 8px;
    background: #5c5fc8;
    border-radius: 8px 8px 0 0;
}

.teams-logo-tile {
    position: absolute;
    right: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: #7f85f5;
    border-radius: 4px;
    color: white;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.teams-controls-bar {
    position: absolute;
    bottom: 6px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 999px;
    padding: 3px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.teams-btn {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-block;
}

.teams-btn.icon-hangup {
    background: #e81123;
}

.label-under-teams {
    position: absolute;
    left: 20px;
    top: 285px;
    width: 220px;
    text-align: center;
    font-size: 0.72rem;
    color: var(--mf-muted);
}

/* Central Hub (ManFriday Intelligence) */
.flow-hub-circle {
    position: absolute;
    left: 325px;
    top: 160px;
    width: 60px;
    height: 60px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.flow-hub-inner {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #e0f2fe 0%, #38bdf8 45%, #0284c7 90%, #0369a1 100%);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.9), inset 0 0 10px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.flow-hub-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(56, 189, 248, 0.6);
    animation: hub-pulse-glow 2s infinite linear;
}

@keyframes hub-pulse-glow {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1.4) rotate(360deg);
        opacity: 0;
    }
}

.flow-hub-icon {
    width: 16px;
    height: 16px;
    background: #ffffff;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: rotate-hub-icon 10s infinite linear;
}

@keyframes rotate-hub-icon {
    to { transform: rotate(360deg); }
}

.label-under-hub {
    position: absolute;
    left: 300px;
    top: 230px;
    width: 110px;
    text-align: center;
    font-size: 0.72rem;
    color: #e2e8f0;
    line-height: 1.25;
    font-weight: 500;
    z-index: 2;
}

/* Branching Nodes (Middle pills) */
.flow-branches {
    display: contents;
}

.branch-pill {
    position: absolute;
    left: 480px;
    width: 140px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 999px;
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 500;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
    z-index: 2;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.branch-pill:hover {
    transform: scale(1.04);
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.branch-pill:nth-child(1) { top: 45px; }
.branch-pill:nth-child(2) { top: 105px; }
.branch-pill:nth-child(3) { top: 165px; }
.branch-pill:nth-child(4) { top: 225px; }
.branch-pill:nth-child(5) { top: 285px; }

/* Destination Outputs (Right square cards) */
.flow-destinations-vertical {
    display: contents;
}

.dest-card-square {
    position: absolute;
    left: 720px;
    width: 130px;
    height: 95px;
    background: rgba(13, 27, 48, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 2;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.dest-card-square:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(13, 27, 48, 0.85);
}

.dest-card-square strong {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

.dest-card-square:nth-child(1) { top: 35px; }
.dest-card-square:nth-child(2) { top: 142px; }
.dest-card-square:nth-child(3) { top: 250px; }

/* Microsoft Logos in CSS */
.logo-dynamics {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.d365-poly {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #0078d4, #5024b3);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    box-shadow: 0 0 10px rgba(80, 36, 179, 0.4);
}

.logo-todo {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.todo-check {
    width: 20px;
    height: 20px;
    background: #2563eb;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.todo-check::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.logo-outlook {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outlook-letter {
    width: 20px;
    height: 20px;
    background: #0078d4;
    border-radius: 4px;
    color: white;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 120, 212, 0.4);
    position: relative;
}

.outlook-letter::before {
    content: "";
    position: absolute;
    right: -2px;
    bottom: 2px;
    width: 10px;
    height: 10px;
    background: #106ebe;
    border-radius: 2px;
    z-index: -1;
}

/* Curved flow connector lines */
.flow-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.flow-path {
    stroke: rgba(59, 130, 246, 0.35);
    stroke-width: 2px;
    fill: none;
    filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.3));
    stroke-dasharray: 6 6;
    animation: flow-dash 1.5s linear infinite;
}

.flow-path.path-1 {
    stroke: rgba(14, 165, 233, 0.65);
    stroke-width: 2.5px;
    filter: drop-shadow(0 0 5px rgba(14, 165, 233, 0.5));
    stroke-dasharray: 6 6;
    animation: flow-dash 1.5s linear infinite;
}

.flow-path.path-branch {
    stroke: rgba(59, 130, 246, 0.55);
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.4));
    stroke-dasharray: 6 6;
    animation: flow-dash 1.5s linear infinite;
}

.flow-path.path-dest {
    stroke: rgba(59, 130, 246, 0.55);
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.4));
    stroke-dasharray: 6 6;
    animation: flow-dash 1.5s linear infinite;
}

@keyframes flow-dash {
    to {
        stroke-dashoffset: -20;
    }
}

/* Custom Overrides for Landing Page UI */
.mf-hero-actions .mf-button-primary {
    background: rgba(8, 17, 32, 0.65) !important;
    border: 1px solid rgba(59, 130, 246, 0.75) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    padding: 0.75rem 1.75rem !important;
    border-radius: 999px !important;
    transition: all 0.25s ease !important;
}

.mf-hero-actions .mf-button-primary:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(59, 130, 246, 1) !important;
    transform: translateY(-2px);
}

.mf-hero-secondary-link {
    background: none !important;
    border: none !important;
    color: #60a5fa !important;
    text-decoration: underline !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0 1rem !important;
    box-shadow: none !important;
    transition: color 0.2s ease !important;
}

.mf-hero-secondary-link:hover {
    color: #93c5fd !important;
}

.mf-site-header .mf-button-primary {
    background: rgba(59, 130, 246, 0.15) !important;
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3) !important;
    padding: 0.5rem 1.25rem !important;
    min-height: auto !important;
    font-size: 0.88rem !important;
    border-radius: 999px !important;
    transition: all 0.2s ease !important;
}

.mf-site-header .mf-button-primary:hover {
    background: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6) !important;
    transform: translateY(-1px);
}

/* Responsiveness scaling for the wider 900px diagram container */
.visual-flow-container {
    transform-origin: center center;
    transition: transform 0.3s ease;
}

@media (max-width: 1100px) {
    .visual-flow-container {
        transform: scale(0.9);
        margin: 1.5rem auto -20px;
    }
}

@media (max-width: 950px) {
    .visual-flow-container {
        transform: scale(0.8);
        margin: 1rem auto -40px;
    }
}

@media (max-width: 800px) {
    .visual-flow-container {
        transform: scale(0.7);
        margin: 0.5rem auto -60px;
    }
}

@media (max-width: 680px) {
    .visual-flow-container {
        transform: scale(0.6);
        margin: -20px auto -90px;
    }
}

@media (max-width: 520px) {
    .visual-flow-container {
        transform: scale(0.5);
        margin: -50px auto -110px;
    }
}

@media (max-width: 420px) {
    .visual-flow-container {
        transform: scale(0.4);
        margin: -70px auto -130px;
    }
}

/* Interactivity / Hover Tracing Styles */
.visual-flow-container.has-hover .teams-mock-window,
.visual-flow-container.has-hover .flow-hub-circle,
.visual-flow-container.has-hover .branch-pill,
.visual-flow-container.has-hover .dest-card-square,
.visual-flow-container.has-hover .flow-path,
.visual-flow-container.has-hover circle {
    opacity: 0.18;
    filter: saturate(40%);
    transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

/* Active Highlight States */
.visual-flow-container .teams-mock-window.active-highlight,
.visual-flow-container .flow-hub-circle.active-highlight,
.visual-flow-container .branch-pill.active-highlight,
.visual-flow-container .dest-card-square.active-highlight {
    opacity: 1 !important;
    filter: none !important;
}

.visual-flow-container .teams-mock-window.active-highlight {
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25);
}

.visual-flow-container .flow-hub-circle.active-highlight {
    transform: scale(1.08);
}

.visual-flow-container .dest-card-square.active-highlight {
    transform: translateY(-4px) scale(1.04);
    border-color: #3b82f6 !important;
    background: rgba(13, 27, 48, 0.95);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.35);
}
.mf-theme-light .visual-flow-container .dest-card-square.active-highlight {
    background: #ffffff;
    border-color: #2563eb !important;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.2);
}

.visual-flow-container .branch-pill.active-highlight {
    transform: scale(1.04);
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.85);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}
.mf-theme-light .visual-flow-container .branch-pill.active-highlight {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.75);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.visual-flow-container .flow-path.active-highlight {
    opacity: 1 !important;
    filter: none !important;
    stroke: #3b82f6 !important;
    stroke-width: 3px !important;
    stroke-dasharray: 8 4;
    animation: flow-dash-active 0.8s linear infinite !important;
}

.visual-flow-container .flow-path.path-1.active-highlight {
    stroke: #0ea5e9 !important;
    stroke-width: 3.5px !important;
}

@keyframes flow-dash-active {
    to {
        stroke-dashoffset: -20;
    }
}

.visual-flow-container circle.active-highlight {
    opacity: 1 !important;
    filter: none !important;
    fill: #3b82f6 !important;
    r: 5px !important;
}

/* Redesigned Login Page Styles */
.mf-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    min-height: calc(100vh - 80px);
    background: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.15) 0%, transparent 60%),
                radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 20px 20px,
                #050b14;
    transition: background 0.3s ease;
}

.mf-login-card {
    background: rgba(8, 17, 32, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.mf-login-card:hover {
    transform: translateY(-2px);
}

.mf-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.mf-login-brand img {
    height: 36px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mf-login-brand span {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mf-navy);
    letter-spacing: -0.3px;
}

.mf-login-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--mf-navy);
    margin: 0;
    letter-spacing: -0.5px;
}

.mf-login-subtitle {
    font-size: 0.9rem;
    color: var(--mf-muted);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.mf-login-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.mf-login-actions .mf-button {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mf-login-btn-primary {
    background: var(--accent);
    color: #ffffff;
    border: none;
}

.mf-login-btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.mf-session-status {
    font-size: 0.78rem;
    color: var(--mf-muted);
    background: var(--mf-blue-soft);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    margin: 0;
    text-align: center;
}

.mf-login-footer {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--mf-muted);
}

.mf-login-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.mf-login-footer-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.mf-login-footer-links a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Sleek Grayscale Logo Strip */
.mf-logo-strip {
    text-align: center;
    padding: 2.5rem 1rem;
    background: rgba(8, 17, 32, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mf-logo-strip-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.mf-logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem 4rem;
}

.mf-logo-grid span {
    font-size: 1.15rem;
    font-weight: 700;
    color: #94a3b8; /* slate-400 */
    letter-spacing: -0.5px;
    opacity: 0.75;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.mf-logo-grid span:hover {
    opacity: 1;
    color: var(--mf-navy);
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    outline: none;
    margin-right: 0.5rem;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.mf-protected-app:not(.mf-theme-light) .theme-toggle-btn,
.mf-protected-admin:not(.mf-theme-light) .theme-toggle-btn {
    background: #0f172a;
    border-color: rgba(191, 219, 254, 0.42);
    color: #f8fafc;
}

.mf-protected-app:not(.mf-theme-light) .theme-toggle-btn:hover,
.mf-protected-admin:not(.mf-theme-light) .theme-toggle-btn:hover,
.mf-protected-app:not(.mf-theme-light) .theme-toggle-btn:focus-visible,
.mf-protected-admin:not(.mf-theme-light) .theme-toggle-btn:focus-visible {
    background: #1e293b;
    border-color: rgba(191, 219, 254, 0.7);
}

.theme-toggle-btn .sun-icon {
    display: block;
}
.theme-toggle-btn .moon-icon {
    display: none;
}

/* Welcome Alert Styles */
.mf-admin-welcome-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--mf-slate);
    box-shadow: var(--mf-shadow);
}
.mf-protected-app:not(.mf-theme-light) .mf-admin-welcome-alert,
.mf-protected-admin:not(.mf-theme-light) .mf-admin-welcome-alert {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
    color: #f3f4f6;
}
.mf-admin-welcome-alert .alert-content {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.mf-admin-welcome-alert .alert-icon {
    font-size: 1.25rem;
    line-height: 1;
}
.mf-admin-welcome-alert strong {
    display: block;
    font-size: 0.9rem;
    color: var(--mf-navy);
    margin-bottom: 0.15rem;
}
.mf-admin-welcome-alert p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--mf-muted);
}
.mf-admin-welcome-alert .alert-dismiss {
    background: none;
    border: none;
    color: var(--mf-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.5rem;
    transition: color 0.2s ease;
}
.mf-admin-welcome-alert .alert-dismiss:hover {
    color: var(--mf-navy);
}

/* Light Theme Variable and Class Overrides */
.mf-protected-app.mf-theme-light,
.mf-protected-admin.mf-theme-light {
    --mf-navy: #0a0f1d;
    --mf-navy-2: #0f172a;
    --mf-slate: #334155;
    --mf-muted: #64748b;
    --mf-border: #e2e8f0;
    --mf-bg: #f8fafc;
    --mf-card: #ffffff;
    --mf-sidebar-bg: #ffffff;
    --mf-blue-soft: #eaf2ff;
    --mf-field-bg: #ffffff;
    --mf-field-text: #0b1f3a;
    --mf-field-placeholder: #64748b;
    --mf-field-border: #dbe3ef;
    --mf-shadow: 0 10px 30px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.02);
}

.mf-protected-app input:not([type="checkbox"]):not([type="radio"]),
.mf-protected-app select,
.mf-protected-app textarea,
.mf-protected-admin input:not([type="checkbox"]):not([type="radio"]),
.mf-protected-admin select,
.mf-protected-admin textarea {
    background: var(--mf-field-bg);
    border-color: var(--mf-field-border);
    color: var(--mf-field-text);
}

.mf-protected-app input::placeholder,
.mf-protected-app textarea::placeholder,
.mf-protected-admin input::placeholder,
.mf-protected-admin textarea::placeholder {
    color: var(--mf-field-placeholder);
}

.mf-protected-app:not(.mf-theme-light) .mf-button-primary,
.mf-protected-admin:not(.mf-theme-light) .mf-button-primary {
    background: var(--mf-blue);
    border: 1px solid rgba(96, 165, 250, 0.45);
    color: #ffffff;
}

.mf-protected-app:not(.mf-theme-light) .mf-button-secondary,
.mf-protected-admin:not(.mf-theme-light) .mf-button-secondary,
.mf-protected-app:not(.mf-theme-light) .mf-link-button,
.mf-protected-admin:not(.mf-theme-light) .mf-link-button {
    background: #0f172a;
    border: 1px solid var(--mf-field-border);
    color: var(--mf-slate);
}

.mf-protected-app:not(.mf-theme-light) .mf-button-primary:hover,
.mf-protected-admin:not(.mf-theme-light) .mf-button-primary:hover {
    background: #1d4ed8;
}

.mf-protected-app:not(.mf-theme-light) .mf-button-secondary:hover,
.mf-protected-admin:not(.mf-theme-light) .mf-button-secondary:hover,
.mf-protected-app:not(.mf-theme-light) .mf-link-button:hover,
.mf-protected-admin:not(.mf-theme-light) .mf-link-button:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(96, 165, 250, 0.45);
    color: #ffffff;
}

.mf-theme-light .mf-admin-sidebar {
    border-right: 1px solid var(--mf-border);
}
.mf-theme-light .mf-admin-sidebar nav a {
    color: var(--mf-slate);
}
.mf-theme-light .mf-admin-sidebar nav a.active,
.mf-theme-light .mf-admin-sidebar nav a:hover {
    background: var(--mf-blue-soft);
    color: var(--mf-blue);
}
.mf-theme-light .mf-admin-nav-section > span {
    color: var(--mf-muted);
}
.mf-theme-light .mf-admin-brand {
    color: var(--mf-navy);
}

.mf-public.mf-theme-light {
    --mf-navy: #0f172a; /* Dark slate for headings */
    --mf-navy-2: #1e293b;
    --mf-blue: #2563eb;
    --mf-blue-soft: rgba(37, 99, 235, 0.08);
    --mf-slate: #334155; /* Slate-700 body text */
    --mf-muted: #64748b; /* Slate-500 muted text */
    --mf-border: rgba(15, 23, 42, 0.08);
    --mf-bg: #f8fafc;
    --mf-card: rgba(255, 255, 255, 0.85);
    --mf-shadow: 0 10px 30px rgba(15, 32, 58, 0.04), 0 2px 8px rgba(15, 32, 58, 0.02);
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.04) 0%, transparent 50%),
                linear-gradient(135deg, #f8fafc 0%, #eef2f6 50%, #f1f5f9 100%);
    color: var(--mf-slate);
}

/* Header in Light Mode */
.mf-theme-light .mf-site-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.mf-theme-light .mf-brand strong {
    color: #0f172a;
}

/* Nav links in Light Mode */
.mf-theme-light .mf-public-nav a {
    color: #475569;
}

.mf-theme-light .mf-public-nav a:hover {
    color: #0f172a;
}

/* Sections in Light Mode */
.mf-theme-light .mf-section-soft {
    background: #ffffff;
}

.mf-theme-light .mf-sample {
    background: #ffffff;
}

.mf-theme-light .mf-logo-strip {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.mf-theme-light .mf-logo-grid span {
    color: #64748b;
}

.mf-theme-light .mf-logo-grid span:hover {
    color: #0f172a;
}

/* Toggle Button in Light Mode */
.mf-theme-light .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

.mf-theme-light .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.mf-theme-light .theme-toggle-btn .sun-icon {
    display: none;
}
.mf-theme-light .theme-toggle-btn .moon-icon {
    display: block;
}

/* Buttons in Light Mode */
.mf-theme-light .mf-button-secondary {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
}

.mf-theme-light .mf-button-secondary:hover {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.2) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
}

.mf-theme-light .mf-site-header .mf-button-primary {
    background: #2563eb !important;
    color: #ffffff !important;
    border: 1px solid #2563eb !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}

.mf-theme-light .mf-site-header .mf-button-primary:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45) !important;
}

.mf-theme-light .mf-hero-actions .mf-button-primary {
    background: #2563eb !important;
    color: #ffffff !important;
    border: 1px solid #2563eb !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

.mf-theme-light .mf-hero-actions .mf-button-primary:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4) !important;
}

.mf-theme-light .mf-hero-secondary-link {
    color: #2563eb !important;
}

.mf-theme-light .mf-hero-secondary-link:hover {
    color: #1d4ed8 !important;
}

.mf-theme-light .mf-final-cta {
    background: linear-gradient(135deg, #0a0f1d 0%, #0f172a 100%) !important;
    color: #ffffff !important;
}

.mf-theme-light .mf-final-cta .mf-button-primary {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* Visual Flow Diagram in Light Mode */
.mf-theme-light .visual-flow-container::after {
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 60%),
                rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 45px rgba(15, 32, 58, 0.06), 0 2px 8px rgba(15, 32, 58, 0.03);
}

.mf-theme-light .teams-mock-window {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 32, 58, 0.08);
}

.mf-theme-light .teams-mock-header {
    background: #f1f5f9;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.mf-theme-light .teams-mock-title {
    color: #475569;
}

.mf-theme-light .teams-mock-body {
    background: #f8fafc;
}

.mf-theme-light .teams-mock-sidebar {
    background: #f1f5f9;
    border-right: 1px solid rgba(15, 23, 42, 0.05);
}

.mf-theme-light .teams-sidebar-icon {
    background: rgba(15, 23, 42, 0.15);
}

.mf-theme-light .teams-mock-content {
    background: #f8fafc;
}

.mf-theme-light .teams-logo-person {
    background: #5c5fc8;
}

.mf-theme-light .teams-logo-tile {
    background: #7f85f5;
    color: white;
}

.mf-theme-light .teams-controls-bar {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.mf-theme-light .teams-btn {
    background: rgba(15, 23, 42, 0.4);
}

.mf-theme-light .label-under-teams,
.mf-theme-light .label-under-hub {
    color: #475569;
}

.mf-theme-light .flow-hub-inner {
    background: radial-gradient(circle, #ffffff 0%, #60a5fa 50%, #2563eb 90%, #1d4ed8 100%);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.8);
}

.mf-theme-light .flow-hub-pulse {
    border-color: rgba(37, 99, 235, 0.4);
}

.mf-theme-light .branch-pill {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.25);
    color: #1e293b;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.05);
}

.mf-theme-light .branch-pill:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.mf-theme-light .dest-card-square {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 25px rgba(15, 32, 58, 0.05);
}

.mf-theme-light .dest-card-square:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: #ffffff;
}

.mf-theme-light .dest-card-square strong {
    color: #475569;
}

.mf-theme-light .flow-path {
    stroke: rgba(37, 99, 235, 0.15);
}

.mf-theme-light .flow-path.path-1 {
    stroke: rgba(14, 165, 233, 0.45);
}

.mf-theme-light .flow-path.path-branch,
.mf-theme-light .flow-path.path-dest {
    stroke: rgba(37, 99, 235, 0.35);
}

/* Sample Output Card in Light Mode */
.mf-theme-light .mf-output-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 15px 35px rgba(15, 32, 58, 0.05);
}

.mf-theme-light .mf-destination-preview span {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.15);
    color: #2563eb;
}

/* FAQ Details in Light Mode */
.mf-theme-light .mf-faq details {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
}

/* Placeholder and Login Pages in Light Mode */
.mf-theme-light .mf-placeholder-page {
    background: radial-gradient(circle, rgba(15, 23, 42, 0.03) 1px, transparent 1px) 0 0 / 20px 20px,
                linear-gradient(180deg, #f8fafc 0%, #eaf2ff 100%) !important;
}

.mf-theme-light .mf-login-page {
    background: radial-gradient(circle, #cbd5e1 1px, transparent 1px) 0 0 / 20px 20px, #f8fafc !important;
}

.mf-theme-light .mf-login-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 10px 30px rgba(15, 32, 58, 0.04), 0 2px 8px rgba(15, 32, 58, 0.02) !important;
}

/* Onboarding Guided Setup Tracker */
.mf-onboarding-panel {
    background: var(--mf-card) !important;
    border: 1px solid var(--mf-border) !important;
    border-radius: var(--mf-radius) !important;
    margin-bottom: 2rem;
    box-shadow: var(--mf-shadow);
    padding: 2.25rem !important;
}

.mf-onboarding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.mf-onboarding-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mf-theme-light .mf-onboarding-item {
    background: rgba(15, 23, 42, 0.02);
    border-color: rgba(15, 23, 42, 0.06);
}

.mf-onboarding-item.completed {
    border-color: rgba(16, 185, 129, 0.3) !important;
    background: rgba(16, 185, 129, 0.04) !important;
}

.mf-onboarding-item.in-progress {
    border-color: rgba(245, 158, 11, 0.3) !important;
    background: rgba(245, 158, 11, 0.04) !important;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.mf-theme-light .step-num {
    background: rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

.mf-onboarding-item.completed .step-num {
    background: #10b981 !important;
    color: #ffffff !important;
}

.mf-onboarding-item.in-progress .step-num {
    background: #f59e0b !important;
    color: #ffffff !important;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    font-size: 0.9rem;
    color: var(--mf-navy);
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.78rem;
    color: var(--mf-muted);
    line-height: 1.45;
    margin: 0 0 0.5rem;
}

.step-action-link {
    font-size: 0.78rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.mf-theme-light .step-action-link {
    color: #2563eb;
}

.step-action-link:hover {
    text-decoration: underline;
}

.step-status-chip {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
}

.status-pending {
    background: rgba(255, 255, 255, 0.08);
    color: var(--mf-muted);
}

.mf-theme-light .status-pending {
    background: rgba(0, 0, 0, 0.06);
}

.status-completed {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
}

.status-progress {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
}

/* Plaud-Style Split Workspace Layout */
.mf-split-workspace {
    display: grid;
    grid-template-columns: minmax(19rem, .9fr) minmax(22rem, 1.05fr) minmax(17rem, .78fr);
    gap: 1rem;
    align-items: stretch;
    background: var(--mf-card);
    border-radius: 12px;
    border: 1px solid var(--mf-border);
    padding: 1rem;
    margin-top: 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
    min-height: 560px;
    position: relative;
}

@media (max-width: 1180px) {
    .mf-split-workspace {
        grid-template-columns: 1fr;
    }
}

.mf-workspace-left {
    border-right: 1px solid var(--mf-border);
    display: flex;
    flex-direction: column;
    max-height: 760px;
    min-width: 0;
    padding-right: 1rem;
}

@media (max-width: 1180px) {
    .mf-workspace-left {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--mf-border);
        padding-bottom: 1rem;
    }
}

.mf-workspace-middle,
.mf-workspace-right {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    max-height: 760px;
    min-width: 0;
    overflow-y: auto;
    padding-right: .35rem;
}

.mf-workspace-middle {
    border-right: 1px solid var(--mf-border);
    padding-right: 1rem;
}

@media (max-width: 1180px) {
    .mf-workspace-middle {
        border-right: none;
        border-bottom: 1px solid var(--mf-border);
        padding-bottom: 1rem;
        padding-right: 0;
    }
}

.mf-workspace-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-bottom: .65rem;
    border-bottom: 1px solid var(--mf-border);
    padding-bottom: 0.5rem;
}

.mf-workspace-header-actions h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--mf-navy);
}

.mf-workspace-header-actions p {
    color: var(--mf-muted);
    font-size: .78rem;
    line-height: 1.35;
    margin: .2rem 0 0;
}

.mf-transcript-source-badge {
    background: var(--mf-blue-soft);
    border-radius: 999px;
    color: var(--mf-blue);
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 900;
    padding: .32rem .55rem;
}

.mf-transcript-workbench {
    gap: .72rem;
}

.mf-transcript-fact-grid-compact {
    gap: .45rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mf-transcript-fact-grid-compact article {
    padding: .55rem;
}

.mf-transcript-toolbar {
    align-items: end;
    display: grid;
    gap: .55rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.mf-transcript-toolbar label {
    color: var(--mf-slate);
    display: grid;
    font-size: .76rem;
    font-weight: 850;
    gap: .25rem;
}

.mf-transcript-toolbar input {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    color: var(--mf-slate);
    font-size: .84rem;
    padding: .52rem .65rem;
    width: 100%;
}

.mf-transcript-toolbar small {
    color: var(--mf-muted);
    font-size: .76rem;
    font-weight: 800;
    grid-column: 1 / -1;
}

.mf-transcript-edit-field-main {
    flex: 1;
    min-height: 0;
}

.mf-transcript-edit-field-main textarea {
    background: var(--mf-field-bg);
    border-color: var(--mf-field-border);
    color: var(--mf-field-text);
    caret-color: var(--mf-blue);
    flex: 1;
    min-height: 22rem;
}

.mf-transcript-edit-actions-compact {
    align-items: start;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
}

.mf-transcript-edit-actions-compact .mf-transcript-edit-meter {
    grid-column: 1 / -1;
}

.mf-source-transcript-detail-compact {
    background: var(--mf-bg);
}

.mf-source-transcript-detail-compact p,
.mf-source-transcript-detail-compact small {
    color: var(--mf-muted);
    font-size: .78rem;
    line-height: 1.4;
}

.mf-transcript-save-scope {
    color: var(--mf-muted);
    font-size: .76rem;
    font-weight: 800;
}

.mf-small-action[disabled],
.mf-small-action[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .48;
}

/* Speaker Bubbles Styles */
.mf-transcript-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.5rem;
    margin-top: 1rem;
}

.mf-transcript-bubble {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.mf-bubble-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mf-blue), var(--mf-blue-soft));
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mf-bubble-body {
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    position: relative;
    max-width: 85%;
}

.mf-theme-light .mf-bubble-body {
    background: #f8fafc;
}

.mf-bubble-speaker {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--mf-navy);
    margin-bottom: 0.25rem;
}

.mf-bubble-text {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--mf-slate);
    margin: 0;
}

/* Glassmorphic outcome cards */
.mf-outcome-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mf-theme-light .mf-outcome-card {
    background: rgba(255, 255, 255, 0.85);
}

.mf-protected-app:not(.mf-theme-light) .mf-outcome-card,
.mf-protected-admin:not(.mf-theme-light) .mf-outcome-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mf-outcome-card:hover {
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.05);
}

.mf-outcome-card h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--mf-navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--mf-border);
    padding-bottom: 0.5rem;
}

/* Amber gap card */
.mf-outcome-card.mf-gap-card {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.03);
}

.mf-protected-app:not(.mf-theme-light) .mf-outcome-card.mf-gap-card,
.mf-protected-admin:not(.mf-theme-light) .mf-outcome-card.mf-gap-card {
    background: rgba(245, 158, 11, 0.02);
}

/* Outlook draft email composer card */
.mf-email-composer-card {
    border-color: rgba(16, 110, 190, 0.25);
}

.mf-email-header-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--mf-border);
    padding-bottom: 0.75rem;
}

.mf-email-header-row {
    display: flex;
    gap: 0.5rem;
}

.mf-email-header-row span {
    color: var(--mf-muted);
    min-width: 3.5rem;
}

.mf-email-header-row strong {
    color: var(--mf-navy);
}

.mf-email-body-preview {
    font-family: inherit;
    font-size: 0.88rem;
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    padding: 0.75rem;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    color: var(--mf-slate);
}

/* Interactive tasks checklist styles */
.mf-workspace-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mf-workspace-task-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    position: relative;
}

.mf-workspace-task-item.completed {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.02);
}

.mf-workspace-task-item.needs-edit {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.02);
}

.mf-task-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    cursor: pointer;
}

.mf-task-text-wrap {
    flex: 1;
}

.mf-task-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--mf-navy);
    margin: 0;
}

.mf-task-meta-line {
    font-size: 0.78rem;
    color: var(--mf-muted);
    margin-top: 0.2rem;
}

/* Sticky Footer action bar */
.mf-workspace-sticky-footer {
    grid-column: 1 / -1;
    position: sticky;
    bottom: -1rem;
    left: -1rem;
    right: -1rem;
    background: var(--mf-card);
    border-top: 1px solid var(--mf-border);
    padding: 1rem 1.5rem;
    margin: 1.5rem -1.5rem -1.5rem -1.5rem;
    border-radius: 0 0 14px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.04);
}

.mf-protected-app:not(.mf-theme-light) .mf-workspace-sticky-footer,
.mf-protected-admin:not(.mf-theme-light) .mf-workspace-sticky-footer {
    background: #0f172a;
}

.mf-workspace-sticky-footer .mf-button-primary {
    color: #ffffff;
}

.mf-sync-status-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--mf-slate);
}

.mf-sync-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    position: relative;
}

.mf-sync-pulse.syncing {
    background: var(--mf-blue);
    animation: mf-pulse-anim 1.5s infinite;
}

@keyframes mf-pulse-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Admin Portal Warnings and Advisories */
.mf-admin-advisory-box {
    background: rgba(245, 158, 11, 0.08);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: var(--mf-slate);
}
.mf-admin-advisory-box strong {
    display: block;
    color: var(--mf-navy);
    margin-bottom: 0.25rem;
}
.mf-admin-warning-card {
    background: rgba(239, 68, 68, 0.08);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: var(--mf-slate);
}
.mf-admin-warning-card strong {
    display: block;
    color: var(--mf-navy);
    margin-bottom: 0.25rem;
}

/* Homepage Flow Diagram Width Override */
.visual-flow-container {
    width: 100% !important;
    max-width: 900px !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* High-contrast accessible styling for homepage trust strip badges */
.mf-trust-strip span {
    background: rgba(59, 130, 246, 0.12) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: #60a5fa !important; /* Vibrant bright blue in dark theme */
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    display: inline-block;
    transition: all 0.2s ease;
}

.mf-theme-light .mf-trust-strip span {
    background: rgba(37, 99, 235, 0.06) !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    color: #1d4ed8 !important; /* Clear legible navy/blue in light theme */
}

/* Gross Margin Status Tags */
.mf-margin-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    text-align: center;
}
.mf-margin-badge.high {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}
.mf-theme-light .mf-margin-badge.high {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    color: #047857 !important;
}

.mf-margin-badge.warning {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #fbbf24 !important;
}
.mf-theme-light .mf-margin-badge.warning {
    background: rgba(245, 158, 11, 0.08) !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    color: #b45309 !important;
}

.mf-margin-badge.danger {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #f87171 !important;
}
.mf-theme-light .mf-margin-badge.danger {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #b91c1c !important;
}

/* Final protected dark-mode safeguards for controls with older hard-coded light surfaces. */
.mf-protected-app:not(.mf-theme-light) .mf-meeting-selection-bar,
.mf-protected-app:not(.mf-theme-light) .mf-secondary-meeting-action.mf-meeting-command-panel,
.mf-protected-app:not(.mf-theme-light) .mf-meeting-select,
.mf-protected-app:not(.mf-theme-light) .mf-small-action,
.mf-protected-admin:not(.mf-theme-light) .mf-meeting-selection-bar,
.mf-protected-admin:not(.mf-theme-light) .mf-secondary-meeting-action.mf-meeting-command-panel,
.mf-protected-admin:not(.mf-theme-light) .mf-meeting-select,
.mf-protected-admin:not(.mf-theme-light) .mf-small-action {
    background: #0f172a !important;
    border-color: var(--mf-field-border) !important;
    color: var(--mf-slate) !important;
}

.mf-protected-app:not(.mf-theme-light) .mf-meeting-select.is-selected,
.mf-protected-app:not(.mf-theme-light) .mf-meeting-select:has(input:checked),
.mf-protected-admin:not(.mf-theme-light) .mf-meeting-select.is-selected,
.mf-protected-admin:not(.mf-theme-light) .mf-meeting-select:has(input:checked) {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.46) !important;
    color: #ffffff !important;
}

.mf-protected-app:not(.mf-theme-light) .mf-small-action:hover,
.mf-protected-app:not(.mf-theme-light) .mf-small-action:focus-visible,
.mf-protected-admin:not(.mf-theme-light) .mf-small-action:hover,
.mf-protected-admin:not(.mf-theme-light) .mf-small-action:focus-visible {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.5) !important;
    color: #ffffff !important;
}

.mf-protected-app:not(.mf-theme-light) .mf-small-action[disabled],
.mf-protected-app:not(.mf-theme-light) .mf-small-action:disabled,
.mf-protected-app:not(.mf-theme-light) .mf-small-action[aria-disabled="true"],
.mf-protected-admin:not(.mf-theme-light) .mf-small-action[disabled],
.mf-protected-admin:not(.mf-theme-light) .mf-small-action:disabled,
.mf-protected-admin:not(.mf-theme-light) .mf-small-action[aria-disabled="true"] {
    background: rgba(15, 23, 42, 0.7) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    color: #94a3b8 !important;
}

.mf-protected-app:not(.mf-theme-light) .mf-customer-sidebar nav a.active,
.mf-protected-app:not(.mf-theme-light) .mf-customer-sidebar nav a:hover,
.mf-protected-admin:not(.mf-theme-light) .mf-admin-sidebar nav a.active,
.mf-protected-admin:not(.mf-theme-light) .mf-admin-sidebar nav a:hover {
    color: #bfdbfe !important;
}

.mf-protected-app:not(.mf-theme-light) .mf-inline-field span,
.mf-protected-app:not(.mf-theme-light) .mf-inline-field,
.mf-protected-admin:not(.mf-theme-light) .mf-inline-field,
.mf-protected-admin:not(.mf-theme-light) .mf-inline-field span {
    color: #cbd5e1 !important;
}

/* Accepted three-column meeting workbench reference, with transcript editor as the primary left pane. */
.mf-workbench-titlebar {
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .94));
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
    margin-bottom: .75rem;
    padding: .85rem 1rem;
}

.mf-workbench-titlebar h3 {
    font-size: clamp(1.35rem, 1.8vw, 1.85rem);
    letter-spacing: 0;
    margin: .18rem 0;
}

.mf-workbench-titlebar p {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 0;
}

.mf-local-demo-dot {
    background: var(--mf-success);
    border-radius: 999px;
    display: inline-block;
    height: .55rem;
    width: .55rem;
}

.mf-workbench-title-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: flex-end;
}

.mf-split-workspace {
    background: #f8fafc;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
    gap: .55rem;
    grid-template-columns: minmax(19rem, .95fr) minmax(23rem, 1.08fr) minmax(18rem, .82fr);
    grid-template-rows: minmax(0, 1fr) auto;
    height: clamp(38rem, calc(100vh - 8rem), 48rem);
    margin-top: 0;
    min-height: 720px;
    overflow: hidden;
    padding: .55rem;
}

.mf-workspace-left,
.mf-workspace-middle,
.mf-workspace-right {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 6px;
    height: 100%;
    max-height: none;
    min-height: 0;
    overflow: auto;
    padding: .9rem;
}

.mf-workspace-left,
.mf-workspace-middle {
    border-right: 1px solid var(--mf-border);
}

.mf-workspace-header-actions {
    align-items: center;
    margin-bottom: .7rem;
    min-height: 2.35rem;
    padding-bottom: .6rem;
}

.mf-workspace-header-actions h4 {
    color: var(--mf-navy);
    font-size: .95rem;
    font-weight: 900;
}

.mf-workspace-header-actions small {
    color: var(--mf-muted);
    font-size: .78rem;
    font-weight: 750;
}

.mf-transcript-source-badge,
.mf-workbench-subtle-chip {
    align-items: center;
    background: #ecfdf5;
    border: 1px solid rgba(21, 128, 61, .18);
    border-radius: 6px;
    color: var(--mf-success);
    display: inline-flex;
    font-size: .74rem;
    font-weight: 850;
    padding: .28rem .48rem;
}

.mf-transcript-fact-grid-compact {
    display: none;
}

.mf-transcript-toolbar {
    align-items: center;
    display: grid;
    gap: .45rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.mf-transcript-toolbar label span {
    position: absolute;
    transform: translateY(-9999px);
}

.mf-transcript-toolbar input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    min-height: 2.55rem;
}

.mf-transcript-edit-field-main {
    display: grid;
    flex: 1;
}

.mf-transcript-edit-field-main > span {
    color: var(--mf-slate);
    font-size: .78rem;
    font-weight: 850;
    margin-bottom: .35rem;
}

.mf-transcript-edit-field-main textarea {
    background: #ffffff;
    border: 0;
    border-radius: 4px;
    box-shadow: inset -6px 0 0 rgba(148, 163, 184, .18);
    color: #0f172a;
    font-size: .9rem;
    line-height: 1.7;
    min-height: 32rem;
    padding: .55rem .75rem;
}

.mf-transcript-edit-actions-compact {
    align-items: center;
    border-top: 1px solid var(--mf-border);
    display: grid;
    gap: .45rem .7rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding-top: .65rem;
}

.mf-transcript-edit-status,
.mf-transcript-edit-meter,
.mf-transcript-save-scope {
    font-size: .76rem;
}

.mf-source-transcript-detail-compact {
    border-radius: 6px;
}

.mf-outcome-card {
    background: #ffffff;
    backdrop-filter: none;
    border: 1px solid var(--mf-border);
    border-radius: 6px;
    box-shadow: none;
    padding: .8rem;
}

.mf-outcome-card:hover {
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.mf-outcome-card h4 {
    border-bottom: 0;
    color: var(--mf-navy);
    font-size: .98rem;
    font-weight: 900;
    margin-bottom: .6rem;
    padding-bottom: 0;
}

.mf-selected-note-topic {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: .35rem 0;
}

.mf-selected-note-topic + .mf-selected-note-topic {
    border-top: 1px solid var(--mf-border);
}

.mf-workbench-table-wrap {
    border: 1px solid var(--mf-border);
    border-radius: 6px;
    overflow: auto;
}

.mf-workbench-action-table {
    border-collapse: collapse;
    font-size: .84rem;
    min-width: 42rem;
    width: 100%;
}

.mf-workbench-action-table th,
.mf-workbench-action-table td {
    border-bottom: 1px solid var(--mf-border);
    padding: .58rem .62rem;
    text-align: left;
    vertical-align: top;
}

.mf-workbench-action-table th {
    background: #f8fafc;
    color: #334155;
    font-size: .76rem;
    font-weight: 900;
}

.mf-workbench-action-table tr:last-child td {
    border-bottom: 0;
}

.mf-workbench-action-title {
    align-items: flex-start;
    display: grid;
    gap: .2rem .5rem;
    grid-template-columns: auto minmax(0, 1fr);
}

.mf-workbench-action-title strong {
    color: #0f172a;
    font-weight: 750;
    line-height: 1.35;
}

.mf-workbench-action-title small {
    color: var(--mf-muted);
    grid-column: 2;
}

.mf-priority-pill {
    border: 1px solid rgba(100, 116, 139, .22);
    border-radius: 5px;
    color: var(--mf-muted);
    display: inline-flex;
    font-size: .72rem;
    font-weight: 850;
    padding: .2rem .42rem;
}

.mf-priority-high {
    background: #fef2f2;
    border-color: rgba(185, 28, 28, .24);
    color: var(--mf-danger);
}

.mf-priority-medium {
    background: #fff7ed;
    border-color: rgba(180, 83, 9, .28);
    color: var(--mf-warning);
}

.mf-priority-normal {
    background: #eff6ff;
    border-color: rgba(37, 99, 235, .22);
    color: var(--mf-blue);
}

.mf-workbench-list {
    color: var(--mf-slate);
    margin: 0;
    padding-left: 1.15rem;
}

.mf-workbench-list li + li {
    margin-top: .45rem;
}

.mf-crm-note-draft-text,
.mf-email-body-preview {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    color: #334155;
    font-size: .86rem;
    line-height: 1.5;
    max-height: 13rem;
}

.mf-follow-up-card {
    display: grid;
    gap: .5rem;
}

.mf-follow-up-card label {
    align-items: center;
    display: grid;
    gap: .55rem;
    grid-template-columns: minmax(0, 1fr) minmax(9rem, .48fr);
}

.mf-follow-up-card label span {
    color: var(--mf-slate);
    font-size: .84rem;
}

.mf-follow-up-card input {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 5px;
    color: var(--mf-slate);
    padding: .45rem .55rem;
}

.mf-review-queue-list {
    display: grid;
    gap: .75rem;
}

.mf-review-queue-card {
    border: 1px solid var(--mf-border);
    border-radius: 6px;
    display: grid;
    gap: .45rem;
    padding: .85rem;
    position: relative;
}

.mf-review-queue-card.pending {
    border-color: rgba(245, 158, 11, .5);
}

.mf-review-queue-card.approved {
    border-color: rgba(21, 128, 61, .3);
}

.mf-review-queue-card strong {
    color: var(--mf-navy);
    padding-right: 7rem;
}

.mf-review-queue-card .mf-status-chip {
    justify-self: end;
    position: absolute;
    right: .75rem;
    top: .75rem;
}

.mf-review-queue-card p,
.mf-review-queue-card small {
    color: var(--mf-muted);
    margin: 0;
}

.mf-meeting-state-summary-compact,
.mf-selected-actions,
.mf-latest-meeting-update {
    border-radius: 6px;
    box-shadow: none;
}

.mf-selected-actions {
    align-items: start;
    background: #f8fafc;
    border: 1px solid var(--mf-border);
    display: grid;
    gap: .35rem;
    padding: .7rem;
}

.mf-workbench-audit-timeline {
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 6px;
    padding: .85rem;
}

.mf-workbench-audit-timeline h4 {
    color: var(--mf-navy);
    font-size: .98rem;
    margin: 0 0 .7rem;
}

.mf-workbench-audit-timeline ol {
    border-left: 1px solid #cbd5e1;
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0 0 0 .35rem;
    padding: 0 0 0 .9rem;
}

.mf-workbench-audit-timeline li {
    display: grid;
    gap: .55rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .5rem 0 .7rem;
    position: relative;
}

.mf-workbench-audit-timeline li::before {
    background: #94a3b8;
    border: 2px solid #ffffff;
    border-radius: 999px;
    content: "";
    height: .58rem;
    left: -1.22rem;
    position: absolute;
    top: .85rem;
    width: .58rem;
}

.mf-workbench-audit-timeline li[class*="ready"]::before {
    background: var(--mf-success);
}

.mf-workbench-audit-timeline li[class*="review"]::before {
    background: #d97706;
}

.mf-workbench-audit-timeline strong {
    color: var(--mf-navy);
    font-size: .84rem;
}

.mf-workbench-audit-timeline p,
.mf-workbench-audit-timeline time {
    color: var(--mf-muted);
    font-size: .78rem;
    margin: .18rem 0 0;
}

.mf-workspace-sticky-footer {
    border-radius: 0 0 8px 8px;
    bottom: -.55rem;
    grid-column: 1 / -1;
    margin: .55rem -.55rem -.55rem;
    padding: .8rem 1rem;
}

.mf-protected-app:not(.mf-theme-light) .mf-workbench-titlebar,
.mf-protected-app:not(.mf-theme-light) .mf-split-workspace,
.mf-protected-app:not(.mf-theme-light) .mf-workspace-left,
.mf-protected-app:not(.mf-theme-light) .mf-workspace-middle,
.mf-protected-app:not(.mf-theme-light) .mf-workspace-right,
.mf-protected-app:not(.mf-theme-light) .mf-outcome-card,
.mf-protected-app:not(.mf-theme-light) .mf-review-queue-card,
.mf-protected-app:not(.mf-theme-light) .mf-workbench-audit-timeline,
.mf-protected-app:not(.mf-theme-light) .mf-selected-actions,
.mf-protected-admin:not(.mf-theme-light) .mf-workbench-titlebar,
.mf-protected-admin:not(.mf-theme-light) .mf-split-workspace,
.mf-protected-admin:not(.mf-theme-light) .mf-workspace-left,
.mf-protected-admin:not(.mf-theme-light) .mf-workspace-middle,
.mf-protected-admin:not(.mf-theme-light) .mf-workspace-right,
.mf-protected-admin:not(.mf-theme-light) .mf-outcome-card,
.mf-protected-admin:not(.mf-theme-light) .mf-review-queue-card,
.mf-protected-admin:not(.mf-theme-light) .mf-workbench-audit-timeline,
.mf-protected-admin:not(.mf-theme-light) .mf-selected-actions {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, .24) !important;
    color: #e2e8f0 !important;
}

.mf-protected-app:not(.mf-theme-light) .mf-split-workspace,
.mf-protected-admin:not(.mf-theme-light) .mf-split-workspace {
    background: #020617 !important;
}

.mf-protected-app:not(.mf-theme-light) .mf-workbench-titlebar h3,
.mf-protected-app:not(.mf-theme-light) .mf-workspace-header-actions h4,
.mf-protected-app:not(.mf-theme-light) .mf-outcome-card h4,
.mf-protected-app:not(.mf-theme-light) .mf-workbench-action-title strong,
.mf-protected-app:not(.mf-theme-light) .mf-review-queue-card strong,
.mf-protected-app:not(.mf-theme-light) .mf-workbench-audit-timeline h4,
.mf-protected-app:not(.mf-theme-light) .mf-workbench-audit-timeline strong,
.mf-protected-admin:not(.mf-theme-light) .mf-workbench-titlebar h3,
.mf-protected-admin:not(.mf-theme-light) .mf-workspace-header-actions h4,
.mf-protected-admin:not(.mf-theme-light) .mf-outcome-card h4,
.mf-protected-admin:not(.mf-theme-light) .mf-workbench-action-title strong,
.mf-protected-admin:not(.mf-theme-light) .mf-review-queue-card strong,
.mf-protected-admin:not(.mf-theme-light) .mf-workbench-audit-timeline h4,
.mf-protected-admin:not(.mf-theme-light) .mf-workbench-audit-timeline strong {
    color: #f8fafc !important;
}

.mf-protected-app:not(.mf-theme-light) .mf-workbench-titlebar p,
.mf-protected-app:not(.mf-theme-light) .mf-workspace-header-actions small,
.mf-protected-app:not(.mf-theme-light) .mf-workbench-action-table td,
.mf-protected-app:not(.mf-theme-light) .mf-review-queue-card p,
.mf-protected-app:not(.mf-theme-light) .mf-review-queue-card small,
.mf-protected-app:not(.mf-theme-light) .mf-workbench-audit-timeline p,
.mf-protected-app:not(.mf-theme-light) .mf-workbench-audit-timeline time,
.mf-protected-admin:not(.mf-theme-light) .mf-workbench-titlebar p,
.mf-protected-admin:not(.mf-theme-light) .mf-workspace-header-actions small,
.mf-protected-admin:not(.mf-theme-light) .mf-workbench-action-table td,
.mf-protected-admin:not(.mf-theme-light) .mf-review-queue-card p,
.mf-protected-admin:not(.mf-theme-light) .mf-review-queue-card small,
.mf-protected-admin:not(.mf-theme-light) .mf-workbench-audit-timeline p,
.mf-protected-admin:not(.mf-theme-light) .mf-workbench-audit-timeline time {
    color: #cbd5e1 !important;
}

.mf-protected-app:not(.mf-theme-light) .mf-transcript-toolbar input,
.mf-protected-app:not(.mf-theme-light) .mf-transcript-edit-field-main textarea,
.mf-protected-app:not(.mf-theme-light) .mf-crm-note-draft-text,
.mf-protected-app:not(.mf-theme-light) .mf-email-body-preview,
.mf-protected-app:not(.mf-theme-light) .mf-follow-up-card input,
.mf-protected-admin:not(.mf-theme-light) .mf-transcript-toolbar input,
.mf-protected-admin:not(.mf-theme-light) .mf-transcript-edit-field-main textarea,
.mf-protected-admin:not(.mf-theme-light) .mf-crm-note-draft-text,
.mf-protected-admin:not(.mf-theme-light) .mf-email-body-preview,
.mf-protected-admin:not(.mf-theme-light) .mf-follow-up-card input {
    background: #020617 !important;
    border-color: rgba(148, 163, 184, .3) !important;
    color: #f8fafc !important;
}

.mf-protected-app:not(.mf-theme-light) .mf-workbench-action-table th,
.mf-protected-admin:not(.mf-theme-light) .mf-workbench-action-table th {
    background: #111827 !important;
    color: #e2e8f0 !important;
}

@media (max-width: 1180px) {
    .mf-split-workspace {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .mf-workspace-left,
    .mf-workspace-middle,
    .mf-workspace-right {
        height: auto;
        max-height: none;
        min-height: 0;
    }
}

.mf-meeting-list-pane {
    gap: .55rem;
}

.mf-meeting-list-tools {
    margin: .15rem 0;
}

.mf-meeting-list-tools summary {
    cursor: pointer;
    list-style: none;
}

.mf-meeting-list-tools summary::-webkit-details-marker {
    display: none;
}

.mf-meeting-list-tools summary::after {
    color: var(--mf-muted);
    content: "Open";
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.mf-meeting-list-tools[open] summary::after {
    content: "Close";
}

.mf-meeting-card {
    gap: .35rem;
    min-height: 6.15rem;
    padding: .5rem;
}

.mf-meeting-card-body {
    padding: 0;
}

.mf-meeting-card h3 {
    font-size: .84rem;
    margin: 0;
}

.mf-meeting-card p {
    display: -webkit-box;
    font-size: .78rem;
    line-height: 1.35;
    max-height: 1.08rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.mf-meeting-card-meta {
    font-size: .68rem;
    gap: .25rem .55rem;
    margin-top: .25rem;
}

.mf-meeting-card-meta .mf-meeting-meta-item:nth-child(n+3) {
    display: none;
}

.mf-meeting-processing-line {
    display: none;
}

.mf-meeting-card-actions {
    margin-top: .2rem;
}

.mf-meeting-card-actions .mf-small-action {
    font-size: .7rem;
    min-height: 1.75rem;
    padding: .25rem .45rem;
}
