@import url("/orvion-ui/orvion-ui.css");
/* ORVION_ADMIN_TRADE_CANONICAL_UI_FIRST_PAINT_LOAD_V1 */
/* ORVION_CANONICAL_PLUS_JAKARTA_FACE */
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("fonts/orvion-plus-jakarta-sans-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

/* ORVION_ADMIN_FIRST_PAINT_TYPE_AUTHORITY_V1
   Admin shell only. Reuse the canonical Plus Jakarta face and readability tokens
   in the earliest app stylesheet so refresh starts with final type metrics. */
.orvion-vision-shell {
    --orvion-type-body: 14px;
    --orvion-type-compact: 13px;
    --orvion-type-eyebrow: 12px;
    --orvion-type-card-title: 15px;
    font-family: "Plus Jakarta Sans", "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", sans-serif;
}

.orvion-vision-shell button,
.orvion-vision-shell input,
.orvion-vision-shell select,
.orvion-vision-shell textarea {
    font-family: inherit;
}

/* ORVION_ADMIN_TRADE_EARLY_GEOMETRY_BRIDGE_V1
   Exact evidence-proven final Trade wrapper geometry. Duplicated here only so the
   late CSS-isolation bundle cannot move the page during refresh. */
.orvion-vision-shell .trade-responsive-surface {
    box-sizing: border-box;
    padding: 42px 36px 60px;
}

/* ORVION_ADMIN_TRADE_FIRST_PAINT_CONTROL_BRIDGE_V4
   Exact structural subset of canonical Orvion.UI .o1-ui-control.
   Trade-only bridge so route paint has final control geometry before the
   module-local shared stylesheet finishes attaching. No rail selectors. */
.orvion-vision-shell .trade-responsive-surface .o1-ui-control {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-inline: 14px;
    box-sizing: border-box;
}

/* ORVION_ADMIN_TRADE_FIRST_PAINT_MATERIAL_BRIDGE_V5
   Refresh-only visual stability bridge. Exact accepted Trade/Orvion.UI
   material and semantic state values are available in the earliest app
   stylesheet so controls do not paint neutral and then recolor when the
   module-local cascade attaches. No geometry, typography, motion, wiring,
   routing, navigation or behavior is changed. */
.orvion-vision-shell .trade-responsive-surface .o1-ui-control {
    border-color: var(--o1-ui-border, var(--border));
    background: var(--o1-ui-control-bg, var(--control-bg));
    color: var(--o1-ui-text-soft, var(--text-soft));
    box-shadow: var(--o1-ui-control-shadow, var(--control-shadow));
}

.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__stage {
    border-color: var(--o1-ui-border, var(--border));
    background: var(--o1-ui-surface-soft, var(--surface-soft));
    color: var(--o1-ui-text, var(--text));
    box-shadow: var(--o1-ui-shadow-soft, var(--shadow-soft));
}

.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__item[data-state="COMPLETE"] .trade-operational-journey__stage {
    color: var(--o1-ui-success, var(--success));
    border-color: var(--o1-ui-success, var(--success));
    background: var(--o1-ui-success-soft, var(--success-soft));
}

.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__item[data-state="CURRENT"] .trade-operational-journey__stage {
    color: var(--o1-ui-accent, var(--accent));
    border-color: var(--o1-ui-accent, var(--accent));
    background: var(--o1-ui-accent-soft, var(--accent-soft));
}

.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__item[data-state="WAITING"] .trade-operational-journey__stage {
    color: var(--o1-ui-warning, var(--warning));
    border-color: var(--o1-ui-warning, var(--warning));
    background: var(--o1-ui-warning-soft, var(--warning-soft));
}

.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__item[data-state="BLOCKED"] .trade-operational-journey__stage {
    color: var(--o1-ui-danger, var(--danger));
    border-color: var(--o1-ui-danger, var(--danger));
}

.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__item[data-state="PENDING"] .trade-operational-journey__stage {
    color: var(--o1-ui-muted, var(--text-muted));
    border-color: var(--o1-ui-muted, var(--text-muted));
}

.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__stage[aria-pressed="true"] {
    box-shadow:
        inset 0 0 0 1px currentColor,
        inset 0 1px 0 rgba(255,255,255,.24);
}

.orvion-vision-shell .trade-responsive-surface .trade-status-badge {
    border-color: var(--o1-ui-accent, var(--accent));
    background: var(--o1-ui-accent-soft, var(--accent-soft));
    color: var(--o1-ui-accent, var(--accent));
    box-shadow: var(--o1-ui-shadow-soft, var(--shadow-soft));
}

:root {
    font-family: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", Inter, system-ui, sans-serif;
    font-synthesis: none;
    color-scheme: light;
    --page-bg: #f5f7fb;
    --page-bg-soft: #fafbfe;
    --sidebar-bg: #ffffff;
    --topbar-bg: rgba(255, 255, 255, 0.96);
    --surface: #ffffff;
    --surface-soft: #f5f7fc;
    --surface-hover: #eef2f8;
    --surface-muted: #f8f9fc;
    --popover-bg: #ffffff;
    --control-bg: #ffffff;
    --control-hover: #f5f7fb;
    --border: rgba(33, 47, 72, 0.10);
    --border-strong: rgba(33, 47, 72, 0.18);
    --text: #172033;
    --text-soft: #58667b;
    --text-muted: #8793a5;
    --accent: #596cf5;
    --accent-strong: #4659e8;
    --accent-soft: rgba(89, 108, 245, 0.09);
    --accent-hover: rgba(89, 108, 245, 0.14);
    --success: #1f9d68;
    --success-soft: rgba(31, 157, 104, 0.10);
    --warning: #df8a27;
    --warning-soft: rgba(223, 138, 39, 0.11);
    --danger: #d95757;
    --control-shadow: 0 1px 2px rgba(20, 31, 50, 0.025);
    --shadow-soft: 0 8px 24px rgba(31, 42, 63, 0.055);
    --shadow-card: 0 10px 30px rgba(31, 42, 63, 0.065);
    --shadow-popover: 0 18px 50px rgba(31, 42, 63, 0.14);
    --focus-ring: 0 0 0 3px rgba(89, 108, 245, 0.18);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --sidebar-width: 248px;
    --topbar-height: 72px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --page-bg: #131a24;
    --page-bg-soft: #161f2b;
    --sidebar-bg: #151e29;
    --topbar-bg: rgba(20, 29, 40, 0.97);
    --surface: #1a2431;
    --surface-soft: #202c3b;
    --surface-hover: #273446;
    --surface-muted: #18212d;
    --popover-bg: #202b39;
    --control-bg: #1b2634;
    --control-hover: #253245;
    --border: rgba(194, 209, 229, 0.11);
    --border-strong: rgba(194, 209, 229, 0.20);
    --text: #f1f5fa;
    --text-soft: #b7c3d3;
    --text-muted: #8594a9;
    --accent: #91a7ff;
    --accent-strong: #aec0ff;
    --accent-soft: rgba(145, 167, 255, 0.11);
    --accent-hover: rgba(145, 167, 255, 0.17);
    --success: #67d3a4;
    --success-soft: rgba(103, 211, 164, 0.10);
    --warning: #e7b55f;
    --warning-soft: rgba(231, 181, 95, 0.11);
    --danger: #ef7474;
    --control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.16);
    --shadow-popover: 0 20px 54px rgba(0, 0, 0, 0.30);
    --focus-ring: 0 0 0 3px rgba(145, 167, 255, 0.22);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    background: var(--page-bg);
    color: var(--text);
}

