.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.crm-session-bar, .crm-sidebar-sections { display: none; }
body.crm-mode { background: #f4f6f8; color: #1c333b; }
.crm-mode .main { padding-top: 64px; }
.crm-mode .sidebar { top: 64px; background: #14272f; color: #b5c6cc; border-color: #294047; padding-top: 20px; backdrop-filter: none; overflow-y: auto; }
.crm-mode .sidebar > .brand { display: none; }
.crm-mode .sidebar .nav { margin-top: 0; }
.crm-mode .sidebar .nav-item { color: #b5c6cc; font-weight: 600; font-size: 13px; border-radius: 5px; }
.crm-mode .sidebar .nav-item.active { background: #25474e; color: #e3f8f5; }
.crm-mode .sidebar .nav-icon { border: 0; }
.crm-mode .sidebar-note { display: none; }
.crm-mode .sidebar .account { margin-top: auto; }
.crm-mode .sidebar #account-settings { margin-top: 16px; }
.crm-mode .sidebar .nav-item:hover { background: #254047; }
.crm-mode .crm-sidebar-sections { display: grid; gap: 4px; margin-top: 18px; border-top: 1px solid #294047; padding-top: 16px; }
.crm-sidebar-sections button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px; border: 0; border-radius: 4px; background: transparent; color: #b5c6cc; font-size: 12px; font-weight: 500; line-height: 1.35; text-align: left; cursor: pointer; }
.crm-sidebar-sections button b { margin-left: auto; font: 11px ui-monospace, monospace; }
.crm-sidebar-sections button[aria-current="page"] { background: #25474e; color: #d8f8f0; }
.crm-mode .crm-session-bar { display: flex; position: fixed; inset: 0 0 auto; height: 64px; z-index: 35; align-items: center; justify-content: space-between; padding: 12px 28px; background: #14272f; color: #e4ecee; font-size: 14px; font-weight: 650; }
.crm-session-bar small { display: block; text-transform: uppercase; font-size: 9px; letter-spacing: .12em; color: #a1b7bf; font-weight: 500; }
#crm-session-name { font-size: 12px; font-weight: 400; }
#view-crm { width: min(1440px, calc(100% - 64px)); padding-top: 34px; --teal: #087f7a; --ink: #1c333b; }
.crm-heading { display: flex; justify-content: space-between; align-items: start; gap: 28px; margin-bottom: 30px; }
.crm-heading .eyebrow { color: #637983; font-size: 10px; }
.crm-heading h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.05em; margin: 6px 0 10px; }
.crm-heading p { color: #637983; font-size: 13px; margin: 0; }
.crm-metrics { display: flex; gap: 24px; padding-top: 8px; }
.crm-metrics > div { border-left: 1px solid #dce5e9; padding-left: 18px; min-width: 85px; }
.crm-metrics strong { display: block; font: 25px ui-monospace, monospace; }
.crm-metrics span { display: block; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; color: #637983; }
#view-crm .button { font-size: 12px; min-height: 44px; border-radius: 5px; font-weight: 600; box-shadow: none; }
#view-crm .button.secondary { border: 1px solid #dce5e9; background: #fff; color: #446771; }
.crm-sections { display: none; }
.crm-toolbar { display: flex; align-items: stretch; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #dce5e9; }
.crm-search { flex: 1; min-width: 0; scroll-margin-top: 80px; }
.crm-search input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #dce5e9; border-radius: 5px; background: #fff; color: inherit; font-size: 14px; }
#view-crm :is(input, select, textarea):focus-visible { outline: 2px solid #168d87; outline-offset: 2px; }
.crm-filters:not([hidden]) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: 12px; padding: 16px; border: 1px solid #dce5e9; background: #fff; margin-top: 12px; border-radius: 5px; }
.crm-filters label { font-size: 12px; display: grid; gap: 8px; min-width: 0; }
.crm-filters select { min-height: 44px; width: 100%; min-width: 0; border: 1px solid #dce5e9; border-radius: 4px; padding: 8px; background: #fff; color: inherit; }
.crm-list-meta { display: flex; justify-content: space-between; gap: 16px; color: #637983; font-size: 12px; margin: 16px 0; }
.crm-list-meta p { margin: 0; }
.crm-insights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; margin: 0 0 16px; }
.crm-insights details, .crm-help { border: 1px solid #dce5e9; border-radius: 5px; padding: 13px 15px; background: #fff; min-width: 0; }
.crm-insights summary, .crm-help summary { cursor: pointer; font-size: 13px; font-weight: 600; min-height: 20px; }
.crm-help summary { min-height: 28px; }
.crm-help { margin-top: 18px; line-height: 1.6; font-size: 13px; }
.crm-help label { display: flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 44px; }
.crm-hint { font-size: 12px; line-height: 1.55; color: #637983; margin: 12px 0 0; }
.crm-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 0; }
.crm-card { border-radius: 5px; border: 1px solid #dce5e9; border-left: 3px solid #168d87; box-shadow: none; padding: 18px; }
.crm-card[data-status="won"] { border-left-color: #26815b; }
.crm-card[data-status="lost"] { border-left-color: #95a6ad; }
.crm-card-head { display: flex; gap: 12px; justify-content: space-between; align-items: start; }
.crm-card-head > div { min-width: 0; }
.crm-card h2 { font-size: 16px; font-weight: 650; line-height: 1.4; letter-spacing: -.025em; margin: 0 0 6px; }
.crm-card .crm-meta { font-size: 12px; color: #637983; line-height: 1.6; margin: 0; }
.crm-card-rating { font: 18px ui-monospace, monospace; white-space: nowrap; color: #446771; }
.crm-card-rating small { display: block; text-align: right; font-size: 9px; line-height: 1.6; text-transform: uppercase; }
.crm-status-line { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin: 18px 0 10px; }
.crm-status-label { font-size: 12px; color: #446771; }
.crm-due { margin: 10px 0 0; font-size: 12px; color: #925721; }
.crm-phone { font: 12px ui-monospace, monospace; padding-top: 12px; border-top: 1px solid #e7edf0; color: #446771; margin: 0 0 10px; }
.crm-files { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 0 8px; gap: 6px; }
.crm-contact-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.crm-contact-actions:has(> :nth-child(4)) { grid-template-columns: repeat(4,minmax(0,1fr)); }
.crm-contact-actions button, .crm-contact-actions a { flex-direction: column; gap: 5px; min-height: 60px !important; font-size: 11px !important; text-decoration: none; }
.crm-icon { width: 17px; height: 17px; flex: 0 0 17px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.crm-confirm { width: 100%; margin-top: 8px; background: #ecf7f2 !important; border-color: #cce6dd !important; color: #28734f !important; }
.crm-empty { grid-column: 1 / -1; padding: 36px 24px; background: #fff; border: 1px solid #dce5e9; text-align: center; border-radius: 5px; }
.crm-pagination { padding: 20px 0 0; }
#crm-page-numbers { display: flex; gap: 5px; }
#crm-page-numbers .button[aria-current="page"] { background: #087f7a; color: white; }
.crm-performance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.crm-performance-grid strong { display: block; font-size: 22px; }
.crm-performance-grid span { font-size: 12px; color: #637983; }
.crm-event { padding: 12px 0; border-bottom: 1px solid #e7edf0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.crm-event small { display: block; color: #637983; }
.crm-event button { border: 0; background: transparent; padding: 0; color: #087f7a; font: inherit; text-align: left; cursor: pointer; }
.crm-drawer { position: fixed; inset: 0 0 0 auto; max-height: 100dvh; height: 100dvh; width: min(620px,100%); max-width: 100%; margin: 0 0 0 auto; padding: 24px; background: #fff; color: #1c333b; border: 0; border-left: 1px solid #dce5e9; overflow-y: auto; overscroll-behavior: contain; }
.crm-drawer::backdrop { background: rgba(12,30,37,.4); }
.crm-drawer-top { position: sticky; top: -1px; z-index: 2; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; padding-block: 6px; }
#crm-focus-position { font-size: 12px; color: #637983; }
.crm-drawer h2 { font-size: 26px; line-height: 1.3; margin-bottom: 10px; overflow-wrap: anywhere; }
.crm-drawer .crm-form { margin: 24px 0 16px; }
.crm-drawer .crm-contact-actions { margin-top: 14px; }
.crm-compose { border-block: 1px solid #dce5e9; margin: 24px 0; padding: 20px 0; scroll-margin-top: 68px; }
.crm-compose label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.crm-compose select, .crm-compose textarea { width: 100%; min-height: 44px; font: inherit; border: 1px solid #c8d3cd; border-radius: 5px; padding: 10px; background: #fff; color: inherit; }
.crm-compose-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crm-contact-result { display: grid; gap: 8px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.crm-contact-result:empty { display: none; }
.crm-sharing { border-top: 1px solid #dce5e9; padding-top: 20px; margin-top: 24px; }
.crm-sharing .button { margin: 4px 6px 4px 0; max-width: 100%; white-space: normal; }
.crm-confirm-check { display: flex !important; align-items: start; gap: 10px; font-size: 13px; font-weight: 400 !important; margin: 16px 0 !important; }
.crm-confirm-check input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0; }
.crm-focus-nav { display: flex; gap: 10px; margin-top: 20px; padding-bottom: env(safe-area-inset-bottom); }
.crm-focus-nav button { flex: 1; }
.crm-compact .crm-card { padding: 14px; }
.crm-compact .crm-status-line { margin-top: 10px; }
.crm-compact .crm-contact-actions button { min-height: 44px !important; flex-direction: row; }
@media(max-width:1200px) { .crm-heading { flex-direction: column; }.crm-metrics { gap: 16px; }.crm-metrics > div:first-child { border-left: 0; padding-left: 0; }.crm-filters:not([hidden]) { grid-template-columns: repeat(2,minmax(0,1fr)); }.crm-grid { grid-template-columns: 1fr; } }
@media(max-width:780px) {
  .crm-mode .main { padding-top: 0; }.crm-mode .crm-session-bar, .crm-sidebar-sections { display: none; }
  #view-crm { width: calc(100% - 24px); padding-top: 24px; }
  .crm-heading { gap: 18px; margin-bottom: 20px; }.crm-heading h1 { font-size: 29px; }
  .crm-metrics { width: 100%; }.crm-metrics > div { flex: 1; min-width: 0; }
  .crm-sections { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 10px; }
  .crm-sections button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #dce5e9; border-radius: 5px; color: #446771; background: white; font-size: 12px; }
  .crm-sections button[aria-current="page"] { background: #14272f; color: #fff; border-color: #14272f; }
  .crm-toolbar { flex-wrap: wrap; gap: 6px; }.crm-search { flex-basis: 100%; }.crm-search input { font-size: 16px; }
  .crm-toolbar > button { flex: 1; padding: 10px; }.crm-insights { grid-template-columns: 1fr; gap: 8px; }
  .crm-list-meta { flex-direction: column; gap: 5px; }.crm-card { padding: 16px; }
  .crm-filters select, .crm-drawer select, .crm-drawer input:not([type="checkbox"]), .crm-drawer textarea { font-size: 16px; }
  .crm-drawer { padding: calc(16px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); }
  .crm-drawer-top { margin-bottom: 18px; }.crm-drawer h2 { font-size: 23px; }
  .crm-status-line .button { padding-inline: 10px; }.crm-files .button { padding-inline: 8px; }
  #crm-page-numbers { order: 4; flex-basis: 100%; justify-content: center; }.crm-pagination { gap: 10px; }
}
@media(max-width:360px) { .crm-filters:not([hidden]) { grid-template-columns: 1fr; }.crm-metrics { gap: 10px; }.crm-metrics > div { padding-left: 10px; }.crm-contact-actions { gap: 4px; }.crm-contact-actions:has(> :nth-child(4)) { grid-template-columns: repeat(2,minmax(0,1fr)); }.crm-contact-actions .button { padding-inline: 5px; }.crm-card-rating { font-size: 16px; } }
