/* Company record: account overview followed by the complete editable record. */
.sg-vitals {
  position:relative; top:auto; z-index:2; background:var(--bluetint);
  border-color:var(--line); border-radius:15px; margin-bottom:15px;
}
.sg-vitals .w6vrow { gap:0 14px; padding:15px 18px; }
.sg-vitals .w6vid h2 { font:700 27px/1.1 var(--font-ui); letter-spacing:-.035em; }
.sg-vitals .w4facts { margin-top:6px; font-size:12.5px; }
.sg-vitals .w4call, .sg-vitals .w6vacts { background:var(--card); border:1px solid var(--line); }
.sg-vitals .w4call { align-items:flex-start; padding:9px 14px 1px; border-bottom:0; border-radius:11px 11px 0 0; }
.sg-vitals .w4phone, .sg-vitals .w4phone:hover { height:auto; padding:0; background:transparent; color:var(--ink); font:700 27px/1.05 var(--font-num); letter-spacing:.005em; }
.sg-vitals .w4phone svg { color:var(--blue); }
.sg-vitals .w4phone.off { border:0; font:600 14px/1.2 var(--font-ui); }
.sg-vitals .w4who { max-width:350px; font-size:11px; }
.sg-vitals .w6vacts { padding:5px 14px 10px; border-top:0; border-radius:0 0 11px 11px; }
.sg-vitals .w6vacts .k4acts { flex-wrap:wrap; }
.sg-vitals .w6vacts .k4b { height:28px; font-size:11px; }
.sg-vitals .w4ol { color:var(--blue); }
.sg-vitals .w4say { align-self:flex-start; }
.sg-vitals .w4own { align-self:center; }
@media (min-width:1180px) {
  .sg-vitals .w6vrow { display:grid; grid-template-columns:minmax(0,1fr) minmax(150px,max-content) minmax(320px,360px); grid-template-rows:auto auto auto; align-items:start; gap:8px 18px; }
  .sg-vitals .w6back { grid-column:1 / -1; grid-row:1; justify-self:start; }
  .sg-vitals .w6vid { grid-column:1 / 3; grid-row:2; }
  .sg-vitals .w6vstate { grid-column:1; grid-row:3; }
  .sg-vitals .w4own { grid-column:2; grid-row:3; }
  .sg-vitals .w4call { grid-column:3; grid-row:2; }
  .sg-vitals .w6vacts { grid-column:3; grid-row:3; }
}
.sg-record { max-width:none; }
.sg-company-page { min-width:0; }
.sg-vitals .w6vid h2 { white-space:normal; overflow-wrap:anywhere; text-overflow:clip; }
.sg-account-tools { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr); gap:12px; align-items:start; margin:0 0 14px; }
.sg-account-tools .w7c-utility { margin:0; padding:13px 16px; grid-template-columns:minmax(0,1fr); border:1px solid var(--line); border-radius:12px; }
.sg-account-tools .w7c-utility-place { font-size:12px; }
.sg-account-tools .w7c-utility-links { margin:5px 0; font-size:12px; }
.sg-account-tools .w7c-utility p { font-size:11px; }
.sg-account-tools .crm-followups { margin:0; padding:13px 16px; border-radius:12px; }
.sg-account-tools .crm-fu-head h2 { font-size:14px; }
.sg-account-tools .crm-fu-head p { display:none; }
.sg-account-tools .crm-fu-head .w7btn { min-height:36px; font-size:12px; }
.sg-account-tools .crm-fu-empty { font-size:12px; margin-top:7px; }
.sg-record-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 9px; }
.sg-record-toolbar>span { color:var(--mute); font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.sg-record-toolbar .w7btn { min-height:36px; padding:8px 15px; font-size:12px; }
.sg-record>.w6tabs>.w6tablist { position:sticky; top:8px; z-index:8; display:flex; max-width:100%; overflow-x:auto; flex-wrap:nowrap; padding:4px; gap:4px; border:1px solid var(--line); border-radius:11px; background:var(--surface); margin-bottom:16px; scroll-margin-top:12px; }
.sg-record>.w6tabs>.w6tablist .w6tab { flex:none; min-height:40px; padding:9px 13px; border-radius:8px; font-size:13px; }
.sg-record>.w6tabs>.w6tablist .w6tab.on { background:var(--bluetint); border-bottom-color:transparent; color:var(--blue); }
.sg-record>.w6tabs>.w6panel { padding:0; min-width:0; }
.sg-record>.w6tabs>.w6panel[hidden] { display:none; }
.sg-record>.w6tabs>.w6panel:not([data-panel=overview]) { padding:17px; border:1px solid var(--line); border-radius:13px; background:var(--card); }
.sg-record .w4when { position:static; }
.sg-record .tm.account,.w7c-page .tm.account { color:var(--mute); background:var(--surface-2); border:1px solid var(--line); }
.sg-record .w6chips { flex-wrap:wrap; }
.sg-record .w6tlbar { flex-wrap:wrap; gap:10px; }
.sg-record .w5tlsearch { min-width:0; max-width:100%; }
.sg-record .w6comp textarea { min-width:0; max-width:100%; }
.sg-record [data-panel=people] .pl .pi { min-width:0; overflow-wrap:anywhere; }
.sg-data-pane>button:focus-visible { outline:2px solid var(--blue); outline-offset:3px; border-radius:4px; }
.sg-record .w6facts { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); margin:0 0 15px; overflow:hidden; border-radius:12px; }
.sg-record .w6facts>.w6fact { grid-column:auto; }
.sg-record .w6fact { padding:11px 15px; }
.sg-record .w6fk { color:var(--blue); }
.sg-brief { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,.78fr) minmax(0,.9fr); gap:12px; align-items:start; margin-bottom:19px; }
.sg-brief > .w7c-more { margin:0; border-radius:12px; }
.sg-brief > .w7c-more .w7c-mb { padding:16px 18px; }
.sg-brief > .w7c-more .w7c-acct { justify-content:space-between; }
.sg-brief .w6bandpane { border-radius:12px; min-width:0; }
.sg-brief .w6bandpane .ph { min-height:37px; background:var(--card); border-bottom:1px solid var(--line); color:var(--blue); }
.sg-brief .w6bandpane .ph h3 { color:var(--ink); }
.sg-brief .w6bandpane .pb { padding:11px 15px; }
.sg-brief .w6bandpane .emptyst { padding:0; }
.sg-brief .w6bandpane .pl { padding:4px 0; }
.sg-section-heading { display:flex; align-items:end; justify-content:space-between; gap:18px; margin:0 0 11px; }
.sg-section-heading span { display:block; color:var(--blue); font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.sg-section-heading h2 { margin:3px 0 0; color:var(--ink); font:700 23px/1.15 var(--font-ui); letter-spacing:-.025em; }
.sg-section-heading p { margin:0 0 3px; color:var(--mute); font-size:11.5px; }
.sg-record .w7c-overview { grid-template-columns:minmax(0,1.45fr) minmax(0,.78fr) minmax(0,.78fr); gap:12px; margin-bottom:21px; }
.sg-record .w7c-history-visual { padding:17px 19px; }
.sg-record .w7c-history-visual h2 { font-size:20px; }
.sg-record .w7c-history-chart { margin:9px 0; padding-top:6px; max-height:150px; }
.sg-record .w7c-recent-note { padding:9px 11px; }
.sg-record .w7c-note-preview { padding:14px 15px 11px; border-top-width:3px; }
.sg-record .w7c-note-preview h2 { font-size:17px; }
.sg-record .w7c-note-preview article { padding:8px 0; }
.sg-record .w7c-note-preview article p { margin:6px 0 5px; font-size:12px; line-height:1.45; }
.sg-record .w7c-note-preview article small { font-size:10px; }
.sg-record .w7c-overview .w7c-textlink { min-height:28px; font-size:11px; }
.sg-data { margin-bottom:22px; }
.sg-data-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.sg-data-pane { min-width:0; border:1px solid var(--line); border-radius:12px; background:var(--card); padding:15px 18px 14px; }
.sg-data-title { display:flex; align-items:center; gap:8px; min-height:34px; padding-bottom:10px; border-bottom:1px solid var(--line); }
.sg-data-title svg { width:17px; height:17px; color:var(--blue); flex:none; }
.sg-data-title h3 { margin:0; font:700 16px/1.2 var(--font-ui); color:var(--ink); }
.sg-data-title>span { margin-left:auto; color:var(--mute); font-size:11px; text-align:right; }
.sg-data-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; padding:13px 0; }
.sg-data-metrics>div { display:flex; flex-wrap:wrap; align-items:baseline; gap:3px 6px; min-width:0; padding:0 12px; border-left:1px solid var(--line); }
.sg-data-metrics>div:first-child { border-left:0; padding-left:0; }
.sg-data-metrics strong { color:var(--ink); font:700 24px/1 var(--font-num); }
.sg-data-metrics span { color:var(--mute); font-size:11px; line-height:1.3; }
.sg-data-row { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-top:1px solid var(--line); font-size:12px; }
.sg-data-row span { color:var(--mute); }
.sg-data-row b { color:var(--ink); font-weight:650; text-align:right; }
.sg-data-pane>small { display:block; color:var(--mute); font-size:10.5px; margin-top:7px; }
.sg-data-pane>button { display:block; border:0; background:transparent; padding:10px 0 0; color:var(--blue); font:700 11.5px var(--font-ui); cursor:pointer; text-align:left; }
.sg-data-pane>button:hover { text-decoration:underline; }
.sg-source-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:12px 0; }
.sg-source-grid>div { min-width:0; }
.sg-source-grid span { display:block; color:var(--mute); font-size:10px; text-transform:uppercase; letter-spacing:.05em; }
.sg-source-grid b { display:block; margin-top:3px; color:var(--ink); font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.sg-data-empty { color:var(--mute); font-size:12px; }
.sg-people-pane { grid-column:1 / -1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 18px; }
.sg-people-pane .sg-data-title, .sg-people-pane>button, .sg-people-pane>small, .sg-people-pane>.sg-data-empty { grid-column:1 / -1; }
.sg-person { display:flex; justify-content:space-between; align-items:center; gap:12px; min-width:0; padding:10px 0; border-bottom:1px solid var(--line); }
.sg-person>div { min-width:0; }
.sg-person b { display:block; color:var(--ink); font-size:12.5px; }
.sg-person span { display:block; color:var(--mute); margin-top:3px; font-size:10.5px; line-height:1.35; }
.sg-person a { color:var(--blue); font-size:12.5px; font-weight:650; white-space:nowrap; text-decoration:none; }
.sg-person a:hover { text-decoration:underline; }
.sg-person small { color:var(--mute); font-size:11px; white-space:nowrap; }
.sg-detail-heading { margin-bottom:2px; }
.sg-record .w6tablist { top:54px; }
@media (max-width:1100px) {
  .sg-account-tools { grid-template-columns:minmax(0,1fr); }
  .sg-brief { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sg-brief > .w7c-more { grid-column:1 / -1; }
  .sg-record .w7c-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sg-record .w7c-history-visual { grid-column:1 / -1; }
  .sg-vitals .w6vrow { display:flex; flex-wrap:wrap; }
}
@media (max-width:820px) {
  .sg-vitals { border-radius:11px; }
  .sg-vitals .w6vrow { padding:12px; gap:8px 12px; }
  .sg-vitals .w6vid { flex:1 1 60%; }
  .sg-vitals .w6vid h2 { font-size:23px; }
  .sg-vitals .w4call, .sg-vitals .w6vacts { flex:1 1 100%; }
  .sg-vitals .w4phone { font-size:23px; }
  .sg-vitals .w6vstate, .sg-vitals .w4own { flex:1 1 35%; }
  .sg-brief, .sg-data-grid { grid-template-columns:1fr; }
  .sg-brief > .w7c-more { grid-column:auto; }
  .sg-brief > .w7c-more .pl { display:block; }
  .sg-brief > .w7c-more .pl .pi { display:block; width:100%; }
  .sg-brief > .w7c-more .pl .pn { align-items:flex-start; margin-top:8px; text-align:left; }
  .sg-record .w7c-overview { display:block; }
  .sg-record .w7c-history-visual, .sg-record .w7c-note-preview { margin-bottom:10px; }
  .sg-people-pane { grid-column:auto; grid-template-columns:1fr; }
  .sg-section-heading { display:block; }
  .sg-section-heading p { margin-top:4px; }
  .sg-data-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .sg-person { flex-wrap:wrap; }
  .sg-company-page .w7c-utility-label,.sg-company-page .w7c-utility p,.sg-vitals .w4who,.sg-vitals .w6vacts .k4b { font-size:12px; }
  .sg-vitals .w6vacts .k4b { min-height:42px; }
  .sg-record-toolbar .w7btn { min-height:44px; }
  .sg-record>.w6tabs>.w6tablist { top:0; border-radius:9px; }
  .sg-record>.w6tabs>.w6tablist .w6tab { min-height:44px; font-size:12px; padding:9px 11px; }
  .sg-record>.w6tabs>.w6panel:not([data-panel=overview]) { padding:12px; }
  .sg-section-heading span,.sg-section-heading p,.sg-record .w7c-note-preview article small,.sg-record .w7c-overview .w7c-textlink,.sg-data-title>span,.sg-data-metrics span,.sg-data-pane>small,.sg-source-grid span,.sg-person span,.sg-person small { font-size:12px; }
  .sg-record .w7c-note-preview article p,.sg-person b,.sg-person a { font-size:14px; }
  .sg-data-pane>button,.sg-record .w7c-overview .w7c-textlink { min-height:44px; font-size:13px; }
  .sg-account-tools .crm-fu-head { flex-direction:row; align-items:center; }
  .sg-account-tools .crm-fu-head .w7btn { min-height:44px; }
}

/* Pilot account workspace. These rules follow the earlier concept styles so the
   working record has one visible navigation and a compact, source-dated overview. */
.sg-company-page { max-width:1480px; margin:auto; padding-bottom:80px; }
.sg-company-page * { box-sizing:border-box; }
.sg-company-page :is(button,a,summary,select,input,textarea):focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.sg-vitals { margin:0 0 12px; background:var(--bluetint); }
.sg-vitals .w4facts { white-space:normal; overflow:visible; line-height:1.4; }
.sg-vitals .w4svc { color:var(--ink2); }
.sg-vitals .w4say { max-width:none; flex-wrap:wrap; }
.sg-vitals .sg-state-scope { display:block; flex-basis:100%; color:var(--mute); font-size:10px; font-weight:750; letter-spacing:.06em; text-transform:uppercase; }
.sg-vitals .w4own { max-width:180px; font-size:12px; }
.sg-vitals .w4own .ol { max-width:125px; }
.sg-vitals .w4own select { max-width:150px; min-height:36px; font-size:12px; }
.sg-vitals .w4phone { color:var(--ink); }
.sg-vitals .sg-priority { display:inline-flex; align-items:center; gap:4px; color:var(--ink2); font-size:11px; white-space:nowrap; }
.sg-vitals .sg-priority::before { content:""; width:7px; height:7px; flex:none; border-radius:50%; background:var(--mute); }
.sg-vitals .sg-priority.likely::before { background:#b65b2b; }
.sg-vitals .sg-priority.possible::before { background:#b38b2a; }
.sg-vitals .sg-priority.unlikely::before { background:#728ba0; }
.sg-vitals .sg-priority b { color:var(--ink); font-weight:750; }
.sg-vitals .w6vacts .k4b { font-family:var(--font-ui); }
.sg-account-tools { display:block; margin-bottom:12px; }
.sg-account-tools .w7c-utility { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:5px 18px; margin:0; padding:10px 15px; border-radius:11px; }
.sg-account-tools .w7c-utility-place { font-size:12.5px; }
.sg-account-tools .w7c-utility-place b { font-size:12.5px; }
.sg-account-tools .w7c-utility-links { margin:0; font-size:12px; }
.sg-account-tools .w7c-utility p { flex-basis:100%; margin:0; font-size:11px; }
.sg-record .w6marks { margin:0 0 10px; }
.sg-record .w6facts { margin:0 0 6px; }
.sg-record .w6fact { padding:10px 14px; }
.sg-record .w6fv { font:700 18px/1.2 var(--font-ui); }
.sg-record .w6fs { font-size:11px; }
.sg-history-caveat { margin:5px 0 11px; color:var(--mute); font-size:11.5px; line-height:1.4; }
.sg-record-toolbar { margin:11px 0 9px; }
.sg-record-toolbar>span { color:var(--blue); }
.sg-record-toolbar small { display:block; margin-top:4px; color:var(--mute); font-size:11px; font-weight:500; letter-spacing:0; text-transform:none; }
.sg-record>.w6tabs>.w6tablist { top:54px; margin:0 0 12px; background:var(--card); scroll-margin-top:60px; }
.sg-record>.w6tabs>.w6tablist .w6tab { font-family:var(--font-ui); font-weight:650; }
.sg-record>.w6tabs>.w6panel:not([data-panel=overview]) { padding:17px 19px; }
.sg-record .tm.other { border:1px solid var(--line); background:var(--surface-2); color:var(--blue); }
.sg-company-page .pl .pi .sg-contact-email { display:block; margin-top:4px; color:var(--ink2); font-size:12px; overflow-wrap:anywhere; }
.sg-company-page .pl .pi .sg-contact-email a { color:var(--blue); font-weight:700; text-decoration:none; }
.sg-company-page .pl .pi .sg-contact-email a:hover { text-decoration:underline; }
.sg-overview-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(290px,1fr)); gap:11px; align-items:start; }
.sg-overview-grid>section { min-width:0; margin:0; border:1px solid var(--line); border-radius:11px; background:var(--card); }
.sg-overview-grid .w6bandpane .ph { min-height:38px; border-bottom:1px solid var(--line); background:transparent; color:var(--blue); }
.sg-overview-grid .w6bandpane .ph h3 { color:var(--ink); font:700 15px var(--font-ui); }
.sg-overview-grid .w6bandpane .pb { padding:10px 14px; }
.sg-overview-grid .w6rr { display:grid; grid-template-columns:1fr; gap:4px; padding:8px 0; }
.sg-overview-grid .w6rr .w6rt { display:block; width:auto; max-width:none; white-space:normal; overflow:visible; text-overflow:clip; line-height:1.4; }
.sg-overview-grid .w6rr .w6rw { display:block; text-align:left; white-space:normal; font-size:10.5px; }
.sg-overview-grid .w6bandpane .pl { padding:7px 0; }
.sg-overview-grid .w6bandpane .emptyst { padding:4px 0; }
.sg-clue-scope { margin:9px 0 0; padding-top:8px; border-top:1px solid var(--line); color:var(--mute); font-size:11.5px; line-height:1.4; }
.sg-overview-grid .crm-followups { padding:13px 15px; }
.sg-overview-grid .crm-fu-head h2 { font:700 15px var(--font-ui); }
.sg-overview-grid .crm-fu-head p { font-size:11.5px; }
.sg-overview-grid .crm-fu-head .w7btn { min-height:35px; font-size:11.5px; }
.sg-overview-grid .crm-fu-item { padding:10px 0; }
.sg-overview-grid .crm-fu-empty { font-size:12px; }
.sg-history { margin:13px 0 0; padding:15px 17px; border:1px solid var(--line); border-radius:11px; background:var(--card); }
.sg-history-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; padding-bottom:10px; border-bottom:1px solid var(--line); }
.sg-history-heading span { display:block; color:var(--blue); font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.sg-history-heading h2 { margin:4px 0 0; color:var(--ink); font:700 18px/1.2 var(--font-ui); }
.sg-history-heading button,.sg-history-panel button { min-height:34px; padding:4px 0; border:0; background:transparent; color:var(--blue); font:700 12px var(--font-ui); cursor:pointer; text-align:left; }
.sg-history-heading button:hover,.sg-history-panel button:hover { text-decoration:underline; }
.sg-history-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; }
.sg-history-panel { min-width:0; padding:10px 12px 0; border-left:2px solid var(--line); }
.sg-history-panel:first-child { border-left-color:var(--blue); }
.sg-history-panel header { display:flex; justify-content:space-between; gap:8px; align-items:baseline; }
.sg-history-panel h3 { margin:0; color:var(--ink); font:700 13px/1.3 var(--font-ui); }
.sg-history-panel header span { color:var(--mute); font-size:10.5px; white-space:nowrap; }
.sg-history-panel article { padding:8px 0; border-bottom:1px solid var(--line); }
.sg-history-panel article>div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 10px; color:var(--mute); font-size:10.5px; }
.sg-history-panel time { color:var(--blue); font-weight:750; }
.sg-history-panel p { margin:5px 0 0; color:var(--ink2); font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.sg-history-panel .sg-history-empty { margin:8px 0; color:var(--mute); }
.sg-history-scope { margin:12px 0 0; color:var(--mute); font-size:11.5px; line-height:1.4; }
.sg-note-brief { margin:0 0 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface-2); }
.sg-note-brief>summary { min-height:40px; padding:10px 13px; cursor:pointer; color:var(--ink2); font-size:12px; font-weight:700; }
.sg-note-brief>summary span { margin-left:8px; color:var(--mute); font-weight:500; }
.sg-note-brief #company-note-summary-slot { padding:0 10px 10px; }
.sg-note-brief .notes-summary { margin:0; }
.sg-empty-panel { padding:20px; border:1px dashed var(--line); border-radius:10px; background:var(--surface-2); }
.sg-empty-panel h3 { margin:0 0 5px; color:var(--ink); font-size:15px; }
.sg-empty-panel p { margin:0; color:var(--mute); font-size:12px; line-height:1.5; }
.sg-evidence-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin:0 0 13px; }
.sg-evidence-intro span { color:var(--blue); font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.sg-evidence-intro h2 { margin:3px 0 0; font:700 19px/1.2 var(--font-ui); }
.sg-evidence-intro p { max-width:370px; margin:0; color:var(--mute); font-size:11.5px; line-height:1.45; }
.sg-evidence .w7case { border:0; background:transparent; }
.sg-evidence .w7ch { padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--bluetint); }
.sg-evidence .w7ch .w7cname,.sg-evidence .w7ch .w7kicker { display:none; }
.sg-evidence .w7ch .w7sum { margin:3px 0; font-size:13px; line-height:1.5; }
.sg-evidence .w7cbody { margin-top:12px; }
.sg-evidence .w7csec { margin-top:12px; }
@media(max-width:900px) {
  .sg-vitals .w6vrow { display:flex; flex-wrap:wrap; gap:9px 12px; }
  .sg-vitals .w6back { flex:none; }
  .sg-vitals .w6vid { flex:1 1 60%; }
  .sg-vitals .w6vstate,.sg-vitals .w4own { flex:1 1 36%; max-width:none; }
  .sg-vitals .w4call,.sg-vitals .w6vacts { flex:1 1 100%; }
}
@media(max-width:820px) {
  .sg-company-page { padding-bottom:86px; }
  .sg-vitals .w6vacts { display:block; position:static; order:6; width:100%; flex-basis:100%; margin-top:4px; padding:9px 12px; border:1px solid var(--line); border-radius:9px; backdrop-filter:none; }
  .sg-vitals .w6vacts .w4ol { display:block; }
  .sg-vitals .w6vacts .k4acts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-top:6px; }
  .sg-vitals .w6vacts .k4b { width:100%; min-width:0; white-space:normal; }
  .sg-vitals .w4own select { max-width:100%; }
  body.on-company .callbar { display:none; }
  .sg-vitals .w6vacts .k4b { min-height:42px; font-size:12px; }
  .sg-account-tools .w7c-utility { display:block; padding:11px 13px; }
  .sg-account-tools .w7c-utility-place { display:grid; gap:2px; }
  .sg-account-tools .w7c-utility-links { margin:8px 0 0; }
  .sg-account-tools .w7c-utility p { margin-top:7px; font-size:12px; }
  .sg-record>.w6tabs>.w6tablist { top:50px; }
  .sg-record>.w6tabs>.w6tablist .w6tab { min-height:44px; font-size:12.5px; }
  .sg-record>.w6tabs>.w6panel:not([data-panel=overview]) { padding:12px; }
  .sg-history { padding:13px; }
  .sg-history-panel { padding:9px 0; border-left:0; border-top:2px solid var(--line); }
  .sg-history-panel:first-child { border-left:0; border-top-color:var(--blue); }
  .sg-history-panel p,.sg-history-scope,.sg-clue-scope { font-size:13px; }
  .sg-history-panel h3 { font-size:14px; }
  .sg-history-heading button,.sg-history-panel button { min-height:44px; font-size:13px; }
  .sg-note-brief>summary { min-height:44px; font-size:13px; }
  .sg-note-brief>summary span { display:block; margin:3px 0 0; font-size:12px; }
  .sg-evidence-intro { display:block; }
  .sg-evidence-intro p { margin-top:5px; font-size:12px; }
  .sg-record input,.sg-record textarea { font-size:16px; }
}
@media(max-width:540px) {
  .sg-vitals .w6back,.sg-vitals .w6vid { flex-basis:100%; }
  .sg-record .w6facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sg-record .w6facts>.w6fact:last-child:nth-child(odd) { grid-column:span 2; }
  .sg-history-heading { align-items:flex-start; flex-direction:column; }
  .sg-record-toolbar small { max-width:250px; line-height:1.35; }
}


