/* ARIA foundations: monochrome by default, with restrained semantic accents. */
:root {
    --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    /* Golden-reference type scale. User-readable text must not render below 11px. */
    --text-compact: 11px;
    --text-supporting: 12px;
    --text-ui: 13px;
    --text-action: 14px;
    --text-body: 15px;
    --text-lead: 16px;
    --text-subheading: 23px;
    --text-page-title: clamp(27px, 2.5vw, 36px);
    --canvas: #fafafa;
    --surface: #fff;
    --sidebar: #f4f4f4;
    --subtle: #f5f5f5;
    --hover: #eaeaea;
    --ink: #181818;
    --secondary: #626262;
    --muted: #727272;
    --line: #e5e5e5;
    --strong-line: #cdcdcd;
    --skeleton: #efefef;
    --skeleton-soft: #f5f5f5;
    --active: #e4e4e4;
    --button: #181818;
    --button-text: #fff;
    --semantic-success: #216e49;
    --semantic-success-strong: #1b6843;
    --semantic-success-bg: #eff8f3;
    --semantic-success-line: #b9dcc9;
    --semantic-info: #245f99;
    --semantic-info-bg: #eef5fc;
    --semantic-info-line: #bdd6ee;
    --semantic-warning: #875600;
    --semantic-warning-bg: #fff7e8;
    --semantic-warning-line: #e8cd97;
    --semantic-danger: #b42318;
    --semantic-danger-bg: #fff1f0;
    --semantic-danger-line: #efb4af;
    --semantic-danger-button: #b42318;
    --semantic-danger-button-text: #fff;
    --shadow: 0 16px 56px #00000018;
    --sidebar-width: 254px;
    --radius: 12px;
    --bs-body-font-family: var(--font);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--canvas);
    --bs-border-color: var(--line);
    color-scheme: light;
}
[data-bs-theme="dark"] {
    --canvas: #101010;
    --surface: #171717;
    --sidebar: #141414;
    --subtle: #202020;
    --hover: #2b2b2b;
    --ink: #f0f0f0;
    --secondary: #aaa;
    --muted: #949494;
    --line: #2b2b2b;
    --strong-line: #484848;
    --skeleton: #2a2a2a;
    --skeleton-soft: #222;
    --active: #2b2b2b;
    --button: #f0f0f0;
    --button-text: #151515;
    --semantic-success: #70cf9e;
    --semantic-success-strong: #287a52;
    --semantic-success-bg: #14261d;
    --semantic-success-line: #2c5f42;
    --semantic-info: #7db9ee;
    --semantic-info-bg: #132334;
    --semantic-info-line: #294c70;
    --semantic-warning: #efbd65;
    --semantic-warning-bg: #2b2314;
    --semantic-warning-line: #665023;
    --semantic-danger: #f08a82;
    --semantic-danger-bg: #301817;
    --semantic-danger-line: #74332f;
    --semantic-danger-button: #e66e64;
    --semantic-danger-button-text: #161616;
    --shadow: 0 16px 56px #00000055;
    color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--canvas); font-size: var(--text-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
button { color: inherit; }
button, summary { touch-action: manipulation; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
main:focus { outline: none; }
::selection { background: var(--ink); color: var(--surface); }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-name { font-size: 23px; font-weight: 650; letter-spacing: .18em; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; background: transparent; border: 0; border-radius: 7px; color: var(--secondary); flex-shrink: 0; }
.icon-button:hover { color: var(--ink); background: var(--hover); }
.icon-button:active { transform: translateY(1px); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 2000; background: var(--ink); color: var(--surface); padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: var(--surface); }
.eyebrow { font-size: var(--text-compact); font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.outline-badge, .demo-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--secondary); font-size: var(--text-supporting); white-space: nowrap; font-weight: 500; }
.button-primary, .button-secondary, .button-danger, .button-danger-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 11px 18px; border-radius: 7px; font-size: var(--text-action); font-weight: 600; transition: background .15s ease, border-color .15s ease; }
.button-primary { background: var(--button); color: var(--button-text); border: 1px solid var(--button); }
.button-primary:hover { opacity: .87; }
.button-secondary { border: 1px solid var(--strong-line); background: var(--surface); color: var(--ink); }
.button-secondary:hover { background: var(--hover); }
.button-danger { border: 1px solid var(--semantic-danger-button); background: var(--semantic-danger-button); color: var(--semantic-danger-button-text); }
.button-danger:hover { color: var(--semantic-danger-button-text); opacity: .88; }
.button-danger-secondary { border: 1px solid var(--semantic-danger-line); background: var(--surface); color: var(--semantic-danger); }
.button-danger-secondary:hover { border-color: var(--semantic-danger); background: var(--semantic-danger-bg); color: var(--semantic-danger); }
kbd { font: var(--text-compact) var(--font); background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; box-shadow: 0 1px 0 var(--line); }

