:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #24333d;
  background: #f3f5f5;
  font-synthesis: none;
}

body { color: #24333d; line-height: 1.5; }
button, input, select, textarea { font-family: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[data-record]:focus-visible { outline: 3px solid #6a9fb0; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { grid-template-columns: 278px minmax(0,1fr); }
.sidebar { background: #182a34; color: #d6e0e3; }
.brand { padding: 24px 22px; border-bottom: 1px solid #334751; gap: 13px; }
.brand-mark { width: 42px; height: 42px; border-radius: 5px; background: #d5aa73; color: #172a34; box-shadow: none; font-size: 22px; font-weight: 800; }
.brand-title { font-family: inherit; font-size: 17px; letter-spacing: .03em; font-weight: 750; }
.brand-sub { max-width: 172px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; letter-spacing: 0; font-weight: 500; color: #b1c2c9; margin-top: 2px; }
.sidebar-content { padding: 18px 12px 25px; }
.nav-heading { font-size: 13px; letter-spacing: .07em; color: #a8bac1; padding: 20px 12px 9px; }
.nav-item { min-height: 42px; padding: 9px 12px; margin: 2px 0; border-radius: 5px; color: #d8e2e5; font-size: 14px; font-weight: 550; gap: 11px; }
.nav-item:hover { background: #2b414c; }
.nav-item.active { background: #e7eef0; color: #17343f; font-weight: 700; }
.nav-icon { width: 3px; height: 18px; font-size: 0; border-radius: 2px; flex: none; }
.nav-item.active .nav-icon { background: #b78554; }
.nav-count, .nav-item.active .nav-count { font-size: 13px; padding: 2px 7px; border-radius: 4px; background: #3c515a; color: #f3f7f8; }
.nav-item.active .nav-count { background: #cfdee2; color: #244653; }
.sidebar-footer { padding: 18px 20px; border-top: 1px solid #334751; }
.avatar { width: 40px; height: 40px; border-radius: 5px; background: #d5aa73; color: #172a34; font-size: 14px; }
.sidebar-footer strong { font-size: 14px; }
.sidebar-footer small { font-size: 13px; color: #b0c1c8; }

.topbar { height: 76px; padding: 0 32px; border-bottom: 1px solid #dbe2e4; }
.breadcrumb { font-size: 14px; color: #62727c; }
.breadcrumb b { color: #1e3f4b; }
.today { font-size: 14px; color: #52636d; }
.top-pill { font-size: 13px; color: #315e59; background: #e7efea; border-radius: 4px; padding: 7px 10px; }
.icon-button { width: 42px; height: 42px; border-radius: 5px; border-color: #cbd7db; font-size: 20px; }
.page { max-width: 1600px; padding: 36px 34px 70px; }
.page-heading { align-items: center; margin-bottom: 23px; }
.page-eyebrow { font-size: 13px; letter-spacing: .08em; color: #557482; margin-bottom: 7px; }
.page-title { font-family: inherit; font-size: clamp(28px, 2.3vw, 35px); line-height: 1.18; letter-spacing: -.03em; color: #172e3a; font-weight: 760; }
.page-subtitle { font-size: 15px; line-height: 1.55; color: #5e6e77; margin-top: 8px; }
.btn { min-height: 43px; padding: 10px 16px; border-radius: 5px; background: #245468; box-shadow: none; font-size: 14px; font-weight: 700; }
.btn:hover { background: #193f51; }
.btn.accent { background: #245468; color: white; }
.btn.accent:hover { background: #193f51; }
.btn.ghost { border-color: #c9d7dc; color: #245468; }
.btn.ghost:hover { background: #eaf0f2; }
.btn.small { min-height: 37px; padding: 8px 12px; font-size: 13px; }
.btn.danger { background: #9e4d49; }
.btn.danger:hover { background: #813c39; }

.hero { min-height: 192px; background: #1d3947; border-radius: 7px; margin-bottom: 20px; }
.hero:before { display: none; }
.hero-copy { padding: 28px 31px; }
.hero-kicker { color: #d6b486; letter-spacing: .09em; font-size: 13px; }
.hero h2 { font-family: inherit; font-size: clamp(25px,2.2vw,32px); font-weight: 740; letter-spacing: -.03em; margin: 10px 0 6px; }
.hero p { font-size: 15px; line-height: 1.6; color: #d4e1e5; max-width: 620px; }
.hero-steps { margin-top: 20px; gap: 8px; }
.hero-steps span { font-size: 13px; font-weight: 650; border-color: #5f7883; background: #ffffff0b; padding: 5px 10px; }
.hero-steps span:after { content: none; }
.hero-stat { padding: 29px 31px; }
.hero-stat span, .hero-stat small { font-size: 13px; color: #d0e0e5; letter-spacing: 0; text-transform: none; }
.hero-stat strong { font-family: inherit; font-size: clamp(24px,2.1vw,31px); letter-spacing: -.02em; overflow-wrap: anywhere; }
.hero-stat small { color: #c5d5da; }

.metrics { gap: 14px; margin-bottom: 19px; }
.metric, .panel, .insight { background: #fff; border: 1px solid #dce4e6; border-radius: 6px; box-shadow: none; }
.metric { padding: 20px; min-height: 139px; }
.metric-top { color: #506672; font-size: 14px; font-weight: 650; }
.metric-icon { width: 37px; height: 34px; border-radius: 4px; background: #e7eef0; color: #315768; font-size: 13px; font-weight: 800; }
.metric-value { font-family: inherit; color: #173644; font-size: clamp(20px,1.6vw,26px); font-weight: 760; letter-spacing: -.025em; margin-top: 13px; white-space: nowrap; }
.metric-foot { color: #637681; font-size: 13px; margin-top: 3px; }
.dashboard-grid, .lower-grid, .section-grid { gap: 16px; }
.dashboard-grid { grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); }
.panel-header { padding: 20px 23px; border-color: #e5ebed; }
.panel-title { font-family: inherit; font-size: 18px; color: #223b47; font-weight: 730; }
.panel-sub { font-size: 13px; color: #647680; margin-top: 3px; }
.panel-link { font-size: 13px; color: #225a72; }
.panel-link:hover { text-decoration: underline; }
.budget-panel { padding: 22px 23px 27px; }
.budget-head strong { font-family: inherit; font-size: 27px; color: #1b3e4e; }
.budget-head span { font-size: 14px; color: #586d78; }
.budget-bar { height: 16px; margin: 21px 0 20px; background: #e4e9eb; }
.bar-actual { background: #235469; }
.bar-committed { background: #bf8a4d; }
.legend-label { font-size: 13px; color: #536873; }
.legend-value { font-size: 16px; color: #203e4c; font-weight: 730; overflow-wrap: anywhere; }
.pipeline { padding: 8px 22px 19px; }
.attention-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; background: none; border: 0; border-bottom: 1px solid #e6ecee; padding: 14px 2px; text-align: left; color: #2c4652; font-size: 15px; }
.attention-row:last-child { border-bottom: 0; }
.attention-row:hover { color: #195f78; }
.attention-row strong { min-width: 32px; text-align: center; border-radius: 4px; padding: 3px 8px; background: #edf2f3; color: #254957; font-size: 15px; }

.module-insights { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 19px; }
.insight { padding: 18px 20px; display: flex; flex-direction: column; min-height: 115px; }
.insight span { color: #55707b; font-size: 14px; font-weight: 650; }
.insight strong { margin-top: 8px; font-size: clamp(21px,1.8vw,27px); line-height: 1.2; color: #183847; letter-spacing: -.025em; overflow-wrap: anywhere; }
.insight small { color: #6d7f87; font-size: 13px; margin-top: auto; padding-top: 5px; }
.section-grid { grid-template-columns: minmax(0,1fr) minmax(330px,360px); align-items: start; }
.list-toolbar { padding: 16px 18px; justify-content: flex-start; flex-wrap: wrap; }
.search-label { flex: 1 1 240px; }
.search, .filter-label select { height: 42px; width: 100%; border: 1px solid #cbd7dc; border-radius: 4px; padding: 9px 12px; background: white; color: #2c4350; font-size: 14px; }
.search { max-width: none; }
.search::placeholder { color: #70818a; }
.filter-label { flex: 0 1 160px; }
.record-count { margin-left: auto; font-size: 13px; color: #5e707b; white-space: nowrap; }
.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.data-table { min-width: 680px; }
.data-table th { background: #f1f4f5; color: #4c626c; font-size: 13px; letter-spacing: .04em; padding: 14px 17px; }
.data-table td { padding: 15px 17px; font-size: 14px; color: #394f5a; border-color: #e8edef; }
.data-table td.main-cell { color: #1d4051; font-weight: 700; }
.data-table tr.clickable:hover, .data-table tr.selected { background: #eef4f5; }
.data-table tr.clickable:focus-visible { outline-offset: -3px; }
.badge { padding: 5px 9px; border-radius: 4px; font-size: 13px; font-weight: 700; }
.badge.approved, .badge.active, .badge.completed, .badge.paid, .badge.posted { background: #e5f0e8; color: #315c3e; }
.badge.draft, .badge.open, .badge.scheduled, .badge.pending { background: #fbf0dd; color: #815a21; }
.badge.submitted, .badge.in_progress { background: #e4eef5; color: #315f7b; }
.badge.rejected, .badge.suspended, .badge.critical { background: #f8e6e4; color: #963f3c; }
.empty { padding: 48px 24px; font-size: 14px; color: #657780; }
.empty strong, .empty span { display: block; }
.empty strong { color: #2b4653; font-size: 16px; margin-bottom: 4px; }

.detail-panel { padding: 22px; }
.detail-eyebrow { font-size: 13px; color: #587584; letter-spacing: .07em; }
.detail-title { font-family: inherit; color: #1d3d4c; font-size: 21px; line-height: 1.3; margin: 9px 0 13px; font-weight: 740; }
.detail-grid { margin: 20px 0; }
.detail-field { padding: 12px 0; gap: 10px; font-size: 14px; line-height: 1.4; }
.detail-field span { color: #5d717b; }
.detail-field strong { color: #233f4b; font-weight: 650; }
.detail-actions { gap: 8px; }
.detail-note { font-size: 13px; color: #657981; line-height: 1.55; margin-top: 18px; }
.document-content { border-top: 1px solid #e6ecee; padding-top: 14px; }
.document-content span { font-size: 13px; font-weight: 700; color: #56717d; }
.document-content p { white-space: pre-wrap; color: #344e59; font-size: 14px; line-height: 1.6; }
.related { border-top: 1px solid #e3eaec; margin-top: 22px; padding-top: 15px; }
.related h3 { margin: 0 0 12px; font-size: 16px; color: #254350; }
.related-group { margin-top: 13px; }
.related-heading { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: #667c86; margin-bottom: 5px; }
.related-heading span { color: #2a5364; }
.related-link { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 0; border: 0; background: none; border-bottom: 1px solid #edf1f2; text-align: left; color: #225a70; font-size: 14px; }
.related-link:hover { color: #12394a; text-decoration: underline; }
.related-group small { display: block; margin-top: 6px; color: #667780; font-size: 13px; }
.project-budget { display: flex; flex-direction: column; gap: 3px; padding: 14px; margin-top: 16px; background: #eef3f4; border-left: 3px solid #2f6173; }
.project-budget span { color: #526b77; font-size: 13px; font-weight: 650; }
.project-budget strong { color: #1c4658; font-size: 21px; overflow-wrap: anywhere; }
.project-budget small { color: #5a717c; font-size: 13px; line-height: 1.5; }
.inventory-panel { margin-bottom: 17px; }
.table-link { border: 0; padding: 0; background: none; color: #245a70; font-size: 14px; font-weight: 700; text-align: left; }
.table-link:hover { text-decoration: underline; }
.audit-changes { border-top: 1px solid #e3eaec; margin-top: 22px; padding-top: 15px; }
.audit-changes h3 { margin: 0 0 10px; font-size: 16px; color: #254350; }
.audit-change { padding: 9px 0; border-bottom: 1px solid #edf1f2; }
.audit-change > span { display: block; margin-bottom: 4px; color: #5f7480; font-size: 13px; font-weight: 700; }
.audit-change div { display: grid; gap: 2px; overflow-wrap: anywhere; }
.audit-change small { color: #7b8b93; font-size: 13px; }
.audit-change strong { color: #274956; font-size: 14px; font-weight: 650; }
.audit-changes p { color: #657780; font-size: 13px; }

.toast { font-size: 14px; border-radius: 5px; max-width: 420px; }
.modal-backdrop { background: #0f202bcc; }
.modal { width: min(640px,100%); border-radius: 6px; }
.modal-header { padding: 22px 25px; }
.modal-title { font-family: inherit; color: #203f4e; font-size: 22px; }
.modal-sub { font-size: 14px; color: #647882; }
.close { width: 36px; height: 36px; font-size: 16px; border-radius: 4px; }
.modal-body { padding: 24px 25px 27px; }
.form-grid { gap: 17px; }
.field { gap: 7px; }
.field label { font-size: 14px; color: #354f5c; }
.field input, .field select, .field textarea { min-height: 45px; padding: 10px 12px; font-size: 15px; color: #243d49; border-color: #c8d5da; border-radius: 4px; }
.field textarea { min-height: 110px; line-height: 1.55; }
.form-confirm { font-size: 15px; color: #576b75; grid-column: 1/-1; }
.form-actions { margin-top: 24px; }

.login-page { grid-template-columns: minmax(0,1fr) minmax(430px,470px); background: #1b3542; }
.login-art { background: #1b3542; padding: 48px clamp(34px,6vw,100px); }
.login-art:before, .login-art:after { display: none; }
.login-brand strong { font-family: inherit; font-size: 18px; letter-spacing: .04em; }
.login-kicker { font-size: 13px; color: #d9b883; letter-spacing: .09em; }
.login-hero h1 { font-family: inherit; font-size: clamp(43px,4.3vw,65px); line-height: 1.09; letter-spacing: -.045em; margin-bottom: 20px; }
.login-hero p { color: #cfdee2; font-size: 18px; line-height: 1.6; }
.login-flow span { font-size: 13px; border-radius: 4px; color: #e0e9ec; }
.login-footer { font-size: 13px; color: #bdcfd4; }
.login-form-area { background: #f5f7f7; }
.login-card { max-width: 380px; }
.login-card h2 { font-family: inherit; font-size: 29px; letter-spacing: -.025em; color: #1f3d4b; }
.login-card p { font-size: 15px; color: #60737e; line-height: 1.55; }
.login-card input { padding: 12px 13px; font-size: 16px; }
.login-submit { min-height: 48px; font-size: 16px; }
.demo-hint { font-size: 13px; line-height: 1.6; border-radius: 5px; }

@media (max-width: 1250px) {
  .section-grid { grid-template-columns: minmax(0,1fr) 310px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1050px) {
  .section-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .detail-panel { order: 0; }
}
@media (max-width: 850px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { width: min(300px,85vw); }
  .topbar { padding: 0 19px; }
  .page { padding: 27px 19px 55px; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { min-height: 270px; padding: 31px; }
  .login-art .login-hero h1 { font-size: 39px; }
  .login-art .login-hero p { display: block; font-size: 16px; margin: 10px 0 0; }
  .login-flow, .login-footer { display: none; }
  .login-form-area { padding: 38px 25px; }
}
@media (max-width: 650px) {
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-title { font-size: 29px; }
  .top-pill, .today { display: none; }
  .hero, .metrics, .lower-grid, .module-insights { grid-template-columns: 1fr; }
  .hero-stat { border-left: 0; border-top: 1px solid #5b7580; padding: 20px 30px; }
  .metric { min-height: 120px; }
  .budget-legend { grid-template-columns: 1fr; }
  .legend-value { font-size: 17px; }
  .filter-label { flex: 1 1 135px; }
  .record-count { width: 100%; margin-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .modal-backdrop { padding: 12px; }
  .modal-header, .modal-body { padding-left: 18px; padding-right: 18px; }
}

/* Operational workspace: restrained surfaces and readable data density. */
:root { font-size: 17px; }
body { font-size: 17px; line-height: 1.55; }
.app-shell { grid-template-columns: 300px minmax(0,1fr); }
.brand { padding: 25px 22px; }
.brand-title { font-size: 19px; }
.brand-sub, .sidebar-footer small { font-size: 14px; }
.nav-heading { font-size: 13px; margin-top: 5px; }
.nav-item { min-height: 46px; font-size: 15px; padding: 10px 12px; }
.nav-count { font-size: 13px; }
.sidebar-footer strong { font-size: 15px; }
.breadcrumb, .today { font-size: 15px; }
.top-pill { font-size: 14px; }
.page { max-width: 1720px; padding: 40px 38px 80px; }
.page-eyebrow { font-size: 14px; }
.page-title { font-size: clamp(32px,2.5vw,42px); }
.page-subtitle { font-size: 17px; max-width: 780px; }
.btn { min-height: 48px; font-size: 16px; padding: 11px 18px; }
.btn.small { min-height: 42px; font-size: 15px; padding: 9px 13px; }
.panel-title { font-size: 20px; }
.panel-sub, .panel-link { font-size: 15px; }
.panel-header { padding: 22px 25px; }
.portfolio-strip { display: flex; align-items: stretch; justify-content: space-between; gap: 30px; padding: 25px 30px; margin-bottom: 19px; border: 1px solid #d9e3e5; border-left: 5px solid #bc8b58; border-radius: 6px; background: #fff; }
.portfolio-strip > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.portfolio-label { color: #526b78; font-size: 14px; font-weight: 750; letter-spacing: .06em; }
.portfolio-strip > div:first-child strong { color: #173b4c; font-size: clamp(28px,2.6vw,38px); line-height: 1.2; margin: 7px 0 5px; overflow-wrap: anywhere; }
.portfolio-strip small { color: #5e737e; font-size: 15px; }
.portfolio-facts { display: grid; grid-template-columns: repeat(3,minmax(95px,1fr)); align-items: center; flex: 0 1 520px; }
.portfolio-facts > div { border-left: 1px solid #e1e9eb; padding: 0 18px; display: flex; flex-direction: column; }
.portfolio-facts strong { color: #1d4354; font-size: 27px; line-height: 1.2; }
.portfolio-facts span { color: #5c717b; font-size: 14px; }
.finance-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 19px; border: 1px solid #dce4e6; border-radius: 6px; background: #fff; overflow: hidden; }
.finance-metric { display: flex; flex-direction: column; min-width: 0; padding: 20px 23px; border-right: 1px solid #e5ebed; }
.finance-metric:last-child { border-right: 0; }
.finance-metric span { color: #536d79; font-size: 15px; font-weight: 650; }
.finance-metric strong { color: #173b4d; font-size: clamp(21px,1.7vw,28px); line-height: 1.25; margin: 9px 0 5px; overflow-wrap: anywhere; }
.finance-metric small { color: #6a7e88; font-size: 14px; }
.budget-panel { padding: 25px; }
.budget-head strong { font-size: 27px; }
.budget-head span { font-size: 16px; }
.budget-bar { height: 18px; }
.legend-label { font-size: 15px; }
.legend-value { font-size: 18px; }
.queue-count { background: #eef3f4; color: #274e5f; padding: 5px 12px; border-radius: 4px; font-size: 16px; font-weight: 750; }
.action-queue { padding: 3px 20px 14px; }
.queue-row { width: 100%; display: grid; grid-template-columns: minmax(110px,130px) minmax(0,1fr); align-items: baseline; gap: 2px 15px; text-align: left; padding: 13px 5px; border: 0; border-bottom: 1px solid #e6ecee; background: transparent; color: #2c4652; }
.queue-row:last-child { border-bottom: 0; }
.queue-row:hover { background: #f3f7f7; }
.queue-type { grid-row: span 2; color: #697e88; font-size: 14px; font-weight: 700; }
.queue-row strong { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.queue-row small { color: #677b84; font-size: 14px; }
.queue-more { color: #617682; font-size: 14px; margin: 12px 5px 2px; }
.activity-list { padding: 3px 24px 15px; }
.activity-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid #e8edef; }
.activity-row:last-child { border-bottom: 0; }
.activity-row strong { color: #294957; font-size: 16px; }
.activity-row span { color: #647983; font-size: 14px; text-align: right; }
.table-sub { display: block; color: #71838b; font-size: 14px; margin-top: 3px; }
.module-insights { gap: 16px; }
.insight { min-height: 126px; padding: 21px 23px; }
.insight span { font-size: 15px; }
.insight strong { font-size: clamp(24px,1.9vw,30px); }
.insight small { font-size: 14px; }
.section-grid { grid-template-columns: minmax(0,1fr) minmax(350px,390px); }
.search, .filter-label select { min-height: 46px; font-size: 16px; }
.record-count { font-size: 14px; }
.data-table { min-width: 760px; }
.table-scroll-hint { display: none; }
.data-table th { font-size: 14px; padding: 16px 19px; }
.data-table td { font-size: 16px; padding: 17px 19px; }
.table-link { font-size: 16px; }
.badge { font-size: 14px; padding: 6px 10px; }
.badge.planned, .badge.paused { background: #edf0f2; color: #536a76; }
.detail-panel { padding: 25px; }
.detail-eyebrow { font-size: 14px; }
.detail-title { font-size: 24px; }
.detail-field { font-size: 16px; padding: 14px 0; }
.detail-note, .project-budget small, .related-group small { font-size: 14px; }
.project-budget span, .related-heading, .audit-change > span, .document-content span { font-size: 14px; }
.project-budget strong { font-size: 23px; }
.related-link, .document-content p, .audit-change strong { font-size: 16px; }
.empty { font-size: 16px; }
.empty strong { font-size: 18px; }
.modal { width: min(720px,100%); }
.modal-title { font-size: 25px; }
.modal-sub, .form-confirm, .form-guidance { font-size: 15px; }
.field label { font-size: 16px; }
.field input, .field select, .field textarea { min-height: 49px; font-size: 17px; }
.form-guidance { grid-column: 1/-1; margin: 0; padding: 12px 15px; background: #eef4f5; color: #365b6b; border-left: 3px solid #497b8d; }
.toast { font-size: 16px; }
.login-brand strong { font-size: 21px; }
.login-hero h1 { font-size: clamp(42px,3.6vw,60px); }
.login-capabilities { display: grid; max-width: 560px; margin-top: 36px; border-top: 1px solid #6d838d; }
.login-capabilities div { display: flex; gap: 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid #435c68; }
.login-capabilities span { color: #d5aa73; font-size: 14px; font-weight: 750; }
.login-capabilities strong { color: #e0e9ec; font-size: 16px; font-weight: 600; }
.login-card { max-width: 440px; }
.login-card h2 { font-size: 33px; }
.login-card p { font-size: 17px; }
.login-card input { font-size: 17px; }
.demo-hint { font-size: 15px; }
@media (max-width: 1250px) {
  .section-grid { grid-template-columns: minmax(0,1fr) 340px; }
  .finance-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finance-metric:nth-child(2) { border-right: 0; }
  .finance-metric:nth-child(-n+2) { border-bottom: 1px solid #e5ebed; }
}
@media (max-width: 1050px) {
  .section-grid { grid-template-columns: 1fr; }
  .portfolio-strip { flex-direction: column; }
  .portfolio-facts { flex: auto; }
}
@media (max-width: 850px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { width: min(320px,86vw); }
  .page { padding: 29px 20px 60px; }
  .login-capabilities { display: none; }
}
@media (max-width: 650px) {
  .page-title { font-size: 32px; }
  .portfolio-strip { padding: 22px; }
  .portfolio-facts { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .portfolio-facts > div { padding: 0 9px; }
  .finance-grid { grid-template-columns: 1fr; }
  .finance-metric { border-right: 0; border-bottom: 1px solid #e5ebed; }
  .finance-metric:last-child { border-bottom: 0; }
  .queue-row { grid-template-columns: 1fr; }
  .queue-type { grid-row: auto; }
  .table-scroll-hint { display: block; padding: 9px 18px; border-top: 1px solid #e8edef; color: #5d7380; font-size: 14px; }
  .activity-row { flex-direction: column; gap: 4px; }
  .activity-row span { text-align: left; }
}
