:root {
  --ink: #0a1413;
  --muted: #6c7d79;
  --paper: #f5f7f6;
  --surface: #fff;
  --surface-soft: #eff7f5;
  --line: #dce9e6;
  --green: #0d7a72;
  --green-dark: #075d57;
  --green-soft: #e1f4f0;
  --tiffany: #2ec9bc;
  --tiffany-light: #82ecda;
  --red: #b14942;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, textarea { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(46, 201, 188, .28); outline-offset: 2px; }

.app-shell { max-width: 1400px; margin: 0 auto; padding: 0 42px 112px; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand-lockup { display: flex; gap: 10px; align-items: center; letter-spacing: -.02em; }
.brand-lockup strong { display: block; font-size: 16px; }
.brand-lockup small { color: var(--muted); font-size: 11px; display: block; margin-top: 2px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--ink); background: var(--tiffany); font-weight: 800; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .profile-btn, .icon-only-btn { display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); width: 36px; height: 36px; border-radius: 50%; padding: 0; }
.icon-btn:hover, .profile-btn:hover, .icon-only-btn:hover { background: var(--surface-soft); }
.icon-btn svg, .icon-only-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.avatar { display: grid; place-items: center; background: var(--tiffany-light); color: var(--ink); width: 32px; height: 32px; border-radius: 50%; font-weight: 700; font-size: 12px; }

.main { padding: 38px 0 28px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 6px; }
.page-head h1 { font-size: clamp(31px, 5vw, 45px); line-height: 1; letter-spacing: -.065em; margin: 0; }
.eyebrow { color: var(--green); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; margin: 0 0 8px; }
.today-date { color: var(--muted); font-size: 13px; margin: 10px 0 34px; text-transform: capitalize; }
.period-btn { border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; background: transparent; color: var(--muted); font-size: 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 18px; letter-spacing: -.04em; margin: 0; }
.section-count { color: var(--green); font-size: 12px; font-weight: 800; }

.today-focus { border-top: 1px solid var(--line); padding-top: 18px; }
.task-list, .appointment-list, .calendar-list, .sales-list { display: grid; }
.task-row, .appointment-row, .calendar-row, .sales-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 14px 0; color: var(--ink); }
.task-row:hover, .appointment-row:hover, .calendar-row:hover, .sales-row:hover { color: var(--green-dark); }
.task-icon { flex: 0 0 auto; display: grid; place-items: center; color: var(--green); width: 26px; height: 26px; }
.task-icon svg, .row-chevron svg, .demo-link svg, .text-action svg, .icon-text-btn svg, .connect-btn svg, .move-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.task-copy, .appointment-copy, .calendar-copy, .conversation-copy, .sales-row > span:nth-child(2) { min-width: 0; flex: 1; }
.task-copy strong, .appointment-copy strong, .calendar-copy strong, .conversation-copy strong, .sales-row strong { display: block; font-size: 13px; }
.task-copy small, .appointment-copy small, .calendar-copy small, .conversation-copy small, .sales-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-chevron { color: var(--muted); display: grid; place-items: center; }
.row-chevron svg { width: 15px; height: 15px; }
.empty { color: var(--muted); font-size: 13px; padding: 15px 0; }