/* Shared provider-import coverage shown only when the data boundary needs explanation. */
.account-data-notice { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; padding: 18px 20px; border: 1px solid var(--semantic-info-line); border-radius: var(--radius); background: var(--semantic-info-bg); }
.account-data-notice.is-warning { border-color: var(--semantic-warning-line); background: var(--semantic-warning-bg); }
.account-data-notice-icon { display: flex; color: var(--semantic-info); margin-top: 2px; }
.account-data-notice.is-warning .account-data-notice-icon { color: var(--semantic-warning); }
.account-data-notice-icon .icon { width: 18px; height: 18px; }
.account-data-notice > div { min-width: 0; flex: 1; }
.account-data-notice strong { font-size: var(--text-action); font-weight: 600; }
.account-data-notice p { margin-top: 4px; color: var(--secondary); font-size: var(--text-ui); line-height: 1.7; }
.account-data-notice details { margin-top: 10px; }
.account-data-notice summary { display: inline-flex; align-items: center; gap: 7px; color: var(--secondary); cursor: pointer; font-size: var(--text-ui); list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.account-data-notice summary::-webkit-details-marker { display: none; }
.account-data-notice summary .icon { width: 14px; height: 14px; }
.account-data-notice details[open] summary .icon { transform: rotate(180deg); }
.account-data-notice article { margin-top: 16px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.account-data-notice article h3 { font-size: var(--text-ui); font-weight: 600; }
.account-data-notice dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 20px; margin: 12px 0 0; }
.account-data-notice dt { color: var(--muted); font-size: var(--text-supporting); font-weight: 400; }
.account-data-notice dd { margin: 4px 0 0; font-size: var(--text-ui); line-height: 1.55; }
.account-data-notice dd small { display: block; margin-top: 3px; color: var(--muted); font-size: var(--text-supporting); }
.account-history-exceptions-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; color: var(--secondary); font-size: var(--text-supporting); font-weight: 600; }
.account-history-exceptions-link .icon { width: 12px; height: 12px; }
.account-coverage-guidance { margin-top: 10px !important; padding-left: 11px; border-left: 2px solid color-mix(in srgb, currentColor 24%, transparent); font-size: var(--text-supporting) !important; line-height: 1.6 !important; }
@media (max-width: 767.98px) {
    .account-data-notice { padding: 16px; }
    .account-data-notice dl { grid-template-columns: minmax(0, 1fr); }
}

