/* Mashero Bank - private capital interface v5. No external assets or frameworks. */
:root {
  color-scheme: light;
  --page: #f5f6f7;
  --surface: #ffffff;
  --surface-soft: #fafbfc;
  --ink: #1b2d3f;
  --ink-strong: #0c2132;
  --muted: #6f7d89;
  --subtle: #9ba5ae;
  --line: #e5e9ed;
  --line-strong: #d3dbe2;
  --accent: #9c8361;
  --blue: #264f6a;
  --positive: #16745e;
  --negative: #b84b55;
  --soft-positive: #edf6f2;
  --soft-negative: #fff0f0;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 4px 20px rgba(18,39,58,.035);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 13px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
[hidden] { display: none !important; }
::selection { color: var(--ink-strong); background: #dfd9cb; }
:focus-visible { outline: 2px solid #829eb3; outline-offset: 3px; }
svg { display: block; }
::-webkit-scrollbar { width: 9px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c5ced5; border: 2px solid var(--page); border-radius: 8px; }

/* Shell / navigation */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; height: 100vh; padding: 34px 18px 22px; border-right: 1px solid #e5e9ec; background: #fff; position: fixed; left: 0; top: 0; z-index: 31; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 13px; padding: 0 10px; height: 52px; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 9px; background: #172d40; color: #e5d8be; display: grid; place-items: center; }
.brand-mark svg { width: 27px; height: 27px; }
.brand-copy { display: flex; flex-direction: column; white-space: nowrap; line-height: 1.1; gap: 7px; }
.brand-copy strong { font-size: 19px; letter-spacing: -.7px; color: #142a3c; font-weight: 780; }
.brand-copy strong span { color: #857256; }
.brand-copy small { font-size: 9px; font-weight: 730; letter-spacing: 2.05px; color: #8e9ba7; }
.sidebar-divider { height: 1px; background: #e9edf0; margin: 35px 9px 29px; }
.sidebar-group-label { font-size: 10px; font-weight: 750; letter-spacing: 1.2px; text-transform: uppercase; color: #8793a0; padding: 0 16px; margin-bottom: 13px; }
.side-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-link { min-height: 48px; border-radius: 7px; color: #6c7b89; display: flex; align-items: center; gap: 14px; padding: 0 13px; font-weight: 600; font-size: 12px; transition: color .15s, background .15s; position: relative; }
.nav-link:hover { color: #182c3e; background: #f5f7f9; }
.nav-link.active { background: #eef2f5; color: #172c3e; font-weight: 750; }
.nav-link.active::before { content: ''; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: #9b8666; }
.nav-icon { width: 19px; height: 19px; color: #8795a3; flex: 0 0 19px; }
.nav-icon svg { width: 19px; height: 19px; }
.nav-link.active .nav-icon { color: #1d394e; }
.nav-number { font-size: 10px; font-weight: 500; color: #a9b2ba; margin-left: auto; }
.sidebar-spacer { flex: 1; min-height: 22px; }
.status-card { border: 1px solid #e4e9ed; border-radius: 9px; background: #fafbfc; padding: 15px; }
.status-head { display: flex; align-items: center; gap: 8px; font-weight: 720; color: #354b5e; font-size: 11px; }
.status-led { width: 7px; height: 7px; border-radius: 50%; background: #b5bfc8; display: inline-block; }
.status-led.online { background: #268a6a; box-shadow: 0 0 0 3px #d9ebe3; }
.status-card p { margin: 8px 0 12px; font-size: 10px; color: #7b8b98; line-height: 1.65; }
.status-tag { color: #8696a1; font-size: 9px; font-weight: 620; }
.sidebar-assurance { display: flex; gap: 10px; align-items: center; padding: 19px 10px; color: #7e8b96; font-size: 10px; line-height: 1.6; }
.sidebar-assurance svg { width: 18px; height: 18px; color: #90a3ad; }
.sidebar-footer { display: flex; justify-content: space-between; padding: 15px 10px 0; border-top: 1px solid #edf0f2; color: #a1a9b1; font-size: 9px; }
.workspace { width: calc(100% - 250px); margin-left: 250px; min-width: 0; }

/* Topbar and page heading */
.topbar { height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(25px, 3.15vw, 52px); border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 28; }
.top-left, .top-right { display: flex; align-items: center; min-width: 0; }
.top-left { gap: 18px; }
.topbar-route { display: flex; align-items: center; gap: 12px; white-space: nowrap; color: #8593a0; font-weight: 550; font-size: 12px; }
.topbar-route strong { color: #1c354a; font-weight: 720; }
.topbar-split { color: #bcc4cb; }
.top-right { margin-left: auto; gap: 17px; }
.timezone-chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 11px; color: #728291; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #a3b4c2; }
.refresh-button { width: 34px; height: 34px; border: 1px solid #e1e7eb; border-radius: 8px; background: #fff; color: #5d7384; display: grid; place-items: center; }
.refresh-button svg { width: 16px; height: 16px; }
.refresh-button:hover { background: #f3f6f8; }
.topbar-divider { display: block; height: 30px; width: 1px; background: #e3e8eb; }
.account-button { border: 0; border-radius: 8px; padding: 5px 3px 5px 0; display: flex; align-items: center; gap: 11px; background: transparent; text-align: left; color: var(--ink); }
.account-button:hover .account-info strong { color: #57748c; }
.account-avatar { display: grid; place-items: center; width: 37px; height: 37px; background: #eaeef2; border: 1px solid #e1e6ec; border-radius: 50%; color: #324f66; font-size: 14px; font-weight: 750; }
.account-info { display: flex; flex-direction: column; line-height: 1.35; gap: 4px; }
.account-info strong { font-size: 11px; color: #263b50; font-weight: 750; }
.account-info small { font-size: 10px; color: #919ca5; }
.account-chevron { width: 17px; height: 17px; color: #91a0ab; margin-left: 7px; }
.main-content { padding: 42px clamp(25px, 3.15vw, 52px) 28px; width: 100%; max-width: 1780px; margin: 0 auto; }
.heading-block { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin: 0 0 29px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #8a98a4; font-size: 10px; font-weight: 780; letter-spacing: 1.05px; text-transform: uppercase; }
.eyebrow.muted { font-size: 10px; color: #8998a5; }
.eyebrow-separator { color: #c0c7cb; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 9px 0 6px; color: #192e41; font-size: clamp(32px, 3.1vw, 43px); line-height: 1.19; letter-spacing: -1.7px; font-weight: 710; }
.heading-sub { font-size: 12px; color: #81909b; margin: 0; line-height: 1.6; }
.heading-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; padding-bottom: 1px; }
.filter-label { color: #7d8c98; font-size: 10px; font-weight: 650; }
.segmented, .stock-threshold, .stock-tabs { display: inline-flex; align-items: center; background: #e9eef2; border-radius: 7px; padding: 3px; gap: 2px; }
.segmented button, .stock-threshold button, .stock-tabs button { border: 0; color: #7c8b97; background: transparent; font-size: 11px; border-radius: 5px; padding: 9px 13px; font-weight: 680; white-space: nowrap; transition: background .15s, color .15s; }
.segmented button.active, .stock-threshold button.active, .stock-tabs button.active { background: #fff; color: #233d52; box-shadow: 0 1px 5px rgba(21,47,67,.09); }
.segmented button:hover:not(.active), .stock-threshold button:hover:not(.active), .stock-tabs button:hover:not(.active) { color: #1f3a50; }
.notice { padding: 12px 16px; border: 1px solid #e9d9bc; background: #fffbf3; color: #8b6c3a; border-radius: 8px; font-size: 11px; line-height: 1.6; margin: -6px 0 20px; }

/* Capital statement and leaders */
.hero-row { display: grid; grid-template-columns: minmax(0,1.21fr) minmax(340px,.95fr); gap: 18px; margin-bottom: 18px; align-items: stretch; }
.capital-card { min-height: 344px; background: #182f42; color: #fff; border: 1px solid #294358; border-radius: 10px; padding: 29px 33px 25px; position: relative; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.capital-card::before { content: ''; position: absolute; inset: 0 0 0 52%; background: repeating-linear-gradient(90deg,transparent 0 40px,rgba(211,223,232,.06) 41px,transparent 42px),repeating-linear-gradient(0deg,transparent 0 40px,rgba(211,223,232,.045) 41px,transparent 42px); -webkit-mask-image: linear-gradient(90deg, transparent, black); mask-image: linear-gradient(90deg, transparent, black); z-index: -1; }
.capital-ornament { position: absolute; right: -110px; top: -172px; width: 420px; height: 420px; border: 1px solid rgba(244,239,226,.12); border-radius: 50%; z-index: -1; }
.capital-ornament::before, .capital-ornament::after { content: ''; position: absolute; inset: 34px; border: 1px solid rgba(244,239,226,.075); border-radius: 50%; }
.capital-ornament::after { inset: 80px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #bccbd6; font-size: 10px; font-weight: 780; letter-spacing: 1px; position: relative; }
.capital-indicator { color: #e7decf; display: inline-flex; align-items: center; font-size: 9px; gap: 8px; letter-spacing: .75px; border: 1px solid rgba(231,221,202,.25); border-radius: 50px; padding: 7px 11px; }
.capital-indicator-dot { width: 5px; height: 5px; background: #c6b48d; border-radius: 50%; }
.capital-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 19px 0 20px; min-width: 0; }
.capital-number { color: #fff; font-size: clamp(42px,4.3vw,66px); font-weight: 600; line-height: 1.15; letter-spacing: -2.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.capital-sublabel { color: #9eafbc; font-size: 11px; padding-top: 12px; }
.capital-bottom { border-top: 1px solid rgba(224,233,241,.21); padding-top: 21px; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 17px; position: relative; }
.capital-mini { display: flex; flex-direction: column; gap: 3px; }
.capital-mini + .capital-mini { border-left: 1px solid rgba(224,233,241,.15); padding-left: 22px; }
.capital-mini > span { color: #aebfcc; font-size: 9px; font-weight: 750; letter-spacing: .7px; }
.capital-mini strong { font-size: 20px; font-weight: 650; line-height: 1.4; letter-spacing: -.4px; color: #fff; font-variant-numeric: tabular-nums; }
.capital-mini small { color: #b1becb; font-size: 10px; }
.capital-mini b { color: #d6e6dc; font-weight: 680; }
.capital-arrow { display: none; }
.spotlight-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; min-height: 344px; padding: 24px 25px 0; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow); }
.spotlight-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9px; color: #8c9aa6; font-weight: 770; letter-spacing: 1.0px; }
.spotlight-more { color: #48667b; letter-spacing: 0; font-size: 11px; font-weight: 650; white-space: nowrap; }
.spotlight-more span { font-size: 16px; vertical-align: -1px; margin-left: 4px; }
.spotlight-more:hover { color: #1f425e; }
.spotlight-title { margin: 14px 0 20px; }
.spotlight-title h2 { font-size: 22px; letter-spacing: -.55px; color: #23394d; margin: 0 0 3px; font-weight: 720; }
.spotlight-title p { color: #83919e; font-size: 11px; margin: 0; }
.spotlight-columns { display: grid; grid-template-columns: minmax(0,1fr) 66px 91px; gap: 8px; border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: .2px; color: #94a1ab; padding: 0 0 10px 28px; }
.spotlight-columns span:nth-child(n+2) { text-align: right; }
.spotlight-list { flex: 1; display: flex; flex-direction: column; min-height: 137px; }
.spotlight-empty { color: #87949f; font-size: 11px; line-height: 1.6; margin: auto; text-align: center; max-width: 280px; padding: 12px 0; }
.spotlight-item { display: grid; grid-template-columns: 20px minmax(0,1fr) 66px 91px; align-items: center; gap: 8px; min-height: 54px; border-bottom: 1px solid #eff2f4; }
.spotlight-item:last-child { border-bottom: 0; }
.spotlight-num { font-size: 10px; color: #a6afb8; font-weight: 650; }
.spotlight-company { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.spotlight-company strong { font-weight: 760; color: #2c4255; font-size: 12px; }
.spotlight-company small { font-size: 9px; color: #9ba7b1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spotlight-win { color: #365669; font-size: 12px; font-weight: 740; text-align: right; font-variant-numeric: tabular-nums; }
.spotlight-net { color: var(--positive); font-size: 11px; text-align: right; font-weight: 730; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spotlight-bottom { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); font-size: 10px; color: #a1abb3; }
.spotlight-bottom span:first-child { font-weight: 730; color: #526a7e; }

/* KPI tiles */
.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.kpi { min-width: 0; min-height: 145px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: 19px 20px 15px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; color: #788895; font-weight: 650; }
.kpi-icon { color: #b8c1c9; font-size: 10px; font-weight: 700; }
.kpi-value { font-size: clamp(23px,2.0vw,31px); line-height: 1.28; font-weight: 730; letter-spacing: -.85px; margin: 16px 0 10px; color: #23394b; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-bottom { border-top: 1px solid #eef0f2; margin-top: auto; padding-top: 11px; display: flex; justify-content: space-between; gap: 8px; color: #9aa7b0; font-size: 9px; line-height: 1.45; }
.kpi-bottom span:last-child { text-align: right; }
.kpi-bottom b { color: var(--positive); font-weight: 690; }

/* Charts and financial reports */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.chart-and-summary { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(270px,.7fr); gap: 18px; align-items: stretch; }
.graph-card, .daily-card, .forecast-graph { padding: 24px 26px 0; }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.panel-header h2 { font-size: 19px; font-weight: 735; letter-spacing: -.55px; color: #243c50; margin: 6px 0 4px; }
.panel-header p { font-size: 11px; color: #8897a3; margin: 0; }
.legend { display: flex; gap: 17px; align-items: center; flex-wrap: wrap; font-size: 10px; color: #7c8b98; margin-top: 4px; white-space: nowrap; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }
.legend-dot.main-line { background: #2d5672; }
.legend-dot.deposits-line { background: #b4a285; }
.legend-dot.violet-line { background: #ac9a84; }
.legend-dot.positive-line { background: #247b65; }
.legend-dot.negative-line { background: #be6570; }
.chart-container { position: relative; height: 268px; width: 100%; margin-top: 20px; }
.chart-container canvas { display: block; width: 100%; height: 100%; }
.chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 11px; color: #a0acb7; }
.chart-tooltip { position: absolute; pointer-events: none; width: 170px; background: rgba(20,39,54,.95); color: #fff; border: 1px solid rgba(255,255,255,.13); font-size: 10px; line-height: 1.6; border-radius: 6px; padding: 9px 12px; z-index: 8; box-shadow: 0 4px 18px #162c3a2b; }
.panel-footer { margin-top: 4px; border-top: 1px solid #eff1f3; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #9ba7b0; font-size: 9px; font-weight: 650; letter-spacing: .4px; }
.summary-stack { display: grid; grid-template-rows: repeat(2,minmax(0,1fr)); gap: 18px; }
.stat-aside { min-height: 0; padding: 23px 23px 18px; display: flex; flex-direction: column; }
.aside-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #8796a2; font-size: 10px; font-weight: 730; letter-spacing: .45px; }
.aside-mark { font-size: 10px; color: #aab6c0; }
.aside-value { font-size: 29px; font-weight: 735; letter-spacing: -.8px; color: #293f52; margin: 10px 0 1px; line-height: 1.2; }
.aside-unit { font-size: 12px; letter-spacing: 0; color: #8d9aa6; font-weight: 700; }
.stat-aside p { font-size: 10px; color: #93a0ab; margin: 0; }
.aside-line { width: 100%; height: 1px; background: #e9edf0; margin: auto 0 11px; min-height: 1px; }
.stat-aside > span:last-child { color: #a1adb7; font-size: 9px; }
.aside-pair { display: flex; justify-content: space-between; gap: 10px; color: #8795a2; font-size: 10px; }
.aside-pair strong { color: var(--negative); font-weight: 750; }
.section-title { margin: 42px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.section-title h2 { font-size: 24px; margin: 7px 0 5px; letter-spacing: -.75px; font-weight: 735; color: #233a4f; }
.section-title p { color: #8996a2; font-size: 11px; margin: 0; line-height: 1.55; }
.stock-toolbar, .rolling-control { display: flex; align-items: center; gap: 12px; padding-bottom: 3px; }
.stock-threshold button { min-width: 32px; padding: 7px 9px; }
.stock-panel { overflow: hidden; }
.stock-panel-top { padding: 17px 24px; min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.stock-panel-copy { display: flex; flex-direction: column; gap: 3px; }
.stock-stamp { font-size: 9px; font-weight: 710; color: #9ba6b1; letter-spacing: .3px; }
.stock-panel-copy strong { color: #53697c; font-weight: 680; font-size: 11px; }
.stock-tabs { background: #f1f4f6; }
.stock-tabs button { padding: 8px 12px; }
.table-scroll { width: 100%; overflow: auto; }
.stocks-table, .trades-table { width: 100%; border-collapse: collapse; border-spacing: 0; white-space: nowrap; text-align: left; font-size: 11px; }
.stocks-table { min-width: 960px; }
.trades-table { min-width: 720px; }
.stocks-table th, .trades-table th { color: #82919e; font-size: 10px; font-weight: 690; background: #f7f9fa; padding: 13px 17px; border-top: 1px solid #edf0f2; border-bottom: 1px solid #edf0f2; }
.stocks-table th:first-child, .trades-table th:first-child { padding-left: 24px; }
.stocks-table td, .trades-table td { padding: 15px 17px; border-bottom: 1px solid #edf0f2; color: #385064; font-variant-numeric: tabular-nums; }
.stocks-table td:first-child, .trades-table td:first-child { padding-left: 24px; }
.stocks-table tbody tr:hover, .trades-table tbody tr:hover { background: #f8fafb; }
.stocks-table tbody tr:last-child td, .trades-table tbody tr:last-child td { border-bottom: 0; }
.stock-rank { font-size: 11px; color: #97a4ae!important; font-weight: 700; }
.stock-symbol { display: flex; align-items: center; gap: 10px; min-width: 144px; }
.stock-logo { width: 31px; height: 31px; border: 1px solid #e4e8ec; background: #f0f3f5; color: #3c5a70; border-radius: 7px; display: grid; place-items: center; font-weight: 780; font-size: 12px; }
.stock-name { display: flex; flex-direction: column; gap: 2px; }
.stock-name strong { font-weight: 790; color: #2b455a; font-size: 11px; }
.stock-name small { color: #9aa6b0; font-size: 10px; max-width: 150px; text-overflow: ellipsis; overflow: hidden; }
.stock-win-rate { font-weight: 750; color: #355c71; }
.stock-win-meter { height: 3px; width: 78px; margin-top: 6px; border-radius: 4px; background: #e3ebef; overflow: hidden; }
.stock-win-meter span { height: 100%; display: block; background: #587f93; border-radius: 4px; }
.stocks-table td.stock-gain, .trades-table td.net-profit { color: var(--positive); font-weight: 730; }
.stocks-table td.stock-loss, .trades-table td.net-loss { color: var(--negative); font-weight: 730; }
.stock-score { color: #647f8f !important; font-weight: 720; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-width: 86px; font-size: 10px; padding: 5px 8px; border: 1px solid #e2e8ec; border-radius: 5px; color: #7a8995; background: #f7f9fa; }
.status-pill.priority { background: #eaf4ef; border-color: #d9e9df; color: #287054; font-weight: 750; }
.status-pill.negative { background: #fff1f2; border-color: #f3e0e1; color: #b4505b; }
.no-trades { padding: 28px 20px !important; text-align: center; color: #a2aeb8!important; font-size: 11px; }
.stock-panel-footer { display: flex; align-items: flex-start; gap: 11px; background: #fbfcfc; border-top: 1px solid #edf0f2; color: #91a0ab; font-size: 10px; line-height: 1.65; padding: 13px 24px; }
.method-icon { border: 1px solid #cfd9e0; border-radius: 50%; flex: 0 0 17px; height: 17px; display: grid; place-items: center; color: #7c90a0; font-size: 10px; font-weight: 750; }
.rolling-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.rolling-card { min-height: 168px; padding: 23px 24px 20px; }
.rolling-head { display: flex; justify-content: space-between; align-items: center; color: #82929e; font-size: 10px; font-weight: 760; letter-spacing: .55px; }
.rolling-arrow { color: #7f93a1; font-size: 17px; font-weight: 600; }
.rolling-arrow.up { color: var(--positive); }
.rolling-arrow.down { color: var(--negative); }
.rolling-card h3 { font-size: 34px; font-weight: 720; color: #263d50; margin: 11px 0 12px; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.rolling-card:first-child h3 { color: #26735e; }
.rolling-card:nth-child(2) h3 { color: var(--negative); }
.rolling-bottom { border-top: 1px solid #edf0f2; padding-top: 12px; display: flex; justify-content: space-between; gap: 10px; color: #8d9ca7; font-size: 10px; }
.rolling-bottom strong { color: #647d8f; font-weight: 720; }
.daily-card { margin-top: 18px; }
.small-chart { height: 230px; }
.daily-card .chart-container { margin-bottom: 18px; }
.outline-btn { display: flex; align-items: center; gap: 20px; min-height: 36px; padding: 0 15px; font-size: 11px; font-weight: 730; border: 1px solid #d6dfe6; color: #35586f; background: #fff; border-radius: 7px; white-space: nowrap; }
.outline-btn span { font-size: 17px; }
.outline-btn:hover { border-color: #9dafbd; background: #f7fafb; }
.forecast-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(255px,.7fr); gap: 18px; }
.forecast-graph { display: flex; flex-direction: column; }
.forecast-canvas { min-height: 267px; flex: 1; }
.forecast-warning { border-top: 1px solid #eaf0f3; padding: 14px 0 16px; display: flex; align-items: flex-start; gap: 9px; font-size: 10px; line-height: 1.65; color: #8594a0; }
.warning-icon { border: 1px solid #b7c4ce; color: #8296a5; border-radius: 50%; width: 15px; height: 15px; line-height: 13px; font-size: 10px; text-align: center; flex: 0 0 15px; }
.forecast-stats { display: grid; grid-template-rows: repeat(2,minmax(0,1fr)) auto; gap: 18px; }
.forecast-stat { min-height: 130px; padding: 21px 22px 18px; }
.forecast-stat-title { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 750; color: #84939f; letter-spacing: .25px; }
.forecast-stat-title span { color: #b1bbc3; }
.forecast-big { font-size: 29px; margin: 8px 0 6px; font-weight: 725; color: #284357; letter-spacing: -.9px; font-variant-numeric: tabular-nums; }
.forecast-copy { font-size: 11px; color: #8c99a5; }
.forecast-copy strong { color: #274960; font-weight: 750; }
.forecast-goal { background: #e9edf0; border-color: #dfe6eb; padding: 17px 21px; }
.goal-tag { font-size: 10px; font-weight: 760; color: #7e909d; letter-spacing: .5px; }
.goal-value { font-size: 22px; color: #213e53; font-weight: 750; margin: 6px 0; letter-spacing: -.75px; font-variant-numeric: tabular-nums; }
.goal-bottom { display: flex; align-items: center; justify-content: space-between; color: #758b9b; font-size: 10px; gap: 10px; }
.trades-title { margin-top: 43px; }
.trade-caption { color: #8e9eab; font-size: 11px; padding-bottom: 6px; }
.trades-panel { overflow: hidden; }
.trades-table td:last-child, .trades-table th:last-child { text-align: right; padding-right: 24px; }
.trades-table td.instrument { font-weight: 730; color: #28465c; }
.footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid #e2e6e9; color: #9ba7b0; font-size: 10px; margin-top: 40px; padding: 21px 0 0; }

/* Account security / login */
.auth-gate { position: fixed; inset: 0; z-index: 100; background: #eef1f3; overflow: auto; display: grid; place-items: center; padding: 30px; }
.auth-shell { display: grid; grid-template-columns: minmax(350px,1fr) minmax(410px,.97fr); max-width: 1020px; min-height: 605px; width: 100%; box-shadow: 0 30px 90px rgba(25,43,56,.13); border: 1px solid #dee3e7; background: #fff; border-radius: 13px; overflow: hidden; }
.auth-intro { display: flex; flex-direction: column; justify-content: space-between; background: #1b3246; color: #fff; padding: 37px 46px 30px; position: relative; isolation: isolate; overflow: hidden; }
.auth-intro::before { content: ''; position: absolute; width: 580px; height: 580px; left: 160px; bottom: -230px; border: 1px solid rgba(226,231,230,.14); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.022); pointer-events: none; z-index: -1; }
.auth-brand { display: flex; align-items: center; gap: 13px; letter-spacing: -.6px; font-size: 20px; font-weight: 780; }
.auth-brand-symbol { display: grid; place-items: center; width: 38px; height: 38px; color: #e9d8b2; border: 1px solid rgba(231,220,195,.48); border-radius: 8px; }
.auth-brand-symbol svg { width: 25px; height: 25px; }
.auth-brand span > span { color: #c8b99b; }
.auth-brand small { display: block; color: #9cadb9; font-size: 9px; letter-spacing: 1.8px; margin-top: 2px; }
.auth-intro-content { max-width: 400px; }
.auth-intro-kicker { color: #b4c4cd; font-size: 10px; letter-spacing: 1.1px; font-weight: 750; margin-bottom: 20px; }
.auth-intro-content h2 { color: #fff; font-family: Georgia,'Times New Roman',serif; font-size: clamp(42px,4.7vw,59px); line-height: 1.1; font-weight: 400; letter-spacing: -1.5px; margin: 0 0 25px; }
.auth-intro-content h2 em { color: #cdbc99; font-style: normal; }
.auth-intro-content p { color: #b7c6d0; font-size: 13px; line-height: 1.8; max-width: 300px; }
.auth-intro-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9px; letter-spacing: 1.1px; color: #91a5b6; }
.auth-card { display: flex; align-items: center; justify-content: center; background: #fff; padding: 48px; }
.auth-card-content { width: min(100%,350px); }
.auth-logo { display: grid; place-items: center; width: 44px; height: 44px; background: #f0f3f5; border: 1px solid #e1e7eb; border-radius: 9px; color: #42627a; margin-bottom: 27px; }
.auth-logo svg { width: 23px; height: 23px; }
.auth-eyebrow { font-size: 10px; font-weight: 770; letter-spacing: 1.1px; color: #9d8c72; }
.auth-card h2 { font-size: 27px; font-weight: 720; letter-spacing: -.8px; line-height: 1.25; color: #20384c; margin: 12px 0 10px; }
.auth-card p { font-size: 12px; color: #8d9aa5; line-height: 1.7; margin: 0 0 28px; }
.auth-card form, .account-tab form { display: flex; flex-direction: column; }
.auth-card label, .account-tab label { font-size: 11px; font-weight: 690; color: #566c7c; margin-bottom: 8px; display: block; }
.auth-card input, .account-tab input, .account-tab select { min-height: 45px; width: 100%; background: #fafbfc; border: 1px solid #d8e0e6; border-radius: 7px; padding: 0 13px; color: #273f53; outline: none; margin-bottom: 17px; font-size: 12px; }
.auth-card input:focus, .account-tab input:focus, .account-tab select:focus { border-color: #7c9aab; background: #fff; box-shadow: 0 0 0 3px #e7eff3; }
.auth-card input::placeholder, .account-tab input::placeholder { color: #b0bac1; }
#otpField { display: flex; flex-direction: column; }
.login-submit, .drawer-primary { border: 1px solid #19374c; color: white; background: #1c3b52; border-radius: 7px; min-height: 45px; padding: 0 15px; font-weight: 735; font-size: 12px; display: flex; align-items: center; justify-content: space-between; }
.login-submit:hover, .drawer-primary:hover { background: #2c4e65; }
.login-submit span { font-size: 18px; }
.auth-assurance { border-top: 1px solid #e9edef; display: flex; align-items: center; gap: 9px; padding-top: 18px; margin-top: 22px; font-size: 10px; color: #81919e; }
.secure-check { color: #34816b; border: 1px solid #bfdacf; border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; font-weight: 900; }
.auth-note { font-size: 10px; color: #a5afb7; line-height: 1.6; margin-top: 17px; }
.form-error { margin: 0 0 14px; border: 1px solid #efd4d7; border-radius: 6px; background: #fff2f3; padding: 10px; font-size: 11px; color: #af4350; }
.drawer-backdrop { position: fixed; z-index: 79; inset: 0; background: rgba(16,29,40,.34); backdrop-filter: blur(2px); }
.account-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; background: #fff; width: min(100%,460px); padding: 30px 32px; overflow-y: auto; box-shadow: -12px 0 55px rgba(18,33,47,.13); border-left: 1px solid #e0e6ea; }
.drawer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drawer-top h2 { margin: 8px 0 24px; font-size: 28px; color: #1e384c; letter-spacing: -.75px; }
.close-drawer { border: 1px solid #e1e7eb; color: #6c8090; background: #f7f9fa; border-radius: 7px; width: 35px; height: 35px; font-size: 21px; display: grid; place-items: center; }
.profile-card { display: flex; align-items: center; gap: 13px; background: #f6f8fa; border: 1px solid #e4e9ec; border-radius: 9px; padding: 15px; }
.big-avatar { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; background: #dde7ee; color: #2e516b; border-radius: 50%; font-weight: 730; font-size: 17px; }
.profile-card > div { display: flex; flex-direction: column; gap: 2px; }
.profile-card strong { color: #2c4759; font-size: 12px; }
.profile-card small { color: #93a0aa; font-size: 11px; }
.profile-shield { margin-left: auto; font-weight: 760; color: #287959; }
.drawer-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; padding: 4px; margin: 21px 0 26px; background: #eef2f4; border-radius: 7px; }
.drawer-tabs button { border: 0; background: transparent; color: #8795a1; min-height: 35px; border-radius: 5px; font-size: 11px; font-weight: 680; }
.drawer-tabs button.active { background: #fff; color: #2b5068; box-shadow: 0 1px 4px #142c3c16; }
.account-tab { padding-bottom: 12px; }
.account-tab h3 { font-size: 17px; color: #203b50; margin: 0 0 7px; }
.account-tab p { color: #8696a2; font-size: 11px; line-height: 1.7; margin-bottom: 20px; }
.account-tab label { margin-top: 5px; }
.account-tab input, .account-tab select { margin-bottom: 14px; }
.drawer-primary { justify-content: center; width: 100%; margin-top: 5px; }
.drawer-secondary { background: #f4f7f8; color: #426276; border: 1px solid #d5e0e6; border-radius: 7px; font-weight: 690; font-size: 11px; padding: 11px; width: 100%; margin: 7px 0 15px; }
.drawer-secondary:hover { background: #eaf0f3; }
.security-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; border-radius: 7px; border: 1px solid #e3e9ed; padding: 14px; margin-bottom: 21px; color: #718596; }
.security-status strong { color: #27775e; }
.security-divider { height: 1px; background: #e6eaee; margin: 25px 0; }
.secret-warning { background: #fffbf1; border: 1px solid #eadfc7; color: #9a793f; border-radius: 7px; padding: 12px; font-size: 11px; margin: 6px 0 13px; }
.secret-code { display: block; padding: 12px; color: #344a5b; background: #f5f7f9; border: 1px solid #e0e6e9; overflow-wrap: anywhere; border-radius: 6px; font-size: 11px; margin-bottom: 14px; }
.drawer-feedback { min-height: 18px; color: #2b785d; font-size: 11px; padding: 10px 0; }
.drawer-feedback.error { color: var(--negative); }
.logout-button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 14px; background: #fff; border: 1px solid #e5d9db; color: #a75660; font-size: 11px; border-radius: 7px; font-weight: 710; }
.logout-button:hover { background: #fff8f8; }

@media (max-width: 1490px) {
  .sidebar { width: 224px; } .workspace { width: calc(100% - 224px); margin-left: 224px; }
  .main-content { padding: 35px 30px 28px; } .topbar { padding: 0 30px; }
  .capital-number { font-size: clamp(37px,3.8vw,58px); } .capital-card { padding: 26px 27px 22px; }
  .spotlight-card { padding: 23px 20px 0; }
  .kpi { padding: 17px 17px 14px; } .kpi-grid, .hero-row, .chart-and-summary, .summary-stack, .rolling-grid, .forecast-layout, .forecast-stats { gap: 14px; }
  .kpi-value { font-size: 26px; }
}
@media (max-width: 1150px) {
  .sidebar { width: 76px; padding: 27px 9px 17px; } .workspace { margin-left: 76px; width: calc(100% - 76px); }
  .brand { justify-content: center; padding: 0; } .brand-copy, .sidebar-divider, .sidebar-group-label, .nav-link > span:not(.nav-icon), .sidebar .status-card, .sidebar-assurance, .sidebar-footer { display: none; }
  .side-nav { margin-top: 44px; gap: 10px; } .nav-link { justify-content: center; padding: 0; min-height: 48px; } .nav-icon, .nav-icon svg { width: 21px; height: 21px; }
  .hero-row { grid-template-columns: minmax(0,1.05fr) minmax(340px,.95fr); }
  .chart-and-summary { grid-template-columns: 1fr; }
  .summary-stack { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; }
  .stat-aside { min-height: 155px; } .forecast-layout { grid-template-columns: 1fr; }
  .forecast-stats { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: auto; }
}
@media (max-width: 790px) {
  .topbar { padding: 0 23px; } .main-content { padding: 28px 23px 22px; }
  .heading-block { align-items: flex-start; flex-direction: column; gap: 19px; } .heading-actions { align-items: flex-start; }
  .hero-row { grid-template-columns: 1fr; } .capital-card { min-height: 302px; }
  .spotlight-card { min-height: 340px; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rolling-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rolling-grid .focus-card { grid-column: 1 / -1; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .forecast-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .forecast-goal { grid-column: 1 / -1; }
  .auth-shell { grid-template-columns: minmax(0,.85fr) minmax(0,1fr); } .auth-intro { padding: 32px; } .auth-card { padding: 32px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 77px; }
  .sidebar { top: auto; bottom: 0; right: 0; width: 100%; height: 65px; padding: 6px 7px; border-right: 0; border-top: 1px solid #d9e0e5; box-shadow: 0 -3px 17px #263a4c0a; }
  .sidebar .brand { display: none; } .side-nav { margin: 0; height: 100%; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 2px; }
  .nav-link { flex: 1; height: 52px; min-height: 52px; flex-direction: column; gap: 3px; justify-content: center; font-size: 9px; padding: 5px 1px; }
  .nav-link > span:not(.nav-icon) { display: none !important; }
  .nav-link::after { content: attr(data-short); font-size: 9px; color: inherit; font-weight: 650; white-space: nowrap; }
  .nav-link .nav-icon { height: 19px; width: 19px; } .nav-link .nav-icon svg { width: 19px; height: 19px; }
  .nav-link.active::before { display: none; } .nav-link.active { background: #edf1f4; }
  .workspace { width: 100%; margin-left: 0; }
  .topbar { height: 61px; padding: 0 16px; }
  .topbar-route { font-size: 11px; } .topbar-route > span:first-child, .topbar-split, .timezone-chip, .account-info, .account-chevron, .topbar-divider { display: none; }
  .top-right { gap: 10px; } .account-button { padding: 0; } .account-avatar { width: 35px; height: 35px; }
  .main-content { padding: 26px 15px 96px; }
  .heading-block { margin-bottom: 20px; gap: 17px; }
  .eyebrow { font-size: 9px; gap: 6px; letter-spacing: .55px; }
  .heading-block .eyebrow { flex-wrap: wrap; }
  h1 { font-size: 33px; letter-spacing: -1.25px; margin: 10px 0 4px; }
  .heading-sub { font-size: 11px; line-height: 1.6; }
  .segmented button { font-size: 10px; padding: 7px 12px; }
  .capital-card { min-height: 288px; padding: 22px 20px; } .card-topline { font-size: 9px; letter-spacing: .4px; }
  .capital-indicator { padding: 6px 8px; font-size: 8px; }
  .capital-number { font-size: clamp(34px,8.4vw,48px); letter-spacing: -1.8px; }
  .capital-bottom { gap: 8px; padding-top: 17px; } .capital-mini + .capital-mini { padding-left: 12px; }
  .capital-mini > span { font-size: 8px; letter-spacing: .1px; } .capital-mini strong { font-size: 16px; }
  .capital-mini small { font-size: 9px; }
  .spotlight-card { min-height: 330px; padding: 22px 19px 0; }
  .spotlight-title h2 { font-size: 20px; }
  .spotlight-columns { grid-template-columns: 1fr 58px 83px; gap: 6px; padding-left: 22px; }
  .spotlight-item { grid-template-columns: 14px minmax(0,1fr) 58px 83px; gap: 6px; }
  .spotlight-net { font-size: 10px; }
  .hero-row, .kpi-grid, .rolling-grid, .chart-and-summary, .summary-stack, .forecast-layout, .forecast-stats { gap: 11px; }
  .kpi { min-height: 130px; padding: 15px 13px 13px; }
  .kpi-label { font-size: 10px; } .kpi-value { font-size: clamp(22px,6vw,28px); margin: 13px 0 10px; }
  .kpi-bottom { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 8px; font-size: 9px; }
  .kpi-bottom span:last-child { text-align: left; }
  .graph-card, .daily-card, .forecast-graph { padding: 20px 15px 0; }
  .panel-header { flex-direction: column; gap: 11px; } .panel-header h2 { font-size: 18px; }
  .chart-container { height: 219px; margin-top: 10px; } .panel-footer { font-size: 8px; }
  .stat-aside { min-height: 153px; padding: 16px; }
  .aside-heading { font-size: 9px; } .aside-value { font-size: 25px; }
  .aside-pair { flex-direction: column; gap: 3px; }
  .section-title { margin-top: 34px; gap: 15px; } .section-title h2 { font-size: 22px; }
  .stock-toolbar, .rolling-control { flex-wrap: wrap; gap: 10px; }
  .stock-panel-top { align-items: flex-start; flex-direction: column; gap: 12px; padding: 15px; }
  .stock-tabs { width: 100%; } .stock-tabs button { flex: 1; padding: 8px 6px; font-size: 10px; }
  .rolling-grid { grid-template-columns: 1fr; } .rolling-grid .focus-card { grid-column: auto; }
  .rolling-card { min-height: 140px; padding: 19px; } .rolling-card h3 { font-size: 28px; margin: 11px 0; }
  .small-chart { height: 203px; }
  .forecast-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } .forecast-stat { padding: 17px 15px; min-height: 135px; }
  .forecast-stat-title { font-size: 9px; } .forecast-big { font-size: 24px; }
  .goal-value { font-size: 22px; }
  .footer { flex-direction: column; gap: 8px; font-size: 9px; padding-top: 17px; margin-top: 30px; }
  .auth-gate { padding: 0; } .auth-shell { grid-template-columns: 1fr; min-height: 100vh; border-radius: 0; border: 0; box-shadow: none; }
  .auth-intro { min-height: 190px; padding: 22px 25px; } .auth-intro-content { display: none; }
  .auth-intro-foot { margin-top: auto; }
  .auth-card { align-items: flex-start; padding: 35px 26px 50px; }
  .auth-card-content { width: 100%; max-width: 440px; }
  .auth-card h2 { font-size: 26px; }
  .account-drawer { width: 100%; padding: 24px 20px; }
}
@media (max-width: 379px) {
  .nav-link { font-size: 8px; } .topbar { padding: 0 11px; }
  .main-content { padding-left: 12px; padding-right: 12px; }
  .card-topline { align-items: flex-start; } .capital-indicator { margin-left: auto; }
  .capital-mini strong { font-size: 14px; } .spotlight-columns { font-size: 8px; }
  .kpi-value { font-size: 21px; } .kpi-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
/* Semantic result colors, applied only to real API numbers. */
#netProfit.value-positive, #avgDaily.value-positive { color: #237a60; }
#netProfit.value-negative, #avgDaily.value-negative, #profitRate.value-negative { color: #b84b55; }
#profitRate.value-positive { color: #266a57; }
#lastDayProfit.value-positive, #lastDayPct.value-positive { color: #d5e9df; }
#lastDayProfit.value-negative, #lastDayPct.value-negative { color: #ffd4d4; }
/* -------------------------------------------------------------
   MasheroCorporation / corporate financial center — UI v6
   No proprietary mark is drawn in CSS or SVG. Brand from source.
   ------------------------------------------------------------- */
:root {
  --page:#f4f5f4;--surface:#fff;--surface-soft:#fafbfa;
  --ink:#1b2a32;--ink-strong:#101e26;--muted:#758590;--subtle:#9eaab0;
  --line:#e4e8e8;--line-strong:#d9dfde;--accent:#bca887;--blue:#304d62;
  --positive:#1b7459;--negative:#b84852;--radius:11px;
  --shadow:0 4px 20px rgba(30,48,58,.025);
  --font: Inter, -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
body {background:var(--page);color:var(--ink);font-size:13px;}
html {scroll-padding-top:86px;}
/* Sidebar — restrained corporate navigation */
.sidebar {width:246px;padding:31px 17px 21px;background:#13222c;border-right:0;}
.workspace {width:calc(100% - 246px);margin-left:246px;}
.brand {height:54px;padding:0 10px;gap:11px;}
.brand-mark {display:none;background:#fff;color:#101820;border:0;border-radius:7px;width:42px;height:42px;flex-basis:42px;overflow:hidden;}
.brand-mark.has-official-logo {display:grid;}
.brand-mark img {height:100%;width:100%;object-fit:contain;padding:4px;}
.brand-copy {gap:6px;}
.brand-copy strong {color:#f4f5f6;font-size:19px;font-weight:730;letter-spacing:-.75px;}
.brand-copy strong span {color:#cbbda6;}
.brand-copy small {color:#9cabb0;font-size:9px;font-weight:700;letter-spacing:2.1px;}
.sidebar-divider {background:#30404a;margin:35px 10px 30px;}
.sidebar-group-label {color:#7e929d;font-size:9px;letter-spacing:1.35px;}
.nav-link {color:#a6b5bd;font-weight:560;min-height:49px;font-size:12px;margin:1px 0;}
.nav-link:hover {color:#fff;background:#1c3443;}
.nav-link.active {background:#243d4b;color:#f5f6f8;font-weight:670;}
.nav-link.active::before {background:#cbb897;width:3px;}
.nav-icon {color:#8ea1ac;}
.nav-link.active .nav-icon {color:#dfd1b9;}
.nav-number {color:#778d98;}
.status-card {border-color:#344b57;background:#1a2d39;}
.status-head {color:#d0dce1;}
.status-card p {color:#8fa4af;}
.status-tag {color:#8eabb5;}
.sidebar-assurance {color:#8e9ea6;}
.sidebar-assurance svg {color:#9daeb7;}
.sidebar-footer {color:#708795;border-top-color:#2a414e;}
/* Topbar and report title */
.topbar {height:74px;background:#fff;padding:0 clamp(24px,3.2vw,55px);}
.topbar-route {color:#98a4ab;letter-spacing:.08px;}
.topbar-route strong {color:#293d48;}
.topbar-split {color:#c5cbd0;}
.main-content {max-width:1740px;padding:40px clamp(24px,3.2vw,55px) 33px;}
.heading-block {margin-bottom:24px;align-items:flex-end;}
.corporate-heading .eyebrow {font-size:9px;font-weight:700;letter-spacing:1.6px;color:#7d8e98;}
.corporate-heading h1 {font-size:clamp(31px,2.8vw,43px);color:#1b303e;font-weight:680;letter-spacing:-1.7px;margin:12px 0 8px;}
.heading-brand {color:#697e87;font-weight:580;}
.heading-sub {font-size:12px;color:#81919b;}
.filter-label {color:#8998a2;}
.segmented,.stock-tabs,.stock-threshold {background:#e9edee;}
.segmented button.active,.stock-tabs button.active,.stock-threshold button.active {color:#263c47;}
/* Hero is the COMPANY NET RESULT, not a brokerage balance */
.company-hero-row {grid-template-columns:minmax(0,1.55fr) minmax(290px,.65fr);gap:18px;margin-bottom:11px;}
.company-profit-card {min-height:425px;overflow:hidden;position:relative;border-radius:14px;background:linear-gradient(118deg,#10212d 0%,#182d39 60%,#1d3740 100%);border:1px solid #203743;color:white;padding:29px 36px 24px;display:flex;flex-direction:column;isolation:isolate;}
.company-profit-card::before {content:"";position:absolute;inset:0 0 0 38%;pointer-events:none;background:repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 1px,transparent 1px 64px);z-index:-1;}
.company-profit-card::after {content:"";position:absolute;width:420px;height:420px;right:-260px;top:-240px;pointer-events:none;border:1px solid #f2eadb14;border-radius:50%;box-shadow:0 0 0 90px #f2eadb05,0 0 0 160px #f2eadb03;z-index:-1;}
.profit-top {display:flex;align-items:flex-start;justify-content:space-between;gap:15px;}
.profit-kicker {display:block;color:#98b5c0;font-size:9px;letter-spacing:1.8px;font-weight:720;margin-bottom:8px;}
.profit-top h2 {margin:0;color:#e9eff1;font-size:17px;letter-spacing:-.32px;font-weight:620;}
.profit-period {flex:0 0 auto;color:#d1dcdf;border:1px solid #4f626a;border-radius:100px;padding:7px 12px;font-size:10px;}
.profit-amount {font-size:clamp(49px,5.2vw,84px);letter-spacing:-3.8px;line-height:1.03;font-weight:550;font-variant-numeric:tabular-nums;color:#fff;overflow-wrap:anywhere;margin:26px 0 6px;}
.profit-amount.value-positive {color:#d9f0e8;}
.profit-amount.value-negative {color:#ffcccb;}
.profit-desc {font-size:11px;line-height:1.65;color:#99abb5;max-width:510px;}
.profit-chart-wrap {position:relative;height:92px;margin-top:auto;overflow:hidden;}
.profit-chart-wrap canvas {width:100%;height:100%;display:block;}
.profit-empty {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#a0b4bc;font-size:12px;}
.profit-footer {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) auto;gap:16px;border-top:1px solid #ffffff23;padding-top:16px;margin-top:9px;align-items:center;}
.profit-footer > div:not(.profit-footer-mark) {display:flex;flex-direction:column;gap:1px;min-width:0;}
.profit-footer > div:nth-child(2) {border-left:1px solid #ffffff20;padding-left:19px;}
.profit-footer span {color:#9cb0ba;font-size:8px;font-weight:700;letter-spacing:1px;}
.profit-footer strong {font-size:18px;font-weight:630;color:#f4f8f8;letter-spacing:-.3px;font-variant-numeric:tabular-nums;}
.profit-footer small {color:#99adb7;font-size:10px;}
.profit-footer b {color:#c2e5d8;}
.profit-footer-mark {font-size:11px;color:#708c98;align-self:end;padding-bottom:3px;letter-spacing:1.7px;white-space:nowrap;}
.profit-footer-mark span {color:#b9a88e;margin:0 4px;}
.company-aside {display:grid;grid-template-rows:1fr 1fr;gap:18px;min-width:0;}
.company-capital-card,.company-current-card {border:1px solid var(--line);background:#fff;border-radius:13px;box-shadow:var(--shadow);min-width:0;padding:25px 26px;display:flex;flex-direction:column;}
.corporate-stat-head {display:flex;justify-content:space-between;align-items:center;gap:8px;color:#8a9aa3;font-size:9px;font-weight:750;letter-spacing:1.1px;}
.thin-dot {background:#c3af8b;width:7px;height:7px;border-radius:50%;}
.corporate-capital {font-weight:650;letter-spacing:-1.45px;color:#243a46;font-size:clamp(27px,2.7vw,42px);margin:18px 0 2px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.corporate-capital-note {color:#899aa3;font-size:10px;}
.capital-subrow {margin-top:auto;padding-top:12px;border-top:1px solid #edf0f1;display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#96a2a9;}
.capital-subrow strong {color:#4b6572;font-size:10px;font-weight:650;}
.company-current-card {background:#edf2f0;border-color:#e1e9e5;}
.current-return {font-size:clamp(31px,3vw,46px);color:#26745d;font-weight:660;letter-spacing:-1.4px;margin:13px 0 0;font-variant-numeric:tabular-nums;}
.current-return.value-negative {color:#b84b55;}
.current-return-note {color:#657e79;font-size:10px;line-height:1.65;max-width:275px;}
.scope-bar {display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:11px;border-top:1px solid #d9e2df;color:#688077;font-size:10px;}
.scope-indicator {background:#2c8b6b;width:6px;height:6px;border-radius:50%;}
.source-caveat {font-size:10px;line-height:1.6;color:#86959c;margin:0 0 19px;padding:0 1px;}
.source-caveat b {font-weight:670;color:#566c76;}
/* Metrics / chart / equities */
.kpi-grid {gap:15px;margin-bottom:18px;}
.kpi {min-height:136px;border-radius:12px;padding:19px 19px 14px;}
.kpi-label {font-size:10px;font-weight:670;color:#788c96;}
.kpi-value {margin:14px 0 11px;font-size:clamp(22px,2.13vw,31px);letter-spacing:-1px;}
.company-insights {grid-template-columns:minmax(0,1.45fr) minmax(335px,.85fr);gap:17px;}
.graph-card {padding:25px 27px 0;}
.company-insights .chart-container {height:244px;}
.spotlight-card {padding:25px 24px 0;min-height:340px;}
.spotlight-head {letter-spacing:1.15px;}
.spotlight-title h2 {font-size:21px;letter-spacing:-.7px;}
.spotlight-title {margin:14px 0 14px;}
.spotlight-list {min-height:140px;}
.spotlight-item {min-height:51px;}
.spotlight-company strong {color:#263d4b;font-size:12px;}
.spotlight-bottom {min-height:42px;}
.corporate-notes {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:17px;}
.mini-note {border:1px solid #e0e5e5;background:#fff;border-radius:11px;padding:20px 21px;display:flex;flex-direction:column;min-width:0;gap:4px;}
.mini-note .aside-heading {font-size:9px;letter-spacing:.7px;font-weight:750;color:#8ea0a9;}
.mini-note strong {font-size:25px;color:#263b47;font-weight:680;letter-spacing:-.8px;font-variant-numeric:tabular-nums;}
.mini-note > span {font-size:10px;color:#95a1a8;}
#drawdown {color:var(--negative);}
.section-title {margin-top:40px;}
/* Authentication uses original mark if present; never a schematic approximation */
.auth-brand-symbol {display:none;background:#fff;border:none;overflow:hidden;}
.auth-brand-symbol.has-official-logo {display:grid;}
.auth-brand-symbol img {width:100%;height:100%;object-fit:contain;padding:4px;}
.auth-intro {background:#142633;}
.auth-intro-content h2 em {color:#d5c2a3;}
.auth-brand {font-size:20px;}
.auth-brand small {color:#a9b8c1;letter-spacing:1.9px;}
/* responsive */
@media(max-width:1490px) {
  .sidebar {width:222px;} .workspace {margin-left:222px;width:calc(100% - 222px);}
  .company-profit-card {padding:27px 27px 21px;min-height:403px;}
  .company-capital-card,.company-current-card {padding:22px 21px;}
  .profit-amount {font-size:clamp(42px,4.65vw,70px);letter-spacing:-2.6px;}
  .company-hero-row {grid-template-columns:minmax(0,1.45fr) minmax(290px,.65fr);}
  .company-insights {grid-template-columns:minmax(0,1.25fr) minmax(322px,.8fr);}
  .main-content {padding:34px 30px 26px;}.topbar {padding:0 30px;}
}
@media(max-width:1150px) {
  .sidebar {width:76px;padding:27px 9px 17px;} .workspace {margin-left:76px;width:calc(100% - 76px);}
  .company-insights {grid-template-columns:1fr;}
  .company-hero-row {grid-template-columns:minmax(0,1.1fr) minmax(250px,.65fr);}
  .company-profit-card {min-height:395px;}
  .profit-amount {font-size:clamp(38px,4vw,56px);}
  .spotlight-card {min-height:330px;}
  .brand {justify-content:center;padding:0;}
  .brand-mark.has-official-logo {display:grid;}
  .brand-copy {display:none;}
}
@media(max-width:820px) {
  .company-hero-row {grid-template-columns:1fr;}
  .company-aside {grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:12px;}
  .company-capital-card,.company-current-card {min-height:185px;}
  .corporate-capital {font-size:clamp(25px,3.9vw,35px);}
  .current-return {font-size:clamp(30px,3.9vw,37px);}
  .corporate-notes {grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
  .mini-note {padding:16px;}
  .mini-note strong {font-size:21px;}
}
@media(max-width:600px) {
  .sidebar {width:100%;background:#142630;border-top:0;box-shadow:0 -5px 20px #14243128;}
  .nav-link {color:#a3b4be;}.nav-link.active {background:#2b4656;color:#fff;}
  .nav-link.active .nav-icon {color:#e5d3b7;}
  .workspace {margin:0;width:100%;}
  .topbar {height:62px;padding:0 16px;}
  .main-content {padding:26px 15px 98px;}
  .corporate-heading h1 {font-size:32px;line-height:1.12;letter-spacing:-1.05px;margin:11px 0 8px;}
  .heading-brand {display:inline;}
  .company-profit-card {min-height:400px;padding:23px 20px 21px;border-radius:12px;}
  .profit-top h2 {font-size:15px;}
  .profit-kicker {font-size:8px;letter-spacing:1.1px;}
  .profit-period {padding:6px 10px;font-size:9px;}
  .profit-amount {margin-top:25px;font-size:clamp(38px,10vw,55px);letter-spacing:-1.9px;}
  .profit-desc {font-size:10px;max-width:340px;}
  .profit-chart-wrap {height:95px;min-height:70px;}
  .profit-footer {grid-template-columns:1fr 1fr;gap:8px;padding-top:13px;}
  .profit-footer > div:nth-child(2) {padding-left:10px;}
  .profit-footer strong {font-size:15px;}
  .profit-footer span {font-size:7px;letter-spacing:.25px;}
  .profit-footer small {font-size:8px;}
  .profit-footer-mark {display:none;}
  .company-aside {gap:11px;}
  .company-capital-card,.company-current-card {padding:18px 15px;min-height:185px;}
  .corporate-stat-head {font-size:8px;letter-spacing:.45px;}
  .company-capital-card .corporate-stat-head {align-items:flex-start;}
  .corporate-capital {font-size:clamp(21px,5.6vw,28px);letter-spacing:-1.0px;margin-top:17px;}
  .capital-subrow {flex-direction:column;gap:0;}
  .capital-subrow strong {font-size:9px;}
  .current-return {font-size:32px;}
  .current-return-note,.corporate-capital-note {font-size:9px;line-height:1.5;}
  .scope-bar {font-size:8px;line-height:1.5;}
  .source-caveat {font-size:9px;margin-bottom:16px;}
  .kpi-grid {gap:10px;}
  .kpi {min-height:131px;padding:15px 13px;}
  .kpi-label {font-size:10px;}
  .kpi-value {font-size:clamp(21px,5.8vw,27px);}
  .company-insights {gap:11px;}
  .graph-card {padding:20px 15px 0;}
  .company-insights .chart-container {height:200px;}
  .spotlight-card {padding:20px 18px 0;}
  .corporate-notes {grid-template-columns:1fr;gap:9px;}
  .mini-note {padding:14px 18px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px;}
  .mini-note .aside-heading {grid-column:1;grid-row:1;}
  .mini-note strong {grid-column:2;grid-row:1 / 3;font-size:24px;}
  .mini-note > span {grid-column:1;grid-row:2;font-size:9px;}
  .auth-intro {background:#142633;}
  .auth-brand-symbol {display:none;}
  .auth-brand-symbol.has-official-logo {display:grid;}
}

/* MASHERO_UNIFIED_FONT_START */
:root {
    --font: "Segoe UI", Arial, sans-serif;
}

html, body, body *, body *::before, body *::after {
    font-family: "Segoe UI", Arial, sans-serif !important;
}
/* MASHERO_UNIFIED_FONT_END */

/* MASHERO_BRAND_MOTION_V6_1 -- visual-only, no changes to existing text colors */
/* Keep the exact corporate spelling on a single uninterrupted line. */
.corporate-heading .heading-brand { white-space: nowrap; }
.brand-copy .brand-wordmark {
  display: inline-block;
  white-space: nowrap;
  line-height: 1.05;
  font-family: inherit;
  font-size: 15px;
  font-weight: 730;
  letter-spacing: -.56px;
}
.brand-copy .brand-wordmark > .wordmark-corporation { color: #9cabb0; }
.auth-brand .auth-brand-wordmark {
  display: inline-block;
  white-space: nowrap;
  font-family: inherit;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -.8px;
}
.auth-brand .auth-brand-wordmark > span:first-child { color: #c8b99b; }
.auth-brand .auth-brand-wordmark > .wordmark-corporation { color: #a9b8c1; }
@media (min-width: 1151px) and (max-width: 1490px) {
  .brand { gap: 7px; padding: 0 4px; }
  .brand-mark.has-official-logo { width: 30px; height: 30px; flex-basis: 30px; }
  .brand-copy .brand-wordmark { font-size: 13px; letter-spacing: -.55px; }
}
@media (max-width: 600px) {
  .auth-brand .auth-brand-wordmark { font-size: clamp(16px, 5vw, 21px); }
  .corporate-heading .heading-brand { font-size: .80em; }
}

/* Atmospheric diagonal motion lives behind the login surface, never over the form. */
.auth-gate { isolation: isolate; }
.auth-shell { position: relative; z-index: 1; }
.auth-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.auth-ambient::before {
  content: "MasheroCorporation       MasheroCorporation       MasheroCorporation\A MasheroCorporation       MasheroCorporation       MasheroCorporation\A MasheroCorporation       MasheroCorporation       MasheroCorporation\A MasheroCorporation       MasheroCorporation       MasheroCorporation\A MasheroCorporation       MasheroCorporation       MasheroCorporation\A MasheroCorporation       MasheroCorporation       MasheroCorporation";
  position: absolute;
  left: -42%;
  top: -28%;
  width: 185%;
  text-align: center;
  white-space: pre;
  color: rgba(20, 38, 51, .067);
  font-family: inherit;
  font-size: clamp(27px, 2.8vw, 46px);
  font-weight: 730;
  line-height: 3.7;
  letter-spacing: -.6px;
  transform: rotate(-22deg) translate3d(-3%, 2%, 0);
  animation: masheroAmbientDrift 36s ease-in-out infinite alternate;
}
.auth-intro::after {
  content: "MasheroCorporation";
  position: absolute;
  left: -36%;
  top: 67%;
  color: rgba(225, 234, 238, .045);
  font-family: inherit;
  font-size: clamp(40px, 5.2vw, 74px);
  font-weight: 760;
  letter-spacing: -3px;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-23deg) translate3d(-8%, 0, 0);
  animation: masheroIntroDrift 27s ease-in-out infinite alternate;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}
@keyframes masheroAmbientDrift {
  from { transform: rotate(-22deg) translate3d(-3%, 2%, 0); }
  to { transform: rotate(-22deg) translate3d(3%, -4%, 0); }
}
@keyframes masheroIntroDrift {
  from { transform: rotate(-23deg) translate3d(-8%, 0, 0); }
  to { transform: rotate(-23deg) translate3d(12%, -8%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-ambient::before, .auth-intro::after { animation: none !important; }
}
/* MASHERO_MOTION_30_V6_2_START */
/* Full-screen, seamless brand text at a precise -30 degree angle. */
.auth-gate .auth-ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.auth-gate .auth-ambient::before {
  content: "" !important;
  position: absolute;
  inset: auto;
  top: -90%;
  left: -90%;
  width: 280%;
  height: 280%;
  text-align: left;
  white-space: normal;
  font-size: 0;
  line-height: 0;
  /* Tiled vector wordmark: repeated on both axes, over the entire viewport. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='150' viewBox='0 0 480 150'%3E%3Ctext x='15' y='92' fill='%23142633' fill-opacity='.09' font-family='Segoe UI,Arial,sans-serif' font-size='35' font-weight='700' letter-spacing='-.6'%3EMasheroCorporation%3C/text%3E%3C/svg%3E");
  background-size: 480px 150px;
  background-repeat: repeat;
  transform-origin: center center;
  transform: rotate(-30deg) translate3d(0, 0, 0);
  will-change: transform;
  animation: masheroBrandFullScreen30 11s linear infinite !important;
}
/* Move by exactly one repeated tile, avoiding a visible jump. */
@keyframes masheroBrandFullScreen30 {
  from { transform: rotate(-30deg) translate3d(0, 0, 0); }
  to   { transform: rotate(-30deg) translate3d(480px, -150px, 0); }
}
/* Keep the dark intro watermark consistent with the full-page angle and pace. */
.auth-gate .auth-intro::after {
  transform: rotate(-30deg);
  animation: masheroIntro30 11s linear infinite !important;
}
@keyframes masheroIntro30 {
  from { transform: rotate(-30deg) translate3d(-8%, 0, 0); }
  to   { transform: rotate(-30deg) translate3d(25%, -9%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-gate .auth-ambient::before,
  .auth-gate .auth-intro::after {
    animation: none !important;
    will-change: auto;
  }
}
/* MASHERO_MOTION_30_V6_2_END */

/* MASHERO LOGIN CLEANUP v6.3 */

/* Убираем надпись с темной панели */
.auth-gate .auth-intro::after {
    content: none !important;
    display: none !important;
    animation: none !important;
}

/* Убираем замок и лишнюю подпись */
.auth-gate .auth-card .auth-logo,
.auth-gate .auth-card .auth-eyebrow {
    display: none !important;
}

/* Выравниваем заголовок */
.auth-gate .auth-card #loginTitle {
    margin-top: 0;
}