.today-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); margin: 28px 0 31px; }
.today-stats > div { padding: 14px 15px; border-left: 1px solid var(--line); }
.today-stats > div:first-child { border-left: 0; padding-left: 0; }
.today-stats strong { display: block; font-size: 25px; letter-spacing: -.06em; }
.today-stats span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.today-section { border-top: 1px solid var(--line); padding-top: 18px; }
.appointment-date, .calendar-day { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 9px; background: var(--surface-soft); color: var(--green); flex: 0 0 auto; }
.appointment-date strong, .calendar-day strong { font-size: 17px; line-height: 1; }
.appointment-date small, .calendar-day small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.appointment-time, .calendar-time { color: var(--green); font-weight: 750; font-size: 12px; white-space: nowrap; }
.calendar-time small { display: block; text-align: right; color: var(--muted); font-size: 10px; font-weight: 500; margin-top: 4px; }
.demo-link, .text-action { display: inline-flex; gap: 7px; align-items: center; border: 0; background: transparent; color: var(--green); padding: 14px 0; font-size: 12px; font-weight: 750; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 27px 0 10px; }
.search-wrap { position: relative; width: min(320px, 100%); display: flex; align-items: center; color: var(--muted); }
.search-wrap > svg { position: absolute; left: 12px; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.search { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 12px 10px 35px; font-size: 13px; color: var(--ink); }
.search::placeholder { color: var(--muted); }
.icon-text-btn, .connect-btn { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 8px; background: var(--tiffany); color: var(--ink); padding: 9px 12px; font-size: 12px; font-weight: 750; }
.icon-text-btn:hover, .connect-btn:hover:not(:disabled) { background: var(--tiffany-light); }
.pipeline-note { color: var(--muted); font-size: 12px; margin: 0 0 23px; }
.pipeline-scroll { overflow-x: auto; margin-inline: -3px; padding: 0 3px 15px; }
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(205px, 1fr)); gap: 18px; min-width: 1080px; }
.lane { border-top: 2px solid var(--tiffany); padding-top: 10px; min-height: 300px; }
.lane:nth-child(2) { border-color: #62d6c9; }
.lane:nth-child(3) { border-color: #8edfd6; }
.lane:nth-child(4) { border-color: #a6e6dd; }
.lane:nth-child(5) { border-color: #c2eee8; }
.lane-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.lane-head strong { font-size: 12px; }
.lane-head > span:last-child { margin-left: auto; color: var(--muted); font-size: 11px; }
.lane-marker { width: 7px; height: 7px; border-radius: 50%; background: var(--tiffany); }
.lane-body { border-top: 1px solid var(--line); }
.pipeline-contact { border-bottom: 1px solid var(--line); padding: 11px 0 10px; }
.contact-link { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; color: var(--ink); text-align: left; padding: 0; }
.contact-link:hover { color: var(--green-dark); }
.mini-avatar, .conversation-avatar, .thread-avatar { display: grid; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--green); font-weight: 800; flex: 0 0 auto; }
.mini-avatar { width: 28px; height: 28px; font-size: 9px; }
.pipeline-contact-copy { min-width: 0; flex: 1; }
.pipeline-contact-copy strong { display: block; font-size: 12px; }
.pipeline-contact-copy small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-value { color: var(--green); font-size: 10px; font-weight: 750; white-space: nowrap; }
.pipeline-contact-footer { display: flex; align-items: center; gap: 8px; margin: 9px 0 0 37px; }
.pipeline-contact-footer > span { min-width: 0; flex: 1; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.move-btn { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; color: var(--green); background: transparent; padding: 0; }
.move-btn svg { width: 13px; height: 13px; }

.conversation-layout { display: grid; grid-template-columns: 315px minmax(0, 1fr); min-height: 600px; border-block: 1px solid var(--line); margin-top: 26px; }
.conversation-sidebar { border-right: 1px solid var(--line); padding: 18px 17px 18px 0; background: #f7f9f8; }
.messages-heading { display: flex; align-items: center; justify-content: space-between; }
.messages-count { color: var(--muted); font-size: 12px; }
.conversation-list { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 5px; }
.conversation-item { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; max-width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 13px 7px; color: var(--ink); }
.conversation-item:hover, .conversation-item.active { background: var(--surface-soft); }
.conversation-avatar { width: 37px; height: 37px; font-size: 11px; }
.conversation-time { color: var(--muted); font-size: 10px; align-self: flex-start; margin-top: 2px; }
.thread { display: flex; flex-direction: column; min-width: 0; padding-left: 0; background: var(--surface); }
.thread-head { display: flex; align-items: center; gap: 10px; min-height: 74px; padding-inline: 24px; border-bottom: 1px solid var(--line); }
.thread-avatar { width: 36px; height: 36px; font-size: 11px; }
.thread-person { min-width: 0; flex: 1; }
.thread-person h2 { font-size: 15px; letter-spacing: -.03em; margin: 0; }
.thread-person small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.thread-back { display: none; border: 0; background: transparent; color: var(--green); padding: 4px; }
.thread-back svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.thread-action { border: 0; border-bottom: 1px solid var(--tiffany); background: transparent; color: var(--green); padding: 6px 0; font-size: 11px; font-weight: 750; white-space: nowrap; }
.thread-status { color: var(--green); font-size: 11px; white-space: nowrap; }
.messages { flex: 1; display: grid; align-content: start; gap: 8px; padding: 22px 24px; overflow: auto; max-height: 480px; }
.bubble { max-width: min(78%, 480px); padding: 10px 13px; border-radius: 18px; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.bubble.inbound { background: #e9eeed; border-bottom-left-radius: 5px; }
.bubble.outbound { background: var(--green); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.bubble small { display: block; opacity: .62; font-size: 9px; margin-top: 4px; }
.composer { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 12px 24px; }
.composer textarea { flex: 1; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; resize: none; padding: 10px 13px; min-height: 39px; max-height: 80px; font-size: 13px; }
.send-btn { display: grid; place-items: center; width: 35px; height: 35px; border: 0; border-radius: 50%; color: var(--ink); background: var(--tiffany); padding: 0; }
.send-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.calendar-connect { border-block: 1px solid var(--line); padding: 19px 0 16px; margin-top: 27px; }
.calendar-connect-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.calendar-connect h2 { font-size: 17px; margin: 0; }
.calendar-connect small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.connection-state { color: var(--muted); font-size: 11px; }
.provider-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 17px; border-top: 1px solid var(--line); }
.provider-option { display: flex; align-items: center; gap: 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ink); padding: 13px 8px 11px 0; text-align: left; font-size: 12px; }
.provider-option + .provider-option { padding-left: 14px; border-left: 1px solid var(--line); }
.provider-option.selected { color: var(--green); border-bottom-color: var(--tiffany); }
.provider-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--surface-soft); color: var(--green); font-size: 13px; font-weight: 800; }
.connect-btn { margin-top: 16px; }
.connect-btn:disabled { color: var(--muted); background: var(--surface-soft); cursor: default; }
.calendar-section { border-top: 1px solid var(--line); padding-top: 19px; margin-top: 31px; }
.calendar-row { padding: 15px 0; }

.sales-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin: 28px 0 31px; }
.sales-kpis > div { padding: 17px 16px; border-left: 1px solid var(--line); }
.sales-kpis > div:first-child { border-left: 0; padding-left: 0; }
.sales-kpis span, .sales-kpis small { display: block; color: var(--muted); font-size: 11px; }
.sales-kpis strong { display: block; font-size: 27px; letter-spacing: -.06em; margin: 7px 0 3px; }
.sales-section { border-top: 1px solid var(--line); padding-top: 19px; margin-top: 29px; }
.sales-stage { display: grid; grid-template-columns: 175px 1fr; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.sales-stage:first-child { border-top: 0; }
.sales-stage-label strong { display: block; font-size: 12px; }
.sales-stage-label small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.sales-bar { display: block; height: 6px; background: var(--surface-soft); border-radius: 99px; overflow: hidden; }
.sales-bar i { display: block; height: 100%; background: var(--tiffany); border-radius: inherit; }
.sales-row { padding: 13px 0; }
.sales-row-right { text-align: right; }
.sales-row-right strong { color: var(--green); }
.sales-row-right small { text-transform: none; }

.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 1400px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; padding: 8px 15px max(8px, env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); z-index: 5; }
.nav-item { color: var(--muted); border: 0; border-top: 2px solid transparent; background: transparent; display: grid; justify-items: center; gap: 4px; padding: 6px 3px; }
.nav-item:hover { color: var(--ink); }
.nav-icon { display: grid; place-items: center; width: 24px; height: 22px; }
.nav-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item small { font-size: 9px; font-weight: 650; }
.nav-item.active { color: var(--green); }
.toast { position: fixed; left: 50%; bottom: 91px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; color: #fff; background: var(--ink); border-radius: 99px; padding: 10px 14px; font-size: 12px; transition: .25s ease; z-index: 10; white-space: nowrap; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.error-state { border-top: 1px solid var(--line); padding-top: 20px; }

@media (min-width: 801px) {
  .app-shell { padding-bottom: 28px; }
  .bottom-nav { position: static; transform: none; width: fit-content; margin: 0 auto; padding: 6px; border: 0; background: transparent; }
  .nav-item { min-width: 116px; grid-template-columns: auto auto; justify-content: center; gap: 7px; padding: 8px 12px; border-top: 0; border-bottom: 0; }
  .nav-item small { font-size: 11px; }
  .nav-icon { width: 19px; }
  .toast { bottom: 30px; }
}

@media (max-width: 800px) {
  .app-shell { padding: 0 17px 106px; }
  .main { padding-top: 29px; }
  .page-head h1 { font-size: 34px; }
  .today-date { margin-bottom: 28px; }
  .conversation-layout { display: block; min-height: 0; margin-top: 24px; }
  .conversation-sidebar { border-right: 0; padding: 17px 0 0; }
  .conversation-list { display: flex; overflow-x: auto; gap: 2px; padding-bottom: 5px; }
  .conversation-item { min-width: 220px; border: 0; }
  .thread { display: none; padding-left: 0; min-height: 560px; }
  .conversation-layout.mobile-thread-open .conversation-sidebar { display: none; }
  .conversation-layout.mobile-thread-open .thread { display: flex; }
  .thread-head { min-height: 65px; }
  .thread-back { display: grid; place-items: center; }
  .provider-list { grid-template-columns: 1fr; }
  .provider-option, .provider-option + .provider-option { padding: 11px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .provider-option.selected { border-bottom-color: var(--tiffany); }
  .sales-stage { grid-template-columns: 130px 1fr; }
}

@media (max-width: 430px) {
  .topbar { min-height: 68px; }
  .brand-lockup strong { font-size: 15px; }
  .brand-mark { width: 32px; height: 32px; }
  .today-stats > div { padding-inline: 10px; }
  .today-stats > div:first-child { padding-left: 0; }
  .today-stats strong { font-size: 23px; }
  .today-stats span { font-size: 10px; }
  .toolbar { align-items: stretch; }
  .icon-text-btn span { display: none; }
  .icon-text-btn { width: 35px; height: 35px; justify-content: center; padding: 0; }
  .sales-kpis strong { font-size: 22px; }
  .sales-kpis > div { padding-inline: 10px; }
  .sales-kpis > div:first-child { padding-left: 0; }
  .sales-kpis small { line-height: 1.25; }
  .thread-action { padding: 7px 8px; }
}

/* Product direction v2: quiet surfaces, one clear action, useful density. */
:root {
  --muted: #536a65;
  --paper: #f4f7f6;
  --surface-soft: #e8f4f1;
  --line: #d9e5e1;
  --green: #08766d;
}

body { background: var(--paper); }
.app-shell { max-width: 1460px; }
.topbar { min-height: 72px; }
.icon-btn, .profile-btn, .icon-only-btn { min-width: 44px; min-height: 44px; width: 44px; height: 44px; }
.main { max-width: 1080px; margin-inline: auto; padding-top: 42px; }
.page-head { margin-bottom: 16px; }
.page-head h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.055em; }
.today-date { margin: 8px 0 36px; font-size: 14px; }
.section-head { margin-bottom: 14px; }
.section-head h2 { font-size: 17px; }
.task-row, .appointment-row, .calendar-row, .sales-row { min-height: 60px; padding-block: 13px; }
.task-icon { width: 32px; height: 32px; }
.task-copy strong, .appointment-copy strong, .calendar-copy strong, .conversation-copy strong, .sales-row strong { font-size: 14px; }
.task-copy small, .appointment-copy small, .calendar-copy small, .conversation-copy small, .sales-row small { font-size: 12px; }
.row-chevron { min-width: 44px; min-height: 44px; }
.today-focus { padding-top: 20px; }
.today-snapshot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--line); margin: 28px 0 30px; }
.snapshot-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 0; border-left: 1px solid var(--line); background: transparent; text-align: left; color: var(--ink); }
.snapshot-row:first-child { border-left: 0; padding-left: 0; }
.snapshot-row strong { display: block; font-size: 25px; letter-spacing: -.05em; }
.snapshot-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.snapshot-arrow { color: var(--green); min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.snapshot-arrow svg, .results-row > svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.results-row { width: 100%; min-height: 72px; display: grid; grid-template-columns: 1fr auto 24px; align-items: center; gap: 14px; margin-top: 28px; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.results-row > span:nth-child(2) { text-align: right; }
.results-row strong { display: block; font-size: 14px; }
.results-row > span:first-child strong { font-size: 25px; letter-spacing: -.05em; }
.results-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.results-row > svg { color: var(--green); }
.toolbar { margin: 24px 0 10px; }
.search { min-height: 44px; font-size: 14px; }
.stage-filters { display: flex; gap: 8px; overflow-x: auto; padding: 7px 0 14px; scrollbar-width: none; }
.stage-filters::-webkit-scrollbar { display: none; }
.stage-filter { min-height: 38px; border: 0; border-radius: 999px; padding: 0 13px; background: transparent; color: var(--muted); font-size: 12px; white-space: nowrap; }
.stage-filter:hover, .stage-filter.active { background: var(--surface-soft); color: var(--ink); }
.pipeline-scroll { margin-inline: 0; padding-inline: 0; }
.pipeline { min-width: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.lane { min-height: 250px; }
.lane-head { min-height: 32px; }
.lane-head strong { font-size: 13px; }
.pipeline-contact { padding-block: 14px 12px; }
.pipeline-contact-footer { margin-top: 10px; }
.move-btn { width: 44px; height: 44px; }
.move-btn svg { width: 16px; height: 16px; }
.conversation-layout { margin-top: 20px; min-height: 640px; }
.conversation-sidebar { padding-top: 20px; background: rgba(232,244,241,.42); }
.conversation-item { min-height: 68px; padding-block: 12px; }
.thread-head { min-height: 78px; }
.thread-action { min-height: 44px; padding-inline: 8px; font-size: 12px; }
.messages { padding-block: 28px; }
.composer { padding-block: 14px; }
.composer textarea { min-height: 44px; }
.send-btn { width: 44px; height: 44px; }
.calendar-connect { margin-top: 20px; }
.provider-mark { width: 22px; height: 22px; border-radius: 0; background: transparent; }
.connect-btn { padding-inline: 0; background: transparent; color: var(--green); }
.connect-btn:disabled { padding-inline: 0; background: transparent; color: var(--muted); }
.sales-kpis { margin-top: 20px; }
.sales-kpis strong { font-size: 25px; }
.bottom-nav { background: rgba(255,255,255,.98); }

@media (min-width: 801px) {
  .app-shell { max-width: none; margin: 0; padding: 0 56px 40px 272px; }
  .topbar { max-width: 1080px; margin-inline: auto; }
  .topbar .brand-lockup { display: none; }
  .bottom-nav { position: fixed; inset: 0 auto 0 0; transform: none; width: 224px; height: 100vh; display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 28px 16px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: rgba(255,255,255,.98); }
  .bottom-nav::before { content: 'JNT CRM'; display: block; padding: 7px 14px 29px; color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
  .nav-item { width: 100%; min-width: 0; min-height: 48px; display: grid; grid-template-columns: 24px 1fr; justify-content: start; justify-items: start; gap: 10px; padding: 10px 14px; border-radius: 12px; }
  .nav-item small { font-size: 13px; font-weight: 650; align-self: center; }
  .nav-icon { width: 24px; height: 24px; }
  .nav-item.active { background: var(--surface-soft); color: var(--ink); }
  .nav-item.active .nav-icon { color: var(--green); }
  .main { padding-top: 42px; }
}

@media (max-width: 800px) {
  .main { padding-top: 29px; }
  .today-snapshot { margin-top: 24px; }
  .snapshot-row { padding-inline: 12px; }
  .snapshot-row:first-child { padding-left: 0; }
  .pipeline { display: block; }
  .lane { min-height: 0; margin-bottom: 27px; }
  .lane.filtered-out { display: none; }
  .lane-body { min-height: 0; }
  .conversation-layout { margin-top: 18px; }
  .conversation-sidebar { padding-top: 14px; }
  .conversation-list { display: grid; overflow: visible; }
  .conversation-item { min-width: 0; }
  .thread-head { padding-inline: 12px; }
  .messages { padding-inline: 12px; }
  .composer { padding-inline: 0; }
}

@media (max-width: 430px) {
  .app-shell { padding-inline: 17px; }
  .page-head h1 { font-size: 33px; }
  .today-snapshot { grid-template-columns: 1fr 1fr; }
  .snapshot-row strong, .results-row > span:first-child strong { font-size: 22px; }
  .snapshot-row small, .results-row small { font-size: 11px; }
  .sales-kpis > div { padding-inline: 10px; }
}