/* Persistent workspace navigation. */
.app-sidebar { --bs-offcanvas-width: 280px; display: flex; flex-direction: column; color: var(--ink); background: var(--sidebar) !important; border-right: 1px solid var(--line) !important; }
.sidebar-brand { height: 83px; padding: 0 27px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.sidebar-close { display: none; }
.workspace-identity { display: flex; align-items: center; gap: 10px; margin: 0 16px 21px; padding: 11px 9px; border: 1px solid var(--line); border-radius: 8px; }
.workspace-monogram { width: 31px; height: 31px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; flex-shrink: 0; }
.workspace-monogram .icon { width: 16px; height: 16px; }
.workspace-identity > div { min-width: 0; flex: 1; }
.workspace-identity strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.workspace-identity div > span { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.workspace-identity > .icon { width: 13px; height: 13px; color: var(--muted); }
.sidebar-nav { flex: 1; min-height: 0; padding: 0 12px 24px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--strong-line) transparent; }
.nav-section + .nav-section { margin-top: 25px; }
.nav-section-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 14px; margin-bottom: 9px; }
.nav-parent { position: relative; min-height: 42px; display: flex; gap: 12px; align-items: center; padding: 10px 13px; border-radius: 7px; color: var(--secondary); font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.nav-parent::-webkit-details-marker, .account-menu summary::-webkit-details-marker, .demo-accounts summary::-webkit-details-marker { display: none; }
.nav-parent:hover { background: var(--hover); color: var(--ink); }
.nav-parent.is-active, .has-active > .nav-parent { color: var(--ink); background: var(--active); font-weight: 600; }
.nav-parent .icon { width: 18px; height: 18px; }
.nav-chevron { margin-left: auto; display: flex; }
.nav-chevron .icon { width: 13px; height: 13px; color: var(--muted); transition: transform .15s; }
.nav-group[open] > summary .nav-chevron .icon { transform: rotate(90deg); }
.nav-children { margin: 6px 0 7px 22px; padding-left: 17px; border-left: 1px solid var(--strong-line); }
.nav-child { display: block; padding: 9px 10px; font-size: 13px; border-radius: 6px; color: var(--secondary); margin-bottom: 2px; }
.nav-child:hover, .nav-child.is-active { background: var(--hover); color: var(--ink); }
.nav-child.is-active { font-weight: 600; }
.sidebar-bottom { flex-shrink: 0; padding: 13px 16px 16px; border-top: 1px solid var(--line); }
.appearance-label { display: block; font-size: 11px; color: var(--muted); margin: 1px 0 9px 3px; }
.theme-control { padding: 3px; display: inline-flex; gap: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--subtle); }
.theme-control button { min-height: 31px; min-width: 34px; border: 0; border-radius: 5px; padding: 5px 9px; background: transparent; color: var(--muted); font-size: 11px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.theme-control button:hover { color: var(--ink); }
.theme-control button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px #00000010; }
.theme-control .icon { width: 14px; height: 14px; }
.sidebar-appearance .theme-control { display: flex; }
.sidebar-appearance .theme-control button { flex: 1; padding-inline: 5px; }
.account-menu { position: relative; margin-top: 15px; }
.account-menu summary { list-style: none; display: flex; align-items: center; padding: 7px 5px; gap: 10px; cursor: pointer; border-radius: 7px; }
.account-menu summary:hover { background: var(--hover); }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 500; border-radius: 50%; flex-shrink: 0; }
.account-description { flex: 1; }
.account-description strong { display: block; font-size: 13px; font-weight: 600; }
.account-description > span { display: block; font-size: 11px; color: var(--muted); }
.account-menu summary > .icon { width: 14px; height: 14px; color: var(--muted); }
.account-popover { position: absolute; bottom: calc(100% + 8px); left: 0; width: 220px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 20; }
.account-email { font-size: 12px; padding: 6px 8px 12px; color: var(--muted); overflow-wrap: anywhere; }
.account-popover a, .account-popover button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-size: 13px; }
.account-popover form { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.account-popover form button { background: var(--subtle); }
.account-popover a:hover, .account-popover button:hover { background: var(--hover); }
.account-popover .icon { width: 16px; height: 16px; }

/* Content shell and header. */
.workspace-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.workspace-header { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--canvas); flex-shrink: 0; position: sticky; top: 0; z-index: 100; }
.header-location, .header-actions { display: flex; align-items: center; gap: 18px; min-width: 0; }
.breadcrumbs { display: flex; gap: 13px; font-size: 13px; white-space: nowrap; color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }
.breadcrumb-divider { color: var(--strong-line); }
.search-trigger { display: flex; align-items: center; gap: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 7px 9px; font-size: 12px; min-width: 222px; text-align: left; }
.search-trigger:hover { border-color: var(--strong-line); }
.search-trigger .icon { width: 15px; height: 15px; }
.search-trigger kbd { margin-left: auto; }
.demo-badge { border: 0; padding-inline: 0; color: var(--semantic-info); }
.header-theme { width: 29px; }
.header-theme .icon { width: 17px; height: 17px; }
.mobile-nav-toggle { display: none; }
.workspace-content { width: 100%; max-width: 1660px; margin: 0 auto; padding: 40px 40px 20px; flex: 1; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 37px; }
.page-heading .eyebrow { margin-bottom: 12px; }
.page-heading h1 { font-size: var(--text-page-title); font-weight: 600; letter-spacing: -.055em; line-height: 1.2; }
.heading-period { color: var(--muted); }
.page-description { margin-top: 12px; font-size: 14px; color: var(--secondary); line-height: 1.65; }
.page-heading > .outline-badge { margin-top: 6px; }
.overview-label { display: flex; align-items: center; justify-content: space-between; margin: 0 0 13px; }
.overview-label h2 { font-size: 13px; font-weight: 600; }
.overview-label > span { font-size: 11px; color: var(--muted); display: flex; gap: 7px; align-items: center; }
.overview-label .icon { width: 13px; height: 13px; }
.workspace-footer { margin: 0 40px; min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-compact); }
.workspace-footer > span:last-child { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.workspace-footer .icon { width: 11px; height: 11px; }
.footer-dot { padding: 0 6px; }

/* Deliberately static placeholders: no animation and no invented financial data. */
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric-placeholder { min-height: 133px; padding: 19px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric-placeholder > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metric-placeholder h3 { font-size: 12px; color: var(--secondary); font-weight: 500; }
.metric-placeholder .icon { width: 16px; height: 16px; color: var(--muted); }
.skeleton { display: block; height: 7px; background: var(--skeleton); border-radius: 3px; }
.skeleton-value { margin-top: 23px; width: 115px; max-width: 78%; height: 21px; border-radius: 4px; }
.skeleton-value.short { width: 90px; }
.skeleton-value.shorter { width: 55px; }
.skeleton-caption { width: 94px; max-width: 65%; margin-top: 13px; height: 6px; background: var(--skeleton-soft); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px; }
.preview-panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.panel-header { padding: 19px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-header h2 { font-size: 13px; font-weight: 600; }
.panel-header > .icon { width: 16px; height: 16px; color: var(--muted); }
.panel-overline { color: var(--muted); font-size: var(--text-compact); font-weight: 500; letter-spacing: .12em; }
.portfolio-canvas { min-height: 243px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 20px; background-image: linear-gradient(var(--skeleton-soft) 1px, transparent 1px), linear-gradient(90deg, var(--skeleton-soft) 1px, transparent 1px); background-size: 52px 52px; border-block: 1px solid var(--skeleton-soft); }
.empty-symbol { width: 47px; height: 47px; display: grid; place-items: center; color: var(--secondary); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 15px; box-shadow: 0 2px 4px #00000003; }
.empty-symbol .icon { width: 22px; height: 22px; }
.portfolio-canvas h3 { font-size: 14px; font-weight: 500; letter-spacing: -.02em; background: var(--surface); }
.portfolio-canvas p { margin-top: 5px; font-size: 12px; color: var(--muted); background: var(--surface); text-align: center; }
.placeholder-tag { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; font-size: var(--text-compact); margin-top: 17px; color: var(--muted); }
.portfolio-panel-footer { display: flex; padding: 21px 24px; gap: 30px; }
.portfolio-panel-footer .skeleton { width: 20%; height: 6px; }
.attention-intro { padding: 6px 22px 12px; }
.attention-intro p { font-size: 18px; letter-spacing: -.035em; line-height: 1.5; margin-top: 9px; font-weight: 400; }
.ghost-list { padding: 0 22px 5px; }
.ghost-row { display: flex; gap: 12px; align-items: center; min-height: 51px; border-top: 1px solid var(--skeleton-soft); }
.ghost-square { width: 26px; height: 26px; border-radius: 6px; background: var(--skeleton-soft); }
.ghost-row > div { flex: 1; }
.ghost-row .skeleton:first-child { width: 74%; }
.ghost-row .skeleton:last-child { width: 49%; margin-top: 7px; height: 5px; background: var(--skeleton-soft); }
.ghost-tick { width: 15px; height: 5px; background: var(--skeleton-soft); border-radius: 3px; }
.radar-placeholder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 9px 24px 22px; gap: 25px; }
.radar-placeholder > div + div { border-left: 1px solid var(--skeleton-soft); padding-left: 20px; }
.ghost-circle { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--skeleton-soft); margin-bottom: 14px; }
.radar-placeholder .skeleton { width: 60%; }
.radar-placeholder .skeleton:last-child { width: 80%; margin-top: 9px; height: 5px; background: var(--skeleton-soft); }
.panel-footnote { font-size: 11px; color: var(--muted); padding: 0 22px 17px; }
.activity-placeholder { padding: 9px 23px 12px; }
.activity-placeholder > div { position: relative; padding: 2px 0 18px 21px; border-left: 1px solid var(--skeleton); }
.activity-placeholder > div:last-child { border-left-color: transparent; }
.timeline-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; left: -4px; top: 0; background: var(--strong-line); border: 2px solid var(--surface); }
.activity-placeholder .skeleton { width: 75%; }
.activity-placeholder .skeleton:last-child { width: 40%; margin-top: 8px; height: 5px; background: var(--skeleton-soft); }
.preview-note { display: flex; justify-content: center; align-items: flex-start; gap: 7px; margin-top: 23px; color: var(--muted); }
.preview-note .icon { width: 12px; height: 12px; margin-top: 1px; }
.preview-note p { font-size: 11px; }
.workspace-landing { max-width: 880px; }
.workspace-landing-topics { list-style: none; margin: 0; padding: 0 24px 28px; display: grid; gap: 18px; }
.workspace-landing-topics li { display: flex; align-items: baseline; gap: 14px; color: var(--secondary); font-size: var(--text-body); line-height: 1.7; }
.workspace-landing-topics li > span { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--muted); }
.workspace-landing-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding: 22px 24px; }
.workspace-landing-links > span { color: var(--muted); font-size: var(--text-supporting); }
.workspace-landing-links > div { display: flex; flex-wrap: wrap; gap: 12px; }
.workspace-landing-links .button-secondary { margin: 0; }
.destination-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-height: 450px; text-align: center; padding: 40px 20px; }
.destination-placeholder .empty-symbol { width: 60px; height: 60px; margin-bottom: 25px; }
.destination-placeholder .panel-overline { font-size: var(--text-compact); }
.destination-placeholder h1, .destination-placeholder h2 { font-size: 28px; letter-spacing: -.04em; font-weight: 500; margin-top: 14px; }
.destination-placeholder p { color: var(--secondary); font-size: 13px; line-height: 1.8; margin: 14px 0 24px; }