/* Portfolio reference: explicit field boundaries and compact, labelled sections.
   Color reinforces the existing text; it never upgrades a clue to buying intent. */
.sg-company-page {
  --record-border:color-mix(in srgb,var(--ink) 26%,var(--card));
  --record-blue:color-mix(in srgb,var(--blue) 8%,var(--card));
  --record-amber:color-mix(in srgb,var(--warning) 9%,var(--card));
  --record-green:color-mix(in srgb,var(--positive) 8%,var(--card));
}
.sg-vitals { border:1px solid var(--record-border); border-top:3px solid var(--blue); border-radius:10px; }
.sg-vitals .w6vid h2 { font-weight:800; letter-spacing:-.025em; }
.sg-company-page .sg-field-label,.sg-vitals .sg-state-scope {
  display:block; margin-bottom:5px; color:var(--ink2); font-size:11px;
  font-weight:750; line-height:1.3; letter-spacing:.035em;
}
.sg-vitals .w4own { align-self:start; }
.sg-vitals .w4say { gap:5px; }
.sg-vitals .sg-state-scope { margin-bottom:0; }
.sg-vitals :is(#stagesel,#ownsel) {
  min-height:36px; padding:6px 9px; color:var(--ink); background:var(--card);
  border:1px solid var(--record-border); border-radius:6px; font-weight:650;
}
.sg-vitals .w4say[data-record-status=working] #stagesel,
.sg-vitals .w4say[data-record-status=customer] #stagesel { border-color:var(--positive); background:var(--record-green); }
.sg-vitals .w4say[data-record-status=hot] #stagesel { border-color:var(--warning); background:var(--record-amber); }
.sg-company-page .w7c-utility-links a {
  display:inline-flex; align-items:center; min-height:32px; margin:2px 3px;
  padding:5px 9px; border:1px solid var(--record-border); border-radius:5px;
  background:var(--card); color:var(--blue); font-weight:650; text-decoration:none;
}
.sg-company-page .w7c-utility-links a:hover { background:var(--record-blue); border-color:var(--blue); }
.sg-record .w6facts { border:1px solid var(--line); background:var(--card); }
.sg-record .w6fk { font-size:10.5px; font-weight:750; color:var(--ink2); }
.sg-record .w6fv { font-size:22px; font-weight:750; }
.sg-record>.w6tabs>.w6tablist { gap:2px; padding:0 4px; border-radius:7px; background:var(--surface-2); }
.sg-record>.w6tabs>.w6tablist .w6tab { border-radius:0; border-bottom:3px solid transparent; color:var(--ink2); }
.sg-record>.w6tabs>.w6tablist .w6tab.on { border-bottom-color:var(--blue); background:var(--record-blue); color:var(--blue); font-weight:750; }
.sg-overview-grid>section { border-color:var(--record-border); border-radius:8px; }
.sg-overview-grid .w6bandpane .ph { min-height:42px; padding:10px 14px; border-radius:7px 7px 0 0; background:var(--record-blue); }
.sg-overview-grid #w4reasons .ph { background:var(--record-amber); color:var(--warning); }
.sg-overview-grid .w6bandpane .ph h3 { font-weight:750; }
.sg-overview-grid .w6rr .w4rlab { color:var(--ink); font-weight:750; font-size:12px; }
.sg-overview-grid .w6rr .w6rt { color:var(--ink2); font-size:12px; }
.sg-overview-grid .crm-followups { padding:0 14px 12px; }
.sg-overview-grid .crm-fu-head {
  margin:0 -14px 9px; padding:10px 14px; border-bottom:1px solid var(--line);
  border-radius:7px 7px 0 0; background:var(--record-blue); gap:8px; flex-wrap:wrap;
}
.sg-company-page .crm-fu-status { border:1px solid currentColor; font-weight:750; }
.sg-company-page .crm-fu-status.completed { color:var(--positive); background:var(--record-green); }
.sg-company-page .crm-fu-status.overdue { color:var(--danger); background:color-mix(in srgb,var(--danger) 8%,var(--card)); }
.sg-company-page .crm-fu-status.due_today { color:var(--warning); background:var(--record-amber); }
.sg-company-page .crm-fu-head .w7btn,.sg-company-page .crm-fu-form button[type=submit] {
  background:var(--blue); border-color:var(--blue); color:var(--card); font-weight:700;
}
.sg-history { border-color:var(--record-border); border-radius:8px; padding-top:0; }
.sg-history-heading { margin:0 -17px 0; padding:11px 17px; background:var(--record-blue); border-radius:7px 7px 0 0; }
.sg-history-panel { margin-top:10px; padding-top:0; }
.sg-history-panel[data-history-lane=sales] { border-color:var(--blue); }
.sg-history-panel[data-history-lane=service] { border-color:var(--ink-muted); }
.sg-history-panel header { padding:7px 9px; margin:0 -1px 2px; border-radius:4px; background:var(--surface-2); }
.sg-history-panel[data-history-lane=sales] header { background:var(--record-blue); }
.sg-history-panel h3 { font-weight:750; }
.sg-company-page .sg-note-brief { border-color:var(--record-border); }
.sg-record .w6comp { padding:11px 12px; background:var(--record-blue); border:1px solid var(--record-border); border-left:3px solid var(--blue); border-radius:7px; }
.sg-record .w6comp>.sg-field-label { margin-bottom:8px; font-size:12px; color:var(--ink); }
.sg-company-page :is(.w5cform,.crm-fu-form) { padding:12px; background:var(--surface-2); border:1px solid var(--record-border); border-radius:7px; }
.sg-company-page :is(.w5cform,.crm-fu-form) label { color:var(--ink); font-weight:700; }
.sg-company-page :is(input:not([type=checkbox]):not([type=radio]),textarea,select) {
  border:1px solid var(--record-border); border-radius:5px; background:var(--card); color:var(--ink);
}
.sg-company-page :is(input:not([type=checkbox]):not([type=radio]),select) { min-height:36px; }
.sg-company-page :is(input,textarea)::placeholder { color:var(--ink-muted); opacity:1; }
.sg-company-page :is(input,textarea,select):focus { outline:2px solid var(--blue); outline-offset:1px; }
.sg-company-page .w5tlsearch .fsearch { min-height:36px; padding:0 9px; background:var(--card); border:1px solid var(--record-border); border-radius:5px; }
.sg-company-page .w5tlsearch input { border:0; background:transparent; }
.sg-company-page .w6chip { border-radius:5px; min-height:30px; font-weight:650; }
.sg-record .w6chip.on { background:var(--record-blue); border-color:var(--blue); }
.sg-company-page :is(button,a):focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
@media(max-width:820px) {
  .sg-vitals :is(#stagesel,#ownsel),.sg-company-page .w7c-utility-links a { min-height:42px; }
  .sg-vitals .w4own { padding-top:0; border-top:0; }
  .sg-history-heading { margin:0 -13px; padding:11px 13px; }
  .sg-company-page .sg-field-label { font-size:12px; }
  .sg-record .w6chip { min-height:40px; }
  .sg-company-page :is(input:not([type=checkbox]):not([type=radio]),textarea,select) { font-size:16px; }
  .sg-overview-grid { grid-template-columns:minmax(0,1fr); }
}