body {
    min-width: 320px;
    background: linear-gradient( 180deg, var(--page-bg-soft) 0%, var(--page-bg) 48%, var(--page-bg) 100% );
    color: var(--text);
    transition: background-color 220ms ease, color 220ms ease;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button:active:not(:disabled) {
    transform: scale(0.982);
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

::selection {
    background: var(--accent-soft);
    color: var(--text);
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    box-shadow: 10px 0 32px rgba(30, 45, 68, 0.025);
    z-index: 20;
    transition: background-color 220ms ease, border-color 220ms ease;
}

.brand {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
    margin-bottom: 28px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient( 135deg, #879aff, #6376f4 );
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(89, 108, 245, 0.18);
    font-size: 18px;
    font-weight: 700;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .brand-copy strong {
        color: var(--text);
        font-size: 15px;
        font-weight: 700;
    }

    .brand-copy span {
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 400;
    }

.primary-navigation {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 100ms ease;
}

    .nav-item:not(:disabled):hover {
        background: var(--surface-hover);
        color: var(--text);
    }

    .nav-item.active {
        color: var(--accent-strong);
        background: var(--accent-soft);
        border-color: rgba(89, 108, 245, 0.12);
    }

html[data-theme="dark"]
.nav-item.active {
    border-color: rgba(145, 167, 255, 0.16);
}

.nav-button {
    cursor: default;
}

    .nav-button:disabled {
        opacity: 0.57;
    }

.nav-icon {
    width: 20px;
    color: var(--text-muted);
    text-align: center;
}

.nav-item.active
.nav-icon {
    color: var(--accent);
}

.nav-section-label {
    margin: 27px 12px 8px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-footer {
    margin-top: auto;
    padding: 12px 8px 4px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
}

    .system-status div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .system-status strong {
        font-size: 12px;
        font-weight: 600;
    }

    .system-status span {
        color: var(--text-muted);
        font-size: 10px;
    }

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px var(--success-soft);
}

.workspace {
    grid-column: 2;
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 24px;
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 18px rgba(31, 42, 63, 0.035);
    z-index: 15;
    transition: background-color 220ms ease, border-color 220ms ease;
}

.command-trigger {
    flex: 1;
    max-width: 620px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--control-bg);
    color: var(--text-soft);
    cursor: pointer;
    box-shadow: var(--control-shadow);
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}

    .command-trigger:hover {
        background: var(--control-hover);
        border-color: var(--border-strong);
    }

.command-icon {
    color: var(--accent);
}

.command-copy {
    flex: 1;
    text-align: left;
}

.command-trigger kbd {
    padding: 3px 7px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 10px;
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button,
.profile-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--control-bg);
    color: var(--text-soft);
    cursor: pointer;
    box-shadow: var(--control-shadow);
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 100ms ease;
}

    .icon-button:hover,
    .profile-button:hover {
        background: var(--control-hover);
        border-color: var(--border-strong);
        color: var(--text);
    }

.profile-button {
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--text);
    font-weight: 600;
}

.copilot-button {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid rgba(89, 108, 245, 0.16);
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}

html[data-theme="dark"]
.copilot-button {
    border-color: rgba(145, 167, 255, 0.20);
}

.copilot-button:hover {
    background: var(--accent-hover);
    border-color: rgba(89, 108, 245, 0.28);
    transform: translateY(-1px);
}

.user-session {
    display: flex;
    align-items: center;
    gap: 9px;
}

.user-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    min-width: 0;
}

    .user-identity strong {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--text);
        font-size: 11px;
        font-weight: 600;
    }

    .user-identity span {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--text-muted);
        font-size: 9px;
    }