/* Keyboard-first page finder, using the native modal focus boundary. */
.command-dialog { padding: 0; width: min(580px, calc(100vw - 32px)); max-height: min(640px, calc(100dvh - 64px)); border: 1px solid var(--strong-line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); margin: 12vh auto auto; }
.command-dialog::backdrop { background: #0006; backdrop-filter: blur(3px); }
.command-search { display: flex; align-items: center; gap: 13px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.command-search > .icon { color: var(--muted); }
.command-search input { flex: 1; min-width: 0; height: 35px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 13px; }
.command-search input::placeholder { color: var(--muted); }
.command-search input::-webkit-search-cancel-button { display: none; }
.command-results { max-height: min(450px, calc(100dvh - 230px)); overflow-y: auto; padding: 8px; }
.command-result { display: flex; align-items: center; gap: 13px; padding: 10px 14px; border-radius: 7px; font-size: 13px; }
.command-result > span { flex: 1; }
.command-result small { display: block; color: var(--muted); font-size: var(--text-compact); }
.command-result > .icon { width: 18px; height: 18px; color: var(--secondary); }
.command-result > .icon:last-child { width: 14px; height: 14px; }
.command-result:hover, .command-result.is-selected { background: var(--subtle); }
.command-footer { border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; padding: 12px 18px; font-size: var(--text-compact); color: var(--muted); }
.command-footer kbd { margin-right: 4px; }
.command-empty { padding: 40px 20px; text-align: center; font-size: 12px; color: var(--muted); }

/* Sign-in: editorial monochrome panel and a restrained, familiar form. */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; }
.auth-story { color: #f7f7f7; background: #141414; display: flex; flex-direction: column; justify-content: space-between; padding: 42px 56px; overflow: hidden; position: relative; min-height: 100dvh; }
.auth-brand { color: #f7f7f7; position: relative; z-index: 1; }
.auth-brand:hover { color: #fff; }
.auth-story-copy { padding: 60px 0 65px; position: relative; z-index: 1; }
.auth-story-copy .eyebrow { font-size: var(--text-compact); color: #939393; letter-spacing: .15em; }
.auth-story h2 { font-size: clamp(46px, 5.5vw, 84px); font-weight: 500; line-height: 1.07; letter-spacing: -.065em; margin: 29px 0 25px; }
.auth-story-description { font-size: clamp(17px, 1.65vw, 23px); font-weight: 300; color: #bcbcbc; line-height: 1.6; letter-spacing: -.02em; }
.story-rule { width: 34px; height: 1px; background: #666; margin: 31px 0 21px; }
.auth-story-note { font-size: 12px; color: #979797; line-height: 1.85; }
.auth-art { position: absolute; width: 80%; bottom: -135px; right: -26%; color: #f0f0f0; opacity: .11; pointer-events: none; }
.auth-story-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: var(--text-compact); color: #939393; position: relative; z-index: 1; }
.auth-story-footer > span:first-child { display: flex; align-items: center; gap: 8px; }
.auth-story-footer .icon { width: 12px; height: 12px; }
.auth-panel { background: var(--surface); display: flex; flex-direction: column; min-width: 0; padding: 30px 40px 24px; }
.auth-panel-header { display: flex; align-items: center; justify-content: flex-end; min-height: 42px; }
.auth-panel-header .theme-control button { width: 35px; height: 32px; }
.auth-panel-header .theme-control span { display: none; }
.mobile-brand { display: none; }
.auth-form-wrap { max-width: 368px; width: 100%; margin: auto; padding: 60px 0; }
.login-mark { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 26px; color: var(--ink); }
.login-mark .brand-mark { width: 25px; height: 25px; }
.login-heading .eyebrow { font-size: var(--text-compact); margin-bottom: 12px; }
.login-heading h1 { font-weight: 600; font-size: 31px; letter-spacing: -.055em; line-height: 1.2; }
.login-heading > p:last-child { font-size: 13px; color: var(--secondary); margin-top: 11px; }
.login-form { margin-top: 31px; }
.field-group { margin-bottom: 19px; }
.field-group > label { display: block; font-size: 13px; margin-bottom: 8px; font-weight: 500; }
.form-control { min-height: 45px; border: 1px solid var(--strong-line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 14px; padding: 11px 13px; }
.form-control::placeholder { color: var(--muted); }
.form-control:focus { background: var(--surface); color: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); outline: none; }
.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.password-field .icon-button { position: absolute; top: 5px; right: 5px; }
.password-field .icon { width: 17px; height: 17px; }
.remember-me { display: flex; align-items: center; gap: 9px; margin: 1px 0 24px; font-size: 11px; color: var(--secondary); cursor: pointer; }
.form-check-input { margin: 0; width: 15px; height: 15px; border-color: var(--strong-line); border-radius: 3px !important; cursor: pointer; }
.form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
[data-bs-theme="dark"] .form-check-input:checked { --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23181818' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
.form-check-input:focus { box-shadow: 0 0 0 3px var(--line); border-color: var(--ink); }
.sign-in-button { width: 100%; justify-content: space-between; }
.sign-in-button .icon { width: 18px; height: 18px; }
.sign-in-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: var(--text-compact); color: var(--muted); margin-top: 17px; }
.sign-in-note .icon { width: 12px; height: 12px; }
.demo-accounts { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 19px; }
.demo-accounts > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; font-size: 11px; font-weight: 500; color: var(--secondary); list-style: none; min-height: 25px; }
.demo-accounts summary > span { display: flex; align-items: center; gap: 9px; }
.demo-accounts .icon { width: 15px; height: 15px; }
.demo-accounts[open] > summary > .icon { transform: rotate(180deg); }
.demo-account-content > p:first-child { font-size: var(--text-compact); color: var(--muted); margin: 14px 0 10px; }
.demo-account-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.demo-account-option { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; background: var(--subtle); border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; }
.demo-account-option:hover, .demo-account-option.is-selected { border-color: var(--ink); }
.demo-account-option strong { font-size: 11px; font-weight: 600; }
.demo-account-option span { font-size: var(--text-compact); color: var(--muted); }
.demo-credential-note { margin-top: 10px; font-size: var(--text-compact); color: var(--muted); }
.demo-credential-note code { font-size: inherit; color: var(--secondary); margin-left: 4px; }
.auth-panel-footer { text-align: center; color: var(--muted); font-size: var(--text-compact); display: flex; justify-content: space-between; gap: 12px; }
.form-message { padding: 12px 14px; margin: 18px 0; border: 1px solid var(--semantic-danger-line); border-left: 3px solid var(--semantic-danger); background: var(--semantic-danger-bg); color: var(--ink); font-size: 12px; border-radius: 4px; }
.form-message.info-message { border-color: var(--semantic-info-line); border-left-color: var(--semantic-info); background: var(--semantic-info-bg); }
.form-message.validation-summary-valid { display: none; }
.form-message ul { margin: 0; padding-left: 15px; }
.field-error { display: block; margin-top: 5px; color: var(--semantic-danger); font-size: 11px; font-weight: 500; }
.field-error:empty { display: none; }
.input-validation-error { border-color: var(--ink); }

/* Responsive shell: full sidebar, compact rail, then modal navigation. */
@media (min-width: 992px) {
    .app-sidebar { position: fixed; inset: 0 auto 0 0; height: 100dvh; width: var(--sidebar-width); z-index: 101; }
    .workspace-shell { margin-left: var(--sidebar-width); }
    [data-nav="compact"] { --sidebar-width: 76px; }
    [data-nav="compact"] .sidebar-brand { padding-inline: 23px; }
    [data-nav="compact"] .brand-name,
    [data-nav="compact"] .workspace-identity,
    [data-nav="compact"] .nav-parent > span,
    [data-nav="compact"] .nav-children,
    [data-nav="compact"] .account-description,
    [data-nav="compact"] .account-menu summary > .icon,
    [data-nav="compact"] .sidebar-appearance { display: none; }
    [data-nav="compact"] .nav-parent { justify-content: center; padding: 13px; }
    [data-nav="compact"] .sidebar-nav { padding: 0 10px 20px; }
    [data-nav="compact"] .nav-section-label { font-size: 0; border-top: 1px solid var(--line); padding: 0; margin: 0 8px 12px; }
    [data-nav="compact"] .nav-section + .nav-section { margin-top: 18px; }
    [data-nav="compact"] .sidebar-bottom { padding: 12px 10px 16px; }
    [data-nav="compact"] .account-menu { margin: 0; }
    [data-nav="compact"] .account-menu summary { justify-content: center; }
    [data-nav="compact"] .account-popover { left: 54px; bottom: 0; }
}
@media (min-width: 1600px) {
    .workspace-content { padding-top: 54px; }
    .page-heading { margin-bottom: 48px; }
    .metric-placeholder { min-height: 150px; }
    .portfolio-canvas { min-height: 290px; }
    .attention-intro { padding-top: 16px; padding-bottom: 24px; }
    .ghost-row { min-height: 56px; }
}
@media (max-width: 1199.98px) {
    .workspace-content { padding: 32px 26px 20px; }
    .workspace-header { padding: 0 22px; }
    .workspace-footer { margin-inline: 26px; }
    .header-actions { gap: 14px; }
    .search-trigger { min-width: 0; padding: 8px; }
    .search-trigger span, .search-trigger kbd { display: none; }
    .search-trigger .icon { width: 17px; height: 17px; }
    .metric-placeholder { padding: 17px 15px; }
    .metric-placeholder h3 { font-size: 11px; }
    .metrics-grid { gap: 10px; }
    .panel-header { padding-inline: 19px; }
    .panel-overline { font-size: var(--text-compact); }
    .auth-story { padding: 35px 40px; }
    .auth-panel { padding-inline: 34px; }
    .auth-panel-footer { flex-direction: column; gap: 3px; }
}
@media (max-width: 991.98px) {
    .app-sidebar { --bs-offcanvas-width: 280px; }
    .nav-parent { min-height: 44px; }
    .nav-child { min-height: 40px; }
    .theme-control button { min-height: 40px; }
    .workspace-header .icon-button, .workspace-header .search-trigger { width: 40px; height: 40px; justify-content: center; }
    .sidebar-close, .mobile-nav-toggle { display: inline-flex; }
    .desktop-nav-toggle { display: none; }
    .workspace-header { height: 64px; padding-inline: 24px; }
    .workspace-content { padding: 32px 28px 22px; }
    .workspace-footer { margin-inline: 28px; }
    .sidebar-brand { height: 74px; }
    .page-heading h1 { font-size: 32px; }
    .search-trigger { border: 0; background: transparent; }
    .dashboard-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; }
    .page-heading { margin-bottom: 31px; }
    .auth-story { padding: 32px; }
    .auth-story h2 { font-size: 54px; }
    .auth-story-copy .eyebrow { max-width: 220px; line-height: 1.8; }
    .auth-story-description { font-size: 19px; }
    .auth-story-footer > span:last-child { display: none; }
    .auth-panel { padding-inline: 30px; }
    .login-heading h1 { font-size: 28px; }
}
@media (max-width: 767.98px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-story { display: none; }
    .auth-panel { min-height: 100dvh; padding: 23px 28px; }
    .auth-panel-header { justify-content: space-between; }
    .mobile-brand { display: inline-flex; }
    .mobile-brand .brand-name { font-size: 19px; }
    .mobile-brand .brand-mark { width: 25px; height: 25px; }
    .auth-form-wrap { max-width: 400px; padding: 48px 0; }
    .login-mark { display: none; }
    .login-heading h1 { font-size: 32px; }
    .auth-panel-footer { padding-bottom: 5px; font-size: var(--text-compact); }
    .field-group > label, .remember-me, .login-heading > p:last-child { font-size: 13px; }
    .form-control { font-size: 16px; min-height: 49px; }
    .password-field .icon-button { top: 7px; }
    .sign-in-button { min-height: 48px; font-size: 14px; }
    .demo-accounts > summary { min-height: 32px; font-size: 12px; }
    .auth-panel-header .theme-control button { min-height: 40px; width: 38px; }
    .workspace-content { padding: 29px 24px 20px; }
    .workspace-header { padding: 0 18px; gap: 10px; }
    .header-location, .header-actions { gap: 10px; }
    .breadcrumbs { gap: 10px; }
    .page-heading { align-items: flex-start; gap: 14px; }
    .page-heading > .outline-badge { display: none; }
    .page-heading h1 { font-size: 30px; }
    .page-heading .eyebrow { font-size: var(--text-compact); }
    .page-description { font-size: 13px; max-width: 330px; }
    .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .metric-placeholder { padding: 19px 18px; }
    .metric-placeholder h3 { font-size: 11px; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 16px; }
    .portfolio-canvas { min-height: 250px; }
    .attention-intro { display: flex; align-items: center; gap: 24px; padding-top: 0; }
    .attention-intro .panel-overline { max-width: 100px; line-height: 1.8; }
    .attention-intro p { font-size: 16px; margin-top: 0; }
    .ghost-list { padding-bottom: 13px; }
    .ghost-row { min-height: 50px; }
    .panel-overline { font-size: var(--text-compact); }
    .workspace-footer { margin-inline: 24px; flex-direction: column; justify-content: center; gap: 6px; padding-block: 16px; }
    .preview-note { justify-content: flex-start; margin-top: 18px; }
    .preview-note p { font-size: var(--text-compact); line-height: 1.7; }
    .preview-note .icon { margin-top: 3px; flex-shrink: 0; }
    .destination-placeholder { min-height: 380px; }
    .command-dialog { margin-top: 24px; }
}
@media (max-width: 479.98px) {
    .workspace-content { padding: 26px 18px 20px; }
    .workspace-header { padding: 0 12px; }
    .header-location, .header-actions { gap: 5px; }
    .breadcrumbs > span:first-child, .breadcrumb-divider { display: none; }
    .breadcrumbs { font-size: 13px; margin-left: 2px; }
    .demo-badge { font-size: 11px; padding-right: 6px; }
    .header-theme { width: 32px; }
    .page-heading h1 { font-size: 28px; }
    .overview-label > span { font-size: var(--text-compact); }
    .metric-placeholder { padding: 17px 14px; min-height: 128px; }
    .metric-placeholder h3 { font-size: 11px; }
    .metric-placeholder .icon { width: 14px; height: 14px; }
    .panel-header { padding: 19px 18px; }
    .panel-header h2 { font-size: 12px; }
    .panel-header .panel-overline { font-size: var(--text-compact); }
    .radar-placeholder { gap: 12px; padding-inline: 20px; }
    .radar-placeholder > div + div { padding-left: 12px; }
    .workspace-footer { margin-inline: 18px; font-size: var(--text-compact); }
    .auth-panel { padding: 20px 24px; }
    .auth-form-wrap { padding-block: 45px; }
    .sign-in-note { font-size: var(--text-compact); }
    .command-search { padding-inline: 12px; gap: 8px; }
    .command-search input { font-size: 12px; }
}
@media (max-width: 359.98px) {
    .workspace-content { padding-inline: 14px; }
    .page-heading h1 { font-size: 25px; }
    .metric-placeholder > div { gap: 4px; }
    .metric-placeholder { padding-inline: 12px; }
    .demo-badge { display: none; }
    .auth-panel { padding-inline: 20px; }
    .login-heading h1 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
