:root {
  --ink: #182331;
  --muted: #56616f;
  --control-line: #8993a0;
}
@media (max-width: 850px) {
  .sidebar:not(.open) {
    visibility: hidden;
  }
}
body {
  font-size: 15px;
  line-height: 1.55;
}
h1,
.page-heading h1,
.home-heading h1 {
  font-size: 28px;
  line-height: 34px;
  font-weight: 750;
  letter-spacing: -0.035em;
}
h2,
.panel h2 {
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 12px;
}
h3 {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.015em;
}
p {
  margin-bottom: 12px;
}
.workspace {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  height: 64px;
  min-height: 64px;
  padding: 0 28px;
}
main {
  flex: 1;
  padding: 24px 28px 32px;
  max-width: 1440px;
  width: 100%;
}
.page-heading {
  margin-bottom: 20px;
  gap: 16px;
}
.page-heading h1 {
  margin: 0 0 6px;
}
.page-heading .subheading {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 23px;
  max-width: 70ch;
}
.panel {
  padding: 20px;
  margin-bottom: 20px;
}
.panel.flush {
  padding: 0;
}
.two-col {
  gap: 24px;
  align-items: start;
}
.stack {
  gap: 20px;
}
.space-top {
  margin-top: 20px;
}
.field {
  margin: 0 0 16px;
  gap: 6px;
}
.field label,
.field-label {
  min-height: 0;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 650;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  min-height: 44px;
  border-color: var(--control-line);
  color: var(--ink);
  background: var(--white);
}
textarea {
  resize: vertical;
  line-height: 1.55;
  overflow-y: hidden;
  min-height: 120px;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--violet);
}
.button,
.text-link,
summary,
.subnav a {
  min-height: 44px;
}
.button {
  padding: 10px 16px;
  line-height: 24px;
}
.button.primary {
  min-height: 48px;
}
.button:disabled {
  opacity: 1;
  background: #e6e9ee;
  color: #5c6572;
  border-color: #a5aebb;
}
.hint,
.muted,
.quiet-note,
.sample-note {
  color: var(--muted);
}
.tag {
  font-size: 13px;
  line-height: 20px;
  white-space: normal;
}
.work-row {
  padding: 14px 0;
  gap: 12px;
  align-items: center;
}
.work-row p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 21px;
}
.work-row strong {
  font-weight: 650;
}
.work-icon {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  background: transparent;
}
details {
  margin: 12px 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
}
details[open] > summary {
  margin-bottom: 8px;
}
details .actions {
  flex-wrap: wrap;
}
.reading-view {
  max-width: 780px;
}
.reading-view > .text-link {
  margin: 0 0 8px;
}
.message-editor .page-heading {
  margin-bottom: 6px;
}
.count {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 14px;
}
.message-editor form {
  margin: 0;
}
.message-editor textarea {
  width: 100%;
  max-height: none;
  overflow-y: hidden;
  resize: none;
  padding: 12px;
  font-size: 16px;
  line-height: 24px;
}
.review-actions {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.panel .review-actions {
  background: var(--white);
}
.message-options {
  margin-top: 8px;
}
.message-options .field {
  max-width: 280px;
}
.review-message,
.message-preview {
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 25px;
}
.message-preview p:last-child {
  margin: 0;
}
.job-detail .page-heading {
  margin-bottom: 16px;
}
.job-current {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.job-current > .tag {
  margin-bottom: 12px;
}
.job-current h2 {
  margin: 0 0 12px;
}
.job-current > .actions {
  margin-top: 16px;
}
.job-current .message-preview {
  border: 0;
  padding: 0;
}
.next-explanation {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
.next-explanation h3 {
  margin-bottom: 6px;
}
.related-links {
  margin: 20px 0 0;
}
.review-evidence {
  margin-top: 16px;
}
.job-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.job-groups:has(> section:only-child) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1060px;
}
@media (min-width: 851px) {
  .sidebar {
    width: 224px;
    padding-inline: 12px;
  }
  .workspace {
    margin-left: 224px;
  }
}
.nav-main .nav-link {
  padding-inline: 4px;
  gap: 7px;
  white-space: nowrap;
}
.job-groups h2 .count {
  font-size: 14px;
  color: var(--muted);
}
.job-card {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.job-card .section-head {
  align-items: flex-start;
  gap: 12px;
}
.job-card .section-head h3 {
  margin: 0;
}
.job-card .eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
}
.job-card > p {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0;
}
.job-next {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.job-next > span {
  font-size: 13px;
  line-height: 20px;
  max-width: 38ch;
}
.approval-inbox {
  max-width: 860px;
}
.approval-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0 24px;
  margin-bottom: 24px;
}
.approval-item .draft-excerpt {
  max-width: 70ch;
  font-size: 16px;
  line-height: 25px;
}
.profile-strip {
  min-height: 52px;
  margin-bottom: 20px;
  padding: 0 0 12px;
}
.profile-strip .avatar {
  width: 36px;
  height: 36px;
}
.profile-strip p {
  line-height: 20px;
  margin: 0;
}
.profile-strip span {
  font-size: 13px;
}
.next-action {
  padding: 24px;
  margin: 0;
}
.next-action h2 {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 12px;
}
.next-action .lede {
  font-size: 16px;
  line-height: 25px;
  max-width: 60ch;
  margin-bottom: 16px;
}
.home-work {
  margin-top: 24px;
}
.agenda {
  padding: 0 0 0 24px;
}
.agenda .work-row {
  flex-wrap: wrap;
}
.agenda .work-row > .button {
  margin-left: 44px;
}
.date-comparison {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  font-size: 14px;
}
.date-comparison strong {
  display: block;
  font-size: 20px;
}
.date-alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #d4b875;
  background: var(--amber-soft);
  border-radius: 14px;
  margin: 0 0 20px;
}
.date-alert h2 {
  margin: 0 0 6px;
}
.date-alert p {
  margin: 0;
}
.decision-facts {
  padding: 0 0 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.decision-facts p {
  margin: 10px 0 0;
}
.plan-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.plan-row h2 {
  margin-bottom: 6px;
}
.plan-row p {
  margin: 8px 0;
}
.report-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.report-facts strong {
  display: block;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  line-height: 40px;
}
.report-facts span {
  font-size: 14px;
}
.report-breakdown {
  margin: 24px 0;
  max-width: 900px;
}
.report-breakdown summary {
  justify-content: space-between;
}
.coaching-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}
.coaching-lesson {
  max-width: 760px;
}
.coaching-lesson h3 {
  margin: 24px 0 8px;
}
.coaching-lesson blockquote {
  padding: 16px;
  margin: 16px 0;
  border-left: 3px solid var(--violet);
  background: var(--white);
  font-size: 16px;
  line-height: 26px;
}
.example-line {
  padding: 16px;
  margin-bottom: 20px;
  background: var(--violet-soft);
  border-radius: 12px;
  font-size: 16px;
  line-height: 25px;
}
.practice-result {
  margin-top: 20px;
  border-top: 2px solid var(--violet);
  padding-top: 20px;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.social-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
}
.social-card .post-preview {
  border: 0;
  border-radius: 0;
}
.social-card-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.post-preview .caption {
  padding: 20px;
}
.post-preview .caption p {
  margin-top: 12px;
}
.social-editor {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.social-editor textarea {
  font-size: 16px;
  line-height: 24px;
}
.social-support {
  max-width: 800px;
  margin-top: 20px;
}
.conversation-layout {
  grid-template-columns: 220px minmax(0, 1fr);
}
.conversation-item p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.conversation-meta {
  display: block;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
  margin-top: 4px;
}
.conversation-identity {
  font-size: 18px;
  margin-bottom: 16px;
}
.conversation-body {
  padding: 20px;
}
.conversation-body .section-head {
  margin-bottom: 16px;
}
.conversation-body .thread {
  margin: 0 0 16px;
}
.conversation-picker {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.conversation-picker label {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.conversation-picker select {
  flex: 1;
  min-width: 0;
}
.reply-decision {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.reply-decision p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.compact-plan {
  padding: 12px 16px;
  margin: 16px 0;
  background: transparent;
}
.compact-plan .hint {
  display: none;
}
.lead-desktop-table .table {
  table-layout: fixed;
}
.lead-desktop-table th:first-child {
  width: 29%;
}
.lead-desktop-table th:nth-child(2) {
  width: 15%;
}
.lead-desktop-table th:nth-child(3) {
  width: 40%;
}
.lead-desktop-table .person-cell {
  min-width: 0;
}
.lead-desktop-table .person-cell strong {
  white-space: normal;
  overflow-wrap: normal;
}
.phone-sections {
  display: none;
}
.prototype-bar {
  position: static;
  min-height: 48px;
  height: auto;
  padding: 8px 28px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  justify-content: space-between;
  gap: 12px;
  background: var(--paper);
}
.prototype-bar span {
  font-size: 12px;
  line-height: 18px;
}
.prototype-bar button {
  min-height: 44px;
}
.sample-indicator {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
dialog {
  width: calc(100% - 24px);
  max-width: 620px;
  margin: auto;
  border-radius: 14px;
  max-height: calc(100dvh - 32px);
}
.dialog-head {
  padding: 20px 24px 12px;
}
.dialog-body {
  padding: 8px 24px 24px;
}
.dialog-body textarea {
  max-height: none;
}
dialog h2 {
  font-size: 20px;
  line-height: 28px;
}
button,
a,
input,
select,
textarea,
summary {
  scroll-margin-top: 80px;
  scroll-margin-bottom: 90px;
}
:focus-visible {
  outline-color: #68459d;
}
@media (max-width: 1100px) {
  .home-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
    gap: 24px;
  }
  .job-groups {
    grid-template-columns: 1fr;
  }
  .lead-desktop-table {
    display: none;
  }
  .lead-mobile-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (max-width: 760px) {
  main {
    padding: 16px 16px 24px;
  }
  .topbar {
    height: 56px;
    min-height: 56px;
    padding: 0 12px;
  }
  .topbar .top-actions {
    gap: 6px;
  }
  .topbar .button,
  .topbar .aria-button {
    min-height: 44px;
  }
  .sample-indicator {
    font-size: 11px;
    padding: 2px 5px;
  }
  main .page-heading h1,
  main .home-heading h1 {
    font-size: 24px;
    line-height: 30px;
  }
  .page-heading {
    margin-bottom: 16px;
    gap: 12px;
  }
  .page-heading .subheading {
    font-size: 14px;
    line-height: 20px;
  }
  h2,
  .panel h2 {
    font-size: 18px;
    line-height: 26px;
  }
  .panel {
    padding: 16px;
  }
  .panel.flush {
    padding: 0;
  }
  .two-col,
  .home-layout,
  .coaching-layout,
  .social-editor,
  .social-grid,
  .plan-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .agenda {
    padding: 0;
    border: 0;
  }
  .profile-strip {
    min-height: 48px;
    margin-bottom: 12px;
  }
  .next-action {
    padding: 20px 16px;
  }
  .next-action h2 {
    font-size: 22px;
    line-height: 28px;
  }
  .next-action .lede {
    font-size: 16px;
    line-height: 24px;
  }
  .date-alert {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }
  .subnav {
    display: none !important;
  }
  .phone-sections {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
  }
  .phone-sections label {
    font-size: 14px;
    font-weight: 650;
  }
  .phone-sections select {
    min-width: 0;
    flex: 1;
    max-width: 100%;
    min-height: 44px;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .message-editor .page-heading {
    margin-bottom: 8px;
  }
  .message-editor > .text-link {
    margin-bottom: 4px;
  }
  .message-editor .field {
    margin-bottom: 12px;
  }
  .message-editor textarea {
    min-height: 168px;
    padding: 10px;
  }
  .review-actions {
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  }
  .review-actions .button {
    flex: 1 1 auto;
    min-height: 48px;
  }
  .message-preview,
  .review-message,
  .job-current {
    padding: 16px;
    font-size: 16px;
    line-height: 24px;
  }
  .job-current .message-preview {
    padding: 0;
  }
  .job-card .section-head {
    flex-wrap: wrap;
  }
  .job-next {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .work-row {
    flex-wrap: wrap;
  }
  .work-row > .button {
    margin-left: 44px;
  }
  .work-row .grow {
    flex-basis: calc(100% - 44px);
  }
  .lead-mobile-list {
    grid-template-columns: 1fr;
  }
  .report-facts {
    gap: 16px;
    grid-template-columns: 1fr;
  }
  .report-facts > div {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .report-facts strong {
    min-width: 48px;
    font-size: 28px;
  }
  .conversation-layout {
    display: flex;
    flex-direction: column;
  }
  .conversation-list {
    display: none;
  }
  .conversation-body {
    padding: 12px;
  }
  .conversation-body .section-head {
    margin-bottom: 12px;
  }
  .conversation-body .section-head h2 {
    margin-bottom: 4px;
  }
  .conversation-body .thread {
    margin-top: 0;
  }
  .conversation-body .message {
    font-size: 16px;
    line-height: 24px;
    padding: 12px;
  }
  .prototype-bar {
    padding: 8px 16px;
  }
  .prototype-bar span {
    max-width: 190px;
  }
  .dialog-head {
    padding: 16px 16px 8px;
  }
  .dialog-body {
    padding: 8px 16px 20px;
  }
}
@media (max-width: 350px) {
  main {
    padding: 12px 12px 20px;
  }
  .topbar {
    padding: 0 8px;
  }
  .topbar .button {
    padding: 8px;
  }
  .sample-indicator {
    display: inline-flex;
    padding: 1px 3px;
    font-size: 11px;
  }
  .topbar .search-button .search-short {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin: 0 4px 3px auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
details[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 6px;
}
.home-appointment {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.home-appointment h3 {
  margin: 0 0 4px;
}
.home-appointment p {
  margin: 0 0 4px;
  font-size: 14px;
}
.home-appointment .button {
  padding-inline: 0;
}
.job-summary .eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
}
.job-summary h3 {
  margin: 0;
}
.job-result {
  max-width: 66ch;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.job-next {
  flex-wrap: wrap;
  gap: 8px;
}
@media (min-width: 1151px) {
  .job-groups:has(> section:only-child) .job-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 29%);
    gap: 24px;
    padding: 14px 0;
    align-items: center;
  }
  .job-groups:has(> section:only-child) .job-next {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 6px;
  }
}

/* R3a: bounded phone-control and conversation repairs. */
@media (max-width: 760px) {
  .conversation-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .conversation-picker select {
    width: 100%;
    min-height: 44px;
  }
  .conversation-identity {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 480px) {
  .calendar-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .calendar-controls > .field,
  .calendar-controls input,
  .calendar-controls select {
    width: 100%;
    min-width: 0;
  }
}

.ask-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}
.ask-next-action {
  margin: 16px 0;
}
.ask-question {
  margin: 20px 0 12px;
}
.ask-question summary {
  font-size: 14px;
  line-height: 22px;
}
.ask-question .ask-prompts {
  margin-top: 16px;
}
.ask-waiting-item + .ask-waiting-item {
  margin-top: 20px;
}
@media (max-width: 350px) {
  .topbar .search-button .search-short {
    display: none !important;
  }
  .topbar .search-button {
    min-width: 44px;
    width: 44px;
    padding: 8px;
    justify-content: center;
  }
  .topbar .aria-button {
    white-space: nowrap;
    flex-shrink: 0;
  }
}
.followup-insight {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.followup-insight:first-child {
  padding-top: 0;
}
.followup-insight:last-child {
  border-bottom: 0;
}
.followup-insight h2 {
  font-size: 18px;
  line-height: 26px;
  margin: 6px 0;
}
.job-current > h2 {
  font-size: 19px;
  line-height: 28px;
  margin: 16px 0 10px;
}