.logout-form {
    margin: 0;
}

.logout-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--control-bg);
    color: var(--text-soft);
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 100ms ease;
}

    .logout-button:hover {
        background: var(--control-hover);
        border-color: var(--border-strong);
        color: var(--text);
    }

.main-workspace {
    min-height: calc( 100vh - var(--topbar-height) );
}

.page-content {
    width: min( 1480px, 100% );
    margin: 0 auto;
    padding: 42px 36px 60px;
}

.page-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 9px;
    color: var(--text);
    font-size: clamp( 28px, 4vw, 40px );
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.028em;
}

h2 {
    margin-bottom: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.page-subtitle {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}

.primary-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid var(--accent);
    border-radius: 11px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(89, 108, 245, 0.17);
}

    .primary-button:hover {
        background: var(--accent-strong);
        transform: translateY(-1px);
    }

.context-strip {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 13px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: background-color 220ms ease, border-color 220ms ease;
}

.context-strip-item {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .context-strip-item span {
        color: var(--text-muted);
        font-size: 9px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .context-strip-item strong {
        color: var(--text);
        font-size: 12px;
        font-weight: 600;
    }

.context-strip-divider {
    width: 1px;
    height: 28px;
    margin: 0 20px;
    background: var(--border);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
}

.dashboard-main,
.dashboard-side {
    min-width: 0;
}

.dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-heading,
.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.section-heading {
    margin-bottom: 15px;
}

.panel-heading {
    margin-bottom: 18px;
}

.muted-label {
    color: var(--text-muted);
    font-size: 11px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat( 4, minmax(0, 1fr) );
    gap: 14px;
    margin-bottom: 24px;
}

.metric-card,
.panel {
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition: background-color 220ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 130ms ease;
}

.metric-card {
    min-height: 146px;
    display: flex;
    flex-direction: column;
    padding: 19px;
    border-radius: var(--radius-md);
}

    .metric-card:hover {
        border-color: var(--border-strong);
        transform: translateY(-2px);
        box-shadow: 0 13px 32px rgba(31, 42, 63, 0.085);
    }

html[data-theme="dark"]
.metric-card:hover {
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.21);
}

.metric-label {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 500;
}

.metric-value {
    margin: auto 0 4px;
    color: var(--text);
    font-size: 31px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.metric-caption {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.45;
}

.panel {
    padding: 21px;
    border-radius: var(--radius-lg);
}

.insight-panel {
    min-height: 260px;
}

.ai-badge {
    padding: 5px 9px;
    border: 1px solid rgba(89, 108, 245, 0.14);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 10px;
    font-weight: 600;
}

.empty-panel {
    min-height: 165px;
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 22px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
}

.empty-panel-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 20px;
}

.empty-panel strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 600;
}

