:root {
  --ink: #10211f;
  --ink-soft: #536a66;
  --muted: #849590;
  --line: #e5eeeb;
  --line-strong: #d4e3de;
  --canvas: #f5f8f7;
  --panel: #ffffff;
  --teal: #0f5c58;
  --teal-deep: #0b403e;
  --teal-wash: #e9f5f2;
  --mint: #c6ff6b;
  --mint-deep: #86b94e;
  --lilac: #a497e4;
  --amber: #f4bc66;
  --coral: #ed8e77;
  --shadow: 0 18px 50px rgba(16, 33, 31, 0.06);
  --font-ui: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font-ui); font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(198, 255, 107, .75); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 232px; flex: 0 0 232px; min-height: 100vh; padding: 27px 15px 18px; background: var(--ink); color: #eaf4f1; display: flex; flex-direction: column; }
.brand-lockup { display: flex; align-items: center; gap: 10px; padding: 0 10px 38px; }
.brand-mark { width: 29px; height: 29px; background: var(--mint); border-radius: 8px; position: relative; box-shadow: 0 0 0 5px rgba(198, 255, 107, .06); }
.brand-mark span:first-child { position: absolute; width: 5px; height: 17px; background: var(--ink); left: 8px; top: 6px; border-radius: 4px; }
.brand-mark span:last-child { position: absolute; width: 11px; height: 6px; background: var(--ink); left: 11px; top: 6px; border-radius: 0 5px 5px 0; box-shadow: 0 10px 0 var(--ink); }
.brand-mark.mini { width: 20px; height: 20px; border-radius: 6px; box-shadow: none; }
.brand-mark.mini span:first-child { width: 4px; height: 12px; left: 6px; top: 4px; }
.brand-mark.mini span:last-child { width: 8px; height: 4px; left: 9px; top: 4px; box-shadow: 0 7px 0 var(--ink); }
.brand-name { font-size: 15px; font-weight: 800; letter-spacing: -.04em; color: #fff; }
.brand-name span { color: var(--mint); }
.brand-caption { font-family: var(--font-mono); color: #84a39b; text-transform: uppercase; font-size: 8px; letter-spacing: .14em; margin-top: 3px; }
.sidebar-label { padding: 0 12px 10px; color: #66857e; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; font-weight: 600; }
.sidebar-label-spaced { margin-top: 28px; }
.nav-list { display: grid; gap: 3px; }
.nav-item { appearance: none; border: 0; background: transparent; color: #a4bdb7; display: flex; width: 100%; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 9px; text-align: left; font-size: 12px; transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); transform: translateX(1px); }
.nav-item.active { color: var(--ink); background: var(--mint); font-weight: 700; box-shadow: 0 8px 24px rgba(198,255,107,.12); }
.nav-item.muted { color: #91aaa4; }
.nav-icon { width: 18px; text-align: center; font-size: 16px; line-height: 1; opacity: .9; }
.nav-item kbd { margin-left: auto; color: #5d7b74; font-family: var(--font-mono); font-size: 9px; }
.nav-item.active kbd { color: #658b43; }
.nav-count { margin-left: auto; color: #78968f; font-family: var(--font-mono); font-size: 10px; }
.nav-item.active .nav-count { color: #4c743b; }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; margin: 0 5px; }
.dot-amber { background: var(--amber); box-shadow: 0 0 0 4px rgba(244,188,102,.1); }
.dot-mint { background: var(--mint); box-shadow: 0 0 0 4px rgba(198,255,107,.08); }
.dot-lilac { background: var(--lilac); box-shadow: 0 0 0 4px rgba(164,151,228,.1); }
.sidebar-bottom { margin-top: auto; }
.upgrade-card { background: #183c38; border: 1px solid #265e56; border-radius: 11px; padding: 15px; position: relative; overflow: hidden; margin: 20px 4px 21px; }
.upgrade-card:after { content: ""; position: absolute; width: 90px; height: 90px; border: 1px solid rgba(198,255,107,.22); border-radius: 50%; right: -44px; top: -35px; box-shadow: 0 0 0 12px rgba(198,255,107,.04), 0 0 0 24px rgba(198,255,107,.03); }
.upgrade-orbit { position: absolute; z-index: 1; right: 14px; top: 13px; color: var(--mint); font-size: 19px; }
.upgrade-card .eyebrow { color: var(--mint); margin-bottom: 8px; }
.upgrade-card strong { display: block; color: #fff; font-size: 13px; line-height: 1.35; letter-spacing: -.02em; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--teal); font-size: 11px; font-weight: 700; }
.text-button span { margin-left: 4px; transition: margin .18s ease; }
.text-button:hover span { margin-left: 8px; }
.upgrade-card .text-button { color: #bbd7d0; margin-top: 15px; font-size: 10px; }
.user-card { display: flex; align-items: center; gap: 9px; padding: 0 8px; }
.user-meta { min-width: 0; display: grid; gap: 2px; }
.user-meta strong { font-size: 11px; color: #e9f3f0; font-weight: 600; }
.user-meta span { color: #73918a; font-size: 9px; }
.user-card .icon-button { margin-left: auto; color: #77958e; }

.main-content { min-width: 0; flex: 1; }
.topbar { height: 71px; background: rgba(255,255,255,.84); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 37px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #91a09d; font-size: 12px; }
.breadcrumbs strong { color: var(--ink); font-weight: 600; }
.slash { color: #c4d0cd; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.date-pill, .filter-button, .secondary-button { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 7px; color: #5f7671; height: 33px; padding: 0 11px; display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.date-pill:hover, .filter-button:hover, .secondary-button:hover { border-color: #9ebcb3; box-shadow: 0 5px 12px rgba(16,33,31,.05); transform: translateY(-1px); }
.calendar-icon { font-size: 16px; line-height: 0; color: var(--teal); }
.chevron { color: #8ca09b; font-size: 13px; margin-left: 2px; }
.icon-button { border: 1px solid transparent; background: transparent; width: 34px; height: 34px; border-radius: 8px; display: inline-grid; place-items: center; color: #79908b; font-size: 17px; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.icon-button:hover { background: var(--teal-wash); border-color: var(--line-strong); color: var(--teal); }
.icon-button.small { width: 25px; height: 25px; font-size: 12px; }
.notification-button { position: relative; }
.notification-button i { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); position: absolute; right: 5px; top: 5px; border: 1px solid #fff; }
.avatar { width: 27px; height: 27px; flex: 0 0 27px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 9px; }
.avatar-you { color: var(--teal-deep); background: var(--mint); }
.top-avatar { border-radius: 50%; width: 29px; height: 29px; }

.content-wrap { max-width: 1520px; margin: 0 auto; padding: 37px 37px 23px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.eyebrow, .metric-label, .detail-label, .sidebar-label, .footer-label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .11em; font-size: 9px; font-weight: 600; }
.eyebrow { color: #92a39f; }
.intro-eyebrow { color: var(--teal); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; background: var(--mint-deep); border-radius: 50%; box-shadow: 0 0 0 4px rgba(134,185,78,.14); }
h1 { font-size: clamp(28px, 3.1vw, 41px); line-height: 1.06; letter-spacing: -.062em; margin: 0; font-weight: 800; color: var(--ink); }
h1 em { color: var(--teal); font-style: normal; position: relative; }
h1 em:after { content: ""; height: 4px; position: absolute; left: 2px; right: 2px; bottom: -8px; background: var(--mint); border-radius: 5px; transform: rotate(-1deg); z-index: -1; }
.intro-copy { color: #7a8f8a; margin: 18px 0 0; font-size: 12px; }
.intro-actions { display: flex; gap: 8px; padding-bottom: 3px; }
.primary-button { border: 1px solid var(--teal); color: var(--ink); background: var(--mint); height: 35px; padding: 0 14px; border-radius: 7px; font-weight: 700; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 7px 17px rgba(113,163,64,.18); background: #d4ff8d; }
.primary-button span { font-size: 16px; font-weight: 400; line-height: 0; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 17px; }
.metric-card { min-height: 141px; padding: 17px 17px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 18px rgba(24, 53, 46, .025); }
.metric-card.featured { background: var(--teal); border-color: var(--teal); color: #fff; position: relative; overflow: hidden; }
.metric-card.featured:after { content: ""; position: absolute; width: 140px; height: 140px; border: 1px solid rgba(198,255,107,.13); border-radius: 50%; right: -72px; bottom: -69px; box-shadow: 0 0 0 15px rgba(198,255,107,.04), 0 0 0 31px rgba(198,255,107,.025); }
.metric-top, .metric-value-row, .metric-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.metric-label { color: #89a09a; }
.featured .metric-label { color: #b9d8d0; }
.metric-menu { color: #abc0bc; letter-spacing: 2px; font-size: 10px; }
.featured .metric-menu { color: #b7ded1; }
.metric-value-row { margin-top: 18px; justify-content: flex-start; }
.metric-value { font-size: 25px; letter-spacing: -.055em; line-height: 1; }
.trend { font-family: var(--font-mono); font-size: 9px; font-weight: 600; white-space: nowrap; }
.trend.positive { color: #76a745; }
.featured .trend.positive { color: var(--mint); }
.trend.negative { color: var(--coral); }
.metric-footer { margin-top: 24px; color: #95a5a1; font-size: 9px; }
.featured .metric-footer { color: #a8c9c0; }
.metric-spark { display: flex; align-items: flex-end; height: 17px; gap: 2px; }
.metric-spark i { width: 3px; display: block; border-radius: 5px 5px 0 0; background: currentColor; opacity: .32; }
.metric-spark i:nth-child(1) { height: 5px; }.metric-spark i:nth-child(2) { height: 9px; }.metric-spark i:nth-child(3) { height: 7px; }.metric-spark i:nth-child(4) { height: 12px; }.metric-spark i:nth-child(5) { height: 10px; }.metric-spark i:nth-child(6) { height: 15px; }.metric-spark i:nth-child(7) { height: 17px; opacity: .75; }
.spark-blue { color: #88d4c7; }.spark-mint { color: #84b45b; }.spark-lilac { color: var(--lilac); }.spark-amber { color: var(--amber); }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.78fr) minmax(290px, .82fr); gap: 17px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 18px rgba(24,53,46,.025); }
.leads-panel { min-width: 0; overflow: visible; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 21px 21px 16px; }
.panel-heading.compact { padding-bottom: 14px; }
h2 { margin: 4px 0 0; font-size: 15px; letter-spacing: -.035em; }
.heading-count { display: inline-grid; place-items: center; min-width: 22px; height: 18px; margin-left: 3px; padding: 0 5px; border-radius: 5px; background: var(--teal-wash); color: var(--teal); vertical-align: 1px; font-family: var(--font-mono); font-size: 9px; font-weight: 500; }
.view-all-button { border: 0; background: transparent; color: var(--teal); font-size: 10px; font-weight: 700; padding: 4px 0; }
.view-all-button span { margin-left: 4px; font-size: 15px; vertical-align: -1px; }
.toolbar { display: flex; justify-content: space-between; gap: 10px; padding: 0 21px 15px; }
.search-field { flex: 1; max-width: 275px; height: 32px; border: 1px solid var(--line); background: #fbfdfc; border-radius: 6px; display: flex; align-items: center; gap: 7px; padding: 0 9px; color: #94a7a2; }
.search-field:focus-within { border-color: #9dc6bc; box-shadow: 0 0 0 3px rgba(15,92,88,.07); }
.search-field span { font-size: 16px; line-height: 0; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 10px; color: var(--ink); }
.search-field input::placeholder { color: #9caca8; }
.filter-actions { display: flex; gap: 6px; position: relative; }
.filter-button { height: 32px; padding: 0 9px; font-size: 9px; background: #fff; }
.status-filter-dot { width: 6px; height: 6px; background: var(--mint-deep); border-radius: 50%; }
.filter-icon { height: 32px; width: 30px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 18px; }
.filter-menu { position: absolute; z-index: 8; top: 38px; right: 37px; width: 158px; padding: 5px; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-5px); transition: .18s ease; }
.team-menu { right: 37px; }
#statusMenu { right: 196px; }
.filter-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.filter-menu button { display: block; width: 100%; border: 0; background: transparent; text-align: left; padding: 8px 9px; border-radius: 5px; color: var(--ink-soft); font-size: 10px; }
.filter-menu button:hover { background: var(--teal-wash); color: var(--teal); }
.table-wrap { overflow-x: auto; }
.leads-table { width: 100%; border-collapse: collapse; min-width: 740px; }
.leads-table th { text-align: left; color: #9aa9a5; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .09em; font-size: 8px; font-weight: 600; padding: 11px 8px; white-space: nowrap; }
.leads-table th:first-child, .leads-table td:first-child { padding-left: 21px; }
.leads-table th:last-child, .leads-table td:last-child { padding-right: 21px; }
.check-col { width: 36px; }
.leads-table input[type=checkbox] { appearance: none; width: 13px; height: 13px; border: 1px solid #cbd9d5; border-radius: 3px; vertical-align: -3px; cursor: pointer; }
.leads-table input[type=checkbox]:checked { background: var(--teal); border-color: var(--teal); box-shadow: inset 0 0 0 3px #fff; }
.sort-button { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.sort-button span { color: #c6d4d0; font-size: 12px; }
.sort-button:hover { color: var(--teal); }
.leads-table td { padding: 12px 8px; border-bottom: 1px solid #edf3f1; color: #566d68; font-size: 10px; white-space: nowrap; }
.leads-table tbody tr { transition: background .18s ease; cursor: pointer; }
.leads-table tbody tr:hover { background: #f5fbf7; }
.leads-table tbody tr.selected { background: #f0faee; }
.lead-cell { display: flex; align-items: center; gap: 9px; min-width: 160px; }
.lead-avatar { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 8px; color: #183b36; font-size: 9px; font-weight: 800; }
.avatar-blue, .lead-blue { background: #c9e9e3; color: #19635c; }.avatar-coral, .lead-coral { background: #f9d1c6; color: #994c3d; }.avatar-yellow, .lead-yellow { background: #f9e5b2; color: #8e681b; }.lead-lilac { background: #ddd8fa; color: #5f559f; }.lead-sky { background: #c7e4f7; color: #236189; }.lead-rose { background: #f3c6db; color: #883958; }
.lead-cell strong { display: block; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: -.015em; }.lead-cell small { display: block; color: #99a9a5; font-size: 9px; margin-top: 2px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 5px; font-size: 9px; font-weight: 700; letter-spacing: -.01em; }.status-badge:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .75; }.status-new { background: #ecf8d8; color: #69943c; }.status-qualified { background: #e2f1f1; color: #327b75; }.status-contacted { background: #e9e5fb; color: #6b5da8; }.status-proposal { background: #fff1dc; color: #b27524; }.status-closed { background: #e5f4e9; color: #418157; }
.owner-cell { display: inline-flex; align-items: center; gap: 6px; color: #425b56; }.owner-cell .avatar { width: 20px; height: 20px; flex-basis: 20px; font-size: 7px; border-radius: 50%; }
.value-cell { font-family: var(--font-mono); font-size: 10px; color: var(--ink) !important; }.source-cell { color: #728680 !important; }.date-cell { font-family: var(--font-mono); font-size: 9px !important; color: #99a9a5 !important; }.row-arrow { color: #b8c9c4; font-size: 17px; }
.table-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 21px; color: #9aa9a5; font-size: 9px; }
.pagination { display: flex; align-items: center; gap: 3px; }.page-button { width: 23px; height: 23px; display: grid; place-items: center; color: #8b9d98; border: 1px solid transparent; border-radius: 5px; background: transparent; font-family: var(--font-mono); font-size: 9px; }.page-button:hover { border-color: var(--line-strong); }.page-button.active { border-color: var(--teal); color: var(--teal); background: var(--teal-wash); font-weight: 600; }.page-button.next { font-size: 14px; }.page-button:disabled { cursor: not-allowed; opacity: .35; }
.side-stack { display: grid; gap: 17px; }
.funnel-panel { padding-bottom: 16px; }
.funnel-total { padding: 1px 21px 21px; display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--line); }.funnel-total strong { font-size: 24px; letter-spacing: -.06em; }.funnel-total span:not(.trend) { color: #98a9a5; font-size: 9px; }.funnel-total .trend { margin-left: auto; }
.funnel-chart { padding: 17px 21px 13px; display: grid; gap: 12px; }.funnel-row { display: grid; grid-template-columns: 79px 1fr 35px; align-items: center; gap: 8px; }.funnel-label { color: #536c66; font-size: 9px; }.funnel-label small { color: #9aa9a5; font-family: var(--font-mono); font-size: 8px; margin-left: 3px; }.funnel-bar-track { height: 7px; background: #eef4f1; border-radius: 10px; overflow: hidden; }.funnel-bar { height: 100%; border-radius: inherit; transition: width .5s ease; }.bar-new { background: var(--teal); }.bar-qualified { background: #48a69b; }.bar-contacted { background: #82c6b2; }.bar-proposal { background: #a7dc85; }.bar-closed { background: var(--mint-deep); }.funnel-row > strong { text-align: right; font-family: var(--font-mono); font-size: 8px; color: #738982; font-weight: 500; }
.funnel-insight { margin: 2px 21px 0; padding: 10px 10px; display: flex; gap: 8px; align-items: flex-start; background: #f4fbe8; border: 1px solid #e5f2cd; border-radius: 7px; }.insight-icon { color: #82ae4d; font-size: 15px; line-height: 1; }.funnel-insight p { color: #66805d; margin: 0; font-size: 9px; line-height: 1.55; }.funnel-insight strong { color: #41653b; }
.reps-panel { padding-bottom: 8px; }.rep-list { padding: 0 21px; }.rep-row { display: grid; grid-template-columns: 25px 1fr 54px 25px; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid #edf3f1; }.rep-name { min-width: 0; display: grid; gap: 3px; }.rep-name strong { font-size: 10px; color: var(--ink); }.rep-name span { font-size: 8px; color: #9aaaa5; }.rep-progress { height: 4px; background: #e9efed; border-radius: 4px; overflow: hidden; }.rep-progress span { display: block; height: 100%; background: var(--teal); border-radius: inherit; }.rep-percent { text-align: right; color: var(--teal); font-family: var(--font-mono); font-size: 9px; }
.site-footer { margin-top: 30px; border-top: 1px solid var(--line-strong); padding-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #8da09a; font-size: 9px; }.footer-brand, .footer-links, .footer-meta { display: flex; align-items: center; gap: 13px; }.footer-brand { color: var(--ink); font-weight: 800; font-size: 11px; }.footer-brand small { color: #aab8b4; font-weight: 400; font-size: 9px; }.footer-links a, .footer-meta a { color: #6d837e; }.footer-links a:hover, .footer-meta a:hover { color: var(--teal); }.footer-label { color: #a8b6b2; font-size: 8px; }.footer-links a span { color: #a8b6b2; margin-left: 2px; }.status-online { display: inline-flex; align-items: center; gap: 5px; color: #719080; }.status-online i { width: 5px; height: 5px; background: #82bb5f; border-radius: 50%; }

.drawer-overlay { position: fixed; z-index: 20; inset: 0; background: rgba(12,31,28,.22); opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease; }.drawer-overlay.open { opacity: 1; visibility: visible; }
.lead-drawer { position: fixed; z-index: 21; right: 0; top: 0; bottom: 0; width: min(425px, 100vw); background: #fff; box-shadow: -16px 0 45px rgba(16,33,31,.13); transform: translateX(102%); transition: transform .22s ease; display: flex; flex-direction: column; }.lead-drawer.open { transform: translateX(0); }.drawer-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 25px 27px 17px; border-bottom: 1px solid var(--line); }.drawer-id { display: block; font-family: var(--font-mono); color: #8fa39d; font-size: 10px; margin-top: 5px; }.close-button { color: #718680; font-size: 22px; }
.drawer-content { padding: 22px 27px; overflow-y: auto; flex: 1; }.drawer-identity { display: flex; align-items: center; gap: 12px; }.drawer-avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-wash); color: var(--teal); font-size: 13px; font-weight: 800; }.drawer-identity h2 { margin: 0; font-size: 19px; letter-spacing: -.05em; }.drawer-identity p { margin: 4px 0 0; color: #8da09b; font-size: 11px; }.drawer-identity .icon-button { margin-left: auto; }.drawer-status-row { margin: 19px 0 13px; display: flex; align-items: center; gap: 9px; }.drawer-date { color: #97a8a3; font-size: 9px; }.drawer-actions { display: flex; gap: 7px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }.compact-action { height: 31px; font-size: 9px; padding: 0 11px; }.drawer-actions .secondary-button { height: 31px; font-size: 9px; }
.detail-block { padding: 21px 0 19px; border-bottom: 1px solid var(--line); }.detail-label { color: #94a49f; font-size: 8px; }.detail-block p { color: #5b716c; line-height: 1.7; font-size: 11px; margin: 9px 0 0; }.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 13px; padding: 20px 0; border-bottom: 1px solid var(--line); }.detail-grid > div { display: grid; gap: 6px; min-width: 0; }.detail-grid strong { font-size: 11px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }.activity-heading { padding: 21px 0 14px; display: flex; align-items: flex-start; justify-content: space-between; }.activity-heading h3 { margin: 4px 0 0; font-size: 13px; letter-spacing: -.025em; }.activity-list { display: grid; }.activity-item { display: grid; grid-template-columns: 27px 1fr; gap: 11px; position: relative; padding-bottom: 19px; }.activity-item:not(:last-child):before { content: ""; position: absolute; left: 12px; top: 27px; bottom: 0; width: 1px; background: var(--line-strong); }.activity-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; z-index: 1; background: var(--teal-wash); color: var(--teal); font-size: 11px; border: 3px solid #fff; }.activity-item:nth-child(2) .activity-icon { background: #fdf0d8; color: #ad7723; }.activity-item:nth-child(3) .activity-icon { background: #f0ecff; color: #7966be; }.activity-copy { min-width: 0; }.activity-copy strong { font-size: 10px; color: var(--ink); }.activity-copy p { margin: 4px 0 0; font-size: 10px; line-height: 1.5; color: #778b86; }.activity-copy time { display: block; margin-top: 5px; color: #a1afac; font-family: var(--font-mono); font-size: 8px; }.drawer-footer { min-height: 52px; border-top: 1px solid var(--line); padding: 0 27px; display: flex; align-items: center; justify-content: space-between; color: #a3b0ad; font-family: var(--font-mono); font-size: 8px; }.drawer-footer .text-button { font-family: var(--font-ui); }
.toast { position: fixed; z-index: 30; bottom: 25px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 16px; border-radius: 8px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 11px; transition: opacity .2s ease, transform .2s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { position: fixed; z-index: 24; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(12,31,28,.32); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }.modal-backdrop.open { opacity: 1; visibility: visible; }
.new-lead-modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 24px 70px rgba(16,33,31,.2); transform: translateY(10px) scale(.98); transition: transform .2s ease; }.modal-backdrop.open .new-lead-modal { transform: translateY(0) scale(1); }.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }.modal-header h2 { margin: 5px 0 0; font-size: 19px; letter-spacing: -.05em; }.modal-header p { margin: 7px 0 0; color: #8a9d98; font-size: 10px; }.new-lead-form { display: grid; gap: 13px; padding: 21px 26px 24px; }.new-lead-form label { display: grid; gap: 6px; }.new-lead-form label > span { color: #6f8580; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: 8px; font-weight: 600; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.new-lead-form input, .new-lead-form select, .new-lead-form textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 7px; outline: none; color: var(--ink); background: #fbfdfc; padding: 10px 11px; font-size: 11px; transition: border-color .18s ease, box-shadow .18s ease; }.new-lead-form textarea { min-height: 70px; resize: vertical; line-height: 1.5; }.new-lead-form input:focus, .new-lead-form select:focus, .new-lead-form textarea:focus { border-color: #8dbcb0; box-shadow: 0 0 0 3px rgba(15,92,88,.08); }.new-lead-form input::placeholder, .new-lead-form textarea::placeholder { color: #a4b3af; }.form-error { min-height: 16px; color: #b34f3c; font-size: 10px; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 3px; }.modal-actions .secondary-button, .modal-actions .primary-button { height: 35px; }.modal-actions .primary-button[disabled] { opacity: .65; cursor: wait; transform: none; }
.crm-modal { width: min(700px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 24px 70px rgba(16,33,31,.2); transform: translateY(10px) scale(.98); transition: transform .2s ease; }.modal-backdrop.open .crm-modal { transform: translateY(0) scale(1); }.crm-form { display: grid; gap: 13px; padding: 21px 26px 24px; }.crm-form label { display: grid; gap: 6px; }.crm-form label > span { color: #6f8580; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: 8px; font-weight: 600; }.crm-form input, .crm-form select, .crm-form textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 7px; outline: none; color: var(--ink); background: #fbfdfc; padding: 10px 11px; font-size: 11px; }.crm-form textarea { resize: vertical; line-height: 1.5; }.crm-form input:focus, .crm-form select:focus, .crm-form textarea:focus { border-color: #8dbcb0; box-shadow: 0 0 0 3px rgba(15,92,88,.08); }.crm-contact-summary { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }.crm-contact-summary > div:not(.drawer-avatar) { display: grid; gap: 3px; min-width: 0; }.crm-contact-summary strong { font-size: 13px; }.crm-contact-summary span:not(.status-badge) { color: #8a9d98; font-size: 10px; }.crm-contact-summary .status-badge { margin-left: auto; }.crm-section { padding-top: 5px; border-top: 1px solid var(--line); }.crm-section-heading { display: flex; justify-content: space-between; align-items: flex-start; padding: 15px 0 10px; }.crm-section-heading h3 { margin: 4px 0 0; font-size: 13px; }.task-count { display: grid; place-items: center; min-width: 22px; height: 20px; border-radius: 6px; background: var(--teal-wash); color: var(--teal); font-family: var(--font-mono); font-size: 9px; }.task-list { display: grid; gap: 6px; }.task-item { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fbfdfc; }.task-item input { accent-color: var(--teal); }.task-item span { flex: 1; color: #526c66; font-size: 10px; }.task-item.done span { color: #9aa9a5; text-decoration: line-through; }.task-remove { border: 0; background: transparent; color: #a2b1ad; font-size: 14px; }.task-add { display: flex; gap: 7px; margin-top: 8px; }.task-add input { flex: 1; }.task-add .secondary-button { height: 34px; white-space: nowrap; }.crm-activity-list { display: grid; gap: 7px; padding-bottom: 4px; }.crm-activity { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #edf3f1; }.crm-activity:last-child { border-bottom: 0; }.crm-activity i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-wash); color: var(--teal); font-style: normal; font-size: 9px; }.crm-activity strong { display: block; font-size: 9px; }.crm-activity span { display: block; margin-top: 2px; color: #8d9e99; font-size: 9px; }.crm-activity time { color: #a2b1ad; font-family: var(--font-mono); font-size: 8px; }

@media (max-width: 1180px) { .sidebar { width: 205px; flex-basis: 205px; }.content-wrap { padding-left: 25px; padding-right: 25px; }.topbar { padding: 0 25px; }.metric-value { font-size: 22px; }.metric-footer { gap: 3px; }.metric-footer > span:first-child { max-width: 105px; line-height: 1.3; } }
@media (max-width: 980px) { .sidebar { width: 69px; flex-basis: 69px; padding-left: 9px; padding-right: 9px; }.brand-lockup { justify-content: center; padding-left: 0; padding-right: 0; }.brand-lockup > div:last-child, .sidebar-label, .nav-item > span:not(.nav-icon):not(.nav-count):not(.nav-dot), .nav-item kbd, .upgrade-card, .user-meta, .user-card .icon-button { display: none; }.nav-item { justify-content: center; padding: 11px 5px; }.nav-item .nav-count { display: block; position: absolute; margin: 0 0 24px 21px; font-size: 8px; }.nav-item { position: relative; }.sidebar-label-spaced { display: block; height: 20px; padding: 0; margin-top: 20px; }.user-card { justify-content: center; padding: 0; }.workspace-grid { grid-template-columns: 1fr; }.side-stack { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }.metric-grid { grid-template-columns: repeat(2, 1fr); }.metric-footer > span:first-child { max-width: none; } }
@media (max-width: 680px) { .topbar { height: 62px; padding: 0 16px; }.breadcrumbs span:first-child, .breadcrumbs .slash { display: none; }.date-pill span:nth-child(2) { display: none; }.content-wrap { padding: 25px 14px 20px; }.page-intro { align-items: flex-start; flex-direction: column; margin-bottom: 25px; gap: 20px; }.intro-actions { width: 100%; }.intro-actions button { flex: 1; }.metric-grid { gap: 8px; }.metric-card { min-height: 129px; padding: 13px; }.metric-value { font-size: 20px; }.metric-value-row { margin-top: 14px; flex-wrap: wrap; gap: 5px; }.metric-footer { margin-top: 18px; }.metric-footer > span:first-child { font-size: 8px; }.metric-spark { display: none; }.panel-heading { padding-left: 15px; padding-right: 15px; }.toolbar { padding-left: 15px; padding-right: 15px; align-items: stretch; flex-direction: column; }.search-field { max-width: none; }.filter-actions { flex-wrap: wrap; }.filter-menu { left: 0; right: auto; }.table-footer { padding-left: 15px; padding-right: 15px; }.side-stack { grid-template-columns: 1fr; }.site-footer { align-items: flex-start; flex-direction: column; gap: 15px; }.footer-links, .footer-meta { flex-wrap: wrap; gap: 10px; }.lead-drawer { width: 100%; }.drawer-content, .drawer-header, .drawer-footer { padding-left: 20px; padding-right: 20px; }.new-lead-modal, .crm-modal { max-height: calc(100vh - 24px); }.modal-header, .new-lead-form, .crm-form { padding-left: 20px; padding-right: 20px; }.form-grid { grid-template-columns: 1fr; }.modal-actions { flex-direction: column-reverse; }.modal-actions button { width: 100%; }.task-add { flex-direction: column; }.task-add .secondary-button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

.empty-tasks { margin: 0; padding: 10px; color: #9aa9a5; background: #fbfdfc; border: 1px dashed var(--line-strong); border-radius: 7px; font-size: 10px; }
