:root {
  --blue-950: #102c57;
  --blue-800: #174f9e;
  --blue-700: #1f66c1;
  --blue-600: #2878de;
  --blue-100: #eaf3ff;
  --blue-50: #f4f8ff;
  --ink: #16213a;
  --muted: #6d7b92;
  --line: #e3eaf4;
  --canvas: #f6f9fd;
  --surface: #ffffff;
  --amber: #b97019;
  --amber-bg: #fff5e7;
  --teal: #087a6f;
  --teal-bg: #e8f7f5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #91bdf8; outline-offset: 2px; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 3; display: flex; flex-direction: column; width: 248px; padding: 24px 16px 18px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--blue-950); text-decoration: none; font-size: 17px; font-weight: 750; line-height: 1.05; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--blue-700); box-shadow: 0 5px 12px #1f66c126; font-family: Georgia, serif; font-size: 20px; font-style: italic; }
.brand em { color: #8a98ac; font-family: "DM Mono", monospace; font-size: 8px; font-style: normal; font-weight: 500; letter-spacing: .1em; }
nav { display: grid; gap: 4px; margin-top: 48px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border-radius: 9px; color: #64748b; text-decoration: none; font-size: 13px; font-weight: 500; transition: color .18s, background .18s; }
.nav-item:hover { color: var(--blue-700); background: var(--blue-50); }
.nav-item.active { color: var(--blue-700); background: var(--blue-100); font-weight: 700; }
.nav-item span { width: 17px; color: currentColor; text-align: center; font-size: 15px; }.nav-item i { display: grid; place-items: center; width: 20px; height: 20px; margin-left: auto; border-radius: 50%; color: #fff; background: var(--blue-600); font-size: 10px; font-style: normal; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); color: #34435a; font-size: 12px; line-height: 1.3; }.sidebar-foot small { color: var(--muted); }.sidebar-foot button { margin-left: auto; border: 0; color: var(--muted); background: transparent; font-weight: 800; }
.avatar { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--blue-800); background: #dcecff; font-size: 12px; font-weight: 750; }.avatar.peach { color: var(--blue-800); background: #dcecff; }.avatar.blue { color: #116f91; background: #dff3f8; }.avatar.gray { color: #6a5c95; background: #eeeafe; }

main { max-width: 1600px; min-height: 100vh; margin-left: 248px; padding: 0 56px 72px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 82px; border-bottom: 1px solid var(--line); }.topbar p { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--muted); font-size: 13px; }.topbar strong { color: var(--ink); font-weight: 700; }.eyebrow { margin: 0 0 9px; color: #8191a9; font-family: "DM Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }.topbar .eyebrow { margin: 0; color: #94a3b8; }
.quiet-button { display: inline-flex; align-items: center; gap: 4px; padding: 9px 12px; border: 1px solid #cfe1fa; border-radius: 8px; color: var(--blue-700); background: var(--surface); font-size: 12px; font-weight: 650; transition: background .18s, border-color .18s; }.quiet-button:hover { border-color: #9bc0f1; background: var(--blue-50); }.quiet-button span, .section-heading a span, .card-action span, .primary-button span { margin-left: 4px; }

.overview { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 48px 0 38px; }.overview h1 { max-width: 650px; margin: 0; color: var(--blue-950); font-size: clamp(32px, 3.4vw, 50px); font-weight: 760; letter-spacing: -.055em; line-height: 1.16; }.score-card { width: 272px; padding: 20px; border: 1px solid #dce9fb; border-radius: 12px; background: var(--surface); box-shadow: 0 8px 20px #17509e0a; }.score-card p { margin: 0; color: var(--muted); font-size: 12px; }.score-card strong { display: block; margin: 7px 0 13px; color: var(--blue-800); font-size: 36px; font-weight: 760; letter-spacing: -.05em; }.score-card small { color: #8390a4; font-size: 13px; font-weight: 600; }.meter { height: 6px; overflow: hidden; border-radius: 10px; background: #dbe8f8; }.meter i { display: block; width: 75%; height: 100%; border-radius: inherit; background: var(--blue-600); }.score-card span { display: block; margin-top: 8px; color: #7c8ba0; font-size: 11px; }

.priority { padding: 30px 0 54px; border-top: 1px solid var(--line); }.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }.section-heading h2, .insights h2 { margin: 0; color: var(--blue-950); font-size: 22px; font-weight: 750; letter-spacing: -.04em; }.section-heading a { color: var(--blue-700); font-size: 12px; font-weight: 700; text-decoration: none; }
.lead-grid { display: grid; grid-template-columns: 1.22fr 1fr 1fr; gap: 16px; }.lead-card { display: flex; flex-direction: column; min-height: 248px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 3px 10px #15345c05; transition: transform .18s, box-shadow .18s; }.lead-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px #173f760d; }.lead-card.warm { border-color: #cfe1fa; background: linear-gradient(145deg, #fff 45%, #f3f8ff); }.lead-top { display: flex; align-items: center; gap: 10px; }.lead-top h3 { margin: 0; color: #273750; font-size: 14px; }.lead-top p { margin: 3px 0 0; color: #8a98aa; font-size: 11px; }.badge { display: inline-flex; align-items: center; width: max-content; margin-left: auto; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }.badge.high { color: var(--blue-700); background: #e7f1ff; }.badge.follow { color: var(--teal); background: var(--teal-bg); }.badge.rescue { color: var(--amber); background: var(--amber-bg); }.message { margin: 20px 0 17px; color: #4a5a70; font-size: 13px; line-height: 1.75; }.lead-card dl { display: flex; gap: 23px; margin: 0; }.lead-card dl div { display: grid; gap: 4px; }.lead-card dt { color: #91a0b4; font-size: 10px; }.lead-card dd { margin: 0; color: #34445b; font-size: 12px; font-weight: 700; }.card-action { display: flex; justify-content: space-between; width: 100%; margin-top: auto; padding: 13px 0 0; border: 0; border-top: 1px solid var(--line); color: var(--blue-700); background: transparent; text-align: left; font-size: 12px; font-weight: 700; }.nudge { display: flex; gap: 9px; align-items: flex-start; padding: 10px; border-radius: 7px; background: var(--blue-50); }.nudge span { color: var(--blue-600); }.nudge p { margin: 0; color: #718095; font-size: 11px; line-height: 1.5; }.nudge b { display: block; color: #40516a; font-weight: 700; }

.assistant-section { padding: 30px 0 56px; border-top: 1px solid var(--line); }.live-dot { color: #6682a4; font-size: 11px; }.live-dot:before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--blue-600); vertical-align: middle; box-shadow: 0 0 0 4px #e5f0ff; }.assistant-grid { display: grid; grid-template-columns: .83fr 1.17fr; overflow: hidden; border: 1px solid #dbe6f5; border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px #15345c08; }.input-panel { display: flex; flex-direction: column; min-height: 386px; padding: 24px; background: #f8fbff; border-right: 1px solid #dbe6f5; }.input-panel label { color: var(--blue-950); font-size: 16px; font-weight: 750; }.input-panel textarea { flex: 1; min-height: 180px; margin: 13px 0; padding: 13px; resize: vertical; border: 1px solid #d8e5f4; border-radius: 8px; outline: 0; color: #40516a; background: var(--surface); font-size: 13px; line-height: 1.8; transition: border-color .18s, box-shadow .18s; }.input-panel textarea:focus { border-color: #8ab5ec; box-shadow: 0 0 0 3px #dceeff; }.input-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #8998ab; font-size: 11px; }.primary-button { padding: 10px 13px; border: 1px solid var(--blue-700); border-radius: 8px; color: #fff; background: var(--blue-700); box-shadow: 0 4px 9px #1f66c12b; font-size: 12px; font-weight: 700; transition: background .18s, transform .18s; }.primary-button:hover { background: var(--blue-800); transform: translateY(-1px); }
.analysis-panel { padding: 25px 28px; background: var(--surface); }.analysis-top { display: flex; align-items: center; justify-content: space-between; }.analysis-top .badge { margin: 0; }.analysis-summary { max-width: 620px; margin: 11px 0 18px; color: #283a55; font-size: 16px; font-weight: 650; letter-spacing: -.025em; line-height: 1.65; }.facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 9px; background: #fbfdff; }.facts div { display: grid; gap: 4px; padding: 11px 14px; }.facts div + div { border-left: 1px solid var(--line); }.facts span, .next-step span, .reply span { color: #8998ab; font-size: 10px; }.facts strong { color: #30435e; font-size: 13px; }.next-step { display: grid; grid-template-columns: 72px 1fr; gap: 8px; padding: 17px 0; border-bottom: 1px solid var(--line); }.next-step p { margin: 0; color: var(--blue-700); font-weight: 700; line-height: 1.55; }.reply { margin-top: 17px; padding: 14px 16px; border-radius: 8px; background: var(--blue-50); }.reply > div { display: flex; justify-content: space-between; }.reply button { border: 0; color: var(--blue-700); background: transparent; font-size: 11px; font-weight: 700; }.reply p { margin: 8px 0 0; color: #51627a; font-size: 12px; line-height: 1.75; }

.records-section { padding: 30px 0 56px; border-top: 1px solid var(--line); }.record-count { color: #73839a; font-size: 11px; }.records-grid, .workflow-grid { display: grid; gap: 16px; }.records-grid { grid-template-columns: .78fr 1.22fr; }.workflow-grid { grid-template-columns: 1.16fr .84fr; margin-top: 16px; }.profile-card, .history-card, .pipeline-card, .record-form { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 3px 10px #15345c05; }.profile-identity { display: flex; align-items: center; gap: 11px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }.profile-avatar { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; color: var(--blue-700); background: var(--blue-100); font-size: 15px; font-weight: 750; }.profile-identity h3, .card-heading h3 { margin: 0; color: var(--blue-950); font-size: 15px; letter-spacing: -.02em; }.profile-identity h3 span { margin-left: 3px; color: var(--blue-700); font-size: 11px; font-weight: 650; }.profile-identity p, .card-heading p { margin: 4px 0 0; color: #8492a5; font-size: 11px; }.more-button { margin-left: auto; border: 0; color: #6d7d92; background: transparent; font-weight: 800; }.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 19px 0; }.profile-facts div { display: grid; gap: 4px; }.profile-facts dt, .learning-note p, .next-contact span { color: #8a98ab; font-size: 10px; }.profile-facts dd { margin: 0; color: #40516a; font-size: 12px; font-weight: 650; }.learning-note { padding: 14px; border-radius: 8px; background: var(--blue-50); }.learning-note p { margin: 0 0 9px; }.learning-note span { display: inline-block; margin: 0 5px 5px 0; padding: 4px 7px; border-radius: 4px; color: #4b6687; background: #fff; font-size: 10px; }.next-contact { display: grid; gap: 4px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }.next-contact b { color: var(--blue-700); font-size: 12px; }.card-heading { display: flex; align-items: start; justify-content: space-between; }.text-button { padding: 0; border: 0; color: var(--blue-700); background: transparent; font-size: 11px; font-weight: 700; }.timeline { display: grid; gap: 0; margin: 19px 0 0; padding: 0; list-style: none; }.timeline li { position: relative; display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding: 0 0 17px; }.timeline li:last-child { padding-bottom: 0; }.timeline li:before { content: ""; position: absolute; top: 5px; left: 94px; width: 7px; height: 7px; border: 2px solid var(--blue-600); border-radius: 50%; background: #fff; }.timeline li:not(:last-child):after { content: ""; position: absolute; top: 14px; bottom: -3px; left: 97px; width: 1px; background: #d9e8fa; }.timeline time { color: #8492a6; font-size: 10px; }.timeline li > div { padding-left: 12px; }.timeline b { color: #40516a; font-size: 12px; }.timeline p { margin: 4px 0 0; color: #73839a; font-size: 11px; line-height: 1.6; }
.pipeline-card { min-height: 254px; }.stage-chip { padding: 5px 9px; border-radius: 99px; color: var(--blue-700); background: var(--blue-100); font-size: 10px; font-weight: 700; }.stage-list { display: flex; margin: 20px 0 16px; padding: 0; list-style: none; }.stage-list li { position: relative; display: grid; justify-items: center; min-width: 74px; flex: 1; color: #9aa9ba; font-size: 10px; text-align: center; white-space: nowrap; }.stage-list li:before { content: ""; position: absolute; top: 10px; left: -50%; z-index: 0; width: 100%; height: 2px; background: #e1e9f4; }.stage-list li:first-child:before { display: none; }.stage-list li span { position: relative; z-index: 1; display: grid; place-items: center; width: 21px; height: 21px; margin-bottom: 7px; border: 2px solid #d8e2ef; border-radius: 50%; color: #8493a8; background: #fff; font-size: 9px; font-weight: 700; }.stage-list li.done { color: var(--blue-700); }.stage-list li.done span, .stage-list li.active span { border-color: var(--blue-600); color: #fff; background: var(--blue-600); }.stage-list li.done:before, .stage-list li.active:before { background: var(--blue-600); }.stage-list li.active { color: var(--blue-700); font-weight: 700; }.stage-description { margin: 0; padding-top: 15px; border-top: 1px solid var(--line); color: #64758b; font-size: 12px; }.stage-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }.secondary-button { padding: 9px 12px; border: 1px solid #d6e1ef; border-radius: 8px; color: #60728b; background: #fff; font-size: 11px; font-weight: 700; }.secondary-button:hover { border-color: #9fbde2; color: var(--blue-700); }.record-form { display: flex; flex-direction: column; }.record-form .card-heading > span { color: #90a0b5; font-size: 10px; }.record-form > label { margin: 18px 0 8px; color: #52657d; font-size: 12px; font-weight: 700; }.record-form textarea { min-height: 95px; width: 100%; padding: 11px; resize: vertical; border: 1px solid #d8e5f4; border-radius: 8px; outline: 0; color: #40516a; line-height: 1.6; }.record-form textarea:focus, .record-form select:focus { border-color: #8ab5ec; box-shadow: 0 0 0 3px #dceeff; }.record-form-footer { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: 13px; }.record-form-footer label { display: grid; gap: 5px; color: #8090a5; font-size: 10px; }.record-form select { max-width: 190px; padding: 7px 25px 7px 9px; border: 1px solid #d8e5f4; border-radius: 6px; color: #43556e; background: #fff; font-size: 11px; }

.insights { display: grid; grid-template-columns: 1.3fr .75fr 1fr; align-items: end; gap: 34px; padding: 38px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.insights h2 { font-size: 27px; line-height: 1.38; }.pulse-stat strong { display: block; color: var(--blue-700); font-size: 52px; font-weight: 760; letter-spacing: -.07em; line-height: 1; }.pulse-stat small { font-size: 22px; }.pulse-stat p, .insight-note { color: #65758c; font-size: 12px; line-height: 1.7; }.insight-note { margin: 0; padding: 12px 0 12px 16px; border-left: 3px solid #aaccf5; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; max-width: 340px; padding: 12px 16px; border-radius: 8px; transform: translateY(15px); opacity: 0; color: #fff; background: var(--blue-950); box-shadow: 0 14px 30px #102c5733; transition: .25s; font-size: 12px; pointer-events: none; }.toast.show { transform: translateY(0); opacity: 1; }

.topbar-actions { display: flex; align-items: center; gap: 14px; }.save-status { color: #8a98aa; font-size: 11px; transition: color .2s; }.save-status:before { content: "•"; margin-right: 5px; color: #9aa9ba; }.save-status.saved { color: #27745f; }.save-status.saved:before { color: #2e9b7e; }.quiet-button { transition: background .18s, border-color .18s, transform .18s; }.quiet-button:hover { transform: translateY(-1px); }.primary-button:hover:not(:disabled) { box-shadow: 0 6px 13px #1f66c138; }.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .52; box-shadow: none; }.primary-button:active:not(:disabled), .quiet-button:active { transform: translateY(0); }
.app-dialog { width: min(440px, calc(100vw - 32px)); padding: 22px; border: 1px solid #d7e5f7; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 22px 60px #0d2d5b2e; }.app-dialog::backdrop { background: #102b5140; backdrop-filter: blur(2px); }.dialog-heading { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }.dialog-heading h2 { margin: 0; color: var(--blue-950); font-size: 18px; letter-spacing: -.03em; }.icon-button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 1px solid #d9e5f2; border-radius: 7px; color: #60738e; background: #fff; font-size: 20px; line-height: 1; }.icon-button:hover { color: var(--blue-700); border-color: #abc9ec; background: var(--blue-50); }.dialog-profile { display: flex; align-items: center; gap: 11px; padding: 18px 0; }.profile-avatar.large { width: 48px; height: 48px; }.dialog-profile strong { display: block; color: #30435e; font-size: 14px; }.dialog-profile p { margin: 4px 0 0; color: #8291a5; font-size: 11px; }.dialog-profile .badge { margin-left: auto; }.dialog-detail { display: grid; gap: 5px; padding: 13px 0; border-top: 1px solid var(--line); }.dialog-detail span { color: #8a98aa; font-size: 10px; }.dialog-detail b { color: #40516a; font-size: 12px; line-height: 1.6; }.dialog-copy { margin: 18px 0 0; color: #5e7088; font-size: 13px; line-height: 1.75; }.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@media (max-width: 1080px) { .sidebar { width: 76px; padding: 20px 12px; }.brand > span:last-child, .nav-item:not(.active), .nav-item i, .sidebar-foot > span:not(.avatar), .sidebar-foot button { font-size: 0; }.brand > span:last-child { display: none; }.nav-item { justify-content: center; padding: 0; }.nav-item span { width: auto; font-size: 16px; }.sidebar-foot { justify-content: center; padding-left: 0; padding-right: 0; }.sidebar-foot .avatar { display: grid; } main { margin-left: 76px; padding: 0 36px 60px; }.lead-grid, .records-grid, .workflow-grid { grid-template-columns: 1fr; }.lead-card { min-height: 210px; }.assistant-grid { grid-template-columns: 1fr; }.input-panel { min-height: 290px; border-right: 0; border-bottom: 1px solid #dbe6f5; } }
@media (max-width: 680px) { .sidebar { position: static; flex-direction: row; align-items: center; width: 100%; height: 64px; padding: 10px 20px; }.brand > span:last-child { display: block; }.brand { font-size: 15px; }.brand-mark { width: 30px; height: 30px; }.sidebar nav, .sidebar-foot { display: none; } main { margin-left: 0; padding: 0 20px 45px; }.topbar { min-height: 72px; }.topbar p span:last-child { display: none; }.topbar .eyebrow { font-size: 8px; }.quiet-button { padding: 8px; font-size: 11px; }.overview { flex-direction: column; align-items: stretch; padding: 38px 0 30px; }.overview h1 { font-size: 34px; }.score-card { width: 100%; }.section-heading { align-items: start; }.section-heading a { padding-top: 4px; }.priority, .assistant-section, .records-section { padding-bottom: 45px; }.assistant-grid { border-radius: 10px; }.input-panel, .analysis-panel, .profile-card, .history-card, .pipeline-card, .record-form { padding: 20px; }.facts { grid-template-columns: 1fr; }.facts div + div { border-top: 1px solid var(--line); border-left: 0; }.profile-facts { grid-template-columns: 1fr; }.timeline li { grid-template-columns: 76px 1fr; }.timeline li:before { left: 82px; }.timeline li:not(:last-child):after { left: 85px; }.stage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.stage-list li { display: flex; justify-items: start; align-items: center; gap: 7px; text-align: left; }.stage-list li:before { display: none; }.stage-list li span { margin: 0; }.record-form-footer { align-items: stretch; flex-direction: column; }.record-form-footer label { width: 100%; }.record-form select { max-width: none; }.record-form-footer .primary-button { align-self: flex-end; }.insights { grid-template-columns: 1fr; gap: 20px; padding: 30px 0; }.toast { right: 16px; bottom: 16px; left: 16px; max-width: none; } }