.empty-panel p {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.65;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.quick-action {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-muted);
    text-align: left;
    transition: background-color 150ms ease, border-color 150ms ease, transform 100ms ease;
}

    .quick-action:not(:disabled) {
        cursor: pointer;
    }

        .quick-action:not(:disabled):hover {
            background: var(--surface-hover);
            border-color: var(--border-strong);
            transform: translateY(-1px);
        }

    .quick-action:disabled {
        opacity: 0.72;
    }

.quick-action-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.quick-action:nth-child(2)
.quick-action-icon {
    background: var(--success-soft);
    color: var(--success);
}

.quick-action:nth-child(3)
.quick-action-icon {
    background: rgba(143, 92, 246, 0.09);
    color: #8664e8;
}

.quick-action > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.quick-action strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.quick-action small {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.4;
}

.empty-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
    background: var(--surface-muted);
}

    .empty-compact strong {
        color: var(--text);
        font-size: 12px;
        font-weight: 600;
    }

    .empty-compact span {
        color: var(--text-muted);
        font-size: 11px;
        line-height: 1.55;
    }

.empty-state {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-state-icon {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 42px;
    font-weight: 700;
}

.empty-state p {
    color: var(--text-muted);
}

@media (max-width: 1180px) {
    .context-button.compact {
        display: none;
    }

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

@media (max-width: 960px) {
    :root {
        --sidebar-width: 74px;
    }

    .brand-copy,
    .nav-item > span:last-child,
    .nav-section-label,
    .system-status div {
        display: none;
    }

    .brand {
        justify-content: center;
        padding: 0;
    }

    .nav-item {
        justify-content: center;
        padding: 0;
    }

    .sidebar-footer {
        display: flex;
        justify-content: center;
    }

    .system-status {
        padding: 12px;
    }

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

    .dashboard-side {
        display: grid;
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
    }

    .user-identity {
        display: none;
    }
}

@media (max-width: 720px) {
    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        display: none;
    }

    .workspace {
        grid-column: 1;
    }

    .topbar {
        padding: 10px 14px;
    }

    .icon-button {
        display: none;
    }

    .command-trigger kbd {
        display: none;
    }

    .copilot-button strong {
        display: none;
    }

    .page-content {
        padding: 28px 16px 42px;
    }

    .page-heading-row {
        flex-direction: column;
    }

    .context-strip {
        overflow-x: auto;
    }

    .context-strip-item {
        min-width: 130px;
    }

    .metric-grid,
    .dashboard-side {
        grid-template-columns: 1fr;
    }

    .logout-button {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ===== ORVION CANONICAL DASHBOARD V1 BEGIN ===== */
.canonical-dashboard {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 30px 32px 44px;
}

.canonical-greeting {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 18px;
}

.canonical-greeting h1 {
    margin: 4px 0 4px;
    color: var(--text);
    font-size: clamp(26px, 2.2vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 680;
}

.canonical-greeting p,
.intelligence-copy p,
.action-stream-empty p,
.canonical-action-item p {
    margin: 0;
    color: var(--text-soft);
}

.canonical-kicker {
    color: var(--accent);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.13em;
}

.canonical-live-status,
.canonical-live-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
}

.canonical-live-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 4px var(--success-soft);
}

.business-pulse,
.orvion-intelligence,
.action-stream,
.recommended-strip {
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.business-pulse {
    margin-top: 16px;
    border-radius: 18px;
    overflow: hidden;
}

.canonical-section-title {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border-bottom: 1px solid var(--border);
}

.canonical-section-title > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.canonical-section-title strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.canonical-section-icon {
    color: var(--accent);
}

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

.pulse-item {
    position: relative;
    min-height: 112px;
    padding: 14px 16px 16px;
    overflow: hidden;
}

.pulse-item + .pulse-item {
    border-left: 1px solid var(--border);
}

.pulse-label,
.pulse-note {
    display: block;
}

.pulse-label {
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
}

.pulse-value {
    position: relative;
    z-index: 2;
    display: block;
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.pulse-note {
    position: relative;
    z-index: 2;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 9px;
}

.pulse-sparkline {
    position: absolute;
    right: 13px;
    bottom: 24px;
    width: 92px;
    height: 40px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    opacity: 0.8;
}

.pulse-sparkline i {
    flex: 1;
    border-radius: 999px 999px 2px 2px;
    background: currentColor;
    opacity: 0.48;
}

.pulse-sparkline i:nth-child(1) { height: 28%; }
.pulse-sparkline i:nth-child(2) { height: 45%; }
.pulse-sparkline i:nth-child(3) { height: 36%; }
.pulse-sparkline i:nth-child(4) { height: 58%; }
.pulse-sparkline i:nth-child(5) { height: 48%; }
.pulse-sparkline i:nth-child(6) { height: 72%; }
.pulse-sparkline i:nth-child(7) { height: 88%; }

.pulse-blue { color: #5f7df5; }
.pulse-rose { color: #e46b97; }
.pulse-amber { color: #e49a3c; }
.pulse-green { color: #37a97a; }

.canonical-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.8fr);
    gap: 16px;
    margin-top: 16px;
}

.orvion-intelligence {
    min-height: 330px;
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(360px, 1.28fr);
    gap: 18px;
    padding: 26px;
    border-radius: 18px;
    overflow: hidden;
}

.intelligence-copy {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.intelligence-copy h2 {
    margin: 8px 0 10px;
    max-width: 390px;
    color: var(--text);
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.intelligence-copy p {
    max-width: 420px;
    font-size: 13px;
    line-height: 1.65;
}

.canonical-primary-action,
.canonical-text-action {
    border: 0;
    background: transparent;
    color: var(--accent-strong);
    font-weight: 650;
}

.canonical-primary-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 0 14px;
    border: 1px solid rgba(89, 108, 245, 0.18);
    border-radius: 10px;
    background: var(--accent-soft);
}

.intelligence-visual {
    position: relative;
    min-height: 270px;
    isolation: isolate;
}

.intelligence-visual::before {
    content: "";
    position: absolute;
    inset: 12% 6%;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, rgba(111, 95, 246, 0.18) 0 7%, transparent 8%),
        radial-gradient(circle at center, rgba(89, 108, 245, 0.09) 0 25%, transparent 53%);
    filter: blur(1px);
}

.orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    border: 1px solid rgba(89, 108, 245, 0.12);
    border-radius: 50%;
}

.orbit-one { width: 170px; height: 170px; }
.orbit-two { width: 270px; height: 210px; }
.orbit-three { width: 390px; height: 260px; }

.orvion-core {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(108, 101, 246, 0.25);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, rgba(255,255,255,.95), transparent 18%),
        radial-gradient(circle at center, #6c65f6 0 18%, #ced5ff 19% 35%, rgba(103, 91, 231, .18) 36% 60%, transparent 61%);
    box-shadow:
        0 0 0 12px rgba(89, 108, 245, 0.05),
        0 0 58px rgba(89, 108, 245, 0.22);
    color: #fff;
    font-size: 24px;
}

.intel-node {
    position: absolute;
    z-index: 3;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: var(--control-shadow);
    color: var(--text-soft);
    font-size: 9px;
}

.intel-sales { left: 18%; top: 18%; }
.intel-receivables { left: 4%; top: 46%; }
.intel-purchases { right: 4%; top: 22%; }
.intel-inventory { left: 17%; bottom: 15%; }
.intel-people { right: 11%; bottom: 15%; }

.action-stream {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
}

.action-stream-count {
    min-width: 22px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 10px;
    font-weight: 700;
}

.action-stream-tabs {
    display: flex;
    gap: 5px;
    padding: 10px 12px 8px;
    overflow-x: auto;
}

.action-stream-tabs span {
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 9px;
    white-space: nowrap;
}

.action-stream-tabs span.active {
    border-color: rgba(89,108,245,.18);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.action-stream-empty {
    flex: 1;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 28px 24px;
    text-align: center;
}

.action-empty-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
}

.action-stream-empty strong {
    color: var(--text);
    font-size: 12px;
}

.action-stream-empty p {
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.5;
}

.canonical-action-list {
    flex: 1;
    padding: 0 10px;
}

.canonical-action-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 9px;
    padding: 10px 4px;
    border-top: 1px solid var(--border);
}

.canonical-action-symbol {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
}

.canonical-action-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.canonical-action-title strong {
    color: var(--text);
    font-size: 10px;
    line-height: 1.35;
}

.canonical-action-title span,
.canonical-action-item small {
    color: var(--text-muted);
    font-size: 8px;
}

.canonical-action-item p {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.35;
}

.canonical-text-action {
    margin: auto 12px 12px;
    padding: 8px 0;
    text-align: left;
    font-size: 10px;
}

.canonical-action-warning {
    margin: 8px 12px;
    color: var(--warning);
    font-size: 9px;
}

.recommended-strip {
    margin-top: 16px;
    padding: 12px;
    border-radius: 16px;
}

.recommended-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 4px 10px;
    color: var(--text);
    font-size: 11px;
}

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

.recommended-grid button {
    min-height: 60px;
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    text-align: left;
}

.recommended-grid button > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recommended-grid strong {
    font-size: 10px;
}

.recommended-grid small {
    color: var(--text-muted);
    font-size: 8px;
}

.recommend-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
}

.canonical-message {
    margin-top: 10px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: 10px;
}

.canonical-message-error {
    color: var(--danger);
}

html[data-theme="dark"] .orvion-intelligence {
    background:
        radial-gradient(circle at 72% 48%, rgba(70, 78, 160, 0.14), transparent 33%),
        var(--surface);
}

html[data-theme="dark"] .orvion-core {
    background:
        radial-gradient(circle at 34% 25%, rgba(255,255,255,.72), transparent 14%),
        radial-gradient(circle at center, #6464d9 0 18%, #6d7ac8 19% 33%, rgba(64, 63, 145, .34) 34% 62%, #202b39 63%);
    box-shadow:
        0 0 0 12px rgba(145, 167, 255, 0.04),
        0 0 58px rgba(105, 109, 236, 0.20);
}

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

    .action-stream {
        min-height: 270px;
    }
}

@media (max-width: 900px) {
    .canonical-dashboard {
        padding: 22px 18px 34px;
    }

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

    .pulse-item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .pulse-item:nth-child(4) {
        border-top: 1px solid var(--border);
    }

    .orvion-intelligence {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .canonical-dashboard {
        padding: 18px 12px 96px;
    }

    .canonical-greeting {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

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

    .pulse-item + .pulse-item {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .orvion-intelligence {
        min-height: 0;
        padding: 18px;
    }

    .intelligence-visual {
        min-height: 230px;
    }

    .orbit-three {
        width: 310px;
    }
}
/* ===== ORVION CANONICAL DASHBOARD V1 END ===== */


/* ORVION_CANONICAL_NONINTERACTIVE_HEADING_FOCUS
   Interactive controls keep their normal :focus-visible indicators. */
h1[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus-visible {
    outline: none;
}
/* O1_ADMIN_REFRESH_MODULES_HARMONY_STATIC_V2_FIX1
   Owner-approved bounded geometry correction.
   Static-only: no Razor, DLL, Modules, behavior, data, route, or service mutation. */

:is(
    section.page-content[data-eval7-finance-actionability="a3"],
    section.page-content[data-eval7-operations-actionability="a1"],
    section.page-content[data-eval7-people-actionability="a2"],
    section.page-content[data-core-frontend="reports-c4"],
    section.page-content[data-eval7-sales-actionability="a5"],
    section.page-content[data-eval7-supply-chain-actionability="a4"]
) > .page-heading-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    column-gap: 24px;
    row-gap: 0;
}

:is(
    section.page-content[data-eval7-finance-actionability="a3"],
    section.page-content[data-eval7-operations-actionability="a1"],
    section.page-content[data-eval7-people-actionability="a2"],
    section.page-content[data-core-frontend="reports-c4"],
    section.page-content[data-eval7-sales-actionability="a5"],
    section.page-content[data-eval7-supply-chain-actionability="a4"]
) > .page-heading-row > div:first-child {
    display: contents;
}

:is(
    section.page-content[data-eval7-finance-actionability="a3"],
    section.page-content[data-eval7-operations-actionability="a1"],
    section.page-content[data-eval7-people-actionability="a2"],
    section.page-content[data-core-frontend="reports-c4"],
    section.page-content[data-eval7-sales-actionability="a5"],
    section.page-content[data-eval7-supply-chain-actionability="a4"]
) > .page-heading-row > div:first-child > .eyebrow {
    order: 1;
    flex: 0 0 100%;
    width: 100%;
}

:is(
    section.page-content[data-eval7-finance-actionability="a3"],
    section.page-content[data-eval7-operations-actionability="a1"],
    section.page-content[data-eval7-people-actionability="a2"],
    section.page-content[data-core-frontend="reports-c4"],
    section.page-content[data-eval7-sales-actionability="a5"],
    section.page-content[data-eval7-supply-chain-actionability="a4"]
) > .page-heading-row > div:first-child > h1 {
    order: 2;
    flex: 0 1 auto;
    min-width: 0;
}

:is(
    section.page-content[data-eval7-finance-actionability="a3"],
    section.page-content[data-eval7-operations-actionability="a1"],
    section.page-content[data-eval7-people-actionability="a2"],
    section.page-content[data-core-frontend="reports-c4"],
    section.page-content[data-eval7-sales-actionability="a5"],
    section.page-content[data-eval7-supply-chain-actionability="a4"]
) > .page-heading-row > button.primary-button {
    order: 2;
    flex: 0 0 auto;
    align-self: center;
}

:is(
    section.page-content[data-eval7-finance-actionability="a3"],
    section.page-content[data-eval7-operations-actionability="a1"],
    section.page-content[data-eval7-people-actionability="a2"],
    section.page-content[data-core-frontend="reports-c4"],
    section.page-content[data-eval7-sales-actionability="a5"],
    section.page-content[data-eval7-supply-chain-actionability="a4"]
) > .page-heading-row > div:first-child > .page-subtitle {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
}

/* ORVION_ADMIN_TRADE_CANONICAL_TYPOGRAPHY_V4
   Exact owner-approved canonical Admin module typography roles.
   Evidence authority: locked Admin module token bridge and repeated scoped
   People/Sales/Admin page roles. Typography only; no layout/material/nav. */
.orvion-vision-shell .trade-responsive-surface,
.orvion-vision-shell .trade-responsive-surface .trade-page,
.orvion-vision-shell .trade-responsive-surface .trade-page button,
.orvion-vision-shell .trade-responsive-surface .trade-page input,
.orvion-vision-shell .trade-responsive-surface .trade-page select,
.orvion-vision-shell .trade-responsive-surface .trade-page textarea {
    font-family: "Plus Jakarta Sans", "Segoe UI Variable", Aptos, "Segoe UI", sans-serif !important;
}

.orvion-vision-shell .trade-responsive-surface .trade-page {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Canonical Admin module page heading: --locked-h1 = 32px. */
.orvion-vision-shell .trade-responsive-surface .trade-page__header h1,
.orvion-vision-shell .trade-responsive-surface .trade-page > h1 {
    font-size: 32px !important;
    font-weight: 720 !important;
    line-height: 1.14 !important;
    letter-spacing: -.035em !important;
}

/* Canonical Admin module eyebrow. */
.orvion-vision-shell .trade-responsive-surface .trade-page__eyebrow {
    font-size: 11px !important;
    font-weight: 760 !important;
    line-height: 1.2 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
}

/* Canonical Admin module page subtitle/body-2 role. */
.orvion-vision-shell .trade-responsive-surface .trade-page__preview {
    font-size: 13px !important;
    font-weight: 450 !important;
    line-height: 1.55 !important;
    letter-spacing: normal !important;
}

/* Canonical Admin module panel heading: --locked-h3 = 18px. */
.orvion-vision-shell .trade-responsive-surface .trade-tracking-status h2,
.orvion-vision-shell .trade-responsive-surface .trade-milestone-rail h2,
.orvion-vision-shell .trade-responsive-surface .trade-cost-breakdown h2,
.orvion-vision-shell .trade-responsive-surface .trade-activity-timeline h2,
.orvion-vision-shell .trade-responsive-surface .trade-document-checklist h2,
.orvion-vision-shell .trade-responsive-surface .trade-permit-checklist h2,
.orvion-vision-shell .trade-responsive-surface .trade-wharf-clerk-card h2,
.orvion-vision-shell .trade-responsive-surface .trade-overview__composition > h2,
.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__header h2 {
    font-size: 18px !important;
    font-weight: 690 !important;
    line-height: 1.28 !important;
    letter-spacing: -.018em !important;
}

/* Canonical Admin action/card heading role. */
.orvion-vision-shell .trade-responsive-surface .trade-partner-card h3,
.orvion-vision-shell .trade-responsive-surface .trade-wharf-clerk-card h3,
.orvion-vision-shell .trade-responsive-surface .trade-summary-card h2,
.orvion-vision-shell .trade-responsive-surface .trade-summary-card h3,
.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__detail h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -.027em !important;
}

/* Canonical Admin metric-label role: --locked-caption = 12px. */
.orvion-vision-shell .trade-responsive-surface .trade-preview-data-banner,
.orvion-vision-shell .trade-responsive-surface .trade-summary-card__label,
.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__state,
.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__legend,
.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__detail strong,
.orvion-vision-shell .trade-responsive-surface .trade-status-badge,
.orvion-vision-shell .trade-responsive-surface .trade-variance-indicator {
    font-size: 12px !important;
    font-weight: 660 !important;
    line-height: 1.3 !important;
    letter-spacing: -.005em !important;
}

/* Canonical Admin metric-value role. */
.orvion-vision-shell .trade-responsive-surface .trade-summary-card__value {
    font-size: 29px !important;
    font-weight: 720 !important;
    line-height: 1 !important;
    letter-spacing: -.035em !important;
}

/* Canonical Admin metric-caption/detail role. */
.orvion-vision-shell .trade-responsive-surface .trade-summary-card__detail {
    font-size: 11.5px !important;
    font-weight: 450 !important;
    line-height: 1.38 !important;
    letter-spacing: normal !important;
}

/* Canonical Admin field/control-label role. Do not override .o1-ui-control
   typography here; shared/control authority remains the owner. */
.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__label {
    font-size: 12.5px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    letter-spacing: -.008em !important;
}

/* Canonical Admin body-2 copy for compact Trade panels. */
.orvion-vision-shell .trade-responsive-surface .trade-tracking-status p,
.orvion-vision-shell .trade-responsive-surface .trade-milestone-rail p,
.orvion-vision-shell .trade-responsive-surface .trade-capability-state p,
.orvion-vision-shell .trade-responsive-surface .trade-cost-breakdown p,
.orvion-vision-shell .trade-responsive-surface .trade-partner-card p,
.orvion-vision-shell .trade-responsive-surface .trade-activity-timeline p,
.orvion-vision-shell .trade-responsive-surface .trade-document-checklist p,
.orvion-vision-shell .trade-responsive-surface .trade-permit-checklist p,
.orvion-vision-shell .trade-responsive-surface .trade-wharf-clerk-card p,
.orvion-vision-shell .trade-responsive-surface .trade-summary-card p,
.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__header p,
.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__detail p {
    font-size: 13px !important;
    font-weight: 440 !important;
    line-height: 1.55 !important;
    letter-spacing: normal !important;
}


/* ORVION_ADMIN_TRADE_V4_POSTPASS_READABILITY_V1
   Owner visual-fail correction only.
   Scope: Trade typography/readability. Navigation/layout authority remains frozen.
   Evidence: 2026-10-02 owner video + recovered FIX6 locked compact metrics. */
section.page-content[data-orvion-module="TRD-001"] .context-strip-item strong {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__detail h3 {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -.015em !important;
}

.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__detail strong {
    font-size: 9.5px !important;
    font-weight: 780 !important;
    line-height: 1.3 !important;
    letter-spacing: .09em !important;
    text-transform: uppercase !important;
}

.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__detail p {
    min-width: 0;
    max-width: 100%;
    font-size: 10.5px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    white-space: normal;
    overflow-wrap: anywhere;
}
/* ORVION_ADMIN_TRADE_V4_POSTPASS_READABILITY_V1_END */

/* ORVION_ADMIN_TRADE_V4_POSTPASS_READABILITY_V2
   Owner frame-by-frame visual-fail correction.
   Scope remains Trade typography/readability only; navigation/layout/binary authority frozen.
   Evidence: 2026-10-02 owner video 13:27 + V1 technical PASS.
   Fixes only the two remaining demonstrated text-fit defects. */
.orvion-vision-shell .trade-responsive-surface .context-strip-item:nth-child(2) strong {
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: -.015em !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.orvion-vision-shell .trade-responsive-surface .trade-operational-journey__detail > div:nth-child(3) p {
    font-size: 9.5px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    letter-spacing: -.018em !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}
/* ORVION_ADMIN_TRADE_V4_POSTPASS_READABILITY_V2_END */

/* ORVION_ADMIN_TRADE_REFRESH_HEADING_FOCUS_CORRECTION_V1
   Final bounded refresh-focus cleanup.
   Trade only. No layout, motion, control, navigation, wiring, route or binary mutation. */
.orvion-vision-shell .trade-responsive-surface .trade-page h1:focus,
.orvion-vision-shell .trade-responsive-surface .trade-page h1:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
